[
  {
    "path": ".github/FUNDING.YML",
    "content": "# These are supported funding model platforms\n\ngithub: [mid0aria] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]\npatreon: mid0aria # Replace with a single Patreon username\nopen_collective: # Replace with a single Open Collective username\nko_fi: # Replace with a single Ko-fi username\ntidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\ncommunity_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\nliberapay: # Replace with a single Liberapay username\nissuehunt: # Replace with a single IssueHunt username\notechie: # Replace with a single Otechie username\nlfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry\ncustom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.yml",
    "content": "name: Bug Report\ndescription: File a bug report\nbody:\n    - type: markdown\n      attributes:\n          value: |\n              Thank you for filing a bug report!\n\n              ## Important\n              - Please search existing issues to avoid creating duplicates.\n              - For enhancement requests, please use GitHub Discussions.\n              - Please fill out the template below to the best of your ability.\n              - Please describe the issue as much as possible and provide steps to reproduce it along with visual aids if possible.\n    - type: checkboxes\n      id: captchas\n      attributes:\n          label: Captchas\n          description: Just making sure you did actually read the instructions.\n          options:\n              - label: I have read the instructions.\n              - label: I have searched existing issues and avoided creating duplicates.\n              - label: I am not filing an enhancement request.\n    - type: textarea\n      id: what-happened\n      attributes:\n          label: What happened?\n          description: Also tell us, what did you expect to happen?\n          placeholder: Tell us what you see!\n      validations:\n          required: true\n    - type: input\n      id: version\n      attributes:\n          label: Version\n          description: What version of our bot are you running? Please do not use \"latest\" or \"newest\" as version numbers.\n          placeholder: 1.0.0\n      validations:\n          required: true\n    - type: dropdown\n      id: platform\n      attributes:\n          label: What platform are you seeing the problem on?\n          multiple: true\n          options:\n              - Windows\n              - Linux\n              - Android\n              - macOS\n      validations:\n          required: true\n    - type: textarea\n      id: logs\n      attributes:\n          label: Relevant log output if applicable\n          description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.\n          render: shell\n"
  },
  {
    "path": ".github/dependabot.yml",
    "content": "# To get started with Dependabot version updates, you'll need to specify which\n# package ecosystems to update and where the package manifests are located.\n# Please see the documentation for all configuration options:\n# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file\n\nversion: 2\nupdates:\n    - package-ecosystem: \"npm\" # See documentation for possible values\n      directory: \"/\" # Location of package manifests\n      schedule:\n          interval: \"weekly\"\n      ignore:\n          - dependency-name: \"chalk\"\n"
  },
  {
    "path": ".github/workflows/format.yml",
    "content": "name: Format\non:\n    push:\n        branches: [main]\n\npermissions:\n    contents: write\n\njobs:\n    format:\n        runs-on: ubuntu-latest\n        steps:\n            - name: Checkout repository\n              uses: actions/checkout@v4\n              with:\n                  ref: ${{ github.head_ref }}\n                  token: ${{ secrets.GH_PAT }}\n\n            - name: Setup Node.js\n              uses: actions/setup-node@v4\n              with:\n                  node-version: \"22.x\"\n\n            - name: Install dependencies\n              run: npm i\n\n            - name: Run Prettier\n              run: npm run format\n            - name: Commit & Push Changes\n              run: |\n                  git config --global user.name \"github-actions[bot]\"\n                  git config --global user.email \"41898282+github-actions[bot]@users.noreply.github.com\"\n                  git add -A\n                  git commit -m \"Apply formatting changes\" || echo \"No changes to commit\"\n                  BRANCH_NAME=${{ github.head_ref || github.ref_name }}\n                  echo \"Pushing to branch: $BRANCH_NAME\"\n                  git push https://x-access-token:${{ secrets.GH_PAT }}@github.com/${{ github.repository }}.git HEAD:$BRANCH_NAME\n"
  },
  {
    "path": ".github/workflows/update-submodule.yml",
    "content": "name: Update Submodule\n\non:\n    push:\n        branches:\n            - main\n\njobs:\n    update-submodule:\n        runs-on: ubuntu-latest\n        steps:\n            - name: Checkout Repository with Submodules\n              uses: actions/checkout@v3\n              with:\n                  submodules: true\n                  fetch-depth: 0\n\n            - name: Set Git User Info\n              run: |\n                  git config --global user.email \"github-actions[bot]@users.noreply.github.com\"\n                  git config --global user.name \"github-actions[bot]\"\n\n            - name: Update Submodules\n              run: |\n                  git submodule update --init --recursive --remote\n                  git add .\n                  git commit -m \"Auto-update all submodules\" || echo \"No changes to commit\"\n                  git push\n"
  },
  {
    "path": ".gitignore",
    "content": "# Developer\ntest.js\ndeveloper/\n\n# Logs\nlogs\n*.log\n*.bin\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\nlerna-debug.log*\n.pnpm-debug.log*\n\n# Diagnostic reports (https://nodejs.org/api/report.html)\nreport.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json\n\n# Runtime data\npids\n*.pid\n*.seed\n*.pid.lock\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n*.lcov\n\n# nyc test coverage\n.nyc_output\n\n# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# Bower dependency directory (https://bower.io/)\nbower_components\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (https://nodejs.org/api/addons.html)\nbuild/Release\n\n# Dependency directories\nnode_modules/\njspm_packages/\n\n# Snowpack dependency directory (https://snowpack.dev/)\nweb_modules/\n\n# TypeScript cache\n*.tsbuildinfo\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Optional stylelint cache\n.stylelintcache\n\n# Microbundle cache\n.rpt2_cache/\n.rts2_cache_cjs/\n.rts2_cache_es/\n.rts2_cache_umd/\n\n# Optional REPL history\n.node_repl_history\n\n# Output of 'npm pack'\n*.tgz\n\n# Yarn Integrity file\n.yarn-integrity\n\n# dotenv environment variable files\n.env\n.env.development.local\n.env.test.local\n.env.production.local\n.env.local\n\n# parcel-bundler cache (https://parceljs.org/)\n.cache\n.parcel-cache\n\n# Next.js build output\n.next\nout\n\n# Nuxt.js build / generate output\n.nuxt\ndist\n\n# Gatsby files\n.cache/\n# Comment in the public line in if your project uses Gatsby and not Next.js\n# https://nextjs.org/blog/next-9-1#public-directory-support\n# public\n\n# vuepress build output\n.vuepress/dist\n\n# vuepress v2.x temp and cache directory\n.temp\n.cache\n\n# Docusaurus cache and generated files\n.docusaurus\n\n# Serverless directories\n.serverless/\n\n# FuseBox cache\n.fusebox/\n\n# DynamoDB Local files\n.dynamodb/\n\n# TernJS port file\n.tern-port\n\n# Stores VSCode versions used for testing VSCode extensions\n.vscode-test\n\n# yarn v2\n.yarn/cache\n.yarn/unplugged\n.yarn/build-state.yml\n.yarn/install-state.gz\n.pnp.*\n\n# config (don't need coz i can un-stage change for config.json and no token leak)\n# config.json\n"
  },
  {
    "path": ".gitmodules",
    "content": "[submodule \"utils/autovote\"]\n\tpath = utils/autovote\n\turl = https://github.com/Mid0aria/top.gg-automatic-voter\n"
  },
  {
    "path": ".prettierignore",
    "content": "hcaptchasolver/\r\n*.mp4\r\n*.png\r\n*.jpg\r\n*.ico\r\n*.wav"
  },
  {
    "path": ".prettierrc",
    "content": "{\n    \"useTabs\": false,\n    \"tabWidth\": 4\n}\n"
  },
  {
    "path": ".vscode/extensions.json",
    "content": "{\n    \"recommendations\": [\n        \"esbenp.prettier-vscode\",\n        \"dbaeumer.vscode-eslint\",\n        \"drknoxy.eslint-disable-snippets\",\n        \"ms-python.black-formatter\",\n        \"aaron-bond.better-comments\",\n        \"ionutvmi.path-autocomplete\",\n        \"eamodio.gitlens\",\n        \"usernamehw.errorlens\",\n        \"pflannery.vscode-versionlens\",\n        \"kricsleo.vscode-package-json-inspector\",\n        \"chadonsom.auto-view-readme\",\n        \"donjayamanne.githistory\",\n        \"mhutchie.git-graph\",\n        \"github.vscode-github-actions\",\n        \"pkief.material-icon-theme\"\n    ]\n}\n"
  },
  {
    "path": ".vscode/settings.json",
    "content": "{\n    \"[javascript]\": {\n        \"editor.formatOnType\": true,\n        \"editor.defaultFormatter\": \"esbenp.prettier-vscode\"\n    },\n    \"[json]\": {\n        \"editor.formatOnType\": true,\n        \"editor.defaultFormatter\": \"esbenp.prettier-vscode\"\n    },\n    \"[jsonc]\": {\n        \"editor.formatOnType\": true,\n        \"editor.defaultFormatter\": \"esbenp.prettier-vscode\"\n    },\n    \"[python]\": {\n        \"editor.formatOnType\": true,\n        \"editor.defaultFormatter\": \"ms-python.black-formatter\"\n    },\n    \"[markdown]\": {\n        \"diffEditor.ignoreTrimWhitespace\": true\n    },\n    \"editor.formatOnSave\": true,\n    \"editor.formatOnPaste\": true,\n    \"editor.maxTokenizationLineLength\": 90000,\n    \"prettier.tabWidth\": 4\n}\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "## [0.0.9.4]\n\nIN DEVELOPMENT\n\n### Bot:\n\n- Fixed issue with autovoter not downloading\n- Updater system revamped\n\n## [0.0.9.3.2]\n\n### Bot:\n\n- Added dynamic interval for checklist\n\n## [0.0.9.3.1]\n\n### Bot:\n\n- Fixed a bug that make webui cannot auto reconnect\n- Fixed a bug that make reboot function cause crash\n- Fixed a bug that make rechecklist not work\n- Fixed a bug when deleting old log file\n\n**Note**: If somethings not working properly, use previous version (v0.0.9.2.2)\n\n## [0.0.9.3]\n\n### WebUI:\n\n- Added \"Quest\" tab.\n- Made minor changes to the layout.\n- Value now updates correctly (should).\n- Layout adjusted for mobile devices.\n- **Bug**: If connected to WebUI before bot setup, it will not automatically connect to the bot (backend) and requires a manual reload.\n- **Bug**: Reboot feature not working.\n\n### Bot:\n\n- Fixed notification error, now working properly.\n- Made Empress and WebSocket use the same port to enable exposing localhost (documentation will come later).\n- Rechecked the list.\n- Random phrases now work even if hunt/battle (or both) are not enabled.\n- Removed useless information used for debugging (does nothing).\n\n**Note**: If this version causes any errors, use the previous version in the release.\n"
  },
  {
    "path": "LICENSE",
    "content": "Attribution-NonCommercial-ShareAlike 4.0 International\r\n\r\n=======================================================================\r\n\r\nCreative Commons Corporation (\"Creative Commons\") is not a law firm and\r\ndoes not provide legal services or legal advice. Distribution of\r\nCreative Commons public licenses does not create a lawyer-client or\r\nother relationship. Creative Commons makes its licenses and related\r\ninformation available on an \"as-is\" basis. Creative Commons gives no\r\nwarranties regarding its licenses, any material licensed under their\r\nterms and conditions, or any related information. Creative Commons\r\ndisclaims all liability for damages resulting from their use to the\r\nfullest extent possible.\r\n\r\nUsing Creative Commons Public Licenses\r\n\r\nCreative Commons public licenses provide a standard set of terms and\r\nconditions that creators and other rights holders may use to share\r\noriginal works of authorship and other material subject to copyright\r\nand certain other rights specified in the public license below. The\r\nfollowing considerations are for informational purposes only, are not\r\nexhaustive, and do not form part of our licenses.\r\n\r\n     Considerations for licensors: Our public licenses are\r\n     intended for use by those authorized to give the public\r\n     permission to use material in ways otherwise restricted by\r\n     copyright and certain other rights. Our licenses are\r\n     irrevocable. Licensors should read and understand the terms\r\n     and conditions of the license they choose before applying it.\r\n     Licensors should also secure all rights necessary before\r\n     applying our licenses so that the public can reuse the\r\n     material as expected. Licensors should clearly mark any\r\n     material not subject to the license. This includes other CC-\r\n     licensed material, or material used under an exception or\r\n     limitation to copyright. More considerations for licensors:\r\n    wiki.creativecommons.org/Considerations_for_licensors\r\n\r\n     Considerations for the public: By using one of our public\r\n     licenses, a licensor grants the public permission to use the\r\n     licensed material under specified terms and conditions. If\r\n     the licensor's permission is not necessary for any reason--for\r\n     example, because of any applicable exception or limitation to\r\n     copyright--then that use is not regulated by the license. Our\r\n     licenses grant only permissions under copyright and certain\r\n     other rights that a licensor has authority to grant. Use of\r\n     the licensed material may still be restricted for other\r\n     reasons, including because others have copyright or other\r\n     rights in the material. A licensor may make special requests,\r\n     such as asking that all changes be marked or described.\r\n     Although not required by our licenses, you are encouraged to\r\n     respect those requests where reasonable. More_considerations\r\n     for the public:\r\n    wiki.creativecommons.org/Considerations_for_licensees\r\n\r\n=======================================================================\r\n\r\nCreative Commons Attribution-NonCommercial-ShareAlike 4.0 International\r\nPublic License\r\n\r\nBy exercising the Licensed Rights (defined below), You accept and agree\r\nto be bound by the terms and conditions of this Creative Commons\r\nAttribution-NonCommercial-ShareAlike 4.0 International Public License\r\n(\"Public License\"). To the extent this Public License may be\r\ninterpreted as a contract, You are granted the Licensed Rights in\r\nconsideration of Your acceptance of these terms and conditions, and the\r\nLicensor grants You such rights in consideration of benefits the\r\nLicensor receives from making the Licensed Material available under\r\nthese terms and conditions.\r\n\r\nSection 1 -- Definitions.\r\n\r\na. Adapted Material means material subject to Copyright and Similar\r\nRights that is derived from or based upon the Licensed Material\r\nand in which the Licensed Material is translated, altered,\r\narranged, transformed, or otherwise modified in a manner requiring\r\npermission under the Copyright and Similar Rights held by the\r\nLicensor. For purposes of this Public License, where the Licensed\r\nMaterial is a musical work, performance, or sound recording,\r\nAdapted Material is always produced where the Licensed Material is\r\nsynched in timed relation with a moving image.\r\n\r\nb. Adapter's License means the license You apply to Your Copyright\r\nand Similar Rights in Your contributions to Adapted Material in\r\naccordance with the terms and conditions of this Public License.\r\n\r\nc. BY-NC-SA Compatible License means a license listed at\r\ncreativecommons.org/compatiblelicenses, approved by Creative\r\nCommons as essentially the equivalent of this Public License.\r\n\r\nd. Copyright and Similar Rights means copyright and/or similar rights\r\nclosely related to copyright including, without limitation,\r\nperformance, broadcast, sound recording, and Sui Generis Database\r\nRights, without regard to how the rights are labeled or\r\ncategorized. For purposes of this Public License, the rights\r\nspecified in Section 2(b)(1)-(2) are not Copyright and Similar\r\nRights.\r\n\r\ne. Effective Technological Measures means those measures that, in the\r\nabsence of proper authority, may not be circumvented under laws\r\nfulfilling obligations under Article 11 of the WIPO Copyright\r\nTreaty adopted on December 20, 1996, and/or similar international\r\nagreements.\r\n\r\nf. Exceptions and Limitations means fair use, fair dealing, and/or\r\nany other exception or limitation to Copyright and Similar Rights\r\nthat applies to Your use of the Licensed Material.\r\n\r\ng. License Elements means the license attributes listed in the name\r\nof a Creative Commons Public License. The License Elements of this\r\nPublic License are Attribution, NonCommercial, and ShareAlike.\r\n\r\nh. Licensed Material means the artistic or literary work, database,\r\nor other material to which the Licensor applied this Public\r\nLicense.\r\n\r\ni. Licensed Rights means the rights granted to You subject to the\r\nterms and conditions of this Public License, which are limited to\r\nall Copyright and Similar Rights that apply to Your use of the\r\nLicensed Material and that the Licensor has authority to license.\r\n\r\nj. Licensor means the individual(s) or entity(ies) granting rights\r\nunder this Public License.\r\n\r\nk. NonCommercial means not primarily intended for or directed towards\r\ncommercial advantage or monetary compensation. For purposes of\r\nthis Public License, the exchange of the Licensed Material for\r\nother material subject to Copyright and Similar Rights by digital\r\nfile-sharing or similar means is NonCommercial provided there is\r\nno payment of monetary compensation in connection with the\r\nexchange.\r\n\r\nl. Share means to provide material to the public by any means or\r\nprocess that requires permission under the Licensed Rights, such\r\nas reproduction, public display, public performance, distribution,\r\ndissemination, communication, or importation, and to make material\r\navailable to the public including in ways that members of the\r\npublic may access the material from a place and at a time\r\nindividually chosen by them.\r\n\r\nm. Sui Generis Database Rights means rights other than copyright\r\nresulting from Directive 96/9/EC of the European Parliament and of\r\nthe Council of 11 March 1996 on the legal protection of databases,\r\nas amended and/or succeeded, as well as other essentially\r\nequivalent rights anywhere in the world.\r\n\r\nn. You means the individual or entity exercising the Licensed Rights\r\nunder this Public License. Your has a corresponding meaning.\r\n\r\nSection 2 -- Scope.\r\n\r\na. License grant.\r\n\r\n       1. Subject to the terms and conditions of this Public License,\r\n          the Licensor hereby grants You a worldwide, royalty-free,\r\n          non-sublicensable, non-exclusive, irrevocable license to\r\n          exercise the Licensed Rights in the Licensed Material to:\r\n\r\n            a. reproduce and Share the Licensed Material, in whole or\r\n               in part, for NonCommercial purposes only; and\r\n\r\n            b. produce, reproduce, and Share Adapted Material for\r\n               NonCommercial purposes only.\r\n\r\n       2. Exceptions and Limitations. For the avoidance of doubt, where\r\n          Exceptions and Limitations apply to Your use, this Public\r\n          License does not apply, and You do not need to comply with\r\n          its terms and conditions.\r\n\r\n       3. Term. The term of this Public License is specified in Section\r\n          6(a).\r\n\r\n       4. Media and formats; technical modifications allowed. The\r\n          Licensor authorizes You to exercise the Licensed Rights in\r\n          all media and formats whether now known or hereafter created,\r\n          and to make technical modifications necessary to do so. The\r\n          Licensor waives and/or agrees not to assert any right or\r\n          authority to forbid You from making technical modifications\r\n          necessary to exercise the Licensed Rights, including\r\n          technical modifications necessary to circumvent Effective\r\n          Technological Measures. For purposes of this Public License,\r\n          simply making modifications authorized by this Section 2(a)\r\n          (4) never produces Adapted Material.\r\n\r\n       5. Downstream recipients.\r\n\r\n            a. Offer from the Licensor -- Licensed Material. Every\r\n               recipient of the Licensed Material automatically\r\n               receives an offer from the Licensor to exercise the\r\n               Licensed Rights under the terms and conditions of this\r\n               Public License.\r\n\r\n            b. Additional offer from the Licensor -- Adapted Material.\r\n               Every recipient of Adapted Material from You\r\n               automatically receives an offer from the Licensor to\r\n               exercise the Licensed Rights in the Adapted Material\r\n               under the conditions of the Adapter's License You apply.\r\n\r\n            c. No downstream restrictions. You may not offer or impose\r\n               any additional or different terms or conditions on, or\r\n               apply any Effective Technological Measures to, the\r\n               Licensed Material if doing so restricts exercise of the\r\n               Licensed Rights by any recipient of the Licensed\r\n               Material.\r\n\r\n       6. No endorsement. Nothing in this Public License constitutes or\r\n          may be construed as permission to assert or imply that You\r\n          are, or that Your use of the Licensed Material is, connected\r\n          with, or sponsored, endorsed, or granted official status by,\r\n          the Licensor or others designated to receive attribution as\r\n          provided in Section 3(a)(1)(A)(i).\r\n\r\nb. Other rights.\r\n\r\n       1. Moral rights, such as the right of integrity, are not\r\n          licensed under this Public License, nor are publicity,\r\n          privacy, and/or other similar personality rights; however, to\r\n          the extent possible, the Licensor waives and/or agrees not to\r\n          assert any such rights held by the Licensor to the limited\r\n          extent necessary to allow You to exercise the Licensed\r\n          Rights, but not otherwise.\r\n\r\n       2. Patent and trademark rights are not licensed under this\r\n          Public License.\r\n\r\n       3. To the extent possible, the Licensor waives any right to\r\n          collect royalties from You for the exercise of the Licensed\r\n          Rights, whether directly or through a collecting society\r\n          under any voluntary or waivable statutory or compulsory\r\n          licensing scheme. In all other cases the Licensor expressly\r\n          reserves any right to collect such royalties, including when\r\n          the Licensed Material is used other than for NonCommercial\r\n          purposes.\r\n\r\nSection 3 -- License Conditions.\r\n\r\nYour exercise of the Licensed Rights is expressly made subject to the\r\nfollowing conditions.\r\n\r\na. Attribution.\r\n\r\n       1. If You Share the Licensed Material (including in modified\r\n          form), You must:\r\n\r\n            a. retain the following if it is supplied by the Licensor\r\n               with the Licensed Material:\r\n\r\n                 i. identification of the creator(s) of the Licensed\r\n                    Material and any others designated to receive\r\n                    attribution, in any reasonable manner requested by\r\n                    the Licensor (including by pseudonym if\r\n                    designated);\r\n\r\n                ii. a copyright notice;\r\n\r\n               iii. a notice that refers to this Public License;\r\n\r\n                iv. a notice that refers to the disclaimer of\r\n                    warranties;\r\n\r\n                 v. a URI or hyperlink to the Licensed Material to the\r\n                    extent reasonably practicable;\r\n\r\n            b. indicate if You modified the Licensed Material and\r\n               retain an indication of any previous modifications; and\r\n\r\n            c. indicate the Licensed Material is licensed under this\r\n               Public License, and include the text of, or the URI or\r\n               hyperlink to, this Public License.\r\n\r\n       2. You may satisfy the conditions in Section 3(a)(1) in any\r\n          reasonable manner based on the medium, means, and context in\r\n          which You Share the Licensed Material. For example, it may be\r\n          reasonable to satisfy the conditions by providing a URI or\r\n          hyperlink to a resource that includes the required\r\n          information.\r\n       3. If requested by the Licensor, You must remove any of the\r\n          information required by Section 3(a)(1)(A) to the extent\r\n          reasonably practicable.\r\n\r\nb. ShareAlike.\r\n\r\n     In addition to the conditions in Section 3(a), if You Share\r\n     Adapted Material You produce, the following conditions also apply.\r\n\r\n       1. The Adapter's License You apply must be a Creative Commons\r\n          license with the same License Elements, this version or\r\n          later, or a BY-NC-SA Compatible License.\r\n\r\n       2. You must include the text of, or the URI or hyperlink to, the\r\n          Adapter's License You apply. You may satisfy this condition\r\n          in any reasonable manner based on the medium, means, and\r\n          context in which You Share Adapted Material.\r\n\r\n       3. You may not offer or impose any additional or different terms\r\n          or conditions on, or apply any Effective Technological\r\n          Measures to, Adapted Material that restrict exercise of the\r\n          rights granted under the Adapter's License You apply.\r\n\r\nSection 4 -- Sui Generis Database Rights.\r\n\r\nWhere the Licensed Rights include Sui Generis Database Rights that\r\napply to Your use of the Licensed Material:\r\n\r\na. for the avoidance of doubt, Section 2(a)(1) grants You the right\r\nto extract, reuse, reproduce, and Share all or a substantial\r\nportion of the contents of the database for NonCommercial purposes\r\nonly;\r\n\r\nb. if You include all or a substantial portion of the database\r\ncontents in a database in which You have Sui Generis Database\r\nRights, then the database in which You have Sui Generis Database\r\nRights (but not its individual contents) is Adapted Material,\r\nincluding for purposes of Section 3(b); and\r\n\r\nc. You must comply with the conditions in Section 3(a) if You Share\r\nall or a substantial portion of the contents of the database.\r\n\r\nFor the avoidance of doubt, this Section 4 supplements and does not\r\nreplace Your obligations under this Public License where the Licensed\r\nRights include other Copyright and Similar Rights.\r\n\r\nSection 5 -- Disclaimer of Warranties and Limitation of Liability.\r\n\r\na. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE\r\nEXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS\r\nAND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF\r\nANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,\r\nIMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,\r\nWARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR\r\nPURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,\r\nACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT\r\nKNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT\r\nALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.\r\n\r\nb. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE\r\nTO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,\r\nNEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,\r\nINCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,\r\nCOSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR\r\nUSE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN\r\nADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR\r\nDAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR\r\nIN PART, THIS LIMITATION MAY NOT APPLY TO YOU.\r\n\r\nc. The disclaimer of warranties and limitation of liability provided\r\nabove shall be interpreted in a manner that, to the extent\r\npossible, most closely approximates an absolute disclaimer and\r\nwaiver of all liability.\r\n\r\nSection 6 -- Term and Termination.\r\n\r\na. This Public License applies for the term of the Copyright and\r\nSimilar Rights licensed here. However, if You fail to comply with\r\nthis Public License, then Your rights under this Public License\r\nterminate automatically.\r\n\r\nb. Where Your right to use the Licensed Material has terminated under\r\nSection 6(a), it reinstates:\r\n\r\n       1. automatically as of the date the violation is cured, provided\r\n          it is cured within 30 days of Your discovery of the\r\n          violation; or\r\n\r\n       2. upon express reinstatement by the Licensor.\r\n\r\n     For the avoidance of doubt, this Section 6(b) does not affect any\r\n     right the Licensor may have to seek remedies for Your violations\r\n     of this Public License.\r\n\r\nc. For the avoidance of doubt, the Licensor may also offer the\r\nLicensed Material under separate terms or conditions or stop\r\ndistributing the Licensed Material at any time; however, doing so\r\nwill not terminate this Public License.\r\n\r\nd. Sections 1, 5, 6, 7, and 8 survive termination of this Public\r\nLicense.\r\n\r\nSection 7 -- Other Terms and Conditions.\r\n\r\na. The Licensor shall not be bound by any additional or different\r\nterms or conditions communicated by You unless expressly agreed.\r\n\r\nb. Any arrangements, understandings, or agreements regarding the\r\nLicensed Material not stated herein are separate from and\r\nindependent of the terms and conditions of this Public License.\r\n\r\nSection 8 -- Interpretation.\r\n\r\na. For the avoidance of doubt, this Public License does not, and\r\nshall not be interpreted to, reduce, limit, restrict, or impose\r\nconditions on any use of the Licensed Material that could lawfully\r\nbe made without permission under this Public License.\r\n\r\nb. To the extent possible, if any provision of this Public License is\r\ndeemed unenforceable, it shall be automatically reformed to the\r\nminimum extent necessary to make it enforceable. If the provision\r\ncannot be reformed, it shall be severed from this Public License\r\nwithout affecting the enforceability of the remaining terms and\r\nconditions.\r\n\r\nc. No term or condition of this Public License will be waived and no\r\nfailure to comply consented to unless expressly agreed to by the\r\nLicensor.\r\n\r\nd. Nothing in this Public License constitutes or may be interpreted\r\nas a limitation upon, or waiver of, any privileges and immunities\r\nthat apply to the Licensor or You, including from the legal\r\nprocesses of any jurisdiction or authority.\r\n\r\n=======================================================================\r\n\r\nCreative Commons is not a party to its public\r\nlicenses. Notwithstanding, Creative Commons may elect to apply one of\r\nits public licenses to material it publishes and in those instances\r\nwill be considered the “Licensor.” The text of the Creative Commons\r\npublic licenses is dedicated to the public domain under the CC0 Public\r\nDomain Dedication. Except for the limited purpose of indicating that\r\nmaterial is shared under a Creative Commons public license or as\r\notherwise permitted by the Creative Commons policies published at\r\ncreativecommons.org/policies, Creative Commons does not authorize the\r\nuse of the trademark \"Creative Commons\" or any other trademark or logo\r\nof Creative Commons without its prior written consent including,\r\nwithout limitation, in connection with any unauthorized modifications\r\nto any of its public licenses or any other arrangements,\r\nunderstandings, or agreements concerning use of licensed material. For\r\nthe avoidance of doubt, this paragraph does not form part of the\r\npublic licenses.\r\n\r\nCreative Commons may be contacted at creativecommons.org.\r\n"
  },
  {
    "path": "README.md",
    "content": "[Version 1.0.8.8(no longer support)](https://github.com/Mid0Hub/owofarmbot)<br>\n\ndWdnY2Y6Ly9iY3JhLmZjYmd2c2wucGJ6L2dlbnB4LzVwc2tIZ1B4Y3hQVkVlWGxxVVhGb1kgcm90MTM= </br>\n\n<h1 align=\"center\">OwO Farm Bot Stable V0.0.9.3.2(BETA) WEBUI WITH CAPTCHA SOLVER ✒️</h1>\n<h2 align =\"center\">The best owo farm bot until i do better. coded with the great ideas and love of a Turkish engineer, mid0hub team and users.<br> 💖 Thank you to everyone who contributed 💖</h2>\n<p align=\"center\">\n\n[![Total Views](https://hits.sh/github.com/Mid0Hub/owofarmbot_stable.svg?view=today-total&label=Repo%20Today/Total%20Views&color=770ca1&labelColor=007ec6)](https://github.com/Mid0Hub/owofarmbot_stable)\n[![Last Commit](https://img.shields.io/github/last-commit/Mid0Hub/owofarmbot_stable)](https://github.com/Mid0Hub/owofarmbot_stable)\n\n## Tutorials\n\n### Videos\n\n- [Windows FOR V0.0.6](https://www.youtube.com/watch?v=U4Q6joLF2Qo) - Official\n- [Termux](https://youtu.be/w2tvj1oRSO8?si=ueve5EIC9usVpxIT) - ZungHieu\n\n### Text\n\n- [🎈・Installation](#Installation)\n    - [Windows / Linux](#windows--linux) - Official\n    - [Android (Termux)](#android-termux) - Official\n\nIf you need the help, join the Discord server [here](https://discord.gg/WzYXVbXt6C)\n\n<!-- To get auth key, join the Discord server [here](https://discord.gg/WzYXVbXt6C), go to [`#🤖・bot-commands`](https://discord.com/channels/1202294695091507230/1203705738770256032), and send `s!key`. The official bot will directly message you with the key. -->\n\n</p>\n\n# Contents\n\n[⭐・Star History](#star-history)<br>\n\n[❗・Important](#important-anyone-using-the-bot-is-deemed-to-have-read-and-accepted-these)<br>\n\n[👑・Features](#features)<br>\n\n[⚙・Config.json example](#configjson-example)<br>\n\n[💎・Get Token](#get-token)<br>\n\n[🖥️・WEBUI](#%EF%B8%8Fwebui)<br>\n\n<!-- [📚・Discord RPC](#discord-rpc)<br> -->\n\n[⚠️・Captcha Alert](#captcha-alert)<br>\n\n[🔗・Required Links](#required-links)<br>\n\n[🎈・Installation](#installation)<br>\n\n[🥰・Contributors](#contributors)<br>\n\n[📑・License](#license)<br>\n\n## ⭐・Star History\n\n<h2 align=\"center\">Goal: <a href=\"https://github.com/Mid0Hub/owofarmbot_stable/stargazers\"><img src=\"https://img.shields.io/github/stars/Mid0Hub/owofarmbot_stable\" /></a> / 512</h2>\n⭐⭐⭐ You can also give this repository a star so that others know we're trusted!<br>\n\n[![Star History Chart](https://api.star-history.com/svg?repos=Mid0Hub/owofarmbot_stable&type=Date)](https://star-history.com/#Mid0Hub/owofarmbot_stable&Date)\n\n## ❗・Important (Anyone using the bot is deemed to have read and accepted these)\n\n- Use of this farm bot may lead to actions being taken against your OwO profile and/or your Discord account. We are not responsible for them.\n- FARM, HUNTBOT, QUEST AND GAMBLE NEED TO PLACE IN DIFFERENT CHANNEL. That mean if you use all of them, you need four different channel. And if you use extra token, that will be eight.\n\n## 👑・Features\n\n- WEBUI\n- Auto Join OwO Support Server Giveaways\n- Discord RPC\n- Auto Phrases Send\n- Chat FeedBack\n- All commands now controlable\n- Extra Token:\n\n    - All Maintoken feature\n    - Pray/curse to main\n\n- Auto Commands:\n\n    - Hunt\n    - Battle\n    - Pray\n    - Curse\n    - HuntBot (with captcha solver)\n    - Upgrade HuntBot\n    - Gamble\n        - Coinflip\n        - Slot\n\n- Questing:\n\n    - Do quest that require one user to done\n    - If extratoken is enabled, both can do quest for each other\n\n- Animals:\n\n    - Type:\n        - Sell\n        - Sacrifice\n    - Choose which animal types to use\n\n- CheckList:\n\n    - Auto Claim Daily\n    - Auto Cookie\n    - Auto Vote (ONLY WORKS ON DESKTOP)\n\n- Inventory:\n\n    - Auto Check Inventory\n    - Auto Use Lootbox\n    - Auto Use Fabled Lootbox\n    - Auto Use Crate\n    - Auto Use Gems\n\n- Captcha:\n\n    - Alert Type:\n\n        - Notification\n        - Prompt\n        - Webhook\n\n    - Features:\n        - Auto Solving HCAPTCHA(web captcha) with thread system(ONLY WORKS ON DESKTOP)\n        - Command Randomizer\n        - Suspends all farm operations when captcha is detected\n        - When the captcha is solved, farm operations continue automatically\n\n- NEW FEATURES WILL COME WITH UPDATES\n\n## ⚙・config.json example\n\n```\n{\n    \"firstrun\": true, / A necessary setting for the automatic config filling system. please do not change\n    \"prefix\": \"!\", / SelfBot PREFIX\n    \"main\": { / main account, required\n        \"token\": \"\", / SelfBot Token (your discord token)\n        \"userid\": \"\",  / SelfBot UserID (your account userid)\n        \"commandschannelid\": \"\", / Farm Channel ID\n        \"huntbotchannelid\": \"\", / HuntBot Channel ID\n        \"owodmchannelid\": \"\", / OwO DM Channel ID\n        \"gamblechannelid\": \"\", / Gamble Channel ID\n        \"autoquestchannelid\": \"\", / Quest Channel ID\n        \"autostart\": false, / set to true if you want the farm bot to run as soon as you run the code, true or false (boolean)\n\n\n        \"commands\": {\n            \"hunt\": true, / true or false (boolean)\n            \"battle\": true, / true or false (boolean)\n            \"pray\": false, / true or false (boolean)\n            \"curse\": true, / true or false (boolean)\n            \"huntbot\": {\n                \"enable\": true, / true or false (boolean)\n                \"maxtime\": 10 / If no valid duration is found for huntbot, the value here is used in hours\n                \"upgrade\": false, / true or false (boolean)\n                \"upgradetype\": \"duration\" / efficiency, duration, cost, gain, exp or radar\n            },\n            \"gamble\": {\n                \"coinflip\": true, / true or false (boolean)\n                \"slot\": true / true or false (boolean)\n            },\n            \"animals\": false, / true or false (boolean) (sell/sac animals or not)\n            \"inventory\": true, / true or false (boolean)\n            \"checklist\": true, / true or false (boolean)\n            \"autoquest\": true / true or false (boolean)\n        },\n        \"maximum_gem_rarity\": \"Mythical\" / \"common\", \"uncommon\", \"rare\", \"epic\", \"mythical\", \"legendary\", \"fabled\"\n    },\n    \"extra\": { / not required for explain, same as main\n        \"enable\": true,\n        \"token\": \"\",\n        \"userid\": \"\",\n        \"commandschannelid\": \"\",\n        \"huntbotchannelid\": \"\",\n        \"owodmchannelid\": \"\",\n        \"gamblechannelid\": \"\",\n        \"autoquestchannelid\": \"\",\n        \"autostart\": false,\n\n        \"commands\": {\n            \"hunt\": true,\n            \"battle\": true,\n            \"pray\": false,\n            \"curse\": true,\n            \"huntbot\": {\n                \"enable\": true, / true or false (boolean)\n                \"maxtime\": 10 / If no valid duration is found for huntbot, the value here is used in hours\n                \"upgrade\": false, / true or false (boolean)\n                \"upgradetype\": \"duration\" / efficiency, duration, cost, gain, exp or radar\n            },\n            \"tomain\": true, / use curse/pray to main token or not, true or false (boolean)\n            \"gamble\": {\n                \"coinflip\": true,\n                \"slot\": true\n            },\n            \"animals\": false,\n            \"inventory\": true,\n            \"checklist\": true,\n            \"autoquest\": true\n        },\n        \"maximum_gem_rarity\": \"Mythical\"\n    },\n    \"settings\": {\n        \"owoprefix\": \"w\", / owo bot's prefix on your server (recommended)\n        \"discordrpc\": false, / true or false (boolean)\n        \"chatfeedback\": true, / true or false (boolean)\n        \"autophrases\": true, / true or false (boolean)\n        \"autoresume\": false, / auto resume bot after captcha sloved. true or false (boolean)\n        \"autojoingiveaways\": true, / you are automatically entered into giveaways on the owo support server [you must be present on the server] (boolean)\n\n        \"checklist\": {\n            \"types\": {\n                \"daily\": true, / true or false (boolean)\n                \"cookie\": true, / true or false (boolean)\n                \"vote\": true / make true if you want automatic voting. true or false (boolean)\n            }\n        },\n\n        \"inventory\": {\n            \"use\": {\n                \"lootbox\": true, / true or false (boolean)\n                \"fabledlootbox\": false, / true or false (boolean)\n                \"crate\": true, / true or false (boolean)\n                \"gems\": true / true or false (boolean)\n            }\n        },\n\n        \"gamble\": {\n            \"coinflip\": {\n                \"default_amount\": 1000, / base bet value\n                \"max_amount\": 250000, / max bet value, will reset to base if current bet bigger\n                \"multiplier\": 1.0 / multiply when lose\n            },\n            \"slot\": {\n                \"default_amount\": 1000,\n                \"max_amount\": 250000,\n                \"multiplier\": 1.0\n            }\n        }\n\n        \"logging\": {\n            \"newlog\": true, / a log with a table for controlling, will remove old log\n            \"loglength\": 20, / how many lines of log at one moment (only affect when newlog is true)\n            \"showlogbeforeexit\": false / show a full log when user click ctrl + c (only affect when newlog is true)\n        },\n\n        \"safety\": {\n            \"autopause\": false, / emable auto pause the bot after a while\n            \"pauseafter\": 30, / how long the bot will run until getting paused (in minutes)\n            \"pausefor\": 5 / how long the bot will pause (in minutes)\n        },\n\n        \"captcha\": {\n            \"autosolve\": true, // (set to true if you want hcaptcha to solve) true or false (boolean)\n            \"autosolve_thread\": 1, // you choose how many threads the hcaptcha solver will run with (higher threads = faster captcha solver, you may need a powerful cpu for higher threads) (integer)\n            \"alerttype\": {\n                \"webhook\": true, / true or false (boolean)\n                \"webhookurl\": \"xxx\"  / If you set webhook to true, enter your webhook url here\n                \"desktop\": {\n                    \"force\": true, / true or false (boolean). Force the bot to show alert when detect captcha\n                    \"notification\": true, / true or false (boolean)\n                    \"prompt\": true / true or false (boolean)\n                },\n                \"termux\": {\n                    \"notification\": true, / true or false (boolean)\n                    \"vibration\": true, / true or false (boolean)\n                    \"vibration_time\": 5000, / recommended minimum of 3000 milliseconds (integer)\n                    \"toast\": true / true or false (boolean)\n                }\n            }\n        },\n    },\n    \"animals\": {\n        \"type\": {\n            \"sell\": false, / true or false (boolean)\n            \"sacrifice\": false / true or false (boolean)\n        },\n        \"animaltype\": {\n            \"common\": false, / true or false (boolean)\n            \"uncommon\": false, / true or false (boolean)\n            \"rare\": false, / true or false (boolean)\n            \"epic\": false, / true or false (boolean)\n            \"mythical\": false, / true or false (boolean)\n            \"patreon\": false, / true or false (boolean)\n            \"cpatreon\": false, / true or false (boolean)\n            \"legendary\": false, / true or false (boolean)\n            \"gem\": false, / true or false (boolean)\n            \"bot\": false, / true or false (boolean)\n            \"distorted\": false, / true or false (boolean)\n            \"fabled\": false, / true or false (boolean)\n            \"special\": false, / true or false (boolean)\n            \"hidden\": false / true or false (boolean)\n        }\n    },\n    \"interval\": { / interval for commands (milisecond)\n        \"hunt\": {\n            \"max\": 32000,\n            \"min\": 16000\n        },\n        \"battle\": {\n            \"max\": 32000,\n            \"min\": 16000\n        },\n        \"pray\": {\n            \"max\": 332000,\n            \"min\": 316000\n        },\n        \"coinflip\": {\n            \"max\": 32000,\n            \"min\": 16000\n        },\n        \"slot\": {\n            \"max\": 32000,\n            \"min\": 16000\n        },\n        \"animals\": {\n            \"max\": 661000,\n            \"min\": 610000\n        },\n    }\n    \"socket\": {\n        \"expressport\": 1243/ If another program is using port 1243 on your computer (I think it shouldn't be), you can avoid the conflict by changing the port here.\n    }\n}\n\n\n\n```\n\n## 💎・Get Token\n\n[BLOG - Geeks for Geeks - How to get discord token](https://www.geeksforgeeks.org/how-to-get-discord-token/)\n[YOUTUBE - GuideRealm - How To Get Your Token In Discord](https://www.youtube.com/watch?v=7J38Uy5Y4vA)\n\n### PC\n\n1. Open your preferred browser (with developer tools) and login to https://discord.com/app\n2. Press CTRL + Shift + I and open the Console tab.\n3. Paste the following code.\n4. The text returned (excluding the quotes `'`) will be your Discord account token.\n\n```js\n(webpackChunkdiscord_app.push([\n    [\"\"],\n    {},\n    (e) => {\n        for (let t in ((m = []), e.c)) m.push(e.c[t]);\n    },\n]),\nm)\n    .find((e) => e?.exports?.default?.getToken !== void 0)\n    .exports.default.getToken();\n```\n\n### Mobile/Android\n\n1. Open Chrome\n2. Create a bookmark (by clicking on star button in 3 dots menu)\n3. Edit it and set name to Token Finder and url to the following code:\n    ```javascript\n    javascript: (webpackChunkdiscord_app.push([[\"\"],{},(e)=>{m=[];for (let c in e.c) m.push(e.c[c]);},]),m).find((m) => m?.exports?.default?.getToken%20!==%20void%200)%20%20%20%20.exports.default.getToken();\n    ```\n4. Open https://discord.com/app and log in.\n5. Tap on search bar and type Token Finder (don't search it just type)\n6. Click on the bookmark named Token Finder.\n7. A new page will open, the text in the page will be your Discord account token.\n\n## 🖥️・WEBUI\n\n![](https://raw.githubusercontent.com/Mid0Hub/owofarmbot_stable/main/assets/webui.png)\n\n<!-- ## 📚・Discord RPC\n\n![](https://raw.githubusercontent.com/Mid0Hub/owofarmbot_stable/main/images/rpc.jpg) -->\n\n## ❗・Captcha Alert\n\n> [!NOTE]\n> If you want the captcha alert to work properly, turn off do not disturb, or you can use promt mode\n\nNotify mode:\n\n![](https://raw.githubusercontent.com/Mid0Hub/owofarmbot_stable/main/assets/notificationss.png)\n\nPromt mode:\n\n![](https://raw.githubusercontent.com/Mid0Hub/owofarmbot_stable/main/assets/promptss.png)\n\n## 🔗・Required Links\n\n[NodeJS (version 22.12.0)](https://nodejs.org/dist/v22.12.0/node-v22.12.0-x64.msi)<br>\n[Terminal](https://apps.microsoft.com/detail/9n0dx20hk701)<br>\n[Farm Bot ZIP File](https://github.com/Mid0Hub/owofarmbot_stable/archive/refs/heads/main.zip)\n\n## 🎈・Installation\n\n## For Beginners:\n\n### 💻・Windows\n\n```bash\nirm \"https://raw.githubusercontent.com/Mid0Hub/owofarmbot_stable/main/windows-setup.ps1\" | iex\n```\n\n## For Advanced Users:\n\n### 💻・Windows / Linux\n\n```bash\n# Check Node.js version:\nnode -v\n\n# Clone the files with git:\ngit clone --recurse-submodules https://github.com/Mid0Hub/owofarmbot_stable\n# Optionally you can also download from github at https://github.com/Mid0Hub/owofarmbot_stable/archive/refs/heads/main.zip\n\n# Enter into the cloned directory:\ncd owofarmbot_stable\n\n# Configure the bot:\nnotepad config.json # On windows\nnano config.json # On linux, can also use any other preferred file writing software\n\n# Run the bot:\nnode main.js\n\n# Start Bot:\nFrom WebUI, go to home and press the start button from the actions buttons there.\n\nFrom Discord, In config.json, type [prefix]start (example: e!start) with the prefix you set in config.json to the channel whose ID you entered in channelid\n\n# Pause Bot:\nFrom WebUI, go to home and press the pause button from the actions buttons there.\n\nFrom Discord, In config.json, type [prefix]pause (example: e!pause) with the prefix you set in config.json to the channel whose ID you entered in channelid\n\n# Resume Bot:\nFrom WebUI, go to home and press the resume button from the actions buttons there.\n\nFrom Discord, In config.json, type [prefix]resume (example: e!resume) with the prefix you set in config.json to the channel whose ID you entered in channelid\n\n# Stop Bot:\nFrom WebUI, go to home and press the reboot button from the actions buttons there.\n\nFrom Discord, In config.json, type [prefix]stop (example: e!reboot) with the prefix you set in config.json to the channel whose ID you entered in channelid\n\n\n```\n\n### 📱・Android (Termux)\n\nYou need to download the following two applications:<br>\n[Termux](https://f-droid.org/tr/packages/com.termux/)<br>\n[Termux-API for notifications](https://f-droid.org/tr/packages/com.termux.api/)\n\n```bash\n# Install:\napt update -y && apt upgrade -y\ncurl https://raw.githubusercontent.com/Mid0Hub/owofarmbot_stable/main/termux-setup.sh | bash\n\n\n# Configure the bot:\n\ncd owofarmbot_stable\nnano config.json\n\n# Run the bot:\nnode main.js\n\n# Start Bot:\nFrom WebUI, go to home and press the start button from the actions buttons there.\n\nFrom Discord, In config.json, type [prefix]start (example: e!start) with the prefix you set in config.json to the channel whose ID you entered in channelid\n\n# Pause Bot:\nFrom WebUI, go to home and press the pause button from the actions buttons there.\n\nFrom Discord, In config.json, type [prefix]pause (example: e!pause) with the prefix you set in config.json to the channel whose ID you entered in channelid\n\n# Resume Bot:\nFrom WebUI, go to home and press the resume button from the actions buttons there.\n\nFrom Discord, In config.json, type [prefix]resume (example: e!resume) with the prefix you set in config.json to the channel whose ID you entered in channelid\n\n# Stop Bot:\nFrom WebUI, go to home and press the reboot button from the actions buttons there.\n\nFrom Discord, In config.json, type [prefix]stop (example: e!reboot) with the prefix you set in config.json to the channel whose ID you entered in channelid\n\n```\n\n## 🥰・Contributors\n\n- Random-629671 [(GitHub)](https://github.com/Random-629671)\n- Hiếu LoneLy [(YouTube)](https://www.youtube.com/watch?v=w2tvj1oRSO8)\n\n## 📑・License\n\n[OwO Farm Bot Stable](https://github.com/Mid0Hub/owofarmbot_stable) is licensed under the terms of [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International](https://github.com/Mid0Hub/owofarmbot_stable/blob/main/LICENSE) (\"CC-BY-NC-SA-4.0\"). Commercial use is not allowed under this license. This includes any kind of revenue made with or based upon the software, even donations.\n\nThe CC-BY-NC-SA-4.0 allows you to:\n\n- [x] **Share** -- copy and redistribute the material in any medium or format\n- [x] **Adapt** -- remix, transform, and build upon the material\n\nUnder the following terms:\n\n- **Attribution** — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.\n- **NonCommercial** — You may not use the material for commercial purposes.\n- **ShareAlike** — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.\n\nMore information can be found [here](https://creativecommons.org/licenses/by-nc-sa/4.0/).\n"
  },
  {
    "path": "SECURITY.md",
    "content": "# Security Policy\n\n## Supported Versions\n\nLatest GitHub commit\n\n## Reporting a Vulnerability\n\nMido: [GitHub](https://github.com/Mid0aria), [Email](mailto:midopy@proton.me)\n\n## Disclaimer of Liability\n\nThis software is distributed under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.  \nIt is provided \"as is\", without any warranty or guarantee of any kind, either express or implied. This includes, but is not limited to, warranties of merchantability, fitness for a particular purpose, or non-infringement.\n\nThe authors and contributors shall not be held liable for any direct, indirect, incidental, special, exemplary, or consequential damages that may arise from the use of this software. Use of the software is at your own risk. By using, modifying, or redistributing this software, you agree to these terms.\n"
  },
  {
    "path": "bot.js",
    "content": "/* eslint-disable no-unused-vars */\n/* eslint-disable no-useless-escape */\n/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/*\n * Represents the extra configuration and state for the owofarmbot.\n * @typedef {Object} owofarmbot_stable_extra\n * @property {string} name - The name of the configuration.\n * @property {string} type - The type of the configuration.\n * @property {boolean} devmod - Indicates if the developer mode is enabled.\n * @property {boolean} istermux - Indicates if the bot is running on Termux.\n * @property {boolean} captchadetected - Indicates if a captcha has been detected.\n * @property {boolean} paused - Indicates if the bot is paused.\n * @property {boolean} owosupportserver - Indicates if the bot is connected to the owo support server.\n * @property {boolean} use - Indicates if the bot is in use.\n * @property {boolean} inventory - Indicates if the inventory feature is enabled.\n * @property {boolean} checklist - Indicates if the checklist feature is enabled.\n * @property {boolean} hunt - Indicates if the hunt feature is enabled.\n * @property {boolean} battle - Indicates if the battle feature is enabled.\n * @property {Object} total - The total counts of various activities.\n * @property {number} total.hunt - The total number of hunts.\n * @property {number} total.battle - The total number of battles.\n * @property {number} total.captcha - The total number of captchas.\n * @property {number} total.pray - The total number of prays.\n * @property {number} total.curse - The total number of curses.\n * @property {number} total.vote - The total number of votes.\n * @property {number} total.giveaway - The total number of giveaways.\n * @property {Object} gems - The configuration for gems.\n * @property {Array} gems.need - The list of needed gems.\n * @property {string} gems.use - The gem currently in use.\n * @property {boolean} gems.isevent - Indicates if there is an ongoing event.\n * @property {string} gems.rareLevel - The rare level of the gem.\n * @property {Object} gamble - The configuration for gambling.\n * @property {number} gamble.coinflip - The number of coin flips.\n * @property {number} gamble.slot - The number of slots played.\n * @property {number} gamble.cowoncywon - The amount of cowoncy won.\n * @property {Object} quest - The current quest information.\n * @property {string} quest.title - The title of the current quest.\n * @property {string} quest.reward - The reward for the current quest.\n * @property {string} quest.progress - The progress of the current quest.\n * @property {Object} temp - Temporary state information.\n * @property {boolean} temp.usedevent - Indicates if an event has been used.\n * @property {boolean} temp.usedcookie - Indicates if a cookie has been used.\n * @property {string} temp.animaltype - The type of animal currently being used.\n * @property {Object} temp.huntbot - The configuration for the hunt bot.\n * @property {string} temp.huntbot.maxtime - The maximum time for the hunt bot.\n * @property {number} temp.huntbot.recalltime - The recall time for the hunt bot.\n * @property {boolean} temp.huntbot.essence - Indicates if the hunt bot has essence.\n * @property {boolean} temp.isready - Indicates if the bot is ready.\n * @property {boolean} temp.started - Indicates if the bot has started.\n */\n\nprocess.emitWarning = (warning, type) => {\n    if (type === \"DeprecationWarning\") {\n        return;\n    }\n    console.warn(warning);\n};\n\nconst cp = require(\"child_process\");\n\nlet config,\n    DEVELOPER_MODE = false;\ntry {\n    const os = require(\"os\");\n    if (\n        os.userInfo().username === \"Mido\" ||\n        os.userInfo().username === \"enter ur pc username here\"\n    ) {\n        DEVELOPER_MODE = true;\n    }\n\n    if (DEVELOPER_MODE) {\n        config = require(\"./developer/config.json\");\n    } else {\n        config = require(\"./config.json\");\n    }\n} catch (error) {\n    console.log(\"ur bot hosting is gay\");\n    config = require(\"./config.json\");\n}\n\nconst isTermux =\n    process.env.PREFIX && process.env.PREFIX.includes(\"com.termux\");\nconst packageJson = require(\"./package.json\");\n\nconst fs = require(\"fs\");\nconst chalk = require(\"chalk\");\n\nconst { initializeWebSocket, broadcast } = require(\"./utils/webserver.js\");\nconst globalutil = require(\"./utils/globalutil.js\");\nconst updater = require(\"./utils/updater.js\");\nconst { getRandomBanner } = require(\"./utils/banner.js\");\n\n//client\nconst { Client, Collection, RichPresence } = require(\"discord.js-selfbot-v13\");\nconst client = new Client();\nconst extrac = new Client();\nlet owofarmbot_stable = {\n    name: \"owofarmbot_stable\",\n    type: \"Main\",\n    devmod: DEVELOPER_MODE,\n    istermux: isTermux,\n    captchadetected: false,\n    paused: true,\n    owosupportserver: false,\n    use: false,\n    inventory: false,\n    checklist: false,\n    hunt: false,\n    battle: false,\n    total: {\n        hunt: 0,\n        battle: 0,\n        pray: 0,\n        curse: 0,\n        huntbot: 0,\n        captcha: 0,\n        solvedcaptcha: 0,\n        vote: 0,\n        giveaway: 0,\n    },\n    gems: {\n        need: [],\n        use: \"\",\n        isevent: true,\n        rareLevel: 0,\n    },\n    gamble: {\n        coinflip: 0,\n        slot: 0,\n        cowoncywon: 0,\n    },\n    quest: {\n        title: \"Waiting...\",\n        reward: \"\",\n        progress: \"\",\n    },\n    temp: {\n        usedevent: false,\n        usedcookie: false,\n        animaltype: \"\",\n        huntbot: {\n            maxtime: \"\",\n            recalltime: 0,\n            essence: false,\n        },\n        intervals: {\n            checklist: 0,\n        },\n\n        isready: false,\n        started: false,\n    },\n};\n\nlet owofarmbot_stable_extra = {\n    name: \"owofarmbot_stable_extra\",\n    type: \"Extra\",\n    devmod: DEVELOPER_MODE,\n    istermux: isTermux,\n    captchadetected: false,\n    paused: true,\n    owosupportserver: false,\n    use: false,\n    inventory: false,\n    checklist: false,\n    hunt: false,\n    battle: false,\n    total: {\n        hunt: 0,\n        battle: 0,\n        pray: 0,\n        curse: 0,\n        huntbot: 0,\n        captcha: 0,\n        solvedcaptcha: 0,\n        vote: 0,\n        giveaway: 0,\n    },\n    gems: {\n        need: [],\n        use: \"\",\n        isevent: true,\n        rareLevel: \"\",\n    },\n    gamble: {\n        coinflip: 0,\n        slot: 0,\n        cowoncywon: 0,\n    },\n    quest: {\n        title: \"Waiting...\",\n        reward: \"\",\n        progress: \"\",\n    },\n    temp: {\n        usedevent: false,\n        usedcookie: false,\n        animaltype: \"\",\n        huntbot: {\n            maxtime: \"\",\n            recalltime: 0,\n            essence: false,\n        },\n        intervals: {\n            checklist: 0,\n        },\n        isready: false,\n        started: false,\n    },\n};\n\nconst notifier = require(\"node-notifier\");\nconst delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));\n\nfunction rpc(type) {\n    let status = new RichPresence(client)\n        .setApplicationId(\"1253757665520259173\")\n        .setType(\"PLAYING\")\n        .setName(\"OwO Farm Bot Stable\")\n        .setDetails(\"Auto Farming\")\n        .setState(`${client.global.paused ? \"Paused\" : \"Running\"}`)\n        .setStartTimestamp(Date.now())\n        .setAssetsLargeImage(\"1253758464816054282\")\n        .setAssetsLargeText(\"OwO Farm Bot Stable\")\n        .addButton(\"Farm Bot\", \"https://github.com/Mid0Hub/owofarmbot_stable\")\n        .addButton(\"Discord\", \"https://discord.gg/WzYXVbXt6C\");\n\n    if (config.settings.discordrpc) {\n        client.user.setPresence({ activities: [status] });\n        console.log(\n            chalk.blue(\"RPC\") +\n                \" > \" +\n                chalk.magenta(type) +\n                \" > \" +\n                chalk.green(`${client.global.paused ? \"Paused\" : \"Running\"}`),\n        );\n    }\n}\n\nclient.chalk = chalk;\nclient.fs = fs;\nclient.notifier = notifier;\nclient.childprocess = cp;\nclient.config = config;\nclient.basic = config.main;\nclient.delay = delay;\nclient.global = owofarmbot_stable;\nclient.rpc = rpc;\nclient.logger = require(\"./utils/logger.js\")(client);\nclient.globalutil = globalutil;\nclient.broadcast = broadcast;\n\nif (config.extra.enable) {\n    extrac.chalk = chalk;\n    extrac.fs = fs;\n    extrac.notifier = notifier;\n    extrac.childprocess = cp;\n    extrac.config = config;\n    extrac.basic = config.extra;\n    extrac.delay = delay;\n    extrac.global = owofarmbot_stable_extra;\n    extrac.rpc = rpc;\n    extrac.logger = require(\"./utils/logger.js\")(extrac);\n    extrac.globalutil = globalutil;\n    extrac.broadcast = broadcast;\n}\n\nprocess.title = `OwO Farm Bot Stable v${packageJson.version}`;\n\nif (\n    config.firstrun &&\n    !(config.main.token.length > 0 || config.main.token.length > 0)\n) {\n    (async () => {\n        console.clear();\n        console.log(\"Welcome to OwO Farm Bot Stable!\");\n        await globalutil.gatherUserDetails(config, \"main\", client);\n\n        const userextratokenanswer = await globalutil.askUser(\n            \"Do you want to use extra token? (yes/no): \",\n        );\n        if (\n            userextratokenanswer.toLowerCase() === \"yes\" ||\n            userextratokenanswer.toLowerCase() === \"y\"\n        ) {\n            await globalutil.gatherUserDetails(config, \"extra\", extrac);\n        }\n        if (DEVELOPER_MODE) {\n            config = require(\"./developer/config.json\");\n        } else {\n            config = require(\"./config.json\");\n        }\n        client.config = config;\n        client.basic = config.main;\n        if (config.extra.enable) {\n            extrac.config = config;\n            extrac.basic = config.extra;\n        }\n        console.clear();\n        console.log(getRandomBanner());\n        await initializeBot();\n    })();\n} else {\n    (async () => {\n        console.log(getRandomBanner());\n        await updater.checkUpdate(client, cp, packageJson);\n        await globalutil.verifyconfig(client, extrac, config);\n        await globalutil.getconfig(config, client);\n\n        await initializeBot();\n\n        client.logger.warn(\n            \"Bot\",\n            \"Help\",\n            `Use \\\"${config.prefix}start\\\" to start the bot, \\\"${config.prefix}resume\\\" to resume, and \\\"${config.prefix}pause\\\" to pause.`,\n        );\n    })();\n}\n\nasync function initializeBot() {\n    [\"aliases\", \"commands\"].forEach((x) => (client[x] = new Collection()));\n\n    fs.readdirSync(\"./handlers\").forEach((file) => {\n        require(`./handlers/${file}`)(client);\n    });\n\n    client.logger.warn(\"Bot\", \"Startup\", \"Logging in...\");\n    await client.login(config.main.token);\n\n    if (config.extra.enable) {\n        [\"aliases\", \"commands\"].forEach((x) => (extrac[x] = new Collection()));\n\n        fs.readdirSync(\"./handlers\").forEach((file) => {\n            require(`./handlers/${file}`)(extrac);\n        });\n        extrac.logger.warn(\"Bot\", \"Startup\", \"Logging in...\");\n        await extrac.login(config.extra.token);\n        client.logger.info(\n            \"WebUI\",\n            \"Startup\",\n            `WebUI started on http://localhost:${config.socket.expressport}`,\n        );\n        initializeWebSocket(client, extrac);\n    } else {\n        client.logger.info(\n            \"WebUI\",\n            \"Startup\",\n            `WebUI started on http://localhost:${config.socket.expressport}`,\n        );\n        initializeWebSocket(client);\n    }\n}\n\n/*FOR DEBUGGING\nBot flow to remember:\n\nBot.js check things\nCall ./handlers and pass the client into italics\n\ncommandshandler call all file in ./commands\neventhandler call all file in ./events\n\nthe start command call ./utils/mainHandler.js\n\nmainHandler check enabled commands then call the required file in ./utils/function\n\nlogging using ./utils/logger.js with passed client into it, so it can show which\nflow (main, extra) is calling it\n*/\n"
  },
  {
    "path": "commands/pause.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/*\n * Command to pause the bot.\n *\n * @module pause\n * @property {Object} config - The configuration object for the command.\n * @property {string} config.name - The name of the command.\n * @property {Array<string>} config.aliases - The aliases for the command.\n * @function run\n * @async\n * @param {Object} client - The client instance.\n * @param {Object} message - The message object.\n * @description Pauses the bot if it is not already paused. If the bot is already paused, it sends a feedback message if chat feedback is enabled.\n */\n\nmodule.exports = {\n    config: {\n        name: \"pause\",\n    },\n    run: async (client, message) => {\n        if (client.global.paused) {\n            await message.delete();\n            if (client.config.settings.chatfeedback) {\n                await message.channel.send({\n                    content: \"Bot is already paused!!!\",\n                });\n            }\n        } else {\n            client.global.paused = true;\n            client.rpc(\"update\");\n            await message.delete();\n            if (client.config.settings.chatfeedback) {\n                await message.channel.send({ content: \"Paused :)\" });\n            }\n        }\n    },\n};\n"
  },
  {
    "path": "commands/restart.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\nmodule.exports = {\n    config: {\n        name: \"restart\",\n        aliases: [\"reboot\", \"stop\"],\n    },\n    run: async (client, message) => {\n        await message.channel.send(\"The bot is being restarted...\");\n        client.destroy();\n\n        setTimeout(() => {\n            process.exit(1);\n        }, 1000);\n    },\n};\n"
  },
  {
    "path": "commands/resume.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Command to resume the bot's operations if it is paused.\n *\n * @module resume\n * @property {Object} config - Configuration for the command.\n * @property {string} config.name - The name of the command.\n * @function run\n * @async\n * @param {Object} client - The client instance of the bot.\n * @param {Object} message - The message object that triggered the command.\n * @returns {Promise<void>}\n * @description This command checks if the bot is paused. If it is, it resumes the bot's operations and sends a feedback message if chat feedback is enabled. If the bot is not paused, it informs the user that the bot is already working.\n */\n\nmodule.exports = {\n    config: {\n        name: \"resume\",\n    },\n    run: async (client, message) => {\n        if (client.global.paused) {\n            if (client.global.captchadetected) {\n                client.global.captchadetected = false;\n            }\n            client.global.paused = false;\n            client.rpc(\"update\");\n            await message.delete();\n            if (client.config.settings.chatfeedback) {\n                await message.channel.send({ content: \"Resuming :)\" });\n            }\n        } else {\n            await message.delete();\n            if (client.config.settings.chatfeedback) {\n                await message.channel.send({\n                    content: \"Bot is already working!!!\",\n                });\n            }\n        }\n    },\n};\n"
  },
  {
    "path": "commands/start.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Starts the OwO Farm Bot if it is paused.\n *\n * @module start\n * @property {Object} config - Configuration for the command.\n * @property {string} config.name - The name of the command.\n * @function run\n * @async\n * @param {Object} client - The client instance of the bot.\n * @param {Object} message - The message object that triggered the command.\n * @returns {Promise<void>}\n *\n * @example\n * // Usage in a Discord message\n * !start\n *\n * @description\n * This command checks if the bot is paused. If it is, it resumes the bot's operation,\n * updates the bot's status, and optionally sends feedback to the chat. If the bot is\n * already running, it informs the user that the bot is already working.\n */\n\nmodule.exports = {\n    config: {\n        name: \"start\",\n    },\n    run: async (client, message) => {\n        if (client.global.paused) {\n            if (client.global.captchadetected) {\n                client.global.captchadetected = false;\n            }\n            client.global.paused = false;\n            client.rpc(\"update\");\n            await message.delete();\n            if (!client.global.temp.started) {\n                client.global.temp.started = true;\n                if (client.config.settings.chatfeedback) {\n                    await message.channel.send({\n                        content: \"BOT started have fun ;)\",\n                    });\n                }\n\n                setTimeout(() => {\n                    require(\"../utils/mainHandler.js\")(client);\n                }, 1000);\n            } else {\n                if (client.config.settings.chatfeedback) {\n                    await message.channel.send({\n                        content: \"Restarted BOT after a pause :3\",\n                    });\n                }\n            }\n        } else {\n            await message.delete();\n            if (client.config.settings.chatfeedback) {\n                await message.channel.send({\n                    content: \"Bot is already working!!!\",\n                });\n            }\n        }\n    },\n};\n"
  },
  {
    "path": "commands/stats.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Generates a string containing the statistics of the OwO Farm Bot Stable.\n *\n * @param {Object} totals - An object containing the totals for various activities.\n * @param {number} totals.hunt - The total number of hunts.\n * @param {number} totals.battle - The total number of battles.\n * @param {number} totals.captcha - The total number of captchas.\n * @param {number} totals.pray - The total number of prays.\n * @param {number} totals.curse - The total number of curses.\n * @param {number} totals.vote - The total number of votes.\n * @param {number} totals.giveaway - The total number of giveaways.\n * @param {string} uptime - The uptime of the bot.\n * @returns {string} A formatted string containing the statistics.\n */\n\nmodule.exports = {\n    config: {\n        name: \"stats\",\n    },\n    run: async (client, message) => {\n        let totals = client.global.total;\n\n        const seconds = Math.floor(process.uptime());\n        const days = Math.floor(seconds / 86400);\n        const hours = Math.floor((seconds % 86400) / 3600);\n        const minutes = Math.floor((seconds % 3600) / 60);\n        const uptime = `${days}d ${hours}h ${minutes}m ${seconds % 60}s`;\n        let stats = `\nOwO Farm Bot Stable Statistics:\n===================\n- Hunt: ${totals.hunt}\n- Battle: ${totals.battle}\n- Captcha: ${totals.captcha}\n- Pray: ${totals.pray}\n- Curse: ${totals.curse}\n- Vote: ${totals.vote}\n- Giveaway: ${totals.giveaway}\n===================\n- Uptime: ${uptime}\n        `;\n\n        await message.delete();\n        await message.channel.send(\"```\" + stats + \"```\");\n    },\n};\n"
  },
  {
    "path": "config.json",
    "content": "{\n    \"firstrun\": \"true\",\n    \"prefix\": \"!\",\n    \"main\": {\n        \"token\": \"\",\n        \"userid\": \"\",\n        \"commandschannelid\": \"\",\n        \"huntbotchannelid\": \"\",\n        \"owodmchannelid\": \"\",\n        \"gamblechannelid\": \"\",\n        \"autoquestchannelid\": \"\",\n        \"autostart\": false,\n\n        \"commands\": {\n            \"hunt\": true,\n            \"battle\": true,\n            \"pray\": false,\n            \"curse\": true,\n            \"huntbot\": {\n                \"enable\": true,\n                \"maxtime\": 10,\n                \"upgrade\": false,\n                \"upgradetype\": \"duration\"\n            },\n            \"gamble\": {\n                \"coinflip\": true,\n                \"slot\": true\n            },\n            \"animals\": false,\n            \"inventory\": true,\n            \"checklist\": true,\n            \"autoquest\": true\n        },\n        \"maximum_gem_rarity\": \"Mythical\"\n    },\n    \"extra\": {\n        \"enable\": false,\n        \"token\": \"\",\n        \"userid\": \"\",\n        \"commandschannelid\": \"\",\n        \"huntbotchannelid\": \"\",\n        \"owodmchannelid\": \"\",\n        \"gamblechannelid\": \"\",\n        \"autoquestchannelid\": \"\",\n        \"autostart\": false,\n\n        \"commands\": {\n            \"hunt\": true,\n            \"battle\": true,\n            \"pray\": false,\n            \"curse\": true,\n            \"huntbot\": {\n                \"enable\": true,\n                \"maxtime\": 10,\n                \"upgrade\": false,\n                \"upgradetype\": \"duration\"\n            },\n            \"tomain\": true,\n            \"gamble\": {\n                \"coinflip\": true,\n                \"slot\": true\n            },\n            \"animals\": false,\n            \"inventory\": true,\n            \"checklist\": true,\n            \"autoquest\": true\n        },\n        \"maximum_gem_rarity\": \"Mythical\"\n    },\n    \"settings\": {\n        \"owoprefix\": \"owo\",\n        \"discordrpc\": false,\n        \"chatfeedback\": true,\n        \"autophrases\": true,\n        \"autoresume\": false,\n        \"autojoingiveaways\": false,\n\n        \"checklist\": {\n            \"types\": {\n                \"daily\": true,\n                \"cookie\": false,\n                \"vote\": false\n            }\n        },\n\n        \"inventory\": {\n            \"use\": {\n                \"lootbox\": true,\n                \"fabledlootbox\": false,\n                \"crate\": true,\n                \"gems\": true\n            }\n        },\n        \"gamble\": {\n            \"coinflip\": {\n                \"default_amount\": 1000,\n                \"max_amount\": 250000,\n                \"multiplier\": 1.0\n            },\n            \"slot\": {\n                \"default_amount\": 1000,\n                \"max_amount\": 250000,\n                \"multiplier\": 1.0\n            }\n        },\n\n        \"logging\": {\n            \"newlog\": true,\n            \"loglength\": 20,\n            \"showlogbeforeexit\": false\n        },\n\n        \"safety\": {\n            \"autopause\": true,\n            \"pauseafter\": 30,\n            \"pausefor\": 5\n        },\n\n        \"captcha\": {\n            \"autosolve\": true,\n            \"autosolve_thread\": 1,\n            \"alerttype\": {\n                \"webhook\": true,\n                \"webhookurl\": \"xxx\",\n                \"desktop\": {\n                    \"force\": true,\n                    \"notification\": true,\n                    \"prompt\": true\n                },\n                \"termux\": {\n                    \"notification\": true,\n                    \"vibration\": true,\n                    \"vibration_time\": 5000,\n                    \"toast\": true\n                }\n            }\n        }\n    },\n    \"animals\": {\n        \"type\": {\n            \"sell\": false,\n            \"sacrifice\": false\n        },\n        \"animaltype\": {\n            \"common\": false,\n            \"uncommon\": false,\n            \"rare\": false,\n            \"epic\": false,\n            \"mythical\": false,\n            \"patreon\": false,\n            \"cpatreon\": false,\n            \"legendary\": false,\n            \"gem\": false,\n            \"bot\": false,\n            \"distorted\": false,\n            \"fabled\": false,\n            \"special\": false,\n            \"hidden\": false\n        }\n    },\n    \"interval\": {\n        \"hunt\": {\n            \"max\": 32000,\n            \"min\": 16000\n        },\n        \"battle\": {\n            \"max\": 32000,\n            \"min\": 16000\n        },\n        \"pray\": {\n            \"max\": 332000,\n            \"min\": 316000\n        },\n        \"coinflip\": {\n            \"max\": 32000,\n            \"min\": 16000\n        },\n        \"slot\": {\n            \"max\": 32000,\n            \"min\": 16000\n        },\n        \"animals\": {\n            \"max\": 661000,\n            \"min\": 610000\n        }\n    },\n    \"socket\": {\n        \"expressport\": 1243\n    }\n}\n"
  },
  {
    "path": "data/enteredGiveaways.json",
    "content": "{}\n"
  },
  {
    "path": "eslint.config.mjs",
    "content": "import globals from \"globals\";\nimport pluginJs from \"@eslint/js\";\n\n/** @type {import('eslint').Linter.Config[]} */\nexport default [\n    { files: [\"**/*.js\"], languageOptions: { sourceType: \"commonjs\" } },\n    { languageOptions: { globals: globals.node } },\n    pluginJs.configs.recommended,\n];\n"
  },
  {
    "path": "events/client/ready.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Retrieves the guild with the specified ID from the client's guild cache.\n *\n * @type {Guild}\n * @constant\n */\n\nmodule.exports = async (client) => {\n    client.logger.info(\n        \"Bot\",\n        \"Startup\",\n        client.chalk.red(`${client.user.username}`) + \" is ready!\",\n    );\n    setupSweeper(client);\n\n    client.global.temp.isready = true;\n    if (client.config.settings.autojoingiveaways) {\n        const mylovetiffani = client.guilds.cache.get(\"420104212895105044\"); // ^^\n\n        if (mylovetiffani) {\n            client.logger.info(\n                \"Bot\",\n                \"Startup\",\n                \"You are in the OwO Bot Support server. I will automatically enter the giveaways :)\",\n            );\n            client.global.owosupportserver = true;\n        } else {\n            client.logger.alert(\n                \"Bot\",\n                \"Startup\",\n                \"You are not in the OwO Bot Support server. Please join to the server and restart the bot to automatically enter giveaways\",\n            );\n        }\n    }\n\n    client.rpc(\"start\");\n    if (client.basic.autostart) {\n        if (client.global.type === \"Extra\") {\n            await client.delay(3500);\n        }\n        if (client.global.paused) {\n            if (client.global.captchadetected) {\n                client.global.captchadetected = false;\n            }\n            client.global.paused = false;\n            client.rpc(\"update\");\n\n            if (!client.global.temp.started) {\n                client.global.temp.started = true;\n                client.logger.info(\n                    \"Bot\",\n                    \"AutoStart\",\n                    \"BOT started have fun ;)\",\n                );\n\n                setTimeout(() => {\n                    require(\"../../utils/mainHandler.js\")(client);\n                }, 1000);\n            } else {\n                client.logger.info(\n                    \"Bot\",\n                    \"AutoStart\",\n                    \"Restarted BOT after a pause :3\",\n                );\n            }\n        } else {\n            client.logger.warn(\"Bot\", \"AutoStart\", \"Bot is already working!!!\");\n        }\n    }\n};\n\nfunction setupSweeper(botClient) {\n    setInterval(\n        () => {\n            botClient.channels.cache.forEach((channel) => {\n                if (channel.messages) {\n                    const messagesArray = Array.from(\n                        channel.messages.cache.values(),\n                    );\n                    messagesArray.sort(\n                        (a, b) => a.createdTimestamp - b.createdTimestamp,\n                    );\n                    const messagesToDelete = Math.floor(\n                        messagesArray.length * 0.85,\n                    );\n                    for (let i = 0; i < messagesToDelete; i++) {\n                        channel.messages.cache.delete(messagesArray[i].id);\n                    }\n                }\n            });\n\n            botClient.logger.warn(\n                \"Bot\",\n                \"Cache\",\n                `Cleared oldest 85% of message cache for [${botClient.user.username}].`,\n            );\n        },\n        5 * 60 * 1000,\n    );\n}\n"
  },
  {
    "path": "events/message/messageCreate.js",
    "content": "/* eslint-disable no-useless-escape */\n/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Checks if a message contains suspicious content that might indicate a web captcha message.\n *\n * @param {string} msgcontent - The content of the message to check.\n * @param {boolean} helloChristopher - A flag indicating if a specific condition is met.\n * @param {boolean} canulickmymonster - Another flag indicating if a different specific condition is met.\n * @returns {boolean} - Returns true if the message contains suspicious content or if either of the flags are true.\n */\n\nfunction isWebCaptchaMessage(msgcontent, helloChristopher, canulickmymonster) {\n    const suspiciousPhrases = [\".com\", \"please use the link\"];\n\n    const hasSuspiciousContent = suspiciousPhrases.some((phrase) =>\n        msgcontent.includes(phrase),\n    );\n\n    return hasSuspiciousContent || helloChristopher || canulickmymonster;\n}\n\nmodule.exports = async (client, message) => {\n    const CHANNEL_IDS = [\n        client.basic.commandschannelid,\n        client.basic.huntbotchannelid,\n        client.basic.gamblechannelid,\n        client.basic.autoquestchannelid,\n        client.basic.owodmchannelid,\n    ];\n\n    if (message.author.id === \"408785106942164992\") {\n        let rawmsgcontent = message.content.toLowerCase();\n        let channeltype = message.channel.type;\n        let msgcontent = client.globalutil.removeInvisibleChars(rawmsgcontent);\n        let helloChristopher, canulickmymonster;\n\n        if (\n            CHANNEL_IDS.includes(message.channel.id) &&\n            message.content.toLowerCase().includes(`<@${client.user.id}>`) &&\n            (msgcontent.includes(\"please complete your captcha\") ||\n                msgcontent.includes(\"verify that you are human\") ||\n                msgcontent.includes(\"are you a real human\") ||\n                msgcontent.includes(\"i​t m​ay resu​lt i​n a​ ban\") ||\n                msgcontent.includes(\n                    \"p​lease complet​e thi​s with​in 1​0 m​inutes\",\n                ) ||\n                msgcontent.includes(\n                    \"please use the link below so i can check\",\n                ) ||\n                msgcontent.includes(\"captcha\")) &&\n            !client.global.captchadetected\n        ) {\n            client.global.paused = true;\n            client.global.captchadetected = true;\n            client.global.total.captcha++;\n            client.broadcast({\n                action: \"update\",\n                type: \"captcha\",\n                progress: client.global.total.captcha,\n                global: client.global,\n            });\n            client.broadcast({\n                action: \"update\",\n                type: \"botstatus\",\n                status: \"Paused\",\n                global: client.global,\n            });\n            client.logger.alert(\"Bot\", \"Captcha\", `Captcha Detected!`);\n            client.logger.info(\n                \"Bot\",\n                \"Captcha\",\n                `Total Captcha: ${client.global.total.captcha}`,\n            );\n            client.logger.warn(\n                \"Bot\",\n                \"Captcha\",\n                `Bot Paused: ${client.global.paused}`,\n            );\n\n            if (\n                message.components.length > 0 &&\n                message.components[0].components[0]\n            ) {\n                helloChristopher = message.components[0].components.find(\n                    (button) => button.url.toLowerCase() === \"owobot.com\",\n                );\n                canulickmymonster = message.components[0].components[0].url\n                    .toLowerCase()\n                    .includes(\"owobot.com\");\n            }\n\n            /**\n             * Desktop Notifications\n             */\n            if (\n                (!client.config.settings.captcha.autosolve ||\n                    client.config.settings.captcha.alerttype.desktop.force) &&\n                !client.global.istermux &&\n                client.config.settings.captcha.alerttype.desktop.notification\n            ) {\n                client.childprocess.spawn(\"node\", [\"./utils/function/warn.js\"]);\n            }\n            if (\n                (!client.config.settings.captcha.autosolve ||\n                    client.config.settings.captcha.alerttype.desktop.force) &&\n                !client.global.istermux &&\n                client.config.settings.captcha.alerttype.desktop.prompt\n            ) {\n                var promptmessage = `Captcha detected! Solve the captcha and type ${client.config.prefix}resume in farm channel`;\n\n                const psCommands = [\n                    \"Add-Type -AssemblyName PresentationFramework\",\n                    \"[System.Windows.MessageBox]::\" +\n                        `Show(\\'${promptmessage}\\', \\'OwO Farm Bot Stable\\', \\'OK\\', \\'Warning\\')`,\n                ];\n                const psScript = psCommands.join(\"; \");\n                client.childprocess.exec(\n                    `powershell.exe -ExecutionPolicy Bypass -Command \"${psScript}\"`,\n                );\n            }\n            if (\n                (!client.config.settings.captcha.autosolve ||\n                    client.global.istermux) &&\n                client.config.settings.captcha.alerttype.webhook &&\n                client.config.settings.captcha.alerttype.webhookurl.length > 10\n            ) {\n                const { WebhookClient } = require(\"discord.js-selfbot-v13\");\n                const webhookClient = new WebhookClient({\n                    url: client.config.settings.captcha.alerttype.webhookurl,\n                });\n                let message = `#Token Type: ${client.global.type}\\n**🚨Captcha detected!🚨 Solve the captcha**`;\n\n                if (!client.config.settings.autoresume) {\n                    message += `and type ${client.config.prefix}resume in farm channel`;\n                }\n\n                await webhookClient.send({\n                    content: `${message}\\n||@everyone||`,\n                    username: \"OwO Farm Bot Stable\",\n                });\n            }\n\n            /**\n             * Termux Notifications\n             */\n            if (client.global.istermux) {\n                if (\n                    client.config.settings.captcha.alerttype.termux.notification\n                ) {\n                    const termuxnotificationCommand = `termux-notification --title \"OwO Farm Bot Stable\" --content \"${client.user.username} - Captcha Detected\" --priority high --button1 \"Open Captcha Page\" --button1-action \"termux-open-url https://owobot.com/captcha\"`;\n\n                    client.childprocess.exec(termuxnotificationCommand);\n                }\n\n                if (client.config.settings.captcha.alerttype.termux.vibration) {\n                    let vibrationtime =\n                        client.config.settings.captcha.alerttype.termux\n                            .vibration;\n                    if (isNaN(vibrationtime) || vibrationtime < 1000) {\n                        vibrationtime = 1000;\n                    }\n                    const termuxvibrationCommand = `termux-vibrate -f -d ${vibrationtime}`;\n\n                    client.childprocess.exec(termuxvibrationCommand);\n                }\n                if (client.config.settings.captcha.alerttype.termux.toast) {\n                    const termuxtoastCommand = `termux-toast -c black -b red 'OwO Farm Bot Stable - Captcha Detected!'`;\n\n                    client.childprocess.exec(termuxtoastCommand);\n                }\n            }\n\n            if (\n                client.config.settings.captcha.autosolve &&\n                isWebCaptchaMessage(\n                    msgcontent,\n                    helloChristopher,\n                    canulickmymonster,\n                )\n            ) {\n                let spawnthread =\n                    client.config.settings.captcha.autosolve_thread;\n                if (isNaN(spawnthread) || spawnthread < 1) {\n                    spawnthread = 1;\n                }\n                switch (process.platform || client.global.istermux) {\n                    case \"android\":\n                        client.logger.warn(\n                            \"Bot\",\n                            \"Captcha\",\n                            \"Unsupported platform!\",\n                        );\n                        return;\n                    default:\n                        client.logger.info(\n                            \"Bot\",\n                            \"Captcha\",\n                            `Opening automated Chromium browser... Thread Count: ${spawnthread}`,\n                        );\n\n                        for (\n                            let spawncount = 0;\n                            spawncount < spawnthread;\n                            spawncount++\n                        ) {\n                            client.childprocess.spawn(\"node\", [\n                                \"./utils/captcha.js\",\n                                `--token=${client.basic.token}`,\n                                `--userid=${client.user.id}`,\n                            ]);\n                            await client.delay(3000);\n                        }\n                        break;\n                }\n            }\n        }\n        if (msgcontent.includes(\"i have verified\") && channeltype === \"DM\") {\n            client.broadcast({\n                action: \"closechrome\",\n                type: \"captcha\",\n                status: \"solved\",\n                userid: client.user.id,\n            });\n\n            client.global.captchadetected = false;\n            client.global.total.solvedcaptcha++;\n            client.broadcast({\n                action: \"update\",\n                type: \"solvedcaptcha\",\n                progress: client.global.total.solvedcaptcha,\n                global: client.global,\n            });\n            if (client.config.settings.autoresume) {\n                client.global.paused = false;\n                client.logger.warn(\n                    \"Bot\",\n                    \"Captcha\",\n                    `Captcha solved. Resuming bot automatically...`,\n                );\n                client.broadcast({\n                    action: \"update\",\n                    type: \"botstatus\",\n                    status: \"Running\",\n                    global: client.global,\n                });\n            } else {\n                client.logger.warn(\n                    \"Bot\",\n                    \"Captcha\",\n                    `Captcha Solved, please resume by using the command \\\"${client.config.prefix}resume\\\" to resume`,\n                );\n            }\n        }\n    }\n\n    /**\n     * CMD\n     */\n    let PREFIX = client.config.prefix;\n\n    const escapeRegex = (str) => str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n    const prefixRegex = new RegExp(\n        `^(<@!?${client.user.id}>|${escapeRegex(PREFIX)})\\\\s*`,\n    );\n    if (!prefixRegex.test(message.content)) return;\n    const [matchedPrefix] = message.content.match(prefixRegex);\n    const args = message.content\n        .slice(matchedPrefix.length)\n        .trim()\n        .split(/ +/g);\n    const command = args.shift().toLowerCase();\n\n    const cmd =\n        client.commands.get(command) ||\n        client.commands.get(client.aliases.get(command));\n\n    if (cmd) {\n        if (message.author.id !== client.basic.userid) return;\n        cmd.run(client, message, args);\n    }\n};\n"
  },
  {
    "path": "handlers/antiCrash.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Sets up listeners to handle various types of process crashes and logs them using the client's chalk and logger utilities.\n *\n * @param {Object} client - The client object that contains the chalk and logger utilities.\n */\n\nmodule.exports = (client) => {\n    const logError = (type, err, origin = null) => {\n        const errMessage = `--------------------------------------\nError: ${err?.message || err}\nStack: ${err?.stack || \"No stack trace available\"}\nOrigin: ${origin || \"N/A\"}\n--------------------------------------`;\n\n        client.logger.alert(\n            \"Bot\",\n            \"Anticrash\",\n            \"An crash happened! \" + type + \"\\n\" + errMessage,\n        );\n    };\n\n    process.on(\"unhandledRejection\", (reason, p) => {\n        logError(\"Unhandled Rejection\", reason, p);\n    });\n\n    process.on(\"uncaughtException\", (err, origin) => {\n        logError(\"Uncaught Exception\", err, origin);\n    });\n    /* well this and above is the same idk why\n    process.on(\"uncaughtExceptionMonitor\", (err, origin) => {\n        logError(\"Uncaught Exception Monitor\", err, origin);\n    });\n*/\n};\n"
  },
  {
    "path": "handlers/commandHandler.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Reads the command files from the './commands/' directory and filters out only the JavaScript files.\n *\n * @constant {string[]} commands - An array of filenames that end with '.js' in the './commands/' directory.\n */\n\nmodule.exports = async (client) => {\n    const commands = client.fs\n        .readdirSync(`./commands/`)\n        .filter((d) => d.endsWith(\".js\"));\n    for (let file of commands) {\n        let pull = require(`../commands/${file}`);\n        client.commands.set(pull.config.name, pull);\n        if (pull.config.aliases)\n            pull.config.aliases.forEach((a) =>\n                client.aliases.set(a, pull.config.name),\n            );\n    }\n};\n"
  },
  {
    "path": "handlers/eventHandler.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Loads event handler files from the specified directory and binds them to the client.\n *\n * @param {string} dirs - The directory name within the 'events' folder to load event handlers from.\n */\n\nmodule.exports = async (client, message) => {\n    const load = (dirs) => {\n        const events = client.fs\n            .readdirSync(`./events/${dirs}/`)\n            .filter((d) => d.endsWith(\".js\"));\n        for (let file of events) {\n            const evt = require(`../events/${dirs}/${file}`);\n            let eName = file.split(\".\")[0];\n            client.on(eName, evt.bind(null, client));\n        }\n    };\n\n    client.fs.readdirSync(\"./events/\").forEach((x) => load(x));\n};\n"
  },
  {
    "path": "main.js",
    "content": "/* eslint-disable no-unused-vars */\n/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\nprocess.emitWarning = (warning, type) => {\n    if (type === \"DeprecationWarning\") {\n        return;\n    }\n    console.warn(warning);\n};\n\nconst cp = require(\"child_process\");\n\nconst isTermux =\n    process.env.PREFIX && process.env.PREFIX.includes(\"com.termux\");\n\nconst packageJson = require(\"./package.json\");\n\n// auto install dependencies\nfor (let dep of Object.keys(packageJson.dependencies)) {\n    if (\n        isTermux &&\n        (dep === \"puppeteer\" ||\n            dep === \"puppeteer-real-browser\" ||\n            dep === \"puppeteer-extra-plugin-adblocker\")\n    ) {\n        console.log(\"Skipping Puppeteer in Termux environment\");\n        continue;\n    }\n\n    try {\n        require.resolve(dep);\n    } catch (err) {\n        console.log(`Installing dependencies...`);\n        try {\n            cp.execSync(`npm install ${dep}`, { stdio: \"inherit\" });\n        } catch (installErr) {\n            console.error(`Failed to install ${dep}:`, installErr.message);\n        }\n    }\n}\n\nconst additionalDeps = [\n    \"puppeteer\",\n    \"puppeteer-real-browser\",\n    \"puppeteer-extra-plugin-adblocker\",\n];\n\nfor (let dep of additionalDeps) {\n    if (isTermux) {\n        console.log(`Termux environment detected. Skipping ${dep}.`);\n        continue;\n    }\n\n    try {\n        require.resolve(dep);\n    } catch (err) {\n        console.log(`${dep} is not installed. Installing ${dep}...`);\n        try {\n            cp.execSync(`npm install ${dep}`, { stdio: \"inherit\" });\n        } catch (installErr) {\n            console.error(`Failed to install ${dep}:`, installErr.message);\n        }\n    }\n}\n\nconst cluster = require(\"cluster\");\nconst path = require(\"path\");\nconst fs = require(\"fs\").promises;\nconst express = require(\"express\");\nconst http = require(\"http\");\nconst bodyParser = require(\"body-parser\");\nlet config,\n    DEVELOPER_MODE = false;\ntry {\n    const os = require(\"os\");\n    if (\n        os.userInfo().username === \"Mido\" ||\n        os.userInfo().username === \"enter ur pc username here\"\n    ) {\n        DEVELOPER_MODE = true;\n    }\n\n    if (DEVELOPER_MODE) {\n        config = require(\"./developer/config.json\");\n    } else {\n        config = require(\"./config.json\");\n    }\n} catch (error) {\n    console.log(\"ur bot hosting is gay\");\n    config = require(\"./config.json\");\n}\n\nif (cluster.isMaster) {\n    const app = express();\n    const server = http.createServer(app);\n    app.set(\"view engine\", \"ejs\");\n    app.use(bodyParser.json());\n    app.set(\"views\", path.join(__dirname, \"webui\"));\n    app.use(\"/assets\", express.static(path.join(__dirname, \"webui\", \"assets\")));\n\n    app.use(\n        \"/background\",\n        express.static(path.join(__dirname, \"webui\", \"background\")),\n    );\n\n    const getFiles = async (dir, extensions) => {\n        try {\n            const files = await fs.readdir(dir);\n            return files\n                .filter((file) =>\n                    extensions.includes(path.extname(file).toLowerCase()),\n                )\n                .map((file) => `/background/${path.basename(dir)}/${file}`); // Fix URL Path\n        } catch (err) {\n            console.error(`Error reading ${dir}:`, err);\n            return [];\n        }\n    };\n\n    app.get(\"/\", async (req, res) => {\n        const images = await getFiles(\n            path.join(__dirname, \"webui\", \"background\", \"image\"),\n            [\".jpg\", \".png\", \".jpeg\", \".webp\"],\n        );\n        const videos = await getFiles(\n            path.join(__dirname, \"webui\", \"background\", \"video\"),\n            [\".mp4\"],\n        );\n\n        res.render(\"index\", { images, videos });\n    });\n\n    app.get(\"/logs\", (req, res) => {\n        res.setHeader(\"Content-Type\", \"text/event-stream\");\n        res.setHeader(\"Cache-Control\", \"no-cache\");\n        res.setHeader(\"Connection\", \"keep-alive\");\n        res.flushHeaders();\n        cluster.on(\"message\", (worker, message) => {\n            if (message.type == \"log\") {\n                res.write(`data: ${JSON.stringify(message.message)}\\n\\n`);\n            }\n        });\n    });\n\n    app.get(\"/api/get-config\", async (req, res) => {\n        try {\n            let data;\n            if (DEVELOPER_MODE) {\n                data = await fs.readFile(\n                    path.join(__dirname, \"./developer/config.json\"),\n                    \"utf8\",\n                );\n            } else {\n                data = await fs.readFile(\n                    path.join(__dirname, \"./config.json\"),\n                    \"utf8\",\n                );\n            }\n\n            res.json(JSON.parse(data));\n        } catch (err) {\n            console.error(\"Config okuma hatası:\", err);\n            res.status(500).json({ error: \"Failed to read config file\" });\n        }\n    });\n\n    async function updateConfig(settings) {\n        let configPath;\n        if (DEVELOPER_MODE) {\n            configPath = path.join(__dirname, \"./developer/config.json\");\n        } else {\n            configPath = path.join(__dirname, \"./config.json\");\n        }\n\n        let currentConfig = {};\n        try {\n            const configFile = await fs.readFile(configPath, \"utf8\");\n            currentConfig = JSON.parse(configFile);\n        } catch (err) {\n            console.error(\"Config okuma hatası:\", err);\n        }\n\n        const convertedSettings = {};\n        const excludeKeys = [\n            \"token\",\n            \"userid\",\n            \"commandschannelid\",\n            \"huntbotchannelid\",\n            \"owodmchannelid\",\n            \"gamblechannelid\",\n            \"autoquestchannelid\",\n        ];\n\n        for (const [key, value] of Object.entries(settings)) {\n            if (key === \"settingtype\") continue;\n\n            const keys = key.split(\"-\");\n            let current = convertedSettings;\n\n            for (let i = 0; i < keys.length - 1; i++) {\n                if (!current[keys[i]]) {\n                    current[keys[i]] = {};\n                }\n                current = current[keys[i]];\n            }\n\n            const lastKey = keys[keys.length - 1];\n\n            if (\n                keys[0] === \"animals\" &&\n                keys[1] === \"type\" &&\n                typeof value === \"string\"\n            ) {\n                current[\"type\"] = {\n                    sell: value === \"sell\",\n                    sacrifice: value === \"sacrifice\",\n                };\n            } else if (\n                !excludeKeys.includes(lastKey) &&\n                !isNaN(value) &&\n                value !== true &&\n                value !== false\n            ) {\n                current[lastKey] = parseInt(value, 10);\n            } else {\n                current[lastKey] = value;\n            }\n        }\n\n        const updatedConfig = deepMerge(currentConfig, convertedSettings);\n\n        await fs.writeFile(configPath, JSON.stringify(updatedConfig, null, 2));\n\n        return updatedConfig;\n    }\n\n    function deepMerge(target, source) {\n        if (typeof target !== \"object\" || typeof source !== \"object\")\n            return source;\n\n        for (const key in source) {\n            if (\n                typeof source[key] === \"object\" &&\n                !Array.isArray(source[key])\n            ) {\n                if (!target[key]) Object.assign(target, { [key]: {} });\n                deepMerge(target[key], source[key]);\n            } else {\n                Object.assign(target, { [key]: source[key] });\n            }\n        }\n\n        return target;\n    }\n\n    app.post(\"/save-settings\", async (req, res) => {\n        try {\n            const settings = req.body;\n\n            const updatedConfig = await updateConfig(settings);\n\n            config = updatedConfig;\n\n            res.json({\n                message:\n                    \"Settings have been saved. Please reboot to take effect!\",\n                type: \"warning\",\n            });\n        } catch (error) {\n            console.error(\"Settings kaydetme hatası:\", error);\n            res.status(500).json({\n                message: \"Settings could not be saved. Please try again!\",\n                type: \"error\",\n            });\n        }\n    });\n\n    server.listen(config.socket.expressport, () => {});\n\n    let chill = cluster.fork();\n\n    server.on(\"upgrade\", (request, socket, head) => {\n        if (request.headers[\"upgrade\"] === \"websocket\") {\n            if (!chill || chill.killed) {\n                socket.destroy();\n                return;\n            }\n            const requestData = {\n                url: request.url,\n                headers: request.headers,\n                method: request.method,\n            };\n            chill.send({ type: \"upgrade\" });\n\n            chill.once(\"message\", (msg) => {\n                if (msg === \"ready-for-upgrade\") {\n                    chill.send(\n                        { type: \"upgrade-socket\", requestData, head },\n                        socket,\n                    );\n                } else {\n                    socket.destroy();\n                }\n            });\n        }\n    });\n\n    cluster.on(\"exit\", () => {\n        console.log(\"The bot is down, restarting...\");\n        chill = cluster.fork();\n    });\n} else {\n    require(\"./bot.js\");\n}\n\n/*\nwow, this project come so big that i can't remember which is which\nso i add this file structure and (will) come with some information\nobiviously, fo debug\n.\n├───assets\n├───commands\n├───data\n├───events\n│   ├───client\n│   └───message\n├───handlers\n├───node_modules\n├───phrases\n├───tests\n├───utils\n│   ├───function\n│   ├───hcaptchasolver\n│   ├───huntbot_captcha\n│   │   └───letters\n│   └───webserver.js\n├───webui\n│   ├───assets\n│   │   ├───css\n│   │   └───js\n│   │       └───ws.js\n│   ├───background\n│   │   ├───image\n│   │   └───video\n│   └───partials\n│       ├───home\n│       ├───settings\n│       └───sidebar\n├───bot.js Setup and login, call ./handlers and ./utils/mainhandler.js\n├───main.js Fork itself, the sub call bot.js\n└───config.json\n\nI was lazy to finish\n*/\n"
  },
  {
    "path": "package.json",
    "content": "{\n    \"name\": \"owofarmbot_stable\",\n    \"version\": \"0.0.9.4\",\n    \"updater_version\": \"1.0.0\",\n    \"version_note\": \"Fixed web captcha solver\",\n    \"description\": \"Discord OwO farm bot stable with CAPTCHA(BAN) protection\",\n    \"main\": \"main.js\",\n    \"repository\": {\n        \"type\": \"git\",\n        \"url\": \"git+https://github.com/Mid0Hub/owofarmbot_stable.git\"\n    },\n    \"keywords\": [\n        \"nodejs\",\n        \"bot\",\n        \"selfbot\",\n        \"selfbot-for-discord\",\n        \"owo\",\n        \"owo-bot\",\n        \"owo-self-bot\",\n        \"owofarm\",\n        \"discord-owo-selfbot\",\n        \"self-owo\",\n        \"owofarmbot\",\n        \"owoautofarm\",\n        \"owobot\",\n        \"owoautofarmer\"\n    ],\n    \"author\": \"Mid0aria\",\n    \"license\": \"ISC\",\n    \"type\": \"commonjs\",\n    \"scripts\": {\n        \"start\": \"node main.js\",\n        \"run\": \"node main.js\",\n        \"setup\": \"npm i\",\n        \"format\": \"prettier --write .\"\n    },\n    \"dependencies\": {\n        \"axios\": \"^1.9.0\",\n        \"chalk\": \"^4.1.2\",\n        \"discord.js-selfbot-v13\": \"^3.6.1\",\n        \"ejs\": \"^3.1.10\",\n        \"express\": \"^5.1.0\",\n        \"fs-extra\": \"^11.3.0\",\n        \"node-notifier\": \"^10.0.1\",\n        \"sharp\": \"^0.34.2\",\n        \"ws\": \"^8.18.2\",\n        \"yargs\": \"^17.7.2\"\n    },\n    \"bugs\": {\n        \"url\": \"https://github.com/Mid0Hub/owofarmbot_stable/issues\"\n    },\n    \"homepage\": \"https://github.com/Mid0Hub/owofarmbot_stable#readme\",\n    \"devDependencies\": {\n        \"@eslint/js\": \"^9.27.0\",\n        \"eslint\": \"^9.27.0\",\n        \"globals\": \"^16.1.0\",\n        \"prettier\": \"^3.5.3\"\n    }\n}\n"
  },
  {
    "path": "phrases/phrases.json",
    "content": "{\n    \"i\": \"u\",\n    \"author\": [\"Mid0aria\", \"Random-629671\", \"VA80\"],\n\n    \"phrases\": [\n        \"dont kill me just help me run away\",\n        \"i dream of you almost every night\",\n        \"she likes sympathetic people\",\n        \"i love you babe \",\n        \"where I can cover up my face\",\n        \"Hello\",\n        \"woaaa\",\n        \":pensive:\",\n        \"do you love me ?\",\n        \"i dream about you and i\",\n        \":smiling_face_with_3_hearts:\",\n        \":woozy_face:\",\n        \":blush:\",\n        \":neutral_face:\",\n        \":unamused:\",\n        \":relaxed:\",\n        \":disappointed:\",\n        \":melting_face:\",\n        \":smirk:\",\n        \"49.6211175,-86.942576\",\n        \"Everything cannot be explained by speaking. Sometimes being silent is enough. Although speaking is a need, silence is an answer to those who understand.\",\n        \"Dance like nobody's watching; love like you've never been hurt. Sing like nobody's listening; live like it's heaven on earth.\",\n        \"Perché tu mi parli con le parole ma io ti guardo con i miei sentimenti.\",\n        \"Light without darkness is a worthless diamond.\",\n        \"When I am dead and over me bright April. Shakes out her rain-drenched hair, Tho' you should lean above me broken-hearted, I shall not care. I shall have peace, as leafy trees are peaceful When rain bends down the bough, And I shall be more silent and cold-hearted Than you are now. Sara Teasdale\",\n        \"If you want to free your mind, you must forget what you know. 🌸\",\n        \"Maybe it is necessary to accept everything and let life flow, forcing is sometimes not the solution. 🕯️\",\n        \"Poets that lasting marble seek Must come in Latin or in Greek.\",\n        \"No power in society, no hardship in your condition can depress you, keep you down, in knowledge, power, virtue, influence, but by your own consent.\",\n        \"In civilized life, where the happiness and indeed almost the existence of man, depends on the opinion of his fellow men. He is constantly acting a studied part.\",\n        \"Never seem more learned than the people you are with. Wear your learning like a pocket watch and keep it hidden. Do not pull it out to count the hours, but give the time when you are asked.\",\n        \"Courage, above all things, is the first quality of a warrior.\",\n        \"That there should one man die ignorant who had capacity for knowledge, this I call a tragedy.\",\n        \"It is one thing to show a man that he is in an error, and another to put him in possession of truth.\",\n        \"The German dictator, instead of snatching the victuals from the table, has been content to have them served to him course by course.\",\n        \"Be not careless in deeds, nor confused in words, nor rambling in thought.\",\n        \"Do not confuse beauty with beautiful. Beautiful is a human judgment. Beauty is All. The difference is everything.\",\n        \"Philosophy is properly home-sickness the wish to be everywhere at home.\",\n        \"We have only to believe. And the more threatening and irreducible reality appears, the more firmly and desperately must we believe. Then, little by little, we shall see the universal horror unbend, and then smile upon us, and then take us in its more human arms.\",\n        \"What sets worlds in motion is the interplay of differences, their attractions and repulsions; life is plurality, death is uniformity.\",\n        \"Most of us in the baby-boom generation were raised by full-time mothers. Even as recently as 14 years ago, 6 out of 10 mothers with babies were staying at home. Today that is totally reversed. Does that mean we love our children less than our mothers loved us? No, but it certainly causes a lot of guilt trips.\",\n        \"I knew I was an unwanted baby when I saw that my bath toys were a toaster and a radio.\",\n        \"Democracy becomes a government of bullies tempered by editors.\",\n        \"Married love between man and woman is bigger than oaths guarded by right of nature.\",\n        \"Love looks not with the eyes but with the mind; and therefore is winged Cupid painted blind.\",\n        \"We can choose to humble ourselves by receiving counsel and chastisement, by forgiving those who have offended us, by rendering selfless service.\",\n        \"Ours is an excessively conscious age. We know so much, we feel so little.\",\n        \"Real friendship, like real poetry, is extremely rare - and precious as a pearl.\",\n        \"The chief product of an automated society is a widespread and deepening sense of boredom.\",\n        \"Freedom in capitalist society always remains about the same as it was in ancient Greek republics: Freedom for slave owners.\",\n        \"We believe in government involvement that leads to independence: good schools, quality roads and the best health care.\",\n        \"A change in the weather is sufficient to recreate the world and ourselves.\",\n        \"What we call wisdom is the result of all the wisdom of past ages. Our best institutions are like young trees growing upon the roots of the old trunks that have crumbled away.\",\n        \"So you think that money is the root of all evil. Have you ever asked what is the root of all money?\",\n        \"The very ink with which history is written is merely fluid prejudice.\",\n        \"The idea of being famous is a lot better than the reality.\",\n        \"Parents lend children their experience and a vicarious memory children endow their parents with a vicarious immortality.\",\n        \"Not only must we be good, but we must also be good for something.\",\n        \"We looked at each other standing on the podium, and I think we all were tearing up. But we had to keep it cool. I think we did. Then we let out a breath.\",\n        \"He draweth out the thread of his verbosity finer than the staple of his argument.\",\n        \"While some people are certainly seeing economic benefits, many others are unemployed, underemployed, without health insurance and struggling to make ends meet.\",\n        \"I conceive that the great part of the miseries of mankind are brought upon them by false estimates they have made of the value of things.\",\n        \"Give me odorous at sunrise a garden of beautiful flowers where I can walk undisturbed.\",\n        \"New Yorkers love it when you spill your guts out there. Spill your guts at Wimbledon and they make you stop and clean it up.\",\n        \"If, then, knowledge be power, how much more power to we gain through the agency of faith, and what elevation must it give to human character.\",\n        \"Poetry is the spontaneous overflow of powerful feelings: it takes its origin from emotion recollected in tranquility.\",\n        \"A national debt, if it is not excessive, will be to us a national blessing.\",\n        \"Being self-taught is no disgrace; but being self-certified is another matter.\",\n        \"I did rebel. I was the rebel in my family, because my dad wanted me to go and just travel with him.\",\n        \"In a free society the state does not administer the affairs of men. It administers justice among men who conduct their own affairs.\",\n        \"Now that the House of Commons is trying to become useful, it does a great deal of harm.\",\n        \"How false is the conception, how frantic the pursuit, of that treacherous phantom which men call Liberty: most treacherous, indeed, of all phantoms; for the feeblest ray of reason might surely show us, that not only its attainment, but its being, was impossible. There is no such thing in the universe. There can never be. The stars have it not; the earth has it not; the sea has it not; and we men have the mockery and semblance of it only for our heaviest punishment.\",\n        \"Food is the moral right of all who are born into this world.\",\n        \"Plans are only good intentions unless they immediately degenerate into hard work.\",\n        \"We must guard against the overreaching hand of big government trying to take away our freedom. And we must always protect the environment in a manner consistent with our values.\",\n        \"The quest for peace begins in the home, in the school and in the workplace.\",\n        \"No matter what accomplishments you achieve, somebody helps you.\",\n        \"Revenge is barren of itself: it is the dreadful food it feeds on its delight is murder, and its end is despair.\",\n        \"The essence of Government is power and power, lodged as it must be in human hands, will ever be liable to abuse.\",\n        \"Maybe it is something to do with age, but I have become fonder of poetry than of prose.\",\n        \"What is uttered from the heart alone, Will win the hearts of others to your own.\",\n        \"The man who radiates good cheer, who makes life happier wherever he meets it, is always a man of vision and faith.\",\n        \"The man who is born with a talent which he is meant to use finds his greatest happiness in using it.\",\n        \"You never know what the future holds or where my life will take me.\",\n        \"All our knowledge has its origins in our perceptions.\",\n        \"Not all is doom and gloom. We are beginning to understand the natural world and are gaining a reverence for life - all life.\",\n        \"The pride of the peacock is the glory of God. The lust of the goat is the bounty of God. The wrath of the lion is the wisdom of God. The nakedness of woman is the work of God.\",\n        \"For this is the true strength of guilty kings, When they corrupt the souls of those they rule.\",\n        \"What we have done for ourselves alone dies with us what we have done for others and the world remains and is immortal.\",\n        \"Listen to any musical phrase or rhythm, and grasp it as a whole, and you thereupon have present in you the image, so to speak, of the divine knowledge of the temporal order.\",\n        \"Old age is the verdict of life.\",\n        \"It would be too frightening for me to consider myself a role model. But I like the idea of not being afraid of letting your imagination rule you, to feel the freedom of expression, to let creativity be your overwhelming drive rather than other things.\",\n        \"The other teams could make trouble for us if they win.\",\n        \"The United States have fulfilled in good faith all their treaty stipulations with the Indian tribes, and have in every other instance insisted upon a like performance of their obligations.\",\n        \"Once I am in the square circle, I am in my home.\",\n        \"If a sufficient number of people who wanted to stop war really did gather together, they would first of all begin by making war upon those who disagreed with them. And it is still more certain that they would make war on people who also want to stop wars but in another way.\",\n        \"I am thankful I was born in America, although if I gain any more weight the burqa thing may start to seem like a good idea to me. See? Another plus about America, you can always find some food.\",\n        \"On the whole, human beings want to be good, but not too good, and not quite all the time.\",\n        \"What a heavy burden is a name that has become too famous.\",\n        \"The very first time I was on a car in Atlanta, I saw the conductor - all conductors are white - ask a Negro woman to get up and take a seat farther back in order to make a place for a white man. I have also seen white men requested to leave the Negro section of the car.\",\n        \"Objects we ardently pursue bring little happiness when gained most of our pleasures come from unexpected sources.\",\n        \"My father? I never knew him. Never even seen a picture of him.\",\n        \"Now that the House of Commons is trying to become useful, it does a great deal of harm.\",\n        \"I was always at peace because of the way my mom treated me.\",\n        \"I forgive my mom for being a psycho and my dad for being a loser.\",\n        \"I support legal immigration.\",\n        \"I appreciate simplicity, true beauty that lasts over time, and a little wit and eclecticism that make life more fun.\",\n        \"The relation of repetitions for learning and for repeating English stanzas needs no amplification. These were learned by heart on the first day with less than half of the repetitions necessary for the shortest of the syllable series.\",\n        \"Regret for time wasted can become a power for good in the time that remains, if we will only stop the waste and the idle, useless regretting.\",\n        \"The secret source of humor is not joy but sorrow there is no humor in Heaven.\",\n        \"The other thing about FEMA, my understanding is that it was supposed to move into the Department of Homeland Security... and be what it was, but also having a lot of lateral communication with all those others involved in that issue of homeland security.\",\n        \"Early on the next morning we reached Kansas, about five hundred miles from the mouth of the Missouri.\",\n        \"In government offices which are sensitive to the vehemence and passion of mass sentiment public men have no sure tenure. They are in effect perpetual office seekers, always on trial for their political lives, always required to court their restless constituents.\",\n        \"Great innovations should not be forced on slender majorities.\",\n        \"None who have always been free can understand the terrible fascinating power of the hope of freedom to those who are not free.\",\n        \"I have an amazing relationship with food.\",\n        \"In this work I have received the opposition of a number of men who only advocate the unobtainable because the immediately possible is beyond their moral courage, administrative ability, and their political prescience.\",\n        \"The one phrase you can use is that success has a thousand fathers, and failure is an orphan.\",\n        \"Never put off until tomorrow what you can do the day after tomorrow.\",\n        \"The apprenticeship of difficulty is one which the greatest of men have had to serve.\",\n        \"I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world.\",\n        \"Faith is a knowledge within the heart, beyond the reach of proof.\",\n        \"Every happening, great and small, is a parable whereby God speaks to us, and the art of life is to get the message.\",\n        \"The Bible has noble poetry in it; and some clever fables; and some blood-drenched history; and a wealth of obscenity; and upwards of a thousand lies.\",\n        \"My mom introduced me to science-fiction.\",\n        \"Then wilt thou not be loath To leave this Paradise, but shalt possess A Paradise within thee, happier far.\",\n        \"I had come in time to learn that it was a mistake to smile a friendly smile when somebody made a fool of me.\",\n        \"Seek those who find your road agreeable, your personality and mind stimulating, your philosophy acceptable, and your experience helpful. Let those who do not, seek their own kind.\",\n        \"Seeing unhappiness in the marriage of friends, I was content to have chosen music and laughter as a substitute for a husband.\",\n        \"The less we deserve good fortune, the more we hope for it.\",\n        \"Even the highest forms of sacrificial worship present much that is repulsive to modern ideas, and in particular it requires an effort to reconcile our imagination to the bloody ritual which is prominent in almost every religion which has a strong sense of sin.\",\n        \"Our high respect for a well read person is praise enough for literature.\",\n        \"Never again will I spend another winter in this accursed bucketshop of a refrigerator called England.\",\n        \"Garden as though you will live forever.\",\n        \"He that raises a large family does, indeed, while he lives to observe them, stand a broader mark for sorrow; but then he stands a broader mark for pleasure too.\",\n        \"It is not all bad, this getting old, ripening. After the fruit has got its growth it should juice up and mellow. God forbid I should live long enough to ferment and rot and fall to the ground in a squash.\",\n        \"Food was always a big part of my life. My grandfather was one of 14 kids, and his parents had a pasta factory, so as a kid, he and his siblings would sell pasta door to door. After he became a movie producer, he opened up De Laurentiis Food Stores - one in Los Angeles and one in New York.\",\n        \"The sun is new each day.\",\n        \"It takes courage to grow up and become who you really are.\",\n        \"Fancy the happiness of Pinocchio on finding himself free! Without saying yes or no, he fled from the city and set out on the road that was to take him back to the house of the lovely Fairy.\",\n        \"If you think you can walk in holiness without keeping up perpetual fellowship with Christ, you have made a great mistake. If you would be holy, you must live close to Jesus.\",\n        \"Truth is the property of no individual but is the treasure of all men.\",\n        \"Conscience is a coward, and those faults it has not strength enough to prevent it seldom has justice enough to accuse.\",\n        \"All the characters in my books are imagined, but all have a bit of who I am in them - much like the characters in your dreams are all formed by who you are.\",\n        \"My motivation has always been health - eating healthy and taking care of myself.\",\n        \"Ah, Hope! what would life be, stripped of thy encouraging smiles, that teach us to look behind the dark clouds of today, for the golden beams that are to gild the morrow.\",\n        \"Life begins at the end of your comfort zone.\",\n        \"The superior man thinks always of virtue; the common man thinks of comfort.\",\n        \"The time to read is any time: no apparatus, no appointment of time and place, is necessary. It is the only art which can be practiced at any hour of the day or night, whenever the time and inclination comes, that is your time for reading in joy or sorrow, health or illness.\",\n        \"Provision for others is a fundamental responsibility of human life.\",\n        \"How does it become a man to behave towards the American government today? I answer, that he cannot without disgrace be associated with it.\",\n        \"Usually when I see someone famous, for some reason, I think I know them.\",\n        \"Family and friends and faith are the most important things in your life and you should be building friendships.\",\n        \"Realizing that our actions, feelings and behaviour are the result of our own images and beliefs gives us the level that psychology has always needed for changing personality.\",\n        \"Americans want and deserve a broad array of health insurance choices so they can identify those that best fit their own individual or family needs. These choices expand when we allow free enterprise to foster innovation, not smother it with taxes and one-size fits all ideology.\",\n        \"In opera, as with any performing art, to be in great demand and to command high fees you must be good of course, but you must also be famous. The two are different things.\",\n        \"The Creator has not given you a longing to do that which you have no ability to do.\",\n        \"The sun is new each day.\",\n        \"I believe patriotism comes from the heart. Patriotism is voluntary. It is a feeling of loyalty and allegiance that is the result of knowledge and belief.\",\n        \"Acceptance of what has happened is the first step to overcoming the consequences of any misfortune.\",\n        \"Error of opinion may be tolerated where reason is left free to combat it.\",\n        \"I grew up in a very old-fashioned Roman Catholic, Italian-Irish family in Philly.\",\n        \"His ignorance covered the whole earth like a blanket, and there was hardly a hole in it anywhere.\",\n        \"God is another name for human intelligence raised above all error and imperfection, and extended to all possible truth.\",\n        \"If the government fails to listen to your demands, then you will decide what is best for you.\",\n        \"Home is the one place in all this world where hearts are sure of each other. It is the place of confidence. It is the spot where expressions of tenderness gush out without any dread of ridicule.\",\n        \"It is much easier to be critical than to be correct.\",\n        \"There is only one real sin and that is to persuade oneself that the second best is anything but second best.\",\n        \"I never heard of anyone who was really literate or who ever really loved books who wanted to suppress any of them. Censors only read a book with great difficulty, moving their lips as they puzzle out each syllable, when someone tells them that the book is unfit to read.\",\n        \"After working with clothes for so long, it seemed right to design them.\",\n        \"One has to abandon altogether the search for security, and reach out to the risk of living with both arms. One has to court doubt and darkness as the cost of knowing. One needs a will stubborn in conflict, but apt always to total acceptance of every consequence of living and dying.\",\n        \"A canon is antithetical to everything the New York art world has been about for the past 40 years, during which we went from being the center of the art world to being one of many centers.\",\n        \"A generation ago there were a thousand men to every opportunity, while today there are a thousand opportunities to every man.\",\n        \"How fair is a garden amid the toils and passions of existence.\",\n        \"The one who cannot restrain their anger will wish undone, what their temper and irritation prompted them to do.\",\n        \"Fame is what you have taken, character is what you give. When to this truth you awaken, then you begin to live.\",\n        \"Lord, make me an instrument of thy peace. Where there is hatred, let me sow love.\",\n        \"Britain is A world by itself, and we will nothing pay For wearing our own noses.\",\n        \"It is the paradox of life that the way to miss pleasure is to seek it first. The very first condition of lasting happiness is that a life should be full of purpose, aiming at something outside self.\",\n        \"I like making things. I have a wood shop at home. I am a terrible carpenter but I love doing it.\",\n        \"There is nothing that makes its way more directly to the soul than beauty.\",\n        \"I look upon life as a gift from God. I did nothing to earn it. Now that the time is coming to give it back, I have no right to complain.\",\n        \"Thanks to my mother, not a single cardboard box has found its way back into society. We receive gifts in boxes from stores that went out of business twenty years ago.\",\n        \"The majority of husbands remind me of an orangutan trying to play the violin.\",\n        \"Anger is a good motivator.\",\n        \"Whenever I fail as a father or husband... a toy and a diamond always works.\",\n        \"The food here is terrible, and the portions are too small.\",\n        \"Thus, while the mute creation downward bend Their sight, and to their earthly mother ten, Man looks aloft; and with erected eyes Beholds his own hereditary skies.\",\n        \"It always comes to the same necessity: go deep enough and there is a bedrock of truth, however hard.\",\n        \"It has pleased and interested me to see how I could get along under difficult circumstances and with so much discomfort but as I say I was not sent out here to improve my temper or my health or to make me more content with my good things in the East.\",\n        \"When you start a business, go for the lowest hanging fruit.\",\n        \"Libraries allow children to ask questions about the world and find the answers. And the wonderful thing is that once a child learns to use a library, the doors to learning are always open.\",\n        \"God is the universal substance in existing things.  He comprises all things.  He is the fountain of all being.  In Him exists everything that is.\",\n        \"Morals are an acquirement - like music, like a foreign language, like piety, poker, paralysis - no man is born with them.\",\n        \"In Scotland, the indication is that for the Westminster elections at least, Labour voters are satisfied with their government.\",\n        \"While I thought that I was learning how to live, I have been learning how to die.\",\n        \"No day in which you learn something is a complete loss.\",\n        \"For death is no more than a turning of us over from time to eternity.\",\n        \"Deliberation is the work of many men. Action, of one alone.\",\n        \"I sat staring, staring, staring - half lost, learning a new language or rather the same language in a different dialect. So still were the big woods where I sat, sound might not yet have been born.\",\n        \"Experience demands that man is the only animal which devours his own kind, for I can apply no milder term to the general prey of the rich on the poor.\",\n        \"The ordinary arts we practice every day at home are of more importance to the soul than their simplicity might suggest.\",\n        \"Most men, after a little freedom, have preferred authority with the consoling assurances and the economy of effort it brings.\",\n        \"My first wish is to see this plague of mankind, war, banished from the earth.\",\n        \"We need to make a greater investment in human intelligence.\",\n        \"Ads featuring real women and real beauty are such a necessary component to offset the potentially dangerous programming out there for little girls.\",\n        \"MEEKNESS, n. Uncommon patience in planning a revenge that is worth while.\",\n        \"I believe God gives you the grace to do what you need to do.\",\n        \"Only through our connectedness to others can we really know and enhance the self. And only through working on the self can we begin to enhance our connectedness to others.\",\n        \"Learn from yesterday, live for today, hope for tomorrow.\",\n        \"Our virtues and our failings are inseparable, like force and matter. When they separate, man is no more.\",\n        \"Act as if what you do makes a difference. It does.\",\n        \"A really great talent finds its happiness in execution.\",\n        \"The world does not happen to you it happens from you.\",\n        \"More powerful than the will to win is the courage to begin.\",\n        \"Choose a job you love, and you will never have to work a day in your life.\",\n        \"There is nothing happens to any person but what was in his power to go through with.\",\n        \"You will not be punished for your anger, you will be punished by your anger.\",\n        \"A prudent question is one half of wisdom.\",\n        \"Knowledge has three degrees opinion, science, illumination. The means or instrument of the first is sense; of the second, dialectic; of the third, intuition.\",\n        \"He who wishes to secure the good of others, has already secured his own.\",\n        \"A lot of times people look at the negative side of what they feel they can't do. I always look on the positive side of what I can do.\",\n        \"What lies behind us and what lies before us are tiny matters compared to what lies within us.\",\n        \"When you arise in the morning, think of what a precious privilege it is to be alive to breathe, to think, to enjoy, to love.\",\n        \"Having nothing, nothing can he lose.\",\n        \"A wise man will make more opportunities than he finds.\",\n        \"Never tell me the sky is the limit when there are footprints on the moon.\",\n        \"To climb steep hills requires a slow pace at first.\",\n        \"Good luck is another name for tenacity of purpose.\",\n        \"Write your plans in pencil and give God the eraser.\",\n        \"He who controls others may be powerful, but he who has mastered himself is mightier still.\",\n        \"I am not afraid of tomorrow, for I have seen yesterday and I love today.\",\n        \"They can conquer who believe they can.\",\n        \"Can miles truly separate you from friends... If you want to be with someone you love, aren't you already there?\",\n        \"A leader is best when people barely know he exists, when his work is done, his aim fulfilled, they will say: we did it ourselves.\",\n        \"Most of the shadows of life are caused by standing in our own sunshine.\",\n        \"The greatest mistake you can make in life is to be continually fearing you will make one.\",\n        \"Everything we hear is an opinion, not a fact. Everything we see is a perspective, not the truth.\",\n        \"Joy is what happens to us when we allow ourselves to recognize how good things really are.\",\n        \"Never tell a young person that anything cannot be done. God may have been waiting centuries for someone ignorant enough of the impossible to do that very thing.\",\n        \"You can't trust without risk but neither can you live in a cocoon.\",\n        \"All perceiving is also thinking, all reasoning is also intuition, all observation is also invention.\",\n        \"Conflict is the gadfly of thought. It stirs us to observation and memory. It instigates to invention. It shocks us out of sheeplike passivity, and sets us at noting and contriving.\",\n        \"Ability will never catch up with the demand for it.\",\n        \"We know what we are, but know not what we may be.\",\n        \"Sincerity is the way of Heaven. The attainment of sincerity is the way of men.\",\n        \"Without leaps of imagination, or dreaming, we lose the excitement of possibilities. Dreaming, after all, is a form of planning.\",\n        \"Gratitude is the fairest blossom which springs from the soul.\",\n        \"Were here for a reason. I believe a bit of the reason is to throw little torches out to lead people through the dark.\",\n        \"We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.\",\n        \"No man is free who is not master of himself.\",\n        \"Creativity comes from trust. Trust your instincts. And never hope more than you work.\",\n        \"To ensure good health: eat lightly, breathe deeply, live moderately, cultivate cheerfulness, and maintain an interest in life.\",\n        \"Can miles truly separate you from friends... If you want to be with someone you love, aren't you already there?\",\n        \"Meditation brings wisdom; lack of mediation leaves ignorance. Know well what leads you forward and what hold you back, and choose the path that leads to wisdom.\",\n        \"Giving up doesn't always mean you are weak; sometimes it means that you are strong enough to let go.\",\n        \"Continuous effort, not strength or intelligence is the key to unlocking our potential.\",\n        \"The greatest barrier to success is the fear of failure.\",\n        \"Happiness is when what you think, what you say, and what you do are in harmony.\",\n        \"To be wronged is nothing unless you continue to remember it.\",\n        \"Those that know, do. Those that understand, teach.\",\n        \"Intuition is the supra-logic that cuts out all the routine processes of thought and leaps straight from the problem to the answer.\",\n        \"You do not become good by trying to be good, but by finding the goodness that is already within you.\",\n        \"The grand essentials of happiness are: something to do, something to love, and something to hope for.\",\n        \"Think how hard physics would be if particles could think.\",\n        \"Miracles come in moments. Be ready and willing.\",\n        \"Adversity isn't set against you to fail; adversity is a way to build your character so that you can succeed over and over again through perseverance.\",\n        \"If you light a lamp for somebody, it will also brighten your path.\",\n        \"The awareness of our own strength makes us modest.\",\n        \"Fear grows in darkness; if you think theres a bogeyman around, turn on the light.\",\n        \"Experience is simply the name we give our mistakes.\",\n        \"Look back over the past, with its changing empires that rose and fell, and you can foresee the future, too.\",\n        \"It is not only for what we do that we are held responsible, but also for what we do not do.\",\n        \"No man can succeed in a line of endeavor which he does not like.\",\n        \"Do more than dream: work.\",\n        \"What you see depends on what you're looking for.\",\n        \"Our doubts are traitors and make us lose the good we often might win, by fearing to attempt.\",\n        \"When you see a good person, think of becoming like him. When you see someone not so good, reflect on your own weak points.\",\n        \"The path to success is to take massive, determined action.\",\n        \"Being right is highly overrated. Even a stopped clock is right twice a day.\",\n        \"May our hearts garden of awakening bloom with hundreds of flowers.\",\n        \"We must overcome the notion that we must be regular. It robs you of the chance to be extraordinary and leads you to the mediocre.\",\n        \"The things that one most wants to do are the things that are probably most worth doing.\",\n        \"Ideas are the beginning points of all fortunes.\",\n        \"Change will not come if we wait for some other person or some other time. We are the ones weve been waiting for. We are the change that we seek.\",\n        \"There is only one success to be able to spend your life in your own way.\",\n        \"Act as if what you do makes a difference. It does.\",\n        \"You can do it if you believe you can!\",\n        \"Bad things are not the worst things that can happen to us. Nothing is the worst thing that can happen to us!\",\n        \"Let go of your attachment to being right, and suddenly your mind is more open. You're able to benefit from the unique viewpoints of others, without being crippled by your own judgement.\",\n        \"Society develops wit, but its contemplation alone forms genius.\",\n        \"Change will not come if we wait for some other person or some other time. We are the ones weve been waiting for. We are the change that we seek.\",\n        \"The universe is full of magical things, patiently waiting for our wits to grow sharper.\",\n        \"Don't be dismayed by good-byes. A farewell is necessary before you can meet again. And meeting again, after moments or lifetimes, is certain for those who are friends.\",\n        \"You have to believe in yourself.\",\n        \"This is the final test of a gentleman: his respect for those who can be of no possible value to him.\",\n        \"Without this playing with fantasy no creative work has ever yet come to birth. The debt we owe to the play of the imagination is incalculable.\",\n        \"If we look at the world with a love of life, the world will reveal its beauty to us.\",\n        \"Memory is the mother of all wisdom.\",\n        \"Face your deficiencies and acknowledge them; but do not let them master you. Let them teach you patience, sweetness, insight.\",\n        \"Don't wait. The time will never be just right.\",\n        \"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it.\",\n        \"If you get up one more time than you fall, you will make it through.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"Science is organized knowledge. Wisdom is organized life.\",\n        \"Do good by stealth, and blush to find it fame.\",\n        \"If I could reach up and hold a star for every time you've made me smile, the entire evening sky would be in the palm of my hand.\",\n        \"Who we are never changes. Who we think we are does.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"The day you decide to do it is your lucky day.\",\n        \"Life is like a sewer. What you get out of it depends on what you put into it.\",\n        \"Intuition is the supra-logic that cuts out all the routine processes of thought and leaps straight from the problem to the answer.\",\n        \"Be less curious about people and more curious about ideas.\",\n        \"What is new in the world? Nothing. What is old in the world? Nothing. Everything has always been and will always be.\",\n        \"A man is great by deeds, not by birth.\",\n        \"Constant kindness can accomplish much. As the sun makes ice melt, kindness causes misunderstanding, mistrust, and hostility to evaporate.\",\n        \"Silence is a source of great strength.\",\n        \"The undertaking of a new action brings new strength.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"Staying in one place is the best path to be taken over and surpassed by many.\",\n        \"What we think, we become.\",\n        \"All seasons are beautiful for the person who carries happiness within.\",\n        \"Let us revere, let us worship, but erect and open-eyed, the highest, not the lowest; the future, not the past!\",\n        \"Strength does not come from physical capacity. It comes from an indomitable will.\",\n        \"If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place.\",\n        \"We must become the change we want to see.\",\n        \"We never understand how little we need in this world until we know the loss of it.\",\n        \"The mind unlearns with difficulty what it has long learned.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"A leader or a man of action in a crisis almost always acts subconsciously and then thinks of the reasons for his action.\",\n        \"The years teach much which the days never know.\",\n        \"Man is not sum of what he has already, but rather the sum of what he does not yet have, of what he could have.\",\n        \"Moments of complete apathy are the best for new creations.\",\n        \"I never worry about action, but only inaction.\",\n        \"Slow down and enjoy life. It's not only the scenery you miss by going too fast you also miss the sense of where you are going and why.\",\n        \"Learn to listen. Opportunity could be knocking at your door very softly.\",\n        \"No matter how carefully you plan your goals they will never be more that pipe dreams unless you pursue them with gusto.\",\n        \"To dare is to lose ones footing momentarily. To not dare is to lose oneself.\",\n        \"The only way to have a friend is to be one.\",\n        \"Do not be embarrassed by your mistakes. Nothing can teach us better than our understanding of them. This is one of the best ways of self-education.\",\n        \"Each time we face a fear, we gain strength, courage, and confidence in the doing.\",\n        \"No man is free who is not master of himself.\",\n        \"When one tugs at a single thing in nature, he finds it attached to the rest of the world.\",\n        \"Never deny a diagnosis, but do deny the negative verdict that may go with it.\",\n        \"To change ones life, start immediately, do it flamboyantly, no exceptions.\",\n        \"The least movement is of importance to all nature. The entire ocean is affected by a pebble.\",\n        \"Set your goals high, and don't stop till you get there.\",\n        \"Important principles may, and must, be inflexible.\",\n        \"Only those who dare to fail greatly can ever achieve greatly.\",\n        \"The world is always in movement.\",\n        \"Constant kindness can accomplish much. As the sun makes ice melt, kindness causes misunderstanding, mistrust, and hostility to evaporate.\",\n        \"Where all think alike, no one thinks very much.\",\n        \"Doing nothing is better than being busy doing nothing.\",\n        \"Follow effective action with quiet reflection. From the quiet reflection will come even more effective action.\",\n        \"The power of intuitive understanding will protect you from harm until the end of your days.\",\n        \"The industrial landscape is already littered with remains of once successful companies that could not adapt their strategic vision to altered conditions of competition.\",\n        \"Every sixty seconds you spend angry, upset or mad, is a full minute of happiness you will never get back.\",\n        \"In all chaos there is a cosmos, in all disorder a secret order.\",\n        \"More often than not, anger is actually an indication of weakness rather than of strength.\",\n        \"Tension is who you think you should be. Relaxation is who you are.\",\n        \"Most great people have attained their greatest success just one step beyond their greatest failure.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"To fly, we have to have resistance.\",\n        \"To succeed, we must first believe that we can.\",\n        \"The time you think you're missing, misses you too.\",\n        \"Goals are the fuel in the furnace of achievement.\",\n        \"Everything you are against weakens you. Everything you are for empowers you.\",\n        \"When you learn, teach. When you get, give.\",\n        \"Love is the master key that opens the gates of happiness.\",\n        \"The most important thing is transforming our minds, for a new way of thinking, a new outlook: we should strive to develop a new inner world.\",\n        \"A good plan today is better than a perfect plan tomorrow.\",\n        \"Discovery consists of seeing what everybody has seen and thinking what nobody else has thought.\",\n        \"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it.\",\n        \"The cosmos is neither moral or immoral; only people are. He who would move the world must first move himself.\",\n        \"All men who have achieved great things have been great dreamers.\",\n        \"What is new in the world? Nothing. What is old in the world? Nothing. Everything has always been and will always be.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"When I dare to be powerful, to use my strength in the service of my vision, then it becomes less and less important whether I am afraid.\",\n        \"If you don't like something, change it. If you can't change it, change your attitude.\",\n        \"You cannot change anything in your life with intention alone, which can become a watered-down, occasional hope that you'll get to tomorrow. Intention without action is useless.\",\n        \"Why worry about things you cannot control when you can keep yourself busy controlling the things that depend on you?\",\n        \"Work out your own salvation. Do not depend on others.\",\n        \"Reviewing what you have learned and learning anew, you are fit to be a teacher.\",\n        \"You can observe a lot just by watching.\",\n        \"It all depends on how we look at things, and not how they are in themselves.\",\n        \"Everything that irritates us about others can lead us to an understanding of ourselves.\",\n        \"It is never too late to be what you might have been.\",\n        \"Either you run the day or the day runs you.\",\n        \"In separateness lies the world's great misery, in compassion lies the world's true strength.\",\n        \"You get peace of mind not by thinking about it or imagining it, but by quietening and relaxing the restless mind.\",\n        \"Courage is going from failure to failure without losing enthusiasm.\",\n        \"Today, give a stranger a smile without waiting for it may be the joy they need to have a great day.\",\n        \"Smile, breathe, and go slowly.\",\n        \"A man is great by deeds, not by birth.\",\n        \"I find hope in the darkest of days, and focus in the brightest. I do not judge the universe.\",\n        \"Opportunity is missed by most because it is dressed in overalls and looks like work.\",\n        \"I hear and I forget. I see and I remember. I do and I understand.\",\n        \"Never deny a diagnosis, but do deny the negative verdict that may go with it.\",\n        \"Until you value yourself, you won't value your time. Until you value your time, you won't do anything with it.\",\n        \"Everyone can taste success when the going is easy, but few know how to taste victory when times get tough.\",\n        \"Patience is the companion of wisdom.\",\n        \"Most folks are about as happy as they make up their minds to be.\",\n        \"He who is contented is rich.\",\n        \"Remember that failure is an event, not a person.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"To be thoughtful and kind only takes a few seconds compared to the timeless hurt caused by one rude gesture.\",\n        \"We could never learn to be brave and patient if there were only joy in the world.\",\n        \"We are all something, but none of us are everything.\",\n        \"A rolling stone gathers no moss.\",\n        \"All perceiving is also thinking, all reasoning is also intuition, all observation is also invention.\",\n        \"Everything that irritates us about others can lead us to an understanding of ourselves.\",\n        \"Man is equally incapable of seeing the nothingness from which he emerges and the infinity in which he is engulfed.\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"The noblest worship is to make yourself as good and as just as you can.\",\n        \"When you doubt your power, you give power to your doubt.\",\n        \"You cannot have what you do not want.\",\n        \"Kind words will unlock an iron door.\",\n        \"A wise man will make more opportunities than he finds.\",\n        \"Of course there is no formula for success except perhaps an unconditional acceptance of life and what it brings.\",\n        \"It all depends on how we look at things, and not how they are in themselves.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"Why compare yourself with others? No one in the entire world can do a better job of being you than you.\",\n        \"No man was ever wise by chance.\",\n        \"Live through feeling and you will live through love. For feeling is the language of the soul, and feeling is truth.\",\n        \"If you want to study yourself look into the hearts of other people. If you want to study other people look into your own heart.\",\n        \"A dream is your creative vision for your life in the future. You must break out of your current comfort zone and become comfortable with the unfamiliar and the unknown.\",\n        \"Look back over the past, with its changing empires that rose and fell, and you can foresee the future, too.\",\n        \"One that desires to excel should endeavour in those things that are in themselves most excellent.\",\n        \"Our lives are the only meaningful expression of what we believe and in Whom we believe. And the only real wealth, for any of us, lies in our faith.\",\n        \"We can change our lives. We can do, have, and be exactly what we wish.\",\n        \"Those who dream by day are cognizant of many things which escape those who dream only by night.\",\n        \"Freedom is what you do with what's been done to you.\",\n        \"From error to error one discovers the entire truth.\",\n        \"The world is but a canvas to the imagination.\",\n        \"What separates the winners from the losers is how a person reacts to each new twist of fate.\",\n        \"Watch the little things; a small leak will sink a great ship.\",\n        \"You can do what's reasonable or you can decide what's possible.\",\n        \"The world does not happen to you it happens from you.\",\n        \"Leaders aren't born they are made. And they are made just like anything else, through hard work. And that's the price well have to pay to achieve that goal, or any goal.\",\n        \"To accomplish great things, we must dream as well as act.\",\n        \"The path to success is to take massive, determined action.\",\n        \"Invent your world. Surround yourself with people, color, sounds, and work that nourish you.\",\n        \"Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment.\",\n        \"The greatest good you can do for another is not just share your riches, but reveal to them their own.\",\n        \"If you smile when no one else is around, you really mean it.\",\n        \"Passion creates the desire for more and action fuelled by passion creates a future.\",\n        \"We are what we think. All that we are arises with our thoughts. With our thoughts, we make the world.\",\n        \"All truths are easy to understand once they are discovered; the point is to discover them.\",\n        \"I'm not afraid of storms, for I'm learning how to sail my ship.\",\n        \"Man cannot discover new oceans unless he has the courage to lose sight of the shore.\",\n        \"If you'll not settle for anything less than your best, you will be amazed at what you can accomplish in your lives.\",\n        \"Life's challenges are not supposed to paralyze you, they're supposed to help you discover who you are.\",\n        \"Money was never a big motivation for me, except as a way to keep score. The real excitement is playing the game.\",\n        \"Conflict is the gadfly of thought. It stirs us to observation and memory. It instigates to invention. It shocks us out of sheeplike passivity, and sets us at noting and contriving.\",\n        \"Everything that happens happens as it should, and if you observe carefully, you will find this to be so.\",\n        \"If you have no respect for your own values how can you be worthy of respect from others.\",\n        \"Music in the soul can be heard by the universe.\",\n        \"It is not the mistake that has the most power, instead, it is learning from the mistake to advance your own attributes.\",\n        \"Moments of complete apathy are the best for new creations.\",\n        \"From small beginnings come great things.\",\n        \"A thing well said will be wit in all languages.\",\n        \"Silence is a true friend who never betrays.\",\n        \"Go put your creed into the deed. Nor speak with double tongue.\",\n        \"The exercise of an extraordinary gift is the supremest pleasure in life.\",\n        \"The bird of paradise alights only upon the hand that does not grasp.\",\n        \"Everything in the universe goes by indirection. There are no straight lines.\",\n        \"Can you imagine what I would do if I could do all I can?\",\n        \"Compassion and happiness are not a sign of weakness but a sign of strength.\",\n        \"It is surprising what a man can do when he has to, and how little most men will do when they don't have to.\",\n        \"You have to take it as it happens, but you should try to make it happen the way you want to take it.\",\n        \"One who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever.\",\n        \"Thought is the blossom; language the bud; action the fruit behind it.\",\n        \"Begin, be bold, and venture to be wise.\",\n        \"Go put your creed into the deed. Nor speak with double tongue.\",\n        \"Only through our connectedness to others can we really know and enhance the self. And only through working on the self can we begin to enhance our connectedness to others.\",\n        \"Promises are the uniquely human way of ordering the future, making it predictable and reliable to the extent that this is humanly possible.\",\n        \"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it.\",\n        \"Work while you have the light. You are responsible for the talent that has been entrusted to you.\",\n        \"Everything you can imagine is real.\",\n        \"We make a living by what we get, but we make a life by what we give.\",\n        \"When you don't know what you believe, everything becomes an argument. Everything is debatable. But when you stand for something, decisions are obvious.\",\n        \"The moment one gives close attention to anything, even a blade of grass, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"Everything we hear is an opinion, not a fact. Everything we see is a perspective, not the truth.\",\n        \"We choose our joys and sorrows long before we experience them.\",\n        \"Someone remembers, someone cares; your name is whispered in someone's prayers.\",\n        \"Intuition will tell the thinking mind where to look next.\",\n        \"I allow my intuition to lead my path.\",\n        \"Consider that not only do negative thoughts and emotions destroy our experience of peace, they also undermine our health.\",\n        \"Of course there is no formula for success except perhaps an unconditional acceptance of life and what it brings.\",\n        \"He who lives in harmony with himself lives in harmony with the universe.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"Our greatness lies not so much in being able to remake the world as being able to remake ourselves.\",\n        \"A wise man will make more opportunities than he finds.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept responsibility for changing them.\",\n        \"I have an everyday religion that works for me. Love yourself first, and everything else falls into line.\",\n        \"As long as your going to be thinking anyway, think big.\",\n        \"Freedom is what you do with what's been done to you.\",\n        \"Time you enjoyed wasting was not wasted.\",\n        \"With every experience, you alone are painting your own canvas, thought by thought, choice by choice.\",\n        \"Trust only movement. Life happens at the level of events, not of words. Trust movement.\",\n        \"Ideals are an imaginative understanding of that which is desirable in that which is possible.\",\n        \"I prefer to be true to myself, even at the hazard of incurring the ridicule of others, rather than to be false, and to incur my own abhorrence.\",\n        \"Consider that not only do negative thoughts and emotions destroy our experience of peace, they also undermine our health.\",\n        \"We lost because we told ourselves we lost.\",\n        \"When you have got an elephant by the hind legs and he is trying to run away, it's best to let him run.\",\n        \"Many of life's failures are people who did not realize how close they were to success when they gave up.\",\n        \"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.\",\n        \"Silence is a fence around wisdom.\",\n        \"A man of ability and the desire to accomplish something can do anything.\",\n        \"Fate is in your hands and no one elses\",\n        \"Our virtues and our failings are inseparable, like force and matter. When they separate, man is no more.\",\n        \"If we look at the world with a love of life, the world will reveal its beauty to us.\",\n        \"Loss is nothing else but change,and change is Natures delight.\",\n        \"The greatest good you can do for another is not just to share your riches but to reveal to him his own.\",\n        \"You need chaos in your soul to give birth to a dancing star.\",\n        \"With the realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"A man of ability and the desire to accomplish something can do anything.\",\n        \"The undertaking of a new action brings new strength.\",\n        \"You do not become good by trying to be good, but by finding the goodness that is already within you.\",\n        \"Arriving at one point is the starting point to another.\",\n        \"Success in business requires training and discipline and hard work. But if you're not frightened by these things, the opportunities are just as great today as they ever were.\",\n        \"Leaders aren't born they are made. And they are made just like anything else, through hard work. And that's the price well have to pay to achieve that goal, or any goal.\",\n        \"Most powerful is he who has himself in his own power.\",\n        \"Blaze with the fire that is never extinguished.\",\n        \"The dream was always running ahead of me. To catch up, to live for a moment in unison with it, that was the miracle.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"A leader is best when people barely know he exists, when his work is done, his aim fulfilled, they will say: we did it ourselves.\",\n        \"The superior man acts before he speaks, and afterwards speaks according to his action.\",\n        \"Though no one can go back and make a brand new start, anyone can start from not and make a brand new ending.\",\n        \"Truth isn't all about what actually happens but more about how what has happened is interpreted.\",\n        \"The Creator has not given you a longing to do that which you have no ability to do.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"Just as a flower, which seems beautiful has color but no perfume, so are the fruitless words of a man who speaks them but does them not.\",\n        \"I know but one freedom and that is the freedom of the mind.\",\n        \"Learn to listen. Opportunity could be knocking at your door very softly.\",\n        \"All the great performers I have worked with are fuelled by a personal dream.\",\n        \"Always be mindful of the kindness and not the faults of others.\",\n        \"All the world is a stage, And all the men and women merely players.They have their exits and entrances; Each man in his time plays many parts.\",\n        \"Great acts are made up of small deeds.\",\n        \"Nothing could be worse than the fear that one had given up too soon, and left one unexpended effort that might have saved the world.\",\n        \"The path to success is to take massive, determined action.\",\n        \"Nothing diminishes anxiety faster than action.\",\n        \"Complaining doesn't change a thing only taking action does.\",\n        \"The least of things with a meaning is worth more in life than the greatest of things without it.\",\n        \"Strength does not come from physical capacity. It comes from an indomitable will.\",\n        \"We are either progressing or retrograding all the while. There is no such thing as remaining stationary in this life.\",\n        \"Weve got to have a dream if we are going to make a dream come true.\",\n        \"We do what we do because we believe.\",\n        \"The key to growth is the introduction of higher dimensions of consciousness into our awareness.\",\n        \"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut.\",\n        \"Imagination is more important than knowledge. For while knowledge defines all we currently know and understand, imagination points to all we might yet discover and create.\",\n        \"Live through feeling and you will live through love. For feeling is the language of the soul, and feeling is truth.\",\n        \"Be miserable. Or motivate yourself. Whatever has to be done, it's always your choice.\",\n        \"Your work is to discover your world and then with all your heart give yourself to it.\",\n        \"Every problem has a gift for you in its hands.\",\n        \"Trust yourself. You know more than you think you do.\",\n        \"The greatest good you can do for another is not just share your riches, but reveal to them their own.\",\n        \"A friend is someone who understands your past, believes in your future, and accepts you just the way you are.\",\n        \"Knowledge has three degrees opinion, science, illumination. The means or instrument of the first is sense; of the second, dialectic; of the third, intuition.\",\n        \"Love vanquishes time. To lovers, a moment can be eternity, eternity can be the tick of a clock.\",\n        \"Everything you are against weakens you. Everything you are for empowers you.\",\n        \"Our strength grows out of our weaknesses.\",\n        \"Imagination rules the world.\",\n        \"The heart has eyes which the brain knows nothing of.\",\n        \"The secret of joy in work is contained in one word excellence. To know how to do something well is to enjoy it.\",\n        \"Nature takes away any faculty that is not used.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift. That is why we call it the present.\",\n        \"The world is round and the place which may seem like the end may also be the beginning.\",\n        \"The time you think you're missing, misses you too.\",\n        \"A jug fills drop by drop.\",\n        \"It is not in the stars to hold our destiny but in ourselves.\",\n        \"By nature man hates change; seldom will he quit his old home till it has actually fallen around his ears.\",\n        \"Our distrust is very expensive.\",\n        \"We are all faced with a series of great opportunities brilliantly disguised as impossible situations.\",\n        \"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.\",\n        \"A good rest is half the work.\",\n        \"A really great talent finds its happiness in execution.\",\n        \"If you focus on results, you will never change. If you focus on change, you will get results.\",\n        \"The universe is transformation; our life is what our thoughts make it.\",\n        \"I'm not in this world to live up to your expectations and you're not in this world to live up to mine.\",\n        \"The only way to have a friend is to be one.\",\n        \"The winds and waves are always on the side of the ablest navigators.\",\n        \"Don't miss all the beautiful colors of the rainbow looking for that pot of gold.\",\n        \"Science is organized knowledge. Wisdom is organized life.\",\n        \"The world is always in movement.\",\n        \"If we have a positive mental attitude, then even when surrounded by hostility, we shall not lack inner peace.\",\n        \"The secret to a rich life is to have more beginnings than endings.\",\n        \"If you can dream it, you can do it.\",\n        \"The height of your accomplishments will equal the depth of your convictions.\",\n        \"The biggest adventure you can ever take is to live the life of your dreams.\",\n        \"Who sows virtue reaps honour.\",\n        \"How far that little candle throws its beams! So shines a good deed in a naughty world.\",\n        \"If we could see the miracle of a single flower clearly, our whole life would change.\",\n        \"The right way is not always the popular and easy way. Standing for right when it is unpopular is a true test of moral character.\",\n        \"We are all something, but none of us are everything.\",\n        \"The years teach much which the days never know.\",\n        \"Without passion man is a mere latent force and possibility, like the flint which awaits the shock of the iron before it can give forth its spark.\",\n        \"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.\",\n        \"What matters is the value we've created in our lives, the people we've made happy and how much we've grown as people.\",\n        \"He who has health has hope, and he who has hope has everything.\",\n        \"You cannot have what you do not want.\",\n        \"A man of ability and the desire to accomplish something can do anything.\",\n        \"When one tugs at a single thing in nature, he finds it attached to the rest of the world.\",\n        \"Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love.\",\n        \"The winds and waves are always on the side of the ablest navigators.\",\n        \"Most powerful is he who has himself in his own power.\",\n        \"When I dare to be powerful, to use my strength in the service of my vision, then it becomes less and less important whether I am afraid.\",\n        \"Blessed is the person who is too busy to worry in the daytime, and too sleepy to worry at night.\",\n        \"Our intention creates our reality.\",\n        \"It is not the possession of truth, but the success which attends the seeking after it, that enriches the seeker and brings happiness to him.\",\n        \"Most of the important things in the world have been accomplished by people who have kept on trying when there seemed to be no hope at all.\",\n        \"To give ones self earnestly to the duties due to men, and, while respecting spiritual beings, to keep aloof from them, may be called wisdom.\",\n        \"A man is not old as long as he is seeking something.\",\n        \"It is with words as with sunbeams. The more they are condensed, the deeper they burn.\",\n        \"Everything we hear is an opinion, not a fact. Everything we see is a perspective, not the truth.\",\n        \"Don't turn away from possible futures before you're certain you don't have anything to learn from them.\",\n        \"I am like a falling star who has finally found her place next to another in a lovely constellation, where we will sparkle in the heavens forever.\",\n        \"You can be what you want to be. You have the power within and we will help you always.\",\n        \"Only when we are no longer afraid do we begin to live.\",\n        \"No day in which you learn something is a complete loss.\",\n        \"If you propose to speak, always ask yourself, is it true, is it necessary, is it kind.\",\n        \"Life is what happens to you while you're busy making other plans.\",\n        \"Better be ignorant of a matter than half know it.\",\n        \"You always succeed in producing a result.\",\n        \"Silence is a source of great strength.\",\n        \"In seed time learn, in harvest teach, in winter enjoy.\",\n        \"There is not one big cosmic meaning for all, there is only the meaning we each give to our life.\",\n        \"Bad times have a scientific value. These are occasions a good learner would not miss.\",\n        \"Dreams come true. Without that possibility, nature would not incite us to have them.\",\n        \"He who experiences the unity of life sees his own Self in all beings, and all beings in his own Self, and looks on everything with an impartial eye.\",\n        \"What is necessary to change a person is to change his awareness of himself.\",\n        \"Our passion is our strength.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"In the sky, there is no distinction of east and west; people create distinctions out of their own minds and then believe them to be true.\",\n        \"He who knows others is wise. He who knows himself is enlightened.\",\n        \"Every person, all the events of your life are there because you have drawn them there. What you choose to do with them is up to you.\",\n        \"Love is the only force capable of transforming an enemy into friend.\",\n        \"Practice yourself, for heavens sake in little things, and then proceed to greater.\",\n        \"With realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"Invent your world. Surround yourself with people, color, sounds, and work that nourish you.\",\n        \"Follow effective action with quiet reflection. From the quiet reflection will come even more effective action.\",\n        \"The right way is not always the popular and easy way. Standing for right when it is unpopular is a true test of moral character.\",\n        \"I walk slowly, but I never walk backward.\",\n        \"Give me six hours to chop down a tree and I will spend the first four sharpening the axe.\",\n        \"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.\",\n        \"This is the final test of a gentleman: his respect for those who can be of no possible value to him.\",\n        \"I cannot make my days longer so I strive to make them better.\",\n        \"The person who lives life fully, glowing with life's energy, is the person who lives a successful life.\",\n        \"One who is too insistent on his own views, finds few to agree with him.\",\n        \"We all have problems. The way we solve them is what makes us different.\",\n        \"Accept the things to which fate binds you, and love the people with whom fate brings you together, but do so with all your heart.\",\n        \"The truth of the matter is that you always know the right thing to do. The hard part is doing it.\",\n        \"Once we accept our limits, we go beyond them.\",\n        \"We need to find the courage to say NO to the things and people that are not serving us if we want to rediscover ourselves and live our lives with authenticity.\",\n        \"One must be fond of people and trust them if one is not to make a mess of life.\",\n        \"They can conquer who believe they can.\",\n        \"Don't believe what your eyes are telling you. All they show is limitation. Look with your understanding, find out what you already know, and you'll see the way to fly.\",\n        \"Remember always that you not only have the right to be an individual, you have an obligation to be one.\",\n        \"Fortune befriends the bold.\",\n        \"Think like a man of action; act like a man of thought.\",\n        \"When you discover your mission, you will feel its demand. It will fill you with enthusiasm and a burning desire to get to work on it.\",\n        \"Do not go where the path may lead, go instead where there is no path and leave a trail.\",\n        \"Into each life rain must fall but rain can be the giver of life and it is all in your attitude that makes rain produce sunshine.\",\n        \"They can conquer who believe they can.\",\n        \"Music in the soul can be heard by the universe.\",\n        \"Nothing in life is to be feared. It is only to be understood.\",\n        \"To be what we are, and to become what we are capable of becoming, is the only end of life.\",\n        \"Everything that irritates us about others can lead us to a better understanding of ourselves.\",\n        \"Everyone can taste success when the going is easy, but few know how to taste victory when times get tough.\",\n        \"Here is one quality that one must possess to win, and that is definiteness of purpose, the knowledge of what one wants, and a burning desire to possess it.\",\n        \"The thoughts we choose to think are the tools we use to paint the canvas of our lives.\",\n        \"When deeds and words are in accord, the whole world is transformed.\",\n        \"Only through our connectedness to others can we really know and enhance the self. And only through working on the self can we begin to enhance our connectedness to others.\",\n        \"We cannot solve our problems with the same thinking we used when we created them.\",\n        \"If we look at the world with a love of life, the world will reveal its beauty to us.\",\n        \"We aim above the mark to hit the mark.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"A leader is best when people barely know he exists, when his work is done, his aim fulfilled, they will say: we did it ourselves.\",\n        \"Reality leaves a lot to the imagination.\",\n        \"I begin with an idea and then it becomes something else.\",\n        \"Blessed is the person who is too busy to worry in the daytime, and too sleepy to worry at night.\",\n        \"I cannot always control what goes on outside. But I can always control what goes on inside.\",\n        \"First comes thought; then organization of that thought, into ideas and plans; then transformation of those plans into reality. The beginning, as you will observe, is in your imagination.\",\n        \"Character develops itself in the stream of life.\",\n        \"Life is a succession of lessons, which must be lived to be understood.\",\n        \"Many people have gone further than they thought they could because someone else thought they could.\",\n        \"The world has the habit of making room for the man whose actions show that he knows where he is going.\",\n        \"We are what we repeatedly do. Excellence, then, is not an act, but a habit.\",\n        \"Everything has beauty, but not everyone sees it.\",\n        \"However many holy words you read, however many you speak, what good will they do you if you do not act on upon them?\",\n        \"What is new in the world? Nothing. What is old in the world? Nothing. Everything has always been and will always be.\",\n        \"Correction does much, but encouragement does more.\",\n        \"Life isn't about finding yourself. Life is about creating yourself.\",\n        \"The man who trusts men will make fewer mistakes than he who distrusts them.\",\n        \"Do not be embarrassed by your mistakes. Nothing can teach us better than our understanding of them. This is one of the best ways of self-education.\",\n        \"Good thoughts are no better than good dreams, unless they be executed.\",\n        \"The moment one gives close attention to anything, even a blade of grass, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"A smile is a light in the window of your face to show your heart is at home.\",\n        \"Great ideas often receive violent opposition from mediocre minds.\",\n        \"If I could reach up and hold a star for every time you've made me smile, the entire evening sky would be in the palm of my hand.\",\n        \"If you must tell me your opinions, tell me what you believe in. I have plenty of douts of my own.\",\n        \"So long as a person is capable of self-renewal they are a living being.\",\n        \"He who angers you conquers you.\",\n        \"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\",\n        \"Someone is special only if you tell them.\",\n        \"There is nothing like returning to a place that remains unchanged to find the ways in which you yourself have altered.\",\n        \"If you do not change direction, you may end up where you are heading.\",\n        \"The dream was always running ahead of me. To catch up, to live for a moment in unison with it, that was the miracle.\",\n        \"Not every difficult and dangerous thing is suitable for training, but only that which is conducive to success in achieving the object of our effort.\",\n        \"We must be as courteous to a man as we are to a picture, which we are willing to give the advantage of a good light.\",\n        \"To make no mistakes is not in the power of man; but from their errors and mistakes the wise and good learn wisdom for the future.\",\n        \"If we did the things we are capable of, we would astound ourselves.\",\n        \"All our knowledge begins with the senses, proceeds then to the understanding, and ends with reason. There is nothing higher than reason.\",\n        \"You cannot change anything in your life with intention alone, which can become a watered-down, occasional hope that you'll get to tomorrow. Intention without action is useless.\",\n        \"The ladder of success is never crowded at the top.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"Letting go is not the end of the world; it is the beginning of a new life.\",\n        \"Love all, trust a few, do wrong to none.\",\n        \"Through meditation and by giving full attention to one thing at a time, we can learn to direct attention where we choose.\",\n        \"Strong beliefs win strong men, and then make them stronger.\",\n        \"Be less curious about people and more curious about ideas.\",\n        \"Action may not always bring happiness, but there is no happiness without action.\",\n        \"Be the change that you want to see in the world.\",\n        \"If you want your life to be more rewarding, you have to change the way you think.\",\n        \"Things do not change, we change.\",\n        \"Your vision will become clear only when you look into your heart. Who looks outside, dreams. Who looks inside, awakens.\",\n        \"The universe is made of stories, not atoms.\",\n        \"Your mind will answer most questions if you learn to relax and wait for the answer.\",\n        \"Most people are about as happy as they make up their minds to be\",\n        \"Great acts are made up of small deeds.\",\n        \"Be here now. Be someplace else later. Is that so complicated?\",\n        \"Deep listening is miraculous for both listener and speaker.When someone receives us with open-hearted, non-judging, intensely interested listening, our spirits expand.\",\n        \"The time you think you're missing, misses you too.\",\n        \"Rainbows apologize for angry skies.\",\n        \"There are only two mistakes one can make along the road to truth; not going all the way, and not starting.\",\n        \"You have enemies? Good. That means you've stood up for something, sometime in your life.\",\n        \"Love is just a word until someone comes along and gives it meaning.\",\n        \"In the middle of every difficulty lies opportunity.\",\n        \"Reviewing what you have learned and learning anew, you are fit to be a teacher.\",\n        \"If you want to study yourself look into the hearts of other people. If you want to study other people look into your own heart.\",\n        \"The only real valuable thing is intuition.\",\n        \"In three words I can sum up everything Ive learned about life: it goes on.\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"The least of things with a meaning is worth more in life than the greatest of things without it.\",\n        \"The final proof of greatness lies in being able to endure criticism without resentment.\",\n        \"Keep your eyes on the stars and your feet on the ground.\",\n        \"We shall never know all the good that a simple smile can do.\",\n        \"Growth itself contains the germ of happiness.\",\n        \"Those who are blessed with the most talent don't necessarily outperform everyone else. It's the people with follow-through who excel.\",\n        \"You can't stop the waves, but you can learn to surf.\",\n        \"With every experience, you alone are painting your own canvas, thought by thought, choice by choice.\",\n        \"He who has health has hope, and he who has hope has everything.\",\n        \"Much wisdom often goes with fewer words.\",\n        \"The only person who never makes mistakes is the person who never does anything.\",\n        \"The person who lives life fully, glowing with life's energy, is the person who lives a successful life.\",\n        \"Nothing ever goes away until it has taught us what we need to know.\",\n        \"Failure will never overtake me if my determination to succeed is strong enough.\",\n        \"Let the beauty of what you love be what you do.\",\n        \"Thought is the blossom; language the bud; action the fruit behind it.\",\n        \"If I know what love is, it is because of you.\",\n        \"Today is the tomorrow we worried about yesterday.\",\n        \"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut.\",\n        \"Silence is deep as Eternity, Speech is shallow as Time.\",\n        \"Man is equally incapable of seeing the nothingness from which he emerges and the infinity in which he is engulfed.\",\n        \"Never tell a young person that anything cannot be done. God may have been waiting centuries for someone ignorant enough of the impossible to do that very thing.\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"Yesterdays home runs don't win today's games.\",\n        \"What is new in the world? Nothing. What is old in the world? Nothing. Everything has always been and will always be.\",\n        \"The most formidable weapon against errors of every kind is reason.\",\n        \"Wit lies in recognizing the resemblance among things which differ and the difference between things which are alike.\",\n        \"More often than not, anger is actually an indication of weakness rather than of strength.\",\n        \"We must not say every mistake is a foolish one.\",\n        \"When deeds speak, words are nothing.\",\n        \"Those who cannot learn from history are doomed to repeat it.\",\n        \"Man is equally incapable of seeing the nothingness from which he emerges and the infinity in which he is engulfed.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"Every human being is the author of his own health or disease.\",\n        \"The most important thing is transforming our minds, for a new way of thinking, a new outlook: we should strive to develop a new inner world.\",\n        \"Don't be pushed by your problems; be led by your dreams.\",\n        \"Something opens our wings. Something makes boredom and hurt disappear. Someone fills the cup in front of us: We taste only sacredness.\",\n        \"Someone is special only if you tell them.\",\n        \"We could never learn to be brave and patient if there were only joy in the world.\",\n        \"Everything has beauty, but not everyone sees it.\",\n        \"We are all inclined to judge ourselves by our ideals; others, by their acts.\",\n        \"Sincerity is the way of Heaven. The attainment of sincerity is the way of men.\",\n        \"You can't create in a vacuum. Life gives you the material and dreams can propel new beginnings.\",\n        \"Respect should be earned by actions, and not acquired by years.\",\n        \"If you cannot be silent be brilliant and thoughtful.\",\n        \"Here is one quality that one must possess to win, and that is definiteness of purpose, the knowledge of what one wants, and a burning desire to possess it.\",\n        \"When you see a man of worth, think of how you may emulate him. When you see one who is unworthy, examine yourself.\",\n        \"Happiness is the reward we get for living to the highest right we know.\",\n        \"Just as a candle cannot burn without fire, men cannot live without a spiritual life.\",\n        \"To change ones life, start immediately, do it flamboyantly, no exceptions.\",\n        \"Most of the shadows of life are caused by standing in our own sunshine.\",\n        \"God has given you one face, and you make yourself another.\",\n        \"You must do the things you think you cannot do.\",\n        \"We have two ears and one mouth so that we can listen twice as much as we speak.\",\n        \"Almost everything comes from nothing.\",\n        \"Bodily exercise, when compulsory, does no harm to the body; but knowledge which is acquired under compulsion obtains no hold on the mind.\",\n        \"When you arise in the morning, think of what a precious privilege it is to be alive to breathe, to think, to enjoy, to love.\",\n        \"Everything we hear is an opinion, not a fact. Everything we see is a perspective, not the truth.\",\n        \"It is not the mistake that has the most power, instead, it is learning from the mistake to advance your own attributes.\",\n        \"A leader or a man of action in a crisis almost always acts subconsciously and then thinks of the reasons for his action.\",\n        \"There is no great genius without some touch of madness.\",\n        \"If you come to a fork in the road, take it.\",\n        \"In all things of nature there is something of the marvellous.\",\n        \"If you aren't going all the way, why go at all?\",\n        \"The world does not happen to you it happens from you.\",\n        \"The greatest obstacle to connecting with our joy is resentment.\",\n        \"Sometimes the biggest act of courage is a small one.\",\n        \"All action results from thought, so it is thoughts that matter.\",\n        \"Change in all things is sweet.\",\n        \"Without this playing with fantasy no creative work has ever yet come to birth. The debt we owe to the play of the imagination is incalculable.\",\n        \"Feeling and longing are the motive forces behind all human endeavor and human creations.\",\n        \"I believe that a simple and unassuming manner of life is best for everyone, best both for the body and the mind.\",\n        \"Neither a lofty degree of intelligence nor imagination nor both together go to the making of genius. Love, love, love, that is the soul of genius.\",\n        \"You may be deceived if you trust too much, but you will live in torment if you don't trust enough.\",\n        \"To be great is to be misunderstood.\",\n        \"If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place.\",\n        \"Do, or do not. There is no try.\",\n        \"Good timber does not grow with ease; the stronger the wind, the stronger the trees.\",\n        \"Courage is not about taking risks unknowingly, but putting your own being in front of challenges that others may not be able to.\",\n        \"Wisdom is knowing what to do next; Skill is knowing how ot do it, and Virtue is doing it.\",\n        \"As an organizer I start from where the world is, as it is, not as I would like it to be.\",\n        \"Better than a thousand hollow words, is one word that brings peace.\",\n        \"Saying thank you is more than good manners. It is good spirituality.\",\n        \"If one advances confidently in the direction of his dream, and endeavours to live the life which he had imagines, he will meet with a success unexpected in common hours.\",\n        \"Imagination rules the world.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"A life spent making mistakes is not only more honourable but more useful than a life spent in doing nothing.\",\n        \"Don't wait. The time will never be just right.\",\n        \"Some people think it's holding that makes one strong sometimes it's letting go.\",\n        \"Never tell me the sky is the limit when there are footprints on the moon.\",\n        \"Most smiles are started by another smile.\",\n        \"He who has imagination without learning has wings but no feet.\",\n        \"The noblest worship is to make yourself as good and as just as you can.\",\n        \"To choose what is difficult all ones days, as if it were easy, that is faith.\",\n        \"Learn to listen. Opportunity could be knocking at your door very softly.\",\n        \"Men are disturbed not by things, but by the view which they take of them.\",\n        \"For everything that lives is holy, life delights in life.\",\n        \"I believe that we are fundamentally the same and have the same basic potential.\",\n        \"You can't choose up sides on a round world.\",\n        \"Action may not always bring happiness; but there is no happiness without action.\",\n        \"Everything that irritates us about others can lead us to an understanding about ourselves.\",\n        \"You will not be punished for your anger, you will be punished by your anger.\",\n        \"Iron rusts from disuse; water loses its purity from stagnation... even so does inaction sap the vigour of the mind.\",\n        \"Reason and free inquiry are the only effectual agents against error.\",\n        \"Look forward to spring as a time when you can start to see what nature has to offer once again.\",\n        \"You always succeed in producing a result.\",\n        \"Great indeed is the sublimity of the Creative, to which all beings owe their beginning and which permeates all heaven.\",\n        \"The greatest barrier to success is the fear of failure.\",\n        \"Don't be pushed by your problems; be led by your dreams.\",\n        \"When your desires are strong enough you will appear to possess superhuman powers to achieve.\",\n        \"Before you put on a frown, make absolutely sure there are no smiles available.\",\n        \"Be slow of tongue and quick of eye.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"Wherever a man turns he can find someone who needs him.\",\n        \"The path to success is to take massive, determined action.\",\n        \"It is better to understand a little than to misunderstand a lot.\",\n        \"The only way to have a friend is to be one.\",\n        \"There is no great genius without some touch of madness.\",\n        \"The only person who never makes mistakes is the person who never does anything.\",\n        \"The day always looks brighter from behind a smile.\",\n        \"A man of ability and the desire to accomplish something can do anything.\",\n        \"Trouble is only opportunity in work clothes.\",\n        \"If you must tell me your opinions, tell me what you believe in. I have plenty of douts of my own.\",\n        \"Those who dream by day are cognizant of many things which escape those who dream only by night.\",\n        \"When deeds speak, words are nothing.\",\n        \"A friend is someone who understands your past, believes in your future, and accepts you just the way you are.\",\n        \"Gratitude is riches. Complaint is poverty.\",\n        \"A bend in the road is not the end of the road...unless you fail to make the turn.\",\n        \"There is no greater harm than that of time wasted.\",\n        \"It is better to understand a little than to misunderstand a lot.\",\n        \"Our deepest wishes are whispers of our authentic selves. We must learn to respect them. We must learn to listen.\",\n        \"By believing passionately in something that does not yet exist, we create it.\",\n        \"The most successful people are those who are good at plan B.\",\n        \"Your big opportunity may be right where you are now.\",\n        \"The mind is everything. What you think you become.\",\n        \"Any of us can achieve virtue, if by virtue we merely mean the avoidance of the vices that do not attract us.\",\n        \"One who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever.\",\n        \"He who has imagination without learning has wings but no feet.\",\n        \"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.\",\n        \"It's easier to see the mistakes on someone else's paper.\",\n        \"When we seek to discover the best in others, we somehow bring out the best in ourselves.\",\n        \"An ant on the move does more than a dozing ox\",\n        \"When I let go of what I am, I become what I might be.\",\n        \"All is flux; nothing stays still.\",\n        \"We are all faced with a series of great opportunities brilliantly disguised as impossible situations.\",\n        \"In skating over thin ice our safety is in our speed.\",\n        \"Whatever happens, take responsibility.\",\n        \"What you see depends on what you're looking for.\",\n        \"Mountains cannot be surmounted except by winding paths.\",\n        \"As we are liberated from our own fear, our presence automatically liberates others.\",\n        \"The truest wisdom is a resolute determination.\",\n        \"Do what you can. Want what you have. Be who you are.\",\n        \"The simplest things are often the truest.\",\n        \"Those who are free of resentful thoughts surely find peace.\",\n        \"Today is the tomorrow you worried about yesterday.\",\n        \"It is never too late to be what you might have been.\",\n        \"To go against the dominant thinking of your friends, of most of the people you see every day, is perhaps the most difficult act of heroism you can perform.\",\n        \"Meaning is not what you start with but what you end up with.\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"Time you enjoy wasting, was not wasted.\",\n        \"Your work is to discover your work and then with all your heart to give yourself to it.\",\n        \"It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something.\",\n        \"Be yourself; everyone else is already taken.\",\n        \"I have often regretted my speech, never my silence.\",\n        \"The bird of paradise alights only upon the hand that does not grasp.\",\n        \"Growth itself contains the germ of happiness.\",\n        \"He who obtains has little. He who scatters has much.\",\n        \"Science is organized knowledge. Wisdom is organized life.\",\n        \"Forgiveness does not change the past, but it does enlarge the future.\",\n        \"Everything that irritates us about others can lead us to an understanding about ourselves.\",\n        \"Happiness cannot be travelled to, owned, earned, worn or consumed. Happiness is the spiritual experience of living every minute with love, grace and gratitude.\",\n        \"Truth is generally the best vindication against slander.\",\n        \"He who experiences the unity of life sees his own Self in all beings, and all beings in his own Self, and looks on everything with an impartial eye.\",\n        \"If you smile when no one else is around, you really mean it.\",\n        \"Without leaps of imagination, or dreaming, we lose the excitement of possibilities. Dreaming, after all, is a form of planning.\",\n        \"When you are content to be simply yourself and don't compare or compete, everybody will respect you.\",\n        \"One today is worth two tomorrows.\",\n        \"Giving up doesn't always mean you are weak. Sometimes it means that you are strong enough to let go.\",\n        \"How wonderful that we have met with a paradox. Now we have some hope of making progress.\",\n        \"If I could reach up and hold a star for every time you've made me smile, the entire evening sky would be in the palm of my hand.\",\n        \"Learning is finding out what you already know.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"Never let lack of money interfere with having fun.\",\n        \"Take time to deliberate, but when the time for action has arrived, stop thinking and go in.\",\n        \"Things turn out best for those who make the best of the way things turn out.\",\n        \"We must be as courteous to a man as we are to a picture, which we are willing to give the advantage of a good light.\",\n        \"Living at risk is jumping off the cliff and building your wings on the way down.\",\n        \"It isn't what happens to us that causes us to suffer; it's what we say to ourselves about what happens.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept the responsibility for changing them.\",\n        \"No alibi will save you from accepting the responsibility.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"There is nothing impossible to him who will try.\",\n        \"If you do what you've always done, you'll get what youve always gotten.\",\n        \"What is necessary to change a person is to change his awareness of himself.\",\n        \"A wise man will make more opportunities than he finds.\",\n        \"I believe in one thing only, the power of human will.\",\n        \"He is able who thinks he is able.\",\n        \"We could never learn to be brave and patient if there were only joy in the world.\",\n        \"He who knows others is wise. He who knows himself is enlightened.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"Though no one can go back and make a brand new start, anyone can start from not and make a brand new ending.\",\n        \"Imagination is not a talent of some men but is the health of every man.\",\n        \"People grow through experience if they meet life honestly and courageously. This is how character is built.\",\n        \"Into each life rain must fall but rain can be the giver of life and it is all in your attitude that makes rain produce sunshine.\",\n        \"When in doubt, tell the truth.\",\n        \"Why worry about tomorrow, when today is all we have?\",\n        \"Don't let what you can't do stop you from doing what you can do.\",\n        \"Try not to become a man of success but rather try to become a man of value.\",\n        \"The most dangerous way to lose time is not to spend it having fun, but to spend it doing fake work. When you spend time having fun, you know you're being self-indulgent.\",\n        \"The best cure for the body is a quiet mind.\",\n        \"As our case is new, we must think and act anew.\",\n        \"Deep listening is miraculous for both listener and speaker.When someone receives us with open-hearted, non-judging, intensely interested listening, our spirits expand.\",\n        \"No is easier to do. Yes is easier to say.\",\n        \"The right way is not always the popular and easy way. Standing for right when it is unpopular is a true test of moral character.\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"Sadness may be part of life but there is no need to let it dominate your entire life.\",\n        \"Let us revere, let us worship, but erect and open-eyed, the highest, not the lowest; the future, not the past!\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"Men of perverse opinion do not know the excellence of what is in their hands, till some one dash it from them.\",\n        \"The greatest pleasure I know is to do a good action by stealth, and to have it found out by accident.\",\n        \"It is the quality of our work which will please God, not the quantity.\",\n        \"I can't believe that God put us on this earth to be ordinary.\",\n        \"Three things in human life are important. The first is to be kind. The second is to be kind. The third is to be kind.\",\n        \"If the single man plant himself indomitably on his instincts, and there abide, the huge world will come round to him.\",\n        \"Parents can only give good advice or put them on the right paths, but the final forming of a persons character lies in their own hands.\",\n        \"Slow down and enjoy life. It's not only the scenery you miss by going too fast you also miss the sense of where you are going and why.\",\n        \"Great indeed is the sublimity of the Creative, to which all beings owe their beginning and which permeates all heaven.\",\n        \"Happiness depends upon ourselves.\",\n        \"It does not matter how slowly you go as long as you do not stop.\",\n        \"Trusting our intuition often saves us from disaster.\",\n        \"Society develops wit, but its contemplation alone forms genius.\",\n        \"The pessimist sees difficulty in every opportunity. The optimist sees the opportunity in every difficulty.\",\n        \"Allow the world to live as it chooses, and allow yourself to live as you choose.\",\n        \"Man is not sum of what he has already, but rather the sum of what he does not yet have, of what he could have.\",\n        \"I'm not afraid of storms, for I'm learning how to sail my ship.\",\n        \"If one does not know to which port is sailing, no wind is favorable.\",\n        \"The purpose of learning is growth, and our minds, unlike our bodies, can continue growing as we continue to live.\",\n        \"Follow effective action with quiet reflection. From the quiet reflection will come even more effective action.\",\n        \"Talk doesn't cook rice.\",\n        \"Never, never, never give up.\",\n        \"If I could reach up and hold a star for every time you've made me smile, the entire evening sky would be in the palm of my hand.\",\n        \"A short saying oft contains much wisdom.\",\n        \"Stay away from what might have been and look at what will be.\",\n        \"The purpose of learning is growth, and our minds, unlike our bodies, can continue growing as we continue to live.\",\n        \"A single conversation across the table with a wise person is worth a months study of books.\",\n        \"Today is the tomorrow you worried about yesterday.\",\n        \"To be happy is to be able to become aware of oneself without fright.\",\n        \"We may encounter many defeats but we must not be defeated.\",\n        \"To be wrong is nothing unless you continue to remember it.\",\n        \"Nature gave us one tongue and two ears so we could hear twice as much as we speak.\",\n        \"We may encounter many defeats but we must not be defeated.\",\n        \"Change will not come if we wait for some other person or some other time. We are the ones weve been waiting for. We are the change that we seek.\",\n        \"Nothing is so strong as gentleness. Nothing is so gentle as real strength.\",\n        \"A gem cannot be polished without friction, nor a man perfected without trials.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity.\",\n        \"Where all think alike, no one thinks very much.\",\n        \"Reality is merely an illusion, albeit a very persistent one.\",\n        \"Never bend your head. Always hold it high. Look the world right in the eye.\",\n        \"A weed is no more than a flower in disguise.\",\n        \"When we quit thinking primarily about ourselves and our own self-preservation, we undergo a truly heroic transformation of consciousness.\",\n        \"Knowing is not enough; we must apply!\",\n        \"A thing long expected takes the form of the unexpected when at last it comes.\",\n        \"We could never learn to be brave and patient if there were only joy in the world.\",\n        \"Never miss an opportunity to make others happy, even if you have to leave them alone in order to do it.\",\n        \"All our talents increase in the using, and the every faculty, both good and bad, strengthen by exercise.\",\n        \"Failure will never overtake me if my determination to succeed is strong enough.\",\n        \"In three words I can sum up everything Ive learned about life: it goes on.\",\n        \"When you dance, your purpose is not to get to a certain place on the floor. It's to enjoy each step along the way.\",\n        \"The secret of success is constancy to purpose.\",\n        \"Winners have simply formed the habit of doing things losers don't like to do.\",\n        \"Constant kindness can accomplish much. As the sun makes ice melt, kindness causes misunderstanding, mistrust, and hostility to evaporate.\",\n        \"The true way to render ourselves happy is to love our work and find in it our pleasure.\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"You got to be careful if you don't know where you're going, because you might not get there.\",\n        \"When you discover your mission, you will feel its demand. It will fill you with enthusiasm and a burning desire to get to work on it.\",\n        \"Promises are the uniquely human way of ordering the future, making it predictable and reliable to the extent that this is humanly possible.\",\n        \"He who knows, does not speak. He who speaks, does not know.\",\n        \"Happiness is found in doing, not merely possessing.\",\n        \"The spirit, the will to win, and the will to excel, are the things that endure. These qualities are so much more important than the events that occur.\",\n        \"Happiness does not come about only due to external circumstances; it mainly derives from inner attitudes.\",\n        \"Never regret. If it's good, it's wonderful. If it's bad, it's experience.\",\n        \"The foolish man seeks happiness in the distance, the wise grows it under his feet.\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"We learn what we have said from those who listen to our speaking.\",\n        \"Holding on to anger is like grasping a hot coal with the intent of throwing it at someone else; you are the one who gets burned.\",\n        \"Don't miss all the beautiful colors of the rainbow looking for that pot of gold.\",\n        \"Forgiveness does not change the past, but it does enlarge the future.\",\n        \"The worst bankrupt in the world is the person who has lost his enthusiasm.\",\n        \"Don't cry because it's over. Smile because it happened.\",\n        \"Having nothing, nothing can he lose.\",\n        \"Action is the foundational key to all success.\",\n        \"You can't create in a vacuum. Life gives you the material and dreams can propel new beginnings.\",\n        \"The least of things with a meaning is worth more in life than the greatest of things without it.\",\n        \"Quality means doing it right when no one is looking.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"It is in your moments of decision that your destiny is shaped.\",\n        \"The universe is full of magical things, patiently waiting for our wits to grow sharper.\",\n        \"The worst bankrupt in the world is the person who has lost his enthusiasm.\",\n        \"The world is a book, and those who do not travel read only a page.\",\n        \"Always tell the truth. That way, you don't have to remember what you said.\",\n        \"The world makes way for the man who knows where he is going.\",\n        \"Constant kindness can accomplish much. As the sun makes ice melt, kindness causes misunderstanding, mistrust, and hostility to evaporate.\",\n        \"The past has no power to stop you from being present now. Only your grievance about the past can do that.\",\n        \"Your body is precious. It is our vehicle for awakening. Treat it with care.\",\n        \"Self-trust is the first secret of success.\",\n        \"See the positive side, the potential, and make an effort.\",\n        \"Happiness is a Swedish sunset it is there for all, but most of us look the other way and lose it.\",\n        \"Adversity isn't set against you to fail; adversity is a way to build your character so that you can succeed over and over again through perseverance.\",\n        \"The best thing in every noble dream is the dreamer...\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity\",\n        \"If you propose to speak, always ask yourself, is it true, is it necessary, is it kind.\",\n        \"You're not obligated to win. You're obligated to keep trying to do the best you can every day.\",\n        \"You give before you get.\",\n        \"Speak when you are angry and you will make the best speech you will ever regret.\",\n        \"The moment one gives close attention to anything, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"There are two ways to slide easily through life: to believe everything or to doubt everything; both ways save us from thinking.\",\n        \"Good actions give strength to ourselves and inspire good actions in others.\",\n        \"Friendship isn't a big thing. It's a million little things.\",\n        \"Using the power of decision gives you the capacity to get past any excuse to change any and every part of your life in an instant.\",\n        \"Discovery consists of seeing what everybody has seen and thinking what nobody else has thought.\",\n        \"If you don't design your own life plan, chances are you'll fall into someone else's plan. And guess what they have planned for you? Not much.\",\n        \"What we see depends mainly on what we look for.\",\n        \"The more light you allow within you, the brighter the world you live in will be.\",\n        \"People may doubt what you say, but they will believe what you do.\",\n        \"It is difficult to achieve a spirit of genuine cooperation as long as people remain indifferent to the feelings and happiness of others.\",\n        \"And as we let our own light shine, we unconsciously give other people permission to do the same.\",\n        \"One faces the future with ones past.\",\n        \"You have enemies? Good. That means you've stood up for something, sometime in your life.\",\n        \"There is one thing you have got to learn about our movement. Three people are better than no people.\",\n        \"Every great advance in science has issued from a new audacity of the imagination.\",\n        \"Perseverance is a great element of success. If you only knock long enough and loud enough at the gate, you are sure to wake up somebody.\",\n        \"To want to be what one can be is purpose in life.\",\n        \"Nothing will work unless you do.\",\n        \"All serious daring starts from within.\",\n        \"I am not afraid of tomorrow, for I have seen yesterday and I love today.\",\n        \"If you kick a stone in anger, you'll hurt your own foot.\",\n        \"Keep yourself to the sunshine and you cannot see the shadow.\",\n        \"To climb steep hills requires a slow pace at first.\",\n        \"I have often regretted my speech, never my silence.\",\n        \"Success is determined by those whom prove the impossible, possible.\",\n        \"Don't judge each day by the harvest you reap but by the seeds that you plant.\",\n        \"Example has more followers than reason.\",\n        \"We are all something, but none of us are everything.\",\n        \"Better than a thousand hollow words, is one word that brings peace.\",\n        \"You might well remember that nothing can bring you success but yourself.\",\n        \"Never mistake motion for action.\",\n        \"You cannot be lonely if you like the person you're alone with.\",\n        \"Cherish your visions and your dreams as they are the children of your soul, the blueprints of your ultimate achievements.\",\n        \"To enjoy life, we must touch much of it lightly.\",\n        \"Don't wait for your feelings to change to take the action. Take the action and your feelings will change.\",\n        \"To hell with circumstances; I create opportunities.\",\n        \"Thousands of candles can be lighted from a single candle, and the life of the candle will not be shortened. Happiness never decreases by being shared.\",\n        \"I am glad that I paid so little attention to good advice; had I abided by it I might have been saved from some of my most valuable mistakes.\",\n        \"Without this playing with fantasy no creative work has ever yet come to birth. The debt we owe to the play of the imagination is incalculable.\",\n        \"Great is the art of beginning, but greater is the art of ending.\",\n        \"Worry gives a small thing a big shadow.\",\n        \"Learning is finding out what you already know.\",\n        \"Our ability to achieve happiness and success depends on the strength of our wings.\",\n        \"The fox has many tricks. The hedgehog has but one. But that is the best of all.\",\n        \"It is very easy to forgive others their mistakes; it takes more grit to forgive them for having witnessed your own.\",\n        \"He who knows that enough is enough will always have enough.\",\n        \"You can complain because roses have thorns, or you can rejoice because thorns have roses.\",\n        \"We make a living by what we get, but we make a life by what we give.\",\n        \"Impossibilities are merely things which we have not yet learned.\",\n        \"Bite off more than you can chew, then chew it.\",\n        \"Some people are always grumbling because roses have thorns; I am thankful that thorns have roses.\",\n        \"Judge nothing, you will be happy. Forgive everything, you will be happier. Love everything, you will be happiest.\",\n        \"The truth which has made us free will in the end make us glad also.\",\n        \"Everything we hear is an opinion, not a fact. Everything we see is a perspective, not the truth.\",\n        \"All children are artists. The problem is how to remain an artist once he grows up.\",\n        \"Who sows virtue reaps honour.\",\n        \"All fixed set patterns are incapable of adaptability or pliability. The truth is outside of all fixed patterns.\",\n        \"There is nothing so useless as doing efficiently that which should not be done at all.\",\n        \"To know oneself is to study oneself in action with another person.\",\n        \"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.\",\n        \"To be wrong is nothing unless you continue to remember it.\",\n        \"Who we are never changes. Who we think we are does.\",\n        \"Why worry about tomorrow, when today is all we have?\",\n        \"Be slow of tongue and quick of eye.\",\n        \"A little more persistence, a little more effort, and what seemed hopeless failure may turn to glorious success.\",\n        \"We must embrace pain and burn it as fuel for our journey.\",\n        \"When we seek to discover the best in others, we somehow bring out the best in ourselves.\",\n        \"The journey of a thousand miles begins with one step.\",\n        \"Moral excellence comes about as a result of habit. We become just by doing just acts, temperate by doing temperate acts, brave by doing brave acts.\",\n        \"We are the leaves of one branch, the drops of one sea, the flowers of one garden.\",\n        \"A weed is no more than a flower in disguise.\",\n        \"Fame usually comes to those who are thinking about something else.\",\n        \"Your body is precious. It is our vehicle for awakening. Treat it with care.\",\n        \"When you meet someone better than yourself, turn your thoughts to becoming his equal. When you meet someone not as good as you are, look within and examine your own self.\",\n        \"We are what we repeatedly do. Excellence, then, is not an act, but a habit.\",\n        \"I'm not afraid of storms, for I'm learning how to sail my ship.\",\n        \"Some people think it's holding that makes one strong sometimes it's letting go.\",\n        \"We must not allow ourselves to become like the system we oppose.\",\n        \"If you break your neck, if you have nothing to eat, if your house is on fire, then you got a problem. Everything else is inconvenience.\",\n        \"The truth you believe and cling to makes you unavailable to hear anything new.\",\n        \"Happiness is a perfume you cannot pour on others without getting a few drops on yourself.\",\n        \"Begin at once to live and count each separate day as a separate life.\",\n        \"Quality means doing it right when no one is looking.\",\n        \"If we learn to open our hearts, anyone, including the people who drive us crazy, can be our teacher.\",\n        \"Wherever you go, go with all your heart.\",\n        \"The key to transforming our hearts and minds is to have an understanding of how our thoughts and emotions work.\",\n        \"However many holy words you read, however many you speak, what good will they do you if you do not act on upon them?\",\n        \"A stumble may prevent a fall.\",\n        \"When performance exceeds ambition, the overlap is called success.\",\n        \"How many cares one loses when one decides not to be something but to be someone.\",\n        \"If we had no winter, the spring would not be so pleasant; if we did not sometimes taste of adversity, prosperity would not be so welcome.\",\n        \"Small opportunities are often the beginning of great enterprises.\",\n        \"Passion creates the desire for more and action fuelled by passion creates a future.\",\n        \"Our doubts are traitors and make us lose the good we often might win, by fearing to attempt.\",\n        \"There are no failures. Just experiences and your reactions to them.\",\n        \"You have to take it as it happens, but you should try to make it happen the way you want to take it.\",\n        \"We learn what we have said from those who listen to our speaking.\",\n        \"When in doubt, tell the truth.\",\n        \"I will not be concerned at other men is not knowing me;I will be concerned at my own want of ability.\",\n        \"Always be smarter than the people who hire you.\",\n        \"Life is what happens while you are making other plans.\",\n        \"You cannot be lonely if you like the person you're alone with.\",\n        \"The only Zen you find on the tops of mountains is the Zen you bring up there.\",\n        \"Everything that irritates us about others can lead us to an understanding about ourselves.\",\n        \"The journey of a thousand miles begins with one step.\",\n        \"Important principles may, and must, be inflexible.\",\n        \"You'll see it when you believe it.\",\n        \"Do you want to know who you are? Don't ask. Act! Action will delineate and define you.\",\n        \"We see things not as they are, but as we are. Our perception is shaped by our previous experiences.\",\n        \"A good rest is half the work.\",\n        \"Give thanks for a little and you will find a lot.\",\n        \"Sooner or later, those who win are those who think they can.\",\n        \"It is better to understand a little than to misunderstand a lot.\",\n        \"We are all something, but none of us are everything.\",\n        \"The person who lives life fully, glowing with life's energy, is the person who lives a successful life.\",\n        \"You teach best what you most need to learn.\",\n        \"Everything that exists is in a manner the seed of that which will be.\",\n        \"Everything can be taken from a man but ... the last of the human freedoms to choose ones attitude in any given set of circumstances, to choose ones own way.\",\n        \"Try not to become a man of success, but rather try to become a man of value.\",\n        \"There never was a good knife made of bad steel.\",\n        \"If you change the way you look at things, the things you look at change.\",\n        \"Good thoughts are no better than good dreams, unless they be executed.\",\n        \"Write your plans in pencil and give God the eraser.\",\n        \"Change will not come if we wait for some other person or some other time. We are the ones weve been waiting for. We are the change that we seek.\",\n        \"A man should look for what is, and not for what he thinks should be.\",\n        \"To go against the dominant thinking of your friends, of most of the people you see every day, is perhaps the most difficult act of heroism you can perform.\",\n        \"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine.\",\n        \"Every day may not be good, but there's something good in every day.\",\n        \"While we stop to think, we often miss our opportunity.\",\n        \"Whatever we expect with confidence becomes our own self-fulfilling prophecy.\",\n        \"To live a pure unselfish life, one must count nothing as ones own in the midst of abundance.\",\n        \"If I could reach up and hold a star for every time you've made me smile, the entire evening sky would be in the palm of my hand.\",\n        \"I cannot say whether things will get better if we change; what I can say is they must change if they are to get better.\",\n        \"If you love life, don't waste time, for time is what life is made up of.\",\n        \"Criticism is something you can easily avoid by saying nothing, doing nothing, and being nothing.\",\n        \"The mark of your ignorance is the depth of your belief in injustice and tragedy. What the caterpillar calls the end of the world, the Master calls the butterfly.\",\n        \"Don't wait for people to be friendly. Show them how.\",\n        \"I would maintain that thanks are the highest form of thought, and that gratitude is happiness doubled by wonder.\",\n        \"The beginning is always today.\",\n        \"No act of kindness, no matter how small, is ever wasted.\",\n        \"God always takes the simplest way.\",\n        \"Know how to listen, and you will profit even from those who talk badly.\",\n        \"Love vanquishes time. To lovers, a moment can be eternity, eternity can be the tick of a clock.\",\n        \"Important principles may, and must, be inflexible.\",\n        \"Good thoughts are no better than good dreams, unless they be executed.\",\n        \"Tension is who you think you should be. Relaxation is who you are.\",\n        \"Talk doesn't cook rice.\",\n        \"I have no special talent. I am only passionately curious.\",\n        \"Take it easy, but take it.\",\n        \"Wrinkles should merely indicate where smiles have been.\",\n        \"Setting an example is not the main means of influencing another, it is the only means.\",\n        \"To be wronged is nothing unless you continue to remember it.\",\n        \"I'm not afraid of storms, for I'm learning how to sail my ship.\",\n        \"No man was ever wise by chance.\",\n        \"Every day may not be good, but there's something good in every day.\",\n        \"Almost everything comes from nothing.\",\n        \"Efficiency is doing things right; effectiveness is doing the right things.\",\n        \"We can only learn to love by loving.\",\n        \"The difficulties of life are intended to make us better, not bitter.\",\n        \"Music in the soul can be heard by the universe.\",\n        \"Never do things others can do and will do, if there are things others cannot do or will not do.\",\n        \"Snowflakes are one of natures most fragile things, but just look what they can do when they stick together.\",\n        \"It is better to take many small steps in the right direction than to make a great leap forward only to stumble backward.\",\n        \"He that never changes his opinions, never corrects his mistakes, and will never be wiser on the morrow than he is today.\",\n        \"Experience keeps a dear school, but fools will learn in no other.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"Ignorant men don't know what good they hold in their hands until they've flung it away.\",\n        \"If we look at the world with a love of life, the world will reveal its beauty to us.\",\n        \"Life shrinks or expands in proportion to one's courage.\",\n        \"A rolling stone gathers no moss.\",\n        \"He can who thinks he can, and he can't who thinks he can't. This is an inexorable, indisputable law.\",\n        \"A good teacher is like a candle it consumes itself to light the way for others.\",\n        \"He who conquers others is strong; He who conquers himself is mighty.\",\n        \"I am always doing that which I can not do, in order that I may learn how to do it.\",\n        \"Life is so constructed that an event does not, cannot, will not, match the expectation.\",\n        \"Take things as they are. Punch when you have to punch. Kick when you have to kick.\",\n        \"Sadness may be part of life but there is no need to let it dominate your entire life.\",\n        \"Good advice is always certain to be ignored, but that's no reason not to give it.\",\n        \"The day you decide to do it is your lucky day.\",\n        \"Knowing is not enough; we must apply!\",\n        \"Change is the law of life. And those who look only to the past or present are certain to miss the future.\",\n        \"The difficulties of life are intended to make us better, not bitter.\",\n        \"To give ones self earnestly to the duties due to men, and, while respecting spiritual beings, to keep aloof from them, may be called wisdom.\",\n        \"The past has no power to stop you from being present now. Only your grievance about the past can do that.\",\n        \"Everything is perfect in the universe even your desire to improve it.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"Today, give a stranger a smile without waiting for it may be the joy they need to have a great day.\",\n        \"It is never too late to be what you might have been.\",\n        \"I have never been hurt by anything I didn't say.\",\n        \"Kindness is more important than wisdom, and the recognition of this is the beginning of wisdom.\",\n        \"To free us from the expectations of others, to give us back to ourselves there lies the great, singular power of self-respect.\",\n        \"It is not so important to know everything as to appreciate what we learn.\",\n        \"The road leading to a goal does not separate you from the destination; it is essentially a part of it.\",\n        \"We must be as courteous to a man as we are to a picture, which we are willing to give the advantage of a good light.\",\n        \"My advice to you is not to inquire why or whither, but just enjoy your ice cream while its on your plate that's my philosophy.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept responsibility for changing them.\",\n        \"The cosmos is neither moral or immoral; only people are. He who would move the world must first move himself.\",\n        \"Speak when you are angry and you will make the best speech you will ever regret.\",\n        \"Peace comes from within. Do not seek it without.\",\n        \"The only thing to do with good advice is to pass it on. It is never of any use to oneself.\",\n        \"The greatest minds are capable of the greatest vices as well as of the greatest virtues.\",\n        \"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.\",\n        \"Decision is a risk rooted in the courage of being free.\",\n        \"All our knowledge begins with the senses, proceeds then to the understanding, and ends with reason. There is nothing higher than reason.\",\n        \"Obstacles are those frightful things you see when you take your eyes off your goal.\",\n        \"There is one thing you have got to learn about our movement. Three people are better than no people.\",\n        \"Every time you smile at someone, it is an action of love, a gift to that person, a beautiful thing.\",\n        \"Anyone who doesn't take truth seriously in small matters cannot be trusted in large ones either.\",\n        \"I believe that we are fundamentally the same and have the same basic potential.\",\n        \"The worst bankrupt in the world is the person who has lost his enthusiasm.\",\n        \"We must overcome the notion that we must be regular. It robs you of the chance to be extraordinary and leads you to the mediocre.\",\n        \"Time you enjoyed wasting was not wasted.\",\n        \"We must overcome the notion that we must be regular. It robs you of the chance to be extraordinary and leads you to the mediocre.\",\n        \"If you're in a bad situation, don't worry it'll change. If you're in a good situation, don't worry it'll change.\",\n        \"As an organizer I start from where the world is, as it is, not as I would like it to be.\",\n        \"A short saying often contains much wisdom.\",\n        \"I may not know everything, but everything is not known yet anyway.\",\n        \"The best thing about the future is that it only comes one day at a time.\",\n        \"The only Zen you find on the tops of mountains is the Zen you bring up there.\",\n        \"The biggest adventure you can ever take is to live the life of your dreams.\",\n        \"Your destiny isn't just fate; it is how you use your own developed abilities to get what you want.\",\n        \"If you think you can, you can. And if you think you can't, you're right.\",\n        \"Talk doesn't cook rice.\",\n        \"Face your deficiencies and acknowledge them; but do not let them master you. Let them teach you patience, sweetness, insight.\",\n        \"You got to be careful if you don't know where you're going, because you might not get there.\",\n        \"Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has.\",\n        \"Count your joys instead of your woes. Count your friends instead of your foes.\",\n        \"Happiness is a Swedish sunset it is there for all, but most of us look the other way and lose it.\",\n        \"Without leaps of imagination, or dreaming, we lose the excitement of possibilities. Dreaming, after all, is a form of planning.\",\n        \"The one who always loses, is the only person who gets the reward.\",\n        \"There is no need for temples, no need for complicated philosophies. My brain and my heart are my temples; my philosophy is kindness.\",\n        \"The person who lives life fully, glowing with life's energy, is the person who lives a successful life.\",\n        \"Time changes everything except something within us which is always surprised by change.\",\n        \"So is cheerfulness, or a good temper, the more it is spent, the more remains.\",\n        \"Loss is nothing else but change,and change is Natures delight.\",\n        \"Our kindness may be the most persuasive argument for that which we believe.\",\n        \"Shoot for the moon. Even if you miss, you'll land among the stars.\",\n        \"To be what we are, and to become what we are capable of becoming, is the only end of life.\",\n        \"If facts are the seeds that later produce knowledge and wisdom, then the emotions and the impressions of the senses are the fertile soil in which the seeds must grow.\",\n        \"It is never too late to be what you might have been.\",\n        \"An ant on the move does more than a dozing ox\",\n        \"Liberty, taking the word in its concrete sense, consists in the ability to choose.\",\n        \"Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has.\",\n        \"Our strength grows out of our weaknesses.\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"To exist is to change, to change is to mature, to mature is to go on creating oneself endlessly.\",\n        \"Do not be too timid and squeamish about your reactions. All life is an experiment. The more experiments you make the better.\",\n        \"All our knowledge has its origins in our perceptions.\",\n        \"Either you run the day or the day runs you.\",\n        \"There surely is in human nature an inherent propensity to extract all the good out of all the evil.\",\n        \"All action results from thought, so it is thoughts that matter.\",\n        \"Id rather regret the things that I have done than the things that I have not done.\",\n        \"The heart has its reasons which reason knows not of.\",\n        \"To keep the body in good health is a duty... otherwise we shall not be able to keep our mind strong and clear.\",\n        \"A bend in the road is not the end of the road...unless you fail to make the turn.\",\n        \"The truth is always exciting. Speak it, then. Life is dull without it.\",\n        \"Time you enjoy wasting, was not wasted.\",\n        \"Watch the little things; a small leak will sink a great ship.\",\n        \"You can't stop the waves, but you can learn to surf.\",\n        \"A good plan today is better than a perfect plan tomorrow.\",\n        \"Forget about all the reasons why something may not work. You only need to find one good reason why it will.\",\n        \"Happiness does not come about only due to external circumstances; it mainly derives from inner attitudes.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"Kindness is more important than wisdom, and the recognition of this is the beginning of wisdom.\",\n        \"Prosperity depends more on wanting what you have than having what you want.\",\n        \"The bird of paradise alights only upon the hand that does not grasp.\",\n        \"The worst bankrupt in the world is the person who has lost his enthusiasm.\",\n        \"Someone is special only if you tell them.\",\n        \"I'm not afraid of storms, for I'm learning how to sail my ship.\",\n        \"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.\",\n        \"Luck is what happens when preparation meets opportunity.\",\n        \"Accept the things to which fate binds you, and love the people with whom fate brings you together, but do so with all your heart.\",\n        \"The true way to render ourselves happy is to love our work and find in it our pleasure.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"Let us resolve to be masters, not the victims, of our history, controlling our own destiny without giving way to blind suspicions and emotions.\",\n        \"In a controversy the instant we feel anger we have already ceased striving for the truth, and have begun striving for ourselves.\",\n        \"Nothing great was ever achieved without enthusiasm.\",\n        \"You have enemies? Good. That means you've stood up for something, sometime in your life.\",\n        \"Either I will find a way, or I will make one.\",\n        \"When you realize how perfect everything is you will tilt your head back and laugh at the sky.\",\n        \"Music in the soul can be heard by the universe.\",\n        \"We must not say every mistake is a foolish one.\",\n        \"The only way to tell the truth is to speak with kindness. Only the words of a loving man can be heard.\",\n        \"Setting an example is not the main means of influencing another, it is the only means.\",\n        \"Be not angry that you cannot make others as you wish them to be, since you cannot make yourself as you wish to be.\",\n        \"Knowledge is a process of piling up facts; wisdom lies in their simplification.\",\n        \"The foolish man seeks happiness in the distance; the wise grows it under his feet.\",\n        \"One secret of success in life is for a man to be ready for his opportunity when it comes.\",\n        \"How we spend our days is, of course, how we spend our lives.\",\n        \"If you love someone, set them free. If they come back they're yours; if they don't they never were.\",\n        \"We do not quit playing because we grow old, we grow old because we quit playing.\",\n        \"The really unhappy person is the one who leaves undone what they can do, and starts doing what they don't understand; no wonder they come to grief.\",\n        \"It is not fair to ask of others what you are unwilling to do yourself.\",\n        \"In three words I can sum up everything Ive learned about life: it goes on.\",\n        \"No one has a finer command of language than the person who keeps his mouth shut.\",\n        \"Never tell me the sky is the limit when there are footprints on the moon.\",\n        \"It's important to know that words don't move mountains. Work, exacting work moves mountains.\",\n        \"Time you enjoyed wasting was not wasted.\",\n        \"There is not one big cosmic meaning for all, there is only the meaning we each give to our life.\",\n        \"It is better to take many small steps in the right direction than to make a great leap forward only to stumble backward.\",\n        \"When you realize how perfect everything is you will tilt your head back and laugh at the sky.\",\n        \"I have never been hurt by anything I didn't say.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"I have just three things to teach: simplicity, patience, compassion. These three are your greatest treasures.\",\n        \"A life spent making mistakes is not only more honourable but more useful than a life spent in doing nothing.\",\n        \"Wisdom is the reward you get for a lifetime of listening when you'd have preferred to talk.\",\n        \"Your body is precious. It is our vehicle for awakening. Treat it with care.\",\n        \"The day always looks brighter from behind a smile.\",\n        \"Quality is never an accident; it is always the result of intelligent effort.\",\n        \"When you meet someone better than yourself, turn your thoughts to becoming his equal. When you meet someone not as good as you are, look within and examine your own self.\",\n        \"Of course there is no formula for success except perhaps an unconditional acceptance of life and what it brings.\",\n        \"To avoid criticism, do nothing, say nothing, be nothing.\",\n        \"No valid plans for the future can be made by those who have no capacity for living now.\",\n        \"You have to believe in yourself.\",\n        \"Every artist dips his brush in his own soul, and paints his own nature into his pictures.\",\n        \"The only limit to our realization of tomorrow will be our doubts of today.\",\n        \"Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.\",\n        \"The day you decide to do it is your lucky day.\",\n        \"If you break your neck, if you have nothing to eat, if your house is on fire, then you got a problem. Everything else is inconvenience.\",\n        \"The best place to find a helping hand is at the end of your own arm.\",\n        \"The superior man is satisfied and composed; the mean man is always full of distress.\",\n        \"A leader or a man of action in a crisis almost always acts subconsciously and then thinks of the reasons for his action.\",\n        \"Life is a succession of lessons, which must be lived to be understood.\",\n        \"If one does not know to which port is sailing, no wind is favorable.\",\n        \"Sometimes the cards we are dealt are not always fair. However you must keep smiling and moving on.\",\n        \"Until you make peace with who you are, you'll never be content with what you have.\",\n        \"Love and compassion open our own inner life, reducing stress, distrust and loneliness.\",\n        \"Doing what you love is the cornerstone of having abundance in your life.\",\n        \"Love is the master key that opens the gates of happiness.\",\n        \"If you love life, don't waste time, for time is what life is made up of.\",\n        \"To enjoy life, we must touch much of it lightly.\",\n        \"To accomplish great things, we must not only act, but also dream; not only plan, but also believe.\",\n        \"Wishes can be your best avenue of getting what you want when you turn wishes into action. Action moves your wish to the forefront from thought to reality.\",\n        \"Don't leave a stone unturned. It's always something, to know you have done the most you could.\",\n        \"Discovery consists of seeing what everybody has seen and thinking what nobody else has thought.\",\n        \"The difference between what we do and what we are capable of doing would suffice to solve most of the worlds problems.\",\n        \"Absence makes the heart grow fonder.\",\n        \"Knowing is not enough; we must apply!\",\n        \"Accept challenges, so that you may feel the exhilaration of victory.\",\n        \"Trouble is only opportunity in work clothes.\",\n        \"Don't wait for people to be friendly. Show them how.\",\n        \"Criticism is something you can easily avoid by saying nothing, doing nothing, and being nothing.\",\n        \"Sadness flies away on the wings of time.\",\n        \"The world turns aside to let any man pass who knows where he is going.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"It is better to take many small steps in the right direction than to make a great leap forward only to stumble backward.\",\n        \"It is not the possession of truth, but the success which attends the seeking after it, that enriches the seeker and brings happiness to him.\",\n        \"Perseverance is a great element of success. If you only knock long enough and loud enough at the gate, you are sure to wake up somebody.\",\n        \"We must never forget that it is through our actions, words, and thoughts that we have a choice.\",\n        \"Do good by stealth, and blush to find it fame.\",\n        \"All our knowledge has its origins in our perceptions.\",\n        \"Silence is the true friend that never betrays.\",\n        \"No is easier to do. Yes is easier to say.\",\n        \"Don't think of it as failure. Think of it as time-released success.\",\n        \"Truth is generally the best vindication against slander.\",\n        \"Myths which are believed in tend to become true.\",\n        \"Trusting our intuition often saves us from disaster.\",\n        \"Knowledge is a process of piling up facts; wisdom lies in their simplification.\",\n        \"Everything that exists is in a manner the seed of that which will be.\",\n        \"Three things cannot be long hidden: the sun, the moon, and the truth.\",\n        \"You really can change the world if you care enough.\",\n        \"You cannot travel the path until you have become the path itself.\",\n        \"The industrial landscape is already littered with remains of once successful companies that could not adapt their strategic vision to altered conditions of competition.\",\n        \"You cannot have what you do not want.\",\n        \"By believing passionately in something that does not yet exist, we create it.\",\n        \"The longer we dwell on our misfortunes, the greater is their power to harm us.\",\n        \"Meditation brings wisdom; lack of mediation leaves ignorance. Know well what leads you forward and what hold you back, and choose the path that leads to wisdom.\",\n        \"Nothing happens unless first we dream.\",\n        \"Better to have loved and lost, than to have never loved at all.\",\n        \"If you spend too much time thinking about a thing, you'll never get it done.\",\n        \"Nothing will work unless you do.\",\n        \"If you must tell me your opinions, tell me what you believe in. I have plenty of douts of my own.\",\n        \"The world is a book, and those who do not travel read only a page.\",\n        \"Imagination will often carry us to worlds that never were. But without it we go nowhere.\",\n        \"We can only learn to love by loving.\",\n        \"Your work is to discover your work and then with all your heart to give yourself to it.\",\n        \"You cannot find yourself by going into the past. You can find yourself by coming into the present.\",\n        \"We don't stop playing because we grow old; we grow old because we stop playing.\",\n        \"The doors we open and close each day decide the lives we live.\",\n        \"With courage you will dare to take risks, have the strength to be compassionate, and the wisdom to be humble. Courage is the foundation of integrity.\",\n        \"You can't let praise or criticism get to you. It's a weakness to get caught up in either one.\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"Most folks are as happy as they make up their minds to be.\",\n        \"It does not matter how slowly you go as long as you do not stop.\",\n        \"We must overcome the notion that we must be regular. It robs you of the chance to be extraordinary and leads you to the mediocre.\",\n        \"Silence is a source of great strength.\",\n        \"Excellence is not a skill. It is an attitude.\",\n        \"Decision is a risk rooted in the courage of being free.\",\n        \"The smallest flower is a thought, a life answering to some feature of the Great Whole, of whom they have a persistent intuition.\",\n        \"If you spend too much time thinking about a thing, you'll never get it done.\",\n        \"A man sees in the world what he carries in his heart.\",\n        \"The difference between what we do and what we are capable of doing would suffice to solve most of the worlds problems.\",\n        \"Many of life's failures are people who did not realize how close they were to success when they gave up.\",\n        \"We cannot do everything at once, but we can do something at once.\",\n        \"You're not obligated to win. You're obligated to keep trying to do the best you can every day.\",\n        \"The art of progress is to preserve order amid change, and to preserve change amid order.\",\n        \"Be the chief but never the lord.\",\n        \"Life isn't about finding yourself. Life is about creating yourself.\",\n        \"Good luck is another name for tenacity of purpose.\",\n        \"The future is completely open, and we are writing it moment to moment.\",\n        \"I begin with an idea and then it becomes something else.\",\n        \"We are Divine enough to ask and we are important enough to receive.\",\n        \"To make no mistakes is not in the power of man; but from their errors and mistakes the wise and good learn wisdom for the future.\",\n        \"Put your future in good hands your own.\",\n        \"Don't frown because you never know who is falling in love with your smile.\",\n        \"The poor man is not he who is without a cent, but he who is without a dream.\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"Life is 10% what happens to you and 90% how you react to it.\",\n        \"The amount of happiness that you have depends on the amount of freedom you have in your heart.\",\n        \"You have to believe in yourself.\",\n        \"Anybody can make history. Only a great man can write it.\",\n        \"I think somehow we learn who we really are and then live with that decision.\",\n        \"It is with words as with sunbeams. The more they are condensed, the deeper they burn.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"When you realize how perfect everything is you will tilt your head back and laugh at the sky.\",\n        \"Without courage, wisdom bears no fruit.\",\n        \"Things that were hard to bear are sweet to remember.\",\n        \"Wisdom is the supreme part of happiness.\",\n        \"To be fully alive, fully human, and completely awake is to be continually thrown out of the nest.\",\n        \"People are so constituted that everybody would rather undertake what they see others do, whether they have an aptitude for it or not.\",\n        \"Gratitude makes sense of our past, brings peace for today, and creates a vision for tomorrow.\",\n        \"Nobody can do everything, but everybody can do something.\",\n        \"Most folks are about as happy as they make up their minds to be.\",\n        \"All men have a sweetness in their life. That is what helps them go on. It is towards that they turn when they feel too worn out.\",\n        \"A short saying often contains much wisdom.\",\n        \"You are the only person on earth who can use your ability.\",\n        \"He who deliberates fully before taking a step will spend his entire life on one leg.\",\n        \"When it is obvious that the goals cannot be reached, don't adjust the goals, adjust the action steps.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"There is nothing impossible to him who will try.\",\n        \"The pain passes, but the beauty remains.\",\n        \"The only way to tell the truth is to speak with kindness. Only the words of a loving man can be heard.\",\n        \"Whoso loves, believes the impossible.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it.\",\n        \"Nothing is predestined: The obstacles of your past can become the gateways that lead to new beginnings.\",\n        \"Every problem has a gift for you in its hands.\",\n        \"Life is what happens while you are making other plans.\",\n        \"I know but one freedom and that is the freedom of the mind.\",\n        \"Look forward to spring as a time when you can start to see what nature has to offer once again.\",\n        \"Happiness is not in the mere possession of money; it lies in the joy of achievement, in the thrill of creative effort.\",\n        \"A thing well said will be wit in all languages.\",\n        \"I always wanted to be somebody, but I should have been more specific.\",\n        \"The most important thing is transforming our minds, for a new way of thinking, a new outlook: we should strive to develop a new inner world.\",\n        \"Courage is going from failure to failure without losing enthusiasm.\",\n        \"Take time to deliberate, but when the time for action has arrived, stop thinking and go in.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"If you have made mistakes, there is always another chance for you. You may have a fresh start any moment you choose.\",\n        \"Not every difficult and dangerous thing is suitable for training, but only that which is conducive to success in achieving the object of our effort.\",\n        \"Change will not come if we wait for some other person or some other time. We are the ones weve been waiting for. We are the change that we seek.\",\n        \"I cannot say whether things will get better if we change; what I can say is they must change if they are to get better.\",\n        \"Some pursue happiness, others create it.\",\n        \"The truest wisdom is a resolute determination.\",\n        \"To bring anything into your life, imagine that it's already there.\",\n        \"Life is a progress, and not a station.\",\n        \"We lost because we told ourselves we lost.\",\n        \"Don't turn away from possible futures before you're certain you don't have anything to learn from them.\",\n        \"It is not so important to know everything as to appreciate what we learn.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"It all depends on how we look at things, and not how they are in themselves.\",\n        \"Our deepest wishes are whispers of our authentic selves. We must learn to respect them. We must learn to listen.\",\n        \"Lose an hour in the morning, and you will spend all day looking for it.\",\n        \"Give thanks for a little and you will find a lot.\",\n        \"If you want to study yourself look into the hearts of other people. If you want to study other people look into your own heart.\",\n        \"Many people have gone further than they thought they could because someone else thought they could.\",\n        \"One that desires to excel should endeavour in those things that are in themselves most excellent.\",\n        \"Aerodynamically the bumblebee shouldn't be able to fly, but the bumblebee doesn't know that so it goes on flying anyway.\",\n        \"The simplest things are often the truest.\",\n        \"The world has the habit of making room for the man whose actions show that he knows where he is going.\",\n        \"There is no great genius without some touch of madness.\",\n        \"You cannot change anything in your life with intention alone, which can become a watered-down, occasional hope that you'll get to tomorrow. Intention without action is useless.\",\n        \"Happiness is not in the mere possession of money; it lies in the joy of achievement, in the thrill of creative effort.\",\n        \"We aim above the mark to hit the mark.\",\n        \"It is not enough to have a good mind; the main thing is to use it well.\",\n        \"This is the final test of a gentleman: his respect for those who can be of no possible value to him.\",\n        \"There is no retirement for an artist, it's your way of living so there is no end to it.\",\n        \"Your body is precious. It is our vehicle for awakening. Treat it with care.\",\n        \"To accomplish great things, we must dream as well as act.\",\n        \"Put your future in good hands your own.\",\n        \"Excellence is to do a common thing in an uncommon way.\",\n        \"When people are like each other they tend to like each other.\",\n        \"Nothing will work unless you do.\",\n        \"We shall never know all the good that a simple smile can do.\",\n        \"Yeah we all shine on, like the moon, and the stars, and the sun.\",\n        \"By living deeply in the present moment we can understand the past better and we can prepare for a better future.\",\n        \"Let your hook always be cast; in the pool where you least expect it, there will be a fish.\",\n        \"No is easier to do. Yes is easier to say.\",\n        \"I may not know everything, but everything is not known yet anyway.\",\n        \"The power of intuitive understanding will protect you from harm until the end of your days.\",\n        \"Trouble is only opportunity in work clothes.\",\n        \"Give whatever you are doing and whoever you are with the gift of your attention.\",\n        \"The road leading to a goal does not separate you from the destination; it is essentially a part of it.\",\n        \"Learning is finding out what you already know.\",\n        \"Can you imagine what I would do if I could do all I can?\",\n        \"Ability is what you're capable of doing. Motivation determines what you do.Attitude determines how well you do it.\",\n        \"You only lose what you cling to.\",\n        \"God always takes the simplest way.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"Know that although in the eternal scheme of things you are small, you are also unique and irreplaceable, as are all your fellow humans everywhere in the world.\",\n        \"See the positive side, the potential, and make an effort.\",\n        \"Thought is the blossom; language the bud; action the fruit behind it.\",\n        \"Nothing ever goes away until it has taught us what we need to know.\",\n        \"Don't ruin the present with the ruined past.\",\n        \"For everything that lives is holy, life delights in life.\",\n        \"Good people are good because they've come to wisdom through failure. We get very little wisdom from success, you know.\",\n        \"A short saying often contains much wisdom.\",\n        \"Do good by stealth, and blush to find it fame.\",\n        \"Kindness is the golden chain by which society is bound together.\",\n        \"The right way is not always the popular and easy way. Standing for right when it is unpopular is a true test of moral character.\",\n        \"Wherever a man turns he can find someone who needs him.\",\n        \"Nothing ever goes away until it has taught us what we need to know.\",\n        \"If there is no struggle, there is no progress.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"Genius is one percent inspiration and ninety-nine percent perspiration.\",\n        \"The most important point is to accept yourself and stand on your two feet.\",\n        \"Myths which are believed in tend to become true.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"We know from science that nothing in the universe exists as an isolated or independent entity.\",\n        \"To be able to give away riches is mandatory if you wish to possess them. This is the only way that you will be truly rich.\",\n        \"Happiness does not come from having much, but from being attached to little.\",\n        \"Try not to become a man of success, but rather try to become a man of value.\",\n        \"If a man does his best, what else is there?\",\n        \"The reasonable man adapts himself to the world; the unreasonable man persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.\",\n        \"At the center of your being you have the answer; you know who you are and you know what you want.\",\n        \"Imagination is the highest kite one can fly.\",\n        \"If someone in your life talked to you the way you talk to yourself, you would have left them long ago.\",\n        \"Don't turn away from possible futures before you're certain you don't have anything to learn from them.\",\n        \"There is no great genius without some touch of madness.\",\n        \"When people are like each other they tend to like each other.\",\n        \"Men of perverse opinion do not know the excellence of what is in their hands, till some one dash it from them.\",\n        \"Every problem has a gift for you in its hands.\",\n        \"A failure is a man who has blundered but is not capable of cashing in on the experience.\",\n        \"Nature is a mutable cloud which is always and never the same.\",\n        \"Go for it now. The future is promised to no one.\",\n        \"From small beginnings come great things.\",\n        \"Ask yourself the secret of your success. Listen to your answer, and practice it.\",\n        \"One needs something to believe in, something for which one can have whole-hearted enthusiasm. One needs to feel that ones life has meaning, that one is needed in this world.\",\n        \"Worry often gives a small thing a big shadow.\",\n        \"Things do not change; we change.\",\n        \"I am always doing that which I cannot do, in order that I may learn how to do it.\",\n        \"Nothing is softer or more flexible than water, yet nothing can resist it.\",\n        \"What do we live for, if it is not to make life less difficult for each other?\",\n        \"Until you value yourself, you won't value your time. Until you value your time, you won't do anything with it.\",\n        \"Remembering a wrong is like carrying a burden on the mind.\",\n        \"When you realize there is nothing lacking, the whole world belongs to you.\",\n        \"No matter how hard the past, you can always begin again.\",\n        \"The most complicated achievements of thought are possible without the assistance of consciousness.\",\n        \"The future belongs to those who believe in the beauty of their dreams.\",\n        \"Man cannot discover new oceans unless he has the courage to lose sight of the shore.\",\n        \"Without faith, nothing is possible. With it, nothing is impossible.\",\n        \"There surely is in human nature an inherent propensity to extract all the good out of all the evil.\",\n        \"Reality is merely an illusion, albeit a very persistent one.\",\n        \"Learning without reflection is a waste, reflection without learning is dangerous.\",\n        \"Silence is the true friend that never betrays.\",\n        \"A life spent making mistakes is not only more honourable but more useful than a life spent in doing nothing.\",\n        \"Let your hook always be cast; in the pool where you least expect it, there will be a fish.\",\n        \"Experience keeps a dear school, but fools will learn in no other.\",\n        \"Bodily exercise, when compulsory, does no harm to the body; but knowledge which is acquired under compulsion obtains no hold on the mind.\",\n        \"Through pride we are ever deceiving ourselves. But deep down below the surface of the average conscience a still, small voice says to us, Something is out of tune.\",\n        \"Trusting our intuition often saves us from disaster.\",\n        \"Meaning is not what you start with but what you end up with.\",\n        \"Genuine love should first be directed at oneself if we do not love ourselves, how can we love others?\",\n        \"Many of life's failures are people who did not realize how close they were to success when they gave up.\",\n        \"We shall never know all the good that a simple smile can do.\",\n        \"Thousands of candles can be lit from a single, and the life of the candle will not be shortened. Happiness never decreases by being shared.\",\n        \"Nobody made a greater mistake than he who did nothing because he could do only a little.\",\n        \"A wise man will make more opportunities than he finds.\",\n        \"Beauty is not in the face; beauty is a light in the heart.\",\n        \"No alibi will save you from accepting the responsibility.\",\n        \"Do not expect the world to look bright, if you habitually wear gray-brown glasses.\",\n        \"Obstacles are those things you see when you take your eyes off the goal.\",\n        \"To see things in the seed, that is genius.\",\n        \"The industrial landscape is already littered with remains of once successful companies that could not adapt their strategic vision to altered conditions of competition.\",\n        \"You can't stop the waves, but you can learn to surf.\",\n        \"There is nothing impossible to him who will try.\",\n        \"Silence is a source of great strength.\",\n        \"There is a way that nature speaks, that land speaks. Most of the time we are simply not patient enough, quiet enough, to pay attention to the story.\",\n        \"All action results from thought, so it is thoughts that matter.\",\n        \"We are what we repeatedly do. Excellence, then, is not an act but a habit.\",\n        \"My advice to you is not to inquire why or whither, but just enjoy your ice cream while its on your plate that's my philosophy.\",\n        \"Silence is a true friend who never betrays.\",\n        \"The self is not something ready-made, but something in continuous formation through choice of action.\",\n        \"Forget about all the reasons why something may not work. You only need to find one good reason why it will.\",\n        \"Life is what happens while you are making other plans.\",\n        \"Your vision will become clear only when you look into your heart. Who looks outside, dreams. Who looks inside, awakens.\",\n        \"Experience is not what happens to a man. It is what a man does with what happens to him.\",\n        \"Waste no more time arguing about what a good man should be. Be one.\",\n        \"What is a weed? A plant whose virtues have not yet been discovered.\",\n        \"I will love the light for it shows me the way, yet I will endure the darkness because it shows me the stars.\",\n        \"Most of the shadows of life are caused by standing in our own sunshine.\",\n        \"It is not the possession of truth, but the success which attends the seeking after it, that enriches the seeker and brings happiness to him.\",\n        \"If we look at the world with a love of life, the world will reveal its beauty to us.\",\n        \"There are basically two types of people. People who accomplish things, and people who claim to have accomplished things. The first group is less crowded.\",\n        \"Life is a progress, and not a station.\",\n        \"Lots of people want to ride with you in the limo, but what you want is someone who will take the bus with you when the limo breaks down.\",\n        \"The first requisite for success is the ability to apply your physical and mental energies to one problem incessantly without growing weary.\",\n        \"Any of us can achieve virtue, if by virtue we merely mean the avoidance of the vices that do not attract us.\",\n        \"Peace comes from within. Do not seek it without.\",\n        \"Wherever a man may happen to turn, whatever a man may undertake, he will always end up by returning to the path which nature has marked out for him.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"The day you decide to do it is your lucky day.\",\n        \"Whatever happens, take responsibility.\",\n        \"I can't believe that God put us on this earth to be ordinary.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift. That is why we call it the present.\",\n        \"Every human being is the author of his own health or disease.\",\n        \"Silence is a source of great strength.\",\n        \"When your desires are strong enough you will appear to possess superhuman powers to achieve.\",\n        \"He who knows himself is enlightened.\",\n        \"Pick battles big enough to matter, small enough to win.\",\n        \"If you are patient in one moment of anger, you will escape one hundred days of sorrow.\",\n        \"The past has no power to stop you from being present now. Only your grievance about the past can do that.\",\n        \"With every experience, you alone are painting your own canvas, thought by thought, choice by choice.\",\n        \"When you realize how perfect everything is you will tilt your head back and laugh at the sky.\",\n        \"Miracles come in moments. Be ready and willing.\",\n        \"Things turn out best for those who make the best of the way things turn out.\",\n        \"By nature man hates change; seldom will he quit his old home till it has actually fallen around his ears.\",\n        \"Everything can be taken from a man but ... the last of the human freedoms to choose ones attitude in any given set of circumstances, to choose ones own way.\",\n        \"Don't let what you can't do stop you from doing what you can do.\",\n        \"A man of ability and the desire to accomplish something can do anything.\",\n        \"The greatest discovery of our generation is that human beings can alter their lives by altering their attitudes of mind. As you think, so shall you be.\",\n        \"Love at first sight is easy to understand; its when two people have been looking at each other for a lifetime that it becomes a miracle.\",\n        \"To give ones self earnestly to the duties due to men, and, while respecting spiritual beings, to keep aloof from them, may be called wisdom.\",\n        \"Until you value yourself, you won't value your time. Until you value your time, you won't do anything with it.\",\n        \"What you do not want done to yourself, do not do to others.\",\n        \"If you would take, you must first give, this is the beginning of intelligence.\",\n        \"He who obtains has little. He who scatters has much.\",\n        \"We can do no great things, only small things with great love.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"Notice that the stiffest tree is most easily cracked, while the bamboo or willow survives by bending with the wind.\",\n        \"Every man is a volume if you know how to read him.\",\n        \"Most people are about as happy as they make up their minds to be\",\n        \"Your sacred space is where you can find yourself again and again.\",\n        \"Responsibility is not inherited, it is a choice that everyone needs to make at some point in their life.\",\n        \"A good decision is based on knowledge and not on numbers.\",\n        \"All is flux; nothing stays still.\",\n        \"A thing well said will be wit in all languages.\",\n        \"The things that one most wants to do are the things that are probably most worth doing.\",\n        \"Yesterday I dared to struggle. Today I dare to win.\",\n        \"Fate is in your hands and no one elses\",\n        \"Failure will never overtake me if my determination to succeed is strong enough.\",\n        \"I think you can have moderate success by copying something else, but if you really want to knock it out of the park, you have to do something different and take chances.\",\n        \"Never deny a diagnosis, but do deny the negative verdict that may go with it.\",\n        \"The smallest flower is a thought, a life answering to some feature of the Great Whole, of whom they have a persistent intuition.\",\n        \"Accept challenges, so that you may feel the exhilaration of victory.\",\n        \"We must become the change we want to see.\",\n        \"It is easier to live through someone else than to become complete yourself.\",\n        \"I cannot always control what goes on outside. But I can always control what goes on inside.\",\n        \"You cannot step twice into the same river, for other waters are continually flowing in.\",\n        \"Thousands of candles can be lit from a single, and the life of the candle will not be shortened. Happiness never decreases by being shared.\",\n        \"Let yourself be silently drawn by the stronger pull of what you really love.\",\n        \"Excellence is not a skill. It is an attitude.\",\n        \"Inspiration exists, but it has to find us working.\",\n        \"These days people seek knowledge, not wisdom. Knowledge is of the past, wisdom is of the future.\",\n        \"Most powerful is he who has himself in his own power.\",\n        \"The moment one gives close attention to anything, even a blade of grass, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.\",\n        \"Absence makes the heart grow fonder.\",\n        \"Experience keeps a dear school, but fools will learn in no other.\",\n        \"Intuition will tell the thinking mind where to look next.\",\n        \"The most complicated achievements of thought are possible without the assistance of consciousness.\",\n        \"The most beautiful things in the world cannot be seen or even touched. They must be felt with the heart.\",\n        \"All seasons are beautiful for the person who carries happiness within.\",\n        \"One of the advantages of being disorderly is that one is constantly making exciting discoveries.\",\n        \"It is easier to live through someone else than to become complete yourself.\",\n        \"If you lose today, win tomorrow. In this never-ending spirit of challenge is the heart of a victor.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"Excellence is not a skill. It is an attitude.\",\n        \"Do not expect the world to look bright, if you habitually wear gray-brown glasses.\",\n        \"Excellence is to do a common thing in an uncommon way.\",\n        \"Good thoughts are no better than good dreams, unless they be executed.\",\n        \"Most folks are as happy as they make up their minds to be.\",\n        \"Go for it now. The future is promised to no one.\",\n        \"The greatest remedy for anger is delay.\",\n        \"In order to live free and happily you must sacrifice boredom. It is not always an easy sacrifice.\",\n        \"Make the most of yourself for that is all there is of you.\",\n        \"Let go of your attachment to being right, and suddenly your mind is more open. You're able to benefit from the unique viewpoints of others, without being crippled by your own judgement.\",\n        \"Whenever you have eliminated the impossible, whatever remains, however improbable, must be the truth.\",\n        \"People are not lazy. They simply have impotent goals that is, goals that do not inspire them.\",\n        \"If you find yourself in a hole, the first thing to do is stop digging.\",\n        \"Wishes can be your best avenue of getting what you want when you turn wishes into action. Action moves your wish to the forefront from thought to reality.\",\n        \"I have just three things to teach: simplicity, patience, compassion. These three are your greatest treasures.\",\n        \"Until you make peace with who you are, you will never be content with what you have.\",\n        \"We must not allow ourselves to become like the system we oppose.\",\n        \"To choose what is difficult all ones days, as if it were easy, that is faith.\",\n        \"God has given you one face, and you make yourself another.\",\n        \"Don't judge each day by the harvest you reap but by the seeds you plant.\",\n        \"Staying in one place is the best path to be taken over and surpassed by many.\",\n        \"The steeper the mountain the harder the climb the better the view from the finishing line\",\n        \"Without this playing with fantasy no creative work has ever yet come to birth. The debt we owe to the play of the imagination is incalculable.\",\n        \"Wherever a man turns he can find someone who needs him.\",\n        \"Growth itself contains the germ of happiness.\",\n        \"When there is no enemy within, the enemies outside cannot hurt you.\",\n        \"Don't smother each other. No one can grow in the shade.\",\n        \"Don't wait. The time will never be just right.\",\n        \"Anybody can make history. Only a great man can write it.\",\n        \"Imagination disposes of everything; it creates beauty, justice, and happiness, which are everything in this world.\",\n        \"Our intention creates our reality.\",\n        \"The greatest part of our happiness depends on our dispositions, not our circumstances.\",\n        \"Knowledge has three degrees opinion, science, illumination. The means or instrument of the first is sense; of the second, dialectic; of the third, intuition.\",\n        \"Wisdom begins in wonder.\",\n        \"I'm not afraid of storms, for I'm learning how to sail my ship.\",\n        \"Everything in life is luck.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept the responsibility for changing them.\",\n        \"Kindness is the greatest wisdom.\",\n        \"Imagination is more important than knowledge. For while knowledge defines all we currently know and understand, imagination points to all we might yet discover and create.\",\n        \"Moments of complete apathy are the best for new creations.\",\n        \"The heart has its reasons which reason knows not of.\",\n        \"Tension is who you think you should be. Relaxation is who you are.\",\n        \"In the long run we get no more than we have been willing to risk giving.\",\n        \"Take it easy, but take it.\",\n        \"If there is no struggle, there is no progress.\",\n        \"When you are offended at any man's fault, turn to yourself and study your own failings. Then you will forget your anger.\",\n        \"If you seek truth you will not seek victory by dishonourable means, and if you find truth you will become invincible.\",\n        \"The world has the habit of making room for the man whose actions show that he knows where he is going.\",\n        \"For every failure, there's an alternative course of action. You just have to find it. When you come to a roadblock, take a detour.\",\n        \"Yeah we all shine on, like the moon, and the stars, and the sun.\",\n        \"The journey of a thousand miles begins with one step.\",\n        \"Formula for success: under promise and over deliver.\",\n        \"I find hope in the darkest of days, and focus in the brightest. I do not judge the universe.\",\n        \"Keep silence for the most part, and speak only when you must, and then briefly.\",\n        \"Smile, breathe and go slowly.\",\n        \"Life is what happens to you while you're busy making other plans.\",\n        \"Problems are only opportunities with thorns on them.\",\n        \"Don't wait. The time will never be just right.\",\n        \"Every man takes the limits of his own field of vision for the limits of the world.\",\n        \"There are basically two types of people. People who accomplish things, and people who claim to have accomplished things. The first group is less crowded.\",\n        \"I am always doing that which I cannot do, in order that I may learn how to do it.\",\n        \"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.\",\n        \"When one tugs at a single thing in nature, he finds it attached to the rest of the world.\",\n        \"You must do the things you think you cannot do.\",\n        \"Fortune favours the brave.\",\n        \"A leader or a man of action in a crisis almost always acts subconsciously and then thinks of the reasons for his action.\",\n        \"He who lives in harmony with himself lives in harmony with the world.\",\n        \"It is not the mistake that has the most power, instead, it is learning from the mistake to advance your own attributes.\",\n        \"Take it easy, but take it.\",\n        \"A rolling stone gathers no moss.\",\n        \"By letting it go it all gets done. The world is won by those who let it go. But when you try and try. The world is beyond the winning.\",\n        \"To dream of the person you would like to be is to waste the person you are.\",\n        \"I know but one freedom and that is the freedom of the mind.\",\n        \"Let the beauty of what you love be what you do.\",\n        \"Let us always meet each other with smile, for the smile is the beginning of love.\",\n        \"It is one of the blessings of old friends that you can afford to be stupid with them.\",\n        \"Impossibilities are merely things which we have not yet learned.\",\n        \"The greatest discovery of our generation is that human beings can alter their lives by altering their attitudes of mind. As you think, so shall you be.\",\n        \"We all have problems. The way we solve them is what makes us different.\",\n        \"When one door of happiness closes, another opens; but often we look so long at the closed door that we do not see the one which has been opened for us.\",\n        \"Divide each difficulty into as many parts as is feasible and necessary to resolve it.\",\n        \"The undertaking of a new action brings new strength.\",\n        \"Very little is needed to make a happy life; it is all within yourself, in your way of thinking.\",\n        \"Problems are only opportunities with thorns on them.\",\n        \"More often than not, anger is actually an indication of weakness rather than of strength.\",\n        \"Everything that happens happens as it should, and if you observe carefully, you will find this to be so.\",\n        \"Never mistake activity for achievement.\",\n        \"Where all think alike, no one thinks very much.\",\n        \"Learning without reflection is a waste, reflection without learning is dangerous.\",\n        \"Growth itself contains the germ of happiness.\",\n        \"A lot of people give up just before theyre about to make it. You know you never know when that next obstacle is going to be the last one.\",\n        \"Intuition will tell the thinking mind where to look next.\",\n        \"All perceiving is also thinking, all reasoning is also intuition, all observation is also invention.\",\n        \"The shortest answer is doing.\",\n        \"When fate hands us a lemon, lets try to make lemonade.\",\n        \"Sometimes our fate resembles a fruit tree in winter. Who would think that those branches would turn green again and blossom, but we hope it, we know it.\",\n        \"Good actions give strength to ourselves and inspire good actions in others.\",\n        \"Intuition will tell the thinking mind where to look next.\",\n        \"Be glad of life because it gives you the chance to love, to work, to play, and to look up at the stars.\",\n        \"Rainbows apologize for angry skies.\",\n        \"We do what we do because we believe.\",\n        \"I believe that every person is born with talent.\",\n        \"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\",\n        \"Happiness depends upon ourselves.\",\n        \"A weed is no more than a flower in disguise.\",\n        \"If you seek truth you will not seek victory by dishonourable means, and if you find truth you will become invincible.\",\n        \"Never apologize for showing feeling. When you do so, you apologize for truth.\",\n        \"Be a good listener. Your ears will never get you in trouble.\",\n        \"You got to be careful if you don't know where you're going, because you might not get there.\",\n        \"Only when we are no longer afraid do we begin to live.\",\n        \"Learning without reflection is a waste, reflection without learning is dangerous.\",\n        \"Your destiny isn't just fate; it is how you use your own developed abilities to get what you want.\",\n        \"Face your deficiencies and acknowledge them; but do not let them master you. Let them teach you patience, sweetness, insight.\",\n        \"A goal without a plan is just a wish.\",\n        \"To bring anything into your life, imagine that it's already there.\",\n        \"You can't stop the waves, but you can learn to surf.\",\n        \"We aim above the mark to hit the mark.\",\n        \"Complaining doesn't change a thing only taking action does.\",\n        \"I will love the light for it shows me the way, yet I will endure the darkness because it shows me the stars.\",\n        \"While we stop to think, we often miss our opportunity.\",\n        \"Some people thrive on huge, dramatic change. Some people prefer the slow and steady route. Do what's right for you.\",\n        \"Excellence is to do a common thing in an uncommon way.\",\n        \"I believe that we are solely responsible for our choices, and we have to accept the consequences of every deed, word, and thought throughout our lifetime.\",\n        \"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut.\",\n        \"The secret of success is constancy to purpose.\",\n        \"Very little is needed to make a happy life; it is all within yourself, in your way of thinking.\",\n        \"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it.\",\n        \"Today is the tomorrow you worried about yesterday.\",\n        \"Great are they who see that spiritual is stronger than any material force, that thoughts rule the world.\",\n        \"The heart has its reasons which reason knows not of.\",\n        \"Impossibilities are merely things which we have not yet learned.\",\n        \"Promises are the uniquely human way of ordering the future, making it predictable and reliable to the extent that this is humanly possible.\",\n        \"Strong beliefs win strong men, and then make them stronger.\",\n        \"Knowing your own darkness is the best method for dealing with the darknesses of other people.\",\n        \"Your vision will become clear only when you look into your heart. Who looks outside, dreams. Who looks inside, awakens.\",\n        \"Love is the flower you've got to let grow.\",\n        \"A beautiful thing is never perfect.\",\n        \"Never promise more than you can perform.\",\n        \"Those who will play with cats must expect to be scratched.\",\n        \"If you take each challenge one step at a time, with faith in every footstep, your strength and understanding will increase.\",\n        \"Our deepest wishes are whispers of our authentic selves. We must learn to respect them. We must learn to listen.\",\n        \"Joy is the best makeup.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"When there is no enemy within, the enemies outside cannot hurt you.\",\n        \"Every man dies. Not every man really lives.\",\n        \"Build a better mousetrap and the world will beat a path to your door.\",\n        \"All perceiving is also thinking, all reasoning is also intuition, all observation is also invention.\",\n        \"Never deny a diagnosis, but do deny the negative verdict that may go with it.\",\n        \"A life spent making mistakes is not only more honourable, but more useful than a life spent doing nothing.\",\n        \"Remember that sometimes not getting what you want is a wonderful stroke of luck.\",\n        \"If you are patient in one moment of anger, you will escape one hundred days of sorrow.\",\n        \"You always succeed in producing a result.\",\n        \"I believe that we are fundamentally the same and have the same basic potential.\",\n        \"Intuition is the very force or activity of the soul in its experience through whatever has been the experience of the soul itself.\",\n        \"Without courage, wisdom bears no fruit.\",\n        \"It is not uncommon for people to spend their whole life waiting to start living.\",\n        \"There is only one happiness in life, to love and be loved.\",\n        \"To be what we are, and to become what we are capable of becoming, is the only end of life.\",\n        \"Sincerity is the way of Heaven. The attainment of sincerity is the way of men.\",\n        \"Faith in oneself is the best and safest course.\",\n        \"Intuition will tell the thinking mind where to look next.\",\n        \"Your vision will become clear only when you can look into your own heart. Who looks outside, dreams; who looks inside, awakes.\",\n        \"When your desires are strong enough you will appear to possess superhuman powers to achieve.\",\n        \"Everyone thinks of changing the world, but no one thinks of changing himself.\",\n        \"Nothing happens unless first we dream.\",\n        \"Don't look back. Something might be gaining on you.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"No one has a finer command of language than the person who keeps his mouth shut.\",\n        \"You must train your intuition you must trust the small voice inside you which tells you exactly what to say, what to decide.\",\n        \"Ignorant men don't know what good they hold in their hands until they've flung it away.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"Compassion and happiness are not a sign of weakness but a sign of strength.\",\n        \"Do not overrate what you have received, nor envy others. He who envies others does not obtain peace of mind.\",\n        \"This world, after all our science and sciences, is still a miracle; wonderful, inscrutable, magical and more, to whosoever will think of it.\",\n        \"The future is completely open, and we are writing it moment to moment.\",\n        \"If you accept the expectations of others, especially negative ones, then you never will change the outcome.\",\n        \"If the stars should appear but one night every thousand years how man would marvel and adore.\",\n        \"Error is discipline through which we advance.\",\n        \"Joy is what happens to us when we allow ourselves to recognize how good things really are.\",\n        \"Character is like a tree and reputation like a shadow. The shadow is what we think of it; the tree is the real thing.\",\n        \"Bad things are not the worst things that can happen to us. Nothing is the worst thing that can happen to us!\",\n        \"The most complicated achievements of thought are possible without the assistance of consciousness.\",\n        \"Never idealize others. They will never live up to your expectations.\",\n        \"Study the past, if you would divine the future.\",\n        \"Love is the flower you've got to let grow.\",\n        \"Every gift from a friend is a wish for your happiness.\",\n        \"If you get up one more time than you fall, you will make it through.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity\",\n        \"You must do the things you think you cannot do.\",\n        \"Kindness is the language which the deaf can hear and the blind can see.\",\n        \"An ant on the move does more than a dozing ox\",\n        \"There surely is in human nature an inherent propensity to extract all the good out of all the evil.\",\n        \"The first requisite for success is the ability to apply your physical and mental energies to one problem incessantly without growing weary.\",\n        \"We must overcome the notion that we must be regular. It robs you of the chance to be extraordinary and leads you to the mediocre.\",\n        \"Every man dies. Not every man really lives.\",\n        \"In all chaos there is a cosmos, in all disorder a secret order.\",\n        \"Not every difficult and dangerous thing is suitable for training, but only that which is conducive to success in achieving the object of our effort.\",\n        \"Criticism is something you can easily avoid by saying nothing, doing nothing, and being nothing.\",\n        \"Fear not for the future, weep not for the past.\",\n        \"Why worry about things you cannot control when you can keep yourself busy controlling the things that depend on you?\",\n        \"The mark of your ignorance is the depth of your belief in injustice and tragedy. What the caterpillar calls the end of the world, the Master calls the butterfly.\",\n        \"The path to success is to take massive, determined action.\",\n        \"Keep true to the dreams of thy youth.\",\n        \"You need chaos in your soul to give birth to a dancing star.\",\n        \"Yesterdays home runs don't win today's games.\",\n        \"The pessimist sees difficulty in every opportunity. The optimist sees the opportunity in every difficulty.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"My reputation grows with every failure.\",\n        \"Sooner or later, those who win are those who think they can.\",\n        \"The most precious gift we can offer anyone is our attention. When mindfulness embraces those we love, they will bloom like flowers.\",\n        \"In three words I can sum up everything Ive learned about life: it goes on.\",\n        \"It is only with the heart that one can see rightly, what is essential is invisible to the eye.\",\n        \"The way is not in the sky. The way is in the heart.\",\n        \"Our deepest wishes are whispers of our authentic selves. We must learn to respect them. We must learn to listen.\",\n        \"Sometimes it is better to lose and do the right thing than to win and do the wrong thing.\",\n        \"Patience is a virtue but you will never ever accomplish anything if you don't exercise action over patience.\",\n        \"Only through our connectedness to others can we really know and enhance the self. And only through working on the self can we begin to enhance our connectedness to others.\",\n        \"We must become the change we want to see.\",\n        \"What we achieve inwardly will change outer reality.\",\n        \"My advice to you is not to inquire why or whither, but just enjoy your ice cream while its on your plate that's my philosophy.\",\n        \"It is not fair to ask of others what you are unwilling to do yourself.\",\n        \"Creativity comes from trust. Trust your instincts. And never hope more than you work.\",\n        \"You have enemies? Good. That means you've stood up for something, sometime in your life.\",\n        \"The difference between what we do and what we are capable of doing would suffice to solve most of the worlds problems.\",\n        \"No pessimist ever discovered the secrets of the stars, or sailed to an uncharted land, or opened a new heaven to the human spirit.\",\n        \"Freedom is what you do with what's been done to you.\",\n        \"If you're in a bad situation, don't worry it'll change. If you're in a good situation, don't worry it'll change.\",\n        \"The truth you believe and cling to makes you unavailable to hear anything new.\",\n        \"I am not bothered by the fact that I am unknown. I am bothered when I do not know others.\",\n        \"Keep silence for the most part, and speak only when you must, and then briefly.\",\n        \"Make the most of yourself for that is all there is of you.\",\n        \"Real success is finding your lifework in the work that you love.\",\n        \"If you love someone, set them free. If they come back they're yours; if they don't they never were.\",\n        \"Only when we are no longer afraid do we begin to live.\",\n        \"Whoever is happy will make others happy, too.\",\n        \"Love does not consist of gazing at each other, but in looking together in the same direction.\",\n        \"Courage is what it takes to stand up and speak; courage is also what it takes to sit down and listen.\",\n        \"Whatever we expect with confidence becomes our own self-fulfilling prophecy.\",\n        \"The person who lives life fully, glowing with life's energy, is the person who lives a successful life.\",\n        \"Do, or do not. There is no try.\",\n        \"Silence is a true friend who never betrays.\",\n        \"I will love the light for it shows me the way, yet I will endure the darkness because it shows me the stars.\",\n        \"I believe in one thing only, the power of human will.\",\n        \"Everything that irritates us about others can lead us to an understanding about ourselves.\",\n        \"In all chaos there is a cosmos, in all disorder a secret order.\",\n        \"You got to be careful if you don't know where you're going, because you might not get there.\",\n        \"Society develops wit, but its contemplation alone forms genius.\",\n        \"The only difference between your abilities and others is the ability to put yourself in their shoes and actually try.\",\n        \"Trust only movement. Life happens at the level of events, not of words. Trust movement.\",\n        \"Gratitude is riches. Complaint is poverty.\",\n        \"It is only when the mind and character slumber that the dress can be seen.\",\n        \"Remembering a wrong is like carrying a burden on the mind.\",\n        \"Pick battles big enough to matter, small enough to win.\",\n        \"A life spent making mistakes is not only more honourable but more useful than a life spent in doing nothing.\",\n        \"When in doubt, tell the truth.\",\n        \"Silences make the real conversations between friends. Not the saying but the never needing to say is what counts.\",\n        \"Learning is a treasure that will follow its owner everywhere\",\n        \"Kind words do not cost much. Yet they accomplish much.\",\n        \"In all things of nature there is something of the marvellous.\",\n        \"The greatest obstacle to connecting with our joy is resentment.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity\",\n        \"Error is discipline through which we advance.\",\n        \"Think like a man of action; act like a man of thought.\",\n        \"You can do it if you believe you can!\",\n        \"Life is what happens while you are making other plans.\",\n        \"Our lives are a sum total of the choices we have made.\",\n        \"How we spend our days is, of course, how we spend our lives.\",\n        \"If you can dream it, you can do it.\",\n        \"Happiness is not something ready made. It comes from your own actions.\",\n        \"Wrinkles should merely indicate where smiles have been.\",\n        \"Know that although in the eternal scheme of things you are small, you are also unique and irreplaceable, as are all your fellow humans everywhere in the world.\",\n        \"In the depth of winter, I finally learned that there was within me an invincible summer.\",\n        \"Anybody can make history. Only a great man can write it.\",\n        \"Each man has his own vocation; his talent is his call. There is one direction in which all space is open to him.\",\n        \"Nothing will work unless you do.\",\n        \"The only thing to do with good advice is to pass it on. It is never of any use to oneself.\",\n        \"You can't shake hands with a clenched fist.\",\n        \"Notice that the stiffest tree is most easily cracked, while the bamboo or willow survives by bending with the wind.\",\n        \"If you come to a fork in the road, take it.\",\n        \"Any of us can achieve virtue, if by virtue we merely mean the avoidance of the vices that do not attract us.\",\n        \"Through meditation and by giving full attention to one thing at a time, we can learn to direct attention where we choose.\",\n        \"If we learn to open our hearts, anyone, including the people who drive us crazy, can be our teacher.\",\n        \"Never apologize for showing feeling. When you do so, you apologize for truth.\",\n        \"If I could reach up and hold a star for every time you've made me smile, the entire evening sky would be in the palm of my hand.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"Instead of saying that man is the creature of circumstance, it would be nearer the mark to say that man is the architect of circumstance.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"Genius is one percent inspiration and ninety-nine percent perspiration.\",\n        \"In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time.\",\n        \"Do not go where the path may lead, go instead where there is no path and leave a trail.\",\n        \"When you meet someone better than yourself, turn your thoughts to becoming his equal. When you meet someone not as good as you are, look within and examine your own self.\",\n        \"To forgive is to set a prisoner free and realize that prisoner was you.\",\n        \"We all live with the objective of being happy; our lives are all different and yet the same.\",\n        \"Listen to what you know instead of what you fear.\",\n        \"Success in business requires training and discipline and hard work. But if you're not frightened by these things, the opportunities are just as great today as they ever were.\",\n        \"If you have knowledge, let others light their candles in it.\",\n        \"Life isn't about finding yourself. Life is about creating yourself.\",\n        \"Talk doesn't cook rice.\",\n        \"Fortune befriends the bold.\",\n        \"In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time.\",\n        \"When you doubt your power, you give power to your doubt.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"Weve got to have a dream if we are going to make a dream come true.\",\n        \"Sooner or later, those who win are those who think they can.\",\n        \"You will never be happy if you continue to search for what happiness consists of. You will never live if you are looking for the meaning of life.\",\n        \"Many people have gone further than they thought they could because someone else thought they could.\",\n        \"If you want a thing done well, do it yourself.\",\n        \"The journey of a thousand miles begins with one step.\",\n        \"Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment.\",\n        \"We all live with the objective of being happy; our lives are all different and yet the same.\",\n        \"People seldom notice old clothes if you wear a big smile.\",\n        \"You can adopt the attitude there is nothing you can do, or you can see the challenge as your call to action.\",\n        \"The world is but a canvas to the imagination.\",\n        \"Kindness is more important than wisdom, and the recognition of this is the beginning of wisdom.\",\n        \"Truth is powerful and it prevails.\",\n        \"Be as you wish to seem.\",\n        \"Opportunity is missed by most because it is dressed in overalls and looks like work.\",\n        \"Of course there is no formula for success except perhaps an unconditional acceptance of life and what it brings.\",\n        \"Peace of mind is not the absence of conflict from life, but the ability to cope with it.\",\n        \"He who controls others may be powerful, but he who has mastered himself is mightier still.\",\n        \"In all chaos there is a cosmos, in all disorder a secret order.\",\n        \"Although there may be tragedy in your life, there's always a possibility to triumph. It doesn't matter who you are, where you come from. The ability to triumph begins with you. Always.\",\n        \"The thing always happens that you really believe in; and the belief in a thing makes it happen.\",\n        \"The winds and waves are always on the side of the ablest navigators.\",\n        \"I believe that we are fundamentally the same and have the same basic potential.\",\n        \"All our talents increase in the using, and the every faculty, both good and bad, strengthen by exercise.\",\n        \"Transformation doesn't take place with a vacuum; instead, it occurs when we are indirectly and directly connected to all those around us.\",\n        \"Short words are best and the old words when short are best of all.\",\n        \"You are never given a wish without also being given the power to make it come true. You may have to work for it, however.\",\n        \"If we could see the miracle of a single flower clearly, our whole life would change.\",\n        \"It isn't where you come from, it's where you're going that counts.\",\n        \"The beginning is always today.\",\n        \"Meaning is not what you start with but what you end up with.\",\n        \"No act of kindness, no matter how small, is ever wasted.\",\n        \"Your big opportunity may be right where you are now.\",\n        \"We are all faced with a series of great opportunities brilliantly disguised as impossible situations.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift. That is why we call it the present.\",\n        \"Some people think it's holding that makes one strong sometimes it's letting go.\",\n        \"Argue for your limitations, and sure enough they're yours.\",\n        \"If you have no respect for your own values how can you be worthy of respect from others.\",\n        \"Nobody can do everything, but everybody can do something.\",\n        \"The universe is made of stories, not atoms.\",\n        \"Many people think of prosperity that concerns money only to forget that true prosperity is of the mind.\",\n        \"The place to improve the world is first in one's own heart and head and hands.\",\n        \"There is only one success to be able to spend your life in your own way.\",\n        \"Goals are the fuel in the furnace of achievement.\",\n        \"Keep your eyes on the stars and your feet on the ground.\",\n        \"Fate is in your hands and no one elses\",\n        \"An ounce of emotion is equal to a ton of facts.\",\n        \"Blessed is the person who is too busy to worry in the daytime, and too sleepy to worry at night.\",\n        \"God always takes the simplest way.\",\n        \"People are so constituted that everybody would rather undertake what they see others do, whether they have an aptitude for it or not.\",\n        \"You are always free to change your mind and choose a different future, or a different past.\",\n        \"Better to have loved and lost, than to have never loved at all.\",\n        \"No man is free who is not master of himself.\",\n        \"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.\",\n        \"Setting an example is not the main means of influencing another, it is the only means.\",\n        \"We can only be said to be alive in those moments when our hearts are conscious of our treasures.\",\n        \"Be slow of tongue and quick of eye.\",\n        \"How wonderful that we have met with a paradox. Now we have some hope of making progress.\",\n        \"One fails forward toward success.\",\n        \"Aim for success, not perfection. Never give up your right to be wrong, because then you will lose the ability to learn new things and move forward with your life.\",\n        \"Let us resolve to be masters, not the victims, of our history, controlling our own destiny without giving way to blind suspicions and emotions.\",\n        \"Well done is better than well said.\",\n        \"I have no special talent. I am only passionately curious.\",\n        \"To live a pure unselfish life, one must count nothing as ones own in the midst of abundance.\",\n        \"Happiness is not in the mere possession of money; it lies in the joy of achievement, in the thrill of creative effort.\",\n        \"Happiness is the reward we get for living to the highest right we know.\",\n        \"If we are not fully ourselves, truly in the present moment, we miss everything.\",\n        \"When the solution is simple, God is answering.\",\n        \"Kind words can be short and easy to speak but their echoes are truly endless.\",\n        \"Fortune befriends the bold.\",\n        \"A good decision is based on knowledge and not on numbers.\",\n        \"It is the mark of an educated mind to be able to entertain a thought without accepting it.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"Be like the flower, turn your face to the sun.\",\n        \"Our distrust is very expensive.\",\n        \"There are only two mistakes one can make along the road to truth; not going all the way, and not starting.\",\n        \"Well begun is half done.\",\n        \"You cannot travel the path until you have become the path itself.\",\n        \"The minute you settle for less than you deserve, you get even less than you settled for.\",\n        \"Be the change that you want to see in the world.\",\n        \"Action will remove the doubts that theory cannot solve.\",\n        \"Weve got to have a dream if we are going to make a dream come true.\",\n        \"Be what you are. This is the first step toward becoming better than you are.\",\n        \"Joy is the best makeup.\",\n        \"The smallest flower is a thought, a life answering to some feature of the Great Whole, of whom they have a persistent intuition.\",\n        \"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut.\",\n        \"Before you put on a frown, make absolutely sure there are no smiles available.\",\n        \"I believe that every person is born with talent.\",\n        \"Our lives are the only meaningful expression of what we believe and in Whom we believe. And the only real wealth, for any of us, lies in our faith.\",\n        \"He who has health has hope, and he who has hope has everything.\",\n        \"What you do not want done to yourself, do not do to others.\",\n        \"A man of ability and the desire to accomplish something can do anything.\",\n        \"Be sure you put your feet in the right place, then stand firm.\",\n        \"Silence is a source of great strength.\",\n        \"The heart has eyes which the brain knows nothing of.\",\n        \"All our talents increase in the using, and the every faculty, both good and bad, strengthen by exercise.\",\n        \"Beware of the half truth. You may have gotten hold of the wrong half.\",\n        \"Give whatever you are doing and whoever you are with the gift of your attention.\",\n        \"Obstacles are those things you see when you take your eyes off the goal.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"Just trust yourself, then you will know how to live.\",\n        \"Pick battles big enough to matter, small enough to win.\",\n        \"Luck is what happens when preparation meets opportunity.\",\n        \"To dream of the person you would like to be is to waste the person you are.\",\n        \"Those that know, do. Those that understand, teach.\",\n        \"Do not turn back when you are just at the goal.\",\n        \"A man of ability and the desire to accomplish something can do anything.\",\n        \"Limitations live only in our minds. But if we use our imaginations, our possibilities become limitless.\",\n        \"To be upset over what you don't have is to waste what you do have.\",\n        \"You need chaos in your soul to give birth to a dancing star.\",\n        \"You can do it if you believe you can!\",\n        \"We cannot change our memories, but we can change their meaning and the power they have over us.\",\n        \"When deeds and words are in accord, the whole world is transformed.\",\n        \"He who knows that enough is enough will always have enough.\",\n        \"If we did the things we are capable of, we would astound ourselves.\",\n        \"Being angry never solves anything.\",\n        \"Parents can only give good advice or put them on the right paths, but the final forming of a persons character lies in their own hands.\",\n        \"They can do all because they think they can.\",\n        \"Obstacles are those frightful things you see when you take your eyes off your goal.\",\n        \"However many holy words you read, however many you speak, what good will they do you if you do not act on upon them?\",\n        \"You have to believe in yourself.\",\n        \"Think as a wise man but communicate in the language of the people.\",\n        \"Without this playing with fantasy no creative work has ever yet come to birth. The debt we owe to the play of the imagination is incalculable.\",\n        \"Don't leave a stone unturned. It's always something, to know you have done the most you could.\",\n        \"Nothing could be worse than the fear that one had given up too soon, and left one unexpended effort that might have saved the world.\",\n        \"Meaning is not what you start with but what you end up with.\",\n        \"We can only be said to be alive in those moments when our hearts are conscious of our treasures.\",\n        \"Man is equally incapable of seeing the nothingness from which he emerges and the infinity in which he is engulfed.\",\n        \"We must embrace pain and burn it as fuel for our journey.\",\n        \"You must welcome change as the rule but not as your ruler.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"Your friends will know you better in the first minute you meet than your acquaintances will know you in a thousand years.\",\n        \"Inspiration exists, but it has to find us working.\",\n        \"Trust your hunches. They're usually based on facts filed away just below the conscious level.\",\n        \"It is not in the stars to hold our destiny but in ourselves.\",\n        \"Great is the art of beginning, but greater is the art of ending.\",\n        \"The only thing to do with good advice is to pass it on. It is never of any use to oneself.\",\n        \"Light tomorrow with today!\",\n        \"Nobody made a greater mistake than he who did nothing because he could do only a little.\",\n        \"It's not who you are that holds you back, it's who you think you're not.\",\n        \"We may encounter many defeats but we must not be defeated.\",\n        \"Fate is in your hands and no one elses\",\n        \"Kindness is the greatest wisdom.\",\n        \"It is only possible to live happily ever after on a day to day basis.\",\n        \"Courage is not about taking risks unknowingly, but putting your own being in front of challenges that others may not be able to.\",\n        \"Happiness is when what you think, what you say, and what you do are in harmony.\",\n        \"Dreams come true. Without that possibility, nature would not incite us to have them.\",\n        \"The possibilities are numerous once we decide to act and not react.\",\n        \"Silence is the true friend that never betrays.\",\n        \"I can't change the direction of the wind, but I can adjust my sails to always reach my destination.\",\n        \"To go against the dominant thinking of your friends, of most of the people you see every day, is perhaps the most difficult act of heroism you can perform.\",\n        \"Nothing in life is to be feared, it is only to be understood. Now is the time to understand more, so that we may fear less.\",\n        \"Lose an hour in the morning, and you will spend all day looking for it.\",\n        \"Every new day is another chance to change your life.\",\n        \"Know how to listen, and you will profit even from those who talk badly.\",\n        \"The shortest answer is doing.\",\n        \"No act of kindness, no matter how small, is ever wasted.\",\n        \"Love is never lost. If not reciprocated, it will flow back and soften and purify the heart.\",\n        \"Intuition is the very force or activity of the soul in its experience through whatever has been the experience of the soul itself.\",\n        \"Happiness is not in the mere possession of money; it lies in the joy of achievement, in the thrill of creative effort.\",\n        \"You must do the things you think you cannot do.\",\n        \"The final proof of greatness lies in being able to endure criticism without resentment.\",\n        \"The possibilities are numerous once we decide to act and not react.\",\n        \"It is never too late. Even if you are going to die tomorrow, keep yourself straight and clear and be a happy human being today.\",\n        \"Yesterdays home runs don't win today's games.\",\n        \"A smile is a light in the window of your face to show your heart is at home.\",\n        \"Nothing great was ever achieved without enthusiasm.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"We know what we are, but know not what we may be.\",\n        \"You're never a loser until you quit trying.\",\n        \"The day is already blessed, find peace within it.\",\n        \"The one who always loses, is the only person who gets the reward.\",\n        \"It is one of the blessings of old friends that you can afford to be stupid with them.\",\n        \"From small beginnings come great things.\",\n        \"In all things of nature there is something of the marvellous.\",\n        \"I believe in one thing only, the power of human will.\",\n        \"A life spent making mistakes is not only more honourable but more useful than a life spent in doing nothing.\",\n        \"Everyone should carefully observe which way his heart draws him, and then choose that way with all his strength.\",\n        \"Those that know, do. Those that understand, teach.\",\n        \"The past has no power to stop you from being present now. Only your grievance about the past can do that.\",\n        \"I have often regretted my speech, never my silence.\",\n        \"The meaning I picked, the one that changed my life: Overcome fear, behold wonder.\",\n        \"I don't believe in failure. It is not failure if you enjoyed the process.\",\n        \"The truest wisdom is a resolute determination.\",\n        \"The universe is made of stories, not atoms.\",\n        \"Let us be grateful to people who make us happy; they are the charming gardeners who make our souls blossom.\",\n        \"The truth which has made us free will in the end make us glad also.\",\n        \"We know the truth, not only by the reason, but by the heart.\",\n        \"Don't let today's disappointments cast a shadow on tomorrow's dreams.\",\n        \"Ability will never catch up with the demand for it.\",\n        \"When you meet someone better than yourself, turn your thoughts to becoming his equal. When you meet someone not as good as you are, look within and examine your own self.\",\n        \"Using the power of decision gives you the capacity to get past any excuse to change any and every part of your life in an instant.\",\n        \"The less effort, the faster and more powerful you will be.\",\n        \"Sometimes it is better to lose and do the right thing than to win and do the wrong thing.\",\n        \"Everything that irritates us about others can lead us to an understanding of ourselves.\",\n        \"Do not be too timid and squeamish about your reactions. All life is an experiment. The more experiments you make the better.\",\n        \"Nature takes away any faculty that is not used.\",\n        \"Learn to listen. Opportunity could be knocking at your door very softly.\",\n        \"Nothing is predestined: The obstacles of your past can become the gateways that lead to new beginnings.\",\n        \"Strength to carry on despite the odds means you have faith in your own abilities and know how.\",\n        \"To be fully alive, fully human, and completely awake is to be continually thrown out of the nest.\",\n        \"It is more important to know where you are going than to get there quickly. Do not mistake activity for achievement.\",\n        \"Take it easy but take it.\",\n        \"I am a man of fixed and unbending principles, the first of which is to be flexible at all times.\",\n        \"I will not be concerned at other men is not knowing me;I will be concerned at my own want of ability.\",\n        \"Your vision will become clear only when you can look into your own heart. Who looks outside, dreams; who looks inside, awakes.\",\n        \"Compassion and happiness are not a sign of weakness but a sign of strength.\",\n        \"We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.\",\n        \"With courage you will dare to take risks, have the strength to be compassionate, and the wisdom to be humble. Courage is the foundation of integrity.\",\n        \"Love is the only force capable of transforming an enemy into friend.\",\n        \"The odds of hitting your target go up dramatically when you aim at it.\",\n        \"Kind words can be short and easy to speak but their echoes are truly endless.\",\n        \"I allow my intuition to lead my path.\",\n        \"It is only with the heart that one can see rightly, what is essential is invisible to the eye.\",\n        \"The truth of the matter is that you always know the right thing to do. The hard part is doing it.\",\n        \"Happiness comes when your work and words are of benefit to yourself and others.\",\n        \"Be slow of tongue and quick of eye.\",\n        \"To exist is to change, to change is to mature, to mature is to go on creating oneself endlessly.\",\n        \"Happiness does not come from having much, but from being attached to little.\",\n        \"Discovery consists of seeing what everybody has seen and thinking what nobody else has thought.\",\n        \"Man is not sum of what he has already, but rather the sum of what he does not yet have, of what he could have.\",\n        \"The secret to a rich life is to have more beginnings than endings.\",\n        \"The only limit to our realization of tomorrow will be our doubts of today.\",\n        \"A short saying oft contains much wisdom.\",\n        \"Imagination rules the world.\",\n        \"He who wishes to secure the good of others, has already secured his own.\",\n        \"Each misfortune you encounter will carry in it the seed of tomorrows good luck.\",\n        \"I seek constantly to improve my manners and graces, for they are the sugar to which all are attracted.\",\n        \"Your friends will know you better in the first minute you meet than your acquaintances will know you in a thousand years.\",\n        \"The more light you allow within you, the brighter the world you live in will be.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"We make our own fortunes and we call them fate.\",\n        \"Minds are like parachutes. They only function when open.\",\n        \"Learning is finding out what you already know.\",\n        \"The winds and waves are always on the side of the ablest navigators.\",\n        \"Failure will never overtake me if my determination to succeed is strong enough.\",\n        \"The foolish man seeks happiness in the distance; the wise grows it under his feet.\",\n        \"You can't shake hands with a clenched fist.\",\n        \"Only do what your heart tells you.\",\n        \"Living at risk is jumping off the cliff and building your wings on the way down.\",\n        \"Happiness is the reward we get for living to the highest right we know.\",\n        \"What we think determines what happens to us, so if we want to change our lives, we need to stretch our minds.\",\n        \"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.\",\n        \"Happiness cannot be travelled to, owned, earned, worn or consumed. Happiness is the spiritual experience of living every minute with love, grace and gratitude.\",\n        \"Someone remembers, someone cares; your name is whispered in someone's prayers.\",\n        \"Fine words and an insinuating appearance are seldom associated with true virtue\",\n        \"A rolling stone gathers no moss.\",\n        \"It's important to know that words don't move mountains. Work, exacting work moves mountains.\",\n        \"There is nothing happens to any person but what was in his power to go through with.\",\n        \"Passion creates the desire for more and action fuelled by passion creates a future.\",\n        \"The industrial landscape is already littered with remains of once successful companies that could not adapt their strategic vision to altered conditions of competition.\",\n        \"Worry gives a small thing a big shadow.\",\n        \"The best place to find a helping hand is at the end of your own arm.\",\n        \"If you wish to be a writer, write.\",\n        \"Nothing could be worse than the fear that one had given up too soon, and left one unexpended effort that might have saved the world.\",\n        \"If you get up one more time than you fall, you will make it through.\",\n        \"Strength does not come from physical capacity. It comes from an indomitable will.\",\n        \"Learning is finding out what you already know.\",\n        \"Beware of missing chances; otherwise it may be altogether too late some day.\",\n        \"If one is lucky, a solitary fantasy can totally transform one million realities.\",\n        \"Before you can inspire with emotion, you must be swamped with it yourself. Before you can move their tears, your own must flow. To convince them, you must yourself believe.\",\n        \"We need to find the courage to say NO to the things and people that are not serving us if we want to rediscover ourselves and live our lives with authenticity.\",\n        \"Do something wonderful, people may imitate it.\",\n        \"Listen to what you know instead of what you fear.\",\n        \"Begin at once to live and count each separate day as a separate life.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity\",\n        \"Don't wait for people to be friendly. Show them how.\",\n        \"Patience is a virtue but you will never ever accomplish anything if you don't exercise action over patience.\",\n        \"The greatest part of our happiness depends on our dispositions, not our circumstances.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"Id rather regret the things that I have done than the things that I have not done.\",\n        \"Open minds lead to open doors.\",\n        \"What is not started today is never finished tomorrow.\",\n        \"If you let go a little, you will have a little peace. If you let go a lot, you will have a lot of peace.\",\n        \"I seek constantly to improve my manners and graces, for they are the sugar to which all are attracted.\",\n        \"Begin at once to live and count each separate day as a separate life.\",\n        \"Very little is needed to make a happy life; it is all within yourself, in your way of thinking.\",\n        \"There are only two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle.\",\n        \"Giving up doesn't always mean you are weak; sometimes it means that you are strong enough to let go.\",\n        \"One secret of success in life is for a man to be ready for his opportunity when it comes.\",\n        \"It is never too late. Even if you are going to die tomorrow, keep yourself straight and clear and be a happy human being today.\",\n        \"If one is estranged from oneself, then one is estranged from others too. If one is out of touch with oneself, then one cannot touch others.\",\n        \"The cure for boredom is curiosity. There is no cure for curiosity.\",\n        \"The spirit, the will to win, and the will to excel, are the things that endure. These qualities are so much more important than the events that occur.\",\n        \"If you change the way you look at things, the things you look at change.\",\n        \"Change your thoughts, change your life!\",\n        \"The cautious seldom err.\",\n        \"Life is a succession of moments. To live each one is to succeed.\",\n        \"Things turn out best for those who make the best of the way things turn out.\",\n        \"There are no limitations to the mind except those we acknowledge.\",\n        \"Time you enjoy wasting, was not wasted.\",\n        \"If you have made mistakes, there is always another chance for you. You may have a fresh start any moment you choose.\",\n        \"The pain passes, but the beauty remains.\",\n        \"The only thing to do with good advice is to pass it on. It is never of any use to oneself.\",\n        \"Character is like a tree and reputation like a shadow. The shadow is what we think of it; the tree is the real thing.\",\n        \"You must welcome change as the rule but not as your ruler.\",\n        \"From small beginnings come great things.\",\n        \"The only difference between your abilities and others is the ability to put yourself in their shoes and actually try.\",\n        \"Happiness is when what you think, what you say, and what you do are in harmony.\",\n        \"The day always looks brighter from behind a smile.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"The greater part of human pain is unnecessary. It is self-created as long as the unobserved mind runs your life.\",\n        \"Never bend your head. Always hold it high. Look the world right in the eye.\",\n        \"Fame usually comes to those who are thinking about something else.\",\n        \"Things turn out best for those who make the best of the way things turn out.\",\n        \"Better be ignorant of a matter than half know it.\",\n        \"A man is not old as long as he is seeking something.\",\n        \"It is fatal to enter any war without the will to win it.\",\n        \"When your desires are strong enough you will appear to possess superhuman powers to achieve.\",\n        \"A successful person is one who can lay a firm foundation with the bricks that others throw at him or her.\",\n        \"Meditation is the dissolution of thoughts in eternal awareness or Pure consciousness without objectification, knowing without thinking, merging finitude in infinity.\",\n        \"The secret to a rich life is to have more beginnings than endings.\",\n        \"He who lives in harmony with himself lives in harmony with the universe.\",\n        \"Intuition is the supra-logic that cuts out all the routine processes of thought and leaps straight from the problem to the answer.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"A weed is no more than a flower in disguise.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"A thing well said will be wit in all languages.\",\n        \"Imagination will often carry us to worlds that never were. But without it we go nowhere.\",\n        \"All serious daring starts from within.\",\n        \"Happiness comes when your work and words are of benefit to yourself and others.\",\n        \"Everyone smiles in the same language.\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"Peace is not something you wish for. It's something you make, something you do, something you are, and something you give away.\",\n        \"Every man is a volume if you know how to read him.\",\n        \"I cannot say whether things will get better if we change; what I can say is they must change if they are to get better.\",\n        \"If you don't design your own life plan, chances are you'll fall into someone else's plan. And guess what they have planned for you? Not much.\",\n        \"Responsibility is not inherited, it is a choice that everyone needs to make at some point in their life.\",\n        \"The happy and efficient people in this world are those who accept trouble as a normal detail of human life and resolve to capitalize it when it comes along.\",\n        \"Difficulties increase the nearer we get to the goal.\",\n        \"It is not so important to know everything as to appreciate what we learn.\",\n        \"Those who cannot learn from history are doomed to repeat it.\",\n        \"No man can succeed in a line of endeavor which he does not like.\",\n        \"Things do not change; we change.\",\n        \"Nothing is at last sacred but the integrity of your own mind.\",\n        \"You cannot change anything in your life with intention alone, which can become a watered-down, occasional hope that you'll get to tomorrow. Intention without action is useless.\",\n        \"The winds and waves are always on the side of the ablest navigators.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"The greater part of human pain is unnecessary. It is self-created as long as the unobserved mind runs your life.\",\n        \"Change your words. Change your world.\",\n        \"If one does not know to which port is sailing, no wind is favorable.\",\n        \"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.\",\n        \"Sometimes by losing a battle you find a new way to win the war.\",\n        \"You cannot find yourself by going into the past. You can find yourself by coming into the present.\",\n        \"The smallest act of kindness is worth more than the grandest intention.\",\n        \"Three things in human life are important. The first is to be kind. The second is to be kind. The third is to be kind.\",\n        \"No one has ever become poor by giving.\",\n        \"If you light a lamp for somebody, it will also brighten your path.\",\n        \"When you see a good person, think of becoming like him. When you see someone not so good, reflect on your own weak points.\",\n        \"When you are offended at any man's fault, turn to yourself and study your own failings. Then you will forget your anger.\",\n        \"When you don't know what you believe, everything becomes an argument. Everything is debatable. But when you stand for something, decisions are obvious.\",\n        \"Pick battles big enough to matter, small enough to win.\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"Everything that happens happens as it should, and if you observe carefully, you will find this to be so.\",\n        \"We never understand how little we need in this world until we know the loss of it.\",\n        \"One today is worth two tomorrows.\",\n        \"It is the greatest of all mistakes to do nothing because you can only do little do what you can.\",\n        \"If one is lucky, a solitary fantasy can totally transform one million realities.\",\n        \"Keep your eyes on the stars and your feet on the ground.\",\n        \"The truth which has made us free will in the end make us glad also.\",\n        \"Nothing is at last sacred but the integrity of your own mind.\",\n        \"Sometimes the most important thing in a whole day is the rest we take between two deep breaths.\",\n        \"A house divided against itself cannot stand.\",\n        \"Short words are best and the old words when short are best of all.\",\n        \"The greatest mistake you can make in life is to be continually fearing you will make one.\",\n        \"There is only one way to happiness and that is to cease worrying about things which are beyond the power of our will.\",\n        \"Nothing will work unless you do.\",\n        \"All perceiving is also thinking, all reasoning is also intuition, all observation is also invention.\",\n        \"The most decisive actions of our life... are most often unconsidered actions.\",\n        \"You cannot change anything in your life with intention alone, which can become a watered-down, occasional hope that you'll get to tomorrow. Intention without action is useless.\",\n        \"Passion creates the desire for more and action fuelled by passion creates a future.\",\n        \"When it is obvious that the goals cannot be reached, don't adjust the goals, adjust the action steps.\",\n        \"You might well remember that nothing can bring you success but yourself.\",\n        \"Nothing diminishes anxiety faster than action.\",\n        \"The world is a book, and those who do not travel read only a page.\",\n        \"Be great in act, as you have been in thought.\",\n        \"Notice that the stiffest tree is most easily cracked, while the bamboo or willow survives by bending with the wind.\",\n        \"Smile, breathe, and go slowly.\",\n        \"Most of the important things in the world have been accomplished by people who have kept on trying when there seemed to be no hope at all.\",\n        \"If we have a positive mental attitude, then even when surrounded by hostility, we shall not lack inner peace.\",\n        \"Excellence is not a skill. It is an attitude.\",\n        \"If you propose to speak, always ask yourself, is it true, is it necessary, is it kind.\",\n        \"Life is what happens to you while you're busy making other plans.\",\n        \"You need chaos in your soul to give birth to a dancing star.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"Be your own hero, it's cheaper than a movie ticket.\",\n        \"Some people think it's holding that makes one strong sometimes it's letting go.\",\n        \"One who gains strength by overcoming obstacles possesses the only strength which can overcome adversity.\",\n        \"If one way be better than another, that you may be sure is natures way.\",\n        \"Bite off more than you can chew, then chew it.\",\n        \"Neither a lofty degree of intelligence nor imagination nor both together go to the making of genius. Love, love, love, that is the soul of genius.\",\n        \"The universe is transformation; our life is what our thoughts make it.\",\n        \"I never worry about action, but only inaction.\",\n        \"More often than not, anger is actually an indication of weakness rather than of strength.\",\n        \"Most people are about as happy as they make up their minds to be\",\n        \"To be happy is to be able to become aware of oneself without fright.\",\n        \"Peace comes from within. Do not seek it without.\",\n        \"We must be as courteous to a man as we are to a picture, which we are willing to give the advantage of a good light.\",\n        \"Positive thinking will let you do everything better than negative thinking will.\",\n        \"Courage is going from failure to failure without losing enthusiasm.\",\n        \"Men in general judge more from appearances than from reality. All men have eyes, but few have the gift of penetration.\",\n        \"Good actions give strength to ourselves and inspire good actions in others.\",\n        \"Bold is not the act of foolishness but the attribute and inner strength to act when others will not so as to move forward not backward.\",\n        \"I have an everyday religion that works for me. Love yourself first, and everything else falls into line.\",\n        \"Waste no more time arguing about what a good man should be. Be one.\",\n        \"The universe is full of magical things, patiently waiting for our wits to grow sharper.\",\n        \"Our intention creates our reality.\",\n        \"In the depth of winter, I finally learned that there was within me an invincible summer.\",\n        \"Change in all things is sweet.\",\n        \"He who talks more is sooner exhausted.\",\n        \"If there is no struggle, there is no progress.\",\n        \"Truth is generally the best vindication against slander.\",\n        \"If you don't like something, change it. If you can't change it, change your attitude.\",\n        \"All that we are is the result of what we have thought. The mind is everything. What we think we become.\",\n        \"Our ability to achieve happiness and success depends on the strength of our wings.\",\n        \"Every gift from a friend is a wish for your happiness.\",\n        \"Moral excellence comes about as a result of habit. We become just by doing just acts, temperate by doing temperate acts, brave by doing brave acts.\",\n        \"Life is a succession of lessons, which must be lived to be understood.\",\n        \"Gratitude is the fairest blossom which springs from the soul.\",\n        \"You may only be someone in the world, but to someone else, you may be the world.\",\n        \"History will be kind to me for I intend to write it.\",\n        \"Think how hard physics would be if particles could think.\",\n        \"I am not afraid of tomorrow, for I have seen yesterday and I love today.\",\n        \"To keep the body in good health is a duty... otherwise we shall not be able to keep our mind strong and clear.\",\n        \"Cherish your visions and your dreams as they are the children of your soul, the blueprints of your ultimate achievements.\",\n        \"One secret of success in life is for a man to be ready for his opportunity when it comes.\",\n        \"Happiness does not come from having much, but from being attached to little.\",\n        \"Be the chief but never the lord.\",\n        \"Reason and free inquiry are the only effectual agents against error.\",\n        \"Enjoy the little things, for one day you may look back and realize they were the big things.\",\n        \"To be tested is good. The challenged life may be the best therapist.\",\n        \"Our ability to achieve happiness and success depends on the strength of our wings.\",\n        \"Happiness is not something ready made. It comes from your own actions.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"Into each life rain must fall but rain can be the giver of life and it is all in your attitude that makes rain produce sunshine.\",\n        \"Perseverance is a great element of success. If you only knock long enough and loud enough at the gate, you are sure to wake up somebody.\",\n        \"Worry gives a small thing a big shadow.\",\n        \"Make the most of yourself, for that is all there is of you.\",\n        \"Autumn is a second spring when every leaf is a flower.\",\n        \"Do not wait for leaders; do it alone, person to person.\",\n        \"The greatest way to live with honour in this world is to be what we pretend to be.\",\n        \"Love is never lost. If not reciprocated, it will flow back and soften and purify the heart.\",\n        \"Wisdom is the supreme part of happiness.\",\n        \"Until you make peace with who you are, you will never be content with what you have.\",\n        \"What matters is the value we've created in our lives, the people we've made happy and how much we've grown as people.\",\n        \"Doing nothing is better than being busy doing nothing.\",\n        \"Strength to carry on despite the odds means you have faith in your own abilities and know how.\",\n        \"Whoso loves, believes the impossible.\",\n        \"To free us from the expectations of others, to give us back to ourselves there lies the great, singular power of self-respect.\",\n        \"Face your deficiencies and acknowledge them; but do not let them master you. Let them teach you patience, sweetness, insight.\",\n        \"Anyone who doesn't take truth seriously in small matters cannot be trusted in large ones either.\",\n        \"Obstacles are those frightful things you see when you take your eyes off your goal.\",\n        \"Happiness is a perfume you cannot pour on others without getting a few drops on yourself.\",\n        \"Real success is finding your lifework in the work that you love.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"What is not started today is never finished tomorrow.\",\n        \"A little more persistence, a little more effort, and what seemed hopeless failure may turn to glorious success.\",\n        \"Treat people as if they were what they ought to be and you help them to become what they are capable of being.\",\n        \"The worst bankrupt in the world is the person who has lost his enthusiasm.\",\n        \"Moments of complete apathy are the best for new creations.\",\n        \"You were not born a winner, and you were not born a loser. You are what you make yourself be.\",\n        \"We make our own fortunes and we call them fate.\",\n        \"Always do your best. What you plant now, you will harvest later.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"The awareness of our own strength makes us modest.\",\n        \"God has given you one face, and you make yourself another.\",\n        \"Some pursue happiness, others create it.\",\n        \"Faith in oneself is the best and safest course.\",\n        \"We can do no great things, only small things with great love.\",\n        \"Think how hard physics would be if particles could think.\",\n        \"Remember that failure is an event, not a person.\",\n        \"Through meditation and by giving full attention to one thing at a time, we can learn to direct attention where we choose.\",\n        \"A man who doesn't trust himself can never really trust anyone else.\",\n        \"The secret of success is constancy to purpose.\",\n        \"We must embrace pain and burn it as fuel for our journey.\",\n        \"In seed time learn, in harvest teach, in winter enjoy.\",\n        \"Don't be dismayed by good-byes. A farewell is necessary before you can meet again. And meeting again, after moments or lifetimes, is certain for those who are friends.\",\n        \"Listen to what you know instead of what you fear.\",\n        \"Imagination rules the world.\",\n        \"There are no failures. Just experiences and your reactions to them.\",\n        \"Respect should be earned by actions, and not acquired by years.\",\n        \"I may not know everything, but everything is not known yet anyway.\",\n        \"You have to think anyway, so why not think big?\",\n        \"He who talks more is sooner exhausted.\",\n        \"If you find yourself in a hole, the first thing to do is stop digging.\",\n        \"Ignorance never settle a question.\",\n        \"When you see a man of worth, think of how you may emulate him. When you see one who is unworthy, examine yourself.\",\n        \"Never ignore a gut feeling, but never believe that it's enough.\",\n        \"One fails forward toward success.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"When we feel love and kindness toward others, it not only makes others feel loved and cared for, but it helps us also to develop inner happiness and peace.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"Work while you have the light. You are responsible for the talent that has been entrusted to you.\",\n        \"When you realize how perfect everything is you will tilt your head back and laugh at the sky.\",\n        \"Better to have loved and lost, than to have never loved at all.\",\n        \"I don't believe in failure. It is not failure if you enjoyed the process.\",\n        \"The greatest pleasure I know is to do a good action by stealth, and to have it found out by accident.\",\n        \"Gratitude makes sense of our past, brings peace for today, and creates a vision for tomorrow.\",\n        \"It is not uncommon for people to spend their whole life waiting to start living.\",\n        \"By going beyond your own problems and taking care of others, you gain inner strength, self-confidence, courage, and a greater sense of calm.\",\n        \"Stay away from what might have been and look at what will be.\",\n        \"Flow with whatever is happening and let your mind be free. Stay centred by accepting whatever you are doing. This is the ultimate.\",\n        \"It is very easy to forgive others their mistakes; it takes more grit to forgive them for having witnessed your own.\",\n        \"Most of our obstacles would melt away if, instead of cowering before them, we should make up our minds to walk boldly through them.\",\n        \"Where there is great love, there are always miracles.\",\n        \"You cannot be lonely if you like the person you're alone with.\",\n        \"Your vision will become clear only when you look into your heart. Who looks outside, dreams. Who looks inside, awakens.\",\n        \"Sometimes by losing a battle you find a new way to win the war.\",\n        \"When people are like each other they tend to like each other.\",\n        \"Formula for success: under promise and over deliver.\",\n        \"The things that one most wants to do are the things that are probably most worth doing.\",\n        \"Doing nothing is better than being busy doing nothing.\",\n        \"The truest wisdom is a resolute determination.\",\n        \"As long as your going to be thinking anyway, think big.\",\n        \"From small beginnings come great things.\",\n        \"Think like a man of action; act like a man of thought.\",\n        \"Things turn out best for those who make the best of the way things turn out.\",\n        \"Be not angry that you cannot make others as you wish them to be, since you cannot make yourself as you wish to be.\",\n        \"Every gift from a friend is a wish for your happiness.\",\n        \"When you begin to touch your heart or let your heart be touched, you begin to discover that it's bottomless.\",\n        \"How many cares one loses when one decides not to be something but to be someone.\",\n        \"Be as you wish to seem.\",\n        \"Most folks are about as happy as they make up their minds to be.\",\n        \"Meditation brings wisdom; lack of mediation leaves ignorance. Know well what leads you forward and what hold you back, and choose the path that leads to wisdom.\",\n        \"The height of your accomplishments will equal the depth of your convictions.\",\n        \"The path to success is to take massive, determined action.\",\n        \"There is only one success to be able to spend your life in your own way.\",\n        \"In a controversy the instant we feel anger we have already ceased striving for the truth, and have begun striving for ourselves.\",\n        \"All our knowledge has its origins in our perceptions.\",\n        \"Wherever a man may happen to turn, whatever a man may undertake, he will always end up by returning to the path which nature has marked out for him.\",\n        \"Think how hard physics would be if particles could think.\",\n        \"Fine words and an insinuating appearance are seldom associated with true virtue\",\n        \"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\",\n        \"The least movement is of importance to all nature. The entire ocean is affected by a pebble.\",\n        \"It isn't where you come from, it's where you're going that counts.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"Fear is a darkroom where negatives develop.\",\n        \"Fear grows in darkness; if you think theres a bogeyman around, turn on the light.\",\n        \"You must welcome change as the rule but not as your ruler.\",\n        \"Id rather regret the things that I have done than the things that I have not done.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"To be aware of a single shortcoming in oneself is more useful than to be aware of a thousand in someone else.\",\n        \"We are all inclined to judge ourselves by our ideals; others, by their acts.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"Consider that not only do negative thoughts and emotions destroy our experience of peace, they also undermine our health.\",\n        \"The biggest adventure you can ever take is to live the life of your dreams.\",\n        \"Beauty is not in the face; beauty is a light in the heart.\",\n        \"A life spent making mistakes is not only more honourable, but more useful than a life spent doing nothing.\",\n        \"Love and compassion open our own inner life, reducing stress, distrust and loneliness.\",\n        \"We have two ears and one mouth so that we can listen twice as much as we speak.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"The poor man is not he who is without a cent, but he who is without a dream.\",\n        \"Most great people have attained their greatest success just one step beyond their greatest failure.\",\n        \"Opportunity is missed by most because it is dressed in overalls and looks like work.\",\n        \"The thing always happens that you really believe in; and the belief in a thing makes it happen.\",\n        \"The truth which has made us free will in the end make us glad also.\",\n        \"We can change our lives. We can do, have, and be exactly what we wish.\",\n        \"The energy of the mind is the essence of life.\",\n        \"To ensure good health: eat lightly, breathe deeply, live moderately, cultivate cheerfulness, and maintain an interest in life.\",\n        \"To live a pure unselfish life, one must count nothing as ones own in the midst of abundance.\",\n        \"He is able who thinks he is able.\",\n        \"We can change our lives. We can do, have, and be exactly what we wish.\",\n        \"Weve got to have a dream if we are going to make a dream come true.\",\n        \"Remember that sometimes not getting what you want is a wonderful stroke of luck.\",\n        \"There is nothing so useless as doing efficiently that which should not be done at all.\",\n        \"Strength to carry on despite the odds means you have faith in your own abilities and know how.\",\n        \"Today, give a stranger a smile without waiting for it may be the joy they need to have a great day.\",\n        \"The greatest mistake you can make in life is to be continually fearing you will make one.\",\n        \"With realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"Fortune favours the brave.\",\n        \"To bring anything into your life, imagine that it's already there.\",\n        \"If you take each challenge one step at a time, with faith in every footstep, your strength and understanding will increase.\",\n        \"All the flowers of all the tomorrows are in the seeds of today.\",\n        \"Reality does not conform to the ideal, but confirms it.\",\n        \"Action may not always bring happiness, but there is no happiness without action.\",\n        \"Just as a flower, which seems beautiful has color but no perfume, so are the fruitless words of a man who speaks them but does them not.\",\n        \"As long as your going to be thinking anyway, think big.\",\n        \"Great acts are made up of small deeds.\",\n        \"When you arise in the morning, think of what a precious privilege it is to be alive to breathe, to think, to enjoy, to love.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"The best thing about the future is that it only comes one day at a time.\",\n        \"It is surprising what a man can do when he has to, and how little most men will do when they don't have to.\",\n        \"To get the full value of joy you must have someone to divide it with.\",\n        \"An idea that is developed and put into action is more important than an idea that exists only as an idea.\",\n        \"We can change our lives. We can do, have, and be exactly what we wish.\",\n        \"Every gift from a friend is a wish for your happiness.\",\n        \"The cure for boredom is curiosity. There is no cure for curiosity.\",\n        \"No act of kindness, no matter how small, is ever wasted.\",\n        \"If someone in your life talked to you the way you talk to yourself, you would have left them long ago.\",\n        \"We all have problems. The way we solve them is what makes us different.\",\n        \"However many holy words you read, however many you speak, what good will they do you if you do not act on upon them?\",\n        \"People are not lazy. They simply have impotent goals that is, goals that do not inspire them.\",\n        \"The price of greatness is responsibility.\",\n        \"A man may fulfil the object of his existence by asking a question he cannot answer, and attempting a task he cannot achieve.\",\n        \"My advice to you is not to inquire why or whither, but just enjoy your ice cream while its on your plate, that's my philosophy.\",\n        \"Peace is not something you wish for. It's something you make, something you do, something you are, and something you give away.\",\n        \"Freedom is not worth having if it does not connote freedom to err.\",\n        \"Not every difficult and dangerous thing is suitable for training, but only that which is conducive to success in achieving the object of our effort.\",\n        \"To understand the heart and mind of a person, look not at what he has already achieved, but at what he aspires to do.\",\n        \"There is no need for temples, no need for complicated philosophies. My brain and my heart are my temples; my philosophy is kindness.\",\n        \"If you must tell me your opinions, tell me what you believe in. I have plenty of douts of my own.\",\n        \"Someone is special only if you tell them.\",\n        \"When you dance, your purpose is not to get to a certain place on the floor. It's to enjoy each step along the way.\",\n        \"Things do not change, we change.\",\n        \"I never worry about action, but only inaction.\",\n        \"A man is great by deeds, not by birth.\",\n        \"You will not be punished for your anger, you will be punished by your anger.\",\n        \"You cannot have what you do not want.\",\n        \"Courage is going from failure to failure without losing enthusiasm.\",\n        \"Man is equally incapable of seeing the nothingness from which he emerges and the infinity in which he is engulfed.\",\n        \"When you arise in the morning, think of what a precious privilege it is to be alive to breathe, to think, to enjoy, to love.\",\n        \"There are only two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle.\",\n        \"Moments of complete apathy are the best for new creations.\",\n        \"To succeed, we must first believe that we can.\",\n        \"Progress always involves risks. You can't steal second base and keep your foot on first.\",\n        \"However many holy words you read, however many you speak, what good will they do you if you do not act on upon them?\",\n        \"It is through science that we prove, but through intuition that we discover.\",\n        \"I have done my best: that is about all the philosophy of living one needs.\",\n        \"Never ignore a gut feeling, but never believe that it's enough.\",\n        \"We do what we do because we believe.\",\n        \"More powerful than the will to win is the courage to begin.\",\n        \"We are all faced with a series of great opportunities brilliantly disguised as impossible situations.\",\n        \"If we look at the world with a love of life, the world will reveal its beauty to us.\",\n        \"Nothing happens unless first we dream.\",\n        \"Love doesn't make the world go round, love is what makes the ride worthwhile.\",\n        \"To live a pure unselfish life, one must count nothing as ones own in the midst of abundance.\",\n        \"Rainbows apologize for angry skies.\",\n        \"Courage is the discovery that you may not win, and trying when you know you can lose.\",\n        \"It is more important to know where you are going than to get there quickly. Do not mistake activity for achievement.\",\n        \"Where all think alike, no one thinks very much.\",\n        \"To be great is to be misunderstood.\",\n        \"Think for yourselves and let others enjoy the privilege to do so too.\",\n        \"Transformation does not start with some one else changing you; transformation is an inner self reworking of what you are now to what you will be.\",\n        \"All that is necessary is to accept the impossible, do without the indispensable, and bear the intolerable.\",\n        \"Your destiny isn't just fate; it is how you use your own developed abilities to get what you want.\",\n        \"Do not turn back when you are just at the goal.\",\n        \"You won't skid if you stay in a rut.\",\n        \"Better than a thousand hollow words is one word that brings peace.\",\n        \"If you focus on results, you will never change. If you focus on change, you will get results.\",\n        \"The really unhappy person is the one who leaves undone what they can do, and starts doing what they don't understand; no wonder they come to grief.\",\n        \"Peace is not something you wish for. It's something you make, something you do, something you are, and something you give away.\",\n        \"Know how to listen, and you will profit even from those who talk badly.\",\n        \"I do not believe in a fate that falls on men however they act; but I do believe in a fate that falls on them unless they act.\",\n        \"We have committed the Golden Rule to memory; let us now commit it to life.\",\n        \"The free man is he who does not fear to go to the end of his thought.\",\n        \"All action results from thought, so it is thoughts that matter.\",\n        \"To be able to give away riches is mandatory if you wish to possess them. This is the only way that you will be truly rich.\",\n        \"Great talent finds happiness in execution.\",\n        \"We make a living by what we get, but we make a life by what we give.\",\n        \"Nothing happens unless first we dream.\",\n        \"It is the greatest of all mistakes to do nothing because you can only do little do what you can.\",\n        \"The happy and efficient people in this world are those who accept trouble as a normal detail of human life and resolve to capitalize it when it comes along.\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"Great is the art of beginning, but greater is the art of ending.\",\n        \"Know, first, who you are, and then adorn yourself accordingly.\",\n        \"The truth which has made us free will in the end make us glad also.\",\n        \"Love is the only force capable of transforming an enemy into friend.\",\n        \"Things do not change, we change.\",\n        \"If you must tell me your opinions, tell me what you believe in. I have plenty of douts of my own.\",\n        \"Our strength grows out of our weaknesses.\",\n        \"Do not follow where the path may lead. Go, instead, where there is no path and leave a trail.\",\n        \"Here is one quality that one must possess to win, and that is definiteness of purpose, the knowledge of what one wants, and a burning desire to possess it.\",\n        \"A weed is no more than a flower in disguise.\",\n        \"Only when we are no longer afraid do we begin to live.\",\n        \"When you realize how perfect everything is you will tilt your head back and laugh at the sky.\",\n        \"To know oneself is to study oneself in action with another person.\",\n        \"Don't focus on making the right decision, focus on making the decision the right one.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"Something opens our wings. Something makes boredom and hurt disappear. Someone fills the cup in front of us: We taste only sacredness.\",\n        \"Patience is the companion of wisdom.\",\n        \"In the middle of every difficulty lies opportunity.\",\n        \"A fine quotation is a diamond on the finger of a man of wit, and a pebble in the hand of a fool.\",\n        \"Those who try to do something and fail are infinitely better than those who try nothing and succeed.\",\n        \"Setting an example is not the main means of influencing another, it is the only means.\",\n        \"Take rest; a field that has rested gives a bountiful crop.\",\n        \"I am glad that I paid so little attention to good advice; had I abided by it I might have been saved from some of my most valuable mistakes.\",\n        \"Prosperity depends more on wanting what you have than having what you want.\",\n        \"The only difference between your abilities and others is the ability to put yourself in their shoes and actually try.\",\n        \"Ignorance never settle a question.\",\n        \"Kindness is more important than wisdom, and the recognition of this is the beginning of wisdom.\",\n        \"Of course there is no formula for success except perhaps an unconditional acceptance of life and what it brings.\",\n        \"What you fear is that which requires action to overcome.\",\n        \"I believe that we are fundamentally the same and have the same basic potential.\",\n        \"Were here for a reason. I believe a bit of the reason is to throw little torches out to lead people through the dark.\",\n        \"There is no scarcity of opportunity to make a living at what you love; theres only scarcity of resolve to make it happen.\",\n        \"Knowledge rests not upon truth alone, but upon error also.\",\n        \"The greatest way to live with honour in this world is to be what we pretend to be.\",\n        \"Change in all things is sweet.\",\n        \"You always succeed in producing a result.\",\n        \"Everyone is a genius at least once a year. A real genius has his original ideas closer together.\",\n        \"Your future depends on many things, but mostly on you.\",\n        \"Responsibility is not inherited, it is a choice that everyone needs to make at some point in their life.\",\n        \"A goal is a dream with a deadline.\",\n        \"We all live with the objective of being happy; our lives are all different and yet the same.\",\n        \"Mistakes are always forgivable, if one has the courage to admit them.\",\n        \"Do not turn back when you are just at the goal.\",\n        \"If you love life, don't waste time, for time is what life is made up of.\",\n        \"All that is necessary is to accept the impossible, do without the indispensable, and bear the intolerable.\",\n        \"If you must tell me your opinions, tell me what you believe in. I have plenty of douts of my own.\",\n        \"The foolish man seeks happiness in the distance; the wise grows it under his feet.\",\n        \"Setting goals is the first step in turning the invisible into the visible.\",\n        \"Though no one can go back and make a brand new start, anyone can start from now and make a brand new ending.\",\n        \"We can only be said to be alive in those moments when our hearts are conscious of our treasures.\",\n        \"Always seek out the seed of triumph in every adversity.\",\n        \"If we did the things we are capable of, we would astound ourselves.\",\n        \"Failure doesn't mean you are a failure it just means you haven't succeeded yet.\",\n        \"To succeed, we must first believe that we can.\",\n        \"I'm not in this world to live up to your expectations and you're not in this world to live up to mine.\",\n        \"He who deliberates fully before taking a step will spend his entire life on one leg.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"The truth of the matter is that you always know the right thing to do. The hard part is doing it.\",\n        \"Quality means doing it right when no one is looking.\",\n        \"To accomplish great things, we must not only act, but also dream; not only plan, but also believe.\",\n        \"Watch the little things; a small leak will sink a great ship.\",\n        \"The industrial landscape is already littered with remains of once successful companies that could not adapt their strategic vision to altered conditions of competition.\",\n        \"Most folks are about as happy as they make up their minds to be.\",\n        \"Do not waste yourself in rejection, nor bark against the bad, but chant the beauty of the good.\",\n        \"Change will not come if we wait for some other person or some other time. We are the ones weve been waiting for. We are the change that we seek.\",\n        \"Always seek out the seed of triumph in every adversity.\",\n        \"Reviewing what you have learned and learning anew, you are fit to be a teacher.\",\n        \"The foolish man seeks happiness in the distance; the wise grows it under his feet.\",\n        \"The only real mistake is the one from which we learn nothing.\",\n        \"We make our own fortunes and we call them fate.\",\n        \"When I dare to be powerful, to use my strength in the service of my vision, then it becomes less and less important whether I am afraid.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"I seek constantly to improve my manners and graces, for they are the sugar to which all are attracted.\",\n        \"You are important enough to ask and you are blessed enough to receive back.\",\n        \"It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something.\",\n        \"To go against the dominant thinking of your friends, of most of the people you see every day, is perhaps the most difficult act of heroism you can perform.\",\n        \"If you think you can, you can. And if you think you can't, you're right.\",\n        \"With the realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"Everything can be taken from a man but ... the last of the human freedoms to choose ones attitude in any given set of circumstances, to choose ones own way.\",\n        \"Failure will never overtake me if my determination to succeed is strong enough.\",\n        \"Without this playing with fantasy no creative work has ever yet come to birth. The debt we owe to the play of the imagination is incalculable.\",\n        \"Being right is highly overrated. Even a stopped clock is right twice a day.\",\n        \"I think somehow we learn who we really are and then live with that decision.\",\n        \"He who experiences the unity of life sees his own Self in all beings, and all beings in his own Self, and looks on everything with an impartial eye.\",\n        \"Sometimes the most important thing in a whole day is the rest we take between two deep breaths.\",\n        \"Speak when you are angry and you will make the best speech you will ever regret.\",\n        \"The smallest flower is a thought, a life answering to some feature of the Great Whole, of whom they have a persistent intuition.\",\n        \"You have power over your mind not outside events. Realize this, and you will find strength.\",\n        \"Creativity comes from trust. Trust your instincts. And never hope more than you work.\",\n        \"If we did the things we are capable of, we would astound ourselves.\",\n        \"Your outlook on life is a direct reflection on how much you like yourself.\",\n        \"Stay away from what might have been and look at what will be.\",\n        \"Whenever you have eliminated the impossible, whatever remains, however improbable, must be the truth.\",\n        \"Never put off till tomorrow what you can do today.\",\n        \"No snowflake in an avalanche ever feels responsible.\",\n        \"Appreciation is the highest form of prayer, for it acknowledges the presence of good wherever you shine the light of your thankful thoughts.\",\n        \"The less effort, the faster and more powerful you will be.\",\n        \"If you're walking down the right path and you're willing to keep walking, eventually you'll make progress.\",\n        \"Those who cannot learn from history are doomed to repeat it.\",\n        \"You need chaos in your soul to give birth to a dancing star.\",\n        \"At the center of your being you have the answer; you know who you are and you know what you want.\",\n        \"By believing passionately in something that does not yet exist, we create it.\",\n        \"The reasonable man adapts himself to the world; the unreasonable man persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.\",\n        \"Fate is in your hands and no one elses\",\n        \"The purpose of learning is growth, and our minds, unlike our bodies, can continue growing as we continue to live.\",\n        \"Ignorant men don't know what good they hold in their hands until they've flung it away.\",\n        \"There is no way to prosperity, prosperity is the way.\",\n        \"The superior man acts before he speaks, and afterwards speaks according to his action.\",\n        \"Remember that failure is an event, not a person.\",\n        \"In order to win, you must expect to win.\",\n        \"The greater part of human pain is unnecessary. It is self-created as long as the unobserved mind runs your life.\",\n        \"Everyone smiles in the same language.\",\n        \"To be fully alive, fully human, and completely awake is to be continually thrown out of the nest.\",\n        \"From wonder into wonder existence opens.\",\n        \"Sometimes our fate resembles a fruit tree in winter. Who would think that those branches would turn green again and blossom, but we hope it, we know it.\",\n        \"If you cannot be silent be brilliant and thoughtful.\",\n        \"Let us always meet each other with smile, for the smile is the beginning of love.\",\n        \"If one advances confidently in the direction of his dream, and endeavours to live the life which he had imagines, he will meet with a success unexpected in common hours.\",\n        \"To get something you never had, you have to do something you never did.\",\n        \"The really unhappy person is the one who leaves undone what they can do, and starts doing what they don't understand; no wonder they come to grief.\",\n        \"From small beginnings come great things.\",\n        \"One secret of success in life is for a man to be ready for his opportunity when it comes.\",\n        \"Count your joys instead of your woes. Count your friends instead of your foes.\",\n        \"Ask yourself the secret of your success. Listen to your answer, and practice it.\",\n        \"The aim of life is self-development. To realize ones nature perfectly that is what each of us is here for.\",\n        \"The conditions of conquest are always easy. We have but to toil awhile, endure awhile, believe always, and never turn back.\",\n        \"If you find yourself in a hole, the first thing to do is stop digging.\",\n        \"The greatest pleasure I know is to do a good action by stealth, and to have it found out by accident.\",\n        \"If you have made mistakes, there is always another chance for you. You may have a fresh start any moment you choose.\",\n        \"There is no duty we so underrate as the duty of being happy. By being happy we sow anonymous benefits upon the world.\",\n        \"Love is just a word until someone comes along and gives it meaning.\",\n        \"I am like a falling star who has finally found her place next to another in a lovely constellation, where we will sparkle in the heavens forever.\",\n        \"A beautiful thing is never perfect.\",\n        \"A gem cannot be polished without friction, nor a man perfected without trials.\",\n        \"When I let go of what I am, I become what I might be.\",\n        \"Practice yourself, for heavens sake in little things, and then proceed to greater.\",\n        \"Be the chief but never the lord.\",\n        \"To climb steep hills requires a slow pace at first.\",\n        \"If you love someone, set them free. If they come back they're yours; if they don't they never were.\",\n        \"Impossibilities are merely things which we have not yet learned.\",\n        \"One needs something to believe in, something for which one can have whole-hearted enthusiasm. One needs to feel that ones life has meaning, that one is needed in this world.\",\n        \"The man who trusts men will make fewer mistakes than he who distrusts them.\",\n        \"Our intention creates our reality.\",\n        \"Ask yourself the secret of your success. Listen to your answer, and practice it.\",\n        \"Consider how hard it is to change yourself and you'll understand what little chance you have in trying to change others.\",\n        \"It isn't what happens to us that causes us to suffer; it's what we say to ourselves about what happens.\",\n        \"Sometimes by losing a battle you find a new way to win the war.\",\n        \"We are the leaves of one branch, the drops of one sea, the flowers of one garden.\",\n        \"Through pride we are ever deceiving ourselves. But deep down below the surface of the average conscience a still, small voice says to us, Something is out of tune.\",\n        \"Neither genius, fame, nor love show the greatness of the soul. Only kindness can do that.\",\n        \"The world does not happen to you it happens from you.\",\n        \"Everyone can taste success when the going is easy, but few know how to taste victory when times get tough.\",\n        \"Ignorance never settle a question.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"It is better to take many small steps in the right direction than to make a great leap forward only to stumble backward.\",\n        \"There is one thing you have got to learn about our movement. Three people are better than no people.\",\n        \"One secret of success in life is for a man to be ready for his opportunity when it comes.\",\n        \"The best way to predict your future is to create it.\",\n        \"Man is not sum of what he has already, but rather the sum of what he does not yet have, of what he could have.\",\n        \"If you are patient in one moment of anger, you will escape one hundred days of sorrow.\",\n        \"A wise man will make more opportunities than he finds.\",\n        \"Rainbows apologize for angry skies.\",\n        \"In order to win, you must expect to win.\",\n        \"The aim of life is self-development. To realize ones nature perfectly that is what each of us is here for.\",\n        \"Happiness often sneaks in through a door you didn't know you left open.\",\n        \"To follow, without halt, one aim: There is the secret of success.\",\n        \"A day of worry is more exhausting than a day of work.\",\n        \"What we see is mainly what we look for.\",\n        \"Miracles come in moments. Be ready and willing.\",\n        \"Don't miss all the beautiful colors of the rainbow looking for that pot of gold.\",\n        \"We don't stop playing because we grow old; we grow old because we stop playing.\",\n        \"Intuition is the very force or activity of the soul in its experience through whatever has been the experience of the soul itself.\",\n        \"Beware of the half truth. You may have gotten hold of the wrong half.\",\n        \"The only difference between your abilities and others is the ability to put yourself in their shoes and actually try.\",\n        \"When it is obvious that the goals cannot be reached, don't adjust the goals, adjust the action steps.\",\n        \"What we think, we become.\",\n        \"No yesterdays are ever wasted for those who give themselves to today.\",\n        \"Vision without action is a daydream. Action without vision is a nightmare.\",\n        \"Wrinkles should merely indicate where smiles have been.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"Our ability to achieve happiness and success depends on the strength of our wings.\",\n        \"Never apologize for showing feelings. When you do so, you apologize for the truth.\",\n        \"Forgiveness is choosing to love. It is the first skill of self-giving love.\",\n        \"Forget about all the reasons why something may not work. You only need to find one good reason why it will.\",\n        \"He who conquers others is strong; He who conquers himself is mighty.\",\n        \"Never regret. If it's good, it's wonderful. If it's bad, it's experience.\",\n        \"One today is worth two tomorrows.\",\n        \"Change will not come if we wait for some other person or some other time. We are the ones weve been waiting for. We are the change that we seek.\",\n        \"Change your thoughts, change your life!\",\n        \"With courage you will dare to take risks, have the strength to be compassionate, and the wisdom to be humble. Courage is the foundation of integrity.\",\n        \"I don't believe in failure. It is not failure if you enjoyed the process.\",\n        \"Always bear in mind that your own resolution to succeed is more important than any one thing.\",\n        \"I love my past. I love my present. I'm not ashamed of what Ive had, and I'm not sad because I have it no longer.\",\n        \"It is only possible to live happily ever after on a day to day basis.\",\n        \"You have power over your mind not outside events. Realize this, and you will find strength.\",\n        \"More powerful than the will to win is the courage to begin.\",\n        \"Let us revere, let us worship, but erect and open-eyed, the highest, not the lowest; the future, not the past!\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"Accept the things to which fate binds you, and love the people with whom fate brings you together, but do so with all your heart.\",\n        \"The greatest good you can do for another is not just share your riches, but reveal to them their own.\",\n        \"Never let lack of money interfere with having fun.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"Do not overrate what you have received, nor envy others. He who envies others does not obtain peace of mind.\",\n        \"Great acts are made up of small deeds.\",\n        \"Your vision will become clear only when you look into your heart. Who looks outside, dreams. Who looks inside, awakens.\",\n        \"As you think, so shall you become.\",\n        \"Life is change. Growth is optional. Choose wisely.\",\n        \"You cannot make yourself feel something you do not feel, but you can make yourself do right in spite of your feelings.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"It is easier to live through someone else than to become complete yourself.\",\n        \"We know the truth, not only by the reason, but by the heart.\",\n        \"As long as your going to be thinking anyway, think big.\",\n        \"It is very easy to forgive others their mistakes; it takes more grit to forgive them for having witnessed your own.\",\n        \"Just as a candle cannot burn without fire, men cannot live without a spiritual life.\",\n        \"Peace cannot be kept by force. It can only be achieved by understanding.\",\n        \"Happiness is not something ready made. It comes from your own actions.\",\n        \"Don't wait for your feelings to change to take the action. Take the action and your feelings will change.\",\n        \"It is surprising what a man can do when he has to, and how little most men will do when they don't have to.\",\n        \"You have to think anyway, so why not think big?\",\n        \"You only lose what you cling to.\",\n        \"If you look into your own heart, and you find nothing wrong there, what is there to worry about? What is there to fear?\",\n        \"Reviewing what you have learned and learning anew, you are fit to be a teacher.\",\n        \"The happiness of a man in this life does not consist in the absence but in the mastery of his passions.\",\n        \"We are shaped by our thoughts; we become what we think. When the mind is pure, joy follows like a shadow that never leaves.\",\n        \"Though no one can go back and make a brand new start, anyone can start from not and make a brand new ending.\",\n        \"There is no duty we so underrate as the duty of being happy. By being happy we sow anonymous benefits upon the world.\",\n        \"One fails forward toward success.\",\n        \"Genuine sincerity opens people's hearts, while manipulation causes them to close.\",\n        \"You won't skid if you stay in a rut.\",\n        \"Translation is the paradigm, the exemplar of all writing. It is translation that demonstrates most vividly the yearning for transformation that underlies every act involving speech, that supremely human gift.\",\n        \"People seldom notice old clothes if you wear a big smile.\",\n        \"Your future depends on many things, but mostly on you.\",\n        \"Those who are blessed with the most talent don't necessarily outperform everyone else. It's the people with follow-through who excel.\",\n        \"A single conversation across the table with a wise person is worth a months study of books.\",\n        \"What you fear is that which requires action to overcome.\",\n        \"Good people are good because they've come to wisdom through failure. We get very little wisdom from success, you know.\",\n        \"To get something you never had, you have to do something you never did.\",\n        \"Meaning is not what you start with but what you end up with.\",\n        \"You have to take it as it happens, but you should try to make it happen the way you want to take it.\",\n        \"Never tell a young person that anything cannot be done. God may have been waiting centuries for someone ignorant enough of the impossible to do that very thing.\",\n        \"You are never given a wish without also being given the power to make it come true. You may have to work for it, however.\",\n        \"Quality is never an accident; it is always the result of intelligent effort.\",\n        \"The mind is everything. What you think you become.\",\n        \"It is better to have enough ideas for some of them to be wrong, than to be always right by having no ideas at all.\",\n        \"If we look at the world with a love of life, the world will reveal its beauty to us.\",\n        \"Each time we face a fear, we gain strength, courage, and confidence in the doing.\",\n        \"Today, give a stranger a smile without waiting for it may be the joy they need to have a great day.\",\n        \"We know the truth, not only by the reason, but by the heart.\",\n        \"Everything that irritates us about others can lead us to a better understanding of ourselves.\",\n        \"Treat people as if they were what they ought to be and you help them to become what they are capable of being.\",\n        \"Quality is never an accident; it is always the result of intelligent effort.\",\n        \"Courage is going from failure to failure without losing enthusiasm.\",\n        \"Instead of saying that man is the creature of circumstance, it would be nearer the mark to say that man is the architect of circumstance.\",\n        \"An ounce of emotion is equal to a ton of facts.\",\n        \"He who wishes to secure the good of others, has already secured his own.\",\n        \"Everyone thinks of changing the world, but no one thinks of changing himself.\",\n        \"What we think determines what happens to us, so if we want to change our lives, we need to stretch our minds.\",\n        \"A man of ability and the desire to accomplish something can do anything.\",\n        \"For every failure, there's an alternative course of action. You just have to find it. When you come to a roadblock, take a detour.\",\n        \"No alibi will save you from accepting the responsibility.\",\n        \"Just trust yourself, then you will know how to live.\",\n        \"Opportunity often comes disguised in the form of misfortune, or temporary defeat.\",\n        \"Let go of your attachment to being right, and suddenly your mind is more open. You're able to benefit from the unique viewpoints of others, without being crippled by your own judgement.\",\n        \"Life is a learning experience, only if you learn.\",\n        \"I have an everyday religion that works for me. Love yourself first, and everything else falls into line.\",\n        \"Most of the shadows of life are caused by standing in our own sunshine.\",\n        \"Blessed is the man who expects nothing, for he shall never be disappointed.\",\n        \"You're never a loser until you quit trying.\",\n        \"If the stars should appear but one night every thousand years how man would marvel and adore.\",\n        \"The pessimist sees difficulty in every opportunity. The optimist sees the opportunity in every difficulty.\",\n        \"Your vision will become clear only when you can look into your own heart. Who looks outside, dreams; who looks inside, awakes.\",\n        \"It is not the mistake that has the most power, instead, it is learning from the mistake to advance your own attributes.\",\n        \"He who knows others is wise. He who knows himself is enlightened.\",\n        \"Six essential qualities that are the key to success: Sincerity, personal integrity, humility, courtesy, wisdom, charity.\",\n        \"Everything can be taken from a man but ... the last of the human freedoms to choose ones attitude in any given set of circumstances, to choose ones own way.\",\n        \"Dreams come true. Without that possibility, nature would not incite us to have them.\",\n        \"The first duty of a human being is to assume the right functional relationship to society more briefly, to find your real job, and do it.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"He who conquers others is strong; He who conquers himself is mighty.\",\n        \"Sometimes by losing a battle you find a new way to win the war.\",\n        \"We aim above the mark to hit the mark.\",\n        \"I'm not interested in age. People who tell me their age are silly. You're as old as you feel.\",\n        \"He who knows that enough is enough will always have enough.\",\n        \"Liberty, taking the word in its concrete sense, consists in the ability to choose.\",\n        \"Be your own hero, it's cheaper than a movie ticket.\",\n        \"Failure doesn't mean you are a failure it just means you haven't succeeded yet.\",\n        \"To study and not think is a waste. To think and not study is dangerous.\",\n        \"Minds are like parachutes. They only function when open.\",\n        \"The journey of a thousand miles begins with one step.\",\n        \"Fortune befriends the bold.\",\n        \"Peace of mind is not the absence of conflict from life, but the ability to cope with it.\",\n        \"There is no way to prosperity, prosperity is the way.\",\n        \"I'm not afraid of storms, for I'm learning how to sail my ship.\",\n        \"Give thanks for a little and you will find a lot.\",\n        \"When we feel love and kindness toward others, it not only makes others feel loved and cared for, but it helps us also to develop inner happiness and peace.\",\n        \"Every man is a volume if you know how to read him.\",\n        \"Weve got to have a dream if we are going to make a dream come true.\",\n        \"It is better to understand a little than to misunderstand a lot.\",\n        \"Spirituality can be severed from both vicious sectarianism and thoughtless banalities. Spirituality, I have come to see, is nothing less than the thoughtful love of life.\",\n        \"Many people think of prosperity that concerns money only to forget that true prosperity is of the mind.\",\n        \"Be the change that you want to see in the world.\",\n        \"They say that time changes things, but you actually have to change them yourself.\",\n        \"Correction does much, but encouragement does more.\",\n        \"Take heed: you do not find what you do not seek.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"The eye sees only what the mind is prepared to comprehend.\",\n        \"When you are offended at any man's fault, turn to yourself and study your own failings. Then you will forget your anger.\",\n        \"I never see what has been done; I only see what remains to be done.\",\n        \"The time you think you're missing, misses you too.\",\n        \"He who has imagination without learning has wings but no feet.\",\n        \"A stumble may prevent a fall.\",\n        \"Many of life's failures are people who did not realize how close they were to success when they gave up.\",\n        \"Love doesn't make the world go round, love is what makes the ride worthwhile.\",\n        \"Wherever a man may happen to turn, whatever a man may undertake, he will always end up by returning to the path which nature has marked out for him.\",\n        \"I believe that we are solely responsible for our choices, and we have to accept the consequences of every deed, word, and thought throughout our lifetime.\",\n        \"The doors we open and close each day decide the lives we live.\",\n        \"Nothing is so strong as gentleness. Nothing is so gentle as real strength.\",\n        \"To ensure good health: eat lightly, breathe deeply, live moderately, cultivate cheerfulness, and maintain an interest in life.\",\n        \"It is better to travel well than to arrive.\",\n        \"He that never changes his opinions, never corrects his mistakes, and will never be wiser on the morrow than he is today.\",\n        \"Someone is special only if you tell them.\",\n        \"All men who have achieved great things have been great dreamers.\",\n        \"I will love the light for it shows me the way, yet I will endure the darkness because it shows me the stars.\",\n        \"The highest stage in moral ure at which we can arrive is when we recognize that we ought to control our thoughts.\",\n        \"Silence is deep as Eternity, Speech is shallow as Time.\",\n        \"If you are patient in one moment of anger, you will escape one hundred days of sorrow.\",\n        \"The greatest way to live with honor in this world is to be what we pretend to be.\",\n        \"The highest stage in moral ure at which we can arrive is when we recognize that we ought to control our thoughts.\",\n        \"You have power over your mind not outside events. Realize this, and you will find strength.\",\n        \"History will be kind to me for I intend to write it.\",\n        \"Responsibility is not inherited, it is a choice that everyone needs to make at some point in their life.\",\n        \"Courage is not the absence of fear, but simply moving on with dignity despite that fear.\",\n        \"Most folks are as happy as they make up their minds to be.\",\n        \"I am not afraid of tomorrow, for I have seen yesterday and I love today.\",\n        \"The pain passes, but the beauty remains.\",\n        \"There is no need for temples, no need for complicated philosophies. My brain and my heart are my temples; my philosophy is kindness.\",\n        \"All great achievements require time.\",\n        \"Life is what happens to you while you're busy making other plans.\",\n        \"He can who thinks he can, and he can't who thinks he can't. This is an inexorable, indisputable law.\",\n        \"All our knowledge begins with the senses, proceeds then to the understanding, and ends with reason. There is nothing higher than reason.\",\n        \"To listen well is as powerful a means of communication and influence as to talk well.\",\n        \"Make it a rule of life never to regret and never to look back. Regret is an appalling waste of energy; you can't build on it; it's only for wallowing in.\",\n        \"Prosperity depends more on wanting what you have than having what you want.\",\n        \"The truest greatness lies in being kind, the truest wisdom in a happy mind.\",\n        \"It is difficult to achieve a spirit of genuine cooperation as long as people remain indifferent to the feelings and happiness of others.\",\n        \"Nothing in life is to be feared, it is only to be understood. Now is the time to understand more, so that we may fear less.\",\n        \"He that never changes his opinions, never corrects his mistakes, and will never be wiser on the morrow than he is today.\",\n        \"Without passion man is a mere latent force and possibility, like the flint which awaits the shock of the iron before it can give forth its spark.\",\n        \"We must learn our limits. We are all something, but none of us are everything.\",\n        \"Good actions give strength to ourselves and inspire good actions in others.\",\n        \"Life is a learning experience, only if you learn.\",\n        \"More often than not, anger is actually an indication of weakness rather than of strength.\",\n        \"We are shaped by our thoughts; we become what we think. When the mind is pure, joy follows like a shadow that never leaves.\",\n        \"When in doubt, tell the truth.\",\n        \"Love and compassion open our own inner life, reducing stress, distrust and loneliness.\",\n        \"When we feel love and kindness toward others, it not only makes others feel loved and cared for, but it helps us also to develop inner happiness and peace.\",\n        \"To dream of the person you would like to be is to waste the person you are.\",\n        \"No pessimist ever discovered the secrets of the stars, or sailed to an uncharted land, or opened a new heaven to the human spirit.\",\n        \"There are no failures just experiences and your reactions to them.\",\n        \"A house divided against itself cannot stand.\",\n        \"By accepting yourself and being fully what you are, your presence can make others happy.\",\n        \"The best thing about the future is that it only comes one day at a time.\",\n        \"Begin to weave and God will give you the thread.\",\n        \"Keeping a little ahead of conditions is one of the secrets of business, the trailer seldom goes far.\",\n        \"The really unhappy person is the one who leaves undone what they can do, and starts doing what they don't understand; no wonder they come to grief.\",\n        \"A man sees in the world what he carries in his heart.\",\n        \"The greatest remedy for anger is delay.\",\n        \"Never tell me the sky is the limit when there are footprints on the moon.\",\n        \"Having nothing, nothing can he lose.\",\n        \"Consider how hard it is to change yourself and you'll understand what little chance you have in trying to change others.\",\n        \"He who is contented is rich.\",\n        \"The pessimist sees difficulty in every opportunity. The optimist sees the opportunity in every difficulty.\",\n        \"If we have a positive mental attitude, then even when surrounded by hostility, we shall not lack inner peace.\",\n        \"Begin to weave and God will give you the thread.\",\n        \"Remember that sometimes not getting what you want is a wonderful stroke of luck.\",\n        \"Everything is perfect in the universe even your desire to improve it.\",\n        \"To accomplish great things, we must not only act, but also dream; not only plan, but also believe.\",\n        \"Happiness often sneaks in through a door you didn't know you left open.\",\n        \"The power of intuitive understanding will protect you from harm until the end of your days.\",\n        \"If we have a positive mental attitude, then even when surrounded by hostility, we shall not lack inner peace.\",\n        \"We must learn our limits. We are all something, but none of us are everything.\",\n        \"A lot of times people look at the negative side of what they feel they can't do. I always look on the positive side of what I can do.\",\n        \"Every person, all the events of your life are there because you have drawn them there. What you choose to do with them is up to you.\",\n        \"What is not started today is never finished tomorrow.\",\n        \"Almost everything comes from nothing.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"Nothing is softer or more flexible than water, yet nothing can resist it.\",\n        \"Put your future in good hands your own.\",\n        \"To fly as fast as thought, you must begin by knowing that you have already arrived.\",\n        \"Every time you smile at someone, it is an action of love, a gift to that person, a beautiful thing.\",\n        \"We are shaped by our thoughts; we become what we think. When the mind is pure, joy follows like a shadow that never leaves.\",\n        \"You're not obligated to win. You're obligated to keep trying to do the best you can every day.\",\n        \"Every sixty seconds you spend angry, upset or mad, is a full minute of happiness you will never get back.\",\n        \"Time is the wisest counsellor of all.\",\n        \"Most folks are about as happy as they make up their minds to be.\",\n        \"You are the only person on Earth who can use your ability.\",\n        \"Gratitude makes sense of our past, brings peace for today, and creates a vision for tomorrow.\",\n        \"It is impossible to feel grateful and depressed in the same moment.\",\n        \"With realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"Much wisdom often goes with fewer words.\",\n        \"He that never changes his opinions, never corrects his mistakes, and will never be wiser on the morrow than he is today.\",\n        \"Nothing is so strong as gentleness. Nothing is so gentle as real strength.\",\n        \"These days people seek knowledge, not wisdom. Knowledge is of the past, wisdom is of the future.\",\n        \"It is easier to live through someone else than to become complete yourself.\",\n        \"Sadness flies away on the wings of time.\",\n        \"I'm not afraid of storms, for I'm learning how to sail my ship.\",\n        \"What the caterpillar calls the end of the world, the master calls a butterfly.\",\n        \"If you break your neck, if you have nothing to eat, if your house is on fire, then you got a problem. Everything else is inconvenience.\",\n        \"I will love the light for it shows me the way, yet I will endure the darkness because it shows me the stars.\",\n        \"When you see a good person, think of becoming like him. When you see someone not so good, reflect on your own weak points.\",\n        \"The art of progress is to preserve order amid change, and to preserve change amid order.\",\n        \"Difficulties increase the nearer we get to the goal.\",\n        \"Wisdom is the supreme part of happiness.\",\n        \"Those that know, do. Those that understand, teach.\",\n        \"The heart has its reasons which reason knows not of.\",\n        \"Action is the foundational key to all success.\",\n        \"Don't think of it as failure. Think of it as time-released success.\",\n        \"He who lives in harmony with himself lives in harmony with the world.\",\n        \"My advice to you is not to inquire why or whither, but just enjoy your ice cream while its on your plate, that's my philosophy.\",\n        \"Turn your face toward the sun and the shadows will fall behind you.\",\n        \"I destroy my enemies when I make them my friends.\",\n        \"Love vanquishes time. To lovers, a moment can be eternity, eternity can be the tick of a clock.\",\n        \"In separateness lies the world's great misery, in compassion lies the world's true strength.\",\n        \"The only limit to your impact is your imagination and commitment.\",\n        \"When you discover your mission, you will feel its demand. It will fill you with enthusiasm and a burning desire to get to work on it.\",\n        \"Never put off till tomorrow what you can do today.\",\n        \"I can't imagine a person becoming a success who doesn't give this game of life everything hes got.\",\n        \"The world makes way for the man who knows where he is going.\",\n        \"The foolish man seeks happiness in the distance, the wise grows it under his feet.\",\n        \"Man is equally incapable of seeing the nothingness from which he emerges and the infinity in which he is engulfed.\",\n        \"Nothing will work unless you do.\",\n        \"We never live; we are always in the expectation of living.\",\n        \"Think as a wise man but communicate in the language of the people.\",\n        \"Great talent finds happiness in execution.\",\n        \"It is never too late to be what you might have been.\",\n        \"Though no one can go back and make a brand new start, anyone can start from now and make a brand new ending.\",\n        \"Failure will never overtake me if my determination to succeed is strong enough.\",\n        \"Open minds lead to open doors.\",\n        \"Most powerful is he who has himself in his own power.\",\n        \"A man is not where he lives but where he loves.\",\n        \"Formula for success: under promise and over deliver.\",\n        \"Every man is a volume if you know how to read him.\",\n        \"Whenever something negative happens to you, there is a deep lesson concealed within it.\",\n        \"Take heed: you do not find what you do not seek.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"Prejudice is a burden that confuses the past, threatens the future and renders the present inaccessible.\",\n        \"A successful person is one who can lay a firm foundation with the bricks that others throw at him or her.\",\n        \"The only person who never makes mistakes is the person who never does anything.\",\n        \"Although there may be tragedy in your life, there's always a possibility to triumph. It doesn't matter who you are, where you come from. The ability to triumph begins with you. Always.\",\n        \"Sometimes by losing a battle you find a new way to win the war.\",\n        \"Setting an example is not the main means of influencing another, it is the only means.\",\n        \"Most folks are about as happy as they make up their minds to be.\",\n        \"He who angers you conquers you.\",\n        \"The only way to have a friend is to be one.\",\n        \"Your work is to discover your world and then with all your heart give yourself to it.\",\n        \"The greater part of human pain is unnecessary. It is self-created as long as the unobserved mind runs your life.\",\n        \"It is one of the blessings of old friends that you can afford to be stupid with them.\",\n        \"As we risk ourselves, we grow. Each new experience is a risk.\",\n        \"Wisdom is the supreme part of happiness.\",\n        \"Strength does not come from physical capacity. It comes from an indomitable will.\",\n        \"To follow, without halt, one aim: There is the secret of success.\",\n        \"Don't fear failure so much that you refuse to try new things. The saddest summary of life contains three descriptions: could have, might have, and should have.\",\n        \"Self-trust is the first secret of success.\",\n        \"Intuition is the supra-logic that cuts out all the routine processes of thought and leaps straight from the problem to the answer.\",\n        \"Study the past, if you would divine the future.\",\n        \"One fails forward toward success.\",\n        \"A good decision is based on knowledge and not on numbers.\",\n        \"Love is not blind; it simply enables one to see things others fail to see.\",\n        \"I believe that a simple and unassuming manner of life is best for everyone, best both for the body and the mind.\",\n        \"God always takes the simplest way.\",\n        \"You teach best what you most need to learn.\",\n        \"For everything that lives is holy, life delights in life.\",\n        \"Complaining doesn't change a thing only taking action does.\",\n        \"Practice yourself, for heavens sake in little things, and then proceed to greater.\",\n        \"Never regret. If it's good, it's wonderful. If it's bad, it's experience.\",\n        \"Learn all you can from the mistakes of others. You won't have time to make them all yourself.\",\n        \"Not every difficult and dangerous thing is suitable for training, but only that which is conducive to success in achieving the object of our effort.\",\n        \"Every day may not be good, but there's something good in every day.\",\n        \"Deep listening is miraculous for both listener and speaker.When someone receives us with open-hearted, non-judging, intensely interested listening, our spirits expand.\",\n        \"He who knows that enough is enough will always have enough.\",\n        \"Correction does much, but encouragement does more.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"The greater part of human pain is unnecessary. It is self-created as long as the unobserved mind runs your life.\",\n        \"Don't think of it as failure. Think of it as time-released success.\",\n        \"I do not believe in a fate that falls on men however they act; but I do believe in a fate that falls on man unless they act.\",\n        \"A friend is someone who understands your past, believes in your future, and accepts you just the way you are.\",\n        \"What separates the winners from the losers is how a person reacts to each new twist of fate.\",\n        \"Great talent finds happiness in execution.\",\n        \"The most successful people are those who are good at plan B.\",\n        \"There is no way to happiness, happiness is the way.\",\n        \"I believe that we are solely responsible for our choices, and we have to accept the consequences of every deed, word, and thought throughout our lifetime.\",\n        \"Nature takes away any faculty that is not used.\",\n        \"An invasion of armies can be resisted, but not an idea whose time has come.\",\n        \"I've never seen a smiling face that was not beautiful.\",\n        \"He can who thinks he can, and he can't who thinks he can't. This is an inexorable, indisputable law.\",\n        \"Do not turn back when you are just at the goal.\",\n        \"Keep yourself to the sunshine and you cannot see the shadow.\",\n        \"Our virtues and our failings are inseparable, like force and matter. When they separate, man is no more.\",\n        \"The most important point is to accept yourself and stand on your two feet.\",\n        \"When your desires are strong enough you will appear to possess superhuman powers to achieve.\",\n        \"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.\",\n        \"Know that although in the eternal scheme of things you are small, you are also unique and irreplaceable, as are all your fellow humans everywhere in the world.\",\n        \"Thought is the blossom; language the bud; action the fruit behind it.\",\n        \"Happiness cannot be travelled to, owned, earned, worn or consumed. Happiness is the spiritual experience of living every minute with love, grace and gratitude.\",\n        \"I have an everyday religion that works for me. Love yourself first, and everything else falls into line.\",\n        \"Believe deep down in your heart that you're destined to do great things.\",\n        \"As an organizer I start from where the world is, as it is, not as I would like it to be.\",\n        \"Don't talk about what you have done or what you are going to do.\",\n        \"I cannot make my days longer so I strive to make them better.\",\n        \"If you light a lamp for somebody, it will also brighten your path.\",\n        \"Feeling and longing are the motive forces behind all human endeavor and human creations.\",\n        \"The minute you settle for less than you deserve, you get even less than you settled for.\",\n        \"You cannot find yourself by going into the past. You can find yourself by coming into the present.\",\n        \"A man's dreams are an index to his greatness.\",\n        \"Things that were hard to bear are sweet to remember.\",\n        \"The beginning is always today.\",\n        \"To free us from the expectations of others, to give us back to ourselves there lies the great, singular power of self-respect.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"Experience can only be gained by doing not by thinking or dreaming.\",\n        \"Take heed: you do not find what you do not seek.\",\n        \"Logic will get you from A to B. Imagination will take you everywhere.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"Strength to carry on despite the odds means you have faith in your own abilities and know how.\",\n        \"Every new day is another chance to change your life.\",\n        \"I do not believe in a fate that falls on men however they act; but I do believe in a fate that falls on man unless they act.\",\n        \"You cannot change anything in your life with intention alone, which can become a watered-down, occasional hope that you'll get to tomorrow. Intention without action is useless.\",\n        \"A single conversation across the table with a wise person is worth a months study of books.\",\n        \"You cannot be lonely if you like the person you're alone with.\",\n        \"Who sows virtue reaps honour.\",\n        \"Our intention creates our reality.\",\n        \"The greatest discovery of our generation is that human beings can alter their lives by altering their attitudes of mind. As you think, so shall you be.\",\n        \"A good rest is half the work.\",\n        \"The awareness of our own strength makes us modest.\",\n        \"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"Patience is the companion of wisdom.\",\n        \"To get the full value of joy you must have someone to divide it with.\",\n        \"Happiness does not come from having much, but from being attached to little.\",\n        \"The best way out is always through.\",\n        \"If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place.\",\n        \"Truth is powerful and it prevails.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"Happiness does not come about only due to external circumstances; it mainly derives from inner attitudes.\",\n        \"Follow your instincts. That is where true wisdom manifests itself.\",\n        \"The reasonable man adapts himself to the world; the unreasonable man persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.\",\n        \"Follow your instincts. That is where true wisdom manifests itself.\",\n        \"Knowledge is a process of piling up facts; wisdom lies in their simplification.\",\n        \"Until you value yourself, you won't value your time. Until you value your time, you won't do anything with it.\",\n        \"To be fully alive, fully human, and completely awake is to be continually thrown out of the nest.\",\n        \"At the center of your being you have the answer; you know who you are and you know what you want.\",\n        \"I can't imagine a person becoming a success who doesn't give this game of life everything hes got.\",\n        \"Yesterday I dared to struggle. Today I dare to win.\",\n        \"Our distrust is very expensive.\",\n        \"Numberless are the worlds wonders, but none more wonderful than man.\",\n        \"You can do what's reasonable or you can decide what's possible.\",\n        \"In all things of nature there is something of the marvellous.\",\n        \"When you see a man of worth, think of how you may emulate him. When you see one who is unworthy, examine yourself.\",\n        \"A short saying oft contains much wisdom.\",\n        \"Weve got to have a dream if we are going to make a dream come true.\",\n        \"This world, after all our science and sciences, is still a miracle; wonderful, inscrutable, magical and more, to whosoever will think of it.\",\n        \"Life is 10% what happens to you and 90% how you react to it.\",\n        \"Doing what you love is the cornerstone of having abundance in your life.\",\n        \"Try and fail, but don't fail to try.\",\n        \"The most successful people are those who are good at plan B.\",\n        \"Don't turn away from possible futures before you're certain you don't have anything to learn from them.\",\n        \"The moment one gives close attention to anything, even a blade of grass, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"You are important enough to ask and you are blessed enough to receive back.\",\n        \"Most folks are as happy as they make up their minds to be.\",\n        \"The personal life deeply lived always expands into truths beyond itself.\",\n        \"There are two ways to slide easily through life: to believe everything or to doubt everything; both ways save us from thinking.\",\n        \"If you kick a stone in anger, you'll hurt your own foot.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"Here is one quality that one must possess to win, and that is definiteness of purpose, the knowledge of what one wants, and a burning desire to possess it.\",\n        \"If you spend your whole life waiting for the storm, you'll never enjoy the sunshine.\",\n        \"There are two kinds of failures: those who thought and never did, and those who did and never thought.\",\n        \"Be glad of life because it gives you the chance to love, to work, to play, and to look up at the stars.\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"Take time to deliberate, but when the time for action has arrived, stop thinking and go in.\",\n        \"He is able who thinks he is able.\",\n        \"Science is organized knowledge. Wisdom is organized life.\",\n        \"To change ones life, start immediately, do it flamboyantly, no exceptions.\",\n        \"You can be what you want to be. You have the power within and we will help you always.\",\n        \"What you see depends on what you're looking for.\",\n        \"Everyone smiles in the same language.\",\n        \"When performance exceeds ambition, the overlap is called success.\",\n        \"However many holy words you read, however many you speak, what good will they do you if you do not act on upon them?\",\n        \"To keep the body in good health is a duty... otherwise we shall not be able to keep our mind strong and clear.\",\n        \"Chaos is inherent in all compounded things. Strive on with diligence.\",\n        \"The really unhappy person is the one who leaves undone what they can do, and starts doing what they don't understand; no wonder they come to grief.\",\n        \"Open minds lead to open doors.\",\n        \"You can do it if you believe you can!\",\n        \"If you break your neck, if you have nothing to eat, if your house is on fire, then you got a problem. Everything else is inconvenience.\",\n        \"It is better to have enough ideas for some of them to be wrong, than to be always right by having no ideas at all.\",\n        \"Much wisdom often goes with fewer words.\",\n        \"Love is the flower you've got to let grow.\",\n        \"Where all think alike, no one thinks very much.\",\n        \"If you spend too much time thinking about a thing, you'll never get it done.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"Mediocrity knows nothing higher than itself, but talent instantly recognizes genius.\",\n        \"He who wishes to secure the good of others, has already secured his own.\",\n        \"The best teacher is experience learned from failures.\",\n        \"Things that were hard to bear are sweet to remember.\",\n        \"I believe that we are solely responsible for our choices, and we have to accept the consequences of every deed, word, and thought throughout our lifetime.\",\n        \"Aerodynamically the bumblebee shouldn't be able to fly, but the bumblebee doesn't know that so it goes on flying anyway.\",\n        \"You give before you get.\",\n        \"The heart has its reasons which reason knows not of.\",\n        \"Be glad of life because it gives you the chance to love, to work, to play, and to look up at the stars.\",\n        \"Those who will play with cats must expect to be scratched.\",\n        \"The truth of the matter is that you always know the right thing to do. The hard part is doing it.\",\n        \"Time is the wisest counsellor of all.\",\n        \"I can't believe that God put us on this earth to be ordinary.\",\n        \"The simplest things are often the truest.\",\n        \"Be as you wish to seem.\",\n        \"Learning without reflection is a waste, reflection without learning is dangerous.\",\n        \"There is nothing so useless as doing efficiently that which should not be done at all.\",\n        \"Nothing happens unless first we dream.\",\n        \"The self is not something ready-made, but something in continuous formation through choice of action.\",\n        \"Be not angry that you cannot make others as you wish them to be, since you cannot make yourself as you wish to be.\",\n        \"Difficulties increase the nearer we get to the goal.\",\n        \"The price of greatness is responsibility.\",\n        \"In the sky, there is no distinction of east and west; people create distinctions out of their own minds and then believe them to be true.\",\n        \"If one advances confidently in the direction of his dream, and endeavours to live the life which he had imagines, he will meet with a success unexpected in common hours.\",\n        \"To avoid criticism, do nothing, say nothing, be nothing.\",\n        \"He who conquers others is strong; He who conquers himself is mighty.\",\n        \"Trust yourself. You know more than you think you do.\",\n        \"Our greatest glory is not in never failing but rising everytime we fall.\",\n        \"You must train your intuition you must trust the small voice inside you which tells you exactly what to say, what to decide.\",\n        \"The spirit, the will to win, and the will to excel, are the things that endure. These qualities are so much more important than the events that occur.\",\n        \"I have just three things to teach: simplicity, patience, compassion. These three are your greatest treasures.\",\n        \"Nothing in life is to be feared, it is only to be understood. Now is the time to understand more, so that we may fear less.\",\n        \"Take it easy but take it.\",\n        \"Whenever something negative happens to you, there is a deep lesson concealed within it.\",\n        \"He who knows others is wise. He who knows himself is enlightened.\",\n        \"The greatest discovery of our generation is that human beings can alter their lives by altering their attitudes of mind. As you think, so shall you be.\",\n        \"The future is an opaque mirror. Anyone who tries to look into it sees nothing but the dim outlines of an old and worried face.\",\n        \"If you'll not settle for anything less than your best, you will be amazed at what you can accomplish in your lives.\",\n        \"Goals are the fuel in the furnace of achievement.\",\n        \"If one way be better than another, that you may be sure is natures way.\",\n        \"The beginning is always today.\",\n        \"Iron rusts from disuse; water loses its purity from stagnation... even so does inaction sap the vigour of the mind.\",\n        \"Someone is special only if you tell them.\",\n        \"The reason most goals are not achieved is that we spend our time doing second things first.\",\n        \"Happiness does not come from having much, but from being attached to little.\",\n        \"Without passion man is a mere latent force and possibility, like the flint which awaits the shock of the iron before it can give forth its spark.\",\n        \"To be great is to be misunderstood.\",\n        \"We lost because we told ourselves we lost.\",\n        \"The only way to have a friend is to be one.\",\n        \"Neither a lofty degree of intelligence nor imagination nor both together go to the making of genius. Love, love, love, that is the soul of genius.\",\n        \"I have done my best: that is about all the philosophy of living one needs.\",\n        \"The greatest pleasure I know is to do a good action by stealth, and to have it found out by accident.\",\n        \"Arriving at one point is the starting point to another.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"The mind is everything. What you think you become.\",\n        \"Each man has his own vocation; his talent is his call. There is one direction in which all space is open to him.\",\n        \"Never regret. If it's good, it's wonderful. If it's bad, it's experience.\",\n        \"The best place to find a helping hand is at the end of your own arm.\",\n        \"Things that were hard to bear are sweet to remember.\",\n        \"You block your dream when you allow your fear to grow bigger than your faith.\",\n        \"You can be what you want to be. You have the power within and we will help you always.\",\n        \"Almost everything comes from nothing.\",\n        \"The industrial landscape is already littered with remains of once successful companies that could not adapt their strategic vision to altered conditions of competition.\",\n        \"Positive thinking will let you do everything better than negative thinking will.\",\n        \"Most of our obstacles would melt away if, instead of cowering before them, we should make up our minds to walk boldly through them.\",\n        \"If you can dream it, you can do it.\",\n        \"A prudent question is one half of wisdom.\",\n        \"When you see a good person, think of becoming like him. When you see someone not so good, reflect on your own weak points.\",\n        \"Men are disturbed not by things, but by the view which they take of them.\",\n        \"It is not in the stars to hold our destiny but in ourselves.\",\n        \"The thought manifests as the word. The word manifests as the deed. The deed develops into habit. And the habit hardens into character.\",\n        \"If you kick a stone in anger, you'll hurt your own foot.\",\n        \"To speak gratitude is courteous and pleasant, to enact gratitude is generous and noble, but to live gratitude is to touch Heaven.\",\n        \"We cannot hold a torch to light another's path without brightening our own.\",\n        \"When I dare to be powerful, to use my strength in the service of my vision, then it becomes less and less important whether I am afraid.\",\n        \"If I could reach up and hold a star for every time you've made me smile, the entire evening sky would be in the palm of my hand.\",\n        \"Don't turn away from possible futures before you're certain you don't have anything to learn from them.\",\n        \"All men who have achieved great things have been great dreamers.\",\n        \"Id rather regret the things that I have done than the things that I have not done.\",\n        \"I have never been hurt by anything I didn't say.\",\n        \"Excellence is to do a common thing in an uncommon way.\",\n        \"If one is estranged from oneself, then one is estranged from others too. If one is out of touch with oneself, then one cannot touch others.\",\n        \"I'm not afraid of storms, for I'm learning how to sail my ship.\",\n        \"Speak when you are angry and you will make the best speech you will ever regret.\",\n        \"Music in the soul can be heard by the universe.\",\n        \"All the world is a stage, And all the men and women merely players.They have their exits and entrances; Each man in his time plays many parts.\",\n        \"Almost everything comes from nothing.\",\n        \"We are the leaves of one branch, the drops of one sea, the flowers of one garden.\",\n        \"Love vanquishes time. To lovers, a moment can be eternity, eternity can be the tick of a clock.\",\n        \"When you realize there is nothing lacking, the whole world belongs to you.\",\n        \"To live a pure unselfish life, one must count nothing as ones own in the midst of abundance.\",\n        \"You got to be careful if you don't know where you're going, because you might not get there.\",\n        \"If you look into your own heart, and you find nothing wrong there, what is there to worry about? What is there to fear?\",\n        \"Better be ignorant of a matter than half know it.\",\n        \"All I can say about life is, Oh God, enjoy it!\",\n        \"Logic will get you from A to B. Imagination will take you everywhere.\",\n        \"It does not matter how slowly you go as long as you do not stop.\",\n        \"One needs something to believe in, something for which one can have whole-hearted enthusiasm. One needs to feel that ones life has meaning, that one is needed in this world.\",\n        \"When I let go of what I am, I become what I might be.\",\n        \"Autumn is a second spring when every leaf is a flower.\",\n        \"When you realize how perfect everything is you will tilt your head back and laugh at the sky.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept responsibility for changing them.\",\n        \"Let us revere, let us worship, but erect and open-eyed, the highest, not the lowest; the future, not the past!\",\n        \"I allow my intuition to lead my path.\",\n        \"Friendship with oneself is all important because without it one cannot be friends with anybody else in the world.\",\n        \"The mark of your ignorance is the depth of your belief in injustice and tragedy. What the caterpillar calls the end of the world, the Master calls the butterfly.\",\n        \"The ladder of success is never crowded at the top.\",\n        \"God has given you one face, and you make yourself another.\",\n        \"A man is great by deeds, not by birth.\",\n        \"By letting it go it all gets done. The world is won by those who let it go. But when you try and try. The world is beyond the winning.\",\n        \"The greatest obstacle to connecting with our joy is resentment.\",\n        \"If we learn to open our hearts, anyone, including the people who drive us crazy, can be our teacher.\",\n        \"He is able who thinks he is able.\",\n        \"Imagination will often carry us to worlds that never were. But without it we go nowhere.\",\n        \"The greatest good you can do for another is not just to share your riches but to reveal to him his own.\",\n        \"Society develops wit, but its contemplation alone forms genius.\",\n        \"One must be fond of people and trust them if one is not to make a mess of life.\",\n        \"We may encounter many defeats but we must not be defeated.\",\n        \"Your work is to discover your work and then with all your heart to give yourself to it.\",\n        \"Begin, be bold, and venture to be wise.\",\n        \"Giving up doesn't always mean you are weak. Sometimes it means that you are strong enough to let go.\",\n        \"The reasonable man adapts himself to the world; the unreasonable man persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.\",\n        \"Flow with whatever is happening and let your mind be free. Stay centred by accepting whatever you are doing. This is the ultimate.\",\n        \"Watch the little things; a small leak will sink a great ship.\",\n        \"What you see depends on what you're looking for.\",\n        \"It takes courage to grow up and become who you really are.\",\n        \"Every gift from a friend is a wish for your happiness.\",\n        \"Most of our obstacles would melt away if, instead of cowering before them, we should make up our minds to walk boldly through them.\",\n        \"An invasion of armies can be resisted, but not an idea whose time has come.\",\n        \"The art of progress is to preserve order amid change, and to preserve change amid order.\",\n        \"He who talks more is sooner exhausted.\",\n        \"Sometimes the cards we are dealt are not always fair. However you must keep smiling and moving on.\",\n        \"To follow, without halt, one aim: There is the secret of success.\",\n        \"Sooner or later, those who win are those who think they can.\",\n        \"Translation is the paradigm, the exemplar of all writing. It is translation that demonstrates most vividly the yearning for transformation that underlies every act involving speech, that supremely human gift.\",\n        \"By letting it go it all gets done. The world is won by those who let it go. But when you try and try. The world is beyond the winning.\",\n        \"When you don't know what you believe, everything becomes an argument. Everything is debatable. But when you stand for something, decisions are obvious.\",\n        \"If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place.\",\n        \"Always seek out the seed of triumph in every adversity.\",\n        \"I have never been hurt by anything I didn't say.\",\n        \"Things turn out best for those who make the best of the way things turn out.\",\n        \"Don't focus on making the right decision, focus on making the decision the right one.\",\n        \"Joy is the best makeup.\",\n        \"If someone in your life talked to you the way you talk to yourself, you would have left them long ago.\",\n        \"To fly as fast as thought, you must begin by knowing that you have already arrived.\",\n        \"Life's challenges are not supposed to paralyze you, they're supposed to help you discover who you are.\",\n        \"We could never learn to be brave and patient if there were only joy in the world.\",\n        \"We cannot solve our problems with the same thinking we used when we created them.\",\n        \"With realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"Choose a job you love, and you will never have to work a day in your life.\",\n        \"If you come to a fork in the road, take it.\",\n        \"Don't think of it as failure. Think of it as time-released success.\",\n        \"Everyone is a genius at least once a year. A real genius has his original ideas closer together.\",\n        \"To make no mistakes is not in the power of man; but from their errors and mistakes the wise and good learn wisdom for the future.\",\n        \"Do not go where the path may lead, go instead where there is no path and leave a trail.\",\n        \"Action will remove the doubts that theory cannot solve.\",\n        \"If one does not know to which port is sailing, no wind is favorable.\",\n        \"The foot feels the foot when it feels the ground.\",\n        \"We read the world wrong and say that it deceives us.\",\n        \"Your friends will know you better in the first minute you meet than your acquaintances will know you in a thousand years.\",\n        \"The beginning is always today.\",\n        \"No person is your friend who demands your silence, or denies your right to grow.\",\n        \"See the positive side, the potential, and make an effort.\",\n        \"Creativity comes from trust. Trust your instincts. And never hope more than you work.\",\n        \"The most formidable weapon against errors of every kind is reason.\",\n        \"Trouble is only opportunity in work clothes.\",\n        \"I am a man of fixed and unbending principles, the first of which is to be flexible at all times.\",\n        \"Edison failed 10,000 times before he made the electric light. Do not be discouraged if you fail a few times.\",\n        \"Love is never lost. If not reciprocated, it will flow back and soften and purify the heart.\",\n        \"Id rather regret the things that I have done than the things that I have not done.\",\n        \"The personal life deeply lived always expands into truths beyond itself.\",\n        \"Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful.\",\n        \"Trust yourself. You know more than you think you do.\",\n        \"Everything that irritates us about others can lead us to a better understanding of ourselves.\",\n        \"I am not bothered by the fact that I am unknown. I am bothered when I do not know others.\",\n        \"There is only one way to happiness and that is to cease worrying about things which are beyond the power of our will.\",\n        \"Through perseverance many people win success out of what seemed destined to be certain failure.\",\n        \"To be beautiful means to be yourself. You do not need to be accepted by others. You need to accept yourself.\",\n        \"You get peace of mind not by thinking about it or imagining it, but by quietening and relaxing the restless mind.\",\n        \"Imagination is more important than knowledge. For while knowledge defines all we currently know and understand, imagination points to all we might yet discover and create.\",\n        \"Enjoy the little things, for one day you may look back and realize they were the big things.\",\n        \"The dream was always running ahead of me. To catch up, to live for a moment in unison with it, that was the miracle.\",\n        \"Ask yourself the secret of your success. Listen to your answer, and practice it.\",\n        \"The first step to getting the things you want out of life is this: decide what you want.\",\n        \"Nothing is softer or more flexible than water, yet nothing can resist it.\",\n        \"Thats the risk you take if you change: that people you've been involved with won't like the new you. But other people who do will come along.\",\n        \"Successful people ask better questions, and as a result, they get better answers.\",\n        \"Know how to listen, and you will profit even from those who talk badly.\",\n        \"The foolish man seeks happiness in the distance; the wise grows it under his feet.\",\n        \"Nature gave us one tongue and two ears so we could hear twice as much as we speak.\",\n        \"All I can say about life is, Oh God, enjoy it!\",\n        \"He who wishes to secure the good of others, has already secured his own.\",\n        \"Never be afraid to try, remember... Amateurs built the ark, Professionals built the Titanic.\",\n        \"Happiness is a Swedish sunset it is there for all, but most of us look the other way and lose it.\",\n        \"Goals are the fuel in the furnace of achievement.\",\n        \"If you aren't going all the way, why go at all?\",\n        \"If only wed stop trying to be happy wed have a pretty good time.\",\n        \"Never deny a diagnosis, but do deny the negative verdict that may go with it.\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"A man is not old as long as he is seeking something.\",\n        \"Choose a job you love, and you will never have to work a day in your life.\",\n        \"Life's challenges are not supposed to paralyse you, they're supposed to help you discover who you are.\",\n        \"A man's dreams are an index to his greatness.\",\n        \"Do not follow where the path may lead. Go, instead, where there is no path and leave a trail.\",\n        \"A hero is no braver than an ordinary man, but he is braver five minutes longer.\",\n        \"Peace begins with a smile.\",\n        \"The only real failure in life is not to be true to the best one knows.\",\n        \"Reality leaves a lot to the imagination.\",\n        \"Don't be pushed by your problems; be led by your dreams.\",\n        \"The greatest remedy for anger is delay.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept responsibility for changing them.\",\n        \"To forgive is to set a prisoner free and realize that prisoner was you.\",\n        \"If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place.\",\n        \"Stay committed to your decisions, but stay flexible in your approach.\",\n        \"To be thoughtful and kind only takes a few seconds compared to the timeless hurt caused by one rude gesture.\",\n        \"Why worry about tomorrow, when today is all we have?\",\n        \"If you think you can, you can. And if you think you can't, you're right.\",\n        \"Life is what happens to you while you're busy making other plans.\",\n        \"I believe that a simple and unassuming manner of life is best for everyone, best both for the body and the mind.\",\n        \"You must welcome change as the rule but not as your ruler.\",\n        \"There surely is in human nature an inherent propensity to extract all the good out of all the evil.\",\n        \"Success is determined by those whom prove the impossible, possible.\",\n        \"There is no way to happiness, happiness is the way.\",\n        \"We could never learn to be brave and patient if there were only joy in the world.\",\n        \"Worry gives a small thing a big shadow.\",\n        \"We learn what we have said from those who listen to our speaking.\",\n        \"Never ignore a gut feeling, but never believe that it's enough.\",\n        \"Think like a man of action; act like a man of thought.\",\n        \"Meditation brings wisdom; lack of mediation leaves ignorance. Know well what leads you forward and what hold you back, and choose the path that leads to wisdom.\",\n        \"Those who cannot learn from history are doomed to repeat it.\",\n        \"Winners have simply formed the habit of doing things losers don't like to do.\",\n        \"You have enemies? Good. That means you've stood up for something, sometime in your life.\",\n        \"The more light you allow within you, the brighter the world you live in will be.\",\n        \"And as we let our own light shine, we unconsciously give other people permission to do the same.\",\n        \"A person who never made a mistake never tried anything new.\",\n        \"It is the greatest of all mistakes to do nothing because you can only do little do what you can.\",\n        \"Genius is one percent inspiration and ninety-nine percent perspiration.\",\n        \"Skill to do comes of doing.\",\n        \"Our greatness lies not so much in being able to remake the world as being able to remake ourselves.\",\n        \"The secret to a rich life is to have more beginnings than endings.\",\n        \"You have to do your own growing no matter how tall your grandfather was.\",\n        \"Always be mindful of the kindness and not the faults of others.\",\n        \"It is the mark of an educated mind to be able to entertain a thought without accepting it.\",\n        \"The art of progress is to preserve order amid change, and to preserve change amid order.\",\n        \"He who obtains has little. He who scatters has much.\",\n        \"Gratitude is riches. Complaint is poverty.\",\n        \"Time changes everything except something within us which is always surprised by change.\",\n        \"Wherever you go, go with all your heart.\",\n        \"All serious daring starts from within.\",\n        \"Genuine sincerity opens people's hearts, while manipulation causes them to close.\",\n        \"The reason most goals are not achieved is that we spend our time doing second things first.\",\n        \"Ideals are an imaginative understanding of that which is desirable in that which is possible.\",\n        \"It is through science that we prove, but through intuition that we discover.\",\n        \"How many cares one loses when one decides not to be something but to be someone.\",\n        \"Action may not always bring happiness; but there is no happiness without action.\",\n        \"Transformation does not start with some one else changing you; transformation is an inner self reworking of what you are now to what you will be.\",\n        \"There is no need for temples, no need for complicated philosophies. My brain and my heart are my temples; my philosophy is kindness.\",\n        \"Most of our obstacles would melt away if, instead of cowering before them, we should make up our minds to walk boldly through them.\",\n        \"Fear grows in darkness; if you think theres a bogeyman around, turn on the light.\",\n        \"Every human being is the author of his own health or disease.\",\n        \"Mediocrity knows nothing higher than itself, but talent instantly recognizes genius.\",\n        \"There is a way that nature speaks, that land speaks. Most of the time we are simply not patient enough, quiet enough, to pay attention to the story.\",\n        \"It is not the possession of truth, but the success which attends the seeking after it, that enriches the seeker and brings happiness to him.\",\n        \"To go against the dominant thinking of your friends, of most of the people you see every day, is perhaps the most difficult act of heroism you can perform.\",\n        \"Face your deficiencies and acknowledge them; but do not let them master you. Let them teach you patience, sweetness, insight.\",\n        \"Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love.\",\n        \"I can't change the direction of the wind, but I can adjust my sails to always reach my destination.\",\n        \"The least of things with a meaning is worth more in life than the greatest of things without it.\",\n        \"Don't turn away from possible futures before you're certain you don't have anything to learn from them.\",\n        \"Don't cry because it's over. Smile because it happened.\",\n        \"To know your purpose is to live a life of direction, and in that direction is found peace and tranquillity.\",\n        \"You can do what's reasonable or you can decide what's possible.\",\n        \"The only difference between your abilities and others is the ability to put yourself in their shoes and actually try.\",\n        \"Failure doesn't mean you are a failure it just means you haven't succeeded yet.\",\n        \"No matter how hard the past, you can always begin again.\",\n        \"Do not be too timid and squeamish about your reactions. All life is an experiment. The more experiments you make the better.\",\n        \"Happiness is when what you think, what you say, and what you do are in harmony.\",\n        \"I gave my life to become the person I am right now. Was it worth it?\",\n        \"No man was ever wise by chance.\",\n        \"If you surrender to the wind, you can ride it.\",\n        \"How wonderful that we have met with a paradox. Now we have some hope of making progress.\",\n        \"No day in which you learn something is a complete loss.\",\n        \"Change your words. Change your world.\",\n        \"Everyone thinks of changing the world, but no one thinks of changing himself.\",\n        \"When you judge another, you do not define them, you define yourself.\",\n        \"Living at risk is jumping off the cliff and building your wings on the way down.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"Enjoy the little things, for one day you may look back and realize they were the big things.\",\n        \"What is necessary to change a person is to change his awareness of himself.\",\n        \"It is the quality of our work which will please God, not the quantity.\",\n        \"Trust your hunches. They're usually based on facts filed away just below the conscious level.\",\n        \"When anger use your energy to do something productive.\",\n        \"Life is a gift, and it offers us the privilege, opportunity, and responsibility to give something back by becoming more\",\n        \"One today is worth two tomorrows.\",\n        \"If the single man plant himself indomitably on his instincts, and there abide, the huge world will come round to him.\",\n        \"The poor man is not he who is without a cent, but he who is without a dream.\",\n        \"The truth is always exciting. Speak it, then. Life is dull without it.\",\n        \"Once you choose hope, anythings possible.\",\n        \"There is one thing you have got to learn about our movement. Three people are better than no people.\",\n        \"Do not turn back when you are just at the goal.\",\n        \"If we have a positive mental attitude, then even when surrounded by hostility, we shall not lack inner peace.\",\n        \"Some people thrive on huge, dramatic change. Some people prefer the slow and steady route. Do what's right for you.\",\n        \"The world is round and the place which may seem like the end may also be the beginning.\",\n        \"There is no failure except in no longer trying.\",\n        \"You are always free to change your mind and choose a different future, or a different past.\",\n        \"The pain passes, but the beauty remains.\",\n        \"We must embrace pain and burn it as fuel for our journey.\",\n        \"Intuition is the supra-logic that cuts out all the routine processes of thought and leaps straight from the problem to the answer.\",\n        \"It is not fair to ask of others what you are unwilling to do yourself.\",\n        \"We cannot do everything at once, but we can do something at once.\",\n        \"He who has imagination without learning has wings but no feet.\",\n        \"I think and that is all that I am.\",\n        \"To follow, without halt, one aim: There is the secret of success.\",\n        \"Why compare yourself with others? No one in the entire world can do a better job of being you than you.\",\n        \"Gratitude is riches. Complaint is poverty.\",\n        \"He who has health has hope, and he who has hope has everything.\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"You can complain because roses have thorns, or you can rejoice because thorns have roses.\",\n        \"Know how to listen, and you will profit even from those who talk badly.\",\n        \"In all chaos there is a cosmos, in all disorder a secret order.\",\n        \"Winners have simply formed the habit of doing things losers don't like to do.\",\n        \"To be great is to be misunderstood.\",\n        \"Edison failed 10,000 times before he made the electric light. Do not be discouraged if you fail a few times.\",\n        \"We are shaped by our thoughts; we become what we think. When the mind is pure, joy follows like a shadow that never leaves.\",\n        \"You have to do your own growing no matter how tall your grandfather was.\",\n        \"Just as a flower, which seems beautiful has color but no perfume, so are the fruitless words of a man who speaks them but does them not.\",\n        \"Just as much as we see in others we have in ourselves.\",\n        \"Kind words can be short and easy to speak but their echoes are truly endless.\",\n        \"The thought manifests as the word. The word manifests as the deed. The deed develops into habit. And the habit hardens into character.\",\n        \"I have always thought the actions of men the best interpreters of their thoughts.\",\n        \"Nothing is softer or more flexible than water, yet nothing can resist it.\",\n        \"No matter how carefully you plan your goals they will never be more that pipe dreams unless you pursue them with gusto.\",\n        \"Discovery consists of seeing what everybody has seen and thinking what nobody else has thought.\",\n        \"No valid plans for the future can be made by those who have no capacity for living now.\",\n        \"I walk slowly, but I never walk backward.\",\n        \"You can't create in a vacuum. Life gives you the material and dreams can propel new beginnings.\",\n        \"Obstacles are those things you see when you take your eyes off the goal.\",\n        \"Divide each difficulty into as many parts as is feasible and necessary to resolve it.\",\n        \"If you surrender to the wind, you can ride it.\",\n        \"You can adopt the attitude there is nothing you can do, or you can see the challenge as your call to action.\",\n        \"Today is the tomorrow you worried about yesterday.\",\n        \"Keep yourself to the sunshine and you cannot see the shadow.\",\n        \"To hell with circumstances; I create opportunities.\",\n        \"Don't judge each day by the harvest you reap but by the seeds that you plant.\",\n        \"The least of things with a meaning is worth more in life than the greatest of things without it.\",\n        \"Everything is perfect in the universe even your desire to improve it.\",\n        \"As we are liberated from our own fear, our presence automatically liberates others.\",\n        \"We cannot direct the wind but we can adjust the sails.\",\n        \"He who lives in harmony with himself lives in harmony with the world.\",\n        \"Prejudice is a burden that confuses the past, threatens the future and renders the present inaccessible.\",\n        \"The possession of knowledge does not kill the sense of wonder and mystery. There is always more mystery.\",\n        \"I cannot always control what goes on outside. But I can always control what goes on inside.\",\n        \"One fails forward toward success.\",\n        \"If you cannot be silent be brilliant and thoughtful.\",\n        \"Act as if what you do makes a difference. It does.\",\n        \"Don't ruin the present with the ruined past.\",\n        \"Listen to what you know instead of what you fear.\",\n        \"Silence is a true friend who never betrays.\",\n        \"If you aren't going all the way, why go at all?\",\n        \"A smile is a light in the window of your face to show your heart is at home.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift. That is why we call it the present.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"It is not so important to know everything as to appreciate what we learn.\",\n        \"A thing long expected takes the form of the unexpected when at last it comes.\",\n        \"Do you want to know who you are? Don't ask. Act! Action will delineate and define you.\",\n        \"Never tell a young person that anything cannot be done. God may have been waiting centuries for someone ignorant enough of the impossible to do that very thing.\",\n        \"Be less curious about people and more curious about ideas.\",\n        \"Good advice is always certain to be ignored, but that's no reason not to give it.\",\n        \"The true way to render ourselves happy is to love our work and find in it our pleasure.\",\n        \"A failure is a man who has blundered but is not capable of cashing in on the experience.\",\n        \"Let go of your attachment to being right, and suddenly your mind is more open. You're able to benefit from the unique viewpoints of others, without being crippled by your own judgement.\",\n        \"The foot feels the foot when it feels the ground.\",\n        \"Change in all things is sweet.\",\n        \"Learning is finding out what you already know.\",\n        \"Passion creates the desire for more and action fuelled by passion creates a future.\",\n        \"Let yourself be silently drawn by the stronger pull of what you really love.\",\n        \"Notice that the stiffest tree is most easily cracked, while the bamboo or willow survives by bending with the wind.\",\n        \"Imagination rules the world.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"Don't frown because you never know who is falling in love with your smile.\",\n        \"No matter how hard the past, you can always begin again.\",\n        \"Kindness is more important than wisdom, and the recognition of this is the beginning of wisdom.\",\n        \"Make the most of yourself, for that is all there is of you.\",\n        \"Don't focus on making the right decision, focus on making the decision the right one.\",\n        \"We are what we think. All that we are arises with our thoughts. With our thoughts, we make the world.\",\n        \"Only through our connectedness to others can we really know and enhance the self. And only through working on the self can we begin to enhance our connectedness to others.\",\n        \"As we risk ourselves, we grow. Each new experience is a risk.\",\n        \"So long as a person is capable of self-renewal they are a living being.\",\n        \"Staying in one place is the best path to be taken over and surpassed by many.\",\n        \"A friend is someone who understands your past, believes in your future, and accepts you just the way you are.\",\n        \"You have enemies? Good. That means you've stood up for something, sometime in your life.\",\n        \"Talk doesn't cook rice.\",\n        \"The greatest mistake you can make in life is to be continually fearing you will make one.\",\n        \"Take rest; a field that has rested gives a bountiful crop.\",\n        \"The man who trusts men will make fewer mistakes than he who distrusts them.\",\n        \"Sometimes it is better to lose and do the right thing than to win and do the wrong thing.\",\n        \"Truth is powerful and it prevails.\",\n        \"Very little is needed to make a happy life; it is all within yourself, in your way of thinking.\",\n        \"The most important point is to accept yourself and stand on your two feet.\",\n        \"Can you imagine what I would do if I could do all I can?\",\n        \"Do not be embarrassed by your mistakes. Nothing can teach us better than our understanding of them. This is one of the best ways of self-education.\",\n        \"Spirituality can be severed from both vicious sectarianism and thoughtless banalities. Spirituality, I have come to see, is nothing less than the thoughtful love of life.\",\n        \"Do not waste yourself in rejection, nor bark against the bad, but chant the beauty of the good.\",\n        \"You can't create in a vacuum. Life gives you the material and dreams can propel new beginnings.\",\n        \"Good actions give strength to ourselves and inspire good actions in others.\",\n        \"Our distrust is very expensive.\",\n        \"The truest greatness lies in being kind, the truest wisdom in a happy mind.\",\n        \"The world turns aside to let any man pass who knows where he is going.\",\n        \"When you are content to be simply yourself and don't compare or compete, everybody will respect you.\",\n        \"As we grow as unique persons, we learn to respect the uniqueness of others.\",\n        \"Cherish your visions and your dreams as they are the children of your soul, the blueprints of your ultimate achievements.\",\n        \"Very little is needed to make a happy life; it is all within yourself, in your way of thinking.\",\n        \"If you light a lamp for somebody, it will also brighten your path.\",\n        \"Wisdom is knowing what to do next; Skill is knowing how ot do it, and Virtue is doing it.\",\n        \"Fame usually comes to those who are thinking about something else.\",\n        \"Formula for success: under promise and over deliver.\",\n        \"Keep your eyes on the stars and your feet on the ground.\",\n        \"Life's challenges are not supposed to paralyse you, they're supposed to help you discover who you are.\",\n        \"Most great people have attained their greatest success just one step beyond their greatest failure.\",\n        \"People are not lazy. They simply have impotent goals that is, goals that do not inspire them.\",\n        \"Chaos and Order are not enemies, only opposites.\",\n        \"There is not one big cosmic meaning for all, there is only the meaning we each give to our life.\",\n        \"Look forward to spring as a time when you can start to see what nature has to offer once again.\",\n        \"Our distrust is very expensive.\",\n        \"You really can change the world if you care enough.\",\n        \"Life is the flower for which love is the honey.\",\n        \"If a man does his best, what else is there?\",\n        \"Keep yourself to the sunshine and you cannot see the shadow.\",\n        \"Let yourself be silently drawn by the stronger pull of what you really love.\",\n        \"Be gentle first with yourself if you wish to be gentle with others.\",\n        \"Transformation does not start with some one else changing you; transformation is an inner self reworking of what you are now to what you will be.\",\n        \"Only do what your heart tells you.\",\n        \"Happiness is a perfume you cannot pour on others without getting a few drops on yourself.\",\n        \"Either I will find a way, or I will make one.\",\n        \"If you aren't going all the way, why go at all?\",\n        \"He can who thinks he can, and he can't who thinks he can't. This is an inexorable, indisputable law.\",\n        \"Efficiency is doing things right; effectiveness is doing the right things.\",\n        \"To dare is to lose ones footing momentarily. To not dare is to lose oneself.\",\n        \"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut.\",\n        \"Learning is finding out what you already know.\",\n        \"I prefer to be true to myself, even at the hazard of incurring the ridicule of others, rather than to be false, and to incur my own abhorrence.\",\n        \"The greatest mistake you can make in life is to be continually fearing you will make one.\",\n        \"The happiness of a man in this life does not consist in the absence but in the mastery of his passions.\",\n        \"The mind unlearns with difficulty what it has long learned.\",\n        \"If you love someone, set them free. If they come back they're yours; if they don't they never were.\",\n        \"The future is an opaque mirror. Anyone who tries to look into it sees nothing but the dim outlines of an old and worried face.\",\n        \"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.\",\n        \"Yesterdays home runs don't win today's games.\",\n        \"I never worry about action, but only inaction.\",\n        \"What is necessary to change a person is to change his awareness of himself.\",\n        \"Opportunity is missed by most because it is dressed in overalls and looks like work.\",\n        \"Judge nothing, you will be happy. Forgive everything, you will be happier. Love everything, you will be happiest.\",\n        \"Make the most of yourself, for that is all there is of you.\",\n        \"The biggest adventure you can ever take is to live the life of your dreams.\",\n        \"If you have knowledge, let others light their candles in it.\",\n        \"It is impossible for a man to learn what he thinks he already knows.\",\n        \"The purpose of learning is growth, and our minds, unlike our bodies, can continue growing as we continue to live.\",\n        \"It is the greatest of all mistakes to do nothing because you can only do little do what you can.\",\n        \"We choose our joys and sorrows long before we experience them.\",\n        \"Failure will never overtake me if my determination to succeed is strong enough.\",\n        \"I believe in one thing only, the power of human will.\",\n        \"Ignorance never settle a question.\",\n        \"Argue for your limitations, and sure enough they're yours.\",\n        \"To accomplish great things, we must not only act, but also dream; not only plan, but also believe.\",\n        \"You cannot make yourself feel something you do not feel, but you can make yourself do right in spite of your feelings.\",\n        \"We can do no great things, only small things with great love.\",\n        \"The greatest part of our happiness depends on our dispositions, not our circumstances.\",\n        \"Be the change that you want to see in the world.\",\n        \"Do not expect the world to look bright, if you habitually wear gray-brown glasses.\",\n        \"He who is fixed to a star does not change his mind.\",\n        \"Feeling and longing are the motive forces behind all human endeavor and human creations.\",\n        \"You need chaos in your soul to give birth to a dancing star.\",\n        \"The greatest discovery of our generation is that human beings can alter their lives by altering their attitudes of mind. As you think, so shall you be.\",\n        \"We never understand how little we need in this world until we know the loss of it.\",\n        \"Every man is a volume if you know how to read him.\",\n        \"He who lives in harmony with himself lives in harmony with the world.\",\n        \"Never tell me the sky is the limit when there are footprints on the moon.\",\n        \"I think somehow we learn who we really are and then live with that decision.\",\n        \"Thousands of candles can be lighted from a single candle, and the life of the candle will not be shortened. Happiness never decreases by being shared.\",\n        \"The final proof of greatness lies in being able to endure criticism without resentment.\",\n        \"The price of greatness is responsibility.\",\n        \"If facts are the seeds that later produce knowledge and wisdom, then the emotions and the impressions of the senses are the fertile soil in which the seeds must grow.\",\n        \"No one saves us but ourselves. No one can and no one may. We ourselves must walk the path.\",\n        \"You are important enough to ask and you are blessed enough to receive back.\",\n        \"To want to be what one can be is purpose in life.\",\n        \"The one who always loses, is the only person who gets the reward.\",\n        \"A bend in the road is not the end of the road...unless you fail to make the turn.\",\n        \"Feeling and longing are the motive forces behind all human endeavor and human creations.\",\n        \"Give whatever you are doing and whoever you are with the gift of your attention.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"Giving up doesn't always mean you are weak; sometimes it means that you are strong enough to let go.\",\n        \"You can't trust without risk but neither can you live in a cocoon.\",\n        \"The art of progress is to preserve order amid change, and to preserve change amid order.\",\n        \"It is not only for what we do that we are held responsible, but also for what we do not do.\",\n        \"Imagination is more important than knowledge. For while knowledge defines all we currently know and understand, imagination points to all we might yet discover and create.\",\n        \"If you come to a fork in the road, take it.\",\n        \"The thoughts we choose to think are the tools we use to paint the canvas of our lives.\",\n        \"The truth is always exciting. Speak it, then. Life is dull without it.\",\n        \"Not what we have but what we enjoy constitutes our abundance.\",\n        \"The world is but a canvas to the imagination.\",\n        \"A man is not where he lives but where he loves.\",\n        \"Don't be pushed by your problems; be led by your dreams.\",\n        \"For everything that lives is holy, life delights in life.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"Kind words can be short and easy to speak, but their echoes are truly endless.\",\n        \"Try not to become a man of success but rather try to become a man of value.\",\n        \"If you have knowledge, let others light their candles in it.\",\n        \"Successful people ask better questions, and as a result, they get better answers.\",\n        \"A man is not where he lives but where he loves.\",\n        \"Do not wait for leaders; do it alone, person to person.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"Our virtues and our failings are inseparable, like force and matter. When they separate, man is no more.\",\n        \"Something opens our wings. Something makes boredom and hurt disappear. Someone fills the cup in front of us: We taste only sacredness.\",\n        \"All the great performers I have worked with are fuelled by a personal dream.\",\n        \"Life is what happens while you are making other plans.\",\n        \"The first duty of a human being is to assume the right functional relationship to society more briefly, to find your real job, and do it.\",\n        \"Learning is a treasure that will follow its owner everywhere\",\n        \"Self-trust is the first secret of success.\",\n        \"Just as a flower, which seems beautiful has color but no perfume, so are the fruitless words of a man who speaks them but does them not.\",\n        \"Life is movement-we breathe, we eat, we walk, we move!\",\n        \"I care not so much what I am to others as what I am to myself. I will be rich by myself, and not by borrowing.\",\n        \"Yesterdays home runs don't win today's games.\",\n        \"Don't leave a stone unturned. It's always something, to know you have done the most you could.\",\n        \"If you are patient in one moment of anger, you will escape one hundred days of sorrow.\",\n        \"Remembering a wrong is like carrying a burden on the mind.\",\n        \"The foolish man seeks happiness in the distance, the wise grows it under his feet.\",\n        \"The grand essentials of happiness are: something to do, something to love, and something to hope for.\",\n        \"Let us be grateful to people who make us happy; they are the charming gardeners who make our souls blossom.\",\n        \"Whoso loves, believes the impossible.\",\n        \"A good teacher is like a candle it consumes itself to light the way for others.\",\n        \"Be glad of life because it gives you the chance to love, to work, to play, and to look up at the stars.\",\n        \"Problems are only opportunities with thorns on them.\",\n        \"People of mediocre ability sometimes achieve outstanding success because they don't know when to quit. Most men succeed because they are determined to.\",\n        \"Life is a learning experience, only if you learn.\",\n        \"If you'll not settle for anything less than your best, you will be amazed at what you can accomplish in your lives.\",\n        \"He who deliberates fully before taking a step will spend his entire life on one leg.\",\n        \"It isn't what happens to us that causes us to suffer; it's what we say to ourselves about what happens.\",\n        \"There are only two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle.\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"To see things in the seed, that is genius.\",\n        \"Fortune befriends the bold.\",\n        \"Nature takes away any faculty that is not used.\",\n        \"To be upset over what you don't have is to waste what you do have.\",\n        \"Life is so constructed that an event does not, cannot, will not, match the expectation.\",\n        \"When your desires are strong enough you will appear to possess superhuman powers to achieve.\",\n        \"Do what you can. Want what you have. Be who you are.\",\n        \"It isn't what happens to us that causes us to suffer; it's what we say to ourselves about what happens.\",\n        \"Give whatever you are doing and whoever you are with the gift of your attention.\",\n        \"An ant on the move does more than a dozing ox\",\n        \"To listen well is as powerful a means of communication and influence as to talk well.\",\n        \"The possession of knowledge does not kill the sense of wonder and mystery. There is always more mystery.\",\n        \"Kind words will unlock an iron door.\",\n        \"You cannot have what you do not want.\",\n        \"The smallest flower is a thought, a life answering to some feature of the Great Whole, of whom they have a persistent intuition.\",\n        \"Imagination disposes of everything; it creates beauty, justice, and happiness, which are everything in this world.\",\n        \"Life is a progress, and not a station.\",\n        \"Nothing is a waste of time if you use the experience wisely.\",\n        \"As long as your going to be thinking anyway, think big.\",\n        \"To forgive is to set a prisoner free and realize that prisoner was you.\",\n        \"Love doesn't make the world go round, love is what makes the ride worthwhile.\",\n        \"It all depends on how we look at things, and not how they are in themselves.\",\n        \"Let go of your attachment to being right, and suddenly your mind is more open. You're able to benefit from the unique viewpoints of others, without being crippled by your own judgement.\",\n        \"All I can say about life is, Oh God, enjoy it!\",\n        \"Trust your own instinct. Your mistakes might as well be your own, instead of someone elses.\",\n        \"The Creator has not given you a longing to do that which you have no ability to do.\",\n        \"Each day provides its own gifts.\",\n        \"Go to your bosom: Knock there, and ask your heart what it doth know.\",\n        \"Adversity causes some men to break, others to break records.\",\n        \"Self-trust is the first secret of success.\",\n        \"I don't believe in failure. It is not failure if you enjoyed the process.\",\n        \"I believe that every person is born with talent.\",\n        \"There are two ways to slide easily through life: to believe everything or to doubt everything; both ways save us from thinking.\",\n        \"Everything is perfect in the universe even your desire to improve it.\",\n        \"Bad times have a scientific value. These are occasions a good learner would not miss.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"There are only two mistakes one can make along the road to truth; not going all the way, and not starting.\",\n        \"Translation is the paradigm, the exemplar of all writing. It is translation that demonstrates most vividly the yearning for transformation that underlies every act involving speech, that supremely human gift.\",\n        \"Don't think of it as failure. Think of it as time-released success.\",\n        \"An invasion of armies can be resisted, but not an idea whose time has come.\",\n        \"We must be as courteous to a man as we are to a picture, which we are willing to give the advantage of a good light.\",\n        \"Great is the art of beginning, but greater is the art of ending.\",\n        \"Adversity causes some men to break, others to break records.\",\n        \"Before you can inspire with emotion, you must be swamped with it yourself. Before you can move their tears, your own must flow. To convince them, you must yourself believe.\",\n        \"Intuition is the very force or activity of the soul in its experience through whatever has been the experience of the soul itself.\",\n        \"Love is the flower you've got to let grow.\",\n        \"Pick battles big enough to matter, small enough to win.\",\n        \"To free us from the expectations of others, to give us back to ourselves there lies the great, singular power of self-respect.\",\n        \"From error to error one discovers the entire truth.\",\n        \"To bring anything into your life, imagine that it's already there.\",\n        \"Don't focus on making the right decision, focus on making the decision the right one.\",\n        \"The free man is he who does not fear to go to the end of his thought.\",\n        \"The only real mistake is the one from which we learn nothing.\",\n        \"Everything can be taken from a man but ... the last of the human freedoms to choose ones attitude in any given set of circumstances, to choose ones own way.\",\n        \"Be glad of life because it gives you the chance to love, to work, to play, and to look up at the stars.\",\n        \"I cannot give you the formula for success, but I can give you the formula for failure: which is: Try to please everybody.\",\n        \"Don't focus on making the right decision, focus on making the decision the right one.\",\n        \"To lead people walk behind them.\",\n        \"Beauty is not in the face; beauty is a light in the heart.\",\n        \"People are not lazy. They simply have impotent goals that is, goals that do not inspire them.\",\n        \"A single conversation across the table with a wise person is worth a months study of books.\",\n        \"All fixed set patterns are incapable of adaptability or pliability. The truth is outside of all fixed patterns.\",\n        \"The only real valuable thing is intuition.\",\n        \"He can who thinks he can, and he can't who thinks he can't. This is an inexorable, indisputable law.\",\n        \"We make our own fortunes and we call them fate.\",\n        \"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\",\n        \"Someone is special only if you tell them.\",\n        \"Time you enjoy wasting, was not wasted.\",\n        \"The universe is made of stories, not atoms.\",\n        \"Imagination rules the world.\",\n        \"Set your goals high, and don't stop till you get there.\",\n        \"Vision without action is a daydream. Action without vision is a nightmare.\",\n        \"To be wrong is nothing unless you continue to remember it.\",\n        \"I've never seen a smiling face that was not beautiful.\",\n        \"The mind is everything. What you think you become.\",\n        \"It is not in the stars to hold our destiny but in ourselves.\",\n        \"While we stop to think, we often miss our opportunity.\",\n        \"Goals are the fuel in the furnace of achievement.\",\n        \"There is nothing happens to any person but what was in his power to go through with.\",\n        \"Look back over the past, with its changing empires that rose and fell, and you can foresee the future, too.\",\n        \"With every experience, you alone are painting your own canvas, thought by thought, choice by choice.\",\n        \"The most precious gift we can offer anyone is our attention. When mindfulness embraces those we love, they will bloom like flowers.\",\n        \"Love is the only force capable of transforming an enemy into friend.\",\n        \"With the realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"If you smile when no one else is around, you really mean it.\",\n        \"You will not be punished for your anger, you will be punished by your anger.\",\n        \"I will not be concerned at other men is not knowing me;I will be concerned at my own want of ability.\",\n        \"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.\",\n        \"An invasion of armies can be resisted, but not an idea whose time has come.\",\n        \"All seasons are beautiful for the person who carries happiness within.\",\n        \"What we think determines what happens to us, so if we want to change our lives, we need to stretch our minds.\",\n        \"The dream was always running ahead of me. To catch up, to live for a moment in unison with it, that was the miracle.\",\n        \"He who obtains has little. He who scatters has much.\",\n        \"He is a wise man who does not grieve for the things which he has not, but rejoices for those which he has.\",\n        \"The secret of joy in work is contained in one word excellence. To know how to do something well is to enjoy it.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"The road leading to a goal does not separate you from the destination; it is essentially a part of it.\",\n        \"A good teacher is like a candle it consumes itself to light the way for others.\",\n        \"Inspiration exists, but it has to find us working.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"Try not to become a man of success but rather try to become a man of value.\",\n        \"Blaze with the fire that is never extinguished.\",\n        \"A goal is a dream with a deadline.\",\n        \"Courage is the discovery that you may not win, and trying when you know you can lose.\",\n        \"Our lives are the only meaningful expression of what we believe and in Whom we believe. And the only real wealth, for any of us, lies in our faith.\",\n        \"I will prepare and some day my chance will come.\",\n        \"Those who try to do something and fail are infinitely better than those who try nothing and succeed.\",\n        \"There is no way to happiness, happiness is the way.\",\n        \"Don't wait for people to be friendly. Show them how.\",\n        \"The future is completely open, and we are writing it moment to moment.\",\n        \"Everyone smiles in the same language.\",\n        \"Every adversity, every failure, every heartache carries with it the seed of an equal or greater benefit.\",\n        \"All children are artists. The problem is how to remain an artist once he grows up.\",\n        \"We must not say every mistake is a foolish one.\",\n        \"We shall never know all the good that a simple smile can do.\",\n        \"Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world.\",\n        \"Change your thoughts, change your life!\",\n        \"The thing always happens that you really believe in; and the belief in a thing makes it happen.\",\n        \"Sooner or later, those who win are those who think they can.\",\n        \"Life is change. Growth is optional. Choose wisely.\",\n        \"Love and compassion open our own inner life, reducing stress, distrust and loneliness.\",\n        \"We are not animals. We are not a product of what has happened to us in our past. We have the power of choice.\",\n        \"The universe is made of stories, not atoms.\",\n        \"Learn to listen. Opportunity could be knocking at your door very softly.\",\n        \"Great ideas often receive violent opposition from mediocre minds.\",\n        \"The only way to have a friend is to be one.\",\n        \"One that desires to excel should endeavour in those things that are in themselves most excellent.\",\n        \"All that we are is the result of what we have thought. The mind is everything. What we think we become.\",\n        \"Bad things are not the worst things that can happen to us. Nothing is the worst thing that can happen to us!\",\n        \"Friendship isn't a big thing. It's a million little things.\",\n        \"Silences make the real conversations between friends. Not the saying but the never needing to say is what counts.\",\n        \"Some people thrive on huge, dramatic change. Some people prefer the slow and steady route. Do what's right for you.\",\n        \"When in doubt, tell the truth.\",\n        \"A successful person is one who can lay a firm foundation with the bricks that others throw at him or her.\",\n        \"There surely is in human nature an inherent propensity to extract all the good out of all the evil.\",\n        \"Respect is not something that you can ask for, buy or borrow. Respect is what you earn from each person no matter their background or status.\",\n        \"Luck is what happens when preparation meets opportunity.\",\n        \"Every man takes the limits of his own field of vision for the limits of the world.\",\n        \"Each time we face a fear, we gain strength, courage, and confidence in the doing.\",\n        \"The smallest act of kindness is worth more than the grandest intention.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"Short words are best and the old words when short are best of all.\",\n        \"The thoughts we choose to think are the tools we use to paint the canvas of our lives.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"Those who try to do something and fail are infinitely better than those who try nothing and succeed.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift that's why they call it the present.\",\n        \"No yesterdays are ever wasted for those who give themselves to today.\",\n        \"A good decision is based on knowledge and not on numbers.\",\n        \"Important principles may, and must, be inflexible.\",\n        \"All achievements, all earned riches, have their beginning in an idea.\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"It's not who you are that holds you back, it's who you think you're not.\",\n        \"Experience keeps a dear school, but fools will learn in no other.\",\n        \"Be what you are. This is the first step toward becoming better than you are.\",\n        \"All action results from thought, so it is thoughts that matter.\",\n        \"Nothing is softer or more flexible than water, yet nothing can resist it.\",\n        \"Good actions give strength to ourselves and inspire good actions in others.\",\n        \"However many holy words you read, However many you speak, What good will they do you If you do not act on upon them?\",\n        \"My mama always said: life's like a box of chocolate you never know what you gonna get.\",\n        \"I hear and I forget. I see and I remember. I do and I understand.\",\n        \"Obstacles are those frightful things you see when you take your eyes off your goal.\",\n        \"If you are patient in one moment of anger, you will escape one hundred days of sorrow.\",\n        \"Change will not come if we wait for some other person or some other time. We are the ones weve been waiting for. We are the change that we seek.\",\n        \"It's important to know that words don't move mountains. Work, exacting work moves mountains.\",\n        \"Men are disturbed not by things, but by the view which they take of them.\",\n        \"You learn to speak by speaking, to study by studying, to run by running, to work by working; in just the same way, you learn to love by loving.\",\n        \"If you love life, don't waste time, for time is what life is made up of.\",\n        \"More powerful than the will to win is the courage to begin.\",\n        \"Knowledge rests not upon truth alone, but upon error also.\",\n        \"Change your words. Change your world.\",\n        \"Example has more followers than reason.\",\n        \"The shortest answer is doing.\",\n        \"When you dance, your purpose is not to get to a certain place on the floor. It's to enjoy each step along the way.\",\n        \"A lot of times people look at the negative side of what they feel they can't do. I always look on the positive side of what I can do.\",\n        \"Promises are the uniquely human way of ordering the future, making it predictable and reliable to the extent that this is humanly possible.\",\n        \"Experience is simply the name we give our mistakes.\",\n        \"All know the way; few actually walk it.\",\n        \"Our distrust is very expensive.\",\n        \"Nothing great was ever achieved without enthusiasm.\",\n        \"Never miss an opportunity to make others happy, even if you have to leave them alone in order to do it.\",\n        \"Love all, trust a few, do wrong to none.\",\n        \"What is not started today is never finished tomorrow.\",\n        \"If you do what you've always done, you'll get what youve always gotten.\",\n        \"Work out your own salvation. Do not depend on others.\",\n        \"Time is the wisest counsellor of all.\",\n        \"If a man does his best, what else is there?\",\n        \"In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time.\",\n        \"You cannot be lonely if you like the person you're alone with.\",\n        \"Our deepest wishes are whispers of our authentic selves. We must learn to respect them. We must learn to listen.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"The deepest craving of human nature is the need to be appreciated.\",\n        \"Action will remove the doubts that theory cannot solve.\",\n        \"We must become the change we want to see.\",\n        \"Talk doesn't cook rice.\",\n        \"The man who trusts men will make fewer mistakes than he who distrusts them.\",\n        \"It's not what happens to you, but how you react to it that matters.\",\n        \"Always be mindful of the kindness and not the faults of others.\",\n        \"The foolish man seeks happiness in the distance; the wise grows it under his feet.\",\n        \"Who sows virtue reaps honour.\",\n        \"He is able who thinks he is able.\",\n        \"Knowledge rests not upon truth alone, but upon error also.\",\n        \"I have just three things to teach: simplicity, patience, compassion. These three are your greatest treasures.\",\n        \"No garden is without its weeds.\",\n        \"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut.\",\n        \"If you have no respect for your own values how can you be worthy of respect from others.\",\n        \"Happiness mainly comes from our own attitude, rather than from external factors.\",\n        \"To be wrong is nothing unless you continue to remember it.\",\n        \"The years teach much which the days never know.\",\n        \"Positive thinking will let you do everything better than negative thinking will.\",\n        \"The truth of the matter is that you always know the right thing to do. The hard part is doing it.\",\n        \"Sometimes your joy is the source of your smile, but sometimes your smile can be the source of your joy.\",\n        \"Trust yourself. You know more than you think you do.\",\n        \"The simplest things are often the truest.\",\n        \"To keep the body in good health is a duty... otherwise we shall not be able to keep our mind strong and clear.\",\n        \"So is cheerfulness, or a good temper, the more it is spent, the more remains.\",\n        \"In a controversy the instant we feel anger we have already ceased striving for the truth, and have begun striving for ourselves.\",\n        \"Quality is never an accident; it is always the result of intelligent effort.\",\n        \"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\",\n        \"They can conquer who believe they can.\",\n        \"Positive thinking will let you do everything better than negative thinking will.\",\n        \"Rather than wishing for change, you first must be prepared to change.\",\n        \"We could never learn to be brave and patient if there were only joy in the world.\",\n        \"Much wisdom often goes with fewer words.\",\n        \"We are what we repeatedly do. Excellence, then, is not an act, but a habit.\",\n        \"Setting goals is the first step in turning the invisible into the visible.\",\n        \"It is more important to know where you are going than to get there quickly. Do not mistake activity for achievement.\",\n        \"People seldom notice old clothes if you wear a big smile.\",\n        \"Never tell me the sky is the limit when there are footprints on the moon.\",\n        \"Before you can inspire with emotion, you must be swamped with it yourself. Before you can move their tears, your own must flow. To convince them, you must yourself believe.\",\n        \"To be happy is to be able to become aware of oneself without fright.\",\n        \"If you spend too much time thinking about a thing, you'll never get it done.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"It is one of the blessings of old friends that you can afford to be stupid with them.\",\n        \"Don't compromise yourself. You are all you've got.\",\n        \"There are two kinds of failures: those who thought and never did, and those who did and never thought.\",\n        \"The only thing to do with good advice is to pass it on. It is never of any use to oneself.\",\n        \"Sometimes the cards we are dealt are not always fair. However you must keep smiling and moving on.\",\n        \"I have just three things to teach: simplicity, patience, compassion. These three are your greatest treasures.\",\n        \"A jug fills drop by drop.\",\n        \"We know the truth, not only by the reason, but by the heart.\",\n        \"Every action of our lives touches on some chord that will vibrate in eternity.\",\n        \"Why worry about tomorrow, when today is all we have?\",\n        \"The world is but a canvas to the imagination.\",\n        \"There is no scarcity of opportunity to make a living at what you love; theres only scarcity of resolve to make it happen.\",\n        \"Take no thought of who is right or wrong or who is better than. Be not for or against.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"Age does not protect you from love. But love, to some extent, protects you from age.\",\n        \"He is a wise man who does not grieve for the things which he has not, but rejoices for those which he has.\",\n        \"There is a way that nature speaks, that land speaks. Most of the time we are simply not patient enough, quiet enough, to pay attention to the story.\",\n        \"Genius is one percent inspiration and ninety-nine percent perspiration.\",\n        \"All is flux; nothing stays still.\",\n        \"Silence is a true friend who never betrays.\",\n        \"Sadness may be part of life but there is no need to let it dominate your entire life.\",\n        \"Before you can inspire with emotion, you must be swamped with it yourself. Before you can move their tears, your own must flow. To convince them, you must yourself believe.\",\n        \"Without courage, wisdom bears no fruit.\",\n        \"Conflict is the gadfly of thought. It stirs us to observation and memory. It instigates to invention. It shocks us out of sheeplike passivity, and sets us at noting and contriving.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"The industrial landscape is already littered with remains of once successful companies that could not adapt their strategic vision to altered conditions of competition.\",\n        \"I can't imagine a person becoming a success who doesn't give this game of life everything hes got.\",\n        \"Prosperity depends more on wanting what you have than having what you want.\",\n        \"While we try to teach our children all about life, our children teach us what life is all about.\",\n        \"Give thanks for a little and you will find a lot.\",\n        \"The least movement is of importance to all nature. The entire ocean is affected by a pebble.\",\n        \"Sometimes by losing a battle you find a new way to win the war.\",\n        \"We are not animals. We are not a product of what has happened to us in our past. We have the power of choice.\",\n        \"The secret to a rich life is to have more beginnings than endings.\",\n        \"Be a good listener. Your ears will never get you in trouble.\",\n        \"You are always free to change your mind and choose a different future, or a different past.\",\n        \"Shoot for the moon. Even if you miss, you'll land among the stars.\",\n        \"Gratitude makes sense of our past, brings peace for today, and creates a vision for tomorrow.\",\n        \"A stumble may prevent a fall.\",\n        \"We lost because we told ourselves we lost.\",\n        \"Fine words and an insinuating appearance are seldom associated with true virtue\",\n        \"Silences make the real conversations between friends. Not the saying but the never needing to say is what counts.\",\n        \"Keep true to the dreams of thy youth.\",\n        \"Love doesn't make the world go round, love is what makes the ride worthwhile.\",\n        \"Respect should be earned by actions, and not acquired by years.\",\n        \"We all have problems. The way we solve them is what makes us different.\",\n        \"He who is fixed to a star does not change his mind.\",\n        \"If I know what love is, it is because of you.\",\n        \"Live through feeling and you will live through love. For feeling is the language of the soul, and feeling is truth.\",\n        \"Neither a lofty degree of intelligence nor imagination nor both together go to the making of genius. Love, love, love, that is the soul of genius.\",\n        \"Happiness is not in the mere possession of money; it lies in the joy of achievement, in the thrill of creative effort.\",\n        \"Age does not protect you from love. But love, to some extent, protects you from age.\",\n        \"No matter how hard the past, you can always begin again.\",\n        \"When you meet someone better than yourself, turn your thoughts to becoming his equal. When you meet someone not as good as you are, look within and examine your own self.\",\n        \"Adversity has the effect of eliciting talents, which in prosperous circumstances would have lain dormant.\",\n        \"Vision without action is a daydream. Action without vision is a nightmare.\",\n        \"Saying thank you is more than good manners. It is good spirituality.\",\n        \"Life's challenges are not supposed to paralyse you, they're supposed to help you discover who you are.\",\n        \"Forgiveness does not change the past, but it does enlarge the future.\",\n        \"All the great performers I have worked with are fuelled by a personal dream.\",\n        \"The worst bankrupt in the world is the person who has lost his enthusiasm.\",\n        \"Although there may be tragedy in your life, there's always a possibility to triumph. It doesn't matter who you are, where you come from. The ability to triumph begins with you. Always.\",\n        \"Life is not measured by the breaths we take, but by the moments that take our breath.\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"Most folks are as happy as they make up their minds to be.\",\n        \"I endeavour to be wise when I cannot be merry, easy when I cannot be glad, content with what cannot be mended and patient when there is no redress.\",\n        \"An ant on the move does more than a dozing ox\",\n        \"Blessed is the person who is too busy to worry in the daytime, and too sleepy to worry at night.\",\n        \"Never, never, never give up.\",\n        \"Go for it now. The future is promised to no one.\",\n        \"Wicked people are always surprised to find ability in those that are good.\",\n        \"Who looks outside, dreams; who looks inside, awakes.\",\n        \"What do we live for, if it is not to make life less difficult for each other?\",\n        \"The day always looks brighter from behind a smile.\",\n        \"If you let go a little, you will have a little peace. If you let go a lot, you will have a lot of peace.\",\n        \"You can never cross the ocean unless you have the courage to lose sight of the shore.\",\n        \"Nothing could be worse than the fear that one had given up too soon, and left one unexpended effort that might have saved the world.\",\n        \"When you doubt your power, you give power to your doubt.\",\n        \"Do, or do not. There is no try.\",\n        \"Reason and free inquiry are the only effectual agents against error.\",\n        \"Only through our connectedness to others can we really know and enhance the self. And only through working on the self can we begin to enhance our connectedness to others.\",\n        \"If you have no respect for your own values how can you be worthy of respect from others.\",\n        \"When you arise in the morning, think of what a precious privilege it is to be alive to breathe, to think, to enjoy, to love.\",\n        \"Do not turn back when you are just at the goal.\",\n        \"Do something wonderful, people may imitate it.\",\n        \"I find hope in the darkest of days, and focus in the brightest. I do not judge the universe.\",\n        \"Aerodynamically the bumblebee shouldn't be able to fly, but the bumblebee doesn't know that so it goes on flying anyway.\",\n        \"An ant on the move does more than a dozing ox\",\n        \"Life is change. Growth is optional. Choose wisely.\",\n        \"Always be mindful of the kindness and not the faults of others.\",\n        \"The amount of happiness that you have depends on the amount of freedom you have in your heart.\",\n        \"Those who try to do something and fail are infinitely better than those who try nothing and succeed.\",\n        \"Without passion man is a mere latent force and possibility, like the flint which awaits the shock of the iron before it can give forth its spark.\",\n        \"If you smile when no one else is around, you really mean it.\",\n        \"Make it a rule of life never to regret and never to look back. Regret is an appalling waste of energy; you can't build on it; it's only for wallowing in.\",\n        \"You are special, you are unique, you are the best!\",\n        \"The free man is he who does not fear to go to the end of his thought.\",\n        \"The most formidable weapon against errors of every kind is reason.\",\n        \"Love all, trust a few, do wrong to none.\",\n        \"Live through feeling and you will live through love. For feeling is the language of the soul, and feeling is truth.\",\n        \"Nothing will work unless you do.\",\n        \"Prejudice is a burden that confuses the past, threatens the future and renders the present inaccessible.\",\n        \"Just as much as we see in others we have in ourselves.\",\n        \"The world cares very little about what a man or woman knows; it is what a man or woman is able to do that counts.\",\n        \"A prudent question is one half of wisdom.\",\n        \"By believing passionately in something that does not yet exist, we create it.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift that's why they call it the present.\",\n        \"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\",\n        \"The superior man is satisfied and composed; the mean man is always full of distress.\",\n        \"A friend is someone who understands your past, believes in your future, and accepts you just the way you are.\",\n        \"I never see what has been done; I only see what remains to be done.\",\n        \"The beginning is always today.\",\n        \"Life is the flower for which love is the honey.\",\n        \"Be here now. Be someplace else later. Is that so complicated?\",\n        \"We never understand how little we need in this world until we know the loss of it.\",\n        \"What lies behind us and what lies before us are small matters compared to what lies within us.\",\n        \"The difficulties of life are intended to make us better, not bitter.\",\n        \"Successful people ask better questions, and as a result, they get better answers.\",\n        \"No one has a finer command of language than the person who keeps his mouth shut.\",\n        \"Imagination is more important than knowledge. For while knowledge defines all we currently know and understand, imagination points to all we might yet discover and create.\",\n        \"Open minds lead to open doors.\",\n        \"It is not the possession of truth, but the success which attends the seeking after it, that enriches the seeker and brings happiness to him.\",\n        \"When one door of happiness closes, another opens; but often we look so long at the closed door that we do not see the one which has been opened for us.\",\n        \"Gratitude makes sense of our past, brings peace for today, and creates a vision for tomorrow.\",\n        \"Be as you wish to seem.\",\n        \"Just as a flower, which seems beautiful has color but no perfume, so are the fruitless words of a man who speaks them but does them not.\",\n        \"Write your plans in pencil and give God the eraser.\",\n        \"To give ones self earnestly to the duties due to men, and, while respecting spiritual beings, to keep aloof from them, may be called wisdom.\",\n        \"Do not go where the path may lead, go instead where there is no path and leave a trail.\",\n        \"When you realize how perfect everything is you will tilt your head back and laugh at the sky.\",\n        \"No act of kindness, no matter how small, is ever wasted.\",\n        \"Through pride we are ever deceiving ourselves. But deep down below the surface of the average conscience a still, small voice says to us, Something is out of tune.\",\n        \"To choose what is difficult all ones days, as if it were easy, that is faith.\",\n        \"And as we let our own light shine, we unconsciously give other people permission to do the same.\",\n        \"If you would take, you must first give, this is the beginning of intelligence.\",\n        \"What is not started today is never finished tomorrow.\",\n        \"Talk doesn't cook rice.\",\n        \"An optimist is a person who sees a green light everywhere, while the pessimist sees only the red spotlight... The truly wise person is colour-blind.\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"Constant kindness can accomplish much. As the sun makes ice melt, kindness causes misunderstanding, mistrust, and hostility to evaporate.\",\n        \"Always seek out the seed of triumph in every adversity.\",\n        \"The way is not in the sky. The way is in the heart.\",\n        \"It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something.\",\n        \"Silence is a true friend who never betrays.\",\n        \"If you have no respect for your own values how can you be worthy of respect from others.\",\n        \"There is not one big cosmic meaning for all, there is only the meaning we each give to our life.\",\n        \"However many holy words you read, However many you speak, What good will they do you If you do not act on upon them?\",\n        \"A subtle thought that is in error may yet give rise to fruitful inquiry that can establish truths of great value.\",\n        \"Either I will find a way, or I will make one.\",\n        \"I love my past. I love my present. I'm not ashamed of what Ive had, and I'm not sad because I have it no longer.\",\n        \"Friendship isn't a big thing. It's a million little things.\",\n        \"It isn't what happens to us that causes us to suffer; it's what we say to ourselves about what happens.\",\n        \"It is better to travel well than to arrive.\",\n        \"Here is one quality that one must possess to win, and that is definiteness of purpose, the knowledge of what one wants, and a burning desire to possess it.\",\n        \"Reality leaves a lot to the imagination.\",\n        \"He who has imagination without learning has wings but no feet.\",\n        \"It does not matter how slowly you go as long as you do not stop.\",\n        \"We shall never know all the good that a simple smile can do.\",\n        \"Mediocrity knows nothing higher than itself, but talent instantly recognizes genius.\",\n        \"Minds are like parachutes. They only function when open.\",\n        \"If you light a lamp for somebody, it will also brighten your path.\",\n        \"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.\",\n        \"All fixed set patterns are incapable of adaptability or pliability. The truth is outside of all fixed patterns.\",\n        \"Life is what happens to you while you're busy making other plans.\",\n        \"It is through science that we prove, but through intuition that we discover.\",\n        \"The odds of hitting your target go up dramatically when you aim at it.\",\n        \"A life spent making mistakes is not only more honourable but more useful than a life spent in doing nothing.\",\n        \"You get peace of mind not by thinking about it or imagining it, but by quietening and relaxing the restless mind.\",\n        \"Opportunity is missed by most because it is dressed in overalls and looks like work.\",\n        \"When you dance, your purpose is not to get to a certain place on the floor. It's to enjoy each step along the way.\",\n        \"To dare is to lose ones footing momentarily. To not dare is to lose oneself.\",\n        \"To free us from the expectations of others, to give us back to ourselves there lies the great, singular power of self-respect.\",\n        \"Meditation brings wisdom; lack of mediation leaves ignorance. Know well what leads you forward and what hold you back, and choose the path that leads to wisdom.\",\n        \"A lot of times people look at the negative side of what they feel they can't do. I always look on the positive side of what I can do.\",\n        \"A goal without a plan is just a wish.\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"You were not born a winner, and you were not born a loser. You are what you make yourself be.\",\n        \"By accepting yourself and being fully what you are, your presence can make others happy.\",\n        \"Decision is a risk rooted in the courage of being free.\",\n        \"Imagination is not a talent of some men but is the health of every man.\",\n        \"Sadness may be part of life but there is no need to let it dominate your entire life.\",\n        \"To change ones life, start immediately, do it flamboyantly, no exceptions.\",\n        \"Any of us can achieve virtue, if by virtue we merely mean the avoidance of the vices that do not attract us.\",\n        \"He who knows others is wise. He who knows himself is enlightened.\",\n        \"It is in your moments of decision that your destiny is shaped.\",\n        \"Experience is simply the name we give our mistakes.\",\n        \"The key to growth is the introduction of higher dimensions of consciousness into our awareness.\",\n        \"The path to success is to take massive, determined action.\",\n        \"Ability is what you're capable of doing. Motivation determines what you do.Attitude determines how well you do it.\",\n        \"Wit lies in recognizing the resemblance among things which differ and the difference between things which are alike.\",\n        \"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.\",\n        \"Our intention creates our reality.\",\n        \"Whenever something negative happens to you, there is a deep lesson concealed within it.\",\n        \"Our deepest wishes are whispers of our authentic selves. We must learn to respect them. We must learn to listen.\",\n        \"What we see is mainly what we look for.\",\n        \"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.\",\n        \"Work while you have the light. You are responsible for the talent that has been entrusted to you.\",\n        \"The happiness that is genuinely satisfying is accompanied by the fullest exercise of our faculties and the fullest realization of the world in which we live.\",\n        \"A life spent making mistakes is not only more honourable, but more useful than a life spent doing nothing.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"Remembering a wrong is like carrying a burden on the mind.\",\n        \"I begin with an idea and then it becomes something else.\",\n        \"We can do no great things, only small things with great love.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"In seed time learn, in harvest teach, in winter enjoy.\",\n        \"It is in your moments of decision that your destiny is shaped.\",\n        \"There are no failures just experiences and your reactions to them.\",\n        \"We all have problems. The way we solve them is what makes us different.\",\n        \"The least movement is of importance to all nature. The entire ocean is affected by a pebble.\",\n        \"It has never been my object to record my dreams, just to realize them.\",\n        \"Learning is a treasure that will follow its owner everywhere\",\n        \"Sometimes your joy is the source of your smile, but sometimes your smile can be the source of your joy.\",\n        \"There is one thing you have got to learn about our movement. Three people are better than no people.\",\n        \"Sometimes our fate resembles a fruit tree in winter. Who would think that those branches would turn green again and blossom, but we hope it, we know it.\",\n        \"Yesterdays home runs don't win today's games.\",\n        \"It isn't where you come from, it's where you're going that counts.\",\n        \"Don't wait. The time will never be just right.\",\n        \"The key to growth is the introduction of higher dimensions of consciousness into our awareness.\",\n        \"Respect is not something that you can ask for, buy or borrow. Respect is what you earn from each person no matter their background or status.\",\n        \"Keep yourself to the sunshine and you cannot see the shadow.\",\n        \"If you come to a fork in the road, take it.\",\n        \"As an organizer I start from where the world is, as it is, not as I would like it to be.\",\n        \"I allow my intuition to lead my path.\",\n        \"It is only possible to live happily ever after on a day to day basis.\",\n        \"The first step to getting the things you want out of life is this: decide what you want.\",\n        \"If I am not for myself, who will be for me? If I am not for others, what am I? And if not now, when?\",\n        \"To understand the heart and mind of a person, look not at what he has already achieved, but at what he aspires to do.\",\n        \"Formula for success: under promise and over deliver.\",\n        \"Fears are nothing more than a state of mind.\",\n        \"Happiness is as a butterfly which, when pursued, is always beyond our grasp, but which if you will sit down quietly, may alight upon you.\",\n        \"If it is not right do not do it; if it is not true do not say it.\",\n        \"Most powerful is he who has himself in his own power.\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"Those that know, do. Those that understand, teach.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity\",\n        \"Take it easy but take it.\",\n        \"Responsibility is not inherited, it is a choice that everyone needs to make at some point in their life.\",\n        \"Know that although in the eternal scheme of things you are small, you are also unique and irreplaceable, as are all your fellow humans everywhere in the world.\",\n        \"Wisdom begins in wonder.\",\n        \"Doing nothing is better than being busy doing nothing.\",\n        \"Character cannot be developed in ease and quiet. Only through experience of trial and suffering can the soul be strengthened, vision cleared, ambition inspired, and success achieved.\",\n        \"Do good by stealth, and blush to find it fame.\",\n        \"Lots of people want to ride with you in the limo, but what you want is someone who will take the bus with you when the limo breaks down.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"If you smile when no one else is around, you really mean it.\",\n        \"Ask yourself the secret of your success. Listen to your answer, and practice it.\",\n        \"The greatest part of our happiness depends on our dispositions, not our circumstances.\",\n        \"To live a pure unselfish life, one must count nothing as ones own in the midst of abundance.\",\n        \"Being in humaneness is good. If we select other goodness and thus are far apart from humaneness, how can we be the wise?\",\n        \"Never regret. If it's good, it's wonderful. If it's bad, it's experience.\",\n        \"Keep your eyes on the stars and your feet on the ground.\",\n        \"The man who trusts men will make fewer mistakes than he who distrusts them.\",\n        \"And as we let our own light shine, we unconsciously give other people permission to do the same.\",\n        \"When people are like each other they tend to like each other.\",\n        \"We are what we repeatedly do. Excellence, then, is not an act, but a habit.\",\n        \"They must often change, who would be constant in happiness or wisdom.\",\n        \"Anybody can make history. Only a great man can write it.\",\n        \"If facts are the seeds that later produce knowledge and wisdom, then the emotions and the impressions of the senses are the fertile soil in which the seeds must grow.\",\n        \"Wit lies in recognizing the resemblance among things which differ and the difference between things which are alike.\",\n        \"Wherever a man turns he can find someone who needs him.\",\n        \"Each man has his own vocation; his talent is his call. There is one direction in which all space is open to him.\",\n        \"The foot feels the foot when it feels the ground.\",\n        \"A thing long expected takes the form of the unexpected when at last it comes.\",\n        \"Three things in human life are important. The first is to be kind. The second is to be kind. The third is to be kind.\",\n        \"We could never learn to be brave and patient if there were only joy in the world.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"Money was never a big motivation for me, except as a way to keep score. The real excitement is playing the game.\",\n        \"Life is a succession of lessons, which must be lived to be understood.\",\n        \"You can be what you want to be. You have the power within and we will help you always.\",\n        \"There is a way that nature speaks, that land speaks. Most of the time we are simply not patient enough, quiet enough, to pay attention to the story.\",\n        \"The height of your accomplishments will equal the depth of your convictions.\",\n        \"It is better to take many small steps in the right direction than to make a great leap forward only to stumble backward.\",\n        \"Never bend your head. Always hold it high. Look the world right in the eye.\",\n        \"To be wrong is nothing unless you continue to remember it.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"Genuine sincerity opens people's hearts, while manipulation causes them to close.\",\n        \"Silence is a true friend who never betrays.\",\n        \"One secret of success in life is for a man to be ready for his opportunity when it comes.\",\n        \"Through perseverance many people win success out of what seemed destined to be certain failure.\",\n        \"If you love life, don't waste time, for time is what life is made up of.\",\n        \"Imagination is the living power and prime agent of all human perception.\",\n        \"We are either progressing or retrograding all the while. There is no such thing as remaining stationary in this life.\",\n        \"Never apologize for showing feelings. When you do so, you apologize for the truth.\",\n        \"Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment.\",\n        \"No one has a finer command of language than the person who keeps his mouth shut.\",\n        \"Once you choose hope, anythings possible.\",\n        \"Decision is a risk rooted in the courage of being free.\",\n        \"Silence is the true friend that never betrays.\",\n        \"Most folks are as happy as they make up their minds to be.\",\n        \"Worry often gives a small thing a big shadow.\",\n        \"Kindness is more important than wisdom, and the recognition of this is the beginning of wisdom.\",\n        \"Kindness is the language which the deaf can hear and the blind can see.\",\n        \"As the rest of the world is walking out the door, your best friends are the ones walking in.\",\n        \"A house divided against itself cannot stand.\",\n        \"We cannot change our memories, but we can change their meaning and the power they have over us.\",\n        \"I would maintain that thanks are the highest form of thought, and that gratitude is happiness doubled by wonder.\",\n        \"If it is not right do not do it; if it is not true do not say it.\",\n        \"To be fully alive, fully human, and completely awake is to be continually thrown out of the nest.\",\n        \"Bite off more than you can chew, then chew it.\",\n        \"In three words I can sum up everything Ive learned about life: it goes on.\",\n        \"A good plan today is better than a perfect plan tomorrow.\",\n        \"Know, first, who you are, and then adorn yourself accordingly.\",\n        \"Change will not come if we wait for some other person or some other time. We are the ones weve been waiting for. We are the change that we seek.\",\n        \"Silence is the true friend that never betrays.\",\n        \"To be wronged is nothing unless you continue to remember it.\",\n        \"The amount of happiness that you have depends on the amount of freedom you have in your heart.\",\n        \"They can conquer who believe they can.\",\n        \"By believing passionately in something that does not yet exist, we create it.\",\n        \"If you let go a little, you will have a little peace. If you let go a lot, you will have a lot of peace.\",\n        \"Aim for success, not perfection. Never give up your right to be wrong, because then you will lose the ability to learn new things and move forward with your life.\",\n        \"Go put your creed into the deed. Nor speak with double tongue.\",\n        \"Turn your face toward the sun and the shadows will fall behind you.\",\n        \"Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful.\",\n        \"The greatest discovery of our generation is that human beings can alter their lives by altering their attitudes of mind. As you think, so shall you be.\",\n        \"The greater part of human pain is unnecessary. It is self-created as long as the unobserved mind runs your life.\",\n        \"Weve got to have a dream if we are going to make a dream come true.\",\n        \"The place to improve the world is first in one's own heart and head and hands.\",\n        \"From wonder into wonder existence opens.\",\n        \"Not every difficult and dangerous thing is suitable for training, but only that which is conducive to success in achieving the object of our effort.\",\n        \"By living deeply in the present moment we can understand the past better and we can prepare for a better future.\",\n        \"Take time to deliberate, but when the time for action has arrived, stop thinking and go in.\",\n        \"People are not lazy. They simply have impotent goals that is, goals that do not inspire them.\",\n        \"Our ability to achieve happiness and success depends on the strength of our wings.\",\n        \"Don't be dismayed by good-byes. A farewell is necessary before you can meet again. And meeting again, after moments or lifetimes, is certain for those who are friends.\",\n        \"In skating over thin ice our safety is in our speed.\",\n        \"Ask yourself the secret of your success. Listen to your answer, and practice it.\",\n        \"If one is lucky, a solitary fantasy can totally transform one million realities.\",\n        \"The best way to predict your future is to create it.\",\n        \"Only when we are no longer afraid do we begin to live.\",\n        \"Shoot for the moon. Even if you miss, you'll land among the stars.\",\n        \"The world has the habit of making room for the man whose actions show that he knows where he is going.\",\n        \"Nothing great was ever achieved without enthusiasm.\",\n        \"Change is the law of life. And those who look only to the past or present are certain to miss the future.\",\n        \"Never tell a young person that anything cannot be done. God may have been waiting centuries for someone ignorant enough of the impossible to do that very thing.\",\n        \"Anticipate the difficult by managing the easy.\",\n        \"The truth of the matter is that you always know the right thing to do. The hard part is doing it.\",\n        \"Opportunity is missed by most because it is dressed in overalls and looks like work.\",\n        \"Those who try to do something and fail are infinitely better than those who try nothing and succeed.\",\n        \"It is not fair to ask of others what you are unwilling to do yourself.\",\n        \"Deep listening is miraculous for both listener and speaker.When someone receives us with open-hearted, non-judging, intensely interested listening, our spirits expand.\",\n        \"All is flux; nothing stays still.\",\n        \"Can you imagine what I would do if I could do all I can?\",\n        \"When people are like each other they tend to like each other.\",\n        \"Belief consists in accepting the affirmations of the soul; Unbelief, in denying them.\",\n        \"I can't imagine a person becoming a success who doesn't give this game of life everything hes got.\",\n        \"Don't be pushed by your problems; be led by your dreams.\",\n        \"One faces the future with ones past.\",\n        \"The power of intuitive understanding will protect you from harm until the end of your days.\",\n        \"Happiness comes when your work and words are of benefit to yourself and others.\",\n        \"Love vanquishes time. To lovers, a moment can be eternity, eternity can be the tick of a clock.\",\n        \"Character is like a tree and reputation like a shadow. The shadow is what we think of it; the tree is the real thing.\",\n        \"If you don't like something, change it. If you can't change it, change your attitude.\",\n        \"All our knowledge has its origins in our perceptions.\",\n        \"One today is worth two tomorrows.\",\n        \"To accomplish great things, we must dream as well as act.\",\n        \"You can never cross the ocean unless you have the courage to lose sight of the shore.\",\n        \"Before you can inspire with emotion, you must be swamped with it yourself. Before you can move their tears, your own must flow. To convince them, you must yourself believe.\",\n        \"As we grow as unique persons, we learn to respect the uniqueness of others.\",\n        \"We cannot solve our problems with the same thinking we used when we created them.\",\n        \"Miracles come in moments. Be ready and willing.\",\n        \"An invincible determination can accomplish almost anything and in this lies the great distinction between great men and little men.\",\n        \"All our knowledge begins with the senses, proceeds then to the understanding, and ends with reason. There is nothing higher than reason.\",\n        \"To forgive is to set a prisoner free and realize that prisoner was you.\",\n        \"If you want a thing done well, do it yourself.\",\n        \"Your attitude, not your aptitude, will determine your altitude.\",\n        \"Make the best use of what is in your power, and take the rest as it happens.\",\n        \"A man may fulfil the object of his existence by asking a question he cannot answer, and attempting a task he cannot achieve.\",\n        \"I am always doing that which I cannot do, in order that I may learn how to do it.\",\n        \"Chaos is inherent in all compounded things. Strive on with diligence.\",\n        \"Remember that failure is an event, not a person.\",\n        \"There is only one happiness in life, to love and be loved.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"Truth isn't all about what actually happens but more about how what has happened is interpreted.\",\n        \"It's not what happens to you, but how you react to it that matters.\",\n        \"To fly as fast as thought, you must begin by knowing that you have already arrived.\",\n        \"Take it easy but take it.\",\n        \"The possession of knowledge does not kill the sense of wonder and mystery. There is always more mystery.\",\n        \"Let your hook always be cast; in the pool where you least expect it, there will be a fish.\",\n        \"Try not to become a man of success but rather try to become a man of value.\",\n        \"Time stays long enough for anyone who will use it.\",\n        \"Life's challenges are not supposed to paralyse you, they're supposed to help you discover who you are.\",\n        \"A subtle thought that is in error may yet give rise to fruitful inquiry that can establish truths of great value.\",\n        \"Change will not come if we wait for some other person or some other time. We are the ones weve been waiting for. We are the change that we seek.\",\n        \"A man may fulfil the object of his existence by asking a question he cannot answer, and attempting a task he cannot achieve.\",\n        \"We must embrace pain and burn it as fuel for our journey.\",\n        \"To speak gratitude is courteous and pleasant, to enact gratitude is generous and noble, but to live gratitude is to touch Heaven.\",\n        \"All our knowledge begins with the senses, proceeds then to the understanding, and ends with reason. There is nothing higher than reason.\",\n        \"All our knowledge has its origins in our perceptions.\",\n        \"Blessed is the man who expects nothing, for he shall never be disappointed.\",\n        \"Take things as they are. Punch when you have to punch. Kick when you have to kick.\",\n        \"To accomplish great things, we must not only act, but also dream; not only plan, but also believe.\",\n        \"It is not only for what we do that we are held responsible, but also for what we do not do.\",\n        \"Beware of missing chances; otherwise it may be altogether too late some day.\",\n        \"You need chaos in your soul to give birth to a dancing star.\",\n        \"Patience is a virtue but you will never ever accomplish anything if you don't exercise action over patience.\",\n        \"To succeed, we must first believe that we can.\",\n        \"You have to do your own growing no matter how tall your grandfather was.\",\n        \"Leaders aren't born they are made. And they are made just like anything else, through hard work. And that's the price well have to pay to achieve that goal, or any goal.\",\n        \"No man can succeed in a line of endeavor which he does not like.\",\n        \"Moral excellence comes about as a result of habit. We become just by doing just acts, temperate by doing temperate acts, brave by doing brave acts.\",\n        \"The most dangerous way to lose time is not to spend it having fun, but to spend it doing fake work. When you spend time having fun, you know you're being self-indulgent.\",\n        \"A dream is your creative vision for your life in the future. You must break out of your current comfort zone and become comfortable with the unfamiliar and the unknown.\",\n        \"You block your dream when you allow your fear to grow bigger than your faith.\",\n        \"Only those who dare to fail greatly can ever achieve greatly.\",\n        \"Don't wait for your feelings to change to take the action. Take the action and your feelings will change.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"All our talents increase in the using, and the every faculty, both good and bad, strengthen by exercise.\",\n        \"Your destiny isn't just fate; it is how you use your own developed abilities to get what you want.\",\n        \"Sometimes the biggest act of courage is a small one.\",\n        \"We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.\",\n        \"When the solution is simple, God is answering.\",\n        \"Nothing is predestined: The obstacles of your past can become the gateways that lead to new beginnings.\",\n        \"It is easier to live through someone else than to become complete yourself.\",\n        \"Smile, breathe, and go slowly.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"If you smile when no one else is around, you really mean it.\",\n        \"I don't believe in failure. It's not failure if you enjoyed the process.\",\n        \"One who is too insistent on his own views, finds few to agree with him.\",\n        \"If you focus on results, you will never change. If you focus on change, you will get results.\",\n        \"Love and compassion open our own inner life, reducing stress, distrust and loneliness.\",\n        \"Learning is finding out what you already know.\",\n        \"You are never given a wish without also being given the power to make it come true. You may have to work for it, however.\",\n        \"Judge nothing, you will be happy. Forgive everything, you will be happier. Love everything, you will be happiest.\",\n        \"The highest stage in moral ure at which we can arrive is when we recognize that we ought to control our thoughts.\",\n        \"Love and compassion open our own inner life, reducing stress, distrust and loneliness.\",\n        \"True happiness means forging a strong spirit that is undefeated, no matter how trying our circumstances.\",\n        \"As we are liberated from our own fear, our presence automatically liberates others.\",\n        \"Don't wait for your feelings to change to take the action. Take the action and your feelings will change.\",\n        \"Life is what you make of it. Always has been, always will be.\",\n        \"We must not allow ourselves to become like the system we oppose.\",\n        \"Everyone can taste success when the going is easy, but few know how to taste victory when times get tough.\",\n        \"The Creator has not given you a longing to do that which you have no ability to do.\",\n        \"Iron rusts from disuse; water loses its purity from stagnation... even so does inaction sap the vigour of the mind.\",\n        \"If you aren't going all the way, why go at all?\",\n        \"A little more persistence, a little more effort, and what seemed hopeless failure may turn to glorious success.\",\n        \"Trusting our intuition often saves us from disaster.\",\n        \"Time stays long enough for anyone who will use it.\",\n        \"You can't create in a vacuum. Life gives you the material and dreams can propel new beginnings.\",\n        \"You got to be careful if you don't know where you're going, because you might not get there.\",\n        \"You can never cross the ocean unless you have the courage to lose sight of the shore.\",\n        \"He is a wise man who does not grieve for the things which he has not, but rejoices for those which he has.\",\n        \"It is only possible to live happily ever after on a day to day basis.\",\n        \"You really can change the world if you care enough.\",\n        \"The best thing in every noble dream is the dreamer...\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"Happiness does not come from having much, but from being attached to little.\",\n        \"The true way to render ourselves happy is to love our work and find in it our pleasure.\",\n        \"Love all, trust a few, do wrong to none.\",\n        \"Happiness comes when your work and words are of benefit to yourself and others.\",\n        \"Freedom is not worth having if it does not connote freedom to err.\",\n        \"Our lives are a sum total of the choices we have made.\",\n        \"Cherish your visions and your dreams as they are the children of your soul, the blueprints of your ultimate achievements.\",\n        \"To listen well is as powerful a means of communication and influence as to talk well.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"All perceiving is also thinking, all reasoning is also intuition, all observation is also invention.\",\n        \"Time changes everything except something within us which is always surprised by change.\",\n        \"There is no way to happiness, happiness is the way.\",\n        \"Truth, and goodness, and beauty are but different faces of the same all.\",\n        \"Character cannot be developed in ease and quiet. Only through experience of trial and suffering can the soul be strengthened, vision cleared, ambition inspired, and success achieved.\",\n        \"Progress always involves risks. You can't steal second base and keep your foot on first.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity.\",\n        \"What do we live for, if it is not to make life less difficult for each other?\",\n        \"The path to success is to take massive, determined action.\",\n        \"Here is one quality that one must possess to win, and that is definiteness of purpose, the knowledge of what one wants, and a burning desire to possess it.\",\n        \"If you spend too much time thinking about a thing, you'll never get it done.\",\n        \"Ideals are an imaginative understanding of that which is desirable in that which is possible.\",\n        \"Life is not measured by the breaths you take, but by its breathtaking moments.\",\n        \"We have committed the Golden Rule to memory; let us now commit it to life.\",\n        \"Were here for a reason. I believe a bit of the reason is to throw little torches out to lead people through the dark.\",\n        \"Try not to become a man of success, but rather try to become a man of value.\",\n        \"My advice to you is not to inquire why or whither, but just enjoy your ice cream while its on your plate, that's my philosophy.\",\n        \"Can miles truly separate you from friends... If you want to be with someone you love, aren't you already there?\",\n        \"True silence is the rest of the mind; it is to the spirit what sleep is to the body, nourishment and refreshment.\",\n        \"You got to be careful if you don't know where you're going, because you might not get there.\",\n        \"In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time.\",\n        \"The greatest way to live with honour in this world is to be what we pretend to be.\",\n        \"Don't look back. Something might be gaining on you.\",\n        \"Excellence is not a skill. It is an attitude.\",\n        \"I do not believe in a fate that falls on men however they act; but I do believe in a fate that falls on man unless they act.\",\n        \"Your mind will answer most questions if you learn to relax and wait for the answer.\",\n        \"Responsibility is not inherited, it is a choice that everyone needs to make at some point in their life.\",\n        \"What you fear is that which requires action to overcome.\",\n        \"Your sacred space is where you can find yourself again and again.\",\n        \"I cannot always control what goes on outside. But I can always control what goes on inside.\",\n        \"To give ones self earnestly to the duties due to men, and, while respecting spiritual beings, to keep aloof from them, may be called wisdom.\",\n        \"A gem cannot be polished without friction, nor a man perfected without trials.\",\n        \"You are always free to change your mind and choose a different future, or a different past.\",\n        \"I allow my intuition to lead my path.\",\n        \"Let yourself be silently drawn by the stronger pull of what you really love.\",\n        \"I am of the opinion that my life belongs to the community, and as long as I live it is my privilege to do for it whatever I can.\",\n        \"Your vision will become clear only when you look into your heart. Who looks outside, dreams. Who looks inside, awakens.\",\n        \"Great acts are made up of small deeds.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"Never bend your head. Always hold it high. Look the world right in the eye.\",\n        \"The weak can never forgive. Forgiveness is the attribute of the strong.\",\n        \"For everything that lives is holy, life delights in life.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"Happiness is not something ready made. It comes from your own actions.\",\n        \"All great achievements require time.\",\n        \"Your outlook on life is a direct reflection on how much you like yourself.\",\n        \"First comes thought; then organization of that thought, into ideas and plans; then transformation of those plans into reality. The beginning, as you will observe, is in your imagination.\",\n        \"Focusing your life solely on making a buck shows a poverty of ambition. It asks too little of yourself. And it will leave you unfulfilled.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"Life is really simple, but we insist on making it complicated.\",\n        \"The best cure for the body is a quiet mind.\",\n        \"I don't believe in failure. It's not failure if you enjoyed the process.\",\n        \"Let us revere, let us worship, but erect and open-eyed, the highest, not the lowest; the future, not the past!\",\n        \"Blaze with the fire that is never extinguished.\",\n        \"Whoso loves, believes the impossible.\",\n        \"If your actions inspire others to dream more, learn more, do more and become more, you are a leader.\",\n        \"When you meet someone better than yourself, turn your thoughts to becoming his equal. When you meet someone not as good as you are, look within and examine your own self.\",\n        \"One may say the eternal mystery of the world is its comprehensibility.\",\n        \"Keeping a little ahead of conditions is one of the secrets of business, the trailer seldom goes far.\",\n        \"Once we accept our limits, we go beyond them.\",\n        \"Let us be grateful to people who make us happy; they are the charming gardeners who make our souls blossom.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"Life is the flower for which love is the honey.\",\n        \"All children are artists. The problem is how to remain an artist once he grows up.\",\n        \"There is only one happiness in life, to love and be loved.\",\n        \"Genius is one percent inspiration and ninety-nine percent perspiration.\",\n        \"The person born with a talent they are meant to use will find their greatest happiness in using it.\",\n        \"Everything is perfect in the universe even your desire to improve it.\",\n        \"Time you enjoy wasting, was not wasted.\",\n        \"Belief consists in accepting the affirmations of the soul; Unbelief, in denying them.\",\n        \"What we see is mainly what we look for.\",\n        \"The cause is hidden. The effect is visible to all.\",\n        \"Almost everything comes from nothing.\",\n        \"A man's dreams are an index to his greatness.\",\n        \"Begin at once to live and count each separate day as a separate life.\",\n        \"A life spent making mistakes is not only more honourable but more useful than a life spent in doing nothing.\",\n        \"He is a wise man who does not grieve for the things which he has not, but rejoices for those which he has.\",\n        \"The day is already blessed, find peace within it.\",\n        \"The eye sees only what the mind is prepared to comprehend.\",\n        \"If you accept the expectations of others, especially negative ones, then you never will change the outcome.\",\n        \"The least movement is of importance to all nature. The entire ocean is affected by a pebble.\",\n        \"Growth itself contains the germ of happiness.\",\n        \"The poor man is not he who is without a cent, but he who is without a dream.\",\n        \"Those that know, do. Those that understand, teach.\",\n        \"Each day provides its own gifts.\",\n        \"There are no failures. Just experiences and your reactions to them.\",\n        \"Our passion is our strength.\",\n        \"When you learn, teach. When you get, give.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"You can stand tall without standing on someone. You can be a victor without having victims.\",\n        \"Numberless are the worlds wonders, but none more wonderful than man.\",\n        \"It is impossible for a man to learn what he thinks he already knows.\",\n        \"Very little is needed to make a happy life; it is all within yourself, in your way of thinking.\",\n        \"There is one thing you have got to learn about our movement. Three people are better than no people.\",\n        \"The years teach much which the days never know.\",\n        \"Forgiveness does not change the past, but it does enlarge the future.\",\n        \"To keep the body in good health is a duty... otherwise we shall not be able to keep our mind strong and clear.\",\n        \"Be a good listener. Your ears will never get you in trouble.\",\n        \"All the world is a stage, And all the men and women merely players.They have their exits and entrances; Each man in his time plays many parts.\",\n        \"All perceiving is also thinking, all reasoning is also intuition, all observation is also invention.\",\n        \"No matter how carefully you plan your goals they will never be more that pipe dreams unless you pursue them with gusto.\",\n        \"The weak can never forgive. Forgiveness is the attribute of the strong.\",\n        \"All things change; nothing perishes.\",\n        \"To accomplish great things, we must dream as well as act.\",\n        \"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.\",\n        \"Speak low, if you speak love.\",\n        \"Better to have loved and lost, than to have never loved at all.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"Patience is the companion of wisdom.\",\n        \"Intuition is the supra-logic that cuts out all the routine processes of thought and leaps straight from the problem to the answer.\",\n        \"This world, after all our science and sciences, is still a miracle; wonderful, inscrutable, magical and more, to whosoever will think of it.\",\n        \"You can't choose up sides on a round world.\",\n        \"Knowledge is a process of piling up facts; wisdom lies in their simplification.\",\n        \"Time stays long enough for anyone who will use it.\",\n        \"Neither genius, fame, nor love show the greatness of the soul. Only kindness can do that.\",\n        \"The truest greatness lies in being kind, the truest wisdom in a happy mind.\",\n        \"I never worry about action, but only inaction.\",\n        \"Life shrinks or expands in proportion to one's courage.\",\n        \"The most beautiful things in the world cannot be seen or even touched. They must be felt with the heart.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"Think like a man of action; act like a man of thought.\",\n        \"Life shrinks or expands in proportion to one's courage.\",\n        \"The two most powerful warriors are patience and time.\",\n        \"All serious daring starts from within.\",\n        \"It is never too late to be what you might have been.\",\n        \"It isn't what happens to us that causes us to suffer; it's what we say to ourselves about what happens.\",\n        \"Face your deficiencies and acknowledge them; but do not let them master you. Let them teach you patience, sweetness, insight.\",\n        \"Love is the only force capable of transforming an enemy into friend.\",\n        \"Take no thought of who is right or wrong or who is better than. Be not for or against.\",\n        \"What is a weed? A plant whose virtues have not yet been discovered.\",\n        \"I can't imagine a person becoming a success who doesn't give this game of life everything hes got.\",\n        \"Iron rusts from disuse; water loses its purity from stagnation... even so does inaction sap the vigour of the mind.\",\n        \"When you learn, teach. When you get, give.\",\n        \"Think how hard physics would be if particles could think.\",\n        \"Stay away from what might have been and look at what will be.\",\n        \"By going beyond your own problems and taking care of others, you gain inner strength, self-confidence, courage, and a greater sense of calm.\",\n        \"Society develops wit, but its contemplation alone forms genius.\",\n        \"To give hope to someone occurs when you teach them how to use the tools to do it for themselves.\",\n        \"He who wishes to secure the good of others, has already secured his own.\",\n        \"Loss is nothing else but change,and change is Natures delight.\",\n        \"Give me six hours to chop down a tree and I will spend the first four sharpening the axe.\",\n        \"Nature gave us one tongue and two ears so we could hear twice as much as we speak.\",\n        \"Most folks are as happy as they make up their minds to be.\",\n        \"Don't compromise yourself. You are all you've got.\",\n        \"First comes thought; then organization of that thought, into ideas and plans; then transformation of those plans into reality. The beginning, as you will observe, is in your imagination.\",\n        \"To give ones self earnestly to the duties due to men, and, while respecting spiritual beings, to keep aloof from them, may be called wisdom.\",\n        \"He who experiences the unity of life sees his own Self in all beings, and all beings in his own Self, and looks on everything with an impartial eye.\",\n        \"The best way to pay for a lovely moment is to enjoy it.\",\n        \"More powerful than the will to win is the courage to begin.\",\n        \"The possession of knowledge does not kill the sense of wonder and mystery. There is always more mystery.\",\n        \"Neither genius, fame, nor love show the greatness of the soul. Only kindness can do that.\",\n        \"We lost because we told ourselves we lost.\",\n        \"The smallest act of kindness is worth more than the grandest intention.\",\n        \"We all live with the objective of being happy; our lives are all different and yet the same.\",\n        \"The moment one gives close attention to anything, even a blade of grass, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"Every artist dips his brush in his own soul, and paints his own nature into his pictures.\",\n        \"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it.\",\n        \"Do not expect the world to look bright, if you habitually wear gray-brown glasses.\",\n        \"Be not afraid of greatness: some are born great, some achieve greatness, and some have greatness thrust upon them.\",\n        \"Important principles may, and must, be inflexible.\",\n        \"Trust only movement. Life happens at the level of events, not of words. Trust movement.\",\n        \"No snowflake in an avalanche ever feels responsible.\",\n        \"If you want things to be different, perhaps the answer is to become different yourself.\",\n        \"He who lives in harmony with himself lives in harmony with the universe.\",\n        \"Can miles truly separate you from friends... If you want to be with someone you love, aren't you already there?\",\n        \"Keep silence for the most part, and speak only when you must, and then briefly.\",\n        \"I am glad that I paid so little attention to good advice; had I abided by it I might have been saved from some of my most valuable mistakes.\",\n        \"Thats the risk you take if you change: that people you've been involved with won't like the new you. But other people who do will come along.\",\n        \"The future is completely open, and we are writing it moment to moment.\",\n        \"It is on our failures that we base a new and different and better success.\",\n        \"Money was never a big motivation for me, except as a way to keep score. The real excitement is playing the game.\",\n        \"Never bend your head. Always hold it high. Look the world right in the eye.\",\n        \"Loss is nothing else but change,and change is Natures delight.\",\n        \"Life is the flower for which love is the honey.\",\n        \"I cannot say whether things will get better if we change; what I can say is they must change if they are to get better.\",\n        \"To be happy is to be able to become aware of oneself without fright.\",\n        \"Short words are best and the old words when short are best of all.\",\n        \"Limitations live only in our minds. But if we use our imaginations, our possibilities become limitless.\",\n        \"Sometimes it is better to lose and do the right thing than to win and do the wrong thing.\",\n        \"The path to success is to take massive, determined action.\",\n        \"A man is not where he lives but where he loves.\",\n        \"Nothing is so strong as gentleness. Nothing is so gentle as real strength.\",\n        \"If the single man plant himself indomitably on his instincts, and there abide, the huge world will come round to him.\",\n        \"In the long run we get no more than we have been willing to risk giving.\",\n        \"Life is so constructed that an event does not, cannot, will not, match the expectation.\",\n        \"When you see a man of worth, think of how you may emulate him. When you see one who is unworthy, examine yourself.\",\n        \"Do what you can. Want what you have. Be who you are.\",\n        \"Obstacles are those frightful things you see when you take your eyes off your goal.\",\n        \"Whenever you have eliminated the impossible, whatever remains, however improbable, must be the truth.\",\n        \"It is not so important to know everything as to appreciate what we learn.\",\n        \"Belief consists in accepting the affirmations of the soul; Unbelief, in denying them.\",\n        \"Kindness is the language which the deaf can hear and the blind can see.\",\n        \"There are two kinds of failures: those who thought and never did, and those who did and never thought.\",\n        \"There are two ways to slide easily through life: to believe everything or to doubt everything; both ways save us from thinking.\",\n        \"A man is great by deeds, not by birth.\",\n        \"Never mistake activity for achievement.\",\n        \"If you don't know where you are going, you will probably end up somewhere else.\",\n        \"Some people think it's holding that makes one strong sometimes it's letting go.\",\n        \"If a man does his best, what else is there?\",\n        \"To free us from the expectations of others, to give us back to ourselves there lies the great, singular power of self-respect.\",\n        \"You will not be punished for your anger, you will be punished by your anger.\",\n        \"Open minds lead to open doors.\",\n        \"To dare is to lose ones footing momentarily. To not dare is to lose oneself.\",\n        \"If you wish to be a writer, write.\",\n        \"The trouble with most people is that they think with their hopes or fears or wishes rather than with their minds.\",\n        \"Three things cannot be long hidden: the sun, the moon, and the truth.\",\n        \"My reputation grows with every failure.\",\n        \"Consider how hard it is to change yourself and you'll understand what little chance you have in trying to change others.\",\n        \"Respect is not something that you can ask for, buy or borrow. Respect is what you earn from each person no matter their background or status.\",\n        \"I endeavour to be wise when I cannot be merry, easy when I cannot be glad, content with what cannot be mended and patient when there is no redress.\",\n        \"Transformation does not start with some one else changing you; transformation is an inner self reworking of what you are now to what you will be.\",\n        \"The superior man is modest in his speech, but exceeds in his actions.\",\n        \"Everything has beauty, but not everyone sees it.\",\n        \"Nothing in life is to be feared. It is only to be understood.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"To be upset over what you don't have is to waste what you do have.\",\n        \"There never was a good knife made of bad steel.\",\n        \"It is with words as with sunbeams. The more they are condensed, the deeper they burn.\",\n        \"Knowing your own darkness is the best method for dealing with the darknesses of other people.\",\n        \"Shoot for the moon. Even if you miss, you'll land among the stars.\",\n        \"Kind words can be short and easy to speak but their echoes are truly endless.\",\n        \"Reality is merely an illusion, albeit a very persistent one.\",\n        \"The best way out is always through.\",\n        \"It takes courage to grow up and become who you really are.\",\n        \"I never worry about action, but only inaction.\",\n        \"It's not who you are that holds you back, it's who you think you're not.\",\n        \"Love is the master key that opens the gates of happiness.\",\n        \"If the shoe doesn't fit, must we change the foot?\",\n        \"Creativity comes from trust. Trust your instincts. And never hope more than you work.\",\n        \"People seldom notice old clothes if you wear a big smile.\",\n        \"You have to do your own growing no matter how tall your grandfather was.\",\n        \"If facts are the seeds that later produce knowledge and wisdom, then the emotions and the impressions of the senses are the fertile soil in which the seeds must grow.\",\n        \"We are all faced with a series of great opportunities brilliantly disguised as impossible situations.\",\n        \"We cannot solve our problems with the same thinking we used when we created them.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"The right way is not always the popular and easy way. Standing for right when it is unpopular is a true test of moral character.\",\n        \"While we try to teach our children all about life, our children teach us what life is all about.\",\n        \"Example has more followers than reason.\",\n        \"The more light you allow within you, the brighter the world you live in will be.\",\n        \"Wise men talk because they have something to say; fools, because they have to say something.\",\n        \"Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.\",\n        \"Knowing your own darkness is the best method for dealing with the darknesses of other people.\",\n        \"Give it all you've got because you never know if there's going to be a next time.\",\n        \"Remember always that you not only have the right to be an individual, you have an obligation to be one.\",\n        \"Silence is the true friend that never betrays.\",\n        \"Neither genius, fame, nor love show the greatness of the soul. Only kindness can do that.\",\n        \"Love and compassion open our own inner life, reducing stress, distrust and loneliness.\",\n        \"Science is organized knowledge. Wisdom is organized life.\",\n        \"Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment.\",\n        \"To be what we are, and to become what we are capable of becoming, is the only end of life.\",\n        \"A subtle thought that is in error may yet give rise to fruitful inquiry that can establish truths of great value.\",\n        \"Time you enjoyed wasting was not wasted.\",\n        \"To ensure good health: eat lightly, breathe deeply, live moderately, cultivate cheerfulness, and maintain an interest in life.\",\n        \"The most beautiful things in the world cannot be seen or even touched. They must be felt with the heart.\",\n        \"The day always looks brighter from behind a smile.\",\n        \"Goals are the fuel in the furnace of achievement.\",\n        \"The mind is everything. What you think you become.\",\n        \"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.\",\n        \"The free man is he who does not fear to go to the end of his thought.\",\n        \"Friendship with oneself is all important because without it one cannot be friends with anybody else in the world.\",\n        \"Through pride we are ever deceiving ourselves. But deep down below the surface of the average conscience a still, small voice says to us, Something is out of tune.\",\n        \"The only way to tell the truth is to speak with kindness. Only the words of a loving man can be heard.\",\n        \"We choose our joys and sorrows long before we experience them.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"What we see is mainly what we look for.\",\n        \"You will never be happy if you continue to search for what happiness consists of. You will never live if you are looking for the meaning of life.\",\n        \"If you surrender to the wind, you can ride it.\",\n        \"Obstacles are those things you see when you take your eyes off the goal.\",\n        \"The greatest obstacle to connecting with our joy is resentment.\",\n        \"In order to live free and happily you must sacrifice boredom. It is not always an easy sacrifice.\",\n        \"There are no failures. Just experiences and your reactions to them.\",\n        \"Never apologize for showing feeling. When you do so, you apologize for truth.\",\n        \"It is the greatest of all mistakes to do nothing because you can only do little do what you can.\",\n        \"A lot of times people look at the negative side of what they feel they can't do. I always look on the positive side of what I can do.\",\n        \"You can do what's reasonable or you can decide what's possible.\",\n        \"Genius is one percent inspiration and ninety-nine percent perspiration.\",\n        \"When you come to the end of your rope, tie a knot and hang on.\",\n        \"Ideas are the beginning points of all fortunes.\",\n        \"No pessimist ever discovered the secrets of the stars, or sailed to an uncharted land, or opened a new heaven to the human spirit.\",\n        \"If we could see the miracle of a single flower clearly, our whole life would change.\",\n        \"Never mistake activity for achievement.\",\n        \"When I let go of what I am, I become what I might be.\",\n        \"Music in the soul can be heard by the universe.\",\n        \"Sadness flies away on the wings of time.\",\n        \"When you lose, don't lose the lesson.\",\n        \"This world, after all our science and sciences, is still a miracle; wonderful, inscrutable, magical and more, to whosoever will think of it.\",\n        \"Nothing is so strong as gentleness. Nothing is so gentle as real strength.\",\n        \"Courage is the discovery that you may not win, and trying when you know you can lose.\",\n        \"A short saying often contains much wisdom.\",\n        \"Respect is not something that you can ask for, buy or borrow. Respect is what you earn from each person no matter their background or status.\",\n        \"Our intention creates our reality.\",\n        \"If only wed stop trying to be happy wed have a pretty good time.\",\n        \"They can conquer who believe they can.\",\n        \"Opportunity often comes disguised in the form of misfortune, or temporary defeat.\",\n        \"Rather than wishing for change, you first must be prepared to change.\",\n        \"The superior man is modest in his speech, but exceeds in his actions.\",\n        \"If you seek truth you will not seek victory by dishonourable means, and if you find truth you will become invincible.\",\n        \"Nothing is a waste of time if you use the experience wisely.\",\n        \"The moment one gives close attention to anything, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"Without this playing with fantasy no creative work has ever yet come to birth. The debt we owe to the play of the imagination is incalculable.\",\n        \"Don't ruin the present with the ruined past.\",\n        \"Ignorant men don't know what good they hold in their hands until they've flung it away.\",\n        \"You don't drown by falling in water. You drown by staying there.\",\n        \"Arriving at one point is the starting point to another.\",\n        \"Sometimes by losing a battle you find a new way to win the war.\",\n        \"Most of the shadows of life are caused by standing in our own sunshine.\",\n        \"Never let lack of money interfere with having fun.\",\n        \"To choose what is difficult all ones days, as if it were easy, that is faith.\",\n        \"Do more than dream: work.\",\n        \"Everything you can imagine is real.\",\n        \"Much wisdom often goes with fewer words.\",\n        \"Every man is a volume if you know how to read him.\",\n        \"Worry often gives a small thing a big shadow.\",\n        \"You get peace of mind not by thinking about it or imagining it, but by quietening and relaxing the restless mind.\",\n        \"To climb steep hills requires a slow pace at first.\",\n        \"Victory belongs to the most persevering.\",\n        \"To accomplish great things, we must not only act, but also dream; not only plan, but also believe.\",\n        \"The real measure of your wealth is how much youd be worth if you lost all your money.\",\n        \"All I can say about life is, Oh God, enjoy it!\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"Each time we face a fear, we gain strength, courage, and confidence in the doing.\",\n        \"The price of greatness is responsibility.\",\n        \"We are all faced with a series of great opportunities brilliantly disguised as impossible situations.\",\n        \"Everyone thinks of changing the world, but no one thinks of changing himself.\",\n        \"It's important to know that words don't move mountains. Work, exacting work moves mountains.\",\n        \"It is not enough to have a good mind; the main thing is to use it well.\",\n        \"History will be kind to me for I intend to write it.\",\n        \"To know your purpose is to live a life of direction, and in that direction is found peace and tranquillity.\",\n        \"To be thoughtful and kind only takes a few seconds compared to the timeless hurt caused by one rude gesture.\",\n        \"Liberty, taking the word in its concrete sense, consists in the ability to choose.\",\n        \"Decision is a risk rooted in the courage of being free.\",\n        \"Living at risk is jumping off the cliff and building your wings on the way down.\",\n        \"We must be as courteous to a man as we are to a picture, which we are willing to give the advantage of a good light.\",\n        \"Thats the risk you take if you change: that people you've been involved with won't like the new you. But other people who do will come along.\",\n        \"Know that although in the eternal scheme of things you are small, you are also unique and irreplaceable, as are all your fellow humans everywhere in the world.\",\n        \"The conditions of conquest are always easy. We have but to toil awhile, endure awhile, believe always, and never turn back.\",\n        \"We are shaped by our thoughts; we become what we think. When the mind is pure, joy follows like a shadow that never leaves.\",\n        \"Give whatever you are doing and whoever you are with the gift of your attention.\",\n        \"The more you care, the stronger you can be.\",\n        \"I can't imagine a person becoming a success who doesn't give this game of life everything hes got.\",\n        \"Id rather regret the things that I have done than the things that I have not done.\",\n        \"Criticism is something you can easily avoid by saying nothing, doing nothing, and being nothing.\",\n        \"All serious daring starts from within.\",\n        \"If you are going to achieve excellence in big things, you develop the habit in little matters. Excellence is not an exception, it is a prevailing attitude.\",\n        \"Every artist dips his brush in his own soul, and paints his own nature into his pictures.\",\n        \"Keeping a little ahead of conditions is one of the secrets of business, the trailer seldom goes far.\",\n        \"The only limit to our realization of tomorrow will be our doubts of today.\",\n        \"Appreciation can make a day, even change a life. Your willingness to put it into words is all that is necessary.\",\n        \"Watch the little things; a small leak will sink a great ship.\",\n        \"If you correct your mind, the rest of your life will fall into place.\",\n        \"May our hearts garden of awakening bloom with hundreds of flowers.\",\n        \"We read the world wrong and say that it deceives us.\",\n        \"The steeper the mountain the harder the climb the better the view from the finishing line\",\n        \"Gratitude is riches. Complaint is poverty.\",\n        \"A day of worry is more exhausting than a day of work.\",\n        \"Life is what you make of it. Always has been, always will be.\",\n        \"Our greatness lies not so much in being able to remake the world as being able to remake ourselves.\",\n        \"The most precious gift we can offer anyone is our attention. When mindfulness embraces those we love, they will bloom like flowers.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift. That is why we call it the present.\",\n        \"Light tomorrow with today!\",\n        \"Your vision will become clear only when you look into your heart. Who looks outside, dreams. Who looks inside, awakens.\",\n        \"The world is a book, and those who do not travel read only a page.\",\n        \"I never think of the future. It comes soon enough.\",\n        \"Each man has his own vocation; his talent is his call. There is one direction in which all space is open to him.\",\n        \"The wisest men follow their own direction.\",\n        \"The only person who never makes mistakes is the person who never does anything.\",\n        \"Many of life's failures are people who did not realize how close they were to success when they gave up.\",\n        \"The best way out is always through.\",\n        \"The best way to predict your future is to create it.\",\n        \"To listen well is as powerful a means of communication and influence as to talk well.\",\n        \"Fortune favours the brave.\",\n        \"He who has imagination without learning has wings but no feet.\",\n        \"I'm not interested in age. People who tell me their age are silly. You're as old as you feel.\",\n        \"To get the full value of joy you must have someone to divide it with.\",\n        \"Thousands of candles can be lit from a single, and the life of the candle will not be shortened. Happiness never decreases by being shared.\",\n        \"Don't let today's disappointments cast a shadow on tomorrow's dreams.\",\n        \"What we see depends mainly on what we look for.\",\n        \"It takes both sunshine and rain to make a rainbow.\",\n        \"He is able who thinks he is able.\",\n        \"If you accept the expectations of others, especially negative ones, then you never will change the outcome.\",\n        \"No act of kindness, no matter how small, is ever wasted.\",\n        \"He who has imagination without learning has wings but no feet.\",\n        \"Everything that exists is in a manner the seed of that which will be.\",\n        \"In the end we retain from our studies only that which we practically apply.\",\n        \"Promises are the uniquely human way of ordering the future, making it predictable and reliable to the extent that this is humanly possible.\",\n        \"In the end we retain from our studies only that which we practically apply.\",\n        \"The greatest way to live with honour in this world is to be what we pretend to be.\",\n        \"Action may not always bring happiness, but there is no happiness without action.\",\n        \"The heart has eyes which the brain knows nothing of.\",\n        \"Trust your hunches. They're usually based on facts filed away just below the conscious level.\",\n        \"Every day may not be good, but there's something good in every day.\",\n        \"Life is what happens to you while you're busy making other plans.\",\n        \"The moment one gives close attention to anything, even a blade of grass, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"The moment one gives close attention to anything, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"Vision without action is a daydream. Action without vision is a nightmare.\",\n        \"A lot of people give up just before theyre about to make it. You know you never know when that next obstacle is going to be the last one.\",\n        \"Strong people make as many mistakes as weak people. Difference is that strong people admit their mistakes, laugh at them, learn from them. That is how they become strong.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"Strong people make as many mistakes as weak people. Difference is that strong people admit their mistakes, laugh at them, learn from them. That is how they become strong.\",\n        \"Ignorance never settle a question.\",\n        \"Moments of complete apathy are the best for new creations.\",\n        \"We cannot solve our problems with the same thinking we used when we created them.\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"When you learn, teach. When you get, give.\",\n        \"The thoughts we choose to think are the tools we use to paint the canvas of our lives.\",\n        \"Life shrinks or expands in proportion to one's courage.\",\n        \"We must never forget that it is through our actions, words, and thoughts that we have a choice.\",\n        \"I don't believe in failure. It is not failure if you enjoyed the process.\",\n        \"Those that know, do. Those that understand, teach.\",\n        \"Let go of your attachment to being right, and suddenly your mind is more open. You're able to benefit from the unique viewpoints of others, without being crippled by your own judgement.\",\n        \"Loss is nothing else but change,and change is Natures delight.\",\n        \"If you wish to be a writer, write.\",\n        \"Character develops itself in the stream of life.\",\n        \"Without faith, nothing is possible. With it, nothing is impossible.\",\n        \"You will not be punished for your anger, you will be punished by your anger.\",\n        \"See the positive side, the potential, and make an effort.\",\n        \"You have to believe in yourself.\",\n        \"Adversity causes some men to break, others to break records.\",\n        \"Discovery consists of seeing what everybody has seen and thinking what nobody else has thought.\",\n        \"Excellence is not a skill. It is an attitude.\",\n        \"Do not be too timid and squeamish about your reactions. All life is an experiment. The more experiments you make the better.\",\n        \"Never deny a diagnosis, but do deny the negative verdict that may go with it.\",\n        \"Vision without action is a daydream. Action without vision is a nightmare.\",\n        \"Forgiveness does not change the past, but it does enlarge the future.\",\n        \"It is only when the mind and character slumber that the dress can be seen.\",\n        \"They say that time changes things, but you actually have to change them yourself.\",\n        \"Sometimes the biggest act of courage is a small one.\",\n        \"We shall never know all the good that a simple smile can do.\",\n        \"Life is movement-we breathe, we eat, we walk, we move!\",\n        \"He is a wise man who does not grieve for the things which he has not, but rejoices for those which he has.\",\n        \"Everyone smiles in the same language.\",\n        \"Prejudice is a burden that confuses the past, threatens the future and renders the present inaccessible.\",\n        \"Never miss an opportunity to make others happy, even if you have to leave them alone in order to do it.\",\n        \"No pessimist ever discovered the secrets of the stars, or sailed to an uncharted land, or opened a new heaven to the human spirit.\",\n        \"All the great performers I have worked with are fuelled by a personal dream.\",\n        \"True silence is the rest of the mind; it is to the spirit what sleep is to the body, nourishment and refreshment.\",\n        \"How many cares one loses when one decides not to be something but to be someone.\",\n        \"Freedom is not worth having if it does not connote freedom to err.\",\n        \"The true way to render ourselves happy is to love our work and find in it our pleasure.\",\n        \"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it.\",\n        \"Aim for success, not perfection. Never give up your right to be wrong, because then you will lose the ability to learn new things and move forward with your life.\",\n        \"The way we communicate with others and with ourselves ultimately determines the quality of our lives.\",\n        \"Snowflakes are one of natures most fragile things, but just look what they can do when they stick together.\",\n        \"Nothing is at last sacred but the integrity of your own mind.\",\n        \"Don't believe what your eyes are telling you. All they show is limitation. Look with your understanding, find out what you already know, and you'll see the way to fly.\",\n        \"To change ones life, start immediately, do it flamboyantly, no exceptions.\",\n        \"The superior man acts before he speaks, and afterwards speaks according to his action.\",\n        \"What do we live for, if it is not to make life less difficult for each other?\",\n        \"With realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"Hope arouses, as nothing else can arouse, a passion for the possible.\",\n        \"The bird of paradise alights only upon the hand that does not grasp.\",\n        \"A house divided against itself cannot stand.\",\n        \"I cannot say whether things will get better if we change; what I can say is they must change if they are to get better.\",\n        \"Joy is what happens to us when we allow ourselves to recognize how good things really are.\",\n        \"Keep silence for the most part, and speak only when you must, and then briefly.\",\n        \"Yeah we all shine on, like the moon, and the stars, and the sun.\",\n        \"Autumn is a second spring when every leaf is a flower.\",\n        \"We all live with the objective of being happy; our lives are all different and yet the same.\",\n        \"Truth is generally the best vindication against slander.\",\n        \"Listen to what you know instead of what you fear.\",\n        \"See the positive side, the potential, and make an effort.\",\n        \"I have just three things to teach: simplicity, patience, compassion. These three are your greatest treasures.\",\n        \"See the positive side, the potential, and make an effort.\",\n        \"If we did the things we are capable of, we would astound ourselves.\",\n        \"Success is determined by those whom prove the impossible, possible.\",\n        \"If you break your neck, if you have nothing to eat, if your house is on fire, then you got a problem. Everything else is inconvenience.\",\n        \"Work for something because it is good, not just because it stands a chance to succeed.\",\n        \"Our greatness lies not so much in being able to remake the world as being able to remake ourselves.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift. That is why we call it the present.\",\n        \"It is not only for what we do that we are held responsible, but also for what we do not do.\",\n        \"The best way out is always through.\",\n        \"Action is the foundational key to all success.\",\n        \"Bad times have a scientific value. These are occasions a good learner would not miss.\",\n        \"Kind words do not cost much. Yet they accomplish much.\",\n        \"Things do not change, we change.\",\n        \"Those who are blessed with the most talent don't necessarily outperform everyone else. It's the people with follow-through who excel.\",\n        \"In separateness lies the world's great misery, in compassion lies the world's true strength.\",\n        \"While we stop to think, we often miss our opportunity.\",\n        \"There is no need for temples, no need for complicated philosophies. My brain and my heart are my temples; my philosophy is kindness.\",\n        \"Meditation brings wisdom; lack of mediation leaves ignorance. Know well what leads you forward and what hold you back, and choose the path that leads to wisdom.\",\n        \"Weve got to have a dream if we are going to make a dream come true.\",\n        \"We are all faced with a series of great opportunities brilliantly disguised as impossible situations.\",\n        \"He who controls others may be powerful, but he who has mastered himself is mightier still.\",\n        \"The self is not something ready-made, but something in continuous formation through choice of action.\",\n        \"Begin, be bold, and venture to be wise.\",\n        \"Setting an example is not the main means of influencing another, it is the only means.\",\n        \"Turn your face toward the sun and the shadows will fall behind you.\",\n        \"Just as a flower, which seems beautiful has color but no perfume, so are the fruitless words of a man who speaks them but does them not.\",\n        \"It is fatal to enter any war without the will to win it.\",\n        \"Knowing is not enough; we must apply!\",\n        \"From little acorns mighty oaks do grow.\",\n        \"When you realize there is nothing lacking, the whole world belongs to you.\",\n        \"Never apologize for showing feelings. When you do so, you apologize for the truth.\",\n        \"Sometimes our fate resembles a fruit tree in winter. Who would think that those branches would turn green again and blossom, but we hope it, we know it.\",\n        \"Life is a succession of lessons, which must be lived to be understood.\",\n        \"Set your goals high, and don't stop till you get there.\",\n        \"There is no way to happiness, happiness is the way.\",\n        \"Though no one can go back and make a brand new start, anyone can start from now and make a brand new ending.\",\n        \"I believe in one thing only, the power of human will.\",\n        \"No one has a finer command of language than the person who keeps his mouth shut.\",\n        \"Look forward to spring as a time when you can start to see what nature has to offer once again.\",\n        \"Strength does not come from physical capacity. It comes from an indomitable will.\",\n        \"It takes both sunshine and rain to make a rainbow.\",\n        \"Age does not protect you from love. But love, to some extent, protects you from age.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"The day is already blessed, find peace within it.\",\n        \"Never miss an opportunity to make others happy, even if you have to leave them alone in order to do it.\",\n        \"Trust your hunches. They're usually based on facts filed away just below the conscious level.\",\n        \"How we spend our days is, of course, how we spend our lives.\",\n        \"In separateness lies the world's great misery, in compassion lies the world's true strength.\",\n        \"Good actions give strength to ourselves and inspire good actions in others.\",\n        \"A man's dreams are an index to his greatness.\",\n        \"One may say the eternal mystery of the world is its comprehensibility.\",\n        \"As we grow as unique persons, we learn to respect the uniqueness of others.\",\n        \"People are not lazy. They simply have impotent goals that is, goals that do not inspire them.\",\n        \"Face your deficiencies and acknowledge them; but do not let them master you. Let them teach you patience, sweetness, insight.\",\n        \"In three words I can sum up everything Ive learned about life: it goes on.\",\n        \"When we feel love and kindness toward others, it not only makes others feel loved and cared for, but it helps us also to develop inner happiness and peace.\",\n        \"The only way to tell the truth is to speak with kindness. Only the words of a loving man can be heard.\",\n        \"From error to error one discovers the entire truth.\",\n        \"When the solution is simple, God is answering.\",\n        \"Nothing happens unless first we dream.\",\n        \"Each time we face a fear, we gain strength, courage, and confidence in the doing.\",\n        \"The most dangerous way to lose time is not to spend it having fun, but to spend it doing fake work. When you spend time having fun, you know you're being self-indulgent.\",\n        \"If we look at the world with a love of life, the world will reveal its beauty to us.\",\n        \"We know the truth, not only by the reason, but by the heart.\",\n        \"Change your thoughts, change your life!\",\n        \"If we had no winter, the spring would not be so pleasant; if we did not sometimes taste of adversity, prosperity would not be so welcome.\",\n        \"No day in which you learn something is a complete loss.\",\n        \"Do, or do not. There is no try.\",\n        \"What separates the winners from the losers is how a person reacts to each new twist of fate.\",\n        \"Face your deficiencies and acknowledge them; but do not let them master you. Let them teach you patience, sweetness, insight.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"Excellence is not a skill. It is an attitude.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"Gratitude is riches. Complaint is poverty.\",\n        \"You'll see it when you believe it.\",\n        \"Don't compromise yourself. You are all you've got.\",\n        \"Listen to your intuition. It will tell you everything you need to know.\",\n        \"Kind words do not cost much. Yet they accomplish much.\",\n        \"Let go of your attachment to being right, and suddenly your mind is more open. You're able to benefit from the unique viewpoints of others, without being crippled by your own judgement.\",\n        \"Love is never lost. If not reciprocated, it will flow back and soften and purify the heart.\",\n        \"He who knows, does not speak. He who speaks, does not know.\",\n        \"Those who cannot learn from history are doomed to repeat it.\",\n        \"He who obtains has little. He who scatters has much.\",\n        \"Worry gives a small thing a big shadow.\",\n        \"A man of ability and the desire to accomplish something can do anything.\",\n        \"If you come to a fork in the road, take it.\",\n        \"Always do your best. What you plant now, you will harvest later.\",\n        \"It is not so important to know everything as to appreciate what we learn.\",\n        \"Example has more followers than reason.\",\n        \"Slow down and enjoy life. It's not only the scenery you miss by going too fast you also miss the sense of where you are going and why.\",\n        \"Here is one quality that one must possess to win, and that is definiteness of purpose, the knowledge of what one wants, and a burning desire to possess it.\",\n        \"Build a better mousetrap and the world will beat a path to your door.\",\n        \"A lot of people give up just before theyre about to make it. You know you never know when that next obstacle is going to be the last one.\",\n        \"Life is a gift, and it offers us the privilege, opportunity, and responsibility to give something back by becoming more\",\n        \"When we seek to discover the best in others, we somehow bring out the best in ourselves.\",\n        \"When it is obvious that the goals cannot be reached, don't adjust the goals, adjust the action steps.\",\n        \"If you can't explain it simply, you don't understand it well enough.\",\n        \"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.\",\n        \"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine.\",\n        \"The difficulties of life are intended to make us better, not bitter.\",\n        \"Problems are only opportunities with thorns on them.\",\n        \"I hear and I forget. I see and I remember. I do and I understand.\",\n        \"I have done my best: that is about all the philosophy of living one needs.\",\n        \"The road leading to a goal does not separate you from the destination; it is essentially a part of it.\",\n        \"I am of the opinion that my life belongs to the community, and as long as I live it is my privilege to do for it whatever I can.\",\n        \"How we spend our days is, of course, how we spend our lives.\",\n        \"A lot of times people look at the negative side of what they feel they can't do. I always look on the positive side of what I can do.\",\n        \"History will be kind to me for I intend to write it.\",\n        \"Trusting our intuition often saves us from disaster.\",\n        \"What you fear is that which requires action to overcome.\",\n        \"If you correct your mind, the rest of your life will fall into place.\",\n        \"Ideals are an imaginative understanding of that which is desirable in that which is possible.\",\n        \"Love is the flower you've got to let grow.\",\n        \"Change is the law of life. And those who look only to the past or present are certain to miss the future.\",\n        \"Every new day is another chance to change your life.\",\n        \"We all live with the objective of being happy; our lives are all different and yet the same.\",\n        \"Life is a progress, and not a station.\",\n        \"As we express our gratitude, we must never forget that the highest appreciation is not to utter words, but to live by them.\",\n        \"A thing well said will be wit in all languages.\",\n        \"I care not so much what I am to others as what I am to myself. I will be rich by myself, and not by borrowing.\",\n        \"We do what we do because we believe.\",\n        \"What is necessary to change a person is to change his awareness of himself.\",\n        \"Work for something because it is good, not just because it stands a chance to succeed.\",\n        \"Everything that happens happens as it should, and if you observe carefully, you will find this to be so.\",\n        \"With every experience, you alone are painting your own canvas, thought by thought, choice by choice.\",\n        \"Happiness is a perfume you cannot pour on others without getting a few drops on yourself.\",\n        \"You won't skid if you stay in a rut.\",\n        \"Never do things others can do and will do, if there are things others cannot do or will not do.\",\n        \"Where there is great love, there are always miracles.\",\n        \"He who knows himself is enlightened.\",\n        \"If you break your neck, if you have nothing to eat, if your house is on fire, then you got a problem. Everything else is inconvenience.\",\n        \"Never regret. If it's good, it's wonderful. If it's bad, it's experience.\",\n        \"Never let lack of money interfere with having fun.\",\n        \"It isn't where you come from, it's where you're going that counts.\",\n        \"We can only be said to be alive in those moments when our hearts are conscious of our treasures.\",\n        \"Deep listening is miraculous for both listener and speaker.When someone receives us with open-hearted, non-judging, intensely interested listening, our spirits expand.\",\n        \"When we quit thinking primarily about ourselves and our own self-preservation, we undergo a truly heroic transformation of consciousness.\",\n        \"Mistakes are always forgivable, if one has the courage to admit them.\",\n        \"Prejudice is a burden that confuses the past, threatens the future and renders the present inaccessible.\",\n        \"Here is one quality that one must possess to win, and that is definiteness of purpose, the knowledge of what one wants, and a burning desire to possess it.\",\n        \"Vision without action is a daydream. Action without vision is a nightmare.\",\n        \"Nothing is a waste of time if you use the experience wisely.\",\n        \"When one tugs at a single thing in nature, he finds it attached to the rest of the world.\",\n        \"We must overcome the notion that we must be regular. It robs you of the chance to be extraordinary and leads you to the mediocre.\",\n        \"Liberty, taking the word in its concrete sense, consists in the ability to choose.\",\n        \"Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world.\",\n        \"No day in which you learn something is a complete loss.\",\n        \"We know what we are, but know not what we may be.\",\n        \"It is only when the mind and character slumber that the dress can be seen.\",\n        \"We must never forget that it is through our actions, words, and thoughts that we have a choice.\",\n        \"Do one thing every day that scares you.\",\n        \"Change will not come if we wait for some other person or some other time. We are the ones weve been waiting for. We are the change that we seek.\",\n        \"Everyone is a genius at least once a year. A real genius has his original ideas closer together.\",\n        \"The weak can never forgive. Forgiveness is the attribute of the strong.\",\n        \"The minute you settle for less than you deserve, you get even less than you settled for.\",\n        \"Gratitude makes sense of our past, brings peace for today, and creates a vision for tomorrow.\",\n        \"You must do the things you think you cannot do.\",\n        \"To dare is to lose ones footing momentarily. To not dare is to lose oneself.\",\n        \"Chaos is inherent in all compounded things. Strive on with diligence.\",\n        \"Life isn't about finding yourself. Life is about creating yourself.\",\n        \"One who is too insistent on his own views, finds few to agree with him.\",\n        \"The man who trusts men will make fewer mistakes than he who distrusts them.\",\n        \"I cannot give you the formula for success, but I can give you the formula for failure: which is: Try to please everybody.\",\n        \"Believe deep down in your heart that you're destined to do great things.\",\n        \"Perseverance is a great element of success. If you only knock long enough and loud enough at the gate, you are sure to wake up somebody.\",\n        \"Great acts are made up of small deeds.\",\n        \"Treat people as if they were what they ought to be and you help them to become what they are capable of being.\",\n        \"The superior man is modest in his speech, but exceeds in his actions.\",\n        \"The truth of the matter is that you always know the right thing to do. The hard part is doing it.\",\n        \"Happiness mainly comes from our own attitude, rather than from external factors.\",\n        \"Only through our connectedness to others can we really know and enhance the self. And only through working on the self can we begin to enhance our connectedness to others.\",\n        \"I destroy my enemies when I make them my friends.\",\n        \"It is surprising what a man can do when he has to, and how little most men will do when they don't have to.\",\n        \"Life is the flower for which love is the honey.\",\n        \"The superior man is modest in his speech, but exceeds in his actions.\",\n        \"You won't skid if you stay in a rut.\",\n        \"It can't be spring if your heart is filled with past failures.\",\n        \"Efficiency is doing things right; effectiveness is doing the right things.\",\n        \"Everyone smiles in the same language.\",\n        \"Wrinkles should merely indicate where smiles have been.\",\n        \"No snowflake in an avalanche ever feels responsible.\",\n        \"Well done is better than well said.\",\n        \"I can't believe that God put us on this earth to be ordinary.\",\n        \"Things do not change; we change.\",\n        \"What we see depends mainly on what we look for.\",\n        \"Sometimes the cards we are dealt are not always fair. However you must keep smiling and moving on.\",\n        \"Into each life rain must fall but rain can be the giver of life and it is all in your attitude that makes rain produce sunshine.\",\n        \"Follow effective action with quiet reflection. From the quiet reflection will come even more effective action.\",\n        \"Happiness is as a butterfly which, when pursued, is always beyond our grasp, but which if you will sit down quietly, may alight upon you.\",\n        \"Silence is a source of great strength.\",\n        \"Your outlook on life is a direct reflection on how much you like yourself.\",\n        \"Kindness is the greatest wisdom.\",\n        \"Trusting our intuition often saves us from disaster.\",\n        \"There is no greater harm than that of time wasted.\",\n        \"There never was a good knife made of bad steel.\",\n        \"Creativity comes from trust. Trust your instincts. And never hope more than you work.\",\n        \"The world cares very little about what a man or woman knows; it is what a man or woman is able to do that counts.\",\n        \"There is only one success to be able to spend your life in your own way.\",\n        \"Life is just a chance to grow a soul.\",\n        \"You always succeed in producing a result.\",\n        \"An invasion of armies can be resisted, but not an idea whose time has come.\",\n        \"When you discover your mission, you will feel its demand. It will fill you with enthusiasm and a burning desire to get to work on it.\",\n        \"An optimist is a person who sees a green light everywhere, while the pessimist sees only the red spotlight... The truly wise person is colour-blind.\",\n        \"Be your own hero, it's cheaper than a movie ticket.\",\n        \"Time you enjoyed wasting was not wasted.\",\n        \"If you spend too much time thinking about a thing, you'll never get it done.\",\n        \"You won't skid if you stay in a rut.\",\n        \"The secret of joy in work is contained in one word excellence. To know how to do something well is to enjoy it.\",\n        \"Everyone has been made for some particular work, and the desire for that work has been put in every heart.\",\n        \"The best way to pay for a lovely moment is to enjoy it.\",\n        \"He who lives in harmony with himself lives in harmony with the world.\",\n        \"Either you run the day or the day runs you.\",\n        \"Who sows virtue reaps honour.\",\n        \"A leader is best when people barely know he exists, when his work is done, his aim fulfilled, they will say: we did it ourselves.\",\n        \"Your vision will become clear only when you look into your heart. Who looks outside, dreams. Who looks inside, awakens.\",\n        \"We know what we are, but know not what we may be.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"The thoughts we choose to think are the tools we use to paint the canvas of our lives.\",\n        \"Whoso loves, believes the impossible.\",\n        \"A rolling stone gathers no moss.\",\n        \"If you are going to achieve excellence in big things, you develop the habit in little matters. Excellence is not an exception, it is a prevailing attitude.\",\n        \"A successful person is one who can lay a firm foundation with the bricks that others throw at him or her.\",\n        \"Be yourself; everyone else is already taken.\",\n        \"You must welcome change as the rule but not as your ruler.\",\n        \"Complaining doesn't change a thing only taking action does.\",\n        \"A failure is a man who has blundered but is not capable of cashing in on the experience.\",\n        \"We never live; we are always in the expectation of living.\",\n        \"Don't compromise yourself. You are all you've got.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"Let us resolve to be masters, not the victims, of our history, controlling our own destiny without giving way to blind suspicions and emotions.\",\n        \"Man is equally incapable of seeing the nothingness from which he emerges and the infinity in which he is engulfed.\",\n        \"Continuous effort, not strength or intelligence is the key to unlocking our potential.\",\n        \"Skill to do comes of doing.\",\n        \"Be miserable. Or motivate yourself. Whatever has to be done, it's always your choice.\",\n        \"If you think you can, you can. And if you think you can't, you're right.\",\n        \"It is surprising what a man can do when he has to, and how little most men will do when they don't have to.\",\n        \"The world cares very little about what a man or woman knows; it is what a man or woman is able to do that counts.\",\n        \"There are no failures. Just experiences and your reactions to them.\",\n        \"A man is great by deeds, not by birth.\",\n        \"The greatest way to live with honour in this world is to be what we pretend to be.\",\n        \"We choose our joys and sorrows long before we experience them.\",\n        \"The possibilities are numerous once we decide to act and not react.\",\n        \"I can't imagine a person becoming a success who doesn't give this game of life everything hes got.\",\n        \"A leader is best when people barely know he exists, when his work is done, his aim fulfilled, they will say: we did it ourselves.\",\n        \"Constant kindness can accomplish much. As the sun makes ice melt, kindness causes misunderstanding, mistrust, and hostility to evaporate.\",\n        \"Never mistake motion for action.\",\n        \"The less effort, the faster and more powerful you will be.\",\n        \"There are basically two types of people. People who accomplish things, and people who claim to have accomplished things. The first group is less crowded.\",\n        \"We know the truth, not only by the reason, but by the heart.\",\n        \"It is surprising what a man can do when he has to, and how little most men will do when they don't have to.\",\n        \"We all have problems. The way we solve them is what makes us different.\",\n        \"Those who will play with cats must expect to be scratched.\",\n        \"He who lives in harmony with himself lives in harmony with the world.\",\n        \"Imagination will often carry us to worlds that never were. But without it we go nowhere.\",\n        \"Don't wait for your feelings to change to take the action. Take the action and your feelings will change.\",\n        \"I think somehow we learn who we really are and then live with that decision.\",\n        \"Forget about all the reasons why something may not work. You only need to find one good reason why it will.\",\n        \"Each time we face a fear, we gain strength, courage, and confidence in the doing.\",\n        \"Judge nothing, you will be happy. Forgive everything, you will be happier. Love everything, you will be happiest.\",\n        \"Kindness is the language which the deaf can hear and the blind can see.\",\n        \"Parents can only give good advice or put them on the right paths, but the final forming of a persons character lies in their own hands.\",\n        \"There is only one success to be able to spend your life in your own way.\",\n        \"Criticism is something you can easily avoid by saying nothing, doing nothing, and being nothing.\",\n        \"Treat people as if they were what they ought to be and you help them to become what they are capable of being.\",\n        \"Most of our obstacles would melt away if, instead of cowering before them, we should make up our minds to walk boldly through them.\",\n        \"Let us be grateful to people who make us happy; they are the charming gardeners who make our souls blossom.\",\n        \"Minds are like parachutes. They only function when open.\",\n        \"I would maintain that thanks are the highest form of thought, and that gratitude is happiness doubled by wonder.\",\n        \"Love does not consist of gazing at each other, but in looking together in the same direction.\",\n        \"The future belongs to those who believe in the beauty of their dreams.\",\n        \"Do not go where the path may lead, go instead where there is no path and leave a trail.\",\n        \"Give me six hours to chop down a tree and I will spend the first four sharpening the axe.\",\n        \"An invasion of armies can be resisted, but not an idea whose time has come.\",\n        \"Fine words and an insinuating appearance are seldom associated with true virtue\",\n        \"If you want to study yourself look into the hearts of other people. If you want to study other people look into your own heart.\",\n        \"Things do not change; we change.\",\n        \"If you spend too much time thinking about a thing, you'll never get it done.\",\n        \"Our lives are the only meaningful expression of what we believe and in Whom we believe. And the only real wealth, for any of us, lies in our faith.\",\n        \"Only do what your heart tells you.\",\n        \"Life is what happens while you are making other plans.\",\n        \"I have never been hurt by anything I didn't say.\",\n        \"A man is great by deeds, not by birth.\",\n        \"You are the only person on Earth who can use your ability.\",\n        \"It is better to understand a little than to misunderstand a lot.\",\n        \"The time you think you're missing, misses you too.\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"Happiness is when what you think, what you say, and what you do are in harmony.\",\n        \"Our ability to achieve happiness and success depends on the strength of our wings.\",\n        \"There is no duty we so underrate as the duty of being happy. By being happy we sow anonymous benefits upon the world.\",\n        \"If you don't like something, change it. If you can't change it, change your attitude.\",\n        \"Discovery consists of seeing what everybody has seen and thinking what nobody else has thought.\",\n        \"Experience is simply the name we give our mistakes.\",\n        \"Before you put on a frown, make absolutely sure there are no smiles available.\",\n        \"The less effort, the faster and more powerful you will be.\",\n        \"Do not overrate what you have received, nor envy others. He who envies others does not obtain peace of mind.\",\n        \"First comes thought; then organization of that thought, into ideas and plans; then transformation of those plans into reality. The beginning, as you will observe, is in your imagination.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"I've never seen a smiling face that was not beautiful.\",\n        \"No garden is without its weeds.\",\n        \"To be wronged is nothing unless you continue to remember it.\",\n        \"To exist is to change, to change is to mature, to mature is to go on creating oneself endlessly.\",\n        \"He who has health has hope, and he who has hope has everything.\",\n        \"Today is the tomorrow we worried about yesterday.\",\n        \"To lead people walk behind them.\",\n        \"Well done is better than well said.\",\n        \"Only when we are no longer afraid do we begin to live.\",\n        \"We could never learn to be brave and patient if there were only joy in the world.\",\n        \"Difficulties increase the nearer we get to the goal.\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"The only real valuable thing is intuition.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"Don't judge each day by the harvest you reap but by the seeds you plant.\",\n        \"Do, or do not. There is no try.\",\n        \"You always succeed in producing a result.\",\n        \"In the middle of every difficulty lies opportunity.\",\n        \"There is nothing happens to any person but what was in his power to go through with.\",\n        \"I would maintain that thanks are the highest form of thought, and that gratitude is happiness doubled by wonder.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"A man is not where he lives but where he loves.\",\n        \"Either you run the day or the day runs you.\",\n        \"The superior man is satisfied and composed; the mean man is always full of distress.\",\n        \"You may be deceived if you trust too much, but you will live in torment if you don't trust enough.\",\n        \"Stay away from what might have been and look at what will be.\",\n        \"The years teach much which the days never know.\",\n        \"To know oneself is to study oneself in action with another person.\",\n        \"Keep true to the dreams of thy youth.\",\n        \"There is no way to happiness, happiness is the way.\",\n        \"The really unhappy person is the one who leaves undone what they can do, and starts doing what they don't understand; no wonder they come to grief.\",\n        \"I never see what has been done; I only see what remains to be done.\",\n        \"I begin with an idea and then it becomes something else.\",\n        \"With realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"It is only when the mind and character slumber that the dress can be seen.\",\n        \"Discovery consists of seeing what everybody has seen and thinking what nobody else has thought.\",\n        \"Your worst enemy cannot harm you as much as your own unguarded thoughts.\",\n        \"Never put off till tomorrow what you can do today.\",\n        \"Can miles truly separate you from friends... If you want to be with someone you love, aren't you already there?\",\n        \"Better to have loved and lost, than to have never loved at all.\",\n        \"If you wish to be a writer, write.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"Give whatever you are doing and whoever you are with the gift of your attention.\",\n        \"Kind words can be short and easy to speak, but their echoes are truly endless.\",\n        \"Try not to become a man of success, but rather try to become a man of value.\",\n        \"The bird of paradise alights only upon the hand that does not grasp.\",\n        \"If you want to study yourself look into the hearts of other people. If you want to study other people look into your own heart.\",\n        \"Anybody can make history. Only a great man can write it.\",\n        \"The right way is not always the popular and easy way. Standing for right when it is unpopular is a true test of moral character.\",\n        \"Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful.\",\n        \"Gratitude is riches. Complaint is poverty.\",\n        \"I am a man of fixed and unbending principles, the first of which is to be flexible at all times.\",\n        \"Great are they who see that spiritual is stronger than any material force, that thoughts rule the world.\",\n        \"The noblest worship is to make yourself as good and as just as you can.\",\n        \"If you wish to be a writer, write.\",\n        \"Think as a wise man but communicate in the language of the people.\",\n        \"Forget about all the reasons why something may not work. You only need to find one good reason why it will.\",\n        \"What you fear is that which requires action to overcome.\",\n        \"Constant kindness can accomplish much. As the sun makes ice melt, kindness causes misunderstanding, mistrust, and hostility to evaporate.\",\n        \"Everyone has been made for some particular work, and the desire for that work has been put in every heart.\",\n        \"Be the change that you want to see in the world.\",\n        \"One needs something to believe in, something for which one can have whole-hearted enthusiasm. One needs to feel that ones life has meaning, that one is needed in this world.\",\n        \"As an organizer I start from where the world is, as it is, not as I would like it to be.\",\n        \"Growth itself contains the germ of happiness.\",\n        \"You may only be someone in the world, but to someone else, you may be the world.\",\n        \"Our passion is our strength.\",\n        \"When the solution is simple, God is answering.\",\n        \"As our case is new, we must think and act anew.\",\n        \"I prefer to be true to myself, even at the hazard of incurring the ridicule of others, rather than to be false, and to incur my own abhorrence.\",\n        \"If I am not for myself, who will be for me? If I am not for others, what am I? And if not now, when?\",\n        \"A successful person is one who can lay a firm foundation with the bricks that others throw at him or her.\",\n        \"The most formidable weapon against errors of every kind is reason.\",\n        \"Things do not change, we change.\",\n        \"However many holy words you read, However many you speak, What good will they do you If you do not act on upon them?\",\n        \"Ability is what you're capable of doing. Motivation determines what you do.Attitude determines how well you do it.\",\n        \"How many cares one loses when one decides not to be something but to be someone.\",\n        \"Your friends will know you better in the first minute you meet than your acquaintances will know you in a thousand years.\",\n        \"You can observe a lot just by watching.\",\n        \"You can't let praise or criticism get to you. It's a weakness to get caught up in either one.\",\n        \"Love does not consist of gazing at each other, but in looking together in the same direction.\",\n        \"With realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"Smile, breathe, and go slowly.\",\n        \"Fears are nothing more than a state of mind.\",\n        \"He who deliberates fully before taking a step will spend his entire life on one leg.\",\n        \"Things do not change; we change.\",\n        \"A bend in the road is not the end of the road...unless you fail to make the turn.\",\n        \"Nothing happens unless first we dream.\",\n        \"No is easier to do. Yes is easier to say.\",\n        \"Love at first sight is easy to understand; its when two people have been looking at each other for a lifetime that it becomes a miracle.\",\n        \"Success is determined by those whom prove the impossible, possible.\",\n        \"You have enemies? Good. That means you've stood up for something, sometime in your life.\",\n        \"A man should look for what is, and not for what he thinks should be.\",\n        \"The path to success is to take massive, determined action.\",\n        \"Age does not protect you from love. But love, to some extent, protects you from age.\",\n        \"Just trust yourself, then you will know how to live.\",\n        \"It is better to take many small steps in the right direction than to make a great leap forward only to stumble backward.\",\n        \"Be not afraid of greatness: some are born great, some achieve greatness, and some have greatness thrust upon them.\",\n        \"You cannot travel the path until you have become the path itself.\",\n        \"If a man does his best, what else is there?\",\n        \"Your mind will answer most questions if you learn to relax and wait for the answer.\",\n        \"Give it all you've got because you never know if there's going to be a next time.\",\n        \"Prosperity depends more on wanting what you have than having what you want.\",\n        \"There is one thing you have got to learn about our movement. Three people are better than no people.\",\n        \"Every person, all the events of your life are there because you have drawn them there. What you choose to do with them is up to you.\",\n        \"He is a wise man who does not grieve for the things which he has not, but rejoices for those which he has.\",\n        \"The grand essentials of happiness are: something to do, something to love, and something to hope for.\",\n        \"If you have no respect for your own values how can you be worthy of respect from others.\",\n        \"Just as much as we see in others we have in ourselves.\",\n        \"Everyone thinks of changing the world, but no one thinks of changing himself.\",\n        \"Only do what your heart tells you.\",\n        \"Let go of your attachment to being right, and suddenly your mind is more open. You're able to benefit from the unique viewpoints of others, without being crippled by your own judgement.\",\n        \"We should all be thankful for those people who rekindle the inner spirit.\",\n        \"To accomplish great things, we must dream as well as act.\",\n        \"I don't believe in failure. It is not failure if you enjoyed the process.\",\n        \"You can complain because roses have thorns, or you can rejoice because thorns have roses.\",\n        \"We know from science that nothing in the universe exists as an isolated or independent entity.\",\n        \"There is a way that nature speaks, that land speaks. Most of the time we are simply not patient enough, quiet enough, to pay attention to the story.\",\n        \"The difference between what we do and what we are capable of doing would suffice to solve most of the worlds problems.\",\n        \"There are two kinds of failures: those who thought and never did, and those who did and never thought.\",\n        \"When you meet someone better than yourself, turn your thoughts to becoming his equal. When you meet someone not as good as you are, look within and examine your own self.\",\n        \"Dreams come true. Without that possibility, nature would not incite us to have them.\",\n        \"It is with words as with sunbeams. The more they are condensed, the deeper they burn.\",\n        \"Silence is a fence around wisdom.\",\n        \"A lot of times people look at the negative side of what they feel they can't do. I always look on the positive side of what I can do.\",\n        \"We choose our destiny in the way we treat others.\",\n        \"Today is the tomorrow you worried about yesterday.\",\n        \"Wherever a man may happen to turn, whatever a man may undertake, he will always end up by returning to the path which nature has marked out for him.\",\n        \"The thing always happens that you really believe in; and the belief in a thing makes it happen.\",\n        \"Positive thinking will let you do everything better than negative thinking will.\",\n        \"Courage is the discovery that you may not win, and trying when you know you can lose.\",\n        \"Respect is not something that you can ask for, buy or borrow. Respect is what you earn from each person no matter their background or status.\",\n        \"Life is really simple, but we insist on making it complicated.\",\n        \"I believe that we are solely responsible for our choices, and we have to accept the consequences of every deed, word, and thought throughout our lifetime.\",\n        \"Be here now. Be someplace else later. Is that so complicated?\",\n        \"The bird of paradise alights only upon the hand that does not grasp.\",\n        \"Short words are best and the old words when short are best of all.\",\n        \"Don't wait. The time will never be just right.\",\n        \"To climb steep hills requires a slow pace at first.\",\n        \"The universe is made of stories, not atoms.\",\n        \"The height of your accomplishments will equal the depth of your convictions.\",\n        \"Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love.\",\n        \"By accepting yourself and being fully what you are, your presence can make others happy.\",\n        \"When deeds and words are in accord, the whole world is transformed.\",\n        \"One does not discover new lands without consenting to lose sight of the shore for a very long time.\",\n        \"Responsibility is not inherited, it is a choice that everyone needs to make at some point in their life.\",\n        \"No yesterdays are ever wasted for those who give themselves to today.\",\n        \"We cannot hold a torch to light another's path without brightening our own.\",\n        \"More powerful than the will to win is the courage to begin.\",\n        \"The truth is always exciting. Speak it, then. Life is dull without it.\",\n        \"Open minds lead to open doors.\",\n        \"He who obtains has little. He who scatters has much.\",\n        \"To make no mistakes is not in the power of man; but from their errors and mistakes the wise and good learn wisdom for the future.\",\n        \"First say to yourself what you would be; and then do what you have to do.\",\n        \"A dream is your creative vision for your life in the future. You must break out of your current comfort zone and become comfortable with the unfamiliar and the unknown.\",\n        \"Follow your instincts. That is where true wisdom manifests itself.\",\n        \"Whoever is happy will make others happy, too.\",\n        \"If you break your neck, if you have nothing to eat, if your house is on fire, then you got a problem. Everything else is inconvenience.\",\n        \"Success is determined by those whom prove the impossible, possible.\",\n        \"No matter how hard the past, you can always begin again.\",\n        \"Conflict is the gadfly of thought. It stirs us to observation and memory. It instigates to invention. It shocks us out of sheeplike passivity, and sets us at noting and contriving.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept responsibility for changing them.\",\n        \"The right way is not always the popular and easy way. Standing for right when it is unpopular is a true test of moral character.\",\n        \"Take heed: you do not find what you do not seek.\",\n        \"Kindness is the greatest wisdom.\",\n        \"It does not matter how slowly you go as long as you do not stop.\",\n        \"He who knows that enough is enough will always have enough.\",\n        \"When deeds speak, words are nothing.\",\n        \"Notice that the stiffest tree is most easily cracked, while the bamboo or willow survives by bending with the wind.\",\n        \"Life is not measured by the breaths we take, but by the moments that take our breath.\",\n        \"The self is not something ready-made, but something in continuous formation through choice of action.\",\n        \"All men who have achieved great things have been great dreamers.\",\n        \"The best way to pay for a lovely moment is to enjoy it.\",\n        \"All the great performers I have worked with are fuelled by a personal dream.\",\n        \"Think for yourselves and let others enjoy the privilege to do so too.\",\n        \"Fear is a darkroom where negatives develop.\",\n        \"I believe in one thing only, the power of human will.\",\n        \"I have never been hurt by anything I didn't say.\",\n        \"If we are not fully ourselves, truly in the present moment, we miss everything.\",\n        \"Four steps to achievement: Plan purposefully. Prepare prayerfully. Proceed positively. Pursue persistently.\",\n        \"An invasion of armies can be resisted, but not an idea whose time has come.\",\n        \"Take it easy but take it.\",\n        \"It is fatal to enter any war without the will to win it.\",\n        \"Most great people have attained their greatest success just one step beyond their greatest failure.\",\n        \"If you can dream it, you can do it.\",\n        \"Do one thing every day that scares you.\",\n        \"To exist is to change, to change is to mature, to mature is to go on creating oneself endlessly.\",\n        \"You need chaos in your soul to give birth to a dancing star.\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"Without leaps of imagination, or dreaming, we lose the excitement of possibilities. Dreaming, after all, is a form of planning.\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"Every man is a volume if you know how to read him.\",\n        \"The superior man acts before he speaks, and afterwards speaks according to his action.\",\n        \"Through meditation and by giving full attention to one thing at a time, we can learn to direct attention where we choose.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"The cautious seldom err.\",\n        \"Though no one can go back and make a brand new start, anyone can start from now and make a brand new ending.\",\n        \"Experience is simply the name we give our mistakes.\",\n        \"The mind is everything. What you think you become.\",\n        \"An invasion of armies can be resisted, but not an idea whose time has come.\",\n        \"You can't shake hands with a clenched fist.\",\n        \"If you smile when no one else is around, you really mean it.\",\n        \"However many holy words you read, However many you speak, What good will they do you If you do not act on upon them?\",\n        \"The free man is he who does not fear to go to the end of his thought.\",\n        \"Argue for your limitations, and sure enough they're yours.\",\n        \"Better than a thousand hollow words, is one word that brings peace.\",\n        \"I am not bothered by the fact that I am unknown. I am bothered when I do not know others.\",\n        \"Beware of missing chances; otherwise it may be altogether too late some day.\",\n        \"The beginning of wisdom is found in doubting; by doubting we come to the question, and by seeking we may come upon the truth.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"Our virtues and our failings are inseparable, like force and matter. When they separate, man is no more.\",\n        \"The possession of knowledge does not kill the sense of wonder and mystery. There is always more mystery.\",\n        \"When you learn, teach. When you get, give.\",\n        \"Though no one can go back and make a brand new start, anyone can start from not and make a brand new ending.\",\n        \"The day is already blessed, find peace within it.\",\n        \"No snowflake in an avalanche ever feels responsible.\",\n        \"These days people seek knowledge, not wisdom. Knowledge is of the past, wisdom is of the future.\",\n        \"Speak low, if you speak love.\",\n        \"It's so simple to be wise. Just think of something stupid to say and then don't say it.\",\n        \"The truth you believe and cling to makes you unavailable to hear anything new.\",\n        \"Nature gave us one tongue and two ears so we could hear twice as much as we speak.\",\n        \"By believing passionately in something that does not yet exist, we create it.\",\n        \"Keep true to the dreams of thy youth.\",\n        \"Giving up doesn't always mean you are weak. Sometimes it means that you are strong enough to let go.\",\n        \"The smallest flower is a thought, a life answering to some feature of the Great Whole, of whom they have a persistent intuition.\",\n        \"Our greatest glory is not in never falling, but in rising every time we fall.\",\n        \"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.\",\n        \"The most decisive actions of our life... are most often unconsidered actions.\",\n        \"Those who are blessed with the most talent don't necessarily outperform everyone else. It's the people with follow-through who excel.\",\n        \"The poor man is not he who is without a cent, but he who is without a dream.\",\n        \"Strength does not come from physical capacity. It comes from an indomitable will.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"The shortest answer is doing.\",\n        \"Many people have gone further than they thought they could because someone else thought they could.\",\n        \"Knowing your own darkness is the best method for dealing with the darknesses of other people.\",\n        \"No man can succeed in a line of endeavor which he does not like.\",\n        \"Nobody can do everything, but everybody can do something.\",\n        \"Whenever something negative happens to you, there is a deep lesson concealed within it.\",\n        \"When your desires are strong enough you will appear to possess superhuman powers to achieve.\",\n        \"A man sees in the world what he carries in his heart.\",\n        \"Ability is what you're capable of doing. Motivation determines what you do.Attitude determines how well you do it.\",\n        \"Transformation does not start with some one else changing you; transformation is an inner self reworking of what you are now to what you will be.\",\n        \"Never mistake motion for action.\",\n        \"When fate hands us a lemon, lets try to make lemonade.\",\n        \"Once you choose hope, anythings possible.\",\n        \"As we express our gratitude, we must never forget that the highest appreciation is not to utter words, but to live by them.\",\n        \"Victory belongs to the most persevering.\",\n        \"Never apologize for showing feelings. When you do so, you apologize for the truth.\",\n        \"When you come to the end of your rope, tie a knot and hang on.\",\n        \"Snowflakes are one of natures most fragile things, but just look what they can do when they stick together.\",\n        \"The only real valuable thing is intuition.\",\n        \"If you aren't going all the way, why go at all?\",\n        \"Don't judge each day by the harvest you reap but by the seeds you plant.\",\n        \"Remember that failure is an event, not a person.\",\n        \"The smallest act of kindness is worth more than the grandest intention.\",\n        \"Aerodynamically the bumblebee shouldn't be able to fly, but the bumblebee doesn't know that so it goes on flying anyway.\",\n        \"Bold is not the act of foolishness but the attribute and inner strength to act when others will not so as to move forward not backward.\",\n        \"He who has imagination without learning has wings but no feet.\",\n        \"We read the world wrong and say that it deceives us.\",\n        \"Every sixty seconds you spend angry, upset or mad, is a full minute of happiness you will never get back.\",\n        \"Don't wait for people to be friendly. Show them how.\",\n        \"Fears are nothing more than a state of mind.\",\n        \"If you must tell me your opinions, tell me what you believe in. I have plenty of douts of my own.\",\n        \"You cannot have what you do not want.\",\n        \"Your attitude, not your aptitude, will determine your altitude.\",\n        \"If you want things to be different, perhaps the answer is to become different yourself.\",\n        \"Everything that irritates us about others can lead us to an understanding of ourselves.\",\n        \"Don't wait. The time will never be just right.\",\n        \"Neither genius, fame, nor love show the greatness of the soul. Only kindness can do that.\",\n        \"A good plan today is better than a perfect plan tomorrow.\",\n        \"Using the power of decision gives you the capacity to get past any excuse to change any and every part of your life in an instant.\",\n        \"Important principles may, and must, be inflexible.\",\n        \"Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful.\",\n        \"When we seek to discover the best in others, we somehow bring out the best in ourselves.\",\n        \"We cannot do everything at once, but we can do something at once.\",\n        \"What we see depends mainly on what we look for.\",\n        \"The happiness of a man in this life does not consist in the absence but in the mastery of his passions.\",\n        \"If the shoe doesn't fit, must we change the foot?\",\n        \"However many holy words you read, however many you speak, what good will they do you if you do not act on upon them?\",\n        \"Ignorance never settle a question.\",\n        \"It has never been my object to record my dreams, just to realize them.\",\n        \"Hope arouses, as nothing else can arouse, a passion for the possible.\",\n        \"You teach best what you most need to learn.\",\n        \"The cautious seldom err.\",\n        \"Action may not always bring happiness; but there is no happiness without action.\",\n        \"Build a better mousetrap and the world will beat a path to your door.\",\n        \"Efficiency is doing things right; effectiveness is doing the right things.\",\n        \"Society develops wit, but its contemplation alone forms genius.\",\n        \"The future is an opaque mirror. Anyone who tries to look into it sees nothing but the dim outlines of an old and worried face.\",\n        \"The universe is made of stories, not atoms.\",\n        \"One of the advantages of being disorderly is that one is constantly making exciting discoveries.\",\n        \"Autumn is a second spring when every leaf is a flower.\",\n        \"Your sacred space is where you can find yourself again and again.\",\n        \"If you're walking down the right path and you're willing to keep walking, eventually you'll make progress.\",\n        \"You're never a loser until you quit trying.\",\n        \"You cannot find yourself by going into the past. You can find yourself by coming into the present.\",\n        \"We are what we repeatedly do. Excellence, then, is not an act but a habit.\",\n        \"Good luck is another name for tenacity of purpose.\",\n        \"Until you make peace with who you are, you'll never be content with what you have.\",\n        \"You really can change the world if you care enough.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"The thought manifests as the word. The word manifests as the deed. The deed develops into habit. And the habit hardens into character.\",\n        \"To be fully alive, fully human, and completely awake is to be continually thrown out of the nest.\",\n        \"A successful person is one who can lay a firm foundation with the bricks that others throw at him or her.\",\n        \"Action may not always bring happiness, but there is no happiness without action.\",\n        \"Freedom is what you do with what's been done to you.\",\n        \"Sunshine is delicious, rain is refreshing, wind braces us up, snow is exhilarating; there is really no such thing as bad weather, only different kinds of good weather.\",\n        \"Know, first, who you are, and then adorn yourself accordingly.\",\n        \"An obstacle may be either a stepping stone or a stumbling block.\",\n        \"If you love life, don't waste time, for time is what life is made up of.\",\n        \"Don't cry because it's over. Smile because it happened.\",\n        \"Failure will never overtake me if my determination to succeed is strong enough.\",\n        \"The past has no power to stop you from being present now. Only your grievance about the past can do that.\",\n        \"Smile, breathe, and go slowly.\",\n        \"There are only two mistakes one can make along the road to truth; not going all the way, and not starting.\",\n        \"Excellence is not a skill. It is an attitude.\",\n        \"The time you think you're missing, misses you too.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"To get the full value of joy you must have someone to divide it with.\",\n        \"Peace comes from within. Do not seek it without.\",\n        \"Only do what your heart tells you.\",\n        \"I am like a falling star who has finally found her place next to another in a lovely constellation, where we will sparkle in the heavens forever.\",\n        \"To speak gratitude is courteous and pleasant, to enact gratitude is generous and noble, but to live gratitude is to touch Heaven.\",\n        \"Only those who dare to fail greatly can ever achieve greatly.\",\n        \"A day of worry is more exhausting than a day of work.\",\n        \"Build a better mousetrap and the world will beat a path to your door.\",\n        \"Miracles come in moments. Be ready and willing.\",\n        \"First comes thought; then organization of that thought, into ideas and plans; then transformation of those plans into reality. The beginning, as you will observe, is in your imagination.\",\n        \"I endeavour to be wise when I cannot be merry, easy when I cannot be glad, content with what cannot be mended and patient when there is no redress.\",\n        \"In separateness lies the world's great misery, in compassion lies the world's true strength.\",\n        \"The pain passes, but the beauty remains.\",\n        \"He who obtains has little. He who scatters has much.\",\n        \"Ideas are the beginning points of all fortunes.\",\n        \"Do not wait for leaders; do it alone, person to person.\",\n        \"No alibi will save you from accepting the responsibility.\",\n        \"To know your purpose is to live a life of direction, and in that direction is found peace and tranquillity.\",\n        \"You get peace of mind not by thinking about it or imagining it, but by quietening and relaxing the restless mind.\",\n        \"Begin, be bold, and venture to be wise.\",\n        \"Your mind will answer most questions if you learn to relax and wait for the answer.\",\n        \"A single conversation across the table with a wise person is worth a months study of books.\",\n        \"Every man dies. Not every man really lives.\",\n        \"There is no retirement for an artist, it's your way of living so there is no end to it.\",\n        \"Trust only movement. Life happens at the level of events, not of words. Trust movement.\",\n        \"Who looks outside, dreams; who looks inside, awakes.\",\n        \"To fly, we have to have resistance.\",\n        \"Go to your bosom: Knock there, and ask your heart what it doth know.\",\n        \"It is the quality of our work which will please God, not the quantity.\",\n        \"Wrinkles should merely indicate where smiles have been.\",\n        \"I prefer to be true to myself, even at the hazard of incurring the ridicule of others, rather than to be false, and to incur my own abhorrence.\",\n        \"I would maintain that thanks are the highest form of thought, and that gratitude is happiness doubled by wonder.\",\n        \"Everyone can taste success when the going is easy, but few know how to taste victory when times get tough.\",\n        \"Successful people ask better questions, and as a result, they get better answers.\",\n        \"In a controversy the instant we feel anger we have already ceased striving for the truth, and have begun striving for ourselves.\",\n        \"Do, or do not. There is no try.\",\n        \"All I can say about life is, Oh God, enjoy it!\",\n        \"To be aware of a single shortcoming in oneself is more useful than to be aware of a thousand in someone else.\",\n        \"When you discover your mission, you will feel its demand. It will fill you with enthusiasm and a burning desire to get to work on it.\",\n        \"Men are disturbed not by things, but by the view which they take of them.\",\n        \"You cannot make yourself feel something you do not feel, but you can make yourself do right in spite of your feelings.\",\n        \"Imagination is the living power and prime agent of all human perception.\",\n        \"Numberless are the worlds wonders, but none more wonderful than man.\",\n        \"The person born with a talent they are meant to use will find their greatest happiness in using it.\",\n        \"Much wisdom often goes with fewer words.\",\n        \"Obstacles are those frightful things you see when you take your eyes off your goal.\",\n        \"One needs something to believe in, something for which one can have whole-hearted enthusiasm. One needs to feel that ones life has meaning, that one is needed in this world.\",\n        \"We cannot do everything at once, but we can do something at once.\",\n        \"Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.\",\n        \"Time you enjoyed wasting was not wasted.\",\n        \"In the sky, there is no distinction of east and west; people create distinctions out of their own minds and then believe them to be true.\",\n        \"Opportunity is missed by most because it is dressed in overalls and looks like work.\",\n        \"There is nothing so useless as doing efficiently that which should not be done at all.\",\n        \"As we grow as unique persons, we learn to respect the uniqueness of others.\",\n        \"It is not only for what we do that we are held responsible, but also for what we do not do.\",\n        \"One must be fond of people and trust them if one is not to make a mess of life.\",\n        \"Genuine love should first be directed at oneself if we do not love ourselves, how can we love others?\",\n        \"Everything in the universe goes by indirection. There are no straight lines.\",\n        \"Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world.\",\n        \"Silences make the real conversations between friends. Not the saying but the never needing to say is what counts.\",\n        \"All truths are easy to understand once they are discovered; the point is to discover them.\",\n        \"Let us resolve to be masters, not the victims, of our history, controlling our own destiny without giving way to blind suspicions and emotions.\",\n        \"Everyone should carefully observe which way his heart draws him, and then choose that way with all his strength.\",\n        \"Love doesn't make the world go round, love is what makes the ride worthwhile.\",\n        \"What we achieve inwardly will change outer reality.\",\n        \"Never let lack of money interfere with having fun.\",\n        \"Knowledge is a process of piling up facts; wisdom lies in their simplification.\",\n        \"Knowing is not enough; we must apply!\",\n        \"To give hope to someone occurs when you teach them how to use the tools to do it for themselves.\",\n        \"Wisdom is the reward you get for a lifetime of listening when you'd have preferred to talk.\",\n        \"To change ones life, start immediately, do it flamboyantly, no exceptions.\",\n        \"No man is free who is not master of himself.\",\n        \"Love all, trust a few, do wrong to none.\",\n        \"Imagination is the living power and prime agent of all human perception.\",\n        \"I walk slowly, but I never walk backward.\",\n        \"Life a culmination of the past, an awareness of the present, an indication of the future beyond knowledge, the quality that gives a touch of divinity to matter.\",\n        \"All our knowledge has its origins in our perceptions.\",\n        \"What lies behind us and what lies before us are tiny matters compared to what lies within us.\",\n        \"To succeed, we must first believe that we can.\",\n        \"He who fears being conquered is sure of defeat.\",\n        \"If you're in a bad situation, don't worry it'll change. If you're in a good situation, don't worry it'll change.\",\n        \"In a controversy the instant we feel anger we have already ceased striving for the truth, and have begun striving for ourselves.\",\n        \"As our case is new, we must think and act anew.\",\n        \"The future belongs to those who believe in the beauty of their dreams.\",\n        \"A short saying often contains much wisdom.\",\n        \"The best thing about the future is that it only comes one day at a time.\",\n        \"You do not become good by trying to be good, but by finding the goodness that is already within you.\",\n        \"With the realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"There is no great genius without some touch of madness.\",\n        \"We have two ears and one mouth so that we can listen twice as much as we speak.\",\n        \"Successful people ask better questions, and as a result, they get better answers.\",\n        \"Feeling and longing are the motive forces behind all human endeavor and human creations.\",\n        \"Happiness depends upon ourselves.\",\n        \"The most decisive actions of our life... are most often unconsidered actions.\",\n        \"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.\",\n        \"When you learn, teach. When you get, give.\",\n        \"You are the only person on earth who can use your ability.\",\n        \"Fear not for the future, weep not for the past.\",\n        \"Everything is perfect in the universe even your desire to improve it.\",\n        \"Never tell me the sky is the limit when there are footprints on the moon.\",\n        \"In order to win, you must expect to win.\",\n        \"The noblest worship is to make yourself as good and as just as you can.\",\n        \"The truth of the matter is that you always know the right thing to do. The hard part is doing it.\",\n        \"All perceiving is also thinking, all reasoning is also intuition, all observation is also invention.\",\n        \"Know, first, who you are, and then adorn yourself accordingly.\",\n        \"Imagination is the living power and prime agent of all human perception.\",\n        \"Learning without reflection is a waste, reflection without learning is dangerous.\",\n        \"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut.\",\n        \"A day of worry is more exhausting than a day of work.\",\n        \"Many of life's failures are people who did not realize how close they were to success when they gave up.\",\n        \"If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place.\",\n        \"If your actions inspire others to dream more, learn more, do more and become more, you are a leader.\",\n        \"The only real mistake is the one from which we learn nothing.\",\n        \"The only Zen you find on the tops of mountains is the Zen you bring up there.\",\n        \"Our ability to achieve happiness and success depends on the strength of our wings.\",\n        \"We make our own fortunes and we call them fate.\",\n        \"There is nothing happens to any person but what was in his power to go through with.\",\n        \"There are basically two types of people. People who accomplish things, and people who claim to have accomplished things. The first group is less crowded.\",\n        \"I will not be concerned at other men is not knowing me;I will be concerned at my own want of ability.\",\n        \"Be what you are. This is the first step toward becoming better than you are.\",\n        \"I'm not interested in age. People who tell me their age are silly. You're as old as you feel.\",\n        \"Never be afraid to try, remember... Amateurs built the ark, Professionals built the Titanic.\",\n        \"It is with words as with sunbeams. The more they are condensed, the deeper they burn.\",\n        \"Criticism is something you can easily avoid by saying nothing, doing nothing, and being nothing.\",\n        \"There is nothing in a caterpillar that tells you it's going to be a butterfly.\",\n        \"The more you know yourself, the more you forgive yourself.\",\n        \"Nature gave us one tongue and two ears so we could hear twice as much as we speak.\",\n        \"With the realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"Ignorance never settle a question.\",\n        \"A bend in the road is not the end of the road...unless you fail to make the turn.\",\n        \"Kindness is the language which the deaf can hear and the blind can see.\",\n        \"I gave my life to become the person I am right now. Was it worth it?\",\n        \"Truth is powerful and it prevails.\",\n        \"Never apologize for showing feelings. When you do so, you apologize for the truth.\",\n        \"In the end we retain from our studies only that which we practically apply.\",\n        \"Argue for your limitations, and sure enough theyre yours.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"A failure is a man who has blundered but is not capable of cashing in on the experience.\",\n        \"You are special, you are unique, you are the best!\",\n        \"Most great people have attained their greatest success just one step beyond their greatest failure.\",\n        \"Impossibilities are merely things which we have not yet learned.\",\n        \"Give thanks for a little and you will find a lot.\",\n        \"Vision without action is a daydream. Action without vision is a nightmare.\",\n        \"Don't be dismayed by good-byes. A farewell is necessary before you can meet again. And meeting again, after moments or lifetimes, is certain for those who are friends.\",\n        \"Happiness does not come about only due to external circumstances; it mainly derives from inner attitudes.\",\n        \"To hell with circumstances; I create opportunities.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"I am like a falling star who has finally found her place next to another in a lovely constellation, where we will sparkle in the heavens forever.\",\n        \"You're not obligated to win. You're obligated to keep trying to do the best you can every day.\",\n        \"A fine quotation is a diamond on the finger of a man of wit, and a pebble in the hand of a fool.\",\n        \"Myths which are believed in tend to become true.\",\n        \"Things do not change, we change.\",\n        \"Why worry about tomorrow, when today is all we have?\",\n        \"The minute you settle for less than you deserve, you get even less than you settled for.\",\n        \"Consider that not only do negative thoughts and emotions destroy our experience of peace, they also undermine our health.\",\n        \"Time changes everything except something within us which is always surprised by change.\",\n        \"The best and most beautiful things in the world cannot be seen, nor touched... but are felt in the heart.\",\n        \"There are basically two types of people. People who accomplish things, and people who claim to have accomplished things. The first group is less crowded.\",\n        \"Nothing great was ever achieved without enthusiasm.\",\n        \"When you are offended at any man's fault, turn to yourself and study your own failings. Then you will forget your anger.\",\n        \"When you lose, don't lose the lesson.\",\n        \"A man is not old as long as he is seeking something.\",\n        \"Invent your world. Surround yourself with people, color, sounds, and work that nourish you.\",\n        \"If you're walking down the right path and you're willing to keep walking, eventually you'll make progress.\",\n        \"No matter how hard the past, you can always begin again.\",\n        \"God always takes the simplest way.\",\n        \"The greatest remedy for anger is delay.\",\n        \"Everything you can imagine is real.\",\n        \"Whoso loves, believes the impossible.\",\n        \"When in doubt, tell the truth.\",\n        \"Ignorant men don't know what good they hold in their hands until they've flung it away.\",\n        \"Every great advance in science has issued from a new audacity of the imagination.\",\n        \"Just trust yourself, then you will know how to live.\",\n        \"Talk doesn't cook rice.\",\n        \"To be beautiful means to be yourself. You do not need to be accepted by others. You need to accept yourself.\",\n        \"Through meditation and by giving full attention to one thing at a time, we can learn to direct attention where we choose.\",\n        \"You can only grow if you're willing to feel awkward and uncomfortable when you try something new.\",\n        \"Happiness is the reward we get for living to the highest right we know.\",\n        \"Life is the flower for which love is the honey.\",\n        \"Sometimes the cards we are dealt are not always fair. However you must keep smiling and moving on.\",\n        \"Before you can inspire with emotion, you must be swamped with it yourself. Before you can move their tears, your own must flow. To convince them, you must yourself believe.\",\n        \"He who controls others may be powerful, but he who has mastered himself is mightier still.\",\n        \"Try and fail, but don't fail to try.\",\n        \"Every man is a volume if you know how to read him.\",\n        \"Some people are always grumbling because roses have thorns; I am thankful that thorns have roses.\",\n        \"A lot of people give up just before theyre about to make it. You know you never know when that next obstacle is going to be the last one.\",\n        \"Every action of our lives touches on some chord that will vibrate in eternity.\",\n        \"The time you think you're missing, misses you too.\",\n        \"You got to be careful if you don't know where you're going, because you might not get there.\",\n        \"A leader or a man of action in a crisis almost always acts subconsciously and then thinks of the reasons for his action.\",\n        \"Wisdom is the reward you get for a lifetime of listening when you'd have preferred to talk.\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"Experience is not what happens to a man. It is what a man does with what happens to him.\",\n        \"The journey of a thousand miles begins with one step.\",\n        \"All action results from thought, so it is thoughts that matter.\",\n        \"To free us from the expectations of others, to give us back to ourselves there lies the great, singular power of self-respect.\",\n        \"The greatest barrier to success is the fear of failure.\",\n        \"When you judge another, you do not define them, you define yourself.\",\n        \"He who lives in harmony with himself lives in harmony with the world.\",\n        \"To go against the dominant thinking of your friends, of most of the people you see every day, is perhaps the most difficult act of heroism you can perform.\",\n        \"Waste no more time arguing about what a good man should be. Be one.\",\n        \"Good luck is another name for tenacity of purpose.\",\n        \"Do more than dream: work.\",\n        \"Always be smarter than the people who hire you.\",\n        \"There are only two mistakes one can make along the road to truth; not going all the way, and not starting.\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"For everything that lives is holy, life delights in life.\",\n        \"Blessed is the man who expects nothing, for he shall never be disappointed.\",\n        \"Don't judge each day by the harvest you reap but by the seeds you plant.\",\n        \"The grand essentials of happiness are: something to do, something to love, and something to hope for.\",\n        \"When anger use your energy to do something productive.\",\n        \"Every man dies. Not every man really lives.\",\n        \"It is better to travel well than to arrive.\",\n        \"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it.\",\n        \"Four steps to achievement: Plan purposefully. Prepare prayerfully. Proceed positively. Pursue persistently.\",\n        \"Your vision will become clear only when you can look into your own heart. Who looks outside, dreams; who looks inside, awakes.\",\n        \"Imagination is the living power and prime agent of all human perception.\",\n        \"All children are artists. The problem is how to remain an artist once he grows up.\",\n        \"Wisdom begins in wonder.\",\n        \"If you'll not settle for anything less than your best, you will be amazed at what you can accomplish in your lives.\",\n        \"A lot of times people look at the negative side of what they feel they can't do. I always look on the positive side of what I can do.\",\n        \"Love all, trust a few, do wrong to none.\",\n        \"Life is a learning experience, only if you learn.\",\n        \"The pain passes, but the beauty remains.\",\n        \"No man was ever wise by chance.\",\n        \"No man can succeed in a line of endeavor which he does not like.\",\n        \"Just as a flower, which seems beautiful has color but no perfume, so are the fruitless words of a man who speaks them but does them not.\",\n        \"Prejudice is a burden that confuses the past, threatens the future and renders the present inaccessible.\",\n        \"You can do what's reasonable or you can decide what's possible.\",\n        \"Your sacred space is where you can find yourself again and again.\",\n        \"Everything can be taken from a man but ... the last of the human freedoms to choose ones attitude in any given set of circumstances, to choose ones own way.\",\n        \"Love and compassion open our own inner life, reducing stress, distrust and loneliness.\",\n        \"Without passion man is a mere latent force and possibility, like the flint which awaits the shock of the iron before it can give forth its spark.\",\n        \"Real magic in relationships means an absence of judgement of others.\",\n        \"All serious daring starts from within.\",\n        \"More often than not, anger is actually an indication of weakness rather than of strength.\",\n        \"Sincerity is the way of Heaven. The attainment of sincerity is the way of men.\",\n        \"The path to success is to take massive, determined action.\",\n        \"Forgiveness does not change the past, but it does enlarge the future.\",\n        \"Don't compromise yourself. You are all you've got.\",\n        \"Give it all you've got because you never know if there's going to be a next time.\",\n        \"Being in humaneness is good. If we select other goodness and thus are far apart from humaneness, how can we be the wise?\",\n        \"Do more than dream: work.\",\n        \"The important thing is this: to be able at any moment to sacrifice what we are for what we could become.\",\n        \"Faith in oneself is the best and safest course.\",\n        \"To change ones life, start immediately, do it flamboyantly, no exceptions.\",\n        \"The purpose of learning is growth, and our minds, unlike our bodies, can continue growing as we continue to live.\",\n        \"Although there may be tragedy in your life, there's always a possibility to triumph. It doesn't matter who you are, where you come from. The ability to triumph begins with you. Always.\",\n        \"The pain passes, but the beauty remains.\",\n        \"Complaining doesn't change a thing only taking action does.\",\n        \"Example has more followers than reason.\",\n        \"First say to yourself what you would be; and then do what you have to do.\",\n        \"To understand the heart and mind of a person, look not at what he has already achieved, but at what he aspires to do.\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"Truth isn't all about what actually happens but more about how what has happened is interpreted.\",\n        \"You cannot be lonely if you like the person you're alone with.\",\n        \"When performance exceeds ambition, the overlap is called success.\",\n        \"Very little is needed to make a happy life; it is all within yourself, in your way of thinking.\",\n        \"Experience keeps a dear school, but fools will learn in no other.\",\n        \"Well begun is half done.\",\n        \"Failure doesn't mean you are a failure it just means you haven't succeeded yet.\",\n        \"The world makes way for the man who knows where he is going.\",\n        \"By living deeply in the present moment we can understand the past better and we can prepare for a better future.\",\n        \"Look forward to spring as a time when you can start to see what nature has to offer once again.\",\n        \"The future belongs to those who believe in the beauty of their dreams.\",\n        \"We read the world wrong and say that it deceives us.\",\n        \"Character develops itself in the stream of life.\",\n        \"What do we live for, if it is not to make life less difficult for each other?\",\n        \"While we try to teach our children all about life, our children teach us what life is all about.\",\n        \"All perceiving is also thinking, all reasoning is also intuition, all observation is also invention.\",\n        \"With every experience, you alone are painting your own canvas, thought by thought, choice by choice.\",\n        \"Most of the shadows of life are caused by standing in our own sunshine.\",\n        \"Smile, breathe and go slowly.\",\n        \"Just as much as we see in others we have in ourselves.\",\n        \"If you can dream it, you can do it.\",\n        \"Life is so constructed that an event does not, cannot, will not, match the expectation.\",\n        \"If the single man plant himself indomitably on his instincts, and there abide, the huge world will come round to him.\",\n        \"Your vision will become clear only when you can look into your own heart. Who looks outside, dreams; who looks inside, awakes.\",\n        \"Give thanks for a little and you will find a lot.\",\n        \"Don't judge each day by the harvest you reap but by the seeds that you plant.\",\n        \"Life is not measured by the breaths you take, but by its breathtaking moments.\",\n        \"The most beautiful things in the world cannot be seen or even touched. They must be felt with the heart.\",\n        \"Listen to your intuition. It will tell you everything you need to know.\",\n        \"You cannot travel the path until you have become the path itself.\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"In all things of nature there is something of the marvellous.\",\n        \"From wonder into wonder existence opens.\",\n        \"There are two ways to slide easily through life: to believe everything or to doubt everything; both ways save us from thinking.\",\n        \"We must embrace pain and burn it as fuel for our journey.\",\n        \"To dare is to lose ones footing momentarily. To not dare is to lose oneself.\",\n        \"There are no failures. Just experiences and your reactions to them.\",\n        \"He who wishes to secure the good of others, has already secured his own.\",\n        \"Remember that sometimes not getting what you want is a wonderful stroke of luck.\",\n        \"Don't ruin the present with the ruined past.\",\n        \"Never tell a young person that anything cannot be done. God may have been waiting centuries for someone ignorant enough of the impossible to do that very thing.\",\n        \"To understand the heart and mind of a person, look not at what he has already achieved, but at what he aspires to do.\",\n        \"Mistakes are always forgivable, if one has the courage to admit them.\",\n        \"Anybody can make history. Only a great man can write it.\",\n        \"Efficiency is doing things right; effectiveness is doing the right things.\",\n        \"Do one thing every day that scares you.\",\n        \"You can only grow if you're willing to feel awkward and uncomfortable when you try something new.\",\n        \"Who we are never changes. Who we think we are does.\",\n        \"The future belongs to those who believe in the beauty of their dreams.\",\n        \"You must do the things you think you cannot do.\",\n        \"Spirituality can be severed from both vicious sectarianism and thoughtless banalities. Spirituality, I have come to see, is nothing less than the thoughtful love of life.\",\n        \"The least of things with a meaning is worth more in life than the greatest of things without it.\",\n        \"Whenever you have eliminated the impossible, whatever remains, however improbable, must be the truth.\",\n        \"Don't smother each other. No one can grow in the shade.\",\n        \"They must often change, who would be constant in happiness or wisdom.\",\n        \"If you love someone, set them free. If they come back they're yours; if they don't they never were.\",\n        \"My mama always said: life's like a box of chocolate you never know what you gonna get.\",\n        \"Id rather regret the things that I have done than the things that I have not done.\",\n        \"The only way to tell the truth is to speak with kindness. Only the words of a loving man can be heard.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"When you begin to touch your heart or let your heart be touched, you begin to discover that it's bottomless.\",\n        \"No day in which you learn something is a complete loss.\",\n        \"We see things not as they are, but as we are. Our perception is shaped by our previous experiences.\",\n        \"The greater part of human pain is unnecessary. It is self-created as long as the unobserved mind runs your life.\",\n        \"Be slow of tongue and quick of eye.\",\n        \"Time changes everything except something within us which is always surprised by change.\",\n        \"Until you value yourself, you won't value your time. Until you value your time, you won't do anything with it.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"Correction does much, but encouragement does more.\",\n        \"My mama always said: life's like a box of chocolate you never know what you gonna get.\",\n        \"Study the past, if you would divine the future.\",\n        \"However many holy words you read, However many you speak, What good will they do you If you do not act on upon them?\",\n        \"To know oneself is to study oneself in action with another person.\",\n        \"If there is no struggle, there is no progress.\",\n        \"Every man dies. Not every man really lives.\",\n        \"Be sure you put your feet in the right place, then stand firm.\",\n        \"We know from science that nothing in the universe exists as an isolated or independent entity.\",\n        \"Forgiveness is choosing to love. It is the first skill of self-giving love.\",\n        \"We cannot solve our problems with the same thinking we used when we created them.\",\n        \"Numberless are the worlds wonders, but none more wonderful than man.\",\n        \"God always takes the simplest way.\",\n        \"All know the way; few actually walk it.\",\n        \"Courage is what it takes to stand up and speak; courage is also what it takes to sit down and listen.\",\n        \"To dream of the person you would like to be is to waste the person you are.\",\n        \"The deepest craving of human nature is the need to be appreciated.\",\n        \"Your work is to discover your work and then with all your heart to give yourself to it.\",\n        \"Don't ruin the present with the ruined past.\",\n        \"If one way be better than another, that you may be sure is natures way.\",\n        \"Don't focus on making the right decision, focus on making the decision the right one.\",\n        \"No person is your friend who demands your silence, or denies your right to grow.\",\n        \"To know oneself is to study oneself in action with another person.\",\n        \"You are never given a wish without also being given the power to make it come true. You may have to work for it, however.\",\n        \"Great indeed is the sublimity of the Creative, to which all beings owe their beginning and which permeates all heaven.\",\n        \"It's easier to see the mistakes on someone else's paper.\",\n        \"Remembering a wrong is like carrying a burden on the mind.\",\n        \"Do not turn back when you are just at the goal.\",\n        \"Silences make the real conversations between friends. Not the saying but the never needing to say is what counts.\",\n        \"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.\",\n        \"Listen to your intuition. It will tell you everything you need to know.\",\n        \"The best teacher is experience learned from failures.\",\n        \"Moral excellence comes about as a result of habit. We become just by doing just acts, temperate by doing temperate acts, brave by doing brave acts.\",\n        \"We cannot solve our problems with the same thinking we used when we created them.\",\n        \"Sadness flies away on the wings of time.\",\n        \"The shortest answer is doing.\",\n        \"Everything that exists is in a manner the seed of that which will be.\",\n        \"A house divided against itself cannot stand.\",\n        \"Adversity isn't set against you to fail; adversity is a way to build your character so that you can succeed over and over again through perseverance.\",\n        \"Success is getting what you want. Happiness is wanting what you get.\",\n        \"Great is the art of beginning, but greater is the art of ending.\",\n        \"Don't let today's disappointments cast a shadow on tomorrow's dreams.\",\n        \"Difficulties are things that show a person what they are.\",\n        \"The reason most goals are not achieved is that we spend our time doing second things first.\",\n        \"Great acts are made up of small deeds.\",\n        \"Having nothing, nothing can he lose.\",\n        \"Intuition will tell the thinking mind where to look next.\",\n        \"You give before you get.\",\n        \"Our greatest glory is not in never falling, but in rising every time we fall.\",\n        \"Meditation is the dissolution of thoughts in eternal awareness or Pure consciousness without objectification, knowing without thinking, merging finitude in infinity.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"If you do not change direction, you may end up where you are heading.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"From small beginnings come great things.\",\n        \"What do we live for, if it is not to make life less difficult for each other?\",\n        \"Happiness is not in the mere possession of money; it lies in the joy of achievement, in the thrill of creative effort.\",\n        \"He who knows, does not speak. He who speaks, does not know.\",\n        \"He who angers you conquers you.\",\n        \"Life is what happens to you while you're busy making other plans.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"Whoever is happy will make others happy, too.\",\n        \"There are no failures just experiences and your reactions to them.\",\n        \"Remember always that you not only have the right to be an individual, you have an obligation to be one.\",\n        \"A thing long expected takes the form of the unexpected when at last it comes.\",\n        \"Love and compassion open our own inner life, reducing stress, distrust and loneliness.\",\n        \"To go against the dominant thinking of your friends, of most of the people you see every day, is perhaps the most difficult act of heroism you can perform.\",\n        \"The key to growth is the introduction of higher dimensions of consciousness into our awareness.\",\n        \"If you would take, you must first give, this is the beginning of intelligence.\",\n        \"A thing long expected takes the form of the unexpected when at last it comes.\",\n        \"The most precious gift we can offer anyone is our attention. When mindfulness embraces those we love, they will bloom like flowers.\",\n        \"He that never changes his opinions, never corrects his mistakes, and will never be wiser on the morrow than he is today.\",\n        \"Almost everything comes from nothing.\",\n        \"Your vision will become clear only when you can look into your own heart. Who looks outside, dreams; who looks inside, awakes.\",\n        \"The first step to getting the things you want out of life is this: decide what you want.\",\n        \"If we are not fully ourselves, truly in the present moment, we miss everything.\",\n        \"If you kick a stone in anger, you'll hurt your own foot.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"Everything that exists is in a manner the seed of that which will be.\",\n        \"We are Divine enough to ask and we are important enough to receive.\",\n        \"Staying in one place is the best path to be taken over and surpassed by many.\",\n        \"When we quit thinking primarily about ourselves and our own self-preservation, we undergo a truly heroic transformation of consciousness.\",\n        \"He who experiences the unity of life sees his own Self in all beings, and all beings in his own Self, and looks on everything with an impartial eye.\",\n        \"In skating over thin ice our safety is in our speed.\",\n        \"There is one thing you have got to learn about our movement. Three people are better than no people.\",\n        \"Everyone has been made for some particular work, and the desire for that work has been put in every heart.\",\n        \"Well begun is half done.\",\n        \"Blaze with the fire that is never extinguished.\",\n        \"A hero is no braver than an ordinary man, but he is braver five minutes longer.\",\n        \"To get the full value of joy you must have someone to divide it with.\",\n        \"The wisest men follow their own direction.\",\n        \"You are the only person on Earth who can use your ability.\",\n        \"You get peace of mind not by thinking about it or imagining it, but by quietening and relaxing the restless mind.\",\n        \"Today is the tomorrow you worried about yesterday.\",\n        \"Silence is a fence around wisdom.\",\n        \"You learn to speak by speaking, to study by studying, to run by running, to work by working; in just the same way, you learn to love by loving.\",\n        \"Take it easy, but take it.\",\n        \"Sometimes the biggest act of courage is a small one.\",\n        \"Limitations live only in our minds. But if we use our imaginations, our possibilities become limitless.\",\n        \"Transformation does not start with some one else changing you; transformation is an inner self reworking of what you are now to what you will be.\",\n        \"Who looks outside, dreams; who looks inside, awakes.\",\n        \"There is nothing impossible to him who will try.\",\n        \"Do not waste yourself in rejection, nor bark against the bad, but chant the beauty of the good.\",\n        \"It is only with the heart that one can see rightly, what is essential is invisible to the eye.\",\n        \"One fails forward toward success.\",\n        \"Don't frown because you never know who is falling in love with your smile.\",\n        \"People who say it cannot be done should not interrupt those who are doing it.\",\n        \"The greatest barrier to success is the fear of failure.\",\n        \"We cannot do everything at once, but we can do something at once.\",\n        \"As an organizer I start from where the world is, as it is, not as I would like it to be.\",\n        \"All serious daring starts from within.\",\n        \"Fate is in your hands and no one elses\",\n        \"A man of ability and the desire to accomplish something can do anything.\",\n        \"The happiness of a man in this life does not consist in the absence but in the mastery of his passions.\",\n        \"Spirituality can be severed from both vicious sectarianism and thoughtless banalities. Spirituality, I have come to see, is nothing less than the thoughtful love of life.\",\n        \"The past has no power to stop you from being present now. Only your grievance about the past can do that.\",\n        \"Efficiency is doing things right; effectiveness is doing the right things.\",\n        \"All that is necessary is to accept the impossible, do without the indispensable, and bear the intolerable.\",\n        \"I prefer to be true to myself, even at the hazard of incurring the ridicule of others, rather than to be false, and to incur my own abhorrence.\",\n        \"You need chaos in your soul to give birth to a dancing star.\",\n        \"Don't wait. The time will never be just right.\",\n        \"Arriving at one point is the starting point to another.\",\n        \"To dare is to lose ones footing momentarily. To not dare is to lose oneself.\",\n        \"Just as a flower, which seems beautiful has color but no perfume, so are the fruitless words of a man who speaks them but does them not.\",\n        \"In the depth of winter, I finally learned that there was within me an invincible summer.\",\n        \"Rather than wishing for change, you first must be prepared to change.\",\n        \"He who conquers others is strong; He who conquers himself is mighty.\",\n        \"Intuition is the supra-logic that cuts out all the routine processes of thought and leaps straight from the problem to the answer.\",\n        \"It is the mark of an educated mind to be able to entertain a thought without accepting it.\",\n        \"He who knows himself is enlightened.\",\n        \"The more light you allow within you, the brighter the world you live in will be.\",\n        \"Happiness mainly comes from our own attitude, rather than from external factors.\",\n        \"Cherish your visions and your dreams as they are the children of your soul; the blueprints of your ultimate achievements.\",\n        \"To be great is to be misunderstood.\",\n        \"Friendship isn't a big thing. It's a million little things.\",\n        \"Impossibilities are merely things which we have not yet learned.\",\n        \"Iron rusts from disuse; water loses its purity from stagnation... even so does inaction sap the vigour of the mind.\",\n        \"The odds of hitting your target go up dramatically when you aim at it.\",\n        \"The greatest mistake you can make in life is to be continually fearing you will make one.\",\n        \"There is no duty we so underrate as the duty of being happy. By being happy we sow anonymous benefits upon the world.\",\n        \"I hear and I forget. I see and I remember. I do and I understand.\",\n        \"We know the truth, not only by the reason, but by the heart.\",\n        \"What matters is the value we've created in our lives, the people we've made happy and how much we've grown as people.\",\n        \"Nothing will work unless you do.\",\n        \"A good teacher is like a candle it consumes itself to light the way for others.\",\n        \"To be aware of a single shortcoming in oneself is more useful than to be aware of a thousand in someone else.\",\n        \"Adversity has the effect of eliciting talents, which in prosperous circumstances would have lain dormant.\",\n        \"The greatest barrier to success is the fear of failure.\",\n        \"In the sky, there is no distinction of east and west; people create distinctions out of their own minds and then believe them to be true.\",\n        \"Open minds lead to open doors.\",\n        \"Your attitude, not your aptitude, will determine your altitude.\",\n        \"To know oneself is to study oneself in action with another person.\",\n        \"Do not be embarrassed by your mistakes. Nothing can teach us better than our understanding of them. This is one of the best ways of self-education.\",\n        \"Fear is a darkroom where negatives develop.\",\n        \"The highest stage in moral ure at which we can arrive is when we recognize that we ought to control our thoughts.\",\n        \"If you correct your mind, the rest of your life will fall into place.\",\n        \"Imagination is not a talent of some men but is the health of every man.\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"As we are liberated from our own fear, our presence automatically liberates others.\",\n        \"When you lose, don't lose the lesson.\",\n        \"To be able to give away riches is mandatory if you wish to possess them. This is the only way that you will be truly rich.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"An idea that is developed and put into action is more important than an idea that exists only as an idea.\",\n        \"Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.\",\n        \"Action may not always bring happiness; but there is no happiness without action.\",\n        \"There is nothing so useless as doing efficiently that which should not be done at all.\",\n        \"Be your own hero, it's cheaper than a movie ticket.\",\n        \"God always takes the simplest way.\",\n        \"The first step to getting the things you want out of life is this: decide what you want.\",\n        \"It is not the possession of truth, but the success which attends the seeking after it, that enriches the seeker and brings happiness to him.\",\n        \"The longer we dwell on our misfortunes, the greater is their power to harm us.\",\n        \"Freedom is the right to live as we wish.\",\n        \"He who wishes to secure the good of others, has already secured his own.\",\n        \"Positive thinking will let you do everything better than negative thinking will.\",\n        \"Giving up doesn't always mean you are weak; sometimes it means that you are strong enough to let go.\",\n        \"Knowledge rests not upon truth alone, but upon error also.\",\n        \"The best thing in every noble dream is the dreamer...\",\n        \"To understand the heart and mind of a person, look not at what he has already achieved, but at what he aspires to do.\",\n        \"Don't wait for people to be friendly. Show them how.\",\n        \"Nature takes away any faculty that is not used.\",\n        \"To be thoughtful and kind only takes a few seconds compared to the timeless hurt caused by one rude gesture.\",\n        \"Where there is great love, there are always miracles.\",\n        \"When you see a good person, think of becoming like him. When you see someone not so good, reflect on your own weak points.\",\n        \"What we see is mainly what we look for.\",\n        \"My advice to you is not to inquire why or whither, but just enjoy your ice cream while its on your plate that's my philosophy.\",\n        \"The only limit to your impact is your imagination and commitment.\",\n        \"Life is a succession of moments. To live each one is to succeed.\",\n        \"Happiness is the reward we get for living to the highest right we know.\",\n        \"Character cannot be developed in ease and quiet. Only through experience of trial and suffering can the soul be strengthened, vision cleared, ambition inspired, and success achieved.\",\n        \"A good teacher is like a candle it consumes itself to light the way for others.\",\n        \"The world is always in movement.\",\n        \"Through pride we are ever deceiving ourselves. But deep down below the surface of the average conscience a still, small voice says to us, Something is out of tune.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"Everything can be taken from a man but ... the last of the human freedoms to choose ones attitude in any given set of circumstances, to choose ones own way.\",\n        \"Liberty, taking the word in its concrete sense, consists in the ability to choose.\",\n        \"When we quit thinking primarily about ourselves and our own self-preservation, we undergo a truly heroic transformation of consciousness.\",\n        \"All our talents increase in the using, and the every faculty, both good and bad, strengthen by exercise.\",\n        \"Life isn't about finding yourself. Life is about creating yourself.\",\n        \"There is no retirement for an artist, it's your way of living so there is no end to it.\",\n        \"You can't choose up sides on a round world.\",\n        \"To be wronged is nothing unless you continue to remember it.\",\n        \"You can complain because roses have thorns, or you can rejoice because thorns have roses.\",\n        \"Peace is not something you wish for. It's something you make, something you do, something you are, and something you give away.\",\n        \"Through meditation and by giving full attention to one thing at a time, we can learn to direct attention where we choose.\",\n        \"Doing what you love is the cornerstone of having abundance in your life.\",\n        \"Nothing great was ever achieved without enthusiasm.\",\n        \"The awareness of our own strength makes us modest.\",\n        \"Joy is the best makeup.\",\n        \"If you smile when no one else is around, you really mean it.\",\n        \"Everything that irritates us about others can lead us to an understanding about ourselves.\",\n        \"Love does not consist of gazing at each other, but in looking together in the same direction.\",\n        \"If one way be better than another, that you may be sure is natures way.\",\n        \"Strength to carry on despite the odds means you have faith in your own abilities and know how.\",\n        \"The truth which has made us free will in the end make us glad also.\",\n        \"If you look into your own heart, and you find nothing wrong there, what is there to worry about? What is there to fear?\",\n        \"Do you want to know who you are? Don't ask. Act! Action will delineate and define you.\",\n        \"All great men are gifted with intuition. They know without reasoning or analysis, what they need to know.\",\n        \"Appreciation can make a day, even change a life. Your willingness to put it into words is all that is necessary.\",\n        \"It is not in the stars to hold our destiny but in ourselves.\",\n        \"The cautious seldom err.\",\n        \"Learn from yesterday, live for today, hope for tomorrow.\",\n        \"Life isn't about finding yourself. Life is about creating yourself.\",\n        \"It is only when the mind and character slumber that the dress can be seen.\",\n        \"Everyone can taste success when the going is easy, but few know how to taste victory when times get tough.\",\n        \"When performance exceeds ambition, the overlap is called success.\",\n        \"Time you enjoy wasting, was not wasted.\",\n        \"He that never changes his opinions, never corrects his mistakes, and will never be wiser on the morrow than he is today.\",\n        \"If you spend too much time thinking about a thing, you'll never get it done.\",\n        \"Don't be afraid to go out on a limb. That's where the fruit is.\",\n        \"Happiness cannot be travelled to, owned, earned, worn or consumed. Happiness is the spiritual experience of living every minute with love, grace and gratitude.\",\n        \"If you don't know where you are going, you will probably end up somewhere else.\",\n        \"Every human being is the author of his own health or disease.\",\n        \"The greatest minds are capable of the greatest vices as well as of the greatest virtues.\",\n        \"Age does not protect you from love. But love, to some extent, protects you from age.\",\n        \"Each time we face a fear, we gain strength, courage, and confidence in the doing.\",\n        \"There is one thing you have got to learn about our movement. Three people are better than no people.\",\n        \"What the caterpillar calls the end of the world, the master calls a butterfly.\",\n        \"Today is the tomorrow you worried about yesterday.\",\n        \"Being right is highly overrated. Even a stopped clock is right twice a day.\",\n        \"Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world.\",\n        \"Until you make peace with who you are, you'll never be content with what you have.\",\n        \"Peace of mind is not the absence of conflict from life, but the ability to cope with it.\",\n        \"They can conquer who believe they can.\",\n        \"The world has the habit of making room for the man whose actions show that he knows where he is going.\",\n        \"The more you know yourself, the more you forgive yourself.\",\n        \"All our knowledge has its origins in our perceptions.\",\n        \"Everyone thinks of changing the world, but no one thinks of changing himself.\",\n        \"Before you can inspire with emotion, you must be swamped with it yourself. Before you can move their tears, your own must flow. To convince them, you must yourself believe.\",\n        \"If you break your neck, if you have nothing to eat, if your house is on fire, then you got a problem. Everything else is inconvenience.\",\n        \"The world is always in movement.\",\n        \"All the great performers I have worked with are fuelled by a personal dream.\",\n        \"Three things in human life are important. The first is to be kind. The second is to be kind. The third is to be kind.\",\n        \"Absence makes the heart grow fonder.\",\n        \"Those who are blessed with the most talent don't necessarily outperform everyone else. It's the people with follow-through who excel.\",\n        \"Do, or do not. There is no try.\",\n        \"It has never been my object to record my dreams, just to realize them.\",\n        \"Can you imagine what I would do if I could do all I can?\",\n        \"There is nothing happens to any person but what was in his power to go through with.\",\n        \"If one way be better than another, that you may be sure is natures way.\",\n        \"Pick battles big enough to matter, small enough to win.\",\n        \"Miracles come in moments. Be ready and willing.\",\n        \"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\",\n        \"Treat people as if they were what they ought to be and you help them to become what they are capable of being.\",\n        \"Success is getting what you want. Happiness is wanting what you get.\",\n        \"To be thoughtful and kind only takes a few seconds compared to the timeless hurt caused by one rude gesture.\",\n        \"If you are patient in one moment of anger, you will escape one hundred days of sorrow.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity.\",\n        \"Every sixty seconds you spend angry, upset or mad, is a full minute of happiness you will never get back.\",\n        \"By going beyond your own problems and taking care of others, you gain inner strength, self-confidence, courage, and a greater sense of calm.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"A man who doesn't trust himself can never really trust anyone else.\",\n        \"Love is not blind; it simply enables one to see things others fail to see.\",\n        \"Kind words can be short and easy to speak but their echoes are truly endless.\",\n        \"When you don't know what you believe, everything becomes an argument. Everything is debatable. But when you stand for something, decisions are obvious.\",\n        \"Everyone has been made for some particular work, and the desire for that work has been put in every heart.\",\n        \"You need chaos in your soul to give birth to a dancing star.\",\n        \"Always be mindful of the kindness and not the faults of others.\",\n        \"Before you put on a frown, make absolutely sure there are no smiles available.\",\n        \"Accept the things to which fate binds you, and love the people with whom fate brings you together, but do so with all your heart.\",\n        \"It is not in the stars to hold our destiny but in ourselves.\",\n        \"Intuition is the supra-logic that cuts out all the routine processes of thought and leaps straight from the problem to the answer.\",\n        \"Be like the flower, turn your face to the sun.\",\n        \"The simplest things are often the truest.\",\n        \"Before you put on a frown, make absolutely sure there are no smiles available.\",\n        \"If you surrender to the wind, you can ride it.\",\n        \"First say to yourself what you would be; and then do what you have to do.\",\n        \"If you want your life to be more rewarding, you have to change the way you think.\",\n        \"Wisdom is the supreme part of happiness.\",\n        \"I do not believe in a fate that falls on men however they act; but I do believe in a fate that falls on man unless they act.\",\n        \"Blessed is the person who is too busy to worry in the daytime, and too sleepy to worry at night.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"Remember that sometimes not getting what you want is a wonderful stroke of luck.\",\n        \"I've never seen a smiling face that was not beautiful.\",\n        \"I'm not in this world to live up to your expectations and you're not in this world to live up to mine.\",\n        \"The future is completely open, and we are writing it moment to moment.\",\n        \"Everyone is a genius at least once a year. A real genius has his original ideas closer together.\",\n        \"If I know what love is, it is because of you.\",\n        \"Our greatest glory is not in never falling, but in rising every time we fall.\",\n        \"Patience is the companion of wisdom.\",\n        \"Your vision will become clear only when you can look into your own heart. Who looks outside, dreams; who looks inside, awakes.\",\n        \"Kind words can be short and easy to speak, but their echoes are truly endless.\",\n        \"Sometimes our fate resembles a fruit tree in winter. Who would think that those branches would turn green again and blossom, but we hope it, we know it.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment.\",\n        \"What worries you masters you.\",\n        \"Can you imagine what I would do if I could do all I can?\",\n        \"Belief consists in accepting the affirmations of the soul; Unbelief, in denying them.\",\n        \"What matters is the value we've created in our lives, the people we've made happy and how much we've grown as people.\",\n        \"On every thorn, delightful wisdom grows, In every rill a sweet instruction flows.\",\n        \"You cannot change anything in your life with intention alone, which can become a watered-down, occasional hope that you'll get to tomorrow. Intention without action is useless.\",\n        \"As you think, so shall you become.\",\n        \"The superior man is modest in his speech, but exceeds in his actions.\",\n        \"Although there may be tragedy in your life, there's always a possibility to triumph. It doesn't matter who you are, where you come from. The ability to triumph begins with you. Always.\",\n        \"Time you enjoy wasting, was not wasted.\",\n        \"Inspiration exists, but it has to find us working.\",\n        \"Do not be too timid and squeamish about your reactions. All life is an experiment. The more experiments you make the better.\",\n        \"Life is just a chance to grow a soul.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"Keep silence for the most part, and speak only when you must, and then briefly.\",\n        \"Four steps to achievement: Plan purposefully. Prepare prayerfully. Proceed positively. Pursue persistently.\",\n        \"And as we let our own light shine, we unconsciously give other people permission to do the same.\",\n        \"Time is the wisest counsellor of all.\",\n        \"He who obtains has little. He who scatters has much.\",\n        \"In the depth of winter, I finally learned that there was within me an invincible summer.\",\n        \"Liberty, taking the word in its concrete sense, consists in the ability to choose.\",\n        \"The trick is in what one emphasizes. We either make ourselves miserable, or we make ourselves happy. The amount of work is the same.\",\n        \"Silence is a fence around wisdom.\",\n        \"A lot of times people look at the negative side of what they feel they can't do. I always look on the positive side of what I can do.\",\n        \"Know how to listen, and you will profit even from those who talk badly.\",\n        \"Though no one can go back and make a brand new start, anyone can start from now and make a brand new ending.\",\n        \"Nature gave us one tongue and two ears so we could hear twice as much as we speak.\",\n        \"In three words I can sum up everything Ive learned about life: it goes on.\",\n        \"I may not know everything, but everything is not known yet anyway.\",\n        \"Whoso loves, believes the impossible.\",\n        \"The first requisite for success is the ability to apply your physical and mental energies to one problem incessantly without growing weary.\",\n        \"Your work is to discover your work and then with all your heart to give yourself to it.\",\n        \"The fox has many tricks. The hedgehog has but one. But that is the best of all.\",\n        \"There is a way that nature speaks, that land speaks. Most of the time we are simply not patient enough, quiet enough, to pay attention to the story.\",\n        \"If you look into your own heart, and you find nothing wrong there, what is there to worry about? What is there to fear?\",\n        \"Quality is never an accident; it is always the result of intelligent effort.\",\n        \"I love my past. I love my present. I'm not ashamed of what Ive had, and I'm not sad because I have it no longer.\",\n        \"Trouble is only opportunity in work clothes.\",\n        \"The past has no power to stop you from being present now. Only your grievance about the past can do that.\",\n        \"You really can change the world if you care enough.\",\n        \"He who knows that enough is enough will always have enough.\",\n        \"Accept the things to which fate binds you, and love the people with whom fate brings you together, but do so with all your heart.\",\n        \"If I know what love is, it is because of you.\",\n        \"If you cannot be silent be brilliant and thoughtful.\",\n        \"A thing well said will be wit in all languages.\",\n        \"How wonderful it is that nobody need wait a single moment before starting to improve the world.\",\n        \"What matters is the value we've created in our lives, the people we've made happy and how much we've grown as people.\",\n        \"The superior man is satisfied and composed; the mean man is always full of distress.\",\n        \"There is no need for temples, no need for complicated philosophies. My brain and my heart are my temples; my philosophy is kindness.\",\n        \"A beautiful thing is never perfect.\",\n        \"In all chaos there is a cosmos, in all disorder a secret order.\",\n        \"The odds of hitting your target go up dramatically when you aim at it.\",\n        \"As we express our gratitude, we must never forget that the highest appreciation is not to utter words, but to live by them.\",\n        \"Wicked people are always surprised to find ability in those that are good.\",\n        \"Six essential qualities that are the key to success: Sincerity, personal integrity, humility, courtesy, wisdom, charity.\",\n        \"Imagination will often carry us to worlds that never were. But without it we go nowhere.\",\n        \"Trusting our intuition often saves us from disaster.\",\n        \"Well done is better than well said.\",\n        \"Never tell a young person that anything cannot be done. God may have been waiting centuries for someone ignorant enough of the impossible to do that very thing.\",\n        \"Don't judge each day by the harvest you reap but by the seeds you plant.\",\n        \"If the stars should appear but one night every thousand years how man would marvel and adore.\",\n        \"What we see is mainly what we look for.\",\n        \"Your body is precious. It is our vehicle for awakening. Treat it with care.\",\n        \"The aim of life is self-development. To realize ones nature perfectly that is what each of us is here for.\",\n        \"You must welcome change as the rule but not as your ruler.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"When you realize there is nothing lacking, the whole world belongs to you.\",\n        \"I am always doing that which I cannot do, in order that I may learn how to do it.\",\n        \"When in doubt, tell the truth.\",\n        \"There are two ways to slide easily through life: to believe everything or to doubt everything; both ways save us from thinking.\",\n        \"We choose our destiny in the way we treat others.\",\n        \"Love doesn't make the world go round, love is what makes the ride worthwhile.\",\n        \"Work out your own salvation. Do not depend on others.\",\n        \"There are only two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle.\",\n        \"The personal life deeply lived always expands into truths beyond itself.\",\n        \"You will never be happy if you continue to search for what happiness consists of. You will never live if you are looking for the meaning of life.\",\n        \"The day you decide to do it is your lucky day.\",\n        \"Beware of missing chances; otherwise it may be altogether too late some day.\",\n        \"If you let go a little, you will have a little peace. If you let go a lot, you will have a lot of peace.\",\n        \"No man is free who is not master of himself.\",\n        \"Wisdom is knowing what to do next; Skill is knowing how ot do it, and Virtue is doing it.\",\n        \"Limitations live only in our minds. But if we use our imaginations, our possibilities become limitless.\",\n        \"Arriving at one point is the starting point to another.\",\n        \"You can't let praise or criticism get to you. It's a weakness to get caught up in either one.\",\n        \"Love vanquishes time. To lovers, a moment can be eternity, eternity can be the tick of a clock.\",\n        \"We must be as courteous to a man as we are to a picture, which we are willing to give the advantage of a good light.\",\n        \"The truth you believe and cling to makes you unavailable to hear anything new.\",\n        \"Some people think it's holding that makes one strong sometimes it's letting go.\",\n        \"The beginning is always today.\",\n        \"Remembering a wrong is like carrying a burden on the mind.\",\n        \"When deeds and words are in accord, the whole world is transformed.\",\n        \"Trust yourself. You know more than you think you do.\",\n        \"Men of perverse opinion do not know the excellence of what is in their hands, till some one dash it from them.\",\n        \"Sunshine is delicious, rain is refreshing, wind braces us up, snow is exhilarating; there is really no such thing as bad weather, only different kinds of good weather.\",\n        \"If you light a lamp for somebody, it will also brighten your path.\",\n        \"Life's challenges are not supposed to paralyze you, they're supposed to help you discover who you are.\",\n        \"You can stand tall without standing on someone. You can be a victor without having victims.\",\n        \"Learn to listen. Opportunity could be knocking at your door very softly.\",\n        \"Truth, and goodness, and beauty are but different faces of the same all.\",\n        \"Whoso loves, believes the impossible.\",\n        \"It is impossible for a man to learn what he thinks he already knows.\",\n        \"The foot feels the foot when it feels the ground.\",\n        \"Adversity causes some men to break, others to break records.\",\n        \"There is no way to prosperity, prosperity is the way.\",\n        \"To be tested is good. The challenged life may be the best therapist.\",\n        \"The pain passes, but the beauty remains.\",\n        \"He who fears being conquered is sure of defeat.\",\n        \"Turn your face toward the sun and the shadows will fall behind you.\",\n        \"The mind unlearns with difficulty what it has long learned.\",\n        \"Whenever you have eliminated the impossible, whatever remains, however improbable, must be the truth.\",\n        \"Kind words can be short and easy to speak but their echoes are truly endless.\",\n        \"Be your own hero, it's cheaper than a movie ticket.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"The mind is everything. What you think you become.\",\n        \"Life's challenges are not supposed to paralyse you, they're supposed to help you discover who you are.\",\n        \"Each day provides its own gifts.\",\n        \"Every problem has a gift for you in its hands.\",\n        \"It is more important to know where you are going than to get there quickly. Do not mistake activity for achievement.\",\n        \"Setting goals is the first step in turning the invisible into the visible.\",\n        \"Your vision will become clear only when you can look into your own heart. Who looks outside, dreams; who looks inside, awakes.\",\n        \"It is not so important to know everything as to appreciate what we learn.\",\n        \"Many of life's failures are people who did not realize how close they were to success when they gave up.\",\n        \"Responsibility is not inherited, it is a choice that everyone needs to make at some point in their life.\",\n        \"Imagination is not a talent of some men but is the health of every man.\",\n        \"Character is like a tree and reputation like a shadow. The shadow is what we think of it; the tree is the real thing.\",\n        \"Nothing is predestined: The obstacles of your past can become the gateways that lead to new beginnings.\",\n        \"The time you think you're missing, misses you too.\",\n        \"Go for it now. The future is promised to no one.\",\n        \"All seasons are beautiful for the person who carries happiness within.\",\n        \"When in doubt, tell the truth.\",\n        \"If one is estranged from oneself, then one is estranged from others too. If one is out of touch with oneself, then one cannot touch others.\",\n        \"The greatest minds are capable of the greatest vices as well as of the greatest virtues.\",\n        \"Friends are those rare people who ask how we are and then wait to hear the answer.\",\n        \"To want to be what one can be is purpose in life.\",\n        \"Don't ruin the present with the ruined past.\",\n        \"The harder you fall, the higher you bounce.\",\n        \"Victory belongs to the most persevering.\",\n        \"Difficulties are meant to rouse, not discourage. The human spirit is to grow strong by conflict.\",\n        \"Remember that failure is an event, not a person.\",\n        \"As our case is new, we must think and act anew.\",\n        \"Better than a thousand hollow words, is one word that brings peace.\",\n        \"We learn what we have said from those who listen to our speaking.\",\n        \"You cannot change anything in your life with intention alone, which can become a watered-down, occasional hope that you'll get to tomorrow. Intention without action is useless.\",\n        \"Listen to your intuition. It will tell you everything you need to know.\",\n        \"Kind words do not cost much. Yet they accomplish much.\",\n        \"Everyone smiles in the same language.\",\n        \"I think somehow we learn who we really are and then live with that decision.\",\n        \"To fly, we have to have resistance.\",\n        \"Most great people have attained their greatest success just one step beyond their greatest failure.\",\n        \"Make the best use of what is in your power, and take the rest as it happens.\",\n        \"A little more persistence, a little more effort, and what seemed hopeless failure may turn to glorious success.\",\n        \"You will not be punished for your anger, you will be punished by your anger.\",\n        \"Keep silence for the most part, and speak only when you must, and then briefly.\",\n        \"Shoot for the moon. Even if you miss, you'll land among the stars.\",\n        \"How wonderful that we have met with a paradox. Now we have some hope of making progress.\",\n        \"Every person, all the events of your life are there because you have drawn them there. What you choose to do with them is up to you.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"Correction does much, but encouragement does more.\",\n        \"If facts are the seeds that later produce knowledge and wisdom, then the emotions and the impressions of the senses are the fertile soil in which the seeds must grow.\",\n        \"Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.\",\n        \"Sometimes our fate resembles a fruit tree in winter. Who would think that those branches would turn green again and blossom, but we hope it, we know it.\",\n        \"Arriving at one point is the starting point to another.\",\n        \"Everyone thinks of changing the world, but no one thinks of changing himself.\",\n        \"Prejudice is a burden that confuses the past, threatens the future and renders the present inaccessible.\",\n        \"Our ability to achieve happiness and success depends on the strength of our wings.\",\n        \"Be kind whenever possible. It is always possible.\",\n        \"If you smile when no one else is around, you really mean it.\",\n        \"Forget about all the reasons why something may not work. You only need to find one good reason why it will.\",\n        \"Music in the soul can be heard by the universe.\",\n        \"Obstacles are those frightful things you see when you take your eyes off your goal.\",\n        \"The least movement is of importance to all nature. The entire ocean is affected by a pebble.\",\n        \"The first duty of a human being is to assume the right functional relationship to society more briefly, to find your real job, and do it.\",\n        \"Let go of your attachment to being right, and suddenly your mind is more open. You're able to benefit from the unique viewpoints of others, without being crippled by your own judgement.\",\n        \"I seek constantly to improve my manners and graces, for they are the sugar to which all are attracted.\",\n        \"Never miss an opportunity to make others happy, even if you have to leave them alone in order to do it.\",\n        \"Genius is one percent inspiration and ninety-nine percent perspiration.\",\n        \"Winners have simply formed the habit of doing things losers don't like to do.\",\n        \"We are what we think. All that we are arises with our thoughts. With our thoughts, we make the world.\",\n        \"Happiness is not in the mere possession of money; it lies in the joy of achievement, in the thrill of creative effort.\",\n        \"It is impossible for a man to learn what he thinks he already knows.\",\n        \"There are no limitations to the mind except those we acknowledge.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"Life is like a sewer. What you get out of it depends on what you put into it.\",\n        \"I think and that is all that I am.\",\n        \"The conditions of conquest are always easy. We have but to toil awhile, endure awhile, believe always, and never turn back.\",\n        \"You have to think anyway, so why not think big?\",\n        \"Impossibilities are merely things which we have not yet learned.\",\n        \"Life is a gift, and it offers us the privilege, opportunity, and responsibility to give something back by becoming more\",\n        \"Trust only movement. Life happens at the level of events, not of words. Trust movement.\",\n        \"No one can make you feel inferior without your consent.\",\n        \"All our knowledge begins with the senses, proceeds then to the understanding, and ends with reason. There is nothing higher than reason.\",\n        \"Today is the tomorrow you worried about yesterday.\",\n        \"All the great performers I have worked with are fuelled by a personal dream.\",\n        \"What worries you masters you.\",\n        \"Nothing great was ever achieved without enthusiasm.\",\n        \"Invent your world. Surround yourself with people, color, sounds, and work that nourish you.\",\n        \"Yeah we all shine on, like the moon, and the stars, and the sun.\",\n        \"Men are disturbed not by things, but by the view which they take of them.\",\n        \"You are the only person on earth who can use your ability.\",\n        \"He who wishes to secure the good of others, has already secured his own.\",\n        \"Skill to do comes of doing.\",\n        \"He who talks more is sooner exhausted.\",\n        \"The greatest discovery of our generation is that human beings can alter their lives by altering their attitudes of mind. As you think, so shall you be.\",\n        \"You cannot make yourself feel something you do not feel, but you can make yourself do right in spite of your feelings.\",\n        \"You can adopt the attitude there is nothing you can do, or you can see the challenge as your call to action.\",\n        \"Happiness does not come about only due to external circumstances; it mainly derives from inner attitudes.\",\n        \"You must welcome change as the rule but not as your ruler.\",\n        \"Sometimes your joy is the source of your smile, but sometimes your smile can be the source of your joy.\",\n        \"You must do the things you think you cannot do.\",\n        \"We are all something, but none of us are everything.\",\n        \"Either I will find a way, or I will make one.\",\n        \"Friendship with oneself is all important because without it one cannot be friends with anybody else in the world.\",\n        \"Whatever we expect with confidence becomes our own self-fulfilling prophecy.\",\n        \"Give whatever you are doing and whoever you are with the gift of your attention.\",\n        \"There is nothing like returning to a place that remains unchanged to find the ways in which you yourself have altered.\",\n        \"I begin with an idea and then it becomes something else.\",\n        \"A man is not where he lives but where he loves.\",\n        \"Autumn is a second spring when every leaf is a flower.\",\n        \"A failure is a man who has blundered but is not capable of cashing in on the experience.\",\n        \"Be a good listener. Your ears will never get you in trouble.\",\n        \"To be great is to be misunderstood.\",\n        \"You can't choose up sides on a round world.\",\n        \"Minds are like parachutes. They only function when open.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity\",\n        \"The foolish man seeks happiness in the distance, the wise grows it under his feet.\",\n        \"All the great performers I have worked with are fuelled by a personal dream.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity.\",\n        \"Be miserable. Or motivate yourself. Whatever has to be done, it's always your choice.\",\n        \"Anyone who doesn't take truth seriously in small matters cannot be trusted in large ones either.\",\n        \"Not what we have but what we enjoy constitutes our abundance.\",\n        \"Lose an hour in the morning, and you will spend all day looking for it.\",\n        \"You won't skid if you stay in a rut.\",\n        \"Some people think it's holding that makes one strong sometimes it's letting go.\",\n        \"It does not matter how slowly you go as long as you do not stop.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity\",\n        \"Important principles may, and must, be inflexible.\",\n        \"Most people are about as happy as they make up their minds to be\",\n        \"Sometimes the most important thing in a whole day is the rest we take between two deep breaths.\",\n        \"Watch the little things; a small leak will sink a great ship.\",\n        \"If you want things to be different, perhaps the answer is to become different yourself.\",\n        \"Nothing happens unless first we dream.\",\n        \"There is no great genius without some touch of madness.\",\n        \"Men in general judge more from appearances than from reality. All men have eyes, but few have the gift of penetration.\",\n        \"Autumn is a second spring when every leaf is a flower.\",\n        \"All men who have achieved great things have been great dreamers.\",\n        \"If you propose to speak, always ask yourself, is it true, is it necessary, is it kind.\",\n        \"Don't be pushed by your problems; be led by your dreams.\",\n        \"Who sows virtue reaps honour.\",\n        \"He that never changes his opinions, never corrects his mistakes, and will never be wiser on the morrow than he is today.\",\n        \"Never do things others can do and will do, if there are things others cannot do or will not do.\",\n        \"I cannot give you the formula for success, but I can give you the formula for failure: which is: Try to please everybody.\",\n        \"He who has health has hope, and he who has hope has everything.\",\n        \"The secret to a rich life is to have more beginnings than endings.\",\n        \"For everything that lives is holy, life delights in life.\",\n        \"Be the change that you want to see in the world.\",\n        \"There is only one happiness in life, to love and be loved.\",\n        \"Most powerful is he who has himself in his own power.\",\n        \"A man who doesn't trust himself can never really trust anyone else.\",\n        \"Rather than wishing for change, you first must be prepared to change.\",\n        \"The grand essentials of happiness are: something to do, something to love, and something to hope for.\",\n        \"The cautious seldom err.\",\n        \"Good luck is another name for tenacity of purpose.\",\n        \"He who is fixed to a star does not change his mind.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"Three things cannot be long hidden: the sun, the moon, and the truth.\",\n        \"The eye sees only what the mind is prepared to comprehend.\",\n        \"Give thanks for a little and you will find a lot.\",\n        \"He who knows himself is enlightened.\",\n        \"Life is movement-we breathe, we eat, we walk, we move!\",\n        \"Happiness often sneaks in through a door you didn't know you left open.\",\n        \"I would maintain that thanks are the highest form of thought, and that gratitude is happiness doubled by wonder.\",\n        \"Imagination is the highest kite one can fly.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"Today is the tomorrow you worried about yesterday.\",\n        \"What the caterpillar calls the end of the world, the master calls a butterfly.\",\n        \"You must do the things you think you cannot do.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"Good luck is another name for tenacity of purpose.\",\n        \"It is difficult to achieve a spirit of genuine cooperation as long as people remain indifferent to the feelings and happiness of others.\",\n        \"If the stars should appear but one night every thousand years how man would marvel and adore.\",\n        \"Never tell me the sky is the limit when there are footprints on the moon.\",\n        \"Until you make peace with who you are, you'll never be content with what you have.\",\n        \"When performance exceeds ambition, the overlap is called success.\",\n        \"You'll see it when you believe it.\",\n        \"A good plan today is better than a perfect plan tomorrow.\",\n        \"A lot of people give up just before theyre about to make it. You know you never know when that next obstacle is going to be the last one.\",\n        \"Go for it now. The future is promised to no one.\",\n        \"A stumble may prevent a fall.\",\n        \"Know, first, who you are, and then adorn yourself accordingly.\",\n        \"Love doesn't make the world go round, love is what makes the ride worthwhile.\",\n        \"In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time.\",\n        \"Staying in one place is the best path to be taken over and surpassed by many.\",\n        \"The best place to find a helping hand is at the end of your own arm.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"When in doubt, tell the truth.\",\n        \"It takes both sunshine and rain to make a rainbow.\",\n        \"Be like the flower, turn your face to the sun.\",\n        \"A beautiful thing is never perfect.\",\n        \"All know the way; few actually walk it.\",\n        \"Practice yourself, for heavens sake in little things, and then proceed to greater.\",\n        \"The most dangerous way to lose time is not to spend it having fun, but to spend it doing fake work. When you spend time having fun, you know you're being self-indulgent.\",\n        \"To fly, we have to have resistance.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"Mountains cannot be surmounted except by winding paths.\",\n        \"Every man takes the limits of his own field of vision for the limits of the world.\",\n        \"No snowflake in an avalanche ever feels responsible.\",\n        \"The greatest minds are capable of the greatest vices as well as of the greatest virtues.\",\n        \"Nature gave us one tongue and two ears so we could hear twice as much as we speak.\",\n        \"He who experiences the unity of life sees his own Self in all beings, and all beings in his own Self, and looks on everything with an impartial eye.\",\n        \"Beauty is not in the face; beauty is a light in the heart.\",\n        \"Wishes can be your best avenue of getting what you want when you turn wishes into action. Action moves your wish to the forefront from thought to reality.\",\n        \"It has never been my object to record my dreams, just to realize them.\",\n        \"Consider that not only do negative thoughts and emotions destroy our experience of peace, they also undermine our health.\",\n        \"Choose a job you love, and you will never have to work a day in your life.\",\n        \"We choose our destiny in the way we treat others.\",\n        \"The industrial landscape is already littered with remains of once successful companies that could not adapt their strategic vision to altered conditions of competition.\",\n        \"You got to be careful if you don't know where you're going, because you might not get there.\",\n        \"Believe deep down in your heart that you're destined to do great things.\",\n        \"We cannot solve our problems with the same thinking we used when we created them.\",\n        \"Be kind whenever possible. It is always possible.\",\n        \"The truest greatness lies in being kind, the truest wisdom in a happy mind.\",\n        \"Arriving at one point is the starting point to another.\",\n        \"We choose our joys and sorrows long before we experience them.\",\n        \"Live through feeling and you will live through love. For feeling is the language of the soul, and feeling is truth.\",\n        \"Well done is better than well said.\",\n        \"Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.\",\n        \"We learn what we have said from those who listen to our speaking.\",\n        \"Think for yourselves and let others enjoy the privilege to do so too.\",\n        \"If you have no respect for your own values how can you be worthy of respect from others.\",\n        \"In seed time learn, in harvest teach, in winter enjoy.\",\n        \"A prudent question is one half of wisdom.\",\n        \"I am glad that I paid so little attention to good advice; had I abided by it I might have been saved from some of my most valuable mistakes.\",\n        \"Learning without reflection is a waste, reflection without learning is dangerous.\",\n        \"Everything you are against weakens you. Everything you are for empowers you.\",\n        \"Believe deep down in your heart that you're destined to do great things.\",\n        \"Good people are good because they've come to wisdom through failure. We get very little wisdom from success, you know.\",\n        \"Learn from yesterday, live for today, hope for tomorrow.\",\n        \"Don't wait. The time will never be just right.\",\n        \"Most of our obstacles would melt away if, instead of cowering before them, we should make up our minds to walk boldly through them.\",\n        \"Silence is a source of great strength.\",\n        \"Either you run the day or the day runs you.\",\n        \"The only Zen you find on the tops of mountains is the Zen you bring up there.\",\n        \"The years teach much which the days never know.\",\n        \"I endeavour to be wise when I cannot be merry, easy when I cannot be glad, content with what cannot be mended and patient when there is no redress.\",\n        \"Sometimes the biggest act of courage is a small one.\",\n        \"If you want to study yourself look into the hearts of other people. If you want to study other people look into your own heart.\",\n        \"Being right is highly overrated. Even a stopped clock is right twice a day.\",\n        \"I have often regretted my speech, never my silence.\",\n        \"Any of us can achieve virtue, if by virtue we merely mean the avoidance of the vices that do not attract us.\",\n        \"The height of your accomplishments will equal the depth of your convictions.\",\n        \"To avoid criticism, do nothing, say nothing, be nothing.\",\n        \"The only real failure in life is not to be true to the best one knows.\",\n        \"Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.\",\n        \"Everything that exists is in a manner the seed of that which will be.\",\n        \"When there is no enemy within, the enemies outside cannot hurt you.\",\n        \"To go against the dominant thinking of your friends, of most of the people you see every day, is perhaps the most difficult act of heroism you can perform.\",\n        \"The only person who never makes mistakes is the person who never does anything.\",\n        \"To be aware of a single shortcoming in oneself is more useful than to be aware of a thousand in someone else.\",\n        \"Ignorant men don't know what good they hold in their hands until they've flung it away.\",\n        \"You do not become good by trying to be good, but by finding the goodness that is already within you.\",\n        \"Your ability to learn faster than your competition is your only sustainable competitive advantage.\",\n        \"Without some goals and some efforts to reach it, no man can live.\",\n        \"If you focus on results, you will never change. If you focus on change, you will get results.\",\n        \"Just trust yourself, then you will know how to live.\",\n        \"The thing always happens that you really believe in; and the belief in a thing makes it happen.\",\n        \"Autumn is a second spring when every leaf is a flower.\",\n        \"He who knows, does not speak. He who speaks, does not know.\",\n        \"Everyone has been made for some particular work, and the desire for that work has been put in every heart.\",\n        \"What you see depends on what you're looking for.\",\n        \"Fear grows in darkness; if you think theres a bogeyman around, turn on the light.\",\n        \"Error is discipline through which we advance.\",\n        \"Action is the foundational key to all success.\",\n        \"One of the advantages of being disorderly is that one is constantly making exciting discoveries.\",\n        \"The smallest flower is a thought, a life answering to some feature of the Great Whole, of whom they have a persistent intuition.\",\n        \"Do not turn back when you are just at the goal.\",\n        \"You cannot make yourself feel something you do not feel, but you can make yourself do right in spite of your feelings.\",\n        \"The price of greatness is responsibility.\",\n        \"It is not in the stars to hold our destiny but in ourselves.\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"If you cannot be silent be brilliant and thoughtful.\",\n        \"When fate hands us a lemon, lets try to make lemonade.\",\n        \"Study the past, if you would divine the future.\",\n        \"Without some goals and some efforts to reach it, no man can live.\",\n        \"To ensure good health: eat lightly, breathe deeply, live moderately, cultivate cheerfulness, and maintain an interest in life.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"In all things of nature there is something of the marvellous.\",\n        \"Nothing will work unless you do.\",\n        \"One secret of success in life is for a man to be ready for his opportunity when it comes.\",\n        \"Instead of saying that man is the creature of circumstance, it would be nearer the mark to say that man is the architect of circumstance.\",\n        \"Failure will never overtake me if my determination to succeed is strong enough.\",\n        \"Those who are blessed with the most talent don't necessarily outperform everyone else. It's the people with follow-through who excel.\",\n        \"Genuine sincerity opens people's hearts, while manipulation causes them to close.\",\n        \"You are important enough to ask and you are blessed enough to receive back.\",\n        \"If you focus on results, you will never change. If you focus on change, you will get results.\",\n        \"An invincible determination can accomplish almost anything and in this lies the great distinction between great men and little men.\",\n        \"Never deny a diagnosis, but do deny the negative verdict that may go with it.\",\n        \"We read the world wrong and say that it deceives us.\",\n        \"Sometimes your joy is the source of your smile, but sometimes your smile can be the source of your joy.\",\n        \"A man who doesn't trust himself can never really trust anyone else.\",\n        \"Life is what happens while you are making other plans.\",\n        \"It is with words as with sunbeams. The more they are condensed, the deeper they burn.\",\n        \"The truest wisdom is a resolute determination.\",\n        \"No is easier to do. Yes is easier to say.\",\n        \"You have enemies? Good. That means you've stood up for something, sometime in your life.\",\n        \"I am glad that I paid so little attention to good advice; had I abided by it I might have been saved from some of my most valuable mistakes.\",\n        \"People may doubt what you say, but they will believe what you do.\",\n        \"Being angry never solves anything.\",\n        \"Don't wait for your feelings to change to take the action. Take the action and your feelings will change.\",\n        \"Small opportunities are often the beginning of great enterprises.\",\n        \"We are shaped by our thoughts; we become what we think. When the mind is pure, joy follows like a shadow that never leaves.\",\n        \"Believe deep down in your heart that you're destined to do great things.\",\n        \"The price of greatness is responsibility.\",\n        \"Fame usually comes to those who are thinking about something else.\",\n        \"We have two ears and one mouth so that we can listen twice as much as we speak.\",\n        \"Many people have gone further than they thought they could because someone else thought they could.\",\n        \"Your friends will know you better in the first minute you meet than your acquaintances will know you in a thousand years.\",\n        \"One fails forward toward success.\",\n        \"Fear grows in darkness; if you think theres a bogeyman around, turn on the light.\",\n        \"There is only one happiness in life, to love and be loved.\",\n        \"Don't judge each day by the harvest you reap but by the seeds that you plant.\",\n        \"It takes courage to grow up and become who you really are.\",\n        \"Ability is what you're capable of doing. Motivation determines what you do.Attitude determines how well you do it.\",\n        \"Not every difficult and dangerous thing is suitable for training, but only that which is conducive to success in achieving the object of our effort.\",\n        \"Think as a wise man but communicate in the language of the people.\",\n        \"The fox has many tricks. The hedgehog has but one. But that is the best of all.\",\n        \"I cannot give you the formula for success, but I can give you the formula for failure: which is: Try to please everybody.\",\n        \"Every sixty seconds you spend angry, upset or mad, is a full minute of happiness you will never get back.\",\n        \"Nothing in life is to be feared. It is only to be understood.\",\n        \"Forgiveness is choosing to love. It is the first skill of self-giving love.\",\n        \"One needs something to believe in, something for which one can have whole-hearted enthusiasm. One needs to feel that ones life has meaning, that one is needed in this world.\",\n        \"Happiness cannot be travelled to, owned, earned, worn or consumed. Happiness is the spiritual experience of living every minute with love, grace and gratitude.\",\n        \"It's important to know that words don't move mountains. Work, exacting work moves mountains.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift that's why they call it the present.\",\n        \"You are never given a wish without also being given the power to make it come true. You may have to work for it, however.\",\n        \"The cause is hidden. The effect is visible to all.\",\n        \"We cannot direct the wind but we can adjust the sails.\",\n        \"Numberless are the worlds wonders, but none more wonderful than man.\",\n        \"I may not know everything, but everything is not known yet anyway.\",\n        \"Wisdom begins in wonder.\",\n        \"If facts are the seeds that later produce knowledge and wisdom, then the emotions and the impressions of the senses are the fertile soil in which the seeds must grow.\",\n        \"Thousands of candles can be lighted from a single candle, and the life of the candle will not be shortened. Happiness never decreases by being shared.\",\n        \"Living at risk is jumping off the cliff and building your wings on the way down.\",\n        \"Strength to carry on despite the odds means you have faith in your own abilities and know how.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"Don't be afraid to go out on a limb. That's where the fruit is.\",\n        \"Things turn out best for those who make the best of the way things turn out.\",\n        \"Aim for success, not perfection. Never give up your right to be wrong, because then you will lose the ability to learn new things and move forward with your life.\",\n        \"It is not enough to have a good mind; the main thing is to use it well.\",\n        \"Cherish your visions and your dreams as they are the children of your soul, the blueprints of your ultimate achievements.\",\n        \"Never put off till tomorrow what you can do today.\",\n        \"Keep silence for the most part, and speak only when you must, and then briefly.\",\n        \"When you see a good person, think of becoming like him. When you see someone not so good, reflect on your own weak points.\",\n        \"Love vanquishes time. To lovers, a moment can be eternity, eternity can be the tick of a clock.\",\n        \"Accept the things to which fate binds you, and love the people with whom fate brings you together, but do so with all your heart.\",\n        \"If one is estranged from oneself, then one is estranged from others too. If one is out of touch with oneself, then one cannot touch others.\",\n        \"Anybody can make history. Only a great man can write it.\",\n        \"Life is change. Growth is optional. Choose wisely.\",\n        \"Moral excellence comes about as a result of habit. We become just by doing just acts, temperate by doing temperate acts, brave by doing brave acts.\",\n        \"When I dare to be powerful, to use my strength in the service of my vision, then it becomes less and less important whether I am afraid.\",\n        \"Whatever happens, take responsibility.\",\n        \"Beauty is not in the face; beauty is a light in the heart.\",\n        \"Six essential qualities that are the key to success: Sincerity, personal integrity, humility, courtesy, wisdom, charity.\",\n        \"The best thing in every noble dream is the dreamer...\",\n        \"Into each life rain must fall but rain can be the giver of life and it is all in your attitude that makes rain produce sunshine.\",\n        \"When in doubt, tell the truth.\",\n        \"Be thankful when you don't know something for it gives you the opportunity to learn.\",\n        \"Everything has beauty, but not everyone sees it.\",\n        \"Who we are never changes. Who we think we are does.\",\n        \"Being in humaneness is good. If we select other goodness and thus are far apart from humaneness, how can we be the wise?\",\n        \"When we seek to discover the best in others, we somehow bring out the best in ourselves.\",\n        \"You can't let praise or criticism get to you. It's a weakness to get caught up in either one.\",\n        \"Experience is not what happens to a man. It is what a man does with what happens to him.\",\n        \"Four steps to achievement: Plan purposefully. Prepare prayerfully. Proceed positively. Pursue persistently.\",\n        \"History will be kind to me for I intend to write it.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"The world is but a canvas to the imagination.\",\n        \"To enjoy life, we must touch much of it lightly.\",\n        \"No man was ever wise by chance.\",\n        \"If you can dream it, you can do it.\",\n        \"Patience is the companion of wisdom.\",\n        \"If you change the way you look at things, the things you look at change.\",\n        \"Wise men talk because they have something to say; fools, because they have to say something.\",\n        \"There is one thing you have got to learn about our movement. Three people are better than no people.\",\n        \"Light tomorrow with today!\",\n        \"The only limit to our realization of tomorrow will be our doubts of today.\",\n        \"Moments of complete apathy are the best for new creations.\",\n        \"Miracles come in moments. Be ready and willing.\",\n        \"The height of your accomplishments will equal the depth of your convictions.\",\n        \"A short saying often contains much wisdom.\",\n        \"It takes courage to grow up and become who you really are.\",\n        \"The biggest adventure you can ever take is to live the life of your dreams.\",\n        \"We all live with the objective of being happy; our lives are all different and yet the same.\",\n        \"It's not who you are that holds you back, it's who you think you're not.\",\n        \"So is cheerfulness, or a good temper, the more it is spent, the more remains.\",\n        \"No day in which you learn something is a complete loss.\",\n        \"I believe that we are solely responsible for our choices, and we have to accept the consequences of every deed, word, and thought throughout our lifetime.\",\n        \"Begin to weave and God will give you the thread.\",\n        \"When you are content to be simply yourself and don't compare or compete, everybody will respect you.\",\n        \"The most successful people are those who are good at plan B.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"Let us resolve to be masters, not the victims, of our history, controlling our own destiny without giving way to blind suspicions and emotions.\",\n        \"There are only two mistakes one can make along the road to truth; not going all the way, and not starting.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"How many cares one loses when one decides not to be something but to be someone.\",\n        \"We are what we think. All that we are arises with our thoughts. With our thoughts, we make the world.\",\n        \"You always succeed in producing a result.\",\n        \"The best teacher is experience learned from failures.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"Nothing is a waste of time if you use the experience wisely.\",\n        \"There is no failure except in no longer trying.\",\n        \"The spirit, the will to win, and the will to excel, are the things that endure. These qualities are so much more important than the events that occur.\",\n        \"Every human being is the author of his own health or disease.\",\n        \"One that desires to excel should endeavour in those things that are in themselves most excellent.\",\n        \"Be like the flower, turn your face to the sun.\",\n        \"I don't believe in failure. It is not failure if you enjoyed the process.\",\n        \"The noblest worship is to make yourself as good and as just as you can.\",\n        \"I am not bothered by the fact that I am unknown. I am bothered when I do not know others.\",\n        \"Can you imagine what I would do if I could do all I can?\",\n        \"Memory is the mother of all wisdom.\",\n        \"All that is necessary is to accept the impossible, do without the indispensable, and bear the intolerable.\",\n        \"We must not allow ourselves to become like the system we oppose.\",\n        \"Mistakes are always forgivable, if one has the courage to admit them.\",\n        \"Meaning is not what you start with but what you end up with.\",\n        \"When deeds and words are in accord, the whole world is transformed.\",\n        \"I always wanted to be somebody, but I should have been more specific.\",\n        \"Action may not always bring happiness; but there is no happiness without action.\",\n        \"Silence is a fence around wisdom.\",\n        \"He who controls others may be powerful, but he who has mastered himself is mightier still.\",\n        \"Those who dream by day are cognizant of many things which escape those who dream only by night.\",\n        \"Never put off till tomorrow what you can do today.\",\n        \"Friendship with oneself is all important because without it one cannot be friends with anybody else in the world.\",\n        \"One of the advantages of being disorderly is that one is constantly making exciting discoveries.\",\n        \"Try not to become a man of success but rather try to become a man of value.\",\n        \"There is nothing impossible to him who will try.\",\n        \"Imagination will often carry us to worlds that never were. But without it we go nowhere.\",\n        \"Men are disturbed not by things, but by the view which they take of them.\",\n        \"I cannot give you the formula for success, but I can give you the formula for failure: which is: Try to please everybody.\",\n        \"What lies behind us and what lies before us are small matters compared to what lies within us.\",\n        \"Follow effective action with quiet reflection. From the quiet reflection will come even more effective action.\",\n        \"No valid plans for the future can be made by those who have no capacity for living now.\",\n        \"The awareness of our own strength makes us modest.\",\n        \"It is only when the mind and character slumber that the dress can be seen.\",\n        \"Without some goals and some efforts to reach it, no man can live.\",\n        \"Until you make peace with who you are, you will never be content with what you have.\",\n        \"There are no limitations to the mind except those we acknowledge.\",\n        \"To bring anything into your life, imagine that it's already there.\",\n        \"When you lose, don't lose the lesson.\",\n        \"The world is but a canvas to the imagination.\",\n        \"The world is a book, and those who do not travel read only a page.\",\n        \"Remembering a wrong is like carrying a burden on the mind.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"We know what we are, but know not what we may be.\",\n        \"How we spend our days is, of course, how we spend our lives.\",\n        \"The height of your accomplishments will equal the depth of your convictions.\",\n        \"Change your words. Change your world.\",\n        \"Do not wait for leaders; do it alone, person to person.\",\n        \"To be fully alive, fully human, and completely awake is to be continually thrown out of the nest.\",\n        \"Error is discipline through which we advance.\",\n        \"The greatest obstacle to connecting with our joy is resentment.\",\n        \"Not what we have but what we enjoy constitutes our abundance.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"Money was never a big motivation for me, except as a way to keep score. The real excitement is playing the game.\",\n        \"Imagination is not a talent of some men but is the health of every man.\",\n        \"Your outlook on life is a direct reflection on how much you like yourself.\",\n        \"Memory is the mother of all wisdom.\",\n        \"Good luck is another name for tenacity of purpose.\",\n        \"Men in general judge more from appearances than from reality. All men have eyes, but few have the gift of penetration.\",\n        \"Fortune favours the brave.\",\n        \"Friends are those rare people who ask how we are and then wait to hear the answer.\",\n        \"Be your own hero, it's cheaper than a movie ticket.\",\n        \"A short saying oft contains much wisdom.\",\n        \"Shoot for the moon. Even if you miss, you'll land among the stars.\",\n        \"Without some goals and some efforts to reach it, no man can live.\",\n        \"Love all, trust a few, do wrong to none.\",\n        \"The best and most beautiful things in the world cannot be seen, nor touched... but are felt in the heart.\",\n        \"If we have a positive mental attitude, then even when surrounded by hostility, we shall not lack inner peace.\",\n        \"The world is a book, and those who do not travel read only a page.\",\n        \"When deeds and words are in accord, the whole world is transformed.\",\n        \"We must not say every mistake is a foolish one.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"If you do what you've always done, you'll get what youve always gotten.\",\n        \"The world is round and the place which may seem like the end may also be the beginning.\",\n        \"Loss is nothing else but change,and change is Natures delight.\",\n        \"The secret of joy in work is contained in one word excellence. To know how to do something well is to enjoy it.\",\n        \"I may not know everything, but everything is not known yet anyway.\",\n        \"Happiness is the reward we get for living to the highest right we know.\",\n        \"Everything you can imagine is real.\",\n        \"You can be what you want to be. You have the power within and we will help you always.\",\n        \"Truth, and goodness, and beauty are but different faces of the same all.\",\n        \"There are only two mistakes one can make along the road to truth; not going all the way, and not starting.\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"Skill to do comes of doing.\",\n        \"Begin to weave and God will give you the thread.\",\n        \"I cannot make my days longer so I strive to make them better.\",\n        \"A beautiful thing is never perfect.\",\n        \"Until you make peace with who you are, you'll never be content with what you have.\",\n        \"If you have knowledge, let others light their candles in it.\",\n        \"All our talents increase in the using, and the every faculty, both good and bad, strengthen by exercise.\",\n        \"You cannot travel the path until you have become the path itself.\",\n        \"Anybody can make history. Only a great man can write it.\",\n        \"Those who are free of resentful thoughts surely find peace.\",\n        \"Work out your own salvation. Do not depend on others.\",\n        \"In a controversy the instant we feel anger we have already ceased striving for the truth, and have begun striving for ourselves.\",\n        \"You only lose what you cling to.\",\n        \"What separates the winners from the losers is how a person reacts to each new twist of fate.\",\n        \"Give thanks for a little and you will find a lot.\",\n        \"It is not the mistake that has the most power, instead, it is learning from the mistake to advance your own attributes.\",\n        \"Each day provides its own gifts.\",\n        \"It is better to travel well than to arrive.\",\n        \"Nothing diminishes anxiety faster than action.\",\n        \"Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.\",\n        \"Good instincts usually tell you what to do long before your head has figured it out.\",\n        \"A short saying often contains much wisdom.\",\n        \"Remember that sometimes not getting what you want is a wonderful stroke of luck.\",\n        \"Hope arouses, as nothing else can arouse, a passion for the possible.\",\n        \"Autumn is a second spring when every leaf is a flower.\",\n        \"Blessed is the man who expects nothing, for he shall never be disappointed.\",\n        \"The years teach much which the days never know.\",\n        \"Follow your instincts. That is where true wisdom manifests itself.\",\n        \"Our doubts are traitors and make us lose the good we often might win, by fearing to attempt.\",\n        \"Of course there is no formula for success except perhaps an unconditional acceptance of life and what it brings.\",\n        \"To free us from the expectations of others, to give us back to ourselves there lies the great, singular power of self-respect.\",\n        \"If you want your life to be more rewarding, you have to change the way you think.\",\n        \"Be not angry that you cannot make others as you wish them to be, since you cannot make yourself as you wish to be.\",\n        \"There are basically two types of people. People who accomplish things, and people who claim to have accomplished things. The first group is less crowded.\",\n        \"The only person who never makes mistakes is the person who never does anything.\",\n        \"If a man does his best, what else is there?\",\n        \"Slow down and everything you are chasing will come around and catch you.\",\n        \"Until you value yourself, you won't value your time. Until you value your time, you won't do anything with it.\",\n        \"Better than a thousand hollow words is one word that brings peace.\",\n        \"You may be deceived if you trust too much, but you will live in torment if you don't trust enough.\",\n        \"What is not started today is never finished tomorrow.\",\n        \"If you spend too much time thinking about a thing, you'll never get it done.\",\n        \"Your vision will become clear only when you look into your heart. Who looks outside, dreams. Who looks inside, awakens.\",\n        \"The pessimist sees difficulty in every opportunity. The optimist sees the opportunity in every difficulty.\",\n        \"Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love.\",\n        \"If you correct your mind, the rest of your life will fall into place.\",\n        \"Love is the flower you've got to let grow.\",\n        \"Write your plans in pencil and give God the eraser.\",\n        \"Allow the world to live as it chooses, and allow yourself to live as you choose.\",\n        \"Don't smother each other. No one can grow in the shade.\",\n        \"It is only possible to live happily ever after on a day to day basis.\",\n        \"Argue for your limitations, and sure enough theyre yours.\",\n        \"Speak when you are angry and you will make the best speech you will ever regret.\",\n        \"I'm a great believer in luck and I find the harder I work, the more I have of it.\",\n        \"The greatest way to live with honor in this world is to be what we pretend to be.\",\n        \"If you are going to achieve excellence in big things, you develop the habit in little matters. Excellence is not an exception, it is a prevailing attitude.\",\n        \"The conditions of conquest are always easy. We have but to toil awhile, endure awhile, believe always, and never turn back.\",\n        \"All achievements, all earned riches, have their beginning in an idea.\",\n        \"The weak can never forgive. Forgiveness is the attribute of the strong.\",\n        \"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.\",\n        \"So is cheerfulness, or a good temper, the more it is spent, the more remains.\",\n        \"The minute you settle for less than you deserve, you get even less than you settled for.\",\n        \"Fears are nothing more than a state of mind.\",\n        \"Character develops itself in the stream of life.\",\n        \"Liberty, taking the word in its concrete sense, consists in the ability to choose.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"Memory is the mother of all wisdom.\",\n        \"Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.\",\n        \"I seek constantly to improve my manners and graces, for they are the sugar to which all are attracted.\",\n        \"Set your goals high, and don't stop till you get there.\",\n        \"The most important point is to accept yourself and stand on your two feet.\",\n        \"One secret of success in life is for a man to be ready for his opportunity when it comes.\",\n        \"There are people who have money and people who are rich.\",\n        \"Gratitude is the fairest blossom which springs from the soul.\",\n        \"Great indeed is the sublimity of the Creative, to which all beings owe their beginning and which permeates all heaven.\",\n        \"The world has the habit of making room for the man whose actions show that he knows where he is going.\",\n        \"The day you decide to do it is your lucky day.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"He can who thinks he can, and he can't who thinks he can't. This is an inexorable, indisputable law.\",\n        \"The odds of hitting your target go up dramatically when you aim at it.\",\n        \"Let us be grateful to people who make us happy; they are the charming gardeners who make our souls blossom.\",\n        \"Wisdom is the supreme part of happiness.\",\n        \"The doors we open and close each day decide the lives we live.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"The harder you fall, the higher you bounce.\",\n        \"A leader or a man of action in a crisis almost always acts subconsciously and then thinks of the reasons for his action.\",\n        \"You have to do your own growing no matter how tall your grandfather was.\",\n        \"All serious daring starts from within.\",\n        \"Intuition is the supra-logic that cuts out all the routine processes of thought and leaps straight from the problem to the answer.\",\n        \"It can't be spring if your heart is filled with past failures.\",\n        \"Don't turn away from possible futures before you're certain you don't have anything to learn from them.\",\n        \"I allow my intuition to lead my path.\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"As we express our gratitude, we must never forget that the highest appreciation is not to utter words, but to live by them.\",\n        \"The Creator has not given you a longing to do that which you have no ability to do.\",\n        \"He who wishes to secure the good of others, has already secured his own.\",\n        \"No yesterdays are ever wasted for those who give themselves to today.\",\n        \"Let yourself be silently drawn by the stronger pull of what you really love.\",\n        \"Don't let today's disappointments cast a shadow on tomorrow's dreams.\",\n        \"If you come to a fork in the road, take it.\",\n        \"If you break your neck, if you have nothing to eat, if your house is on fire, then you got a problem. Everything else is inconvenience.\",\n        \"A good teacher is like a candle it consumes itself to light the way for others.\",\n        \"If you want your life to be more rewarding, you have to change the way you think.\",\n        \"To go against the dominant thinking of your friends, of most of the people you see every day, is perhaps the most difficult act of heroism you can perform.\",\n        \"One fails forward toward success.\",\n        \"Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful.\",\n        \"The way we communicate with others and with ourselves ultimately determines the quality of our lives.\",\n        \"The only difference between your abilities and others is the ability to put yourself in their shoes and actually try.\",\n        \"A man's dreams are an index to his greatness.\",\n        \"I am of the opinion that my life belongs to the community, and as long as I live it is my privilege to do for it whatever I can.\",\n        \"The shortest answer is doing.\",\n        \"I believe that we are solely responsible for our choices, and we have to accept the consequences of every deed, word, and thought throughout our lifetime.\",\n        \"May our hearts garden of awakening bloom with hundreds of flowers.\",\n        \"It is easier to live through someone else than to become complete yourself.\",\n        \"The beginning is always today.\",\n        \"No one can make you feel inferior without your consent.\",\n        \"You may only be someone in the world, but to someone else, you may be the world.\",\n        \"Some people thrive on huge, dramatic change. Some people prefer the slow and steady route. Do what's right for you.\",\n        \"Short words are best and the old words when short are best of all.\",\n        \"Action is the foundational key to all success.\",\n        \"People are not lazy. They simply have impotent goals that is, goals that do not inspire them.\",\n        \"Of course there is no formula for success except perhaps an unconditional acceptance of life and what it brings.\",\n        \"We learn what we have said from those who listen to our speaking.\",\n        \"The day you decide to do it is your lucky day.\",\n        \"If we learn to open our hearts, anyone, including the people who drive us crazy, can be our teacher.\",\n        \"Nothing is a waste of time if you use the experience wisely.\",\n        \"I don't believe in failure. It is not failure if you enjoyed the process.\",\n        \"You'll see it when you believe it.\",\n        \"Three things cannot be long hidden: the sun, the moon, and the truth.\",\n        \"The really unhappy person is the one who leaves undone what they can do, and starts doing what they don't understand; no wonder they come to grief.\",\n        \"Decision is a risk rooted in the courage of being free.\",\n        \"Life is a succession of moments. To live each one is to succeed.\",\n        \"Courage is not the absence of fear, but simply moving on with dignity despite that fear.\",\n        \"You'll see it when you believe it.\",\n        \"He who wishes to secure the good of others, has already secured his own.\",\n        \"Whatever we expect with confidence becomes our own self-fulfilling prophecy.\",\n        \"Don't judge each day by the harvest you reap but by the seeds that you plant.\",\n        \"For every failure, there's an alternative course of action. You just have to find it. When you come to a roadblock, take a detour.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"Doing nothing is better than being busy doing nothing.\",\n        \"Be like the flower, turn your face to the sun.\",\n        \"What is a weed? A plant whose virtues have not yet been discovered.\",\n        \"Some people are always grumbling because roses have thorns; I am thankful that thorns have roses.\",\n        \"Conflict is the gadfly of thought. It stirs us to observation and memory. It instigates to invention. It shocks us out of sheeplike passivity, and sets us at noting and contriving.\",\n        \"All men have a sweetness in their life. That is what helps them go on. It is towards that they turn when they feel too worn out.\",\n        \"You have to believe in yourself.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"Wit lies in recognizing the resemblance among things which differ and the difference between things which are alike.\",\n        \"When your desires are strong enough you will appear to possess superhuman powers to achieve.\",\n        \"I never worry about action, but only inaction.\",\n        \"Reality leaves a lot to the imagination.\",\n        \"When in doubt, tell the truth.\",\n        \"The trick is in what one emphasizes. We either make ourselves miserable, or we make ourselves happy. The amount of work is the same.\",\n        \"No one has ever become poor by giving.\",\n        \"Begin at once to live and count each separate day as a separate life.\",\n        \"You will never be happy if you continue to search for what happiness consists of. You will never live if you are looking for the meaning of life.\",\n        \"You really can change the world if you care enough.\",\n        \"Be faithful in small things because it is in them that your strength lies.\",\n        \"What matters is the value we've created in our lives, the people we've made happy and how much we've grown as people.\",\n        \"I am of the opinion that my life belongs to the community, and as long as I live it is my privilege to do for it whatever I can.\",\n        \"Give thanks for a little and you will find a lot.\",\n        \"I seek constantly to improve my manners and graces, for they are the sugar to which all are attracted.\",\n        \"Slow down and everything you are chasing will come around and catch you.\",\n        \"Do not turn back when you are just at the goal.\",\n        \"Snowflakes are one of natures most fragile things, but just look what they can do when they stick together.\",\n        \"I find hope in the darkest of days, and focus in the brightest. I do not judge the universe.\",\n        \"My reputation grows with every failure.\",\n        \"A man may fulfil the object of his existence by asking a question he cannot answer, and attempting a task he cannot achieve.\",\n        \"There is nothing happens to any person but what was in his power to go through with.\",\n        \"The winner ain't the one with the fastest car it's the one who refuses to lose.\",\n        \"The thoughts we choose to think are the tools we use to paint the canvas of our lives.\",\n        \"There is no way to prosperity, prosperity is the way.\",\n        \"The only real mistake is the one from which we learn nothing.\",\n        \"Why compare yourself with others? No one in the entire world can do a better job of being you than you.\",\n        \"Everything is perfect in the universe even your desire to improve it.\",\n        \"The mind unlearns with difficulty what it has long learned.\",\n        \"To get the full value of joy you must have someone to divide it with.\",\n        \"The two most powerful warriors are patience and time.\",\n        \"If you're in a bad situation, don't worry it'll change. If you're in a good situation, don't worry it'll change.\",\n        \"Pick battles big enough to matter, small enough to win.\",\n        \"Begin at once to live and count each separate day as a separate life.\",\n        \"Knowledge rests not upon truth alone, but upon error also.\",\n        \"Either you run the day or the day runs you.\",\n        \"The odds of hitting your target go up dramatically when you aim at it.\",\n        \"If you seek truth you will not seek victory by dishonourable means, and if you find truth you will become invincible.\",\n        \"If you are going to achieve excellence in big things, you develop the habit in little matters. Excellence is not an exception, it is a prevailing attitude.\",\n        \"Nothing will work unless you do.\",\n        \"You can do it if you believe you can!\",\n        \"The universe is full of magical things, patiently waiting for our wits to grow sharper.\",\n        \"There are two kinds of failures: those who thought and never did, and those who did and never thought.\",\n        \"I walk slowly, but I never walk backward.\",\n        \"Some people thrive on huge, dramatic change. Some people prefer the slow and steady route. Do what's right for you.\",\n        \"It isn't where you come from, it's where you're going that counts.\",\n        \"Six essential qualities that are the key to success: Sincerity, personal integrity, humility, courtesy, wisdom, charity.\",\n        \"Quality means doing it right when no one is looking.\",\n        \"It is impossible for a man to learn what he thinks he already knows.\",\n        \"Joy is the best makeup.\",\n        \"All action results from thought, so it is thoughts that matter.\",\n        \"Never bend your head. Always hold it high. Look the world right in the eye.\",\n        \"Nothing is so strong as gentleness. Nothing is so gentle as real strength.\",\n        \"We know what we are, but know not what we may be.\",\n        \"A hero is no braver than an ordinary man, but he is braver five minutes longer.\",\n        \"The universe is made of stories, not atoms.\",\n        \"Forgiveness does not change the past, but it does enlarge the future.\",\n        \"Good people are good because they've come to wisdom through failure. We get very little wisdom from success, you know.\",\n        \"Everything you can imagine is real.\",\n        \"Doing what you love is the cornerstone of having abundance in your life.\",\n        \"Follow effective action with quiet reflection. From the quiet reflection will come even more effective action.\",\n        \"The more light you allow within you, the brighter the world you live in will be.\",\n        \"If only wed stop trying to be happy wed have a pretty good time.\",\n        \"If you have knowledge, let others light their candles in it.\",\n        \"All the great performers I have worked with are fuelled by a personal dream.\",\n        \"You can observe a lot just by watching.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"Begin, be bold, and venture to be wise.\",\n        \"Each day can be one of triumph if you keep up your interests.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"Don't let what you can't do stop you from doing what you can do.\",\n        \"If you spend too much time thinking about a thing, you'll never get it done.\",\n        \"We never understand how little we need in this world until we know the loss of it.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"Peace comes from within. Do not seek it without.\",\n        \"Let us resolve to be masters, not the victims, of our history, controlling our own destiny without giving way to blind suspicions and emotions.\",\n        \"The ladder of success is never crowded at the top.\",\n        \"There is nothing like returning to a place that remains unchanged to find the ways in which you yourself have altered.\",\n        \"What is not started today is never finished tomorrow.\",\n        \"The world makes way for the man who knows where he is going.\",\n        \"Your outlook on life is a direct reflection on how much you like yourself.\",\n        \"Waste no more time arguing about what a good man should be. Be one.\",\n        \"Try and fail, but don't fail to try.\",\n        \"When you realize there is nothing lacking, the whole world belongs to you.\",\n        \"Edison failed 10,000 times before he made the electric light. Do not be discouraged if you fail a few times.\",\n        \"Everything you are against weakens you. Everything you are for empowers you.\",\n        \"There are no limitations to the mind except those we acknowledge.\",\n        \"A good decision is based on knowledge and not on numbers.\",\n        \"Dreams come true. Without that possibility, nature would not incite us to have them.\",\n        \"In the depth of winter, I finally learned that there was within me an invincible summer.\",\n        \"Man cannot discover new oceans unless he has the courage to lose sight of the shore.\",\n        \"In a controversy the instant we feel anger we have already ceased striving for the truth, and have begun striving for ourselves.\",\n        \"Choose a job you love, and you will never have to work a day in your life.\",\n        \"He who has health has hope, and he who has hope has everything.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift that's why they call it the present.\",\n        \"A good teacher is like a candle it consumes itself to light the way for others.\",\n        \"If you want your life to be more rewarding, you have to change the way you think.\",\n        \"Be slow of tongue and quick of eye.\",\n        \"It has never been my object to record my dreams, just to realize them.\",\n        \"The only difference between your abilities and others is the ability to put yourself in their shoes and actually try.\",\n        \"And as we let our own light shine, we unconsciously give other people permission to do the same.\",\n        \"Good thoughts are no better than good dreams, unless they be executed.\",\n        \"Never idealize others. They will never live up to your expectations.\",\n        \"Try not to become a man of success, but rather try to become a man of value.\",\n        \"The conditions of conquest are always easy. We have but to toil awhile, endure awhile, believe always, and never turn back.\",\n        \"You always succeed in producing a result.\",\n        \"Criticism is something you can easily avoid by saying nothing, doing nothing, and being nothing.\",\n        \"If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place.\",\n        \"Great indeed is the sublimity of the Creative, to which all beings owe their beginning and which permeates all heaven.\",\n        \"What we see depends mainly on what we look for.\",\n        \"If you accept the expectations of others, especially negative ones, then you never will change the outcome.\",\n        \"Think for yourselves and let others enjoy the privilege to do so too.\",\n        \"Don't judge each day by the harvest you reap but by the seeds you plant.\",\n        \"The way is not in the sky. The way is in the heart.\",\n        \"Everything has beauty, but not everyone sees it.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"The happiness that is genuinely satisfying is accompanied by the fullest exercise of our faculties and the fullest realization of the world in which we live.\",\n        \"Mistakes are always forgivable, if one has the courage to admit them.\",\n        \"Only those who dare to fail greatly can ever achieve greatly.\",\n        \"Practice yourself, for heavens sake in little things, and then proceed to greater.\",\n        \"To be great is to be misunderstood.\",\n        \"Set your goals high, and don't stop till you get there.\",\n        \"He who controls others may be powerful, but he who has mastered himself is mightier still.\",\n        \"The less effort, the faster and more powerful you will be.\",\n        \"Don't miss all the beautiful colors of the rainbow looking for that pot of gold.\",\n        \"Every action of our lives touches on some chord that will vibrate in eternity.\",\n        \"Be kind whenever possible. It is always possible.\",\n        \"There is no failure except in no longer trying.\",\n        \"We are shaped by our thoughts; we become what we think. When the mind is pure, joy follows like a shadow that never leaves.\",\n        \"There is not one big cosmic meaning for all, there is only the meaning we each give to our life.\",\n        \"Be glad of life because it gives you the chance to love, to work, to play, and to look up at the stars.\",\n        \"The superior man is satisfied and composed; the mean man is always full of distress.\",\n        \"Men of perverse opinion do not know the excellence of what is in their hands, till some one dash it from them.\",\n        \"Love vanquishes time. To lovers, a moment can be eternity, eternity can be the tick of a clock.\",\n        \"We choose our joys and sorrows long before we experience them.\",\n        \"Very little is needed to make a happy life; it is all within yourself, in your way of thinking.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept responsibility for changing them.\",\n        \"Kindness is more important than wisdom, and the recognition of this is the beginning of wisdom.\",\n        \"Self-trust is the first secret of success.\",\n        \"There never was a good knife made of bad steel.\",\n        \"The way is not in the sky. The way is in the heart.\",\n        \"Obstacles are those frightful things you see when you take your eyes off your goal.\",\n        \"May our hearts garden of awakening bloom with hundreds of flowers.\",\n        \"Trust yourself. You know more than you think you do.\",\n        \"Sometimes it is better to lose and do the right thing than to win and do the wrong thing.\",\n        \"The greater part of human pain is unnecessary. It is self-created as long as the unobserved mind runs your life.\",\n        \"Begin, be bold, and venture to be wise.\",\n        \"Count your joys instead of your woes. Count your friends instead of your foes.\",\n        \"What you give is what you get.\",\n        \"Whatever we expect with confidence becomes our own self-fulfilling prophecy.\",\n        \"A friend is someone who understands your past, believes in your future, and accepts you just the way you are.\",\n        \"Be yourself; everyone else is already taken.\",\n        \"I will prepare and some day my chance will come.\",\n        \"I believe that we are solely responsible for our choices, and we have to accept the consequences of every deed, word, and thought throughout our lifetime.\",\n        \"Don't be afraid to go out on a limb. That's where the fruit is.\",\n        \"The future belongs to those who believe in the beauty of their dreams.\",\n        \"Nothing is predestined: The obstacles of your past can become the gateways that lead to new beginnings.\",\n        \"The best way out is always through.\",\n        \"Wrinkles should merely indicate where smiles have been.\",\n        \"Know, first, who you are, and then adorn yourself accordingly.\",\n        \"How many cares one loses when one decides not to be something but to be someone.\",\n        \"To bring anything into your life, imagine that it's already there.\",\n        \"The greatest way to live with honor in this world is to be what we pretend to be.\",\n        \"Why worry about things you cannot control when you can keep yourself busy controlling the things that depend on you?\",\n        \"People are so constituted that everybody would rather undertake what they see others do, whether they have an aptitude for it or not.\",\n        \"You are special, you are unique, you are the best!\",\n        \"When one tugs at a single thing in nature, he finds it attached to the rest of the world.\",\n        \"Do not be embarrassed by your mistakes. Nothing can teach us better than our understanding of them. This is one of the best ways of self-education.\",\n        \"Men are disturbed not by things, but by the view which they take of them.\",\n        \"Here is one quality that one must possess to win, and that is definiteness of purpose, the knowledge of what one wants, and a burning desire to possess it.\",\n        \"The reasonable man adapts himself to the world; the unreasonable man persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.\",\n        \"Trust yourself. You know more than you think you do.\",\n        \"All men who have achieved great things have been great dreamers.\",\n        \"Give me six hours to chop down a tree and I will spend the first four sharpening the axe.\",\n        \"Love vanquishes time. To lovers, a moment can be eternity, eternity can be the tick of a clock.\",\n        \"All I can say about life is, Oh God, enjoy it!\",\n        \"In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time.\",\n        \"The price of greatness is responsibility.\",\n        \"If one is estranged from oneself, then one is estranged from others too. If one is out of touch with oneself, then one cannot touch others.\",\n        \"Failure doesn't mean you are a failure it just means you haven't succeeded yet.\",\n        \"The greatest minds are capable of the greatest vices as well as of the greatest virtues.\",\n        \"Accept the things to which fate binds you, and love the people with whom fate brings you together, but do so with all your heart.\",\n        \"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.\",\n        \"I cannot make my days longer so I strive to make them better.\",\n        \"The ladder of success is never crowded at the top.\",\n        \"We must become the change we want to see.\",\n        \"If you're walking down the right path and you're willing to keep walking, eventually you'll make progress.\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"Were here for a reason. I believe a bit of the reason is to throw little torches out to lead people through the dark.\",\n        \"Conflict is the gadfly of thought. It stirs us to observation and memory. It instigates to invention. It shocks us out of sheeplike passivity, and sets us at noting and contriving.\",\n        \"Remember that failure is an event, not a person.\",\n        \"No one has a finer command of language than the person who keeps his mouth shut.\",\n        \"You are the only person on Earth who can use your ability.\",\n        \"Good thoughts are no better than good dreams, unless they be executed.\",\n        \"Excellence is to do a common thing in an uncommon way.\",\n        \"You must welcome change as the rule but not as your ruler.\",\n        \"To bring anything into your life, imagine that it's already there.\",\n        \"From error to error one discovers the entire truth.\",\n        \"Most folks are as happy as they make up their minds to be.\",\n        \"All perceiving is also thinking, all reasoning is also intuition, all observation is also invention.\",\n        \"A single conversation across the table with a wise person is worth a months study of books.\",\n        \"To avoid criticism, do nothing, say nothing, be nothing.\",\n        \"It is through science that we prove, but through intuition that we discover.\",\n        \"Sincerity is the way of Heaven. The attainment of sincerity is the way of men.\",\n        \"Promises are the uniquely human way of ordering the future, making it predictable and reliable to the extent that this is humanly possible.\",\n        \"What is necessary to change a person is to change his awareness of himself.\",\n        \"Some pursue happiness, others create it.\",\n        \"Your future depends on many things, but mostly on you.\",\n        \"It's important to know that words don't move mountains. Work, exacting work moves mountains.\",\n        \"The bird of paradise alights only upon the hand that does not grasp.\",\n        \"To give ones self earnestly to the duties due to men, and, while respecting spiritual beings, to keep aloof from them, may be called wisdom.\",\n        \"Using the power of decision gives you the capacity to get past any excuse to change any and every part of your life in an instant.\",\n        \"You will never be happy if you continue to search for what happiness consists of. You will never live if you are looking for the meaning of life.\",\n        \"No valid plans for the future can be made by those who have no capacity for living now.\",\n        \"Be thankful when you don't know something for it gives you the opportunity to learn.\",\n        \"The undertaking of a new action brings new strength.\",\n        \"The world does not happen to you it happens from you.\",\n        \"Character develops itself in the stream of life.\",\n        \"Don't frown because you never know who is falling in love with your smile.\",\n        \"The thing always happens that you really believe in; and the belief in a thing makes it happen.\",\n        \"The mark of your ignorance is the depth of your belief in injustice and tragedy. What the caterpillar calls the end of the world, the Master calls the butterfly.\",\n        \"Kindness is the golden chain by which society is bound together.\",\n        \"Thats the risk you take if you change: that people you've been involved with won't like the new you. But other people who do will come along.\",\n        \"Nothing diminishes anxiety faster than action.\",\n        \"Everyone thinks of changing the world, but no one thinks of changing himself.\",\n        \"To be what we are, and to become what we are capable of becoming, is the only end of life.\",\n        \"There surely is in human nature an inherent propensity to extract all the good out of all the evil.\",\n        \"Everything you can imagine is real.\",\n        \"Belief consists in accepting the affirmations of the soul; Unbelief, in denying them.\",\n        \"Every day may not be good, but there's something good in every day.\",\n        \"It's so simple to be wise. Just think of something stupid to say and then don't say it.\",\n        \"The free man is he who does not fear to go to the end of his thought.\",\n        \"Begin, be bold, and venture to be wise.\",\n        \"All the great performers I have worked with are fuelled by a personal dream.\",\n        \"Most smiles are started by another smile.\",\n        \"Important principles may, and must, be inflexible.\",\n        \"You can't create in a vacuum. Life gives you the material and dreams can propel new beginnings.\",\n        \"Fear grows in darkness; if you think theres a bogeyman around, turn on the light.\",\n        \"Do one thing every day that scares you.\",\n        \"The more you know yourself, the more you forgive yourself.\",\n        \"Peace begins with a smile.\",\n        \"Love vanquishes time. To lovers, a moment can be eternity, eternity can be the tick of a clock.\",\n        \"Though no one can go back and make a brand new start, anyone can start from not and make a brand new ending.\",\n        \"It is through science that we prove, but through intuition that we discover.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"With courage you will dare to take risks, have the strength to be compassionate, and the wisdom to be humble. Courage is the foundation of integrity.\",\n        \"When you are content to be simply yourself and don't compare or compete, everybody will respect you.\",\n        \"If you correct your mind, the rest of your life will fall into place.\",\n        \"All our knowledge begins with the senses, proceeds then to the understanding, and ends with reason. There is nothing higher than reason.\",\n        \"He who knows, does not speak. He who speaks, does not know.\",\n        \"You can't stop the waves, but you can learn to surf.\",\n        \"Happiness is the reward we get for living to the highest right we know.\",\n        \"People grow through experience if they meet life honestly and courageously. This is how character is built.\",\n        \"Happiness is not something ready made. It comes from your own actions.\",\n        \"The eye sees only what the mind is prepared to comprehend.\",\n        \"There is no need for temples, no need for complicated philosophies. My brain and my heart are my temples; my philosophy is kindness.\",\n        \"People take different roads seeking fulfilment and happiness. Just because theyre not on your road doesn't mean they've gotten lost.\",\n        \"The Creator has not given you a longing to do that which you have no ability to do.\",\n        \"Life shrinks or expands in proportion to one's courage.\",\n        \"The road leading to a goal does not separate you from the destination; it is essentially a part of it.\",\n        \"Better be ignorant of a matter than half know it.\",\n        \"You can't stop the waves, but you can learn to surf.\",\n        \"Our greatest glory is not in never failing but rising everytime we fall.\",\n        \"No man is free who is not master of himself.\",\n        \"Dreams come true. Without that possibility, nature would not incite us to have them.\",\n        \"Happiness is the reward we get for living to the highest right we know.\",\n        \"When you arise in the morning, think of what a precious privilege it is to be alive to breathe, to think, to enjoy, to love.\",\n        \"You teach best what you most need to learn.\",\n        \"Every gift from a friend is a wish for your happiness.\",\n        \"Life is so constructed that an event does not, cannot, will not, match the expectation.\",\n        \"Love is not blind; it simply enables one to see things others fail to see.\",\n        \"He who is fixed to a star does not change his mind.\",\n        \"The future belongs to those who believe in the beauty of their dreams.\",\n        \"It's important to know that words don't move mountains. Work, exacting work moves mountains.\",\n        \"You cannot have what you do not want.\",\n        \"Never mistake motion for action.\",\n        \"If we look at the world with a love of life, the world will reveal its beauty to us.\",\n        \"Enjoy the little things, for one day you may look back and realize they were the big things.\",\n        \"When it is obvious that the goals cannot be reached, don't adjust the goals, adjust the action steps.\",\n        \"People who say it cannot be done should not interrupt those who are doing it.\",\n        \"You can't stop the waves, but you can learn to surf.\",\n        \"The person born with a talent they are meant to use will find their greatest happiness in using it.\",\n        \"The secret of joy in work is contained in one word excellence. To know how to do something well is to enjoy it.\",\n        \"Through perseverance many people win success out of what seemed destined to be certain failure.\",\n        \"The superior man is modest in his speech, but exceeds in his actions.\",\n        \"All our talents increase in the using, and the every faculty, both good and bad, strengthen by exercise.\",\n        \"Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love.\",\n        \"I begin with an idea and then it becomes something else.\",\n        \"What is not started today is never finished tomorrow.\",\n        \"Never mistake activity for achievement.\",\n        \"Learning is a treasure that will follow its owner everywhere\",\n        \"Yesterdays home runs don't win today's games.\",\n        \"We must not allow ourselves to become like the system we oppose.\",\n        \"Wisdom is knowing what to do next; Skill is knowing how ot do it, and Virtue is doing it.\",\n        \"Although there may be tragedy in your life, there's always a possibility to triumph. It doesn't matter who you are, where you come from. The ability to triumph begins with you. Always.\",\n        \"In a controversy the instant we feel anger we have already ceased striving for the truth, and have begun striving for ourselves.\",\n        \"You can do it if you believe you can!\",\n        \"To hell with circumstances; I create opportunities.\",\n        \"Only when we are no longer afraid do we begin to live.\",\n        \"Staying in one place is the best path to be taken over and surpassed by many.\",\n        \"Sometimes your joy is the source of your smile, but sometimes your smile can be the source of your joy.\",\n        \"Better be ignorant of a matter than half know it.\",\n        \"There are only two mistakes one can make along the road to truth; not going all the way, and not starting.\",\n        \"Not every difficult and dangerous thing is suitable for training, but only that which is conducive to success in achieving the object of our effort.\",\n        \"The right way is not always the popular and easy way. Standing for right when it is unpopular is a true test of moral character.\",\n        \"Translation is the paradigm, the exemplar of all writing. It is translation that demonstrates most vividly the yearning for transformation that underlies every act involving speech, that supremely human gift.\",\n        \"What the caterpillar calls the end of the world, the master calls a butterfly.\",\n        \"You are important enough to ask and you are blessed enough to receive back.\",\n        \"Myths which are believed in tend to become true.\",\n        \"The happiness that is genuinely satisfying is accompanied by the fullest exercise of our faculties and the fullest realization of the world in which we live.\",\n        \"Knowledge is a process of piling up facts; wisdom lies in their simplification.\",\n        \"We choose our joys and sorrows long before we experience them.\",\n        \"The cautious seldom err.\",\n        \"A subtle thought that is in error may yet give rise to fruitful inquiry that can establish truths of great value.\",\n        \"In order to win, you must expect to win.\",\n        \"There are no failures just experiences and your reactions to them.\",\n        \"Everything that irritates us about others can lead us to a better understanding of ourselves.\",\n        \"The least of things with a meaning is worth more in life than the greatest of things without it.\",\n        \"If you propose to speak, always ask yourself, is it true, is it necessary, is it kind.\",\n        \"I've never seen a smiling face that was not beautiful.\",\n        \"He who controls others may be powerful, but he who has mastered himself is mightier still.\",\n        \"He is a wise man who does not grieve for the things which he has not, but rejoices for those which he has.\",\n        \"We aim above the mark to hit the mark.\",\n        \"Nature is a mutable cloud which is always and never the same.\",\n        \"Don't believe what your eyes are telling you. All they show is limitation. Look with your understanding, find out what you already know, and you'll see the way to fly.\",\n        \"We are what we repeatedly do. Excellence, then, is not an act but a habit.\",\n        \"Obstacles are those frightful things you see when you take your eyes off your goal.\",\n        \"I am always doing that which I can not do, in order that I may learn how to do it.\",\n        \"Let us resolve to be masters, not the victims, of our history, controlling our own destiny without giving way to blind suspicions and emotions.\",\n        \"Without courage, wisdom bears no fruit.\",\n        \"The only difference between your abilities and others is the ability to put yourself in their shoes and actually try.\",\n        \"Treat people as if they were what they ought to be and you help them to become what they are capable of being.\",\n        \"This world, after all our science and sciences, is still a miracle; wonderful, inscrutable, magical and more, to whosoever will think of it.\",\n        \"If I could reach up and hold a star for every time you've made me smile, the entire evening sky would be in the palm of my hand.\",\n        \"Without this playing with fantasy no creative work has ever yet come to birth. The debt we owe to the play of the imagination is incalculable.\",\n        \"Keep true to the dreams of thy youth.\",\n        \"It is in your moments of decision that your destiny is shaped.\",\n        \"By letting it go it all gets done. The world is won by those who let it go. But when you try and try. The world is beyond the winning.\",\n        \"The reasonable man adapts himself to the world; the unreasonable man persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.\",\n        \"Happiness does not come about only due to external circumstances; it mainly derives from inner attitudes.\",\n        \"The thought manifests as the word. The word manifests as the deed. The deed develops into habit. And the habit hardens into character.\",\n        \"It is never too late. Even if you are going to die tomorrow, keep yourself straight and clear and be a happy human being today.\",\n        \"Strong beliefs win strong men, and then make them stronger.\",\n        \"No matter how carefully you plan your goals they will never be more that pipe dreams unless you pursue them with gusto.\",\n        \"Kind words can be short and easy to speak but their echoes are truly endless.\",\n        \"Music in the soul can be heard by the universe.\",\n        \"The ladder of success is never crowded at the top.\",\n        \"Be thankful when you don't know something for it gives you the opportunity to learn.\",\n        \"Be a good listener. Your ears will never get you in trouble.\",\n        \"I have no special talent. I am only passionately curious.\",\n        \"Only through our connectedness to others can we really know and enhance the self. And only through working on the self can we begin to enhance our connectedness to others.\",\n        \"Numberless are the worlds wonders, but none more wonderful than man.\",\n        \"Kindness is the golden chain by which society is bound together.\",\n        \"The universe is transformation; our life is what our thoughts make it.\",\n        \"If you lose today, win tomorrow. In this never-ending spirit of challenge is the heart of a victor.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"Know, first, who you are, and then adorn yourself accordingly.\",\n        \"He is able who thinks he is able.\",\n        \"Decision is a risk rooted in the courage of being free.\",\n        \"Progress always involves risks. You can't steal second base and keep your foot on first.\",\n        \"Love all, trust a few, do wrong to none.\",\n        \"Never deny a diagnosis, but do deny the negative verdict that may go with it.\",\n        \"Trouble is only opportunity in work clothes.\",\n        \"Gratitude is the fairest blossom which springs from the soul.\",\n        \"You can't trust without risk but neither can you live in a cocoon.\",\n        \"True silence is the rest of the mind; it is to the spirit what sleep is to the body, nourishment and refreshment.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"Begin at once to live and count each separate day as a separate life.\",\n        \"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.\",\n        \"What is not started today is never finished tomorrow.\",\n        \"Just as much as we see in others we have in ourselves.\",\n        \"Everything that irritates us about others can lead us to an understanding of ourselves.\",\n        \"Silence is the true friend that never betrays.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"It is through science that we prove, but through intuition that we discover.\",\n        \"And as we let our own light shine, we unconsciously give other people permission to do the same.\",\n        \"Happiness is not in the mere possession of money; it lies in the joy of achievement, in the thrill of creative effort.\",\n        \"When it is obvious that the goals cannot be reached, don't adjust the goals, adjust the action steps.\",\n        \"Obstacles are those frightful things you see when you take your eyes off your goal.\",\n        \"Think as a wise man but communicate in the language of the people.\",\n        \"To be upset over what you don't have is to waste what you do have.\",\n        \"Truth is powerful and it prevails.\",\n        \"It is easier to live through someone else than to become complete yourself.\",\n        \"Our greatest glory is not in never failing but rising everytime we fall.\",\n        \"If you get up one more time than you fall, you will make it through.\",\n        \"Take heed: you do not find what you do not seek.\",\n        \"All that we are is the result of what we have thought. The mind is everything. What we think we become.\",\n        \"Life is a progress, and not a station.\",\n        \"Correction does much, but encouragement does more.\",\n        \"I am a man of fixed and unbending principles, the first of which is to be flexible at all times.\",\n        \"Impossibilities are merely things which we have not yet learned.\",\n        \"All men who have achieved great things have been great dreamers.\",\n        \"People are so constituted that everybody would rather undertake what they see others do, whether they have an aptitude for it or not.\",\n        \"If I know what love is, it is because of you.\",\n        \"In separateness lies the world's great misery, in compassion lies the world's true strength.\",\n        \"Never regret. If it's good, it's wonderful. If it's bad, it's experience.\",\n        \"Four steps to achievement: Plan purposefully. Prepare prayerfully. Proceed positively. Pursue persistently.\",\n        \"You can never cross the ocean unless you have the courage to lose sight of the shore.\",\n        \"To enjoy life, we must touch much of it lightly.\",\n        \"I have done my best: that is about all the philosophy of living one needs.\",\n        \"The reason most goals are not achieved is that we spend our time doing second things first.\",\n        \"We never live; we are always in the expectation of living.\",\n        \"You are the only person on earth who can use your ability.\",\n        \"You cannot be lonely if you like the person you're alone with.\",\n        \"Minds are like parachutes. They only function when open.\",\n        \"Give thanks for a little and you will find a lot.\",\n        \"Good luck is another name for tenacity of purpose.\",\n        \"What do we live for, if it is not to make life less difficult for each other?\",\n        \"If you're walking down the right path and you're willing to keep walking, eventually you'll make progress.\",\n        \"Intuition is the supra-logic that cuts out all the routine processes of thought and leaps straight from the problem to the answer.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"Without leaps of imagination, or dreaming, we lose the excitement of possibilities. Dreaming, after all, is a form of planning.\",\n        \"Our greatest glory is not in never falling, but in rising every time we fall.\",\n        \"Change your thoughts, change your life!\",\n        \"What is necessary to change a person is to change his awareness of himself.\",\n        \"You must do the things you think you cannot do.\",\n        \"The winds and waves are always on the side of the ablest navigators.\",\n        \"As an organizer I start from where the world is, as it is, not as I would like it to be.\",\n        \"Yeah we all shine on, like the moon, and the stars, and the sun.\",\n        \"Nothing ever goes away until it has taught us what we need to know.\",\n        \"Imagination disposes of everything; it creates beauty, justice, and happiness, which are everything in this world.\",\n        \"We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.\",\n        \"Respect is not something that you can ask for, buy or borrow. Respect is what you earn from each person no matter their background or status.\",\n        \"Love vanquishes time. To lovers, a moment can be eternity, eternity can be the tick of a clock.\",\n        \"Your sacred space is where you can find yourself again and again.\",\n        \"The truth you believe and cling to makes you unavailable to hear anything new.\",\n        \"The only real failure in life is not to be true to the best one knows.\",\n        \"You have power over your mind not outside events. Realize this, and you will find strength.\",\n        \"The happy and efficient people in this world are those who accept trouble as a normal detail of human life and resolve to capitalize it when it comes along.\",\n        \"The secret to a rich life is to have more beginnings than endings.\",\n        \"Better be ignorant of a matter than half know it.\",\n        \"Here is one quality that one must possess to win, and that is definiteness of purpose, the knowledge of what one wants, and a burning desire to possess it.\",\n        \"Before you can inspire with emotion, you must be swamped with it yourself. Before you can move their tears, your own must flow. To convince them, you must yourself believe.\",\n        \"Aim for success, not perfection. Never give up your right to be wrong, because then you will lose the ability to learn new things and move forward with your life.\",\n        \"Chance is always powerful. Let your hook be always cast; in the pool where you least expect it, there will be a fish.\",\n        \"From error to error one discovers the entire truth.\",\n        \"I hear and I forget. I see and I remember. I do and I understand.\",\n        \"Gratitude is the fairest blossom which springs from the soul.\",\n        \"You have to take it as it happens, but you should try to make it happen the way you want to take it.\",\n        \"You can do what's reasonable or you can decide what's possible.\",\n        \"I do not believe in a fate that falls on men however they act; but I do believe in a fate that falls on them unless they act.\",\n        \"We choose our joys and sorrows long before we experience them.\",\n        \"Time you enjoyed wasting was not wasted.\",\n        \"My mama always said: life's like a box of chocolate you never know what you gonna get.\",\n        \"Don't frown because you never know who is falling in love with your smile.\",\n        \"It takes both sunshine and rain to make a rainbow.\",\n        \"The best and most beautiful things in the world cannot be seen, nor touched... but are felt in the heart.\",\n        \"Inspiration exists, but it has to find us working.\",\n        \"So long as a person is capable of self-renewal they are a living being.\",\n        \"Fear grows in darkness; if you think theres a bogeyman around, turn on the light.\",\n        \"The energy of the mind is the essence of life.\",\n        \"When I let go of what I am, I become what I might be.\",\n        \"Vision without action is a daydream. Action without vision is a nightmare.\",\n        \"All children are artists. The problem is how to remain an artist once he grows up.\",\n        \"When in doubt, tell the truth.\",\n        \"It is not fair to ask of others what you are unwilling to do yourself.\",\n        \"Learning is finding out what you already know.\",\n        \"There is a way that nature speaks, that land speaks. Most of the time we are simply not patient enough, quiet enough, to pay attention to the story.\",\n        \"We cannot direct the wind but we can adjust the sails.\",\n        \"It is better to travel well than to arrive.\",\n        \"It isn't where you come from, it's where you're going that counts.\",\n        \"Each day provides its own gifts.\",\n        \"Always tell the truth. That way, you don't have to remember what you said.\",\n        \"Everything in the universe goes by indirection. There are no straight lines.\",\n        \"If you change the way you look at things, the things you look at change.\",\n        \"The trick is in what one emphasizes. We either make ourselves miserable, or we make ourselves happy. The amount of work is the same.\",\n        \"Ideas are the beginning points of all fortunes.\",\n        \"Self-trust is the first secret of success.\",\n        \"A stumble may prevent a fall.\",\n        \"Progress always involves risks. You can't steal second base and keep your foot on first.\",\n        \"Mediocrity knows nothing higher than itself, but talent instantly recognizes genius.\",\n        \"The thoughts we choose to think are the tools we use to paint the canvas of our lives.\",\n        \"Without this playing with fantasy no creative work has ever yet come to birth. The debt we owe to the play of the imagination is incalculable.\",\n        \"The greatest obstacle to connecting with our joy is resentment.\",\n        \"Don't be afraid to go out on a limb. That's where the fruit is.\",\n        \"Your friends will know you better in the first minute you meet than your acquaintances will know you in a thousand years.\",\n        \"I am of the opinion that my life belongs to the community, and as long as I live it is my privilege to do for it whatever I can.\",\n        \"If you love life, don't waste time, for time is what life is made up of.\",\n        \"Positive thinking will let you do everything better than negative thinking will.\",\n        \"To give ones self earnestly to the duties due to men, and, while respecting spiritual beings, to keep aloof from them, may be called wisdom.\",\n        \"A subtle thought that is in error may yet give rise to fruitful inquiry that can establish truths of great value.\",\n        \"To fly, we have to have resistance.\",\n        \"People who say it cannot be done should not interrupt those who are doing it.\",\n        \"The truth of the matter is that you always know the right thing to do. The hard part is doing it.\",\n        \"If it is not right do not do it; if it is not true do not say it.\",\n        \"An ounce of emotion is equal to a ton of facts.\",\n        \"How wonderful it is that nobody need wait a single moment before starting to improve the world.\",\n        \"The eye sees only what the mind is prepared to comprehend.\",\n        \"We cannot hold a torch to light another's path without brightening our own.\",\n        \"Sometimes by losing a battle you find a new way to win the war.\",\n        \"There is a way that nature speaks, that land speaks. Most of the time we are simply not patient enough, quiet enough, to pay attention to the story.\",\n        \"You have to take it as it happens, but you should try to make it happen the way you want to take it.\",\n        \"A man who doesn't trust himself can never really trust anyone else.\",\n        \"The conditions of conquest are always easy. We have but to toil awhile, endure awhile, believe always, and never turn back.\",\n        \"Practice yourself, for heavens sake in little things, and then proceed to greater.\",\n        \"Be yourself; everyone else is already taken.\",\n        \"Well done is better than well said.\",\n        \"The best thing about the future is that it only comes one day at a time.\",\n        \"Science is organized knowledge. Wisdom is organized life.\",\n        \"The happy and efficient people in this world are those who accept trouble as a normal detail of human life and resolve to capitalize it when it comes along.\",\n        \"If the shoe doesn't fit, must we change the foot?\",\n        \"The only real failure in life is not to be true to the best one knows.\",\n        \"A man may fulfil the object of his existence by asking a question he cannot answer, and attempting a task he cannot achieve.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"Beware of the half truth. You may have gotten hold of the wrong half.\",\n        \"The happiness of a man in this life does not consist in the absence but in the mastery of his passions.\",\n        \"Friendship isn't a big thing. It's a million little things.\",\n        \"No one has ever become poor by giving.\",\n        \"There are two kinds of failures: those who thought and never did, and those who did and never thought.\",\n        \"Your friends will know you better in the first minute you meet than your acquaintances will know you in a thousand years.\",\n        \"Bite off more than you can chew, then chew it.\",\n        \"A short saying often contains much wisdom.\",\n        \"Change your thoughts, change your life!\",\n        \"Setting goals is the first step in turning the invisible into the visible.\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"Nothing strengthens authority so much as silence.\",\n        \"If you do what you've always done, you'll get what youve always gotten.\",\n        \"What we achieve inwardly will change outer reality.\",\n        \"Respect should be earned by actions, and not acquired by years.\",\n        \"He who obtains has little. He who scatters has much.\",\n        \"Gratitude is not only the greatest of virtues, but the paren't of all the others.\",\n        \"Never say there is nothing beautiful in the world any more. There is always something to make you wonder in the shape of a tree, the trembling of a leaf.\",\n        \"It is very easy to forgive others their mistakes; it takes more grit to forgive them for having witnessed your own.\",\n        \"There is no way to prosperity, prosperity is the way.\",\n        \"Each man has his own vocation; his talent is his call. There is one direction in which all space is open to him.\",\n        \"Life is not measured by the breaths we take, but by the moments that take our breath.\",\n        \"You give before you get.\",\n        \"The industrial landscape is already littered with remains of once successful companies that could not adapt their strategic vision to altered conditions of competition.\",\n        \"Do good by stealth, and blush to find it fame.\",\n        \"Never mistake activity for achievement.\",\n        \"You can do what's reasonable or you can decide what's possible.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"Money was never a big motivation for me, except as a way to keep score. The real excitement is playing the game.\",\n        \"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.\",\n        \"We have committed the Golden Rule to memory; let us now commit it to life.\",\n        \"The best cure for the body is a quiet mind.\",\n        \"The smallest flower is a thought, a life answering to some feature of the Great Whole, of whom they have a persistent intuition.\",\n        \"If you do what you've always done, you'll get what youve always gotten.\",\n        \"Peace comes from within. Do not seek it without.\",\n        \"Ability is what you're capable of doing. Motivation determines what you do.Attitude determines how well you do it.\",\n        \"The truest greatness lies in being kind, the truest wisdom in a happy mind.\",\n        \"Belief consists in accepting the affirmations of the soul; Unbelief, in denying them.\",\n        \"Try not to become a man of success, but rather try to become a man of value.\",\n        \"Well begun is half done.\",\n        \"Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.\",\n        \"Better to have loved and lost, than to have never loved at all.\",\n        \"Great acts are made up of small deeds.\",\n        \"Something opens our wings. Something makes boredom and hurt disappear. Someone fills the cup in front of us: We taste only sacredness.\",\n        \"When fate hands us a lemon, lets try to make lemonade.\",\n        \"One fails forward toward success.\",\n        \"Every action of our lives touches on some chord that will vibrate in eternity.\",\n        \"Don't let today's disappointments cast a shadow on tomorrow's dreams.\",\n        \"The best cure for the body is a quiet mind.\",\n        \"Better be ignorant of a matter than half know it.\",\n        \"Our greatest glory is not in never falling, but in rising every time we fall.\",\n        \"To be wrong is nothing unless you continue to remember it.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept the responsibility for changing them.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"Don't judge each day by the harvest you reap but by the seeds that you plant.\",\n        \"The mind unlearns with difficulty what it has long learned.\",\n        \"Remember always that you not only have the right to be an individual, you have an obligation to be one.\",\n        \"To know oneself is to study oneself in action with another person.\",\n        \"A goal without a plan is just a wish.\",\n        \"Sometimes our fate resembles a fruit tree in winter. Who would think that those branches would turn green again and blossom, but we hope it, we know it.\",\n        \"The cautious seldom err.\",\n        \"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.\",\n        \"A man is great by deeds, not by birth.\",\n        \"Kind words will unlock an iron door.\",\n        \"If you look into your own heart, and you find nothing wrong there, what is there to worry about? What is there to fear?\",\n        \"If I am not for myself, who will be for me? If I am not for others, what am I? And if not now, when?\",\n        \"We cannot direct the wind but we can adjust the sails.\",\n        \"Be miserable. Or motivate yourself. Whatever has to be done, it's always your choice.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"The personal life deeply lived always expands into truths beyond itself.\",\n        \"Don't be pushed by your problems; be led by your dreams.\",\n        \"Self-complacency is fatal to progress.\",\n        \"We are all something, but none of us are everything.\",\n        \"You can never cross the ocean unless you have the courage to lose sight of the shore.\",\n        \"Keep true to the dreams of thy youth.\",\n        \"Today is the tomorrow you worried about yesterday.\",\n        \"There are only two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle.\",\n        \"Truth isn't all about what actually happens but more about how what has happened is interpreted.\",\n        \"You can never cross the ocean unless you have the courage to lose sight of the shore.\",\n        \"Cherish your visions and your dreams as they are the children of your soul; the blueprints of your ultimate achievements.\",\n        \"Sometimes your joy is the source of your smile, but sometimes your smile can be the source of your joy.\",\n        \"The only person who never makes mistakes is the person who never does anything.\",\n        \"Moral excellence comes about as a result of habit. We become just by doing just acts, temperate by doing temperate acts, brave by doing brave acts.\",\n        \"People grow through experience if they meet life honestly and courageously. This is how character is built.\",\n        \"Being right is highly overrated. Even a stopped clock is right twice a day.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"Although there may be tragedy in your life, there's always a possibility to triumph. It doesn't matter who you are, where you come from. The ability to triumph begins with you. Always.\",\n        \"In separateness lies the world's great misery, in compassion lies the world's true strength.\",\n        \"People of mediocre ability sometimes achieve outstanding success because they don't know when to quit. Most men succeed because they are determined to.\",\n        \"The personal life deeply lived always expands into truths beyond itself.\",\n        \"Let your hook always be cast; in the pool where you least expect it, there will be a fish.\",\n        \"Freedom is what you do with what's been done to you.\",\n        \"To speak gratitude is courteous and pleasant, to enact gratitude is generous and noble, but to live gratitude is to touch Heaven.\",\n        \"The dream was always running ahead of me. To catch up, to live for a moment in unison with it, that was the miracle.\",\n        \"Never mistake activity for achievement.\",\n        \"Reviewing what you have learned and learning anew, you are fit to be a teacher.\",\n        \"A short saying often contains much wisdom.\",\n        \"You have enemies? Good. That means you've stood up for something, sometime in your life.\",\n        \"Remember that sometimes not getting what you want is a wonderful stroke of luck.\",\n        \"Moments of complete apathy are the best for new creations.\",\n        \"When you arise in the morning, think of what a precious privilege it is to be alive to breathe, to think, to enjoy, to love.\",\n        \"Be not angry that you cannot make others as you wish them to be, since you cannot make yourself as you wish to be.\",\n        \"The power of intuitive understanding will protect you from harm until the end of your days.\",\n        \"I can't believe that God put us on this earth to be ordinary.\",\n        \"There are only two mistakes one can make along the road to truth; not going all the way, and not starting.\",\n        \"You can do it if you believe you can!\",\n        \"The best cure for the body is a quiet mind.\",\n        \"If you break your neck, if you have nothing to eat, if your house is on fire, then you got a problem. Everything else is inconvenience.\",\n        \"Time is the most valuable thing a man can spend.\",\n        \"Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.\",\n        \"You can observe a lot just by watching.\",\n        \"Do you want to know who you are? Don't ask. Act! Action will delineate and define you.\",\n        \"Let us always meet each other with smile, for the smile is the beginning of love.\",\n        \"The person born with a talent they are meant to use will find their greatest happiness in using it.\",\n        \"Fear not for the future, weep not for the past.\",\n        \"Waste no more time arguing about what a good man should be. Be one.\",\n        \"A short saying oft contains much wisdom.\",\n        \"A wise man will make more opportunities than he finds.\",\n        \"Ability is what you're capable of doing. Motivation determines what you do.Attitude determines how well you do it.\",\n        \"We must be as courteous to a man as we are to a picture, which we are willing to give the advantage of a good light.\",\n        \"Age does not protect you from love. But love, to some extent, protects you from age.\",\n        \"Patience is the companion of wisdom.\",\n        \"Life is so constructed that an event does not, cannot, will not, match the expectation.\",\n        \"Into each life rain must fall but rain can be the giver of life and it is all in your attitude that makes rain produce sunshine.\",\n        \"What lies behind us and what lies before us are tiny matters compared to what lies within us.\",\n        \"The world is always in movement.\",\n        \"Error is discipline through which we advance.\",\n        \"Light tomorrow with today!\",\n        \"The only thing to do with good advice is to pass it on. It is never of any use to oneself.\",\n        \"The world does not happen to you it happens from you.\",\n        \"Chaos is inherent in all compounded things. Strive on with diligence.\",\n        \"All is flux; nothing stays still.\",\n        \"Don't frown because you never know who is falling in love with your smile.\",\n        \"Nothing is at last sacred but the integrity of your own mind.\",\n        \"Failure will never overtake me if my determination to succeed is strong enough.\",\n        \"Gratitude makes sense of our past, brings peace for today, and creates a vision for tomorrow.\",\n        \"Almost everything comes from nothing.\",\n        \"The person who makes a success of living is the one who see his goal steadily and aims for it unswervingly. That is dedication.\",\n        \"To be fully alive, fully human, and completely awake is to be continually thrown out of the nest.\",\n        \"Keep yourself to the sunshine and you cannot see the shadow.\",\n        \"Mistakes are always forgivable, if one has the courage to admit them.\",\n        \"Those who dream by day are cognizant of many things which escape those who dream only by night.\",\n        \"Sometimes your joy is the source of your smile, but sometimes your smile can be the source of your joy.\",\n        \"Things do not change, we change.\",\n        \"Blessed is the person who is too busy to worry in the daytime, and too sleepy to worry at night.\",\n        \"Wise men talk because they have something to say; fools, because they have to say something.\",\n        \"Our lives are the only meaningful expression of what we believe and in Whom we believe. And the only real wealth, for any of us, lies in our faith.\",\n        \"The greater part of human pain is unnecessary. It is self-created as long as the unobserved mind runs your life.\",\n        \"I would maintain that thanks are the highest form of thought, and that gratitude is happiness doubled by wonder.\",\n        \"There is not one big cosmic meaning for all, there is only the meaning we each give to our life.\",\n        \"Silence is deep as Eternity, Speech is shallow as Time.\",\n        \"Complaining doesn't change a thing only taking action does.\",\n        \"Love does not consist of gazing at each other, but in looking together in the same direction.\",\n        \"No man was ever wise by chance.\",\n        \"He who is fixed to a star does not change his mind.\",\n        \"When you discover your mission, you will feel its demand. It will fill you with enthusiasm and a burning desire to get to work on it.\",\n        \"Chaos and Order are not enemies, only opposites.\",\n        \"A house divided against itself cannot stand.\",\n        \"Your work is to discover your world and then with all your heart give yourself to it.\",\n        \"Happiness does not come from having much, but from being attached to little.\",\n        \"Do what you can. Want what you have. Be who you are.\",\n        \"What we think determines what happens to us, so if we want to change our lives, we need to stretch our minds.\",\n        \"We must learn our limits. We are all something, but none of us are everything.\",\n        \"Learn to listen. Opportunity could be knocking at your door very softly.\",\n        \"The moment one gives close attention to anything, even a blade of grass, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"If you have knowledge, let others light their candles in it.\",\n        \"Skill to do comes of doing.\",\n        \"Someone is special only if you tell them.\",\n        \"Courage is going from failure to failure without losing enthusiasm.\",\n        \"Edison failed 10,000 times before he made the electric light. Do not be discouraged if you fail a few times.\",\n        \"Minds are like parachutes. They only function when open.\",\n        \"We need to find the courage to say NO to the things and people that are not serving us if we want to rediscover ourselves and live our lives with authenticity.\",\n        \"We are the leaves of one branch, the drops of one sea, the flowers of one garden.\",\n        \"Time is the most valuable thing a man can spend.\",\n        \"Things turn out best for those who make the best of the way things turn out.\",\n        \"The minute you settle for less than you deserve, you get even less than you settled for.\",\n        \"All the flowers of all the tomorrows are in the seeds of today.\",\n        \"All great achievements require time.\",\n        \"If one advances confidently in the direction of his dream, and endeavours to live the life which he had imagines, he will meet with a success unexpected in common hours.\",\n        \"We should all be thankful for those people who rekindle the inner spirit.\",\n        \"What we think determines what happens to us, so if we want to change our lives, we need to stretch our minds.\",\n        \"The time you think you're missing, misses you too.\",\n        \"There is only one success to be able to spend your life in your own way.\",\n        \"It's not what happens to you, but how you react to it that matters.\",\n        \"Be miserable. Or motivate yourself. Whatever has to be done, it's always your choice.\",\n        \"To effectively communicate, we must realize that we are all different in the way we perceive the world and use this understanding as a guide to our communication with others.\",\n        \"The shoe that fits one person pinches another; there is no recipe for living that suits all cases.\",\n        \"Beware of the half truth. You may have gotten hold of the wrong half.\",\n        \"We are what we think. All that we are arises with our thoughts. With our thoughts, we make the world.\",\n        \"If there is no struggle, there is no progress.\",\n        \"Love is the only force capable of transforming an enemy into friend.\",\n        \"The difference between what we do and what we are capable of doing would suffice to solve most of the worlds problems.\",\n        \"Love is just a word until someone comes along and gives it meaning.\",\n        \"To go against the dominant thinking of your friends, of most of the people you see every day, is perhaps the most difficult act of heroism you can perform.\",\n        \"Through meditation and by giving full attention to one thing at a time, we can learn to direct attention where we choose.\",\n        \"Take heed: you do not find what you do not seek.\",\n        \"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it.\",\n        \"Each man has his own vocation; his talent is his call. There is one direction in which all space is open to him.\",\n        \"Freedom is the right to live as we wish.\",\n        \"Success is determined by those whom prove the impossible, possible.\",\n        \"We need to find the courage to say NO to the things and people that are not serving us if we want to rediscover ourselves and live our lives with authenticity.\",\n        \"If the single man plant himself indomitably on his instincts, and there abide, the huge world will come round to him.\",\n        \"Don't believe what your eyes are telling you. All they show is limitation. Look with your understanding, find out what you already know, and you'll see the way to fly.\",\n        \"Don't be afraid to go out on a limb. That's where the fruit is.\",\n        \"We cannot solve our problems with the same thinking we used when we created them.\",\n        \"Intuition is the supra-logic that cuts out all the routine processes of thought and leaps straight from the problem to the answer.\",\n        \"There is only one success to be able to spend your life in your own way.\",\n        \"Nothing diminishes anxiety faster than action.\",\n        \"Your destiny isn't just fate; it is how you use your own developed abilities to get what you want.\",\n        \"Everything is perfect in the universe even your desire to improve it.\",\n        \"You don't drown by falling in water. You drown by staying there.\",\n        \"You can't shake hands with a clenched fist.\",\n        \"To choose what is difficult all ones days, as if it were easy, that is faith.\",\n        \"Never do things others can do and will do, if there are things others cannot do or will not do.\",\n        \"Happiness is a Swedish sunset it is there for all, but most of us look the other way and lose it.\",\n        \"Happiness cannot be travelled to, owned, earned, worn or consumed. Happiness is the spiritual experience of living every minute with love, grace and gratitude.\",\n        \"To climb steep hills requires a slow pace at first.\",\n        \"The things that one most wants to do are the things that are probably most worth doing.\",\n        \"Take things as they are. Punch when you have to punch. Kick when you have to kick.\",\n        \"Life is a learning experience, only if you learn.\",\n        \"You can do it if you believe you can!\",\n        \"A man may fulfil the object of his existence by asking a question he cannot answer, and attempting a task he cannot achieve.\",\n        \"It's important to know that words don't move mountains. Work, exacting work moves mountains.\",\n        \"An invasion of armies can be resisted, but not an idea whose time has come.\",\n        \"Fortune befriends the bold.\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"Never deny a diagnosis, but do deny the negative verdict that may go with it.\",\n        \"There is nothing in a caterpillar that tells you it's going to be a butterfly.\",\n        \"More often than not, anger is actually an indication of weakness rather than of strength.\",\n        \"One faces the future with ones past.\",\n        \"Don't compromise yourself. You are all you've got.\",\n        \"The secret of success is constancy to purpose.\",\n        \"Discovery consists of seeing what everybody has seen and thinking what nobody else has thought.\",\n        \"You have to believe in yourself.\",\n        \"While we stop to think, we often miss our opportunity.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"Imagination will often carry us to worlds that never were. But without it we go nowhere.\",\n        \"The only thing to do with good advice is to pass it on. It is never of any use to oneself.\",\n        \"All the flowers of all the tomorrows are in the seeds of today.\",\n        \"Constant kindness can accomplish much. As the sun makes ice melt, kindness causes misunderstanding, mistrust, and hostility to evaporate.\",\n        \"Growth itself contains the germ of happiness.\",\n        \"The truth which has made us free will in the end make us glad also.\",\n        \"Do you want to know who you are? Don't ask. Act! Action will delineate and define you.\",\n        \"No garden is without its weeds.\",\n        \"Your mind will answer most questions if you learn to relax and wait for the answer.\",\n        \"Parents can only give good advice or put them on the right paths, but the final forming of a persons character lies in their own hands.\",\n        \"The meaning I picked, the one that changed my life: Overcome fear, behold wonder.\",\n        \"Don't judge each day by the harvest you reap but by the seeds that you plant.\",\n        \"Allow the world to live as it chooses, and allow yourself to live as you choose.\",\n        \"Friendship with oneself is all important because without it one cannot be friends with anybody else in the world.\",\n        \"To know oneself is to study oneself in action with another person.\",\n        \"I cannot give you the formula for success, but I can give you the formula for failure: which is: Try to please everybody.\",\n        \"Kindness is more important than wisdom, and the recognition of this is the beginning of wisdom.\",\n        \"Don't wait. The time will never be just right.\",\n        \"What is a weed? A plant whose virtues have not yet been discovered.\",\n        \"Life is a learning experience, only if you learn.\",\n        \"Learning is a treasure that will follow its owner everywhere\",\n        \"Every man dies. Not every man really lives.\",\n        \"You learn to speak by speaking, to study by studying, to run by running, to work by working; in just the same way, you learn to love by loving.\",\n        \"He that never changes his opinions, never corrects his mistakes, and will never be wiser on the morrow than he is today.\",\n        \"Every great advance in science has issued from a new audacity of the imagination.\",\n        \"They must often change, who would be constant in happiness or wisdom.\",\n        \"I am of the opinion that my life belongs to the community, and as long as I live it is my privilege to do for it whatever I can.\",\n        \"Whatever we expect with confidence becomes our own self-fulfilling prophecy.\",\n        \"If you can't feed a hundred people, then feed just one.\",\n        \"Don't turn away from possible futures before you're certain you don't have anything to learn from them.\",\n        \"Joy is what happens to us when we allow ourselves to recognize how good things really are.\",\n        \"He who obtains has little. He who scatters has much.\",\n        \"Moral excellence comes about as a result of habit. We become just by doing just acts, temperate by doing temperate acts, brave by doing brave acts.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"Allow the world to live as it chooses, and allow yourself to live as you choose.\",\n        \"Great are they who see that spiritual is stronger than any material force, that thoughts rule the world.\",\n        \"Each day can be one of triumph if you keep up your interests.\",\n        \"Your future depends on many things, but mostly on you.\",\n        \"Moments of complete apathy are the best for new creations.\",\n        \"Holding on to anger is like grasping a hot coal with the intent of throwing it at someone else; you are the one who gets burned.\",\n        \"They say that time changes things, but you actually have to change them yourself.\",\n        \"Success is getting what you want. Happiness is wanting what you get.\",\n        \"Don't let what you can't do stop you from doing what you can do.\",\n        \"It is only when the mind and character slumber that the dress can be seen.\",\n        \"Every day may not be good, but there's something good in every day.\",\n        \"Look forward to spring as a time when you can start to see what nature has to offer once again.\",\n        \"We have committed the Golden Rule to memory; let us now commit it to life.\",\n        \"If facts are the seeds that later produce knowledge and wisdom, then the emotions and the impressions of the senses are the fertile soil in which the seeds must grow.\",\n        \"You can observe a lot just by watching.\",\n        \"Give me six hours to chop down a tree and I will spend the first four sharpening the axe.\",\n        \"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.\",\n        \"In order to live free and happily you must sacrifice boredom. It is not always an easy sacrifice.\",\n        \"Let us revere, let us worship, but erect and open-eyed, the highest, not the lowest; the future, not the past!\",\n        \"For every failure, there's an alternative course of action. You just have to find it. When you come to a roadblock, take a detour.\",\n        \"The difference between what we do and what we are capable of doing would suffice to solve most of the worlds problems.\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"Saying thank you is more than good manners. It is good spirituality.\",\n        \"Neither a lofty degree of intelligence nor imagination nor both together go to the making of genius. Love, love, love, that is the soul of genius.\",\n        \"I care not so much what I am to others as what I am to myself. I will be rich by myself, and not by borrowing.\",\n        \"Imagination rules the world.\",\n        \"Practice yourself, for heavens sake in little things, and then proceed to greater.\",\n        \"Kindness is more important than wisdom, and the recognition of this is the beginning of wisdom.\",\n        \"He that never changes his opinions, never corrects his mistakes, and will never be wiser on the morrow than he is today.\",\n        \"Be thankful when you don't know something for it gives you the opportunity to learn.\",\n        \"For everything that lives is holy, life delights in life.\",\n        \"Action may not always bring happiness, but there is no happiness without action.\",\n        \"Silence is the true friend that never betrays.\",\n        \"It is never too late. Even if you are going to die tomorrow, keep yourself straight and clear and be a happy human being today.\",\n        \"Character develops itself in the stream of life.\",\n        \"You really can change the world if you care enough.\",\n        \"To free us from the expectations of others, to give us back to ourselves there lies the great, singular power of self-respect.\",\n        \"We are what we repeatedly do. Excellence, then, is not an act but a habit.\",\n        \"Lots of people want to ride with you in the limo, but what you want is someone who will take the bus with you when the limo breaks down.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"People seldom notice old clothes if you wear a big smile.\",\n        \"An obstacle may be either a stepping stone or a stumbling block.\",\n        \"Nothing diminishes anxiety faster than action.\",\n        \"A good rest is half the work.\",\n        \"I can't imagine a person becoming a success who doesn't give this game of life everything hes got.\",\n        \"The only Zen you find on the tops of mountains is the Zen you bring up there.\",\n        \"I do not believe in a fate that falls on men however they act; but I do believe in a fate that falls on man unless they act.\",\n        \"The energy of the mind is the essence of life.\",\n        \"Life is just a chance to grow a soul.\",\n        \"Treat people as if they were what they ought to be and you help them to become what they are capable of being.\",\n        \"Everyone has been made for some particular work, and the desire for that work has been put in every heart.\",\n        \"Short words are best and the old words when short are best of all.\",\n        \"Don't leave a stone unturned. It's always something, to know you have done the most you could.\",\n        \"Transformation does not start with some one else changing you; transformation is an inner self reworking of what you are now to what you will be.\",\n        \"The universe is full of magical things, patiently waiting for our wits to grow sharper.\",\n        \"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.\",\n        \"The path to success is to take massive, determined action.\",\n        \"I hear and I forget. I see and I remember. I do and I understand.\",\n        \"The most decisive actions of our life... are most often unconsidered actions.\",\n        \"Everyone is a genius at least once a year. A real genius has his original ideas closer together.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"Just trust yourself, then you will know how to live.\",\n        \"People who say it cannot be done should not interrupt those who are doing it.\",\n        \"Staying in one place is the best path to be taken over and surpassed by many.\",\n        \"Let your hook always be cast; in the pool where you least expect it, there will be a fish.\",\n        \"You cannot find yourself by going into the past. You can find yourself by coming into the present.\",\n        \"Let yourself be silently drawn by the stronger pull of what you really love.\",\n        \"You always succeed in producing a result.\",\n        \"You can't let praise or criticism get to you. It's a weakness to get caught up in either one.\",\n        \"We are shaped by our thoughts; we become what we think. When the mind is pure, joy follows like a shadow that never leaves.\",\n        \"There are only two mistakes one can make along the road to truth; not going all the way, and not starting.\",\n        \"A subtle thought that is in error may yet give rise to fruitful inquiry that can establish truths of great value.\",\n        \"A man is great by deeds, not by birth.\",\n        \"Genuine love should first be directed at oneself if we do not love ourselves, how can we love others?\",\n        \"One who is too insistent on his own views, finds few to agree with him.\",\n        \"I've never seen a smiling face that was not beautiful.\",\n        \"Silence is deep as Eternity, Speech is shallow as Time.\",\n        \"Happiness does not come from having much, but from being attached to little.\",\n        \"The more you know yourself, the more you forgive yourself.\",\n        \"Happiness comes when your work and words are of benefit to yourself and others.\",\n        \"I cannot make my days longer so I strive to make them better.\",\n        \"Everyone can taste success when the going is easy, but few know how to taste victory when times get tough.\",\n        \"Accept challenges, so that you may feel the exhilaration of victory.\",\n        \"Liberty, taking the word in its concrete sense, consists in the ability to choose.\",\n        \"Just as much as we see in others we have in ourselves.\",\n        \"There is not one big cosmic meaning for all, there is only the meaning we each give to our life.\",\n        \"Life is so constructed that an event does not, cannot, will not, match the expectation.\",\n        \"Character is like a tree and reputation like a shadow. The shadow is what we think of it; the tree is the real thing.\",\n        \"Take rest; a field that has rested gives a bountiful crop.\",\n        \"If you are patient in one moment of anger, you will escape one hundred days of sorrow.\",\n        \"More often than not, anger is actually an indication of weakness rather than of strength.\",\n        \"What lies behind us and what lies before us are small matters compared to what lies within us.\",\n        \"I would maintain that thanks are the highest form of thought, and that gratitude is happiness doubled by wonder.\",\n        \"Aim for success, not perfection. Never give up your right to be wrong, because then you will lose the ability to learn new things and move forward with your life.\",\n        \"I would maintain that thanks are the highest form of thought, and that gratitude is happiness doubled by wonder.\",\n        \"See the positive side, the potential, and make an effort.\",\n        \"If your actions inspire others to dream more, learn more, do more and become more, you are a leader.\",\n        \"Ideals are an imaginative understanding of that which is desirable in that which is possible.\",\n        \"It's so simple to be wise. Just think of something stupid to say and then don't say it.\",\n        \"Difficulties are meant to rouse, not discourage. The human spirit is to grow strong by conflict.\",\n        \"Sadness flies away on the wings of time.\",\n        \"When we feel love and kindness toward others, it not only makes others feel loved and cared for, but it helps us also to develop inner happiness and peace.\",\n        \"Many of life's failures are people who did not realize how close they were to success when they gave up.\",\n        \"Happiness is not in the mere possession of money; it lies in the joy of achievement, in the thrill of creative effort.\",\n        \"Responsibility is not inherited, it is a choice that everyone needs to make at some point in their life.\",\n        \"Blessed is the man who expects nothing, for he shall never be disappointed.\",\n        \"The road leading to a goal does not separate you from the destination; it is essentially a part of it.\",\n        \"Ask yourself the secret of your success. Listen to your answer, and practice it.\",\n        \"Man is not sum of what he has already, but rather the sum of what he does not yet have, of what he could have.\",\n        \"One who gains strength by overcoming obstacles possesses the only strength which can overcome adversity.\",\n        \"Faith in oneself is the best and safest course.\",\n        \"Patience is the companion of wisdom.\",\n        \"The key to growth is the introduction of higher dimensions of consciousness into our awareness.\",\n        \"I care not so much what I am to others as what I am to myself. I will be rich by myself, and not by borrowing.\",\n        \"There is no scarcity of opportunity to make a living at what you love; theres only scarcity of resolve to make it happen.\",\n        \"It's so simple to be wise. Just think of something stupid to say and then don't say it.\",\n        \"There is nothing like returning to a place that remains unchanged to find the ways in which you yourself have altered.\",\n        \"You can stand tall without standing on someone. You can be a victor without having victims.\",\n        \"To get something you never had, you have to do something you never did.\",\n        \"The greatest way to live with honour in this world is to be what we pretend to be.\",\n        \"Don't settle for a relationship that won't let you be yourself.\",\n        \"The mind unlearns with difficulty what it has long learned.\",\n        \"Criticism is something you can easily avoid by saying nothing, doing nothing, and being nothing.\",\n        \"All our talents increase in the using, and the every faculty, both good and bad, strengthen by exercise.\",\n        \"Every day may not be good, but there's something good in every day.\",\n        \"Continuous effort, not strength or intelligence is the key to unlocking our potential.\",\n        \"In the sky, there is no distinction of east and west; people create distinctions out of their own minds and then believe them to be true.\",\n        \"When I let go of what I am, I become what I might be.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"He who talks more is sooner exhausted.\",\n        \"Everything that irritates us about others can lead us to an understanding of ourselves.\",\n        \"Think like a man of action; act like a man of thought.\",\n        \"A bend in the road is not the end of the road...unless you fail to make the turn.\",\n        \"As long as your going to be thinking anyway, think big.\",\n        \"Respect should be earned by actions, and not acquired by years.\",\n        \"I never worry about action, but only inaction.\",\n        \"Don't cry because it's over. Smile because it happened.\",\n        \"Yesterday I dared to struggle. Today I dare to win.\",\n        \"At the center of your being you have the answer; you know who you are and you know what you want.\",\n        \"Don't believe what your eyes are telling you. All they show is limitation. Look with your understanding, find out what you already know, and you'll see the way to fly.\",\n        \"Those who try to do something and fail are infinitely better than those who try nothing and succeed.\",\n        \"Cherish your visions and your dreams as they are the children of your soul; the blueprints of your ultimate achievements.\",\n        \"When deeds and words are in accord, the whole world is transformed.\",\n        \"Sometimes the cards we are dealt are not always fair. However you must keep smiling and moving on.\",\n        \"You learn to speak by speaking, to study by studying, to run by running, to work by working; in just the same way, you learn to love by loving.\",\n        \"Time is the wisest counsellor of all.\",\n        \"It is easier to live through someone else than to become complete yourself.\",\n        \"I believe in one thing only, the power of human will.\",\n        \"All great achievements require time.\",\n        \"It is better to travel well than to arrive.\",\n        \"Adversity causes some men to break, others to break records.\",\n        \"Wisdom is the supreme part of happiness.\",\n        \"It is not enough to have a good mind; the main thing is to use it well.\",\n        \"A thing long expected takes the form of the unexpected when at last it comes.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"Ideals are an imaginative understanding of that which is desirable in that which is possible.\",\n        \"From small beginnings come great things.\",\n        \"To bring anything into your life, imagine that it's already there.\",\n        \"It is not the mistake that has the most power, instead, it is learning from the mistake to advance your own attributes.\",\n        \"Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love.\",\n        \"Blessed is the man who expects nothing, for he shall never be disappointed.\",\n        \"Adversity causes some men to break, others to break records.\",\n        \"All great men are gifted with intuition. They know without reasoning or analysis, what they need to know.\",\n        \"In a controversy the instant we feel anger we have already ceased striving for the truth, and have begun striving for ourselves.\",\n        \"I believe that a simple and unassuming manner of life is best for everyone, best both for the body and the mind.\",\n        \"The ladder of success is never crowded at the top.\",\n        \"A hero is no braver than an ordinary man, but he is braver five minutes longer.\",\n        \"In the end we retain from our studies only that which we practically apply.\",\n        \"There are two kinds of failures: those who thought and never did, and those who did and never thought.\",\n        \"Be the change that you want to see in the world.\",\n        \"Setting goals is the first step in turning the invisible into the visible.\",\n        \"What is necessary to change a person is to change his awareness of himself.\",\n        \"From little acorns mighty oaks do grow.\",\n        \"A man sees in the world what he carries in his heart.\",\n        \"The cosmos is neither moral or immoral; only people are. He who would move the world must first move himself.\",\n        \"Do not waste yourself in rejection, nor bark against the bad, but chant the beauty of the good.\",\n        \"Who we are never changes. Who we think we are does.\",\n        \"Without faith, nothing is possible. With it, nothing is impossible.\",\n        \"Money was never a big motivation for me, except as a way to keep score. The real excitement is playing the game.\",\n        \"You can only grow if you're willing to feel awkward and uncomfortable when you try something new.\",\n        \"Anything you really want, you can attain, if you really go after it.\",\n        \"Who sows virtue reaps honour.\",\n        \"Friendship with oneself is all important because without it one cannot be friends with anybody else in the world.\",\n        \"If you lose today, win tomorrow. In this never-ending spirit of challenge is the heart of a victor.\",\n        \"Most folks are as happy as they make up their minds to be.\",\n        \"Love at first sight is easy to understand; its when two people have been looking at each other for a lifetime that it becomes a miracle.\",\n        \"A good teacher is like a candle it consumes itself to light the way for others.\",\n        \"Love at first sight is easy to understand; its when two people have been looking at each other for a lifetime that it becomes a miracle.\",\n        \"There are no failures. Just experiences and your reactions to them.\",\n        \"What is not started today is never finished tomorrow.\",\n        \"If I am not for myself, who will be for me? If I am not for others, what am I? And if not now, when?\",\n        \"All serious daring starts from within.\",\n        \"To effectively communicate, we must realize that we are all different in the way we perceive the world and use this understanding as a guide to our communication with others.\",\n        \"It is difficult to achieve a spirit of genuine cooperation as long as people remain indifferent to the feelings and happiness of others.\",\n        \"Just trust yourself, then you will know how to live.\",\n        \"Quality means doing it right when no one is looking.\",\n        \"Try and fail, but don't fail to try.\",\n        \"Only through our connectedness to others can we really know and enhance the self. And only through working on the self can we begin to enhance our connectedness to others.\",\n        \"A failure is a man who has blundered but is not capable of cashing in on the experience.\",\n        \"More powerful than the will to win is the courage to begin.\",\n        \"There is no greater harm than that of time wasted.\",\n        \"Three things in human life are important. The first is to be kind. The second is to be kind. The third is to be kind.\",\n        \"Never put off till tomorrow what you can do today.\",\n        \"So long as a person is capable of self-renewal they are a living being.\",\n        \"Without faith, nothing is possible. With it, nothing is impossible.\",\n        \"Blaze with the fire that is never extinguished.\",\n        \"He is able who thinks he is able.\",\n        \"Whoso loves, believes the impossible.\",\n        \"The foolish man seeks happiness in the distance, the wise grows it under his feet.\",\n        \"Nothing will work unless you do.\",\n        \"The only limit to our realization of tomorrow will be our doubts of today.\",\n        \"A jug fills drop by drop.\",\n        \"Without courage, wisdom bears no fruit.\",\n        \"Remembering a wrong is like carrying a burden on the mind.\",\n        \"Go for it now. The future is promised to no one.\",\n        \"It is not only for what we do that we are held responsible, but also for what we do not do.\",\n        \"Waste no more time arguing about what a good man should be. Be one.\",\n        \"Someone remembers, someone cares; your name is whispered in someone's prayers.\",\n        \"Nothing in life is to be feared, it is only to be understood. Now is the time to understand more, so that we may fear less.\",\n        \"The deepest craving of human nature is the need to be appreciated.\",\n        \"All our talents increase in the using, and the every faculty, both good and bad, strengthen by exercise.\",\n        \"Until you value yourself, you won't value your time. Until you value your time, you won't do anything with it.\",\n        \"It is impossible for a man to learn what he thinks he already knows.\",\n        \"If we look at the world with a love of life, the world will reveal its beauty to us.\",\n        \"The things that one most wants to do are the things that are probably most worth doing.\",\n        \"Once we accept our limits, we go beyond them.\",\n        \"All know the way; few actually walk it.\",\n        \"Can you imagine what I would do if I could do all I can?\",\n        \"I have done my best: that is about all the philosophy of living one needs.\",\n        \"To listen well is as powerful a means of communication and influence as to talk well.\",\n        \"The most formidable weapon against errors of every kind is reason.\",\n        \"Everyone should carefully observe which way his heart draws him, and then choose that way with all his strength.\",\n        \"Nothing diminishes anxiety faster than action.\",\n        \"All the world is a stage, And all the men and women merely players.They have their exits and entrances; Each man in his time plays many parts.\",\n        \"One of the advantages of being disorderly is that one is constantly making exciting discoveries.\",\n        \"Difficulties are things that show a person what they are.\",\n        \"Act as if what you do makes a difference. It does.\",\n        \"Love does not consist of gazing at each other, but in looking together in the same direction.\",\n        \"Life is movement-we breathe, we eat, we walk, we move!\",\n        \"Be glad of life because it gives you the chance to love, to work, to play, and to look up at the stars.\",\n        \"Go for it now. The future is promised to no one.\",\n        \"To dare is to lose ones footing momentarily. To not dare is to lose oneself.\",\n        \"To free us from the expectations of others, to give us back to ourselves there lies the great, singular power of self-respect.\",\n        \"If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place.\",\n        \"Opportunity is missed by most because it is dressed in overalls and looks like work.\",\n        \"Don't wait for your feelings to change to take the action. Take the action and your feelings will change.\",\n        \"Joy is what happens to us when we allow ourselves to recognize how good things really are.\",\n        \"I gave my life to become the person I am right now. Was it worth it?\",\n        \"Life is not measured by the breaths we take, but by the moments that take our breath.\",\n        \"Every great advance in science has issued from a new audacity of the imagination.\",\n        \"Everything in the universe goes by indirection. There are no straight lines.\",\n        \"If you love someone, set them free. If they come back they're yours; if they don't they never were.\",\n        \"Sometimes the biggest act of courage is a small one.\",\n        \"Knowledge has three degrees opinion, science, illumination. The means or instrument of the first is sense; of the second, dialectic; of the third, intuition.\",\n        \"The doors we open and close each day decide the lives we live.\",\n        \"If you are patient in one moment of anger, you will escape one hundred days of sorrow.\",\n        \"You can complain because roses have thorns, or you can rejoice because thorns have roses.\",\n        \"There is no failure except in no longer trying.\",\n        \"We choose our destiny in the way we treat others.\",\n        \"I may not know everything, but everything is not known yet anyway.\",\n        \"Our lives are the only meaningful expression of what we believe and in Whom we believe. And the only real wealth, for any of us, lies in our faith.\",\n        \"Doing nothing is better than being busy doing nothing.\",\n        \"Your destiny isn't just fate; it is how you use your own developed abilities to get what you want.\",\n        \"Trust your own instinct. Your mistakes might as well be your own, instead of someone elses.\",\n        \"If you're walking down the right path and you're willing to keep walking, eventually you'll make progress.\",\n        \"Don't wait for people to be friendly. Show them how.\",\n        \"The pessimist sees difficulty in every opportunity. The optimist sees the opportunity in every difficulty.\",\n        \"You may only be someone in the world, but to someone else, you may be the world.\",\n        \"What we achieve inwardly will change outer reality.\",\n        \"You can complain because roses have thorns, or you can rejoice because thorns have roses.\",\n        \"And as we let our own light shine, we unconsciously give other people permission to do the same.\",\n        \"You won't skid if you stay in a rut.\",\n        \"You got to be careful if you don't know where you're going, because you might not get there.\",\n        \"Listen to what you know instead of what you fear.\",\n        \"I cannot always control what goes on outside. But I can always control what goes on inside.\",\n        \"Through perseverance many people win success out of what seemed destined to be certain failure.\",\n        \"Quality is never an accident; it is always the result of intelligent effort.\",\n        \"The personal life deeply lived always expands into truths beyond itself.\",\n        \"Positive thinking will let you do everything better than negative thinking will.\",\n        \"Prosperity depends more on wanting what you have than having what you want.\",\n        \"Happiness is a perfume you cannot pour on others without getting a few drops on yourself.\",\n        \"All seasons are beautiful for the person who carries happiness within.\",\n        \"Kindness is the golden chain by which society is bound together.\",\n        \"Change is the law of life. And those who look only to the past or present are certain to miss the future.\",\n        \"With the realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"Don't judge each day by the harvest you reap but by the seeds you plant.\",\n        \"People grow through experience if they meet life honestly and courageously. This is how character is built.\",\n        \"Our doubts are traitors and make us lose the good we often might win, by fearing to attempt.\",\n        \"Stay away from what might have been and look at what will be.\",\n        \"With courage you will dare to take risks, have the strength to be compassionate, and the wisdom to be humble. Courage is the foundation of integrity.\",\n        \"Once we accept our limits, we go beyond them.\",\n        \"Keep silence for the most part, and speak only when you must, and then briefly.\",\n        \"Appreciation can make a day, even change a life. Your willingness to put it into words is all that is necessary.\",\n        \"Everyone can taste success when the going is easy, but few know how to taste victory when times get tough.\",\n        \"Sometimes it is better to lose and do the right thing than to win and do the wrong thing.\",\n        \"The most decisive actions of our life... are most often unconsidered actions.\",\n        \"Sunshine is delicious, rain is refreshing, wind braces us up, snow is exhilarating; there is really no such thing as bad weather, only different kinds of good weather.\",\n        \"All truths are easy to understand once they are discovered; the point is to discover them.\",\n        \"The cosmos is neither moral or immoral; only people are. He who would move the world must first move himself.\",\n        \"If you correct your mind, the rest of your life will fall into place.\",\n        \"Know that although in the eternal scheme of things you are small, you are also unique and irreplaceable, as are all your fellow humans everywhere in the world.\",\n        \"It is not fair to ask of others what you are unwilling to do yourself.\",\n        \"What matters is the value we've created in our lives, the people we've made happy and how much we've grown as people.\",\n        \"By accepting yourself and being fully what you are, your presence can make others happy.\",\n        \"Love does not consist of gazing at each other, but in looking together in the same direction.\",\n        \"Until you make peace with who you are, you will never be content with what you have.\",\n        \"I've never seen a smiling face that was not beautiful.\",\n        \"The greatest part of our happiness depends on our dispositions, not our circumstances.\",\n        \"It is only when the mind and character slumber that the dress can be seen.\",\n        \"Put your future in good hands your own.\",\n        \"I would maintain that thanks are the highest form of thought, and that gratitude is happiness doubled by wonder.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"The first requisite for success is the ability to apply your physical and mental energies to one problem incessantly without growing weary.\",\n        \"A lot of times people look at the negative side of what they feel they can't do. I always look on the positive side of what I can do.\",\n        \"Bodily exercise, when compulsory, does no harm to the body; but knowledge which is acquired under compulsion obtains no hold on the mind.\",\n        \"If we could see the miracle of a single flower clearly, our whole life would change.\",\n        \"In all things of nature there is something of the marvellous.\",\n        \"Follow effective action with quiet reflection. From the quiet reflection will come even more effective action.\",\n        \"I think you can have moderate success by copying something else, but if you really want to knock it out of the park, you have to do something different and take chances.\",\n        \"Cherish your visions and your dreams as they are the children of your soul, the blueprints of your ultimate achievements.\",\n        \"The only person who never makes mistakes is the person who never does anything.\",\n        \"Nature takes away any faculty that is not used.\",\n        \"Don't let today's disappointments cast a shadow on tomorrow's dreams.\",\n        \"Imagination is more important than knowledge. For while knowledge defines all we currently know and understand, imagination points to all we might yet discover and create.\",\n        \"The first requisite for success is the ability to apply your physical and mental energies to one problem incessantly without growing weary.\",\n        \"Trouble is only opportunity in work clothes.\",\n        \"Don't ruin the present with the ruined past.\",\n        \"Great is the art of beginning, but greater is the art of ending.\",\n        \"He who knows that enough is enough will always have enough.\",\n        \"As an organizer I start from where the world is, as it is, not as I would like it to be.\",\n        \"Intuition is the very force or activity of the soul in its experience through whatever has been the experience of the soul itself.\",\n        \"It is the mark of an educated mind to be able to entertain a thought without accepting it.\",\n        \"One who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever.\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"It is only possible to live happily ever after on a day to day basis.\",\n        \"I am like a falling star who has finally found her place next to another in a lovely constellation, where we will sparkle in the heavens forever.\",\n        \"Happiness does not come from having much, but from being attached to little.\",\n        \"In the middle of every difficulty lies opportunity.\",\n        \"I allow my intuition to lead my path.\",\n        \"Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.\",\n        \"To keep the body in good health is a duty... otherwise we shall not be able to keep our mind strong and clear.\",\n        \"Skill to do comes of doing.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"When you realize there is nothing lacking, the whole world belongs to you.\",\n        \"Do not be embarrassed by your mistakes. Nothing can teach us better than our understanding of them. This is one of the best ways of self-education.\",\n        \"What lies behind us and what lies before us are tiny matters compared to what lies within us.\",\n        \"Flow with whatever is happening and let your mind be free. Stay centred by accepting whatever you are doing. This is the ultimate.\",\n        \"Can you imagine what I would do if I could do all I can?\",\n        \"Wisdom is the reward you get for a lifetime of listening when you'd have preferred to talk.\",\n        \"Money was never a big motivation for me, except as a way to keep score. The real excitement is playing the game.\",\n        \"If you light a lamp for somebody, it will also brighten your path.\",\n        \"A good rest is half the work.\",\n        \"With the realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"By accepting yourself and being fully what you are, your presence can make others happy.\",\n        \"No one has ever become poor by giving.\",\n        \"The possibilities are numerous once we decide to act and not react.\",\n        \"The bird of paradise alights only upon the hand that does not grasp.\",\n        \"Tension is who you think you should be. Relaxation is who you are.\",\n        \"All children are artists. The problem is how to remain an artist once he grows up.\",\n        \"Arrogance and rudeness are training wheels on the bicycle of life for weak people who cannot keep their balance without them.\",\n        \"Anticipate the difficult by managing the easy.\",\n        \"Sometimes the cards we are dealt are not always fair. However you must keep smiling and moving on.\",\n        \"Nature gave us one tongue and two ears so we could hear twice as much as we speak.\",\n        \"The place to improve the world is first in one's own heart and head and hands.\",\n        \"If you have no respect for your own values how can you be worthy of respect from others.\",\n        \"Don't frown because you never know who is falling in love with your smile.\",\n        \"He who has health has hope, and he who has hope has everything.\",\n        \"Age does not protect you from love. But love, to some extent, protects you from age.\",\n        \"Today is the tomorrow we worried about yesterday.\",\n        \"I am a man of fixed and unbending principles, the first of which is to be flexible at all times.\",\n        \"Weve got to have a dream if we are going to make a dream come true.\",\n        \"A lot of times people look at the negative side of what they feel they can't do. I always look on the positive side of what I can do.\",\n        \"Chaos is inherent in all compounded things. Strive on with diligence.\",\n        \"To hell with circumstances; I create opportunities.\",\n        \"Be as you wish to seem.\",\n        \"Opportunity is missed by most because it is dressed in overalls and looks like work.\",\n        \"Time stays long enough for anyone who will use it.\",\n        \"If I could reach up and hold a star for every time you've made me smile, the entire evening sky would be in the palm of my hand.\",\n        \"Nothing is so strong as gentleness. Nothing is so gentle as real strength.\",\n        \"The happiness that is genuinely satisfying is accompanied by the fullest exercise of our faculties and the fullest realization of the world in which we live.\",\n        \"Good thoughts are no better than good dreams, unless they be executed.\",\n        \"Learn all you can from the mistakes of others. You won't have time to make them all yourself.\",\n        \"Don't cry because it's over. Smile because it happened.\",\n        \"What the caterpillar calls the end of the world, the master calls a butterfly.\",\n        \"We read the world wrong and say that it deceives us.\",\n        \"The truest wisdom is a resolute determination.\",\n        \"An optimist is a person who sees a green light everywhere, while the pessimist sees only the red spotlight... The truly wise person is colour-blind.\",\n        \"Great are they who see that spiritual is stronger than any material force, that thoughts rule the world.\",\n        \"It is fatal to enter any war without the will to win it.\",\n        \"Be not afraid of greatness: some are born great, some achieve greatness, and some have greatness thrust upon them.\",\n        \"It is the mark of an educated mind to be able to entertain a thought without accepting it.\",\n        \"If you're in a bad situation, don't worry it'll change. If you're in a good situation, don't worry it'll change.\",\n        \"Life is so constructed that an event does not, cannot, will not, match the expectation.\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"Better than a thousand hollow words, is one word that brings peace.\",\n        \"It is surprising what a man can do when he has to, and how little most men will do when they don't have to.\",\n        \"We all live with the objective of being happy; our lives are all different and yet the same.\",\n        \"Flow with whatever is happening and let your mind be free. Stay centred by accepting whatever you are doing. This is the ultimate.\",\n        \"When deeds and words are in accord, the whole world is transformed.\",\n        \"In seed time learn, in harvest teach, in winter enjoy.\",\n        \"If your actions inspire others to dream more, learn more, do more and become more, you are a leader.\",\n        \"Neither genius, fame, nor love show the greatness of the soul. Only kindness can do that.\",\n        \"The winds and waves are always on the side of the ablest navigators.\",\n        \"Happiness is the reward we get for living to the highest right we know.\",\n        \"The more light you allow within you, the brighter the world you live in will be.\",\n        \"Everyone thinks of changing the world, but no one thinks of changing himself.\",\n        \"Know, first, who you are, and then adorn yourself accordingly.\",\n        \"In all things of nature there is something of the marvellous.\",\n        \"The beginning is always today.\",\n        \"If you wish to be a writer, write.\",\n        \"The true way to render ourselves happy is to love our work and find in it our pleasure.\",\n        \"Life is the flower for which love is the honey.\",\n        \"Excellence is not a skill. It is an attitude.\",\n        \"More powerful than the will to win is the courage to begin.\",\n        \"Fear is a darkroom where negatives develop.\",\n        \"Giving up doesn't always mean you are weak; sometimes it means that you are strong enough to let go.\",\n        \"Music in the soul can be heard by the universe.\",\n        \"Most people are about as happy as they make up their minds to be\",\n        \"Translation is the paradigm, the exemplar of all writing. It is translation that demonstrates most vividly the yearning for transformation that underlies every act involving speech, that supremely human gift.\",\n        \"I cannot say whether things will get better if we change; what I can say is they must change if they are to get better.\",\n        \"Don't wait for your feelings to change to take the action. Take the action and your feelings will change.\",\n        \"Adversity isn't set against you to fail; adversity is a way to build your character so that you can succeed over and over again through perseverance.\",\n        \"Short words are best and the old words when short are best of all.\",\n        \"The world cares very little about what a man or woman knows; it is what a man or woman is able to do that counts.\",\n        \"To exist is to change, to change is to mature, to mature is to go on creating oneself endlessly.\",\n        \"Stay committed to your decisions, but stay flexible in your approach.\",\n        \"A person who never made a mistake never tried anything new.\",\n        \"I am like a falling star who has finally found her place next to another in a lovely constellation, where we will sparkle in the heavens forever.\",\n        \"Using the power of decision gives you the capacity to get past any excuse to change any and every part of your life in an instant.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"Everything you are against weakens you. Everything you are for empowers you.\",\n        \"Time you enjoy wasting, was not wasted.\",\n        \"You have power over your mind not outside events. Realize this, and you will find strength.\",\n        \"No yesterdays are ever wasted for those who give themselves to today.\",\n        \"You have to believe in yourself.\",\n        \"The pain passes, but the beauty remains.\",\n        \"When your desires are strong enough you will appear to possess superhuman powers to achieve.\",\n        \"Think how hard physics would be if particles could think.\",\n        \"Wicked people are always surprised to find ability in those that are good.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept responsibility for changing them.\",\n        \"To be great is to be misunderstood.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"Begin, be bold, and venture to be wise.\",\n        \"To live a pure unselfish life, one must count nothing as ones own in the midst of abundance.\",\n        \"Important principles may, and must, be inflexible.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"Change is the law of life. And those who look only to the past or present are certain to miss the future.\",\n        \"He that is giddy thinks the world turns round.\",\n        \"Where there is great love, there are always miracles.\",\n        \"We do what we do because we believe.\",\n        \"There is not one big cosmic meaning for all, there is only the meaning we each give to our life.\",\n        \"If you take each challenge one step at a time, with faith in every footstep, your strength and understanding will increase.\",\n        \"Don't let today's disappointments cast a shadow on tomorrow's dreams.\",\n        \"Lose an hour in the morning, and you will spend all day looking for it.\",\n        \"The key to transforming our hearts and minds is to have an understanding of how our thoughts and emotions work.\",\n        \"Imagination is the highest kite one can fly.\",\n        \"It is never too late to be what you might have been.\",\n        \"Let yourself be silently drawn by the stronger pull of what you really love.\",\n        \"Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.\",\n        \"Happiness is when what you think, what you say, and what you do are in harmony.\",\n        \"If the single man plant himself indomitably on his instincts, and there abide, the huge world will come round to him.\",\n        \"The spirit, the will to win, and the will to excel, are the things that endure. These qualities are so much more important than the events that occur.\",\n        \"You must train your intuition you must trust the small voice inside you which tells you exactly what to say, what to decide.\",\n        \"To get something you never had, you have to do something you never did.\",\n        \"The greatest minds are capable of the greatest vices as well as of the greatest virtues.\",\n        \"Take rest; a field that has rested gives a bountiful crop.\",\n        \"The greatest good you can do for another is not just share your riches, but reveal to them their own.\",\n        \"Do something wonderful, people may imitate it.\",\n        \"Never ignore a gut feeling, but never believe that it's enough.\",\n        \"Our deepest wishes are whispers of our authentic selves. We must learn to respect them. We must learn to listen.\",\n        \"Ideas are the beginning points of all fortunes.\",\n        \"Staying in one place is the best path to be taken over and surpassed by many.\",\n        \"Everything can be taken from a man but ... the last of the human freedoms to choose ones attitude in any given set of circumstances, to choose ones own way.\",\n        \"Whoever is happy will make others happy, too.\",\n        \"Man is not sum of what he has already, but rather the sum of what he does not yet have, of what he could have.\",\n        \"The final proof of greatness lies in being able to endure criticism without resentment.\",\n        \"The person born with a talent they are meant to use will find their greatest happiness in using it.\",\n        \"Only when we are no longer afraid do we begin to live.\",\n        \"Everyone has been made for some particular work, and the desire for that work has been put in every heart.\",\n        \"Time changes everything except something within us which is always surprised by change.\",\n        \"Patience is a virtue but you will never ever accomplish anything if you don't exercise action over patience.\",\n        \"A jug fills drop by drop.\",\n        \"Kindness is the language which the deaf can hear and the blind can see.\",\n        \"People may doubt what you say, but they will believe what you do.\",\n        \"I allow my intuition to lead my path.\",\n        \"Never deny a diagnosis, but do deny the negative verdict that may go with it.\",\n        \"In three words I can sum up everything Ive learned about life: it goes on.\",\n        \"A man may fulfil the object of his existence by asking a question he cannot answer, and attempting a task he cannot achieve.\",\n        \"In skating over thin ice our safety is in our speed.\",\n        \"Happiness is found in doing, not merely possessing.\",\n        \"I may not know everything, but everything is not known yet anyway.\",\n        \"I cannot give you the formula for success, but I can give you the formula for failure: which is: Try to please everybody.\",\n        \"The free man is he who does not fear to go to the end of his thought.\",\n        \"A thing well said will be wit in all languages.\",\n        \"I am of the opinion that my life belongs to the community, and as long as I live it is my privilege to do for it whatever I can.\",\n        \"You might well remember that nothing can bring you success but yourself.\",\n        \"The secret to a rich life is to have more beginnings than endings.\",\n        \"Invent your world. Surround yourself with people, color, sounds, and work that nourish you.\",\n        \"To dream of the person you would like to be is to waste the person you are.\",\n        \"There never was a good knife made of bad steel.\",\n        \"Don't think of it as failure. Think of it as time-released success.\",\n        \"If I am not for myself, who will be for me? If I am not for others, what am I? And if not now, when?\",\n        \"When fate hands us a lemon, lets try to make lemonade.\",\n        \"First comes thought; then organization of that thought, into ideas and plans; then transformation of those plans into reality. The beginning, as you will observe, is in your imagination.\",\n        \"Character develops itself in the stream of life.\",\n        \"We can only learn to love by loving.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"Go for it now. The future is promised to no one.\",\n        \"If you don't like something, change it. If you can't change it, change your attitude.\",\n        \"It is more important to know where you are going than to get there quickly. Do not mistake activity for achievement.\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"Who sows virtue reaps honour.\",\n        \"Trust only movement. Life happens at the level of events, not of words. Trust movement.\",\n        \"Sadness may be part of life but there is no need to let it dominate your entire life.\",\n        \"The journey of a thousand miles begins with one step.\",\n        \"To be upset over what you don't have is to waste what you do have.\",\n        \"Do not expect the world to look bright, if you habitually wear gray-brown glasses.\",\n        \"There are no limitations to the mind except those we acknowledge.\",\n        \"Great is the art of beginning, but greater is the art of ending.\",\n        \"Nothing in life is to be feared. It is only to be understood.\",\n        \"Kindness is the greatest wisdom.\",\n        \"Follow your instincts. That is where true wisdom manifests itself.\",\n        \"Sometimes our fate resembles a fruit tree in winter. Who would think that those branches would turn green again and blossom, but we hope it, we know it.\",\n        \"I cannot give you the formula for success, but I can give you the formula for failure: which is: Try to please everybody.\",\n        \"When you meet someone better than yourself, turn your thoughts to becoming his equal. When you meet someone not as good as you are, look within and examine your own self.\",\n        \"If we had no winter, the spring would not be so pleasant; if we did not sometimes taste of adversity, prosperity would not be so welcome.\",\n        \"I cannot give you the formula for success, but I can give you the formula for failure: which is: Try to please everybody.\",\n        \"Feeling and longing are the motive forces behind all human endeavor and human creations.\",\n        \"Our strength grows out of our weaknesses.\",\n        \"Beauty is not in the face; beauty is a light in the heart.\",\n        \"Better than a thousand hollow words is one word that brings peace.\",\n        \"Keep true to the dreams of thy youth.\",\n        \"We are what we repeatedly do. Excellence, then, is not an act but a habit.\",\n        \"I have always thought the actions of men the best interpreters of their thoughts.\",\n        \"What we see is mainly what we look for.\",\n        \"Don't settle for a relationship that won't let you be yourself.\",\n        \"In order to win, you must expect to win.\",\n        \"Imagination is the highest kite one can fly.\",\n        \"We are all something, but none of us are everything.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"The best way to pay for a lovely moment is to enjoy it.\",\n        \"There are things so deep and complex that only intuition can reach it in our stage of development as human beings.\",\n        \"If you get up one more time than you fall, you will make it through.\",\n        \"Each day provides its own gifts.\",\n        \"Those who will play with cats must expect to be scratched.\",\n        \"If you wish to be a writer, write.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept the responsibility for changing them.\",\n        \"Remember that failure is an event, not a person.\",\n        \"Character develops itself in the stream of life.\",\n        \"A good teacher is like a candle it consumes itself to light the way for others.\",\n        \"The foolish man seeks happiness in the distance, the wise grows it under his feet.\",\n        \"Most smiles are started by another smile.\",\n        \"Do not waste yourself in rejection, nor bark against the bad, but chant the beauty of the good.\",\n        \"Instead of saying that man is the creature of circumstance, it would be nearer the mark to say that man is the architect of circumstance.\",\n        \"The world turns aside to let any man pass who knows where he is going.\",\n        \"Consider how hard it is to change yourself and you'll understand what little chance you have in trying to change others.\",\n        \"If you wish to be a writer, write.\",\n        \"Change is the law of life. And those who look only to the past or present are certain to miss the future.\",\n        \"An invincible determination can accomplish almost anything and in this lies the great distinction between great men and little men.\",\n        \"We are what we think. All that we are arises with our thoughts. With our thoughts, we make the world.\",\n        \"A gem cannot be polished without friction, nor a man perfected without trials.\",\n        \"Give whatever you are doing and whoever you are with the gift of your attention.\",\n        \"Reality leaves a lot to the imagination.\",\n        \"Cherish your visions and your dreams as they are the children of your soul; the blueprints of your ultimate achievements.\",\n        \"Some pursue happiness, others create it.\",\n        \"With every experience, you alone are painting your own canvas, thought by thought, choice by choice.\",\n        \"Friendship with oneself is all important because without it one cannot be friends with anybody else in the world.\",\n        \"Today, give a stranger a smile without waiting for it may be the joy they need to have a great day.\",\n        \"Life is change. Growth is optional. Choose wisely.\",\n        \"Goals are the fuel in the furnace of achievement.\",\n        \"The steeper the mountain the harder the climb the better the view from the finishing line\",\n        \"Iron rusts from disuse; water loses its purity from stagnation... even so does inaction sap the vigour of the mind.\",\n        \"In the depth of winter, I finally learned that there was within me an invincible summer.\",\n        \"Intuition will tell the thinking mind where to look next.\",\n        \"If one is estranged from oneself, then one is estranged from others too. If one is out of touch with oneself, then one cannot touch others.\",\n        \"The amount of happiness that you have depends on the amount of freedom you have in your heart.\",\n        \"Do not be embarrassed by your mistakes. Nothing can teach us better than our understanding of them. This is one of the best ways of self-education.\",\n        \"You will never be happy if you continue to search for what happiness consists of. You will never live if you are looking for the meaning of life.\",\n        \"Spirituality can be severed from both vicious sectarianism and thoughtless banalities. Spirituality, I have come to see, is nothing less than the thoughtful love of life.\",\n        \"Progress always involves risks. You can't steal second base and keep your foot on first.\",\n        \"It has never been my object to record my dreams, just to realize them.\",\n        \"Aim for success, not perfection. Never give up your right to be wrong, because then you will lose the ability to learn new things and move forward with your life.\",\n        \"Life isn't about finding yourself. Life is about creating yourself.\",\n        \"Living at risk is jumping off the cliff and building your wings on the way down.\",\n        \"To be fully alive, fully human, and completely awake is to be continually thrown out of the nest.\",\n        \"To understand the heart and mind of a person, look not at what he has already achieved, but at what he aspires to do.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"All men who have achieved great things have been great dreamers.\",\n        \"If you lose today, win tomorrow. In this never-ending spirit of challenge is the heart of a victor.\",\n        \"Through meditation and by giving full attention to one thing at a time, we can learn to direct attention where we choose.\",\n        \"The weak can never forgive. Forgiveness is the attribute of the strong.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"Each time we face a fear, we gain strength, courage, and confidence in the doing.\",\n        \"If there is no struggle, there is no progress.\",\n        \"Every gift from a friend is a wish for your happiness.\",\n        \"Our greatest glory is not in never failing but rising everytime we fall.\",\n        \"Give it all you've got because you never know if there's going to be a next time.\",\n        \"He who angers you conquers you.\",\n        \"You don't drown by falling in water. You drown by staying there.\",\n        \"No one can make you feel inferior without your consent.\",\n        \"A successful person is one who can lay a firm foundation with the bricks that others throw at him or her.\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"Prejudice is a burden that confuses the past, threatens the future and renders the present inaccessible.\",\n        \"The greatest minds are capable of the greatest vices as well as of the greatest virtues.\",\n        \"We see things not as they are, but as we are. Our perception is shaped by our previous experiences.\",\n        \"Never tell me the sky is the limit when there are footprints on the moon.\",\n        \"Love is the flower you've got to let grow.\",\n        \"To accomplish great things, we must dream as well as act.\",\n        \"Truth is generally the best vindication against slander.\",\n        \"I cannot always control what goes on outside. But I can always control what goes on inside.\",\n        \"Love is not blind; it simply enables one to see things others fail to see.\",\n        \"He who knows, does not speak. He who speaks, does not know.\",\n        \"Your outlook on life is a direct reflection on how much you like yourself.\",\n        \"The doors we open and close each day decide the lives we live.\",\n        \"The foolish man seeks happiness in the distance; the wise grows it under his feet.\",\n        \"It is better to travel well than to arrive.\",\n        \"I am always doing that which I cannot do, in order that I may learn how to do it.\",\n        \"Argue for your limitations, and sure enough they're yours.\",\n        \"Kind words can be short and easy to speak, but their echoes are truly endless.\",\n        \"Don't leave a stone unturned. It's always something, to know you have done the most you could.\",\n        \"Courage is what it takes to stand up and speak; courage is also what it takes to sit down and listen.\",\n        \"If you think you can, you can. And if you think you can't, you're right.\",\n        \"Practice yourself, for heavens sake in little things, and then proceed to greater.\",\n        \"It is more important to know where you are going than to get there quickly. Do not mistake activity for achievement.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"To succeed, we must first believe that we can.\",\n        \"Not what we have but what we enjoy constitutes our abundance.\",\n        \"Once you choose hope, anythings possible.\",\n        \"The moment one gives close attention to anything, even a blade of grass, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"We cannot solve our problems with the same thinking we used when we created them.\",\n        \"Peace is not something you wish for. It's something you make, something you do, something you are, and something you give away.\",\n        \"Smile, breathe, and go slowly.\",\n        \"Be the chief but never the lord.\",\n        \"Action is the foundational key to all success.\",\n        \"You can only grow if you're willing to feel awkward and uncomfortable when you try something new.\",\n        \"Every problem has a gift for you in its hands.\",\n        \"Knowing is not enough; we must apply!\",\n        \"We have committed the Golden Rule to memory; let us now commit it to life.\",\n        \"Failure will never overtake me if my determination to succeed is strong enough.\",\n        \"The best thing in every noble dream is the dreamer...\",\n        \"If you love life, don't waste time, for time is what life is made up of.\",\n        \"Bold is not the act of foolishness but the attribute and inner strength to act when others will not so as to move forward not backward.\",\n        \"Learning is finding out what you already know.\",\n        \"Don't think of it as failure. Think of it as time-released success.\",\n        \"Can miles truly separate you from friends... If you want to be with someone you love, aren't you already there?\",\n        \"If we could learn to like ourselves, even a little, maybe our cruelties and angers might melt away.\",\n        \"True happiness means forging a strong spirit that is undefeated, no matter how trying our circumstances.\",\n        \"Time you enjoyed wasting was not wasted.\",\n        \"Waste no more time arguing about what a good man should be. Be one.\",\n        \"Being in humaneness is good. If we select other goodness and thus are far apart from humaneness, how can we be the wise?\",\n        \"Many of life's failures are people who did not realize how close they were to success when they gave up.\",\n        \"The first requisite for success is the ability to apply your physical and mental energies to one problem incessantly without growing weary.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity\",\n        \"Transformation does not start with some one else changing you; transformation is an inner self reworking of what you are now to what you will be.\",\n        \"Open minds lead to open doors.\",\n        \"Self-trust is the first secret of success.\",\n        \"The mind unlearns with difficulty what it has long learned.\",\n        \"Anything you really want, you can attain, if you really go after it.\",\n        \"It is not the possession of truth, but the success which attends the seeking after it, that enriches the seeker and brings happiness to him.\",\n        \"Prosperity depends more on wanting what you have than having what you want.\",\n        \"I think and that is all that I am.\",\n        \"You block your dream when you allow your fear to grow bigger than your faith.\",\n        \"Transformation does not start with some one else changing you; transformation is an inner self reworking of what you are now to what you will be.\",\n        \"I never see what has been done; I only see what remains to be done.\",\n        \"As our case is new, we must think and act anew.\",\n        \"Fame usually comes to those who are thinking about something else.\",\n        \"If you aren't going all the way, why go at all?\",\n        \"Dreams come true. Without that possibility, nature would not incite us to have them.\",\n        \"Imagination rules the world.\",\n        \"The minute you settle for less than you deserve, you get even less than you settled for.\",\n        \"Just as a candle cannot burn without fire, men cannot live without a spiritual life.\",\n        \"Kindness is the greatest wisdom.\",\n        \"Through meditation and by giving full attention to one thing at a time, we can learn to direct attention where we choose.\",\n        \"There is nothing like returning to a place that remains unchanged to find the ways in which you yourself have altered.\",\n        \"Some people thrive on huge, dramatic change. Some people prefer the slow and steady route. Do what's right for you.\",\n        \"Cherish your visions and your dreams as they are the children of your soul; the blueprints of your ultimate achievements.\",\n        \"Things do not change; we change.\",\n        \"Self-complacency is fatal to progress.\",\n        \"Blaze with the fire that is never extinguished.\",\n        \"A man sees in the world what he carries in his heart.\",\n        \"Ignorance never settle a question.\",\n        \"What is a weed? A plant whose virtues have not yet been discovered.\",\n        \"Sometimes the cards we are dealt are not always fair. However you must keep smiling and moving on.\",\n        \"I can't imagine a person becoming a success who doesn't give this game of life everything hes got.\",\n        \"It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something.\",\n        \"These days people seek knowledge, not wisdom. Knowledge is of the past, wisdom is of the future.\",\n        \"Trust your own instinct. Your mistakes might as well be your own, instead of someone elses.\",\n        \"Happiness often sneaks in through a door you didn't know you left open.\",\n        \"To be happy is to be able to become aware of oneself without fright.\",\n        \"Example has more followers than reason.\",\n        \"Our deepest wishes are whispers of our authentic selves. We must learn to respect them. We must learn to listen.\",\n        \"You block your dream when you allow your fear to grow bigger than your faith.\",\n        \"Though no one can go back and make a brand new start, anyone can start from not and make a brand new ending.\",\n        \"You can't stop the waves, but you can learn to surf.\",\n        \"The possibilities are numerous once we decide to act and not react.\",\n        \"I can't believe that God put us on this earth to be ordinary.\",\n        \"What we see is mainly what we look for.\",\n        \"By accepting yourself and being fully what you are, your presence can make others happy.\",\n        \"If you're in a bad situation, don't worry it'll change. If you're in a good situation, don't worry it'll change.\",\n        \"Never let lack of money interfere with having fun.\",\n        \"Keep your eyes on the stars and your feet on the ground.\",\n        \"What we think determines what happens to us, so if we want to change our lives, we need to stretch our minds.\",\n        \"Mediocrity knows nothing higher than itself, but talent instantly recognizes genius.\",\n        \"We cannot change our memories, but we can change their meaning and the power they have over us.\",\n        \"To want to be what one can be is purpose in life.\",\n        \"We can change our lives. We can do, have, and be exactly what we wish.\",\n        \"Blessed is the man who expects nothing, for he shall never be disappointed.\",\n        \"You may be deceived if you trust too much, but you will live in torment if you don't trust enough.\",\n        \"Love is the flower you've got to let grow.\",\n        \"A thing long expected takes the form of the unexpected when at last it comes.\",\n        \"The foolish man seeks happiness in the distance, the wise grows it under his feet.\",\n        \"Society develops wit, but its contemplation alone forms genius.\",\n        \"There is only one success to be able to spend your life in your own way.\",\n        \"Your destiny isn't just fate; it is how you use your own developed abilities to get what you want.\",\n        \"An obstacle may be either a stepping stone or a stumbling block.\",\n        \"Do not waste yourself in rejection, nor bark against the bad, but chant the beauty of the good.\",\n        \"Every man is a volume if you know how to read him.\",\n        \"Never miss an opportunity to make others happy, even if you have to leave them alone in order to do it.\",\n        \"We are the leaves of one branch, the drops of one sea, the flowers of one garden.\",\n        \"The simplest things are often the truest.\",\n        \"Memory is the mother of all wisdom.\",\n        \"There is one thing you have got to learn about our movement. Three people are better than no people.\",\n        \"He who has imagination without learning has wings but no feet.\",\n        \"The cause is hidden. The effect is visible to all.\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"Rather than wishing for change, you first must be prepared to change.\",\n        \"Friendship isn't a big thing. It's a million little things.\",\n        \"You have power over your mind not outside events. Realize this, and you will find strength.\",\n        \"When you judge another, you do not define them, you define yourself.\",\n        \"Life is a succession of lessons, which must be lived to be understood.\",\n        \"Always bear in mind that your own resolution to succeed is more important than any one thing.\",\n        \"You may be deceived if you trust too much, but you will live in torment if you don't trust enough.\",\n        \"A life spent making mistakes is not only more honourable, but more useful than a life spent doing nothing.\",\n        \"We lost because we told ourselves we lost.\",\n        \"A stumble may prevent a fall.\",\n        \"Ask yourself the secret of your success. Listen to your answer, and practice it.\",\n        \"You were not born a winner, and you were not born a loser. You are what you make yourself be.\",\n        \"If you light a lamp for somebody, it will also brighten your path.\",\n        \"Your worst enemy cannot harm you as much as your own unguarded thoughts.\",\n        \"Judge nothing, you will be happy. Forgive everything, you will be happier. Love everything, you will be happiest.\",\n        \"Most smiles are started by another smile.\",\n        \"He who knows himself is enlightened.\",\n        \"We all have problems. The way we solve them is what makes us different.\",\n        \"People are not lazy. They simply have impotent goals that is, goals that do not inspire them.\",\n        \"Good instincts usually tell you what to do long before your head has figured it out.\",\n        \"To speak gratitude is courteous and pleasant, to enact gratitude is generous and noble, but to live gratitude is to touch Heaven.\",\n        \"Victory belongs to the most persevering.\",\n        \"Prosperity depends more on wanting what you have than having what you want.\",\n        \"Excellence is to do a common thing in an uncommon way.\",\n        \"Minds are like parachutes. They only function when open.\",\n        \"Most folks are about as happy as they make up their minds to be.\",\n        \"Lots of people want to ride with you in the limo, but what you want is someone who will take the bus with you when the limo breaks down.\",\n        \"Everything that irritates us about others can lead us to an understanding about ourselves.\",\n        \"Living at risk is jumping off the cliff and building your wings on the way down.\",\n        \"The truth of the matter is that you always know the right thing to do. The hard part is doing it.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"Always bear in mind that your own resolution to succeed is more important than any one thing.\",\n        \"Any of us can achieve virtue, if by virtue we merely mean the avoidance of the vices that do not attract us.\",\n        \"Love is the flower you've got to let grow.\",\n        \"If you're in a bad situation, don't worry it'll change. If you're in a good situation, don't worry it'll change.\",\n        \"Wherever a man may happen to turn, whatever a man may undertake, he will always end up by returning to the path which nature has marked out for him.\",\n        \"A day of worry is more exhausting than a day of work.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"First say to yourself what you would be; and then do what you have to do.\",\n        \"Argue for your limitations, and sure enough they're yours.\",\n        \"The doors we open and close each day decide the lives we live.\",\n        \"The path to success is to take massive, determined action.\",\n        \"To dare is to lose ones footing momentarily. To not dare is to lose oneself.\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"Chaos and Order are not enemies, only opposites.\",\n        \"Your friends will know you better in the first minute you meet than your acquaintances will know you in a thousand years.\",\n        \"In separateness lies the world's great misery, in compassion lies the world's true strength.\",\n        \"Good actions give strength to ourselves and inspire good actions in others.\",\n        \"All serious daring starts from within.\",\n        \"Consider how hard it is to change yourself and you'll understand what little chance you have in trying to change others.\",\n        \"Blessed is the man who expects nothing, for he shall never be disappointed.\",\n        \"No valid plans for the future can be made by those who have no capacity for living now.\",\n        \"All our talents increase in the using, and the every faculty, both good and bad, strengthen by exercise.\",\n        \"Our greatest glory is not in never failing but rising everytime we fall.\",\n        \"Work out your own salvation. Do not depend on others.\",\n        \"To study and not think is a waste. To think and not study is dangerous.\",\n        \"It is not only for what we do that we are held responsible, but also for what we do not do.\",\n        \"Do one thing every day that scares you.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift. That is why we call it the present.\",\n        \"There is no need for temples, no need for complicated philosophies. My brain and my heart are my temples; my philosophy is kindness.\",\n        \"Ideas are the beginning points of all fortunes.\",\n        \"Our intention creates our reality.\",\n        \"We are the leaves of one branch, the drops of one sea, the flowers of one garden.\",\n        \"Don't smother each other. No one can grow in the shade.\",\n        \"Learning without reflection is a waste, reflection without learning is dangerous.\",\n        \"The steeper the mountain the harder the climb the better the view from the finishing line\",\n        \"The more light you allow within you, the brighter the world you live in will be.\",\n        \"Your work is to discover your world and then with all your heart give yourself to it.\",\n        \"The amount of happiness that you have depends on the amount of freedom you have in your heart.\",\n        \"Most smiles are started by another smile.\",\n        \"Nothing great was ever achieved without enthusiasm.\",\n        \"The Superior Man is aware of Righteousness, the inferior man is aware of advantage.\",\n        \"No is easier to do. Yes is easier to say.\",\n        \"Ask yourself the secret of your success. Listen to your answer, and practice it.\",\n        \"You won't skid if you stay in a rut.\",\n        \"To know your purpose is to live a life of direction, and in that direction is found peace and tranquillity.\",\n        \"Never tell me the sky is the limit when there are footprints on the moon.\",\n        \"The cosmos is neither moral or immoral; only people are. He who would move the world must first move himself.\",\n        \"Genius is one percent inspiration and ninety-nine percent perspiration.\",\n        \"Myths which are believed in tend to become true.\",\n        \"Do what you can. Want what you have. Be who you are.\",\n        \"For everything that lives is holy, life delights in life.\",\n        \"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it.\",\n        \"Life is not measured by the breaths we take, but by the moments that take our breath.\",\n        \"Life is a succession of moments. To live each one is to succeed.\",\n        \"All the great performers I have worked with are fuelled by a personal dream.\",\n        \"Watch the little things; a small leak will sink a great ship.\",\n        \"Here is one quality that one must possess to win, and that is definiteness of purpose, the knowledge of what one wants, and a burning desire to possess it.\",\n        \"With realization of ones own potential and self-confidence in ones ability, one can build a better world.\",\n        \"Correction does much, but encouragement does more.\",\n        \"It is not so important to know everything as to appreciate what we learn.\",\n        \"We never understand how little we need in this world until we know the loss of it.\",\n        \"Autumn is a second spring when every leaf is a flower.\",\n        \"Do not expect the world to look bright, if you habitually wear gray-brown glasses.\",\n        \"There are two ways to slide easily through life: to believe everything or to doubt everything; both ways save us from thinking.\",\n        \"Accept the things to which fate binds you, and love the people with whom fate brings you together, but do so with all your heart.\",\n        \"Appreciation can make a day, even change a life. Your willingness to put it into words is all that is necessary.\",\n        \"Courage is the discovery that you may not win, and trying when you know you can lose.\",\n        \"When you learn, teach. When you get, give.\",\n        \"There is no greater harm than that of time wasted.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"Four steps to achievement: Plan purposefully. Prepare prayerfully. Proceed positively. Pursue persistently.\",\n        \"To be thoughtful and kind only takes a few seconds compared to the timeless hurt caused by one rude gesture.\",\n        \"When one door of happiness closes, another opens; but often we look so long at the closed door that we do not see the one which has been opened for us.\",\n        \"The greatest discovery of our generation is that human beings can alter their lives by altering their attitudes of mind. As you think, so shall you be.\",\n        \"Many of life's failures are people who did not realize how close they were to success when they gave up.\",\n        \"From wonder into wonder existence opens.\",\n        \"Do one thing every day that scares you.\",\n        \"By letting it go it all gets done. The world is won by those who let it go. But when you try and try. The world is beyond the winning.\",\n        \"By going beyond your own problems and taking care of others, you gain inner strength, self-confidence, courage, and a greater sense of calm.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"A leader is best when people barely know he exists, when his work is done, his aim fulfilled, they will say: we did it ourselves.\",\n        \"Deep listening is miraculous for both listener and speaker.When someone receives us with open-hearted, non-judging, intensely interested listening, our spirits expand.\",\n        \"If you wish to be a writer, write.\",\n        \"Wrinkles should merely indicate where smiles have been.\",\n        \"It is better to have enough ideas for some of them to be wrong, than to be always right by having no ideas at all.\",\n        \"Truth isn't all about what actually happens but more about how what has happened is interpreted.\",\n        \"A thing well said will be wit in all languages.\",\n        \"Always be smarter than the people who hire you.\",\n        \"You may only be someone in the world, but to someone else, you may be the world.\",\n        \"No is easier to do. Yes is easier to say.\",\n        \"Complaining doesn't change a thing only taking action does.\",\n        \"No day in which you learn something is a complete loss.\",\n        \"Strength does not come from physical capacity. It comes from an indomitable will.\",\n        \"Always seek out the seed of triumph in every adversity.\",\n        \"Be miserable. Or motivate yourself. Whatever has to be done, it's always your choice.\",\n        \"Each time we face a fear, we gain strength, courage, and confidence in the doing.\",\n        \"Skill to do comes of doing.\",\n        \"Six essential qualities that are the key to success: Sincerity, personal integrity, humility, courtesy, wisdom, charity.\",\n        \"They must often change, who would be constant in happiness or wisdom.\",\n        \"Be your own hero, it's cheaper than a movie ticket.\",\n        \"The pessimist sees difficulty in every opportunity. The optimist sees the opportunity in every difficulty.\",\n        \"The truth which has made us free will in the end make us glad also.\",\n        \"Yesterdays home runs don't win today's games.\",\n        \"What is a weed? A plant whose virtues have not yet been discovered.\",\n        \"Be what you are. This is the first step toward becoming better than you are.\",\n        \"Something opens our wings. Something makes boredom and hurt disappear. Someone fills the cup in front of us: We taste only sacredness.\",\n        \"A subtle thought that is in error may yet give rise to fruitful inquiry that can establish truths of great value.\",\n        \"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"Do not go where the path may lead, go instead where there is no path and leave a trail.\",\n        \"Do not turn back when you are just at the goal.\",\n        \"I'm not afraid of storms, for I'm learning how to sail my ship.\",\n        \"Everyone thinks of changing the world, but no one thinks of changing himself.\",\n        \"Judge nothing, you will be happy. Forgive everything, you will be happier. Love everything, you will be happiest.\",\n        \"Learning is finding out what you already know.\",\n        \"The greatest way to live with honour in this world is to be what we pretend to be.\",\n        \"He who angers you conquers you.\",\n        \"We must learn our limits. We are all something, but none of us are everything.\",\n        \"Patience is the companion of wisdom.\",\n        \"It is never too late to be what you might have been.\",\n        \"Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love.\",\n        \"We are either progressing or retrograding all the while. There is no such thing as remaining stationary in this life.\",\n        \"Make the best use of what is in your power, and take the rest as it happens.\",\n        \"The greatest remedy for anger is delay.\",\n        \"Every man takes the limits of his own field of vision for the limits of the world.\",\n        \"Either I will find a way, or I will make one.\",\n        \"I do not believe in a fate that falls on men however they act; but I do believe in a fate that falls on them unless they act.\",\n        \"The eye sees only what the mind is prepared to comprehend.\",\n        \"Never deny a diagnosis, but do deny the negative verdict that may go with it.\",\n        \"We are not animals. We are not a product of what has happened to us in our past. We have the power of choice.\",\n        \"If there is no struggle, there is no progress.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"Dreams come true. Without that possibility, nature would not incite us to have them.\",\n        \"Limitations live only in our minds. But if we use our imaginations, our possibilities become limitless.\",\n        \"Never miss an opportunity to make others happy, even if you have to leave them alone in order to do it.\",\n        \"Fear grows in darkness; if you think theres a bogeyman around, turn on the light.\",\n        \"Never do things others can do and will do, if there are things others cannot do or will not do.\",\n        \"You block your dream when you allow your fear to grow bigger than your faith.\",\n        \"This world, after all our science and sciences, is still a miracle; wonderful, inscrutable, magical and more, to whosoever will think of it.\",\n        \"You'll see it when you believe it.\",\n        \"Imagination is the living power and prime agent of all human perception.\",\n        \"To be able to give away riches is mandatory if you wish to possess them. This is the only way that you will be truly rich.\",\n        \"Remember that sometimes not getting what you want is a wonderful stroke of luck.\",\n        \"Bold is not the act of foolishness but the attribute and inner strength to act when others will not so as to move forward not backward.\",\n        \"It is not fair to ask of others what you are unwilling to do yourself.\",\n        \"Try not to become a man of success but rather try to become a man of value.\",\n        \"How many cares one loses when one decides not to be something but to be someone.\",\n        \"Good timber does not grow with ease; the stronger the wind, the stronger the trees.\",\n        \"Never do things others can do and will do, if there are things others cannot do or will not do.\",\n        \"No man was ever wise by chance.\",\n        \"The person who lives life fully, glowing with life's energy, is the person who lives a successful life.\",\n        \"However many holy words you read, However many you speak, What good will they do you If you do not act on upon them?\",\n        \"To be able to give away riches is mandatory if you wish to possess them. This is the only way that you will be truly rich.\",\n        \"He who talks more is sooner exhausted.\",\n        \"I'm a great believer in luck and I find the harder I work, the more I have of it.\",\n        \"Meaning is not what you start with but what you end up with.\",\n        \"To ensure good health: eat lightly, breathe deeply, live moderately, cultivate cheerfulness, and maintain an interest in life.\",\n        \"To be what we are, and to become what we are capable of becoming, is the only end of life.\",\n        \"This world, after all our science and sciences, is still a miracle; wonderful, inscrutable, magical and more, to whosoever will think of it.\",\n        \"Work out your own salvation. Do not depend on others.\",\n        \"You will not be punished for your anger, you will be punished by your anger.\",\n        \"Real magic in relationships means an absence of judgement of others.\",\n        \"Not what we have but what we enjoy constitutes our abundance.\",\n        \"Love and compassion open our own inner life, reducing stress, distrust and loneliness.\",\n        \"To dream of the person you would like to be is to waste the person you are.\",\n        \"Those that know, do. Those that understand, teach.\",\n        \"Trusting our intuition often saves us from disaster.\",\n        \"Listen to your intuition. It will tell you everything you need to know.\",\n        \"The greatest pleasure I know is to do a good action by stealth, and to have it found out by accident.\",\n        \"Beware of missing chances; otherwise it may be altogether too late some day.\",\n        \"In skating over thin ice our safety is in our speed.\",\n        \"Never tell a young person that anything cannot be done. God may have been waiting centuries for someone ignorant enough of the impossible to do that very thing.\",\n        \"It has never been my object to record my dreams, just to realize them.\",\n        \"Happiness cannot be travelled to, owned, earned, worn or consumed. Happiness is the spiritual experience of living every minute with love, grace and gratitude.\",\n        \"All achievements, all earned riches, have their beginning in an idea.\",\n        \"There is no greater harm than that of time wasted.\",\n        \"We do what we do because we believe.\",\n        \"We are not animals. We are not a product of what has happened to us in our past. We have the power of choice.\",\n        \"To do all that one is able to do, is to be a man; to do all that one would like to do, is to be a god.\",\n        \"I cannot make my days longer so I strive to make them better.\",\n        \"Be miserable. Or motivate yourself. Whatever has to be done, it's always your choice.\",\n        \"Don't wait for people to be friendly. Show them how.\",\n        \"Genuine love should first be directed at oneself if we do not love ourselves, how can we love others?\",\n        \"Imagination rules the world.\",\n        \"When fate hands us a lemon, lets try to make lemonade.\",\n        \"The beginning is always today.\",\n        \"Happiness does not come from having much, but from being attached to little.\",\n        \"You have power over your mind not outside events. Realize this, and you will find strength.\",\n        \"The truth is always exciting. Speak it, then. Life is dull without it.\",\n        \"You have power over your mind not outside events. Realize this, and you will find strength.\",\n        \"A man who doesn't trust himself can never really trust anyone else.\",\n        \"Love doesn't make the world go round, love is what makes the ride worthwhile.\",\n        \"The universe is made of stories, not atoms.\",\n        \"The least of things with a meaning is worth more in life than the greatest of things without it.\",\n        \"Great are they who see that spiritual is stronger than any material force, that thoughts rule the world.\",\n        \"A stumble may prevent a fall.\",\n        \"A single conversation across the table with a wise person is worth a months study of books.\",\n        \"The most beautiful things in the world cannot be seen or even touched. They must be felt with the heart.\",\n        \"If you come to a fork in the road, take it.\",\n        \"If you break your neck, if you have nothing to eat, if your house is on fire, then you got a problem. Everything else is inconvenience.\",\n        \"Better to have loved and lost, than to have never loved at all.\",\n        \"Slow down and everything you are chasing will come around and catch you.\",\n        \"You must do the things you think you cannot do.\",\n        \"In three words I can sum up everything Ive learned about life: it goes on.\",\n        \"Experience is not what happens to a man. It is what a man does with what happens to him.\",\n        \"Only do what your heart tells you.\",\n        \"Nothing in life is to be feared. It is only to be understood.\",\n        \"If you take each challenge one step at a time, with faith in every footstep, your strength and understanding will increase.\",\n        \"If you can't explain it simply, you don't understand it well enough.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"Silence is a source of great strength.\",\n        \"Whenever something negative happens to you, there is a deep lesson concealed within it.\",\n        \"What is not started today is never finished tomorrow.\",\n        \"Fortune favours the brave.\",\n        \"The happiness of a man in this life does not consist in the absence but in the mastery of his passions.\",\n        \"Let me tell you the secret that has led me to my goal: my strength lies solely in my tenacity\",\n        \"Before you can inspire with emotion, you must be swamped with it yourself. Before you can move their tears, your own must flow. To convince them, you must yourself believe.\",\n        \"If you do not change direction, you may end up where you are heading.\",\n        \"As we grow as unique persons, we learn to respect the uniqueness of others.\",\n        \"Wisdom begins in wonder.\",\n        \"The dream was always running ahead of me. To catch up, to live for a moment in unison with it, that was the miracle.\",\n        \"I can't imagine a person becoming a success who doesn't give this game of life everything hes got.\",\n        \"The superior man is modest in his speech, but exceeds in his actions.\",\n        \"The amount of happiness that you have depends on the amount of freedom you have in your heart.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"If you are going to achieve excellence in big things, you develop the habit in little matters. Excellence is not an exception, it is a prevailing attitude.\",\n        \"Every adversity, every failure, every heartache carries with it the seed of an equal or greater benefit.\",\n        \"No matter how carefully you plan your goals they will never be more that pipe dreams unless you pursue them with gusto.\",\n        \"I am always doing that which I cannot do, in order that I may learn how to do it.\",\n        \"The more you care, the stronger you can be.\",\n        \"He who knows others is wise. He who knows himself is enlightened.\",\n        \"God always takes the simplest way.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"It takes both sunshine and rain to make a rainbow.\",\n        \"You cannot change anything in your life with intention alone, which can become a watered-down, occasional hope that you'll get to tomorrow. Intention without action is useless.\",\n        \"Nothing is at last sacred but the integrity of your own mind.\",\n        \"Music in the soul can be heard by the universe.\",\n        \"I have never been hurt by anything I didn't say.\",\n        \"It is only when the mind and character slumber that the dress can be seen.\",\n        \"Our greatest glory is not in never falling, but in rising every time we fall.\",\n        \"A day of worry is more exhausting than a day of work.\",\n        \"When you lose, don't lose the lesson.\",\n        \"When you are content to be simply yourself and don't compare or compete, everybody will respect you.\",\n        \"Try and fail, but don't fail to try.\",\n        \"The one who always loses, is the only person who gets the reward.\",\n        \"One must be fond of people and trust them if one is not to make a mess of life.\",\n        \"Minds are like parachutes. They only function when open.\",\n        \"Be what you are. This is the first step toward becoming better than you are.\",\n        \"Nature gave us one tongue and two ears so we could hear twice as much as we speak.\",\n        \"Appreciation can make a day, even change a life. Your willingness to put it into words is all that is necessary.\",\n        \"Light tomorrow with today!\",\n        \"Staying in one place is the best path to be taken over and surpassed by many.\",\n        \"Being right is highly overrated. Even a stopped clock is right twice a day.\",\n        \"The first requisite for success is the ability to apply your physical and mental energies to one problem incessantly without growing weary.\",\n        \"When anger use your energy to do something productive.\",\n        \"I love my past. I love my present. I'm not ashamed of what Ive had, and I'm not sad because I have it no longer.\",\n        \"Only those who dare to fail greatly can ever achieve greatly.\",\n        \"One fails forward toward success.\",\n        \"Try not to become a man of success, but rather try to become a man of value.\",\n        \"The shoe that fits one person pinches another; there is no recipe for living that suits all cases.\",\n        \"Science is organized knowledge. Wisdom is organized life.\",\n        \"You can adopt the attitude there is nothing you can do, or you can see the challenge as your call to action.\",\n        \"A short saying oft contains much wisdom.\",\n        \"Where all think alike, no one thinks very much.\",\n        \"Trust only movement. Life happens at the level of events, not of words. Trust movement.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"We are the leaves of one branch, the drops of one sea, the flowers of one garden.\",\n        \"I am glad that I paid so little attention to good advice; had I abided by it I might have been saved from some of my most valuable mistakes.\",\n        \"The undertaking of a new action brings new strength.\",\n        \"Invent your world. Surround yourself with people, color, sounds, and work that nourish you.\",\n        \"Take it easy, but take it.\",\n        \"There is no duty we so underrate as the duty of being happy. By being happy we sow anonymous benefits upon the world.\",\n        \"You do not become good by trying to be good, but by finding the goodness that is already within you.\",\n        \"The energy of the mind is the essence of life.\",\n        \"I think and that is all that I am.\",\n        \"How wonderful it is that nobody need wait a single moment before starting to improve the world.\",\n        \"Strength does not come from physical capacity. It comes from an indomitable will.\",\n        \"The journey of a thousand miles begins with one step.\",\n        \"Ask yourself the secret of your success. Listen to your answer, and practice it.\",\n        \"In order to live free and happily you must sacrifice boredom. It is not always an easy sacrifice.\",\n        \"While we try to teach our children all about life, our children teach us what life is all about.\",\n        \"Imagination is the highest kite one can fly.\",\n        \"The eye sees only what the mind is prepared to comprehend.\",\n        \"Always seek out the seed of triumph in every adversity.\",\n        \"Most people are about as happy as they make up their minds to be\",\n        \"Stay committed to your decisions, but stay flexible in your approach.\",\n        \"When you begin to touch your heart or let your heart be touched, you begin to discover that it's bottomless.\",\n        \"To be happy is to be able to become aware of oneself without fright.\",\n        \"Change your words. Change your world.\",\n        \"I do not believe in a fate that falls on men however they act; but I do believe in a fate that falls on man unless they act.\",\n        \"A fine quotation is a diamond on the finger of a man of wit, and a pebble in the hand of a fool.\",\n        \"Don't look back. Something might be gaining on you.\",\n        \"Courage is not the absence of fear, but simply moving on with dignity despite that fear.\",\n        \"Always be smarter than the people who hire you.\",\n        \"If it is not right do not do it; if it is not true do not say it.\",\n        \"When you learn, teach. When you get, give.\",\n        \"Silence is a source of great strength.\",\n        \"Edison failed 10,000 times before he made the electric light. Do not be discouraged if you fail a few times.\",\n        \"Imagination will often carry us to worlds that never were. But without it we go nowhere.\",\n        \"Change your words. Change your world.\",\n        \"Flow with whatever is happening and let your mind be free. Stay centred by accepting whatever you are doing. This is the ultimate.\",\n        \"There surely is in human nature an inherent propensity to extract all the good out of all the evil.\",\n        \"Friendship with oneself is all important because without it one cannot be friends with anybody else in the world.\",\n        \"It is very easy to forgive others their mistakes; it takes more grit to forgive them for having witnessed your own.\",\n        \"By going beyond your own problems and taking care of others, you gain inner strength, self-confidence, courage, and a greater sense of calm.\",\n        \"And as we let our own light shine, we unconsciously give other people permission to do the same.\",\n        \"We must overcome the notion that we must be regular. It robs you of the chance to be extraordinary and leads you to the mediocre.\",\n        \"Joy is what happens to us when we allow ourselves to recognize how good things really are.\",\n        \"Strength to carry on despite the odds means you have faith in your own abilities and know how.\",\n        \"The undertaking of a new action brings new strength.\",\n        \"You can never cross the ocean unless you have the courage to lose sight of the shore.\",\n        \"If you cannot do great things, do small things in a great way.\",\n        \"Love is the master key that opens the gates of happiness.\",\n        \"Never let lack of money interfere with having fun.\",\n        \"All our knowledge begins with the senses, proceeds then to the understanding, and ends with reason. There is nothing higher than reason.\",\n        \"I can't believe that God put us on this earth to be ordinary.\",\n        \"Respect should be earned by actions, and not acquired by years.\",\n        \"All great men are gifted with intuition. They know without reasoning or analysis, what they need to know.\",\n        \"Let the beauty of what you love be what you do.\",\n        \"No act of kindness, no matter how small, is ever wasted.\",\n        \"Imagination disposes of everything; it creates beauty, justice, and happiness, which are everything in this world.\",\n        \"If you let go a little, you will have a little peace. If you let go a lot, you will have a lot of peace.\",\n        \"If the single man plant himself indomitably on his instincts, and there abide, the huge world will come round to him.\",\n        \"People grow through experience if they meet life honestly and courageously. This is how character is built.\",\n        \"I hear and I forget. I see and I remember. I do and I understand.\",\n        \"Genuine love should first be directed at oneself if we do not love ourselves, how can we love others?\",\n        \"Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment.\",\n        \"It is in your moments of decision that your destiny is shaped.\",\n        \"Those who cannot learn from history are doomed to repeat it.\",\n        \"Wisdom is the supreme part of happiness.\",\n        \"Nobody will believe in you unless you believe in yourself.\",\n        \"As long as your going to be thinking anyway, think big.\",\n        \"Whenever something negative happens to you, there is a deep lesson concealed within it.\",\n        \"When you are content to be simply yourself and don't compare or compete, everybody will respect you.\",\n        \"Adversity has the effect of eliciting talents, which in prosperous circumstances would have lain dormant.\",\n        \"Every day may not be good, but there's something good in every day.\",\n        \"Begin to weave and God will give you the thread.\",\n        \"Great ideas often receive violent opposition from mediocre minds.\",\n        \"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\",\n        \"The more you care, the stronger you can be.\",\n        \"A thing long expected takes the form of the unexpected when at last it comes.\",\n        \"When you come to the end of your rope, tie a knot and hang on.\",\n        \"It can't be spring if your heart is filled with past failures.\",\n        \"Trust your own instinct. Your mistakes might as well be your own, instead of someone elses.\",\n        \"Things do not change; we change.\",\n        \"Follow your instincts. That is where true wisdom manifests itself.\",\n        \"Every man dies. Not every man really lives.\",\n        \"When you see a good person, think of becoming like him. When you see someone not so good, reflect on your own weak points.\",\n        \"Put your future in good hands your own.\",\n        \"It takes courage to grow up and become who you really are.\",\n        \"The biggest adventure you can ever take is to live the life of your dreams.\",\n        \"Give whatever you are doing and whoever you are with the gift of your attention.\",\n        \"Nothing ever goes away until it has taught us what we need to know.\",\n        \"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it.\",\n        \"One that desires to excel should endeavour in those things that are in themselves most excellent.\",\n        \"If you change the way you look at things, the things you look at change.\",\n        \"Who looks outside, dreams; who looks inside, awakes.\",\n        \"We are not animals. We are not a product of what has happened to us in our past. We have the power of choice.\",\n        \"Without faith, nothing is possible. With it, nothing is impossible.\",\n        \"The awareness of our own strength makes us modest.\",\n        \"We must not say every mistake is a foolish one.\",\n        \"Do something wonderful, people may imitate it.\",\n        \"It is only when the mind and character slumber that the dress can be seen.\",\n        \"What is a weed? A plant whose virtues have not yet been discovered.\",\n        \"The cure for boredom is curiosity. There is no cure for curiosity.\",\n        \"He that never changes his opinions, never corrects his mistakes, and will never be wiser on the morrow than he is today.\",\n        \"When your desires are strong enough you will appear to possess superhuman powers to achieve.\",\n        \"The really unhappy person is the one who leaves undone what they can do, and starts doing what they don't understand; no wonder they come to grief.\",\n        \"A leader or a man of action in a crisis almost always acts subconsciously and then thinks of the reasons for his action.\",\n        \"The most decisive actions of our life... are most often unconsidered actions.\",\n        \"Mind is everything: muscle, pieces of rubber. All that I am, I am because of my mind.\",\n        \"Courage is going from failure to failure without losing enthusiasm.\",\n        \"Sometimes the biggest act of courage is a small one.\",\n        \"All men who have achieved great things have been great dreamers.\",\n        \"Love is the flower you've got to let grow.\",\n        \"To choose what is difficult all ones days, as if it were easy, that is faith.\",\n        \"Parents can only give good advice or put them on the right paths, but the final forming of a persons character lies in their own hands.\",\n        \"Invent your world. Surround yourself with people, color, sounds, and work that nourish you.\",\n        \"Never bend your head. Always hold it high. Look the world right in the eye.\",\n        \"Difficulties increase the nearer we get to the goal.\",\n        \"If we could see the miracle of a single flower clearly, our whole life would change.\",\n        \"Fortune befriends the bold.\",\n        \"It all depends on how we look at things, and not how they are in themselves.\",\n        \"The truest wisdom is a resolute determination.\",\n        \"You can't trust without risk but neither can you live in a cocoon.\",\n        \"Moments of complete apathy are the best for new creations.\",\n        \"Life is what happens while you are making other plans.\",\n        \"The greatest obstacle to connecting with our joy is resentment.\",\n        \"In all things of nature there is something of the marvellous.\",\n        \"The key to transforming our hearts and minds is to have an understanding of how our thoughts and emotions work.\",\n        \"Waste no more time arguing about what a good man should be. Be one.\",\n        \"If you have knowledge, let others light their candles in it.\",\n        \"Give thanks for the rain of life that propels us to reach new horizons.\",\n        \"A garden is always a series of losses set against a few triumphs, like life itself.\",\n        \"A dream is your creative vision for your life in the future. You must break out of your current comfort zone and become comfortable with the unfamiliar and the unknown.\",\n        \"To be happy is to be able to become aware of oneself without fright.\",\n        \"Either I will find a way, or I will make one.\",\n        \"Experience is simply the name we give our mistakes.\",\n        \"Allow the world to live as it chooses, and allow yourself to live as you choose.\",\n        \"Most people are about as happy as they make up their minds to be\",\n        \"He is able who thinks he is able.\",\n        \"The key to transforming our hearts and minds is to have an understanding of how our thoughts and emotions work.\",\n        \"To choose what is difficult all ones days, as if it were easy, that is faith.\",\n        \"To bring anything into your life, imagine that it's already there.\",\n        \"What you see depends on what you're looking for.\",\n        \"The weak can never forgive. Forgiveness is the attribute of the strong.\",\n        \"You cannot make yourself feel something you do not feel, but you can make yourself do right in spite of your feelings.\",\n        \"We need to find the courage to say NO to the things and people that are not serving us if we want to rediscover ourselves and live our lives with authenticity.\",\n        \"Luck is what happens when preparation meets opportunity.\",\n        \"Count your joys instead of your woes. Count your friends instead of your foes.\",\n        \"Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.\",\n        \"If the single man plant himself indomitably on his instincts, and there abide, the huge world will come round to him.\",\n        \"Chance is always powerful. Let your hook be always cast; in the pool where you least expect it, there will be a fish.\",\n        \"Beware of the half truth. You may have gotten hold of the wrong half.\",\n        \"He who knows himself is enlightened.\",\n        \"The most dangerous way to lose time is not to spend it having fun, but to spend it doing fake work. When you spend time having fun, you know you're being self-indulgent.\",\n        \"The future is completely open, and we are writing it moment to moment.\",\n        \"Life is like riding a bicycle. To keep your balance you must keep moving.\",\n        \"We learn what we have said from those who listen to our speaking.\",\n        \"Happiness is when what you think, what you say, and what you do are in harmony.\",\n        \"What is necessary to change a person is to change his awareness of himself.\",\n        \"If you kick a stone in anger, you'll hurt your own foot.\",\n        \"To ensure good health: eat lightly, breathe deeply, live moderately, cultivate cheerfulness, and maintain an interest in life.\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"Learning without reflection is a waste, reflection without learning is dangerous.\",\n        \"Every new day is another chance to change your life.\",\n        \"No snowflake in an avalanche ever feels responsible.\",\n        \"The best thing about the future is that it only comes one day at a time.\",\n        \"The cure for boredom is curiosity. There is no cure for curiosity.\",\n        \"Every man takes the limits of his own field of vision for the limits of the world.\",\n        \"Know how to listen, and you will profit even from those who talk badly.\",\n        \"Be not afraid of greatness: some are born great, some achieve greatness, and some have greatness thrust upon them.\",\n        \"I cannot say whether things will get better if we change; what I can say is they must change if they are to get better.\",\n        \"Love is never lost. If not reciprocated, it will flow back and soften and purify the heart.\",\n        \"The greatest good you can do for another is not just to share your riches but to reveal to him his own.\",\n        \"Take time to deliberate, but when the time for action has arrived, stop thinking and go in.\",\n        \"I am of the opinion that my life belongs to the community, and as long as I live it is my privilege to do for it whatever I can.\",\n        \"The purpose of learning is growth, and our minds, unlike our bodies, can continue growing as we continue to live.\",\n        \"The only thing to do with good advice is to pass it on. It is never of any use to oneself.\",\n        \"We are what we repeatedly do. Excellence, then, is not an act, but a habit.\",\n        \"Strength to carry on despite the odds means you have faith in your own abilities and know how.\",\n        \"A friend is someone who understands your past, believes in your future, and accepts you just the way you are.\",\n        \"Kindness is the language which the deaf can hear and the blind can see.\",\n        \"Make the most of yourself for that is all there is of you.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"I believe that every person is born with talent.\",\n        \"The winner ain't the one with the fastest car it's the one who refuses to lose.\",\n        \"As our case is new, we must think and act anew.\",\n        \"We have committed the Golden Rule to memory; let us now commit it to life.\",\n        \"Good instincts usually tell you what to do long before your head has figured it out.\",\n        \"What we see is mainly what we look for.\",\n        \"People who say it cannot be done should not interrupt those who are doing it.\",\n        \"There is no greater harm than that of time wasted.\",\n        \"Fear is a darkroom where negatives develop.\",\n        \"Liberty, taking the word in its concrete sense, consists in the ability to choose.\",\n        \"To be happy is to be able to become aware of oneself without fright.\",\n        \"Kindness is the greatest wisdom.\",\n        \"Our deepest wishes are whispers of our authentic selves. We must learn to respect them. We must learn to listen.\",\n        \"You must train your intuition you must trust the small voice inside you which tells you exactly what to say, what to decide.\",\n        \"Sincerity is the way of Heaven. The attainment of sincerity is the way of men.\",\n        \"Everything is perfect in the universe even your desire to improve it.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"Aerodynamically the bumblebee shouldn't be able to fly, but the bumblebee doesn't know that so it goes on flying anyway.\",\n        \"To accomplish great things, we must dream as well as act.\",\n        \"If I know what love is, it is because of you.\",\n        \"Change your words. Change your world.\",\n        \"He who lives in harmony with himself lives in harmony with the world.\",\n        \"The greatest minds are capable of the greatest vices as well as of the greatest virtues.\",\n        \"Great is the art of beginning, but greater is the art of ending.\",\n        \"Nature is a mutable cloud which is always and never the same.\",\n        \"The only difference between your abilities and others is the ability to put yourself in their shoes and actually try.\",\n        \"Strength to carry on despite the odds means you have faith in your own abilities and know how.\",\n        \"All perceiving is also thinking, all reasoning is also intuition, all observation is also invention.\",\n        \"Your big opportunity may be right where you are now.\",\n        \"Genius is one percent inspiration and ninety-nine percent perspiration.\",\n        \"The cause is hidden. The effect is visible to all.\",\n        \"Whatever happens, take responsibility.\",\n        \"He who knows, does not speak. He who speaks, does not know.\",\n        \"What is new in the world? Nothing. What is old in the world? Nothing. Everything has always been and will always be.\",\n        \"Learn from yesterday, live for today, hope for tomorrow.\",\n        \"He who lives in harmony with himself lives in harmony with the universe.\",\n        \"To be beautiful means to be yourself. You do not need to be accepted by others. You need to accept yourself.\",\n        \"Choose a job you love, and you will never have to work a day in your life.\",\n        \"Edison failed 10,000 times before he made the electric light. Do not be discouraged if you fail a few times.\",\n        \"We see things not as they are, but as we are. Our perception is shaped by our previous experiences.\",\n        \"Life is movement-we breathe, we eat, we walk, we move!\",\n        \"It is the mark of an educated mind to be able to entertain a thought without accepting it.\",\n        \"Don't wait. The time will never be just right.\",\n        \"Those who dream by day are cognizant of many things which escape those who dream only by night.\",\n        \"No act of kindness, no matter how small, is ever wasted.\",\n        \"The place to improve the world is first in one's own heart and head and hands.\",\n        \"Anything you really want, you can attain, if you really go after it.\",\n        \"It isn't what happens to us that causes us to suffer; it's what we say to ourselves about what happens.\",\n        \"We should all be thankful for those people who rekindle the inner spirit.\",\n        \"Fear grows in darkness; if you think theres a bogeyman around, turn on the light.\",\n        \"We never understand how little we need in this world until we know the loss of it.\",\n        \"All the world is a stage, And all the men and women merely players.They have their exits and entrances; Each man in his time plays many parts.\",\n        \"It is only possible to live happily ever after on a day to day basis.\",\n        \"Friendship with oneself is all important because without it one cannot be friends with anybody else in the world.\",\n        \"Neither genius, fame, nor love show the greatness of the soul. Only kindness can do that.\",\n        \"Action may not always bring happiness, but there is no happiness without action.\",\n        \"History will be kind to me for I intend to write it.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"Much wisdom often goes with fewer words.\",\n        \"I want you to be everything that's you, deep at the center of your being.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"And as we let our own light shine, we unconsciously give other people permission to do the same.\",\n        \"Don't believe what your eyes are telling you. All they show is limitation. Look with your understanding, find out what you already know, and you'll see the way to fly.\",\n        \"Arriving at one point is the starting point to another.\",\n        \"Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.\",\n        \"Always tell the truth. That way, you don't have to remember what you said.\",\n        \"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\",\n        \"In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time.\",\n        \"Kind words can be short and easy to speak but their echoes are truly endless.\",\n        \"All I can say about life is, Oh God, enjoy it!\",\n        \"Learn to listen. Opportunity could be knocking at your door very softly.\",\n        \"First comes thought; then organization of that thought, into ideas and plans; then transformation of those plans into reality. The beginning, as you will observe, is in your imagination.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"The path to success is to take massive, determined action.\",\n        \"Mediocrity knows nothing higher than itself, but talent instantly recognizes genius.\",\n        \"Today is the tomorrow you worried about yesterday.\",\n        \"The greatest discovery of our generation is that human beings can alter their lives by altering their attitudes of mind. As you think, so shall you be.\",\n        \"The possibilities are numerous once we decide to act and not react.\",\n        \"One who gains strength by overcoming obstacles possesses the only strength which can overcome adversity.\",\n        \"One who gains strength by overcoming obstacles possesses the only strength which can overcome adversity.\",\n        \"The final proof of greatness lies in being able to endure criticism without resentment.\",\n        \"All seasons are beautiful for the person who carries happiness within.\",\n        \"The first duty of a human being is to assume the right functional relationship to society more briefly, to find your real job, and do it.\",\n        \"The foolish man seeks happiness in the distance; the wise grows it under his feet.\",\n        \"Doing nothing is better than being busy doing nothing.\",\n        \"No man was ever wise by chance.\",\n        \"He that is giddy thinks the world turns round.\",\n        \"Experience is not what happens to a man. It is what a man does with what happens to him.\",\n        \"You're never a loser until you quit trying.\",\n        \"When we feel love and kindness toward others, it not only makes others feel loved and cared for, but it helps us also to develop inner happiness and peace.\",\n        \"It's important to know that words don't move mountains. Work, exacting work moves mountains.\",\n        \"We must embrace pain and burn it as fuel for our journey.\",\n        \"The heart has its reasons which reason knows not of.\",\n        \"Don't smother each other. No one can grow in the shade.\",\n        \"Example has more followers than reason.\",\n        \"Difficulties are things that show a person what they are.\",\n        \"Let us always meet each other with smile, for the smile is the beginning of love.\",\n        \"One who gains strength by overcoming obstacles possesses the only strength which can overcome adversity.\",\n        \"Blessed is the man who expects nothing, for he shall never be disappointed.\",\n        \"We are all faced with a series of great opportunities brilliantly disguised as impossible situations.\",\n        \"You get peace of mind not by thinking about it or imagining it, but by quietening and relaxing the restless mind.\",\n        \"The first duty of a human being is to assume the right functional relationship to society more briefly, to find your real job, and do it.\",\n        \"Constant kindness can accomplish much. As the sun makes ice melt, kindness causes misunderstanding, mistrust, and hostility to evaporate.\",\n        \"The important thing is this: to be able at any moment to sacrifice what we are for what we could become.\",\n        \"Happiness is not in the mere possession of money; it lies in the joy of achievement, in the thrill of creative effort.\",\n        \"When we seek to discover the best in others, we somehow bring out the best in ourselves.\",\n        \"Silence is a fence around wisdom.\",\n        \"When you don't know what you believe, everything becomes an argument. Everything is debatable. But when you stand for something, decisions are obvious.\",\n        \"Edison failed 10,000 times before he made the electric light. Do not be discouraged if you fail a few times.\",\n        \"Most powerful is he who has himself in his own power.\",\n        \"Be not angry that you cannot make others as you wish them to be, since you cannot make yourself as you wish to be.\",\n        \"To see things in the seed, that is genius.\",\n        \"We may encounter many defeats but we must not be defeated.\",\n        \"By nature man hates change; seldom will he quit his old home till it has actually fallen around his ears.\",\n        \"Miracles come in moments. Be ready and willing.\",\n        \"The wisest men follow their own direction.\",\n        \"Don't wait. The time will never be just right.\",\n        \"There never was a good knife made of bad steel.\",\n        \"One must be fond of people and trust them if one is not to make a mess of life.\",\n        \"To be tested is good. The challenged life may be the best therapist.\",\n        \"If one advances confidently in the direction of his dream, and endeavours to live the life which he had imagines, he will meet with a success unexpected in common hours.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"Silence is deep as Eternity, Speech is shallow as Time.\",\n        \"To know your purpose is to live a life of direction, and in that direction is found peace and tranquillity.\",\n        \"Our deepest wishes are whispers of our authentic selves. We must learn to respect them. We must learn to listen.\",\n        \"If one is estranged from oneself, then one is estranged from others too. If one is out of touch with oneself, then one cannot touch others.\",\n        \"Nothing great was ever achieved without enthusiasm.\",\n        \"Life is a progress, and not a station.\",\n        \"Courage is what it takes to stand up and speak; courage is also what it takes to sit down and listen.\",\n        \"Yesterday I dared to struggle. Today I dare to win.\",\n        \"History will be kind to me for I intend to write it.\",\n        \"Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.\",\n        \"Those who cannot learn from history are doomed to repeat it.\",\n        \"Every adversity, every failure, every heartache carries with it the seed of an equal or greater benefit.\",\n        \"Life is a process. We are a process. The universe is a process.\",\n        \"Spring is a time for rebirth and the fulfilment of new life.\",\n        \"The most complicated achievements of thought are possible without the assistance of consciousness.\",\n        \"He who talks more is sooner exhausted.\",\n        \"Simply put, you believer that things or people make you unhappy, but this is not accurate. You make yourself unhappy.\",\n        \"Your sacred space is where you can find yourself again and again.\",\n        \"Courage is going from failure to failure without losing enthusiasm.\",\n        \"The world is round and the place which may seem like the end may also be the beginning.\",\n        \"Things that were hard to bear are sweet to remember.\",\n        \"We can do no great things, only small things with great love.\",\n        \"It is the greatest of all mistakes to do nothing because you can only do little do what you can.\",\n        \"Your outlook on life is a direct reflection on how much you like yourself.\",\n        \"The truest wisdom is a resolute determination.\",\n        \"To speak gratitude is courteous and pleasant, to enact gratitude is generous and noble, but to live gratitude is to touch Heaven.\",\n        \"All is flux; nothing stays still.\",\n        \"When anger use your energy to do something productive.\",\n        \"I never worry about action, but only inaction.\",\n        \"The height of your accomplishments will equal the depth of your convictions.\",\n        \"To enjoy life, we must touch much of it lightly.\",\n        \"The Creator has not given you a longing to do that which you have no ability to do.\",\n        \"I walk slowly, but I never walk backward.\",\n        \"To succeed, we must first believe that we can.\",\n        \"The Creator has not given you a longing to do that which you have no ability to do.\",\n        \"There surely is in human nature an inherent propensity to extract all the good out of all the evil.\",\n        \"Begin, be bold, and venture to be wise.\",\n        \"Mediocrity knows nothing higher than itself, but talent instantly recognizes genius.\",\n        \"When you judge another, you do not define them, you define yourself.\",\n        \"You really can change the world if you care enough.\",\n        \"The dream was always running ahead of me. To catch up, to live for a moment in unison with it, that was the miracle.\",\n        \"Love is just a word until someone comes along and gives it meaning.\",\n        \"We shall never know all the good that a simple smile can do.\",\n        \"By believing passionately in something that does not yet exist, we create it.\",\n        \"I love my past. I love my present. I'm not ashamed of what Ive had, and I'm not sad because I have it no longer.\",\n        \"Until you make peace with who you are, you will never be content with what you have.\",\n        \"Translation is the paradigm, the exemplar of all writing. It is translation that demonstrates most vividly the yearning for transformation that underlies every act involving speech, that supremely human gift.\",\n        \"Short words are best and the old words when short are best of all.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"Strong people make as many mistakes as weak people. Difference is that strong people admit their mistakes, laugh at them, learn from them. That is how they become strong.\",\n        \"There is no way to prosperity, prosperity is the way.\",\n        \"Know that although in the eternal scheme of things you are small, you are also unique and irreplaceable, as are all your fellow humans everywhere in the world.\",\n        \"Count your joys instead of your woes. Count your friends instead of your foes.\",\n        \"Without faith, nothing is possible. With it, nothing is impossible.\",\n        \"It is only possible to live happily ever after on a day to day basis.\",\n        \"The undertaking of a new action brings new strength.\",\n        \"Take rest; a field that has rested gives a bountiful crop.\",\n        \"People grow through experience if they meet life honestly and courageously. This is how character is built.\",\n        \"The minute you settle for less than you deserve, you get even less than you settled for.\",\n        \"Wicked people are always surprised to find ability in those that are good.\",\n        \"We never live; we are always in the expectation of living.\",\n        \"If I am not for myself, who will be for me? If I am not for others, what am I? And if not now, when?\",\n        \"Keep true to the dreams of thy youth.\",\n        \"Some people think it's holding that makes one strong sometimes it's letting go.\",\n        \"Nobody can do everything, but everybody can do something.\",\n        \"We can do no great things, only small things with great love.\",\n        \"In all things of nature there is something of the marvellous.\",\n        \"Very little is needed to make a happy life; it is all within yourself, in your way of thinking.\",\n        \"Complaining doesn't change a thing only taking action does.\",\n        \"It does not matter how slowly you go as long as you do not stop.\",\n        \"There is only one corner of the universe you can be certain of improving, and that's your own self.\",\n        \"To be tested is good. The challenged life may be the best therapist.\",\n        \"Take time to deliberate, but when the time for action has arrived, stop thinking and go in.\",\n        \"If it is not right do not do it; if it is not true do not say it.\",\n        \"Kind words will unlock an iron door.\",\n        \"Wisdom is the reward you get for a lifetime of listening when you'd have preferred to talk.\",\n        \"There is nothing in a caterpillar that tells you it's going to be a butterfly.\",\n        \"Slow down and enjoy life. It's not only the scenery you miss by going too fast you also miss the sense of where you are going and why.\",\n        \"Without this playing with fantasy no creative work has ever yet come to birth. The debt we owe to the play of the imagination is incalculable.\",\n        \"Respect should be earned by actions, and not acquired by years.\",\n        \"While we stop to think, we often miss our opportunity.\",\n        \"Do not be too timid and squeamish about your reactions. All life is an experiment. The more experiments you make the better.\",\n        \"All difficult things have their origin in that which is easy, and great things in that which is small.\",\n        \"Be not angry that you cannot make others as you wish them to be, since you cannot make yourself as you wish to be.\",\n        \"You have power over your mind not outside events. Realize this, and you will find strength.\",\n        \"Difficulties are things that show a person what they are.\",\n        \"If you love someone, set them free. If they come back they're yours; if they don't they never were.\",\n        \"Nothing could be worse than the fear that one had given up too soon, and left one unexpended effort that might have saved the world.\",\n        \"You do not become good by trying to be good, but by finding the goodness that is already within you.\",\n        \"The mind is everything. What you think you become.\",\n        \"You only lose what you cling to.\",\n        \"Don't turn away from possible futures before you're certain you don't have anything to learn from them.\",\n        \"You cannot step twice into the same river, for other waters are continually flowing in.\",\n        \"The only limit to our realization of tomorrow will be our doubts of today.\",\n        \"You give before you get.\",\n        \"The smallest flower is a thought, a life answering to some feature of the Great Whole, of whom they have a persistent intuition.\",\n        \"The two most powerful warriors are patience and time.\",\n        \"Forgiveness does not change the past, but it does enlarge the future.\",\n        \"They can conquer who believe they can.\",\n        \"The only limit to your impact is your imagination and commitment.\",\n        \"The future is an opaque mirror. Anyone who tries to look into it sees nothing but the dim outlines of an old and worried face.\",\n        \"The harder you fall, the higher you bounce.\",\n        \"The best thing about the future is that it only comes one day at a time.\",\n        \"Let the beauty of what you love be what you do.\",\n        \"Never miss an opportunity to make others happy, even if you have to leave them alone in order to do it.\",\n        \"Ideas are the beginning points of all fortunes.\",\n        \"The most complicated achievements of thought are possible without the assistance of consciousness.\",\n        \"It is the greatest of all mistakes to do nothing because you can only do little do what you can.\",\n        \"The really unhappy person is the one who leaves undone what they can do, and starts doing what they don't understand; no wonder they come to grief.\",\n        \"If you seek truth you will not seek victory by dishonourable means, and if you find truth you will become invincible.\",\n        \"Nothing is a waste of time if you use the experience wisely.\",\n        \"Who sows virtue reaps honour.\",\n        \"Obstacles are those things you see when you take your eyes off the goal.\",\n        \"Don't let what you can't do stop you from doing what you can do.\",\n        \"From wonder into wonder existence opens.\",\n        \"Great is the art of beginning, but greater is the art of ending.\",\n        \"Never idealize others. They will never live up to your expectations.\",\n        \"Neither a lofty degree of intelligence nor imagination nor both together go to the making of genius. Love, love, love, that is the soul of genius.\",\n        \"Keep true to the dreams of thy youth.\",\n        \"Work while you have the light. You are responsible for the talent that has been entrusted to you.\",\n        \"Set your goals high, and don't stop till you get there.\",\n        \"We must not say every mistake is a foolish one.\",\n        \"Do not overrate what you have received, nor envy others. He who envies others does not obtain peace of mind.\",\n        \"From wonder into wonder existence opens.\",\n        \"I believe that we are solely responsible for our choices, and we have to accept the consequences of every deed, word, and thought throughout our lifetime.\",\n        \"Nobody can do everything, but everybody can do something.\",\n        \"Every day may not be good, but there's something good in every day.\",\n        \"You are always free to change your mind and choose a different future, or a different past.\",\n        \"Life is really simple, but we insist on making it complicated.\",\n        \"The first requisite for success is the ability to apply your physical and mental energies to one problem incessantly without growing weary.\",\n        \"We aim above the mark to hit the mark.\",\n        \"The cautious seldom err.\",\n        \"When you judge another, you do not define them, you define yourself.\",\n        \"Peace of mind is not the absence of conflict from life, but the ability to cope with it.\",\n        \"What worries you masters you.\",\n        \"What you are is what you have been. What you will be is what you do now.\",\n        \"More powerful than the will to win is the courage to begin.\",\n        \"Time is the most valuable thing a man can spend.\",\n        \"Thats the risk you take if you change: that people you've been involved with won't like the new you. But other people who do will come along.\",\n        \"There are no failures. Just experiences and your reactions to them.\",\n        \"All men who have achieved great things have been great dreamers.\",\n        \"Great talent finds happiness in execution.\",\n        \"When you judge another, you do not define them, you define yourself.\",\n        \"Kind words can be short and easy to speak but their echoes are truly endless.\",\n        \"Do not wait for leaders; do it alone, person to person.\",\n        \"Your big opportunity may be right where you are now.\",\n        \"The happiness that is genuinely satisfying is accompanied by the fullest exercise of our faculties and the fullest realization of the world in which we live.\",\n        \"Men in general judge more from appearances than from reality. All men have eyes, but few have the gift of penetration.\",\n        \"My mama always said: life's like a box of chocolate you never know what you gonna get.\",\n        \"Work for something because it is good, not just because it stands a chance to succeed.\",\n        \"This is the final test of a gentleman: his respect for those who can be of no possible value to him.\",\n        \"To enjoy life, we must touch much of it lightly.\",\n        \"To dream of the person you would like to be is to waste the person you are.\",\n        \"If you correct your mind, the rest of your life will fall into place.\",\n        \"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.\",\n        \"Something opens our wings. Something makes boredom and hurt disappear. Someone fills the cup in front of us: We taste only sacredness.\",\n        \"Love is the flower you've got to let grow.\",\n        \"There is no way to prosperity, prosperity is the way.\",\n        \"So is cheerfulness, or a good temper, the more it is spent, the more remains.\",\n        \"People who say it cannot be done should not interrupt those who are doing it.\",\n        \"Never be afraid to try, remember... Amateurs built the ark, Professionals built the Titanic.\",\n        \"Whatever we expect with confidence becomes our own self-fulfilling prophecy.\",\n        \"Setting goals is the first step in turning the invisible into the visible.\",\n        \"To accomplish great things, we must not only act, but also dream; not only plan, but also believe.\",\n        \"Why worry about tomorrow, when today is all we have?\",\n        \"You get peace of mind not by thinking about it or imagining it, but by quietening and relaxing the restless mind.\",\n        \"Put your future in good hands your own.\",\n        \"Life shrinks or expands in proportion to one's courage.\",\n        \"When it is obvious that the goals cannot be reached, don't adjust the goals, adjust the action steps.\",\n        \"Fear of failure is one attitude that will keep you at the same point in your life.\",\n        \"You were not born a winner, and you were not born a loser. You are what you make yourself be.\",\n        \"Love is just a word until someone comes along and gives it meaning.\",\n        \"We learn what we have said from those who listen to our speaking.\",\n        \"Go put your creed into the deed. Nor speak with double tongue.\",\n        \"He who conquers others is strong; He who conquers himself is mighty.\",\n        \"All know the way; few actually walk it.\",\n        \"Risk more than others think is safe. Care more than others think is wise. Dream more than others think is practical.Expect more than others think is possible.\",\n        \"Begin at once to live and count each separate day as a separate life.\",\n        \"The least of things with a meaning is worth more in life than the greatest of things without it.\",\n        \"The pessimist sees difficulty in every opportunity. The optimist sees the opportunity in every difficulty.\",\n        \"You must train your intuition you must trust the small voice inside you which tells you exactly what to say, what to decide.\",\n        \"When performance exceeds ambition, the overlap is called success.\",\n        \"It is better to have enough ideas for some of them to be wrong, than to be always right by having no ideas at all.\",\n        \"Learning without reflection is a waste, reflection without learning is dangerous.\",\n        \"The best and most beautiful things in the world cannot be seen, nor touched... but are felt in the heart.\",\n        \"When you come to the end of your rope, tie a knot and hang on.\",\n        \"Begin at once to live and count each separate day as a separate life.\",\n        \"Fear is a darkroom where negatives develop.\",\n        \"Those that know, do. Those that understand, teach.\",\n        \"You are special, you are unique, you are the best!\",\n        \"Constant kindness can accomplish much. As the sun makes ice melt, kindness causes misunderstanding, mistrust, and hostility to evaporate.\",\n        \"We must learn our limits. We are all something, but none of us are everything.\",\n        \"There are two primary choices in life: to accept conditions as they exist, or accept the responsibility for changing them.\",\n        \"For every failure, there's an alternative course of action. You just have to find it. When you come to a roadblock, take a detour.\",\n        \"It's not what happens to you, but how you react to it that matters.\",\n        \"Never miss an opportunity to make others happy, even if you have to leave them alone in order to do it.\",\n        \"When you judge another, you do not define them, you define yourself.\",\n        \"Don't believe what your eyes are telling you. All they show is limitation. Look with your understanding, find out what you already know, and you'll see the way to fly.\",\n        \"An invincible determination can accomplish almost anything and in this lies the great distinction between great men and little men.\",\n        \"Silence is the true friend that never betrays.\",\n        \"Courage is going from failure to failure without losing enthusiasm.\",\n        \"We cannot solve our problems with the same thinking we used when we created them.\",\n        \"I believe that every person is born with talent.\",\n        \"If you can't feed a hundred people, then feed just one.\",\n        \"We are what we repeatedly do. Excellence, then, is not an act but a habit.\",\n        \"I'm not in this world to live up to your expectations and you're not in this world to live up to mine.\",\n        \"Rather than wishing for change, you first must be prepared to change.\",\n        \"If you would take, you must first give, this is the beginning of intelligence.\",\n        \"Someone is special only if you tell them.\",\n        \"Worry often gives a small thing a big shadow.\",\n        \"If you want a thing done well, do it yourself.\",\n        \"Kindness is the golden chain by which society is bound together.\",\n        \"Though no one can go back and make a brand new start, anyone can start from not and make a brand new ending.\",\n        \"Nature gave us one tongue and two ears so we could hear twice as much as we speak.\",\n        \"To be happy is to be able to become aware of oneself without fright.\",\n        \"Doing what you love is the cornerstone of having abundance in your life.\",\n        \"If one does not know to which port is sailing, no wind is favorable.\",\n        \"Most of our obstacles would melt away if, instead of cowering before them, we should make up our minds to walk boldly through them.\",\n        \"Adversity isn't set against you to fail; adversity is a way to build your character so that you can succeed over and over again through perseverance.\",\n        \"Think how hard physics would be if particles could think.\",\n        \"You must train your intuition you must trust the small voice inside you which tells you exactly what to say, what to decide.\",\n        \"When you realize how perfect everything is you will tilt your head back and laugh at the sky.\",\n        \"Love is the master key that opens the gates of happiness.\",\n        \"Yesterday is history. Tomorrow is a mystery. And today? Today is a gift that's why they call it the present.\",\n        \"It is never too late to be what you might have been.\",\n        \"From wonder into wonder existence opens.\",\n        \"You can be what you want to be. You have the power within and we will help you always.\",\n        \"When people are like each other they tend to like each other.\",\n        \"All our knowledge begins with the senses, proceeds then to the understanding, and ends with reason. There is nothing higher than reason.\",\n        \"Men are disturbed not by things, but by the view which they take of them.\",\n        \"Be yourself; everyone else is already taken.\",\n        \"Freedom is what you do with what's been done to you.\",\n        \"Those who cannot learn from history are doomed to repeat it.\",\n        \"You will not be punished for your anger, you will be punished by your anger.\",\n        \"Be faithful in small things because it is in them that your strength lies.\",\n        \"Time you enjoyed wasting was not wasted.\",\n        \"I never worry about action, but only inaction.\",\n        \"To fly, we have to have resistance.\",\n        \"If the single man plant himself indomitably on his instincts, and there abide, the huge world will come round to him.\",\n        \"One today is worth two tomorrows.\",\n        \"The energy of the mind is the essence of life.\",\n        \"Wisdom is the reward you get for a lifetime of listening when you'd have preferred to talk.\",\n        \"Victory belongs to the most persevering.\",\n        \"Remember always that you not only have the right to be an individual, you have an obligation to be one.\",\n        \"Someone is special only if you tell them.\",\n        \"Three things cannot be long hidden: the sun, the moon, and the truth.\",\n        \"A little more persistence, a little more effort, and what seemed hopeless failure may turn to glorious success.\",\n        \"If I am not for myself, who will be for me? If I am not for others, what am I? And if not now, when?\",\n        \"Always tell the truth. That way, you don't have to remember what you said.\",\n        \"The most dangerous way to lose time is not to spend it having fun, but to spend it doing fake work. When you spend time having fun, you know you're being self-indulgent.\",\n        \"The only real failure in life is not to be true to the best one knows.\",\n        \"Numberless are the worlds wonders, but none more wonderful than man.\",\n        \"Man is not sum of what he has already, but rather the sum of what he does not yet have, of what he could have.\",\n        \"I can't change the direction of the wind, but I can adjust my sails to always reach my destination.\",\n        \"The more light you allow within you, the brighter the world you live in will be.\",\n        \"Don't judge each day by the harvest you reap but by the seeds that you plant.\",\n        \"On every thorn, delightful wisdom grows, In every rill a sweet instruction flows.\",\n        \"By going beyond your own problems and taking care of others, you gain inner strength, self-confidence, courage, and a greater sense of calm.\",\n        \"He that respects himself is safe from others; he wears a coat of mail that none can pierce.\",\n        \"Study the past, if you would divine the future.\",\n        \"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\",\n        \"It is not the mistake that has the most power, instead, it is learning from the mistake to advance your own attributes.\",\n        \"An ant on the move does more than a dozing ox\",\n        \"I have often regretted my speech, never my silence.\",\n        \"The greatest obstacle to connecting with our joy is resentment.\",\n        \"A prudent question is one half of wisdom.\",\n        \"It is the mark of an educated mind to be able to entertain a thought without accepting it.\",\n        \"Life is a progress, and not a station.\",\n        \"We read the world wrong and say that it deceives us.\",\n        \"Wrinkles should merely indicate where smiles have been.\",\n        \"I love my past. I love my present. I'm not ashamed of what Ive had, and I'm not sad because I have it no longer.\",\n        \"To dare is to lose ones footing momentarily. To not dare is to lose oneself.\",\n        \"Forgiveness is choosing to love. It is the first skill of self-giving love.\",\n        \"Autumn is a second spring when every leaf is a flower.\",\n        \"Good instincts usually tell you what to do long before your head has figured it out.\",\n        \"There is never enough time to do everything, but there is always enough time to do the most important thing.\",\n        \"A wise man can learn more from a foolish question than a fool can learn from a wise answer.\",\n        \"Living at risk is jumping off the cliff and building your wings on the way down.\",\n        \"No man can succeed in a line of endeavor which he does not like.\",\n        \"It is only with the heart that one can see rightly, what is essential is invisible to the eye.\",\n        \"If you'll not settle for anything less than your best, you will be amazed at what you can accomplish in your lives.\",\n        \"We are Divine enough to ask and we are important enough to receive.\",\n        \"No one can make you feel inferior without your consent.\",\n        \"Dreams come true. Without that possibility, nature would not incite us to have them.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"Only those who dare to fail greatly can ever achieve greatly.\",\n        \"If you kick a stone in anger, you'll hurt your own foot.\",\n        \"Begin at once to live and count each separate day as a separate life.\",\n        \"The beginning of knowledge is the discovery of something we do not understand.\",\n        \"Excellence is to do a common thing in an uncommon way.\",\n        \"If one is lucky, a solitary fantasy can totally transform one million realities.\",\n        \"A man may fulfil the object of his existence by asking a question he cannot answer, and attempting a task he cannot achieve.\",\n        \"Do not waste yourself in rejection, nor bark against the bad, but chant the beauty of the good.\",\n        \"He who obtains has little. He who scatters has much.\",\n        \"In the long run we get no more than we have been willing to risk giving.\",\n        \"Fears are nothing more than a state of mind.\",\n        \"Anticipate the difficult by managing the easy.\",\n        \"You learn to speak by speaking, to study by studying, to run by running, to work by working; in just the same way, you learn to love by loving.\",\n        \"Happiness does not come about only due to external circumstances; it mainly derives from inner attitudes.\",\n        \"If you let go a little, you will have a little peace. If you let go a lot, you will have a lot of peace.\",\n        \"No one can make you feel inferior without your consent.\",\n        \"Everyone smiles in the same language.\",\n        \"Kind words can be short and easy to speak but their echoes are truly endless.\",\n        \"If you think you can, you can. And if you think you can't, you're right.\",\n        \"Never apologize for showing feelings. When you do so, you apologize for the truth.\",\n        \"Faith in oneself is the best and safest course.\",\n        \"Let go of your attachment to being right, and suddenly your mind is more open. You're able to benefit from the unique viewpoints of others, without being crippled by your own judgement.\",\n        \"Every man is a volume if you know how to read him.\",\n        \"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.\",\n        \"We have committed the Golden Rule to memory; let us now commit it to life.\",\n        \"Love doesn't make the world go round, love is what makes the ride worthwhile.\",\n        \"Maxim for life: You get treated in life the way you teach people to treat you.\",\n        \"There is a way that nature speaks, that land speaks. Most of the time we are simply not patient enough, quiet enough, to pay attention to the story.\",\n        \"Dreams come true. Without that possibility, nature would not incite us to have them.\",\n        \"No person is your friend who demands your silence, or denies your right to grow.\",\n        \"Time is the wisest counsellor of all.\",\n        \"I find hope in the darkest of days, and focus in the brightest. I do not judge the universe.\",\n        \"Once we accept our limits, we go beyond them.\",\n        \"If you let go a little, you will have a little peace. If you let go a lot, you will have a lot of peace.\",\n        \"However many holy words you read, however many you speak, what good will they do you if you do not act on upon them?\",\n        \"The mark of your ignorance is the depth of your belief in injustice and tragedy. What the caterpillar calls the end of the world, the Master calls the butterfly.\",\n        \"Take heed: you do not find what you do not seek.\",\n        \"Your friends will know you better in the first minute you meet than your acquaintances will know you in a thousand years.\",\n        \"We are all something, but none of us are everything.\",\n        \"We are all faced with a series of great opportunities brilliantly disguised as impossible situations.\",\n        \"Growth itself contains the germ of happiness.\",\n        \"We are the leaves of one branch, the drops of one sea, the flowers of one garden.\",\n        \"Nature is a mutable cloud which is always and never the same.\",\n        \"There are two ways to slide easily through life: to believe everything or to doubt everything; both ways save us from thinking.\",\n        \"Today is the tomorrow we worried about yesterday.\",\n        \"Gratitude is not only the greatest of virtues, but the paren't of all the others.\",\n        \"A person who never made a mistake never tried anything new.\",\n        \"Reviewing what you have learned and learning anew, you are fit to be a teacher.\",\n        \"Before you can inspire with emotion, you must be swamped with it yourself. Before you can move their tears, your own must flow. To convince them, you must yourself believe.\",\n        \"Kind words will unlock an iron door.\",\n        \"Three things cannot be long hidden: the sun, the moon, and the truth.\",\n        \"What lies behind us and what lies before us are small matters compared to what lies within us.\",\n        \"If we are facing in the right direction, all we have to do is keep on walking.\",\n        \"The first requisite for success is the ability to apply your physical and mental energies to one problem incessantly without growing weary.\",\n        \"I am not afraid of tomorrow, for I have seen yesterday and I love today.\",\n        \"The greatest antidote to insecurity and the sense of fear is compassion it brings one back to the basis of one's inner strength\",\n        \"Sometimes the biggest act of courage is a small one.\",\n        \"Neither genius, fame, nor love show the greatness of the soul. Only kindness can do that.\",\n        \"When we seek to discover the best in others, we somehow bring out the best in ourselves.\",\n        \"The truth which has made us free will in the end make us glad also.\",\n        \"Ideals are an imaginative understanding of that which is desirable in that which is possible.\",\n        \"I cannot always control what goes on outside. But I can always control what goes on inside.\",\n        \"To succeed, we must first believe that we can.\",\n        \"Learn wisdom from the ways of a seedling. A seedling which is never hardened off through stressful situations will never become a strong productive plant.\",\n        \"It is only with the heart that one can see rightly, what is essential is invisible to the eye.\",\n        \"We are Divine enough to ask and we are important enough to receive.\",\n        \"All know the way; few actually walk it.\",\n        \"Aerodynamically the bumblebee shouldn't be able to fly, but the bumblebee doesn't know that so it goes on flying anyway.\",\n        \"The simplest things are often the truest.\",\n        \"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\",\n        \"The truth you believe and cling to makes you unavailable to hear anything new.\",\n        \"He who controls others may be powerful, but he who has mastered himself is mightier still.\",\n        \"Open minds lead to open doors.\",\n        \"If you want a thing done well, do it yourself.\",\n        \"Time is not a measure the length of a day or month or year but more a measure of what you have accomplished.\",\n        \"I want you to be everything that's you, deep at the center of your being.\",\n        \"Time you enjoy wasting, was not wasted.\",\n        \"All children are artists. The problem is how to remain an artist once he grows up.\",\n        \"Never be afraid to try, remember... Amateurs built the ark, Professionals built the Titanic.\",\n        \"Life is a learning experience, only if you learn.\",\n        \"To know oneself is to study oneself in action with another person.\",\n        \"We shall never know all the good that a simple smile can do.\",\n        \"A successful person is one who can lay a firm foundation with the bricks that others throw at him or her.\",\n        \"We should all be thankful for those people who rekindle the inner spirit.\",\n        \"What we see is mainly what we look for.\",\n        \"Never tell me the sky is the limit when there are footprints on the moon.\",\n        \"We shall never know all the good that a simple smile can do.\",\n        \"In skating over thin ice our safety is in our speed.\",\n        \"Open minds lead to open doors.\",\n        \"There never was a good knife made of bad steel.\",\n        \"I am not bothered by the fact that I am unknown. I am bothered when I do not know others.\",\n        \"In the depth of winter, I finally learned that there was within me an invincible summer.\",\n        \"He who controls others may be powerful, but he who has mastered himself is mightier still.\",\n        \"Whatever we expect with confidence becomes our own self-fulfilling prophecy.\",\n        \"Growth itself contains the germ of happiness.\",\n        \"Wisdom begins in wonder.\",\n        \"To choose what is difficult all ones days, as if it were easy, that is faith.\",\n        \"If you don't like something, change it. If you can't change it, change your attitude.\",\n        \"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it.\",\n        \"The best cure for the body is a quiet mind.\",\n        \"To be aware of a single shortcoming in oneself is more useful than to be aware of a thousand in someone else.\",\n        \"Knowing is not enough; we must apply!\",\n        \"Notice that the stiffest tree is most easily cracked, while the bamboo or willow survives by bending with the wind.\",\n        \"You teach best what you most need to learn.\",\n        \"The fox has many tricks. The hedgehog has but one. But that is the best of all.\",\n        \"Learning without reflection is a waste, reflection without learning is dangerous.\",\n        \"Every great advance in science has issued from a new audacity of the imagination.\",\n        \"Accept the things to which fate binds you, and love the people with whom fate brings you together, but do so with all your heart.\",\n        \"A man is great by deeds, not by birth.\",\n        \"The road leading to a goal does not separate you from the destination; it is essentially a part of it.\",\n        \"The superior man acts before he speaks, and afterwards speaks according to his action.\",\n        \"Anybody can make history. Only a great man can write it.\",\n        \"I have just three things to teach: simplicity, patience, compassion. These three are your greatest treasures.\",\n        \"Happiness is as a butterfly which, when pursued, is always beyond our grasp, but which if you will sit down quietly, may alight upon you.\",\n        \"By letting it go it all gets done. The world is won by those who let it go. But when you try and try. The world is beyond the winning.\",\n        \"Think like a man of action; act like a man of thought.\",\n        \"We shall never know all the good that a simple smile can do.\",\n        \"He who lives in harmony with himself lives in harmony with the world.\",\n        \"Your destiny isn't just fate; it is how you use your own developed abilities to get what you want.\",\n        \"If you have knowledge, let others light their candles in it.\",\n        \"Fear grows in darkness; if you think theres a bogeyman around, turn on the light.\",\n        \"The world makes way for the man who knows where he is going.\",\n        \"Parents can only give good advice or put them on the right paths, but the final forming of a persons character lies in their own hands.\",\n        \"Kindness is the golden chain by which society is bound together.\",\n        \"Money was never a big motivation for me, except as a way to keep score. The real excitement is playing the game.\",\n        \"Kind words will unlock an iron door.\",\n        \"I never worry about action, but only inaction.\",\n        \"May our hearts garden of awakening bloom with hundreds of flowers.\",\n        \"To study and not think is a waste. To think and not study is dangerous.\",\n        \"Better be ignorant of a matter than half know it.\",\n        \"The greatest mistake you can make in life is to be continually fearing you will make one.\",\n        \"The first duty of a human being is to assume the right functional relationship to society more briefly, to find your real job, and do it.\",\n        \"When one tugs at a single thing in nature, he finds it attached to the rest of the world.\",\n        \"In a controversy the instant we feel anger we have already ceased striving for the truth, and have begun striving for ourselves.\",\n        \"Ignorant men don't know what good they hold in their hands until they've flung it away.\",\n        \"Do not expect the world to look bright, if you habitually wear gray-brown glasses.\",\n        \"Sometimes the biggest act of courage is a small one.\",\n        \"Four steps to achievement: Plan purposefully. Prepare prayerfully. Proceed positively. Pursue persistently.\",\n        \"If you'll not settle for anything less than your best, you will be amazed at what you can accomplish in your lives.\",\n        \"You don't drown by falling in water. You drown by staying there.\",\n        \"The spirit, the will to win, and the will to excel, are the things that endure. These qualities are so much more important than the events that occur.\",\n        \"An idea that is developed and put into action is more important than an idea that exists only as an idea.\",\n        \"Kindness is the language which the deaf can hear and the blind can see.\",\n        \"If you want things to be different, perhaps the answer is to become different yourself.\",\n        \"Good actions give strength to ourselves and inspire good actions in others.\",\n        \"Act as if what you do makes a difference. It does.\",\n        \"Quality is never an accident; it is always the result of intelligent effort.\",\n        \"Trust yourself. You know more than you think you do.\",\n        \"Let us revere, let us worship, but erect and open-eyed, the highest, not the lowest; the future, not the past!\",\n        \"Your vision will become clear only when you look into your heart. Who looks outside, dreams. Who looks inside, awakens.\",\n        \"Ability will never catch up with the demand for it.\",\n        \"There is never enough time to do everything, but there is always enough time to do the most important thing.\",\n        \"Argue for your limitations, and sure enough theyre yours.\",\n        \"The greatest remedy for anger is delay.\",\n        \"In a controversy the instant we feel anger we have already ceased striving for the truth, and have begun striving for ourselves.\",\n        \"Imagination is the highest kite one can fly.\",\n        \"Respect should be earned by actions, and not acquired by years.\",\n        \"If you don't know where you are going, you will probably end up somewhere else.\",\n        \"Our lives are a sum total of the choices we have made.\",\n        \"Well done is better than well said.\",\n        \"To be upset over what you don't have is to waste what you do have.\",\n        \"If you want your life to be more rewarding, you have to change the way you think.\",\n        \"I begin with an idea and then it becomes something else.\",\n        \"Your attitude, not your aptitude, will determine your altitude.\",\n        \"What we think determines what happens to us, so if we want to change our lives, we need to stretch our minds.\",\n        \"Appreciation is the highest form of prayer, for it acknowledges the presence of good wherever you shine the light of your thankful thoughts.\",\n        \"Be sure you put your feet in the right place, then stand firm.\",\n        \"If one is lucky, a solitary fantasy can totally transform one million realities.\",\n        \"Our doubts are traitors and make us lose the good we often might win, by fearing to attempt.\",\n        \"You have to think anyway, so why not think big?\",\n        \"We shall never know all the good that a simple smile can do.\",\n        \"The most important thing is transforming our minds, for a new way of thinking, a new outlook: we should strive to develop a new inner world.\",\n        \"There is not one big cosmic meaning for all, there is only the meaning we each give to our life.\",\n        \"Difficulties are things that show a person what they are.\",\n        \"Very little is needed to make a happy life; it is all within yourself, in your way of thinking.\",\n        \"The world turns aside to let any man pass who knows where he is going.\",\n        \"When you arise in the morning, think of what a precious privilege it is to be alive to breathe, to think, to enjoy, to love.\",\n        \"You must do the things you think you cannot do.\",\n        \"Freedom is not worth having if it does not connote freedom to err.\",\n        \"The moment one gives close attention to anything, even a blade of grass, it becomes a mysterious, awesome, indescribably magnificent world in itself.\",\n        \"Problems are only opportunities with thorns on them.\",\n        \"Pick battles big enough to matter, small enough to win.\",\n        \"If we have a positive mental attitude, then even when surrounded by hostility, we shall not lack inner peace.\",\n        \"In seed time learn, in harvest teach, in winter enjoy.\",\n        \"Talk doesn't cook rice.\",\n        \"You must train your intuition you must trust the small voice inside you which tells you exactly what to say, what to decide.\",\n        \"Put your future in good hands your own.\",\n        \"You can do it if you believe you can!\",\n        \"It is more important to know where you are going than to get there quickly. Do not mistake activity for achievement.\",\n        \"Be thankful when you don't know something for it gives you the opportunity to learn.\",\n        \"Passion creates the desire for more and action fuelled by passion creates a future.\",\n        \"Life's challenges are not supposed to paralyse you, they're supposed to help you discover who you are.\",\n        \"When you are content to be simply yourself and don't compare or compete, everybody will respect you.\",\n        \"Our greatest glory is not in never falling, but in rising every time we fall.\",\n        \"Absence makes the heart grow fonder.\",\n        \"To climb steep hills requires a slow pace at first.\",\n        \"If you spend too much time thinking about a thing, you'll never get it done.\",\n        \"Time is the most valuable thing a man can spend.\",\n        \"The best way out is always through.\",\n        \"He who deliberates fully before taking a step will spend his entire life on one leg.\",\n        \"There is a way that nature speaks, that land speaks. Most of the time we are simply not patient enough, quiet enough, to pay attention to the story.\",\n        \"He who knows himself is enlightened.\",\n        \"Make the most of yourself for that is all there is of you.\",\n        \"Take it easy but take it.\",\n        \"The secret of joy in work is contained in one word excellence. To know how to do something well is to enjoy it.\",\n        \"The only thing to do with good advice is to pass it on. It is never of any use to oneself.\",\n        \"Those who try to do something and fail are infinitely better than those who try nothing and succeed.\",\n        \"All men who have achieved great things have been great dreamers.\",\n        \"Turn your face toward the sun and the shadows will fall behind you.\",\n        \"Goals are the fuel in the furnace of achievement.\",\n        \"A dream is your creative vision for your life in the future. You must break out of your current comfort zone and become comfortable with the unfamiliar and the unknown.\",\n        \"Things turn out best for those who make the best of the way things turn out.\",\n        \"It takes courage to grow up and become who you really are.\",\n        \"It's easier to see the mistakes on someone else's paper.\",\n        \"In the end we retain from our studies only that which we practically apply.\",\n        \"Most smiles are started by another smile.\",\n        \"If you let go a little, you will have a little peace. If you let go a lot, you will have a lot of peace.\",\n        \"A life spent making mistakes is not only more honourable but more useful than a life spent in doing nothing.\",\n        \"Peace of mind is not the absence of conflict from life, but the ability to cope with it.\",\n        \"Opportunity is missed by most because it is dressed in overalls and looks like work.\",\n        \"Most folks are about as happy as they make up their minds to be.\",\n        \"These days people seek knowledge, not wisdom. Knowledge is of the past, wisdom is of the future.\",\n        \"No one has a finer command of language than the person who keeps his mouth shut.\",\n        \"An invincible determination can accomplish almost anything and in this lies the great distinction between great men and little men.\",\n        \"Accept challenges, so that you may feel the exhilaration of victory.\",\n        \"The noblest worship is to make yourself as good and as just as you can.\",\n        \"Formula for success: under promise and over deliver.\",\n        \"Man is equally incapable of seeing the nothingness from which he emerges and the infinity in which he is engulfed.\",\n        \"The most precious gift we can offer anyone is our attention. When mindfulness embraces those we love, they will bloom like flowers.\",\n        \"When you discover your mission, you will feel its demand. It will fill you with enthusiasm and a burning desire to get to work on it.\",\n        \"A beautiful thing is never perfect.\",\n        \"The best thing in every noble dream is the dreamer...\",\n        \"Freedom is the right to live as we wish.\",\n        \"Giving up doesn't always mean you are weak. Sometimes it means that you are strong enough to let go.\",\n        \"Quality means doing it right when no one is looking.\",\n        \"Can miles truly separate you from friends... If you want to be with someone you love, aren't you already there?\",\n        \"Worry gives a small thing a big shadow.\",\n        \"All our knowledge has its origins in our perceptions.\",\n        \"An ant on the move does more than a dozing ox\",\n        \"What matters is the value we've created in our lives, the people we've made happy and how much we've grown as people.\",\n        \"There is nothing so useless as doing efficiently that which should not be done at all.\",\n        \"Chance is always powerful. Let your hook be always cast; in the pool where you least expect it, there will be a fish.\",\n        \"If we look at the world with a love of life, the world will reveal its beauty to us.\",\n        \"Only those who dare to fail greatly can ever achieve greatly.\",\n        \"I want you to be everything that's you, deep at the center of your being.\",\n        \"It does not matter how slowly you go as long as you do not stop.\",\n        \"He is a wise man who does not grieve for the things which he has not, but rejoices for those which he has.\",\n        \"Beware of the half truth. You may have gotten hold of the wrong half.\",\n        \"The simplest things are often the truest.\",\n        \"Everything in life is luck.\",\n        \"Think like a man of action; act like a man of thought.\",\n        \"To be what we are, and to become what we are capable of becoming, is the only end of life.\",\n        \"The longer we dwell on our misfortunes, the greater is their power to harm us.\",\n        \"You have to believe in yourself.\",\n        \"Positive thinking will let you do everything better than negative thinking will.\",\n        \"Let go of your attachment to being right, and suddenly your mind is more open. You're able to benefit from the unique viewpoints of others, without being crippled by your own judgement.\",\n        \"The best thing about the future is that it only comes one day at a time.\",\n        \"Ask yourself the secret of your success. Listen to your answer, and practice it.\",\n        \"Someone remembers, someone cares; your name is whispered in someone's prayers.\",\n        \"Men in general judge more from appearances than from reality. All men have eyes, but few have the gift of penetration.\",\n        \"A subtle thought that is in error may yet give rise to fruitful inquiry that can establish truths of great value.\",\n        \"Do not follow where the path may lead. Go, instead, where there is no path and leave a trail.\",\n        \"My reputation grows with every failure.\",\n        \"Smile, breathe, and go slowly.\",\n        \"Silence is a fence around wisdom.\",\n        \"The less effort, the faster and more powerful you will be.\",\n        \"Do not expect the world to look bright, if you habitually wear gray-brown glasses.\",\n        \"Your worst enemy cannot harm you as much as your own unguarded thoughts.\",\n        \"Every gift from a friend is a wish for your happiness.\",\n        \"The secret of joy in work is contained in one word excellence. To know how to do something well is to enjoy it.\",\n        \"We could never learn to be brave and patient if there were only joy in the world.\",\n        \"I am a man of fixed and unbending principles, the first of which is to be flexible at all times.\",\n        \"Wicked people are always surprised to find ability in those that are good.\",\n        \"You cannot step twice into the same river, for other waters are continually flowing in.\",\n        \"Six essential qualities that are the key to success: Sincerity, personal integrity, humility, courtesy, wisdom, charity.\",\n        \"The doors we open and close each day decide the lives we live.\",\n        \"The time you think you're missing, misses you too.\",\n        \"All truths are easy to understand once they are discovered; the point is to discover them.\",\n        \"Nothing is a waste of time if you use the experience wisely.\",\n        \"Never apologize for showing feelings. When you do so, you apologize for the truth.\",\n        \"I am glad that I paid so little attention to good advice; had I abided by it I might have been saved from some of my most valuable mistakes.\",\n        \"Let us revere, let us worship, but erect and open-eyed, the highest, not the lowest; the future, not the past!\",\n        \"The best way to predict your future is to create it.\",\n        \"Better than a thousand hollow words is one word that brings peace.\",\n        \"The difference between what we do and what we are capable of doing would suffice to solve most of the worlds problems.\",\n        \"Transformation does not start with some one else changing you; transformation is an inner self reworking of what you are now to what you will be.\",\n        \"History will be kind to me for I intend to write it.\",\n        \"As long as your going to be thinking anyway, think big.\",\n        \"Courage is what it takes to stand up and speak; courage is also what it takes to sit down and listen.\",\n        \"Always tell the truth. That way, you don't have to remember what you said.\",\n        \"The minute you settle for less than you deserve, you get even less than you settled for.\",\n        \"Though no one can go back and make a brand new start, anyone can start from not and make a brand new ending.\",\n        \"What we see depends mainly on what we look for.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"All is flux; nothing stays still.\",\n        \"Silence is the true friend that never betrays.\",\n        \"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine.\",\n        \"Excellence is to do a common thing in an uncommon way.\",\n        \"It is better to take many small steps in the right direction than to make a great leap forward only to stumble backward.\",\n        \"The only difference between your abilities and others is the ability to put yourself in their shoes and actually try.\",\n        \"We choose our destiny in the way we treat others.\",\n        \"Each misfortune you encounter will carry in it the seed of tomorrows good luck.\",\n        \"A little knowledge that acts is worth infinitely more than much knowledge that is idle.\",\n        \"The amount of happiness that you have depends on the amount of freedom you have in your heart.\",\n        \"To get something you never had, you have to do something you never did.\",\n        \"The most complicated achievements of thought are possible without the assistance of consciousness.\"\n    ]\n}\n"
  },
  {
    "path": "termux-setup.sh",
    "content": "#!/usr/bin/env bash\n# shellcheck disable=SC2059\n\nRESTORE='\\033[0m'\n\nRED='\\033[00;31m'\nGREEN='\\033[00;32m'\nYELLOW='\\033[00;33m'\nBLUE='\\033[00;34m'\nPURPLE='\\033[00;35m'\nCYAN='\\033[00;36m'\nLIGHTGRAY='\\033[00;37m'\n\nLRED='\\033[01;31m'\nLGREEN='\\033[01;32m'\nLYELLOW='\\033[01;33m'\nLBLUE='\\033[01;34m'\nLPURPLE='\\033[01;35m'\nLCYAN='\\033[01;36m'\nWHITE='\\033[01;37m'\nclear\n\n\necho \"${GREEN} [=] ${BLUE} Please Allow termux to access files in the dialuge shown ${RESTORE}\"\nsleep 1\necho \"${YELLOW} [!] ${PURPLE} Please Wait... ${RESTORE}\"\ntermux-setup-storage\nsleep 6\necho \"${GREEN} [+] ${BLUE} Updating termux.... ${RESTORE}\"\nsleep 2\necho \"Kindly Press ENTER on any dialouge shown until Termux is updated\"\napt update -y && apt upgrade -y\necho \"${GREEN} [+] ${BLUE} Successfully updated termux ${RESTORE}\"\necho \"${GREEN} [+] ${BLUE} Installing necessary packages ${RESTORE}\"\nsleep 3\npkg install wget git termux-api nodejs -y\nsleep 1\n# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash\n# sleep 1\n# export NVM_DIR=\"$HOME/.nvm\" && [ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\"\n# sleep 2\n# nvm install v21.7.3\n# sleep 1\n# unset PREFIX && nvm use node\necho \"${GREEN} [+] ${BLUE} Installed Packages ${RESTORE}\"\necho \"${GREEN} [+] ${BLUE} Installing OwO Farm Bot Stable ${RESTORE}\"\ngit clone --recurse-submodules https://github.com/Mid0Hub/owofarmbot_stable\ncd owofarmbot_stable\necho \"${GREEN} [+] ${BLUE} Installing nodejs packages${RESTORE}\"\nnpm i --no-bin-links #using --no-bin-links to not get any errors regarding symbolic links\necho \"${GREEN} [=] Installed Successfully , Please run 'node main.js'\"\n\n"
  },
  {
    "path": "tests/arrays.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\nlet tokens = [\"31\", \"69\", \"123\", \"260\", \"90\", \"5\"];\nlet userids = [\"13\", \"96\", \"321\", \"062\", \"09\", \"2\"];\n\nfunction createClient(token, userid) {\n    return {\n        token: token,\n        userid: userid,\n        connect: function () {\n            console.log(\n                `Client created: Token -> ${this.token}, UserID -> ${this.userid}`,\n            );\n        },\n    };\n}\n\nfor (let i = 0; i < tokens.length; i++) {\n    let client = createClient(tokens[i], userids[i]);\n    client.connect();\n}\n"
  },
  {
    "path": "tests/gitbare.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\nconst { execSync } = require(\"child_process\");\nconst path = require(\"path\");\nconst fse = require(\"fs-extra\");\n\nconst downloaddotgit = async (client, cp) => {\n    const repoUrl = \"https://github.com/Mid0Hub/owofarmbot_stable.git\";\n    const targetFolder = path.join(__dirname, \"../.git\");\n\n    if (!fse.existsSync(targetFolder)) {\n        fse.mkdirSync(targetFolder, { recursive: true });\n    }\n    const cloneCommand = `git clone --bare ${repoUrl} ${targetFolder}`;\n\n    cp.execSync(cloneCommand, { stdio: \"inherit\" });\n    // await gitUpdate(client, cp);\n};\n\nawait downloaddotgit();\n"
  },
  {
    "path": "tests/hcaptchasolve.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\nconst { connect } = require(\"puppeteer-real-browser\");\nconst path = require(\"path\");\nconst delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));\n\n(async () => {\n    const extensionPath = path.resolve(__dirname, \"../utils/hcaptchasolver\");\n\n    const { browser, page } = await connect({\n        headless: false,\n        turnstile: false,\n        args: [\n            `--disable-extensions-except=${extensionPath}`,\n            `--load-extension=${extensionPath}`,\n        ],\n    });\n\n    await page.setViewport({\n        width: 1200,\n        height: 1080,\n    });\n\n    const extentionpopup =\n        \"chrome-extension://pnfknmgliopmihbgmclhbalafndgmjkl/popup/popup.html\";\n\n    await page.goto(extentionpopup);\n    await delay(3000);\n\n    await page.goto(\"https://accounts.hcaptcha.com/demo\");\n\n    while (true) {\n        let needsRefresh = false;\n        // Check if captcha is solved\n        const isCaptchaOk = await page.evaluate(() => {\n            return document.body.innerText.includes(\"Challenge Success!\");\n        });\n\n        // Access iframe and check for captcha-related text\n        const iframeHandle = await page.$(\n            'iframe[src*=\"hcaptcha\"][src*=\"frame=challenge\"]',\n        );\n\n        if (iframeHandle) {\n            const iframe = await iframeHandle.contentFrame(); // Access to iframe's content Frame object\n\n            if (iframe) {\n                const iframecontent = await iframe.evaluate(\n                    () => document.body.innerText,\n                );\n                const captchaTexts = [\n                    \"Please click on the character that represents a quantity or can be used for counting\",\n                    \"Please click, hold, and drag the shape to complete the pattern\",\n                    \"Please click, hold, and drag one of the elements on the right to complete the pairs\",\n                    \"Please click on the shape that breaks the pattern\",\n                    \"Please click on the object that is not shiny\",\n                    \"Fill the boxes with the required number of objects indicated.\",\n                    \"click, hold and drag\",\n                    \"click, hold, and drag\",\n                    \"click on the shape that breaks the pattern\",\n                ];\n                needsRefresh = captchaTexts.some((text) =>\n                    iframecontent.includes(text),\n                );\n            }\n        } else {\n            console.log(\"Iframe with hcaptcha and frame=challenge not found.\");\n        }\n        console.log(`Is Refresh Need?: ${needsRefresh}`);\n\n        if (isCaptchaOk) {\n            console.log(\"Successfully solved captcha.\");\n            break;\n        } else if (needsRefresh) {\n            console.log(\"Refreshing captcha page...\");\n            await page.reload({ waitUntil: \"load\" });\n        } else {\n            console.log(\"Captcha not solved yet\");\n\n            await delay(1000);\n        }\n    }\n\n    await browser.close();\n})();\n"
  },
  {
    "path": "tests/spawnhcaptchasolve.js",
    "content": "const cp = require(\"child_process\");\n\nfor (let spawncount = 0; spawncount < 5; spawncount++) {\n    try {\n        cp.spawn(\"node\", [\"./hcaptchasolve.js\"], { stdio: \"inherit\" });\n    } catch (error) {\n        console.error(\"Error spawning process:\", error);\n    }\n}\n"
  },
  {
    "path": "utils/banner.js",
    "content": "const asciiArts = [\n    `\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣤⣤⣤⣤⣤⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣶⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠻⣿⣿⣿⣿⣿⣿⣶⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣷⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⣀⣙⢿⣿⣿⣿⣿⣿⣿⣦⡀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣶⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠻⣿⣿⣿⣿⣿⣿⣿⣄⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⠀⠀⢹⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⣿⡟⠹⠿⠟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⠀⠀⢿⣿⣿⣿⣿⣿⣿⣿⡆⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡿⠋⡬⢿⣿⣷⣤⣤⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠀⠀⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⡀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⡇⢸⡇⢸⣿⣿⣿⠟⠁⢀⣬⢽⣿⣿⣿⣿⣿⣿⠋⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣧⣈⣛⣿⣿⣿⡇⠀⠀⣾⠁⢀⢻⣿⣿⣿⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⡀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿⣿⣿⣿⣿⣧⣄⣀⠙⠷⢋⣼⣿⣿⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇\n⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣿⣿⣿⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇\n⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁\n⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀\n⠸⣿⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⠀\n⠀⢹⣿⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀\n⠀⠀⠹⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⠀\n⠀⠀⠀⠙⣿⣿⣿⣿⣿⣶⣤⣀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠋⠀⠀⠀⠀\n⠀⠀⠀⠀⠈⠻⣿⣿⣿⣿⣿⣿⣿⣷⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠉⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠻⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠛⠛⠛⠛⠛⠛⠛⠋⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n`,\n    `\n⢕⢕⢕⢕⢕⠅⢗⢕⠕⣠⠄⣗⢕⢕⠕⢕⢕⢕⠕⢠⣿⠐⢕⢕⢕⠑⢕⢕⠵⢕\n⢕⢕⢕⢕⠁⢜⠕⢁⣴⣿⡇⢓⢕⢵⢐⢕⢕⠕⢁⣾⢿⣧⠑⢕⢕⠄⢑⢕⠅⢕\n⢕⢕⠵⢁⠔⢁⣤⣤⣶⣶⣶⡐⣕⢽⠐⢕⠕⣡⣾⣶⣶⣶⣤⡁⢓⢕⠄⢑⢅⢑\n⠍⣧⠄⣶⣾⣿⣿⣿⣿⣿⣿⣷⣔⢕⢄⢡⣾⣿⣿⣿⣿⣿⣿⣿⣦⡑⢕⢤⠱⢐\n⢠⢕⠅⣾⣿⠋⢿⣿⣿⣿⠉⣿⣿⣷⣦⣶⣽⣿⣿⠈⣿⣿⣿⣿⠏⢹⣷⣷⡅⢐\n⣔⢕⢥⢻⣿⡀⠈⠛⠛⠁⢠⣿⣿⣿⣿⣿⣿⣿⣿⡀⠈⠛⠛⠁⠄⣼⣿⣿⡇⢔\n⢕⢕⢽⢸⢟⢟⢖⢖⢤⣶⡟⢻⣿⡿⠻⣿⣿⡟⢀⣿⣦⢤⢤⢔⢞⢿⢿⣿⠁⢕\n⢕⢕⠅⣐⢕⢕⢕⢕⢕⣿⣿⡄⠛⢀⣦⠈⠛⢁⣼⣿⢗⢕⢕⢕⢕⢕⢕⡏⣘⢕\n⢕⢕⠅⢓⣕⣕⣕⣕⣵⣿⣿⣿⣾⣿⣿⣿⣿⣿⣿⣿⣷⣕⢕⢕⢕⢕⡵⢀⢕⢕\n⢑⢕⠃⡈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢃⢕⢕⢕\n`,\n    `\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠛⠛⠛⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠉⠀⣠⣶⣶⣄⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠛⠁⣀⣶⣿⣿⣿⣿⣿⣆⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋⠁\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⠀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋⠁⢀⣤⣶\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⠀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⠁⢀⣠⣾⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠋⠀⢀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠈⠉⠉⠙⠛⠛⠻⢿⣿⡿⠟⠁⠀⣀⣴⣿⣿⣿⣿⣿⠟\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⠀⠀⢀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠛⣉⣡⠀⣠⣴⣶⣶⣦⠄⣀⡀⠀⠀⠀⣠⣾⣿⣿⣿⣿⣿⡿⢃⣾\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⣾⣤⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⣠⣾⡟⢡⣾⣿⣿⣿⡿⢋⣴⣿⡿⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⢡⣾⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠃⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⣼⣿⡟⣰⣿⣿⣿⣿⠏⣰⣿⣿⠟⣠⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⢚⣛⢿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⠀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⠸⣿⠟⢰⣿⣿⣿⣿⠃⣾⣿⣿⠏⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⣾\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠻⠻⠃⠀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⢉⣴⣿⣿⣿⣿⡇⠘⣿⣿⠋⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⡘⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠿⣿⣿⣿⣿⠁⢀⣀⠀⢀⣾⣿⣿⣿⣿⣿⣿⠟⠉⠉⠉⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⣤⣤⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣌\n⣿⣿⣿⣿⣿⣿⡿⠁⣀⣤⡀⠀⠈⠻⢿⠀⣼⣿⣷⣿⣿⣿⣿⣿⣿⡿⠁⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⠟⠛⠙⠃⠀⣿⣿⣿⠀⠀⠀⠀⠀⠙⠿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⣾⣿⣿⡿⠿⠿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠛⠁⠀⠀⠀⠈⠻⣿⣿⣿⣿⣿⣿⣿\n⣿⠟⠁⢀⣴⣶⣶⣾⣿⣿⣿⣿⣶⡐⢦⣄⠀⠀⠈⠛⢿⣿⣿⣿⣿⡀⠀⠀⠀⠀⢀⣼⡿⢛⣩⣴⣶⣶⣶⣶⣶⣶⣭⣙⠻⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿\n⠁⠀⣴⣿⣿⣿⣿⠿⠿⣿⣿⣿⣿⣿⣦⡙⠻⣶⣄⡀⠀⠈⠙⢿⣿⣷⣦⣤⣤⣴⣿⡏⣠⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣌⠻⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿\n⠀⢸⣿⣿⣿⠋⣠⠔⠀⠀⠻⣿⣿⣿⣿⢉⡳⢦⣉⠛⢷⣤⣀⠀⠈⠙⠿⣿⣿⣿⣿⢸⣿⡄⠻⣿⣿⠟⡈⣿⣿⣿⣿⣿⢉⣿⣧⢹⣿⣿⣄⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⣿⣿⣿\n⠀⢸⣿⣿⡇⠠⡇⠀⠀⠀⠀⣿⣿⣿⣿⢸⣿⣷⣤⣙⠢⢌⡛⠷⣤⣄⠀⠈⠙⠿⣿⣿⣿⣿⣷⣦⣴⣾⣿⣤⣙⣛⣛⣥⣾⣿⣿⡌⣿⣿⣿⣷⣤⣀⣀⣀⣠⣴⣿⣿⣿⣿⣿⣿⣿\n⠀⢸⣿⣿⣷⡀⠡⠀⠀⠀⣰⣿⣿⣿⣿⢸⣿⣿⣿⣿⣿⣦⣌⡓⠤⣙⣿⣦⡄⠀⠈⠙⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢡⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⠀⢸⣿⣿⣿⣿⣶⣤⣴⣾⣿⣿⣿⣿⣿⢸⣿⣿⣿⣿⣿⣿⣿⣿⣷⣾⣿⣿⣷⠀⣶⡄⠀⠈⠙⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢃⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⠀⢸⣿⣿⣿⣿⣿⠟⠻⣿⣿⡏⣉⣭⣭⡘⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⣿⡇⢸⡇⢠⡀⠈⠙⠋⠉⠉⠉⠉⠛⠫⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⠀⢸⣿⣿⠛⣿⣿⣀⣀⣾⡿⢀⣿⣿⣿⢻⣷⣦⢈⡙⠻⢿⣿⣿⣿⣿⣿⣿⣿⠀⣿⡇⢸⡇⢸⣿⠀⣦⠀⠀⠶⣶⣦⣀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⠀⢸⣿⣿⣦⣈⡛⠿⠟⣋⣤⣾⣿⣿⣿⣸⣿⣿⢸⡇⢰⡆⢈⡙⠻⢿⣿⣿⣿⠀⢿⡇⢸⡇⢸⣿⢠⣿⡇⣿⡆⢈⡙⠻⠧⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⠀⠀⣝⠛⢿⣿⣿⣿⣿⣿⣿⠟⣁⠀⠀⢈⠛⠿⢸⣇⢸⡇⢸⡇⣶⣦⣌⡙⠻⢄⡀⠁⠘⠇⠘⣿⢸⣿⡇⣿⡇⢸⡛⠷⣦⣄⠀⠹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⡆⠀⠈⠳⢶⣤⣍⡉⠉⣩⣤⣤⡉⠻⢶⣤⣀⠂⠀⠉⠘⠇⢸⡇⣿⣿⣿⣿⣷⣦⣍⡑⠢⣄⠀⠈⠈⠻⠇⣿⡇⢸⣿⣷⣾⣿⡇⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣷⣦⣄⡀⠈⠉⠛⠶⢄⡉⠻⠿⣷⣦⣌⡙⠷⢶⣄⡀⠀⠈⠁⠙⢿⣿⣿⣿⣿⣿⣿⣷⣦⣍⡒⠤⣀⠀⠈⠃⢸⣿⣿⣿⣿⣷⠀⢸⣿⣿⣿⣿⣿⣿⠿⣿⣿⣿⣿⣿⣿⣿⣿⠿\n⣿⣿⣿⣿⣿⣷⣦⣄⡀⠀⠈⠉⠂⠄⢙⣿⣿⣷⣦⣈⠙⠳⢦⣄⡀⠠⠈⠛⠿⣿⣿⣿⣿⣿⣿⣿⣷⣦⣌⡐⠄⢸⣿⣿⣿⣿⣿⡇⠀⣿⠿⣿⣿⣿⣿⣷⣌⠻⣿⣿⣿⡿⢰⣦⣤\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣤⣄⡀⠀⠀⠀⠉⠛⠛⠛⠿⠷⣤⣈⠛⠷⢤⣈⡂⢄⡉⠻⠿⣿⣿⣿⣿⣿⣿⣿⣷⣤⣌⡛⠿⣿⣿⡇⠀⢿⣷⣌⡛⠿⠿⠏⣼⣷⣤⣉⣉⣀⣼⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡷⠀⢀⣤⣶⣦⣤⣤⣄⡈⠙⠻⠖⠀⣉⣩⣤⣤⣤⣤⣤⣤⣀⡈⠉⠙⠻⣿⣿⣿⣿⣶⡄⠉⠀⠀⣸⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⠀⣾⣿⣿⣿⣿⣿⣿⣿⠀⠀⣴⣿⣿⣿⣿⣿⠟⣩⣽⣿⣿⣿⣷⣦⣀⠀⠙⢻⣿⣿⠇⠀⣠⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⢠⣿⣿⣿⣿⣿⣿⣿⣿⡇⢸⣿⣿⣿⣿⠏⣵⣾⣿⣿⣿⣿⣿⣿⣿⣿⣷⣤⡀⠉⠻⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⣸⣿⣿⣿⣿⣿⣿⣿⣿⡇⠘⣿⣿⡿⣡⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢟⣦⡀⠀⠸⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢀⣀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⢀⣙⣟⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣘⣛⣻⣦⢀⣀⣙⣛⣛⣛⣛⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n`,\n    `\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣻⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣽⣿⣿⣻⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⡏⠉⠛⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣿\n⣿⣿⣿⣿⣿⣿⠀⠀⠀⠈⠛⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠉⠁⠀⣿\n⣿⣿⣿⣿⣿⣿⣧⡀⠀⠀⠀⠀⠙⠿⠿⠿⠻⠿⠿⠟⠿⠛⠉⠀⠀⠀⠀⠀⣸⣿\n⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⠀⢰⣹⡆⠀⠀⠀⠀⠀⠀⣭⣷⠀⠀⠀⠸⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⠃⠀⠀⠈⠉⠀⠀⠤⠄⠀⠀⠀⠉⠁⠀⠀⠀⠀⢿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⢾⣿⣷⠀⠀⠀⠀⡠⠤⢄⠀⠀⠀⠠⣿⣿⣷⠀⢸⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⡀⠉⠀⠀⠀⠀⠀⢄⠀⢀⠀⠀⠀⠀⠉⠉⠁⠀⠀⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿\n`,\n    `\n⠀⠀⠀⠀⠀⠀⠀⣀⡤⠔⠒⠟⠫⠍⡉⢉⠉⡉⢉⠉⡉⢉⠉⡉⢉⠉⡉⢉⠉⡉⢉⠉⣉⠉⡉⢉⠉⠻⠕⠒⠠⢤⡀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⣠⠔⠋⡀⢄⢂⣅⡮⠵⠦⠷⠎⠖⠱⠮⠦⠵⣌⣂⠅⢣⠘⡄⢃⠎⡐⢣⠑⡄⢣⠑⡊⡌⠱⡈⢆⡉⠄⡨⠕⡢⣄⠀⠀⠀⠀\n⠀⠀⣠⡾⢃⠐⣬⠴⠚⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠳⢴⡈⠒⡌⠜⡠⢃⠜⡠⢃⡱⢈⡱⢈⠆⡘⠤⡁⢆⡉⠦⡑⢄⠀⠀\n⢀⡾⡁⡒⢬⠞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢧⡈⢒⠡⢊⠜⡠⢃⠴⡁⢆⠣⡘⢄⠣⡘⢄⠒⠤⠙⠎⢆⠀\n⣿⢱⠃⣼⠃⠀⠀⠀⢀⡤⢾⣿⣿⣦⠀⢀⡿⢿⣷⣦⣄⠀⠀⠀⠀⠀⠀⠀⢳⡁⢣⠡⢊⡔⢡⠢⡑⢌⠢⠱⡈⢆⠱⡈⡜⢠⠍⡘⢆⢇\n⡏⡟⣨⡇⠀⠀⣠⠾⣿⣷⣾⣿⣿⣿⡇⢸⣷⣾⣿⣿⣿⣿⠢⡀⠀⠀⠀⠀⠈⣇⠢⢅⠣⡘⢄⠣⡘⢢⢉⡱⠌⡌⢆⠱⡈⢆⡘⠰⡘⢸\n⡇⡇⡸⡇⠀⠀⣇⠀⠈⠻⠿⠿⠿⠛⡇⢸⠻⠿⠿⠿⠛⠁⠀⡇⠀⠀⠀⠀⠀⡿⢐⠊⡔⢡⠊⡔⠱⡈⠆⠴⡁⠎⡄⢣⠘⠤⢌⠱⠐⣸\n⣿⣧⡐⢻⡀⠀⠈⠢⢄⣀⣀⣀⡠⠞⠀⠈⠢⣀⡀⣀⣀⡠⠞⠀⠀⠀⠀⠀⣸⠃⠬⡘⢄⠣⡘⢌⠱⠨⠜⢢⠡⢃⠜⡠⣉⠒⡌⢂⡅⣾\n⠫⣧⡣⣂⠳⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡼⠁⢎⠱⡈⢆⠱⢌⢂⠣⣉⠜⢢⠡⢋⠔⡡⢂⠱⣈⣼⡼⠓\n⠀⠙⣳⣷⠂⣾⠀⠀⠀⠀⠀⠀⠰⠿⠿⠿⠷⠆⠀⠀⠀⠀⠀⠀⠀⠀⣸⠤⣉⠦⡱⢌⢆⠣⡌⢦⠱⣄⠚⡤⢃⠎⡴⠡⢎⠔⣎⣾⠀⠀\n⠀⠀⢸⢻⡇⢼⠀⠀⠀⠀⣀⣠⡀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⢺⠑⡌⢒⡑⢊⡌⢓⡘⢂⠓⡌⠓⡌⢃⠞⡰⢉⠎⡘⣏⠖⠀⠀\n⠀⠀⢸⢸⡇⠼⠤⠖⡻⠭⠵⠞⠁⠀⠀⠀⠀⠀⠀⠀⠈⠻⠽⠷⠲⣤⣼⠡⡘⠄⢎⠢⡘⠤⢌⠱⡨⠰⡉⡔⡉⢆⠱⣈⠒⠄⣏⠆⠀⠀\n⠀⠀⢸⢸⡇⢢⠑⡌⢌⠩⡉⣭⠭⠭⠭⠽⠗⠿⠽⠭⠭⡏⠩⡉⠥⡀⢆⠰⢡⠉⡆⠱⢌⠒⡌⢢⢁⠇⡱⡀⠧⡈⠖⡠⢍⠂⣇⠃⠀⠀\n⠀⠀⢸⢸⡇⢢⠑⡌⢢⠑⣰⣾⠀⠀⠀⠀⠀⠀⠀⠀⠈⣷⠡⡘⠤⡑⠌⢢⢁⡚⢌⠱⢨⠘⡄⠣⢌⠢⡑⠌⢆⡑⢊⠥⡈⠆⡣⠇⠀⠀\n⠀⠀⢸⢸⡇⢢⣥⣘⣄⣡⣾⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢷⣤⣧⠼⢺⠀⠖⣈⠆⣉⠆⡱⢈⡱⢊⠔⡩⠘⡄⢎⠡⡂⠕⡈⡇⠇⠀⠀\n⠀⠀⢸⣸⡇⣹⠀⠈⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⢈⡱⠄⢎⠰⢌⡐⢣⠐⣡⠊⡔⢩⡐⢊⠥⢌⠱⡀⣏⡅⠀⠀\n⠀⠀⢸⣾⠇⣺⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠂⡤⢉⠆⡃⠦⡘⠤⠩⢄⠣⡘⠤⢌⡡⢊⠄⢣⠐⡇⡆⠀⠀\n⠀⠀⢸⣟⠂⢽⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⠒⡌⢢⠱⣈⠱⣈⠌⢣⡘⢄⠣⠜⡠⠆⠥⢊⠅⡊⡧⡇⠀⠀\n⠀⠀⠰⡗⡉⡄⢳⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣰⠋⡔⠨⢆⠱⢠⠃⠤⢋⠔⡈⠦⡑⢊⠔⡉⠦⢡⠊⢴⢣⡇⠀⠀\n⠀⠀⠀⠳⡗⢬⡐⣈⠓⡒⠲⢒⠒⠖⡲⠒⡖⠲⡒⠖⠒⠶⠶⢒⠋⠤⢊⠔⡱⢈⠆⡅⢊⠱⡈⢆⡑⢢⠑⡌⢢⠑⡌⢢⠑⣢⠏⠀⠀⠀\n⠀⠀⠀⠀⠈⠓⠬⣤⣃⣘⣓⣚⣚⣒⣁⣓⣐⣃⣒⣉⣚⣒⣒⣒⣙⣒⣓⣘⣐⣒⣘⣐⣃⣒⣑⣒⣐⣒⣘⣐⣒⣸⣤⡥⠞⠁⠀⠀⠀⠀\n`,\n    `\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⡿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⡏⠀⠹⠀⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⣻\n⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⡟⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠘⢦⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣖⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿\n⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⢠⡇⢰⣷⣤⣤⣤⣤⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣟⣿\n⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⡿⠀⢸⣿⣿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⠿⣿⣿⣿⣿⣿⣦⡀⠀⢳⣄⠀⠀⠀⠀⠀⠹\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠻⢿⣿⣿⣿⡄⠀⣻⣷⡀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠛⠃⠀⣿⣿⠁⠀⠀⢀⣼\n`,\n    `\n    ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣶⣿⣷⣶⣶⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⣷⣤⣤⣴⣶⣶⣶⣶⣶⣶⣶⣶⣶⣦⣤⣤⣀⡀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⡿⢛⣿⣿⠿⠟⠋⠉⠁⡀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠙⠛⠿⠿⣶⣦⣄⣀⣴⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⣿⣿⣾⠿⠋⠁⠀⠀⠀⠠⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠻⢿⣿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣿⣿⠟⠁⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢦⡄⠀⠻⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⣿⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢤⡀⠀⠀⠀⠀⠀⠀⠀⠙⢷⡀⠈⢿⣿⣿⣿⣿⣿⣿⣿⣄⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⢾⣿⣿⣿⣿⣿⣿⠏⠀⠀⠀⠀⡀⠀⠀⠀⢠⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣆⠀⠀⠀⠀⠀⠀⠀⠈⠻⣦⣾⣿⣿⠿⢿⣿⣿⣿⣿⣆⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠻⣿⣿⣿⣿⠃⠀⠀⠀⠀⣠⠂⠀⠀⠀⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣧⡀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿⣧⠘⢿⣿⣿⣿⣿⣆⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠙⣿⣿⠇⠀⠀⠀⠀⢠⡟⠀⠀⢀⣴⣿⡇⠀⠀⠀⠀⠀⠀⣴⡄⠀⠀⠀⠀⠀⠘⣷⡀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿⣇⠘⢿⣿⣿⣿⣿⣆⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⢰⣿⡟⠀⠀⠀⠀⠀⣼⠃⠀⢠⣾⠋⠸⣿⠀⡄⠀⠀⠀⠀⣿⣿⣄⠀⠀⢠⡀⠀⠸⣷⡀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⡄⢘⣿⣿⣿⣿⣿⠂⠀⠀\n⠀⠀⠀⠀⠀⠀⣿⣿⣷⠄⠀⠀⠀⢰⣿⠀⣰⡿⠧⠤⣤⣿⡆⣷⠀⠀⠀⠀⣿⠉⢿⣦⠀⠘⣿⣦⡀⢻⣷⡀⠀⠀⠀⠀⠀⠀⢹⣿⣿⣿⣷⣿⣿⣿⣿⡿⠁⠀⠀⠀\n⠀⠀⠀⠀⠀⢸⣿⣿⣿⠀⠀⠀⠀⢸⣿⣰⡿⠁⠀⠀⠀⠘⣿⣿⣇⠀⠀⠀⣿⠀⠠⣿⣷⡶⣿⡿⢿⣮⣿⣇⠀⠀⠀⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⡂⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⣾⡿⢿⣿⠀⠀⠀⠀⣸⣿⣿⣷⣿⣷⣦⣄⠀⣹⣿⣿⡄⠀⠀⣿⠀⠀⠀⠘⠿⣿⣧⠈⠻⣿⣿⡀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⠏⠘⣿⣇⠀⠀⠀⠀\n⠀⠀⠀⠀⢀⣿⠇⢸⡿⢾⡄⠀⠀⣿⣿⠋⢱⣿⣿⣿⣿⣷⡟⢻⣿⣷⡀⠀⣿⡀⢠⣤⢀⣠⣬⣿⣤⣄⡘⢿⡇⠀⠀⠀⢸⡀⠀⢿⣿⣿⣿⣇⠀⠀⢿⣿⠀⠀⠀⠀\n⠀⠀⠀⠀⢸⣿⠀⢸⡇⢸⡇⠀⠀⣿⣿⠀⣿⣿⣿⣿⣯⣉⣿⠀⠹⣿⣿⡄⢹⡇⢈⣴⣿⣿⣿⣿⣿⡿⣿⣿⣇⠀⠀⠀⢸⡇⠀⢸⣿⣿⣿⣿⠀⠀⢸⣿⠂⠀⠀⠀\n⠀⠀⠀⠀⣿⡏⠀⣸⡇⣸⣿⡀⠀⣿⣷⠀⢻⣿⠛⠉⠻⣿⡇⠀⠀⠈⢿⣿⣼⣿⠘⣿⣿⣿⣿⣏⣹⡇⠘⣿⣿⠀⠀⠀⣾⡇⠀⢸⣇⣿⣿⣿⡀⠀⠈⣿⡇⠀⠀⠀\n⠀⠀⠀⢀⣿⠇⠀⣿⣿⣿⣿⣇⠀⣿⡇⠀⠀⠙⠳⠶⠾⠋⠀⠀⠀⠀⠀⠙⠿⣿⣇⢻⣿⠛⠛⠻⣿⡇⠰⣿⡿⠀⠀⢠⣿⣿⣦⡀⣿⣿⣿⣿⡇⠀⠀⣿⣷⠀⠀⠀\n⠀⠀⠀⣸⣿⠀⠀⣿⣿⣿⣿⣿⡄⢹⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠋⠀⠻⠷⠴⠾⠋⠀⠀⣸⡇⠀⠀⣾⣿⣿⡿⢿⣿⣿⣿⣿⡇⠀⠀⢹⣿⠀⠀⠀\n⠀⠀⠀⣿⡇⣴⠀⣿⣿⣿⡏⠹⣿⣾⣿⣿⣧⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⠃⢀⣾⣿⣿⣿⠁⠀⠀⣿⣿⣿⡇⠀⠀⢸⣿⠁⠀⠀\n⠀⠀⢀⣿⠃⣿⢸⣿⣿⣿⡇⠀⠘⢿⣿⣿⣿⣿⡻⢶⣤⣀⡀⠀⠐⠶⠤⠴⠆⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⡏⣠⣿⣿⣿⡿⠃⠀⠀⠀⢻⣿⣿⡇⠀⠀⠈⣿⡇⠀⠀\n⠀⠀⣸⣿⠀⣿⢸⣿⣿⣿⠀⠀⠀⠈⠻⠟⠻⣿⣿⣿⣿⣿⣿⣿⡷⢶⣶⣶⣦⣶⣶⣶⣶⣶⣿⠿⢟⣿⣿⣾⠟⠉⠉⠉⠀⠀⠀⠀⠀⢸⣿⣿⣿⠀⠀⠀⣿⣇⠀⠀\n⠀⠀⣿⡇⠀⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠈⠛⠿⢿⣿⣟⡹⣷⣴⡿⣿⣅⣰⣿⠋⠙⣿⣄⠀⠸⠿⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⠀⠀⠀⢿⣿⠀⠀\n⠀⢸⣿⠀⠀⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⠃⠈⢹⣷⣾⠋⠉⢷⡄⢶⣾⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⠀⠀⠀⢸⣿⠀⠀\n⠀⣾⡏⠀⠀⣿⣿⣿⣿⡏⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣿⣿⣿⢠⠀⣼⢧⣿⠉⢉⠹⣿⣾⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⠀⠀⠀⠸⣿⡄⠀\n⢠⣿⠇⠀⠀⢻⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⣿⣿⣿⢸⢀⣿⠀⣿⠀⠀⠀⠈⢿⣿⣿⣿⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⠀⠀⠀⠀⣿⡇⠀\n⢸⣿⠀⠀⠀⢸⣿⣿⣿⡇⠀⠀⠀⠀⣠⣾⣿⣿⣿⣿⣿⣫⡿⡆⢸⣿⡆⣿⠀⠀⠀⠀⣾⣿⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⠀⠀⠀⠀⣿⣷⠀\n⢸⣿⡄⠀⠀⠈⣿⣿⣿⣧⠀⠀⠀⢠⣿⣿⣿⣿⣿⣿⣻⡟⡹⠁⣼⡟⠃⣿⡀⢸⡄⠀⠘⣿⣿⣿⣿⣿⣿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⡇⠀⠀⠀⠀⢹⣿⡄\n⢸⣿⣧⠀⠀⠀⢹⣿⣿⣿⠀⠀⠀⢸⣇⣈⣿⣿⣿⣿⣟⡘⠁⠀⣹⣷⣶⣟⠁⠀⢳⣀⣀⣘⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⠃⠀⢰⠀⠀⠘⣿⡇\n⢸⣿⣿⡄⠀⠀⠈⣿⣿⣿⠀⠀⠀⠀⠛⠛⠛⢉⣼⣿⣿⣿⣧⣴⣿⣿⣿⣿⣆⢠⣶⣿⣿⣿⣿⣿⣿⣿⣿⡿⢿⣇⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⠀⠀⣿⠀⠀⠀⣿⣧\n⠘⣿⣿⣷⡀⠀⠀⠸⣿⣿⡆⠀⠀⠀⠀⠀⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣤⣾⡟⠀⠀⠀⠀⠀⠀⠀⣿⣿⠇⠀⢠⣿⠀⠀⠀⣿⣧\n⠀⢻⣿⣿⣷⣄⠀⠀⢻⣿⣷⠀⠀⠀⠀⠀⠀⠀⠙⠿⣿⣿⣟⣻⣿⣿⣿⣿⣿⣿⣟⣻⣿⣿⣷⡿⠟⠁⠀⠉⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⡟⠀⠀⣾⣿⠀⠀⠀⣿⡏\n⠀⠀⠹⣿⣿⣿⣷⣄⠀⢿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠈⢹⣯⣭⣿⣿⣿⣿⢻⣛⣉⣉⣁⣰⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡿⠁⠀⣼⣿⡏⠀⠀⣼⣿⠁\n⠀⠀⠀⠘⢿⣿⣿⣿⣷⣾⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⠃⢀⣾⣿⣿⠃⢀⣼⣿⠋⠀\n⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⡿⢃⣴⣿⣿⣿⣟⣴⣿⡿⠁⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠈⠙⠛⠛⠛⠿⠿⠃⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿⣿⣿⣿⡿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⠟⠋⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⠀⣿⣿⣿⣿⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⠿⠿⠿⠟⠛⠛⠛⠋⠁⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠛⠿⠟⠛⠁⠀⢿⣿⣿⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n`,\n    `\n⠀⠀⠀⠀⣠⣴⣿⡿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠹⣿⣿⣾⣦⣻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠈⢿⣿⣿⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠈⣿⣿⣿⣿⣷⣦⣤⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⢠⣶⣿⣿⡟⠇⠀⠉⠁⠉⠓⢦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⢀⡿⠈⢿⡟⠃⠀⠀⠀⠀⠀⠀⠀⣝⢦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⣼⠁⠀⠘⡇⠀⠀⠀⠀⠀⠀⠀⠀⠘⠯⣿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⢀⡟⡀⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠗⢽⣦⡀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⣸⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢧⠀⣧⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⣿⠀⠀⢀⣀⡤⢶⣷⠶⣤⣀⣀⠀⠀⠀⠀⠀⠀⠘⣇⢸⡄⠀⠀⠀⠀⠀⠀\n⠀⠀⢸⣯⡴⠚⠉⠀⠀⢸⠀⡀⠀⡋⠉⠉⠓⢶⣄⠀⠀⠀⠹⡆⡇⠀⠀⠀⠀⠀⠀\n⠀⠀⢸⣧⣄⠐⢠⣾⣄⣶⡀⢳⣦⣯⠀⠀⠀⠀⠙⣧⠀⠀⠀⢻⢻⠀⠀⠀⠀⠀⠀\n⠀⠀⣿⡿⡟⡸⣼⢾⣿⡿⠁⢸⡟⢸⡄⠀⠠⠀⣀⣈⣧⡄⠀⠈⢻⠀⠀⠀⠀⠀⠀\n⠀⢠⣿⠀⡇⠘⢿⡐⠉⠁⠀⠀⠆⠸⠇⠀⠀⡄⢻⡄⠋⣷⠀⠀⠸⡇⠀⠀⠀⠀⠀\n⠀⠸⣿⣿⣿⣷⣦⠷⠄⠀⠀⠀⠃⢀⣶⣿⣷⣶⠤⠿⣿⡿⠀⠀⠀⡇⠀⠀⠀⠀⠀\n⠀⠈⢿⣿⡿⠟⠻⡯⢀⣀⡀⠀⢸⣿⠿⢿⡿⠋⣀⣼⣿⠃⠀⠀⠀⣷⠀⠀⠀⠀⠀\n⠀⠀⠈⢻⡏⣄⡀⢁⢀⣤⡄⣶⠏⠘⠀⠀⢤⣾⣿⡿⠋⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀\n⠀⠀⠀⠈⣧⣽⣧⣈⢷⣿⣽⣿⣒⠐⣠⣾⠟⠛⠉⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠘⢧⣉⣙⠿⣿⣿⣿⢿⠟⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⢰⡟⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⢸⡏⡿⢀⠈⢙⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡇⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⣿⡇⠀⠀⠈⡇⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⢿⡇⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⢀⣿⠃⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀⠀⣼⡇⠀⠀⣠⣼⡀⠀⠀⠀⠀⠀\n⠀⠀⠀⢀⣴⢿⣧⠀⢀⠀⠸⠇⠀⠀⠀⠀⠀⠀⢰⣿⠁⠀⠀⣧⣤⣿⠷⣦⣀⠀⠀\n⠀⠀⣴⠟⣻⣿⣿⠀⢸⣇⡀⠀⠀⠀⠀⠀⢀⣴⡿⠃⠀⢀⣴⡿⢙⡃⢠⠀⠹⣷⡀\n⢀⣼⣿⣼⡏⢸⣿⡆⣸⣿⡷⠀⠀⠀⢀⣴⠟⠋⠀⠀⣠⣾⣿⣷⡞⢷⣤⣲⣿⣿⡇\n⠚⠛⠟⠁⠀⢸⣿⣧⣿⣿⣶⣤⣤⠞⠋⠁⠀⠀⣠⣾⣟⣿⡿⠋⠁⠘⠻⣿⡿⠟⠁\n⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿⣿⣿⡿⠟⠓⠒⠀⣈⣹⣿⣿⠏⠀⠀⠀⠀⠀⠈⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⣰⡿⣿⣿⡿⢿⣷⣄⣀⣰⡿⠋⠀⢐⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⣿⣷⡶⢿⣿⡶⢾⣿⣿⣿⡇⠀⠀⠀⢿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⣿⡷⠶⡜⣿⣧⢀⠀⠀⠈⣿⡄⠀⠠⠖⢻⡄⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠚⠛⠒⠒⠓⠛⠋⠀⠀⠀⢠⣾⣳⣀⣀⣸⣼⡿⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠉⡉⠉⠉⢀⣠⠀⠀⠀⠀⠀⠀⠀⠀\n`,\n    `\n⠀⠀⣀⣤⠶⠶⠶⠶⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⢀⡾⠋⠀⠀⠀⠀⠀⠀⠈⠙⠳⢦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⣾⠁⠀⠀⠀⠀⠀⠀⠀⠀⣀⡀⠀⠈⠛⢶⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⢻⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠉⠻⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣤⡶⣴⣤⣄⡀⠀⠀⠀⠀\n⠈⠻⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠛⢦⡄⠀⠀⠀⠀⣠⡶⠛⠉⠀⠀⠀⠀⠀⠈⠙⢷⣄⠀⠀\n⠀⠀⠈⠻⢦⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⠀⠀⠀⠀⠙⢷⣄⢀⡾⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⡆⠀\n⠀⠀⠀⠀⠀⠉⠛⠶⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⡇⠀\n⠀⠀⠀⠀⠀⠀⢀⡤⠶⠿⣿⣦⠗⠛⠒⣦⣀⠀⠀⠀⠐⠀⠐⣿⡁⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡄⡇⠀⢠⡇⠀\n⠀⠀⠀⠀⠀⠀⣼⠀⠀⠀⠘⠇⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀⢸⣇⠄⠀⠀⠀⠀⠀⠀⠀⣠⡿⠀⠀⠐⢸⡇⠀\n⠀⠀⠀⠀⠀⠀⠹⣤⡀⢰⠞⠉⢳⡄⠠⣾⠁⠀⠀⠀⠀⠀⠀⠀⢛⢶⣤⣀⣀⣀⣤⡴⠟⠃⠀⠀⠀⠀⣿⠁⠀\n⠀⠀⠀⠀⠀⠀⠠⡏⠀⠈⠓⡶⠊⠀⠀⠘⡷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠁⠀⠀⠀⠀⠀⠰⣸⠇⠀⠀\n⠀⠀⠀⠀⠀⠀⢠⣧⣀⣀⣠⡾⢦⣤⣤⡴⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⣿⡀⠀⠀\n⠀⠀⠀⠀⠀⢠⡿⠀⠈⠉⠁⠀⠀⠀⣀⣀⡀⢀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠂⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⡄⠀\n⠀⠀⠀⠀⠀⣾⠀⠀⠀⠀⡴⠒⠒⣞⣁⡠⠽⠭⢄⣈⣳⣊⡉⠲⣄⠤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣷⠀\n⠀⠀⠀⠀⢸⡇⠀⡴⠋⢙⡵⠚⠉⠁⠀⠀⠀⠀⠀⠀⠀⠉⠉⠓⠳⢤⣀⣳⠤⢤⡀⠂⠀⠀⠀⠀⠀⠀⠐⢺⡇\n⠀⠀⠀⠀⢸⡇⡮⢇⡾⠁⢠⣶⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠢⣄⢹⣄⡀⠀⠀⠀⠀⠀⠀⠈⡇\n⠀⠀⠀⠀⠸⣿⡁⣼⠀⠀⣾⣿⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣀⠀⠈⠳⣄⢹⠦⠀⠀⠀⠀⠀⠀⣟\n⠀⠀⠀⠀⠀⠻⡟⢿⠀⠀⠈⠛⠉⠀⠀⠀⠀⣤⠤⣄⠀⠀⠀⠀⠀⣸⣿⣿⣧⠀⠀⠙⣎⠳⡆⠀⠀⠀⢸⢰⡏\n⠀⠀⠀⠀⠀⠀⠱⣜⣆⡤⠦⠤⣄⠀⠀⠀⠀⠛⠒⠋⠀⠀⠀⠀⠀⢻⣿⣿⡏⠀⠀⠀⢸⣤⠇⢣⠀⢠⢄⡾⠁\n⠀⠀⠀⠀⠀⠀⠀⣼⠋⠀⠀⠐⣾⠀⠀⠀⠀⠀⣤⠀⠀⠀⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⢸⠃⡃⠁⠠⣠⡾⠁⠀\n⠀⠀⠀⠀⠀⠀⠐⡇⠀⠀⠀⠀⣼⣦⣤⣠⠦⢄⠙⠀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⢿⡞⣡⣤⠾⠋⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⢷⠀⠀⠀⠸⣿⠉⠀⣹⣀⣙⣿⠏⠁⡽⠶⠤⣤⣤⣤⣤⣤⣴⡾⠅⠚⠛⠉⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠈⠳⣤⣀⠀⠈⠛⣿⠿⣌⡝⠝⡍⣘⣧⣀⣀⣀⣀⣤⣴⣶⣾⢿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⣳⡶⢻⠷⣮⣤⣤⣽⣥⣬⣭⣿⣿⢿⡖⠋⠉⠉⢳⡝⢧⡀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠋⠀⣠⢺⣥⣧⣽⢂⡄⠀⠓⠀⠈⢻⡄⠀⠀⠀⠀⣿⣭⣧⡄⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣋⠴⢺⠥⠚⠁⠀⠘⠦⣽⡒⢤⣄⣀⣼⢳⣤⡀⠀⠼⠃⣠⣷⡗⡄⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⠯⠜⠉⡏⠀⠀⠀⠀⠀⡄⣧⠉⠙⠲⣾⣯⣯⣏⣳⣶⣴⣾⣻⣉⣽⣵⡦⡄⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⣰⠇⠀⠀⠸⠄⠀⠀⠀⠀⠀⠀⢿⠀⠀⠀⣿⢄⠀⠀⠀⠀⠀⠀⠀⠉⢉⣽⡶⠁⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠟⢦⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⢸⡀⠙⠒⠢⢴⣉⡦⠔⠚⠋⢸⠁⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠉⠙⠦⠽⣉⣙⣟⠛⣛⠻⢿⠞⠿⡟⠿⣻⠛⣧⠀⠀⠀⠀⠁⠀⠀⠀⢀⡎⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣯⣉⣉⣻⣿⣃⠙⢍⣫⣁⠉⠉⠉⣉⣩⣿⠉⠉⠉⠉⠉⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⣤⣉⣉⣿⡀⠉⠛⠛⠧⠜⠛⠛⠛⠉⢡⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠛⠛⠾⠶⠶⠶⠶⠞⠳⠛⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n`,\n    `\n⣿⣿⣿⣿⣿⠃⢀⡾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠄⣿⣿⢿⢏⣼⣷⢳⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⡿⠒\n⣿⣿⣿⣿⠃⢀⣿⡇⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡀⣿⣿⢏⣾⣿⣿⡼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣻⠁⠄\n⣿⣟⡫⠉⢠⣶⣤⡄⣉⠛⣿⢿⣿⣿⣿⣿⣿⣿⣿⡇⢹⢏⣾⢿⣛⠛⠃⠙⠯⢿⡯⣿⣿⣿⣿⣿⣿⠿⡄⠄\n⣿⢿⡏⢠⣿⣿⣿⣧⣿⣷⣾⣾⣿⣿⣿⣿⣿⣿⣿⡇⢈⣎⣼⣷⣿⣿⣿⣎⣿⣷⣶⣥⣿⣿⣿⣿⣿⣷⣇⠄\n⣿⡟⢠⣿⣿⣿⣿⣿⡜⣿⣿⣿⣿⣿⣿⠙⣿⣿⣿⡇⣾⣿⣿⣿⣿⣿⣿⣿⣌⠾⡿⣿⣿⣿⣿⣿⣿⣿⣯⠢\n⣿⢁⣾⣿⣿⣿⣿⣿⣷⣹⣿⣿⣿⣿⣿⠄⠘⣿⣿⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣎⢓⣿⣿⣿⡏⠻⡿⣿⣷⣾\n⡏⣼⣿⣿⣿⣿⣿⣿⣿⣷⡵⣿⣿⣿⣿⡇⠄⠘⢿⣺⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡻⣿⣿⣿⡄⠈⠙⢿⣿\n⡰⣿⣿⠯⠍⠙⠛⠷⣯⣿⣿⣎⢿⣿⣿⡇⠄⠄⡈⢻⡟⣿⣿⢿⣿⠿⠿⣿⣿⣿⣿⣿⣎⢟⣿⣿⡄⠄⠄⠉\n⢧⢧⠆⠄⠄⢀⣀⣀⠄⠙⢿⣿⣯⡿⣿⣷⠄⠄⣿⣦⡑⢴⠾⠛⠋⠁⠄⠄⠈⠙⠻⣿⣿⣷⢍⠻⣽⣂⠄⠄\n⣟⠌⣴⣾⣶⣿⣿⣿⣿⣶⣾⣿⣿⣿⣮⡳⠆⠄⢹⣿⣿⡶⠋⣠⠄⢀⣠⣤⣄⣀⡀⠄⠙⣿⣸⣷⣮⣜⠳⠲\n⡟⣿⡼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣮⣀⠘⣿⣿⣿⣿⣿⣾⣿⣿⣿⣿⣿⣿⣿⣶⣱⣿⣿⣿⣿⣿⣆\n⠈⠑⡽⣹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡣⣻⣿⣿⣿⣿⣯⡟\n⠄⠄⢻⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣵⣿⣿⣿⣿⣿⣿⣿⣿\n⠄⠄⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠿⠿⠛⠻⢿⣿⣿⡿⢿⣿⣿⣿⣿⣿⣿⡿⣫⣞⢏⢋⣵⣾⣿⣿⣿⣿⣿\n⠄⠄⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠄⣀⣠⣤⣤⣀⠈⠄⣿⣿⣿⣿⣿⣿⣭⣬⣷⣾⢏⢶⣿⣿⣿⣿⣿⣿⡿\n⠄⠄⠄⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⡼⣿⣿⣿⣿⣿⣿⣆⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣼⣿⣿⣿⣿⣿⣿⠟⠄\n⠄⠄⠄⠄⠄⠈⠛⢿⣿⣿⣿⣿⣿⣷⣽⣿⣿⣿⡿⣫⣾⣿⣿⣿⣿⣿⣿⣿⣿⠟⢁⣯⣽⣿⣿⣿⣿⠏⠄⠄\n⠄⠄⠄⠄⠄⠄⠄⠄⠉⠻⢿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⣿⡿⣿⡫⠙⠄⠄⢸⣿⣿⣿⣿⣿⠋⠄⠄⢠\n⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠙⠻⠿⣿⣿⣿⡿⢿⣛⣿⣭⣾⣿⣿⡇⠂⠄⠄⢸⣿⣿⣿⣿⠃⠄⠄⠄⠄\n⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⡀⠰⣶⣿⣿⣿⣿⣿⣿⣿⠿⠃⠄⢙⡄⡫⣿⣿⣿⠃⠄⠄⠄⠄⠄\n⠄⢀⠄⣤⣤⣄⣀⠄⠄⠄⠄⠄⠄⠄⣾⠄⠄⣿⣿⣿⣿⣿⣿⠛⠁⠄⣠⡴⠛⠇⢹⣿⡯⠫⢀⣀⣀⣀⣀⣠\n⣴⣿⣷⣿⣿⣿⣿⣿⠋⠄⠄⣰⡇⢰⡏⠄⢠⣿⣿⣿⡿⠋⠄⢀⣠⠞⠁⢀⠄⠄⢸⡿⣱⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⠃⠄⠄⢠⣿⣁⣼⡇⠄⢸⣿⡿⠋⠄⢀⣤⠋⠄⣠⣾⡟⠄⠄⠸⣴⣿⣿⣿⣿⣿⣿⣿⣿\n`,\n];\n\nconst getRandomBanner = () => {\n    const randomIndex = Math.floor(Math.random() * asciiArts.length);\n    return asciiArts[randomIndex];\n};\n\nmodule.exports = { getRandomBanner };\n"
  },
  {
    "path": "utils/captcha.js",
    "content": "/* eslint-disable no-undef */\n/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/*\n * BENDE VARRR 🤙🤙🤙🤙\n * https://open.spotify.com/track/1Ma4fLShd0hpZSNH37mEkR?si=fa52965f89434731\n */\n\n/**\n * Evaluates the page content to determine if the captcha verification is successful.\n *\n * @returns {Promise<boolean>} A promise that resolves to `true` if the captcha verification text is found, otherwise `false`.\n */\n\nconst { connect } = require(\"puppeteer-real-browser\");\nconst yargs = require(\"yargs\");\nconst path = require(\"path\");\nconst config = require(\"../config.json\");\nconst fse = require(\"fs-extra\");\nconst argv = yargs.options({\n    token: {\n        alias: \"t\",\n        describe: \"User token\",\n        type: \"string\",\n        demandOption: true,\n    },\n    userid: {\n        alias: \"uid\",\n        describe: \"User ID\",\n        type: \"string\",\n        demandOption: true,\n    },\n}).argv;\n\nconst delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));\n\nconst adblockcachedir = path.resolve(__dirname, \"./adblockcache\");\n\nif (!fse.existsSync(adblockcachedir)) {\n    fse.mkdirSync(adblockcachedir, { recursive: true });\n}\n\n(async () => {\n    let captchasolved = false;\n    let socketcaptchastatus = false;\n    let socket;\n    function connectWebSocket() {\n        socket = new WebSocket(`ws://localhost:${config.socket.expressport}`);\n\n        socket.onopen = function () {\n            console.log(\"WebSocket bağlantısı başarılı.\");\n        };\n\n        socket.onmessage = function (event) {\n            const data = JSON.parse(event.data);\n            console.log(\"Gelen mesaj:\", data);\n            if (data.action == \"closechrome\" && data.userid == argv.userid) {\n                socketcaptchastatus = true;\n            }\n        };\n\n        socket.onerror = function (error) {\n            console.error(\"WebSocket Hatası:\", error);\n        };\n\n        socket.onclose = function () {\n            console.log(\"ws baglantisi yok amk\");\n\n            setTimeout(connectWebSocket, 1000);\n        };\n    }\n\n    connectWebSocket();\n\n    while (true) {\n        const authUrl =\n            \"https://discord.com/api/v9/oauth2/authorize?client_id=408785106942164992&response_type=code&redirect_uri=https%3A%2F%2Fowobot.com%2Fapi%2Fauth%2Fdiscord%2Fredirect&scope=identify%20guilds%20email%20guilds.members.read\";\n        const extentionpopup =\n            \"chrome-extension://pnfknmgliopmihbgmclhbalafndgmjkl/popup/popup.html\";\n\n        const userToken = argv.token;\n\n        const extensionPath = path.resolve(\n            __dirname,\n            \"../utils/hcaptchasolver\",\n        );\n\n        const { browser, page } = await connect({\n            headless: false,\n            turnstile: false,\n            args: [\n                `--disable-extensions-except=${extensionPath}`,\n                `--load-extension=${extensionPath}`,\n            ],\n            plugins: [\n                require(\"puppeteer-extra-plugin-adblocker\")({\n                    blockTrackers: true,\n                    useCache: true,\n                    cacheDir: adblockcachedir,\n                }),\n            ],\n        });\n\n        await page.setViewport({\n            width: 1200,\n            height: 1080,\n        });\n\n        await page.goto(extentionpopup);\n\n        await delay(3000);\n\n        await page.evaluateOnNewDocument((token) => {\n            window.localStorage.setItem(\"token\", `\"${token}\"`);\n        }, userToken);\n\n        await page.goto(authUrl, { waitUntil: \"load\" });\n\n        await page.waitForSelector(\"div.action__3d3b0 button\", {\n            visible: true,\n        });\n        await page.locator(\"div.action__3d3b0 button\").setTimeout(3000).click();\n\n        await page.waitForNavigation({ waitUntil: \"load\" });\n\n        const redirectedUrl = page.url();\n        console.log(`Redirected URL: ${redirectedUrl}`);\n\n        const isLoggedIn = await page.evaluate(() => {\n            return !document.body.innerText.includes(\"Unauthorized\");\n        });\n        const isInvalidAuth = await page.evaluate(() => {\n            return document.body.innerText.includes(\n                'Invalid \"code\" in request.',\n            );\n        });\n        const isRateLimit = await page.evaluate(() => {\n            return document.body.innerText.includes(\n                \"You are being rate limited for requesting too many tokens\",\n            );\n        });\n        if (isRateLimit) {\n            console.log(\"Rate limit detected. Waiting for 5 minutes...\");\n            await browser.close();\n            await delay(300000);\n            continue;\n        } else if (isLoggedIn && !isInvalidAuth) {\n            console.log(\"Authorization successful! The user has logged in.\");\n\n            const captchaUrl = `https://owobot.com/captcha`;\n            console.log(`Captcha URL: ${captchaUrl}`);\n\n            await page.goto(captchaUrl, { waitUntil: \"load\" });\n            console.log(\"Waiting for the captcha to be solved...\");\n            let refreshcount = 0;\n            while (true) {\n                if (socketcaptchastatus) {\n                    console.log(\"Socket message received, closing browser...\");\n                    captchasolved = true;\n                    await browser.close();\n                    process.exit(1);\n                    break;\n                }\n                let needsRefresh = false;\n                const isCaptchaOk = await page.evaluate(() => {\n                    if (\n                        [\n                            \"I have verified that you're a human\",\n                            \"You're free to go! c:\",\n                        ].some((t) => document.body.innerText.includes(t))\n                    ) {\n                        return true;\n                    } else {\n                        return false;\n                    }\n                });\n\n                const isCaptchaFail = await page.evaluate(() => {\n                    if (\n                        [\n                            \"Captcha failed\",\n                            \"Please reload the page and try again\",\n                            \"reload the page\",\n                            \"failed.\",\n                            \"the page and try again.\",\n                        ].some((t) => document.body.innerText.includes(t))\n                    ) {\n                        return true;\n                    } else {\n                        false;\n                    }\n                });\n\n                const iframeHandle = await page.$(\n                    'iframe[src*=\"hcaptcha\"][src*=\"frame=challenge\"]',\n                );\n                let iframeDocument;\n                if (iframeHandle) {\n                    iframe = await iframeHandle.contentFrame();\n\n                    if (iframe) {\n                        const iframecontent = await iframe.evaluate(\n                            () => document.body.innerText,\n                        );\n                        iframeDocument = iframe.contentDocument;\n                        console.log(iframeDocument);\n\n                        const captchaTexts = [\n                            \"Please click on the character that represents a quantity or can be used for counting\",\n                            \"Please click, hold, and drag the shape to complete the pattern\",\n                            \"Please click, hold, and drag one of the elements on the right to complete the pairs\",\n                            \"Please click on the shape that breaks the pattern\",\n                            \"Please click on the object that is not shiny\",\n                            \"Fill the boxes with the required number of objects indicated.\",\n                            \"drag each missing peach\",\n                            \"click, hold and drag\",\n                            \"click, hold, and drag\",\n                            \"click on the shape that breaks the pattern\",\n                        ];\n                        needsRefresh = captchaTexts.some((text) =>\n                            iframecontent.includes(text),\n                        );\n                    }\n                } else {\n                    console.log(\n                        \"Iframe with hcaptcha and frame=challenge not found.\",\n                    );\n                }\n\n                if (isCaptchaOk) {\n                    console.log(\"Successfully solved captcha.\");\n                    captchasolved = true;\n                    break;\n                } else if (isCaptchaFail) {\n                    refreshcount = 0;\n                    needsRefresh = false;\n                    await page.reload({ waitUntil: \"load\" });\n                } else if (needsRefresh) {\n                    console.log(\"Refreshing captcha...\");\n                    if (refreshcount < 1) {\n                        await page.reload({ waitUntil: \"load\" });\n                        refreshcount++;\n                    } else {\n                        /**\n                         * TODO REFRESH BUTON BULMUYOR OE\n                         */\n                        // const refreshButton =\n                        //     await iframeDocument.querySelector(\".refresh.button\");\n                        // if (refreshButton) {\n                        //     await refreshButton.click();\n                        // } else {\n                        //     console.log(\"Refresh button not found\");\n                        // }\n                    }\n                } else {\n                    console.log(\"Captcha not solved yet\");\n                    await delay(1000);\n                }\n            }\n        } else {\n            console.log(\"Authorization failed.\");\n        }\n        if (captchasolved) {\n            await browser.close();\n            process.exit(1);\n            break;\n        }\n    }\n})();\n"
  },
  {
    "path": "utils/function/farm.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Initiates a hunting process in the specified channel.\n * The function will wait if certain global flags are set and will retry hunting after a delay if necessary.\n * It also handles gem usage and inventory checks based on the hunt results.\n *\n * @param {Object} client - The client object representing the bot.\n * @param {Object} channel - The channel object where the hunt command will be sent.\n * @returns {Promise<void>} - A promise that resolves when the hunting process is complete.\n */\n\nconst commandrandomizer = (arr) => arr[Math.floor(Math.random() * arr.length)];\nconst getrand = (min, max) => Math.random() * (max - min) + min;\n\nmodule.exports = async (client) => {\n    let channel = client.channels.cache.get(client.basic.commandschannelid);\n    if (client.config.settings.owoprefix.length <= 0) {\n        client.config.settings.owoprefix = \"owo\";\n    }\n\n    if (client.basic.commands.hunt) {\n        await hunt(client, channel);\n        await client.delay(2000);\n        if (client.basic.commands.battle) await battle(client, channel);\n    } else if (client.basic.commands.battle) await battle(client, channel);\n    else if (client.config.settings.autophrases) {\n        setInterval(() => {\n            elaina2(client, channel);\n        }, 16000);\n    }\n};\n\nasync function hunt(client, channel) {\n    while (\n        client.global.paused ||\n        client.global.captchadetected ||\n        client.global.use ||\n        client.global.inventory ||\n        client.global.checklist ||\n        client.global.hunt\n    ) {\n        await client.delay(16000);\n    }\n\n    let interval = getrand(\n        client.config.interval.hunt.min,\n        client.config.interval.hunt.max,\n    );\n\n    try {\n        channel.sendTyping();\n        if (client.global.battle) await client.delay(1500);\n        client.global.hunt = true;\n        let id;\n        await channel\n            .send({\n                content: `${commandrandomizer([\n                    \"owo\",\n                    client.config.settings.owoprefix,\n                ])} ${commandrandomizer([\"h\", \"hunt\"])}`,\n            })\n            .then(async (huntmsg) => {\n                id = huntmsg.id;\n                client.global.total.hunt++;\n                client.broadcast({\n                    action: \"update\",\n                    type: \"hunt\",\n                    progress: client.global.total.hunt,\n                    global: client.global,\n                });\n                client.logger.info(\n                    \"Farm\",\n                    \"Hunt\",\n                    `Total Hunt: ${client.global.total.hunt}`,\n                );\n                if (client.config.settings.inventory.use.gems) {\n                    let message = await getMessage();\n                    async function getMessage() {\n                        return new Promise((resolve) => {\n                            const filter = (msg) =>\n                                (msg.content.includes(\"and caught a\") ||\n                                    msg.content.includes(\"You found:\")) &&\n                                msg.author.id === \"408785106942164992\" &&\n                                msg.channel.id === channel.id &&\n                                msg.id.localeCompare(id) > 0;\n\n                            const listener = (msg) => {\n                                if (filter(msg)) {\n                                    clearTimeout(timer);\n                                    client.off(\"messageCreate\", listener);\n                                    resolve(msg);\n                                }\n                            };\n\n                            const timer = setTimeout(() => {\n                                client.off(\"messageCreate\", listener);\n                                const collector =\n                                    channel.createMessageCollector({\n                                        filter,\n                                        time: 6100,\n                                    });\n                                collector.on(\"collect\", (msg) => {\n                                    if (filter(msg)) {\n                                        collector.stop();\n                                        resolve(msg);\n                                    }\n                                });\n                                collector.on(\"end\", () => resolve(null));\n                            }, 6100);\n\n                            client.on(\"messageCreate\", listener);\n                        });\n                    }\n\n                    if (message == null) {\n                        client.logger.alert(\n                            \"Farm\",\n                            \"Hunt\",\n                            \"Couldn't retrieve hunting result!\",\n                        );\n                        return;\n                    }\n\n                    let huntmsgcontent = message.content;\n                    client.global.gems.need = [];\n                    client.global.gems.use = \"\";\n                    if (huntmsgcontent) {\n                        let requiredGems = [\"gem1\", \"gem3\", \"gem4\"];\n                        requiredGems.forEach((gem) => {\n                            if (!huntmsgcontent.includes(gem)) {\n                                client.global.gems.need.push(gem);\n                            }\n                        });\n\n                        if (client.global.gems.isevent) {\n                            if (!huntmsgcontent.includes(\"star\")) {\n                                if (!client.global.temp.usedevent) {\n                                    client.global.gems.need.push(\"star\");\n                                    client.global.temp.usedevent = true;\n                                } else {\n                                    client.global.gems.isevent = false;\n                                    client.logger.info(\n                                        \"Farm\",\n                                        \"Hunt\",\n                                        \"Event not found\",\n                                    );\n                                }\n                            } else client.global.temp.usedevent = false;\n                        }\n\n                        if (client.global.gems.need.length > 0) {\n                            client.logger.warn(\n                                \"Farm\",\n                                \"Hunt\",\n                                `Missing gems: ${client.global.gems.need}`,\n                            );\n\n                            if (client.basic.commands.inventory) {\n                                setTimeout(() => {\n                                    require(\"./inventory.js\")(client, message);\n                                }, 2000);\n                            } //put it here to only check inv when missing gem\n                        }\n                    }\n                }\n                await client.delay(1000);\n            });\n        if (client.config.settings.autophrases) {\n            await elaina2(client, channel);\n        }\n    } catch (err) {\n        client.logger.alert(\"Farm\", \"Hunt\", \"Error while hunting: \" + err);\n        client.logger.debug(err);\n    } finally {\n        client.global.hunt = false;\n        setTimeout(() => {\n            hunt(client, channel);\n        }, interval);\n    }\n}\n\nasync function battle(client, channel) {\n    while (\n        client.global.paused ||\n        client.global.captchadetected ||\n        client.global.use ||\n        client.global.checklist ||\n        client.global.inventory ||\n        client.global.battle ||\n        !client.basic.commands.battle // prevent quest confiict\n    ) {\n        await client.delay(16000);\n    }\n\n    let interval = getrand(\n        client.config.interval.battle.min,\n        client.config.interval.battle.max,\n    );\n\n    try {\n        channel.sendTyping();\n        if (client.global.hunt) await client.delay(1500);\n        client.global.battle = true;\n\n        await channel\n            .send({\n                content: `${commandrandomizer([\n                    \"owo\",\n                    client.config.settings.owoprefix,\n                ])} ${commandrandomizer([\"b\", \"battle\"])}`,\n            })\n            .then(() => {\n                client.global.total.battle++;\n                client.broadcast({\n                    action: \"update\",\n                    type: \"battle\",\n                    progress: client.global.total.battle,\n                    global: client.global,\n                });\n                client.logger.info(\n                    \"Farm\",\n                    \"Battle\",\n                    `Total Battle: ${client.global.total.battle}`,\n                );\n            });\n        if (client.config.settings.autophrases && !client.basic.commands.hunt) {\n            await elaina2(client, channel);\n        }\n    } catch (err) {\n        client.logger.alert(\"Farm\", \"Battle\", \"Error while battling: \" + err);\n        client.logger.debug(err);\n    } finally {\n        client.global.battle = false;\n        setTimeout(() => {\n            battle(client, channel);\n        }, interval);\n    }\n}\n\nasync function elaina2(client, channel) {\n    if (client.global.captchadetected || client.global.paused) return;\n    client.fs.readFile(\"./phrases/phrases.json\", \"utf8\", async (err, data) => {\n        const phrasesObject = JSON.parse(data);\n        const phrases = phrasesObject.phrases;\n\n        if (!phrases || !phrases.length) {\n            return client.logger.alert(\n                \"Farm\",\n                \"Phrases\",\n                \"Phrases array is undefined or empty.\",\n            );\n        }\n        let result = Math.floor(Math.random() * phrases.length);\n        let ilu = phrases[result];\n\n        channel.sendTyping();\n        await channel.send({ content: ilu });\n        client.logger.info(\"Farm\", \"Phrases\", \"Successfuly sent.\");\n    });\n}\n"
  },
  {
    "path": "utils/function/gamble.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Executes a slot gambling function for a specified client and channel.\n * The function places bets, checks for wins or losses, and adjusts the bet amount accordingly.\n * It also handles delays and retries based on the client's global state.\n *\n * @param {Object} client - The client object containing configuration and global state.\n * @param {Object} channel - The channel object where the slot command will be sent.\n */\n\nconst commandrandomizer = (arr) => arr[Math.floor(Math.random() * arr.length)];\nconst getrand = (min, max) => Math.random() * (max - min) + min;\n\nmodule.exports = async (client) => {\n    if (client.config.settings.owoprefix.length <= 0) {\n        client.config.settings.owoprefix = \"owo\";\n    }\n\n    let gamblechannel = client.channels.cache.get(client.basic.gamblechannelid);\n\n    if (client.basic.commands.gamble.coinflip) {\n        coinflip(client, gamblechannel);\n        if (client.basic.commands.gamble.slot) {\n            await client.delay(4000);\n            slot(client, gamblechannel);\n        }\n    }\n};\n\nasync function coinflip(client, channel) {\n    let defaultBet = client.config.settings.gamble.coinflip.default_amount;\n    let currentBet = defaultBet;\n    let maxBet = client.config.settings.gamble.coinflip.max_amount;\n    let multiplier = client.config.settings.gamble.coinflip.multiplier;\n\n    smol();\n    async function smol() {\n        while (\n            client.global.captchadetected ||\n            client.global.paused ||\n            client.global.inventory ||\n            client.global.checklist\n        ) {\n            await client.delay(16000);\n        }\n        let interval = getrand(\n            client.config.interval.coinflip.min,\n            client.config.interval.coinflip.max,\n        );\n\n        try {\n            channel.sendTyping();\n            const content =\n                commandrandomizer([\"owo\", client.config.settings.owoprefix]) +\n                commandrandomizer([\"coinflip\", \"cf\"]) +\n                \" \" +\n                commandrandomizer([\"heads\", \"tails\", \"h\", \"t\"]) +\n                \" \" +\n                currentBet;\n\n            let id;\n            await channel.send({ content: `${content}` }).then((message) => {\n                id = message.id;\n                client.global.gamble.coinflip++;\n                client.logger.info(\n                    \"Farm\",\n                    \"Coinflip\",\n                    `Betting: ${currentBet}. Total time: ${client.global.gamble.coinflip}`,\n                );\n\n                const updateCFListener = (oldMsg, newMsg) => {\n                    if (\n                        newMsg.channel.id !== channel.id ||\n                        newMsg.author.id !== \"408785106942164992\" ||\n                        newMsg.id.localeCompare(id) < 0\n                    )\n                        return;\n                    const isWin = newMsg.content.includes(\"and you won\");\n                    const isLoss = newMsg.content.includes(\"and you lost\");\n\n                    if (\n                        (isWin || isLoss) &&\n                        !oldMsg.content.includes(\"and you won\") &&\n                        !oldMsg.content.includes(\"and you lost\")\n                    ) {\n                        client.global.gamble.cowoncywon += isWin\n                            ? currentBet\n                            : -currentBet;\n                        client.logger.info(\n                            \"Farm\",\n                            \"Coinflip\",\n                            `${isWin ? \"Won\" : \"Lost\"} ${currentBet}!`,\n                        );\n                        currentBet = isWin\n                            ? defaultBet\n                            : Math.min(\n                                  Math.round(currentBet * multiplier),\n                                  maxBet,\n                              );\n\n                        client.off(\"messageUpdate\", updateCFListener);\n                        clearTimeout(doublecheck);\n                    }\n                };\n\n                const startCollector = () => {\n                    const filter = (msg) =>\n                        msg.author.id === \"408785106942164992\" &&\n                        msg.id.localeCompare(id) > 0 &&\n                        msg.content.includes(\"and chose\");\n                    const collector = channel.createMessageCollector({\n                        filter,\n                        time: 10000,\n                    });\n\n                    collector.on(\"collect\", (msg) => {\n                        const isWin = msg.content.includes(\"and you won\");\n                        const isLoss = msg.content.includes(\"and you lost\");\n\n                        if (isWin || isLoss) {\n                            client.global.gamble.cowoncywon += isWin\n                                ? currentBet\n                                : -currentBet;\n                            client.logger.info(\n                                \"Farm\",\n                                \"Coinflip\",\n                                `${isWin ? \"Won\" : \"Lost\"} ${currentBet}!`,\n                            );\n                            currentBet = isWin\n                                ? defaultBet\n                                : Math.min(\n                                      Math.round(currentBet * multiplier),\n                                      maxBet,\n                                  );\n                        }\n                    });\n\n                    collector.on(\"end\", (collected) => {\n                        if (collected.size == 0) {\n                            client.global.gamble.coinflip--;\n                            client.logger.warn(\n                                \"Farm\",\n                                \"Coinflip\",\n                                \"Failed to coinflip!\",\n                            );\n                        }\n                    });\n                };\n\n                const doublecheck = setTimeout(() => {\n                    client.off(\"messageUpdate\", updateCFListener);\n                    startCollector();\n                }, 10000);\n\n                client.on(\"messageUpdate\", updateCFListener);\n            });\n        } catch (err) {\n            client.logger.alert(\n                \"Farm\",\n                \"Coinflip\",\n                \"Error while coinfliping: \" + err,\n            );\n            client.logger.debug(err);\n        } finally {\n            client.broadcast({\n                action: \"update\",\n                type: \"coinflip\",\n                progress: client.global.gamble.coinflip,\n                cow: client.global.gamble.cowoncywon,\n                global: client.global,\n            });\n            setTimeout(() => {\n                smol();\n            }, interval);\n        }\n    }\n}\n\nfunction slot(client, channel) {\n    let defaultBet = client.config.settings.gamble.slot.default_amount;\n    let currentBet = defaultBet;\n    let maxBet = client.config.settings.gamble.slot.max_amount;\n    let multiplier = client.config.settings.gamble.slot.multiplier;\n\n    smol();\n    async function smol() {\n        while (\n            client.global.captchadetected ||\n            client.global.paused ||\n            client.global.inventory ||\n            client.global.checklist\n        ) {\n            await client.delay(16000);\n        }\n        let interval = getrand(\n            client.config.interval.slot.min,\n            client.config.interval.slot.max,\n        );\n\n        try {\n            channel.sendTyping();\n            const content =\n                commandrandomizer([\"owo\", client.config.settings.owoprefix]) +\n                commandrandomizer([\"slots\", \"s\"]) +\n                \" \" +\n                currentBet;\n\n            let id;\n            await channel.send({ content: `${content}` }).then((message) => {\n                id = message.id;\n                client.global.gamble.slot++;\n                client.logger.info(\n                    \"Farm\",\n                    \"Slot\",\n                    `Betting: ${currentBet}. Total time: ${client.global.gamble.slot}`,\n                );\n\n                const updateSlotListener = (oldMsg, newMsg) => {\n                    if (\n                        newMsg.channel.id !== channel.id ||\n                        newMsg.author.id !== \"408785106942164992\" ||\n                        newMsg.id.localeCompare(id) < 0\n                    )\n                        return;\n\n                    const isWin =\n                        newMsg.content.includes(\"and won\") &&\n                        !newMsg.content.includes(\"nothing...\");\n                    const isLoss =\n                        newMsg.content.includes(\"and won nothing...\");\n\n                    if (isWin || isLoss) {\n                        if (isWin) {\n                            const match = newMsg.content.match(\n                                /and won <:\\w+:\\d+> (\\d[\\d,]*)/,\n                            );\n                            let won =\n                                Number(match[1].replace(/,/g, \"\")) - currentBet;\n                            client.global.gamble.cowoncywon += won;\n                            client.logger.info(\"Farm\", \"Slot\", `Won ${won}!`);\n                            currentBet = defaultBet;\n                        } else if (isLoss) {\n                            client.global.gamble.cowoncywon -= currentBet;\n                            client.logger.info(\n                                \"Farm\",\n                                \"Slot\",\n                                `Lost ${currentBet}!`,\n                            );\n                            currentBet = Math.min(\n                                Math.round(currentBet * multiplier),\n                                maxBet,\n                            );\n                        }\n\n                        client.off(\"messageUpdate\", updateSlotListener);\n                        clearTimeout(doublecheck);\n                    }\n                };\n\n                const startCollector = () => {\n                    const filter = (msg) =>\n                        msg.author.id === \"408785106942164992\" &&\n                        msg.id.localeCompare(id) > 0 &&\n                        msg.content.includes(\"SLOTS\");\n                    const collector = channel.createMessageCollector({\n                        filter,\n                        time: 10000,\n                    });\n\n                    collector.on(\"collect\", (msg) => {\n                        if (\n                            msg.content.includes(\"and won\") &&\n                            !msg.content.includes(\"nothing...\")\n                        ) {\n                            const match = msg.content.match(\n                                /and won <:\\w+:\\d+> (\\d[\\d,]*)/,\n                            );\n                            let won =\n                                Number(match[1].replace(/,/g, \"\")) - currentBet;\n                            client.global.gamble.cowoncywon += won;\n                            client.logger.info(\"Farm\", \"Slot\", `Won ${won}!`);\n                            currentBet = defaultBet;\n                        } else if (msg.content.includes(\"and won nothing...\")) {\n                            client.global.gamble.cowoncywon -= currentBet;\n                            client.logger.info(\n                                \"Farm\",\n                                \"Slot\",\n                                `Lost ${currentBet}!`,\n                            );\n                            currentBet = Math.min(\n                                Math.round(currentBet * multiplier),\n                                maxBet,\n                            );\n                        }\n                    });\n\n                    collector.on(\"end\", (collected) => {\n                        if (collected.size == 0) {\n                            client.global.gamble.slot--;\n                            client.logger.warn(\n                                \"Farm\",\n                                \"Slot\",\n                                \"Failed to slot!\",\n                            );\n                        }\n                    });\n                };\n\n                const doublecheck = setTimeout(() => {\n                    client.off(\"messageUpdate\", updateSlotListener);\n                    startCollector();\n                }, 10000);\n\n                client.on(\"messageUpdate\", updateSlotListener);\n            });\n        } catch (err) {\n            client.logger.alert(\"Farm\", \"Slot\", \"Error while sloting: \" + err);\n            client.logger.debug(err);\n        } finally {\n            client.broadcast({\n                action: \"update\",\n                type: \"slot\",\n                progress: client.global.gamble.slot,\n                cow: client.global.gamble.cowoncywon,\n                global: client.global,\n            });\n            setTimeout(() => {\n                smol();\n            }, interval);\n        }\n    }\n}\n"
  },
  {
    "path": "utils/function/huntbot.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/*\n *idea to remember:\n *first run: check if huntbot is ready (whether non-embed (hunt result) or embed (running or free))\n *then, if free or found hunt result, run the huntbot again with captcha solver\n *if fail, report to the user (idk how)\n */\n\n/**\n * Handles the huntbot functionality by sending a command to the specified channel,\n * waiting for a response, and processing the response to determine the next action.\n *\n * @async\n * @function huntbotHandler\n * @param {Object} client - The client object representing the bot.\n * @param {Object} channel - The channel object where the command will be sent.\n * @returns {Promise<void>} - A promise that resolves when the handler completes its execution.\n */\n\nmodule.exports = async (client) => {\n    let channel;\n    if (client.basic.huntbotchannelid.length <= 0) {\n        client.logger.alert(\n            \"Bot\",\n            \"Config\",\n            \"Huntbot channelid is blank, using main channelid...\",\n        );\n        channel = client.channels.cache.get(client.basic.commandschannelid);\n    } else channel = client.channels.cache.get(client.basic.huntbotchannelid);\n    if (client.config.settings.owoprefix.length <= 0) {\n        client.config.settings.owoprefix = \"owo\";\n    }\n\n    await huntbotHandler(client, channel);\n};\n\nconst commandrandomizer = (arr) => arr[Math.floor(Math.random() * arr.length)];\n\nasync function huntbotHandler(client, channel) {\n    client.logger.info(\"Farm\", \"Huntbot\", \"Getting huntbot...\");\n\n    channel\n        .send({\n            content: `${commandrandomizer([\n                \"owo\",\n                client.config.settings.owoprefix,\n            ])} ${commandrandomizer([\"huntbot\", \"hb\"])}`,\n        })\n        .then(async (msg) => {\n            let id = msg.id;\n            let message = await getMessage();\n\n            async function getMessage() {\n                return new Promise((resolve) => {\n                    const filter = (msg) =>\n                        (msg.content.includes(\"BEEP BOOP. I AM BACK WITH\") ||\n                            (msg.embeds[0] &&\n                                msg.embeds[0].author &&\n                                msg.embeds[0].author.name.includes(\n                                    \"HuntBot\",\n                                ))) &&\n                        msg.author.id === \"408785106942164992\" &&\n                        msg.channel.id === channel.id &&\n                        msg.id.localeCompare(id) > 0;\n\n                    const listener = (msg) => {\n                        if (filter(msg)) {\n                            clearTimeout(timer);\n                            client.off(\"messageCreate\", listener);\n                            resolve(msg);\n                        }\n                    };\n\n                    const timer = setTimeout(() => {\n                        client.off(\"messageCreate\", listener);\n                        const collector = channel.createMessageCollector({\n                            filter,\n                            time: 6100,\n                        });\n                        collector.on(\"collect\", (msg) => {\n                            if (filter(msg)) {\n                                collector.stop();\n                                resolve(msg);\n                            }\n                        });\n                        collector.on(\"end\", () => resolve(null));\n                    }, 6100);\n\n                    client.on(\"messageCreate\", listener);\n                });\n            }\n\n            if (message == null) {\n                if (client.global.paused || client.global.captchadetected) {\n                    while (true) {\n                        if (\n                            !(\n                                client.global.paused ||\n                                client.global.captchadetected\n                            )\n                        )\n                            break;\n                        await client.delay(3000);\n                    }\n                }\n                client.logger.alert(\n                    \"Farm\",\n                    \"HuntBot\",\n                    \"Couldn't find huntbot message! Retry after 61 seconds.\",\n                );\n                setTimeout(async () => {\n                    await huntbotHandler(client, channel);\n                }, 61000);\n                return;\n            }\n\n            if (!message.embeds[0]) {\n                client.global.temp.huntbot.essence = true;\n                client.global.temp.huntbot.maxtime =\n                    client.basic.commands.huntbot.maxtime;\n                setTimeout(async () => {\n                    await triggerHB(client, channel);\n                }, 6100);\n            } else {\n                let isHunting = false;\n\n                for (const field of message.embeds[0].fields) {\n                    if (field.name.includes(\"is currently hunting\")) {\n                        const regex = /(\\d+)([SMHD])/g;\n                        const matches = field.value.matchAll(regex);\n\n                        let milliseconds = 0;\n\n                        for (const match of matches) {\n                            const time = parseInt(match[1]);\n                            const unit = match[2];\n\n                            if (unit === \"S\") {\n                                milliseconds += time * 1000;\n                            } else if (unit === \"M\") {\n                                milliseconds += time * 60 * 1000;\n                            } else if (unit === \"H\") {\n                                milliseconds += time * 60 * 60 * 1000;\n                            } else if (unit === \"D\") {\n                                milliseconds += time * 24 * 60 * 60 * 1000;\n                            }\n                        }\n\n                        if (milliseconds > 0) {\n                            client.global.temp.huntbot.recalltime =\n                                milliseconds + 5000;\n                        } else {\n                            if (\n                                client.global.paused ||\n                                client.global.captchadetected\n                            ) {\n                                while (true) {\n                                    if (\n                                        !(\n                                            client.global.paused ||\n                                            client.global.captchadetected\n                                        )\n                                    )\n                                        break;\n                                    await client.delay(3000);\n                                }\n                            }\n                            client.logger.alert(\n                                \"Farm\",\n                                \"HuntBot\",\n                                \"Couldn't find valid duration format! Retry after 61 seconds.\",\n                            );\n                            setTimeout(async () => {\n                                await huntbotHandler(client, channel);\n                            }, 61000);\n                            return;\n                        }\n\n                        isHunting = true;\n                    }\n                    if (field.name.includes(\"Duration\")) {\n                        const regex = /(\\d+(\\.\\d+)?)H/;\n                        const match = field.name.match(regex);\n\n                        if (match) {\n                            const duration = match[1];\n                            client.global.temp.huntbot.maxtime = duration;\n                        } else {\n                            client.global.temp.huntbot.maxtime =\n                                client.basic.commands.huntbot.maxtime;\n                        }\n                    }\n                    if (field.name.includes(\"Animal Essence\")) {\n                        const match = field.name.match(\n                            /Animal Essence - `(\\d[\\d,]*)`/,\n                        );\n                        if (match) {\n                            const essence = parseInt(\n                                match[1].replace(/,/g, \"\"),\n                                10,\n                            );\n                            if (essence > 0) {\n                                client.global.temp.huntbot.essence = true;\n                            }\n                        }\n                    }\n                }\n\n                if (isHunting) {\n                    client.logger.warn(\n                        \"Farm\",\n                        \"Huntbot\",\n                        `Currently hunting. It will restart in ${client.global.temp.huntbot.recalltime} milliseconds`,\n                    );\n                    //? will it work\n                    setTimeout(async () => {\n                        await huntbotHandler(client, channel);\n                    }, client.global.temp.huntbot.recalltime);\n                } else {\n                    setTimeout(async () => {\n                        await triggerHB(client, channel);\n                    }, 6100);\n                }\n            }\n\n            if (client.global.temp.huntbot.essence) {\n                await client.delay(6100);\n                await upgradeHuntbot(client, channel);\n            }\n        });\n}\n\nasync function triggerHB(client, channel) {\n    await channel\n        .send({\n            content: `${commandrandomizer([\n                \"owo\",\n                client.config.settings.owoprefix,\n            ])} ${commandrandomizer([\"autohunt\", \"huntbot\", \"hb\", \"ah\"])} ${\n                client.global.temp.huntbot.maxtime\n            }h`,\n        })\n        .then(async (msg) => {\n            let id = msg.id;\n            let message = await getMessage();\n            async function getMessage() {\n                return new Promise((resolve) => {\n                    const filter = (msg) =>\n                        msg.content.includes(\"Here is your password\") &&\n                        msg.author.id === \"408785106942164992\" &&\n                        msg.channel.id === channel.id &&\n                        msg.id.localeCompare(id) > 0;\n\n                    const listener = (msg) => {\n                        if (filter(msg)) {\n                            clearTimeout(timer);\n                            client.off(\"messageCreate\", listener);\n                            resolve(msg);\n                        }\n                    };\n\n                    const timer = setTimeout(() => {\n                        client.off(\"messageCreate\", listener);\n                        const collector = channel.createMessageCollector({\n                            filter,\n                            time: 6100,\n                        });\n                        collector.on(\"collect\", (msg) => {\n                            if (filter(msg)) {\n                                collector.stop();\n                                resolve(msg);\n                            }\n                        });\n                        collector.on(\"end\", () => resolve(null));\n                    }, 6100);\n\n                    client.on(\"messageCreate\", listener);\n                });\n            }\n\n            if (message == null) {\n                client.logger.alert(\n                    \"Farm\",\n                    \"HuntBot\",\n                    \"Couldn't find huntbot captcha message! Retry in 10 mins...\",\n                );\n                setTimeout(async () => {\n                    await huntbotHandler(client, channel);\n                }, 601000);\n                return;\n            }\n\n            const attachment = message.attachments.first();\n            const captchaImageURL = attachment.url;\n\n            if (!captchaImageURL) {\n                client.logger.warn(\n                    \"Farm\",\n                    \"Huntbot\",\n                    \"Couldn't get captcha image URL! Retry in 10 mins\",\n                );\n                setTimeout(async () => {\n                    await huntbotHandler(client, channel);\n                }, 601000);\n                return;\n            }\n\n            let isstartedhunting = false;\n            client.logger.info(\"Farm\", \"Huntbot\", \"Solving captcha...\");\n            const solution =\n                await require(\"../huntbot_captcha/huntbotcaptcha.js\")(\n                    captchaImageURL,\n                );\n            client.logger.info(\n                \"Farm\",\n                \"Huntbot\",\n                \"Captcha solve completed. Starting huntbot...\",\n            );\n            await client.delay(1600);\n            await channel\n                .send({\n                    content: `${commandrandomizer([\n                        \"owo\",\n                        client.config.settings.owoprefix,\n                    ])} ${commandrandomizer([\n                        \"autohunt\",\n                        \"huntbot\",\n                        \"hb\",\n                        \"ah\",\n                    ])} ${client.global.temp.huntbot.maxtime}h ${solution}`,\n                })\n                .then(async (msg) => {\n                    let id = msg.id;\n                    let huntbotsuccessmsg = await getHuntbotSuccessMessage();\n                    async function getHuntbotSuccessMessage() {\n                        return new Promise((resolve) => {\n                            const filter = (msg) =>\n                                msg.content.includes(\"YOU SPENT\") &&\n                                msg.author.id === \"408785106942164992\" &&\n                                msg.channel.id === channel.id &&\n                                msg.id.localeCompare(id) > 0;\n                            const listener = (msg) => {\n                                if (filter(msg)) {\n                                    clearTimeout(timer);\n                                    client.off(\"messageCreate\", listener);\n                                    resolve(msg);\n                                }\n                            };\n                            const timer = setTimeout(() => {\n                                client.off(\"messageCreate\", listener);\n                                const collector =\n                                    channel.createMessageCollector({\n                                        filter,\n                                        time: 6100,\n                                    });\n                                collector.on(\"collect\", (msg) => {\n                                    if (filter(msg)) {\n                                        collector.stop();\n                                        resolve(msg);\n                                    }\n                                });\n                                collector.on(\"end\", () => resolve(null));\n                            }, 6100);\n                            client.on(\"messageCreate\", listener);\n                        });\n                    }\n\n                    const regex = /(\\d+)([SMHD])/g;\n                    const matches = huntbotsuccessmsg.content.matchAll(regex);\n                    let milliseconds = 0;\n                    for (const match of matches) {\n                        const time = parseInt(match[1]);\n                        const unit = match[2];\n                        if (unit === \"S\") {\n                            milliseconds += time * 1000;\n                        } else if (unit === \"M\") {\n                            milliseconds += time * 60 * 1000;\n                        } else if (unit === \"H\") {\n                            milliseconds += time * 60 * 60 * 1000;\n                        } else if (unit === \"D\") {\n                            milliseconds += time * 24 * 60 * 60 * 1000;\n                        }\n                    }\n                    if (milliseconds > 0) {\n                        client.global.temp.huntbot.recalltime =\n                            milliseconds + 5000;\n                        isstartedhunting = true;\n                    } else {\n                        if (\n                            client.global.paused ||\n                            client.global.captchadetected\n                        ) {\n                            while (true) {\n                                if (\n                                    !(\n                                        client.global.paused ||\n                                        client.global.captchadetected\n                                    )\n                                )\n                                    break;\n                                await client.delay(3000);\n                            }\n                        }\n                        client.logger.alert(\n                            \"Farm\",\n                            \"HuntBot\",\n                            \"Couldn't find valid duration format! Retry after 61 seconds.\",\n                        );\n                        setTimeout(async () => {\n                            await huntbotHandler(client, channel);\n                        }, 61000);\n                        return;\n                    }\n                });\n            if (isstartedhunting) {\n                client.global.total.huntbot++;\n                client.broadcast({\n                    action: \"update\",\n                    type: \"hunt\",\n                    progress: client.global.total.hunt,\n                    global: client.global,\n                });\n                client.logger.info(\n                    \"Farm\",\n                    \"Huntbot\",\n                    `Huntbot has started to hunt. It will restart in ${client.global.temp.huntbot.recalltime} milliseconds`,\n                );\n\n                //? will it work\n                setTimeout(async () => {\n                    await huntbotHandler(client, channel);\n                }, client.global.temp.huntbot.recalltime);\n            }\n        });\n}\n\nasync function upgradeHuntbot(client, channel) {\n    if (!client.basic.commands.huntbot.upgrade) return;\n\n    channel.send({\n        content: `${commandrandomizer([\n            \"owo\",\n            client.config.settings.owoprefix,\n        ])} ${commandrandomizer([\"upg\", \"upgrade\"])} ${\n            client.basic.commands.huntbot.upgradetype\n        } all`,\n    });\n\n    client.logger.info(\n        \"Farm\",\n        \"Huntbot\",\n        \"Upgraded trait: \" + client.basic.commands.huntbot.upgradetype,\n    );\n}\n"
  },
  {
    "path": "utils/function/inventory.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Handles the inventory management for the client.\n *\n * @param {Object} client - The client object.\n * @param {Object} channel - The channel object where the inventory command will be sent.\n * @returns {Promise<void>} - A promise that resolves when the inventory process is complete.\n *\n * @description\n * This function checks the client's global state for captcha detection, pause status, and inventory status.\n * If any of these conditions are met, the function returns early. Otherwise, it sends a typing indicator\n * and retrieves the inventory by sending a command to the channel. It then processes the inventory message\n * to extract item codes and uses specific items based on the client's configuration and requirements.\n *\n * The function also handles gem usage based on the client's rare level and required gems. It uses a delay\n * between actions to ensure proper execution and updates the client's global state accordingly.\n */\n\nconst commandrandomizer = (arr) => arr[Math.floor(Math.random() * arr.length)];\n\nmodule.exports = async (client) => {\n    let channel = client.channels.cache.get(client.basic.commandschannelid);\n    if (client.config.settings.owoprefix.length <= 0) {\n        client.config.settings.owoprefix = \"owo\";\n    }\n\n    await inventory(client, channel);\n};\n\nasync function inventory(client, channel) {\n    if (\n        client.global.captchadetected ||\n        client.global.paused ||\n        client.global.inventory\n    )\n        return;\n    channel.sendTyping();\n    client.global.inventory = true;\n    client.logger.info(\n        \"Farm\",\n        \"Inventory\",\n        `Paused: ${client.global.inventory}! Retrieving inventory...`,\n    );\n    let id;\n    await channel\n        .send({\n            content: `owo ${commandrandomizer([\"inv\", \"inventory\"])}`,\n        })\n        .then(async (invmessage) => {\n            id = invmessage.id;\n            let message = await getMessage();\n            async function getMessage() {\n                return new Promise((resolve) => {\n                    const filter = (msg) =>\n                        msg.content.includes(\"Inventory =\") &&\n                        msg.author.id === \"408785106942164992\" &&\n                        msg.channel.id === channel.id &&\n                        msg.id.localeCompare(id) > 0;\n\n                    const listener = (msg) => {\n                        if (filter(msg)) {\n                            clearTimeout(timer);\n                            client.off(\"messageCreate\", listener);\n                            resolve(msg);\n                        }\n                    };\n\n                    const timer = setTimeout(() => {\n                        client.off(\"messageCreate\", listener);\n                        const collector = channel.createMessageCollector({\n                            filter,\n                            time: 6100,\n                        });\n                        collector.on(\"collect\", (msg) => {\n                            if (filter(msg)) {\n                                collector.stop();\n                                resolve(msg);\n                            }\n                        });\n                        collector.on(\"end\", () => resolve(null));\n                    }, 6100);\n\n                    client.on(\"messageCreate\", listener);\n                });\n            }\n\n            if (message == null) {\n                client.global.inventory = false;\n                client.logger.alert(\n                    \"Farm\",\n                    \"inventory\",\n                    \"Couldn't retrieve inventory\",\n                );\n                return;\n            }\n\n            if (client.global.captchadetected || client.global.paused) {\n                client.global.inventory = false;\n                return;\n            }\n            let invcontent = message.content;\n\n            let values = [];\n            let regex = /`([^`]+)`/g;\n            let match;\n            while ((match = regex.exec(invcontent)) !== null) {\n                values.push(match[1]);\n            }\n\n            if (\n                client.global.gems.need.length > 0 &&\n                client.config.settings.inventory.use.gems\n            ) {\n                client.global.gems.need.forEach((gem) => {\n                    /**\n                     *! don't touch the spaces\n                     */\n                    switch (gem) {\n                        case \"gem1\":\n                            switch (true) {\n                                case values.includes(\"057\") &&\n                                    client.global.rareLevel >= 7:\n                                    client.global.gems.use += \"57 \";\n                                    break;\n                                case values.includes(\"056\") &&\n                                    client.global.rareLevel >= 6:\n                                    client.global.gems.use += \"56 \";\n                                    break;\n                                case values.includes(\"055\") &&\n                                    client.global.rareLevel >= 5:\n                                    client.global.gems.use += \"55 \";\n                                    break;\n                                case values.includes(\"054\") &&\n                                    client.global.rareLevel >= 4:\n                                    client.global.gems.use += \"54 \";\n                                    break;\n                                case values.includes(\"053\") &&\n                                    client.global.rareLevel >= 3:\n                                    client.global.gems.use += \"53 \";\n                                    break;\n                                case values.includes(\"052\") &&\n                                    client.global.rareLevel >= 2:\n                                    client.global.gems.use += \"52 \";\n                                    break;\n                                case values.includes(\"051\") &&\n                                    client.global.rareLevel >= 1:\n                                    client.global.gems.use += \"51 \";\n                                    break;\n                                default:\n                                    break;\n                            }\n                            break;\n                        case \"gem3\":\n                            switch (true) {\n                                case values.includes(\"071\") &&\n                                    client.global.rareLevel >= 7:\n                                    client.global.gems.use += \"71 \";\n                                    break;\n                                case values.includes(\"070\") &&\n                                    client.global.rareLevel >= 6:\n                                    client.global.gems.use += \"70 \";\n                                    break;\n                                case values.includes(\"069\") &&\n                                    client.global.rareLevel >= 5:\n                                    client.global.gems.use += \"69 \";\n                                    break;\n                                case values.includes(\"068\") &&\n                                    client.global.rareLevel >= 4:\n                                    client.global.gems.use += \"68 \";\n                                    break;\n                                case values.includes(\"067\") &&\n                                    client.global.rareLevel >= 3:\n                                    client.global.gems.use += \"67 \";\n                                    break;\n                                case values.includes(\"066\") &&\n                                    client.global.rareLevel >= 2:\n                                    client.global.gems.use += \"66 \";\n                                    break;\n                                case values.includes(\"065\") &&\n                                    client.global.rareLevel >= 1:\n                                    client.global.gems.use += \"65 \";\n                                    break;\n                                default:\n                                    break;\n                            }\n                            break;\n                        case \"gem4\":\n                            switch (true) {\n                                case values.includes(\"078\") &&\n                                    client.global.rareLevel >= 7:\n                                    client.global.gems.use += \"78 \";\n                                    break;\n                                case values.includes(\"077\") &&\n                                    client.global.rareLevel >= 6:\n                                    client.global.gems.use += \"77 \";\n                                    break;\n                                case values.includes(\"076\") &&\n                                    client.global.rareLevel >= 5:\n                                    client.global.gems.use += \"76 \";\n                                    break;\n                                case values.includes(\"075\") &&\n                                    client.global.rareLevel >= 4:\n                                    client.global.gems.use += \"75 \";\n                                    break;\n                                case values.includes(\"074\") &&\n                                    client.global.rareLevel >= 3:\n                                    client.global.gems.use += \"74 \";\n                                    break;\n                                case values.includes(\"073\") &&\n                                    client.global.rareLevel >= 2:\n                                    client.global.gems.use += \"73 \";\n                                    break;\n                                case values.includes(\"072\") &&\n                                    client.global.rareLevel >= 1:\n                                    client.global.gems.use += \"72 \";\n                                    break;\n                                default:\n                                    break;\n                            }\n                            break;\n                        case \"star\":\n                            switch (true) {\n                                case values.includes(\"085\") &&\n                                    client.global.rareLevel >= 7:\n                                    client.global.gems.use += \"85 \";\n                                    break;\n                                case values.includes(\"084\") &&\n                                    client.global.rareLevel >= 6:\n                                    client.global.gems.use += \"84 \";\n                                    break;\n                                case values.includes(\"083\") &&\n                                    client.global.rareLevel >= 5:\n                                    client.global.gems.use += \"83 \";\n                                    break;\n                                case values.includes(\"082\") &&\n                                    client.global.rareLevel >= 4:\n                                    client.global.gems.use += \"82 \";\n                                    break;\n                                case values.includes(\"081\") &&\n                                    client.global.rareLevel >= 3:\n                                    client.global.gems.use += \"81 \";\n                                    break;\n                                case values.includes(\"080\") &&\n                                    client.global.rareLevel >= 2:\n                                    client.global.gems.use += \"80 \";\n                                    break;\n                                case values.includes(\"079\") &&\n                                    client.global.rareLevel >= 1:\n                                    client.global.gems.use += \"79 \";\n                                    break;\n                                default:\n                                    break;\n                            }\n                            break;\n                        default:\n                            break;\n                    }\n                });\n            }\n\n            await client.delay(4000);\n\n            for (let value of values) {\n                switch (value) {\n                    case \"050\":\n                        if (client.config.settings.inventory.use.lootbox)\n                            await use(\n                                client,\n                                channel,\n                                `${commandrandomizer([\"lb\", \"lootbox\"])}`,\n                                \"all\",\n                                \"inventory\",\n                            );\n                        await client.delay(2500);\n                        break;\n                    case \"049\":\n                        if (client.config.settings.inventory.use.fabledlootbox)\n                            await use(\n                                client,\n                                channel,\n                                \"lootbox fabled\",\n                                \"all\",\n                                \"inventory\",\n                            );\n                        await client.delay(2500);\n                        break;\n                    case \"100\":\n                        if (client.config.settings.inventory.use.crate)\n                            await use(\n                                client,\n                                channel,\n                                `${commandrandomizer([\"wc\", \"crate\"])}`,\n                                \"all\",\n                                \"inventory\",\n                            );\n                        await client.delay(2500);\n                        break;\n                    default:\n                        break;\n                }\n            }\n\n            if (client.global.gems.use.length > 0) {\n                await use(\n                    client,\n                    channel,\n                    `use ${client.global.gems.use}`,\n                    \"\",\n                    \"inventory\",\n                );\n                client.global.gems.need = [];\n                client.global.gems.use = \"\";\n            }\n            await client.delay(3000);\n\n            client.global.inventory = false;\n            client.logger.info(\n                \"Farm\",\n                \"Inventory\",\n                `Paused: ${client.global.inventory}`,\n            );\n        });\n}\n\nasync function use(client, channel, item, count, where) {\n    if (\n        client.global.captchadetected ||\n        (client.global.paused && where !== \"inventory\")\n    )\n        return;\n    client.global.use = true;\n    await channel.send({\n        content: `${commandrandomizer([\n            \"owo\",\n            client.config.settings.owoprefix,\n        ])} ${item} ${count}`,\n    });\n    client.logger.info(\"Farm\", \"Use\", item);\n    await client.delay(5000);\n    client.global.use = false;\n}\n"
  },
  {
    "path": "utils/function/joingiveaways.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Automatically joins giveaways in specified channels.\n *\n * @param {object} client - The Discord client instance.\n * @returns {Promise<void>} - A promise that resolves when the function completes.\n *\n * @async\n * @function joingiveaways\n *\n * @example\n * // Call the function with the Discord client instance\n * joingiveaways(client);\n */\n\nconst fs = require(\"fs\");\nconst path = require(\"path\");\nconst CHANNEL_IDS = [\n    \"1099453684691243098\",\n    \"1168797748343099444\",\n    \"1168797827464429618\",\n];\nconst OWO_ID = \"408785106942164992\";\n\nmodule.exports = async (client) => {\n    let ENTERED_GIVEAWAYS_FILE = path.join(\n        __dirname,\n        \"../../data/enteredGiveaways.json\",\n    );\n    if (client.global.devmod) {\n        ENTERED_GIVEAWAYS_FILE = path.join(\n            __dirname,\n            \"../../developer/enteredGiveaways.json\",\n        );\n    }\n    let enteredGiveaways = {};\n\n    if (fs.existsSync(ENTERED_GIVEAWAYS_FILE)) {\n        enteredGiveaways = JSON.parse(fs.readFileSync(ENTERED_GIVEAWAYS_FILE));\n    }\n\n    await joingiveaways(client);\n\n    async function joingiveaways(client) {\n        const mylovetiffani = client.guilds.cache.get(\"420104212895105044\");\n\n        for (const channelId of CHANNEL_IDS) {\n            const channel = mylovetiffani.channels.cache.get(channelId);\n\n            if (!channel || channel.type !== \"GUILD_TEXT\") {\n                client.logger.alert(\n                    \"Farm\",\n                    \"Auto Join Giveaways\",\n                    `Channel (${channelId}) not found or is not a text channel.`,\n                );\n                continue;\n            }\n            client.logger.info(\n                \"Farm\",\n                \"Auto Join Giveaways\",\n                `Searching for messages in channel ${channel.name}...`,\n            );\n\n            try {\n                let fetchedMessages = await channel.messages.fetch({\n                    limit: 100,\n                });\n                fetchedMessages = fetchedMessages.filter(\n                    (msg) => msg.author.id === OWO_ID,\n                );\n\n                const filteredMessages = fetchedMessages.filter(\n                    (msg) => msg.embeds.length > 0 || msg.components.length > 0,\n                );\n\n                if (filteredMessages.size > 0) {\n                    const buttonQueue = [];\n\n                    filteredMessages.forEach((msg) => {\n                        msg.components.forEach((row) => {\n                            row.components.forEach((component) => {\n                                if (\n                                    component.type === \"BUTTON\" &&\n                                    !component.disabled\n                                ) {\n                                    if (\n                                        !hasUserEntered(msg.id, client.user.id)\n                                    ) {\n                                        buttonQueue.push({\n                                            customId: component.customId,\n                                            message: msg,\n                                        });\n                                    }\n                                }\n                            });\n                        });\n                    });\n\n                    if (buttonQueue.length > 0) {\n                        client.logger.info(\n                            \"Farm\",\n                            \"Auto Join Giveaways\",\n                            `${buttonQueue.length} active and not joined giveaway queued.`,\n                        );\n                        await pressButtonsSequentially(client, buttonQueue);\n                    } else {\n                        client.logger.warn(\n                            \"Farm\",\n                            \"Auto Join Giveaways\",\n                            `You have joined all the giveaways in the channel ${channel.name}`,\n                        );\n                    }\n                } else {\n                    client.logger.warn(\n                        \"Farm\",\n                        \"Auto Join Giveaways\",\n                        \"No giveaways found.\",\n                    );\n                }\n            } catch (error) {\n                client.logger.alert(\n                    \"Farm\",\n                    \"Auto Join Giveaways\",\n                    `Error retrieving giveaway messages from ${channel.name}: ${error}`,\n                );\n            }\n        }\n        saveEnteredGiveaways();\n    }\n\n    async function pressButtonsSequentially(client, buttonQueue) {\n        for (const { customId, message } of buttonQueue) {\n            try {\n                client.logger.info(\n                    \"Farm\",\n                    \"Auto Join Giveaways\",\n                    \"Joining the giveaway...\",\n                );\n                await message.clickButton(customId);\n                client.logger.info(\n                    \"Farm\",\n                    \"Auto Join Giveaways\",\n                    \"Successfully joined the giveaway.\",\n                );\n                client.global.total.giveaway++;\n                client.broadcast({\n                    action: \"update\",\n                    type: \"giveaway\",\n                    progress: client.global.total.giveaway,\n                    global: client.global,\n                });\n                addUserEntry(message.id, client.user.id);\n                await client.delay(15000);\n            } catch (error) {\n                client.logger.alert(\n                    \"Farm\",\n                    \"Auto Join Giveaways\",\n                    `Error joining giveaway: ${error}`,\n                );\n            }\n        }\n    }\n\n    function hasUserEntered(messageId, userId) {\n        if (!enteredGiveaways[userId]) {\n            enteredGiveaways[userId] = [];\n        }\n        return enteredGiveaways[userId].includes(messageId);\n    }\n\n    function addUserEntry(messageId, userId) {\n        if (!enteredGiveaways[userId]) {\n            enteredGiveaways[userId] = [];\n        }\n        if (!enteredGiveaways[userId].includes(messageId)) {\n            enteredGiveaways[userId].push(messageId);\n        }\n    }\n\n    function saveEnteredGiveaways() {\n        fs.writeFileSync(\n            ENTERED_GIVEAWAYS_FILE,\n            JSON.stringify(enteredGiveaways, null, 2),\n        );\n    }\n\n    client.on(\"messageCreate\", async (message) => {\n        if (\n            CHANNEL_IDS.includes(message.channel.id) &&\n            message.author.id === OWO_ID &&\n            message.embeds.length > 0\n        ) {\n            const buttonQueue = [];\n\n            message.components.forEach((row) => {\n                row.components.forEach((component) => {\n                    if (\n                        component.type === \"BUTTON\" &&\n                        !component.disabled &&\n                        !hasUserEntered(message.id, client.user.id)\n                    ) {\n                        buttonQueue.push({\n                            customId: component.customId,\n                            message: message,\n                        });\n                    }\n                });\n            });\n\n            if (buttonQueue.length > 0) {\n                client.logger.info(\n                    \"Farm\",\n                    \"Auto Join Giveaways\",\n                    `New giveaway detected in ${message.channel.name}, joining...`,\n                );\n                await pressButtonsSequentially(client, buttonQueue);\n            }\n        }\n    });\n};\n"
  },
  {
    "path": "utils/function/luck.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Executes the \"curse\" command in the specified channel at random intervals.\n * The function will wait if certain global conditions are met (e.g., captcha detected, paused, inventory open, checklist open).\n * It sends a typing indicator before sending the \"curse\" command.\n * The command can be customized based on the configuration settings.\n * The function recursively calls itself after a random interval.\n *\n * @param {Object} client - The client object containing global settings and methods.\n * @param {Object} channel - The channel object where the command will be sent.\n * @returns {Promise<void>} - A promise that resolves when the function completes.\n */\n\nconst commandrandomizer = (arr) => arr[Math.floor(Math.random() * arr.length)];\nconst getrand = (min, max) => Math.random() * (max - min) + min;\n\nmodule.exports = async (client) => {\n    let channel = client.channels.cache.get(client.basic.commandschannelid);\n    if (client.config.settings.owoprefix.length <= 0) {\n        client.config.settings.owoprefix = \"owo\";\n    }\n\n    if (client.basic.commands.pray) pray(client, channel);\n    else if (client.basic.commands.curse) curse(client, channel);\n};\n\nasync function pray(client, channel) {\n    while (\n        client.global.captchadetected ||\n        client.global.paused ||\n        client.global.inventory ||\n        client.global.checklist\n    ) {\n        await client.delay(16000);\n    }\n    let interval = getrand(\n        client.config.interval.pray.min,\n        client.config.interval.pray.max,\n    );\n    try {\n        channel.sendTyping();\n        let content;\n\n        if (client.basic.commands.tomain) {\n            content =\n                commandrandomizer([\"owo\", client.config.settings.owoprefix]) +\n                \"pray <@\" +\n                client.config.main.userid +\n                \">\";\n        } else {\n            content =\n                commandrandomizer([\"owo\", client.config.settings.owoprefix]) +\n                \"pray\";\n        }\n        channel\n            .send({\n                content: `${content}`,\n            })\n            .then(() => {\n                client.global.total.pray++;\n                client.logger.info(\n                    \"Farm\",\n                    \"Pray\",\n                    `Total prayed time: ${client.global.total.pray}`,\n                );\n\n                client.broadcast({\n                    action: \"update\",\n                    type: \"pray\",\n                    progress: client.global.total.pray,\n                    global: client.global,\n                });\n            });\n    } catch (err) {\n        client.logger.alert(\"Farm\", \"Pray\", \"Error while praying: \" + err);\n        client.logger.debug(err);\n    } finally {\n        setTimeout(() => {\n            pray(client, channel);\n        }, interval);\n    }\n}\n\nasync function curse(client, channel) {\n    while (\n        client.global.captchadetected ||\n        client.global.paused ||\n        client.global.inventory ||\n        client.global.checklist\n    ) {\n        await client.delay(16000);\n    }\n    let interval = getrand(\n        client.config.interval.pray.min,\n        client.config.interval.pray.max,\n    );\n    try {\n        channel.sendTyping();\n        let content;\n\n        if (client.basic.commands.tomain) {\n            content =\n                commandrandomizer([\"owo\", client.config.settings.owoprefix]) +\n                \"curse  <@\" +\n                client.config.main.userid +\n                \">\";\n        } else {\n            content =\n                commandrandomizer([\"owo\", client.config.settings.owoprefix]) +\n                \"curse\";\n        }\n        channel\n            .send({\n                content: `${content}`,\n            })\n            .then(() => {\n                client.global.total.curse++;\n                client.logger.info(\n                    \"Farm\",\n                    \"Curse\",\n                    `Total cursed time: ${client.global.total.curse}`,\n                );\n\n                client.broadcast({\n                    action: \"update\",\n                    type: \"curse\",\n                    progress: client.global.total.curse,\n                    global: client.global,\n                });\n            });\n    } catch (err) {\n        client.logger.alert(\"Farm\", \"Curse\", \"Error while cursing: \" + err);\n        client.logger.debug(err);\n    } finally {\n        setTimeout(() => {\n            curse(client, channel);\n        }, interval);\n    }\n}\n"
  },
  {
    "path": "utils/function/quest.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Handles the questing process for the client.\n *\n * @param {Object} client - The client object.\n * @param {Object} channel - The channel object where the quest command will be sent.\n * @param {Object} mainSender - The main sender object for duo quests.\n * @param {Object} extraSender - The extra sender object for duo quests.\n *\n * @returns {Promise<void>} - A promise that resolves when the quest handling process is complete.\n */\n\nlet type = \"single\";\nlet mainclient, extraclient, mainSender, extraSender;\nlet mainready = false;\nlet extraready = false;\nconst commandrandomizer = (arr) => arr[Math.floor(Math.random() * arr.length)];\nconst getrand = (min, max) => Math.random() * (max - min) + min;\n\nmodule.exports = async (client) => {\n    let channel;\n\n    if (client.config.extra.enable && client.config.extra.token.length > 0)\n        type = \"duo\";\n\n    if (client.config.settings.owoprefix.length <= 0) {\n        client.config.settings.owoprefix = \"owo\";\n    }\n    if (client.global.type == \"Main\") {\n        mainclient = client;\n        channel = client.channels.cache.get(client.basic.autoquestchannelid);\n        extraSender = client.channels.cache.get(\n            client.config.extra.autoquestchannelid,\n        );\n        mainready = true;\n    }\n    if (client.global.type == \"Extra\") {\n        extraclient = client;\n        channel = client.channels.cache.get(client.basic.autoquestchannelid);\n        mainSender = client.channels.cache.get(\n            client.config.main.autoquestchannelid,\n        );\n        extraready = true;\n    }\n\n    client.logger.warn(\"Farm\", \"Quest\", \"Waiting\");\n\n    while (\n        (type == \"duo\" && (!mainready || !extraready)) ||\n        (type == \"single\" && !mainready)\n    ) {\n        await client.delay(1600);\n        if (\n            (type == \"duo\" && mainready && extraready) ||\n            (type == \"single\" && mainready)\n        ) {\n            client.logger.info(\"Farm\", \"Quest\", \"Ready!\");\n            break;\n        }\n    }\n\n    questHandler(client, channel, mainSender, extraSender);\n};\n\nasync function questHandler(client, channel, mainSender, extraSender) {\n    while (client.global.captchadetected || client.global.paused) {\n        await client.delay(16000);\n    }\n\n    try {\n        client.logger.info(\"Farm\", \"Questing\", \"Getting quest...\");\n        let id;\n        channel.sendTyping();\n        channel\n            .send({\n                content: `${commandrandomizer([\n                    \"owo\",\n                    client.config.settings.owoprefix,\n                ])} ${commandrandomizer([\"q\", \"quest\"])}`,\n            })\n            .then(async (questmsg) => {\n                id = questmsg.id;\n                let message = await getMessage();\n                async function getMessage() {\n                    return new Promise((resolve) => {\n                        const filter = (msg) =>\n                            msg.embeds[0] &&\n                            msg.embeds[0].author &&\n                            msg.embeds[0].author.name.includes(\"Quest Log\") &&\n                            msg.channel.id === channel.id &&\n                            msg.author.id === \"408785106942164992\";\n\n                        const listener = (msg) => {\n                            if (filter(msg) && msg.id.localeCompare(id) > 0) {\n                                clearTimeout(timer);\n                                client.off(\"messageCreate\", listener);\n                                resolve(msg);\n                            }\n                        };\n\n                        const timer = setTimeout(() => {\n                            client.logger.warn(\n                                \"Farm\",\n                                \"Quest\",\n                                \"Rechecking quest...\",\n                            );\n                            client.off(\"messageCreate\", listener);\n                            const result = (message) =>\n                                message.embeds[0].author.name.includes(\n                                    \"Quest Log\",\n                                );\n                            const collector = channel.createMessageCollector({\n                                result,\n                                time: 16000,\n                            });\n                            collector.on(\"collect\", (msg) => {\n                                if (\n                                    msg.author.id === \"408785106942164992\" &&\n                                    msg.id.localeCompare(id) > 0\n                                ) {\n                                    resolve(msg);\n                                }\n                            });\n                            resolve(null);\n                        }, 16000);\n\n                        client.on(\"messageCreate\", listener);\n                    });\n                }\n\n                if (message == null) {\n                    if (client.global.paused || client.global.captchadetected) {\n                        while (true) {\n                            if (\n                                !(\n                                    client.global.paused ||\n                                    client.global.captchadetected\n                                )\n                            )\n                                break;\n                            await client.delay(3000);\n                        }\n                    }\n                    client.logger.alert(\n                        \"Farm\",\n                        \"Quest\",\n                        \"Cannot get quest! Recheck after 61 seconds.\",\n                    );\n                    setTimeout(() => {\n                        questHandler(client, channel);\n                    }, 61000);\n                    return;\n                }\n\n                let questcontent = message.embeds[0].description;\n                let quests = [];\n                //never regex embed again, using manual method\n                //wait this is split into multiple line to that is why regex not work\n                const questLines = questcontent\n                    .split(/\\n(?=\\*\\*\\d+\\.)/)\n                    .filter((line) => line.startsWith(\"**\"));\n\n                questLines.forEach((line) => {\n                    const title = line.match(/\\*\\*\\d+\\.\\s(.+?)\\*\\*/)[1];\n\n                    const rewardGroup = line.match(\n                        /Reward:\\`\\s*(?<reward>\\d*)\\s*<:(?<rewardtype>[\\w]+):\\d+>/,\n                    );\n                    const reward =\n                        rewardGroup && rewardGroup.groups\n                            ? rewardGroup.groups.reward\n                            : \"\";\n                    const type =\n                        rewardGroup && rewardGroup.groups\n                            ? rewardGroup.groups.rewardtype\n                            : \"\";\n\n                    const progressGroup = line.match(\n                        /Progress:\\s*\\[(\\d+)\\/(\\d+)\\]/,\n                    );\n                    const [progress1, progress2] = progressGroup\n                        ? [\n                              parseInt(progressGroup[1]),\n                              parseInt(progressGroup[2]),\n                          ]\n                        : [0, 0];\n\n                    const isLocked = line.includes(\"🔒 Locked\");\n                    quests.push({\n                        title,\n                        reward,\n                        type,\n                        pro1: progress1,\n                        pro2: progress2,\n                        isLocked,\n                    });\n                });\n\n                await client.delay(1600);\n\n                if (questcontent.includes(\"You finished all of your quests!\")) {\n                    client.logger.info(\n                        \"Farm\",\n                        \"Quest\",\n                        \"All quests completed!\",\n                    );\n                    client.global.quest.title = \"All quests completed!\";\n                    client.global.quest.reward = \"\";\n                    client.global.quest.progress = \"\";\n                } else {\n                    let selectedQuest = false;\n                    for (const quest of quests) {\n                        if (!quest.isLocked) {\n                            switch (true) {\n                                case quest.title.includes(\"Say 'owo'\"):\n                                    questOwO(client, channel, quest);\n                                    selectedQuest = true;\n                                    break;\n                                case quest.title.includes(\"Gamble\"):\n                                    if (\n                                        !client.basic.commands.gamble\n                                            .coinflip &&\n                                        !client.basic.commands.gamble.slot\n                                    ) {\n                                        questGamble(client, channel, quest);\n                                        selectedQuest = true;\n                                    }\n                                    break;\n                                case quest.title.includes(\n                                    \"Use an action command on someone\",\n                                ):\n                                    questActionOther(client, channel, quest);\n                                    selectedQuest = true;\n                                    break;\n                                default:\n                                    break;\n                            }\n                            if (type == \"duo\" && !selectedQuest) {\n                                switch (true) {\n                                    case quest.title.includes(\n                                        \"Have a friend curse you\",\n                                    ):\n                                        questCurse(\n                                            client,\n                                            channel,\n                                            quest,\n                                            mainSender,\n                                            extraSender,\n                                        );\n                                        selectedQuest = true;\n                                        break;\n                                    case quest.title.includes(\n                                        \"Have a friend pray to you\",\n                                    ):\n                                        questPray(\n                                            client,\n                                            channel,\n                                            quest,\n                                            mainSender,\n                                            extraSender,\n                                        );\n                                        selectedQuest = true;\n                                        break;\n                                    case quest.title.includes(\n                                        \"Battle with a friend\",\n                                    ):\n                                        questBattle(\n                                            client,\n                                            channel,\n                                            quest,\n                                            mainSender,\n                                            extraSender,\n                                        );\n                                        selectedQuest = true;\n                                        break;\n                                    case quest.title.includes(\n                                        \"Receive a cookie from\",\n                                    ) &&\n                                        mainclient.global.temp.usedcookie ==\n                                            false &&\n                                        extraclient.global.temp.usedcookie ==\n                                            false:\n                                        questCookie(\n                                            client,\n                                            channel,\n                                            quest,\n                                            mainSender,\n                                            extraSender,\n                                        );\n                                        selectedQuest = true;\n                                        break;\n                                    case quest.title.includes(\n                                        \"Have a friend use an action command\",\n                                    ):\n                                        questActionMe(\n                                            client,\n                                            channel,\n                                            quest,\n                                            mainSender,\n                                            extraSender,\n                                        );\n                                        selectedQuest = true;\n                                        break;\n                                    default:\n                                        break;\n                                }\n                            }\n                        }\n\n                        if (selectedQuest == true) {\n                            client.logger.info(\n                                \"Farm\",\n                                \"Quest\",\n                                `Quest found: ${quest.title}`,\n                            );\n                            let rwKind = \"\";\n                            switch (true) {\n                                case quest.type == \"weaponshard\":\n                                    rwKind = \" Weapon Shard\";\n                                    break;\n                                case quest.type == \"cowoncy\":\n                                    rwKind = \" Cowoncy\";\n                                    break;\n                                case quest.type == \"box\":\n                                    rwKind = \"Bunch of lootbox\";\n                                    break;\n                                case quest.type == \"crate\":\n                                    rwKind = \"Bunch of weapon crate\";\n                                    break;\n                            }\n                            client.global.quest.title = quest.title;\n                            client.global.quest.reward = quest.reward + rwKind;\n                            client.global.quest.progress =\n                                quest.pro1 + \" / \" + quest.pro2;\n\n                            client.broadcast({\n                                action: \"update\",\n                                type: \"quest\",\n                                global: client.global,\n                            });\n                            break;\n                        }\n                    }\n\n                    if (!selectedQuest) {\n                        client.logger.info(\n                            \"Farm\",\n                            \"Quest\",\n                            `No active quest found!`,\n                        );\n\n                        client.global.quest.title = \"No active quest found\";\n                        client.global.quest.reward = \"\";\n                        client.global.quest.progress =\n                            \"Recheck after 61 seconds\";\n                    }\n                }\n            });\n    } catch (err) {\n        client.logger.alert(\n            \"Farm\",\n            \"Quest\",\n            \"Error while getting quest: \" + err + \"\\nRecheck after 61 seconds.\",\n        );\n        client.logger.debug(err);\n        setTimeout(() => {\n            questHandler(client, channel);\n        }, 61000);\n    }\n}\n\nasync function questOwO(client, channel, quest) {\n    while (quest.pro1 - 10 < quest.pro2) {\n        while (client.global.captchadetected || client.global.paused)\n            await client.delay(16000);\n\n        try {\n            channel.sendTyping();\n            channel\n                .send({\n                    content: `${commandrandomizer([\"owo\", \"Owo\", \"owO\", \"OwO\"])}`,\n                })\n                .then(async () => {\n                    quest.pro1++;\n                    client.global.quest.progress =\n                        quest.pro1 + \" / \" + quest.pro2;\n                });\n            await client.delay(getrand(12000, 16000));\n        } catch (err) {\n            client.logger.alert(\n                \"Farm\",\n                \"Quest\",\n                \"Error while doing quest: \" + err,\n            );\n            client.logger.debug(err);\n            quest.pro1--;\n            client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n        }\n    }\n    client.global.quest.progress = \"Completed!\";\n\n    setTimeout(() => {\n        questHandler(client, channel);\n    }, 16000);\n}\n\nasync function questGamble(client, channel, quest) {\n    while (quest.pro1 < quest.pro2) {\n        while (client.global.captchadetected || client.global.paused)\n            await client.delay(16000);\n\n        try {\n            channel.sendTyping();\n            channel\n                .send({\n                    content: `${commandrandomizer([\n                        \"owo\",\n                        \"Owo\",\n                        \"owO\",\n                        \"OwO\",\n                    ])} ${commandrandomizer([\n                        \"cf\",\n                        \"coinflip\",\n                    ])} ${commandrandomizer([\"head\", \"h\", \"t\", \"tail\"])}`,\n                })\n                .then(async () => {\n                    quest.pro1++;\n                    client.global.quest.progress =\n                        quest.pro1 + \" / \" + quest.pro2;\n                });\n            await client.delay(getrand(12000, 16000));\n        } catch (err) {\n            client.logger.alert(\n                \"Farm\",\n                \"Quest\",\n                \"Error while doing quest: \" + err,\n            );\n            client.logger.debug(err);\n            quest.pro1--;\n            client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n        }\n    }\n    client.global.quest.progress = \"Completed!\";\n\n    setTimeout(() => {\n        questHandler(client, channel);\n    }, 16000);\n}\n\nasync function questActionOther(client, channel, quest) {\n    while (quest.pro1 < quest.pro2) {\n        while (client.global.captchadetected || client.global.paused)\n            await client.delay(16000);\n\n        try {\n            channel.sendTyping();\n            channel\n                .send({\n                    content: `${commandrandomizer([\n                        \"owo\",\n                        \"Owo\",\n                        \"owO\",\n                        \"OwO\",\n                    ])} ${commandrandomizer([\n                        \"cuddle\",\n                        \"hug\",\n                        \"kiss\",\n                        \"lick\",\n                        \"nom\",\n                        \"pat\",\n                        \"poke\",\n                        \"slap\",\n                        \"bite\",\n                        \"punch\",\n                        \"wave\",\n                        \"snuggle\",\n                        \"highfive\",\n                    ])} <@408785106942164992>`,\n                })\n                .then(async () => {\n                    quest.pro1++;\n                    client.global.quest.progress =\n                        quest.pro1 + \" / \" + quest.pro2;\n                });\n            await client.delay(getrand(12000, 16000));\n        } catch (err) {\n            client.logger.alert(\n                \"Farm\",\n                \"Quest\",\n                \"Error while doing quest: \" + err,\n            );\n            client.logger.debug(err);\n            quest.pro1--;\n            client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n        }\n    }\n    client.global.quest.progress = \"Completed!\";\n\n    setTimeout(() => {\n        questHandler(client, channel);\n    }, 16000);\n}\n\n//==============DUO QUEST==============\n\n/**\n * @description Curse current token by other.\n */\nasync function questCurse(client, channel, quest, mainSender, extraSender) {\n    let resetProp = false;\n    if (client.global.type == \"Main\") {\n        //mean main found quest: need other curse\n        if (client.config.extra.commands.curse) {\n            client.config.extra.commands.curse = false; //prevent self curse\n            resetProp = true;\n        }\n        while (quest.pro1 - 1 < quest.pro2) {\n            while (client.global.captchadetected || client.global.paused)\n                await client.delay(16000);\n\n            try {\n                mainSender.sendTyping();\n                mainSender\n                    .send({\n                        //so it will need extra to curse to main\n                        content: `${commandrandomizer([\n                            \"owo\",\n                            client.config.settings.owoprefix,\n                        ])} curse <@${mainclient.basic.userid}>`,\n                    })\n                    .then(async () => {\n                        quest.pro1++;\n                        client.global.quest.progress =\n                            quest.pro1 + \" / \" + quest.pro2;\n                    });\n                await client.delay(321000);\n            } catch (err) {\n                client.logger.alert(\n                    \"Farm\",\n                    \"Quest\",\n                    \"Error while doing quest: \" + err,\n                );\n                client.logger.debug(err);\n                quest.pro1--;\n                client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n            }\n        }\n        if (resetProp) client.config.extra.commands.curse = true;\n    } else if (client.global.type == \"Extra\") {\n        if (client.config.main.commands.curse) {\n            client.config.main.commands.curse = false;\n            resetProp = true;\n        }\n        while (quest.pro1 - 1 < quest.pro2) {\n            while (client.global.captchadetected || client.global.paused)\n                await client.delay(16000);\n\n            try {\n                extraSender.sendTyping();\n                extraSender\n                    .send({\n                        content: `${commandrandomizer([\n                            \"owo\",\n                            client.config.settings.owoprefix,\n                        ])} curse <@${extraclient.basic.userid}>`,\n                    })\n                    .then(async () => {\n                        quest.pro1++;\n                        client.global.quest.progress =\n                            quest.pro1 + \" / \" + quest.pro2;\n                    });\n                await client.delay(321000);\n            } catch (err) {\n                client.logger.alert(\n                    \"Farm\",\n                    \"Quest\",\n                    \"Error while doing quest: \" + err,\n                );\n                client.logger.debug(err);\n                quest.pro1--;\n                client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n            }\n        }\n        if (resetProp) client.config.main.commands.curse = true;\n    }\n    client.global.quest.progress = \"Completed!\";\n\n    setTimeout(() => {\n        questHandler(client, channel, mainSender, extraSender);\n    }, 16000);\n}\n\nasync function questPray(client, channel, quest, mainSender, extraSender) {\n    let resetProp = false;\n    if (client.global.type == \"Main\") {\n        if (client.config.extra.commands.pray) {\n            client.config.extra.commands.pray = false;\n            resetProp = true;\n        }\n        while (quest.pro1 - 1 < quest.pro2) {\n            while (client.global.captchadetected || client.global.paused)\n                await client.delay(16000);\n\n            try {\n                mainSender.sendTyping();\n                mainSender\n                    .send({\n                        content: `${commandrandomizer([\n                            \"owo\",\n                            client.config.settings.owoprefix,\n                        ])} pray <@${mainclient.basic.userid}>`,\n                    })\n                    .then(async () => {\n                        quest.pro1++;\n                        client.global.quest.progress =\n                            quest.pro1 + \" / \" + quest.pro2;\n                    });\n                await client.delay(321000);\n            } catch (err) {\n                client.logger.alert(\n                    \"Farm\",\n                    \"Quest\",\n                    \"Error while doing quest: \" + err,\n                );\n                client.logger.debug(err);\n                quest.pro1--;\n                client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n            }\n        }\n        if (resetProp) client.config.extra.commands.pray = true;\n    } else if (client.global.type == \"Extra\") {\n        if (client.config.main.commands.pray) {\n            client.config.main.commands.pray = false;\n            resetProp = true;\n        }\n        while (quest.pro1 - 1 < quest.pro2) {\n            while (client.global.captchadetected || client.global.paused)\n                await client.delay(16000);\n\n            try {\n                extraSender.sendTyping();\n                extraSender\n                    .send({\n                        content: `${commandrandomizer([\n                            \"owo\",\n                            client.config.settings.owoprefix,\n                        ])} pray <@${extraclient.basic.userid}>`,\n                    })\n                    .then(async () => {\n                        quest.pro1++;\n                        client.global.quest.progress =\n                            quest.pro1 + \" / \" + quest.pro2;\n                    });\n                await client.delay(321000);\n            } catch (err) {\n                client.logger.alert(\n                    \"Farm\",\n                    \"Quest\",\n                    \"Error while doing quest: \" + err,\n                );\n                client.logger.debug(err);\n                quest.pro1--;\n                client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n            }\n        }\n        if (resetProp) client.config.main.commands.pray = true;\n    }\n    client.global.quest.progress = \"Completed!\";\n\n    setTimeout(() => {\n        questHandler(client, channel, mainSender, extraSender);\n    }, 16000);\n}\n\nasync function questBattle(client, channel, quest, mainSender, extraSender) {\n    await client.delay(16000);\n    let resetProp = false;\n    if (client.global.type == \"Main\") {\n        if (client.basic.commands.battle) {\n            client.basic.commands.battle = false;\n            resetProp = true;\n        }\n        while (quest.pro1 < quest.pro2) {\n            while (client.global.captchadetected || client.global.paused)\n                await client.delay(16000);\n\n            try {\n                channel.sendTyping();\n                channel\n                    .send({\n                        content: `${commandrandomizer([\n                            \"owo\",\n                            client.config.settings.owoprefix,\n                        ])} ${commandrandomizer([\"battle\", \"b\"])} <@${\n                            extraclient.basic.userid\n                        }>`,\n                    })\n                    .then(async () => {\n                        await client.delay(4000);\n                        mainSender.sendTyping();\n                        mainSender.send({\n                            content: `${commandrandomizer([\n                                \"owo\",\n                                client.config.settings.owoprefix,\n                            ])}ab`,\n                        });\n                        quest.pro1++;\n                        client.global.quest.progress =\n                            quest.pro1 + \" / \" + quest.pro2;\n                    });\n                await client.delay(16000);\n            } catch (err) {\n                client.logger.alert(\n                    \"Farm\",\n                    \"Quest\",\n                    \"Error while doing quest: \" + err,\n                );\n                client.logger.debug(err);\n                quest.pro1--;\n                client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n            }\n        }\n        if (resetProp) client.basic.commands.battle = true;\n    } else if (client.global.type == \"Extra\") {\n        if (client.basic.commands.battle) {\n            client.basic.commands.battle = false;\n            resetProp = true;\n        }\n        while (quest.pro1 < quest.pro2) {\n            while (client.global.captchadetected || client.global.paused)\n                await client.delay(16000);\n\n            try {\n                channel.sendTyping();\n                channel\n                    .send({\n                        content: `${commandrandomizer([\n                            \"owo\",\n                            client.config.settings.owoprefix,\n                        ])} battle <@${mainclient.basic.userid}>`,\n                    })\n                    .then(async () => {\n                        await client.delay(4000);\n                        channel.sendTyping();\n                        extraSender.send({\n                            content: `${commandrandomizer([\n                                \"owo\",\n                                client.config.settings.owoprefix,\n                            ])}ab`,\n                        });\n                        quest.pro1++;\n                        client.global.quest.progress =\n                            quest.pro1 + \" / \" + quest.pro2;\n                    });\n                await client.delay(16000);\n            } catch (err) {\n                client.logger.alert(\n                    \"Farm\",\n                    \"Quest\",\n                    \"Error while doing quest: \" + err,\n                );\n                client.logger.debug(err);\n                quest.pro1--;\n                client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n            }\n        }\n        if (resetProp) client.basic.commands.battle = true;\n    }\n    client.global.quest.progress = \"Completed!\";\n\n    setTimeout(() => {\n        questHandler(client, channel, mainSender, extraSender);\n    }, 16000);\n}\n\nasync function questCookie(client, channel, quest, mainSender, extraSender) {\n    if (client.global.type == \"Main\") {\n        if (client.global.paused || client.global.captchadetected) {\n            while (true) {\n                if (!(client.global.paused || client.global.captchadetected))\n                    break;\n                await client.delay(3000);\n            }\n        }\n\n        try {\n            mainSender\n                .send({\n                    content: `${commandrandomizer([\n                        \"owo\",\n                        client.config.settings.owoprefix,\n                    ])} cookie <@${mainclient.basic.userid}>`,\n                })\n                .then(async () => {\n                    extraclient.global.temp.usedcookie = true;\n                    quest.pro1++;\n                    client.global.quest.progress =\n                        quest.pro1 + \" / \" + quest.pro2;\n                });\n        } catch (err) {\n            client.logger.alert(\n                \"Farm\",\n                \"Quest\",\n                \"Error while doing quest: \" + err,\n            );\n            client.logger.debug(err);\n            quest.pro1--;\n            client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n        }\n    } else if (client.global.type == \"Extra\") {\n        if (client.global.paused || client.global.captchadetected) {\n            while (true) {\n                if (!(client.global.paused || client.global.captchadetected))\n                    break;\n                await client.delay(3000);\n            }\n        }\n\n        try {\n            extraSender\n                .send({\n                    content: `${commandrandomizer([\n                        \"owo\",\n                        client.config.settings.owoprefix,\n                    ])} cookie <@${extraclient.basic.userid}>`,\n                })\n                .then(async () => {\n                    mainclient.global.temp.usedcookie = true;\n                    quest.pro1++;\n                    client.global.quest.progress =\n                        quest.pro1 + \" / \" + quest.pro2;\n                });\n        } catch (err) {\n            client.logger.alert(\n                \"Farm\",\n                \"Quest\",\n                \"Error while doing quest: \" + err,\n            );\n            client.logger.debug(err);\n            quest.pro1--;\n            client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n        }\n    }\n    client.global.quest.progress = \"Completed!\";\n\n    setTimeout(() => {\n        questHandler(client, channel, mainSender, extraSender);\n    }, 16000);\n}\n\nasync function questActionMe(client, channel, quest, mainSender, extraSender) {\n    if (client.global.type == \"Main\") {\n        while (quest.pro1 < quest.pro2) {\n            if (client.global.paused || client.global.captchadetected) {\n                while (true) {\n                    if (\n                        !(client.global.paused || client.global.captchadetected)\n                    )\n                        break;\n                    await client.delay(3000);\n                }\n            }\n\n            try {\n                mainSender.sendTyping();\n                mainSender\n                    .send({\n                        content: `${commandrandomizer([\n                            \"owo\",\n                            client.config.settings.owoprefix,\n                        ])} ${commandrandomizer([\n                            \"cuddle\",\n                            \"hug\",\n                            \"kiss\",\n                            \"lick\",\n                            \"nom\",\n                            \"pat\",\n                            \"poke\",\n                            \"slap\",\n                            \"bite\",\n                            \"punch\",\n                            \"wave\",\n                            \"snuggle\",\n                            \"highfive\",\n                        ])} <@${mainclient.basic.userid}>`,\n                    })\n                    .then(async () => {\n                        quest.pro1++;\n                        client.global.quest.progress =\n                            quest.pro1 + \" / \" + quest.pro2;\n                    });\n                await client.delay(16000);\n            } catch (err) {\n                client.logger.alert(\n                    \"Farm\",\n                    \"Quest\",\n                    \"Error while doing quest: \" + err,\n                );\n                client.logger.debug(err);\n                quest.pro1--;\n                client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n            }\n        }\n    } else if (client.global.type == \"Extra\") {\n        while (quest.pro1 < quest.pro2) {\n            if (client.global.paused || client.global.captchadetected) {\n                while (true) {\n                    if (\n                        !(client.global.paused || client.global.captchadetected)\n                    )\n                        break;\n                    await client.delay(3000);\n                }\n            }\n\n            try {\n                extraSender.sendTyping();\n                extraSender\n                    .send({\n                        content: `${commandrandomizer([\n                            \"owo\",\n                            client.config.settings.owoprefix,\n                        ])} ${commandrandomizer([\n                            \"cuddle\",\n                            \"hug\",\n                            \"kiss\",\n                            \"lick\",\n                            \"nom\",\n                            \"pat\",\n                            \"poke\",\n                            \"slap\",\n                            \"bite\",\n                            \"punch\",\n                            \"wave\",\n                            \"snuggle\",\n                            \"highfive\",\n                        ])} <@${extraclient.basic.userid}>`,\n                    })\n                    .then(async () => {\n                        quest.pro1++;\n                        client.global.quest.progress =\n                            quest.pro1 + \" / \" + quest.pro2;\n                    });\n                await client.delay(16000);\n            } catch (err) {\n                client.logger.alert(\n                    \"Farm\",\n                    \"Quest\",\n                    \"Error while doing quest: \" + err,\n                );\n                client.logger.debug(err);\n                quest.pro1--;\n                client.global.quest.progress = quest.pro1 + \" / \" + quest.pro2;\n            }\n        }\n    }\n    client.global.quest.progress = \"Completed!\";\n\n    setTimeout(() => {\n        questHandler(client, channel, mainSender, extraSender);\n    }, 16000);\n}\n"
  },
  {
    "path": "utils/function/safety.js",
    "content": "module.exports = async (client) => {\n    let startTime = Date.now();\n    let safetyInterval = client.config.settings.safety.pauseafter * 60 * 1000;\n    let pauseDuration = client.config.settings.safety.pausefor * 60 * 1000;\n    let interval = null;\n\n    const startSafetyCheck = () => {\n        if (interval) return; // Prevent multiple intervals\n        interval = setInterval(() => {\n            let now = Date.now();\n            if (!client.global.paused && now - startTime >= safetyInterval) {\n                client.global.paused = true;\n                client.logger.warn(\n                    \"Bot\",\n                    \"Safety\",\n                    \"Safety paused to reduce bot rate.\",\n                );\n                client.broadcast({\n                    action: \"update\",\n                    type: \"botstatus\",\n                    status: \"Safety paused\",\n                });\n\n                clearInterval(interval);\n                interval = null;\n\n                setTimeout(() => {\n                    if (!client.global.captchadetected) {\n                        client.global.paused = false;\n                        client.logger.warn(\n                            \"Bot\",\n                            \"Safety\",\n                            \"Resuming after a safety pause.\",\n                        );\n                    }\n                    startTime = Date.now();\n                    startSafetyCheck();\n                }, pauseDuration);\n            }\n        }, 1000);\n    };\n\n    startSafetyCheck();\n};\n"
  },
  {
    "path": "utils/function/warn.js",
    "content": "const notifier = require(\"node-notifier\");\nconst config = require(\"../../config.json\");\n\nnotifier.notify({\n    title: \"Captcha Detected!\",\n    message: `Solve the captcha and type ${config.prefix}resume in farm channel`,\n    icon: \"./assets/captcha.png\",\n    sound: true,\n    wait: true,\n    appID: \"OwO Farm Bot Stable\",\n});\n"
  },
  {
    "path": "utils/globalutil.js",
    "content": "/* eslint-disable no-control-regex */\n/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * ! zip updater not working properly, missing variables are not printed when printing back after config backup\n *\n */\n\n/**\n * Backs up the configuration file to a temporary directory.\n *\n * @param {Object} client - The client object that contains the logger.\n * @param {string} configPath - The path to the configuration file to be backed up.\n * @returns {Promise<string>} - A promise that resolves to the path of the backup file.\n * @throws {Error} - Throws an error if the temp directory or config file does not exist, or if the backup fails.\n */\n\nconst path = require(\"path\");\nconst fse = require(\"fs-extra\");\nconst net = require(\"net\");\nconst readline = require(\"readline\");\nexports.askUser = async (question) => {\n    const rl = readline.createInterface({\n        input: process.stdin,\n        output: process.stdout,\n    });\n\n    return new Promise((resolve) => {\n        rl.question(question, (answer) => {\n            rl.close();\n            resolve(answer.trim());\n        });\n    });\n};\n\nexports.verifyconfig = async (client, extrac, config) => {\n    let normal = true;\n    client.logger.info(\"Bot\", \"Config\", \"Verifying Config... Please wait...\");\n    if (\n        config.main.token == config.extra.token &&\n        config.main.token.length > 0\n    ) {\n        normal = false;\n        showerrcoziamlazy(\"Main token is same as extra token!\");\n    }\n    if (config.extra.enable && config.extra.token.length == 0) {\n        normal = false;\n        showerrcoziamlazy(\"Extra token enabled but no token found\");\n    }\n\n    let vars = [\n        config.main.commandschannelid,\n        config.main.huntbotchannelid,\n        config.main.gamblechannelid,\n        config.main.autoquestchannelid,\n        config.extra.commandschannelid,\n        config.extra.huntbotchannelid,\n        config.extra.gamblechannelid,\n        config.extra.autoquestchannelid,\n    ];\n\n    for (let i = 0; i < vars.length; i++) {\n        let c = false;\n        for (let j = i + 1; j < vars.length; j++) {\n            if (vars[i] == vars[j] && vars[i].length > 0) {\n                c = true;\n                normal = false;\n                showerrcoziamlazy(`There are some duplicate channel id!`);\n                console.log(\n                    \"Please use four different channel for one tokentype for best efficiency!\",\n                );\n                console.log(\n                    \"That mean if you use both main and extra, and farm, huntbot, quest and gamble, you need eight channel!\",\n                );\n                break;\n            }\n        }\n        if (c) break;\n    }\n\n    if (config.main.commands.pray && config.main.commands.curse) {\n        config.main.commands.curse = false;\n        client.basic.curse = false;\n\n        showerrcoziamlazy(\n            \"Curse and pray cannot be turn on at the same time! By default pray will be used.\",\n        );\n    }\n    if (config.extra.commands.pray && config.extra.commands.curse) {\n        config.extra.commands.curse = false;\n        client.basic.curse = false;\n        showerrcoziamlazy(\n            \"Curse and pray cannot be turn on at the same time! By default pray will be used.\",\n        );\n    }\n    if (\n        (config.main.commands.gamble.coinflip ||\n            config.main.commands.gamble.slot ||\n            config.extra.commands.gamble.coinflip ||\n            config.extra.commands.gamble.slot) &&\n        (config.settings.gamble.coinflip.default_amount <= 0 ||\n            config.settings.gamble.coinflip.default_amount <= 0)\n    ) {\n        normal = false;\n        showerrcoziamlazy(\"Invalid gamble amount!\");\n    }\n\n    let clients = [client];\n    if (config.extra.enable) clients.push(extrac);\n    for (const client of clients) {\n        if (client.basic.maximum_gem_rarity.length > 0) {\n            switch (client.basic.maximum_gem_rarity.toLowerCase()) {\n                case \"fabled\":\n                    client.global.rareLevel = 7;\n                    break;\n                case \"legendary\":\n                    client.global.rareLevel = 6;\n                    break;\n                case \"mythical\":\n                    client.global.rareLevel = 5;\n                    break;\n                case \"epic\":\n                    client.global.rareLevel = 4;\n                    break;\n                case \"rare\":\n                    client.global.rareLevel = 3;\n                    break;\n                case \"uncommon\":\n                    client.global.rareLevel = 2;\n                    break;\n                case \"common\":\n                    client.global.rareLevel = 1;\n                    break;\n                default:\n                    normal = false;\n                    client.logger.warn(\n                        \"Bot\" + client.chalk.white(\" >> \") + client.global.type,\n                        \"Config\",\n                        \"Gem rarity: Invalid value. Valid value is: \\n\\tfabled, legendary, mythical, epic, rare, uncommon, common\",\n                    ); //not a critical error, no halting\n                    client.global.rareLevel = 7;\n                    break;\n            }\n        }\n\n        if (client.basic.commands.animals) {\n            // let type = \"\";\n            let animaltypes = client.config.animals.animaltype;\n            for (const [type, isEnabled] of Object.entries(animaltypes)) {\n                if (!isEnabled) continue;\n\n                switch (type) {\n                    case \"common\":\n                        client.global.temp.animaltype += \" c\";\n                        break;\n                    case \"uncommon\":\n                        client.global.temp.animaltype += \" u\";\n                        break;\n                    case \"rare\":\n                        client.global.temp.animaltype += \" r\";\n                        break;\n                    case \"epic\":\n                        client.global.temp.animaltype += \" e\";\n                        break;\n                    case \"mythical\":\n                        client.global.temp.animaltype += \" m\";\n                        break;\n                    case \"patreon\":\n                        client.global.temp.animaltype += \" p\";\n                        break;\n                    case \"cpatreon\":\n                        client.global.temp.animaltype += \" cp\";\n                        break;\n                    case \"legendary\":\n                        client.global.temp.animaltype += \" l\";\n                        break;\n                    case \"gem\":\n                        client.global.temp.animaltype += \" g\";\n                        break;\n                    case \"bot\":\n                        client.global.temp.animaltype += \" b\";\n                        break;\n                    case \"distorted\":\n                        client.global.temp.animaltype += \" d\";\n                        break;\n                    case \"fabled\":\n                        client.global.temp.animaltype += \" f\";\n                        break;\n                    case \"special\":\n                        client.global.temp.animaltype += \" s\";\n                        break;\n                    case \"hidden\":\n                        client.global.temp.animaltype += \" h\";\n                        break;\n                    default:\n                        break;\n                }\n            }\n            if (client.global.temp.animaltype.length < 1) {\n                normal = false;\n                client.logger.warn(\n                    \"Bot\" + client.chalk.white(\" >> \") + client.global.type,\n                    \"Config\",\n                    \"Animals: no active animaltype found!?\",\n                );\n            }\n        }\n    }\n\n    if (\n        client.basic.commands.animals ||\n        (config.extra.enable && extrac.basic.commands.animals)\n    ) {\n        if (config.animals.type.sell && config.animals.type.sacrifice) {\n            normal = false;\n            showerrcoziamlazy(\n                \"Sell and sacrifice cannot be turn on at the same time!\",\n            );\n        }\n    }\n\n    const verifyInterval = (\n        type,\n        minValue,\n        minDefault,\n        maxValue,\n        maxDefault,\n    ) => {\n        if (minValue < minDefault) {\n            client.logger.warn(\n                \"Bot\",\n                \"Config\",\n                `${type} min interval is too low, resetting to default!`,\n            );\n            config.interval[type].min = minDefault;\n        }\n        if (maxValue < minDefault || maxValue < minValue) {\n            client.logger.warn(\n                \"Bot\",\n                \"Config\",\n                `${type} max interval is too low or less than min, resetting to default!`,\n            );\n            config.interval[type].max = maxDefault;\n        }\n    };\n\n    const intervals = [\"hunt\", \"battle\", \"pray\", \"coinflip\", \"slot\", \"animals\"];\n    let missingValue = intervals.some(\n        (type) => !config.interval[type].min || !config.interval[type].max,\n    );\n\n    if (missingValue) {\n        showerrcoziamlazy(\"Interval cannot be null!\");\n    } else {\n        verifyInterval(\n            \"hunt\",\n            config.interval.hunt.min,\n            12000,\n            config.interval.hunt.max,\n            16000,\n        );\n        verifyInterval(\n            \"battle\",\n            config.interval.battle.min,\n            12000,\n            config.interval.battle.max,\n            16000,\n        );\n        verifyInterval(\n            \"pray\",\n            config.interval.pray.min,\n            316000,\n            config.interval.pray.max,\n            332000,\n        );\n        verifyInterval(\n            \"coinflip\",\n            config.interval.coinflip.min,\n            12000,\n            config.interval.coinflip.max,\n            16000,\n        );\n        verifyInterval(\n            \"slot\",\n            config.interval.slot.min,\n            12000,\n            config.interval.slot.max,\n            16000,\n        );\n        verifyInterval(\n            \"animals\",\n            config.interval.animals.min,\n            610000,\n            config.interval.animals.max,\n            661000,\n        );\n    }\n    //does it change? idk!\n    function showerrcoziamlazy(err) {\n        client.logger.alert(\"Bot\", \"Config\", \"Config conflict: \" + err);\n    }\n\n    if (normal) {\n        client.logger.info(\n            \"Bot\",\n            \"Config\",\n            \"Config verified, things seem to be okey :3\",\n        );\n    } else {\n        setTimeout(() => {\n            client.logger.warn(\"Bot\", \"Config\", \"Exiting...\");\n            process.exit(0);\n        }, 1600);\n        client.logger.alert(\n            \"Bot\",\n            \"Config\",\n            \"Config is not verified or contains errors, please check the logs and fix the errors!\",\n        );\n    }\n};\n\nexports.isPortInUse = async (port, host = \"localhost\") => {\n    return new Promise((resolve, reject) => {\n        const socket = new net.Socket();\n\n        socket.once(\"error\", (err) => {\n            if (err.code === \"ECONNREFUSED\") {\n                resolve(false);\n            } else {\n                reject(err);\n            }\n        });\n\n        socket.once(\"connect\", () => {\n            resolve(true);\n            socket.end();\n        });\n\n        socket.connect(port, host);\n    });\n};\n\nexports.removeInvisibleChars = (str) => {\n    const invisibleRegex = /[\\u0000-\\u001F\\u007F\\u200B-\\u200D\\uFEFF]/g;\n    return str.replace(invisibleRegex, \"\");\n};\n\nexports.gatherUserDetails = async (config, tokentype, client) => {\n    const askValidInput = async (question, validator) => {\n        let input;\n        do {\n            input = await exports.askUser(question);\n            if (!validator(input)) {\n                console.log(\"❌ Invalid value! Please try again.\");\n            }\n        } while (!validator(input));\n        return input;\n    };\n\n    const isValidToken = (token) =>\n        /^[\\w-]{24}\\.[\\w-]{6}\\.[\\w-]{27}$|^mfa\\.[\\w-]+$|^[\\w-]+\\.[\\w-]+\\.[\\w-]+$/.test(\n            token,\n        );\n\n    const isValidID = (id) => /^\\d+$/.test(id);\n\n    if (tokentype == \"main\") {\n        const existingConfig = { ...config.main };\n\n        const updatedValues = {\n            token: await askValidInput(\"Enter your token: \", isValidToken),\n            userid: (\n                await askValidInput(\"Enter your user ID: \", isValidID)\n            ).toString(),\n            commandschannelid: (\n                await askValidInput(\n                    \"Enter your commands channel ID: \",\n                    isValidID,\n                )\n            ).toString(),\n            huntbotchannelid: (\n                await askValidInput(\n                    \"Enter your hunt bot channel ID: \",\n                    isValidID,\n                )\n            ).toString(),\n            owodmchannelid: (\n                await askValidInput(\"Enter your OwO DM channel ID: \", isValidID)\n            ).toString(),\n            gamblechannelid: (\n                await askValidInput(\"Enter your gamble channel ID: \", isValidID)\n            ).toString(),\n            autoquestchannelid: (\n                await askValidInput(\n                    \"Enter your autoquest channel ID: \",\n                    isValidID,\n                )\n            ).toString(),\n        };\n        config.firstrun = false;\n        config.main = {\n            ...existingConfig,\n            ...updatedValues,\n        };\n\n        const configPath = client.global.devmod\n            ? path.join(__dirname, \"../developer/config.json\")\n            : path.join(__dirname, \"../config.json\");\n\n        fse.writeFileSync(configPath, JSON.stringify(config, null, 2), \"utf8\");\n\n        console.log(\"✅ Config updated successfully!\");\n    }\n\n    if (tokentype == \"extra\") {\n        const existingConfig = { ...config.extra };\n        const updatedValues = {\n            token: await askValidInput(\n                \"Enter your Extra account token: \",\n                isValidToken,\n            ),\n            userid: await askValidInput(\n                \"Enter your Extra account user ID: \",\n                isValidID,\n            ),\n            commandschannelid: await askValidInput(\n                \"Enter your Extra account commands channel ID: \",\n                isValidID,\n            ),\n            huntbotchannelid: await askValidInput(\n                \"Enter your Extra account hunt bot channel ID: \",\n                isValidID,\n            ),\n            owodmchannelid: await askValidInput(\n                \"Enter your Extra account OwO DM channel ID: \",\n                isValidID,\n            ),\n            gamblechannelid: await askValidInput(\n                \"Enter your Extra account gamble channel ID: \",\n                isValidID,\n            ),\n            autoquestchannelid: await askValidInput(\n                \"Enter your Extra account autoquest channel ID: \",\n                isValidID,\n            ),\n        };\n        config.firstrun = false;\n        config.extra = {\n            ...existingConfig,\n            ...updatedValues,\n        };\n\n        const configPath = client.global.devmod\n            ? path.join(__dirname, \"../developer/config.json\")\n            : path.join(__dirname, \"../config.json\");\n\n        fse.writeFileSync(configPath, JSON.stringify(config, null, 2), \"utf8\");\n        console.log(\"✅ Config updated successfully!\");\n    }\n};\n\nexports.getconfig = (config, client) => {\n    const packageJson = require(\"../package.json\");\n\n    client.logger.debug(`OwO Farm Bot Stable - Debug log\nBasic information\n-------------------------\nVersion: ${packageJson.version}\nPlatform: ${process.platform} (using process.platform)\n-------------------------\n\nConfig\n-------------------------\nMain commands:\n  Hunt: ${config.main.commands.hunt} - type: ${typeof config.main.commands.hunt}\n  Battle: ${config.main.commands.battle} - type: ${typeof config.main.commands.battle}\n  Pray: ${config.main.commands.pray} - type: ${typeof config.main.commands.pray}\n  Curse: ${config.main.commands.curse} - type: ${typeof config.main.commands.curse}\n  Huntbot: \n    Enable: ${config.main.commands.huntbot.enable} - type: ${typeof config.main.commands.huntbot.enable}\n    Max Time: ${config.main.commands.huntbot.maxtime} - type: ${typeof config.main.commands.huntbot.maxtime}\n    Upgrade: ${config.main.commands.huntbot.upgrade} - type: ${typeof config.main.commands.huntbot.upgrade}\n    Upgrade Type: ${config.main.commands.huntbot.upgradetype} - type: ${typeof config.main.commands.huntbot.upgradetype}\n  Gamble: \n    Coinflip: ${config.main.commands.gamble.coinflip} - type: ${typeof config.main.commands.gamble.coinflip}\n    Slot: ${config.main.commands.gamble.slot} - type: ${typeof config.main.commands.gamble.slot}\n  Animals: ${config.main.commands.animals} - type: ${typeof config.main.commands.animals}\n  Inventory: ${config.main.commands.inventory} - type: ${typeof config.main.commands.inventory}\n  Checklist: ${config.main.commands.checklist} - type: ${typeof config.main.commands.checklist}\n  Autoquest: ${config.main.commands.autoquest} - type: ${typeof config.main.commands.autoquest}\n  Gem rarity: ${config.main.maximum_gem_rarity} - type: ${typeof config.main.maximum_gem_rarity}\n\nExtra commands:\n  Hunt: ${config.extra.commands.hunt} - type: ${typeof config.extra.commands.hunt}\n  Battle: ${config.extra.commands.battle} - type: ${typeof config.extra.commands.battle}\n  Pray: ${config.extra.commands.pray} - type: ${typeof config.extra.commands.pray}\n  Curse: ${config.extra.commands.curse} - type: ${typeof config.extra.commands.curse}\n  Huntbot: \n    Enable: ${config.extra.commands.huntbot.enable} - type: ${typeof config.extra.commands.huntbot.enable}\n    Max Time: ${config.extra.commands.huntbot.maxtime} - type: ${typeof config.extra.commands.huntbot.maxtime}\n    Upgrade: ${config.extra.commands.huntbot.upgrade} - type: ${typeof config.extra.commands.huntbot.upgrade}\n    Upgrade Type: ${config.extra.commands.huntbot.upgradetype} - type: ${typeof config.extra.commands.huntbot.upgradetype}\n  Gamble: \n    Coinflip: ${config.extra.commands.gamble.coinflip} - type: ${typeof config.extra.commands.gamble.coinflip}\n    Slot: ${config.extra.commands.gamble.slot} - type: ${typeof config.extra.commands.gamble.slot}\n  Animals: ${config.extra.commands.animals} - type: ${typeof config.extra.commands.animals}\n  Inventory: ${config.extra.commands.inventory} - type: ${typeof config.extra.commands.inventory}\n  Checklist: ${config.extra.commands.checklist} - type: ${typeof config.extra.commands.checklist}\n  Autoquest: ${config.extra.commands.autoquest} - type: ${typeof config.extra.commands.autoquest}\n  To Main: ${config.extra.commands.tomain} - type: ${typeof config.extra.commands.tomain}\n  Gem rarity: ${config.extra.maximum_gem_rarity} - type: ${typeof config.extra.maximum_gem_rarity}\n\nElaina: ${config.settings.autophrases} - type: ${typeof config.settings.autophrases}\nJoin giveaways: ${config.settings.autojoingiveaways} - type: ${typeof config.settings.autojoingiveaways}\n\nChecklist:\n  Daily: ${config.settings.checklist.types.daily} - type: ${typeof config.settings.checklist.types.daily}\n  Cookie: ${config.settings.checklist.types.cookie} - type: ${typeof config.settings.checklist.types.cookie}\n  Vote: ${config.settings.checklist.types.vote} - type: ${typeof config.settings.checklist.types.vote}\n\nInventory:\n  Use:\n    Lootbox: ${config.settings.inventory.use.lootbox} - type: ${typeof config.settings.inventory.use.lootbox}\n    Fabled Lootbox: ${config.settings.inventory.use.fabledlootbox} - type: ${typeof config.settings.inventory.use.fabledlootbox}\n    Crate: ${config.settings.inventory.use.crate} - type: ${typeof config.settings.inventory.use.crate}\n    Gems: ${config.settings.inventory.use.gems} - type: ${typeof config.settings.inventory.use.gems}\n\nGamble:\n  Coinflip:\n    Default Amount: ${config.settings.gamble.coinflip.default_amount} - type: ${typeof config.settings.gamble.coinflip.default_amount}\n    Max Amount: ${config.settings.gamble.coinflip.max_amount} - type: ${typeof config.settings.gamble.coinflip.max_amount}\n    Multiplier: ${config.settings.gamble.coinflip.multiplier} - type: ${typeof config.settings.gamble.coinflip.multiplier}\n  Slot:\n    Default Amount: ${config.settings.gamble.slot.default_amount} - type: ${typeof config.settings.gamble.slot.default_amount}\n    Max Amount: ${config.settings.gamble.slot.max_amount} - type: ${typeof config.settings.gamble.slot.max_amount}\n    Multiplier: ${config.settings.gamble.slot.multiplier} - type: ${typeof config.settings.gamble.slot.multiplier}\n\nSafety:\n  Auto Pause: ${config.settings.safety.autopause} - type: ${typeof config.settings.safety.autopause}\n  Pause After: ${config.settings.safety.pauseafter} - type: ${typeof config.settings.safety.pauseafter}\n  Pause For: ${config.settings.safety.pausefor} - type: ${typeof config.settings.safety.pausefor}\n\nCaptcha:\n  Auto Solve: ${config.settings.captcha.autosolve} - type: ${typeof config.settings.captcha.autosolve}\n  Alert Type:\n    Webhook: ${config.settings.captcha.alerttype.webhook} - type: ${typeof config.settings.captcha.alerttype.webhook}\n    Desktop:\n      Force: ${config.settings.captcha.alerttype.desktop.force} - type: ${typeof config.settings.captcha.alerttype.desktop.force}\n      Notification: ${config.settings.captcha.alerttype.desktop.notification} - type: ${typeof config.settings.captcha.alerttype.desktop.notification}\n      Prompt: ${config.settings.captcha.alerttype.desktop.prompt} - type: ${typeof config.settings.captcha.alerttype.desktop.prompt}\n    Termux:\n      Notification: ${config.settings.captcha.alerttype.termux.notification} - type: ${typeof config.settings.captcha.alerttype.termux.notification}\n      Vibration: ${config.settings.captcha.alerttype.termux.vibration} - type: ${typeof config.settings.captcha.alerttype.termux.vibration}\n      Vibration Time: ${config.settings.captcha.alerttype.termux.vibration_time} - type: ${typeof config.settings.captcha.alerttype.termux.vibration_time}\n      Toast: ${config.settings.captcha.alerttype.termux.toast} - type: ${typeof config.settings.captcha.alerttype.termux.toast}\n\nAnimals:\n  Sell: ${config.animals.type.sell} - type: ${typeof config.animals.type.sell}\n  Sacrifice: ${config.animals.type.sacrifice} - type: ${typeof config.animals.type.sacrifice}\n\nInterval:\n  Hunt: ${config.interval.hunt.min} - ${config.interval.hunt.max}\n  Type: ${typeof config.interval.hunt.min} - ${typeof config.interval.hunt.max}\n\n  Battle: ${config.interval.battle.min} - ${config.interval.battle.max}\n  Type: ${typeof config.interval.battle.min} - ${typeof config.interval.battle.max}\n\n  Pray: ${config.interval.pray.min} - ${config.interval.pray.max}\n  Type: ${typeof config.interval.pray.min} - ${typeof config.interval.pray.max}\n\n  Coinflip: ${config.interval.coinflip.min} - ${config.interval.coinflip.max}\n  Type: ${typeof config.interval.coinflip.min} - ${typeof config.interval.coinflip.max}\n\n  Slot: ${config.interval.slot.min} - ${config.interval.slot.max}\n  Type: ${typeof config.interval.slot.min} - ${typeof config.interval.slot.max}\n\n  Animals: ${config.interval.animals.min} - ${config.interval.animals.max}\n  Type: ${typeof config.interval.animals.min} - ${typeof config.interval.animals.max}\n\n  Checklist: ${config.interval.checklist} - type: ${typeof config.interval.checklist}\n-------------------------\n`);\n};\n"
  },
  {
    "path": "utils/hcaptchasolver/_locales/da/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"CAPTCHA Solver: auto hCAPTCHA reCAPTCHA frit\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"løs hCAPTCHA og reCAPTCHA ved hjælp af AI på alle sider. Sømløs integration med NoCoding Data Scraper for lettere dataindsamling\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"MiniRPA CAPTCHA Solver\" },\r\n     \"lbl_setting\": { \"message\": \"Indstilling\" },\r\n     \"lbl_run_scope\": { \"message\": \"Automatisk registrering og løsning af CAPTCHA til\" },\r\n     \"lbl_rm_addon\": { \"message\": \"aktiv fane og faner fra partnertilføjelser synkront\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"aktiv fane\" },\r\n     \"lbl_rm_no\": { \"message\": \"ingen (stop med at opdage)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Partner-tilføjelser\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Tilføjelse\" },\r\n     \"lbl_col_connected\": { \"message\": \"Linket\" },\r\n     \"lbl_col_msg\": { \"message\": \"Noter\" },\r\n     \"lbl_comment_1\": { \"message\": \"Vi værdsætter din feedback!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Brug venligst 5 sekunder på at dele dine kommentarer.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"Med partnertilføjelserne kan du:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>løs flere CAPTCHA'er parallelt</li><li>gør løsningen hurtigere ved at justere forsinkelsestiden</li><li>erklær posthandlinger efter CAPTCHA løst</li> li><li>angiv typen af CAPTCHA, der skal løses</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"for nemt at gøre browserautomatisering på forskellige websteder.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(aktiveret, når en partner-tilføjelse er tilsluttet)</i>\" },\r\n     \"partner_nds\": { \"message\": \"NoCoding Data Scraper\" },\r\n     \"lbl_no_addons\": {\"message\": \"Ingen tilføjelse kan tilsluttes endnu.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/de/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"CAPTCHA-Löser: Auto hCAPTCHA reCAPTCHA frei\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"hCAPTCHA und reCAPTCHA mithilfe von KI auf allen Seiten lösen. Nahtlose Integration mit NoCoding Data Scraper für einfachere Datenerfassung\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"MiniRPA CAPTCHA Solver\" },\r\n     \"lbl_setting\": { \"message\": \"Setting\" },\r\n     \"lbl_run_scope\": { \"message\": \"CAPTCHA automatisch erkennen und lösen aktiviert\" },\r\n     \"lbl_rm_addon\": { \"message\": \"aktiver Tab und Tabs von Partner-Add-ons synchron\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"aktiver Tab\" },\r\n     \"lbl_rm_no\": { \"message\": \"none (Erkennung stoppen)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Partner-Add-ons\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Add-on\" },\r\n     \"lbl_col_connected\": { \"message\": \"Linked\" },\r\n     \"lbl_col_msg\": { \"message\": \"Notizen\" },\r\n     \"lbl_comment_1\": { \"message\": \"Wir schätzen Ihr Feedback!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Bitte nehmen Sie sich 5 Sekunden Zeit, um Ihre Kommentare zu teilen.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"Mit den Partner-Add-ons können Sie:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>Lösen Sie mehrere CAPTCHAs parallel</li><li>Beschleunigen Sie das Lösen durch Anpassen der Verzögerungszeit</li><li>Erklären Sie Post-Aktionen, nachdem das CAPTCHA gelöst wurde</li><li> li><li>Geben Sie den Typ des zu lösenden CAPTCHA an</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"um die Browserautomatisierung auf verschiedenen Websites einfach zu gestalten.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(aktiviert, wenn ein Partner-Add-on verbunden ist)</i>\" },\r\n     \"partner_nds\": { \"message\": \"NoCoding Data Scraper\" },\r\n     \"lbl_no_addons\": {\"message\": \"Noch kein Add-on verbindbar.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/el/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"Επίλυση CAPTCHA: αυτόματο hCAPTCHA reCAPTCHA ελεύθερα\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"solve hCAPTCHA and reCAPTCHA using AI σε οποιεσδήποτε σελίδες. Απρόσκοπτη ενσωμάτωση με NoCoding Data Scraper για ευκολότερη συλλογή δεδομένων\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"MiniRPA CAPTCHA Solver\" },\r\n     \"lbl_setting\": { \"message\": \"Setting\" },\r\n     \"lbl_run_scope\": { \"message\": \"Αυτόματος εντοπισμός και επίλυση CAPTCHA σε\" },\r\n     \"lbl_rm_addon\": { \"message\": \"ενεργή καρτέλα και καρτέλες από πρόσθετα συνεργατών συγχρονισμένα\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"active tab\" },\r\n     \"lbl_rm_no\": { \"message\": \"none (stop εντοπισμού)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Partner Add-ons\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Add-on\" },\r\n     \"lbl_col_connected\": { \"message\": \"Συνδέθηκε\" },\r\n     \"lbl_col_msg\": { \"message\": \"Notes\" },\r\n     \"lbl_comment_1\": { \"message\": \"Εκτιμούμε τα σχόλιά σας!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Παρακαλώ αφιερώστε 5 δευτερόλεπτα για να μοιραστείτε τα σχόλιά σας.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"Με τα πρόσθετα συνεργατών, μπορείτε:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>λύστε πολλά CAPTCHA παράλληλα</li><li>κάντε την επίλυση ταχύτερη προσαρμόζοντας τον χρόνο καθυστέρησης</li><li>δηλώστε ενέργειες ανάρτησης μετά την επίλυση του CAPTCHA</li><li> li><li>καθορίστε τον τύπο CAPTCHA προς επίλυση</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"για εύκολη αυτοματοποίηση του προγράμματος περιήγησης σε διαφορετικούς ιστότοπους.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(ενεργοποιείται όταν συνδέεται οποιοδήποτε πρόσθετο συνεργάτη)</i>\" },\r\n     \"partner_nds\": { \"message\": \"NoCoding Data Scraper\" },\r\n     \"lbl_no_addons\": {\"message\": \"Δεν υπάρχει δυνατότητα σύνδεσης πρόσθετου ακόμα.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/en/messages.json",
    "content": "{\r\n    \"extName\": { \"message\": \"CAPTCHA Solver: auto hCAPTCHA reCAPTCHA freely\" },\r\n    \"extShortName\": { \"message\": \"\" },\r\n    \"extDesc\": { \"message\": \"solve hCAPTCHA and reCAPTCHA using AI on any pages. Seamless integration with NoCoding Data Scraper for easier data collection\" },\r\n    \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n    \"lbl_logo\": { \"message\": \"MiniRPA CAPTCHA Solver\" },\r\n    \"lbl_setting\": { \"message\": \"Setting\" },\r\n    \"lbl_run_scope\": { \"message\": \"Auto detect and solve CAPTCHA on\" },\r\n    \"lbl_rm_addon\": { \"message\": \"+ tabs from partner add-ons\" },\r\n    \"lbl_rm_curtab\": { \"message\": \"active tab\" },\r\n    \"lbl_rm_no\": { \"message\": \"none (stop detecting)\" },\r\n    \"lbl_addon_link_status\": { \"message\": \"Partner Link Status\" },\r\n    \"lbl_col_addonName\": { \"message\": \"Add-on\" },\r\n    \"lbl_col_connected\": { \"message\": \"Linked\" },\r\n    \"lbl_col_msg\": { \"message\": \"Notes\" },\r\n    \"lbl_comment_1\": { \"message\": \"We value your feedback!\" },\r\n    \"lbl_comment_2\": { \"message\": \"Help take 5 seconds to share your comments.\" },\r\n    \"tip_partner_tab_1\": { \"message\": \"With the partner add-ons, you can:\" },\r\n    \"tip_partner_tab_2\": {\r\n        \"message\": \"<ul><li>solve multiple CAPTCHAs in parallel</li><li>make solving faster by adjusting delay time</li><li>declare post actions after CAPTCHA solved</li><li>specify the type of CAPTCHA to solve</li></ul>\"\r\n    },\r\n    \"tip_partner_tab_3\": { \"message\": \"to make browser automation easily on different websites.\" },\r\n    \"tip_partner_tab_4\": { \"message\": \"<i>(enabled when any partner add-on connected)</i>\" },\r\n    \"partner_nds\": { \"message\": \"NoCoding Data Scraper\" },\r\n    \"lbl_no_addons\": { \"message\": \"No add-on connectable yet.\" },\r\n    \"lbl_pro_setting\": { \"message\": \"Pro\" },\r\n    \"lbl_solver_switch\": { \"message\": \"Solver Switch\" }\r\n}\r\n"
  },
  {
    "path": "utils/hcaptchasolver/_locales/es/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"CAPTCHA Solver: auto hCAPTCHA reCAPTCHA libremente\" },\r\n     \"extNombreCorto\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"resuelva hCAPTCHA y reCAPTCHA usando IA en cualquier página. Integración perfecta con NoCoding Data Scraper para una recopilación de datos más sencilla\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <servicio@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"Solucionador MiniRPA CAPTCHA\" },\r\n     \"lbl_setting\": { \"message\": \"Configuración\" },\r\n     \"lbl_run_scope\": { \"message\": \"Detectar y resolver CAPTCHA automáticamente en\" },\r\n     \"lbl_rm_addon\": { \"message\": \"pestaña activa y pestañas de complementos de socios sincrónicamente\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"pestaña activa\" },\r\n     \"lbl_rm_no\": { \"message\": \"none (dejar de detectar)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Complementos de socios\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Complemento\" },\r\n     \"lbl_col_connected\": { \"message\": \"Vinculado\" },\r\n     \"lbl_col_msg\": { \"message\": \"Notas\" },\r\n     \"lbl_comment_1\": { \"message\": \"¡Valoramos sus comentarios!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Tómate 5 segundos para compartir tus comentarios.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"Con los complementos de socios, puedes:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>resuelve múltiples CAPTCHA en paralelo</li><li>haz que la resolución sea más rápida ajustando el tiempo de demora</li><li>declara acciones de publicación después de resolver el CAPTCHA</ li><li>especifique el tipo de CAPTCHA a resolver</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"para facilitar la automatización del navegador en diferentes sitios web.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(habilitado cuando se conecta cualquier complemento de socio)</i>\" },\r\n     \"partner_nds\": { \"message\": \"NoCoding Data Scraper\" },\r\n     \"lbl_no_addons\": {\"message\": \"Aún no se puede conectar ningún complemento.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/fr/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"CAPTCHA Solver : auto hCAPTCHA reCAPTCHA librement\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"résoudre hCAPTCHA et reCAPTCHA à l'aide de l'IA sur n'importe quelle page. Intégration transparente avec NoCoding Data Scraper pour une collecte de données plus facile\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"Résolveur MiniRPA CAPTCHA\" },\r\n     \"lbl_setting\": { \"message\": \"Paramètre\" },\r\n     \"lbl_run_scope\": { \"message\": \"Détection automatique et résolution du CAPTCHA sur\" },\r\n     \"lbl_rm_addon\": { \"message\": \"onglet actif et onglets des modules complémentaires partenaires de manière synchrone\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"onglet actif\" },\r\n     \"lbl_rm_no\": { \"message\": \"aucun (arrêter la détection)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Modules complémentaires partenaires\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Module complémentaire\" },\r\n     \"lbl_col_connected\": { \"message\": \"Lié\" },\r\n     \"lbl_col_msg\": { \"message\": \"Notes\" },\r\n     \"lbl_comment_1\": { \"message\": \"Nous apprécions vos commentaires !\" },\r\n     \"lbl_comment_2\": { \"message\": \"Veuillez prendre 5 secondes pour partager vos commentaires.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"Avec les modules complémentaires partenaires, vous pouvez :\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>résoudre plusieurs CAPTCHA en parallèle</li><li>accélérer la résolution en ajustant le délai</li><li>déclarer les actions de publication après la résolution du CAPTCHA</ li><li>préciser le type de CAPTCHA à résoudre</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"pour automatiser facilement le navigateur sur différents sites Web.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(activé lorsqu'un module complémentaire partenaire est connecté)</i>\" },\r\n     \"partner_nds\": { \"message\": \"NoCoding Data Scraper\" },\r\n     \"lbl_no_addons\": {\"message\": \"Aucun module complémentaire connectable pour l'instant.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/id/messages.json",
    "content": "{\r\n    \"extName\": { \"message\": \"Pemecah CAPTCHA: reCAPTCHA hCAPTCHA otomatis dengan bebas\" },\r\n    \"extShortName\": { \"message\": \"\" },\r\n    \"extDesc\": { \"message\": \"selesaikan hCAPTCHA dan reCAPTCHA menggunakan AI di halaman mana pun. Integrasi sempurna dengan NoCoding Data Scraper untuk memudahkan pengumpulan data\" },\r\n    \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n    \"lbl_logo\": { \"message\": \"MiniRPA CAPTCHA Solver\" },\r\n    \"lbl_setting\": { \"message\": \"Pengaturan\" },\r\n    \"lbl_run_scope\": { \"message\": \"Deteksi otomatis dan selesaikan CAPTCHA aktif\" },\r\n    \"lbl_rm_addon\": { \"message\": \"tab aktif dan tab dari add-on mitra secara sinkron\" },\r\n    \"lbl_rm_curtab\": { \"message\": \"tab aktif\" },\r\n    \"lbl_rm_no\": { \"message\": \"tidak ada (berhenti mendeteksi)\" },\r\n    \"lbl_addon_link_status\": { \"message\": \"Pengaya Mitra\" },\r\n    \"lbl_col_addonName\": { \"message\": \"Add-on\" },\r\n    \"lbl_col_connected\": { \"message\": \"Tertaut\" },\r\n    \"lbl_col_msg\": { \"message\": \"Catatan\" },\r\n    \"lbl_comment_1\": { \"message\": \"Kami menghargai masukan Anda!\" },\r\n    \"lbl_comment_2\": { \"message\": \"Silakan luangkan waktu 5 detik untuk membagikan komentar Anda.\" },\r\n    \"tip_partner_tab_1\": { \"message\": \"Dengan add-on mitra, Anda dapat:\" },\r\n    \"tip_partner_tab_2\": { \"message\": \"<ul><li>selesaikan beberapa CAPTCHA secara paralel</li><li>mempercepat penyelesaian dengan menyesuaikan waktu tunda</li><li>mendeklarasikan tindakan postingan setelah CAPTCHA diselesaikan</ li><li>tentukan tipe CAPTCHA yang akan dipecahkan</li></ul>\" },\r\n    \"tip_partner_tab_3\": { \"message\": \"untuk memudahkan otomatisasi browser di berbagai situs web.\" },\r\n    \"tip_partner_tab_4\": { \"message\": \"<i>(diaktifkan ketika add-on mitra mana pun terhubung)</i>\" },\r\n    \"partner_nds\": { \"message\": \"Pengikis Data NoCoding\" },\r\n    \"lbl_no_addons\": {\"message\": \"Belum ada add-on yang dapat dihubungkan.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/it/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"Risolutore CAPTCHA: hCAPTCHA automatico reCAPTCHA liberamente\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"risolvi hCAPTCHA e reCAPTCHA utilizzando l'intelligenza artificiale su qualsiasi pagina. Integrazione perfetta con NoCoding Data Scraper per una raccolta dati più semplice\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"Risolutore MiniRPA CAPTCHA\" },\r\n     \"lbl_setting\": { \"message\": \"Impostazione\" },\r\n     \"lbl_run_scope\": { \"message\": \"Rileva e risolvi automaticamente i CAPTCHA attivati\" },\r\n     \"lbl_rm_addon\": { \"message\": \"scheda attiva e schede dai componenti aggiuntivi del partner in modo sincrono\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"scheda attiva\" },\r\n     \"lbl_rm_no\": { \"message\": \"nessuno (interrompi rilevamento)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Componenti aggiuntivi partner\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Componente aggiuntivo\" },\r\n     \"lbl_col_connected\": { \"message\": \"Collegato\" },\r\n     \"lbl_col_msg\": { \"message\": \"Note\" },\r\n     \"lbl_comment_1\": { \"message\": \"Apprezziamo il tuo feedback!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Prendi 5 secondi per condividere i tuoi commenti.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"Con i componenti aggiuntivi del partner puoi:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>risolvi più CAPTCHA in parallelo</li><li>rendi la risoluzione più rapida regolando il tempo di ritardo</li><li>dichiara le azioni post dopo la risoluzione del CAPTCHA</ li><li>specificare il tipo di CAPTCHA da risolvere</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"per semplificare l'automazione del browser su diversi siti web.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(abilitato quando qualsiasi componente aggiuntivo del partner è connesso)</i>\" },\r\n     \"partner_nds\": { \"message\": \"NoCoding Data Scraper\" },\r\n     \"lbl_no_addons\": {\"message\": \"Ancora nessun componente aggiuntivo collegabile.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/ja/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"CAPTCHA ソルバー: 自動 hCAPTCHA reCAPTCHA を自由に\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"任意のページで AI を使用して hCAPTCHA と reCAPTCHA を解決します。NoCoding Data Scraper とのシームレスな統合により、データ収集が容易になります。\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"MiniRPA CAPTCHA ソルバー\" },\r\n     \"lbl_setting\": { \"message\": \"設定\" },\r\n     \"lbl_run_scope\": { \"message\": \"CAPTCHA を自動検出して解決します\" },\r\n     \"lbl_rm_addon\": { \"message\": \"アクティブなタブとパートナー アドオンのタブを同期的に\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"アクティブなタブ\" },\r\n     \"lbl_rm_no\": { \"message\": \"なし (検出停止)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"パートナー アドオン\" },\r\n     \"lbl_col_addonName\": { \"message\": \"アドオン\" },\r\n     \"lbl_col_connected\": { \"message\": \"リンク済み\" },\r\n     \"lbl_col_msg\": { \"message\": \"メモ\" },\r\n     \"lbl_comment_1\": { \"message\": \"皆様からのフィードバックをお待ちしております。\" },\r\n     \"lbl_comment_2\": { \"message\": \"コメントを共有するまで 5 秒ほどお時間をください。\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"パートナー アドオンを使用すると、次のことができます。\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>複数の CAPTCHA を並行して解決する</li><li>遅延時間を調整して解決を高速化する</li><li>CAPTCHA が解決された後にポスト アクションを宣言する</li><li> li><li>解決する CAPTCHA のタイプを指定します</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"さまざまな Web サイトでブラウザの自動化を簡単に行うため。\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(パートナー アドオンが接続されている場合に有効になります)</i>\" },\r\n     \"partner_nds\": { \"message\": \"NoCoding データ スクレーパー\" },\r\n     \"lbl_no_addons\": {\"message\": \"接続可能なアドオンはまだありません。\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/ko/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"CAPTCHA 해결사: 자동 hCAPTCHA reCAPTCHA 자유롭게\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"모든 페이지에서 AI를 사용하여 hCAPTCHA 및 reCAPTCHA를 해결하세요. 더 쉬운 데이터 수집을 위해 NoCoding Data Scraper와의 원활한 통합\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"MiniRPA 보안 문자 해결사\" },\r\n     \"lbl_setting\": { \"message\": \"설정\" },\r\n     \"lbl_run_scope\": { \"message\": \"보안문자 자동 감지 및 해결\" },\r\n     \"lbl_rm_addon\": { \"message\": \"동기적으로 파트너 추가 기능의 활성 탭 및 탭\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"활성 탭\" },\r\n     \"lbl_rm_no\": { \"message\": \"없음 (감지 중지)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"파트너 추가 기능\" },\r\n     \"lbl_col_addonName\": { \"message\": \"추가 기능\" },\r\n     \"lbl_col_connected\": { \"message\": \"링크됨\" },\r\n     \"lbl_col_msg\": { \"message\": \"참고\" },\r\n     \"lbl_comment_1\": { \"message\": \"우리는 여러분의 피드백을 소중하게 생각합니다!\" },\r\n     \"lbl_comment_2\": { \"message\": \"5초만 시간을 내어 의견을 공유해 주세요.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"파트너 추가 기능을 사용하면 다음을 수행할 수 있습니다.\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>여러 CAPTCHA를 병렬로 해결</li><li>지연 시간을 조정하여 더 빠르게 해결</li><li>CAPTCHA 해결 후 게시 작업 선언</li><li> li><li>해결할 CAPTCHA 유형을 지정하세요</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"다른 웹사이트에서 브라우저 자동화를 쉽게 만들 수 있습니다.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(파트너 추가 기능이 연결되면 활성화됨)</i>\" },\r\n     \"partner_nds\": { \"message\": \"NoCoding 데이터 스크레이퍼\" },\r\n     \"lbl_no_addons\": {\"message\": \"아직 연결할 수 있는 추가 기능이 없습니다.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/nb/messages.json",
    "content": "{\r\n    \"extName\": { \"message\": \"CAPTCHA Solver: auto hCAPTCHA reCAPTCHA fritt\" },\r\n    \"extShortName\": { \"message\": \"\" },\r\n    \"extDesc\": { \"message\": \"løs hCAPTCHA og reCAPTCHA ved hjelp av AI på alle sider. Sømløs integrasjon med NoCoding Data Scraper for enklere datainnsamling\" },\r\n    \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n    \"lbl_logo\": { \"message\": \"MiniRPA CAPTCHA Solver\" },\r\n    \"lbl_setting\": { \"message\": \"Innstilling\" },\r\n    \"lbl_run_scope\": { \"message\": \"Automatisk oppdage og løse CAPTCHA på\" },\r\n    \"lbl_rm_addon\": { \"message\": \"aktiv fane og faner fra partnertillegg synkront\" },\r\n    \"lbl_rm_curtab\": { \"message\": \"aktiv fane\" },\r\n    \"lbl_rm_no\": { \"message\": \"ingen (slutt å oppdage)\" },\r\n    \"lbl_addon_link_status\": { \"message\": \"Partner-tillegg\" },\r\n    \"lbl_col_addonName\": { \"message\": \"Tillegg\" },\r\n    \"lbl_col_connected\": { \"message\": \"Linked\" },\r\n    \"lbl_col_msg\": { \"message\": \"Notater\" },\r\n    \"lbl_comment_1\": { \"message\": \"Vi setter pris på tilbakemeldingen din!\" },\r\n    \"lbl_comment_2\": { \"message\": \"Vennligst ta 5 sekunder på å dele kommentarene dine.\" },\r\n    \"tip_partner_tab_1\": { \"message\": \"Med partnertilleggene kan du:\" },\r\n    \"tip_partner_tab_2\": { \"message\": \"<ul><li>løs flere CAPTCHAer parallelt</li><li>gjør løsningen raskere ved å justere forsinkelsestiden</li><li>erklær posthandlinger etter at CAPTCHA er løst</li><li> li><li>spesifiser typen CAPTCHA som skal løses</li></ul>\" },\r\n    \"tip_partner_tab_3\": { \"message\": \"for å gjøre nettleserautomatisering enkelt på forskjellige nettsteder.\" },\r\n    \"tip_partner_tab_4\": { \"message\": \"<i>(aktivert når et partnertillegg er koblet til)</i>\" },\r\n    \"partner_nds\": { \"message\": \"NoCoding Data Scraper\" },\r\n    \"lbl_no_addons\": {\"message\": \"Ingen tillegg kan kobles til ennå.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/nl/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"CAPTCHA-oplosser: auto hCAPTCHA reCAPTCHA vrij\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"los hCAPTCHA en reCAPTCHA op met behulp van AI op elke pagina. Naadloze integratie met NoCoding Data Scraper voor eenvoudiger gegevensverzameling\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"MiniRPA CAPTCHA-oplosser\" },\r\n     \"lbl_setting\": { \"message\": \"Instelling\" },\r\n     \"lbl_run_scope\": { \"message\": \"CAPTCHA automatisch detecteren en oplossen aan\" },\r\n     \"lbl_rm_addon\": { \"message\": \"actief tabblad en tabbladen van partner-add-ons synchroon\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"actief tabblad\" },\r\n     \"lbl_rm_no\": { \"message\": \"none (stop met detecteren)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Partner-add-ons\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Add-on\" },\r\n     \"lbl_col_connected\": { \"message\": \"Gekoppeld\" },\r\n     \"lbl_col_msg\": { \"message\": \"Opmerkingen\" },\r\n     \"lbl_comment_1\": { \"message\": \"Wij waarderen uw feedback!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Neem vijf seconden de tijd om uw opmerkingen te delen.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"Met de partner-add-ons kunt u:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>los meerdere CAPTCHA's parallel op</li><li>maak het oplossen sneller door de vertragingstijd aan te passen</li><li>verklaar berichtacties nadat CAPTCHA is opgelost</li><li> li><li>specificeer het type CAPTCHA dat moet worden opgelost</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"om browserautomatisering eenvoudig te maken op verschillende websites.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(ingeschakeld wanneer een partner-add-on is aangesloten)</i>\" },\r\n     \"partner_nds\": { \"message\": \"NoCoding Data Scraper\" },\r\n     \"lbl_no_addons\": {\"message\": \"Er kan nog geen add-on worden aangesloten.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/pl/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"Solver CAPTCHA: auto hCAPTCHA reCAPTCHA swobodnie\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"rozwiąż hCAPTCHA i reCAPTCHA przy użyciu sztucznej inteligencji na dowolnych stronach. Bezproblemowa integracja z NoCoding Data Scraper dla łatwiejszego gromadzenia danych\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"Rozwiązywanie problemów MiniRPA CAPTCHA\" },\r\n     \"lbl_setting\": { \"message\": \"Ustawienie\" },\r\n     \"lbl_run_scope\": { \"message\": \"Automatyczne wykrywanie i rozwiązywanie CAPTCHA włączone\" },\r\n     \"lbl_rm_addon\": { \"message\": \"aktywna karta i karty z dodatków partnerów synchronicznie\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"aktywna karta\" },\r\n     \"lbl_rm_no\": { \"message\": \"none (przestań wykrywać)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Dodatki dla partnerów\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Dodatek\" },\r\n     \"lbl_col_connected\": { \"message\": \"Połączono\" },\r\n     \"lbl_col_msg\": { \"message\": \"Notatki\" },\r\n     \"lbl_comment_1\": { \"message\": \"Cenimy Twoją opinię!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Poświęć 5 sekund na udostępnienie swoich komentarzy.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"Dzięki dodatkom partnera możesz:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>rozwiązuj wiele CAPTCHA równolegle</li><li>przyspiesz rozwiązywanie, dostosowując czas opóźnienia</li><li>deklaruj działania po rozwiązaniu CAPTCHA</ li><li>określ typ CAPTCHA do rozwiązania</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"aby ułatwić automatyzację przeglądarki na różnych stronach internetowych.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(włączone, gdy podłączony jest dowolny dodatek partnera)</i>\" },\r\n     \"partner_nds\": { \"message\": \"Skrobak danych NoCoding\" },\r\n     \"lbl_no_addons\": {\"message\": \"Nie można jeszcze podłączyć żadnego dodatku.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/pt/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"Solucionador CAPTCHA: auto hCAPTCHA reCAPTCHA livremente\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"resolva hCAPTCHA e reCAPTCHA usando IA em qualquer página. Integração perfeita com NoCoding Data Scraper para facilitar a coleta de dados\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"Solucionador MiniRPA CAPTCHA\" },\r\n     \"lbl_setting\": { \"message\": \"Configuração\" },\r\n     \"lbl_run_scope\": { \"message\": \"Detecção automática e resolução de CAPTCHA ativada\" },\r\n     \"lbl_rm_addon\": { \"message\": \"guia ativa e guias de complementos de parceiros de forma síncrona\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"guia ativa\" },\r\n     \"lbl_rm_no\": { \"message\": \"none (parar de detectar)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Complementos de parceiros\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Complemento\" },\r\n     \"lbl_col_connected\": { \"message\": \"Vinculado\" },\r\n     \"lbl_col_msg\": { \"message\": \"Notas\" },\r\n     \"lbl_comment_1\": { \"message\": \"Valorizamos seu feedback!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Por favor, reserve 5 segundos para compartilhar seus comentários.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"Com os complementos de parceiro, você pode:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>resolver vários CAPTCHAs em paralelo</li><li>tornar a resolução mais rápida ajustando o tempo de atraso</li><li>declarar pós-ações após a resolução do CAPTCHA</ li><li>especifique o tipo de CAPTCHA a ser resolvido</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"para facilitar a automação do navegador em diferentes sites.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(ativado quando qualquer complemento de parceiro conectado)</i>\" },\r\n     \"partner_nds\": { \"message\": \"Raspador de dados NoCoding\" },\r\n     \"lbl_no_addons\": {\"message\": \"Nenhum complemento conectável ainda.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/ru/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"CAPTCHA Solver: автоматически hCAPTCHA, reCAPTCHA бесплатно\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"решайте hCAPTCHA и reCAPTCHA с помощью искусственного интеллекта на любых страницах. Полная интеграция с NoCoding Data Scraper для упрощения сбора данных\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"MiniRPA CAPTCHA Solver\" },\r\n     \"lbl_setting\": { \"message\": \"Setting\" },\r\n     \"lbl_run_scope\": { \"message\": \"Автоматическое обнаружение и решение CAPTCHA включено\" },\r\n     \"lbl_rm_addon\": { \"message\": \"активная вкладка и вкладки партнерских надстроек синхронно\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"активная вкладка\" },\r\n     \"lbl_rm_no\": { \"message\": \"none (прекратить обнаружение)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Партнерские надстройки\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Дополнение\" },\r\n     \"lbl_col_connected\": { \"message\": \"Linked\" },\r\n     \"lbl_col_msg\": { \"message\": \"Заметки\" },\r\n     \"lbl_comment_1\": { \"message\": \"Мы ценим ваши отзывы!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Пожалуйста, уделите 5 секунд, чтобы поделиться своими комментариями.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"С помощью партнерских надстроек вы можете:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>решать несколько CAPTCHA параллельно</li><li>ускорять решение, регулируя время задержки</li><li>объявлять действия после решения CAPTCHA</li><li>объявлять действия после решения CAPTCHA</li><li> li><li>укажите тип CAPTCHA для решения</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"чтобы упростить автоматизацию браузера на разных веб-сайтах.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(включается при подключении любого партнёрского дополнения)</i>\" },\r\n     \"partner_nds\": { \"message\": \"Сборщик данных NoCoding\" },\r\n     \"lbl_no_addons\": {\"message\": \"Дополнения пока не доступны для подключения.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/sv/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"CAPTCHA Solver: auto hCAPTCHA reCAPTCHA fritt\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"lös hCAPTCHA och reCAPTCHA med AI på alla sidor. Sömlös integration med NoCoding Data Scraper för enklare datainsamling\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"MiniRPA CAPTCHA Solver\" },\r\n     \"lbl_setting\": { \"message\": \"Inställning\" },\r\n     \"lbl_run_scope\": { \"message\": \"Automatisk upptäckt och lös CAPTCHA på\" },\r\n     \"lbl_rm_addon\": { \"message\": \"aktiv flik och flikar från partnertillägg synkront\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"aktiv flik\" },\r\n     \"lbl_rm_no\": { \"message\": \"ingen (sluta upptäcka)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Partner-tillägg\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Tillägg\" },\r\n     \"lbl_col_connected\": { \"message\": \"Länkad\" },\r\n     \"lbl_col_msg\": { \"message\": \"Anteckningar\" },\r\n     \"lbl_comment_1\": { \"message\": \"Vi värdesätter din feedback!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Ta 5 sekunder för att dela dina kommentarer.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"Med partnertilläggen kan du:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>lös flera CAPTCHAs parallellt</li><li>gör lösningen snabbare genom att justera fördröjningstiden</li><li>deklarera poståtgärder efter CAPTCHA löst</li><li> li><li>ange vilken typ av CAPTCHA som ska lösas</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"för att göra webbläsarautomatisering enkelt på olika webbplatser.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(aktiverat när något partnertillägg anslutits)</i>\" },\r\n     \"partner_nds\": { \"message\": \"NoCoding Data Scraper\" },\r\n     \"lbl_no_addons\": {\"message\": \"Inget tillägg kan anslutas ännu.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/tr/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"CAPTCHA Çözücü: otomatik hCAPTCHA reCAPTCHA serbestçe\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"herhangi bir sayfada AI kullanarak hCAPTCHA ve reCAPTCHA'yı çözün. Daha kolay veri toplamak için NoCoding Veri Kazıyıcı ile sorunsuz entegrasyon\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"MiniRPA CAPTCHA Çözücü\" },\r\n     \"lbl_setting\": { \"message\": \"Ayar\" },\r\n     \"lbl_run_scope\": { \"message\": \"CAPTCHA'yı otomatik olarak algıla ve çöz\" },\r\n     \"lbl_rm_addon\": { \"message\": \"iş ortağı eklentilerinden etkin sekme ve sekmeler eş zamanlı olarak\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"etkin sekme\" },\r\n     \"lbl_rm_no\": { \"message\": \"yok (algılamayı durdur)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"İş Ortağı Eklentileri\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Eklenti\" },\r\n     \"lbl_col_connected\": { \"message\": \"Bağlantılı\" },\r\n     \"lbl_col_msg\": { \"message\": \"Notlar\" },\r\n     \"lbl_comment_1\": { \"message\": \"Geri bildiriminize değer veriyoruz!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Lütfen yorumlarınızı paylaşmak için 5 saniyenizi ayırın.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"İş ortağı eklentileriyle şunları yapabilirsiniz:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>birden fazla CAPTCHA'yı paralel olarak çözün</li><li>gecikme süresini ayarlayarak çözümü daha hızlı hale getirin</li><li>CAPTCHA çözüldükten sonra gönderi işlemlerini bildirin</li><li> li><li>çözülecek CAPTCHA türünü belirtin</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"farklı web sitelerinde tarayıcı otomasyonunu kolayca yapmak için.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(herhangi bir iş ortağı eklentisi bağlandığında etkinleştirilir)</i>\" },\r\n     \"partner_nds\": { \"message\": \"Kodlama Yok Veri Kazıyıcı\" },\r\n     \"lbl_no_addons\": {\"message\": \"Henüz bağlanılabilir bir eklenti yok.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/vi/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"CAPTCHA Solver: tự động hCAPTCHA reCAPTCHA một cách tự do\" },\r\n     \"extShortName\": { \"message\": \"\" },\r\n     \"extDesc\": { \"message\": \"giải hCAPTCHA và reCAPTCHA bằng AI trên bất kỳ trang nào. Tích hợp liền mạch với NoCoding Data Scraper để thu thập dữ liệu dễ dàng hơn\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"Bộ giải mã CAPTCHA MiniRPA\" },\r\n     \"lbl_setting\": { \"message\": \"Setting\" },\r\n     \"lbl_run_scope\": { \"message\": \"Tự động phát hiện và giải CAPTCHA trên\" },\r\n     \"lbl_rm_addon\": { \"message\": \"tab hoạt động và các tab từ tiện ích bổ sung của đối tác một cách đồng bộ\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"tab hoạt động\" },\r\n     \"lbl_rm_no\": { \"message\": \"none (ngừng phát hiện)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"Tiện ích bổ sung của đối tác\" },\r\n     \"lbl_col_addonName\": { \"message\": \"Tiện ích bổ sung\" },\r\n     \"lbl_col_connected\": { \"message\": \"Đã liên kết\" },\r\n     \"lbl_col_msg\": { \"message\": \"Ghi chú\" },\r\n     \"lbl_comment_1\": { \"message\": \"Chúng tôi đánh giá cao phản hồi của bạn!\" },\r\n     \"lbl_comment_2\": { \"message\": \"Vui lòng dành 5 giây để chia sẻ nhận xét của bạn.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"Với các tiện ích bổ sung của đối tác, bạn có thể:\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>giải song song nhiều CAPTCHA</li><li>giúp giải quyết nhanh hơn bằng cách điều chỉnh thời gian trễ</li><li>khai báo hành động đăng sau khi giải CAPTCHA</li><li>khai báo hành động đăng sau khi giải CAPTCHA</li><li> li><li>chỉ định loại CAPTCHA để giải</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"để dễ dàng tự động hóa trình duyệt trên các trang web khác nhau.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>(được bật khi bất kỳ tiện ích bổ sung nào của đối tác được kết nối)</i>\" },\r\n     \"partner_nds\": { \"message\": \"NoCoding Data Scraper\" },\r\n     \"lbl_no_addons\": {\"message\": \"Chưa kết nối được tiện ích bổ sung nào.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/_locales/zh_CN/messages.json",
    "content": "{\r\n    \"extName\": { \"message\": \"验证码自动识别器: 自动识别处理hCAPTCHA和reCAPTCHA\" },\r\n    \"extShortName\": { \"message\": \"验证码自动识别器\" },\r\n    \"extDesc\": { \"message\": \"使用人工智能自动识别处理网页上出现的hCAPTCHA和reCAPTCHA. 与迷你派采集器无缝集成,实现丝滑的数据采集\" },\r\n    \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n    \"lbl_logo\": { \"message\": \"MiniRPA验证码识别器\" },\r\n    \"lbl_setting\": { \"message\": \"设置\" },\r\n    \"lbl_run_scope\": { \"message\": \"自动检测并解决验证码的范围\" },\r\n    \"lbl_rm_addon\": { \"message\": \"当前标签页和来自合作插件的标签页(多页同时处理)\" },\r\n    \"lbl_rm_curtab\": { \"message\": \"当前标签页\" },\r\n    \"lbl_rm_no\": { \"message\": \"无 (停止检测)\" },\r\n    \"lbl_addon_link_status\": { \"message\": \"合作伙伴插件\" },\r\n    \"lbl_col_addonName\": { \"message\": \"名称\" },\r\n    \"lbl_col_connected\": { \"message\": \"已连接\" },\r\n    \"lbl_col_msg\": { \"message\": \"说明\" },\r\n    \"lbl_comment_1\": { \"message\": \"我们重视您的反馈!\" },\r\n    \"lbl_comment_2\": { \"message\": \"请花 5 秒 分享您的体验.\" },\r\n    \"tip_partner_tab_1\": { \"message\": \"通过合作伙伴插件，您可以：\" },\r\n    \"tip_partner_tab_2\": { \"message\": \"<ul><li>并行解决多个验证码</li><li>通过调整延迟时间加快速度</li><li>在验证码解决后声明后续操作</li><li> li><li>指定要解决的验证码类型</li></ul>\" },\r\n    \"tip_partner_tab_3\": { \"message\": \"在不同网站上轻松实现浏览器自动化.\" },\r\n    \"tip_partner_tab_4\": { \"message\": \"<i>（连接上任何合作伙伴后可启用）</i>\" },\r\n    \"partner_nds\": { \"message\": \"迷你派采集器\" },\r\n    \"lbl_no_addons\": {\"message\": \"尚无可连接的合作伙伴插件.\"}\r\n}\r\n\r\n"
  },
  {
    "path": "utils/hcaptchasolver/_locales/zh_TW/messages.json",
    "content": "{\r\n     \"extName\": { \"message\": \"驗證碼自動辨識器: 自動辨識處理hCAPTCHA和reCAPTCHA\" },\r\n     \"extShortName\": { \"message\": \"驗證碼自動辨識器\" },\r\n     \"extDesc\": { \"message\": \"使用人工智慧自動辨識處理網頁上出現的hCAPTCHA和reCAPTCHA. 與迷你派采集器無縫整合,實現絲滑的資料擷取\" },\r\n     \"extAuthor\": { \"message\": \"miniRPA <service@minirpa.net>\" },\r\n     \"lbl_logo\": { \"message\": \"MiniRPA驗證碼識別器\" },\r\n     \"lbl_setting\": { \"message\": \"設定\" },\r\n     \"lbl_run_scope\": { \"message\": \"自動偵測並解決驗證碼的範圍\" },\r\n     \"lbl_rm_addon\": { \"message\": \"目前標籤頁和來自合作擴充程式的標籤頁(多頁同時處理)\" },\r\n     \"lbl_rm_curtab\": { \"message\": \"目前標籤頁\" },\r\n     \"lbl_rm_no\": { \"message\": \"無 (停止偵測)\" },\r\n     \"lbl_addon_link_status\": { \"message\": \"合作夥伴擴充程式\" },\r\n     \"lbl_col_addonName\": { \"message\": \"名稱\" },\r\n     \"lbl_col_connected\": { \"message\": \"已連結\" },\r\n     \"lbl_col_msg\": { \"message\": \"說明\" },\r\n     \"lbl_comment_1\": { \"message\": \"我們重視您的回饋!\" },\r\n     \"lbl_comment_2\": { \"message\": \"請花 5 秒分享您的評論.\" },\r\n     \"tip_partner_tab_1\": { \"message\": \"透過合作夥伴擴充程式，您可以：\" },\r\n     \"tip_partner_tab_2\": { \"message\": \"<ul><li>並行解決多個驗證碼</li><li>透過調整延遲時間加快速度</li><li>在驗證碼解決後聲明後續操作</li><li> li><li>指定要解決的驗證碼類型</li></ul>\" },\r\n     \"tip_partner_tab_3\": { \"message\": \"在不同網站上輕鬆實現瀏覽器自動化.\" },\r\n     \"tip_partner_tab_4\": { \"message\": \"<i>（連接上任何合作夥伴後可啟用）</i>\" },\r\n     \"partner_nds\": { \"message\": \"迷你派采集器\" },\r\n     \"lbl_no_addons\": {\"message\": \"尚無可連接的合作夥伴擴充程式.\"}\r\n}"
  },
  {
    "path": "utils/hcaptchasolver/background.js",
    "content": "/*! For license information please see background.js.LICENSE.txt */\n!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,\"a\",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p=\"\",r(r.s=404)}([function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&o.call(k,u)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}r.d(e,\"a\",(function(){return a})),r.d(e,\"d\",(function(){return s})),r.d(e,\"b\",(function(){return u})),r.d(e,\"c\",(function(){return c}));var o=i().mark(c);function a(t){if(void 0===t)return!1;if(\"function\"!=typeof t)throw new TypeError(\"Callback must be a function\");return!0}function s(t,e){if(\"string\"==typeof t&&(t=new Error(t)),\"function\"==typeof e)return e.call(this,t);throw t}function u(t,e,r,n,i,o){e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i);for(var a=r;a<r+i;a++)for(var s=e;s<e+n;s++){var u=t.bitmap.width*a+s<<2;o.call(t,s,a,u)}return t}function c(t,e,r,n,a){var s,u,c;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e=Math.round(e),r=Math.round(r),n=Math.round(n),a=Math.round(a),s=r;case 5:if(!(s<r+a)){i.next=17;break}u=e;case 7:if(!(u<e+n)){i.next=14;break}return c=t.bitmap.width*s+u<<2,i.next=11,{x:u,y:s,idx:c,image:t};case 11:u++,i.next=7;break;case 14:s++,i.next=5;break;case 17:case\"end\":return i.stop()}}),o)}},,function(t,e,r){\"use strict\";(function(t){var n=r(120),i=r(67),o=r(121);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if(\"number\"==typeof t){if(\"string\"==typeof e)throw new Error(\"If encoding is specified then the first argument must be a string\");return l(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if(\"number\"==typeof e)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError(\"'offset' is out of bounds\");if(e.byteLength<r+(n||0))throw new RangeError(\"'length' is out of bounds\");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,r,n):\"string\"==typeof e?function(t,e,r){\"string\"==typeof r&&\"\"!==r||(r=\"utf8\");if(!u.isEncoding(r))throw new TypeError('\"encoding\" must be a valid string encoding');var n=0|d(e,r);t=s(t,n);var i=t.write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|p(e.length);return 0===(t=s(t,r)).length||e.copy(t,0,0,r),t}if(e){if(\"undefined\"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||\"length\"in e)return\"number\"!=typeof e.length||(n=e.length)!=n?s(t,0):h(t,e);if(\"Buffer\"===e.type&&o(e.data))return h(t,e.data)}var n;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(t,e)}function f(t){if(\"number\"!=typeof t)throw new TypeError('\"size\" argument must be a number');if(t<0)throw new RangeError('\"size\" argument must not be negative')}function l(t,e){if(f(e),t=s(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function h(t,e){var r=e.length<0?0:0|p(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=a())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+a().toString(16)+\" bytes\");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;\"string\"!=typeof t&&(t=\"\"+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":case void 0:return U(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return G(t).length;default:if(n)return U(t).length;e=(\"\"+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(e>>>=0))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return C(this,e,r);case\"utf8\":case\"utf-8\":return S(this,e,r);case\"ascii\":return M(this,e,r);case\"latin1\":case\"binary\":return O(this,e,r);case\"base64\":return D(this,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return F(this,e,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if(\"string\"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if(\"number\"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError(\"val must be string, number or Buffer\")}function g(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(t,o)===c(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var l=!0,h=0;h<u;h++)if(c(t,o+h)!==c(e,h)){l=!1;break}if(l)return o}return-1}function b(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError(\"Invalid hex string\");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function w(t,e,r,n){return H(U(e,t.length-r),t,r,n)}function _(t,e,r,n){return H(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return _(t,e,r,n)}function E(t,e,r,n){return H(G(e),t,r,n)}function k(t,e,r,n){return H(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function D(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function S(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,c=t[i],f=null,l=c>239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);var r=\"\",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&\"function\"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return f(e),e<=0?s(t,e):void 0!==r?\"string\"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return l(null,t)},u.allocUnsafeSlow=function(t){return l(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError(\"Arguments must be Buffers\");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('\"list\" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?\"\":0===arguments.length?S(this,0,t):m.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t=\"\",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString(\"hex\",0,r).match(/.{2}/g).join(\" \"),this.length>r&&(t+=\" ... \")),\"<Buffer \"+t+\">\"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError(\"out of range index\");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(n,i),f=t.slice(e,r),l=0;l<s;++l)if(c[l]!==f[l]){o=c[l],a=f[l];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n=\"utf8\",r=this.length,e=0;else if(void 0===r&&\"string\"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");e|=0,isFinite(r)?(r|=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var o=!1;;)switch(n){case\"hex\":return b(this,t,e,r);case\"utf8\":case\"utf-8\":return w(this,t,e,r);case\"ascii\":return _(this,t,e,r);case\"latin1\":case\"binary\":return x(this,t,e,r);case\"base64\":return E(this,t,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return k(this,t,e,r);default:if(o)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function M(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function O(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function C(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i=\"\",o=e;o<r;++o)i+=z(t[o]);return i}function F(t,e,r){for(var n=t.slice(e,r),i=\"\",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function I(t,e,r){if(t%1!=0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>r)throw new RangeError(\"Trying to access beyond buffer length\")}function B(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('\"value\" argument is out of bounds');if(r+n>t.length)throw new RangeError(\"Index out of range\")}function T(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function L(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function P(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function j(t,e,r,n,o){return o||P(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,o){return o||P(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||I(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||I(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||I(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||I(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||B(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||B(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return j(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return j(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if(\"string\"==typeof t){if(\"string\"==typeof e?(n=e,e=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&\"string\"!=typeof n)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!u.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n)}else\"number\"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError(\"Out of range index\");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),\"number\"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=u.isBuffer(t)?t:U(new u(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var R=/[^+\\/0-9A-Za-z-_]/g;function z(t){return t<16?\"0\"+t.toString(16):t.toString(16)}function U(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\\s+|\\s+$/g,\"\")}(t).replace(R,\"\")).length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t}(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(10))},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return Cr}));var n=r(4),i=r(253),o=r(115),a=r(2),s=r(66);function u(t){let e=t.length;for(;--e>=0;)t[e]=0}const c=256,f=286,l=30,h=15,p=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),d=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),m=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),y=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),v=new Array(576);u(v);const g=new Array(60);u(g);const b=new Array(512);u(b);const w=new Array(256);u(w);const _=new Array(29);u(_);const x=new Array(l);function E(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}let k,D,S;function A(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}u(x);const M=t=>t<256?b[t]:b[256+(t>>>7)],O=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},C=(t,e,r)=>{t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,O(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)},F=(t,e,r)=>{C(t,r[2*e],r[2*e+1])},I=(t,e)=>{let r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1},B=(t,e,r)=>{const n=new Array(16);let i,o,a=0;for(i=1;i<=h;i++)a=a+r[i-1]<<1,n[i]=a;for(o=0;o<=e;o++){let e=t[2*o+1];0!==e&&(t[2*o]=I(n[e]++,e))}},T=t=>{let e;for(e=0;e<f;e++)t.dyn_ltree[2*e]=0;for(e=0;e<l;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},L=t=>{t.bi_valid>8?O(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},P=(t,e,r,n)=>{const i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]},j=(t,e,r)=>{const n=t.heap[r];let i=r<<1;for(;i<=t.heap_len&&(i<t.heap_len&&P(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!P(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n},N=(t,e,r)=>{let n,i,o,a,s=0;if(0!==t.sym_next)do{n=255&t.pending_buf[t.sym_buf+s++],n+=(255&t.pending_buf[t.sym_buf+s++])<<8,i=t.pending_buf[t.sym_buf+s++],0===n?F(t,i,e):(o=w[i],F(t,o+c+1,e),a=p[o],0!==a&&(i-=_[o],C(t,i,a)),n--,o=M(n),F(t,o,r),a=d[o],0!==a&&(n-=x[o],C(t,n,a)))}while(s<t.sym_next);F(t,256,e)},R=(t,e)=>{const r=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,o=e.stat_desc.elems;let a,s,u,c=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<o;a++)0!==r[2*a]?(t.heap[++t.heap_len]=c=a,t.depth[a]=0):r[2*a+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=c<2?++c:0,r[2*u]=1,t.depth[u]=0,t.opt_len--,i&&(t.static_len-=n[2*u+1]);for(e.max_code=c,a=t.heap_len>>1;a>=1;a--)j(t,r,a);u=o;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],j(t,r,1),s=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=s,r[2*u]=r[2*a]+r[2*s],t.depth[u]=(t.depth[a]>=t.depth[s]?t.depth[a]:t.depth[s])+1,r[2*a+1]=r[2*s+1]=u,t.heap[1]=u++,j(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const r=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,o=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,u=e.stat_desc.max_length;let c,f,l,p,d,m,y=0;for(p=0;p<=h;p++)t.bl_count[p]=0;for(r[2*t.heap[t.heap_max]+1]=0,c=t.heap_max+1;c<573;c++)f=t.heap[c],p=r[2*r[2*f+1]+1]+1,p>u&&(p=u,y++),r[2*f+1]=p,f>n||(t.bl_count[p]++,d=0,f>=s&&(d=a[f-s]),m=r[2*f],t.opt_len+=m*(p+d),o&&(t.static_len+=m*(i[2*f+1]+d)));if(0!==y){do{for(p=u-1;0===t.bl_count[p];)p--;t.bl_count[p]--,t.bl_count[p+1]+=2,t.bl_count[u]--,y-=2}while(y>0);for(p=u;0!==p;p--)for(f=t.bl_count[p];0!==f;)l=t.heap[--c],l>n||(r[2*l+1]!==p&&(t.opt_len+=(p-r[2*l+1])*r[2*l],r[2*l+1]=p),f--)}})(t,e),B(r,c,t.bl_count)},z=(t,e,r)=>{let n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))},U=(t,e,r)=>{let n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{F(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(F(t,i,t.bl_tree),s--),F(t,16,t.bl_tree),C(t,s-3,2)):s<=10?(F(t,17,t.bl_tree),C(t,s-3,3)):(F(t,18,t.bl_tree),C(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}};let G=!1;const H=(t,e,r,n)=>{C(t,0+(n?1:0),3),L(t),O(t,r),O(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r};var Z=(t,e,r,n)=>{let i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),a=(t=>{let e;for(z(t,t.dyn_ltree,t.l_desc.max_code),z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*y[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),i=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?H(t,e,r,n):4===t.strategy||o===i?(C(t,2+(n?1:0),3),N(t,v,g)):(C(t,4+(n?1:0),3),((t,e,r,n)=>{let i;for(C(t,e-257,5),C(t,r-1,5),C(t,n-4,4),i=0;i<n;i++)C(t,t.bl_tree[2*y[i]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,r-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),N(t,t.dyn_ltree,t.dyn_dtree)),T(t),n&&L(t)},q={_tr_init:t=>{G||((()=>{let t,e,r,n,i;const o=new Array(16);for(r=0,n=0;n<28;n++)for(_[n]=r,t=0;t<1<<p[n];t++)w[r++]=n;for(w[r-1]=n,i=0,n=0;n<16;n++)for(x[n]=i,t=0;t<1<<d[n];t++)b[i++]=n;for(i>>=7;n<l;n++)for(x[n]=i<<7,t=0;t<1<<d[n]-7;t++)b[256+i++]=n;for(e=0;e<=h;e++)o[e]=0;for(t=0;t<=143;)v[2*t+1]=8,t++,o[8]++;for(;t<=255;)v[2*t+1]=9,t++,o[9]++;for(;t<=279;)v[2*t+1]=7,t++,o[7]++;for(;t<=287;)v[2*t+1]=8,t++,o[8]++;for(B(v,287,o),t=0;t<l;t++)g[2*t+1]=5,g[2*t]=I(t,5);k=new E(v,p,257,f,h),D=new E(g,d,0,l,h),S=new E(new Array(0),m,0,19,7)})(),G=!0),t.l_desc=new A(t.dyn_ltree,k),t.d_desc=new A(t.dyn_dtree,D),t.bl_desc=new A(t.bl_tree,S),t.bi_buf=0,t.bi_valid=0,T(t)},_tr_stored_block:H,_tr_flush_block:Z,_tr_tally:(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(w[r]+c+1)]++,t.dyn_dtree[2*M(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{C(t,2,3),F(t,256,v),(t=>{16===t.bi_valid?(O(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var W=(t,e,r,n)=>{let i=65535&t,o=t>>>16&65535,a=0;for(;0!==r;){a=r>2e3?2e3:r,r-=a;do{i=i+e[n++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16};const Y=new Uint32Array((()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e})());var X=(t,e,r,n)=>{const i=Y,o=n+r;t^=-1;for(let r=n;r<o;r++)t=t>>>8^i[255&(t^e[r])];return~t},V={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"},J={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:K,_tr_stored_block:Q,_tr_flush_block:$,_tr_tally:tt,_tr_align:et}=q,{Z_NO_FLUSH:rt,Z_PARTIAL_FLUSH:nt,Z_FULL_FLUSH:it,Z_FINISH:ot,Z_BLOCK:at,Z_OK:st,Z_STREAM_END:ut,Z_STREAM_ERROR:ct,Z_DATA_ERROR:ft,Z_BUF_ERROR:lt,Z_DEFAULT_COMPRESSION:ht,Z_FILTERED:pt,Z_HUFFMAN_ONLY:dt,Z_RLE:mt,Z_FIXED:yt,Z_DEFAULT_STRATEGY:vt,Z_UNKNOWN:gt,Z_DEFLATED:bt}=J,wt=258,_t=262,xt=42,Et=113,kt=666,Dt=(t,e)=>(t.msg=V[e],e),St=t=>2*t-(t>4?9:0),At=t=>{let e=t.length;for(;--e>=0;)t[e]=0},Mt=t=>{let e,r,n,i=t.w_size;e=t.hash_size,n=e;do{r=t.head[--n],t.head[n]=r>=i?r-i:0}while(--e);e=i,n=e;do{r=t.prev[--n],t.prev[n]=r>=i?r-i:0}while(--e)};let Ot=(t,e,r)=>(e<<t.hash_shift^r)&t.hash_mask;const Ct=t=>{const e=t.state;let r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))},Ft=(t,e)=>{$(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Ct(t.strm)},It=(t,e)=>{t.pending_buf[t.pending++]=e},Bt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Tt=(t,e,r,n)=>{let i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),1===t.state.wrap?t.adler=W(t.adler,e,i,r):2===t.state.wrap&&(t.adler=X(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},Lt=(t,e)=>{let r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match;const u=t.strstart>t.w_size-_t?t.strstart-(t.w_size-_t):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+wt;let p=c[o+a-1],d=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(r=e,c[r+a]===d&&c[r+a-1]===p&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=wt-(h-o),o=h-wt,n>a){if(t.match_start=e,a=n,n>=s)break;p=c[o+a-1],d=c[o+a]}}}while((e=l[e&f])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead},Pt=t=>{const e=t.w_size;let r,n,i;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-_t)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),Mt(t),n+=e),0===t.strm.avail_in)break;if(r=Tt(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=r,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Ot(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Ot(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<_t&&0!==t.strm.avail_in)},jt=(t,e)=>{let r,n,i,o=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a=0,s=t.strm.avail_in;do{if(r=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,n=t.strstart-t.block_start,r>n+t.strm.avail_in&&(r=n+t.strm.avail_in),r>i&&(r=i),r<o&&(0===r&&e!==ot||e===rt||r!==n+t.strm.avail_in))break;a=e===ot&&r===n+t.strm.avail_in?1:0,Q(t,0,0,a),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,Ct(t.strm),n&&(n>r&&(n=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,r-=n),r&&(Tt(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(0===a);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),a?4:e!==rt&&e!==ot&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(Tt(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,o=i>t.w_size?t.w_size:i,n=t.strstart-t.block_start,(n>=o||(n||e===ot)&&e!==rt&&0===t.strm.avail_in&&n<=i)&&(r=n>i?i:n,a=e===ot&&0===t.strm.avail_in&&r===n?1:0,Q(t,t.block_start,r,a),t.block_start+=r,Ct(t.strm)),a?3:1)},Nt=(t,e)=>{let r,n;for(;;){if(t.lookahead<_t){if(Pt(t),t.lookahead<_t&&e===rt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-_t&&(t.match_length=Lt(t,r)),t.match_length>=3)if(n=tt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+1]);else n=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ft(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===ot?(Ft(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ft(t,!1),0===t.strm.avail_out)?1:2},Rt=(t,e)=>{let r,n,i;for(;;){if(t.lookahead<_t){if(Pt(t),t.lookahead<_t&&e===rt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-_t&&(t.match_length=Lt(t,r),t.match_length<=5&&(t.strategy===pt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=tt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ft(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(n=tt(t,0,t.window[t.strstart-1]),n&&Ft(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=tt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===ot?(Ft(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ft(t,!1),0===t.strm.avail_out)?1:2};function zt(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}const Ut=[new zt(0,0,0,0,jt),new zt(4,4,8,4,Nt),new zt(4,5,16,8,Nt),new zt(4,6,32,32,Nt),new zt(4,4,16,16,Rt),new zt(8,16,32,32,Rt),new zt(8,16,128,128,Rt),new zt(8,32,128,256,Rt),new zt(32,128,258,1024,Rt),new zt(32,258,258,4096,Rt)];function Gt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=bt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),At(this.dyn_ltree),At(this.dyn_dtree),At(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),At(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),At(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ht=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==xt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==Et&&e.status!==kt?1:0},Zt=t=>{if(Ht(t))return Dt(t,ct);t.total_in=t.total_out=0,t.data_type=gt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?xt:Et,t.adler=2===e.wrap?0:1,e.last_flush=-2,K(e),st},qt=t=>{const e=Zt(t);var r;return e===st&&((r=t.state).window_size=2*r.w_size,At(r.head),r.max_lazy_match=Ut[r.level].max_lazy,r.good_match=Ut[r.level].good_length,r.nice_match=Ut[r.level].nice_length,r.max_chain_length=Ut[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,r.ins_h=0),e},Wt=(t,e,r,n,i,o)=>{if(!t)return ct;let a=1;if(e===ht&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||r!==bt||n<8||n>15||e<0||e>9||o<0||o>yt||8===n&&1!==a)return Dt(t,ct);8===n&&(n=9);const s=new Gt;return t.state=s,s.strm=t,s.status=xt,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=o,s.method=r,qt(t)};var Yt={deflateInit:(t,e)=>Wt(t,e,bt,15,8,vt),deflateInit2:Wt,deflateReset:qt,deflateResetKeep:Zt,deflateSetHeader:(t,e)=>Ht(t)||2!==t.state.wrap?ct:(t.state.gzhead=e,st),deflate:(t,e)=>{if(Ht(t)||e>at||e<0)return t?Dt(t,ct):ct;const r=t.state;if(!t.output||0!==t.avail_in&&!t.input||r.status===kt&&e!==ot)return Dt(t,0===t.avail_out?lt:ct);const n=r.last_flush;if(r.last_flush=e,0!==r.pending){if(Ct(t),0===t.avail_out)return r.last_flush=-1,st}else if(0===t.avail_in&&St(e)<=St(n)&&e!==ot)return Dt(t,lt);if(r.status===kt&&0!==t.avail_in)return Dt(t,lt);if(r.status===xt&&0===r.wrap&&(r.status=Et),r.status===xt){let e=bt+(r.w_bits-8<<4)<<8,n=-1;if(n=r.strategy>=dt||r.level<2?0:r.level<6?1:6===r.level?2:3,e|=n<<6,0!==r.strstart&&(e|=32),e+=31-e%31,Bt(r,e),0!==r.strstart&&(Bt(r,t.adler>>>16),Bt(r,65535&t.adler)),t.adler=1,r.status=Et,Ct(t),0!==r.pending)return r.last_flush=-1,st}if(57===r.status)if(t.adler=0,It(r,31),It(r,139),It(r,8),r.gzhead)It(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),It(r,255&r.gzhead.time),It(r,r.gzhead.time>>8&255),It(r,r.gzhead.time>>16&255),It(r,r.gzhead.time>>24&255),It(r,9===r.level?2:r.strategy>=dt||r.level<2?4:0),It(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(It(r,255&r.gzhead.extra.length),It(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=X(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(It(r,0),It(r,0),It(r,0),It(r,0),It(r,0),It(r,9===r.level?2:r.strategy>=dt||r.level<2?4:0),It(r,3),r.status=Et,Ct(t),0!==r.pending)return r.last_flush=-1,st;if(69===r.status){if(r.gzhead.extra){let e=r.pending,n=(65535&r.gzhead.extra.length)-r.gzindex;for(;r.pending+n>r.pending_buf_size;){let i=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+i),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>e&&(t.adler=X(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex+=i,Ct(t),0!==r.pending)return r.last_flush=-1,st;e=0,n-=i}let i=new Uint8Array(r.gzhead.extra);r.pending_buf.set(i.subarray(r.gzindex,r.gzindex+n),r.pending),r.pending+=n,r.gzhead.hcrc&&r.pending>e&&(t.adler=X(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex=0}r.status=73}if(73===r.status){if(r.gzhead.name){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=X(t.adler,r.pending_buf,r.pending-n,n)),Ct(t),0!==r.pending)return r.last_flush=-1,st;n=0}e=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,It(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=X(t.adler,r.pending_buf,r.pending-n,n)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=X(t.adler,r.pending_buf,r.pending-n,n)),Ct(t),0!==r.pending)return r.last_flush=-1,st;n=0}e=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,It(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=X(t.adler,r.pending_buf,r.pending-n,n))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(Ct(t),0!==r.pending))return r.last_flush=-1,st;It(r,255&t.adler),It(r,t.adler>>8&255),t.adler=0}if(r.status=Et,Ct(t),0!==r.pending)return r.last_flush=-1,st}if(0!==t.avail_in||0!==r.lookahead||e!==rt&&r.status!==kt){let n=0===r.level?jt(r,e):r.strategy===dt?((t,e)=>{let r;for(;;){if(0===t.lookahead&&(Pt(t),0===t.lookahead)){if(e===rt)return 1;break}if(t.match_length=0,r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Ft(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===ot?(Ft(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ft(t,!1),0===t.strm.avail_out)?1:2})(r,e):r.strategy===mt?((t,e)=>{let r,n,i,o;const a=t.window;for(;;){if(t.lookahead<=wt){if(Pt(t),t.lookahead<=wt&&e===rt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=t.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=t.strstart+wt;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=wt-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=tt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Ft(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===ot?(Ft(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ft(t,!1),0===t.strm.avail_out)?1:2})(r,e):Ut[r.level].func(r,e);if(3!==n&&4!==n||(r.status=kt),1===n||3===n)return 0===t.avail_out&&(r.last_flush=-1),st;if(2===n&&(e===nt?et(r):e!==at&&(Q(r,0,0,!1),e===it&&(At(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Ct(t),0===t.avail_out))return r.last_flush=-1,st}return e!==ot?st:r.wrap<=0?ut:(2===r.wrap?(It(r,255&t.adler),It(r,t.adler>>8&255),It(r,t.adler>>16&255),It(r,t.adler>>24&255),It(r,255&t.total_in),It(r,t.total_in>>8&255),It(r,t.total_in>>16&255),It(r,t.total_in>>24&255)):(Bt(r,t.adler>>>16),Bt(r,65535&t.adler)),Ct(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?st:ut)},deflateEnd:t=>{if(Ht(t))return ct;const e=t.state.status;return t.state=null,e===Et?Dt(t,ft):st},deflateSetDictionary:(t,e)=>{let r=e.length;if(Ht(t))return ct;const n=t.state,i=n.wrap;if(2===i||1===i&&n.status!==xt||n.lookahead)return ct;if(1===i&&(t.adler=W(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){0===i&&(At(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(r-n.w_size,r),0),e=t,r=n.w_size}const o=t.avail_in,a=t.next_in,s=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,Pt(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do{n.ins_h=Ot(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++}while(--e);n.strstart=t,n.lookahead=2,Pt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=a,t.input=s,t.avail_in=o,n.wrap=i,st},deflateInfo:\"pako deflate (from Nodeca project)\"};const Xt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Vt={assign:function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if(\"object\"!=typeof r)throw new TypeError(r+\"must be non-object\");for(const e in r)Xt(r,e)&&(t[e]=r[e])}}return t},flattenChunks:t=>{let e=0;for(let r=0,n=t.length;r<n;r++)e+=t[r].length;const r=new Uint8Array(e);for(let e=0,n=0,i=t.length;e<i;e++){let i=t[e];r.set(i,n),n+=i.length}return r}};let Jt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Jt=!1}const Kt=new Uint8Array(256);for(let t=0;t<256;t++)Kt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Kt[254]=Kt[254]=1;var Qt={string2buf:t=>{if(\"function\"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},buf2string:(t,e)=>{const r=e||t.length;if(\"function\"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let n,i;const o=new Array(2*r);for(i=0,n=0;n<r;){let e=t[n++];if(e<128){o[i++]=e;continue}let a=Kt[e];if(a>4)o[i++]=65533,n+=a-1;else{for(e&=2===a?31:3===a?15:7;a>1&&n<r;)e=e<<6|63&t[n++],a--;a>1?o[i++]=65533:e<65536?o[i++]=e:(e-=65536,o[i++]=55296|e>>10&1023,o[i++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Jt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r=\"\";for(let n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r})(o,i)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let r=e-1;for(;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Kt[t[r]]>e?r:e}};var $t=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0};const te=Object.prototype.toString,{Z_NO_FLUSH:ee,Z_SYNC_FLUSH:re,Z_FULL_FLUSH:ne,Z_FINISH:ie,Z_OK:oe,Z_STREAM_END:ae,Z_DEFAULT_COMPRESSION:se,Z_DEFAULT_STRATEGY:ue,Z_DEFLATED:ce}=J;function fe(t){this.options=Vt.assign({level:se,method:ce,chunkSize:16384,windowBits:15,memLevel:8,strategy:ue},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new $t,this.strm.avail_out=0;let r=Yt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==oe)throw new Error(V[r]);if(e.header&&Yt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t=\"string\"==typeof e.dictionary?Qt.string2buf(e.dictionary):\"[object ArrayBuffer]\"===te.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,r=Yt.deflateSetDictionary(this.strm,t),r!==oe)throw new Error(V[r]);this._dict_set=!0}}function le(t,e){const r=new fe(e);if(r.push(t,!0),r.err)throw r.msg||V[r.err];return r.result}fe.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=e===~~e?e:!0===e?ie:ee,\"string\"==typeof t?r.input=Qt.string2buf(t):\"[object ArrayBuffer]\"===te.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===re||o===ne)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(i=Yt.deflate(r,o),i===ae)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=Yt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===oe;if(0!==r.avail_out){if(o>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},fe.prototype.onData=function(t){this.chunks.push(t)},fe.prototype.onEnd=function(t){t===oe&&(this.result=Vt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var he={Deflate:fe,deflate:le,deflateRaw:function(t,e){return(e=e||{}).raw=!0,le(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,le(t,e)},constants:J};const pe=16209;var de=function(t,e){let r,n,i,o,a,s,u,c,f,l,h,p,d,m,y,v,g,b,w,_,x,E,k,D;const S=t.state;r=t.next_in,k=t.input,n=r+(t.avail_in-5),i=t.next_out,D=t.output,o=i-(e-t.avail_out),a=i+(t.avail_out-257),s=S.dmax,u=S.wsize,c=S.whave,f=S.wnext,l=S.window,h=S.hold,p=S.bits,d=S.lencode,m=S.distcode,y=(1<<S.lenbits)-1,v=(1<<S.distbits)-1;t:do{p<15&&(h+=k[r++]<<p,p+=8,h+=k[r++]<<p,p+=8),g=d[h&y];e:for(;;){if(b=g>>>24,h>>>=b,p-=b,b=g>>>16&255,0===b)D[i++]=65535&g;else{if(!(16&b)){if(64&b){if(32&b){S.mode=16191;break t}t.msg=\"invalid literal/length code\",S.mode=pe;break t}g=d[(65535&g)+(h&(1<<b)-1)];continue e}for(w=65535&g,b&=15,b&&(p<b&&(h+=k[r++]<<p,p+=8),w+=h&(1<<b)-1,h>>>=b,p-=b),p<15&&(h+=k[r++]<<p,p+=8,h+=k[r++]<<p,p+=8),g=m[h&v];;){if(b=g>>>24,h>>>=b,p-=b,b=g>>>16&255,16&b){if(_=65535&g,b&=15,p<b&&(h+=k[r++]<<p,p+=8,p<b&&(h+=k[r++]<<p,p+=8)),_+=h&(1<<b)-1,_>s){t.msg=\"invalid distance too far back\",S.mode=pe;break t}if(h>>>=b,p-=b,b=i-o,_>b){if(b=_-b,b>c&&S.sane){t.msg=\"invalid distance too far back\",S.mode=pe;break t}if(x=0,E=l,0===f){if(x+=u-b,b<w){w-=b;do{D[i++]=l[x++]}while(--b);x=i-_,E=D}}else if(f<b){if(x+=u+f-b,b-=f,b<w){w-=b;do{D[i++]=l[x++]}while(--b);if(x=0,f<w){b=f,w-=b;do{D[i++]=l[x++]}while(--b);x=i-_,E=D}}}else if(x+=f-b,b<w){w-=b;do{D[i++]=l[x++]}while(--b);x=i-_,E=D}for(;w>2;)D[i++]=E[x++],D[i++]=E[x++],D[i++]=E[x++],w-=3;w&&(D[i++]=E[x++],w>1&&(D[i++]=E[x++]))}else{x=i-_;do{D[i++]=D[x++],D[i++]=D[x++],D[i++]=D[x++],w-=3}while(w>2);w&&(D[i++]=D[x++],w>1&&(D[i++]=D[x++]))}break}if(64&b){t.msg=\"invalid distance code\",S.mode=pe;break t}g=m[(65535&g)+(h&(1<<b)-1)]}}break}}while(r<n&&i<a);w=p>>3,r-=w,p-=w<<3,h&=(1<<p)-1,t.next_in=r,t.next_out=i,t.avail_in=r<n?n-r+5:5-(r-n),t.avail_out=i<a?a-i+257:257-(i-a),S.hold=h,S.bits=p};const me=15,ye=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ve=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ge=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),be=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var we=(t,e,r,n,i,o,a,s)=>{const u=s.bits;let c,f,l,h,p,d,m=0,y=0,v=0,g=0,b=0,w=0,_=0,x=0,E=0,k=0,D=null;const S=new Uint16Array(16),A=new Uint16Array(16);let M,O,C,F=null;for(m=0;m<=me;m++)S[m]=0;for(y=0;y<n;y++)S[e[r+y]]++;for(b=u,g=me;g>=1&&0===S[g];g--);if(b>g&&(b=g),0===g)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(v=1;v<g&&0===S[v];v++);for(b<v&&(b=v),x=1,m=1;m<=me;m++)if(x<<=1,x-=S[m],x<0)return-1;if(x>0&&(0===t||1!==g))return-1;for(A[1]=0,m=1;m<me;m++)A[m+1]=A[m]+S[m];for(y=0;y<n;y++)0!==e[r+y]&&(a[A[e[r+y]]++]=y);if(0===t?(D=F=a,d=20):1===t?(D=ye,F=ve,d=257):(D=ge,F=be,d=0),k=0,y=0,m=v,p=o,w=b,_=0,l=-1,E=1<<b,h=E-1,1===t&&E>852||2===t&&E>592)return 1;for(;;){M=m-_,a[y]+1<d?(O=0,C=a[y]):a[y]>=d?(O=F[a[y]-d],C=D[a[y]-d]):(O=96,C=0),c=1<<m-_,f=1<<w,v=f;do{f-=c,i[p+(k>>_)+f]=M<<24|O<<16|C}while(0!==f);for(c=1<<m-1;k&c;)c>>=1;if(0!==c?(k&=c-1,k+=c):k=0,y++,0==--S[m]){if(m===g)break;m=e[r+a[y]]}if(m>b&&(k&h)!==l){for(0===_&&(_=b),p+=v,w=m-_,x=1<<w;w+_<g&&(x-=S[w+_],!(x<=0));)w++,x<<=1;if(E+=1<<w,1===t&&E>852||2===t&&E>592)return 1;l=k&h,i[l]=b<<24|w<<16|p-o}}return 0!==k&&(i[p+k]=m-_<<24|64<<16),s.bits=b,0};const{Z_FINISH:_e,Z_BLOCK:xe,Z_TREES:Ee,Z_OK:ke,Z_STREAM_END:De,Z_NEED_DICT:Se,Z_STREAM_ERROR:Ae,Z_DATA_ERROR:Me,Z_MEM_ERROR:Oe,Z_BUF_ERROR:Ce,Z_DEFLATED:Fe}=J,Ie=16180,Be=16190,Te=16191,Le=16192,Pe=16194,je=16199,Ne=16200,Re=16206,ze=16209,Ue=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const He=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Ie||e.mode>16211?1:0},Ze=t=>{if(He(t))return Ae;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=Ie,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,ke},qe=t=>{if(He(t))return Ae;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,Ze(t)},We=(t,e)=>{let r;if(He(t))return Ae;const n=t.state;return e<0?(r=0,e=-e):(r=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Ae:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,qe(t))},Ye=(t,e)=>{if(!t)return Ae;const r=new Ge;t.state=r,r.strm=t,r.window=null,r.mode=Ie;const n=We(t,e);return n!==ke&&(t.state=null),n};let Xe,Ve,Je=!0;const Ke=t=>{if(Je){Xe=new Int32Array(512),Ve=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(we(1,t.lens,0,288,Xe,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;we(2,t.lens,0,32,Ve,0,t.work,{bits:5}),Je=!1}t.lencode=Xe,t.lenbits=9,t.distcode=Ve,t.distbits=5},Qe=(t,e,r,n)=>{let i;const o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(e.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(e.subarray(r-n,r-n+i),o.wnext),(n-=i)?(o.window.set(e.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0};var $e={inflateReset:qe,inflateReset2:We,inflateResetKeep:Ze,inflateInit:t=>Ye(t,15),inflateInit2:Ye,inflate:(t,e)=>{let r,n,i,o,a,s,u,c,f,l,h,p,d,m,y,v,g,b,w,_,x,E,k=0;const D=new Uint8Array(4);let S,A;const M=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(He(t)||!t.output||!t.input&&0!==t.avail_in)return Ae;r=t.state,r.mode===Te&&(r.mode=Le),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,f=r.bits,l=s,h=u,E=ke;t:for(;;)switch(r.mode){case Ie:if(0===r.wrap){r.mode=Le;break}for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(2&r.wrap&&35615===c){0===r.wbits&&(r.wbits=15),r.check=0,D[0]=255&c,D[1]=c>>>8&255,r.check=X(r.check,D,2,0),c=0,f=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg=\"incorrect header check\",r.mode=ze;break}if((15&c)!==Fe){t.msg=\"unknown compression method\",r.mode=ze;break}if(c>>>=4,f-=4,x=8+(15&c),0===r.wbits&&(r.wbits=x),x>15||x>r.wbits){t.msg=\"invalid window size\",r.mode=ze;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=512&c?16189:Te,c=0,f=0;break;case 16181:for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(r.flags=c,(255&r.flags)!==Fe){t.msg=\"unknown compression method\",r.mode=ze;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=ze;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&4&r.wrap&&(D[0]=255&c,D[1]=c>>>8&255,r.check=X(r.check,D,2,0)),c=0,f=0,r.mode=16182;case 16182:for(;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.head&&(r.head.time=c),512&r.flags&&4&r.wrap&&(D[0]=255&c,D[1]=c>>>8&255,D[2]=c>>>16&255,D[3]=c>>>24&255,r.check=X(r.check,D,4,0)),c=0,f=0,r.mode=16183;case 16183:for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&4&r.wrap&&(D[0]=255&c,D[1]=c>>>8&255,r.check=X(r.check,D,2,0)),c=0,f=0,r.mode=16184;case 16184:if(1024&r.flags){for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&4&r.wrap&&(D[0]=255&c,D[1]=c>>>8&255,r.check=X(r.check,D,2,0)),c=0,f=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&(p=r.length,p>s&&(p=s),p&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+p),x)),512&r.flags&&4&r.wrap&&(r.check=X(r.check,n,p,o)),s-=p,o+=p,r.length-=p),r.length))break t;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break t;p=0;do{x=n[o+p++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=X(r.check,n,p,o)),s-=p,o+=p,x)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===s)break t;p=0;do{x=n[o+p++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=X(r.check,n,p,o)),s-=p,o+=p,x)break t}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(4&r.wrap&&c!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=ze;break}c=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Te;break;case 16189:for(;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}t.adler=r.check=Ue(c),c=0,f=0,r.mode=Be;case Be:if(0===r.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=f,Se;t.adler=r.check=1,r.mode=Te;case Te:if(e===xe||e===Ee)break t;case Le:if(r.last){c>>>=7&f,f-=7&f,r.mode=Re;break}for(;f<3;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}switch(r.last=1&c,c>>>=1,f-=1,3&c){case 0:r.mode=16193;break;case 1:if(Ke(r),r.mode=je,e===Ee){c>>>=2,f-=2;break t}break;case 2:r.mode=16196;break;case 3:t.msg=\"invalid block type\",r.mode=ze}c>>>=2,f-=2;break;case 16193:for(c>>>=7&f,f-=7&f;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if((65535&c)!=(c>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=ze;break}if(r.length=65535&c,c=0,f=0,r.mode=Pe,e===Ee)break t;case Pe:r.mode=16195;case 16195:if(p=r.length,p){if(p>s&&(p=s),p>u&&(p=u),0===p)break t;i.set(n.subarray(o,o+p),a),s-=p,o+=p,u-=p,a+=p,r.length-=p;break}r.mode=Te;break;case 16196:for(;f<14;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(r.nlen=257+(31&c),c>>>=5,f-=5,r.ndist=1+(31&c),c>>>=5,f-=5,r.ncode=4+(15&c),c>>>=4,f-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=ze;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;f<3;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.lens[M[r.have++]]=7&c,c>>>=3,f-=3}for(;r.have<19;)r.lens[M[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},E=we(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,E){t.msg=\"invalid code lengths set\",r.mode=ze;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;k=r.lencode[c&(1<<r.lenbits)-1],y=k>>>24,v=k>>>16&255,g=65535&k,!(y<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(g<16)c>>>=y,f-=y,r.lens[r.have++]=g;else{if(16===g){for(A=y+2;f<A;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(c>>>=y,f-=y,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=ze;break}x=r.lens[r.have-1],p=3+(3&c),c>>>=2,f-=2}else if(17===g){for(A=y+3;f<A;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}c>>>=y,f-=y,x=0,p=3+(7&c),c>>>=3,f-=3}else{for(A=y+7;f<A;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}c>>>=y,f-=y,x=0,p=11+(127&c),c>>>=7,f-=7}if(r.have+p>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=ze;break}for(;p--;)r.lens[r.have++]=x}}if(r.mode===ze)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=ze;break}if(r.lenbits=9,S={bits:r.lenbits},E=we(1,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,E){t.msg=\"invalid literal/lengths set\",r.mode=ze;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},E=we(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,E){t.msg=\"invalid distances set\",r.mode=ze;break}if(r.mode=je,e===Ee)break t;case je:r.mode=Ne;case Ne:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=f,de(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,f=r.bits,r.mode===Te&&(r.back=-1);break}for(r.back=0;k=r.lencode[c&(1<<r.lenbits)-1],y=k>>>24,v=k>>>16&255,g=65535&k,!(y<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(v&&!(240&v)){for(b=y,w=v,_=g;k=r.lencode[_+((c&(1<<b+w)-1)>>b)],y=k>>>24,v=k>>>16&255,g=65535&k,!(b+y<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}c>>>=b,f-=b,r.back+=b}if(c>>>=y,f-=y,r.back+=y,r.length=g,0===v){r.mode=16205;break}if(32&v){r.back=-1,r.mode=Te;break}if(64&v){t.msg=\"invalid literal/length code\",r.mode=ze;break}r.extra=15&v,r.mode=16201;case 16201:if(r.extra){for(A=r.extra;f<A;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;k=r.distcode[c&(1<<r.distbits)-1],y=k>>>24,v=k>>>16&255,g=65535&k,!(y<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(!(240&v)){for(b=y,w=v,_=g;k=r.distcode[_+((c&(1<<b+w)-1)>>b)],y=k>>>24,v=k>>>16&255,g=65535&k,!(b+y<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}c>>>=b,f-=b,r.back+=b}if(c>>>=y,f-=y,r.back+=y,64&v){t.msg=\"invalid distance code\",r.mode=ze;break}r.offset=g,r.extra=15&v,r.mode=16203;case 16203:if(r.extra){for(A=r.extra;f<A;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=ze;break}r.mode=16204;case 16204:if(0===u)break t;if(p=h-u,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=ze;break}p>r.wnext?(p-=r.wnext,d=r.wsize-p):d=r.wnext-p,p>r.length&&(p=r.length),m=r.window}else m=i,d=a-r.offset,p=r.length;p>u&&(p=u),u-=p,r.length-=p;do{i[a++]=m[d++]}while(--p);0===r.length&&(r.mode=Ne);break;case 16205:if(0===u)break t;i[a++]=r.length,u--,r.mode=Ne;break;case Re:if(r.wrap){for(;f<32;){if(0===s)break t;s--,c|=n[o++]<<f,f+=8}if(h-=u,t.total_out+=h,r.total+=h,4&r.wrap&&h&&(t.adler=r.check=r.flags?X(r.check,i,h,a-h):W(r.check,i,h,a-h)),h=u,4&r.wrap&&(r.flags?c:Ue(c))!==r.check){t.msg=\"incorrect data check\",r.mode=ze;break}c=0,f=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(4&r.wrap&&c!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=ze;break}c=0,f=0}r.mode=16208;case 16208:E=De;break t;case ze:E=Me;break t;case 16210:return Oe;default:return Ae}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=f,(r.wsize||h!==t.avail_out&&r.mode<ze&&(r.mode<Re||e!==_e))&&Qe(t,t.output,t.next_out,h-t.avail_out),l-=t.avail_in,h-=t.avail_out,t.total_in+=l,t.total_out+=h,r.total+=h,4&r.wrap&&h&&(t.adler=r.check=r.flags?X(r.check,i,h,t.next_out-h):W(r.check,i,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Te?128:0)+(r.mode===je||r.mode===Pe?256:0),(0===l&&0===h||e===_e)&&E===ke&&(E=Ce),E},inflateEnd:t=>{if(He(t))return Ae;let e=t.state;return e.window&&(e.window=null),t.state=null,ke},inflateGetHeader:(t,e)=>{if(He(t))return Ae;const r=t.state;return 2&r.wrap?(r.head=e,e.done=!1,ke):Ae},inflateSetDictionary:(t,e)=>{const r=e.length;let n,i,o;return He(t)?Ae:(n=t.state,0!==n.wrap&&n.mode!==Be?Ae:n.mode===Be&&(i=1,i=W(i,e,r,0),i!==n.check)?Me:(o=Qe(t,e,r,r),o?(n.mode=16210,Oe):(n.havedict=1,ke)))},inflateInfo:\"pako inflate (from Nodeca project)\"};var tr=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1};const er=Object.prototype.toString,{Z_NO_FLUSH:rr,Z_FINISH:nr,Z_OK:ir,Z_STREAM_END:or,Z_NEED_DICT:ar,Z_STREAM_ERROR:sr,Z_DATA_ERROR:ur,Z_MEM_ERROR:cr}=J;function fr(t){this.options=Vt.assign({chunkSize:65536,windowBits:15,to:\"\"},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new $t,this.strm.avail_out=0;let r=$e.inflateInit2(this.strm,e.windowBits);if(r!==ir)throw new Error(V[r]);if(this.header=new tr,$e.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=Qt.string2buf(e.dictionary):\"[object ArrayBuffer]\"===er.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=$e.inflateSetDictionary(this.strm,e.dictionary),r!==ir)))throw new Error(V[r])}function lr(t,e){const r=new fr(e);if(r.push(t),r.err)throw r.msg||V[r.err];return r.result}fr.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(a=e===~~e?e:!0===e?nr:rr,\"[object ArrayBuffer]\"===er.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=$e.inflate(r,a),o===ar&&i&&(o=$e.inflateSetDictionary(r,i),o===ir?o=$e.inflate(r,a):o===ur&&(o=ar));r.avail_in>0&&o===or&&r.state.wrap>0&&0!==t[r.next_in];)$e.inflateReset(r),o=$e.inflate(r,a);switch(o){case sr:case ur:case ar:case cr:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||o===or))if(\"string\"===this.options.to){let t=Qt.utf8border(r.output,r.next_out),e=r.next_out-t,i=Qt.buf2string(r.output,t);r.next_out=e,r.avail_out=n-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(o!==ir||0!==s){if(o===or)return o=$e.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},fr.prototype.onData=function(t){this.chunks.push(t)},fr.prototype.onEnd=function(t){t===ir&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=Vt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var hr={Inflate:fr,inflate:lr,inflateRaw:function(t,e){return(e=e||{}).raw=!0,lr(t,e)},ungzip:lr,constants:J};const{Deflate:pr,deflate:dr,deflateRaw:mr,gzip:yr}=he,{Inflate:vr,inflate:gr,inflateRaw:br,ungzip:wr}=hr;var _r={Deflate:pr,deflate:dr,deflateRaw:mr,gzip:yr,Inflate:vr,inflate:gr,inflateRaw:br,ungzip:wr,constants:J};function xr(t){return xr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},xr(t)}function Er(t){return function(t){if(Array.isArray(t))return kr(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return kr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kr(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function kr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Dr(){Dr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new C(n||[]);return i(a,\"_invoke\",{value:S(t,r,s)}),a}function l(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function v(){}function g(){}function b(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(F([])));x&&x!==r&&n.call(x,a)&&(w=x);var E=b.prototype=v.prototype=Object.create(w);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==xr(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=l(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=l(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function F(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(xr(e)+\" is not iterable\")}return g.prototype=b,i(E,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:g,configurable:!0}),g.displayName=c(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},k(D.prototype),c(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new D(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(E),c(E,u,\"Generator\"),c(E,a,(function(){return this})),c(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=F,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function Sr(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Ar(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Sr(o,n,i,a,s,\"next\",t)}function s(t){Sr(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function Mr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Or(n.key),n)}}function Or(t){var e=function(t,e){if(\"object\"!=xr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=xr(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==xr(e)?e:e+\"\"}var Cr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t)}return e=t,r=null,u=[{key:\"Abcc\",value:(T=Ar(Dr().mark((function t(e){return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t){chrome.storage.local.get(e,(function(r){return r&&r[e]?t(r[e]):t({})}))})));case 1:case\"end\":return t.stop()}}),t)}))),function(t){return T.apply(this,arguments)})},{key:\"wbeh\",value:(B=Ar(Dr().mark((function t(e,r){var n;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={})[e]=r,t.next=4,chrome.storage.local.set(n);case 4:case\"end\":return t.stop()}}),t)}))),function(t,e){return B.apply(this,arguments)})},{key:\"Bi9dF\",value:(I=Ar(Dr().mark((function t(e){var r,n,i,o,a=arguments;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:0,n=a.length>2&&void 0!==a[2]?a[2]:1,i=a.length>3?a[3]:void 0,o=Math.floor(Math.random()*r+e),n&&i&&(o=Math.max(o/n,i)),t.next=7,new Promise((function(t){setTimeout(t,o)}));case 7:return t.abrupt(\"return\",t.sent);case 8:case\"end\":return t.stop()}}),t)}))),function(t){return I.apply(this,arguments)})},{key:\"HfbaJ\",value:function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}},{key:\"RhjhR\",value:function(t){var e=t.split(\".\");return 1e3*parseInt(e[0])*1e3+1e3*parseInt(e[1])+parseInt(e[2])}},{key:\"Oeb0\",value:function(e,r){try{return t.RhjhR(e)>=t.RhjhR(r)}catch(t){return!1}}},{key:\"_d5at\",value:function(t,e,r){for(;\"\".concat(t).length<r;)t=\"\".concat(e).concat(t);return t}},{key:\"Dfj0D\",value:(F=Ar(Dr().mark((function t(e){var r,n,i,o;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.B174bD,o=void 0===i?1:i,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"zo4B\",label:{key:n,B174bD:o}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return F.apply(this,arguments)})},{key:\"Mc76\",value:(C=Ar(Dr().mark((function t(e){var r,n,i,o,a,s,u;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.value,o=e.B174bD,a=void 0===o?1:o,s=e.q177o,u=void 0!==s&&s,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"TpiT\",label:{key:n,value:i,B174bD:a,q177o:u}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return C.apply(this,arguments)})},{key:\"Zhc9_\",value:(O=Ar(Dr().mark((function t(e){var r,n,i,o;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.B174bD,o=void 0===i?1:i,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"r136v\",label:{key:n,B174bD:o}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return O.apply(this,arguments)})},{key:\"Cc9h\",value:(M=Ar(Dr().mark((function e(r,n){var i,o,a,s,u,c,f;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(i=chrome.runtime)&&void 0!==i&&i.id){e.next=2;break}return e.abrupt(\"return\",0);case 2:return 3323===r?(s=\"rl94t\",u=\"vm2ex\"):3635===r&&(s=\"Ml74\",u=\"_m0a\"),e.next=5,t.Dfj0D({key:s,B174bD:1});case 5:if(e.t1=o=e.sent,e.t0=null===e.t1,e.t0){e.next=9;break}e.t0=void 0===o;case 9:if(!e.t0){e.next=13;break}e.t2=void 0,e.next=14;break;case 13:e.t2=o.value;case 14:if(e.t2===n){e.next=22;break}return e.next=19,t.Mc76({key:s,value:n,B174bD:1});case 19:a=1,e.next=36;break;case 22:return e.next=24,t.Dfj0D({key:u,B174bD:1});case 24:if(e.t4=c=e.sent,e.t3=null===e.t4,e.t3){e.next=28;break}e.t3=void 0===c;case 28:if(!e.t3){e.next=32;break}e.t5=void 0,e.next=33;break;case 32:e.t5=c.value;case 33:f=e.t5,a=parseInt(f?f+\"\":\"1\")+1;case 36:return e.next=38,t.Mc76({key:u,value:a,B174bD:1});case 38:return e.abrupt(\"return\",a);case 39:case\"end\":return e.stop()}}),e)}))),function(t,e){return M.apply(this,arguments)})},{key:\"_g06\",value:(A=Ar(Dr().mark((function e(r){var n,i,o,a,s;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Dfj0D({key:\"CSLcaeg\",B174bD:-1});case 2:if(e.t1=n=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===n;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=n.value;case 11:return o=e.t2,e.next=14,t.Dfj0D({key:\"CSLid5l\"});case 14:if(e.t4=i=e.sent,e.t3=null===e.t4,e.t3){e.next=18;break}e.t3=void 0===i;case 18:if(!e.t3){e.next=22;break}e.t5=void 0,e.next=23;break;case 22:e.t5=i.value;case 23:return a=e.t5,s=1,3323===r?s=parseFloat((null==o?void 0:o.hcs)||a||\"1.1708\"):3635===r&&(s=parseFloat((null==o?void 0:o.res)||a||\"1.1708\")),e.abrupt(\"return\",s);case 27:case\"end\":return e.stop()}}),e)}))),function(t){return A.apply(this,arguments)})},{key:\"VfeeX\",value:(S=Ar(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s1c4\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return S.apply(this,arguments)})},{key:\"yfml\",value:(D=Ar(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x236B\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return D.apply(this,arguments)})},{key:\"qi5f\",value:(k=Ar(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x1cmx\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return k.apply(this,arguments)})},{key:\"FcflF\",value:(E=Ar(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"B142B\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return E.apply(this,arguments)})},{key:\"xehcz\",value:(x=Ar(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s163\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return x.apply(this,arguments)})},{key:\"Jef6N\",value:(_=Ar(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"D18fF\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return _.apply(this,arguments)})},{key:\"tg42v\",value:(w=Ar(Dr().mark((function t(e){var r;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.next=2;break;case 2:if(null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=4;break}return t.abrupt(\"return\",void 0);case 4:return t.abrupt(\"return\",new Promise((function(t,r){chrome.runtime.sendMessage({type:\"q1fj\",label:e},(function(e){e?t(e):r()}))})));case 5:case\"end\":return t.stop()}}),t)}))),function(t){return w.apply(this,arguments)})},{key:\"Bc2bD\",value:(b=Ar(Dr().mark((function e(r){var n,i,o,a,s,u,c,f,l,h,p,d,m,y,v=arguments;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=v.length>1&&void 0!==v[1]&&v[1],i=v.length>2&&void 0!==v[2]?v[2]:null,o=v.length>3&&void 0!==v[3]?v[3]:null,a=v.length>4&&void 0!==v[4]?v[4]:1,r&&r.isConnected){e.next=7;break}return e.abrupt(\"return\");case 7:if(s=r.getBoundingClientRect(),null!==i&&null!==o||(i=s.left+s.width/2,o=s.top+s.height/2),!isNaN(i)&&!isNaN(o)){e.next=12;break}return e.abrupt(\"return\");case 12:if(!n){e.next=29;break}u=[{e:\"mouseover\",w:30/a},{e:\"mouseenter\",w:15/a}].concat(Er(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/a})),[{e:\"mousedown\",w:35/a},{e:\"mouseup\",w:30/a},{e:\"click\",w:35/a}],Er(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/a})),[{e:\"mouseout\",w:25/a}]),c=0;case 15:if(!(c<u.length)){e.next=27;break}return f=u[c].e,l=50+Math.floor(100*Math.random()),h=50+Math.floor(200*Math.random()),\"mouseenter\"!==f&&\"mouseout\"!==f?(i=s.left+s.width/2,o=s.top+s.height/2):(i=s.left+(\"mouseenter\"===f?0:s.width),o=s.top+(\"mouseenter\"===f?0:s.height),i+=10*Math.random()-5,o+=20*Math.random()-5),p=new MouseEvent(f,{detail:\"mouseover\"===f?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i,clientY:o,screenX:l,screenY:h}),r.dispatchEvent(p),e.next=24,t.Bi9dF(u[c].w);case 24:c++,e.next=15;break;case 27:e.next=39;break;case 29:d=[{e:\"mouseover\",w:30/a},{e:\"mouseenter\",w:15/a},{e:\"mousedown\",w:30/a},{e:\"mouseup\",w:30/a},{e:\"click\",w:50/a},{e:\"mouseout\",w:35/a}],m=0;case 31:if(!(m<d.length)){e.next=39;break}return y=new MouseEvent(d[m].e,{detail:\"mouseover\"===d[m].e?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i+4,clientY:o+4}),r.dispatchEvent(y),e.next=36,t.Bi9dF(d[m].w);case 36:m++,e.next=31;break;case 39:case\"end\":return e.stop()}}),e)}))),function(t){return b.apply(this,arguments)})},{key:\"Jfi2J\",value:function(t){var e;if(!t)return null;var r=null===(e=t.style)||void 0===e?void 0:e.background.trim().match(/(?!^)\".*?\"/g);return r&&0!==r.length?r[0].replaceAll('\"',\"\"):null}},{key:\"BfgoD\",value:function(t){var e;return null==t||null===(e=t.src)||void 0===e?void 0:e.trim()}},{key:\"qd5l\",value:function(t,e){return t[0]=t[0]>=0?t[0]:0,t[1]=t[1]>=0?t[1]:0,t[2]=t[0]+t[2]<=e?t[2]:e-t[0],t[3]=t[1]+t[3]<=e?t[3]:e-t[1],t}},{key:\"yc01\",value:function(t){var e=t.map((function(t){return Math.exp(t)})),r=e.reduce((function(t,e){return t+e}),0);return e.map((function(t){return t/r}))}},{key:\"BgncB\",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.querySelector(e),i=null!==n;return i&&r&&(i=t.Yej5(n)),i}},{key:\"Mh6a\",value:function(t,e){if(t.length!==e.length)throw new Error(\"must have the same length\");return t.reduce((function(t,r,n){return t+r*e[n]}),0)}},{key:\"HdcaL\",value:function(t){return Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e,2)}),0))}},{key:\"shk4\",value:function(e){for(var r=[],n=0;n<e.length;n++){for(var i=new Array(e.length).fill(0),o=0;o<n;o++)i[o]=r[o][n];for(var a=e[n],s=n+1;s<e.length;s++){var u=e[s];i[s]=t.qhi5(a,u)}r.push(Er(i))}return r}},{key:\"qhi5\",value:function(e,r){return t.Mh6a(e,r)/(t.HdcaL(e)*t.HdcaL(r))}},{key:\"ze45D\",value:function(t,e){var r=new Set(Object.keys(t)),n=new Set(Object.keys(e)),i=Er(r).filter((function(t){return n.has(t)})),o=new Set([].concat(Er(r),Er(n)));return i.length/o.size}},{key:\"Yej5\",value:function(t){if(!t)return!1;var e=window.getComputedStyle(t);return!(\"none\"===e.display||\"hidden\"===e.visibility||0===t.offsetWidth&&0===t.offsetHeight||\"fixed\"===e.position&&\"hidden\"===e.visibility||null===t.offsetParent)}},{key:\"Cd86\",value:function(t,e){var r=t.data,n=[],o=0;if(2===e.length)for(var a=0;a<e[0];a++){for(var s=[],u=0;u<e[1];u++)s.push(r[o]),o++;n.push(s)}else if(3===e.length)for(var c=0;c<e[0];c++){for(var f=[],l=0;l<e[1];l++){for(var h=[],p=0;p<e[2];p++)h.push(r[o]),o++;f.push(h)}n.push(f)}else if(4===e.length)for(var d=0;d<e[0];d++){for(var m=[],y=0;y<e[1];y++){for(var v=[],g=0;g<e[2];g++){for(var b=[],w=0;w<e[3];w++)b.push(r[o]),o++;v.push(b)}m.push(v)}n.push(m)}return i.a(n)}},{key:\"Iepc\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Er(e);r&&(n[0]=t[0],n[1]=t[1],n[2]=e[2]-(e[0]-n[0]),n[3]=e[3]-(e[1]-n[1]));var i=Math.max(t[0],n[0]),o=Math.max(t[1],n[1]),a=Math.min(t[2],n[2]),s=Math.min(t[3],n[3]);return Math.max(0,a-i)*Math.max(0,s-o)}},{key:\"FbijJ\",value:function(e,r){return(e[2]-e[0])*(e[3]-e[1])+(r[2]-r[0])*(r[3]-r[1])-t.Iepc(e,r)}},{key:\"tel7v\",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.Iepc(e,r,n)/t.FbijJ(e,r)}},{key:\"ue9h\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return!!((e[0]<=t[0]||n&&e[0]-t[0]<5)&&(e[1]<=t[1]||n&&e[1]-t[1]<5)&&(e[2]>=t[2]||n&&e[2]-t[2]>-5)&&(e[3]>=t[3]||n&&e[3]-t[3]>-5))||!r&&(t[0]<=e[0]||n&&t[0]-e[0]<5)&&(t[1]<=e[1]||n&&t[1]-e[1]<5)&&(t[2]>=e[2]||n&&t[2]-e[2]>-5)&&(t[3]>=e[3]||n&&t[3]-e[3]>-5)}},{key:\"rdfov\",value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];if(e.length>0){e.sort((function(t,e){return e[4]-t[4]}));for(var i=function(){var i=e.shift();n.push(i),e=e.filter((function(e){return!t.ue9h(e,i,!0,r)}))};e.length>0;)i()}return n}},{key:\"_e92_\",value:function(t,e){var r=t[2]<e[0],n=t[0]>e[2],i=t[3]<e[1],o=t[1]>e[3];return!(r||n||i||o)}},{key:\"thebv\",value:function(e,r){for(var n=0;n<r.length;n++)t._e92_(e,r[n])}},{key:\"Ff32H\",value:function(t){if(0===t.length)return-1;var e=Math.max.apply(Math,Er(t));return t.indexOf(e)}},{key:\"Hf0eH\",value:function(t){if(0===t.length)return-1;var e=Math.min.apply(Math,Er(t));return t.indexOf(e)}},{key:\"rc4bt\",value:function(t){return 1/(1+Math.exp(-t))}},{key:\"_d1o\",value:function(t,e,r){for(;\"\".concat(t).length<r;)t=\"\".concat(e).concat(t);return t}},{key:\"Shoa\",value:function(t){for(var e=t.bitmap.width,r=t.bitmap.height,n=0,i=0,o=0;o<r;o++)for(var a=0;a<e;a++){var s=4*(o*e+a);t.bitmap.data[s]<128?n++:i++}return n/(n+i)}},{key:\"Ii11\",value:function(t,e,r){if(t&&0!==t.length){for(var n=t.map((function(t){return[t.x,t.y]})),i=(new o.DBSCAN).run(n,e,r,null),a=0,s=0,u=0,c=0;c<i.length;c++)if(i[c].length>a)s=c,a=i[c].length,u=i[c].reduce((function(t,e){return t+=e.value}),0);else if(i[c].length===a){var f=i[c].reduce((function(t,e){return t+=e.value}),0);f<u&&(s=c,a=i[c].length,u=f)}return i[s]}}},{key:\"vh3fx\",value:(g=Ar(Dr().mark((function t(e,r){var i,o,a,s,u,c,f,l=arguments;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=l.length>2&&void 0!==l[2]?l[2]:\"\",null!==(i=chrome.runtime)&&void 0!==i&&i.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.next=5,e.getBase64Async(n.a.AUTO);case 5:return s=t.sent,u=/[<>:\"\\/\\\\|?*\\x00-\\x1F]/g,a=a.replace(u,\"\").replaceAll(\".\",\"\").replace(/\\s+/g,\"_\"),c=(null===(o=a)||void 0===o?void 0:o.length)>0?\"_solver_raw/\"+a+\"/\"+r:\"_solver_raw/\"+r,f={url:s,filename:c,saveAs:!1,conflictAction:\"uniquify\"},t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"q1j6\",label:f},(function(r){r?t(r):e()}))})));case 11:case\"end\":return t.stop()}}),t)}))),function(t,e){return g.apply(this,arguments)})},{key:\"DgmgF\",value:function(t,e,r,n){var i={x:0,y:0},o=!1;switch(n){case 0:i={x:e-1,y:r-1};for(var a=0;a<r;a++){for(var s=0;s<e;s++)if(!o&&255===t[a*e+s]&&s<i.x&&a<i.y){i.x=s,i.y=a,o=!0;break}if(o)break}break;case 1:i={x:0,y:0};for(var u=e-1;u>=0;u--){for(var c=r-1;c>=0;c--)if(!o&&255===t[c*e+u]&&u>i.x&&c>i.y){i.x=u,i.y=c,o=!0;break}if(o)break}break;case 2:i={x:0,y:0};for(var f=r-1;f>=0;f--){for(var l=e-1;l>=0;l--)if(!o&&255===t[f*e+l]&&l>i.x&&f>i.y){i.x=l,i.y=f,o=!0;break}if(o)break}break;case 3:i={x:e,y:r};for(var h=0;h<e;h++){for(var p=0;p<r;p++)if(!o&&255===t[p*e+h]&&h<i.x&&p<i.y){i.x=h,i.y=p,o=!0;break}if(o)break}}return i}},{key:\"Zg20Z\",value:function(t,e){var r=Array.from({length:e},(function(){return 0})),i=256/e;t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,e){var o=this.getPixelColor(t,e),a=n.a.intToRGBA(o),s=a.r,u=a.g,c=a.b,f=Math.floor((s+u+c)/3/i);r[f]++}));var o=r.reduce((function(t,e){return t+e}),0);return r.map((function(t){return t/o}))}},{key:\"_hhk\",value:function(t,e){var r=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,i){var o=this.getPixelColor(t,i),a=n.a.intToRGBA(o),s=a.r,u=a.g,c=a.b;Math.abs(s-u)<e&&Math.abs(s-c)<e&&Math.abs(u-c)<e&&r++})),r/(t.bitmap.width*t.bitmap.height)}},{key:\"Pdk4P\",value:function(t,e){if(e>t.length)return null;for(var r,n=0,i=0;i<e;i++)n+=t[i];r=n;for(var o=e;o<t.length;o++)n=n+t[o]-t[o-e],r=Math.max(r,n);return r}},{key:\"Hf84H\",value:function(e){var r=t.Zg20Z(e,32),n=r.indexOf(Math.max.apply(Math,Er(r)));if(r[30]+r[31]+r[30]>.93||r[0]+r[1]+r[2]>.93||n>2&&n<30&&r[n]>.93)return 0;if(r[29]+r[30]+r[31]+r[0]+r[1]+r[2]>.93||r[30]+r[31]+r[29]>.9||r[0]+r[1]+r[2]>.9)return 1;var i=t.Pdk4P(r,2),o=t.Pdk4P(r,3);return i>.85||o>.9?2:t._hhk(e,10)>.8?3:99}},{key:\"vcelv\",value:(v=Ar(Dr().mark((function t(e){var r,i,o,a,s,u;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),o=n.a.intToRGBA(i),a=o.r,s=o.g,u=o.b,c=Math.floor((a+s+u)/3);c>80&&c<200&&(r[c]=(r[c]||0)+1)})),Object.entries(r).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(r).reduce((function(t,e){return r[t]>r[e]?t:e})),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var r=this.getPixelColor(t,e),o=n.a.intToRGBA(r),a=o.r,s=o.g,u=o.b,c=Math.floor((a+s+u)/3);Math.abs(i-c)>15&&this.setPixelColor(n.a.rgbaToInt(255,255,255,255),t,e)})),r={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),o=n.a.intToRGBA(i),a=o.r,s=o.g,u=o.b;if(255!==a&&255!==s&&255!==u){var c=a+\"_\"+s+\"_\"+u;r[c]=(r[c]||0)+1}})),Object.entries(r).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(r).reduce((function(t,e){return r[t]>r[e]?t:e})),o=i.split(\"_\"),a=parseInt(o[0]),s=parseInt(o[1]),u=parseInt(o[2]),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var r=this.getPixelColor(t,e),i=n.a.intToRGBA(r),o=i.r,c=i.g,f=i.b;Math.abs(a-o)>40||Math.abs(s-c)>40||Math.abs(u-f)>40||Math.abs(a-o)+Math.abs(s-c)+Math.abs(u-f)>80?this.setPixelColor(n.a.rgbaToInt(255,255,255,255),t,e):this.setPixelColor(n.a.rgbaToInt(0,0,0,255),t,e)})),t.abrupt(\"return\",e);case 17:case\"end\":return t.stop()}}),t)}))),function(t){return v.apply(this,arguments)})},{key:\"PblhR\",value:function(t,e,r){var i=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,o){var a=this.getPixelColor(t,o),s=n.a.intToRGBA(a),u=s.r,c=s.g,f=s.b;Math.abs(u-e[0])<=r&&Math.abs(c-e[1])<=r&&Math.abs(f-e[2])<=r&&i++})),i/(t.bitmap.width*t.bitmap.height)}},{key:\"Fg6gH\",value:function(t,e,r,i,o){for(var a=[{x:e,y:r}],s={x1:e,y1:r,x2:e,y2:r};a.length>0;){var u=a.pop(),c=u.x,f=u.y;if(c>=0&&c<t.bitmap.width&&f>=0&&f<t.bitmap.height){var l=t.getPixelIndex(c,f);if(t.bitmap.data[l]===i){var h=n.a.rgbaToInt(o,o,o,255);t.setPixelColor(h,c,f),c<s.x1&&(s.x1=c),c>s.x2&&(s.x2=c),f<s.y1&&(s.y1=f),f>s.y2&&(s.y2=f),a.push({x:c+1,y:f}),a.push({x:c-1,y:f}),a.push({x:c,y:f+1}),a.push({x:c,y:f-1})}}}return s}},{key:\"Ih91\",value:function(e,r){var n=[];return e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(i,o,a){if(e.bitmap.data[a]===r){var s=t.Fg6gH(e,i,o,r,250);n.push(s)}})),n}},{key:\"Mgk4\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var r=t[0][e],n=1;n<t.length;n++)t[n][e]>r&&(r=t[n][e]);return r}}},{key:\"rgdcr\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var r=t[0][e],n=1;n<t.length;n++)t[n][e]<r&&(r=t[n][e]);return r}}},{key:\"Agh9\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Number.MIN_SAFE_INTEGER,i=-1,o=-1,a=0;a<t.length;a++)if(e<0)for(var s=0;s<t[a].length;s++)a!==s&&t[a][s]>n&&(n=t[a][s],i=a,o=s);else t[a][e]>n&&(null==r||!r.includes(a))&&a!==e&&(n=t[a][e],i=a,o=e);return[i,o,t[i][o]]}},{key:\"ygd0\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Number.MAX_SAFE_INTEGER,i=-1,o=-1,a=0;a<t.length;a++)if(e<0)for(var s=0;s<t[a].length;s++)a!==s&&t[a][s]<n&&(n=t[a][s],i=a,o=s);else t[a][e]<n&&(null==r||!r.includes(a))&&a!==e&&(n=t[a][e],i=a,o=e);return[i,o,t[i][o]]}},{key:\"Gce5\",value:function(t,e,r){return t.filter((function(t,r){return!e.includes(r)})).map((function(t){return t.filter((function(t,e){return!r.includes(e)}))}))}},{key:\"Ri54T\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,r){chrome.runtime.sendMessage({type:\"C1k3\",label:t},(function(t){t?e(t):r()}))}))}},{key:\"sdnj\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,r){chrome.runtime.sendMessage({type:\"R1pcR\",label:t},(function(t){t?e(t):r()}))}))}},{key:\"LcifN\",value:(y=Ar(Dr().mark((function t(e,r){var i,o,a,s,u,c,f,l,h,p,d,m,y,v,g,b,w;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i=e.bitmap.width,o=e.bitmap.height,a=r[0],s=r[1],u=0;u<o;u++)for(c=0;c<i;c++){for(f=[0,0,0],l=0,h=-a;h<=a;h++)for(p=-a;p<=a;p++)m=u+h,(d=c+p)>=0&&d<i&&m>=0&&m<o&&(y=e.getPixelColor(d,m),v=n.a.intToRGBA(y),f[0]+=v.r,f[1]+=v.g,f[2]+=v.b,l++);g=[Math.floor(f[0]/l),Math.floor(f[1]/l),Math.floor(f[2]/l)],b=e.getPixelColor(c,u),w=n.a.intToRGBA(b),Math.abs(w.r-g[0])+Math.abs(w.g-g[1])+Math.abs(w.b-g[2])<s&&e.setPixelColor(n.a.rgbaToInt.apply(n.a,g.concat([w.a])),c,u)}return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e){return y.apply(this,arguments)})},{key:\"Oe76\",value:(m=Ar(Dr().mark((function t(e,r,i){var o,a,s,u,c,f,l,h,p,d,m,y,v,g,b,w,_,x,E,k,D;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(o=e.bitmap,a=o.width,s=o.height,u=Array.from({length:s},(function(t,r){return Array.from({length:a},(function(t,i){return n.a.intToRGBA(e.getPixelColor(i,r))}))})),c=new Array(s),f=0;f<s;f++)for(c[f]=new Array(a),l=0;l<a;l++){for(h=0,p=0,d=0,m=0,y=-r;y<=r;y++)for(v=-r;v<=r;v++)b=f+y,(g=l+v)>=0&&g<a&&b>=0&&b<s&&(w=u[b][g],h+=w.r,p+=w.g,d+=w.b,m++);c[f][l]={r:Math.floor(h/m),g:Math.floor(p/m),b:Math.floor(d/m),a:u[f][l].a}}for(_=0;_<s;_++)for(x=0;x<a;x++)E=u[_][x],k=c[_][x],Math.abs(E.r-k.r)+Math.abs(E.g-k.g)+Math.abs(E.b-k.b)<i&&(D=n.a.rgbaToInt(k.r,k.g,k.b,k.a),e.setPixelColor(D,x,_));return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e,r){return m.apply(this,arguments)})},{key:\"ycma\",value:(d=Ar(Dr().mark((function e(r,n){var i;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt(\"return\",r);case 2:e.t0=Dr().keys(n);case 3:if((e.t1=e.t0()).done){e.next=30;break}if(i=e.t1.value,!n.hasOwnProperty(i)){e.next=28;break}e.t2=i,e.next=\"bw\"===e.t2?9:\"b\"===e.t2?13:\"c\"===e.t2?15:\"g\"===e.t2?17:\"p\"===e.t2?19:\"cbl\"===e.t2||\"ceb\"===e.t2||\"ced\"===e.t2||\"cee\"===e.t2||\"csh\"===e.t2?21:\"dns\"===e.t2?23:27;break;case 9:return e.next=11,t.ubnk(r);case 11:return r=e.sent,e.abrupt(\"break\",28);case 13:return r.blur(n[i]),e.abrupt(\"break\",28);case 15:return r.contrast(n[i]),e.abrupt(\"break\",28);case 17:return n[i]&&r.grayscale(),e.abrupt(\"break\",28);case 19:return r.pixelate(n[i]),e.abrupt(\"break\",28);case 21:return r.convolute([[n[i][0],n[i][1],n[i][2]],[n[i][3],n[i][4],n[i][5]],[n[i][6],n[i][7],n[i][8]]]),e.abrupt(\"break\",28);case 23:return e.next=25,t.Oe76(r,n[i][0],n[i][1]);case 25:return r=e.sent,e.abrupt(\"break\",28);case 27:return e.abrupt(\"break\",28);case 28:e.next=3;break;case 30:return e.abrupt(\"return\",r);case 31:case\"end\":return e.stop()}}),e)}))),function(t,e){return d.apply(this,arguments)})},{key:\"ubnk\",value:(p=Ar(Dr().mark((function t(e){var r,n,i;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=0,n=0,e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e,i){var o=this.bitmap.data[i+0],a=this.bitmap.data[i+1],s=this.bitmap.data[i+2];r+=.299*o+.587*a+.114*s,n++})),i=r/n,e.greyscale().threshold({max:i}),t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t){return p.apply(this,arguments)})},{key:\"He09J\",value:(h=Ar(Dr().mark((function t(e){var r,i,o,s=arguments;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:null,i=null,t.prev=2,\"string\"!=typeof e){t.next=20;break}if(!e.startsWith(\"data:image/\")){t.next=13;break}if(o=e.split(\",\")[1],r&&(i=r[o.subStr(0,256)]),i){t.next=11;break}return t.next=10,n.a.read(a.Buffer.from(o,\"base64\"));case 10:i=t.sent;case 11:t.next=18;break;case 13:if(r&&(i=r[e]),i){t.next=18;break}return t.next=17,n.a.read(e);case 17:i=t.sent;case 18:t.next=21;break;case 20:\"object\"===xr(e)&&(i=e);case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(2);case 26:return t.abrupt(\"return\",i);case 27:case\"end\":return t.stop()}}),t,null,[[2,23]])}))),function(t){return h.apply(this,arguments)})},{key:\"Df72H\",value:function(t,e,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=e.bitmap.data,o=[],a=[],s=[],u=0;u<i.length;u+=4)o.push(i[u]),a.push(i[u+1]),s.push(i[u+2]);var c=o.concat(a,s),f=new Float32Array(c.map((function(t){return t/255})));if(n)for(var l=[.485,.456,.406],h=[.229,.224,.225],p=0;p<f.length;p++)f[p]=(f[p]-l[p%3])/h[p%3];return new t.Tensor(\"float32\",f,r)}},{key:\"Khl9\",value:(l=Ar(Dr().mark((function e(r,i,o){var a,s,u,c;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.He09J(o);case 2:return(a=e.sent).resize(224,224,n.a.RESIZE_BILINEAR),s=t.Df72H(r,a,[1,3,224,224],!0),(u={})[i.inputNames[0]]=s,e.next=9,i.run(u);case 9:return c=e.sent,e.abrupt(\"return\",c[i.outputNames[0]].data);case 11:case\"end\":return e.stop()}}),e)}))),function(t,e,r){return l.apply(this,arguments)})},{key:\"qcbg\",value:(f=Ar(Dr().mark((function e(r,i,o,a,s){var u,c,f,l,h,p,d,m,y=arguments;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=y.length>5&&void 0!==y[5]?y[5]:null,e.next=3,t.He09J(o);case 3:return(c=e.sent).resize(s,s,n.a.RESIZE_BILINEAR),f=t.Df72H(i,c,[1,3,s,s],!0),(l={})[a.inputNames[0]]=f,e.next=10,a.run(l);case 10:if(h=e.sent,p=h[a.outputNames[0]],!u){e.next=21;break}return(l={})[u.inputNames[0]]=p,e.next=17,u.run(l);case 17:m=e.sent,d=m[u.outputNames[0]].data,e.next=22;break;case 21:d=p.data;case 22:return e.abrupt(\"return\",d);case 23:case\"end\":return e.stop()}}),e)}))),function(t,e,r,n,i){return f.apply(this,arguments)})},{key:\"vf8kv\",value:(c=Ar(Dr().mark((function t(e){var r,n,i,o,a;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(r=JSON.parse(JSON.stringify(e))).CSLc9jd,n=new TextEncoder,i=n.encode(r),t.next=6,crypto.subtle.digest(\"SHA-256\",i);case 6:return o=t.sent,a=Array.from(new Uint8Array(o)),t.abrupt(\"return\",a.map((function(t){return t.toString(16).padStart(2,\"0\")})).join(\"\"));case 9:case\"end\":return t.stop()}}),t)}))),function(t){return c.apply(this,arguments)})},{key:\"NdikP\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"av\",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i={};return Er(new Set([].concat(Er(Object.keys(t)),Er(Object.keys(e))))).forEach((function(o){var a=t[o],s=e[o];void 0!==a&&void 0!==s?\"av\"===r?i[o]=(a+s)/2:\"mx\"===r?i[o]=Math.max(a+s):\"mn\"===r?i[o]=Math.min(a+s):\"ad\"===r?i[o]=a+s:\"ft\"===r?i[o]=a:\"lt\"===r?i[o]=s:\"ap\"===r?i[o]=a+n:\"number\"==typeof r&&(i[o]=a*(1-r)+s*r):i[o]=void 0!==a?a:s})),i}},{key:\"Kiai\",value:function(t,e){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length,o=new Array(i>4?i-4:0),a=4;a<i;a++)o[a-4]=arguments[a];var u=o.length>0?\": [\":\"\";if(o.forEach((function(t){u=Array.isArray(t)?u.concat(t.sort().join(\" \")+\", \"):\"object\"===xr(t)&&null!==t?u.concat(JSON.stringify(t)+\", \"):u.concat(t+\", \")})),u=o.length>0?u.slice(0,-2).concat(\"]\"):\"\",t.t0&&t.t0 instanceof s.a){1===r?(t.t0.push(performance.now()),t.t0.size(),n?(-1,t.t0.push(-1)):t.t0.push(performance.now())):0===r?!t.t0.isEmpty()&&(-1===t.t0.pop()?(t.t0.push(-1),t.t0.size()):(performance.now(),t.t0.push(performance.now()),t.t0.size())):-1===r&&!t.t0.isEmpty()&&(t.t0.pop(),t.t0.size(),performance.now(),t.t0.pop())}}},{key:\"Ii24\",value:function(t){for(var e=t.replace(\"data:application/octet-stream;base64,\",\"\"),r=window.atob(e),n=new Uint8Array(r.length),i=0;i<r.length;++i)n[i]=r.charCodeAt(i);return n}},{key:\"Gg95\",value:function(t){var e=new Float32Array(t).buffer,r=_r.deflate(new Uint8Array(e));return btoa(String.fromCharCode.apply(String,Er(r)))}},{key:\"ud01\",value:function(t,e){var r=(t.length-1)*e,n=Math.floor(r),i=Math.ceil(r),o=r-n;return i===n?t[n]:t[n]*(1-o)+t[i]*o}},{key:\"Xe5nX\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1/0,n=0,i=1;i<t.length-e;i++){var o=t[i-1],a=t[i];if(o>1e-8){var s=a/o;s>r&&(r=s,n=i)}}return t[n]}},{key:\"Ch1b\",value:function(t){var e=0;t=t||\"\";for(var r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return e}}],r&&Mr(e.prototype,r),u&&Mr(e,u),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,u,c,f,l,h,p,d,m,y,v,g,b,w,_,x,E,k,D,S,A,M,O,C,F,I,B,T}()},function(t,e,r){\"use strict\";var n=r(25),i=r(19);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function a(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){var n;return n=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||l(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function l(t,e){if(t){if(\"string\"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var p=r(43),d=r(61),m=r.n(d),y=r(0);function v(t){return v=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},v(t)}function g(t,e,r){var n;return n=function(t,e){if(\"object\"!=v(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=v(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==v(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=\"image/jpeg\",w=r(46);function _(t){return _=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_(t)}function x(t,e,r){var n;return n=function(t,e){if(\"object\"!=_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==_(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var E=\"image/png\",k=r(62),D=r.n(k);function S(t){return S=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},S(t)}function A(t,e,r){var n;return n=function(t,e){if(\"object\"!=S(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=S(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==S(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var M=\"image/bmp\",O=\"image/x-ms-bmp\";var C=function(t){return e=D.a.decode(t),Object(y.b)({bitmap:e},0,0,e.width,e.height,(function(t,r,n){var i=this.bitmap.data[n+0],o=this.bitmap.data[n+1],a=this.bitmap.data[n+2],s=this.bitmap.data[n+3];this.bitmap.data[n+0]=s,this.bitmap.data[n+1]=a,this.bitmap.data[n+2]=o,this.bitmap.data[n+3]=e.is_with_alpha?i:255})).bitmap;var e},F=function(t){return D.a.encode(function(t){return Object(y.b)(t,0,0,t.bitmap.width,t.bitmap.height,(function(t,e,r){var n=this.bitmap.data[r+0],i=this.bitmap.data[r+1],o=this.bitmap.data[r+2],a=this.bitmap.data[r+3];this.bitmap.data[r+0]=a,this.bitmap.data[r+1]=o,this.bitmap.data[r+2]=i,this.bitmap.data[r+3]=n})).bitmap}(t)).data},I=r(105),B=r(106);function T(t){return T=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},T(t)}var L=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],P=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18],j=r(107),N=r(108);function R(t){return R=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},R(t)}function z(t){var e=[1,9,3,11,13,5,15,7,4,12,2,10,16,8,14,6];return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,r,n){var i=e[((3&r)<<2)+t%4];this.bitmap.data[n]=Math.min(this.bitmap.data[n]+i,255),this.bitmap.data[n+1]=Math.min(this.bitmap.data[n+1]+i,255),this.bitmap.data[n+2]=Math.min(this.bitmap.data[n+2]+i,255)})),Object(y.a)(t)&&t.call(this,null,this),this}var U=r(109);function G(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t.r[this.bitmap.data[n+0]]++,t.g[this.bitmap.data[n+1]]++,t.b[this.bitmap.data[n+2]]++})),t}var H=function(t,e,r){return 255*(t-e)/(r-e)},Z=function(t){return[t.findIndex((function(t){return t>0})),255-t.slice().reverse().findIndex((function(t){return t>0}))]},q=r(110),W=r(112),Y=r(114);function X(t){return function(t){if(Array.isArray(t))return V(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return V(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var J=[function(){return{blit:function(t,e,r,n,i,o,a,s){if(!(t instanceof this.constructor))return y.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof r)return y.d.call(this,\"x and y must be numbers\",s);if(\"function\"==typeof n)s=n,n=0,i=0,o=t.bitmap.width,a=t.bitmap.height;else{if(T(n)!==T(i)||T(i)!==T(o)||T(o)!==T(a))return y.d.call(this,\"srcx, srcy, srcw, srch must be numbers\",s);n=n||0,i=i||0,o=o||t.bitmap.width,a=a||t.bitmap.height}e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i),o=Math.round(o),a=Math.round(a);var u=this.bitmap.width,c=this.bitmap.height,f=this;return t.scanQuiet(n,i,o,a,(function(t,o,a){var s=e+t-n,l=r+o-i;if(s>=0&&l>=0&&u-s>0&&c-l>0){var h=f.getPixelIndex(s,l),p={r:this.bitmap.data[a],g:this.bitmap.data[a+1],b:this.bitmap.data[a+2],a:this.bitmap.data[a+3]},d={r:f.bitmap.data[h],g:f.bitmap.data[h+1],b:f.bitmap.data[h+2],a:f.bitmap.data[h+3]};f.bitmap.data[h]=(p.a*(p.r-d.r)-d.r+255>>8)+d.r,f.bitmap.data[h+1]=(p.a*(p.g-d.g)-d.g+255>>8)+d.g,f.bitmap.data[h+2]=(p.a*(p.b-d.b)-d.b+255>>8)+d.b,f.bitmap.data[h+3]=this.constructor.limit255(d.a+p.a)}})),Object(y.a)(s)&&s.call(this,null,this),this}}},function(){return{blur:function(t,e){if(\"number\"!=typeof t)return y.d.call(this,\"r must be a number\",e);if(t<1)return y.d.call(this,\"r must be greater than 0\",e);for(var r,n,i,o,a,s,u,c,f,l,h,p,d,m,v=this.bitmap.width-1,g=this.bitmap.height-1,b=t+1,w=L[t],_=P[t],x=[],E=[],k=[],D=[],S=[],A=[],M=2;M-- >0;){for(p=0,d=0,s=0;s<this.bitmap.height;s++){for(r=this.bitmap.data[d]*b,n=this.bitmap.data[d+1]*b,i=this.bitmap.data[d+2]*b,o=this.bitmap.data[d+3]*b,u=1;u<=t;u++)c=d+((u>v?v:u)<<2),r+=this.bitmap.data[c++],n+=this.bitmap.data[c++],i+=this.bitmap.data[c++],o+=this.bitmap.data[c];for(a=0;a<this.bitmap.width;a++)x[p]=r,E[p]=n,k[p]=i,D[p]=o,0===s&&(S[a]=((c=a+b)<v?c:v)<<2,A[a]=(c=a-t)>0?c<<2:0),f=d+S[a],l=d+A[a],r+=this.bitmap.data[f++]-this.bitmap.data[l++],n+=this.bitmap.data[f++]-this.bitmap.data[l++],i+=this.bitmap.data[f++]-this.bitmap.data[l++],o+=this.bitmap.data[f]-this.bitmap.data[l],p++;d+=this.bitmap.width<<2}for(a=0;a<this.bitmap.width;a++){for(r=x[h=a]*b,n=E[h]*b,i=k[h]*b,o=D[h]*b,u=1;u<=t;u++)r+=x[h+=u>g?0:this.bitmap.width],n+=E[h],i+=k[h],o+=D[h];for(p=a<<2,s=0;s<this.bitmap.height;s++)m=o*w>>>_,this.bitmap.data[p+3]=m,m>255&&(this.bitmap.data[p+3]=255),m>0?(m=255/m,this.bitmap.data[p]=(r*w>>>_)*m,this.bitmap.data[p+1]=(n*w>>>_)*m,this.bitmap.data[p+2]=(i*w>>>_)*m):(this.bitmap.data[p+2]=0,this.bitmap.data[p+1]=0,this.bitmap.data[p]=0),0===a&&(S[s]=((c=s+b)<g?c:g)*this.bitmap.width,A[s]=(c=s-t)>0?c*this.bitmap.width:0),f=a+S[s],l=a+A[s],r+=x[f]-x[l],n+=E[f]-E[l],i+=k[f]-k[l],o+=D[f]-D[l],p+=this.bitmap.width<<2}}return Object(y.a)(e)&&e.call(this,null,this),this}}},function(){return{circle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;\"function\"==typeof t&&(e=t,t={});var r=t.radius||(this.bitmap.width>this.bitmap.height?this.bitmap.height:this.bitmap.width)/2,n=\"number\"==typeof t.x?t.x:this.bitmap.width/2,i=\"number\"==typeof t.y?t.y:this.bitmap.height/2;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,o){var a=Math.sqrt(Math.pow(t-n,2)+Math.pow(e-i,2));r-a<=0?this.bitmap.data[o+3]=0:r-a<1&&(this.bitmap.data[o+3]=255*(r-a))})),Object(y.a)(e)&&e.call(this,null,this),this}}},j.a,function(){return{contain:function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",i);\"string\"==typeof r&&(\"function\"==typeof n&&void 0===i&&(i=n),n=r,r=null),\"function\"==typeof r&&(void 0===i&&(i=r),n=null,r=null),\"function\"==typeof n&&void 0===i&&(i=n,n=null);var o=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=r>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return y.d.call(this,\"only use one flag per alignment direction\",i);var s=o>>1,u=a>>1,c=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,f=this.cloneQuiet().scale(c,n);return this.resize(t,e,n),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)})),this.blit(f,(this.bitmap.width-f.bitmap.width)/2*s,(this.bitmap.height-f.bitmap.height)/2*u),Object(y.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",i);r&&\"function\"==typeof r&&void 0===i?(i=r,r=null,n=null):\"function\"==typeof n&&void 0===i&&(i=n,n=null);var o=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=r>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return y.d.call(this,\"only use one flag per alignment direction\",i);var s=o>>1,u=a>>1,c=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(c,n),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*u,t,e),Object(y.a)(i)&&i.call(this,null,this),this}}},N.a,function(){return{displace:function(t,e,r){if(\"object\"!==R(t)||t.constructor!==this.constructor)return y.d.call(this,\"The source must be a Jimp image\",r);if(\"number\"!=typeof e)return y.d.call(this,\"factor must be a number\",r);var n=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,i,o){var a=t.bitmap.data[o]/256*e;a=Math.round(a);var s=this.getPixelIndex(r+a,i);this.bitmap.data[s]=n.bitmap.data[o],this.bitmap.data[s+1]=n.bitmap.data[o+1],this.bitmap.data[s+2]=n.bitmap.data[o+2]})),Object(y.a)(r)&&r.call(this,null,this),this}}},function(){return{dither565:z,dither16:z}},function(){return{fisheye:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{r:2.5},r=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(r=e,e={r:2.5});var n=this.cloneQuiet(),i=n.bitmap,o=i.width,a=i.height;return n.scanQuiet(0,0,o,a,(function(r,i){var s=r/o,u=i/a,c=Math.sqrt(Math.pow(s-.5,2)+Math.pow(u-.5,2)),f=2*Math.pow(c,e.r),l=(s-.5)/c,h=(u-.5)/c,p=Math.round((f*l+.5)*o),d=Math.round((f*h+.5)*a),m=n.getPixelColor(p,d);t.setPixelColor(m,r,i)})),this.setPixelColor(n.getPixelColor(o/2,a/2),o/2,a/2),Object(y.a)(r)&&r.call(this,null,this),this}}},U.a,function(){return{gaussian:function(t,e){if(\"number\"!=typeof t)return y.d.call(this,\"r must be a number\",e);if(t<1)return y.d.call(this,\"r must be greater than 0\",e);for(var r=Math.ceil(2.57*t),n=2*r+1,i=t*t*2,o=i*Math.PI,a=[],s=0;s<n;s++){a[s]=[];for(var u=0;u<n;u++){var c=Math.pow(u-r,2)+Math.pow(s-r,2);a[s][u]=Math.exp(-c/i)/o}}for(var f=0;f<this.bitmap.height;f++)for(var l=0;l<this.bitmap.width;l++)for(var h=0,p=0,d=0,m=0,v=0,g=0;g<n;g++){for(var b=0;b<n;b++){var w=Math.min(this.bitmap.width-1,Math.max(0,b+l-r)),_=Math.min(this.bitmap.height-1,Math.max(0,g+f-r)),x=a[g][b],E=_*this.bitmap.width+w<<2;h+=this.bitmap.data[E]*x,p+=this.bitmap.data[E+1]*x,d+=this.bitmap.data[E+2]*x,m+=this.bitmap.data[E+3]*x,v+=x}var k=f*this.bitmap.width+l<<2;this.bitmap.data[k]=Math.round(h/v),this.bitmap.data[k+1]=Math.round(p/v),this.bitmap.data[k+2]=Math.round(d/v),this.bitmap.data[k+3]=Math.round(m/v)}return Object(y.a)(e)&&e.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=255-this.bitmap.data[r],this.bitmap.data[r+1]=255-this.bitmap.data[r+1],this.bitmap.data[r+2]=255-this.bitmap.data[r+2]})),Object(y.a)(t)&&t.call(this,null,this),this}}},function(){return{mask:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return y.d.call(this,\"The source must be a Jimp image\",n);if(\"number\"!=typeof e||\"number\"!=typeof r)return y.d.call(this,\"x and y must be numbers\",n);e=Math.round(e),r=Math.round(r);var i=this.bitmap.width,o=this.bitmap.height,a=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,s){var u=e+t,c=r+n;if(u>=0&&c>=0&&u<i&&c<o){var f=a.getPixelIndex(u,c),l=this.bitmap.data,h=(l[s+0]+l[s+1]+l[s+2])/3;a.bitmap.data[f+3]*=h/255}})),Object(y.a)(n)&&n.call(this,null,this),this}}},function(){return{normalize:function(t){var e=G.call(this),r={r:Z(e.r),g:Z(e.g),b:Z(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){var i=this.bitmap.data[n+0],o=this.bitmap.data[n+1],a=this.bitmap.data[n+2];this.bitmap.data[n+0]=H(i,r.r[0],r.r[1]),this.bitmap.data[n+1]=H(o,r.g[0],r.g[1]),this.bitmap.data[n+2]=H(a,r.b[0],r.b[1])})),Object(y.a)(t)&&t.call(this,null,this),this}}},q.a,W.a,Y.a,function(){return{scale:function(t,e,r){if(\"number\"!=typeof t)return y.d.call(this,\"f must be a number\",r);if(t<0)return y.d.call(this,\"f must be a positive number\",r);\"function\"==typeof e&&void 0===r&&(r=e,e=null);var n=this.bitmap.width*t,i=this.bitmap.height*t;return this.resize(n,i,e),Object(y.a)(r)&&r.call(this,null,this),this},scaleToFit:function(t,e,r,n){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",n);\"function\"==typeof r&&void 0===n&&(n=r,r=null);var i=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,r),Object(y.a)(n)&&n.call(this,null,this),this}}},function(){return{shadow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(r=e,e={});var n=e,i=n.opacity,o=void 0===i?.7:i,a=n.size,s=void 0===a?1.1:a,u=n.x,c=void 0===u?-25:u,f=n.y,l=void 0===f?25:f,h=n.blur,p=void 0===h?5:h,d=this.clone(),m=this.clone();return m.scan(0,0,m.bitmap.width,m.bitmap.height,(function(e,r,n){m.bitmap.data[n]=0,m.bitmap.data[n+1]=0,m.bitmap.data[n+2]=0,m.bitmap.data[n+3]=m.constructor.limit255(m.bitmap.data[n+3]*o),t.bitmap.data[n]=0,t.bitmap.data[n+1]=0,t.bitmap.data[n+2]=0,t.bitmap.data[n+3]=0})),m.resize(m.bitmap.width*s,m.bitmap.height*s).blur(p),this.composite(m,c,l),this.composite(d,0,0),Object(y.a)(r)&&r.call(this,null,this),this}}},function(){return{threshold:function(t,e){var r=this,n=t.max,i=t.replace,o=void 0===i?255:i,a=t.autoGreyscale,s=void 0===a||a;return\"number\"!=typeof n?y.d.call(this,\"max must be a number\",e):\"number\"!=typeof o?y.d.call(this,\"replace must be a number\",e):\"boolean\"!=typeof s?y.d.call(this,\"autoGreyscale must be a boolean\",e):(n=this.constructor.limit255(n),o=this.constructor.limit255(o),s&&this.greyscale(),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,i){var a=r.bitmap.data[i]<n?r.bitmap.data[i]:o;r.bitmap.data[i]=a,r.bitmap.data[i+1]=a,r.bitmap.data[i+2]=a})),Object(y.a)(e)&&e.call(this,null,this),this)}}}];e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.c,r={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function o(t){Object.entries(t).forEach((function(t){var e=f(t,2),n=e[0],i=e[1];r[n]=u(u({},r[n]),i)}))}return t.types&&(t.types.forEach((function(t){var e=t();Array.isArray(e.mime)?i.a.apply(void 0,a(e.mime)):Object.entries(e.mime).forEach((function(t){return i.a.apply(void 0,a(t))})),delete e.mime,o(e)})),e.decoders=u(u({},e.decoders),r.decoders),e.encoders=u(u({},e.encoders),r.encoders),e.hasAlpha=u(u({},e.hasAlpha),r.hasAlpha)),t.plugins&&t.plugins.forEach((function(t){var e=t(n.d)||{};e.class||e.constants?o(e):o({class:e})})),Object(n.b)(r.class,e),Object(n.a)(r.constants,e),n.c}({types:[function(){return Object(p.mergeDeep)({mime:g({},b,[\"jpeg\",\"jpg\",\"jpe\"]),constants:{MIME_JPEG:b},decoders:g({},b,m.a.decode),encoders:g({},b,(function(t){return m.a.encode(t.bitmap,t._quality).data})),class:{_quality:100,quality:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"n must be a number\",e):t<0||t>100?y.d.call(this,\"n must be a number 0 - 100\",e):(this._quality=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)}}},{mime:x({},E,[\"png\"]),constants:{MIME_PNG:E,PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:x({},E,!0),decoders:x({},E,w.PNG.sync.read),encoders:x({},E,(function(t){var e=new w.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,w.PNG.sync.write(e,{deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:\"number\"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})})),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"l must be a number\",e):t<0||t>9?y.d.call(this,\"l must be a number 0 - 9\",e):(this._deflateLevel=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"s must be a number\",e):t<0||t>3?y.d.call(this,\"s must be a number 0 - 3\",e):(this._deflateStrategy=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"n must be a number\",e):t<-1||t>4?y.d.call(this,\"n must be -1 (auto) or a number 0 - 4\",e):(this._filterType=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"s must be a number\",e):0!==t&&2!==t&&4!==t&&6!==t?y.d.call(this,\"s must be a number 0, 2, 4, 6.\",e):(this._colorType=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)}}},{mime:A({},M,[\"bmp\"]),constants:{MIME_BMP:M,MIME_X_MS_BMP:O},decoders:A(A({},M,C),O,C),encoders:A(A({},M,F),O,F)},Object(I.a)(),Object(B.a)())}],plugins:[function(t){var e=J.map((function(e){var r=e(t)||{};return r.class||r.constants||(r={class:r}),r}));return p.mergeDeep.apply(void 0,X(e))}]})},function(t,e,r){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(r){\"use strict\";var o=Math.cosh||function(t){return Math.abs(t)<1e-9?1-t:.5*(Math.exp(t)+Math.exp(-t))},a=Math.sinh||function(t){return Math.abs(t)<1e-9?t:.5*(Math.exp(t)-Math.exp(-t))},s=function(){throw SyntaxError(\"Invalid Param\")};function u(t,e){var r=Math.abs(t),n=Math.abs(e);return 0===t?Math.log(n):0===e?Math.log(r):r<3e3&&n<3e3?.5*Math.log(t*t+e*e):(t/=2,e/=2,.5*Math.log(t*t+e*e)+Math.LN2)}function c(t,e){if(!(this instanceof c))return new c(t,e);var r=function(t,e){var r={re:0,im:0};if(null==t)r.re=r.im=0;else if(void 0!==e)r.re=t,r.im=e;else switch(i(t)){case\"object\":if(\"im\"in t&&\"re\"in t)r.re=t.re,r.im=t.im;else if(\"abs\"in t&&\"arg\"in t){if(!Number.isFinite(t.abs)&&Number.isFinite(t.arg))return c.INFINITY;r.re=t.abs*Math.cos(t.arg),r.im=t.abs*Math.sin(t.arg)}else if(\"r\"in t&&\"phi\"in t){if(!Number.isFinite(t.r)&&Number.isFinite(t.phi))return c.INFINITY;r.re=t.r*Math.cos(t.phi),r.im=t.r*Math.sin(t.phi)}else 2===t.length?(r.re=t[0],r.im=t[1]):s();break;case\"string\":r.im=r.re=0;var n=t.match(/\\d+\\.?\\d*e[+-]?\\d+|\\d+\\.?\\d*|\\.\\d+|./g),o=1,a=0;null===n&&s();for(var u=0;u<n.length;u++){var f=n[u];\" \"===f||\"\\t\"===f||\"\\n\"===f||(\"+\"===f?o++:\"-\"===f?a++:\"i\"===f||\"I\"===f?(o+a===0&&s(),\" \"===n[u+1]||isNaN(n[u+1])?r.im+=parseFloat((a%2?\"-\":\"\")+\"1\"):(r.im+=parseFloat((a%2?\"-\":\"\")+n[u+1]),u++),o=a=0):((o+a===0||isNaN(f))&&s(),\"i\"===n[u+1]||\"I\"===n[u+1]?(r.im+=parseFloat((a%2?\"-\":\"\")+f),u++):r.re+=parseFloat((a%2?\"-\":\"\")+f),o=a=0))}o+a>0&&s();break;case\"number\":r.im=0,r.re=t;break;default:s()}return isNaN(r.re)||isNaN(r.im),r}(t,e);this.re=r.re,this.im=r.im}c.prototype={re:0,im:0,sign:function(){var t=this.abs();return new c(this.re/t,this.im/t)},add:function(t,e){var r=new c(t,e);return this.isInfinite()&&r.isInfinite()?c.NAN:this.isInfinite()||r.isInfinite()?c.INFINITY:new c(this.re+r.re,this.im+r.im)},sub:function(t,e){var r=new c(t,e);return this.isInfinite()&&r.isInfinite()?c.NAN:this.isInfinite()||r.isInfinite()?c.INFINITY:new c(this.re-r.re,this.im-r.im)},mul:function(t,e){var r=new c(t,e);return this.isInfinite()&&r.isZero()||this.isZero()&&r.isInfinite()?c.NAN:this.isInfinite()||r.isInfinite()?c.INFINITY:0===r.im&&0===this.im?new c(this.re*r.re,0):new c(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(t,e){var r=new c(t,e);if(this.isZero()&&r.isZero()||this.isInfinite()&&r.isInfinite())return c.NAN;if(this.isInfinite()||r.isZero())return c.INFINITY;if(this.isZero()||r.isInfinite())return c.ZERO;t=this.re,e=this.im;var n,i,o=r.re,a=r.im;return 0===a?new c(t/o,e/o):Math.abs(o)<Math.abs(a)?new c((t*(i=o/a)+e)/(n=o*i+a),(e*i-t)/n):new c((t+e*(i=a/o))/(n=a*i+o),(e-t*i)/n)},pow:function(t,e){var r=new c(t,e);if(t=this.re,e=this.im,r.isZero())return c.ONE;if(0===r.im){if(0===e&&t>0)return new c(Math.pow(t,r.re),0);if(0===t)switch((r.re%4+4)%4){case 0:return new c(Math.pow(e,r.re),0);case 1:return new c(0,Math.pow(e,r.re));case 2:return new c(-Math.pow(e,r.re),0);case 3:return new c(0,-Math.pow(e,r.re))}}if(0===t&&0===e&&r.re>0&&r.im>=0)return c.ZERO;var n=Math.atan2(e,t),i=u(t,e);return t=Math.exp(r.re*i-r.im*n),e=r.im*i+r.re*n,new c(t*Math.cos(e),t*Math.sin(e))},sqrt:function(){var t,e,r=this.re,n=this.im,i=this.abs();if(r>=0){if(0===n)return new c(Math.sqrt(r),0);t=.5*Math.sqrt(2*(i+r))}else t=Math.abs(n)/Math.sqrt(2*(i-r));return e=r<=0?.5*Math.sqrt(2*(i-r)):Math.abs(n)/Math.sqrt(2*(i+r)),new c(t,n<0?-e:e)},exp:function(){var t=Math.exp(this.re);return this.im,new c(t*Math.cos(this.im),t*Math.sin(this.im))},expm1:function(){var t=this.re,e=this.im;return new c(Math.expm1(t)*Math.cos(e)+function(t){var e=Math.PI/4;if(-e>t||t>e)return Math.cos(t)-1;var r=t*t;return r*(r*(r*(r*(r*(r*(r*(r/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5)}(e),Math.exp(t)*Math.sin(e))},log:function(){var t=this.re,e=this.im;return new c(u(t,e),Math.atan2(e,t))},abs:function(){return t=this.re,e=this.im,r=Math.abs(t),n=Math.abs(e),r<3e3&&n<3e3?Math.sqrt(r*r+n*n):(r<n?(r=n,n=t/e):n=e/t,r*Math.sqrt(1+n*n));var t,e,r,n},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var t=this.re,e=this.im;return new c(Math.sin(t)*o(e),Math.cos(t)*a(e))},cos:function(){var t=this.re,e=this.im;return new c(Math.cos(t)*o(e),-Math.sin(t)*a(e))},tan:function(){var t=2*this.re,e=2*this.im,r=Math.cos(t)+o(e);return new c(Math.sin(t)/r,a(e)/r)},cot:function(){var t=2*this.re,e=2*this.im,r=Math.cos(t)-o(e);return new c(-Math.sin(t)/r,a(e)/r)},sec:function(){var t=this.re,e=this.im,r=.5*o(2*e)+.5*Math.cos(2*t);return new c(Math.cos(t)*o(e)/r,Math.sin(t)*a(e)/r)},csc:function(){var t=this.re,e=this.im,r=.5*o(2*e)-.5*Math.cos(2*t);return new c(Math.sin(t)*o(e)/r,-Math.cos(t)*a(e)/r)},asin:function(){var t=this.re,e=this.im,r=new c(e*e-t*t+1,-2*t*e).sqrt(),n=new c(r.re-e,r.im+t).log();return new c(n.im,-n.re)},acos:function(){var t=this.re,e=this.im,r=new c(e*e-t*t+1,-2*t*e).sqrt(),n=new c(r.re-e,r.im+t).log();return new c(Math.PI/2-n.im,n.re)},atan:function(){var t=this.re,e=this.im;if(0===t){if(1===e)return new c(0,1/0);if(-1===e)return new c(0,-1/0)}var r=t*t+(1-e)*(1-e),n=new c((1-e*e-t*t)/r,-2*t/r).log();return new c(-.5*n.im,.5*n.re)},acot:function(){var t=this.re,e=this.im;if(0===e)return new c(Math.atan2(1,t),0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).atan():new c(0!==t?t/0:0,0!==e?-e/0:0).atan()},asec:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new c(0,1/0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).acos():new c(0!==t?t/0:0,0!==e?-e/0:0).acos()},acsc:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new c(Math.PI/2,1/0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).asin():new c(0!==t?t/0:0,0!==e?-e/0:0).asin()},sinh:function(){var t=this.re,e=this.im;return new c(a(t)*Math.cos(e),o(t)*Math.sin(e))},cosh:function(){var t=this.re,e=this.im;return new c(o(t)*Math.cos(e),a(t)*Math.sin(e))},tanh:function(){var t=2*this.re,e=2*this.im,r=o(t)+Math.cos(e);return new c(a(t)/r,Math.sin(e)/r)},coth:function(){var t=2*this.re,e=2*this.im,r=o(t)-Math.cos(e);return new c(a(t)/r,-Math.sin(e)/r)},csch:function(){var t=this.re,e=this.im,r=Math.cos(2*e)-o(2*t);return new c(-2*a(t)*Math.cos(e)/r,2*o(t)*Math.sin(e)/r)},sech:function(){var t=this.re,e=this.im,r=Math.cos(2*e)+o(2*t);return new c(2*o(t)*Math.cos(e)/r,-2*a(t)*Math.sin(e)/r)},asinh:function(){var t=this.im;this.im=-this.re,this.re=t;var e=this.asin();return this.re=-this.im,this.im=t,t=e.re,e.re=-e.im,e.im=t,e},acosh:function(){var t=this.acos();if(t.im<=0){var e=t.re;t.re=-t.im,t.im=e}else{e=t.im;t.im=-t.re,t.re=e}return t},atanh:function(){var t=this.re,e=this.im,r=t>1&&0===e,n=1-t,i=1+t,o=n*n+e*e,a=0!==o?new c((i*n-e*e)/o,(e*n+i*e)/o):new c(-1!==t?t/0:0,0!==e?e/0:0),s=a.re;return a.re=u(a.re,a.im)/2,a.im=Math.atan2(a.im,s)/2,r&&(a.im=-a.im),a},acoth:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new c(0,Math.PI/2);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).atanh():new c(0!==t?t/0:0,0!==e?-e/0:0).atanh()},acsch:function(){var t=this.re,e=this.im;if(0===e)return new c(0!==t?Math.log(t+Math.sqrt(t*t+1)):1/0,0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).asinh():new c(0!==t?t/0:0,0!==e?-e/0:0).asinh()},asech:function(){var t=this.re,e=this.im;if(this.isZero())return c.INFINITY;var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).acosh():new c(0!==t?t/0:0,0!==e?-e/0:0).acosh()},inverse:function(){if(this.isZero())return c.INFINITY;if(this.isInfinite())return c.ZERO;var t=this.re,e=this.im,r=t*t+e*e;return new c(t/r,-e/r)},conjugate:function(){return new c(this.re,-this.im)},neg:function(){return new c(-this.re,-this.im)},ceil:function(t){return t=Math.pow(10,t||0),new c(Math.ceil(this.re*t)/t,Math.ceil(this.im*t)/t)},floor:function(t){return t=Math.pow(10,t||0),new c(Math.floor(this.re*t)/t,Math.floor(this.im*t)/t)},round:function(t){return t=Math.pow(10,t||0),new c(Math.round(this.re*t)/t,Math.round(this.im*t)/t)},equals:function(t,e){var r=new c(t,e);return Math.abs(r.re-this.re)<=c.EPSILON&&Math.abs(r.im-this.im)<=c.EPSILON},clone:function(){return new c(this.re,this.im)},toString:function(){var t=this.re,e=this.im,r=\"\";return this.isNaN()?\"NaN\":this.isInfinite()?\"Infinity\":(Math.abs(t)<c.EPSILON&&(t=0),Math.abs(e)<c.EPSILON&&(e=0),0===e?r+t:(0!==t?(r+=t,r+=\" \",e<0?(e=-e,r+=\"-\"):r+=\"+\",r+=\" \"):e<0&&(e=-e,r+=\"-\"),1!==e&&(r+=e),r+\"i\"))},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isNaN(this.re)||isNaN(this.im)})),isZero:function(){return 0===this.im&&0===this.re},isFinite:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isFinite(this.re)&&isFinite(this.im)})),isInfinite:function(){return!(this.isNaN()||this.isFinite())}},c.ZERO=new c(0,0),c.ONE=new c(1,0),c.I=new c(0,1),c.PI=new c(Math.PI,0),c.E=new c(Math.E,0),c.INFINITY=new c(1/0,1/0),c.NAN=new c(NaN,NaN),c.EPSILON=1e-15,void 0===(n=function(){return c}.apply(e,[]))||(t.exports=n)}()},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];\".\"===i?t.splice(n,1):\"..\"===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift(\"..\");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e=\"\",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if(\"string\"!=typeof a)throw new TypeError(\"Arguments to path.resolve must be strings\");a&&(e=a+\"/\"+e,i=\"/\"===a.charAt(0))}return(i?\"/\":\"\")+(e=r(n(e.split(\"/\"),(function(t){return!!t})),!i).join(\"/\"))||\".\"},e.normalize=function(t){var o=e.isAbsolute(t),a=\"/\"===i(t,-1);return(t=r(n(t.split(\"/\"),(function(t){return!!t})),!o).join(\"/\"))||o||(t=\".\"),t&&a&&(t+=\"/\"),(o?\"/\":\"\")+t},e.isAbsolute=function(t){return\"/\"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"Arguments to path.join must be strings\");return t})).join(\"/\"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&\"\"===t[e];e++);for(var r=t.length-1;r>=0&&\"\"===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split(\"/\")),o=n(r.split(\"/\")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push(\"..\");return(c=c.concat(o.slice(s))).join(\"/\")},e.sep=\"/\",e.delimiter=\":\",e.dirname=function(t){if(\"string\"!=typeof t&&(t+=\"\"),0===t.length)return\".\";for(var e=t.charCodeAt(0),r=47===e,n=-1,i=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?\"/\":\".\":r&&1===n?\"/\":t.slice(0,n)},e.basename=function(t,e){var r=function(t){\"string\"!=typeof t&&(t+=\"\");var e,r=0,n=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?\"\":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){\"string\"!=typeof t&&(t+=\"\");for(var e=-1,r=0,n=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){r=a+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===r+1?\"\":t.slice(e,n)};var i=\"b\"===\"ab\".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(7))},function(t,e){var r,n,i=t.exports={};function o(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r=\"function\"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n=\"function\"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,c=[],f=!1,l=-1;function h(){f&&u&&(f=!1,u.length?c=u.concat(c):l=-1,c.length&&p())}function p(){if(!f){var t=s(h);f=!0;for(var e=c.length;e;){for(u=c,c=[];++l<e;)u&&u[l].run();l=-1,e=c.length}u=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new d(t,e)),1!==c.length||f||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title=\"browser\",i.browser=!0,i.env={},i.argv=[],i.version=\"\",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error(\"process.binding is not supported\")},i.cwd=function(){return\"/\"},i.chdir=function(t){throw new Error(\"process.chdir is not supported\")},i.umask=function(){return 0}},function(t,e){function r(){return t.exports=r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,r.apply(this,arguments)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new Error(\"define cannot be used indirect\")}},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(t){\"object\"===(\"undefined\"==typeof window?\"undefined\":r(window))&&(n=window)}t.exports=n},function(t,e){},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}!function(r){\"use strict\";var i={s:1,n:0,d:1};function o(t,e){if(isNaN(t=parseInt(t,10)))throw h();return t*e}function a(t,e){if(0===e)throw l();var r=Object.create(f.prototype);r.s=t<0?-1:1;var n=c(t=t<0?-t:t,e);return r.n=t/n,r.d=e/n,r}function s(t){for(var e={},r=t,n=2,i=4;i<=r;){for(;r%n==0;)r/=n,e[n]=(e[n]||0)+1;i+=1+2*n++}return r!==t?r>1&&(e[r]=(e[r]||0)+1):e[t]=(e[t]||0)+1,e}var u=function(t,e){var r,a=0,s=1,u=1,c=0,f=0,d=0,m=1,y=1,v=0,g=1,b=1,w=1,_=1e7;if(null==t);else if(void 0!==e){if(u=(a=t)*(s=e),a%1!=0||s%1!=0)throw p()}else switch(n(t)){case\"object\":if(\"d\"in t&&\"n\"in t)a=t.n,s=t.d,\"s\"in t&&(a*=t.s);else{if(!(0 in t))throw h();a=t[0],1 in t&&(s=t[1])}u=a*s;break;case\"number\":if(t<0&&(u=t,t=-t),t%1==0)a=t;else if(t>0){for(t>=1&&(t/=y=Math.pow(10,Math.floor(1+Math.log(t)/Math.LN10)));g<=_&&w<=_;){if(t===(r=(v+b)/(g+w))){g+w<=_?(a=v+b,s=g+w):w>g?(a=b,s=w):(a=v,s=g);break}t>r?(v+=b,g+=w):(b+=v,w+=g),g>_?(a=b,s=w):(a=v,s=g)}a*=y}else(isNaN(t)||isNaN(e))&&(s=a=NaN);break;case\"string\":if(null===(g=t.match(/\\d+|./g)))throw h();if(\"-\"===g[v]?(u=-1,v++):\"+\"===g[v]&&v++,g.length===v+1?f=o(g[v++],u):\".\"===g[v+1]||\".\"===g[v]?(\".\"!==g[v]&&(c=o(g[v++],u)),(++v+1===g.length||\"(\"===g[v+1]&&\")\"===g[v+3]||\"'\"===g[v+1]&&\"'\"===g[v+3])&&(f=o(g[v],u),m=Math.pow(10,g[v].length),v++),(\"(\"===g[v]&&\")\"===g[v+2]||\"'\"===g[v]&&\"'\"===g[v+2])&&(d=o(g[v+1],u),y=Math.pow(10,g[v+1].length)-1,v+=3)):\"/\"===g[v+1]||\":\"===g[v+1]?(f=o(g[v],u),m=o(g[v+2],1),v+=3):\"/\"===g[v+3]&&\" \"===g[v+1]&&(c=o(g[v],u),f=o(g[v+2],u),m=o(g[v+4],1),v+=5),g.length<=v){u=a=d+(s=m*y)*c+y*f;break}default:throw h()}if(0===s)throw l();i.s=u<0?-1:1,i.n=Math.abs(a),i.d=Math.abs(s)};function c(t,e){if(!t)return e;if(!e)return t;for(;;){if(!(t%=e))return e;if(!(e%=t))return t}}function f(t,e){if(u(t,e),!(this instanceof f))return a(i.s*i.n,i.d);t=c(i.d,i.n),this.s=i.s,this.n=i.n/t,this.d=i.d/t}var l=function(){return new Error(\"Division by Zero\")},h=function(){return new Error(\"Invalid argument\")},p=function(){return new Error(\"Parameters must be integer\")};f.prototype={s:1,n:0,d:1,abs:function(){return a(this.n,this.d)},neg:function(){return a(-this.s*this.n,this.d)},add:function(t,e){return u(t,e),a(this.s*this.n*i.d+i.s*this.d*i.n,this.d*i.d)},sub:function(t,e){return u(t,e),a(this.s*this.n*i.d-i.s*this.d*i.n,this.d*i.d)},mul:function(t,e){return u(t,e),a(this.s*i.s*this.n*i.n,this.d*i.d)},div:function(t,e){return u(t,e),a(this.s*i.s*this.n*i.d,this.d*i.n)},clone:function(){return a(this.s*this.n,this.d)},mod:function(t,e){if(isNaN(this.n)||isNaN(this.d))return new f(NaN);if(void 0===t)return a(this.s*this.n%this.d,1);if(u(t,e),0===i.n&&0===this.d)throw l();return a(this.s*(i.d*this.n)%(i.n*this.d),i.d*this.d)},gcd:function(t,e){return u(t,e),a(c(i.n,this.n)*c(i.d,this.d),i.d*this.d)},lcm:function(t,e){return u(t,e),0===i.n&&0===this.n?a(0,1):a(i.n*this.n,c(i.n,this.n)*c(i.d,this.d))},ceil:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new f(NaN):a(Math.ceil(t*this.s*this.n/this.d),t)},floor:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new f(NaN):a(Math.floor(t*this.s*this.n/this.d),t)},round:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new f(NaN):a(Math.round(t*this.s*this.n/this.d),t)},inverse:function(){return a(this.s*this.d,this.n)},pow:function(t,e){if(u(t,e),1===i.d)return i.s<0?a(Math.pow(this.s*this.d,i.n),Math.pow(this.n,i.n)):a(Math.pow(this.s*this.n,i.n),Math.pow(this.d,i.n));if(this.s<0)return null;var r=s(this.n),n=s(this.d),o=1,c=1;for(var f in r)if(\"1\"!==f){if(\"0\"===f){o=0;break}if(r[f]*=i.n,r[f]%i.d!=0)return null;r[f]/=i.d,o*=Math.pow(f,r[f])}for(var f in n)if(\"1\"!==f){if(n[f]*=i.n,n[f]%i.d!=0)return null;n[f]/=i.d,c*=Math.pow(f,n[f])}return i.s<0?a(c,o):a(o,c)},equals:function(t,e){return u(t,e),this.s*this.n*i.d==i.s*i.n*this.d},compare:function(t,e){u(t,e);var r=this.s*this.n*i.d-i.s*i.n*this.d;return(0<r)-(r<0)},simplify:function(t){if(isNaN(this.n)||isNaN(this.d))return this;t=t||.001;for(var e=this.abs(),r=e.toContinued(),n=1;n<r.length;n++){for(var i=a(r[n-1],1),o=n-2;o>=0;o--)i=i.inverse().add(r[o]);if(Math.abs(i.sub(e).valueOf())<t)return i.mul(this.s)}return this},divisible:function(t,e){return u(t,e),!(!(i.n*this.d)||this.n*i.d%(i.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(t){var e,r=\"\",n=this.n,i=this.d;return this.s<0&&(r+=\"-\"),1===i?r+=n:(t&&(e=Math.floor(n/i))>0&&(r+=e,r+=\" \",n%=i),r+=n,r+=\"/\",r+=i),r},toLatex:function(t){var e,r=\"\",n=this.n,i=this.d;return this.s<0&&(r+=\"-\"),1===i?r+=n:(t&&(e=Math.floor(n/i))>0&&(r+=e,n%=i),r+=\"\\\\frac{\",r+=n,r+=\"}{\",r+=i,r+=\"}\"),r},toContinued:function(){var t,e=this.n,r=this.d,n=[];if(isNaN(e)||isNaN(r))return n;do{n.push(Math.floor(e/r)),t=e%r,e=r,r=t}while(1!==e);return n},toString:function(t){var e=this.n,r=this.d;if(isNaN(e)||isNaN(r))return\"NaN\";t=t||15;var n=function(t,e){for(;e%2==0;e/=2);for(;e%5==0;e/=5);if(1===e)return 0;for(var r=10%e,n=1;1!==r;n++)if(r=10*r%e,n>2e3)return 0;return n}(0,r),i=function(t,e,r){for(var n=1,i=function(t,e,r){for(var n=1;e>0;t=t*t%r,e>>=1)1&e&&(n=n*t%r);return n}(10,r,e),o=0;o<300;o++){if(n===i)return o;n=10*n%e,i=10*i%e}return 0}(0,r,n),o=this.s<0?\"-\":\"\";if(o+=e/r|0,e%=r,(e*=10)&&(o+=\".\"),n){for(var a=i;a--;)o+=e/r|0,e%=r,e*=10;o+=\"(\";for(a=n;a--;)o+=e/r|0,e%=r,e*=10;o+=\")\"}else for(a=t;e&&a--;)o+=e/r|0,e%=r,e*=10;return o}},\"object\"===n(e)?(Object.defineProperty(f,\"__esModule\",{value:!0}),f.default=f,f.Fraction=f,t.exports=f):r.Fraction=f}(this)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,\"loaded\",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,\"id\",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},o=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(\" \")}r=1;for(var n=arguments,i=n.length,a=String(t).replace(o,(function(t){if(\"%%\"===t)return\"%\";if(r>=i)return t;switch(t){case\"%s\":return String(n[r++]);case\"%d\":return Number(n[r++]);case\"%j\":try{return JSON.stringify(n[r++])}catch(t){return\"[Circular]\"}default:return t}})),s=n[r];r<i;s=n[++r])y(s)||!_(s)?a+=\" \"+s:a+=\" \"+u(s);return a},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation&&console.trace(n),i=!0}return r.apply(this,arguments)}};var a,s={};function u(t,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,t,n.depth)}function c(t,e){var r=u.styles[e];return r?\"\u001b[\"+u.colors[r][0]+\"m\"+t+\"\u001b[\"+u.colors[r][1]+\"m\":t}function f(t,e){return t}function l(t,r,n){if(t.customInspect&&r&&k(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return g(i)||(i=l(t,i,n)),i}var o=function(t,e){if(b(e))return t.stylize(\"undefined\",\"undefined\");if(g(e)){var r=\"'\"+JSON.stringify(e).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return t.stylize(r,\"string\")}if(v(e))return t.stylize(\"\"+e,\"number\");if(m(e))return t.stylize(\"\"+e,\"boolean\");if(y(e))return t.stylize(\"null\",\"null\")}(t,r);if(o)return o;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf(\"message\")>=0||a.indexOf(\"description\")>=0))return h(r);if(0===a.length){if(k(r)){var u=r.name?\": \"+r.name:\"\";return t.stylize(\"[Function\"+u+\"]\",\"special\")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),\"regexp\");if(x(r))return t.stylize(Date.prototype.toString.call(r),\"date\");if(E(r))return h(r)}var c,f=\"\",_=!1,D=[\"{\",\"}\"];(d(r)&&(_=!0,D=[\"[\",\"]\"]),k(r))&&(f=\" [Function\"+(r.name?\": \"+r.name:\"\")+\"]\");return w(r)&&(f=\" \"+RegExp.prototype.toString.call(r)),x(r)&&(f=\" \"+Date.prototype.toUTCString.call(r)),E(r)&&(f=\" \"+h(r)),0!==a.length||_&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),\"regexp\"):t.stylize(\"[Object]\",\"special\"):(t.seen.push(r),c=_?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a<s;++a)M(e,String(a))?o.push(p(t,e,r,n,String(a),!0)):o.push(\"\");return i.forEach((function(i){i.match(/^\\d+$/)||o.push(p(t,e,r,n,i,!0))})),o}(t,r,n,s,a):a.map((function(e){return p(t,r,n,s,e,_)})),t.seen.pop(),function(t,e,r){var n=t.reduce((function(t,e){return e.indexOf(\"\\n\")>=0&&0,t+e.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1}),0);if(n>60)return r[0]+(\"\"===e?\"\":e+\"\\n \")+\" \"+t.join(\",\\n  \")+\" \"+r[1];return r[0]+e+\" \"+t.join(\", \")+\" \"+r[1]}(c,f,D)):D[0]+f+D[1]}function h(t){return\"[\"+Error.prototype.toString.call(t)+\"]\"}function p(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize(\"[Getter/Setter]\",\"special\"):t.stylize(\"[Getter]\",\"special\"):u.set&&(s=t.stylize(\"[Setter]\",\"special\")),M(n,i)||(a=\"[\"+i+\"]\"),s||(t.seen.indexOf(u.value)<0?(s=y(r)?l(t,u.value,null):l(t,u.value,r-1)).indexOf(\"\\n\")>-1&&(s=o?s.split(\"\\n\").map((function(t){return\"  \"+t})).join(\"\\n\").substr(2):\"\\n\"+s.split(\"\\n\").map((function(t){return\"   \"+t})).join(\"\\n\")):s=t.stylize(\"[Circular]\",\"special\")),b(a)){if(o&&i.match(/^\\d+$/))return s;(a=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,\"name\")):(a=a.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),a=t.stylize(a,\"string\"))}return a+\": \"+s}function d(t){return Array.isArray(t)}function m(t){return\"boolean\"==typeof t}function y(t){return null===t}function v(t){return\"number\"==typeof t}function g(t){return\"string\"==typeof t}function b(t){return void 0===t}function w(t){return _(t)&&\"[object RegExp]\"===D(t)}function _(t){return\"object\"===n(t)&&null!==t}function x(t){return _(t)&&\"[object Date]\"===D(t)}function E(t){return _(t)&&(\"[object Error]\"===D(t)||t instanceof Error)}function k(t){return\"function\"==typeof t}function D(t){return Object.prototype.toString.call(t)}function S(t){return t<10?\"0\"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(b(a)&&(a=t.env.NODE_DEBUG||\"\"),r=r.toUpperCase(),!s[r])if(new RegExp(\"\\\\b\"+r+\"\\\\b\",\"i\").test(a)){t.pid;s[r]=function(){e.format.apply(e,arguments)}}else s[r]=function(){};return s[r]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},e.isArray=d,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=g,e.isSymbol=function(t){return\"symbol\"===n(t)},e.isUndefined=b,e.isRegExp=w,e.isObject=_,e.isDate=x,e.isError=E,e.isFunction=k,e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===n(t)||void 0===t},e.isBuffer=r(144);var A=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function M(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;t=new Date,r=[S(t.getHours()),S(t.getMinutes()),S(t.getSeconds())].join(\":\"),[t.getDate(),A[t.getMonth()],r].join(\" \"),e.format.apply(e,arguments)},e.inherits=r(145),e._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var O=\"undefined\"!=typeof Symbol?Symbol(\"util.promisify.custom\"):void 0;function C(t,e){if(!t){var r=new Error(\"Promise was rejected with a falsy value\");r.reason=t,t=r}return e(t)}e.promisify=function(t){if(\"function\"!=typeof t)throw new TypeError('The \"original\" argument must be of type Function');if(O&&t[O]){var e;if(\"function\"!=typeof(e=t[O]))throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');return Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),O&&Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=O,e.callbackify=function(e){if(\"function\"!=typeof e)throw new TypeError('The \"original\" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if(\"function\"!=typeof i)throw new TypeError(\"The last argument must be of type Function\");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,r).then((function(e){t.nextTick(a,null,e)}),(function(e){t.nextTick(C,e,a)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,i(e)),r}}).call(this,r(7))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(\"object\"!==n(r))throw new TypeError(r+\"must be non-object\");for(var i in r)o(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var a={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},s={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,a)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,r){var n,i,o;function a(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}o=function(){\"use strict\";function t(){return!0}function e(){return!1}function r(){}var n=\"Argument is not a typed-function.\",i=function i(){function o(t){return\"object\"===u(t)&&null!==t&&t.constructor===Object}var s,c,f=[{name:\"number\",test:function(t){return\"number\"==typeof t}},{name:\"string\",test:function(t){return\"string\"==typeof t}},{name:\"boolean\",test:function(t){return\"boolean\"==typeof t}},{name:\"Function\",test:function(t){return\"function\"==typeof t}},{name:\"Array\",test:Array.isArray},{name:\"Date\",test:function(t){return t instanceof Date}},{name:\"RegExp\",test:function(t){return t instanceof RegExp}},{name:\"Object\",test:o},{name:\"null\",test:function(t){return null===t}},{name:\"undefined\",test:function(t){return void 0===t}}],l={name:\"any\",test:t,isAny:!0},h=0,p={createCount:0};function d(t){var e=s.get(t);if(e)return e;var r,n,i='Unknown type \"'+t+'\"',o=t.toLowerCase(),u=a(c);try{for(u.s();!(n=u.n()).done;)if((r=n.value).toLowerCase()===o){i+='. Did you mean \"'+r+'\" ?';break}}catch(t){u.e(t)}finally{u.f()}throw new TypeError(i)}function m(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"any\",r=e?d(e).index:c.length,n=[],i=0;i<t.length;++i){if(!t[i]||\"string\"!=typeof t[i].name||\"function\"!=typeof t[i].test)throw new TypeError(\"Object with properties {name: string, test: function} expected\");var o=t[i].name;if(s.has(o))throw new TypeError('Duplicate type name \"'+o+'\"');n.push(o),s.set(o,{name:o,test:t[i].test,isAny:t[i].isAny,index:r+i,conversionsTo:[]})}var a=c.slice(r);c=c.slice(0,r).concat(n).concat(a);for(var u=r+n.length;u<c.length;++u)s.get(c[u]).index=u}function y(){s=new Map,c=[],h=0,m([l],!1)}function v(t){var e=c.filter((function(e){var r=s.get(e);return!r.isAny&&r.test(t)}));return e.length?e:[\"any\"]}function g(t){return t&&\"function\"==typeof t&&\"_typedFunctionData\"in t}function b(t,e,r){if(!g(t))throw new TypeError(n);var i=r&&r.exact,o=k(Array.isArray(e)?e.join(\",\"):e),s=w(o);if(!i||s in t.signatures){var u=t._typedFunctionData.signatureMap.get(s);if(u)return u}var c,f,l,h=o.length;if(i)for(f in c=[],t.signatures)c.push(t._typedFunctionData.signatureMap.get(f));else c=t._typedFunctionData.signatures;for(var p=0;p<h;++p){var d,m=o[p],y=[],v=void 0,b=a(c);try{var _=function(){var t=M((v=d.value).params,p);if(!t||m.restParam&&!t.restParam)return 0;if(!t.hasAny){var e=E(t);if(m.types.some((function(t){return!e.has(t.name)})))return 0}y.push(v)};for(b.s();!(d=b.n()).done;)_()}catch(t){b.e(t)}finally{b.f()}if(0===(c=y).length)break}var x,D=a(c);try{for(D.s();!(x=D.n()).done;)if((l=x.value).params.length<=h)return l}catch(t){D.e(t)}finally{D.f()}throw new TypeError(\"Signature not found (signature: \"+(t.name||\"unnamed\")+\"(\"+w(o,\", \")+\"))\")}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\",\";return t.map((function(t){return t.name})).join(e)}function _(t){var e=0===t.indexOf(\"...\"),r=(e?t.length>3?t.slice(3):\"any\":t).split(\"|\").map((function(t){return d(t.trim())})),n=!1,i=e?\"...\":\"\";return{types:r.map((function(t){return n=t.isAny||n,i+=t.name+\"|\",{name:t.name,typeIndex:t.index,test:t.test,isAny:t.isAny,conversion:null,conversionIndex:-1}})),name:i.slice(0,-1),hasAny:n,hasConversion:!1,restParam:e}}function x(t){var e=function(t){if(0===t.length)return[];var e=t.map(d);t.length>1&&e.sort((function(t,e){return t.index-e.index}));var r=e[0].conversionsTo;if(1===t.length)return r;r=r.concat([]);for(var n=new Set(t),i=1;i<e.length;++i){var o,s=void 0,u=a(e[i].conversionsTo);try{for(u.s();!(o=u.n()).done;)s=o.value,n.has(s.from)||(r.push(s),n.add(s.from))}catch(t){u.e(t)}finally{u.f()}}return r}(t.types.map((function(t){return t.name}))),r=t.hasAny,n=t.name,i=e.map((function(t){var e=d(t.from);return r=e.isAny||r,n+=\"|\"+t.from,{name:t.from,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:t,conversionIndex:t.index}}));return{types:t.types.concat(i),name:n,hasAny:r,hasConversion:i.length>0,restParam:t.restParam}}function E(t){return t.typeSet||(t.typeSet=new Set,t.types.forEach((function(e){return t.typeSet.add(e.name)}))),t.typeSet}function k(t){var e=[];if(\"string\"!=typeof t)throw new TypeError(\"Signatures must be strings\");var r=t.trim();if(\"\"===r)return e;for(var n=r.split(\",\"),i=0;i<n.length;++i){var o=_(n[i].trim());if(o.restParam&&i!==n.length-1)throw new SyntaxError('Unexpected rest parameter \"'+n[i]+'\": only allowed for the last parameter');if(0===o.types.length)return null;e.push(o)}return e}function D(t){var e=q(t);return!!e&&e.restParam}function S(e){if(e&&0!==e.types.length){if(1===e.types.length)return d(e.types[0].name).test;if(2===e.types.length){var r=d(e.types[0].name).test,n=d(e.types[1].name).test;return function(t){return r(t)||n(t)}}var i=e.types.map((function(t){return d(t.name).test}));return function(t){for(var e=0;e<i.length;e++)if(i[e](t))return!0;return!1}}return t}function A(t){var e,r,n;if(D(t)){var i=(e=Z(t).map(S)).length,o=S(q(t));return function(t){for(var r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return function(t){for(var e=i;e<t.length;e++)if(!o(t[e]))return!1;return!0}(t)&&t.length>=i+1}}return 0===t.length?function(t){return 0===t.length}:1===t.length?(r=S(t[0]),function(t){return r(t[0])&&1===t.length}):2===t.length?(r=S(t[0]),n=S(t[1]),function(t){return r(t[0])&&n(t[1])&&2===t.length}):(e=t.map(S),function(t){for(var r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return t.length===e.length})}function M(t,e){return e<t.length?t[e]:D(t)?q(t):null}function O(t,e){var r=M(t,e);return r?E(r):new Set}function C(t){return null===t.conversion||void 0===t.conversion}function F(t,e){var r=new Set;return t.forEach((function(t){var n,i,o=a(O(t.params,e));try{for(o.s();!(i=o.n()).done;)n=i.value,r.add(n)}catch(t){o.e(t)}finally{o.f()}})),r.has(\"any\")?[\"any\"]:Array.from(r)}function I(t,e,r){var n,i,o,a,s=t||\"unnamed\",u=r,c=function(){var t=[];if(u.forEach((function(r){var n=S(M(r.params,o));(o<r.params.length||D(r.params))&&n(e[o])&&t.push(r)})),0===t.length){if((i=F(u,o)).length>0){var r=v(e[o]);return(n=new TypeError(\"Unexpected type of argument in function \"+s+\" (expected: \"+i.join(\" or \")+\", actual: \"+r.join(\" | \")+\", index: \"+o+\")\")).data={category:\"wrongType\",fn:s,index:o,actual:r,expected:i},{v:n}}}else u=t};for(o=0;o<e.length;o++)if(a=c())return a.v;var f=u.map((function(t){return D(t.params)?1/0:t.params.length}));if(e.length<Math.min.apply(null,f))return i=F(u,o),(n=new TypeError(\"Too few arguments in function \"+s+\" (expected: \"+i.join(\" or \")+\", index: \"+e.length+\")\")).data={category:\"tooFewArgs\",fn:s,index:e.length,expected:i},n;var l=Math.max.apply(null,f);if(e.length>l)return(n=new TypeError(\"Too many arguments in function \"+s+\" (expected: \"+l+\", actual: \"+e.length+\")\")).data={category:\"tooManyArgs\",fn:s,index:e.length,expectedLength:l},n;for(var h=[],p=0;p<e.length;++p)h.push(v(e[p]).join(\"|\"));return(n=new TypeError('Arguments of type \"'+h.join(\", \")+'\" do not match any of the defined signatures of function '+s+\".\")).data={category:\"mismatch\",actual:h},n}function B(t){for(var e=c.length+1,r=0;r<t.types.length;r++)C(t.types[r])&&(e=Math.min(e,t.types[r].typeIndex));return e}function T(t){for(var e=h+1,r=0;r<t.types.length;r++)C(t.types[r])||(e=Math.min(e,t.types[r].conversionIndex));return e}function L(t,e){if(t.hasAny){if(!e.hasAny)return 1}else if(e.hasAny)return-1;if(t.restParam){if(!e.restParam)return 1}else if(e.restParam)return-1;if(t.hasConversion){if(!e.hasConversion)return 1}else if(e.hasConversion)return-1;var r=B(t)-B(e);if(r<0)return-1;if(r>0)return 1;var n=T(t)-T(e);return n<0?-1:n>0?1:0}function P(t,e){var r=t.params,n=e.params,i=q(r),o=q(n),s=D(r),u=D(n);if(s&&i.hasAny){if(!u||!o.hasAny)return 1}else if(u&&o.hasAny)return-1;var c,f,l=0,h=0,p=a(r);try{for(p.s();!(f=p.n()).done;)(c=f.value).hasAny&&++l,c.hasConversion&&++h}catch(t){p.e(t)}finally{p.f()}var d,m=0,y=0,v=a(n);try{for(v.s();!(d=v.n()).done;)(c=d.value).hasAny&&++m,c.hasConversion&&++y}catch(t){v.e(t)}finally{v.f()}if(l!==m)return l-m;if(s&&i.hasConversion){if(!u||!o.hasConversion)return 1}else if(u&&o.hasConversion)return-1;if(h!==y)return h-y;if(s){if(!u)return 1}else if(u)return-1;var g=(r.length-n.length)*(s?-1:1);if(0!==g)return g;for(var b,w=[],_=0,x=0;x<r.length;++x){var E=L(r[x],n[x]);w.push(E),_+=E}if(0!==_)return _;for(var k=0,S=w;k<S.length;k++)if(0!==(b=S[k]))return b;return 0}function j(t,e){var r=e;if(t.some((function(t){return t.hasConversion}))){var n=D(t),i=t.map(N);r=function(){for(var t=[],r=n?arguments.length-1:arguments.length,o=0;o<r;o++)t[o]=i[o](arguments[o]);return n&&(t[r]=arguments[r].map(i[r])),e.apply(this,t)}}var o=r;if(D(t)){var a=t.length-1;o=function(){return r.apply(this,W(arguments,0,a).concat([W(arguments,a)]))}}return o}function N(t){var e,r,n,i,o=[],a=[];switch(t.types.forEach((function(t){t.conversion&&(o.push(d(t.conversion.from).test),a.push(t.conversion.convert))})),a.length){case 0:return function(t){return t};case 1:return e=o[0],n=a[0],function(t){return e(t)?n(t):t};case 2:return e=o[0],r=o[1],n=a[0],i=a[1],function(t){return e(t)?n(t):r(t)?i(t):t};default:return function(t){for(var e=0;e<a.length;e++)if(o[e](t))return a[e](t);return t}}}function R(t){return function t(e,r,n){if(r<e.length){var i=e[r],o=[];if(i.restParam){var a=i.types.filter(C);a.length<i.types.length&&o.push({types:a,name:\"...\"+a.map((function(t){return t.name})).join(\"|\"),hasAny:a.some((function(t){return t.isAny})),hasConversion:!1,restParam:!0}),o.push(i)}else o=i.types.map((function(t){return{types:[t],name:t.name,hasAny:t.isAny,hasConversion:t.conversion,restParam:!1}}));return s=o,u=function(i){return t(e,r+1,n.concat([i]))},Array.prototype.concat.apply([],s.map(u))}return[n];var s,u}(t,0,[])}function z(t,e,r){var n,i,o=[],s=a(t);try{for(s.s();!(i=s.n()).done;){var u=r[n=i.value];if(\"number\"!=typeof u)throw new TypeError('No definition for referenced signature \"'+n+'\"');if(\"function\"!=typeof(u=e[u]))return!1;o.push(u)}}catch(t){s.e(t)}finally{s.f()}return o}function U(t,e,r){for(var n=function(t){return t.map((function(t){return J(t)?X(t.referToSelf.callback):V(t)?Y(t.referTo.references,t.referTo.callback):t}))}(t),i=new Array(n.length).fill(!1),o=!0;o;){o=!1;for(var a=!0,s=0;s<n.length;++s)if(!i[s]){var u=n[s];if(J(u))n[s]=u.referToSelf.callback(r),n[s].referToSelf=u.referToSelf,i[s]=!0,a=!1;else if(V(u)){var c=z(u.referTo.references,n,e);c?(n[s]=u.referTo.callback.apply(this,c),n[s].referTo=u.referTo,i[s]=!0,a=!1):o=!0}}if(a&&o)throw new SyntaxError(\"Circular reference detected in resolving typed.referTo\")}return n}function G(t,n){if(p.createCount++,0===Object.keys(n).length)throw new SyntaxError(\"No signatures provided\");p.warnAgainstDeprecatedThis&&function(t){var e=/\\bthis(\\(|\\.signatures\\b)/;Object.keys(t).forEach((function(r){var n=t[r];if(e.test(n.toString()))throw new SyntaxError(\"Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.\")}))}(n);var i,o=[],s=[],u={},c=[],f=function(){if(!Object.prototype.hasOwnProperty.call(n,i))return 0;var t=k(i);if(!t)return 0;o.forEach((function(e){if(function(t,e){for(var r=Math.max(t.length,e.length),n=0;n<r;n++){var i,o=O(t,n),s=!1,u=void 0,c=a(O(e,n));try{for(c.s();!(i=c.n()).done;)if(u=i.value,o.has(u)){s=!0;break}}catch(t){c.e(t)}finally{c.f()}if(!s)return!1}var f=t.length,l=e.length,h=D(t),p=D(e);return h?p?f===l:l>=f:p?f>=l:f===l}(e,t))throw new TypeError('Conflicting signatures \"'+w(e)+'\" and \"'+w(t)+'\".')})),o.push(t);var e=s.length;s.push(n[i]);var r,f,l=a(R(t.map(x)));try{for(l.s();!(f=l.n()).done;){var h=w(r=f.value);c.push({params:r,name:h,fn:e}),r.every((function(t){return!t.hasConversion}))&&(u[h]=e)}}catch(t){l.e(t)}finally{l.f()}};for(i in n)f();c.sort(P);var l,h=U(s,u,pt);for(l in u)Object.prototype.hasOwnProperty.call(u,l)&&(u[l]=h[u[l]]);for(var d=[],m=new Map,y=0,v=c;y<v.length;y++)l=v[y],m.has(l.name)||(l.fn=h[l.fn],d.push(l),m.set(l.name,l));for(var g=d[0]&&d[0].params.length<=2&&!D(d[0].params),b=d[1]&&d[1].params.length<=2&&!D(d[1].params),_=d[2]&&d[2].params.length<=2&&!D(d[2].params),E=d[3]&&d[3].params.length<=2&&!D(d[3].params),M=d[4]&&d[4].params.length<=2&&!D(d[4].params),C=d[5]&&d[5].params.length<=2&&!D(d[5].params),F=g&&b&&_&&E&&M&&C,I=0;I<d.length;++I)d[I].test=A(d[I].params);for(var B=g?S(d[0].params[0]):e,T=b?S(d[1].params[0]):e,L=_?S(d[2].params[0]):e,N=E?S(d[3].params[0]):e,z=M?S(d[4].params[0]):e,G=C?S(d[5].params[0]):e,H=g?S(d[0].params[1]):e,Z=b?S(d[1].params[1]):e,q=_?S(d[2].params[1]):e,W=E?S(d[3].params[1]):e,Y=M?S(d[4].params[1]):e,X=C?S(d[5].params[1]):e,V=0;V<d.length;++V)d[V].implementation=j(d[V].params,d[V].fn);var J=g?d[0].implementation:r,K=b?d[1].implementation:r,Q=_?d[2].implementation:r,$=E?d[3].implementation:r,tt=M?d[4].implementation:r,et=C?d[5].implementation:r,rt=g?d[0].params.length:-1,nt=b?d[1].params.length:-1,it=_?d[2].params.length:-1,ot=E?d[3].params.length:-1,at=M?d[4].params.length:-1,st=C?d[5].params.length:-1,ut=F?6:0,ct=d.length,ft=d.map((function(t){return t.test})),lt=d.map((function(t){return t.implementation})),ht=function(){for(var e=ut;e<ct;e++)if(ft[e](arguments))return lt[e].apply(this,arguments);return p.onMismatch(t,arguments,d)};function pt(t,e){return arguments.length===rt&&B(t)&&H(e)?J.apply(this,arguments):arguments.length===nt&&T(t)&&Z(e)?K.apply(this,arguments):arguments.length===it&&L(t)&&q(e)?Q.apply(this,arguments):arguments.length===ot&&N(t)&&W(e)?$.apply(this,arguments):arguments.length===at&&z(t)&&Y(e)?tt.apply(this,arguments):arguments.length===st&&G(t)&&X(e)?et.apply(this,arguments):ht.apply(this,arguments)}try{Object.defineProperty(pt,\"name\",{value:t})}catch(t){}return pt.signatures=u,pt._typedFunctionData={signatures:d,signatureMap:m},pt}function H(t,e,r){throw I(t,e,r)}function Z(t){return W(t,0,t.length-1)}function q(t){return t[t.length-1]}function W(t,e,r){return Array.prototype.slice.call(t,e,r)}function Y(t,e){return{referTo:{references:t,callback:e}}}function X(t){if(\"function\"!=typeof t)throw new TypeError(\"Callback function expected as first argument\");return{referToSelf:{callback:t}}}function V(t){return t&&\"object\"===u(t.referTo)&&Array.isArray(t.referTo.references)&&\"function\"==typeof t.referTo.callback}function J(t){return t&&\"object\"===u(t.referToSelf)&&\"function\"==typeof t.referToSelf.callback}function K(t,e){if(!t)return e;if(e&&e!==t){var r=new Error(\"Function names do not match (expected: \"+t+\", actual: \"+e+\")\");throw r.data={actual:e,expected:t},r}return t}function Q(t){var e;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(g(t[r])||\"string\"==typeof t[r].signature)&&(e=K(e,t[r].name));return e}function $(t,e){var r;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(r in t&&e[r]!==t[r]){var n=new Error('Signature \"'+r+'\" is defined twice');throw n.data={signature:r,sourceFunction:e[r],destFunction:t[r]},n}t[r]=e[r]}}y(),m(f);var tt=p;function et(t){if(!t||\"string\"!=typeof t.from||\"string\"!=typeof t.to||\"function\"!=typeof t.convert)throw new TypeError(\"Object with properties {from: string, to: string, convert: function} expected\");if(t.to===t.from)throw new SyntaxError('Illegal to define conversion from \"'+t.from+'\" to itself.')}return p=function(t){for(var e=\"string\"==typeof t,r=e?t:\"\",n={},i=e?1:0;i<arguments.length;++i){var a=arguments[i],s={},u=void 0;if(\"function\"==typeof a?(u=a.name,\"string\"==typeof a.signature?s[a.signature]=a:g(a)&&(s=a.signatures)):o(a)&&(s=a,e||(u=Q(a))),0===Object.keys(s).length){var c=new TypeError(\"Argument to 'typed' at index \"+i+\" is not a (typed) function, nor an object with signatures as keys and functions as values.\");throw c.data={index:i,argument:a},c}e||(r=K(r,u)),$(n,s)}return G(r||\"\",n)},p.create=i,p.createCount=tt.createCount,p.onMismatch=H,p.throwMismatchError=H,p.createError=I,p.clear=y,p.clearConversions=function(){var t,e,r=a(c);try{for(r.s();!(e=r.n()).done;)t=e.value,s.get(t).conversionsTo=[]}catch(t){r.e(t)}finally{r.f()}h=0},p.addTypes=m,p._findType=d,p.referTo=function(){var t=Z(arguments).map((function(t){return w(k(t))})),e=q(arguments);if(\"function\"!=typeof e)throw new TypeError(\"Callback function expected as last argument\");return Y(t,e)},p.referToSelf=X,p.convert=function(t,e){var r=d(e);if(r.test(t))return t;var n=r.conversionsTo;if(0===n.length)throw new Error(\"There are no conversions to \"+e+\" defined.\");for(var i=0;i<n.length;i++)if(d(n[i].from).test(t))return n[i].convert(t);throw new Error(\"Cannot convert \"+t+\" to \"+e)},p.findSignature=b,p.find=function(t,e,r){return b(t,e,r).implementation},p.isTypedFunction=g,p.warnAgainstDeprecatedThis=!0,p.addType=function(t,e){var r=\"any\";!1!==e&&s.has(\"Object\")&&(r=\"Object\"),p.addTypes([t],r)},p.addConversion=function(t){et(t);var e=d(t.to);if(!e.conversionsTo.every((function(e){return e.from!==t.from})))throw new Error('There is already a conversion from \"'+t.from+'\" to \"'+e.name+'\"');e.conversionsTo.push({from:t.from,convert:t.convert,index:h++})},p.addConversions=function(t){t.forEach(p.addConversion)},p.removeConversion=function(t){et(t);var e=d(t.to),r=function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return t[r]}(e.conversionsTo,(function(e){return e.from===t.from}));if(!r)throw new Error(\"Attempt to remove nonexistent conversion from \"+t.from+\" to \"+t.to);if(r.convert!==t.convert)throw new Error(\"Conversion to remove does not match existing conversion\");var n=e.conversionsTo.indexOf(r);e.conversionsTo.splice(n,1)},p.resolve=function(t,e){if(!g(t))throw new TypeError(n);for(var r=t._typedFunctionData.signatures,i=0;i<r.length;++i)if(r[i].test(e))return r[i];return null},p}();return i},\"object\"===u(e)&&void 0!==t?t.exports=o():void 0===(i=\"function\"==typeof(n=o)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){\"use strict\";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){for(var r=0,n=0;n<e.length;n++)if(t.chars[e[n]]){var i=t.kernings[e[n]]&&t.kernings[e[n]][e[n+1]]?t.kernings[e[n]][e[n+1]]:0;r+=(t.chars[e[n]].xadvance||0)+i}return r}function a(t,e,r){var i=e.replace(/[\\r\\n]+/g,\" \\n\").split(\" \"),a=[],s=[],u=0;return i.forEach((function(e){var i=[].concat(n(s),[e]).join(\" \"),c=o(t,i);c<=r&&!e.includes(\"\\n\")?(c>u&&(u=c),s.push(e)):(a.push(s),s=[e.replace(\"\\n\",\"\")])})),a.push(s),{lines:a,longestLine:u}}function s(t,e,r){return a(t,e,r).lines.length*t.common.lineHeight}r.d(e,\"a\",(function(){return o})),r.d(e,\"c\",(function(){return a})),r.d(e,\"b\",(function(){return s}))},function(t,e,r){\"use strict\";var n=r(39),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=l;var o=Object.create(r(27));o.inherits=r(24);var a=r(70),s=r(52);o.inherits(l,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var f=u[c];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(t){if(!(this instanceof l))return new l(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once(\"end\",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(t){t.end()}Object.defineProperty(l.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),l.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return i})),r.d(e,\"c\",(function(){return o})),r.d(e,\"b\",(function(){return a}));var n={},i=function(t,e){n[t]=e},o=function(t){var e=t.split(\"/\").slice(-1),r=function(t){return Object.entries(n).find((function(e){return e[1].includes(t)}))||[]}(e[e.length-1].split(\".\").pop());return r[0]},a=function(t){return(n[t.toLowerCase()]||[])[0]}},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"AUTO\",(function(){return n})),r.d(e,\"HORIZONTAL_ALIGN_LEFT\",(function(){return i})),r.d(e,\"HORIZONTAL_ALIGN_CENTER\",(function(){return o})),r.d(e,\"HORIZONTAL_ALIGN_RIGHT\",(function(){return a})),r.d(e,\"VERTICAL_ALIGN_TOP\",(function(){return s})),r.d(e,\"VERTICAL_ALIGN_MIDDLE\",(function(){return u})),r.d(e,\"VERTICAL_ALIGN_BOTTOM\",(function(){return c})),r.d(e,\"BLEND_SOURCE_OVER\",(function(){return f})),r.d(e,\"BLEND_DESTINATION_OVER\",(function(){return l})),r.d(e,\"BLEND_MULTIPLY\",(function(){return h})),r.d(e,\"BLEND_ADD\",(function(){return p})),r.d(e,\"BLEND_SCREEN\",(function(){return d})),r.d(e,\"BLEND_OVERLAY\",(function(){return m})),r.d(e,\"BLEND_DARKEN\",(function(){return y})),r.d(e,\"BLEND_LIGHTEN\",(function(){return v})),r.d(e,\"BLEND_HARDLIGHT\",(function(){return g})),r.d(e,\"BLEND_DIFFERENCE\",(function(){return b})),r.d(e,\"BLEND_EXCLUSION\",(function(){return w})),r.d(e,\"EDGE_EXTEND\",(function(){return _})),r.d(e,\"EDGE_WRAP\",(function(){return x})),r.d(e,\"EDGE_CROP\",(function(){return E}));var n=-1,i=1,o=2,a=4,s=8,u=16,c=32,f=\"srcOver\",l=\"dstOver\",h=\"multiply\",p=\"add\",d=\"screen\",m=\"overlay\",y=\"darken\",v=\"lighten\",g=\"hardLight\",b=\"difference\",w=\"exclusion\",_=1,x=2,E=3},function(t,e,r){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(o){\"use strict\";var a,s,u,c=9e15,f=1e9,l=\"0123456789abcdef\",h=\"2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058\",p=\"3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789\",d={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-c,maxE:c,crypto:!1},m=!0,y=\"[DecimalError] \",v=y+\"Invalid argument: \",g=y+\"Precision limit exceeded\",b=y+\"crypto unavailable\",w=\"[object Decimal]\",_=Math.floor,x=Math.pow,E=/^0b([01]+(\\.[01]*)?|\\.[01]+)(p[+-]?\\d+)?$/i,k=/^0x([0-9a-f]+(\\.[0-9a-f]*)?|\\.[0-9a-f]+)(p[+-]?\\d+)?$/i,D=/^0o([0-7]+(\\.[0-7]*)?|\\.[0-7]+)(p[+-]?\\d+)?$/i,S=/^(\\d+(\\.\\d*)?|\\.\\d+)(e[+-]?\\d+)?$/i,A=1e7,M=7,O=h.length-1,C=p.length-1,F={toStringTag:w};function I(t){var e,r,n,i=t.length-1,o=\"\",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+\"\",(r=M-n.length)&&(o+=H(r)),o+=n;a=t[e],(r=M-(n=a+\"\").length)&&(o+=H(r))}else if(0===a)return\"0\";for(;a%10==0;)a/=10;return o+a}function B(t,e,r){if(t!==~~t||t<e||t>r)throw Error(v+t)}function T(t,e,r,n){var i,o,a,s;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=M,i=0):(i=Math.ceil((e+1)/M),e%=M),o=x(10,M-e),s=t[i]%o|0,null==n?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(t[i+1]/o/100|0)==x(10,e-2)-1||(s==o/2||0==s)&&!(t[i+1]/o/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),a=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>3&&s+1==o/2)&&(t[i+1]/o/1e3|0)==x(10,e-3)-1,a}function L(t,e,r){for(var n,i,o=[0],a=0,s=t.length;a<s;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=l.indexOf(t.charAt(a++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}F.absoluteValue=F.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),j(t)},F.ceil=function(){return j(new this.constructor(this),this.e+1,2)},F.clampedTo=F.clamp=function(t,e){var r=this,n=r.constructor;if(t=new n(t),e=new n(e),!t.s||!e.s)return new n(NaN);if(t.gt(e))throw Error(v+e);return r.cmp(t)<0?t:r.cmp(e)>0?e:new n(r)},F.comparedTo=F.cmp=function(t){var e,r,n,i,o=this,a=o.d,s=(t=new o.constructor(t)).d,u=o.s,c=t.s;if(!a||!s)return u&&c?u!==c?u:a===s?0:!a^u<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?u:s[0]?-c:0;if(u!==c)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,r=(n=a.length)<(i=s.length)?n:i;e<r;++e)if(a[e]!==s[e])return a[e]>s[e]^u<0?1:-1;return n===i?0:n>i^u<0?1:-1},F.cosine=F.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+M,n.rounding=1,r=function(t,e){var r,n,i;if(e.isZero())return e;n=e.d.length,n<32?i=(1/$(4,r=Math.ceil(n/3))).toString():(r=16,i=\"2.3283064365386962890625e-10\");t.precision+=r,e=Q(t,1,e.times(i),new t(1));for(var o=r;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=r,e}(n,tt(n,r)),n.precision=t,n.rounding=e,j(2==u||3==u?r.neg():r,t,e,!0)):new n(1):new n(NaN)},F.cubeRoot=F.cbrt=function(){var t,e,r,n,i,o,a,s,u,c,f=this,l=f.constructor;if(!f.isFinite()||f.isZero())return new l(f);for(m=!1,(o=f.s*x(f.s*f,1/3))&&Math.abs(o)!=1/0?n=new l(o.toString()):(r=I(f.d),(o=((t=f.e)-r.length+1)%3)&&(r+=1==o||-2==o?\"0\":\"00\"),o=x(r,1/3),t=_((t+1)/3)-(t%3==(t<0?-1:2)),(n=new l(r=o==1/0?\"5e\"+t:(r=o.toExponential()).slice(0,r.indexOf(\"e\")+1)+t)).s=f.s),a=(t=l.precision)+3;;)if(c=(u=(s=n).times(s).times(s)).plus(f),n=P(c.plus(f).times(s),c.plus(u),a+2,1),I(s.d).slice(0,a)===(r=I(n.d)).slice(0,a)){if(\"9999\"!=(r=r.slice(a-3,a+1))&&(i||\"4999\"!=r)){+r&&(+r.slice(1)||\"5\"!=r.charAt(0))||(j(n,t+1,1),e=!n.times(n).times(n).eq(f));break}if(!i&&(j(s,t+1,0),s.times(s).times(s).eq(f))){n=s;break}a+=4,i=1}return m=!0,j(n,t,l.rounding,e)},F.decimalPlaces=F.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-_(this.e/M))*M,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},F.dividedBy=F.div=function(t){return P(this,new this.constructor(t))},F.dividedToIntegerBy=F.divToInt=function(t){var e=this.constructor;return j(P(this,new e(t),0,1,1),e.precision,e.rounding)},F.equals=F.eq=function(t){return 0===this.cmp(t)},F.floor=function(){return j(new this.constructor(this),this.e+1,3)},F.greaterThan=F.gt=function(t){return this.cmp(t)>0},F.greaterThanOrEqualTo=F.gte=function(t){var e=this.cmp(t);return 1==e||0===e},F.hyperbolicCosine=F.cosh=function(){var t,e,r,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/$(4,t=Math.ceil(i/3))).toString():(t=16,e=\"2.3283064365386962890625e-10\"),o=Q(a,1,o.times(e),new a(1),!0);for(var u,c=t,f=new a(8);c--;)u=o.times(o),o=s.minus(u.times(f.minus(u.times(f))));return j(o,a.precision=r,a.rounding=n,!0)},F.hyperbolicSine=F.sinh=function(){var t,e,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,r=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=Q(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=Q(o,2,i=i.times(1/$(5,t)),i,!0);for(var a,s=new o(5),u=new o(16),c=new o(20);t--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(c))))}return o.precision=e,o.rounding=r,j(i,e,r,!0)},F.hyperbolicTangent=F.tanh=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+7,n.rounding=1,P(r.sinh(),r.cosh(),n.precision=t,n.rounding=e)):new n(r.s)},F.inverseCosine=F.acos=function(){var t,e=this,r=e.constructor,n=e.abs().cmp(1),i=r.precision,o=r.rounding;return-1!==n?0===n?e.isNeg()?U(r,i,o):new r(0):new r(NaN):e.isZero()?U(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,e=e.asin(),t=U(r,i+4,o).times(.5),r.precision=i,r.rounding=o,t.minus(e))},F.inverseHyperbolicCosine=F.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,m=!1,r=r.times(r).minus(1).sqrt().plus(r),m=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},F.inverseHyperbolicSine=F.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,m=!1,r=r.times(r).plus(1).sqrt().plus(r),m=!0,n.precision=t,n.rounding=e,r.ln())},F.inverseHyperbolicTangent=F.atanh=function(){var t,e,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,n=i.sd(),Math.max(n,t)<2*-i.e-1?j(new o(i),t,e,!0):(o.precision=r=n-i.e,i=P(i.plus(1),new o(1).minus(i),r+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},F.inverseSine=F.asin=function(){var t,e,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==e?0===e?((t=U(o,r+4,n).times(.5)).s=i.s,t):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))},F.inverseTangent=F.atan=function(){var t,e,r,n,i,o,a,s,u,c=this,f=c.constructor,l=f.precision,h=f.rounding;if(c.isFinite()){if(c.isZero())return new f(c);if(c.abs().eq(1)&&l+4<=C)return(a=U(f,l+4,h).times(.25)).s=c.s,a}else{if(!c.s)return new f(NaN);if(l+4<=C)return(a=U(f,l+4,h).times(.5)).s=c.s,a}for(f.precision=s=l+10,f.rounding=1,t=r=Math.min(28,s/M+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(m=!1,e=Math.ceil(s/M),n=1,u=c.times(c),a=new f(c),i=c;-1!==t;)if(i=i.times(u),o=a.minus(i.div(n+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(n+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return r&&(a=a.times(2<<r-1)),m=!0,j(a,f.precision=l,f.rounding=h,!0)},F.isFinite=function(){return!!this.d},F.isInteger=F.isInt=function(){return!!this.d&&_(this.e/M)>this.d.length-2},F.isNaN=function(){return!this.s},F.isNegative=F.isNeg=function(){return this.s<0},F.isPositive=F.isPos=function(){return this.s>0},F.isZero=function(){return!!this.d&&0===this.d[0]},F.lessThan=F.lt=function(t){return this.cmp(t)<0},F.lessThanOrEqualTo=F.lte=function(t){return this.cmp(t)<1},F.logarithm=F.log=function(t){var e,r,n,i,o,a,s,u,c=this,f=c.constructor,l=f.precision,h=f.rounding;if(null==t)t=new f(10),e=!0;else{if(r=(t=new f(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new f(NaN);e=t.eq(10)}if(r=c.d,c.s<0||!r||!r[0]||c.eq(1))return new f(r&&!r[0]?-1/0:1!=c.s?NaN:r?0:1/0);if(e)if(r.length>1)o=!0;else{for(i=r[0];i%10==0;)i/=10;o=1!==i}if(m=!1,a=X(c,s=l+5),n=e?z(f,s+10):X(t,s),T((u=P(a,n,s,1)).d,i=l,h))do{if(a=X(c,s+=10),n=e?z(f,s+10):X(t,s),u=P(a,n,s,1),!o){+I(u.d).slice(i+1,i+15)+1==1e14&&(u=j(u,l+1,0));break}}while(T(u.d,i+=10,h));return m=!0,j(u,l,h)},F.minus=F.sub=function(t){var e,r,n,i,o,a,s,u,c,f,l,h,p=this,d=p.constructor;if(t=new d(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new d(t.d||p.s!==t.s?p:NaN):t=new d(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(c=p.d,h=t.d,s=d.precision,u=d.rounding,!c[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!c[0])return new d(3===u?-0:0);t=new d(p)}return m?j(t,s,u):t}if(r=_(t.e/M),f=_(p.e/M),c=c.slice(),o=f-r){for((l=o<0)?(e=c,o=-o,a=h.length):(e=h,r=f,a=c.length),o>(n=Math.max(Math.ceil(s/M),a)+2)&&(o=n,e.length=1),e.reverse(),n=o;n--;)e.push(0);e.reverse()}else{for((l=(n=c.length)<(a=h.length))&&(a=n),n=0;n<a;n++)if(c[n]!=h[n]){l=c[n]<h[n];break}o=0}for(l&&(e=c,c=h,h=e,t.s=-t.s),a=c.length,n=h.length-a;n>0;--n)c[a++]=0;for(n=h.length;n>o;){if(c[--n]<h[n]){for(i=n;i&&0===c[--i];)c[i]=A-1;--c[i],c[n]+=A}c[n]-=h[n]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=R(c,r),m?j(t,s,u):t):new d(3===u?-0:0)},F.modulo=F.mod=function(t){var e,r=this,n=r.constructor;return t=new n(t),!r.d||!t.s||t.d&&!t.d[0]?new n(NaN):!t.d||r.d&&!r.d[0]?j(new n(r),n.precision,n.rounding):(m=!1,9==n.modulo?(e=P(r,t.abs(),0,3,1)).s*=t.s:e=P(r,t,0,n.modulo,1),e=e.times(t),m=!0,r.minus(e))},F.naturalExponential=F.exp=function(){return Y(this)},F.naturalLogarithm=F.ln=function(){return X(this)},F.negated=F.neg=function(){var t=new this.constructor(this);return t.s=-t.s,j(t)},F.plus=F.add=function(t){var e,r,n,i,o,a,s,u,c,f,l=this,h=l.constructor;if(t=new h(t),!l.d||!t.d)return l.s&&t.s?l.d||(t=new h(t.d||l.s===t.s?l:NaN)):t=new h(NaN),t;if(l.s!=t.s)return t.s=-t.s,l.minus(t);if(c=l.d,f=t.d,s=h.precision,u=h.rounding,!c[0]||!f[0])return f[0]||(t=new h(l)),m?j(t,s,u):t;if(o=_(l.e/M),n=_(t.e/M),c=c.slice(),i=o-n){for(i<0?(r=c,i=-i,a=f.length):(r=f,n=o,a=c.length),i>(a=(o=Math.ceil(s/M))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=c.length)-(i=f.length)<0&&(i=a,r=f,f=c,c=r),e=0;i;)e=(c[--i]=c[i]+f[i]+e)/A|0,c[i]%=A;for(e&&(c.unshift(e),++n),a=c.length;0==c[--a];)c.pop();return t.d=c,t.e=R(c,n),m?j(t,s,u):t},F.precision=F.sd=function(t){var e,r=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(v+t);return r.d?(e=G(r.d),t&&r.e+1>e&&(e=r.e+1)):e=NaN,e},F.round=function(){var t=this,e=t.constructor;return j(new e(t),t.e+1,e.rounding)},F.sine=F.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+M,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return e.isZero()?e:Q(t,2,e,e);r=(r=1.4*Math.sqrt(n))>16?16:0|r,e=e.times(1/$(5,r)),e=Q(t,2,e,e);for(var i,o=new t(5),a=new t(16),s=new t(20);r--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(s))));return e}(n,tt(n,r)),n.precision=t,n.rounding=e,j(u>2?r.neg():r,t,e,!0)):new n(NaN)},F.squareRoot=F.sqrt=function(){var t,e,r,n,i,o,a=this,s=a.d,u=a.e,c=a.s,f=a.constructor;if(1!==c||!s||!s[0])return new f(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(m=!1,0==(c=Math.sqrt(+a))||c==1/0?(((e=I(s)).length+u)%2==0&&(e+=\"0\"),c=Math.sqrt(e),u=_((u+1)/2)-(u<0||u%2),n=new f(e=c==1/0?\"5e\"+u:(e=c.toExponential()).slice(0,e.indexOf(\"e\")+1)+u)):n=new f(c.toString()),r=(u=f.precision)+3;;)if(n=(o=n).plus(P(a,o,r+2,1)).times(.5),I(o.d).slice(0,r)===(e=I(n.d)).slice(0,r)){if(\"9999\"!=(e=e.slice(r-3,r+1))&&(i||\"4999\"!=e)){+e&&(+e.slice(1)||\"5\"!=e.charAt(0))||(j(n,u+1,1),t=!n.times(n).eq(a));break}if(!i&&(j(o,u+1,0),o.times(o).eq(a))){n=o;break}r+=4,i=1}return m=!0,j(n,u,f.rounding,t)},F.tangent=F.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=P(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,j(2==u||4==u?r.neg():r,t,e,!0)):new n(NaN)},F.times=F.mul=function(t){var e,r,n,i,o,a,s,u,c,f=this,l=f.constructor,h=f.d,p=(t=new l(t)).d;if(t.s*=f.s,!(h&&h[0]&&p&&p[0]))return new l(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*t.s:t.s/0);for(r=_(f.e/M)+_(t.e/M),(u=h.length)<(c=p.length)&&(o=h,h=p,p=o,a=u,u=c,c=a),o=[],n=a=u+c;n--;)o.push(0);for(n=c;--n>=0;){for(e=0,i=u+n;i>n;)s=o[i]+p[n]*h[i-n-1]+e,o[i--]=s%A|0,e=s/A|0;o[i]=(o[i]+e)%A|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=R(o,r),m?j(t,l.precision,l.rounding):t},F.toBinary=function(t,e){return et(this,2,t,e)},F.toDecimalPlaces=F.toDP=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(B(t,0,f),void 0===e?e=n.rounding:B(e,0,8),j(r,t+r.e+1,e))},F.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=N(n,!0):(B(t,0,f),void 0===e?e=i.rounding:B(e,0,8),r=N(n=j(new i(n),t+1,e),!0,t+1)),n.isNeg()&&!n.isZero()?\"-\"+r:r},F.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?r=N(i):(B(t,0,f),void 0===e?e=o.rounding:B(e,0,8),r=N(n=j(new o(i),t+i.e+1,e),!1,t+n.e+1)),i.isNeg()&&!i.isZero()?\"-\"+r:r},F.toFraction=function(t){var e,r,n,i,o,a,s,u,c,f,l,h,p=this,d=p.d,y=p.constructor;if(!d)return new y(p);if(c=r=new y(1),n=u=new y(0),a=(o=(e=new y(n)).e=G(d)-p.e-1)%M,e.d[0]=x(10,a<0?M+a:a),null==t)t=o>0?e:c;else{if(!(s=new y(t)).isInt()||s.lt(c))throw Error(v+s);t=s.gt(e)?o>0?e:c:s}for(m=!1,s=new y(I(d)),f=y.precision,y.precision=o=d.length*M*2;l=P(s,e,0,1,1),1!=(i=r.plus(l.times(n))).cmp(t);)r=n,n=i,i=c,c=u.plus(l.times(i)),u=i,i=e,e=s.minus(l.times(i)),s=i;return i=P(t.minus(r),n,0,1,1),u=u.plus(i.times(c)),r=r.plus(i.times(n)),u.s=c.s=p.s,h=P(c,n,o,1).minus(p).abs().cmp(P(u,r,o,1).minus(p).abs())<1?[c,n]:[u,r],y.precision=f,m=!0,h},F.toHexadecimal=F.toHex=function(t,e){return et(this,16,t,e)},F.toNearest=function(t,e){var r=this,n=r.constructor;if(r=new n(r),null==t){if(!r.d)return r;t=new n(1),e=n.rounding}else{if(t=new n(t),void 0===e?e=n.rounding:B(e,0,8),!r.d)return t.s?r:t;if(!t.d)return t.s&&(t.s=r.s),t}return t.d[0]?(m=!1,r=P(r,t,0,e,1).times(t),m=!0,j(r)):(t.s=r.s,r=t),r},F.toNumber=function(){return+this},F.toOctal=function(t,e){return et(this,8,t,e)},F.toPower=F.pow=function(t){var e,r,n,i,o,a,s=this,u=s.constructor,c=+(t=new u(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new u(x(+s,c));if((s=new u(s)).eq(1))return s;if(n=u.precision,o=u.rounding,t.eq(1))return j(s,n,o);if((e=_(t.e/M))>=t.d.length-1&&(r=c<0?-c:c)<=9007199254740991)return i=Z(u,s,r,n),t.s<0?new u(1).div(i):j(i,n,o);if((a=s.s)<0){if(e<t.d.length-1)return new u(NaN);if(1&t.d[e]||(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(e=0!=(r=x(+s,c))&&isFinite(r)?new u(r+\"\").e:_(c*(Math.log(\"0.\"+I(s.d))/Math.LN10+s.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(m=!1,u.rounding=s.s=1,r=Math.min(12,(e+\"\").length),(i=Y(t.times(X(s,n+r)),n)).d&&T((i=j(i,n+5,1)).d,n,o)&&(e=n+10,+I((i=j(Y(t.times(X(s,e+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=j(i,n+1,0))),i.s=a,m=!0,u.rounding=o,j(i,n,o))},F.toPrecision=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=N(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(B(t,1,f),void 0===e?e=i.rounding:B(e,0,8),r=N(n=j(new i(n),t,e),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?\"-\"+r:r},F.toSignificantDigits=F.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(B(t,1,f),void 0===e?e=r.rounding:B(e,0,8)),j(new r(this),t,e)},F.toString=function(){var t=this,e=t.constructor,r=N(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?\"-\"+r:r},F.truncated=F.trunc=function(){return j(new this.constructor(this),this.e+1,1)},F.valueOf=F.toJSON=function(){var t=this,e=t.constructor,r=N(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?\"-\"+r:r};var P=function(){function t(t,e,r){var n,i=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+i,t[o]=n%r|0,i=n/r|0;return i&&t.unshift(i),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,a,u,c){var f,l,h,p,d,m,y,v,g,b,w,x,E,k,D,S,O,C,F,I,B=n.constructor,T=n.s==i.s?1:-1,L=n.d,P=i.d;if(!(L&&L[0]&&P&&P[0]))return new B(n.s&&i.s&&(L?!P||L[0]!=P[0]:P)?L&&0==L[0]||!P?0*T:T/0:NaN);for(c?(d=1,l=n.e-i.e):(c=A,d=M,l=_(n.e/d)-_(i.e/d)),F=P.length,O=L.length,b=(g=new B(T)).d=[],h=0;P[h]==(L[h]||0);h++);if(P[h]>(L[h]||0)&&l--,null==o?(k=o=B.precision,a=B.rounding):k=u?o+(n.e-i.e)+1:o,k<0)b.push(1),m=!0;else{if(k=k/d+2|0,h=0,1==F){for(p=0,P=P[0],k++;(h<O||p)&&k--;h++)D=p*c+(L[h]||0),b[h]=D/P|0,p=D%P|0;m=p||h<O}else{for((p=c/(P[0]+1)|0)>1&&(P=t(P,p,c),L=t(L,p,c),F=P.length,O=L.length),S=F,x=(w=L.slice(0,F)).length;x<F;)w[x++]=0;(I=P.slice()).unshift(0),C=P[0],P[1]>=c/2&&++C;do{p=0,(f=e(P,w,F,x))<0?(E=w[0],F!=x&&(E=E*c+(w[1]||0)),(p=E/C|0)>1?(p>=c&&(p=c-1),1==(f=e(y=t(P,p,c),w,v=y.length,x=w.length))&&(p--,r(y,F<v?I:P,v,c))):(0==p&&(f=p=1),y=P.slice()),(v=y.length)<x&&y.unshift(0),r(w,y,x,c),-1==f&&(f=e(P,w,F,x=w.length))<1&&(p++,r(w,F<x?I:P,x,c)),x=w.length):0===f&&(p++,w=[0]),b[h++]=p,f&&w[0]?w[x++]=L[S]||0:(w=[L[S]],x=1)}while((S++<O||void 0!==w[0])&&k--);m=void 0!==w[0]}b[0]||b.shift()}if(1==d)g.e=l,s=m;else{for(h=1,p=b[0];p>=10;p/=10)h++;g.e=h+l*d-1,j(g,u?o+g.e+1:o,a,m)}return g}}();function j(t,e,r,n){var i,o,a,s,u,c,f,l,h,p=t.constructor;t:if(null!=e){if(!(l=t.d))return t;for(i=1,s=l[0];s>=10;s/=10)i++;if((o=e-i)<0)o+=M,a=e,u=(f=l[h=0])/x(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/M))>=(s=l.length)){if(!n)break t;for(;s++<=h;)l.push(0);f=u=0,i=1,a=(o%=M)-M+1}else{for(f=s=l[h],i=1;s>=10;s/=10)i++;u=(a=(o%=M)-M+i)<0?0:f/x(10,i-a-1)%10|0}if(n=n||e<0||void 0!==l[h+1]||(a<0?f:f%x(10,i-a-1)),c=r<4?(u||n)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?f/x(10,i-a):0:l[h-1])%10&1||r==(t.s<0?8:7)),e<1||!l[0])return l.length=0,c?(e-=t.e+1,l[0]=x(10,(M-e%M)%M),t.e=-e||0):l[0]=t.e=0,t;if(0==o?(l.length=h,s=1,h--):(l.length=h+1,s=x(10,M-o),l[h]=a>0?(f/x(10,i-a)%x(10,a)|0)*s:0),c)for(;;){if(0==h){for(o=1,a=l[0];a>=10;a/=10)o++;for(a=l[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(t.e++,l[0]==A&&(l[0]=1));break}if(l[h]+=s,l[h]!=A)break;l[h--]=0,s=1}for(o=l.length;0===l[--o];)l.pop()}return m&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function N(t,e,r){if(!t.isFinite())return V(t);var n,i=t.e,o=I(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+\".\"+o.slice(1)+H(n):a>1&&(o=o.charAt(0)+\".\"+o.slice(1)),o=o+(t.e<0?\"e\":\"e+\")+t.e):i<0?(o=\"0.\"+H(-i-1)+o,r&&(n=r-a)>0&&(o+=H(n))):i>=a?(o+=H(i+1-a),r&&(n=r-i-1)>0&&(o=o+\".\"+H(n))):((n=i+1)<a&&(o=o.slice(0,n)+\".\"+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+=\".\"),o+=H(n))),o}function R(t,e){var r=t[0];for(e*=M;r>=10;r/=10)e++;return e}function z(t,e,r){if(e>O)throw m=!0,r&&(t.precision=r),Error(g);return j(new t(h),e,1,!0)}function U(t,e,r){if(e>C)throw Error(g);return j(new t(p),e,r,!0)}function G(t){var e=t.length-1,r=e*M+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];e>=10;e/=10)r++}return r}function H(t){for(var e=\"\";t--;)e+=\"0\";return e}function Z(t,e,r,n){var i,o=new t(1),a=Math.ceil(n/M+4);for(m=!1;;){if(r%2&&rt((o=o.times(e)).d,a)&&(i=!0),0===(r=_(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}rt((e=e.times(e)).d,a)}return m=!0,o}function q(t){return 1&t.d[t.d.length-1]}function W(t,e,r){for(var n,i=new t(e[0]),o=0;++o<e.length;){if(!(n=new t(e[o])).s){i=n;break}i[r](n)&&(i=n)}return i}function Y(t,e){var r,n,i,o,a,s,u,c=0,f=0,l=0,h=t.constructor,p=h.rounding,d=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(m=!1,u=d):u=e,s=new h(.03125);t.e>-2;)t=t.times(s),l+=5;for(u+=n=Math.log(x(2,l))/Math.LN10*2+5|0,r=o=a=new h(1),h.precision=u;;){if(o=j(o.times(t),u,1),r=r.times(++f),I((s=a.plus(P(o,r,u,1))).d).slice(0,u)===I(a.d).slice(0,u)){for(i=l;i--;)a=j(a.times(a),u,1);if(null!=e)return h.precision=d,a;if(!(c<3&&T(a.d,u-n,p,c)))return j(a,h.precision=d,p,m=!0);h.precision=u+=10,r=o=s=new h(1),f=0,c++}a=s}}function X(t,e){var r,n,i,o,a,s,u,c,f,l,h,p=1,d=t,y=d.d,v=d.constructor,g=v.rounding,b=v.precision;if(d.s<0||!y||!y[0]||!d.e&&1==y[0]&&1==y.length)return new v(y&&!y[0]?-1/0:1!=d.s?NaN:y?0:d);if(null==e?(m=!1,f=b):f=e,v.precision=f+=10,n=(r=I(y)).charAt(0),!(Math.abs(o=d.e)<15e14))return c=z(v,f+2,b).times(o+\"\"),d=X(new v(n+\".\"+r.slice(1)),f-10).plus(c),v.precision=b,null==e?j(d,b,g,m=!0):d;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=I((d=d.times(t)).d)).charAt(0),p++;for(o=d.e,n>1?(d=new v(\"0.\"+r),o++):d=new v(n+\".\"+r.slice(1)),l=d,u=a=d=P(d.minus(1),d.plus(1),f,1),h=j(d.times(d),f,1),i=3;;){if(a=j(a.times(h),f,1),I((c=u.plus(P(a,new v(i),f,1))).d).slice(0,f)===I(u.d).slice(0,f)){if(u=u.times(2),0!==o&&(u=u.plus(z(v,f+2,b).times(o+\"\"))),u=P(u,new v(p),f,1),null!=e)return v.precision=b,u;if(!T(u.d,f-10,g,s))return j(u,v.precision=b,g,m=!0);v.precision=f+=10,c=a=d=P(l.minus(1),l.plus(1),f,1),h=j(d.times(d),f,1),i=s=1}u=c,i+=2}}function V(t){return String(t.s*t.s/0)}function J(t,e){var r,n,i;for((r=e.indexOf(\".\"))>-1&&(e=e.replace(\".\",\"\")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(n,i)){if(i-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%M,r<0&&(n+=M),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=M;n<i;)t.d.push(+e.slice(n,n+=M));e=e.slice(n),n=M-e.length}else n-=i;for(;n--;)e+=\"0\";t.d.push(+e),m&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function K(t,e){var r,n,i,o,s,u,c,f,l;if(e.indexOf(\"_\")>-1){if(e=e.replace(/(\\d)_(?=\\d)/g,\"$1\"),S.test(e))return J(t,e)}else if(\"Infinity\"===e||\"NaN\"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(k.test(e))r=16,e=e.toLowerCase();else if(E.test(e))r=2;else{if(!D.test(e))throw Error(v+e);r=8}for((o=e.search(/p/i))>0?(c=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),s=(o=e.indexOf(\".\"))>=0,n=t.constructor,s&&(o=(u=(e=e.replace(\".\",\"\")).length)-o,i=Z(n,new n(r),o,2*o)),o=l=(f=L(e,r,A)).length-1;0===f[o];--o)f.pop();return o<0?new n(0*t.s):(t.e=R(f,l),t.d=f,m=!1,s&&(t=P(t,i,4*u)),c&&(t=t.times(Math.abs(c)<54?x(2,c):a.pow(2,c))),m=!0,t)}function Q(t,e,r,n,i){var o,a,s,u,c=t.precision,f=Math.ceil(c/M);for(m=!1,u=r.times(r),s=new t(n);;){if(a=P(s.times(u),new t(e++*e++),c,1),s=i?n.plus(a):n.minus(a),n=P(a.times(u),new t(e++*e++),c,1),void 0!==(a=s.plus(n)).d[f]){for(o=f;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=n,n=a,a=o}return m=!0,a.d.length=f+1,a}function $(t,e){for(var r=t;--e;)r*=t;return r}function tt(t,e){var r,n=e.s<0,i=U(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return u=n?4:1,e;if((r=e.divToInt(i)).isZero())u=n?3:2;else{if((e=e.minus(r.times(i))).lte(o))return u=q(r)?n?2:3:n?4:1,e;u=q(r)?n?1:4:n?3:2}return e.minus(i).abs()}function et(t,e,r,n){var i,o,a,u,c,h,p,d,m,y=t.constructor,v=void 0!==r;if(v?(B(r,1,f),void 0===n?n=y.rounding:B(n,0,8)):(r=y.precision,n=y.rounding),t.isFinite()){for(v?(i=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):i=e,(a=(p=N(t)).indexOf(\".\"))>=0&&(p=p.replace(\".\",\"\"),(m=new y(1)).e=p.length-a,m.d=L(N(m),10,i),m.e=m.d.length),o=c=(d=L(p,10,i)).length;0==d[--c];)d.pop();if(d[0]){if(a<0?o--:((t=new y(t)).d=d,t.e=o,d=(t=P(t,m,r,n,0,i)).d,o=t.e,h=s),a=d[r],u=i/2,h=h||void 0!==d[r+1],h=n<4?(void 0!==a||h)&&(0===n||n===(t.s<0?3:2)):a>u||a===u&&(4===n||h||6===n&&1&d[r-1]||n===(t.s<0?8:7)),d.length=r,h)for(;++d[--r]>i-1;)d[r]=0,r||(++o,d.unshift(1));for(c=d.length;!d[c-1];--c);for(a=0,p=\"\";a<c;a++)p+=l.charAt(d[a]);if(v){if(c>1)if(16==e||8==e){for(a=16==e?4:3,--c;c%a;c++)p+=\"0\";for(c=(d=L(p,i,e)).length;!d[c-1];--c);for(a=1,p=\"1.\";a<c;a++)p+=l.charAt(d[a])}else p=p.charAt(0)+\".\"+p.slice(1);p=p+(o<0?\"p\":\"p+\")+o}else if(o<0){for(;++o;)p=\"0\"+p;p=\"0.\"+p}else if(++o>c)for(o-=c;o--;)p+=\"0\";else o<c&&(p=p.slice(0,o)+\".\"+p.slice(o))}else p=v?\"0p+0\":\"0\";p=(16==e?\"0x\":2==e?\"0b\":8==e?\"0o\":\"\")+p}else p=V(t);return t.s<0?\"-\"+p:p}function rt(t,e){if(t.length>e)return t.length=e,!0}function nt(t){return new this(t).abs()}function it(t){return new this(t).acos()}function ot(t){return new this(t).acosh()}function at(t,e){return new this(t).plus(e)}function st(t){return new this(t).asin()}function ut(t){return new this(t).asinh()}function ct(t){return new this(t).atan()}function ft(t){return new this(t).atanh()}function lt(t,e){t=new this(t),e=new this(e);var r,n=this.precision,i=this.rounding,o=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?U(this,n,i):new this(0)).s=t.s:!t.d||e.isZero()?(r=U(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,r=this.atan(P(t,e,o,1)),e=U(this,o,1),this.precision=n,this.rounding=i,r=t.s<0?r.minus(e):r.plus(e)):r=this.atan(P(t,e,o,1)):(r=U(this,o,1).times(e.s>0?.25:.75)).s=t.s:r=new this(NaN),r}function ht(t){return new this(t).cbrt()}function pt(t){return j(t=new this(t),t.e+1,2)}function dt(t,e,r){return new this(t).clamp(e,r)}function mt(t){if(!t||\"object\"!==i(t))throw Error(y+\"Object expected\");var e,r,n,o=!0===t.defaults,a=[\"precision\",1,f,\"rounding\",0,8,\"toExpNeg\",-c,0,\"toExpPos\",0,c,\"maxE\",0,c,\"minE\",-c,0,\"modulo\",0,9];for(e=0;e<a.length;e+=3)if(r=a[e],o&&(this[r]=d[r]),void 0!==(n=t[r])){if(!(_(n)===n&&n>=a[e+1]&&n<=a[e+2]))throw Error(v+r+\": \"+n);this[r]=n}if(r=\"crypto\",o&&(this[r]=d[r]),void 0!==(n=t[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(v+r+\": \"+n);if(n){if(\"undefined\"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(b);this[r]=!0}else this[r]=!1}return this}function yt(t){return new this(t).cos()}function vt(t){return new this(t).cosh()}function gt(t,e){return new this(t).div(e)}function bt(t){return new this(t).exp()}function wt(t){return j(t=new this(t),t.e+1,3)}function _t(){var t,e,r=new this(0);for(m=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return m=!0,new this(1/0);r=e}return m=!0,r.sqrt()}function xt(t){return t instanceof a||t&&t.toStringTag===w||!1}function Et(t){return new this(t).ln()}function kt(t,e){return new this(t).log(e)}function Dt(t){return new this(t).log(2)}function St(t){return new this(t).log(10)}function At(){return W(this,arguments,\"lt\")}function Mt(){return W(this,arguments,\"gt\")}function Ot(t,e){return new this(t).mod(e)}function Ct(t,e){return new this(t).mul(e)}function Ft(t,e){return new this(t).pow(e)}function It(t){var e,r,n,i,o=0,a=new this(1),s=[];if(void 0===t?t=this.precision:B(t,1,f),n=Math.ceil(t/M),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(b);for(e=crypto.randomBytes(n*=4);o<n;)(i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(s.push(i%1e7),o+=4);o=n/4}else for(;o<n;)s[o++]=1e7*Math.random()|0;for(n=s[--o],t%=M,n&&t&&(i=x(10,M-t),s[o]=(n/i|0)*i);0===s[o];o--)s.pop();if(o<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=M)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<M&&(r-=M-n)}return a.e=r,a.d=s,a}function Bt(t){return j(t=new this(t),t.e+1,this.rounding)}function Tt(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Lt(t){return new this(t).sin()}function Pt(t){return new this(t).sinh()}function jt(t){return new this(t).sqrt()}function Nt(t,e){return new this(t).sub(e)}function Rt(){var t=0,e=arguments,r=new this(e[t]);for(m=!1;r.s&&++t<e.length;)r=r.plus(e[t]);return m=!0,j(r,this.precision,this.rounding)}function zt(t){return new this(t).tan()}function Ut(t){return new this(t).tanh()}function Gt(t){return j(t=new this(t),t.e+1,1)}a=function t(e){var r,n,o;function a(t){var e,r,n,o=this;if(!(o instanceof a))return new a(t);if(o.constructor=a,xt(t))return o.s=t.s,void(m?!t.d||t.e>a.maxE?(o.e=NaN,o.d=null):t.e<a.minE?(o.e=0,o.d=[0]):(o.e=t.e,o.d=t.d.slice()):(o.e=t.e,o.d=t.d?t.d.slice():t.d));if(\"number\"===(n=i(t))){if(0===t)return o.s=1/t<0?-1:1,o.e=0,void(o.d=[0]);if(t<0?(t=-t,o.s=-1):o.s=1,t===~~t&&t<1e7){for(e=0,r=t;r>=10;r/=10)e++;return void(m?e>a.maxE?(o.e=NaN,o.d=null):e<a.minE?(o.e=0,o.d=[0]):(o.e=e,o.d=[t]):(o.e=e,o.d=[t]))}return 0*t!=0?(t||(o.s=NaN),o.e=NaN,void(o.d=null)):J(o,t.toString())}if(\"string\"!==n)throw Error(v+t);return 45===(r=t.charCodeAt(0))?(t=t.slice(1),o.s=-1):(43===r&&(t=t.slice(1)),o.s=1),S.test(t)?J(o,t):K(o,t)}if(a.prototype=F,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=mt,a.clone=t,a.isDecimal=xt,a.abs=nt,a.acos=it,a.acosh=ot,a.add=at,a.asin=st,a.asinh=ut,a.atan=ct,a.atanh=ft,a.atan2=lt,a.cbrt=ht,a.ceil=pt,a.clamp=dt,a.cos=yt,a.cosh=vt,a.div=gt,a.exp=bt,a.floor=wt,a.hypot=_t,a.ln=Et,a.log=kt,a.log10=St,a.log2=Dt,a.max=At,a.min=Mt,a.mod=Ot,a.mul=Ct,a.pow=Ft,a.random=It,a.round=Bt,a.sign=Tt,a.sin=Lt,a.sinh=Pt,a.sqrt=jt,a.sub=Nt,a.sum=Rt,a.tan=zt,a.tanh=Ut,a.trunc=Gt,void 0===e&&(e={}),e&&!0!==e.defaults)for(o=[\"precision\",\"rounding\",\"toExpNeg\",\"toExpPos\",\"maxE\",\"minE\",\"modulo\",\"crypto\"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return a.config(e),a}(d),a.prototype.constructor=a,a.default=a.Decimal=a,h=new a(h),p=new a(p),void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function t(e,n){\"use strict\";var i,o,a=/(^([+\\-]?(?:0|[1-9]\\d*)(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)?$|^0x[0-9a-f]+$|\\d+)/gi,s=/(^[ ]*|[ ]*$)/g,u=/(^([\\w ]+,?[\\w ]+)?[\\w ]+,?[\\w ]+\\d+:\\d+(:\\d+)?[\\w ]?|^\\d{1,4}[\\/\\-]\\d{1,4}[\\/\\-]\\d{1,4}|^\\w+, \\w+ \\d+, \\d{4})/,c=/^0x[0-9a-f]+$/i,f=/^0/,l=function(e){return t.insensitive&&(\"\"+e).toLowerCase()||\"\"+e},h=l(e).replace(s,\"\")||\"\",p=l(n).replace(s,\"\")||\"\",d=h.replace(a,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),m=p.replace(a,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),y=parseInt(h.match(c),16)||1!==d.length&&h.match(u)&&Date.parse(h),v=parseInt(p.match(c),16)||y&&p.match(u)&&Date.parse(p)||null;if(v){if(y<v)return-1;if(y>v)return 1}for(var g=0,b=Math.max(d.length,m.length);g<b;g++){if(i=!(d[g]||\"\").match(f)&&parseFloat(d[g])||d[g]||0,o=!(m[g]||\"\").match(f)&&parseFloat(m[g])||m[g]||0,isNaN(i)!==isNaN(o))return isNaN(i)?1:-1;if(r(i)!==r(o)&&(i+=\"\",o+=\"\"),i<o)return-1;if(i>o)return 1}return 0}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){\"use strict\";(function(t,n){r.d(e,\"a\",(function(){return W})),r.d(e,\"b\",(function(){return Y})),r.d(e,\"d\",(function(){return V}));var i=r(11),o=r.n(i),a=r(6),s=r.n(a),u=r(31),c=r.n(u),f=r(0),l=r(34),h=r.n(l),p=r(101),d=r.n(p),m=r(32),y=r.n(m),v=r(35),g=r(102),b=r(116),w=r(33),_=r(19),x=r(45),E=r(20);function k(t,e,r){return(e=M(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,M(n.key),n)}}function M(t){var e=function(t,e){if(\"object\"!=B(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=B(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==B(e)?e:e+\"\"}function O(t,e){if(e&&(\"object\"===B(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(C=function(){return!!t})()}function F(t){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},F(t)}function I(t,e){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},I(t,e)}function B(t){return B=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},B(t)}function T(t,e,r){return(e=function(t){var e=function(t,e){if(\"object\"!==B(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!==B(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"===B(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}for(var L=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_\",P=[NaN,NaN],j=2;j<65;j++){var N=h()(h.a.BIN,L.slice(0,j))(new Array(65).join(\"1\"));P.push(N.length)}function R(){}function z(t){return Object.prototype.toString.call(t).toLowerCase().indexOf(\"arraybuffer\")>-1}function U(e){for(var r=t.alloc(e.byteLength),n=new Uint8Array(e),i=0;i<r.length;++i)r[i]=n[i];return r}function G(e,r){Object(g.a)(e,(function(n,i){return n?r(n):\"object\"===B(i)&&t.isBuffer(i)?r(null,i):\"object\"===B(i)&&z(i)?r(null,U(i)):new Error(\"Could not load Buffer from <\".concat(e.url,\">\"))}))}var H,Z={data:null,width:null,height:null},q=function(e){function r(){var e,n,i,a;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,r);for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];n=this,i=F(i=r),T(e=O(n,C()?Reflect.construct(i,a||[],F(n).constructor):i.apply(n,a)),\"bitmap\",Z),T(e,\"_background\",0),T(e,\"_originalMime\",r.MIME_PNG),T(e,\"_exif\",null),T(e,\"_rgba\",!0),T(e,\"writeAsync\",(function(t){return Object(w.a)(e.write,e,t)})),T(e,\"getBase64Async\",(function(t){return Object(w.a)(e.getBase64,e,t)})),T(e,\"getBuffer\",x.a),T(e,\"getBufferAsync\",x.b),T(e,\"getPixelColour\",e.getPixelColor),T(e,\"setPixelColour\",e.setPixelColor);var l,h=e,p=R;function d(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];(n||{}).methodName=\"constructor\",setTimeout((function(){var t;n&&p===R?h.emitError(\"constructor\",n):n||h.emitMulti(\"constructor\",\"initialized\"),(t=p).call.apply(t,[h].concat(e))}),1)}if(z(u[0])&&(u[0]=U(u[0])),\"number\"==typeof u[0]&&\"number\"==typeof u[1]||parseInt(u[0],10)&&parseInt(u[1],10)){var m=parseInt(u[0],10),y=parseInt(u[1],10);if(p=u[2],\"number\"==typeof u[2]&&(e._background=u[2],p=u[3]),\"string\"==typeof u[2]&&(e._background=r.cssColorToHex(u[2]),p=u[3]),void 0===p&&(p=R),\"function\"!=typeof p)return O(e,f.d.call(e,\"cb must be a function\",d));e.bitmap={data:t.alloc(m*y*4),width:m,height:y};for(var v=0;v<e.bitmap.data.length;v+=4)e.bitmap.data.writeUInt32BE(e._background,v);d(null,e)}else if(\"object\"===B(u[0])&&u[0].url){if(\"function\"!=typeof(p=u[1]||R))return O(e,f.d.call(e,\"cb must be a function\",d));G(u[0],(function(t,r){if(t)return f.d.call(e,t,d);e.parseBitmap(r,u[0].url,d)}))}else if(u[0]instanceof r){var g=u[0];if(void 0===(p=u[1])&&(p=R),\"function\"!=typeof p)return O(e,f.d.call(e,\"cb must be a function\",d));e.bitmap={data:t.from(g.bitmap.data),width:g.bitmap.width,height:g.bitmap.height},e._quality=g._quality,e._deflateLevel=g._deflateLevel,e._deflateStrategy=g._deflateStrategy,e._filterType=g._filterType,e._rgba=g._rgba,e._background=g._background,e._originalMime=g._originalMime,d(null,e)}else if((l=u[0])&&\"object\"===B(l)&&\"number\"==typeof l.width&&\"number\"==typeof l.height&&(t.isBuffer(l.data)||l.data instanceof Uint8Array||\"function\"==typeof Uint8ClampedArray&&l.data instanceof Uint8ClampedArray)&&(l.data.length===l.width*l.height*4||l.data.length===l.width*l.height*3)){var b=u[0];p=u[1]||R;var _=b.width*b.height*4===b.data.length?t.from(b.data):function(e){if(e.length%3!=0)throw new Error(\"Buffer length is incorrect\");for(var r=t.allocUnsafe(e.length/3*4),n=0,i=0;i<e.length;i++)r[n]=e[i],(i+1)%3==0&&(r[++n]=255),n++;return r}(b.data);e.bitmap={data:_,width:b.width,height:b.height},d(null,e)}else if(\"string\"==typeof u[0]){var E=u[0];if(void 0===(p=u[1])&&(p=R),\"function\"!=typeof p)return O(e,f.d.call(e,\"cb must be a function\",d));!function(t,e){o.a&&\"function\"==typeof o.a.readFile&&!t.match(/^(http|ftp)s?:\\/\\/./)?o.a.readFile(t,e):G({url:t},e)}(E,(function(t,r){if(t)return f.d.call(e,t,d);e.parseBitmap(r,E,d)}))}else if(\"object\"===B(u[0])&&t.isBuffer(u[0])){var k=u[0];if(\"function\"!=typeof(p=u[1]))return O(e,f.d.call(e,\"cb must be a function\",d));e.parseBitmap(k,null,d)}else{\"function\"!=typeof(p=u[u.length-1])&&\"function\"!=typeof(p=u[u.length-2])&&(p=R);var D=r.__extraConstructors.find((function(t){return t.test.apply(t,u)}));if(!D)return O(e,f.d.call(e,\"No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.\",d));new Promise((function(t,r){var n;(n=D.run).call.apply(n,[e,t,r].concat(u))})).then((function(){return d(null,e)})).catch(d)}return e}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&I(t,e)}(r,e),n=r,i=[{key:\"parseBitmap\",value:function(t,e,r){x.c.call(this,t,null,r)}},{key:\"rgba\",value:function(t,e){return\"boolean\"!=typeof t?f.d.call(this,\"bool must be a boolean, true for RGBA or false for RGB\",e):(this._rgba=t,Object(f.a)(e)&&e.call(this,null,this),this)}},{key:\"emitMulti\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=Object.assign(r,{methodName:t,eventName:e}),this.emit(\"any\",r),t&&this.emit(t,r),this.emit(e,r)}},{key:\"emitError\",value:function(t,e){this.emitMulti(t,\"error\",e)}},{key:\"getHeight\",value:function(){return this.bitmap.height}},{key:\"getWidth\",value:function(){return this.bitmap.width}},{key:\"inspect\",value:function(){return\"<Jimp \"+(this.bitmap===Z?\"pending...\":this.bitmap.width+\"x\"+this.bitmap.height)+\">\"}},{key:\"toString\",value:function(){return\"[object Jimp]\"}},{key:\"getMIME\",value:function(){return this._originalMime||r.MIME_PNG}},{key:\"getExtension\",value:function(){var t=this.getMIME();return _.b(t)}},{key:\"write\",value:function(t,e){var r=this;if(!o.a||!o.a.createWriteStream)throw new Error(\"Cant access the filesystem. You can use the getBase64 method.\");if(\"string\"!=typeof t)return f.d.call(this,\"path must be a string\",e);if(void 0===e&&(e=R),\"function\"!=typeof e)return f.d.call(this,\"cb must be a function\",e);var n=_.c(t)||this.getMIME(),i=s.a.parse(t);return i.dir&&o.a.mkdirSync(i.dir,{recursive:!0}),this.getBuffer(n,(function(n,i){if(n)return f.d.call(r,n,e);var a=o.a.createWriteStream(t);a.on(\"open\",(function(){a.write(i),a.end()})).on(\"error\",(function(t){return f.d.call(r,t,e)})),a.on(\"finish\",(function(){e.call(r,null,r)}))})),this}},{key:\"getBase64\",value:function(t,e){return t===r.AUTO&&(t=this.getMIME()),\"string\"!=typeof t?f.d.call(this,\"mime must be a string\",e):\"function\"!=typeof e?f.d.call(this,\"cb must be a function\",e):(this.getBuffer(t,(function(r,n){if(r)return f.d.call(this,r,e);var i=\"data:\"+t+\";base64,\"+n.toString(\"base64\");e.call(this,null,i)})),this)}},{key:\"hash\",value:function(t,e){if(\"function\"==typeof(t=t||64)&&(e=t,t=64),\"number\"!=typeof t)return f.d.call(this,\"base must be a number\",e);if(t<2||t>64)return f.d.call(this,\"base must be a number between 2 and 64\",e);var r=this.pHash();for(r=h()(h.a.BIN,L.slice(0,t))(r);r.length<P[t];)r=\"0\"+r;return Object(f.a)(e)&&e.call(this,null,r),r}},{key:\"pHash\",value:function(){var t=new v.a;return t.getHash(this)}},{key:\"distanceFromHash\",value:function(t){var e=new v.a,r=e.getHash(this);return e.distance(r,t)}},{key:\"getPixelIndex\",value:function(t,e,n,i){var o,a;if(\"function\"==typeof n&&void 0===i&&(i=n,n=null),n||(n=r.EDGE_EXTEND),\"number\"!=typeof t||\"number\"!=typeof e)return f.d.call(this,\"x and y must be numbers\",i);o=t=Math.round(t),a=e=Math.round(e),n===r.EDGE_EXTEND&&(t<0&&(o=0),t>=this.bitmap.width&&(o=this.bitmap.width-1),e<0&&(a=0),e>=this.bitmap.height&&(a=this.bitmap.height-1)),n===r.EDGE_WRAP&&(t<0&&(o=this.bitmap.width+t),t>=this.bitmap.width&&(o=t%this.bitmap.width),e<0&&(a=this.bitmap.height+e),e>=this.bitmap.height&&(a=e%this.bitmap.height));var s=this.bitmap.width*a+o<<2;return(o<0||o>=this.bitmap.width)&&(s=-1),(a<0||a>=this.bitmap.height)&&(s=-1),Object(f.a)(i)&&i.call(this,null,s),s}},{key:\"getPixelColor\",value:function(t,e,r){if(\"number\"!=typeof t||\"number\"!=typeof e)return f.d.call(this,\"x and y must be numbers\",r);var n=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(n);return Object(f.a)(r)&&r.call(this,null,i),i}},{key:\"setPixelColor\",value:function(t,e,r,n){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof r)return f.d.call(this,\"hex, x and y must be numbers\",n);var i=this.getPixelIndex(e,r);return this.bitmap.data.writeUInt32BE(t,i),Object(f.a)(n)&&n.call(this,null,this),this}},{key:\"hasAlpha\",value:function(){for(var t=this.bitmap,e=t.width,r=t.height,n=t.data,i=e*r<<2,o=3;o<i;o+=4)if(255!==n[o])return!0;return!1}},{key:\"scanIterator\",value:function(t,e,r,n){return\"number\"!=typeof t||\"number\"!=typeof e?f.d.call(this,\"x and y must be numbers\"):\"number\"!=typeof r||\"number\"!=typeof n?f.d.call(this,\"w and h must be numbers\"):Object(f.c)(this,t,e,r,n)}}],i&&A(n.prototype,i),a&&A(n,a),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,i,a}(c.a);function W(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;Object.entries(t).forEach((function(t){var r=D(t,2),n=r[0],i=r[1];e[n]=i}))}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;Object.entries(t).forEach((function(t){var r=D(t,2),n=r[0],i=r[1];e.prototype[n]=i}))}function X(t,e,r){var n=\"before-\"+e,i=e.replace(/e$/,\"\")+\"ed\";q.prototype[t]=function(){for(var e,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var u,c=a[r.length-1],f=this;\"function\"==typeof c?(e=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=r[0],a=r[1];o?f.emitError(t,o):f.emitMulti(t,i,k({},t,a)),c.apply(this,r)},a[a.length-1]=e):e=!1,this.emitMulti(t,n);try{u=r.apply(this,a),e||this.emitMulti(t,i,k({},t,u))}catch(e){e.methodName=t,this.emitError(t,e)}return u},q.prototype[t+\"Quiet\"]=r}function V(t,e){X(t,\"change\",e)}(W(E),Y({composite:b.a}),q.__extraConstructors=[],q.appendConstructorOption=function(t,e,r){q.__extraConstructors.push({name:t,test:e,run:r})},q.read=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return new Promise((function(t,r){!function(t,e,r){if(C())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));r&&I(i,r.prototype)}(q,e.concat([function(e,n){e?r(e):t(n)}]))}))},q.create=q.read,q.rgbaToInt=function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof r||\"number\"!=typeof n)return f.d.call(this,\"r, g, b and a must be numbers\",i);if(t<0||t>255)return f.d.call(this,\"r must be between 0 and 255\",i);if((e<0||e>255)&&f.d.call(this,\"g must be between 0 and 255\",i),r<0||r>255)return f.d.call(this,\"b must be between 0 and 255\",i);if(n<0||n>255)return f.d.call(this,\"a must be between 0 and 255\",i);var o=255&t;return o<<=8,o|=255&e,o<<=8,o|=255&r,o<<=8,o|=255&n,o>>>=0,Object(f.a)(i)&&i.call(this,null,o),o},q.intToRGBA=function(t,e){if(\"number\"!=typeof t)return f.d.call(this,\"i must be a number\",e);var r={};return r.r=Math.floor(t/Math.pow(256,3)),r.g=Math.floor((t-r.r*Math.pow(256,3))/Math.pow(256,2)),r.b=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2))/Math.pow(256,1)),r.a=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2)-r.b*Math.pow(256,1))/Math.pow(256,0)),Object(f.a)(e)&&e.call(this,null,r),r},q.cssColorToHex=function(t){return\"number\"==typeof(t=t||0)?Number(t):parseInt(y()(t).toHex8(),16)},q.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},q.diff=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof q&&e instanceof q))return f.d.call(this,\"img1 and img2 must be an Jimp images\");var n=t.bitmap,i=e.bitmap;if(n.width===i.width&&n.height===i.height||(n.width*n.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(n.width,n.height)),\"number\"!=typeof r||r<0||r>1)return f.d.call(this,\"threshold must be a number between 0 and 1\");var o=new q(n.width,n.height,4294967295);return{percent:d()(n.data,i.data,o.bitmap.data,o.bitmap.width,o.bitmap.height,{threshold:r})/(o.bitmap.width*o.bitmap.height),image:o}},q.distance=function(t,e){var r=new v.a,n=r.getHash(t),i=r.getHash(e);return r.distance(n,i)},q.compareHashes=function(t,e){return(new v.a).distance(t,e)},q.colorDiff=function(t,e){var r=function(t){return Math.pow(t,2)},n=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(n(r(t.r-e.r),r(t.r-e.r-t.a+e.a))+n(r(t.g-e.g),r(t.g-e.g-t.a+e.a))+n(r(t.b-e.b),r(t.b-e.b-t.a+e.a)))/195075},X(\"clone\",\"clone\",(function(t){var e=new q(this);return Object(f.a)(t)&&t.call(e,null,e),e})),V(\"background\",(function(t,e){return\"number\"!=typeof t?f.d.call(this,\"hex must be a hexadecimal rgba value\",e):(this._background=t,Object(f.a)(e)&&e.call(this,null,this),this)})),V(\"scan\",(function(t,e,r,n,i,o){if(\"number\"!=typeof t||\"number\"!=typeof e)return f.d.call(this,\"x and y must be numbers\",o);if(\"number\"!=typeof r||\"number\"!=typeof n)return f.d.call(this,\"w and h must be numbers\",o);if(\"function\"!=typeof i)return f.d.call(this,\"f must be a function\",o);var a=Object(f.b)(this,t,e,r,n,i);return Object(f.a)(o)&&o.call(this,null,a),a})),\"BROWSER\"===n.env.ENVIRONMENT)&&(\"undefined\"!=typeof window&&\"object\"===(\"undefined\"==typeof window?\"undefined\":B(window))&&(H=window),\"undefined\"!=typeof self&&\"object\"===(\"undefined\"==typeof self?\"undefined\":B(self))&&(H=self),H.Jimp=q,H.Buffer=t);e.c=q}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=r(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return n.EndOfStreamError}});var i=r(127);Object.defineProperty(e,\"StreamReader\",{enumerable:!0,get:function(){return i.StreamReader}})},function(t,e,r){(function(t){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):\"[object Array]\"===n(t)},e.isBoolean=function(t){return\"boolean\"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return\"number\"==typeof t},e.isString=function(t){return\"string\"==typeof t},e.isSymbol=function(t){return\"symbol\"===r(t)},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return\"[object RegExp]\"===n(t)},e.isObject=function(t){return\"object\"===r(t)&&null!==t},e.isDate=function(t){return\"[object Date]\"===n(t)},e.isError=function(t){return\"[object Error]\"===n(t)||t instanceof Error},e.isFunction=function(t){return\"function\"==typeof t},e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===r(t)||void 0===t},e.isBuffer=t.isBuffer}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(2).Buffer,i=r(38).Transform,o=r(159),a=r(14),s=r(53).ok,u=r(2).kMaxLength,c=\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(o),l=0;l<f.length;l++){var h=f[l];h.match(/^Z/)&&Object.defineProperty(e,h,{enumerable:!0,value:o[h],writable:!1})}for(var p={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},d=Object.keys(p),m=0;m<d.length;m++){var y=d[m];p[p[y]]=y}function v(t,e,r){var i=[],o=0;function a(){for(var e;null!==(e=t.read());)i.push(e),o+=e.length;t.once(\"readable\",a)}function s(){var e,a=null;o>=u?a=new RangeError(c):e=n.concat(i,o),i=[],t.close(),r(a,e)}t.on(\"error\",(function(e){t.removeListener(\"end\",s),t.removeListener(\"readable\",a),r(e)})),t.on(\"end\",s),t.end(e),a()}function g(t,e){if(\"string\"==typeof e&&(e=n.from(e)),!n.isBuffer(e))throw new TypeError(\"Not a string or buffer\");var r=t._finishFlushFlag;return t._processChunk(e,r)}function b(t){if(!(this instanceof b))return new b(t);A.call(this,t,o.DEFLATE)}function w(t){if(!(this instanceof w))return new w(t);A.call(this,t,o.INFLATE)}function _(t){if(!(this instanceof _))return new _(t);A.call(this,t,o.GZIP)}function x(t){if(!(this instanceof x))return new x(t);A.call(this,t,o.GUNZIP)}function E(t){if(!(this instanceof E))return new E(t);A.call(this,t,o.DEFLATERAW)}function k(t){if(!(this instanceof k))return new k(t);A.call(this,t,o.INFLATERAW)}function D(t){if(!(this instanceof D))return new D(t);A.call(this,t,o.UNZIP)}function S(t){return t===o.Z_NO_FLUSH||t===o.Z_PARTIAL_FLUSH||t===o.Z_SYNC_FLUSH||t===o.Z_FULL_FLUSH||t===o.Z_FINISH||t===o.Z_BLOCK}function A(t,r){var a=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,i.call(this,t),t.flush&&!S(t.flush))throw new Error(\"Invalid flush flag: \"+t.flush);if(t.finishFlush&&!S(t.finishFlush))throw new Error(\"Invalid flush flag: \"+t.finishFlush);if(this._flushFlag=t.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:o.Z_FINISH,t.chunkSize&&(t.chunkSize<e.Z_MIN_CHUNK||t.chunkSize>e.Z_MAX_CHUNK))throw new Error(\"Invalid chunk size: \"+t.chunkSize);if(t.windowBits&&(t.windowBits<e.Z_MIN_WINDOWBITS||t.windowBits>e.Z_MAX_WINDOWBITS))throw new Error(\"Invalid windowBits: \"+t.windowBits);if(t.level&&(t.level<e.Z_MIN_LEVEL||t.level>e.Z_MAX_LEVEL))throw new Error(\"Invalid compression level: \"+t.level);if(t.memLevel&&(t.memLevel<e.Z_MIN_MEMLEVEL||t.memLevel>e.Z_MAX_MEMLEVEL))throw new Error(\"Invalid memLevel: \"+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error(\"Invalid strategy: \"+t.strategy);if(t.dictionary&&!n.isBuffer(t.dictionary))throw new Error(\"Invalid dictionary: it should be a Buffer instance\");this._handle=new o.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(t,r){M(s),s._hadError=!0;var n=new Error(t);n.errno=r,n.code=e.codes[r],s.emit(\"error\",n)};var u=e.Z_DEFAULT_COMPRESSION;\"number\"==typeof t.level&&(u=t.level);var c=e.Z_DEFAULT_STRATEGY;\"number\"==typeof t.strategy&&(c=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,u,t.memLevel||e.Z_DEFAULT_MEMLEVEL,c,t.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=c,this.once(\"end\",this.close),Object.defineProperty(this,\"_closed\",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function M(e,r){r&&t.nextTick(r),e._handle&&(e._handle.close(),e._handle=null)}function O(t){t.emit(\"close\")}Object.defineProperty(e,\"codes\",{enumerable:!0,value:Object.freeze(p),writable:!1}),e.Deflate=b,e.Inflate=w,e.Gzip=_,e.Gunzip=x,e.DeflateRaw=E,e.InflateRaw=k,e.Unzip=D,e.createDeflate=function(t){return new b(t)},e.createInflate=function(t){return new w(t)},e.createDeflateRaw=function(t){return new E(t)},e.createInflateRaw=function(t){return new k(t)},e.createGzip=function(t){return new _(t)},e.createGunzip=function(t){return new x(t)},e.createUnzip=function(t){return new D(t)},e.deflate=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),v(new b(e),t,r)},e.deflateSync=function(t,e){return g(new b(e),t)},e.gzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),v(new _(e),t,r)},e.gzipSync=function(t,e){return g(new _(e),t)},e.deflateRaw=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),v(new E(e),t,r)},e.deflateRawSync=function(t,e){return g(new E(e),t)},e.unzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),v(new D(e),t,r)},e.unzipSync=function(t,e){return g(new D(e),t)},e.inflate=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),v(new w(e),t,r)},e.inflateSync=function(t,e){return g(new w(e),t)},e.gunzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),v(new x(e),t,r)},e.gunzipSync=function(t,e){return g(new x(e),t)},e.inflateRaw=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),v(new k(e),t,r)},e.inflateRawSync=function(t,e){return g(new k(e),t)},a.inherits(A,i),A.prototype.params=function(r,n,i){if(r<e.Z_MIN_LEVEL||r>e.Z_MAX_LEVEL)throw new RangeError(\"Invalid compression level: \"+r);if(n!=e.Z_FILTERED&&n!=e.Z_HUFFMAN_ONLY&&n!=e.Z_RLE&&n!=e.Z_FIXED&&n!=e.Z_DEFAULT_STRATEGY)throw new TypeError(\"Invalid strategy: \"+n);if(this._level!==r||this._strategy!==n){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(a._handle,\"zlib binding closed\"),a._handle.params(r,n),a._hadError||(a._level=r,a._strategy=n,i&&i())}))}else t.nextTick(i)},A.prototype.reset=function(){return s(this._handle,\"zlib binding closed\"),this._handle.reset()},A.prototype._flush=function(t){this._transform(n.alloc(0),\"\",t)},A.prototype.flush=function(e,r){var i=this,a=this._writableState;(\"function\"==typeof e||void 0===e&&!r)&&(r=e,e=o.Z_FULL_FLUSH),a.ended?r&&t.nextTick(r):a.ending?r&&this.once(\"end\",r):a.needDrain?r&&this.once(\"drain\",(function(){return i.flush(e,r)})):(this._flushFlag=e,this.write(n.alloc(0),\"\",r))},A.prototype.close=function(e){M(this,e),t.nextTick(O,this)},A.prototype._transform=function(t,e,r){var i,a=this._writableState,s=(a.ending||a.ended)&&(!t||a.length===t.length);return null===t||n.isBuffer(t)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,t.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(t,i,r)):r(new Error(\"zlib binding closed\")):r(new Error(\"invalid input\"))},A.prototype._processChunk=function(t,e,r){var i=t&&t.length,o=this._chunkSize-this._offset,a=0,f=this,l=\"function\"==typeof r;if(!l){var h,p=[],d=0;this.on(\"error\",(function(t){h=t})),s(this._handle,\"zlib binding closed\");do{var m=this._handle.writeSync(e,t,a,i,this._buffer,this._offset,o)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw h;if(d>=u)throw M(this),new RangeError(c);var y=n.concat(p,d);return M(this),y}s(this._handle,\"zlib binding closed\");var v=this._handle.write(e,t,a,i,this._buffer,this._offset,o);function g(u,c){if(this&&(this.buffer=null,this.callback=null),!f._hadError){var h=o-c;if(s(h>=0,\"have should not go down\"),h>0){var m=f._buffer.slice(f._offset,f._offset+h);f._offset+=h,l?f.push(m):(p.push(m),d+=m.length)}if((0===c||f._offset>=f._chunkSize)&&(o=f._chunkSize,f._offset=0,f._buffer=n.allocUnsafe(f._chunkSize)),0===c){if(a+=i-u,i=u,!l)return!0;var y=f._handle.write(e,t,a,i,f._buffer,f._offset,f._chunkSize);return y.callback=g,void(y.buffer=t)}if(!l)return!1;r()}}v.buffer=t,v.callback=g},a.inherits(b,A),a.inherits(w,A),a.inherits(_,A),a.inherits(x,A),a.inherits(E,A),a.inherits(k,A),a.inherits(D,A)}).call(this,r(7))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i,o=r(165),a=r(166),s=r(167),u=r(168),c=r(77),f=r(40),l=r(169),h=Function,p=function(t){try{return h('\"use strict\"; return ('+t+\").constructor;\")()}catch(t){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},\"\")}catch(t){d=null}var m=function(){throw new f},y=d?function(){try{return m}catch(t){try{return d(arguments,\"callee\").get}catch(t){return m}}}():m,v=r(170)(),g=r(171)(),b=Object.getPrototypeOf||(g?function(t){return t.__proto__}:null),w={},_=\"undefined\"!=typeof Uint8Array&&b?b(Uint8Array):i,x={__proto__:null,\"%AggregateError%\":\"undefined\"==typeof AggregateError?i:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":\"undefined\"==typeof ArrayBuffer?i:ArrayBuffer,\"%ArrayIteratorPrototype%\":v&&b?b([][Symbol.iterator]()):i,\"%AsyncFromSyncIteratorPrototype%\":i,\"%AsyncFunction%\":w,\"%AsyncGenerator%\":w,\"%AsyncGeneratorFunction%\":w,\"%AsyncIteratorPrototype%\":w,\"%Atomics%\":\"undefined\"==typeof Atomics?i:Atomics,\"%BigInt%\":\"undefined\"==typeof BigInt?i:BigInt,\"%BigInt64Array%\":\"undefined\"==typeof BigInt64Array?i:BigInt64Array,\"%BigUint64Array%\":\"undefined\"==typeof BigUint64Array?i:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":\"undefined\"==typeof DataView?i:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":o,\"%eval%\":eval,\"%EvalError%\":a,\"%Float32Array%\":\"undefined\"==typeof Float32Array?i:Float32Array,\"%Float64Array%\":\"undefined\"==typeof Float64Array?i:Float64Array,\"%FinalizationRegistry%\":\"undefined\"==typeof FinalizationRegistry?i:FinalizationRegistry,\"%Function%\":h,\"%GeneratorFunction%\":w,\"%Int8Array%\":\"undefined\"==typeof Int8Array?i:Int8Array,\"%Int16Array%\":\"undefined\"==typeof Int16Array?i:Int16Array,\"%Int32Array%\":\"undefined\"==typeof Int32Array?i:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":v&&b?b(b([][Symbol.iterator]())):i,\"%JSON%\":\"object\"===(\"undefined\"==typeof JSON?\"undefined\":n(JSON))?JSON:i,\"%Map%\":\"undefined\"==typeof Map?i:Map,\"%MapIteratorPrototype%\":\"undefined\"!=typeof Map&&v&&b?b((new Map)[Symbol.iterator]()):i,\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":Object,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":\"undefined\"==typeof Promise?i:Promise,\"%Proxy%\":\"undefined\"==typeof Proxy?i:Proxy,\"%RangeError%\":s,\"%ReferenceError%\":u,\"%Reflect%\":\"undefined\"==typeof Reflect?i:Reflect,\"%RegExp%\":RegExp,\"%Set%\":\"undefined\"==typeof Set?i:Set,\"%SetIteratorPrototype%\":\"undefined\"!=typeof Set&&v&&b?b((new Set)[Symbol.iterator]()):i,\"%SharedArrayBuffer%\":\"undefined\"==typeof SharedArrayBuffer?i:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":v&&b?b(\"\"[Symbol.iterator]()):i,\"%Symbol%\":v?Symbol:i,\"%SyntaxError%\":c,\"%ThrowTypeError%\":y,\"%TypedArray%\":_,\"%TypeError%\":f,\"%Uint8Array%\":\"undefined\"==typeof Uint8Array?i:Uint8Array,\"%Uint8ClampedArray%\":\"undefined\"==typeof Uint8ClampedArray?i:Uint8ClampedArray,\"%Uint16Array%\":\"undefined\"==typeof Uint16Array?i:Uint16Array,\"%Uint32Array%\":\"undefined\"==typeof Uint32Array?i:Uint32Array,\"%URIError%\":l,\"%WeakMap%\":\"undefined\"==typeof WeakMap?i:WeakMap,\"%WeakRef%\":\"undefined\"==typeof WeakRef?i:WeakRef,\"%WeakSet%\":\"undefined\"==typeof WeakSet?i:WeakSet};if(b)try{null.error}catch(t){var E=b(b(t));x[\"%Error.prototype%\"]=E}var k=function t(e){var r;if(\"%AsyncFunction%\"===e)r=p(\"async function () {}\");else if(\"%GeneratorFunction%\"===e)r=p(\"function* () {}\");else if(\"%AsyncGeneratorFunction%\"===e)r=p(\"async function* () {}\");else if(\"%AsyncGenerator%\"===e){var n=t(\"%AsyncGeneratorFunction%\");n&&(r=n.prototype)}else if(\"%AsyncIteratorPrototype%\"===e){var i=t(\"%AsyncGenerator%\");i&&b&&(r=b(i.prototype))}return x[e]=r,r},D={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},S=r(54),A=r(173),M=S.call(Function.call,Array.prototype.concat),O=S.call(Function.apply,Array.prototype.splice),C=S.call(Function.call,String.prototype.replace),F=S.call(Function.call,String.prototype.slice),I=S.call(Function.call,RegExp.prototype.exec),B=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,T=/\\\\(\\\\)?/g,L=function(t,e){var r,n=t;if(A(D,n)&&(n=\"%\"+(r=D[n])[0]+\"%\"),A(x,n)){var i=x[n];if(i===w&&(i=k(n)),void 0===i&&!e)throw new f(\"intrinsic \"+t+\" exists, but is not available. Please file an issue!\");return{alias:r,name:n,value:i}}throw new c(\"intrinsic \"+t+\" does not exist!\")};t.exports=function(t,e){if(\"string\"!=typeof t||0===t.length)throw new f(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&\"boolean\"!=typeof e)throw new f('\"allowMissing\" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,t))throw new c(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var r=function(t){var e=F(t,0,1),r=F(t,-1);if(\"%\"===e&&\"%\"!==r)throw new c(\"invalid intrinsic syntax, expected closing `%`\");if(\"%\"===r&&\"%\"!==e)throw new c(\"invalid intrinsic syntax, expected opening `%`\");var n=[];return C(t,B,(function(t,e,r,i){n[n.length]=r?C(i,T,\"$1\"):e||t})),n}(t),n=r.length>0?r[0]:\"\",i=L(\"%\"+n+\"%\",e),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],O(r,M([0,1],u)));for(var l=1,h=!0;l<r.length;l+=1){var p=r[l],m=F(p,0,1),y=F(p,-1);if(('\"'===m||\"'\"===m||\"`\"===m||'\"'===y||\"'\"===y||\"`\"===y)&&m!==y)throw new c(\"property names with quotes must have matching quotes\");if(\"constructor\"!==p&&h||(s=!0),A(x,o=\"%\"+(n+=\".\"+p)+\"%\"))a=x[o];else if(null!=a){if(!(p in a)){if(!e)throw new f(\"base intrinsic for \"+t+\" exists, but the property is not available.\");return}if(d&&l+1>=r.length){var v=d(a,p);a=(h=!!v)&&\"get\"in v&&!(\"originalValue\"in v.get)?v.get:a[p]}else h=A(a,p),a=a[p];h&&!s&&(x[o]=a)}}return a}},function(t,e,r){\"use strict\";t.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i,o=\"object\"===(\"undefined\"==typeof Reflect?\"undefined\":n(Reflect))?Reflect:null,a=o&&\"function\"==typeof o.apply?o.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};i=o&&\"function\"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}t.exports=u,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){\"function\"==typeof t.removeListener&&t.removeListener(\"error\",i),r([].slice.call(arguments))}g(t,e,o,{once:!0}),\"error\"!==e&&function(t,e,r){\"function\"==typeof t.on&&g(t,\"error\",e,r)}(t,i,{once:!0})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function f(t){if(\"function\"!=typeof t)throw new TypeError('The \"listener\" argument must be of type Function. Received type '+n(t))}function l(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var i,o,a;if(f(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit(\"newListener\",e,r.listener?r.listener:r),o=t._events),a=o[e]),void 0===a)a=o[e]=r,++t._eventsCount;else if(\"function\"==typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(t))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error(\"Possible EventEmitter memory leak detected. \"+a.length+\" \"+String(e)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");s.name=\"MaxListenersExceededWarning\",s.emitter=t,s.type=e,s.count=a.length,console&&console.warn}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=p.bind(n);return i.listener=r,n.wrapFn=i,i}function m(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:\"function\"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):v(i,i.length)}function y(t){var e=this._events;if(void 0!==e){var r=e[t];if(\"function\"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function g(t,e,r,i){if(\"function\"==typeof t.on)i.once?t.once(e,r):t.on(e,r);else{if(\"function\"!=typeof t.addEventListener)throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type '+n(t));t.addEventListener(e,(function n(o){i.once&&t.removeEventListener(e,n),r(o)}))}}Object.defineProperty(u,\"defaultMaxListeners\",{enumerable:!0,get:function(){return c},set:function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+t+\".\");c=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+t+\".\");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return l(this)},u.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n=\"error\"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var s=new Error(\"Unhandled error.\"+(o?\" (\"+o.message+\")\":\"\"));throw s.context=o,s}var u=i[t];if(void 0===u)return!1;if(\"function\"==typeof u)a(u,this,e);else{var c=u.length,f=v(u,c);for(r=0;r<c;++r)a(f[r],this,e)}return!0},u.prototype.addListener=function(t,e){return h(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return h(this,t,e,!0)},u.prototype.once=function(t,e){return f(e),this.on(t,d(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){return f(e),this.prependListener(t,d(this,t,e)),this},u.prototype.removeListener=function(t,e){var r,n,i,o,a;if(f(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit(\"removeListener\",t,r.listener||e));else if(\"function\"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit(\"removeListener\",t,a||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)\"removeListener\"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(\"function\"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return m(this,t,!0)},u.prototype.rawListeners=function(t){return m(this,t,!1)},u.listenerCount=function(t,e){return\"function\"==typeof t.listenerCount?t.listenerCount(e):y.call(t,e)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(t,e,r){var n,i,o;function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}o=function(){\"use strict\";function t(e){return t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t(e)}var e=/^\\s+/,r=/\\s+$/;function n(i,o){if(o=o||{},(i=i||\"\")instanceof n)return i;if(!(this instanceof n))return new n(i,o);var a=function(n){var i,o,a,s={r:0,g:0,b:0},u=1,c=null,f=null,l=null,h=!1,p=!1;return\"string\"==typeof n&&(n=function(t){t=t.replace(e,\"\").replace(r,\"\").toLowerCase();var n,i=!1;if(w[t])t=w[t],i=!0;else if(\"transparent\"==t)return{r:0,g:0,b:0,a:0,format:\"name\"};return(n=B.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=B.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=B.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=B.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=B.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=B.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=B.hex8.exec(t))?{r:D(n[1]),g:D(n[2]),b:D(n[3]),a:O(n[4]),format:i?\"name\":\"hex8\"}:(n=B.hex6.exec(t))?{r:D(n[1]),g:D(n[2]),b:D(n[3]),format:i?\"name\":\"hex\"}:(n=B.hex4.exec(t))?{r:D(n[1]+\"\"+n[1]),g:D(n[2]+\"\"+n[2]),b:D(n[3]+\"\"+n[3]),a:O(n[4]+\"\"+n[4]),format:i?\"name\":\"hex8\"}:!!(n=B.hex3.exec(t))&&{r:D(n[1]+\"\"+n[1]),g:D(n[2]+\"\"+n[2]),b:D(n[3]+\"\"+n[3]),format:i?\"name\":\"hex\"}}(n)),\"object\"==t(n)&&(T(n.r)&&T(n.g)&&T(n.b)?(i=n.r,o=n.g,a=n.b,s={r:255*E(i,255),g:255*E(o,255),b:255*E(a,255)},h=!0,p=\"%\"===String(n.r).substr(-1)?\"prgb\":\"rgb\"):T(n.h)&&T(n.s)&&T(n.v)?(c=A(n.s),f=A(n.v),s=function(t,e,r){t=6*E(t,360),e=E(e,100),r=E(r,100);var n=Math.floor(t),i=t-n,o=r*(1-e),a=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6,c=[r,a,o,o,s,r][u],f=[s,r,r,a,o,o][u],l=[o,o,s,r,r,a][u];return{r:255*c,g:255*f,b:255*l}}(n.h,c,f),h=!0,p=\"hsv\"):T(n.h)&&T(n.s)&&T(n.l)&&(c=A(n.s),l=A(n.l),s=function(t,e,r){var n,i,o;function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=E(t,360),e=E(e,100),r=E(r,100),0===e)n=i=o=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*o}}(n.h,c,l),h=!0,p=\"hsl\"),n.hasOwnProperty(\"a\")&&(u=n.a)),u=x(u),{ok:h,format:n.format||p,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:u}}(i);this._originalInput=i,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=o.format||a.format,this._gradientType=o.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}function i(t,e,r){t=E(t,255),e=E(e,255),r=E(r,255);var n,i,o=Math.max(t,e,r),a=Math.min(t,e,r),s=(o+a)/2;if(o==a)n=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:s}}function o(t,e,r){t=E(t,255),e=E(e,255),r=E(r,255);var n,i,o=Math.max(t,e,r),a=Math.min(t,e,r),s=o,u=o-a;if(i=0===o?0:u/o,o==a)n=0;else{switch(o){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:s}}function a(t,e,r,n){var i=[S(Math.round(t).toString(16)),S(Math.round(e).toString(16)),S(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function s(t,e,r,n){return[S(M(n)),S(Math.round(t).toString(16)),S(Math.round(e).toString(16)),S(Math.round(r).toString(16))].join(\"\")}function u(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s-=e/100,r.s=k(r.s),n(r)}function c(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s+=e/100,r.s=k(r.s),n(r)}function f(t){return n(t).desaturate(100)}function l(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l+=e/100,r.l=k(r.l),n(r)}function h(t,e){e=0===e?0:e||10;var r=n(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),n(r)}function p(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l-=e/100,r.l=k(r.l),n(r)}function d(t,e){var r=n(t).toHsl(),i=(r.h+e)%360;return r.h=i<0?360+i:i,n(r)}function m(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function y(t,e){if(isNaN(e)||e<=0)throw new Error(\"Argument to polyad must be a positive number\");for(var r=n(t).toHsl(),i=[n(t)],o=360/e,a=1;a<e;a++)i.push(n({h:(r.h+a*o)%360,s:r.s,l:r.l}));return i}function v(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+72)%360,s:e.s,l:e.l}),n({h:(r+216)%360,s:e.s,l:e.l})]}function g(t,e,r){e=e||6,r=r||30;var i=n(t).toHsl(),o=360/r,a=[n(t)];for(i.h=(i.h-(o*e>>1)+720)%360;--e;)i.h=(i.h+o)%360,a.push(n(i));return a}function b(t,e){e=e||6;for(var r=n(t).toHsv(),i=r.h,o=r.s,a=r.v,s=[],u=1/e;e--;)s.push(n({h:i,s:o,v:a})),a=(a+u)%1;return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=x(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=o(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?\"hsv(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsva(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?\"hsl(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsla(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHex:function(t){return a(this._r,this._g,this._b,t)},toHexString:function(t){return\"#\"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[S(Math.round(t).toString(16)),S(Math.round(e).toString(16)),S(Math.round(r).toString(16)),S(M(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join(\"\")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return\"#\"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\")\":\"rgba(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:Math.round(100*E(this._r,255))+\"%\",g:Math.round(100*E(this._g,255))+\"%\",b:Math.round(100*E(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(100*E(this._r,255))+\"%, \"+Math.round(100*E(this._g,255))+\"%, \"+Math.round(100*E(this._b,255))+\"%)\":\"rgba(\"+Math.round(100*E(this._r,255))+\"%, \"+Math.round(100*E(this._g,255))+\"%, \"+Math.round(100*E(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&(_[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=\"#\"+s(this._r,this._g,this._b,this._a),r=e,i=this._gradientType?\"GradientType = 1, \":\"\";if(t){var o=n(t);r=\"#\"+s(o._r,o._g,o._b,o._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+i+\"startColorstr=\"+e+\",endColorstr=\"+r+\")\"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||\"hex\"!==t&&\"hex6\"!==t&&\"hex3\"!==t&&\"hex4\"!==t&&\"hex8\"!==t&&\"name\"!==t?(\"rgb\"===t&&(r=this.toRgbString()),\"prgb\"===t&&(r=this.toPercentageRgbString()),\"hex\"!==t&&\"hex6\"!==t||(r=this.toHexString()),\"hex3\"===t&&(r=this.toHexString(!0)),\"hex4\"===t&&(r=this.toHex8String(!0)),\"hex8\"===t&&(r=this.toHex8String()),\"name\"===t&&(r=this.toName()),\"hsl\"===t&&(r=this.toHslString()),\"hsv\"===t&&(r=this.toHsvString()),r||this.toHexString()):\"name\"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(g,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(v,arguments)},triad:function(){return this._applyCombination(y,[3])},tetrad:function(){return this._applyCombination(y,[4])}},n.fromRatio=function(e,r){if(\"object\"==t(e)){var i={};for(var o in e)e.hasOwnProperty(o)&&(i[o]=\"a\"===o?e[o]:A(e[o]));e=i}return n(e,r)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(t,e,r){r=0===r?0:r||50;var i=n(t).toRgb(),o=n(e).toRgb(),a=r/100;return n({r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a})},n.readability=function(t,e){var r=n(t),i=n(e);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(t,e,r){var i,o,a,s,u,c=n.readability(t,e);switch(o=!1,(a=r,s=((a=a||{level:\"AA\",size:\"small\"}).level||\"AA\").toUpperCase(),u=(a.size||\"small\").toLowerCase(),\"AA\"!==s&&\"AAA\"!==s&&(s=\"AA\"),\"small\"!==u&&\"large\"!==u&&(u=\"small\"),i={level:s,size:u}).level+i.size){case\"AAsmall\":case\"AAAlarge\":o=c>=4.5;break;case\"AAlarge\":o=c>=3;break;case\"AAAsmall\":o=c>=7}return o},n.mostReadable=function(t,e,r){var i,o,a,s,u=null,c=0;o=(r=r||{}).includeFallbackColors,a=r.level,s=r.size;for(var f=0;f<e.length;f++)(i=n.readability(t,e[f]))>c&&(c=i,u=n(e[f]));return n.isReadable(t,u,{level:a,size:s})||!o?u:(r.includeFallbackColors=!1,n.mostReadable(t,[\"#fff\",\"#000\"],r))};var w=n.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},_=n.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(w);function x(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function E(t,e){(function(t){return\"string\"==typeof t&&-1!=t.indexOf(\".\")&&1===parseFloat(t)})(t)&&(t=\"100%\");var r=function(t){return\"string\"==typeof t&&-1!=t.indexOf(\"%\")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function k(t){return Math.min(1,Math.max(0,t))}function D(t){return parseInt(t,16)}function S(t){return 1==t.length?\"0\"+t:\"\"+t}function A(t){return t<=1&&(t=100*t+\"%\"),t}function M(t){return Math.round(255*parseFloat(t)).toString(16)}function O(t){return D(t)/255}var C,F,I,B=(F=\"[\\\\s|\\\\(]+(\"+(C=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\")+\")[,|\\\\s]+(\"+C+\")[,|\\\\s]+(\"+C+\")\\\\s*\\\\)?\",I=\"[\\\\s|\\\\(]+(\"+C+\")[,|\\\\s]+(\"+C+\")[,|\\\\s]+(\"+C+\")[,|\\\\s]+(\"+C+\")\\\\s*\\\\)?\",{CSS_UNIT:new RegExp(C),rgb:new RegExp(\"rgb\"+F),rgba:new RegExp(\"rgba\"+I),hsl:new RegExp(\"hsl\"+F),hsla:new RegExp(\"hsla\"+I),hsv:new RegExp(\"hsv\"+F),hsva:new RegExp(\"hsva\"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function T(t){return!!B.CSS_UNIT.exec(t)}return n},\"object\"===a(e)&&void 0!==t?t.exports=o():void 0===(i=\"function\"==typeof(n=o)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){\"use strict\";e.a=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise((function(r,i){n.push((function(t,e){t&&i(t),r(e)})),t.bind(e).apply(void 0,n)}))}},function(t,e,r){var n=r(122);function i(t,e){var r=new n(t,e);return function(t){return r.convert(t)}}i.BIN=\"01\",i.OCT=\"01234567\",i.DEC=\"0123456789\",i.HEX=\"0123456789abcdef\",t.exports=i},function(t,e,r){\"use strict\";function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;e<t;e++)o[e]=1;o[0]=1/Math.sqrt(2)}(this.size)}function i(t){var e=255&t,r=255&(t>>>=8),n=255&(t>>>=8);return{r:255&(t>>>=8),g:n,b:r,a:e}}n.prototype.size=32,n.prototype.smallerSize=8,n.prototype.distance=function(t,e){for(var r=0,n=0;n<t.length;n++)t[n]!==e[n]&&r++;return r/t.length},n.prototype.getHash=function(t){(t=t.clone().resize(this.size,this.size)).grayscale();for(var e=[],r=0;r<t.bitmap.width;r++){e[r]=[];for(var n=0;n<t.bitmap.height;n++)e[r][n]=i(t.getPixelColor(r,n)).b}for(var a=function(t,e){for(var r=e,n=[],i=0;i<r;i++){n[i]=[];for(var a=0;a<r;a++){for(var s=0,u=0;u<r;u++)for(var c=0;c<r;c++)s+=Math.cos((2*u+1)/(2*r)*i*Math.PI)*Math.cos((2*c+1)/(2*r)*a*Math.PI)*t[u][c];s*=o[i]*o[a]/4,n[i][a]=s}}return n}(e,this.size),s=0,u=0;u<this.smallerSize;u++)for(var c=0;c<this.smallerSize;c++)s+=a[u][c];for(var f=s/(this.smallerSize*this.smallerSize),l=\"\",h=0;h<this.smallerSize;h++)for(var p=0;p<this.smallerSize;p++)l+=a[h][p]>f?\"1\":\"0\";return l};var o=[];e.a=n},function(t,e,r){(function(t,e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}!function(){var i={};function o(){void 0===e&&console.log.apply(console,arguments)}\"object\"==n(t)?t.exports=i:self.UTIF=i,function(t,e){var r,i,a,s,u,c,f,l,h,p,d,m,y,v;!function(){\"use strict\";var e=function(){function t(t){this.message=\"JPEG error: \"+t}return t.prototype=new Error,t.prototype.name=\"JpegError\",t.constructor=t,t}(),r=function(){var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),r=4017,o=799,a=3406,s=2276,u=1567,c=3784,f=5793,l=2896;function h(t){null==t&&(t={}),null==t.w&&(t.w=-1),this.V=t.n,this.N=t.w}function p(t,e){for(var r,n,i,o=0,a=[],s=16;s>0&&!t[s-1];)s--;a.push({children:[],index:0});var u=a[0];for(r=0;r<s;r++){for(n=0;n<t[r];n++){for((u=a.pop()).children[u.index]=e[o];u.index>0;)u=a.pop();for(u.index++,a.push(u);a.length<=r;)a.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i;o++}r+1<s&&(a.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i)}return a[0].children}function d(t,e,r){return 64*((t.P+1)*e+r)}function m(r,o,a,s,u,c,f,l,h,p){null==p&&(p=!1);var m,y,v,b,w,_,x,E,k,D,S,A=a.m,M=a.Z,O=o,C=0,F=0,I=0,B=0,T=0,L=0;function P(){if(F>0)return F--,C>>F&1;if(255===(C=r[o++])){var t=r[o++];if(t){if(220===t&&p){var n=i(r,o+=2);if(o+=2,n>0&&n!==a.s)throw new DNLMarkerError(\"Found DNL marker (0xFFDC) while parsing scan data\",n)}else if(217===t){if(p){var s=8*T;if(s>0&&s<a.s/10)throw new DNLMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter\",s)}throw new EOIMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data\")}throw new e(\"unexpected marker\")}}return F=7,C>>>7}function j(t){for(var r=t;;){switch(n(r=r[P()])){case\"number\":return r;case\"object\":continue}throw new e(\"invalid huffman sequence\")}}function N(t){for(var e=0;t>0;)e=e<<1|P(),t--;return e}function R(t){if(1===t)return 1===P()?1:-1;var e=N(t);return e>=1<<t-1?e:e+(-1<<t)+1}function z(t,e,r,n,i){var o=r%A;T=(r/A|0)*t.A+n;var a=o*t.h+i;e(t,d(t,T,a))}function U(t,e,r){T=r/t.P|0;var n=r%t.P;e(t,d(t,T,n))}var G=s.length;for(x=M?0===c?0===l?function(t,e){var r=j(t.J),n=0===r?0:R(r)<<h;t.D[e]=t.Q+=n}:function(t,e){t.D[e]|=P()<<h}:0===l?function(e,r){if(I>0)I--;else for(var n=c,i=f;n<=i;){var o=j(e.i),a=15&o,s=o>>4;if(0!==a){var u=t[n+=s];e.D[r+u]=R(a)*(1<<h),n++}else{if(s<15){I=N(s)+(1<<s)-1;break}n+=16}}}:function(r,n){for(var i,o,a=c,s=f,u=0;a<=s;){var l=n+t[a],p=r.D[l]<0?-1:1;switch(B){case 0:if(u=(o=j(r.i))>>4,0==(i=15&o))u<15?(I=N(u)+(1<<u),B=4):(u=16,B=1);else{if(1!==i)throw new e(\"invalid ACn encoding\");m=R(i),B=u?2:3}continue;case 1:case 2:r.D[l]?r.D[l]+=p*(P()<<h):0==--u&&(B=2===B?3:0);break;case 3:r.D[l]?r.D[l]+=p*(P()<<h):(r.D[l]=m<<h,B=0);break;case 4:r.D[l]&&(r.D[l]+=p*(P()<<h))}a++}4===B&&0==--I&&(B=0)}:function(e,r){var n=j(e.J),i=0===n?0:R(n),o=1;for(e.D[r]=e.Q+=i;o<64;){var a=j(e.i),s=15&a,u=a>>4;if(0!==s){var c=t[o+=u];e.D[r+c]=R(s),o++}else{if(u<15)break;o+=16}}},k=1===G?s[0].P*s[0].c:A*a.R;L<=k;){var H=u?Math.min(k-L,u):k;if(H>0){for(v=0;v<G;v++)s[v].Q=0;if(I=0,1===G)for(y=s[0],_=0;_<H;_++)U(y,x,L),L++;else for(_=0;_<H;_++){for(v=0;v<G;v++)for(D=(y=s[v]).h,S=y.A,b=0;b<S;b++)for(w=0;w<D;w++)z(y,x,L,b,w);L++}}if(F=0,!(E=g(r,o)))break;if(E.u){o=E.offset}if(!(E.M>=65488&&E.M<=65495))break;o+=2}return o-O}function y(t,n,i){var h,p,d,m,y,v,g,b,w,_,x,E,k,D,S,A,M,O=t.$,C=t.D;if(!O)throw new e(\"missing required Quantization Table.\");for(var F=0;F<64;F+=8)w=C[n+F],_=C[n+F+1],x=C[n+F+2],E=C[n+F+3],k=C[n+F+4],D=C[n+F+5],S=C[n+F+6],A=C[n+F+7],w*=O[F],_|x|E|k|D|S|A?(_*=O[F+1],x*=O[F+2],E*=O[F+3],k*=O[F+4],D*=O[F+5],S*=O[F+6],A*=O[F+7],p=(h=(h=f*w+128>>8)+(p=f*k+128>>8)+1>>1)-p,M=(d=x)*c+(m=S)*u+128>>8,d=d*u-m*c+128>>8,g=(y=(y=l*(_-A)+128>>8)+(g=D<<4)+1>>1)-g,v=(b=(b=l*(_+A)+128>>8)+(v=E<<4)+1>>1)-v,m=(h=h+(m=M)+1>>1)-m,d=(p=p+d+1>>1)-d,M=y*s+b*a+2048>>12,y=y*a-b*s+2048>>12,b=M,M=v*o+g*r+2048>>12,v=v*r-g*o+2048>>12,g=M,i[F]=h+b,i[F+7]=h-b,i[F+1]=p+g,i[F+6]=p-g,i[F+2]=d+v,i[F+5]=d-v,i[F+3]=m+y,i[F+4]=m-y):(M=f*w+512>>10,i[F]=M,i[F+1]=M,i[F+2]=M,i[F+3]=M,i[F+4]=M,i[F+5]=M,i[F+6]=M,i[F+7]=M);for(var I=0;I<8;++I)w=i[I],(_=i[I+8])|(x=i[I+16])|(E=i[I+24])|(k=i[I+32])|(D=i[I+40])|(S=i[I+48])|(A=i[I+56])?(p=(h=4112+((h=f*w+2048>>12)+(p=f*k+2048>>12)+1>>1))-p,M=(d=x)*c+(m=S)*u+2048>>12,d=d*u-m*c+2048>>12,m=M,g=(y=(y=l*(_-A)+2048>>12)+(g=D)+1>>1)-g,v=(b=(b=l*(_+A)+2048>>12)+(v=E)+1>>1)-v,M=y*s+b*a+2048>>12,y=y*a-b*s+2048>>12,b=M,M=v*o+g*r+2048>>12,v=v*r-g*o+2048>>12,(w=(h=h+m+1>>1)+b)<16?w=0:w>=4080?w=255:w>>=4,(_=(p=p+d+1>>1)+(g=M))<16?_=0:_>=4080?_=255:_>>=4,(x=(d=p-d)+v)<16?x=0:x>=4080?x=255:x>>=4,(E=(m=h-m)+y)<16?E=0:E>=4080?E=255:E>>=4,(k=m-y)<16?k=0:k>=4080?k=255:k>>=4,(D=d-v)<16?D=0:D>=4080?D=255:D>>=4,(S=p-g)<16?S=0:S>=4080?S=255:S>>=4,(A=h-b)<16?A=0:A>=4080?A=255:A>>=4,C[n+I]=w,C[n+I+8]=_,C[n+I+16]=x,C[n+I+24]=E,C[n+I+32]=k,C[n+I+40]=D,C[n+I+48]=S,C[n+I+56]=A):(M=(M=f*w+8192>>14)<-2040?0:M>=2024?255:M+2056>>4,C[n+I]=M,C[n+I+8]=M,C[n+I+16]=M,C[n+I+24]=M,C[n+I+32]=M,C[n+I+40]=M,C[n+I+48]=M,C[n+I+56]=M)}function v(t,e){for(var r=e.P,n=e.c,i=new Int16Array(64),o=0;o<n;o++)for(var a=0;a<r;a++){y(e,d(e,o,a),i)}return e.D}function g(t,e,r){null==r&&(r=e);var n=t.length-1,o=r<e?r:e;if(e>=n)return null;var a=i(t,e);if(a>=65472&&a<=65534)return{u:null,M:a,offset:e};for(var s=i(t,o);!(s>=65472&&s<=65534);){if(++o>=n)return null;s=i(t,o)}return{u:a.toString(16),M:s,offset:o}}return h.prototype={parse:function(r,n){null==n&&(n={});var o,a,s=n.F,u=0,c=null,f=null,l=0;function h(){var t=i(r,u),e=(u+=2)+t-2,n=g(r,e,u);n&&n.u&&(e=n.offset);var o=r.subarray(u,e);return u+=o.length,o}function d(t){for(var e=Math.ceil(t.o/8/t.X),r=Math.ceil(t.s/8/t.B),n=0;n<t.W.length;n++){G=t.W[n];var i=Math.ceil(Math.ceil(t.o/8)*G.h/t.X),o=Math.ceil(Math.ceil(t.s/8)*G.A/t.B),a=e*G.h,s=64*(r*G.A)*(a+1);G.D=new Int16Array(s),G.P=i,G.c=o}t.m=e,t.R=r}var y=[],b=[],w=[],_=i(r,u);if(u+=2,65496!==_)throw new e(\"SOI not found\");_=i(r,u),u+=2;t:for(;65497!==_;){var x,E,k;switch(_){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var D=h();65504===_&&74===D[0]&&70===D[1]&&73===D[2]&&70===D[3]&&0===D[4]&&(c={version:{d:D[5],T:D[6]},K:D[7],j:D[8]<<8|D[9],H:D[10]<<8|D[11],S:D[12],I:D[13],C:D.subarray(14,14+3*D[12]*D[13])}),65518===_&&65===D[0]&&100===D[1]&&111===D[2]&&98===D[3]&&101===D[4]&&(f={version:D[5]<<8|D[6],k:D[7]<<8|D[8],q:D[9]<<8|D[10],a:D[11]});break;case 65499:for(var S=i(r,u)+(u+=2)-2;u<S;){var A=r[u++],M=new Uint16Array(64);if(A>>4){if(A>>4!=1)throw new e(\"DQT - invalid table spec\");for(E=0;E<64;E++)M[t[E]]=i(r,u),u+=2}else for(E=0;E<64;E++)M[t[E]]=r[u++];y[15&A]=M}break;case 65472:case 65473:case 65474:if(o)throw new e(\"Only single frame JPEGs supported\");u+=2,(o={}).G=65473===_,o.Z=65474===_,o.precision=r[u++];var O,C=i(r,u),F=0,I=0;u+=2,o.s=s||C,o.o=i(r,u),u+=2,o.W=[],o._={};var B=r[u++];for(x=0;x<B;x++){O=r[u];var T=r[u+1]>>4,L=15&r[u+1];F<T&&(F=T),I<L&&(I=L);var P=r[u+2];k=o.W.push({h:T,A:L,L:P,$:null}),o._[O]=k-1,u+=3}o.X=F,o.B=I,d(o);break;case 65476:var j=i(r,u);for(u+=2,x=2;x<j;){var N=r[u++],R=new Uint8Array(16),z=0;for(E=0;E<16;E++,u++)z+=R[E]=r[u];var U=new Uint8Array(z);for(E=0;E<z;E++,u++)U[E]=r[u];x+=17+z,(N>>4?b:w)[15&N]=p(R,U)}break;case 65501:a=i(r,u+=2),u+=2;break;case 65498:var G,H=1==++l&&!s;u+=2;var Z=r[u++],q=[];for(x=0;x<Z;x++){var W=r[u++],Y=o._[W];(G=o.W[Y]).index=W;var X=r[u++];G.J=w[X>>4],G.i=b[15&X],q.push(G)}var V=r[u++],J=r[u++],K=r[u++];try{var Q=m(r,u,o,q,a,V,J,K>>4,15&K,H);u+=Q}catch(t){if(t instanceof DNLMarkerError)return this.parse(r,{F:t.s});if(t instanceof EOIMarkerError)break t;throw t}break;case 65500:u+=4;break;case 65535:255!==r[u]&&u--;break;default:var $=g(r,u-2,u-3);if($&&$.u){u=$.offset;break}if(u>=r.length-1)break t;throw new e(\"JpegImage.parse - unknown marker: \"+_.toString(16))}_=i(r,u),u+=2}for(this.width=o.o,this.height=o.s,this.g=c,this.b=f,this.W=[],x=0;x<o.W.length;x++){var tt=y[(G=o.W[x]).L];tt&&(G.$=tt),this.W.push({index:G.index,e:v(0,G),l:G.h/o.X,t:G.A/o.B,P:G.P,c:G.c})}this.p=this.W.length},Y:function(t,e,r){null==r&&(r=!1);var n,i,o,a,s,u,c,f,l,h,p,d,m=this.width/t,y=this.height/e,v=0,g=this.W.length,b=t*e*g,w=new Uint8ClampedArray(b),_=new Uint32Array(t),x=4294967288;for(c=0;c<g;c++){if(i=(n=this.W[c]).l*m,o=n.t*y,v=c,p=n.e,a=n.P+1<<3,i!==d){for(s=0;s<t;s++)f=0|s*i,_[s]=(f&x)<<3|7&f;d=i}for(u=0;u<e;u++)for(h=a*((f=0|u*o)&x)|(7&f)<<3,s=0;s<t;s++)w[v]=p[h+_[s]],v+=g}var E=this.V;if(r||4!==g||E||(E=new Int32Array([-256,255,-256,255,-256,255,-256,255])),E)for(c=0;c<b;)for(f=0,l=0;f<g;f++,c++,l+=2)w[c]=(w[c]*E[l]>>8)+E[l+1];return w},get f(){return this.b?!!this.b.a:3===this.p?0!==this.N&&(82!==this.W[0].index||71!==this.W[1].index||66!==this.W[2].index):1===this.N},z:function(t){for(var e,r,n,i=0,o=t.length;i<o;i+=3)e=t[i],r=t[i+1],n=t[i+2],t[i]=e-179.456+1.402*n,t[i+1]=e+135.459-.344*r-.714*n,t[i+2]=e-226.816+1.772*r;return t},O:function(t){for(var e,r,n,i,o=0,a=0,s=t.length;a<s;a+=4)e=t[a],r=t[a+1],n=t[a+2],i=t[a+3],t[o++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*e+.00048449797120281*i-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*e-.00477271405408747*i+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),t[o++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*e+.000426105652938837*i-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*e+.000770482631801132*i-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),t[o++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*e-.00288260236853442*i+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*e+.000560833691242812*i-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return t.subarray(0,o)},r:function(t){for(var e,r,n,i=0,o=t.length;i<o;i+=4)e=t[i],r=t[i+1],n=t[i+2],t[i]=434.456-e-1.402*n,t[i+1]=119.541-e+.344*r+.714*n,t[i+2]=481.816-e-1.772*r;return t},U:function(t){for(var e,r,n,i,o=0,a=0,s=t.length;a<s;a+=4)e=t[a],r=t[a+1],n=t[a+2],i=t[a+3],t[o++]=255+e*(-6747147073602441e-20*e+.0008379262121013727*r+.0002894718188643294*n+.003264231057537806*i-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*n-.0002748769067499491*i-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*i+.0686742238595345)-i*(.0003361971776183937*i+.7430659151342254),t[o++]=255+e*(.00013596372813588848*e+.000924537132573585*r+.00010567359618683593*n+.0004791864687436512*i-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*n+.0020200308977307156*i-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*i-.09751927774728933)-i*(.0003189131175883281*i+.7364883807733168),t[o++]=255+e*(13598650411385307e-21*e+.00012423956175490851*r+.0004751985097583589*n-36729317476630422e-22*i-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*n+.0007782692450036253*i-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*i-.7591454649749609)-i*(.0003435319965105553*i+.7063770186160144);return t.subarray(0,o)},getData:function(t){var r=t.width,n=t.height,i=t.forceRGB,o=t.isSourcePDF;if(this.p>4)throw new e(\"Unsupported color mode\");var a=this.Y(r,n,o);if(1===this.p&&i){for(var s=a.length,u=new Uint8ClampedArray(3*s),c=0,f=0;f<s;f++){var l=a[f];u[c++]=l,u[c++]=l,u[c++]=l}return u}if(3===this.p&&this.f)return this.z(a);if(4===this.p){if(this.f)return i?this.O(a):this.r(a);if(i)return this.U(a)}return a}},h}();function i(t,e){return t[e]<<8|t[e+1]}t.JpegDecoder=r}(),t.encodeImage=function(e,r,n,i){var o={t256:[r],t257:[n],t258:[8,8,8,8],t259:[1],t262:[2],t273:[1e3],t277:[4],t278:[n],t279:[r*n*4],t282:[[72,1]],t283:[[72,1]],t284:[1],t286:[[0,1]],t287:[[0,1]],t296:[1],t305:[\"Photopea (UTIF.js)\"],t338:[1]};if(i)for(var a in i)o[a]=i[a];var s=new Uint8Array(t.encode([o])),u=new Uint8Array(e),c=new Uint8Array(1e3+r*n*4);for(a=0;a<s.length;a++)c[a]=s[a];for(a=0;a<u.length;a++)c[1e3+a]=u[a];return c.buffer},t.encode=function(e){var r=new Uint8Array(2e4),n=4,i=t._binBE;r[0]=r[1]=77,i.writeUshort(r,2,42);var o=8;i.writeUint(r,n,o),n+=4;for(var a=0;a<e.length;a++){var s=t._writeIFD(i,t._types.basic,r,o,e[a]);o=s[1],a<e.length-1&&(3&o&&(o+=4-(3&o)),i.writeUint(r,s[0],o))}return r.slice(0,o).buffer},t.decode=function(e,r){null==r&&(r={parseMN:!0,debug:!1});var n=new Uint8Array(e),i=0,a=t._binBE.readASCII(n,i,2);i+=2;var s=\"II\"==a?t._binLE:t._binBE;s.readUshort(n,i);i+=2;var u=s.readUint(n,i);i+=4;for(var c=[];;){var f=s.readUshort(n,u),l=s.readUshort(n,u+4);if(0!=f&&(l<1||13<l)){o(\"error in TIFF\");break}if(t._readIFD(s,n,u,c,0,r),0==(u=s.readUint(n,u+2+12*f)))break}return c},t.decodeImage=function(e,r,n){if(!r.data){var i=new Uint8Array(e),a=t._binBE.readASCII(i,0,2);if(null!=r.t256){r.isLE=\"II\"==a,r.width=r.t256[0],r.height=r.t257[0];var s=r.t259?r.t259[0]:1,u=r.t266?r.t266[0]:1;r.t284&&2==r.t284[0]&&o(\"PlanarConfiguration 2 should not be used!\"),7==s&&r.t258&&r.t258.length>3&&(r.t258=r.t258.slice(0,3));var c=r.t277?r.t277[0]:1,f=(r.t258?r.t258[0]:1)*c;1==s&&null!=r.t279&&r.t278&&32803==r.t262[0]&&(f=Math.round(8*r.t279[0]/(r.width*r.t278[0]))),r.t50885&&4==r.t50885[0]&&(f=3*r.t258[0]);var l=8*Math.ceil(r.width*f/8),h=r.t273;(null==h||r.t322)&&(h=r.t324);var p=r.t279;1==s&&1==h.length&&(p=[r.height*(l>>>3)]),(null==p||r.t322)&&(p=r.t325);var d=new Uint8Array(r.height*(l>>>3)),m=0;if(null!=r.t322){for(var y=r.t322[0],v=r.t323[0],g=Math.floor((r.width+y-1)/y),b=Math.floor((r.height+v-1)/v),w=new Uint8Array(0|Math.ceil(y*v*f/8)),_=0;_<b;_++)for(var x=0;x<g;x++){var E=_*g+x;w.fill(0),t.decode._decompress(r,n,i,h[E],p[E],s,w,0,u,y,v),6==s?d=w:t._copyTile(w,0|Math.ceil(y*f/8),v,d,0|Math.ceil(r.width*f/8),r.height,0|Math.ceil(x*y*f/8),_*v)}m=8*d.length}else{if(null==h)return;var k=r.t278?r.t278[0]:r.height;k=Math.min(k,r.height);for(E=0;E<h.length;E++)t.decode._decompress(r,n,i,h[E],p[E],s,d,0|Math.ceil(m/8),u,r.width,k),m+=l*k;m=Math.min(m,8*d.length)}r.data=new Uint8Array(d.buffer,0,0|Math.ceil(m/8))}}},t.decode._decompress=function(r,n,i,a,s,u,c,f,l,h,p){if(r.t271&&\"Panasonic\"==r.t271[0]&&r.t45&&6==r.t45[0]&&(u=34316),1==u)for(var d=0;d<s;d++)c[f+d]=i[a+d];else if(2==u)t.decode._decodeG2(i,a,s,c,f,h,l);else if(3==u)t.decode._decodeG3(i,a,s,c,f,h,l,!!r.t292&&!(1&~r.t292[0]));else if(4==u)t.decode._decodeG4(i,a,s,c,f,h,l);else if(5==u)t.decode._decodeLZW(i,a,s,c,f,8);else if(6==u)t.decode._decodeOldJPEG(r,i,a,s,c,f);else if(7==u||34892==u)t.decode._decodeNewJPEG(r,i,a,s,c,f);else if(8==u||32946==u){var m=new Uint8Array(i.buffer,a+2,s-6),y=e.inflateRaw(m);f+y.length<=c.length&&c.set(y,f)}else 9==u?t.decode._decodeVC5(i,a,s,c,f,r.t33422):32767==u?t.decode._decodeARW(r,i,a,s,c,f):32773==u?t.decode._decodePackBits(i,a,s,c,f):32809==u?t.decode._decodeThunder(i,a,s,c,f):34316==u?t.decode._decodePanasonic(r,i,a,s,c,f):34713==u?t.decode._decodeNikon(r,n,i,a,s,c,f):34676==u?t.decode._decodeLogLuv32(r,i,a,s,c,f):o(\"Unknown compression\",u);var v=r.t258?Math.min(32,r.t258[0]):1,g=r.t277?r.t277[0]:1,b=v*g>>>3,w=Math.ceil(v*g*h/8);if(16==v&&!r.isLE&&null==r.t33422)for(var _=0;_<p;_++)for(var x=f+_*w,E=1;E<w;E+=2){var k=c[x+E];c[x+E]=c[x+E-1],c[x+E-1]=k}if(r.t317&&2==r.t317[0])for(_=0;_<p;_++){var D=f+_*w;if(16==v)for(d=b;d<w;d+=2){var S=(c[D+d+1]<<8|c[D+d])+(c[D+d-b+1]<<8|c[D+d-b]);c[D+d]=255&S,c[D+d+1]=S>>>8&255}else if(3==g)for(d=3;d<w;d+=3)c[D+d]=c[D+d]+c[D+d-3]&255,c[D+d+1]=c[D+d+1]+c[D+d-2]&255,c[D+d+2]=c[D+d+2]+c[D+d-1]&255;else for(d=b;d<w;d++)c[D+d]=c[D+d]+c[D+d-b]&255}},t.decode._decodePanasonic=function(t,e,r,n,i,o){var a,s,u,c,f,l,h,p,d=e.buffer,m=t.t2[0],y=t.t3[0],v=t.t10[0],g=t.t45[0],b=0,w=0,_=0,x=0,E=6==g?new Uint32Array(18):new Uint8Array(16),k=[0,0],D=[0,0],S=0,A=new Uint8Array(16384),M=new Uint16Array(i.buffer);function O(t){if(0==_){var e=new Uint8Array(d,r+w+8184,8200),n=new Uint8Array(d,r+w,8184);A.set(e),A.set(n,e.length),w+=16384}if(5!=g)return(A[x=(_=_-t&131071)>>3^16368]|A[x+1]<<8)>>(7&_)&~(-1<<t);for(a=0;a<16;a++)E[a]=A[_++],_&=16383}function C(t){return A[_+15-t]}function F(){k[0]=0,k[1]=0,D[0]=0,D[1]=0}if(7==g)throw g;if(6==g){var I=12==v,B=I?function(){E[0]=C(0)<<4|C(1)>>4,E[1]=4095&((15&C(1))<<8|C(2)),E[2]=C(3)>>6&3,E[3]=(63&C(3))<<2|C(4)>>6,E[4]=(63&C(4))<<2|C(5)>>6,E[5]=(63&C(5))<<2|C(6)>>6,E[6]=C(6)>>4&3,E[7]=(15&C(6))<<4|C(7)>>4,E[8]=(15&C(7))<<4|C(8)>>4,E[9]=(15&C(8))<<4|C(9)>>4,E[10]=C(9)>>2&3,E[11]=(3&C(9))<<6|C(10)>>2,E[12]=(3&C(10))<<6|C(11)>>2,E[13]=(3&C(11))<<6|C(12)>>2,E[14]=3&C(12),E[15]=C(13),E[16]=C(14),E[17]=C(15),_+=16,x=0}:function(){E[0]=C(0)<<6|C(1)>>2,E[1]=16383&((3&C(1))<<12|C(2)<<4|C(3)>>4),E[2]=C(3)>>2&3,E[3]=(3&C(3))<<8|C(4),E[4]=C(5)<<2|C(6)>>6,E[5]=(63&C(6))<<4|C(7)>>4,E[6]=C(7)>>2&3,E[7]=(3&C(7))<<8|C(8),E[8]=C(9)<<2&1020|C(10)>>6,E[9]=1023&(C(10)<<4|C(11)>>4),E[10]=C(11)>>2&3,E[11]=(3&C(11))<<8|C(12),E[12]=1023&(C(13)<<2&1020|C(14)>>6),E[13]=1023&(C(14)<<4|C(15)>>4),_+=16,x=0},T=I?14:11,L=I?128:512,P=I?2048:8192,j=I?16383:65535,N=I?4095:16383,R=m/T,z=16*R,U=I?18:14;for(l=0;l<y-15;l+=16){var G=Math.min(16,y-l),H=z*G;for(A=new Uint8Array(d,r+b,H),_=0,b+=H,p=0,h=0;p<G;p++,h=0){S=(l+p)*m;for(var Z=0;Z<R;Z++)for(B(),F(),u=0,f=0,a=0;a<T;a++){if(c=1&a,a%3==2){var q=x<U?E[x++]:0;3==q&&(q=4),f=L<<q,u=1<<q}var W=x<U?E[x++]:0;k[c]?(W*=u,f<P&&D[c]>f&&(W+=D[c]-f),D[c]=W):(k[c]=W,W?D[c]=W:W=D[c]),M[S+h++]=W-15<=j?W-15&j:W+2147483633>>31&N}}}}else if(5==g){var Y=12==v?10:9;for(l=0;l<y;l++)for(h=0;h<m;h+=Y)O(0),12==v?(M[S++]=((15&E[1])<<8)+E[0],M[S++]=16*E[2]+(E[1]>>4),M[S++]=((15&E[4])<<8)+E[3],M[S++]=16*E[5]+(E[4]>>4),M[S++]=((15&E[7])<<8)+E[6],M[S++]=16*E[8]+(E[7]>>4),M[S++]=((15&E[10])<<8)+E[9],M[S++]=16*E[11]+(E[10]>>4),M[S++]=((15&E[13])<<8)+E[12],M[S++]=16*E[14]+(E[13]>>4)):14==v&&(M[S++]=E[0]+((63&E[1])<<8),M[S++]=(E[1]>>6)+4*E[2]+((15&E[3])<<10),M[S++]=(E[3]>>4)+16*E[4]+((3&E[5])<<12),M[S++]=((252&E[5])>>2)+(E[6]<<6),M[S++]=E[7]+((63&E[8])<<8),M[S++]=(E[8]>>6)+4*E[9]+((15&E[10])<<10),M[S++]=(E[10]>>4)+16*E[11]+((3&E[12])<<12),M[S++]=((252&E[12])>>2)+(E[13]<<6),M[S++]=E[14]+((63&E[15])<<8))}else{if(4!=g)throw g;for(l=0;l<y;l++)for(h=0;h<m;h++)c=1&(a=h%14),0==a&&F(),a%3==2&&(u=4>>3-O(2)),D[c]?0!=(s=O(8))&&(k[c]-=128<<u,(k[c]<0||4==u)&&(k[c]&=~(-1<<u)),k[c]+=s<<u):(D[c]=O(8),(D[c]||a>11)&&(k[c]=D[c]<<4|O(4))),M[S++]=k[1&h]}},t.decode._decodeVC5=function(){var e,r,n,i=[1,0,1,0,2,2,1,1,3,7,1,2,5,25,1,3,6,48,1,4,6,54,1,5,7,111,1,8,7,99,1,6,7,105,12,0,7,107,1,7,8,209,20,0,8,212,1,9,8,220,1,10,9,393,1,11,9,394,32,0,9,416,1,12,9,427,1,13,10,887,1,18,10,784,1,14,10,790,1,15,10,835,60,0,10,852,1,16,10,885,1,17,11,1571,1,19,11,1668,1,20,11,1669,100,0,11,1707,1,21,11,1772,1,22,12,3547,1,29,12,3164,1,24,12,3166,1,25,12,3140,1,23,12,3413,1,26,12,3537,1,27,12,3539,1,28,13,7093,1,35,13,6283,1,30,13,6331,1,31,13,6335,180,0,13,6824,1,32,13,7072,1,33,13,7077,320,0,13,7076,1,34,14,12565,1,36,14,12661,1,37,14,12669,1,38,14,13651,1,39,14,14184,1,40,15,28295,1,46,15,28371,1,47,15,25320,1,42,15,25336,1,43,15,25128,1,41,15,27300,1,44,15,28293,1,45,16,50259,1,48,16,50643,1,49,16,50675,1,50,16,56740,1,53,16,56584,1,51,16,56588,1,52,17,113483,1,61,17,113482,1,60,17,101285,1,55,17,101349,1,56,17,109205,1,57,17,109207,1,58,17,100516,1,54,17,113171,1,59,18,202568,1,62,18,202696,1,63,18,218408,1,64,18,218412,1,65,18,226340,1,66,18,226356,1,67,18,226358,1,68,19,402068,1,69,19,405138,1,70,19,405394,1,71,19,436818,1,72,19,436826,1,73,19,452714,1,75,19,452718,1,76,19,452682,1,74,20,804138,1,77,20,810279,1,78,20,810790,1,79,20,873638,1,80,20,873654,1,81,20,905366,1,82,20,905430,1,83,20,905438,1,84,21,1608278,1,85,21,1620557,1,86,21,1621582,1,87,21,1621583,1,88,21,1747310,1,89,21,1810734,1,90,21,1810735,1,91,21,1810863,1,92,21,1810879,1,93,22,3621725,1,99,22,3621757,1,100,22,3241112,1,94,22,3494556,1,95,22,3494557,1,96,22,3494622,1,97,22,3494623,1,98,23,6482227,1,102,23,6433117,1,101,23,6989117,1,103,23,6989119,1,105,23,6989118,1,104,23,7243449,1,106,23,7243512,1,107,24,13978233,1,111,24,12964453,1,109,24,12866232,1,108,24,14486897,1,113,24,13978232,1,110,24,14486896,1,112,24,14487026,1,114,24,14487027,1,115,25,25732598,1,225,25,25732597,1,189,25,25732596,1,188,25,25732595,1,203,25,25732594,1,202,25,25732593,1,197,25,25732592,1,207,25,25732591,1,169,25,25732590,1,223,25,25732589,1,159,25,25732522,1,235,25,25732579,1,152,25,25732575,1,192,25,25732489,1,179,25,25732573,1,201,25,25732472,1,172,25,25732576,1,149,25,25732488,1,178,25,25732566,1,120,25,25732571,1,219,25,25732577,1,150,25,25732487,1,127,25,25732506,1,211,25,25732548,1,125,25,25732588,1,158,25,25732486,1,247,25,25732467,1,238,25,25732508,1,163,25,25732552,1,228,25,25732603,1,183,25,25732513,1,217,25,25732587,1,168,25,25732520,1,122,25,25732484,1,128,25,25732562,1,249,25,25732505,1,187,25,25732504,1,186,25,25732483,1,136,25,25928905,1,181,25,25732560,1,255,25,25732500,1,230,25,25732482,1,135,25,25732555,1,233,25,25732568,1,222,25,25732583,1,145,25,25732481,1,134,25,25732586,1,167,25,25732521,1,248,25,25732518,1,209,25,25732480,1,243,25,25732512,1,216,25,25732509,1,164,25,25732547,1,140,25,25732479,1,157,25,25732544,1,239,25,25732574,1,191,25,25732564,1,251,25,25732478,1,156,25,25732546,1,139,25,25732498,1,242,25,25732557,1,133,25,25732477,1,162,25,25732515,1,213,25,25732584,1,165,25,25732514,1,212,25,25732476,1,227,25,25732494,1,198,25,25732531,1,236,25,25732530,1,234,25,25732529,1,117,25,25732528,1,215,25,25732527,1,124,25,25732526,1,123,25,25732525,1,254,25,25732524,1,253,25,25732523,1,148,25,25732570,1,218,25,25732580,1,146,25,25732581,1,147,25,25732569,1,224,25,25732533,1,143,25,25732540,1,184,25,25732541,1,185,25,25732585,1,166,25,25732556,1,132,25,25732485,1,129,25,25732563,1,250,25,25732578,1,151,25,25732501,1,119,25,25732502,1,193,25,25732536,1,176,25,25732496,1,245,25,25732553,1,229,25,25732516,1,206,25,25732582,1,144,25,25732517,1,208,25,25732558,1,137,25,25732543,1,241,25,25732466,1,237,25,25732507,1,190,25,25732542,1,240,25,25732551,1,131,25,25732554,1,232,25,25732565,1,252,25,25732475,1,171,25,25732493,1,205,25,25732492,1,204,25,25732491,1,118,25,25732490,1,214,25,25928904,1,180,25,25732549,1,126,25,25732602,1,182,25,25732539,1,175,25,25732545,1,141,25,25732559,1,138,25,25732537,1,177,25,25732534,1,153,25,25732503,1,194,25,25732606,1,160,25,25732567,1,121,25,25732538,1,174,25,25732497,1,246,25,25732550,1,130,25,25732572,1,200,25,25732474,1,170,25,25732511,1,221,25,25732601,1,196,25,25732532,1,142,25,25732519,1,210,25,25732495,1,199,25,25732605,1,155,25,25732535,1,154,25,25732499,1,244,25,25732510,1,220,25,25732600,1,195,25,25732607,1,161,25,25732604,1,231,25,25732473,1,173,25,25732599,1,226,26,51465122,1,116,26,51465123,0,1],o=[3,3,3,3,2,2,2,1,1,1];function a(t){var e=t[1],r=t[0][e>>>3]>>>7-(7&e)&1;return t[1]++,r}function s(t,r){if(null==e){e={};for(var n=0;n<i.length;n+=4)e[i[n+1]]=i.slice(n,n+4)}for(var o=a(t),s=e[o];null==s;)o=o<<1|a(t),s=e[o];var u=s[3];0!=u&&(u=0==a(t)?u:-u),r[0]=s[2],r[1]=u}function u(t,e){for(var r=0;r<e;r++)1&~t||t++,t>>>=1;return t}function c(t,e){return t>>e}function f(t,e,r,n,i,o){e[r]=c(c(11*t[i]-4*t[i+o]+t[i+o+o]+4,3)+t[n],1),e[r+o]=c(c(5*t[i]+4*t[i+o]-t[i+o+o]+4,3)-t[n],1)}function l(t,e,r,n,i,o){var a=t[i-o]-t[i+o],s=t[i],u=t[n];e[r]=c(c(a+4,3)+s+u,1),e[r+o]=c(c(4-a,3)+s-u,1)}function h(t,e,r,n,i,o){e[r]=c(c(5*t[i]+4*t[i-o]-t[i-o-o]+4,3)+t[n],1),e[r+o]=c(c(11*t[i]-4*t[i-o]+t[i-o-o]+4,3)-t[n],1)}function p(t){return t=n[t=t<0?0:t>4095?4095:t]>>>2}return function(e,i,a,c,d,m){c=new Uint16Array(c.buffer),Date.now();var y,v,g,b,w,_,x,E,k=t._binBE,D=i+a;i+=4;for(var S=1==m[0];i<D;){var A=k.readShort(e,i),M=k.readUshort(e,i+2);if(i+=4,12==A)L=M;else if(20==A)y=M;else if(21==A)v=M;else if(48==A)g=M;else if(53==A)b=M;else if(35==A)M;else if(62==A)w=M;else if(101==A)M;else if(109==A)_=M;else if(84==A)M;else if(106==A)M;else if(107==A)M;else if(108==A)M;else if(102==A)M;else if(104==A)et=M;else if(105==A)M;else{var O=A<0?-A:A,C=65280&O,F=0;if(24576&O&&(8192&O?(F=65535&M,F+=(255&O)<<16):F=65535&M),24576&~O){if(16388==O)i+=4*F;else if(8192!=C&&8448!=C&&9216!=C)throw O.toString(16)}else{if(null==x){x=[];for(var I=0;I<4;I++)x[I]=new Int16Array((y>>>1)*(v>>>1));E=new Int16Array((y>>>1)*(v>>>1)),r=new Int16Array(1024);for(I=0;I<1024;I++){var B=I-512,T=Math.abs(B),L=Math.floor(768*T*T*T/16581375)+T;r[I]=Math.sign(B)*L}n=new Uint16Array(4096);for(I=0;I<4096;I++){var P=I,j=65535*(Math.pow(113,P/4095)-1)/112;n[I]=Math.min(j,65535)}}var N=x[w],R=u(y,1+o[g]),z=u(v,1+o[g]);if(0==g)for(var U=0;U<z;U++)for(var G=0;G<R;G++){var H=i+2*(U*R+G);N[U*(y>>>1)+G]=e[H]<<8|e[H+1]}else{var Z=[e,8*i],q=[],W=0,Y=R*z,X=[0,0],V=0;for(M=0;W<Y;)for(s(Z,X),V=X[0],M=X[1];V>0;)q[W++]=M,V--;var J=(g-1)%3,K=1!=J?R:0,Q=0!=J?z:0;for(U=0;U<z;U++){var $=(U+Q)*(y>>>1)+K,tt=U*R;for(G=0;G<R;G++)N[$+G]=r[q[tt+G]+512]*b}if(2==J){var et=y>>>1,rt=2*R,nt=2*z;for(U=0;U<z;U++)for(G=0;G<rt;G++){I=2*U*et+G;var it=z*et+(at=U*et+G);0==U?f(N,E,I,it,at,et):U==z-1?h(N,E,I,it,at,et):l(N,E,I,it,at,et)}var ot=N;N=E,E=ot;for(U=0;U<nt;U++)for(G=0;G<R;G++){var at;I=U*et+2*G,it=R+(at=U*et+G);0==G?f(N,E,I,it,at,1):G==R-1?h(N,E,I,it,at,1):l(N,E,I,it,at,1)}ot=N;N=E,E=ot;for(var st=[],ut=2-~~((g-1)/3),ct=0;ct<3;ct++)st[ct]=_>>14-2*ct&3;var ft=st[ut];if(0!=ft)for(U=0;U<nt;U++)for(G=0;G<rt;G++){N[I=U*et+G]=N[I]<<ft}}}if(9==g&&3==w){var lt=x[0],ht=x[1],pt=x[2],dt=x[3];for(U=0;U<v;U+=2)for(G=0;G<y;G+=2){var mt=U*y+G,yt=lt[H=(U>>>1)*(y>>>1)+(G>>>1)],vt=ht[H]-2048,gt=pt[H]-2048,bt=dt[H]-2048,wt=(vt<<1)+yt,_t=(gt<<1)+yt,xt=yt+bt,Et=yt-bt;S?(c[mt]=p(xt),c[mt+1]=p(_t),c[mt+y]=p(wt),c[mt+y+1]=p(Et)):(c[mt]=p(wt),c[mt+1]=p(xt),c[mt+y]=p(Et),c[mt+y+1]=p(_t))}}i+=4*F}}}Date.now()}}(),t.decode._decodeLogLuv32=function(t,e,r,n,i,o){for(var a=t.width,s=4*a,u=0,c=new Uint8Array(s);u<n;){for(var f=0;f<s;){var l=e[r+u];if(u++,l<128){for(var h=0;h<l;h++)c[f+h]=e[r+u+h];f+=l,u+=l}else{l-=126;for(h=0;h<l;h++)c[f+h]=e[r+u];f+=l,u++}}for(var p=0;p<a;p++)i[o+0]=c[p],i[o+1]=c[p+a],i[o+2]=c[p+2*a],i[o+4]=c[p+3*a],o+=6}},t.decode._ljpeg_diff=function(e,r,n){var i,o,a=t.decode._getbithuff;return i=a(e,r,n[0],n),(o=a(e,r,i,0))&1<<i-1||(o-=(1<<i)-1),o},t.decode._decodeARW=function(e,r,n,i,o,a){var s=e.t256[0],u=e.t257[0],c=e.t258[0],f=e.isLE?t._binLE:t._binBE;if(s*u==i||s*u*1.5==i)if(s*u*1.5!=i){var l,h,p,d,m,y,v,g,b=new Uint16Array(16),w=new Uint8Array(s+1);for(M=0;M<u;M++){for(var _=0;_<s;_++)w[_]=r[n++];for(g=0,A=0;A<s-30;g+=16){for(h=2047&(l=f.readUint(w,g)),p=2047&l>>>11,d=15&l>>>22,m=15&l>>>26,y=0;y<4&&128<<y<=h-p;y++);for(v=30,x=0;x<16;x++)x==d?b[x]=h:x==m?b[x]=p:(b[x]=((f.readUshort(w,g+(v>>3))>>>(7&v)&127)<<y)+p,b[x]>2047&&(b[x]=2047),v+=7);for(x=0;x<16;x++,A+=2){P=b[x]<<1;t.decode._putsF(o,(M*s+A)*c,P<<16-c)}A-=1&A?1:31}}}else for(var x=0;x<i;x+=3){var E=r[n+x+0],k=r[n+x+1],D=r[n+x+2];o[a+x]=k<<4|E>>>4,o[a+x+1]=E<<4|D>>>4,o[a+x+2]=D<<4|k>>>4}else{u+=8;var S,A,M,O=[n,0,0,0],C=new Uint16Array(32770),F=[3857,3856,3599,3342,3085,2828,2571,2314,2057,1800,1543,1286,1029,772,771,768,514,513],I=0,B=t.decode._ljpeg_diff;for(C[0]=15,S=x=0;x<18;x++)for(var T=32768>>>(F[x]>>>8),L=0;L<T;L++)C[++S]=F[x];for(A=s;A--;)for(M=0;M<u+1;M+=2)if(M==u&&(M=1),I+=B(r,O,C),M<u){var P=4095&I;t.decode._putsF(o,(M*s+A)*c,P<<16-c)}}},t.decode._decodeNikon=function(e,r,n,i,o,a,s){var u=[[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,5,4,3,6,2,7,1,0,8,9,11,10,12],[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,57,90,56,39,22,5,4,3,2,1,0,11,12,12],[0,0,1,4,2,3,1,2,0,0,0,0,0,0,0,0,0,5,4,6,3,7,2,8,1,9,0,10,11,12],[0,0,1,4,3,1,1,1,1,1,2,0,0,0,0,0,0,5,6,4,7,8,3,9,2,1,0,10,11,12,13,14],[0,0,1,5,1,1,1,1,1,1,1,2,0,0,0,0,0,8,92,75,58,41,7,6,5,4,3,2,1,0,13,14],[0,0,1,4,2,2,3,1,2,0,0,0,0,0,0,0,0,7,6,8,5,9,4,10,3,11,12,2,0,1,13,14]],c=e.t256[0],f=e.t257[0],l=e.t258[0],h=0,p=0,d=t.decode._make_decoder,m=t.decode._getbithuff,y=r[0].exifIFD.makerNote,v=y.t150?y.t150:y.t140,g=0,b=v[g++],w=v[g++];73!=b&&88!=w||(g+=2110),70==b&&(h=2),14==l&&(h+=3);for(var _=[[0,0],[0,0]],x=e.isLE?t._binLE:t._binBE,E=0;E<2;E++)for(var k=0;k<2;k++)_[E][k]=x.readShort(v,g),g+=2;var D,S,A,M,O,C=1<<l&32767,F=0,I=x.readShort(v,g);g+=2,I>1&&(F=Math.floor(C/(I-1))),68==b&&32==w&&F>0&&(p=x.readShort(v,562));var B=[0,0],T=d(u[h]),L=[i,0,0,0];for(D=0;D<f;D++)for(p&&D==p&&(T=d(u[h+1])),S=0;S<c;S++){E=m(n,L,T[0],T),(O=1+(m(n,L,(A=15&E)-(M=E>>>4),0)<<1)<<M>>>1)&1<<A-1||(O-=(1<<A)-(0==M?1:0)),S<2?B[S]=_[1&D][S]+=O:B[1&S]+=O;var P=Math.min(Math.max(B[1&S],0),(1<<l)-1),j=(D*c+S)*l;t.decode._putsF(a,j,P<<16-l)}},t.decode._putsF=function(t,e,r){r<<=8-(7&e);var n=e>>>3;t[n]|=r>>>16,t[n+1]|=r>>>8,t[n+2]|=r},t.decode._getbithuff=function(e,r,n,i){t.decode._get_byte;var o,a=r[0],s=r[1],u=r[2],c=r[3];if(0==n||u<0)return 0;for(;!c&&u<n&&-1!=(o=e[a++])&&!(c=0);)s=(s<<8)+o,u+=8;if(o=s<<32-u>>>32-n,i?(u-=i[o+1]>>>8,o=255&i[o+1]):u-=n,u<0)throw\"e\";return r[0]=a,r[1]=s,r[2]=u,r[3]=c,o},t.decode._make_decoder=function(t){var e,r,n,i,o,a=[];for(e=16;0!=e&&!t[e];e--);var s=17;for(a[0]=e,n=r=1;r<=e;r++)for(i=0;i<t[r];i++,++s)for(o=0;o<1<<e-r;o++)n<=1<<e&&(a[n++]=r<<8|t[s]);return a},t.decode._decodeNewJPEG=function(e,r,n,i,o,a){i=Math.min(i,r.length-n);var s=e.t347,u=s?s.length:0,c=new Uint8Array(u+i);if(s){for(var f=0,l=0;l<u-1&&(255!=s[l]||217!=s[l+1]);l++)c[f++]=s[l];var h=r[n],p=r[n+1];255==h&&216==p||(c[f++]=h,c[f++]=p);for(l=2;l<i;l++)c[f++]=r[n+l]}else for(l=0;l<i;l++)c[l]=r[n+l];if(32803==e.t262[0]||7==e.t259[0]&&34892==e.t262[0]){var d=e.t258[0],m=t.LosslessJpegDecode(c),y=m.length;if(16==d)if(e.isLE)for(l=0;l<y;l++)o[a+(l<<1)]=255&m[l],o[a+(l<<1)+1]=m[l]>>>8;else for(l=0;l<y;l++)o[a+(l<<1)]=m[l]>>>8,o[a+(l<<1)+1]=255&m[l];else if(14==d||12==d||10==d){var v=16-d;for(l=0;l<y;l++)t.decode._putsF(o,l*d,m[l]<<v)}else{if(8!=d)throw new Error(\"unsupported bit depth \"+d);for(l=0;l<y;l++)o[a+l]=m[l]}}else{var g=new t.JpegDecoder;g.parse(c);var b=g.getData({width:g.width,height:g.height,forceRGB:!0,isSourcePDF:!1});for(l=0;l<b.length;l++)o[a+l]=b[l]}6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodeOldJPEGInit=function(t,e,r,n){var i,a,s,u,c,f=216,l=0,h=0,p=!1,d=t.t513,m=d?d[0]:0,y=t.t514,v=y?y[0]:0,g=t.t324||t.t273||d,b=t.t530,w=0,_=0,x=t.t277?t.t277[0]:1,E=t.t515;if(g&&(h=g[0],p=g.length>1),!p){if(255==e[r]&&e[r+1]==f)return{jpegOffset:r};if(null!=d&&(255==e[r+m]&&e[r+m+1]==f?l=r+m:o(\"JPEGInterchangeFormat does not point to SOI\"),null==y?o(\"JPEGInterchangeFormatLength field is missing\"):(m>=h||m+v<=h)&&o(\"JPEGInterchangeFormatLength field value is invalid\"),null!=l))return{jpegOffset:l}}if(null!=b&&(w=b[0],_=b[1]),null!=d&&null!=y)if(v>=2&&m+v<=h){for(i=255==e[r+m+v-2]&&e[r+m+v-1]==f?new Uint8Array(v-2):new Uint8Array(v),s=0;s<i.length;s++)i[s]=e[r+m+s];o(\"Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables\")}else o(\"JPEGInterchangeFormat+JPEGInterchangeFormatLength > offset to first strip or tile\");if(null==i){var k=0,D=[];D[k++]=255,D[k++]=f;var S=t.t519;if(null==S)throw new Error(\"JPEGQTables tag is missing\");for(s=0;s<S.length;s++)for(D[k++]=255,D[k++]=219,D[k++]=0,D[k++]=67,D[k++]=s,u=0;u<64;u++)D[k++]=e[r+S[s]+u];for(c=0;c<2;c++){var A=t[0==c?\"t520\":\"t521\"];if(null==A)throw new Error((0==c?\"JPEGDCTables\":\"JPEGACTables\")+\" tag is missing\");for(s=0;s<A.length;s++){D[k++]=255,D[k++]=196;var M=19;for(u=0;u<16;u++)M+=e[r+A[s]+u];for(D[k++]=M>>>8,D[k++]=255&M,D[k++]=s|c<<4,u=0;u<16;u++)D[k++]=e[r+A[s]+u];for(u=0;u<M;u++)D[k++]=e[r+A[s]+16+u]}}if(D[k++]=255,D[k++]=192,D[k++]=0,D[k++]=8+3*x,D[k++]=8,D[k++]=t.height>>>8&255,D[k++]=255&t.height,D[k++]=t.width>>>8&255,D[k++]=255&t.width,D[k++]=x,1==x)D[k++]=1,D[k++]=17,D[k++]=0;else for(s=0;s<3;s++)D[k++]=s+1,D[k++]=0!=s?17:(15&w)<<4|15&_,D[k++]=s;null!=E&&0!=E[0]&&(D[k++]=255,D[k++]=221,D[k++]=0,D[k++]=4,D[k++]=E[0]>>>8&255,D[k++]=255&E[0]),i=new Uint8Array(D)}var O=-1;for(s=0;s<i.length-1;){if(255==i[s]&&192==i[s+1]){O=s;break}s++}if(-1==O){var C=new Uint8Array(i.length+10+3*x);C.set(i);var F=i.length;if(O=i.length,(i=C)[F++]=255,i[F++]=192,i[F++]=0,i[F++]=8+3*x,i[F++]=8,i[F++]=t.height>>>8&255,i[F++]=255&t.height,i[F++]=t.width>>>8&255,i[F++]=255&t.width,i[F++]=x,1==x)i[F++]=1,i[F++]=17,i[F++]=0;else for(s=0;s<3;s++)i[F++]=s+1,i[F++]=0!=s?17:(15&w)<<4|15&_,i[F++]=s}if(255==e[h]&&218==e[h+1]){var I=e[h+2]<<8|e[h+3];for((a=new Uint8Array(I+2))[0]=e[h],a[1]=e[h+1],a[2]=e[h+2],a[3]=e[h+3],s=0;s<I-2;s++)a[s+4]=e[h+s+4]}else{var B=0;if((a=new Uint8Array(8+2*x))[B++]=255,a[B++]=218,a[B++]=0,a[B++]=6+2*x,a[B++]=x,1==x)a[B++]=1,a[B++]=0;else for(s=0;s<3;s++)a[B++]=s+1,a[B++]=s<<4|s;a[B++]=0,a[B++]=63,a[B++]=0}return{jpegOffset:r,tables:i,sosMarker:a,sofPosition:O}},t.decode._decodeOldJPEG=function(e,r,n,i,o,a){var s,u,c,f,l=t.decode._decodeOldJPEGInit(e,r,n,i);if(null!=l.jpegOffset)for(s=n+i-l.jpegOffset,c=new Uint8Array(s),d=0;d<s;d++)c[d]=r[l.jpegOffset+d];else{for(u=l.tables.length,(c=new Uint8Array(u+l.sosMarker.length+i+2)).set(l.tables),f=u,c[l.sofPosition+5]=e.height>>>8&255,c[l.sofPosition+6]=255&e.height,c[l.sofPosition+7]=e.width>>>8&255,c[l.sofPosition+8]=255&e.width,255==r[n]&&r[n+1]==SOS||(c.set(l.sosMarker,f),f+=sosMarker.length),d=0;d<i;d++)c[f++]=r[n+d];c[f++]=255,c[f++]=EOI}var h=new t.JpegDecoder;h.parse(c);for(var p=h.getData({width:h.width,height:h.height,forceRGB:!0,isSourcePDF:!1}),d=0;d<p.length;d++)o[a+d]=p[d];e.t262&&6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodePackBits=function(t,e,r,n,i){for(var o=new Int8Array(t.buffer),a=new Int8Array(n.buffer),s=e+r;e<s;){var u=o[e];if(e++,u>=0&&u<128)for(var c=0;c<u+1;c++)a[i]=o[e],i++,e++;if(u>=-127&&u<0){for(c=0;c<1-u;c++)a[i]=o[e],i++;e++}}return i},t.decode._decodeThunder=function(t,e,r,n,i){for(var o=[0,1,0,-1],a=[0,1,2,3,0,-3,-2,-1],s=e+r,u=2*i,c=0;e<s;){var f=t[e],l=f>>>6,h=63&f;if(e++,3==l&&(c=15&h,n[u>>>1]|=c<<4*(1-u&1),u++),0==l)for(var p=0;p<h;p++)n[u>>>1]|=c<<4*(1-u&1),u++;if(2==l)for(p=0;p<2;p++){4!=(d=h>>>3*(1-p)&7)&&(c+=a[d],n[u>>>1]|=c<<4*(1-u&1),u++)}if(1==l)for(p=0;p<3;p++){var d;2!=(d=h>>>2*(2-p)&3)&&(c+=o[d],n[u>>>1]|=c<<4*(1-u&1),u++)}}},t.decode._dmap={1:0,\"011\":1,\"000011\":2,\"0000011\":3,\"010\":-1,\"000010\":-2,\"0000010\":-3},t.decode._lens=function(){var t=function(t,e,r,n){for(var i=0;i<e.length;i++)t[e[i]]=r+i*n},e=\"00110101,000111,0111,1000,1011,1100,1110,1111,10011,10100,00111,01000,001000,000011,110100,110101,101010,101011,0100111,0001100,0001000,0010111,0000011,0000100,0101000,0101011,0010011,0100100,0011000,00000010,00000011,00011010,00011011,00010010,00010011,00010100,00010101,00010110,00010111,00101000,00101001,00101010,00101011,00101100,00101101,00000100,00000101,00001010,00001011,01010010,01010011,01010100,01010101,00100100,00100101,01011000,01011001,01011010,01011011,01001010,01001011,00110010,00110011,00110100\",r=\"0000110111,010,11,10,011,0011,0010,00011,000101,000100,0000100,0000101,0000111,00000100,00000111,000011000,0000010111,0000011000,0000001000,00001100111,00001101000,00001101100,00000110111,00000101000,00000010111,00000011000,000011001010,000011001011,000011001100,000011001101,000001101000,000001101001,000001101010,000001101011,000011010010,000011010011,000011010100,000011010101,000011010110,000011010111,000001101100,000001101101,000011011010,000011011011,000001010100,000001010101,000001010110,000001010111,000001100100,000001100101,000001010010,000001010011,000000100100,000000110111,000000111000,000000100111,000000101000,000001011000,000001011001,000000101011,000000101100,000001011010,000001100110,000001100111\",n=\"11011,10010,010111,0110111,00110110,00110111,01100100,01100101,01101000,01100111,011001100,011001101,011010010,011010011,011010100,011010101,011010110,011010111,011011000,011011001,011011010,011011011,010011000,010011001,010011010,011000,010011011\",i=\"0000001111,000011001000,000011001001,000001011011,000000110011,000000110100,000000110101,0000001101100,0000001101101,0000001001010,0000001001011,0000001001100,0000001001101,0000001110010,0000001110011,0000001110100,0000001110101,0000001110110,0000001110111,0000001010010,0000001010011,0000001010100,0000001010101,0000001011010,0000001011011,0000001100100,0000001100101\",o=\"00000001000,00000001100,00000001101,000000010010,000000010011,000000010100,000000010101,000000010110,000000010111,000000011100,000000011101,000000011110,000000011111\";e=e.split(\",\"),r=r.split(\",\"),n=n.split(\",\"),i=i.split(\",\"),o=o.split(\",\");var a={},s={};return t(a,e,0,1),t(a,n,64,64),t(a,o,1792,64),t(s,r,0,1),t(s,i,64,64),t(s,o,1792,64),[a,s]}(),t.decode._decodeG4=function(e,r,n,i,o,a,s){for(var u=t.decode,c=r<<3,f=0,l=\"\",h=[],p=[],d=0;d<a;d++)p.push(0);p=u._makeDiff(p);for(var m=0,y=0,v=0,g=0,b=0,w=0,_=\"\",x=0,E=8*Math.ceil(a/8);c>>>3<r+n;){v=u._findDiff(p,m+(0==m?0:1),1-b),g=u._findDiff(p,v,b);var k=0;if(1==s&&(k=e[c>>>3]>>>7-(7&c)&1),2==s&&(k=e[c>>>3]>>>(7&c)&1),c++,l+=k,\"H\"==_){if(null!=u._lens[b][l]){var D=u._lens[b][l];l=\"\",f+=D,D<64&&(u._addNtimes(h,f,b),m+=f,b=1-b,f=0,0==--x&&(_=\"\"))}}else\"0001\"==l&&(l=\"\",u._addNtimes(h,g-m,b),m=g),\"001\"==l&&(l=\"\",_=\"H\",x=2),null!=u._dmap[l]&&(y=v+u._dmap[l],u._addNtimes(h,y-m,b),m=y,l=\"\",b=1-b);h.length==a&&\"\"==_&&(u._writeBits(h,i,8*o+w*E),b=0,w++,m=0,p=u._makeDiff(h),h=[])}},t.decode._findDiff=function(t,e,r){for(var n=0;n<t.length;n+=2)if(t[n]>=e&&t[n+1]==r)return t[n]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var r=1;r<t.length;r++)t[r-1]!=t[r]&&e.push(r,t[r]);return e.push(t.length,0,t.length,1),e},t.decode._decodeG2=function(e,r,n,i,o,a,s){for(var u=t.decode,c=r<<3,f=0,l=\"\",h=[],p=0,d=0,m=8*Math.ceil(a/8);c>>>3<r+n;){var y=0;1==s&&(y=e[c>>>3]>>>7-(7&c)&1),2==s&&(y=e[c>>>3]>>>(7&c)&1),c++,l+=y,null!=(f=u._lens[p][l])&&(u._addNtimes(h,f,p),l=\"\",f<64&&(p=1-p),h.length==a&&(u._writeBits(h,i,8*o+d*m),h=[],d++,p=0,7&c&&(c+=8-(7&c)),f>=64&&(c+=8)))}},t.decode._decodeG3=function(e,r,n,i,o,a,s,u){for(var c=t.decode,f=r<<3,l=0,h=\"\",p=[],d=[],m=0;m<a;m++)p.push(0);for(var y=0,v=0,g=0,b=0,w=0,_=-1,x=\"\",E=0,k=!0,D=8*Math.ceil(a/8);f>>>3<r+n;){g=c._findDiff(d,y+(0==y?0:1),1-w),b=c._findDiff(d,g,w);var S=0;if(1==s&&(S=e[f>>>3]>>>7-(7&f)&1),2==s&&(S=e[f>>>3]>>>(7&f)&1),f++,h+=S,k){if(null!=c._lens[w][h]){var A=c._lens[w][h];h=\"\",l+=A,A<64&&(c._addNtimes(p,l,w),w=1-w,l=0)}}else if(\"H\"==x){if(null!=c._lens[w][h]){A=c._lens[w][h];h=\"\",l+=A,A<64&&(c._addNtimes(p,l,w),y+=l,w=1-w,l=0,0==--E&&(x=\"\"))}}else\"0001\"==h&&(h=\"\",c._addNtimes(p,b-y,w),y=b),\"001\"==h&&(h=\"\",x=\"H\",E=2),null!=c._dmap[h]&&(v=g+c._dmap[h],c._addNtimes(p,v-y,w),y=v,h=\"\",w=1-w);h.endsWith(\"000000000001\")&&(_>=0&&c._writeBits(p,i,8*o+_*D),u&&(1==s&&(k=1==(e[f>>>3]>>>7-(7&f)&1)),2==s&&(k=1==(e[f>>>3]>>>(7&f)&1)),f++),h=\"\",w=0,_++,y=0,d=c._makeDiff(p),p=[])}p.length==a&&c._writeBits(p,i,8*o+_*D)},t.decode._addNtimes=function(t,e,r){for(var n=0;n<e;n++)t.push(r)},t.decode._writeBits=function(t,e,r){for(var n=0;n<t.length;n++)e[r+n>>>3]|=t[n]<<7-(r+n&7)},t.decode._decodeLZW=t.decode._decodeLZW=(u=0,c=0,f=0,l=0,h=function(){var t=r>>>3,e=(i[t]<<16|i[t+1]<<8|i[t+2])>>>24-(7&r)-c&(1<<c)-1;return r+=c,e},p=new Uint32Array(16384),d=0,m=function(t){c=t+1,u=l+1},y=function(t){for(var e=t<<2,r=p[e+2],n=s+r-1;65535!=e;)a[n--]=p[e],e=p[e+1];s+=r},v=function(t,e){var r=u<<2,n=t<<2;p[r]=p[3+(e<<2)],p[r+1]=n,p[r+2]=p[n+2]+1,p[r+3]=p[n+3],1+ ++u==1<<c&&12!=c&&c++},function(t,e,n,o,c,g){r=e<<3,i=t,a=o,s=c;var b=e+n<<3,w=0,_=0;for(function(t){if(t!=d){d=t,l=1+(f=1<<t);for(var e=0;e<l+1;e++)p[4*e]=p[4*e+3]=e,p[4*e+1]=65535,p[4*e+2]=1}}(g),m(g);r<b&&(w=h())!=l;){if(w==f){if(m(g),(w=h())==l)break;y(w)}else w<u?(y(w),v(_,w)):(v(_,_),y(u-1));_=w}return s}),t.tags={},t._types=function(){var t=new Array(250);t.fill(0);return{basic:{main:t=t.concat([0,0,0,0,4,3,3,3,3,3,0,0,3,0,0,0,3,0,0,2,2,2,2,4,3,0,0,3,4,4,3,3,5,5,3,2,5,5,0,0,0,0,4,4,0,0,3,3,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,2,2,3,5,5,3,0,3,3,4,4,4,3,4,0,0,0,0,0,0,0,0,0,3,3,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),rest:{33432:2,33434:5,33437:5,34665:4,34850:3,34853:4,34855:3,34864:3,34866:4,36864:7,36867:2,36868:2,37121:7,37377:10,37378:5,37380:10,37381:5,37383:3,37384:3,37385:3,37386:5,37510:7,37520:2,37521:2,37522:2,40960:7,40961:3,40962:4,40963:4,40965:4,41486:5,41487:5,41488:3,41985:3,41986:3,41987:3,41988:5,41989:3,41990:3,41993:3,41994:3,41995:7,41996:3,42032:2,42033:2,42034:5,42036:2,42037:2,59932:7}},gps:{main:[1,2,5,2,5,1,5,5,0,9],rest:{18:2,29:2}}}}(),t._readIFD=function(e,r,n,i,a,s){var u=e.readUshort(r,n);n+=2;var c={};s.debug&&o(\"   \".repeat(a),i.length-1,\">>>----------------\");for(var f=0;f<u;f++){var l=e.readUshort(r,n);n+=2;var h=e.readUshort(r,n);n+=2;var p=e.readUint(r,n);n+=4;var d=e.readUint(r,n);n+=4;var m=[];if(1==h||7==h){var y=p<5?n-4:d;y+p>r.buffer.byteLength&&(p=r.buffer.byteLength-y),m=new Uint8Array(r.buffer,y,p)}if(2==h){var v=p<5?n-4:d,g=r[v],b=Math.max(0,Math.min(p-1,r.length-v));g<128||0==b?m.push(e.readASCII(r,v,b)):m=new Uint8Array(r.buffer,v,b)}if(3==h)for(var w=0;w<p;w++)m.push(e.readUshort(r,(p<3?n-4:d)+2*w));if(4==h||13==h)for(w=0;w<p;w++)m.push(e.readUint(r,(p<2?n-4:d)+4*w));if(5==h||10==h){var _=5==h?e.readUint:e.readInt;for(w=0;w<p;w++)m.push([_(r,d+8*w),_(r,d+8*w+4)])}if(8==h)for(w=0;w<p;w++)m.push(e.readShort(r,(p<3?n-4:d)+2*w));if(9==h)for(w=0;w<p;w++)m.push(e.readInt(r,(p<2?n-4:d)+4*w));if(11==h)for(w=0;w<p;w++)m.push(e.readFloat(r,d+4*w));if(12==h)for(w=0;w<p;w++)m.push(e.readDouble(r,d+8*w));if(0==p||0!=m.length){if(s.debug&&o(\"   \".repeat(a),l,h,t.tags[l],m),c[\"t\"+l]=m,330==l&&c.t272&&\"DSLR-A100\"==c.t272[0]);else if(330==l||34665==l||34853==l||50740==l&&e.readUshort(r,e.readUint(m,0))<300||61440==l){var x=50740==l?[e.readUint(m,0)]:m,E=[];for(w=0;w<x.length;w++)t._readIFD(e,r,x[w],E,a+1,s);330==l&&(c.subIFD=E),34665==l&&(c.exifIFD=E[0]),34853==l&&(c.gpsiIFD=E[0]),50740==l&&(c.dngPrvt=E[0]),61440==l&&(c.fujiIFD=E[0])}if(37500==l&&s.parseMN){var k=m;if(\"Nikon\"==e.readASCII(k,0,5))c.makerNote=t.decode(k.slice(10).buffer)[0];else if(\"OLYMP\"==e.readASCII(k,0,5)||\"OM SYSTEM\"==e.readASCII(k,0,9)){var D=[8208,8224,8240,8256,8272],S=[];t._readIFD(e,k,77==k[1]?16:85==k[5]?12:8,S,a+1,s);var A=c.makerNote=S.pop();for(w=0;w<D.length;w++){var M=\"t\"+D[w];null!=A[M]&&(t._readIFD(e,k,A[M][0],S,a+1,s),A[M]=S.pop())}A.t12288&&(t._readIFD(e,A.t12288,0,S,a+1,s),A.t12288=S.pop())}else if(e.readUshort(r,d)<300&&e.readUshort(r,d+4)<=12){S=[];t._readIFD(e,r,d,S,a+1,s),c.makerNote=S[0]}}}else if(o(l,\"unknown TIFF tag type: \",h,\"num:\",p),0==f)return}return i.push(c),s.debug&&o(\"   \".repeat(a),\"<<<---------------\"),n},t._writeIFD=function(e,r,n,i,o){var a=Object.keys(o),s=a.length;o.exifIFD&&s--,o.gpsiIFD&&s--,e.writeUshort(n,i,s);for(var u=(i+=2)+12*s+4,c=0;c<a.length;c++){var f=a[c];if(\"t34665\"!=f&&\"t34853\"!=f){\"exifIFD\"==f&&(f=\"t34665\"),\"gpsiIFD\"==f&&(f=\"t34853\");var l=parseInt(f.slice(1)),h=r.main[l];if(null==h&&(h=r.rest[l]),null==h||0==h)throw new Error(\"unknown type of tag: \"+l);var p=o[f];if(34665==l)p=[u],u=t._writeIFD(e,r,n,u,o.exifIFD)[1];if(34853==l)p=[u],u=t._writeIFD(e,t._types.gps,n,u,o.gpsiIFD)[1];2==h&&(p=p[0]+\"\\0\");var d=p.length;e.writeUshort(n,i,l),i+=2,e.writeUshort(n,i,h),i+=2,e.writeUint(n,i,d);var m=[-1,1,1,2,4,8,0,1,0,4,8,0,8][h]*d,y=i+=4;if(m>4&&(e.writeUint(n,i,u),y=u),1==h||7==h)for(var v=0;v<d;v++)n[y+v]=p[v];else if(2==h)e.writeASCII(n,y,p);else if(3==h)for(v=0;v<d;v++)e.writeUshort(n,y+2*v,p[v]);else if(4==h)for(v=0;v<d;v++)e.writeUint(n,y+4*v,p[v]);else if(5==h||10==h){var g=5==h?e.writeUint:e.writeInt;for(v=0;v<d;v++){var b=p[v],w=b[0],_=b[1];if(null==w)throw\"e\";g(n,y+8*v,w),g(n,y+8*v+4,_)}}else if(9==h)for(v=0;v<d;v++)e.writeInt(n,y+4*v,p[v]);else{if(12!=h)throw h;for(v=0;v<d;v++)e.writeDouble(n,y+8*v,p[v])}m>4&&(u+=m+=1&m),i+=4}}return[i,u]},t.toRGBA8=function(t,e){function r(t){return t<.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}var n=t.width,i=t.height,a=n*i,s=t.data,u=new Uint8Array(4*a),c=t.t262?t.t262[0]:2,f=t.t258?Math.min(32,t.t258[0]):1;null==t.t262&&1==f&&(c=0);var l=t.t277?t.t277[0]:t.t258?t.t258.length:[1,1,3,1,1,4,3][c],h=t.t339?t.t339[0]:null;if(1==c&&32==f&&3!=h)throw\"e\";var p=Math.ceil(l*f*n/8);if(0==c){e=1/256;for(var d=0;d<i;d++){var m=d*p,y=d*n;if(1==f)for(var v=0;v<n;v++){var g=y+v<<2,b=s[m+(v>>3)]>>7-(7&v)&1;u[g]=u[g+1]=u[g+2]=255*(1-b),u[g+3]=255}if(4==f)for(v=0;v<n;v++){g=y+v<<2,b=s[m+(v>>1)]>>4-4*(1&v)&15;u[g]=u[g+1]=u[g+2]=17*(15-b),u[g+3]=255}if(8==f)for(v=0;v<n;v++){g=y+v<<2,b=s[m+v];u[g]=u[g+1]=u[g+2]=255-b,u[g+3]=255}if(16==f)for(v=0;v<n;v++){g=y+v<<2,b=s[(_=m+2*v)+1]<<8|s[_];u[g]=u[g+1]=u[g+2]=Math.min(255,255-~~(b*e)),u[g+3]=255}}}else if(1==c){null==e&&(e=1/256);var w=3&s.length?null:new Float32Array(s.buffer);for(d=0;d<i;d++){m=d*p,y=d*n;if(1==f)for(v=0;v<n;v++){g=y+v<<2,b=s[m+(v>>3)]>>7-(7&v)&1;u[g]=u[g+1]=u[g+2]=255*b,u[g+3]=255}if(2==f)for(v=0;v<n;v++){g=y+v<<2,b=s[m+(v>>2)]>>6-2*(3&v)&3;u[g]=u[g+1]=u[g+2]=85*b,u[g+3]=255}if(8==f)for(v=0;v<n;v++){g=y+v<<2,b=s[m+v*l];u[g]=u[g+1]=u[g+2]=b,u[g+3]=255}if(16==f)for(v=0;v<n;v++){g=y+v<<2,b=s[(_=m+2*v)+1]<<8|s[_];u[g]=u[g+1]=u[g+2]=Math.min(255,~~(b*e)),u[g+3]=255}if(32==f)for(v=0;v<n;v++){var _;g=y+v<<2,b=w[_=(m>>>2)+v];u[g]=u[g+1]=u[g+2]=~~(.5+255*b),u[g+3]=255}}}else if(2==c)if(8==f){if(1==l)for(v=0;v<a;v++)u[4*v]=u[4*v+1]=u[4*v+2]=s[v],u[4*v+3]=255;if(3==l)for(v=0;v<a;v++){var x=3*v;u[g=v<<2]=s[x],u[g+1]=s[x+1],u[g+2]=s[x+2],u[g+3]=255}if(l>=4)for(v=0;v<a;v++){x=v*l;u[g=v<<2]=s[x],u[g+1]=s[x+1],u[g+2]=s[x+2],u[g+3]=s[x+3]}}else if(16==f){if(4==l)for(v=0;v<a;v++){x=8*v+1;u[g=v<<2]=s[x],u[g+1]=s[x+2],u[g+2]=s[x+4],u[g+3]=s[x+6]}if(3==l)for(v=0;v<a;v++){x=6*v+1;u[g=v<<2]=s[x],u[g+1]=s[x+2],u[g+2]=s[x+4],u[g+3]=255}}else{if(32!=f)throw f;var E=new Float32Array(s.buffer),k=0;for(v=0;v<E.length;v++)k=Math.min(k,E[v]);if(k<0)for(v=0;v<s.length;v+=4){var D=s[v];s[v]=s[v+3],s[v+3]=D,D=s[v+1],s[v+1]=s[v+2],s[v+2]=D}var S=[];for(v=0;v<65536;v++)S.push(r(v/65535));for(v=0;v<E.length;v++){var A=Math.max(0,Math.min(1,E[v]));E[v]=S[~~(.5+65535*A)]}if(3==l)for(v=0;v<a;v++){x=3*v;u[g=v<<2]=~~(.5+255*E[x]),u[g+1]=~~(.5+255*E[x+1]),u[g+2]=~~(.5+255*E[x+2]),u[g+3]=255}else{if(4!=l)throw l;for(v=0;v<a;v++){x=4*v;u[g=v<<2]=~~(.5+255*E[x]),u[g+1]=~~(.5+255*E[x+1]),u[g+2]=~~(.5+255*E[x+2]),u[g+3]=~~(.5+255*E[x+3])}}}else if(3==c){var M=t.t320,O=1<<f,C=8==f&&l>1&&t.t338&&0!=t.t338[0];for(d=0;d<i;d++)for(var F=0;F<n;F++){g=(v=d*n+F)<<2;var I=0,B=d*p;if(1==f)I=s[B+(F>>>3)]>>>7-(7&F)&1;else if(2==f)I=s[B+(F>>>2)]>>>6-2*(3&F)&3;else if(4==f)I=s[B+(F>>>1)]>>>4-4*(1&F)&15;else{if(8!=f)throw f;I=s[B+F*l]}u[g]=M[I]>>8,u[g+1]=M[O+I]>>8,u[g+2]=M[O+O+I]>>8,u[g+3]=C?s[B+F*l+1]:255}}else if(5==c){var T=l>4?1:0;for(v=0;v<a;v++){g=v<<2;var L=v*l;if(window.UDOC){var P=s[L],j=s[L+1],N=s[L+2],R=s[L+3],z=UDOC.C.cmykToRgb([P*(1/255),j*(1/255),N*(1/255),R*(1/255)]);u[g]=~~(.5+255*z[0]),u[g+1]=~~(.5+255*z[1]),u[g+2]=~~(.5+255*z[2])}else{P=255-s[L],j=255-s[L+1],N=255-s[L+2],R=(255-s[L+3])*(1/255);u[g]=~~(P*R+.5),u[g+1]=~~(j*R+.5),u[g+2]=~~(N*R+.5)}u[g+3]=255*(1-T)+s[L+4]*T}}else if(6==c&&t.t278){var U=t.t278[0];for(d=0;d<i;d+=U){v=d*n;for(var G=U*n,H=0;H<G;H++){g=4*(v+H),N=s[(L=3*v+4*(H>>>1))+(1&H)];var Z=s[L+2]-128,q=s[L+3]-128,W=N+((q>>2)+(q>>3)+(q>>5)),Y=N-((Z>>2)+(Z>>4)+(Z>>5))-((q>>1)+(q>>3)+(q>>4)+(q>>5)),X=N+(Z+(Z>>1)+(Z>>2)+(Z>>6));u[g]=Math.max(0,Math.min(255,W)),u[g+1]=Math.max(0,Math.min(255,Y)),u[g+2]=Math.max(0,Math.min(255,X)),u[g+3]=255}}}else if(32845==c)for(d=0;d<i;d++)for(F=0;F<n;F++){g=4*(d*n+F);var V=s[(L=6*(d*n+F))+1]<<8|s[L],J=(V=Math.pow(2,(V+.5)/256-64),(s[L+3]+.5)/410),K=(s[L+5]+.5)/410,Q=9*J/(6*J-16*K+12),$=4*K/(6*J-16*K+12),tt=Q*V/$,et=(1-Q-$)*V/$;W=2.69*tt-1.276*(N=V)-.414*et,Y=-1.022*tt+1.978*N+.044*et,X=.061*tt-.224*N+1.163*et;u[g]=255*r(Math.min(W,1)),u[g+1]=255*r(Math.min(Y,1)),u[g+2]=255*r(Math.min(X,1)),u[g+3]=255}else o(\"Unknown Photometric interpretation: \"+c);return u},t.replaceIMG=function(e){null==e&&(e=document.getElementsByTagName(\"img\"));for(var r=[\"tif\",\"tiff\",\"dng\",\"cr2\",\"nef\"],n=0;n<e.length;n++){var i=e[n],o=i.getAttribute(\"src\");if(null!=o){var a=o.split(\".\").pop().toLowerCase();if(-1!=r.indexOf(a)){var s=new XMLHttpRequest;t._xhrs.push(s),t._imgs.push(i),s.open(\"GET\",o),s.responseType=\"arraybuffer\",s.onload=t._imgLoaded,s.send()}}}},t._xhrs=[],t._imgs=[],t._imgLoaded=function(e){var r=t._xhrs.indexOf(e.target),n=t._imgs[r];t._xhrs.splice(r,1),t._imgs.splice(r,1),n.setAttribute(\"src\",t.bufferToURI(e.target.response))},t.bufferToURI=function(e){var r=t.decode(e),n=r,i=0,o=n[0];r[0].subIFD&&(n=n.concat(r[0].subIFD));for(var a=0;a<n.length;a++){var s=n[a];if(!(null==s.t258||s.t258.length<3)){var u=s.t256*s.t257;u>i&&(i=u,o=s)}}t.decodeImage(e,o,r);var c=t.toRGBA8(o),f=o.width,l=o.height,h=document.createElement(\"canvas\");h.width=f,h.height=l;var p=h.getContext(\"2d\"),d=new ImageData(new Uint8ClampedArray(c.buffer),f,l);return p.putImageData(d,0,0),h.toDataURL()},t._binBE={nextZero:function(t,e){for(;0!=t[e];)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+1],n[1]=e[r+0],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.ui32[0]},readASCII:function(t,e,r){for(var n=\"\",i=0;i<r;i++)n+=String.fromCharCode(t[e+i]);return n},readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+3-i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+7-i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=r>>8&255,t[e+1]=255&r},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+3]=i[0],e[r+2]=i[1],e[r+1]=i[2],e[r+0]=i[3]},writeUint:function(t,e,r){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},writeASCII:function(t,e,r){for(var n=0;n<r.length;n++)t[e+n]=r.charCodeAt(n)},writeDouble:function(e,r,n){t._binBE.fl64[0]=n;for(var i=0;i<8;i++)e[r+i]=t._binBE.ui8[7-i]}},t._binBE.ui8=new Uint8Array(8),t._binBE.i16=new Int16Array(t._binBE.ui8.buffer),t._binBE.i32=new Int32Array(t._binBE.ui8.buffer),t._binBE.ui32=new Uint32Array(t._binBE.ui8.buffer),t._binBE.fl32=new Float32Array(t._binBE.ui8.buffer),t._binBE.fl64=new Float64Array(t._binBE.ui8.buffer),t._binLE={nextZero:t._binBE.nextZero,readUshort:function(t,e){return t[e+1]<<8|t[e]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.ui32[0]},readASCII:t._binBE.readASCII,readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=255&r,t[e+1]=r>>8&255},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+0]=i[0],e[r+1]=i[1],e[r+2]=i[2],e[r+3]=i[3]},writeUint:function(t,e,r){t[e]=r>>>0&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24&255},writeASCII:t._binBE.writeASCII},t._copyTile=function(t,e,r,n,i,o,a,s){for(var u=Math.min(e,i-a),c=Math.min(r,o-s),f=0;f<c;f++)for(var l=(s+f)*i+a,h=f*e,p=0;p<u;p++)n[l+p]=t[h+p]},t.LosslessJpegDecode=function(){var t,e;function r(){return t[e++]}function n(){return t[e++]<<8|t[e++]}function i(t){for(var e=r(),n=[0,0,0,255],i=[],a=0;a<16;a++)i[a]=r();for(a=0;a<16;a++)for(var s=0;s<i[a];s++){n[o(n,0,a+1,1)+3]=r()}var u=new Uint8Array(256);t[e]=[new Uint8Array(n),u];for(a=0;a<256;a++){for(var c=8,f=a,l=0;255==n[l+3]&&0!=c;)l=n[l+(f>>--c&1)];u[a]=l}}function o(t,e,r,n){if(255!=t[e+3])return 0;if(0==r)return e;for(var i=0;i<2;i++){0==t[e+i]&&(t[e+i]=t.length,t.push(0,0,n,255));var a=o(t,t[e+i],r-1,n+1);if(0!=a)return a}return 0}function a(t){for(var e=t.b,r=t.f;e<25&&t.a<t.d;){var n=t.data[t.a++];255!=n||t.c||t.a++,r=r<<8|n,e+=8}if(e<0)throw\"e\";t.b=e,t.f=r}function s(t,e){return e.b<t&&a(e),e.f>>(e.b-=t)&65535>>16-t}function u(t,e){var r=t[0],n=0,i=255;e.b<16&&a(e);var o=e.f>>e.b-8&255;for(i=r[(n=t[1][o])+3],e.b-=r[n+2];255==i;)i=r[(n=r[n+(e.f>>--e.b&1)])+3];return i}function c(t,e){return t<32768>>16-e&&(t+=1-(1<<e)),t}function f(t,e){var r=u(t,e);return 0==r?0:16==r?-32768:c(s(r,e),r)}function l(t,e,r,n,i,o){for(var a=0,s=0;s<o;s++){for(var u=s*e,c=0;c<e;c+=i){a++;for(var l=0;l<i;l++)t[u+c+l]=f(n[l],r)}if(0!=r.e&&a%r.e==0&&0!=s){for(var h=r.a,p=r.data;255!=p[h]||!(208<=p[h+1]&&p[h+1]<=215);)h--;r.a=h+2,r.f=0,r.b=0}}}function h(t,e){return c(s(t,e),t)}function p(t,e,r,n,i,o,a,s){for(var u=r*a,c=i;c<o;c++)t[c]+=1<<s-1;for(var f=a;f<u;f+=a)for(c=i;c<o;c++)t[f+c]+=t[f+c-a];for(var l=1;l<n;l++){var h=l*u;for(c=i;c<o;c++)t[h+c]+=t[h+c-u];for(f=a;f<u;f+=a)for(c=i;c<o;c++){var p=h+f+c,d=p-u,m=t[p-a],y=0;if(0==e)y=0;else if(1==e)y=m;else if(2==e)y=t[d];else if(3==e)y=t[d-a];else if(4==e)y=m+(t[d]-t[d-a]);else if(5==e)y=m+(t[d]-t[d-a]>>>1);else if(6==e)y=t[d]+(m-t[d-a]>>>1);else{if(7!=e)throw e;y=m+t[d]>>>1}t[p]+=y}}}return function(o){if(t=o,e=0,65496!=n())throw\"e\";for(var a=[],s=0,c=0,f=0,d=[],m=[],y=[],v=0,g=0,b=0;;){var w=n();if(65535!=w){var _=n();if(65475==w){c=r(),g=n(),b=n(),v=r();for(var x=0;x<v;x++){var E=r(),k=r();if(0!=r())throw\"e\";a[E]=[x,k>>4,15&k]}}else if(65476==w)for(var D=e+_-2;e<D;)i(m);else{if(65498==w){e++;for(x=0;x<v;x++){var S=a[r()];y[S[0]]=m[r()>>>4],d[S[0]]=S.slice(1)}s=r(),e+=2;break}65501==w?f=n():e+=_-2}}else e--}var A=new(c>8?Uint16Array:Uint8Array)(g*b*v),M={b:0,f:0,c:8==s,a:e,data:t,d:t.length,e:f};if(M.c)!function(r,n,i,o,a){for(var s=t.length-e,c=0;c<s;c+=4){var f=t[e+c];t[e+c]=t[e+c+3],t[e+c+3]=f,f=t[e+c+1],t[e+c+1]=t[e+c+2],t[e+c+2]=f}for(var l=0;l<a;l++)for(var p=32768,d=32768,m=0;m<n;m+=2){var y=u(o,i),v=u(o,i);0!=y&&(p+=h(y,i)),0!=v&&(d+=h(v,i)),r[l*n+m]=65535&p,r[l*n+m+1]=65535&d}}(A,b*v,M,y[0],g);else{var O=[],C=0,F=0;for(x=0;x<v;x++){var I=d[x];(G=I[0])>C&&(C=G),(U=I[1])>F&&(F=U),O.push(G*U)}if(1!=C||1!=F){if(3!=v||1!=O[1]||1!=O[2])throw\"e\";if(2!=C||1!=F&&2!=F)throw\"e\";var B=[],T=0;for(x=0;x<v;x++){for(var L=0;L<O[x];L++)B.push(y[x]);T+=O[x]}var P=b/C,j=g/F,N=P*j;l(A,P*T,M,B,T,j),p(A,s,P,j,T-2,T,T,c);var R=new Uint16Array(N*O[0]);if(2==C&&2==F){for(x=0;x<N;x++)R[4*x]=A[6*x],R[4*x+1]=A[6*x+1],R[4*x+2]=A[6*x+2],R[4*x+3]=A[6*x+3];p(R,s,4*P,j,0,1,1,c);for(x=0;x<N;x++)A[6*x]=R[4*x],A[6*x+1]=R[4*x+1],A[6*x+2]=R[4*x+2],A[6*x+3]=R[4*x+3]}if(2==C&&1==F){for(x=0;x<N;x++)R[2*x]=A[4*x],R[2*x+1]=A[4*x+1];p(R,s,2*P,j,0,1,1,c);for(x=0;x<N;x++)A[4*x]=R[2*x],A[4*x+1]=R[2*x+1]}for(var z=A.slice(0),U=0;U<g;U++)if(2==F)for(var G=0;G<b;G++){var H=((U>>>1)*P+(G>>>1))*T,Z=2*(1&U)+(1&G);A[q=(U*b+G)*v]=z[H+Z],A[q+1]=z[H+4],A[q+2]=z[H+5]}else for(G=0;G<b;G++){var q;H=(U*P+(G>>>1))*T,Z=1&G;A[q=(U*b+G)*v]=z[H+Z],A[q+1]=z[H+2],A[q+2]=z[H+3]}}else if(l(A,b*v,M,y,v,g),0==f)p(A,s,b,g,0,v,v,c);else{var W=Math.floor(f/b);for(U=0;U<g;U+=W){var Y=A.slice(U*b*v,(U+W)*b*v);p(Y,s,b,W,0,v,v,c),A.set(Y,U*b*v)}}}return A}}(),function(){var e=2,r=4,n=5,i=6,o=7,a=12,s=13,u=14,c=15,f=17;function l(t){var e={c:new Int8Array(2<<t.u)};return function(t,e,r){var n=[e,3*e+18,5*e+67,7*e+276,r];t.o=e,t.w=(n[4]+2*e)/(2*e+1)+1|0,t.v=Math.ceil(Math.log2(t.w)),t.t=9,function(t,e){for(var r=-e[4],n=0;r<=e[4];n++,r++)t[n]=r<=-e[3]?-4:r<=-e[2]?-3:r<=-e[1]?-2:r<-e[0]?-1:r<=e[0]?0:r<e[1]?1:r<e[2]?2:r<e[3]?3:4}(t.c,n)}(e,0,t.g),e}function h(t){for(var e=[[],[],[]],r=Math.max(2,t.w+32>>>6),n=0;n<3;n++)for(var i=0;i<41;i++)e[n][i]=[r,1];return e}function p(t,e){var r=0,n=8-t.a;t.j,t.a;if(e){if(e>=n)do{r<<=n,e-=n,r|=t[t.j]&(1<<n)-1,t.j++,n=8}while(e>=8);e&&(r<<=e,n-=e,r|=t[t.j]>>>n&(1<<e)-1),t.a=8-n}return r}function d(t,e,r,n,i,o,a,s){null==s&&(s=0);var u,c,f,l,h,d,m=o+1,y=m%2,v=0,g=n[i],b=n[i-1],w=n[i-2][m],_=b[m-1],x=b[m],E=b[m+1],k=g[m-1],D=g[m+1],S=Math.abs;if(y&&(f=S(E-x),l=S(w-x),h=S(_-x)),y){if(d=(d=f>h&&l<f?w+_:f<h&&l<h?w+E:E+_)+2*x>>>2,s)return void(g[m]=d);u=e.t*e.c[t.g+x-w]+e.c[t.g+_-x]}else d=x>_&&x>E||x<_&&x<E?D+k+2*x>>>2:k+D>>>1,u=e.t*e.c[t.g+x-_]+e.c[t.g+_-k];c=S(u);var A=function(t){for(var e=-1,r=0;!r;e++)r=t[t.j]>>>7-t.a&1,t.a++,t.a&=7,t.a||t.j++;return e}(r);if(A<t.n-e.v-1){var M=function(t,e){var r=0;if(e<t)for(;r<=14&&e<<++r<t;);return r}(a[c][0],a[c][1]);v=p(r,M)+(A<<M)}else v=p(r,e.v)+1;v=1&v?-1-(v>>>1):v>>>1,a[c][0]+=S(v),a[c][1]==t.f&&(a[c][0]>>>=1,a[c][1]>>>=1),a[c][1]++,d=u<0?d-v:d+v,t.i&&(d<0?d+=e.w:d>t.g&&(d-=e.w)),g[m]=d>=0?Math.min(d,t.g):0}function m(t,e,r){for(var n=t[0].length,i=e;i<=r;i++)t[i][0]=t[i-1][1],t[i][n-1]=t[i-1][n-2]}function y(t){m(t,o,a),m(t,e,r),m(t,c,f)}function v(t,e,n,i,o,a,u,c,f,l,h,p,m){for(var v=0,g=1,b=o<s&&o>r;g<t.m;)v<t.m&&(d(t,e,n,i,o,v,u[f],t.h&&(b&&l||!b&&(h||(v&p)==m))),d(t,e,n,i,a,v,u[f],t.h&&(!b&&l||b&&(h||(v&p)==m))),v+=2),v>8&&(d(t,e,n,i,o,g,c[f]),d(t,e,n,i,a,g,c[f]),g+=2);y(i)}function g(t,n,i,s,u,l){v(t,n,i,s,e,o,u,l,0,0,1,0,8),v(t,n,i,s,8,c,u,l,1,0,1,0,8),v(t,n,i,s,3,9,u,l,2,1,0,3,0),v(t,n,i,s,10,16,u,l,0,0,0,3,2),v(t,n,i,s,r,11,u,l,1,0,0,3,2),v(t,n,i,s,a,f,u,l,2,1,0,3,0)}function b(t,r,n,i,a,s){var u=s.length,f=t.l;a+1==t.s&&(f=t.e-a*t.l);for(var l=6*t.e*i+a*t.l,h=0;h<6;h++){for(var p=0;p<f;p++){var d,m=s[h%u][p%u];d=0==m?e+(h>>>1):2==m?c+(h>>>1):o+h;var y=t.h?(2*p/3&2147483646|p%3&1)+(p%3>>>1):p>>>1;r[l+p]=n[d][y+1]}l+=t.e}}t._decompressRAF=function(o,c){var p=function(e){var r=t._binBE.readUshort,n={b:r(e,0),i:e[2],C:e[3],u:e[4],q:r(e,5),k:r(e,7),e:r(e,9),l:r(e,11),s:e[13],d:r(e,14)};if(18771!=n.b||n.i>1||n.q<6||n.q%6||n.e<768||n.e%24||768!=n.l||n.k<n.l||n.k%n.l||n.k-n.e>=n.l||n.s>16||n.s!=n.k/n.l||n.s!=Math.ceil(n.e/n.l)||n.d!=n.q/6||12!=n.u&&14!=n.u&&16!=n.u||16!=n.C&&0!=n.C)throw\"Invalid data\";if(0==n.i)throw\"Not implemented. We need this file!\";return n.h=16==n.C,n.m=0|(n.h?2*n.l/3:n.l>>>1),n.A=n.m+2,n.f=64,n.g=(1<<n.u)-1,n.n=4*n.u,n}(o),d=function(e,r){var n=new Array(r.s),i=4*r.s,o=16+i;12&i&&(o+=16-(12&i));for(var a=0,s=16;a<r.s;s+=4){var u=t._binBE.readUint(e,s);n[a]=e.slice(o,o+u),n[a].j=0,n[a].a=0,o+=u,a++}if(o!=e.length)throw\"Invalid data\";return n}(o,p),m=l(p),v=new Int16Array(p.e*p.q);null==c&&(c=p.h?[[1,1,0,1,1,2],[1,1,2,1,1,0],[2,0,1,0,2,1],[1,1,2,1,1,0],[1,1,0,1,1,2],[0,2,1,2,0,1]]:[[0,1],[3,2]]);for(var w=[[0,3],[1,r],[n,11],[i,a],[s,16],[u,f]],_=[],x=0;x<18;x++)_[x]=new Uint16Array(p.A);for(var E=0;E<p.s;E++){var k=h(m),D=h(m);for(x=0;x<18;x++)for(var S=0;S<p.A;S++)_[x][S]=0;for(var A=0;A<p.d;A++){g(p,m,d[E],_,k,D);for(x=0;x<6;x++)for(S=0;S<p.A;S++)_[w[x][0]][S]=_[w[x][1]][S];b(p,v,_,A,E,c);for(x=e;x<18;x++)if(-1==[n,i,s,u].indexOf(x))for(S=0;S<p.A;S++)_[x][S]=0;y(_)}}return v}}()}(i,r(197))}()}).call(this,r(13)(t),r(7))},function(t,e,r){\"use strict\";var n=r(57),i=r(42),o=i.Gif,a=i.GifError,s=r(96).GifCodec,u=r(58).GifFrame,c=r(97);t.exports={BitmapImage:n,Gif:o,GifCodec:s,GifFrame:u,GifUtil:c,GifError:a}},function(t,e,r){t.exports=i;var n=r(31).EventEmitter;function i(){n.call(this)}r(24)(i,n),i.Readable=r(50),i.Writable=r(154),i.Duplex=r(155),i.Transform=r(156),i.PassThrough=r(157),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on(\"data\",i),t.on(\"drain\",o),t._isStdio||e&&!1===e.end||(r.on(\"end\",s),r.on(\"close\",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,\"function\"==typeof t.destroy&&t.destroy())}function c(t){if(f(),0===n.listenerCount(this,\"error\"))throw t}function f(){r.removeListener(\"data\",i),t.removeListener(\"drain\",o),r.removeListener(\"end\",s),r.removeListener(\"close\",u),r.removeListener(\"error\",c),t.removeListener(\"error\",c),r.removeListener(\"end\",f),r.removeListener(\"close\",f),t.removeListener(\"close\",f)}return r.on(\"error\",c),t.on(\"error\",c),r.on(\"end\",f),r.on(\"close\",f),t.on(\"close\",f),t.emit(\"pipe\",r),t}},function(t,e,r){\"use strict\";(function(e){void 0===e||!e.version||0===e.version.indexOf(\"v0.\")||0===e.version.indexOf(\"v1.\")&&0!==e.version.indexOf(\"v1.8.\")?t.exports={nextTick:function(t,r,n,i){if(\"function\"!=typeof t)throw new TypeError('\"callback\" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,r(7))},function(t,e,r){\"use strict\";t.exports=TypeError},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(\"object\"!==n(r))throw new TypeError(r+\"must be non-object\");for(var i in r)o(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var a={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},s={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,a)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e,r){return e=u(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function o(t){var e=\"function\"==typeof Map?new Map:void 0;return o=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(a())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&s(i,r.prototype),i}(t,arguments,u(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},o(t)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function f(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function l(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function h(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var p=f((function t(e,r,n){h(this,t),this.width=n.width,this.height=n.height,this.loops=n.loops,this.usesTransparency=n.usesTransparency,this.colorScope=n.colorScope,this.frames=r,this.buffer=e}));p.GlobalColorsPreferred=0,p.GlobalColorsOnly=1,p.LocalColorsOnly=2;var d=function(t){function e(t){var r;return h(this,e),r=i(this,e,[t]),t instanceof Error&&(r.stack=\"Gif\"+t.stack),r}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&s(t,e)}(e,t),f(e)}(o(Error));e.Gif=p,e.GifError=d},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.clone=c,e.addLast=l,e.addFirst=h,e.removeLast=p,e.removeFirst=d,e.insert=m,e.removeAt=y,e.replaceAt=v,e.getIn=g,e.set=b,e.setIn=w,e.update=x,e.updateIn=E,e.merge=k,e.mergeDeep=D,e.mergeIn=S,e.omit=A,e.addDefaults=M,e.default=void 0;var i=\"INVALID_ARGS\",o=!1;function a(t){throw new Error(t)}function s(t){var e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}var u={}.hasOwnProperty;function c(t){if(Array.isArray(t))return t.slice();for(var e=t,r=s(e),n={},i=0;i<r.length;i++){var o=r[i];n[o]=e[o]}return n}function f(t){return null!=t&&\"object\"===n(t)}function l(t,e){return Array.isArray(e)?t.concat(e):t.concat([e])}function h(t,e){return Array.isArray(e)?e.concat(t):[e].concat(t)}function p(t){return t.length?t.slice(0,t.length-1):t}function d(t){return t.length?t.slice(1):t}function m(t,e,r){return t.slice(0,e).concat(Array.isArray(r)?r:[r]).concat(t.slice(e))}function y(t,e){return e>=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function v(t,e,r){if(t[e]===r)return t;for(var n=t.length,i=Array(n),o=0;o<n;o++)i[o]=t[o];return i[e]=r,i}function g(t,e){if(Array.isArray(e)||a(o?\"A path array should be provided when calling getIn()\":i),null!=t){for(var r=t,n=0;n<e.length;n++){var s=e[n];if(void 0===(r=null!=r?r[s]:void 0))return r}return r}}function b(t,e,r){var n=t;if(null==n&&(n=\"number\"==typeof e?[]:{}),n[e]===r)return n;var i=c(n);return i[e]=r,i}function w(t,e,r){return e.length?_(t,e,r,0):r}function _(t,e,r,n){var i,o=e[n];n===e.length-1?i=r:i=_(f(t)&&f(t[o])?t[o]:\"number\"==typeof e[n+1]?[]:{},e,r,n+1);return b(t,o,i)}function x(t,e,r){return b(t,e,r(null==t?void 0:t[e]))}function E(t,e,r){return w(t,e,r(g(t,e)))}function k(t,e,r,n,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?O.call.apply(O,[null,!1,!1,t,e,r,n,i,o].concat(s)):O(!1,!1,t,e,r,n,i,o)}function D(t,e,r,n,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?O.call.apply(O,[null,!1,!0,t,e,r,n,i,o].concat(s)):O(!1,!0,t,e,r,n,i,o)}function S(t,e,r,n,i,o,a){var s=g(t,e);null==s&&(s={});for(var u=arguments.length,c=new Array(u>7?u-7:0),f=7;f<u;f++)c[f-7]=arguments[f];return w(t,e,c.length?O.call.apply(O,[null,!1,!1,s,r,n,i,o,a].concat(c)):O(!1,!1,s,r,n,i,o,a))}function A(t,e){for(var r=Array.isArray(e)?e:[e],n=!1,i=0;i<r.length;i++)if(u.call(t,r[i])){n=!0;break}if(!n)return t;for(var o={},a=s(t),c=0;c<a.length;c++){var f=a[c];r.indexOf(f)>=0||(o[f]=t[f])}return o}function M(t,e,r,n,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?O.call.apply(O,[null,!0,!1,t,e,r,n,i,o].concat(s)):O(!0,!1,t,e,r,n,i,o)}function O(t,e,r){var n=r;null==n&&a(o?\"At least one object should be provided to merge()\":i);for(var u=!1,l=0;l<(arguments.length<=3?0:arguments.length-3);l++){var h=l+3<3||arguments.length<=l+3?void 0:arguments[l+3];if(null!=h){var p=s(h);if(p.length)for(var d=0;d<=p.length;d++){var m=p[d];if(!t||void 0===n[m]){var y=h[m];e&&f(n[m])&&f(y)&&(y=O(t,e,n[m],y)),void 0!==y&&y!==n[m]&&(u||(u=!0,n=c(n)),n[m]=y)}}}}return n}var C={clone:c,addLast:l,addFirst:h,removeLast:p,removeFirst:d,insert:m,removeAt:y,replaceAt:v,getIn:g,set:b,setIn:w,update:x,updateIn:E,merge:k,mergeDeep:D,mergeIn:S,omit:A,addDefaults:M};e.default=C},function(t,e,r){var n=r(229);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){\"use strict\";(function(t){r.d(e,\"c\",(function(){return _})),r.d(e,\"a\",(function(){return E})),r.d(e,\"b\",(function(){return k}));var n=r(103),i=r.n(n),o=r(104),a=r.n(o),s=r(0),u=r(20),c=r(19),f=r(33);function l(t){return l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},l(t)}function h(){h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};c(x,a,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&n.call(k,a)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,o,a,s){var u=p(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==l(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(l(e)+\" is not iterable\")}return w.prototype=_,i(D,\"constructor\",{value:_,configurable:!0}),i(_,\"constructor\",{value:w,configurable:!0}),w.displayName=c(_,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),c(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),c(D,u,\"Generator\"),c(D,a,(function(){return this})),c(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function y(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){m(o,n,i,a,s,\"next\",t)}function s(t){m(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function v(t,e){return g.apply(this,arguments)}function g(){return(g=y(h().mark((function t(e,r){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.fromBuffer(e);case 2:if(!(n=t.sent)){t.next=5;break}return t.abrupt(\"return\",n.mime);case 5:if(!r){t.next=7;break}return t.abrupt(\"return\",c.c(r));case 7:return t.abrupt(\"return\",null);case 8:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function b(t){return t._exif&&t._exif.tags&&t._exif.tags.Orientation||1}function w(e){if(!(b(e)<2)){var r=function(t){var e=t.getWidth(),r=t.getHeight();switch(b(t)){case 1:default:return null;case 2:return function(t,r){return[e-t-1,r]};case 3:return function(t,n){return[e-t-1,r-n-1]};case 4:return function(t,e){return[t,r-e-1]};case 5:return function(t,e){return[e,t]};case 6:return function(t,e){return[e,r-t-1]};case 7:return function(t,n){return[e-n-1,r-t-1]};case 8:return function(t,r){return[e-r-1,t]}}}(e),n=b(e)>4;!function(e,r,n,i){for(var o=e.bitmap.data,a=e.bitmap.width,s=t.alloc(o.length),u=0;u<r;u++)for(var c=0;c<n;c++){var f=p(i(u,c),2),l=f[0],h=r*c+u<<2,d=a*f[1]+l<<2,m=o.readUInt32BE(d);s.writeUInt32BE(m,h)}e.bitmap.data=s,e.bitmap.width=r,e.bitmap.height=n}(e,n?e.bitmap.height:e.bitmap.width,n?e.bitmap.width:e.bitmap.height,r)}}function _(t,e,r){return x.apply(this,arguments)}function x(){return(x=y(h().mark((function t(e,r,n){var i,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v(e,r);case 2:if(\"string\"==typeof(i=t.sent)){t.next=5;break}return t.abrupt(\"return\",n(new Error(\"Could not find MIME for Buffer <\"+r+\">\")));case 5:if(this._originalMime=i.toLowerCase(),t.prev=6,o=this.getMIME(),!this.constructor.decoders[o]){t.next=12;break}this.bitmap=this.constructor.decoders[o](e),t.next=13;break;case 12:return t.abrupt(\"return\",s.d.call(this,\"Unsupported MIME type: \"+o,n));case 13:t.next=18;break;case 15:return t.prev=15,t.t0=t.catch(6),t.abrupt(\"return\",n.call(this,t.t0,this));case 18:try{this._exif=a.a.create(e).parse(),w(this)}catch(t){}return n.call(this,null,this),t.abrupt(\"return\",this);case 21:case\"end\":return t.stop()}}),t,this,[[6,15]])})))).apply(this,arguments)}function E(e,r){var n,i,o=this;if(e===u.AUTO&&(e=this.getMIME()),\"string\"!=typeof e)return s.d.call(this,\"mime must be a string\",r);if(\"function\"!=typeof r)return s.d.call(this,\"cb must be a function\",r);if(e=e.toLowerCase(),this._rgba&&this.constructor.hasAlpha[e]?this.bitmap.data=t.from(this.bitmap.data):this.bitmap.data=(n=this.constructor,i=this,new n(i.bitmap.width,i.bitmap.height,i._background).composite(i,0,0).bitmap).data,!this.constructor.encoders[e])return s.d.call(this,\"Unsupported MIME type: \"+e,r);var a=this.constructor.encoders[e](this);return a instanceof Promise?a.then((function(t){r.call(o,null,t)})):r.call(this,null,a),this}function k(t){return Object(f.a)(E,this,t)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t,n){var i=r(14),o=r(38),a=r(158),s=r(187),u=r(190),c=e.PNG=function(e){o.call(this),e=e||{},this.width=0|e.width,this.height=0|e.height,this.data=this.width>0&&this.height>0?t.alloc(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new a(e),this._parser.on(\"error\",this.emit.bind(this,\"error\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._parser.on(\"metadata\",this._metadata.bind(this)),this._parser.on(\"gamma\",this._gamma.bind(this)),this._parser.on(\"parsed\",function(t){this.data=t,this.emit(\"parsed\",t)}.bind(this)),this._packer=new s(e),this._packer.on(\"data\",this.emit.bind(this,\"data\")),this._packer.on(\"end\",this.emit.bind(this,\"end\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._packer.on(\"error\",this.emit.bind(this,\"error\"))};i.inherits(c,o),c.sync=u,c.prototype.pack=function(){return this.data&&this.data.length?(n.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit(\"error\",\"No data provided\"),this)},c.prototype.parse=function(t,e){var r,n;e&&(r=function(t){this.removeListener(\"error\",n),this.data=t,e(null,this)}.bind(this),n=function(t){this.removeListener(\"parsed\",r),e(t,null)}.bind(this),this.once(\"parsed\",r),this.once(\"error\",n));return this.end(t),this},c.prototype.write=function(t){return this._parser.write(t),!0},c.prototype.end=function(t){this._parser.end(t)},c.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit(\"metadata\",t)},c.prototype._gamma=function(t){this.gamma=t},c.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit(\"close\")},c.bitblt=function(t,e,r,n,i,o,a,s){if(n|=0,i|=0,o|=0,a|=0,s|=0,(r|=0)>t.width||n>t.height||r+i>t.width||n+o>t.height)throw new Error(\"bitblt reading outside image\");if(a>e.width||s>e.height||a+i>e.width||s+o>e.height)throw new Error(\"bitblt writing outside image\");for(var u=0;u<o;u++)t.data.copy(e.data,(s+u)*e.width+a<<2,(n+u)*t.width+r<<2,(n+u)*t.width+r+i<<2)},c.prototype.bitblt=function(t,e,r,n,i,o,a){return c.bitblt(this,t,e,r,n,i,o,a),this},c.adjustGamma=function(t){if(t.gamma){for(var e=0;e<t.height;e++)for(var r=0;r<t.width;r++)for(var n=t.width*e+r<<2,i=0;i<3;i++){var o=t.data[n+i]/255;o=Math.pow(o,1/2.2/t.gamma),t.data[n+i]=Math.round(255*o)}t.gamma=0}},c.prototype.adjustGamma=function(){c.adjustGamma(this)}}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;var n=r(126),i=r(129),o=r(26);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return o.EndOfStreamError}}),e.fromStream=function(t,e){return e=e||{},new n.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new i.BufferTokenizer(t,e)}},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&o.call(k,u)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractTokenizer=void 0;var c=r(26),f=function(){return e=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}},r=[{key:\"readToken\",value:(p=a(i().mark((function e(r){var n,o,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:this.position,o=t.alloc(r.len),e.next=4,this.readBuffer(o,{position:n});case 4:if(!(e.sent<r.len)){e.next=7;break}throw new c.EndOfStreamError;case 7:return e.abrupt(\"return\",r.get(o,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return p.apply(this,arguments)})},{key:\"peekToken\",value:(h=a(i().mark((function e(r){var n,o,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:this.position,o=t.alloc(r.len),e.next=4,this.peekBuffer(o,{position:n});case 4:if(!(e.sent<r.len)){e.next=7;break}throw new c.EndOfStreamError;case 7:return e.abrupt(\"return\",r.get(o,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return h.apply(this,arguments)})},{key:\"readNumber\",value:(l=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new c.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:\"peekNumber\",value:(f=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.peekBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new c.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:\"ignore\",value:(u=a(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===this.fileInfo.size){t.next=5;break}if(r=this.fileInfo.size-this.position,!(e>r)){t.next=5;break}return this.position+=r,t.abrupt(\"return\",r);case 5:return this.position+=e,t.abrupt(\"return\",e);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:\"close\",value:(o=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:\"normalizeOptions\",value:function(t,e){if(e&&void 0!==e.position&&e.position<this.position)throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");return e?{mayBeLess:!0===e.mayBeLess,offset:e.offset?e.offset:0,length:e.length?e.length:t.length-(e.offset?e.offset:0),position:e.position?e.position:this.position}:{mayBeLess:!1,offset:0,length:t.length,position:this.position}}}],r&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,n,o,u,f,l,h,p}();e.AbstractTokenizer=f}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function a(t,e,r){return e=f(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,u()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function s(t){var e=\"function\"==typeof Map?new Map:void 0;return s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&c(i,r.prototype),i}(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,t)},s(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages=\"End-Of-Stream\";var l=function(t){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,r),a(this,r,[e.defaultMessages])}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&c(t,e)}(r,t),n=r,o&&i(n.prototype,o),s&&i(n,s),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,o,s}(s(Error));e.EndOfStreamError=l},function(t,e,r){(e=t.exports=r(70)).Stream=e,e.Readable=e,e.Writable=r(52),e.Duplex=r(18),e.Transform=r(74),e.PassThrough=r(153)},function(t,e,r){var n=r(2),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,r)},a.alloc=function(t,e,r){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var n=i(t);return void 0!==e?\"string\"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},a.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return n.SlowBuffer(t)}},function(t,e,r){\"use strict\";(function(e,n,i){var o=r(39);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=g;var s,u=!e.browser&&[\"v0.10\",\"v0.9.\"].indexOf(e.version.slice(0,5))>-1?n:o.nextTick;g.WritableState=v;var c=Object.create(r(27));c.inherits=r(24);var f={deprecate:r(151)},l=r(71),h=r(51).Buffer,p=(void 0!==i?i:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var d,m=r(72);function y(){}function v(t,e){s=s||r(18),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(o.nextTick(i,n),o.nextTick(k,t,e),t._writableState.errorEmitted=!0,t.emit(\"error\",n)):(i(n),t._writableState.errorEmitted=!0,t.emit(\"error\",n),k(t,e))}(t,r,n,e,i);else{var a=x(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(t,r),n?u(w,t,r,a,i):w(t,r,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function g(t){if(s=s||r(18),!(d.call(g,this)||this instanceof s))return new g(t);this._writableState=new v(t,this),this.writable=!0,t&&(\"function\"==typeof t.write&&(this._write=t.write),\"function\"==typeof t.writev&&(this._writev=t.writev),\"function\"==typeof t.destroy&&(this._destroy=t.destroy),\"function\"==typeof t.final&&(this._final=t.final)),l.call(this)}function b(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function w(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit(\"drain\"))}(t,e),e.pendingcb--,n(),k(t,e)}function _(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,b(t,e,!0,e.length,i,\"\",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(b(t,e,!1,e.objectMode?1:c.length,c,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final((function(r){e.pendingcb--,r&&t.emit(\"error\",r),e.prefinished=!0,t.emit(\"prefinish\"),k(t,e)}))}function k(t,e){var r=x(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||(\"function\"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(E,t,e)):(e.prefinished=!0,t.emit(\"prefinish\")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit(\"finish\"))),r}c.inherits(g,l),v.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(v.prototype,\"buffer\",{get:f.deprecate((function(){return this.getBuffer()}),\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(t){}}(),\"function\"==typeof Symbol&&Symbol.hasInstance&&\"function\"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===g&&(t&&t._writableState instanceof v)}})):d=function(t){return t instanceof this},g.prototype.pipe=function(){this.emit(\"error\",new Error(\"Cannot pipe, not readable\"))},g.prototype.write=function(t,e,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=t,h.isBuffer(n)||n instanceof p);return s&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),\"function\"==typeof e&&(r=e,e=null),s?e=\"buffer\":e||(e=i.defaultEncoding),\"function\"!=typeof r&&(r=y),i.ended?function(t,e){var r=new Error(\"write after end\");t.emit(\"error\",r),o.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError(\"May not write null values to stream\"):\"string\"==typeof r||void 0===r||e.objectMode||(a=new TypeError(\"Invalid non-string/buffer chunk\")),a&&(t.emit(\"error\",a),o.nextTick(n,a),i=!1),i}(this,i,t,r))&&(i.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||\"string\"!=typeof e||(e=h.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i=\"buffer\",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else b(t,e,!1,s,n,i,o);return u}(this,i,s,t,e,r)),a},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||_(this,t))},g.prototype.setDefaultEncoding=function(t){if(\"string\"==typeof t&&(t=t.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((t+\"\").toLowerCase())>-1))throw new TypeError(\"Unknown encoding: \"+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(g.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(t,e,r){r(new Error(\"_write() is not implemented\"))},g.prototype._writev=null,g.prototype.end=function(t,e,r){var n=this._writableState;\"function\"==typeof t?(r=t,t=null,e=null):\"function\"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,k(t,e),r&&(e.finished?o.nextTick(r):t.once(\"finish\",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(g.prototype,\"destroyed\",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(7),r(117).setImmediate,r(10))},function(t,e,r){\"use strict\";(function(e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(160)();function o(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function a(t){return e.Buffer&&\"function\"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=r(14),u=Object.prototype.hasOwnProperty,c=Array.prototype.slice,f=\"foo\"===function(){}.name;function l(t){return Object.prototype.toString.call(t)}function h(t){return!a(t)&&(\"function\"==typeof e.ArrayBuffer&&(\"function\"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var p=t.exports=b,d=/\\s*function\\s+([^\\(\\s]*)\\s*/;function m(t){if(s.isFunction(t)){if(f)return t.name;var e=t.toString().match(d);return e&&e[1]}}function y(t,e){return\"string\"==typeof t?t.length<e?t:t.slice(0,e):t}function v(t){if(f||!s.isFunction(t))return s.inspect(t);var e=m(t);return\"[Function\"+(e?\": \"+e:\"\")+\"]\"}function g(t,e,r,n,i){throw new p.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function b(t,e){t||g(t,!0,e,\"==\",p.ok)}function w(t,e,r,i){if(t===e)return!0;if(a(t)&&a(e))return 0===o(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&\"object\"===n(t)||null!==e&&\"object\"===n(e)){if(h(t)&&h(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===o(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var u=(i=i||{actual:[],expected:[]}).actual.indexOf(t);return-1!==u&&u===i.expected.indexOf(e)||(i.actual.push(t),i.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=_(t),o=_(e);if(i&&!o||!i&&o)return!1;if(i)return w(t=c.call(t),e=c.call(e),r);var a,u,f=k(t),l=k(e);if(f.length!==l.length)return!1;for(f.sort(),l.sort(),u=f.length-1;u>=0;u--)if(f[u]!==l[u])return!1;for(u=f.length-1;u>=0;u--)if(!w(t[a=f[u]],e[a],r,n))return!1;return!0}(t,e,r,i))}return r?t===e:t==e}function _(t){return\"[object Arguments]\"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if(\"[object RegExp]\"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function E(t,e,r,n){var i;if(\"function\"!=typeof e)throw new TypeError('\"block\" argument must be a function');\"string\"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?\" (\"+r.name+\").\":\".\")+(n?\" \"+n:\".\"),t&&!i&&g(i,r,\"Missing expected exception\"+n);var o=\"string\"==typeof n,a=!t&&i&&!r;if((!t&&s.isError(i)&&o&&x(i,r)||a)&&g(i,r,\"Got unwanted exception\"+n),t&&i&&r&&!x(i,r)||!t&&i)throw i}p.AssertionError=function(t){this.name=\"AssertionError\",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return y(v(t.actual),128)+\" \"+t.operator+\" \"+y(v(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=m(e),o=n.indexOf(\"\\n\"+i);if(o>=0){var a=n.indexOf(\"\\n\",o+1);n=n.substring(a+1)}this.stack=n}}},s.inherits(p.AssertionError,Error),p.fail=g,p.ok=b,p.equal=function(t,e,r){t!=e&&g(t,e,r,\"==\",p.equal)},p.notEqual=function(t,e,r){t==e&&g(t,e,r,\"!=\",p.notEqual)},p.deepEqual=function(t,e,r){w(t,e,!1)||g(t,e,r,\"deepEqual\",p.deepEqual)},p.deepStrictEqual=function(t,e,r){w(t,e,!0)||g(t,e,r,\"deepStrictEqual\",p.deepStrictEqual)},p.notDeepEqual=function(t,e,r){w(t,e,!1)&&g(t,e,r,\"notDeepEqual\",p.notDeepEqual)},p.notDeepStrictEqual=function t(e,r,n){w(e,r,!0)&&g(e,r,n,\"notDeepStrictEqual\",t)},p.strictEqual=function(t,e,r){t!==e&&g(t,e,r,\"===\",p.strictEqual)},p.notStrictEqual=function(t,e,r){t===e&&g(t,e,r,\"!==\",p.notStrictEqual)},p.throws=function(t,e,r){E(!0,t,e,r)},p.doesNotThrow=function(t,e,r){E(!1,t,e,r)},p.ifError=function(t){if(t)throw t},p.strict=i((function t(e,r){e||g(e,!0,r,\"==\",t)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var k=Object.keys||function(t){var e=[];for(var r in t)u.call(t,r)&&e.push(r);return e}}).call(this,r(10))},function(t,e,r){\"use strict\";var n=r(172);t.exports=Function.prototype.bind||n},function(t,e,r){\"use strict\";var n=r(29)(\"%Object.defineProperty%\",!0)||!1;if(n)try{n({},\"a\",{value:1})}catch(t){n=!1}t.exports=n},function(t,e,r){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,r){\"use strict\";(function(e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}var o=function(){function t(){if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),0===arguments.length)throw new Error(\"constructor requires parameters\");var n=arguments.length<=0?void 0:arguments[0];if(null!==n&&\"object\"===r(n))if(n instanceof t){var i=n.bitmap;this.bitmap={width:i.width,height:i.height,data:new e(i.width*i.height*4)},i.data.copy(this.bitmap.data)}else{if(!(n.width&&n.height&&n.data))throw new Error(\"unrecognized constructor parameters\");this.bitmap=n}else{if(\"number\"!=typeof n||\"number\"!=typeof(arguments.length<=1?void 0:arguments[1]))throw new Error(\"unrecognized constructor parameters\");var o=n,a=arguments.length<=1?void 0:arguments[1],s=arguments.length<=2?void 0:arguments[2];this.bitmap={width:o,height:a},e.isBuffer(s)?this.bitmap.data=s:(this.bitmap.data=new e(o*a*4),\"number\"==typeof s&&this.fillRGBA(s))}}return i=t,(o=[{key:\"blit\",value:function(t,e,r,n,i,o,a){if(n+o>this.bitmap.width)throw new Error(\"copy exceeds width of source bitmap\");if(e+o>t.bitmap.width)throw new Error(\"copy exceeds width of target bitmap\");if(i+a>this.bitmap.height)throw new Error(\"copy exceeds height of source bitmap\");if(r+a>t.bitmap.height)throw new Erro(\"copy exceeds height of target bitmap\");for(var s=this.bitmap.data,u=t.bitmap.data,c=4*this.bitmap.width,f=4*t.bitmap.width,l=4*o,h=i*c+4*n,p=r*f+4*e;--a>=0;)s.copy(u,p,h,h+l),h+=c,p+=f;return this}},{key:\"fillRGBA\",value:function(t){for(var e=this.bitmap.data,r=4*this.bitmap.height,n=0;n<r;)e.writeUInt32BE(t,n),n+=4;for(;n<e.length;)e.copy(e,n,0,r),n+=r;return this}},{key:\"getRGBA\",value:function(t,e){var r=4*(e*this.bitmap.width+t);return this.bitmap.data.readUInt32BE(r)}},{key:\"getRGBASet\",value:function(){for(var t=new Set,e=this.bitmap.data,r=0;r<e.length;r+=4)t.add(e.readUInt32BE(r,!0));return t}},{key:\"greyscale\",value:function(){var t=this.bitmap.data;return this.scan(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){var i=Math.round(.299*t[n]+.587*t[n+1]+.114*t[n+2]);t[n]=i,t[n+1]=i,t[n+2]=i})),this}},{key:\"reframe\",value:function(e,r,n,i,o){var a,s=e<0?0:e,u=r<0?0:r,c=n+s>this.bitmap.width?this.bitmap.width-s:n,f=i+u>this.bitmap.height?this.bitmap.height-u:i,l=e<0?-e:0,h=r<0?-r:0;if(void 0===o){if(s!==e||u!=r||c!==n||f!==i)throw new GifError(\"fillRGBA required for this reframing\");a=new t(n,i)}else a=new t(n,i,o);return this.blit(a,l,h,s,u,c,f),this.bitmap=a.bitmap,this}},{key:\"scale\",value:function(t){if(1!==t){if(!Number.isInteger(t)||t<1)throw new Error(\"the scale must be an integer >= 1\");for(var r,n=this.bitmap.width,i=this.bitmap.height,o=n*t*4,a=this.bitmap.data,s=new e(i*o*t),u=0,c=0,f=0;f<i;++f){r=c;for(var l=0;l<n;++l){for(var h=a.readUInt32BE(u,!0),p=0;p<t;++p)s.writeUInt32BE(h,c),c+=4;u+=4}for(var d=1;d<t;++d)s.copy(s,c,r,c),c+=o,r+=o}return this.bitmap={width:n*t,height:i*t,data:s},this}}},{key:\"scanAllCoords\",value:function(t){for(var e=this.bitmap.width,r=this.bitmap.data.length,n=0,i=0,o=0;o<r;o+=4)t(n,i,o),++n===e&&(n=0,++i)}},{key:\"scanAllIndexes\",value:function(t){for(var e=this.bitmap.data.length,r=0;r<e;r+=4)t(r)}}])&&n(i.prototype,o),a&&n(i,a),Object.defineProperty(i,\"prototype\",{writable:!1}),i;var i,o,a}();t.exports=o}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function a(t,e,r){return e=u(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,s()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}var f=r(57),l=(r(42).GifError,function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(t=a(this,e,[].concat(i)),i[0]instanceof e){var s=i[0];t.xOffset=s.xOffset,t.yOffset=s.yOffset,t.disposalMethod=s.disposalMethod,t.delayCentisecs=s.delayCentisecs,t.interlaced=s.interlaced}else{var u=i[i.length-1],c={};\"object\"!==n(u)||u instanceof f||(c=u),t.xOffset=c.xOffset||0,t.yOffset=c.yOffset||0,t.disposalMethod=void 0!==c.disposalMethod?c.disposalMethod:e.DisposeToBackgroundColor,t.delayCentisecs=c.delayCentisecs||8,t.interlaced=c.interlaced||!1}return t}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&c(t,e)}(e,t),r=e,(o=[{key:\"getPalette\",value:function(){for(var t=new Set,e=this.bitmap.data,r=0,n=!1;r<e.length;){if(0===e[r+3])n=!0;else{var i=e.readUInt32BE(r,!0)>>8&16777215;t.add(i)}r+=4}var o=new Array(t.size),a=t.values();for(r=0;r<o.length;++r)o[r]=a.next().value;o.sort((function(t,e){return t-e}));var s=o.length;return n&&++s,{colors:o,usesTransparency:n,indexCount:s}}}])&&i(r.prototype,o),s&&i(r,s),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,o,s}(f));l.DisposeToAnything=0,l.DisposeNothing=1,l.DisposeToBackgroundColor=2,l.DisposeToPrevious=3,e.GifFrame=l},function(t,e,r){\"use strict\";function n(t,e,r,n){for(var i=t[e++],o=1<<i,a=o+1,s=a+1,u=i+1,c=(1<<u)-1,f=0,l=0,h=0,p=t[e++],d=new Int32Array(4096),m=null;;){for(;f<16&&0!==p;)l|=t[e++]<<f,f+=8,1===p?p=t[e++]:--p;if(f<u)break;var y=l&c;if(l>>=u,f-=u,y!==o){if(y===a)break;for(var v=y<s?y:m,g=0,b=v;b>o;)b=d[b]>>8,++g;var w=b;if(h+g+(v!==y?1:0)>n)return;r[h++]=w;var _=h+=g;for(v!==y&&(r[h++]=w),b=v;g--;)b=d[b],r[--_]=255&b,b>>=8;null!==m&&s<4096&&(d[s++]=m<<8|w,s>=c+1&&u<12&&(++u,c=c<<1|1)),m=y}else s=a+1,c=(1<<(u=i+1))-1,m=null}return r}try{e.GifWriter=function(t,e,r,n){var i=0,o=void 0===(n=void 0===n?{}:n).loop?null:n.loop,a=void 0===n.palette?null:n.palette;if(e<=0||r<=0||e>65535||r>65535)throw new Error(\"Width/Height invalid.\");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var u=0,c=0;if(null!==a){for(var f=s(a);f>>=1;)++u;if(f=1<<u,--u,void 0!==n.background){if((c=n.background)>=f)throw new Error(\"Background index out of range.\");if(0===c)throw new Error(\"Background index explicitly passed as 0.\")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=(null!==a?128:0)|u,t[i++]=c,t[i++]=0,null!==a)for(var l=0,h=a.length;l<h;++l){var p=a[l];t[i++]=p>>16&255,t[i++]=p>>8&255,t[i++]=255&p}if(null!==o){if(o<0||o>65535)throw new Error(\"Loop count invalid.\");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,r,n,o,u,c){if(!0===d&&(--i,d=!1),c=void 0===c?{}:c,e<0||r<0||e>65535||r>65535)throw new Error(\"x/y invalid.\");if(n<=0||o<=0||n>65535||o>65535)throw new Error(\"Width/Height invalid.\");if(u.length<n*o)throw new Error(\"Not enough pixels for the frame size.\");var f=!0,l=c.palette;if(null==l&&(f=!1,l=a),null==l)throw new Error(\"Must supply either a local or global palette.\");for(var h=s(l),p=0;h>>=1;)++p;h=1<<p;var m=void 0===c.delay?0:c.delay,y=void 0===c.disposal?0:c.disposal;if(y<0||y>3)throw new Error(\"Disposal out of range.\");var v=!1,g=0;if(void 0!==c.transparent&&null!==c.transparent&&(v=!0,(g=c.transparent)<0||g>=h))throw new Error(\"Transparent color index.\");if((0!==y||v||0!==m)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=y<<2|(!0===v?1:0),t[i++]=255&m,t[i++]=m>>8&255,t[i++]=g,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===f?128|p-1:0,!0===f)for(var b=0,w=l.length;b<w;++b){var _=l[b];t[i++]=_>>16&255,t[i++]=_>>8&255,t[i++]=255&_}return i=function(t,e,r,n){t[e++]=r;var i=e++,o=1<<r,a=o-1,s=o+1,u=s+1,c=r+1,f=0,l=0;function h(r){for(;f>=r;)t[e++]=255&l,l>>=8,f-=8,e===i+256&&(t[i]=255,i=e++)}function p(t){l|=t<<f,f+=c,h(8)}var d=n[0]&a,m={};p(o);for(var y=1,v=n.length;y<v;++y){var g=n[y]&a,b=d<<8|g,w=m[b];if(void 0===w){for(l|=d<<f,f+=c;f>=8;)t[e++]=255&l,l>>=8,f-=8,e===i+256&&(t[i]=255,i=e++);4096===u?(p(o),u=s+1,c=r+1,m={}):(u>=1<<c&&++c,m[b]=u++),d=g}else d=w}return p(d),p(s),h(1),i+1===e?t[i]=0:(t[i]=e-i-1,t[e++]=0),e}(t,i,p<2?2:p,u),i},this.end=function(){return!1===d&&(t[i++]=59,d=!0),i},this.getOutputBuffer=function(){return t},this.setOutputBuffer=function(e){t=e},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(t){i=t}},e.GifReader=function(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var r=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,o=t[e++],a=o>>7,s=1<<1+(7&o);t[e++],t[e++];var u=null,c=null;a&&(u=e,c=s,e+=3*s);var f=!0,l=[],h=0,p=null,d=0,m=null;for(this.width=r,this.height=i;f&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,m=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error(\"Invalid graphics extension block.\");var y=t[e++];h=t[e++]|t[e++]<<8,p=t[e++],1&y||(p=null),d=y>>2&7,e++;break;case 254:for(;;){if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}break;default:throw new Error(\"Unknown graphic control label: 0x\"+t[e-1].toString(16))}break;case 44:var v=t[e++]|t[e++]<<8,g=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,_=t[e++],x=_>>6&1,E=1<<1+(7&_),k=u,D=c,S=!1;_>>7&&(S=!0,k=e,D=E,e+=3*E);var A=e;for(e++;;){var M;if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}l.push({x:v,y:g,width:b,height:w,has_local_palette:S,palette_offset:k,palette_size:D,data_offset:A,data_length:e-A,transparent_index:p,interlaced:!!x,delay:h,disposal:d});break;case 59:f=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+t[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return m},this.frameInfo=function(t){if(t<0||t>=l.length)throw new Error(\"Frame index out of range.\");return l[t]},this.decodeAndBlitFrameBGRA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);n(t,o.data_offset,s,a);var u=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var f=o.width,l=r-f,h=f,p=4*(o.y*r+o.x),d=4*((o.y+o.height)*r+o.x),m=p,y=4*l;!0===o.interlaced&&(y+=4*r*7);for(var v=8,g=0,b=s.length;g<b;++g){var w=s[g];if(0===h&&(h=f,(m+=y)>=d&&(y=4*l+4*r*(v-1),m=p+(f+l)*(v<<1),v>>=1)),w===c)m+=4;else{var _=t[u+3*w],x=t[u+3*w+1],E=t[u+3*w+2];i[m++]=E,i[m++]=x,i[m++]=_,i[m++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);n(t,o.data_offset,s,a);var u=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var f=o.width,l=r-f,h=f,p=4*(o.y*r+o.x),d=4*((o.y+o.height)*r+o.x),m=p,y=4*l;!0===o.interlaced&&(y+=4*r*7);for(var v=8,g=0,b=s.length;g<b;++g){var w=s[g];if(0===h&&(h=f,(m+=y)>=d&&(y=4*l+4*r*(v-1),m=p+(f+l)*(v<<1),v>>=1)),w===c)m+=4;else{var _=t[u+3*w],x=t[u+3*w+1],E=t[u+3*w+2];i[m++]=_,i[m++]=x,i[m++]=E,i[m++]=255}--h}}}}catch(t){}},,function(t,e,r){var n=r(142),i=r(143);t.exports={encode:n,decode:i}},function(t,e,r){var n=r(195),i=r(196);t.exports={encode:n,decode:i}},function(t,e,r){\"use strict\";(function(t){var r={nearestNeighbor:function(t,e){for(var r=t.width,n=t.height,i=e.width,o=e.height,a=t.data,s=e.data,u=0;u<o;u++)for(var c=0;c<i;c++){var f=4*(u*i+c),l=4*(Math.floor(u*n/o)*r+Math.floor(c*r/i));s[f++]=a[l++],s[f++]=a[l++],s[f++]=a[l++],s[f++]=a[l++]}},bilinearInterpolation:function(t,e){for(var r=t.width,n=t.height,i=e.width,o=e.height,a=t.data,s=e.data,u=function(t,e,r,n,i){return e===n?r:Math.round((t-e)*i+(n-t)*r)},c=function(t,e,n,i,o,c,f,l){var h=4*(f*r+i)+e,p=4*(f*r+o)+e,d=u(n,i,a[h],o,a[p]);if(l===f)s[t+e]=d;else{p=4*(l*r+o)+e;var m=u(n,i,a[h=4*(l*r+i)+e],o,a[p]);s[t+e]=u(c,f,d,l,m)}},f=0;f<o;f++)for(var l=0;l<i;l++){var h=4*(f*i+l),p=l*r/i,d=Math.floor(p),m=Math.min(Math.ceil(p),r-1),y=f*n/o,v=Math.floor(y),g=Math.min(Math.ceil(y),n-1);c(h,0,p,d,m,y,v,g),c(h,1,p,d,m,y,v,g),c(h,2,p,d,m,y,v,g),c(h,3,p,d,m,y,v,g)}},_interpolate2D:function(e,r,n,i){for(var o=e.data,a=r.data,s=e.width,u=e.height,c=r.width,f=r.height,l=Math.max(1,Math.floor(s/c)),h=c*l,p=Math.max(1,Math.floor(u/f)),d=f*p,m=t.alloc(h*u*4),y=0;y<u;y++)for(var v=0;v<h;v++)for(var g=v*(s-1)/h,b=Math.floor(g),w=g-b,_=4*(y*s+b),x=4*(y*h+v),E=0;E<4;E++){var k=_+E,D=b>0?o[k-4]:2*o[k]-o[k+4],S=o[k],A=o[k+4],M=b<s-2?o[k+8]:2*o[k+4]-o[k];m[x+E]=i(D,S,A,M,w)}for(var O=t.alloc(h*d*4),C=0;C<d;C++)for(var F=0;F<h;F++)for(var I=C*(u-1)/d,B=Math.floor(I),T=I-B,L=4*(B*h+F),P=4*(C*h+F),j=0;j<4;j++){var N=L+j,R=B>0?m[N-4*h]:2*m[N]-m[N+4*h],z=m[N],U=m[N+4*h],G=B<u-2?m[N+8*h]:2*m[N+4*h]-m[N];O[P+j]=i(R,z,U,G,T)}var H=l*p;if(H>1)for(var Z=0;Z<f;Z++)for(var q=0;q<c;q++){for(var W=0,Y=0,X=0,V=0,J=0,K=0;K<p;K++)for(var Q=Z*p+K,$=0;$<l;$++){var tt=4*(Q*h+(q*l+$)),et=O[tt+3];et&&(W+=O[tt],Y+=O[tt+1],X+=O[tt+2],J++),V+=et}var rt=4*(Z*c+q);a[rt]=J?Math.round(W/J):0,a[rt+1]=J?Math.round(Y/J):0,a[rt+2]=J?Math.round(X/J):0,a[rt+3]=Math.round(V/H)}else r.data=O},bicubicInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var o=n-r-t+e,a=t-e-o,s=r-t,u=e;return Math.max(0,Math.min(255,o*(i*i*i)+a*(i*i)+s*i+u))}))},hermiteInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var o=e,a=.5*(r-t),s=t-2.5*e+2*r-.5*n,u=.5*(n-t)+1.5*(e-r);return Math.max(0,Math.min(255,Math.round(((u*i+s)*i+a)*i+o)))}))},bezierInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var o=1-i,a=e*o*o*o,s=3*(e+(r-t)/4)*o*o*i,u=3*(r-(n-e)/4)*o*i*i,c=r*i*i*i;return Math.max(0,Math.min(255,Math.round(a+s+u+c)))}))}};e.a=r}).call(this,r(2).Buffer)},function(t,e,r){var n=r(221),i=r(222),o=r(223),a=r(224),s=r(225),u=r(226),c=r(227);c.alea=n,c.xor128=i,c.xorwow=o,c.xorshift7=a,c.xor4096=s,c.tychei=u,t.exports=c},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.timeout=e.credentials=e.userAgent=e.header=e.json=e.form=e.query=void 0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=r(247);var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.baseUrl=e||\"\",this.middlewareId=1,this.middlewares=[]}return i(t,[{key:\"addMiddleware\",value:function(t){return t.middlewareId||(t.middlewareId=this.middlewareId++),this.middlewares.push(t),this}},{key:\"removeMiddleware\",value:function(t){return t.middlewareId?(this.middlewares[t.middlewareId]&&delete this.middlewares[t.middlewareId],this):this}},{key:\"fetch\",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(\"function\"!=typeof fetch)throw new TypeError(\"fetch() function not available\");e=n({headers:{}},e);var r=this.resolveUrl(t,e.uriParams||{}),i=[];return this.middlewares.reduce((function(t,e){return t.then((function(t){var r=e(t);return\"function\"==typeof r&&i.push(r),r&&\"function\"!=typeof r?r:t}))}),Promise.resolve({url:r,path:t,options:e})).then((function(t){return fetch(t.url,t.options)})).then((function(t){return i.reduce((function(t,e){return t.then((function(t){return e(t)||t}))}),Promise.resolve(t))}))}))},{key:\"request\",value:function(t,e){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return this.fetch(t,n({},r,{method:e}))}},{key:\"get\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"GET\",e)}},{key:\"post\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"POST\",e)}},{key:\"put\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"PUT\",e)}},{key:\"delete\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"DELETE\",e)}},{key:\"patch\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"PATCH\",e)}},{key:\"resolveUrl\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(t.toLowerCase().startsWith(\"http://\")||t.toLowerCase().startsWith(\"https://\")||t.startsWith(\"//\"))return t;var r=this.baseUrl.replace(/\\/+$/g,\"\"),n=\"\";if(t.startsWith(\"/\")){var i=r.indexOf(\"/\",r.indexOf(\"//\")+2);n=r.substr(0,-1===i?void 0:i)+t}else n=r+\"/\"+t;return n=n.replace(/\\{(\\w+)\\}/gi,(function(t,r){if(!e[r])throw new Error(\"Unknown path variable '\"+r+\"'.\");return encodeURIComponent(e[r])}))}}]),t}();e.default=a;e.query=function(){return function(t){if(t.options.query){var e=(0,o.stringify)(t.options.query);-1===t.url.indexOf(\"?\")&&(t.url=t.url.concat(\"?\")),t.url.endsWith(\"&\")||t.url.endsWith(\"?\")?t.url=t.url.concat(e):t.url=t.url.concat(\"&\",e)}}},e.form=function(){return function(t){t.options.form&&(t.options.body=(0,o.stringify)(t.options.form),t.options.headers[\"Content-Type\"]=\"application/x-www-form-urlencoded;charset=UTF-8\")}},e.json=function(){return function(t){return t.options.json&&(t.options.body=JSON.stringify(t.options.json),t.options.headers[\"Content-Type\"]=\"application/json\"),t.options.headers.Accept=\"application/json\",function(t){return-1===(t.headers.get(\"Content-Type\")||\"\").indexOf(\"json\")?t:t.json().then((function(e){return t.jsonData=e,t}))}}},e.header=function(t){return function(e){e.options.headers=n({},e.options.headers,t)}},e.userAgent=function(t){return function(e){var r=[];Object.keys(t).forEach((function(e){return r.push(e+\"/\"+t[e])})),e.options.headers[\"User-Agent\"]=r.join(\" \")}},e.credentials=function(t){return function(e){e.options.credentials=t}},e.timeout=function(t){return function(e){if(\"number\"!=typeof parseInt(t,10))throw new TypeError(\"function params not available\");var r=new Promise((function(e,r){return setTimeout(r,t,\"request timeout!\")}));return Promise.race([e,r])}}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}r.d(e,\"a\",(function(){return a}));var a=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.items=[]},(e=[{key:\"push\",value:function(t){this.items.push(t)}},{key:\"pop\",value:function(){if(this.isEmpty())throw\"empty stack\";return this.items.pop()}},{key:\"peek\",value:function(){return this.items[this.items.length-1]}},{key:\"isEmpty\",value:function(){return 0===this.items.length}},{key:\"size\",value:function(){return this.items.length}},{key:\"print\",value:function(){}}])&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}()},function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+t[e+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*u-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+p]=255&a,p+=d,a/=256,c-=8);t[r+p-d]|=128*m}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&o.call(k,u)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.readFile=e.writeFileSync=e.writeFile=e.read=e.open=e.close=e.stat=e.createReadStream=e.pathExists=void 0;var s=r(11);function u(){return(u=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.stat(e,(function(e,n){e?r(e):t(n)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function c(){return(c=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.close(e,(function(e){e?r(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=a(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.open(e,r,(function(e,r){e?n(e):t(r)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=a(i().mark((function t(e,r,n,o,a){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,i){s.read(e,r,n,o,a,(function(e,r,n){e?i(e):t({bytesRead:r,buffer:n})}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function h(){return(h=a(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.writeFile(e,r,(function(e){e?n(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function p(){return(p=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.readFile(e,(function(e,n){e?r(e):t(n)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.pathExists=s.existsSync,e.createReadStream=s.createReadStream,e.stat=function(t){return u.apply(this,arguments)},e.close=function(t){return c.apply(this,arguments)},e.open=function(t,e){return f.apply(this,arguments)},e.read=function(t,e,r,n,i){return l.apply(this,arguments)},e.writeFile=function(t,e){return h.apply(this,arguments)},e.writeFileSync=function(t,e){s.writeFileSync(t,e)},e.readFile=function(t){return p.apply(this,arguments)}},function(t,e){function r(t,e){switch(t){case 1:return e.nextUInt8();case 3:case 8:return e.nextUInt16();case 4:case 9:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error(\"Invalid format while decoding: \"+t)}}function n(t,e){var n,i,o=e.nextUInt16(),a=e.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(a),u=e.nextUInt32(),c=s*u;if(c>4&&(e=t.openWithOffset(e.nextUInt32())),2===a){var f=(n=e.nextString(u)).indexOf(\"\\0\");-1!==f&&(n=n.substr(0,f))}else if(7===a)n=e.nextBuffer(u);else if(0!==a)for(n=[],i=0;i<u;++i)n.push(r(a,e));return c<4&&e.skip(4-c),[o,n,a]}function i(t,e,r){var i,o,a=e.nextUInt16();for(o=0;o<a;++o)r((i=n(t,e))[0],i[1],i[2])}t.exports={IFD0:1,IFD1:2,GPSIFD:3,SubIFD:4,InteropIFD:5,parseTags:function(t,e){var r,n,o,a;try{r=function(t){if(\"Exif\\0\\0\"!==t.nextString(6))throw new Error(\"Invalid EXIF header\");var e=t.mark(),r=t.nextUInt16();if(18761===r)t.setBigEndian(!1);else{if(19789!==r)throw new Error(\"Invalid TIFF header\");t.setBigEndian(!0)}if(42!==t.nextUInt16())throw new Error(\"Invalid TIFF data\");return e}(t)}catch(t){return!1}var s=r.openWithOffset(t.nextUInt32()),u=this.IFD0;i(r,s,(function(t,r,i){switch(t){case 34853:o=r[0];break;case 34665:n=r[0];break;default:e(u,t,r,i)}}));var c=s.nextUInt32();if(0!==c){var f=r.openWithOffset(c);i(r,f,e.bind(null,this.IFD1))}if(o){var l=r.openWithOffset(o);i(r,l,e.bind(null,this.GPSIFD))}if(n){var h=r.openWithOffset(n),p=this.InteropIFD;i(r,h,(function(t,r,n){40965===t?a=r[0]:e(p,t,r,n)}))}if(a){var d=r.openWithOffset(a);i(r,d,e.bind(null,this.InteropIFD))}return!0}}},function(t,e,r){\"use strict\";(function(e,n){var i=r(39);t.exports=b;var o,a=r(146);b.ReadableState=g;r(31).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=r(71),c=r(51).Buffer,f=(void 0!==e?e:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var l=Object.create(r(27));l.inherits=r(24);var h=r(147),p=void 0;p=h&&h.debuglog?h.debuglog(\"stream\"):function(){};var d,m=r(148),y=r(72);l.inherits(b,u);var v=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function g(t,e){t=t||{};var n=e instanceof(o=o||r(18));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=r(73).StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function b(t){if(o=o||r(18),!(this instanceof b))return new b(t);this._readableState=new g(t,this),this.readable=!0,t&&(\"function\"==typeof t.read&&(this._read=t.read),\"function\"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,r,n,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,k(t)}(t,a)):(i||(o=function(t,e){var r;n=e,c.isBuffer(n)||n instanceof f||\"string\"==typeof e||void 0===e||t.objectMode||(r=new TypeError(\"Invalid non-string/buffer chunk\"));var n;return r}(a,e)),o?t.emit(\"error\",o):a.objectMode||e&&e.length>0?(\"string\"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),n?a.endEmitted?t.emit(\"error\",new Error(\"stream.unshift() after end event\")):_(t,a,e,!0):a.ended?t.emit(\"error\",new Error(\"stream.push() after EOF\")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?_(t,a,e,!1):S(t,a)):_(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function _(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit(\"data\",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&k(t)),S(t,e)}Object.defineProperty(b.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=y.destroy,b.prototype._undestroy=y.undestroy,b.prototype._destroy=function(t,e){this.push(null),e(t)},b.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:\"string\"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=c.from(t,e),e=\"\"),r=!0),w(this,t,e,!1,r)},b.prototype.unshift=function(t){return w(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return d||(d=r(73).StringDecoder),this._readableState.decoder=new d(t),this._readableState.encoding=t,this};var x=8388608;function E(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function k(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(p(\"emitReadable\",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(D,t):D(t))}function D(t){p(\"emit readable\"),t.emit(\"readable\"),C(t)}function S(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(A,t,e))}function A(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(p(\"maybeReadMore read 0\"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function M(t){p(\"readable nexttick read 0\"),t.read(0)}function O(t,e){e.reading||(p(\"resume read 0\"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit(\"resume\"),C(t),e.flowing&&!e.reading&&t.read(0)}function C(t){var e=t._readableState;for(p(\"flow\",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(\"\"):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=c.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function I(t){var e=t._readableState;if(e.length>0)throw new Error('\"endReadable()\" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(B,e,t))}function B(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit(\"end\"))}function T(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}b.prototype.read=function(t){p(\"read\",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return p(\"read: emitReadable\",e.length,e.ended),0===e.length&&e.ended?I(this):k(this),null;if(0===(t=E(t,e))&&e.ended)return 0===e.length&&I(this),null;var n,i=e.needReadable;return p(\"need readable\",i),(0===e.length||e.length-t<e.highWaterMark)&&p(\"length less than watermark\",i=!0),e.ended||e.reading?p(\"reading or ended\",i=!1):i&&(p(\"do read\"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(r,e))),null===(n=t>0?F(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&I(this)),null!==n&&this.emit(\"data\",n),n},b.prototype._read=function(t){this.emit(\"error\",new Error(\"_read() is not implemented\"))},b.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,p(\"pipe count=%d opts=%j\",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?f:b;function c(e,n){p(\"onunpipe\"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p(\"cleanup\"),t.removeListener(\"close\",v),t.removeListener(\"finish\",g),t.removeListener(\"drain\",l),t.removeListener(\"error\",y),t.removeListener(\"unpipe\",c),r.removeListener(\"end\",f),r.removeListener(\"end\",b),r.removeListener(\"data\",m),h=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function f(){p(\"onend\"),t.end()}o.endEmitted?i.nextTick(u):r.once(\"end\",u),t.on(\"unpipe\",c);var l=function(t){return function(){var e=t._readableState;p(\"pipeOnDrain\",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,\"data\")&&(e.flowing=!0,C(t))}}(r);t.on(\"drain\",l);var h=!1;var d=!1;function m(e){p(\"ondata\"),d=!1,!1!==t.write(e)||d||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==T(o.pipes,t))&&!h&&(p(\"false write response, pause\",o.awaitDrain),o.awaitDrain++,d=!0),r.pause())}function y(e){p(\"onerror\",e),b(),t.removeListener(\"error\",y),0===s(t,\"error\")&&t.emit(\"error\",e)}function v(){t.removeListener(\"finish\",g),b()}function g(){p(\"onfinish\"),t.removeListener(\"close\",v),b()}function b(){p(\"unpipe\"),r.unpipe(t)}return r.on(\"data\",m),function(t,e,r){if(\"function\"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,\"error\",y),t.once(\"close\",v),t.once(\"finish\",g),t.emit(\"pipe\",r),o.flowing||(p(\"pipe resume\"),r.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit(\"unpipe\",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var a=T(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit(\"unpipe\",this,r)),this},b.prototype.on=function(t,e){var r=u.prototype.on.call(this,t,e);if(\"data\"===t)!1!==this._readableState.flowing&&this.resume();else if(\"readable\"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&k(this):i.nextTick(M,this))}return r},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var t=this._readableState;return t.flowing||(p(\"resume\"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(O,t,e))}(this,t)),this},b.prototype.pause=function(){return p(\"call pause flowing=%j\",this._readableState.flowing),!1!==this._readableState.flowing&&(p(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this},b.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on(\"end\",(function(){if(p(\"wrapped end\"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on(\"data\",(function(i){(p(\"wrapped data\"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&\"function\"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<v.length;o++)t.on(v[o],this.emit.bind(this,v[o]));return this._read=function(e){p(\"wrapped _read\",e),n&&(n=!1,t.resume())},this},Object.defineProperty(b.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=F}).call(this,r(10),r(7))},function(t,e,r){t.exports=r(31).EventEmitter},function(t,e,r){\"use strict\";var n=r(39);function i(t,e){t.emit(\"error\",e)}t.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,r){\"use strict\";var n=r(152).Buffer,i=n.isEncoding||function(t){switch((t=\"\"+t)&&t.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return\"utf8\";for(var e;;)switch(t){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return t;default:if(e)return;t=(\"\"+t).toLowerCase(),e=!0}}(t);if(\"string\"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error(\"Unknown encoding: \"+t);return e||t}(t),this.encoding){case\"utf16le\":this.text=u,this.end=c,e=4;break;case\"utf8\":this.fillLast=s,e=4;break;case\"base64\":this.text=f,this.end=l,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,\"�\";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,\"�\";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,\"�\"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString(\"utf16le\",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(\"utf16le\",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(\"utf16le\",0,r)}return e}function f(t,e){var r=(t.length-e)%3;return 0===r?t.toString(\"base64\",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(\"base64\",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+this.lastChar.toString(\"base64\",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):\"\"}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return\"\";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return\"\";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||\"\"},o.prototype.end=function(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+\"�\":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=a(e[n]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=a(e[n]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString(\"utf8\",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString(\"utf8\",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,r){\"use strict\";t.exports=a;var n=r(18),i=Object.create(r(27));function o(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit(\"error\",new Error(\"write callback called multiple times\"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);n.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(\"function\"==typeof t.transform&&(this._transform=t.transform),\"function\"==typeof t.flush&&(this._flush=t.flush)),this.on(\"prefinish\",s)}function s(){var t=this;\"function\"==typeof this._flush?this._flush((function(e,r){u(t,e,r)})):u(this,null,null)}function u(t,e,r){if(e)return t.emit(\"error\",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error(\"Calling transform done when ws.length != 0\");if(t._transformState.transforming)throw new Error(\"Calling transform done when still transforming\");return t.push(null)}i.inherits=r(24),i.inherits(a,n),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,r){throw new Error(\"_transform() is not implemented\")},a.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit(\"close\")}))}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=Object.prototype.toString;t.exports=function(t){var e=i.call(t),r=\"[object Arguments]\"===e;return r||(r=\"[object Array]\"!==e&&null!==t&&\"object\"===n(t)&&\"number\"==typeof t.length&&t.length>=0&&\"[object Function]\"===i.call(t.callee)),r}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}t.exports=function(){if(\"function\"!=typeof Symbol||\"function\"!=typeof Object.getOwnPropertySymbols)return!1;if(\"symbol\"===n(Symbol.iterator))return!0;var t={},e=Symbol(\"test\"),r=Object(e);if(\"string\"==typeof e)return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(e))return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if(\"function\"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if(\"function\"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(\"function\"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,r){\"use strict\";t.exports=SyntaxError},function(t,e,r){\"use strict\";var n=r(29)(\"%Object.getOwnPropertyDescriptor%\",!0);if(n)try{n([],\"length\")}catch(t){n=null}t.exports=n},function(t,e,r){\"use strict\";t.exports=function(t,e,r,n){for(var i=65535&t,o=t>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},function(t,e,r){\"use strict\";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var o=n,a=i+r;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return~t}},function(t,e,r){\"use strict\";(function(e,n){var i=r(14),o=r(38),a=t.exports=function(){o.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding=\"utf8\",this.writable=!0};i.inherits(a,o),a.prototype.read=function(t,r){this._reads.push({length:Math.abs(t),allowLess:t<0,func:r}),e.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit(\"drain\"))}.bind(this))},a.prototype.write=function(t,e){return this.writable?(r=n.isBuffer(t)?t:n.from(t,e||this._encoding),this._buffers.push(r),this._buffered+=r.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit(\"error\",new Error(\"Stream not writable\")),!1);var r},a.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},a.prototype.destroySoon=a.prototype.end,a.prototype._end=function(){this._reads.length>0&&this.emit(\"error\",new Error(\"Unexpected end of input\")),this.destroy()},a.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit(\"close\"))},a.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},a.prototype._processRead=function(t){this._reads.shift();for(var e=0,r=0,i=n.alloc(t.length);e<t.length;){var o=this._buffers[r++],a=Math.min(o.length,t.length-e);o.copy(i,e,0,a),e+=a,a!==o.length&&(this._buffers[--r]=o.slice(a))}r>0&&this._buffers.splice(0,r),this._buffered-=t.length,t.func.call(this,i)},a.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit(\"error\",t)}}}).call(this,r(7),r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(83),i=r(84);function o(t,e,r){var n=t*e;return 8!==r&&(n=Math.ceil(n/(8/r))),n}var a=t.exports=function(t,e){var r=t.width,i=t.height,a=t.interlace,s=t.bpp,u=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],a)for(var c=n.getImagePasses(r,i),f=0;f<c.length;f++)this._images.push({byteWidth:o(c[f].width,s,u),height:c[f].height,lineIndex:0});else this._images.push({byteWidth:o(r,s,u),height:i,lineIndex:0});this._xComparison=8===u?s:16===u?2*s:1};a.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},a.prototype._unFilterType1=function(t,e,r){for(var n=this._xComparison,i=n-1,o=0;o<r;o++){var a=t[1+o],s=o>i?e[o-n]:0;e[o]=a+s}},a.prototype._unFilterType2=function(t,e,r){for(var n=this._lastLine,i=0;i<r;i++){var o=t[1+i],a=n?n[i]:0;e[i]=o+a}},a.prototype._unFilterType3=function(t,e,r){for(var n=this._xComparison,i=n-1,o=this._lastLine,a=0;a<r;a++){var s=t[1+a],u=o?o[a]:0,c=a>i?e[a-n]:0,f=Math.floor((c+u)/2);e[a]=s+f}},a.prototype._unFilterType4=function(t,e,r){for(var n=this._xComparison,o=n-1,a=this._lastLine,s=0;s<r;s++){var u=t[1+s],c=a?a[s]:0,f=s>o?e[s-n]:0,l=s>o&&a?a[s-n]:0,h=i(f,c,l);e[s]=u+h}},a.prototype._reverseFilterLine=function(t){var r,n=t[0],i=this._images[this._imageIndex],o=i.byteWidth;if(0===n)r=t.slice(1,o+1);else switch(r=e.alloc(o),n){case 1:this._unFilterType1(t,r,o);break;case 2:this._unFilterType2(t,r,o);break;case 3:this._unFilterType3(t,r,o);break;case 4:this._unFilterType4(t,r,o);break;default:throw new Error(\"Unrecognised filter type - \"+n)}this.write(r),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=r,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var r=[],i=t%8,o=e%8,a=(t-i)/8,s=(e-o)/8,u=0;u<n.length;u++){for(var c=n[u],f=a*c.x.length,l=s*c.y.length,h=0;h<c.x.length&&c.x[h]<i;h++)f++;for(var p=0;p<c.y.length&&c.y[p]<o;p++)l++;f>0&&l>0&&r.push({width:f,height:l,index:u})}return r},e.getInterlaceIterator=function(t){return function(e,r,i){var o=e%n[i].x.length,a=(e-o)/n[i].x.length*8+n[i].x[o],s=r%n[i].y.length;return 4*a+((r-s)/n[i].y.length*8+n[i].y[s])*t*4}}},function(t,e,r){\"use strict\";t.exports=function(t,e,r){var n=t+e-r,i=Math.abs(n-t),o=Math.abs(n-e),a=Math.abs(n-r);return i<=o&&i<=a?t:o<=a?e:r}},function(t,e,r){\"use strict\";(function(e){var n=r(30),i=r(86),o=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[n.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[n.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[n.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[n.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[n.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[n.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};o.prototype.start=function(){this.read(n.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(t){for(var e=n.PNG_SIGNATURE,r=0;r<e.length;r++)if(t[r]!==e[r])return void this.error(new Error(\"Invalid file signature\"));this.read(8,this._parseChunkBegin.bind(this))},o.prototype._parseChunkBegin=function(t){for(var r=t.readUInt32BE(0),o=t.readUInt32BE(4),a=\"\",s=4;s<8;s++)a+=String.fromCharCode(t[s]);var u=Boolean(32&t[4]);if(this._hasIHDR||o===n.TYPE_IHDR){if(this._crc=new i,this._crc.write(e.from(a)),this._chunks[o])return this._chunks[o](r);u?this.read(r+4,this._skipChunk.bind(this)):this.error(new Error(\"Unsupported critical chunk type \"+a))}else this.error(new Error(\"Expected IHDR on beggining\"))},o.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},o.prototype._parseChunkEnd=function(t){var e=t.readInt32BE(0),r=this._crc.crc32();this._options.checkCRC&&r!==e?this.error(new Error(\"Crc error - \"+e+\" - \"+r)):this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleIHDR=function(t){this.read(t,this._parseIHDR.bind(this))},o.prototype._parseIHDR=function(t){this._crc.write(t);var e=t.readUInt32BE(0),r=t.readUInt32BE(4),i=t[8],o=t[9],a=t[10],s=t[11],u=t[12];if(8===i||4===i||2===i||1===i||16===i)if(o in n.COLORTYPE_TO_BPP_MAP)if(0===a)if(0===s)if(0===u||1===u){this._colorType=o;var c=n.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:r,depth:i,interlace:Boolean(u),palette:Boolean(o&n.COLORTYPE_PALETTE),color:Boolean(o&n.COLORTYPE_COLOR),alpha:Boolean(o&n.COLORTYPE_ALPHA),bpp:c,colorType:o}),this._handleChunkEnd()}else this.error(new Error(\"Unsupported interlace method\"));else this.error(new Error(\"Unsupported filter method\"));else this.error(new Error(\"Unsupported compression method\"));else this.error(new Error(\"Unsupported color type\"));else this.error(new Error(\"Unsupported bit depth \"+i))},o.prototype._handlePLTE=function(t){this.read(t,this._parsePLTE.bind(this))},o.prototype._parsePLTE=function(t){this._crc.write(t);for(var e=Math.floor(t.length/3),r=0;r<e;r++)this._palette.push([t[3*r],t[3*r+1],t[3*r+2],255]);this.palette(this._palette),this._handleChunkEnd()},o.prototype._handleTRNS=function(t){this.simpleTransparency(),this.read(t,this._parseTRNS.bind(this))},o.prototype._parseTRNS=function(t){if(this._crc.write(t),this._colorType===n.COLORTYPE_PALETTE_COLOR){if(0===this._palette.length)return void this.error(new Error(\"Transparency chunk must be after palette\"));if(t.length>this._palette.length)return void this.error(new Error(\"More transparent colors than palette size\"));for(var e=0;e<t.length;e++)this._palette[e][3]=t[e];this.palette(this._palette)}this._colorType===n.COLORTYPE_GRAYSCALE&&this.transColor([t.readUInt16BE(0)]),this._colorType===n.COLORTYPE_COLOR&&this.transColor([t.readUInt16BE(0),t.readUInt16BE(2),t.readUInt16BE(4)]),this._handleChunkEnd()},o.prototype._handleGAMA=function(t){this.read(t,this._parseGAMA.bind(this))},o.prototype._parseGAMA=function(t){this._crc.write(t),this.gamma(t.readUInt32BE(0)/n.GAMMA_DIVISION),this._handleChunkEnd()},o.prototype._handleIDAT=function(t){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-t,this._parseIDAT.bind(this,t))},o.prototype._parseIDAT=function(t,e){if(this._crc.write(e),this._colorType===n.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw new Error(\"Expected palette not found\");this.inflateData(e);var r=t-e.length;r>0?this._handleIDAT(r):this._handleChunkEnd()},o.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},o.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=[];!function(){for(var t=0;t<256;t++){for(var e=t,r=0;r<8;r++)1&e?e=3988292384^e>>>1:e>>>=1;n[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e<t.length;e++)this._crc=n[255&(this._crc^t[e])]^this._crc>>>8;return!0},i.prototype.crc32=function(){return~this._crc},i.crc32=function(t){for(var e=-1,r=0;r<t.length;r++)e=n[255&(e^t[r])]^e>>>8;return~e}},function(t,e,r){\"use strict\";(function(t){var n=r(83),i=[function(){},function(t,e,r,n){if(n===e.length)throw new Error(\"Ran out of data\");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=255},function(t,e,r,n){if(n+1>=e.length)throw new Error(\"Ran out of data\");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=e[n+1]},function(t,e,r,n){if(n+2>=e.length)throw new Error(\"Ran out of data\");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=255},function(t,e,r,n){if(n+3>=e.length)throw new Error(\"Ran out of data\");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=e[n+3]}],o=[function(){},function(t,e,r,n){var i=e[0];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=n},function(t,e,r){var n=e[0];t[r]=n,t[r+1]=n,t[r+2]=n,t[r+3]=e[1]},function(t,e,r,n){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=n},function(t,e,r){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=e[3]}];function a(t,e,r,n,o,a){for(var s=t.width,u=t.height,c=t.index,f=0;f<u;f++)for(var l=0;l<s;l++){var h=r(l,f,c);i[n](e,o,h,a),a+=n}return a}function s(t,e,r,n,i,a){for(var s=t.width,u=t.height,c=t.index,f=0;f<u;f++){for(var l=0;l<s;l++){var h=i.get(n),p=r(l,f,c);o[n](e,h,p,a)}i.resetAfterLine()}}e.dataToBitMap=function(e,r){var i,o,u=r.width,c=r.height,f=r.depth,l=r.bpp,h=r.interlace;8!==f&&(i=function(t,e){var r=[],n=0;function i(){if(n===t.length)throw new Error(\"Ran out of data\");var i,o,a,s,u,c,f,l,h=t[n];switch(n++,e){default:throw new Error(\"unrecognised depth\");case 16:f=t[n],n++,r.push((h<<8)+f);break;case 4:f=15&h,l=h>>4,r.push(l,f);break;case 2:u=3&h,c=h>>2&3,f=h>>4&3,l=h>>6&3,r.push(l,f,c,u);break;case 1:i=1&h,o=h>>1&1,a=h>>2&1,s=h>>3&1,u=h>>4&1,c=h>>5&1,f=h>>6&1,l=h>>7&1,r.push(l,f,c,u,s,a,o,i)}}return{get:function(t){for(;r.length<t;)i();var e=r.slice(0,t);return r=r.slice(t),e},resetAfterLine:function(){r.length=0},end:function(){if(n!==t.length)throw new Error(\"extra data found\")}}}(e,f)),o=f<=8?t.alloc(u*c*4):new Uint16Array(u*c*4);var p,d,m=Math.pow(2,f)-1,y=0;if(h)p=n.getImagePasses(u,c),d=n.getInterlaceIterator(u,c);else{var v=0;d=function(){var t=v;return v+=4,t},p=[{width:u,height:c}]}for(var g=0;g<p.length;g++)8===f?y=a(p[g],o,d,l,e,y):s(p[g],o,d,l,i,m);if(8===f){if(y!==e.length)throw new Error(\"extra data found\")}else i.end();return o}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){t.exports=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=r.depth,o=r.width,a=r.height,s=r.colorType,u=r.transColor,c=r.palette,f=t;return 3===s?function(t,e,r,n,i){for(var o=0,a=0;a<n;a++)for(var s=0;s<r;s++){var u=i[t[o]];if(!u)throw new Error(\"index \"+t[o]+\" not in palette\");for(var c=0;c<4;c++)e[o+c]=u[c];o+=4}}(t,f,o,a,c):(u&&function(t,e,r,n,i){for(var o=0,a=0;a<n;a++)for(var s=0;s<r;s++){var u=!1;if(1===i.length?i[0]===t[o]&&(u=!0):i[0]===t[o]&&i[1]===t[o+1]&&i[2]===t[o+2]&&(u=!0),u)for(var c=0;c<4;c++)e[o+c]=0;o+=4}}(t,f,o,a,u),8===i||n||(16===i&&(f=e.alloc(o*a*4)),function(t,e,r,n,i){for(var o=Math.pow(2,i)-1,a=0,s=0;s<n;s++)for(var u=0;u<r;u++){for(var c=0;c<4;c++)e[a+c]=Math.floor(255*t[a+c]/o+.5);a+=4}}(t,f,o,a,i))),f}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(30),i=r(86),o=r(188),a=r(189),s=r(28),u=t.exports=function(t){if(this._options=t,t.deflateChunkSize=t.deflateChunkSize||32768,t.deflateLevel=null!=t.deflateLevel?t.deflateLevel:9,t.deflateStrategy=null!=t.deflateStrategy?t.deflateStrategy:3,t.inputHasAlpha=null==t.inputHasAlpha||t.inputHasAlpha,t.deflateFactory=t.deflateFactory||s.createDeflate,t.bitDepth=t.bitDepth||8,t.colorType=\"number\"==typeof t.colorType?t.colorType:n.COLORTYPE_COLOR_ALPHA,t.inputColorType=\"number\"==typeof t.inputColorType?t.inputColorType:n.COLORTYPE_COLOR_ALPHA,-1===[n.COLORTYPE_GRAYSCALE,n.COLORTYPE_COLOR,n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(t.colorType))throw new Error(\"option color type:\"+t.colorType+\" is not supported at present\");if(-1===[n.COLORTYPE_GRAYSCALE,n.COLORTYPE_COLOR,n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(t.inputColorType))throw new Error(\"option input color type:\"+t.inputColorType+\" is not supported at present\");if(8!==t.bitDepth&&16!==t.bitDepth)throw new Error(\"option bit depth:\"+t.bitDepth+\" is not supported at present\")};u.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},u.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},u.prototype.filterData=function(t,e,r){var i=o(t,e,r,this._options),s=n.COLORTYPE_TO_BPP_MAP[this._options.colorType];return a(i,e,r,this._options,s)},u.prototype._packChunk=function(t,r){var n=r?r.length:0,o=e.alloc(n+12);return o.writeUInt32BE(n,0),o.writeUInt32BE(t,4),r&&r.copy(o,8),o.writeInt32BE(i.crc32(o.slice(4,o.length-4)),o.length-4),o},u.prototype.packGAMA=function(t){var r=e.alloc(4);return r.writeUInt32BE(Math.floor(t*n.GAMMA_DIVISION),0),this._packChunk(n.TYPE_gAMA,r)},u.prototype.packIHDR=function(t,r){var i=e.alloc(13);return i.writeUInt32BE(t,0),i.writeUInt32BE(r,4),i[8]=this._options.bitDepth,i[9]=this._options.colorType,i[10]=0,i[11]=0,i[12]=0,this._packChunk(n.TYPE_IHDR,i)},u.prototype.packIDAT=function(t){return this._packChunk(n.TYPE_IDAT,t)},u.prototype.packIEND=function(){return this._packChunk(n.TYPE_IEND,null)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=t.exports=function(t){this._buffer=t,this._reads=[]};n.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})},n.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}if(this._reads.length>0)throw new Error(\"There are some read requests waitng on finished stream\");if(this._buffer.length>0)throw new Error(\"unrecognised content at end of stream\")}},function(t,e,r){\"use strict\";t.exports=function(t,e,r,n){for(var i=65535&t,o=t>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},function(t,e,r){\"use strict\";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var o=n,a=i+r;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return~t}},function(t,e,r){\"use strict\";var n=r(15),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r=\"\",a=0;a<e;a++)r+=String.fromCharCode(t[a]);return r}a[254]=a[254]=1,e.string2buf=function(t){var e,r,i,o,a,s=t.length,u=0;for(o=0;o<s;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),u+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(u),a=0,o=0;a<u;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,o,s=e||t.length,c=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)c[n++]=i;else if((o=a[i])>4)c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<s;)i=i<<6|63&t[r++],o--;o>1?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return u(c,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+a[t[r]]>e?r:e}},function(t,e,r){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}var a=r(59),s=r(42),u=s.Gif,c=s.GifError;function f(){var t=r(97);return f=function(){return t},t}var l=r(58).GifFrame,h=function(){return e=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this._transparentRGB=null,\"number\"==typeof e.transparentRGB&&0!==e.transparentRGB&&(this._transparentRGBA=256*e.transparentRGB),this._testInitialBufferSize=0},r=[{key:\"decodeGif\",value:function(t){try{var e;try{e=new a.GifReader(t)}catch(t){throw new c(t)}for(var r=e.numFrames(),n=[],i={width:e.width,height:e.height,loops:e.loopCount(),usesTransparency:!1},o=0;o<r;++o){var s=this._decodeFrame(e,o,i.usesTransparency);n.push(s.frame),s.usesTransparency&&(i.usesTransparency=!0)}return Promise.resolve(new u(t,n,i))}catch(t){return Promise.reject(t)}}},{key:\"encodeGif\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{if(null===t||0===t.length)throw new c(\"there are no frames\");var r=f().getMaxDimensions(t);return(e=Object.assign({},e)).width=r.maxWidth,e.height=r.maxHeight,void 0===e.loops&&(e.loops=0),e.colorScope=e.colorScope||u.GlobalColorsPreferred,Promise.resolve(this._encodeGif(t,e))}catch(t){return Promise.reject(t)}}},{key:\"_decodeFrame\",value:function(e,r,n){var i,o;try{if(i=e.frameInfo(r),o=new t(e.width*e.height*4),e.decodeAndBlitFrameRGBA(r,o),i.width!==e.width||i.height!==e.height){if(i.y&&(o=o.slice(i.y*e.width*4)),e.width>i.width)for(var a=0;a<i.height;++a)o.copy(o,a*i.width*4,4*(i.x+a*e.width),4*(i.x+a*e.width)+4*i.width);o=o.slice(0,i.width*i.height*4)}}catch(t){throw new c(t)}var s=!1;if(null===this._transparentRGBA){if(!n)for(var u=3;u<o.length;u+=4)0===o[u]&&(s=!0,u=o.length)}else for(var f=3;f<o.length;f+=4)0===o[f]&&(o.writeUInt32BE(this._transparentRGBA,f-3),s=!0);return{frame:new l(i.width,i.height,o,{xOffset:i.x,yOffset:i.y,disposalMethod:i.disposal,interlaced:i.interlaced,delayCentisecs:i.delay}),usesTransparency:s}}},{key:\"_encodeGif\",value:function(e,r){var n;if(r.colorScope===u.LocalColorsOnly)n=f().getColorInfo(e,0);else if(!(n=f().getColorInfo(e,256)).colors){if(r.colorScope===u.GlobalColorsOnly)throw new c(\"Too many color indexes for global color table\");r.colorScope=u.LocalColorsOnly}r.usesTransparency=n.usesTransparency;var i=n.palettes;return r.colorScope===u.LocalColorsOnly?function(e,r,n,i){var o,s={loop:r.loops},f=new t(n);try{o=new a.GifWriter(f,r.width,r.height,s)}catch(t){throw new c(t)}for(var l=0;l<e.length;++l)f=g(o,l,e[l],i[l],!0);return new u(f.slice(0,o.end()),e,r)}(e,r,2e3,i):function(e,r,n,i){var o={colors:i.colors.slice(),usesTransparency:i.usesTransparency};m(o);var s,f={palette:o.colors,loop:r.loops},l=new t(n);try{s=new a.GifWriter(l,r.width,r.height,f)}catch(t){throw new c(t)}for(var h=0;h<e.length;++h)l=g(s,h,e[h],i,!1);return new u(l.slice(0,s.end()),e,r)}(e,r,2e3,n)}},{key:\"_getSizeEstimateGlobal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;var r=968,n=v(t);return e.forEach((function(t){r+=y(t,n)})),r}},{key:\"_getSizeEstimateLocal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;for(var r=200,n=0;n<e.length;++n){var i=v(t[n]);r+=y(e[n],i)}return r}}],r&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,n}();function p(t,e){var r=t.indexOf(e);return-1===r?null:r}function d(t,e){for(var r,n=0,i=t.length-1;n<=i;)if(t[r=Math.floor((n+i)/2)]>e)i=r-1;else{if(!(t[r]<e))return r;n=r+1}return null}function m(t){var e=t.colors;t.usesTransparency&&e.push(0);for(var r=e.length,n=2;r>n;)n<<=1;e.length=n,e.fill(0,r)}function y(t,e){var r=t.bitmap.width*t.bitmap.height;return r=Math.ceil(r*e/8),100+(r+=Math.ceil(r/255))+768}function v(t){var e=t.indexCount,r=0;for(--e;e;)++r,e>>=1;return r>0?r:1}function g(e,r,n,i,o){if(n.interlaced)throw new c(\"writing interlaced GIFs is not supported\");var a=function(e,r,n){for(var i=n.colors,o=i.length<=8?p:d,a=r.bitmap.data,s=new t(a.length/4),u=i.length,f=0,l=0;f<a.length;){if(0!==a[f+3]){var h=a.readUInt32BE(f,!0)>>8&16777215;s[l]=o(i,h)}else s[l]=u;f+=4,++l}if(n.usesTransparency){if(256===u)throw new c(\"Frame \".concat(e,\" already has 256 colors\")+\"and so can't use transparency\")}else u=null;return{buffer:s,transparentIndex:u}}(r,n,i),s={delay:n.delayCentisecs,disposal:n.disposalMethod,transparent:a.transparentIndex};o&&(m(i),s.palette=i.colors);try{for(var u,f=e.getOutputBuffer(),l=e.getOutputBufferPosition(),h=!0;h;)if(u=e.addFrame(n.xOffset,n.yOffset,n.bitmap.width,n.bitmap.height,a.buffer,s),h=!1,u>=f.length-1){var y=new t(1.5*f.length);f.copy(y),e.setOutputBuffer(y),e.setOutputBufferPosition(l),f=y,h=!0}return f}catch(t){throw new c(t)}}e.GifCodec=h}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(11),i=r(206),o=r(57),a=r(58).GifFrame,s=r(42).GifError,u=r(96).GifCodec,c=[\".jpg\",\".jpeg\",\".png\",\".bmp\"],f=new u;function l(t,e,r,n,o){var a=Array.isArray(t)?t:[t];if(o){if([\"FloydSteinberg\",\"FalseFloydSteinberg\",\"Stucki\",\"Atkinson\",\"Jarvis\",\"Burkes\",\"Sierra\",\"TwoSierra\",\"SierraLite\"].indexOf(o.ditherAlgorithm)<0)throw new Error(\"Invalid ditherAlgorithm '\".concat(o.ditherAlgorithm,\"'\"));void 0===o.serpentine&&(o.serpentine=!0),void 0===o.minimumColorDistanceToDither&&(o.minimumColorDistanceToDither=0),void 0===o.calculateErrorLikeGIMP&&(o.calculateErrorLikeGIMP=!1)}var s,u=new i.distance.Euclidean,c=new i.palette[e](u,r,n);s=o?new i.image.ErrorDiffusionArray(u,i.image.ErrorDiffusionArrayKernel[o.ditherAlgorithm],o.serpentine,o.minimumColorDistanceToDither,o.calculateErrorLikeGIMP):new i.image.NearestColor(u);var f=[];a.forEach((function(t){for(var e=t.bitmap.data,r=new ArrayBuffer(e.length),n=new Uint32Array(r),o=0,a=0;o<e.length;o+=4,++a)n[a]=e.readUInt32LE(o,!0);var s=i.utils.PointContainer.fromUint32Array(n,t.bitmap.width,t.bitmap.height);c.sample(s),f.push(s)}));for(var l=c.quantizeSync(),h=0;h<a.length;++h)for(var p=a[h].bitmap.data,d=s.quantizeSync(f[h],l).toUint32Array(),m=0,y=0;m<p.length;m+=4,++y)p.writeUInt32LE(d[y],m)}e.cloneFrames=function(t){var e=[];return t.forEach((function(t){e.push(new a(t))})),e},e.getColorInfo=function(t,e){for(var r=!1,n=[],i=0;i<t.length;++i){var o=t[i].getPalette();if(o.usesTransparency&&(r=!0),o.indexCount>256)throw new s(\"Frame \".concat(i,\" uses more than 256 color indexes\"));n.push(o)}if(0===e)return{usesTransparency:r,palettes:n};var a=new Set;n.forEach((function(t){t.colors.forEach((function(t){a.add(t)}))}));var u=a.size;if(r&&++u,e&&u>e)return{usesTransparency:r,palettes:n};for(var c=new Array(a.size),f=a.values(),l=0;l<c.length;++l)c[l]=f.next().value;return c.sort((function(t,e){return t-e})),{colors:c,indexCount:u,usesTransparency:r,palettes:n}},e.copyAsJimp=function(t,r){return e.shareAsJimp(t,new o(r))},e.getMaxDimensions=function(t){var e=0,r=0;return t.forEach((function(t){var n=t.xOffset+t.bitmap.width;n>e&&(e=n);var i=t.yOffset+t.bitmap.height;i>r&&(r=i)})),{maxWidth:e,maxHeight:r}},e.quantizeDekker=function(t,e,r){l(t,\"NeuQuantFloat\",e=e||256,0,r)},e.quantizeSorokin=function(t,e,r,n){var i;switch(e=e||256,r=r||\"min-pop\"){case\"min-pop\":i=2;break;case\"top-pop\":i=1;break;default:throw new Error(\"Invalid quantizeSorokin histogram '\".concat(r,\"'\"))}l(t,\"RGBQuant\",e,i,n)},e.quantizeWu=function(t,e,r,n){if(e=e||256,(r=r||5)<1||r>8)throw new Error(\"Invalid quantization quality\");l(t,\"WuQuant\",e,r,n)},e.read=function(e,r){return r=r||f,t.isBuffer(e)?r.decodeGif(e):(i=e,new Promise((function(t,e){n.readFile(i,(function(r,n){return r?e(r):t(n)}))}))).then((function(t){return r.decodeGif(t)}));var i},e.shareAsJimp=function(t,e){var r=new t(e.bitmap.width,e.bitmap.height,0);return r.bitmap.data=e.bitmap.data,r},e.write=function(t,e,r,i){i=i||f;var o=t.match(/\\.[a-zA-Z]+$/);if(null!==o&&c.includes(o[0].toLowerCase()))throw new Error(\"GIF '\".concat(t,\"' has an unexpected suffix\"));return i.encodeGif(e,r).then((function(e){return function(t,e){return new Promise((function(r,i){n.writeFile(t,e,(function(t){return t?i(t):r()}))}))}(t,e.buffer).then((function(){return e}))}))}}).call(this,r(2).Buffer)},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t};var r=Object.prototype.hasOwnProperty},function(t,e,r){function n(t,e,r){this._queue=[],this._priorities=[],this._sorting=\"desc\",this._init(t,e,r)}n.prototype.insert=function(t,e){for(var r=this._queue.length,n=r;n--;){var i=this._priorities[n];\"desc\"===this._sorting?e>i&&(r=n):e<i&&(r=n)}this._insertAt(t,e,r)},n.prototype.remove=function(t){for(var e=this._queue.length;e--;){if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}}},n.prototype.forEach=function(t){this._queue.forEach(t)},n.prototype.getElements=function(){return this._queue},n.prototype.getElementPriority=function(t){return this._priorities[t]},n.prototype.getPriorities=function(){return this._priorities},n.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,r=this._queue.length;e<r;e++)t.push([this._queue[e],this._priorities[e]]);return t},n.prototype._init=function(t,e,r){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error(\"Arrays must have the same length\");for(var n=0;n<t.length;n++)this.insert(t[n],e[n])}r&&(this._sorting=r)},n.prototype._insertAt=function(t,e,r){this._queue.length===r?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(r,0,t),this._priorities.splice(r,0,e))},t.exports&&(t.exports=n)},function(t,e){function r(e){return t.exports=r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){\"use strict\";function n(t,e,r,o,a,s){for(var u,c,f,l,h=Math.max(e-1,0),p=Math.max(r-1,0),d=Math.min(e+1,o-1),m=Math.min(r+1,a-1),y=4*(r*o+e),v=0,g=0,b=0,w=0,_=0,x=h;x<=d;x++)for(var E=p;E<=m;E++)if(x!==e||E!==r){var k=i(t,t,y,4*(E*o+x),!0);if(0===k?v++:k<0?b++:k>0&&g++,v>2)return!1;s&&(k<w&&(w=k,u=x,c=E),k>_&&(_=k,f=x,l=E))}return!s||0!==b&&0!==g&&(!n(t,u,c,o,a)&&!n(s,u,c,o,a)||!n(t,f,l,o,a)&&!n(s,f,l,o,a))}function i(t,e,r,n,i){var c=t[r+3]/255,f=e[n+3]/255,l=u(t[r+0],c),h=u(t[r+1],c),p=u(t[r+2],c),d=u(e[n+0],f),m=u(e[n+1],f),y=u(e[n+2],f),v=o(l,h,p)-o(d,m,y);if(i)return v;var g=a(l,h,p)-a(d,m,y),b=s(l,h,p)-s(d,m,y);return.5053*v*v+.299*g*g+.1957*b*b}function o(t,e,r){return.29889531*t+.58662247*e+.11448223*r}function a(t,e,r){return.59597799*t-.2741761*e-.32180189*r}function s(t,e,r){return.21147017*t-.52261711*e+.31114694*r}function u(t,e){return 255+(t-255)*e}function c(t,e,r,n,i){t[e+0]=r,t[e+1]=n,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,r,a,s,f){f||(f={});for(var l=void 0===f.threshold?.1:f.threshold,h=35215*l*l,p=0,d=0;d<s;d++)for(var m=0;m<a;m++){var y=4*(d*a+m);if(i(t,e,y,y)>h)f.includeAA||!n(t,m,d,a,s,e)&&!n(e,m,d,a,s,t)?(r&&c(r,y,255,0,0),p++):r&&c(r,y,255,255,0);else if(r){var v=u((w=void 0,_=void 0,x=void 0,E=void 0,w=(g=t)[(b=y)+3]/255,_=u(g[b+0],w),x=u(g[b+1],w),E=u(g[b+2],w),o(_,x,E)),.1);c(r,y,v,v,v)}}var g,b,w,_,x,E;return p}},function(t,e,r){\"use strict\";r(123);var n=[\"url\"];function i(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}e.a=function(t,e){var r=t.url,o=i(t,n);fetch(r,o).then((function(t){if(t.ok)return t.arrayBuffer().catch((function(t){throw new Error(\"Response is not a buffer for url \".concat(r,\". Error: \").concat(t.message))}));throw new Error(\"HTTP Status \".concat(t.status,\" for url \").concat(r))})).then((function(t){return e(null,t)})).catch((function(t){return e(t)}))}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&o.call(k,u)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}var a=r(125),s=r(131);function u(){var t;return t=i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.fromFile(e);case 2:return r=t.sent,t.prev=3,t.next=6,s.fromTokenizer(r);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])})),u=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))},u.apply(this,arguments)}var c={fromFile:function(t){return u.apply(this,arguments)}};Object.assign(c,s),Object.defineProperty(c,\"extensions\",{get:function(){return s.extensions}}),Object.defineProperty(c,\"mimeTypes\",{get:function(){return s.mimeTypes}}),t.exports=c},function(t,e,r){var n=r(135);t.exports={create:function(t,e){if(t instanceof(e=e||(0,eval)(\"this\")).ArrayBuffer){var i=r(140);return new n(new i(t,0,t.byteLength,!0,e))}var o=r(141);return new n(new o(t,0,t.length,!0))}}},function(t,e,r){\"use strict\";(function(t){var n=r(36),i=r.n(n);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function a(t,e,r){var n;return n=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=\"image/tiff\";e.a=function(){return{mime:a({},s,[\"tiff\",\"tif\"]),constants:{MIME_TIFF:s},decoders:a({},s,(function(e){var r=i.a.decode(e),n=r[0];r.forEach((function(t){i.a.decodeImage(e,t)}));var o=i.a.toRGBA8(n);return{data:t.from(o),width:n.t256[0],height:n.t257[0]}})),encoders:a({},s,(function(e){var r=i.a.encodeImage(e.bitmap.data,e.bitmap.width,e.bitmap.height);return t.from(r)}))}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(59),i=r.n(n),o=r(37);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e,r){var n;return n=function(t,e){if(\"object\"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==a(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=\"image/gif\";e.a=function(){return{mime:s({},u,[\"gif\"]),constants:{MIME_GIF:u},decoders:s({},u,(function(e){var r=new i.a.GifReader(e),n=t.alloc(r.width*r.height*4);return r.decodeAndBlitFrameRGBA(0,n),{data:n,width:r.width,height:r.height}})),encoders:s({},u,(function(t){var e=new o.BitmapImage(t.bitmap);o.GifUtil.quantizeDekker(e,256);var r=new o.GifFrame(e);return(new o.GifCodec).encodeGif([r],{}).then((function(t){return t.buffer}))}))}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(32),i=r.n(n),o=r(0);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e,r,n){for(var i=[0,0,0],o=(e.length-1)/2,a=0;a<e.length;a+=1)for(var s=0;s<e[a].length;s+=1){var u=t.getPixelIndex(r+a-o,n+s-o);i[0]+=t.bitmap.data[u]*e[a][s],i[1]+=t.bitmap.data[u+1]*e[a][s],i[2]+=t.bitmap.data[u+2]*e[a][s]}return i}var c=function(t){return null!=t};function f(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){var n=parseInt(.2126*this.bitmap.data[r]+.7152*this.bitmap.data[r+1]+.0722*this.bitmap.data[r+2],10);this.bitmap.data[r]=n,this.bitmap.data[r+1]=n,this.bitmap.data[r+2]=n})),Object(o.a)(t)&&t.call(this,null,this),this}function l(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(r/100)+t.r,g:(e.g-t.g)*(r/100)+t.g,b:(e.b-t.b)*(r/100)+t.b}}function h(t,e){var r=this;return t&&Array.isArray(t)?(t=t.map((function(t){return\"xor\"!==t.apply&&\"mix\"!==t.apply||(t.params[0]=i()(t.params[0]).toRgb()),t})),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(n,s,u){var c={r:r.bitmap.data[u],g:r.bitmap.data[u+1],b:r.bitmap.data[u+2]},f=function(t,e){return r.constructor.limit255(c[t]+e)};t.forEach((function(t){if(\"mix\"===t.apply)c=l(c,t.params[0],t.params[1]);else if(\"tint\"===t.apply)c=l(c,{r:255,g:255,b:255},t.params[0]);else if(\"shade\"===t.apply)c=l(c,{r:0,g:0,b:0},t.params[0]);else if(\"xor\"===t.apply)c={r:c.r^t.params[0].r,g:c.g^t.params[0].g,b:c.b^t.params[0].b};else if(\"red\"===t.apply)c.r=f(\"r\",t.params[0]);else if(\"green\"===t.apply)c.g=f(\"g\",t.params[0]);else if(\"blue\"===t.apply)c.b=f(\"b\",t.params[0]);else{var n;if(\"hue\"===t.apply&&(t.apply=\"spin\"),!(c=i()(c))[t.apply])return o.d.call(r,\"action \"+t.apply+\" not supported\",e);c=(n=c)[t.apply].apply(n,a(t.params)).toRgb()}})),r.bitmap.data[u]=c.r,r.bitmap.data[u+1]=c.g,r.bitmap.data[u+2]=c.b})),Object(o.a)(e)&&e.call(this,null,this),this):o.d.call(this,\"actions must be an array\",e)}Object.freeze({LIGHTEN:\"lighten\",BRIGHTEN:\"brighten\",DARKEN:\"darken\",DESATURATE:\"desaturate\",SATURATE:\"saturate\",GREYSCALE:\"greyscale\",SPIN:\"spin\",HUE:\"hue\",MIX:\"mix\",TINT:\"tint\",SHADE:\"shade\",XOR:\"xor\",RED:\"red\",GREEN:\"green\",BLUE:\"blue\"});e.a=function(){return{brightness:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"val must be numbers\",e):t<-1||t>1?o.d.call(this,\"val must be a number between -1 and +1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t<0?(this.bitmap.data[n]*=1+t,this.bitmap.data[n+1]*=1+t,this.bitmap.data[n+2]*=1+t):(this.bitmap.data[n]+=(255-this.bitmap.data[n])*t,this.bitmap.data[n+1]+=(255-this.bitmap.data[n+1])*t,this.bitmap.data[n+2]+=(255-this.bitmap.data[n+2])*t)})),Object(o.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if(\"number\"!=typeof t)return o.d.call(this,\"val must be numbers\",e);if(t<-1||t>1)return o.d.call(this,\"val must be a number between -1 and +1\",e);var r=(t+1)/(1-t);function n(t){return(t=Math.floor(r*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=n(this.bitmap.data[r]),this.bitmap.data[r+1]=n(this.bitmap.data[r+1]),this.bitmap.data[r+2]=n(this.bitmap.data[r+2])})),Object(o.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"n must be numbers\",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){this.bitmap.data[n]=Math.floor(this.bitmap.data[n]/255*(t-1))/(t-1)*255,this.bitmap.data[n+1]=Math.floor(this.bitmap.data[n+1]/255*(t-1))/(t-1)*255,this.bitmap.data[n+2]=Math.floor(this.bitmap.data[n+2]/255*(t-1))/(t-1)*255})),Object(o.a)(e)&&e.call(this,null,this),this)},greyscale:f,grayscale:f,opacity:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"f must be a number\",e):t<0||t>1?o.d.call(this,\"f must be a number from 0 to 1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){var i=this.bitmap.data[n+3]*t;this.bitmap.data[n+3]=i})),Object(o.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){var n=this.bitmap.data[r],i=this.bitmap.data[r+1],o=this.bitmap.data[r+2];o=.272*(n=.393*n+.769*i+.189*o)+.534*(i=.349*n+.686*i+.168*o)+.131*o,this.bitmap.data[r]=n<255?n:255,this.bitmap.data[r+1]=i<255?i:255,this.bitmap.data[r+2]=o<255?o:255})),Object(o.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"f must be a number\",e):t<0||t>1?o.d.call(this,\"f must be a number from 0 to 1\",e):(this.opacity(1-t),Object(o.a)(e)&&e.call(this,null,this),this)},convolution:function(e,r,n){\"function\"==typeof r&&void 0===n&&(n=r,r=null),r||(r=this.constructor.EDGE_EXTEND);var i,a,s,u,c,f,l,h,p,d,m=t.from(this.bitmap.data),y=e.length,v=e[0].length,g=Math.floor(y/2),b=Math.floor(v/2),w=-g,_=-b;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,n,o){u=0,s=0,a=0;for(var y=w;y<=g;y++)for(var v=_;v<=b;v++)h=t+v,p=n+y,i=e[y+g][v+b],-1===(d=this.getPixelIndex(h,p,r))?(l=0,f=0,c=0):(c=this.bitmap.data[d+0],f=this.bitmap.data[d+1],l=this.bitmap.data[d+2]),a+=i*c,s+=i*f,u+=i*l;a<0&&(a=0),s<0&&(s=0),u<0&&(u=0),a>255&&(a=255),s>255&&(s=255),u>255&&(u=255),m[o+0]=a,m[o+1]=s,m[o+2]=u})),this.bitmap.data=m,Object(o.a)(n)&&n.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r+3]=255})),Object(o.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,r,n,i,a){if(\"function\"==typeof e)a=e,i=null,n=null,r=null,e=null;else{if(\"number\"!=typeof t)return o.d.call(this,\"size must be a number\",a);if(c(e)&&\"number\"!=typeof e)return o.d.call(this,\"x must be a number\",a);if(c(r)&&\"number\"!=typeof r)return o.d.call(this,\"y must be a number\",a);if(c(n)&&\"number\"!=typeof n)return o.d.call(this,\"w must be a number\",a);if(c(i)&&\"number\"!=typeof i)return o.d.call(this,\"h must be a number\",a)}var s=[[1/16,2/16,1/16],[2/16,.25,2/16],[1/16,2/16,1/16]];e=e||0,r=r||0,n=c(n)?n:this.bitmap.width-e,i=c(i)?i:this.bitmap.height-r;var f=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){e=t*Math.floor(e/t),r=t*Math.floor(r/t);var i=u(f,s,e,r);this.bitmap.data[n]=i[0],this.bitmap.data[n+1]=i[1],this.bitmap.data[n+2]=i[2]})),Object(o.a)(a)&&a.call(this,null,this),this},convolute:function(t,e,r,n,i,a){if(!Array.isArray(t))return o.d.call(this,\"the kernel must be an array\",a);if(\"function\"==typeof e)a=e,e=null,r=null,n=null,i=null;else{if(c(e)&&\"number\"!=typeof e)return o.d.call(this,\"x must be a number\",a);if(c(r)&&\"number\"!=typeof r)return o.d.call(this,\"y must be a number\",a);if(c(n)&&\"number\"!=typeof n)return o.d.call(this,\"w must be a number\",a);if(c(i)&&\"number\"!=typeof i)return o.d.call(this,\"h must be a number\",a)}e=c(e)?e:0,r=c(r)?r:0,n=c(n)?n:this.bitmap.width-e,i=c(i)?i:this.bitmap.height-r;var s=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){var i=u(s,t,e,r);this.bitmap.data[n]=this.constructor.limit255(i[0]),this.bitmap.data[n+1]=this.constructor.limit255(i[1]),this.bitmap.data[n+2]=this.constructor.limit255(i[2])})),Object(o.a)(a)&&a.call(this,null,this),this},color:h,colour:h}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){r.d(e,\"a\",(function(){return o}));var n=r(0);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function o(e){return e(\"crop\",(function(e,r,i,o,a){if(\"number\"!=typeof e||\"number\"!=typeof r)return n.d.call(this,\"x and y must be numbers\",a);if(\"number\"!=typeof i||\"number\"!=typeof o)return n.d.call(this,\"w and h must be numbers\",a);if(e=Math.round(e),r=Math.round(r),i=Math.round(i),o=Math.round(o),0===e&&i===this.bitmap.width){var s=i*r+e<<2,u=s+(o*i<<2);this.bitmap.data=this.bitmap.data.slice(s,u)}else{var c=t.allocUnsafe(i*o*4),f=0;this.scanQuiet(e,r,i,o,(function(t,e,r){var n=this.bitmap.data.readUInt32BE(r,!0);c.writeUInt32BE(n,f,!0),f+=4})),this.bitmap.data=c}return this.bitmap.width=i,this.bitmap.height=o,Object(n.a)(a)&&a.call(this,null,this),this})),{class:{autocrop:function(){for(var t,e=this.bitmap.width,r=this.bitmap.height,o=0,a=2e-4,s=!0,u=!1,c={north:!1,south:!1,east:!1,west:!1},f=arguments.length,l=new Array(f),h=0;h<f;h++)l[h]=arguments[h];for(var p=0,d=l.length;p<d;p++)if(\"number\"==typeof l[p]&&(a=l[p]),\"boolean\"==typeof l[p]&&(s=l[p]),\"function\"==typeof l[p]&&(t=l[p]),\"object\"===i(l[p])){var m=l[p];void 0!==m.tolerance&&(a=m.tolerance),void 0!==m.cropOnlyFrames&&(s=m.cropOnlyFrames),void 0!==m.cropSymmetric&&(u=m.cropSymmetric),void 0!==m.leaveBorder&&(o=m.leaveBorder),void 0!==m.ignoreSides&&(c=m.ignoreSides)}var y=this.getPixelColor(0,0),v=this.constructor.intToRGBA(y),g=0,b=0,w=0,_=0;if(y=this.getPixelColor(0,0),!c.north)t:for(var x=0;x<r-1;x++){for(var E=0;E<e;E++){var k=this.getPixelColor(E,x),D=this.constructor.intToRGBA(k);if(this.constructor.colorDiff(v,D)>a)break t}g++}if(y=this.getPixelColor(e,0),!c.west)t:for(var S=0;S<e-1;S++){for(var A=0+g;A<r;A++){var M=this.getPixelColor(S,A),O=this.constructor.intToRGBA(M);if(this.constructor.colorDiff(v,O)>a)break t}_++}if(y=this.getPixelColor(0,r),!c.south)t:for(var C=r-1;C>=g+1;C--){for(var F=e-b-1;F>=0;F--){var I=this.getPixelColor(F,C),B=this.constructor.intToRGBA(I);if(this.constructor.colorDiff(v,B)>a)break t}w++}if(y=this.getPixelColor(e,r),!c.east)t:for(var T=e-1;T>=0+_+1;T--){for(var L=r-1;L>=0+g;L--){var P=this.getPixelColor(T,L),j=this.constructor.intToRGBA(P);if(this.constructor.colorDiff(v,j)>a)break t}b++}if(_-=o,b-=o,g-=o,w-=o,u){var N=Math.min(b,_),R=Math.min(g,w);_=N,b=N,g=R,w=R}var z=e-((_=_>=0?_:0)+(b=b>=0?b:0)),U=r-((w=w>=0?w:0)+(g=g>=0?g:0));return(s?0!==b&&0!==g&&0!==_&&0!==w:0!==b||0!==g||0!==_||0!==w)&&this.crop(_,g,z,U),Object(n.a)(t)&&t.call(this,null,this),this}}}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(0);function i(e,r,i){if(\"boolean\"!=typeof e||\"boolean\"!=typeof r)return n.d.call(this,\"horizontal and vertical must be Booleans\",i);var o=t.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,n,i){var a=e?this.bitmap.width-1-t:t,s=r?this.bitmap.height-1-n:n,u=this.bitmap.width*s+a<<2,c=this.bitmap.data.readUInt32BE(i);o.writeUInt32BE(c,u)})),this.bitmap.data=t.from(o),Object(n.a)(i)&&i.call(this,null,this),this}e.a=function(){return{flip:i,mirror:i}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t,n){var i=r(6),o=r.n(i),a=r(111),s=r.n(a),u=r(0),c=r(17);function f(t){return f=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},f(t)}function l(t,e,r,n,i){if(i.width>0&&i.height>0){var o=e.pages[i.page];t.blit(o,r+i.xoffset,n+i.yoffset,i.x,i.y,i.width,i.height)}return t}function h(t,e,r,n,i){for(var o=0;o<n.length;o++){var a=void 0;a=t.chars[n[o]]?n[o]:/\\s/.test(n[o])?\"\":\"?\";var s=t.chars[a]||{},u=t.kernings[a];l(this,t,e,r,s||{}),e+=(u&&u[n[o+1]]?u[n[o+1]]:0)+(s.xadvance||i)}}var p=t.env.DIRNAME||\"\".concat(n,\"/../\");e.a=function(){return{constants:{measureText:c.a,measureTextHeight:c.b,FONT_SANS_8_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt\"),FONT_SANS_10_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt\"),FONT_SANS_12_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt\"),FONT_SANS_14_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt\"),FONT_SANS_16_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt\"),FONT_SANS_32_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt\"),FONT_SANS_64_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt\"),FONT_SANS_128_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt\"),FONT_SANS_8_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt\"),FONT_SANS_16_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt\"),FONT_SANS_32_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt\"),FONT_SANS_64_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt\"),FONT_SANS_128_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt\"),loadFont:function(t,e){var r=this;return\"string\"!=typeof t?u.d.call(this,\"file must be a string\",e):new Promise((function(n,i){e=e||function(t,e){t?i(t):n(e)},s()(t,(function(n,i){var a={},s={};if(n)return u.d.call(r,n,e);for(var c=0;c<i.chars.length;c++)a[String.fromCharCode(i.chars[c].id)]=i.chars[c];for(var f=0;f<i.kernings.length;f++){var l=String.fromCharCode(i.kernings[f].first);s[l]=s[l]||{},s[l][String.fromCharCode(i.kernings[f].second)]=i.kernings[f].amount}(function(t,e,r){var n=r.map((function(r){return t.read(e+\"/\"+r)}));return Promise.all(n)})(r,o.a.dirname(t),i.pages).then((function(t){e(null,{chars:a,kernings:s,pages:t,common:i.common,info:i.info})}))}))}))}},class:{print:function(t,e,r,n,i,o,a){var s,l,p=this;if(\"function\"==typeof i&&void 0===a&&(a=i,i=1/0),void 0===i&&(i=1/0),\"function\"==typeof o&&void 0===a&&(a=o,o=1/0),void 0===o&&(o=1/0),\"object\"!==f(t))return u.d.call(this,\"font must be a Jimp loadFont\",a);if(\"number\"!=typeof e||\"number\"!=typeof r||\"number\"!=typeof i)return u.d.call(this,\"x, y and maxWidth must be numbers\",a);if(\"number\"!=typeof i)return u.d.call(this,\"maxWidth must be a number\",a);if(\"number\"!=typeof o)return u.d.call(this,\"maxHeight must be a number\",a);\"object\"===f(n)&&null!==n.text&&void 0!==n.text?(s=n.alignmentX||this.constructor.HORIZONTAL_ALIGN_LEFT,l=n.alignmentY||this.constructor.VERTICAL_ALIGN_TOP,n=n.text):(s=this.constructor.HORIZONTAL_ALIGN_LEFT,l=this.constructor.VERTICAL_ALIGN_TOP,n=n.toString());o!==1/0&&l===this.constructor.VERTICAL_ALIGN_BOTTOM?r+=o-Object(c.b)(t,n,i):o!==1/0&&l===this.constructor.VERTICAL_ALIGN_MIDDLE&&(r+=o/2-Object(c.b)(t,n,i)/2);var d=Object.entries(t.chars)[0][1].xadvance,m=Object(c.c)(t,n,i),y=m.lines,v=m.longestLine;return y.forEach((function(n){var o=n.join(\" \"),a=function(t,e,r,n,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(n-Object(c.a)(e,r))/2:n-Object(c.a)(e,r)}(p.constructor,t,o,i,s);h.call(p,t,e+a,r,o,d),r+=t.common.lineHeight})),Object(u.a)(a)&&a.call(this,null,this,{x:e+v,y:r}),this}}}}}).call(this,r(7),\"/\")},function(t,e,r){(function(e){var n=r(207),i=function(){},o=r(211),a=r(212),s=r(215),u=r(216),c=r(98),f=self.XMLHttpRequest&&\"withCredentials\"in new XMLHttpRequest;t.exports=function(t,r){r=\"function\"==typeof r?r:i,\"string\"==typeof t?t={uri:t}:t||(t={}),t.binary&&(t=function(t){if(f)return c(t,{responseType:\"arraybuffer\"});if(void 0===self.XMLHttpRequest)throw new Error(\"your browser does not support XHR loading\");var e=new self.XMLHttpRequest;return e.overrideMimeType(\"text/plain; charset=x-user-defined\"),c({xhr:e},t)}(t)),n(t,(function(n,c,f){if(n)return r(n);if(!/^2/.test(c.statusCode))return r(new Error(\"http status code: \"+c.statusCode));if(!f)return r(new Error(\"no body result\"));var l,h,p=!1;if(l=f,\"[object ArrayBuffer]\"===Object.prototype.toString.call(l)){var d=new Uint8Array(f);f=e.from(d,\"binary\")}u(f)&&(p=!0,\"string\"==typeof f&&(f=e.from(f,\"binary\"))),p||(e.isBuffer(f)&&(f=f.toString(t.encoding)),f=f.trim());try{var m=c.headers[\"content-type\"];h=p?s(f):/json/.test(m)||\"{\"===f.charAt(0)?JSON.parse(f):/xml/.test(m)||\"<\"===f.charAt(0)?a(f):o(f)}catch(t){r(new Error(\"error parsing font \"+t.message)),r=i}r(null,h)}))}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(0),i=r(113),o=r(63);e.a=function(){return{constants:{RESIZE_NEAREST_NEIGHBOR:\"nearestNeighbor\",RESIZE_BILINEAR:\"bilinearInterpolation\",RESIZE_BICUBIC:\"bicubicInterpolation\",RESIZE_HERMITE:\"hermiteInterpolation\",RESIZE_BEZIER:\"bezierInterpolation\"},class:{resize:function(e,r,a,s){if(\"number\"!=typeof e||\"number\"!=typeof r)return n.d.call(this,\"w and h must be numbers\",s);if(\"function\"==typeof a&&void 0===s&&(s=a,a=null),e===this.constructor.AUTO&&r===this.constructor.AUTO)return n.d.call(this,\"w and h cannot both be set to auto\",s);if(e===this.constructor.AUTO&&(e=this.bitmap.width*(r/this.bitmap.height)),r===this.constructor.AUTO&&(r=this.bitmap.height*(e/this.bitmap.width)),e<0||r<0)return n.d.call(this,\"w and h must be positive numbers\",s);if(e=Math.round(e)||1,r=Math.round(r)||1,\"function\"==typeof o.a[a]){var u={data:t.alloc(e*r*4),width:e,height:r};o.a[a](this.bitmap,u),this.bitmap=u}else{var c=this,f=new i.a(this.bitmap.width,this.bitmap.height,e,r,!0,!0,(function(n){c.bitmap.data=t.from(n),c.bitmap.width=e,c.bitmap.height=r}));f.resize(this.bitmap.data)}return Object(n.a)(s)&&s.call(this,null,this),this}}}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t,e,r,n,i,o,a){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(r)||0),this.targetHeight=Math.abs(Math.floor(n)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(o),this.resizeCallback=\"function\"==typeof a?a:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}n.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error(\"Invalid settings specified for the resizer.\");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var r,n,i=e?4:3,o=this.ratioWeightWidthPass,a=this.widthBuffer,s=0,u=0,c=0,f=0,l=0;for(r=0;s<1/3;r+=i,s+=o)for(u=r,c=0;u<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u]=t[c],a[u+1]=t[c+1],a[u+2]=t[c+2],e&&(a[u+3]=t[c+3]);for(s-=1/3,n=this.widthOriginal-1;s<n;r+=i,s+=o)for(f=1-(l=s%1),u=r,c=Math.floor(s)*i;u<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u+0]=t[c+0]*f+t[c+i+0]*l,a[u+1]=t[c+1]*f+t[c+i+1]*l,a[u+2]=t[c+2]*f+t[c+i+2]*l,e&&(a[u+3]=t[c+3]*f+t[c+i+3]*l);for(n=this.originalWidthMultipliedByChannels-i;r<this.targetWidthMultipliedByChannels;r+=i)for(u=r,c=n;u<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u]=t[c],a[u+1]=t[c+1],a[u+2]=t[c+2],e&&(a[u+3]=t[c+3]);return a},n.prototype._resizeWidthRGBChannels=function(t,e){var r=e?4:3,n=this.ratioWeightWidthPass,i=1/n,o=this.originalWidthMultipliedByChannels-r+1,a=this.targetWidthMultipliedByChannels-r+1,s=this.outputWidthWorkBench,u=this.widthBuffer,c=this.outputWidthWorkBenchOpaquePixelsCount,f=0,l=0,h=0,p=0,d=0,m=0,y=0,v=1,g=0,b=0,w=0,_=0;do{for(d=0;d<this.originalHeightMultipliedByChannels;)s[d++]=0,s[d++]=0,s[d++]=0,e&&(s[d++]=0,c[d/r-1]=0);f=n;do{for(l=1+h-p,v=Math.min(f,l),d=0,m=h;d<this.originalHeightMultipliedByChannels;m+=o)g=t[m],b=t[++m],w=t[++m],_=e?t[++m]:255,s[d++]+=(_?g:0)*v,s[d++]+=(_?b:0)*v,s[d++]+=(_?w:0)*v,e&&(s[d++]+=_*v,c[d/r-1]+=_?v:0);if(!(f>=l)){p+=f;break}p=h+=r,f-=l}while(f>0&&h<this.originalWidthMultipliedByChannels);for(d=0,m=y;d<this.originalHeightMultipliedByChannels;m+=a)f=e?c[d/r]:1,v=e?f?1/f:0:i,u[m]=s[d++]*v,u[++m]=s[d++]*v,u[++m]=s[d++]*v,e&&(u[++m]=s[d++]*i);y+=r}while(y<this.targetWidthMultipliedByChannels);return u},n.prototype._resizeHeightRGBChannels=function(t,e){var r=this.ratioWeightHeightPass,n=1/r,i=this.outputHeightWorkBench,o=this.heightBuffer,a=this.outputHeightWorkBenchOpaquePixelsCount,s=0,u=0,c=0,f=0,l=0,h=0,p=0,d=1,m=0,y=0,v=0,g=0;do{for(l=0;l<this.targetWidthMultipliedByChannels;)i[l++]=0,i[l++]=0,i[l++]=0,e&&(i[l++]=0,a[l/4-1]=0);s=r;do{for(u=1+c-f,d=Math.min(s,u),p=c,l=0;l<this.targetWidthMultipliedByChannels;)m=t[p++],y=t[p++],v=t[p++],g=e?t[p++]:255,i[l++]+=(g?m:0)*d,i[l++]+=(g?y:0)*d,i[l++]+=(g?v:0)*d,e&&(i[l++]+=g*d,a[l/4-1]+=g?d:0);if(!(s>=u)){f+=s;break}f=c=p,s-=u}while(s>0&&c<this.widthPassResultSize);for(l=0;l<this.targetWidthMultipliedByChannels;)s=e?a[l/4]:1,d=e?s?1/s:0:n,o[h++]=Math.round(i[l++]*d),o[h++]=Math.round(i[l++]*d),o[h++]=Math.round(i[l++]*d),e&&(o[h++]=Math.round(i[l++]*n))}while(h<this.finalResultSize);return o},n.prototype.resizeWidthInterpolatedRGB=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!1)},n.prototype.resizeWidthInterpolatedRGBA=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!0)},n.prototype.resizeWidthRGB=function(t){return this._resizeWidthRGBChannels(t,!1)},n.prototype.resizeWidthRGBA=function(t){return this._resizeWidthRGBChannels(t,!0)},n.prototype.resizeHeightInterpolated=function(t){for(var e,r=this.ratioWeightHeightPass,n=this.heightBuffer,i=0,o=0,a=0,s=0,u=0,c=0,f=0;i<1/3;i+=r)for(a=0;a<this.targetWidthMultipliedByChannels;)n[o++]=Math.round(t[a++]);for(i-=1/3,e=this.heightOriginal-1;i<e;i+=r)for(c=1-(f=i%1),u=(s=Math.floor(i)*this.targetWidthMultipliedByChannels)+this.targetWidthMultipliedByChannels,a=0;a<this.targetWidthMultipliedByChannels;++a)n[o++]=Math.round(t[s++]*c+t[u++]*f);for(;o<this.finalResultSize;)for(a=0,s=e*this.targetWidthMultipliedByChannels;a<this.targetWidthMultipliedByChannels;++a)n[o++]=Math.round(t[s++]);return n},n.prototype.resizeHeightRGB=function(t){return this._resizeHeightRGBChannels(t,!1)},n.prototype.resizeHeightRGBA=function(t){return this._resizeHeightRGBChannels(t,!0)},n.prototype.resize=function(t){this.resizeCallback(this.resizeHeight(this.resizeWidth(t)))},n.prototype.bypassResizer=function(t){return t},n.prototype.initializeFirstPassBuffers=function(t){this.widthBuffer=this.generateFloatBuffer(this.widthPassResultSize),t||(this.outputWidthWorkBench=this.generateFloatBuffer(this.originalHeightMultipliedByChannels),this.colorChannels>3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},e.a=n},function(t,e,r){\"use strict\";(function(t){var n=r(0);function i(e){if(Math.abs(e)%90!=0)throw new Error(\"Unsupported matrix rotation degree\");if(e%=360,0!==Math.abs(e)){var r,n=this.bitmap.width,i=this.bitmap.height;switch(e){case 90:case-270:r=90;break;case 180:case-180:r=180;break;case 270:case-90:r=-90;break;default:throw new Error(\"Unsupported matrix rotation degree\")}for(var o=180===r?n:i,a=180===r?i:n,s=t.alloc(this.bitmap.data.length),u=m(n),c=m(o),f=0;f<n;f++)for(var l=0;l<i;l++){var h=u(f,l),p=this.bitmap.data.readUInt32BE(h),d=void 0;switch(r){case 90:d=c(l,n-f-1);break;case-90:d=c(i-l-1,f);break;case 180:d=c(n-f-1,i-l-1);break;default:throw new Error(\"Unsupported matrix rotation angle\")}s.writeUInt32BE(p,d)}this.bitmap.data=s,this.bitmap.width=o,this.bitmap.height=a}function m(t,e){return function(e,r){return r*t+e<<2}}}function o(e,r){var n=(e%=360)*Math.PI/180,i=Math.cos(n),o=Math.sin(n),a=this.bitmap.width,s=this.bitmap.height;if(!0===r||\"string\"==typeof r){(a=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*o))+1)%2!=0&&a++,(s=Math.ceil(Math.abs(this.bitmap.width*o)+Math.abs(this.bitmap.height*i))+1)%2!=0&&s++;var u=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)}));var c=Math.max(a,s,this.bitmap.width,this.bitmap.height);this.resize(c,c,r),this.blit(u,this.bitmap.width/2-u.bitmap.width/2,this.bitmap.height/2-u.bitmap.height/2)}var f=this.bitmap.width,l=this.bitmap.height,h=t.alloc(this.bitmap.data.length);function p(t,e){return function(r,n){return{x:r+t,y:n+e}}}for(var d=p(-f/2,-l/2),m=p(f/2+.5,l/2+.5),y=1;y<=l;y++)for(var v=1;v<=f;v++){var g=d(v,y),b=m(i*g.x-o*g.y,i*g.y+o*g.x),w=f*(y-1)+v-1<<2;if(b.x>=0&&b.x<f&&b.y>=0&&b.y<l){var _=f*(0|b.y)+b.x<<2,x=this.bitmap.data.readUInt32BE(_);h.writeUInt32BE(x,w)}else h.writeUInt32BE(this._background,w)}if(this.bitmap.data=h,!0===r||\"string\"==typeof r){var E=f/2-a/2,k=l/2-s/2;this.crop(E,k,a,s)}}e.a=function(){return{rotate:function(t,e,r){return null==e&&(e=!0),\"function\"==typeof e&&void 0===r&&(r=e,e=!0),\"number\"!=typeof t?n.d.call(this,\"deg must be a number\",r):\"boolean\"!=typeof e&&\"string\"!=typeof e?n.d.call(this,\"mode must be a boolean or a string\",r):(t%90==0&&(e||this.bitmap.width===this.bitmap.height||t%180==0)?i.call(this,t):o.call(this,t,e,r),Object(n.a)(r)&&r.call(this,null,this),this)}}}}).call(this,r(2).Buffer)},function(t,e,r){t.exports&&(t.exports={DBSCAN:r(218),KMEANS:r(219),OPTICS:r(220),PriorityQueue:r(99)})},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return v}));var n={};r.r(n),r.d(n,\"srcOver\",(function(){return a})),r.d(n,\"dstOver\",(function(){return s})),r.d(n,\"multiply\",(function(){return u})),r.d(n,\"add\",(function(){return c})),r.d(n,\"screen\",(function(){return f})),r.d(n,\"overlay\",(function(){return l})),r.d(n,\"darken\",(function(){return h})),r.d(n,\"lighten\",(function(){return p})),r.d(n,\"hardLight\",(function(){return d})),r.d(n,\"difference\",(function(){return m})),r.d(n,\"exclusion\",(function(){return y}));var i=r(0),o=r(20);function a(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/n,g:(t.g*t.a+e.g*e.a*(1-t.a))/n,b:(t.b*t.a+e.b*e.a*(1-t.a))/n,a:n}}function s(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/n,g:(e.g*e.a+t.g*t.a*(1-e.a))/n,b:(e.b*e.a+t.b*t.a*(1-e.a))/n,a:n}}function u(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/n,g:(o*u+o*(1-e.a)+u*(1-t.a))/n,b:(a*c+a*(1-e.a)+c*(1-t.a))/n,a:n}}function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a;return{r:(i+e.r*e.a)/n,g:(o+e.g*e.a)/n,b:(a+e.b*e.a)/n,a:n}}function f(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/n,g:(o*e.a+u*t.a-o*u+o*(1-e.a)+u*(1-t.a))/n,b:(a*e.a+c*t.a-a*c+a*(1-e.a)+c*(1-t.a))/n,a:n}}function l(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*u<=e.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/n,b:(2*c<=e.a?2*a*c+a*(1-e.a)+c*(1-t.a):a*(1+e.a)+c*(1+t.a)-2*c*a-e.a*t.a)/n,a:n}}function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.min(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/n,b:(Math.min(a*e.a,c*t.a)+a*(1-e.a)+c*(1-t.a))/n,a:n}}function p(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.max(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/n,b:(Math.max(a*e.a,c*t.a)+a*(1-e.a)+c*(1-t.a))/n,a:n}}function d(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*o<=t.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/n,b:(2*a<=t.a?2*a*c+a*(1-e.a)+c*(1-t.a):a*(1+e.a)+c*(1+t.a)-2*c*a-e.a*t.a)/n,a:n}}function m(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/n,g:(o+u-2*Math.min(o*e.a,u*t.a))/n,b:(a+c-2*Math.min(a*e.a,c*t.a))/n,a:n}}function y(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/n,g:(o*e.a+u*t.a-2*o*u+o*(1-e.a)+u*(1-t.a))/n,b:(a*e.a+c*t.a-2*a*c+a*(1-e.a)+c*(1-t.a))/n,a:n}}function v(t,e,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0;if(\"function\"==typeof a&&(s=a,a={}),!(t instanceof this.constructor))return i.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof r)return i.d.call(this,\"x and y must be numbers\",s);var u=a,c=u.mode,f=u.opacitySource,l=u.opacityDest;c||(c=o.BLEND_SOURCE_OVER),(\"number\"!=typeof f||f<0||f>1)&&(f=1),(\"number\"!=typeof l||l<0||l>1)&&(l=1);var h=n[c];e=Math.round(e),r=Math.round(r);var p=this;return 1!==l&&p.opacity(l),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,i){var a=p.getPixelIndex(e+t,r+n,o.EDGE_CROP);if(-1!==a){var s=h({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:p.bitmap.data[a+0]/255,g:p.bitmap.data[a+1]/255,b:p.bitmap.data[a+2]/255,a:p.bitmap.data[a+3]/255},f);p.bitmap.data[a+0]=this.constructor.limit255(255*s.r),p.bitmap.data[a+1]=this.constructor.limit255(255*s.g),p.bitmap.data[a+2]=this.constructor.limit255(255*s.b),p.bitmap.data[a+3]=this.constructor.limit255(255*s.a)}})),Object(i.a)(s)&&s.call(this,null,this),this}},function(t,e,r){(function(t){var n=void 0!==t&&t||\"undefined\"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r(150),e.setImmediate=\"undefined\"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate=\"undefined\"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(10))},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return d}));var n=r(65),i=r.n(n);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(){c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},s=a.iterator||\"@@iterator\",u=a.asyncIterator||\"@@asyncIterator\",f=a.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,s,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&n.call(k,s)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==o(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var a;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[s];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(o(e)+\" is not iterable\")}return w.prototype=_,i(D,\"constructor\",{value:_,configurable:!0}),i(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,u,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,s,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function f(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,\"next\",t)}function s(t){f(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function p(t){var e=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==o(e)?e:e+\"\"}var d=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t)}return e=t,r=null,o=[{key:\"DEFAULT_HTTPREQUEST_TIMEOUT\",get:function(){return 12e4}},{key:\"zibcz\",value:(y=l(c().mark((function e(r){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Iioe(r,\"/solver/generateExtId\");case 2:return e.abrupt(\"return\",e.sent);case 3:case\"end\":return e.stop()}}),e)}))),function(t){return y.apply(this,arguments)})},{key:\"_ieot\",value:(m=l(c().mark((function e(r){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Iioe(r,\"/solver/getExtData\");case 2:return e.abrupt(\"return\",e.sent);case 3:case\"end\":return e.stop()}}),e)}))),function(t){return m.apply(this,arguments)})},{key:\"ZigiZ\",value:(d=l(c().mark((function e(r,n){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.rj0et(r,\"/solver/bindShipKey\",{shipKey:n});case 2:return e.abrupt(\"return\",e.sent);case 3:case\"end\":return e.stop()}}),e)}))),function(t,e){return d.apply(this,arguments)})},{key:\"Qijh\",value:(p=l(c().mark((function e(r){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Iioe(r,\"/solver/getPriceList\");case 2:return e.abrupt(\"return\",e.sent);case 3:case\"end\":return e.stop()}}),e)}))),function(t){return p.apply(this,arguments)})},{key:\"xilnz\",value:(f=l(c().mark((function e(r,n){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.rj0et(r,\"/solver/generateStripeUrl\",n);case 2:return e.abrupt(\"return\",e.sent);case 3:case\"end\":return e.stop()}}),e)}))),function(t,e){return f.apply(this,arguments)})},{key:\"Iioe\",value:(u=l(c().mark((function e(r,o){var a,u,f,l,h,p,d,m,y=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=y.length>2&&void 0!==y[2]?y[2]:{},u=y.length>3&&void 0!==y[3]?y[3]:\"json\",e.prev=2,f=r.productConfig.baseUrl,l=r.productConfig.productCode,h=r.userdata.extId,p=r.productConfig.platform,a=s(s({},a),{},{productCode:l,extId:h,ver:\"0.4.1\",platform:p}),d=new i.a(f),\"json\"===u&&d.addMiddleware(Object(n.json)()),d.addMiddleware(Object(n.timeout)(t.DEFAULT_HTTPREQUEST_TIMEOUT)),d.addMiddleware(Object(n.query)()),e.next=15,d.get(f+o,{query:a});case 15:if(!(m=e.sent).jsonData){e.next=20;break}return e.abrupt(\"return\",m.jsonData);case 20:return e.next=22,m.text();case 22:return e.abrupt(\"return\",e.sent);case 23:e.next=28;break;case 25:return e.prev=25,e.t0=e.catch(2),e.abrupt(\"return\",{code:\"1001\",message:\"system error\"});case 28:case\"end\":return e.stop()}}),e,null,[[2,25]])}))),function(t,e){return u.apply(this,arguments)})},{key:\"rj0et\",value:(a=l(c().mark((function e(r,o,a){var u,f,l,h,p,d,m,y=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=y.length>3&&void 0!==y[3]?y[3]:\"json\",e.prev=1,f=r.productConfig.baseUrl,l=r.productConfig.productCode,h=r.userdata.extId,p=r.productConfig.platform,a=s(s({},a),{},{productCode:l,extId:h,ver:\"0.4.1\",platform:p}),d=new i.a(f),\"json\"===u&&d.addMiddleware(Object(n.json)()),d.addMiddleware(Object(n.timeout)(t.DEFAULT_HTTPREQUEST_TIMEOUT)),d.addMiddleware(Object(n.form)()),e.next=14,d.post(f+o,{form:a});case 14:if(!(m=e.sent).jsonData){e.next=19;break}return e.abrupt(\"return\",m.jsonData);case 19:return e.next=21,m.text();case 21:return e.abrupt(\"return\",e.sent);case 22:e.next=28;break;case 24:return e.prev=24,e.t0=e.catch(1),e.abrupt(\"return\",{code:\"1001\",message:\"system error\"});case 28:case\"end\":return e.stop()}}),e,null,[[1,24]])}))),function(t,e,r){return a.apply(this,arguments)})}],r&&h(e.prototype,r),o&&h(e,o),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,o,a,u,f,p,d,m,y}()},,function(t,e,r){\"use strict\";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=u(t),a=n[0],s=n[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),f=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(c(t,s,s+a>u?u:s+a));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+\"==\")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+\"=\"));return o.join(\"\")};for(var n=[],i=[],o=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,a=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",s=0;s<64;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=t.indexOf(\"=\");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var i,o,a=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join(\"\")}i[\"-\".charCodeAt(0)]=62,i[\"_\".charCodeAt(0)]=63},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==r.call(t)}},function(t,e,r){\"use strict\";function n(t,e){if(!(t&&e&&t.length&&e.length))throw new Error(\"Bad alphabet\");this.srcAlphabet=t,this.dstAlphabet=e}n.prototype.convert=function(t){var e,r,n,i={},o=this.srcAlphabet.length,a=this.dstAlphabet.length,s=t.length,u=\"string\"==typeof t?\"\":[];if(!this.isValid(t))throw new Error('Number \"'+t+'\" contains of non-alphabetic digits ('+this.srcAlphabet+\")\");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e<s;e++)i[e]=this.srcAlphabet.indexOf(t[e]);do{for(r=0,n=0,e=0;e<s;e++)(r=r*o+i[e])>=a?(i[n++]=parseInt(r/a,10),r%=a):n>0&&(i[n++]=0);s=n,u=this.dstAlphabet.slice(r,r+1).concat(u)}while(0!==n);return u},n.prototype.isValid=function(t){for(var e=0;e<t.length;++e)if(-1===this.srcAlphabet.indexOf(t[e]))return!1;return!0},t.exports=n},function(t,e,r){r(124),t.exports=self.fetch.bind(self)},function(t,e,r){\"use strict\";r.r(e),function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}r.d(e,\"Headers\",(function(){return l})),r.d(e,\"Request\",(function(){return g})),r.d(e,\"Response\",(function(){return w})),r.d(e,\"DOMException\",(function(){return x})),r.d(e,\"fetch\",(function(){return E}));var i=\"undefined\"!=typeof globalThis&&globalThis||\"undefined\"!=typeof self&&self||void 0!==t&&t||{},o={searchParams:\"URLSearchParams\"in i,iterable:\"Symbol\"in i&&\"iterator\"in Symbol,blob:\"FileReader\"in i&&\"Blob\"in i&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:\"FormData\"in i,arrayBuffer:\"ArrayBuffer\"in i};if(o.arrayBuffer)var a=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if(\"string\"!=typeof t&&(t=String(t)),/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(t)||\"\"===t)throw new TypeError('Invalid character in header field name: \"'+t+'\"');return t.toLowerCase()}function c(t){return\"string\"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError(\"Headers constructor: expected name/value pair to be length 2, found\"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError(\"Already read\")):void(t.bodyUsed=!0)}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function d(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?\"string\"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=\"\"),this.headers.get(\"content-type\")||(\"string\"==typeof t?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},o.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=h(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(o.blob)return this.blob().then(d);throw new Error(\"could not read as ArrayBuffer\")},this.text=function(){var t,e,r,n,i,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=p(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=n?n[1]:\"utf-8\",e.readAsText(t,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=u(t),e=c(e);var r=this.map[t];this.map[t]=r?r+\", \"+e:e},l.prototype.delete=function(t){delete this.map[u(t)]},l.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},l.prototype.set=function(t,e){this.map[u(t)]=c(e)},l.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),f(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),f(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),f(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var v=[\"CONNECT\",\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"PATCH\",\"POST\",\"PUT\",\"TRACE\"];function g(t,e){if(!(this instanceof g))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError(\"Already read\");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||\"same-origin\",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(r=e.method||this.method||\"GET\",n=r.toUpperCase(),v.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if(\"AbortController\"in i)return(new AbortController).signal}(),this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&o)throw new TypeError(\"Body not allowed for GET or HEAD requests\");if(this._initBody(o),!(\"GET\"!==this.method&&\"HEAD\"!==this.method||\"no-store\"!==e.cache&&\"no-cache\"!==e.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,\"$1_=\"+(new Date).getTime());else{this.url+=(/\\?/.test(this.url)?\"&\":\"?\")+\"_=\"+(new Date).getTime()}}}function b(t){var e=new FormData;return t.trim().split(\"&\").forEach((function(t){if(t){var r=t.split(\"=\"),n=r.shift().replace(/\\+/g,\" \"),i=r.join(\"=\").replace(/\\+/g,\" \");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type=\"default\",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError(\"Failed to construct 'Response': The status provided (0) is outside the range [200, 599].\");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?\"\":\"\"+e.statusText,this.headers=new l(e.headers),this.url=e.url||\"\",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:200,statusText:\"\"});return t.ok=!1,t.status=0,t.type=\"error\",t};var _=[301,302,303,307,308];w.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError(\"Invalid status code\");return new w(null,{status:e,headers:{location:t}})};var x=i.DOMException;try{new x}catch(t){(x=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}function E(t,e){return new Promise((function(r,a){var s=new g(t,e);if(s.signal&&s.signal.aborted)return a(new x(\"Aborted\",\"AbortError\"));var f=new XMLHttpRequest;function h(){f.abort()}if(f.onload=function(){var t,e,n={statusText:f.statusText,headers:(t=f.getAllResponseHeaders()||\"\",e=new l,t.replace(/\\r?\\n[\\t ]+/g,\" \").split(\"\\r\").map((function(t){return 0===t.indexOf(\"\\n\")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(\":\"),n=r.shift().trim();if(n){var i=r.join(\":\").trim();try{e.append(n,i)}catch(t){t.message}}})),e)};0===s.url.indexOf(\"file://\")&&(f.status<200||f.status>599)?n.status=200:n.status=f.status,n.url=\"responseURL\"in f?f.responseURL:n.headers.get(\"X-Request-URL\");var i=\"response\"in f?f.response:f.responseText;setTimeout((function(){r(new w(i,n))}),0)},f.onerror=function(){setTimeout((function(){a(new TypeError(\"Network request failed\"))}),0)},f.ontimeout=function(){setTimeout((function(){a(new TypeError(\"Network request timed out\"))}),0)},f.onabort=function(){setTimeout((function(){a(new x(\"Aborted\",\"AbortError\"))}),0)},f.open(s.method,function(t){try{return\"\"===t&&i.location.href?i.location.href:t}catch(e){return t}}(s.url),!0),\"include\"===s.credentials?f.withCredentials=!0:\"omit\"===s.credentials&&(f.withCredentials=!1),\"responseType\"in f&&(o.blob?f.responseType=\"blob\":o.arrayBuffer&&(f.responseType=\"arraybuffer\")),e&&\"object\"===n(e.headers)&&!(e.headers instanceof l||i.Headers&&e.headers instanceof i.Headers)){var p=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){p.push(u(t)),f.setRequestHeader(t,c(e.headers[t]))})),s.headers.forEach((function(t,e){-1===p.indexOf(e)&&f.setRequestHeader(e,t)}))}else s.headers.forEach((function(t,e){f.setRequestHeader(e,t)}));s.signal&&(s.signal.addEventListener(\"abort\",h),f.onreadystatechange=function(){4===f.readyState&&s.signal.removeEventListener(\"abort\",h)}),f.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,i.fetch||(i.fetch=E,i.Headers=l,i.Request=g,i.Response=w)}.call(this,r(10))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&o.call(k,u)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromStream=e.fromBuffer=e.EndOfStreamError=e.fromFile=void 0;var a=r(68),s=r(47),u=r(130);Object.defineProperty(e,\"fromFile\",{enumerable:!0,get:function(){return u.fromFile}});var c=r(47);function f(){var t;return t=i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=r||{},!e.path){t.next=7;break}return t.next=4,a.stat(e.path);case 4:n=t.sent,r.path=e.path,r.size=n.size;case 7:return t.abrupt(\"return\",s.fromStream(e,r));case 8:case\"end\":return t.stop()}}),t)})),f=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))},f.apply(this,arguments)}Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return c.EndOfStreamError}}),Object.defineProperty(e,\"fromBuffer\",{enumerable:!0,get:function(){return c.fromBuffer}}),e.fromStream=function(t,e){return f.apply(this,arguments)}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&o.call(k,u)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function c(t,e,r){return e=l(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,f()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.ReadStreamTokenizer=void 0;var p=r(48),d=r(26),m=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=c(this,e,[r])).streamReader=new d.StreamReader(t),n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(e,t),r=e,n=[{key:\"getFileInfo\",value:(p=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",this.fileInfo);case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return p.apply(this,arguments)})},{key:\"readBuffer\",value:(l=a(i().mark((function t(e,r){var n,o,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),!((o=n.position-this.position)>0)){t.next=8;break}return t.next=5,this.ignore(o);case 5:return t.abrupt(\"return\",this.readBuffer(e,r));case 8:if(!(o<0)){t.next=10;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 10:if(0!==n.length){t.next=12;break}return t.abrupt(\"return\",0);case 12:return t.next=14,this.streamReader.read(e,n.offset,n.length);case 14:if(a=t.sent,this.position+=a,r&&r.mayBeLess||!(a<n.length)){t.next=18;break}throw new d.EndOfStreamError;case 18:return t.abrupt(\"return\",a);case 19:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:\"peekBuffer\",value:(f=a(i().mark((function t(e,r){var n,o,a,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),o=0,!n.position){t.next=15;break}if(!((a=n.position-this.position)>0)){t.next=13;break}return s=new Uint8Array(n.length+a),t.next=8,this.peekBuffer(s,{mayBeLess:n.mayBeLess});case 8:return o=t.sent,e.set(s.subarray(a),n.offset),t.abrupt(\"return\",o-a);case 13:if(!(a<0)){t.next=15;break}throw new Error(\"Cannot peek from a negative offset in a stream\");case 15:if(!(n.length>0)){t.next=29;break}return t.prev=16,t.next=19,this.streamReader.peek(e,n.offset,n.length);case 19:o=t.sent,t.next=27;break;case 22:if(t.prev=22,t.t0=t.catch(16),!(r&&r.mayBeLess&&t.t0 instanceof d.EndOfStreamError)){t.next=26;break}return t.abrupt(\"return\",0);case 26:throw t.t0;case 27:if(n.mayBeLess||!(o<n.length)){t.next=29;break}throw new d.EndOfStreamError;case 29:return t.abrupt(\"return\",o);case 30:case\"end\":return t.stop()}}),t,this,[[16,22]])}))),function(t,e){return f.apply(this,arguments)})},{key:\"ignore\",value:(u=a(i().mark((function t(e){var r,n,o,a,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Math.min(256e3,e),n=new Uint8Array(r),o=0;case 3:if(!(o<e)){t.next=13;break}return a=e-o,t.next=7,this.readBuffer(n,{length:Math.min(r,a)});case 7:if(!((s=t.sent)<0)){t.next=10;break}return t.abrupt(\"return\",s);case 10:o+=s,t.next=3;break;case 13:return t.abrupt(\"return\",o);case 14:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})}],n&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,o,u,f,l,p}(p.AbstractTokenizer);e.ReadStreamTokenizer=m},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&o.call(k,u)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var c=r(49),f=r(128),l=r(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return l.EndOfStreamError}});var h=function(){return t=function t(e){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error(\"Expected an instance of stream.Readable\");this.s.once(\"end\",(function(){return r.reject(new c.EndOfStreamError)})),this.s.once(\"error\",(function(t){return r.reject(t)})),this.s.once(\"close\",(function(){return r.reject(new Error(\"Stream closed\"))}))},e=[{key:\"peek\",value:(u=a(i().mark((function t(e,r,n){var o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.read(e,r,n);case 2:return o=t.sent,this.peekQueue.push(e.subarray(r,r+o)),t.abrupt(\"return\",o);case 5:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return u.apply(this,arguments)})},{key:\"read\",value:(o=a(i().mark((function t(e,r,n){var o,a,s,u,f,l;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n){t.next=2;break}return t.abrupt(\"return\",0);case 2:if(0!==this.peekQueue.length||!this.endOfStream){t.next=4;break}throw new c.EndOfStreamError;case 4:o=n,a=0;case 6:if(!(this.peekQueue.length>0&&o>0)){t.next=17;break}if(s=this.peekQueue.pop()){t.next=10;break}throw new Error(\"peekData should be defined\");case 10:u=Math.min(s.length,o),e.set(s.subarray(0,u),r+a),a+=u,o-=u,u<s.length&&this.peekQueue.push(s.subarray(u)),t.next=6;break;case 17:if(!(o>0)||this.endOfStream){t.next=28;break}return f=Math.min(o,1048576),t.next=21,this.readFromStream(e,r+a,f);case 21:if(l=t.sent,a+=l,!(l<f)){t.next=25;break}return t.abrupt(\"break\",28);case 25:o-=l,t.next=17;break;case 28:return t.abrupt(\"return\",a);case 29:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})},{key:\"readFromStream\",value:(n=a(i().mark((function t(e,r,n){var o,a,s=this;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=this.s.read(n))){t.next=6;break}return e.set(o,r),t.abrupt(\"return\",o.length);case 6:return a={buffer:e,offset:r,length:n,deferred:new f.Deferred},this.deferred=a.deferred,this.s.once(\"readable\",(function(){s.readDeferred(a)})),t.abrupt(\"return\",a.deferred.promise);case 10:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:\"readDeferred\",value:function(t){var e=this,r=this.s.read(t.length);r?(t.buffer.set(r,t.offset),t.deferred.resolve(r.length),this.deferred=null):this.s.once(\"readable\",(function(){e.readDeferred(t)}))}},{key:\"reject\",value:function(t){this.endOfStream=!0,this.deferred&&(this.deferred.reject(t),this.deferred=null)}}],e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,o,u}();e.StreamReader=h},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function o(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function a(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Deferred=void 0;var s=o((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.resolve=function(){return null},this.reject=function(){return null},this.promise=new Promise((function(t,r){e.reject=r,e.resolve=t}))}));e.Deferred=s},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&o.call(k,u)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function c(t,e,r){return e=l(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,f()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.BufferTokenizer=void 0;var p=r(26),d=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=c(this,e,[r])).uint8Array=t,n.fileInfo.size=n.fileInfo.size?n.fileInfo.size:t.length,n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(e,t),r=e,n=[{key:\"readBuffer\",value:(l=a(i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r||!r.position){t.next=4;break}if(!(r.position<this.position)){t.next=3;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 3:this.position=r.position;case 4:return t.next=6,this.peekBuffer(e,r);case 6:return n=t.sent,this.position+=n,t.abrupt(\"return\",n);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:\"peekBuffer\",value:(f=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),o=Math.min(this.uint8Array.length-n.position,n.length),n.mayBeLess||!(o<n.length)){t.next=6;break}throw new p.EndOfStreamError;case 6:return e.set(this.uint8Array.subarray(n.position,n.position+o),n.offset),t.abrupt(\"return\",o);case 8:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return f.apply(this,arguments)})},{key:\"close\",value:(u=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})}],n&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,o,u,f,l}(r(48).AbstractTokenizer);e.BufferTokenizer=d},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&o.call(k,u)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function c(t,e,r){return e=l(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,f()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromFile=e.FileTokenizer=void 0;var p=r(48),d=r(26),m=r(68),y=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=c(this,e,[r])).fd=t,n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(e,t),r=e,n=[{key:\"readBuffer\",value:(l=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),this.position=n.position,t.next=4,m.read(this.fd,e,n.offset,n.length,n.position);case 4:if(o=t.sent,this.position+=o.bytesRead,!(o.bytesRead<n.length)||r&&r.mayBeLess){t.next=8;break}throw new d.EndOfStreamError;case 8:return t.abrupt(\"return\",o.bytesRead);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:\"peekBuffer\",value:(f=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),t.next=3,m.read(this.fd,e,n.offset,n.length,n.position);case 3:if(o=t.sent,n.mayBeLess||!(o.bytesRead<n.length)){t.next=6;break}throw new d.EndOfStreamError;case 6:return t.abrupt(\"return\",o.bytesRead);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return f.apply(this,arguments)})},{key:\"close\",value:(u=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",m.close(this.fd));case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})}],n&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,o,u,f,l}(p.AbstractTokenizer);function v(){return(v=a(i().mark((function t(e){var r,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m.stat(e);case 2:if((r=t.sent).isFile){t.next=5;break}throw new Error(\"File not a file: \".concat(e));case 5:return t.next=7,m.open(e,\"r\");case 7:return n=t.sent,t.abrupt(\"return\",new y(n,{path:e,size:r.size}));case 9:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.FileTokenizer=y,e.fromFile=function(t){return v.apply(this,arguments)}},function(module,exports,__webpack_require__){\"use strict\";(function(Buffer){function _typeof(t){return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_typeof(t)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new C(n||[]);return i(a,\"_invoke\",{value:S(t,r,s)}),a}function l(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function v(){}function g(){}function b(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(F([])));x&&x!==r&&n.call(x,a)&&(w=x);var E=b.prototype=v.prototype=Object.create(w);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==_typeof(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=l(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=l(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function F(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(_typeof(e)+\" is not iterable\")}return g.prototype=b,i(E,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:g,configurable:!0}),g.displayName=c(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},k(D.prototype),c(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new D(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(E),c(E,u,\"Generator\"),c(E,a,(function(){return this})),c(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=F,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function _iterableToArrayLimit(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if(\"string\"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_toPrimitive(t,\"string\");return\"symbol\"==_typeof(e)?e:e+\"\"}function _toPrimitive(t,e){if(\"object\"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_typeof(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}function asyncGeneratorStep(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){asyncGeneratorStep(o,n,i,a,s,\"next\",t)}function s(t){asyncGeneratorStep(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}var Token=__webpack_require__(132),strtok3=__webpack_require__(47),_require=__webpack_require__(133),stringToBytes=_require.stringToBytes,tarHeaderChecksumMatches=_require.tarHeaderChecksumMatches,uint32SyncSafeToken=_require.uint32SyncSafeToken,supported=__webpack_require__(134),minimumBytes=4100;function fromStream(t){return _fromStream.apply(this,arguments)}function _fromStream(){return _fromStream=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,strtok3.fromStream(e);case 2:return r=t.sent,t.prev=3,t.next=6,fromTokenizer(r);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])}))),_fromStream.apply(this,arguments)}function fromBuffer(t){return _fromBuffer.apply(this,arguments)}function _fromBuffer(){return(_fromBuffer=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)){t.next=2;break}throw new TypeError(\"Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `\".concat(_typeof(e),\"`\"));case 2:if((r=e instanceof Buffer?e:Buffer.from(e))&&r.length>1){t.next=5;break}return t.abrupt(\"return\");case 5:return n=strtok3.fromBuffer(r),t.abrupt(\"return\",fromTokenizer(n));case 7:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function _check(t,e,r){r=_objectSpread({offset:0},r);var n,i=_createForOfIteratorHelper(e.entries());try{for(i.s();!(n=i.n()).done;){var o=_slicedToArray(n.value,2),a=o[0],s=o[1];if(r.mask){if(s!==(r.mask[a]&t[a+r.offset]))return!1}else if(s!==t[a+r.offset])return!1}}catch(t){i.e(t)}finally{i.f()}return!0}function fromTokenizer(t){return _fromTokenizer2.apply(this,arguments)}function _fromTokenizer2(){return(_fromTokenizer2=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt(\"return\",_fromTokenizer(e));case 4:if(t.prev=4,t.t0=t.catch(0),t.t0 instanceof strtok3.EndOfStreamError){t.next=8;break}throw t.t0;case 8:case\"end\":return t.stop()}}),t,null,[[0,4]])})))).apply(this,arguments)}function _fromTokenizer(t){return _fromTokenizer3.apply(this,arguments)}function _fromTokenizer3(){return _fromTokenizer3=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n,i,o,a,s,u,c,f,l,h,p,d,m,y,v,g,b,w,_,x,E,k,D,S;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(minimumBytes),12,n=function(t,e){return _check(r,t,e)},i=function(t,e){return n(stringToBytes(t),e)},e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),t.next=7,e.peekBuffer(r,{length:12,mayBeLess:!0});case 7:if(!n([66,77])){t.next=9;break}return t.abrupt(\"return\",{ext:\"bmp\",mime:\"image/bmp\"});case 9:if(!n([11,119])){t.next=11;break}return t.abrupt(\"return\",{ext:\"ac3\",mime:\"audio/vnd.dolby.dd-raw\"});case 11:if(!n([120,1])){t.next=13;break}return t.abrupt(\"return\",{ext:\"dmg\",mime:\"application/x-apple-diskimage\"});case 13:if(!n([77,90])){t.next=15;break}return t.abrupt(\"return\",{ext:\"exe\",mime:\"application/x-msdownload\"});case 15:if(!n([37,33])){t.next=21;break}return t.next=18,e.peekBuffer(r,{length:24,mayBeLess:!0});case 18:if(!i(\"PS-Adobe-\",{offset:2})||!i(\" EPSF-\",{offset:14})){t.next=20;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 20:return t.abrupt(\"return\",{ext:\"ps\",mime:\"application/postscript\"});case 21:if(!n([31,160])&&!n([31,157])){t.next=23;break}return t.abrupt(\"return\",{ext:\"Z\",mime:\"application/x-compress\"});case 23:if(!n([255,216,255])){t.next=25;break}return t.abrupt(\"return\",{ext:\"jpg\",mime:\"image/jpeg\"});case 25:if(!n([73,73,188])){t.next=27;break}return t.abrupt(\"return\",{ext:\"jxr\",mime:\"image/vnd.ms-photo\"});case 27:if(!n([31,139,8])){t.next=29;break}return t.abrupt(\"return\",{ext:\"gz\",mime:\"application/gzip\"});case 29:if(!n([66,90,104])){t.next=31;break}return t.abrupt(\"return\",{ext:\"bz2\",mime:\"application/x-bzip2\"});case 31:if(!i(\"ID3\")){t.next=42;break}return t.next=34,e.ignore(6);case 34:return t.next=36,e.readToken(uint32SyncSafeToken);case 36:if(o=t.sent,!(e.position+o>e.fileInfo.size)){t.next=39;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 39:return t.next=41,e.ignore(o);case 41:return t.abrupt(\"return\",fromTokenizer(e));case 42:if(!i(\"MP+\")){t.next=44;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 44:if(67!==r[0]&&70!==r[0]||!n([87,83],{offset:1})){t.next=46;break}return t.abrupt(\"return\",{ext:\"swf\",mime:\"application/x-shockwave-flash\"});case 46:if(!n([71,73,70])){t.next=48;break}return t.abrupt(\"return\",{ext:\"gif\",mime:\"image/gif\"});case 48:if(!i(\"FLIF\")){t.next=50;break}return t.abrupt(\"return\",{ext:\"flif\",mime:\"image/flif\"});case 50:if(!i(\"8BPS\")){t.next=52;break}return t.abrupt(\"return\",{ext:\"psd\",mime:\"image/vnd.adobe.photoshop\"});case 52:if(!i(\"WEBP\",{offset:8})){t.next=54;break}return t.abrupt(\"return\",{ext:\"webp\",mime:\"image/webp\"});case 54:if(!i(\"MPCK\")){t.next=56;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 56:if(!i(\"FORM\")){t.next=58;break}return t.abrupt(\"return\",{ext:\"aif\",mime:\"audio/aiff\"});case 58:if(!i(\"icns\",{offset:0})){t.next=60;break}return t.abrupt(\"return\",{ext:\"icns\",mime:\"image/icns\"});case 60:if(!n([80,75,3,4])){t.next=121;break}t.prev=61;case 62:if(!(e.position+30<e.fileInfo.size)){t.next=114;break}return t.next=65,e.readBuffer(r,{length:30});case 65:return a={compressedSize:r.readUInt32LE(18),uncompressedSize:r.readUInt32LE(22),filenameLength:r.readUInt16LE(26),extraFieldLength:r.readUInt16LE(28)},t.next=68,e.readToken(new Token.StringType(a.filenameLength,\"utf-8\"));case 68:return a.filename=t.sent,t.next=71,e.ignore(a.extraFieldLength);case 71:if(\"META-INF/mozilla.rsa\"!==a.filename){t.next=73;break}return t.abrupt(\"return\",{ext:\"xpi\",mime:\"application/x-xpinstall\"});case 73:if(!a.filename.endsWith(\".rels\")&&!a.filename.endsWith(\".xml\")){t.next=83;break}s=a.filename.split(\"/\")[0],t.t0=s,t.next=\"_rels\"===t.t0?78:\"word\"===t.t0?79:\"ppt\"===t.t0?80:\"xl\"===t.t0?81:82;break;case 78:return t.abrupt(\"break\",83);case 79:return t.abrupt(\"return\",{ext:\"docx\",mime:\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"});case 80:return t.abrupt(\"return\",{ext:\"pptx\",mime:\"application/vnd.openxmlformats-officedocument.presentationml.presentation\"});case 81:return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 82:return t.abrupt(\"break\",83);case 83:if(!a.filename.startsWith(\"xl/\")){t.next=85;break}return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 85:if(!a.filename.startsWith(\"3D/\")||!a.filename.endsWith(\".model\")){t.next=87;break}return t.abrupt(\"return\",{ext:\"3mf\",mime:\"model/3mf\"});case 87:if(\"mimetype\"!==a.filename||a.compressedSize!==a.uncompressedSize){t.next=98;break}return t.next=90,e.readToken(new Token.StringType(a.compressedSize,\"utf-8\"));case 90:u=t.sent,t.t1=u,t.next=\"application/epub+zip\"===t.t1?94:\"application/vnd.oasis.opendocument.text\"===t.t1?95:\"application/vnd.oasis.opendocument.spreadsheet\"===t.t1?96:\"application/vnd.oasis.opendocument.presentation\"===t.t1?97:98;break;case 94:return t.abrupt(\"return\",{ext:\"epub\",mime:\"application/epub+zip\"});case 95:return t.abrupt(\"return\",{ext:\"odt\",mime:\"application/vnd.oasis.opendocument.text\"});case 96:return t.abrupt(\"return\",{ext:\"ods\",mime:\"application/vnd.oasis.opendocument.spreadsheet\"});case 97:return t.abrupt(\"return\",{ext:\"odp\",mime:\"application/vnd.oasis.opendocument.presentation\"});case 98:if(0!==a.compressedSize){t.next=110;break}c=-1;case 100:if(!(c<0&&e.position<e.fileInfo.size)){t.next=108;break}return t.next=103,e.peekBuffer(r,{mayBeLess:!0});case 103:return c=r.indexOf(\"504B0304\",0,\"hex\"),t.next=106,e.ignore(c>=0?c:r.length);case 106:t.next=100;break;case 108:t.next=112;break;case 110:return t.next=112,e.ignore(a.compressedSize);case 112:t.next=62;break;case 114:t.next=120;break;case 116:if(t.prev=116,t.t2=t.catch(61),t.t2 instanceof strtok3.EndOfStreamError){t.next=120;break}throw t.t2;case 120:return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 121:if(!i(\"OggS\")){t.next=140;break}return t.next=124,e.ignore(28);case 124:return f=Buffer.alloc(8),t.next=127,e.readBuffer(f);case 127:if(!_check(f,[79,112,117,115,72,101,97,100])){t.next=129;break}return t.abrupt(\"return\",{ext:\"opus\",mime:\"audio/opus\"});case 129:if(!_check(f,[128,116,104,101,111,114,97])){t.next=131;break}return t.abrupt(\"return\",{ext:\"ogv\",mime:\"video/ogg\"});case 131:if(!_check(f,[1,118,105,100,101,111,0])){t.next=133;break}return t.abrupt(\"return\",{ext:\"ogm\",mime:\"video/ogg\"});case 133:if(!_check(f,[127,70,76,65,67])){t.next=135;break}return t.abrupt(\"return\",{ext:\"oga\",mime:\"audio/ogg\"});case 135:if(!_check(f,[83,112,101,101,120,32,32])){t.next=137;break}return t.abrupt(\"return\",{ext:\"spx\",mime:\"audio/ogg\"});case 137:if(!_check(f,[1,118,111,114,98,105,115])){t.next=139;break}return t.abrupt(\"return\",{ext:\"ogg\",mime:\"audio/ogg\"});case 139:return t.abrupt(\"return\",{ext:\"ogx\",mime:\"application/ogg\"});case 140:if(!n([80,75])||3!==r[2]&&5!==r[2]&&7!==r[2]||4!==r[3]&&6!==r[3]&&8!==r[3]){t.next=142;break}return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 142:if(!(i(\"ftyp\",{offset:4})&&96&r[8])){t.next=167;break}l=r.toString(\"binary\",8,12).replace(\"\\0\",\" \").trim(),t.t3=l,t.next=\"avif\"===t.t3?147:\"mif1\"===t.t3?148:\"msf1\"===t.t3?149:\"heic\"===t.t3||\"heix\"===t.t3?150:\"hevc\"===t.t3||\"hevx\"===t.t3?151:\"qt\"===t.t3?152:\"M4V\"===t.t3||\"M4VH\"===t.t3||\"M4VP\"===t.t3?153:\"M4P\"===t.t3?154:\"M4B\"===t.t3?155:\"M4A\"===t.t3?156:\"F4V\"===t.t3?157:\"F4P\"===t.t3?158:\"F4A\"===t.t3?159:\"F4B\"===t.t3?160:\"crx\"===t.t3?161:162;break;case 147:return t.abrupt(\"return\",{ext:\"avif\",mime:\"image/avif\"});case 148:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif\"});case 149:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif-sequence\"});case 150:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic\"});case 151:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic-sequence\"});case 152:return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 153:return t.abrupt(\"return\",{ext:\"m4v\",mime:\"video/x-m4v\"});case 154:return t.abrupt(\"return\",{ext:\"m4p\",mime:\"video/mp4\"});case 155:return t.abrupt(\"return\",{ext:\"m4b\",mime:\"audio/mp4\"});case 156:return t.abrupt(\"return\",{ext:\"m4a\",mime:\"audio/x-m4a\"});case 157:return t.abrupt(\"return\",{ext:\"f4v\",mime:\"video/mp4\"});case 158:return t.abrupt(\"return\",{ext:\"f4p\",mime:\"video/mp4\"});case 159:return t.abrupt(\"return\",{ext:\"f4a\",mime:\"audio/mp4\"});case 160:return t.abrupt(\"return\",{ext:\"f4b\",mime:\"audio/mp4\"});case 161:return t.abrupt(\"return\",{ext:\"cr3\",mime:\"image/x-canon-cr3\"});case 162:if(!l.startsWith(\"3g\")){t.next=166;break}if(!l.startsWith(\"3g2\")){t.next=165;break}return t.abrupt(\"return\",{ext:\"3g2\",mime:\"video/3gpp2\"});case 165:return t.abrupt(\"return\",{ext:\"3gp\",mime:\"video/3gpp\"});case 166:return t.abrupt(\"return\",{ext:\"mp4\",mime:\"video/mp4\"});case 167:if(!i(\"MThd\")){t.next=169;break}return t.abrupt(\"return\",{ext:\"mid\",mime:\"audio/midi\"});case 169:if(!i(\"wOFF\")||!n([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=171;break}return t.abrupt(\"return\",{ext:\"woff\",mime:\"font/woff\"});case 171:if(!i(\"wOF2\")||!n([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=173;break}return t.abrupt(\"return\",{ext:\"woff2\",mime:\"font/woff2\"});case 173:if(!n([212,195,178,161])&&!n([161,178,195,212])){t.next=175;break}return t.abrupt(\"return\",{ext:\"pcap\",mime:\"application/vnd.tcpdump.pcap\"});case 175:if(!i(\"DSD \")){t.next=177;break}return t.abrupt(\"return\",{ext:\"dsf\",mime:\"audio/x-dsf\"});case 177:if(!i(\"LZIP\")){t.next=179;break}return t.abrupt(\"return\",{ext:\"lz\",mime:\"application/x-lzip\"});case 179:if(!i(\"fLaC\")){t.next=181;break}return t.abrupt(\"return\",{ext:\"flac\",mime:\"audio/x-flac\"});case 181:if(!n([66,80,71,251])){t.next=183;break}return t.abrupt(\"return\",{ext:\"bpg\",mime:\"image/bpg\"});case 183:if(!i(\"wvpk\")){t.next=185;break}return t.abrupt(\"return\",{ext:\"wv\",mime:\"audio/wavpack\"});case 185:if(!i(\"%PDF\")){t.next=195;break}return t.next=188,e.ignore(1350);case 188:return 10485760,h=Buffer.alloc(Math.min(10485760,e.fileInfo.size)),t.next=192,e.readBuffer(h,{mayBeLess:!0});case 192:if(!h.includes(Buffer.from(\"AIPrivateData\"))){t.next=194;break}return t.abrupt(\"return\",{ext:\"ai\",mime:\"application/postscript\"});case 194:return t.abrupt(\"return\",{ext:\"pdf\",mime:\"application/pdf\"});case 195:if(!n([0,97,115,109])){t.next=197;break}return t.abrupt(\"return\",{ext:\"wasm\",mime:\"application/wasm\"});case 197:if(!n([73,73,42,0])){t.next=210;break}if(!i(\"CR\",{offset:8})){t.next=200;break}return t.abrupt(\"return\",{ext:\"cr2\",mime:\"image/x-canon-cr2\"});case 200:if(!n([28,0,254,0],{offset:8})&&!n([31,0,11,0],{offset:8})){t.next=202;break}return t.abrupt(\"return\",{ext:\"nef\",mime:\"image/x-nikon-nef\"});case 202:if(!n([8,0,0,0],{offset:4})||!n([45,0,254,0],{offset:8})&&!n([39,0,254,0],{offset:8})){t.next=204;break}return t.abrupt(\"return\",{ext:\"dng\",mime:\"image/x-adobe-dng\"});case 204:return r=Buffer.alloc(24),t.next=207,e.peekBuffer(r);case 207:if(!n([16,251,134,1],{offset:4})&&!n([8,0,0,0],{offset:4})||!n([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})){t.next=209;break}return t.abrupt(\"return\",{ext:\"arw\",mime:\"image/x-sony-arw\"});case 209:return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 210:if(!n([77,77,0,42])){t.next=212;break}return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 212:if(!i(\"MAC \")){t.next=214;break}return t.abrupt(\"return\",{ext:\"ape\",mime:\"audio/ape\"});case 214:if(!n([26,69,223,163])){t.next=230;break}return p=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r,n,i,o;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peekNumber(Token.UINT8);case 2:for(r=t.sent,n=128,i=0;!(r&n)&&0!==n;)++i,n>>=1;return o=Buffer.alloc(i+1),t.next=9,e.readBuffer(o);case 9:return t.abrupt(\"return\",o);case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),d=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:return e=t.sent,t.next=5,p();case 5:return(r=t.sent)[0]^=128>>r.length-1,n=Math.min(6,r.length),t.abrupt(\"return\",{id:e.readUIntBE(0,e.length),len:r.readUIntBE(r.length-n,n)});case 9:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(r,n){var i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n>0)){t.next=11;break}return t.next=3,d();case 3:if(17026!==(i=t.sent).id){t.next=6;break}return t.abrupt(\"return\",e.readToken(new Token.StringType(i.len,\"utf-8\")));case 6:return t.next=8,e.ignore(i.len);case 8:--n,t.next=0;break;case 11:case\"end\":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),t.next=220,d();case 220:return y=t.sent,t.next=223,m(1,y.len);case 223:v=t.sent,t.t4=v,t.next=\"webm\"===t.t4?227:\"matroska\"===t.t4?228:229;break;case 227:return t.abrupt(\"return\",{ext:\"webm\",mime:\"video/webm\"});case 228:return t.abrupt(\"return\",{ext:\"mkv\",mime:\"video/x-matroska\"});case 229:return t.abrupt(\"return\");case 230:if(!n([82,73,70,70])){t.next=237;break}if(!n([65,86,73],{offset:8})){t.next=233;break}return t.abrupt(\"return\",{ext:\"avi\",mime:\"video/vnd.avi\"});case 233:if(!n([87,65,86,69],{offset:8})){t.next=235;break}return t.abrupt(\"return\",{ext:\"wav\",mime:\"audio/vnd.wave\"});case 235:if(!n([81,76,67,77],{offset:8})){t.next=237;break}return t.abrupt(\"return\",{ext:\"qcp\",mime:\"audio/qcelp\"});case 237:if(!i(\"SQLi\")){t.next=239;break}return t.abrupt(\"return\",{ext:\"sqlite\",mime:\"application/x-sqlite3\"});case 239:if(!n([78,69,83,26])){t.next=241;break}return t.abrupt(\"return\",{ext:\"nes\",mime:\"application/x-nintendo-nes-rom\"});case 241:if(!i(\"Cr24\")){t.next=243;break}return t.abrupt(\"return\",{ext:\"crx\",mime:\"application/x-google-chrome-extension\"});case 243:if(!i(\"MSCF\")&&!i(\"ISc(\")){t.next=245;break}return t.abrupt(\"return\",{ext:\"cab\",mime:\"application/vnd.ms-cab-compressed\"});case 245:if(!n([237,171,238,219])){t.next=247;break}return t.abrupt(\"return\",{ext:\"rpm\",mime:\"application/x-rpm\"});case 247:if(!n([197,208,211,198])){t.next=249;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 249:if(!n([40,181,47,253])){t.next=251;break}return t.abrupt(\"return\",{ext:\"zst\",mime:\"application/zstd\"});case 251:if(!n([79,84,84,79,0])){t.next=253;break}return t.abrupt(\"return\",{ext:\"otf\",mime:\"font/otf\"});case 253:if(!i(\"#!AMR\")){t.next=255;break}return t.abrupt(\"return\",{ext:\"amr\",mime:\"audio/amr\"});case 255:if(!i(\"{\\\\rtf\")){t.next=257;break}return t.abrupt(\"return\",{ext:\"rtf\",mime:\"application/rtf\"});case 257:if(!n([70,76,86,1])){t.next=259;break}return t.abrupt(\"return\",{ext:\"flv\",mime:\"video/x-flv\"});case 259:if(!i(\"IMPM\")){t.next=261;break}return t.abrupt(\"return\",{ext:\"it\",mime:\"audio/x-it\"});case 261:if(!(i(\"-lh0-\",{offset:2})||i(\"-lh1-\",{offset:2})||i(\"-lh2-\",{offset:2})||i(\"-lh3-\",{offset:2})||i(\"-lh4-\",{offset:2})||i(\"-lh5-\",{offset:2})||i(\"-lh6-\",{offset:2})||i(\"-lh7-\",{offset:2})||i(\"-lzs-\",{offset:2})||i(\"-lz4-\",{offset:2})||i(\"-lz5-\",{offset:2})||i(\"-lhd-\",{offset:2}))){t.next=263;break}return t.abrupt(\"return\",{ext:\"lzh\",mime:\"application/x-lzh-compressed\"});case 263:if(!n([0,0,1,186])){t.next=268;break}if(!n([33],{offset:4,mask:[241]})){t.next=266;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP1S\"});case 266:if(!n([68],{offset:4,mask:[196]})){t.next=268;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP2P\"});case 268:if(!i(\"ITSF\")){t.next=270;break}return t.abrupt(\"return\",{ext:\"chm\",mime:\"application/vnd.ms-htmlhelp\"});case 270:if(!n([253,55,122,88,90,0])){t.next=272;break}return t.abrupt(\"return\",{ext:\"xz\",mime:\"application/x-xz\"});case 272:if(!i(\"<?xml \")){t.next=274;break}return t.abrupt(\"return\",{ext:\"xml\",mime:\"application/xml\"});case 274:if(!n([55,122,188,175,39,28])){t.next=276;break}return t.abrupt(\"return\",{ext:\"7z\",mime:\"application/x-7z-compressed\"});case 276:if(!n([82,97,114,33,26,7])||0!==r[6]&&1!==r[6]){t.next=278;break}return t.abrupt(\"return\",{ext:\"rar\",mime:\"application/x-rar-compressed\"});case 278:if(!i(\"solid \")){t.next=280;break}return t.abrupt(\"return\",{ext:\"stl\",mime:\"model/stl\"});case 280:if(!i(\"BLENDER\")){t.next=282;break}return t.abrupt(\"return\",{ext:\"blend\",mime:\"application/x-blender\"});case 282:if(!i(\"!<arch>\")){t.next=291;break}return t.next=285,e.ignore(8);case 285:return t.next=287,e.readToken(new Token.StringType(13,\"ascii\"));case 287:if(\"debian-binary\"!==t.sent){t.next=290;break}return t.abrupt(\"return\",{ext:\"deb\",mime:\"application/x-deb\"});case 290:return t.abrupt(\"return\",{ext:\"ar\",mime:\"application/x-unix-archive\"});case 291:if(!n([137,80,78,71,13,10,26,10])){t.next=309;break}return g=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.readToken(Token.INT32_BE);case 2:return t.t0=t.sent,t.next=5,e.readToken(new Token.StringType(4,\"binary\"));case 5:return t.t1=t.sent,t.abrupt(\"return\",{length:t.t0,type:t.t1});case 7:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=295,e.ignore(8);case 295:return t.next=297,g();case 297:if(!((b=t.sent).length<0)){t.next=300;break}return t.abrupt(\"return\");case 300:t.t5=b.type,t.next=\"IDAT\"===t.t5?303:\"acTL\"===t.t5?304:305;break;case 303:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 304:return t.abrupt(\"return\",{ext:\"apng\",mime:\"image/apng\"});case 305:return t.next=307,e.ignore(b.length+4);case 307:if(e.position+8<e.fileInfo.size){t.next=295;break}case 308:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 309:if(!n([65,82,82,79,87,49,0,0])){t.next=311;break}return t.abrupt(\"return\",{ext:\"arrow\",mime:\"application/x-apache-arrow\"});case 311:if(!n([103,108,84,70,2,0,0,0])){t.next=313;break}return t.abrupt(\"return\",{ext:\"glb\",mime:\"model/gltf-binary\"});case 313:if(!(n([102,114,101,101],{offset:4})||n([109,100,97,116],{offset:4})||n([109,111,111,118],{offset:4})||n([119,105,100,101],{offset:4}))){t.next=315;break}return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 315:if(!n([73,73,82,79,8,0,0,0,24])){t.next=317;break}return t.abrupt(\"return\",{ext:\"orf\",mime:\"image/x-olympus-orf\"});case 317:if(!i(\"gimp xcf \")){t.next=319;break}return t.abrupt(\"return\",{ext:\"xcf\",mime:\"image/x-xcf\"});case 319:if(!n([73,73,85,0,24,0,0,0,136,231,116,216])){t.next=321;break}return t.abrupt(\"return\",{ext:\"rw2\",mime:\"image/x-panasonic-rw2\"});case 321:if(!n([48,38,178,117,142,102,207,17,166,217])){t.next=346;break}return w=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(16),t.next=3,e.readBuffer(r);case 3:return t.t0=r,t.t1=Number,t.next=7,e.readToken(Token.UINT64_LE);case 7:return t.t2=t.sent,t.t3=(0,t.t1)(t.t2),t.abrupt(\"return\",{id:t.t0,size:t.t3});case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=325,e.ignore(30);case 325:if(!(e.position+24<e.fileInfo.size)){t.next=345;break}return t.next=328,w();case 328:if(_=t.sent,x=_.size-24,!_check(_.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){t.next=341;break}return E=Buffer.alloc(16),t.t6=x,t.next=335,e.readBuffer(E);case 335:if(x=t.t6-=t.sent,!_check(E,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=338;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"audio/x-ms-asf\"});case 338:if(!_check(E,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=340;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"video/x-ms-asf\"});case 340:return t.abrupt(\"break\",345);case 341:return t.next=343,e.ignore(x);case 343:t.next=325;break;case 345:return t.abrupt(\"return\",{ext:\"asf\",mime:\"application/vnd.ms-asf\"});case 346:if(!n([171,75,84,88,32,49,49,187,13,10,26,10])){t.next=348;break}return t.abrupt(\"return\",{ext:\"ktx\",mime:\"image/ktx\"});case 348:if(!n([126,16,4])&&!n([126,24,4])||!n([48,77,73,69],{offset:4})){t.next=350;break}return t.abrupt(\"return\",{ext:\"mie\",mime:\"application/x-mie\"});case 350:if(!n([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2})){t.next=352;break}return t.abrupt(\"return\",{ext:\"shp\",mime:\"application/x-esri-shape\"});case 352:if(!n([0,0,0,12,106,80,32,32,13,10,135,10])){t.next=366;break}return t.next=355,e.ignore(20);case 355:return t.next=357,e.readToken(new Token.StringType(4,\"ascii\"));case 357:k=t.sent,t.t7=k,t.next=\"jp2 \"===t.t7?361:\"jpx \"===t.t7?362:\"jpm \"===t.t7?363:\"mjp2\"===t.t7?364:365;break;case 361:return t.abrupt(\"return\",{ext:\"jp2\",mime:\"image/jp2\"});case 362:return t.abrupt(\"return\",{ext:\"jpx\",mime:\"image/jpx\"});case 363:return t.abrupt(\"return\",{ext:\"jpm\",mime:\"image/jpm\"});case 364:return t.abrupt(\"return\",{ext:\"mj2\",mime:\"image/mj2\"});case 365:return t.abrupt(\"return\");case 366:if(!n([255,10])&&!n([0,0,0,12,74,88,76,32,13,10,135,10])){t.next=368;break}return t.abrupt(\"return\",{ext:\"jxl\",mime:\"image/jxl\"});case 368:if(!n([0,0,1,186])&&!n([0,0,1,179])){t.next=370;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/mpeg\"});case 370:if(!n([0,1,0,0,0])){t.next=372;break}return t.abrupt(\"return\",{ext:\"ttf\",mime:\"font/ttf\"});case 372:if(!n([0,0,1,0])){t.next=374;break}return t.abrupt(\"return\",{ext:\"ico\",mime:\"image/x-icon\"});case 374:if(!n([0,0,2,0])){t.next=376;break}return t.abrupt(\"return\",{ext:\"cur\",mime:\"image/x-icon\"});case 376:if(!n([208,207,17,224,161,177,26,225])){t.next=378;break}return t.abrupt(\"return\",{ext:\"cfb\",mime:\"application/x-cfb\"});case 378:return t.next=380,e.peekBuffer(r,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0});case 380:if(!i(\"BEGIN:\")){t.next=385;break}if(!i(\"VCARD\",{offset:6})){t.next=383;break}return t.abrupt(\"return\",{ext:\"vcf\",mime:\"text/vcard\"});case 383:if(!i(\"VCALENDAR\",{offset:6})){t.next=385;break}return t.abrupt(\"return\",{ext:\"ics\",mime:\"text/calendar\"});case 385:if(!i(\"FUJIFILMCCD-RAW\")){t.next=387;break}return t.abrupt(\"return\",{ext:\"raf\",mime:\"image/x-fujifilm-raf\"});case 387:if(!i(\"Extended Module:\")){t.next=389;break}return t.abrupt(\"return\",{ext:\"xm\",mime:\"audio/x-xm\"});case 389:if(!i(\"Creative Voice File\")){t.next=391;break}return t.abrupt(\"return\",{ext:\"voc\",mime:\"audio/x-voc\"});case 391:if(!(n([4,0,0,0])&&r.length>=16)){t.next=403;break}if(!((D=r.readUInt32LE(12))>12&&r.length>=D+16)){t.next=403;break}if(t.prev=394,S=r.slice(16,D+16).toString(),!JSON.parse(S).files){t.next=399;break}return t.abrupt(\"return\",{ext:\"asar\",mime:\"application/x-asar\"});case 399:t.next=403;break;case 401:t.prev=401,t.t8=t.catch(394);case 403:if(!n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){t.next=405;break}return t.abrupt(\"return\",{ext:\"mxf\",mime:\"application/mxf\"});case 405:if(!i(\"SCRM\",{offset:44})){t.next=407;break}return t.abrupt(\"return\",{ext:\"s3m\",mime:\"audio/x-s3m\"});case 407:if(!n([71],{offset:4})||!n([71],{offset:192})&&!n([71],{offset:196})){t.next=409;break}return t.abrupt(\"return\",{ext:\"mts\",mime:\"video/mp2t\"});case 409:if(!n([66,79,79,75,77,79,66,73],{offset:60})){t.next=411;break}return t.abrupt(\"return\",{ext:\"mobi\",mime:\"application/x-mobipocket-ebook\"});case 411:if(!n([68,73,67,77],{offset:128})){t.next=413;break}return t.abrupt(\"return\",{ext:\"dcm\",mime:\"application/dicom\"});case 413:if(!n([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70])){t.next=415;break}return t.abrupt(\"return\",{ext:\"lnk\",mime:\"application/x.ms.shortcut\"});case 415:if(!n([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0])){t.next=417;break}return t.abrupt(\"return\",{ext:\"alias\",mime:\"application/x.apple.alias\"});case 417:if(!n([76,80],{offset:34})||!(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))){t.next=419;break}return t.abrupt(\"return\",{ext:\"eot\",mime:\"application/vnd.ms-fontobject\"});case 419:if(!n([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29])){t.next=421;break}return t.abrupt(\"return\",{ext:\"indd\",mime:\"application/x-indesign\"});case 421:return t.next=423,e.peekBuffer(r,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0});case 423:if(!tarHeaderChecksumMatches(r)){t.next=425;break}return t.abrupt(\"return\",{ext:\"tar\",mime:\"application/x-tar\"});case 425:if(!n([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0])){t.next=427;break}return t.abrupt(\"return\",{ext:\"skp\",mime:\"application/vnd.sketchup.skp\"});case 427:if(!i(\"-----BEGIN PGP MESSAGE-----\")){t.next=429;break}return t.abrupt(\"return\",{ext:\"pgp\",mime:\"application/pgp-encrypted\"});case 429:if(!(r.length>=2&&n([255,224],{offset:0,mask:[255,224]}))){t.next=440;break}if(!n([16],{offset:1,mask:[22]})){t.next=434;break}if(!n([8],{offset:1,mask:[8]})){t.next=433;break}return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 433:return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 434:if(!n([2],{offset:1,mask:[6]})){t.next=436;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 436:if(!n([4],{offset:1,mask:[6]})){t.next=438;break}return t.abrupt(\"return\",{ext:\"mp2\",mime:\"audio/mpeg\"});case 438:if(!n([6],{offset:1,mask:[6]})){t.next=440;break}return t.abrupt(\"return\",{ext:\"mp1\",mime:\"audio/mpeg\"});case 440:case\"end\":return t.stop()}}),t,null,[[61,116],[394,401]])}))),_fromTokenizer3.apply(this,arguments)}var stream=function stream(readableStream){return new Promise((function(resolve,reject){var stream=eval(\"require\")(\"stream\");readableStream.on(\"error\",reject),readableStream.once(\"readable\",_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new stream.PassThrough,r=stream.pipeline?stream.pipeline(readableStream,e,(function(){})):readableStream.pipe(e),n=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0),t.prev=3,t.next=6,fromBuffer(n);case 6:i=t.sent,e.fileType=i,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),reject(t.t0);case 13:resolve(r);case 14:case\"end\":return t.stop()}}),t,null,[[3,10]])}))))}))},fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,\"extensions\",{get:function(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,\"mimeTypes\",{get:function(){return new Set(supported.mimeTypes)}}),module.exports=fileType}).call(this,__webpack_require__(2).Buffer)},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function a(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function s(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;var u=r(67);function c(t){return new DataView(t.buffer,t.byteOffset)}e.UINT8={len:1,get:function(t,e){return c(t).getUint8(e)},put:function(t,e,r){return c(t).setUint8(e,r),e+1}},e.UINT16_LE={len:2,get:function(t,e){return c(t).getUint16(e,!0)},put:function(t,e,r){return c(t).setUint16(e,r,!0),e+2}},e.UINT16_BE={len:2,get:function(t,e){return c(t).getUint16(e)},put:function(t,e,r){return c(t).setUint16(e,r),e+2}},e.UINT24_LE={len:3,get:function(t,e){var r=c(t);return r.getUint8(e)+(r.getUint16(e+1,!0)<<8)},put:function(t,e,r){var n=c(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.UINT24_BE={len:3,get:function(t,e){var r=c(t);return(r.getUint16(e)<<8)+r.getUint8(e+2)},put:function(t,e,r){var n=c(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.UINT32_LE={len:4,get:function(t,e){return c(t).getUint32(e,!0)},put:function(t,e,r){return c(t).setUint32(e,r,!0),e+4}},e.UINT32_BE={len:4,get:function(t,e){return c(t).getUint32(e)},put:function(t,e,r){return c(t).setUint32(e,r),e+4}},e.INT8={len:1,get:function(t,e){return c(t).getInt8(e)},put:function(t,e,r){return c(t).setInt8(e,r),e+1}},e.INT16_BE={len:2,get:function(t,e){return c(t).getInt16(e)},put:function(t,e,r){return c(t).setInt16(e,r),e+2}},e.INT16_LE={len:2,get:function(t,e){return c(t).getInt16(e,!0)},put:function(t,e,r){return c(t).setInt16(e,r,!0),e+2}},e.INT24_LE={len:3,get:function(t,r){var n=e.UINT24_LE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=c(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.INT24_BE={len:3,get:function(t,r){var n=e.UINT24_BE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=c(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.INT32_BE={len:4,get:function(t,e){return c(t).getInt32(e)},put:function(t,e,r){return c(t).setInt32(e,r),e+4}},e.INT32_LE={len:4,get:function(t,e){return c(t).getInt32(e,!0)},put:function(t,e,r){return c(t).setInt32(e,r,!0),e+4}},e.UINT64_LE={len:8,get:function(t,e){return c(t).getBigUint64(e,!0)},put:function(t,e,r){return c(t).setBigUint64(e,r,!0),e+8}},e.INT64_LE={len:8,get:function(t,e){return c(t).getBigInt64(e,!0)},put:function(t,e,r){return c(t).setBigInt64(e,r,!0),e+8}},e.UINT64_BE={len:8,get:function(t,e){return c(t).getBigUint64(e)},put:function(t,e,r){return c(t).setBigUint64(e,r),e+8}},e.INT64_BE={len:8,get:function(t,e){return c(t).getBigInt64(e)},put:function(t,e,r){return c(t).setBigInt64(e,r),e+8}},e.Float16_BE={len:2,get:function(t,e){return u.read(t,e,!1,10,this.len)},put:function(t,e,r){return u.write(t,r,e,!1,10,this.len),e+this.len}},e.Float16_LE={len:2,get:function(t,e){return u.read(t,e,!0,10,this.len)},put:function(t,e,r){return u.write(t,r,e,!0,10,this.len),e+this.len}},e.Float32_BE={len:4,get:function(t,e){return c(t).getFloat32(e)},put:function(t,e,r){return c(t).setFloat32(e,r),e+4}},e.Float32_LE={len:4,get:function(t,e){return c(t).getFloat32(e,!0)},put:function(t,e,r){return c(t).setFloat32(e,r,!0),e+4}},e.Float64_BE={len:8,get:function(t,e){return c(t).getFloat64(e)},put:function(t,e,r){return c(t).setFloat64(e,r),e+8}},e.Float64_LE={len:8,get:function(t,e){return c(t).getFloat64(e,!0)},put:function(t,e,r){return c(t).setFloat64(e,r,!0),e+8}},e.Float80_BE={len:10,get:function(t,e){return u.read(t,e,!1,63,this.len)},put:function(t,e,r){return u.write(t,r,e,!1,63,this.len),e+this.len}},e.Float80_LE={len:10,get:function(t,e){return u.read(t,e,!0,63,this.len)},put:function(t,e,r){return u.write(t,r,e,!0,63,this.len),e+this.len}};var f=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){}}])}();e.IgnoreType=f;var l=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){return t.subarray(e,e+this.len)}}])}();e.Uint8ArrayType=l;var h=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(e,r){return t.from(e.subarray(r,r+this.len))}}])}();e.BufferType=h;var p=function(){return a((function t(e,r){i(this,t),this.len=e,this.encoding=r}),[{key:\"get\",value:function(e,r){return t.from(e).toString(this.encoding,r,r+this.len)}}])}();e.StringType=p;var d=function(){function t(e){i(this,t),this.len=e}return a(t,[{key:\"get\",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.decode(e,r,r+this.len)}}],[{key:\"decode\",value:function(e,r,n){for(var i=\"\",o=r;o<n;++o)i+=t.codePointToString(t.singleByteDecoder(e[o]));return i}},{key:\"inRange\",value:function(t,e,r){return e<=t&&t<=r}},{key:\"codePointToString\",value:function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}},{key:\"singleByteDecoder\",value:function(e){if(t.inRange(e,0,127))return e;var r=t.windows1252[e-128];if(null===r)throw Error(\"invaliding encoding\");return r}}])}();e.AnsiStringType=d,d.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.stringToBytes=function(t){return n(t).map((function(t){return t.charCodeAt(0)}))},e.tarHeaderChecksumMatches=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=parseInt(t.toString(\"utf8\",148,154).replace(/\\0.*$/,\"\").trim(),8);if(isNaN(r))return!1;for(var n=256,i=e;i<e+148;i++)n+=t[i];for(var o=e+156;o<e+512;o++)n+=t[o];return r===n},e.uint32SyncSafeToken={get:function(t,e){return 127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21},len:4}},function(t,e,r){\"use strict\";t.exports={extensions:[\"jpg\",\"png\",\"apng\",\"gif\",\"webp\",\"flif\",\"xcf\",\"cr2\",\"cr3\",\"orf\",\"arw\",\"dng\",\"nef\",\"rw2\",\"raf\",\"tif\",\"bmp\",\"icns\",\"jxr\",\"psd\",\"indd\",\"zip\",\"tar\",\"rar\",\"gz\",\"bz2\",\"7z\",\"dmg\",\"mp4\",\"mid\",\"mkv\",\"webm\",\"mov\",\"avi\",\"mpg\",\"mp2\",\"mp3\",\"m4a\",\"oga\",\"ogg\",\"ogv\",\"opus\",\"flac\",\"wav\",\"spx\",\"amr\",\"pdf\",\"epub\",\"exe\",\"swf\",\"rtf\",\"wasm\",\"woff\",\"woff2\",\"eot\",\"ttf\",\"otf\",\"ico\",\"flv\",\"ps\",\"xz\",\"sqlite\",\"nes\",\"crx\",\"xpi\",\"cab\",\"deb\",\"ar\",\"rpm\",\"Z\",\"lz\",\"cfb\",\"mxf\",\"mts\",\"blend\",\"bpg\",\"docx\",\"pptx\",\"xlsx\",\"3gp\",\"3g2\",\"jp2\",\"jpm\",\"jpx\",\"mj2\",\"aif\",\"qcp\",\"odt\",\"ods\",\"odp\",\"xml\",\"mobi\",\"heic\",\"cur\",\"ktx\",\"ape\",\"wv\",\"dcm\",\"ics\",\"glb\",\"pcap\",\"dsf\",\"lnk\",\"alias\",\"voc\",\"ac3\",\"m4v\",\"m4p\",\"m4b\",\"f4v\",\"f4p\",\"f4b\",\"f4a\",\"mie\",\"asf\",\"ogm\",\"ogx\",\"mpc\",\"arrow\",\"shp\",\"aac\",\"mp1\",\"it\",\"s3m\",\"xm\",\"ai\",\"skp\",\"avif\",\"eps\",\"lzh\",\"pgp\",\"asar\",\"stl\",\"chm\",\"3mf\",\"zst\",\"jxl\",\"vcf\"],mimeTypes:[\"image/jpeg\",\"image/png\",\"image/gif\",\"image/webp\",\"image/flif\",\"image/x-xcf\",\"image/x-canon-cr2\",\"image/x-canon-cr3\",\"image/tiff\",\"image/bmp\",\"image/vnd.ms-photo\",\"image/vnd.adobe.photoshop\",\"application/x-indesign\",\"application/epub+zip\",\"application/x-xpinstall\",\"application/vnd.oasis.opendocument.text\",\"application/vnd.oasis.opendocument.spreadsheet\",\"application/vnd.oasis.opendocument.presentation\",\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\"application/zip\",\"application/x-tar\",\"application/x-rar-compressed\",\"application/gzip\",\"application/x-bzip2\",\"application/x-7z-compressed\",\"application/x-apple-diskimage\",\"application/x-apache-arrow\",\"video/mp4\",\"audio/midi\",\"video/x-matroska\",\"video/webm\",\"video/quicktime\",\"video/vnd.avi\",\"audio/vnd.wave\",\"audio/qcelp\",\"audio/x-ms-asf\",\"video/x-ms-asf\",\"application/vnd.ms-asf\",\"video/mpeg\",\"video/3gpp\",\"audio/mpeg\",\"audio/mp4\",\"audio/opus\",\"video/ogg\",\"audio/ogg\",\"application/ogg\",\"audio/x-flac\",\"audio/ape\",\"audio/wavpack\",\"audio/amr\",\"application/pdf\",\"application/x-msdownload\",\"application/x-shockwave-flash\",\"application/rtf\",\"application/wasm\",\"font/woff\",\"font/woff2\",\"application/vnd.ms-fontobject\",\"font/ttf\",\"font/otf\",\"image/x-icon\",\"video/x-flv\",\"application/postscript\",\"application/eps\",\"application/x-xz\",\"application/x-sqlite3\",\"application/x-nintendo-nes-rom\",\"application/x-google-chrome-extension\",\"application/vnd.ms-cab-compressed\",\"application/x-deb\",\"application/x-unix-archive\",\"application/x-rpm\",\"application/x-compress\",\"application/x-lzip\",\"application/x-cfb\",\"application/x-mie\",\"application/mxf\",\"video/mp2t\",\"application/x-blender\",\"image/bpg\",\"image/jp2\",\"image/jpx\",\"image/jpm\",\"image/mj2\",\"audio/aiff\",\"application/xml\",\"application/x-mobipocket-ebook\",\"image/heif\",\"image/heif-sequence\",\"image/heic\",\"image/heic-sequence\",\"image/icns\",\"image/ktx\",\"application/dicom\",\"audio/x-musepack\",\"text/calendar\",\"text/vcard\",\"model/gltf-binary\",\"application/vnd.tcpdump.pcap\",\"audio/x-dsf\",\"application/x.ms.shortcut\",\"application/x.apple.alias\",\"audio/x-voc\",\"audio/vnd.dolby.dd-raw\",\"audio/x-m4a\",\"image/apng\",\"image/x-olympus-orf\",\"image/x-sony-arw\",\"image/x-adobe-dng\",\"image/x-nikon-nef\",\"image/x-panasonic-rw2\",\"image/x-fujifilm-raf\",\"video/x-m4v\",\"video/3gpp2\",\"application/x-esri-shape\",\"audio/aac\",\"audio/x-it\",\"audio/x-s3m\",\"audio/x-xm\",\"video/MP1S\",\"video/MP2P\",\"application/vnd.sketchup.skp\",\"image/avif\",\"application/x-lzh-compressed\",\"application/pgp-encrypted\",\"application/x-asar\",\"model/stl\",\"application/vnd.ms-htmlhelp\",\"model/3mf\",\"image/jxl\",\"application/zstd\"]}},function(t,e,r){var n=r(136),i=r(69),o=r(137);function a(t,e,r,n,i,o,a){this.startMarker=t,this.tags=e,this.imageSize=r,this.thumbnailOffset=n,this.thumbnailLength=i,this.thumbnailType=o,this.app1Offset=a}function s(t){this.stream=t,this.flags={readBinaryTags:!1,resolveTagNames:!0,simplifyValues:!0,imageSize:!0,hidePointers:!0,returnTags:!0}}a.prototype={hasThumbnail:function(t){return!(!this.thumbnailOffset||!this.thumbnailLength)&&(\"string\"!=typeof t||(\"image/jpeg\"===t.toLowerCase().trim()?6===this.thumbnailType:\"image/tiff\"===t.toLowerCase().trim()&&1===this.thumbnailType))},getThumbnailOffset:function(){return this.app1Offset+6+this.thumbnailOffset},getThumbnailLength:function(){return this.thumbnailLength},getThumbnailBuffer:function(){return this._getThumbnailStream().nextBuffer(this.thumbnailLength)},_getThumbnailStream:function(){return this.startMarker.openWithOffset(this.getThumbnailOffset())},getImageSize:function(){return this.imageSize},getThumbnailSize:function(){var t,e=this._getThumbnailStream();return n.parseSections(e,(function(e,r){\"SOF\"===n.getSectionName(e).name&&(t=n.getSizeFromSOFSection(r))})),t}},s.prototype={enableBinaryFields:function(t){return this.flags.readBinaryTags=!!t,this},enablePointers:function(t){return this.flags.hidePointers=!t,this},enableTagNames:function(t){return this.flags.resolveTagNames=!!t,this},enableImageSize:function(t){return this.flags.imageSize=!!t,this},enableReturnTags:function(t){return this.flags.returnTags=!!t,this},enableSimpleValues:function(t){return this.flags.simplifyValues=!!t,this},parse:function(){var t,e,s,u,c,f,l,h,p,d=this.stream.mark(),m=d.openWithOffset(0),y=this.flags;return y.resolveTagNames&&(l=r(139)),y.resolveTagNames?(t={},h=function(e){return t[e.name]},p=function(e,r){t[e.name]=r}):(t=[],h=function(e){var r;for(r=0;r<t.length;++r)if(t[r].type===e.type&&t[r].section===e.section)return t.value},p=function(e,r){var n;for(n=0;n<t.length;++n)if(t[n].type===e.type&&t[n].section===e.section)return void(t.value=r)}),n.parseSections(m,(function(r,a){var h=a.offsetFrom(d);225===r?i.parseTags(a,(function(e,r,n,a){if(y.readBinaryTags||7!==a){if(513===r){if(s=n[0],y.hidePointers)return}else if(514===r){if(u=n[0],y.hidePointers)return}else if(259===r&&(c=n[0],y.hidePointers))return;if(y.returnTags)if(y.simplifyValues&&(n=o.simplifyValue(n,a)),y.resolveTagNames){var f=(e===i.GPSIFD?l.gps:l.exif)[r];f||(f=l.exif[r]),t.hasOwnProperty(f)||(t[f]=n)}else t.push({section:e,type:r,value:n})}}))&&(f=h):y.imageSize&&\"SOF\"===n.getSectionName(r).name&&(e=n.getSizeFromSOFSection(a))})),y.simplifyValues&&(o.castDegreeValues(h,p),o.castDateValues(h,p)),new a(d,t,e,s,u,c,f)}},t.exports=s},function(t,e){t.exports={parseSections:function(t,e){var r,n;for(t.setBigEndian(!0);t.remainingLength()>0&&218!==n;){if(255!==t.nextUInt8())throw new Error(\"Invalid JPEG section offset\");r=(n=t.nextUInt8())>=208&&n<=217||218===n?0:t.nextUInt16()-2,e(n,t.branch(0,r)),t.skip(r)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,r;switch(t){case 216:e=\"SOI\";break;case 196:e=\"DHT\";break;case 219:e=\"DQT\";break;case 221:e=\"DRI\";break;case 218:e=\"SOS\";break;case 254:e=\"COM\";break;case 217:e=\"EOI\";break;default:t>=224&&t<=239?(e=\"APP\",r=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e=\"SOF\",r=t-192):t>=208&&t<=215&&(e=\"RST\",r=t-208)}var n={name:e};return\"number\"==typeof r&&(n.index=r),n}}},function(t,e,r){var n=r(69),i=r(138),o=[{section:n.GPSIFD,type:2,name:\"GPSLatitude\",refType:1,refName:\"GPSLatitudeRef\",posVal:\"N\"},{section:n.GPSIFD,type:4,name:\"GPSLongitude\",refType:3,refName:\"GPSLongitudeRef\",posVal:\"E\"}],a=[{section:n.SubIFD,type:306,name:\"ModifyDate\"},{section:n.SubIFD,type:36867,name:\"DateTimeOriginal\"},{section:n.SubIFD,type:36868,name:\"CreateDate\"},{section:n.SubIFD,type:306,name:\"ModifyDate\"}];t.exports={castDegreeValues:function(t,e){o.forEach((function(r){var n=t(r);if(n){var i=t({section:r.section,type:r.refType,name:r.refName})===r.posVal?1:-1,o=(n[0]+n[1]/60+n[2]/3600)*i;e(r,o)}}))},castDateValues:function(t,e){a.forEach((function(r){var n=t(r);if(n){var o=i.parseExifDate(n);void 0!==o&&e(r,o)}}))},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map((function(t){return 10===e||5===e?t[0]/t[1]:t}))).length&&(t=t[0]),t}}},function(t,e){function r(t){return parseInt(t,10)}var n=3600,i=60;function o(t,e){t=t.map(r),e=e.map(r);var n=t[0],i=t[1]-1,o=t[2],a=e[0],s=e[1],u=e[2];return Date.UTC(n,i,o,a,s,u,0)/1e3}function a(t){var e=t.substr(0,10).split(\"-\"),a=t.substr(11,8).split(\":\"),s=t.substr(19,6).split(\":\").map(r),u=s[0]*n+s[1]*i,c=o(e,a);if(\"number\"==typeof(c-=u)&&!isNaN(c))return c}function s(t){var e=t.split(\" \"),r=o(e[0].split(\":\"),e[1].split(\":\"));if(\"number\"==typeof r&&!isNaN(r))return r}t.exports={parseDateWithSpecFormat:s,parseDateWithTimezoneFormat:a,parseExifDate:function(t){var e=19===t.length&&\":\"===t.charAt(4);return 25===t.length&&\"T\"===t.charAt(10)?a(t):e?s(t):void 0}}},function(t,e){t.exports={exif:{1:\"InteropIndex\",2:\"InteropVersion\",11:\"ProcessingSoftware\",254:\"SubfileType\",255:\"OldSubfileType\",256:\"ImageWidth\",257:\"ImageHeight\",258:\"BitsPerSample\",259:\"Compression\",262:\"PhotometricInterpretation\",263:\"Thresholding\",264:\"CellWidth\",265:\"CellLength\",266:\"FillOrder\",269:\"DocumentName\",270:\"ImageDescription\",271:\"Make\",272:\"Model\",273:\"StripOffsets\",274:\"Orientation\",277:\"SamplesPerPixel\",278:\"RowsPerStrip\",279:\"StripByteCounts\",280:\"MinSampleValue\",281:\"MaxSampleValue\",282:\"XResolution\",283:\"YResolution\",284:\"PlanarConfiguration\",285:\"PageName\",286:\"XPosition\",287:\"YPosition\",288:\"FreeOffsets\",289:\"FreeByteCounts\",290:\"GrayResponseUnit\",291:\"GrayResponseCurve\",292:\"T4Options\",293:\"T6Options\",296:\"ResolutionUnit\",297:\"PageNumber\",300:\"ColorResponseUnit\",301:\"TransferFunction\",305:\"Software\",306:\"ModifyDate\",315:\"Artist\",316:\"HostComputer\",317:\"Predictor\",318:\"WhitePoint\",319:\"PrimaryChromaticities\",320:\"ColorMap\",321:\"HalftoneHints\",322:\"TileWidth\",323:\"TileLength\",324:\"TileOffsets\",325:\"TileByteCounts\",326:\"BadFaxLines\",327:\"CleanFaxData\",328:\"ConsecutiveBadFaxLines\",330:\"SubIFD\",332:\"InkSet\",333:\"InkNames\",334:\"NumberofInks\",336:\"DotRange\",337:\"TargetPrinter\",338:\"ExtraSamples\",339:\"SampleFormat\",340:\"SMinSampleValue\",341:\"SMaxSampleValue\",342:\"TransferRange\",343:\"ClipPath\",344:\"XClipPathUnits\",345:\"YClipPathUnits\",346:\"Indexed\",347:\"JPEGTables\",351:\"OPIProxy\",400:\"GlobalParametersIFD\",401:\"ProfileType\",402:\"FaxProfile\",403:\"CodingMethods\",404:\"VersionYear\",405:\"ModeNumber\",433:\"Decode\",434:\"DefaultImageColor\",435:\"T82Options\",437:\"JPEGTables\",512:\"JPEGProc\",513:\"ThumbnailOffset\",514:\"ThumbnailLength\",515:\"JPEGRestartInterval\",517:\"JPEGLosslessPredictors\",518:\"JPEGPointTransforms\",519:\"JPEGQTables\",520:\"JPEGDCTables\",521:\"JPEGACTables\",529:\"YCbCrCoefficients\",530:\"YCbCrSubSampling\",531:\"YCbCrPositioning\",532:\"ReferenceBlackWhite\",559:\"StripRowCounts\",700:\"ApplicationNotes\",999:\"USPTOMiscellaneous\",4096:\"RelatedImageFileFormat\",4097:\"RelatedImageWidth\",4098:\"RelatedImageHeight\",18246:\"Rating\",18247:\"XP_DIP_XML\",18248:\"StitchInfo\",18249:\"RatingPercent\",32781:\"ImageID\",32931:\"WangTag1\",32932:\"WangAnnotation\",32933:\"WangTag3\",32934:\"WangTag4\",32995:\"Matteing\",32996:\"DataType\",32997:\"ImageDepth\",32998:\"TileDepth\",33405:\"Model2\",33421:\"CFARepeatPatternDim\",33422:\"CFAPattern2\",33423:\"BatteryLevel\",33424:\"KodakIFD\",33432:\"Copyright\",33434:\"ExposureTime\",33437:\"FNumber\",33445:\"MDFileTag\",33446:\"MDScalePixel\",33447:\"MDColorTable\",33448:\"MDLabName\",33449:\"MDSampleInfo\",33450:\"MDPrepDate\",33451:\"MDPrepTime\",33452:\"MDFileUnits\",33550:\"PixelScale\",33589:\"AdventScale\",33590:\"AdventRevision\",33628:\"UIC1Tag\",33629:\"UIC2Tag\",33630:\"UIC3Tag\",33631:\"UIC4Tag\",33723:\"IPTC-NAA\",33918:\"IntergraphPacketData\",33919:\"IntergraphFlagRegisters\",33920:\"IntergraphMatrix\",33921:\"INGRReserved\",33922:\"ModelTiePoint\",34016:\"Site\",34017:\"ColorSequence\",34018:\"IT8Header\",34019:\"RasterPadding\",34020:\"BitsPerRunLength\",34021:\"BitsPerExtendedRunLength\",34022:\"ColorTable\",34023:\"ImageColorIndicator\",34024:\"BackgroundColorIndicator\",34025:\"ImageColorValue\",34026:\"BackgroundColorValue\",34027:\"PixelIntensityRange\",34028:\"TransparencyIndicator\",34029:\"ColorCharacterization\",34030:\"HCUsage\",34031:\"TrapIndicator\",34032:\"CMYKEquivalent\",34118:\"SEMInfo\",34152:\"AFCP_IPTC\",34232:\"PixelMagicJBIGOptions\",34264:\"ModelTransform\",34306:\"WB_GRGBLevels\",34310:\"LeafData\",34377:\"PhotoshopSettings\",34665:\"ExifOffset\",34675:\"ICC_Profile\",34687:\"TIFF_FXExtensions\",34688:\"MultiProfiles\",34689:\"SharedData\",34690:\"T88Options\",34732:\"ImageLayer\",34735:\"GeoTiffDirectory\",34736:\"GeoTiffDoubleParams\",34737:\"GeoTiffAsciiParams\",34850:\"ExposureProgram\",34852:\"SpectralSensitivity\",34853:\"GPSInfo\",34855:\"ISO\",34856:\"Opto-ElectricConvFactor\",34857:\"Interlace\",34858:\"TimeZoneOffset\",34859:\"SelfTimerMode\",34864:\"SensitivityType\",34865:\"StandardOutputSensitivity\",34866:\"RecommendedExposureIndex\",34867:\"ISOSpeed\",34868:\"ISOSpeedLatitudeyyy\",34869:\"ISOSpeedLatitudezzz\",34908:\"FaxRecvParams\",34909:\"FaxSubAddress\",34910:\"FaxRecvTime\",34954:\"LeafSubIFD\",36864:\"ExifVersion\",36867:\"DateTimeOriginal\",36868:\"CreateDate\",37121:\"ComponentsConfiguration\",37122:\"CompressedBitsPerPixel\",37377:\"ShutterSpeedValue\",37378:\"ApertureValue\",37379:\"BrightnessValue\",37380:\"ExposureCompensation\",37381:\"MaxApertureValue\",37382:\"SubjectDistance\",37383:\"MeteringMode\",37384:\"LightSource\",37385:\"Flash\",37386:\"FocalLength\",37387:\"FlashEnergy\",37388:\"SpatialFrequencyResponse\",37389:\"Noise\",37390:\"FocalPlaneXResolution\",37391:\"FocalPlaneYResolution\",37392:\"FocalPlaneResolutionUnit\",37393:\"ImageNumber\",37394:\"SecurityClassification\",37395:\"ImageHistory\",37396:\"SubjectArea\",37397:\"ExposureIndex\",37398:\"TIFF-EPStandardID\",37399:\"SensingMethod\",37434:\"CIP3DataFile\",37435:\"CIP3Sheet\",37436:\"CIP3Side\",37439:\"StoNits\",37500:\"MakerNote\",37510:\"UserComment\",37520:\"SubSecTime\",37521:\"SubSecTimeOriginal\",37522:\"SubSecTimeDigitized\",37679:\"MSDocumentText\",37680:\"MSPropertySetStorage\",37681:\"MSDocumentTextPosition\",37724:\"ImageSourceData\",40091:\"XPTitle\",40092:\"XPComment\",40093:\"XPAuthor\",40094:\"XPKeywords\",40095:\"XPSubject\",40960:\"FlashpixVersion\",40961:\"ColorSpace\",40962:\"ExifImageWidth\",40963:\"ExifImageHeight\",40964:\"RelatedSoundFile\",40965:\"InteropOffset\",41483:\"FlashEnergy\",41484:\"SpatialFrequencyResponse\",41485:\"Noise\",41486:\"FocalPlaneXResolution\",41487:\"FocalPlaneYResolution\",41488:\"FocalPlaneResolutionUnit\",41489:\"ImageNumber\",41490:\"SecurityClassification\",41491:\"ImageHistory\",41492:\"SubjectLocation\",41493:\"ExposureIndex\",41494:\"TIFF-EPStandardID\",41495:\"SensingMethod\",41728:\"FileSource\",41729:\"SceneType\",41730:\"CFAPattern\",41985:\"CustomRendered\",41986:\"ExposureMode\",41987:\"WhiteBalance\",41988:\"DigitalZoomRatio\",41989:\"FocalLengthIn35mmFormat\",41990:\"SceneCaptureType\",41991:\"GainControl\",41992:\"Contrast\",41993:\"Saturation\",41994:\"Sharpness\",41995:\"DeviceSettingDescription\",41996:\"SubjectDistanceRange\",42016:\"ImageUniqueID\",42032:\"OwnerName\",42033:\"SerialNumber\",42034:\"LensInfo\",42035:\"LensMake\",42036:\"LensModel\",42037:\"LensSerialNumber\",42112:\"GDALMetadata\",42113:\"GDALNoData\",42240:\"Gamma\",44992:\"ExpandSoftware\",44993:\"ExpandLens\",44994:\"ExpandFilm\",44995:\"ExpandFilterLens\",44996:\"ExpandScanner\",44997:\"ExpandFlashLamp\",48129:\"PixelFormat\",48130:\"Transformation\",48131:\"Uncompressed\",48132:\"ImageType\",48256:\"ImageWidth\",48257:\"ImageHeight\",48258:\"WidthResolution\",48259:\"HeightResolution\",48320:\"ImageOffset\",48321:\"ImageByteCount\",48322:\"AlphaOffset\",48323:\"AlphaByteCount\",48324:\"ImageDataDiscard\",48325:\"AlphaDataDiscard\",50215:\"OceScanjobDesc\",50216:\"OceApplicationSelector\",50217:\"OceIDNumber\",50218:\"OceImageLogic\",50255:\"Annotations\",50341:\"PrintIM\",50560:\"USPTOOriginalContentType\",50706:\"DNGVersion\",50707:\"DNGBackwardVersion\",50708:\"UniqueCameraModel\",50709:\"LocalizedCameraModel\",50710:\"CFAPlaneColor\",50711:\"CFALayout\",50712:\"LinearizationTable\",50713:\"BlackLevelRepeatDim\",50714:\"BlackLevel\",50715:\"BlackLevelDeltaH\",50716:\"BlackLevelDeltaV\",50717:\"WhiteLevel\",50718:\"DefaultScale\",50719:\"DefaultCropOrigin\",50720:\"DefaultCropSize\",50721:\"ColorMatrix1\",50722:\"ColorMatrix2\",50723:\"CameraCalibration1\",50724:\"CameraCalibration2\",50725:\"ReductionMatrix1\",50726:\"ReductionMatrix2\",50727:\"AnalogBalance\",50728:\"AsShotNeutral\",50729:\"AsShotWhiteXY\",50730:\"BaselineExposure\",50731:\"BaselineNoise\",50732:\"BaselineSharpness\",50733:\"BayerGreenSplit\",50734:\"LinearResponseLimit\",50735:\"CameraSerialNumber\",50736:\"DNGLensInfo\",50737:\"ChromaBlurRadius\",50738:\"AntiAliasStrength\",50739:\"ShadowScale\",50740:\"DNGPrivateData\",50741:\"MakerNoteSafety\",50752:\"RawImageSegmentation\",50778:\"CalibrationIlluminant1\",50779:\"CalibrationIlluminant2\",50780:\"BestQualityScale\",50781:\"RawDataUniqueID\",50784:\"AliasLayerMetadata\",50827:\"OriginalRawFileName\",50828:\"OriginalRawFileData\",50829:\"ActiveArea\",50830:\"MaskedAreas\",50831:\"AsShotICCProfile\",50832:\"AsShotPreProfileMatrix\",50833:\"CurrentICCProfile\",50834:\"CurrentPreProfileMatrix\",50879:\"ColorimetricReference\",50898:\"PanasonicTitle\",50899:\"PanasonicTitle2\",50931:\"CameraCalibrationSig\",50932:\"ProfileCalibrationSig\",50933:\"ProfileIFD\",50934:\"AsShotProfileName\",50935:\"NoiseReductionApplied\",50936:\"ProfileName\",50937:\"ProfileHueSatMapDims\",50938:\"ProfileHueSatMapData1\",50939:\"ProfileHueSatMapData2\",50940:\"ProfileToneCurve\",50941:\"ProfileEmbedPolicy\",50942:\"ProfileCopyright\",50964:\"ForwardMatrix1\",50965:\"ForwardMatrix2\",50966:\"PreviewApplicationName\",50967:\"PreviewApplicationVersion\",50968:\"PreviewSettingsName\",50969:\"PreviewSettingsDigest\",50970:\"PreviewColorSpace\",50971:\"PreviewDateTime\",50972:\"RawImageDigest\",50973:\"OriginalRawFileDigest\",50974:\"SubTileBlockSize\",50975:\"RowInterleaveFactor\",50981:\"ProfileLookTableDims\",50982:\"ProfileLookTableData\",51008:\"OpcodeList1\",51009:\"OpcodeList2\",51022:\"OpcodeList3\",51041:\"NoiseProfile\",51043:\"TimeCodes\",51044:\"FrameRate\",51058:\"TStop\",51081:\"ReelName\",51089:\"OriginalDefaultFinalSize\",51090:\"OriginalBestQualitySize\",51091:\"OriginalDefaultCropSize\",51105:\"CameraLabel\",51107:\"ProfileHueSatMapEncoding\",51108:\"ProfileLookTableEncoding\",51109:\"BaselineExposureOffset\",51110:\"DefaultBlackRender\",51111:\"NewRawImageDigest\",51112:\"RawToPreviewGain\",51125:\"DefaultUserCrop\",59932:\"Padding\",59933:\"OffsetSchema\",65e3:\"OwnerName\",65001:\"SerialNumber\",65002:\"Lens\",65024:\"KDC_IFD\",65100:\"RawFile\",65101:\"Converter\",65102:\"WhiteBalance\",65105:\"Exposure\",65106:\"Shadows\",65107:\"Brightness\",65108:\"Contrast\",65109:\"Saturation\",65110:\"Sharpness\",65111:\"Smoothness\",65112:\"MoireFilter\"},gps:{0:\"GPSVersionID\",1:\"GPSLatitudeRef\",2:\"GPSLatitude\",3:\"GPSLongitudeRef\",4:\"GPSLongitude\",5:\"GPSAltitudeRef\",6:\"GPSAltitude\",7:\"GPSTimeStamp\",8:\"GPSSatellites\",9:\"GPSStatus\",10:\"GPSMeasureMode\",11:\"GPSDOP\",12:\"GPSSpeedRef\",13:\"GPSSpeed\",14:\"GPSTrackRef\",15:\"GPSTrack\",16:\"GPSImgDirectionRef\",17:\"GPSImgDirection\",18:\"GPSMapDatum\",19:\"GPSDestLatitudeRef\",20:\"GPSDestLatitude\",21:\"GPSDestLongitudeRef\",22:\"GPSDestLongitude\",23:\"GPSDestBearingRef\",24:\"GPSDestBearing\",25:\"GPSDestDistanceRef\",26:\"GPSDestDistance\",27:\"GPSProcessingMethod\",28:\"GPSAreaInformation\",29:\"GPSDateStamp\",30:\"GPSDifferential\",31:\"GPSHPositioningError\"}}},function(t,e){function r(t,e,r,n,i,o){this.global=i,e=e||0,r=r||t.byteLength-e,this.arrayBuffer=t.slice(e,e+r),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(n),this.offset=0,this.parentOffset=(o||0)+e}r.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new r(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new r(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=r},function(t,e){function r(t,e,r,n){this.buffer=t,this.offset=e||0,r=\"number\"==typeof r?r:t.length,this.endPosition=this.offset+r,this.setBigEndian(n)}r.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString(\"utf8\",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new r(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.endPosition-(this.offset+t),new r(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=r},function(t,e,r){(function(e){function r(t){Math.round;var r,n,i,o,a,s=Math.floor,u=new Array(64),c=new Array(64),f=new Array(64),l=new Array(64),h=new Array(65535),p=new Array(65535),d=new Array(64),m=new Array(64),y=[],v=0,g=7,b=new Array(64),w=new Array(64),_=new Array(64),x=new Array(256),E=new Array(2048),k=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],D=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],M=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],F=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],I=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function B(t,e){for(var r=0,n=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=o,n++,r++;r*=2}return i}function T(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(v|=1<<g),r--,--g<0&&(255==v?(L(255),L(0)):L(v),g=7,v=0)}function L(t){y.push(t)}function P(t){L(t>>8&255),L(255&t)}function j(t,e,r,n,i){for(var o,a=i[0],s=i[240],u=function(t,e){var r,n,i,o,a,s,u,c,f,l,h=0;for(f=0;f<8;++f){r=t[h],n=t[h+1],i=t[h+2],o=t[h+3],a=t[h+4],s=t[h+5],u=t[h+6];var p=r+(c=t[h+7]),m=r-c,y=n+u,v=n-u,g=i+s,b=i-s,w=o+a,_=o-a,x=p+w,E=p-w,k=y+g,D=y-g;t[h]=x+k,t[h+4]=x-k;var S=.707106781*(D+E);t[h+2]=E+S,t[h+6]=E-S;var A=.382683433*((x=_+b)-(D=v+m)),M=.5411961*x+A,O=1.306562965*D+A,C=.707106781*(k=b+v),F=m+C,I=m-C;t[h+5]=I+M,t[h+3]=I-M,t[h+1]=F+O,t[h+7]=F-O,h+=8}for(h=0,f=0;f<8;++f){r=t[h],n=t[h+8],i=t[h+16],o=t[h+24],a=t[h+32],s=t[h+40],u=t[h+48];var B=r+(c=t[h+56]),T=r-c,L=n+u,P=n-u,j=i+s,N=i-s,R=o+a,z=o-a,U=B+R,G=B-R,H=L+j,Z=L-j;t[h]=U+H,t[h+32]=U-H;var q=.707106781*(Z+G);t[h+16]=G+q,t[h+48]=G-q;var W=.382683433*((U=z+N)-(Z=P+T)),Y=.5411961*U+W,X=1.306562965*Z+W,V=.707106781*(H=N+P),J=T+V,K=T-V;t[h+40]=K+Y,t[h+24]=K-Y,t[h+8]=J+X,t[h+56]=J-X,h++}for(f=0;f<64;++f)l=t[f]*e[f],d[f]=l>0?l+.5|0:l-.5|0;return d}(t,e),c=0;c<64;++c)m[k[c]]=u[c];var f=m[0]-r;r=m[0],0==f?T(n[0]):(T(n[p[o=32767+f]]),T(h[o]));for(var l=63;l>0&&0==m[l];l--);if(0==l)return T(a),r;for(var y,v=1;v<=l;){for(var g=v;0==m[v]&&v<=l;++v);var b=v-g;if(b>=16){y=b>>4;for(var w=1;w<=y;++w)T(s);b&=15}o=32767+m[v],T(i[(b<<4)+p[o]]),T(h[o]),v++}return 63!=l&&T(a),r}function N(t){if(t<=0&&(t=1),t>100&&(t=100),a!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=s((e[r]*t+50)/100);n<1?n=1:n>255&&(n=255),u[k[r]]=n}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var a=s((i[o]*t+50)/100);a<1?a=1:a>255&&(a=255),c[k[o]]=a}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,d=0;d<8;d++)for(var m=0;m<8;m++)f[p]=1/(u[k[p]]*h[d]*h[m]*8),l[p]=1/(c[k[p]]*h[d]*h[m]*8),p++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t}}this.encode=function(t,a){var s;(new Date).getTime();a&&N(a),y=new Array,v=0,g=7,P(65496),P(65504),P(16),L(74),L(70),L(73),L(70),L(0),L(1),L(1),L(0),P(1),P(1),L(0),L(0),void 0!==(s=t.comments)&&s.constructor===Array&&s.forEach((function(t){if(\"string\"==typeof t){P(65534);var e,r=t.length;for(P(r+2),e=0;e<r;e++)L(t.charCodeAt(e))}})),function(t){if(t){P(65505),69===t[0]&&120===t[1]&&105===t[2]&&102===t[3]?P(t.length+2):(P(t.length+5+2),L(69),L(120),L(105),L(102),L(0));for(var e=0;e<t.length;e++)L(t[e])}}(t.exifBuffer),function(){P(65499),P(132),L(0);for(var t=0;t<64;t++)L(u[t]);L(1);for(var e=0;e<64;e++)L(c[e])}(),function(t,e){P(65472),P(17),L(8),P(e),P(t),L(3),L(1),L(17),L(0),L(2),L(17),L(1),L(3),L(17),L(1)}(t.width,t.height),function(){P(65476),P(418),L(0);for(var t=0;t<16;t++)L(D[t+1]);for(var e=0;e<=11;e++)L(S[e]);L(16);for(var r=0;r<16;r++)L(A[r+1]);for(var n=0;n<=161;n++)L(M[n]);L(1);for(var i=0;i<16;i++)L(O[i+1]);for(var o=0;o<=11;o++)L(C[o]);L(17);for(var a=0;a<16;a++)L(F[a+1]);for(var s=0;s<=161;s++)L(I[s])}(),P(65498),P(12),L(3),L(1),L(0),L(2),L(17),L(3),L(17),L(0),L(63),L(0);var h=0,p=0,d=0;v=0,g=7,this.encode.displayName=\"_encode_\";for(var m,x,k,B,R,z,U,G,H,Z=t.data,q=t.width,W=t.height,Y=4*q,X=0;X<W;){for(m=0;m<Y;){for(z=R=Y*X+m,U=-1,G=0,H=0;H<64;H++)z=R+(G=H>>3)*Y+(U=4*(7&H)),X+G>=W&&(z-=Y*(X+1+G-W)),m+U>=Y&&(z-=m+U-Y+4),x=Z[z++],k=Z[z++],B=Z[z++],b[H]=(E[x]+E[k+256|0]+E[B+512|0]>>16)-128,w[H]=(E[x+768|0]+E[k+1024|0]+E[B+1280|0]>>16)-128,_[H]=(E[x+1280|0]+E[k+1536|0]+E[B+1792|0]>>16)-128;h=j(b,f,h,r,i),p=j(w,l,p,n,o),d=j(_,l,d,n,o),m+=32}X+=8}if(g>=0){var V=[];V[1]=g+1,V[0]=(1<<g+1)-1,T(V)}return P(65497),e.from(y)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),r=B(D,S),n=B(O,C),i=B(A,M),o=B(F,I),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)p[32767+n]=r,h[32767+n]=[],h[32767+n][1]=r,h[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)p[32767+i]=r,h[32767+i]=[],h[32767+i][1]=r,h[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)E[t]=19595*t,E[t+256|0]=38470*t,E[t+512|0]=7471*t+32768,E[t+768|0]=-11059*t,E[t+1024|0]=-21709*t,E[t+1280|0]=32768*t+8421375,E[t+1536|0]=-27439*t,E[t+1792|0]=-5329*t}(),N(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new r(e).encode(t,e),width:t.width,height:t.height}}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,r){var n;return n=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}var a=function(){\"use strict\";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,r=799,n=3406,i=2276,a=1567,s=3784,u=5793,c=2896;function f(){}function l(t,e){for(var r,n,i=0,o=[],a=16;a>0&&!t[a-1];)a--;o.push({children:[],index:0});var s,u=o[0];for(r=0;r<a;r++){for(n=0;n<t[r];n++){for((u=o.pop()).children[u.index]=e[i];u.index>0;){if(0===o.length)throw new Error(\"Could not recreate Huffman Table\");u=o.pop()}for(u.index++,o.push(u);o.length<=r;)o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}r+1<a&&(o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return o[0].children}function h(e,r,n,i,a,s,u,c,f,l){n.precision,n.samplesPerLine,n.scanLines;var h=n.mcusPerLine,p=n.progressive,d=(n.maxH,n.maxV,r),m=0,y=0;function v(){if(y>0)return y--,m>>y&1;if(255==(m=e[r++])){var t=e[r++];if(t)throw new Error(\"unexpected marker: \"+(m<<8|t).toString(16))}return y=7,m>>>7}function g(t){for(var e,r=t;null!==(e=v());){if(\"number\"==typeof(r=r[e]))return r;if(\"object\"!==o(r))throw new Error(\"invalid huffman sequence\")}return null}function b(t){for(var e=0;t>0;){var r=v();if(null===r)return;e=e<<1|r,t--}return e}function w(t){var e=b(t);return e>=1<<t-1?e:e+(-1<<t)+1}var _=0;var x,E=0;function k(t,e,r,n,i){var o=r%h,a=(r/h|0)*t.v+n,s=o*t.h+i;void 0===t.blocks[a]&&l.tolerantDecoding||e(t,t.blocks[a][s])}function D(t,e,r){var n=r/t.blocksPerLine|0,i=r%t.blocksPerLine;void 0===t.blocks[n]&&l.tolerantDecoding||e(t,t.blocks[n][i])}var S,A,M,O,C,F,I=i.length;F=p?0===s?0===c?function(t,e){var r=g(t.huffmanTableDC),n=0===r?0:w(r)<<f;e[0]=t.pred+=n}:function(t,e){e[0]|=v()<<f}:0===c?function(e,r){if(_>0)_--;else for(var n=s,i=u;n<=i;){var o=g(e.huffmanTableAC),a=15&o,c=o>>4;if(0!==a)r[t[n+=c]]=w(a)*(1<<f),n++;else{if(c<15){_=b(c)+(1<<c)-1;break}n+=16}}}:function(e,r){for(var n=s,i=u,o=0;n<=i;){var a=t[n],c=r[a]<0?-1:1;switch(E){case 0:var l=g(e.huffmanTableAC),h=15&l;if(o=l>>4,0===h)o<15?(_=b(o)+(1<<o),E=4):(o=16,E=1);else{if(1!==h)throw new Error(\"invalid ACn encoding\");x=w(h),E=o?2:3}continue;case 1:case 2:r[a]?r[a]+=(v()<<f)*c:0==--o&&(E=2==E?3:0);break;case 3:r[a]?r[a]+=(v()<<f)*c:(r[a]=x<<f,E=0);break;case 4:r[a]&&(r[a]+=(v()<<f)*c)}n++}4===E&&0==--_&&(E=0)}:function(e,r){var n=g(e.huffmanTableDC),i=0===n?0:w(n);r[0]=e.pred+=i;for(var o=1;o<64;){var a=g(e.huffmanTableAC),s=15&a,u=a>>4;if(0!==s)r[t[o+=u]]=w(s),o++;else{if(u<15)break;o+=16}}};var B,T,L,P,j=0;for(T=1==I?i[0].blocksPerLine*i[0].blocksPerColumn:h*n.mcusPerColumn,a||(a=T);j<T;){for(A=0;A<I;A++)i[A].pred=0;if(_=0,1==I)for(S=i[0],C=0;C<a;C++)D(S,F,j),j++;else for(C=0;C<a;C++){for(A=0;A<I;A++)for(L=(S=i[A]).h,P=S.v,M=0;M<P;M++)for(O=0;O<L;O++)k(S,F,j,M,O);if(++j===T)break}if(j===T)do{if(255===e[r]&&0!==e[r+1])break;r+=1}while(r<e.length-2);if(y=0,(B=e[r]<<8|e[r+1])<65280)throw new Error(\"marker was not found\");if(!(B>=65488&&B<=65495))break;r+=2}return r-d}function p(t,o){var f,l,h=[],p=o.blocksPerLine,d=o.blocksPerColumn,m=p<<3,y=new Int32Array(64),g=new Uint8Array(64);function b(t,f,l){var h,p,d,m,y,v,g,b,w,_,x=o.quantizationTable,E=l;for(_=0;_<64;_++)E[_]=t[_]*x[_];for(_=0;_<8;++_){var k=8*_;0!=E[1+k]||0!=E[2+k]||0!=E[3+k]||0!=E[4+k]||0!=E[5+k]||0!=E[6+k]||0!=E[7+k]?(h=u*E[0+k]+128>>8,p=u*E[4+k]+128>>8,d=E[2+k],m=E[6+k],y=c*(E[1+k]-E[7+k])+128>>8,b=c*(E[1+k]+E[7+k])+128>>8,v=E[3+k]<<4,g=E[5+k]<<4,w=h-p+1>>1,h=h+p+1>>1,p=w,w=d*s+m*a+128>>8,d=d*a-m*s+128>>8,m=w,w=y-g+1>>1,y=y+g+1>>1,g=w,w=b+v+1>>1,v=b-v+1>>1,b=w,w=h-m+1>>1,h=h+m+1>>1,m=w,w=p-d+1>>1,p=p+d+1>>1,d=w,w=y*i+b*n+2048>>12,y=y*n-b*i+2048>>12,b=w,w=v*r+g*e+2048>>12,v=v*e-g*r+2048>>12,g=w,E[0+k]=h+b,E[7+k]=h-b,E[1+k]=p+g,E[6+k]=p-g,E[2+k]=d+v,E[5+k]=d-v,E[3+k]=m+y,E[4+k]=m-y):(w=u*E[0+k]+512>>10,E[0+k]=w,E[1+k]=w,E[2+k]=w,E[3+k]=w,E[4+k]=w,E[5+k]=w,E[6+k]=w,E[7+k]=w)}for(_=0;_<8;++_){var D=_;0!=E[8+D]||0!=E[16+D]||0!=E[24+D]||0!=E[32+D]||0!=E[40+D]||0!=E[48+D]||0!=E[56+D]?(h=u*E[0+D]+2048>>12,p=u*E[32+D]+2048>>12,d=E[16+D],m=E[48+D],y=c*(E[8+D]-E[56+D])+2048>>12,b=c*(E[8+D]+E[56+D])+2048>>12,v=E[24+D],g=E[40+D],w=h-p+1>>1,h=h+p+1>>1,p=w,w=d*s+m*a+2048>>12,d=d*a-m*s+2048>>12,m=w,w=y-g+1>>1,y=y+g+1>>1,g=w,w=b+v+1>>1,v=b-v+1>>1,b=w,w=h-m+1>>1,h=h+m+1>>1,m=w,w=p-d+1>>1,p=p+d+1>>1,d=w,w=y*i+b*n+2048>>12,y=y*n-b*i+2048>>12,b=w,w=v*r+g*e+2048>>12,v=v*e-g*r+2048>>12,g=w,E[0+D]=h+b,E[56+D]=h-b,E[8+D]=p+g,E[48+D]=p-g,E[16+D]=d+v,E[40+D]=d-v,E[24+D]=m+y,E[32+D]=m-y):(w=u*l[_+0]+8192>>14,E[0+D]=w,E[8+D]=w,E[16+D]=w,E[24+D]=w,E[32+D]=w,E[40+D]=w,E[48+D]=w,E[56+D]=w)}for(_=0;_<64;++_){var S=128+(E[_]+8>>4);f[_]=S<0?0:S>255?255:S}}v(m*d*8);for(var w=0;w<d;w++){var _=w<<3;for(f=0;f<8;f++)h.push(new Uint8Array(m));for(var x=0;x<p;x++){b(o.blocks[w][x],g,y);var E=0,k=x<<3;for(l=0;l<8;l++){var D=h[_+l];for(f=0;f<8;f++)D[k+f]=g[E++]}}}return h}function d(t){return t<0?0:t>255?255:t}f.prototype={load:function(t){var e=new XMLHttpRequest;e.open(\"GET\",t,!0),e.responseType=\"arraybuffer\",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var r=1e3*this.opts.maxResolutionInMP*1e3,n=0;e.length;function i(){var t=e[n]<<8|e[n+1];return n+=2,t}function o(){var t=i(),r=e.subarray(n,n+t-2);return n+=r.length,r}function a(t){var e,r,n=1,i=1;for(r in t.components)t.components.hasOwnProperty(r)&&(n<(e=t.components[r]).h&&(n=e.h),i<e.v&&(i=e.v));var o=Math.ceil(t.samplesPerLine/8/n),a=Math.ceil(t.scanLines/8/i);for(r in t.components)if(t.components.hasOwnProperty(r)){e=t.components[r];var s=Math.ceil(Math.ceil(t.samplesPerLine/8)*e.h/n),u=Math.ceil(Math.ceil(t.scanLines/8)*e.v/i),c=o*e.h,f=a*e.v,l=[];v(256*(f*c));for(var h=0;h<f;h++){for(var p=[],d=0;d<c;d++)p.push(new Int32Array(64));l.push(p)}e.blocksPerLine=s,e.blocksPerColumn=u,e.blocks=l}t.maxH=n,t.maxV=i,t.mcusPerLine=o,t.mcusPerColumn=a}var s,u,c=null,f=null,d=[],m=[],y=[],g=[],b=i(),w=-1;if(this.comments=[],65496!=b)throw new Error(\"SOI not found\");for(b=i();65497!=b;){switch(b){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var _=o();if(65534===b){var x=String.fromCharCode.apply(null,_);this.comments.push(x)}65504===b&&74===_[0]&&70===_[1]&&73===_[2]&&70===_[3]&&0===_[4]&&(c={version:{major:_[5],minor:_[6]},densityUnits:_[7],xDensity:_[8]<<8|_[9],yDensity:_[10]<<8|_[11],thumbWidth:_[12],thumbHeight:_[13],thumbData:_.subarray(14,14+3*_[12]*_[13])}),65505===b&&69===_[0]&&120===_[1]&&105===_[2]&&102===_[3]&&0===_[4]&&(this.exifBuffer=_.subarray(5,_.length)),65518===b&&65===_[0]&&100===_[1]&&111===_[2]&&98===_[3]&&101===_[4]&&0===_[5]&&(f={version:_[6],flags0:_[7]<<8|_[8],flags1:_[9]<<8|_[10],transformCode:_[11]});break;case 65499:for(var E=i()+n-2;n<E;){var k=e[n++];v(256);var D=new Int32Array(64);if(k>>4){if(k>>4!=1)throw new Error(\"DQT: invalid table spec\");for(X=0;X<64;X++){D[t[X]]=i()}}else for(X=0;X<64;X++){D[t[X]]=e[n++]}d[15&k]=D}break;case 65472:case 65473:case 65474:i(),(s={}).extended=65473===b,s.progressive=65474===b,s.precision=e[n++],s.scanLines=i(),s.samplesPerLine=i(),s.components={},s.componentsOrder=[];var S=s.scanLines*s.samplesPerLine;if(S>r){var A=Math.ceil((S-r)/1e6);throw new Error(\"maxResolutionInMP limit exceeded by \".concat(A,\"MP\"))}var M,O=e[n++];for(W=0;W<O;W++){M=e[n];var C=e[n+1]>>4,F=15&e[n+1],I=e[n+2];if(C<=0||F<=0)throw new Error(\"Invalid sampling factor, expected values above 0\");s.componentsOrder.push(M),s.components[M]={h:C,v:F,quantizationIdx:I},n+=3}a(s),m.push(s);break;case 65476:var B=i();for(W=2;W<B;){var T=e[n++],L=new Uint8Array(16),P=0;for(X=0;X<16;X++,n++)P+=L[X]=e[n];v(16+P);var j=new Uint8Array(P);for(X=0;X<P;X++,n++)j[X]=e[n];W+=17+P,(T>>4?y:g)[15&T]=l(L,j)}break;case 65501:i(),u=i();break;case 65500:i(),i();break;case 65498:i();var N=e[n++],R=[];for(W=0;W<N;W++){V=s.components[e[n++]];var z=e[n++];V.huffmanTableDC=g[z>>4],V.huffmanTableAC=y[15&z],R.push(V)}var U=e[n++],G=e[n++],H=e[n++],Z=h(e,n,s,R,u,U,G,H>>4,15&H,this.opts);n+=Z;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}if(224===b||225==b){if(-1!==w)throw new Error(\"first unknown JPEG marker at offset \".concat(w.toString(16),\", second unknown JPEG marker \").concat(b.toString(16),\" at offset \").concat((n-1).toString(16)));w=n-1;var q=i();if(255===e[n+q-2]){n+=q-2;break}}throw new Error(\"unknown JPEG marker \"+b.toString(16))}b=i()}if(1!=m.length)throw new Error(\"only single frame JPEGs supported\");for(var W=0;W<m.length;W++){var Y=m[W].components;for(var X in Y)Y[X].quantizationTable=d[Y[X].quantizationIdx],delete Y[X].quantizationIdx}this.width=s.samplesPerLine,this.height=s.scanLines,this.jfif=c,this.adobe=f,this.components=[];for(W=0;W<s.componentsOrder.length;W++){var V=s.components[s.componentsOrder[W]];this.components.push({lines:p(0,V),scaleX:V.h/s.maxH,scaleY:V.v/s.maxV})}},getData:function(t,e){var r,n,i,o,a,s,u,c,f,l,h,p,m,y,g,b,w,_,x,E,k,D=this.width/t,S=this.height/e,A=0,M=t*e*this.components.length;v(M);var O=new Uint8Array(M);switch(this.components.length){case 1:for(r=this.components[0],l=0;l<e;l++)for(a=r.lines[0|l*r.scaleY*S],f=0;f<t;f++)h=a[0|f*r.scaleX*D],O[A++]=h;break;case 2:for(r=this.components[0],n=this.components[1],l=0;l<e;l++)for(a=r.lines[0|l*r.scaleY*S],s=n.lines[0|l*n.scaleY*S],f=0;f<t;f++)h=a[0|f*r.scaleX*D],O[A++]=h,h=s[0|f*n.scaleX*D],O[A++]=h;break;case 3:for(k=!0,this.adobe&&this.adobe.transformCode?k=!0:void 0!==this.opts.colorTransform&&(k=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],l=0;l<e;l++)for(a=r.lines[0|l*r.scaleY*S],s=n.lines[0|l*n.scaleY*S],u=i.lines[0|l*i.scaleY*S],f=0;f<t;f++)k?(h=a[0|f*r.scaleX*D],p=s[0|f*n.scaleX*D],_=d(h+1.402*((m=u[0|f*i.scaleX*D])-128)),x=d(h-.3441363*(p-128)-.71413636*(m-128)),E=d(h+1.772*(p-128))):(_=a[0|f*r.scaleX*D],x=s[0|f*n.scaleX*D],E=u[0|f*i.scaleX*D]),O[A++]=_,O[A++]=x,O[A++]=E;break;case 4:if(!this.adobe)throw new Error(\"Unsupported color mode (4 components)\");for(k=!1,this.adobe&&this.adobe.transformCode?k=!0:void 0!==this.opts.colorTransform&&(k=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],o=this.components[3],l=0;l<e;l++)for(a=r.lines[0|l*r.scaleY*S],s=n.lines[0|l*n.scaleY*S],u=i.lines[0|l*i.scaleY*S],c=o.lines[0|l*o.scaleY*S],f=0;f<t;f++)k?(h=a[0|f*r.scaleX*D],p=s[0|f*n.scaleX*D],m=u[0|f*i.scaleX*D],y=c[0|f*o.scaleX*D],g=255-d(h+1.402*(m-128)),b=255-d(h-.3441363*(p-128)-.71413636*(m-128)),w=255-d(h+1.772*(p-128))):(g=a[0|f*r.scaleX*D],b=s[0|f*n.scaleX*D],w=u[0|f*i.scaleX*D],y=c[0|f*o.scaleX*D]),O[A++]=255-g,O[A++]=255-b,O[A++]=255-w,O[A++]=255-y;break;default:throw new Error(\"Unsupported color mode\")}return O},copyToImageData:function(t,e){var r,n,i,o,a,s,u,c,f,l=t.width,h=t.height,p=t.data,m=this.getData(l,h),y=0,v=0;switch(this.components.length){case 1:for(n=0;n<h;n++)for(r=0;r<l;r++)i=m[y++],p[v++]=i,p[v++]=i,p[v++]=i,e&&(p[v++]=255);break;case 3:for(n=0;n<h;n++)for(r=0;r<l;r++)u=m[y++],c=m[y++],f=m[y++],p[v++]=u,p[v++]=c,p[v++]=f,e&&(p[v++]=255);break;case 4:for(n=0;n<h;n++)for(r=0;r<l;r++)a=m[y++],s=m[y++],i=m[y++],u=255-d(a*(1-(o=m[y++])/255)+o),c=255-d(s*(1-o/255)+o),f=255-d(i*(1-o/255)+o),p[v++]=u,p[v++]=c,p[v++]=f,e&&(p[v++]=255);break;default:throw new Error(\"Unsupported color mode\")}}};var m=0,y=0;function v(){var t=m+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0);if(t>y){var e=Math.ceil((t-y)/1024/1024);throw new Error(\"maxMemoryUsageInMB limit exceeded by at least \".concat(e,\"MB\"))}m=t}return f.resetMaxMemoryUsage=function(t){m=0,y=t},f.getBytesAllocated=function(){return m},f.requestMemoryAllocation=v,f}();t.exports=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n(n({},{colorTransform:void 0,useTArray:!1,formatAsRGBA:!0,tolerantDecoding:!0,maxResolutionInMP:100,maxMemoryUsageInMB:512}),r),o=new Uint8Array(t),s=new a;s.opts=i,a.resetMaxMemoryUsage(1024*i.maxMemoryUsageInMB*1024),s.parse(o);var u=i.formatAsRGBA?4:3,c=s.width*s.height*u;try{a.requestMemoryAllocation(c);var f={width:s.width,height:s.height,exifBuffer:s.exifBuffer,data:i.useTArray?new Uint8Array(c):e.alloc(c)};s.comments.length>0&&(f.comments=s.comments)}catch(t){if(t instanceof RangeError)throw new Error(\"Could not allocate enough memory for the image. Required: \"+c);if(t instanceof ReferenceError&&\"Buffer is not defined\"===t.message)throw new Error(\"Buffer is not globally defined in this environment. Consider setting useTArray to true\");throw t}return s.copyToImageData(f,i.formatAsRGBA),f}}).call(this,r(2).Buffer)},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){return t&&\"object\"===r(t)&&\"function\"==typeof t.copy&&\"function\"==typeof t.fill&&\"function\"==typeof t.readUInt8}},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==r.call(t)}},function(t,e){},function(t,e,r){\"use strict\";var n=r(51).Buffer,i=r(149);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return\"\";for(var e=this.head,r=\"\"+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e,r,i,o=n.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,r=o,i=s,e.copy(r,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+\" \"+t})},function(t,e){},function(t,e,r){(function(t,e){!function(t,r){\"use strict\";if(!t.setImmediate){var n,i,o,a,s,u=1,c={},f=!1,l=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,\"[object process]\"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage(\"\",\"*\"),t.onmessage=r,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},n=function(t){o.port2.postMessage(t)}):l&&\"onreadystatechange\"in l.createElement(\"script\")?(i=l.documentElement,n=function(t){var e=l.createElement(\"script\");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):n=function(t){setTimeout(d,0,t)}:(a=\"setImmediate$\"+Math.random()+\"$\",s=function(e){e.source===t&&\"string\"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener(\"message\",s,!1):t.attachEvent(\"onmessage\",s),n=function(e){t.postMessage(a+e,\"*\")}),h.setImmediate=function(t){\"function\"!=typeof t&&(t=new Function(\"\"+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return c[u]=i,n(u),u++},h.clearImmediate=p}function p(t){delete c[t]}function d(t){if(f)setTimeout(d,0,t);else{var e=c[t];if(e){f=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(r,n)}}(e)}finally{p(t),f=!1}}}}}(\"undefined\"==typeof self?void 0===t?this:t:self)}).call(this,r(10),r(7))},function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&\"true\"===String(r).toLowerCase()}t.exports=function(t,e){if(r(\"noDeprecation\"))return t;var n=!1;return function(){if(!n){if(r(\"throwDeprecation\"))throw new Error(e);r(\"traceDeprecation\")&&console.trace(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(10))},function(t,e,r){var n=r(2),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,r)},a.alloc=function(t,e,r){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var n=i(t);return void 0!==e?\"string\"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},a.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return n.SlowBuffer(t)}},function(t,e,r){\"use strict\";t.exports=o;var n=r(74),i=Object.create(r(27));function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=r(24),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){t.exports=r(52)},function(t,e,r){t.exports=r(18)},function(t,e,r){t.exports=r(50).Transform},function(t,e,r){t.exports=r(50).PassThrough},function(t,e,r){\"use strict\";var n=r(14),i=r(28),o=r(81),a=r(186),s=r(85),u=r(87),c=r(88),f=t.exports=function(t){o.call(this),this._parser=new s(t,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,\"gamma\"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=t,this.writable=!0,this._parser.start()};n.inherits(f,o),f.prototype._handleError=function(t){this.emit(\"error\",t),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on(\"error\",(function(){}))),this.errord=!0},f.prototype._inflateData=function(t){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i.createInflate(),this._inflate.on(\"error\",this.emit.bind(this,\"error\")),this._filter.on(\"complete\",this._complete.bind(this)),this._inflate.pipe(this._filter);else{var e=(1+(this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3))*this._bitmapInfo.height,r=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:r});var n=e,o=this.emit.bind(this,\"error\");this._inflate.on(\"error\",(function(t){n&&o(t)})),this._filter.on(\"complete\",this._complete.bind(this));var a=this._filter.write.bind(this._filter);this._inflate.on(\"data\",(function(t){n&&(t.length>n&&(t=t.slice(0,n)),n-=t.length,a(t))})),this._inflate.on(\"end\",this._filter.end.bind(this._filter))}this._inflate.write(t)},f.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new a(this._bitmapInfo)},f.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},f.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},f.prototype._simpleTransparency=function(){this._metaData.alpha=!0},f.prototype._headersFinished=function(){this.emit(\"metadata\",this._metaData)},f.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit(\"error\",\"No Inflate block\"))},f.prototype._complete=function(t){if(!this.errord){var e;try{var r=u.dataToBitMap(t,this._bitmapInfo);e=c(r,this._bitmapInfo,this._options.skipRescale),r=null}catch(t){return void this._handleError(t)}this.emit(\"parsed\",e)}}},function(t,e,r){\"use strict\";(function(t,n){var i=r(53),o=r(178),a=r(179),s=r(182),u=r(185);for(var c in u)e[c]=u[c];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;function f(t){if(\"number\"!=typeof t||t<e.DEFLATE||t>e.UNZIP)throw new TypeError(\"Bad argument\");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,\"close before init\"),i(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||s.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},f.prototype.write=function(t,e,r,n,i,o,a){return this._write(!0,t,e,r,n,i,o,a)},f.prototype.writeSync=function(t,e,r,n,i,o,a){return this._write(!1,t,e,r,n,i,o,a)},f.prototype._write=function(r,o,a,s,u,c,f,l){if(i.equal(arguments.length,8),i(this.init_done,\"write before init\"),i(this.mode!==e.NONE,\"already finalized\"),i.equal(!1,this.write_in_progress,\"write already in progress\"),i.equal(!1,this.pending_close,\"close is pending\"),this.write_in_progress=!0,i.equal(!1,void 0===o,\"must provide flush value\"),this.write_in_progress=!0,o!==e.Z_NO_FLUSH&&o!==e.Z_PARTIAL_FLUSH&&o!==e.Z_SYNC_FLUSH&&o!==e.Z_FULL_FLUSH&&o!==e.Z_FINISH&&o!==e.Z_BLOCK)throw new Error(\"Invalid flush value\");if(null==a&&(a=t.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=l,this.strm.output=c,this.strm.next_out=f,this.flush=o,!r)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return n.nextTick((function(){h._process(),h._after()})),this},f.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},f.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error(\"invalid number of gzip magic number bytes read\")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error(\"Unknown mode \"+this.mode)}},f.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error(\"unexpected end of file\"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error(\"Missing dictionary\"):this._error(\"Bad dictionary\"),!1;default:return this._error(\"Zlib error\"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},f.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(t,r,n,o,a){i(4===arguments.length||5===arguments.length,\"init(windowBits, level, memLevel, strategy, [dictionary])\"),i(t>=8&&t<=15,\"invalid windowBits\"),i(r>=-1&&r<=9,\"invalid compression level\"),i(n>=1&&n<=9,\"invalid memlevel\"),i(o===e.Z_FILTERED||o===e.Z_HUFFMAN_ONLY||o===e.Z_RLE||o===e.Z_FIXED||o===e.Z_DEFAULT_STRATEGY,\"invalid strategy\"),this._init(r,t,n,o,a),this._setDictionary()},f.prototype.params=function(){throw new Error(\"deflateParams Not supported\")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(t,r,n,i,u){switch(this.level=t,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error(\"Unknown mode \"+this.mode)}this.err!==e.Z_OK&&this._error(\"Init error\"),this.dictionary=u,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error(\"Failed to set dictionary\")}},f.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=a.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error(\"Failed to reset stream\")},e.Zlib=f}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";var n=r(161);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t=\"abcdefghijklmnopqrst\",e=t.split(\"\"),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),o=\"\";for(var a in i)o+=a;return t!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,\"xy\")}catch(e){return\"y\"===t[1]}return!1}()?n:Object.assign:n}},function(t,e,r){\"use strict\";var n=r(162),i=r(76)(),o=r(164),a=Object,s=o(\"Array.prototype.push\"),u=o(\"Object.prototype.propertyIsEnumerable\"),c=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError(\"target must be an object\");var r=a(t);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var f=a(arguments[o]),l=n(f),h=i&&(Object.getOwnPropertySymbols||c);if(h)for(var p=h(f),d=0;d<p.length;++d){var m=p[d];u(f,m)&&s(l,m)}for(var y=0;y<l.length;++y){var v=l[y];if(u(f,v)){var g=f[v];r[v]=g}}}return r}},function(t,e,r){\"use strict\";var n=Array.prototype.slice,i=r(75),o=Object.keys,a=o?function(t){return o(t)}:r(163),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=r(75),u=Object.prototype.propertyIsEnumerable,c=!u.call({toString:null},\"toString\"),f=u.call((function(){}),\"prototype\"),l=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],h=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(\"undefined\"==typeof window)return!1;for(var t in window)try{if(!p[\"$\"+t]&&o.call(window,t)&&null!==window[t]&&\"object\"===n(window[t]))try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();i=function(t){var e=null!==t&&\"object\"===n(t),r=\"[object Function]\"===a.call(t),i=s(t),u=e&&\"[object String]\"===a.call(t),p=[];if(!e&&!r&&!i)throw new TypeError(\"Object.keys called on a non-object\");var m=f&&r;if(u&&t.length>0&&!o.call(t,0))for(var y=0;y<t.length;++y)p.push(String(y));if(i&&t.length>0)for(var v=0;v<t.length;++v)p.push(String(v));else for(var g in t)m&&\"prototype\"===g||!o.call(t,g)||p.push(String(g));if(c)for(var b=function(t){if(\"undefined\"==typeof window||!d)return h(t);try{return h(t)}catch(t){return!1}}(t),w=0;w<l.length;++w)b&&\"constructor\"===l[w]||!o.call(t,l[w])||p.push(l[w]);return p}}t.exports=i},function(t,e,r){\"use strict\";var n=r(29),i=r(174),o=i(n(\"String.prototype.indexOf\"));t.exports=function(t,e){var r=n(t,!!e);return\"function\"==typeof r&&o(t,\".prototype.\")>-1?i(r):r}},function(t,e,r){\"use strict\";t.exports=Error},function(t,e,r){\"use strict\";t.exports=EvalError},function(t,e,r){\"use strict\";t.exports=RangeError},function(t,e,r){\"use strict\";t.exports=ReferenceError},function(t,e,r){\"use strict\";t.exports=URIError},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Symbol&&Symbol,o=r(76);t.exports=function(){return\"function\"==typeof i&&(\"function\"==typeof Symbol&&(\"symbol\"===n(i(\"foo\"))&&(\"symbol\"===n(Symbol(\"bar\"))&&o())))}},function(t,e,r){\"use strict\";var n={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!(n instanceof i)}},function(t,e,r){\"use strict\";var n=Object.prototype.toString,i=Math.max,o=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var e=this;if(\"function\"!=typeof e||\"[object Function]\"!==n.apply(e))throw new TypeError(\"Function.prototype.bind called on incompatible \"+e);for(var r,a=function(t,e){for(var r=[],n=e||0,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r}(arguments,1),s=i(0,e.length-a.length),u=[],c=0;c<s;c++)u[c]=\"$\"+c;if(r=Function(\"binder\",\"return function (\"+function(t,e){for(var r=\"\",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(u,\",\")+\"){ return binder.apply(this,arguments); }\")((function(){if(this instanceof r){var n=e.apply(this,o(a,arguments));return Object(n)===n?n:this}return e.apply(t,o(a,arguments))})),e.prototype){var f=function(){};f.prototype=e.prototype,r.prototype=new f,f.prototype=null}return r}},function(t,e,r){\"use strict\";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(54);t.exports=o.call(n,i)},function(t,e,r){\"use strict\";var n=r(54),i=r(29),o=r(175),a=r(40),s=i(\"%Function.prototype.apply%\"),u=i(\"%Function.prototype.call%\"),c=i(\"%Reflect.apply%\",!0)||n.call(u,s),f=r(55),l=i(\"%Math.max%\");t.exports=function(t){if(\"function\"!=typeof t)throw new a(\"a function is required\");var e=c(n,u,arguments);return o(e,1+l(0,t.length-(arguments.length-1)),!0)};var h=function(){return c(n,s,arguments)};f?f(t.exports,\"apply\",{value:h}):t.exports.apply=h},function(t,e,r){\"use strict\";var n=r(29),i=r(176),o=r(177)(),a=r(78),s=r(40),u=n(\"%Math.floor%\");t.exports=function(t,e){if(\"function\"!=typeof t)throw new s(\"`fn` is not a function\");if(\"number\"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new s(\"`length` must be a positive 32-bit integer\");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if(\"length\"in t&&a){var f=a(t,\"length\");f&&!f.configurable&&(n=!1),f&&!f.writable&&(c=!1)}return(n||c||!r)&&(o?i(t,\"length\",e,!0,!0):i(t,\"length\",e)),t}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(55),o=r(77),a=r(40),s=r(78);t.exports=function(t,e,r){if(!t||\"object\"!==n(t)&&\"function\"!=typeof t)throw new a(\"`obj` must be an object or a function`\");if(\"string\"!=typeof e&&\"symbol\"!==n(e))throw new a(\"`property` must be a string or a symbol`\");if(arguments.length>3&&\"boolean\"!=typeof arguments[3]&&null!==arguments[3])throw new a(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&\"boolean\"!=typeof arguments[4]&&null!==arguments[4])throw new a(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&\"boolean\"!=typeof arguments[5]&&null!==arguments[5])throw new a(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&\"boolean\"!=typeof arguments[6])throw new a(\"`loose`, if provided, must be a boolean\");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],h=!!s&&s(t,e);if(i)i(t,e,{configurable:null===f&&h?h.configurable:!f,enumerable:null===u&&h?h.enumerable:!u,value:r,writable:null===c&&h?h.writable:!c});else{if(!l&&(u||c||f))throw new o(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\");t[e]=r}}},function(t,e,r){\"use strict\";var n=r(55),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],\"length\",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,r){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){\"use strict\";var n,i=r(41),o=r(180),a=r(79),s=r(80),u=r(181),c=0,f=4,l=0,h=-2,p=-1,d=4,m=2,y=8,v=9,g=286,b=30,w=19,_=2*g+1,x=15,E=3,k=258,D=k+E+1,S=42,A=103,M=113,O=666,C=1,F=2,I=3,B=4;function T(t,e){return t.msg=u[e],e}function L(t){return(t<<1)-(t>4?9:0)}function P(t){for(var e=t.length;--e>=0;)t[e]=0}function j(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function N(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,j(t.strm)}function R(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-D?t.strstart-(t.w_size-D):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+k,p=c[o+a-1],d=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===d&&c[r+a-1]===p&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=k-(h-o),o=h-k,n>a){if(t.match_start=e,a=n,n>=s)break;p=c[o+a-1],d=c[o+a]}}}while((e=l[e&f])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function G(t){var e,r,n,o,u,c,f,l,h,p,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-D)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--r);e=r=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--r);o+=d}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=o,p=void 0,(p=c.avail_in)>h&&(p=h),r=0===p?0:(c.avail_in-=p,i.arraySet(f,c.input,c.next_in,p,l),1===c.state.wrap?c.adler=a(c.adler,f,p,l):2===c.state.wrap&&(c.adler=s(c.adler,f,p,l)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=E)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+E-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<D&&0!==t.strm.avail_in)}function H(t,e){for(var r,n;;){if(t.lookahead<D){if(G(t),t.lookahead<D&&e===c)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-D&&(t.match_length=U(t,r)),t.match_length>=E)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(N(t,!1),0===t.strm.avail_out))return C}return t.insert=t.strstart<E-1?t.strstart:E-1,e===f?(N(t,!0),0===t.strm.avail_out?I:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?C:F}function Z(t,e){for(var r,n,i;;){if(t.lookahead<D){if(G(t),t.lookahead<D&&e===c)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=E-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-D&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===E&&t.strstart-t.match_start>4096)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-E,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=E-1,t.strstart++,n&&(N(t,!1),0===t.strm.avail_out))return C}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&N(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return C}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,e===f?(N(t,!0),0===t.strm.avail_out?I:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?C:F}function q(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*g+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*g+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?S:M,t.adler=2===e.wrap?0:1,e.last_flush=c,o._tr_init(e),l):T(t,h)}function X(t){var e,r=Y(t);return r===l&&((e=t.state).window_size=2*e.w_size,P(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=E-1,e.match_available=0,e.ins_h=0),r}function V(t,e,r,n,o,a){if(!t)return h;var s=1;if(e===p&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>v||r!==y||n<8||n>15||e<0||e>9||a<0||a>d)return T(t,h);8===n&&(n=9);var u=new W;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+E-1)/E),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=r,X(t)}n=[new q(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(G(t),0===t.lookahead&&e===c)return C;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,N(t,!1),0===t.strm.avail_out))return C;if(t.strstart-t.block_start>=t.w_size-D&&(N(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===f?(N(t,!0),0===t.strm.avail_out?I:B):(t.strstart>t.block_start&&(N(t,!1),t.strm.avail_out),C)})),new q(4,4,8,4,H),new q(4,5,16,8,H),new q(4,6,32,32,H),new q(4,4,16,16,Z),new q(8,16,32,32,Z),new q(8,16,128,128,Z),new q(8,32,128,256,Z),new q(32,128,258,1024,Z),new q(32,258,258,4096,Z)],e.deflateInit=function(t,e){return V(t,e,y,15,8,0)},e.deflateInit2=V,e.deflateReset=X,e.deflateResetKeep=Y,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,l):h},e.deflate=function(t,e){var r,i,a,u;if(!t||!t.state||e>5||e<0)return t?T(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===O&&e!==f)return T(t,0===t.avail_out?-5:h);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===S)if(2===i.wrap)t.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,3),i.status=M);else{var p=y+(i.w_bits-8<<4)<<8;p|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(p|=32),p+=31-p%31,i.status=M,z(i,p),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=A)}else i.status=A;if(i.status===A&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&j(t),i.pending+2<=i.pending_buf_size&&(R(i,255&t.adler),R(i,t.adler>>8&255),t.adler=0,i.status=M)):i.status=M),0!==i.pending){if(j(t),0===t.avail_out)return i.last_flush=-1,l}else if(0===t.avail_in&&L(e)<=L(r)&&e!==f)return T(t,-5);if(i.status===O&&0!==t.avail_in)return T(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==c&&i.status!==O){var d=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(G(t),0===t.lookahead)){if(e===c)return C;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(N(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===f?(N(t,!0),0===t.strm.avail_out?I:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?C:F}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=k){if(G(t),t.lookahead<=k&&e===c)return C;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+k;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=k-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=o._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(N(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===f?(N(t,!0),0===t.strm.avail_out?I:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?C:F}(i,e):n[i.level].func(i,e);if(d!==I&&d!==B||(i.status=O),d===C||d===I)return 0===t.avail_out&&(i.last_flush=-1),l;if(d===F&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(P(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),j(t),0===t.avail_out))return i.last_flush=-1,l}return e!==f?l:i.wrap<=0?1:(2===i.wrap?(R(i,255&t.adler),R(i,t.adler>>8&255),R(i,t.adler>>16&255),R(i,t.adler>>24&255),R(i,255&t.total_in),R(i,t.total_in>>8&255),R(i,t.total_in>>16&255),R(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),j(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?l:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==S&&69!==e&&73!==e&&91!==e&&e!==A&&e!==M&&e!==O?T(t,h):(t.state=null,e===M?T(t,-3):l):h},e.deflateSetDictionary=function(t,e){var r,n,o,s,u,c,f,p,d=e.length;if(!t||!t.state)return h;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==S||r.lookahead)return h;for(1===s&&(t.adler=a(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(P(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,e,d-r.w_size,r.w_size,0),e=p,d=r.w_size),u=t.avail_in,c=t.next_in,f=t.input,t.avail_in=d,t.next_in=0,t.input=e,G(r);r.lookahead>=E;){n=r.strstart,o=r.lookahead-(E-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+E-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=E-1,G(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=E-1,r.match_available=0,t.next_in=c,t.input=f,t.avail_in=u,r.wrap=s,l},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,r){\"use strict\";var n=r(41),i=0,o=1;function a(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,c=256,f=c+1+u,l=30,h=19,p=2*f+1,d=15,m=16,y=7,v=256,g=16,b=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=new Array(2*(f+2));a(D);var S=new Array(2*l);a(S);var A=new Array(512);a(A);var M=new Array(256);a(M);var O=new Array(u);a(O);var C,F,I,B=new Array(l);function T(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function L(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function P(t){return t<256?A[t]:A[256+(t>>>7)]}function j(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,r){t.bi_valid>m-r?(t.bi_buf|=e<<t.bi_valid&65535,j(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=r-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function R(t,e,r){N(t,r[2*e],r[2*e+1])}function z(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function U(t,e,r){var n,i,o=new Array(d+1),a=0;for(n=1;n<=d;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(o[s]++,s))}}function G(t){var e;for(e=0;e<f;e++)t.dyn_ltree[2*e]=0;for(e=0;e<l;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*v]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){t.bi_valid>8?j(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Z(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function q(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&Z(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Z(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function W(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?R(t,i,e):(R(t,(o=M[i])+c+1,e),0!==(a=_[o])&&N(t,i-=O[o],a),R(t,o=P(--n),r),0!==(a=x[o])&&N(t,n-=B[o],a))}while(s<t.last_lit);R(t,v,e)}function Y(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=p,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)q(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],q(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,q(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,y=e.stat_desc.max_length,v=0;for(o=0;o<=d;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<p;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>y&&(o=y,v++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=m&&(a=h[n-m]),s=u[2*n],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*n+1]+a)));if(0!==v){do{for(o=y-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[y]--,v-=2}while(v>0);for(o=y;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),U(o,c,t.bl_count)}function X(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*g]++):s<=10?t.bl_tree[2*b]++:t.bl_tree[2*w]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function V(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{R(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(R(t,i,t.bl_tree),s--),R(t,g,t.bl_tree),N(t,s-3,2)):s<=10?(R(t,b,t.bl_tree),N(t,s-3,3)):(R(t,w,t.bl_tree),N(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}a(B);var J=!1;function K(t,e,r,i){N(t,(s<<1)+(i?1:0),3),function(t,e,r,i){H(t),i&&(j(t,r),j(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){J||(!function(){var t,e,r,n,i,o=new Array(d+1);for(r=0,n=0;n<u-1;n++)for(O[n]=r,t=0;t<1<<_[n];t++)M[r++]=n;for(M[r-1]=n,i=0,n=0;n<16;n++)for(B[n]=i,t=0;t<1<<x[n];t++)A[i++]=n;for(i>>=7;n<l;n++)for(B[n]=i<<7,t=0;t<1<<x[n]-7;t++)A[256+i++]=n;for(e=0;e<=d;e++)o[e]=0;for(t=0;t<=143;)D[2*t+1]=8,t++,o[8]++;for(;t<=255;)D[2*t+1]=9,t++,o[9]++;for(;t<=279;)D[2*t+1]=7,t++,o[7]++;for(;t<=287;)D[2*t+1]=8,t++,o[8]++;for(U(D,f+1,o),t=0;t<l;t++)S[2*t+1]=5,S[2*t]=z(t,5);C=new T(D,_,c+1,f,d),F=new T(S,x,0,l,d),I=new T(new Array(0),E,0,h,y)}(),J=!0),t.l_desc=new L(t.dyn_ltree,C),t.d_desc=new L(t.dyn_dtree,F),t.bl_desc=new L(t.bl_tree,I),t.bi_buf=0,t.bi_valid=0,G(t)},e._tr_stored_block=K,e._tr_flush_block=function(t,e,r,n){var a,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return o;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),u=function(t){var e;for(X(t,t.dyn_ltree,t.l_desc.max_code),X(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=h-1;e>=3&&0===t.bl_tree[2*k[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=r+5,r+4<=a&&-1!==e?K(t,e,r,n):4===t.strategy||s===a?(N(t,2+(n?1:0),3),W(t,D,S)):(N(t,4+(n?1:0),3),function(t,e,r,n){var i;for(N(t,e-257,5),N(t,r-1,5),N(t,n-4,4),i=0;i<n;i++)N(t,t.bl_tree[2*k[i]+1],3);V(t,t.dyn_ltree,e-1),V(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),W(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&H(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(M[r]+c+1)]++,t.dyn_dtree[2*P(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){N(t,2,3),R(t,v,D),function(t){16===t.bi_valid?(j(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,r){\"use strict\";var n=r(41),i=r(79),o=r(80),a=r(183),s=r(184),u=1,c=2,f=0,l=-2,h=1,p=12,d=30,m=852,y=592;function v(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=h,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(m),e.distcode=e.distdyn=new n.Buf32(y),e.sane=1,e.back=-1,f):l}function w(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,b(t)):l}function _(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,w(t))):l}function x(t,e){var r,n;return t?(n=new g,t.state=n,n.window=null,(r=_(t,e))!==f&&(t.state=null),r):l}var E,k,D=!0;function S(t){if(D){var e;for(E=new n.Buf32(512),k=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,E,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(c,t.lens,0,32,k,0,t.work,{bits:5}),D=!1}t.lencode=E,t.lenbits=9,t.distcode=k,t.distbits=5}function A(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=w,e.inflateReset2=_,e.inflateResetKeep=b,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var r,m,y,g,b,w,_,x,E,k,D,M,O,C,F,I,B,T,L,P,j,N,R,z,U=0,G=new n.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;(r=t.state).mode===p&&(r.mode=13),b=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,k=w,D=_,N=f;t:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(2&r.wrap&&35615===x){r.check=0,G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0),x=0,E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",r.mode=d;break}if(8!=(15&x)){t.msg=\"unknown compression method\",r.mode=d;break}if(E-=4,j=8+(15&(x>>>=4)),0===r.wbits)r.wbits=j;else if(j>r.wbits){t.msg=\"invalid window size\",r.mode=d;break}r.dmax=1<<j,t.adler=r.check=1,r.mode=512&x?10:p,x=0,E=0;break;case 2:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.flags=x,8!=(255&r.flags)){t.msg=\"unknown compression method\",r.mode=d;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=d;break}r.head&&(r.head.text=x>>8&1),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0,r.mode=3;case 3:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.time=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,G[2]=x>>>16&255,G[3]=x>>>24&255,r.check=o(r.check,G,4,0)),x=0,E=0,r.mode=4;case 4:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>8),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0,r.mode=5;case 5:if(1024&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((M=r.length)>w&&(M=w),M&&(r.head&&(j=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,m,g,M,j)),512&r.flags&&(r.check=o(r.check,m,M,g)),w-=M,g+=M,r.length-=M),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break t;M=0;do{j=m[g+M++],r.head&&j&&r.length<65536&&(r.head.name+=String.fromCharCode(j))}while(j&&M<w);if(512&r.flags&&(r.check=o(r.check,m,M,g)),w-=M,g+=M,j)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break t;M=0;do{j=m[g+M++],r.head&&j&&r.length<65536&&(r.head.comment+=String.fromCharCode(j))}while(j&&M<w);if(512&r.flags&&(r.check=o(r.check,m,M,g)),w-=M,g+=M,j)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=d;break}x=0,E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=p;break;case 10:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}t.adler=r.check=v(x),x=0,E=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=b,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,2;t.adler=r.check=1,r.mode=p;case p:if(5===e||6===e)break t;case 13:if(r.last){x>>>=7&E,E-=7&E,r.mode=27;break}for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}switch(r.last=1&x,E-=1,3&(x>>>=1)){case 0:r.mode=14;break;case 1:if(S(r),r.mode=20,6===e){x>>>=2,E-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=d}x>>>=2,E-=2;break;case 14:for(x>>>=7&E,E-=7&E;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=d;break}if(r.length=65535&x,x=0,E=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(M=r.length){if(M>w&&(M=w),M>_&&(M=_),0===M)break t;n.arraySet(y,m,g,M,b),w-=M,g+=M,_-=M,b+=M,r.length-=M;break}r.mode=p;break;case 17:for(;E<14;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.nlen=257+(31&x),x>>>=5,E-=5,r.ndist=1+(31&x),x>>>=5,E-=5,r.ncode=4+(15&x),x>>>=4,E-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=d;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.lens[H[r.have++]]=7&x,x>>>=3,E-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},N=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,N){t.msg=\"invalid code lengths set\",r.mode=d;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;I=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,B=65535&U,!((F=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(B<16)x>>>=F,E-=F,r.lens[r.have++]=B;else{if(16===B){for(z=F+2;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x>>>=F,E-=F,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=d;break}j=r.lens[r.have-1],M=3+(3&x),x>>>=2,E-=2}else if(17===B){for(z=F+3;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=F,j=0,M=3+(7&(x>>>=F)),x>>>=3,E-=3}else{for(z=F+7;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=F,j=0,M=11+(127&(x>>>=F)),x>>>=7,E-=7}if(r.have+M>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=d;break}for(;M--;)r.lens[r.have++]=j}}if(r.mode===d)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=d;break}if(r.lenbits=9,R={bits:r.lenbits},N=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,N){t.msg=\"invalid literal/lengths set\",r.mode=d;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},N=s(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,N){t.msg=\"invalid distances set\",r.mode=d;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(w>=6&&_>=258){t.next_out=b,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,a(t,D),b=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,r.mode===p&&(r.back=-1);break}for(r.back=0;I=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,B=65535&U,!((F=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(I&&!(240&I)){for(T=F,L=I,P=B;I=(U=r.lencode[P+((x&(1<<T+L)-1)>>T)])>>>16&255,B=65535&U,!(T+(F=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=F,E-=F,r.back+=F,r.length=B,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=p;break}if(64&I){t.msg=\"invalid literal/length code\",r.mode=d;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(U=r.distcode[x&(1<<r.distbits)-1])>>>16&255,B=65535&U,!((F=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(!(240&I)){for(T=F,L=I,P=B;I=(U=r.distcode[P+((x&(1<<T+L)-1)>>T)])>>>16&255,B=65535&U,!(T+(F=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=F,E-=F,r.back+=F,64&I){t.msg=\"invalid distance code\",r.mode=d;break}r.offset=B,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.offset+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=d;break}r.mode=25;case 25:if(0===_)break t;if(M=D-_,r.offset>M){if((M=r.offset-M)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=d;break}M>r.wnext?(M-=r.wnext,O=r.wsize-M):O=r.wnext-M,M>r.length&&(M=r.length),C=r.window}else C=y,O=b-r.offset,M=r.length;M>_&&(M=_),_-=M,r.length-=M;do{y[b++]=C[O++]}while(--M);0===r.length&&(r.mode=21);break;case 26:if(0===_)break t;y[b++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;E<32;){if(0===w)break t;w--,x|=m[g++]<<E,E+=8}if(D-=_,t.total_out+=D,r.total+=D,D&&(t.adler=r.check=r.flags?o(r.check,y,D,b-D):i(r.check,y,D,b-D)),D=_,(r.flags?x:v(x))!==r.check){t.msg=\"incorrect data check\",r.mode=d;break}x=0,E=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=d;break}x=0,E=0}r.mode=29;case 29:N=1;break t;case d:N=-3;break t;case 31:return-4;default:return l}return t.next_out=b,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,(r.wsize||D!==t.avail_out&&r.mode<d&&(r.mode<27||4!==e))&&A(t,t.output,t.next_out,D-t.avail_out)?(r.mode=31,-4):(k-=t.avail_in,D-=t.avail_out,t.total_in+=k,t.total_out+=D,r.total+=D,r.wrap&&D&&(t.adler=r.check=r.flags?o(r.check,y,D,t.next_out-D):i(r.check,y,D,t.next_out-D)),t.data_type=r.bits+(r.last?64:0)+(r.mode===p?128:0)+(20===r.mode||15===r.mode?256:0),(0===k&&0===D||4===e)&&N===f&&(N=-5),N)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,f},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,f):l},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?l:11===r.mode&&i(1,e,n,0)!==r.check?-3:A(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,f):l},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,r){\"use strict\";t.exports=function(t,e){var r,n,i,o,a,s,u,c,f,l,h,p,d,m,y,v,g,b,w,_,x,E,k,D,S;r=t.state,n=t.next_in,D=t.input,i=n+(t.avail_in-5),o=t.next_out,S=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=r.dmax,c=r.wsize,f=r.whave,l=r.wnext,h=r.window,p=r.hold,d=r.bits,m=r.lencode,y=r.distcode,v=(1<<r.lenbits)-1,g=(1<<r.distbits)-1;t:do{d<15&&(p+=D[n++]<<d,d+=8,p+=D[n++]<<d,d+=8),b=m[p&v];e:for(;;){if(p>>>=w=b>>>24,d-=w,0===(w=b>>>16&255))S[o++]=65535&b;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break t}t.msg=\"invalid literal/length code\",r.mode=30;break t}b=m[(65535&b)+(p&(1<<w)-1)];continue e}for(_=65535&b,(w&=15)&&(d<w&&(p+=D[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=D[n++]<<d,d+=8,p+=D[n++]<<d,d+=8),b=y[p&g];;){if(p>>>=w=b>>>24,d-=w,16&(w=b>>>16&255)){if(x=65535&b,d<(w&=15)&&(p+=D[n++]<<d,(d+=8)<w&&(p+=D[n++]<<d,d+=8)),(x+=p&(1<<w)-1)>u){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(p>>>=w,d-=w,x>(w=o-a)){if((w=x-w)>f&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(E=0,k=h,0===l){if(E+=c-w,w<_){_-=w;do{S[o++]=h[E++]}while(--w);E=o-x,k=S}}else if(l<w){if(E+=c+l-w,(w-=l)<_){_-=w;do{S[o++]=h[E++]}while(--w);if(E=0,l<_){_-=w=l;do{S[o++]=h[E++]}while(--w);E=o-x,k=S}}}else if(E+=l-w,w<_){_-=w;do{S[o++]=h[E++]}while(--w);E=o-x,k=S}for(;_>2;)S[o++]=k[E++],S[o++]=k[E++],S[o++]=k[E++],_-=3;_&&(S[o++]=k[E++],_>1&&(S[o++]=k[E++]))}else{E=o-x;do{S[o++]=S[E++],S[o++]=S[E++],S[o++]=S[E++],_-=3}while(_>2);_&&(S[o++]=S[E++],_>1&&(S[o++]=S[E++]))}break}if(64&w){t.msg=\"invalid distance code\",r.mode=30;break t}b=y[(65535&b)+(p&(1<<w)-1)]}}break}}while(n<i&&o<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=p,r.bits=d}},function(t,e,r){\"use strict\";var n=r(41),i=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,c,f,l,h,p){var d,m,y,v,g,b,w,_,x,E=p.bits,k=0,D=0,S=0,A=0,M=0,O=0,C=0,F=0,I=0,B=0,T=null,L=0,P=new n.Buf16(16),j=new n.Buf16(16),N=null,R=0;for(k=0;k<=i;k++)P[k]=0;for(D=0;D<c;D++)P[e[r+D]]++;for(M=E,A=i;A>=1&&0===P[A];A--);if(M>A&&(M=A),0===A)return f[l++]=20971520,f[l++]=20971520,p.bits=1,0;for(S=1;S<A&&0===P[S];S++);for(M<S&&(M=S),F=1,k=1;k<=i;k++)if(F<<=1,(F-=P[k])<0)return-1;if(F>0&&(0===t||1!==A))return-1;for(j[1]=0,k=1;k<i;k++)j[k+1]=j[k]+P[k];for(D=0;D<c;D++)0!==e[r+D]&&(h[j[e[r+D]]++]=D);if(0===t?(T=N=h,b=19):1===t?(T=o,L-=257,N=a,R-=257,b=256):(T=s,N=u,b=-1),B=0,D=0,k=S,g=l,O=M,C=0,y=-1,v=(I=1<<M)-1,1===t&&I>852||2===t&&I>592)return 1;for(;;){w=k-C,h[D]<b?(_=0,x=h[D]):h[D]>b?(_=N[R+h[D]],x=T[L+h[D]]):(_=96,x=0),d=1<<k-C,S=m=1<<O;do{f[g+(B>>C)+(m-=d)]=w<<24|_<<16|x}while(0!==m);for(d=1<<k-1;B&d;)d>>=1;if(0!==d?(B&=d-1,B+=d):B=0,D++,0==--P[k]){if(k===A)break;k=e[r+h[D]]}if(k>M&&(B&v)!==y){for(0===C&&(C=M),g+=S,F=1<<(O=k-C);O+C<A&&!((F-=P[O+C])<=0);)O++,F<<=1;if(I+=1<<O,1===t&&I>852||2===t&&I>592)return 1;f[y=B&v]=M<<24|O<<16|g-l}}return 0!==B&&(f[g+B]=k-C<<24|64<<16),p.bits=M,0}},function(t,e,r){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){\"use strict\";(function(e){var n=r(14),i=r(81),o=r(82),a=t.exports=function(t){i.call(this);var r=[],n=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){r.push(t)},complete:function(){n.emit(\"complete\",e.concat(r))}}),this._filter.start()};n.inherits(a,i)}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(14),i=r(38),o=r(30),a=r(89),s=t.exports=function(t){i.call(this);var e=t||{};this._packer=new a(e),this._deflate=this._packer.createDeflate(),this.readable=!0};n.inherits(s,i),s.prototype.pack=function(t,r,n,i){this.emit(\"data\",e.from(o.PNG_SIGNATURE)),this.emit(\"data\",this._packer.packIHDR(r,n)),i&&this.emit(\"data\",this._packer.packGAMA(i));var a=this._packer.filterData(t,r,n);this._deflate.on(\"error\",this.emit.bind(this,\"error\")),this._deflate.on(\"data\",function(t){this.emit(\"data\",this._packer.packIDAT(t))}.bind(this)),this._deflate.on(\"end\",function(){this.emit(\"data\",this._packer.packIEND()),this.emit(\"end\")}.bind(this)),this._deflate.end(a)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(30);t.exports=function(t,r,i,o){var a,s=-1!==[n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(o.colorType);if(o.colorType===o.inputColorType){var u=(a=new ArrayBuffer(2),new DataView(a).setInt16(0,256,!0),256!==new Int16Array(a)[0]);if(8===o.bitDepth||16===o.bitDepth&&u)return t}var c=16!==o.bitDepth?t:new Uint16Array(t.buffer),f=255,l=n.COLORTYPE_TO_BPP_MAP[o.inputColorType];4!==l||o.inputHasAlpha||(l=3);var h=n.COLORTYPE_TO_BPP_MAP[o.colorType];16===o.bitDepth&&(f=65535,h*=2);var p=e.alloc(r*i*h),d=0,m=0,y=o.bgColor||{};function v(){var t,e,r,i=f;switch(o.inputColorType){case n.COLORTYPE_COLOR_ALPHA:i=c[d+3],t=c[d],e=c[d+1],r=c[d+2];break;case n.COLORTYPE_COLOR:t=c[d],e=c[d+1],r=c[d+2];break;case n.COLORTYPE_ALPHA:i=c[d+1],e=t=c[d],r=t;break;case n.COLORTYPE_GRAYSCALE:e=t=c[d],r=t;break;default:throw new Error(\"input color type:\"+o.inputColorType+\" is not supported at present\")}return o.inputHasAlpha&&(s||(i/=f,t=Math.min(Math.max(Math.round((1-i)*y.red+i*t),0),f),e=Math.min(Math.max(Math.round((1-i)*y.green+i*e),0),f),r=Math.min(Math.max(Math.round((1-i)*y.blue+i*r),0),f))),{red:t,green:e,blue:r,alpha:i}}void 0===y.red&&(y.red=f),void 0===y.green&&(y.green=f),void 0===y.blue&&(y.blue=f);for(var g=0;g<i;g++)for(var b=0;b<r;b++){var w=v();switch(o.colorType){case n.COLORTYPE_COLOR_ALPHA:case n.COLORTYPE_COLOR:8===o.bitDepth?(p[m]=w.red,p[m+1]=w.green,p[m+2]=w.blue,s&&(p[m+3]=w.alpha)):(p.writeUInt16BE(w.red,m),p.writeUInt16BE(w.green,m+2),p.writeUInt16BE(w.blue,m+4),s&&p.writeUInt16BE(w.alpha,m+6));break;case n.COLORTYPE_ALPHA:case n.COLORTYPE_GRAYSCALE:var _=(w.red+w.green+w.blue)/3;8===o.bitDepth?(p[m]=_,s&&(p[m+1]=w.alpha)):(p.writeUInt16BE(_,m),s&&p.writeUInt16BE(w.alpha,m+2));break;default:throw new Error(\"unrecognised color Type \"+o.colorType)}d+=l,m+=h}return p}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(84);var i={0:function(t,e,r,n,i){for(var o=0;o<r;o++)n[i+o]=t[e+o]},1:function(t,e,r,n,i,o){for(var a=0;a<r;a++){var s=a>=o?t[e+a-o]:0,u=t[e+a]-s;n[i+a]=u}},2:function(t,e,r,n,i){for(var o=0;o<r;o++){var a=e>0?t[e+o-r]:0,s=t[e+o]-a;n[i+o]=s}},3:function(t,e,r,n,i,o){for(var a=0;a<r;a++){var s=a>=o?t[e+a-o]:0,u=e>0?t[e+a-r]:0,c=t[e+a]-(s+u>>1);n[i+a]=c}},4:function(t,e,r,i,o,a){for(var s=0;s<r;s++){var u=s>=a?t[e+s-a]:0,c=e>0?t[e+s-r]:0,f=e>0&&s>=a?t[e+s-(r+a)]:0,l=t[e+s]-n(u,c,f);i[o+s]=l}}},o={0:function(t,e,r){for(var n=0,i=e+r,o=e;o<i;o++)n+=Math.abs(t[o]);return n},1:function(t,e,r,n){for(var i=0,o=0;o<r;o++){var a=o>=n?t[e+o-n]:0,s=t[e+o]-a;i+=Math.abs(s)}return i},2:function(t,e,r){for(var n=0,i=e+r,o=e;o<i;o++){var a=e>0?t[o-r]:0,s=t[o]-a;n+=Math.abs(s)}return n},3:function(t,e,r,n){for(var i=0,o=0;o<r;o++){var a=o>=n?t[e+o-n]:0,s=e>0?t[e+o-r]:0,u=t[e+o]-(a+s>>1);i+=Math.abs(u)}return i},4:function(t,e,r,i){for(var o=0,a=0;a<r;a++){var s=a>=i?t[e+a-i]:0,u=e>0?t[e+a-r]:0,c=e>0&&a>=i?t[e+a-(r+i)]:0,f=t[e+a]-n(s,u,c);o+=Math.abs(f)}return o}};t.exports=function(t,r,n,a,s){var u;if(\"filterType\"in a&&-1!==a.filterType){if(\"number\"!=typeof a.filterType)throw new Error(\"unrecognised filter types\");u=[a.filterType]}else u=[0,1,2,3,4];16===a.bitDepth&&(s*=2);for(var c=r*s,f=0,l=0,h=e.alloc((c+1)*n),p=u[0],d=0;d<n;d++){if(u.length>1)for(var m=1/0,y=0;y<u.length;y++){var v=o[u[y]](t,l,c,s);v<m&&(p=u[y],m=v)}h[f]=p,f++,i[p](t,l,c,h,f,s),f+=c,l+=c}return h}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=r(191),i=r(194);e.read=function(t,e){return n(t,e||{})},e.write=function(t,e){return i(t,e)}},function(t,e,r){\"use strict\";(function(e){var n=!0,i=r(28),o=r(192);i.deflateSync||(n=!1);var a=r(90),s=r(193),u=r(85),c=r(87),f=r(88);t.exports=function(t,r){if(!n)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var l,h,p;var d=[];var m=new a(t),y=new u(r,{read:m.read.bind(m),error:function(t){l=t},metadata:function(t){h=t},gamma:function(t){p=t},palette:function(t){h.palette=t},transColor:function(t){h.transColor=t},inflateData:function(t){d.push(t)},simpleTransparency:function(){h.alpha=!0}});if(y.start(),m.process(),l)throw l;var v,g=e.concat(d);if(d.length=0,h.interlace)v=i.inflateSync(g);else{var b=(1+(h.width*h.bpp*h.depth+7>>3))*h.height;v=o(g,{chunkSize:b,maxLength:b})}if(g=null,!v||!v.length)throw new Error(\"bad png - invalid inflate data response\");var w=s.process(v,h);g=null;var _=c.dataToBitMap(w,h);w=null;var x=f(_,h,r.skipRescale);return h.data=x,h.gamma=p||0,h}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(n,i){var o=r(53).ok,a=r(28),s=r(14),u=r(2).kMaxLength;function c(t){if(!(this instanceof c))return new c(t);t&&t.chunkSize<a.Z_MIN_CHUNK&&(t.chunkSize=a.Z_MIN_CHUNK),a.Inflate.call(this,t),this._offset=void 0===this._offset?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,t&&null!=t.maxLength&&(this._maxLength=t.maxLength)}function f(t,e){e&&n.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function l(t,e){return function(t,e){if(\"string\"==typeof e&&(e=i.from(e)),!(e instanceof i))throw new TypeError(\"Not a string or buffer\");var r=t._finishFlushFlag;return null==r&&(r=a.Z_FINISH),t._processChunk(e,r)}(new c(e),t)}c.prototype._processChunk=function(t,e,r){if(\"function\"==typeof r)return a.Inflate._processChunk.call(this,t,e,r);var n,s,c=this,l=t&&t.length,h=this._chunkSize-this._offset,p=this._maxLength,d=0,m=[],y=0;function v(t,e){if(!c._hadError){var r=h-e;if(o(r>=0,\"have should not go down\"),r>0){var n=c._buffer.slice(c._offset,c._offset+r);if(c._offset+=r,n.length>p&&(n=n.slice(0,p)),m.push(n),y+=n.length,0===(p-=n.length))return!1}return(0===e||c._offset>=c._chunkSize)&&(h=c._chunkSize,c._offset=0,c._buffer=i.allocUnsafe(c._chunkSize)),0===e&&(d+=l-t,l=t,!0)}}this.on(\"error\",(function(t){n=t})),o(this._handle,\"zlib binding closed\");do{s=(s=this._handle.writeSync(e,t,d,l,this._buffer,this._offset,h))||this._writeState}while(!this._hadError&&v(s[0],s[1]));if(this._hadError)throw n;if(y>=u)throw f(this),new RangeError(\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\");var g=i.concat(m,y);return f(this),g},s.inherits(c,a.Inflate),t.exports=e=l,e.Inflate=c,e.createInflate=function(t){return new c(t)},e.inflateSync=l}).call(this,r(7),r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(90),i=r(82);e.process=function(e,r){var o=[],a=new n(e);return new i(r,{read:a.read.bind(a),write:function(t){o.push(t)},complete:function(){}}).start(),a.process(),t.concat(o)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=!0,i=r(28);i.deflateSync||(n=!1);var o=r(30),a=r(89);t.exports=function(t,r){if(!n)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var s=new a(r||{}),u=[];u.push(e.from(o.PNG_SIGNATURE)),u.push(s.packIHDR(t.width,t.height)),t.gamma&&u.push(s.packGAMA(t.gamma));var c=s.filterData(t.data,t.width,t.height),f=i.deflateSync(c,s.getDeflateOptions());if(c=null,!f||!f.length)throw new Error(\"bad png - invalid compressed data response\");return u.push(s.packIDAT(f)),u.push(s.packIEND()),e.concat(u)}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag=\"BM\",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}r.prototype.encode=function(){var t=new e(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var r=0,n=3*this.width+this.extraBytes,i=0;i<this.height;i++){for(var o=0;o<this.width;o++){var a=this.pos+i*n+3*o;r++,t[a]=this.buffer[r++],t[a+1]=this.buffer[r++],t[a+2]=this.buffer[r++]}if(this.extraBytes>0){var s=this.pos+i*n+3*this.width;t.fill(0,s,s+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new r(t).encode(),width:t.width,height:t.height}}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString(\"utf-8\",0,this.pos+=2),\"BM\"!=this.flag)throw new Error(\"Invalid BMP File\");this.parseHeader(),this.parseRGBA()}r.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);this.palette[e]={red:i,green:n,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},r.prototype.parseRGBA=function(){var t=\"bit\"+this.bitPP,r=this.width*this.height*4;this.data=new e(r),this[t]()},r.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,r=this.height>=0?this.height-1:-this.height;for(r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++)for(var o=this.buffer.readUInt8(this.pos++),a=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var u=this.palette[o>>7-s&1];this.data[a+4*s]=0,this.data[a+4*s+1]=u.blue,this.data[a+4*s+2]=u.green,this.data[a+4*s+3]=u.red}0!=e&&(this.pos+=4-e)}},r.prototype.bit4=function(){if(2==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0,n=!1;e<this.data.length;){var i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);if(0==i){if(0==o){this.bottom_up?r--:r++,e=r*this.width*4,n=!1;continue}if(1==o)break;if(2==o){var a=this.buffer.readUInt8(this.pos++),s=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=s:r+=s,e+=s*this.width*4+4*a}else{for(var u=this.buffer.readUInt8(this.pos++),c=0;c<o;c++)t.call(this,n?15&u:(240&u)>>4),1&c&&c+1<o&&(u=this.buffer.readUInt8(this.pos++)),n=!n;1==(o+1>>1&1)&&this.pos++}}else for(c=0;c<i;c++)t.call(this,n?15&o:(240&o)>>4),n=!n}}else{var f=Math.ceil(this.width/2),l=f%4;for(s=this.height-1;s>=0;s--){var h=this.bottom_up?s:this.height-1-s;for(a=0;a<f;a++){o=this.buffer.readUInt8(this.pos++),e=h*this.width*4+2*a*4;var p=o>>4,d=15&o,m=this.palette[p];if(this.data[e]=0,this.data[e+1]=m.blue,this.data[e+2]=m.green,this.data[e+3]=m.red,2*a+1>=this.width)break;m=this.palette[d],this.data[e+4]=0,this.data[e+4+1]=m.blue,this.data[e+4+2]=m.green,this.data[e+4+3]=m.red}0!=l&&(this.pos+=4-l)}}},r.prototype.bit8=function(){if(1==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0;e<this.data.length;){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++);if(0==n){if(0==i){this.bottom_up?r--:r++,e=r*this.width*4;continue}if(1==i)break;if(2==i){var o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=a:r+=a,e+=a*this.width*4+4*o}else{for(var s=0;s<i;s++){var u=this.buffer.readUInt8(this.pos++);t.call(this,u)}!0&i&&this.pos++}}else for(s=0;s<n;s++)t.call(this,i)}}else{var c=this.width%4;for(a=this.height-1;a>=0;a--){var f=this.bottom_up?a:this.height-1-a;for(o=0;o<this.width;o++){i=this.buffer.readUInt8(this.pos++),e=f*this.width*4+4*o;if(i<this.palette.length){var l=this.palette[i];this.data[e]=0,this.data[e+1]=l.blue,this.data[e+2]=l.green,this.data[e+3]=l.red}else this.data[e]=0,this.data[e+1]=255,this.data[e+2]=255,this.data[e+3]=255}0!=c&&(this.pos+=4-c)}}},r.prototype.bit15=function(){for(var t=this.width%3,e=parseInt(\"11111\",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.buffer.readUInt16LE(this.pos);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,u=(o>>10&e)/e*255|0,c=o>>15?255:0,f=n*this.width*4+4*i;this.data[f]=c,this.data[f+1]=a,this.data[f+2]=s,this.data[f+3]=u}this.pos+=t}},r.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],r=0;r<16;r++)this.maskRed>>r&1&&e[0]++,this.maskGreen>>r&1&&e[1]++,this.maskBlue>>r&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var a=this.buffer.readUInt16LE(this.pos);this.pos+=2;var s=(a&this.maskBlue)<<e[0],u=(a&this.maskGreen)>>e[1],c=(a&this.maskRed)>>e[2],f=i*this.width*4+4*o;this.data[f]=0,this.data[f+1]=s,this.data[f+2]=u,this.data[f+3]=c}this.pos+=t}},r.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=e*this.width*4+4*r;this.data[a]=0,this.data[a+1]=n,this.data[a+2]=i,this.data[a+3]=o}this.pos+=this.width%4}},r.prototype.bit32=function(){if(3==this.compress){this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4;for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=o,this.data[s+3]=a}}else for(t=this.height-1;t>=0;t--)for(e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=o,this.data[s+3]=a}},r.prototype.getData=function(){return this.data},t.exports=function(t){return new r(t)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n={};(0,r(15).assign)(n,r(198),r(201),r(95)),t.exports=n},function(t,e,r){\"use strict\";var n=r(199),i=r(15),o=r(93),a=r(56),s=r(94),u=Object.prototype.toString,c=0,f=-1,l=0,h=8;function p(t){if(!(this instanceof p))return new p(t);this.options=i.assign({level:f,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:l,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==c)throw new Error(a[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d=\"string\"==typeof e.dictionary?o.string2buf(e.dictionary):\"[object ArrayBuffer]\"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=n.deflateSetDictionary(this.strm,d))!==c)throw new Error(a[r]);this._dict_set=!0}}function d(t,e){var r=new p(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}p.prototype.push=function(t,e){var r,a,s=this.strm,f=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,\"string\"==typeof t?s.input=o.string2buf(t):\"[object ArrayBuffer]\"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(f),s.next_out=0,s.avail_out=f),1!==(r=n.deflate(s,a))&&r!==c)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||(\"string\"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==a||(this.onEnd(c),s.avail_out=0,!0)},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===c&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=p,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},function(t,e,r){\"use strict\";var n,i=r(15),o=r(200),a=r(91),s=r(92),u=r(56),c=0,f=4,l=0,h=-2,p=-1,d=4,m=2,y=8,v=9,g=286,b=30,w=19,_=2*g+1,x=15,E=3,k=258,D=k+E+1,S=42,A=103,M=113,O=666,C=1,F=2,I=3,B=4;function T(t,e){return t.msg=u[e],e}function L(t){return(t<<1)-(t>4?9:0)}function P(t){for(var e=t.length;--e>=0;)t[e]=0}function j(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function N(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,j(t.strm)}function R(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-D?t.strstart-(t.w_size-D):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+k,p=c[o+a-1],d=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===d&&c[r+a-1]===p&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=k-(h-o),o=h-k,n>a){if(t.match_start=e,a=n,n>=s)break;p=c[o+a-1],d=c[o+a]}}}while((e=l[e&f])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function G(t){var e,r,n,o,u,c,f,l,h,p,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-D)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--r);e=r=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--r);o+=d}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=o,p=void 0,(p=c.avail_in)>h&&(p=h),r=0===p?0:(c.avail_in-=p,i.arraySet(f,c.input,c.next_in,p,l),1===c.state.wrap?c.adler=a(c.adler,f,p,l):2===c.state.wrap&&(c.adler=s(c.adler,f,p,l)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=E)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+E-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<D&&0!==t.strm.avail_in)}function H(t,e){for(var r,n;;){if(t.lookahead<D){if(G(t),t.lookahead<D&&e===c)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-D&&(t.match_length=U(t,r)),t.match_length>=E)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(N(t,!1),0===t.strm.avail_out))return C}return t.insert=t.strstart<E-1?t.strstart:E-1,e===f?(N(t,!0),0===t.strm.avail_out?I:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?C:F}function Z(t,e){for(var r,n,i;;){if(t.lookahead<D){if(G(t),t.lookahead<D&&e===c)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=E-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-D&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===E&&t.strstart-t.match_start>4096)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-E,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=E-1,t.strstart++,n&&(N(t,!1),0===t.strm.avail_out))return C}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&N(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return C}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,e===f?(N(t,!0),0===t.strm.avail_out?I:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?C:F}function q(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*g+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*g+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?S:M,t.adler=2===e.wrap?0:1,e.last_flush=c,o._tr_init(e),l):T(t,h)}function X(t){var e,r=Y(t);return r===l&&((e=t.state).window_size=2*e.w_size,P(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=E-1,e.match_available=0,e.ins_h=0),r}function V(t,e,r,n,o,a){if(!t)return h;var s=1;if(e===p&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>v||r!==y||n<8||n>15||e<0||e>9||a<0||a>d)return T(t,h);8===n&&(n=9);var u=new W;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+E-1)/E),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=r,X(t)}n=[new q(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(G(t),0===t.lookahead&&e===c)return C;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,N(t,!1),0===t.strm.avail_out))return C;if(t.strstart-t.block_start>=t.w_size-D&&(N(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===f?(N(t,!0),0===t.strm.avail_out?I:B):(t.strstart>t.block_start&&(N(t,!1),t.strm.avail_out),C)})),new q(4,4,8,4,H),new q(4,5,16,8,H),new q(4,6,32,32,H),new q(4,4,16,16,Z),new q(8,16,32,32,Z),new q(8,16,128,128,Z),new q(8,32,128,256,Z),new q(32,128,258,1024,Z),new q(32,258,258,4096,Z)],e.deflateInit=function(t,e){return V(t,e,y,15,8,0)},e.deflateInit2=V,e.deflateReset=X,e.deflateResetKeep=Y,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,l):h},e.deflate=function(t,e){var r,i,a,u;if(!t||!t.state||e>5||e<0)return t?T(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===O&&e!==f)return T(t,0===t.avail_out?-5:h);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===S)if(2===i.wrap)t.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,3),i.status=M);else{var p=y+(i.w_bits-8<<4)<<8;p|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(p|=32),p+=31-p%31,i.status=M,z(i,p),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=A)}else i.status=A;if(i.status===A&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&j(t),i.pending+2<=i.pending_buf_size&&(R(i,255&t.adler),R(i,t.adler>>8&255),t.adler=0,i.status=M)):i.status=M),0!==i.pending){if(j(t),0===t.avail_out)return i.last_flush=-1,l}else if(0===t.avail_in&&L(e)<=L(r)&&e!==f)return T(t,-5);if(i.status===O&&0!==t.avail_in)return T(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==c&&i.status!==O){var d=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(G(t),0===t.lookahead)){if(e===c)return C;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(N(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===f?(N(t,!0),0===t.strm.avail_out?I:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?C:F}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=k){if(G(t),t.lookahead<=k&&e===c)return C;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+k;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=k-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=o._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(N(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===f?(N(t,!0),0===t.strm.avail_out?I:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?C:F}(i,e):n[i.level].func(i,e);if(d!==I&&d!==B||(i.status=O),d===C||d===I)return 0===t.avail_out&&(i.last_flush=-1),l;if(d===F&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(P(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),j(t),0===t.avail_out))return i.last_flush=-1,l}return e!==f?l:i.wrap<=0?1:(2===i.wrap?(R(i,255&t.adler),R(i,t.adler>>8&255),R(i,t.adler>>16&255),R(i,t.adler>>24&255),R(i,255&t.total_in),R(i,t.total_in>>8&255),R(i,t.total_in>>16&255),R(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),j(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?l:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==S&&69!==e&&73!==e&&91!==e&&e!==A&&e!==M&&e!==O?T(t,h):(t.state=null,e===M?T(t,-3):l):h},e.deflateSetDictionary=function(t,e){var r,n,o,s,u,c,f,p,d=e.length;if(!t||!t.state)return h;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==S||r.lookahead)return h;for(1===s&&(t.adler=a(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(P(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,e,d-r.w_size,r.w_size,0),e=p,d=r.w_size),u=t.avail_in,c=t.next_in,f=t.input,t.avail_in=d,t.next_in=0,t.input=e,G(r);r.lookahead>=E;){n=r.strstart,o=r.lookahead-(E-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+E-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=E-1,G(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=E-1,r.match_available=0,t.next_in=c,t.input=f,t.avail_in=u,r.wrap=s,l},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,r){\"use strict\";var n=r(15),i=0,o=1;function a(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,c=256,f=c+1+u,l=30,h=19,p=2*f+1,d=15,m=16,y=7,v=256,g=16,b=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=new Array(2*(f+2));a(D);var S=new Array(2*l);a(S);var A=new Array(512);a(A);var M=new Array(256);a(M);var O=new Array(u);a(O);var C,F,I,B=new Array(l);function T(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function L(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function P(t){return t<256?A[t]:A[256+(t>>>7)]}function j(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,r){t.bi_valid>m-r?(t.bi_buf|=e<<t.bi_valid&65535,j(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=r-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function R(t,e,r){N(t,r[2*e],r[2*e+1])}function z(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function U(t,e,r){var n,i,o=new Array(d+1),a=0;for(n=1;n<=d;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(o[s]++,s))}}function G(t){var e;for(e=0;e<f;e++)t.dyn_ltree[2*e]=0;for(e=0;e<l;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*v]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){t.bi_valid>8?j(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Z(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function q(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&Z(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Z(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function W(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?R(t,i,e):(R(t,(o=M[i])+c+1,e),0!==(a=_[o])&&N(t,i-=O[o],a),R(t,o=P(--n),r),0!==(a=x[o])&&N(t,n-=B[o],a))}while(s<t.last_lit);R(t,v,e)}function Y(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=p,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)q(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],q(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,q(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,y=e.stat_desc.max_length,v=0;for(o=0;o<=d;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<p;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>y&&(o=y,v++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=m&&(a=h[n-m]),s=u[2*n],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*n+1]+a)));if(0!==v){do{for(o=y-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[y]--,v-=2}while(v>0);for(o=y;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),U(o,c,t.bl_count)}function X(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*g]++):s<=10?t.bl_tree[2*b]++:t.bl_tree[2*w]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function V(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{R(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(R(t,i,t.bl_tree),s--),R(t,g,t.bl_tree),N(t,s-3,2)):s<=10?(R(t,b,t.bl_tree),N(t,s-3,3)):(R(t,w,t.bl_tree),N(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}a(B);var J=!1;function K(t,e,r,i){N(t,(s<<1)+(i?1:0),3),function(t,e,r,i){H(t),i&&(j(t,r),j(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){J||(!function(){var t,e,r,n,i,o=new Array(d+1);for(r=0,n=0;n<u-1;n++)for(O[n]=r,t=0;t<1<<_[n];t++)M[r++]=n;for(M[r-1]=n,i=0,n=0;n<16;n++)for(B[n]=i,t=0;t<1<<x[n];t++)A[i++]=n;for(i>>=7;n<l;n++)for(B[n]=i<<7,t=0;t<1<<x[n]-7;t++)A[256+i++]=n;for(e=0;e<=d;e++)o[e]=0;for(t=0;t<=143;)D[2*t+1]=8,t++,o[8]++;for(;t<=255;)D[2*t+1]=9,t++,o[9]++;for(;t<=279;)D[2*t+1]=7,t++,o[7]++;for(;t<=287;)D[2*t+1]=8,t++,o[8]++;for(U(D,f+1,o),t=0;t<l;t++)S[2*t+1]=5,S[2*t]=z(t,5);C=new T(D,_,c+1,f,d),F=new T(S,x,0,l,d),I=new T(new Array(0),E,0,h,y)}(),J=!0),t.l_desc=new L(t.dyn_ltree,C),t.d_desc=new L(t.dyn_dtree,F),t.bl_desc=new L(t.bl_tree,I),t.bi_buf=0,t.bi_valid=0,G(t)},e._tr_stored_block=K,e._tr_flush_block=function(t,e,r,n){var a,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return o;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),u=function(t){var e;for(X(t,t.dyn_ltree,t.l_desc.max_code),X(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=h-1;e>=3&&0===t.bl_tree[2*k[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=r+5,r+4<=a&&-1!==e?K(t,e,r,n):4===t.strategy||s===a?(N(t,2+(n?1:0),3),W(t,D,S)):(N(t,4+(n?1:0),3),function(t,e,r,n){var i;for(N(t,e-257,5),N(t,r-1,5),N(t,n-4,4),i=0;i<n;i++)N(t,t.bl_tree[2*k[i]+1],3);V(t,t.dyn_ltree,e-1),V(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),W(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&H(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(M[r]+c+1)]++,t.dyn_dtree[2*P(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){N(t,2,3),R(t,v,D),function(t){16===t.bi_valid?(j(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){\"use strict\";var n=r(202),i=r(15),o=r(93),a=r(95),s=r(56),u=r(94),c=r(205),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new c,n.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):\"[object ArrayBuffer]\"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[r])}function h(t,e){var r=new l(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}l.prototype.push=function(t,e){var r,s,u,c,l,h=this.strm,p=this.options.chunkSize,d=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,\"string\"==typeof t?h.input=o.binstring2buf(t):\"[object ArrayBuffer]\"===f.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&d&&(r=n.inflateSetDictionary(this.strm,d)),r===a.Z_BUF_ERROR&&!0===m&&(r=a.Z_OK,m=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&r!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||(\"string\"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,l=o.buf2string(h.output,u),h.next_out=c,h.avail_out=p-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(l)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((h.avail_in>0||0===h.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},function(t,e,r){\"use strict\";var n=r(15),i=r(91),o=r(92),a=r(203),s=r(204),u=1,c=2,f=0,l=-2,h=1,p=12,d=30,m=852,y=592;function v(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=h,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(m),e.distcode=e.distdyn=new n.Buf32(y),e.sane=1,e.back=-1,f):l}function w(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,b(t)):l}function _(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,w(t))):l}function x(t,e){var r,n;return t?(n=new g,t.state=n,n.window=null,(r=_(t,e))!==f&&(t.state=null),r):l}var E,k,D=!0;function S(t){if(D){var e;for(E=new n.Buf32(512),k=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,E,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(c,t.lens,0,32,k,0,t.work,{bits:5}),D=!1}t.lencode=E,t.lenbits=9,t.distcode=k,t.distbits=5}function A(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=w,e.inflateReset2=_,e.inflateResetKeep=b,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var r,m,y,g,b,w,_,x,E,k,D,M,O,C,F,I,B,T,L,P,j,N,R,z,U=0,G=new n.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;(r=t.state).mode===p&&(r.mode=13),b=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,k=w,D=_,N=f;t:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(2&r.wrap&&35615===x){r.check=0,G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0),x=0,E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",r.mode=d;break}if(8!=(15&x)){t.msg=\"unknown compression method\",r.mode=d;break}if(E-=4,j=8+(15&(x>>>=4)),0===r.wbits)r.wbits=j;else if(j>r.wbits){t.msg=\"invalid window size\",r.mode=d;break}r.dmax=1<<j,t.adler=r.check=1,r.mode=512&x?10:p,x=0,E=0;break;case 2:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.flags=x,8!=(255&r.flags)){t.msg=\"unknown compression method\",r.mode=d;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=d;break}r.head&&(r.head.text=x>>8&1),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0,r.mode=3;case 3:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.time=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,G[2]=x>>>16&255,G[3]=x>>>24&255,r.check=o(r.check,G,4,0)),x=0,E=0,r.mode=4;case 4:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>8),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0,r.mode=5;case 5:if(1024&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((M=r.length)>w&&(M=w),M&&(r.head&&(j=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,m,g,M,j)),512&r.flags&&(r.check=o(r.check,m,M,g)),w-=M,g+=M,r.length-=M),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break t;M=0;do{j=m[g+M++],r.head&&j&&r.length<65536&&(r.head.name+=String.fromCharCode(j))}while(j&&M<w);if(512&r.flags&&(r.check=o(r.check,m,M,g)),w-=M,g+=M,j)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break t;M=0;do{j=m[g+M++],r.head&&j&&r.length<65536&&(r.head.comment+=String.fromCharCode(j))}while(j&&M<w);if(512&r.flags&&(r.check=o(r.check,m,M,g)),w-=M,g+=M,j)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=d;break}x=0,E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=p;break;case 10:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}t.adler=r.check=v(x),x=0,E=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=b,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,2;t.adler=r.check=1,r.mode=p;case p:if(5===e||6===e)break t;case 13:if(r.last){x>>>=7&E,E-=7&E,r.mode=27;break}for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}switch(r.last=1&x,E-=1,3&(x>>>=1)){case 0:r.mode=14;break;case 1:if(S(r),r.mode=20,6===e){x>>>=2,E-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=d}x>>>=2,E-=2;break;case 14:for(x>>>=7&E,E-=7&E;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=d;break}if(r.length=65535&x,x=0,E=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(M=r.length){if(M>w&&(M=w),M>_&&(M=_),0===M)break t;n.arraySet(y,m,g,M,b),w-=M,g+=M,_-=M,b+=M,r.length-=M;break}r.mode=p;break;case 17:for(;E<14;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.nlen=257+(31&x),x>>>=5,E-=5,r.ndist=1+(31&x),x>>>=5,E-=5,r.ncode=4+(15&x),x>>>=4,E-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=d;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.lens[H[r.have++]]=7&x,x>>>=3,E-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},N=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,N){t.msg=\"invalid code lengths set\",r.mode=d;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;I=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,B=65535&U,!((F=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(B<16)x>>>=F,E-=F,r.lens[r.have++]=B;else{if(16===B){for(z=F+2;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x>>>=F,E-=F,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=d;break}j=r.lens[r.have-1],M=3+(3&x),x>>>=2,E-=2}else if(17===B){for(z=F+3;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=F,j=0,M=3+(7&(x>>>=F)),x>>>=3,E-=3}else{for(z=F+7;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=F,j=0,M=11+(127&(x>>>=F)),x>>>=7,E-=7}if(r.have+M>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=d;break}for(;M--;)r.lens[r.have++]=j}}if(r.mode===d)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=d;break}if(r.lenbits=9,R={bits:r.lenbits},N=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,N){t.msg=\"invalid literal/lengths set\",r.mode=d;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},N=s(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,N){t.msg=\"invalid distances set\",r.mode=d;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(w>=6&&_>=258){t.next_out=b,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,a(t,D),b=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,r.mode===p&&(r.back=-1);break}for(r.back=0;I=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,B=65535&U,!((F=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(I&&!(240&I)){for(T=F,L=I,P=B;I=(U=r.lencode[P+((x&(1<<T+L)-1)>>T)])>>>16&255,B=65535&U,!(T+(F=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=F,E-=F,r.back+=F,r.length=B,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=p;break}if(64&I){t.msg=\"invalid literal/length code\",r.mode=d;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(U=r.distcode[x&(1<<r.distbits)-1])>>>16&255,B=65535&U,!((F=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(!(240&I)){for(T=F,L=I,P=B;I=(U=r.distcode[P+((x&(1<<T+L)-1)>>T)])>>>16&255,B=65535&U,!(T+(F=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=F,E-=F,r.back+=F,64&I){t.msg=\"invalid distance code\",r.mode=d;break}r.offset=B,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.offset+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=d;break}r.mode=25;case 25:if(0===_)break t;if(M=D-_,r.offset>M){if((M=r.offset-M)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=d;break}M>r.wnext?(M-=r.wnext,O=r.wsize-M):O=r.wnext-M,M>r.length&&(M=r.length),C=r.window}else C=y,O=b-r.offset,M=r.length;M>_&&(M=_),_-=M,r.length-=M;do{y[b++]=C[O++]}while(--M);0===r.length&&(r.mode=21);break;case 26:if(0===_)break t;y[b++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;E<32;){if(0===w)break t;w--,x|=m[g++]<<E,E+=8}if(D-=_,t.total_out+=D,r.total+=D,D&&(t.adler=r.check=r.flags?o(r.check,y,D,b-D):i(r.check,y,D,b-D)),D=_,(r.flags?x:v(x))!==r.check){t.msg=\"incorrect data check\",r.mode=d;break}x=0,E=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=d;break}x=0,E=0}r.mode=29;case 29:N=1;break t;case d:N=-3;break t;case 31:return-4;default:return l}return t.next_out=b,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,(r.wsize||D!==t.avail_out&&r.mode<d&&(r.mode<27||4!==e))&&A(t,t.output,t.next_out,D-t.avail_out)?(r.mode=31,-4):(k-=t.avail_in,D-=t.avail_out,t.total_in+=k,t.total_out+=D,r.total+=D,r.wrap&&D&&(t.adler=r.check=r.flags?o(r.check,y,D,t.next_out-D):i(r.check,y,D,t.next_out-D)),t.data_type=r.bits+(r.last?64:0)+(r.mode===p?128:0)+(20===r.mode||15===r.mode?256:0),(0===k&&0===D||4===e)&&N===f&&(N=-5),N)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,f},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,f):l},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?l:11===r.mode&&i(1,e,n,0)!==r.check?-3:A(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,f):l},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,r){\"use strict\";t.exports=function(t,e){var r,n,i,o,a,s,u,c,f,l,h,p,d,m,y,v,g,b,w,_,x,E,k,D,S;r=t.state,n=t.next_in,D=t.input,i=n+(t.avail_in-5),o=t.next_out,S=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=r.dmax,c=r.wsize,f=r.whave,l=r.wnext,h=r.window,p=r.hold,d=r.bits,m=r.lencode,y=r.distcode,v=(1<<r.lenbits)-1,g=(1<<r.distbits)-1;t:do{d<15&&(p+=D[n++]<<d,d+=8,p+=D[n++]<<d,d+=8),b=m[p&v];e:for(;;){if(p>>>=w=b>>>24,d-=w,0===(w=b>>>16&255))S[o++]=65535&b;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break t}t.msg=\"invalid literal/length code\",r.mode=30;break t}b=m[(65535&b)+(p&(1<<w)-1)];continue e}for(_=65535&b,(w&=15)&&(d<w&&(p+=D[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=D[n++]<<d,d+=8,p+=D[n++]<<d,d+=8),b=y[p&g];;){if(p>>>=w=b>>>24,d-=w,16&(w=b>>>16&255)){if(x=65535&b,d<(w&=15)&&(p+=D[n++]<<d,(d+=8)<w&&(p+=D[n++]<<d,d+=8)),(x+=p&(1<<w)-1)>u){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(p>>>=w,d-=w,x>(w=o-a)){if((w=x-w)>f&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(E=0,k=h,0===l){if(E+=c-w,w<_){_-=w;do{S[o++]=h[E++]}while(--w);E=o-x,k=S}}else if(l<w){if(E+=c+l-w,(w-=l)<_){_-=w;do{S[o++]=h[E++]}while(--w);if(E=0,l<_){_-=w=l;do{S[o++]=h[E++]}while(--w);E=o-x,k=S}}}else if(E+=l-w,w<_){_-=w;do{S[o++]=h[E++]}while(--w);E=o-x,k=S}for(;_>2;)S[o++]=k[E++],S[o++]=k[E++],S[o++]=k[E++],_-=3;_&&(S[o++]=k[E++],_>1&&(S[o++]=k[E++]))}else{E=o-x;do{S[o++]=S[E++],S[o++]=S[E++],S[o++]=S[E++],_-=3}while(_>2);_&&(S[o++]=S[E++],_>1&&(S[o++]=S[E++]))}break}if(64&w){t.msg=\"invalid distance code\",r.mode=30;break t}b=y[(65535&b)+(p&(1<<w)-1)]}}break}}while(n<i&&o<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=p,r.bits=d}},function(t,e,r){\"use strict\";var n=r(15),i=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,c,f,l,h,p){var d,m,y,v,g,b,w,_,x,E=p.bits,k=0,D=0,S=0,A=0,M=0,O=0,C=0,F=0,I=0,B=0,T=null,L=0,P=new n.Buf16(16),j=new n.Buf16(16),N=null,R=0;for(k=0;k<=i;k++)P[k]=0;for(D=0;D<c;D++)P[e[r+D]]++;for(M=E,A=i;A>=1&&0===P[A];A--);if(M>A&&(M=A),0===A)return f[l++]=20971520,f[l++]=20971520,p.bits=1,0;for(S=1;S<A&&0===P[S];S++);for(M<S&&(M=S),F=1,k=1;k<=i;k++)if(F<<=1,(F-=P[k])<0)return-1;if(F>0&&(0===t||1!==A))return-1;for(j[1]=0,k=1;k<i;k++)j[k+1]=j[k]+P[k];for(D=0;D<c;D++)0!==e[r+D]&&(h[j[e[r+D]]++]=D);if(0===t?(T=N=h,b=19):1===t?(T=o,L-=257,N=a,R-=257,b=256):(T=s,N=u,b=-1),B=0,D=0,k=S,g=l,O=M,C=0,y=-1,v=(I=1<<M)-1,1===t&&I>852||2===t&&I>592)return 1;for(;;){w=k-C,h[D]<b?(_=0,x=h[D]):h[D]>b?(_=N[R+h[D]],x=T[L+h[D]]):(_=96,x=0),d=1<<k-C,S=m=1<<O;do{f[g+(B>>C)+(m-=d)]=w<<24|_<<16|x}while(0!==m);for(d=1<<k-1;B&d;)d>>=1;if(0!==d?(B&=d-1,B+=d):B=0,D++,0==--P[k]){if(k===A)break;k=e[r+h[D]]}if(k>M&&(B&v)!==y){for(0===C&&(C=M),g+=S,F=1<<(O=k-C);O+C<A&&!((F-=P[O+C])<=0);)O++,F<<=1;if(I+=1<<O,1===t&&I>852||2===t&&I>592)return 1;f[y=B&v]=M<<24|O<<16|g-l}}return 0!==B&&(f[g+B]=k-C<<24|64<<16),p.bits=M,0}},function(t,e,r){\"use strict\";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1}},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"applyPalette\",(function(){return Xt})),r.d(e,\"applyPaletteSync\",(function(){return Yt})),r.d(e,\"buildPalette\",(function(){return Wt})),r.d(e,\"buildPaletteSync\",(function(){return qt})),r.d(e,\"constants\",(function(){return a})),r.d(e,\"conversion\",(function(){return l})),r.d(e,\"distance\",(function(){return j})),r.d(e,\"image\",(function(){return Ot})),r.d(e,\"palette\",(function(){return tt})),r.d(e,\"quality\",(function(){return Nt})),r.d(e,\"utils\",(function(){return at}));var n=Object.defineProperty,i=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},o=(t,e,r)=>(((t,e,r)=>{e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r})(t,\"symbol\"!=typeof e?e+\"\":e,r),r),a={};i(a,{bt709:()=>s});var s={};i(s,{Y:()=>u,x:()=>c,y:()=>f});var u=(t=>(t[t.RED=.2126]=\"RED\",t[t.GREEN=.7152]=\"GREEN\",t[t.BLUE=.0722]=\"BLUE\",t[t.WHITE=1]=\"WHITE\",t))(u||{}),c=(t=>(t[t.RED=.64]=\"RED\",t[t.GREEN=.3]=\"GREEN\",t[t.BLUE=.15]=\"BLUE\",t[t.WHITE=.3127]=\"WHITE\",t))(c||{}),f=(t=>(t[t.RED=.33]=\"RED\",t[t.GREEN=.6]=\"GREEN\",t[t.BLUE=.06]=\"BLUE\",t[t.WHITE=.329]=\"WHITE\",t))(f||{}),l={};function h(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}function p(t,e,r){return{x:.4124*(t=h(t/255))+.3576*(e=h(e/255))+.1805*(r=h(r/255)),y:.2126*t+.7152*e+.0722*r,z:.0193*t+.1192*e+.9505*r}}i(l,{lab2rgb:()=>P,lab2xyz:()=>B,rgb2hsl:()=>x,rgb2lab:()=>M,rgb2xyz:()=>p,xyz2lab:()=>A,xyz2rgb:()=>L});var d={};function m(t){return t*(Math.PI/180)}function y(t,e,r){let n=t;return n<e&&(n=e),n<r&&(n=r),n}function v(t,e,r){let n=t;return n>e&&(n=e),n>r&&(n=r),n}function g(t,e,r){return t>r&&(t=r),t<e&&(t=e),0|t}function b(t){return(t=Math.round(t))>255?t=255:t<0&&(t=0),t}function w(t){return t>255?t=255:t<0&&(t=0),t}function _(t,e){const r=typeof t[0];let n;if(\"number\"===r||\"string\"===r){const r=Object.create(null);for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]||0===r[n]||(r[n]=e)}n=t.sort(((t,n)=>e(t,n)||r[t]-r[n]))}else{const r=t.slice(0);n=t.sort(((t,n)=>e(t,n)||r.indexOf(t)-r.indexOf(n)))}return n}function x(t,e,r){const n=v(t,e,r),i=y(t,e,r),o=i-n,a=(n+i)/510;let s=0;a>0&&a<1&&(s=o/(a<.5?i+n:510-i-n));let u=0;return o>0&&(u=i===t?(e-r)/o:i===e?2+(r-t)/o:4+(t-e)/o,u*=60,u<0&&(u+=360)),{h:u,s,l:a}}i(d,{degrees2radians:()=>m,inRange0to255:()=>w,inRange0to255Rounded:()=>b,intInRange:()=>g,max3:()=>y,min3:()=>v,stableSort:()=>_});var E=.95047,k=1,D=1.08883;function S(t){return t>.008856?t**(1/3):7.787*t+16/116}function A(t,e,r){if(t=S(t/E),e=S(e/k),r=S(r/D),116*e-16<0)throw new Error(\"xxx\");return{L:Math.max(0,116*e-16),a:500*(t-e),b:200*(e-r)}}function M(t,e,r){const n=p(t,e,r);return A(n.x,n.y,n.z)}var O=.95047,C=1,F=1.08883;function I(t){return t>.206893034?t**3:(t-16/116)/7.787}function B(t,e,r){const n=(t+16)/116,i=n-r/200;return{x:O*I(e/500+n),y:C*I(n),z:F*I(i)}}function T(t){return t>.0031308?1.055*t**(1/2.4)-.055:12.92*t}function L(t,e,r){const n=T(3.2406*t+-1.5372*e+-.4986*r),i=T(-.9689*t+1.8758*e+.0415*r),o=T(.0557*t+-.204*e+1.057*r);return{r:b(255*n),g:b(255*i),b:b(255*o)}}function P(t,e,r){const n=B(t,e,r);return L(n.x,n.y,n.z)}var j={};i(j,{AbstractDistanceCalculator:()=>N,AbstractEuclidean:()=>q,AbstractManhattan:()=>V,CIE94GraphicArts:()=>U,CIE94Textiles:()=>z,CIEDE2000:()=>H,CMetric:()=>Z,Euclidean:()=>W,EuclideanBT709:()=>Y,EuclideanBT709NoAlpha:()=>X,Manhattan:()=>J,ManhattanBT709:()=>Q,ManhattanNommyde:()=>K,PNGQuant:()=>$});var N=class{constructor(){o(this,\"_maxDistance\"),o(this,\"_whitePoint\"),this._setDefaults(),this.setWhitePoint(255,255,255,255)}setWhitePoint(t,e,r,n){this._whitePoint={r:t>0?255/t:0,g:e>0?255/e:0,b:r>0?255/r:0,a:n>0?255/n:0},this._maxDistance=this.calculateRaw(t,e,r,n,0,0,0,0)}calculateNormalized(t,e){return this.calculateRaw(t.r,t.g,t.b,t.a,e.r,e.g,e.b,e.a)/this._maxDistance}},R=class extends N{calculateRaw(t,e,r,n,i,o,a,s){const u=M(w(t*this._whitePoint.r),w(e*this._whitePoint.g),w(r*this._whitePoint.b)),c=M(w(i*this._whitePoint.r),w(o*this._whitePoint.g),w(a*this._whitePoint.b)),f=u.L-c.L,l=u.a-c.a,h=u.b-c.b,p=Math.sqrt(u.a*u.a+u.b*u.b),d=p-Math.sqrt(c.a*c.a+c.b*c.b);let m=l*l+h*h-d*d;m=m<0?0:Math.sqrt(m);const y=(s-n)*this._whitePoint.a*this._kA;return Math.sqrt((f/this._Kl)**2+(d/(1+this._K1*p))**2+(m/(1+this._K2*p))**2+y**2)}},z=class extends R{_setDefaults(){this._Kl=2,this._K1=.048,this._K2=.014,this._kA=12.5/255}},U=class extends R{_setDefaults(){this._Kl=1,this._K1=.045,this._K2=.015,this._kA=25/255}},G=class extends N{_setDefaults(){}static _calculatehp(t,e){const r=Math.atan2(t,e);return r>=0?r:r+G._deg360InRad}static _calculateRT(t,e){const r=e**7,n=2*Math.sqrt(r/(r+G._pow25to7)),i=G._deg30InRad*Math.exp(-(((t-G._deg275InRad)/G._deg25InRad)**2));return-Math.sin(2*i)*n}static _calculateT(t){return 1-.17*Math.cos(t-G._deg30InRad)+.24*Math.cos(2*t)+.32*Math.cos(3*t+G._deg6InRad)-.2*Math.cos(4*t-G._deg63InRad)}static _calculate_ahp(t,e,r,n){const i=r+n;return 0===t?i:e<=G._deg180InRad?i/2:i<G._deg360InRad?(i+G._deg360InRad)/2:(i-G._deg360InRad)/2}static _calculate_dHp(t,e,r,n){let i;return i=0===t?0:e<=G._deg180InRad?r-n:r<=n?r-n+G._deg360InRad:r-n-G._deg360InRad,2*Math.sqrt(t)*Math.sin(i/2)}calculateRaw(t,e,r,n,i,o,a,s){const u=M(w(t*this._whitePoint.r),w(e*this._whitePoint.g),w(r*this._whitePoint.b)),c=M(w(i*this._whitePoint.r),w(o*this._whitePoint.g),w(a*this._whitePoint.b)),f=(s-n)*this._whitePoint.a*G._kA,l=this.calculateRawInLab(u,c);return Math.sqrt(l+f*f)}calculateRawInLab(t,e){const r=t.L,n=t.a,i=t.b,o=e.L,a=e.a,s=e.b,u=((Math.sqrt(n*n+i*i)+Math.sqrt(a*a+s*s))/2)**7,c=.5*(1-Math.sqrt(u/(u+G._pow25to7))),f=(1+c)*n,l=(1+c)*a,h=Math.sqrt(f*f+i*i),p=Math.sqrt(l*l+s*s),d=h*p,m=G._calculatehp(i,f),y=G._calculatehp(s,l),v=Math.abs(m-y),g=o-r,b=p-h,w=G._calculate_dHp(d,v,y,m),_=G._calculate_ahp(d,v,m,y),x=(h+p)/2,E=((r+o)/2-50)**2,k=b/(1+.045*x),D=w/(1+.015*G._calculateT(_)*x);return(g/(1+.015*E/Math.sqrt(20+E)))**2+k**2+D**2+G._calculateRT(_,x)*k*D}},H=G;o(H,\"_kA\",25/255),o(H,\"_pow25to7\",25**7),o(H,\"_deg360InRad\",m(360)),o(H,\"_deg180InRad\",m(180)),o(H,\"_deg30InRad\",m(30)),o(H,\"_deg6InRad\",m(6)),o(H,\"_deg63InRad\",m(63)),o(H,\"_deg275InRad\",m(275)),o(H,\"_deg25InRad\",m(25));var Z=class extends N{calculateRaw(t,e,r,n,i,o,a,s){const u=(t+i)/2*this._whitePoint.r,c=(t-i)*this._whitePoint.r,f=(e-o)*this._whitePoint.g,l=(r-a)*this._whitePoint.b,h=((512+u)*c*c>>8)+4*f*f+((767-u)*l*l>>8),p=(s-n)*this._whitePoint.a;return Math.sqrt(h+p*p)}_setDefaults(){}},q=class extends N{calculateRaw(t,e,r,n,i,o,a,s){const u=i-t,c=o-e,f=a-r,l=s-n;return Math.sqrt(this._kR*u*u+this._kG*c*c+this._kB*f*f+this._kA*l*l)}},W=class extends q{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},Y=class extends q{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},X=class extends q{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=0}},V=class extends N{calculateRaw(t,e,r,n,i,o,a,s){let u=i-t,c=o-e,f=a-r,l=s-n;return u<0&&(u=0-u),c<0&&(c=0-c),f<0&&(f=0-f),l<0&&(l=0-l),this._kR*u+this._kG*c+this._kB*f+this._kA*l}},J=class extends V{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},K=class extends V{_setDefaults(){this._kR=.4984,this._kG=.8625,this._kB=.2979,this._kA=1}},Q=class extends V{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},$=class extends N{calculateRaw(t,e,r,n,i,o,a,s){const u=(s-n)*this._whitePoint.a;return this._colordifferenceCh(t*this._whitePoint.r,i*this._whitePoint.r,u)+this._colordifferenceCh(e*this._whitePoint.g,o*this._whitePoint.g,u)+this._colordifferenceCh(r*this._whitePoint.b,a*this._whitePoint.b,u)}_colordifferenceCh(t,e,r){const n=t-e,i=n+r;return n*n+i*i}_setDefaults(){}},tt={};i(tt,{AbstractPaletteQuantizer:()=>et,ColorHistogram:()=>gt,NeuQuant:()=>pt,NeuQuantFloat:()=>yt,RGBQuant:()=>wt,WuColorCube:()=>St,WuQuant:()=>Mt});var et=class{quantizeSync(){for(const t of this.quantize())if(t.palette)return t.palette;throw new Error(\"unreachable\")}},rt=class{constructor(){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),o(this,\"uint32\"),o(this,\"rgba\"),this.uint32=-1>>>0,this.r=this.g=this.b=this.a=0,this.rgba=new Array(4),this.rgba[0]=0,this.rgba[1]=0,this.rgba[2]=0,this.rgba[3]=0}static createByQuadruplet(t){const e=new rt;return e.r=0|t[0],e.g=0|t[1],e.b=0|t[2],e.a=0|t[3],e._loadUINT32(),e._loadQuadruplet(),e}static createByRGBA(t,e,r,n){const i=new rt;return i.r=0|t,i.g=0|e,i.b=0|r,i.a=0|n,i._loadUINT32(),i._loadQuadruplet(),i}static createByUint32(t){const e=new rt;return e.uint32=t>>>0,e._loadRGBA(),e._loadQuadruplet(),e}from(t){this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this.uint32=t.uint32,this.rgba[0]=t.r,this.rgba[1]=t.g,this.rgba[2]=t.b,this.rgba[3]=t.a}getLuminosity(t){let e=this.r,r=this.g,n=this.b;return t&&(e=Math.min(255,255-this.a+this.a*e/255),r=Math.min(255,255-this.a+this.a*r/255),n=Math.min(255,255-this.a+this.a*n/255)),.2126*e+.7152*r+.0722*n}_loadUINT32(){this.uint32=(this.a<<24|this.b<<16|this.g<<8|this.r)>>>0}_loadRGBA(){this.r=255&this.uint32,this.g=this.uint32>>>8&255,this.b=this.uint32>>>16&255,this.a=this.uint32>>>24&255}_loadQuadruplet(){this.rgba[0]=this.r,this.rgba[1]=this.g,this.rgba[2]=this.b,this.rgba[3]=this.a}},nt=class{constructor(){o(this,\"_pointArray\"),o(this,\"_width\"),o(this,\"_height\"),this._width=0,this._height=0,this._pointArray=[]}getWidth(){return this._width}getHeight(){return this._height}setWidth(t){this._width=t}setHeight(t){this._height=t}getPointArray(){return this._pointArray}clone(){const t=new nt;t._width=this._width,t._height=this._height;for(let e=0,r=this._pointArray.length;e<r;e++)t._pointArray[e]=rt.createByUint32(0|this._pointArray[e].uint32);return t}toUint32Array(){const t=this._pointArray.length,e=new Uint32Array(t);for(let r=0;r<t;r++)e[r]=this._pointArray[r].uint32;return e}toUint8Array(){return new Uint8Array(this.toUint32Array().buffer)}static fromHTMLImageElement(t){const e=t.naturalWidth,r=t.naturalHeight,n=document.createElement(\"canvas\");n.width=e,n.height=r;return n.getContext(\"2d\").drawImage(t,0,0,e,r,0,0,e,r),nt.fromHTMLCanvasElement(n)}static fromHTMLCanvasElement(t){const e=t.width,r=t.height,n=t.getContext(\"2d\").getImageData(0,0,e,r);return nt.fromImageData(n)}static fromImageData(t){const e=t.width,r=t.height;return nt.fromUint8Array(t.data,e,r)}static fromUint8Array(t,e,r){switch(Object.prototype.toString.call(t)){case\"[object Uint8ClampedArray]\":case\"[object Uint8Array]\":break;default:t=new Uint8Array(t)}const n=new Uint32Array(t.buffer);return nt.fromUint32Array(n,e,r)}static fromUint32Array(t,e,r){const n=new nt;n._width=e,n._height=r;for(let e=0,r=t.length;e<r;e++)n._pointArray[e]=rt.createByUint32(0|t[e]);return n}static fromBuffer(t,e,r){const n=new Uint32Array(t.buffer,t.byteOffset,t.byteLength/Uint32Array.BYTES_PER_ELEMENT);return nt.fromUint32Array(n,e,r)}};function it(t,e){const r=360/e;for(let n=1,i=r-r/2;n<e;n++,i+=r)if(t>=i&&t<i+r)return n;return 0}var ot=class{constructor(){o(this,\"_pointContainer\"),o(this,\"_pointArray\",[]),o(this,\"_i32idx\",{}),this._pointContainer=new nt,this._pointContainer.setHeight(1),this._pointArray=this._pointContainer.getPointArray()}add(t){this._pointArray.push(t),this._pointContainer.setWidth(this._pointArray.length)}has(t){for(let e=this._pointArray.length-1;e>=0;e--)if(t.uint32===this._pointArray[e].uint32)return!0;return!1}getNearestColor(t,e){return this._pointArray[0|this._getNearestIndex(t,e)]}getPointContainer(){return this._pointContainer}_nearestPointFromCache(t){return\"number\"==typeof this._i32idx[t]?this._i32idx[t]:-1}_getNearestIndex(t,e){let r=this._nearestPointFromCache(\"\"+e.uint32);if(r>=0)return r;let n=Number.MAX_VALUE;r=0;for(let i=0,o=this._pointArray.length;i<o;i++){const o=this._pointArray[i],a=t.calculateRaw(e.r,e.g,e.b,e.a,o.r,o.g,o.b,o.a);a<n&&(n=a,r=i)}return this._i32idx[e.uint32]=r,r}sort(){this._i32idx={},this._pointArray.sort(((t,e)=>{const r=x(t.r,t.g,t.b),n=x(e.r,e.g,e.b),i=t.r===t.g&&t.g===t.b?0:1+it(r.h,10),o=(e.r===e.g&&e.g===e.b?0:1+it(n.h,10))-i;if(o)return-o;const a=t.getLuminosity(!0),s=e.getLuminosity(!0);if(s-a!=0)return s-a;const u=(100*n.s|0)-(100*r.s|0);return u?-u:0}))}},at={};i(at,{HueStatistics:()=>ut,Palette:()=>ot,Point:()=>rt,PointContainer:()=>nt,ProgressTracker:()=>ft,arithmetic:()=>d});var st=class{constructor(){o(this,\"num\",0),o(this,\"cols\",[])}},ut=class{constructor(t,e){o(this,\"_numGroups\"),o(this,\"_minCols\"),o(this,\"_stats\"),o(this,\"_groupsFull\"),this._numGroups=t,this._minCols=e,this._stats=[];for(let e=0;e<=t;e++)this._stats[e]=new st;this._groupsFull=0}check(t){this._groupsFull===this._numGroups+1&&(this.check=()=>{});const e=255&t,r=t>>>8&255,n=t>>>16&255,i=e===r&&r===n?0:1+it(x(e,r,n).h,this._numGroups),o=this._stats[i],a=this._minCols;o.num++,o.num>a||(o.num===a&&this._groupsFull++,o.num<=a&&this._stats[i].cols.push(t))}injectIntoDictionary(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{t[e]?t[e]++:t[e]=1}))}injectIntoArray(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{-1===t.indexOf(e)&&t.push(e)}))}},ct=class{constructor(t,e){o(this,\"progress\"),o(this,\"_step\"),o(this,\"_range\"),o(this,\"_last\"),o(this,\"_progressRange\"),this._range=t,this._progressRange=e,this._step=Math.max(1,this._range/(ct.steps+1)|0),this._last=-this._step,this.progress=0}shouldNotify(t){return t-this._last>=this._step&&(this._last=t,this.progress=Math.min(this._progressRange*this._last/this._range,this._progressRange),!0)}},ft=ct;o(ft,\"steps\",100);var lt=class{constructor(t){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return rt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=0|t,this.g-=0|e,this.b-=0|r,this.a-=0|n}},ht=class extends et{constructor(t,e=256){super(),o(this,\"_pointArray\"),o(this,\"_networkSize\"),o(this,\"_network\"),o(this,\"_sampleFactor\"),o(this,\"_radPower\"),o(this,\"_freq\"),o(this,\"_bias\"),o(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new lt((t<<11)/this._networkSize|0),this._freq[t]=ht._initialBias/this._networkSize|0,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<ht._minpicturebytes&&(t=1);const r=30+(t-1)/3|0,n=e/t|0;let i,o=n/ht._nCycles|0,a=ht._initAlpha,s=(this._networkSize>>3)*ht._radiusBias,u=s>>ht._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*ht._radBias/(u*u))>>>0;i=e<ht._minpicturebytes?1:e%ht._prime1!=0?ht._prime1:e%ht._prime2!=0?ht._prime2:e%ht._prime3!=0?ht._prime3:ht._prime4;const c=new ft(n,99);for(let t=0,f=0;t<n;){c.shouldNotify(t)&&(yield{progress:c.progress});const n=this._pointArray[f],l=n.b<<3,h=n.g<<3,p=n.r<<3,d=n.a<<3,m=this._contest(l,h,p,d);if(this._alterSingle(a,m,l,h,p,d),0!==u&&this._alterNeighbour(u,m,l,h,p,d),f+=i,f>=e&&(f-=e),t++,0===o&&(o=1),t%o==0){a-=a/r|0,s-=s/ht._radiusDecrease|0,u=s>>ht._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*ht._radBias/(u*u))>>>0}}}_buildPalette(){const t=new ot;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,o){let a=e-t;a<-1&&(a=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,c=e-1,f=1;for(;u<s||c>a;){const t=this._radPower[f++]/ht._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}if(c>a){const e=this._network[c--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}}}_alterSingle(t,e,r,n,i,o){t/=ht._initAlpha;const a=this._network[e];a.subtract(t*(a.r-i),t*(a.g-n),t*(a.b-r),t*(a.a-o))}_contest(t,e,r,n){let i=~(1<<31),o=i,a=-1,s=a;for(let u=0;u<this._networkSize;u++){const c=this._network[u],f=8160*this._distance.calculateNormalized(c,{r,g:e,b:t,a:n})|0;f<i&&(i=f,a=u);const l=f-(this._bias[u]>>ht._initialBiasShift-3);l<o&&(o=l,s=u);const h=this._freq[u]>>ht._betaShift;this._freq[u]-=h,this._bias[u]+=h<<ht._gammaShift}return this._freq[a]+=ht._beta,this._bias[a]-=ht._betaGamma,s}},pt=ht;o(pt,\"_prime1\",499),o(pt,\"_prime2\",491),o(pt,\"_prime3\",487),o(pt,\"_prime4\",503),o(pt,\"_minpicturebytes\",ht._prime4),o(pt,\"_nCycles\",100),o(pt,\"_initialBiasShift\",16),o(pt,\"_initialBias\",1<<ht._initialBiasShift),o(pt,\"_gammaShift\",10),o(pt,\"_betaShift\",10),o(pt,\"_beta\",ht._initialBias>>ht._betaShift),o(pt,\"_betaGamma\",ht._initialBias<<ht._gammaShift-ht._betaShift),o(pt,\"_radiusBiasShift\",6),o(pt,\"_radiusBias\",1<<ht._radiusBiasShift),o(pt,\"_radiusDecrease\",30),o(pt,\"_alphaBiasShift\",10),o(pt,\"_initAlpha\",1<<ht._alphaBiasShift),o(pt,\"_radBiasShift\",8),o(pt,\"_radBias\",1<<ht._radBiasShift),o(pt,\"_alphaRadBiasShift\",ht._alphaBiasShift+ht._radBiasShift),o(pt,\"_alphaRadBias\",1<<ht._alphaRadBiasShift);var dt=class{constructor(t){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return rt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=t,this.g-=e,this.b-=r,this.a-=n}},mt=class extends et{constructor(t,e=256){super(),o(this,\"_pointArray\"),o(this,\"_networkSize\"),o(this,\"_network\"),o(this,\"_sampleFactor\"),o(this,\"_radPower\"),o(this,\"_freq\"),o(this,\"_bias\"),o(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new dt((t<<11)/this._networkSize),this._freq[t]=mt._initialBias/this._networkSize,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<mt._minpicturebytes&&(t=1);const r=30+(t-1)/3,n=e/t;let i,o=n/mt._nCycles|0,a=mt._initAlpha,s=(this._networkSize>>3)*mt._radiusBias,u=s>>mt._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*mt._radBias/(u*u));i=e<mt._minpicturebytes?1:e%mt._prime1!=0?mt._prime1:e%mt._prime2!=0?mt._prime2:e%mt._prime3!=0?mt._prime3:mt._prime4;const c=new ft(n,99);for(let t=0,f=0;t<n;){c.shouldNotify(t)&&(yield{progress:c.progress});const n=this._pointArray[f],l=n.b<<3,h=n.g<<3,p=n.r<<3,d=n.a<<3,m=this._contest(l,h,p,d);if(this._alterSingle(a,m,l,h,p,d),0!==u&&this._alterNeighbour(u,m,l,h,p,d),f+=i,f>=e&&(f-=e),t++,0===o&&(o=1),t%o==0){a-=a/r,s-=s/mt._radiusDecrease,u=s>>mt._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*mt._radBias/(u*u))}}}_buildPalette(){const t=new ot;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,o){let a=e-t;a<-1&&(a=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,c=e-1,f=1;for(;u<s||c>a;){const t=this._radPower[f++]/mt._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}if(c>a){const e=this._network[c--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}}}_alterSingle(t,e,r,n,i,o){t/=mt._initAlpha;const a=this._network[e];a.subtract(t*(a.r-i),t*(a.g-n),t*(a.b-r),t*(a.a-o))}_contest(t,e,r,n){let i=~(1<<31),o=i,a=-1,s=a;for(let u=0;u<this._networkSize;u++){const c=this._network[u],f=8160*this._distance.calculateNormalized(c,{r,g:e,b:t,a:n});f<i&&(i=f,a=u);const l=f-(this._bias[u]>>mt._initialBiasShift-3);l<o&&(o=l,s=u);const h=this._freq[u]>>mt._betaShift;this._freq[u]-=h,this._bias[u]+=h<<mt._gammaShift}return this._freq[a]+=mt._beta,this._bias[a]-=mt._betaGamma,s}},yt=mt;o(yt,\"_prime1\",499),o(yt,\"_prime2\",491),o(yt,\"_prime3\",487),o(yt,\"_prime4\",503),o(yt,\"_minpicturebytes\",mt._prime4),o(yt,\"_nCycles\",100),o(yt,\"_initialBiasShift\",16),o(yt,\"_initialBias\",1<<mt._initialBiasShift),o(yt,\"_gammaShift\",10),o(yt,\"_betaShift\",10),o(yt,\"_beta\",mt._initialBias>>mt._betaShift),o(yt,\"_betaGamma\",mt._initialBias<<mt._gammaShift-mt._betaShift),o(yt,\"_radiusBiasShift\",6),o(yt,\"_radiusBias\",1<<mt._radiusBiasShift),o(yt,\"_radiusDecrease\",30),o(yt,\"_alphaBiasShift\",10),o(yt,\"_initAlpha\",1<<mt._alphaBiasShift),o(yt,\"_radBiasShift\",8),o(yt,\"_radBias\",1<<mt._radBiasShift),o(yt,\"_alphaRadBiasShift\",mt._alphaBiasShift+mt._radBiasShift),o(yt,\"_alphaRadBias\",1<<mt._alphaRadBiasShift);var vt=class{constructor(t,e){o(this,\"_method\"),o(this,\"_hueStats\"),o(this,\"_histogram\"),o(this,\"_initColors\"),o(this,\"_minHueCols\"),this._method=t,this._minHueCols=e<<2,this._initColors=e<<2,this._hueStats=new ut(vt._hueGroups,this._minHueCols),this._histogram=Object.create(null)}sample(t){switch(this._method){case 1:this._colorStats1D(t);break;case 2:this._colorStats2D(t)}}getImportanceSortedColorsIDXI32(){const t=_(Object.keys(this._histogram),((t,e)=>this._histogram[e]-this._histogram[t]));if(0===t.length)return[];let e;switch(this._method){case 1:const r=Math.min(t.length,this._initColors),n=t[r-1],i=this._histogram[n];e=t.slice(0,r);let o=r;const a=t.length;for(;o<a&&this._histogram[t[o]]===i;)e.push(t[o++]);this._hueStats.injectIntoArray(e);break;case 2:e=t;break;default:throw new Error(\"Incorrect method\")}return e.map((t=>+t))}_colorStats1D(t){const e=this._histogram,r=t.getPointArray(),n=r.length;for(let t=0;t<n;t++){const n=r[t].uint32;this._hueStats.check(n),n in e?e[n]++:e[n]=1}}_colorStats2D(t){const e=t.getWidth(),r=t.getHeight(),n=t.getPointArray(),i=vt._boxSize[0],o=vt._boxSize[1],a=i*o,s=this._makeBoxes(e,r,i,o),u=this._histogram;s.forEach((t=>{let r=Math.round(t.w*t.h/a)*vt._boxPixels;r<2&&(r=2);const i={};this._iterateBox(t,e,(t=>{const e=n[t].uint32;this._hueStats.check(e),e in u?u[e]++:e in i?++i[e]>=r&&(u[e]=i[e]):i[e]=1}))})),this._hueStats.injectIntoDictionary(u)}_iterateBox(t,e,r){const n=t,i=n.y*e+n.x,o=(n.y+n.h-1)*e+(n.x+n.w-1),a=e-n.w+1;let s=0,u=i;do{r.call(this,u),u+=++s%n.w==0?a:1}while(u<=o)}_makeBoxes(t,e,r,n){const i=t%r,o=e%n,a=t-i,s=e-o,u=[];for(let c=0;c<e;c+=n)for(let e=0;e<t;e+=r)u.push({x:e,y:c,w:e===a?i:r,h:c===s?o:n});return u}},gt=vt;o(gt,\"_boxSize\",[64,64]),o(gt,\"_boxPixels\",2),o(gt,\"_hueGroups\",10);var bt=class{constructor(t,e,r){o(this,\"index\"),o(this,\"color\"),o(this,\"distance\"),this.index=t,this.color=e,this.distance=r}},wt=class extends et{constructor(t,e=256,r=2){super(),o(this,\"_colors\"),o(this,\"_initialDistance\"),o(this,\"_distanceIncrement\"),o(this,\"_histogram\"),o(this,\"_distance\"),this._distance=t,this._colors=e,this._histogram=new gt(r,e),this._initialDistance=.01,this._distanceIncrement=.005}sample(t){this._histogram.sample(t)}*quantize(){const t=this._histogram.getImportanceSortedColorsIDXI32();if(0===t.length)throw new Error(\"No colors in image\");yield*this._buildPalette(t)}*_buildPalette(t){const e=new ot,r=e.getPointContainer().getPointArray(),n=new Array(t.length);for(let e=0;e<t.length;e++)r.push(rt.createByUint32(t[e])),n[e]=1;const i=r.length,o=[];let a=i,s=this._initialDistance;const u=new ft(a-this._colors,99);for(;a>this._colors;){o.length=0;for(let t=0;t<i;t++){if(u.shouldNotify(i-a)&&(yield{progress:u.progress}),0===n[t])continue;const e=r[t];for(let u=t+1;u<i;u++){if(0===n[u])continue;const t=r[u],i=this._distance.calculateNormalized(e,t);i<s&&(o.push(new bt(u,t,i)),n[u]=0,a--)}}s+=a>3*this._colors?this._initialDistance:this._distanceIncrement}if(a<this._colors){_(o,((t,e)=>e.distance-t.distance));let t=0;for(;a<this._colors&&t<o.length;){n[o[t].index]=1,a++,t++}}let c=r.length;for(let t=c-1;t>=0;t--)0===n[t]&&(t!==c-1&&(r[t]=r[c-1]),--c);r.length=c,e.sort(),yield{palette:e,progress:100}}};function _t(t){const e=[];for(let r=0;r<t;r++)e[r]=0;return e}function xt(t,e,r,n){const i=new Array(t);for(let o=0;o<t;o++){i[o]=new Array(e);for(let t=0;t<e;t++){i[o][t]=new Array(r);for(let e=0;e<r;e++){i[o][t][e]=new Array(n);for(let r=0;r<n;r++)i[o][t][e][r]=0}}}return i}function Et(t,e,r){const n=new Array(t);for(let i=0;i<t;i++){n[i]=new Array(e);for(let t=0;t<e;t++){n[i][t]=new Array(r);for(let e=0;e<r;e++)n[i][t][e]=0}}return n}function kt(t,e,r,n,i){for(let o=0;o<e;o++){t[o]=[];for(let e=0;e<r;e++){t[o][e]=[];for(let r=0;r<n;r++)t[o][e][r]=i}}}function Dt(t,e,r){for(let n=0;n<e;n++)t[n]=r}var St=class{constructor(){o(this,\"redMinimum\"),o(this,\"redMaximum\"),o(this,\"greenMinimum\"),o(this,\"greenMaximum\"),o(this,\"blueMinimum\"),o(this,\"blueMaximum\"),o(this,\"volume\"),o(this,\"alphaMinimum\"),o(this,\"alphaMaximum\")}},At=class extends et{constructor(t,e=256,r=5){super(),o(this,\"_reds\"),o(this,\"_greens\"),o(this,\"_blues\"),o(this,\"_alphas\"),o(this,\"_sums\"),o(this,\"_weights\"),o(this,\"_momentsRed\"),o(this,\"_momentsGreen\"),o(this,\"_momentsBlue\"),o(this,\"_momentsAlpha\"),o(this,\"_moments\"),o(this,\"_table\"),o(this,\"_pixels\"),o(this,\"_cubes\"),o(this,\"_colors\"),o(this,\"_significantBitsPerChannel\"),o(this,\"_maxSideIndex\"),o(this,\"_alphaMaxSideIndex\"),o(this,\"_sideSize\"),o(this,\"_alphaSideSize\"),o(this,\"_distance\"),this._distance=t,this._setQuality(r),this._initialize(e)}sample(t){const e=t.getPointArray();for(let t=0,r=e.length;t<r;t++)this._addColor(e[t]);this._pixels=this._pixels.concat(e)}*quantize(){yield*this._preparePalette();const t=new ot;for(let e=0;e<this._colors;e++)if(this._sums[e]>0){const r=this._sums[e],n=this._reds[e]/r,i=this._greens[e]/r,o=this._blues[e]/r,a=this._alphas[e]/r,s=rt.createByRGBA(0|n,0|i,0|o,0|a);t.add(s)}t.sort(),yield{palette:t,progress:100}}*_preparePalette(){yield*this._calculateMoments();let t=0;const e=_t(this._colors);for(let r=1;r<this._colors;++r){this._cut(this._cubes[t],this._cubes[r])?(e[t]=this._cubes[t].volume>1?this._calculateVariance(this._cubes[t]):0,e[r]=this._cubes[r].volume>1?this._calculateVariance(this._cubes[r]):0):(e[t]=0,r--),t=0;let n=e[0];for(let i=1;i<=r;++i)e[i]>n&&(n=e[i],t=i);if(n<=0){this._colors=r+1;break}}const r=[],n=[],i=[],o=[];for(let t=0;t<this._colors;++t){const e=At._volume(this._cubes[t],this._weights);e>0?(r[t]=At._volume(this._cubes[t],this._momentsRed)/e|0,n[t]=At._volume(this._cubes[t],this._momentsGreen)/e|0,i[t]=At._volume(this._cubes[t],this._momentsBlue)/e|0,o[t]=At._volume(this._cubes[t],this._momentsAlpha)/e|0):(r[t]=0,n[t]=0,i[t]=0,o[t]=0)}this._reds=_t(this._colors+1),this._greens=_t(this._colors+1),this._blues=_t(this._colors+1),this._alphas=_t(this._colors+1),this._sums=_t(this._colors+1);for(let t=0,e=this._pixels.length;t<e;t++){const e=this._pixels[t];let a=-1,s=Number.MAX_VALUE;for(let t=0;t<this._colors;t++){const u=r[t],c=n[t],f=i[t],l=o[t],h=this._distance.calculateRaw(u,c,f,l,e.r,e.g,e.b,e.a);h<s&&(s=h,a=t)}this._reds[a]+=e.r,this._greens[a]+=e.g,this._blues[a]+=e.b,this._alphas[a]+=e.a,this._sums[a]++}}_addColor(t){const e=8-this._significantBitsPerChannel,r=1+(t.r>>e),n=1+(t.g>>e),i=1+(t.b>>e),o=1+(t.a>>e);this._weights[o][r][n][i]++,this._momentsRed[o][r][n][i]+=t.r,this._momentsGreen[o][r][n][i]+=t.g,this._momentsBlue[o][r][n][i]+=t.b,this._momentsAlpha[o][r][n][i]+=t.a,this._moments[o][r][n][i]+=this._table[t.r]+this._table[t.g]+this._table[t.b]+this._table[t.a]}*_calculateMoments(){const t=[],e=[],r=[],n=[],i=[],o=[],a=Et(this._sideSize,this._sideSize,this._sideSize),s=Et(this._sideSize,this._sideSize,this._sideSize),u=Et(this._sideSize,this._sideSize,this._sideSize),c=Et(this._sideSize,this._sideSize,this._sideSize),f=Et(this._sideSize,this._sideSize,this._sideSize),l=Et(this._sideSize,this._sideSize,this._sideSize);let h=0;const p=new ft(this._alphaMaxSideIndex*this._maxSideIndex,99);for(let d=1;d<=this._alphaMaxSideIndex;++d){kt(a,this._sideSize,this._sideSize,this._sideSize,0),kt(s,this._sideSize,this._sideSize,this._sideSize,0),kt(u,this._sideSize,this._sideSize,this._sideSize,0),kt(c,this._sideSize,this._sideSize,this._sideSize,0),kt(f,this._sideSize,this._sideSize,this._sideSize,0),kt(l,this._sideSize,this._sideSize,this._sideSize,0);for(let m=1;m<=this._maxSideIndex;++m,++h){p.shouldNotify(h)&&(yield{progress:p.progress}),Dt(t,this._sideSize,0),Dt(e,this._sideSize,0),Dt(r,this._sideSize,0),Dt(n,this._sideSize,0),Dt(i,this._sideSize,0),Dt(o,this._sideSize,0);for(let h=1;h<=this._maxSideIndex;++h){let p=0,y=0,v=0,g=0,b=0,w=0;for(let _=1;_<=this._maxSideIndex;++_)p+=this._weights[d][m][h][_],y+=this._momentsRed[d][m][h][_],v+=this._momentsGreen[d][m][h][_],g+=this._momentsBlue[d][m][h][_],b+=this._momentsAlpha[d][m][h][_],w+=this._moments[d][m][h][_],t[_]+=p,e[_]+=y,r[_]+=v,n[_]+=g,i[_]+=b,o[_]+=w,a[m][h][_]=a[m-1][h][_]+t[_],s[m][h][_]=s[m-1][h][_]+e[_],u[m][h][_]=u[m-1][h][_]+r[_],c[m][h][_]=c[m-1][h][_]+n[_],f[m][h][_]=f[m-1][h][_]+i[_],l[m][h][_]=l[m-1][h][_]+o[_],this._weights[d][m][h][_]=this._weights[d-1][m][h][_]+a[m][h][_],this._momentsRed[d][m][h][_]=this._momentsRed[d-1][m][h][_]+s[m][h][_],this._momentsGreen[d][m][h][_]=this._momentsGreen[d-1][m][h][_]+u[m][h][_],this._momentsBlue[d][m][h][_]=this._momentsBlue[d-1][m][h][_]+c[m][h][_],this._momentsAlpha[d][m][h][_]=this._momentsAlpha[d-1][m][h][_]+f[m][h][_],this._moments[d][m][h][_]=this._moments[d-1][m][h][_]+l[m][h][_]}}}}static _volumeFloat(t,e){return e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMaximum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum])}static _volume(t,e){return 0|At._volumeFloat(t,e)}static _top(t,e,r,n){let i;switch(e){case At._alpha:i=n[r][t.redMaximum][t.greenMaximum][t.blueMaximum]-n[r][t.redMaximum][t.greenMinimum][t.blueMaximum]-n[r][t.redMinimum][t.greenMaximum][t.blueMaximum]+n[r][t.redMinimum][t.greenMinimum][t.blueMaximum]-(n[r][t.redMaximum][t.greenMaximum][t.blueMinimum]-n[r][t.redMaximum][t.greenMinimum][t.blueMinimum]-n[r][t.redMinimum][t.greenMaximum][t.blueMinimum]+n[r][t.redMinimum][t.greenMinimum][t.blueMinimum]);break;case At._red:i=n[t.alphaMaximum][r][t.greenMaximum][t.blueMaximum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMaximum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMaximum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMaximum]-(n[t.alphaMaximum][r][t.greenMaximum][t.blueMinimum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMinimum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMinimum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMinimum]);break;case At._green:i=n[t.alphaMaximum][t.redMaximum][r][t.blueMaximum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMaximum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMaximum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMaximum]-(n[t.alphaMaximum][t.redMaximum][r][t.blueMinimum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMinimum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMinimum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMinimum]);break;case At._blue:i=n[t.alphaMaximum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMaximum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMaximum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMaximum][t.redMinimum][t.greenMinimum][r]-(n[t.alphaMinimum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMinimum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMinimum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMinimum][t.redMinimum][t.greenMinimum][r]);break;default:throw new Error(\"impossible\")}return 0|i}static _bottom(t,e,r){switch(e){case At._alpha:return-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case At._red:return-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case At._green:return-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case At._blue:return-r[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);default:return 0}}_calculateVariance(t){const e=At._volume(t,this._momentsRed),r=At._volume(t,this._momentsGreen),n=At._volume(t,this._momentsBlue),i=At._volume(t,this._momentsAlpha);return At._volumeFloat(t,this._moments)-(e*e+r*r+n*n+i*i)/At._volume(t,this._weights)}_maximize(t,e,r,n,i,o,a,s,u){const c=0|At._bottom(t,e,this._momentsRed),f=0|At._bottom(t,e,this._momentsGreen),l=0|At._bottom(t,e,this._momentsBlue),h=0|At._bottom(t,e,this._momentsAlpha),p=0|At._bottom(t,e,this._weights);let d=0,m=-1;for(let y=r;y<n;++y){let r=c+At._top(t,e,y,this._momentsRed),n=f+At._top(t,e,y,this._momentsGreen),v=l+At._top(t,e,y,this._momentsBlue),g=h+At._top(t,e,y,this._momentsAlpha),b=p+At._top(t,e,y,this._weights);if(0!==b){let t=r*r+n*n+v*v+g*g,e=t/b;r=i-r,n=o-n,v=a-v,g=s-g,b=u-b,0!==b&&(t=r*r+n*n+v*v+g*g,e+=t/b,e>d&&(d=e,m=y))}}return{max:d,position:m}}_cut(t,e){let r;const n=At._volume(t,this._momentsRed),i=At._volume(t,this._momentsGreen),o=At._volume(t,this._momentsBlue),a=At._volume(t,this._momentsAlpha),s=At._volume(t,this._weights),u=this._maximize(t,At._red,t.redMinimum+1,t.redMaximum,n,i,o,a,s),c=this._maximize(t,At._green,t.greenMinimum+1,t.greenMaximum,n,i,o,a,s),f=this._maximize(t,At._blue,t.blueMinimum+1,t.blueMaximum,n,i,o,a,s),l=this._maximize(t,At._alpha,t.alphaMinimum+1,t.alphaMaximum,n,i,o,a,s);if(l.max>=u.max&&l.max>=c.max&&l.max>=f.max){if(r=At._alpha,l.position<0)return!1}else r=u.max>=l.max&&u.max>=c.max&&u.max>=f.max?At._red:c.max>=l.max&&c.max>=u.max&&c.max>=f.max?At._green:At._blue;switch(e.redMaximum=t.redMaximum,e.greenMaximum=t.greenMaximum,e.blueMaximum=t.blueMaximum,e.alphaMaximum=t.alphaMaximum,r){case At._red:e.redMinimum=t.redMaximum=u.position,e.greenMinimum=t.greenMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case At._green:e.greenMinimum=t.greenMaximum=c.position,e.redMinimum=t.redMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case At._blue:e.blueMinimum=t.blueMaximum=f.position,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum,e.alphaMinimum=t.alphaMinimum;break;case At._alpha:e.alphaMinimum=t.alphaMaximum=l.position,e.blueMinimum=t.blueMinimum,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum}return t.volume=(t.redMaximum-t.redMinimum)*(t.greenMaximum-t.greenMinimum)*(t.blueMaximum-t.blueMinimum)*(t.alphaMaximum-t.alphaMinimum),e.volume=(e.redMaximum-e.redMinimum)*(e.greenMaximum-e.greenMinimum)*(e.blueMaximum-e.blueMinimum)*(e.alphaMaximum-e.alphaMinimum),!0}_initialize(t){this._colors=t,this._cubes=[];for(let e=0;e<t;e++)this._cubes[e]=new St;this._cubes[0].redMinimum=0,this._cubes[0].greenMinimum=0,this._cubes[0].blueMinimum=0,this._cubes[0].alphaMinimum=0,this._cubes[0].redMaximum=this._maxSideIndex,this._cubes[0].greenMaximum=this._maxSideIndex,this._cubes[0].blueMaximum=this._maxSideIndex,this._cubes[0].alphaMaximum=this._alphaMaxSideIndex,this._weights=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsRed=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsGreen=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsBlue=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsAlpha=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._moments=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._table=[];for(let t=0;t<256;++t)this._table[t]=t*t;this._pixels=[]}_setQuality(t=5){this._significantBitsPerChannel=t,this._maxSideIndex=1<<this._significantBitsPerChannel,this._alphaMaxSideIndex=this._maxSideIndex,this._sideSize=this._maxSideIndex+1,this._alphaSideSize=this._alphaMaxSideIndex+1}},Mt=At;o(Mt,\"_alpha\",3),o(Mt,\"_red\",2),o(Mt,\"_green\",1),o(Mt,\"_blue\",0);var Ot={};i(Ot,{AbstractImageQuantizer:()=>Ct,ErrorDiffusionArray:()=>Bt,ErrorDiffusionArrayKernel:()=>It,ErrorDiffusionRiemersma:()=>jt,NearestColor:()=>Ft});var Ct=class{quantizeSync(t,e){for(const r of this.quantize(t,e))if(r.pointContainer)return r.pointContainer;throw new Error(\"unreachable\")}},Ft=class extends Ct{constructor(t){super(),o(this,\"_distance\"),this._distance=t}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),o=new ft(i,99);for(let t=0;t<i;t++){o.shouldNotify(t)&&(yield{progress:o.progress});for(let i=0,o=t*n;i<n;i++,o++){const t=r[o];t.from(e.getNearestColor(this._distance,t))}}yield{pointContainer:t,progress:100}}},It=(t=>(t[t.FloydSteinberg=0]=\"FloydSteinberg\",t[t.FalseFloydSteinberg=1]=\"FalseFloydSteinberg\",t[t.Stucki=2]=\"Stucki\",t[t.Atkinson=3]=\"Atkinson\",t[t.Jarvis=4]=\"Jarvis\",t[t.Burkes=5]=\"Burkes\",t[t.Sierra=6]=\"Sierra\",t[t.TwoSierra=7]=\"TwoSierra\",t[t.SierraLite=8]=\"SierraLite\",t))(It||{}),Bt=class extends Ct{constructor(t,e,r=!0,n=0,i=!1){super(),o(this,\"_minColorDistance\"),o(this,\"_serpentine\"),o(this,\"_kernel\"),o(this,\"_calculateErrorLikeGIMP\"),o(this,\"_distance\"),this._setKernel(e),this._distance=t,this._minColorDistance=n,this._serpentine=r,this._calculateErrorLikeGIMP=i}*quantize(t,e){const r=t.getPointArray(),n=new rt,i=t.getWidth(),o=t.getHeight(),a=[];let s=1,u=1;for(const t of this._kernel){const e=t[2]+1;u<e&&(u=e)}for(let t=0;t<u;t++)this._fillErrorLine(a[t]=[],i);const c=new ft(o,99);for(let t=0;t<o;t++){c.shouldNotify(t)&&(yield{progress:c.progress}),this._serpentine&&(s*=-1);const u=t*i,f=1===s?0:i-1,l=1===s?i:-1;this._fillErrorLine(a[0],i),a.push(a.shift());const h=a[0];for(let c=f,p=u+f;c!==l;c+=s,p+=s){const u=r[p],f=h[c];n.from(u);const l=rt.createByRGBA(b(u.r+f[0]),b(u.g+f[1]),b(u.b+f[2]),b(u.a+f[3])),d=e.getNearestColor(this._distance,l);if(u.from(d),this._minColorDistance){if(this._distance.calculateNormalized(n,d)<this._minColorDistance)continue}let m,y,v,g;this._calculateErrorLikeGIMP?(m=l.r-d.r,y=l.g-d.g,v=l.b-d.b,g=l.a-d.a):(m=n.r-d.r,y=n.g-d.g,v=n.b-d.b,g=n.a-d.a);const w=1===s?0:this._kernel.length-1,_=1===s?this._kernel.length:-1;for(let e=w;e!==_;e+=s){const r=this._kernel[e][1]*s,n=this._kernel[e][2];if(r+c>=0&&r+c<i&&n+t>=0&&n+t<o){const t=this._kernel[e][0],i=a[n][r+c];i[0]+=m*t,i[1]+=y*t,i[2]+=v*t,i[3]+=g*t}}}}yield{pointContainer:t,progress:100}}_fillErrorLine(t,e){t.length>e&&(t.length=e);const r=t.length;for(let e=0;e<r;e++){const r=t[e];r[0]=r[1]=r[2]=r[3]=0}for(let n=r;n<e;n++)t[n]=[0,0,0,0]}_setKernel(t){switch(t){case 0:this._kernel=[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]];break;case 1:this._kernel=[[3/8,1,0],[3/8,0,1],[2/8,1,1]];break;case 2:this._kernel=[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]];break;case 3:this._kernel=[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]];break;case 4:this._kernel=[[7/48,1,0],[5/48,2,0],[3/48,-2,1],[5/48,-1,1],[7/48,0,1],[5/48,1,1],[3/48,2,1],[1/48,-2,2],[3/48,-1,2],[5/48,0,2],[3/48,1,2],[1/48,2,2]];break;case 5:this._kernel=[[.25,1,0],[4/32,2,0],[2/32,-2,1],[4/32,-1,1],[.25,0,1],[4/32,1,1],[2/32,2,1]];break;case 6:this._kernel=[[5/32,1,0],[3/32,2,0],[2/32,-2,1],[4/32,-1,1],[5/32,0,1],[4/32,1,1],[2/32,2,1],[2/32,-1,2],[3/32,0,2],[2/32,1,2]];break;case 7:this._kernel=[[.25,1,0],[3/16,2,0],[1/16,-2,1],[2/16,-1,1],[3/16,0,1],[2/16,1,1],[1/16,2,1]];break;case 8:this._kernel=[[.5,1,0],[1/4,-1,1],[1/4,0,1]];break;default:throw new Error(`ErrorDiffusionArray: unknown kernel = ${t}`)}}};function*Tt(t,e,r){const n=Math.max(t,e),i={width:t,height:e,level:Math.floor(Math.log(n)/Math.log(2)+1),callback:r,tracker:new ft(t*e,99),index:0,x:0,y:0};yield*Lt(i,1),Pt(i,0)}function*Lt(t,e){if(!(t.level<1)){switch(t.tracker.shouldNotify(t.index)&&(yield{progress:t.tracker.progress}),t.level--,e){case 2:yield*Lt(t,1),Pt(t,3),yield*Lt(t,2),Pt(t,4),yield*Lt(t,2),Pt(t,2),yield*Lt(t,4);break;case 3:yield*Lt(t,4),Pt(t,2),yield*Lt(t,3),Pt(t,1),yield*Lt(t,3),Pt(t,3),yield*Lt(t,1);break;case 1:yield*Lt(t,2),Pt(t,4),yield*Lt(t,1),Pt(t,3),yield*Lt(t,1),Pt(t,1),yield*Lt(t,3);break;case 4:yield*Lt(t,3),Pt(t,1),yield*Lt(t,4),Pt(t,2),yield*Lt(t,4),Pt(t,4),yield*Lt(t,2)}t.level++}}function Pt(t,e){switch(t.x>=0&&t.x<t.width&&t.y>=0&&t.y<t.height&&(t.callback(t.x,t.y),t.index++),e){case 2:t.x--;break;case 3:t.x++;break;case 1:t.y--;break;case 4:t.y++}}var jt=class extends Ct{constructor(t,e=16,r=1){super(),o(this,\"_distance\"),o(this,\"_weights\"),o(this,\"_errorQueueSize\"),this._distance=t,this._errorQueueSize=e,this._weights=jt._createWeights(r,e)}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),o=[];let a=0;for(let t=0;t<this._errorQueueSize;t++)o[t]={r:0,g:0,b:0,a:0};yield*Tt(n,i,((t,i)=>{const s=r[t+i*n];let{r:u,g:c,b:f,a:l}=s;for(let t=0;t<this._errorQueueSize;t++){const e=this._weights[t],r=o[(t+a)%this._errorQueueSize];u+=r.r*e,c+=r.g*e,f+=r.b*e,l+=r.a*e}const h=rt.createByRGBA(b(u),b(c),b(f),b(l)),p=e.getNearestColor(this._distance,h);a=(a+1)%this._errorQueueSize;const d=(a+this._errorQueueSize-1)%this._errorQueueSize;o[d].r=s.r-p.r,o[d].g=s.g-p.g,o[d].b=s.b-p.b,o[d].a=s.a-p.a,s.from(p)})),yield{pointContainer:t,progress:100}}static _createWeights(t,e){const r=[],n=Math.exp(Math.log(e)/(e-1));for(let i=0,o=1;i<e;i++)r[i]=(o+.5|0)/e*t,o*=n;return r}},Nt={};i(Nt,{ssim:()=>Ut});var Rt=.01,zt=.03;function Ut(t,e){if(t.getHeight()!==e.getHeight()||t.getWidth()!==e.getWidth())throw new Error(\"Images have different sizes!\");const r=(255*Rt)**2,n=(255*zt)**2;let i=0,o=0;return function(t,e,r){const n=8,i=t.getWidth(),o=t.getHeight();for(let a=0;a<o;a+=n)for(let s=0;s<i;s+=n){const u=Math.min(n,i-s),c=Math.min(n,o-a),f=Gt(t,s,a,u,c),l=Gt(e,s,a,u,c);r(f,l,Ht(f),Ht(l))}}(t,e,((t,e,a,s)=>{let u=0,c=0,f=0;for(let r=0;r<t.length;r++)c+=(t[r]-a)**2,f+=(e[r]-s)**2,u+=(t[r]-a)*(e[r]-s);const l=t.length-1;c/=l,f/=l,u/=l;o+=(2*a*s+r)*(2*u+n)/((a**2+s**2+r)*(c+f+n)),i++})),o/i}function Gt(t,e,r,n,i){const o=t.getPointArray(),a=[];let s=0;for(let u=r;u<r+i;u++){const r=u*t.getWidth();for(let t=e;t<e+n;t++){const e=o[r+t];a[s]=.2126*e.r+.7152*e.g+.0722*e.b,s++}}return a}function Ht(t){let e=0;for(const r of t)e+=r;return e/t.length}var Zt=\"function\"==typeof setImmediate?setImmediate:\"undefined\"!=typeof process&&\"function\"==typeof(null==process?void 0:process.nextTick)?t=>process.nextTick(t):t=>setTimeout(t,0);function qt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n}={}){const i=Kt(Vt(e),r,n);return t.forEach((t=>i.sample(t))),i.quantizeSync()}async function Wt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n,onProgress:i}={}){return new Promise(((o,a)=>{const s=Kt(Vt(e),r,n);let u;t.forEach((t=>s.sample(t)));const c=s.quantize(),f=()=>{try{const t=c.next();t.done?o(u):(t.value.palette&&(u=t.value.palette),i&&i(t.value.progress),Zt(f))}catch(t){a(t)}};Zt(f)}))}function Yt(t,e,{colorDistanceFormula:r,imageQuantization:n}={}){return Jt(Vt(r),n).quantizeSync(t,e)}async function Xt(t,e,{colorDistanceFormula:r,imageQuantization:n,onProgress:i}={}){return new Promise(((o,a)=>{let s;const u=Jt(Vt(r),n).quantize(t,e),c=()=>{try{const t=u.next();t.done?o(s):(t.value.pointContainer&&(s=t.value.pointContainer),i&&i(t.value.progress),Zt(c))}catch(t){a(t)}};Zt(c)}))}function Vt(t=\"euclidean-bt709\"){switch(t){case\"cie94-graphic-arts\":return new U;case\"cie94-textiles\":return new z;case\"ciede2000\":return new H;case\"color-metric\":return new Z;case\"euclidean\":return new W;case\"euclidean-bt709\":return new Y;case\"euclidean-bt709-noalpha\":return new X;case\"manhattan\":return new J;case\"manhattan-bt709\":return new Q;case\"manhattan-nommyde\":return new K;case\"pngquant\":return new $;default:throw new Error(`Unknown colorDistanceFormula ${t}`)}}function Jt(t,e=\"floyd-steinberg\"){switch(e){case\"nearest\":return new Ft(t);case\"riemersma\":return new jt(t);case\"floyd-steinberg\":return new Bt(t,0);case\"false-floyd-steinberg\":return new Bt(t,1);case\"stucki\":return new Bt(t,2);case\"atkinson\":return new Bt(t,3);case\"jarvis\":return new Bt(t,4);case\"burkes\":return new Bt(t,5);case\"sierra\":return new Bt(t,6);case\"two-sierra\":return new Bt(t,7);case\"sierra-lite\":return new Bt(t,8);default:throw new Error(`Unknown imageQuantization ${e}`)}}function Kt(t,e=\"wuquant\",r=256){switch(e){case\"neuquant\":return new pt(t,r);case\"rgbquant\":return new wt(t,r);case\"wuquant\":return new Mt(t,r);case\"neuquant-float\":return new yt(t,r);default:throw new Error(`Unknown paletteQuantization ${e}`)}}},function(t,e,r){\"use strict\";var n=r(208),i=r(209),o=r(210),a=r(98);function s(t,e,r){var n=t;return i(e)?(r=e,\"string\"==typeof t&&(n={uri:t})):n=a(e,{uri:t}),n.callback=r,n}function u(t,e,r){return c(e=s(t,e,r))}function c(t){if(void 0===t.callback)throw new Error(\"callback argument missing\");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=f.response?f.response:f.responseText||function(t){try{if(\"document\"===t.responseType)return t.responseXML;var e=t.responseXML&&\"parsererror\"===t.responseXML.documentElement.nodeName;if(\"\"===t.responseType&&!e)return t.responseXML}catch(t){}return null}(f),v)try{t=JSON.parse(t)}catch(t){}return t}function i(t){return clearTimeout(l),t instanceof Error||(t=new Error(\"\"+(t||\"Unknown XMLHttpRequest Error\"))),t.statusCode=0,r(t,g)}function a(){if(!c){var e;clearTimeout(l),e=t.useXDR&&void 0===f.status?200:1223===f.status?204:f.status;var i=g,a=null;return 0!==e?(i={body:n(),statusCode:e,method:p,headers:{},url:h,rawRequest:f},f.getAllResponseHeaders&&(i.headers=o(f.getAllResponseHeaders()))):a=new Error(\"Internal XMLHttpRequest Error\"),r(a,i,i.body)}}var s,c,f=t.xhr||null;f||(f=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var l,h=f.url=t.uri||t.url,p=f.method=t.method||\"GET\",d=t.body||t.data,m=f.headers=t.headers||{},y=!!t.sync,v=!1,g={body:void 0,headers:{},statusCode:0,method:p,url:h,rawRequest:f};if(\"json\"in t&&!1!==t.json&&(v=!0,m.accept||m.Accept||(m.Accept=\"application/json\"),\"GET\"!==p&&\"HEAD\"!==p&&(m[\"content-type\"]||m[\"Content-Type\"]||(m[\"Content-Type\"]=\"application/json\"),d=JSON.stringify(!0===t.json?d:t.json))),f.onreadystatechange=function(){4===f.readyState&&setTimeout(a,0)},f.onload=a,f.onerror=i,f.onprogress=function(){},f.onabort=function(){c=!0},f.ontimeout=i,f.open(p,h,!y,t.username,t.password),y||(f.withCredentials=!!t.withCredentials),!y&&t.timeout>0&&(l=setTimeout((function(){if(!c){c=!0,f.abort(\"timeout\");var t=new Error(\"XMLHttpRequest timeout\");t.code=\"ETIMEDOUT\",i(t)}}),t.timeout)),f.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&f.setRequestHeader(s,m[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error(\"Headers cannot be set on an XDomainRequest object\");return\"responseType\"in t&&(f.responseType=t.responseType),\"beforeSend\"in t&&\"function\"==typeof t.beforeSend&&t.beforeSend(f),f.send(d||null),f}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest=\"withCredentials\"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}([\"get\",\"put\",\"post\",\"patch\",\"head\",\"delete\"],(function(t){u[\"delete\"===t?\"del\":t]=function(e,r,n){return(r=s(e,r,n)).method=t.toUpperCase(),c(r)}}))},function(t,e,r){(function(e){var r;r=\"undefined\"!=typeof window?window:void 0!==e?e:\"undefined\"!=typeof self?self:{},t.exports=r}).call(this,r(10))},function(t,e){t.exports=function(t){if(!t)return!1;var e=r.call(t);return\"[object Function]\"===e||\"function\"==typeof t&&\"[object RegExp]\"!==e||\"undefined\"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var r=Object.prototype.toString},function(t,e){var r=function(t){return t.replace(/^\\s+|\\s+$/g,\"\")};t.exports=function(t){if(!t)return{};for(var e,n={},i=r(t).split(\"\\n\"),o=0;o<i.length;o++){var a=i[o],s=a.indexOf(\":\"),u=r(a.slice(0,s)).toLowerCase(),c=r(a.slice(s+1));void 0===n[u]?n[u]=c:(e=n[u],\"[object Array]\"===Object.prototype.toString.call(e)?n[u].push(c):n[u]=[n[u],c])}return n}},function(t,e){function r(t,e){if(!(t=t.replace(/\\t+/g,\" \").trim()))return null;var r=t.indexOf(\" \");if(-1===r)throw new Error(\"no named row at line \"+e);var i=t.substring(0,r);t=(t=(t=(t=t.substring(r+1)).replace(/letter=[\\'\\\"]\\S+[\\'\\\"]/gi,\"\")).split(\"=\")).map((function(t){return t.trim().match(/(\".*?\"|[^\"\\s]+)+(?=\\s*|\\s*$)/g)}));for(var o=[],a=0;a<t.length;a++){var s=t[a];0===a?o.push({key:s[0],data:\"\"}):a===t.length-1?o[o.length-1].data=n(s[0]):(o[o.length-1].data=n(s[0]),o.push({key:s[1],data:\"\"}))}var u={key:i,data:{}};return o.forEach((function(t){u.data[t.key]=t.data})),u}function n(t){return t&&0!==t.length?0===t.indexOf('\"')||0===t.indexOf(\"'\")?t.substring(1,t.length-1):-1!==t.indexOf(\",\")?function(t){return t.split(\",\").map((function(t){return parseInt(t,10)}))}(t):parseInt(t,10):\"\"}t.exports=function(t){if(!t)throw new Error(\"no data provided\");var e={pages:[],chars:[],kernings:[]},n=(t=t.toString().trim()).split(/\\r\\n?|\\n/g);if(0===n.length)throw new Error(\"no data in BMFont file\");for(var i=0;i<n.length;i++){var o=r(n[i],i);if(o)if(\"page\"===o.key){if(\"number\"!=typeof o.data.id)throw new Error(\"malformed file at line \"+i+\" -- needs page id=N\");if(\"string\"!=typeof o.data.file)throw new Error(\"malformed file at line \"+i+' -- needs page file=\"path\"');e.pages[o.data.id]=o.data.file}else\"chars\"===o.key||\"kernings\"===o.key||(\"char\"===o.key?e.chars.push(o.data):\"kerning\"===o.key?e.kernings.push(o.data):e[o.key]=o.data)}return e}},function(t,e,r){var n=r(213),i=r(214),o={scaleh:\"scaleH\",scalew:\"scaleW\",stretchh:\"stretchH\",lineheight:\"lineHeight\",alphachnl:\"alphaChnl\",redchnl:\"redChnl\",greenchnl:\"greenChnl\",bluechnl:\"blueChnl\"};function a(t){var e=function(t){for(var e=[],r=0;r<t.attributes.length;r++)e.push(t.attributes[r]);return e}(t);return e.reduce((function(t,e){var r;return t[(r=e.nodeName,o[r.toLowerCase()]||r)]=e.nodeValue,t}),{})}t.exports=function(t){t=t.toString();var e=i(t),r={pages:[],chars:[],kernings:[]};[\"info\",\"common\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];i&&(r[t]=n(a(i)))}));var o=e.getElementsByTagName(\"pages\")[0];if(!o)throw new Error(\"malformed file -- no <pages> element\");for(var s=o.getElementsByTagName(\"page\"),u=0;u<s.length;u++){var c=s[u],f=parseInt(c.getAttribute(\"id\"),10),l=c.getAttribute(\"file\");if(isNaN(f))throw new Error('malformed file -- page \"id\" attribute is NaN');if(!l)throw new Error('malformed file -- needs page \"file\" attribute');r.pages[parseInt(f,10)]=l}return[\"chars\",\"kernings\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];if(i)for(var o=t.substring(0,t.length-1),s=i.getElementsByTagName(o),u=0;u<s.length;u++){var c=s[u];r[t].push(n(a(c)))}})),r}},function(t,e){var r=\"chasrset\";t.exports=function(t){for(var e in t=Object.assign({},t),r in t&&(t.charset=t[r],delete t[r]),t)\"face\"!==e&&\"charset\"!==e&&(t[e]=\"padding\"===e||\"spacing\"===e?t[e].split(\",\").map((function(t){return parseInt(t,10)})):parseInt(t[e],10));return t}},function(t,e){t.exports=void 0!==self.DOMParser?function(t){return(new self.DOMParser).parseFromString(t,\"application/xml\")}:void 0!==self.ActiveXObject&&new self.ActiveXObject(\"Microsoft.XMLDOM\")?function(t){var e=new self.ActiveXObject(\"Microsoft.XMLDOM\");return e.async=\"false\",e.loadXML(t),e}:function(t){var e=document.createElement(\"div\");return e.innerHTML=t,e}},function(t,e){var r=[66,77,70];function n(t,e,r){if(r>e.length-1)return 0;var n=e.readUInt8(r++),o=e.readInt32LE(r);switch(r+=4,n){case 1:t.info=function(t,e){var r={};r.size=t.readInt16LE(e);var n=t.readUInt8(e+2);r.smooth=n>>7&1,r.unicode=n>>6&1,r.italic=n>>5&1,r.bold=n>>4&1,n>>3&1&&(r.fixedHeight=1);return r.charset=t.readUInt8(e+3)||\"\",r.stretchH=t.readUInt16LE(e+4),r.aa=t.readUInt8(e+6),r.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],r.spacing=[t.readInt8(e+11),t.readInt8(e+12)],r.outline=t.readUInt8(e+13),r.face=function(t,e){return i(t,e).toString(\"utf8\")}(t,e+14),r}(e,r);break;case 2:t.common=function(t,e){var r={};r.lineHeight=t.readUInt16LE(e),r.base=t.readUInt16LE(e+2),r.scaleW=t.readUInt16LE(e+4),r.scaleH=t.readUInt16LE(e+6),r.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return r.packed=0,r.alphaChnl=t.readUInt8(e+11),r.redChnl=t.readUInt8(e+12),r.greenChnl=t.readUInt8(e+13),r.blueChnl=t.readUInt8(e+14),r}(e,r);break;case 3:t.pages=function(t,e,r){for(var n=[],o=i(t,e),a=o.length+1,s=r/a,u=0;u<s;u++)n[u]=t.slice(e,e+o.length).toString(\"utf8\"),e+=a;return n}(e,r,o);break;case 4:t.chars=function(t,e,r){for(var n=[],i=r/20,o=0;o<i;o++){var a={},s=20*o;a.id=t.readUInt32LE(e+0+s),a.x=t.readUInt16LE(e+4+s),a.y=t.readUInt16LE(e+6+s),a.width=t.readUInt16LE(e+8+s),a.height=t.readUInt16LE(e+10+s),a.xoffset=t.readInt16LE(e+12+s),a.yoffset=t.readInt16LE(e+14+s),a.xadvance=t.readInt16LE(e+16+s),a.page=t.readUInt8(e+18+s),a.chnl=t.readUInt8(e+19+s),n[o]=a}return n}(e,r,o);break;case 5:t.kernings=function(t,e,r){for(var n=[],i=r/10,o=0;o<i;o++){var a={},s=10*o;a.first=t.readUInt32LE(e+0+s),a.second=t.readUInt32LE(e+4+s),a.amount=t.readInt16LE(e+8+s),n[o]=a}return n}(e,r,o)}return 5+o}function i(t,e){for(var r=e;r<t.length&&0!==t[r];r++);return t.slice(e,r)}t.exports=function(t){if(t.length<6)throw new Error(\"invalid buffer length for BMFont\");var e=r.every((function(e,r){return t.readUInt8(r)===e}));if(!e)throw new Error(\"BMFont missing BMF byte header\");var i=3;if(t.readUInt8(i++)>3)throw new Error(\"Only supports BMFont Binary v3 (BMFont App v1.10)\");for(var o={kernings:[],chars:[]},a=0;a<5;a++)i+=n(o,t,i);return o}},function(t,e,r){(function(e){var n=r(217),i=e.from([66,77,70,3]);t.exports=function(t){return\"string\"==typeof t?\"BMF\"===t.substring(0,3):t.length>4&&n(t.slice(0,4),i)}}).call(this,r(2).Buffer)},function(t,e,r){var n=r(2).Buffer;t.exports=function(t,e){if(n.isBuffer(t)&&n.isBuffer(e)){if(\"function\"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}}},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e,r,n){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,r,n)}i.prototype.run=function(t,e,r,n){this._init(t,e,r,n);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var o=this._regionQuery(i);if(o.length<this.minPts)this.noise.push(i);else{var a=this.clusters.length;this.clusters.push([]),this._addToCluster(i,a),this._expandCluster(a,o)}}return this.clusters},i.prototype._init=function(t,e,r,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+n(t)+\" given\");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),r&&(this.minPts=r),i&&(this.distance=i)},i.prototype._expandCluster=function(t,e){for(var r=0;r<e.length;r++){var n=e[r];if(1!==this._visited[n]){this._visited[n]=1;var i=this._regionQuery(n);i.length>=this.minPts&&(e=this._mergeArrays(e,i))}1!==this._assigned[n]&&this._addToCluster(n,t)}},i.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},i.prototype._regionQuery=function(t){for(var e=[],r=0;r<this._datasetLength;r++){this.distance(this.dataset[t],this.dataset[r])<this.epsilon&&e.push(r)}return e},i.prototype._mergeArrays=function(t,e){for(var r=e.length,n=0;n<r;n++){var i=e[n];t.indexOf(i)<0&&t.push(i)}return t},i.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=i)},function(t,e,r){function n(t,e,r){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,r)}n.prototype.init=function(t,e,r){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==r&&(this.distance=r)},n.prototype.run=function(t,e){this.init(t,e);for(var r=this.dataset.length,n=0;n<this.k;n++)this.centroids[n]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var o=0;o<this.k;o++){for(var a=new Array(f),s=0,u=0;u<f;u++)a[u]=0;for(var c=0;c<r;c++){var f=this.dataset[c].length;if(o===this.assignments[c]){for(u=0;u<f;u++)a[u]+=this.dataset[c][u];s++}}if(s>0){for(u=0;u<f;u++)a[u]/=s;this.centroids[o]=a}else this.centroids[o]=this.randomCentroid(),i=!0}}return this.getClusters()},n.prototype.randomCentroid=function(){var t,e,r=this.dataset.length-1;do{e=Math.round(Math.random()*r),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},n.prototype.assign=function(){for(var t,e=!1,r=this.dataset.length,n=0;n<r;n++)(t=this.argmin(this.dataset[n],this.centroids,this.distance))!=this.assignments[n]&&(this.assignments[n]=t,e=!0);return e},n.prototype.getClusters=function(){for(var t,e=new Array(this.k),r=0;r<this.assignments.length;r++)void 0===e[t=this.assignments[r]]&&(e[t]=[]),e[t].push(r);return e},n.prototype.argmin=function(t,e,r){for(var n,i=Number.MAX_VALUE,o=0,a=e.length,s=0;s<a;s++)(n=r(t,e[s]))<i&&(i=n,o=s);return o},n.prototype.distance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)},t.exports&&(t.exports=n)},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}if(t.exports)var i=r(99);function o(t,e,r,n){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,r,n)}o.prototype.run=function(t,e,r,n){this._init(t,e,r,n);for(var o=0,a=this.dataset.length;o<a;o++)if(1!==this._processed[o]){this._processed[o]=1,this.clusters.push([o]);var s=this.clusters.length-1;this._orderedList.push(o);var u=new i(null,null,\"asc\"),c=this._regionQuery(o);void 0!==this._distanceToCore(o)&&(this._updateQueue(o,c,u),this._expandCluster(s,u))}return this.clusters},o.prototype.getReachabilityPlot=function(){for(var t=[],e=0,r=this._orderedList.length;e<r;e++){var n=this._orderedList[e],i=this._reachability[n];t.push([n,i])}return t},o.prototype._init=function(t,e,r,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+n(t)+\" given\");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),r&&(this.minPts=r),i&&(this.distance=i)},o.prototype._updateQueue=function(t,e,r){var n=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===n._processed[e]){var i=n.distance(n.dataset[t],n.dataset[e]),o=Math.max(n._coreDistance,i);void 0===n._reachability[e]?(n._reachability[e]=o,r.insert(e,o)):o<n._reachability[e]&&(n._reachability[e]=o,r.remove(e),r.insert(e,o))}}))},o.prototype._expandCluster=function(t,e){for(var r=e.getElements(),n=0,i=r.length;n<i;n++){var o=r[n];if(void 0===this._processed[o]){var a=this._regionQuery(o);this._processed[o]=1,this.clusters[t].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,a,e),this._expandCluster(t,e))}}},o.prototype._distanceToCore=function(t){for(var e=this.epsilon,r=0;r<e;r++){if(this._regionQuery(t,r).length>=this.minPts)return r}},o.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var r=[],n=0,i=this.dataset.length;n<i;n++)this.distance(this.dataset[t],this.dataset[n])<e&&r.push(n);return r},o.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=o)},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=function(){var t=4022871197,e=function(e){e=String(e);for(var r=0;r<e.length;r++){var n=.02519603282416938*(t+=e.charCodeAt(r));n-=t=n>>>0,t=(n*=t)>>>0,t+=4294967296*(n-=t)}return 2.3283064365386963e-10*(t>>>0)};return e}();e.next=function(){var t=2091639*e.s0+2.3283064365386963e-10*e.c;return e.s0=e.s1,e.s1=e.s2,e.s2=t-(e.c=0|t)},e.c=1,e.s0=r(\" \"),e.s1=r(\" \"),e.s2=r(\" \"),e.s0-=r(t),e.s0<0&&(e.s0+=1),e.s1-=r(t),e.s1<0&&(e.s1+=1),e.s2-=r(t),e.s2<0&&(e.s2+=1),r=null}function u(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function c(t,e){var r=new s(t),n=e&&e.state,o=r.next;return o.int32=function(){return 4294967296*r.next()|0},o.double=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.alea=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=\"\";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},t===(0|t)?e.x=t:r+=t;for(var n=0;n<r.length+64;n++)e.x^=0|r.charCodeAt(n),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e}function c(t,e){var r=new s(t),n=e&&e.state,o=function(){return(r.next()>>>0)/4294967296};return o.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=r.next,o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.xor128=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=\"\";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^t^t<<1)|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,t===(0|t)?e.x=t:r+=t;for(var n=0;n<r.length+64;n++)e.x^=0|r.charCodeAt(n),n==r.length&&(e.d=e.x<<10^e.x>>>4),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function c(t,e){var r=new s(t),n=e&&e.state,o=function(){return(r.next()>>>0)/4294967296};return o.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=r.next,o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.xorwow=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,o){function a(t){var e=this;e.next=function(){var t,r,n=e.x,i=e.i;return t=n[i],r=(t^=t>>>7)^t<<24,r^=(t=n[i+1&7])^t>>>10,r^=(t=n[i+3&7])^t>>>3,r^=(t=n[i+4&7])^t<<7,t=n[i+7&7],r^=(t^=t<<13)^t<<9,n[i]=r,e.i=i+1&7,r},function(t,e){var r,n=[];if(e===(0|e))n[0]=e;else for(e=\"\"+e,r=0;r<e.length;++r)n[7&r]=n[7&r]<<15^e.charCodeAt(r)+n[r+1&7]<<13;for(;n.length<8;)n.push(0);for(r=0;r<8&&0===n[r];++r);for(8==r?n[7]=-1:n[r],t.x=n,t.i=0,r=256;r>0;--r)t.next()}(e,t)}function s(t,e){return e.x=t.x.slice(),e.i=t.i,e}function u(t,e){null==t&&(t=+new Date);var r=new a(t),n=e&&e.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=r.next,i.quick=i,n&&(n.x&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=u:r(9)&&r(23)?void 0===(n=function(){return u}.call(e,r,e,i))||(i.exports=n):this.xorshift7=u}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,o){function a(t){var e=this;e.next=function(){var t,r,n=e.w,i=e.X,o=e.i;return e.w=n=n+1640531527|0,r=i[o+34&127],t=i[o=o+1&127],r^=r<<13,t^=t<<17,r^=r>>>15,t^=t>>>12,r=i[o]=r^t,e.i=o,r+(n^n>>>16)|0},function(t,e){var r,n,i,o,a,s=[],u=128;for(e===(0|e)?(n=e,e=null):(e+=\"\\0\",n=0,u=Math.max(u,e.length)),i=0,o=-32;o<u;++o)e&&(n^=e.charCodeAt((o+32)%e.length)),0===o&&(a=n),n^=n<<10,n^=n>>>15,n^=n<<4,n^=n>>>13,o>=0&&(a=a+1640531527|0,i=0==(r=s[127&o]^=n+a)?i+1:0);for(i>=128&&(s[127&(e&&e.length||0)]=-1),i=127,o=512;o>0;--o)n=s[i+34&127],r=s[i=i+1&127],n^=n<<13,r^=r<<17,n^=n>>>15,r^=r>>>12,s[i]=n^r;t.w=a,t.X=s,t.i=i}(e,t)}function s(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function u(t,e){null==t&&(t=+new Date);var r=new a(t),n=e&&e.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=r.next,i.quick=i,n&&(n.X&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=u:r(9)&&r(23)?void 0===(n=function(){return u}.call(e,r,e,i))||(i.exports=n):this.xor4096=u}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=\"\";e.next=function(){var t=e.b,r=e.c,n=e.d,i=e.a;return t=t<<25^t>>>7^r,r=r-n|0,n=n<<24^n>>>8^i,i=i-t|0,e.b=t=t<<20^t>>>12^r,e.c=r=r-n|0,e.d=n<<16^r>>>16^i,e.a=i-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,t===Math.floor(t)?(e.a=t/4294967296|0,e.b=0|t):r+=t;for(var n=0;n<r.length+20;n++)e.b^=0|r.charCodeAt(n),e.next()}function u(t,e){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e}function c(t,e){var r=new s(t),n=e&&e.state,o=function(){return(r.next()>>>0)/4294967296};return o.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=r.next,o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.tychei=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(o,a,s){var u,c=256,f=s.pow(c,6),l=s.pow(2,52),h=2*l,p=c-1;function d(t,e,r){var n=[],i=g(v((e=1==e?{entropy:!0}:e||{}).entropy?[t,b(a)]:null==t?function(){try{var t;return u&&(t=u.randomBytes)?t=t(c):(t=new Uint8Array(c),(o.crypto||o.msCrypto).getRandomValues(t)),b(t)}catch(t){var e=o.navigator,r=e&&e.plugins;return[+new Date,o,r,o.screen,b(a)]}}():t,3),n),p=new m(n),d=function(){for(var t=p.g(6),e=f,r=0;t<l;)t=(t+r)*c,e*=c,r=p.g(1);for(;t>=h;)t/=2,e/=2,r>>>=1;return(t+r)/e};return d.int32=function(){return 0|p.g(4)},d.quick=function(){return p.g(4)/4294967296},d.double=d,g(b(p.S),a),(e.pass||r||function(t,e,r,n){return n&&(n.S&&y(n,p),t.state=function(){return y(p,{})}),r?(s.random=t,e):t})(d,i,\"global\"in e?e.global:this==s,e.state)}function m(t){var e,r=t.length,n=this,i=0,o=n.i=n.j=0,a=n.S=[];for(r||(t=[r++]);i<c;)a[i]=i++;for(i=0;i<c;i++)a[i]=a[o=p&o+t[i%r]+(e=a[i])],a[o]=e;(n.g=function(t){for(var e,r=0,i=n.i,o=n.j,a=n.S;t--;)e=a[i=p&i+1],r=r*c+a[p&(a[i]=a[o=p&o+e])+(a[o]=e)];return n.i=i,n.j=o,r})(c)}function y(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function v(t,e){var r,n=[],o=i(t);if(e&&\"object\"==o)for(r in t)try{n.push(v(t[r],e-1))}catch(t){}return n.length?n:\"string\"==o?t:t+\"\\0\"}function g(t,e){for(var r,n=t+\"\",i=0;i<n.length;)e[p&i]=p&(r^=19*e[p&i])+n.charCodeAt(i++);return b(e)}function b(t){return String.fromCharCode.apply(0,t)}if(g(s.random(),a),\"object\"==i(t)&&t.exports){t.exports=d;try{u=r(228)}catch(t){}}else void 0===(n=function(){return d}.call(e,r,e,t))||(t.exports=n)}(\"undefined\"!=typeof self?self:this,[],Math)}).call(this,r(13)(t))},function(t,e){},function(t,e,r){var n=r(100).default,i=r(230);t.exports=function(t){var e=i(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(100).default;t.exports=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},,,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}r.d(e,\"a\",(function(){return a}));var a=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t)},r=[{key:\"w18lm\",get:function(){return{userConfig:\"ls_user_config\",userdata:\"ls_user_data\",permissionConfig:\"ls_permission_config\"}}}],(e=null)&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}()},,,,,,,,,,,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||s(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function o(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=s(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function a(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){if(t){if(\"string\"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(){c=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},s=a.iterator||\"@@iterator\",u=a.asyncIterator||\"@@asyncIterator\",f=a.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new I(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,s,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&i.call(k,s)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(o,a,s,u){var c=p(t[o],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&i.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var a;o(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[s];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(D,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,u,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,s,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=i.call(a,\"catchLoc\"),c=i.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var o=n;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function f(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,\"next\",t)}function s(t){f(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function p(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}r.d(e,\"a\",(function(){return d}));var d=function(){return t=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.zjh3D=e,this.Sjig=r,this.Kk09=new Map,this.PjleR=new Map,this._jna_=r>0?new Map:null,this.Zjp4Z=!1},e=[{key:\"wk2e\",value:(m=l(c().mark((function t(){var e;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=1;case 1:if(!(e<200)){t.next=10;break}if(this.Zjp4Z){t.next=5;break}return this.Zjp4Z=!0,t.abrupt(\"return\",!0);case 5:return t.next=7,new Promise((function(t){setTimeout(t,10)}));case 7:e++,t.next=1;break;case 10:return this.Zjp4Z=!0,t.abrupt(\"return\",!0);case 12:case\"end\":return t.stop()}}),t,this)}))),function(){return m.apply(this,arguments)})},{key:\"zka3D\",value:(d=l(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.Zjp4Z=!1,t.abrupt(\"return\",!0);case 2:case\"end\":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:\"Ckce\",value:(p=l(c().mark((function t(e,r){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this.Sjig){t.next=2;break}return t.abrupt(\"return\");case 2:return t.next=4,this.wk2e();case 4:t.prev=4,this.Kk09.set(e,r);case 6:return t.prev=6,t.next=9,this.zka3D();case 9:return t.finish(6);case 10:case\"end\":return t.stop()}}),t,this,[[4,,6,10]])}))),function(t,e){return p.apply(this,arguments)})},{key:\"wk67\",value:(f=l(c().mark((function t(e,r){var n,i,o,s;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this.Sjig){t.next=2;break}return t.abrupt(\"return\");case 2:return t.next=4,this.wk2e();case 4:if(t.prev=4,!(this.Kk09.size>=this.zjh3D&&this.PjleR.size>0)){t.next=15;break}n=a(this.PjleR).sort((function(t,e){return t[1]-e[1]})),i=Math.max(Math.min(n.length,this.zjh3D/5),1),o=i;case 9:if(!(o>=0)){t.next=15;break}return t.next=12,this.Ll23N(n[o][0]);case 12:o--,t.next=9;break;case 15:if(!(this.Kk09.size<this.zjh3D)){t.next=21;break}this.Kk09.set(e,r),this.PjleR.set(e,Date.now()),null===(s=this._jna_)||void 0===s||s.set(e,0),t.next=22;break;case 21:throw new Error(\"cache is full\");case 22:return t.prev=22,t.next=25,this.zka3D();case 25:return t.finish(22);case 26:case\"end\":return t.stop()}}),t,this,[[4,,22,26]])}))),function(t,e){return f.apply(this,arguments)})},{key:\"XkhpX\",value:(u=l(c().mark((function t(e){var r,n,i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.Kk09.has(e)){t.next=13;break}if(r=this.Kk09.get(e),!this.PjleR.has(e)){t.next=12;break}if(this.PjleR.set(e,Date.now()),!(this.Sjig>0)){t.next=12;break}if(!((n=this.Gkp9(e))>=this.Sjig-1)){t.next=11;break}return t.next=9,this.Ll23N(e);case 9:t.next=12;break;case 11:null===(i=this._jna_)||void 0===i||i.set(e,n+1);case 12:return t.abrupt(\"return\",r);case 13:return t.abrupt(\"return\",void 0);case 14:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:\"Ykl6\",value:function(t){return this.PjleR.get(t)}},{key:\"Gkp9\",value:function(t){var e;return null===(e=this._jna_)||void 0===e?void 0:e.get(t)}},{key:\"Ekg7\",value:function(t){return this.Kk09.has(t)}},{key:\"Ll23N\",value:(s=l(c().mark((function t(e){var r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.wk2e();case 2:t.prev=2,this.Kk09.delete(e),this.PjleR.delete(e),null===(r=this._jna_)||void 0===r||r.delete(e);case 6:return t.prev=6,t.next=9,this.zka3D();case 9:return t.finish(6);case 10:case\"end\":return t.stop()}}),t,this,[[2,,6,10]])}))),function(t){return s.apply(this,arguments)})},{key:\"wl2k\",value:(n=l(c().mark((function t(){var e,r,n,a,s,u,f,l,h=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:0,t.next=3,this.wk2e();case 3:if(t.prev=3,e<=0)this.Kk09.clear(),this.PjleR.clear(),null===(r=this._jna_)||void 0===r||r.clear();else{n=o(this.PjleR.entries());try{for(n.s();!(a=n.n()).done;)s=i(a.value,2),u=s[0],f=s[1],Date.now()-f>e&&(null===(l=this._jna_)||void 0===l||l.delete(u),this.PjleR.delete(u),this.Kk09.delete(u))}catch(t){n.e(t)}finally{n.f()}}case 5:return t.prev=5,t.next=8,this.zka3D();case 8:return t.finish(5);case 9:case\"end\":return t.stop()}}),t,this,[[3,,5,9]])}))),function(){return n.apply(this,arguments)})},{key:\"Lkf8N\",value:function(){return Array.from(this.Kk09.keys())}}],e&&h(t.prototype,e),r&&h(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,s,u,f,p,d,m}()},,,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(248),o=r(249);function a(t,e){return e.encode?e.strict?i(t):encodeURIComponent(t):t}function s(t){return Array.isArray(t)?t.sort():\"object\"===n(t)?s(Object.keys(t)).sort((function(t,e){return Number(t)-Number(e)})).map((function(e){return t[e]})):t}e.extract=function(t){return t.split(\"?\")[1]||\"\"},e.parse=function(t,e){var r=function(t){var e;switch(t.arrayFormat){case\"index\":return function(t,r,n){e=/\\[(\\d*)\\]$/.exec(t),t=t.replace(/\\[\\d*\\]$/,\"\"),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case\"bracket\":return function(t,r,n){e=/(\\[\\])$/.exec(t),t=t.replace(/\\[\\]$/,\"\"),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};default:return function(t,e,r){void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e=o({arrayFormat:\"none\"},e)),i=Object.create(null);return\"string\"!=typeof t?i:(t=t.trim().replace(/^(\\?|#|&)/,\"\"))?(t.split(\"&\").forEach((function(t){var e=t.replace(/\\+/g,\" \").split(\"=\"),n=e.shift(),o=e.length>0?e.join(\"=\"):void 0;o=void 0===o?null:decodeURIComponent(o),r(decodeURIComponent(n),o,i)})),Object.keys(i).sort().reduce((function(t,e){var r=i[e];return Boolean(r)&&\"object\"===n(r)&&!Array.isArray(r)?t[e]=s(r):t[e]=r,t}),Object.create(null))):i},e.stringify=function(t,e){var r=function(t){switch(t.arrayFormat){case\"index\":return function(e,r,n){return null===r?[a(e,t),\"[\",n,\"]\"].join(\"\"):[a(e,t),\"[\",a(n,t),\"]=\",a(r,t)].join(\"\")};case\"bracket\":return function(e,r){return null===r?a(e,t):[a(e,t),\"[]=\",a(r,t)].join(\"\")};default:return function(e,r){return null===r?a(e,t):[a(e,t),\"=\",a(r,t)].join(\"\")}}}(e=o({encode:!0,strict:!0,arrayFormat:\"none\"},e));return t?Object.keys(t).sort().map((function(n){var i=t[n];if(void 0===i)return\"\";if(null===i)return a(n,e);if(Array.isArray(i)){var o=[];return i.slice().forEach((function(t){void 0!==t&&o.push(r(n,t,o.length))})),o.join(\"&\")}return a(n,e)+\"=\"+a(i,e)})).filter((function(t){return t.length>0})).join(\"&\"):\"\"}},function(t,e,r){\"use strict\";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return\"%\"+t.charCodeAt(0).toString(16).toUpperCase()}))}},function(t,e,r){\"use strict\";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e[\"_\"+String.fromCharCode(r)]=r;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(\"\"))return!1;var n={};return\"abcdefghijklmnopqrst\".split(\"\").forEach((function(t){n[t]=t})),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},n)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,a,s=function(t){if(null==t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}(t),u=1;u<arguments.length;u++){for(var c in r=Object(arguments[u]))i.call(r,c)&&(s[c]=r[c]);if(n){a=n(r);for(var f=0;f<a.length;f++)o.call(r,a[f])&&(s[a[f]]=r[a[f]])}}return s}},,,,function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return _i})),r.d(e,\"c\",(function(){return xi})),r.d(e,\"b\",(function(){return Fi}));var n=r(8),i=r.n(n),o={epsilon:1e-12,matrix:\"Matrix\",number:\"number\",precision:64,predictable:!1,randomSeed:null};function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t){return\"number\"==typeof t}function u(t){return!(!t||\"object\"!==a(t)||\"function\"!=typeof t.constructor)&&(!0===t.isBigNumber&&\"object\"===a(t.constructor.prototype)&&!0===t.constructor.prototype.isBigNumber||\"function\"==typeof t.constructor.isDecimal&&!0===t.constructor.isDecimal(t))}function c(t){return t&&\"object\"===a(t)&&!0===Object.getPrototypeOf(t).isComplex||!1}function f(t){return t&&\"object\"===a(t)&&!0===Object.getPrototypeOf(t).isFraction||!1}function l(t){return t&&!0===t.constructor.prototype.isUnit||!1}function h(t){return\"string\"==typeof t}var p=Array.isArray;function d(t){return t&&!0===t.constructor.prototype.isMatrix||!1}function m(t){return Array.isArray(t)||d(t)}function y(t){return t&&t.isDenseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function v(t){return t&&t.isSparseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function g(t){return t&&!0===t.constructor.prototype.isRange||!1}function b(t){return t&&!0===t.constructor.prototype.isIndex||!1}function w(t){return\"boolean\"==typeof t}function _(t){return t&&!0===t.constructor.prototype.isResultSet||!1}function x(t){return t&&!0===t.constructor.prototype.isHelp||!1}function E(t){return\"function\"==typeof t}function k(t){return t instanceof Date}function D(t){return t instanceof RegExp}function S(t){return!(!t||\"object\"!==a(t)||t.constructor!==Object||c(t)||f(t))}function A(t){return null===t}function M(t){return void 0===t}function O(t){return t&&!0===t.isAccessorNode&&!0===t.constructor.prototype.isNode||!1}function C(t){return t&&!0===t.isArrayNode&&!0===t.constructor.prototype.isNode||!1}function F(t){return t&&!0===t.isAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function I(t){return t&&!0===t.isBlockNode&&!0===t.constructor.prototype.isNode||!1}function B(t){return t&&!0===t.isConditionalNode&&!0===t.constructor.prototype.isNode||!1}function T(t){return t&&!0===t.isConstantNode&&!0===t.constructor.prototype.isNode||!1}function L(t){return t&&!0===t.isFunctionAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function P(t){return t&&!0===t.isFunctionNode&&!0===t.constructor.prototype.isNode||!1}function j(t){return t&&!0===t.isIndexNode&&!0===t.constructor.prototype.isNode||!1}function N(t){return t&&!0===t.isNode&&!0===t.constructor.prototype.isNode||!1}function R(t){return t&&!0===t.isObjectNode&&!0===t.constructor.prototype.isNode||!1}function z(t){return t&&!0===t.isOperatorNode&&!0===t.constructor.prototype.isNode||!1}function U(t){return t&&!0===t.isParenthesisNode&&!0===t.constructor.prototype.isNode||!1}function G(t){return t&&!0===t.isRangeNode&&!0===t.constructor.prototype.isNode||!1}function H(t){return t&&!0===t.isRelationalNode&&!0===t.constructor.prototype.isNode||!1}function Z(t){return t&&!0===t.isSymbolNode&&!0===t.constructor.prototype.isNode||!1}function q(t){return t&&!0===t.constructor.prototype.isChain||!1}function W(t){var e=a(t);return\"object\"===e?null===t?\"null\":u(t)?\"BigNumber\":t.constructor&&t.constructor.name?t.constructor.name:\"Object\":e}function Y(t){return Y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Y(t)}function X(t){var e=Y(t);if(\"number\"===e||\"string\"===e||\"boolean\"===e||null==t)return t;if(\"function\"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map((function(t){return X(t)}));if(t instanceof Date)return new Date(t.valueOf());if(u(t))return t;if(S(t))return V(t,X);throw new TypeError(\"Cannot clone: unknown type of value (value: \".concat(t,\")\"))}function V(t,e){var r={};for(var n in t)Q(t,n)&&(r[n]=e(t[n]));return r}function J(t,e){for(var r in e)Q(e,r)&&(t[r]=e[r]);return t}function K(t,e){var r,n,i;if(Array.isArray(t)){if(!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(n=0,i=t.length;n<i;n++)if(!K(t[n],e[n]))return!1;return!0}if(\"function\"==typeof t)return t===e;if(t instanceof Object){if(Array.isArray(e)||!(e instanceof Object))return!1;for(r in t)if(!(r in e)||!K(t[r],e[r]))return!1;for(r in e)if(!(r in t))return!1;return!0}return t===e}function Q(t,e){return t&&Object.hasOwnProperty.call(t,e)}var $=[\"Matrix\",\"Array\"],tt=[\"number\",\"BigNumber\",\"Fraction\"];var et=function(t){if(t)throw new Error(\"The global config is readonly. \\nPlease create a mathjs instance if you want to change the default configuration. \\nExample:\\n\\n  import { create, all } from 'mathjs';\\n  const mathjs = create(all);\\n  mathjs.config({ number: 'BigNumber' });\\n\");return Object.freeze(o)};i()(et,o,{MATRIX_OPTIONS:$,NUMBER_OPTIONS:tt});var rt=r(21),nt=r.n(rt);function it(t){return\"boolean\"==typeof t||!!isFinite(t)&&t===Math.round(t)}var ot=Math.sign||function(t){return t>0?1:t<0?-1:0},at=Math.log2||function(t){return Math.log(t)/Math.LN2},st=Math.log10||function(t){return Math.log(t)/Math.LN10},ut=(Math.log1p,Math.cbrt||function(t){if(0===t)return t;var e,r=t<0;return r&&(t=-t),e=isFinite(t)?(t/((e=Math.exp(Math.log(t)/3))*e)+2*e)/3:t,r?-e:e}),ct=Math.expm1||function(t){return t>=2e-4||t<=-2e-4?Math.exp(t)-1:t+t*t/2+t*t*t/6};function ft(t,e,r){var n={2:\"0b\",8:\"0o\",16:\"0x\"}[e],i=\"\";if(r){if(r<1)throw new Error(\"size must be in greater than 0\");if(!it(r))throw new Error(\"size must be an integer\");if(t>Math.pow(2,r-1)-1||t<-Math.pow(2,r-1))throw new Error(\"Value must be in range [-2^\".concat(r-1,\", 2^\").concat(r-1,\"-1]\"));if(!it(t))throw new Error(\"Value must be an integer\");t<0&&(t+=Math.pow(2,r)),i=\"i\".concat(r)}var o=\"\";return t<0&&(t=-t,o=\"-\"),\"\".concat(o).concat(n).concat(t.toString(e)).concat(i)}function lt(t,e){if(\"function\"==typeof e)return e(t);if(t===1/0)return\"Infinity\";if(t===-1/0)return\"-Infinity\";if(isNaN(t))return\"NaN\";var r,n,i=\"auto\";if(e&&(e.notation&&(i=e.notation),s(e)?r=e:s(e.precision)&&(r=e.precision),e.wordSize&&\"number\"!=typeof(n=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return pt(t,r);case\"exponential\":return dt(t,r);case\"engineering\":return function(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=ht(t),n=mt(r,e),i=n.exponent,o=n.coefficients,a=i%3==0?i:i<0?i-3-i%3:i-i%3;if(s(e))for(;e>o.length||i-a+1>o.length;)o.push(0);else for(var u=Math.abs(i-a)-(o.length-1),c=0;c<u;c++)o.push(0);var f=Math.abs(i-a),l=1;for(;f>0;)l++,f--;var h=o.slice(l).join(\"\"),p=s(e)&&h.length||h.match(/[1-9]/)?\".\"+h:\"\",d=o.slice(0,l).join(\"\")+p+\"e\"+(i>=0?\"+\":\"\")+a.toString();return n.sign+d}(t,r);case\"bin\":return ft(t,2,n);case\"oct\":return ft(t,8,n);case\"hex\":return ft(t,16,n);case\"auto\":return function(t,e,r){if(isNaN(t)||!isFinite(t))return String(t);var n=r&&void 0!==r.lowerExp?r.lowerExp:-3,i=r&&void 0!==r.upperExp?r.upperExp:5,o=ht(t),a=e?mt(o,e):o;if(a.exponent<n||a.exponent>=i)return dt(t,e);var s=a.coefficients,u=a.exponent;s.length<e&&(s=s.concat(yt(e-s.length))),s=s.concat(yt(u-s.length+1+(s.length<e?e-s.length:0)));var c=u>0?u:0;return c<(s=yt(-u).concat(s)).length-1&&s.splice(c+1,0,\".\"),a.sign+s.join(\"\")}(t,r,e&&e).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function ht(t){var e=String(t).toLowerCase().match(/^(-?)(\\d+\\.?\\d*)(e([+-]?\\d+))?$/);if(!e)throw new SyntaxError(\"Invalid number \"+t);var r=e[1],n=e[2],i=parseFloat(e[4]||\"0\"),o=n.indexOf(\".\");i+=-1!==o?o-1:n.length-1;var a=n.replace(\".\",\"\").replace(/^0*/,(function(t){return i-=t.length,\"\"})).replace(/0*$/,\"\").split(\"\").map((function(t){return parseInt(t)}));return 0===a.length&&(a.push(0),i++),{sign:r,coefficients:a,exponent:i}}function pt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=ht(t),n=\"number\"==typeof e?mt(r,r.exponent+1+e):r,i=n.coefficients,o=n.exponent+1,a=o+(e||0);return i.length<a&&(i=i.concat(yt(a-i.length))),o<0&&(i=yt(1-o).concat(i),o=1),o<i.length&&i.splice(o,0,0===o?\"0.\":\".\"),n.sign+i.join(\"\")}function dt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=ht(t),n=e?mt(r,e):r,i=n.coefficients,o=n.exponent;i.length<e&&(i=i.concat(yt(e-i.length)));var a=i.shift();return n.sign+a+(i.length>0?\".\"+i.join(\"\"):\"\")+\"e\"+(o>=0?\"+\":\"\")+o}function mt(t,e){for(var r={sign:t.sign,coefficients:t.coefficients,exponent:t.exponent},n=r.coefficients;e<=0;)n.unshift(0),r.exponent++,e++;if(n.length>e&&n.splice(e,n.length-e)[0]>=5){var i=e-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),r.exponent++,i++),n[--i]++}return r}function yt(t){for(var e=[],r=0;r<t;r++)e.push(0);return e}var vt=Number.EPSILON||2220446049250313e-31;function gt(t,e,r){if(null==r)return t===e;if(t===e)return!0;if(isNaN(t)||isNaN(e))return!1;if(isFinite(t)&&isFinite(e)){var n=Math.abs(t-e);return n<=vt||n<=Math.max(Math.abs(t),Math.abs(e))*r}return!1}var bt=Math.acosh||function(t){return Math.log(Math.sqrt(t*t-1)+t)},wt=Math.asinh||function(t){return Math.log(Math.sqrt(t*t+1)+t)},_t=Math.atanh||function(t){return Math.log((1+t)/(1-t))/2},xt=(Math.cosh,Math.sinh||function(t){return(Math.exp(t)-Math.exp(-t))/2});Math.tanh;function Et(t,e,r){var n=new(0,t.constructor)(2),i=\"\";if(r){if(r<1)throw new Error(\"size must be in greater than 0\");if(!it(r))throw new Error(\"size must be an integer\");if(t.greaterThan(n.pow(r-1).sub(1))||t.lessThan(n.pow(r-1).mul(-1)))throw new Error(\"Value must be in range [-2^\".concat(r-1,\", 2^\").concat(r-1,\"-1]\"));if(!t.isInteger())throw new Error(\"Value must be an integer\");t.lessThan(0)&&(t=t.add(n.pow(r))),i=\"i\".concat(r)}switch(e){case 2:return\"\".concat(t.toBinary()).concat(i);case 8:return\"\".concat(t.toOctal()).concat(i);case 16:return\"\".concat(t.toHexadecimal()).concat(i);default:throw new Error(\"Base \".concat(e,\" not supported \"))}}function kt(t,e){if(\"function\"==typeof e)return e(t);if(!t.isFinite())return t.isNaN()?\"NaN\":t.gt(0)?\"Infinity\":\"-Infinity\";var r,n,i=\"auto\";if(void 0!==e&&(e.notation&&(i=e.notation),\"number\"==typeof e?r=e:void 0!==e.precision&&(r=e.precision),e.wordSize&&\"number\"!=typeof(n=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return function(t,e){return t.toFixed(e)}(t,r);case\"exponential\":return Dt(t,r);case\"engineering\":return function(t,e){var r=t.e,n=r%3==0?r:r<0?r-3-r%3:r-r%3,i=t.mul(Math.pow(10,-n)),o=i.toPrecision(e);if(-1!==o.indexOf(\"e\")){o=new(0,t.constructor)(o).toFixed()}return o+\"e\"+(r>=0?\"+\":\"\")+n.toString()}(t,r);case\"bin\":return Et(t,2,n);case\"oct\":return Et(t,8,n);case\"hex\":return Et(t,16,n);case\"auto\":var o=e&&void 0!==e.lowerExp?e.lowerExp:-3,a=e&&void 0!==e.upperExp?e.upperExp:5;if(t.isZero())return\"0\";var s=t.toSignificantDigits(r),u=s.e;return(u>=o&&u<a?s.toFixed():Dt(t,r)).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function Dt(t,e){return void 0!==e?t.toExponential(e-1):t.toExponential()}function St(t){return St=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},St(t)}function At(t,e){var r=function(t,e){if(\"number\"==typeof t)return lt(t,e);if(u(t))return kt(t,e);if(function(t){return t&&\"object\"===St(t)&&\"number\"==typeof t.s&&\"number\"==typeof t.n&&\"number\"==typeof t.d||!1}(t))return e&&\"decimal\"===e.fraction?t.toString():t.s*t.n+\"/\"+t.d;if(Array.isArray(t))return Ct(t,e);if(h(t))return Mt(t);if(\"function\"==typeof t)return t.syntax?String(t.syntax):\"function\";if(t&&\"object\"===St(t)){return\"function\"==typeof t.format?t.format(e):t&&t.toString(e)!=={}.toString()?t.toString(e):\"{\"+Object.keys(t).map((function(r){return Mt(r)+\": \"+At(t[r],e)})).join(\", \")+\"}\"}return String(t)}(t,e);return e&&\"object\"===St(e)&&\"truncate\"in e&&r.length>e.truncate?r.substring(0,e.truncate-3)+\"...\":r}function Mt(t){for(var e=String(t),r=\"\",n=0;n<e.length;){var i=e.charAt(n);r+=i in Ot?Ot[i]:i,n++}return'\"'+r+'\"'}var Ot={'\"':'\\\\\"',\"\\\\\":\"\\\\\\\\\",\"\\b\":\"\\\\b\",\"\\f\":\"\\\\f\",\"\\n\":\"\\\\n\",\"\\r\":\"\\\\r\",\"\\t\":\"\\\\t\"};function Ct(t,e){if(Array.isArray(t)){for(var r=\"[\",n=t.length,i=0;i<n;i++)0!==i&&(r+=\", \"),r+=Ct(t[i],e);return r+=\"]\"}return At(t,e)}function Ft(t,e){if(!h(t))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+W(t)+\", index: 0)\");if(!h(e))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+W(e)+\", index: 1)\");return t===e?0:t>e?1:-1}function It(t,e,r){if(!(this instanceof It))throw new SyntaxError(\"Constructor must be called with the new operator\");this.actual=t,this.expected=e,this.relation=r,this.message=\"Dimension mismatch (\"+(Array.isArray(t)?\"[\"+t.join(\", \")+\"]\":t)+\" \"+(this.relation||\"!=\")+\" \"+(Array.isArray(e)?\"[\"+e.join(\", \")+\"]\":e)+\")\",this.stack=(new Error).stack}function Bt(t,e,r){if(!(this instanceof Bt))throw new SyntaxError(\"Constructor must be called with the new operator\");this.index=t,arguments.length<3?(this.min=0,this.max=e):(this.min=e,this.max=r),void 0!==this.min&&this.index<this.min?this.message=\"Index out of range (\"+this.index+\" < \"+this.min+\")\":void 0!==this.max&&this.index>=this.max?this.message=\"Index out of range (\"+this.index+\" > \"+(this.max-1)+\")\":this.message=\"Index out of range (\"+this.index+\")\",this.stack=(new Error).stack}function Tt(t){return function(t){if(Array.isArray(t))return Lt(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Lt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lt(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Pt(t){for(var e=[];Array.isArray(t);)e.push(t.length),t=t[0];return e}function jt(t,e,r){var n,i=t.length;if(i!==e[r])throw new It(i,e[r]);if(r<e.length-1){var o=r+1;for(n=0;n<i;n++){var a=t[n];if(!Array.isArray(a))throw new It(e.length-1,e.length,\"<\");jt(t[n],e,o)}}else for(n=0;n<i;n++)if(Array.isArray(t[n]))throw new It(e.length+1,e.length,\">\")}function Nt(t,e){if(0===e.length){if(Array.isArray(t))throw new It(t.length,0)}else jt(t,e,0)}function Rt(t,e){if(void 0!==t){if(!s(t)||!it(t))throw new TypeError(\"Index must be an integer (value: \"+t+\")\");if(t<0||\"number\"==typeof e&&t>=e)throw new Bt(t,e)}}function zt(t,e,r){if(!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new Error(\"Resizing to scalar is not supported\");return e.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+At(e)+\")\")})),(s(t)||u(t))&&(t=[t]),Ut(t,e,0,void 0!==r?r:0),t}function Ut(t,e,r,n){var i,o,a=t.length,s=e[r],u=Math.min(a,s);if(t.length=s,r<e.length-1){var c=r+1;for(i=0;i<u;i++)o=t[i],Array.isArray(o)||(o=[o],t[i]=o),Ut(o,e,c,n);for(i=u;i<s;i++)o=[],t[i]=o,Ut(o,e,c,n)}else{for(i=0;i<u;i++)for(;Array.isArray(t[i]);)t[i]=t[i][0];for(i=u;i<s;i++)t[i]=n}}function Gt(t,e){var r=Yt(t),n=r.length;if(!Array.isArray(t)||!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new It(0,n,\"!=\");var i=Zt(e=Ht(e,n));if(n!==i)throw new It(i,n,\"!=\");try{return function(t,e){for(var r,n=t,i=e.length-1;i>0;i--){var o=e[i];r=[];for(var a=n.length/o,s=0;s<a;s++)r.push(n.slice(s*o,(s+1)*o));n=r}return n}(r,e)}catch(t){if(t instanceof It)throw new It(i,n,\"!=\");throw t}}function Ht(t,e){var r=Zt(t),n=t.slice(),i=t.indexOf(-1);if(t.indexOf(-1,i+1)>=0)throw new Error(\"More than one wildcard in sizes\");if(i>=0){if(!(e%r==0))throw new Error(\"Could not replace wildcard, since \"+e+\" is no multiple of \"+-r);n[i]=-e/r}return n}function Zt(t){return t.reduce((function(t,e){return t*e}),1)}function qt(t,e,r,n){var i=n||Pt(t);if(r)for(var o=0;o<r;o++)t=[t],i.unshift(1);for(t=Wt(t,e,0);i.length<e;)i.push(1);return t}function Wt(t,e,r){var n,i;if(Array.isArray(t)){var o=r+1;for(n=0,i=t.length;n<i;n++)t[n]=Wt(t[n],e,o)}else for(var a=r;a<e;a++)t=[t];return t}function Yt(t){if(!Array.isArray(t))return t;var e=[];return t.forEach((function t(r){Array.isArray(r)?r.forEach(t):e.push(r)})),e}function Xt(t,e){for(var r,n=0,i=0;i<t.length;i++){var o=t[i],a=Array.isArray(o);if(0===i&&a&&(n=o.length),a&&o.length!==n)return;var s=a?Xt(o,e):e(o);if(void 0===r)r=s;else if(r!==s)return\"mixed\"}return r}function Vt(t,e,r,n){if(n<r){if(t.length!==e.length)throw new It(t.length,e.length);for(var i=[],o=0;o<t.length;o++)i[o]=Vt(t[o],e[o],r,n+1);return i}return t.concat(e)}function Jt(){var t=Array.prototype.slice.call(arguments,0,-1),e=Array.prototype.slice.call(arguments,-1);if(1===t.length)return t[0];if(t.length>1)return t.slice(1).reduce((function(t,r){return Vt(t,r,e,0)}),t[0]);throw new Error(\"Wrong number of arguments in function concat\")}function Kt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=e.map((function(t){return t.length})),i=Math.max.apply(Math,Tt(n)),o=new Array(i).fill(null),a=0;a<e.length;a++)for(var s=e[a],u=n[a],c=0;c<u;c++){var f=i-u+c;s[c]>o[f]&&(o[f]=s[c])}for(var l=0;l<e.length;l++)Qt(e[l],o);return o}function Qt(t,e){for(var r=e.length,n=t.length,i=0;i<n;i++){var o=r-n+i;if(t[i]<e[o]&&t[i]>1||t[i]>e[o])throw new Error(\"shape missmatch: missmatch is found in arg with shape (\".concat(t,\") not possible to broadcast dimension \").concat(n,\" with size \").concat(t[i],\" to size \").concat(e[o]))}}function $t(t,e){var r=Pt(t);if(K(r,e))return t;Qt(r,e);var n,o,a,s=Kt(r,e),u=s.length,c=[].concat(Tt(Array(u-r.length).fill(1)),Tt(r)),f=function(t){return i()([],t)}(t);r.length<u&&(r=Pt(f=Gt(f,c)));for(var l=0;l<u;l++)r[l]<s[l]&&(n=f,o=s[l],a=l,r=Pt(f=Jt.apply(void 0,Tt(Array(o).fill(n)).concat([a]))));return f}function te(t,e,r,n){function i(n){var i=function(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],o=t[i];void 0!==o&&(r[i]=o)}return r}(n,e.map(ee));return function(t,e,r){var n=e.filter((function(t){return!function(t){return t&&\"?\"===t[0]}(t)})).every((function(t){return void 0!==r[t]}));if(!n){var i=e.filter((function(t){return void 0===r[t]}));throw new Error('Cannot create function \"'.concat(t,'\", ')+\"some dependencies are missing: \".concat(i.map((function(t){return'\"'.concat(t,'\"')})).join(\", \"),\".\"))}}(t,e,n),r(i)}return i.isFactory=!0,i.fn=t,i.dependencies=e.slice().sort(),n&&(i.meta=n),i}function ee(t){return t&&\"?\"===t[0]?t.slice(1):t}It.prototype=new RangeError,It.prototype.constructor=RangeError,It.prototype.name=\"DimensionError\",It.prototype.isDimensionError=!0,Bt.prototype=new RangeError,Bt.prototype.constructor=RangeError,Bt.prototype.name=\"IndexError\",Bt.prototype.isIndexError=!0;var re=te(\"BigNumber\",[\"?on\",\"config\"],(function(t){var e=t.on,r=t.config,n=nt.a.clone({precision:r.precision,modulo:nt.a.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type=\"BigNumber\",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:\"BigNumber\",value:this.toString()}},n.fromJSON=function(t){return new n(t.value)},e&&e(\"config\",(function(t,e){t.precision!==e.precision&&n.config({precision:t.precision})})),n}),{isClass:!0}),ne=r(5),ie=r.n(ne);function oe(t){return oe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},oe(t)}var ae=te(\"Complex\",[],(function(){return Object.defineProperty(ie.a,\"name\",{value:\"Complex\"}),ie.a.prototype.constructor=ie.a,ie.a.prototype.type=\"Complex\",ie.a.prototype.isComplex=!0,ie.a.prototype.toJSON=function(){return{mathjs:\"Complex\",re:this.re,im:this.im}},ie.a.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},ie.a.prototype.format=function(t){var e=this.im,r=this.re,n=lt(this.re,t),i=lt(this.im,t),o=s(t)?t:t?t.precision:null;if(null!==o){var a=Math.pow(10,-o);Math.abs(r/e)<a&&(r=0),Math.abs(e/r)<a&&(e=0)}return 0===e?n:0===r?1===e?\"i\":-1===e?\"-i\":i+\"i\":e<0?-1===e?n+\" - i\":n+\" - \"+i.substring(1)+\"i\":1===e?n+\" + i\":n+\" + \"+i+\"i\"},ie.a.fromPolar=function(t){switch(arguments.length){case 1:var e=arguments[0];if(\"object\"===oe(e))return ie()(e);throw new TypeError(\"Input has to be an object with r and phi keys.\");case 2:var r=arguments[0],n=arguments[1];if(s(r)){if(l(n)&&n.hasBase(\"ANGLE\")&&(n=n.toNumber(\"rad\")),s(n))return new ie.a({r,phi:n});throw new TypeError(\"Phi is not a number nor an angle unit.\")}throw new TypeError(\"Radius r is not a number.\");default:throw new SyntaxError(\"Wrong number of arguments in function fromPolar\")}},ie.a.prototype.valueOf=ie.a.prototype.toString,ie.a.fromJSON=function(t){return new ie.a(t)},ie.a.compare=function(t,e){return t.re>e.re?1:t.re<e.re?-1:t.im>e.im?1:t.im<e.im?-1:0},ie.a}),{isClass:!0});function se(t){var e=0,r=1,n=Object.create(null),i=Object.create(null),o=0,a=function(t){var a=i[t];if(a&&(delete n[a],delete i[t],--e,r===a)){if(!e)return o=0,void(r=1);for(;!Object.prototype.hasOwnProperty.call(n,++r););}};return t=Math.abs(t),{hit:function(s){var u=i[s],c=++o;if(n[c]=s,i[s]=c,!u){if(++e<=t)return;return s=n[r],a(s),s}if(delete n[u],r===u)for(;!Object.prototype.hasOwnProperty.call(n,++r););},delete:a,clear:function(){e=o=0,r=1,n=Object.create(null),i=Object.create(null)}}}function ue(t){return ue=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ue(t)}function ce(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.hasher,n=e.limit;return n=null==n?Number.POSITIVE_INFINITY:n,r=null==r?JSON.stringify:r,function e(){\"object\"!==ue(e.cache)&&(e.cache={values:new Map,lru:se(n||Number.POSITIVE_INFINITY)});for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=r(i);if(e.cache.values.has(a))return e.cache.lru.hit(a),e.cache.values.get(a);var s=t.apply(t,i);return e.cache.values.set(a,s),e.cache.values.delete(e.cache.lru.hit(a)),s}}function fe(t){return Object.keys(t.signatures||{}).reduce((function(t,e){var r=(e.match(/,/g)||[]).length+1;return Math.max(t,r)}),-1)}ce((function(t){return new t(1).exp()}),{hasher:he}),ce((function(t){return new t(1).plus(new t(5).sqrt()).div(2)}),{hasher:he});var le=ce((function(t){return t.acos(-1)}),{hasher:he});ce((function(t){return le(t).times(2)}),{hasher:he});function he(t){return t[0].precision}Math.PI,Math.PI,Math.E;pe(\"fineStructure\",.0072973525693),pe(\"weakMixingAngle\",.2229),pe(\"efimovFactor\",22.7),pe(\"sackurTetrode\",-1.16487052358);function pe(t,e){return te(t,[\"config\",\"BigNumber\"],(function(t){var r=t.config,n=t.BigNumber;return\"BigNumber\"===r.number?new n(e):e}))}var de=r(12),me=r.n(de),ye=te(\"Fraction\",[],(function(){return Object.defineProperty(me.a,\"name\",{value:\"Fraction\"}),me.a.prototype.constructor=me.a,me.a.prototype.type=\"Fraction\",me.a.prototype.isFraction=!0,me.a.prototype.toJSON=function(){return{mathjs:\"Fraction\",n:this.s*this.n,d:this.d}},me.a.fromJSON=function(t){return new me.a(t)},me.a}),{isClass:!0}),ve=te(\"Matrix\",[],(function(){function t(){if(!(this instanceof t))throw new SyntaxError(\"Constructor must be called with the new operator\")}return t.prototype.type=\"Matrix\",t.prototype.isMatrix=!0,t.prototype.storage=function(){throw new Error(\"Cannot invoke storage on a Matrix interface\")},t.prototype.datatype=function(){throw new Error(\"Cannot invoke datatype on a Matrix interface\")},t.prototype.create=function(t,e){throw new Error(\"Cannot invoke create on a Matrix interface\")},t.prototype.subset=function(t,e,r){throw new Error(\"Cannot invoke subset on a Matrix interface\")},t.prototype.get=function(t){throw new Error(\"Cannot invoke get on a Matrix interface\")},t.prototype.set=function(t,e,r){throw new Error(\"Cannot invoke set on a Matrix interface\")},t.prototype.resize=function(t,e){throw new Error(\"Cannot invoke resize on a Matrix interface\")},t.prototype.reshape=function(t,e){throw new Error(\"Cannot invoke reshape on a Matrix interface\")},t.prototype.clone=function(){throw new Error(\"Cannot invoke clone on a Matrix interface\")},t.prototype.size=function(){throw new Error(\"Cannot invoke size on a Matrix interface\")},t.prototype.map=function(t,e){throw new Error(\"Cannot invoke map on a Matrix interface\")},t.prototype.forEach=function(t){throw new Error(\"Cannot invoke forEach on a Matrix interface\")},t.prototype[Symbol.iterator]=function(){throw new Error(\"Cannot iterate a Matrix interface\")},t.prototype.toArray=function(){throw new Error(\"Cannot invoke toArray on a Matrix interface\")},t.prototype.valueOf=function(){throw new Error(\"Cannot invoke valueOf on a Matrix interface\")},t.prototype.format=function(t){throw new Error(\"Cannot invoke format on a Matrix interface\")},t.prototype.toString=function(){throw new Error(\"Cannot invoke toString on a Matrix interface\")},t}),{isClass:!0});function ge(t){return ge=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ge(t)}function be(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return we(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return we(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _e(){_e=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new C(n||[]);return i(a,\"_invoke\",{value:S(t,r,s)}),a}function l(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function v(){}function g(){}function b(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(F([])));x&&x!==r&&n.call(x,a)&&(w=x);var E=b.prototype=v.prototype=Object.create(w);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==ge(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=l(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=l(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function F(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(ge(e)+\" is not iterable\")}return g.prototype=b,i(E,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:g,configurable:!0}),g.displayName=c(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},k(D.prototype),c(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new D(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(E),c(E,u,\"Generator\"),c(E,a,(function(){return this})),c(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=F,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}var xe=te(\"DenseMatrix\",[\"Matrix\"],(function(t){var e=t.Matrix;function r(t,e){if(!(this instanceof r))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!h(e))throw new Error(\"Invalid datatype: \"+e);if(d(t))\"DenseMatrix\"===t.type?(this._data=X(t._data),this._size=X(t._size),this._datatype=e||t._datatype):(this._data=t.toArray(),this._size=t.size(),this._datatype=e||t._datatype);else if(t&&p(t.data)&&p(t.size))this._data=t.data,this._size=t.size,Nt(this._data,this._size),this._datatype=e||t.datatype;else if(p(t))this._data=c(t),this._size=Pt(this._data),Nt(this._data,this._size),this._datatype=e;else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._data=[],this._size=[0],this._datatype=e}}function n(t,e,r,i){var o=i===r-1,a=e.dimension(i);return o?a.map((function(e){return Rt(e,t.length),t[e]})).valueOf():a.map((function(o){return Rt(o,t.length),n(t[o],e,r,i+1)})).valueOf()}function i(t,e,r,n,o){var a=o===n-1,s=e.dimension(o);a?s.forEach((function(e,n){Rt(e),t[e]=r[n[0]]})):s.forEach((function(a,s){Rt(a),i(t[a],e,r[s[0]],n,o+1)}))}function o(t,e,r){if(0===e.length){for(var n=t._data;p(n);)n=n[0];return n}return t._size=e.slice(0),t._data=zt(t._data,t._size,r),t}function a(t,e,r){for(var n=t._size.slice(0),i=!1;n.length<e.length;)n.push(0),i=!0;for(var a=0,s=e.length;a<s;a++)e[a]>n[a]&&(n[a]=e[a],i=!0);i&&o(t,n,r)}function c(t){return d(t)?c(t.valueOf()):p(t)?t.map(c):t}return r.prototype=new e,r.prototype.createDenseMatrix=function(t,e){return new r(t,e)},Object.defineProperty(r,\"name\",{value:\"DenseMatrix\"}),r.prototype.constructor=r,r.prototype.type=\"DenseMatrix\",r.prototype.isDenseMatrix=!0,r.prototype.getDataType=function(){return Xt(this._data,W)},r.prototype.storage=function(){return\"dense\"},r.prototype.datatype=function(){return this._datatype},r.prototype.create=function(t,e){return new r(t,e)},r.prototype.subset=function(t,e,o){switch(arguments.length){case 1:return function(t,e){if(!b(e))throw new TypeError(\"Invalid index\");var i=e.isScalar();if(i)return t.get(e.min());var o=e.size();if(o.length!==t._size.length)throw new It(o.length,t._size.length);for(var a=e.min(),s=e.max(),u=0,c=t._size.length;u<c;u++)Rt(a[u],t._size[u]),Rt(s[u],t._size[u]);return new r(n(t._data,e,o.length,0),t._datatype)}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var o,s=e.size(),u=e.isScalar();d(r)?(o=r.size(),r=r.valueOf()):o=Pt(r);if(u){if(0!==o.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),r,n)}else{if(!K(o,s))try{o=Pt(r=0===o.length?$t([r],s):$t(r,s))}catch(t){}if(s.length<t._size.length)throw new It(s.length,t._size.length,\"<\");if(o.length<s.length){for(var c=0,f=0;1===s[c]&&1===o[c];)c++;for(;1===s[c];)f++,c++;r=qt(r,s.length,f,o)}if(!K(s,o))throw new It(s,o,\">\");var l=e.max().map((function(t){return t+1}));a(t,l,n);var h=s.length,p=0;i(t._data,e,r,h,p)}return t}(this,t,e,o);default:throw new SyntaxError(\"Wrong number of arguments\")}},r.prototype.get=function(t){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new It(t.length,this._size.length);for(var e=0;e<t.length;e++)Rt(t[e],this._size[e]);for(var r=this._data,n=0,i=t.length;n<i;n++){var o=t[n];Rt(o,r.length),r=r[o]}return r},r.prototype.set=function(t,e,r){if(!p(t))throw new TypeError(\"Array expected\");if(t.length<this._size.length)throw new It(t.length,this._size.length,\"<\");var n,i,o,s=t.map((function(t){return t+1}));a(this,s,r);var u=this._data;for(n=0,i=t.length-1;n<i;n++)Rt(o=t[n],u.length),u=u[o];return Rt(o=t[t.length-1],u.length),u[o]=e,this},r.prototype.resize=function(t,e,r){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var n=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));return o(r?this.clone():this,n,e)},r.prototype.reshape=function(t,e){var r=e?this.clone():this;r._data=Gt(r._data,t);var n=r._size.reduce((function(t,e){return t*e}));return r._size=Ht(t,n),r},r.prototype.clone=function(){return new r({data:X(this._data),size:X(this._size),datatype:this._datatype})},r.prototype.size=function(){return this._size.slice(0)},r.prototype.map=function(t){var e=this,n=fe(t),i=function r(i,o){return p(i)?i.map((function(t,e){return r(t,o.concat(e))})):1===n?t(i):2===n?t(i,o):t(i,o,e)}(this._data,[]);return new r(i,void 0!==this._datatype?Xt(i,W):void 0)},r.prototype.forEach=function(t){var e=this;!function r(n,i){p(n)?n.forEach((function(t,e){r(t,i.concat(e))})):t(n,i,e)}(this._data,[])},r.prototype[Symbol.iterator]=_e().mark((function t(){var e;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=_e().mark((function t(e,r){var n;return _e().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!p(e)){i.next=9;break}n=0;case 2:if(!(n<e.length)){i.next=7;break}return i.delegateYield(t(e[n],r.concat(n)),\"t0\",4);case 4:n++,i.next=2;break;case 7:i.next=11;break;case 9:return i.next=11,{value:e,index:r};case 11:case\"end\":return i.stop()}}),t)})),t.delegateYield(e(this._data,[]),\"t0\",2);case 2:case\"end\":return t.stop()}}),t,this)})),r.prototype.rows=function(){var t=[];if(2!==this.size().length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");var e,n=be(this._data);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(new r([i],this._datatype))}}catch(t){n.e(t)}finally{n.f()}return t},r.prototype.columns=function(){var t=this,e=[],n=this.size();if(2!==n.length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");for(var i=this._data,o=function(n){var o=i.map((function(t){return[t[n]]}));e.push(new r(o,t._datatype))},a=0;a<n[1];a++)o(a);return e},r.prototype.toArray=function(){return X(this._data)},r.prototype.valueOf=function(){return this._data},r.prototype.format=function(t){return At(this._data,t)},r.prototype.toString=function(){return At(this._data)},r.prototype.toJSON=function(){return{mathjs:\"DenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},r.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;for(var e=t>0?t:0,n=t<0?-t:0,i=this._size[0],o=this._size[1],a=Math.min(i-n,o-e),c=[],f=0;f<a;f++)c[f]=this._data[f+n][f+e];return new r({data:c,size:[a],datatype:this._datatype})},r.diagonal=function(t,e,n,i){if(!p(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),n){if(u(n)&&(n=n.toNumber()),!s(n)||!it(n))throw new TypeError(\"The parameter k must be an integer number\")}else n=0;var o,a=n>0?n:0,c=n<0?-n:0,f=t[0],l=t[1],h=Math.min(f-c,l-a);if(p(e)){if(e.length!==h)throw new Error(\"Invalid value array length\");o=function(t){return e[t]}}else if(d(e)){var m=e.size();if(1!==m.length||m[0]!==h)throw new Error(\"Invalid matrix length\");o=function(t){return e.get([t])}}else o=function(){return e};i||(i=u(o(0))?o(0).mul(0):0);var y=[];if(t.length>0){y=zt(y,t,i);for(var v=0;v<h;v++)y[v+c][v+a]=o(v)}return new r({data:y,size:[f,l]})},r.fromJSON=function(t){return new r(t)},r.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return Rt(t,this._size[0]),Rt(e,this._size[0]),r._swapRows(t,e,this._data),this},r._swapRows=function(t,e,r){var n=r[t];r[t]=r[e],r[e]=n},r}),{isClass:!0}),Ee=r(16),ke=r.n(Ee);function De(t){return De=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},De(t)}function Se(t,e){if(Ce(t)&&Me(t,e))return t[e];if(\"function\"==typeof t[e]&&Oe(t,e))throw new Error('Cannot access method \"'+e+'\" as a property');throw new Error('No access to property \"'+e+'\"')}function Ae(t,e,r){if(Ce(t)&&Me(t,e))return t[e]=r,r;throw new Error('No access to property \"'+e+'\"')}function Me(t,e){return!(!t||\"object\"!==De(t))&&(!!Q(Fe,e)||!(e in Object.prototype)&&!(e in Function.prototype))}function Oe(t,e){return null!=t&&\"function\"==typeof t[e]&&(!(Q(t,e)&&Object.getPrototypeOf&&e in Object.getPrototypeOf(t))&&(!!Q(Ie,e)||!(e in Object.prototype)&&!(e in Function.prototype)))}function Ce(t){return\"object\"===De(t)&&t&&t.constructor===Object}var Fe={length:!0,name:!0},Ie={toString:!0,valueOf:!0,toLocaleString:!0};function Be(t){return Be=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Be(t)}function Te(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Le(n.key),n)}}function Le(t){var e=function(t,e){if(\"object\"!=Be(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=Be(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==Be(e)?e:e+\"\"}var Pe=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.wrappedObject=e},(e=[{key:\"keys\",value:function(){return Object.keys(this.wrappedObject)}},{key:\"get\",value:function(t){return Se(this.wrappedObject,t)}},{key:\"set\",value:function(t,e){return Ae(this.wrappedObject,t,e),this}},{key:\"has\",value:function(t){return e=this.wrappedObject,t in e;var e}}])&&Te(t.prototype,e),r&&Te(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}();function je(t){return!!t&&(t instanceof Map||t instanceof Pe||\"function\"==typeof t.set&&\"function\"==typeof t.get&&\"function\"==typeof t.keys&&\"function\"==typeof t.has)}var Ne=function(){return Ne=ke.a.create,ke.a},Re=te(\"typed\",[\"?BigNumber\",\"?Complex\",\"?DenseMatrix\",\"?Fraction\"],(function(t){var e=t.BigNumber,r=t.Complex,n=t.DenseMatrix,i=t.Fraction,o=Ne();return o.clear(),o.addTypes([{name:\"number\",test:s},{name:\"Complex\",test:c},{name:\"BigNumber\",test:u},{name:\"Fraction\",test:f},{name:\"Unit\",test:l},{name:\"identifier\",test:function(t){return h&&/^(?:[A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])*$/.test(t)}},{name:\"string\",test:h},{name:\"Chain\",test:q},{name:\"Array\",test:p},{name:\"Matrix\",test:d},{name:\"DenseMatrix\",test:y},{name:\"SparseMatrix\",test:v},{name:\"Range\",test:g},{name:\"Index\",test:b},{name:\"boolean\",test:w},{name:\"ResultSet\",test:_},{name:\"Help\",test:x},{name:\"function\",test:E},{name:\"Date\",test:k},{name:\"RegExp\",test:D},{name:\"null\",test:A},{name:\"undefined\",test:M},{name:\"AccessorNode\",test:O},{name:\"ArrayNode\",test:C},{name:\"AssignmentNode\",test:F},{name:\"BlockNode\",test:I},{name:\"ConditionalNode\",test:B},{name:\"ConstantNode\",test:T},{name:\"FunctionNode\",test:P},{name:\"FunctionAssignmentNode\",test:L},{name:\"IndexNode\",test:j},{name:\"Node\",test:N},{name:\"ObjectNode\",test:R},{name:\"OperatorNode\",test:z},{name:\"ParenthesisNode\",test:U},{name:\"RangeNode\",test:G},{name:\"RelationalNode\",test:H},{name:\"SymbolNode\",test:Z},{name:\"Map\",test:je},{name:\"Object\",test:S}]),o.addConversions([{from:\"number\",to:\"BigNumber\",convert:function(t){if(e||ze(t),t.toExponential().replace(/e.*$/,\"\").replace(/^0\\.?0*|\\./,\"\").length>15)throw new TypeError(\"Cannot implicitly convert a number with >15 significant digits to BigNumber (value: \"+t+\"). Use function bignumber(x) to convert to BigNumber.\");return new e(t)}},{from:\"number\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t,0)}},{from:\"BigNumber\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t.toNumber(),0)}},{from:\"Fraction\",to:\"BigNumber\",convert:function(t){throw new TypeError(\"Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.\")}},{from:\"Fraction\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t.valueOf(),0)}},{from:\"number\",to:\"Fraction\",convert:function(t){i||Ge(t);var e=new i(t);if(e.valueOf()!==t)throw new TypeError(\"Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: \"+t+\"). Use function fraction(x) to convert to Fraction.\");return e}},{from:\"string\",to:\"number\",convert:function(t){var e=Number(t);if(isNaN(e))throw new Error('Cannot convert \"'+t+'\" to a number');return e}},{from:\"string\",to:\"BigNumber\",convert:function(t){e||ze(t);try{return new e(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to BigNumber')}}},{from:\"string\",to:\"Fraction\",convert:function(t){i||Ge(t);try{return new i(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Fraction')}}},{from:\"string\",to:\"Complex\",convert:function(t){r||Ue(t);try{return new r(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Complex')}}},{from:\"boolean\",to:\"number\",convert:function(t){return+t}},{from:\"boolean\",to:\"BigNumber\",convert:function(t){return e||ze(t),new e(+t)}},{from:\"boolean\",to:\"Fraction\",convert:function(t){return i||Ge(t),new i(+t)}},{from:\"boolean\",to:\"string\",convert:function(t){return String(t)}},{from:\"Array\",to:\"Matrix\",convert:function(t){return n||function(){throw new Error(\"Cannot convert array into a Matrix: no class 'DenseMatrix' provided\")}(),new n(t)}},{from:\"Matrix\",to:\"Array\",convert:function(t){return t.valueOf()}}]),o.onMismatch=function(t,e,r){var n=o.createError(t,e,r);if([\"wrongType\",\"mismatch\"].includes(n.data.category)&&1===e.length&&m(e[0])&&r.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=n.data,i}throw n},o.onMismatch=function(t,e,r){var n=o.createError(t,e,r);if([\"wrongType\",\"mismatch\"].includes(n.data.category)&&1===e.length&&m(e[0])&&r.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=n.data,i}throw n},o}));function ze(t){throw new Error(\"Cannot convert value \".concat(t,\" into a BigNumber: no class 'BigNumber' provided\"))}function Ue(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Complex number: no class 'Complex' provided\"))}function Ge(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Fraction, no class 'Fraction' provided.\"))}function He(t,e,r){return t&&\"function\"==typeof t.map?t.map((function(t){return He(t,e,r)})):e(t)}var Ze=\"number\",qe=\"number, number\";function We(t){return Math.abs(t)}function Ye(t,e){return t+e}function Xe(t,e){return t-e}function Ve(t,e){return t*e}function Je(t){return-t}function Ke(t){return t}function Qe(t){return ut(t)}function $e(t){return t*t*t}function tr(t){return Math.exp(t)}function er(t){return ct(t)}function rr(t,e){if(!it(t)||!it(e))throw new Error(\"Parameters in function lcm must be integer numbers\");if(0===t||0===e)return 0;for(var r,n=t*e;0!==e;)e=t%(r=e),t=r;return Math.abs(n/t)}function nr(t){return st(t)}function ir(t){return at(t)}function or(t){return ot(t)}function ar(t){return t*t}function sr(t,e){var r,n,i,o=0,a=1,s=1,u=0;if(!it(t)||!it(e))throw new Error(\"Parameters in function xgcd must be integer numbers\");for(;e;)i=t-(n=Math.floor(t/e))*e,r=o,o=a-n*o,a=r,r=s,s=u-n*s,u=r,t=e,e=i;return t<0?[-t,-a,-u]:[t,t?a:0,u]}function ur(t,e){return t*t<1&&e===1/0||t*t>1&&e===-1/0?0:Math.pow(t,e)}We.signature=Ze,Ye.signature=qe,Xe.signature=qe,Ve.signature=qe,Je.signature=Ze,Ke.signature=Ze,Qe.signature=Ze,$e.signature=Ze,tr.signature=Ze,er.signature=Ze,rr.signature=qe,nr.signature=Ze,ir.signature=Ze,or.signature=Ze,ar.signature=Ze,sr.signature=qe,ur.signature=qe;var cr=\"number\";function fr(t){return bt(t)}function lr(t){return Math.atan(1/t)}function hr(t){return isFinite(t)?(Math.log((t+1)/t)+Math.log(t/(t-1)))/2:0}function pr(t){return Math.asin(1/t)}function dr(t){var e=1/t;return Math.log(e+Math.sqrt(e*e+1))}function mr(t){return Math.acos(1/t)}function yr(t){var e=1/t,r=Math.sqrt(e*e-1);return Math.log(r+e)}function vr(t){return wt(t)}function gr(t){return _t(t)}function br(t){return 1/Math.tan(t)}function wr(t){var e=Math.exp(2*t);return(e+1)/(e-1)}function _r(t){return 1/Math.sin(t)}function xr(t){return 0===t?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(t)-Math.exp(-t)))*ot(t)}function Er(t){return 1/Math.cos(t)}function kr(t){return 2/(Math.exp(t)+Math.exp(-t))}function Dr(t){return xt(t)}fr.signature=cr,lr.signature=cr,hr.signature=cr,pr.signature=cr,dr.signature=cr,mr.signature=cr,yr.signature=cr,vr.signature=cr,gr.signature=cr,br.signature=cr,wr.signature=cr,_r.signature=cr,xr.signature=cr,Er.signature=cr,kr.signature=cr,Dr.signature=cr;var Sr=\"addScalar\",Ar=te(Sr,[\"typed\"],(function(t){var e=t.typed;return e(Sr,{\"number, number\":Ye,\"Complex, Complex\":function(t,e){return t.add(e)},\"BigNumber, BigNumber\":function(t,e){return t.plus(e)},\"Fraction, Fraction\":function(t,e){return t.add(e)},\"Unit, Unit\":e.referToSelf((function(t){return function(r,n){if(null===r.value||void 0===r.value)throw new Error(\"Parameter x contains a unit with undefined value\");if(null===n.value||void 0===n.value)throw new Error(\"Parameter y contains a unit with undefined value\");if(!r.equalBase(n))throw new Error(\"Units do not match\");var i=r.clone();return i.value=e.find(t,[i.valueType(),n.valueType()])(i.value,n.value),i.fixPrefix=!1,i}}))})})),Mr=te(\"bignumber\",[\"typed\",\"BigNumber\"],(function(t){var e=t.typed,r=t.BigNumber;return e(\"bignumber\",{\"\":function(){return new r(0)},number:function(t){return new r(t+\"\")},string:function(t){var e=t.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(e){var n=e[2],i=r(e[1]),o=new r(2).pow(Number(n));if(i.gt(o.sub(1)))throw new SyntaxError('String \"'.concat(t,'\" is out of range'));var a=new r(2).pow(Number(n)-1);return i.gte(a)?i.sub(o):i}return new r(t)},BigNumber:function(t){return t},Unit:e.referToSelf((function(t){return function(e){var r=e.clone();return r.value=t(e.value),r}})),Fraction:function(t){return new r(t.n).div(t.d).times(t.s)},null:function(t){return new r(0)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})}));var Or=\"number, number\";function Cr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitAnd\");return t&e}function Fr(t){if(!it(t))throw new Error(\"Integer expected in function bitNot\");return~t}function Ir(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitOr\");return t|e}function Br(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitXor\");return t^e}function Tr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function leftShift\");return t<<e}function Lr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightArithShift\");return t>>e}function Pr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightLogShift\");return t>>>e}Cr.signature=Or,Fr.signature=\"number\",Ir.signature=Or,Br.signature=Or,Tr.signature=Or,Lr.signature=Or,Pr.signature=Or;function jr(t,e){if(e<t)return 1;if(e===t)return e;var r=e+t>>1;return jr(t,r)*jr(r+1,e)}function Nr(t,e){if(!it(t)||t<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(!it(e)||e<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(e>t)throw new TypeError(\"k must be less than or equal to n\");for(var r=t-e,n=1,i=2,o=e<r?e:r,a=e<r?r+1:e+1;a<=t;++a)for(n*=a;i<=o&&n%i==0;)n/=i,++i;return i<=o&&(n/=jr(i,o)),n}Nr.signature=\"number, number\";function Rr(t,e,r){if(null==r)return t.eq(e);if(t.eq(e))return!0;if(t.isNaN()||e.isNaN())return!1;if(t.isFinite()&&e.isFinite()){var n=t.minus(e).abs();if(n.isZero())return!0;var i=t.constructor.max(t.abs(),e.abs());return n.lte(i.times(r))}return!1}var zr=te(\"compareUnits\",[\"typed\"],(function(t){var e=t.typed;return{\"Unit, Unit\":e.referToSelf((function(t){return function(r,n){if(!r.equalBase(n))throw new Error(\"Cannot compare units with different base\");return e.find(t,[r.valueType(),n.valueType()])(r.value,n.value)}}))}})),Ur=\"equalScalar\",Gr=te(Ur,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config,n=zr({typed:e});return e(Ur,{\"boolean, boolean\":function(t,e){return t===e},\"number, number\":function(t,e){return gt(t,e,r.epsilon)},\"BigNumber, BigNumber\":function(t,e){return t.eq(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return t.equals(e)},\"Complex, Complex\":function(t,e){return function(t,e,r){return gt(t.re,e.re,r)&&gt(t.im,e.im,r)}(t,e,r.epsilon)}},n)}));te(Ur,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Ur,{\"number, number\":function(t,e){return gt(t,e,r.epsilon)}})})),Math.pow(2,53);var Hr=\"getMatrixDataType\",Zr=te(Hr,[\"typed\"],(function(t){return(0,t.typed)(Hr,{Array:function(t){return Xt(t,W)},Matrix:function(t){return t.getDataType()}})})),qr=(te(\"hex\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"hex\",{\"number | BigNumber\":function(t){return r(t,{notation:\"hex\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"hex\",wordSize:e})}})})),\"isInteger\"),Wr=te(qr,[\"typed\"],(function(t){var e=t.typed;return e(qr,{number:it,BigNumber:function(t){return t.isInt()},Fraction:function(t){return 1===t.d&&isFinite(t.n)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})})),Yr=\"number\";function Xr(t){return t<0}function Vr(t){return t>0}function Jr(t){return 0===t}function Kr(t){return Number.isNaN(t)}Xr.signature=Yr,Vr.signature=Yr,Jr.signature=Yr,Kr.signature=Yr;var Qr=\"isPositive\",$r=te(Qr,[\"typed\"],(function(t){var e=t.typed;return e(Qr,{number:Vr,BigNumber:function(t){return!t.isNeg()&&!t.isZero()&&!t.isNaN()},Fraction:function(t){return t.s>0&&t.n>0},Unit:e.referToSelf((function(t){return function(r){return e.find(t,r.valueType())(r.value)}})),\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})}));function tn(t){var e;if(it(t))return t<=0?isFinite(t)?1/0:NaN:t>171?1/0:jr(1,t-1);if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*tn(1-t));if(t>=171.35)return 1/0;if(t>85){var r=t*t,n=r*t,i=n*t,o=i*t;return Math.sqrt(2*Math.PI/t)*Math.pow(t/Math.E,t)*(1+1/(12*t)+1/(288*r)-139/(51840*n)-571/(2488320*i)+163879/(209018880*o)+5246819/(75246796800*o*t))}--t,e=rn[0];for(var a=1;a<rn.length;++a)e+=rn[a]/(t+a);var s=t+en+.5;return Math.sqrt(2*Math.PI)*Math.pow(s,t+.5)*Math.exp(-s)*e}tn.signature=\"number\";var en=4.7421875,rn=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],nn=.9189385332046728,on=[1.000000000190015,76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18];function an(t){if(t<0)return NaN;if(0===t)return 1/0;if(!isFinite(t))return t;if(t<.5)return Math.log(Math.PI/Math.sin(Math.PI*t))-an(1-t);for(var e=(t-=1)+5+.5,r=on[0],n=6;n>=1;n--)r+=on[n]/(t+n);return nn+(t+.5)*Math.log(e)-e+Math.log(r)}an.signature=\"number\";var sn=\"number, number\";function un(t){return!t}function cn(t,e){return!(!t&&!e)}function fn(t,e){return!!t!=!!e}function ln(t,e){return!(!t||!e)}un.signature=\"number\",cn.signature=sn,fn.signature=sn,ln.signature=sn;te(\"oct\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"oct\",{\"number | BigNumber\":function(t){return r(t,{notation:\"oct\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"oct\",wordSize:e})}})}));var hn=r(64),pn=r.n(hn);Date.now();function dn(t){return dn=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},dn(t)}function mn(){mn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new C(n||[]);return i(a,\"_invoke\",{value:S(t,r,s)}),a}function l(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function v(){}function g(){}function b(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(F([])));x&&x!==r&&n.call(x,a)&&(w=x);var E=b.prototype=v.prototype=Object.create(w);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==dn(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=l(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=l(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function F(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(dn(e)+\" is not iterable\")}return g.prototype=b,i(E,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:g,configurable:!0}),g.displayName=c(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},k(D.prototype),c(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new D(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(E),c(E,u,\"Generator\"),c(E,a,(function(){return this})),c(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=F,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}var yn=te(\"SparseMatrix\",[\"typed\",\"equalScalar\",\"Matrix\"],(function(t){var e=t.typed,r=t.equalScalar,n=t.Matrix;function i(t,e){if(!(this instanceof i))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!h(e))throw new Error(\"Invalid datatype: \"+e);if(d(t))!function(t,e,r){\"SparseMatrix\"===e.type?(t._values=e._values?X(e._values):void 0,t._index=X(e._index),t._ptr=X(e._ptr),t._size=X(e._size),t._datatype=r||e._datatype):o(t,e.valueOf(),r||e._datatype)}(this,t,e);else if(t&&p(t.index)&&p(t.ptr)&&p(t.size))this._values=t.values,this._index=t.index,this._ptr=t.ptr,this._size=t.size,this._datatype=e||t.datatype;else if(p(t))o(this,t,e);else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=e}}function o(t,n,i){t._values=[],t._index=[],t._ptr=[],t._datatype=i;var o=n.length,a=0,s=r,u=0;if(h(i)&&(s=e.find(r,[i,i])||r,u=e.convert(0,i)),o>0){var c=0;do{t._ptr.push(t._index.length);for(var f=0;f<o;f++){var l=n[f];if(p(l)){if(0===c&&a<l.length&&(a=l.length),c<l.length){var d=l[c];s(d,u)||(t._values.push(d),t._index.push(f))}}else 0===c&&a<1&&(a=1),s(l,u)||(t._values.push(l),t._index.push(f))}c++}while(c<a)}t._ptr.push(t._index.length),t._size=[o,a]}function a(t,e,r,n){if(r-e==0)return r;for(var i=e;i<r;i++)if(n[i]===t)return i;return e}function c(t,e,r,n,i,o,a){i.splice(t,0,n),o.splice(t,0,e);for(var s=r+1;s<a.length;s++)a[s]++}function f(t,n,i,o){var a=o||0,s=r,u=0;h(t._datatype)&&(s=e.find(r,[t._datatype,t._datatype])||r,u=e.convert(0,t._datatype),a=e.convert(a,t._datatype));var c,f,l,p=!s(a,u),d=t._size[0],m=t._size[1];if(i>m){for(f=m;f<i;f++)if(t._ptr[f]=t._values.length,p)for(c=0;c<d;c++)t._values.push(a),t._index.push(c);t._ptr[i]=t._values.length}else i<m&&(t._ptr.splice(i+1,m-i),t._values.splice(t._ptr[i],t._values.length),t._index.splice(t._ptr[i],t._index.length));if(m=i,n>d){if(p){var y=0;for(f=0;f<m;f++){t._ptr[f]=t._ptr[f]+y,l=t._ptr[f+1]+y;var v=0;for(c=d;c<n;c++,v++)t._values.splice(l+v,0,a),t._index.splice(l+v,0,c),y++}t._ptr[m]=t._values.length}}else if(n<d){var g=0;for(f=0;f<m;f++){t._ptr[f]=t._ptr[f]-g;var b=t._ptr[f],w=t._ptr[f+1]-g;for(l=b;l<w;l++)(c=t._index[l])>n-1&&(t._values.splice(l,1),t._index.splice(l,1),g++)}t._ptr[f]=t._values.length}return t._size[0]=n,t._size[1]=i,t}function l(t,e,r,n,i){var o,a,s=n[0],u=n[1],c=[];for(o=0;o<s;o++)for(c[o]=[],a=0;a<u;a++)c[o][a]=0;for(a=0;a<u;a++)for(var f=r[a],l=r[a+1],h=f;h<l;h++)c[o=e[h]][a]=t?i?X(t[h]):t[h]:1;return c}return i.prototype=new n,i.prototype.createSparseMatrix=function(t,e){return new i(t,e)},Object.defineProperty(i,\"name\",{value:\"SparseMatrix\"}),i.prototype.constructor=i,i.prototype.type=\"SparseMatrix\",i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return Xt(this._values,W)},i.prototype.storage=function(){return\"sparse\"},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(t,e){return new i(t,e)},i.prototype.density=function(){var t=this._size[0],e=this._size[1];return 0!==t&&0!==e?this._index.length/(t*e):0},i.prototype.subset=function(t,e,r){if(!this._values)throw new Error(\"Cannot invoke subset on a Pattern only matrix\");switch(arguments.length){case 1:return function(t,e){if(!b(e))throw new TypeError(\"Invalid index\");if(e.isScalar())return t.get(e.min());var r,n,o,a,s=e.size();if(s.length!==t._size.length)throw new It(s.length,t._size.length);var u=e.min(),c=e.max();for(r=0,n=t._size.length;r<n;r++)Rt(u[r],t._size[r]),Rt(c[r],t._size[r]);var f=t._values,l=t._index,h=t._ptr,p=e.dimension(0),d=e.dimension(1),m=[],y=[];p.forEach((function(t,e){y[t]=e[0],m[t]=!0}));var v=f?[]:void 0,g=[],w=[];return d.forEach((function(t){for(w.push(g.length),o=h[t],a=h[t+1];o<a;o++)r=l[o],!0===m[r]&&(g.push(y[r]),v&&v.push(f[o]))})),w.push(g.length),new i({values:v,index:g,ptr:w,size:s,datatype:t._datatype})}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var i,o=e.size(),a=e.isScalar();d(r)?(i=r.size(),r=r.toArray()):i=Pt(r);if(a){if(0!==i.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),r,n)}else{if(1!==o.length&&2!==o.length)throw new It(o.length,t._size.length,\"<\");if(i.length<o.length){for(var s=0,u=0;1===o[s]&&1===i[s];)s++;for(;1===o[s];)u++,s++;r=qt(r,o.length,u,i)}if(!K(o,i))throw new It(o,i,\">\");if(1===o.length){e.dimension(0).forEach((function(e,i){Rt(e),t.set([e,0],r[i[0]],n)}))}else{var c=e.dimension(0),f=e.dimension(1);c.forEach((function(e,i){Rt(e),f.forEach((function(o,a){Rt(o),t.set([e,o],r[i[0]][a[0]],n)}))}))}}return t}(this,t,e,r);default:throw new SyntaxError(\"Wrong number of arguments\")}},i.prototype.get=function(t){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new It(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke get on a Pattern only matrix\");var e=t[0],r=t[1];Rt(e,this._size[0]),Rt(r,this._size[1]);var n=a(e,this._ptr[r],this._ptr[r+1],this._index);return n<this._ptr[r+1]&&this._index[n]===e?this._values[n]:0},i.prototype.set=function(t,n,i){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new It(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke set on a Pattern only matrix\");var o=t[0],s=t[1],u=this._size[0],l=this._size[1],d=r,m=0;h(this._datatype)&&(d=e.find(r,[this._datatype,this._datatype])||r,m=e.convert(0,this._datatype)),(o>u-1||s>l-1)&&(f(this,Math.max(o+1,u),Math.max(s+1,l),i),u=this._size[0],l=this._size[1]),Rt(o,u),Rt(s,l);var y=a(o,this._ptr[s],this._ptr[s+1],this._index);return y<this._ptr[s+1]&&this._index[y]===o?d(n,m)?function(t,e,r,n,i){r.splice(t,1),n.splice(t,1);for(var o=e+1;o<i.length;o++)i[o]--}(y,s,this._values,this._index,this._ptr):this._values[y]=n:d(n,m)||c(y,o,s,n,this._values,this._index,this._ptr),this},i.prototype.resize=function(t,e,r){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var n=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));if(2!==n.length)throw new Error(\"Only two dimensions matrix are supported\");return n.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+At(n)+\")\")})),f(r?this.clone():this,n[0],n[1],e)},i.prototype.reshape=function(t,e){if(!p(t))throw new TypeError(\"Array expected\");if(2!==t.length)throw new Error(\"Sparse matrices can only be reshaped in two dimensions\");t.forEach((function(e){if(!s(e)||!it(e)||e<=-2||0===e)throw new TypeError(\"Invalid size, must contain positive integers or -1 (size: \"+At(t)+\")\")}));var r=this._size[0]*this._size[1];if(r!==(t=Ht(t,r))[0]*t[1])throw new Error(\"Reshaping sparse matrix will result in the wrong number of elements\");var n=e?this.clone():this;if(this._size[0]===t[0]&&this._size[1]===t[1])return n;for(var i=[],o=0;o<n._ptr.length;o++)for(var u=0;u<n._ptr[o+1]-n._ptr[o];u++)i.push(o);for(var f=n._values.slice(),l=n._index.slice(),h=0;h<n._index.length;h++){var d=l[h],m=i[h],y=d*n._size[1]+m;i[h]=y%t[1],l[h]=Math.floor(y/t[1])}n._values.length=0,n._index.length=0,n._ptr.length=t[1]+1,n._size=t.slice();for(var v=0;v<n._ptr.length;v++)n._ptr[v]=0;for(var g=0;g<f.length;g++){var b=l[g],w=i[g],_=f[g];c(a(b,n._ptr[w],n._ptr[w+1],n._index),b,w,_,n._values,n._index,n._ptr)}return n},i.prototype.clone=function(){return new i({values:this._values?X(this._values):void 0,index:X(this._index),ptr:X(this._ptr),size:X(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(t,n){if(!this._values)throw new Error(\"Cannot invoke map on a Pattern only matrix\");var o=this,a=this._size[0],s=this._size[1],u=fe(t);return function(t,n,o,a,s,u,c){var f=[],l=[],p=[],d=r,m=0;h(t._datatype)&&(d=e.find(r,[t._datatype,t._datatype])||r,m=e.convert(0,t._datatype));for(var y=function(t,e,r){t=u(t,e,r),d(t,m)||(f.push(t),l.push(e))},v=a;v<=s;v++){p.push(f.length);var g=t._ptr[v],b=t._ptr[v+1];if(c)for(var w=g;w<b;w++){var _=t._index[w];_>=n&&_<=o&&y(t._values[w],_-n,v-a)}else{for(var x={},E=g;E<b;E++){x[t._index[E]]=t._values[E]}for(var k=n;k<=o;k++){y(k in x?x[k]:0,k-n,v-a)}}}return p.push(f.length),new i({values:f,index:l,ptr:p,size:[o-n+1,s-a+1]})}(this,0,a-1,0,s-1,(function(e,r,n){return 1===u?t(e):2===u?t(e,[r,n]):t(e,[r,n],o)}),n)},i.prototype.forEach=function(t,e){if(!this._values)throw new Error(\"Cannot invoke forEach on a Pattern only matrix\");for(var r=this._size[0],n=this._size[1],i=0;i<n;i++){var o=this._ptr[i],a=this._ptr[i+1];if(e)for(var s=o;s<a;s++){var u=this._index[s];t(this._values[s],[u,i],this)}else{for(var c={},f=o;f<a;f++){c[this._index[f]]=this._values[f]}for(var l=0;l<r;l++){t(l in c?c[l]:0,[l,i],this)}}}},i.prototype[Symbol.iterator]=mn().mark((function t(){var e,r,n,i,o,a;return mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._values){t.next=2;break}throw new Error(\"Cannot iterate a Pattern only matrix\");case 2:e=this._size[1],r=0;case 4:if(!(r<e)){t.next=18;break}n=this._ptr[r],i=this._ptr[r+1],o=n;case 8:if(!(o<i)){t.next=15;break}return a=this._index[o],t.next=12,{value:this._values[o],index:[a,r]};case 12:o++,t.next=8;break;case 15:r++,t.next=4;break;case 18:case\"end\":return t.stop()}}),t,this)})),i.prototype.toArray=function(){return l(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return l(this._values,this._index,this._ptr,this._size,!1)},i.prototype.format=function(t){for(var e=this._size[0],r=this._size[1],n=this.density(),i=\"Sparse Matrix [\"+At(e,t)+\" x \"+At(r,t)+\"] density: \"+At(n,t)+\"\\n\",o=0;o<r;o++)for(var a=this._ptr[o],s=this._ptr[o+1],u=a;u<s;u++){i+=\"\\n    (\"+At(this._index[u],t)+\", \"+At(o,t)+\") ==> \"+(this._values?At(this._values[u],t):\"X\")}return i},i.prototype.toString=function(){return At(this.toArray())},i.prototype.toJSON=function(){return{mathjs:\"SparseMatrix\",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;var e=t>0?t:0,r=t<0?-t:0,n=this._size[0],o=this._size[1],a=Math.min(n-r,o-e),c=[],f=[],l=[];l[0]=0;for(var h=e;h<o&&c.length<a;h++)for(var p=this._ptr[h],d=this._ptr[h+1],m=p;m<d;m++){var y=this._index[m];if(y===h-e+r){c.push(this._values[m]),f[c.length-1]=y-r;break}}return l.push(c.length),new i({values:c,index:f,ptr:l,size:[a,1]})},i.fromJSON=function(t){return new i(t)},i.diagonal=function(t,n,o,a,c){if(!p(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),o){if(u(o)&&(o=o.toNumber()),!s(o)||!it(o))throw new TypeError(\"The parameter k must be an integer number\")}else o=0;var f=r,l=0;h(c)&&(f=e.find(r,[c,c])||r,l=e.convert(0,c));var m,y=o>0?o:0,v=o<0?-o:0,g=t[0],b=t[1],w=Math.min(g-v,b-y);if(p(n)){if(n.length!==w)throw new Error(\"Invalid value array length\");m=function(t){return n[t]}}else if(d(n)){var _=n.size();if(1!==_.length||_[0]!==w)throw new Error(\"Invalid matrix length\");m=function(t){return n.get([t])}}else m=function(){return n};for(var x=[],E=[],k=[],D=0;D<b;D++){k.push(x.length);var S=D-y;if(S>=0&&S<w){var A=m(S);f(A,l)||(E.push(S+v),x.push(A))}}return k.push(x.length),new i({values:x,index:E,ptr:k,size:[g,b]})},i.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return Rt(t,this._size[0]),Rt(e,this._size[0]),i._swapRows(t,e,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(t,e,r,n,i){for(var o=n[t],a=n[t+1],s=o;s<a;s++)i(r[s],e[s])},i._swapRows=function(t,e,r,n,i,o){for(var s=0;s<r;s++){var u=o[s],c=o[s+1],f=a(t,u,c,i),l=a(e,u,c,i);if(f<c&&l<c&&i[f]===t&&i[l]===e){if(n){var h=n[f];n[f]=n[l],n[l]=h}}else if(f<c&&i[f]===t&&(l>=c||i[l]!==e)){var p=n?n[f]:void 0;i.splice(l,0,e),n&&n.splice(l,0,p),i.splice(l<=f?f+1:f,1),n&&n.splice(l<=f?f+1:f,1)}else if(l<c&&i[l]===e&&(f>=c||i[f]!==t)){var d=n?n[l]:void 0;i.splice(f,0,t),n&&n.splice(f,0,d),i.splice(f<=l?l+1:l,1),n&&n.splice(f<=l?l+1:l,1)}}},i}),{isClass:!0});te(\"bin\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"bin\",{\"number | BigNumber\":function(t){return r(t,{notation:\"bin\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"bin\",wordSize:e})}})}));var vn=\"matrix\",gn=te(vn,[\"typed\",\"Matrix\",\"DenseMatrix\",\"SparseMatrix\"],(function(t){var e=t.typed,r=(t.Matrix,t.DenseMatrix),n=t.SparseMatrix;return e(vn,{\"\":function(){return i([])},string:function(t){return i([],t)},\"string, string\":function(t,e){return i([],t,e)},Array:function(t){return i(t)},Matrix:function(t){return i(t,t.storage())},\"Array | Matrix, string\":i,\"Array | Matrix, string, string\":i});function i(t,e,i){if(\"dense\"===e||\"default\"===e||void 0===e)return new r(t,i);if(\"sparse\"===e)return new n(t,i);throw new TypeError(\"Unknown matrix type \"+JSON.stringify(e)+\".\")}}));function bn(){throw new Error('No \"bignumber\" implementation available')}function wn(){throw new Error('No \"matrix\" implementation available')}var _n=\"transpose\",xn=te(_n,[\"typed\",\"matrix\"],(function(t){var e=t.typed,r=t.matrix;return e(_n,{Array:function(t){return n(r(t)).valueOf()},Matrix:n,any:X});function n(t){var e,r=t.size();switch(r.length){case 1:e=t.clone();break;case 2:var n=r[0],i=r[1];if(0===i)throw new RangeError(\"Cannot transpose a 2D matrix with no columns (size: \"+At(r)+\")\");switch(t.storage()){case\"dense\":e=function(t,e,r){for(var n,i=t._data,o=[],a=0;a<r;a++){n=o[a]=[];for(var s=0;s<e;s++)n[s]=X(i[s][a])}return t.createDenseMatrix({data:o,size:[r,e],datatype:t._datatype})}(t,n,i);break;case\"sparse\":e=function(t,e,r){for(var n,i,o,a=t._values,s=t._index,u=t._ptr,c=a?[]:void 0,f=[],l=[],h=[],p=0;p<e;p++)h[p]=0;for(n=0,i=s.length;n<i;n++)h[s[n]]++;for(var d=0,m=0;m<e;m++)l.push(d),d+=h[m],h[m]=l[m];for(l.push(d),o=0;o<r;o++)for(var y=u[o],v=u[o+1],g=y;g<v;g++){var b=h[s[g]]++;f[b]=o,a&&(c[b]=X(a[g]))}return t.createSparseMatrix({values:c,index:f,ptr:l,size:[r,e],datatype:t._datatype})}(t,n,i)}break;default:throw new RangeError(\"Matrix must be a vector or two dimensional (size: \"+At(r)+\")\")}return e}})),En=\"concat\",kn=te(En,[\"typed\",\"matrix\",\"isInteger\"],(function(t){var e=t.typed,r=t.matrix,n=t.isInteger;return e(En,{\"...Array | Matrix | number | BigNumber\":function(t){var e,i,o=t.length,a=-1,c=!1,f=[];for(e=0;e<o;e++){var l=t[e];if(d(l)&&(c=!0),s(l)||u(l)){if(e!==o-1)throw new Error(\"Dimension must be specified as last argument\");if(i=a,a=l.valueOf(),!n(a))throw new TypeError(\"Integer number expected for dimension\");if(a<0||e>0&&a>i)throw new Bt(a,i+1)}else{var h=X(l).valueOf(),p=Pt(h);if(f[e]=h,i=a,a=p.length-1,e>0&&a!==i)throw new It(i+1,a+1)}}if(0===f.length)throw new SyntaxError(\"At least one matrix expected\");for(var m=f.shift();f.length;)m=Jt(m,f.shift(),a);return c?r(m):m},\"...string\":function(t){return t.join(\"\")}})})),Dn=te(\"matAlgo03xDSf\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,n,i){var o=t._data,a=t._size,s=t._datatype,u=r._values,c=r._index,f=r._ptr,l=r._size,h=r._datatype;if(a.length!==l.length)throw new It(a.length,l.length);if(a[0]!==l[0]||a[1]!==l[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+l+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var p,d=a[0],m=a[1],y=0,v=n;\"string\"==typeof s&&s===h&&(p=s,y=e.convert(0,p),v=e.find(n,[p,p]));for(var g=[],b=0;b<d;b++)g[b]=[];for(var w=[],_=[],x=0;x<m;x++){for(var E=x+1,k=f[x],D=f[x+1],S=k;S<D;S++){var A=c[S];w[A]=i?v(u[S],o[A][x]):v(o[A][x],u[S]),_[A]=E}for(var M=0;M<d;M++)_[M]===E?g[M][x]=w[M]:g[M][x]=i?v(y,o[M][x]):v(o[M][x],y)}return t.createDenseMatrix({data:g,size:[d,m],datatype:p})}})),Sn=te(\"matAlgo07xSSf\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,i,o){var a=t._size,s=t._datatype,u=i._size,c=i._datatype;if(a.length!==u.length)throw new It(a.length,u.length);if(a[0]!==u[0]||a[1]!==u[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+u+\")\");var f,l,h,p=a[0],d=a[1],m=0,y=o;\"string\"==typeof s&&s===c&&(f=s,m=e.convert(0,f),y=e.find(o,[f,f]));var v=[];for(l=0;l<p;l++)v[l]=[];var g=[],b=[],w=[],_=[];for(h=0;h<d;h++){var x=h+1;for(n(t,h,w,g,x),n(i,h,_,b,x),l=0;l<p;l++){var E=w[l]===x?g[l]:m,k=_[l]===x?b[l]:m;v[l][h]=y(E,k)}}return new r({data:v,size:[p,d],datatype:f})};function n(t,e,r,n,i){for(var o=t._values,a=t._index,s=t._ptr,u=s[e],c=s[e+1];u<c;u++){var f=a[u];r[f]=i,n[f]=o[u]}}})),An=te(\"matAlgo12xSfs\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,n,i,o){var a=t._values,s=t._index,u=t._ptr,c=t._size,f=t._datatype;if(!a)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var l,h=c[0],p=c[1],d=i;\"string\"==typeof f&&(l=f,n=e.convert(n,l),d=e.find(i,[l,l]));for(var m=[],y=[],v=[],g=0;g<p;g++){for(var b=g+1,w=u[g],_=u[g+1],x=w;x<_;x++){var E=s[x];y[E]=a[x],v[E]=b}for(var k=0;k<h;k++)0===g&&(m[k]=[]),v[k]===b?m[k][g]=o?d(n,y[k]):d(y[k],n):m[k][g]=o?d(n,0):d(0,n)}return new r({data:m,size:[h,p],datatype:l})}})),Mn=te(\"matAlgo13xDD\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,i){var o,a=t._data,s=t._size,u=t._datatype,c=n._data,f=n._size,l=n._datatype,h=[];if(s.length!==f.length)throw new It(s.length,f.length);for(var p=0;p<s.length;p++){if(s[p]!==f[p])throw new RangeError(\"Dimension mismatch. Matrix A (\"+s+\") must match Matrix B (\"+f+\")\");h[p]=s[p]}var d=i;\"string\"==typeof u&&u===l&&(o=u,d=e.find(i,[o,o]));var m=h.length>0?r(d,0,h,h[0],a,c):[];return t.createDenseMatrix({data:m,size:h,datatype:o})};function r(t,e,n,i,o,a){var s=[];if(e===n.length-1)for(var u=0;u<i;u++)s[u]=t(o[u],a[u]);else for(var c=0;c<i;c++)s[c]=r(t,e+1,n,n[e+1],o[c],a[c]);return s}})),On=te(\"matAlgo14xDs\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,i,o){var a,s=t._data,u=t._size,c=t._datatype,f=i;\"string\"==typeof c&&(a=c,n=e.convert(n,a),f=e.find(i,[a,a]));var l=u.length>0?r(f,0,u,u[0],s,n,o):[];return t.createDenseMatrix({data:l,size:X(u),datatype:a})};function r(t,e,n,i,o,a,s){var u=[];if(e===n.length-1)for(var c=0;c<i;c++)u[c]=s?t(a,o[c]):t(o[c],a);else for(var f=0;f<i;f++)u[f]=r(t,e+1,n,n[e+1],o[f],a,s);return u}}));function Cn(t){return function(t){if(Array.isArray(t))return Fn(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Fn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fn(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Fn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var In=te(\"broadcast\",[\"concat\"],(function(t){var e=t.concat;return function(t,e){var i=Math.max(t._size.length,e._size.length);if(t._size.length===e._size.length&&t._size.every((function(t,r){return t===e._size[r]})))return[t,e];for(var o=r(t._size,i,0),a=r(e._size,i,0),s=[],u=0;u<i;u++)s[u]=Math.max(o[u],a[u]);Qt(o,s),Qt(a,s);var c=t.clone(),f=e.clone();c._size.length<i?c.reshape(r(c._size,i,1)):f._size.length<i&&f.reshape(r(f._size,i,1));for(var l=0;l<i;l++)c._size[l]<s[l]&&(c=n(c,s[l],l)),f._size[l]<s[l]&&(f=n(f,s[l],l));return[c,f]};function r(t,e,r){return[].concat(Cn(Array(e-t.length).fill(r)),Cn(t))}function n(t,r,n){return e.apply(void 0,Cn(Array(r).fill(t)).concat([n]))}}));function Bn(t){return function(t){if(Array.isArray(t))return Tn(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Tn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tn(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Tn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ln=te(\"matrixAlgorithmSuite\",[\"typed\",\"matrix\",\"concat\"],(function(t){var e=t.typed,r=t.matrix,n=t.concat,i=Mn({typed:e}),o=On({typed:e}),a=In({concat:n});return function(t){var n,s=t.elop,u=t.SD||t.DS;s?(n={\"DenseMatrix, DenseMatrix\":function(t,e){return i.apply(void 0,Bn(a(t,e)).concat([s]))},\"Array, Array\":function(t,e){return i.apply(void 0,Bn(a(r(t),r(e))).concat([s])).valueOf()},\"Array, DenseMatrix\":function(t,e){return i.apply(void 0,Bn(a(r(t),e)).concat([s]))},\"DenseMatrix, Array\":function(t,e){return i.apply(void 0,Bn(a(t,r(e))).concat([s]))}},t.SS&&(n[\"SparseMatrix, SparseMatrix\"]=function(e,r){return t.SS.apply(t,Bn(a(e,r)).concat([s,!1]))}),t.DS&&(n[\"DenseMatrix, SparseMatrix\"]=function(e,r){return t.DS.apply(t,Bn(a(e,r)).concat([s,!1]))},n[\"Array, SparseMatrix\"]=function(e,n){return t.DS.apply(t,Bn(a(r(e),n)).concat([s,!1]))}),u&&(n[\"SparseMatrix, DenseMatrix\"]=function(t,e){return u.apply(void 0,Bn(a(e,t)).concat([s,!0]))},n[\"SparseMatrix, Array\"]=function(t,e){return u.apply(void 0,Bn(a(r(e),t)).concat([s,!0]))})):(n={\"DenseMatrix, DenseMatrix\":e.referToSelf((function(t){return function(e,r){return i.apply(void 0,Bn(a(e,r)).concat([t]))}})),\"Array, Array\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,Bn(a(r(e),r(n))).concat([t])).valueOf()}})),\"Array, DenseMatrix\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,Bn(a(r(e),n)).concat([t]))}})),\"DenseMatrix, Array\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,Bn(a(e,r(n))).concat([t]))}}))},t.SS&&(n[\"SparseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(r,n){return t.SS.apply(t,Bn(a(r,n)).concat([e,!1]))}}))),t.DS&&(n[\"DenseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(r,n){return t.DS.apply(t,Bn(a(r,n)).concat([e,!1]))}})),n[\"Array, SparseMatrix\"]=e.referToSelf((function(e){return function(n,i){return t.DS.apply(t,Bn(a(r(n),i)).concat([e,!1]))}}))),u&&(n[\"SparseMatrix, DenseMatrix\"]=e.referToSelf((function(t){return function(e,r){return u.apply(void 0,Bn(a(r,e)).concat([t,!0]))}})),n[\"SparseMatrix, Array\"]=e.referToSelf((function(t){return function(e,n){return u.apply(void 0,Bn(a(r(n),e)).concat([t,!0]))}}))));var c=t.scalar||\"any\";(t.Ds||t.Ss)&&(s?(n[\"DenseMatrix,\"+c]=function(t,e){return o(t,e,s,!1)},n[c+\", DenseMatrix\"]=function(t,e){return o(e,t,s,!0)},n[\"Array,\"+c]=function(t,e){return o(r(t),e,s,!1).valueOf()},n[c+\", Array\"]=function(t,e){return o(r(e),t,s,!0).valueOf()}):(n[\"DenseMatrix,\"+c]=e.referToSelf((function(t){return function(e,r){return o(e,r,t,!1)}})),n[c+\", DenseMatrix\"]=e.referToSelf((function(t){return function(e,r){return o(r,e,t,!0)}})),n[\"Array,\"+c]=e.referToSelf((function(t){return function(e,n){return o(r(e),n,t,!1).valueOf()}})),n[c+\", Array\"]=e.referToSelf((function(t){return function(e,n){return o(r(n),e,t,!0).valueOf()}}))));var f=void 0!==t.sS?t.sS:t.Ss;return s?(t.Ss&&(n[\"SparseMatrix,\"+c]=function(e,r){return t.Ss(e,r,s,!1)}),f&&(n[c+\", SparseMatrix\"]=function(t,e){return f(e,t,s,!0)})):(t.Ss&&(n[\"SparseMatrix,\"+c]=e.referToSelf((function(e){return function(r,n){return t.Ss(r,n,e,!1)}}))),f&&(n[c+\", SparseMatrix\"]=e.referToSelf((function(t){return function(e,r){return f(r,e,t,!0)}})))),s&&s.signatures&&J(n,s.signatures),n}})),Pn=\"equal\",jn=(te(Pn,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return e(Pn,{\"any, any\":function(t,e){return null===t?null===e:null===e?null===t:void 0===t?void 0===e:void 0===e?void 0===t:r(t,e)}})})),\"largerEq\"),Nn=te(jn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Dn({typed:e}),s=Sn({typed:e,DenseMatrix:i}),u=An({typed:e,DenseMatrix:i}),c=Ln({typed:e,matrix:n,concat:o}),f=zr({typed:e});return e(jn,Rn({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t>=e},\"BigNumber, BigNumber\":function(t,e){return t.gte(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return-1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},f,c({SS:s,DS:a,Ss:u}))})),Rn=te(jn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(jn,{\"number, number\":function(t,e){return t>=e||gt(t,e,r.epsilon)}})})),zn=te(\"matAlgo01xDSid\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,n,i){var o=t._data,a=t._size,s=t._datatype,u=r._values,c=r._index,f=r._ptr,l=r._size,h=r._datatype;if(a.length!==l.length)throw new It(a.length,l.length);if(a[0]!==l[0]||a[1]!==l[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+l+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var p,d,m=a[0],y=a[1],v=\"string\"==typeof s&&s===h?s:void 0,g=v?e.find(n,[v,v]):n,b=[];for(p=0;p<m;p++)b[p]=[];var w=[],_=[];for(d=0;d<y;d++){for(var x=d+1,E=f[d],k=f[d+1],D=E;D<k;D++)w[p=c[D]]=i?g(u[D],o[p][d]):g(o[p][d],u[D]),_[p]=x;for(p=0;p<m;p++)_[p]===x?b[p][d]=w[p]:b[p][d]=o[p][d]}return t.createDenseMatrix({data:b,size:[m,y],datatype:v})}})),Un=te(\"matAlgo10xSids\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,n,i,o){var a=t._values,s=t._index,u=t._ptr,c=t._size,f=t._datatype;if(!a)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var l,h=c[0],p=c[1],d=i;\"string\"==typeof f&&(l=f,n=e.convert(n,l),d=e.find(i,[l,l]));for(var m=[],y=[],v=[],g=0;g<p;g++){for(var b=g+1,w=u[g],_=u[g+1],x=w;x<_;x++){var E=s[x];y[E]=a[x],v[E]=b}for(var k=0;k<h;k++)0===g&&(m[k]=[]),v[k]===b?m[k][g]=o?d(n,y[k]):d(y[k],n):m[k][g]=n}return new r({data:m,size:[h,p],datatype:l})}}));function Gn(t,e,r,n){if(!(this instanceof Gn))throw new SyntaxError(\"Constructor must be called with the new operator\");this.fn=t,this.count=e,this.min=r,this.max=n,this.message=\"Wrong number of arguments in function \"+t+\" (\"+e+\" provided, \"+r+(null!=n?\"-\"+n:\"\")+\" expected)\",this.stack=(new Error).stack}Gn.prototype=new Error,Gn.prototype.constructor=Error,Gn.prototype.name=\"ArgumentsError\",Gn.prototype.isArgumentsError=!0;var Hn=\"smaller\",Zn=te(Hn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Dn({typed:e}),s=Sn({typed:e,DenseMatrix:i}),u=An({typed:e,DenseMatrix:i}),c=Ln({typed:e,matrix:n,concat:o}),f=zr({typed:e});return e(Hn,qn({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t<e},\"BigNumber, BigNumber\":function(t,e){return t.lt(e)&&!Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return-1===t.compare(e)},\"Complex, Complex\":function(t,e){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},f,c({SS:s,DS:a,Ss:u}))})),qn=te(Hn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Hn,{\"number, number\":function(t,e){return t<e&&!gt(t,e,r.epsilon)}})})),Wn=\"unequal\",Yn=(te(Wn,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return e(Wn,{\"any, any\":function(t,e){return null===t?null!==e:null===e?null!==t:void 0===t?void 0!==e:void 0===e?void 0!==t:!r(t,e)}})})),te(\"matAlgo04xSidSid\",[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return function(t,n,i){var o=t._values,a=t._index,s=t._ptr,u=t._size,c=t._datatype,f=n._values,l=n._index,h=n._ptr,p=n._size,d=n._datatype;if(u.length!==p.length)throw new It(u.length,p.length);if(u[0]!==p[0]||u[1]!==p[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+u+\") must match Matrix B (\"+p+\")\");var m,y=u[0],v=u[1],g=r,b=0,w=i;\"string\"==typeof c&&c===d&&(m=c,g=e.find(r,[m,m]),b=e.convert(0,m),w=e.find(i,[m,m]));var _,x,E,k,D,S=o&&f?[]:void 0,A=[],M=[],O=o&&f?[]:void 0,C=o&&f?[]:void 0,F=[],I=[];for(x=0;x<v;x++){M[x]=A.length;var B=x+1;for(k=s[x],D=s[x+1],E=k;E<D;E++)_=a[E],A.push(_),F[_]=B,O&&(O[_]=o[E]);for(k=h[x],D=h[x+1],E=k;E<D;E++)if(F[_=l[E]]===B){if(O){var T=w(O[_],f[E]);g(T,b)?F[_]=null:O[_]=T}}else A.push(_),I[_]=B,C&&(C[_]=f[E]);if(O&&C)for(E=M[x];E<A.length;)F[_=A[E]]===B?(S[E]=O[_],E++):I[_]===B?(S[E]=C[_],E++):A.splice(E,1)}return M[v]=A.length,t.createSparseMatrix({values:S,index:A,ptr:M,size:[y,v],datatype:m})}}))),Xn=te(\"add\",[\"typed\",\"matrix\",\"addScalar\",\"equalScalar\",\"DenseMatrix\",\"SparseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.matrix,n=t.addScalar,i=t.equalScalar,o=t.DenseMatrix,a=(t.SparseMatrix,t.concat),s=zn({typed:e}),u=Yn({typed:e,equalScalar:i}),c=Un({typed:e,DenseMatrix:o}),f=Ln({typed:e,matrix:r,concat:a});return e(\"add\",{\"any, any\":n,\"any, any, ...any\":e.referToSelf((function(t){return function(e,r,n){for(var i=t(e,r),o=0;o<n.length;o++)i=t(i,n[o]);return i}}))},f({elop:n,DS:s,SS:u,Ss:c}))}));Ft.signature=\"any, any\";var Vn=\"number | BigNumber | Fraction | Matrix | Array\";\"\".concat(Vn,\", \").concat(Vn,\", ...\").concat(Vn);var Jn=te(\"ImmutableDenseMatrix\",[\"smaller\",\"DenseMatrix\"],(function(t){var e=t.smaller,r=t.DenseMatrix;function n(t,e){if(!(this instanceof n))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!h(e))throw new Error(\"Invalid datatype: \"+e);if(d(t)||p(t)){var i=new r(t,e);this._data=i._data,this._size=i._size,this._datatype=i._datatype,this._min=null,this._max=null}else if(t&&p(t.data)&&p(t.size))this._data=t.data,this._size=t.size,this._datatype=t.datatype,this._min=void 0!==t.min?t.min:null,this._max=void 0!==t.max?t.max:null;else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._data=[],this._size=[0],this._datatype=e,this._min=null,this._max=null}}return n.prototype=new r,n.prototype.type=\"ImmutableDenseMatrix\",n.prototype.isImmutableDenseMatrix=!0,n.prototype.subset=function(t){switch(arguments.length){case 1:var e=r.prototype.subset.call(this,t);return d(e)?new n({data:e._data,size:e._size,datatype:e._datatype}):e;case 2:case 3:throw new Error(\"Cannot invoke set subset on an Immutable Matrix instance\");default:throw new SyntaxError(\"Wrong number of arguments\")}},n.prototype.set=function(){throw new Error(\"Cannot invoke set on an Immutable Matrix instance\")},n.prototype.resize=function(){throw new Error(\"Cannot invoke resize on an Immutable Matrix instance\")},n.prototype.reshape=function(){throw new Error(\"Cannot invoke reshape on an Immutable Matrix instance\")},n.prototype.clone=function(){return new n({data:X(this._data),size:X(this._size),datatype:this._datatype})},n.prototype.toJSON=function(){return{mathjs:\"ImmutableDenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},n.fromJSON=function(t){return new n(t)},n.prototype.swapRows=function(){throw new Error(\"Cannot invoke swapRows on an Immutable Matrix instance\")},n.prototype.min=function(){if(null===this._min){var t=null;this.forEach((function(r){(null===t||e(r,t))&&(t=r)})),this._min=null!==t?t:void 0}return this._min},n.prototype.max=function(){if(null===this._max){var t=null;this.forEach((function(r){(null===t||e(t,r))&&(t=r)})),this._max=null!==t?t:void 0}return this._max},n}),{isClass:!0}),Kn=te(\"Index\",[\"ImmutableDenseMatrix\",\"getMatrixDataType\"],(function(t){var e=t.ImmutableDenseMatrix,r=t.getMatrixDataType;function n(t){if(!(this instanceof n))throw new SyntaxError(\"Constructor must be called with the new operator\");this._dimensions=[],this._sourceSize=[],this._isScalar=!0;for(var e=0,o=arguments.length;e<o;e++){var a=arguments[e],s=p(a),u=d(a),c=null;if(g(a))this._dimensions.push(a),this._isScalar=!1;else if(s||u){var f=void 0;\"boolean\"===r(a)?(s&&(f=i(Qn(a).valueOf())),u&&(f=i(Qn(a._data).valueOf())),c=a.valueOf().length):f=i(a.valueOf()),this._dimensions.push(f);var l=f.size();1===l.length&&1===l[0]&&null===c||(this._isScalar=!1)}else if(\"number\"==typeof a)this._dimensions.push(i([a]));else{if(\"string\"!=typeof a)throw new TypeError(\"Dimension must be an Array, Matrix, number, string, or Range\");this._dimensions.push(a)}this._sourceSize.push(c)}}function i(t){for(var r=0,n=t.length;r<n;r++)if(\"number\"!=typeof t[r]||!it(t[r]))throw new TypeError(\"Index parameters must be positive integer numbers\");return new e(t)}return n.prototype.type=\"Index\",n.prototype.isIndex=!0,n.prototype.clone=function(){var t=new n;return t._dimensions=X(this._dimensions),t._isScalar=this._isScalar,t._sourceSize=this._sourceSize,t},n.create=function(t){var e=new n;return n.apply(e,t),e},n.prototype.size=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?1:n.size()[0]}return t},n.prototype.max=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?n:n.max()}return t},n.prototype.min=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?n:n.min()}return t},n.prototype.forEach=function(t){for(var e=0,r=this._dimensions.length;e<r;e++)t(this._dimensions[e],e,this)},n.prototype.dimension=function(t){return this._dimensions[t]||null},n.prototype.isObjectProperty=function(){return 1===this._dimensions.length&&\"string\"==typeof this._dimensions[0]},n.prototype.getObjectProperty=function(){return this.isObjectProperty()?this._dimensions[0]:null},n.prototype.isScalar=function(){return this._isScalar},n.prototype.toArray=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t.push(\"string\"==typeof n?n:n.toArray())}return t},n.prototype.valueOf=n.prototype.toArray,n.prototype.toString=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];\"string\"==typeof n?t.push(JSON.stringify(n)):t.push(n.toString())}return\"[\"+t.join(\", \")+\"]\"},n.prototype.toJSON=function(){return{mathjs:\"Index\",dimensions:this._dimensions}},n.fromJSON=function(t){return n.create(t.dimensions)},n}),{isClass:!0});function Qn(t){var e=[];return t.forEach((function(t,r){t&&e.push(r)})),e}var $n=\"larger\",ti=te($n,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Dn({typed:e}),s=Sn({typed:e,DenseMatrix:i}),u=An({typed:e,DenseMatrix:i}),c=Ln({typed:e,matrix:n,concat:o}),f=zr({typed:e});return e($n,ei({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t>e},\"BigNumber, BigNumber\":function(t,e){return t.gt(e)&&!Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return 1===t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},f,c({SS:s,DS:a,Ss:u}))})),ei=te($n,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e($n,{\"number, number\":function(t,e){return t>e&&!gt(t,e,r.epsilon)}})}));r(22);var ri=\"smallerEq\",ni=te(ri,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Dn({typed:e}),s=Sn({typed:e,DenseMatrix:i}),u=An({typed:e,DenseMatrix:i}),c=Ln({typed:e,matrix:n,concat:o}),f=zr({typed:e});return e(ri,ii({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t<=e},\"BigNumber, BigNumber\":function(t,e){return t.lte(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return 1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},f,c({SS:s,DS:a,Ss:u}))})),ii=te(ri,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(ri,{\"number, number\":function(t,e){return t<=e||gt(t,e,r.epsilon)}})})),oi=\"range\",ai=te(oi,[\"typed\",\"config\",\"?matrix\",\"?bignumber\",\"smaller\",\"smallerEq\",\"larger\",\"largerEq\",\"add\",\"isPositive\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.bignumber,o=t.smaller,a=t.smallerEq,s=t.larger,u=t.largerEq,c=t.add,f=t.isPositive;return e(oi,{string:h,\"string, boolean\":h,\"number, number\":function(t,e){return l(p(t,e,1,!1))},\"number, number, number\":function(t,e,r){return l(p(t,e,r,!1))},\"number, number, boolean\":function(t,e,r){return l(p(t,e,1,r))},\"number, number, number, boolean\":function(t,e,r,n){return l(p(t,e,r,n))},\"BigNumber, BigNumber\":function(t,e){return l(p(t,e,new(0,t.constructor)(1),!1))},\"BigNumber, BigNumber, BigNumber\":function(t,e,r){return l(p(t,e,r,!1))},\"BigNumber, BigNumber, boolean\":function(t,e,r){return l(p(t,e,new(0,t.constructor)(1),r))},\"BigNumber, BigNumber, BigNumber, boolean\":function(t,e,r,n){return l(p(t,e,r,n))},\"Unit, Unit, Unit\":function(t,e,r){return l(p(t,e,r,!1))},\"Unit, Unit, Unit, boolean\":function(t,e,r,n){return l(p(t,e,r,n))}});function l(t){return\"Matrix\"===r.matrix?n?n(t):wn():t}function h(t,e){var n=function(t){var e=t.split(\":\"),r=e.map((function(t){return Number(t)}));if(r.some((function(t){return isNaN(t)})))return null;switch(r.length){case 2:return{start:r[0],end:r[1],step:1};case 3:return{start:r[0],end:r[2],step:r[1]};default:return null}}(t);if(!n)throw new SyntaxError('String \"'+t+'\" is no valid range');return\"BigNumber\"===r.number?(void 0===i&&bn(),l(p(i(n.start),i(n.end),i(n.step)))):l(p(n.start,n.end,n.step,e))}function p(t,e,r,n){for(var i=[],l=f(r)?n?a:o:n?u:s,h=t;l(h,e);)i.push(h),h=c(h,r);return i}})),si=te(\"row\",[\"typed\",\"Index\",\"matrix\",\"range\"],(function(t){var e=t.typed,r=t.Index,n=t.matrix,i=t.range;return e(\"row\",{\"Matrix, number\":o,\"Array, number\":function(t,e){return o(n(X(t)),e).valueOf()}});function o(t,e){if(2!==t.size().length)throw new Error(\"Only two dimensional matrix is supported\");Rt(e,t.size()[0]);var o=i(0,t.size()[1]),a=new r(e,o),s=t.subset(a);return d(s)?s:n([[s]])}}));r(44);var ui=re({config:et}),ci=ae({}),fi=ye({}),li=ve({}),hi=xe({Matrix:li}),pi=Re({BigNumber:ui,Complex:ci,DenseMatrix:hi,Fraction:fi}),di=Ar({typed:pi}),mi=Mr({BigNumber:ui,typed:pi}),yi=Gr({config:et,typed:pi}),vi=Zr({typed:pi}),gi=Wr({typed:pi}),bi=$r({typed:pi}),wi=yn({Matrix:li,equalScalar:yi,typed:pi}),_i=gn({DenseMatrix:hi,Matrix:li,SparseMatrix:wi,typed:pi}),xi=xn({matrix:_i,typed:pi}),Ei=kn({isInteger:gi,matrix:_i,typed:pi}),ki=Nn({DenseMatrix:hi,concat:Ei,config:et,matrix:_i,typed:pi}),Di=Zn({DenseMatrix:hi,concat:Ei,config:et,matrix:_i,typed:pi}),Si=Xn({DenseMatrix:hi,SparseMatrix:wi,addScalar:di,concat:Ei,equalScalar:yi,matrix:_i,typed:pi}),Ai=Kn({ImmutableDenseMatrix:Jn({DenseMatrix:hi,smaller:Di}),getMatrixDataType:vi}),Mi=ti({DenseMatrix:hi,concat:Ei,config:et,matrix:_i,typed:pi}),Oi=ni({DenseMatrix:hi,concat:Ei,config:et,matrix:_i,typed:pi}),Ci=ai({bignumber:mi,matrix:_i,add:Si,config:et,isPositive:bi,larger:Mi,largerEq:ki,smaller:Di,smallerEq:Oi,typed:pi}),Fi=si({Index:Ai,matrix:_i,range:Ci,typed:pi})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return(e=l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(){s=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},u=a.iterator||\"@@iterator\",c=a.asyncIterator||\"@@asyncIterator\",f=a.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new I(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&i.call(k,u)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(o,a,s,u){var c=p(t[o],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&i.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var a;o(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(D,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=i.call(a,\"catchLoc\"),c=i.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var o=n;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function u(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,\"next\",t)}function s(t){u(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}var h=function(){return t=function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.debug=e},e=[{key:\"getOrCreateClientId\",value:(l=c(s().mark((function t(){var e,r;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,chrome.storage.local.get(\"clientId\");case 2:if(e=t.sent,r=e.clientId){t.next=8;break}return r=self.crypto.randomUUID(),t.next=8,chrome.storage.local.set({clientId:r});case 8:return t.abrupt(\"return\",r);case 9:case\"end\":return t.stop()}}),t)}))),function(){return l.apply(this,arguments)})},{key:\"getOrCreateSessionId\",value:(u=c(s().mark((function t(){var e,r,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,chrome.storage.session.get(\"sessionData\");case 2:if(e=t.sent,r=e.sessionData,n=Date.now(),!r||!r.timestamp){t.next=14;break}if(!((n-r.timestamp)/6e4>30)){t.next=11;break}r=null,t.next=14;break;case 11:return r.timestamp=n,t.next=14,chrome.storage.session.set({sessionData:r});case 14:if(r){t.next=18;break}return r={session_id:n.toString(),timestamp:n.toString()},t.next=18,chrome.storage.session.set({sessionData:r});case 18:return t.abrupt(\"return\",r.session_id);case 19:case\"end\":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})},{key:\"fireEvent\",value:(a=c(s().mark((function t(e){var r,n=arguments;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=n.length>1&&void 0!==n[1]?n[1]:{}).session_id){t.next=5;break}return t.next=4,this.getOrCreateSessionId();case 4:r.session_id=t.sent;case 5:return r.engagement_time_msec||(r.engagement_time_msec=100),t.prev=6,t.t0=fetch,t.t1=\"\".concat(this.debug?\"https://www.google-analytics.com/debug/mp/collect\":\"https://www.google-analytics.com/mp/collect\",\"?measurement_id=\").concat(\"G-JJ1R3GHHPM\",\"&api_secret=\").concat(\"-yk1xIZwQbqiYQbmMbl4Qg\"),t.t2=JSON,t.next=12,this.getOrCreateClientId();case 12:return t.t3=t.sent,t.t4=[{name:e,params:r}],t.t5={client_id:t.t3,events:t.t4},t.t6=t.t2.stringify.call(t.t2,t.t5),t.t7={method:\"POST\",body:t.t6},t.next=19,(0,t.t0)(t.t1,t.t7);case 19:if(t.sent,this.debug){t.next=22;break}return t.abrupt(\"return\");case 22:t.next=28;break;case 26:t.t9=t.sent,t.t8.log.call(t.t8,t.t9);case 28:t.next=33;break;case 30:t.prev=30,t.t10=t.catch(6);case 33:case\"end\":return t.stop()}}),t,this,[[6,30]])}))),function(t){return a.apply(this,arguments)})},{key:\"firePageViewEvent\",value:(i=c(s().mark((function t(e,r){var n,i=arguments;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:{},t.abrupt(\"return\",this.fireEvent(\"page_view\",o({page_title:e,page_location:r},n)));case 2:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:\"fireErrorEvent\",value:(n=c(s().mark((function t(e){var r,n=arguments;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},t.abrupt(\"return\",this.fireEvent(\"extension_error\",o(o({},e),r)));case 2:case\"end\":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})}],e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,i,a,u,l}();e.a=new h},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){\"use strict\";(function(t){r.d(e,\"a\",(function(){return y}));var n=r(244),i=r(318),o=r(3),a=r(118),s=r(293);function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(){l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",c=o.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};f(x,a,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&n.call(k,a)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,o,a,s){var c=p(t[i],t,o);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==u(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r(\"throw\",t,a,s)}))}s(c.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(u(e)+\" is not iterable\")}return w.prototype=_,i(D,\"constructor\",{value:_,configurable:!0}),i(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,c,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),f(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),f(D,c,\"Generator\"),f(D,a,(function(){return this})),f(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function h(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,\"next\",t)}function s(t){h(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function d(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function m(t){var e=function(t,e){if(\"object\"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=u(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==u(e)?e:e+\"\"}var y=function(){return e=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var r=this;r.app=e,r.r1aeiv=new n.a(200),r.x1afax=new n.a(15),r.J1ai2L=new i.a(100),r.hkToId={},r.B1akcD={},r.globalConfig={CSLcaan:\"\"}},r=[{key:\"init\",value:(S=p(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._register();case 3:case\"end\":return t.stop()}}),t,this)}))),function(){return S.apply(this,arguments)})},{key:\"start\",value:(D=p(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.H19d0L();case 3:case\"end\":return t.stop()}}),t,this)}))),function(){return D.apply(this,arguments)})},{key:\"_register\",value:function(){var t=this;chrome.runtime.onMessage.addListener((function(e,r,n){var i=e.type,u=e.label;return p(l().mark((function e(){var c,f,h,p,d,m,y,v,g,b,w,_,x,E,k,D,S,A,M,O,C,F,I,B,T,L,P,j,N,R,z,U,G,H,Z,q,W,Y,X,V;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=i,e.next=\"O7l\"===e.t0?3:\"Qak\"===e.t0?8:\"Oc3\"===e.t0?22:\"ZdnZ\"===e.t0?40:\"TpiT\"===e.t0?58:\"zo4B\"===e.t0?62:\"r136v\"===e.t0?67:\"D1f8F\"===e.t0?79:\"B142B\"===e.t0?81:\"s163\"===e.t0?85:\"D18fF\"===e.t0?112:\"s1c4\"===e.t0?152:\"x236B\"===e.t0?154:\"x1cmx\"===e.t0?161:\"q1fj\"===e.t0?167:\"q1j6\"===e.t0?169:\"C1k3\"===e.t0?171:\"R1pcR\"===e.t0?197:203;break;case 3:return e.next=5,t.app.getConfig();case 5:return d=e.sent,n({code:\"0000\",data:d}),e.abrupt(\"break\",204);case 8:return e.next=10,t.app.getConfig();case 10:return m=e.sent,y=m.userdata,e.next=14,a.a._ieot(m);case 14:return v=e.sent,g=v.data,y.shipKey=g.shipKey,y.endAt=g.endAt,e.next=20,t.app._j43.u190f(y);case 20:return n({code:\"0000\"}),e.abrupt(\"break\",204);case 22:return e.next=24,t.app.getConfig();case 24:return b=e.sent,w=b.userdata,e.next=28,a.a.ZigiZ(b,u);case 28:if(\"0000\"!==(_=e.sent).code){e.next=38;break}return e.next=32,a.a._ieot(b);case 32:return x=e.sent,E=x.data,w.shipKey=E.shipKey,w.endAt=E.endAt,e.next=38,t.app._j43.u190f(w);case 38:return n(_),e.abrupt(\"break\",204);case 40:return e.next=42,t.app.getConfig();case 42:return k=e.sent,D=k.userdata,e.next=46,a.a.ZigiZ(k,\"\");case 46:if(\"0000\"!==(S=e.sent).code){e.next=56;break}return e.next=50,a.a._ieot(k);case 50:return A=e.sent,M=A.data,D.shipKey=M.shipKey,D.endAt=M.endAt,e.next=56,t.app._j43.u190f(D);case 56:return n(S),e.abrupt(\"break\",204);case 58:return e.next=60,t.MessageService_F__setCache(u,null==r||null===(c=r.tab)||void 0===c?void 0:c.id);case 60:return n({status:\"success\"}),e.abrupt(\"break\",204);case 62:return e.next=64,t.MessageService_F__getCache(u,null==r||null===(f=r.tab)||void 0===f?void 0:f.id);case 64:return O=e.sent,n({status:\"success\",value:O?JSON.parse(JSON.stringify(O)):O}),e.abrupt(\"break\",204);case 67:if(1!==u.B174bD&&0!==u.B174bD){e.next=74;break}return e.next=70,t.r1aeiv.XkhpX(r.tab.id);case 70:return(C=e.sent)&&delete C[u.key],e.next=74,t.r1aeiv.wk67(r.tab.id,C);case 74:if(-1!==u.B174bD&&0!==u.B174bD){e.next=77;break}return e.next=77,t.r1aeiv.Ll23N(u.key);case 77:return n({status:\"success\"}),e.abrupt(\"break\",204);case 79:return\"z18eoD\"===u.name?t.hkToId[u.hkId]=setInterval((function(){t.r19gdt(u.name,r,u.hkId)}),u.time):\"_18gk_\"===u.name?(clearInterval(t.hkToId[u.hkId]),delete t.hkToId[u.hkId]):\"U18i9\"===u.name?t.hkToId[u.hkId]=setTimeout((function(){t.r19gdt(u.name,r,u.hkId),delete t.hkToId[u.hkId]}),u.time):\"N18jhN\"===u.name&&(clearTimeout(t.hkToId[u.hkId]),delete t.hkToId[u.hkId]),e.abrupt(\"break\",204);case 81:return e.next=83,t.u19nm();case 83:return n({status:\"success\"}),e.abrupt(\"break\",204);case 85:return F=!1,e.next=88,t.r1aeiv.XkhpX(\"CSLcaeg\");case 88:if(e.t2=h=e.sent,e.t1=null===e.t2,e.t1){e.next=92;break}e.t1=void 0===h;case 92:if(!e.t1){e.next=96;break}e.t3=void 0,e.next=97;break;case 96:e.t3=h.detectScope;case 97:if(\"01\"!==(I=e.t3)){e.next=102;break}F=!0,e.next=110;break;case 102:if(\"05\"!==I&&\"02\"!==I){e.next=109;break}return e.next=105,chrome.tabs.query({active:!0});case 105:B=e.sent,F=(null==B?void 0:B.length)>0&&B.filter((function(t){return t.id===r.tab.id})).length>0,e.next=110;break;case 109:F=!1;case 110:return n({status:\"success\",value:F}),e.abrupt(\"break\",204);case 112:return T=!1,e.next=115,t.r1aeiv.XkhpX(\"CSLcaeg\");case 115:if(e.t5=p=e.sent,e.t4=null===e.t5,e.t4){e.next=119;break}e.t4=void 0===p;case 119:if(!e.t4){e.next=123;break}e.t6=void 0,e.next=124;break;case 123:e.t6=p.detectScope;case 124:if(\"01\"!==(L=e.t6)){e.next=142;break}return e.next=128,chrome.tabs.query({active:!0});case 128:if(P=e.sent,j=(null==P?void 0:P.length)>0&&P.filter((function(t){return t.id===r.tab.id})).length>0,N=t.J1ai2L.rmdev(r.tab.id),!j&&!N){e.next=139;break}return e.next=134,t.r1aeiv.XkhpX(\"CSLcaeg\");case 134:z=e.sent,U=new URL(r.tab.url),T=!((null==z||null===(R=z.bl_domains)||void 0===R?void 0:R.length)>0&&r.tab.url&&z.bl_domains.includes(U.hostname)),e.next=140;break;case 139:T=!1;case 140:e.next=150;break;case 142:if(\"05\"!==L&&\"02\"!==L){e.next=149;break}return e.next=145,chrome.tabs.query({active:!0});case 145:G=e.sent,T=(null==G?void 0:G.length)>0&&G.filter((function(t){return t.id===r.tab.id})).length>0,e.next=150;break;case 149:T=!1;case 150:return n({status:\"success\",value:T}),e.abrupt(\"break\",204);case 152:return n({status:\"success\",value:r.frameId}),e.abrupt(\"break\",204);case 154:return H=\"\",e.next=157,chrome.tabs.query({active:!0});case 157:return(Z=e.sent)&&Z.length>0&&Z[0].url&&(q=new URL(Z[0].url),H=q.hostname),n({status:\"success\",value:H}),e.abrupt(\"break\",204);case 161:return e.next=163,chrome.windows.update(r.tab.windowId,{focused:!0});case 163:return e.next=165,chrome.tabs.update(r.tab.id,{active:!0,muted:!0});case 165:return n({status:\"success\"}),e.abrupt(\"break\",204);case 167:return s.a.fireEvent(u.name,u.params).then(),e.abrupt(\"break\",204);case 169:try{chrome.downloads.download(u).then(),n({status:\"success\"})}catch(t){n({status:\"fail\"})}return e.abrupt(\"break\",204);case 171:return r.tab&&r.tab.url&&(W=r.tab.url),e.next=175,t.O19ja(u,W);case 175:return Y=e.sent,e.next=179,t.r1aeiv.XkhpX(\"CSLcaeg\");case 179:if(e.t7=e.sent,e.t7){e.next=182;break}e.t7={};case 182:if(X=e.t7,null!=Y&&Y.CSLcand&&!((null==Y?void 0:Y.CSLcand)<=1.1708)){e.next=190;break}return 3323===o.a.Ch1b(null==Y?void 0:Y.CSLcab4)?X.hcs=1:3635===o.a.Ch1b(null==Y?void 0:Y.CSLcab4)&&(X.res=1),e.next=188,t.MessageService_F__setCache({key:\"CSLcaeg\",value:X,B174bD:-1,q177o:!0});case 188:e.next=195;break;case 190:if(!((null==Y?void 0:Y.CSLcand)>1)){e.next=195;break}e.next=195;break;case 195:return n({status:\"success\",value:Y||null}),e.abrupt(\"break\",204);case 197:return e.next=200,t.M1a2i(u);case 200:return V=e.sent,n({status:\"success\",value:V}),e.abrupt(\"break\",204);case 203:return e.abrupt(\"break\",204);case 204:case\"end\":return e.stop()}}),e)})))(),!0})),chrome.runtime.onMessageExternal.addListener((function(e,r,n){p(l().mark((function i(){var o,a,s,u,c,f,h,p,d,m,y,v;return l().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=r.id,i.next=3,t.r1aeiv.XkhpX(\"VlakV\");case 3:if(!(s=i.sent).hasOwnProperty(a)){i.next=55;break}u=e.action,c=null,i.t0=u,i.next=\"CSL64h9\"===i.t0?10:\"CSL64km\"===i.t0?19:\"CSL64ac\"===i.t0?41:54;break;case 10:if(f=!1,null==e||null===(o=e.data)||void 0===o||!o.tabId){i.next=17;break}return i.next=14,t.r1aeiv.XkhpX(e.data.tabId);case 14:h=i.sent,f=!!h,h&&[\"N18b2N\"].indexOf(h.K17cl)>=0&&(f=!1);case 17:return n({status:\"success\",data:{value:f}}),i.abrupt(\"break\",55);case 19:if((c=s[a])&&c.connected){i.next=25;break}n({status:\"fail\",code:\"0001\",message:\"not connected\"}),i.next=39;break;case 25:if(null==e||null===(p=e.data)||void 0===p||!p.setting){i.next=38;break}return t.J1ai2L.zmhaD(e.data.tabId),i.next=31,t.r1aeiv.XkhpX(e.data.tabId);case 31:return(d=i.sent)||(d=t.S19ed(!0)),Object.keys(e.data.setting).forEach((function(t){d[t]=e.data.setting[t]?JSON.parse(JSON.stringify(e.data.setting[t])):e.data.setting[t]})),d.updatedAt=Date.now(),i.next=38,t.r1aeiv.wk67(e.data.tabId,d);case 38:n({status:\"success\"});case 39:return i.abrupt(\"break\",55);case 41:if(c=s[a],m=null,c&&c.connected){i.next=48;break}n({status:\"fail\",code:\"0001\",message:\"not connected\"}),i.next=53;break;case 48:return i.next=50,t.A19n7(null==e||null===(y=e.data)||void 0===y?void 0:y.tabId);case 50:v=i.sent,m=v?[\"N18b2N\"].includes(v)?\"success\":[\"t1841v\",\"T189kV\"].includes(v)?\"fail\":\"ing\":\"fail\",n({status:\"success\",data:{value:m}});case 53:case 54:return i.abrupt(\"break\",55);case 55:case\"end\":return i.stop()}}),i)})))()}))}},{key:\"MessageService_F__setCache\",value:(k=p(l().mark((function t(e){var r,n,i,o=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=o.length>1&&void 0!==o[1]?o[1]:null,n=this,1!==e.B174bD){t.next=13;break}return t.next=5,n.r1aeiv.XkhpX(r);case 5:return(i=t.sent)||(i=n.S19ed()),i[e.key]=e.value,i.updatedAt=Date.now(),t.next=11,n.r1aeiv.wk67(r,i);case 11:case 22:t.next=26;break;case 13:if(-1!==e.B174bD){t.next=26;break}if(!e.q177o){t.next=24;break}return t.next=17,n.r1aeiv.Ckce(e.key,e.value);case 17:return t.next=19,chrome.storage.local.set((a={},s=e.key,u=e.value,(s=m(s))in a?Object.defineProperty(a,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[s]=u,a));case 19:if(\"CSLcaeg\"!==e.key){t.next=22;break}return t.next=22,n.s1a1b();case 24:return t.next=26,n.r1aeiv.wk67(e.key,e.value);case 26:case\"end\":return t.stop()}var a,s,u}),t,this)}))),function(t){return k.apply(this,arguments)})},{key:\"MessageService_F__getCache\",value:(E=p(l().mark((function t(e){var r,n,i,o,a,s=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:null,n=this,i=void 0,1!==e.B174bD){t.next=10;break}return t.next=6,n.r1aeiv.XkhpX(r);case 6:(o=t.sent)&&(i=o[e.key]),t.next=24;break;case 10:if(-1!==e.B174bD){t.next=16;break}return t.next=13,n.r1aeiv.XkhpX(e.key);case 13:i=t.sent,t.next=24;break;case 16:return t.next=18,n.r1aeiv.XkhpX(r||\"~\");case 18:if((a=t.sent)&&(i=a[e.key]),i){t.next=24;break}return t.next=23,n.r1aeiv.XkhpX(e.key);case 23:i=t.sent;case 24:return t.abrupt(\"return\",i);case 25:case\"end\":return t.stop()}}),t,this)}))),function(t){return E.apply(this,arguments)})},{key:\"H19d0L\",value:(x=p(l().mark((function t(){var e,r,n,i,o,a,s,u,f,h,p,d;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this,r=0,n=Object.entries(e.globalConfig);case 2:if(!(r<n.length)){t.next=9;break}return i=c(n[r],2),o=i[0],a=i[1],t.next=6,e.r1aeiv.Ckce(o,a);case 6:r++,t.next=2;break;case 9:return t.next=11,e.r1aeiv.Ckce(\"VlakV\",e.B1akcD);case 11:return t.next=13,chrome.storage.local.get(null);case 13:if(!(s=t.sent)){t.next=23;break}u=0,f=Object.entries(s);case 16:if(!(u<f.length)){t.next=23;break}return h=c(f[u],2),p=h[0],d=h[1],t.next=20,e.r1aeiv.Ckce(p,d);case 20:u++,t.next=16;break;case 23:case\"end\":return t.stop()}}),t,this)}))),function(){return x.apply(this,arguments)})},{key:\"S19ed\",value:function(){return{v17bgz:arguments.length>0&&void 0!==arguments[0]&&arguments[0],K17cl:arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"K17h7\",updatedAt:Date.now()}}},{key:\"r19gdt\",value:(_=p(l().mark((function t(e,r,n){var i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this,t.prev=1,t.next=4,chrome.tabs.sendMessage(r.tab.id,{type:\"D1f8F\",label:{hkId:n}},{documentId:r.documentId,frameId:r.frameId});case 4:t.next=10;break;case 6:t.prev=6,t.t0=t.catch(1),\"z18eoD\"===e&&clearInterval(i.hkToId[n]),delete i.hkToId[n];case 10:case\"end\":return t.stop()}}),t,this,[[1,6]])}))),function(t,e,r){return _.apply(this,arguments)})},{key:\"O19ja\",value:(w=p(l().mark((function t(e){var r,n,i,o,a,s,u,c=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=c.length>1&&void 0!==c[1]?c[1]:null,i=this,e){t.next=4;break}return t.abrupt(\"return\",null);case 4:return e.v=chrome.runtime.getManifest().version,e.url=n,t.next=8,i.app.getConfig();case 8:return o=t.sent,(a=new FormData).append(\"toolCode\",\"solver\"),a.append(\"authKey\",null==o||null===(r=o.userdata)||void 0===r?void 0:r.shipKey),a.append(\"token\",\"\"),a.append(\"method\",\"understandTask\"),a.append(\"extId\",chrome.runtime.id),a.append(\"paramObj\",JSON.stringify(e)),t.prev=18,t.next=21,fetch(\"https://solver.minirpa.net/tool/req\",{method:\"POST\",body:a});case 21:if(!(s=t.sent).ok){t.next=28;break}return t.next=25,s.json();case 25:u=t.sent,e=u.attachment||u.data;case 28:t.next=34;break;case 31:t.prev=31,t.t0=t.catch(18),t.t0;case 34:return t.abrupt(\"return\",e);case 35:case\"end\":return t.stop()}}),t,this,[[18,31]])}))),function(t){return w.apply(this,arguments)})},{key:\"A19n7\",value:(b=p(l().mark((function t(e){var r,n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this,n=\"Y17g2\",!e){t.next=11;break}return t.next=5,r.r1aeiv.XkhpX(e);case 5:if(!(i=t.sent)){t.next=11;break}if(n=i.K17cl,!(i.v17bgz&&[\"t1841v\",\"T189kV\",\"N18b2N\"].indexOf(n)>=0)){t.next=11;break}return t.next=11,r.r1aeiv.Ll23N(e);case 11:return t.abrupt(\"return\",n);case 12:case\"end\":return t.stop()}}),t,this)}))),function(t){return b.apply(this,arguments)})},{key:\"getOnceToken\",value:function(){return Date.now()+Math.random()}},{key:\"u19nm\",value:(g=p(l().mark((function t(){var e,r,n,i,o,a;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,r=Object.keys(e.B1akcD),n=e.getOnceToken(),t.next=5,e.r1aeiv.XkhpX(\"VlakV\");case 5:i=t.sent,o=0;case 7:if(!(o<r.length)){t.next=25;break}return t.prev=8,t.next=12,chrome.runtime.sendMessage(r[o],{action:\"CSL64dp\",data:{id:chrome.runtime.id,ver:chrome.runtime.getManifest().version,reqV:e.B1akcD[r[o]].minVer,token:n,ts:Date.now()}});case 12:\"success\"===(null==(a=t.sent)?void 0:a.status)&&(null==a?void 0:a.token)===n?(i[r[o]].connected=!0,i[r[o]].ts=Date.now(),i[r[o]].message=null==a?void 0:a.message):(i[r[o]].connected=!1,i[r[o]].ts=Date.now(),(null==a?void 0:a.token)!==n?i[r[o]].message=\"invalid connection\":i[r[o]].message=(null==a?void 0:a.message)||\"n/a\"),t.next=22;break;case 17:t.prev=17,t.t0=t.catch(8),i[r[o]].connected=!1,i[r[o]].ts=Date.now(),i[r[o]].message=\"not reachable\";case 22:o++,t.next=7;break;case 25:return t.next=27,e.r1aeiv.Ckce(\"VlakV\",i);case 27:return t.next=29,e.s1a1b();case 29:case\"end\":return t.stop()}}),t,this,[[8,17]])}))),function(){return g.apply(this,arguments)})},{key:\"s1a1b\",value:(v=p(l().mark((function t(){var e,r,n,i,o,a,s,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.next=3,r.r1aeiv.XkhpX(\"CSLcaeg\");case 3:if(t.t1=e=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===e;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=e.detectScope;case 12:return n=t.t2,i=!1,\"00\"===n&&(i=!0),o=!1,t.next=18,r.r1aeiv.XkhpX(\"VlakV\");case 18:a=t.sent,s=Object.values(a||{}),u=0;case 21:if(!(u<s.length)){t.next=28;break}if(!s[u].connected){t.next=25;break}return o=!0,t.abrupt(\"break\",28);case 25:u++,t.next=21;break;case 28:if(!i){t.next=33;break}return t.next=31,chrome.action.setIcon({path:{128:\"static/icons/cs_logo-128_stopped.png\"}});case 31:t.next=40;break;case 33:if(!o){t.next=38;break}return t.next=36,chrome.action.setIcon({path:{128:\"static/icons/cs_logo-128_linked.png\"}});case 36:t.next=40;break;case 38:return t.next=40,chrome.action.setIcon({path:{128:\"static/icons/cs_logo-128.png\"}});case 40:case\"end\":return t.stop()}}),t,this)}))),function(){return v.apply(this,arguments)})},{key:\"M1a2i\",value:(y=p(l().mark((function e(r){var n,i,o,a,s,u,c,f,h,p,d,m,y,v,g,b,w,_;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this,o=2048,null!=r&&r.code){e.next=4;break}return e.abrupt(\"return\",null);case 4:if(!i.x1afax.Ekg7(r.code)){e.next=9;break}return e.next=8,i.x1afax.XkhpX(r.code);case 8:return e.abrupt(\"return\",e.sent);case 9:if(a=\"\",!((null==r||null===(n=r.urls)||void 0===n?void 0:n.length)>0)){e.next=47;break}s=0;case 13:if(!(s<r.urls.length)){e.next=47;break}if(!(c=r.urls[s].trim()).startsWith(\"http://\")&&!c.startsWith(\"https://\")){e.next=21;break}return e.next=18,i.L1a78L(c);case 18:a=e.sent,e.next=26;break;case 21:return f=void 0,f=c.startsWith(\"D$\")?\"https://www.dropbox.com/scl/fi/\"+c.substring(2)+\"&dl=1\":\"https://drive.google.com/uc?export=download&id=\"+c,e.next=25,i.L1a78L(f);case 25:a=e.sent;case 26:if(!(((null===(u=a)||void 0===u?void 0:u.length)||0)>o)){e.next=43;break}if(h=a,p=t.from(h,\"base64\").toString(\"utf-8\"),!(d=p.trim().substring(0,20).toLowerCase().replaceAll(\" \",\"\")).startsWith(\"<!doctype\")&&!d.startsWith(\"<html\")){e.next=36;break}a=\"\",e.next=41;break;case 36:return e.next=39,i.x1afax.wk67(r.code,a);case 39:return e.abrupt(\"break\",47);case 41:e.next=44;break;case 43:case 44:s++,e.next=13;break;case 47:if(a&&!(a.length<=o)){e.next=78;break}return y=\"https://solver.minirpa.net/tool/req\",e.next=51,i.app.getConfig();case 51:return v=e.sent,(g=new FormData).append(\"toolCode\",\"solver\"),g.append(\"authKey\",null==v||null===(m=v.userdata)||void 0===m?void 0:m.shipKey),g.append(\"token\",\"\"),g.append(\"method\",\"getModel\"),g.append(\"paramObj\",JSON.stringify({modelCode:r.code,urls:r.urls})),e.prev=58,e.next=61,fetch(y,{method:\"POST\",body:g}).then((function(t){return t.json()}));case 61:if(_=e.sent,a=null==_||null===(b=_.attachment)||void 0===b?void 0:b.data,!(((null===(w=a)||void 0===w?void 0:w.length)||0)>o)){e.next=70;break}return e.next=67,i.x1afax.wk67(r.code,_.attachment.data);case 67:e.next=72;break;case 70:a=\"\";case 72:e.next=78;break;case 74:e.prev=74,e.t0=e.catch(58),\"load model:[\".concat(r.code,\"] Fetch ERROR:\"),e.t0,a=\"\";case 78:return e.abrupt(\"return\",a);case 79:case\"end\":return e.stop()}}),e,this,[[58,74]])}))),function(t){return y.apply(this,arguments)})},{key:\"_1a62r\",value:(h=p(l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.next=3,r.x1afax.wl2k(e);case 3:return t.next=5,r.r1aeiv.wl2k(e);case 5:case\"end\":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:\"L1a78L\",value:(f=p(l().mark((function e(r){var n,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=4,fetch(r);case 4:if((n=e.sent).ok){e.next=8;break}return e.abrupt(\"return\",null);case 8:return e.next=10,n.arrayBuffer();case 10:return i=e.sent,e.abrupt(\"return\",t.from(i).toString(\"base64\"));case 14:return e.prev=14,e.t0=e.catch(0),e.abrupt(\"return\",null);case 18:case\"end\":return e.stop()}}),e,null,[[0,14]])}))),function(t){return f.apply(this,arguments)})}],r&&d(e.prototype,r),u&&d(e,u),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,u,f,h,y,v,g,b,w,_,x,E,k,D,S}()}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}r.d(e,\"a\",(function(){return a}));var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.limit=e,this.items=[]},e=[{key:\"zmhaD\",value:function(t){if(this.Om89()){var e=Math.floor(this.limit/10);this.Xm70Z(e)}this.items.push(t)}},{key:\"Bml8F\",value:function(){return this.Wma0()?null:this.items.shift()}},{key:\"Xm70Z\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(this.Wma0())return null;for(var e=[];t-- >0&&!this.Wma0();)e.push(this.items.shift());return e}},{key:\"Wma0\",value:function(){return 0===this.items.length}},{key:\"Om89\",value:function(){return this.items.length===this.limit}},{key:\"Lm3kL\",value:function(){return this.Wma0()?null:this.items[0]}},{key:\"rmdev\",value:function(t){return this.items.includes(t)}}],e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&o.call(k,u)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}r.r(e);var c=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.app=e},e=[{key:\"init\",value:(n=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._register();case 2:case\"end\":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:\"start\",value:function(){}},{key:\"_register\",value:function(){var t=this;chrome.alarms.create(\"Eho\",{when:Date.now()+5e3,periodInMinutes:1}),chrome.alarms.create(\"Ak7\",{when:Date.now()+35e3,periodInMinutes:1}),chrome.alarms.create(\"Ulm\",{when:Date.now()+6e4,periodInMinutes:5}),chrome.alarms.onAlarm.addListener(function(){var e=a(i().mark((function e(r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,![\"Eho\",\"Ak7\"].includes(r.name)){e.next=6;break}return e.next=4,t.app.Bj81F.u19nm();case 4:e.next=12;break;case 6:if(![\"Eho\"].includes(r.name)){e.next=9;break}e.next=12;break;case 9:if(\"Ulm\"!==r.name){e.next=12;break}return e.next=12,t.app.Bj81F._1a62r(6e5);case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0);case 17:case\"end\":return e.stop()}}),e,null,[[0,14]])})));return function(t){return e.apply(this,arguments)}}())}}],e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n}(),f=r(317);r(293);function l(t){return l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},l(t)}function h(){h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",v=\"completed\",g={};function b(){}function w(){}function _(){}var x={};c(x,a,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&n.call(k,a)&&(x=k);var D=_.prototype=b.prototype=Object.create(x);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,o,a,s){var u=p(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==l(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===v){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=v,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(l(e)+\" is not iterable\")}return w.prototype=_,i(D,\"constructor\",{value:_,configurable:!0}),i(_,\"constructor\",{value:w,configurable:!0}),w.displayName=c(_,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),c(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),c(D,u,\"Generator\"),c(D,a,(function(){return this})),c(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function p(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){p(o,n,i,a,s,\"next\",t)}function s(t){p(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}function y(t){var e=function(t,e){if(\"object\"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=l(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==l(e)?e:e+\"\"}var v=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.app=e},e=[{key:\"init\",value:(n=d(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._register();case 2:case\"end\":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:\"_register\",value:function(){var t=this;chrome.runtime.onInstalled.addListener(function(){var e=d(h().mark((function e(r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.reason,r.previousVersion,\"install\"===n)try{t.app._j43.q195i().then()}catch(t){}case 3:case\"end\":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}],e&&m(t.prototype,e),r&&m(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n}(),g=r(233),b=r(3),w=r(118);function _(t){return _=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_(t)}function x(){x=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:M(t,r,s)}),a}function l(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function v(){}function g(){}function b(){}var w={};c(w,a,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(B([])));k&&k!==r&&n.call(k,a)&&(w=k);var D=b.prototype=v.prototype=Object.create(w);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==_(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=l(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=l(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(_(e)+\" is not iterable\")}return g.prototype=b,i(D,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:g,configurable:!0}),g.displayName=c(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},S(A.prototype),c(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(D),c(D,u,\"Generator\"),c(D,a,(function(){return this})),c(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function E(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function k(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){E(o,n,i,a,s,\"next\",t)}function s(t){E(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function D(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,S(n.key),n)}}function S(t){var e=function(t,e){if(\"object\"!=_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==_(e)?e:e+\"\"}var A=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var r=this;r.app=e,r.defaultConfig=t.DefaultConfig,r.productConfig=r.defaultConfig.productConfig,r.userConfig=r.defaultConfig.userConfig,r.permissionConfig=r.defaultConfig.permissionConfig,r.userdata=r.defaultConfig.userdata},e=[{key:\"getConfig\",value:function(){return this.config}},{key:\"W18nd\",value:(c=k(x().mark((function t(){var e;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=this).config){t.next=9;break}return t.next=4,e.F193jH();case 4:return t.next=6,e.V198mX();case 6:return t.next=8,e.q195i();case 8:e.config={productConfig:e.productConfig,permissionConfig:e.permissionConfig,userConfig:e.userConfig,userdata:e.userdata};case 9:case\"end\":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:\"E18oc\",value:(u=k(x().mark((function t(e){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=this).userConfig=Object.assign({},r.defaultConfig.userConfig,e),t.next=4,b.a.wbeh(g.a.w18lm.userConfig,r.userConfig);case 4:r.config.userConfig=r.userConfig;case 5:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:\"u190f\",value:(s=k(x().mark((function t(e){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=this).userdata=Object.assign({},r.defaultConfig.userdata,e),t.next=4,b.a.wbeh(g.a.w18lm.userdata,r.userdata);case 4:r.config&&(r.config.userdata=r.userdata);case 5:case\"end\":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:\"v1915v\",value:(a=k(x().mark((function t(e){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=this).permissionConfig=Object.assign({},r.defaultConfig.permissionConfig,e),t.next=4,b.a.wbeh(g.a.w18lm.permissionConfig,r.permissionConfig);case 4:r.config.permissionConfig=r.permissionConfig;case 5:case\"end\":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{key:\"F193jH\",value:(o=k(x().mark((function t(){var e,r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,b.a.Abcc(g.a.w18lm.userConfig);case 3:r=t.sent,e.userConfig=Object.assign({},e.defaultConfig.userConfig,r);case 5:case\"end\":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:\"q195i\",value:(i=k(x().mark((function t(){var e,r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,b.a.Abcc(g.a.w18lm.userdata);case 3:r=t.sent,e.userdata=Object.assign({},e.defaultConfig.userdata,r),e.userdata.extId||setTimeout(k(x().mark((function t(){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.a.zibcz(e.config);case 2:\"0000\"==(r=t.sent).code&&(e.userdata.extId=r.data.extId,e.u190f(e.userdata));case 4:case\"end\":return t.stop()}}),t)}))),1e3);case 6:case\"end\":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:\"V198mX\",value:(n=k(x().mark((function t(){var e,r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,b.a.Abcc(g.a.w18lm.permissionConfig);case 3:r=t.sent,e.permissionConfig=Object.assign({},e.defaultConfig.permissionConfig,r);case 5:case\"end\":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}],r=[{key:\"DefaultConfig\",get:function(){return{productConfig:{productCode:\"solver\",baseUrl:\"https://solver.minirpa.net\",platform:\"chrome\"},userConfig:{},permissionConfig:{},userdata:{extId:\"\",shipKey:\"\"}}}}],e&&D(t.prototype,e),r&&D(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,i,o,a,s,u,c}();function M(t){return M=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},M(t)}function O(){O=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:S(t,r,s)}),a}function l(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function v(){}function g(){}function b(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(B([])));x&&x!==r&&n.call(x,a)&&(w=x);var E=b.prototype=v.prototype=Object.create(w);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==M(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=l(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=l(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(M(e)+\" is not iterable\")}return g.prototype=b,i(E,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:g,configurable:!0}),g.displayName=c(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},k(D.prototype),c(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new D(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(E),c(E,u,\"Generator\"),c(E,a,(function(){return this})),c(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function C(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function F(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){C(o,n,i,a,s,\"next\",t)}function s(t){C(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function I(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,B(n.key),n)}}function B(t){var e=function(t,e){if(\"object\"!=M(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=M(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==M(e)?e:e+\"\"}var T,L=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var e=this;e.loadStatus=\"0\",e._j43=new A(e),e.Bj81F=new f.a(e),e.Xjb7Z=new v(e),e.rjd7t=new c(e),e.loadStatus=\"1\"},e=[{key:\"init\",value:(a=F(O().mark((function t(){var e;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.Xjb7Z.init();case 3:return t.next=5,e.Bj81F.init();case 5:return t.next=7,e.rjd7t.init();case 7:case\"end\":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:\"start\",value:(o=F(O().mark((function t(){var e;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,e._j43.W18nd();case 3:return t.next=5,e.Bj81F.start();case 5:e.loadStatus=\"2\";case 6:case\"end\":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:\"getConfig\",value:(i=F(O().mark((function t(){var e;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.Zj28Z(\"waiting...\");case 3:return t.abrupt(\"return\",e._j43.getConfig());case 4:case\"end\":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:\"Zj28Z\",value:(n=F(O().mark((function t(e){var r;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this;case 1:if(\"2\"==r.loadStatus){t.next=7;break}return t.next=5,b.a.Bi9dF(100);case 5:t.next=1;break;case 7:case\"end\":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})}],e&&I(t.prototype,e),r&&I(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,i,o,a}();function P(t){return P=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},P(t)}function j(){j=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new C(n||[]);return i(a,\"_invoke\",{value:S(t,r,s)}),a}function l(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function v(){}function g(){}function b(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(F([])));x&&x!==r&&n.call(x,a)&&(w=x);var E=b.prototype=v.prototype=Object.create(w);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==P(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=l(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=l(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function F(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(P(e)+\" is not iterable\")}return g.prototype=b,i(E,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:g,configurable:!0}),g.displayName=c(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},k(D.prototype),c(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new D(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(E),c(E,u,\"Generator\"),c(E,a,(function(){return this})),c(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=F,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function N(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}(T=j().mark((function t(){var e;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new L,t.next=3,e.init();case 3:return t.next=5,e.start();case 5:case 6:case\"end\":return t.stop()}}),t)})),function(){var t=this,e=arguments;return new Promise((function(r,n){var i=T.apply(t,e);function o(t){N(i,r,n,o,a,\"next\",t)}function a(t){N(i,r,n,o,a,\"throw\",t)}o(void 0)}))})()}]);"
  },
  {
    "path": "utils/hcaptchasolver/background.js.LICENSE.txt",
    "content": "/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n/*!\n   *  decimal.js v10.4.3\n   *  An arbitrary-precision Decimal type for JavaScript.\n   *  https://github.com/MikeMcl/decimal.js\n   *  Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>\n   *  MIT Licence\n   */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * Timm\n *\n * Immutability helpers with fast reads and acceptable writes.\n *\n * @copyright Guillermo Grau Panea 2016\n * @license MIT\n */\n\n/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\n\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n\n/**\n * @license Complex.js v2.1.1 12/05/2020\n *\n * Copyright (c) 2020, Robert Eisele (robert@xarg.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @license Fraction.js v4.3.0 20/08/2023\n * https://www.xarg.org/2014/03/rational-numbers-in-javascript/\n *\n * Copyright (c) 2023, Robert Eisele (robert@raw.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cie94.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ciede2000.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cmetric.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * common.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * constants.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ditherErrorDiffusionArray.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * euclidean.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * helper.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * hueStatistics.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * iq.ts - Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * manhattanNeuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * nearestColor.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * palette.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pngQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * point.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pointContainer.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2hsl.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ssim.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * wuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * MIT License\n *\n * Copyright 2015-2018 Igor Bezkrovnyi\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n *\n * riemersma.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * colorHistogram.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * neuquant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgbquant.ts - part of Image Quantization Library\n */\n"
  },
  {
    "path": "utils/hcaptchasolver/content/captchaDetector.js",
    "content": "/*! For license information please see captchaDetector.js.LICENSE.txt */\n!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,\"a\",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p=\"\",r(r.s=292)}([function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}r.d(e,\"a\",(function(){return o})),r.d(e,\"d\",(function(){return s})),r.d(e,\"b\",(function(){return u})),r.d(e,\"c\",(function(){return f}));var a=i().mark(f);function o(t){if(void 0===t)return!1;if(\"function\"!=typeof t)throw new TypeError(\"Callback must be a function\");return!0}function s(t,e){if(\"string\"==typeof t&&(t=new Error(t)),\"function\"==typeof e)return e.call(this,t);throw t}function u(t,e,r,n,i,a){e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i);for(var o=r;o<r+i;o++)for(var s=e;s<e+n;s++){var u=t.bitmap.width*o+s<<2;a.call(t,s,o,u)}return t}function f(t,e,r,n,o){var s,u,f;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e=Math.round(e),r=Math.round(r),n=Math.round(n),o=Math.round(o),s=r;case 5:if(!(s<r+o)){i.next=17;break}u=e;case 7:if(!(u<e+n)){i.next=14;break}return f=t.bitmap.width*s+u<<2,i.next=11,{x:u,y:s,idx:f,image:t};case 11:u++,i.next=7;break;case 14:s++,i.next=5;break;case 17:case\"end\":return i.stop()}}),a)}},,function(t,e,r){\"use strict\";(function(t){var n=r(120),i=r(67),a=r(121);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(o()<e)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if(\"number\"==typeof t){if(\"string\"==typeof e)throw new Error(\"If encoding is specified then the first argument must be a string\");return h(this,t)}return f(this,t,e,r)}function f(t,e,r,n){if(\"number\"==typeof e)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError(\"'offset' is out of bounds\");if(e.byteLength<r+(n||0))throw new RangeError(\"'length' is out of bounds\");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=l(t,e);return t}(t,e,r,n):\"string\"==typeof e?function(t,e,r){\"string\"==typeof r&&\"\"!==r||(r=\"utf8\");if(!u.isEncoding(r))throw new TypeError('\"encoding\" must be a valid string encoding');var n=0|d(e,r);t=s(t,n);var i=t.write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|p(e.length);return 0===(t=s(t,r)).length||e.copy(t,0,0,r),t}if(e){if(\"undefined\"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||\"length\"in e)return\"number\"!=typeof e.length||(n=e.length)!=n?s(t,0):l(t,e);if(\"Buffer\"===e.type&&a(e.data))return l(t,e.data)}var n;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(t,e)}function c(t){if(\"number\"!=typeof t)throw new TypeError('\"size\" argument must be a number');if(t<0)throw new RangeError('\"size\" argument must not be negative')}function h(t,e){if(c(e),t=s(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function l(t,e){var r=e.length<0?0:0|p(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=o())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+o().toString(16)+\" bytes\");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;\"string\"!=typeof t&&(t=\"\"+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":case void 0:return U(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return G(t).length;default:if(n)return U(t).length;e=(\"\"+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(e>>>=0))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return C(this,e,r);case\"utf8\":case\"utf-8\":return A(this,e,r);case\"ascii\":return M(this,e,r);case\"latin1\":case\"binary\":return F(this,e,r);case\"base64\":return k(this,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return B(this,e,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,i){if(0===t.length)return-1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if(\"string\"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if(\"number\"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError(\"val must be string, number or Buffer\")}function g(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function f(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var c=-1;for(a=r;a<s;a++)if(f(t,a)===f(e,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var h=!0,l=0;l<u;l++)if(f(t,a+l)!==f(e,l)){h=!1;break}if(h)return a}return-1}function v(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;if(a%2!=0)throw new TypeError(\"Invalid hex string\");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[r+o]=s}return o}function w(t,e,r,n){return H(U(e,t.length-r),t,r,n)}function _(t,e,r,n){return H(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return _(t,e,r,n)}function E(t,e,r,n){return H(G(e),t,r,n)}function D(t,e,r,n){return H(function(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,u,f=t[i],c=null,h=f>239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(a=t[i+1]))&&(u=(31&f)<<6|63&a)>127&&(c=u);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(u=(15&f)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&f)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);var r=\"\",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=S));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&\"function\"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=o(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return f(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return c(e),e<=0?s(t,e):void 0!==r?\"string\"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError(\"Arguments must be Buffers\");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(t,e){if(!a(t))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(!u.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?\"\":0===arguments.length?A(this,0,t):m.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t=\"\",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString(\"hex\",0,r).match(/.{2}/g).join(\" \"),this.length>r&&(t+=\" ... \")),\"<Buffer \"+t+\">\"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError(\"out of range index\");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),f=this.slice(n,i),c=t.slice(e,r),h=0;h<s;++h)if(f[h]!==c[h]){a=f[h],o=c[h];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n=\"utf8\",r=this.length,e=0;else if(void 0===r&&\"string\"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");e|=0,isFinite(r)?(r|=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var a=!1;;)switch(n){case\"hex\":return v(this,t,e,r);case\"utf8\":case\"utf-8\":return w(this,t,e,r);case\"ascii\":return _(this,t,e,r);case\"latin1\":case\"binary\":return x(this,t,e,r);case\"base64\":return E(this,t,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return D(this,t,e,r);default:if(a)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function M(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function F(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function C(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i=\"\",a=e;a<r;++a)i+=z(t[a]);return i}function B(t,e,r){for(var n=t.slice(e,r),i=\"\",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function O(t,e,r){if(t%1!=0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>r)throw new RangeError(\"Trying to access beyond buffer length\")}function I(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('\"value\" argument is out of bounds');if(r+n>t.length)throw new RangeError(\"Index out of range\")}function T(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-r,2);i<a;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function P(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-r,4);i<a;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function L(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function N(t,e,r,n,a){return a||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function j(t,e,r,n,a){return a||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||I(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||I(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):P(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);I(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o|0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);I(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o|0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):P(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return j(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return j(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},u.prototype.fill=function(t,e,r,n){if(\"string\"==typeof t){if(\"string\"==typeof e?(n=e,e=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&\"string\"!=typeof n)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!u.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n)}else\"number\"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError(\"Out of range index\");if(r<=e)return this;var a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),\"number\"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=u.isBuffer(t)?t:U(new u(t,n).toString()),s=o.length;for(a=0;a<r-e;++a)this[a+e]=o[a%s]}return this};var R=/[^+\\/0-9A-Za-z-_]/g;function z(t){return t<16?\"0\"+t.toString(16):t.toString(16)}function U(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function G(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\\s+|\\s+$/g,\"\")}(t).replace(R,\"\")).length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t}(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(10))},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return Cr}));var n=r(4),i=r(253),a=r(115),o=r(2),s=r(66);function u(t){let e=t.length;for(;--e>=0;)t[e]=0}const f=256,c=286,h=30,l=15,p=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),d=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),m=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),y=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),b=new Array(576);u(b);const g=new Array(60);u(g);const v=new Array(512);u(v);const w=new Array(256);u(w);const _=new Array(29);u(_);const x=new Array(h);function E(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}let D,k,A;function S(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}u(x);const M=t=>t<256?v[t]:v[256+(t>>>7)],F=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},C=(t,e,r)=>{t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,F(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)},B=(t,e,r)=>{C(t,r[2*e],r[2*e+1])},O=(t,e)=>{let r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1},I=(t,e,r)=>{const n=new Array(16);let i,a,o=0;for(i=1;i<=l;i++)o=o+r[i-1]<<1,n[i]=o;for(a=0;a<=e;a++){let e=t[2*a+1];0!==e&&(t[2*a]=O(n[e]++,e))}},T=t=>{let e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},P=t=>{t.bi_valid>8?F(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},L=(t,e,r,n)=>{const i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]},N=(t,e,r)=>{const n=t.heap[r];let i=r<<1;for(;i<=t.heap_len&&(i<t.heap_len&&L(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!L(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n},j=(t,e,r)=>{let n,i,a,o,s=0;if(0!==t.sym_next)do{n=255&t.pending_buf[t.sym_buf+s++],n+=(255&t.pending_buf[t.sym_buf+s++])<<8,i=t.pending_buf[t.sym_buf+s++],0===n?B(t,i,e):(a=w[i],B(t,a+f+1,e),o=p[a],0!==o&&(i-=_[a],C(t,i,o)),n--,a=M(n),B(t,a,r),o=d[a],0!==o&&(n-=x[a],C(t,n,o)))}while(s<t.sym_next);B(t,256,e)},R=(t,e)=>{const r=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,a=e.stat_desc.elems;let o,s,u,f=-1;for(t.heap_len=0,t.heap_max=573,o=0;o<a;o++)0!==r[2*o]?(t.heap[++t.heap_len]=f=o,t.depth[o]=0):r[2*o+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=f<2?++f:0,r[2*u]=1,t.depth[u]=0,t.opt_len--,i&&(t.static_len-=n[2*u+1]);for(e.max_code=f,o=t.heap_len>>1;o>=1;o--)N(t,r,o);u=a;do{o=t.heap[1],t.heap[1]=t.heap[t.heap_len--],N(t,r,1),s=t.heap[1],t.heap[--t.heap_max]=o,t.heap[--t.heap_max]=s,r[2*u]=r[2*o]+r[2*s],t.depth[u]=(t.depth[o]>=t.depth[s]?t.depth[o]:t.depth[s])+1,r[2*o+1]=r[2*s+1]=u,t.heap[1]=u++,N(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const r=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,a=e.stat_desc.has_stree,o=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,u=e.stat_desc.max_length;let f,c,h,p,d,m,y=0;for(p=0;p<=l;p++)t.bl_count[p]=0;for(r[2*t.heap[t.heap_max]+1]=0,f=t.heap_max+1;f<573;f++)c=t.heap[f],p=r[2*r[2*c+1]+1]+1,p>u&&(p=u,y++),r[2*c+1]=p,c>n||(t.bl_count[p]++,d=0,c>=s&&(d=o[c-s]),m=r[2*c],t.opt_len+=m*(p+d),a&&(t.static_len+=m*(i[2*c+1]+d)));if(0!==y){do{for(p=u-1;0===t.bl_count[p];)p--;t.bl_count[p]--,t.bl_count[p+1]+=2,t.bl_count[u]--,y-=2}while(y>0);for(p=u;0!==p;p--)for(c=t.bl_count[p];0!==c;)h=t.heap[--f],h>n||(r[2*h+1]!==p&&(t.opt_len+=(p-r[2*h+1])*r[2*h],r[2*h+1]=p),c--)}})(t,e),I(r,f,t.bl_count)},z=(t,e,r)=>{let n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<f?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4))},U=(t,e,r)=>{let n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<f)do{B(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(B(t,i,t.bl_tree),s--),B(t,16,t.bl_tree),C(t,s-3,2)):s<=10?(B(t,17,t.bl_tree),C(t,s-3,3)):(B(t,18,t.bl_tree),C(t,s-11,7));s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4)}};let G=!1;const H=(t,e,r,n)=>{C(t,0+(n?1:0),3),P(t),F(t,r),F(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r};var Z=(t,e,r,n)=>{let i,a,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<f;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),o=(t=>{let e;for(z(t,t.dyn_ltree,t.l_desc.max_code),z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*y[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),i=t.opt_len+3+7>>>3,a=t.static_len+3+7>>>3,a<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?H(t,e,r,n):4===t.strategy||a===i?(C(t,2+(n?1:0),3),j(t,b,g)):(C(t,4+(n?1:0),3),((t,e,r,n)=>{let i;for(C(t,e-257,5),C(t,r-1,5),C(t,n-4,4),i=0;i<n;i++)C(t,t.bl_tree[2*y[i]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,r-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),j(t,t.dyn_ltree,t.dyn_dtree)),T(t),n&&P(t)},q={_tr_init:t=>{G||((()=>{let t,e,r,n,i;const a=new Array(16);for(r=0,n=0;n<28;n++)for(_[n]=r,t=0;t<1<<p[n];t++)w[r++]=n;for(w[r-1]=n,i=0,n=0;n<16;n++)for(x[n]=i,t=0;t<1<<d[n];t++)v[i++]=n;for(i>>=7;n<h;n++)for(x[n]=i<<7,t=0;t<1<<d[n]-7;t++)v[256+i++]=n;for(e=0;e<=l;e++)a[e]=0;for(t=0;t<=143;)b[2*t+1]=8,t++,a[8]++;for(;t<=255;)b[2*t+1]=9,t++,a[9]++;for(;t<=279;)b[2*t+1]=7,t++,a[7]++;for(;t<=287;)b[2*t+1]=8,t++,a[8]++;for(I(b,287,a),t=0;t<h;t++)g[2*t+1]=5,g[2*t]=O(t,5);D=new E(b,p,257,c,l),k=new E(g,d,0,h,l),A=new E(new Array(0),m,0,19,7)})(),G=!0),t.l_desc=new S(t.dyn_ltree,D),t.d_desc=new S(t.dyn_dtree,k),t.bl_desc=new S(t.bl_tree,A),t.bi_buf=0,t.bi_valid=0,T(t)},_tr_stored_block:H,_tr_flush_block:Z,_tr_tally:(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(w[r]+f+1)]++,t.dyn_dtree[2*M(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{C(t,2,3),B(t,256,b),(t=>{16===t.bi_valid?(F(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var W=(t,e,r,n)=>{let i=65535&t,a=t>>>16&65535,o=0;for(;0!==r;){o=r>2e3?2e3:r,r-=o;do{i=i+e[n++]|0,a=a+i|0}while(--o);i%=65521,a%=65521}return i|a<<16};const Y=new Uint32Array((()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e})());var V=(t,e,r,n)=>{const i=Y,a=n+r;t^=-1;for(let r=n;r<a;r++)t=t>>>8^i[255&(t^e[r])];return~t},X={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"},J={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:K,_tr_stored_block:Q,_tr_flush_block:$,_tr_tally:tt,_tr_align:et}=q,{Z_NO_FLUSH:rt,Z_PARTIAL_FLUSH:nt,Z_FULL_FLUSH:it,Z_FINISH:at,Z_BLOCK:ot,Z_OK:st,Z_STREAM_END:ut,Z_STREAM_ERROR:ft,Z_DATA_ERROR:ct,Z_BUF_ERROR:ht,Z_DEFAULT_COMPRESSION:lt,Z_FILTERED:pt,Z_HUFFMAN_ONLY:dt,Z_RLE:mt,Z_FIXED:yt,Z_DEFAULT_STRATEGY:bt,Z_UNKNOWN:gt,Z_DEFLATED:vt}=J,wt=258,_t=262,xt=42,Et=113,Dt=666,kt=(t,e)=>(t.msg=X[e],e),At=t=>2*t-(t>4?9:0),St=t=>{let e=t.length;for(;--e>=0;)t[e]=0},Mt=t=>{let e,r,n,i=t.w_size;e=t.hash_size,n=e;do{r=t.head[--n],t.head[n]=r>=i?r-i:0}while(--e);e=i,n=e;do{r=t.prev[--n],t.prev[n]=r>=i?r-i:0}while(--e)};let Ft=(t,e,r)=>(e<<t.hash_shift^r)&t.hash_mask;const Ct=t=>{const e=t.state;let r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))},Bt=(t,e)=>{$(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Ct(t.strm)},Ot=(t,e)=>{t.pending_buf[t.pending++]=e},It=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Tt=(t,e,r,n)=>{let i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),1===t.state.wrap?t.adler=W(t.adler,e,i,r):2===t.state.wrap&&(t.adler=V(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},Pt=(t,e)=>{let r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match;const u=t.strstart>t.w_size-_t?t.strstart-(t.w_size-_t):0,f=t.window,c=t.w_mask,h=t.prev,l=t.strstart+wt;let p=f[a+o-1],d=f[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(r=e,f[r+o]===d&&f[r+o-1]===p&&f[r]===f[a]&&f[++r]===f[a+1]){a+=2,r++;do{}while(f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&a<l);if(n=wt-(l-a),a=l-wt,n>o){if(t.match_start=e,o=n,n>=s)break;p=f[a+o-1],d=f[a+o]}}}while((e=h[e&c])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead},Lt=t=>{const e=t.w_size;let r,n,i;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-_t)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),Mt(t),n+=e),0===t.strm.avail_in)break;if(r=Tt(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=r,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Ft(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Ft(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<_t&&0!==t.strm.avail_in)},Nt=(t,e)=>{let r,n,i,a=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,o=0,s=t.strm.avail_in;do{if(r=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,n=t.strstart-t.block_start,r>n+t.strm.avail_in&&(r=n+t.strm.avail_in),r>i&&(r=i),r<a&&(0===r&&e!==at||e===rt||r!==n+t.strm.avail_in))break;o=e===at&&r===n+t.strm.avail_in?1:0,Q(t,0,0,o),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,Ct(t.strm),n&&(n>r&&(n=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,r-=n),r&&(Tt(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(0===o);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),o?4:e!==rt&&e!==at&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(Tt(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,a=i>t.w_size?t.w_size:i,n=t.strstart-t.block_start,(n>=a||(n||e===at)&&e!==rt&&0===t.strm.avail_in&&n<=i)&&(r=n>i?i:n,o=e===at&&0===t.strm.avail_in&&r===n?1:0,Q(t,t.block_start,r,o),t.block_start+=r,Ct(t.strm)),o?3:1)},jt=(t,e)=>{let r,n;for(;;){if(t.lookahead<_t){if(Lt(t),t.lookahead<_t&&e===rt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Ft(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-_t&&(t.match_length=Pt(t,r)),t.match_length>=3)if(n=tt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Ft(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Ft(t,t.ins_h,t.window[t.strstart+1]);else n=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Bt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===at?(Bt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Bt(t,!1),0===t.strm.avail_out)?1:2},Rt=(t,e)=>{let r,n,i;for(;;){if(t.lookahead<_t){if(Lt(t),t.lookahead<_t&&e===rt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Ft(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-_t&&(t.match_length=Pt(t,r),t.match_length<=5&&(t.strategy===pt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=tt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=Ft(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Bt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(n=tt(t,0,t.window[t.strstart-1]),n&&Bt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=tt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===at?(Bt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Bt(t,!1),0===t.strm.avail_out)?1:2};function zt(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}const Ut=[new zt(0,0,0,0,Nt),new zt(4,4,8,4,jt),new zt(4,5,16,8,jt),new zt(4,6,32,32,jt),new zt(4,4,16,16,Rt),new zt(8,16,32,32,Rt),new zt(8,16,128,128,Rt),new zt(8,32,128,256,Rt),new zt(32,128,258,1024,Rt),new zt(32,258,258,4096,Rt)];function Gt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=vt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),St(this.dyn_ltree),St(this.dyn_dtree),St(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),St(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),St(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ht=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==xt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==Et&&e.status!==Dt?1:0},Zt=t=>{if(Ht(t))return kt(t,ft);t.total_in=t.total_out=0,t.data_type=gt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?xt:Et,t.adler=2===e.wrap?0:1,e.last_flush=-2,K(e),st},qt=t=>{const e=Zt(t);var r;return e===st&&((r=t.state).window_size=2*r.w_size,St(r.head),r.max_lazy_match=Ut[r.level].max_lazy,r.good_match=Ut[r.level].good_length,r.nice_match=Ut[r.level].nice_length,r.max_chain_length=Ut[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,r.ins_h=0),e},Wt=(t,e,r,n,i,a)=>{if(!t)return ft;let o=1;if(e===lt&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>9||r!==vt||n<8||n>15||e<0||e>9||a<0||a>yt||8===n&&1!==o)return kt(t,ft);8===n&&(n=9);const s=new Gt;return t.state=s,s.strm=t,s.status=xt,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=a,s.method=r,qt(t)};var Yt={deflateInit:(t,e)=>Wt(t,e,vt,15,8,bt),deflateInit2:Wt,deflateReset:qt,deflateResetKeep:Zt,deflateSetHeader:(t,e)=>Ht(t)||2!==t.state.wrap?ft:(t.state.gzhead=e,st),deflate:(t,e)=>{if(Ht(t)||e>ot||e<0)return t?kt(t,ft):ft;const r=t.state;if(!t.output||0!==t.avail_in&&!t.input||r.status===Dt&&e!==at)return kt(t,0===t.avail_out?ht:ft);const n=r.last_flush;if(r.last_flush=e,0!==r.pending){if(Ct(t),0===t.avail_out)return r.last_flush=-1,st}else if(0===t.avail_in&&At(e)<=At(n)&&e!==at)return kt(t,ht);if(r.status===Dt&&0!==t.avail_in)return kt(t,ht);if(r.status===xt&&0===r.wrap&&(r.status=Et),r.status===xt){let e=vt+(r.w_bits-8<<4)<<8,n=-1;if(n=r.strategy>=dt||r.level<2?0:r.level<6?1:6===r.level?2:3,e|=n<<6,0!==r.strstart&&(e|=32),e+=31-e%31,It(r,e),0!==r.strstart&&(It(r,t.adler>>>16),It(r,65535&t.adler)),t.adler=1,r.status=Et,Ct(t),0!==r.pending)return r.last_flush=-1,st}if(57===r.status)if(t.adler=0,Ot(r,31),Ot(r,139),Ot(r,8),r.gzhead)Ot(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Ot(r,255&r.gzhead.time),Ot(r,r.gzhead.time>>8&255),Ot(r,r.gzhead.time>>16&255),Ot(r,r.gzhead.time>>24&255),Ot(r,9===r.level?2:r.strategy>=dt||r.level<2?4:0),Ot(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Ot(r,255&r.gzhead.extra.length),Ot(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=V(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(Ot(r,0),Ot(r,0),Ot(r,0),Ot(r,0),Ot(r,0),Ot(r,9===r.level?2:r.strategy>=dt||r.level<2?4:0),Ot(r,3),r.status=Et,Ct(t),0!==r.pending)return r.last_flush=-1,st;if(69===r.status){if(r.gzhead.extra){let e=r.pending,n=(65535&r.gzhead.extra.length)-r.gzindex;for(;r.pending+n>r.pending_buf_size;){let i=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+i),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>e&&(t.adler=V(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex+=i,Ct(t),0!==r.pending)return r.last_flush=-1,st;e=0,n-=i}let i=new Uint8Array(r.gzhead.extra);r.pending_buf.set(i.subarray(r.gzindex,r.gzindex+n),r.pending),r.pending+=n,r.gzhead.hcrc&&r.pending>e&&(t.adler=V(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex=0}r.status=73}if(73===r.status){if(r.gzhead.name){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n)),Ct(t),0!==r.pending)return r.last_flush=-1,st;n=0}e=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Ot(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n)),Ct(t),0!==r.pending)return r.last_flush=-1,st;n=0}e=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Ot(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(Ct(t),0!==r.pending))return r.last_flush=-1,st;Ot(r,255&t.adler),Ot(r,t.adler>>8&255),t.adler=0}if(r.status=Et,Ct(t),0!==r.pending)return r.last_flush=-1,st}if(0!==t.avail_in||0!==r.lookahead||e!==rt&&r.status!==Dt){let n=0===r.level?Nt(r,e):r.strategy===dt?((t,e)=>{let r;for(;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===rt)return 1;break}if(t.match_length=0,r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Bt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===at?(Bt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Bt(t,!1),0===t.strm.avail_out)?1:2})(r,e):r.strategy===mt?((t,e)=>{let r,n,i,a;const o=t.window;for(;;){if(t.lookahead<=wt){if(Lt(t),t.lookahead<=wt&&e===rt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=t.strstart-1,n=o[i],n===o[++i]&&n===o[++i]&&n===o[++i])){a=t.strstart+wt;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);t.match_length=wt-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=tt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Bt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===at?(Bt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Bt(t,!1),0===t.strm.avail_out)?1:2})(r,e):Ut[r.level].func(r,e);if(3!==n&&4!==n||(r.status=Dt),1===n||3===n)return 0===t.avail_out&&(r.last_flush=-1),st;if(2===n&&(e===nt?et(r):e!==ot&&(Q(r,0,0,!1),e===it&&(St(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Ct(t),0===t.avail_out))return r.last_flush=-1,st}return e!==at?st:r.wrap<=0?ut:(2===r.wrap?(Ot(r,255&t.adler),Ot(r,t.adler>>8&255),Ot(r,t.adler>>16&255),Ot(r,t.adler>>24&255),Ot(r,255&t.total_in),Ot(r,t.total_in>>8&255),Ot(r,t.total_in>>16&255),Ot(r,t.total_in>>24&255)):(It(r,t.adler>>>16),It(r,65535&t.adler)),Ct(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?st:ut)},deflateEnd:t=>{if(Ht(t))return ft;const e=t.state.status;return t.state=null,e===Et?kt(t,ct):st},deflateSetDictionary:(t,e)=>{let r=e.length;if(Ht(t))return ft;const n=t.state,i=n.wrap;if(2===i||1===i&&n.status!==xt||n.lookahead)return ft;if(1===i&&(t.adler=W(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){0===i&&(St(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(r-n.w_size,r),0),e=t,r=n.w_size}const a=t.avail_in,o=t.next_in,s=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do{n.ins_h=Ft(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++}while(--e);n.strstart=t,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=o,t.input=s,t.avail_in=a,n.wrap=i,st},deflateInfo:\"pako deflate (from Nodeca project)\"};const Vt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Xt={assign:function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if(\"object\"!=typeof r)throw new TypeError(r+\"must be non-object\");for(const e in r)Vt(r,e)&&(t[e]=r[e])}}return t},flattenChunks:t=>{let e=0;for(let r=0,n=t.length;r<n;r++)e+=t[r].length;const r=new Uint8Array(e);for(let e=0,n=0,i=t.length;e<i;e++){let i=t[e];r.set(i,n),n+=i.length}return r}};let Jt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Jt=!1}const Kt=new Uint8Array(256);for(let t=0;t<256;t++)Kt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Kt[254]=Kt[254]=1;var Qt={string2buf:t=>{if(\"function\"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,r,n,i,a,o=t.length,s=0;for(i=0;i<o;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<o&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(s),a=0,i=0;a<s;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<o&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},buf2string:(t,e)=>{const r=e||t.length;if(\"function\"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let n,i;const a=new Array(2*r);for(i=0,n=0;n<r;){let e=t[n++];if(e<128){a[i++]=e;continue}let o=Kt[e];if(o>4)a[i++]=65533,n+=o-1;else{for(e&=2===o?31:3===o?15:7;o>1&&n<r;)e=e<<6|63&t[n++],o--;o>1?a[i++]=65533:e<65536?a[i++]=e:(e-=65536,a[i++]=55296|e>>10&1023,a[i++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Jt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r=\"\";for(let n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r})(a,i)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let r=e-1;for(;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Kt[t[r]]>e?r:e}};var $t=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0};const te=Object.prototype.toString,{Z_NO_FLUSH:ee,Z_SYNC_FLUSH:re,Z_FULL_FLUSH:ne,Z_FINISH:ie,Z_OK:ae,Z_STREAM_END:oe,Z_DEFAULT_COMPRESSION:se,Z_DEFAULT_STRATEGY:ue,Z_DEFLATED:fe}=J;function ce(t){this.options=Xt.assign({level:se,method:fe,chunkSize:16384,windowBits:15,memLevel:8,strategy:ue},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new $t,this.strm.avail_out=0;let r=Yt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==ae)throw new Error(X[r]);if(e.header&&Yt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t=\"string\"==typeof e.dictionary?Qt.string2buf(e.dictionary):\"[object ArrayBuffer]\"===te.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,r=Yt.deflateSetDictionary(this.strm,t),r!==ae)throw new Error(X[r]);this._dict_set=!0}}function he(t,e){const r=new ce(e);if(r.push(t,!0),r.err)throw r.msg||X[r.err];return r.result}ce.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize;let i,a;if(this.ended)return!1;for(a=e===~~e?e:!0===e?ie:ee,\"string\"==typeof t?r.input=Qt.string2buf(t):\"[object ArrayBuffer]\"===te.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(a===re||a===ne)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(i=Yt.deflate(r,a),i===oe)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=Yt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===ae;if(0!==r.avail_out){if(a>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},ce.prototype.onData=function(t){this.chunks.push(t)},ce.prototype.onEnd=function(t){t===ae&&(this.result=Xt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var le={Deflate:ce,deflate:he,deflateRaw:function(t,e){return(e=e||{}).raw=!0,he(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,he(t,e)},constants:J};const pe=16209;var de=function(t,e){let r,n,i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k;const A=t.state;r=t.next_in,D=t.input,n=r+(t.avail_in-5),i=t.next_out,k=t.output,a=i-(e-t.avail_out),o=i+(t.avail_out-257),s=A.dmax,u=A.wsize,f=A.whave,c=A.wnext,h=A.window,l=A.hold,p=A.bits,d=A.lencode,m=A.distcode,y=(1<<A.lenbits)-1,b=(1<<A.distbits)-1;t:do{p<15&&(l+=D[r++]<<p,p+=8,l+=D[r++]<<p,p+=8),g=d[l&y];e:for(;;){if(v=g>>>24,l>>>=v,p-=v,v=g>>>16&255,0===v)k[i++]=65535&g;else{if(!(16&v)){if(64&v){if(32&v){A.mode=16191;break t}t.msg=\"invalid literal/length code\",A.mode=pe;break t}g=d[(65535&g)+(l&(1<<v)-1)];continue e}for(w=65535&g,v&=15,v&&(p<v&&(l+=D[r++]<<p,p+=8),w+=l&(1<<v)-1,l>>>=v,p-=v),p<15&&(l+=D[r++]<<p,p+=8,l+=D[r++]<<p,p+=8),g=m[l&b];;){if(v=g>>>24,l>>>=v,p-=v,v=g>>>16&255,16&v){if(_=65535&g,v&=15,p<v&&(l+=D[r++]<<p,p+=8,p<v&&(l+=D[r++]<<p,p+=8)),_+=l&(1<<v)-1,_>s){t.msg=\"invalid distance too far back\",A.mode=pe;break t}if(l>>>=v,p-=v,v=i-a,_>v){if(v=_-v,v>f&&A.sane){t.msg=\"invalid distance too far back\",A.mode=pe;break t}if(x=0,E=h,0===c){if(x+=u-v,v<w){w-=v;do{k[i++]=h[x++]}while(--v);x=i-_,E=k}}else if(c<v){if(x+=u+c-v,v-=c,v<w){w-=v;do{k[i++]=h[x++]}while(--v);if(x=0,c<w){v=c,w-=v;do{k[i++]=h[x++]}while(--v);x=i-_,E=k}}}else if(x+=c-v,v<w){w-=v;do{k[i++]=h[x++]}while(--v);x=i-_,E=k}for(;w>2;)k[i++]=E[x++],k[i++]=E[x++],k[i++]=E[x++],w-=3;w&&(k[i++]=E[x++],w>1&&(k[i++]=E[x++]))}else{x=i-_;do{k[i++]=k[x++],k[i++]=k[x++],k[i++]=k[x++],w-=3}while(w>2);w&&(k[i++]=k[x++],w>1&&(k[i++]=k[x++]))}break}if(64&v){t.msg=\"invalid distance code\",A.mode=pe;break t}g=m[(65535&g)+(l&(1<<v)-1)]}}break}}while(r<n&&i<o);w=p>>3,r-=w,p-=w<<3,l&=(1<<p)-1,t.next_in=r,t.next_out=i,t.avail_in=r<n?n-r+5:5-(r-n),t.avail_out=i<o?o-i+257:257-(i-o),A.hold=l,A.bits=p};const me=15,ye=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),be=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ge=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ve=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var we=(t,e,r,n,i,a,o,s)=>{const u=s.bits;let f,c,h,l,p,d,m=0,y=0,b=0,g=0,v=0,w=0,_=0,x=0,E=0,D=0,k=null;const A=new Uint16Array(16),S=new Uint16Array(16);let M,F,C,B=null;for(m=0;m<=me;m++)A[m]=0;for(y=0;y<n;y++)A[e[r+y]]++;for(v=u,g=me;g>=1&&0===A[g];g--);if(v>g&&(v=g),0===g)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(b=1;b<g&&0===A[b];b++);for(v<b&&(v=b),x=1,m=1;m<=me;m++)if(x<<=1,x-=A[m],x<0)return-1;if(x>0&&(0===t||1!==g))return-1;for(S[1]=0,m=1;m<me;m++)S[m+1]=S[m]+A[m];for(y=0;y<n;y++)0!==e[r+y]&&(o[S[e[r+y]]++]=y);if(0===t?(k=B=o,d=20):1===t?(k=ye,B=be,d=257):(k=ge,B=ve,d=0),D=0,y=0,m=b,p=a,w=v,_=0,h=-1,E=1<<v,l=E-1,1===t&&E>852||2===t&&E>592)return 1;for(;;){M=m-_,o[y]+1<d?(F=0,C=o[y]):o[y]>=d?(F=B[o[y]-d],C=k[o[y]-d]):(F=96,C=0),f=1<<m-_,c=1<<w,b=c;do{c-=f,i[p+(D>>_)+c]=M<<24|F<<16|C}while(0!==c);for(f=1<<m-1;D&f;)f>>=1;if(0!==f?(D&=f-1,D+=f):D=0,y++,0==--A[m]){if(m===g)break;m=e[r+o[y]]}if(m>v&&(D&l)!==h){for(0===_&&(_=v),p+=b,w=m-_,x=1<<w;w+_<g&&(x-=A[w+_],!(x<=0));)w++,x<<=1;if(E+=1<<w,1===t&&E>852||2===t&&E>592)return 1;h=D&l,i[h]=v<<24|w<<16|p-a}}return 0!==D&&(i[p+D]=m-_<<24|64<<16),s.bits=v,0};const{Z_FINISH:_e,Z_BLOCK:xe,Z_TREES:Ee,Z_OK:De,Z_STREAM_END:ke,Z_NEED_DICT:Ae,Z_STREAM_ERROR:Se,Z_DATA_ERROR:Me,Z_MEM_ERROR:Fe,Z_BUF_ERROR:Ce,Z_DEFLATED:Be}=J,Oe=16180,Ie=16190,Te=16191,Pe=16192,Le=16194,Ne=16199,je=16200,Re=16206,ze=16209,Ue=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const He=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Oe||e.mode>16211?1:0},Ze=t=>{if(He(t))return Se;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=Oe,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,De},qe=t=>{if(He(t))return Se;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,Ze(t)},We=(t,e)=>{let r;if(He(t))return Se;const n=t.state;return e<0?(r=0,e=-e):(r=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Se:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,qe(t))},Ye=(t,e)=>{if(!t)return Se;const r=new Ge;t.state=r,r.strm=t,r.window=null,r.mode=Oe;const n=We(t,e);return n!==De&&(t.state=null),n};let Ve,Xe,Je=!0;const Ke=t=>{if(Je){Ve=new Int32Array(512),Xe=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(we(1,t.lens,0,288,Ve,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;we(2,t.lens,0,32,Xe,0,t.work,{bits:5}),Je=!1}t.lencode=Ve,t.lenbits=9,t.distcode=Xe,t.distbits=5},Qe=(t,e,r,n)=>{let i;const a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),n>=a.wsize?(a.window.set(e.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>n&&(i=n),a.window.set(e.subarray(r-n,r-n+i),a.wnext),(n-=i)?(a.window.set(e.subarray(r-n,r),0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0};var $e={inflateReset:qe,inflateReset2:We,inflateResetKeep:Ze,inflateInit:t=>Ye(t,15),inflateInit2:Ye,inflate:(t,e)=>{let r,n,i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D=0;const k=new Uint8Array(4);let A,S;const M=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(He(t)||!t.output||!t.input&&0!==t.avail_in)return Se;r=t.state,r.mode===Te&&(r.mode=Pe),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,f=r.hold,c=r.bits,h=s,l=u,E=De;t:for(;;)switch(r.mode){case Oe:if(0===r.wrap){r.mode=Pe;break}for(;c<16;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(2&r.wrap&&35615===f){0===r.wbits&&(r.wbits=15),r.check=0,k[0]=255&f,k[1]=f>>>8&255,r.check=V(r.check,k,2,0),f=0,c=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&f)<<8)+(f>>8))%31){t.msg=\"incorrect header check\",r.mode=ze;break}if((15&f)!==Be){t.msg=\"unknown compression method\",r.mode=ze;break}if(f>>>=4,c-=4,x=8+(15&f),0===r.wbits&&(r.wbits=x),x>15||x>r.wbits){t.msg=\"invalid window size\",r.mode=ze;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=512&f?16189:Te,f=0,c=0;break;case 16181:for(;c<16;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(r.flags=f,(255&r.flags)!==Be){t.msg=\"unknown compression method\",r.mode=ze;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=ze;break}r.head&&(r.head.text=f>>8&1),512&r.flags&&4&r.wrap&&(k[0]=255&f,k[1]=f>>>8&255,r.check=V(r.check,k,2,0)),f=0,c=0,r.mode=16182;case 16182:for(;c<32;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.head&&(r.head.time=f),512&r.flags&&4&r.wrap&&(k[0]=255&f,k[1]=f>>>8&255,k[2]=f>>>16&255,k[3]=f>>>24&255,r.check=V(r.check,k,4,0)),f=0,c=0,r.mode=16183;case 16183:for(;c<16;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.head&&(r.head.xflags=255&f,r.head.os=f>>8),512&r.flags&&4&r.wrap&&(k[0]=255&f,k[1]=f>>>8&255,r.check=V(r.check,k,2,0)),f=0,c=0,r.mode=16184;case 16184:if(1024&r.flags){for(;c<16;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.length=f,r.head&&(r.head.extra_len=f),512&r.flags&&4&r.wrap&&(k[0]=255&f,k[1]=f>>>8&255,r.check=V(r.check,k,2,0)),f=0,c=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&(p=r.length,p>s&&(p=s),p&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(a,a+p),x)),512&r.flags&&4&r.wrap&&(r.check=V(r.check,n,p,a)),s-=p,a+=p,r.length-=p),r.length))break t;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break t;p=0;do{x=n[a+p++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=V(r.check,n,p,a)),s-=p,a+=p,x)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===s)break t;p=0;do{x=n[a+p++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=V(r.check,n,p,a)),s-=p,a+=p,x)break t}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;c<16;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(4&r.wrap&&f!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=ze;break}f=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Te;break;case 16189:for(;c<32;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}t.adler=r.check=Ue(f),f=0,c=0,r.mode=Ie;case Ie:if(0===r.havedict)return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=f,r.bits=c,Ae;t.adler=r.check=1,r.mode=Te;case Te:if(e===xe||e===Ee)break t;case Pe:if(r.last){f>>>=7&c,c-=7&c,r.mode=Re;break}for(;c<3;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}switch(r.last=1&f,f>>>=1,c-=1,3&f){case 0:r.mode=16193;break;case 1:if(Ke(r),r.mode=Ne,e===Ee){f>>>=2,c-=2;break t}break;case 2:r.mode=16196;break;case 3:t.msg=\"invalid block type\",r.mode=ze}f>>>=2,c-=2;break;case 16193:for(f>>>=7&c,c-=7&c;c<32;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if((65535&f)!=(f>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=ze;break}if(r.length=65535&f,f=0,c=0,r.mode=Le,e===Ee)break t;case Le:r.mode=16195;case 16195:if(p=r.length,p){if(p>s&&(p=s),p>u&&(p=u),0===p)break t;i.set(n.subarray(a,a+p),o),s-=p,a+=p,u-=p,o+=p,r.length-=p;break}r.mode=Te;break;case 16196:for(;c<14;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(r.nlen=257+(31&f),f>>>=5,c-=5,r.ndist=1+(31&f),f>>>=5,c-=5,r.ncode=4+(15&f),f>>>=4,c-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=ze;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;c<3;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.lens[M[r.have++]]=7&f,f>>>=3,c-=3}for(;r.have<19;)r.lens[M[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},E=we(0,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,E){t.msg=\"invalid code lengths set\",r.mode=ze;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;D=r.lencode[f&(1<<r.lenbits)-1],y=D>>>24,b=D>>>16&255,g=65535&D,!(y<=c);){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(g<16)f>>>=y,c-=y,r.lens[r.have++]=g;else{if(16===g){for(S=y+2;c<S;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(f>>>=y,c-=y,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=ze;break}x=r.lens[r.have-1],p=3+(3&f),f>>>=2,c-=2}else if(17===g){for(S=y+3;c<S;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}f>>>=y,c-=y,x=0,p=3+(7&f),f>>>=3,c-=3}else{for(S=y+7;c<S;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}f>>>=y,c-=y,x=0,p=11+(127&f),f>>>=7,c-=7}if(r.have+p>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=ze;break}for(;p--;)r.lens[r.have++]=x}}if(r.mode===ze)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=ze;break}if(r.lenbits=9,A={bits:r.lenbits},E=we(1,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,E){t.msg=\"invalid literal/lengths set\",r.mode=ze;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},E=we(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,E){t.msg=\"invalid distances set\",r.mode=ze;break}if(r.mode=Ne,e===Ee)break t;case Ne:r.mode=je;case je:if(s>=6&&u>=258){t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=f,r.bits=c,de(t,l),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,f=r.hold,c=r.bits,r.mode===Te&&(r.back=-1);break}for(r.back=0;D=r.lencode[f&(1<<r.lenbits)-1],y=D>>>24,b=D>>>16&255,g=65535&D,!(y<=c);){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(b&&!(240&b)){for(v=y,w=b,_=g;D=r.lencode[_+((f&(1<<v+w)-1)>>v)],y=D>>>24,b=D>>>16&255,g=65535&D,!(v+y<=c);){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}f>>>=v,c-=v,r.back+=v}if(f>>>=y,c-=y,r.back+=y,r.length=g,0===b){r.mode=16205;break}if(32&b){r.back=-1,r.mode=Te;break}if(64&b){t.msg=\"invalid literal/length code\",r.mode=ze;break}r.extra=15&b,r.mode=16201;case 16201:if(r.extra){for(S=r.extra;c<S;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;D=r.distcode[f&(1<<r.distbits)-1],y=D>>>24,b=D>>>16&255,g=65535&D,!(y<=c);){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(!(240&b)){for(v=y,w=b,_=g;D=r.distcode[_+((f&(1<<v+w)-1)>>v)],y=D>>>24,b=D>>>16&255,g=65535&D,!(v+y<=c);){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}f>>>=v,c-=v,r.back+=v}if(f>>>=y,c-=y,r.back+=y,64&b){t.msg=\"invalid distance code\",r.mode=ze;break}r.offset=g,r.extra=15&b,r.mode=16203;case 16203:if(r.extra){for(S=r.extra;c<S;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.offset+=f&(1<<r.extra)-1,f>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=ze;break}r.mode=16204;case 16204:if(0===u)break t;if(p=l-u,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=ze;break}p>r.wnext?(p-=r.wnext,d=r.wsize-p):d=r.wnext-p,p>r.length&&(p=r.length),m=r.window}else m=i,d=o-r.offset,p=r.length;p>u&&(p=u),u-=p,r.length-=p;do{i[o++]=m[d++]}while(--p);0===r.length&&(r.mode=je);break;case 16205:if(0===u)break t;i[o++]=r.length,u--,r.mode=je;break;case Re:if(r.wrap){for(;c<32;){if(0===s)break t;s--,f|=n[a++]<<c,c+=8}if(l-=u,t.total_out+=l,r.total+=l,4&r.wrap&&l&&(t.adler=r.check=r.flags?V(r.check,i,l,o-l):W(r.check,i,l,o-l)),l=u,4&r.wrap&&(r.flags?f:Ue(f))!==r.check){t.msg=\"incorrect data check\",r.mode=ze;break}f=0,c=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;c<32;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(4&r.wrap&&f!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=ze;break}f=0,c=0}r.mode=16208;case 16208:E=ke;break t;case ze:E=Me;break t;case 16210:return Fe;default:return Se}return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=f,r.bits=c,(r.wsize||l!==t.avail_out&&r.mode<ze&&(r.mode<Re||e!==_e))&&Qe(t,t.output,t.next_out,l-t.avail_out),h-=t.avail_in,l-=t.avail_out,t.total_in+=h,t.total_out+=l,r.total+=l,4&r.wrap&&l&&(t.adler=r.check=r.flags?V(r.check,i,l,t.next_out-l):W(r.check,i,l,t.next_out-l)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Te?128:0)+(r.mode===Ne||r.mode===Le?256:0),(0===h&&0===l||e===_e)&&E===De&&(E=Ce),E},inflateEnd:t=>{if(He(t))return Se;let e=t.state;return e.window&&(e.window=null),t.state=null,De},inflateGetHeader:(t,e)=>{if(He(t))return Se;const r=t.state;return 2&r.wrap?(r.head=e,e.done=!1,De):Se},inflateSetDictionary:(t,e)=>{const r=e.length;let n,i,a;return He(t)?Se:(n=t.state,0!==n.wrap&&n.mode!==Ie?Se:n.mode===Ie&&(i=1,i=W(i,e,r,0),i!==n.check)?Me:(a=Qe(t,e,r,r),a?(n.mode=16210,Fe):(n.havedict=1,De)))},inflateInfo:\"pako inflate (from Nodeca project)\"};var tr=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1};const er=Object.prototype.toString,{Z_NO_FLUSH:rr,Z_FINISH:nr,Z_OK:ir,Z_STREAM_END:ar,Z_NEED_DICT:or,Z_STREAM_ERROR:sr,Z_DATA_ERROR:ur,Z_MEM_ERROR:fr}=J;function cr(t){this.options=Xt.assign({chunkSize:65536,windowBits:15,to:\"\"},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new $t,this.strm.avail_out=0;let r=$e.inflateInit2(this.strm,e.windowBits);if(r!==ir)throw new Error(X[r]);if(this.header=new tr,$e.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=Qt.string2buf(e.dictionary):\"[object ArrayBuffer]\"===er.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=$e.inflateSetDictionary(this.strm,e.dictionary),r!==ir)))throw new Error(X[r])}function hr(t,e){const r=new cr(e);if(r.push(t),r.err)throw r.msg||X[r.err];return r.result}cr.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(o=e===~~e?e:!0===e?nr:rr,\"[object ArrayBuffer]\"===er.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),a=$e.inflate(r,o),a===or&&i&&(a=$e.inflateSetDictionary(r,i),a===ir?a=$e.inflate(r,o):a===ur&&(a=or));r.avail_in>0&&a===ar&&r.state.wrap>0&&0!==t[r.next_in];)$e.inflateReset(r),a=$e.inflate(r,o);switch(a){case sr:case ur:case or:case fr:return this.onEnd(a),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||a===ar))if(\"string\"===this.options.to){let t=Qt.utf8border(r.output,r.next_out),e=r.next_out-t,i=Qt.buf2string(r.output,t);r.next_out=e,r.avail_out=n-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(a!==ir||0!==s){if(a===ar)return a=$e.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},cr.prototype.onData=function(t){this.chunks.push(t)},cr.prototype.onEnd=function(t){t===ir&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=Xt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var lr={Inflate:cr,inflate:hr,inflateRaw:function(t,e){return(e=e||{}).raw=!0,hr(t,e)},ungzip:hr,constants:J};const{Deflate:pr,deflate:dr,deflateRaw:mr,gzip:yr}=le,{Inflate:br,inflate:gr,inflateRaw:vr,ungzip:wr}=lr;var _r={Deflate:pr,deflate:dr,deflateRaw:mr,gzip:yr,Inflate:br,inflate:gr,inflateRaw:vr,ungzip:wr,constants:J};function xr(t){return xr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},xr(t)}function Er(t){return function(t){if(Array.isArray(t))return Dr(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Dr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dr(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Dr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kr(){kr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",s=a.asyncIterator||\"@@asyncIterator\",u=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),s=new C(n||[]);return i(o,\"_invoke\",{value:A(t,r,s)}),o}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var l=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function b(){}function g(){}function v(){}var w={};f(w,o,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(B([])));x&&x!==r&&n.call(x,o)&&(w=x);var E=v.prototype=b.prototype=Object.create(w);function D(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if(\"throw\"!==u.type){var f=u.arg,c=f.value;return c&&\"object\"==xr(c)&&n.call(c,\"__await\")?e.resolve(c.__await).then((function(t){r(\"next\",t,o,s)}),(function(t){r(\"throw\",t,o,s)})):e.resolve(c).then((function(t){f.value=t,o(f)}),(function(t){return r(\"throw\",t,o,s)}))}s(u.arg)}var a;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function A(e,r,n){var i=l;return function(a,o){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===l)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var f=h(e,r,n);if(\"normal\"===f.type){if(i=n.done?m:p,f.arg===y)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=m,n.method=\"throw\",n.arg=f.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var a=h(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[o];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(xr(e)+\" is not iterable\")}return g.prototype=v,i(E,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:g,configurable:!0}),g.displayName=f(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},D(k.prototype),f(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new k(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},D(E),f(E,u,\"Generator\"),f(E,o,(function(){return this})),f(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function Ar(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Sr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Ar(a,n,i,o,s,\"next\",t)}function s(t){Ar(a,n,i,o,s,\"throw\",t)}o(void 0)}))}}function Mr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Fr(n.key),n)}}function Fr(t){var e=function(t,e){if(\"object\"!=xr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=xr(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==xr(e)?e:e+\"\"}var Cr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t)}return e=t,r=null,u=[{key:\"Abcc\",value:(T=Sr(kr().mark((function t(e){return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t){chrome.storage.local.get(e,(function(r){return r&&r[e]?t(r[e]):t({})}))})));case 1:case\"end\":return t.stop()}}),t)}))),function(t){return T.apply(this,arguments)})},{key:\"wbeh\",value:(I=Sr(kr().mark((function t(e,r){var n;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={})[e]=r,t.next=4,chrome.storage.local.set(n);case 4:case\"end\":return t.stop()}}),t)}))),function(t,e){return I.apply(this,arguments)})},{key:\"Bi9dF\",value:(O=Sr(kr().mark((function t(e){var r,n,i,a,o=arguments;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:0,n=o.length>2&&void 0!==o[2]?o[2]:1,i=o.length>3?o[3]:void 0,a=Math.floor(Math.random()*r+e),n&&i&&(a=Math.max(a/n,i)),t.next=7,new Promise((function(t){setTimeout(t,a)}));case 7:return t.abrupt(\"return\",t.sent);case 8:case\"end\":return t.stop()}}),t)}))),function(t){return O.apply(this,arguments)})},{key:\"HfbaJ\",value:function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}},{key:\"RhjhR\",value:function(t){var e=t.split(\".\");return 1e3*parseInt(e[0])*1e3+1e3*parseInt(e[1])+parseInt(e[2])}},{key:\"Oeb0\",value:function(e,r){try{return t.RhjhR(e)>=t.RhjhR(r)}catch(t){return!1}}},{key:\"_d5at\",value:function(t,e,r){for(;\"\".concat(t).length<r;)t=\"\".concat(e).concat(t);return t}},{key:\"Dfj0D\",value:(B=Sr(kr().mark((function t(e){var r,n,i,a;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.B174bD,a=void 0===i?1:i,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"zo4B\",label:{key:n,B174bD:a}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return B.apply(this,arguments)})},{key:\"Mc76\",value:(C=Sr(kr().mark((function t(e){var r,n,i,a,o,s,u;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.value,a=e.B174bD,o=void 0===a?1:a,s=e.q177o,u=void 0!==s&&s,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"TpiT\",label:{key:n,value:i,B174bD:o,q177o:u}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return C.apply(this,arguments)})},{key:\"Zhc9_\",value:(F=Sr(kr().mark((function t(e){var r,n,i,a;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.B174bD,a=void 0===i?1:i,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"r136v\",label:{key:n,B174bD:a}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return F.apply(this,arguments)})},{key:\"Cc9h\",value:(M=Sr(kr().mark((function e(r,n){var i,a,o,s,u,f,c;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(i=chrome.runtime)&&void 0!==i&&i.id){e.next=2;break}return e.abrupt(\"return\",0);case 2:return 3323===r?(s=\"rl94t\",u=\"vm2ex\"):3635===r&&(s=\"Ml74\",u=\"_m0a\"),e.next=5,t.Dfj0D({key:s,B174bD:1});case 5:if(e.t1=a=e.sent,e.t0=null===e.t1,e.t0){e.next=9;break}e.t0=void 0===a;case 9:if(!e.t0){e.next=13;break}e.t2=void 0,e.next=14;break;case 13:e.t2=a.value;case 14:if(e.t2===n){e.next=22;break}return e.next=19,t.Mc76({key:s,value:n,B174bD:1});case 19:o=1,e.next=36;break;case 22:return e.next=24,t.Dfj0D({key:u,B174bD:1});case 24:if(e.t4=f=e.sent,e.t3=null===e.t4,e.t3){e.next=28;break}e.t3=void 0===f;case 28:if(!e.t3){e.next=32;break}e.t5=void 0,e.next=33;break;case 32:e.t5=f.value;case 33:c=e.t5,o=parseInt(c?c+\"\":\"1\")+1;case 36:return e.next=38,t.Mc76({key:u,value:o,B174bD:1});case 38:return e.abrupt(\"return\",o);case 39:case\"end\":return e.stop()}}),e)}))),function(t,e){return M.apply(this,arguments)})},{key:\"_g06\",value:(S=Sr(kr().mark((function e(r){var n,i,a,o,s;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Dfj0D({key:\"CSLcaeg\",B174bD:-1});case 2:if(e.t1=n=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===n;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=n.value;case 11:return a=e.t2,e.next=14,t.Dfj0D({key:\"CSLid5l\"});case 14:if(e.t4=i=e.sent,e.t3=null===e.t4,e.t3){e.next=18;break}e.t3=void 0===i;case 18:if(!e.t3){e.next=22;break}e.t5=void 0,e.next=23;break;case 22:e.t5=i.value;case 23:return o=e.t5,s=1,3323===r?s=parseFloat((null==a?void 0:a.hcs)||o||\"1.1708\"):3635===r&&(s=parseFloat((null==a?void 0:a.res)||o||\"1.1708\")),e.abrupt(\"return\",s);case 27:case\"end\":return e.stop()}}),e)}))),function(t){return S.apply(this,arguments)})},{key:\"VfeeX\",value:(A=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s1c4\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return A.apply(this,arguments)})},{key:\"yfml\",value:(k=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x236B\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return k.apply(this,arguments)})},{key:\"qi5f\",value:(D=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x1cmx\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return D.apply(this,arguments)})},{key:\"FcflF\",value:(E=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"B142B\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return E.apply(this,arguments)})},{key:\"xehcz\",value:(x=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s163\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return x.apply(this,arguments)})},{key:\"Jef6N\",value:(_=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"D18fF\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return _.apply(this,arguments)})},{key:\"tg42v\",value:(w=Sr(kr().mark((function t(e){var r;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.next=2;break;case 2:if(null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=4;break}return t.abrupt(\"return\",void 0);case 4:return t.abrupt(\"return\",new Promise((function(t,r){chrome.runtime.sendMessage({type:\"q1fj\",label:e},(function(e){e?t(e):r()}))})));case 5:case\"end\":return t.stop()}}),t)}))),function(t){return w.apply(this,arguments)})},{key:\"Bc2bD\",value:(v=Sr(kr().mark((function e(r){var n,i,a,o,s,u,f,c,h,l,p,d,m,y,b=arguments;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=b.length>1&&void 0!==b[1]&&b[1],i=b.length>2&&void 0!==b[2]?b[2]:null,a=b.length>3&&void 0!==b[3]?b[3]:null,o=b.length>4&&void 0!==b[4]?b[4]:1,r&&r.isConnected){e.next=7;break}return e.abrupt(\"return\");case 7:if(s=r.getBoundingClientRect(),null!==i&&null!==a||(i=s.left+s.width/2,a=s.top+s.height/2),!isNaN(i)&&!isNaN(a)){e.next=12;break}return e.abrupt(\"return\");case 12:if(!n){e.next=29;break}u=[{e:\"mouseover\",w:30/o},{e:\"mouseenter\",w:15/o}].concat(Er(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/o})),[{e:\"mousedown\",w:35/o},{e:\"mouseup\",w:30/o},{e:\"click\",w:35/o}],Er(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/o})),[{e:\"mouseout\",w:25/o}]),f=0;case 15:if(!(f<u.length)){e.next=27;break}return c=u[f].e,h=50+Math.floor(100*Math.random()),l=50+Math.floor(200*Math.random()),\"mouseenter\"!==c&&\"mouseout\"!==c?(i=s.left+s.width/2,a=s.top+s.height/2):(i=s.left+(\"mouseenter\"===c?0:s.width),a=s.top+(\"mouseenter\"===c?0:s.height),i+=10*Math.random()-5,a+=20*Math.random()-5),p=new MouseEvent(c,{detail:\"mouseover\"===c?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i,clientY:a,screenX:h,screenY:l}),r.dispatchEvent(p),e.next=24,t.Bi9dF(u[f].w);case 24:f++,e.next=15;break;case 27:e.next=39;break;case 29:d=[{e:\"mouseover\",w:30/o},{e:\"mouseenter\",w:15/o},{e:\"mousedown\",w:30/o},{e:\"mouseup\",w:30/o},{e:\"click\",w:50/o},{e:\"mouseout\",w:35/o}],m=0;case 31:if(!(m<d.length)){e.next=39;break}return y=new MouseEvent(d[m].e,{detail:\"mouseover\"===d[m].e?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i+4,clientY:a+4}),r.dispatchEvent(y),e.next=36,t.Bi9dF(d[m].w);case 36:m++,e.next=31;break;case 39:case\"end\":return e.stop()}}),e)}))),function(t){return v.apply(this,arguments)})},{key:\"Jfi2J\",value:function(t){var e;if(!t)return null;var r=null===(e=t.style)||void 0===e?void 0:e.background.trim().match(/(?!^)\".*?\"/g);return r&&0!==r.length?r[0].replaceAll('\"',\"\"):null}},{key:\"BfgoD\",value:function(t){var e;return null==t||null===(e=t.src)||void 0===e?void 0:e.trim()}},{key:\"qd5l\",value:function(t,e){return t[0]=t[0]>=0?t[0]:0,t[1]=t[1]>=0?t[1]:0,t[2]=t[0]+t[2]<=e?t[2]:e-t[0],t[3]=t[1]+t[3]<=e?t[3]:e-t[1],t}},{key:\"yc01\",value:function(t){var e=t.map((function(t){return Math.exp(t)})),r=e.reduce((function(t,e){return t+e}),0);return e.map((function(t){return t/r}))}},{key:\"BgncB\",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.querySelector(e),i=null!==n;return i&&r&&(i=t.Yej5(n)),i}},{key:\"Mh6a\",value:function(t,e){if(t.length!==e.length)throw new Error(\"must have the same length\");return t.reduce((function(t,r,n){return t+r*e[n]}),0)}},{key:\"HdcaL\",value:function(t){return Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e,2)}),0))}},{key:\"shk4\",value:function(e){for(var r=[],n=0;n<e.length;n++){for(var i=new Array(e.length).fill(0),a=0;a<n;a++)i[a]=r[a][n];for(var o=e[n],s=n+1;s<e.length;s++){var u=e[s];i[s]=t.qhi5(o,u)}r.push(Er(i))}return r}},{key:\"qhi5\",value:function(e,r){return t.Mh6a(e,r)/(t.HdcaL(e)*t.HdcaL(r))}},{key:\"ze45D\",value:function(t,e){var r=new Set(Object.keys(t)),n=new Set(Object.keys(e)),i=Er(r).filter((function(t){return n.has(t)})),a=new Set([].concat(Er(r),Er(n)));return i.length/a.size}},{key:\"Yej5\",value:function(t){if(!t)return!1;var e=window.getComputedStyle(t);return!(\"none\"===e.display||\"hidden\"===e.visibility||0===t.offsetWidth&&0===t.offsetHeight||\"fixed\"===e.position&&\"hidden\"===e.visibility||null===t.offsetParent)}},{key:\"Cd86\",value:function(t,e){var r=t.data,n=[],a=0;if(2===e.length)for(var o=0;o<e[0];o++){for(var s=[],u=0;u<e[1];u++)s.push(r[a]),a++;n.push(s)}else if(3===e.length)for(var f=0;f<e[0];f++){for(var c=[],h=0;h<e[1];h++){for(var l=[],p=0;p<e[2];p++)l.push(r[a]),a++;c.push(l)}n.push(c)}else if(4===e.length)for(var d=0;d<e[0];d++){for(var m=[],y=0;y<e[1];y++){for(var b=[],g=0;g<e[2];g++){for(var v=[],w=0;w<e[3];w++)v.push(r[a]),a++;b.push(v)}m.push(b)}n.push(m)}return i.a(n)}},{key:\"Iepc\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Er(e);r&&(n[0]=t[0],n[1]=t[1],n[2]=e[2]-(e[0]-n[0]),n[3]=e[3]-(e[1]-n[1]));var i=Math.max(t[0],n[0]),a=Math.max(t[1],n[1]),o=Math.min(t[2],n[2]),s=Math.min(t[3],n[3]);return Math.max(0,o-i)*Math.max(0,s-a)}},{key:\"FbijJ\",value:function(e,r){return(e[2]-e[0])*(e[3]-e[1])+(r[2]-r[0])*(r[3]-r[1])-t.Iepc(e,r)}},{key:\"tel7v\",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.Iepc(e,r,n)/t.FbijJ(e,r)}},{key:\"ue9h\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return!!((e[0]<=t[0]||n&&e[0]-t[0]<5)&&(e[1]<=t[1]||n&&e[1]-t[1]<5)&&(e[2]>=t[2]||n&&e[2]-t[2]>-5)&&(e[3]>=t[3]||n&&e[3]-t[3]>-5))||!r&&(t[0]<=e[0]||n&&t[0]-e[0]<5)&&(t[1]<=e[1]||n&&t[1]-e[1]<5)&&(t[2]>=e[2]||n&&t[2]-e[2]>-5)&&(t[3]>=e[3]||n&&t[3]-e[3]>-5)}},{key:\"rdfov\",value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];if(e.length>0){e.sort((function(t,e){return e[4]-t[4]}));for(var i=function(){var i=e.shift();n.push(i),e=e.filter((function(e){return!t.ue9h(e,i,!0,r)}))};e.length>0;)i()}return n}},{key:\"_e92_\",value:function(t,e){var r=t[2]<e[0],n=t[0]>e[2],i=t[3]<e[1],a=t[1]>e[3];return!(r||n||i||a)}},{key:\"thebv\",value:function(e,r){for(var n=0;n<r.length;n++)t._e92_(e,r[n])}},{key:\"Ff32H\",value:function(t){if(0===t.length)return-1;var e=Math.max.apply(Math,Er(t));return t.indexOf(e)}},{key:\"Hf0eH\",value:function(t){if(0===t.length)return-1;var e=Math.min.apply(Math,Er(t));return t.indexOf(e)}},{key:\"rc4bt\",value:function(t){return 1/(1+Math.exp(-t))}},{key:\"_d1o\",value:function(t,e,r){for(;\"\".concat(t).length<r;)t=\"\".concat(e).concat(t);return t}},{key:\"Shoa\",value:function(t){for(var e=t.bitmap.width,r=t.bitmap.height,n=0,i=0,a=0;a<r;a++)for(var o=0;o<e;o++){var s=4*(a*e+o);t.bitmap.data[s]<128?n++:i++}return n/(n+i)}},{key:\"Ii11\",value:function(t,e,r){if(t&&0!==t.length){for(var n=t.map((function(t){return[t.x,t.y]})),i=(new a.DBSCAN).run(n,e,r,null),o=0,s=0,u=0,f=0;f<i.length;f++)if(i[f].length>o)s=f,o=i[f].length,u=i[f].reduce((function(t,e){return t+=e.value}),0);else if(i[f].length===o){var c=i[f].reduce((function(t,e){return t+=e.value}),0);c<u&&(s=f,o=i[f].length,u=c)}return i[s]}}},{key:\"vh3fx\",value:(g=Sr(kr().mark((function t(e,r){var i,a,o,s,u,f,c,h=arguments;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=h.length>2&&void 0!==h[2]?h[2]:\"\",null!==(i=chrome.runtime)&&void 0!==i&&i.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.next=5,e.getBase64Async(n.a.AUTO);case 5:return s=t.sent,u=/[<>:\"\\/\\\\|?*\\x00-\\x1F]/g,o=o.replace(u,\"\").replaceAll(\".\",\"\").replace(/\\s+/g,\"_\"),f=(null===(a=o)||void 0===a?void 0:a.length)>0?\"_solver_raw/\"+o+\"/\"+r:\"_solver_raw/\"+r,c={url:s,filename:f,saveAs:!1,conflictAction:\"uniquify\"},t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"q1j6\",label:c},(function(r){r?t(r):e()}))})));case 11:case\"end\":return t.stop()}}),t)}))),function(t,e){return g.apply(this,arguments)})},{key:\"DgmgF\",value:function(t,e,r,n){var i={x:0,y:0},a=!1;switch(n){case 0:i={x:e-1,y:r-1};for(var o=0;o<r;o++){for(var s=0;s<e;s++)if(!a&&255===t[o*e+s]&&s<i.x&&o<i.y){i.x=s,i.y=o,a=!0;break}if(a)break}break;case 1:i={x:0,y:0};for(var u=e-1;u>=0;u--){for(var f=r-1;f>=0;f--)if(!a&&255===t[f*e+u]&&u>i.x&&f>i.y){i.x=u,i.y=f,a=!0;break}if(a)break}break;case 2:i={x:0,y:0};for(var c=r-1;c>=0;c--){for(var h=e-1;h>=0;h--)if(!a&&255===t[c*e+h]&&h>i.x&&c>i.y){i.x=h,i.y=c,a=!0;break}if(a)break}break;case 3:i={x:e,y:r};for(var l=0;l<e;l++){for(var p=0;p<r;p++)if(!a&&255===t[p*e+l]&&l<i.x&&p<i.y){i.x=l,i.y=p,a=!0;break}if(a)break}}return i}},{key:\"Zg20Z\",value:function(t,e){var r=Array.from({length:e},(function(){return 0})),i=256/e;t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,e){var a=this.getPixelColor(t,e),o=n.a.intToRGBA(a),s=o.r,u=o.g,f=o.b,c=Math.floor((s+u+f)/3/i);r[c]++}));var a=r.reduce((function(t,e){return t+e}),0);return r.map((function(t){return t/a}))}},{key:\"_hhk\",value:function(t,e){var r=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,i){var a=this.getPixelColor(t,i),o=n.a.intToRGBA(a),s=o.r,u=o.g,f=o.b;Math.abs(s-u)<e&&Math.abs(s-f)<e&&Math.abs(u-f)<e&&r++})),r/(t.bitmap.width*t.bitmap.height)}},{key:\"Pdk4P\",value:function(t,e){if(e>t.length)return null;for(var r,n=0,i=0;i<e;i++)n+=t[i];r=n;for(var a=e;a<t.length;a++)n=n+t[a]-t[a-e],r=Math.max(r,n);return r}},{key:\"Hf84H\",value:function(e){var r=t.Zg20Z(e,32),n=r.indexOf(Math.max.apply(Math,Er(r)));if(r[30]+r[31]+r[30]>.93||r[0]+r[1]+r[2]>.93||n>2&&n<30&&r[n]>.93)return 0;if(r[29]+r[30]+r[31]+r[0]+r[1]+r[2]>.93||r[30]+r[31]+r[29]>.9||r[0]+r[1]+r[2]>.9)return 1;var i=t.Pdk4P(r,2),a=t.Pdk4P(r,3);return i>.85||a>.9?2:t._hhk(e,10)>.8?3:99}},{key:\"vcelv\",value:(b=Sr(kr().mark((function t(e){var r,i,a,o,s,u;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),a=n.a.intToRGBA(i),o=a.r,s=a.g,u=a.b,f=Math.floor((o+s+u)/3);f>80&&f<200&&(r[f]=(r[f]||0)+1)})),Object.entries(r).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(r).reduce((function(t,e){return r[t]>r[e]?t:e})),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var r=this.getPixelColor(t,e),a=n.a.intToRGBA(r),o=a.r,s=a.g,u=a.b,f=Math.floor((o+s+u)/3);Math.abs(i-f)>15&&this.setPixelColor(n.a.rgbaToInt(255,255,255,255),t,e)})),r={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),a=n.a.intToRGBA(i),o=a.r,s=a.g,u=a.b;if(255!==o&&255!==s&&255!==u){var f=o+\"_\"+s+\"_\"+u;r[f]=(r[f]||0)+1}})),Object.entries(r).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(r).reduce((function(t,e){return r[t]>r[e]?t:e})),a=i.split(\"_\"),o=parseInt(a[0]),s=parseInt(a[1]),u=parseInt(a[2]),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var r=this.getPixelColor(t,e),i=n.a.intToRGBA(r),a=i.r,f=i.g,c=i.b;Math.abs(o-a)>40||Math.abs(s-f)>40||Math.abs(u-c)>40||Math.abs(o-a)+Math.abs(s-f)+Math.abs(u-c)>80?this.setPixelColor(n.a.rgbaToInt(255,255,255,255),t,e):this.setPixelColor(n.a.rgbaToInt(0,0,0,255),t,e)})),t.abrupt(\"return\",e);case 17:case\"end\":return t.stop()}}),t)}))),function(t){return b.apply(this,arguments)})},{key:\"PblhR\",value:function(t,e,r){var i=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,a){var o=this.getPixelColor(t,a),s=n.a.intToRGBA(o),u=s.r,f=s.g,c=s.b;Math.abs(u-e[0])<=r&&Math.abs(f-e[1])<=r&&Math.abs(c-e[2])<=r&&i++})),i/(t.bitmap.width*t.bitmap.height)}},{key:\"Fg6gH\",value:function(t,e,r,i,a){for(var o=[{x:e,y:r}],s={x1:e,y1:r,x2:e,y2:r};o.length>0;){var u=o.pop(),f=u.x,c=u.y;if(f>=0&&f<t.bitmap.width&&c>=0&&c<t.bitmap.height){var h=t.getPixelIndex(f,c);if(t.bitmap.data[h]===i){var l=n.a.rgbaToInt(a,a,a,255);t.setPixelColor(l,f,c),f<s.x1&&(s.x1=f),f>s.x2&&(s.x2=f),c<s.y1&&(s.y1=c),c>s.y2&&(s.y2=c),o.push({x:f+1,y:c}),o.push({x:f-1,y:c}),o.push({x:f,y:c+1}),o.push({x:f,y:c-1})}}}return s}},{key:\"Ih91\",value:function(e,r){var n=[];return e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(i,a,o){if(e.bitmap.data[o]===r){var s=t.Fg6gH(e,i,a,r,250);n.push(s)}})),n}},{key:\"Mgk4\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var r=t[0][e],n=1;n<t.length;n++)t[n][e]>r&&(r=t[n][e]);return r}}},{key:\"rgdcr\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var r=t[0][e],n=1;n<t.length;n++)t[n][e]<r&&(r=t[n][e]);return r}}},{key:\"Agh9\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Number.MIN_SAFE_INTEGER,i=-1,a=-1,o=0;o<t.length;o++)if(e<0)for(var s=0;s<t[o].length;s++)o!==s&&t[o][s]>n&&(n=t[o][s],i=o,a=s);else t[o][e]>n&&(null==r||!r.includes(o))&&o!==e&&(n=t[o][e],i=o,a=e);return[i,a,t[i][a]]}},{key:\"ygd0\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Number.MAX_SAFE_INTEGER,i=-1,a=-1,o=0;o<t.length;o++)if(e<0)for(var s=0;s<t[o].length;s++)o!==s&&t[o][s]<n&&(n=t[o][s],i=o,a=s);else t[o][e]<n&&(null==r||!r.includes(o))&&o!==e&&(n=t[o][e],i=o,a=e);return[i,a,t[i][a]]}},{key:\"Gce5\",value:function(t,e,r){return t.filter((function(t,r){return!e.includes(r)})).map((function(t){return t.filter((function(t,e){return!r.includes(e)}))}))}},{key:\"Ri54T\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,r){chrome.runtime.sendMessage({type:\"C1k3\",label:t},(function(t){t?e(t):r()}))}))}},{key:\"sdnj\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,r){chrome.runtime.sendMessage({type:\"R1pcR\",label:t},(function(t){t?e(t):r()}))}))}},{key:\"LcifN\",value:(y=Sr(kr().mark((function t(e,r){var i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i=e.bitmap.width,a=e.bitmap.height,o=r[0],s=r[1],u=0;u<a;u++)for(f=0;f<i;f++){for(c=[0,0,0],h=0,l=-o;l<=o;l++)for(p=-o;p<=o;p++)m=u+l,(d=f+p)>=0&&d<i&&m>=0&&m<a&&(y=e.getPixelColor(d,m),b=n.a.intToRGBA(y),c[0]+=b.r,c[1]+=b.g,c[2]+=b.b,h++);g=[Math.floor(c[0]/h),Math.floor(c[1]/h),Math.floor(c[2]/h)],v=e.getPixelColor(f,u),w=n.a.intToRGBA(v),Math.abs(w.r-g[0])+Math.abs(w.g-g[1])+Math.abs(w.b-g[2])<s&&e.setPixelColor(n.a.rgbaToInt.apply(n.a,g.concat([w.a])),f,u)}return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e){return y.apply(this,arguments)})},{key:\"Oe76\",value:(m=Sr(kr().mark((function t(e,r,i){var a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(a=e.bitmap,o=a.width,s=a.height,u=Array.from({length:s},(function(t,r){return Array.from({length:o},(function(t,i){return n.a.intToRGBA(e.getPixelColor(i,r))}))})),f=new Array(s),c=0;c<s;c++)for(f[c]=new Array(o),h=0;h<o;h++){for(l=0,p=0,d=0,m=0,y=-r;y<=r;y++)for(b=-r;b<=r;b++)v=c+y,(g=h+b)>=0&&g<o&&v>=0&&v<s&&(w=u[v][g],l+=w.r,p+=w.g,d+=w.b,m++);f[c][h]={r:Math.floor(l/m),g:Math.floor(p/m),b:Math.floor(d/m),a:u[c][h].a}}for(_=0;_<s;_++)for(x=0;x<o;x++)E=u[_][x],D=f[_][x],Math.abs(E.r-D.r)+Math.abs(E.g-D.g)+Math.abs(E.b-D.b)<i&&(k=n.a.rgbaToInt(D.r,D.g,D.b,D.a),e.setPixelColor(k,x,_));return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e,r){return m.apply(this,arguments)})},{key:\"ycma\",value:(d=Sr(kr().mark((function e(r,n){var i;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt(\"return\",r);case 2:e.t0=kr().keys(n);case 3:if((e.t1=e.t0()).done){e.next=30;break}if(i=e.t1.value,!n.hasOwnProperty(i)){e.next=28;break}e.t2=i,e.next=\"bw\"===e.t2?9:\"b\"===e.t2?13:\"c\"===e.t2?15:\"g\"===e.t2?17:\"p\"===e.t2?19:\"cbl\"===e.t2||\"ceb\"===e.t2||\"ced\"===e.t2||\"cee\"===e.t2||\"csh\"===e.t2?21:\"dns\"===e.t2?23:27;break;case 9:return e.next=11,t.ubnk(r);case 11:return r=e.sent,e.abrupt(\"break\",28);case 13:return r.blur(n[i]),e.abrupt(\"break\",28);case 15:return r.contrast(n[i]),e.abrupt(\"break\",28);case 17:return n[i]&&r.grayscale(),e.abrupt(\"break\",28);case 19:return r.pixelate(n[i]),e.abrupt(\"break\",28);case 21:return r.convolute([[n[i][0],n[i][1],n[i][2]],[n[i][3],n[i][4],n[i][5]],[n[i][6],n[i][7],n[i][8]]]),e.abrupt(\"break\",28);case 23:return e.next=25,t.Oe76(r,n[i][0],n[i][1]);case 25:return r=e.sent,e.abrupt(\"break\",28);case 27:return e.abrupt(\"break\",28);case 28:e.next=3;break;case 30:return e.abrupt(\"return\",r);case 31:case\"end\":return e.stop()}}),e)}))),function(t,e){return d.apply(this,arguments)})},{key:\"ubnk\",value:(p=Sr(kr().mark((function t(e){var r,n,i;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=0,n=0,e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e,i){var a=this.bitmap.data[i+0],o=this.bitmap.data[i+1],s=this.bitmap.data[i+2];r+=.299*a+.587*o+.114*s,n++})),i=r/n,e.greyscale().threshold({max:i}),t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t){return p.apply(this,arguments)})},{key:\"He09J\",value:(l=Sr(kr().mark((function t(e){var r,i,a,s=arguments;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:null,i=null,t.prev=2,\"string\"!=typeof e){t.next=20;break}if(!e.startsWith(\"data:image/\")){t.next=13;break}if(a=e.split(\",\")[1],r&&(i=r[a.subStr(0,256)]),i){t.next=11;break}return t.next=10,n.a.read(o.Buffer.from(a,\"base64\"));case 10:i=t.sent;case 11:t.next=18;break;case 13:if(r&&(i=r[e]),i){t.next=18;break}return t.next=17,n.a.read(e);case 17:i=t.sent;case 18:t.next=21;break;case 20:\"object\"===xr(e)&&(i=e);case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(2);case 26:return t.abrupt(\"return\",i);case 27:case\"end\":return t.stop()}}),t,null,[[2,23]])}))),function(t){return l.apply(this,arguments)})},{key:\"Df72H\",value:function(t,e,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=e.bitmap.data,a=[],o=[],s=[],u=0;u<i.length;u+=4)a.push(i[u]),o.push(i[u+1]),s.push(i[u+2]);var f=a.concat(o,s),c=new Float32Array(f.map((function(t){return t/255})));if(n)for(var h=[.485,.456,.406],l=[.229,.224,.225],p=0;p<c.length;p++)c[p]=(c[p]-h[p%3])/l[p%3];return new t.Tensor(\"float32\",c,r)}},{key:\"Khl9\",value:(h=Sr(kr().mark((function e(r,i,a){var o,s,u,f;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.He09J(a);case 2:return(o=e.sent).resize(224,224,n.a.RESIZE_BILINEAR),s=t.Df72H(r,o,[1,3,224,224],!0),(u={})[i.inputNames[0]]=s,e.next=9,i.run(u);case 9:return f=e.sent,e.abrupt(\"return\",f[i.outputNames[0]].data);case 11:case\"end\":return e.stop()}}),e)}))),function(t,e,r){return h.apply(this,arguments)})},{key:\"qcbg\",value:(c=Sr(kr().mark((function e(r,i,a,o,s){var u,f,c,h,l,p,d,m,y=arguments;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=y.length>5&&void 0!==y[5]?y[5]:null,e.next=3,t.He09J(a);case 3:return(f=e.sent).resize(s,s,n.a.RESIZE_BILINEAR),c=t.Df72H(i,f,[1,3,s,s],!0),(h={})[o.inputNames[0]]=c,e.next=10,o.run(h);case 10:if(l=e.sent,p=l[o.outputNames[0]],!u){e.next=21;break}return(h={})[u.inputNames[0]]=p,e.next=17,u.run(h);case 17:m=e.sent,d=m[u.outputNames[0]].data,e.next=22;break;case 21:d=p.data;case 22:return e.abrupt(\"return\",d);case 23:case\"end\":return e.stop()}}),e)}))),function(t,e,r,n,i){return c.apply(this,arguments)})},{key:\"vf8kv\",value:(f=Sr(kr().mark((function t(e){var r,n,i,a,o;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(r=JSON.parse(JSON.stringify(e))).CSLc9jd,n=new TextEncoder,i=n.encode(r),t.next=6,crypto.subtle.digest(\"SHA-256\",i);case 6:return a=t.sent,o=Array.from(new Uint8Array(a)),t.abrupt(\"return\",o.map((function(t){return t.toString(16).padStart(2,\"0\")})).join(\"\"));case 9:case\"end\":return t.stop()}}),t)}))),function(t){return f.apply(this,arguments)})},{key:\"NdikP\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"av\",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i={};return Er(new Set([].concat(Er(Object.keys(t)),Er(Object.keys(e))))).forEach((function(a){var o=t[a],s=e[a];void 0!==o&&void 0!==s?\"av\"===r?i[a]=(o+s)/2:\"mx\"===r?i[a]=Math.max(o+s):\"mn\"===r?i[a]=Math.min(o+s):\"ad\"===r?i[a]=o+s:\"ft\"===r?i[a]=o:\"lt\"===r?i[a]=s:\"ap\"===r?i[a]=o+n:\"number\"==typeof r&&(i[a]=o*(1-r)+s*r):i[a]=void 0!==o?o:s})),i}},{key:\"Kiai\",value:function(t,e){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length,a=new Array(i>4?i-4:0),o=4;o<i;o++)a[o-4]=arguments[o];var u=a.length>0?\": [\":\"\";if(a.forEach((function(t){u=Array.isArray(t)?u.concat(t.sort().join(\" \")+\", \"):\"object\"===xr(t)&&null!==t?u.concat(JSON.stringify(t)+\", \"):u.concat(t+\", \")})),u=a.length>0?u.slice(0,-2).concat(\"]\"):\"\",t.t0&&t.t0 instanceof s.a){1===r?(t.t0.push(performance.now()),t.t0.size(),n?(-1,t.t0.push(-1)):t.t0.push(performance.now())):0===r?!t.t0.isEmpty()&&(-1===t.t0.pop()?(t.t0.push(-1),t.t0.size()):(performance.now(),t.t0.push(performance.now()),t.t0.size())):-1===r&&!t.t0.isEmpty()&&(t.t0.pop(),t.t0.size(),performance.now(),t.t0.pop())}}},{key:\"Ii24\",value:function(t){for(var e=t.replace(\"data:application/octet-stream;base64,\",\"\"),r=window.atob(e),n=new Uint8Array(r.length),i=0;i<r.length;++i)n[i]=r.charCodeAt(i);return n}},{key:\"Gg95\",value:function(t){var e=new Float32Array(t).buffer,r=_r.deflate(new Uint8Array(e));return btoa(String.fromCharCode.apply(String,Er(r)))}},{key:\"ud01\",value:function(t,e){var r=(t.length-1)*e,n=Math.floor(r),i=Math.ceil(r),a=r-n;return i===n?t[n]:t[n]*(1-a)+t[i]*a}},{key:\"Xe5nX\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1/0,n=0,i=1;i<t.length-e;i++){var a=t[i-1],o=t[i];if(a>1e-8){var s=o/a;s>r&&(r=s,n=i)}}return t[n]}},{key:\"Ch1b\",value:function(t){var e=0;t=t||\"\";for(var r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return e}}],r&&Mr(e.prototype,r),u&&Mr(e,u),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k,A,S,M,F,C,B,O,I,T}()},function(t,e,r){\"use strict\";var n=r(25),i=r(19);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function o(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||h(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){var n;return n=function(t,e){if(\"object\"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==a(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,a,o,s=[],u=!0,f=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){f=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(f)throw i}}return s}}(t,e)||h(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function h(t,e){if(t){if(\"string\"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var p=r(43),d=r(61),m=r.n(d),y=r(0);function b(t){return b=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},b(t)}function g(t,e,r){var n;return n=function(t,e){if(\"object\"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=b(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==b(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v=\"image/jpeg\",w=r(46);function _(t){return _=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_(t)}function x(t,e,r){var n;return n=function(t,e){if(\"object\"!=_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==_(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var E=\"image/png\",D=r(62),k=r.n(D);function A(t){return A=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},A(t)}function S(t,e,r){var n;return n=function(t,e){if(\"object\"!=A(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=A(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==A(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var M=\"image/bmp\",F=\"image/x-ms-bmp\";var C=function(t){return e=k.a.decode(t),Object(y.b)({bitmap:e},0,0,e.width,e.height,(function(t,r,n){var i=this.bitmap.data[n+0],a=this.bitmap.data[n+1],o=this.bitmap.data[n+2],s=this.bitmap.data[n+3];this.bitmap.data[n+0]=s,this.bitmap.data[n+1]=o,this.bitmap.data[n+2]=a,this.bitmap.data[n+3]=e.is_with_alpha?i:255})).bitmap;var e},B=function(t){return k.a.encode(function(t){return Object(y.b)(t,0,0,t.bitmap.width,t.bitmap.height,(function(t,e,r){var n=this.bitmap.data[r+0],i=this.bitmap.data[r+1],a=this.bitmap.data[r+2],o=this.bitmap.data[r+3];this.bitmap.data[r+0]=o,this.bitmap.data[r+1]=a,this.bitmap.data[r+2]=i,this.bitmap.data[r+3]=n})).bitmap}(t)).data},O=r(105),I=r(106);function T(t){return T=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},T(t)}var P=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],L=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18],N=r(107),j=r(108);function R(t){return R=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},R(t)}function z(t){var e=[1,9,3,11,13,5,15,7,4,12,2,10,16,8,14,6];return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,r,n){var i=e[((3&r)<<2)+t%4];this.bitmap.data[n]=Math.min(this.bitmap.data[n]+i,255),this.bitmap.data[n+1]=Math.min(this.bitmap.data[n+1]+i,255),this.bitmap.data[n+2]=Math.min(this.bitmap.data[n+2]+i,255)})),Object(y.a)(t)&&t.call(this,null,this),this}var U=r(109);function G(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t.r[this.bitmap.data[n+0]]++,t.g[this.bitmap.data[n+1]]++,t.b[this.bitmap.data[n+2]]++})),t}var H=function(t,e,r){return 255*(t-e)/(r-e)},Z=function(t){return[t.findIndex((function(t){return t>0})),255-t.slice().reverse().findIndex((function(t){return t>0}))]},q=r(110),W=r(112),Y=r(114);function V(t){return function(t){if(Array.isArray(t))return X(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return X(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var J=[function(){return{blit:function(t,e,r,n,i,a,o,s){if(!(t instanceof this.constructor))return y.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof r)return y.d.call(this,\"x and y must be numbers\",s);if(\"function\"==typeof n)s=n,n=0,i=0,a=t.bitmap.width,o=t.bitmap.height;else{if(T(n)!==T(i)||T(i)!==T(a)||T(a)!==T(o))return y.d.call(this,\"srcx, srcy, srcw, srch must be numbers\",s);n=n||0,i=i||0,a=a||t.bitmap.width,o=o||t.bitmap.height}e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i),a=Math.round(a),o=Math.round(o);var u=this.bitmap.width,f=this.bitmap.height,c=this;return t.scanQuiet(n,i,a,o,(function(t,a,o){var s=e+t-n,h=r+a-i;if(s>=0&&h>=0&&u-s>0&&f-h>0){var l=c.getPixelIndex(s,h),p={r:this.bitmap.data[o],g:this.bitmap.data[o+1],b:this.bitmap.data[o+2],a:this.bitmap.data[o+3]},d={r:c.bitmap.data[l],g:c.bitmap.data[l+1],b:c.bitmap.data[l+2],a:c.bitmap.data[l+3]};c.bitmap.data[l]=(p.a*(p.r-d.r)-d.r+255>>8)+d.r,c.bitmap.data[l+1]=(p.a*(p.g-d.g)-d.g+255>>8)+d.g,c.bitmap.data[l+2]=(p.a*(p.b-d.b)-d.b+255>>8)+d.b,c.bitmap.data[l+3]=this.constructor.limit255(d.a+p.a)}})),Object(y.a)(s)&&s.call(this,null,this),this}}},function(){return{blur:function(t,e){if(\"number\"!=typeof t)return y.d.call(this,\"r must be a number\",e);if(t<1)return y.d.call(this,\"r must be greater than 0\",e);for(var r,n,i,a,o,s,u,f,c,h,l,p,d,m,b=this.bitmap.width-1,g=this.bitmap.height-1,v=t+1,w=P[t],_=L[t],x=[],E=[],D=[],k=[],A=[],S=[],M=2;M-- >0;){for(p=0,d=0,s=0;s<this.bitmap.height;s++){for(r=this.bitmap.data[d]*v,n=this.bitmap.data[d+1]*v,i=this.bitmap.data[d+2]*v,a=this.bitmap.data[d+3]*v,u=1;u<=t;u++)f=d+((u>b?b:u)<<2),r+=this.bitmap.data[f++],n+=this.bitmap.data[f++],i+=this.bitmap.data[f++],a+=this.bitmap.data[f];for(o=0;o<this.bitmap.width;o++)x[p]=r,E[p]=n,D[p]=i,k[p]=a,0===s&&(A[o]=((f=o+v)<b?f:b)<<2,S[o]=(f=o-t)>0?f<<2:0),c=d+A[o],h=d+S[o],r+=this.bitmap.data[c++]-this.bitmap.data[h++],n+=this.bitmap.data[c++]-this.bitmap.data[h++],i+=this.bitmap.data[c++]-this.bitmap.data[h++],a+=this.bitmap.data[c]-this.bitmap.data[h],p++;d+=this.bitmap.width<<2}for(o=0;o<this.bitmap.width;o++){for(r=x[l=o]*v,n=E[l]*v,i=D[l]*v,a=k[l]*v,u=1;u<=t;u++)r+=x[l+=u>g?0:this.bitmap.width],n+=E[l],i+=D[l],a+=k[l];for(p=o<<2,s=0;s<this.bitmap.height;s++)m=a*w>>>_,this.bitmap.data[p+3]=m,m>255&&(this.bitmap.data[p+3]=255),m>0?(m=255/m,this.bitmap.data[p]=(r*w>>>_)*m,this.bitmap.data[p+1]=(n*w>>>_)*m,this.bitmap.data[p+2]=(i*w>>>_)*m):(this.bitmap.data[p+2]=0,this.bitmap.data[p+1]=0,this.bitmap.data[p]=0),0===o&&(A[s]=((f=s+v)<g?f:g)*this.bitmap.width,S[s]=(f=s-t)>0?f*this.bitmap.width:0),c=o+A[s],h=o+S[s],r+=x[c]-x[h],n+=E[c]-E[h],i+=D[c]-D[h],a+=k[c]-k[h],p+=this.bitmap.width<<2}}return Object(y.a)(e)&&e.call(this,null,this),this}}},function(){return{circle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;\"function\"==typeof t&&(e=t,t={});var r=t.radius||(this.bitmap.width>this.bitmap.height?this.bitmap.height:this.bitmap.width)/2,n=\"number\"==typeof t.x?t.x:this.bitmap.width/2,i=\"number\"==typeof t.y?t.y:this.bitmap.height/2;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,a){var o=Math.sqrt(Math.pow(t-n,2)+Math.pow(e-i,2));r-o<=0?this.bitmap.data[a+3]=0:r-o<1&&(this.bitmap.data[a+3]=255*(r-o))})),Object(y.a)(e)&&e.call(this,null,this),this}}},N.a,function(){return{contain:function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",i);\"string\"==typeof r&&(\"function\"==typeof n&&void 0===i&&(i=n),n=r,r=null),\"function\"==typeof r&&(void 0===i&&(i=r),n=null,r=null),\"function\"==typeof n&&void 0===i&&(i=n,n=null);var a=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),o=r>>3;if((0===a||a&a-1)&&(0===o||o&o-1))return y.d.call(this,\"only use one flag per alignment direction\",i);var s=a>>1,u=o>>1,f=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,c=this.cloneQuiet().scale(f,n);return this.resize(t,e,n),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)})),this.blit(c,(this.bitmap.width-c.bitmap.width)/2*s,(this.bitmap.height-c.bitmap.height)/2*u),Object(y.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",i);r&&\"function\"==typeof r&&void 0===i?(i=r,r=null,n=null):\"function\"==typeof n&&void 0===i&&(i=n,n=null);var a=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),o=r>>3;if((0===a||a&a-1)&&(0===o||o&o-1))return y.d.call(this,\"only use one flag per alignment direction\",i);var s=a>>1,u=o>>1,f=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(f,n),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*u,t,e),Object(y.a)(i)&&i.call(this,null,this),this}}},j.a,function(){return{displace:function(t,e,r){if(\"object\"!==R(t)||t.constructor!==this.constructor)return y.d.call(this,\"The source must be a Jimp image\",r);if(\"number\"!=typeof e)return y.d.call(this,\"factor must be a number\",r);var n=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,i,a){var o=t.bitmap.data[a]/256*e;o=Math.round(o);var s=this.getPixelIndex(r+o,i);this.bitmap.data[s]=n.bitmap.data[a],this.bitmap.data[s+1]=n.bitmap.data[a+1],this.bitmap.data[s+2]=n.bitmap.data[a+2]})),Object(y.a)(r)&&r.call(this,null,this),this}}},function(){return{dither565:z,dither16:z}},function(){return{fisheye:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{r:2.5},r=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(r=e,e={r:2.5});var n=this.cloneQuiet(),i=n.bitmap,a=i.width,o=i.height;return n.scanQuiet(0,0,a,o,(function(r,i){var s=r/a,u=i/o,f=Math.sqrt(Math.pow(s-.5,2)+Math.pow(u-.5,2)),c=2*Math.pow(f,e.r),h=(s-.5)/f,l=(u-.5)/f,p=Math.round((c*h+.5)*a),d=Math.round((c*l+.5)*o),m=n.getPixelColor(p,d);t.setPixelColor(m,r,i)})),this.setPixelColor(n.getPixelColor(a/2,o/2),a/2,o/2),Object(y.a)(r)&&r.call(this,null,this),this}}},U.a,function(){return{gaussian:function(t,e){if(\"number\"!=typeof t)return y.d.call(this,\"r must be a number\",e);if(t<1)return y.d.call(this,\"r must be greater than 0\",e);for(var r=Math.ceil(2.57*t),n=2*r+1,i=t*t*2,a=i*Math.PI,o=[],s=0;s<n;s++){o[s]=[];for(var u=0;u<n;u++){var f=Math.pow(u-r,2)+Math.pow(s-r,2);o[s][u]=Math.exp(-f/i)/a}}for(var c=0;c<this.bitmap.height;c++)for(var h=0;h<this.bitmap.width;h++)for(var l=0,p=0,d=0,m=0,b=0,g=0;g<n;g++){for(var v=0;v<n;v++){var w=Math.min(this.bitmap.width-1,Math.max(0,v+h-r)),_=Math.min(this.bitmap.height-1,Math.max(0,g+c-r)),x=o[g][v],E=_*this.bitmap.width+w<<2;l+=this.bitmap.data[E]*x,p+=this.bitmap.data[E+1]*x,d+=this.bitmap.data[E+2]*x,m+=this.bitmap.data[E+3]*x,b+=x}var D=c*this.bitmap.width+h<<2;this.bitmap.data[D]=Math.round(l/b),this.bitmap.data[D+1]=Math.round(p/b),this.bitmap.data[D+2]=Math.round(d/b),this.bitmap.data[D+3]=Math.round(m/b)}return Object(y.a)(e)&&e.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=255-this.bitmap.data[r],this.bitmap.data[r+1]=255-this.bitmap.data[r+1],this.bitmap.data[r+2]=255-this.bitmap.data[r+2]})),Object(y.a)(t)&&t.call(this,null,this),this}}},function(){return{mask:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return y.d.call(this,\"The source must be a Jimp image\",n);if(\"number\"!=typeof e||\"number\"!=typeof r)return y.d.call(this,\"x and y must be numbers\",n);e=Math.round(e),r=Math.round(r);var i=this.bitmap.width,a=this.bitmap.height,o=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,s){var u=e+t,f=r+n;if(u>=0&&f>=0&&u<i&&f<a){var c=o.getPixelIndex(u,f),h=this.bitmap.data,l=(h[s+0]+h[s+1]+h[s+2])/3;o.bitmap.data[c+3]*=l/255}})),Object(y.a)(n)&&n.call(this,null,this),this}}},function(){return{normalize:function(t){var e=G.call(this),r={r:Z(e.r),g:Z(e.g),b:Z(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){var i=this.bitmap.data[n+0],a=this.bitmap.data[n+1],o=this.bitmap.data[n+2];this.bitmap.data[n+0]=H(i,r.r[0],r.r[1]),this.bitmap.data[n+1]=H(a,r.g[0],r.g[1]),this.bitmap.data[n+2]=H(o,r.b[0],r.b[1])})),Object(y.a)(t)&&t.call(this,null,this),this}}},q.a,W.a,Y.a,function(){return{scale:function(t,e,r){if(\"number\"!=typeof t)return y.d.call(this,\"f must be a number\",r);if(t<0)return y.d.call(this,\"f must be a positive number\",r);\"function\"==typeof e&&void 0===r&&(r=e,e=null);var n=this.bitmap.width*t,i=this.bitmap.height*t;return this.resize(n,i,e),Object(y.a)(r)&&r.call(this,null,this),this},scaleToFit:function(t,e,r,n){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",n);\"function\"==typeof r&&void 0===n&&(n=r,r=null);var i=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,r),Object(y.a)(n)&&n.call(this,null,this),this}}},function(){return{shadow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(r=e,e={});var n=e,i=n.opacity,a=void 0===i?.7:i,o=n.size,s=void 0===o?1.1:o,u=n.x,f=void 0===u?-25:u,c=n.y,h=void 0===c?25:c,l=n.blur,p=void 0===l?5:l,d=this.clone(),m=this.clone();return m.scan(0,0,m.bitmap.width,m.bitmap.height,(function(e,r,n){m.bitmap.data[n]=0,m.bitmap.data[n+1]=0,m.bitmap.data[n+2]=0,m.bitmap.data[n+3]=m.constructor.limit255(m.bitmap.data[n+3]*a),t.bitmap.data[n]=0,t.bitmap.data[n+1]=0,t.bitmap.data[n+2]=0,t.bitmap.data[n+3]=0})),m.resize(m.bitmap.width*s,m.bitmap.height*s).blur(p),this.composite(m,f,h),this.composite(d,0,0),Object(y.a)(r)&&r.call(this,null,this),this}}},function(){return{threshold:function(t,e){var r=this,n=t.max,i=t.replace,a=void 0===i?255:i,o=t.autoGreyscale,s=void 0===o||o;return\"number\"!=typeof n?y.d.call(this,\"max must be a number\",e):\"number\"!=typeof a?y.d.call(this,\"replace must be a number\",e):\"boolean\"!=typeof s?y.d.call(this,\"autoGreyscale must be a boolean\",e):(n=this.constructor.limit255(n),a=this.constructor.limit255(a),s&&this.greyscale(),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,i){var o=r.bitmap.data[i]<n?r.bitmap.data[i]:a;r.bitmap.data[i]=o,r.bitmap.data[i+1]=o,r.bitmap.data[i+2]=o})),Object(y.a)(e)&&e.call(this,null,this),this)}}}];e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.c,r={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function a(t){Object.entries(t).forEach((function(t){var e=c(t,2),n=e[0],i=e[1];r[n]=u(u({},r[n]),i)}))}return t.types&&(t.types.forEach((function(t){var e=t();Array.isArray(e.mime)?i.a.apply(void 0,o(e.mime)):Object.entries(e.mime).forEach((function(t){return i.a.apply(void 0,o(t))})),delete e.mime,a(e)})),e.decoders=u(u({},e.decoders),r.decoders),e.encoders=u(u({},e.encoders),r.encoders),e.hasAlpha=u(u({},e.hasAlpha),r.hasAlpha)),t.plugins&&t.plugins.forEach((function(t){var e=t(n.d)||{};e.class||e.constants?a(e):a({class:e})})),Object(n.b)(r.class,e),Object(n.a)(r.constants,e),n.c}({types:[function(){return Object(p.mergeDeep)({mime:g({},v,[\"jpeg\",\"jpg\",\"jpe\"]),constants:{MIME_JPEG:v},decoders:g({},v,m.a.decode),encoders:g({},v,(function(t){return m.a.encode(t.bitmap,t._quality).data})),class:{_quality:100,quality:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"n must be a number\",e):t<0||t>100?y.d.call(this,\"n must be a number 0 - 100\",e):(this._quality=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)}}},{mime:x({},E,[\"png\"]),constants:{MIME_PNG:E,PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:x({},E,!0),decoders:x({},E,w.PNG.sync.read),encoders:x({},E,(function(t){var e=new w.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,w.PNG.sync.write(e,{deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:\"number\"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})})),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"l must be a number\",e):t<0||t>9?y.d.call(this,\"l must be a number 0 - 9\",e):(this._deflateLevel=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"s must be a number\",e):t<0||t>3?y.d.call(this,\"s must be a number 0 - 3\",e):(this._deflateStrategy=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"n must be a number\",e):t<-1||t>4?y.d.call(this,\"n must be -1 (auto) or a number 0 - 4\",e):(this._filterType=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"s must be a number\",e):0!==t&&2!==t&&4!==t&&6!==t?y.d.call(this,\"s must be a number 0, 2, 4, 6.\",e):(this._colorType=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)}}},{mime:S({},M,[\"bmp\"]),constants:{MIME_BMP:M,MIME_X_MS_BMP:F},decoders:S(S({},M,C),F,C),encoders:S(S({},M,B),F,B)},Object(O.a)(),Object(I.a)())}],plugins:[function(t){var e=J.map((function(e){var r=e(t)||{};return r.class||r.constants||(r={class:r}),r}));return p.mergeDeep.apply(void 0,V(e))}]})},function(t,e,r){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(r){\"use strict\";var a=Math.cosh||function(t){return Math.abs(t)<1e-9?1-t:.5*(Math.exp(t)+Math.exp(-t))},o=Math.sinh||function(t){return Math.abs(t)<1e-9?t:.5*(Math.exp(t)-Math.exp(-t))},s=function(){throw SyntaxError(\"Invalid Param\")};function u(t,e){var r=Math.abs(t),n=Math.abs(e);return 0===t?Math.log(n):0===e?Math.log(r):r<3e3&&n<3e3?.5*Math.log(t*t+e*e):(t/=2,e/=2,.5*Math.log(t*t+e*e)+Math.LN2)}function f(t,e){if(!(this instanceof f))return new f(t,e);var r=function(t,e){var r={re:0,im:0};if(null==t)r.re=r.im=0;else if(void 0!==e)r.re=t,r.im=e;else switch(i(t)){case\"object\":if(\"im\"in t&&\"re\"in t)r.re=t.re,r.im=t.im;else if(\"abs\"in t&&\"arg\"in t){if(!Number.isFinite(t.abs)&&Number.isFinite(t.arg))return f.INFINITY;r.re=t.abs*Math.cos(t.arg),r.im=t.abs*Math.sin(t.arg)}else if(\"r\"in t&&\"phi\"in t){if(!Number.isFinite(t.r)&&Number.isFinite(t.phi))return f.INFINITY;r.re=t.r*Math.cos(t.phi),r.im=t.r*Math.sin(t.phi)}else 2===t.length?(r.re=t[0],r.im=t[1]):s();break;case\"string\":r.im=r.re=0;var n=t.match(/\\d+\\.?\\d*e[+-]?\\d+|\\d+\\.?\\d*|\\.\\d+|./g),a=1,o=0;null===n&&s();for(var u=0;u<n.length;u++){var c=n[u];\" \"===c||\"\\t\"===c||\"\\n\"===c||(\"+\"===c?a++:\"-\"===c?o++:\"i\"===c||\"I\"===c?(a+o===0&&s(),\" \"===n[u+1]||isNaN(n[u+1])?r.im+=parseFloat((o%2?\"-\":\"\")+\"1\"):(r.im+=parseFloat((o%2?\"-\":\"\")+n[u+1]),u++),a=o=0):((a+o===0||isNaN(c))&&s(),\"i\"===n[u+1]||\"I\"===n[u+1]?(r.im+=parseFloat((o%2?\"-\":\"\")+c),u++):r.re+=parseFloat((o%2?\"-\":\"\")+c),a=o=0))}a+o>0&&s();break;case\"number\":r.im=0,r.re=t;break;default:s()}return isNaN(r.re)||isNaN(r.im),r}(t,e);this.re=r.re,this.im=r.im}f.prototype={re:0,im:0,sign:function(){var t=this.abs();return new f(this.re/t,this.im/t)},add:function(t,e){var r=new f(t,e);return this.isInfinite()&&r.isInfinite()?f.NAN:this.isInfinite()||r.isInfinite()?f.INFINITY:new f(this.re+r.re,this.im+r.im)},sub:function(t,e){var r=new f(t,e);return this.isInfinite()&&r.isInfinite()?f.NAN:this.isInfinite()||r.isInfinite()?f.INFINITY:new f(this.re-r.re,this.im-r.im)},mul:function(t,e){var r=new f(t,e);return this.isInfinite()&&r.isZero()||this.isZero()&&r.isInfinite()?f.NAN:this.isInfinite()||r.isInfinite()?f.INFINITY:0===r.im&&0===this.im?new f(this.re*r.re,0):new f(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(t,e){var r=new f(t,e);if(this.isZero()&&r.isZero()||this.isInfinite()&&r.isInfinite())return f.NAN;if(this.isInfinite()||r.isZero())return f.INFINITY;if(this.isZero()||r.isInfinite())return f.ZERO;t=this.re,e=this.im;var n,i,a=r.re,o=r.im;return 0===o?new f(t/a,e/a):Math.abs(a)<Math.abs(o)?new f((t*(i=a/o)+e)/(n=a*i+o),(e*i-t)/n):new f((t+e*(i=o/a))/(n=o*i+a),(e-t*i)/n)},pow:function(t,e){var r=new f(t,e);if(t=this.re,e=this.im,r.isZero())return f.ONE;if(0===r.im){if(0===e&&t>0)return new f(Math.pow(t,r.re),0);if(0===t)switch((r.re%4+4)%4){case 0:return new f(Math.pow(e,r.re),0);case 1:return new f(0,Math.pow(e,r.re));case 2:return new f(-Math.pow(e,r.re),0);case 3:return new f(0,-Math.pow(e,r.re))}}if(0===t&&0===e&&r.re>0&&r.im>=0)return f.ZERO;var n=Math.atan2(e,t),i=u(t,e);return t=Math.exp(r.re*i-r.im*n),e=r.im*i+r.re*n,new f(t*Math.cos(e),t*Math.sin(e))},sqrt:function(){var t,e,r=this.re,n=this.im,i=this.abs();if(r>=0){if(0===n)return new f(Math.sqrt(r),0);t=.5*Math.sqrt(2*(i+r))}else t=Math.abs(n)/Math.sqrt(2*(i-r));return e=r<=0?.5*Math.sqrt(2*(i-r)):Math.abs(n)/Math.sqrt(2*(i+r)),new f(t,n<0?-e:e)},exp:function(){var t=Math.exp(this.re);return this.im,new f(t*Math.cos(this.im),t*Math.sin(this.im))},expm1:function(){var t=this.re,e=this.im;return new f(Math.expm1(t)*Math.cos(e)+function(t){var e=Math.PI/4;if(-e>t||t>e)return Math.cos(t)-1;var r=t*t;return r*(r*(r*(r*(r*(r*(r*(r/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5)}(e),Math.exp(t)*Math.sin(e))},log:function(){var t=this.re,e=this.im;return new f(u(t,e),Math.atan2(e,t))},abs:function(){return t=this.re,e=this.im,r=Math.abs(t),n=Math.abs(e),r<3e3&&n<3e3?Math.sqrt(r*r+n*n):(r<n?(r=n,n=t/e):n=e/t,r*Math.sqrt(1+n*n));var t,e,r,n},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var t=this.re,e=this.im;return new f(Math.sin(t)*a(e),Math.cos(t)*o(e))},cos:function(){var t=this.re,e=this.im;return new f(Math.cos(t)*a(e),-Math.sin(t)*o(e))},tan:function(){var t=2*this.re,e=2*this.im,r=Math.cos(t)+a(e);return new f(Math.sin(t)/r,o(e)/r)},cot:function(){var t=2*this.re,e=2*this.im,r=Math.cos(t)-a(e);return new f(-Math.sin(t)/r,o(e)/r)},sec:function(){var t=this.re,e=this.im,r=.5*a(2*e)+.5*Math.cos(2*t);return new f(Math.cos(t)*a(e)/r,Math.sin(t)*o(e)/r)},csc:function(){var t=this.re,e=this.im,r=.5*a(2*e)-.5*Math.cos(2*t);return new f(Math.sin(t)*a(e)/r,-Math.cos(t)*o(e)/r)},asin:function(){var t=this.re,e=this.im,r=new f(e*e-t*t+1,-2*t*e).sqrt(),n=new f(r.re-e,r.im+t).log();return new f(n.im,-n.re)},acos:function(){var t=this.re,e=this.im,r=new f(e*e-t*t+1,-2*t*e).sqrt(),n=new f(r.re-e,r.im+t).log();return new f(Math.PI/2-n.im,n.re)},atan:function(){var t=this.re,e=this.im;if(0===t){if(1===e)return new f(0,1/0);if(-1===e)return new f(0,-1/0)}var r=t*t+(1-e)*(1-e),n=new f((1-e*e-t*t)/r,-2*t/r).log();return new f(-.5*n.im,.5*n.re)},acot:function(){var t=this.re,e=this.im;if(0===e)return new f(Math.atan2(1,t),0);var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).atan():new f(0!==t?t/0:0,0!==e?-e/0:0).atan()},asec:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new f(0,1/0);var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).acos():new f(0!==t?t/0:0,0!==e?-e/0:0).acos()},acsc:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new f(Math.PI/2,1/0);var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).asin():new f(0!==t?t/0:0,0!==e?-e/0:0).asin()},sinh:function(){var t=this.re,e=this.im;return new f(o(t)*Math.cos(e),a(t)*Math.sin(e))},cosh:function(){var t=this.re,e=this.im;return new f(a(t)*Math.cos(e),o(t)*Math.sin(e))},tanh:function(){var t=2*this.re,e=2*this.im,r=a(t)+Math.cos(e);return new f(o(t)/r,Math.sin(e)/r)},coth:function(){var t=2*this.re,e=2*this.im,r=a(t)-Math.cos(e);return new f(o(t)/r,-Math.sin(e)/r)},csch:function(){var t=this.re,e=this.im,r=Math.cos(2*e)-a(2*t);return new f(-2*o(t)*Math.cos(e)/r,2*a(t)*Math.sin(e)/r)},sech:function(){var t=this.re,e=this.im,r=Math.cos(2*e)+a(2*t);return new f(2*a(t)*Math.cos(e)/r,-2*o(t)*Math.sin(e)/r)},asinh:function(){var t=this.im;this.im=-this.re,this.re=t;var e=this.asin();return this.re=-this.im,this.im=t,t=e.re,e.re=-e.im,e.im=t,e},acosh:function(){var t=this.acos();if(t.im<=0){var e=t.re;t.re=-t.im,t.im=e}else{e=t.im;t.im=-t.re,t.re=e}return t},atanh:function(){var t=this.re,e=this.im,r=t>1&&0===e,n=1-t,i=1+t,a=n*n+e*e,o=0!==a?new f((i*n-e*e)/a,(e*n+i*e)/a):new f(-1!==t?t/0:0,0!==e?e/0:0),s=o.re;return o.re=u(o.re,o.im)/2,o.im=Math.atan2(o.im,s)/2,r&&(o.im=-o.im),o},acoth:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new f(0,Math.PI/2);var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).atanh():new f(0!==t?t/0:0,0!==e?-e/0:0).atanh()},acsch:function(){var t=this.re,e=this.im;if(0===e)return new f(0!==t?Math.log(t+Math.sqrt(t*t+1)):1/0,0);var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).asinh():new f(0!==t?t/0:0,0!==e?-e/0:0).asinh()},asech:function(){var t=this.re,e=this.im;if(this.isZero())return f.INFINITY;var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).acosh():new f(0!==t?t/0:0,0!==e?-e/0:0).acosh()},inverse:function(){if(this.isZero())return f.INFINITY;if(this.isInfinite())return f.ZERO;var t=this.re,e=this.im,r=t*t+e*e;return new f(t/r,-e/r)},conjugate:function(){return new f(this.re,-this.im)},neg:function(){return new f(-this.re,-this.im)},ceil:function(t){return t=Math.pow(10,t||0),new f(Math.ceil(this.re*t)/t,Math.ceil(this.im*t)/t)},floor:function(t){return t=Math.pow(10,t||0),new f(Math.floor(this.re*t)/t,Math.floor(this.im*t)/t)},round:function(t){return t=Math.pow(10,t||0),new f(Math.round(this.re*t)/t,Math.round(this.im*t)/t)},equals:function(t,e){var r=new f(t,e);return Math.abs(r.re-this.re)<=f.EPSILON&&Math.abs(r.im-this.im)<=f.EPSILON},clone:function(){return new f(this.re,this.im)},toString:function(){var t=this.re,e=this.im,r=\"\";return this.isNaN()?\"NaN\":this.isInfinite()?\"Infinity\":(Math.abs(t)<f.EPSILON&&(t=0),Math.abs(e)<f.EPSILON&&(e=0),0===e?r+t:(0!==t?(r+=t,r+=\" \",e<0?(e=-e,r+=\"-\"):r+=\"+\",r+=\" \"):e<0&&(e=-e,r+=\"-\"),1!==e&&(r+=e),r+\"i\"))},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isNaN(this.re)||isNaN(this.im)})),isZero:function(){return 0===this.im&&0===this.re},isFinite:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isFinite(this.re)&&isFinite(this.im)})),isInfinite:function(){return!(this.isNaN()||this.isFinite())}},f.ZERO=new f(0,0),f.ONE=new f(1,0),f.I=new f(0,1),f.PI=new f(Math.PI,0),f.E=new f(Math.E,0),f.INFINITY=new f(1/0,1/0),f.NAN=new f(NaN,NaN),f.EPSILON=1e-15,void 0===(n=function(){return f}.apply(e,[]))||(t.exports=n)}()},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];\".\"===i?t.splice(n,1):\"..\"===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift(\"..\");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e=\"\",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if(\"string\"!=typeof o)throw new TypeError(\"Arguments to path.resolve must be strings\");o&&(e=o+\"/\"+e,i=\"/\"===o.charAt(0))}return(i?\"/\":\"\")+(e=r(n(e.split(\"/\"),(function(t){return!!t})),!i).join(\"/\"))||\".\"},e.normalize=function(t){var a=e.isAbsolute(t),o=\"/\"===i(t,-1);return(t=r(n(t.split(\"/\"),(function(t){return!!t})),!a).join(\"/\"))||a||(t=\".\"),t&&o&&(t+=\"/\"),(a?\"/\":\"\")+t},e.isAbsolute=function(t){return\"/\"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"Arguments to path.join must be strings\");return t})).join(\"/\"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&\"\"===t[e];e++);for(var r=t.length-1;r>=0&&\"\"===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split(\"/\")),a=n(r.split(\"/\")),o=Math.min(i.length,a.length),s=o,u=0;u<o;u++)if(i[u]!==a[u]){s=u;break}var f=[];for(u=s;u<i.length;u++)f.push(\"..\");return(f=f.concat(a.slice(s))).join(\"/\")},e.sep=\"/\",e.delimiter=\":\",e.dirname=function(t){if(\"string\"!=typeof t&&(t+=\"\"),0===t.length)return\".\";for(var e=t.charCodeAt(0),r=47===e,n=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!i){n=a;break}}else i=!1;return-1===n?r?\"/\":\".\":r&&1===n?\"/\":t.slice(0,n)},e.basename=function(t,e){var r=function(t){\"string\"!=typeof t&&(t+=\"\");var e,r=0,n=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?\"\":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){\"string\"!=typeof t&&(t+=\"\");for(var e=-1,r=0,n=-1,i=!0,a=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===n&&(i=!1,n=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!i){r=o+1;break}}return-1===e||-1===n||0===a||1===a&&e===n-1&&e===r+1?\"\":t.slice(e,n)};var i=\"b\"===\"ab\".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(7))},function(t,e){var r,n,i=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function o(){throw new Error(\"clearTimeout has not been defined\")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r=\"function\"==typeof setTimeout?setTimeout:a}catch(t){r=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var u,f=[],c=!1,h=-1;function l(){c&&u&&(c=!1,u.length?f=u.concat(f):h=-1,f.length&&p())}function p(){if(!c){var t=s(l);c=!0;for(var e=f.length;e;){for(u=f,f=[];++h<e;)u&&u[h].run();h=-1,e=f.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];f.push(new d(t,e)),1!==f.length||c||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title=\"browser\",i.browser=!0,i.env={},i.argv=[],i.version=\"\",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error(\"process.binding is not supported\")},i.cwd=function(){return\"/\"},i.chdir=function(t){throw new Error(\"process.chdir is not supported\")},i.umask=function(){return 0}},function(t,e){function r(){return t.exports=r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,r.apply(this,arguments)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new Error(\"define cannot be used indirect\")}},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(t){\"object\"===(\"undefined\"==typeof window?\"undefined\":r(window))&&(n=window)}t.exports=n},function(t,e){},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}!function(r){\"use strict\";var i={s:1,n:0,d:1};function a(t,e){if(isNaN(t=parseInt(t,10)))throw l();return t*e}function o(t,e){if(0===e)throw h();var r=Object.create(c.prototype);r.s=t<0?-1:1;var n=f(t=t<0?-t:t,e);return r.n=t/n,r.d=e/n,r}function s(t){for(var e={},r=t,n=2,i=4;i<=r;){for(;r%n==0;)r/=n,e[n]=(e[n]||0)+1;i+=1+2*n++}return r!==t?r>1&&(e[r]=(e[r]||0)+1):e[t]=(e[t]||0)+1,e}var u=function(t,e){var r,o=0,s=1,u=1,f=0,c=0,d=0,m=1,y=1,b=0,g=1,v=1,w=1,_=1e7;if(null==t);else if(void 0!==e){if(u=(o=t)*(s=e),o%1!=0||s%1!=0)throw p()}else switch(n(t)){case\"object\":if(\"d\"in t&&\"n\"in t)o=t.n,s=t.d,\"s\"in t&&(o*=t.s);else{if(!(0 in t))throw l();o=t[0],1 in t&&(s=t[1])}u=o*s;break;case\"number\":if(t<0&&(u=t,t=-t),t%1==0)o=t;else if(t>0){for(t>=1&&(t/=y=Math.pow(10,Math.floor(1+Math.log(t)/Math.LN10)));g<=_&&w<=_;){if(t===(r=(b+v)/(g+w))){g+w<=_?(o=b+v,s=g+w):w>g?(o=v,s=w):(o=b,s=g);break}t>r?(b+=v,g+=w):(v+=b,w+=g),g>_?(o=v,s=w):(o=b,s=g)}o*=y}else(isNaN(t)||isNaN(e))&&(s=o=NaN);break;case\"string\":if(null===(g=t.match(/\\d+|./g)))throw l();if(\"-\"===g[b]?(u=-1,b++):\"+\"===g[b]&&b++,g.length===b+1?c=a(g[b++],u):\".\"===g[b+1]||\".\"===g[b]?(\".\"!==g[b]&&(f=a(g[b++],u)),(++b+1===g.length||\"(\"===g[b+1]&&\")\"===g[b+3]||\"'\"===g[b+1]&&\"'\"===g[b+3])&&(c=a(g[b],u),m=Math.pow(10,g[b].length),b++),(\"(\"===g[b]&&\")\"===g[b+2]||\"'\"===g[b]&&\"'\"===g[b+2])&&(d=a(g[b+1],u),y=Math.pow(10,g[b+1].length)-1,b+=3)):\"/\"===g[b+1]||\":\"===g[b+1]?(c=a(g[b],u),m=a(g[b+2],1),b+=3):\"/\"===g[b+3]&&\" \"===g[b+1]&&(f=a(g[b],u),c=a(g[b+2],u),m=a(g[b+4],1),b+=5),g.length<=b){u=o=d+(s=m*y)*f+y*c;break}default:throw l()}if(0===s)throw h();i.s=u<0?-1:1,i.n=Math.abs(o),i.d=Math.abs(s)};function f(t,e){if(!t)return e;if(!e)return t;for(;;){if(!(t%=e))return e;if(!(e%=t))return t}}function c(t,e){if(u(t,e),!(this instanceof c))return o(i.s*i.n,i.d);t=f(i.d,i.n),this.s=i.s,this.n=i.n/t,this.d=i.d/t}var h=function(){return new Error(\"Division by Zero\")},l=function(){return new Error(\"Invalid argument\")},p=function(){return new Error(\"Parameters must be integer\")};c.prototype={s:1,n:0,d:1,abs:function(){return o(this.n,this.d)},neg:function(){return o(-this.s*this.n,this.d)},add:function(t,e){return u(t,e),o(this.s*this.n*i.d+i.s*this.d*i.n,this.d*i.d)},sub:function(t,e){return u(t,e),o(this.s*this.n*i.d-i.s*this.d*i.n,this.d*i.d)},mul:function(t,e){return u(t,e),o(this.s*i.s*this.n*i.n,this.d*i.d)},div:function(t,e){return u(t,e),o(this.s*i.s*this.n*i.d,this.d*i.n)},clone:function(){return o(this.s*this.n,this.d)},mod:function(t,e){if(isNaN(this.n)||isNaN(this.d))return new c(NaN);if(void 0===t)return o(this.s*this.n%this.d,1);if(u(t,e),0===i.n&&0===this.d)throw h();return o(this.s*(i.d*this.n)%(i.n*this.d),i.d*this.d)},gcd:function(t,e){return u(t,e),o(f(i.n,this.n)*f(i.d,this.d),i.d*this.d)},lcm:function(t,e){return u(t,e),0===i.n&&0===this.n?o(0,1):o(i.n*this.n,f(i.n,this.n)*f(i.d,this.d))},ceil:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):o(Math.ceil(t*this.s*this.n/this.d),t)},floor:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):o(Math.floor(t*this.s*this.n/this.d),t)},round:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):o(Math.round(t*this.s*this.n/this.d),t)},inverse:function(){return o(this.s*this.d,this.n)},pow:function(t,e){if(u(t,e),1===i.d)return i.s<0?o(Math.pow(this.s*this.d,i.n),Math.pow(this.n,i.n)):o(Math.pow(this.s*this.n,i.n),Math.pow(this.d,i.n));if(this.s<0)return null;var r=s(this.n),n=s(this.d),a=1,f=1;for(var c in r)if(\"1\"!==c){if(\"0\"===c){a=0;break}if(r[c]*=i.n,r[c]%i.d!=0)return null;r[c]/=i.d,a*=Math.pow(c,r[c])}for(var c in n)if(\"1\"!==c){if(n[c]*=i.n,n[c]%i.d!=0)return null;n[c]/=i.d,f*=Math.pow(c,n[c])}return i.s<0?o(f,a):o(a,f)},equals:function(t,e){return u(t,e),this.s*this.n*i.d==i.s*i.n*this.d},compare:function(t,e){u(t,e);var r=this.s*this.n*i.d-i.s*i.n*this.d;return(0<r)-(r<0)},simplify:function(t){if(isNaN(this.n)||isNaN(this.d))return this;t=t||.001;for(var e=this.abs(),r=e.toContinued(),n=1;n<r.length;n++){for(var i=o(r[n-1],1),a=n-2;a>=0;a--)i=i.inverse().add(r[a]);if(Math.abs(i.sub(e).valueOf())<t)return i.mul(this.s)}return this},divisible:function(t,e){return u(t,e),!(!(i.n*this.d)||this.n*i.d%(i.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(t){var e,r=\"\",n=this.n,i=this.d;return this.s<0&&(r+=\"-\"),1===i?r+=n:(t&&(e=Math.floor(n/i))>0&&(r+=e,r+=\" \",n%=i),r+=n,r+=\"/\",r+=i),r},toLatex:function(t){var e,r=\"\",n=this.n,i=this.d;return this.s<0&&(r+=\"-\"),1===i?r+=n:(t&&(e=Math.floor(n/i))>0&&(r+=e,n%=i),r+=\"\\\\frac{\",r+=n,r+=\"}{\",r+=i,r+=\"}\"),r},toContinued:function(){var t,e=this.n,r=this.d,n=[];if(isNaN(e)||isNaN(r))return n;do{n.push(Math.floor(e/r)),t=e%r,e=r,r=t}while(1!==e);return n},toString:function(t){var e=this.n,r=this.d;if(isNaN(e)||isNaN(r))return\"NaN\";t=t||15;var n=function(t,e){for(;e%2==0;e/=2);for(;e%5==0;e/=5);if(1===e)return 0;for(var r=10%e,n=1;1!==r;n++)if(r=10*r%e,n>2e3)return 0;return n}(0,r),i=function(t,e,r){for(var n=1,i=function(t,e,r){for(var n=1;e>0;t=t*t%r,e>>=1)1&e&&(n=n*t%r);return n}(10,r,e),a=0;a<300;a++){if(n===i)return a;n=10*n%e,i=10*i%e}return 0}(0,r,n),a=this.s<0?\"-\":\"\";if(a+=e/r|0,e%=r,(e*=10)&&(a+=\".\"),n){for(var o=i;o--;)a+=e/r|0,e%=r,e*=10;a+=\"(\";for(o=n;o--;)a+=e/r|0,e%=r,e*=10;a+=\")\"}else for(o=t;e&&o--;)a+=e/r|0,e%=r,e*=10;return a}},\"object\"===n(e)?(Object.defineProperty(c,\"__esModule\",{value:!0}),c.default=c,c.Fraction=c,t.exports=c):r.Fraction=c}(this)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,\"loaded\",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,\"id\",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},a=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(\" \")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(a,(function(t){if(\"%%\"===t)return\"%\";if(r>=i)return t;switch(t){case\"%s\":return String(n[r++]);case\"%d\":return Number(n[r++]);case\"%j\":try{return JSON.stringify(n[r++])}catch(t){return\"[Circular]\"}default:return t}})),s=n[r];r<i;s=n[++r])y(s)||!_(s)?o+=\" \"+s:o+=\" \"+u(s);return o},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation&&console.trace(n),i=!0}return r.apply(this,arguments)}};var o,s={};function u(t,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),h(n,t,n.depth)}function f(t,e){var r=u.styles[e];return r?\"\u001b[\"+u.colors[r][0]+\"m\"+t+\"\u001b[\"+u.colors[r][1]+\"m\":t}function c(t,e){return t}function h(t,r,n){if(t.customInspect&&r&&D(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return g(i)||(i=h(t,i,n)),i}var a=function(t,e){if(v(e))return t.stylize(\"undefined\",\"undefined\");if(g(e)){var r=\"'\"+JSON.stringify(e).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return t.stylize(r,\"string\")}if(b(e))return t.stylize(\"\"+e,\"number\");if(m(e))return t.stylize(\"\"+e,\"boolean\");if(y(e))return t.stylize(\"null\",\"null\")}(t,r);if(a)return a;var o=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),E(r)&&(o.indexOf(\"message\")>=0||o.indexOf(\"description\")>=0))return l(r);if(0===o.length){if(D(r)){var u=r.name?\": \"+r.name:\"\";return t.stylize(\"[Function\"+u+\"]\",\"special\")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),\"regexp\");if(x(r))return t.stylize(Date.prototype.toString.call(r),\"date\");if(E(r))return l(r)}var f,c=\"\",_=!1,k=[\"{\",\"}\"];(d(r)&&(_=!0,k=[\"[\",\"]\"]),D(r))&&(c=\" [Function\"+(r.name?\": \"+r.name:\"\")+\"]\");return w(r)&&(c=\" \"+RegExp.prototype.toString.call(r)),x(r)&&(c=\" \"+Date.prototype.toUTCString.call(r)),E(r)&&(c=\" \"+l(r)),0!==o.length||_&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),\"regexp\"):t.stylize(\"[Object]\",\"special\"):(t.seen.push(r),f=_?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)M(e,String(o))?a.push(p(t,e,r,n,String(o),!0)):a.push(\"\");return i.forEach((function(i){i.match(/^\\d+$/)||a.push(p(t,e,r,n,i,!0))})),a}(t,r,n,s,o):o.map((function(e){return p(t,r,n,s,e,_)})),t.seen.pop(),function(t,e,r){var n=t.reduce((function(t,e){return e.indexOf(\"\\n\")>=0&&0,t+e.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1}),0);if(n>60)return r[0]+(\"\"===e?\"\":e+\"\\n \")+\" \"+t.join(\",\\n  \")+\" \"+r[1];return r[0]+e+\" \"+t.join(\", \")+\" \"+r[1]}(f,c,k)):k[0]+c+k[1]}function l(t){return\"[\"+Error.prototype.toString.call(t)+\"]\"}function p(t,e,r,n,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize(\"[Getter/Setter]\",\"special\"):t.stylize(\"[Getter]\",\"special\"):u.set&&(s=t.stylize(\"[Setter]\",\"special\")),M(n,i)||(o=\"[\"+i+\"]\"),s||(t.seen.indexOf(u.value)<0?(s=y(r)?h(t,u.value,null):h(t,u.value,r-1)).indexOf(\"\\n\")>-1&&(s=a?s.split(\"\\n\").map((function(t){return\"  \"+t})).join(\"\\n\").substr(2):\"\\n\"+s.split(\"\\n\").map((function(t){return\"   \"+t})).join(\"\\n\")):s=t.stylize(\"[Circular]\",\"special\")),v(o)){if(a&&i.match(/^\\d+$/))return s;(o=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,\"name\")):(o=o.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),o=t.stylize(o,\"string\"))}return o+\": \"+s}function d(t){return Array.isArray(t)}function m(t){return\"boolean\"==typeof t}function y(t){return null===t}function b(t){return\"number\"==typeof t}function g(t){return\"string\"==typeof t}function v(t){return void 0===t}function w(t){return _(t)&&\"[object RegExp]\"===k(t)}function _(t){return\"object\"===n(t)&&null!==t}function x(t){return _(t)&&\"[object Date]\"===k(t)}function E(t){return _(t)&&(\"[object Error]\"===k(t)||t instanceof Error)}function D(t){return\"function\"==typeof t}function k(t){return Object.prototype.toString.call(t)}function A(t){return t<10?\"0\"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(v(o)&&(o=t.env.NODE_DEBUG||\"\"),r=r.toUpperCase(),!s[r])if(new RegExp(\"\\\\b\"+r+\"\\\\b\",\"i\").test(o)){t.pid;s[r]=function(){e.format.apply(e,arguments)}}else s[r]=function(){};return s[r]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},e.isArray=d,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=g,e.isSymbol=function(t){return\"symbol\"===n(t)},e.isUndefined=v,e.isRegExp=w,e.isObject=_,e.isDate=x,e.isError=E,e.isFunction=D,e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===n(t)||void 0===t},e.isBuffer=r(144);var S=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function M(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;t=new Date,r=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(\":\"),[t.getDate(),S[t.getMonth()],r].join(\" \"),e.format.apply(e,arguments)},e.inherits=r(145),e._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var F=\"undefined\"!=typeof Symbol?Symbol(\"util.promisify.custom\"):void 0;function C(t,e){if(!t){var r=new Error(\"Promise was rejected with a falsy value\");r.reason=t,t=r}return e(t)}e.promisify=function(t){if(\"function\"!=typeof t)throw new TypeError('The \"original\" argument must be of type Function');if(F&&t[F]){var e;if(\"function\"!=typeof(e=t[F]))throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');return Object.defineProperty(e,F,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),F&&Object.defineProperty(e,F,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=F,e.callbackify=function(e){if(\"function\"!=typeof e)throw new TypeError('The \"original\" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if(\"function\"!=typeof i)throw new TypeError(\"The last argument must be of type Function\");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,r).then((function(e){t.nextTick(o,null,e)}),(function(e){t.nextTick(C,e,o)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,i(e)),r}}).call(this,r(7))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(\"object\"!==n(r))throw new TypeError(r+\"must be non-object\");for(var i in r)a(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,o;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)a=t[e],o.set(a,i),i+=a.length;return o}},s={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,r){var n,i,a;function o(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,o=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){u=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw a}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}a=function(){\"use strict\";function t(){return!0}function e(){return!1}function r(){}var n=\"Argument is not a typed-function.\",i=function i(){function a(t){return\"object\"===u(t)&&null!==t&&t.constructor===Object}var s,f,c=[{name:\"number\",test:function(t){return\"number\"==typeof t}},{name:\"string\",test:function(t){return\"string\"==typeof t}},{name:\"boolean\",test:function(t){return\"boolean\"==typeof t}},{name:\"Function\",test:function(t){return\"function\"==typeof t}},{name:\"Array\",test:Array.isArray},{name:\"Date\",test:function(t){return t instanceof Date}},{name:\"RegExp\",test:function(t){return t instanceof RegExp}},{name:\"Object\",test:a},{name:\"null\",test:function(t){return null===t}},{name:\"undefined\",test:function(t){return void 0===t}}],h={name:\"any\",test:t,isAny:!0},l=0,p={createCount:0};function d(t){var e=s.get(t);if(e)return e;var r,n,i='Unknown type \"'+t+'\"',a=t.toLowerCase(),u=o(f);try{for(u.s();!(n=u.n()).done;)if((r=n.value).toLowerCase()===a){i+='. Did you mean \"'+r+'\" ?';break}}catch(t){u.e(t)}finally{u.f()}throw new TypeError(i)}function m(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"any\",r=e?d(e).index:f.length,n=[],i=0;i<t.length;++i){if(!t[i]||\"string\"!=typeof t[i].name||\"function\"!=typeof t[i].test)throw new TypeError(\"Object with properties {name: string, test: function} expected\");var a=t[i].name;if(s.has(a))throw new TypeError('Duplicate type name \"'+a+'\"');n.push(a),s.set(a,{name:a,test:t[i].test,isAny:t[i].isAny,index:r+i,conversionsTo:[]})}var o=f.slice(r);f=f.slice(0,r).concat(n).concat(o);for(var u=r+n.length;u<f.length;++u)s.get(f[u]).index=u}function y(){s=new Map,f=[],l=0,m([h],!1)}function b(t){var e=f.filter((function(e){var r=s.get(e);return!r.isAny&&r.test(t)}));return e.length?e:[\"any\"]}function g(t){return t&&\"function\"==typeof t&&\"_typedFunctionData\"in t}function v(t,e,r){if(!g(t))throw new TypeError(n);var i=r&&r.exact,a=D(Array.isArray(e)?e.join(\",\"):e),s=w(a);if(!i||s in t.signatures){var u=t._typedFunctionData.signatureMap.get(s);if(u)return u}var f,c,h,l=a.length;if(i)for(c in f=[],t.signatures)f.push(t._typedFunctionData.signatureMap.get(c));else f=t._typedFunctionData.signatures;for(var p=0;p<l;++p){var d,m=a[p],y=[],b=void 0,v=o(f);try{var _=function(){var t=M((b=d.value).params,p);if(!t||m.restParam&&!t.restParam)return 0;if(!t.hasAny){var e=E(t);if(m.types.some((function(t){return!e.has(t.name)})))return 0}y.push(b)};for(v.s();!(d=v.n()).done;)_()}catch(t){v.e(t)}finally{v.f()}if(0===(f=y).length)break}var x,k=o(f);try{for(k.s();!(x=k.n()).done;)if((h=x.value).params.length<=l)return h}catch(t){k.e(t)}finally{k.f()}throw new TypeError(\"Signature not found (signature: \"+(t.name||\"unnamed\")+\"(\"+w(a,\", \")+\"))\")}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\",\";return t.map((function(t){return t.name})).join(e)}function _(t){var e=0===t.indexOf(\"...\"),r=(e?t.length>3?t.slice(3):\"any\":t).split(\"|\").map((function(t){return d(t.trim())})),n=!1,i=e?\"...\":\"\";return{types:r.map((function(t){return n=t.isAny||n,i+=t.name+\"|\",{name:t.name,typeIndex:t.index,test:t.test,isAny:t.isAny,conversion:null,conversionIndex:-1}})),name:i.slice(0,-1),hasAny:n,hasConversion:!1,restParam:e}}function x(t){var e=function(t){if(0===t.length)return[];var e=t.map(d);t.length>1&&e.sort((function(t,e){return t.index-e.index}));var r=e[0].conversionsTo;if(1===t.length)return r;r=r.concat([]);for(var n=new Set(t),i=1;i<e.length;++i){var a,s=void 0,u=o(e[i].conversionsTo);try{for(u.s();!(a=u.n()).done;)s=a.value,n.has(s.from)||(r.push(s),n.add(s.from))}catch(t){u.e(t)}finally{u.f()}}return r}(t.types.map((function(t){return t.name}))),r=t.hasAny,n=t.name,i=e.map((function(t){var e=d(t.from);return r=e.isAny||r,n+=\"|\"+t.from,{name:t.from,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:t,conversionIndex:t.index}}));return{types:t.types.concat(i),name:n,hasAny:r,hasConversion:i.length>0,restParam:t.restParam}}function E(t){return t.typeSet||(t.typeSet=new Set,t.types.forEach((function(e){return t.typeSet.add(e.name)}))),t.typeSet}function D(t){var e=[];if(\"string\"!=typeof t)throw new TypeError(\"Signatures must be strings\");var r=t.trim();if(\"\"===r)return e;for(var n=r.split(\",\"),i=0;i<n.length;++i){var a=_(n[i].trim());if(a.restParam&&i!==n.length-1)throw new SyntaxError('Unexpected rest parameter \"'+n[i]+'\": only allowed for the last parameter');if(0===a.types.length)return null;e.push(a)}return e}function k(t){var e=q(t);return!!e&&e.restParam}function A(e){if(e&&0!==e.types.length){if(1===e.types.length)return d(e.types[0].name).test;if(2===e.types.length){var r=d(e.types[0].name).test,n=d(e.types[1].name).test;return function(t){return r(t)||n(t)}}var i=e.types.map((function(t){return d(t.name).test}));return function(t){for(var e=0;e<i.length;e++)if(i[e](t))return!0;return!1}}return t}function S(t){var e,r,n;if(k(t)){var i=(e=Z(t).map(A)).length,a=A(q(t));return function(t){for(var r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return function(t){for(var e=i;e<t.length;e++)if(!a(t[e]))return!1;return!0}(t)&&t.length>=i+1}}return 0===t.length?function(t){return 0===t.length}:1===t.length?(r=A(t[0]),function(t){return r(t[0])&&1===t.length}):2===t.length?(r=A(t[0]),n=A(t[1]),function(t){return r(t[0])&&n(t[1])&&2===t.length}):(e=t.map(A),function(t){for(var r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return t.length===e.length})}function M(t,e){return e<t.length?t[e]:k(t)?q(t):null}function F(t,e){var r=M(t,e);return r?E(r):new Set}function C(t){return null===t.conversion||void 0===t.conversion}function B(t,e){var r=new Set;return t.forEach((function(t){var n,i,a=o(F(t.params,e));try{for(a.s();!(i=a.n()).done;)n=i.value,r.add(n)}catch(t){a.e(t)}finally{a.f()}})),r.has(\"any\")?[\"any\"]:Array.from(r)}function O(t,e,r){var n,i,a,o,s=t||\"unnamed\",u=r,f=function(){var t=[];if(u.forEach((function(r){var n=A(M(r.params,a));(a<r.params.length||k(r.params))&&n(e[a])&&t.push(r)})),0===t.length){if((i=B(u,a)).length>0){var r=b(e[a]);return(n=new TypeError(\"Unexpected type of argument in function \"+s+\" (expected: \"+i.join(\" or \")+\", actual: \"+r.join(\" | \")+\", index: \"+a+\")\")).data={category:\"wrongType\",fn:s,index:a,actual:r,expected:i},{v:n}}}else u=t};for(a=0;a<e.length;a++)if(o=f())return o.v;var c=u.map((function(t){return k(t.params)?1/0:t.params.length}));if(e.length<Math.min.apply(null,c))return i=B(u,a),(n=new TypeError(\"Too few arguments in function \"+s+\" (expected: \"+i.join(\" or \")+\", index: \"+e.length+\")\")).data={category:\"tooFewArgs\",fn:s,index:e.length,expected:i},n;var h=Math.max.apply(null,c);if(e.length>h)return(n=new TypeError(\"Too many arguments in function \"+s+\" (expected: \"+h+\", actual: \"+e.length+\")\")).data={category:\"tooManyArgs\",fn:s,index:e.length,expectedLength:h},n;for(var l=[],p=0;p<e.length;++p)l.push(b(e[p]).join(\"|\"));return(n=new TypeError('Arguments of type \"'+l.join(\", \")+'\" do not match any of the defined signatures of function '+s+\".\")).data={category:\"mismatch\",actual:l},n}function I(t){for(var e=f.length+1,r=0;r<t.types.length;r++)C(t.types[r])&&(e=Math.min(e,t.types[r].typeIndex));return e}function T(t){for(var e=l+1,r=0;r<t.types.length;r++)C(t.types[r])||(e=Math.min(e,t.types[r].conversionIndex));return e}function P(t,e){if(t.hasAny){if(!e.hasAny)return 1}else if(e.hasAny)return-1;if(t.restParam){if(!e.restParam)return 1}else if(e.restParam)return-1;if(t.hasConversion){if(!e.hasConversion)return 1}else if(e.hasConversion)return-1;var r=I(t)-I(e);if(r<0)return-1;if(r>0)return 1;var n=T(t)-T(e);return n<0?-1:n>0?1:0}function L(t,e){var r=t.params,n=e.params,i=q(r),a=q(n),s=k(r),u=k(n);if(s&&i.hasAny){if(!u||!a.hasAny)return 1}else if(u&&a.hasAny)return-1;var f,c,h=0,l=0,p=o(r);try{for(p.s();!(c=p.n()).done;)(f=c.value).hasAny&&++h,f.hasConversion&&++l}catch(t){p.e(t)}finally{p.f()}var d,m=0,y=0,b=o(n);try{for(b.s();!(d=b.n()).done;)(f=d.value).hasAny&&++m,f.hasConversion&&++y}catch(t){b.e(t)}finally{b.f()}if(h!==m)return h-m;if(s&&i.hasConversion){if(!u||!a.hasConversion)return 1}else if(u&&a.hasConversion)return-1;if(l!==y)return l-y;if(s){if(!u)return 1}else if(u)return-1;var g=(r.length-n.length)*(s?-1:1);if(0!==g)return g;for(var v,w=[],_=0,x=0;x<r.length;++x){var E=P(r[x],n[x]);w.push(E),_+=E}if(0!==_)return _;for(var D=0,A=w;D<A.length;D++)if(0!==(v=A[D]))return v;return 0}function N(t,e){var r=e;if(t.some((function(t){return t.hasConversion}))){var n=k(t),i=t.map(j);r=function(){for(var t=[],r=n?arguments.length-1:arguments.length,a=0;a<r;a++)t[a]=i[a](arguments[a]);return n&&(t[r]=arguments[r].map(i[r])),e.apply(this,t)}}var a=r;if(k(t)){var o=t.length-1;a=function(){return r.apply(this,W(arguments,0,o).concat([W(arguments,o)]))}}return a}function j(t){var e,r,n,i,a=[],o=[];switch(t.types.forEach((function(t){t.conversion&&(a.push(d(t.conversion.from).test),o.push(t.conversion.convert))})),o.length){case 0:return function(t){return t};case 1:return e=a[0],n=o[0],function(t){return e(t)?n(t):t};case 2:return e=a[0],r=a[1],n=o[0],i=o[1],function(t){return e(t)?n(t):r(t)?i(t):t};default:return function(t){for(var e=0;e<o.length;e++)if(a[e](t))return o[e](t);return t}}}function R(t){return function t(e,r,n){if(r<e.length){var i=e[r],a=[];if(i.restParam){var o=i.types.filter(C);o.length<i.types.length&&a.push({types:o,name:\"...\"+o.map((function(t){return t.name})).join(\"|\"),hasAny:o.some((function(t){return t.isAny})),hasConversion:!1,restParam:!0}),a.push(i)}else a=i.types.map((function(t){return{types:[t],name:t.name,hasAny:t.isAny,hasConversion:t.conversion,restParam:!1}}));return s=a,u=function(i){return t(e,r+1,n.concat([i]))},Array.prototype.concat.apply([],s.map(u))}return[n];var s,u}(t,0,[])}function z(t,e,r){var n,i,a=[],s=o(t);try{for(s.s();!(i=s.n()).done;){var u=r[n=i.value];if(\"number\"!=typeof u)throw new TypeError('No definition for referenced signature \"'+n+'\"');if(\"function\"!=typeof(u=e[u]))return!1;a.push(u)}}catch(t){s.e(t)}finally{s.f()}return a}function U(t,e,r){for(var n=function(t){return t.map((function(t){return J(t)?V(t.referToSelf.callback):X(t)?Y(t.referTo.references,t.referTo.callback):t}))}(t),i=new Array(n.length).fill(!1),a=!0;a;){a=!1;for(var o=!0,s=0;s<n.length;++s)if(!i[s]){var u=n[s];if(J(u))n[s]=u.referToSelf.callback(r),n[s].referToSelf=u.referToSelf,i[s]=!0,o=!1;else if(X(u)){var f=z(u.referTo.references,n,e);f?(n[s]=u.referTo.callback.apply(this,f),n[s].referTo=u.referTo,i[s]=!0,o=!1):a=!0}}if(o&&a)throw new SyntaxError(\"Circular reference detected in resolving typed.referTo\")}return n}function G(t,n){if(p.createCount++,0===Object.keys(n).length)throw new SyntaxError(\"No signatures provided\");p.warnAgainstDeprecatedThis&&function(t){var e=/\\bthis(\\(|\\.signatures\\b)/;Object.keys(t).forEach((function(r){var n=t[r];if(e.test(n.toString()))throw new SyntaxError(\"Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.\")}))}(n);var i,a=[],s=[],u={},f=[],c=function(){if(!Object.prototype.hasOwnProperty.call(n,i))return 0;var t=D(i);if(!t)return 0;a.forEach((function(e){if(function(t,e){for(var r=Math.max(t.length,e.length),n=0;n<r;n++){var i,a=F(t,n),s=!1,u=void 0,f=o(F(e,n));try{for(f.s();!(i=f.n()).done;)if(u=i.value,a.has(u)){s=!0;break}}catch(t){f.e(t)}finally{f.f()}if(!s)return!1}var c=t.length,h=e.length,l=k(t),p=k(e);return l?p?c===h:h>=c:p?c>=h:c===h}(e,t))throw new TypeError('Conflicting signatures \"'+w(e)+'\" and \"'+w(t)+'\".')})),a.push(t);var e=s.length;s.push(n[i]);var r,c,h=o(R(t.map(x)));try{for(h.s();!(c=h.n()).done;){var l=w(r=c.value);f.push({params:r,name:l,fn:e}),r.every((function(t){return!t.hasConversion}))&&(u[l]=e)}}catch(t){h.e(t)}finally{h.f()}};for(i in n)c();f.sort(L);var h,l=U(s,u,pt);for(h in u)Object.prototype.hasOwnProperty.call(u,h)&&(u[h]=l[u[h]]);for(var d=[],m=new Map,y=0,b=f;y<b.length;y++)h=b[y],m.has(h.name)||(h.fn=l[h.fn],d.push(h),m.set(h.name,h));for(var g=d[0]&&d[0].params.length<=2&&!k(d[0].params),v=d[1]&&d[1].params.length<=2&&!k(d[1].params),_=d[2]&&d[2].params.length<=2&&!k(d[2].params),E=d[3]&&d[3].params.length<=2&&!k(d[3].params),M=d[4]&&d[4].params.length<=2&&!k(d[4].params),C=d[5]&&d[5].params.length<=2&&!k(d[5].params),B=g&&v&&_&&E&&M&&C,O=0;O<d.length;++O)d[O].test=S(d[O].params);for(var I=g?A(d[0].params[0]):e,T=v?A(d[1].params[0]):e,P=_?A(d[2].params[0]):e,j=E?A(d[3].params[0]):e,z=M?A(d[4].params[0]):e,G=C?A(d[5].params[0]):e,H=g?A(d[0].params[1]):e,Z=v?A(d[1].params[1]):e,q=_?A(d[2].params[1]):e,W=E?A(d[3].params[1]):e,Y=M?A(d[4].params[1]):e,V=C?A(d[5].params[1]):e,X=0;X<d.length;++X)d[X].implementation=N(d[X].params,d[X].fn);var J=g?d[0].implementation:r,K=v?d[1].implementation:r,Q=_?d[2].implementation:r,$=E?d[3].implementation:r,tt=M?d[4].implementation:r,et=C?d[5].implementation:r,rt=g?d[0].params.length:-1,nt=v?d[1].params.length:-1,it=_?d[2].params.length:-1,at=E?d[3].params.length:-1,ot=M?d[4].params.length:-1,st=C?d[5].params.length:-1,ut=B?6:0,ft=d.length,ct=d.map((function(t){return t.test})),ht=d.map((function(t){return t.implementation})),lt=function(){for(var e=ut;e<ft;e++)if(ct[e](arguments))return ht[e].apply(this,arguments);return p.onMismatch(t,arguments,d)};function pt(t,e){return arguments.length===rt&&I(t)&&H(e)?J.apply(this,arguments):arguments.length===nt&&T(t)&&Z(e)?K.apply(this,arguments):arguments.length===it&&P(t)&&q(e)?Q.apply(this,arguments):arguments.length===at&&j(t)&&W(e)?$.apply(this,arguments):arguments.length===ot&&z(t)&&Y(e)?tt.apply(this,arguments):arguments.length===st&&G(t)&&V(e)?et.apply(this,arguments):lt.apply(this,arguments)}try{Object.defineProperty(pt,\"name\",{value:t})}catch(t){}return pt.signatures=u,pt._typedFunctionData={signatures:d,signatureMap:m},pt}function H(t,e,r){throw O(t,e,r)}function Z(t){return W(t,0,t.length-1)}function q(t){return t[t.length-1]}function W(t,e,r){return Array.prototype.slice.call(t,e,r)}function Y(t,e){return{referTo:{references:t,callback:e}}}function V(t){if(\"function\"!=typeof t)throw new TypeError(\"Callback function expected as first argument\");return{referToSelf:{callback:t}}}function X(t){return t&&\"object\"===u(t.referTo)&&Array.isArray(t.referTo.references)&&\"function\"==typeof t.referTo.callback}function J(t){return t&&\"object\"===u(t.referToSelf)&&\"function\"==typeof t.referToSelf.callback}function K(t,e){if(!t)return e;if(e&&e!==t){var r=new Error(\"Function names do not match (expected: \"+t+\", actual: \"+e+\")\");throw r.data={actual:e,expected:t},r}return t}function Q(t){var e;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(g(t[r])||\"string\"==typeof t[r].signature)&&(e=K(e,t[r].name));return e}function $(t,e){var r;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(r in t&&e[r]!==t[r]){var n=new Error('Signature \"'+r+'\" is defined twice');throw n.data={signature:r,sourceFunction:e[r],destFunction:t[r]},n}t[r]=e[r]}}y(),m(c);var tt=p;function et(t){if(!t||\"string\"!=typeof t.from||\"string\"!=typeof t.to||\"function\"!=typeof t.convert)throw new TypeError(\"Object with properties {from: string, to: string, convert: function} expected\");if(t.to===t.from)throw new SyntaxError('Illegal to define conversion from \"'+t.from+'\" to itself.')}return p=function(t){for(var e=\"string\"==typeof t,r=e?t:\"\",n={},i=e?1:0;i<arguments.length;++i){var o=arguments[i],s={},u=void 0;if(\"function\"==typeof o?(u=o.name,\"string\"==typeof o.signature?s[o.signature]=o:g(o)&&(s=o.signatures)):a(o)&&(s=o,e||(u=Q(o))),0===Object.keys(s).length){var f=new TypeError(\"Argument to 'typed' at index \"+i+\" is not a (typed) function, nor an object with signatures as keys and functions as values.\");throw f.data={index:i,argument:o},f}e||(r=K(r,u)),$(n,s)}return G(r||\"\",n)},p.create=i,p.createCount=tt.createCount,p.onMismatch=H,p.throwMismatchError=H,p.createError=O,p.clear=y,p.clearConversions=function(){var t,e,r=o(f);try{for(r.s();!(e=r.n()).done;)t=e.value,s.get(t).conversionsTo=[]}catch(t){r.e(t)}finally{r.f()}l=0},p.addTypes=m,p._findType=d,p.referTo=function(){var t=Z(arguments).map((function(t){return w(D(t))})),e=q(arguments);if(\"function\"!=typeof e)throw new TypeError(\"Callback function expected as last argument\");return Y(t,e)},p.referToSelf=V,p.convert=function(t,e){var r=d(e);if(r.test(t))return t;var n=r.conversionsTo;if(0===n.length)throw new Error(\"There are no conversions to \"+e+\" defined.\");for(var i=0;i<n.length;i++)if(d(n[i].from).test(t))return n[i].convert(t);throw new Error(\"Cannot convert \"+t+\" to \"+e)},p.findSignature=v,p.find=function(t,e,r){return v(t,e,r).implementation},p.isTypedFunction=g,p.warnAgainstDeprecatedThis=!0,p.addType=function(t,e){var r=\"any\";!1!==e&&s.has(\"Object\")&&(r=\"Object\"),p.addTypes([t],r)},p.addConversion=function(t){et(t);var e=d(t.to);if(!e.conversionsTo.every((function(e){return e.from!==t.from})))throw new Error('There is already a conversion from \"'+t.from+'\" to \"'+e.name+'\"');e.conversionsTo.push({from:t.from,convert:t.convert,index:l++})},p.addConversions=function(t){t.forEach(p.addConversion)},p.removeConversion=function(t){et(t);var e=d(t.to),r=function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return t[r]}(e.conversionsTo,(function(e){return e.from===t.from}));if(!r)throw new Error(\"Attempt to remove nonexistent conversion from \"+t.from+\" to \"+t.to);if(r.convert!==t.convert)throw new Error(\"Conversion to remove does not match existing conversion\");var n=e.conversionsTo.indexOf(r);e.conversionsTo.splice(n,1)},p.resolve=function(t,e){if(!g(t))throw new TypeError(n);for(var r=t._typedFunctionData.signatures,i=0;i<r.length;++i)if(r[i].test(e))return r[i];return null},p}();return i},\"object\"===u(e)&&void 0!==t?t.exports=a():void 0===(i=\"function\"==typeof(n=a)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){\"use strict\";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r=0,n=0;n<e.length;n++)if(t.chars[e[n]]){var i=t.kernings[e[n]]&&t.kernings[e[n]][e[n+1]]?t.kernings[e[n]][e[n+1]]:0;r+=(t.chars[e[n]].xadvance||0)+i}return r}function o(t,e,r){var i=e.replace(/[\\r\\n]+/g,\" \\n\").split(\" \"),o=[],s=[],u=0;return i.forEach((function(e){var i=[].concat(n(s),[e]).join(\" \"),f=a(t,i);f<=r&&!e.includes(\"\\n\")?(f>u&&(u=f),s.push(e)):(o.push(s),s=[e.replace(\"\\n\",\"\")])})),o.push(s),{lines:o,longestLine:u}}function s(t,e,r){return o(t,e,r).lines.length*t.common.lineHeight}r.d(e,\"a\",(function(){return a})),r.d(e,\"c\",(function(){return o})),r.d(e,\"b\",(function(){return s}))},function(t,e,r){\"use strict\";var n=r(39),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=h;var a=Object.create(r(27));a.inherits=r(24);var o=r(70),s=r(52);a.inherits(h,o);for(var u=i(s.prototype),f=0;f<u.length;f++){var c=u[f];h.prototype[c]||(h.prototype[c]=s.prototype[c])}function h(t){if(!(this instanceof h))return new h(t);o.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once(\"end\",l)}function l(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(t){t.end()}Object.defineProperty(h.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return i})),r.d(e,\"c\",(function(){return a})),r.d(e,\"b\",(function(){return o}));var n={},i=function(t,e){n[t]=e},a=function(t){var e=t.split(\"/\").slice(-1),r=function(t){return Object.entries(n).find((function(e){return e[1].includes(t)}))||[]}(e[e.length-1].split(\".\").pop());return r[0]},o=function(t){return(n[t.toLowerCase()]||[])[0]}},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"AUTO\",(function(){return n})),r.d(e,\"HORIZONTAL_ALIGN_LEFT\",(function(){return i})),r.d(e,\"HORIZONTAL_ALIGN_CENTER\",(function(){return a})),r.d(e,\"HORIZONTAL_ALIGN_RIGHT\",(function(){return o})),r.d(e,\"VERTICAL_ALIGN_TOP\",(function(){return s})),r.d(e,\"VERTICAL_ALIGN_MIDDLE\",(function(){return u})),r.d(e,\"VERTICAL_ALIGN_BOTTOM\",(function(){return f})),r.d(e,\"BLEND_SOURCE_OVER\",(function(){return c})),r.d(e,\"BLEND_DESTINATION_OVER\",(function(){return h})),r.d(e,\"BLEND_MULTIPLY\",(function(){return l})),r.d(e,\"BLEND_ADD\",(function(){return p})),r.d(e,\"BLEND_SCREEN\",(function(){return d})),r.d(e,\"BLEND_OVERLAY\",(function(){return m})),r.d(e,\"BLEND_DARKEN\",(function(){return y})),r.d(e,\"BLEND_LIGHTEN\",(function(){return b})),r.d(e,\"BLEND_HARDLIGHT\",(function(){return g})),r.d(e,\"BLEND_DIFFERENCE\",(function(){return v})),r.d(e,\"BLEND_EXCLUSION\",(function(){return w})),r.d(e,\"EDGE_EXTEND\",(function(){return _})),r.d(e,\"EDGE_WRAP\",(function(){return x})),r.d(e,\"EDGE_CROP\",(function(){return E}));var n=-1,i=1,a=2,o=4,s=8,u=16,f=32,c=\"srcOver\",h=\"dstOver\",l=\"multiply\",p=\"add\",d=\"screen\",m=\"overlay\",y=\"darken\",b=\"lighten\",g=\"hardLight\",v=\"difference\",w=\"exclusion\",_=1,x=2,E=3},function(t,e,r){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(a){\"use strict\";var o,s,u,f=9e15,c=1e9,h=\"0123456789abcdef\",l=\"2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058\",p=\"3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789\",d={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-f,maxE:f,crypto:!1},m=!0,y=\"[DecimalError] \",b=y+\"Invalid argument: \",g=y+\"Precision limit exceeded\",v=y+\"crypto unavailable\",w=\"[object Decimal]\",_=Math.floor,x=Math.pow,E=/^0b([01]+(\\.[01]*)?|\\.[01]+)(p[+-]?\\d+)?$/i,D=/^0x([0-9a-f]+(\\.[0-9a-f]*)?|\\.[0-9a-f]+)(p[+-]?\\d+)?$/i,k=/^0o([0-7]+(\\.[0-7]*)?|\\.[0-7]+)(p[+-]?\\d+)?$/i,A=/^(\\d+(\\.\\d*)?|\\.\\d+)(e[+-]?\\d+)?$/i,S=1e7,M=7,F=l.length-1,C=p.length-1,B={toStringTag:w};function O(t){var e,r,n,i=t.length-1,a=\"\",o=t[0];if(i>0){for(a+=o,e=1;e<i;e++)n=t[e]+\"\",(r=M-n.length)&&(a+=H(r)),a+=n;o=t[e],(r=M-(n=o+\"\").length)&&(a+=H(r))}else if(0===o)return\"0\";for(;o%10==0;)o/=10;return a+o}function I(t,e,r){if(t!==~~t||t<e||t>r)throw Error(b+t)}function T(t,e,r,n){var i,a,o,s;for(a=t[0];a>=10;a/=10)--e;return--e<0?(e+=M,i=0):(i=Math.ceil((e+1)/M),e%=M),a=x(10,M-e),s=t[i]%a|0,null==n?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),o=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):o=(r<4&&s+1==a||r>3&&s+1==a/2)&&(t[i+1]/a/100|0)==x(10,e-2)-1||(s==a/2||0==s)&&!(t[i+1]/a/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),o=(n||r<4)&&9999==s||!n&&r>3&&4999==s):o=((n||r<4)&&s+1==a||!n&&r>3&&s+1==a/2)&&(t[i+1]/a/1e3|0)==x(10,e-3)-1,o}function P(t,e,r){for(var n,i,a=[0],o=0,s=t.length;o<s;){for(i=a.length;i--;)a[i]*=e;for(a[0]+=h.indexOf(t.charAt(o++)),n=0;n<a.length;n++)a[n]>r-1&&(void 0===a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}B.absoluteValue=B.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),N(t)},B.ceil=function(){return N(new this.constructor(this),this.e+1,2)},B.clampedTo=B.clamp=function(t,e){var r=this,n=r.constructor;if(t=new n(t),e=new n(e),!t.s||!e.s)return new n(NaN);if(t.gt(e))throw Error(b+e);return r.cmp(t)<0?t:r.cmp(e)>0?e:new n(r)},B.comparedTo=B.cmp=function(t){var e,r,n,i,a=this,o=a.d,s=(t=new a.constructor(t)).d,u=a.s,f=t.s;if(!o||!s)return u&&f?u!==f?u:o===s?0:!o^u<0?1:-1:NaN;if(!o[0]||!s[0])return o[0]?u:s[0]?-f:0;if(u!==f)return u;if(a.e!==t.e)return a.e>t.e^u<0?1:-1;for(e=0,r=(n=o.length)<(i=s.length)?n:i;e<r;++e)if(o[e]!==s[e])return o[e]>s[e]^u<0?1:-1;return n===i?0:n>i^u<0?1:-1},B.cosine=B.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+M,n.rounding=1,r=function(t,e){var r,n,i;if(e.isZero())return e;n=e.d.length,n<32?i=(1/$(4,r=Math.ceil(n/3))).toString():(r=16,i=\"2.3283064365386962890625e-10\");t.precision+=r,e=Q(t,1,e.times(i),new t(1));for(var a=r;a--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return t.precision-=r,e}(n,tt(n,r)),n.precision=t,n.rounding=e,N(2==u||3==u?r.neg():r,t,e,!0)):new n(1):new n(NaN)},B.cubeRoot=B.cbrt=function(){var t,e,r,n,i,a,o,s,u,f,c=this,h=c.constructor;if(!c.isFinite()||c.isZero())return new h(c);for(m=!1,(a=c.s*x(c.s*c,1/3))&&Math.abs(a)!=1/0?n=new h(a.toString()):(r=O(c.d),(a=((t=c.e)-r.length+1)%3)&&(r+=1==a||-2==a?\"0\":\"00\"),a=x(r,1/3),t=_((t+1)/3)-(t%3==(t<0?-1:2)),(n=new h(r=a==1/0?\"5e\"+t:(r=a.toExponential()).slice(0,r.indexOf(\"e\")+1)+t)).s=c.s),o=(t=h.precision)+3;;)if(f=(u=(s=n).times(s).times(s)).plus(c),n=L(f.plus(c).times(s),f.plus(u),o+2,1),O(s.d).slice(0,o)===(r=O(n.d)).slice(0,o)){if(\"9999\"!=(r=r.slice(o-3,o+1))&&(i||\"4999\"!=r)){+r&&(+r.slice(1)||\"5\"!=r.charAt(0))||(N(n,t+1,1),e=!n.times(n).times(n).eq(c));break}if(!i&&(N(s,t+1,0),s.times(s).times(s).eq(c))){n=s;break}o+=4,i=1}return m=!0,N(n,t,h.rounding,e)},B.decimalPlaces=B.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-_(this.e/M))*M,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},B.dividedBy=B.div=function(t){return L(this,new this.constructor(t))},B.dividedToIntegerBy=B.divToInt=function(t){var e=this.constructor;return N(L(this,new e(t),0,1,1),e.precision,e.rounding)},B.equals=B.eq=function(t){return 0===this.cmp(t)},B.floor=function(){return N(new this.constructor(this),this.e+1,3)},B.greaterThan=B.gt=function(t){return this.cmp(t)>0},B.greaterThanOrEqualTo=B.gte=function(t){var e=this.cmp(t);return 1==e||0===e},B.hyperbolicCosine=B.cosh=function(){var t,e,r,n,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;r=o.precision,n=o.rounding,o.precision=r+Math.max(a.e,a.sd())+4,o.rounding=1,(i=a.d.length)<32?e=(1/$(4,t=Math.ceil(i/3))).toString():(t=16,e=\"2.3283064365386962890625e-10\"),a=Q(o,1,a.times(e),new o(1),!0);for(var u,f=t,c=new o(8);f--;)u=a.times(a),a=s.minus(u.times(c.minus(u.times(c))));return N(a,o.precision=r,o.rounding=n,!0)},B.hyperbolicSine=B.sinh=function(){var t,e,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(e=a.precision,r=a.rounding,a.precision=e+Math.max(i.e,i.sd())+4,a.rounding=1,(n=i.d.length)<3)i=Q(a,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=Q(a,2,i=i.times(1/$(5,t)),i,!0);for(var o,s=new a(5),u=new a(16),f=new a(20);t--;)o=i.times(i),i=i.times(s.plus(o.times(u.times(o).plus(f))))}return a.precision=e,a.rounding=r,N(i,e,r,!0)},B.hyperbolicTangent=B.tanh=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+7,n.rounding=1,L(r.sinh(),r.cosh(),n.precision=t,n.rounding=e)):new n(r.s)},B.inverseCosine=B.acos=function(){var t,e=this,r=e.constructor,n=e.abs().cmp(1),i=r.precision,a=r.rounding;return-1!==n?0===n?e.isNeg()?U(r,i,a):new r(0):new r(NaN):e.isZero()?U(r,i+4,a).times(.5):(r.precision=i+6,r.rounding=1,e=e.asin(),t=U(r,i+4,a).times(.5),r.precision=i,r.rounding=a,t.minus(e))},B.inverseHyperbolicCosine=B.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,m=!1,r=r.times(r).minus(1).sqrt().plus(r),m=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},B.inverseHyperbolicSine=B.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,m=!1,r=r.times(r).plus(1).sqrt().plus(r),m=!0,n.precision=t,n.rounding=e,r.ln())},B.inverseHyperbolicTangent=B.atanh=function(){var t,e,r,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=a.precision,e=a.rounding,n=i.sd(),Math.max(n,t)<2*-i.e-1?N(new a(i),t,e,!0):(a.precision=r=n-i.e,i=L(i.plus(1),new a(1).minus(i),r+t,1),a.precision=t+4,a.rounding=1,i=i.ln(),a.precision=t,a.rounding=e,i.times(.5))):new a(NaN)},B.inverseSine=B.asin=function(){var t,e,r,n,i=this,a=i.constructor;return i.isZero()?new a(i):(e=i.abs().cmp(1),r=a.precision,n=a.rounding,-1!==e?0===e?((t=U(a,r+4,n).times(.5)).s=i.s,t):new a(NaN):(a.precision=r+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,i.times(2)))},B.inverseTangent=B.atan=function(){var t,e,r,n,i,a,o,s,u,f=this,c=f.constructor,h=c.precision,l=c.rounding;if(f.isFinite()){if(f.isZero())return new c(f);if(f.abs().eq(1)&&h+4<=C)return(o=U(c,h+4,l).times(.25)).s=f.s,o}else{if(!f.s)return new c(NaN);if(h+4<=C)return(o=U(c,h+4,l).times(.5)).s=f.s,o}for(c.precision=s=h+10,c.rounding=1,t=r=Math.min(28,s/M+2|0);t;--t)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(m=!1,e=Math.ceil(s/M),n=1,u=f.times(f),o=new c(f),i=f;-1!==t;)if(i=i.times(u),a=o.minus(i.div(n+=2)),i=i.times(u),void 0!==(o=a.plus(i.div(n+=2))).d[e])for(t=e;o.d[t]===a.d[t]&&t--;);return r&&(o=o.times(2<<r-1)),m=!0,N(o,c.precision=h,c.rounding=l,!0)},B.isFinite=function(){return!!this.d},B.isInteger=B.isInt=function(){return!!this.d&&_(this.e/M)>this.d.length-2},B.isNaN=function(){return!this.s},B.isNegative=B.isNeg=function(){return this.s<0},B.isPositive=B.isPos=function(){return this.s>0},B.isZero=function(){return!!this.d&&0===this.d[0]},B.lessThan=B.lt=function(t){return this.cmp(t)<0},B.lessThanOrEqualTo=B.lte=function(t){return this.cmp(t)<1},B.logarithm=B.log=function(t){var e,r,n,i,a,o,s,u,f=this,c=f.constructor,h=c.precision,l=c.rounding;if(null==t)t=new c(10),e=!0;else{if(r=(t=new c(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new c(NaN);e=t.eq(10)}if(r=f.d,f.s<0||!r||!r[0]||f.eq(1))return new c(r&&!r[0]?-1/0:1!=f.s?NaN:r?0:1/0);if(e)if(r.length>1)a=!0;else{for(i=r[0];i%10==0;)i/=10;a=1!==i}if(m=!1,o=V(f,s=h+5),n=e?z(c,s+10):V(t,s),T((u=L(o,n,s,1)).d,i=h,l))do{if(o=V(f,s+=10),n=e?z(c,s+10):V(t,s),u=L(o,n,s,1),!a){+O(u.d).slice(i+1,i+15)+1==1e14&&(u=N(u,h+1,0));break}}while(T(u.d,i+=10,l));return m=!0,N(u,h,l)},B.minus=B.sub=function(t){var e,r,n,i,a,o,s,u,f,c,h,l,p=this,d=p.constructor;if(t=new d(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new d(t.d||p.s!==t.s?p:NaN):t=new d(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(f=p.d,l=t.d,s=d.precision,u=d.rounding,!f[0]||!l[0]){if(l[0])t.s=-t.s;else{if(!f[0])return new d(3===u?-0:0);t=new d(p)}return m?N(t,s,u):t}if(r=_(t.e/M),c=_(p.e/M),f=f.slice(),a=c-r){for((h=a<0)?(e=f,a=-a,o=l.length):(e=l,r=c,o=f.length),a>(n=Math.max(Math.ceil(s/M),o)+2)&&(a=n,e.length=1),e.reverse(),n=a;n--;)e.push(0);e.reverse()}else{for((h=(n=f.length)<(o=l.length))&&(o=n),n=0;n<o;n++)if(f[n]!=l[n]){h=f[n]<l[n];break}a=0}for(h&&(e=f,f=l,l=e,t.s=-t.s),o=f.length,n=l.length-o;n>0;--n)f[o++]=0;for(n=l.length;n>a;){if(f[--n]<l[n]){for(i=n;i&&0===f[--i];)f[i]=S-1;--f[i],f[n]+=S}f[n]-=l[n]}for(;0===f[--o];)f.pop();for(;0===f[0];f.shift())--r;return f[0]?(t.d=f,t.e=R(f,r),m?N(t,s,u):t):new d(3===u?-0:0)},B.modulo=B.mod=function(t){var e,r=this,n=r.constructor;return t=new n(t),!r.d||!t.s||t.d&&!t.d[0]?new n(NaN):!t.d||r.d&&!r.d[0]?N(new n(r),n.precision,n.rounding):(m=!1,9==n.modulo?(e=L(r,t.abs(),0,3,1)).s*=t.s:e=L(r,t,0,n.modulo,1),e=e.times(t),m=!0,r.minus(e))},B.naturalExponential=B.exp=function(){return Y(this)},B.naturalLogarithm=B.ln=function(){return V(this)},B.negated=B.neg=function(){var t=new this.constructor(this);return t.s=-t.s,N(t)},B.plus=B.add=function(t){var e,r,n,i,a,o,s,u,f,c,h=this,l=h.constructor;if(t=new l(t),!h.d||!t.d)return h.s&&t.s?h.d||(t=new l(t.d||h.s===t.s?h:NaN)):t=new l(NaN),t;if(h.s!=t.s)return t.s=-t.s,h.minus(t);if(f=h.d,c=t.d,s=l.precision,u=l.rounding,!f[0]||!c[0])return c[0]||(t=new l(h)),m?N(t,s,u):t;if(a=_(h.e/M),n=_(t.e/M),f=f.slice(),i=a-n){for(i<0?(r=f,i=-i,o=c.length):(r=c,n=a,o=f.length),i>(o=(a=Math.ceil(s/M))>o?a+1:o+1)&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((o=f.length)-(i=c.length)<0&&(i=o,r=c,c=f,f=r),e=0;i;)e=(f[--i]=f[i]+c[i]+e)/S|0,f[i]%=S;for(e&&(f.unshift(e),++n),o=f.length;0==f[--o];)f.pop();return t.d=f,t.e=R(f,n),m?N(t,s,u):t},B.precision=B.sd=function(t){var e,r=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(b+t);return r.d?(e=G(r.d),t&&r.e+1>e&&(e=r.e+1)):e=NaN,e},B.round=function(){var t=this,e=t.constructor;return N(new e(t),t.e+1,e.rounding)},B.sine=B.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+M,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return e.isZero()?e:Q(t,2,e,e);r=(r=1.4*Math.sqrt(n))>16?16:0|r,e=e.times(1/$(5,r)),e=Q(t,2,e,e);for(var i,a=new t(5),o=new t(16),s=new t(20);r--;)i=e.times(e),e=e.times(a.plus(i.times(o.times(i).minus(s))));return e}(n,tt(n,r)),n.precision=t,n.rounding=e,N(u>2?r.neg():r,t,e,!0)):new n(NaN)},B.squareRoot=B.sqrt=function(){var t,e,r,n,i,a,o=this,s=o.d,u=o.e,f=o.s,c=o.constructor;if(1!==f||!s||!s[0])return new c(!f||f<0&&(!s||s[0])?NaN:s?o:1/0);for(m=!1,0==(f=Math.sqrt(+o))||f==1/0?(((e=O(s)).length+u)%2==0&&(e+=\"0\"),f=Math.sqrt(e),u=_((u+1)/2)-(u<0||u%2),n=new c(e=f==1/0?\"5e\"+u:(e=f.toExponential()).slice(0,e.indexOf(\"e\")+1)+u)):n=new c(f.toString()),r=(u=c.precision)+3;;)if(n=(a=n).plus(L(o,a,r+2,1)).times(.5),O(a.d).slice(0,r)===(e=O(n.d)).slice(0,r)){if(\"9999\"!=(e=e.slice(r-3,r+1))&&(i||\"4999\"!=e)){+e&&(+e.slice(1)||\"5\"!=e.charAt(0))||(N(n,u+1,1),t=!n.times(n).eq(o));break}if(!i&&(N(a,u+1,0),a.times(a).eq(o))){n=a;break}r+=4,i=1}return m=!0,N(n,u,c.rounding,t)},B.tangent=B.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=L(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,N(2==u||4==u?r.neg():r,t,e,!0)):new n(NaN)},B.times=B.mul=function(t){var e,r,n,i,a,o,s,u,f,c=this,h=c.constructor,l=c.d,p=(t=new h(t)).d;if(t.s*=c.s,!(l&&l[0]&&p&&p[0]))return new h(!t.s||l&&!l[0]&&!p||p&&!p[0]&&!l?NaN:l&&p?0*t.s:t.s/0);for(r=_(c.e/M)+_(t.e/M),(u=l.length)<(f=p.length)&&(a=l,l=p,p=a,o=u,u=f,f=o),a=[],n=o=u+f;n--;)a.push(0);for(n=f;--n>=0;){for(e=0,i=u+n;i>n;)s=a[i]+p[n]*l[i-n-1]+e,a[i--]=s%S|0,e=s/S|0;a[i]=(a[i]+e)%S|0}for(;!a[--o];)a.pop();return e?++r:a.shift(),t.d=a,t.e=R(a,r),m?N(t,h.precision,h.rounding):t},B.toBinary=function(t,e){return et(this,2,t,e)},B.toDecimalPlaces=B.toDP=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(I(t,0,c),void 0===e?e=n.rounding:I(e,0,8),N(r,t+r.e+1,e))},B.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=j(n,!0):(I(t,0,c),void 0===e?e=i.rounding:I(e,0,8),r=j(n=N(new i(n),t+1,e),!0,t+1)),n.isNeg()&&!n.isZero()?\"-\"+r:r},B.toFixed=function(t,e){var r,n,i=this,a=i.constructor;return void 0===t?r=j(i):(I(t,0,c),void 0===e?e=a.rounding:I(e,0,8),r=j(n=N(new a(i),t+i.e+1,e),!1,t+n.e+1)),i.isNeg()&&!i.isZero()?\"-\"+r:r},B.toFraction=function(t){var e,r,n,i,a,o,s,u,f,c,h,l,p=this,d=p.d,y=p.constructor;if(!d)return new y(p);if(f=r=new y(1),n=u=new y(0),o=(a=(e=new y(n)).e=G(d)-p.e-1)%M,e.d[0]=x(10,o<0?M+o:o),null==t)t=a>0?e:f;else{if(!(s=new y(t)).isInt()||s.lt(f))throw Error(b+s);t=s.gt(e)?a>0?e:f:s}for(m=!1,s=new y(O(d)),c=y.precision,y.precision=a=d.length*M*2;h=L(s,e,0,1,1),1!=(i=r.plus(h.times(n))).cmp(t);)r=n,n=i,i=f,f=u.plus(h.times(i)),u=i,i=e,e=s.minus(h.times(i)),s=i;return i=L(t.minus(r),n,0,1,1),u=u.plus(i.times(f)),r=r.plus(i.times(n)),u.s=f.s=p.s,l=L(f,n,a,1).minus(p).abs().cmp(L(u,r,a,1).minus(p).abs())<1?[f,n]:[u,r],y.precision=c,m=!0,l},B.toHexadecimal=B.toHex=function(t,e){return et(this,16,t,e)},B.toNearest=function(t,e){var r=this,n=r.constructor;if(r=new n(r),null==t){if(!r.d)return r;t=new n(1),e=n.rounding}else{if(t=new n(t),void 0===e?e=n.rounding:I(e,0,8),!r.d)return t.s?r:t;if(!t.d)return t.s&&(t.s=r.s),t}return t.d[0]?(m=!1,r=L(r,t,0,e,1).times(t),m=!0,N(r)):(t.s=r.s,r=t),r},B.toNumber=function(){return+this},B.toOctal=function(t,e){return et(this,8,t,e)},B.toPower=B.pow=function(t){var e,r,n,i,a,o,s=this,u=s.constructor,f=+(t=new u(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new u(x(+s,f));if((s=new u(s)).eq(1))return s;if(n=u.precision,a=u.rounding,t.eq(1))return N(s,n,a);if((e=_(t.e/M))>=t.d.length-1&&(r=f<0?-f:f)<=9007199254740991)return i=Z(u,s,r,n),t.s<0?new u(1).div(i):N(i,n,a);if((o=s.s)<0){if(e<t.d.length-1)return new u(NaN);if(1&t.d[e]||(o=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=o,s}return(e=0!=(r=x(+s,f))&&isFinite(r)?new u(r+\"\").e:_(f*(Math.log(\"0.\"+O(s.d))/Math.LN10+s.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?o/0:0):(m=!1,u.rounding=s.s=1,r=Math.min(12,(e+\"\").length),(i=Y(t.times(V(s,n+r)),n)).d&&T((i=N(i,n+5,1)).d,n,a)&&(e=n+10,+O((i=N(Y(t.times(V(s,e+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=N(i,n+1,0))),i.s=o,m=!0,u.rounding=a,N(i,n,a))},B.toPrecision=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=j(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(I(t,1,c),void 0===e?e=i.rounding:I(e,0,8),r=j(n=N(new i(n),t,e),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?\"-\"+r:r},B.toSignificantDigits=B.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(I(t,1,c),void 0===e?e=r.rounding:I(e,0,8)),N(new r(this),t,e)},B.toString=function(){var t=this,e=t.constructor,r=j(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?\"-\"+r:r},B.truncated=B.trunc=function(){return N(new this.constructor(this),this.e+1,1)},B.valueOf=B.toJSON=function(){var t=this,e=t.constructor,r=j(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?\"-\"+r:r};var L=function(){function t(t,e,r){var n,i=0,a=t.length;for(t=t.slice();a--;)n=t[a]*e+i,t[a]=n%r|0,i=n/r|0;return i&&t.unshift(i),t}function e(t,e,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(t[i]!=e[i]){a=t[i]>e[i]?1:-1;break}return a}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,a,o,u,f){var c,h,l,p,d,m,y,b,g,v,w,x,E,D,k,A,F,C,B,O,I=n.constructor,T=n.s==i.s?1:-1,P=n.d,L=i.d;if(!(P&&P[0]&&L&&L[0]))return new I(n.s&&i.s&&(P?!L||P[0]!=L[0]:L)?P&&0==P[0]||!L?0*T:T/0:NaN);for(f?(d=1,h=n.e-i.e):(f=S,d=M,h=_(n.e/d)-_(i.e/d)),B=L.length,F=P.length,v=(g=new I(T)).d=[],l=0;L[l]==(P[l]||0);l++);if(L[l]>(P[l]||0)&&h--,null==a?(D=a=I.precision,o=I.rounding):D=u?a+(n.e-i.e)+1:a,D<0)v.push(1),m=!0;else{if(D=D/d+2|0,l=0,1==B){for(p=0,L=L[0],D++;(l<F||p)&&D--;l++)k=p*f+(P[l]||0),v[l]=k/L|0,p=k%L|0;m=p||l<F}else{for((p=f/(L[0]+1)|0)>1&&(L=t(L,p,f),P=t(P,p,f),B=L.length,F=P.length),A=B,x=(w=P.slice(0,B)).length;x<B;)w[x++]=0;(O=L.slice()).unshift(0),C=L[0],L[1]>=f/2&&++C;do{p=0,(c=e(L,w,B,x))<0?(E=w[0],B!=x&&(E=E*f+(w[1]||0)),(p=E/C|0)>1?(p>=f&&(p=f-1),1==(c=e(y=t(L,p,f),w,b=y.length,x=w.length))&&(p--,r(y,B<b?O:L,b,f))):(0==p&&(c=p=1),y=L.slice()),(b=y.length)<x&&y.unshift(0),r(w,y,x,f),-1==c&&(c=e(L,w,B,x=w.length))<1&&(p++,r(w,B<x?O:L,x,f)),x=w.length):0===c&&(p++,w=[0]),v[l++]=p,c&&w[0]?w[x++]=P[A]||0:(w=[P[A]],x=1)}while((A++<F||void 0!==w[0])&&D--);m=void 0!==w[0]}v[0]||v.shift()}if(1==d)g.e=h,s=m;else{for(l=1,p=v[0];p>=10;p/=10)l++;g.e=l+h*d-1,N(g,u?a+g.e+1:a,o,m)}return g}}();function N(t,e,r,n){var i,a,o,s,u,f,c,h,l,p=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(i=1,s=h[0];s>=10;s/=10)i++;if((a=e-i)<0)a+=M,o=e,u=(c=h[l=0])/x(10,i-o-1)%10|0;else if((l=Math.ceil((a+1)/M))>=(s=h.length)){if(!n)break t;for(;s++<=l;)h.push(0);c=u=0,i=1,o=(a%=M)-M+1}else{for(c=s=h[l],i=1;s>=10;s/=10)i++;u=(o=(a%=M)-M+i)<0?0:c/x(10,i-o-1)%10|0}if(n=n||e<0||void 0!==h[l+1]||(o<0?c:c%x(10,i-o-1)),f=r<4?(u||n)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(a>0?o>0?c/x(10,i-o):0:h[l-1])%10&1||r==(t.s<0?8:7)),e<1||!h[0])return h.length=0,f?(e-=t.e+1,h[0]=x(10,(M-e%M)%M),t.e=-e||0):h[0]=t.e=0,t;if(0==a?(h.length=l,s=1,l--):(h.length=l+1,s=x(10,M-a),h[l]=o>0?(c/x(10,i-o)%x(10,o)|0)*s:0),f)for(;;){if(0==l){for(a=1,o=h[0];o>=10;o/=10)a++;for(o=h[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(t.e++,h[0]==S&&(h[0]=1));break}if(h[l]+=s,h[l]!=S)break;h[l--]=0,s=1}for(a=h.length;0===h[--a];)h.pop()}return m&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function j(t,e,r){if(!t.isFinite())return X(t);var n,i=t.e,a=O(t.d),o=a.length;return e?(r&&(n=r-o)>0?a=a.charAt(0)+\".\"+a.slice(1)+H(n):o>1&&(a=a.charAt(0)+\".\"+a.slice(1)),a=a+(t.e<0?\"e\":\"e+\")+t.e):i<0?(a=\"0.\"+H(-i-1)+a,r&&(n=r-o)>0&&(a+=H(n))):i>=o?(a+=H(i+1-o),r&&(n=r-i-1)>0&&(a=a+\".\"+H(n))):((n=i+1)<o&&(a=a.slice(0,n)+\".\"+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+=\".\"),a+=H(n))),a}function R(t,e){var r=t[0];for(e*=M;r>=10;r/=10)e++;return e}function z(t,e,r){if(e>F)throw m=!0,r&&(t.precision=r),Error(g);return N(new t(l),e,1,!0)}function U(t,e,r){if(e>C)throw Error(g);return N(new t(p),e,r,!0)}function G(t){var e=t.length-1,r=e*M+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];e>=10;e/=10)r++}return r}function H(t){for(var e=\"\";t--;)e+=\"0\";return e}function Z(t,e,r,n){var i,a=new t(1),o=Math.ceil(n/M+4);for(m=!1;;){if(r%2&&rt((a=a.times(e)).d,o)&&(i=!0),0===(r=_(r/2))){r=a.d.length-1,i&&0===a.d[r]&&++a.d[r];break}rt((e=e.times(e)).d,o)}return m=!0,a}function q(t){return 1&t.d[t.d.length-1]}function W(t,e,r){for(var n,i=new t(e[0]),a=0;++a<e.length;){if(!(n=new t(e[a])).s){i=n;break}i[r](n)&&(i=n)}return i}function Y(t,e){var r,n,i,a,o,s,u,f=0,c=0,h=0,l=t.constructor,p=l.rounding,d=l.precision;if(!t.d||!t.d[0]||t.e>17)return new l(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(m=!1,u=d):u=e,s=new l(.03125);t.e>-2;)t=t.times(s),h+=5;for(u+=n=Math.log(x(2,h))/Math.LN10*2+5|0,r=a=o=new l(1),l.precision=u;;){if(a=N(a.times(t),u,1),r=r.times(++c),O((s=o.plus(L(a,r,u,1))).d).slice(0,u)===O(o.d).slice(0,u)){for(i=h;i--;)o=N(o.times(o),u,1);if(null!=e)return l.precision=d,o;if(!(f<3&&T(o.d,u-n,p,f)))return N(o,l.precision=d,p,m=!0);l.precision=u+=10,r=a=s=new l(1),c=0,f++}o=s}}function V(t,e){var r,n,i,a,o,s,u,f,c,h,l,p=1,d=t,y=d.d,b=d.constructor,g=b.rounding,v=b.precision;if(d.s<0||!y||!y[0]||!d.e&&1==y[0]&&1==y.length)return new b(y&&!y[0]?-1/0:1!=d.s?NaN:y?0:d);if(null==e?(m=!1,c=v):c=e,b.precision=c+=10,n=(r=O(y)).charAt(0),!(Math.abs(a=d.e)<15e14))return f=z(b,c+2,v).times(a+\"\"),d=V(new b(n+\".\"+r.slice(1)),c-10).plus(f),b.precision=v,null==e?N(d,v,g,m=!0):d;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=O((d=d.times(t)).d)).charAt(0),p++;for(a=d.e,n>1?(d=new b(\"0.\"+r),a++):d=new b(n+\".\"+r.slice(1)),h=d,u=o=d=L(d.minus(1),d.plus(1),c,1),l=N(d.times(d),c,1),i=3;;){if(o=N(o.times(l),c,1),O((f=u.plus(L(o,new b(i),c,1))).d).slice(0,c)===O(u.d).slice(0,c)){if(u=u.times(2),0!==a&&(u=u.plus(z(b,c+2,v).times(a+\"\"))),u=L(u,new b(p),c,1),null!=e)return b.precision=v,u;if(!T(u.d,c-10,g,s))return N(u,b.precision=v,g,m=!0);b.precision=c+=10,f=o=d=L(h.minus(1),h.plus(1),c,1),l=N(d.times(d),c,1),i=s=1}u=f,i+=2}}function X(t){return String(t.s*t.s/0)}function J(t,e){var r,n,i;for((r=e.indexOf(\".\"))>-1&&(e=e.replace(\".\",\"\")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(n,i)){if(i-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%M,r<0&&(n+=M),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=M;n<i;)t.d.push(+e.slice(n,n+=M));e=e.slice(n),n=M-e.length}else n-=i;for(;n--;)e+=\"0\";t.d.push(+e),m&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function K(t,e){var r,n,i,a,s,u,f,c,h;if(e.indexOf(\"_\")>-1){if(e=e.replace(/(\\d)_(?=\\d)/g,\"$1\"),A.test(e))return J(t,e)}else if(\"Infinity\"===e||\"NaN\"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(D.test(e))r=16,e=e.toLowerCase();else if(E.test(e))r=2;else{if(!k.test(e))throw Error(b+e);r=8}for((a=e.search(/p/i))>0?(f=+e.slice(a+1),e=e.substring(2,a)):e=e.slice(2),s=(a=e.indexOf(\".\"))>=0,n=t.constructor,s&&(a=(u=(e=e.replace(\".\",\"\")).length)-a,i=Z(n,new n(r),a,2*a)),a=h=(c=P(e,r,S)).length-1;0===c[a];--a)c.pop();return a<0?new n(0*t.s):(t.e=R(c,h),t.d=c,m=!1,s&&(t=L(t,i,4*u)),f&&(t=t.times(Math.abs(f)<54?x(2,f):o.pow(2,f))),m=!0,t)}function Q(t,e,r,n,i){var a,o,s,u,f=t.precision,c=Math.ceil(f/M);for(m=!1,u=r.times(r),s=new t(n);;){if(o=L(s.times(u),new t(e++*e++),f,1),s=i?n.plus(o):n.minus(o),n=L(o.times(u),new t(e++*e++),f,1),void 0!==(o=s.plus(n)).d[c]){for(a=c;o.d[a]===s.d[a]&&a--;);if(-1==a)break}a=s,s=n,n=o,o=a}return m=!0,o.d.length=c+1,o}function $(t,e){for(var r=t;--e;)r*=t;return r}function tt(t,e){var r,n=e.s<0,i=U(t,t.precision,1),a=i.times(.5);if((e=e.abs()).lte(a))return u=n?4:1,e;if((r=e.divToInt(i)).isZero())u=n?3:2;else{if((e=e.minus(r.times(i))).lte(a))return u=q(r)?n?2:3:n?4:1,e;u=q(r)?n?1:4:n?3:2}return e.minus(i).abs()}function et(t,e,r,n){var i,a,o,u,f,l,p,d,m,y=t.constructor,b=void 0!==r;if(b?(I(r,1,c),void 0===n?n=y.rounding:I(n,0,8)):(r=y.precision,n=y.rounding),t.isFinite()){for(b?(i=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):i=e,(o=(p=j(t)).indexOf(\".\"))>=0&&(p=p.replace(\".\",\"\"),(m=new y(1)).e=p.length-o,m.d=P(j(m),10,i),m.e=m.d.length),a=f=(d=P(p,10,i)).length;0==d[--f];)d.pop();if(d[0]){if(o<0?a--:((t=new y(t)).d=d,t.e=a,d=(t=L(t,m,r,n,0,i)).d,a=t.e,l=s),o=d[r],u=i/2,l=l||void 0!==d[r+1],l=n<4?(void 0!==o||l)&&(0===n||n===(t.s<0?3:2)):o>u||o===u&&(4===n||l||6===n&&1&d[r-1]||n===(t.s<0?8:7)),d.length=r,l)for(;++d[--r]>i-1;)d[r]=0,r||(++a,d.unshift(1));for(f=d.length;!d[f-1];--f);for(o=0,p=\"\";o<f;o++)p+=h.charAt(d[o]);if(b){if(f>1)if(16==e||8==e){for(o=16==e?4:3,--f;f%o;f++)p+=\"0\";for(f=(d=P(p,i,e)).length;!d[f-1];--f);for(o=1,p=\"1.\";o<f;o++)p+=h.charAt(d[o])}else p=p.charAt(0)+\".\"+p.slice(1);p=p+(a<0?\"p\":\"p+\")+a}else if(a<0){for(;++a;)p=\"0\"+p;p=\"0.\"+p}else if(++a>f)for(a-=f;a--;)p+=\"0\";else a<f&&(p=p.slice(0,a)+\".\"+p.slice(a))}else p=b?\"0p+0\":\"0\";p=(16==e?\"0x\":2==e?\"0b\":8==e?\"0o\":\"\")+p}else p=X(t);return t.s<0?\"-\"+p:p}function rt(t,e){if(t.length>e)return t.length=e,!0}function nt(t){return new this(t).abs()}function it(t){return new this(t).acos()}function at(t){return new this(t).acosh()}function ot(t,e){return new this(t).plus(e)}function st(t){return new this(t).asin()}function ut(t){return new this(t).asinh()}function ft(t){return new this(t).atan()}function ct(t){return new this(t).atanh()}function ht(t,e){t=new this(t),e=new this(e);var r,n=this.precision,i=this.rounding,a=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?U(this,n,i):new this(0)).s=t.s:!t.d||e.isZero()?(r=U(this,a,1).times(.5)).s=t.s:e.s<0?(this.precision=a,this.rounding=1,r=this.atan(L(t,e,a,1)),e=U(this,a,1),this.precision=n,this.rounding=i,r=t.s<0?r.minus(e):r.plus(e)):r=this.atan(L(t,e,a,1)):(r=U(this,a,1).times(e.s>0?.25:.75)).s=t.s:r=new this(NaN),r}function lt(t){return new this(t).cbrt()}function pt(t){return N(t=new this(t),t.e+1,2)}function dt(t,e,r){return new this(t).clamp(e,r)}function mt(t){if(!t||\"object\"!==i(t))throw Error(y+\"Object expected\");var e,r,n,a=!0===t.defaults,o=[\"precision\",1,c,\"rounding\",0,8,\"toExpNeg\",-f,0,\"toExpPos\",0,f,\"maxE\",0,f,\"minE\",-f,0,\"modulo\",0,9];for(e=0;e<o.length;e+=3)if(r=o[e],a&&(this[r]=d[r]),void 0!==(n=t[r])){if(!(_(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(b+r+\": \"+n);this[r]=n}if(r=\"crypto\",a&&(this[r]=d[r]),void 0!==(n=t[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(b+r+\": \"+n);if(n){if(\"undefined\"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(v);this[r]=!0}else this[r]=!1}return this}function yt(t){return new this(t).cos()}function bt(t){return new this(t).cosh()}function gt(t,e){return new this(t).div(e)}function vt(t){return new this(t).exp()}function wt(t){return N(t=new this(t),t.e+1,3)}function _t(){var t,e,r=new this(0);for(m=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return m=!0,new this(1/0);r=e}return m=!0,r.sqrt()}function xt(t){return t instanceof o||t&&t.toStringTag===w||!1}function Et(t){return new this(t).ln()}function Dt(t,e){return new this(t).log(e)}function kt(t){return new this(t).log(2)}function At(t){return new this(t).log(10)}function St(){return W(this,arguments,\"lt\")}function Mt(){return W(this,arguments,\"gt\")}function Ft(t,e){return new this(t).mod(e)}function Ct(t,e){return new this(t).mul(e)}function Bt(t,e){return new this(t).pow(e)}function Ot(t){var e,r,n,i,a=0,o=new this(1),s=[];if(void 0===t?t=this.precision:I(t,1,c),n=Math.ceil(t/M),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));a<n;)(i=e[a])>=429e7?e[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else{if(!crypto.randomBytes)throw Error(v);for(e=crypto.randomBytes(n*=4);a<n;)(i=e[a]+(e[a+1]<<8)+(e[a+2]<<16)+((127&e[a+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,a):(s.push(i%1e7),a+=4);a=n/4}else for(;a<n;)s[a++]=1e7*Math.random()|0;for(n=s[--a],t%=M,n&&t&&(i=x(10,M-t),s[a]=(n/i|0)*i);0===s[a];a--)s.pop();if(a<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=M)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<M&&(r-=M-n)}return o.e=r,o.d=s,o}function It(t){return N(t=new this(t),t.e+1,this.rounding)}function Tt(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Pt(t){return new this(t).sin()}function Lt(t){return new this(t).sinh()}function Nt(t){return new this(t).sqrt()}function jt(t,e){return new this(t).sub(e)}function Rt(){var t=0,e=arguments,r=new this(e[t]);for(m=!1;r.s&&++t<e.length;)r=r.plus(e[t]);return m=!0,N(r,this.precision,this.rounding)}function zt(t){return new this(t).tan()}function Ut(t){return new this(t).tanh()}function Gt(t){return N(t=new this(t),t.e+1,1)}o=function t(e){var r,n,a;function o(t){var e,r,n,a=this;if(!(a instanceof o))return new o(t);if(a.constructor=o,xt(t))return a.s=t.s,void(m?!t.d||t.e>o.maxE?(a.e=NaN,a.d=null):t.e<o.minE?(a.e=0,a.d=[0]):(a.e=t.e,a.d=t.d.slice()):(a.e=t.e,a.d=t.d?t.d.slice():t.d));if(\"number\"===(n=i(t))){if(0===t)return a.s=1/t<0?-1:1,a.e=0,void(a.d=[0]);if(t<0?(t=-t,a.s=-1):a.s=1,t===~~t&&t<1e7){for(e=0,r=t;r>=10;r/=10)e++;return void(m?e>o.maxE?(a.e=NaN,a.d=null):e<o.minE?(a.e=0,a.d=[0]):(a.e=e,a.d=[t]):(a.e=e,a.d=[t]))}return 0*t!=0?(t||(a.s=NaN),a.e=NaN,void(a.d=null)):J(a,t.toString())}if(\"string\"!==n)throw Error(b+t);return 45===(r=t.charCodeAt(0))?(t=t.slice(1),a.s=-1):(43===r&&(t=t.slice(1)),a.s=1),A.test(t)?J(a,t):K(a,t)}if(o.prototype=B,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=mt,o.clone=t,o.isDecimal=xt,o.abs=nt,o.acos=it,o.acosh=at,o.add=ot,o.asin=st,o.asinh=ut,o.atan=ft,o.atanh=ct,o.atan2=ht,o.cbrt=lt,o.ceil=pt,o.clamp=dt,o.cos=yt,o.cosh=bt,o.div=gt,o.exp=vt,o.floor=wt,o.hypot=_t,o.ln=Et,o.log=Dt,o.log10=At,o.log2=kt,o.max=St,o.min=Mt,o.mod=Ft,o.mul=Ct,o.pow=Bt,o.random=Ot,o.round=It,o.sign=Tt,o.sin=Pt,o.sinh=Lt,o.sqrt=Nt,o.sub=jt,o.sum=Rt,o.tan=zt,o.tanh=Ut,o.trunc=Gt,void 0===e&&(e={}),e&&!0!==e.defaults)for(a=[\"precision\",\"rounding\",\"toExpNeg\",\"toExpPos\",\"maxE\",\"minE\",\"modulo\",\"crypto\"],r=0;r<a.length;)e.hasOwnProperty(n=a[r++])||(e[n]=this[n]);return o.config(e),o}(d),o.prototype.constructor=o,o.default=o.Decimal=o,l=new o(l),p=new o(p),void 0===(n=function(){return o}.call(e,r,e,t))||(t.exports=n)}()},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function t(e,n){\"use strict\";var i,a,o=/(^([+\\-]?(?:0|[1-9]\\d*)(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)?$|^0x[0-9a-f]+$|\\d+)/gi,s=/(^[ ]*|[ ]*$)/g,u=/(^([\\w ]+,?[\\w ]+)?[\\w ]+,?[\\w ]+\\d+:\\d+(:\\d+)?[\\w ]?|^\\d{1,4}[\\/\\-]\\d{1,4}[\\/\\-]\\d{1,4}|^\\w+, \\w+ \\d+, \\d{4})/,f=/^0x[0-9a-f]+$/i,c=/^0/,h=function(e){return t.insensitive&&(\"\"+e).toLowerCase()||\"\"+e},l=h(e).replace(s,\"\")||\"\",p=h(n).replace(s,\"\")||\"\",d=l.replace(o,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),m=p.replace(o,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),y=parseInt(l.match(f),16)||1!==d.length&&l.match(u)&&Date.parse(l),b=parseInt(p.match(f),16)||y&&p.match(u)&&Date.parse(p)||null;if(b){if(y<b)return-1;if(y>b)return 1}for(var g=0,v=Math.max(d.length,m.length);g<v;g++){if(i=!(d[g]||\"\").match(c)&&parseFloat(d[g])||d[g]||0,a=!(m[g]||\"\").match(c)&&parseFloat(m[g])||m[g]||0,isNaN(i)!==isNaN(a))return isNaN(i)?1:-1;if(r(i)!==r(a)&&(i+=\"\",a+=\"\"),i<a)return-1;if(i>a)return 1}return 0}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){\"use strict\";(function(t,n){r.d(e,\"a\",(function(){return W})),r.d(e,\"b\",(function(){return Y})),r.d(e,\"d\",(function(){return X}));var i=r(11),a=r.n(i),o=r(6),s=r.n(o),u=r(31),f=r.n(u),c=r(0),h=r(34),l=r.n(h),p=r(101),d=r.n(p),m=r(32),y=r.n(m),b=r(35),g=r(102),v=r(116),w=r(33),_=r(19),x=r(45),E=r(20);function D(t,e,r){return(e=M(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,a,o,s=[],u=!0,f=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){f=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(f)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return A(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function S(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,M(n.key),n)}}function M(t){var e=function(t,e){if(\"object\"!=I(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=I(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==I(e)?e:e+\"\"}function F(t,e){if(e&&(\"object\"===I(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(C=function(){return!!t})()}function B(t){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(t)}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}function I(t){return I=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},I(t)}function T(t,e,r){return(e=function(t){var e=function(t,e){if(\"object\"!==I(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!==I(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"===I(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}for(var P=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_\",L=[NaN,NaN],N=2;N<65;N++){var j=l()(l.a.BIN,P.slice(0,N))(new Array(65).join(\"1\"));L.push(j.length)}function R(){}function z(t){return Object.prototype.toString.call(t).toLowerCase().indexOf(\"arraybuffer\")>-1}function U(e){for(var r=t.alloc(e.byteLength),n=new Uint8Array(e),i=0;i<r.length;++i)r[i]=n[i];return r}function G(e,r){Object(g.a)(e,(function(n,i){return n?r(n):\"object\"===I(i)&&t.isBuffer(i)?r(null,i):\"object\"===I(i)&&z(i)?r(null,U(i)):new Error(\"Could not load Buffer from <\".concat(e.url,\">\"))}))}var H,Z={data:null,width:null,height:null},q=function(e){function r(){var e,n,i,o;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,r);for(var s=arguments.length,u=new Array(s),f=0;f<s;f++)u[f]=arguments[f];n=this,i=B(i=r),T(e=F(n,C()?Reflect.construct(i,o||[],B(n).constructor):i.apply(n,o)),\"bitmap\",Z),T(e,\"_background\",0),T(e,\"_originalMime\",r.MIME_PNG),T(e,\"_exif\",null),T(e,\"_rgba\",!0),T(e,\"writeAsync\",(function(t){return Object(w.a)(e.write,e,t)})),T(e,\"getBase64Async\",(function(t){return Object(w.a)(e.getBase64,e,t)})),T(e,\"getBuffer\",x.a),T(e,\"getBufferAsync\",x.b),T(e,\"getPixelColour\",e.getPixelColor),T(e,\"setPixelColour\",e.setPixelColor);var h,l=e,p=R;function d(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];(n||{}).methodName=\"constructor\",setTimeout((function(){var t;n&&p===R?l.emitError(\"constructor\",n):n||l.emitMulti(\"constructor\",\"initialized\"),(t=p).call.apply(t,[l].concat(e))}),1)}if(z(u[0])&&(u[0]=U(u[0])),\"number\"==typeof u[0]&&\"number\"==typeof u[1]||parseInt(u[0],10)&&parseInt(u[1],10)){var m=parseInt(u[0],10),y=parseInt(u[1],10);if(p=u[2],\"number\"==typeof u[2]&&(e._background=u[2],p=u[3]),\"string\"==typeof u[2]&&(e._background=r.cssColorToHex(u[2]),p=u[3]),void 0===p&&(p=R),\"function\"!=typeof p)return F(e,c.d.call(e,\"cb must be a function\",d));e.bitmap={data:t.alloc(m*y*4),width:m,height:y};for(var b=0;b<e.bitmap.data.length;b+=4)e.bitmap.data.writeUInt32BE(e._background,b);d(null,e)}else if(\"object\"===I(u[0])&&u[0].url){if(\"function\"!=typeof(p=u[1]||R))return F(e,c.d.call(e,\"cb must be a function\",d));G(u[0],(function(t,r){if(t)return c.d.call(e,t,d);e.parseBitmap(r,u[0].url,d)}))}else if(u[0]instanceof r){var g=u[0];if(void 0===(p=u[1])&&(p=R),\"function\"!=typeof p)return F(e,c.d.call(e,\"cb must be a function\",d));e.bitmap={data:t.from(g.bitmap.data),width:g.bitmap.width,height:g.bitmap.height},e._quality=g._quality,e._deflateLevel=g._deflateLevel,e._deflateStrategy=g._deflateStrategy,e._filterType=g._filterType,e._rgba=g._rgba,e._background=g._background,e._originalMime=g._originalMime,d(null,e)}else if((h=u[0])&&\"object\"===I(h)&&\"number\"==typeof h.width&&\"number\"==typeof h.height&&(t.isBuffer(h.data)||h.data instanceof Uint8Array||\"function\"==typeof Uint8ClampedArray&&h.data instanceof Uint8ClampedArray)&&(h.data.length===h.width*h.height*4||h.data.length===h.width*h.height*3)){var v=u[0];p=u[1]||R;var _=v.width*v.height*4===v.data.length?t.from(v.data):function(e){if(e.length%3!=0)throw new Error(\"Buffer length is incorrect\");for(var r=t.allocUnsafe(e.length/3*4),n=0,i=0;i<e.length;i++)r[n]=e[i],(i+1)%3==0&&(r[++n]=255),n++;return r}(v.data);e.bitmap={data:_,width:v.width,height:v.height},d(null,e)}else if(\"string\"==typeof u[0]){var E=u[0];if(void 0===(p=u[1])&&(p=R),\"function\"!=typeof p)return F(e,c.d.call(e,\"cb must be a function\",d));!function(t,e){a.a&&\"function\"==typeof a.a.readFile&&!t.match(/^(http|ftp)s?:\\/\\/./)?a.a.readFile(t,e):G({url:t},e)}(E,(function(t,r){if(t)return c.d.call(e,t,d);e.parseBitmap(r,E,d)}))}else if(\"object\"===I(u[0])&&t.isBuffer(u[0])){var D=u[0];if(\"function\"!=typeof(p=u[1]))return F(e,c.d.call(e,\"cb must be a function\",d));e.parseBitmap(D,null,d)}else{\"function\"!=typeof(p=u[u.length-1])&&\"function\"!=typeof(p=u[u.length-2])&&(p=R);var k=r.__extraConstructors.find((function(t){return t.test.apply(t,u)}));if(!k)return F(e,c.d.call(e,\"No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.\",d));new Promise((function(t,r){var n;(n=k.run).call.apply(n,[e,t,r].concat(u))})).then((function(){return d(null,e)})).catch(d)}return e}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&O(t,e)}(r,e),n=r,i=[{key:\"parseBitmap\",value:function(t,e,r){x.c.call(this,t,null,r)}},{key:\"rgba\",value:function(t,e){return\"boolean\"!=typeof t?c.d.call(this,\"bool must be a boolean, true for RGBA or false for RGB\",e):(this._rgba=t,Object(c.a)(e)&&e.call(this,null,this),this)}},{key:\"emitMulti\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=Object.assign(r,{methodName:t,eventName:e}),this.emit(\"any\",r),t&&this.emit(t,r),this.emit(e,r)}},{key:\"emitError\",value:function(t,e){this.emitMulti(t,\"error\",e)}},{key:\"getHeight\",value:function(){return this.bitmap.height}},{key:\"getWidth\",value:function(){return this.bitmap.width}},{key:\"inspect\",value:function(){return\"<Jimp \"+(this.bitmap===Z?\"pending...\":this.bitmap.width+\"x\"+this.bitmap.height)+\">\"}},{key:\"toString\",value:function(){return\"[object Jimp]\"}},{key:\"getMIME\",value:function(){return this._originalMime||r.MIME_PNG}},{key:\"getExtension\",value:function(){var t=this.getMIME();return _.b(t)}},{key:\"write\",value:function(t,e){var r=this;if(!a.a||!a.a.createWriteStream)throw new Error(\"Cant access the filesystem. You can use the getBase64 method.\");if(\"string\"!=typeof t)return c.d.call(this,\"path must be a string\",e);if(void 0===e&&(e=R),\"function\"!=typeof e)return c.d.call(this,\"cb must be a function\",e);var n=_.c(t)||this.getMIME(),i=s.a.parse(t);return i.dir&&a.a.mkdirSync(i.dir,{recursive:!0}),this.getBuffer(n,(function(n,i){if(n)return c.d.call(r,n,e);var o=a.a.createWriteStream(t);o.on(\"open\",(function(){o.write(i),o.end()})).on(\"error\",(function(t){return c.d.call(r,t,e)})),o.on(\"finish\",(function(){e.call(r,null,r)}))})),this}},{key:\"getBase64\",value:function(t,e){return t===r.AUTO&&(t=this.getMIME()),\"string\"!=typeof t?c.d.call(this,\"mime must be a string\",e):\"function\"!=typeof e?c.d.call(this,\"cb must be a function\",e):(this.getBuffer(t,(function(r,n){if(r)return c.d.call(this,r,e);var i=\"data:\"+t+\";base64,\"+n.toString(\"base64\");e.call(this,null,i)})),this)}},{key:\"hash\",value:function(t,e){if(\"function\"==typeof(t=t||64)&&(e=t,t=64),\"number\"!=typeof t)return c.d.call(this,\"base must be a number\",e);if(t<2||t>64)return c.d.call(this,\"base must be a number between 2 and 64\",e);var r=this.pHash();for(r=l()(l.a.BIN,P.slice(0,t))(r);r.length<L[t];)r=\"0\"+r;return Object(c.a)(e)&&e.call(this,null,r),r}},{key:\"pHash\",value:function(){var t=new b.a;return t.getHash(this)}},{key:\"distanceFromHash\",value:function(t){var e=new b.a,r=e.getHash(this);return e.distance(r,t)}},{key:\"getPixelIndex\",value:function(t,e,n,i){var a,o;if(\"function\"==typeof n&&void 0===i&&(i=n,n=null),n||(n=r.EDGE_EXTEND),\"number\"!=typeof t||\"number\"!=typeof e)return c.d.call(this,\"x and y must be numbers\",i);a=t=Math.round(t),o=e=Math.round(e),n===r.EDGE_EXTEND&&(t<0&&(a=0),t>=this.bitmap.width&&(a=this.bitmap.width-1),e<0&&(o=0),e>=this.bitmap.height&&(o=this.bitmap.height-1)),n===r.EDGE_WRAP&&(t<0&&(a=this.bitmap.width+t),t>=this.bitmap.width&&(a=t%this.bitmap.width),e<0&&(o=this.bitmap.height+e),e>=this.bitmap.height&&(o=e%this.bitmap.height));var s=this.bitmap.width*o+a<<2;return(a<0||a>=this.bitmap.width)&&(s=-1),(o<0||o>=this.bitmap.height)&&(s=-1),Object(c.a)(i)&&i.call(this,null,s),s}},{key:\"getPixelColor\",value:function(t,e,r){if(\"number\"!=typeof t||\"number\"!=typeof e)return c.d.call(this,\"x and y must be numbers\",r);var n=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(n);return Object(c.a)(r)&&r.call(this,null,i),i}},{key:\"setPixelColor\",value:function(t,e,r,n){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof r)return c.d.call(this,\"hex, x and y must be numbers\",n);var i=this.getPixelIndex(e,r);return this.bitmap.data.writeUInt32BE(t,i),Object(c.a)(n)&&n.call(this,null,this),this}},{key:\"hasAlpha\",value:function(){for(var t=this.bitmap,e=t.width,r=t.height,n=t.data,i=e*r<<2,a=3;a<i;a+=4)if(255!==n[a])return!0;return!1}},{key:\"scanIterator\",value:function(t,e,r,n){return\"number\"!=typeof t||\"number\"!=typeof e?c.d.call(this,\"x and y must be numbers\"):\"number\"!=typeof r||\"number\"!=typeof n?c.d.call(this,\"w and h must be numbers\"):Object(c.c)(this,t,e,r,n)}}],i&&S(n.prototype,i),o&&S(n,o),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,i,o}(f.a);function W(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;Object.entries(t).forEach((function(t){var r=k(t,2),n=r[0],i=r[1];e[n]=i}))}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;Object.entries(t).forEach((function(t){var r=k(t,2),n=r[0],i=r[1];e.prototype[n]=i}))}function V(t,e,r){var n=\"before-\"+e,i=e.replace(/e$/,\"\")+\"ed\";q.prototype[t]=function(){for(var e,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var u,f=o[r.length-1],c=this;\"function\"==typeof f?(e=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var a=r[0],o=r[1];a?c.emitError(t,a):c.emitMulti(t,i,D({},t,o)),f.apply(this,r)},o[o.length-1]=e):e=!1,this.emitMulti(t,n);try{u=r.apply(this,o),e||this.emitMulti(t,i,D({},t,u))}catch(e){e.methodName=t,this.emitError(t,e)}return u},q.prototype[t+\"Quiet\"]=r}function X(t,e){V(t,\"change\",e)}(W(E),Y({composite:v.a}),q.__extraConstructors=[],q.appendConstructorOption=function(t,e,r){q.__extraConstructors.push({name:t,test:e,run:r})},q.read=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return new Promise((function(t,r){!function(t,e,r){if(C())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));r&&O(i,r.prototype)}(q,e.concat([function(e,n){e?r(e):t(n)}]))}))},q.create=q.read,q.rgbaToInt=function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof r||\"number\"!=typeof n)return c.d.call(this,\"r, g, b and a must be numbers\",i);if(t<0||t>255)return c.d.call(this,\"r must be between 0 and 255\",i);if((e<0||e>255)&&c.d.call(this,\"g must be between 0 and 255\",i),r<0||r>255)return c.d.call(this,\"b must be between 0 and 255\",i);if(n<0||n>255)return c.d.call(this,\"a must be between 0 and 255\",i);var a=255&t;return a<<=8,a|=255&e,a<<=8,a|=255&r,a<<=8,a|=255&n,a>>>=0,Object(c.a)(i)&&i.call(this,null,a),a},q.intToRGBA=function(t,e){if(\"number\"!=typeof t)return c.d.call(this,\"i must be a number\",e);var r={};return r.r=Math.floor(t/Math.pow(256,3)),r.g=Math.floor((t-r.r*Math.pow(256,3))/Math.pow(256,2)),r.b=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2))/Math.pow(256,1)),r.a=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2)-r.b*Math.pow(256,1))/Math.pow(256,0)),Object(c.a)(e)&&e.call(this,null,r),r},q.cssColorToHex=function(t){return\"number\"==typeof(t=t||0)?Number(t):parseInt(y()(t).toHex8(),16)},q.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},q.diff=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof q&&e instanceof q))return c.d.call(this,\"img1 and img2 must be an Jimp images\");var n=t.bitmap,i=e.bitmap;if(n.width===i.width&&n.height===i.height||(n.width*n.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(n.width,n.height)),\"number\"!=typeof r||r<0||r>1)return c.d.call(this,\"threshold must be a number between 0 and 1\");var a=new q(n.width,n.height,4294967295);return{percent:d()(n.data,i.data,a.bitmap.data,a.bitmap.width,a.bitmap.height,{threshold:r})/(a.bitmap.width*a.bitmap.height),image:a}},q.distance=function(t,e){var r=new b.a,n=r.getHash(t),i=r.getHash(e);return r.distance(n,i)},q.compareHashes=function(t,e){return(new b.a).distance(t,e)},q.colorDiff=function(t,e){var r=function(t){return Math.pow(t,2)},n=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(n(r(t.r-e.r),r(t.r-e.r-t.a+e.a))+n(r(t.g-e.g),r(t.g-e.g-t.a+e.a))+n(r(t.b-e.b),r(t.b-e.b-t.a+e.a)))/195075},V(\"clone\",\"clone\",(function(t){var e=new q(this);return Object(c.a)(t)&&t.call(e,null,e),e})),X(\"background\",(function(t,e){return\"number\"!=typeof t?c.d.call(this,\"hex must be a hexadecimal rgba value\",e):(this._background=t,Object(c.a)(e)&&e.call(this,null,this),this)})),X(\"scan\",(function(t,e,r,n,i,a){if(\"number\"!=typeof t||\"number\"!=typeof e)return c.d.call(this,\"x and y must be numbers\",a);if(\"number\"!=typeof r||\"number\"!=typeof n)return c.d.call(this,\"w and h must be numbers\",a);if(\"function\"!=typeof i)return c.d.call(this,\"f must be a function\",a);var o=Object(c.b)(this,t,e,r,n,i);return Object(c.a)(a)&&a.call(this,null,o),o})),\"BROWSER\"===n.env.ENVIRONMENT)&&(\"undefined\"!=typeof window&&\"object\"===(\"undefined\"==typeof window?\"undefined\":I(window))&&(H=window),\"undefined\"!=typeof self&&\"object\"===(\"undefined\"==typeof self?\"undefined\":I(self))&&(H=self),H.Jimp=q,H.Buffer=t);e.c=q}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=r(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return n.EndOfStreamError}});var i=r(127);Object.defineProperty(e,\"StreamReader\",{enumerable:!0,get:function(){return i.StreamReader}})},function(t,e,r){(function(t){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):\"[object Array]\"===n(t)},e.isBoolean=function(t){return\"boolean\"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return\"number\"==typeof t},e.isString=function(t){return\"string\"==typeof t},e.isSymbol=function(t){return\"symbol\"===r(t)},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return\"[object RegExp]\"===n(t)},e.isObject=function(t){return\"object\"===r(t)&&null!==t},e.isDate=function(t){return\"[object Date]\"===n(t)},e.isError=function(t){return\"[object Error]\"===n(t)||t instanceof Error},e.isFunction=function(t){return\"function\"==typeof t},e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===r(t)||void 0===t},e.isBuffer=t.isBuffer}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(2).Buffer,i=r(38).Transform,a=r(159),o=r(14),s=r(53).ok,u=r(2).kMaxLength,f=\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\";a.Z_MIN_WINDOWBITS=8,a.Z_MAX_WINDOWBITS=15,a.Z_DEFAULT_WINDOWBITS=15,a.Z_MIN_CHUNK=64,a.Z_MAX_CHUNK=1/0,a.Z_DEFAULT_CHUNK=16384,a.Z_MIN_MEMLEVEL=1,a.Z_MAX_MEMLEVEL=9,a.Z_DEFAULT_MEMLEVEL=8,a.Z_MIN_LEVEL=-1,a.Z_MAX_LEVEL=9,a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(a),h=0;h<c.length;h++){var l=c[h];l.match(/^Z/)&&Object.defineProperty(e,l,{enumerable:!0,value:a[l],writable:!1})}for(var p={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.Z_VERSION_ERROR},d=Object.keys(p),m=0;m<d.length;m++){var y=d[m];p[p[y]]=y}function b(t,e,r){var i=[],a=0;function o(){for(var e;null!==(e=t.read());)i.push(e),a+=e.length;t.once(\"readable\",o)}function s(){var e,o=null;a>=u?o=new RangeError(f):e=n.concat(i,a),i=[],t.close(),r(o,e)}t.on(\"error\",(function(e){t.removeListener(\"end\",s),t.removeListener(\"readable\",o),r(e)})),t.on(\"end\",s),t.end(e),o()}function g(t,e){if(\"string\"==typeof e&&(e=n.from(e)),!n.isBuffer(e))throw new TypeError(\"Not a string or buffer\");var r=t._finishFlushFlag;return t._processChunk(e,r)}function v(t){if(!(this instanceof v))return new v(t);S.call(this,t,a.DEFLATE)}function w(t){if(!(this instanceof w))return new w(t);S.call(this,t,a.INFLATE)}function _(t){if(!(this instanceof _))return new _(t);S.call(this,t,a.GZIP)}function x(t){if(!(this instanceof x))return new x(t);S.call(this,t,a.GUNZIP)}function E(t){if(!(this instanceof E))return new E(t);S.call(this,t,a.DEFLATERAW)}function D(t){if(!(this instanceof D))return new D(t);S.call(this,t,a.INFLATERAW)}function k(t){if(!(this instanceof k))return new k(t);S.call(this,t,a.UNZIP)}function A(t){return t===a.Z_NO_FLUSH||t===a.Z_PARTIAL_FLUSH||t===a.Z_SYNC_FLUSH||t===a.Z_FULL_FLUSH||t===a.Z_FINISH||t===a.Z_BLOCK}function S(t,r){var o=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,i.call(this,t),t.flush&&!A(t.flush))throw new Error(\"Invalid flush flag: \"+t.flush);if(t.finishFlush&&!A(t.finishFlush))throw new Error(\"Invalid flush flag: \"+t.finishFlush);if(this._flushFlag=t.flush||a.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:a.Z_FINISH,t.chunkSize&&(t.chunkSize<e.Z_MIN_CHUNK||t.chunkSize>e.Z_MAX_CHUNK))throw new Error(\"Invalid chunk size: \"+t.chunkSize);if(t.windowBits&&(t.windowBits<e.Z_MIN_WINDOWBITS||t.windowBits>e.Z_MAX_WINDOWBITS))throw new Error(\"Invalid windowBits: \"+t.windowBits);if(t.level&&(t.level<e.Z_MIN_LEVEL||t.level>e.Z_MAX_LEVEL))throw new Error(\"Invalid compression level: \"+t.level);if(t.memLevel&&(t.memLevel<e.Z_MIN_MEMLEVEL||t.memLevel>e.Z_MAX_MEMLEVEL))throw new Error(\"Invalid memLevel: \"+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error(\"Invalid strategy: \"+t.strategy);if(t.dictionary&&!n.isBuffer(t.dictionary))throw new Error(\"Invalid dictionary: it should be a Buffer instance\");this._handle=new a.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(t,r){M(s),s._hadError=!0;var n=new Error(t);n.errno=r,n.code=e.codes[r],s.emit(\"error\",n)};var u=e.Z_DEFAULT_COMPRESSION;\"number\"==typeof t.level&&(u=t.level);var f=e.Z_DEFAULT_STRATEGY;\"number\"==typeof t.strategy&&(f=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,u,t.memLevel||e.Z_DEFAULT_MEMLEVEL,f,t.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=f,this.once(\"end\",this.close),Object.defineProperty(this,\"_closed\",{get:function(){return!o._handle},configurable:!0,enumerable:!0})}function M(e,r){r&&t.nextTick(r),e._handle&&(e._handle.close(),e._handle=null)}function F(t){t.emit(\"close\")}Object.defineProperty(e,\"codes\",{enumerable:!0,value:Object.freeze(p),writable:!1}),e.Deflate=v,e.Inflate=w,e.Gzip=_,e.Gunzip=x,e.DeflateRaw=E,e.InflateRaw=D,e.Unzip=k,e.createDeflate=function(t){return new v(t)},e.createInflate=function(t){return new w(t)},e.createDeflateRaw=function(t){return new E(t)},e.createInflateRaw=function(t){return new D(t)},e.createGzip=function(t){return new _(t)},e.createGunzip=function(t){return new x(t)},e.createUnzip=function(t){return new k(t)},e.deflate=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new v(e),t,r)},e.deflateSync=function(t,e){return g(new v(e),t)},e.gzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new _(e),t,r)},e.gzipSync=function(t,e){return g(new _(e),t)},e.deflateRaw=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new E(e),t,r)},e.deflateRawSync=function(t,e){return g(new E(e),t)},e.unzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new k(e),t,r)},e.unzipSync=function(t,e){return g(new k(e),t)},e.inflate=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new w(e),t,r)},e.inflateSync=function(t,e){return g(new w(e),t)},e.gunzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new x(e),t,r)},e.gunzipSync=function(t,e){return g(new x(e),t)},e.inflateRaw=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new D(e),t,r)},e.inflateRawSync=function(t,e){return g(new D(e),t)},o.inherits(S,i),S.prototype.params=function(r,n,i){if(r<e.Z_MIN_LEVEL||r>e.Z_MAX_LEVEL)throw new RangeError(\"Invalid compression level: \"+r);if(n!=e.Z_FILTERED&&n!=e.Z_HUFFMAN_ONLY&&n!=e.Z_RLE&&n!=e.Z_FIXED&&n!=e.Z_DEFAULT_STRATEGY)throw new TypeError(\"Invalid strategy: \"+n);if(this._level!==r||this._strategy!==n){var o=this;this.flush(a.Z_SYNC_FLUSH,(function(){s(o._handle,\"zlib binding closed\"),o._handle.params(r,n),o._hadError||(o._level=r,o._strategy=n,i&&i())}))}else t.nextTick(i)},S.prototype.reset=function(){return s(this._handle,\"zlib binding closed\"),this._handle.reset()},S.prototype._flush=function(t){this._transform(n.alloc(0),\"\",t)},S.prototype.flush=function(e,r){var i=this,o=this._writableState;(\"function\"==typeof e||void 0===e&&!r)&&(r=e,e=a.Z_FULL_FLUSH),o.ended?r&&t.nextTick(r):o.ending?r&&this.once(\"end\",r):o.needDrain?r&&this.once(\"drain\",(function(){return i.flush(e,r)})):(this._flushFlag=e,this.write(n.alloc(0),\"\",r))},S.prototype.close=function(e){M(this,e),t.nextTick(F,this)},S.prototype._transform=function(t,e,r){var i,o=this._writableState,s=(o.ending||o.ended)&&(!t||o.length===t.length);return null===t||n.isBuffer(t)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,t.length>=o.length&&(this._flushFlag=this._opts.flush||a.Z_NO_FLUSH)),void this._processChunk(t,i,r)):r(new Error(\"zlib binding closed\")):r(new Error(\"invalid input\"))},S.prototype._processChunk=function(t,e,r){var i=t&&t.length,a=this._chunkSize-this._offset,o=0,c=this,h=\"function\"==typeof r;if(!h){var l,p=[],d=0;this.on(\"error\",(function(t){l=t})),s(this._handle,\"zlib binding closed\");do{var m=this._handle.writeSync(e,t,o,i,this._buffer,this._offset,a)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw l;if(d>=u)throw M(this),new RangeError(f);var y=n.concat(p,d);return M(this),y}s(this._handle,\"zlib binding closed\");var b=this._handle.write(e,t,o,i,this._buffer,this._offset,a);function g(u,f){if(this&&(this.buffer=null,this.callback=null),!c._hadError){var l=a-f;if(s(l>=0,\"have should not go down\"),l>0){var m=c._buffer.slice(c._offset,c._offset+l);c._offset+=l,h?c.push(m):(p.push(m),d+=m.length)}if((0===f||c._offset>=c._chunkSize)&&(a=c._chunkSize,c._offset=0,c._buffer=n.allocUnsafe(c._chunkSize)),0===f){if(o+=i-u,i=u,!h)return!0;var y=c._handle.write(e,t,o,i,c._buffer,c._offset,c._chunkSize);return y.callback=g,void(y.buffer=t)}if(!h)return!1;r()}}b.buffer=t,b.callback=g},o.inherits(v,S),o.inherits(w,S),o.inherits(_,S),o.inherits(x,S),o.inherits(E,S),o.inherits(D,S),o.inherits(k,S)}).call(this,r(7))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i,a=r(165),o=r(166),s=r(167),u=r(168),f=r(77),c=r(40),h=r(169),l=Function,p=function(t){try{return l('\"use strict\"; return ('+t+\").constructor;\")()}catch(t){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},\"\")}catch(t){d=null}var m=function(){throw new c},y=d?function(){try{return m}catch(t){try{return d(arguments,\"callee\").get}catch(t){return m}}}():m,b=r(170)(),g=r(171)(),v=Object.getPrototypeOf||(g?function(t){return t.__proto__}:null),w={},_=\"undefined\"!=typeof Uint8Array&&v?v(Uint8Array):i,x={__proto__:null,\"%AggregateError%\":\"undefined\"==typeof AggregateError?i:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":\"undefined\"==typeof ArrayBuffer?i:ArrayBuffer,\"%ArrayIteratorPrototype%\":b&&v?v([][Symbol.iterator]()):i,\"%AsyncFromSyncIteratorPrototype%\":i,\"%AsyncFunction%\":w,\"%AsyncGenerator%\":w,\"%AsyncGeneratorFunction%\":w,\"%AsyncIteratorPrototype%\":w,\"%Atomics%\":\"undefined\"==typeof Atomics?i:Atomics,\"%BigInt%\":\"undefined\"==typeof BigInt?i:BigInt,\"%BigInt64Array%\":\"undefined\"==typeof BigInt64Array?i:BigInt64Array,\"%BigUint64Array%\":\"undefined\"==typeof BigUint64Array?i:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":\"undefined\"==typeof DataView?i:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":a,\"%eval%\":eval,\"%EvalError%\":o,\"%Float32Array%\":\"undefined\"==typeof Float32Array?i:Float32Array,\"%Float64Array%\":\"undefined\"==typeof Float64Array?i:Float64Array,\"%FinalizationRegistry%\":\"undefined\"==typeof FinalizationRegistry?i:FinalizationRegistry,\"%Function%\":l,\"%GeneratorFunction%\":w,\"%Int8Array%\":\"undefined\"==typeof Int8Array?i:Int8Array,\"%Int16Array%\":\"undefined\"==typeof Int16Array?i:Int16Array,\"%Int32Array%\":\"undefined\"==typeof Int32Array?i:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":b&&v?v(v([][Symbol.iterator]())):i,\"%JSON%\":\"object\"===(\"undefined\"==typeof JSON?\"undefined\":n(JSON))?JSON:i,\"%Map%\":\"undefined\"==typeof Map?i:Map,\"%MapIteratorPrototype%\":\"undefined\"!=typeof Map&&b&&v?v((new Map)[Symbol.iterator]()):i,\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":Object,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":\"undefined\"==typeof Promise?i:Promise,\"%Proxy%\":\"undefined\"==typeof Proxy?i:Proxy,\"%RangeError%\":s,\"%ReferenceError%\":u,\"%Reflect%\":\"undefined\"==typeof Reflect?i:Reflect,\"%RegExp%\":RegExp,\"%Set%\":\"undefined\"==typeof Set?i:Set,\"%SetIteratorPrototype%\":\"undefined\"!=typeof Set&&b&&v?v((new Set)[Symbol.iterator]()):i,\"%SharedArrayBuffer%\":\"undefined\"==typeof SharedArrayBuffer?i:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":b&&v?v(\"\"[Symbol.iterator]()):i,\"%Symbol%\":b?Symbol:i,\"%SyntaxError%\":f,\"%ThrowTypeError%\":y,\"%TypedArray%\":_,\"%TypeError%\":c,\"%Uint8Array%\":\"undefined\"==typeof Uint8Array?i:Uint8Array,\"%Uint8ClampedArray%\":\"undefined\"==typeof Uint8ClampedArray?i:Uint8ClampedArray,\"%Uint16Array%\":\"undefined\"==typeof Uint16Array?i:Uint16Array,\"%Uint32Array%\":\"undefined\"==typeof Uint32Array?i:Uint32Array,\"%URIError%\":h,\"%WeakMap%\":\"undefined\"==typeof WeakMap?i:WeakMap,\"%WeakRef%\":\"undefined\"==typeof WeakRef?i:WeakRef,\"%WeakSet%\":\"undefined\"==typeof WeakSet?i:WeakSet};if(v)try{null.error}catch(t){var E=v(v(t));x[\"%Error.prototype%\"]=E}var D=function t(e){var r;if(\"%AsyncFunction%\"===e)r=p(\"async function () {}\");else if(\"%GeneratorFunction%\"===e)r=p(\"function* () {}\");else if(\"%AsyncGeneratorFunction%\"===e)r=p(\"async function* () {}\");else if(\"%AsyncGenerator%\"===e){var n=t(\"%AsyncGeneratorFunction%\");n&&(r=n.prototype)}else if(\"%AsyncIteratorPrototype%\"===e){var i=t(\"%AsyncGenerator%\");i&&v&&(r=v(i.prototype))}return x[e]=r,r},k={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},A=r(54),S=r(173),M=A.call(Function.call,Array.prototype.concat),F=A.call(Function.apply,Array.prototype.splice),C=A.call(Function.call,String.prototype.replace),B=A.call(Function.call,String.prototype.slice),O=A.call(Function.call,RegExp.prototype.exec),I=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,T=/\\\\(\\\\)?/g,P=function(t,e){var r,n=t;if(S(k,n)&&(n=\"%\"+(r=k[n])[0]+\"%\"),S(x,n)){var i=x[n];if(i===w&&(i=D(n)),void 0===i&&!e)throw new c(\"intrinsic \"+t+\" exists, but is not available. Please file an issue!\");return{alias:r,name:n,value:i}}throw new f(\"intrinsic \"+t+\" does not exist!\")};t.exports=function(t,e){if(\"string\"!=typeof t||0===t.length)throw new c(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&\"boolean\"!=typeof e)throw new c('\"allowMissing\" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,t))throw new f(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var r=function(t){var e=B(t,0,1),r=B(t,-1);if(\"%\"===e&&\"%\"!==r)throw new f(\"invalid intrinsic syntax, expected closing `%`\");if(\"%\"===r&&\"%\"!==e)throw new f(\"invalid intrinsic syntax, expected opening `%`\");var n=[];return C(t,I,(function(t,e,r,i){n[n.length]=r?C(i,T,\"$1\"):e||t})),n}(t),n=r.length>0?r[0]:\"\",i=P(\"%\"+n+\"%\",e),a=i.name,o=i.value,s=!1,u=i.alias;u&&(n=u[0],F(r,M([0,1],u)));for(var h=1,l=!0;h<r.length;h+=1){var p=r[h],m=B(p,0,1),y=B(p,-1);if(('\"'===m||\"'\"===m||\"`\"===m||'\"'===y||\"'\"===y||\"`\"===y)&&m!==y)throw new f(\"property names with quotes must have matching quotes\");if(\"constructor\"!==p&&l||(s=!0),S(x,a=\"%\"+(n+=\".\"+p)+\"%\"))o=x[a];else if(null!=o){if(!(p in o)){if(!e)throw new c(\"base intrinsic for \"+t+\" exists, but the property is not available.\");return}if(d&&h+1>=r.length){var b=d(o,p);o=(l=!!b)&&\"get\"in b&&!(\"originalValue\"in b.get)?b.get:o[p]}else l=S(o,p),o=o[p];l&&!s&&(x[a]=o)}}return o}},function(t,e,r){\"use strict\";t.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i,a=\"object\"===(\"undefined\"==typeof Reflect?\"undefined\":n(Reflect))?Reflect:null,o=a&&\"function\"==typeof a.apply?a.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};i=a&&\"function\"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}t.exports=u,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,a),n(r)}function a(){\"function\"==typeof t.removeListener&&t.removeListener(\"error\",i),r([].slice.call(arguments))}g(t,e,a,{once:!0}),\"error\"!==e&&function(t,e,r){\"function\"==typeof t.on&&g(t,\"error\",e,r)}(t,i,{once:!0})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var f=10;function c(t){if(\"function\"!=typeof t)throw new TypeError('The \"listener\" argument must be of type Function. Received type '+n(t))}function h(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var i,a,o;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit(\"newListener\",e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if(\"function\"==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=h(t))>0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error(\"Possible EventEmitter memory leak detected. \"+o.length+\" \"+String(e)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");s.name=\"MaxListenersExceededWarning\",s.emitter=t,s.type=e,s.count=o.length,console&&console.warn}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=p.bind(n);return i.listener=r,n.wrapFn=i,i}function m(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:\"function\"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):b(i,i.length)}function y(t){var e=this._events;if(void 0!==e){var r=e[t];if(\"function\"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function b(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function g(t,e,r,i){if(\"function\"==typeof t.on)i.once?t.once(e,r):t.on(e,r);else{if(\"function\"!=typeof t.addEventListener)throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type '+n(t));t.addEventListener(e,(function n(a){i.once&&t.removeEventListener(e,n),r(a)}))}}Object.defineProperty(u,\"defaultMaxListeners\",{enumerable:!0,get:function(){return f},set:function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+t+\".\");f=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+t+\".\");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return h(this)},u.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n=\"error\"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error(\"Unhandled error.\"+(a?\" (\"+a.message+\")\":\"\"));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if(\"function\"==typeof u)o(u,this,e);else{var f=u.length,c=b(u,f);for(r=0;r<f;++r)o(c[r],this,e)}return!0},u.prototype.addListener=function(t,e){return l(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return l(this,t,e,!0)},u.prototype.once=function(t,e){return c(e),this.on(t,d(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,d(this,t,e)),this},u.prototype.removeListener=function(t,e){var r,n,i,a,o;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit(\"removeListener\",t,r.listener||e));else if(\"function\"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit(\"removeListener\",t,o||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n<a.length;++n)\"removeListener\"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(\"function\"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return m(this,t,!0)},u.prototype.rawListeners=function(t){return m(this,t,!1)},u.listenerCount=function(t,e){return\"function\"==typeof t.listenerCount?t.listenerCount(e):y.call(t,e)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(t,e,r){var n,i,a;function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}a=function(){\"use strict\";function t(e){return t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t(e)}var e=/^\\s+/,r=/\\s+$/;function n(i,a){if(a=a||{},(i=i||\"\")instanceof n)return i;if(!(this instanceof n))return new n(i,a);var o=function(n){var i,a,o,s={r:0,g:0,b:0},u=1,f=null,c=null,h=null,l=!1,p=!1;return\"string\"==typeof n&&(n=function(t){t=t.replace(e,\"\").replace(r,\"\").toLowerCase();var n,i=!1;if(w[t])t=w[t],i=!0;else if(\"transparent\"==t)return{r:0,g:0,b:0,a:0,format:\"name\"};return(n=I.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=I.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=I.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=I.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=I.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=I.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=I.hex8.exec(t))?{r:k(n[1]),g:k(n[2]),b:k(n[3]),a:F(n[4]),format:i?\"name\":\"hex8\"}:(n=I.hex6.exec(t))?{r:k(n[1]),g:k(n[2]),b:k(n[3]),format:i?\"name\":\"hex\"}:(n=I.hex4.exec(t))?{r:k(n[1]+\"\"+n[1]),g:k(n[2]+\"\"+n[2]),b:k(n[3]+\"\"+n[3]),a:F(n[4]+\"\"+n[4]),format:i?\"name\":\"hex8\"}:!!(n=I.hex3.exec(t))&&{r:k(n[1]+\"\"+n[1]),g:k(n[2]+\"\"+n[2]),b:k(n[3]+\"\"+n[3]),format:i?\"name\":\"hex\"}}(n)),\"object\"==t(n)&&(T(n.r)&&T(n.g)&&T(n.b)?(i=n.r,a=n.g,o=n.b,s={r:255*E(i,255),g:255*E(a,255),b:255*E(o,255)},l=!0,p=\"%\"===String(n.r).substr(-1)?\"prgb\":\"rgb\"):T(n.h)&&T(n.s)&&T(n.v)?(f=S(n.s),c=S(n.v),s=function(t,e,r){t=6*E(t,360),e=E(e,100),r=E(r,100);var n=Math.floor(t),i=t-n,a=r*(1-e),o=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6,f=[r,o,a,a,s,r][u],c=[s,r,r,o,a,a][u],h=[a,a,s,r,r,o][u];return{r:255*f,g:255*c,b:255*h}}(n.h,f,c),l=!0,p=\"hsv\"):T(n.h)&&T(n.s)&&T(n.l)&&(f=S(n.s),h=S(n.l),s=function(t,e,r){var n,i,a;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=E(t,360),e=E(e,100),r=E(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),i=o(u,s,t),a=o(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(n.h,f,h),l=!0,p=\"hsl\"),n.hasOwnProperty(\"a\")&&(u=n.a)),u=x(u),{ok:l,format:n.format||p,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:u}}(i);this._originalInput=i,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=a.format||o.format,this._gradientType=a.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function i(t,e,r){t=E(t,255),e=E(e,255),r=E(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=(a+o)/2;if(a==o)n=i=0;else{var u=a-o;switch(i=s>.5?u/(2-a-o):u/(a+o),a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:s}}function a(t,e,r){t=E(t,255),e=E(e,255),r=E(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=a,u=a-o;if(i=0===a?0:u/a,a==o)n=0;else{switch(a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:s}}function o(t,e,r,n){var i=[A(Math.round(t).toString(16)),A(Math.round(e).toString(16)),A(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function s(t,e,r,n){return[A(M(n)),A(Math.round(t).toString(16)),A(Math.round(e).toString(16)),A(Math.round(r).toString(16))].join(\"\")}function u(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s-=e/100,r.s=D(r.s),n(r)}function f(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s+=e/100,r.s=D(r.s),n(r)}function c(t){return n(t).desaturate(100)}function h(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l+=e/100,r.l=D(r.l),n(r)}function l(t,e){e=0===e?0:e||10;var r=n(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),n(r)}function p(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l-=e/100,r.l=D(r.l),n(r)}function d(t,e){var r=n(t).toHsl(),i=(r.h+e)%360;return r.h=i<0?360+i:i,n(r)}function m(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function y(t,e){if(isNaN(e)||e<=0)throw new Error(\"Argument to polyad must be a positive number\");for(var r=n(t).toHsl(),i=[n(t)],a=360/e,o=1;o<e;o++)i.push(n({h:(r.h+o*a)%360,s:r.s,l:r.l}));return i}function b(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+72)%360,s:e.s,l:e.l}),n({h:(r+216)%360,s:e.s,l:e.l})]}function g(t,e,r){e=e||6,r=r||30;var i=n(t).toHsl(),a=360/r,o=[n(t)];for(i.h=(i.h-(a*e>>1)+720)%360;--e;)i.h=(i.h+a)%360,o.push(n(i));return o}function v(t,e){e=e||6;for(var r=n(t).toHsv(),i=r.h,a=r.s,o=r.v,s=[],u=1/e;e--;)s.push(n({h:i,s:a,v:o})),o=(o+u)%1;return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=x(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=a(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?\"hsv(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsva(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?\"hsl(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsla(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHex:function(t){return o(this._r,this._g,this._b,t)},toHexString:function(t){return\"#\"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var a=[A(Math.round(t).toString(16)),A(Math.round(e).toString(16)),A(Math.round(r).toString(16)),A(M(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join(\"\")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return\"#\"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\")\":\"rgba(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:Math.round(100*E(this._r,255))+\"%\",g:Math.round(100*E(this._g,255))+\"%\",b:Math.round(100*E(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(100*E(this._r,255))+\"%, \"+Math.round(100*E(this._g,255))+\"%, \"+Math.round(100*E(this._b,255))+\"%)\":\"rgba(\"+Math.round(100*E(this._r,255))+\"%, \"+Math.round(100*E(this._g,255))+\"%, \"+Math.round(100*E(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&(_[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=\"#\"+s(this._r,this._g,this._b,this._a),r=e,i=this._gradientType?\"GradientType = 1, \":\"\";if(t){var a=n(t);r=\"#\"+s(a._r,a._g,a._b,a._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+i+\"startColorstr=\"+e+\",endColorstr=\"+r+\")\"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||\"hex\"!==t&&\"hex6\"!==t&&\"hex3\"!==t&&\"hex4\"!==t&&\"hex8\"!==t&&\"name\"!==t?(\"rgb\"===t&&(r=this.toRgbString()),\"prgb\"===t&&(r=this.toPercentageRgbString()),\"hex\"!==t&&\"hex6\"!==t||(r=this.toHexString()),\"hex3\"===t&&(r=this.toHexString(!0)),\"hex4\"===t&&(r=this.toHex8String(!0)),\"hex8\"===t&&(r=this.toHex8String()),\"name\"===t&&(r=this.toName()),\"hsl\"===t&&(r=this.toHslString()),\"hsv\"===t&&(r=this.toHsvString()),r||this.toHexString()):\"name\"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(l,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(c,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(g,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(v,arguments)},splitcomplement:function(){return this._applyCombination(b,arguments)},triad:function(){return this._applyCombination(y,[3])},tetrad:function(){return this._applyCombination(y,[4])}},n.fromRatio=function(e,r){if(\"object\"==t(e)){var i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=\"a\"===a?e[a]:S(e[a]));e=i}return n(e,r)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(t,e,r){r=0===r?0:r||50;var i=n(t).toRgb(),a=n(e).toRgb(),o=r/100;return n({r:(a.r-i.r)*o+i.r,g:(a.g-i.g)*o+i.g,b:(a.b-i.b)*o+i.b,a:(a.a-i.a)*o+i.a})},n.readability=function(t,e){var r=n(t),i=n(e);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(t,e,r){var i,a,o,s,u,f=n.readability(t,e);switch(a=!1,(o=r,s=((o=o||{level:\"AA\",size:\"small\"}).level||\"AA\").toUpperCase(),u=(o.size||\"small\").toLowerCase(),\"AA\"!==s&&\"AAA\"!==s&&(s=\"AA\"),\"small\"!==u&&\"large\"!==u&&(u=\"small\"),i={level:s,size:u}).level+i.size){case\"AAsmall\":case\"AAAlarge\":a=f>=4.5;break;case\"AAlarge\":a=f>=3;break;case\"AAAsmall\":a=f>=7}return a},n.mostReadable=function(t,e,r){var i,a,o,s,u=null,f=0;a=(r=r||{}).includeFallbackColors,o=r.level,s=r.size;for(var c=0;c<e.length;c++)(i=n.readability(t,e[c]))>f&&(f=i,u=n(e[c]));return n.isReadable(t,u,{level:o,size:s})||!a?u:(r.includeFallbackColors=!1,n.mostReadable(t,[\"#fff\",\"#000\"],r))};var w=n.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},_=n.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(w);function x(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function E(t,e){(function(t){return\"string\"==typeof t&&-1!=t.indexOf(\".\")&&1===parseFloat(t)})(t)&&(t=\"100%\");var r=function(t){return\"string\"==typeof t&&-1!=t.indexOf(\"%\")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function D(t){return Math.min(1,Math.max(0,t))}function k(t){return parseInt(t,16)}function A(t){return 1==t.length?\"0\"+t:\"\"+t}function S(t){return t<=1&&(t=100*t+\"%\"),t}function M(t){return Math.round(255*parseFloat(t)).toString(16)}function F(t){return k(t)/255}var C,B,O,I=(B=\"[\\\\s|\\\\(]+(\"+(C=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\")+\")[,|\\\\s]+(\"+C+\")[,|\\\\s]+(\"+C+\")\\\\s*\\\\)?\",O=\"[\\\\s|\\\\(]+(\"+C+\")[,|\\\\s]+(\"+C+\")[,|\\\\s]+(\"+C+\")[,|\\\\s]+(\"+C+\")\\\\s*\\\\)?\",{CSS_UNIT:new RegExp(C),rgb:new RegExp(\"rgb\"+B),rgba:new RegExp(\"rgba\"+O),hsl:new RegExp(\"hsl\"+B),hsla:new RegExp(\"hsla\"+O),hsv:new RegExp(\"hsv\"+B),hsva:new RegExp(\"hsva\"+O),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function T(t){return!!I.CSS_UNIT.exec(t)}return n},\"object\"===o(e)&&void 0!==t?t.exports=a():void 0===(i=\"function\"==typeof(n=a)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){\"use strict\";e.a=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise((function(r,i){n.push((function(t,e){t&&i(t),r(e)})),t.bind(e).apply(void 0,n)}))}},function(t,e,r){var n=r(122);function i(t,e){var r=new n(t,e);return function(t){return r.convert(t)}}i.BIN=\"01\",i.OCT=\"01234567\",i.DEC=\"0123456789\",i.HEX=\"0123456789abcdef\",t.exports=i},function(t,e,r){\"use strict\";function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;e<t;e++)a[e]=1;a[0]=1/Math.sqrt(2)}(this.size)}function i(t){var e=255&t,r=255&(t>>>=8),n=255&(t>>>=8);return{r:255&(t>>>=8),g:n,b:r,a:e}}n.prototype.size=32,n.prototype.smallerSize=8,n.prototype.distance=function(t,e){for(var r=0,n=0;n<t.length;n++)t[n]!==e[n]&&r++;return r/t.length},n.prototype.getHash=function(t){(t=t.clone().resize(this.size,this.size)).grayscale();for(var e=[],r=0;r<t.bitmap.width;r++){e[r]=[];for(var n=0;n<t.bitmap.height;n++)e[r][n]=i(t.getPixelColor(r,n)).b}for(var o=function(t,e){for(var r=e,n=[],i=0;i<r;i++){n[i]=[];for(var o=0;o<r;o++){for(var s=0,u=0;u<r;u++)for(var f=0;f<r;f++)s+=Math.cos((2*u+1)/(2*r)*i*Math.PI)*Math.cos((2*f+1)/(2*r)*o*Math.PI)*t[u][f];s*=a[i]*a[o]/4,n[i][o]=s}}return n}(e,this.size),s=0,u=0;u<this.smallerSize;u++)for(var f=0;f<this.smallerSize;f++)s+=o[u][f];for(var c=s/(this.smallerSize*this.smallerSize),h=\"\",l=0;l<this.smallerSize;l++)for(var p=0;p<this.smallerSize;p++)h+=o[l][p]>c?\"1\":\"0\";return h};var a=[];e.a=n},function(t,e,r){(function(t,e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}!function(){var i={};function a(){void 0===e&&console.log.apply(console,arguments)}\"object\"==n(t)?t.exports=i:self.UTIF=i,function(t,e){var r,i,o,s,u,f,c,h,l,p,d,m,y,b;!function(){\"use strict\";var e=function(){function t(t){this.message=\"JPEG error: \"+t}return t.prototype=new Error,t.prototype.name=\"JpegError\",t.constructor=t,t}(),r=function(){var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),r=4017,a=799,o=3406,s=2276,u=1567,f=3784,c=5793,h=2896;function l(t){null==t&&(t={}),null==t.w&&(t.w=-1),this.V=t.n,this.N=t.w}function p(t,e){for(var r,n,i,a=0,o=[],s=16;s>0&&!t[s-1];)s--;o.push({children:[],index:0});var u=o[0];for(r=0;r<s;r++){for(n=0;n<t[r];n++){for((u=o.pop()).children[u.index]=e[a];u.index>0;)u=o.pop();for(u.index++,o.push(u);o.length<=r;)o.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i;a++}r+1<s&&(o.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i)}return o[0].children}function d(t,e,r){return 64*((t.P+1)*e+r)}function m(r,a,o,s,u,f,c,h,l,p){null==p&&(p=!1);var m,y,b,v,w,_,x,E,D,k,A,S=o.m,M=o.Z,F=a,C=0,B=0,O=0,I=0,T=0,P=0;function L(){if(B>0)return B--,C>>B&1;if(255===(C=r[a++])){var t=r[a++];if(t){if(220===t&&p){var n=i(r,a+=2);if(a+=2,n>0&&n!==o.s)throw new DNLMarkerError(\"Found DNL marker (0xFFDC) while parsing scan data\",n)}else if(217===t){if(p){var s=8*T;if(s>0&&s<o.s/10)throw new DNLMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter\",s)}throw new EOIMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data\")}throw new e(\"unexpected marker\")}}return B=7,C>>>7}function N(t){for(var r=t;;){switch(n(r=r[L()])){case\"number\":return r;case\"object\":continue}throw new e(\"invalid huffman sequence\")}}function j(t){for(var e=0;t>0;)e=e<<1|L(),t--;return e}function R(t){if(1===t)return 1===L()?1:-1;var e=j(t);return e>=1<<t-1?e:e+(-1<<t)+1}function z(t,e,r,n,i){var a=r%S;T=(r/S|0)*t.A+n;var o=a*t.h+i;e(t,d(t,T,o))}function U(t,e,r){T=r/t.P|0;var n=r%t.P;e(t,d(t,T,n))}var G=s.length;for(x=M?0===f?0===h?function(t,e){var r=N(t.J),n=0===r?0:R(r)<<l;t.D[e]=t.Q+=n}:function(t,e){t.D[e]|=L()<<l}:0===h?function(e,r){if(O>0)O--;else for(var n=f,i=c;n<=i;){var a=N(e.i),o=15&a,s=a>>4;if(0!==o){var u=t[n+=s];e.D[r+u]=R(o)*(1<<l),n++}else{if(s<15){O=j(s)+(1<<s)-1;break}n+=16}}}:function(r,n){for(var i,a,o=f,s=c,u=0;o<=s;){var h=n+t[o],p=r.D[h]<0?-1:1;switch(I){case 0:if(u=(a=N(r.i))>>4,0==(i=15&a))u<15?(O=j(u)+(1<<u),I=4):(u=16,I=1);else{if(1!==i)throw new e(\"invalid ACn encoding\");m=R(i),I=u?2:3}continue;case 1:case 2:r.D[h]?r.D[h]+=p*(L()<<l):0==--u&&(I=2===I?3:0);break;case 3:r.D[h]?r.D[h]+=p*(L()<<l):(r.D[h]=m<<l,I=0);break;case 4:r.D[h]&&(r.D[h]+=p*(L()<<l))}o++}4===I&&0==--O&&(I=0)}:function(e,r){var n=N(e.J),i=0===n?0:R(n),a=1;for(e.D[r]=e.Q+=i;a<64;){var o=N(e.i),s=15&o,u=o>>4;if(0!==s){var f=t[a+=u];e.D[r+f]=R(s),a++}else{if(u<15)break;a+=16}}},D=1===G?s[0].P*s[0].c:S*o.R;P<=D;){var H=u?Math.min(D-P,u):D;if(H>0){for(b=0;b<G;b++)s[b].Q=0;if(O=0,1===G)for(y=s[0],_=0;_<H;_++)U(y,x,P),P++;else for(_=0;_<H;_++){for(b=0;b<G;b++)for(k=(y=s[b]).h,A=y.A,v=0;v<A;v++)for(w=0;w<k;w++)z(y,x,P,v,w);P++}}if(B=0,!(E=g(r,a)))break;if(E.u){a=E.offset}if(!(E.M>=65488&&E.M<=65495))break;a+=2}return a-F}function y(t,n,i){var l,p,d,m,y,b,g,v,w,_,x,E,D,k,A,S,M,F=t.$,C=t.D;if(!F)throw new e(\"missing required Quantization Table.\");for(var B=0;B<64;B+=8)w=C[n+B],_=C[n+B+1],x=C[n+B+2],E=C[n+B+3],D=C[n+B+4],k=C[n+B+5],A=C[n+B+6],S=C[n+B+7],w*=F[B],_|x|E|D|k|A|S?(_*=F[B+1],x*=F[B+2],E*=F[B+3],D*=F[B+4],k*=F[B+5],A*=F[B+6],S*=F[B+7],p=(l=(l=c*w+128>>8)+(p=c*D+128>>8)+1>>1)-p,M=(d=x)*f+(m=A)*u+128>>8,d=d*u-m*f+128>>8,g=(y=(y=h*(_-S)+128>>8)+(g=k<<4)+1>>1)-g,b=(v=(v=h*(_+S)+128>>8)+(b=E<<4)+1>>1)-b,m=(l=l+(m=M)+1>>1)-m,d=(p=p+d+1>>1)-d,M=y*s+v*o+2048>>12,y=y*o-v*s+2048>>12,v=M,M=b*a+g*r+2048>>12,b=b*r-g*a+2048>>12,g=M,i[B]=l+v,i[B+7]=l-v,i[B+1]=p+g,i[B+6]=p-g,i[B+2]=d+b,i[B+5]=d-b,i[B+3]=m+y,i[B+4]=m-y):(M=c*w+512>>10,i[B]=M,i[B+1]=M,i[B+2]=M,i[B+3]=M,i[B+4]=M,i[B+5]=M,i[B+6]=M,i[B+7]=M);for(var O=0;O<8;++O)w=i[O],(_=i[O+8])|(x=i[O+16])|(E=i[O+24])|(D=i[O+32])|(k=i[O+40])|(A=i[O+48])|(S=i[O+56])?(p=(l=4112+((l=c*w+2048>>12)+(p=c*D+2048>>12)+1>>1))-p,M=(d=x)*f+(m=A)*u+2048>>12,d=d*u-m*f+2048>>12,m=M,g=(y=(y=h*(_-S)+2048>>12)+(g=k)+1>>1)-g,b=(v=(v=h*(_+S)+2048>>12)+(b=E)+1>>1)-b,M=y*s+v*o+2048>>12,y=y*o-v*s+2048>>12,v=M,M=b*a+g*r+2048>>12,b=b*r-g*a+2048>>12,(w=(l=l+m+1>>1)+v)<16?w=0:w>=4080?w=255:w>>=4,(_=(p=p+d+1>>1)+(g=M))<16?_=0:_>=4080?_=255:_>>=4,(x=(d=p-d)+b)<16?x=0:x>=4080?x=255:x>>=4,(E=(m=l-m)+y)<16?E=0:E>=4080?E=255:E>>=4,(D=m-y)<16?D=0:D>=4080?D=255:D>>=4,(k=d-b)<16?k=0:k>=4080?k=255:k>>=4,(A=p-g)<16?A=0:A>=4080?A=255:A>>=4,(S=l-v)<16?S=0:S>=4080?S=255:S>>=4,C[n+O]=w,C[n+O+8]=_,C[n+O+16]=x,C[n+O+24]=E,C[n+O+32]=D,C[n+O+40]=k,C[n+O+48]=A,C[n+O+56]=S):(M=(M=c*w+8192>>14)<-2040?0:M>=2024?255:M+2056>>4,C[n+O]=M,C[n+O+8]=M,C[n+O+16]=M,C[n+O+24]=M,C[n+O+32]=M,C[n+O+40]=M,C[n+O+48]=M,C[n+O+56]=M)}function b(t,e){for(var r=e.P,n=e.c,i=new Int16Array(64),a=0;a<n;a++)for(var o=0;o<r;o++){y(e,d(e,a,o),i)}return e.D}function g(t,e,r){null==r&&(r=e);var n=t.length-1,a=r<e?r:e;if(e>=n)return null;var o=i(t,e);if(o>=65472&&o<=65534)return{u:null,M:o,offset:e};for(var s=i(t,a);!(s>=65472&&s<=65534);){if(++a>=n)return null;s=i(t,a)}return{u:o.toString(16),M:s,offset:a}}return l.prototype={parse:function(r,n){null==n&&(n={});var a,o,s=n.F,u=0,f=null,c=null,h=0;function l(){var t=i(r,u),e=(u+=2)+t-2,n=g(r,e,u);n&&n.u&&(e=n.offset);var a=r.subarray(u,e);return u+=a.length,a}function d(t){for(var e=Math.ceil(t.o/8/t.X),r=Math.ceil(t.s/8/t.B),n=0;n<t.W.length;n++){G=t.W[n];var i=Math.ceil(Math.ceil(t.o/8)*G.h/t.X),a=Math.ceil(Math.ceil(t.s/8)*G.A/t.B),o=e*G.h,s=64*(r*G.A)*(o+1);G.D=new Int16Array(s),G.P=i,G.c=a}t.m=e,t.R=r}var y=[],v=[],w=[],_=i(r,u);if(u+=2,65496!==_)throw new e(\"SOI not found\");_=i(r,u),u+=2;t:for(;65497!==_;){var x,E,D;switch(_){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var k=l();65504===_&&74===k[0]&&70===k[1]&&73===k[2]&&70===k[3]&&0===k[4]&&(f={version:{d:k[5],T:k[6]},K:k[7],j:k[8]<<8|k[9],H:k[10]<<8|k[11],S:k[12],I:k[13],C:k.subarray(14,14+3*k[12]*k[13])}),65518===_&&65===k[0]&&100===k[1]&&111===k[2]&&98===k[3]&&101===k[4]&&(c={version:k[5]<<8|k[6],k:k[7]<<8|k[8],q:k[9]<<8|k[10],a:k[11]});break;case 65499:for(var A=i(r,u)+(u+=2)-2;u<A;){var S=r[u++],M=new Uint16Array(64);if(S>>4){if(S>>4!=1)throw new e(\"DQT - invalid table spec\");for(E=0;E<64;E++)M[t[E]]=i(r,u),u+=2}else for(E=0;E<64;E++)M[t[E]]=r[u++];y[15&S]=M}break;case 65472:case 65473:case 65474:if(a)throw new e(\"Only single frame JPEGs supported\");u+=2,(a={}).G=65473===_,a.Z=65474===_,a.precision=r[u++];var F,C=i(r,u),B=0,O=0;u+=2,a.s=s||C,a.o=i(r,u),u+=2,a.W=[],a._={};var I=r[u++];for(x=0;x<I;x++){F=r[u];var T=r[u+1]>>4,P=15&r[u+1];B<T&&(B=T),O<P&&(O=P);var L=r[u+2];D=a.W.push({h:T,A:P,L,$:null}),a._[F]=D-1,u+=3}a.X=B,a.B=O,d(a);break;case 65476:var N=i(r,u);for(u+=2,x=2;x<N;){var j=r[u++],R=new Uint8Array(16),z=0;for(E=0;E<16;E++,u++)z+=R[E]=r[u];var U=new Uint8Array(z);for(E=0;E<z;E++,u++)U[E]=r[u];x+=17+z,(j>>4?v:w)[15&j]=p(R,U)}break;case 65501:o=i(r,u+=2),u+=2;break;case 65498:var G,H=1==++h&&!s;u+=2;var Z=r[u++],q=[];for(x=0;x<Z;x++){var W=r[u++],Y=a._[W];(G=a.W[Y]).index=W;var V=r[u++];G.J=w[V>>4],G.i=v[15&V],q.push(G)}var X=r[u++],J=r[u++],K=r[u++];try{var Q=m(r,u,a,q,o,X,J,K>>4,15&K,H);u+=Q}catch(t){if(t instanceof DNLMarkerError)return this.parse(r,{F:t.s});if(t instanceof EOIMarkerError)break t;throw t}break;case 65500:u+=4;break;case 65535:255!==r[u]&&u--;break;default:var $=g(r,u-2,u-3);if($&&$.u){u=$.offset;break}if(u>=r.length-1)break t;throw new e(\"JpegImage.parse - unknown marker: \"+_.toString(16))}_=i(r,u),u+=2}for(this.width=a.o,this.height=a.s,this.g=f,this.b=c,this.W=[],x=0;x<a.W.length;x++){var tt=y[(G=a.W[x]).L];tt&&(G.$=tt),this.W.push({index:G.index,e:b(0,G),l:G.h/a.X,t:G.A/a.B,P:G.P,c:G.c})}this.p=this.W.length},Y:function(t,e,r){null==r&&(r=!1);var n,i,a,o,s,u,f,c,h,l,p,d,m=this.width/t,y=this.height/e,b=0,g=this.W.length,v=t*e*g,w=new Uint8ClampedArray(v),_=new Uint32Array(t),x=4294967288;for(f=0;f<g;f++){if(i=(n=this.W[f]).l*m,a=n.t*y,b=f,p=n.e,o=n.P+1<<3,i!==d){for(s=0;s<t;s++)c=0|s*i,_[s]=(c&x)<<3|7&c;d=i}for(u=0;u<e;u++)for(l=o*((c=0|u*a)&x)|(7&c)<<3,s=0;s<t;s++)w[b]=p[l+_[s]],b+=g}var E=this.V;if(r||4!==g||E||(E=new Int32Array([-256,255,-256,255,-256,255,-256,255])),E)for(f=0;f<v;)for(c=0,h=0;c<g;c++,f++,h+=2)w[f]=(w[f]*E[h]>>8)+E[h+1];return w},get f(){return this.b?!!this.b.a:3===this.p?0!==this.N&&(82!==this.W[0].index||71!==this.W[1].index||66!==this.W[2].index):1===this.N},z:function(t){for(var e,r,n,i=0,a=t.length;i<a;i+=3)e=t[i],r=t[i+1],n=t[i+2],t[i]=e-179.456+1.402*n,t[i+1]=e+135.459-.344*r-.714*n,t[i+2]=e-226.816+1.772*r;return t},O:function(t){for(var e,r,n,i,a=0,o=0,s=t.length;o<s;o+=4)e=t[o],r=t[o+1],n=t[o+2],i=t[o+3],t[a++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*e+.00048449797120281*i-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*e-.00477271405408747*i+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),t[a++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*e+.000426105652938837*i-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*e+.000770482631801132*i-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),t[a++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*e-.00288260236853442*i+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*e+.000560833691242812*i-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return t.subarray(0,a)},r:function(t){for(var e,r,n,i=0,a=t.length;i<a;i+=4)e=t[i],r=t[i+1],n=t[i+2],t[i]=434.456-e-1.402*n,t[i+1]=119.541-e+.344*r+.714*n,t[i+2]=481.816-e-1.772*r;return t},U:function(t){for(var e,r,n,i,a=0,o=0,s=t.length;o<s;o+=4)e=t[o],r=t[o+1],n=t[o+2],i=t[o+3],t[a++]=255+e*(-6747147073602441e-20*e+.0008379262121013727*r+.0002894718188643294*n+.003264231057537806*i-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*n-.0002748769067499491*i-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*i+.0686742238595345)-i*(.0003361971776183937*i+.7430659151342254),t[a++]=255+e*(.00013596372813588848*e+.000924537132573585*r+.00010567359618683593*n+.0004791864687436512*i-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*n+.0020200308977307156*i-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*i-.09751927774728933)-i*(.0003189131175883281*i+.7364883807733168),t[a++]=255+e*(13598650411385307e-21*e+.00012423956175490851*r+.0004751985097583589*n-36729317476630422e-22*i-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*n+.0007782692450036253*i-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*i-.7591454649749609)-i*(.0003435319965105553*i+.7063770186160144);return t.subarray(0,a)},getData:function(t){var r=t.width,n=t.height,i=t.forceRGB,a=t.isSourcePDF;if(this.p>4)throw new e(\"Unsupported color mode\");var o=this.Y(r,n,a);if(1===this.p&&i){for(var s=o.length,u=new Uint8ClampedArray(3*s),f=0,c=0;c<s;c++){var h=o[c];u[f++]=h,u[f++]=h,u[f++]=h}return u}if(3===this.p&&this.f)return this.z(o);if(4===this.p){if(this.f)return i?this.O(o):this.r(o);if(i)return this.U(o)}return o}},l}();function i(t,e){return t[e]<<8|t[e+1]}t.JpegDecoder=r}(),t.encodeImage=function(e,r,n,i){var a={t256:[r],t257:[n],t258:[8,8,8,8],t259:[1],t262:[2],t273:[1e3],t277:[4],t278:[n],t279:[r*n*4],t282:[[72,1]],t283:[[72,1]],t284:[1],t286:[[0,1]],t287:[[0,1]],t296:[1],t305:[\"Photopea (UTIF.js)\"],t338:[1]};if(i)for(var o in i)a[o]=i[o];var s=new Uint8Array(t.encode([a])),u=new Uint8Array(e),f=new Uint8Array(1e3+r*n*4);for(o=0;o<s.length;o++)f[o]=s[o];for(o=0;o<u.length;o++)f[1e3+o]=u[o];return f.buffer},t.encode=function(e){var r=new Uint8Array(2e4),n=4,i=t._binBE;r[0]=r[1]=77,i.writeUshort(r,2,42);var a=8;i.writeUint(r,n,a),n+=4;for(var o=0;o<e.length;o++){var s=t._writeIFD(i,t._types.basic,r,a,e[o]);a=s[1],o<e.length-1&&(3&a&&(a+=4-(3&a)),i.writeUint(r,s[0],a))}return r.slice(0,a).buffer},t.decode=function(e,r){null==r&&(r={parseMN:!0,debug:!1});var n=new Uint8Array(e),i=0,o=t._binBE.readASCII(n,i,2);i+=2;var s=\"II\"==o?t._binLE:t._binBE;s.readUshort(n,i);i+=2;var u=s.readUint(n,i);i+=4;for(var f=[];;){var c=s.readUshort(n,u),h=s.readUshort(n,u+4);if(0!=c&&(h<1||13<h)){a(\"error in TIFF\");break}if(t._readIFD(s,n,u,f,0,r),0==(u=s.readUint(n,u+2+12*c)))break}return f},t.decodeImage=function(e,r,n){if(!r.data){var i=new Uint8Array(e),o=t._binBE.readASCII(i,0,2);if(null!=r.t256){r.isLE=\"II\"==o,r.width=r.t256[0],r.height=r.t257[0];var s=r.t259?r.t259[0]:1,u=r.t266?r.t266[0]:1;r.t284&&2==r.t284[0]&&a(\"PlanarConfiguration 2 should not be used!\"),7==s&&r.t258&&r.t258.length>3&&(r.t258=r.t258.slice(0,3));var f=r.t277?r.t277[0]:1,c=(r.t258?r.t258[0]:1)*f;1==s&&null!=r.t279&&r.t278&&32803==r.t262[0]&&(c=Math.round(8*r.t279[0]/(r.width*r.t278[0]))),r.t50885&&4==r.t50885[0]&&(c=3*r.t258[0]);var h=8*Math.ceil(r.width*c/8),l=r.t273;(null==l||r.t322)&&(l=r.t324);var p=r.t279;1==s&&1==l.length&&(p=[r.height*(h>>>3)]),(null==p||r.t322)&&(p=r.t325);var d=new Uint8Array(r.height*(h>>>3)),m=0;if(null!=r.t322){for(var y=r.t322[0],b=r.t323[0],g=Math.floor((r.width+y-1)/y),v=Math.floor((r.height+b-1)/b),w=new Uint8Array(0|Math.ceil(y*b*c/8)),_=0;_<v;_++)for(var x=0;x<g;x++){var E=_*g+x;w.fill(0),t.decode._decompress(r,n,i,l[E],p[E],s,w,0,u,y,b),6==s?d=w:t._copyTile(w,0|Math.ceil(y*c/8),b,d,0|Math.ceil(r.width*c/8),r.height,0|Math.ceil(x*y*c/8),_*b)}m=8*d.length}else{if(null==l)return;var D=r.t278?r.t278[0]:r.height;D=Math.min(D,r.height);for(E=0;E<l.length;E++)t.decode._decompress(r,n,i,l[E],p[E],s,d,0|Math.ceil(m/8),u,r.width,D),m+=h*D;m=Math.min(m,8*d.length)}r.data=new Uint8Array(d.buffer,0,0|Math.ceil(m/8))}}},t.decode._decompress=function(r,n,i,o,s,u,f,c,h,l,p){if(r.t271&&\"Panasonic\"==r.t271[0]&&r.t45&&6==r.t45[0]&&(u=34316),1==u)for(var d=0;d<s;d++)f[c+d]=i[o+d];else if(2==u)t.decode._decodeG2(i,o,s,f,c,l,h);else if(3==u)t.decode._decodeG3(i,o,s,f,c,l,h,!!r.t292&&!(1&~r.t292[0]));else if(4==u)t.decode._decodeG4(i,o,s,f,c,l,h);else if(5==u)t.decode._decodeLZW(i,o,s,f,c,8);else if(6==u)t.decode._decodeOldJPEG(r,i,o,s,f,c);else if(7==u||34892==u)t.decode._decodeNewJPEG(r,i,o,s,f,c);else if(8==u||32946==u){var m=new Uint8Array(i.buffer,o+2,s-6),y=e.inflateRaw(m);c+y.length<=f.length&&f.set(y,c)}else 9==u?t.decode._decodeVC5(i,o,s,f,c,r.t33422):32767==u?t.decode._decodeARW(r,i,o,s,f,c):32773==u?t.decode._decodePackBits(i,o,s,f,c):32809==u?t.decode._decodeThunder(i,o,s,f,c):34316==u?t.decode._decodePanasonic(r,i,o,s,f,c):34713==u?t.decode._decodeNikon(r,n,i,o,s,f,c):34676==u?t.decode._decodeLogLuv32(r,i,o,s,f,c):a(\"Unknown compression\",u);var b=r.t258?Math.min(32,r.t258[0]):1,g=r.t277?r.t277[0]:1,v=b*g>>>3,w=Math.ceil(b*g*l/8);if(16==b&&!r.isLE&&null==r.t33422)for(var _=0;_<p;_++)for(var x=c+_*w,E=1;E<w;E+=2){var D=f[x+E];f[x+E]=f[x+E-1],f[x+E-1]=D}if(r.t317&&2==r.t317[0])for(_=0;_<p;_++){var k=c+_*w;if(16==b)for(d=v;d<w;d+=2){var A=(f[k+d+1]<<8|f[k+d])+(f[k+d-v+1]<<8|f[k+d-v]);f[k+d]=255&A,f[k+d+1]=A>>>8&255}else if(3==g)for(d=3;d<w;d+=3)f[k+d]=f[k+d]+f[k+d-3]&255,f[k+d+1]=f[k+d+1]+f[k+d-2]&255,f[k+d+2]=f[k+d+2]+f[k+d-1]&255;else for(d=v;d<w;d++)f[k+d]=f[k+d]+f[k+d-v]&255}},t.decode._decodePanasonic=function(t,e,r,n,i,a){var o,s,u,f,c,h,l,p,d=e.buffer,m=t.t2[0],y=t.t3[0],b=t.t10[0],g=t.t45[0],v=0,w=0,_=0,x=0,E=6==g?new Uint32Array(18):new Uint8Array(16),D=[0,0],k=[0,0],A=0,S=new Uint8Array(16384),M=new Uint16Array(i.buffer);function F(t){if(0==_){var e=new Uint8Array(d,r+w+8184,8200),n=new Uint8Array(d,r+w,8184);S.set(e),S.set(n,e.length),w+=16384}if(5!=g)return(S[x=(_=_-t&131071)>>3^16368]|S[x+1]<<8)>>(7&_)&~(-1<<t);for(o=0;o<16;o++)E[o]=S[_++],_&=16383}function C(t){return S[_+15-t]}function B(){D[0]=0,D[1]=0,k[0]=0,k[1]=0}if(7==g)throw g;if(6==g){var O=12==b,I=O?function(){E[0]=C(0)<<4|C(1)>>4,E[1]=4095&((15&C(1))<<8|C(2)),E[2]=C(3)>>6&3,E[3]=(63&C(3))<<2|C(4)>>6,E[4]=(63&C(4))<<2|C(5)>>6,E[5]=(63&C(5))<<2|C(6)>>6,E[6]=C(6)>>4&3,E[7]=(15&C(6))<<4|C(7)>>4,E[8]=(15&C(7))<<4|C(8)>>4,E[9]=(15&C(8))<<4|C(9)>>4,E[10]=C(9)>>2&3,E[11]=(3&C(9))<<6|C(10)>>2,E[12]=(3&C(10))<<6|C(11)>>2,E[13]=(3&C(11))<<6|C(12)>>2,E[14]=3&C(12),E[15]=C(13),E[16]=C(14),E[17]=C(15),_+=16,x=0}:function(){E[0]=C(0)<<6|C(1)>>2,E[1]=16383&((3&C(1))<<12|C(2)<<4|C(3)>>4),E[2]=C(3)>>2&3,E[3]=(3&C(3))<<8|C(4),E[4]=C(5)<<2|C(6)>>6,E[5]=(63&C(6))<<4|C(7)>>4,E[6]=C(7)>>2&3,E[7]=(3&C(7))<<8|C(8),E[8]=C(9)<<2&1020|C(10)>>6,E[9]=1023&(C(10)<<4|C(11)>>4),E[10]=C(11)>>2&3,E[11]=(3&C(11))<<8|C(12),E[12]=1023&(C(13)<<2&1020|C(14)>>6),E[13]=1023&(C(14)<<4|C(15)>>4),_+=16,x=0},T=O?14:11,P=O?128:512,L=O?2048:8192,N=O?16383:65535,j=O?4095:16383,R=m/T,z=16*R,U=O?18:14;for(h=0;h<y-15;h+=16){var G=Math.min(16,y-h),H=z*G;for(S=new Uint8Array(d,r+v,H),_=0,v+=H,p=0,l=0;p<G;p++,l=0){A=(h+p)*m;for(var Z=0;Z<R;Z++)for(I(),B(),u=0,c=0,o=0;o<T;o++){if(f=1&o,o%3==2){var q=x<U?E[x++]:0;3==q&&(q=4),c=P<<q,u=1<<q}var W=x<U?E[x++]:0;D[f]?(W*=u,c<L&&k[f]>c&&(W+=k[f]-c),k[f]=W):(D[f]=W,W?k[f]=W:W=k[f]),M[A+l++]=W-15<=N?W-15&N:W+2147483633>>31&j}}}}else if(5==g){var Y=12==b?10:9;for(h=0;h<y;h++)for(l=0;l<m;l+=Y)F(0),12==b?(M[A++]=((15&E[1])<<8)+E[0],M[A++]=16*E[2]+(E[1]>>4),M[A++]=((15&E[4])<<8)+E[3],M[A++]=16*E[5]+(E[4]>>4),M[A++]=((15&E[7])<<8)+E[6],M[A++]=16*E[8]+(E[7]>>4),M[A++]=((15&E[10])<<8)+E[9],M[A++]=16*E[11]+(E[10]>>4),M[A++]=((15&E[13])<<8)+E[12],M[A++]=16*E[14]+(E[13]>>4)):14==b&&(M[A++]=E[0]+((63&E[1])<<8),M[A++]=(E[1]>>6)+4*E[2]+((15&E[3])<<10),M[A++]=(E[3]>>4)+16*E[4]+((3&E[5])<<12),M[A++]=((252&E[5])>>2)+(E[6]<<6),M[A++]=E[7]+((63&E[8])<<8),M[A++]=(E[8]>>6)+4*E[9]+((15&E[10])<<10),M[A++]=(E[10]>>4)+16*E[11]+((3&E[12])<<12),M[A++]=((252&E[12])>>2)+(E[13]<<6),M[A++]=E[14]+((63&E[15])<<8))}else{if(4!=g)throw g;for(h=0;h<y;h++)for(l=0;l<m;l++)f=1&(o=l%14),0==o&&B(),o%3==2&&(u=4>>3-F(2)),k[f]?0!=(s=F(8))&&(D[f]-=128<<u,(D[f]<0||4==u)&&(D[f]&=~(-1<<u)),D[f]+=s<<u):(k[f]=F(8),(k[f]||o>11)&&(D[f]=k[f]<<4|F(4))),M[A++]=D[1&l]}},t.decode._decodeVC5=function(){var e,r,n,i=[1,0,1,0,2,2,1,1,3,7,1,2,5,25,1,3,6,48,1,4,6,54,1,5,7,111,1,8,7,99,1,6,7,105,12,0,7,107,1,7,8,209,20,0,8,212,1,9,8,220,1,10,9,393,1,11,9,394,32,0,9,416,1,12,9,427,1,13,10,887,1,18,10,784,1,14,10,790,1,15,10,835,60,0,10,852,1,16,10,885,1,17,11,1571,1,19,11,1668,1,20,11,1669,100,0,11,1707,1,21,11,1772,1,22,12,3547,1,29,12,3164,1,24,12,3166,1,25,12,3140,1,23,12,3413,1,26,12,3537,1,27,12,3539,1,28,13,7093,1,35,13,6283,1,30,13,6331,1,31,13,6335,180,0,13,6824,1,32,13,7072,1,33,13,7077,320,0,13,7076,1,34,14,12565,1,36,14,12661,1,37,14,12669,1,38,14,13651,1,39,14,14184,1,40,15,28295,1,46,15,28371,1,47,15,25320,1,42,15,25336,1,43,15,25128,1,41,15,27300,1,44,15,28293,1,45,16,50259,1,48,16,50643,1,49,16,50675,1,50,16,56740,1,53,16,56584,1,51,16,56588,1,52,17,113483,1,61,17,113482,1,60,17,101285,1,55,17,101349,1,56,17,109205,1,57,17,109207,1,58,17,100516,1,54,17,113171,1,59,18,202568,1,62,18,202696,1,63,18,218408,1,64,18,218412,1,65,18,226340,1,66,18,226356,1,67,18,226358,1,68,19,402068,1,69,19,405138,1,70,19,405394,1,71,19,436818,1,72,19,436826,1,73,19,452714,1,75,19,452718,1,76,19,452682,1,74,20,804138,1,77,20,810279,1,78,20,810790,1,79,20,873638,1,80,20,873654,1,81,20,905366,1,82,20,905430,1,83,20,905438,1,84,21,1608278,1,85,21,1620557,1,86,21,1621582,1,87,21,1621583,1,88,21,1747310,1,89,21,1810734,1,90,21,1810735,1,91,21,1810863,1,92,21,1810879,1,93,22,3621725,1,99,22,3621757,1,100,22,3241112,1,94,22,3494556,1,95,22,3494557,1,96,22,3494622,1,97,22,3494623,1,98,23,6482227,1,102,23,6433117,1,101,23,6989117,1,103,23,6989119,1,105,23,6989118,1,104,23,7243449,1,106,23,7243512,1,107,24,13978233,1,111,24,12964453,1,109,24,12866232,1,108,24,14486897,1,113,24,13978232,1,110,24,14486896,1,112,24,14487026,1,114,24,14487027,1,115,25,25732598,1,225,25,25732597,1,189,25,25732596,1,188,25,25732595,1,203,25,25732594,1,202,25,25732593,1,197,25,25732592,1,207,25,25732591,1,169,25,25732590,1,223,25,25732589,1,159,25,25732522,1,235,25,25732579,1,152,25,25732575,1,192,25,25732489,1,179,25,25732573,1,201,25,25732472,1,172,25,25732576,1,149,25,25732488,1,178,25,25732566,1,120,25,25732571,1,219,25,25732577,1,150,25,25732487,1,127,25,25732506,1,211,25,25732548,1,125,25,25732588,1,158,25,25732486,1,247,25,25732467,1,238,25,25732508,1,163,25,25732552,1,228,25,25732603,1,183,25,25732513,1,217,25,25732587,1,168,25,25732520,1,122,25,25732484,1,128,25,25732562,1,249,25,25732505,1,187,25,25732504,1,186,25,25732483,1,136,25,25928905,1,181,25,25732560,1,255,25,25732500,1,230,25,25732482,1,135,25,25732555,1,233,25,25732568,1,222,25,25732583,1,145,25,25732481,1,134,25,25732586,1,167,25,25732521,1,248,25,25732518,1,209,25,25732480,1,243,25,25732512,1,216,25,25732509,1,164,25,25732547,1,140,25,25732479,1,157,25,25732544,1,239,25,25732574,1,191,25,25732564,1,251,25,25732478,1,156,25,25732546,1,139,25,25732498,1,242,25,25732557,1,133,25,25732477,1,162,25,25732515,1,213,25,25732584,1,165,25,25732514,1,212,25,25732476,1,227,25,25732494,1,198,25,25732531,1,236,25,25732530,1,234,25,25732529,1,117,25,25732528,1,215,25,25732527,1,124,25,25732526,1,123,25,25732525,1,254,25,25732524,1,253,25,25732523,1,148,25,25732570,1,218,25,25732580,1,146,25,25732581,1,147,25,25732569,1,224,25,25732533,1,143,25,25732540,1,184,25,25732541,1,185,25,25732585,1,166,25,25732556,1,132,25,25732485,1,129,25,25732563,1,250,25,25732578,1,151,25,25732501,1,119,25,25732502,1,193,25,25732536,1,176,25,25732496,1,245,25,25732553,1,229,25,25732516,1,206,25,25732582,1,144,25,25732517,1,208,25,25732558,1,137,25,25732543,1,241,25,25732466,1,237,25,25732507,1,190,25,25732542,1,240,25,25732551,1,131,25,25732554,1,232,25,25732565,1,252,25,25732475,1,171,25,25732493,1,205,25,25732492,1,204,25,25732491,1,118,25,25732490,1,214,25,25928904,1,180,25,25732549,1,126,25,25732602,1,182,25,25732539,1,175,25,25732545,1,141,25,25732559,1,138,25,25732537,1,177,25,25732534,1,153,25,25732503,1,194,25,25732606,1,160,25,25732567,1,121,25,25732538,1,174,25,25732497,1,246,25,25732550,1,130,25,25732572,1,200,25,25732474,1,170,25,25732511,1,221,25,25732601,1,196,25,25732532,1,142,25,25732519,1,210,25,25732495,1,199,25,25732605,1,155,25,25732535,1,154,25,25732499,1,244,25,25732510,1,220,25,25732600,1,195,25,25732607,1,161,25,25732604,1,231,25,25732473,1,173,25,25732599,1,226,26,51465122,1,116,26,51465123,0,1],a=[3,3,3,3,2,2,2,1,1,1];function o(t){var e=t[1],r=t[0][e>>>3]>>>7-(7&e)&1;return t[1]++,r}function s(t,r){if(null==e){e={};for(var n=0;n<i.length;n+=4)e[i[n+1]]=i.slice(n,n+4)}for(var a=o(t),s=e[a];null==s;)a=a<<1|o(t),s=e[a];var u=s[3];0!=u&&(u=0==o(t)?u:-u),r[0]=s[2],r[1]=u}function u(t,e){for(var r=0;r<e;r++)1&~t||t++,t>>>=1;return t}function f(t,e){return t>>e}function c(t,e,r,n,i,a){e[r]=f(f(11*t[i]-4*t[i+a]+t[i+a+a]+4,3)+t[n],1),e[r+a]=f(f(5*t[i]+4*t[i+a]-t[i+a+a]+4,3)-t[n],1)}function h(t,e,r,n,i,a){var o=t[i-a]-t[i+a],s=t[i],u=t[n];e[r]=f(f(o+4,3)+s+u,1),e[r+a]=f(f(4-o,3)+s-u,1)}function l(t,e,r,n,i,a){e[r]=f(f(5*t[i]+4*t[i-a]-t[i-a-a]+4,3)+t[n],1),e[r+a]=f(f(11*t[i]-4*t[i-a]+t[i-a-a]+4,3)-t[n],1)}function p(t){return t=n[t=t<0?0:t>4095?4095:t]>>>2}return function(e,i,o,f,d,m){f=new Uint16Array(f.buffer),Date.now();var y,b,g,v,w,_,x,E,D=t._binBE,k=i+o;i+=4;for(var A=1==m[0];i<k;){var S=D.readShort(e,i),M=D.readUshort(e,i+2);if(i+=4,12==S)P=M;else if(20==S)y=M;else if(21==S)b=M;else if(48==S)g=M;else if(53==S)v=M;else if(35==S)M;else if(62==S)w=M;else if(101==S)M;else if(109==S)_=M;else if(84==S)M;else if(106==S)M;else if(107==S)M;else if(108==S)M;else if(102==S)M;else if(104==S)et=M;else if(105==S)M;else{var F=S<0?-S:S,C=65280&F,B=0;if(24576&F&&(8192&F?(B=65535&M,B+=(255&F)<<16):B=65535&M),24576&~F){if(16388==F)i+=4*B;else if(8192!=C&&8448!=C&&9216!=C)throw F.toString(16)}else{if(null==x){x=[];for(var O=0;O<4;O++)x[O]=new Int16Array((y>>>1)*(b>>>1));E=new Int16Array((y>>>1)*(b>>>1)),r=new Int16Array(1024);for(O=0;O<1024;O++){var I=O-512,T=Math.abs(I),P=Math.floor(768*T*T*T/16581375)+T;r[O]=Math.sign(I)*P}n=new Uint16Array(4096);for(O=0;O<4096;O++){var L=O,N=65535*(Math.pow(113,L/4095)-1)/112;n[O]=Math.min(N,65535)}}var j=x[w],R=u(y,1+a[g]),z=u(b,1+a[g]);if(0==g)for(var U=0;U<z;U++)for(var G=0;G<R;G++){var H=i+2*(U*R+G);j[U*(y>>>1)+G]=e[H]<<8|e[H+1]}else{var Z=[e,8*i],q=[],W=0,Y=R*z,V=[0,0],X=0;for(M=0;W<Y;)for(s(Z,V),X=V[0],M=V[1];X>0;)q[W++]=M,X--;var J=(g-1)%3,K=1!=J?R:0,Q=0!=J?z:0;for(U=0;U<z;U++){var $=(U+Q)*(y>>>1)+K,tt=U*R;for(G=0;G<R;G++)j[$+G]=r[q[tt+G]+512]*v}if(2==J){var et=y>>>1,rt=2*R,nt=2*z;for(U=0;U<z;U++)for(G=0;G<rt;G++){O=2*U*et+G;var it=z*et+(ot=U*et+G);0==U?c(j,E,O,it,ot,et):U==z-1?l(j,E,O,it,ot,et):h(j,E,O,it,ot,et)}var at=j;j=E,E=at;for(U=0;U<nt;U++)for(G=0;G<R;G++){var ot;O=U*et+2*G,it=R+(ot=U*et+G);0==G?c(j,E,O,it,ot,1):G==R-1?l(j,E,O,it,ot,1):h(j,E,O,it,ot,1)}at=j;j=E,E=at;for(var st=[],ut=2-~~((g-1)/3),ft=0;ft<3;ft++)st[ft]=_>>14-2*ft&3;var ct=st[ut];if(0!=ct)for(U=0;U<nt;U++)for(G=0;G<rt;G++){j[O=U*et+G]=j[O]<<ct}}}if(9==g&&3==w){var ht=x[0],lt=x[1],pt=x[2],dt=x[3];for(U=0;U<b;U+=2)for(G=0;G<y;G+=2){var mt=U*y+G,yt=ht[H=(U>>>1)*(y>>>1)+(G>>>1)],bt=lt[H]-2048,gt=pt[H]-2048,vt=dt[H]-2048,wt=(bt<<1)+yt,_t=(gt<<1)+yt,xt=yt+vt,Et=yt-vt;A?(f[mt]=p(xt),f[mt+1]=p(_t),f[mt+y]=p(wt),f[mt+y+1]=p(Et)):(f[mt]=p(wt),f[mt+1]=p(xt),f[mt+y]=p(Et),f[mt+y+1]=p(_t))}}i+=4*B}}}Date.now()}}(),t.decode._decodeLogLuv32=function(t,e,r,n,i,a){for(var o=t.width,s=4*o,u=0,f=new Uint8Array(s);u<n;){for(var c=0;c<s;){var h=e[r+u];if(u++,h<128){for(var l=0;l<h;l++)f[c+l]=e[r+u+l];c+=h,u+=h}else{h-=126;for(l=0;l<h;l++)f[c+l]=e[r+u];c+=h,u++}}for(var p=0;p<o;p++)i[a+0]=f[p],i[a+1]=f[p+o],i[a+2]=f[p+2*o],i[a+4]=f[p+3*o],a+=6}},t.decode._ljpeg_diff=function(e,r,n){var i,a,o=t.decode._getbithuff;return i=o(e,r,n[0],n),(a=o(e,r,i,0))&1<<i-1||(a-=(1<<i)-1),a},t.decode._decodeARW=function(e,r,n,i,a,o){var s=e.t256[0],u=e.t257[0],f=e.t258[0],c=e.isLE?t._binLE:t._binBE;if(s*u==i||s*u*1.5==i)if(s*u*1.5!=i){var h,l,p,d,m,y,b,g,v=new Uint16Array(16),w=new Uint8Array(s+1);for(M=0;M<u;M++){for(var _=0;_<s;_++)w[_]=r[n++];for(g=0,S=0;S<s-30;g+=16){for(l=2047&(h=c.readUint(w,g)),p=2047&h>>>11,d=15&h>>>22,m=15&h>>>26,y=0;y<4&&128<<y<=l-p;y++);for(b=30,x=0;x<16;x++)x==d?v[x]=l:x==m?v[x]=p:(v[x]=((c.readUshort(w,g+(b>>3))>>>(7&b)&127)<<y)+p,v[x]>2047&&(v[x]=2047),b+=7);for(x=0;x<16;x++,S+=2){L=v[x]<<1;t.decode._putsF(a,(M*s+S)*f,L<<16-f)}S-=1&S?1:31}}}else for(var x=0;x<i;x+=3){var E=r[n+x+0],D=r[n+x+1],k=r[n+x+2];a[o+x]=D<<4|E>>>4,a[o+x+1]=E<<4|k>>>4,a[o+x+2]=k<<4|D>>>4}else{u+=8;var A,S,M,F=[n,0,0,0],C=new Uint16Array(32770),B=[3857,3856,3599,3342,3085,2828,2571,2314,2057,1800,1543,1286,1029,772,771,768,514,513],O=0,I=t.decode._ljpeg_diff;for(C[0]=15,A=x=0;x<18;x++)for(var T=32768>>>(B[x]>>>8),P=0;P<T;P++)C[++A]=B[x];for(S=s;S--;)for(M=0;M<u+1;M+=2)if(M==u&&(M=1),O+=I(r,F,C),M<u){var L=4095&O;t.decode._putsF(a,(M*s+S)*f,L<<16-f)}}},t.decode._decodeNikon=function(e,r,n,i,a,o,s){var u=[[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,5,4,3,6,2,7,1,0,8,9,11,10,12],[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,57,90,56,39,22,5,4,3,2,1,0,11,12,12],[0,0,1,4,2,3,1,2,0,0,0,0,0,0,0,0,0,5,4,6,3,7,2,8,1,9,0,10,11,12],[0,0,1,4,3,1,1,1,1,1,2,0,0,0,0,0,0,5,6,4,7,8,3,9,2,1,0,10,11,12,13,14],[0,0,1,5,1,1,1,1,1,1,1,2,0,0,0,0,0,8,92,75,58,41,7,6,5,4,3,2,1,0,13,14],[0,0,1,4,2,2,3,1,2,0,0,0,0,0,0,0,0,7,6,8,5,9,4,10,3,11,12,2,0,1,13,14]],f=e.t256[0],c=e.t257[0],h=e.t258[0],l=0,p=0,d=t.decode._make_decoder,m=t.decode._getbithuff,y=r[0].exifIFD.makerNote,b=y.t150?y.t150:y.t140,g=0,v=b[g++],w=b[g++];73!=v&&88!=w||(g+=2110),70==v&&(l=2),14==h&&(l+=3);for(var _=[[0,0],[0,0]],x=e.isLE?t._binLE:t._binBE,E=0;E<2;E++)for(var D=0;D<2;D++)_[E][D]=x.readShort(b,g),g+=2;var k,A,S,M,F,C=1<<h&32767,B=0,O=x.readShort(b,g);g+=2,O>1&&(B=Math.floor(C/(O-1))),68==v&&32==w&&B>0&&(p=x.readShort(b,562));var I=[0,0],T=d(u[l]),P=[i,0,0,0];for(k=0;k<c;k++)for(p&&k==p&&(T=d(u[l+1])),A=0;A<f;A++){E=m(n,P,T[0],T),(F=1+(m(n,P,(S=15&E)-(M=E>>>4),0)<<1)<<M>>>1)&1<<S-1||(F-=(1<<S)-(0==M?1:0)),A<2?I[A]=_[1&k][A]+=F:I[1&A]+=F;var L=Math.min(Math.max(I[1&A],0),(1<<h)-1),N=(k*f+A)*h;t.decode._putsF(o,N,L<<16-h)}},t.decode._putsF=function(t,e,r){r<<=8-(7&e);var n=e>>>3;t[n]|=r>>>16,t[n+1]|=r>>>8,t[n+2]|=r},t.decode._getbithuff=function(e,r,n,i){t.decode._get_byte;var a,o=r[0],s=r[1],u=r[2],f=r[3];if(0==n||u<0)return 0;for(;!f&&u<n&&-1!=(a=e[o++])&&!(f=0);)s=(s<<8)+a,u+=8;if(a=s<<32-u>>>32-n,i?(u-=i[a+1]>>>8,a=255&i[a+1]):u-=n,u<0)throw\"e\";return r[0]=o,r[1]=s,r[2]=u,r[3]=f,a},t.decode._make_decoder=function(t){var e,r,n,i,a,o=[];for(e=16;0!=e&&!t[e];e--);var s=17;for(o[0]=e,n=r=1;r<=e;r++)for(i=0;i<t[r];i++,++s)for(a=0;a<1<<e-r;a++)n<=1<<e&&(o[n++]=r<<8|t[s]);return o},t.decode._decodeNewJPEG=function(e,r,n,i,a,o){i=Math.min(i,r.length-n);var s=e.t347,u=s?s.length:0,f=new Uint8Array(u+i);if(s){for(var c=0,h=0;h<u-1&&(255!=s[h]||217!=s[h+1]);h++)f[c++]=s[h];var l=r[n],p=r[n+1];255==l&&216==p||(f[c++]=l,f[c++]=p);for(h=2;h<i;h++)f[c++]=r[n+h]}else for(h=0;h<i;h++)f[h]=r[n+h];if(32803==e.t262[0]||7==e.t259[0]&&34892==e.t262[0]){var d=e.t258[0],m=t.LosslessJpegDecode(f),y=m.length;if(16==d)if(e.isLE)for(h=0;h<y;h++)a[o+(h<<1)]=255&m[h],a[o+(h<<1)+1]=m[h]>>>8;else for(h=0;h<y;h++)a[o+(h<<1)]=m[h]>>>8,a[o+(h<<1)+1]=255&m[h];else if(14==d||12==d||10==d){var b=16-d;for(h=0;h<y;h++)t.decode._putsF(a,h*d,m[h]<<b)}else{if(8!=d)throw new Error(\"unsupported bit depth \"+d);for(h=0;h<y;h++)a[o+h]=m[h]}}else{var g=new t.JpegDecoder;g.parse(f);var v=g.getData({width:g.width,height:g.height,forceRGB:!0,isSourcePDF:!1});for(h=0;h<v.length;h++)a[o+h]=v[h]}6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodeOldJPEGInit=function(t,e,r,n){var i,o,s,u,f,c=216,h=0,l=0,p=!1,d=t.t513,m=d?d[0]:0,y=t.t514,b=y?y[0]:0,g=t.t324||t.t273||d,v=t.t530,w=0,_=0,x=t.t277?t.t277[0]:1,E=t.t515;if(g&&(l=g[0],p=g.length>1),!p){if(255==e[r]&&e[r+1]==c)return{jpegOffset:r};if(null!=d&&(255==e[r+m]&&e[r+m+1]==c?h=r+m:a(\"JPEGInterchangeFormat does not point to SOI\"),null==y?a(\"JPEGInterchangeFormatLength field is missing\"):(m>=l||m+b<=l)&&a(\"JPEGInterchangeFormatLength field value is invalid\"),null!=h))return{jpegOffset:h}}if(null!=v&&(w=v[0],_=v[1]),null!=d&&null!=y)if(b>=2&&m+b<=l){for(i=255==e[r+m+b-2]&&e[r+m+b-1]==c?new Uint8Array(b-2):new Uint8Array(b),s=0;s<i.length;s++)i[s]=e[r+m+s];a(\"Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables\")}else a(\"JPEGInterchangeFormat+JPEGInterchangeFormatLength > offset to first strip or tile\");if(null==i){var D=0,k=[];k[D++]=255,k[D++]=c;var A=t.t519;if(null==A)throw new Error(\"JPEGQTables tag is missing\");for(s=0;s<A.length;s++)for(k[D++]=255,k[D++]=219,k[D++]=0,k[D++]=67,k[D++]=s,u=0;u<64;u++)k[D++]=e[r+A[s]+u];for(f=0;f<2;f++){var S=t[0==f?\"t520\":\"t521\"];if(null==S)throw new Error((0==f?\"JPEGDCTables\":\"JPEGACTables\")+\" tag is missing\");for(s=0;s<S.length;s++){k[D++]=255,k[D++]=196;var M=19;for(u=0;u<16;u++)M+=e[r+S[s]+u];for(k[D++]=M>>>8,k[D++]=255&M,k[D++]=s|f<<4,u=0;u<16;u++)k[D++]=e[r+S[s]+u];for(u=0;u<M;u++)k[D++]=e[r+S[s]+16+u]}}if(k[D++]=255,k[D++]=192,k[D++]=0,k[D++]=8+3*x,k[D++]=8,k[D++]=t.height>>>8&255,k[D++]=255&t.height,k[D++]=t.width>>>8&255,k[D++]=255&t.width,k[D++]=x,1==x)k[D++]=1,k[D++]=17,k[D++]=0;else for(s=0;s<3;s++)k[D++]=s+1,k[D++]=0!=s?17:(15&w)<<4|15&_,k[D++]=s;null!=E&&0!=E[0]&&(k[D++]=255,k[D++]=221,k[D++]=0,k[D++]=4,k[D++]=E[0]>>>8&255,k[D++]=255&E[0]),i=new Uint8Array(k)}var F=-1;for(s=0;s<i.length-1;){if(255==i[s]&&192==i[s+1]){F=s;break}s++}if(-1==F){var C=new Uint8Array(i.length+10+3*x);C.set(i);var B=i.length;if(F=i.length,(i=C)[B++]=255,i[B++]=192,i[B++]=0,i[B++]=8+3*x,i[B++]=8,i[B++]=t.height>>>8&255,i[B++]=255&t.height,i[B++]=t.width>>>8&255,i[B++]=255&t.width,i[B++]=x,1==x)i[B++]=1,i[B++]=17,i[B++]=0;else for(s=0;s<3;s++)i[B++]=s+1,i[B++]=0!=s?17:(15&w)<<4|15&_,i[B++]=s}if(255==e[l]&&218==e[l+1]){var O=e[l+2]<<8|e[l+3];for((o=new Uint8Array(O+2))[0]=e[l],o[1]=e[l+1],o[2]=e[l+2],o[3]=e[l+3],s=0;s<O-2;s++)o[s+4]=e[l+s+4]}else{var I=0;if((o=new Uint8Array(8+2*x))[I++]=255,o[I++]=218,o[I++]=0,o[I++]=6+2*x,o[I++]=x,1==x)o[I++]=1,o[I++]=0;else for(s=0;s<3;s++)o[I++]=s+1,o[I++]=s<<4|s;o[I++]=0,o[I++]=63,o[I++]=0}return{jpegOffset:r,tables:i,sosMarker:o,sofPosition:F}},t.decode._decodeOldJPEG=function(e,r,n,i,a,o){var s,u,f,c,h=t.decode._decodeOldJPEGInit(e,r,n,i);if(null!=h.jpegOffset)for(s=n+i-h.jpegOffset,f=new Uint8Array(s),d=0;d<s;d++)f[d]=r[h.jpegOffset+d];else{for(u=h.tables.length,(f=new Uint8Array(u+h.sosMarker.length+i+2)).set(h.tables),c=u,f[h.sofPosition+5]=e.height>>>8&255,f[h.sofPosition+6]=255&e.height,f[h.sofPosition+7]=e.width>>>8&255,f[h.sofPosition+8]=255&e.width,255==r[n]&&r[n+1]==SOS||(f.set(h.sosMarker,c),c+=sosMarker.length),d=0;d<i;d++)f[c++]=r[n+d];f[c++]=255,f[c++]=EOI}var l=new t.JpegDecoder;l.parse(f);for(var p=l.getData({width:l.width,height:l.height,forceRGB:!0,isSourcePDF:!1}),d=0;d<p.length;d++)a[o+d]=p[d];e.t262&&6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodePackBits=function(t,e,r,n,i){for(var a=new Int8Array(t.buffer),o=new Int8Array(n.buffer),s=e+r;e<s;){var u=a[e];if(e++,u>=0&&u<128)for(var f=0;f<u+1;f++)o[i]=a[e],i++,e++;if(u>=-127&&u<0){for(f=0;f<1-u;f++)o[i]=a[e],i++;e++}}return i},t.decode._decodeThunder=function(t,e,r,n,i){for(var a=[0,1,0,-1],o=[0,1,2,3,0,-3,-2,-1],s=e+r,u=2*i,f=0;e<s;){var c=t[e],h=c>>>6,l=63&c;if(e++,3==h&&(f=15&l,n[u>>>1]|=f<<4*(1-u&1),u++),0==h)for(var p=0;p<l;p++)n[u>>>1]|=f<<4*(1-u&1),u++;if(2==h)for(p=0;p<2;p++){4!=(d=l>>>3*(1-p)&7)&&(f+=o[d],n[u>>>1]|=f<<4*(1-u&1),u++)}if(1==h)for(p=0;p<3;p++){var d;2!=(d=l>>>2*(2-p)&3)&&(f+=a[d],n[u>>>1]|=f<<4*(1-u&1),u++)}}},t.decode._dmap={1:0,\"011\":1,\"000011\":2,\"0000011\":3,\"010\":-1,\"000010\":-2,\"0000010\":-3},t.decode._lens=function(){var t=function(t,e,r,n){for(var i=0;i<e.length;i++)t[e[i]]=r+i*n},e=\"00110101,000111,0111,1000,1011,1100,1110,1111,10011,10100,00111,01000,001000,000011,110100,110101,101010,101011,0100111,0001100,0001000,0010111,0000011,0000100,0101000,0101011,0010011,0100100,0011000,00000010,00000011,00011010,00011011,00010010,00010011,00010100,00010101,00010110,00010111,00101000,00101001,00101010,00101011,00101100,00101101,00000100,00000101,00001010,00001011,01010010,01010011,01010100,01010101,00100100,00100101,01011000,01011001,01011010,01011011,01001010,01001011,00110010,00110011,00110100\",r=\"0000110111,010,11,10,011,0011,0010,00011,000101,000100,0000100,0000101,0000111,00000100,00000111,000011000,0000010111,0000011000,0000001000,00001100111,00001101000,00001101100,00000110111,00000101000,00000010111,00000011000,000011001010,000011001011,000011001100,000011001101,000001101000,000001101001,000001101010,000001101011,000011010010,000011010011,000011010100,000011010101,000011010110,000011010111,000001101100,000001101101,000011011010,000011011011,000001010100,000001010101,000001010110,000001010111,000001100100,000001100101,000001010010,000001010011,000000100100,000000110111,000000111000,000000100111,000000101000,000001011000,000001011001,000000101011,000000101100,000001011010,000001100110,000001100111\",n=\"11011,10010,010111,0110111,00110110,00110111,01100100,01100101,01101000,01100111,011001100,011001101,011010010,011010011,011010100,011010101,011010110,011010111,011011000,011011001,011011010,011011011,010011000,010011001,010011010,011000,010011011\",i=\"0000001111,000011001000,000011001001,000001011011,000000110011,000000110100,000000110101,0000001101100,0000001101101,0000001001010,0000001001011,0000001001100,0000001001101,0000001110010,0000001110011,0000001110100,0000001110101,0000001110110,0000001110111,0000001010010,0000001010011,0000001010100,0000001010101,0000001011010,0000001011011,0000001100100,0000001100101\",a=\"00000001000,00000001100,00000001101,000000010010,000000010011,000000010100,000000010101,000000010110,000000010111,000000011100,000000011101,000000011110,000000011111\";e=e.split(\",\"),r=r.split(\",\"),n=n.split(\",\"),i=i.split(\",\"),a=a.split(\",\");var o={},s={};return t(o,e,0,1),t(o,n,64,64),t(o,a,1792,64),t(s,r,0,1),t(s,i,64,64),t(s,a,1792,64),[o,s]}(),t.decode._decodeG4=function(e,r,n,i,a,o,s){for(var u=t.decode,f=r<<3,c=0,h=\"\",l=[],p=[],d=0;d<o;d++)p.push(0);p=u._makeDiff(p);for(var m=0,y=0,b=0,g=0,v=0,w=0,_=\"\",x=0,E=8*Math.ceil(o/8);f>>>3<r+n;){b=u._findDiff(p,m+(0==m?0:1),1-v),g=u._findDiff(p,b,v);var D=0;if(1==s&&(D=e[f>>>3]>>>7-(7&f)&1),2==s&&(D=e[f>>>3]>>>(7&f)&1),f++,h+=D,\"H\"==_){if(null!=u._lens[v][h]){var k=u._lens[v][h];h=\"\",c+=k,k<64&&(u._addNtimes(l,c,v),m+=c,v=1-v,c=0,0==--x&&(_=\"\"))}}else\"0001\"==h&&(h=\"\",u._addNtimes(l,g-m,v),m=g),\"001\"==h&&(h=\"\",_=\"H\",x=2),null!=u._dmap[h]&&(y=b+u._dmap[h],u._addNtimes(l,y-m,v),m=y,h=\"\",v=1-v);l.length==o&&\"\"==_&&(u._writeBits(l,i,8*a+w*E),v=0,w++,m=0,p=u._makeDiff(l),l=[])}},t.decode._findDiff=function(t,e,r){for(var n=0;n<t.length;n+=2)if(t[n]>=e&&t[n+1]==r)return t[n]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var r=1;r<t.length;r++)t[r-1]!=t[r]&&e.push(r,t[r]);return e.push(t.length,0,t.length,1),e},t.decode._decodeG2=function(e,r,n,i,a,o,s){for(var u=t.decode,f=r<<3,c=0,h=\"\",l=[],p=0,d=0,m=8*Math.ceil(o/8);f>>>3<r+n;){var y=0;1==s&&(y=e[f>>>3]>>>7-(7&f)&1),2==s&&(y=e[f>>>3]>>>(7&f)&1),f++,h+=y,null!=(c=u._lens[p][h])&&(u._addNtimes(l,c,p),h=\"\",c<64&&(p=1-p),l.length==o&&(u._writeBits(l,i,8*a+d*m),l=[],d++,p=0,7&f&&(f+=8-(7&f)),c>=64&&(f+=8)))}},t.decode._decodeG3=function(e,r,n,i,a,o,s,u){for(var f=t.decode,c=r<<3,h=0,l=\"\",p=[],d=[],m=0;m<o;m++)p.push(0);for(var y=0,b=0,g=0,v=0,w=0,_=-1,x=\"\",E=0,D=!0,k=8*Math.ceil(o/8);c>>>3<r+n;){g=f._findDiff(d,y+(0==y?0:1),1-w),v=f._findDiff(d,g,w);var A=0;if(1==s&&(A=e[c>>>3]>>>7-(7&c)&1),2==s&&(A=e[c>>>3]>>>(7&c)&1),c++,l+=A,D){if(null!=f._lens[w][l]){var S=f._lens[w][l];l=\"\",h+=S,S<64&&(f._addNtimes(p,h,w),w=1-w,h=0)}}else if(\"H\"==x){if(null!=f._lens[w][l]){S=f._lens[w][l];l=\"\",h+=S,S<64&&(f._addNtimes(p,h,w),y+=h,w=1-w,h=0,0==--E&&(x=\"\"))}}else\"0001\"==l&&(l=\"\",f._addNtimes(p,v-y,w),y=v),\"001\"==l&&(l=\"\",x=\"H\",E=2),null!=f._dmap[l]&&(b=g+f._dmap[l],f._addNtimes(p,b-y,w),y=b,l=\"\",w=1-w);l.endsWith(\"000000000001\")&&(_>=0&&f._writeBits(p,i,8*a+_*k),u&&(1==s&&(D=1==(e[c>>>3]>>>7-(7&c)&1)),2==s&&(D=1==(e[c>>>3]>>>(7&c)&1)),c++),l=\"\",w=0,_++,y=0,d=f._makeDiff(p),p=[])}p.length==o&&f._writeBits(p,i,8*a+_*k)},t.decode._addNtimes=function(t,e,r){for(var n=0;n<e;n++)t.push(r)},t.decode._writeBits=function(t,e,r){for(var n=0;n<t.length;n++)e[r+n>>>3]|=t[n]<<7-(r+n&7)},t.decode._decodeLZW=t.decode._decodeLZW=(u=0,f=0,c=0,h=0,l=function(){var t=r>>>3,e=(i[t]<<16|i[t+1]<<8|i[t+2])>>>24-(7&r)-f&(1<<f)-1;return r+=f,e},p=new Uint32Array(16384),d=0,m=function(t){f=t+1,u=h+1},y=function(t){for(var e=t<<2,r=p[e+2],n=s+r-1;65535!=e;)o[n--]=p[e],e=p[e+1];s+=r},b=function(t,e){var r=u<<2,n=t<<2;p[r]=p[3+(e<<2)],p[r+1]=n,p[r+2]=p[n+2]+1,p[r+3]=p[n+3],1+ ++u==1<<f&&12!=f&&f++},function(t,e,n,a,f,g){r=e<<3,i=t,o=a,s=f;var v=e+n<<3,w=0,_=0;for(function(t){if(t!=d){d=t,h=1+(c=1<<t);for(var e=0;e<h+1;e++)p[4*e]=p[4*e+3]=e,p[4*e+1]=65535,p[4*e+2]=1}}(g),m(g);r<v&&(w=l())!=h;){if(w==c){if(m(g),(w=l())==h)break;y(w)}else w<u?(y(w),b(_,w)):(b(_,_),y(u-1));_=w}return s}),t.tags={},t._types=function(){var t=new Array(250);t.fill(0);return{basic:{main:t=t.concat([0,0,0,0,4,3,3,3,3,3,0,0,3,0,0,0,3,0,0,2,2,2,2,4,3,0,0,3,4,4,3,3,5,5,3,2,5,5,0,0,0,0,4,4,0,0,3,3,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,2,2,3,5,5,3,0,3,3,4,4,4,3,4,0,0,0,0,0,0,0,0,0,3,3,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),rest:{33432:2,33434:5,33437:5,34665:4,34850:3,34853:4,34855:3,34864:3,34866:4,36864:7,36867:2,36868:2,37121:7,37377:10,37378:5,37380:10,37381:5,37383:3,37384:3,37385:3,37386:5,37510:7,37520:2,37521:2,37522:2,40960:7,40961:3,40962:4,40963:4,40965:4,41486:5,41487:5,41488:3,41985:3,41986:3,41987:3,41988:5,41989:3,41990:3,41993:3,41994:3,41995:7,41996:3,42032:2,42033:2,42034:5,42036:2,42037:2,59932:7}},gps:{main:[1,2,5,2,5,1,5,5,0,9],rest:{18:2,29:2}}}}(),t._readIFD=function(e,r,n,i,o,s){var u=e.readUshort(r,n);n+=2;var f={};s.debug&&a(\"   \".repeat(o),i.length-1,\">>>----------------\");for(var c=0;c<u;c++){var h=e.readUshort(r,n);n+=2;var l=e.readUshort(r,n);n+=2;var p=e.readUint(r,n);n+=4;var d=e.readUint(r,n);n+=4;var m=[];if(1==l||7==l){var y=p<5?n-4:d;y+p>r.buffer.byteLength&&(p=r.buffer.byteLength-y),m=new Uint8Array(r.buffer,y,p)}if(2==l){var b=p<5?n-4:d,g=r[b],v=Math.max(0,Math.min(p-1,r.length-b));g<128||0==v?m.push(e.readASCII(r,b,v)):m=new Uint8Array(r.buffer,b,v)}if(3==l)for(var w=0;w<p;w++)m.push(e.readUshort(r,(p<3?n-4:d)+2*w));if(4==l||13==l)for(w=0;w<p;w++)m.push(e.readUint(r,(p<2?n-4:d)+4*w));if(5==l||10==l){var _=5==l?e.readUint:e.readInt;for(w=0;w<p;w++)m.push([_(r,d+8*w),_(r,d+8*w+4)])}if(8==l)for(w=0;w<p;w++)m.push(e.readShort(r,(p<3?n-4:d)+2*w));if(9==l)for(w=0;w<p;w++)m.push(e.readInt(r,(p<2?n-4:d)+4*w));if(11==l)for(w=0;w<p;w++)m.push(e.readFloat(r,d+4*w));if(12==l)for(w=0;w<p;w++)m.push(e.readDouble(r,d+8*w));if(0==p||0!=m.length){if(s.debug&&a(\"   \".repeat(o),h,l,t.tags[h],m),f[\"t\"+h]=m,330==h&&f.t272&&\"DSLR-A100\"==f.t272[0]);else if(330==h||34665==h||34853==h||50740==h&&e.readUshort(r,e.readUint(m,0))<300||61440==h){var x=50740==h?[e.readUint(m,0)]:m,E=[];for(w=0;w<x.length;w++)t._readIFD(e,r,x[w],E,o+1,s);330==h&&(f.subIFD=E),34665==h&&(f.exifIFD=E[0]),34853==h&&(f.gpsiIFD=E[0]),50740==h&&(f.dngPrvt=E[0]),61440==h&&(f.fujiIFD=E[0])}if(37500==h&&s.parseMN){var D=m;if(\"Nikon\"==e.readASCII(D,0,5))f.makerNote=t.decode(D.slice(10).buffer)[0];else if(\"OLYMP\"==e.readASCII(D,0,5)||\"OM SYSTEM\"==e.readASCII(D,0,9)){var k=[8208,8224,8240,8256,8272],A=[];t._readIFD(e,D,77==D[1]?16:85==D[5]?12:8,A,o+1,s);var S=f.makerNote=A.pop();for(w=0;w<k.length;w++){var M=\"t\"+k[w];null!=S[M]&&(t._readIFD(e,D,S[M][0],A,o+1,s),S[M]=A.pop())}S.t12288&&(t._readIFD(e,S.t12288,0,A,o+1,s),S.t12288=A.pop())}else if(e.readUshort(r,d)<300&&e.readUshort(r,d+4)<=12){A=[];t._readIFD(e,r,d,A,o+1,s),f.makerNote=A[0]}}}else if(a(h,\"unknown TIFF tag type: \",l,\"num:\",p),0==c)return}return i.push(f),s.debug&&a(\"   \".repeat(o),\"<<<---------------\"),n},t._writeIFD=function(e,r,n,i,a){var o=Object.keys(a),s=o.length;a.exifIFD&&s--,a.gpsiIFD&&s--,e.writeUshort(n,i,s);for(var u=(i+=2)+12*s+4,f=0;f<o.length;f++){var c=o[f];if(\"t34665\"!=c&&\"t34853\"!=c){\"exifIFD\"==c&&(c=\"t34665\"),\"gpsiIFD\"==c&&(c=\"t34853\");var h=parseInt(c.slice(1)),l=r.main[h];if(null==l&&(l=r.rest[h]),null==l||0==l)throw new Error(\"unknown type of tag: \"+h);var p=a[c];if(34665==h)p=[u],u=t._writeIFD(e,r,n,u,a.exifIFD)[1];if(34853==h)p=[u],u=t._writeIFD(e,t._types.gps,n,u,a.gpsiIFD)[1];2==l&&(p=p[0]+\"\\0\");var d=p.length;e.writeUshort(n,i,h),i+=2,e.writeUshort(n,i,l),i+=2,e.writeUint(n,i,d);var m=[-1,1,1,2,4,8,0,1,0,4,8,0,8][l]*d,y=i+=4;if(m>4&&(e.writeUint(n,i,u),y=u),1==l||7==l)for(var b=0;b<d;b++)n[y+b]=p[b];else if(2==l)e.writeASCII(n,y,p);else if(3==l)for(b=0;b<d;b++)e.writeUshort(n,y+2*b,p[b]);else if(4==l)for(b=0;b<d;b++)e.writeUint(n,y+4*b,p[b]);else if(5==l||10==l){var g=5==l?e.writeUint:e.writeInt;for(b=0;b<d;b++){var v=p[b],w=v[0],_=v[1];if(null==w)throw\"e\";g(n,y+8*b,w),g(n,y+8*b+4,_)}}else if(9==l)for(b=0;b<d;b++)e.writeInt(n,y+4*b,p[b]);else{if(12!=l)throw l;for(b=0;b<d;b++)e.writeDouble(n,y+8*b,p[b])}m>4&&(u+=m+=1&m),i+=4}}return[i,u]},t.toRGBA8=function(t,e){function r(t){return t<.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}var n=t.width,i=t.height,o=n*i,s=t.data,u=new Uint8Array(4*o),f=t.t262?t.t262[0]:2,c=t.t258?Math.min(32,t.t258[0]):1;null==t.t262&&1==c&&(f=0);var h=t.t277?t.t277[0]:t.t258?t.t258.length:[1,1,3,1,1,4,3][f],l=t.t339?t.t339[0]:null;if(1==f&&32==c&&3!=l)throw\"e\";var p=Math.ceil(h*c*n/8);if(0==f){e=1/256;for(var d=0;d<i;d++){var m=d*p,y=d*n;if(1==c)for(var b=0;b<n;b++){var g=y+b<<2,v=s[m+(b>>3)]>>7-(7&b)&1;u[g]=u[g+1]=u[g+2]=255*(1-v),u[g+3]=255}if(4==c)for(b=0;b<n;b++){g=y+b<<2,v=s[m+(b>>1)]>>4-4*(1&b)&15;u[g]=u[g+1]=u[g+2]=17*(15-v),u[g+3]=255}if(8==c)for(b=0;b<n;b++){g=y+b<<2,v=s[m+b];u[g]=u[g+1]=u[g+2]=255-v,u[g+3]=255}if(16==c)for(b=0;b<n;b++){g=y+b<<2,v=s[(_=m+2*b)+1]<<8|s[_];u[g]=u[g+1]=u[g+2]=Math.min(255,255-~~(v*e)),u[g+3]=255}}}else if(1==f){null==e&&(e=1/256);var w=3&s.length?null:new Float32Array(s.buffer);for(d=0;d<i;d++){m=d*p,y=d*n;if(1==c)for(b=0;b<n;b++){g=y+b<<2,v=s[m+(b>>3)]>>7-(7&b)&1;u[g]=u[g+1]=u[g+2]=255*v,u[g+3]=255}if(2==c)for(b=0;b<n;b++){g=y+b<<2,v=s[m+(b>>2)]>>6-2*(3&b)&3;u[g]=u[g+1]=u[g+2]=85*v,u[g+3]=255}if(8==c)for(b=0;b<n;b++){g=y+b<<2,v=s[m+b*h];u[g]=u[g+1]=u[g+2]=v,u[g+3]=255}if(16==c)for(b=0;b<n;b++){g=y+b<<2,v=s[(_=m+2*b)+1]<<8|s[_];u[g]=u[g+1]=u[g+2]=Math.min(255,~~(v*e)),u[g+3]=255}if(32==c)for(b=0;b<n;b++){var _;g=y+b<<2,v=w[_=(m>>>2)+b];u[g]=u[g+1]=u[g+2]=~~(.5+255*v),u[g+3]=255}}}else if(2==f)if(8==c){if(1==h)for(b=0;b<o;b++)u[4*b]=u[4*b+1]=u[4*b+2]=s[b],u[4*b+3]=255;if(3==h)for(b=0;b<o;b++){var x=3*b;u[g=b<<2]=s[x],u[g+1]=s[x+1],u[g+2]=s[x+2],u[g+3]=255}if(h>=4)for(b=0;b<o;b++){x=b*h;u[g=b<<2]=s[x],u[g+1]=s[x+1],u[g+2]=s[x+2],u[g+3]=s[x+3]}}else if(16==c){if(4==h)for(b=0;b<o;b++){x=8*b+1;u[g=b<<2]=s[x],u[g+1]=s[x+2],u[g+2]=s[x+4],u[g+3]=s[x+6]}if(3==h)for(b=0;b<o;b++){x=6*b+1;u[g=b<<2]=s[x],u[g+1]=s[x+2],u[g+2]=s[x+4],u[g+3]=255}}else{if(32!=c)throw c;var E=new Float32Array(s.buffer),D=0;for(b=0;b<E.length;b++)D=Math.min(D,E[b]);if(D<0)for(b=0;b<s.length;b+=4){var k=s[b];s[b]=s[b+3],s[b+3]=k,k=s[b+1],s[b+1]=s[b+2],s[b+2]=k}var A=[];for(b=0;b<65536;b++)A.push(r(b/65535));for(b=0;b<E.length;b++){var S=Math.max(0,Math.min(1,E[b]));E[b]=A[~~(.5+65535*S)]}if(3==h)for(b=0;b<o;b++){x=3*b;u[g=b<<2]=~~(.5+255*E[x]),u[g+1]=~~(.5+255*E[x+1]),u[g+2]=~~(.5+255*E[x+2]),u[g+3]=255}else{if(4!=h)throw h;for(b=0;b<o;b++){x=4*b;u[g=b<<2]=~~(.5+255*E[x]),u[g+1]=~~(.5+255*E[x+1]),u[g+2]=~~(.5+255*E[x+2]),u[g+3]=~~(.5+255*E[x+3])}}}else if(3==f){var M=t.t320,F=1<<c,C=8==c&&h>1&&t.t338&&0!=t.t338[0];for(d=0;d<i;d++)for(var B=0;B<n;B++){g=(b=d*n+B)<<2;var O=0,I=d*p;if(1==c)O=s[I+(B>>>3)]>>>7-(7&B)&1;else if(2==c)O=s[I+(B>>>2)]>>>6-2*(3&B)&3;else if(4==c)O=s[I+(B>>>1)]>>>4-4*(1&B)&15;else{if(8!=c)throw c;O=s[I+B*h]}u[g]=M[O]>>8,u[g+1]=M[F+O]>>8,u[g+2]=M[F+F+O]>>8,u[g+3]=C?s[I+B*h+1]:255}}else if(5==f){var T=h>4?1:0;for(b=0;b<o;b++){g=b<<2;var P=b*h;if(window.UDOC){var L=s[P],N=s[P+1],j=s[P+2],R=s[P+3],z=UDOC.C.cmykToRgb([L*(1/255),N*(1/255),j*(1/255),R*(1/255)]);u[g]=~~(.5+255*z[0]),u[g+1]=~~(.5+255*z[1]),u[g+2]=~~(.5+255*z[2])}else{L=255-s[P],N=255-s[P+1],j=255-s[P+2],R=(255-s[P+3])*(1/255);u[g]=~~(L*R+.5),u[g+1]=~~(N*R+.5),u[g+2]=~~(j*R+.5)}u[g+3]=255*(1-T)+s[P+4]*T}}else if(6==f&&t.t278){var U=t.t278[0];for(d=0;d<i;d+=U){b=d*n;for(var G=U*n,H=0;H<G;H++){g=4*(b+H),j=s[(P=3*b+4*(H>>>1))+(1&H)];var Z=s[P+2]-128,q=s[P+3]-128,W=j+((q>>2)+(q>>3)+(q>>5)),Y=j-((Z>>2)+(Z>>4)+(Z>>5))-((q>>1)+(q>>3)+(q>>4)+(q>>5)),V=j+(Z+(Z>>1)+(Z>>2)+(Z>>6));u[g]=Math.max(0,Math.min(255,W)),u[g+1]=Math.max(0,Math.min(255,Y)),u[g+2]=Math.max(0,Math.min(255,V)),u[g+3]=255}}}else if(32845==f)for(d=0;d<i;d++)for(B=0;B<n;B++){g=4*(d*n+B);var X=s[(P=6*(d*n+B))+1]<<8|s[P],J=(X=Math.pow(2,(X+.5)/256-64),(s[P+3]+.5)/410),K=(s[P+5]+.5)/410,Q=9*J/(6*J-16*K+12),$=4*K/(6*J-16*K+12),tt=Q*X/$,et=(1-Q-$)*X/$;W=2.69*tt-1.276*(j=X)-.414*et,Y=-1.022*tt+1.978*j+.044*et,V=.061*tt-.224*j+1.163*et;u[g]=255*r(Math.min(W,1)),u[g+1]=255*r(Math.min(Y,1)),u[g+2]=255*r(Math.min(V,1)),u[g+3]=255}else a(\"Unknown Photometric interpretation: \"+f);return u},t.replaceIMG=function(e){null==e&&(e=document.getElementsByTagName(\"img\"));for(var r=[\"tif\",\"tiff\",\"dng\",\"cr2\",\"nef\"],n=0;n<e.length;n++){var i=e[n],a=i.getAttribute(\"src\");if(null!=a){var o=a.split(\".\").pop().toLowerCase();if(-1!=r.indexOf(o)){var s=new XMLHttpRequest;t._xhrs.push(s),t._imgs.push(i),s.open(\"GET\",a),s.responseType=\"arraybuffer\",s.onload=t._imgLoaded,s.send()}}}},t._xhrs=[],t._imgs=[],t._imgLoaded=function(e){var r=t._xhrs.indexOf(e.target),n=t._imgs[r];t._xhrs.splice(r,1),t._imgs.splice(r,1),n.setAttribute(\"src\",t.bufferToURI(e.target.response))},t.bufferToURI=function(e){var r=t.decode(e),n=r,i=0,a=n[0];r[0].subIFD&&(n=n.concat(r[0].subIFD));for(var o=0;o<n.length;o++){var s=n[o];if(!(null==s.t258||s.t258.length<3)){var u=s.t256*s.t257;u>i&&(i=u,a=s)}}t.decodeImage(e,a,r);var f=t.toRGBA8(a),c=a.width,h=a.height,l=document.createElement(\"canvas\");l.width=c,l.height=h;var p=l.getContext(\"2d\"),d=new ImageData(new Uint8ClampedArray(f.buffer),c,h);return p.putImageData(d,0,0),l.toDataURL()},t._binBE={nextZero:function(t,e){for(;0!=t[e];)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+1],n[1]=e[r+0],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.ui32[0]},readASCII:function(t,e,r){for(var n=\"\",i=0;i<r;i++)n+=String.fromCharCode(t[e+i]);return n},readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+3-i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+7-i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=r>>8&255,t[e+1]=255&r},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+3]=i[0],e[r+2]=i[1],e[r+1]=i[2],e[r+0]=i[3]},writeUint:function(t,e,r){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},writeASCII:function(t,e,r){for(var n=0;n<r.length;n++)t[e+n]=r.charCodeAt(n)},writeDouble:function(e,r,n){t._binBE.fl64[0]=n;for(var i=0;i<8;i++)e[r+i]=t._binBE.ui8[7-i]}},t._binBE.ui8=new Uint8Array(8),t._binBE.i16=new Int16Array(t._binBE.ui8.buffer),t._binBE.i32=new Int32Array(t._binBE.ui8.buffer),t._binBE.ui32=new Uint32Array(t._binBE.ui8.buffer),t._binBE.fl32=new Float32Array(t._binBE.ui8.buffer),t._binBE.fl64=new Float64Array(t._binBE.ui8.buffer),t._binLE={nextZero:t._binBE.nextZero,readUshort:function(t,e){return t[e+1]<<8|t[e]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.ui32[0]},readASCII:t._binBE.readASCII,readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=255&r,t[e+1]=r>>8&255},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+0]=i[0],e[r+1]=i[1],e[r+2]=i[2],e[r+3]=i[3]},writeUint:function(t,e,r){t[e]=r>>>0&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24&255},writeASCII:t._binBE.writeASCII},t._copyTile=function(t,e,r,n,i,a,o,s){for(var u=Math.min(e,i-o),f=Math.min(r,a-s),c=0;c<f;c++)for(var h=(s+c)*i+o,l=c*e,p=0;p<u;p++)n[h+p]=t[l+p]},t.LosslessJpegDecode=function(){var t,e;function r(){return t[e++]}function n(){return t[e++]<<8|t[e++]}function i(t){for(var e=r(),n=[0,0,0,255],i=[],o=0;o<16;o++)i[o]=r();for(o=0;o<16;o++)for(var s=0;s<i[o];s++){n[a(n,0,o+1,1)+3]=r()}var u=new Uint8Array(256);t[e]=[new Uint8Array(n),u];for(o=0;o<256;o++){for(var f=8,c=o,h=0;255==n[h+3]&&0!=f;)h=n[h+(c>>--f&1)];u[o]=h}}function a(t,e,r,n){if(255!=t[e+3])return 0;if(0==r)return e;for(var i=0;i<2;i++){0==t[e+i]&&(t[e+i]=t.length,t.push(0,0,n,255));var o=a(t,t[e+i],r-1,n+1);if(0!=o)return o}return 0}function o(t){for(var e=t.b,r=t.f;e<25&&t.a<t.d;){var n=t.data[t.a++];255!=n||t.c||t.a++,r=r<<8|n,e+=8}if(e<0)throw\"e\";t.b=e,t.f=r}function s(t,e){return e.b<t&&o(e),e.f>>(e.b-=t)&65535>>16-t}function u(t,e){var r=t[0],n=0,i=255;e.b<16&&o(e);var a=e.f>>e.b-8&255;for(i=r[(n=t[1][a])+3],e.b-=r[n+2];255==i;)i=r[(n=r[n+(e.f>>--e.b&1)])+3];return i}function f(t,e){return t<32768>>16-e&&(t+=1-(1<<e)),t}function c(t,e){var r=u(t,e);return 0==r?0:16==r?-32768:f(s(r,e),r)}function h(t,e,r,n,i,a){for(var o=0,s=0;s<a;s++){for(var u=s*e,f=0;f<e;f+=i){o++;for(var h=0;h<i;h++)t[u+f+h]=c(n[h],r)}if(0!=r.e&&o%r.e==0&&0!=s){for(var l=r.a,p=r.data;255!=p[l]||!(208<=p[l+1]&&p[l+1]<=215);)l--;r.a=l+2,r.f=0,r.b=0}}}function l(t,e){return f(s(t,e),t)}function p(t,e,r,n,i,a,o,s){for(var u=r*o,f=i;f<a;f++)t[f]+=1<<s-1;for(var c=o;c<u;c+=o)for(f=i;f<a;f++)t[c+f]+=t[c+f-o];for(var h=1;h<n;h++){var l=h*u;for(f=i;f<a;f++)t[l+f]+=t[l+f-u];for(c=o;c<u;c+=o)for(f=i;f<a;f++){var p=l+c+f,d=p-u,m=t[p-o],y=0;if(0==e)y=0;else if(1==e)y=m;else if(2==e)y=t[d];else if(3==e)y=t[d-o];else if(4==e)y=m+(t[d]-t[d-o]);else if(5==e)y=m+(t[d]-t[d-o]>>>1);else if(6==e)y=t[d]+(m-t[d-o]>>>1);else{if(7!=e)throw e;y=m+t[d]>>>1}t[p]+=y}}}return function(a){if(t=a,e=0,65496!=n())throw\"e\";for(var o=[],s=0,f=0,c=0,d=[],m=[],y=[],b=0,g=0,v=0;;){var w=n();if(65535!=w){var _=n();if(65475==w){f=r(),g=n(),v=n(),b=r();for(var x=0;x<b;x++){var E=r(),D=r();if(0!=r())throw\"e\";o[E]=[x,D>>4,15&D]}}else if(65476==w)for(var k=e+_-2;e<k;)i(m);else{if(65498==w){e++;for(x=0;x<b;x++){var A=o[r()];y[A[0]]=m[r()>>>4],d[A[0]]=A.slice(1)}s=r(),e+=2;break}65501==w?c=n():e+=_-2}}else e--}var S=new(f>8?Uint16Array:Uint8Array)(g*v*b),M={b:0,f:0,c:8==s,a:e,data:t,d:t.length,e:c};if(M.c)!function(r,n,i,a,o){for(var s=t.length-e,f=0;f<s;f+=4){var c=t[e+f];t[e+f]=t[e+f+3],t[e+f+3]=c,c=t[e+f+1],t[e+f+1]=t[e+f+2],t[e+f+2]=c}for(var h=0;h<o;h++)for(var p=32768,d=32768,m=0;m<n;m+=2){var y=u(a,i),b=u(a,i);0!=y&&(p+=l(y,i)),0!=b&&(d+=l(b,i)),r[h*n+m]=65535&p,r[h*n+m+1]=65535&d}}(S,v*b,M,y[0],g);else{var F=[],C=0,B=0;for(x=0;x<b;x++){var O=d[x];(G=O[0])>C&&(C=G),(U=O[1])>B&&(B=U),F.push(G*U)}if(1!=C||1!=B){if(3!=b||1!=F[1]||1!=F[2])throw\"e\";if(2!=C||1!=B&&2!=B)throw\"e\";var I=[],T=0;for(x=0;x<b;x++){for(var P=0;P<F[x];P++)I.push(y[x]);T+=F[x]}var L=v/C,N=g/B,j=L*N;h(S,L*T,M,I,T,N),p(S,s,L,N,T-2,T,T,f);var R=new Uint16Array(j*F[0]);if(2==C&&2==B){for(x=0;x<j;x++)R[4*x]=S[6*x],R[4*x+1]=S[6*x+1],R[4*x+2]=S[6*x+2],R[4*x+3]=S[6*x+3];p(R,s,4*L,N,0,1,1,f);for(x=0;x<j;x++)S[6*x]=R[4*x],S[6*x+1]=R[4*x+1],S[6*x+2]=R[4*x+2],S[6*x+3]=R[4*x+3]}if(2==C&&1==B){for(x=0;x<j;x++)R[2*x]=S[4*x],R[2*x+1]=S[4*x+1];p(R,s,2*L,N,0,1,1,f);for(x=0;x<j;x++)S[4*x]=R[2*x],S[4*x+1]=R[2*x+1]}for(var z=S.slice(0),U=0;U<g;U++)if(2==B)for(var G=0;G<v;G++){var H=((U>>>1)*L+(G>>>1))*T,Z=2*(1&U)+(1&G);S[q=(U*v+G)*b]=z[H+Z],S[q+1]=z[H+4],S[q+2]=z[H+5]}else for(G=0;G<v;G++){var q;H=(U*L+(G>>>1))*T,Z=1&G;S[q=(U*v+G)*b]=z[H+Z],S[q+1]=z[H+2],S[q+2]=z[H+3]}}else if(h(S,v*b,M,y,b,g),0==c)p(S,s,v,g,0,b,b,f);else{var W=Math.floor(c/v);for(U=0;U<g;U+=W){var Y=S.slice(U*v*b,(U+W)*v*b);p(Y,s,v,W,0,b,b,f),S.set(Y,U*v*b)}}}return S}}(),function(){var e=2,r=4,n=5,i=6,a=7,o=12,s=13,u=14,f=15,c=17;function h(t){var e={c:new Int8Array(2<<t.u)};return function(t,e,r){var n=[e,3*e+18,5*e+67,7*e+276,r];t.o=e,t.w=(n[4]+2*e)/(2*e+1)+1|0,t.v=Math.ceil(Math.log2(t.w)),t.t=9,function(t,e){for(var r=-e[4],n=0;r<=e[4];n++,r++)t[n]=r<=-e[3]?-4:r<=-e[2]?-3:r<=-e[1]?-2:r<-e[0]?-1:r<=e[0]?0:r<e[1]?1:r<e[2]?2:r<e[3]?3:4}(t.c,n)}(e,0,t.g),e}function l(t){for(var e=[[],[],[]],r=Math.max(2,t.w+32>>>6),n=0;n<3;n++)for(var i=0;i<41;i++)e[n][i]=[r,1];return e}function p(t,e){var r=0,n=8-t.a;t.j,t.a;if(e){if(e>=n)do{r<<=n,e-=n,r|=t[t.j]&(1<<n)-1,t.j++,n=8}while(e>=8);e&&(r<<=e,n-=e,r|=t[t.j]>>>n&(1<<e)-1),t.a=8-n}return r}function d(t,e,r,n,i,a,o,s){null==s&&(s=0);var u,f,c,h,l,d,m=a+1,y=m%2,b=0,g=n[i],v=n[i-1],w=n[i-2][m],_=v[m-1],x=v[m],E=v[m+1],D=g[m-1],k=g[m+1],A=Math.abs;if(y&&(c=A(E-x),h=A(w-x),l=A(_-x)),y){if(d=(d=c>l&&h<c?w+_:c<l&&h<l?w+E:E+_)+2*x>>>2,s)return void(g[m]=d);u=e.t*e.c[t.g+x-w]+e.c[t.g+_-x]}else d=x>_&&x>E||x<_&&x<E?k+D+2*x>>>2:D+k>>>1,u=e.t*e.c[t.g+x-_]+e.c[t.g+_-D];f=A(u);var S=function(t){for(var e=-1,r=0;!r;e++)r=t[t.j]>>>7-t.a&1,t.a++,t.a&=7,t.a||t.j++;return e}(r);if(S<t.n-e.v-1){var M=function(t,e){var r=0;if(e<t)for(;r<=14&&e<<++r<t;);return r}(o[f][0],o[f][1]);b=p(r,M)+(S<<M)}else b=p(r,e.v)+1;b=1&b?-1-(b>>>1):b>>>1,o[f][0]+=A(b),o[f][1]==t.f&&(o[f][0]>>>=1,o[f][1]>>>=1),o[f][1]++,d=u<0?d-b:d+b,t.i&&(d<0?d+=e.w:d>t.g&&(d-=e.w)),g[m]=d>=0?Math.min(d,t.g):0}function m(t,e,r){for(var n=t[0].length,i=e;i<=r;i++)t[i][0]=t[i-1][1],t[i][n-1]=t[i-1][n-2]}function y(t){m(t,a,o),m(t,e,r),m(t,f,c)}function b(t,e,n,i,a,o,u,f,c,h,l,p,m){for(var b=0,g=1,v=a<s&&a>r;g<t.m;)b<t.m&&(d(t,e,n,i,a,b,u[c],t.h&&(v&&h||!v&&(l||(b&p)==m))),d(t,e,n,i,o,b,u[c],t.h&&(!v&&h||v&&(l||(b&p)==m))),b+=2),b>8&&(d(t,e,n,i,a,g,f[c]),d(t,e,n,i,o,g,f[c]),g+=2);y(i)}function g(t,n,i,s,u,h){b(t,n,i,s,e,a,u,h,0,0,1,0,8),b(t,n,i,s,8,f,u,h,1,0,1,0,8),b(t,n,i,s,3,9,u,h,2,1,0,3,0),b(t,n,i,s,10,16,u,h,0,0,0,3,2),b(t,n,i,s,r,11,u,h,1,0,0,3,2),b(t,n,i,s,o,c,u,h,2,1,0,3,0)}function v(t,r,n,i,o,s){var u=s.length,c=t.l;o+1==t.s&&(c=t.e-o*t.l);for(var h=6*t.e*i+o*t.l,l=0;l<6;l++){for(var p=0;p<c;p++){var d,m=s[l%u][p%u];d=0==m?e+(l>>>1):2==m?f+(l>>>1):a+l;var y=t.h?(2*p/3&2147483646|p%3&1)+(p%3>>>1):p>>>1;r[h+p]=n[d][y+1]}h+=t.e}}t._decompressRAF=function(a,f){var p=function(e){var r=t._binBE.readUshort,n={b:r(e,0),i:e[2],C:e[3],u:e[4],q:r(e,5),k:r(e,7),e:r(e,9),l:r(e,11),s:e[13],d:r(e,14)};if(18771!=n.b||n.i>1||n.q<6||n.q%6||n.e<768||n.e%24||768!=n.l||n.k<n.l||n.k%n.l||n.k-n.e>=n.l||n.s>16||n.s!=n.k/n.l||n.s!=Math.ceil(n.e/n.l)||n.d!=n.q/6||12!=n.u&&14!=n.u&&16!=n.u||16!=n.C&&0!=n.C)throw\"Invalid data\";if(0==n.i)throw\"Not implemented. We need this file!\";return n.h=16==n.C,n.m=0|(n.h?2*n.l/3:n.l>>>1),n.A=n.m+2,n.f=64,n.g=(1<<n.u)-1,n.n=4*n.u,n}(a),d=function(e,r){var n=new Array(r.s),i=4*r.s,a=16+i;12&i&&(a+=16-(12&i));for(var o=0,s=16;o<r.s;s+=4){var u=t._binBE.readUint(e,s);n[o]=e.slice(a,a+u),n[o].j=0,n[o].a=0,a+=u,o++}if(a!=e.length)throw\"Invalid data\";return n}(a,p),m=h(p),b=new Int16Array(p.e*p.q);null==f&&(f=p.h?[[1,1,0,1,1,2],[1,1,2,1,1,0],[2,0,1,0,2,1],[1,1,2,1,1,0],[1,1,0,1,1,2],[0,2,1,2,0,1]]:[[0,1],[3,2]]);for(var w=[[0,3],[1,r],[n,11],[i,o],[s,16],[u,c]],_=[],x=0;x<18;x++)_[x]=new Uint16Array(p.A);for(var E=0;E<p.s;E++){var D=l(m),k=l(m);for(x=0;x<18;x++)for(var A=0;A<p.A;A++)_[x][A]=0;for(var S=0;S<p.d;S++){g(p,m,d[E],_,D,k);for(x=0;x<6;x++)for(A=0;A<p.A;A++)_[w[x][0]][A]=_[w[x][1]][A];v(p,b,_,S,E,f);for(x=e;x<18;x++)if(-1==[n,i,s,u].indexOf(x))for(A=0;A<p.A;A++)_[x][A]=0;y(_)}}return b}}()}(i,r(197))}()}).call(this,r(13)(t),r(7))},function(t,e,r){\"use strict\";var n=r(57),i=r(42),a=i.Gif,o=i.GifError,s=r(96).GifCodec,u=r(58).GifFrame,f=r(97);t.exports={BitmapImage:n,Gif:a,GifCodec:s,GifFrame:u,GifUtil:f,GifError:o}},function(t,e,r){t.exports=i;var n=r(31).EventEmitter;function i(){n.call(this)}r(24)(i,n),i.Readable=r(50),i.Writable=r(154),i.Duplex=r(155),i.Transform=r(156),i.PassThrough=r(157),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on(\"data\",i),t.on(\"drain\",a),t._isStdio||e&&!1===e.end||(r.on(\"end\",s),r.on(\"close\",u));var o=!1;function s(){o||(o=!0,t.end())}function u(){o||(o=!0,\"function\"==typeof t.destroy&&t.destroy())}function f(t){if(c(),0===n.listenerCount(this,\"error\"))throw t}function c(){r.removeListener(\"data\",i),t.removeListener(\"drain\",a),r.removeListener(\"end\",s),r.removeListener(\"close\",u),r.removeListener(\"error\",f),t.removeListener(\"error\",f),r.removeListener(\"end\",c),r.removeListener(\"close\",c),t.removeListener(\"close\",c)}return r.on(\"error\",f),t.on(\"error\",f),r.on(\"end\",c),r.on(\"close\",c),t.on(\"close\",c),t.emit(\"pipe\",r),t}},function(t,e,r){\"use strict\";(function(e){void 0===e||!e.version||0===e.version.indexOf(\"v0.\")||0===e.version.indexOf(\"v1.\")&&0!==e.version.indexOf(\"v1.8.\")?t.exports={nextTick:function(t,r,n,i){if(\"function\"!=typeof t)throw new TypeError('\"callback\" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return e.nextTick((function(){t.apply(null,a)}))}}}:t.exports=e}).call(this,r(7))},function(t,e,r){\"use strict\";t.exports=TypeError},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(\"object\"!==n(r))throw new TypeError(r+\"must be non-object\");for(var i in r)a(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,o;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)a=t[e],o.set(a,i),i+=a.length;return o}},s={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e,r){return e=u(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,o()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(t){var e=\"function\"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(o())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&s(i,r.prototype),i}(t,arguments,u(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},a(t)}function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(o=function(){return!!t})()}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function c(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function h(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function l(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var p=c((function t(e,r,n){l(this,t),this.width=n.width,this.height=n.height,this.loops=n.loops,this.usesTransparency=n.usesTransparency,this.colorScope=n.colorScope,this.frames=r,this.buffer=e}));p.GlobalColorsPreferred=0,p.GlobalColorsOnly=1,p.LocalColorsOnly=2;var d=function(t){function e(t){var r;return l(this,e),r=i(this,e,[t]),t instanceof Error&&(r.stack=\"Gif\"+t.stack),r}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&s(t,e)}(e,t),c(e)}(a(Error));e.Gif=p,e.GifError=d},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.clone=f,e.addLast=h,e.addFirst=l,e.removeLast=p,e.removeFirst=d,e.insert=m,e.removeAt=y,e.replaceAt=b,e.getIn=g,e.set=v,e.setIn=w,e.update=x,e.updateIn=E,e.merge=D,e.mergeDeep=k,e.mergeIn=A,e.omit=S,e.addDefaults=M,e.default=void 0;var i=\"INVALID_ARGS\",a=!1;function o(t){throw new Error(t)}function s(t){var e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}var u={}.hasOwnProperty;function f(t){if(Array.isArray(t))return t.slice();for(var e=t,r=s(e),n={},i=0;i<r.length;i++){var a=r[i];n[a]=e[a]}return n}function c(t){return null!=t&&\"object\"===n(t)}function h(t,e){return Array.isArray(e)?t.concat(e):t.concat([e])}function l(t,e){return Array.isArray(e)?e.concat(t):[e].concat(t)}function p(t){return t.length?t.slice(0,t.length-1):t}function d(t){return t.length?t.slice(1):t}function m(t,e,r){return t.slice(0,e).concat(Array.isArray(r)?r:[r]).concat(t.slice(e))}function y(t,e){return e>=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function b(t,e,r){if(t[e]===r)return t;for(var n=t.length,i=Array(n),a=0;a<n;a++)i[a]=t[a];return i[e]=r,i}function g(t,e){if(Array.isArray(e)||o(a?\"A path array should be provided when calling getIn()\":i),null!=t){for(var r=t,n=0;n<e.length;n++){var s=e[n];if(void 0===(r=null!=r?r[s]:void 0))return r}return r}}function v(t,e,r){var n=t;if(null==n&&(n=\"number\"==typeof e?[]:{}),n[e]===r)return n;var i=f(n);return i[e]=r,i}function w(t,e,r){return e.length?_(t,e,r,0):r}function _(t,e,r,n){var i,a=e[n];n===e.length-1?i=r:i=_(c(t)&&c(t[a])?t[a]:\"number\"==typeof e[n+1]?[]:{},e,r,n+1);return v(t,a,i)}function x(t,e,r){return v(t,e,r(null==t?void 0:t[e]))}function E(t,e,r){return w(t,e,r(g(t,e)))}function D(t,e,r,n,i,a){for(var o=arguments.length,s=new Array(o>6?o-6:0),u=6;u<o;u++)s[u-6]=arguments[u];return s.length?F.call.apply(F,[null,!1,!1,t,e,r,n,i,a].concat(s)):F(!1,!1,t,e,r,n,i,a)}function k(t,e,r,n,i,a){for(var o=arguments.length,s=new Array(o>6?o-6:0),u=6;u<o;u++)s[u-6]=arguments[u];return s.length?F.call.apply(F,[null,!1,!0,t,e,r,n,i,a].concat(s)):F(!1,!0,t,e,r,n,i,a)}function A(t,e,r,n,i,a,o){var s=g(t,e);null==s&&(s={});for(var u=arguments.length,f=new Array(u>7?u-7:0),c=7;c<u;c++)f[c-7]=arguments[c];return w(t,e,f.length?F.call.apply(F,[null,!1,!1,s,r,n,i,a,o].concat(f)):F(!1,!1,s,r,n,i,a,o))}function S(t,e){for(var r=Array.isArray(e)?e:[e],n=!1,i=0;i<r.length;i++)if(u.call(t,r[i])){n=!0;break}if(!n)return t;for(var a={},o=s(t),f=0;f<o.length;f++){var c=o[f];r.indexOf(c)>=0||(a[c]=t[c])}return a}function M(t,e,r,n,i,a){for(var o=arguments.length,s=new Array(o>6?o-6:0),u=6;u<o;u++)s[u-6]=arguments[u];return s.length?F.call.apply(F,[null,!0,!1,t,e,r,n,i,a].concat(s)):F(!0,!1,t,e,r,n,i,a)}function F(t,e,r){var n=r;null==n&&o(a?\"At least one object should be provided to merge()\":i);for(var u=!1,h=0;h<(arguments.length<=3?0:arguments.length-3);h++){var l=h+3<3||arguments.length<=h+3?void 0:arguments[h+3];if(null!=l){var p=s(l);if(p.length)for(var d=0;d<=p.length;d++){var m=p[d];if(!t||void 0===n[m]){var y=l[m];e&&c(n[m])&&c(y)&&(y=F(t,e,n[m],y)),void 0!==y&&y!==n[m]&&(u||(u=!0,n=f(n)),n[m]=y)}}}}return n}var C={clone:f,addLast:h,addFirst:l,removeLast:p,removeFirst:d,insert:m,removeAt:y,replaceAt:b,getIn:g,set:v,setIn:w,update:x,updateIn:E,merge:D,mergeDeep:k,mergeIn:A,omit:S,addDefaults:M};e.default=C},function(t,e,r){var n=r(229);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){\"use strict\";(function(t){r.d(e,\"c\",(function(){return _})),r.d(e,\"a\",(function(){return E})),r.d(e,\"b\",(function(){return D}));var n=r(103),i=r.n(n),a=r(104),o=r.n(a),s=r(0),u=r(20),f=r(19),c=r(33);function h(t){return h=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},h(t)}function l(){l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",s=a.asyncIterator||\"@@asyncIterator\",u=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new O(n||[]);return i(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};f(x,o,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&n.call(D,o)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,o,s){var u=p(t[i],t,a);if(\"throw\"!==u.type){var f=u.arg,c=f.value;return c&&\"object\"==h(c)&&n.call(c,\"__await\")?e.resolve(c.__await).then((function(t){r(\"next\",t,o,s)}),(function(t){r(\"throw\",t,o,s)})):e.resolve(c).then((function(t){f.value=t,o(f)}),(function(t){return r(\"throw\",t,o,s)}))}s(u.arg)}var a;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[o];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(h(e)+\" is not iterable\")}return w.prototype=_,i(k,\"constructor\",{value:_,configurable:!0}),i(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),f(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),f(k,u,\"Generator\"),f(k,o,(function(){return this})),f(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,a,o,s=[],u=!0,f=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){f=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(f)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function y(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){m(a,n,i,o,s,\"next\",t)}function s(t){m(a,n,i,o,s,\"throw\",t)}o(void 0)}))}}function b(t,e){return g.apply(this,arguments)}function g(){return(g=y(l().mark((function t(e,r){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.fromBuffer(e);case 2:if(!(n=t.sent)){t.next=5;break}return t.abrupt(\"return\",n.mime);case 5:if(!r){t.next=7;break}return t.abrupt(\"return\",f.c(r));case 7:return t.abrupt(\"return\",null);case 8:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function v(t){return t._exif&&t._exif.tags&&t._exif.tags.Orientation||1}function w(e){if(!(v(e)<2)){var r=function(t){var e=t.getWidth(),r=t.getHeight();switch(v(t)){case 1:default:return null;case 2:return function(t,r){return[e-t-1,r]};case 3:return function(t,n){return[e-t-1,r-n-1]};case 4:return function(t,e){return[t,r-e-1]};case 5:return function(t,e){return[e,t]};case 6:return function(t,e){return[e,r-t-1]};case 7:return function(t,n){return[e-n-1,r-t-1]};case 8:return function(t,r){return[e-r-1,t]}}}(e),n=v(e)>4;!function(e,r,n,i){for(var a=e.bitmap.data,o=e.bitmap.width,s=t.alloc(a.length),u=0;u<r;u++)for(var f=0;f<n;f++){var c=p(i(u,f),2),h=c[0],l=r*f+u<<2,d=o*c[1]+h<<2,m=a.readUInt32BE(d);s.writeUInt32BE(m,l)}e.bitmap.data=s,e.bitmap.width=r,e.bitmap.height=n}(e,n?e.bitmap.height:e.bitmap.width,n?e.bitmap.width:e.bitmap.height,r)}}function _(t,e,r){return x.apply(this,arguments)}function x(){return(x=y(l().mark((function t(e,r,n){var i,a;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b(e,r);case 2:if(\"string\"==typeof(i=t.sent)){t.next=5;break}return t.abrupt(\"return\",n(new Error(\"Could not find MIME for Buffer <\"+r+\">\")));case 5:if(this._originalMime=i.toLowerCase(),t.prev=6,a=this.getMIME(),!this.constructor.decoders[a]){t.next=12;break}this.bitmap=this.constructor.decoders[a](e),t.next=13;break;case 12:return t.abrupt(\"return\",s.d.call(this,\"Unsupported MIME type: \"+a,n));case 13:t.next=18;break;case 15:return t.prev=15,t.t0=t.catch(6),t.abrupt(\"return\",n.call(this,t.t0,this));case 18:try{this._exif=o.a.create(e).parse(),w(this)}catch(t){}return n.call(this,null,this),t.abrupt(\"return\",this);case 21:case\"end\":return t.stop()}}),t,this,[[6,15]])})))).apply(this,arguments)}function E(e,r){var n,i,a=this;if(e===u.AUTO&&(e=this.getMIME()),\"string\"!=typeof e)return s.d.call(this,\"mime must be a string\",r);if(\"function\"!=typeof r)return s.d.call(this,\"cb must be a function\",r);if(e=e.toLowerCase(),this._rgba&&this.constructor.hasAlpha[e]?this.bitmap.data=t.from(this.bitmap.data):this.bitmap.data=(n=this.constructor,i=this,new n(i.bitmap.width,i.bitmap.height,i._background).composite(i,0,0).bitmap).data,!this.constructor.encoders[e])return s.d.call(this,\"Unsupported MIME type: \"+e,r);var o=this.constructor.encoders[e](this);return o instanceof Promise?o.then((function(t){r.call(a,null,t)})):r.call(this,null,o),this}function D(t){return Object(c.a)(E,this,t)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t,n){var i=r(14),a=r(38),o=r(158),s=r(187),u=r(190),f=e.PNG=function(e){a.call(this),e=e||{},this.width=0|e.width,this.height=0|e.height,this.data=this.width>0&&this.height>0?t.alloc(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new o(e),this._parser.on(\"error\",this.emit.bind(this,\"error\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._parser.on(\"metadata\",this._metadata.bind(this)),this._parser.on(\"gamma\",this._gamma.bind(this)),this._parser.on(\"parsed\",function(t){this.data=t,this.emit(\"parsed\",t)}.bind(this)),this._packer=new s(e),this._packer.on(\"data\",this.emit.bind(this,\"data\")),this._packer.on(\"end\",this.emit.bind(this,\"end\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._packer.on(\"error\",this.emit.bind(this,\"error\"))};i.inherits(f,a),f.sync=u,f.prototype.pack=function(){return this.data&&this.data.length?(n.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit(\"error\",\"No data provided\"),this)},f.prototype.parse=function(t,e){var r,n;e&&(r=function(t){this.removeListener(\"error\",n),this.data=t,e(null,this)}.bind(this),n=function(t){this.removeListener(\"parsed\",r),e(t,null)}.bind(this),this.once(\"parsed\",r),this.once(\"error\",n));return this.end(t),this},f.prototype.write=function(t){return this._parser.write(t),!0},f.prototype.end=function(t){this._parser.end(t)},f.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit(\"metadata\",t)},f.prototype._gamma=function(t){this.gamma=t},f.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit(\"close\")},f.bitblt=function(t,e,r,n,i,a,o,s){if(n|=0,i|=0,a|=0,o|=0,s|=0,(r|=0)>t.width||n>t.height||r+i>t.width||n+a>t.height)throw new Error(\"bitblt reading outside image\");if(o>e.width||s>e.height||o+i>e.width||s+a>e.height)throw new Error(\"bitblt writing outside image\");for(var u=0;u<a;u++)t.data.copy(e.data,(s+u)*e.width+o<<2,(n+u)*t.width+r<<2,(n+u)*t.width+r+i<<2)},f.prototype.bitblt=function(t,e,r,n,i,a,o){return f.bitblt(this,t,e,r,n,i,a,o),this},f.adjustGamma=function(t){if(t.gamma){for(var e=0;e<t.height;e++)for(var r=0;r<t.width;r++)for(var n=t.width*e+r<<2,i=0;i<3;i++){var a=t.data[n+i]/255;a=Math.pow(a,1/2.2/t.gamma),t.data[n+i]=Math.round(255*a)}t.gamma=0}},f.prototype.adjustGamma=function(){f.adjustGamma(this)}}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;var n=r(126),i=r(129),a=r(26);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return a.EndOfStreamError}}),e.fromStream=function(t,e){return e=e||{},new n.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new i.BufferTokenizer(t,e)}},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractTokenizer=void 0;var f=r(26),c=function(){return e=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}},r=[{key:\"readToken\",value:(p=o(i().mark((function e(r){var n,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:this.position,a=t.alloc(r.len),e.next=4,this.readBuffer(a,{position:n});case 4:if(!(e.sent<r.len)){e.next=7;break}throw new f.EndOfStreamError;case 7:return e.abrupt(\"return\",r.get(a,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return p.apply(this,arguments)})},{key:\"peekToken\",value:(l=o(i().mark((function e(r){var n,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:this.position,a=t.alloc(r.len),e.next=4,this.peekBuffer(a,{position:n});case 4:if(!(e.sent<r.len)){e.next=7;break}throw new f.EndOfStreamError;case 7:return e.abrupt(\"return\",r.get(a,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return l.apply(this,arguments)})},{key:\"readNumber\",value:(h=o(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new f.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:\"peekNumber\",value:(c=o(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.peekBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new f.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:\"ignore\",value:(u=o(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===this.fileInfo.size){t.next=5;break}if(r=this.fileInfo.size-this.position,!(e>r)){t.next=5;break}return this.position+=r,t.abrupt(\"return\",r);case 5:return this.position+=e,t.abrupt(\"return\",e);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:\"close\",value:(a=o(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return a.apply(this,arguments)})},{key:\"normalizeOptions\",value:function(t,e){if(e&&void 0!==e.position&&e.position<this.position)throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");return e?{mayBeLess:!0===e.mayBeLess,offset:e.offset?e.offset:0,length:e.length?e.length:t.length-(e.offset?e.offset:0),position:e.position?e.position:this.position}:{mayBeLess:!1,offset:0,length:t.length,position:this.position}}}],r&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,n,a,u,c,h,l,p}();e.AbstractTokenizer=c}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function o(t,e,r){return e=c(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,u()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}function s(t){var e=\"function\"==typeof Map?new Map:void 0;return s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&f(i,r.prototype),i}(t,arguments,c(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,t)},s(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages=\"End-Of-Stream\";var h=function(t){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,r),o(this,r,[e.defaultMessages])}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&f(t,e)}(r,t),n=r,a&&i(n.prototype,a),s&&i(n,s),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,a,s}(s(Error));e.EndOfStreamError=h},function(t,e,r){(e=t.exports=r(70)).Stream=e,e.Readable=e,e.Writable=r(52),e.Duplex=r(18),e.Transform=r(74),e.PassThrough=r(153)},function(t,e,r){var n=r(2),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(a(n,e),e.Buffer=o),a(i,o),o.from=function(t,e,r){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,r)},o.alloc=function(t,e,r){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var n=i(t);return void 0!==e?\"string\"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},o.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return n.SlowBuffer(t)}},function(t,e,r){\"use strict\";(function(e,n,i){var a=r(39);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=g;var s,u=!e.browser&&[\"v0.10\",\"v0.9.\"].indexOf(e.version.slice(0,5))>-1?n:a.nextTick;g.WritableState=b;var f=Object.create(r(27));f.inherits=r(24);var c={deprecate:r(151)},h=r(71),l=r(51).Buffer,p=(void 0!==i?i:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var d,m=r(72);function y(){}function b(t,e){s=s||r(18),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,f=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(f||0===f)?f:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(a.nextTick(i,n),a.nextTick(D,t,e),t._writableState.errorEmitted=!0,t.emit(\"error\",n)):(i(n),t._writableState.errorEmitted=!0,t.emit(\"error\",n),D(t,e))}(t,r,n,e,i);else{var o=x(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||_(t,r),n?u(w,t,r,o,i):w(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function g(t){if(s=s||r(18),!(d.call(g,this)||this instanceof s))return new g(t);this._writableState=new b(t,this),this.writable=!0,t&&(\"function\"==typeof t.write&&(this._write=t.write),\"function\"==typeof t.writev&&(this._writev=t.writev),\"function\"==typeof t.destroy&&(this._destroy=t.destroy),\"function\"==typeof t.final&&(this._final=t.final)),h.call(this)}function v(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function w(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit(\"drain\"))}(t,e),e.pendingcb--,n(),D(t,e)}function _(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,v(t,e,!0,e.length,i,\"\",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,h=r.callback;if(v(t,e,!1,e.objectMode?1:f.length,f,c,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final((function(r){e.pendingcb--,r&&t.emit(\"error\",r),e.prefinished=!0,t.emit(\"prefinish\"),D(t,e)}))}function D(t,e){var r=x(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||(\"function\"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,a.nextTick(E,t,e)):(e.prefinished=!0,t.emit(\"prefinish\")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit(\"finish\"))),r}f.inherits(g,h),b.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(b.prototype,\"buffer\",{get:c.deprecate((function(){return this.getBuffer()}),\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(t){}}(),\"function\"==typeof Symbol&&Symbol.hasInstance&&\"function\"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===g&&(t&&t._writableState instanceof b)}})):d=function(t){return t instanceof this},g.prototype.pipe=function(){this.emit(\"error\",new Error(\"Cannot pipe, not readable\"))},g.prototype.write=function(t,e,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=t,l.isBuffer(n)||n instanceof p);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),\"function\"==typeof e&&(r=e,e=null),s?e=\"buffer\":e||(e=i.defaultEncoding),\"function\"!=typeof r&&(r=y),i.ended?function(t,e){var r=new Error(\"write after end\");t.emit(\"error\",r),a.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var i=!0,o=!1;return null===r?o=new TypeError(\"May not write null values to stream\"):\"string\"==typeof r||void 0===r||e.objectMode||(o=new TypeError(\"Invalid non-string/buffer chunk\")),o&&(t.emit(\"error\",o),a.nextTick(n,o),i=!1),i}(this,i,t,r))&&(i.pendingcb++,o=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||\"string\"!=typeof e||(e=l.from(e,r));return e}(e,n,i);n!==o&&(r=!0,i=\"buffer\",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else v(t,e,!1,s,n,i,a);return u}(this,i,s,t,e,r)),o},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||_(this,t))},g.prototype.setDefaultEncoding=function(t){if(\"string\"==typeof t&&(t=t.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((t+\"\").toLowerCase())>-1))throw new TypeError(\"Unknown encoding: \"+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(g.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(t,e,r){r(new Error(\"_write() is not implemented\"))},g.prototype._writev=null,g.prototype.end=function(t,e,r){var n=this._writableState;\"function\"==typeof t?(r=t,t=null,e=null):\"function\"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,D(t,e),r&&(e.finished?a.nextTick(r):t.once(\"finish\",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(g.prototype,\"destroyed\",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(7),r(117).setImmediate,r(10))},function(t,e,r){\"use strict\";(function(e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(160)();function a(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function o(t){return e.Buffer&&\"function\"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=r(14),u=Object.prototype.hasOwnProperty,f=Array.prototype.slice,c=\"foo\"===function(){}.name;function h(t){return Object.prototype.toString.call(t)}function l(t){return!o(t)&&(\"function\"==typeof e.ArrayBuffer&&(\"function\"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var p=t.exports=v,d=/\\s*function\\s+([^\\(\\s]*)\\s*/;function m(t){if(s.isFunction(t)){if(c)return t.name;var e=t.toString().match(d);return e&&e[1]}}function y(t,e){return\"string\"==typeof t?t.length<e?t:t.slice(0,e):t}function b(t){if(c||!s.isFunction(t))return s.inspect(t);var e=m(t);return\"[Function\"+(e?\": \"+e:\"\")+\"]\"}function g(t,e,r,n,i){throw new p.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function v(t,e){t||g(t,!0,e,\"==\",p.ok)}function w(t,e,r,i){if(t===e)return!0;if(o(t)&&o(e))return 0===a(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&\"object\"===n(t)||null!==e&&\"object\"===n(e)){if(l(t)&&l(e)&&h(t)===h(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===a(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var u=(i=i||{actual:[],expected:[]}).actual.indexOf(t);return-1!==u&&u===i.expected.indexOf(e)||(i.actual.push(t),i.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=_(t),a=_(e);if(i&&!a||!i&&a)return!1;if(i)return w(t=f.call(t),e=f.call(e),r);var o,u,c=D(t),h=D(e);if(c.length!==h.length)return!1;for(c.sort(),h.sort(),u=c.length-1;u>=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(!w(t[o=c[u]],e[o],r,n))return!1;return!0}(t,e,r,i))}return r?t===e:t==e}function _(t){return\"[object Arguments]\"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if(\"[object RegExp]\"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function E(t,e,r,n){var i;if(\"function\"!=typeof e)throw new TypeError('\"block\" argument must be a function');\"string\"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?\" (\"+r.name+\").\":\".\")+(n?\" \"+n:\".\"),t&&!i&&g(i,r,\"Missing expected exception\"+n);var a=\"string\"==typeof n,o=!t&&i&&!r;if((!t&&s.isError(i)&&a&&x(i,r)||o)&&g(i,r,\"Got unwanted exception\"+n),t&&i&&r&&!x(i,r)||!t&&i)throw i}p.AssertionError=function(t){this.name=\"AssertionError\",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return y(b(t.actual),128)+\" \"+t.operator+\" \"+y(b(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=m(e),a=n.indexOf(\"\\n\"+i);if(a>=0){var o=n.indexOf(\"\\n\",a+1);n=n.substring(o+1)}this.stack=n}}},s.inherits(p.AssertionError,Error),p.fail=g,p.ok=v,p.equal=function(t,e,r){t!=e&&g(t,e,r,\"==\",p.equal)},p.notEqual=function(t,e,r){t==e&&g(t,e,r,\"!=\",p.notEqual)},p.deepEqual=function(t,e,r){w(t,e,!1)||g(t,e,r,\"deepEqual\",p.deepEqual)},p.deepStrictEqual=function(t,e,r){w(t,e,!0)||g(t,e,r,\"deepStrictEqual\",p.deepStrictEqual)},p.notDeepEqual=function(t,e,r){w(t,e,!1)&&g(t,e,r,\"notDeepEqual\",p.notDeepEqual)},p.notDeepStrictEqual=function t(e,r,n){w(e,r,!0)&&g(e,r,n,\"notDeepStrictEqual\",t)},p.strictEqual=function(t,e,r){t!==e&&g(t,e,r,\"===\",p.strictEqual)},p.notStrictEqual=function(t,e,r){t===e&&g(t,e,r,\"!==\",p.notStrictEqual)},p.throws=function(t,e,r){E(!0,t,e,r)},p.doesNotThrow=function(t,e,r){E(!1,t,e,r)},p.ifError=function(t){if(t)throw t},p.strict=i((function t(e,r){e||g(e,!0,r,\"==\",t)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var D=Object.keys||function(t){var e=[];for(var r in t)u.call(t,r)&&e.push(r);return e}}).call(this,r(10))},function(t,e,r){\"use strict\";var n=r(172);t.exports=Function.prototype.bind||n},function(t,e,r){\"use strict\";var n=r(29)(\"%Object.defineProperty%\",!0)||!1;if(n)try{n({},\"a\",{value:1})}catch(t){n=!1}t.exports=n},function(t,e,r){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,r){\"use strict\";(function(e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}var a=function(){function t(){if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),0===arguments.length)throw new Error(\"constructor requires parameters\");var n=arguments.length<=0?void 0:arguments[0];if(null!==n&&\"object\"===r(n))if(n instanceof t){var i=n.bitmap;this.bitmap={width:i.width,height:i.height,data:new e(i.width*i.height*4)},i.data.copy(this.bitmap.data)}else{if(!(n.width&&n.height&&n.data))throw new Error(\"unrecognized constructor parameters\");this.bitmap=n}else{if(\"number\"!=typeof n||\"number\"!=typeof(arguments.length<=1?void 0:arguments[1]))throw new Error(\"unrecognized constructor parameters\");var a=n,o=arguments.length<=1?void 0:arguments[1],s=arguments.length<=2?void 0:arguments[2];this.bitmap={width:a,height:o},e.isBuffer(s)?this.bitmap.data=s:(this.bitmap.data=new e(a*o*4),\"number\"==typeof s&&this.fillRGBA(s))}}return i=t,(a=[{key:\"blit\",value:function(t,e,r,n,i,a,o){if(n+a>this.bitmap.width)throw new Error(\"copy exceeds width of source bitmap\");if(e+a>t.bitmap.width)throw new Error(\"copy exceeds width of target bitmap\");if(i+o>this.bitmap.height)throw new Error(\"copy exceeds height of source bitmap\");if(r+o>t.bitmap.height)throw new Erro(\"copy exceeds height of target bitmap\");for(var s=this.bitmap.data,u=t.bitmap.data,f=4*this.bitmap.width,c=4*t.bitmap.width,h=4*a,l=i*f+4*n,p=r*c+4*e;--o>=0;)s.copy(u,p,l,l+h),l+=f,p+=c;return this}},{key:\"fillRGBA\",value:function(t){for(var e=this.bitmap.data,r=4*this.bitmap.height,n=0;n<r;)e.writeUInt32BE(t,n),n+=4;for(;n<e.length;)e.copy(e,n,0,r),n+=r;return this}},{key:\"getRGBA\",value:function(t,e){var r=4*(e*this.bitmap.width+t);return this.bitmap.data.readUInt32BE(r)}},{key:\"getRGBASet\",value:function(){for(var t=new Set,e=this.bitmap.data,r=0;r<e.length;r+=4)t.add(e.readUInt32BE(r,!0));return t}},{key:\"greyscale\",value:function(){var t=this.bitmap.data;return this.scan(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){var i=Math.round(.299*t[n]+.587*t[n+1]+.114*t[n+2]);t[n]=i,t[n+1]=i,t[n+2]=i})),this}},{key:\"reframe\",value:function(e,r,n,i,a){var o,s=e<0?0:e,u=r<0?0:r,f=n+s>this.bitmap.width?this.bitmap.width-s:n,c=i+u>this.bitmap.height?this.bitmap.height-u:i,h=e<0?-e:0,l=r<0?-r:0;if(void 0===a){if(s!==e||u!=r||f!==n||c!==i)throw new GifError(\"fillRGBA required for this reframing\");o=new t(n,i)}else o=new t(n,i,a);return this.blit(o,h,l,s,u,f,c),this.bitmap=o.bitmap,this}},{key:\"scale\",value:function(t){if(1!==t){if(!Number.isInteger(t)||t<1)throw new Error(\"the scale must be an integer >= 1\");for(var r,n=this.bitmap.width,i=this.bitmap.height,a=n*t*4,o=this.bitmap.data,s=new e(i*a*t),u=0,f=0,c=0;c<i;++c){r=f;for(var h=0;h<n;++h){for(var l=o.readUInt32BE(u,!0),p=0;p<t;++p)s.writeUInt32BE(l,f),f+=4;u+=4}for(var d=1;d<t;++d)s.copy(s,f,r,f),f+=a,r+=a}return this.bitmap={width:n*t,height:i*t,data:s},this}}},{key:\"scanAllCoords\",value:function(t){for(var e=this.bitmap.width,r=this.bitmap.data.length,n=0,i=0,a=0;a<r;a+=4)t(n,i,a),++n===e&&(n=0,++i)}},{key:\"scanAllIndexes\",value:function(t){for(var e=this.bitmap.data.length,r=0;r<e;r+=4)t(r)}}])&&n(i.prototype,a),o&&n(i,o),Object.defineProperty(i,\"prototype\",{writable:!1}),i;var i,a,o}();t.exports=a}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function o(t,e,r){return e=u(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,s()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var c=r(57),h=(r(42).GifError,function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];if(t=o(this,e,[].concat(i)),i[0]instanceof e){var s=i[0];t.xOffset=s.xOffset,t.yOffset=s.yOffset,t.disposalMethod=s.disposalMethod,t.delayCentisecs=s.delayCentisecs,t.interlaced=s.interlaced}else{var u=i[i.length-1],f={};\"object\"!==n(u)||u instanceof c||(f=u),t.xOffset=f.xOffset||0,t.yOffset=f.yOffset||0,t.disposalMethod=void 0!==f.disposalMethod?f.disposalMethod:e.DisposeToBackgroundColor,t.delayCentisecs=f.delayCentisecs||8,t.interlaced=f.interlaced||!1}return t}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&f(t,e)}(e,t),r=e,(a=[{key:\"getPalette\",value:function(){for(var t=new Set,e=this.bitmap.data,r=0,n=!1;r<e.length;){if(0===e[r+3])n=!0;else{var i=e.readUInt32BE(r,!0)>>8&16777215;t.add(i)}r+=4}var a=new Array(t.size),o=t.values();for(r=0;r<a.length;++r)a[r]=o.next().value;a.sort((function(t,e){return t-e}));var s=a.length;return n&&++s,{colors:a,usesTransparency:n,indexCount:s}}}])&&i(r.prototype,a),s&&i(r,s),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,a,s}(c));h.DisposeToAnything=0,h.DisposeNothing=1,h.DisposeToBackgroundColor=2,h.DisposeToPrevious=3,e.GifFrame=h},function(t,e,r){\"use strict\";function n(t,e,r,n){for(var i=t[e++],a=1<<i,o=a+1,s=o+1,u=i+1,f=(1<<u)-1,c=0,h=0,l=0,p=t[e++],d=new Int32Array(4096),m=null;;){for(;c<16&&0!==p;)h|=t[e++]<<c,c+=8,1===p?p=t[e++]:--p;if(c<u)break;var y=h&f;if(h>>=u,c-=u,y!==a){if(y===o)break;for(var b=y<s?y:m,g=0,v=b;v>a;)v=d[v]>>8,++g;var w=v;if(l+g+(b!==y?1:0)>n)return;r[l++]=w;var _=l+=g;for(b!==y&&(r[l++]=w),v=b;g--;)v=d[v],r[--_]=255&v,v>>=8;null!==m&&s<4096&&(d[s++]=m<<8|w,s>=f+1&&u<12&&(++u,f=f<<1|1)),m=y}else s=o+1,f=(1<<(u=i+1))-1,m=null}return r}try{e.GifWriter=function(t,e,r,n){var i=0,a=void 0===(n=void 0===n?{}:n).loop?null:n.loop,o=void 0===n.palette?null:n.palette;if(e<=0||r<=0||e>65535||r>65535)throw new Error(\"Width/Height invalid.\");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var u=0,f=0;if(null!==o){for(var c=s(o);c>>=1;)++u;if(c=1<<u,--u,void 0!==n.background){if((f=n.background)>=c)throw new Error(\"Background index out of range.\");if(0===f)throw new Error(\"Background index explicitly passed as 0.\")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=(null!==o?128:0)|u,t[i++]=f,t[i++]=0,null!==o)for(var h=0,l=o.length;h<l;++h){var p=o[h];t[i++]=p>>16&255,t[i++]=p>>8&255,t[i++]=255&p}if(null!==a){if(a<0||a>65535)throw new Error(\"Loop count invalid.\");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&a,t[i++]=a>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,r,n,a,u,f){if(!0===d&&(--i,d=!1),f=void 0===f?{}:f,e<0||r<0||e>65535||r>65535)throw new Error(\"x/y invalid.\");if(n<=0||a<=0||n>65535||a>65535)throw new Error(\"Width/Height invalid.\");if(u.length<n*a)throw new Error(\"Not enough pixels for the frame size.\");var c=!0,h=f.palette;if(null==h&&(c=!1,h=o),null==h)throw new Error(\"Must supply either a local or global palette.\");for(var l=s(h),p=0;l>>=1;)++p;l=1<<p;var m=void 0===f.delay?0:f.delay,y=void 0===f.disposal?0:f.disposal;if(y<0||y>3)throw new Error(\"Disposal out of range.\");var b=!1,g=0;if(void 0!==f.transparent&&null!==f.transparent&&(b=!0,(g=f.transparent)<0||g>=l))throw new Error(\"Transparent color index.\");if((0!==y||b||0!==m)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=y<<2|(!0===b?1:0),t[i++]=255&m,t[i++]=m>>8&255,t[i++]=g,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&a,t[i++]=a>>8&255,t[i++]=!0===c?128|p-1:0,!0===c)for(var v=0,w=h.length;v<w;++v){var _=h[v];t[i++]=_>>16&255,t[i++]=_>>8&255,t[i++]=255&_}return i=function(t,e,r,n){t[e++]=r;var i=e++,a=1<<r,o=a-1,s=a+1,u=s+1,f=r+1,c=0,h=0;function l(r){for(;c>=r;)t[e++]=255&h,h>>=8,c-=8,e===i+256&&(t[i]=255,i=e++)}function p(t){h|=t<<c,c+=f,l(8)}var d=n[0]&o,m={};p(a);for(var y=1,b=n.length;y<b;++y){var g=n[y]&o,v=d<<8|g,w=m[v];if(void 0===w){for(h|=d<<c,c+=f;c>=8;)t[e++]=255&h,h>>=8,c-=8,e===i+256&&(t[i]=255,i=e++);4096===u?(p(a),u=s+1,f=r+1,m={}):(u>=1<<f&&++f,m[v]=u++),d=g}else d=w}return p(d),p(s),l(1),i+1===e?t[i]=0:(t[i]=e-i-1,t[e++]=0),e}(t,i,p<2?2:p,u),i},this.end=function(){return!1===d&&(t[i++]=59,d=!0),i},this.getOutputBuffer=function(){return t},this.setOutputBuffer=function(e){t=e},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(t){i=t}},e.GifReader=function(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var r=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,a=t[e++],o=a>>7,s=1<<1+(7&a);t[e++],t[e++];var u=null,f=null;o&&(u=e,f=s,e+=3*s);var c=!0,h=[],l=0,p=null,d=0,m=null;for(this.width=r,this.height=i;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,m=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error(\"Invalid graphics extension block.\");var y=t[e++];l=t[e++]|t[e++]<<8,p=t[e++],1&y||(p=null),d=y>>2&7,e++;break;case 254:for(;;){if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}break;default:throw new Error(\"Unknown graphic control label: 0x\"+t[e-1].toString(16))}break;case 44:var b=t[e++]|t[e++]<<8,g=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,_=t[e++],x=_>>6&1,E=1<<1+(7&_),D=u,k=f,A=!1;_>>7&&(A=!0,D=e,k=E,e+=3*E);var S=e;for(e++;;){var M;if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}h.push({x:b,y:g,width:v,height:w,has_local_palette:A,palette_offset:D,palette_size:k,data_offset:S,data_length:e-S,transparent_index:p,interlaced:!!x,delay:l,disposal:d});break;case 59:c=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+t[e-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return m},this.frameInfo=function(t){if(t<0||t>=h.length)throw new Error(\"Frame index out of range.\");return h[t]},this.decodeAndBlitFrameBGRA=function(e,i){var a=this.frameInfo(e),o=a.width*a.height,s=new Uint8Array(o);n(t,a.data_offset,s,o);var u=a.palette_offset,f=a.transparent_index;null===f&&(f=256);var c=a.width,h=r-c,l=c,p=4*(a.y*r+a.x),d=4*((a.y+a.height)*r+a.x),m=p,y=4*h;!0===a.interlaced&&(y+=4*r*7);for(var b=8,g=0,v=s.length;g<v;++g){var w=s[g];if(0===l&&(l=c,(m+=y)>=d&&(y=4*h+4*r*(b-1),m=p+(c+h)*(b<<1),b>>=1)),w===f)m+=4;else{var _=t[u+3*w],x=t[u+3*w+1],E=t[u+3*w+2];i[m++]=E,i[m++]=x,i[m++]=_,i[m++]=255}--l}},this.decodeAndBlitFrameRGBA=function(e,i){var a=this.frameInfo(e),o=a.width*a.height,s=new Uint8Array(o);n(t,a.data_offset,s,o);var u=a.palette_offset,f=a.transparent_index;null===f&&(f=256);var c=a.width,h=r-c,l=c,p=4*(a.y*r+a.x),d=4*((a.y+a.height)*r+a.x),m=p,y=4*h;!0===a.interlaced&&(y+=4*r*7);for(var b=8,g=0,v=s.length;g<v;++g){var w=s[g];if(0===l&&(l=c,(m+=y)>=d&&(y=4*h+4*r*(b-1),m=p+(c+h)*(b<<1),b>>=1)),w===f)m+=4;else{var _=t[u+3*w],x=t[u+3*w+1],E=t[u+3*w+2];i[m++]=_,i[m++]=x,i[m++]=E,i[m++]=255}--l}}}}catch(t){}},,function(t,e,r){var n=r(142),i=r(143);t.exports={encode:n,decode:i}},function(t,e,r){var n=r(195),i=r(196);t.exports={encode:n,decode:i}},function(t,e,r){\"use strict\";(function(t){var r={nearestNeighbor:function(t,e){for(var r=t.width,n=t.height,i=e.width,a=e.height,o=t.data,s=e.data,u=0;u<a;u++)for(var f=0;f<i;f++){var c=4*(u*i+f),h=4*(Math.floor(u*n/a)*r+Math.floor(f*r/i));s[c++]=o[h++],s[c++]=o[h++],s[c++]=o[h++],s[c++]=o[h++]}},bilinearInterpolation:function(t,e){for(var r=t.width,n=t.height,i=e.width,a=e.height,o=t.data,s=e.data,u=function(t,e,r,n,i){return e===n?r:Math.round((t-e)*i+(n-t)*r)},f=function(t,e,n,i,a,f,c,h){var l=4*(c*r+i)+e,p=4*(c*r+a)+e,d=u(n,i,o[l],a,o[p]);if(h===c)s[t+e]=d;else{p=4*(h*r+a)+e;var m=u(n,i,o[l=4*(h*r+i)+e],a,o[p]);s[t+e]=u(f,c,d,h,m)}},c=0;c<a;c++)for(var h=0;h<i;h++){var l=4*(c*i+h),p=h*r/i,d=Math.floor(p),m=Math.min(Math.ceil(p),r-1),y=c*n/a,b=Math.floor(y),g=Math.min(Math.ceil(y),n-1);f(l,0,p,d,m,y,b,g),f(l,1,p,d,m,y,b,g),f(l,2,p,d,m,y,b,g),f(l,3,p,d,m,y,b,g)}},_interpolate2D:function(e,r,n,i){for(var a=e.data,o=r.data,s=e.width,u=e.height,f=r.width,c=r.height,h=Math.max(1,Math.floor(s/f)),l=f*h,p=Math.max(1,Math.floor(u/c)),d=c*p,m=t.alloc(l*u*4),y=0;y<u;y++)for(var b=0;b<l;b++)for(var g=b*(s-1)/l,v=Math.floor(g),w=g-v,_=4*(y*s+v),x=4*(y*l+b),E=0;E<4;E++){var D=_+E,k=v>0?a[D-4]:2*a[D]-a[D+4],A=a[D],S=a[D+4],M=v<s-2?a[D+8]:2*a[D+4]-a[D];m[x+E]=i(k,A,S,M,w)}for(var F=t.alloc(l*d*4),C=0;C<d;C++)for(var B=0;B<l;B++)for(var O=C*(u-1)/d,I=Math.floor(O),T=O-I,P=4*(I*l+B),L=4*(C*l+B),N=0;N<4;N++){var j=P+N,R=I>0?m[j-4*l]:2*m[j]-m[j+4*l],z=m[j],U=m[j+4*l],G=I<u-2?m[j+8*l]:2*m[j+4*l]-m[j];F[L+N]=i(R,z,U,G,T)}var H=h*p;if(H>1)for(var Z=0;Z<c;Z++)for(var q=0;q<f;q++){for(var W=0,Y=0,V=0,X=0,J=0,K=0;K<p;K++)for(var Q=Z*p+K,$=0;$<h;$++){var tt=4*(Q*l+(q*h+$)),et=F[tt+3];et&&(W+=F[tt],Y+=F[tt+1],V+=F[tt+2],J++),X+=et}var rt=4*(Z*f+q);o[rt]=J?Math.round(W/J):0,o[rt+1]=J?Math.round(Y/J):0,o[rt+2]=J?Math.round(V/J):0,o[rt+3]=Math.round(X/H)}else r.data=F},bicubicInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var a=n-r-t+e,o=t-e-a,s=r-t,u=e;return Math.max(0,Math.min(255,a*(i*i*i)+o*(i*i)+s*i+u))}))},hermiteInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var a=e,o=.5*(r-t),s=t-2.5*e+2*r-.5*n,u=.5*(n-t)+1.5*(e-r);return Math.max(0,Math.min(255,Math.round(((u*i+s)*i+o)*i+a)))}))},bezierInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var a=1-i,o=e*a*a*a,s=3*(e+(r-t)/4)*a*a*i,u=3*(r-(n-e)/4)*a*i*i,f=r*i*i*i;return Math.max(0,Math.min(255,Math.round(o+s+u+f)))}))}};e.a=r}).call(this,r(2).Buffer)},function(t,e,r){var n=r(221),i=r(222),a=r(223),o=r(224),s=r(225),u=r(226),f=r(227);f.alea=n,f.xor128=i,f.xorwow=a,f.xorshift7=o,f.xor4096=s,f.tychei=u,t.exports=f},,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}r.d(e,\"a\",(function(){return o}));var o=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.items=[]},(e=[{key:\"push\",value:function(t){this.items.push(t)}},{key:\"pop\",value:function(){if(this.isEmpty())throw\"empty stack\";return this.items.pop()}},{key:\"peek\",value:function(){return this.items[this.items.length-1]}},{key:\"isEmpty\",value:function(){return 0===this.items.length}},{key:\"size\",value:function(){return this.items.length}},{key:\"print\",value:function(){}}])&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}()},function(t,e){e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,f=u>>1,c=-7,h=r?i-1:0,l=r?-1:1,p=t[e+h];for(h+=l,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=l,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+t[e+h],h+=l,c-=8);if(0===a)a=1-f;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=f}return(p?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,f=8*a-i-1,c=(1<<f)-1,h=c>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+h>=1?l/u:l*Math.pow(2,1-h))*u>=2&&(o++,u/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*u-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<<i|s,f+=i;f>0;t[r+p]=255&o,p+=d,o/=256,f-=8);t[r+p-d]|=128*m}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.readFile=e.writeFileSync=e.writeFile=e.read=e.open=e.close=e.stat=e.createReadStream=e.pathExists=void 0;var s=r(11);function u(){return(u=o(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.stat(e,(function(e,n){e?r(e):t(n)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=o(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.close(e,(function(e){e?r(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function c(){return(c=o(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.open(e,r,(function(e,r){e?n(e):t(r)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function h(){return(h=o(i().mark((function t(e,r,n,a,o){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,i){s.read(e,r,n,a,o,(function(e,r,n){e?i(e):t({bytesRead:r,buffer:n})}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=o(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.writeFile(e,r,(function(e){e?n(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function p(){return(p=o(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.readFile(e,(function(e,n){e?r(e):t(n)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.pathExists=s.existsSync,e.createReadStream=s.createReadStream,e.stat=function(t){return u.apply(this,arguments)},e.close=function(t){return f.apply(this,arguments)},e.open=function(t,e){return c.apply(this,arguments)},e.read=function(t,e,r,n,i){return h.apply(this,arguments)},e.writeFile=function(t,e){return l.apply(this,arguments)},e.writeFileSync=function(t,e){s.writeFileSync(t,e)},e.readFile=function(t){return p.apply(this,arguments)}},function(t,e){function r(t,e){switch(t){case 1:return e.nextUInt8();case 3:case 8:return e.nextUInt16();case 4:case 9:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error(\"Invalid format while decoding: \"+t)}}function n(t,e){var n,i,a=e.nextUInt16(),o=e.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(o),u=e.nextUInt32(),f=s*u;if(f>4&&(e=t.openWithOffset(e.nextUInt32())),2===o){var c=(n=e.nextString(u)).indexOf(\"\\0\");-1!==c&&(n=n.substr(0,c))}else if(7===o)n=e.nextBuffer(u);else if(0!==o)for(n=[],i=0;i<u;++i)n.push(r(o,e));return f<4&&e.skip(4-f),[a,n,o]}function i(t,e,r){var i,a,o=e.nextUInt16();for(a=0;a<o;++a)r((i=n(t,e))[0],i[1],i[2])}t.exports={IFD0:1,IFD1:2,GPSIFD:3,SubIFD:4,InteropIFD:5,parseTags:function(t,e){var r,n,a,o;try{r=function(t){if(\"Exif\\0\\0\"!==t.nextString(6))throw new Error(\"Invalid EXIF header\");var e=t.mark(),r=t.nextUInt16();if(18761===r)t.setBigEndian(!1);else{if(19789!==r)throw new Error(\"Invalid TIFF header\");t.setBigEndian(!0)}if(42!==t.nextUInt16())throw new Error(\"Invalid TIFF data\");return e}(t)}catch(t){return!1}var s=r.openWithOffset(t.nextUInt32()),u=this.IFD0;i(r,s,(function(t,r,i){switch(t){case 34853:a=r[0];break;case 34665:n=r[0];break;default:e(u,t,r,i)}}));var f=s.nextUInt32();if(0!==f){var c=r.openWithOffset(f);i(r,c,e.bind(null,this.IFD1))}if(a){var h=r.openWithOffset(a);i(r,h,e.bind(null,this.GPSIFD))}if(n){var l=r.openWithOffset(n),p=this.InteropIFD;i(r,l,(function(t,r,n){40965===t?o=r[0]:e(p,t,r,n)}))}if(o){var d=r.openWithOffset(o);i(r,d,e.bind(null,this.InteropIFD))}return!0}}},function(t,e,r){\"use strict\";(function(e,n){var i=r(39);t.exports=v;var a,o=r(146);v.ReadableState=g;r(31).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=r(71),f=r(51).Buffer,c=(void 0!==e?e:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var h=Object.create(r(27));h.inherits=r(24);var l=r(147),p=void 0;p=l&&l.debuglog?l.debuglog(\"stream\"):function(){};var d,m=r(148),y=r(72);h.inherits(v,u);var b=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function g(t,e){t=t||{};var n=e instanceof(a=a||r(18));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=r(73).StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function v(t){if(a=a||r(18),!(this instanceof v))return new v(t);this._readableState=new g(t,this),this.readable=!0,t&&(\"function\"==typeof t.read&&(this._read=t.read),\"function\"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,r,n,i){var a,o=t._readableState;null===e?(o.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,D(t)}(t,o)):(i||(a=function(t,e){var r;n=e,f.isBuffer(n)||n instanceof c||\"string\"==typeof e||void 0===e||t.objectMode||(r=new TypeError(\"Invalid non-string/buffer chunk\"));var n;return r}(o,e)),a?t.emit(\"error\",a):o.objectMode||e&&e.length>0?(\"string\"==typeof e||o.objectMode||Object.getPrototypeOf(e)===f.prototype||(e=function(t){return f.from(t)}(e)),n?o.endEmitted?t.emit(\"error\",new Error(\"stream.unshift() after end event\")):_(t,o,e,!0):o.ended?t.emit(\"error\",new Error(\"stream.push() after EOF\")):(o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?_(t,o,e,!1):A(t,o)):_(t,o,e,!1))):n||(o.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(o)}function _(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit(\"data\",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&D(t)),A(t,e)}Object.defineProperty(v.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=y.destroy,v.prototype._undestroy=y.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:\"string\"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=f.from(t,e),e=\"\"),r=!0),w(this,t,e,!1,r)},v.prototype.unshift=function(t){return w(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return d||(d=r(73).StringDecoder),this._readableState.decoder=new d(t),this._readableState.encoding=t,this};var x=8388608;function E(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function D(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(p(\"emitReadable\",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(k,t):k(t))}function k(t){p(\"emit readable\"),t.emit(\"readable\"),C(t)}function A(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(S,t,e))}function S(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(p(\"maybeReadMore read 0\"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function M(t){p(\"readable nexttick read 0\"),t.read(0)}function F(t,e){e.reading||(p(\"resume read 0\"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit(\"resume\"),C(t),e.flowing&&!e.reading&&t.read(0)}function C(t){var e=t._readableState;for(p(\"flow\",e.flowing);e.flowing&&null!==t.read(););}function B(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(\"\"):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=f.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var a=n.data,o=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,o),0===(t-=o)){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function O(t){var e=t._readableState;if(e.length>0)throw new Error('\"endReadable()\" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(I,e,t))}function I(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit(\"end\"))}function T(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}v.prototype.read=function(t){p(\"read\",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return p(\"read: emitReadable\",e.length,e.ended),0===e.length&&e.ended?O(this):D(this),null;if(0===(t=E(t,e))&&e.ended)return 0===e.length&&O(this),null;var n,i=e.needReadable;return p(\"need readable\",i),(0===e.length||e.length-t<e.highWaterMark)&&p(\"length less than watermark\",i=!0),e.ended||e.reading?p(\"reading or ended\",i=!1):i&&(p(\"do read\"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(r,e))),null===(n=t>0?B(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&O(this)),null!==n&&this.emit(\"data\",n),n},v.prototype._read=function(t){this.emit(\"error\",new Error(\"_read() is not implemented\"))},v.prototype.pipe=function(t,e){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t)}a.pipesCount+=1,p(\"pipe count=%d opts=%j\",a.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?c:v;function f(e,n){p(\"onunpipe\"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p(\"cleanup\"),t.removeListener(\"close\",b),t.removeListener(\"finish\",g),t.removeListener(\"drain\",h),t.removeListener(\"error\",y),t.removeListener(\"unpipe\",f),r.removeListener(\"end\",c),r.removeListener(\"end\",v),r.removeListener(\"data\",m),l=!0,!a.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function c(){p(\"onend\"),t.end()}a.endEmitted?i.nextTick(u):r.once(\"end\",u),t.on(\"unpipe\",f);var h=function(t){return function(){var e=t._readableState;p(\"pipeOnDrain\",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,\"data\")&&(e.flowing=!0,C(t))}}(r);t.on(\"drain\",h);var l=!1;var d=!1;function m(e){p(\"ondata\"),d=!1,!1!==t.write(e)||d||((1===a.pipesCount&&a.pipes===t||a.pipesCount>1&&-1!==T(a.pipes,t))&&!l&&(p(\"false write response, pause\",a.awaitDrain),a.awaitDrain++,d=!0),r.pause())}function y(e){p(\"onerror\",e),v(),t.removeListener(\"error\",y),0===s(t,\"error\")&&t.emit(\"error\",e)}function b(){t.removeListener(\"finish\",g),v()}function g(){p(\"onfinish\"),t.removeListener(\"close\",b),v()}function v(){p(\"unpipe\"),r.unpipe(t)}return r.on(\"data\",m),function(t,e,r){if(\"function\"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?o(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,\"error\",y),t.once(\"close\",b),t.once(\"finish\",g),t.emit(\"pipe\",r),a.flowing||(p(\"pipe resume\"),r.resume()),t},v.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit(\"unpipe\",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var o=T(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit(\"unpipe\",this,r)),this},v.prototype.on=function(t,e){var r=u.prototype.on.call(this,t,e);if(\"data\"===t)!1!==this._readableState.flowing&&this.resume();else if(\"readable\"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&D(this):i.nextTick(M,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(p(\"resume\"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(F,t,e))}(this,t)),this},v.prototype.pause=function(){return p(\"call pause flowing=%j\",this._readableState.flowing),!1!==this._readableState.flowing&&(p(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this},v.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on(\"end\",(function(){if(p(\"wrapped end\"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on(\"data\",(function(i){(p(\"wrapped data\"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&\"function\"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a<b.length;a++)t.on(b[a],this.emit.bind(this,b[a]));return this._read=function(e){p(\"wrapped _read\",e),n&&(n=!1,t.resume())},this},Object.defineProperty(v.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=B}).call(this,r(10),r(7))},function(t,e,r){t.exports=r(31).EventEmitter},function(t,e,r){\"use strict\";var n=r(39);function i(t,e){t.emit(\"error\",e)}t.exports={destroy:function(t,e){var r=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,r){\"use strict\";var n=r(152).Buffer,i=n.isEncoding||function(t){switch((t=\"\"+t)&&t.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function a(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return\"utf8\";for(var e;;)switch(t){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return t;default:if(e)return;t=(\"\"+t).toLowerCase(),e=!0}}(t);if(\"string\"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error(\"Unknown encoding: \"+t);return e||t}(t),this.encoding){case\"utf16le\":this.text=u,this.end=f,e=4;break;case\"utf8\":this.fillLast=s,e=4;break;case\"base64\":this.text=c,this.end=h,e=3;break;default:return this.write=l,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,\"�\";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,\"�\";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,\"�\"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString(\"utf16le\",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(\"utf16le\",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(\"utf16le\",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString(\"base64\",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(\"base64\",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+this.lastChar.toString(\"base64\",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):\"\"}e.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return\"\";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return\"\";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||\"\"},a.prototype.end=function(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+\"�\":e},a.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=o(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString(\"utf8\",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString(\"utf8\",e,n)},a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,r){\"use strict\";t.exports=o;var n=r(18),i=Object.create(r(27));function a(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit(\"error\",new Error(\"write callback called multiple times\"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);n.call(this,t),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(\"function\"==typeof t.transform&&(this._transform=t.transform),\"function\"==typeof t.flush&&(this._flush=t.flush)),this.on(\"prefinish\",s)}function s(){var t=this;\"function\"==typeof this._flush?this._flush((function(e,r){u(t,e,r)})):u(this,null,null)}function u(t,e,r){if(e)return t.emit(\"error\",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error(\"Calling transform done when ws.length != 0\");if(t._transformState.transforming)throw new Error(\"Calling transform done when still transforming\");return t.push(null)}i.inherits=r(24),i.inherits(o,n),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,r){throw new Error(\"_transform() is not implemented\")},o.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit(\"close\")}))}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=Object.prototype.toString;t.exports=function(t){var e=i.call(t),r=\"[object Arguments]\"===e;return r||(r=\"[object Array]\"!==e&&null!==t&&\"object\"===n(t)&&\"number\"==typeof t.length&&t.length>=0&&\"[object Function]\"===i.call(t.callee)),r}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}t.exports=function(){if(\"function\"!=typeof Symbol||\"function\"!=typeof Object.getOwnPropertySymbols)return!1;if(\"symbol\"===n(Symbol.iterator))return!0;var t={},e=Symbol(\"test\"),r=Object(e);if(\"string\"==typeof e)return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(e))return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if(\"function\"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if(\"function\"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(\"function\"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(t,e);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},function(t,e,r){\"use strict\";t.exports=SyntaxError},function(t,e,r){\"use strict\";var n=r(29)(\"%Object.getOwnPropertyDescriptor%\",!0);if(n)try{n([],\"length\")}catch(t){n=null}t.exports=n},function(t,e,r){\"use strict\";t.exports=function(t,e,r,n){for(var i=65535&t,a=t>>>16&65535,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{a=a+(i=i+e[n++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16}},function(t,e,r){\"use strict\";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var a=n,o=i+r;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^e[s])];return~t}},function(t,e,r){\"use strict\";(function(e,n){var i=r(14),a=r(38),o=t.exports=function(){a.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding=\"utf8\",this.writable=!0};i.inherits(o,a),o.prototype.read=function(t,r){this._reads.push({length:Math.abs(t),allowLess:t<0,func:r}),e.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit(\"drain\"))}.bind(this))},o.prototype.write=function(t,e){return this.writable?(r=n.isBuffer(t)?t:n.from(t,e||this._encoding),this._buffers.push(r),this._buffered+=r.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit(\"error\",new Error(\"Stream not writable\")),!1);var r},o.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},o.prototype.destroySoon=o.prototype.end,o.prototype._end=function(){this._reads.length>0&&this.emit(\"error\",new Error(\"Unexpected end of input\")),this.destroy()},o.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit(\"close\"))},o.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},o.prototype._processRead=function(t){this._reads.shift();for(var e=0,r=0,i=n.alloc(t.length);e<t.length;){var a=this._buffers[r++],o=Math.min(a.length,t.length-e);a.copy(i,e,0,o),e+=o,o!==a.length&&(this._buffers[--r]=a.slice(o))}r>0&&this._buffers.splice(0,r),this._buffered-=t.length,t.func.call(this,i)},o.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit(\"error\",t)}}}).call(this,r(7),r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(83),i=r(84);function a(t,e,r){var n=t*e;return 8!==r&&(n=Math.ceil(n/(8/r))),n}var o=t.exports=function(t,e){var r=t.width,i=t.height,o=t.interlace,s=t.bpp,u=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],o)for(var f=n.getImagePasses(r,i),c=0;c<f.length;c++)this._images.push({byteWidth:a(f[c].width,s,u),height:f[c].height,lineIndex:0});else this._images.push({byteWidth:a(r,s,u),height:i,lineIndex:0});this._xComparison=8===u?s:16===u?2*s:1};o.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},o.prototype._unFilterType1=function(t,e,r){for(var n=this._xComparison,i=n-1,a=0;a<r;a++){var o=t[1+a],s=a>i?e[a-n]:0;e[a]=o+s}},o.prototype._unFilterType2=function(t,e,r){for(var n=this._lastLine,i=0;i<r;i++){var a=t[1+i],o=n?n[i]:0;e[i]=a+o}},o.prototype._unFilterType3=function(t,e,r){for(var n=this._xComparison,i=n-1,a=this._lastLine,o=0;o<r;o++){var s=t[1+o],u=a?a[o]:0,f=o>i?e[o-n]:0,c=Math.floor((f+u)/2);e[o]=s+c}},o.prototype._unFilterType4=function(t,e,r){for(var n=this._xComparison,a=n-1,o=this._lastLine,s=0;s<r;s++){var u=t[1+s],f=o?o[s]:0,c=s>a?e[s-n]:0,h=s>a&&o?o[s-n]:0,l=i(c,f,h);e[s]=u+l}},o.prototype._reverseFilterLine=function(t){var r,n=t[0],i=this._images[this._imageIndex],a=i.byteWidth;if(0===n)r=t.slice(1,a+1);else switch(r=e.alloc(a),n){case 1:this._unFilterType1(t,r,a);break;case 2:this._unFilterType2(t,r,a);break;case 3:this._unFilterType3(t,r,a);break;case 4:this._unFilterType4(t,r,a);break;default:throw new Error(\"Unrecognised filter type - \"+n)}this.write(r),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=r,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var r=[],i=t%8,a=e%8,o=(t-i)/8,s=(e-a)/8,u=0;u<n.length;u++){for(var f=n[u],c=o*f.x.length,h=s*f.y.length,l=0;l<f.x.length&&f.x[l]<i;l++)c++;for(var p=0;p<f.y.length&&f.y[p]<a;p++)h++;c>0&&h>0&&r.push({width:c,height:h,index:u})}return r},e.getInterlaceIterator=function(t){return function(e,r,i){var a=e%n[i].x.length,o=(e-a)/n[i].x.length*8+n[i].x[a],s=r%n[i].y.length;return 4*o+((r-s)/n[i].y.length*8+n[i].y[s])*t*4}}},function(t,e,r){\"use strict\";t.exports=function(t,e,r){var n=t+e-r,i=Math.abs(n-t),a=Math.abs(n-e),o=Math.abs(n-r);return i<=a&&i<=o?t:a<=o?e:r}},function(t,e,r){\"use strict\";(function(e){var n=r(30),i=r(86),a=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[n.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[n.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[n.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[n.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[n.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[n.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};a.prototype.start=function(){this.read(n.PNG_SIGNATURE.length,this._parseSignature.bind(this))},a.prototype._parseSignature=function(t){for(var e=n.PNG_SIGNATURE,r=0;r<e.length;r++)if(t[r]!==e[r])return void this.error(new Error(\"Invalid file signature\"));this.read(8,this._parseChunkBegin.bind(this))},a.prototype._parseChunkBegin=function(t){for(var r=t.readUInt32BE(0),a=t.readUInt32BE(4),o=\"\",s=4;s<8;s++)o+=String.fromCharCode(t[s]);var u=Boolean(32&t[4]);if(this._hasIHDR||a===n.TYPE_IHDR){if(this._crc=new i,this._crc.write(e.from(o)),this._chunks[a])return this._chunks[a](r);u?this.read(r+4,this._skipChunk.bind(this)):this.error(new Error(\"Unsupported critical chunk type \"+o))}else this.error(new Error(\"Expected IHDR on beggining\"))},a.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},a.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},a.prototype._parseChunkEnd=function(t){var e=t.readInt32BE(0),r=this._crc.crc32();this._options.checkCRC&&r!==e?this.error(new Error(\"Crc error - \"+e+\" - \"+r)):this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))},a.prototype._handleIHDR=function(t){this.read(t,this._parseIHDR.bind(this))},a.prototype._parseIHDR=function(t){this._crc.write(t);var e=t.readUInt32BE(0),r=t.readUInt32BE(4),i=t[8],a=t[9],o=t[10],s=t[11],u=t[12];if(8===i||4===i||2===i||1===i||16===i)if(a in n.COLORTYPE_TO_BPP_MAP)if(0===o)if(0===s)if(0===u||1===u){this._colorType=a;var f=n.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:r,depth:i,interlace:Boolean(u),palette:Boolean(a&n.COLORTYPE_PALETTE),color:Boolean(a&n.COLORTYPE_COLOR),alpha:Boolean(a&n.COLORTYPE_ALPHA),bpp:f,colorType:a}),this._handleChunkEnd()}else this.error(new Error(\"Unsupported interlace method\"));else this.error(new Error(\"Unsupported filter method\"));else this.error(new Error(\"Unsupported compression method\"));else this.error(new Error(\"Unsupported color type\"));else this.error(new Error(\"Unsupported bit depth \"+i))},a.prototype._handlePLTE=function(t){this.read(t,this._parsePLTE.bind(this))},a.prototype._parsePLTE=function(t){this._crc.write(t);for(var e=Math.floor(t.length/3),r=0;r<e;r++)this._palette.push([t[3*r],t[3*r+1],t[3*r+2],255]);this.palette(this._palette),this._handleChunkEnd()},a.prototype._handleTRNS=function(t){this.simpleTransparency(),this.read(t,this._parseTRNS.bind(this))},a.prototype._parseTRNS=function(t){if(this._crc.write(t),this._colorType===n.COLORTYPE_PALETTE_COLOR){if(0===this._palette.length)return void this.error(new Error(\"Transparency chunk must be after palette\"));if(t.length>this._palette.length)return void this.error(new Error(\"More transparent colors than palette size\"));for(var e=0;e<t.length;e++)this._palette[e][3]=t[e];this.palette(this._palette)}this._colorType===n.COLORTYPE_GRAYSCALE&&this.transColor([t.readUInt16BE(0)]),this._colorType===n.COLORTYPE_COLOR&&this.transColor([t.readUInt16BE(0),t.readUInt16BE(2),t.readUInt16BE(4)]),this._handleChunkEnd()},a.prototype._handleGAMA=function(t){this.read(t,this._parseGAMA.bind(this))},a.prototype._parseGAMA=function(t){this._crc.write(t),this.gamma(t.readUInt32BE(0)/n.GAMMA_DIVISION),this._handleChunkEnd()},a.prototype._handleIDAT=function(t){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-t,this._parseIDAT.bind(this,t))},a.prototype._parseIDAT=function(t,e){if(this._crc.write(e),this._colorType===n.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw new Error(\"Expected palette not found\");this.inflateData(e);var r=t-e.length;r>0?this._handleIDAT(r):this._handleChunkEnd()},a.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},a.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=[];!function(){for(var t=0;t<256;t++){for(var e=t,r=0;r<8;r++)1&e?e=3988292384^e>>>1:e>>>=1;n[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e<t.length;e++)this._crc=n[255&(this._crc^t[e])]^this._crc>>>8;return!0},i.prototype.crc32=function(){return~this._crc},i.crc32=function(t){for(var e=-1,r=0;r<t.length;r++)e=n[255&(e^t[r])]^e>>>8;return~e}},function(t,e,r){\"use strict\";(function(t){var n=r(83),i=[function(){},function(t,e,r,n){if(n===e.length)throw new Error(\"Ran out of data\");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=255},function(t,e,r,n){if(n+1>=e.length)throw new Error(\"Ran out of data\");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=e[n+1]},function(t,e,r,n){if(n+2>=e.length)throw new Error(\"Ran out of data\");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=255},function(t,e,r,n){if(n+3>=e.length)throw new Error(\"Ran out of data\");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=e[n+3]}],a=[function(){},function(t,e,r,n){var i=e[0];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=n},function(t,e,r){var n=e[0];t[r]=n,t[r+1]=n,t[r+2]=n,t[r+3]=e[1]},function(t,e,r,n){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=n},function(t,e,r){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=e[3]}];function o(t,e,r,n,a,o){for(var s=t.width,u=t.height,f=t.index,c=0;c<u;c++)for(var h=0;h<s;h++){var l=r(h,c,f);i[n](e,a,l,o),o+=n}return o}function s(t,e,r,n,i,o){for(var s=t.width,u=t.height,f=t.index,c=0;c<u;c++){for(var h=0;h<s;h++){var l=i.get(n),p=r(h,c,f);a[n](e,l,p,o)}i.resetAfterLine()}}e.dataToBitMap=function(e,r){var i,a,u=r.width,f=r.height,c=r.depth,h=r.bpp,l=r.interlace;8!==c&&(i=function(t,e){var r=[],n=0;function i(){if(n===t.length)throw new Error(\"Ran out of data\");var i,a,o,s,u,f,c,h,l=t[n];switch(n++,e){default:throw new Error(\"unrecognised depth\");case 16:c=t[n],n++,r.push((l<<8)+c);break;case 4:c=15&l,h=l>>4,r.push(h,c);break;case 2:u=3&l,f=l>>2&3,c=l>>4&3,h=l>>6&3,r.push(h,c,f,u);break;case 1:i=1&l,a=l>>1&1,o=l>>2&1,s=l>>3&1,u=l>>4&1,f=l>>5&1,c=l>>6&1,h=l>>7&1,r.push(h,c,f,u,s,o,a,i)}}return{get:function(t){for(;r.length<t;)i();var e=r.slice(0,t);return r=r.slice(t),e},resetAfterLine:function(){r.length=0},end:function(){if(n!==t.length)throw new Error(\"extra data found\")}}}(e,c)),a=c<=8?t.alloc(u*f*4):new Uint16Array(u*f*4);var p,d,m=Math.pow(2,c)-1,y=0;if(l)p=n.getImagePasses(u,f),d=n.getInterlaceIterator(u,f);else{var b=0;d=function(){var t=b;return b+=4,t},p=[{width:u,height:f}]}for(var g=0;g<p.length;g++)8===c?y=o(p[g],a,d,h,e,y):s(p[g],a,d,h,i,m);if(8===c){if(y!==e.length)throw new Error(\"extra data found\")}else i.end();return a}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){t.exports=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=r.depth,a=r.width,o=r.height,s=r.colorType,u=r.transColor,f=r.palette,c=t;return 3===s?function(t,e,r,n,i){for(var a=0,o=0;o<n;o++)for(var s=0;s<r;s++){var u=i[t[a]];if(!u)throw new Error(\"index \"+t[a]+\" not in palette\");for(var f=0;f<4;f++)e[a+f]=u[f];a+=4}}(t,c,a,o,f):(u&&function(t,e,r,n,i){for(var a=0,o=0;o<n;o++)for(var s=0;s<r;s++){var u=!1;if(1===i.length?i[0]===t[a]&&(u=!0):i[0]===t[a]&&i[1]===t[a+1]&&i[2]===t[a+2]&&(u=!0),u)for(var f=0;f<4;f++)e[a+f]=0;a+=4}}(t,c,a,o,u),8===i||n||(16===i&&(c=e.alloc(a*o*4)),function(t,e,r,n,i){for(var a=Math.pow(2,i)-1,o=0,s=0;s<n;s++)for(var u=0;u<r;u++){for(var f=0;f<4;f++)e[o+f]=Math.floor(255*t[o+f]/a+.5);o+=4}}(t,c,a,o,i))),c}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(30),i=r(86),a=r(188),o=r(189),s=r(28),u=t.exports=function(t){if(this._options=t,t.deflateChunkSize=t.deflateChunkSize||32768,t.deflateLevel=null!=t.deflateLevel?t.deflateLevel:9,t.deflateStrategy=null!=t.deflateStrategy?t.deflateStrategy:3,t.inputHasAlpha=null==t.inputHasAlpha||t.inputHasAlpha,t.deflateFactory=t.deflateFactory||s.createDeflate,t.bitDepth=t.bitDepth||8,t.colorType=\"number\"==typeof t.colorType?t.colorType:n.COLORTYPE_COLOR_ALPHA,t.inputColorType=\"number\"==typeof t.inputColorType?t.inputColorType:n.COLORTYPE_COLOR_ALPHA,-1===[n.COLORTYPE_GRAYSCALE,n.COLORTYPE_COLOR,n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(t.colorType))throw new Error(\"option color type:\"+t.colorType+\" is not supported at present\");if(-1===[n.COLORTYPE_GRAYSCALE,n.COLORTYPE_COLOR,n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(t.inputColorType))throw new Error(\"option input color type:\"+t.inputColorType+\" is not supported at present\");if(8!==t.bitDepth&&16!==t.bitDepth)throw new Error(\"option bit depth:\"+t.bitDepth+\" is not supported at present\")};u.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},u.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},u.prototype.filterData=function(t,e,r){var i=a(t,e,r,this._options),s=n.COLORTYPE_TO_BPP_MAP[this._options.colorType];return o(i,e,r,this._options,s)},u.prototype._packChunk=function(t,r){var n=r?r.length:0,a=e.alloc(n+12);return a.writeUInt32BE(n,0),a.writeUInt32BE(t,4),r&&r.copy(a,8),a.writeInt32BE(i.crc32(a.slice(4,a.length-4)),a.length-4),a},u.prototype.packGAMA=function(t){var r=e.alloc(4);return r.writeUInt32BE(Math.floor(t*n.GAMMA_DIVISION),0),this._packChunk(n.TYPE_gAMA,r)},u.prototype.packIHDR=function(t,r){var i=e.alloc(13);return i.writeUInt32BE(t,0),i.writeUInt32BE(r,4),i[8]=this._options.bitDepth,i[9]=this._options.colorType,i[10]=0,i[11]=0,i[12]=0,this._packChunk(n.TYPE_IHDR,i)},u.prototype.packIDAT=function(t){return this._packChunk(n.TYPE_IDAT,t)},u.prototype.packIEND=function(){return this._packChunk(n.TYPE_IEND,null)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=t.exports=function(t){this._buffer=t,this._reads=[]};n.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})},n.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}if(this._reads.length>0)throw new Error(\"There are some read requests waitng on finished stream\");if(this._buffer.length>0)throw new Error(\"unrecognised content at end of stream\")}},function(t,e,r){\"use strict\";t.exports=function(t,e,r,n){for(var i=65535&t,a=t>>>16&65535,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{a=a+(i=i+e[n++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16}},function(t,e,r){\"use strict\";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var a=n,o=i+r;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^e[s])];return~t}},function(t,e,r){\"use strict\";var n=r(15),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){a=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&a||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r=\"\",o=0;o<e;o++)r+=String.fromCharCode(t[o]);return r}o[254]=o[254]=1,e.string2buf=function(t){var e,r,i,a,o,s=t.length,u=0;for(a=0;a<s;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),u+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(u),o=0,a=0;o<u;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,a,s=e||t.length,f=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)f[n++]=i;else if((a=o[i])>4)f[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&r<s;)i=i<<6|63&t[r++],a--;a>1?f[n++]=65533:i<65536?f[n++]=i:(i-=65536,f[n++]=55296|i>>10&1023,f[n++]=56320|1023&i)}return u(f,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+o[t[r]]>e?r:e}},function(t,e,r){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}var o=r(59),s=r(42),u=s.Gif,f=s.GifError;function c(){var t=r(97);return c=function(){return t},t}var h=r(58).GifFrame,l=function(){return e=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this._transparentRGB=null,\"number\"==typeof e.transparentRGB&&0!==e.transparentRGB&&(this._transparentRGBA=256*e.transparentRGB),this._testInitialBufferSize=0},r=[{key:\"decodeGif\",value:function(t){try{var e;try{e=new o.GifReader(t)}catch(t){throw new f(t)}for(var r=e.numFrames(),n=[],i={width:e.width,height:e.height,loops:e.loopCount(),usesTransparency:!1},a=0;a<r;++a){var s=this._decodeFrame(e,a,i.usesTransparency);n.push(s.frame),s.usesTransparency&&(i.usesTransparency=!0)}return Promise.resolve(new u(t,n,i))}catch(t){return Promise.reject(t)}}},{key:\"encodeGif\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{if(null===t||0===t.length)throw new f(\"there are no frames\");var r=c().getMaxDimensions(t);return(e=Object.assign({},e)).width=r.maxWidth,e.height=r.maxHeight,void 0===e.loops&&(e.loops=0),e.colorScope=e.colorScope||u.GlobalColorsPreferred,Promise.resolve(this._encodeGif(t,e))}catch(t){return Promise.reject(t)}}},{key:\"_decodeFrame\",value:function(e,r,n){var i,a;try{if(i=e.frameInfo(r),a=new t(e.width*e.height*4),e.decodeAndBlitFrameRGBA(r,a),i.width!==e.width||i.height!==e.height){if(i.y&&(a=a.slice(i.y*e.width*4)),e.width>i.width)for(var o=0;o<i.height;++o)a.copy(a,o*i.width*4,4*(i.x+o*e.width),4*(i.x+o*e.width)+4*i.width);a=a.slice(0,i.width*i.height*4)}}catch(t){throw new f(t)}var s=!1;if(null===this._transparentRGBA){if(!n)for(var u=3;u<a.length;u+=4)0===a[u]&&(s=!0,u=a.length)}else for(var c=3;c<a.length;c+=4)0===a[c]&&(a.writeUInt32BE(this._transparentRGBA,c-3),s=!0);return{frame:new h(i.width,i.height,a,{xOffset:i.x,yOffset:i.y,disposalMethod:i.disposal,interlaced:i.interlaced,delayCentisecs:i.delay}),usesTransparency:s}}},{key:\"_encodeGif\",value:function(e,r){var n;if(r.colorScope===u.LocalColorsOnly)n=c().getColorInfo(e,0);else if(!(n=c().getColorInfo(e,256)).colors){if(r.colorScope===u.GlobalColorsOnly)throw new f(\"Too many color indexes for global color table\");r.colorScope=u.LocalColorsOnly}r.usesTransparency=n.usesTransparency;var i=n.palettes;return r.colorScope===u.LocalColorsOnly?function(e,r,n,i){var a,s={loop:r.loops},c=new t(n);try{a=new o.GifWriter(c,r.width,r.height,s)}catch(t){throw new f(t)}for(var h=0;h<e.length;++h)c=g(a,h,e[h],i[h],!0);return new u(c.slice(0,a.end()),e,r)}(e,r,2e3,i):function(e,r,n,i){var a={colors:i.colors.slice(),usesTransparency:i.usesTransparency};m(a);var s,c={palette:a.colors,loop:r.loops},h=new t(n);try{s=new o.GifWriter(h,r.width,r.height,c)}catch(t){throw new f(t)}for(var l=0;l<e.length;++l)h=g(s,l,e[l],i,!1);return new u(h.slice(0,s.end()),e,r)}(e,r,2e3,n)}},{key:\"_getSizeEstimateGlobal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;var r=968,n=b(t);return e.forEach((function(t){r+=y(t,n)})),r}},{key:\"_getSizeEstimateLocal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;for(var r=200,n=0;n<e.length;++n){var i=b(t[n]);r+=y(e[n],i)}return r}}],r&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,n}();function p(t,e){var r=t.indexOf(e);return-1===r?null:r}function d(t,e){for(var r,n=0,i=t.length-1;n<=i;)if(t[r=Math.floor((n+i)/2)]>e)i=r-1;else{if(!(t[r]<e))return r;n=r+1}return null}function m(t){var e=t.colors;t.usesTransparency&&e.push(0);for(var r=e.length,n=2;r>n;)n<<=1;e.length=n,e.fill(0,r)}function y(t,e){var r=t.bitmap.width*t.bitmap.height;return r=Math.ceil(r*e/8),100+(r+=Math.ceil(r/255))+768}function b(t){var e=t.indexCount,r=0;for(--e;e;)++r,e>>=1;return r>0?r:1}function g(e,r,n,i,a){if(n.interlaced)throw new f(\"writing interlaced GIFs is not supported\");var o=function(e,r,n){for(var i=n.colors,a=i.length<=8?p:d,o=r.bitmap.data,s=new t(o.length/4),u=i.length,c=0,h=0;c<o.length;){if(0!==o[c+3]){var l=o.readUInt32BE(c,!0)>>8&16777215;s[h]=a(i,l)}else s[h]=u;c+=4,++h}if(n.usesTransparency){if(256===u)throw new f(\"Frame \".concat(e,\" already has 256 colors\")+\"and so can't use transparency\")}else u=null;return{buffer:s,transparentIndex:u}}(r,n,i),s={delay:n.delayCentisecs,disposal:n.disposalMethod,transparent:o.transparentIndex};a&&(m(i),s.palette=i.colors);try{for(var u,c=e.getOutputBuffer(),h=e.getOutputBufferPosition(),l=!0;l;)if(u=e.addFrame(n.xOffset,n.yOffset,n.bitmap.width,n.bitmap.height,o.buffer,s),l=!1,u>=c.length-1){var y=new t(1.5*c.length);c.copy(y),e.setOutputBuffer(y),e.setOutputBufferPosition(h),c=y,l=!0}return c}catch(t){throw new f(t)}}e.GifCodec=l}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(11),i=r(206),a=r(57),o=r(58).GifFrame,s=r(42).GifError,u=r(96).GifCodec,f=[\".jpg\",\".jpeg\",\".png\",\".bmp\"],c=new u;function h(t,e,r,n,a){var o=Array.isArray(t)?t:[t];if(a){if([\"FloydSteinberg\",\"FalseFloydSteinberg\",\"Stucki\",\"Atkinson\",\"Jarvis\",\"Burkes\",\"Sierra\",\"TwoSierra\",\"SierraLite\"].indexOf(a.ditherAlgorithm)<0)throw new Error(\"Invalid ditherAlgorithm '\".concat(a.ditherAlgorithm,\"'\"));void 0===a.serpentine&&(a.serpentine=!0),void 0===a.minimumColorDistanceToDither&&(a.minimumColorDistanceToDither=0),void 0===a.calculateErrorLikeGIMP&&(a.calculateErrorLikeGIMP=!1)}var s,u=new i.distance.Euclidean,f=new i.palette[e](u,r,n);s=a?new i.image.ErrorDiffusionArray(u,i.image.ErrorDiffusionArrayKernel[a.ditherAlgorithm],a.serpentine,a.minimumColorDistanceToDither,a.calculateErrorLikeGIMP):new i.image.NearestColor(u);var c=[];o.forEach((function(t){for(var e=t.bitmap.data,r=new ArrayBuffer(e.length),n=new Uint32Array(r),a=0,o=0;a<e.length;a+=4,++o)n[o]=e.readUInt32LE(a,!0);var s=i.utils.PointContainer.fromUint32Array(n,t.bitmap.width,t.bitmap.height);f.sample(s),c.push(s)}));for(var h=f.quantizeSync(),l=0;l<o.length;++l)for(var p=o[l].bitmap.data,d=s.quantizeSync(c[l],h).toUint32Array(),m=0,y=0;m<p.length;m+=4,++y)p.writeUInt32LE(d[y],m)}e.cloneFrames=function(t){var e=[];return t.forEach((function(t){e.push(new o(t))})),e},e.getColorInfo=function(t,e){for(var r=!1,n=[],i=0;i<t.length;++i){var a=t[i].getPalette();if(a.usesTransparency&&(r=!0),a.indexCount>256)throw new s(\"Frame \".concat(i,\" uses more than 256 color indexes\"));n.push(a)}if(0===e)return{usesTransparency:r,palettes:n};var o=new Set;n.forEach((function(t){t.colors.forEach((function(t){o.add(t)}))}));var u=o.size;if(r&&++u,e&&u>e)return{usesTransparency:r,palettes:n};for(var f=new Array(o.size),c=o.values(),h=0;h<f.length;++h)f[h]=c.next().value;return f.sort((function(t,e){return t-e})),{colors:f,indexCount:u,usesTransparency:r,palettes:n}},e.copyAsJimp=function(t,r){return e.shareAsJimp(t,new a(r))},e.getMaxDimensions=function(t){var e=0,r=0;return t.forEach((function(t){var n=t.xOffset+t.bitmap.width;n>e&&(e=n);var i=t.yOffset+t.bitmap.height;i>r&&(r=i)})),{maxWidth:e,maxHeight:r}},e.quantizeDekker=function(t,e,r){h(t,\"NeuQuantFloat\",e=e||256,0,r)},e.quantizeSorokin=function(t,e,r,n){var i;switch(e=e||256,r=r||\"min-pop\"){case\"min-pop\":i=2;break;case\"top-pop\":i=1;break;default:throw new Error(\"Invalid quantizeSorokin histogram '\".concat(r,\"'\"))}h(t,\"RGBQuant\",e,i,n)},e.quantizeWu=function(t,e,r,n){if(e=e||256,(r=r||5)<1||r>8)throw new Error(\"Invalid quantization quality\");h(t,\"WuQuant\",e,r,n)},e.read=function(e,r){return r=r||c,t.isBuffer(e)?r.decodeGif(e):(i=e,new Promise((function(t,e){n.readFile(i,(function(r,n){return r?e(r):t(n)}))}))).then((function(t){return r.decodeGif(t)}));var i},e.shareAsJimp=function(t,e){var r=new t(e.bitmap.width,e.bitmap.height,0);return r.bitmap.data=e.bitmap.data,r},e.write=function(t,e,r,i){i=i||c;var a=t.match(/\\.[a-zA-Z]+$/);if(null!==a&&f.includes(a[0].toLowerCase()))throw new Error(\"GIF '\".concat(t,\"' has an unexpected suffix\"));return i.encodeGif(e,r).then((function(e){return function(t,e){return new Promise((function(r,i){n.writeFile(t,e,(function(t){return t?i(t):r()}))}))}(t,e.buffer).then((function(){return e}))}))}}).call(this,r(2).Buffer)},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t};var r=Object.prototype.hasOwnProperty},function(t,e,r){function n(t,e,r){this._queue=[],this._priorities=[],this._sorting=\"desc\",this._init(t,e,r)}n.prototype.insert=function(t,e){for(var r=this._queue.length,n=r;n--;){var i=this._priorities[n];\"desc\"===this._sorting?e>i&&(r=n):e<i&&(r=n)}this._insertAt(t,e,r)},n.prototype.remove=function(t){for(var e=this._queue.length;e--;){if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}}},n.prototype.forEach=function(t){this._queue.forEach(t)},n.prototype.getElements=function(){return this._queue},n.prototype.getElementPriority=function(t){return this._priorities[t]},n.prototype.getPriorities=function(){return this._priorities},n.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,r=this._queue.length;e<r;e++)t.push([this._queue[e],this._priorities[e]]);return t},n.prototype._init=function(t,e,r){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error(\"Arrays must have the same length\");for(var n=0;n<t.length;n++)this.insert(t[n],e[n])}r&&(this._sorting=r)},n.prototype._insertAt=function(t,e,r){this._queue.length===r?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(r,0,t),this._priorities.splice(r,0,e))},t.exports&&(t.exports=n)},function(t,e){function r(e){return t.exports=r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){\"use strict\";function n(t,e,r,a,o,s){for(var u,f,c,h,l=Math.max(e-1,0),p=Math.max(r-1,0),d=Math.min(e+1,a-1),m=Math.min(r+1,o-1),y=4*(r*a+e),b=0,g=0,v=0,w=0,_=0,x=l;x<=d;x++)for(var E=p;E<=m;E++)if(x!==e||E!==r){var D=i(t,t,y,4*(E*a+x),!0);if(0===D?b++:D<0?v++:D>0&&g++,b>2)return!1;s&&(D<w&&(w=D,u=x,f=E),D>_&&(_=D,c=x,h=E))}return!s||0!==v&&0!==g&&(!n(t,u,f,a,o)&&!n(s,u,f,a,o)||!n(t,c,h,a,o)&&!n(s,c,h,a,o))}function i(t,e,r,n,i){var f=t[r+3]/255,c=e[n+3]/255,h=u(t[r+0],f),l=u(t[r+1],f),p=u(t[r+2],f),d=u(e[n+0],c),m=u(e[n+1],c),y=u(e[n+2],c),b=a(h,l,p)-a(d,m,y);if(i)return b;var g=o(h,l,p)-o(d,m,y),v=s(h,l,p)-s(d,m,y);return.5053*b*b+.299*g*g+.1957*v*v}function a(t,e,r){return.29889531*t+.58662247*e+.11448223*r}function o(t,e,r){return.59597799*t-.2741761*e-.32180189*r}function s(t,e,r){return.21147017*t-.52261711*e+.31114694*r}function u(t,e){return 255+(t-255)*e}function f(t,e,r,n,i){t[e+0]=r,t[e+1]=n,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,r,o,s,c){c||(c={});for(var h=void 0===c.threshold?.1:c.threshold,l=35215*h*h,p=0,d=0;d<s;d++)for(var m=0;m<o;m++){var y=4*(d*o+m);if(i(t,e,y,y)>l)c.includeAA||!n(t,m,d,o,s,e)&&!n(e,m,d,o,s,t)?(r&&f(r,y,255,0,0),p++):r&&f(r,y,255,255,0);else if(r){var b=u((w=void 0,_=void 0,x=void 0,E=void 0,w=(g=t)[(v=y)+3]/255,_=u(g[v+0],w),x=u(g[v+1],w),E=u(g[v+2],w),a(_,x,E)),.1);f(r,y,b,b,b)}}var g,v,w,_,x,E;return p}},function(t,e,r){\"use strict\";r(123);var n=[\"url\"];function i(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}e.a=function(t,e){var r=t.url,a=i(t,n);fetch(r,a).then((function(t){if(t.ok)return t.arrayBuffer().catch((function(t){throw new Error(\"Response is not a buffer for url \".concat(r,\". Error: \").concat(t.message))}));throw new Error(\"HTTP Status \".concat(t.status,\" for url \").concat(r))})).then((function(t){return e(null,t)})).catch((function(t){return e(t)}))}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}var o=r(125),s=r(131);function u(){var t;return t=i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.fromFile(e);case 2:return r=t.sent,t.prev=3,t.next=6,s.fromTokenizer(r);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])})),u=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))},u.apply(this,arguments)}var f={fromFile:function(t){return u.apply(this,arguments)}};Object.assign(f,s),Object.defineProperty(f,\"extensions\",{get:function(){return s.extensions}}),Object.defineProperty(f,\"mimeTypes\",{get:function(){return s.mimeTypes}}),t.exports=f},function(t,e,r){var n=r(135);t.exports={create:function(t,e){if(t instanceof(e=e||(0,eval)(\"this\")).ArrayBuffer){var i=r(140);return new n(new i(t,0,t.byteLength,!0,e))}var a=r(141);return new n(new a(t,0,t.length,!0))}}},function(t,e,r){\"use strict\";(function(t){var n=r(36),i=r.n(n);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function o(t,e,r){var n;return n=function(t,e){if(\"object\"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==a(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=\"image/tiff\";e.a=function(){return{mime:o({},s,[\"tiff\",\"tif\"]),constants:{MIME_TIFF:s},decoders:o({},s,(function(e){var r=i.a.decode(e),n=r[0];r.forEach((function(t){i.a.decodeImage(e,t)}));var a=i.a.toRGBA8(n);return{data:t.from(a),width:n.t256[0],height:n.t257[0]}})),encoders:o({},s,(function(e){var r=i.a.encodeImage(e.bitmap.data,e.bitmap.width,e.bitmap.height);return t.from(r)}))}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(59),i=r.n(n),a=r(37);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function s(t,e,r){var n;return n=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=\"image/gif\";e.a=function(){return{mime:s({},u,[\"gif\"]),constants:{MIME_GIF:u},decoders:s({},u,(function(e){var r=new i.a.GifReader(e),n=t.alloc(r.width*r.height*4);return r.decodeAndBlitFrameRGBA(0,n),{data:n,width:r.width,height:r.height}})),encoders:s({},u,(function(t){var e=new a.BitmapImage(t.bitmap);a.GifUtil.quantizeDekker(e,256);var r=new a.GifFrame(e);return(new a.GifCodec).encodeGif([r],{}).then((function(t){return t.buffer}))}))}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(32),i=r.n(n),a=r(0);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e,r,n){for(var i=[0,0,0],a=(e.length-1)/2,o=0;o<e.length;o+=1)for(var s=0;s<e[o].length;s+=1){var u=t.getPixelIndex(r+o-a,n+s-a);i[0]+=t.bitmap.data[u]*e[o][s],i[1]+=t.bitmap.data[u+1]*e[o][s],i[2]+=t.bitmap.data[u+2]*e[o][s]}return i}var f=function(t){return null!=t};function c(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){var n=parseInt(.2126*this.bitmap.data[r]+.7152*this.bitmap.data[r+1]+.0722*this.bitmap.data[r+2],10);this.bitmap.data[r]=n,this.bitmap.data[r+1]=n,this.bitmap.data[r+2]=n})),Object(a.a)(t)&&t.call(this,null,this),this}function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(r/100)+t.r,g:(e.g-t.g)*(r/100)+t.g,b:(e.b-t.b)*(r/100)+t.b}}function l(t,e){var r=this;return t&&Array.isArray(t)?(t=t.map((function(t){return\"xor\"!==t.apply&&\"mix\"!==t.apply||(t.params[0]=i()(t.params[0]).toRgb()),t})),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(n,s,u){var f={r:r.bitmap.data[u],g:r.bitmap.data[u+1],b:r.bitmap.data[u+2]},c=function(t,e){return r.constructor.limit255(f[t]+e)};t.forEach((function(t){if(\"mix\"===t.apply)f=h(f,t.params[0],t.params[1]);else if(\"tint\"===t.apply)f=h(f,{r:255,g:255,b:255},t.params[0]);else if(\"shade\"===t.apply)f=h(f,{r:0,g:0,b:0},t.params[0]);else if(\"xor\"===t.apply)f={r:f.r^t.params[0].r,g:f.g^t.params[0].g,b:f.b^t.params[0].b};else if(\"red\"===t.apply)f.r=c(\"r\",t.params[0]);else if(\"green\"===t.apply)f.g=c(\"g\",t.params[0]);else if(\"blue\"===t.apply)f.b=c(\"b\",t.params[0]);else{var n;if(\"hue\"===t.apply&&(t.apply=\"spin\"),!(f=i()(f))[t.apply])return a.d.call(r,\"action \"+t.apply+\" not supported\",e);f=(n=f)[t.apply].apply(n,o(t.params)).toRgb()}})),r.bitmap.data[u]=f.r,r.bitmap.data[u+1]=f.g,r.bitmap.data[u+2]=f.b})),Object(a.a)(e)&&e.call(this,null,this),this):a.d.call(this,\"actions must be an array\",e)}Object.freeze({LIGHTEN:\"lighten\",BRIGHTEN:\"brighten\",DARKEN:\"darken\",DESATURATE:\"desaturate\",SATURATE:\"saturate\",GREYSCALE:\"greyscale\",SPIN:\"spin\",HUE:\"hue\",MIX:\"mix\",TINT:\"tint\",SHADE:\"shade\",XOR:\"xor\",RED:\"red\",GREEN:\"green\",BLUE:\"blue\"});e.a=function(){return{brightness:function(t,e){return\"number\"!=typeof t?a.d.call(this,\"val must be numbers\",e):t<-1||t>1?a.d.call(this,\"val must be a number between -1 and +1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t<0?(this.bitmap.data[n]*=1+t,this.bitmap.data[n+1]*=1+t,this.bitmap.data[n+2]*=1+t):(this.bitmap.data[n]+=(255-this.bitmap.data[n])*t,this.bitmap.data[n+1]+=(255-this.bitmap.data[n+1])*t,this.bitmap.data[n+2]+=(255-this.bitmap.data[n+2])*t)})),Object(a.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if(\"number\"!=typeof t)return a.d.call(this,\"val must be numbers\",e);if(t<-1||t>1)return a.d.call(this,\"val must be a number between -1 and +1\",e);var r=(t+1)/(1-t);function n(t){return(t=Math.floor(r*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=n(this.bitmap.data[r]),this.bitmap.data[r+1]=n(this.bitmap.data[r+1]),this.bitmap.data[r+2]=n(this.bitmap.data[r+2])})),Object(a.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return\"number\"!=typeof t?a.d.call(this,\"n must be numbers\",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){this.bitmap.data[n]=Math.floor(this.bitmap.data[n]/255*(t-1))/(t-1)*255,this.bitmap.data[n+1]=Math.floor(this.bitmap.data[n+1]/255*(t-1))/(t-1)*255,this.bitmap.data[n+2]=Math.floor(this.bitmap.data[n+2]/255*(t-1))/(t-1)*255})),Object(a.a)(e)&&e.call(this,null,this),this)},greyscale:c,grayscale:c,opacity:function(t,e){return\"number\"!=typeof t?a.d.call(this,\"f must be a number\",e):t<0||t>1?a.d.call(this,\"f must be a number from 0 to 1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){var i=this.bitmap.data[n+3]*t;this.bitmap.data[n+3]=i})),Object(a.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){var n=this.bitmap.data[r],i=this.bitmap.data[r+1],a=this.bitmap.data[r+2];a=.272*(n=.393*n+.769*i+.189*a)+.534*(i=.349*n+.686*i+.168*a)+.131*a,this.bitmap.data[r]=n<255?n:255,this.bitmap.data[r+1]=i<255?i:255,this.bitmap.data[r+2]=a<255?a:255})),Object(a.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return\"number\"!=typeof t?a.d.call(this,\"f must be a number\",e):t<0||t>1?a.d.call(this,\"f must be a number from 0 to 1\",e):(this.opacity(1-t),Object(a.a)(e)&&e.call(this,null,this),this)},convolution:function(e,r,n){\"function\"==typeof r&&void 0===n&&(n=r,r=null),r||(r=this.constructor.EDGE_EXTEND);var i,o,s,u,f,c,h,l,p,d,m=t.from(this.bitmap.data),y=e.length,b=e[0].length,g=Math.floor(y/2),v=Math.floor(b/2),w=-g,_=-v;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,n,a){u=0,s=0,o=0;for(var y=w;y<=g;y++)for(var b=_;b<=v;b++)l=t+b,p=n+y,i=e[y+g][b+v],-1===(d=this.getPixelIndex(l,p,r))?(h=0,c=0,f=0):(f=this.bitmap.data[d+0],c=this.bitmap.data[d+1],h=this.bitmap.data[d+2]),o+=i*f,s+=i*c,u+=i*h;o<0&&(o=0),s<0&&(s=0),u<0&&(u=0),o>255&&(o=255),s>255&&(s=255),u>255&&(u=255),m[a+0]=o,m[a+1]=s,m[a+2]=u})),this.bitmap.data=m,Object(a.a)(n)&&n.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r+3]=255})),Object(a.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,r,n,i,o){if(\"function\"==typeof e)o=e,i=null,n=null,r=null,e=null;else{if(\"number\"!=typeof t)return a.d.call(this,\"size must be a number\",o);if(f(e)&&\"number\"!=typeof e)return a.d.call(this,\"x must be a number\",o);if(f(r)&&\"number\"!=typeof r)return a.d.call(this,\"y must be a number\",o);if(f(n)&&\"number\"!=typeof n)return a.d.call(this,\"w must be a number\",o);if(f(i)&&\"number\"!=typeof i)return a.d.call(this,\"h must be a number\",o)}var s=[[1/16,2/16,1/16],[2/16,.25,2/16],[1/16,2/16,1/16]];e=e||0,r=r||0,n=f(n)?n:this.bitmap.width-e,i=f(i)?i:this.bitmap.height-r;var c=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){e=t*Math.floor(e/t),r=t*Math.floor(r/t);var i=u(c,s,e,r);this.bitmap.data[n]=i[0],this.bitmap.data[n+1]=i[1],this.bitmap.data[n+2]=i[2]})),Object(a.a)(o)&&o.call(this,null,this),this},convolute:function(t,e,r,n,i,o){if(!Array.isArray(t))return a.d.call(this,\"the kernel must be an array\",o);if(\"function\"==typeof e)o=e,e=null,r=null,n=null,i=null;else{if(f(e)&&\"number\"!=typeof e)return a.d.call(this,\"x must be a number\",o);if(f(r)&&\"number\"!=typeof r)return a.d.call(this,\"y must be a number\",o);if(f(n)&&\"number\"!=typeof n)return a.d.call(this,\"w must be a number\",o);if(f(i)&&\"number\"!=typeof i)return a.d.call(this,\"h must be a number\",o)}e=f(e)?e:0,r=f(r)?r:0,n=f(n)?n:this.bitmap.width-e,i=f(i)?i:this.bitmap.height-r;var s=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){var i=u(s,t,e,r);this.bitmap.data[n]=this.constructor.limit255(i[0]),this.bitmap.data[n+1]=this.constructor.limit255(i[1]),this.bitmap.data[n+2]=this.constructor.limit255(i[2])})),Object(a.a)(o)&&o.call(this,null,this),this},color:l,colour:l}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){r.d(e,\"a\",(function(){return a}));var n=r(0);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function a(e){return e(\"crop\",(function(e,r,i,a,o){if(\"number\"!=typeof e||\"number\"!=typeof r)return n.d.call(this,\"x and y must be numbers\",o);if(\"number\"!=typeof i||\"number\"!=typeof a)return n.d.call(this,\"w and h must be numbers\",o);if(e=Math.round(e),r=Math.round(r),i=Math.round(i),a=Math.round(a),0===e&&i===this.bitmap.width){var s=i*r+e<<2,u=s+(a*i<<2);this.bitmap.data=this.bitmap.data.slice(s,u)}else{var f=t.allocUnsafe(i*a*4),c=0;this.scanQuiet(e,r,i,a,(function(t,e,r){var n=this.bitmap.data.readUInt32BE(r,!0);f.writeUInt32BE(n,c,!0),c+=4})),this.bitmap.data=f}return this.bitmap.width=i,this.bitmap.height=a,Object(n.a)(o)&&o.call(this,null,this),this})),{class:{autocrop:function(){for(var t,e=this.bitmap.width,r=this.bitmap.height,a=0,o=2e-4,s=!0,u=!1,f={north:!1,south:!1,east:!1,west:!1},c=arguments.length,h=new Array(c),l=0;l<c;l++)h[l]=arguments[l];for(var p=0,d=h.length;p<d;p++)if(\"number\"==typeof h[p]&&(o=h[p]),\"boolean\"==typeof h[p]&&(s=h[p]),\"function\"==typeof h[p]&&(t=h[p]),\"object\"===i(h[p])){var m=h[p];void 0!==m.tolerance&&(o=m.tolerance),void 0!==m.cropOnlyFrames&&(s=m.cropOnlyFrames),void 0!==m.cropSymmetric&&(u=m.cropSymmetric),void 0!==m.leaveBorder&&(a=m.leaveBorder),void 0!==m.ignoreSides&&(f=m.ignoreSides)}var y=this.getPixelColor(0,0),b=this.constructor.intToRGBA(y),g=0,v=0,w=0,_=0;if(y=this.getPixelColor(0,0),!f.north)t:for(var x=0;x<r-1;x++){for(var E=0;E<e;E++){var D=this.getPixelColor(E,x),k=this.constructor.intToRGBA(D);if(this.constructor.colorDiff(b,k)>o)break t}g++}if(y=this.getPixelColor(e,0),!f.west)t:for(var A=0;A<e-1;A++){for(var S=0+g;S<r;S++){var M=this.getPixelColor(A,S),F=this.constructor.intToRGBA(M);if(this.constructor.colorDiff(b,F)>o)break t}_++}if(y=this.getPixelColor(0,r),!f.south)t:for(var C=r-1;C>=g+1;C--){for(var B=e-v-1;B>=0;B--){var O=this.getPixelColor(B,C),I=this.constructor.intToRGBA(O);if(this.constructor.colorDiff(b,I)>o)break t}w++}if(y=this.getPixelColor(e,r),!f.east)t:for(var T=e-1;T>=0+_+1;T--){for(var P=r-1;P>=0+g;P--){var L=this.getPixelColor(T,P),N=this.constructor.intToRGBA(L);if(this.constructor.colorDiff(b,N)>o)break t}v++}if(_-=a,v-=a,g-=a,w-=a,u){var j=Math.min(v,_),R=Math.min(g,w);_=j,v=j,g=R,w=R}var z=e-((_=_>=0?_:0)+(v=v>=0?v:0)),U=r-((w=w>=0?w:0)+(g=g>=0?g:0));return(s?0!==v&&0!==g&&0!==_&&0!==w:0!==v||0!==g||0!==_||0!==w)&&this.crop(_,g,z,U),Object(n.a)(t)&&t.call(this,null,this),this}}}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(0);function i(e,r,i){if(\"boolean\"!=typeof e||\"boolean\"!=typeof r)return n.d.call(this,\"horizontal and vertical must be Booleans\",i);var a=t.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,n,i){var o=e?this.bitmap.width-1-t:t,s=r?this.bitmap.height-1-n:n,u=this.bitmap.width*s+o<<2,f=this.bitmap.data.readUInt32BE(i);a.writeUInt32BE(f,u)})),this.bitmap.data=t.from(a),Object(n.a)(i)&&i.call(this,null,this),this}e.a=function(){return{flip:i,mirror:i}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t,n){var i=r(6),a=r.n(i),o=r(111),s=r.n(o),u=r(0),f=r(17);function c(t){return c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},c(t)}function h(t,e,r,n,i){if(i.width>0&&i.height>0){var a=e.pages[i.page];t.blit(a,r+i.xoffset,n+i.yoffset,i.x,i.y,i.width,i.height)}return t}function l(t,e,r,n,i){for(var a=0;a<n.length;a++){var o=void 0;o=t.chars[n[a]]?n[a]:/\\s/.test(n[a])?\"\":\"?\";var s=t.chars[o]||{},u=t.kernings[o];h(this,t,e,r,s||{}),e+=(u&&u[n[a+1]]?u[n[a+1]]:0)+(s.xadvance||i)}}var p=t.env.DIRNAME||\"\".concat(n,\"/../\");e.a=function(){return{constants:{measureText:f.a,measureTextHeight:f.b,FONT_SANS_8_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt\"),FONT_SANS_10_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt\"),FONT_SANS_12_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt\"),FONT_SANS_14_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt\"),FONT_SANS_16_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt\"),FONT_SANS_32_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt\"),FONT_SANS_64_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt\"),FONT_SANS_128_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt\"),FONT_SANS_8_WHITE:a.a.join(p,\"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt\"),FONT_SANS_16_WHITE:a.a.join(p,\"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt\"),FONT_SANS_32_WHITE:a.a.join(p,\"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt\"),FONT_SANS_64_WHITE:a.a.join(p,\"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt\"),FONT_SANS_128_WHITE:a.a.join(p,\"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt\"),loadFont:function(t,e){var r=this;return\"string\"!=typeof t?u.d.call(this,\"file must be a string\",e):new Promise((function(n,i){e=e||function(t,e){t?i(t):n(e)},s()(t,(function(n,i){var o={},s={};if(n)return u.d.call(r,n,e);for(var f=0;f<i.chars.length;f++)o[String.fromCharCode(i.chars[f].id)]=i.chars[f];for(var c=0;c<i.kernings.length;c++){var h=String.fromCharCode(i.kernings[c].first);s[h]=s[h]||{},s[h][String.fromCharCode(i.kernings[c].second)]=i.kernings[c].amount}(function(t,e,r){var n=r.map((function(r){return t.read(e+\"/\"+r)}));return Promise.all(n)})(r,a.a.dirname(t),i.pages).then((function(t){e(null,{chars:o,kernings:s,pages:t,common:i.common,info:i.info})}))}))}))}},class:{print:function(t,e,r,n,i,a,o){var s,h,p=this;if(\"function\"==typeof i&&void 0===o&&(o=i,i=1/0),void 0===i&&(i=1/0),\"function\"==typeof a&&void 0===o&&(o=a,a=1/0),void 0===a&&(a=1/0),\"object\"!==c(t))return u.d.call(this,\"font must be a Jimp loadFont\",o);if(\"number\"!=typeof e||\"number\"!=typeof r||\"number\"!=typeof i)return u.d.call(this,\"x, y and maxWidth must be numbers\",o);if(\"number\"!=typeof i)return u.d.call(this,\"maxWidth must be a number\",o);if(\"number\"!=typeof a)return u.d.call(this,\"maxHeight must be a number\",o);\"object\"===c(n)&&null!==n.text&&void 0!==n.text?(s=n.alignmentX||this.constructor.HORIZONTAL_ALIGN_LEFT,h=n.alignmentY||this.constructor.VERTICAL_ALIGN_TOP,n=n.text):(s=this.constructor.HORIZONTAL_ALIGN_LEFT,h=this.constructor.VERTICAL_ALIGN_TOP,n=n.toString());a!==1/0&&h===this.constructor.VERTICAL_ALIGN_BOTTOM?r+=a-Object(f.b)(t,n,i):a!==1/0&&h===this.constructor.VERTICAL_ALIGN_MIDDLE&&(r+=a/2-Object(f.b)(t,n,i)/2);var d=Object.entries(t.chars)[0][1].xadvance,m=Object(f.c)(t,n,i),y=m.lines,b=m.longestLine;return y.forEach((function(n){var a=n.join(\" \"),o=function(t,e,r,n,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(n-Object(f.a)(e,r))/2:n-Object(f.a)(e,r)}(p.constructor,t,a,i,s);l.call(p,t,e+o,r,a,d),r+=t.common.lineHeight})),Object(u.a)(o)&&o.call(this,null,this,{x:e+b,y:r}),this}}}}}).call(this,r(7),\"/\")},function(t,e,r){(function(e){var n=r(207),i=function(){},a=r(211),o=r(212),s=r(215),u=r(216),f=r(98),c=self.XMLHttpRequest&&\"withCredentials\"in new XMLHttpRequest;t.exports=function(t,r){r=\"function\"==typeof r?r:i,\"string\"==typeof t?t={uri:t}:t||(t={}),t.binary&&(t=function(t){if(c)return f(t,{responseType:\"arraybuffer\"});if(void 0===self.XMLHttpRequest)throw new Error(\"your browser does not support XHR loading\");var e=new self.XMLHttpRequest;return e.overrideMimeType(\"text/plain; charset=x-user-defined\"),f({xhr:e},t)}(t)),n(t,(function(n,f,c){if(n)return r(n);if(!/^2/.test(f.statusCode))return r(new Error(\"http status code: \"+f.statusCode));if(!c)return r(new Error(\"no body result\"));var h,l,p=!1;if(h=c,\"[object ArrayBuffer]\"===Object.prototype.toString.call(h)){var d=new Uint8Array(c);c=e.from(d,\"binary\")}u(c)&&(p=!0,\"string\"==typeof c&&(c=e.from(c,\"binary\"))),p||(e.isBuffer(c)&&(c=c.toString(t.encoding)),c=c.trim());try{var m=f.headers[\"content-type\"];l=p?s(c):/json/.test(m)||\"{\"===c.charAt(0)?JSON.parse(c):/xml/.test(m)||\"<\"===c.charAt(0)?o(c):a(c)}catch(t){r(new Error(\"error parsing font \"+t.message)),r=i}r(null,l)}))}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(0),i=r(113),a=r(63);e.a=function(){return{constants:{RESIZE_NEAREST_NEIGHBOR:\"nearestNeighbor\",RESIZE_BILINEAR:\"bilinearInterpolation\",RESIZE_BICUBIC:\"bicubicInterpolation\",RESIZE_HERMITE:\"hermiteInterpolation\",RESIZE_BEZIER:\"bezierInterpolation\"},class:{resize:function(e,r,o,s){if(\"number\"!=typeof e||\"number\"!=typeof r)return n.d.call(this,\"w and h must be numbers\",s);if(\"function\"==typeof o&&void 0===s&&(s=o,o=null),e===this.constructor.AUTO&&r===this.constructor.AUTO)return n.d.call(this,\"w and h cannot both be set to auto\",s);if(e===this.constructor.AUTO&&(e=this.bitmap.width*(r/this.bitmap.height)),r===this.constructor.AUTO&&(r=this.bitmap.height*(e/this.bitmap.width)),e<0||r<0)return n.d.call(this,\"w and h must be positive numbers\",s);if(e=Math.round(e)||1,r=Math.round(r)||1,\"function\"==typeof a.a[o]){var u={data:t.alloc(e*r*4),width:e,height:r};a.a[o](this.bitmap,u),this.bitmap=u}else{var f=this,c=new i.a(this.bitmap.width,this.bitmap.height,e,r,!0,!0,(function(n){f.bitmap.data=t.from(n),f.bitmap.width=e,f.bitmap.height=r}));c.resize(this.bitmap.data)}return Object(n.a)(s)&&s.call(this,null,this),this}}}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(r)||0),this.targetHeight=Math.abs(Math.floor(n)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(a),this.resizeCallback=\"function\"==typeof o?o:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}n.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error(\"Invalid settings specified for the resizer.\");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var r,n,i=e?4:3,a=this.ratioWeightWidthPass,o=this.widthBuffer,s=0,u=0,f=0,c=0,h=0;for(r=0;s<1/3;r+=i,s+=a)for(u=r,f=0;u<this.widthPassResultSize;f+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)o[u]=t[f],o[u+1]=t[f+1],o[u+2]=t[f+2],e&&(o[u+3]=t[f+3]);for(s-=1/3,n=this.widthOriginal-1;s<n;r+=i,s+=a)for(c=1-(h=s%1),u=r,f=Math.floor(s)*i;u<this.widthPassResultSize;f+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)o[u+0]=t[f+0]*c+t[f+i+0]*h,o[u+1]=t[f+1]*c+t[f+i+1]*h,o[u+2]=t[f+2]*c+t[f+i+2]*h,e&&(o[u+3]=t[f+3]*c+t[f+i+3]*h);for(n=this.originalWidthMultipliedByChannels-i;r<this.targetWidthMultipliedByChannels;r+=i)for(u=r,f=n;u<this.widthPassResultSize;f+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)o[u]=t[f],o[u+1]=t[f+1],o[u+2]=t[f+2],e&&(o[u+3]=t[f+3]);return o},n.prototype._resizeWidthRGBChannels=function(t,e){var r=e?4:3,n=this.ratioWeightWidthPass,i=1/n,a=this.originalWidthMultipliedByChannels-r+1,o=this.targetWidthMultipliedByChannels-r+1,s=this.outputWidthWorkBench,u=this.widthBuffer,f=this.outputWidthWorkBenchOpaquePixelsCount,c=0,h=0,l=0,p=0,d=0,m=0,y=0,b=1,g=0,v=0,w=0,_=0;do{for(d=0;d<this.originalHeightMultipliedByChannels;)s[d++]=0,s[d++]=0,s[d++]=0,e&&(s[d++]=0,f[d/r-1]=0);c=n;do{for(h=1+l-p,b=Math.min(c,h),d=0,m=l;d<this.originalHeightMultipliedByChannels;m+=a)g=t[m],v=t[++m],w=t[++m],_=e?t[++m]:255,s[d++]+=(_?g:0)*b,s[d++]+=(_?v:0)*b,s[d++]+=(_?w:0)*b,e&&(s[d++]+=_*b,f[d/r-1]+=_?b:0);if(!(c>=h)){p+=c;break}p=l+=r,c-=h}while(c>0&&l<this.originalWidthMultipliedByChannels);for(d=0,m=y;d<this.originalHeightMultipliedByChannels;m+=o)c=e?f[d/r]:1,b=e?c?1/c:0:i,u[m]=s[d++]*b,u[++m]=s[d++]*b,u[++m]=s[d++]*b,e&&(u[++m]=s[d++]*i);y+=r}while(y<this.targetWidthMultipliedByChannels);return u},n.prototype._resizeHeightRGBChannels=function(t,e){var r=this.ratioWeightHeightPass,n=1/r,i=this.outputHeightWorkBench,a=this.heightBuffer,o=this.outputHeightWorkBenchOpaquePixelsCount,s=0,u=0,f=0,c=0,h=0,l=0,p=0,d=1,m=0,y=0,b=0,g=0;do{for(h=0;h<this.targetWidthMultipliedByChannels;)i[h++]=0,i[h++]=0,i[h++]=0,e&&(i[h++]=0,o[h/4-1]=0);s=r;do{for(u=1+f-c,d=Math.min(s,u),p=f,h=0;h<this.targetWidthMultipliedByChannels;)m=t[p++],y=t[p++],b=t[p++],g=e?t[p++]:255,i[h++]+=(g?m:0)*d,i[h++]+=(g?y:0)*d,i[h++]+=(g?b:0)*d,e&&(i[h++]+=g*d,o[h/4-1]+=g?d:0);if(!(s>=u)){c+=s;break}c=f=p,s-=u}while(s>0&&f<this.widthPassResultSize);for(h=0;h<this.targetWidthMultipliedByChannels;)s=e?o[h/4]:1,d=e?s?1/s:0:n,a[l++]=Math.round(i[h++]*d),a[l++]=Math.round(i[h++]*d),a[l++]=Math.round(i[h++]*d),e&&(a[l++]=Math.round(i[h++]*n))}while(l<this.finalResultSize);return a},n.prototype.resizeWidthInterpolatedRGB=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!1)},n.prototype.resizeWidthInterpolatedRGBA=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!0)},n.prototype.resizeWidthRGB=function(t){return this._resizeWidthRGBChannels(t,!1)},n.prototype.resizeWidthRGBA=function(t){return this._resizeWidthRGBChannels(t,!0)},n.prototype.resizeHeightInterpolated=function(t){for(var e,r=this.ratioWeightHeightPass,n=this.heightBuffer,i=0,a=0,o=0,s=0,u=0,f=0,c=0;i<1/3;i+=r)for(o=0;o<this.targetWidthMultipliedByChannels;)n[a++]=Math.round(t[o++]);for(i-=1/3,e=this.heightOriginal-1;i<e;i+=r)for(f=1-(c=i%1),u=(s=Math.floor(i)*this.targetWidthMultipliedByChannels)+this.targetWidthMultipliedByChannels,o=0;o<this.targetWidthMultipliedByChannels;++o)n[a++]=Math.round(t[s++]*f+t[u++]*c);for(;a<this.finalResultSize;)for(o=0,s=e*this.targetWidthMultipliedByChannels;o<this.targetWidthMultipliedByChannels;++o)n[a++]=Math.round(t[s++]);return n},n.prototype.resizeHeightRGB=function(t){return this._resizeHeightRGBChannels(t,!1)},n.prototype.resizeHeightRGBA=function(t){return this._resizeHeightRGBChannels(t,!0)},n.prototype.resize=function(t){this.resizeCallback(this.resizeHeight(this.resizeWidth(t)))},n.prototype.bypassResizer=function(t){return t},n.prototype.initializeFirstPassBuffers=function(t){this.widthBuffer=this.generateFloatBuffer(this.widthPassResultSize),t||(this.outputWidthWorkBench=this.generateFloatBuffer(this.originalHeightMultipliedByChannels),this.colorChannels>3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},e.a=n},function(t,e,r){\"use strict\";(function(t){var n=r(0);function i(e){if(Math.abs(e)%90!=0)throw new Error(\"Unsupported matrix rotation degree\");if(e%=360,0!==Math.abs(e)){var r,n=this.bitmap.width,i=this.bitmap.height;switch(e){case 90:case-270:r=90;break;case 180:case-180:r=180;break;case 270:case-90:r=-90;break;default:throw new Error(\"Unsupported matrix rotation degree\")}for(var a=180===r?n:i,o=180===r?i:n,s=t.alloc(this.bitmap.data.length),u=m(n),f=m(a),c=0;c<n;c++)for(var h=0;h<i;h++){var l=u(c,h),p=this.bitmap.data.readUInt32BE(l),d=void 0;switch(r){case 90:d=f(h,n-c-1);break;case-90:d=f(i-h-1,c);break;case 180:d=f(n-c-1,i-h-1);break;default:throw new Error(\"Unsupported matrix rotation angle\")}s.writeUInt32BE(p,d)}this.bitmap.data=s,this.bitmap.width=a,this.bitmap.height=o}function m(t,e){return function(e,r){return r*t+e<<2}}}function a(e,r){var n=(e%=360)*Math.PI/180,i=Math.cos(n),a=Math.sin(n),o=this.bitmap.width,s=this.bitmap.height;if(!0===r||\"string\"==typeof r){(o=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*a))+1)%2!=0&&o++,(s=Math.ceil(Math.abs(this.bitmap.width*a)+Math.abs(this.bitmap.height*i))+1)%2!=0&&s++;var u=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)}));var f=Math.max(o,s,this.bitmap.width,this.bitmap.height);this.resize(f,f,r),this.blit(u,this.bitmap.width/2-u.bitmap.width/2,this.bitmap.height/2-u.bitmap.height/2)}var c=this.bitmap.width,h=this.bitmap.height,l=t.alloc(this.bitmap.data.length);function p(t,e){return function(r,n){return{x:r+t,y:n+e}}}for(var d=p(-c/2,-h/2),m=p(c/2+.5,h/2+.5),y=1;y<=h;y++)for(var b=1;b<=c;b++){var g=d(b,y),v=m(i*g.x-a*g.y,i*g.y+a*g.x),w=c*(y-1)+b-1<<2;if(v.x>=0&&v.x<c&&v.y>=0&&v.y<h){var _=c*(0|v.y)+v.x<<2,x=this.bitmap.data.readUInt32BE(_);l.writeUInt32BE(x,w)}else l.writeUInt32BE(this._background,w)}if(this.bitmap.data=l,!0===r||\"string\"==typeof r){var E=c/2-o/2,D=h/2-s/2;this.crop(E,D,o,s)}}e.a=function(){return{rotate:function(t,e,r){return null==e&&(e=!0),\"function\"==typeof e&&void 0===r&&(r=e,e=!0),\"number\"!=typeof t?n.d.call(this,\"deg must be a number\",r):\"boolean\"!=typeof e&&\"string\"!=typeof e?n.d.call(this,\"mode must be a boolean or a string\",r):(t%90==0&&(e||this.bitmap.width===this.bitmap.height||t%180==0)?i.call(this,t):a.call(this,t,e,r),Object(n.a)(r)&&r.call(this,null,this),this)}}}}).call(this,r(2).Buffer)},function(t,e,r){t.exports&&(t.exports={DBSCAN:r(218),KMEANS:r(219),OPTICS:r(220),PriorityQueue:r(99)})},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return b}));var n={};r.r(n),r.d(n,\"srcOver\",(function(){return o})),r.d(n,\"dstOver\",(function(){return s})),r.d(n,\"multiply\",(function(){return u})),r.d(n,\"add\",(function(){return f})),r.d(n,\"screen\",(function(){return c})),r.d(n,\"overlay\",(function(){return h})),r.d(n,\"darken\",(function(){return l})),r.d(n,\"lighten\",(function(){return p})),r.d(n,\"hardLight\",(function(){return d})),r.d(n,\"difference\",(function(){return m})),r.d(n,\"exclusion\",(function(){return y}));var i=r(0),a=r(20);function o(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/n,g:(t.g*t.a+e.g*e.a*(1-t.a))/n,b:(t.b*t.a+e.b*e.a*(1-t.a))/n,a:n}}function s(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/n,g:(e.g*e.a+t.g*t.a*(1-e.a))/n,b:(e.b*e.a+t.b*t.a*(1-e.a))/n,a:n}}function u(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*f+o*(1-e.a)+f*(1-t.a))/n,a:n}}function f(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a;return{r:(i+e.r*e.a)/n,g:(a+e.g*e.a)/n,b:(o+e.b*e.a)/n,a:n}}function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*e.a+u*t.a-a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*e.a+f*t.a-o*f+o*(1-e.a)+f*(1-t.a))/n,a:n}}function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*u<=e.a?2*a*u+a*(1-e.a)+u*(1-t.a):a*(1+e.a)+u*(1+t.a)-2*u*a-e.a*t.a)/n,b:(2*f<=e.a?2*o*f+o*(1-e.a)+f*(1-t.a):o*(1+e.a)+f*(1+t.a)-2*f*o-e.a*t.a)/n,a:n}}function l(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.min(a*e.a,u*t.a)+a*(1-e.a)+u*(1-t.a))/n,b:(Math.min(o*e.a,f*t.a)+o*(1-e.a)+f*(1-t.a))/n,a:n}}function p(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.max(a*e.a,u*t.a)+a*(1-e.a)+u*(1-t.a))/n,b:(Math.max(o*e.a,f*t.a)+o*(1-e.a)+f*(1-t.a))/n,a:n}}function d(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*a<=t.a?2*a*u+a*(1-e.a)+u*(1-t.a):a*(1+e.a)+u*(1+t.a)-2*u*a-e.a*t.a)/n,b:(2*o<=t.a?2*o*f+o*(1-e.a)+f*(1-t.a):o*(1+e.a)+f*(1+t.a)-2*f*o-e.a*t.a)/n,a:n}}function m(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/n,g:(a+u-2*Math.min(a*e.a,u*t.a))/n,b:(o+f-2*Math.min(o*e.a,f*t.a))/n,a:n}}function y(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*e.a+u*t.a-2*a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*e.a+f*t.a-2*o*f+o*(1-e.a)+f*(1-t.a))/n,a:n}}function b(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0;if(\"function\"==typeof o&&(s=o,o={}),!(t instanceof this.constructor))return i.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof r)return i.d.call(this,\"x and y must be numbers\",s);var u=o,f=u.mode,c=u.opacitySource,h=u.opacityDest;f||(f=a.BLEND_SOURCE_OVER),(\"number\"!=typeof c||c<0||c>1)&&(c=1),(\"number\"!=typeof h||h<0||h>1)&&(h=1);var l=n[f];e=Math.round(e),r=Math.round(r);var p=this;return 1!==h&&p.opacity(h),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,i){var o=p.getPixelIndex(e+t,r+n,a.EDGE_CROP);if(-1!==o){var s=l({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:p.bitmap.data[o+0]/255,g:p.bitmap.data[o+1]/255,b:p.bitmap.data[o+2]/255,a:p.bitmap.data[o+3]/255},c);p.bitmap.data[o+0]=this.constructor.limit255(255*s.r),p.bitmap.data[o+1]=this.constructor.limit255(255*s.g),p.bitmap.data[o+2]=this.constructor.limit255(255*s.b),p.bitmap.data[o+3]=this.constructor.limit255(255*s.a)}})),Object(i.a)(s)&&s.call(this,null,this),this}},function(t,e,r){(function(t){var n=void 0!==t&&t||\"undefined\"!=typeof self&&self||window,i=Function.prototype.apply;function a(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new a(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new a(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r(150),e.setImmediate=\"undefined\"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate=\"undefined\"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(10))},,,function(t,e,r){\"use strict\";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=u(t),o=n[0],s=n[1],f=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),c=0,h=s>0?o-4:o;for(r=0;r<h;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],f[c++]=e>>16&255,f[c++]=e>>8&255,f[c++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,f[c++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,f[c++]=e>>8&255,f[c++]=255&e);return f},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=16383,s=0,u=r-i;s<u;s+=o)a.push(f(t,s,s+o>u?u:s+o));1===i?(e=t[r-1],a.push(n[e>>2]+n[e<<4&63]+\"==\")):2===i&&(e=(t[r-2]<<8)+t[r-1],a.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+\"=\"));return a.join(\"\")};for(var n=[],i=[],a=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",s=0;s<64;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=t.indexOf(\"=\");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var i,a,o=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join(\"\")}i[\"-\".charCodeAt(0)]=62,i[\"_\".charCodeAt(0)]=63},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==r.call(t)}},function(t,e,r){\"use strict\";function n(t,e){if(!(t&&e&&t.length&&e.length))throw new Error(\"Bad alphabet\");this.srcAlphabet=t,this.dstAlphabet=e}n.prototype.convert=function(t){var e,r,n,i={},a=this.srcAlphabet.length,o=this.dstAlphabet.length,s=t.length,u=\"string\"==typeof t?\"\":[];if(!this.isValid(t))throw new Error('Number \"'+t+'\" contains of non-alphabetic digits ('+this.srcAlphabet+\")\");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e<s;e++)i[e]=this.srcAlphabet.indexOf(t[e]);do{for(r=0,n=0,e=0;e<s;e++)(r=r*a+i[e])>=o?(i[n++]=parseInt(r/o,10),r%=o):n>0&&(i[n++]=0);s=n,u=this.dstAlphabet.slice(r,r+1).concat(u)}while(0!==n);return u},n.prototype.isValid=function(t){for(var e=0;e<t.length;++e)if(-1===this.srcAlphabet.indexOf(t[e]))return!1;return!0},t.exports=n},function(t,e,r){r(124),t.exports=self.fetch.bind(self)},function(t,e,r){\"use strict\";r.r(e),function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}r.d(e,\"Headers\",(function(){return h})),r.d(e,\"Request\",(function(){return g})),r.d(e,\"Response\",(function(){return w})),r.d(e,\"DOMException\",(function(){return x})),r.d(e,\"fetch\",(function(){return E}));var i=\"undefined\"!=typeof globalThis&&globalThis||\"undefined\"!=typeof self&&self||void 0!==t&&t||{},a={searchParams:\"URLSearchParams\"in i,iterable:\"Symbol\"in i&&\"iterator\"in Symbol,blob:\"FileReader\"in i&&\"Blob\"in i&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:\"FormData\"in i,arrayBuffer:\"ArrayBuffer\"in i};if(a.arrayBuffer)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if(\"string\"!=typeof t&&(t=String(t)),/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(t)||\"\"===t)throw new TypeError('Invalid character in header field name: \"'+t+'\"');return t.toLowerCase()}function f(t){return\"string\"!=typeof t&&(t=String(t)),t}function c(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return a.iterable&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError(\"Headers constructor: expected name/value pair to be length 2, found\"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError(\"Already read\")):void(t.bodyUsed=!0)}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function d(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?\"string\"==typeof t?this._bodyText=t:a.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a.arrayBuffer&&a.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=\"\"),this.headers.get(\"content-type\")||(\"string\"==typeof t?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=l(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(a.blob)return this.blob().then(d);throw new Error(\"could not read as ArrayBuffer\")},this.text=function(){var t,e,r,n,i,a=l(this);if(a)return a;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=p(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=n?n[1]:\"utf-8\",e.readAsText(t,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=u(t),e=f(e);var r=this.map[t];this.map[t]=r?r+\", \"+e:e},h.prototype.delete=function(t){delete this.map[u(t)]},h.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},h.prototype.set=function(t,e){this.map[u(t)]=f(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),c(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),c(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),c(t)},a.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=[\"CONNECT\",\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"PATCH\",\"POST\",\"PUT\",\"TRACE\"];function g(t,e){if(!(this instanceof g))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');var r,n,a=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError(\"Already read\");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,a||null==t._bodyInit||(a=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||\"same-origin\",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(r=e.method||this.method||\"GET\",n=r.toUpperCase(),b.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if(\"AbortController\"in i)return(new AbortController).signal}(),this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&a)throw new TypeError(\"Body not allowed for GET or HEAD requests\");if(this._initBody(a),!(\"GET\"!==this.method&&\"HEAD\"!==this.method||\"no-store\"!==e.cache&&\"no-cache\"!==e.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,\"$1_=\"+(new Date).getTime());else{this.url+=(/\\?/.test(this.url)?\"&\":\"?\")+\"_=\"+(new Date).getTime()}}}function v(t){var e=new FormData;return t.trim().split(\"&\").forEach((function(t){if(t){var r=t.split(\"=\"),n=r.shift().replace(/\\+/g,\" \"),i=r.join(\"=\").replace(/\\+/g,\" \");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type=\"default\",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError(\"Failed to construct 'Response': The status provided (0) is outside the range [200, 599].\");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?\"\":\"\"+e.statusText,this.headers=new h(e.headers),this.url=e.url||\"\",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:200,statusText:\"\"});return t.ok=!1,t.status=0,t.type=\"error\",t};var _=[301,302,303,307,308];w.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError(\"Invalid status code\");return new w(null,{status:e,headers:{location:t}})};var x=i.DOMException;try{new x}catch(t){(x=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}function E(t,e){return new Promise((function(r,o){var s=new g(t,e);if(s.signal&&s.signal.aborted)return o(new x(\"Aborted\",\"AbortError\"));var c=new XMLHttpRequest;function l(){c.abort()}if(c.onload=function(){var t,e,n={statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||\"\",e=new h,t.replace(/\\r?\\n[\\t ]+/g,\" \").split(\"\\r\").map((function(t){return 0===t.indexOf(\"\\n\")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(\":\"),n=r.shift().trim();if(n){var i=r.join(\":\").trim();try{e.append(n,i)}catch(t){t.message}}})),e)};0===s.url.indexOf(\"file://\")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url=\"responseURL\"in c?c.responseURL:n.headers.get(\"X-Request-URL\");var i=\"response\"in c?c.response:c.responseText;setTimeout((function(){r(new w(i,n))}),0)},c.onerror=function(){setTimeout((function(){o(new TypeError(\"Network request failed\"))}),0)},c.ontimeout=function(){setTimeout((function(){o(new TypeError(\"Network request timed out\"))}),0)},c.onabort=function(){setTimeout((function(){o(new x(\"Aborted\",\"AbortError\"))}),0)},c.open(s.method,function(t){try{return\"\"===t&&i.location.href?i.location.href:t}catch(e){return t}}(s.url),!0),\"include\"===s.credentials?c.withCredentials=!0:\"omit\"===s.credentials&&(c.withCredentials=!1),\"responseType\"in c&&(a.blob?c.responseType=\"blob\":a.arrayBuffer&&(c.responseType=\"arraybuffer\")),e&&\"object\"===n(e.headers)&&!(e.headers instanceof h||i.Headers&&e.headers instanceof i.Headers)){var p=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){p.push(u(t)),c.setRequestHeader(t,f(e.headers[t]))})),s.headers.forEach((function(t,e){-1===p.indexOf(e)&&c.setRequestHeader(e,t)}))}else s.headers.forEach((function(t,e){c.setRequestHeader(e,t)}));s.signal&&(s.signal.addEventListener(\"abort\",l),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener(\"abort\",l)}),c.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,i.fetch||(i.fetch=E,i.Headers=h,i.Request=g,i.Response=w)}.call(this,r(10))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromStream=e.fromBuffer=e.EndOfStreamError=e.fromFile=void 0;var o=r(68),s=r(47),u=r(130);Object.defineProperty(e,\"fromFile\",{enumerable:!0,get:function(){return u.fromFile}});var f=r(47);function c(){var t;return t=i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=r||{},!e.path){t.next=7;break}return t.next=4,o.stat(e.path);case 4:n=t.sent,r.path=e.path,r.size=n.size;case 7:return t.abrupt(\"return\",s.fromStream(e,r));case 8:case\"end\":return t.stop()}}),t)})),c=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))},c.apply(this,arguments)}Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return f.EndOfStreamError}}),Object.defineProperty(e,\"fromBuffer\",{enumerable:!0,get:function(){return f.fromBuffer}}),e.fromStream=function(t,e){return c.apply(this,arguments)}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function f(t,e,r){return e=h(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,c()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.ReadStreamTokenizer=void 0;var p=r(48),d=r(26),m=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=f(this,e,[r])).streamReader=new d.StreamReader(t),n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&l(t,e)}(e,t),r=e,n=[{key:\"getFileInfo\",value:(p=o(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",this.fileInfo);case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return p.apply(this,arguments)})},{key:\"readBuffer\",value:(h=o(i().mark((function t(e,r){var n,a,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),!((a=n.position-this.position)>0)){t.next=8;break}return t.next=5,this.ignore(a);case 5:return t.abrupt(\"return\",this.readBuffer(e,r));case 8:if(!(a<0)){t.next=10;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 10:if(0!==n.length){t.next=12;break}return t.abrupt(\"return\",0);case 12:return t.next=14,this.streamReader.read(e,n.offset,n.length);case 14:if(o=t.sent,this.position+=o,r&&r.mayBeLess||!(o<n.length)){t.next=18;break}throw new d.EndOfStreamError;case 18:return t.abrupt(\"return\",o);case 19:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:\"peekBuffer\",value:(c=o(i().mark((function t(e,r){var n,a,o,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),a=0,!n.position){t.next=15;break}if(!((o=n.position-this.position)>0)){t.next=13;break}return s=new Uint8Array(n.length+o),t.next=8,this.peekBuffer(s,{mayBeLess:n.mayBeLess});case 8:return a=t.sent,e.set(s.subarray(o),n.offset),t.abrupt(\"return\",a-o);case 13:if(!(o<0)){t.next=15;break}throw new Error(\"Cannot peek from a negative offset in a stream\");case 15:if(!(n.length>0)){t.next=29;break}return t.prev=16,t.next=19,this.streamReader.peek(e,n.offset,n.length);case 19:a=t.sent,t.next=27;break;case 22:if(t.prev=22,t.t0=t.catch(16),!(r&&r.mayBeLess&&t.t0 instanceof d.EndOfStreamError)){t.next=26;break}return t.abrupt(\"return\",0);case 26:throw t.t0;case 27:if(n.mayBeLess||!(a<n.length)){t.next=29;break}throw new d.EndOfStreamError;case 29:return t.abrupt(\"return\",a);case 30:case\"end\":return t.stop()}}),t,this,[[16,22]])}))),function(t,e){return c.apply(this,arguments)})},{key:\"ignore\",value:(u=o(i().mark((function t(e){var r,n,a,o,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Math.min(256e3,e),n=new Uint8Array(r),a=0;case 3:if(!(a<e)){t.next=13;break}return o=e-a,t.next=7,this.readBuffer(n,{length:Math.min(r,o)});case 7:if(!((s=t.sent)<0)){t.next=10;break}return t.abrupt(\"return\",s);case 10:a+=s,t.next=3;break;case 13:return t.abrupt(\"return\",a);case 14:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})}],n&&s(r.prototype,n),a&&s(r,a),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,a,u,c,h,p}(p.AbstractTokenizer);e.ReadStreamTokenizer=m},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var f=r(49),c=r(128),h=r(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return h.EndOfStreamError}});var l=function(){return t=function t(e){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error(\"Expected an instance of stream.Readable\");this.s.once(\"end\",(function(){return r.reject(new f.EndOfStreamError)})),this.s.once(\"error\",(function(t){return r.reject(t)})),this.s.once(\"close\",(function(){return r.reject(new Error(\"Stream closed\"))}))},e=[{key:\"peek\",value:(u=o(i().mark((function t(e,r,n){var a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.read(e,r,n);case 2:return a=t.sent,this.peekQueue.push(e.subarray(r,r+a)),t.abrupt(\"return\",a);case 5:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return u.apply(this,arguments)})},{key:\"read\",value:(a=o(i().mark((function t(e,r,n){var a,o,s,u,c,h;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n){t.next=2;break}return t.abrupt(\"return\",0);case 2:if(0!==this.peekQueue.length||!this.endOfStream){t.next=4;break}throw new f.EndOfStreamError;case 4:a=n,o=0;case 6:if(!(this.peekQueue.length>0&&a>0)){t.next=17;break}if(s=this.peekQueue.pop()){t.next=10;break}throw new Error(\"peekData should be defined\");case 10:u=Math.min(s.length,a),e.set(s.subarray(0,u),r+o),o+=u,a-=u,u<s.length&&this.peekQueue.push(s.subarray(u)),t.next=6;break;case 17:if(!(a>0)||this.endOfStream){t.next=28;break}return c=Math.min(a,1048576),t.next=21,this.readFromStream(e,r+o,c);case 21:if(h=t.sent,o+=h,!(h<c)){t.next=25;break}return t.abrupt(\"break\",28);case 25:a-=h,t.next=17;break;case 28:return t.abrupt(\"return\",o);case 29:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return a.apply(this,arguments)})},{key:\"readFromStream\",value:(n=o(i().mark((function t(e,r,n){var a,o,s=this;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(a=this.s.read(n))){t.next=6;break}return e.set(a,r),t.abrupt(\"return\",a.length);case 6:return o={buffer:e,offset:r,length:n,deferred:new c.Deferred},this.deferred=o.deferred,this.s.once(\"readable\",(function(){s.readDeferred(o)})),t.abrupt(\"return\",o.deferred.promise);case 10:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:\"readDeferred\",value:function(t){var e=this,r=this.s.read(t.length);r?(t.buffer.set(r,t.offset),t.deferred.resolve(r.length),this.deferred=null):this.s.once(\"readable\",(function(){e.readDeferred(t)}))}},{key:\"reject\",value:function(t){this.endOfStream=!0,this.deferred&&(this.deferred.reject(t),this.deferred=null)}}],e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,a,u}();e.StreamReader=l},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function a(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Deferred=void 0;var s=a((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.resolve=function(){return null},this.reject=function(){return null},this.promise=new Promise((function(t,r){e.reject=r,e.resolve=t}))}));e.Deferred=s},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function f(t,e,r){return e=h(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,c()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.BufferTokenizer=void 0;var p=r(26),d=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=f(this,e,[r])).uint8Array=t,n.fileInfo.size=n.fileInfo.size?n.fileInfo.size:t.length,n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&l(t,e)}(e,t),r=e,n=[{key:\"readBuffer\",value:(h=o(i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r||!r.position){t.next=4;break}if(!(r.position<this.position)){t.next=3;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 3:this.position=r.position;case 4:return t.next=6,this.peekBuffer(e,r);case 6:return n=t.sent,this.position+=n,t.abrupt(\"return\",n);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:\"peekBuffer\",value:(c=o(i().mark((function t(e,r){var n,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),a=Math.min(this.uint8Array.length-n.position,n.length),n.mayBeLess||!(a<n.length)){t.next=6;break}throw new p.EndOfStreamError;case 6:return e.set(this.uint8Array.subarray(n.position,n.position+a),n.offset),t.abrupt(\"return\",a);case 8:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:\"close\",value:(u=o(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})}],n&&s(r.prototype,n),a&&s(r,a),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,a,u,c,h}(r(48).AbstractTokenizer);e.BufferTokenizer=d},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function f(t,e,r){return e=h(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,c()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromFile=e.FileTokenizer=void 0;var p=r(48),d=r(26),m=r(68),y=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=f(this,e,[r])).fd=t,n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&l(t,e)}(e,t),r=e,n=[{key:\"readBuffer\",value:(h=o(i().mark((function t(e,r){var n,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),this.position=n.position,t.next=4,m.read(this.fd,e,n.offset,n.length,n.position);case 4:if(a=t.sent,this.position+=a.bytesRead,!(a.bytesRead<n.length)||r&&r.mayBeLess){t.next=8;break}throw new d.EndOfStreamError;case 8:return t.abrupt(\"return\",a.bytesRead);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:\"peekBuffer\",value:(c=o(i().mark((function t(e,r){var n,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),t.next=3,m.read(this.fd,e,n.offset,n.length,n.position);case 3:if(a=t.sent,n.mayBeLess||!(a.bytesRead<n.length)){t.next=6;break}throw new d.EndOfStreamError;case 6:return t.abrupt(\"return\",a.bytesRead);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:\"close\",value:(u=o(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",m.close(this.fd));case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})}],n&&s(r.prototype,n),a&&s(r,a),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,a,u,c,h}(p.AbstractTokenizer);function b(){return(b=o(i().mark((function t(e){var r,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m.stat(e);case 2:if((r=t.sent).isFile){t.next=5;break}throw new Error(\"File not a file: \".concat(e));case 5:return t.next=7,m.open(e,\"r\");case 7:return n=t.sent,t.abrupt(\"return\",new y(n,{path:e,size:r.size}));case 9:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.FileTokenizer=y,e.fromFile=function(t){return b.apply(this,arguments)}},function(module,exports,__webpack_require__){\"use strict\";(function(Buffer){function _typeof(t){return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_typeof(t)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",s=a.asyncIterator||\"@@asyncIterator\",u=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),s=new C(n||[]);return i(o,\"_invoke\",{value:A(t,r,s)}),o}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var l=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function b(){}function g(){}function v(){}var w={};f(w,o,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(B([])));x&&x!==r&&n.call(x,o)&&(w=x);var E=v.prototype=b.prototype=Object.create(w);function D(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if(\"throw\"!==u.type){var f=u.arg,c=f.value;return c&&\"object\"==_typeof(c)&&n.call(c,\"__await\")?e.resolve(c.__await).then((function(t){r(\"next\",t,o,s)}),(function(t){r(\"throw\",t,o,s)})):e.resolve(c).then((function(t){f.value=t,o(f)}),(function(t){return r(\"throw\",t,o,s)}))}s(u.arg)}var a;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function A(e,r,n){var i=l;return function(a,o){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===l)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var f=h(e,r,n);if(\"normal\"===f.type){if(i=n.done?m:p,f.arg===y)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=m,n.method=\"throw\",n.arg=f.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var a=h(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[o];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(_typeof(e)+\" is not iterable\")}return g.prototype=v,i(E,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:g,configurable:!0}),g.displayName=f(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},D(k.prototype),f(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new k(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},D(E),f(E,u,\"Generator\"),f(E,o,(function(){return this})),f(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function _iterableToArrayLimit(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,a,o,s=[],u=!0,f=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){f=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(f)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function _unsupportedIterableToArray(t,e){if(t){if(\"string\"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_toPrimitive(t,\"string\");return\"symbol\"==_typeof(e)?e:e+\"\"}function _toPrimitive(t,e){if(\"object\"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_typeof(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}function asyncGeneratorStep(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){asyncGeneratorStep(a,n,i,o,s,\"next\",t)}function s(t){asyncGeneratorStep(a,n,i,o,s,\"throw\",t)}o(void 0)}))}}var Token=__webpack_require__(132),strtok3=__webpack_require__(47),_require=__webpack_require__(133),stringToBytes=_require.stringToBytes,tarHeaderChecksumMatches=_require.tarHeaderChecksumMatches,uint32SyncSafeToken=_require.uint32SyncSafeToken,supported=__webpack_require__(134),minimumBytes=4100;function fromStream(t){return _fromStream.apply(this,arguments)}function _fromStream(){return _fromStream=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,strtok3.fromStream(e);case 2:return r=t.sent,t.prev=3,t.next=6,fromTokenizer(r);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])}))),_fromStream.apply(this,arguments)}function fromBuffer(t){return _fromBuffer.apply(this,arguments)}function _fromBuffer(){return(_fromBuffer=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)){t.next=2;break}throw new TypeError(\"Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `\".concat(_typeof(e),\"`\"));case 2:if((r=e instanceof Buffer?e:Buffer.from(e))&&r.length>1){t.next=5;break}return t.abrupt(\"return\");case 5:return n=strtok3.fromBuffer(r),t.abrupt(\"return\",fromTokenizer(n));case 7:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function _check(t,e,r){r=_objectSpread({offset:0},r);var n,i=_createForOfIteratorHelper(e.entries());try{for(i.s();!(n=i.n()).done;){var a=_slicedToArray(n.value,2),o=a[0],s=a[1];if(r.mask){if(s!==(r.mask[o]&t[o+r.offset]))return!1}else if(s!==t[o+r.offset])return!1}}catch(t){i.e(t)}finally{i.f()}return!0}function fromTokenizer(t){return _fromTokenizer2.apply(this,arguments)}function _fromTokenizer2(){return(_fromTokenizer2=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt(\"return\",_fromTokenizer(e));case 4:if(t.prev=4,t.t0=t.catch(0),t.t0 instanceof strtok3.EndOfStreamError){t.next=8;break}throw t.t0;case 8:case\"end\":return t.stop()}}),t,null,[[0,4]])})))).apply(this,arguments)}function _fromTokenizer(t){return _fromTokenizer3.apply(this,arguments)}function _fromTokenizer3(){return _fromTokenizer3=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n,i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k,A;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(minimumBytes),12,n=function(t,e){return _check(r,t,e)},i=function(t,e){return n(stringToBytes(t),e)},e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),t.next=7,e.peekBuffer(r,{length:12,mayBeLess:!0});case 7:if(!n([66,77])){t.next=9;break}return t.abrupt(\"return\",{ext:\"bmp\",mime:\"image/bmp\"});case 9:if(!n([11,119])){t.next=11;break}return t.abrupt(\"return\",{ext:\"ac3\",mime:\"audio/vnd.dolby.dd-raw\"});case 11:if(!n([120,1])){t.next=13;break}return t.abrupt(\"return\",{ext:\"dmg\",mime:\"application/x-apple-diskimage\"});case 13:if(!n([77,90])){t.next=15;break}return t.abrupt(\"return\",{ext:\"exe\",mime:\"application/x-msdownload\"});case 15:if(!n([37,33])){t.next=21;break}return t.next=18,e.peekBuffer(r,{length:24,mayBeLess:!0});case 18:if(!i(\"PS-Adobe-\",{offset:2})||!i(\" EPSF-\",{offset:14})){t.next=20;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 20:return t.abrupt(\"return\",{ext:\"ps\",mime:\"application/postscript\"});case 21:if(!n([31,160])&&!n([31,157])){t.next=23;break}return t.abrupt(\"return\",{ext:\"Z\",mime:\"application/x-compress\"});case 23:if(!n([255,216,255])){t.next=25;break}return t.abrupt(\"return\",{ext:\"jpg\",mime:\"image/jpeg\"});case 25:if(!n([73,73,188])){t.next=27;break}return t.abrupt(\"return\",{ext:\"jxr\",mime:\"image/vnd.ms-photo\"});case 27:if(!n([31,139,8])){t.next=29;break}return t.abrupt(\"return\",{ext:\"gz\",mime:\"application/gzip\"});case 29:if(!n([66,90,104])){t.next=31;break}return t.abrupt(\"return\",{ext:\"bz2\",mime:\"application/x-bzip2\"});case 31:if(!i(\"ID3\")){t.next=42;break}return t.next=34,e.ignore(6);case 34:return t.next=36,e.readToken(uint32SyncSafeToken);case 36:if(a=t.sent,!(e.position+a>e.fileInfo.size)){t.next=39;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 39:return t.next=41,e.ignore(a);case 41:return t.abrupt(\"return\",fromTokenizer(e));case 42:if(!i(\"MP+\")){t.next=44;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 44:if(67!==r[0]&&70!==r[0]||!n([87,83],{offset:1})){t.next=46;break}return t.abrupt(\"return\",{ext:\"swf\",mime:\"application/x-shockwave-flash\"});case 46:if(!n([71,73,70])){t.next=48;break}return t.abrupt(\"return\",{ext:\"gif\",mime:\"image/gif\"});case 48:if(!i(\"FLIF\")){t.next=50;break}return t.abrupt(\"return\",{ext:\"flif\",mime:\"image/flif\"});case 50:if(!i(\"8BPS\")){t.next=52;break}return t.abrupt(\"return\",{ext:\"psd\",mime:\"image/vnd.adobe.photoshop\"});case 52:if(!i(\"WEBP\",{offset:8})){t.next=54;break}return t.abrupt(\"return\",{ext:\"webp\",mime:\"image/webp\"});case 54:if(!i(\"MPCK\")){t.next=56;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 56:if(!i(\"FORM\")){t.next=58;break}return t.abrupt(\"return\",{ext:\"aif\",mime:\"audio/aiff\"});case 58:if(!i(\"icns\",{offset:0})){t.next=60;break}return t.abrupt(\"return\",{ext:\"icns\",mime:\"image/icns\"});case 60:if(!n([80,75,3,4])){t.next=121;break}t.prev=61;case 62:if(!(e.position+30<e.fileInfo.size)){t.next=114;break}return t.next=65,e.readBuffer(r,{length:30});case 65:return o={compressedSize:r.readUInt32LE(18),uncompressedSize:r.readUInt32LE(22),filenameLength:r.readUInt16LE(26),extraFieldLength:r.readUInt16LE(28)},t.next=68,e.readToken(new Token.StringType(o.filenameLength,\"utf-8\"));case 68:return o.filename=t.sent,t.next=71,e.ignore(o.extraFieldLength);case 71:if(\"META-INF/mozilla.rsa\"!==o.filename){t.next=73;break}return t.abrupt(\"return\",{ext:\"xpi\",mime:\"application/x-xpinstall\"});case 73:if(!o.filename.endsWith(\".rels\")&&!o.filename.endsWith(\".xml\")){t.next=83;break}s=o.filename.split(\"/\")[0],t.t0=s,t.next=\"_rels\"===t.t0?78:\"word\"===t.t0?79:\"ppt\"===t.t0?80:\"xl\"===t.t0?81:82;break;case 78:return t.abrupt(\"break\",83);case 79:return t.abrupt(\"return\",{ext:\"docx\",mime:\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"});case 80:return t.abrupt(\"return\",{ext:\"pptx\",mime:\"application/vnd.openxmlformats-officedocument.presentationml.presentation\"});case 81:return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 82:return t.abrupt(\"break\",83);case 83:if(!o.filename.startsWith(\"xl/\")){t.next=85;break}return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 85:if(!o.filename.startsWith(\"3D/\")||!o.filename.endsWith(\".model\")){t.next=87;break}return t.abrupt(\"return\",{ext:\"3mf\",mime:\"model/3mf\"});case 87:if(\"mimetype\"!==o.filename||o.compressedSize!==o.uncompressedSize){t.next=98;break}return t.next=90,e.readToken(new Token.StringType(o.compressedSize,\"utf-8\"));case 90:u=t.sent,t.t1=u,t.next=\"application/epub+zip\"===t.t1?94:\"application/vnd.oasis.opendocument.text\"===t.t1?95:\"application/vnd.oasis.opendocument.spreadsheet\"===t.t1?96:\"application/vnd.oasis.opendocument.presentation\"===t.t1?97:98;break;case 94:return t.abrupt(\"return\",{ext:\"epub\",mime:\"application/epub+zip\"});case 95:return t.abrupt(\"return\",{ext:\"odt\",mime:\"application/vnd.oasis.opendocument.text\"});case 96:return t.abrupt(\"return\",{ext:\"ods\",mime:\"application/vnd.oasis.opendocument.spreadsheet\"});case 97:return t.abrupt(\"return\",{ext:\"odp\",mime:\"application/vnd.oasis.opendocument.presentation\"});case 98:if(0!==o.compressedSize){t.next=110;break}f=-1;case 100:if(!(f<0&&e.position<e.fileInfo.size)){t.next=108;break}return t.next=103,e.peekBuffer(r,{mayBeLess:!0});case 103:return f=r.indexOf(\"504B0304\",0,\"hex\"),t.next=106,e.ignore(f>=0?f:r.length);case 106:t.next=100;break;case 108:t.next=112;break;case 110:return t.next=112,e.ignore(o.compressedSize);case 112:t.next=62;break;case 114:t.next=120;break;case 116:if(t.prev=116,t.t2=t.catch(61),t.t2 instanceof strtok3.EndOfStreamError){t.next=120;break}throw t.t2;case 120:return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 121:if(!i(\"OggS\")){t.next=140;break}return t.next=124,e.ignore(28);case 124:return c=Buffer.alloc(8),t.next=127,e.readBuffer(c);case 127:if(!_check(c,[79,112,117,115,72,101,97,100])){t.next=129;break}return t.abrupt(\"return\",{ext:\"opus\",mime:\"audio/opus\"});case 129:if(!_check(c,[128,116,104,101,111,114,97])){t.next=131;break}return t.abrupt(\"return\",{ext:\"ogv\",mime:\"video/ogg\"});case 131:if(!_check(c,[1,118,105,100,101,111,0])){t.next=133;break}return t.abrupt(\"return\",{ext:\"ogm\",mime:\"video/ogg\"});case 133:if(!_check(c,[127,70,76,65,67])){t.next=135;break}return t.abrupt(\"return\",{ext:\"oga\",mime:\"audio/ogg\"});case 135:if(!_check(c,[83,112,101,101,120,32,32])){t.next=137;break}return t.abrupt(\"return\",{ext:\"spx\",mime:\"audio/ogg\"});case 137:if(!_check(c,[1,118,111,114,98,105,115])){t.next=139;break}return t.abrupt(\"return\",{ext:\"ogg\",mime:\"audio/ogg\"});case 139:return t.abrupt(\"return\",{ext:\"ogx\",mime:\"application/ogg\"});case 140:if(!n([80,75])||3!==r[2]&&5!==r[2]&&7!==r[2]||4!==r[3]&&6!==r[3]&&8!==r[3]){t.next=142;break}return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 142:if(!(i(\"ftyp\",{offset:4})&&96&r[8])){t.next=167;break}h=r.toString(\"binary\",8,12).replace(\"\\0\",\" \").trim(),t.t3=h,t.next=\"avif\"===t.t3?147:\"mif1\"===t.t3?148:\"msf1\"===t.t3?149:\"heic\"===t.t3||\"heix\"===t.t3?150:\"hevc\"===t.t3||\"hevx\"===t.t3?151:\"qt\"===t.t3?152:\"M4V\"===t.t3||\"M4VH\"===t.t3||\"M4VP\"===t.t3?153:\"M4P\"===t.t3?154:\"M4B\"===t.t3?155:\"M4A\"===t.t3?156:\"F4V\"===t.t3?157:\"F4P\"===t.t3?158:\"F4A\"===t.t3?159:\"F4B\"===t.t3?160:\"crx\"===t.t3?161:162;break;case 147:return t.abrupt(\"return\",{ext:\"avif\",mime:\"image/avif\"});case 148:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif\"});case 149:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif-sequence\"});case 150:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic\"});case 151:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic-sequence\"});case 152:return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 153:return t.abrupt(\"return\",{ext:\"m4v\",mime:\"video/x-m4v\"});case 154:return t.abrupt(\"return\",{ext:\"m4p\",mime:\"video/mp4\"});case 155:return t.abrupt(\"return\",{ext:\"m4b\",mime:\"audio/mp4\"});case 156:return t.abrupt(\"return\",{ext:\"m4a\",mime:\"audio/x-m4a\"});case 157:return t.abrupt(\"return\",{ext:\"f4v\",mime:\"video/mp4\"});case 158:return t.abrupt(\"return\",{ext:\"f4p\",mime:\"video/mp4\"});case 159:return t.abrupt(\"return\",{ext:\"f4a\",mime:\"audio/mp4\"});case 160:return t.abrupt(\"return\",{ext:\"f4b\",mime:\"audio/mp4\"});case 161:return t.abrupt(\"return\",{ext:\"cr3\",mime:\"image/x-canon-cr3\"});case 162:if(!h.startsWith(\"3g\")){t.next=166;break}if(!h.startsWith(\"3g2\")){t.next=165;break}return t.abrupt(\"return\",{ext:\"3g2\",mime:\"video/3gpp2\"});case 165:return t.abrupt(\"return\",{ext:\"3gp\",mime:\"video/3gpp\"});case 166:return t.abrupt(\"return\",{ext:\"mp4\",mime:\"video/mp4\"});case 167:if(!i(\"MThd\")){t.next=169;break}return t.abrupt(\"return\",{ext:\"mid\",mime:\"audio/midi\"});case 169:if(!i(\"wOFF\")||!n([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=171;break}return t.abrupt(\"return\",{ext:\"woff\",mime:\"font/woff\"});case 171:if(!i(\"wOF2\")||!n([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=173;break}return t.abrupt(\"return\",{ext:\"woff2\",mime:\"font/woff2\"});case 173:if(!n([212,195,178,161])&&!n([161,178,195,212])){t.next=175;break}return t.abrupt(\"return\",{ext:\"pcap\",mime:\"application/vnd.tcpdump.pcap\"});case 175:if(!i(\"DSD \")){t.next=177;break}return t.abrupt(\"return\",{ext:\"dsf\",mime:\"audio/x-dsf\"});case 177:if(!i(\"LZIP\")){t.next=179;break}return t.abrupt(\"return\",{ext:\"lz\",mime:\"application/x-lzip\"});case 179:if(!i(\"fLaC\")){t.next=181;break}return t.abrupt(\"return\",{ext:\"flac\",mime:\"audio/x-flac\"});case 181:if(!n([66,80,71,251])){t.next=183;break}return t.abrupt(\"return\",{ext:\"bpg\",mime:\"image/bpg\"});case 183:if(!i(\"wvpk\")){t.next=185;break}return t.abrupt(\"return\",{ext:\"wv\",mime:\"audio/wavpack\"});case 185:if(!i(\"%PDF\")){t.next=195;break}return t.next=188,e.ignore(1350);case 188:return 10485760,l=Buffer.alloc(Math.min(10485760,e.fileInfo.size)),t.next=192,e.readBuffer(l,{mayBeLess:!0});case 192:if(!l.includes(Buffer.from(\"AIPrivateData\"))){t.next=194;break}return t.abrupt(\"return\",{ext:\"ai\",mime:\"application/postscript\"});case 194:return t.abrupt(\"return\",{ext:\"pdf\",mime:\"application/pdf\"});case 195:if(!n([0,97,115,109])){t.next=197;break}return t.abrupt(\"return\",{ext:\"wasm\",mime:\"application/wasm\"});case 197:if(!n([73,73,42,0])){t.next=210;break}if(!i(\"CR\",{offset:8})){t.next=200;break}return t.abrupt(\"return\",{ext:\"cr2\",mime:\"image/x-canon-cr2\"});case 200:if(!n([28,0,254,0],{offset:8})&&!n([31,0,11,0],{offset:8})){t.next=202;break}return t.abrupt(\"return\",{ext:\"nef\",mime:\"image/x-nikon-nef\"});case 202:if(!n([8,0,0,0],{offset:4})||!n([45,0,254,0],{offset:8})&&!n([39,0,254,0],{offset:8})){t.next=204;break}return t.abrupt(\"return\",{ext:\"dng\",mime:\"image/x-adobe-dng\"});case 204:return r=Buffer.alloc(24),t.next=207,e.peekBuffer(r);case 207:if(!n([16,251,134,1],{offset:4})&&!n([8,0,0,0],{offset:4})||!n([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})){t.next=209;break}return t.abrupt(\"return\",{ext:\"arw\",mime:\"image/x-sony-arw\"});case 209:return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 210:if(!n([77,77,0,42])){t.next=212;break}return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 212:if(!i(\"MAC \")){t.next=214;break}return t.abrupt(\"return\",{ext:\"ape\",mime:\"audio/ape\"});case 214:if(!n([26,69,223,163])){t.next=230;break}return p=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r,n,i,a;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peekNumber(Token.UINT8);case 2:for(r=t.sent,n=128,i=0;!(r&n)&&0!==n;)++i,n>>=1;return a=Buffer.alloc(i+1),t.next=9,e.readBuffer(a);case 9:return t.abrupt(\"return\",a);case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),d=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:return e=t.sent,t.next=5,p();case 5:return(r=t.sent)[0]^=128>>r.length-1,n=Math.min(6,r.length),t.abrupt(\"return\",{id:e.readUIntBE(0,e.length),len:r.readUIntBE(r.length-n,n)});case 9:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(r,n){var i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n>0)){t.next=11;break}return t.next=3,d();case 3:if(17026!==(i=t.sent).id){t.next=6;break}return t.abrupt(\"return\",e.readToken(new Token.StringType(i.len,\"utf-8\")));case 6:return t.next=8,e.ignore(i.len);case 8:--n,t.next=0;break;case 11:case\"end\":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),t.next=220,d();case 220:return y=t.sent,t.next=223,m(1,y.len);case 223:b=t.sent,t.t4=b,t.next=\"webm\"===t.t4?227:\"matroska\"===t.t4?228:229;break;case 227:return t.abrupt(\"return\",{ext:\"webm\",mime:\"video/webm\"});case 228:return t.abrupt(\"return\",{ext:\"mkv\",mime:\"video/x-matroska\"});case 229:return t.abrupt(\"return\");case 230:if(!n([82,73,70,70])){t.next=237;break}if(!n([65,86,73],{offset:8})){t.next=233;break}return t.abrupt(\"return\",{ext:\"avi\",mime:\"video/vnd.avi\"});case 233:if(!n([87,65,86,69],{offset:8})){t.next=235;break}return t.abrupt(\"return\",{ext:\"wav\",mime:\"audio/vnd.wave\"});case 235:if(!n([81,76,67,77],{offset:8})){t.next=237;break}return t.abrupt(\"return\",{ext:\"qcp\",mime:\"audio/qcelp\"});case 237:if(!i(\"SQLi\")){t.next=239;break}return t.abrupt(\"return\",{ext:\"sqlite\",mime:\"application/x-sqlite3\"});case 239:if(!n([78,69,83,26])){t.next=241;break}return t.abrupt(\"return\",{ext:\"nes\",mime:\"application/x-nintendo-nes-rom\"});case 241:if(!i(\"Cr24\")){t.next=243;break}return t.abrupt(\"return\",{ext:\"crx\",mime:\"application/x-google-chrome-extension\"});case 243:if(!i(\"MSCF\")&&!i(\"ISc(\")){t.next=245;break}return t.abrupt(\"return\",{ext:\"cab\",mime:\"application/vnd.ms-cab-compressed\"});case 245:if(!n([237,171,238,219])){t.next=247;break}return t.abrupt(\"return\",{ext:\"rpm\",mime:\"application/x-rpm\"});case 247:if(!n([197,208,211,198])){t.next=249;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 249:if(!n([40,181,47,253])){t.next=251;break}return t.abrupt(\"return\",{ext:\"zst\",mime:\"application/zstd\"});case 251:if(!n([79,84,84,79,0])){t.next=253;break}return t.abrupt(\"return\",{ext:\"otf\",mime:\"font/otf\"});case 253:if(!i(\"#!AMR\")){t.next=255;break}return t.abrupt(\"return\",{ext:\"amr\",mime:\"audio/amr\"});case 255:if(!i(\"{\\\\rtf\")){t.next=257;break}return t.abrupt(\"return\",{ext:\"rtf\",mime:\"application/rtf\"});case 257:if(!n([70,76,86,1])){t.next=259;break}return t.abrupt(\"return\",{ext:\"flv\",mime:\"video/x-flv\"});case 259:if(!i(\"IMPM\")){t.next=261;break}return t.abrupt(\"return\",{ext:\"it\",mime:\"audio/x-it\"});case 261:if(!(i(\"-lh0-\",{offset:2})||i(\"-lh1-\",{offset:2})||i(\"-lh2-\",{offset:2})||i(\"-lh3-\",{offset:2})||i(\"-lh4-\",{offset:2})||i(\"-lh5-\",{offset:2})||i(\"-lh6-\",{offset:2})||i(\"-lh7-\",{offset:2})||i(\"-lzs-\",{offset:2})||i(\"-lz4-\",{offset:2})||i(\"-lz5-\",{offset:2})||i(\"-lhd-\",{offset:2}))){t.next=263;break}return t.abrupt(\"return\",{ext:\"lzh\",mime:\"application/x-lzh-compressed\"});case 263:if(!n([0,0,1,186])){t.next=268;break}if(!n([33],{offset:4,mask:[241]})){t.next=266;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP1S\"});case 266:if(!n([68],{offset:4,mask:[196]})){t.next=268;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP2P\"});case 268:if(!i(\"ITSF\")){t.next=270;break}return t.abrupt(\"return\",{ext:\"chm\",mime:\"application/vnd.ms-htmlhelp\"});case 270:if(!n([253,55,122,88,90,0])){t.next=272;break}return t.abrupt(\"return\",{ext:\"xz\",mime:\"application/x-xz\"});case 272:if(!i(\"<?xml \")){t.next=274;break}return t.abrupt(\"return\",{ext:\"xml\",mime:\"application/xml\"});case 274:if(!n([55,122,188,175,39,28])){t.next=276;break}return t.abrupt(\"return\",{ext:\"7z\",mime:\"application/x-7z-compressed\"});case 276:if(!n([82,97,114,33,26,7])||0!==r[6]&&1!==r[6]){t.next=278;break}return t.abrupt(\"return\",{ext:\"rar\",mime:\"application/x-rar-compressed\"});case 278:if(!i(\"solid \")){t.next=280;break}return t.abrupt(\"return\",{ext:\"stl\",mime:\"model/stl\"});case 280:if(!i(\"BLENDER\")){t.next=282;break}return t.abrupt(\"return\",{ext:\"blend\",mime:\"application/x-blender\"});case 282:if(!i(\"!<arch>\")){t.next=291;break}return t.next=285,e.ignore(8);case 285:return t.next=287,e.readToken(new Token.StringType(13,\"ascii\"));case 287:if(\"debian-binary\"!==t.sent){t.next=290;break}return t.abrupt(\"return\",{ext:\"deb\",mime:\"application/x-deb\"});case 290:return t.abrupt(\"return\",{ext:\"ar\",mime:\"application/x-unix-archive\"});case 291:if(!n([137,80,78,71,13,10,26,10])){t.next=309;break}return g=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.readToken(Token.INT32_BE);case 2:return t.t0=t.sent,t.next=5,e.readToken(new Token.StringType(4,\"binary\"));case 5:return t.t1=t.sent,t.abrupt(\"return\",{length:t.t0,type:t.t1});case 7:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=295,e.ignore(8);case 295:return t.next=297,g();case 297:if(!((v=t.sent).length<0)){t.next=300;break}return t.abrupt(\"return\");case 300:t.t5=v.type,t.next=\"IDAT\"===t.t5?303:\"acTL\"===t.t5?304:305;break;case 303:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 304:return t.abrupt(\"return\",{ext:\"apng\",mime:\"image/apng\"});case 305:return t.next=307,e.ignore(v.length+4);case 307:if(e.position+8<e.fileInfo.size){t.next=295;break}case 308:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 309:if(!n([65,82,82,79,87,49,0,0])){t.next=311;break}return t.abrupt(\"return\",{ext:\"arrow\",mime:\"application/x-apache-arrow\"});case 311:if(!n([103,108,84,70,2,0,0,0])){t.next=313;break}return t.abrupt(\"return\",{ext:\"glb\",mime:\"model/gltf-binary\"});case 313:if(!(n([102,114,101,101],{offset:4})||n([109,100,97,116],{offset:4})||n([109,111,111,118],{offset:4})||n([119,105,100,101],{offset:4}))){t.next=315;break}return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 315:if(!n([73,73,82,79,8,0,0,0,24])){t.next=317;break}return t.abrupt(\"return\",{ext:\"orf\",mime:\"image/x-olympus-orf\"});case 317:if(!i(\"gimp xcf \")){t.next=319;break}return t.abrupt(\"return\",{ext:\"xcf\",mime:\"image/x-xcf\"});case 319:if(!n([73,73,85,0,24,0,0,0,136,231,116,216])){t.next=321;break}return t.abrupt(\"return\",{ext:\"rw2\",mime:\"image/x-panasonic-rw2\"});case 321:if(!n([48,38,178,117,142,102,207,17,166,217])){t.next=346;break}return w=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(16),t.next=3,e.readBuffer(r);case 3:return t.t0=r,t.t1=Number,t.next=7,e.readToken(Token.UINT64_LE);case 7:return t.t2=t.sent,t.t3=(0,t.t1)(t.t2),t.abrupt(\"return\",{id:t.t0,size:t.t3});case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=325,e.ignore(30);case 325:if(!(e.position+24<e.fileInfo.size)){t.next=345;break}return t.next=328,w();case 328:if(_=t.sent,x=_.size-24,!_check(_.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){t.next=341;break}return E=Buffer.alloc(16),t.t6=x,t.next=335,e.readBuffer(E);case 335:if(x=t.t6-=t.sent,!_check(E,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=338;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"audio/x-ms-asf\"});case 338:if(!_check(E,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=340;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"video/x-ms-asf\"});case 340:return t.abrupt(\"break\",345);case 341:return t.next=343,e.ignore(x);case 343:t.next=325;break;case 345:return t.abrupt(\"return\",{ext:\"asf\",mime:\"application/vnd.ms-asf\"});case 346:if(!n([171,75,84,88,32,49,49,187,13,10,26,10])){t.next=348;break}return t.abrupt(\"return\",{ext:\"ktx\",mime:\"image/ktx\"});case 348:if(!n([126,16,4])&&!n([126,24,4])||!n([48,77,73,69],{offset:4})){t.next=350;break}return t.abrupt(\"return\",{ext:\"mie\",mime:\"application/x-mie\"});case 350:if(!n([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2})){t.next=352;break}return t.abrupt(\"return\",{ext:\"shp\",mime:\"application/x-esri-shape\"});case 352:if(!n([0,0,0,12,106,80,32,32,13,10,135,10])){t.next=366;break}return t.next=355,e.ignore(20);case 355:return t.next=357,e.readToken(new Token.StringType(4,\"ascii\"));case 357:D=t.sent,t.t7=D,t.next=\"jp2 \"===t.t7?361:\"jpx \"===t.t7?362:\"jpm \"===t.t7?363:\"mjp2\"===t.t7?364:365;break;case 361:return t.abrupt(\"return\",{ext:\"jp2\",mime:\"image/jp2\"});case 362:return t.abrupt(\"return\",{ext:\"jpx\",mime:\"image/jpx\"});case 363:return t.abrupt(\"return\",{ext:\"jpm\",mime:\"image/jpm\"});case 364:return t.abrupt(\"return\",{ext:\"mj2\",mime:\"image/mj2\"});case 365:return t.abrupt(\"return\");case 366:if(!n([255,10])&&!n([0,0,0,12,74,88,76,32,13,10,135,10])){t.next=368;break}return t.abrupt(\"return\",{ext:\"jxl\",mime:\"image/jxl\"});case 368:if(!n([0,0,1,186])&&!n([0,0,1,179])){t.next=370;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/mpeg\"});case 370:if(!n([0,1,0,0,0])){t.next=372;break}return t.abrupt(\"return\",{ext:\"ttf\",mime:\"font/ttf\"});case 372:if(!n([0,0,1,0])){t.next=374;break}return t.abrupt(\"return\",{ext:\"ico\",mime:\"image/x-icon\"});case 374:if(!n([0,0,2,0])){t.next=376;break}return t.abrupt(\"return\",{ext:\"cur\",mime:\"image/x-icon\"});case 376:if(!n([208,207,17,224,161,177,26,225])){t.next=378;break}return t.abrupt(\"return\",{ext:\"cfb\",mime:\"application/x-cfb\"});case 378:return t.next=380,e.peekBuffer(r,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0});case 380:if(!i(\"BEGIN:\")){t.next=385;break}if(!i(\"VCARD\",{offset:6})){t.next=383;break}return t.abrupt(\"return\",{ext:\"vcf\",mime:\"text/vcard\"});case 383:if(!i(\"VCALENDAR\",{offset:6})){t.next=385;break}return t.abrupt(\"return\",{ext:\"ics\",mime:\"text/calendar\"});case 385:if(!i(\"FUJIFILMCCD-RAW\")){t.next=387;break}return t.abrupt(\"return\",{ext:\"raf\",mime:\"image/x-fujifilm-raf\"});case 387:if(!i(\"Extended Module:\")){t.next=389;break}return t.abrupt(\"return\",{ext:\"xm\",mime:\"audio/x-xm\"});case 389:if(!i(\"Creative Voice File\")){t.next=391;break}return t.abrupt(\"return\",{ext:\"voc\",mime:\"audio/x-voc\"});case 391:if(!(n([4,0,0,0])&&r.length>=16)){t.next=403;break}if(!((k=r.readUInt32LE(12))>12&&r.length>=k+16)){t.next=403;break}if(t.prev=394,A=r.slice(16,k+16).toString(),!JSON.parse(A).files){t.next=399;break}return t.abrupt(\"return\",{ext:\"asar\",mime:\"application/x-asar\"});case 399:t.next=403;break;case 401:t.prev=401,t.t8=t.catch(394);case 403:if(!n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){t.next=405;break}return t.abrupt(\"return\",{ext:\"mxf\",mime:\"application/mxf\"});case 405:if(!i(\"SCRM\",{offset:44})){t.next=407;break}return t.abrupt(\"return\",{ext:\"s3m\",mime:\"audio/x-s3m\"});case 407:if(!n([71],{offset:4})||!n([71],{offset:192})&&!n([71],{offset:196})){t.next=409;break}return t.abrupt(\"return\",{ext:\"mts\",mime:\"video/mp2t\"});case 409:if(!n([66,79,79,75,77,79,66,73],{offset:60})){t.next=411;break}return t.abrupt(\"return\",{ext:\"mobi\",mime:\"application/x-mobipocket-ebook\"});case 411:if(!n([68,73,67,77],{offset:128})){t.next=413;break}return t.abrupt(\"return\",{ext:\"dcm\",mime:\"application/dicom\"});case 413:if(!n([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70])){t.next=415;break}return t.abrupt(\"return\",{ext:\"lnk\",mime:\"application/x.ms.shortcut\"});case 415:if(!n([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0])){t.next=417;break}return t.abrupt(\"return\",{ext:\"alias\",mime:\"application/x.apple.alias\"});case 417:if(!n([76,80],{offset:34})||!(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))){t.next=419;break}return t.abrupt(\"return\",{ext:\"eot\",mime:\"application/vnd.ms-fontobject\"});case 419:if(!n([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29])){t.next=421;break}return t.abrupt(\"return\",{ext:\"indd\",mime:\"application/x-indesign\"});case 421:return t.next=423,e.peekBuffer(r,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0});case 423:if(!tarHeaderChecksumMatches(r)){t.next=425;break}return t.abrupt(\"return\",{ext:\"tar\",mime:\"application/x-tar\"});case 425:if(!n([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0])){t.next=427;break}return t.abrupt(\"return\",{ext:\"skp\",mime:\"application/vnd.sketchup.skp\"});case 427:if(!i(\"-----BEGIN PGP MESSAGE-----\")){t.next=429;break}return t.abrupt(\"return\",{ext:\"pgp\",mime:\"application/pgp-encrypted\"});case 429:if(!(r.length>=2&&n([255,224],{offset:0,mask:[255,224]}))){t.next=440;break}if(!n([16],{offset:1,mask:[22]})){t.next=434;break}if(!n([8],{offset:1,mask:[8]})){t.next=433;break}return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 433:return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 434:if(!n([2],{offset:1,mask:[6]})){t.next=436;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 436:if(!n([4],{offset:1,mask:[6]})){t.next=438;break}return t.abrupt(\"return\",{ext:\"mp2\",mime:\"audio/mpeg\"});case 438:if(!n([6],{offset:1,mask:[6]})){t.next=440;break}return t.abrupt(\"return\",{ext:\"mp1\",mime:\"audio/mpeg\"});case 440:case\"end\":return t.stop()}}),t,null,[[61,116],[394,401]])}))),_fromTokenizer3.apply(this,arguments)}var stream=function stream(readableStream){return new Promise((function(resolve,reject){var stream=eval(\"require\")(\"stream\");readableStream.on(\"error\",reject),readableStream.once(\"readable\",_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new stream.PassThrough,r=stream.pipeline?stream.pipeline(readableStream,e,(function(){})):readableStream.pipe(e),n=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0),t.prev=3,t.next=6,fromBuffer(n);case 6:i=t.sent,e.fileType=i,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),reject(t.t0);case 13:resolve(r);case 14:case\"end\":return t.stop()}}),t,null,[[3,10]])}))))}))},fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,\"extensions\",{get:function(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,\"mimeTypes\",{get:function(){return new Set(supported.mimeTypes)}}),module.exports=fileType}).call(this,__webpack_require__(2).Buffer)},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function o(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function s(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;var u=r(67);function f(t){return new DataView(t.buffer,t.byteOffset)}e.UINT8={len:1,get:function(t,e){return f(t).getUint8(e)},put:function(t,e,r){return f(t).setUint8(e,r),e+1}},e.UINT16_LE={len:2,get:function(t,e){return f(t).getUint16(e,!0)},put:function(t,e,r){return f(t).setUint16(e,r,!0),e+2}},e.UINT16_BE={len:2,get:function(t,e){return f(t).getUint16(e)},put:function(t,e,r){return f(t).setUint16(e,r),e+2}},e.UINT24_LE={len:3,get:function(t,e){var r=f(t);return r.getUint8(e)+(r.getUint16(e+1,!0)<<8)},put:function(t,e,r){var n=f(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.UINT24_BE={len:3,get:function(t,e){var r=f(t);return(r.getUint16(e)<<8)+r.getUint8(e+2)},put:function(t,e,r){var n=f(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.UINT32_LE={len:4,get:function(t,e){return f(t).getUint32(e,!0)},put:function(t,e,r){return f(t).setUint32(e,r,!0),e+4}},e.UINT32_BE={len:4,get:function(t,e){return f(t).getUint32(e)},put:function(t,e,r){return f(t).setUint32(e,r),e+4}},e.INT8={len:1,get:function(t,e){return f(t).getInt8(e)},put:function(t,e,r){return f(t).setInt8(e,r),e+1}},e.INT16_BE={len:2,get:function(t,e){return f(t).getInt16(e)},put:function(t,e,r){return f(t).setInt16(e,r),e+2}},e.INT16_LE={len:2,get:function(t,e){return f(t).getInt16(e,!0)},put:function(t,e,r){return f(t).setInt16(e,r,!0),e+2}},e.INT24_LE={len:3,get:function(t,r){var n=e.UINT24_LE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=f(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.INT24_BE={len:3,get:function(t,r){var n=e.UINT24_BE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=f(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.INT32_BE={len:4,get:function(t,e){return f(t).getInt32(e)},put:function(t,e,r){return f(t).setInt32(e,r),e+4}},e.INT32_LE={len:4,get:function(t,e){return f(t).getInt32(e,!0)},put:function(t,e,r){return f(t).setInt32(e,r,!0),e+4}},e.UINT64_LE={len:8,get:function(t,e){return f(t).getBigUint64(e,!0)},put:function(t,e,r){return f(t).setBigUint64(e,r,!0),e+8}},e.INT64_LE={len:8,get:function(t,e){return f(t).getBigInt64(e,!0)},put:function(t,e,r){return f(t).setBigInt64(e,r,!0),e+8}},e.UINT64_BE={len:8,get:function(t,e){return f(t).getBigUint64(e)},put:function(t,e,r){return f(t).setBigUint64(e,r),e+8}},e.INT64_BE={len:8,get:function(t,e){return f(t).getBigInt64(e)},put:function(t,e,r){return f(t).setBigInt64(e,r),e+8}},e.Float16_BE={len:2,get:function(t,e){return u.read(t,e,!1,10,this.len)},put:function(t,e,r){return u.write(t,r,e,!1,10,this.len),e+this.len}},e.Float16_LE={len:2,get:function(t,e){return u.read(t,e,!0,10,this.len)},put:function(t,e,r){return u.write(t,r,e,!0,10,this.len),e+this.len}},e.Float32_BE={len:4,get:function(t,e){return f(t).getFloat32(e)},put:function(t,e,r){return f(t).setFloat32(e,r),e+4}},e.Float32_LE={len:4,get:function(t,e){return f(t).getFloat32(e,!0)},put:function(t,e,r){return f(t).setFloat32(e,r,!0),e+4}},e.Float64_BE={len:8,get:function(t,e){return f(t).getFloat64(e)},put:function(t,e,r){return f(t).setFloat64(e,r),e+8}},e.Float64_LE={len:8,get:function(t,e){return f(t).getFloat64(e,!0)},put:function(t,e,r){return f(t).setFloat64(e,r,!0),e+8}},e.Float80_BE={len:10,get:function(t,e){return u.read(t,e,!1,63,this.len)},put:function(t,e,r){return u.write(t,r,e,!1,63,this.len),e+this.len}},e.Float80_LE={len:10,get:function(t,e){return u.read(t,e,!0,63,this.len)},put:function(t,e,r){return u.write(t,r,e,!0,63,this.len),e+this.len}};var c=function(){return o((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){}}])}();e.IgnoreType=c;var h=function(){return o((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){return t.subarray(e,e+this.len)}}])}();e.Uint8ArrayType=h;var l=function(){return o((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(e,r){return t.from(e.subarray(r,r+this.len))}}])}();e.BufferType=l;var p=function(){return o((function t(e,r){i(this,t),this.len=e,this.encoding=r}),[{key:\"get\",value:function(e,r){return t.from(e).toString(this.encoding,r,r+this.len)}}])}();e.StringType=p;var d=function(){function t(e){i(this,t),this.len=e}return o(t,[{key:\"get\",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.decode(e,r,r+this.len)}}],[{key:\"decode\",value:function(e,r,n){for(var i=\"\",a=r;a<n;++a)i+=t.codePointToString(t.singleByteDecoder(e[a]));return i}},{key:\"inRange\",value:function(t,e,r){return e<=t&&t<=r}},{key:\"codePointToString\",value:function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}},{key:\"singleByteDecoder\",value:function(e){if(t.inRange(e,0,127))return e;var r=t.windows1252[e-128];if(null===r)throw Error(\"invaliding encoding\");return r}}])}();e.AnsiStringType=d,d.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.stringToBytes=function(t){return n(t).map((function(t){return t.charCodeAt(0)}))},e.tarHeaderChecksumMatches=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=parseInt(t.toString(\"utf8\",148,154).replace(/\\0.*$/,\"\").trim(),8);if(isNaN(r))return!1;for(var n=256,i=e;i<e+148;i++)n+=t[i];for(var a=e+156;a<e+512;a++)n+=t[a];return r===n},e.uint32SyncSafeToken={get:function(t,e){return 127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21},len:4}},function(t,e,r){\"use strict\";t.exports={extensions:[\"jpg\",\"png\",\"apng\",\"gif\",\"webp\",\"flif\",\"xcf\",\"cr2\",\"cr3\",\"orf\",\"arw\",\"dng\",\"nef\",\"rw2\",\"raf\",\"tif\",\"bmp\",\"icns\",\"jxr\",\"psd\",\"indd\",\"zip\",\"tar\",\"rar\",\"gz\",\"bz2\",\"7z\",\"dmg\",\"mp4\",\"mid\",\"mkv\",\"webm\",\"mov\",\"avi\",\"mpg\",\"mp2\",\"mp3\",\"m4a\",\"oga\",\"ogg\",\"ogv\",\"opus\",\"flac\",\"wav\",\"spx\",\"amr\",\"pdf\",\"epub\",\"exe\",\"swf\",\"rtf\",\"wasm\",\"woff\",\"woff2\",\"eot\",\"ttf\",\"otf\",\"ico\",\"flv\",\"ps\",\"xz\",\"sqlite\",\"nes\",\"crx\",\"xpi\",\"cab\",\"deb\",\"ar\",\"rpm\",\"Z\",\"lz\",\"cfb\",\"mxf\",\"mts\",\"blend\",\"bpg\",\"docx\",\"pptx\",\"xlsx\",\"3gp\",\"3g2\",\"jp2\",\"jpm\",\"jpx\",\"mj2\",\"aif\",\"qcp\",\"odt\",\"ods\",\"odp\",\"xml\",\"mobi\",\"heic\",\"cur\",\"ktx\",\"ape\",\"wv\",\"dcm\",\"ics\",\"glb\",\"pcap\",\"dsf\",\"lnk\",\"alias\",\"voc\",\"ac3\",\"m4v\",\"m4p\",\"m4b\",\"f4v\",\"f4p\",\"f4b\",\"f4a\",\"mie\",\"asf\",\"ogm\",\"ogx\",\"mpc\",\"arrow\",\"shp\",\"aac\",\"mp1\",\"it\",\"s3m\",\"xm\",\"ai\",\"skp\",\"avif\",\"eps\",\"lzh\",\"pgp\",\"asar\",\"stl\",\"chm\",\"3mf\",\"zst\",\"jxl\",\"vcf\"],mimeTypes:[\"image/jpeg\",\"image/png\",\"image/gif\",\"image/webp\",\"image/flif\",\"image/x-xcf\",\"image/x-canon-cr2\",\"image/x-canon-cr3\",\"image/tiff\",\"image/bmp\",\"image/vnd.ms-photo\",\"image/vnd.adobe.photoshop\",\"application/x-indesign\",\"application/epub+zip\",\"application/x-xpinstall\",\"application/vnd.oasis.opendocument.text\",\"application/vnd.oasis.opendocument.spreadsheet\",\"application/vnd.oasis.opendocument.presentation\",\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\"application/zip\",\"application/x-tar\",\"application/x-rar-compressed\",\"application/gzip\",\"application/x-bzip2\",\"application/x-7z-compressed\",\"application/x-apple-diskimage\",\"application/x-apache-arrow\",\"video/mp4\",\"audio/midi\",\"video/x-matroska\",\"video/webm\",\"video/quicktime\",\"video/vnd.avi\",\"audio/vnd.wave\",\"audio/qcelp\",\"audio/x-ms-asf\",\"video/x-ms-asf\",\"application/vnd.ms-asf\",\"video/mpeg\",\"video/3gpp\",\"audio/mpeg\",\"audio/mp4\",\"audio/opus\",\"video/ogg\",\"audio/ogg\",\"application/ogg\",\"audio/x-flac\",\"audio/ape\",\"audio/wavpack\",\"audio/amr\",\"application/pdf\",\"application/x-msdownload\",\"application/x-shockwave-flash\",\"application/rtf\",\"application/wasm\",\"font/woff\",\"font/woff2\",\"application/vnd.ms-fontobject\",\"font/ttf\",\"font/otf\",\"image/x-icon\",\"video/x-flv\",\"application/postscript\",\"application/eps\",\"application/x-xz\",\"application/x-sqlite3\",\"application/x-nintendo-nes-rom\",\"application/x-google-chrome-extension\",\"application/vnd.ms-cab-compressed\",\"application/x-deb\",\"application/x-unix-archive\",\"application/x-rpm\",\"application/x-compress\",\"application/x-lzip\",\"application/x-cfb\",\"application/x-mie\",\"application/mxf\",\"video/mp2t\",\"application/x-blender\",\"image/bpg\",\"image/jp2\",\"image/jpx\",\"image/jpm\",\"image/mj2\",\"audio/aiff\",\"application/xml\",\"application/x-mobipocket-ebook\",\"image/heif\",\"image/heif-sequence\",\"image/heic\",\"image/heic-sequence\",\"image/icns\",\"image/ktx\",\"application/dicom\",\"audio/x-musepack\",\"text/calendar\",\"text/vcard\",\"model/gltf-binary\",\"application/vnd.tcpdump.pcap\",\"audio/x-dsf\",\"application/x.ms.shortcut\",\"application/x.apple.alias\",\"audio/x-voc\",\"audio/vnd.dolby.dd-raw\",\"audio/x-m4a\",\"image/apng\",\"image/x-olympus-orf\",\"image/x-sony-arw\",\"image/x-adobe-dng\",\"image/x-nikon-nef\",\"image/x-panasonic-rw2\",\"image/x-fujifilm-raf\",\"video/x-m4v\",\"video/3gpp2\",\"application/x-esri-shape\",\"audio/aac\",\"audio/x-it\",\"audio/x-s3m\",\"audio/x-xm\",\"video/MP1S\",\"video/MP2P\",\"application/vnd.sketchup.skp\",\"image/avif\",\"application/x-lzh-compressed\",\"application/pgp-encrypted\",\"application/x-asar\",\"model/stl\",\"application/vnd.ms-htmlhelp\",\"model/3mf\",\"image/jxl\",\"application/zstd\"]}},function(t,e,r){var n=r(136),i=r(69),a=r(137);function o(t,e,r,n,i,a,o){this.startMarker=t,this.tags=e,this.imageSize=r,this.thumbnailOffset=n,this.thumbnailLength=i,this.thumbnailType=a,this.app1Offset=o}function s(t){this.stream=t,this.flags={readBinaryTags:!1,resolveTagNames:!0,simplifyValues:!0,imageSize:!0,hidePointers:!0,returnTags:!0}}o.prototype={hasThumbnail:function(t){return!(!this.thumbnailOffset||!this.thumbnailLength)&&(\"string\"!=typeof t||(\"image/jpeg\"===t.toLowerCase().trim()?6===this.thumbnailType:\"image/tiff\"===t.toLowerCase().trim()&&1===this.thumbnailType))},getThumbnailOffset:function(){return this.app1Offset+6+this.thumbnailOffset},getThumbnailLength:function(){return this.thumbnailLength},getThumbnailBuffer:function(){return this._getThumbnailStream().nextBuffer(this.thumbnailLength)},_getThumbnailStream:function(){return this.startMarker.openWithOffset(this.getThumbnailOffset())},getImageSize:function(){return this.imageSize},getThumbnailSize:function(){var t,e=this._getThumbnailStream();return n.parseSections(e,(function(e,r){\"SOF\"===n.getSectionName(e).name&&(t=n.getSizeFromSOFSection(r))})),t}},s.prototype={enableBinaryFields:function(t){return this.flags.readBinaryTags=!!t,this},enablePointers:function(t){return this.flags.hidePointers=!t,this},enableTagNames:function(t){return this.flags.resolveTagNames=!!t,this},enableImageSize:function(t){return this.flags.imageSize=!!t,this},enableReturnTags:function(t){return this.flags.returnTags=!!t,this},enableSimpleValues:function(t){return this.flags.simplifyValues=!!t,this},parse:function(){var t,e,s,u,f,c,h,l,p,d=this.stream.mark(),m=d.openWithOffset(0),y=this.flags;return y.resolveTagNames&&(h=r(139)),y.resolveTagNames?(t={},l=function(e){return t[e.name]},p=function(e,r){t[e.name]=r}):(t=[],l=function(e){var r;for(r=0;r<t.length;++r)if(t[r].type===e.type&&t[r].section===e.section)return t.value},p=function(e,r){var n;for(n=0;n<t.length;++n)if(t[n].type===e.type&&t[n].section===e.section)return void(t.value=r)}),n.parseSections(m,(function(r,o){var l=o.offsetFrom(d);225===r?i.parseTags(o,(function(e,r,n,o){if(y.readBinaryTags||7!==o){if(513===r){if(s=n[0],y.hidePointers)return}else if(514===r){if(u=n[0],y.hidePointers)return}else if(259===r&&(f=n[0],y.hidePointers))return;if(y.returnTags)if(y.simplifyValues&&(n=a.simplifyValue(n,o)),y.resolveTagNames){var c=(e===i.GPSIFD?h.gps:h.exif)[r];c||(c=h.exif[r]),t.hasOwnProperty(c)||(t[c]=n)}else t.push({section:e,type:r,value:n})}}))&&(c=l):y.imageSize&&\"SOF\"===n.getSectionName(r).name&&(e=n.getSizeFromSOFSection(o))})),y.simplifyValues&&(a.castDegreeValues(l,p),a.castDateValues(l,p)),new o(d,t,e,s,u,f,c)}},t.exports=s},function(t,e){t.exports={parseSections:function(t,e){var r,n;for(t.setBigEndian(!0);t.remainingLength()>0&&218!==n;){if(255!==t.nextUInt8())throw new Error(\"Invalid JPEG section offset\");r=(n=t.nextUInt8())>=208&&n<=217||218===n?0:t.nextUInt16()-2,e(n,t.branch(0,r)),t.skip(r)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,r;switch(t){case 216:e=\"SOI\";break;case 196:e=\"DHT\";break;case 219:e=\"DQT\";break;case 221:e=\"DRI\";break;case 218:e=\"SOS\";break;case 254:e=\"COM\";break;case 217:e=\"EOI\";break;default:t>=224&&t<=239?(e=\"APP\",r=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e=\"SOF\",r=t-192):t>=208&&t<=215&&(e=\"RST\",r=t-208)}var n={name:e};return\"number\"==typeof r&&(n.index=r),n}}},function(t,e,r){var n=r(69),i=r(138),a=[{section:n.GPSIFD,type:2,name:\"GPSLatitude\",refType:1,refName:\"GPSLatitudeRef\",posVal:\"N\"},{section:n.GPSIFD,type:4,name:\"GPSLongitude\",refType:3,refName:\"GPSLongitudeRef\",posVal:\"E\"}],o=[{section:n.SubIFD,type:306,name:\"ModifyDate\"},{section:n.SubIFD,type:36867,name:\"DateTimeOriginal\"},{section:n.SubIFD,type:36868,name:\"CreateDate\"},{section:n.SubIFD,type:306,name:\"ModifyDate\"}];t.exports={castDegreeValues:function(t,e){a.forEach((function(r){var n=t(r);if(n){var i=t({section:r.section,type:r.refType,name:r.refName})===r.posVal?1:-1,a=(n[0]+n[1]/60+n[2]/3600)*i;e(r,a)}}))},castDateValues:function(t,e){o.forEach((function(r){var n=t(r);if(n){var a=i.parseExifDate(n);void 0!==a&&e(r,a)}}))},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map((function(t){return 10===e||5===e?t[0]/t[1]:t}))).length&&(t=t[0]),t}}},function(t,e){function r(t){return parseInt(t,10)}var n=3600,i=60;function a(t,e){t=t.map(r),e=e.map(r);var n=t[0],i=t[1]-1,a=t[2],o=e[0],s=e[1],u=e[2];return Date.UTC(n,i,a,o,s,u,0)/1e3}function o(t){var e=t.substr(0,10).split(\"-\"),o=t.substr(11,8).split(\":\"),s=t.substr(19,6).split(\":\").map(r),u=s[0]*n+s[1]*i,f=a(e,o);if(\"number\"==typeof(f-=u)&&!isNaN(f))return f}function s(t){var e=t.split(\" \"),r=a(e[0].split(\":\"),e[1].split(\":\"));if(\"number\"==typeof r&&!isNaN(r))return r}t.exports={parseDateWithSpecFormat:s,parseDateWithTimezoneFormat:o,parseExifDate:function(t){var e=19===t.length&&\":\"===t.charAt(4);return 25===t.length&&\"T\"===t.charAt(10)?o(t):e?s(t):void 0}}},function(t,e){t.exports={exif:{1:\"InteropIndex\",2:\"InteropVersion\",11:\"ProcessingSoftware\",254:\"SubfileType\",255:\"OldSubfileType\",256:\"ImageWidth\",257:\"ImageHeight\",258:\"BitsPerSample\",259:\"Compression\",262:\"PhotometricInterpretation\",263:\"Thresholding\",264:\"CellWidth\",265:\"CellLength\",266:\"FillOrder\",269:\"DocumentName\",270:\"ImageDescription\",271:\"Make\",272:\"Model\",273:\"StripOffsets\",274:\"Orientation\",277:\"SamplesPerPixel\",278:\"RowsPerStrip\",279:\"StripByteCounts\",280:\"MinSampleValue\",281:\"MaxSampleValue\",282:\"XResolution\",283:\"YResolution\",284:\"PlanarConfiguration\",285:\"PageName\",286:\"XPosition\",287:\"YPosition\",288:\"FreeOffsets\",289:\"FreeByteCounts\",290:\"GrayResponseUnit\",291:\"GrayResponseCurve\",292:\"T4Options\",293:\"T6Options\",296:\"ResolutionUnit\",297:\"PageNumber\",300:\"ColorResponseUnit\",301:\"TransferFunction\",305:\"Software\",306:\"ModifyDate\",315:\"Artist\",316:\"HostComputer\",317:\"Predictor\",318:\"WhitePoint\",319:\"PrimaryChromaticities\",320:\"ColorMap\",321:\"HalftoneHints\",322:\"TileWidth\",323:\"TileLength\",324:\"TileOffsets\",325:\"TileByteCounts\",326:\"BadFaxLines\",327:\"CleanFaxData\",328:\"ConsecutiveBadFaxLines\",330:\"SubIFD\",332:\"InkSet\",333:\"InkNames\",334:\"NumberofInks\",336:\"DotRange\",337:\"TargetPrinter\",338:\"ExtraSamples\",339:\"SampleFormat\",340:\"SMinSampleValue\",341:\"SMaxSampleValue\",342:\"TransferRange\",343:\"ClipPath\",344:\"XClipPathUnits\",345:\"YClipPathUnits\",346:\"Indexed\",347:\"JPEGTables\",351:\"OPIProxy\",400:\"GlobalParametersIFD\",401:\"ProfileType\",402:\"FaxProfile\",403:\"CodingMethods\",404:\"VersionYear\",405:\"ModeNumber\",433:\"Decode\",434:\"DefaultImageColor\",435:\"T82Options\",437:\"JPEGTables\",512:\"JPEGProc\",513:\"ThumbnailOffset\",514:\"ThumbnailLength\",515:\"JPEGRestartInterval\",517:\"JPEGLosslessPredictors\",518:\"JPEGPointTransforms\",519:\"JPEGQTables\",520:\"JPEGDCTables\",521:\"JPEGACTables\",529:\"YCbCrCoefficients\",530:\"YCbCrSubSampling\",531:\"YCbCrPositioning\",532:\"ReferenceBlackWhite\",559:\"StripRowCounts\",700:\"ApplicationNotes\",999:\"USPTOMiscellaneous\",4096:\"RelatedImageFileFormat\",4097:\"RelatedImageWidth\",4098:\"RelatedImageHeight\",18246:\"Rating\",18247:\"XP_DIP_XML\",18248:\"StitchInfo\",18249:\"RatingPercent\",32781:\"ImageID\",32931:\"WangTag1\",32932:\"WangAnnotation\",32933:\"WangTag3\",32934:\"WangTag4\",32995:\"Matteing\",32996:\"DataType\",32997:\"ImageDepth\",32998:\"TileDepth\",33405:\"Model2\",33421:\"CFARepeatPatternDim\",33422:\"CFAPattern2\",33423:\"BatteryLevel\",33424:\"KodakIFD\",33432:\"Copyright\",33434:\"ExposureTime\",33437:\"FNumber\",33445:\"MDFileTag\",33446:\"MDScalePixel\",33447:\"MDColorTable\",33448:\"MDLabName\",33449:\"MDSampleInfo\",33450:\"MDPrepDate\",33451:\"MDPrepTime\",33452:\"MDFileUnits\",33550:\"PixelScale\",33589:\"AdventScale\",33590:\"AdventRevision\",33628:\"UIC1Tag\",33629:\"UIC2Tag\",33630:\"UIC3Tag\",33631:\"UIC4Tag\",33723:\"IPTC-NAA\",33918:\"IntergraphPacketData\",33919:\"IntergraphFlagRegisters\",33920:\"IntergraphMatrix\",33921:\"INGRReserved\",33922:\"ModelTiePoint\",34016:\"Site\",34017:\"ColorSequence\",34018:\"IT8Header\",34019:\"RasterPadding\",34020:\"BitsPerRunLength\",34021:\"BitsPerExtendedRunLength\",34022:\"ColorTable\",34023:\"ImageColorIndicator\",34024:\"BackgroundColorIndicator\",34025:\"ImageColorValue\",34026:\"BackgroundColorValue\",34027:\"PixelIntensityRange\",34028:\"TransparencyIndicator\",34029:\"ColorCharacterization\",34030:\"HCUsage\",34031:\"TrapIndicator\",34032:\"CMYKEquivalent\",34118:\"SEMInfo\",34152:\"AFCP_IPTC\",34232:\"PixelMagicJBIGOptions\",34264:\"ModelTransform\",34306:\"WB_GRGBLevels\",34310:\"LeafData\",34377:\"PhotoshopSettings\",34665:\"ExifOffset\",34675:\"ICC_Profile\",34687:\"TIFF_FXExtensions\",34688:\"MultiProfiles\",34689:\"SharedData\",34690:\"T88Options\",34732:\"ImageLayer\",34735:\"GeoTiffDirectory\",34736:\"GeoTiffDoubleParams\",34737:\"GeoTiffAsciiParams\",34850:\"ExposureProgram\",34852:\"SpectralSensitivity\",34853:\"GPSInfo\",34855:\"ISO\",34856:\"Opto-ElectricConvFactor\",34857:\"Interlace\",34858:\"TimeZoneOffset\",34859:\"SelfTimerMode\",34864:\"SensitivityType\",34865:\"StandardOutputSensitivity\",34866:\"RecommendedExposureIndex\",34867:\"ISOSpeed\",34868:\"ISOSpeedLatitudeyyy\",34869:\"ISOSpeedLatitudezzz\",34908:\"FaxRecvParams\",34909:\"FaxSubAddress\",34910:\"FaxRecvTime\",34954:\"LeafSubIFD\",36864:\"ExifVersion\",36867:\"DateTimeOriginal\",36868:\"CreateDate\",37121:\"ComponentsConfiguration\",37122:\"CompressedBitsPerPixel\",37377:\"ShutterSpeedValue\",37378:\"ApertureValue\",37379:\"BrightnessValue\",37380:\"ExposureCompensation\",37381:\"MaxApertureValue\",37382:\"SubjectDistance\",37383:\"MeteringMode\",37384:\"LightSource\",37385:\"Flash\",37386:\"FocalLength\",37387:\"FlashEnergy\",37388:\"SpatialFrequencyResponse\",37389:\"Noise\",37390:\"FocalPlaneXResolution\",37391:\"FocalPlaneYResolution\",37392:\"FocalPlaneResolutionUnit\",37393:\"ImageNumber\",37394:\"SecurityClassification\",37395:\"ImageHistory\",37396:\"SubjectArea\",37397:\"ExposureIndex\",37398:\"TIFF-EPStandardID\",37399:\"SensingMethod\",37434:\"CIP3DataFile\",37435:\"CIP3Sheet\",37436:\"CIP3Side\",37439:\"StoNits\",37500:\"MakerNote\",37510:\"UserComment\",37520:\"SubSecTime\",37521:\"SubSecTimeOriginal\",37522:\"SubSecTimeDigitized\",37679:\"MSDocumentText\",37680:\"MSPropertySetStorage\",37681:\"MSDocumentTextPosition\",37724:\"ImageSourceData\",40091:\"XPTitle\",40092:\"XPComment\",40093:\"XPAuthor\",40094:\"XPKeywords\",40095:\"XPSubject\",40960:\"FlashpixVersion\",40961:\"ColorSpace\",40962:\"ExifImageWidth\",40963:\"ExifImageHeight\",40964:\"RelatedSoundFile\",40965:\"InteropOffset\",41483:\"FlashEnergy\",41484:\"SpatialFrequencyResponse\",41485:\"Noise\",41486:\"FocalPlaneXResolution\",41487:\"FocalPlaneYResolution\",41488:\"FocalPlaneResolutionUnit\",41489:\"ImageNumber\",41490:\"SecurityClassification\",41491:\"ImageHistory\",41492:\"SubjectLocation\",41493:\"ExposureIndex\",41494:\"TIFF-EPStandardID\",41495:\"SensingMethod\",41728:\"FileSource\",41729:\"SceneType\",41730:\"CFAPattern\",41985:\"CustomRendered\",41986:\"ExposureMode\",41987:\"WhiteBalance\",41988:\"DigitalZoomRatio\",41989:\"FocalLengthIn35mmFormat\",41990:\"SceneCaptureType\",41991:\"GainControl\",41992:\"Contrast\",41993:\"Saturation\",41994:\"Sharpness\",41995:\"DeviceSettingDescription\",41996:\"SubjectDistanceRange\",42016:\"ImageUniqueID\",42032:\"OwnerName\",42033:\"SerialNumber\",42034:\"LensInfo\",42035:\"LensMake\",42036:\"LensModel\",42037:\"LensSerialNumber\",42112:\"GDALMetadata\",42113:\"GDALNoData\",42240:\"Gamma\",44992:\"ExpandSoftware\",44993:\"ExpandLens\",44994:\"ExpandFilm\",44995:\"ExpandFilterLens\",44996:\"ExpandScanner\",44997:\"ExpandFlashLamp\",48129:\"PixelFormat\",48130:\"Transformation\",48131:\"Uncompressed\",48132:\"ImageType\",48256:\"ImageWidth\",48257:\"ImageHeight\",48258:\"WidthResolution\",48259:\"HeightResolution\",48320:\"ImageOffset\",48321:\"ImageByteCount\",48322:\"AlphaOffset\",48323:\"AlphaByteCount\",48324:\"ImageDataDiscard\",48325:\"AlphaDataDiscard\",50215:\"OceScanjobDesc\",50216:\"OceApplicationSelector\",50217:\"OceIDNumber\",50218:\"OceImageLogic\",50255:\"Annotations\",50341:\"PrintIM\",50560:\"USPTOOriginalContentType\",50706:\"DNGVersion\",50707:\"DNGBackwardVersion\",50708:\"UniqueCameraModel\",50709:\"LocalizedCameraModel\",50710:\"CFAPlaneColor\",50711:\"CFALayout\",50712:\"LinearizationTable\",50713:\"BlackLevelRepeatDim\",50714:\"BlackLevel\",50715:\"BlackLevelDeltaH\",50716:\"BlackLevelDeltaV\",50717:\"WhiteLevel\",50718:\"DefaultScale\",50719:\"DefaultCropOrigin\",50720:\"DefaultCropSize\",50721:\"ColorMatrix1\",50722:\"ColorMatrix2\",50723:\"CameraCalibration1\",50724:\"CameraCalibration2\",50725:\"ReductionMatrix1\",50726:\"ReductionMatrix2\",50727:\"AnalogBalance\",50728:\"AsShotNeutral\",50729:\"AsShotWhiteXY\",50730:\"BaselineExposure\",50731:\"BaselineNoise\",50732:\"BaselineSharpness\",50733:\"BayerGreenSplit\",50734:\"LinearResponseLimit\",50735:\"CameraSerialNumber\",50736:\"DNGLensInfo\",50737:\"ChromaBlurRadius\",50738:\"AntiAliasStrength\",50739:\"ShadowScale\",50740:\"DNGPrivateData\",50741:\"MakerNoteSafety\",50752:\"RawImageSegmentation\",50778:\"CalibrationIlluminant1\",50779:\"CalibrationIlluminant2\",50780:\"BestQualityScale\",50781:\"RawDataUniqueID\",50784:\"AliasLayerMetadata\",50827:\"OriginalRawFileName\",50828:\"OriginalRawFileData\",50829:\"ActiveArea\",50830:\"MaskedAreas\",50831:\"AsShotICCProfile\",50832:\"AsShotPreProfileMatrix\",50833:\"CurrentICCProfile\",50834:\"CurrentPreProfileMatrix\",50879:\"ColorimetricReference\",50898:\"PanasonicTitle\",50899:\"PanasonicTitle2\",50931:\"CameraCalibrationSig\",50932:\"ProfileCalibrationSig\",50933:\"ProfileIFD\",50934:\"AsShotProfileName\",50935:\"NoiseReductionApplied\",50936:\"ProfileName\",50937:\"ProfileHueSatMapDims\",50938:\"ProfileHueSatMapData1\",50939:\"ProfileHueSatMapData2\",50940:\"ProfileToneCurve\",50941:\"ProfileEmbedPolicy\",50942:\"ProfileCopyright\",50964:\"ForwardMatrix1\",50965:\"ForwardMatrix2\",50966:\"PreviewApplicationName\",50967:\"PreviewApplicationVersion\",50968:\"PreviewSettingsName\",50969:\"PreviewSettingsDigest\",50970:\"PreviewColorSpace\",50971:\"PreviewDateTime\",50972:\"RawImageDigest\",50973:\"OriginalRawFileDigest\",50974:\"SubTileBlockSize\",50975:\"RowInterleaveFactor\",50981:\"ProfileLookTableDims\",50982:\"ProfileLookTableData\",51008:\"OpcodeList1\",51009:\"OpcodeList2\",51022:\"OpcodeList3\",51041:\"NoiseProfile\",51043:\"TimeCodes\",51044:\"FrameRate\",51058:\"TStop\",51081:\"ReelName\",51089:\"OriginalDefaultFinalSize\",51090:\"OriginalBestQualitySize\",51091:\"OriginalDefaultCropSize\",51105:\"CameraLabel\",51107:\"ProfileHueSatMapEncoding\",51108:\"ProfileLookTableEncoding\",51109:\"BaselineExposureOffset\",51110:\"DefaultBlackRender\",51111:\"NewRawImageDigest\",51112:\"RawToPreviewGain\",51125:\"DefaultUserCrop\",59932:\"Padding\",59933:\"OffsetSchema\",65e3:\"OwnerName\",65001:\"SerialNumber\",65002:\"Lens\",65024:\"KDC_IFD\",65100:\"RawFile\",65101:\"Converter\",65102:\"WhiteBalance\",65105:\"Exposure\",65106:\"Shadows\",65107:\"Brightness\",65108:\"Contrast\",65109:\"Saturation\",65110:\"Sharpness\",65111:\"Smoothness\",65112:\"MoireFilter\"},gps:{0:\"GPSVersionID\",1:\"GPSLatitudeRef\",2:\"GPSLatitude\",3:\"GPSLongitudeRef\",4:\"GPSLongitude\",5:\"GPSAltitudeRef\",6:\"GPSAltitude\",7:\"GPSTimeStamp\",8:\"GPSSatellites\",9:\"GPSStatus\",10:\"GPSMeasureMode\",11:\"GPSDOP\",12:\"GPSSpeedRef\",13:\"GPSSpeed\",14:\"GPSTrackRef\",15:\"GPSTrack\",16:\"GPSImgDirectionRef\",17:\"GPSImgDirection\",18:\"GPSMapDatum\",19:\"GPSDestLatitudeRef\",20:\"GPSDestLatitude\",21:\"GPSDestLongitudeRef\",22:\"GPSDestLongitude\",23:\"GPSDestBearingRef\",24:\"GPSDestBearing\",25:\"GPSDestDistanceRef\",26:\"GPSDestDistance\",27:\"GPSProcessingMethod\",28:\"GPSAreaInformation\",29:\"GPSDateStamp\",30:\"GPSDifferential\",31:\"GPSHPositioningError\"}}},function(t,e){function r(t,e,r,n,i,a){this.global=i,e=e||0,r=r||t.byteLength-e,this.arrayBuffer=t.slice(e,e+r),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(n),this.offset=0,this.parentOffset=(a||0)+e}r.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new r(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new r(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=r},function(t,e){function r(t,e,r,n){this.buffer=t,this.offset=e||0,r=\"number\"==typeof r?r:t.length,this.endPosition=this.offset+r,this.setBigEndian(n)}r.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString(\"utf8\",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new r(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.endPosition-(this.offset+t),new r(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=r},function(t,e,r){(function(e){function r(t){Math.round;var r,n,i,a,o,s=Math.floor,u=new Array(64),f=new Array(64),c=new Array(64),h=new Array(64),l=new Array(65535),p=new Array(65535),d=new Array(64),m=new Array(64),y=[],b=0,g=7,v=new Array(64),w=new Array(64),_=new Array(64),x=new Array(256),E=new Array(2048),D=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],A=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],M=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],F=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],B=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],O=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function I(t,e){for(var r=0,n=0,i=new Array,a=1;a<=16;a++){for(var o=1;o<=t[a];o++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=a,n++,r++;r*=2}return i}function T(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(b|=1<<g),r--,--g<0&&(255==b?(P(255),P(0)):P(b),g=7,b=0)}function P(t){y.push(t)}function L(t){P(t>>8&255),P(255&t)}function N(t,e,r,n,i){for(var a,o=i[0],s=i[240],u=function(t,e){var r,n,i,a,o,s,u,f,c,h,l=0;for(c=0;c<8;++c){r=t[l],n=t[l+1],i=t[l+2],a=t[l+3],o=t[l+4],s=t[l+5],u=t[l+6];var p=r+(f=t[l+7]),m=r-f,y=n+u,b=n-u,g=i+s,v=i-s,w=a+o,_=a-o,x=p+w,E=p-w,D=y+g,k=y-g;t[l]=x+D,t[l+4]=x-D;var A=.707106781*(k+E);t[l+2]=E+A,t[l+6]=E-A;var S=.382683433*((x=_+v)-(k=b+m)),M=.5411961*x+S,F=1.306562965*k+S,C=.707106781*(D=v+b),B=m+C,O=m-C;t[l+5]=O+M,t[l+3]=O-M,t[l+1]=B+F,t[l+7]=B-F,l+=8}for(l=0,c=0;c<8;++c){r=t[l],n=t[l+8],i=t[l+16],a=t[l+24],o=t[l+32],s=t[l+40],u=t[l+48];var I=r+(f=t[l+56]),T=r-f,P=n+u,L=n-u,N=i+s,j=i-s,R=a+o,z=a-o,U=I+R,G=I-R,H=P+N,Z=P-N;t[l]=U+H,t[l+32]=U-H;var q=.707106781*(Z+G);t[l+16]=G+q,t[l+48]=G-q;var W=.382683433*((U=z+j)-(Z=L+T)),Y=.5411961*U+W,V=1.306562965*Z+W,X=.707106781*(H=j+L),J=T+X,K=T-X;t[l+40]=K+Y,t[l+24]=K-Y,t[l+8]=J+V,t[l+56]=J-V,l++}for(c=0;c<64;++c)h=t[c]*e[c],d[c]=h>0?h+.5|0:h-.5|0;return d}(t,e),f=0;f<64;++f)m[D[f]]=u[f];var c=m[0]-r;r=m[0],0==c?T(n[0]):(T(n[p[a=32767+c]]),T(l[a]));for(var h=63;h>0&&0==m[h];h--);if(0==h)return T(o),r;for(var y,b=1;b<=h;){for(var g=b;0==m[b]&&b<=h;++b);var v=b-g;if(v>=16){y=v>>4;for(var w=1;w<=y;++w)T(s);v&=15}a=32767+m[b],T(i[(v<<4)+p[a]]),T(l[a]),b++}return 63!=h&&T(o),r}function j(t){if(t<=0&&(t=1),t>100&&(t=100),o!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=s((e[r]*t+50)/100);n<1?n=1:n>255&&(n=255),u[D[r]]=n}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;a<64;a++){var o=s((i[a]*t+50)/100);o<1?o=1:o>255&&(o=255),f[D[a]]=o}for(var l=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,d=0;d<8;d++)for(var m=0;m<8;m++)c[p]=1/(u[D[p]]*l[d]*l[m]*8),h[p]=1/(f[D[p]]*l[d]*l[m]*8),p++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t}}this.encode=function(t,o){var s;(new Date).getTime();o&&j(o),y=new Array,b=0,g=7,L(65496),L(65504),L(16),P(74),P(70),P(73),P(70),P(0),P(1),P(1),P(0),L(1),L(1),P(0),P(0),void 0!==(s=t.comments)&&s.constructor===Array&&s.forEach((function(t){if(\"string\"==typeof t){L(65534);var e,r=t.length;for(L(r+2),e=0;e<r;e++)P(t.charCodeAt(e))}})),function(t){if(t){L(65505),69===t[0]&&120===t[1]&&105===t[2]&&102===t[3]?L(t.length+2):(L(t.length+5+2),P(69),P(120),P(105),P(102),P(0));for(var e=0;e<t.length;e++)P(t[e])}}(t.exifBuffer),function(){L(65499),L(132),P(0);for(var t=0;t<64;t++)P(u[t]);P(1);for(var e=0;e<64;e++)P(f[e])}(),function(t,e){L(65472),L(17),P(8),L(e),L(t),P(3),P(1),P(17),P(0),P(2),P(17),P(1),P(3),P(17),P(1)}(t.width,t.height),function(){L(65476),L(418),P(0);for(var t=0;t<16;t++)P(k[t+1]);for(var e=0;e<=11;e++)P(A[e]);P(16);for(var r=0;r<16;r++)P(S[r+1]);for(var n=0;n<=161;n++)P(M[n]);P(1);for(var i=0;i<16;i++)P(F[i+1]);for(var a=0;a<=11;a++)P(C[a]);P(17);for(var o=0;o<16;o++)P(B[o+1]);for(var s=0;s<=161;s++)P(O[s])}(),L(65498),L(12),P(3),P(1),P(0),P(2),P(17),P(3),P(17),P(0),P(63),P(0);var l=0,p=0,d=0;b=0,g=7,this.encode.displayName=\"_encode_\";for(var m,x,D,I,R,z,U,G,H,Z=t.data,q=t.width,W=t.height,Y=4*q,V=0;V<W;){for(m=0;m<Y;){for(z=R=Y*V+m,U=-1,G=0,H=0;H<64;H++)z=R+(G=H>>3)*Y+(U=4*(7&H)),V+G>=W&&(z-=Y*(V+1+G-W)),m+U>=Y&&(z-=m+U-Y+4),x=Z[z++],D=Z[z++],I=Z[z++],v[H]=(E[x]+E[D+256|0]+E[I+512|0]>>16)-128,w[H]=(E[x+768|0]+E[D+1024|0]+E[I+1280|0]>>16)-128,_[H]=(E[x+1280|0]+E[D+1536|0]+E[I+1792|0]>>16)-128;l=N(v,c,l,r,i),p=N(w,h,p,n,a),d=N(_,h,d,n,a),m+=32}V+=8}if(g>=0){var X=[];X[1]=g+1,X[0]=(1<<g+1)-1,T(X)}return L(65497),e.from(y)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),r=I(k,A),n=I(F,C),i=I(S,M),a=I(B,O),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)p[32767+n]=r,l[32767+n]=[],l[32767+n][1]=r,l[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)p[32767+i]=r,l[32767+i]=[],l[32767+i][1]=r,l[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)E[t]=19595*t,E[t+256|0]=38470*t,E[t+512|0]=7471*t+32768,E[t+768|0]=-11059*t,E[t+1024|0]=-21709*t,E[t+1280|0]=32768*t+8421375,E[t+1536|0]=-27439*t,E[t+1792|0]=-5329*t}(),j(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new r(e).encode(t,e),width:t.width,height:t.height}}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,r){var n;return n=function(t,e){if(\"object\"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==a(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}var o=function(){\"use strict\";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,r=799,n=3406,i=2276,o=1567,s=3784,u=5793,f=2896;function c(){}function h(t,e){for(var r,n,i=0,a=[],o=16;o>0&&!t[o-1];)o--;a.push({children:[],index:0});var s,u=a[0];for(r=0;r<o;r++){for(n=0;n<t[r];n++){for((u=a.pop()).children[u.index]=e[i];u.index>0;){if(0===a.length)throw new Error(\"Could not recreate Huffman Table\");u=a.pop()}for(u.index++,a.push(u);a.length<=r;)a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}r+1<o&&(a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return a[0].children}function l(e,r,n,i,o,s,u,f,c,h){n.precision,n.samplesPerLine,n.scanLines;var l=n.mcusPerLine,p=n.progressive,d=(n.maxH,n.maxV,r),m=0,y=0;function b(){if(y>0)return y--,m>>y&1;if(255==(m=e[r++])){var t=e[r++];if(t)throw new Error(\"unexpected marker: \"+(m<<8|t).toString(16))}return y=7,m>>>7}function g(t){for(var e,r=t;null!==(e=b());){if(\"number\"==typeof(r=r[e]))return r;if(\"object\"!==a(r))throw new Error(\"invalid huffman sequence\")}return null}function v(t){for(var e=0;t>0;){var r=b();if(null===r)return;e=e<<1|r,t--}return e}function w(t){var e=v(t);return e>=1<<t-1?e:e+(-1<<t)+1}var _=0;var x,E=0;function D(t,e,r,n,i){var a=r%l,o=(r/l|0)*t.v+n,s=a*t.h+i;void 0===t.blocks[o]&&h.tolerantDecoding||e(t,t.blocks[o][s])}function k(t,e,r){var n=r/t.blocksPerLine|0,i=r%t.blocksPerLine;void 0===t.blocks[n]&&h.tolerantDecoding||e(t,t.blocks[n][i])}var A,S,M,F,C,B,O=i.length;B=p?0===s?0===f?function(t,e){var r=g(t.huffmanTableDC),n=0===r?0:w(r)<<c;e[0]=t.pred+=n}:function(t,e){e[0]|=b()<<c}:0===f?function(e,r){if(_>0)_--;else for(var n=s,i=u;n<=i;){var a=g(e.huffmanTableAC),o=15&a,f=a>>4;if(0!==o)r[t[n+=f]]=w(o)*(1<<c),n++;else{if(f<15){_=v(f)+(1<<f)-1;break}n+=16}}}:function(e,r){for(var n=s,i=u,a=0;n<=i;){var o=t[n],f=r[o]<0?-1:1;switch(E){case 0:var h=g(e.huffmanTableAC),l=15&h;if(a=h>>4,0===l)a<15?(_=v(a)+(1<<a),E=4):(a=16,E=1);else{if(1!==l)throw new Error(\"invalid ACn encoding\");x=w(l),E=a?2:3}continue;case 1:case 2:r[o]?r[o]+=(b()<<c)*f:0==--a&&(E=2==E?3:0);break;case 3:r[o]?r[o]+=(b()<<c)*f:(r[o]=x<<c,E=0);break;case 4:r[o]&&(r[o]+=(b()<<c)*f)}n++}4===E&&0==--_&&(E=0)}:function(e,r){var n=g(e.huffmanTableDC),i=0===n?0:w(n);r[0]=e.pred+=i;for(var a=1;a<64;){var o=g(e.huffmanTableAC),s=15&o,u=o>>4;if(0!==s)r[t[a+=u]]=w(s),a++;else{if(u<15)break;a+=16}}};var I,T,P,L,N=0;for(T=1==O?i[0].blocksPerLine*i[0].blocksPerColumn:l*n.mcusPerColumn,o||(o=T);N<T;){for(S=0;S<O;S++)i[S].pred=0;if(_=0,1==O)for(A=i[0],C=0;C<o;C++)k(A,B,N),N++;else for(C=0;C<o;C++){for(S=0;S<O;S++)for(P=(A=i[S]).h,L=A.v,M=0;M<L;M++)for(F=0;F<P;F++)D(A,B,N,M,F);if(++N===T)break}if(N===T)do{if(255===e[r]&&0!==e[r+1])break;r+=1}while(r<e.length-2);if(y=0,(I=e[r]<<8|e[r+1])<65280)throw new Error(\"marker was not found\");if(!(I>=65488&&I<=65495))break;r+=2}return r-d}function p(t,a){var c,h,l=[],p=a.blocksPerLine,d=a.blocksPerColumn,m=p<<3,y=new Int32Array(64),g=new Uint8Array(64);function v(t,c,h){var l,p,d,m,y,b,g,v,w,_,x=a.quantizationTable,E=h;for(_=0;_<64;_++)E[_]=t[_]*x[_];for(_=0;_<8;++_){var D=8*_;0!=E[1+D]||0!=E[2+D]||0!=E[3+D]||0!=E[4+D]||0!=E[5+D]||0!=E[6+D]||0!=E[7+D]?(l=u*E[0+D]+128>>8,p=u*E[4+D]+128>>8,d=E[2+D],m=E[6+D],y=f*(E[1+D]-E[7+D])+128>>8,v=f*(E[1+D]+E[7+D])+128>>8,b=E[3+D]<<4,g=E[5+D]<<4,w=l-p+1>>1,l=l+p+1>>1,p=w,w=d*s+m*o+128>>8,d=d*o-m*s+128>>8,m=w,w=y-g+1>>1,y=y+g+1>>1,g=w,w=v+b+1>>1,b=v-b+1>>1,v=w,w=l-m+1>>1,l=l+m+1>>1,m=w,w=p-d+1>>1,p=p+d+1>>1,d=w,w=y*i+v*n+2048>>12,y=y*n-v*i+2048>>12,v=w,w=b*r+g*e+2048>>12,b=b*e-g*r+2048>>12,g=w,E[0+D]=l+v,E[7+D]=l-v,E[1+D]=p+g,E[6+D]=p-g,E[2+D]=d+b,E[5+D]=d-b,E[3+D]=m+y,E[4+D]=m-y):(w=u*E[0+D]+512>>10,E[0+D]=w,E[1+D]=w,E[2+D]=w,E[3+D]=w,E[4+D]=w,E[5+D]=w,E[6+D]=w,E[7+D]=w)}for(_=0;_<8;++_){var k=_;0!=E[8+k]||0!=E[16+k]||0!=E[24+k]||0!=E[32+k]||0!=E[40+k]||0!=E[48+k]||0!=E[56+k]?(l=u*E[0+k]+2048>>12,p=u*E[32+k]+2048>>12,d=E[16+k],m=E[48+k],y=f*(E[8+k]-E[56+k])+2048>>12,v=f*(E[8+k]+E[56+k])+2048>>12,b=E[24+k],g=E[40+k],w=l-p+1>>1,l=l+p+1>>1,p=w,w=d*s+m*o+2048>>12,d=d*o-m*s+2048>>12,m=w,w=y-g+1>>1,y=y+g+1>>1,g=w,w=v+b+1>>1,b=v-b+1>>1,v=w,w=l-m+1>>1,l=l+m+1>>1,m=w,w=p-d+1>>1,p=p+d+1>>1,d=w,w=y*i+v*n+2048>>12,y=y*n-v*i+2048>>12,v=w,w=b*r+g*e+2048>>12,b=b*e-g*r+2048>>12,g=w,E[0+k]=l+v,E[56+k]=l-v,E[8+k]=p+g,E[48+k]=p-g,E[16+k]=d+b,E[40+k]=d-b,E[24+k]=m+y,E[32+k]=m-y):(w=u*h[_+0]+8192>>14,E[0+k]=w,E[8+k]=w,E[16+k]=w,E[24+k]=w,E[32+k]=w,E[40+k]=w,E[48+k]=w,E[56+k]=w)}for(_=0;_<64;++_){var A=128+(E[_]+8>>4);c[_]=A<0?0:A>255?255:A}}b(m*d*8);for(var w=0;w<d;w++){var _=w<<3;for(c=0;c<8;c++)l.push(new Uint8Array(m));for(var x=0;x<p;x++){v(a.blocks[w][x],g,y);var E=0,D=x<<3;for(h=0;h<8;h++){var k=l[_+h];for(c=0;c<8;c++)k[D+c]=g[E++]}}}return l}function d(t){return t<0?0:t>255?255:t}c.prototype={load:function(t){var e=new XMLHttpRequest;e.open(\"GET\",t,!0),e.responseType=\"arraybuffer\",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var r=1e3*this.opts.maxResolutionInMP*1e3,n=0;e.length;function i(){var t=e[n]<<8|e[n+1];return n+=2,t}function a(){var t=i(),r=e.subarray(n,n+t-2);return n+=r.length,r}function o(t){var e,r,n=1,i=1;for(r in t.components)t.components.hasOwnProperty(r)&&(n<(e=t.components[r]).h&&(n=e.h),i<e.v&&(i=e.v));var a=Math.ceil(t.samplesPerLine/8/n),o=Math.ceil(t.scanLines/8/i);for(r in t.components)if(t.components.hasOwnProperty(r)){e=t.components[r];var s=Math.ceil(Math.ceil(t.samplesPerLine/8)*e.h/n),u=Math.ceil(Math.ceil(t.scanLines/8)*e.v/i),f=a*e.h,c=o*e.v,h=[];b(256*(c*f));for(var l=0;l<c;l++){for(var p=[],d=0;d<f;d++)p.push(new Int32Array(64));h.push(p)}e.blocksPerLine=s,e.blocksPerColumn=u,e.blocks=h}t.maxH=n,t.maxV=i,t.mcusPerLine=a,t.mcusPerColumn=o}var s,u,f=null,c=null,d=[],m=[],y=[],g=[],v=i(),w=-1;if(this.comments=[],65496!=v)throw new Error(\"SOI not found\");for(v=i();65497!=v;){switch(v){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var _=a();if(65534===v){var x=String.fromCharCode.apply(null,_);this.comments.push(x)}65504===v&&74===_[0]&&70===_[1]&&73===_[2]&&70===_[3]&&0===_[4]&&(f={version:{major:_[5],minor:_[6]},densityUnits:_[7],xDensity:_[8]<<8|_[9],yDensity:_[10]<<8|_[11],thumbWidth:_[12],thumbHeight:_[13],thumbData:_.subarray(14,14+3*_[12]*_[13])}),65505===v&&69===_[0]&&120===_[1]&&105===_[2]&&102===_[3]&&0===_[4]&&(this.exifBuffer=_.subarray(5,_.length)),65518===v&&65===_[0]&&100===_[1]&&111===_[2]&&98===_[3]&&101===_[4]&&0===_[5]&&(c={version:_[6],flags0:_[7]<<8|_[8],flags1:_[9]<<8|_[10],transformCode:_[11]});break;case 65499:for(var E=i()+n-2;n<E;){var D=e[n++];b(256);var k=new Int32Array(64);if(D>>4){if(D>>4!=1)throw new Error(\"DQT: invalid table spec\");for(V=0;V<64;V++){k[t[V]]=i()}}else for(V=0;V<64;V++){k[t[V]]=e[n++]}d[15&D]=k}break;case 65472:case 65473:case 65474:i(),(s={}).extended=65473===v,s.progressive=65474===v,s.precision=e[n++],s.scanLines=i(),s.samplesPerLine=i(),s.components={},s.componentsOrder=[];var A=s.scanLines*s.samplesPerLine;if(A>r){var S=Math.ceil((A-r)/1e6);throw new Error(\"maxResolutionInMP limit exceeded by \".concat(S,\"MP\"))}var M,F=e[n++];for(W=0;W<F;W++){M=e[n];var C=e[n+1]>>4,B=15&e[n+1],O=e[n+2];if(C<=0||B<=0)throw new Error(\"Invalid sampling factor, expected values above 0\");s.componentsOrder.push(M),s.components[M]={h:C,v:B,quantizationIdx:O},n+=3}o(s),m.push(s);break;case 65476:var I=i();for(W=2;W<I;){var T=e[n++],P=new Uint8Array(16),L=0;for(V=0;V<16;V++,n++)L+=P[V]=e[n];b(16+L);var N=new Uint8Array(L);for(V=0;V<L;V++,n++)N[V]=e[n];W+=17+L,(T>>4?y:g)[15&T]=h(P,N)}break;case 65501:i(),u=i();break;case 65500:i(),i();break;case 65498:i();var j=e[n++],R=[];for(W=0;W<j;W++){X=s.components[e[n++]];var z=e[n++];X.huffmanTableDC=g[z>>4],X.huffmanTableAC=y[15&z],R.push(X)}var U=e[n++],G=e[n++],H=e[n++],Z=l(e,n,s,R,u,U,G,H>>4,15&H,this.opts);n+=Z;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}if(224===v||225==v){if(-1!==w)throw new Error(\"first unknown JPEG marker at offset \".concat(w.toString(16),\", second unknown JPEG marker \").concat(v.toString(16),\" at offset \").concat((n-1).toString(16)));w=n-1;var q=i();if(255===e[n+q-2]){n+=q-2;break}}throw new Error(\"unknown JPEG marker \"+v.toString(16))}v=i()}if(1!=m.length)throw new Error(\"only single frame JPEGs supported\");for(var W=0;W<m.length;W++){var Y=m[W].components;for(var V in Y)Y[V].quantizationTable=d[Y[V].quantizationIdx],delete Y[V].quantizationIdx}this.width=s.samplesPerLine,this.height=s.scanLines,this.jfif=f,this.adobe=c,this.components=[];for(W=0;W<s.componentsOrder.length;W++){var X=s.components[s.componentsOrder[W]];this.components.push({lines:p(0,X),scaleX:X.h/s.maxH,scaleY:X.v/s.maxV})}},getData:function(t,e){var r,n,i,a,o,s,u,f,c,h,l,p,m,y,g,v,w,_,x,E,D,k=this.width/t,A=this.height/e,S=0,M=t*e*this.components.length;b(M);var F=new Uint8Array(M);switch(this.components.length){case 1:for(r=this.components[0],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*A],c=0;c<t;c++)l=o[0|c*r.scaleX*k],F[S++]=l;break;case 2:for(r=this.components[0],n=this.components[1],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*A],s=n.lines[0|h*n.scaleY*A],c=0;c<t;c++)l=o[0|c*r.scaleX*k],F[S++]=l,l=s[0|c*n.scaleX*k],F[S++]=l;break;case 3:for(D=!0,this.adobe&&this.adobe.transformCode?D=!0:void 0!==this.opts.colorTransform&&(D=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*A],s=n.lines[0|h*n.scaleY*A],u=i.lines[0|h*i.scaleY*A],c=0;c<t;c++)D?(l=o[0|c*r.scaleX*k],p=s[0|c*n.scaleX*k],_=d(l+1.402*((m=u[0|c*i.scaleX*k])-128)),x=d(l-.3441363*(p-128)-.71413636*(m-128)),E=d(l+1.772*(p-128))):(_=o[0|c*r.scaleX*k],x=s[0|c*n.scaleX*k],E=u[0|c*i.scaleX*k]),F[S++]=_,F[S++]=x,F[S++]=E;break;case 4:if(!this.adobe)throw new Error(\"Unsupported color mode (4 components)\");for(D=!1,this.adobe&&this.adobe.transformCode?D=!0:void 0!==this.opts.colorTransform&&(D=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],a=this.components[3],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*A],s=n.lines[0|h*n.scaleY*A],u=i.lines[0|h*i.scaleY*A],f=a.lines[0|h*a.scaleY*A],c=0;c<t;c++)D?(l=o[0|c*r.scaleX*k],p=s[0|c*n.scaleX*k],m=u[0|c*i.scaleX*k],y=f[0|c*a.scaleX*k],g=255-d(l+1.402*(m-128)),v=255-d(l-.3441363*(p-128)-.71413636*(m-128)),w=255-d(l+1.772*(p-128))):(g=o[0|c*r.scaleX*k],v=s[0|c*n.scaleX*k],w=u[0|c*i.scaleX*k],y=f[0|c*a.scaleX*k]),F[S++]=255-g,F[S++]=255-v,F[S++]=255-w,F[S++]=255-y;break;default:throw new Error(\"Unsupported color mode\")}return F},copyToImageData:function(t,e){var r,n,i,a,o,s,u,f,c,h=t.width,l=t.height,p=t.data,m=this.getData(h,l),y=0,b=0;switch(this.components.length){case 1:for(n=0;n<l;n++)for(r=0;r<h;r++)i=m[y++],p[b++]=i,p[b++]=i,p[b++]=i,e&&(p[b++]=255);break;case 3:for(n=0;n<l;n++)for(r=0;r<h;r++)u=m[y++],f=m[y++],c=m[y++],p[b++]=u,p[b++]=f,p[b++]=c,e&&(p[b++]=255);break;case 4:for(n=0;n<l;n++)for(r=0;r<h;r++)o=m[y++],s=m[y++],i=m[y++],u=255-d(o*(1-(a=m[y++])/255)+a),f=255-d(s*(1-a/255)+a),c=255-d(i*(1-a/255)+a),p[b++]=u,p[b++]=f,p[b++]=c,e&&(p[b++]=255);break;default:throw new Error(\"Unsupported color mode\")}}};var m=0,y=0;function b(){var t=m+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0);if(t>y){var e=Math.ceil((t-y)/1024/1024);throw new Error(\"maxMemoryUsageInMB limit exceeded by at least \".concat(e,\"MB\"))}m=t}return c.resetMaxMemoryUsage=function(t){m=0,y=t},c.getBytesAllocated=function(){return m},c.requestMemoryAllocation=b,c}();t.exports=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n(n({},{colorTransform:void 0,useTArray:!1,formatAsRGBA:!0,tolerantDecoding:!0,maxResolutionInMP:100,maxMemoryUsageInMB:512}),r),a=new Uint8Array(t),s=new o;s.opts=i,o.resetMaxMemoryUsage(1024*i.maxMemoryUsageInMB*1024),s.parse(a);var u=i.formatAsRGBA?4:3,f=s.width*s.height*u;try{o.requestMemoryAllocation(f);var c={width:s.width,height:s.height,exifBuffer:s.exifBuffer,data:i.useTArray?new Uint8Array(f):e.alloc(f)};s.comments.length>0&&(c.comments=s.comments)}catch(t){if(t instanceof RangeError)throw new Error(\"Could not allocate enough memory for the image. Required: \"+f);if(t instanceof ReferenceError&&\"Buffer is not defined\"===t.message)throw new Error(\"Buffer is not globally defined in this environment. Consider setting useTArray to true\");throw t}return s.copyToImageData(c,i.formatAsRGBA),c}}).call(this,r(2).Buffer)},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){return t&&\"object\"===r(t)&&\"function\"==typeof t.copy&&\"function\"==typeof t.fill&&\"function\"==typeof t.readUInt8}},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==r.call(t)}},function(t,e){},function(t,e,r){\"use strict\";var n=r(51).Buffer,i=r(149);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return\"\";for(var e=this.head,r=\"\"+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e,r,i,a=n.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,r=a,i=s,e.copy(r,i),s+=o.data.length,o=o.next;return a},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+\" \"+t})},function(t,e){},function(t,e,r){(function(t,e){!function(t,r){\"use strict\";if(!t.setImmediate){var n,i,a,o,s,u=1,f={},c=!1,h=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,\"[object process]\"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage(\"\",\"*\"),t.onmessage=r,e}}()?t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(t){d(t.data)},n=function(t){a.port2.postMessage(t)}):h&&\"onreadystatechange\"in h.createElement(\"script\")?(i=h.documentElement,n=function(t){var e=h.createElement(\"script\");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):n=function(t){setTimeout(d,0,t)}:(o=\"setImmediate$\"+Math.random()+\"$\",s=function(e){e.source===t&&\"string\"==typeof e.data&&0===e.data.indexOf(o)&&d(+e.data.slice(o.length))},t.addEventListener?t.addEventListener(\"message\",s,!1):t.attachEvent(\"onmessage\",s),n=function(e){t.postMessage(o+e,\"*\")}),l.setImmediate=function(t){\"function\"!=typeof t&&(t=new Function(\"\"+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return f[u]=i,n(u),u++},l.clearImmediate=p}function p(t){delete f[t]}function d(t){if(c)setTimeout(d,0,t);else{var e=f[t];if(e){c=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(r,n)}}(e)}finally{p(t),c=!1}}}}}(\"undefined\"==typeof self?void 0===t?this:t:self)}).call(this,r(10),r(7))},function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&\"true\"===String(r).toLowerCase()}t.exports=function(t,e){if(r(\"noDeprecation\"))return t;var n=!1;return function(){if(!n){if(r(\"throwDeprecation\"))throw new Error(e);r(\"traceDeprecation\")&&console.trace(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(10))},function(t,e,r){var n=r(2),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(a(n,e),e.Buffer=o),a(i,o),o.from=function(t,e,r){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,r)},o.alloc=function(t,e,r){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var n=i(t);return void 0!==e?\"string\"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},o.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return n.SlowBuffer(t)}},function(t,e,r){\"use strict\";t.exports=a;var n=r(74),i=Object.create(r(27));function a(t){if(!(this instanceof a))return new a(t);n.call(this,t)}i.inherits=r(24),i.inherits(a,n),a.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){t.exports=r(52)},function(t,e,r){t.exports=r(18)},function(t,e,r){t.exports=r(50).Transform},function(t,e,r){t.exports=r(50).PassThrough},function(t,e,r){\"use strict\";var n=r(14),i=r(28),a=r(81),o=r(186),s=r(85),u=r(87),f=r(88),c=t.exports=function(t){a.call(this),this._parser=new s(t,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,\"gamma\"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=t,this.writable=!0,this._parser.start()};n.inherits(c,a),c.prototype._handleError=function(t){this.emit(\"error\",t),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on(\"error\",(function(){}))),this.errord=!0},c.prototype._inflateData=function(t){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i.createInflate(),this._inflate.on(\"error\",this.emit.bind(this,\"error\")),this._filter.on(\"complete\",this._complete.bind(this)),this._inflate.pipe(this._filter);else{var e=(1+(this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3))*this._bitmapInfo.height,r=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:r});var n=e,a=this.emit.bind(this,\"error\");this._inflate.on(\"error\",(function(t){n&&a(t)})),this._filter.on(\"complete\",this._complete.bind(this));var o=this._filter.write.bind(this._filter);this._inflate.on(\"data\",(function(t){n&&(t.length>n&&(t=t.slice(0,n)),n-=t.length,o(t))})),this._inflate.on(\"end\",this._filter.end.bind(this._filter))}this._inflate.write(t)},c.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new o(this._bitmapInfo)},c.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},c.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},c.prototype._simpleTransparency=function(){this._metaData.alpha=!0},c.prototype._headersFinished=function(){this.emit(\"metadata\",this._metaData)},c.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit(\"error\",\"No Inflate block\"))},c.prototype._complete=function(t){if(!this.errord){var e;try{var r=u.dataToBitMap(t,this._bitmapInfo);e=f(r,this._bitmapInfo,this._options.skipRescale),r=null}catch(t){return void this._handleError(t)}this.emit(\"parsed\",e)}}},function(t,e,r){\"use strict\";(function(t,n){var i=r(53),a=r(178),o=r(179),s=r(182),u=r(185);for(var f in u)e[f]=u[f];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;function c(t){if(\"number\"!=typeof t||t<e.DEFLATE||t>e.UNZIP)throw new TypeError(\"Bad argument\");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}c.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,\"close before init\"),i(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?o.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||s.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},c.prototype.write=function(t,e,r,n,i,a,o){return this._write(!0,t,e,r,n,i,a,o)},c.prototype.writeSync=function(t,e,r,n,i,a,o){return this._write(!1,t,e,r,n,i,a,o)},c.prototype._write=function(r,a,o,s,u,f,c,h){if(i.equal(arguments.length,8),i(this.init_done,\"write before init\"),i(this.mode!==e.NONE,\"already finalized\"),i.equal(!1,this.write_in_progress,\"write already in progress\"),i.equal(!1,this.pending_close,\"close is pending\"),this.write_in_progress=!0,i.equal(!1,void 0===a,\"must provide flush value\"),this.write_in_progress=!0,a!==e.Z_NO_FLUSH&&a!==e.Z_PARTIAL_FLUSH&&a!==e.Z_SYNC_FLUSH&&a!==e.Z_FULL_FLUSH&&a!==e.Z_FINISH&&a!==e.Z_BLOCK)throw new Error(\"Invalid flush value\");if(null==o&&(o=t.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=o,this.strm.next_in=s,this.strm.avail_out=h,this.strm.output=f,this.strm.next_out=c,this.flush=a,!r)return this._process(),this._checkError()?this._afterSync():void 0;var l=this;return n.nextTick((function(){l._process(),l._after()})),this},c.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},c.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error(\"invalid number of gzip magic number bytes read\")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error(\"Unknown mode \"+this.mode)}},c.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error(\"unexpected end of file\"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error(\"Missing dictionary\"):this._error(\"Bad dictionary\"),!1;default:return this._error(\"Zlib error\"),!1}return!0},c.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},c.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},c.prototype.init=function(t,r,n,a,o){i(4===arguments.length||5===arguments.length,\"init(windowBits, level, memLevel, strategy, [dictionary])\"),i(t>=8&&t<=15,\"invalid windowBits\"),i(r>=-1&&r<=9,\"invalid compression level\"),i(n>=1&&n<=9,\"invalid memlevel\"),i(a===e.Z_FILTERED||a===e.Z_HUFFMAN_ONLY||a===e.Z_RLE||a===e.Z_FIXED||a===e.Z_DEFAULT_STRATEGY,\"invalid strategy\"),this._init(r,t,n,a,o),this._setDictionary()},c.prototype.params=function(){throw new Error(\"deflateParams Not supported\")},c.prototype.reset=function(){this._reset(),this._setDictionary()},c.prototype._init=function(t,r,n,i,u){switch(this.level=t,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new a,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error(\"Unknown mode \"+this.mode)}this.err!==e.Z_OK&&this._error(\"Init error\"),this.dictionary=u,this.write_in_progress=!1,this.init_done=!0},c.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error(\"Failed to set dictionary\")}},c.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=o.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error(\"Failed to reset stream\")},e.Zlib=c}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";var n=r(161);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t=\"abcdefghijklmnopqrst\",e=t.split(\"\"),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),a=\"\";for(var o in i)a+=o;return t!==a}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,\"xy\")}catch(e){return\"y\"===t[1]}return!1}()?n:Object.assign:n}},function(t,e,r){\"use strict\";var n=r(162),i=r(76)(),a=r(164),o=Object,s=a(\"Array.prototype.push\"),u=a(\"Object.prototype.propertyIsEnumerable\"),f=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError(\"target must be an object\");var r=o(t);if(1===arguments.length)return r;for(var a=1;a<arguments.length;++a){var c=o(arguments[a]),h=n(c),l=i&&(Object.getOwnPropertySymbols||f);if(l)for(var p=l(c),d=0;d<p.length;++d){var m=p[d];u(c,m)&&s(h,m)}for(var y=0;y<h.length;++y){var b=h[y];if(u(c,b)){var g=c[b];r[b]=g}}}return r}},function(t,e,r){\"use strict\";var n=Array.prototype.slice,i=r(75),a=Object.keys,o=a?function(t){return a(t)}:r(163),s=Object.keys;o.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?s(n.call(t)):s(t)})}else Object.keys=o;return Object.keys||o},t.exports=o},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i;if(!Object.keys){var a=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(75),u=Object.prototype.propertyIsEnumerable,f=!u.call({toString:null},\"toString\"),c=u.call((function(){}),\"prototype\"),h=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],l=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(\"undefined\"==typeof window)return!1;for(var t in window)try{if(!p[\"$\"+t]&&a.call(window,t)&&null!==window[t]&&\"object\"===n(window[t]))try{l(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();i=function(t){var e=null!==t&&\"object\"===n(t),r=\"[object Function]\"===o.call(t),i=s(t),u=e&&\"[object String]\"===o.call(t),p=[];if(!e&&!r&&!i)throw new TypeError(\"Object.keys called on a non-object\");var m=c&&r;if(u&&t.length>0&&!a.call(t,0))for(var y=0;y<t.length;++y)p.push(String(y));if(i&&t.length>0)for(var b=0;b<t.length;++b)p.push(String(b));else for(var g in t)m&&\"prototype\"===g||!a.call(t,g)||p.push(String(g));if(f)for(var v=function(t){if(\"undefined\"==typeof window||!d)return l(t);try{return l(t)}catch(t){return!1}}(t),w=0;w<h.length;++w)v&&\"constructor\"===h[w]||!a.call(t,h[w])||p.push(h[w]);return p}}t.exports=i},function(t,e,r){\"use strict\";var n=r(29),i=r(174),a=i(n(\"String.prototype.indexOf\"));t.exports=function(t,e){var r=n(t,!!e);return\"function\"==typeof r&&a(t,\".prototype.\")>-1?i(r):r}},function(t,e,r){\"use strict\";t.exports=Error},function(t,e,r){\"use strict\";t.exports=EvalError},function(t,e,r){\"use strict\";t.exports=RangeError},function(t,e,r){\"use strict\";t.exports=ReferenceError},function(t,e,r){\"use strict\";t.exports=URIError},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Symbol&&Symbol,a=r(76);t.exports=function(){return\"function\"==typeof i&&(\"function\"==typeof Symbol&&(\"symbol\"===n(i(\"foo\"))&&(\"symbol\"===n(Symbol(\"bar\"))&&a())))}},function(t,e,r){\"use strict\";var n={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!(n instanceof i)}},function(t,e,r){\"use strict\";var n=Object.prototype.toString,i=Math.max,a=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var e=this;if(\"function\"!=typeof e||\"[object Function]\"!==n.apply(e))throw new TypeError(\"Function.prototype.bind called on incompatible \"+e);for(var r,o=function(t,e){for(var r=[],n=e||0,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r}(arguments,1),s=i(0,e.length-o.length),u=[],f=0;f<s;f++)u[f]=\"$\"+f;if(r=Function(\"binder\",\"return function (\"+function(t,e){for(var r=\"\",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(u,\",\")+\"){ return binder.apply(this,arguments); }\")((function(){if(this instanceof r){var n=e.apply(this,a(o,arguments));return Object(n)===n?n:this}return e.apply(t,a(o,arguments))})),e.prototype){var c=function(){};c.prototype=e.prototype,r.prototype=new c,c.prototype=null}return r}},function(t,e,r){\"use strict\";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,a=r(54);t.exports=a.call(n,i)},function(t,e,r){\"use strict\";var n=r(54),i=r(29),a=r(175),o=r(40),s=i(\"%Function.prototype.apply%\"),u=i(\"%Function.prototype.call%\"),f=i(\"%Reflect.apply%\",!0)||n.call(u,s),c=r(55),h=i(\"%Math.max%\");t.exports=function(t){if(\"function\"!=typeof t)throw new o(\"a function is required\");var e=f(n,u,arguments);return a(e,1+h(0,t.length-(arguments.length-1)),!0)};var l=function(){return f(n,s,arguments)};c?c(t.exports,\"apply\",{value:l}):t.exports.apply=l},function(t,e,r){\"use strict\";var n=r(29),i=r(176),a=r(177)(),o=r(78),s=r(40),u=n(\"%Math.floor%\");t.exports=function(t,e){if(\"function\"!=typeof t)throw new s(\"`fn` is not a function\");if(\"number\"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new s(\"`length` must be a positive 32-bit integer\");var r=arguments.length>2&&!!arguments[2],n=!0,f=!0;if(\"length\"in t&&o){var c=o(t,\"length\");c&&!c.configurable&&(n=!1),c&&!c.writable&&(f=!1)}return(n||f||!r)&&(a?i(t,\"length\",e,!0,!0):i(t,\"length\",e)),t}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(55),a=r(77),o=r(40),s=r(78);t.exports=function(t,e,r){if(!t||\"object\"!==n(t)&&\"function\"!=typeof t)throw new o(\"`obj` must be an object or a function`\");if(\"string\"!=typeof e&&\"symbol\"!==n(e))throw new o(\"`property` must be a string or a symbol`\");if(arguments.length>3&&\"boolean\"!=typeof arguments[3]&&null!==arguments[3])throw new o(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&\"boolean\"!=typeof arguments[4]&&null!==arguments[4])throw new o(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&\"boolean\"!=typeof arguments[5]&&null!==arguments[5])throw new o(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&\"boolean\"!=typeof arguments[6])throw new o(\"`loose`, if provided, must be a boolean\");var u=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,h=arguments.length>6&&arguments[6],l=!!s&&s(t,e);if(i)i(t,e,{configurable:null===c&&l?l.configurable:!c,enumerable:null===u&&l?l.enumerable:!u,value:r,writable:null===f&&l?l.writable:!f});else{if(!h&&(u||f||c))throw new a(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\");t[e]=r}}},function(t,e,r){\"use strict\";var n=r(55),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],\"length\",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,r){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){\"use strict\";var n,i=r(41),a=r(180),o=r(79),s=r(80),u=r(181),f=0,c=4,h=0,l=-2,p=-1,d=4,m=2,y=8,b=9,g=286,v=30,w=19,_=2*g+1,x=15,E=3,D=258,k=D+E+1,A=42,S=103,M=113,F=666,C=1,B=2,O=3,I=4;function T(t,e){return t.msg=u[e],e}function P(t){return(t<<1)-(t>4?9:0)}function L(t){for(var e=t.length;--e>=0;)t[e]=0}function N(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function j(t,e){a._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,N(t.strm)}function R(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-k?t.strstart-(t.w_size-k):0,f=t.window,c=t.w_mask,h=t.prev,l=t.strstart+D,p=f[a+o-1],d=f[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(f[(r=e)+o]===d&&f[r+o-1]===p&&f[r]===f[a]&&f[++r]===f[a+1]){a+=2,r++;do{}while(f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&a<l);if(n=D-(l-a),a=l-D,n>o){if(t.match_start=e,o=n,n>=s)break;p=f[a+o-1],d=f[a+o]}}}while((e=h[e&c])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead}function G(t){var e,r,n,a,u,f,c,h,l,p,d=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-k)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--r);e=r=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--r);a+=d}if(0===t.strm.avail_in)break;if(f=t.strm,c=t.window,h=t.strstart+t.lookahead,l=a,p=void 0,(p=f.avail_in)>l&&(p=l),r=0===p?0:(f.avail_in-=p,i.arraySet(c,f.input,f.next_in,p,h),1===f.state.wrap?f.adler=o(f.adler,c,p,h):2===f.state.wrap&&(f.adler=s(f.adler,c,p,h)),f.next_in+=p,f.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=E)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+E-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<k&&0!==t.strm.avail_in)}function H(t,e){for(var r,n;;){if(t.lookahead<k){if(G(t),t.lookahead<k&&e===f)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-k&&(t.match_length=U(t,r)),t.match_length>=E)if(n=a._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=t.strstart<E-1?t.strstart:E-1,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}function Z(t,e){for(var r,n,i;;){if(t.lookahead<k){if(G(t),t.lookahead<k&&e===f)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=E-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-k&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===E&&t.strstart-t.match_start>4096)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-E,n=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=E-1,t.strstart++,n&&(j(t,!1),0===t.strm.avail_out))return C}else if(t.match_available){if((n=a._tr_tally(t,0,t.window[t.strstart-1]))&&j(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return C}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=a._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}function q(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*v+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*g+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*g+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?A:M,t.adler=2===e.wrap?0:1,e.last_flush=f,a._tr_init(e),h):T(t,l)}function V(t){var e,r=Y(t);return r===h&&((e=t.state).window_size=2*e.w_size,L(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=E-1,e.match_available=0,e.ins_h=0),r}function X(t,e,r,n,a,o){if(!t)return l;var s=1;if(e===p&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),a<1||a>b||r!==y||n<8||n>15||e<0||e>9||o<0||o>d)return T(t,l);8===n&&(n=9);var u=new W;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=a+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+E-1)/E),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<a+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=o,u.method=r,V(t)}n=[new q(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(G(t),0===t.lookahead&&e===f)return C;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,j(t,!1),0===t.strm.avail_out))return C;if(t.strstart-t.block_start>=t.w_size-k&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):(t.strstart>t.block_start&&(j(t,!1),t.strm.avail_out),C)})),new q(4,4,8,4,H),new q(4,5,16,8,H),new q(4,6,32,32,H),new q(4,4,16,16,Z),new q(8,16,32,32,Z),new q(8,16,128,128,Z),new q(8,32,128,256,Z),new q(32,128,258,1024,Z),new q(32,258,258,4096,Z)],e.deflateInit=function(t,e){return X(t,e,y,15,8,0)},e.deflateInit2=X,e.deflateReset=V,e.deflateResetKeep=Y,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?l:(t.state.gzhead=e,h):l},e.deflate=function(t,e){var r,i,o,u;if(!t||!t.state||e>5||e<0)return t?T(t,l):l;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===F&&e!==c)return T(t,0===t.avail_out?-5:l);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===A)if(2===i.wrap)t.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,3),i.status=M);else{var p=y+(i.w_bits-8<<4)<<8;p|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(p|=32),p+=31-p%31,i.status=M,z(i,p),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=S)}else i.status=S;if(i.status===S&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(t),i.pending+2<=i.pending_buf_size&&(R(i,255&t.adler),R(i,t.adler>>8&255),t.adler=0,i.status=M)):i.status=M),0!==i.pending){if(N(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&P(e)<=P(r)&&e!==c)return T(t,-5);if(i.status===F&&0!==t.avail_in)return T(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==f&&i.status!==F){var d=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(G(t),0===t.lookahead)){if(e===f)return C;break}if(t.match_length=0,r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}(i,e):3===i.strategy?function(t,e){for(var r,n,i,o,s=t.window;;){if(t.lookahead<=D){if(G(t),t.lookahead<=D&&e===f)return C;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){o=t.strstart+D;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);t.match_length=D-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=a._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}(i,e):n[i.level].func(i,e);if(d!==O&&d!==I||(i.status=F),d===C||d===O)return 0===t.avail_out&&(i.last_flush=-1),h;if(d===B&&(1===e?a._tr_align(i):5!==e&&(a._tr_stored_block(i,0,0,!1),3===e&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),N(t),0===t.avail_out))return i.last_flush=-1,h}return e!==c?h:i.wrap<=0?1:(2===i.wrap?(R(i,255&t.adler),R(i,t.adler>>8&255),R(i,t.adler>>16&255),R(i,t.adler>>24&255),R(i,255&t.total_in),R(i,t.total_in>>8&255),R(i,t.total_in>>16&255),R(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),N(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?h:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==A&&69!==e&&73!==e&&91!==e&&e!==S&&e!==M&&e!==F?T(t,l):(t.state=null,e===M?T(t,-3):h):l},e.deflateSetDictionary=function(t,e){var r,n,a,s,u,f,c,p,d=e.length;if(!t||!t.state)return l;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==A||r.lookahead)return l;for(1===s&&(t.adler=o(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,e,d-r.w_size,r.w_size,0),e=p,d=r.w_size),u=t.avail_in,f=t.next_in,c=t.input,t.avail_in=d,t.next_in=0,t.input=e,G(r);r.lookahead>=E;){n=r.strstart,a=r.lookahead-(E-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+E-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--a);r.strstart=n,r.lookahead=E-1,G(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=E-1,r.match_available=0,t.next_in=f,t.input=c,t.avail_in=u,r.wrap=s,h},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,r){\"use strict\";var n=r(41),i=0,a=1;function o(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,f=256,c=f+1+u,h=30,l=19,p=2*c+1,d=15,m=16,y=7,b=256,g=16,v=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(c+2));o(k);var A=new Array(2*h);o(A);var S=new Array(512);o(S);var M=new Array(256);o(M);var F=new Array(u);o(F);var C,B,O,I=new Array(h);function T(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function P(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function L(t){return t<256?S[t]:S[256+(t>>>7)]}function N(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function j(t,e,r){t.bi_valid>m-r?(t.bi_buf|=e<<t.bi_valid&65535,N(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=r-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function R(t,e,r){j(t,r[2*e],r[2*e+1])}function z(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function U(t,e,r){var n,i,a=new Array(d+1),o=0;for(n=1;n<=d;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(a[s]++,s))}}function G(t){var e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<l;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*b]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){t.bi_valid>8?N(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Z(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function q(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&Z(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Z(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function W(t,e,r){var n,i,a,o,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?R(t,i,e):(R(t,(a=M[i])+f+1,e),0!==(o=_[a])&&j(t,i-=F[a],o),R(t,a=L(--n),r),0!==(o=x[a])&&j(t,n-=I[a],o))}while(s<t.last_lit);R(t,b,e)}function Y(t,e){var r,n,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,f=-1;for(t.heap_len=0,t.heap_max=p,r=0;r<u;r++)0!==a[2*r]?(t.heap[++t.heap_len]=f=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=f<2?++f:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=f,r=t.heap_len>>1;r>=1;r--)q(t,a,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],q(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,q(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,u=e.dyn_tree,f=e.max_code,c=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,y=e.stat_desc.max_length,b=0;for(a=0;a<=d;a++)t.bl_count[a]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<p;r++)(a=u[2*u[2*(n=t.heap[r])+1]+1]+1)>y&&(a=y,b++),u[2*n+1]=a,n>f||(t.bl_count[a]++,o=0,n>=m&&(o=l[n-m]),s=u[2*n],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(c[2*n+1]+o)));if(0!==b){do{for(a=y-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[y]--,b-=2}while(b>0);for(a=y;0!==a;a--)for(n=t.bl_count[a];0!==n;)(i=t.heap[--r])>f||(u[2*i+1]!==a&&(t.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),n--)}}(t,e),U(a,f,t.bl_count)}function V(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<f?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[2*g]++):s<=10?t.bl_tree[2*v]++:t.bl_tree[2*w]++,s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4))}function X(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<f)do{R(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(R(t,i,t.bl_tree),s--),R(t,g,t.bl_tree),j(t,s-3,2)):s<=10?(R(t,v,t.bl_tree),j(t,s-3,3)):(R(t,w,t.bl_tree),j(t,s-11,7));s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4)}}o(I);var J=!1;function K(t,e,r,i){j(t,(s<<1)+(i?1:0),3),function(t,e,r,i){H(t),i&&(N(t,r),N(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){J||(!function(){var t,e,r,n,i,a=new Array(d+1);for(r=0,n=0;n<u-1;n++)for(F[n]=r,t=0;t<1<<_[n];t++)M[r++]=n;for(M[r-1]=n,i=0,n=0;n<16;n++)for(I[n]=i,t=0;t<1<<x[n];t++)S[i++]=n;for(i>>=7;n<h;n++)for(I[n]=i<<7,t=0;t<1<<x[n]-7;t++)S[256+i++]=n;for(e=0;e<=d;e++)a[e]=0;for(t=0;t<=143;)k[2*t+1]=8,t++,a[8]++;for(;t<=255;)k[2*t+1]=9,t++,a[9]++;for(;t<=279;)k[2*t+1]=7,t++,a[7]++;for(;t<=287;)k[2*t+1]=8,t++,a[8]++;for(U(k,c+1,a),t=0;t<h;t++)A[2*t+1]=5,A[2*t]=z(t,5);C=new T(k,_,f+1,c,d),B=new T(A,x,0,h,d),O=new T(new Array(0),E,0,l,y)}(),J=!0),t.l_desc=new P(t.dyn_ltree,C),t.d_desc=new P(t.dyn_dtree,B),t.bl_desc=new P(t.bl_tree,O),t.bi_buf=0,t.bi_valid=0,G(t)},e._tr_stored_block=K,e._tr_flush_block=function(t,e,r,n){var o,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e<f;e++)if(0!==t.dyn_ltree[2*e])return a;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),u=function(t){var e;for(V(t,t.dyn_ltree,t.l_desc.max_code),V(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=l-1;e>=3&&0===t.bl_tree[2*D[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==e?K(t,e,r,n):4===t.strategy||s===o?(j(t,2+(n?1:0),3),W(t,k,A)):(j(t,4+(n?1:0),3),function(t,e,r,n){var i;for(j(t,e-257,5),j(t,r-1,5),j(t,n-4,4),i=0;i<n;i++)j(t,t.bl_tree[2*D[i]+1],3);X(t,t.dyn_ltree,e-1),X(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),W(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&H(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(M[r]+f+1)]++,t.dyn_dtree[2*L(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){j(t,2,3),R(t,b,k),function(t){16===t.bi_valid?(N(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,r){\"use strict\";var n=r(41),i=r(79),a=r(80),o=r(183),s=r(184),u=1,f=2,c=0,h=-2,l=1,p=12,d=30,m=852,y=592;function b(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=l,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(m),e.distcode=e.distdyn=new n.Buf32(y),e.sane=1,e.back=-1,c):h}function w(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,v(t)):h}function _(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?h:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,w(t))):h}function x(t,e){var r,n;return t?(n=new g,t.state=n,n.window=null,(r=_(t,e))!==c&&(t.state=null),r):h}var E,D,k=!0;function A(t){if(k){var e;for(E=new n.Buf32(512),D=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,E,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(f,t.lens,0,32,D,0,t.work,{bits:5}),k=!1}t.lencode=E,t.lenbits=9,t.distcode=D,t.distbits=5}function S(t,e,r,i){var a,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),n.arraySet(o.window,e,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,e,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}e.inflateReset=w,e.inflateReset2=_,e.inflateResetKeep=v,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var r,m,y,g,v,w,_,x,E,D,k,M,F,C,B,O,I,T,P,L,N,j,R,z,U=0,G=new n.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;(r=t.state).mode===p&&(r.mode=13),v=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,D=w,k=_,j=c;t:for(;;)switch(r.mode){case l:if(0===r.wrap){r.mode=13;break}for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(2&r.wrap&&35615===x){r.check=0,G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0),x=0,E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",r.mode=d;break}if(8!=(15&x)){t.msg=\"unknown compression method\",r.mode=d;break}if(E-=4,N=8+(15&(x>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){t.msg=\"invalid window size\",r.mode=d;break}r.dmax=1<<N,t.adler=r.check=1,r.mode=512&x?10:p,x=0,E=0;break;case 2:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.flags=x,8!=(255&r.flags)){t.msg=\"unknown compression method\",r.mode=d;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=d;break}r.head&&(r.head.text=x>>8&1),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0,r.mode=3;case 3:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.time=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,G[2]=x>>>16&255,G[3]=x>>>24&255,r.check=a(r.check,G,4,0)),x=0,E=0,r.mode=4;case 4:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>8),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0,r.mode=5;case 5:if(1024&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((M=r.length)>w&&(M=w),M&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,m,g,M,N)),512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,r.length-=M),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break t;M=0;do{N=m[g+M++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,N)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break t;M=0;do{N=m[g+M++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,N)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=d;break}x=0,E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=p;break;case 10:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}t.adler=r.check=b(x),x=0,E=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,2;t.adler=r.check=1,r.mode=p;case p:if(5===e||6===e)break t;case 13:if(r.last){x>>>=7&E,E-=7&E,r.mode=27;break}for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}switch(r.last=1&x,E-=1,3&(x>>>=1)){case 0:r.mode=14;break;case 1:if(A(r),r.mode=20,6===e){x>>>=2,E-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=d}x>>>=2,E-=2;break;case 14:for(x>>>=7&E,E-=7&E;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=d;break}if(r.length=65535&x,x=0,E=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(M=r.length){if(M>w&&(M=w),M>_&&(M=_),0===M)break t;n.arraySet(y,m,g,M,v),w-=M,g+=M,_-=M,v+=M,r.length-=M;break}r.mode=p;break;case 17:for(;E<14;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.nlen=257+(31&x),x>>>=5,E-=5,r.ndist=1+(31&x),x>>>=5,E-=5,r.ncode=4+(15&x),x>>>=4,E-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=d;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.lens[H[r.have++]]=7&x,x>>>=3,E-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},j=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid code lengths set\",r.mode=d;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;O=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(I<16)x>>>=B,E-=B,r.lens[r.have++]=I;else{if(16===I){for(z=B+2;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x>>>=B,E-=B,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=d;break}N=r.lens[r.have-1],M=3+(3&x),x>>>=2,E-=2}else if(17===I){for(z=B+3;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=B,N=0,M=3+(7&(x>>>=B)),x>>>=3,E-=3}else{for(z=B+7;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=B,N=0,M=11+(127&(x>>>=B)),x>>>=7,E-=7}if(r.have+M>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=d;break}for(;M--;)r.lens[r.have++]=N}}if(r.mode===d)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=d;break}if(r.lenbits=9,R={bits:r.lenbits},j=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid literal/lengths set\",r.mode=d;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},j=s(f,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,j){t.msg=\"invalid distances set\",r.mode=d;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(w>=6&&_>=258){t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,o(t,k),v=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,r.mode===p&&(r.back=-1);break}for(r.back=0;O=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(O&&!(240&O)){for(T=B,P=O,L=I;O=(U=r.lencode[L+((x&(1<<T+P)-1)>>T)])>>>16&255,I=65535&U,!(T+(B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=B,E-=B,r.back+=B,r.length=I,0===O){r.mode=26;break}if(32&O){r.back=-1,r.mode=p;break}if(64&O){t.msg=\"invalid literal/length code\",r.mode=d;break}r.extra=15&O,r.mode=22;case 22:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;O=(U=r.distcode[x&(1<<r.distbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(!(240&O)){for(T=B,P=O,L=I;O=(U=r.distcode[L+((x&(1<<T+P)-1)>>T)])>>>16&255,I=65535&U,!(T+(B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=B,E-=B,r.back+=B,64&O){t.msg=\"invalid distance code\",r.mode=d;break}r.offset=I,r.extra=15&O,r.mode=24;case 24:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.offset+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=d;break}r.mode=25;case 25:if(0===_)break t;if(M=k-_,r.offset>M){if((M=r.offset-M)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=d;break}M>r.wnext?(M-=r.wnext,F=r.wsize-M):F=r.wnext-M,M>r.length&&(M=r.length),C=r.window}else C=y,F=v-r.offset,M=r.length;M>_&&(M=_),_-=M,r.length-=M;do{y[v++]=C[F++]}while(--M);0===r.length&&(r.mode=21);break;case 26:if(0===_)break t;y[v++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;E<32;){if(0===w)break t;w--,x|=m[g++]<<E,E+=8}if(k-=_,t.total_out+=k,r.total+=k,k&&(t.adler=r.check=r.flags?a(r.check,y,k,v-k):i(r.check,y,k,v-k)),k=_,(r.flags?x:b(x))!==r.check){t.msg=\"incorrect data check\",r.mode=d;break}x=0,E=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=d;break}x=0,E=0}r.mode=29;case 29:j=1;break t;case d:j=-3;break t;case 31:return-4;default:return h}return t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,(r.wsize||k!==t.avail_out&&r.mode<d&&(r.mode<27||4!==e))&&S(t,t.output,t.next_out,k-t.avail_out)?(r.mode=31,-4):(D-=t.avail_in,k-=t.avail_out,t.total_in+=D,t.total_out+=k,r.total+=k,r.wrap&&k&&(t.adler=r.check=r.flags?a(r.check,y,k,t.next_out-k):i(r.check,y,k,t.next_out-k)),t.data_type=r.bits+(r.last?64:0)+(r.mode===p?128:0)+(20===r.mode||15===r.mode?256:0),(0===D&&0===k||4===e)&&j===c&&(j=-5),j)},e.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,c},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,c):h},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?h:11===r.mode&&i(1,e,n,0)!==r.check?-3:S(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,c):h},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,r){\"use strict\";t.exports=function(t,e){var r,n,i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k,A;r=t.state,n=t.next_in,k=t.input,i=n+(t.avail_in-5),a=t.next_out,A=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),u=r.dmax,f=r.wsize,c=r.whave,h=r.wnext,l=r.window,p=r.hold,d=r.bits,m=r.lencode,y=r.distcode,b=(1<<r.lenbits)-1,g=(1<<r.distbits)-1;t:do{d<15&&(p+=k[n++]<<d,d+=8,p+=k[n++]<<d,d+=8),v=m[p&b];e:for(;;){if(p>>>=w=v>>>24,d-=w,0===(w=v>>>16&255))A[a++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break t}t.msg=\"invalid literal/length code\",r.mode=30;break t}v=m[(65535&v)+(p&(1<<w)-1)];continue e}for(_=65535&v,(w&=15)&&(d<w&&(p+=k[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=k[n++]<<d,d+=8,p+=k[n++]<<d,d+=8),v=y[p&g];;){if(p>>>=w=v>>>24,d-=w,16&(w=v>>>16&255)){if(x=65535&v,d<(w&=15)&&(p+=k[n++]<<d,(d+=8)<w&&(p+=k[n++]<<d,d+=8)),(x+=p&(1<<w)-1)>u){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(p>>>=w,d-=w,x>(w=a-o)){if((w=x-w)>c&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(E=0,D=l,0===h){if(E+=f-w,w<_){_-=w;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}}else if(h<w){if(E+=f+h-w,(w-=h)<_){_-=w;do{A[a++]=l[E++]}while(--w);if(E=0,h<_){_-=w=h;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}}}else if(E+=h-w,w<_){_-=w;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}for(;_>2;)A[a++]=D[E++],A[a++]=D[E++],A[a++]=D[E++],_-=3;_&&(A[a++]=D[E++],_>1&&(A[a++]=D[E++]))}else{E=a-x;do{A[a++]=A[E++],A[a++]=A[E++],A[a++]=A[E++],_-=3}while(_>2);_&&(A[a++]=A[E++],_>1&&(A[a++]=A[E++]))}break}if(64&w){t.msg=\"invalid distance code\",r.mode=30;break t}v=y[(65535&v)+(p&(1<<w)-1)]}}break}}while(n<i&&a<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=a<s?s-a+257:257-(a-s),r.hold=p,r.bits=d}},function(t,e,r){\"use strict\";var n=r(41),i=15,a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,f,c,h,l,p){var d,m,y,b,g,v,w,_,x,E=p.bits,D=0,k=0,A=0,S=0,M=0,F=0,C=0,B=0,O=0,I=0,T=null,P=0,L=new n.Buf16(16),N=new n.Buf16(16),j=null,R=0;for(D=0;D<=i;D++)L[D]=0;for(k=0;k<f;k++)L[e[r+k]]++;for(M=E,S=i;S>=1&&0===L[S];S--);if(M>S&&(M=S),0===S)return c[h++]=20971520,c[h++]=20971520,p.bits=1,0;for(A=1;A<S&&0===L[A];A++);for(M<A&&(M=A),B=1,D=1;D<=i;D++)if(B<<=1,(B-=L[D])<0)return-1;if(B>0&&(0===t||1!==S))return-1;for(N[1]=0,D=1;D<i;D++)N[D+1]=N[D]+L[D];for(k=0;k<f;k++)0!==e[r+k]&&(l[N[e[r+k]]++]=k);if(0===t?(T=j=l,v=19):1===t?(T=a,P-=257,j=o,R-=257,v=256):(T=s,j=u,v=-1),I=0,k=0,D=A,g=h,F=M,C=0,y=-1,b=(O=1<<M)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){w=D-C,l[k]<v?(_=0,x=l[k]):l[k]>v?(_=j[R+l[k]],x=T[P+l[k]]):(_=96,x=0),d=1<<D-C,A=m=1<<F;do{c[g+(I>>C)+(m-=d)]=w<<24|_<<16|x}while(0!==m);for(d=1<<D-1;I&d;)d>>=1;if(0!==d?(I&=d-1,I+=d):I=0,k++,0==--L[D]){if(D===S)break;D=e[r+l[k]]}if(D>M&&(I&b)!==y){for(0===C&&(C=M),g+=A,B=1<<(F=D-C);F+C<S&&!((B-=L[F+C])<=0);)F++,B<<=1;if(O+=1<<F,1===t&&O>852||2===t&&O>592)return 1;c[y=I&b]=M<<24|F<<16|g-h}}return 0!==I&&(c[g+I]=D-C<<24|64<<16),p.bits=M,0}},function(t,e,r){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){\"use strict\";(function(e){var n=r(14),i=r(81),a=r(82),o=t.exports=function(t){i.call(this);var r=[],n=this;this._filter=new a(t,{read:this.read.bind(this),write:function(t){r.push(t)},complete:function(){n.emit(\"complete\",e.concat(r))}}),this._filter.start()};n.inherits(o,i)}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(14),i=r(38),a=r(30),o=r(89),s=t.exports=function(t){i.call(this);var e=t||{};this._packer=new o(e),this._deflate=this._packer.createDeflate(),this.readable=!0};n.inherits(s,i),s.prototype.pack=function(t,r,n,i){this.emit(\"data\",e.from(a.PNG_SIGNATURE)),this.emit(\"data\",this._packer.packIHDR(r,n)),i&&this.emit(\"data\",this._packer.packGAMA(i));var o=this._packer.filterData(t,r,n);this._deflate.on(\"error\",this.emit.bind(this,\"error\")),this._deflate.on(\"data\",function(t){this.emit(\"data\",this._packer.packIDAT(t))}.bind(this)),this._deflate.on(\"end\",function(){this.emit(\"data\",this._packer.packIEND()),this.emit(\"end\")}.bind(this)),this._deflate.end(o)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(30);t.exports=function(t,r,i,a){var o,s=-1!==[n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(a.colorType);if(a.colorType===a.inputColorType){var u=(o=new ArrayBuffer(2),new DataView(o).setInt16(0,256,!0),256!==new Int16Array(o)[0]);if(8===a.bitDepth||16===a.bitDepth&&u)return t}var f=16!==a.bitDepth?t:new Uint16Array(t.buffer),c=255,h=n.COLORTYPE_TO_BPP_MAP[a.inputColorType];4!==h||a.inputHasAlpha||(h=3);var l=n.COLORTYPE_TO_BPP_MAP[a.colorType];16===a.bitDepth&&(c=65535,l*=2);var p=e.alloc(r*i*l),d=0,m=0,y=a.bgColor||{};function b(){var t,e,r,i=c;switch(a.inputColorType){case n.COLORTYPE_COLOR_ALPHA:i=f[d+3],t=f[d],e=f[d+1],r=f[d+2];break;case n.COLORTYPE_COLOR:t=f[d],e=f[d+1],r=f[d+2];break;case n.COLORTYPE_ALPHA:i=f[d+1],e=t=f[d],r=t;break;case n.COLORTYPE_GRAYSCALE:e=t=f[d],r=t;break;default:throw new Error(\"input color type:\"+a.inputColorType+\" is not supported at present\")}return a.inputHasAlpha&&(s||(i/=c,t=Math.min(Math.max(Math.round((1-i)*y.red+i*t),0),c),e=Math.min(Math.max(Math.round((1-i)*y.green+i*e),0),c),r=Math.min(Math.max(Math.round((1-i)*y.blue+i*r),0),c))),{red:t,green:e,blue:r,alpha:i}}void 0===y.red&&(y.red=c),void 0===y.green&&(y.green=c),void 0===y.blue&&(y.blue=c);for(var g=0;g<i;g++)for(var v=0;v<r;v++){var w=b();switch(a.colorType){case n.COLORTYPE_COLOR_ALPHA:case n.COLORTYPE_COLOR:8===a.bitDepth?(p[m]=w.red,p[m+1]=w.green,p[m+2]=w.blue,s&&(p[m+3]=w.alpha)):(p.writeUInt16BE(w.red,m),p.writeUInt16BE(w.green,m+2),p.writeUInt16BE(w.blue,m+4),s&&p.writeUInt16BE(w.alpha,m+6));break;case n.COLORTYPE_ALPHA:case n.COLORTYPE_GRAYSCALE:var _=(w.red+w.green+w.blue)/3;8===a.bitDepth?(p[m]=_,s&&(p[m+1]=w.alpha)):(p.writeUInt16BE(_,m),s&&p.writeUInt16BE(w.alpha,m+2));break;default:throw new Error(\"unrecognised color Type \"+a.colorType)}d+=h,m+=l}return p}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(84);var i={0:function(t,e,r,n,i){for(var a=0;a<r;a++)n[i+a]=t[e+a]},1:function(t,e,r,n,i,a){for(var o=0;o<r;o++){var s=o>=a?t[e+o-a]:0,u=t[e+o]-s;n[i+o]=u}},2:function(t,e,r,n,i){for(var a=0;a<r;a++){var o=e>0?t[e+a-r]:0,s=t[e+a]-o;n[i+a]=s}},3:function(t,e,r,n,i,a){for(var o=0;o<r;o++){var s=o>=a?t[e+o-a]:0,u=e>0?t[e+o-r]:0,f=t[e+o]-(s+u>>1);n[i+o]=f}},4:function(t,e,r,i,a,o){for(var s=0;s<r;s++){var u=s>=o?t[e+s-o]:0,f=e>0?t[e+s-r]:0,c=e>0&&s>=o?t[e+s-(r+o)]:0,h=t[e+s]-n(u,f,c);i[a+s]=h}}},a={0:function(t,e,r){for(var n=0,i=e+r,a=e;a<i;a++)n+=Math.abs(t[a]);return n},1:function(t,e,r,n){for(var i=0,a=0;a<r;a++){var o=a>=n?t[e+a-n]:0,s=t[e+a]-o;i+=Math.abs(s)}return i},2:function(t,e,r){for(var n=0,i=e+r,a=e;a<i;a++){var o=e>0?t[a-r]:0,s=t[a]-o;n+=Math.abs(s)}return n},3:function(t,e,r,n){for(var i=0,a=0;a<r;a++){var o=a>=n?t[e+a-n]:0,s=e>0?t[e+a-r]:0,u=t[e+a]-(o+s>>1);i+=Math.abs(u)}return i},4:function(t,e,r,i){for(var a=0,o=0;o<r;o++){var s=o>=i?t[e+o-i]:0,u=e>0?t[e+o-r]:0,f=e>0&&o>=i?t[e+o-(r+i)]:0,c=t[e+o]-n(s,u,f);a+=Math.abs(c)}return a}};t.exports=function(t,r,n,o,s){var u;if(\"filterType\"in o&&-1!==o.filterType){if(\"number\"!=typeof o.filterType)throw new Error(\"unrecognised filter types\");u=[o.filterType]}else u=[0,1,2,3,4];16===o.bitDepth&&(s*=2);for(var f=r*s,c=0,h=0,l=e.alloc((f+1)*n),p=u[0],d=0;d<n;d++){if(u.length>1)for(var m=1/0,y=0;y<u.length;y++){var b=a[u[y]](t,h,f,s);b<m&&(p=u[y],m=b)}l[c]=p,c++,i[p](t,h,f,l,c,s),c+=f,h+=f}return l}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=r(191),i=r(194);e.read=function(t,e){return n(t,e||{})},e.write=function(t,e){return i(t,e)}},function(t,e,r){\"use strict\";(function(e){var n=!0,i=r(28),a=r(192);i.deflateSync||(n=!1);var o=r(90),s=r(193),u=r(85),f=r(87),c=r(88);t.exports=function(t,r){if(!n)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var h,l,p;var d=[];var m=new o(t),y=new u(r,{read:m.read.bind(m),error:function(t){h=t},metadata:function(t){l=t},gamma:function(t){p=t},palette:function(t){l.palette=t},transColor:function(t){l.transColor=t},inflateData:function(t){d.push(t)},simpleTransparency:function(){l.alpha=!0}});if(y.start(),m.process(),h)throw h;var b,g=e.concat(d);if(d.length=0,l.interlace)b=i.inflateSync(g);else{var v=(1+(l.width*l.bpp*l.depth+7>>3))*l.height;b=a(g,{chunkSize:v,maxLength:v})}if(g=null,!b||!b.length)throw new Error(\"bad png - invalid inflate data response\");var w=s.process(b,l);g=null;var _=f.dataToBitMap(w,l);w=null;var x=c(_,l,r.skipRescale);return l.data=x,l.gamma=p||0,l}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(n,i){var a=r(53).ok,o=r(28),s=r(14),u=r(2).kMaxLength;function f(t){if(!(this instanceof f))return new f(t);t&&t.chunkSize<o.Z_MIN_CHUNK&&(t.chunkSize=o.Z_MIN_CHUNK),o.Inflate.call(this,t),this._offset=void 0===this._offset?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,t&&null!=t.maxLength&&(this._maxLength=t.maxLength)}function c(t,e){e&&n.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function h(t,e){return function(t,e){if(\"string\"==typeof e&&(e=i.from(e)),!(e instanceof i))throw new TypeError(\"Not a string or buffer\");var r=t._finishFlushFlag;return null==r&&(r=o.Z_FINISH),t._processChunk(e,r)}(new f(e),t)}f.prototype._processChunk=function(t,e,r){if(\"function\"==typeof r)return o.Inflate._processChunk.call(this,t,e,r);var n,s,f=this,h=t&&t.length,l=this._chunkSize-this._offset,p=this._maxLength,d=0,m=[],y=0;function b(t,e){if(!f._hadError){var r=l-e;if(a(r>=0,\"have should not go down\"),r>0){var n=f._buffer.slice(f._offset,f._offset+r);if(f._offset+=r,n.length>p&&(n=n.slice(0,p)),m.push(n),y+=n.length,0===(p-=n.length))return!1}return(0===e||f._offset>=f._chunkSize)&&(l=f._chunkSize,f._offset=0,f._buffer=i.allocUnsafe(f._chunkSize)),0===e&&(d+=h-t,h=t,!0)}}this.on(\"error\",(function(t){n=t})),a(this._handle,\"zlib binding closed\");do{s=(s=this._handle.writeSync(e,t,d,h,this._buffer,this._offset,l))||this._writeState}while(!this._hadError&&b(s[0],s[1]));if(this._hadError)throw n;if(y>=u)throw c(this),new RangeError(\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\");var g=i.concat(m,y);return c(this),g},s.inherits(f,o.Inflate),t.exports=e=h,e.Inflate=f,e.createInflate=function(t){return new f(t)},e.inflateSync=h}).call(this,r(7),r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(90),i=r(82);e.process=function(e,r){var a=[],o=new n(e);return new i(r,{read:o.read.bind(o),write:function(t){a.push(t)},complete:function(){}}).start(),o.process(),t.concat(a)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=!0,i=r(28);i.deflateSync||(n=!1);var a=r(30),o=r(89);t.exports=function(t,r){if(!n)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var s=new o(r||{}),u=[];u.push(e.from(a.PNG_SIGNATURE)),u.push(s.packIHDR(t.width,t.height)),t.gamma&&u.push(s.packGAMA(t.gamma));var f=s.filterData(t.data,t.width,t.height),c=i.deflateSync(f,s.getDeflateOptions());if(f=null,!c||!c.length)throw new Error(\"bad png - invalid compressed data response\");return u.push(s.packIDAT(c)),u.push(s.packIEND()),e.concat(u)}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag=\"BM\",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}r.prototype.encode=function(){var t=new e(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var r=0,n=3*this.width+this.extraBytes,i=0;i<this.height;i++){for(var a=0;a<this.width;a++){var o=this.pos+i*n+3*a;r++,t[o]=this.buffer[r++],t[o+1]=this.buffer[r++],t[o+2]=this.buffer[r++]}if(this.extraBytes>0){var s=this.pos+i*n+3*this.width;t.fill(0,s,s+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new r(t).encode(),width:t.width,height:t.height}}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString(\"utf-8\",0,this.pos+=2),\"BM\"!=this.flag)throw new Error(\"Invalid BMP File\");this.parseHeader(),this.parseRGBA()}r.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);this.palette[e]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},r.prototype.parseRGBA=function(){var t=\"bit\"+this.bitPP,r=this.width*this.height*4;this.data=new e(r),this[t]()},r.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,r=this.height>=0?this.height-1:-this.height;for(r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++)for(var a=this.buffer.readUInt8(this.pos++),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var u=this.palette[a>>7-s&1];this.data[o+4*s]=0,this.data[o+4*s+1]=u.blue,this.data[o+4*s+2]=u.green,this.data[o+4*s+3]=u.red}0!=e&&(this.pos+=4-e)}},r.prototype.bit4=function(){if(2==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0,n=!1;e<this.data.length;){var i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);if(0==i){if(0==a){this.bottom_up?r--:r++,e=r*this.width*4,n=!1;continue}if(1==a)break;if(2==a){var o=this.buffer.readUInt8(this.pos++),s=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=s:r+=s,e+=s*this.width*4+4*o}else{for(var u=this.buffer.readUInt8(this.pos++),f=0;f<a;f++)t.call(this,n?15&u:(240&u)>>4),1&f&&f+1<a&&(u=this.buffer.readUInt8(this.pos++)),n=!n;1==(a+1>>1&1)&&this.pos++}}else for(f=0;f<i;f++)t.call(this,n?15&a:(240&a)>>4),n=!n}}else{var c=Math.ceil(this.width/2),h=c%4;for(s=this.height-1;s>=0;s--){var l=this.bottom_up?s:this.height-1-s;for(o=0;o<c;o++){a=this.buffer.readUInt8(this.pos++),e=l*this.width*4+2*o*4;var p=a>>4,d=15&a,m=this.palette[p];if(this.data[e]=0,this.data[e+1]=m.blue,this.data[e+2]=m.green,this.data[e+3]=m.red,2*o+1>=this.width)break;m=this.palette[d],this.data[e+4]=0,this.data[e+4+1]=m.blue,this.data[e+4+2]=m.green,this.data[e+4+3]=m.red}0!=h&&(this.pos+=4-h)}}},r.prototype.bit8=function(){if(1==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0;e<this.data.length;){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++);if(0==n){if(0==i){this.bottom_up?r--:r++,e=r*this.width*4;continue}if(1==i)break;if(2==i){var a=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=o:r+=o,e+=o*this.width*4+4*a}else{for(var s=0;s<i;s++){var u=this.buffer.readUInt8(this.pos++);t.call(this,u)}!0&i&&this.pos++}}else for(s=0;s<n;s++)t.call(this,i)}}else{var f=this.width%4;for(o=this.height-1;o>=0;o--){var c=this.bottom_up?o:this.height-1-o;for(a=0;a<this.width;a++){i=this.buffer.readUInt8(this.pos++),e=c*this.width*4+4*a;if(i<this.palette.length){var h=this.palette[i];this.data[e]=0,this.data[e+1]=h.blue,this.data[e+2]=h.green,this.data[e+3]=h.red}else this.data[e]=0,this.data[e+1]=255,this.data[e+2]=255,this.data[e+3]=255}0!=f&&(this.pos+=4-f)}}},r.prototype.bit15=function(){for(var t=this.width%3,e=parseInt(\"11111\",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.buffer.readUInt16LE(this.pos);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,u=(a>>10&e)/e*255|0,f=a>>15?255:0,c=n*this.width*4+4*i;this.data[c]=f,this.data[c+1]=o,this.data[c+2]=s,this.data[c+3]=u}this.pos+=t}},r.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],r=0;r<16;r++)this.maskRed>>r&1&&e[0]++,this.maskGreen>>r&1&&e[1]++,this.maskBlue>>r&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var o=this.buffer.readUInt16LE(this.pos);this.pos+=2;var s=(o&this.maskBlue)<<e[0],u=(o&this.maskGreen)>>e[1],f=(o&this.maskRed)>>e[2],c=i*this.width*4+4*a;this.data[c]=0,this.data[c+1]=s,this.data[c+2]=u,this.data[c+3]=f}this.pos+=t}},r.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),o=e*this.width*4+4*r;this.data[o]=0,this.data[o+1]=n,this.data[o+2]=i,this.data[o+3]=a}this.pos+=this.width%4}},r.prototype.bit32=function(){if(3==this.compress){this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4;for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=a,this.data[s+3]=o}}else for(t=this.height-1;t>=0;t--)for(e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=a,this.data[s+3]=o}},r.prototype.getData=function(){return this.data},t.exports=function(t){return new r(t)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n={};(0,r(15).assign)(n,r(198),r(201),r(95)),t.exports=n},function(t,e,r){\"use strict\";var n=r(199),i=r(15),a=r(93),o=r(56),s=r(94),u=Object.prototype.toString,f=0,c=-1,h=0,l=8;function p(t){if(!(this instanceof p))return new p(t);this.options=i.assign({level:c,method:l,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==f)throw new Error(o[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d=\"string\"==typeof e.dictionary?a.string2buf(e.dictionary):\"[object ArrayBuffer]\"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=n.deflateSetDictionary(this.strm,d))!==f)throw new Error(o[r]);this._dict_set=!0}}function d(t,e){var r=new p(e);if(r.push(t,!0),r.err)throw r.msg||o[r.err];return r.result}p.prototype.push=function(t,e){var r,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,\"string\"==typeof t?s.input=a.string2buf(t):\"[object ArrayBuffer]\"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(r=n.deflate(s,o))&&r!==f)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||(\"string\"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===o?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===f):2!==o||(this.onEnd(f),s.avail_out=0,!0)},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===f&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=p,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},function(t,e,r){\"use strict\";var n,i=r(15),a=r(200),o=r(91),s=r(92),u=r(56),f=0,c=4,h=0,l=-2,p=-1,d=4,m=2,y=8,b=9,g=286,v=30,w=19,_=2*g+1,x=15,E=3,D=258,k=D+E+1,A=42,S=103,M=113,F=666,C=1,B=2,O=3,I=4;function T(t,e){return t.msg=u[e],e}function P(t){return(t<<1)-(t>4?9:0)}function L(t){for(var e=t.length;--e>=0;)t[e]=0}function N(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function j(t,e){a._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,N(t.strm)}function R(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-k?t.strstart-(t.w_size-k):0,f=t.window,c=t.w_mask,h=t.prev,l=t.strstart+D,p=f[a+o-1],d=f[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(f[(r=e)+o]===d&&f[r+o-1]===p&&f[r]===f[a]&&f[++r]===f[a+1]){a+=2,r++;do{}while(f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&a<l);if(n=D-(l-a),a=l-D,n>o){if(t.match_start=e,o=n,n>=s)break;p=f[a+o-1],d=f[a+o]}}}while((e=h[e&c])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead}function G(t){var e,r,n,a,u,f,c,h,l,p,d=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-k)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--r);e=r=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--r);a+=d}if(0===t.strm.avail_in)break;if(f=t.strm,c=t.window,h=t.strstart+t.lookahead,l=a,p=void 0,(p=f.avail_in)>l&&(p=l),r=0===p?0:(f.avail_in-=p,i.arraySet(c,f.input,f.next_in,p,h),1===f.state.wrap?f.adler=o(f.adler,c,p,h):2===f.state.wrap&&(f.adler=s(f.adler,c,p,h)),f.next_in+=p,f.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=E)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+E-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<k&&0!==t.strm.avail_in)}function H(t,e){for(var r,n;;){if(t.lookahead<k){if(G(t),t.lookahead<k&&e===f)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-k&&(t.match_length=U(t,r)),t.match_length>=E)if(n=a._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=t.strstart<E-1?t.strstart:E-1,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}function Z(t,e){for(var r,n,i;;){if(t.lookahead<k){if(G(t),t.lookahead<k&&e===f)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=E-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-k&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===E&&t.strstart-t.match_start>4096)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-E,n=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=E-1,t.strstart++,n&&(j(t,!1),0===t.strm.avail_out))return C}else if(t.match_available){if((n=a._tr_tally(t,0,t.window[t.strstart-1]))&&j(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return C}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=a._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}function q(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*v+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*g+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*g+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?A:M,t.adler=2===e.wrap?0:1,e.last_flush=f,a._tr_init(e),h):T(t,l)}function V(t){var e,r=Y(t);return r===h&&((e=t.state).window_size=2*e.w_size,L(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=E-1,e.match_available=0,e.ins_h=0),r}function X(t,e,r,n,a,o){if(!t)return l;var s=1;if(e===p&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),a<1||a>b||r!==y||n<8||n>15||e<0||e>9||o<0||o>d)return T(t,l);8===n&&(n=9);var u=new W;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=a+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+E-1)/E),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<a+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=o,u.method=r,V(t)}n=[new q(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(G(t),0===t.lookahead&&e===f)return C;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,j(t,!1),0===t.strm.avail_out))return C;if(t.strstart-t.block_start>=t.w_size-k&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):(t.strstart>t.block_start&&(j(t,!1),t.strm.avail_out),C)})),new q(4,4,8,4,H),new q(4,5,16,8,H),new q(4,6,32,32,H),new q(4,4,16,16,Z),new q(8,16,32,32,Z),new q(8,16,128,128,Z),new q(8,32,128,256,Z),new q(32,128,258,1024,Z),new q(32,258,258,4096,Z)],e.deflateInit=function(t,e){return X(t,e,y,15,8,0)},e.deflateInit2=X,e.deflateReset=V,e.deflateResetKeep=Y,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?l:(t.state.gzhead=e,h):l},e.deflate=function(t,e){var r,i,o,u;if(!t||!t.state||e>5||e<0)return t?T(t,l):l;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===F&&e!==c)return T(t,0===t.avail_out?-5:l);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===A)if(2===i.wrap)t.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,3),i.status=M);else{var p=y+(i.w_bits-8<<4)<<8;p|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(p|=32),p+=31-p%31,i.status=M,z(i,p),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=S)}else i.status=S;if(i.status===S&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(t),i.pending+2<=i.pending_buf_size&&(R(i,255&t.adler),R(i,t.adler>>8&255),t.adler=0,i.status=M)):i.status=M),0!==i.pending){if(N(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&P(e)<=P(r)&&e!==c)return T(t,-5);if(i.status===F&&0!==t.avail_in)return T(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==f&&i.status!==F){var d=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(G(t),0===t.lookahead)){if(e===f)return C;break}if(t.match_length=0,r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}(i,e):3===i.strategy?function(t,e){for(var r,n,i,o,s=t.window;;){if(t.lookahead<=D){if(G(t),t.lookahead<=D&&e===f)return C;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){o=t.strstart+D;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);t.match_length=D-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=a._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}(i,e):n[i.level].func(i,e);if(d!==O&&d!==I||(i.status=F),d===C||d===O)return 0===t.avail_out&&(i.last_flush=-1),h;if(d===B&&(1===e?a._tr_align(i):5!==e&&(a._tr_stored_block(i,0,0,!1),3===e&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),N(t),0===t.avail_out))return i.last_flush=-1,h}return e!==c?h:i.wrap<=0?1:(2===i.wrap?(R(i,255&t.adler),R(i,t.adler>>8&255),R(i,t.adler>>16&255),R(i,t.adler>>24&255),R(i,255&t.total_in),R(i,t.total_in>>8&255),R(i,t.total_in>>16&255),R(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),N(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?h:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==A&&69!==e&&73!==e&&91!==e&&e!==S&&e!==M&&e!==F?T(t,l):(t.state=null,e===M?T(t,-3):h):l},e.deflateSetDictionary=function(t,e){var r,n,a,s,u,f,c,p,d=e.length;if(!t||!t.state)return l;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==A||r.lookahead)return l;for(1===s&&(t.adler=o(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,e,d-r.w_size,r.w_size,0),e=p,d=r.w_size),u=t.avail_in,f=t.next_in,c=t.input,t.avail_in=d,t.next_in=0,t.input=e,G(r);r.lookahead>=E;){n=r.strstart,a=r.lookahead-(E-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+E-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--a);r.strstart=n,r.lookahead=E-1,G(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=E-1,r.match_available=0,t.next_in=f,t.input=c,t.avail_in=u,r.wrap=s,h},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,r){\"use strict\";var n=r(15),i=0,a=1;function o(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,f=256,c=f+1+u,h=30,l=19,p=2*c+1,d=15,m=16,y=7,b=256,g=16,v=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(c+2));o(k);var A=new Array(2*h);o(A);var S=new Array(512);o(S);var M=new Array(256);o(M);var F=new Array(u);o(F);var C,B,O,I=new Array(h);function T(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function P(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function L(t){return t<256?S[t]:S[256+(t>>>7)]}function N(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function j(t,e,r){t.bi_valid>m-r?(t.bi_buf|=e<<t.bi_valid&65535,N(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=r-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function R(t,e,r){j(t,r[2*e],r[2*e+1])}function z(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function U(t,e,r){var n,i,a=new Array(d+1),o=0;for(n=1;n<=d;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(a[s]++,s))}}function G(t){var e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<l;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*b]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){t.bi_valid>8?N(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Z(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function q(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&Z(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Z(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function W(t,e,r){var n,i,a,o,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?R(t,i,e):(R(t,(a=M[i])+f+1,e),0!==(o=_[a])&&j(t,i-=F[a],o),R(t,a=L(--n),r),0!==(o=x[a])&&j(t,n-=I[a],o))}while(s<t.last_lit);R(t,b,e)}function Y(t,e){var r,n,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,f=-1;for(t.heap_len=0,t.heap_max=p,r=0;r<u;r++)0!==a[2*r]?(t.heap[++t.heap_len]=f=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=f<2?++f:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=f,r=t.heap_len>>1;r>=1;r--)q(t,a,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],q(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,q(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,u=e.dyn_tree,f=e.max_code,c=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,y=e.stat_desc.max_length,b=0;for(a=0;a<=d;a++)t.bl_count[a]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<p;r++)(a=u[2*u[2*(n=t.heap[r])+1]+1]+1)>y&&(a=y,b++),u[2*n+1]=a,n>f||(t.bl_count[a]++,o=0,n>=m&&(o=l[n-m]),s=u[2*n],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(c[2*n+1]+o)));if(0!==b){do{for(a=y-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[y]--,b-=2}while(b>0);for(a=y;0!==a;a--)for(n=t.bl_count[a];0!==n;)(i=t.heap[--r])>f||(u[2*i+1]!==a&&(t.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),n--)}}(t,e),U(a,f,t.bl_count)}function V(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<f?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[2*g]++):s<=10?t.bl_tree[2*v]++:t.bl_tree[2*w]++,s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4))}function X(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<f)do{R(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(R(t,i,t.bl_tree),s--),R(t,g,t.bl_tree),j(t,s-3,2)):s<=10?(R(t,v,t.bl_tree),j(t,s-3,3)):(R(t,w,t.bl_tree),j(t,s-11,7));s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4)}}o(I);var J=!1;function K(t,e,r,i){j(t,(s<<1)+(i?1:0),3),function(t,e,r,i){H(t),i&&(N(t,r),N(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){J||(!function(){var t,e,r,n,i,a=new Array(d+1);for(r=0,n=0;n<u-1;n++)for(F[n]=r,t=0;t<1<<_[n];t++)M[r++]=n;for(M[r-1]=n,i=0,n=0;n<16;n++)for(I[n]=i,t=0;t<1<<x[n];t++)S[i++]=n;for(i>>=7;n<h;n++)for(I[n]=i<<7,t=0;t<1<<x[n]-7;t++)S[256+i++]=n;for(e=0;e<=d;e++)a[e]=0;for(t=0;t<=143;)k[2*t+1]=8,t++,a[8]++;for(;t<=255;)k[2*t+1]=9,t++,a[9]++;for(;t<=279;)k[2*t+1]=7,t++,a[7]++;for(;t<=287;)k[2*t+1]=8,t++,a[8]++;for(U(k,c+1,a),t=0;t<h;t++)A[2*t+1]=5,A[2*t]=z(t,5);C=new T(k,_,f+1,c,d),B=new T(A,x,0,h,d),O=new T(new Array(0),E,0,l,y)}(),J=!0),t.l_desc=new P(t.dyn_ltree,C),t.d_desc=new P(t.dyn_dtree,B),t.bl_desc=new P(t.bl_tree,O),t.bi_buf=0,t.bi_valid=0,G(t)},e._tr_stored_block=K,e._tr_flush_block=function(t,e,r,n){var o,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e<f;e++)if(0!==t.dyn_ltree[2*e])return a;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),u=function(t){var e;for(V(t,t.dyn_ltree,t.l_desc.max_code),V(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=l-1;e>=3&&0===t.bl_tree[2*D[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==e?K(t,e,r,n):4===t.strategy||s===o?(j(t,2+(n?1:0),3),W(t,k,A)):(j(t,4+(n?1:0),3),function(t,e,r,n){var i;for(j(t,e-257,5),j(t,r-1,5),j(t,n-4,4),i=0;i<n;i++)j(t,t.bl_tree[2*D[i]+1],3);X(t,t.dyn_ltree,e-1),X(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),W(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&H(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(M[r]+f+1)]++,t.dyn_dtree[2*L(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){j(t,2,3),R(t,b,k),function(t){16===t.bi_valid?(N(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){\"use strict\";var n=r(202),i=r(15),a=r(93),o=r(95),s=r(56),u=r(94),f=r(205),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==o.Z_OK)throw new Error(s[r]);if(this.header=new f,n.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=a.string2buf(e.dictionary):\"[object ArrayBuffer]\"===c.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==o.Z_OK))throw new Error(s[r])}function l(t,e){var r=new h(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}h.prototype.push=function(t,e){var r,s,u,f,h,l=this.strm,p=this.options.chunkSize,d=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,\"string\"==typeof t?l.input=a.binstring2buf(t):\"[object ArrayBuffer]\"===c.call(t)?l.input=new Uint8Array(t):l.input=t,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new i.Buf8(p),l.next_out=0,l.avail_out=p),(r=n.inflate(l,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&d&&(r=n.inflateSetDictionary(this.strm,d)),r===o.Z_BUF_ERROR&&!0===m&&(r=o.Z_OK,m=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),this.ended=!0,!1;l.next_out&&(0!==l.avail_out&&r!==o.Z_STREAM_END&&(0!==l.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||(\"string\"===this.options.to?(u=a.utf8border(l.output,l.next_out),f=l.next_out-u,h=a.buf2string(l.output,u),l.next_out=f,l.avail_out=p-f,f&&i.arraySet(l.output,l.output,u,f,0),this.onData(h)):this.onData(i.shrinkBuf(l.output,l.next_out)))),0===l.avail_in&&0===l.avail_out&&(m=!0)}while((l.avail_in>0||0===l.avail_out)&&r!==o.Z_STREAM_END);return r===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),l.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===o.Z_OK&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=h,e.inflate=l,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,l(t,e)},e.ungzip=l},function(t,e,r){\"use strict\";var n=r(15),i=r(91),a=r(92),o=r(203),s=r(204),u=1,f=2,c=0,h=-2,l=1,p=12,d=30,m=852,y=592;function b(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=l,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(m),e.distcode=e.distdyn=new n.Buf32(y),e.sane=1,e.back=-1,c):h}function w(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,v(t)):h}function _(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?h:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,w(t))):h}function x(t,e){var r,n;return t?(n=new g,t.state=n,n.window=null,(r=_(t,e))!==c&&(t.state=null),r):h}var E,D,k=!0;function A(t){if(k){var e;for(E=new n.Buf32(512),D=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,E,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(f,t.lens,0,32,D,0,t.work,{bits:5}),k=!1}t.lencode=E,t.lenbits=9,t.distcode=D,t.distbits=5}function S(t,e,r,i){var a,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),n.arraySet(o.window,e,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,e,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}e.inflateReset=w,e.inflateReset2=_,e.inflateResetKeep=v,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var r,m,y,g,v,w,_,x,E,D,k,M,F,C,B,O,I,T,P,L,N,j,R,z,U=0,G=new n.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;(r=t.state).mode===p&&(r.mode=13),v=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,D=w,k=_,j=c;t:for(;;)switch(r.mode){case l:if(0===r.wrap){r.mode=13;break}for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(2&r.wrap&&35615===x){r.check=0,G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0),x=0,E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",r.mode=d;break}if(8!=(15&x)){t.msg=\"unknown compression method\",r.mode=d;break}if(E-=4,N=8+(15&(x>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){t.msg=\"invalid window size\",r.mode=d;break}r.dmax=1<<N,t.adler=r.check=1,r.mode=512&x?10:p,x=0,E=0;break;case 2:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.flags=x,8!=(255&r.flags)){t.msg=\"unknown compression method\",r.mode=d;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=d;break}r.head&&(r.head.text=x>>8&1),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0,r.mode=3;case 3:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.time=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,G[2]=x>>>16&255,G[3]=x>>>24&255,r.check=a(r.check,G,4,0)),x=0,E=0,r.mode=4;case 4:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>8),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0,r.mode=5;case 5:if(1024&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((M=r.length)>w&&(M=w),M&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,m,g,M,N)),512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,r.length-=M),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break t;M=0;do{N=m[g+M++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,N)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break t;M=0;do{N=m[g+M++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,N)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=d;break}x=0,E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=p;break;case 10:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}t.adler=r.check=b(x),x=0,E=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,2;t.adler=r.check=1,r.mode=p;case p:if(5===e||6===e)break t;case 13:if(r.last){x>>>=7&E,E-=7&E,r.mode=27;break}for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}switch(r.last=1&x,E-=1,3&(x>>>=1)){case 0:r.mode=14;break;case 1:if(A(r),r.mode=20,6===e){x>>>=2,E-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=d}x>>>=2,E-=2;break;case 14:for(x>>>=7&E,E-=7&E;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=d;break}if(r.length=65535&x,x=0,E=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(M=r.length){if(M>w&&(M=w),M>_&&(M=_),0===M)break t;n.arraySet(y,m,g,M,v),w-=M,g+=M,_-=M,v+=M,r.length-=M;break}r.mode=p;break;case 17:for(;E<14;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.nlen=257+(31&x),x>>>=5,E-=5,r.ndist=1+(31&x),x>>>=5,E-=5,r.ncode=4+(15&x),x>>>=4,E-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=d;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.lens[H[r.have++]]=7&x,x>>>=3,E-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},j=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid code lengths set\",r.mode=d;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;O=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(I<16)x>>>=B,E-=B,r.lens[r.have++]=I;else{if(16===I){for(z=B+2;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x>>>=B,E-=B,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=d;break}N=r.lens[r.have-1],M=3+(3&x),x>>>=2,E-=2}else if(17===I){for(z=B+3;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=B,N=0,M=3+(7&(x>>>=B)),x>>>=3,E-=3}else{for(z=B+7;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=B,N=0,M=11+(127&(x>>>=B)),x>>>=7,E-=7}if(r.have+M>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=d;break}for(;M--;)r.lens[r.have++]=N}}if(r.mode===d)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=d;break}if(r.lenbits=9,R={bits:r.lenbits},j=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid literal/lengths set\",r.mode=d;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},j=s(f,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,j){t.msg=\"invalid distances set\",r.mode=d;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(w>=6&&_>=258){t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,o(t,k),v=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,r.mode===p&&(r.back=-1);break}for(r.back=0;O=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(O&&!(240&O)){for(T=B,P=O,L=I;O=(U=r.lencode[L+((x&(1<<T+P)-1)>>T)])>>>16&255,I=65535&U,!(T+(B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=B,E-=B,r.back+=B,r.length=I,0===O){r.mode=26;break}if(32&O){r.back=-1,r.mode=p;break}if(64&O){t.msg=\"invalid literal/length code\",r.mode=d;break}r.extra=15&O,r.mode=22;case 22:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;O=(U=r.distcode[x&(1<<r.distbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(!(240&O)){for(T=B,P=O,L=I;O=(U=r.distcode[L+((x&(1<<T+P)-1)>>T)])>>>16&255,I=65535&U,!(T+(B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=B,E-=B,r.back+=B,64&O){t.msg=\"invalid distance code\",r.mode=d;break}r.offset=I,r.extra=15&O,r.mode=24;case 24:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.offset+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=d;break}r.mode=25;case 25:if(0===_)break t;if(M=k-_,r.offset>M){if((M=r.offset-M)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=d;break}M>r.wnext?(M-=r.wnext,F=r.wsize-M):F=r.wnext-M,M>r.length&&(M=r.length),C=r.window}else C=y,F=v-r.offset,M=r.length;M>_&&(M=_),_-=M,r.length-=M;do{y[v++]=C[F++]}while(--M);0===r.length&&(r.mode=21);break;case 26:if(0===_)break t;y[v++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;E<32;){if(0===w)break t;w--,x|=m[g++]<<E,E+=8}if(k-=_,t.total_out+=k,r.total+=k,k&&(t.adler=r.check=r.flags?a(r.check,y,k,v-k):i(r.check,y,k,v-k)),k=_,(r.flags?x:b(x))!==r.check){t.msg=\"incorrect data check\",r.mode=d;break}x=0,E=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=d;break}x=0,E=0}r.mode=29;case 29:j=1;break t;case d:j=-3;break t;case 31:return-4;default:return h}return t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,(r.wsize||k!==t.avail_out&&r.mode<d&&(r.mode<27||4!==e))&&S(t,t.output,t.next_out,k-t.avail_out)?(r.mode=31,-4):(D-=t.avail_in,k-=t.avail_out,t.total_in+=D,t.total_out+=k,r.total+=k,r.wrap&&k&&(t.adler=r.check=r.flags?a(r.check,y,k,t.next_out-k):i(r.check,y,k,t.next_out-k)),t.data_type=r.bits+(r.last?64:0)+(r.mode===p?128:0)+(20===r.mode||15===r.mode?256:0),(0===D&&0===k||4===e)&&j===c&&(j=-5),j)},e.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,c},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,c):h},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?h:11===r.mode&&i(1,e,n,0)!==r.check?-3:S(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,c):h},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,r){\"use strict\";t.exports=function(t,e){var r,n,i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k,A;r=t.state,n=t.next_in,k=t.input,i=n+(t.avail_in-5),a=t.next_out,A=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),u=r.dmax,f=r.wsize,c=r.whave,h=r.wnext,l=r.window,p=r.hold,d=r.bits,m=r.lencode,y=r.distcode,b=(1<<r.lenbits)-1,g=(1<<r.distbits)-1;t:do{d<15&&(p+=k[n++]<<d,d+=8,p+=k[n++]<<d,d+=8),v=m[p&b];e:for(;;){if(p>>>=w=v>>>24,d-=w,0===(w=v>>>16&255))A[a++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break t}t.msg=\"invalid literal/length code\",r.mode=30;break t}v=m[(65535&v)+(p&(1<<w)-1)];continue e}for(_=65535&v,(w&=15)&&(d<w&&(p+=k[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=k[n++]<<d,d+=8,p+=k[n++]<<d,d+=8),v=y[p&g];;){if(p>>>=w=v>>>24,d-=w,16&(w=v>>>16&255)){if(x=65535&v,d<(w&=15)&&(p+=k[n++]<<d,(d+=8)<w&&(p+=k[n++]<<d,d+=8)),(x+=p&(1<<w)-1)>u){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(p>>>=w,d-=w,x>(w=a-o)){if((w=x-w)>c&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(E=0,D=l,0===h){if(E+=f-w,w<_){_-=w;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}}else if(h<w){if(E+=f+h-w,(w-=h)<_){_-=w;do{A[a++]=l[E++]}while(--w);if(E=0,h<_){_-=w=h;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}}}else if(E+=h-w,w<_){_-=w;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}for(;_>2;)A[a++]=D[E++],A[a++]=D[E++],A[a++]=D[E++],_-=3;_&&(A[a++]=D[E++],_>1&&(A[a++]=D[E++]))}else{E=a-x;do{A[a++]=A[E++],A[a++]=A[E++],A[a++]=A[E++],_-=3}while(_>2);_&&(A[a++]=A[E++],_>1&&(A[a++]=A[E++]))}break}if(64&w){t.msg=\"invalid distance code\",r.mode=30;break t}v=y[(65535&v)+(p&(1<<w)-1)]}}break}}while(n<i&&a<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=a<s?s-a+257:257-(a-s),r.hold=p,r.bits=d}},function(t,e,r){\"use strict\";var n=r(15),i=15,a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,f,c,h,l,p){var d,m,y,b,g,v,w,_,x,E=p.bits,D=0,k=0,A=0,S=0,M=0,F=0,C=0,B=0,O=0,I=0,T=null,P=0,L=new n.Buf16(16),N=new n.Buf16(16),j=null,R=0;for(D=0;D<=i;D++)L[D]=0;for(k=0;k<f;k++)L[e[r+k]]++;for(M=E,S=i;S>=1&&0===L[S];S--);if(M>S&&(M=S),0===S)return c[h++]=20971520,c[h++]=20971520,p.bits=1,0;for(A=1;A<S&&0===L[A];A++);for(M<A&&(M=A),B=1,D=1;D<=i;D++)if(B<<=1,(B-=L[D])<0)return-1;if(B>0&&(0===t||1!==S))return-1;for(N[1]=0,D=1;D<i;D++)N[D+1]=N[D]+L[D];for(k=0;k<f;k++)0!==e[r+k]&&(l[N[e[r+k]]++]=k);if(0===t?(T=j=l,v=19):1===t?(T=a,P-=257,j=o,R-=257,v=256):(T=s,j=u,v=-1),I=0,k=0,D=A,g=h,F=M,C=0,y=-1,b=(O=1<<M)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){w=D-C,l[k]<v?(_=0,x=l[k]):l[k]>v?(_=j[R+l[k]],x=T[P+l[k]]):(_=96,x=0),d=1<<D-C,A=m=1<<F;do{c[g+(I>>C)+(m-=d)]=w<<24|_<<16|x}while(0!==m);for(d=1<<D-1;I&d;)d>>=1;if(0!==d?(I&=d-1,I+=d):I=0,k++,0==--L[D]){if(D===S)break;D=e[r+l[k]]}if(D>M&&(I&b)!==y){for(0===C&&(C=M),g+=A,B=1<<(F=D-C);F+C<S&&!((B-=L[F+C])<=0);)F++,B<<=1;if(O+=1<<F,1===t&&O>852||2===t&&O>592)return 1;c[y=I&b]=M<<24|F<<16|g-h}}return 0!==I&&(c[g+I]=D-C<<24|64<<16),p.bits=M,0}},function(t,e,r){\"use strict\";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1}},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"applyPalette\",(function(){return Vt})),r.d(e,\"applyPaletteSync\",(function(){return Yt})),r.d(e,\"buildPalette\",(function(){return Wt})),r.d(e,\"buildPaletteSync\",(function(){return qt})),r.d(e,\"constants\",(function(){return o})),r.d(e,\"conversion\",(function(){return h})),r.d(e,\"distance\",(function(){return N})),r.d(e,\"image\",(function(){return Ft})),r.d(e,\"palette\",(function(){return tt})),r.d(e,\"quality\",(function(){return jt})),r.d(e,\"utils\",(function(){return ot}));var n=Object.defineProperty,i=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},a=(t,e,r)=>(((t,e,r)=>{e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r})(t,\"symbol\"!=typeof e?e+\"\":e,r),r),o={};i(o,{bt709:()=>s});var s={};i(s,{Y:()=>u,x:()=>f,y:()=>c});var u=(t=>(t[t.RED=.2126]=\"RED\",t[t.GREEN=.7152]=\"GREEN\",t[t.BLUE=.0722]=\"BLUE\",t[t.WHITE=1]=\"WHITE\",t))(u||{}),f=(t=>(t[t.RED=.64]=\"RED\",t[t.GREEN=.3]=\"GREEN\",t[t.BLUE=.15]=\"BLUE\",t[t.WHITE=.3127]=\"WHITE\",t))(f||{}),c=(t=>(t[t.RED=.33]=\"RED\",t[t.GREEN=.6]=\"GREEN\",t[t.BLUE=.06]=\"BLUE\",t[t.WHITE=.329]=\"WHITE\",t))(c||{}),h={};function l(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}function p(t,e,r){return{x:.4124*(t=l(t/255))+.3576*(e=l(e/255))+.1805*(r=l(r/255)),y:.2126*t+.7152*e+.0722*r,z:.0193*t+.1192*e+.9505*r}}i(h,{lab2rgb:()=>L,lab2xyz:()=>I,rgb2hsl:()=>x,rgb2lab:()=>M,rgb2xyz:()=>p,xyz2lab:()=>S,xyz2rgb:()=>P});var d={};function m(t){return t*(Math.PI/180)}function y(t,e,r){let n=t;return n<e&&(n=e),n<r&&(n=r),n}function b(t,e,r){let n=t;return n>e&&(n=e),n>r&&(n=r),n}function g(t,e,r){return t>r&&(t=r),t<e&&(t=e),0|t}function v(t){return(t=Math.round(t))>255?t=255:t<0&&(t=0),t}function w(t){return t>255?t=255:t<0&&(t=0),t}function _(t,e){const r=typeof t[0];let n;if(\"number\"===r||\"string\"===r){const r=Object.create(null);for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]||0===r[n]||(r[n]=e)}n=t.sort(((t,n)=>e(t,n)||r[t]-r[n]))}else{const r=t.slice(0);n=t.sort(((t,n)=>e(t,n)||r.indexOf(t)-r.indexOf(n)))}return n}function x(t,e,r){const n=b(t,e,r),i=y(t,e,r),a=i-n,o=(n+i)/510;let s=0;o>0&&o<1&&(s=a/(o<.5?i+n:510-i-n));let u=0;return a>0&&(u=i===t?(e-r)/a:i===e?2+(r-t)/a:4+(t-e)/a,u*=60,u<0&&(u+=360)),{h:u,s,l:o}}i(d,{degrees2radians:()=>m,inRange0to255:()=>w,inRange0to255Rounded:()=>v,intInRange:()=>g,max3:()=>y,min3:()=>b,stableSort:()=>_});var E=.95047,D=1,k=1.08883;function A(t){return t>.008856?t**(1/3):7.787*t+16/116}function S(t,e,r){if(t=A(t/E),e=A(e/D),r=A(r/k),116*e-16<0)throw new Error(\"xxx\");return{L:Math.max(0,116*e-16),a:500*(t-e),b:200*(e-r)}}function M(t,e,r){const n=p(t,e,r);return S(n.x,n.y,n.z)}var F=.95047,C=1,B=1.08883;function O(t){return t>.206893034?t**3:(t-16/116)/7.787}function I(t,e,r){const n=(t+16)/116,i=n-r/200;return{x:F*O(e/500+n),y:C*O(n),z:B*O(i)}}function T(t){return t>.0031308?1.055*t**(1/2.4)-.055:12.92*t}function P(t,e,r){const n=T(3.2406*t+-1.5372*e+-.4986*r),i=T(-.9689*t+1.8758*e+.0415*r),a=T(.0557*t+-.204*e+1.057*r);return{r:v(255*n),g:v(255*i),b:v(255*a)}}function L(t,e,r){const n=I(t,e,r);return P(n.x,n.y,n.z)}var N={};i(N,{AbstractDistanceCalculator:()=>j,AbstractEuclidean:()=>q,AbstractManhattan:()=>X,CIE94GraphicArts:()=>U,CIE94Textiles:()=>z,CIEDE2000:()=>H,CMetric:()=>Z,Euclidean:()=>W,EuclideanBT709:()=>Y,EuclideanBT709NoAlpha:()=>V,Manhattan:()=>J,ManhattanBT709:()=>Q,ManhattanNommyde:()=>K,PNGQuant:()=>$});var j=class{constructor(){a(this,\"_maxDistance\"),a(this,\"_whitePoint\"),this._setDefaults(),this.setWhitePoint(255,255,255,255)}setWhitePoint(t,e,r,n){this._whitePoint={r:t>0?255/t:0,g:e>0?255/e:0,b:r>0?255/r:0,a:n>0?255/n:0},this._maxDistance=this.calculateRaw(t,e,r,n,0,0,0,0)}calculateNormalized(t,e){return this.calculateRaw(t.r,t.g,t.b,t.a,e.r,e.g,e.b,e.a)/this._maxDistance}},R=class extends j{calculateRaw(t,e,r,n,i,a,o,s){const u=M(w(t*this._whitePoint.r),w(e*this._whitePoint.g),w(r*this._whitePoint.b)),f=M(w(i*this._whitePoint.r),w(a*this._whitePoint.g),w(o*this._whitePoint.b)),c=u.L-f.L,h=u.a-f.a,l=u.b-f.b,p=Math.sqrt(u.a*u.a+u.b*u.b),d=p-Math.sqrt(f.a*f.a+f.b*f.b);let m=h*h+l*l-d*d;m=m<0?0:Math.sqrt(m);const y=(s-n)*this._whitePoint.a*this._kA;return Math.sqrt((c/this._Kl)**2+(d/(1+this._K1*p))**2+(m/(1+this._K2*p))**2+y**2)}},z=class extends R{_setDefaults(){this._Kl=2,this._K1=.048,this._K2=.014,this._kA=12.5/255}},U=class extends R{_setDefaults(){this._Kl=1,this._K1=.045,this._K2=.015,this._kA=25/255}},G=class extends j{_setDefaults(){}static _calculatehp(t,e){const r=Math.atan2(t,e);return r>=0?r:r+G._deg360InRad}static _calculateRT(t,e){const r=e**7,n=2*Math.sqrt(r/(r+G._pow25to7)),i=G._deg30InRad*Math.exp(-(((t-G._deg275InRad)/G._deg25InRad)**2));return-Math.sin(2*i)*n}static _calculateT(t){return 1-.17*Math.cos(t-G._deg30InRad)+.24*Math.cos(2*t)+.32*Math.cos(3*t+G._deg6InRad)-.2*Math.cos(4*t-G._deg63InRad)}static _calculate_ahp(t,e,r,n){const i=r+n;return 0===t?i:e<=G._deg180InRad?i/2:i<G._deg360InRad?(i+G._deg360InRad)/2:(i-G._deg360InRad)/2}static _calculate_dHp(t,e,r,n){let i;return i=0===t?0:e<=G._deg180InRad?r-n:r<=n?r-n+G._deg360InRad:r-n-G._deg360InRad,2*Math.sqrt(t)*Math.sin(i/2)}calculateRaw(t,e,r,n,i,a,o,s){const u=M(w(t*this._whitePoint.r),w(e*this._whitePoint.g),w(r*this._whitePoint.b)),f=M(w(i*this._whitePoint.r),w(a*this._whitePoint.g),w(o*this._whitePoint.b)),c=(s-n)*this._whitePoint.a*G._kA,h=this.calculateRawInLab(u,f);return Math.sqrt(h+c*c)}calculateRawInLab(t,e){const r=t.L,n=t.a,i=t.b,a=e.L,o=e.a,s=e.b,u=((Math.sqrt(n*n+i*i)+Math.sqrt(o*o+s*s))/2)**7,f=.5*(1-Math.sqrt(u/(u+G._pow25to7))),c=(1+f)*n,h=(1+f)*o,l=Math.sqrt(c*c+i*i),p=Math.sqrt(h*h+s*s),d=l*p,m=G._calculatehp(i,c),y=G._calculatehp(s,h),b=Math.abs(m-y),g=a-r,v=p-l,w=G._calculate_dHp(d,b,y,m),_=G._calculate_ahp(d,b,m,y),x=(l+p)/2,E=((r+a)/2-50)**2,D=v/(1+.045*x),k=w/(1+.015*G._calculateT(_)*x);return(g/(1+.015*E/Math.sqrt(20+E)))**2+D**2+k**2+G._calculateRT(_,x)*D*k}},H=G;a(H,\"_kA\",25/255),a(H,\"_pow25to7\",25**7),a(H,\"_deg360InRad\",m(360)),a(H,\"_deg180InRad\",m(180)),a(H,\"_deg30InRad\",m(30)),a(H,\"_deg6InRad\",m(6)),a(H,\"_deg63InRad\",m(63)),a(H,\"_deg275InRad\",m(275)),a(H,\"_deg25InRad\",m(25));var Z=class extends j{calculateRaw(t,e,r,n,i,a,o,s){const u=(t+i)/2*this._whitePoint.r,f=(t-i)*this._whitePoint.r,c=(e-a)*this._whitePoint.g,h=(r-o)*this._whitePoint.b,l=((512+u)*f*f>>8)+4*c*c+((767-u)*h*h>>8),p=(s-n)*this._whitePoint.a;return Math.sqrt(l+p*p)}_setDefaults(){}},q=class extends j{calculateRaw(t,e,r,n,i,a,o,s){const u=i-t,f=a-e,c=o-r,h=s-n;return Math.sqrt(this._kR*u*u+this._kG*f*f+this._kB*c*c+this._kA*h*h)}},W=class extends q{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},Y=class extends q{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},V=class extends q{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=0}},X=class extends j{calculateRaw(t,e,r,n,i,a,o,s){let u=i-t,f=a-e,c=o-r,h=s-n;return u<0&&(u=0-u),f<0&&(f=0-f),c<0&&(c=0-c),h<0&&(h=0-h),this._kR*u+this._kG*f+this._kB*c+this._kA*h}},J=class extends X{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},K=class extends X{_setDefaults(){this._kR=.4984,this._kG=.8625,this._kB=.2979,this._kA=1}},Q=class extends X{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},$=class extends j{calculateRaw(t,e,r,n,i,a,o,s){const u=(s-n)*this._whitePoint.a;return this._colordifferenceCh(t*this._whitePoint.r,i*this._whitePoint.r,u)+this._colordifferenceCh(e*this._whitePoint.g,a*this._whitePoint.g,u)+this._colordifferenceCh(r*this._whitePoint.b,o*this._whitePoint.b,u)}_colordifferenceCh(t,e,r){const n=t-e,i=n+r;return n*n+i*i}_setDefaults(){}},tt={};i(tt,{AbstractPaletteQuantizer:()=>et,ColorHistogram:()=>gt,NeuQuant:()=>pt,NeuQuantFloat:()=>yt,RGBQuant:()=>wt,WuColorCube:()=>At,WuQuant:()=>Mt});var et=class{quantizeSync(){for(const t of this.quantize())if(t.palette)return t.palette;throw new Error(\"unreachable\")}},rt=class{constructor(){a(this,\"r\"),a(this,\"g\"),a(this,\"b\"),a(this,\"a\"),a(this,\"uint32\"),a(this,\"rgba\"),this.uint32=-1>>>0,this.r=this.g=this.b=this.a=0,this.rgba=new Array(4),this.rgba[0]=0,this.rgba[1]=0,this.rgba[2]=0,this.rgba[3]=0}static createByQuadruplet(t){const e=new rt;return e.r=0|t[0],e.g=0|t[1],e.b=0|t[2],e.a=0|t[3],e._loadUINT32(),e._loadQuadruplet(),e}static createByRGBA(t,e,r,n){const i=new rt;return i.r=0|t,i.g=0|e,i.b=0|r,i.a=0|n,i._loadUINT32(),i._loadQuadruplet(),i}static createByUint32(t){const e=new rt;return e.uint32=t>>>0,e._loadRGBA(),e._loadQuadruplet(),e}from(t){this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this.uint32=t.uint32,this.rgba[0]=t.r,this.rgba[1]=t.g,this.rgba[2]=t.b,this.rgba[3]=t.a}getLuminosity(t){let e=this.r,r=this.g,n=this.b;return t&&(e=Math.min(255,255-this.a+this.a*e/255),r=Math.min(255,255-this.a+this.a*r/255),n=Math.min(255,255-this.a+this.a*n/255)),.2126*e+.7152*r+.0722*n}_loadUINT32(){this.uint32=(this.a<<24|this.b<<16|this.g<<8|this.r)>>>0}_loadRGBA(){this.r=255&this.uint32,this.g=this.uint32>>>8&255,this.b=this.uint32>>>16&255,this.a=this.uint32>>>24&255}_loadQuadruplet(){this.rgba[0]=this.r,this.rgba[1]=this.g,this.rgba[2]=this.b,this.rgba[3]=this.a}},nt=class{constructor(){a(this,\"_pointArray\"),a(this,\"_width\"),a(this,\"_height\"),this._width=0,this._height=0,this._pointArray=[]}getWidth(){return this._width}getHeight(){return this._height}setWidth(t){this._width=t}setHeight(t){this._height=t}getPointArray(){return this._pointArray}clone(){const t=new nt;t._width=this._width,t._height=this._height;for(let e=0,r=this._pointArray.length;e<r;e++)t._pointArray[e]=rt.createByUint32(0|this._pointArray[e].uint32);return t}toUint32Array(){const t=this._pointArray.length,e=new Uint32Array(t);for(let r=0;r<t;r++)e[r]=this._pointArray[r].uint32;return e}toUint8Array(){return new Uint8Array(this.toUint32Array().buffer)}static fromHTMLImageElement(t){const e=t.naturalWidth,r=t.naturalHeight,n=document.createElement(\"canvas\");n.width=e,n.height=r;return n.getContext(\"2d\").drawImage(t,0,0,e,r,0,0,e,r),nt.fromHTMLCanvasElement(n)}static fromHTMLCanvasElement(t){const e=t.width,r=t.height,n=t.getContext(\"2d\").getImageData(0,0,e,r);return nt.fromImageData(n)}static fromImageData(t){const e=t.width,r=t.height;return nt.fromUint8Array(t.data,e,r)}static fromUint8Array(t,e,r){switch(Object.prototype.toString.call(t)){case\"[object Uint8ClampedArray]\":case\"[object Uint8Array]\":break;default:t=new Uint8Array(t)}const n=new Uint32Array(t.buffer);return nt.fromUint32Array(n,e,r)}static fromUint32Array(t,e,r){const n=new nt;n._width=e,n._height=r;for(let e=0,r=t.length;e<r;e++)n._pointArray[e]=rt.createByUint32(0|t[e]);return n}static fromBuffer(t,e,r){const n=new Uint32Array(t.buffer,t.byteOffset,t.byteLength/Uint32Array.BYTES_PER_ELEMENT);return nt.fromUint32Array(n,e,r)}};function it(t,e){const r=360/e;for(let n=1,i=r-r/2;n<e;n++,i+=r)if(t>=i&&t<i+r)return n;return 0}var at=class{constructor(){a(this,\"_pointContainer\"),a(this,\"_pointArray\",[]),a(this,\"_i32idx\",{}),this._pointContainer=new nt,this._pointContainer.setHeight(1),this._pointArray=this._pointContainer.getPointArray()}add(t){this._pointArray.push(t),this._pointContainer.setWidth(this._pointArray.length)}has(t){for(let e=this._pointArray.length-1;e>=0;e--)if(t.uint32===this._pointArray[e].uint32)return!0;return!1}getNearestColor(t,e){return this._pointArray[0|this._getNearestIndex(t,e)]}getPointContainer(){return this._pointContainer}_nearestPointFromCache(t){return\"number\"==typeof this._i32idx[t]?this._i32idx[t]:-1}_getNearestIndex(t,e){let r=this._nearestPointFromCache(\"\"+e.uint32);if(r>=0)return r;let n=Number.MAX_VALUE;r=0;for(let i=0,a=this._pointArray.length;i<a;i++){const a=this._pointArray[i],o=t.calculateRaw(e.r,e.g,e.b,e.a,a.r,a.g,a.b,a.a);o<n&&(n=o,r=i)}return this._i32idx[e.uint32]=r,r}sort(){this._i32idx={},this._pointArray.sort(((t,e)=>{const r=x(t.r,t.g,t.b),n=x(e.r,e.g,e.b),i=t.r===t.g&&t.g===t.b?0:1+it(r.h,10),a=(e.r===e.g&&e.g===e.b?0:1+it(n.h,10))-i;if(a)return-a;const o=t.getLuminosity(!0),s=e.getLuminosity(!0);if(s-o!=0)return s-o;const u=(100*n.s|0)-(100*r.s|0);return u?-u:0}))}},ot={};i(ot,{HueStatistics:()=>ut,Palette:()=>at,Point:()=>rt,PointContainer:()=>nt,ProgressTracker:()=>ct,arithmetic:()=>d});var st=class{constructor(){a(this,\"num\",0),a(this,\"cols\",[])}},ut=class{constructor(t,e){a(this,\"_numGroups\"),a(this,\"_minCols\"),a(this,\"_stats\"),a(this,\"_groupsFull\"),this._numGroups=t,this._minCols=e,this._stats=[];for(let e=0;e<=t;e++)this._stats[e]=new st;this._groupsFull=0}check(t){this._groupsFull===this._numGroups+1&&(this.check=()=>{});const e=255&t,r=t>>>8&255,n=t>>>16&255,i=e===r&&r===n?0:1+it(x(e,r,n).h,this._numGroups),a=this._stats[i],o=this._minCols;a.num++,a.num>o||(a.num===o&&this._groupsFull++,a.num<=o&&this._stats[i].cols.push(t))}injectIntoDictionary(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{t[e]?t[e]++:t[e]=1}))}injectIntoArray(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{-1===t.indexOf(e)&&t.push(e)}))}},ft=class{constructor(t,e){a(this,\"progress\"),a(this,\"_step\"),a(this,\"_range\"),a(this,\"_last\"),a(this,\"_progressRange\"),this._range=t,this._progressRange=e,this._step=Math.max(1,this._range/(ft.steps+1)|0),this._last=-this._step,this.progress=0}shouldNotify(t){return t-this._last>=this._step&&(this._last=t,this.progress=Math.min(this._progressRange*this._last/this._range,this._progressRange),!0)}},ct=ft;a(ct,\"steps\",100);var ht=class{constructor(t){a(this,\"r\"),a(this,\"g\"),a(this,\"b\"),a(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return rt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=0|t,this.g-=0|e,this.b-=0|r,this.a-=0|n}},lt=class extends et{constructor(t,e=256){super(),a(this,\"_pointArray\"),a(this,\"_networkSize\"),a(this,\"_network\"),a(this,\"_sampleFactor\"),a(this,\"_radPower\"),a(this,\"_freq\"),a(this,\"_bias\"),a(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new ht((t<<11)/this._networkSize|0),this._freq[t]=lt._initialBias/this._networkSize|0,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<lt._minpicturebytes&&(t=1);const r=30+(t-1)/3|0,n=e/t|0;let i,a=n/lt._nCycles|0,o=lt._initAlpha,s=(this._networkSize>>3)*lt._radiusBias,u=s>>lt._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*lt._radBias/(u*u))>>>0;i=e<lt._minpicturebytes?1:e%lt._prime1!=0?lt._prime1:e%lt._prime2!=0?lt._prime2:e%lt._prime3!=0?lt._prime3:lt._prime4;const f=new ct(n,99);for(let t=0,c=0;t<n;){f.shouldNotify(t)&&(yield{progress:f.progress});const n=this._pointArray[c],h=n.b<<3,l=n.g<<3,p=n.r<<3,d=n.a<<3,m=this._contest(h,l,p,d);if(this._alterSingle(o,m,h,l,p,d),0!==u&&this._alterNeighbour(u,m,h,l,p,d),c+=i,c>=e&&(c-=e),t++,0===a&&(a=1),t%a==0){o-=o/r|0,s-=s/lt._radiusDecrease|0,u=s>>lt._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*lt._radBias/(u*u))>>>0}}}_buildPalette(){const t=new at;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,a){let o=e-t;o<-1&&(o=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,f=e-1,c=1;for(;u<s||f>o;){const t=this._radPower[c++]/lt._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}if(f>o){const e=this._network[f--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}}}_alterSingle(t,e,r,n,i,a){t/=lt._initAlpha;const o=this._network[e];o.subtract(t*(o.r-i),t*(o.g-n),t*(o.b-r),t*(o.a-a))}_contest(t,e,r,n){let i=~(1<<31),a=i,o=-1,s=o;for(let u=0;u<this._networkSize;u++){const f=this._network[u],c=8160*this._distance.calculateNormalized(f,{r,g:e,b:t,a:n})|0;c<i&&(i=c,o=u);const h=c-(this._bias[u]>>lt._initialBiasShift-3);h<a&&(a=h,s=u);const l=this._freq[u]>>lt._betaShift;this._freq[u]-=l,this._bias[u]+=l<<lt._gammaShift}return this._freq[o]+=lt._beta,this._bias[o]-=lt._betaGamma,s}},pt=lt;a(pt,\"_prime1\",499),a(pt,\"_prime2\",491),a(pt,\"_prime3\",487),a(pt,\"_prime4\",503),a(pt,\"_minpicturebytes\",lt._prime4),a(pt,\"_nCycles\",100),a(pt,\"_initialBiasShift\",16),a(pt,\"_initialBias\",1<<lt._initialBiasShift),a(pt,\"_gammaShift\",10),a(pt,\"_betaShift\",10),a(pt,\"_beta\",lt._initialBias>>lt._betaShift),a(pt,\"_betaGamma\",lt._initialBias<<lt._gammaShift-lt._betaShift),a(pt,\"_radiusBiasShift\",6),a(pt,\"_radiusBias\",1<<lt._radiusBiasShift),a(pt,\"_radiusDecrease\",30),a(pt,\"_alphaBiasShift\",10),a(pt,\"_initAlpha\",1<<lt._alphaBiasShift),a(pt,\"_radBiasShift\",8),a(pt,\"_radBias\",1<<lt._radBiasShift),a(pt,\"_alphaRadBiasShift\",lt._alphaBiasShift+lt._radBiasShift),a(pt,\"_alphaRadBias\",1<<lt._alphaRadBiasShift);var dt=class{constructor(t){a(this,\"r\"),a(this,\"g\"),a(this,\"b\"),a(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return rt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=t,this.g-=e,this.b-=r,this.a-=n}},mt=class extends et{constructor(t,e=256){super(),a(this,\"_pointArray\"),a(this,\"_networkSize\"),a(this,\"_network\"),a(this,\"_sampleFactor\"),a(this,\"_radPower\"),a(this,\"_freq\"),a(this,\"_bias\"),a(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new dt((t<<11)/this._networkSize),this._freq[t]=mt._initialBias/this._networkSize,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<mt._minpicturebytes&&(t=1);const r=30+(t-1)/3,n=e/t;let i,a=n/mt._nCycles|0,o=mt._initAlpha,s=(this._networkSize>>3)*mt._radiusBias,u=s>>mt._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*mt._radBias/(u*u));i=e<mt._minpicturebytes?1:e%mt._prime1!=0?mt._prime1:e%mt._prime2!=0?mt._prime2:e%mt._prime3!=0?mt._prime3:mt._prime4;const f=new ct(n,99);for(let t=0,c=0;t<n;){f.shouldNotify(t)&&(yield{progress:f.progress});const n=this._pointArray[c],h=n.b<<3,l=n.g<<3,p=n.r<<3,d=n.a<<3,m=this._contest(h,l,p,d);if(this._alterSingle(o,m,h,l,p,d),0!==u&&this._alterNeighbour(u,m,h,l,p,d),c+=i,c>=e&&(c-=e),t++,0===a&&(a=1),t%a==0){o-=o/r,s-=s/mt._radiusDecrease,u=s>>mt._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*mt._radBias/(u*u))}}}_buildPalette(){const t=new at;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,a){let o=e-t;o<-1&&(o=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,f=e-1,c=1;for(;u<s||f>o;){const t=this._radPower[c++]/mt._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}if(f>o){const e=this._network[f--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}}}_alterSingle(t,e,r,n,i,a){t/=mt._initAlpha;const o=this._network[e];o.subtract(t*(o.r-i),t*(o.g-n),t*(o.b-r),t*(o.a-a))}_contest(t,e,r,n){let i=~(1<<31),a=i,o=-1,s=o;for(let u=0;u<this._networkSize;u++){const f=this._network[u],c=8160*this._distance.calculateNormalized(f,{r,g:e,b:t,a:n});c<i&&(i=c,o=u);const h=c-(this._bias[u]>>mt._initialBiasShift-3);h<a&&(a=h,s=u);const l=this._freq[u]>>mt._betaShift;this._freq[u]-=l,this._bias[u]+=l<<mt._gammaShift}return this._freq[o]+=mt._beta,this._bias[o]-=mt._betaGamma,s}},yt=mt;a(yt,\"_prime1\",499),a(yt,\"_prime2\",491),a(yt,\"_prime3\",487),a(yt,\"_prime4\",503),a(yt,\"_minpicturebytes\",mt._prime4),a(yt,\"_nCycles\",100),a(yt,\"_initialBiasShift\",16),a(yt,\"_initialBias\",1<<mt._initialBiasShift),a(yt,\"_gammaShift\",10),a(yt,\"_betaShift\",10),a(yt,\"_beta\",mt._initialBias>>mt._betaShift),a(yt,\"_betaGamma\",mt._initialBias<<mt._gammaShift-mt._betaShift),a(yt,\"_radiusBiasShift\",6),a(yt,\"_radiusBias\",1<<mt._radiusBiasShift),a(yt,\"_radiusDecrease\",30),a(yt,\"_alphaBiasShift\",10),a(yt,\"_initAlpha\",1<<mt._alphaBiasShift),a(yt,\"_radBiasShift\",8),a(yt,\"_radBias\",1<<mt._radBiasShift),a(yt,\"_alphaRadBiasShift\",mt._alphaBiasShift+mt._radBiasShift),a(yt,\"_alphaRadBias\",1<<mt._alphaRadBiasShift);var bt=class{constructor(t,e){a(this,\"_method\"),a(this,\"_hueStats\"),a(this,\"_histogram\"),a(this,\"_initColors\"),a(this,\"_minHueCols\"),this._method=t,this._minHueCols=e<<2,this._initColors=e<<2,this._hueStats=new ut(bt._hueGroups,this._minHueCols),this._histogram=Object.create(null)}sample(t){switch(this._method){case 1:this._colorStats1D(t);break;case 2:this._colorStats2D(t)}}getImportanceSortedColorsIDXI32(){const t=_(Object.keys(this._histogram),((t,e)=>this._histogram[e]-this._histogram[t]));if(0===t.length)return[];let e;switch(this._method){case 1:const r=Math.min(t.length,this._initColors),n=t[r-1],i=this._histogram[n];e=t.slice(0,r);let a=r;const o=t.length;for(;a<o&&this._histogram[t[a]]===i;)e.push(t[a++]);this._hueStats.injectIntoArray(e);break;case 2:e=t;break;default:throw new Error(\"Incorrect method\")}return e.map((t=>+t))}_colorStats1D(t){const e=this._histogram,r=t.getPointArray(),n=r.length;for(let t=0;t<n;t++){const n=r[t].uint32;this._hueStats.check(n),n in e?e[n]++:e[n]=1}}_colorStats2D(t){const e=t.getWidth(),r=t.getHeight(),n=t.getPointArray(),i=bt._boxSize[0],a=bt._boxSize[1],o=i*a,s=this._makeBoxes(e,r,i,a),u=this._histogram;s.forEach((t=>{let r=Math.round(t.w*t.h/o)*bt._boxPixels;r<2&&(r=2);const i={};this._iterateBox(t,e,(t=>{const e=n[t].uint32;this._hueStats.check(e),e in u?u[e]++:e in i?++i[e]>=r&&(u[e]=i[e]):i[e]=1}))})),this._hueStats.injectIntoDictionary(u)}_iterateBox(t,e,r){const n=t,i=n.y*e+n.x,a=(n.y+n.h-1)*e+(n.x+n.w-1),o=e-n.w+1;let s=0,u=i;do{r.call(this,u),u+=++s%n.w==0?o:1}while(u<=a)}_makeBoxes(t,e,r,n){const i=t%r,a=e%n,o=t-i,s=e-a,u=[];for(let f=0;f<e;f+=n)for(let e=0;e<t;e+=r)u.push({x:e,y:f,w:e===o?i:r,h:f===s?a:n});return u}},gt=bt;a(gt,\"_boxSize\",[64,64]),a(gt,\"_boxPixels\",2),a(gt,\"_hueGroups\",10);var vt=class{constructor(t,e,r){a(this,\"index\"),a(this,\"color\"),a(this,\"distance\"),this.index=t,this.color=e,this.distance=r}},wt=class extends et{constructor(t,e=256,r=2){super(),a(this,\"_colors\"),a(this,\"_initialDistance\"),a(this,\"_distanceIncrement\"),a(this,\"_histogram\"),a(this,\"_distance\"),this._distance=t,this._colors=e,this._histogram=new gt(r,e),this._initialDistance=.01,this._distanceIncrement=.005}sample(t){this._histogram.sample(t)}*quantize(){const t=this._histogram.getImportanceSortedColorsIDXI32();if(0===t.length)throw new Error(\"No colors in image\");yield*this._buildPalette(t)}*_buildPalette(t){const e=new at,r=e.getPointContainer().getPointArray(),n=new Array(t.length);for(let e=0;e<t.length;e++)r.push(rt.createByUint32(t[e])),n[e]=1;const i=r.length,a=[];let o=i,s=this._initialDistance;const u=new ct(o-this._colors,99);for(;o>this._colors;){a.length=0;for(let t=0;t<i;t++){if(u.shouldNotify(i-o)&&(yield{progress:u.progress}),0===n[t])continue;const e=r[t];for(let u=t+1;u<i;u++){if(0===n[u])continue;const t=r[u],i=this._distance.calculateNormalized(e,t);i<s&&(a.push(new vt(u,t,i)),n[u]=0,o--)}}s+=o>3*this._colors?this._initialDistance:this._distanceIncrement}if(o<this._colors){_(a,((t,e)=>e.distance-t.distance));let t=0;for(;o<this._colors&&t<a.length;){n[a[t].index]=1,o++,t++}}let f=r.length;for(let t=f-1;t>=0;t--)0===n[t]&&(t!==f-1&&(r[t]=r[f-1]),--f);r.length=f,e.sort(),yield{palette:e,progress:100}}};function _t(t){const e=[];for(let r=0;r<t;r++)e[r]=0;return e}function xt(t,e,r,n){const i=new Array(t);for(let a=0;a<t;a++){i[a]=new Array(e);for(let t=0;t<e;t++){i[a][t]=new Array(r);for(let e=0;e<r;e++){i[a][t][e]=new Array(n);for(let r=0;r<n;r++)i[a][t][e][r]=0}}}return i}function Et(t,e,r){const n=new Array(t);for(let i=0;i<t;i++){n[i]=new Array(e);for(let t=0;t<e;t++){n[i][t]=new Array(r);for(let e=0;e<r;e++)n[i][t][e]=0}}return n}function Dt(t,e,r,n,i){for(let a=0;a<e;a++){t[a]=[];for(let e=0;e<r;e++){t[a][e]=[];for(let r=0;r<n;r++)t[a][e][r]=i}}}function kt(t,e,r){for(let n=0;n<e;n++)t[n]=r}var At=class{constructor(){a(this,\"redMinimum\"),a(this,\"redMaximum\"),a(this,\"greenMinimum\"),a(this,\"greenMaximum\"),a(this,\"blueMinimum\"),a(this,\"blueMaximum\"),a(this,\"volume\"),a(this,\"alphaMinimum\"),a(this,\"alphaMaximum\")}},St=class extends et{constructor(t,e=256,r=5){super(),a(this,\"_reds\"),a(this,\"_greens\"),a(this,\"_blues\"),a(this,\"_alphas\"),a(this,\"_sums\"),a(this,\"_weights\"),a(this,\"_momentsRed\"),a(this,\"_momentsGreen\"),a(this,\"_momentsBlue\"),a(this,\"_momentsAlpha\"),a(this,\"_moments\"),a(this,\"_table\"),a(this,\"_pixels\"),a(this,\"_cubes\"),a(this,\"_colors\"),a(this,\"_significantBitsPerChannel\"),a(this,\"_maxSideIndex\"),a(this,\"_alphaMaxSideIndex\"),a(this,\"_sideSize\"),a(this,\"_alphaSideSize\"),a(this,\"_distance\"),this._distance=t,this._setQuality(r),this._initialize(e)}sample(t){const e=t.getPointArray();for(let t=0,r=e.length;t<r;t++)this._addColor(e[t]);this._pixels=this._pixels.concat(e)}*quantize(){yield*this._preparePalette();const t=new at;for(let e=0;e<this._colors;e++)if(this._sums[e]>0){const r=this._sums[e],n=this._reds[e]/r,i=this._greens[e]/r,a=this._blues[e]/r,o=this._alphas[e]/r,s=rt.createByRGBA(0|n,0|i,0|a,0|o);t.add(s)}t.sort(),yield{palette:t,progress:100}}*_preparePalette(){yield*this._calculateMoments();let t=0;const e=_t(this._colors);for(let r=1;r<this._colors;++r){this._cut(this._cubes[t],this._cubes[r])?(e[t]=this._cubes[t].volume>1?this._calculateVariance(this._cubes[t]):0,e[r]=this._cubes[r].volume>1?this._calculateVariance(this._cubes[r]):0):(e[t]=0,r--),t=0;let n=e[0];for(let i=1;i<=r;++i)e[i]>n&&(n=e[i],t=i);if(n<=0){this._colors=r+1;break}}const r=[],n=[],i=[],a=[];for(let t=0;t<this._colors;++t){const e=St._volume(this._cubes[t],this._weights);e>0?(r[t]=St._volume(this._cubes[t],this._momentsRed)/e|0,n[t]=St._volume(this._cubes[t],this._momentsGreen)/e|0,i[t]=St._volume(this._cubes[t],this._momentsBlue)/e|0,a[t]=St._volume(this._cubes[t],this._momentsAlpha)/e|0):(r[t]=0,n[t]=0,i[t]=0,a[t]=0)}this._reds=_t(this._colors+1),this._greens=_t(this._colors+1),this._blues=_t(this._colors+1),this._alphas=_t(this._colors+1),this._sums=_t(this._colors+1);for(let t=0,e=this._pixels.length;t<e;t++){const e=this._pixels[t];let o=-1,s=Number.MAX_VALUE;for(let t=0;t<this._colors;t++){const u=r[t],f=n[t],c=i[t],h=a[t],l=this._distance.calculateRaw(u,f,c,h,e.r,e.g,e.b,e.a);l<s&&(s=l,o=t)}this._reds[o]+=e.r,this._greens[o]+=e.g,this._blues[o]+=e.b,this._alphas[o]+=e.a,this._sums[o]++}}_addColor(t){const e=8-this._significantBitsPerChannel,r=1+(t.r>>e),n=1+(t.g>>e),i=1+(t.b>>e),a=1+(t.a>>e);this._weights[a][r][n][i]++,this._momentsRed[a][r][n][i]+=t.r,this._momentsGreen[a][r][n][i]+=t.g,this._momentsBlue[a][r][n][i]+=t.b,this._momentsAlpha[a][r][n][i]+=t.a,this._moments[a][r][n][i]+=this._table[t.r]+this._table[t.g]+this._table[t.b]+this._table[t.a]}*_calculateMoments(){const t=[],e=[],r=[],n=[],i=[],a=[],o=Et(this._sideSize,this._sideSize,this._sideSize),s=Et(this._sideSize,this._sideSize,this._sideSize),u=Et(this._sideSize,this._sideSize,this._sideSize),f=Et(this._sideSize,this._sideSize,this._sideSize),c=Et(this._sideSize,this._sideSize,this._sideSize),h=Et(this._sideSize,this._sideSize,this._sideSize);let l=0;const p=new ct(this._alphaMaxSideIndex*this._maxSideIndex,99);for(let d=1;d<=this._alphaMaxSideIndex;++d){Dt(o,this._sideSize,this._sideSize,this._sideSize,0),Dt(s,this._sideSize,this._sideSize,this._sideSize,0),Dt(u,this._sideSize,this._sideSize,this._sideSize,0),Dt(f,this._sideSize,this._sideSize,this._sideSize,0),Dt(c,this._sideSize,this._sideSize,this._sideSize,0),Dt(h,this._sideSize,this._sideSize,this._sideSize,0);for(let m=1;m<=this._maxSideIndex;++m,++l){p.shouldNotify(l)&&(yield{progress:p.progress}),kt(t,this._sideSize,0),kt(e,this._sideSize,0),kt(r,this._sideSize,0),kt(n,this._sideSize,0),kt(i,this._sideSize,0),kt(a,this._sideSize,0);for(let l=1;l<=this._maxSideIndex;++l){let p=0,y=0,b=0,g=0,v=0,w=0;for(let _=1;_<=this._maxSideIndex;++_)p+=this._weights[d][m][l][_],y+=this._momentsRed[d][m][l][_],b+=this._momentsGreen[d][m][l][_],g+=this._momentsBlue[d][m][l][_],v+=this._momentsAlpha[d][m][l][_],w+=this._moments[d][m][l][_],t[_]+=p,e[_]+=y,r[_]+=b,n[_]+=g,i[_]+=v,a[_]+=w,o[m][l][_]=o[m-1][l][_]+t[_],s[m][l][_]=s[m-1][l][_]+e[_],u[m][l][_]=u[m-1][l][_]+r[_],f[m][l][_]=f[m-1][l][_]+n[_],c[m][l][_]=c[m-1][l][_]+i[_],h[m][l][_]=h[m-1][l][_]+a[_],this._weights[d][m][l][_]=this._weights[d-1][m][l][_]+o[m][l][_],this._momentsRed[d][m][l][_]=this._momentsRed[d-1][m][l][_]+s[m][l][_],this._momentsGreen[d][m][l][_]=this._momentsGreen[d-1][m][l][_]+u[m][l][_],this._momentsBlue[d][m][l][_]=this._momentsBlue[d-1][m][l][_]+f[m][l][_],this._momentsAlpha[d][m][l][_]=this._momentsAlpha[d-1][m][l][_]+c[m][l][_],this._moments[d][m][l][_]=this._moments[d-1][m][l][_]+h[m][l][_]}}}}static _volumeFloat(t,e){return e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMaximum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum])}static _volume(t,e){return 0|St._volumeFloat(t,e)}static _top(t,e,r,n){let i;switch(e){case St._alpha:i=n[r][t.redMaximum][t.greenMaximum][t.blueMaximum]-n[r][t.redMaximum][t.greenMinimum][t.blueMaximum]-n[r][t.redMinimum][t.greenMaximum][t.blueMaximum]+n[r][t.redMinimum][t.greenMinimum][t.blueMaximum]-(n[r][t.redMaximum][t.greenMaximum][t.blueMinimum]-n[r][t.redMaximum][t.greenMinimum][t.blueMinimum]-n[r][t.redMinimum][t.greenMaximum][t.blueMinimum]+n[r][t.redMinimum][t.greenMinimum][t.blueMinimum]);break;case St._red:i=n[t.alphaMaximum][r][t.greenMaximum][t.blueMaximum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMaximum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMaximum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMaximum]-(n[t.alphaMaximum][r][t.greenMaximum][t.blueMinimum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMinimum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMinimum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMinimum]);break;case St._green:i=n[t.alphaMaximum][t.redMaximum][r][t.blueMaximum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMaximum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMaximum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMaximum]-(n[t.alphaMaximum][t.redMaximum][r][t.blueMinimum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMinimum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMinimum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMinimum]);break;case St._blue:i=n[t.alphaMaximum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMaximum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMaximum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMaximum][t.redMinimum][t.greenMinimum][r]-(n[t.alphaMinimum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMinimum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMinimum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMinimum][t.redMinimum][t.greenMinimum][r]);break;default:throw new Error(\"impossible\")}return 0|i}static _bottom(t,e,r){switch(e){case St._alpha:return-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case St._red:return-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case St._green:return-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case St._blue:return-r[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);default:return 0}}_calculateVariance(t){const e=St._volume(t,this._momentsRed),r=St._volume(t,this._momentsGreen),n=St._volume(t,this._momentsBlue),i=St._volume(t,this._momentsAlpha);return St._volumeFloat(t,this._moments)-(e*e+r*r+n*n+i*i)/St._volume(t,this._weights)}_maximize(t,e,r,n,i,a,o,s,u){const f=0|St._bottom(t,e,this._momentsRed),c=0|St._bottom(t,e,this._momentsGreen),h=0|St._bottom(t,e,this._momentsBlue),l=0|St._bottom(t,e,this._momentsAlpha),p=0|St._bottom(t,e,this._weights);let d=0,m=-1;for(let y=r;y<n;++y){let r=f+St._top(t,e,y,this._momentsRed),n=c+St._top(t,e,y,this._momentsGreen),b=h+St._top(t,e,y,this._momentsBlue),g=l+St._top(t,e,y,this._momentsAlpha),v=p+St._top(t,e,y,this._weights);if(0!==v){let t=r*r+n*n+b*b+g*g,e=t/v;r=i-r,n=a-n,b=o-b,g=s-g,v=u-v,0!==v&&(t=r*r+n*n+b*b+g*g,e+=t/v,e>d&&(d=e,m=y))}}return{max:d,position:m}}_cut(t,e){let r;const n=St._volume(t,this._momentsRed),i=St._volume(t,this._momentsGreen),a=St._volume(t,this._momentsBlue),o=St._volume(t,this._momentsAlpha),s=St._volume(t,this._weights),u=this._maximize(t,St._red,t.redMinimum+1,t.redMaximum,n,i,a,o,s),f=this._maximize(t,St._green,t.greenMinimum+1,t.greenMaximum,n,i,a,o,s),c=this._maximize(t,St._blue,t.blueMinimum+1,t.blueMaximum,n,i,a,o,s),h=this._maximize(t,St._alpha,t.alphaMinimum+1,t.alphaMaximum,n,i,a,o,s);if(h.max>=u.max&&h.max>=f.max&&h.max>=c.max){if(r=St._alpha,h.position<0)return!1}else r=u.max>=h.max&&u.max>=f.max&&u.max>=c.max?St._red:f.max>=h.max&&f.max>=u.max&&f.max>=c.max?St._green:St._blue;switch(e.redMaximum=t.redMaximum,e.greenMaximum=t.greenMaximum,e.blueMaximum=t.blueMaximum,e.alphaMaximum=t.alphaMaximum,r){case St._red:e.redMinimum=t.redMaximum=u.position,e.greenMinimum=t.greenMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case St._green:e.greenMinimum=t.greenMaximum=f.position,e.redMinimum=t.redMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case St._blue:e.blueMinimum=t.blueMaximum=c.position,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum,e.alphaMinimum=t.alphaMinimum;break;case St._alpha:e.alphaMinimum=t.alphaMaximum=h.position,e.blueMinimum=t.blueMinimum,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum}return t.volume=(t.redMaximum-t.redMinimum)*(t.greenMaximum-t.greenMinimum)*(t.blueMaximum-t.blueMinimum)*(t.alphaMaximum-t.alphaMinimum),e.volume=(e.redMaximum-e.redMinimum)*(e.greenMaximum-e.greenMinimum)*(e.blueMaximum-e.blueMinimum)*(e.alphaMaximum-e.alphaMinimum),!0}_initialize(t){this._colors=t,this._cubes=[];for(let e=0;e<t;e++)this._cubes[e]=new At;this._cubes[0].redMinimum=0,this._cubes[0].greenMinimum=0,this._cubes[0].blueMinimum=0,this._cubes[0].alphaMinimum=0,this._cubes[0].redMaximum=this._maxSideIndex,this._cubes[0].greenMaximum=this._maxSideIndex,this._cubes[0].blueMaximum=this._maxSideIndex,this._cubes[0].alphaMaximum=this._alphaMaxSideIndex,this._weights=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsRed=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsGreen=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsBlue=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsAlpha=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._moments=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._table=[];for(let t=0;t<256;++t)this._table[t]=t*t;this._pixels=[]}_setQuality(t=5){this._significantBitsPerChannel=t,this._maxSideIndex=1<<this._significantBitsPerChannel,this._alphaMaxSideIndex=this._maxSideIndex,this._sideSize=this._maxSideIndex+1,this._alphaSideSize=this._alphaMaxSideIndex+1}},Mt=St;a(Mt,\"_alpha\",3),a(Mt,\"_red\",2),a(Mt,\"_green\",1),a(Mt,\"_blue\",0);var Ft={};i(Ft,{AbstractImageQuantizer:()=>Ct,ErrorDiffusionArray:()=>It,ErrorDiffusionArrayKernel:()=>Ot,ErrorDiffusionRiemersma:()=>Nt,NearestColor:()=>Bt});var Ct=class{quantizeSync(t,e){for(const r of this.quantize(t,e))if(r.pointContainer)return r.pointContainer;throw new Error(\"unreachable\")}},Bt=class extends Ct{constructor(t){super(),a(this,\"_distance\"),this._distance=t}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),a=new ct(i,99);for(let t=0;t<i;t++){a.shouldNotify(t)&&(yield{progress:a.progress});for(let i=0,a=t*n;i<n;i++,a++){const t=r[a];t.from(e.getNearestColor(this._distance,t))}}yield{pointContainer:t,progress:100}}},Ot=(t=>(t[t.FloydSteinberg=0]=\"FloydSteinberg\",t[t.FalseFloydSteinberg=1]=\"FalseFloydSteinberg\",t[t.Stucki=2]=\"Stucki\",t[t.Atkinson=3]=\"Atkinson\",t[t.Jarvis=4]=\"Jarvis\",t[t.Burkes=5]=\"Burkes\",t[t.Sierra=6]=\"Sierra\",t[t.TwoSierra=7]=\"TwoSierra\",t[t.SierraLite=8]=\"SierraLite\",t))(Ot||{}),It=class extends Ct{constructor(t,e,r=!0,n=0,i=!1){super(),a(this,\"_minColorDistance\"),a(this,\"_serpentine\"),a(this,\"_kernel\"),a(this,\"_calculateErrorLikeGIMP\"),a(this,\"_distance\"),this._setKernel(e),this._distance=t,this._minColorDistance=n,this._serpentine=r,this._calculateErrorLikeGIMP=i}*quantize(t,e){const r=t.getPointArray(),n=new rt,i=t.getWidth(),a=t.getHeight(),o=[];let s=1,u=1;for(const t of this._kernel){const e=t[2]+1;u<e&&(u=e)}for(let t=0;t<u;t++)this._fillErrorLine(o[t]=[],i);const f=new ct(a,99);for(let t=0;t<a;t++){f.shouldNotify(t)&&(yield{progress:f.progress}),this._serpentine&&(s*=-1);const u=t*i,c=1===s?0:i-1,h=1===s?i:-1;this._fillErrorLine(o[0],i),o.push(o.shift());const l=o[0];for(let f=c,p=u+c;f!==h;f+=s,p+=s){const u=r[p],c=l[f];n.from(u);const h=rt.createByRGBA(v(u.r+c[0]),v(u.g+c[1]),v(u.b+c[2]),v(u.a+c[3])),d=e.getNearestColor(this._distance,h);if(u.from(d),this._minColorDistance){if(this._distance.calculateNormalized(n,d)<this._minColorDistance)continue}let m,y,b,g;this._calculateErrorLikeGIMP?(m=h.r-d.r,y=h.g-d.g,b=h.b-d.b,g=h.a-d.a):(m=n.r-d.r,y=n.g-d.g,b=n.b-d.b,g=n.a-d.a);const w=1===s?0:this._kernel.length-1,_=1===s?this._kernel.length:-1;for(let e=w;e!==_;e+=s){const r=this._kernel[e][1]*s,n=this._kernel[e][2];if(r+f>=0&&r+f<i&&n+t>=0&&n+t<a){const t=this._kernel[e][0],i=o[n][r+f];i[0]+=m*t,i[1]+=y*t,i[2]+=b*t,i[3]+=g*t}}}}yield{pointContainer:t,progress:100}}_fillErrorLine(t,e){t.length>e&&(t.length=e);const r=t.length;for(let e=0;e<r;e++){const r=t[e];r[0]=r[1]=r[2]=r[3]=0}for(let n=r;n<e;n++)t[n]=[0,0,0,0]}_setKernel(t){switch(t){case 0:this._kernel=[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]];break;case 1:this._kernel=[[3/8,1,0],[3/8,0,1],[2/8,1,1]];break;case 2:this._kernel=[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]];break;case 3:this._kernel=[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]];break;case 4:this._kernel=[[7/48,1,0],[5/48,2,0],[3/48,-2,1],[5/48,-1,1],[7/48,0,1],[5/48,1,1],[3/48,2,1],[1/48,-2,2],[3/48,-1,2],[5/48,0,2],[3/48,1,2],[1/48,2,2]];break;case 5:this._kernel=[[.25,1,0],[4/32,2,0],[2/32,-2,1],[4/32,-1,1],[.25,0,1],[4/32,1,1],[2/32,2,1]];break;case 6:this._kernel=[[5/32,1,0],[3/32,2,0],[2/32,-2,1],[4/32,-1,1],[5/32,0,1],[4/32,1,1],[2/32,2,1],[2/32,-1,2],[3/32,0,2],[2/32,1,2]];break;case 7:this._kernel=[[.25,1,0],[3/16,2,0],[1/16,-2,1],[2/16,-1,1],[3/16,0,1],[2/16,1,1],[1/16,2,1]];break;case 8:this._kernel=[[.5,1,0],[1/4,-1,1],[1/4,0,1]];break;default:throw new Error(`ErrorDiffusionArray: unknown kernel = ${t}`)}}};function*Tt(t,e,r){const n=Math.max(t,e),i={width:t,height:e,level:Math.floor(Math.log(n)/Math.log(2)+1),callback:r,tracker:new ct(t*e,99),index:0,x:0,y:0};yield*Pt(i,1),Lt(i,0)}function*Pt(t,e){if(!(t.level<1)){switch(t.tracker.shouldNotify(t.index)&&(yield{progress:t.tracker.progress}),t.level--,e){case 2:yield*Pt(t,1),Lt(t,3),yield*Pt(t,2),Lt(t,4),yield*Pt(t,2),Lt(t,2),yield*Pt(t,4);break;case 3:yield*Pt(t,4),Lt(t,2),yield*Pt(t,3),Lt(t,1),yield*Pt(t,3),Lt(t,3),yield*Pt(t,1);break;case 1:yield*Pt(t,2),Lt(t,4),yield*Pt(t,1),Lt(t,3),yield*Pt(t,1),Lt(t,1),yield*Pt(t,3);break;case 4:yield*Pt(t,3),Lt(t,1),yield*Pt(t,4),Lt(t,2),yield*Pt(t,4),Lt(t,4),yield*Pt(t,2)}t.level++}}function Lt(t,e){switch(t.x>=0&&t.x<t.width&&t.y>=0&&t.y<t.height&&(t.callback(t.x,t.y),t.index++),e){case 2:t.x--;break;case 3:t.x++;break;case 1:t.y--;break;case 4:t.y++}}var Nt=class extends Ct{constructor(t,e=16,r=1){super(),a(this,\"_distance\"),a(this,\"_weights\"),a(this,\"_errorQueueSize\"),this._distance=t,this._errorQueueSize=e,this._weights=Nt._createWeights(r,e)}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),a=[];let o=0;for(let t=0;t<this._errorQueueSize;t++)a[t]={r:0,g:0,b:0,a:0};yield*Tt(n,i,((t,i)=>{const s=r[t+i*n];let{r:u,g:f,b:c,a:h}=s;for(let t=0;t<this._errorQueueSize;t++){const e=this._weights[t],r=a[(t+o)%this._errorQueueSize];u+=r.r*e,f+=r.g*e,c+=r.b*e,h+=r.a*e}const l=rt.createByRGBA(v(u),v(f),v(c),v(h)),p=e.getNearestColor(this._distance,l);o=(o+1)%this._errorQueueSize;const d=(o+this._errorQueueSize-1)%this._errorQueueSize;a[d].r=s.r-p.r,a[d].g=s.g-p.g,a[d].b=s.b-p.b,a[d].a=s.a-p.a,s.from(p)})),yield{pointContainer:t,progress:100}}static _createWeights(t,e){const r=[],n=Math.exp(Math.log(e)/(e-1));for(let i=0,a=1;i<e;i++)r[i]=(a+.5|0)/e*t,a*=n;return r}},jt={};i(jt,{ssim:()=>Ut});var Rt=.01,zt=.03;function Ut(t,e){if(t.getHeight()!==e.getHeight()||t.getWidth()!==e.getWidth())throw new Error(\"Images have different sizes!\");const r=(255*Rt)**2,n=(255*zt)**2;let i=0,a=0;return function(t,e,r){const n=8,i=t.getWidth(),a=t.getHeight();for(let o=0;o<a;o+=n)for(let s=0;s<i;s+=n){const u=Math.min(n,i-s),f=Math.min(n,a-o),c=Gt(t,s,o,u,f),h=Gt(e,s,o,u,f);r(c,h,Ht(c),Ht(h))}}(t,e,((t,e,o,s)=>{let u=0,f=0,c=0;for(let r=0;r<t.length;r++)f+=(t[r]-o)**2,c+=(e[r]-s)**2,u+=(t[r]-o)*(e[r]-s);const h=t.length-1;f/=h,c/=h,u/=h;a+=(2*o*s+r)*(2*u+n)/((o**2+s**2+r)*(f+c+n)),i++})),a/i}function Gt(t,e,r,n,i){const a=t.getPointArray(),o=[];let s=0;for(let u=r;u<r+i;u++){const r=u*t.getWidth();for(let t=e;t<e+n;t++){const e=a[r+t];o[s]=.2126*e.r+.7152*e.g+.0722*e.b,s++}}return o}function Ht(t){let e=0;for(const r of t)e+=r;return e/t.length}var Zt=\"function\"==typeof setImmediate?setImmediate:\"undefined\"!=typeof process&&\"function\"==typeof(null==process?void 0:process.nextTick)?t=>process.nextTick(t):t=>setTimeout(t,0);function qt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n}={}){const i=Kt(Xt(e),r,n);return t.forEach((t=>i.sample(t))),i.quantizeSync()}async function Wt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n,onProgress:i}={}){return new Promise(((a,o)=>{const s=Kt(Xt(e),r,n);let u;t.forEach((t=>s.sample(t)));const f=s.quantize(),c=()=>{try{const t=f.next();t.done?a(u):(t.value.palette&&(u=t.value.palette),i&&i(t.value.progress),Zt(c))}catch(t){o(t)}};Zt(c)}))}function Yt(t,e,{colorDistanceFormula:r,imageQuantization:n}={}){return Jt(Xt(r),n).quantizeSync(t,e)}async function Vt(t,e,{colorDistanceFormula:r,imageQuantization:n,onProgress:i}={}){return new Promise(((a,o)=>{let s;const u=Jt(Xt(r),n).quantize(t,e),f=()=>{try{const t=u.next();t.done?a(s):(t.value.pointContainer&&(s=t.value.pointContainer),i&&i(t.value.progress),Zt(f))}catch(t){o(t)}};Zt(f)}))}function Xt(t=\"euclidean-bt709\"){switch(t){case\"cie94-graphic-arts\":return new U;case\"cie94-textiles\":return new z;case\"ciede2000\":return new H;case\"color-metric\":return new Z;case\"euclidean\":return new W;case\"euclidean-bt709\":return new Y;case\"euclidean-bt709-noalpha\":return new V;case\"manhattan\":return new J;case\"manhattan-bt709\":return new Q;case\"manhattan-nommyde\":return new K;case\"pngquant\":return new $;default:throw new Error(`Unknown colorDistanceFormula ${t}`)}}function Jt(t,e=\"floyd-steinberg\"){switch(e){case\"nearest\":return new Bt(t);case\"riemersma\":return new Nt(t);case\"floyd-steinberg\":return new It(t,0);case\"false-floyd-steinberg\":return new It(t,1);case\"stucki\":return new It(t,2);case\"atkinson\":return new It(t,3);case\"jarvis\":return new It(t,4);case\"burkes\":return new It(t,5);case\"sierra\":return new It(t,6);case\"two-sierra\":return new It(t,7);case\"sierra-lite\":return new It(t,8);default:throw new Error(`Unknown imageQuantization ${e}`)}}function Kt(t,e=\"wuquant\",r=256){switch(e){case\"neuquant\":return new pt(t,r);case\"rgbquant\":return new wt(t,r);case\"wuquant\":return new Mt(t,r);case\"neuquant-float\":return new yt(t,r);default:throw new Error(`Unknown paletteQuantization ${e}`)}}},function(t,e,r){\"use strict\";var n=r(208),i=r(209),a=r(210),o=r(98);function s(t,e,r){var n=t;return i(e)?(r=e,\"string\"==typeof t&&(n={uri:t})):n=o(e,{uri:t}),n.callback=r,n}function u(t,e,r){return f(e=s(t,e,r))}function f(t){if(void 0===t.callback)throw new Error(\"callback argument missing\");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if(\"document\"===t.responseType)return t.responseXML;var e=t.responseXML&&\"parsererror\"===t.responseXML.documentElement.nodeName;if(\"\"===t.responseType&&!e)return t.responseXML}catch(t){}return null}(c),b)try{t=JSON.parse(t)}catch(t){}return t}function i(t){return clearTimeout(h),t instanceof Error||(t=new Error(\"\"+(t||\"Unknown XMLHttpRequest Error\"))),t.statusCode=0,r(t,g)}function o(){if(!f){var e;clearTimeout(h),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=g,o=null;return 0!==e?(i={body:n(),statusCode:e,method:p,headers:{},url:l,rawRequest:c},c.getAllResponseHeaders&&(i.headers=a(c.getAllResponseHeaders()))):o=new Error(\"Internal XMLHttpRequest Error\"),r(o,i,i.body)}}var s,f,c=t.xhr||null;c||(c=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var h,l=c.url=t.uri||t.url,p=c.method=t.method||\"GET\",d=t.body||t.data,m=c.headers=t.headers||{},y=!!t.sync,b=!1,g={body:void 0,headers:{},statusCode:0,method:p,url:l,rawRequest:c};if(\"json\"in t&&!1!==t.json&&(b=!0,m.accept||m.Accept||(m.Accept=\"application/json\"),\"GET\"!==p&&\"HEAD\"!==p&&(m[\"content-type\"]||m[\"Content-Type\"]||(m[\"Content-Type\"]=\"application/json\"),d=JSON.stringify(!0===t.json?d:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(o,0)},c.onload=o,c.onerror=i,c.onprogress=function(){},c.onabort=function(){f=!0},c.ontimeout=i,c.open(p,l,!y,t.username,t.password),y||(c.withCredentials=!!t.withCredentials),!y&&t.timeout>0&&(h=setTimeout((function(){if(!f){f=!0,c.abort(\"timeout\");var t=new Error(\"XMLHttpRequest timeout\");t.code=\"ETIMEDOUT\",i(t)}}),t.timeout)),c.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&c.setRequestHeader(s,m[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error(\"Headers cannot be set on an XDomainRequest object\");return\"responseType\"in t&&(c.responseType=t.responseType),\"beforeSend\"in t&&\"function\"==typeof t.beforeSend&&t.beforeSend(c),c.send(d||null),c}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest=\"withCredentials\"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}([\"get\",\"put\",\"post\",\"patch\",\"head\",\"delete\"],(function(t){u[\"delete\"===t?\"del\":t]=function(e,r,n){return(r=s(e,r,n)).method=t.toUpperCase(),f(r)}}))},function(t,e,r){(function(e){var r;r=\"undefined\"!=typeof window?window:void 0!==e?e:\"undefined\"!=typeof self?self:{},t.exports=r}).call(this,r(10))},function(t,e){t.exports=function(t){if(!t)return!1;var e=r.call(t);return\"[object Function]\"===e||\"function\"==typeof t&&\"[object RegExp]\"!==e||\"undefined\"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var r=Object.prototype.toString},function(t,e){var r=function(t){return t.replace(/^\\s+|\\s+$/g,\"\")};t.exports=function(t){if(!t)return{};for(var e,n={},i=r(t).split(\"\\n\"),a=0;a<i.length;a++){var o=i[a],s=o.indexOf(\":\"),u=r(o.slice(0,s)).toLowerCase(),f=r(o.slice(s+1));void 0===n[u]?n[u]=f:(e=n[u],\"[object Array]\"===Object.prototype.toString.call(e)?n[u].push(f):n[u]=[n[u],f])}return n}},function(t,e){function r(t,e){if(!(t=t.replace(/\\t+/g,\" \").trim()))return null;var r=t.indexOf(\" \");if(-1===r)throw new Error(\"no named row at line \"+e);var i=t.substring(0,r);t=(t=(t=(t=t.substring(r+1)).replace(/letter=[\\'\\\"]\\S+[\\'\\\"]/gi,\"\")).split(\"=\")).map((function(t){return t.trim().match(/(\".*?\"|[^\"\\s]+)+(?=\\s*|\\s*$)/g)}));for(var a=[],o=0;o<t.length;o++){var s=t[o];0===o?a.push({key:s[0],data:\"\"}):o===t.length-1?a[a.length-1].data=n(s[0]):(a[a.length-1].data=n(s[0]),a.push({key:s[1],data:\"\"}))}var u={key:i,data:{}};return a.forEach((function(t){u.data[t.key]=t.data})),u}function n(t){return t&&0!==t.length?0===t.indexOf('\"')||0===t.indexOf(\"'\")?t.substring(1,t.length-1):-1!==t.indexOf(\",\")?function(t){return t.split(\",\").map((function(t){return parseInt(t,10)}))}(t):parseInt(t,10):\"\"}t.exports=function(t){if(!t)throw new Error(\"no data provided\");var e={pages:[],chars:[],kernings:[]},n=(t=t.toString().trim()).split(/\\r\\n?|\\n/g);if(0===n.length)throw new Error(\"no data in BMFont file\");for(var i=0;i<n.length;i++){var a=r(n[i],i);if(a)if(\"page\"===a.key){if(\"number\"!=typeof a.data.id)throw new Error(\"malformed file at line \"+i+\" -- needs page id=N\");if(\"string\"!=typeof a.data.file)throw new Error(\"malformed file at line \"+i+' -- needs page file=\"path\"');e.pages[a.data.id]=a.data.file}else\"chars\"===a.key||\"kernings\"===a.key||(\"char\"===a.key?e.chars.push(a.data):\"kerning\"===a.key?e.kernings.push(a.data):e[a.key]=a.data)}return e}},function(t,e,r){var n=r(213),i=r(214),a={scaleh:\"scaleH\",scalew:\"scaleW\",stretchh:\"stretchH\",lineheight:\"lineHeight\",alphachnl:\"alphaChnl\",redchnl:\"redChnl\",greenchnl:\"greenChnl\",bluechnl:\"blueChnl\"};function o(t){var e=function(t){for(var e=[],r=0;r<t.attributes.length;r++)e.push(t.attributes[r]);return e}(t);return e.reduce((function(t,e){var r;return t[(r=e.nodeName,a[r.toLowerCase()]||r)]=e.nodeValue,t}),{})}t.exports=function(t){t=t.toString();var e=i(t),r={pages:[],chars:[],kernings:[]};[\"info\",\"common\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];i&&(r[t]=n(o(i)))}));var a=e.getElementsByTagName(\"pages\")[0];if(!a)throw new Error(\"malformed file -- no <pages> element\");for(var s=a.getElementsByTagName(\"page\"),u=0;u<s.length;u++){var f=s[u],c=parseInt(f.getAttribute(\"id\"),10),h=f.getAttribute(\"file\");if(isNaN(c))throw new Error('malformed file -- page \"id\" attribute is NaN');if(!h)throw new Error('malformed file -- needs page \"file\" attribute');r.pages[parseInt(c,10)]=h}return[\"chars\",\"kernings\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];if(i)for(var a=t.substring(0,t.length-1),s=i.getElementsByTagName(a),u=0;u<s.length;u++){var f=s[u];r[t].push(n(o(f)))}})),r}},function(t,e){var r=\"chasrset\";t.exports=function(t){for(var e in t=Object.assign({},t),r in t&&(t.charset=t[r],delete t[r]),t)\"face\"!==e&&\"charset\"!==e&&(t[e]=\"padding\"===e||\"spacing\"===e?t[e].split(\",\").map((function(t){return parseInt(t,10)})):parseInt(t[e],10));return t}},function(t,e){t.exports=void 0!==self.DOMParser?function(t){return(new self.DOMParser).parseFromString(t,\"application/xml\")}:void 0!==self.ActiveXObject&&new self.ActiveXObject(\"Microsoft.XMLDOM\")?function(t){var e=new self.ActiveXObject(\"Microsoft.XMLDOM\");return e.async=\"false\",e.loadXML(t),e}:function(t){var e=document.createElement(\"div\");return e.innerHTML=t,e}},function(t,e){var r=[66,77,70];function n(t,e,r){if(r>e.length-1)return 0;var n=e.readUInt8(r++),a=e.readInt32LE(r);switch(r+=4,n){case 1:t.info=function(t,e){var r={};r.size=t.readInt16LE(e);var n=t.readUInt8(e+2);r.smooth=n>>7&1,r.unicode=n>>6&1,r.italic=n>>5&1,r.bold=n>>4&1,n>>3&1&&(r.fixedHeight=1);return r.charset=t.readUInt8(e+3)||\"\",r.stretchH=t.readUInt16LE(e+4),r.aa=t.readUInt8(e+6),r.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],r.spacing=[t.readInt8(e+11),t.readInt8(e+12)],r.outline=t.readUInt8(e+13),r.face=function(t,e){return i(t,e).toString(\"utf8\")}(t,e+14),r}(e,r);break;case 2:t.common=function(t,e){var r={};r.lineHeight=t.readUInt16LE(e),r.base=t.readUInt16LE(e+2),r.scaleW=t.readUInt16LE(e+4),r.scaleH=t.readUInt16LE(e+6),r.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return r.packed=0,r.alphaChnl=t.readUInt8(e+11),r.redChnl=t.readUInt8(e+12),r.greenChnl=t.readUInt8(e+13),r.blueChnl=t.readUInt8(e+14),r}(e,r);break;case 3:t.pages=function(t,e,r){for(var n=[],a=i(t,e),o=a.length+1,s=r/o,u=0;u<s;u++)n[u]=t.slice(e,e+a.length).toString(\"utf8\"),e+=o;return n}(e,r,a);break;case 4:t.chars=function(t,e,r){for(var n=[],i=r/20,a=0;a<i;a++){var o={},s=20*a;o.id=t.readUInt32LE(e+0+s),o.x=t.readUInt16LE(e+4+s),o.y=t.readUInt16LE(e+6+s),o.width=t.readUInt16LE(e+8+s),o.height=t.readUInt16LE(e+10+s),o.xoffset=t.readInt16LE(e+12+s),o.yoffset=t.readInt16LE(e+14+s),o.xadvance=t.readInt16LE(e+16+s),o.page=t.readUInt8(e+18+s),o.chnl=t.readUInt8(e+19+s),n[a]=o}return n}(e,r,a);break;case 5:t.kernings=function(t,e,r){for(var n=[],i=r/10,a=0;a<i;a++){var o={},s=10*a;o.first=t.readUInt32LE(e+0+s),o.second=t.readUInt32LE(e+4+s),o.amount=t.readInt16LE(e+8+s),n[a]=o}return n}(e,r,a)}return 5+a}function i(t,e){for(var r=e;r<t.length&&0!==t[r];r++);return t.slice(e,r)}t.exports=function(t){if(t.length<6)throw new Error(\"invalid buffer length for BMFont\");var e=r.every((function(e,r){return t.readUInt8(r)===e}));if(!e)throw new Error(\"BMFont missing BMF byte header\");var i=3;if(t.readUInt8(i++)>3)throw new Error(\"Only supports BMFont Binary v3 (BMFont App v1.10)\");for(var a={kernings:[],chars:[]},o=0;o<5;o++)i+=n(a,t,i);return a}},function(t,e,r){(function(e){var n=r(217),i=e.from([66,77,70,3]);t.exports=function(t){return\"string\"==typeof t?\"BMF\"===t.substring(0,3):t.length>4&&n(t.slice(0,4),i)}}).call(this,r(2).Buffer)},function(t,e,r){var n=r(2).Buffer;t.exports=function(t,e){if(n.isBuffer(t)&&n.isBuffer(e)){if(\"function\"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}}},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e,r,n){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,r,n)}i.prototype.run=function(t,e,r,n){this._init(t,e,r,n);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var a=this._regionQuery(i);if(a.length<this.minPts)this.noise.push(i);else{var o=this.clusters.length;this.clusters.push([]),this._addToCluster(i,o),this._expandCluster(o,a)}}return this.clusters},i.prototype._init=function(t,e,r,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+n(t)+\" given\");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),r&&(this.minPts=r),i&&(this.distance=i)},i.prototype._expandCluster=function(t,e){for(var r=0;r<e.length;r++){var n=e[r];if(1!==this._visited[n]){this._visited[n]=1;var i=this._regionQuery(n);i.length>=this.minPts&&(e=this._mergeArrays(e,i))}1!==this._assigned[n]&&this._addToCluster(n,t)}},i.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},i.prototype._regionQuery=function(t){for(var e=[],r=0;r<this._datasetLength;r++){this.distance(this.dataset[t],this.dataset[r])<this.epsilon&&e.push(r)}return e},i.prototype._mergeArrays=function(t,e){for(var r=e.length,n=0;n<r;n++){var i=e[n];t.indexOf(i)<0&&t.push(i)}return t},i.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=i)},function(t,e,r){function n(t,e,r){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,r)}n.prototype.init=function(t,e,r){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==r&&(this.distance=r)},n.prototype.run=function(t,e){this.init(t,e);for(var r=this.dataset.length,n=0;n<this.k;n++)this.centroids[n]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var a=0;a<this.k;a++){for(var o=new Array(c),s=0,u=0;u<c;u++)o[u]=0;for(var f=0;f<r;f++){var c=this.dataset[f].length;if(a===this.assignments[f]){for(u=0;u<c;u++)o[u]+=this.dataset[f][u];s++}}if(s>0){for(u=0;u<c;u++)o[u]/=s;this.centroids[a]=o}else this.centroids[a]=this.randomCentroid(),i=!0}}return this.getClusters()},n.prototype.randomCentroid=function(){var t,e,r=this.dataset.length-1;do{e=Math.round(Math.random()*r),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},n.prototype.assign=function(){for(var t,e=!1,r=this.dataset.length,n=0;n<r;n++)(t=this.argmin(this.dataset[n],this.centroids,this.distance))!=this.assignments[n]&&(this.assignments[n]=t,e=!0);return e},n.prototype.getClusters=function(){for(var t,e=new Array(this.k),r=0;r<this.assignments.length;r++)void 0===e[t=this.assignments[r]]&&(e[t]=[]),e[t].push(r);return e},n.prototype.argmin=function(t,e,r){for(var n,i=Number.MAX_VALUE,a=0,o=e.length,s=0;s<o;s++)(n=r(t,e[s]))<i&&(i=n,a=s);return a},n.prototype.distance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)},t.exports&&(t.exports=n)},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}if(t.exports)var i=r(99);function a(t,e,r,n){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,r,n)}a.prototype.run=function(t,e,r,n){this._init(t,e,r,n);for(var a=0,o=this.dataset.length;a<o;a++)if(1!==this._processed[a]){this._processed[a]=1,this.clusters.push([a]);var s=this.clusters.length-1;this._orderedList.push(a);var u=new i(null,null,\"asc\"),f=this._regionQuery(a);void 0!==this._distanceToCore(a)&&(this._updateQueue(a,f,u),this._expandCluster(s,u))}return this.clusters},a.prototype.getReachabilityPlot=function(){for(var t=[],e=0,r=this._orderedList.length;e<r;e++){var n=this._orderedList[e],i=this._reachability[n];t.push([n,i])}return t},a.prototype._init=function(t,e,r,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+n(t)+\" given\");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),r&&(this.minPts=r),i&&(this.distance=i)},a.prototype._updateQueue=function(t,e,r){var n=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===n._processed[e]){var i=n.distance(n.dataset[t],n.dataset[e]),a=Math.max(n._coreDistance,i);void 0===n._reachability[e]?(n._reachability[e]=a,r.insert(e,a)):a<n._reachability[e]&&(n._reachability[e]=a,r.remove(e),r.insert(e,a))}}))},a.prototype._expandCluster=function(t,e){for(var r=e.getElements(),n=0,i=r.length;n<i;n++){var a=r[n];if(void 0===this._processed[a]){var o=this._regionQuery(a);this._processed[a]=1,this.clusters[t].push(a),this._orderedList.push(a),void 0!==this._distanceToCore(a)&&(this._updateQueue(a,o,e),this._expandCluster(t,e))}}},a.prototype._distanceToCore=function(t){for(var e=this.epsilon,r=0;r<e;r++){if(this._regionQuery(t,r).length>=this.minPts)return r}},a.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var r=[],n=0,i=this.dataset.length;n<i;n++)this.distance(this.dataset[t],this.dataset[n])<e&&r.push(n);return r},a.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=a)},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,a,o){function s(t){var e=this,r=function(){var t=4022871197,e=function(e){e=String(e);for(var r=0;r<e.length;r++){var n=.02519603282416938*(t+=e.charCodeAt(r));n-=t=n>>>0,t=(n*=t)>>>0,t+=4294967296*(n-=t)}return 2.3283064365386963e-10*(t>>>0)};return e}();e.next=function(){var t=2091639*e.s0+2.3283064365386963e-10*e.c;return e.s0=e.s1,e.s1=e.s2,e.s2=t-(e.c=0|t)},e.c=1,e.s0=r(\" \"),e.s1=r(\" \"),e.s2=r(\" \"),e.s0-=r(t),e.s0<0&&(e.s0+=1),e.s1-=r(t),e.s1<0&&(e.s1+=1),e.s2-=r(t),e.s2<0&&(e.s2+=1),r=null}function u(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function f(t,e){var r=new s(t),n=e&&e.state,a=r.next;return a.int32=function(){return 4294967296*r.next()|0},a.double=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.quick=a,n&&(\"object\"==i(n)&&u(n,r),a.state=function(){return u(r,{})}),a}a&&a.exports?a.exports=f:r(9)&&r(23)?void 0===(n=function(){return f}.call(e,r,e,a))||(a.exports=n):this.alea=f}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,a,o){function s(t){var e=this,r=\"\";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},t===(0|t)?e.x=t:r+=t;for(var n=0;n<r.length+64;n++)e.x^=0|r.charCodeAt(n),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e}function f(t,e){var r=new s(t),n=e&&e.state,a=function(){return(r.next()>>>0)/4294967296};return a.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},a.int32=r.next,a.quick=a,n&&(\"object\"==i(n)&&u(n,r),a.state=function(){return u(r,{})}),a}a&&a.exports?a.exports=f:r(9)&&r(23)?void 0===(n=function(){return f}.call(e,r,e,a))||(a.exports=n):this.xor128=f}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,a,o){function s(t){var e=this,r=\"\";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^t^t<<1)|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,t===(0|t)?e.x=t:r+=t;for(var n=0;n<r.length+64;n++)e.x^=0|r.charCodeAt(n),n==r.length&&(e.d=e.x<<10^e.x>>>4),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function f(t,e){var r=new s(t),n=e&&e.state,a=function(){return(r.next()>>>0)/4294967296};return a.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},a.int32=r.next,a.quick=a,n&&(\"object\"==i(n)&&u(n,r),a.state=function(){return u(r,{})}),a}a&&a.exports?a.exports=f:r(9)&&r(23)?void 0===(n=function(){return f}.call(e,r,e,a))||(a.exports=n):this.xorwow=f}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,a){function o(t){var e=this;e.next=function(){var t,r,n=e.x,i=e.i;return t=n[i],r=(t^=t>>>7)^t<<24,r^=(t=n[i+1&7])^t>>>10,r^=(t=n[i+3&7])^t>>>3,r^=(t=n[i+4&7])^t<<7,t=n[i+7&7],r^=(t^=t<<13)^t<<9,n[i]=r,e.i=i+1&7,r},function(t,e){var r,n=[];if(e===(0|e))n[0]=e;else for(e=\"\"+e,r=0;r<e.length;++r)n[7&r]=n[7&r]<<15^e.charCodeAt(r)+n[r+1&7]<<13;for(;n.length<8;)n.push(0);for(r=0;r<8&&0===n[r];++r);for(8==r?n[7]=-1:n[r],t.x=n,t.i=0,r=256;r>0;--r)t.next()}(e,t)}function s(t,e){return e.x=t.x.slice(),e.i=t.i,e}function u(t,e){null==t&&(t=+new Date);var r=new o(t),n=e&&e.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=r.next,i.quick=i,n&&(n.x&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=u:r(9)&&r(23)?void 0===(n=function(){return u}.call(e,r,e,i))||(i.exports=n):this.xorshift7=u}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,a){function o(t){var e=this;e.next=function(){var t,r,n=e.w,i=e.X,a=e.i;return e.w=n=n+1640531527|0,r=i[a+34&127],t=i[a=a+1&127],r^=r<<13,t^=t<<17,r^=r>>>15,t^=t>>>12,r=i[a]=r^t,e.i=a,r+(n^n>>>16)|0},function(t,e){var r,n,i,a,o,s=[],u=128;for(e===(0|e)?(n=e,e=null):(e+=\"\\0\",n=0,u=Math.max(u,e.length)),i=0,a=-32;a<u;++a)e&&(n^=e.charCodeAt((a+32)%e.length)),0===a&&(o=n),n^=n<<10,n^=n>>>15,n^=n<<4,n^=n>>>13,a>=0&&(o=o+1640531527|0,i=0==(r=s[127&a]^=n+o)?i+1:0);for(i>=128&&(s[127&(e&&e.length||0)]=-1),i=127,a=512;a>0;--a)n=s[i+34&127],r=s[i=i+1&127],n^=n<<13,r^=r<<17,n^=n>>>15,r^=r>>>12,s[i]=n^r;t.w=o,t.X=s,t.i=i}(e,t)}function s(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function u(t,e){null==t&&(t=+new Date);var r=new o(t),n=e&&e.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=r.next,i.quick=i,n&&(n.X&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=u:r(9)&&r(23)?void 0===(n=function(){return u}.call(e,r,e,i))||(i.exports=n):this.xor4096=u}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,a,o){function s(t){var e=this,r=\"\";e.next=function(){var t=e.b,r=e.c,n=e.d,i=e.a;return t=t<<25^t>>>7^r,r=r-n|0,n=n<<24^n>>>8^i,i=i-t|0,e.b=t=t<<20^t>>>12^r,e.c=r=r-n|0,e.d=n<<16^r>>>16^i,e.a=i-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,t===Math.floor(t)?(e.a=t/4294967296|0,e.b=0|t):r+=t;for(var n=0;n<r.length+20;n++)e.b^=0|r.charCodeAt(n),e.next()}function u(t,e){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e}function f(t,e){var r=new s(t),n=e&&e.state,a=function(){return(r.next()>>>0)/4294967296};return a.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},a.int32=r.next,a.quick=a,n&&(\"object\"==i(n)&&u(n,r),a.state=function(){return u(r,{})}),a}a&&a.exports?a.exports=f:r(9)&&r(23)?void 0===(n=function(){return f}.call(e,r,e,a))||(a.exports=n):this.tychei=f}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(a,o,s){var u,f=256,c=s.pow(f,6),h=s.pow(2,52),l=2*h,p=f-1;function d(t,e,r){var n=[],i=g(b((e=1==e?{entropy:!0}:e||{}).entropy?[t,v(o)]:null==t?function(){try{var t;return u&&(t=u.randomBytes)?t=t(f):(t=new Uint8Array(f),(a.crypto||a.msCrypto).getRandomValues(t)),v(t)}catch(t){var e=a.navigator,r=e&&e.plugins;return[+new Date,a,r,a.screen,v(o)]}}():t,3),n),p=new m(n),d=function(){for(var t=p.g(6),e=c,r=0;t<h;)t=(t+r)*f,e*=f,r=p.g(1);for(;t>=l;)t/=2,e/=2,r>>>=1;return(t+r)/e};return d.int32=function(){return 0|p.g(4)},d.quick=function(){return p.g(4)/4294967296},d.double=d,g(v(p.S),o),(e.pass||r||function(t,e,r,n){return n&&(n.S&&y(n,p),t.state=function(){return y(p,{})}),r?(s.random=t,e):t})(d,i,\"global\"in e?e.global:this==s,e.state)}function m(t){var e,r=t.length,n=this,i=0,a=n.i=n.j=0,o=n.S=[];for(r||(t=[r++]);i<f;)o[i]=i++;for(i=0;i<f;i++)o[i]=o[a=p&a+t[i%r]+(e=o[i])],o[a]=e;(n.g=function(t){for(var e,r=0,i=n.i,a=n.j,o=n.S;t--;)e=o[i=p&i+1],r=r*f+o[p&(o[i]=o[a=p&a+e])+(o[a]=e)];return n.i=i,n.j=a,r})(f)}function y(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function b(t,e){var r,n=[],a=i(t);if(e&&\"object\"==a)for(r in t)try{n.push(b(t[r],e-1))}catch(t){}return n.length?n:\"string\"==a?t:t+\"\\0\"}function g(t,e){for(var r,n=t+\"\",i=0;i<n.length;)e[p&i]=p&(r^=19*e[p&i])+n.charCodeAt(i++);return v(e)}function v(t){return String.fromCharCode.apply(0,t)}if(g(s.random(),o),\"object\"==i(t)&&t.exports){t.exports=d;try{u=r(228)}catch(t){}}else void 0===(n=function(){return d}.call(e,r,e,t))||(t.exports=n)}(\"undefined\"!=typeof self?self:this,[],Math)}).call(this,r(13)(t))},function(t,e){},function(t,e,r){var n=r(100).default,i=r(230);t.exports=function(t){var e=i(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(100).default;t.exports=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return _i})),r.d(e,\"c\",(function(){return xi})),r.d(e,\"b\",(function(){return Bi}));var n=r(8),i=r.n(n),a={epsilon:1e-12,matrix:\"Matrix\",number:\"number\",precision:64,predictable:!1,randomSeed:null};function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function s(t){return\"number\"==typeof t}function u(t){return!(!t||\"object\"!==o(t)||\"function\"!=typeof t.constructor)&&(!0===t.isBigNumber&&\"object\"===o(t.constructor.prototype)&&!0===t.constructor.prototype.isBigNumber||\"function\"==typeof t.constructor.isDecimal&&!0===t.constructor.isDecimal(t))}function f(t){return t&&\"object\"===o(t)&&!0===Object.getPrototypeOf(t).isComplex||!1}function c(t){return t&&\"object\"===o(t)&&!0===Object.getPrototypeOf(t).isFraction||!1}function h(t){return t&&!0===t.constructor.prototype.isUnit||!1}function l(t){return\"string\"==typeof t}var p=Array.isArray;function d(t){return t&&!0===t.constructor.prototype.isMatrix||!1}function m(t){return Array.isArray(t)||d(t)}function y(t){return t&&t.isDenseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function b(t){return t&&t.isSparseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function g(t){return t&&!0===t.constructor.prototype.isRange||!1}function v(t){return t&&!0===t.constructor.prototype.isIndex||!1}function w(t){return\"boolean\"==typeof t}function _(t){return t&&!0===t.constructor.prototype.isResultSet||!1}function x(t){return t&&!0===t.constructor.prototype.isHelp||!1}function E(t){return\"function\"==typeof t}function D(t){return t instanceof Date}function k(t){return t instanceof RegExp}function A(t){return!(!t||\"object\"!==o(t)||t.constructor!==Object||f(t)||c(t))}function S(t){return null===t}function M(t){return void 0===t}function F(t){return t&&!0===t.isAccessorNode&&!0===t.constructor.prototype.isNode||!1}function C(t){return t&&!0===t.isArrayNode&&!0===t.constructor.prototype.isNode||!1}function B(t){return t&&!0===t.isAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function O(t){return t&&!0===t.isBlockNode&&!0===t.constructor.prototype.isNode||!1}function I(t){return t&&!0===t.isConditionalNode&&!0===t.constructor.prototype.isNode||!1}function T(t){return t&&!0===t.isConstantNode&&!0===t.constructor.prototype.isNode||!1}function P(t){return t&&!0===t.isFunctionAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function L(t){return t&&!0===t.isFunctionNode&&!0===t.constructor.prototype.isNode||!1}function N(t){return t&&!0===t.isIndexNode&&!0===t.constructor.prototype.isNode||!1}function j(t){return t&&!0===t.isNode&&!0===t.constructor.prototype.isNode||!1}function R(t){return t&&!0===t.isObjectNode&&!0===t.constructor.prototype.isNode||!1}function z(t){return t&&!0===t.isOperatorNode&&!0===t.constructor.prototype.isNode||!1}function U(t){return t&&!0===t.isParenthesisNode&&!0===t.constructor.prototype.isNode||!1}function G(t){return t&&!0===t.isRangeNode&&!0===t.constructor.prototype.isNode||!1}function H(t){return t&&!0===t.isRelationalNode&&!0===t.constructor.prototype.isNode||!1}function Z(t){return t&&!0===t.isSymbolNode&&!0===t.constructor.prototype.isNode||!1}function q(t){return t&&!0===t.constructor.prototype.isChain||!1}function W(t){var e=o(t);return\"object\"===e?null===t?\"null\":u(t)?\"BigNumber\":t.constructor&&t.constructor.name?t.constructor.name:\"Object\":e}function Y(t){return Y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Y(t)}function V(t){var e=Y(t);if(\"number\"===e||\"string\"===e||\"boolean\"===e||null==t)return t;if(\"function\"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map((function(t){return V(t)}));if(t instanceof Date)return new Date(t.valueOf());if(u(t))return t;if(A(t))return X(t,V);throw new TypeError(\"Cannot clone: unknown type of value (value: \".concat(t,\")\"))}function X(t,e){var r={};for(var n in t)Q(t,n)&&(r[n]=e(t[n]));return r}function J(t,e){for(var r in e)Q(e,r)&&(t[r]=e[r]);return t}function K(t,e){var r,n,i;if(Array.isArray(t)){if(!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(n=0,i=t.length;n<i;n++)if(!K(t[n],e[n]))return!1;return!0}if(\"function\"==typeof t)return t===e;if(t instanceof Object){if(Array.isArray(e)||!(e instanceof Object))return!1;for(r in t)if(!(r in e)||!K(t[r],e[r]))return!1;for(r in e)if(!(r in t))return!1;return!0}return t===e}function Q(t,e){return t&&Object.hasOwnProperty.call(t,e)}var $=[\"Matrix\",\"Array\"],tt=[\"number\",\"BigNumber\",\"Fraction\"];var et=function(t){if(t)throw new Error(\"The global config is readonly. \\nPlease create a mathjs instance if you want to change the default configuration. \\nExample:\\n\\n  import { create, all } from 'mathjs';\\n  const mathjs = create(all);\\n  mathjs.config({ number: 'BigNumber' });\\n\");return Object.freeze(a)};i()(et,a,{MATRIX_OPTIONS:$,NUMBER_OPTIONS:tt});var rt=r(21),nt=r.n(rt);function it(t){return\"boolean\"==typeof t||!!isFinite(t)&&t===Math.round(t)}var at=Math.sign||function(t){return t>0?1:t<0?-1:0},ot=Math.log2||function(t){return Math.log(t)/Math.LN2},st=Math.log10||function(t){return Math.log(t)/Math.LN10},ut=(Math.log1p,Math.cbrt||function(t){if(0===t)return t;var e,r=t<0;return r&&(t=-t),e=isFinite(t)?(t/((e=Math.exp(Math.log(t)/3))*e)+2*e)/3:t,r?-e:e}),ft=Math.expm1||function(t){return t>=2e-4||t<=-2e-4?Math.exp(t)-1:t+t*t/2+t*t*t/6};function ct(t,e,r){var n={2:\"0b\",8:\"0o\",16:\"0x\"}[e],i=\"\";if(r){if(r<1)throw new Error(\"size must be in greater than 0\");if(!it(r))throw new Error(\"size must be an integer\");if(t>Math.pow(2,r-1)-1||t<-Math.pow(2,r-1))throw new Error(\"Value must be in range [-2^\".concat(r-1,\", 2^\").concat(r-1,\"-1]\"));if(!it(t))throw new Error(\"Value must be an integer\");t<0&&(t+=Math.pow(2,r)),i=\"i\".concat(r)}var a=\"\";return t<0&&(t=-t,a=\"-\"),\"\".concat(a).concat(n).concat(t.toString(e)).concat(i)}function ht(t,e){if(\"function\"==typeof e)return e(t);if(t===1/0)return\"Infinity\";if(t===-1/0)return\"-Infinity\";if(isNaN(t))return\"NaN\";var r,n,i=\"auto\";if(e&&(e.notation&&(i=e.notation),s(e)?r=e:s(e.precision)&&(r=e.precision),e.wordSize&&\"number\"!=typeof(n=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return pt(t,r);case\"exponential\":return dt(t,r);case\"engineering\":return function(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=lt(t),n=mt(r,e),i=n.exponent,a=n.coefficients,o=i%3==0?i:i<0?i-3-i%3:i-i%3;if(s(e))for(;e>a.length||i-o+1>a.length;)a.push(0);else for(var u=Math.abs(i-o)-(a.length-1),f=0;f<u;f++)a.push(0);var c=Math.abs(i-o),h=1;for(;c>0;)h++,c--;var l=a.slice(h).join(\"\"),p=s(e)&&l.length||l.match(/[1-9]/)?\".\"+l:\"\",d=a.slice(0,h).join(\"\")+p+\"e\"+(i>=0?\"+\":\"\")+o.toString();return n.sign+d}(t,r);case\"bin\":return ct(t,2,n);case\"oct\":return ct(t,8,n);case\"hex\":return ct(t,16,n);case\"auto\":return function(t,e,r){if(isNaN(t)||!isFinite(t))return String(t);var n=r&&void 0!==r.lowerExp?r.lowerExp:-3,i=r&&void 0!==r.upperExp?r.upperExp:5,a=lt(t),o=e?mt(a,e):a;if(o.exponent<n||o.exponent>=i)return dt(t,e);var s=o.coefficients,u=o.exponent;s.length<e&&(s=s.concat(yt(e-s.length))),s=s.concat(yt(u-s.length+1+(s.length<e?e-s.length:0)));var f=u>0?u:0;return f<(s=yt(-u).concat(s)).length-1&&s.splice(f+1,0,\".\"),o.sign+s.join(\"\")}(t,r,e&&e).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function lt(t){var e=String(t).toLowerCase().match(/^(-?)(\\d+\\.?\\d*)(e([+-]?\\d+))?$/);if(!e)throw new SyntaxError(\"Invalid number \"+t);var r=e[1],n=e[2],i=parseFloat(e[4]||\"0\"),a=n.indexOf(\".\");i+=-1!==a?a-1:n.length-1;var o=n.replace(\".\",\"\").replace(/^0*/,(function(t){return i-=t.length,\"\"})).replace(/0*$/,\"\").split(\"\").map((function(t){return parseInt(t)}));return 0===o.length&&(o.push(0),i++),{sign:r,coefficients:o,exponent:i}}function pt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=lt(t),n=\"number\"==typeof e?mt(r,r.exponent+1+e):r,i=n.coefficients,a=n.exponent+1,o=a+(e||0);return i.length<o&&(i=i.concat(yt(o-i.length))),a<0&&(i=yt(1-a).concat(i),a=1),a<i.length&&i.splice(a,0,0===a?\"0.\":\".\"),n.sign+i.join(\"\")}function dt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=lt(t),n=e?mt(r,e):r,i=n.coefficients,a=n.exponent;i.length<e&&(i=i.concat(yt(e-i.length)));var o=i.shift();return n.sign+o+(i.length>0?\".\"+i.join(\"\"):\"\")+\"e\"+(a>=0?\"+\":\"\")+a}function mt(t,e){for(var r={sign:t.sign,coefficients:t.coefficients,exponent:t.exponent},n=r.coefficients;e<=0;)n.unshift(0),r.exponent++,e++;if(n.length>e&&n.splice(e,n.length-e)[0]>=5){var i=e-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),r.exponent++,i++),n[--i]++}return r}function yt(t){for(var e=[],r=0;r<t;r++)e.push(0);return e}var bt=Number.EPSILON||2220446049250313e-31;function gt(t,e,r){if(null==r)return t===e;if(t===e)return!0;if(isNaN(t)||isNaN(e))return!1;if(isFinite(t)&&isFinite(e)){var n=Math.abs(t-e);return n<=bt||n<=Math.max(Math.abs(t),Math.abs(e))*r}return!1}var vt=Math.acosh||function(t){return Math.log(Math.sqrt(t*t-1)+t)},wt=Math.asinh||function(t){return Math.log(Math.sqrt(t*t+1)+t)},_t=Math.atanh||function(t){return Math.log((1+t)/(1-t))/2},xt=(Math.cosh,Math.sinh||function(t){return(Math.exp(t)-Math.exp(-t))/2});Math.tanh;function Et(t,e,r){var n=new(0,t.constructor)(2),i=\"\";if(r){if(r<1)throw new Error(\"size must be in greater than 0\");if(!it(r))throw new Error(\"size must be an integer\");if(t.greaterThan(n.pow(r-1).sub(1))||t.lessThan(n.pow(r-1).mul(-1)))throw new Error(\"Value must be in range [-2^\".concat(r-1,\", 2^\").concat(r-1,\"-1]\"));if(!t.isInteger())throw new Error(\"Value must be an integer\");t.lessThan(0)&&(t=t.add(n.pow(r))),i=\"i\".concat(r)}switch(e){case 2:return\"\".concat(t.toBinary()).concat(i);case 8:return\"\".concat(t.toOctal()).concat(i);case 16:return\"\".concat(t.toHexadecimal()).concat(i);default:throw new Error(\"Base \".concat(e,\" not supported \"))}}function Dt(t,e){if(\"function\"==typeof e)return e(t);if(!t.isFinite())return t.isNaN()?\"NaN\":t.gt(0)?\"Infinity\":\"-Infinity\";var r,n,i=\"auto\";if(void 0!==e&&(e.notation&&(i=e.notation),\"number\"==typeof e?r=e:void 0!==e.precision&&(r=e.precision),e.wordSize&&\"number\"!=typeof(n=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return function(t,e){return t.toFixed(e)}(t,r);case\"exponential\":return kt(t,r);case\"engineering\":return function(t,e){var r=t.e,n=r%3==0?r:r<0?r-3-r%3:r-r%3,i=t.mul(Math.pow(10,-n)),a=i.toPrecision(e);if(-1!==a.indexOf(\"e\")){a=new(0,t.constructor)(a).toFixed()}return a+\"e\"+(r>=0?\"+\":\"\")+n.toString()}(t,r);case\"bin\":return Et(t,2,n);case\"oct\":return Et(t,8,n);case\"hex\":return Et(t,16,n);case\"auto\":var a=e&&void 0!==e.lowerExp?e.lowerExp:-3,o=e&&void 0!==e.upperExp?e.upperExp:5;if(t.isZero())return\"0\";var s=t.toSignificantDigits(r),u=s.e;return(u>=a&&u<o?s.toFixed():kt(t,r)).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function kt(t,e){return void 0!==e?t.toExponential(e-1):t.toExponential()}function At(t){return At=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},At(t)}function St(t,e){var r=function(t,e){if(\"number\"==typeof t)return ht(t,e);if(u(t))return Dt(t,e);if(function(t){return t&&\"object\"===At(t)&&\"number\"==typeof t.s&&\"number\"==typeof t.n&&\"number\"==typeof t.d||!1}(t))return e&&\"decimal\"===e.fraction?t.toString():t.s*t.n+\"/\"+t.d;if(Array.isArray(t))return Ct(t,e);if(l(t))return Mt(t);if(\"function\"==typeof t)return t.syntax?String(t.syntax):\"function\";if(t&&\"object\"===At(t)){return\"function\"==typeof t.format?t.format(e):t&&t.toString(e)!=={}.toString()?t.toString(e):\"{\"+Object.keys(t).map((function(r){return Mt(r)+\": \"+St(t[r],e)})).join(\", \")+\"}\"}return String(t)}(t,e);return e&&\"object\"===At(e)&&\"truncate\"in e&&r.length>e.truncate?r.substring(0,e.truncate-3)+\"...\":r}function Mt(t){for(var e=String(t),r=\"\",n=0;n<e.length;){var i=e.charAt(n);r+=i in Ft?Ft[i]:i,n++}return'\"'+r+'\"'}var Ft={'\"':'\\\\\"',\"\\\\\":\"\\\\\\\\\",\"\\b\":\"\\\\b\",\"\\f\":\"\\\\f\",\"\\n\":\"\\\\n\",\"\\r\":\"\\\\r\",\"\\t\":\"\\\\t\"};function Ct(t,e){if(Array.isArray(t)){for(var r=\"[\",n=t.length,i=0;i<n;i++)0!==i&&(r+=\", \"),r+=Ct(t[i],e);return r+=\"]\"}return St(t,e)}function Bt(t,e){if(!l(t))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+W(t)+\", index: 0)\");if(!l(e))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+W(e)+\", index: 1)\");return t===e?0:t>e?1:-1}function Ot(t,e,r){if(!(this instanceof Ot))throw new SyntaxError(\"Constructor must be called with the new operator\");this.actual=t,this.expected=e,this.relation=r,this.message=\"Dimension mismatch (\"+(Array.isArray(t)?\"[\"+t.join(\", \")+\"]\":t)+\" \"+(this.relation||\"!=\")+\" \"+(Array.isArray(e)?\"[\"+e.join(\", \")+\"]\":e)+\")\",this.stack=(new Error).stack}function It(t,e,r){if(!(this instanceof It))throw new SyntaxError(\"Constructor must be called with the new operator\");this.index=t,arguments.length<3?(this.min=0,this.max=e):(this.min=e,this.max=r),void 0!==this.min&&this.index<this.min?this.message=\"Index out of range (\"+this.index+\" < \"+this.min+\")\":void 0!==this.max&&this.index>=this.max?this.message=\"Index out of range (\"+this.index+\" > \"+(this.max-1)+\")\":this.message=\"Index out of range (\"+this.index+\")\",this.stack=(new Error).stack}function Tt(t){return function(t){if(Array.isArray(t))return Pt(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Pt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pt(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Lt(t){for(var e=[];Array.isArray(t);)e.push(t.length),t=t[0];return e}function Nt(t,e,r){var n,i=t.length;if(i!==e[r])throw new Ot(i,e[r]);if(r<e.length-1){var a=r+1;for(n=0;n<i;n++){var o=t[n];if(!Array.isArray(o))throw new Ot(e.length-1,e.length,\"<\");Nt(t[n],e,a)}}else for(n=0;n<i;n++)if(Array.isArray(t[n]))throw new Ot(e.length+1,e.length,\">\")}function jt(t,e){if(0===e.length){if(Array.isArray(t))throw new Ot(t.length,0)}else Nt(t,e,0)}function Rt(t,e){if(void 0!==t){if(!s(t)||!it(t))throw new TypeError(\"Index must be an integer (value: \"+t+\")\");if(t<0||\"number\"==typeof e&&t>=e)throw new It(t,e)}}function zt(t,e,r){if(!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new Error(\"Resizing to scalar is not supported\");return e.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+St(e)+\")\")})),(s(t)||u(t))&&(t=[t]),Ut(t,e,0,void 0!==r?r:0),t}function Ut(t,e,r,n){var i,a,o=t.length,s=e[r],u=Math.min(o,s);if(t.length=s,r<e.length-1){var f=r+1;for(i=0;i<u;i++)a=t[i],Array.isArray(a)||(a=[a],t[i]=a),Ut(a,e,f,n);for(i=u;i<s;i++)a=[],t[i]=a,Ut(a,e,f,n)}else{for(i=0;i<u;i++)for(;Array.isArray(t[i]);)t[i]=t[i][0];for(i=u;i<s;i++)t[i]=n}}function Gt(t,e){var r=Yt(t),n=r.length;if(!Array.isArray(t)||!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new Ot(0,n,\"!=\");var i=Zt(e=Ht(e,n));if(n!==i)throw new Ot(i,n,\"!=\");try{return function(t,e){for(var r,n=t,i=e.length-1;i>0;i--){var a=e[i];r=[];for(var o=n.length/a,s=0;s<o;s++)r.push(n.slice(s*a,(s+1)*a));n=r}return n}(r,e)}catch(t){if(t instanceof Ot)throw new Ot(i,n,\"!=\");throw t}}function Ht(t,e){var r=Zt(t),n=t.slice(),i=t.indexOf(-1);if(t.indexOf(-1,i+1)>=0)throw new Error(\"More than one wildcard in sizes\");if(i>=0){if(!(e%r==0))throw new Error(\"Could not replace wildcard, since \"+e+\" is no multiple of \"+-r);n[i]=-e/r}return n}function Zt(t){return t.reduce((function(t,e){return t*e}),1)}function qt(t,e,r,n){var i=n||Lt(t);if(r)for(var a=0;a<r;a++)t=[t],i.unshift(1);for(t=Wt(t,e,0);i.length<e;)i.push(1);return t}function Wt(t,e,r){var n,i;if(Array.isArray(t)){var a=r+1;for(n=0,i=t.length;n<i;n++)t[n]=Wt(t[n],e,a)}else for(var o=r;o<e;o++)t=[t];return t}function Yt(t){if(!Array.isArray(t))return t;var e=[];return t.forEach((function t(r){Array.isArray(r)?r.forEach(t):e.push(r)})),e}function Vt(t,e){for(var r,n=0,i=0;i<t.length;i++){var a=t[i],o=Array.isArray(a);if(0===i&&o&&(n=a.length),o&&a.length!==n)return;var s=o?Vt(a,e):e(a);if(void 0===r)r=s;else if(r!==s)return\"mixed\"}return r}function Xt(t,e,r,n){if(n<r){if(t.length!==e.length)throw new Ot(t.length,e.length);for(var i=[],a=0;a<t.length;a++)i[a]=Xt(t[a],e[a],r,n+1);return i}return t.concat(e)}function Jt(){var t=Array.prototype.slice.call(arguments,0,-1),e=Array.prototype.slice.call(arguments,-1);if(1===t.length)return t[0];if(t.length>1)return t.slice(1).reduce((function(t,r){return Xt(t,r,e,0)}),t[0]);throw new Error(\"Wrong number of arguments in function concat\")}function Kt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=e.map((function(t){return t.length})),i=Math.max.apply(Math,Tt(n)),a=new Array(i).fill(null),o=0;o<e.length;o++)for(var s=e[o],u=n[o],f=0;f<u;f++){var c=i-u+f;s[f]>a[c]&&(a[c]=s[f])}for(var h=0;h<e.length;h++)Qt(e[h],a);return a}function Qt(t,e){for(var r=e.length,n=t.length,i=0;i<n;i++){var a=r-n+i;if(t[i]<e[a]&&t[i]>1||t[i]>e[a])throw new Error(\"shape missmatch: missmatch is found in arg with shape (\".concat(t,\") not possible to broadcast dimension \").concat(n,\" with size \").concat(t[i],\" to size \").concat(e[a]))}}function $t(t,e){var r=Lt(t);if(K(r,e))return t;Qt(r,e);var n,a,o,s=Kt(r,e),u=s.length,f=[].concat(Tt(Array(u-r.length).fill(1)),Tt(r)),c=function(t){return i()([],t)}(t);r.length<u&&(r=Lt(c=Gt(c,f)));for(var h=0;h<u;h++)r[h]<s[h]&&(n=c,a=s[h],o=h,r=Lt(c=Jt.apply(void 0,Tt(Array(a).fill(n)).concat([o]))));return c}function te(t,e,r,n){function i(n){var i=function(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],a=t[i];void 0!==a&&(r[i]=a)}return r}(n,e.map(ee));return function(t,e,r){var n=e.filter((function(t){return!function(t){return t&&\"?\"===t[0]}(t)})).every((function(t){return void 0!==r[t]}));if(!n){var i=e.filter((function(t){return void 0===r[t]}));throw new Error('Cannot create function \"'.concat(t,'\", ')+\"some dependencies are missing: \".concat(i.map((function(t){return'\"'.concat(t,'\"')})).join(\", \"),\".\"))}}(t,e,n),r(i)}return i.isFactory=!0,i.fn=t,i.dependencies=e.slice().sort(),n&&(i.meta=n),i}function ee(t){return t&&\"?\"===t[0]?t.slice(1):t}Ot.prototype=new RangeError,Ot.prototype.constructor=RangeError,Ot.prototype.name=\"DimensionError\",Ot.prototype.isDimensionError=!0,It.prototype=new RangeError,It.prototype.constructor=RangeError,It.prototype.name=\"IndexError\",It.prototype.isIndexError=!0;var re=te(\"BigNumber\",[\"?on\",\"config\"],(function(t){var e=t.on,r=t.config,n=nt.a.clone({precision:r.precision,modulo:nt.a.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type=\"BigNumber\",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:\"BigNumber\",value:this.toString()}},n.fromJSON=function(t){return new n(t.value)},e&&e(\"config\",(function(t,e){t.precision!==e.precision&&n.config({precision:t.precision})})),n}),{isClass:!0}),ne=r(5),ie=r.n(ne);function ae(t){return ae=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ae(t)}var oe=te(\"Complex\",[],(function(){return Object.defineProperty(ie.a,\"name\",{value:\"Complex\"}),ie.a.prototype.constructor=ie.a,ie.a.prototype.type=\"Complex\",ie.a.prototype.isComplex=!0,ie.a.prototype.toJSON=function(){return{mathjs:\"Complex\",re:this.re,im:this.im}},ie.a.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},ie.a.prototype.format=function(t){var e=this.im,r=this.re,n=ht(this.re,t),i=ht(this.im,t),a=s(t)?t:t?t.precision:null;if(null!==a){var o=Math.pow(10,-a);Math.abs(r/e)<o&&(r=0),Math.abs(e/r)<o&&(e=0)}return 0===e?n:0===r?1===e?\"i\":-1===e?\"-i\":i+\"i\":e<0?-1===e?n+\" - i\":n+\" - \"+i.substring(1)+\"i\":1===e?n+\" + i\":n+\" + \"+i+\"i\"},ie.a.fromPolar=function(t){switch(arguments.length){case 1:var e=arguments[0];if(\"object\"===ae(e))return ie()(e);throw new TypeError(\"Input has to be an object with r and phi keys.\");case 2:var r=arguments[0],n=arguments[1];if(s(r)){if(h(n)&&n.hasBase(\"ANGLE\")&&(n=n.toNumber(\"rad\")),s(n))return new ie.a({r,phi:n});throw new TypeError(\"Phi is not a number nor an angle unit.\")}throw new TypeError(\"Radius r is not a number.\");default:throw new SyntaxError(\"Wrong number of arguments in function fromPolar\")}},ie.a.prototype.valueOf=ie.a.prototype.toString,ie.a.fromJSON=function(t){return new ie.a(t)},ie.a.compare=function(t,e){return t.re>e.re?1:t.re<e.re?-1:t.im>e.im?1:t.im<e.im?-1:0},ie.a}),{isClass:!0});function se(t){var e=0,r=1,n=Object.create(null),i=Object.create(null),a=0,o=function(t){var o=i[t];if(o&&(delete n[o],delete i[t],--e,r===o)){if(!e)return a=0,void(r=1);for(;!Object.prototype.hasOwnProperty.call(n,++r););}};return t=Math.abs(t),{hit:function(s){var u=i[s],f=++a;if(n[f]=s,i[s]=f,!u){if(++e<=t)return;return s=n[r],o(s),s}if(delete n[u],r===u)for(;!Object.prototype.hasOwnProperty.call(n,++r););},delete:o,clear:function(){e=a=0,r=1,n=Object.create(null),i=Object.create(null)}}}function ue(t){return ue=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ue(t)}function fe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.hasher,n=e.limit;return n=null==n?Number.POSITIVE_INFINITY:n,r=null==r?JSON.stringify:r,function e(){\"object\"!==ue(e.cache)&&(e.cache={values:new Map,lru:se(n||Number.POSITIVE_INFINITY)});for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var o=r(i);if(e.cache.values.has(o))return e.cache.lru.hit(o),e.cache.values.get(o);var s=t.apply(t,i);return e.cache.values.set(o,s),e.cache.values.delete(e.cache.lru.hit(o)),s}}function ce(t){return Object.keys(t.signatures||{}).reduce((function(t,e){var r=(e.match(/,/g)||[]).length+1;return Math.max(t,r)}),-1)}fe((function(t){return new t(1).exp()}),{hasher:le}),fe((function(t){return new t(1).plus(new t(5).sqrt()).div(2)}),{hasher:le});var he=fe((function(t){return t.acos(-1)}),{hasher:le});fe((function(t){return he(t).times(2)}),{hasher:le});function le(t){return t[0].precision}Math.PI,Math.PI,Math.E;pe(\"fineStructure\",.0072973525693),pe(\"weakMixingAngle\",.2229),pe(\"efimovFactor\",22.7),pe(\"sackurTetrode\",-1.16487052358);function pe(t,e){return te(t,[\"config\",\"BigNumber\"],(function(t){var r=t.config,n=t.BigNumber;return\"BigNumber\"===r.number?new n(e):e}))}var de=r(12),me=r.n(de),ye=te(\"Fraction\",[],(function(){return Object.defineProperty(me.a,\"name\",{value:\"Fraction\"}),me.a.prototype.constructor=me.a,me.a.prototype.type=\"Fraction\",me.a.prototype.isFraction=!0,me.a.prototype.toJSON=function(){return{mathjs:\"Fraction\",n:this.s*this.n,d:this.d}},me.a.fromJSON=function(t){return new me.a(t)},me.a}),{isClass:!0}),be=te(\"Matrix\",[],(function(){function t(){if(!(this instanceof t))throw new SyntaxError(\"Constructor must be called with the new operator\")}return t.prototype.type=\"Matrix\",t.prototype.isMatrix=!0,t.prototype.storage=function(){throw new Error(\"Cannot invoke storage on a Matrix interface\")},t.prototype.datatype=function(){throw new Error(\"Cannot invoke datatype on a Matrix interface\")},t.prototype.create=function(t,e){throw new Error(\"Cannot invoke create on a Matrix interface\")},t.prototype.subset=function(t,e,r){throw new Error(\"Cannot invoke subset on a Matrix interface\")},t.prototype.get=function(t){throw new Error(\"Cannot invoke get on a Matrix interface\")},t.prototype.set=function(t,e,r){throw new Error(\"Cannot invoke set on a Matrix interface\")},t.prototype.resize=function(t,e){throw new Error(\"Cannot invoke resize on a Matrix interface\")},t.prototype.reshape=function(t,e){throw new Error(\"Cannot invoke reshape on a Matrix interface\")},t.prototype.clone=function(){throw new Error(\"Cannot invoke clone on a Matrix interface\")},t.prototype.size=function(){throw new Error(\"Cannot invoke size on a Matrix interface\")},t.prototype.map=function(t,e){throw new Error(\"Cannot invoke map on a Matrix interface\")},t.prototype.forEach=function(t){throw new Error(\"Cannot invoke forEach on a Matrix interface\")},t.prototype[Symbol.iterator]=function(){throw new Error(\"Cannot iterate a Matrix interface\")},t.prototype.toArray=function(){throw new Error(\"Cannot invoke toArray on a Matrix interface\")},t.prototype.valueOf=function(){throw new Error(\"Cannot invoke valueOf on a Matrix interface\")},t.prototype.format=function(t){throw new Error(\"Cannot invoke format on a Matrix interface\")},t.prototype.toString=function(){throw new Error(\"Cannot invoke toString on a Matrix interface\")},t}),{isClass:!0});function ge(t){return ge=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ge(t)}function ve(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return we(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return we(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _e(){_e=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",s=a.asyncIterator||\"@@asyncIterator\",u=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),s=new C(n||[]);return i(o,\"_invoke\",{value:A(t,r,s)}),o}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var l=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function b(){}function g(){}function v(){}var w={};f(w,o,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(B([])));x&&x!==r&&n.call(x,o)&&(w=x);var E=v.prototype=b.prototype=Object.create(w);function D(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if(\"throw\"!==u.type){var f=u.arg,c=f.value;return c&&\"object\"==ge(c)&&n.call(c,\"__await\")?e.resolve(c.__await).then((function(t){r(\"next\",t,o,s)}),(function(t){r(\"throw\",t,o,s)})):e.resolve(c).then((function(t){f.value=t,o(f)}),(function(t){return r(\"throw\",t,o,s)}))}s(u.arg)}var a;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function A(e,r,n){var i=l;return function(a,o){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===l)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var f=h(e,r,n);if(\"normal\"===f.type){if(i=n.done?m:p,f.arg===y)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=m,n.method=\"throw\",n.arg=f.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var a=h(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[o];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(ge(e)+\" is not iterable\")}return g.prototype=v,i(E,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:g,configurable:!0}),g.displayName=f(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},D(k.prototype),f(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new k(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},D(E),f(E,u,\"Generator\"),f(E,o,(function(){return this})),f(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}var xe=te(\"DenseMatrix\",[\"Matrix\"],(function(t){var e=t.Matrix;function r(t,e){if(!(this instanceof r))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!l(e))throw new Error(\"Invalid datatype: \"+e);if(d(t))\"DenseMatrix\"===t.type?(this._data=V(t._data),this._size=V(t._size),this._datatype=e||t._datatype):(this._data=t.toArray(),this._size=t.size(),this._datatype=e||t._datatype);else if(t&&p(t.data)&&p(t.size))this._data=t.data,this._size=t.size,jt(this._data,this._size),this._datatype=e||t.datatype;else if(p(t))this._data=f(t),this._size=Lt(this._data),jt(this._data,this._size),this._datatype=e;else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._data=[],this._size=[0],this._datatype=e}}function n(t,e,r,i){var a=i===r-1,o=e.dimension(i);return a?o.map((function(e){return Rt(e,t.length),t[e]})).valueOf():o.map((function(a){return Rt(a,t.length),n(t[a],e,r,i+1)})).valueOf()}function i(t,e,r,n,a){var o=a===n-1,s=e.dimension(a);o?s.forEach((function(e,n){Rt(e),t[e]=r[n[0]]})):s.forEach((function(o,s){Rt(o),i(t[o],e,r[s[0]],n,a+1)}))}function a(t,e,r){if(0===e.length){for(var n=t._data;p(n);)n=n[0];return n}return t._size=e.slice(0),t._data=zt(t._data,t._size,r),t}function o(t,e,r){for(var n=t._size.slice(0),i=!1;n.length<e.length;)n.push(0),i=!0;for(var o=0,s=e.length;o<s;o++)e[o]>n[o]&&(n[o]=e[o],i=!0);i&&a(t,n,r)}function f(t){return d(t)?f(t.valueOf()):p(t)?t.map(f):t}return r.prototype=new e,r.prototype.createDenseMatrix=function(t,e){return new r(t,e)},Object.defineProperty(r,\"name\",{value:\"DenseMatrix\"}),r.prototype.constructor=r,r.prototype.type=\"DenseMatrix\",r.prototype.isDenseMatrix=!0,r.prototype.getDataType=function(){return Vt(this._data,W)},r.prototype.storage=function(){return\"dense\"},r.prototype.datatype=function(){return this._datatype},r.prototype.create=function(t,e){return new r(t,e)},r.prototype.subset=function(t,e,a){switch(arguments.length){case 1:return function(t,e){if(!v(e))throw new TypeError(\"Invalid index\");var i=e.isScalar();if(i)return t.get(e.min());var a=e.size();if(a.length!==t._size.length)throw new Ot(a.length,t._size.length);for(var o=e.min(),s=e.max(),u=0,f=t._size.length;u<f;u++)Rt(o[u],t._size[u]),Rt(s[u],t._size[u]);return new r(n(t._data,e,a.length,0),t._datatype)}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var a,s=e.size(),u=e.isScalar();d(r)?(a=r.size(),r=r.valueOf()):a=Lt(r);if(u){if(0!==a.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),r,n)}else{if(!K(a,s))try{a=Lt(r=0===a.length?$t([r],s):$t(r,s))}catch(t){}if(s.length<t._size.length)throw new Ot(s.length,t._size.length,\"<\");if(a.length<s.length){for(var f=0,c=0;1===s[f]&&1===a[f];)f++;for(;1===s[f];)c++,f++;r=qt(r,s.length,c,a)}if(!K(s,a))throw new Ot(s,a,\">\");var h=e.max().map((function(t){return t+1}));o(t,h,n);var l=s.length,p=0;i(t._data,e,r,l,p)}return t}(this,t,e,a);default:throw new SyntaxError(\"Wrong number of arguments\")}},r.prototype.get=function(t){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ot(t.length,this._size.length);for(var e=0;e<t.length;e++)Rt(t[e],this._size[e]);for(var r=this._data,n=0,i=t.length;n<i;n++){var a=t[n];Rt(a,r.length),r=r[a]}return r},r.prototype.set=function(t,e,r){if(!p(t))throw new TypeError(\"Array expected\");if(t.length<this._size.length)throw new Ot(t.length,this._size.length,\"<\");var n,i,a,s=t.map((function(t){return t+1}));o(this,s,r);var u=this._data;for(n=0,i=t.length-1;n<i;n++)Rt(a=t[n],u.length),u=u[a];return Rt(a=t[t.length-1],u.length),u[a]=e,this},r.prototype.resize=function(t,e,r){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var n=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));return a(r?this.clone():this,n,e)},r.prototype.reshape=function(t,e){var r=e?this.clone():this;r._data=Gt(r._data,t);var n=r._size.reduce((function(t,e){return t*e}));return r._size=Ht(t,n),r},r.prototype.clone=function(){return new r({data:V(this._data),size:V(this._size),datatype:this._datatype})},r.prototype.size=function(){return this._size.slice(0)},r.prototype.map=function(t){var e=this,n=ce(t),i=function r(i,a){return p(i)?i.map((function(t,e){return r(t,a.concat(e))})):1===n?t(i):2===n?t(i,a):t(i,a,e)}(this._data,[]);return new r(i,void 0!==this._datatype?Vt(i,W):void 0)},r.prototype.forEach=function(t){var e=this;!function r(n,i){p(n)?n.forEach((function(t,e){r(t,i.concat(e))})):t(n,i,e)}(this._data,[])},r.prototype[Symbol.iterator]=_e().mark((function t(){var e;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=_e().mark((function t(e,r){var n;return _e().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!p(e)){i.next=9;break}n=0;case 2:if(!(n<e.length)){i.next=7;break}return i.delegateYield(t(e[n],r.concat(n)),\"t0\",4);case 4:n++,i.next=2;break;case 7:i.next=11;break;case 9:return i.next=11,{value:e,index:r};case 11:case\"end\":return i.stop()}}),t)})),t.delegateYield(e(this._data,[]),\"t0\",2);case 2:case\"end\":return t.stop()}}),t,this)})),r.prototype.rows=function(){var t=[];if(2!==this.size().length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");var e,n=ve(this._data);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(new r([i],this._datatype))}}catch(t){n.e(t)}finally{n.f()}return t},r.prototype.columns=function(){var t=this,e=[],n=this.size();if(2!==n.length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");for(var i=this._data,a=function(n){var a=i.map((function(t){return[t[n]]}));e.push(new r(a,t._datatype))},o=0;o<n[1];o++)a(o);return e},r.prototype.toArray=function(){return V(this._data)},r.prototype.valueOf=function(){return this._data},r.prototype.format=function(t){return St(this._data,t)},r.prototype.toString=function(){return St(this._data)},r.prototype.toJSON=function(){return{mathjs:\"DenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},r.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;for(var e=t>0?t:0,n=t<0?-t:0,i=this._size[0],a=this._size[1],o=Math.min(i-n,a-e),f=[],c=0;c<o;c++)f[c]=this._data[c+n][c+e];return new r({data:f,size:[o],datatype:this._datatype})},r.diagonal=function(t,e,n,i){if(!p(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),n){if(u(n)&&(n=n.toNumber()),!s(n)||!it(n))throw new TypeError(\"The parameter k must be an integer number\")}else n=0;var a,o=n>0?n:0,f=n<0?-n:0,c=t[0],h=t[1],l=Math.min(c-f,h-o);if(p(e)){if(e.length!==l)throw new Error(\"Invalid value array length\");a=function(t){return e[t]}}else if(d(e)){var m=e.size();if(1!==m.length||m[0]!==l)throw new Error(\"Invalid matrix length\");a=function(t){return e.get([t])}}else a=function(){return e};i||(i=u(a(0))?a(0).mul(0):0);var y=[];if(t.length>0){y=zt(y,t,i);for(var b=0;b<l;b++)y[b+f][b+o]=a(b)}return new r({data:y,size:[c,h]})},r.fromJSON=function(t){return new r(t)},r.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return Rt(t,this._size[0]),Rt(e,this._size[0]),r._swapRows(t,e,this._data),this},r._swapRows=function(t,e,r){var n=r[t];r[t]=r[e],r[e]=n},r}),{isClass:!0}),Ee=r(16),De=r.n(Ee);function ke(t){return ke=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ke(t)}function Ae(t,e){if(Ce(t)&&Me(t,e))return t[e];if(\"function\"==typeof t[e]&&Fe(t,e))throw new Error('Cannot access method \"'+e+'\" as a property');throw new Error('No access to property \"'+e+'\"')}function Se(t,e,r){if(Ce(t)&&Me(t,e))return t[e]=r,r;throw new Error('No access to property \"'+e+'\"')}function Me(t,e){return!(!t||\"object\"!==ke(t))&&(!!Q(Be,e)||!(e in Object.prototype)&&!(e in Function.prototype))}function Fe(t,e){return null!=t&&\"function\"==typeof t[e]&&(!(Q(t,e)&&Object.getPrototypeOf&&e in Object.getPrototypeOf(t))&&(!!Q(Oe,e)||!(e in Object.prototype)&&!(e in Function.prototype)))}function Ce(t){return\"object\"===ke(t)&&t&&t.constructor===Object}var Be={length:!0,name:!0},Oe={toString:!0,valueOf:!0,toLocaleString:!0};function Ie(t){return Ie=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Ie(t)}function Te(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Pe(n.key),n)}}function Pe(t){var e=function(t,e){if(\"object\"!=Ie(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=Ie(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==Ie(e)?e:e+\"\"}var Le=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.wrappedObject=e},(e=[{key:\"keys\",value:function(){return Object.keys(this.wrappedObject)}},{key:\"get\",value:function(t){return Ae(this.wrappedObject,t)}},{key:\"set\",value:function(t,e){return Se(this.wrappedObject,t,e),this}},{key:\"has\",value:function(t){return e=this.wrappedObject,t in e;var e}}])&&Te(t.prototype,e),r&&Te(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}();function Ne(t){return!!t&&(t instanceof Map||t instanceof Le||\"function\"==typeof t.set&&\"function\"==typeof t.get&&\"function\"==typeof t.keys&&\"function\"==typeof t.has)}var je=function(){return je=De.a.create,De.a},Re=te(\"typed\",[\"?BigNumber\",\"?Complex\",\"?DenseMatrix\",\"?Fraction\"],(function(t){var e=t.BigNumber,r=t.Complex,n=t.DenseMatrix,i=t.Fraction,a=je();return a.clear(),a.addTypes([{name:\"number\",test:s},{name:\"Complex\",test:f},{name:\"BigNumber\",test:u},{name:\"Fraction\",test:c},{name:\"Unit\",test:h},{name:\"identifier\",test:function(t){return l&&/^(?:[A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])*$/.test(t)}},{name:\"string\",test:l},{name:\"Chain\",test:q},{name:\"Array\",test:p},{name:\"Matrix\",test:d},{name:\"DenseMatrix\",test:y},{name:\"SparseMatrix\",test:b},{name:\"Range\",test:g},{name:\"Index\",test:v},{name:\"boolean\",test:w},{name:\"ResultSet\",test:_},{name:\"Help\",test:x},{name:\"function\",test:E},{name:\"Date\",test:D},{name:\"RegExp\",test:k},{name:\"null\",test:S},{name:\"undefined\",test:M},{name:\"AccessorNode\",test:F},{name:\"ArrayNode\",test:C},{name:\"AssignmentNode\",test:B},{name:\"BlockNode\",test:O},{name:\"ConditionalNode\",test:I},{name:\"ConstantNode\",test:T},{name:\"FunctionNode\",test:L},{name:\"FunctionAssignmentNode\",test:P},{name:\"IndexNode\",test:N},{name:\"Node\",test:j},{name:\"ObjectNode\",test:R},{name:\"OperatorNode\",test:z},{name:\"ParenthesisNode\",test:U},{name:\"RangeNode\",test:G},{name:\"RelationalNode\",test:H},{name:\"SymbolNode\",test:Z},{name:\"Map\",test:Ne},{name:\"Object\",test:A}]),a.addConversions([{from:\"number\",to:\"BigNumber\",convert:function(t){if(e||ze(t),t.toExponential().replace(/e.*$/,\"\").replace(/^0\\.?0*|\\./,\"\").length>15)throw new TypeError(\"Cannot implicitly convert a number with >15 significant digits to BigNumber (value: \"+t+\"). Use function bignumber(x) to convert to BigNumber.\");return new e(t)}},{from:\"number\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t,0)}},{from:\"BigNumber\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t.toNumber(),0)}},{from:\"Fraction\",to:\"BigNumber\",convert:function(t){throw new TypeError(\"Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.\")}},{from:\"Fraction\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t.valueOf(),0)}},{from:\"number\",to:\"Fraction\",convert:function(t){i||Ge(t);var e=new i(t);if(e.valueOf()!==t)throw new TypeError(\"Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: \"+t+\"). Use function fraction(x) to convert to Fraction.\");return e}},{from:\"string\",to:\"number\",convert:function(t){var e=Number(t);if(isNaN(e))throw new Error('Cannot convert \"'+t+'\" to a number');return e}},{from:\"string\",to:\"BigNumber\",convert:function(t){e||ze(t);try{return new e(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to BigNumber')}}},{from:\"string\",to:\"Fraction\",convert:function(t){i||Ge(t);try{return new i(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Fraction')}}},{from:\"string\",to:\"Complex\",convert:function(t){r||Ue(t);try{return new r(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Complex')}}},{from:\"boolean\",to:\"number\",convert:function(t){return+t}},{from:\"boolean\",to:\"BigNumber\",convert:function(t){return e||ze(t),new e(+t)}},{from:\"boolean\",to:\"Fraction\",convert:function(t){return i||Ge(t),new i(+t)}},{from:\"boolean\",to:\"string\",convert:function(t){return String(t)}},{from:\"Array\",to:\"Matrix\",convert:function(t){return n||function(){throw new Error(\"Cannot convert array into a Matrix: no class 'DenseMatrix' provided\")}(),new n(t)}},{from:\"Matrix\",to:\"Array\",convert:function(t){return t.valueOf()}}]),a.onMismatch=function(t,e,r){var n=a.createError(t,e,r);if([\"wrongType\",\"mismatch\"].includes(n.data.category)&&1===e.length&&m(e[0])&&r.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=n.data,i}throw n},a.onMismatch=function(t,e,r){var n=a.createError(t,e,r);if([\"wrongType\",\"mismatch\"].includes(n.data.category)&&1===e.length&&m(e[0])&&r.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=n.data,i}throw n},a}));function ze(t){throw new Error(\"Cannot convert value \".concat(t,\" into a BigNumber: no class 'BigNumber' provided\"))}function Ue(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Complex number: no class 'Complex' provided\"))}function Ge(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Fraction, no class 'Fraction' provided.\"))}function He(t,e,r){return t&&\"function\"==typeof t.map?t.map((function(t){return He(t,e,r)})):e(t)}var Ze=\"number\",qe=\"number, number\";function We(t){return Math.abs(t)}function Ye(t,e){return t+e}function Ve(t,e){return t-e}function Xe(t,e){return t*e}function Je(t){return-t}function Ke(t){return t}function Qe(t){return ut(t)}function $e(t){return t*t*t}function tr(t){return Math.exp(t)}function er(t){return ft(t)}function rr(t,e){if(!it(t)||!it(e))throw new Error(\"Parameters in function lcm must be integer numbers\");if(0===t||0===e)return 0;for(var r,n=t*e;0!==e;)e=t%(r=e),t=r;return Math.abs(n/t)}function nr(t){return st(t)}function ir(t){return ot(t)}function ar(t){return at(t)}function or(t){return t*t}function sr(t,e){var r,n,i,a=0,o=1,s=1,u=0;if(!it(t)||!it(e))throw new Error(\"Parameters in function xgcd must be integer numbers\");for(;e;)i=t-(n=Math.floor(t/e))*e,r=a,a=o-n*a,o=r,r=s,s=u-n*s,u=r,t=e,e=i;return t<0?[-t,-o,-u]:[t,t?o:0,u]}function ur(t,e){return t*t<1&&e===1/0||t*t>1&&e===-1/0?0:Math.pow(t,e)}We.signature=Ze,Ye.signature=qe,Ve.signature=qe,Xe.signature=qe,Je.signature=Ze,Ke.signature=Ze,Qe.signature=Ze,$e.signature=Ze,tr.signature=Ze,er.signature=Ze,rr.signature=qe,nr.signature=Ze,ir.signature=Ze,ar.signature=Ze,or.signature=Ze,sr.signature=qe,ur.signature=qe;var fr=\"number\";function cr(t){return vt(t)}function hr(t){return Math.atan(1/t)}function lr(t){return isFinite(t)?(Math.log((t+1)/t)+Math.log(t/(t-1)))/2:0}function pr(t){return Math.asin(1/t)}function dr(t){var e=1/t;return Math.log(e+Math.sqrt(e*e+1))}function mr(t){return Math.acos(1/t)}function yr(t){var e=1/t,r=Math.sqrt(e*e-1);return Math.log(r+e)}function br(t){return wt(t)}function gr(t){return _t(t)}function vr(t){return 1/Math.tan(t)}function wr(t){var e=Math.exp(2*t);return(e+1)/(e-1)}function _r(t){return 1/Math.sin(t)}function xr(t){return 0===t?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(t)-Math.exp(-t)))*at(t)}function Er(t){return 1/Math.cos(t)}function Dr(t){return 2/(Math.exp(t)+Math.exp(-t))}function kr(t){return xt(t)}cr.signature=fr,hr.signature=fr,lr.signature=fr,pr.signature=fr,dr.signature=fr,mr.signature=fr,yr.signature=fr,br.signature=fr,gr.signature=fr,vr.signature=fr,wr.signature=fr,_r.signature=fr,xr.signature=fr,Er.signature=fr,Dr.signature=fr,kr.signature=fr;var Ar=\"addScalar\",Sr=te(Ar,[\"typed\"],(function(t){var e=t.typed;return e(Ar,{\"number, number\":Ye,\"Complex, Complex\":function(t,e){return t.add(e)},\"BigNumber, BigNumber\":function(t,e){return t.plus(e)},\"Fraction, Fraction\":function(t,e){return t.add(e)},\"Unit, Unit\":e.referToSelf((function(t){return function(r,n){if(null===r.value||void 0===r.value)throw new Error(\"Parameter x contains a unit with undefined value\");if(null===n.value||void 0===n.value)throw new Error(\"Parameter y contains a unit with undefined value\");if(!r.equalBase(n))throw new Error(\"Units do not match\");var i=r.clone();return i.value=e.find(t,[i.valueType(),n.valueType()])(i.value,n.value),i.fixPrefix=!1,i}}))})})),Mr=te(\"bignumber\",[\"typed\",\"BigNumber\"],(function(t){var e=t.typed,r=t.BigNumber;return e(\"bignumber\",{\"\":function(){return new r(0)},number:function(t){return new r(t+\"\")},string:function(t){var e=t.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(e){var n=e[2],i=r(e[1]),a=new r(2).pow(Number(n));if(i.gt(a.sub(1)))throw new SyntaxError('String \"'.concat(t,'\" is out of range'));var o=new r(2).pow(Number(n)-1);return i.gte(o)?i.sub(a):i}return new r(t)},BigNumber:function(t){return t},Unit:e.referToSelf((function(t){return function(e){var r=e.clone();return r.value=t(e.value),r}})),Fraction:function(t){return new r(t.n).div(t.d).times(t.s)},null:function(t){return new r(0)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})}));var Fr=\"number, number\";function Cr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitAnd\");return t&e}function Br(t){if(!it(t))throw new Error(\"Integer expected in function bitNot\");return~t}function Or(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitOr\");return t|e}function Ir(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitXor\");return t^e}function Tr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function leftShift\");return t<<e}function Pr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightArithShift\");return t>>e}function Lr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightLogShift\");return t>>>e}Cr.signature=Fr,Br.signature=\"number\",Or.signature=Fr,Ir.signature=Fr,Tr.signature=Fr,Pr.signature=Fr,Lr.signature=Fr;function Nr(t,e){if(e<t)return 1;if(e===t)return e;var r=e+t>>1;return Nr(t,r)*Nr(r+1,e)}function jr(t,e){if(!it(t)||t<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(!it(e)||e<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(e>t)throw new TypeError(\"k must be less than or equal to n\");for(var r=t-e,n=1,i=2,a=e<r?e:r,o=e<r?r+1:e+1;o<=t;++o)for(n*=o;i<=a&&n%i==0;)n/=i,++i;return i<=a&&(n/=Nr(i,a)),n}jr.signature=\"number, number\";function Rr(t,e,r){if(null==r)return t.eq(e);if(t.eq(e))return!0;if(t.isNaN()||e.isNaN())return!1;if(t.isFinite()&&e.isFinite()){var n=t.minus(e).abs();if(n.isZero())return!0;var i=t.constructor.max(t.abs(),e.abs());return n.lte(i.times(r))}return!1}var zr=te(\"compareUnits\",[\"typed\"],(function(t){var e=t.typed;return{\"Unit, Unit\":e.referToSelf((function(t){return function(r,n){if(!r.equalBase(n))throw new Error(\"Cannot compare units with different base\");return e.find(t,[r.valueType(),n.valueType()])(r.value,n.value)}}))}})),Ur=\"equalScalar\",Gr=te(Ur,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config,n=zr({typed:e});return e(Ur,{\"boolean, boolean\":function(t,e){return t===e},\"number, number\":function(t,e){return gt(t,e,r.epsilon)},\"BigNumber, BigNumber\":function(t,e){return t.eq(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return t.equals(e)},\"Complex, Complex\":function(t,e){return function(t,e,r){return gt(t.re,e.re,r)&&gt(t.im,e.im,r)}(t,e,r.epsilon)}},n)}));te(Ur,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Ur,{\"number, number\":function(t,e){return gt(t,e,r.epsilon)}})})),Math.pow(2,53);var Hr=\"getMatrixDataType\",Zr=te(Hr,[\"typed\"],(function(t){return(0,t.typed)(Hr,{Array:function(t){return Vt(t,W)},Matrix:function(t){return t.getDataType()}})})),qr=(te(\"hex\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"hex\",{\"number | BigNumber\":function(t){return r(t,{notation:\"hex\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"hex\",wordSize:e})}})})),\"isInteger\"),Wr=te(qr,[\"typed\"],(function(t){var e=t.typed;return e(qr,{number:it,BigNumber:function(t){return t.isInt()},Fraction:function(t){return 1===t.d&&isFinite(t.n)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})})),Yr=\"number\";function Vr(t){return t<0}function Xr(t){return t>0}function Jr(t){return 0===t}function Kr(t){return Number.isNaN(t)}Vr.signature=Yr,Xr.signature=Yr,Jr.signature=Yr,Kr.signature=Yr;var Qr=\"isPositive\",$r=te(Qr,[\"typed\"],(function(t){var e=t.typed;return e(Qr,{number:Xr,BigNumber:function(t){return!t.isNeg()&&!t.isZero()&&!t.isNaN()},Fraction:function(t){return t.s>0&&t.n>0},Unit:e.referToSelf((function(t){return function(r){return e.find(t,r.valueType())(r.value)}})),\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})}));function tn(t){var e;if(it(t))return t<=0?isFinite(t)?1/0:NaN:t>171?1/0:Nr(1,t-1);if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*tn(1-t));if(t>=171.35)return 1/0;if(t>85){var r=t*t,n=r*t,i=n*t,a=i*t;return Math.sqrt(2*Math.PI/t)*Math.pow(t/Math.E,t)*(1+1/(12*t)+1/(288*r)-139/(51840*n)-571/(2488320*i)+163879/(209018880*a)+5246819/(75246796800*a*t))}--t,e=rn[0];for(var o=1;o<rn.length;++o)e+=rn[o]/(t+o);var s=t+en+.5;return Math.sqrt(2*Math.PI)*Math.pow(s,t+.5)*Math.exp(-s)*e}tn.signature=\"number\";var en=4.7421875,rn=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],nn=.9189385332046728,an=[1.000000000190015,76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18];function on(t){if(t<0)return NaN;if(0===t)return 1/0;if(!isFinite(t))return t;if(t<.5)return Math.log(Math.PI/Math.sin(Math.PI*t))-on(1-t);for(var e=(t-=1)+5+.5,r=an[0],n=6;n>=1;n--)r+=an[n]/(t+n);return nn+(t+.5)*Math.log(e)-e+Math.log(r)}on.signature=\"number\";var sn=\"number, number\";function un(t){return!t}function fn(t,e){return!(!t&&!e)}function cn(t,e){return!!t!=!!e}function hn(t,e){return!(!t||!e)}un.signature=\"number\",fn.signature=sn,cn.signature=sn,hn.signature=sn;te(\"oct\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"oct\",{\"number | BigNumber\":function(t){return r(t,{notation:\"oct\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"oct\",wordSize:e})}})}));var ln=r(64),pn=r.n(ln);Date.now();function dn(t){return dn=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},dn(t)}function mn(){mn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",s=a.asyncIterator||\"@@asyncIterator\",u=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),s=new C(n||[]);return i(o,\"_invoke\",{value:A(t,r,s)}),o}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var l=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function b(){}function g(){}function v(){}var w={};f(w,o,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(B([])));x&&x!==r&&n.call(x,o)&&(w=x);var E=v.prototype=b.prototype=Object.create(w);function D(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if(\"throw\"!==u.type){var f=u.arg,c=f.value;return c&&\"object\"==dn(c)&&n.call(c,\"__await\")?e.resolve(c.__await).then((function(t){r(\"next\",t,o,s)}),(function(t){r(\"throw\",t,o,s)})):e.resolve(c).then((function(t){f.value=t,o(f)}),(function(t){return r(\"throw\",t,o,s)}))}s(u.arg)}var a;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function A(e,r,n){var i=l;return function(a,o){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===l)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var f=h(e,r,n);if(\"normal\"===f.type){if(i=n.done?m:p,f.arg===y)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=m,n.method=\"throw\",n.arg=f.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var a=h(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[o];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(dn(e)+\" is not iterable\")}return g.prototype=v,i(E,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:g,configurable:!0}),g.displayName=f(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},D(k.prototype),f(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new k(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},D(E),f(E,u,\"Generator\"),f(E,o,(function(){return this})),f(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}var yn=te(\"SparseMatrix\",[\"typed\",\"equalScalar\",\"Matrix\"],(function(t){var e=t.typed,r=t.equalScalar,n=t.Matrix;function i(t,e){if(!(this instanceof i))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!l(e))throw new Error(\"Invalid datatype: \"+e);if(d(t))!function(t,e,r){\"SparseMatrix\"===e.type?(t._values=e._values?V(e._values):void 0,t._index=V(e._index),t._ptr=V(e._ptr),t._size=V(e._size),t._datatype=r||e._datatype):a(t,e.valueOf(),r||e._datatype)}(this,t,e);else if(t&&p(t.index)&&p(t.ptr)&&p(t.size))this._values=t.values,this._index=t.index,this._ptr=t.ptr,this._size=t.size,this._datatype=e||t.datatype;else if(p(t))a(this,t,e);else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=e}}function a(t,n,i){t._values=[],t._index=[],t._ptr=[],t._datatype=i;var a=n.length,o=0,s=r,u=0;if(l(i)&&(s=e.find(r,[i,i])||r,u=e.convert(0,i)),a>0){var f=0;do{t._ptr.push(t._index.length);for(var c=0;c<a;c++){var h=n[c];if(p(h)){if(0===f&&o<h.length&&(o=h.length),f<h.length){var d=h[f];s(d,u)||(t._values.push(d),t._index.push(c))}}else 0===f&&o<1&&(o=1),s(h,u)||(t._values.push(h),t._index.push(c))}f++}while(f<o)}t._ptr.push(t._index.length),t._size=[a,o]}function o(t,e,r,n){if(r-e==0)return r;for(var i=e;i<r;i++)if(n[i]===t)return i;return e}function f(t,e,r,n,i,a,o){i.splice(t,0,n),a.splice(t,0,e);for(var s=r+1;s<o.length;s++)o[s]++}function c(t,n,i,a){var o=a||0,s=r,u=0;l(t._datatype)&&(s=e.find(r,[t._datatype,t._datatype])||r,u=e.convert(0,t._datatype),o=e.convert(o,t._datatype));var f,c,h,p=!s(o,u),d=t._size[0],m=t._size[1];if(i>m){for(c=m;c<i;c++)if(t._ptr[c]=t._values.length,p)for(f=0;f<d;f++)t._values.push(o),t._index.push(f);t._ptr[i]=t._values.length}else i<m&&(t._ptr.splice(i+1,m-i),t._values.splice(t._ptr[i],t._values.length),t._index.splice(t._ptr[i],t._index.length));if(m=i,n>d){if(p){var y=0;for(c=0;c<m;c++){t._ptr[c]=t._ptr[c]+y,h=t._ptr[c+1]+y;var b=0;for(f=d;f<n;f++,b++)t._values.splice(h+b,0,o),t._index.splice(h+b,0,f),y++}t._ptr[m]=t._values.length}}else if(n<d){var g=0;for(c=0;c<m;c++){t._ptr[c]=t._ptr[c]-g;var v=t._ptr[c],w=t._ptr[c+1]-g;for(h=v;h<w;h++)(f=t._index[h])>n-1&&(t._values.splice(h,1),t._index.splice(h,1),g++)}t._ptr[c]=t._values.length}return t._size[0]=n,t._size[1]=i,t}function h(t,e,r,n,i){var a,o,s=n[0],u=n[1],f=[];for(a=0;a<s;a++)for(f[a]=[],o=0;o<u;o++)f[a][o]=0;for(o=0;o<u;o++)for(var c=r[o],h=r[o+1],l=c;l<h;l++)f[a=e[l]][o]=t?i?V(t[l]):t[l]:1;return f}return i.prototype=new n,i.prototype.createSparseMatrix=function(t,e){return new i(t,e)},Object.defineProperty(i,\"name\",{value:\"SparseMatrix\"}),i.prototype.constructor=i,i.prototype.type=\"SparseMatrix\",i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return Vt(this._values,W)},i.prototype.storage=function(){return\"sparse\"},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(t,e){return new i(t,e)},i.prototype.density=function(){var t=this._size[0],e=this._size[1];return 0!==t&&0!==e?this._index.length/(t*e):0},i.prototype.subset=function(t,e,r){if(!this._values)throw new Error(\"Cannot invoke subset on a Pattern only matrix\");switch(arguments.length){case 1:return function(t,e){if(!v(e))throw new TypeError(\"Invalid index\");if(e.isScalar())return t.get(e.min());var r,n,a,o,s=e.size();if(s.length!==t._size.length)throw new Ot(s.length,t._size.length);var u=e.min(),f=e.max();for(r=0,n=t._size.length;r<n;r++)Rt(u[r],t._size[r]),Rt(f[r],t._size[r]);var c=t._values,h=t._index,l=t._ptr,p=e.dimension(0),d=e.dimension(1),m=[],y=[];p.forEach((function(t,e){y[t]=e[0],m[t]=!0}));var b=c?[]:void 0,g=[],w=[];return d.forEach((function(t){for(w.push(g.length),a=l[t],o=l[t+1];a<o;a++)r=h[a],!0===m[r]&&(g.push(y[r]),b&&b.push(c[a]))})),w.push(g.length),new i({values:b,index:g,ptr:w,size:s,datatype:t._datatype})}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var i,a=e.size(),o=e.isScalar();d(r)?(i=r.size(),r=r.toArray()):i=Lt(r);if(o){if(0!==i.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),r,n)}else{if(1!==a.length&&2!==a.length)throw new Ot(a.length,t._size.length,\"<\");if(i.length<a.length){for(var s=0,u=0;1===a[s]&&1===i[s];)s++;for(;1===a[s];)u++,s++;r=qt(r,a.length,u,i)}if(!K(a,i))throw new Ot(a,i,\">\");if(1===a.length){e.dimension(0).forEach((function(e,i){Rt(e),t.set([e,0],r[i[0]],n)}))}else{var f=e.dimension(0),c=e.dimension(1);f.forEach((function(e,i){Rt(e),c.forEach((function(a,o){Rt(a),t.set([e,a],r[i[0]][o[0]],n)}))}))}}return t}(this,t,e,r);default:throw new SyntaxError(\"Wrong number of arguments\")}},i.prototype.get=function(t){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ot(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke get on a Pattern only matrix\");var e=t[0],r=t[1];Rt(e,this._size[0]),Rt(r,this._size[1]);var n=o(e,this._ptr[r],this._ptr[r+1],this._index);return n<this._ptr[r+1]&&this._index[n]===e?this._values[n]:0},i.prototype.set=function(t,n,i){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ot(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke set on a Pattern only matrix\");var a=t[0],s=t[1],u=this._size[0],h=this._size[1],d=r,m=0;l(this._datatype)&&(d=e.find(r,[this._datatype,this._datatype])||r,m=e.convert(0,this._datatype)),(a>u-1||s>h-1)&&(c(this,Math.max(a+1,u),Math.max(s+1,h),i),u=this._size[0],h=this._size[1]),Rt(a,u),Rt(s,h);var y=o(a,this._ptr[s],this._ptr[s+1],this._index);return y<this._ptr[s+1]&&this._index[y]===a?d(n,m)?function(t,e,r,n,i){r.splice(t,1),n.splice(t,1);for(var a=e+1;a<i.length;a++)i[a]--}(y,s,this._values,this._index,this._ptr):this._values[y]=n:d(n,m)||f(y,a,s,n,this._values,this._index,this._ptr),this},i.prototype.resize=function(t,e,r){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var n=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));if(2!==n.length)throw new Error(\"Only two dimensions matrix are supported\");return n.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+St(n)+\")\")})),c(r?this.clone():this,n[0],n[1],e)},i.prototype.reshape=function(t,e){if(!p(t))throw new TypeError(\"Array expected\");if(2!==t.length)throw new Error(\"Sparse matrices can only be reshaped in two dimensions\");t.forEach((function(e){if(!s(e)||!it(e)||e<=-2||0===e)throw new TypeError(\"Invalid size, must contain positive integers or -1 (size: \"+St(t)+\")\")}));var r=this._size[0]*this._size[1];if(r!==(t=Ht(t,r))[0]*t[1])throw new Error(\"Reshaping sparse matrix will result in the wrong number of elements\");var n=e?this.clone():this;if(this._size[0]===t[0]&&this._size[1]===t[1])return n;for(var i=[],a=0;a<n._ptr.length;a++)for(var u=0;u<n._ptr[a+1]-n._ptr[a];u++)i.push(a);for(var c=n._values.slice(),h=n._index.slice(),l=0;l<n._index.length;l++){var d=h[l],m=i[l],y=d*n._size[1]+m;i[l]=y%t[1],h[l]=Math.floor(y/t[1])}n._values.length=0,n._index.length=0,n._ptr.length=t[1]+1,n._size=t.slice();for(var b=0;b<n._ptr.length;b++)n._ptr[b]=0;for(var g=0;g<c.length;g++){var v=h[g],w=i[g],_=c[g];f(o(v,n._ptr[w],n._ptr[w+1],n._index),v,w,_,n._values,n._index,n._ptr)}return n},i.prototype.clone=function(){return new i({values:this._values?V(this._values):void 0,index:V(this._index),ptr:V(this._ptr),size:V(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(t,n){if(!this._values)throw new Error(\"Cannot invoke map on a Pattern only matrix\");var a=this,o=this._size[0],s=this._size[1],u=ce(t);return function(t,n,a,o,s,u,f){var c=[],h=[],p=[],d=r,m=0;l(t._datatype)&&(d=e.find(r,[t._datatype,t._datatype])||r,m=e.convert(0,t._datatype));for(var y=function(t,e,r){t=u(t,e,r),d(t,m)||(c.push(t),h.push(e))},b=o;b<=s;b++){p.push(c.length);var g=t._ptr[b],v=t._ptr[b+1];if(f)for(var w=g;w<v;w++){var _=t._index[w];_>=n&&_<=a&&y(t._values[w],_-n,b-o)}else{for(var x={},E=g;E<v;E++){x[t._index[E]]=t._values[E]}for(var D=n;D<=a;D++){y(D in x?x[D]:0,D-n,b-o)}}}return p.push(c.length),new i({values:c,index:h,ptr:p,size:[a-n+1,s-o+1]})}(this,0,o-1,0,s-1,(function(e,r,n){return 1===u?t(e):2===u?t(e,[r,n]):t(e,[r,n],a)}),n)},i.prototype.forEach=function(t,e){if(!this._values)throw new Error(\"Cannot invoke forEach on a Pattern only matrix\");for(var r=this._size[0],n=this._size[1],i=0;i<n;i++){var a=this._ptr[i],o=this._ptr[i+1];if(e)for(var s=a;s<o;s++){var u=this._index[s];t(this._values[s],[u,i],this)}else{for(var f={},c=a;c<o;c++){f[this._index[c]]=this._values[c]}for(var h=0;h<r;h++){t(h in f?f[h]:0,[h,i],this)}}}},i.prototype[Symbol.iterator]=mn().mark((function t(){var e,r,n,i,a,o;return mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._values){t.next=2;break}throw new Error(\"Cannot iterate a Pattern only matrix\");case 2:e=this._size[1],r=0;case 4:if(!(r<e)){t.next=18;break}n=this._ptr[r],i=this._ptr[r+1],a=n;case 8:if(!(a<i)){t.next=15;break}return o=this._index[a],t.next=12,{value:this._values[a],index:[o,r]};case 12:a++,t.next=8;break;case 15:r++,t.next=4;break;case 18:case\"end\":return t.stop()}}),t,this)})),i.prototype.toArray=function(){return h(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return h(this._values,this._index,this._ptr,this._size,!1)},i.prototype.format=function(t){for(var e=this._size[0],r=this._size[1],n=this.density(),i=\"Sparse Matrix [\"+St(e,t)+\" x \"+St(r,t)+\"] density: \"+St(n,t)+\"\\n\",a=0;a<r;a++)for(var o=this._ptr[a],s=this._ptr[a+1],u=o;u<s;u++){i+=\"\\n    (\"+St(this._index[u],t)+\", \"+St(a,t)+\") ==> \"+(this._values?St(this._values[u],t):\"X\")}return i},i.prototype.toString=function(){return St(this.toArray())},i.prototype.toJSON=function(){return{mathjs:\"SparseMatrix\",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;var e=t>0?t:0,r=t<0?-t:0,n=this._size[0],a=this._size[1],o=Math.min(n-r,a-e),f=[],c=[],h=[];h[0]=0;for(var l=e;l<a&&f.length<o;l++)for(var p=this._ptr[l],d=this._ptr[l+1],m=p;m<d;m++){var y=this._index[m];if(y===l-e+r){f.push(this._values[m]),c[f.length-1]=y-r;break}}return h.push(f.length),new i({values:f,index:c,ptr:h,size:[o,1]})},i.fromJSON=function(t){return new i(t)},i.diagonal=function(t,n,a,o,f){if(!p(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),a){if(u(a)&&(a=a.toNumber()),!s(a)||!it(a))throw new TypeError(\"The parameter k must be an integer number\")}else a=0;var c=r,h=0;l(f)&&(c=e.find(r,[f,f])||r,h=e.convert(0,f));var m,y=a>0?a:0,b=a<0?-a:0,g=t[0],v=t[1],w=Math.min(g-b,v-y);if(p(n)){if(n.length!==w)throw new Error(\"Invalid value array length\");m=function(t){return n[t]}}else if(d(n)){var _=n.size();if(1!==_.length||_[0]!==w)throw new Error(\"Invalid matrix length\");m=function(t){return n.get([t])}}else m=function(){return n};for(var x=[],E=[],D=[],k=0;k<v;k++){D.push(x.length);var A=k-y;if(A>=0&&A<w){var S=m(A);c(S,h)||(E.push(A+b),x.push(S))}}return D.push(x.length),new i({values:x,index:E,ptr:D,size:[g,v]})},i.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return Rt(t,this._size[0]),Rt(e,this._size[0]),i._swapRows(t,e,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(t,e,r,n,i){for(var a=n[t],o=n[t+1],s=a;s<o;s++)i(r[s],e[s])},i._swapRows=function(t,e,r,n,i,a){for(var s=0;s<r;s++){var u=a[s],f=a[s+1],c=o(t,u,f,i),h=o(e,u,f,i);if(c<f&&h<f&&i[c]===t&&i[h]===e){if(n){var l=n[c];n[c]=n[h],n[h]=l}}else if(c<f&&i[c]===t&&(h>=f||i[h]!==e)){var p=n?n[c]:void 0;i.splice(h,0,e),n&&n.splice(h,0,p),i.splice(h<=c?c+1:c,1),n&&n.splice(h<=c?c+1:c,1)}else if(h<f&&i[h]===e&&(c>=f||i[c]!==t)){var d=n?n[h]:void 0;i.splice(c,0,t),n&&n.splice(c,0,d),i.splice(c<=h?h+1:h,1),n&&n.splice(c<=h?h+1:h,1)}}},i}),{isClass:!0});te(\"bin\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"bin\",{\"number | BigNumber\":function(t){return r(t,{notation:\"bin\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"bin\",wordSize:e})}})}));var bn=\"matrix\",gn=te(bn,[\"typed\",\"Matrix\",\"DenseMatrix\",\"SparseMatrix\"],(function(t){var e=t.typed,r=(t.Matrix,t.DenseMatrix),n=t.SparseMatrix;return e(bn,{\"\":function(){return i([])},string:function(t){return i([],t)},\"string, string\":function(t,e){return i([],t,e)},Array:function(t){return i(t)},Matrix:function(t){return i(t,t.storage())},\"Array | Matrix, string\":i,\"Array | Matrix, string, string\":i});function i(t,e,i){if(\"dense\"===e||\"default\"===e||void 0===e)return new r(t,i);if(\"sparse\"===e)return new n(t,i);throw new TypeError(\"Unknown matrix type \"+JSON.stringify(e)+\".\")}}));function vn(){throw new Error('No \"bignumber\" implementation available')}function wn(){throw new Error('No \"matrix\" implementation available')}var _n=\"transpose\",xn=te(_n,[\"typed\",\"matrix\"],(function(t){var e=t.typed,r=t.matrix;return e(_n,{Array:function(t){return n(r(t)).valueOf()},Matrix:n,any:V});function n(t){var e,r=t.size();switch(r.length){case 1:e=t.clone();break;case 2:var n=r[0],i=r[1];if(0===i)throw new RangeError(\"Cannot transpose a 2D matrix with no columns (size: \"+St(r)+\")\");switch(t.storage()){case\"dense\":e=function(t,e,r){for(var n,i=t._data,a=[],o=0;o<r;o++){n=a[o]=[];for(var s=0;s<e;s++)n[s]=V(i[s][o])}return t.createDenseMatrix({data:a,size:[r,e],datatype:t._datatype})}(t,n,i);break;case\"sparse\":e=function(t,e,r){for(var n,i,a,o=t._values,s=t._index,u=t._ptr,f=o?[]:void 0,c=[],h=[],l=[],p=0;p<e;p++)l[p]=0;for(n=0,i=s.length;n<i;n++)l[s[n]]++;for(var d=0,m=0;m<e;m++)h.push(d),d+=l[m],l[m]=h[m];for(h.push(d),a=0;a<r;a++)for(var y=u[a],b=u[a+1],g=y;g<b;g++){var v=l[s[g]]++;c[v]=a,o&&(f[v]=V(o[g]))}return t.createSparseMatrix({values:f,index:c,ptr:h,size:[r,e],datatype:t._datatype})}(t,n,i)}break;default:throw new RangeError(\"Matrix must be a vector or two dimensional (size: \"+St(r)+\")\")}return e}})),En=\"concat\",Dn=te(En,[\"typed\",\"matrix\",\"isInteger\"],(function(t){var e=t.typed,r=t.matrix,n=t.isInteger;return e(En,{\"...Array | Matrix | number | BigNumber\":function(t){var e,i,a=t.length,o=-1,f=!1,c=[];for(e=0;e<a;e++){var h=t[e];if(d(h)&&(f=!0),s(h)||u(h)){if(e!==a-1)throw new Error(\"Dimension must be specified as last argument\");if(i=o,o=h.valueOf(),!n(o))throw new TypeError(\"Integer number expected for dimension\");if(o<0||e>0&&o>i)throw new It(o,i+1)}else{var l=V(h).valueOf(),p=Lt(l);if(c[e]=l,i=o,o=p.length-1,e>0&&o!==i)throw new Ot(i+1,o+1)}}if(0===c.length)throw new SyntaxError(\"At least one matrix expected\");for(var m=c.shift();c.length;)m=Jt(m,c.shift(),o);return f?r(m):m},\"...string\":function(t){return t.join(\"\")}})})),kn=te(\"matAlgo03xDSf\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,n,i){var a=t._data,o=t._size,s=t._datatype,u=r._values,f=r._index,c=r._ptr,h=r._size,l=r._datatype;if(o.length!==h.length)throw new Ot(o.length,h.length);if(o[0]!==h[0]||o[1]!==h[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+o+\") must match Matrix B (\"+h+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var p,d=o[0],m=o[1],y=0,b=n;\"string\"==typeof s&&s===l&&(p=s,y=e.convert(0,p),b=e.find(n,[p,p]));for(var g=[],v=0;v<d;v++)g[v]=[];for(var w=[],_=[],x=0;x<m;x++){for(var E=x+1,D=c[x],k=c[x+1],A=D;A<k;A++){var S=f[A];w[S]=i?b(u[A],a[S][x]):b(a[S][x],u[A]),_[S]=E}for(var M=0;M<d;M++)_[M]===E?g[M][x]=w[M]:g[M][x]=i?b(y,a[M][x]):b(a[M][x],y)}return t.createDenseMatrix({data:g,size:[d,m],datatype:p})}})),An=te(\"matAlgo07xSSf\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,i,a){var o=t._size,s=t._datatype,u=i._size,f=i._datatype;if(o.length!==u.length)throw new Ot(o.length,u.length);if(o[0]!==u[0]||o[1]!==u[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+o+\") must match Matrix B (\"+u+\")\");var c,h,l,p=o[0],d=o[1],m=0,y=a;\"string\"==typeof s&&s===f&&(c=s,m=e.convert(0,c),y=e.find(a,[c,c]));var b=[];for(h=0;h<p;h++)b[h]=[];var g=[],v=[],w=[],_=[];for(l=0;l<d;l++){var x=l+1;for(n(t,l,w,g,x),n(i,l,_,v,x),h=0;h<p;h++){var E=w[h]===x?g[h]:m,D=_[h]===x?v[h]:m;b[h][l]=y(E,D)}}return new r({data:b,size:[p,d],datatype:c})};function n(t,e,r,n,i){for(var a=t._values,o=t._index,s=t._ptr,u=s[e],f=s[e+1];u<f;u++){var c=o[u];r[c]=i,n[c]=a[u]}}})),Sn=te(\"matAlgo12xSfs\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,n,i,a){var o=t._values,s=t._index,u=t._ptr,f=t._size,c=t._datatype;if(!o)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var h,l=f[0],p=f[1],d=i;\"string\"==typeof c&&(h=c,n=e.convert(n,h),d=e.find(i,[h,h]));for(var m=[],y=[],b=[],g=0;g<p;g++){for(var v=g+1,w=u[g],_=u[g+1],x=w;x<_;x++){var E=s[x];y[E]=o[x],b[E]=v}for(var D=0;D<l;D++)0===g&&(m[D]=[]),b[D]===v?m[D][g]=a?d(n,y[D]):d(y[D],n):m[D][g]=a?d(n,0):d(0,n)}return new r({data:m,size:[l,p],datatype:h})}})),Mn=te(\"matAlgo13xDD\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,i){var a,o=t._data,s=t._size,u=t._datatype,f=n._data,c=n._size,h=n._datatype,l=[];if(s.length!==c.length)throw new Ot(s.length,c.length);for(var p=0;p<s.length;p++){if(s[p]!==c[p])throw new RangeError(\"Dimension mismatch. Matrix A (\"+s+\") must match Matrix B (\"+c+\")\");l[p]=s[p]}var d=i;\"string\"==typeof u&&u===h&&(a=u,d=e.find(i,[a,a]));var m=l.length>0?r(d,0,l,l[0],o,f):[];return t.createDenseMatrix({data:m,size:l,datatype:a})};function r(t,e,n,i,a,o){var s=[];if(e===n.length-1)for(var u=0;u<i;u++)s[u]=t(a[u],o[u]);else for(var f=0;f<i;f++)s[f]=r(t,e+1,n,n[e+1],a[f],o[f]);return s}})),Fn=te(\"matAlgo14xDs\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,i,a){var o,s=t._data,u=t._size,f=t._datatype,c=i;\"string\"==typeof f&&(o=f,n=e.convert(n,o),c=e.find(i,[o,o]));var h=u.length>0?r(c,0,u,u[0],s,n,a):[];return t.createDenseMatrix({data:h,size:V(u),datatype:o})};function r(t,e,n,i,a,o,s){var u=[];if(e===n.length-1)for(var f=0;f<i;f++)u[f]=s?t(o,a[f]):t(a[f],o);else for(var c=0;c<i;c++)u[c]=r(t,e+1,n,n[e+1],a[c],o,s);return u}}));function Cn(t){return function(t){if(Array.isArray(t))return Bn(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Bn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bn(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Bn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var On=te(\"broadcast\",[\"concat\"],(function(t){var e=t.concat;return function(t,e){var i=Math.max(t._size.length,e._size.length);if(t._size.length===e._size.length&&t._size.every((function(t,r){return t===e._size[r]})))return[t,e];for(var a=r(t._size,i,0),o=r(e._size,i,0),s=[],u=0;u<i;u++)s[u]=Math.max(a[u],o[u]);Qt(a,s),Qt(o,s);var f=t.clone(),c=e.clone();f._size.length<i?f.reshape(r(f._size,i,1)):c._size.length<i&&c.reshape(r(c._size,i,1));for(var h=0;h<i;h++)f._size[h]<s[h]&&(f=n(f,s[h],h)),c._size[h]<s[h]&&(c=n(c,s[h],h));return[f,c]};function r(t,e,r){return[].concat(Cn(Array(e-t.length).fill(r)),Cn(t))}function n(t,r,n){return e.apply(void 0,Cn(Array(r).fill(t)).concat([n]))}}));function In(t){return function(t){if(Array.isArray(t))return Tn(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Tn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tn(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Tn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Pn=te(\"matrixAlgorithmSuite\",[\"typed\",\"matrix\",\"concat\"],(function(t){var e=t.typed,r=t.matrix,n=t.concat,i=Mn({typed:e}),a=Fn({typed:e}),o=On({concat:n});return function(t){var n,s=t.elop,u=t.SD||t.DS;s?(n={\"DenseMatrix, DenseMatrix\":function(t,e){return i.apply(void 0,In(o(t,e)).concat([s]))},\"Array, Array\":function(t,e){return i.apply(void 0,In(o(r(t),r(e))).concat([s])).valueOf()},\"Array, DenseMatrix\":function(t,e){return i.apply(void 0,In(o(r(t),e)).concat([s]))},\"DenseMatrix, Array\":function(t,e){return i.apply(void 0,In(o(t,r(e))).concat([s]))}},t.SS&&(n[\"SparseMatrix, SparseMatrix\"]=function(e,r){return t.SS.apply(t,In(o(e,r)).concat([s,!1]))}),t.DS&&(n[\"DenseMatrix, SparseMatrix\"]=function(e,r){return t.DS.apply(t,In(o(e,r)).concat([s,!1]))},n[\"Array, SparseMatrix\"]=function(e,n){return t.DS.apply(t,In(o(r(e),n)).concat([s,!1]))}),u&&(n[\"SparseMatrix, DenseMatrix\"]=function(t,e){return u.apply(void 0,In(o(e,t)).concat([s,!0]))},n[\"SparseMatrix, Array\"]=function(t,e){return u.apply(void 0,In(o(r(e),t)).concat([s,!0]))})):(n={\"DenseMatrix, DenseMatrix\":e.referToSelf((function(t){return function(e,r){return i.apply(void 0,In(o(e,r)).concat([t]))}})),\"Array, Array\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,In(o(r(e),r(n))).concat([t])).valueOf()}})),\"Array, DenseMatrix\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,In(o(r(e),n)).concat([t]))}})),\"DenseMatrix, Array\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,In(o(e,r(n))).concat([t]))}}))},t.SS&&(n[\"SparseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(r,n){return t.SS.apply(t,In(o(r,n)).concat([e,!1]))}}))),t.DS&&(n[\"DenseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(r,n){return t.DS.apply(t,In(o(r,n)).concat([e,!1]))}})),n[\"Array, SparseMatrix\"]=e.referToSelf((function(e){return function(n,i){return t.DS.apply(t,In(o(r(n),i)).concat([e,!1]))}}))),u&&(n[\"SparseMatrix, DenseMatrix\"]=e.referToSelf((function(t){return function(e,r){return u.apply(void 0,In(o(r,e)).concat([t,!0]))}})),n[\"SparseMatrix, Array\"]=e.referToSelf((function(t){return function(e,n){return u.apply(void 0,In(o(r(n),e)).concat([t,!0]))}}))));var f=t.scalar||\"any\";(t.Ds||t.Ss)&&(s?(n[\"DenseMatrix,\"+f]=function(t,e){return a(t,e,s,!1)},n[f+\", DenseMatrix\"]=function(t,e){return a(e,t,s,!0)},n[\"Array,\"+f]=function(t,e){return a(r(t),e,s,!1).valueOf()},n[f+\", Array\"]=function(t,e){return a(r(e),t,s,!0).valueOf()}):(n[\"DenseMatrix,\"+f]=e.referToSelf((function(t){return function(e,r){return a(e,r,t,!1)}})),n[f+\", DenseMatrix\"]=e.referToSelf((function(t){return function(e,r){return a(r,e,t,!0)}})),n[\"Array,\"+f]=e.referToSelf((function(t){return function(e,n){return a(r(e),n,t,!1).valueOf()}})),n[f+\", Array\"]=e.referToSelf((function(t){return function(e,n){return a(r(n),e,t,!0).valueOf()}}))));var c=void 0!==t.sS?t.sS:t.Ss;return s?(t.Ss&&(n[\"SparseMatrix,\"+f]=function(e,r){return t.Ss(e,r,s,!1)}),c&&(n[f+\", SparseMatrix\"]=function(t,e){return c(e,t,s,!0)})):(t.Ss&&(n[\"SparseMatrix,\"+f]=e.referToSelf((function(e){return function(r,n){return t.Ss(r,n,e,!1)}}))),c&&(n[f+\", SparseMatrix\"]=e.referToSelf((function(t){return function(e,r){return c(r,e,t,!0)}})))),s&&s.signatures&&J(n,s.signatures),n}})),Ln=\"equal\",Nn=(te(Ln,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return e(Ln,{\"any, any\":function(t,e){return null===t?null===e:null===e?null===t:void 0===t?void 0===e:void 0===e?void 0===t:r(t,e)}})})),\"largerEq\"),jn=te(Nn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,a=t.concat,o=kn({typed:e}),s=An({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),f=Pn({typed:e,matrix:n,concat:a}),c=zr({typed:e});return e(Nn,Rn({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t>=e},\"BigNumber, BigNumber\":function(t,e){return t.gte(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return-1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,f({SS:s,DS:o,Ss:u}))})),Rn=te(Nn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Nn,{\"number, number\":function(t,e){return t>=e||gt(t,e,r.epsilon)}})})),zn=te(\"matAlgo01xDSid\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,n,i){var a=t._data,o=t._size,s=t._datatype,u=r._values,f=r._index,c=r._ptr,h=r._size,l=r._datatype;if(o.length!==h.length)throw new Ot(o.length,h.length);if(o[0]!==h[0]||o[1]!==h[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+o+\") must match Matrix B (\"+h+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var p,d,m=o[0],y=o[1],b=\"string\"==typeof s&&s===l?s:void 0,g=b?e.find(n,[b,b]):n,v=[];for(p=0;p<m;p++)v[p]=[];var w=[],_=[];for(d=0;d<y;d++){for(var x=d+1,E=c[d],D=c[d+1],k=E;k<D;k++)w[p=f[k]]=i?g(u[k],a[p][d]):g(a[p][d],u[k]),_[p]=x;for(p=0;p<m;p++)_[p]===x?v[p][d]=w[p]:v[p][d]=a[p][d]}return t.createDenseMatrix({data:v,size:[m,y],datatype:b})}})),Un=te(\"matAlgo10xSids\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,n,i,a){var o=t._values,s=t._index,u=t._ptr,f=t._size,c=t._datatype;if(!o)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var h,l=f[0],p=f[1],d=i;\"string\"==typeof c&&(h=c,n=e.convert(n,h),d=e.find(i,[h,h]));for(var m=[],y=[],b=[],g=0;g<p;g++){for(var v=g+1,w=u[g],_=u[g+1],x=w;x<_;x++){var E=s[x];y[E]=o[x],b[E]=v}for(var D=0;D<l;D++)0===g&&(m[D]=[]),b[D]===v?m[D][g]=a?d(n,y[D]):d(y[D],n):m[D][g]=n}return new r({data:m,size:[l,p],datatype:h})}}));function Gn(t,e,r,n){if(!(this instanceof Gn))throw new SyntaxError(\"Constructor must be called with the new operator\");this.fn=t,this.count=e,this.min=r,this.max=n,this.message=\"Wrong number of arguments in function \"+t+\" (\"+e+\" provided, \"+r+(null!=n?\"-\"+n:\"\")+\" expected)\",this.stack=(new Error).stack}Gn.prototype=new Error,Gn.prototype.constructor=Error,Gn.prototype.name=\"ArgumentsError\",Gn.prototype.isArgumentsError=!0;var Hn=\"smaller\",Zn=te(Hn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,a=t.concat,o=kn({typed:e}),s=An({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),f=Pn({typed:e,matrix:n,concat:a}),c=zr({typed:e});return e(Hn,qn({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t<e},\"BigNumber, BigNumber\":function(t,e){return t.lt(e)&&!Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return-1===t.compare(e)},\"Complex, Complex\":function(t,e){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,f({SS:s,DS:o,Ss:u}))})),qn=te(Hn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Hn,{\"number, number\":function(t,e){return t<e&&!gt(t,e,r.epsilon)}})})),Wn=\"unequal\",Yn=(te(Wn,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return e(Wn,{\"any, any\":function(t,e){return null===t?null!==e:null===e?null!==t:void 0===t?void 0!==e:void 0===e?void 0!==t:!r(t,e)}})})),te(\"matAlgo04xSidSid\",[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return function(t,n,i){var a=t._values,o=t._index,s=t._ptr,u=t._size,f=t._datatype,c=n._values,h=n._index,l=n._ptr,p=n._size,d=n._datatype;if(u.length!==p.length)throw new Ot(u.length,p.length);if(u[0]!==p[0]||u[1]!==p[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+u+\") must match Matrix B (\"+p+\")\");var m,y=u[0],b=u[1],g=r,v=0,w=i;\"string\"==typeof f&&f===d&&(m=f,g=e.find(r,[m,m]),v=e.convert(0,m),w=e.find(i,[m,m]));var _,x,E,D,k,A=a&&c?[]:void 0,S=[],M=[],F=a&&c?[]:void 0,C=a&&c?[]:void 0,B=[],O=[];for(x=0;x<b;x++){M[x]=S.length;var I=x+1;for(D=s[x],k=s[x+1],E=D;E<k;E++)_=o[E],S.push(_),B[_]=I,F&&(F[_]=a[E]);for(D=l[x],k=l[x+1],E=D;E<k;E++)if(B[_=h[E]]===I){if(F){var T=w(F[_],c[E]);g(T,v)?B[_]=null:F[_]=T}}else S.push(_),O[_]=I,C&&(C[_]=c[E]);if(F&&C)for(E=M[x];E<S.length;)B[_=S[E]]===I?(A[E]=F[_],E++):O[_]===I?(A[E]=C[_],E++):S.splice(E,1)}return M[b]=S.length,t.createSparseMatrix({values:A,index:S,ptr:M,size:[y,b],datatype:m})}}))),Vn=te(\"add\",[\"typed\",\"matrix\",\"addScalar\",\"equalScalar\",\"DenseMatrix\",\"SparseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.matrix,n=t.addScalar,i=t.equalScalar,a=t.DenseMatrix,o=(t.SparseMatrix,t.concat),s=zn({typed:e}),u=Yn({typed:e,equalScalar:i}),f=Un({typed:e,DenseMatrix:a}),c=Pn({typed:e,matrix:r,concat:o});return e(\"add\",{\"any, any\":n,\"any, any, ...any\":e.referToSelf((function(t){return function(e,r,n){for(var i=t(e,r),a=0;a<n.length;a++)i=t(i,n[a]);return i}}))},c({elop:n,DS:s,SS:u,Ss:f}))}));Bt.signature=\"any, any\";var Xn=\"number | BigNumber | Fraction | Matrix | Array\";\"\".concat(Xn,\", \").concat(Xn,\", ...\").concat(Xn);var Jn=te(\"ImmutableDenseMatrix\",[\"smaller\",\"DenseMatrix\"],(function(t){var e=t.smaller,r=t.DenseMatrix;function n(t,e){if(!(this instanceof n))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!l(e))throw new Error(\"Invalid datatype: \"+e);if(d(t)||p(t)){var i=new r(t,e);this._data=i._data,this._size=i._size,this._datatype=i._datatype,this._min=null,this._max=null}else if(t&&p(t.data)&&p(t.size))this._data=t.data,this._size=t.size,this._datatype=t.datatype,this._min=void 0!==t.min?t.min:null,this._max=void 0!==t.max?t.max:null;else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._data=[],this._size=[0],this._datatype=e,this._min=null,this._max=null}}return n.prototype=new r,n.prototype.type=\"ImmutableDenseMatrix\",n.prototype.isImmutableDenseMatrix=!0,n.prototype.subset=function(t){switch(arguments.length){case 1:var e=r.prototype.subset.call(this,t);return d(e)?new n({data:e._data,size:e._size,datatype:e._datatype}):e;case 2:case 3:throw new Error(\"Cannot invoke set subset on an Immutable Matrix instance\");default:throw new SyntaxError(\"Wrong number of arguments\")}},n.prototype.set=function(){throw new Error(\"Cannot invoke set on an Immutable Matrix instance\")},n.prototype.resize=function(){throw new Error(\"Cannot invoke resize on an Immutable Matrix instance\")},n.prototype.reshape=function(){throw new Error(\"Cannot invoke reshape on an Immutable Matrix instance\")},n.prototype.clone=function(){return new n({data:V(this._data),size:V(this._size),datatype:this._datatype})},n.prototype.toJSON=function(){return{mathjs:\"ImmutableDenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},n.fromJSON=function(t){return new n(t)},n.prototype.swapRows=function(){throw new Error(\"Cannot invoke swapRows on an Immutable Matrix instance\")},n.prototype.min=function(){if(null===this._min){var t=null;this.forEach((function(r){(null===t||e(r,t))&&(t=r)})),this._min=null!==t?t:void 0}return this._min},n.prototype.max=function(){if(null===this._max){var t=null;this.forEach((function(r){(null===t||e(t,r))&&(t=r)})),this._max=null!==t?t:void 0}return this._max},n}),{isClass:!0}),Kn=te(\"Index\",[\"ImmutableDenseMatrix\",\"getMatrixDataType\"],(function(t){var e=t.ImmutableDenseMatrix,r=t.getMatrixDataType;function n(t){if(!(this instanceof n))throw new SyntaxError(\"Constructor must be called with the new operator\");this._dimensions=[],this._sourceSize=[],this._isScalar=!0;for(var e=0,a=arguments.length;e<a;e++){var o=arguments[e],s=p(o),u=d(o),f=null;if(g(o))this._dimensions.push(o),this._isScalar=!1;else if(s||u){var c=void 0;\"boolean\"===r(o)?(s&&(c=i(Qn(o).valueOf())),u&&(c=i(Qn(o._data).valueOf())),f=o.valueOf().length):c=i(o.valueOf()),this._dimensions.push(c);var h=c.size();1===h.length&&1===h[0]&&null===f||(this._isScalar=!1)}else if(\"number\"==typeof o)this._dimensions.push(i([o]));else{if(\"string\"!=typeof o)throw new TypeError(\"Dimension must be an Array, Matrix, number, string, or Range\");this._dimensions.push(o)}this._sourceSize.push(f)}}function i(t){for(var r=0,n=t.length;r<n;r++)if(\"number\"!=typeof t[r]||!it(t[r]))throw new TypeError(\"Index parameters must be positive integer numbers\");return new e(t)}return n.prototype.type=\"Index\",n.prototype.isIndex=!0,n.prototype.clone=function(){var t=new n;return t._dimensions=V(this._dimensions),t._isScalar=this._isScalar,t._sourceSize=this._sourceSize,t},n.create=function(t){var e=new n;return n.apply(e,t),e},n.prototype.size=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?1:n.size()[0]}return t},n.prototype.max=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?n:n.max()}return t},n.prototype.min=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?n:n.min()}return t},n.prototype.forEach=function(t){for(var e=0,r=this._dimensions.length;e<r;e++)t(this._dimensions[e],e,this)},n.prototype.dimension=function(t){return this._dimensions[t]||null},n.prototype.isObjectProperty=function(){return 1===this._dimensions.length&&\"string\"==typeof this._dimensions[0]},n.prototype.getObjectProperty=function(){return this.isObjectProperty()?this._dimensions[0]:null},n.prototype.isScalar=function(){return this._isScalar},n.prototype.toArray=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t.push(\"string\"==typeof n?n:n.toArray())}return t},n.prototype.valueOf=n.prototype.toArray,n.prototype.toString=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];\"string\"==typeof n?t.push(JSON.stringify(n)):t.push(n.toString())}return\"[\"+t.join(\", \")+\"]\"},n.prototype.toJSON=function(){return{mathjs:\"Index\",dimensions:this._dimensions}},n.fromJSON=function(t){return n.create(t.dimensions)},n}),{isClass:!0});function Qn(t){var e=[];return t.forEach((function(t,r){t&&e.push(r)})),e}var $n=\"larger\",ti=te($n,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,a=t.concat,o=kn({typed:e}),s=An({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),f=Pn({typed:e,matrix:n,concat:a}),c=zr({typed:e});return e($n,ei({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t>e},\"BigNumber, BigNumber\":function(t,e){return t.gt(e)&&!Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return 1===t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,f({SS:s,DS:o,Ss:u}))})),ei=te($n,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e($n,{\"number, number\":function(t,e){return t>e&&!gt(t,e,r.epsilon)}})}));r(22);var ri=\"smallerEq\",ni=te(ri,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,a=t.concat,o=kn({typed:e}),s=An({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),f=Pn({typed:e,matrix:n,concat:a}),c=zr({typed:e});return e(ri,ii({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t<=e},\"BigNumber, BigNumber\":function(t,e){return t.lte(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return 1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,f({SS:s,DS:o,Ss:u}))})),ii=te(ri,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(ri,{\"number, number\":function(t,e){return t<=e||gt(t,e,r.epsilon)}})})),ai=\"range\",oi=te(ai,[\"typed\",\"config\",\"?matrix\",\"?bignumber\",\"smaller\",\"smallerEq\",\"larger\",\"largerEq\",\"add\",\"isPositive\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.bignumber,a=t.smaller,o=t.smallerEq,s=t.larger,u=t.largerEq,f=t.add,c=t.isPositive;return e(ai,{string:l,\"string, boolean\":l,\"number, number\":function(t,e){return h(p(t,e,1,!1))},\"number, number, number\":function(t,e,r){return h(p(t,e,r,!1))},\"number, number, boolean\":function(t,e,r){return h(p(t,e,1,r))},\"number, number, number, boolean\":function(t,e,r,n){return h(p(t,e,r,n))},\"BigNumber, BigNumber\":function(t,e){return h(p(t,e,new(0,t.constructor)(1),!1))},\"BigNumber, BigNumber, BigNumber\":function(t,e,r){return h(p(t,e,r,!1))},\"BigNumber, BigNumber, boolean\":function(t,e,r){return h(p(t,e,new(0,t.constructor)(1),r))},\"BigNumber, BigNumber, BigNumber, boolean\":function(t,e,r,n){return h(p(t,e,r,n))},\"Unit, Unit, Unit\":function(t,e,r){return h(p(t,e,r,!1))},\"Unit, Unit, Unit, boolean\":function(t,e,r,n){return h(p(t,e,r,n))}});function h(t){return\"Matrix\"===r.matrix?n?n(t):wn():t}function l(t,e){var n=function(t){var e=t.split(\":\"),r=e.map((function(t){return Number(t)}));if(r.some((function(t){return isNaN(t)})))return null;switch(r.length){case 2:return{start:r[0],end:r[1],step:1};case 3:return{start:r[0],end:r[2],step:r[1]};default:return null}}(t);if(!n)throw new SyntaxError('String \"'+t+'\" is no valid range');return\"BigNumber\"===r.number?(void 0===i&&vn(),h(p(i(n.start),i(n.end),i(n.step)))):h(p(n.start,n.end,n.step,e))}function p(t,e,r,n){for(var i=[],h=c(r)?n?o:a:n?u:s,l=t;h(l,e);)i.push(l),l=f(l,r);return i}})),si=te(\"row\",[\"typed\",\"Index\",\"matrix\",\"range\"],(function(t){var e=t.typed,r=t.Index,n=t.matrix,i=t.range;return e(\"row\",{\"Matrix, number\":a,\"Array, number\":function(t,e){return a(n(V(t)),e).valueOf()}});function a(t,e){if(2!==t.size().length)throw new Error(\"Only two dimensional matrix is supported\");Rt(e,t.size()[0]);var a=i(0,t.size()[1]),o=new r(e,a),s=t.subset(o);return d(s)?s:n([[s]])}}));r(44);var ui=re({config:et}),fi=oe({}),ci=ye({}),hi=be({}),li=xe({Matrix:hi}),pi=Re({BigNumber:ui,Complex:fi,DenseMatrix:li,Fraction:ci}),di=Sr({typed:pi}),mi=Mr({BigNumber:ui,typed:pi}),yi=Gr({config:et,typed:pi}),bi=Zr({typed:pi}),gi=Wr({typed:pi}),vi=$r({typed:pi}),wi=yn({Matrix:hi,equalScalar:yi,typed:pi}),_i=gn({DenseMatrix:li,Matrix:hi,SparseMatrix:wi,typed:pi}),xi=xn({matrix:_i,typed:pi}),Ei=Dn({isInteger:gi,matrix:_i,typed:pi}),Di=jn({DenseMatrix:li,concat:Ei,config:et,matrix:_i,typed:pi}),ki=Zn({DenseMatrix:li,concat:Ei,config:et,matrix:_i,typed:pi}),Ai=Vn({DenseMatrix:li,SparseMatrix:wi,addScalar:di,concat:Ei,equalScalar:yi,matrix:_i,typed:pi}),Si=Kn({ImmutableDenseMatrix:Jn({DenseMatrix:li,smaller:ki}),getMatrixDataType:bi}),Mi=ti({DenseMatrix:li,concat:Ei,config:et,matrix:_i,typed:pi}),Fi=ni({DenseMatrix:li,concat:Ei,config:et,matrix:_i,typed:pi}),Ci=oi({bignumber:mi,matrix:_i,add:Ai,config:et,isPositive:vi,larger:Mi,largerEq:Di,smaller:ki,smallerEq:Fi,typed:pi}),Bi=si({Index:Si,matrix:_i,range:Ci,typed:pi})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){\"use strict\";r.r(e);var n=r(3);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function a(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},u=o.iterator||\"@@iterator\",f=o.asyncIterator||\"@@asyncIterator\",c=o.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new O(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&n.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(a,o,s,u){var f=p(t[a],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==i(h)&&n.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var o;a(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(i(e)+\" is not iterable\")}return w.prototype=_,a(k,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function u(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){u(a,n,i,o,s,\"next\",t)}function s(t){u(a,n,i,o,s,\"throw\",t)}o(void 0)}))}}f(s().mark((function t(){var e,r,i,o,u,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k,A;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:x=function(){return(x=f(s().mark((function t(){var e,r,i,a;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=void 0,t.next=3,n.a.Dfj0D({key:\"K17cl\"});case 3:if(t.t1=e=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===e;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=e.value;case 12:if(\"w184i\"!==t.t2){t.next=35;break}return t.prev=14,t.next=17,m();case 17:return i=t.sent,t.next=20,b();case 20:if(a=t.sent,r=!i&&!a,!(r=!0)){t.next=26;break}return t.next=26,n.a.Mc76({key:\"K17cl\",value:\"N18b2N\"});case 26:t.next=33;break;case 28:return t.prev=28,t.t3=t.catch(14),r=!0,t.next=33,n.a.Mc76({key:\"K17cl\",value:\"N18b2N\"});case 33:return t.next=35,n.a.Bi9dF(800);case 35:return t.abrupt(\"return\",r);case 36:case\"end\":return t.stop()}}),t,null,[[14,28]])})))).apply(this,arguments)},_=function(){return x.apply(this,arguments)},w=function(){return w=f(s().mark((function t(){var r,i,a,o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=void 0,t.next=3,n.a.Dfj0D({key:\"K17cl\"});case 3:if(t.t1=r=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===r;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=r.value;case 12:if(\"U181p\"!==t.t2){t.next=43;break}return t.prev=15,t.next=18,n.a.Dfj0D({key:\"CSLid95\"});case 18:if(t.t4=a=t.sent,t.t3=null===t.t4,t.t3){t.next=22;break}t.t3=void 0===a;case 22:if(!t.t3){t.next=26;break}t.t5=void 0,t.next=27;break;case 26:t.t5=a.value;case 27:return o=t.t5,t.next=31,e(o);case 31:return i=!0,t.next=35,n.a.Mc76({key:\"K17cl\",value:\"w184i\"});case 35:t.next=43;break;case 37:return t.prev=37,t.t6=t.catch(15),i=!1,t.next=43,n.a.Mc76({key:\"K17cl\",value:\"T189kV\"});case 43:return t.abrupt(\"return\",i);case 44:case\"end\":return t.stop()}}),t,null,[[15,37]])}))),w.apply(this,arguments)},v=function(){return w.apply(this,arguments)},g=function(){return(g=f(s().mark((function t(){var e,r,i,o,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=void 0,r=document.querySelectorAll('iframe[src*=\".hcaptcha.com/captcha/\"]'),i=!1,o=a(r),t.prev=4,o.s();case 6:if((u=o.n()).done){t.next=19;break}if(!((f=u.value).offsetHeight>200)){t.next=16;break}if(!n.a.Yej5(f)){t.next=14;break}return e=!0,t.next=13,n.a.Mc76({key:\"Ulk1\",value:e});case 13:return t.abrupt(\"return\",e);case 14:t.next=17;break;case 16:i=!0;case 17:t.next=6;break;case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(4),o.e(t.t0);case 24:return t.prev=24,o.f(),t.finish(24);case 27:if(!i){t.next=31;break}return e=!1,t.next=31,n.a.Mc76({key:\"Ulk1\",value:e});case 31:return t.abrupt(\"return\",e);case 32:case\"end\":return t.stop()}}),t,null,[[4,21,24,27]])})))).apply(this,arguments)},b=function(){return g.apply(this,arguments)},y=function(){return(y=f(s().mark((function t(){var e,r,i,o,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=void 0,r=document.querySelectorAll('iframe[src*=\".hcaptcha.com/captcha/\"]'),i=!1,o=a(r),t.prev=4,o.s();case 6:if((u=o.n()).done){t.next=19;break}if(!((f=u.value).offsetHeight<200)){t.next=17;break}if(!n.a.Yej5(f)){t.next=16;break}return e=!0,t.next=13,n.a.Mc76({key:\"Alic\",value:e});case 13:return t.abrupt(\"return\",e);case 16:i=!0;case 17:t.next=6;break;case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(4),o.e(t.t0);case 24:return t.prev=24,o.f(),t.finish(24);case 27:if(!i){t.next=32;break}return e=!1,t.next=32,n.a.Mc76({key:\"Alic\",value:e});case 32:return t.abrupt(\"return\",e);case 33:case\"end\":return t.stop()}}),t,null,[[4,21,24,27]])})))).apply(this,arguments)},m=function(){return y.apply(this,arguments)},d=function(){return(d=f(s().mark((function t(){var e,r,a,o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=void 0,t.next=3,n.a.Dfj0D({key:\"K17cl\"});case 3:if(t.t1=e=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===e;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=e.value;case 12:if(\"r186it\"!==t.t2){t.next=32;break}return t.prev=14,t.next=17,i();case 17:return a=t.sent,t.next=20,u();case 20:if(o=t.sent,!(r=!a&&!o)){t.next=25;break}return t.next=25,n.a.Mc76({key:\"K17cl\",value:\"N18b2N\"});case 25:t.next=32;break;case 27:return t.prev=27,t.t3=t.catch(14),r=!0,t.next=32,n.a.Mc76({key:\"K17cl\",value:\"N18b2N\"});case 32:return t.abrupt(\"return\",r);case 33:case\"end\":return t.stop()}}),t,null,[[14,27]])})))).apply(this,arguments)},p=function(){return d.apply(this,arguments)},l=function(){return l=f(s().mark((function t(){var r,i,a,o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=void 0,t.next=3,n.a.Dfj0D({key:\"K17cl\"});case 3:if(t.t1=r=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===r;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=r.value;case 12:if(\"w180a\"!==t.t2){t.next=40;break}return t.prev=14,t.next=17,n.a.Dfj0D({key:\"CSLid95\"});case 17:if(t.t4=a=t.sent,t.t3=null===t.t4,t.t3){t.next=21;break}t.t3=void 0===a;case 21:if(!t.t3){t.next=25;break}t.t5=void 0,t.next=26;break;case 25:t.t5=a.value;case 26:return o=t.t5,t.next=29,e(o);case 29:return i=!0,t.next=33,n.a.Mc76({key:\"K17cl\",value:\"r186it\"});case 33:t.next=40;break;case 35:return t.prev=35,t.t6=t.catch(14),i=!1,t.next=40,n.a.Mc76({key:\"K17cl\",value:\"T189kV\"});case 40:return t.abrupt(\"return\",i);case 41:case\"end\":return t.stop()}}),t,null,[[14,35]])}))),l.apply(this,arguments)},h=function(){return l.apply(this,arguments)},c=function(){return(c=f(s().mark((function t(){var e,r,i,o,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=document.querySelectorAll('iframe[src*=\"/recaptcha/api2/bframe\"], iframe[src*=\"/recaptcha/enterprise/bframe\"]'),r=void 0,i=a(e),t.prev=3,i.s();case 5:if((o=i.n()).done){t.next=14;break}if(u=o.value,!n.a.Yej5(u)){t.next=12;break}return r=!0,t.next=11,n.a.Mc76({key:\"TlefT\",value:r});case 11:return t.abrupt(\"return\",r);case 12:t.next=5;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(3),i.e(t.t0);case 19:return t.prev=19,i.f(),t.finish(19);case 22:if(!(e.length>0)){t.next=26;break}return r=!1,t.next=26,n.a.Mc76({key:\"TlefT\",value:r});case 26:return t.abrupt(\"return\",r);case 27:case\"end\":return t.stop()}}),t,null,[[3,16,19,22]])})))).apply(this,arguments)},u=function(){return c.apply(this,arguments)},o=function(){return(o=f(s().mark((function t(){var e,r,i,o,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=document.querySelectorAll('iframe[src*=\"/recaptcha/api2/anchor\"], iframe[src*=\"/recaptcha/enterprise/anchor\"]'),r=void 0,i=a(e),t.prev=3,i.s();case 5:if((o=i.n()).done){t.next=14;break}if(u=o.value,!n.a.Yej5(u)){t.next=12;break}return r=!0,t.next=11,n.a.Mc76({key:\"rld1r\",value:r});case 11:return t.abrupt(\"return\",r);case 12:t.next=5;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(3),i.e(t.t0);case 19:return t.prev=19,i.f(),t.finish(19);case 22:if(!(e.length>0)){t.next=26;break}return r=!1,t.next=26,n.a.Mc76({key:\"rld1r\",value:r});case 26:return t.abrupt(\"return\",r);case 27:case\"end\":return t.stop()}}),t,null,[[3,16,19,22]])})))).apply(this,arguments)},i=function(){return o.apply(this,arguments)},r=function(){return(r=f(s().mark((function t(e){var r,i,a,o,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!((null==e?void 0:e.length)>0)){t.next=32;break}r=0;case 2:if(!(r<e.length)){t.next=32;break}if(\"ck\"!==e[r].act){t.next=16;break}if(i=e[r].css,!(i=(i=(i=decodeURIComponent(i||\"\")).replace(/@\\d+/g,\"\")).replace(/#\\{([\\s\\S]*?)\\}#/g,\"\"))||\"\"===i){t.next=14;break}if(!(a=document.querySelector(i))){t.next=14;break}return t.next=13,n.a.Bc2bD(a);case 13:0;case 14:t.next=29;break;case 16:if(\"wt\"!==e[r].act){t.next=25;break}if(o=parseFloat(e[r].sec||\"3\"),u=parseFloat(e[r].rand||\"0\"),!(o>0)){t.next=22;break}return t.next=22,n.a.Bi9dF(1e3*o,1e3*u);case 22:0,t.next=29;break;case 25:if(\"at\"!==e[r].act){t.next=29;break}return t.next=28,n.a.qi5f();case 28:0;case 29:r++,t.next=2;break;case 32:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)},e=function(t){return r.apply(this,arguments)};case 18:if(null!==(E=chrome.runtime)&&void 0!==E&&E.id){t.next=24;break}return t.next=22,n.a.Bi9dF(5e3);case 22:return t.abrupt(\"continue\",18);case 24:return t.next=26,n.a.Bi9dF(900);case 26:return t.next=28,n.a.xehcz();case 28:if(t.t1=D=t.sent,t.t0=null===t.t1,t.t0){t.next=32;break}t.t0=void 0===D;case 32:if(!t.t0){t.next=36;break}t.t2=void 0,t.next=37;break;case 36:t.t2=D.value;case 37:if(t.t2){t.next=40;break}return t.abrupt(\"continue\",18);case 40:return t.next=42,n.a.VfeeX();case 42:if(t.t4=k=t.sent,t.t3=null===t.t4,t.t3){t.next=46;break}t.t3=void 0===k;case 46:if(!t.t3){t.next=50;break}t.t5=void 0,t.next=51;break;case 50:t.t5=k.value;case 51:return A=t.t5,t.prev=52,t.next=55,p();case 55:if(0!==A){t.next=59;break}return t.next=58,h();case 58:t.sent;case 59:return t.next=61,i();case 61:return t.sent,t.next=64,u();case 64:t.sent,t.next=70;break;case 67:t.prev=67,t.t6=t.catch(52);case 70:return t.prev=70,t.next=73,_();case 73:if(0!==A){t.next=77;break}return t.next=76,v();case 76:t.sent;case 77:return t.next=79,m();case 79:return t.sent,t.next=82,b();case 82:t.sent,t.next=88;break;case 85:t.prev=85,t.t7=t.catch(70);case 88:t.next=18;break;case 90:case\"end\":return t.stop()}}),t,null,[[52,67],[70,85]])})))()}]);"
  },
  {
    "path": "utils/hcaptchasolver/content/captchaDetector.js.LICENSE.txt",
    "content": "/*!\n   *  decimal.js v10.4.3\n   *  An arbitrary-precision Decimal type for JavaScript.\n   *  https://github.com/MikeMcl/decimal.js\n   *  Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>\n   *  MIT Licence\n   */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * Timm\n *\n * Immutability helpers with fast reads and acceptable writes.\n *\n * @copyright Guillermo Grau Panea 2016\n * @license MIT\n */\n\n/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\n\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n\n/**\n * @license Complex.js v2.1.1 12/05/2020\n *\n * Copyright (c) 2020, Robert Eisele (robert@xarg.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @license Fraction.js v4.3.0 20/08/2023\n * https://www.xarg.org/2014/03/rational-numbers-in-javascript/\n *\n * Copyright (c) 2023, Robert Eisele (robert@raw.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cie94.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ciede2000.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cmetric.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * common.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * constants.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ditherErrorDiffusionArray.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * euclidean.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * helper.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * hueStatistics.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * iq.ts - Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * manhattanNeuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * nearestColor.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * palette.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pngQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * point.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pointContainer.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2hsl.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ssim.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * wuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * MIT License\n *\n * Copyright 2015-2018 Igor Bezkrovnyi\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n *\n * riemersma.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * colorHistogram.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * neuquant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgbquant.ts - part of Image Quantization Library\n */\n"
  },
  {
    "path": "utils/hcaptchasolver/content/clientIndex.css",
    "content": "#miniRPAEditor{top:0px;display:block;z-index:2147483646;box-shadow:rgba(0,0,0,.25) 7px 0px 12px 13px;position:fixed;height:100%;opacity:1 !important;border-width:1px;border-style:solid;border-color:#666;border-image:initial;transition:transform .5s ease-out 0s;margin:0px !important;padding:0px !important;background-color:#fff}.minirpa-agenteditor-collapse{height:40px !important;overflow:hidden !important;overflow-x:hidden !important;overflow-y:hidden !important}.minirpa-agenteditor-m{right:-465px;transform:translate(-465px, 0px);width:467px !important}.minirpa-agenteditor-w{right:-650px;height:100%;transform:translate(-650px, 0px);width:652px !important}.minirpa-pagedatapreview-w{position:fixed !important;box-shadow:rgba(0,0,0,.25) 2px 4px 2px 2px;right:469px;bottom:0px;width:calc(100% - 469px);height:250px;color:#000;background-color:#f5f7fa;opacity:.95;overflow-x:auto;overflow-y:auto;z-index:2147483647}.minirpa-pagedatapreview-w thead th{position:sticky;top:0}.minirpa-pagedatapreview-m{position:fixed !important;right:654px;bottom:0px;width:calc(100% - 654px);height:250px;color:#000;background-color:#f5f7fa;opacity:.95;overflow-x:auto;overflow-y:auto;z-index:2147483647}.minirpa-pagedatapreview-right{right:0px;left:auto;transform:none}.minirpa-agenteditor-left{right:auto;left:0px;transform:none}.pagedatapreview-table{border-collapse:collapse;border-spacing:0;empty-cells:show;font-size:12px;border:1px solid #cbcbcb}.pagedatapreview-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pagedatapreview-table td,.pagedatapreview-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em;vertical-align:top;background-color:#e0e0e0}.pagedatapreview-table thead{background-color:#e0e0e0;color:#000;text-align:center;vertical-align:bottom}.pagedatapreview-table td{background-color:rgba(0,0,0,0)}.pagedatapreview-table-horizontal td,.pagedatapreview-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pagedatapreview-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}.minirpa-aiscraper-selected-zone{background-color:rgba(213,0,0,.2) !important;background:rgba(213,0,0,.2) !important}.minirpa-ar8791{outline:1px dashed #06495a !important;background-color:rgba(0,213,0,.2) !important;background:rgba(0,213,0,.2) !important;position:relative;z-index:2147483640}.minirpa-anb89{outline:1.5px dashed #06495a !important;background-color:rgba(0,213,0,.5) !important;background:rgba(0,213,0,.5) !important}.minirpa-h8971{outline:1px dot-dash green !important;background-color:rgba(0,213,0,.2) !important;background:rgba(0,213,0,.2) !important;cursor:default}.minirpa-ss87{outline:1px dot-dash #90ee90 !important;background-color:rgba(0,213,0,.1) !important;background:rgba(0,213,0,.1) !important;cursor:default}.minirpa-su89{pointer-events:none}.minirpa-s9990{outline:2px solid #06495a !important;background-color:rgba(0,213,0,.2) !important;background:rgba(0,213,0,.2) !important;position:relative;z-index:2147483641}.minirpa-s9991{outline:2px solid #06495a !important;background-color:rgba(0,213,0,.2) !important;background:rgba(0,213,0,.2) !important;position:relative;z-index:2147483641}tr.minirpa-s9991>td:last-child{position:relative}.minirpa-s9991:not(tr):before,tr.minirpa-s9991>td:last-child:before{position:absolute;right:5px;bottom:1px;content:\"\";height:12px;border-left:2px solid #000;transform:rotate(-45deg);z-index:2147483641}.minirpa-s9991:not(tr):after,tr.minirpa-s9991>td:last-child:after{position:absolute;right:5px;bottom:1px;content:\"\";height:12px;border-left:2px solid #000;transform:rotate(45deg);z-index:2147483641}.minirpa-si8970{outline:2px dashed #06495a !important;padding:1px;border:5px solid rgba(0,213,0,.2);z-index:2147483641}.minirpa-si8971{outline:2px dashed #06495a !important;padding:1px;border:5px solid rgba(0,213,0,.2);z-index:2147483641}.minirpa-si8971:before{position:absolute;right:5px;top:5px;content:\"\";height:12px;border-left:2px solid #000;transform:rotate(-45deg);z-index:2147483641}.minirpa-si8971:after{position:absolute;right:5px;top:5px;content:\"\";height:12px;border-left:2px solid #000;transform:rotate(45deg);z-index:2147483641}.minirpa-s8290{outline:1px dashed #06495a !important;background-color:rgba(0,213,0,.2) !important;background:rgba(0,213,0,.2) !important;position:relative;z-index:2147483640}.minirpa-s8291{outline:1px dashed #06495a !important;background-color:rgba(0,213,0,.2) !important;background:rgba(0,213,0,.2) !important;position:relative;z-index:2147483640}tr.minirpa-s8291>td:last-child{position:relative}.minirpa-s8291:not(tr):before,tr.minirpa-s8291>td:last-child:before{position:absolute;right:5px;bottom:1px;content:\"\" !important;height:8px;border-left:1px solid #000;transform:rotate(-45deg);z-index:2147483640}.minirpa-s8291:after,tr.minirpa-s8291>td:last-child:after{position:absolute;right:5px;bottom:1px;content:\"\" !important;height:8px;border-left:1px solid #000;transform:rotate(45deg);z-index:2147483640}.ocr_number_sharpen{color:#000;background-color:#fff}.minirpa-cover-layer{width:100%;height:100%;z-index:2147483645;left:0;top:0;position:fixed;opacity:.5;text-align:center;line-height:150px;background-color:#000;font-size:16px;color:#fff}.minirpa-spinner{width:12px;height:12px;position:relative;margin:0 auto;margin-top:1px}.minirpa-spinner span{display:inline-block;width:2px;height:2px;border-radius:50%;background:#000;position:absolute;-webkit-animation:load 1.04s ease infinite}@-webkit-keyframes load{0%{opacity:1}100%{opacity:.2}}.minirpa-spinner span:nth-child(1){left:0;top:50%;margin-top:-1px;-webkit-animation-delay:.13s}.minirpa-spinner span:nth-child(2){left:12px;top:12px;-webkit-animation-delay:.26s}.minirpa-spinner span:nth-child(3){left:50%;top:0;margin-left:-1px;-webkit-animation-delay:.39s}.minirpa-spinner span:nth-child(4){top:12px;right:12px;-webkit-animation-delay:.52s}.minirpa-spinner span:nth-child(5){right:0;top:50%;margin-top:-1px;-webkit-animation-delay:.65s}.minirpa-spinner span:nth-child(6){right:12px;bottom:12px;-webkit-animation-delay:.78s}.minirpa-spinner span:nth-child(7){bottom:0;left:50%;margin-left:-1px;-webkit-animation-delay:.91s}.minirpa-spinner span:nth-child(8){bottom:12px;left:12px;-webkit-animation-delay:1.04s}#miniRPAConfirmBox{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:2147483646}#miniRPAConfirmBox div{width:450px;min-height:80px;max-height:350px;margin:100px auto;background-color:#f2f2f2;border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;border:1px solid #666;padding:15px;text-align:center;font-weight:normal;font-size:14px;border:3px solid #ccc;position:absolute;left:50%;top:100px;transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);-webkit-transform:translate(-50%, -50%)}#miniRPAConfirmOK{border:1px solid #000;border-radius:8px;color:#000;padding:5px 5px;text-align:center;text-decoration:none;display:inline-block;font-size:14px;margin:4px 2px;cursor:pointer}#miniRPAConfirmCancel{border:1px solid #000;border-radius:8px;color:#000;padding:5px 5px;text-align:center;text-decoration:none;display:inline-block;font-size:14px;margin:4px 2px;cursor:pointer}\n"
  },
  {
    "path": "utils/hcaptchasolver/content/clientIndex.js",
    "content": "/*! For license information please see clientIndex.js.LICENSE.txt */\n!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,\"a\",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p=\"\",r(r.s=405)}([function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&o.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&o.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}r.d(e,\"a\",(function(){return a})),r.d(e,\"d\",(function(){return s})),r.d(e,\"b\",(function(){return u})),r.d(e,\"c\",(function(){return c}));var o=i().mark(c);function a(t){if(void 0===t)return!1;if(\"function\"!=typeof t)throw new TypeError(\"Callback must be a function\");return!0}function s(t,e){if(\"string\"==typeof t&&(t=new Error(t)),\"function\"==typeof e)return e.call(this,t);throw t}function u(t,e,r,n,i,o){e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i);for(var a=r;a<r+i;a++)for(var s=e;s<e+n;s++){var u=t.bitmap.width*a+s<<2;o.call(t,s,a,u)}return t}function c(t,e,r,n,a){var s,u,c;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e=Math.round(e),r=Math.round(r),n=Math.round(n),a=Math.round(a),s=r;case 5:if(!(s<r+a)){i.next=17;break}u=e;case 7:if(!(u<e+n)){i.next=14;break}return c=t.bitmap.width*s+u<<2,i.next=11,{x:u,y:s,idx:c,image:t};case 11:u++,i.next=7;break;case 14:s++,i.next=5;break;case 17:case\"end\":return i.stop()}}),o)}},,function(t,e,r){\"use strict\";(function(t){var n=r(120),i=r(67),o=r(121);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if(\"number\"==typeof t){if(\"string\"==typeof e)throw new Error(\"If encoding is specified then the first argument must be a string\");return f(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if(\"number\"==typeof e)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError(\"'offset' is out of bounds\");if(e.byteLength<r+(n||0))throw new RangeError(\"'length' is out of bounds\");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,r,n):\"string\"==typeof e?function(t,e,r){\"string\"==typeof r&&\"\"!==r||(r=\"utf8\");if(!u.isEncoding(r))throw new TypeError('\"encoding\" must be a valid string encoding');var n=0|d(e,r);t=s(t,n);var i=t.write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|p(e.length);return 0===(t=s(t,r)).length||e.copy(t,0,0,r),t}if(e){if(\"undefined\"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||\"length\"in e)return\"number\"!=typeof e.length||(n=e.length)!=n?s(t,0):h(t,e);if(\"Buffer\"===e.type&&o(e.data))return h(t,e.data)}var n;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(t,e)}function l(t){if(\"number\"!=typeof t)throw new TypeError('\"size\" argument must be a number');if(t<0)throw new RangeError('\"size\" argument must not be negative')}function f(t,e){if(l(e),t=s(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function h(t,e){var r=e.length<0?0:0|p(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=a())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+a().toString(16)+\" bytes\");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;\"string\"!=typeof t&&(t=\"\"+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":case void 0:return U(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return G(t).length;default:if(n)return U(t).length;e=(\"\"+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(e>>>=0))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return I(this,e,r);case\"utf8\":case\"utf-8\":return T(this,e,r);case\"ascii\":return D(this,e,r);case\"latin1\":case\"binary\":return O(this,e,r);case\"base64\":return S(this,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return P(this,e,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if(\"string\"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if(\"number\"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError(\"val must be string, number or Buffer\")}function b(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=r;o<s;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(c(t,o+h)!==c(e,h)){f=!1;break}if(f)return o}return-1}function v(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError(\"Invalid hex string\");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function w(t,e,r,n){return H(U(e,t.length-r),t,r,n)}function _(t,e,r,n){return H(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return _(t,e,r,n)}function k(t,e,r,n){return H(G(e),t,r,n)}function E(t,e,r,n){return H(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function S(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,c=t[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);var r=\"\",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&\"function\"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return l(e),e<=0?s(t,e):void 0!==r?\"string\"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError(\"Arguments must be Buffers\");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('\"list\" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?\"\":0===arguments.length?T(this,0,t):m.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t=\"\",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString(\"hex\",0,r).match(/.{2}/g).join(\" \"),this.length>r&&(t+=\" ... \")),\"<Buffer \"+t+\">\"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError(\"out of range index\");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(n,i),l=t.slice(e,r),f=0;f<s;++f)if(c[f]!==l[f]){o=c[f],a=l[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return g(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return g(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n=\"utf8\",r=this.length,e=0;else if(void 0===r&&\"string\"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");e|=0,isFinite(r)?(r|=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var o=!1;;)switch(n){case\"hex\":return v(this,t,e,r);case\"utf8\":case\"utf-8\":return w(this,t,e,r);case\"ascii\":return _(this,t,e,r);case\"latin1\":case\"binary\":return x(this,t,e,r);case\"base64\":return k(this,t,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,e,r);default:if(o)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function D(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function O(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function I(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i=\"\",o=e;o<r;++o)i+=z(t[o]);return i}function P(t,e,r){for(var n=t.slice(e,r),i=\"\",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function C(t,e,r){if(t%1!=0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>r)throw new RangeError(\"Trying to access beyond buffer length\")}function L(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('\"value\" argument is out of bounds');if(r+n>t.length)throw new RangeError(\"Index out of range\")}function M(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function F(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function B(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function j(t,e,r,n,o){return o||B(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,o){return o||B(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||C(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||C(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||C(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||C(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||C(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||C(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||C(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||C(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||C(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):F(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):F(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return j(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return j(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if(\"string\"==typeof t){if(\"string\"==typeof e?(n=e,e=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&\"string\"!=typeof n)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!u.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n)}else\"number\"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError(\"Out of range index\");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),\"number\"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=u.isBuffer(t)?t:U(new u(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var R=/[^+\\/0-9A-Za-z-_]/g;function z(t){return t<16?\"0\"+t.toString(16):t.toString(16)}function U(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\\s+|\\s+$/g,\"\")}(t).replace(R,\"\")).length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t}(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(10))},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return Ir}));var n=r(4),i=r(253),o=r(115),a=r(2),s=r(66);function u(t){let e=t.length;for(;--e>=0;)t[e]=0}const c=256,l=286,f=30,h=15,p=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),d=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),m=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),y=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),g=new Array(576);u(g);const b=new Array(60);u(b);const v=new Array(512);u(v);const w=new Array(256);u(w);const _=new Array(29);u(_);const x=new Array(f);function k(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}let E,S,T;function A(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}u(x);const D=t=>t<256?v[t]:v[256+(t>>>7)],O=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},I=(t,e,r)=>{t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,O(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)},P=(t,e,r)=>{I(t,r[2*e],r[2*e+1])},C=(t,e)=>{let r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1},L=(t,e,r)=>{const n=new Array(16);let i,o,a=0;for(i=1;i<=h;i++)a=a+r[i-1]<<1,n[i]=a;for(o=0;o<=e;o++){let e=t[2*o+1];0!==e&&(t[2*o]=C(n[e]++,e))}},M=t=>{let e;for(e=0;e<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<f;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},F=t=>{t.bi_valid>8?O(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},B=(t,e,r,n)=>{const i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]},j=(t,e,r)=>{const n=t.heap[r];let i=r<<1;for(;i<=t.heap_len&&(i<t.heap_len&&B(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!B(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n},N=(t,e,r)=>{let n,i,o,a,s=0;if(0!==t.sym_next)do{n=255&t.pending_buf[t.sym_buf+s++],n+=(255&t.pending_buf[t.sym_buf+s++])<<8,i=t.pending_buf[t.sym_buf+s++],0===n?P(t,i,e):(o=w[i],P(t,o+c+1,e),a=p[o],0!==a&&(i-=_[o],I(t,i,a)),n--,o=D(n),P(t,o,r),a=d[o],0!==a&&(n-=x[o],I(t,n,a)))}while(s<t.sym_next);P(t,256,e)},R=(t,e)=>{const r=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,o=e.stat_desc.elems;let a,s,u,c=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<o;a++)0!==r[2*a]?(t.heap[++t.heap_len]=c=a,t.depth[a]=0):r[2*a+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=c<2?++c:0,r[2*u]=1,t.depth[u]=0,t.opt_len--,i&&(t.static_len-=n[2*u+1]);for(e.max_code=c,a=t.heap_len>>1;a>=1;a--)j(t,r,a);u=o;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],j(t,r,1),s=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=s,r[2*u]=r[2*a]+r[2*s],t.depth[u]=(t.depth[a]>=t.depth[s]?t.depth[a]:t.depth[s])+1,r[2*a+1]=r[2*s+1]=u,t.heap[1]=u++,j(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const r=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,o=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,u=e.stat_desc.max_length;let c,l,f,p,d,m,y=0;for(p=0;p<=h;p++)t.bl_count[p]=0;for(r[2*t.heap[t.heap_max]+1]=0,c=t.heap_max+1;c<573;c++)l=t.heap[c],p=r[2*r[2*l+1]+1]+1,p>u&&(p=u,y++),r[2*l+1]=p,l>n||(t.bl_count[p]++,d=0,l>=s&&(d=a[l-s]),m=r[2*l],t.opt_len+=m*(p+d),o&&(t.static_len+=m*(i[2*l+1]+d)));if(0!==y){do{for(p=u-1;0===t.bl_count[p];)p--;t.bl_count[p]--,t.bl_count[p+1]+=2,t.bl_count[u]--,y-=2}while(y>0);for(p=u;0!==p;p--)for(l=t.bl_count[p];0!==l;)f=t.heap[--c],f>n||(r[2*f+1]!==p&&(t.opt_len+=(p-r[2*f+1])*r[2*f],r[2*f+1]=p),l--)}})(t,e),L(r,c,t.bl_count)},z=(t,e,r)=>{let n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))},U=(t,e,r)=>{let n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{P(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(P(t,i,t.bl_tree),s--),P(t,16,t.bl_tree),I(t,s-3,2)):s<=10?(P(t,17,t.bl_tree),I(t,s-3,3)):(P(t,18,t.bl_tree),I(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}};let G=!1;const H=(t,e,r,n)=>{I(t,0+(n?1:0),3),F(t),O(t,r),O(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r};var q=(t,e,r,n)=>{let i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),a=(t=>{let e;for(z(t,t.dyn_ltree,t.l_desc.max_code),z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*y[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),i=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?H(t,e,r,n):4===t.strategy||o===i?(I(t,2+(n?1:0),3),N(t,g,b)):(I(t,4+(n?1:0),3),((t,e,r,n)=>{let i;for(I(t,e-257,5),I(t,r-1,5),I(t,n-4,4),i=0;i<n;i++)I(t,t.bl_tree[2*y[i]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,r-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),N(t,t.dyn_ltree,t.dyn_dtree)),M(t),n&&F(t)},V={_tr_init:t=>{G||((()=>{let t,e,r,n,i;const o=new Array(16);for(r=0,n=0;n<28;n++)for(_[n]=r,t=0;t<1<<p[n];t++)w[r++]=n;for(w[r-1]=n,i=0,n=0;n<16;n++)for(x[n]=i,t=0;t<1<<d[n];t++)v[i++]=n;for(i>>=7;n<f;n++)for(x[n]=i<<7,t=0;t<1<<d[n]-7;t++)v[256+i++]=n;for(e=0;e<=h;e++)o[e]=0;for(t=0;t<=143;)g[2*t+1]=8,t++,o[8]++;for(;t<=255;)g[2*t+1]=9,t++,o[9]++;for(;t<=279;)g[2*t+1]=7,t++,o[7]++;for(;t<=287;)g[2*t+1]=8,t++,o[8]++;for(L(g,287,o),t=0;t<f;t++)b[2*t+1]=5,b[2*t]=C(t,5);E=new k(g,p,257,l,h),S=new k(b,d,0,f,h),T=new k(new Array(0),m,0,19,7)})(),G=!0),t.l_desc=new A(t.dyn_ltree,E),t.d_desc=new A(t.dyn_dtree,S),t.bl_desc=new A(t.bl_tree,T),t.bi_buf=0,t.bi_valid=0,M(t)},_tr_stored_block:H,_tr_flush_block:q,_tr_tally:(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(w[r]+c+1)]++,t.dyn_dtree[2*D(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{I(t,2,3),P(t,256,g),(t=>{16===t.bi_valid?(O(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var W=(t,e,r,n)=>{let i=65535&t,o=t>>>16&65535,a=0;for(;0!==r;){a=r>2e3?2e3:r,r-=a;do{i=i+e[n++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16};const Z=new Uint32Array((()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e})());var Y=(t,e,r,n)=>{const i=Z,o=n+r;t^=-1;for(let r=n;r<o;r++)t=t>>>8^i[255&(t^e[r])];return~t},X={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:J,_tr_stored_block:$,_tr_flush_block:Q,_tr_tally:tt,_tr_align:et}=V,{Z_NO_FLUSH:rt,Z_PARTIAL_FLUSH:nt,Z_FULL_FLUSH:it,Z_FINISH:ot,Z_BLOCK:at,Z_OK:st,Z_STREAM_END:ut,Z_STREAM_ERROR:ct,Z_DATA_ERROR:lt,Z_BUF_ERROR:ft,Z_DEFAULT_COMPRESSION:ht,Z_FILTERED:pt,Z_HUFFMAN_ONLY:dt,Z_RLE:mt,Z_FIXED:yt,Z_DEFAULT_STRATEGY:gt,Z_UNKNOWN:bt,Z_DEFLATED:vt}=K,wt=258,_t=262,xt=42,kt=113,Et=666,St=(t,e)=>(t.msg=X[e],e),Tt=t=>2*t-(t>4?9:0),At=t=>{let e=t.length;for(;--e>=0;)t[e]=0},Dt=t=>{let e,r,n,i=t.w_size;e=t.hash_size,n=e;do{r=t.head[--n],t.head[n]=r>=i?r-i:0}while(--e);e=i,n=e;do{r=t.prev[--n],t.prev[n]=r>=i?r-i:0}while(--e)};let Ot=(t,e,r)=>(e<<t.hash_shift^r)&t.hash_mask;const It=t=>{const e=t.state;let r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))},Pt=(t,e)=>{Q(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,It(t.strm)},Ct=(t,e)=>{t.pending_buf[t.pending++]=e},Lt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=(t,e,r,n)=>{let i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),1===t.state.wrap?t.adler=W(t.adler,e,i,r):2===t.state.wrap&&(t.adler=Y(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},Ft=(t,e)=>{let r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match;const u=t.strstart>t.w_size-_t?t.strstart-(t.w_size-_t):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+wt;let p=c[o+a-1],d=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(r=e,c[r+a]===d&&c[r+a-1]===p&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=wt-(h-o),o=h-wt,n>a){if(t.match_start=e,a=n,n>=s)break;p=c[o+a-1],d=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead},Bt=t=>{const e=t.w_size;let r,n,i;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-_t)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),Dt(t),n+=e),0===t.strm.avail_in)break;if(r=Mt(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=r,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Ot(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Ot(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<_t&&0!==t.strm.avail_in)},jt=(t,e)=>{let r,n,i,o=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a=0,s=t.strm.avail_in;do{if(r=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,n=t.strstart-t.block_start,r>n+t.strm.avail_in&&(r=n+t.strm.avail_in),r>i&&(r=i),r<o&&(0===r&&e!==ot||e===rt||r!==n+t.strm.avail_in))break;a=e===ot&&r===n+t.strm.avail_in?1:0,$(t,0,0,a),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,It(t.strm),n&&(n>r&&(n=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,r-=n),r&&(Mt(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(0===a);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),a?4:e!==rt&&e!==ot&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(Mt(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,o=i>t.w_size?t.w_size:i,n=t.strstart-t.block_start,(n>=o||(n||e===ot)&&e!==rt&&0===t.strm.avail_in&&n<=i)&&(r=n>i?i:n,a=e===ot&&0===t.strm.avail_in&&r===n?1:0,$(t,t.block_start,r,a),t.block_start+=r,It(t.strm)),a?3:1)},Nt=(t,e)=>{let r,n;for(;;){if(t.lookahead<_t){if(Bt(t),t.lookahead<_t&&e===rt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-_t&&(t.match_length=Ft(t,r)),t.match_length>=3)if(n=tt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+1]);else n=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Pt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===ot?(Pt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Pt(t,!1),0===t.strm.avail_out)?1:2},Rt=(t,e)=>{let r,n,i;for(;;){if(t.lookahead<_t){if(Bt(t),t.lookahead<_t&&e===rt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-_t&&(t.match_length=Ft(t,r),t.match_length<=5&&(t.strategy===pt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=tt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Pt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(n=tt(t,0,t.window[t.strstart-1]),n&&Pt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=tt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===ot?(Pt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Pt(t,!1),0===t.strm.avail_out)?1:2};function zt(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}const Ut=[new zt(0,0,0,0,jt),new zt(4,4,8,4,Nt),new zt(4,5,16,8,Nt),new zt(4,6,32,32,Nt),new zt(4,4,16,16,Rt),new zt(8,16,32,32,Rt),new zt(8,16,128,128,Rt),new zt(8,32,128,256,Rt),new zt(32,128,258,1024,Rt),new zt(32,258,258,4096,Rt)];function Gt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=vt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),At(this.dyn_ltree),At(this.dyn_dtree),At(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),At(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),At(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ht=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==xt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==kt&&e.status!==Et?1:0},qt=t=>{if(Ht(t))return St(t,ct);t.total_in=t.total_out=0,t.data_type=bt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?xt:kt,t.adler=2===e.wrap?0:1,e.last_flush=-2,J(e),st},Vt=t=>{const e=qt(t);var r;return e===st&&((r=t.state).window_size=2*r.w_size,At(r.head),r.max_lazy_match=Ut[r.level].max_lazy,r.good_match=Ut[r.level].good_length,r.nice_match=Ut[r.level].nice_length,r.max_chain_length=Ut[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,r.ins_h=0),e},Wt=(t,e,r,n,i,o)=>{if(!t)return ct;let a=1;if(e===ht&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||r!==vt||n<8||n>15||e<0||e>9||o<0||o>yt||8===n&&1!==a)return St(t,ct);8===n&&(n=9);const s=new Gt;return t.state=s,s.strm=t,s.status=xt,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=o,s.method=r,Vt(t)};var Zt={deflateInit:(t,e)=>Wt(t,e,vt,15,8,gt),deflateInit2:Wt,deflateReset:Vt,deflateResetKeep:qt,deflateSetHeader:(t,e)=>Ht(t)||2!==t.state.wrap?ct:(t.state.gzhead=e,st),deflate:(t,e)=>{if(Ht(t)||e>at||e<0)return t?St(t,ct):ct;const r=t.state;if(!t.output||0!==t.avail_in&&!t.input||r.status===Et&&e!==ot)return St(t,0===t.avail_out?ft:ct);const n=r.last_flush;if(r.last_flush=e,0!==r.pending){if(It(t),0===t.avail_out)return r.last_flush=-1,st}else if(0===t.avail_in&&Tt(e)<=Tt(n)&&e!==ot)return St(t,ft);if(r.status===Et&&0!==t.avail_in)return St(t,ft);if(r.status===xt&&0===r.wrap&&(r.status=kt),r.status===xt){let e=vt+(r.w_bits-8<<4)<<8,n=-1;if(n=r.strategy>=dt||r.level<2?0:r.level<6?1:6===r.level?2:3,e|=n<<6,0!==r.strstart&&(e|=32),e+=31-e%31,Lt(r,e),0!==r.strstart&&(Lt(r,t.adler>>>16),Lt(r,65535&t.adler)),t.adler=1,r.status=kt,It(t),0!==r.pending)return r.last_flush=-1,st}if(57===r.status)if(t.adler=0,Ct(r,31),Ct(r,139),Ct(r,8),r.gzhead)Ct(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Ct(r,255&r.gzhead.time),Ct(r,r.gzhead.time>>8&255),Ct(r,r.gzhead.time>>16&255),Ct(r,r.gzhead.time>>24&255),Ct(r,9===r.level?2:r.strategy>=dt||r.level<2?4:0),Ct(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Ct(r,255&r.gzhead.extra.length),Ct(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=Y(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(Ct(r,0),Ct(r,0),Ct(r,0),Ct(r,0),Ct(r,0),Ct(r,9===r.level?2:r.strategy>=dt||r.level<2?4:0),Ct(r,3),r.status=kt,It(t),0!==r.pending)return r.last_flush=-1,st;if(69===r.status){if(r.gzhead.extra){let e=r.pending,n=(65535&r.gzhead.extra.length)-r.gzindex;for(;r.pending+n>r.pending_buf_size;){let i=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+i),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>e&&(t.adler=Y(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex+=i,It(t),0!==r.pending)return r.last_flush=-1,st;e=0,n-=i}let i=new Uint8Array(r.gzhead.extra);r.pending_buf.set(i.subarray(r.gzindex,r.gzindex+n),r.pending),r.pending+=n,r.gzhead.hcrc&&r.pending>e&&(t.adler=Y(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex=0}r.status=73}if(73===r.status){if(r.gzhead.name){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=Y(t.adler,r.pending_buf,r.pending-n,n)),It(t),0!==r.pending)return r.last_flush=-1,st;n=0}e=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Ct(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=Y(t.adler,r.pending_buf,r.pending-n,n)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=Y(t.adler,r.pending_buf,r.pending-n,n)),It(t),0!==r.pending)return r.last_flush=-1,st;n=0}e=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Ct(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=Y(t.adler,r.pending_buf,r.pending-n,n))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(It(t),0!==r.pending))return r.last_flush=-1,st;Ct(r,255&t.adler),Ct(r,t.adler>>8&255),t.adler=0}if(r.status=kt,It(t),0!==r.pending)return r.last_flush=-1,st}if(0!==t.avail_in||0!==r.lookahead||e!==rt&&r.status!==Et){let n=0===r.level?jt(r,e):r.strategy===dt?((t,e)=>{let r;for(;;){if(0===t.lookahead&&(Bt(t),0===t.lookahead)){if(e===rt)return 1;break}if(t.match_length=0,r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Pt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===ot?(Pt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Pt(t,!1),0===t.strm.avail_out)?1:2})(r,e):r.strategy===mt?((t,e)=>{let r,n,i,o;const a=t.window;for(;;){if(t.lookahead<=wt){if(Bt(t),t.lookahead<=wt&&e===rt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=t.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=t.strstart+wt;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=wt-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=tt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Pt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===ot?(Pt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Pt(t,!1),0===t.strm.avail_out)?1:2})(r,e):Ut[r.level].func(r,e);if(3!==n&&4!==n||(r.status=Et),1===n||3===n)return 0===t.avail_out&&(r.last_flush=-1),st;if(2===n&&(e===nt?et(r):e!==at&&($(r,0,0,!1),e===it&&(At(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),It(t),0===t.avail_out))return r.last_flush=-1,st}return e!==ot?st:r.wrap<=0?ut:(2===r.wrap?(Ct(r,255&t.adler),Ct(r,t.adler>>8&255),Ct(r,t.adler>>16&255),Ct(r,t.adler>>24&255),Ct(r,255&t.total_in),Ct(r,t.total_in>>8&255),Ct(r,t.total_in>>16&255),Ct(r,t.total_in>>24&255)):(Lt(r,t.adler>>>16),Lt(r,65535&t.adler)),It(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?st:ut)},deflateEnd:t=>{if(Ht(t))return ct;const e=t.state.status;return t.state=null,e===kt?St(t,lt):st},deflateSetDictionary:(t,e)=>{let r=e.length;if(Ht(t))return ct;const n=t.state,i=n.wrap;if(2===i||1===i&&n.status!==xt||n.lookahead)return ct;if(1===i&&(t.adler=W(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){0===i&&(At(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(r-n.w_size,r),0),e=t,r=n.w_size}const o=t.avail_in,a=t.next_in,s=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,Bt(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do{n.ins_h=Ot(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++}while(--e);n.strstart=t,n.lookahead=2,Bt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=a,t.input=s,t.avail_in=o,n.wrap=i,st},deflateInfo:\"pako deflate (from Nodeca project)\"};const Yt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Xt={assign:function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if(\"object\"!=typeof r)throw new TypeError(r+\"must be non-object\");for(const e in r)Yt(r,e)&&(t[e]=r[e])}}return t},flattenChunks:t=>{let e=0;for(let r=0,n=t.length;r<n;r++)e+=t[r].length;const r=new Uint8Array(e);for(let e=0,n=0,i=t.length;e<i;e++){let i=t[e];r.set(i,n),n+=i.length}return r}};let Kt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Kt=!1}const Jt=new Uint8Array(256);for(let t=0;t<256;t++)Jt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Jt[254]=Jt[254]=1;var $t={string2buf:t=>{if(\"function\"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},buf2string:(t,e)=>{const r=e||t.length;if(\"function\"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let n,i;const o=new Array(2*r);for(i=0,n=0;n<r;){let e=t[n++];if(e<128){o[i++]=e;continue}let a=Jt[e];if(a>4)o[i++]=65533,n+=a-1;else{for(e&=2===a?31:3===a?15:7;a>1&&n<r;)e=e<<6|63&t[n++],a--;a>1?o[i++]=65533:e<65536?o[i++]=e:(e-=65536,o[i++]=55296|e>>10&1023,o[i++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Kt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r=\"\";for(let n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r})(o,i)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let r=e-1;for(;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Jt[t[r]]>e?r:e}};var Qt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0};const te=Object.prototype.toString,{Z_NO_FLUSH:ee,Z_SYNC_FLUSH:re,Z_FULL_FLUSH:ne,Z_FINISH:ie,Z_OK:oe,Z_STREAM_END:ae,Z_DEFAULT_COMPRESSION:se,Z_DEFAULT_STRATEGY:ue,Z_DEFLATED:ce}=K;function le(t){this.options=Xt.assign({level:se,method:ce,chunkSize:16384,windowBits:15,memLevel:8,strategy:ue},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;let r=Zt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==oe)throw new Error(X[r]);if(e.header&&Zt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t=\"string\"==typeof e.dictionary?$t.string2buf(e.dictionary):\"[object ArrayBuffer]\"===te.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,r=Zt.deflateSetDictionary(this.strm,t),r!==oe)throw new Error(X[r]);this._dict_set=!0}}function fe(t,e){const r=new le(e);if(r.push(t,!0),r.err)throw r.msg||X[r.err];return r.result}le.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=e===~~e?e:!0===e?ie:ee,\"string\"==typeof t?r.input=$t.string2buf(t):\"[object ArrayBuffer]\"===te.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===re||o===ne)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(i=Zt.deflate(r,o),i===ae)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=Zt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===oe;if(0!==r.avail_out){if(o>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},le.prototype.onData=function(t){this.chunks.push(t)},le.prototype.onEnd=function(t){t===oe&&(this.result=Xt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var he={Deflate:le,deflate:fe,deflateRaw:function(t,e){return(e=e||{}).raw=!0,fe(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,fe(t,e)},constants:K};const pe=16209;var de=function(t,e){let r,n,i,o,a,s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S;const T=t.state;r=t.next_in,E=t.input,n=r+(t.avail_in-5),i=t.next_out,S=t.output,o=i-(e-t.avail_out),a=i+(t.avail_out-257),s=T.dmax,u=T.wsize,c=T.whave,l=T.wnext,f=T.window,h=T.hold,p=T.bits,d=T.lencode,m=T.distcode,y=(1<<T.lenbits)-1,g=(1<<T.distbits)-1;t:do{p<15&&(h+=E[r++]<<p,p+=8,h+=E[r++]<<p,p+=8),b=d[h&y];e:for(;;){if(v=b>>>24,h>>>=v,p-=v,v=b>>>16&255,0===v)S[i++]=65535&b;else{if(!(16&v)){if(64&v){if(32&v){T.mode=16191;break t}t.msg=\"invalid literal/length code\",T.mode=pe;break t}b=d[(65535&b)+(h&(1<<v)-1)];continue e}for(w=65535&b,v&=15,v&&(p<v&&(h+=E[r++]<<p,p+=8),w+=h&(1<<v)-1,h>>>=v,p-=v),p<15&&(h+=E[r++]<<p,p+=8,h+=E[r++]<<p,p+=8),b=m[h&g];;){if(v=b>>>24,h>>>=v,p-=v,v=b>>>16&255,16&v){if(_=65535&b,v&=15,p<v&&(h+=E[r++]<<p,p+=8,p<v&&(h+=E[r++]<<p,p+=8)),_+=h&(1<<v)-1,_>s){t.msg=\"invalid distance too far back\",T.mode=pe;break t}if(h>>>=v,p-=v,v=i-o,_>v){if(v=_-v,v>c&&T.sane){t.msg=\"invalid distance too far back\",T.mode=pe;break t}if(x=0,k=f,0===l){if(x+=u-v,v<w){w-=v;do{S[i++]=f[x++]}while(--v);x=i-_,k=S}}else if(l<v){if(x+=u+l-v,v-=l,v<w){w-=v;do{S[i++]=f[x++]}while(--v);if(x=0,l<w){v=l,w-=v;do{S[i++]=f[x++]}while(--v);x=i-_,k=S}}}else if(x+=l-v,v<w){w-=v;do{S[i++]=f[x++]}while(--v);x=i-_,k=S}for(;w>2;)S[i++]=k[x++],S[i++]=k[x++],S[i++]=k[x++],w-=3;w&&(S[i++]=k[x++],w>1&&(S[i++]=k[x++]))}else{x=i-_;do{S[i++]=S[x++],S[i++]=S[x++],S[i++]=S[x++],w-=3}while(w>2);w&&(S[i++]=S[x++],w>1&&(S[i++]=S[x++]))}break}if(64&v){t.msg=\"invalid distance code\",T.mode=pe;break t}b=m[(65535&b)+(h&(1<<v)-1)]}}break}}while(r<n&&i<a);w=p>>3,r-=w,p-=w<<3,h&=(1<<p)-1,t.next_in=r,t.next_out=i,t.avail_in=r<n?n-r+5:5-(r-n),t.avail_out=i<a?a-i+257:257-(i-a),T.hold=h,T.bits=p};const me=15,ye=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ge=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),be=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ve=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var we=(t,e,r,n,i,o,a,s)=>{const u=s.bits;let c,l,f,h,p,d,m=0,y=0,g=0,b=0,v=0,w=0,_=0,x=0,k=0,E=0,S=null;const T=new Uint16Array(16),A=new Uint16Array(16);let D,O,I,P=null;for(m=0;m<=me;m++)T[m]=0;for(y=0;y<n;y++)T[e[r+y]]++;for(v=u,b=me;b>=1&&0===T[b];b--);if(v>b&&(v=b),0===b)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(g=1;g<b&&0===T[g];g++);for(v<g&&(v=g),x=1,m=1;m<=me;m++)if(x<<=1,x-=T[m],x<0)return-1;if(x>0&&(0===t||1!==b))return-1;for(A[1]=0,m=1;m<me;m++)A[m+1]=A[m]+T[m];for(y=0;y<n;y++)0!==e[r+y]&&(a[A[e[r+y]]++]=y);if(0===t?(S=P=a,d=20):1===t?(S=ye,P=ge,d=257):(S=be,P=ve,d=0),E=0,y=0,m=g,p=o,w=v,_=0,f=-1,k=1<<v,h=k-1,1===t&&k>852||2===t&&k>592)return 1;for(;;){D=m-_,a[y]+1<d?(O=0,I=a[y]):a[y]>=d?(O=P[a[y]-d],I=S[a[y]-d]):(O=96,I=0),c=1<<m-_,l=1<<w,g=l;do{l-=c,i[p+(E>>_)+l]=D<<24|O<<16|I}while(0!==l);for(c=1<<m-1;E&c;)c>>=1;if(0!==c?(E&=c-1,E+=c):E=0,y++,0==--T[m]){if(m===b)break;m=e[r+a[y]]}if(m>v&&(E&h)!==f){for(0===_&&(_=v),p+=g,w=m-_,x=1<<w;w+_<b&&(x-=T[w+_],!(x<=0));)w++,x<<=1;if(k+=1<<w,1===t&&k>852||2===t&&k>592)return 1;f=E&h,i[f]=v<<24|w<<16|p-o}}return 0!==E&&(i[p+E]=m-_<<24|64<<16),s.bits=v,0};const{Z_FINISH:_e,Z_BLOCK:xe,Z_TREES:ke,Z_OK:Ee,Z_STREAM_END:Se,Z_NEED_DICT:Te,Z_STREAM_ERROR:Ae,Z_DATA_ERROR:De,Z_MEM_ERROR:Oe,Z_BUF_ERROR:Ie,Z_DEFLATED:Pe}=K,Ce=16180,Le=16190,Me=16191,Fe=16192,Be=16194,je=16199,Ne=16200,Re=16206,ze=16209,Ue=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const He=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Ce||e.mode>16211?1:0},qe=t=>{if(He(t))return Ae;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=Ce,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,Ee},Ve=t=>{if(He(t))return Ae;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,qe(t)},We=(t,e)=>{let r;if(He(t))return Ae;const n=t.state;return e<0?(r=0,e=-e):(r=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Ae:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,Ve(t))},Ze=(t,e)=>{if(!t)return Ae;const r=new Ge;t.state=r,r.strm=t,r.window=null,r.mode=Ce;const n=We(t,e);return n!==Ee&&(t.state=null),n};let Ye,Xe,Ke=!0;const Je=t=>{if(Ke){Ye=new Int32Array(512),Xe=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(we(1,t.lens,0,288,Ye,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;we(2,t.lens,0,32,Xe,0,t.work,{bits:5}),Ke=!1}t.lencode=Ye,t.lenbits=9,t.distcode=Xe,t.distbits=5},$e=(t,e,r,n)=>{let i;const o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(e.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(e.subarray(r-n,r-n+i),o.wnext),(n-=i)?(o.window.set(e.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0};var Qe={inflateReset:Ve,inflateReset2:We,inflateResetKeep:qe,inflateInit:t=>Ze(t,15),inflateInit2:Ze,inflate:(t,e)=>{let r,n,i,o,a,s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E=0;const S=new Uint8Array(4);let T,A;const D=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(He(t)||!t.output||!t.input&&0!==t.avail_in)return Ae;r=t.state,r.mode===Me&&(r.mode=Fe),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,l=r.bits,f=s,h=u,k=Ee;t:for(;;)switch(r.mode){case Ce:if(0===r.wrap){r.mode=Fe;break}for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(2&r.wrap&&35615===c){0===r.wbits&&(r.wbits=15),r.check=0,S[0]=255&c,S[1]=c>>>8&255,r.check=Y(r.check,S,2,0),c=0,l=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg=\"incorrect header check\",r.mode=ze;break}if((15&c)!==Pe){t.msg=\"unknown compression method\",r.mode=ze;break}if(c>>>=4,l-=4,x=8+(15&c),0===r.wbits&&(r.wbits=x),x>15||x>r.wbits){t.msg=\"invalid window size\",r.mode=ze;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=512&c?16189:Me,c=0,l=0;break;case 16181:for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(r.flags=c,(255&r.flags)!==Pe){t.msg=\"unknown compression method\",r.mode=ze;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=ze;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&4&r.wrap&&(S[0]=255&c,S[1]=c>>>8&255,r.check=Y(r.check,S,2,0)),c=0,l=0,r.mode=16182;case 16182:for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.head&&(r.head.time=c),512&r.flags&&4&r.wrap&&(S[0]=255&c,S[1]=c>>>8&255,S[2]=c>>>16&255,S[3]=c>>>24&255,r.check=Y(r.check,S,4,0)),c=0,l=0,r.mode=16183;case 16183:for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&4&r.wrap&&(S[0]=255&c,S[1]=c>>>8&255,r.check=Y(r.check,S,2,0)),c=0,l=0,r.mode=16184;case 16184:if(1024&r.flags){for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&4&r.wrap&&(S[0]=255&c,S[1]=c>>>8&255,r.check=Y(r.check,S,2,0)),c=0,l=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&(p=r.length,p>s&&(p=s),p&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+p),x)),512&r.flags&&4&r.wrap&&(r.check=Y(r.check,n,p,o)),s-=p,o+=p,r.length-=p),r.length))break t;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break t;p=0;do{x=n[o+p++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=Y(r.check,n,p,o)),s-=p,o+=p,x)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===s)break t;p=0;do{x=n[o+p++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=Y(r.check,n,p,o)),s-=p,o+=p,x)break t}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(4&r.wrap&&c!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=ze;break}c=0,l=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Me;break;case 16189:for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}t.adler=r.check=Ue(c),c=0,l=0,r.mode=Le;case Le:if(0===r.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,Te;t.adler=r.check=1,r.mode=Me;case Me:if(e===xe||e===ke)break t;case Fe:if(r.last){c>>>=7&l,l-=7&l,r.mode=Re;break}for(;l<3;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}switch(r.last=1&c,c>>>=1,l-=1,3&c){case 0:r.mode=16193;break;case 1:if(Je(r),r.mode=je,e===ke){c>>>=2,l-=2;break t}break;case 2:r.mode=16196;break;case 3:t.msg=\"invalid block type\",r.mode=ze}c>>>=2,l-=2;break;case 16193:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=ze;break}if(r.length=65535&c,c=0,l=0,r.mode=Be,e===ke)break t;case Be:r.mode=16195;case 16195:if(p=r.length,p){if(p>s&&(p=s),p>u&&(p=u),0===p)break t;i.set(n.subarray(o,o+p),a),s-=p,o+=p,u-=p,a+=p,r.length-=p;break}r.mode=Me;break;case 16196:for(;l<14;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(r.nlen=257+(31&c),c>>>=5,l-=5,r.ndist=1+(31&c),c>>>=5,l-=5,r.ncode=4+(15&c),c>>>=4,l-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=ze;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;l<3;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.lens[D[r.have++]]=7&c,c>>>=3,l-=3}for(;r.have<19;)r.lens[D[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,T={bits:r.lenbits},k=we(0,r.lens,0,19,r.lencode,0,r.work,T),r.lenbits=T.bits,k){t.msg=\"invalid code lengths set\",r.mode=ze;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;E=r.lencode[c&(1<<r.lenbits)-1],y=E>>>24,g=E>>>16&255,b=65535&E,!(y<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(b<16)c>>>=y,l-=y,r.lens[r.have++]=b;else{if(16===b){for(A=y+2;l<A;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(c>>>=y,l-=y,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=ze;break}x=r.lens[r.have-1],p=3+(3&c),c>>>=2,l-=2}else if(17===b){for(A=y+3;l<A;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=y,l-=y,x=0,p=3+(7&c),c>>>=3,l-=3}else{for(A=y+7;l<A;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=y,l-=y,x=0,p=11+(127&c),c>>>=7,l-=7}if(r.have+p>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=ze;break}for(;p--;)r.lens[r.have++]=x}}if(r.mode===ze)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=ze;break}if(r.lenbits=9,T={bits:r.lenbits},k=we(1,r.lens,0,r.nlen,r.lencode,0,r.work,T),r.lenbits=T.bits,k){t.msg=\"invalid literal/lengths set\",r.mode=ze;break}if(r.distbits=6,r.distcode=r.distdyn,T={bits:r.distbits},k=we(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,T),r.distbits=T.bits,k){t.msg=\"invalid distances set\",r.mode=ze;break}if(r.mode=je,e===ke)break t;case je:r.mode=Ne;case Ne:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,de(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,l=r.bits,r.mode===Me&&(r.back=-1);break}for(r.back=0;E=r.lencode[c&(1<<r.lenbits)-1],y=E>>>24,g=E>>>16&255,b=65535&E,!(y<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(g&&!(240&g)){for(v=y,w=g,_=b;E=r.lencode[_+((c&(1<<v+w)-1)>>v)],y=E>>>24,g=E>>>16&255,b=65535&E,!(v+y<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=v,l-=v,r.back+=v}if(c>>>=y,l-=y,r.back+=y,r.length=b,0===g){r.mode=16205;break}if(32&g){r.back=-1,r.mode=Me;break}if(64&g){t.msg=\"invalid literal/length code\",r.mode=ze;break}r.extra=15&g,r.mode=16201;case 16201:if(r.extra){for(A=r.extra;l<A;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;E=r.distcode[c&(1<<r.distbits)-1],y=E>>>24,g=E>>>16&255,b=65535&E,!(y<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(!(240&g)){for(v=y,w=g,_=b;E=r.distcode[_+((c&(1<<v+w)-1)>>v)],y=E>>>24,g=E>>>16&255,b=65535&E,!(v+y<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=v,l-=v,r.back+=v}if(c>>>=y,l-=y,r.back+=y,64&g){t.msg=\"invalid distance code\",r.mode=ze;break}r.offset=b,r.extra=15&g,r.mode=16203;case 16203:if(r.extra){for(A=r.extra;l<A;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=ze;break}r.mode=16204;case 16204:if(0===u)break t;if(p=h-u,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=ze;break}p>r.wnext?(p-=r.wnext,d=r.wsize-p):d=r.wnext-p,p>r.length&&(p=r.length),m=r.window}else m=i,d=a-r.offset,p=r.length;p>u&&(p=u),u-=p,r.length-=p;do{i[a++]=m[d++]}while(--p);0===r.length&&(r.mode=Ne);break;case 16205:if(0===u)break t;i[a++]=r.length,u--,r.mode=Ne;break;case Re:if(r.wrap){for(;l<32;){if(0===s)break t;s--,c|=n[o++]<<l,l+=8}if(h-=u,t.total_out+=h,r.total+=h,4&r.wrap&&h&&(t.adler=r.check=r.flags?Y(r.check,i,h,a-h):W(r.check,i,h,a-h)),h=u,4&r.wrap&&(r.flags?c:Ue(c))!==r.check){t.msg=\"incorrect data check\",r.mode=ze;break}c=0,l=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(4&r.wrap&&c!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=ze;break}c=0,l=0}r.mode=16208;case 16208:k=Se;break t;case ze:k=De;break t;case 16210:return Oe;default:return Ae}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,(r.wsize||h!==t.avail_out&&r.mode<ze&&(r.mode<Re||e!==_e))&&$e(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,r.total+=h,4&r.wrap&&h&&(t.adler=r.check=r.flags?Y(r.check,i,h,t.next_out-h):W(r.check,i,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Me?128:0)+(r.mode===je||r.mode===Be?256:0),(0===f&&0===h||e===_e)&&k===Ee&&(k=Ie),k},inflateEnd:t=>{if(He(t))return Ae;let e=t.state;return e.window&&(e.window=null),t.state=null,Ee},inflateGetHeader:(t,e)=>{if(He(t))return Ae;const r=t.state;return 2&r.wrap?(r.head=e,e.done=!1,Ee):Ae},inflateSetDictionary:(t,e)=>{const r=e.length;let n,i,o;return He(t)?Ae:(n=t.state,0!==n.wrap&&n.mode!==Le?Ae:n.mode===Le&&(i=1,i=W(i,e,r,0),i!==n.check)?De:(o=$e(t,e,r,r),o?(n.mode=16210,Oe):(n.havedict=1,Ee)))},inflateInfo:\"pako inflate (from Nodeca project)\"};var tr=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1};const er=Object.prototype.toString,{Z_NO_FLUSH:rr,Z_FINISH:nr,Z_OK:ir,Z_STREAM_END:or,Z_NEED_DICT:ar,Z_STREAM_ERROR:sr,Z_DATA_ERROR:ur,Z_MEM_ERROR:cr}=K;function lr(t){this.options=Xt.assign({chunkSize:65536,windowBits:15,to:\"\"},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;let r=Qe.inflateInit2(this.strm,e.windowBits);if(r!==ir)throw new Error(X[r]);if(this.header=new tr,Qe.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=$t.string2buf(e.dictionary):\"[object ArrayBuffer]\"===er.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Qe.inflateSetDictionary(this.strm,e.dictionary),r!==ir)))throw new Error(X[r])}function fr(t,e){const r=new lr(e);if(r.push(t),r.err)throw r.msg||X[r.err];return r.result}lr.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(a=e===~~e?e:!0===e?nr:rr,\"[object ArrayBuffer]\"===er.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=Qe.inflate(r,a),o===ar&&i&&(o=Qe.inflateSetDictionary(r,i),o===ir?o=Qe.inflate(r,a):o===ur&&(o=ar));r.avail_in>0&&o===or&&r.state.wrap>0&&0!==t[r.next_in];)Qe.inflateReset(r),o=Qe.inflate(r,a);switch(o){case sr:case ur:case ar:case cr:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||o===or))if(\"string\"===this.options.to){let t=$t.utf8border(r.output,r.next_out),e=r.next_out-t,i=$t.buf2string(r.output,t);r.next_out=e,r.avail_out=n-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(o!==ir||0!==s){if(o===or)return o=Qe.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},lr.prototype.onData=function(t){this.chunks.push(t)},lr.prototype.onEnd=function(t){t===ir&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=Xt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var hr={Inflate:lr,inflate:fr,inflateRaw:function(t,e){return(e=e||{}).raw=!0,fr(t,e)},ungzip:fr,constants:K};const{Deflate:pr,deflate:dr,deflateRaw:mr,gzip:yr}=he,{Inflate:gr,inflate:br,inflateRaw:vr,ungzip:wr}=hr;var _r={Deflate:pr,deflate:dr,deflateRaw:mr,gzip:yr,Inflate:gr,inflate:br,inflateRaw:vr,ungzip:wr,constants:K};function xr(t){return xr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},xr(t)}function kr(t){return function(t){if(Array.isArray(t))return Er(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Er(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Er(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Er(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Sr(){Sr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:T(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function g(){}function b(){}function v(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(P([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=v.prototype=g.prototype=Object.create(w);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==xr(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function T(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=f(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=f(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(D,this),this.reset(!0)}function P(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(xr(e)+\" is not iterable\")}return b.prototype=v,i(k,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:b,configurable:!0}),b.displayName=c(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===b||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},E(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(k),c(k,u,\"Generator\"),c(k,a,(function(){return this})),c(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function Tr(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Ar(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Tr(o,n,i,a,s,\"next\",t)}function s(t){Tr(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function Dr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Or(n.key),n)}}function Or(t){var e=function(t,e){if(\"object\"!=xr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=xr(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==xr(e)?e:e+\"\"}var Ir=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t)}return e=t,r=null,u=[{key:\"Abcc\",value:(M=Ar(Sr().mark((function t(e){return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t){chrome.storage.local.get(e,(function(r){return r&&r[e]?t(r[e]):t({})}))})));case 1:case\"end\":return t.stop()}}),t)}))),function(t){return M.apply(this,arguments)})},{key:\"wbeh\",value:(L=Ar(Sr().mark((function t(e,r){var n;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={})[e]=r,t.next=4,chrome.storage.local.set(n);case 4:case\"end\":return t.stop()}}),t)}))),function(t,e){return L.apply(this,arguments)})},{key:\"Bi9dF\",value:(C=Ar(Sr().mark((function t(e){var r,n,i,o,a=arguments;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:0,n=a.length>2&&void 0!==a[2]?a[2]:1,i=a.length>3?a[3]:void 0,o=Math.floor(Math.random()*r+e),n&&i&&(o=Math.max(o/n,i)),t.next=7,new Promise((function(t){setTimeout(t,o)}));case 7:return t.abrupt(\"return\",t.sent);case 8:case\"end\":return t.stop()}}),t)}))),function(t){return C.apply(this,arguments)})},{key:\"HfbaJ\",value:function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}},{key:\"RhjhR\",value:function(t){var e=t.split(\".\");return 1e3*parseInt(e[0])*1e3+1e3*parseInt(e[1])+parseInt(e[2])}},{key:\"Oeb0\",value:function(e,r){try{return t.RhjhR(e)>=t.RhjhR(r)}catch(t){return!1}}},{key:\"_d5at\",value:function(t,e,r){for(;\"\".concat(t).length<r;)t=\"\".concat(e).concat(t);return t}},{key:\"Dfj0D\",value:(P=Ar(Sr().mark((function t(e){var r,n,i,o;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.B174bD,o=void 0===i?1:i,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"zo4B\",label:{key:n,B174bD:o}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return P.apply(this,arguments)})},{key:\"Mc76\",value:(I=Ar(Sr().mark((function t(e){var r,n,i,o,a,s,u;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.value,o=e.B174bD,a=void 0===o?1:o,s=e.q177o,u=void 0!==s&&s,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"TpiT\",label:{key:n,value:i,B174bD:a,q177o:u}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return I.apply(this,arguments)})},{key:\"Zhc9_\",value:(O=Ar(Sr().mark((function t(e){var r,n,i,o;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.B174bD,o=void 0===i?1:i,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"r136v\",label:{key:n,B174bD:o}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return O.apply(this,arguments)})},{key:\"Cc9h\",value:(D=Ar(Sr().mark((function e(r,n){var i,o,a,s,u,c,l;return Sr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(i=chrome.runtime)&&void 0!==i&&i.id){e.next=2;break}return e.abrupt(\"return\",0);case 2:return 3323===r?(s=\"rl94t\",u=\"vm2ex\"):3635===r&&(s=\"Ml74\",u=\"_m0a\"),e.next=5,t.Dfj0D({key:s,B174bD:1});case 5:if(e.t1=o=e.sent,e.t0=null===e.t1,e.t0){e.next=9;break}e.t0=void 0===o;case 9:if(!e.t0){e.next=13;break}e.t2=void 0,e.next=14;break;case 13:e.t2=o.value;case 14:if(e.t2===n){e.next=22;break}return e.next=19,t.Mc76({key:s,value:n,B174bD:1});case 19:a=1,e.next=36;break;case 22:return e.next=24,t.Dfj0D({key:u,B174bD:1});case 24:if(e.t4=c=e.sent,e.t3=null===e.t4,e.t3){e.next=28;break}e.t3=void 0===c;case 28:if(!e.t3){e.next=32;break}e.t5=void 0,e.next=33;break;case 32:e.t5=c.value;case 33:l=e.t5,a=parseInt(l?l+\"\":\"1\")+1;case 36:return e.next=38,t.Mc76({key:u,value:a,B174bD:1});case 38:return e.abrupt(\"return\",a);case 39:case\"end\":return e.stop()}}),e)}))),function(t,e){return D.apply(this,arguments)})},{key:\"_g06\",value:(A=Ar(Sr().mark((function e(r){var n,i,o,a,s;return Sr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Dfj0D({key:\"CSLcaeg\",B174bD:-1});case 2:if(e.t1=n=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===n;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=n.value;case 11:return o=e.t2,e.next=14,t.Dfj0D({key:\"CSLid5l\"});case 14:if(e.t4=i=e.sent,e.t3=null===e.t4,e.t3){e.next=18;break}e.t3=void 0===i;case 18:if(!e.t3){e.next=22;break}e.t5=void 0,e.next=23;break;case 22:e.t5=i.value;case 23:return a=e.t5,s=1,3323===r?s=parseFloat((null==o?void 0:o.hcs)||a||\"1.1708\"):3635===r&&(s=parseFloat((null==o?void 0:o.res)||a||\"1.1708\")),e.abrupt(\"return\",s);case 27:case\"end\":return e.stop()}}),e)}))),function(t){return A.apply(this,arguments)})},{key:\"VfeeX\",value:(T=Ar(Sr().mark((function t(){var e;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s1c4\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return T.apply(this,arguments)})},{key:\"yfml\",value:(S=Ar(Sr().mark((function t(){var e;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x236B\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return S.apply(this,arguments)})},{key:\"qi5f\",value:(E=Ar(Sr().mark((function t(){var e;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x1cmx\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return E.apply(this,arguments)})},{key:\"FcflF\",value:(k=Ar(Sr().mark((function t(){var e;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"B142B\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return k.apply(this,arguments)})},{key:\"xehcz\",value:(x=Ar(Sr().mark((function t(){var e;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s163\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return x.apply(this,arguments)})},{key:\"Jef6N\",value:(_=Ar(Sr().mark((function t(){var e;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"D18fF\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return _.apply(this,arguments)})},{key:\"tg42v\",value:(w=Ar(Sr().mark((function t(e){var r;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.next=2;break;case 2:if(null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=4;break}return t.abrupt(\"return\",void 0);case 4:return t.abrupt(\"return\",new Promise((function(t,r){chrome.runtime.sendMessage({type:\"q1fj\",label:e},(function(e){e?t(e):r()}))})));case 5:case\"end\":return t.stop()}}),t)}))),function(t){return w.apply(this,arguments)})},{key:\"Bc2bD\",value:(v=Ar(Sr().mark((function e(r){var n,i,o,a,s,u,c,l,f,h,p,d,m,y,g=arguments;return Sr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=g.length>1&&void 0!==g[1]&&g[1],i=g.length>2&&void 0!==g[2]?g[2]:null,o=g.length>3&&void 0!==g[3]?g[3]:null,a=g.length>4&&void 0!==g[4]?g[4]:1,r&&r.isConnected){e.next=7;break}return e.abrupt(\"return\");case 7:if(s=r.getBoundingClientRect(),null!==i&&null!==o||(i=s.left+s.width/2,o=s.top+s.height/2),!isNaN(i)&&!isNaN(o)){e.next=12;break}return e.abrupt(\"return\");case 12:if(!n){e.next=29;break}u=[{e:\"mouseover\",w:30/a},{e:\"mouseenter\",w:15/a}].concat(kr(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/a})),[{e:\"mousedown\",w:35/a},{e:\"mouseup\",w:30/a},{e:\"click\",w:35/a}],kr(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/a})),[{e:\"mouseout\",w:25/a}]),c=0;case 15:if(!(c<u.length)){e.next=27;break}return l=u[c].e,f=50+Math.floor(100*Math.random()),h=50+Math.floor(200*Math.random()),\"mouseenter\"!==l&&\"mouseout\"!==l?(i=s.left+s.width/2,o=s.top+s.height/2):(i=s.left+(\"mouseenter\"===l?0:s.width),o=s.top+(\"mouseenter\"===l?0:s.height),i+=10*Math.random()-5,o+=20*Math.random()-5),p=new MouseEvent(l,{detail:\"mouseover\"===l?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i,clientY:o,screenX:f,screenY:h}),r.dispatchEvent(p),e.next=24,t.Bi9dF(u[c].w);case 24:c++,e.next=15;break;case 27:e.next=39;break;case 29:d=[{e:\"mouseover\",w:30/a},{e:\"mouseenter\",w:15/a},{e:\"mousedown\",w:30/a},{e:\"mouseup\",w:30/a},{e:\"click\",w:50/a},{e:\"mouseout\",w:35/a}],m=0;case 31:if(!(m<d.length)){e.next=39;break}return y=new MouseEvent(d[m].e,{detail:\"mouseover\"===d[m].e?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i+4,clientY:o+4}),r.dispatchEvent(y),e.next=36,t.Bi9dF(d[m].w);case 36:m++,e.next=31;break;case 39:case\"end\":return e.stop()}}),e)}))),function(t){return v.apply(this,arguments)})},{key:\"Jfi2J\",value:function(t){var e;if(!t)return null;var r=null===(e=t.style)||void 0===e?void 0:e.background.trim().match(/(?!^)\".*?\"/g);return r&&0!==r.length?r[0].replaceAll('\"',\"\"):null}},{key:\"BfgoD\",value:function(t){var e;return null==t||null===(e=t.src)||void 0===e?void 0:e.trim()}},{key:\"qd5l\",value:function(t,e){return t[0]=t[0]>=0?t[0]:0,t[1]=t[1]>=0?t[1]:0,t[2]=t[0]+t[2]<=e?t[2]:e-t[0],t[3]=t[1]+t[3]<=e?t[3]:e-t[1],t}},{key:\"yc01\",value:function(t){var e=t.map((function(t){return Math.exp(t)})),r=e.reduce((function(t,e){return t+e}),0);return e.map((function(t){return t/r}))}},{key:\"BgncB\",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.querySelector(e),i=null!==n;return i&&r&&(i=t.Yej5(n)),i}},{key:\"Mh6a\",value:function(t,e){if(t.length!==e.length)throw new Error(\"must have the same length\");return t.reduce((function(t,r,n){return t+r*e[n]}),0)}},{key:\"HdcaL\",value:function(t){return Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e,2)}),0))}},{key:\"shk4\",value:function(e){for(var r=[],n=0;n<e.length;n++){for(var i=new Array(e.length).fill(0),o=0;o<n;o++)i[o]=r[o][n];for(var a=e[n],s=n+1;s<e.length;s++){var u=e[s];i[s]=t.qhi5(a,u)}r.push(kr(i))}return r}},{key:\"qhi5\",value:function(e,r){return t.Mh6a(e,r)/(t.HdcaL(e)*t.HdcaL(r))}},{key:\"ze45D\",value:function(t,e){var r=new Set(Object.keys(t)),n=new Set(Object.keys(e)),i=kr(r).filter((function(t){return n.has(t)})),o=new Set([].concat(kr(r),kr(n)));return i.length/o.size}},{key:\"Yej5\",value:function(t){if(!t)return!1;var e=window.getComputedStyle(t);return!(\"none\"===e.display||\"hidden\"===e.visibility||0===t.offsetWidth&&0===t.offsetHeight||\"fixed\"===e.position&&\"hidden\"===e.visibility||null===t.offsetParent)}},{key:\"Cd86\",value:function(t,e){var r=t.data,n=[],o=0;if(2===e.length)for(var a=0;a<e[0];a++){for(var s=[],u=0;u<e[1];u++)s.push(r[o]),o++;n.push(s)}else if(3===e.length)for(var c=0;c<e[0];c++){for(var l=[],f=0;f<e[1];f++){for(var h=[],p=0;p<e[2];p++)h.push(r[o]),o++;l.push(h)}n.push(l)}else if(4===e.length)for(var d=0;d<e[0];d++){for(var m=[],y=0;y<e[1];y++){for(var g=[],b=0;b<e[2];b++){for(var v=[],w=0;w<e[3];w++)v.push(r[o]),o++;g.push(v)}m.push(g)}n.push(m)}return i.a(n)}},{key:\"Iepc\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=kr(e);r&&(n[0]=t[0],n[1]=t[1],n[2]=e[2]-(e[0]-n[0]),n[3]=e[3]-(e[1]-n[1]));var i=Math.max(t[0],n[0]),o=Math.max(t[1],n[1]),a=Math.min(t[2],n[2]),s=Math.min(t[3],n[3]);return Math.max(0,a-i)*Math.max(0,s-o)}},{key:\"FbijJ\",value:function(e,r){return(e[2]-e[0])*(e[3]-e[1])+(r[2]-r[0])*(r[3]-r[1])-t.Iepc(e,r)}},{key:\"tel7v\",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.Iepc(e,r,n)/t.FbijJ(e,r)}},{key:\"ue9h\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return!!((e[0]<=t[0]||n&&e[0]-t[0]<5)&&(e[1]<=t[1]||n&&e[1]-t[1]<5)&&(e[2]>=t[2]||n&&e[2]-t[2]>-5)&&(e[3]>=t[3]||n&&e[3]-t[3]>-5))||!r&&(t[0]<=e[0]||n&&t[0]-e[0]<5)&&(t[1]<=e[1]||n&&t[1]-e[1]<5)&&(t[2]>=e[2]||n&&t[2]-e[2]>-5)&&(t[3]>=e[3]||n&&t[3]-e[3]>-5)}},{key:\"rdfov\",value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];if(e.length>0){e.sort((function(t,e){return e[4]-t[4]}));for(var i=function(){var i=e.shift();n.push(i),e=e.filter((function(e){return!t.ue9h(e,i,!0,r)}))};e.length>0;)i()}return n}},{key:\"_e92_\",value:function(t,e){var r=t[2]<e[0],n=t[0]>e[2],i=t[3]<e[1],o=t[1]>e[3];return!(r||n||i||o)}},{key:\"thebv\",value:function(e,r){for(var n=0;n<r.length;n++)t._e92_(e,r[n])}},{key:\"Ff32H\",value:function(t){if(0===t.length)return-1;var e=Math.max.apply(Math,kr(t));return t.indexOf(e)}},{key:\"Hf0eH\",value:function(t){if(0===t.length)return-1;var e=Math.min.apply(Math,kr(t));return t.indexOf(e)}},{key:\"rc4bt\",value:function(t){return 1/(1+Math.exp(-t))}},{key:\"_d1o\",value:function(t,e,r){for(;\"\".concat(t).length<r;)t=\"\".concat(e).concat(t);return t}},{key:\"Shoa\",value:function(t){for(var e=t.bitmap.width,r=t.bitmap.height,n=0,i=0,o=0;o<r;o++)for(var a=0;a<e;a++){var s=4*(o*e+a);t.bitmap.data[s]<128?n++:i++}return n/(n+i)}},{key:\"Ii11\",value:function(t,e,r){if(t&&0!==t.length){for(var n=t.map((function(t){return[t.x,t.y]})),i=(new o.DBSCAN).run(n,e,r,null),a=0,s=0,u=0,c=0;c<i.length;c++)if(i[c].length>a)s=c,a=i[c].length,u=i[c].reduce((function(t,e){return t+=e.value}),0);else if(i[c].length===a){var l=i[c].reduce((function(t,e){return t+=e.value}),0);l<u&&(s=c,a=i[c].length,u=l)}return i[s]}}},{key:\"vh3fx\",value:(b=Ar(Sr().mark((function t(e,r){var i,o,a,s,u,c,l,f=arguments;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=f.length>2&&void 0!==f[2]?f[2]:\"\",null!==(i=chrome.runtime)&&void 0!==i&&i.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.next=5,e.getBase64Async(n.a.AUTO);case 5:return s=t.sent,u=/[<>:\"\\/\\\\|?*\\x00-\\x1F]/g,a=a.replace(u,\"\").replaceAll(\".\",\"\").replace(/\\s+/g,\"_\"),c=(null===(o=a)||void 0===o?void 0:o.length)>0?\"_solver_raw/\"+a+\"/\"+r:\"_solver_raw/\"+r,l={url:s,filename:c,saveAs:!1,conflictAction:\"uniquify\"},t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"q1j6\",label:l},(function(r){r?t(r):e()}))})));case 11:case\"end\":return t.stop()}}),t)}))),function(t,e){return b.apply(this,arguments)})},{key:\"DgmgF\",value:function(t,e,r,n){var i={x:0,y:0},o=!1;switch(n){case 0:i={x:e-1,y:r-1};for(var a=0;a<r;a++){for(var s=0;s<e;s++)if(!o&&255===t[a*e+s]&&s<i.x&&a<i.y){i.x=s,i.y=a,o=!0;break}if(o)break}break;case 1:i={x:0,y:0};for(var u=e-1;u>=0;u--){for(var c=r-1;c>=0;c--)if(!o&&255===t[c*e+u]&&u>i.x&&c>i.y){i.x=u,i.y=c,o=!0;break}if(o)break}break;case 2:i={x:0,y:0};for(var l=r-1;l>=0;l--){for(var f=e-1;f>=0;f--)if(!o&&255===t[l*e+f]&&f>i.x&&l>i.y){i.x=f,i.y=l,o=!0;break}if(o)break}break;case 3:i={x:e,y:r};for(var h=0;h<e;h++){for(var p=0;p<r;p++)if(!o&&255===t[p*e+h]&&h<i.x&&p<i.y){i.x=h,i.y=p,o=!0;break}if(o)break}}return i}},{key:\"Zg20Z\",value:function(t,e){var r=Array.from({length:e},(function(){return 0})),i=256/e;t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,e){var o=this.getPixelColor(t,e),a=n.a.intToRGBA(o),s=a.r,u=a.g,c=a.b,l=Math.floor((s+u+c)/3/i);r[l]++}));var o=r.reduce((function(t,e){return t+e}),0);return r.map((function(t){return t/o}))}},{key:\"_hhk\",value:function(t,e){var r=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,i){var o=this.getPixelColor(t,i),a=n.a.intToRGBA(o),s=a.r,u=a.g,c=a.b;Math.abs(s-u)<e&&Math.abs(s-c)<e&&Math.abs(u-c)<e&&r++})),r/(t.bitmap.width*t.bitmap.height)}},{key:\"Pdk4P\",value:function(t,e){if(e>t.length)return null;for(var r,n=0,i=0;i<e;i++)n+=t[i];r=n;for(var o=e;o<t.length;o++)n=n+t[o]-t[o-e],r=Math.max(r,n);return r}},{key:\"Hf84H\",value:function(e){var r=t.Zg20Z(e,32),n=r.indexOf(Math.max.apply(Math,kr(r)));if(r[30]+r[31]+r[30]>.93||r[0]+r[1]+r[2]>.93||n>2&&n<30&&r[n]>.93)return 0;if(r[29]+r[30]+r[31]+r[0]+r[1]+r[2]>.93||r[30]+r[31]+r[29]>.9||r[0]+r[1]+r[2]>.9)return 1;var i=t.Pdk4P(r,2),o=t.Pdk4P(r,3);return i>.85||o>.9?2:t._hhk(e,10)>.8?3:99}},{key:\"vcelv\",value:(g=Ar(Sr().mark((function t(e){var r,i,o,a,s,u;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),o=n.a.intToRGBA(i),a=o.r,s=o.g,u=o.b,c=Math.floor((a+s+u)/3);c>80&&c<200&&(r[c]=(r[c]||0)+1)})),Object.entries(r).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(r).reduce((function(t,e){return r[t]>r[e]?t:e})),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var r=this.getPixelColor(t,e),o=n.a.intToRGBA(r),a=o.r,s=o.g,u=o.b,c=Math.floor((a+s+u)/3);Math.abs(i-c)>15&&this.setPixelColor(n.a.rgbaToInt(255,255,255,255),t,e)})),r={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),o=n.a.intToRGBA(i),a=o.r,s=o.g,u=o.b;if(255!==a&&255!==s&&255!==u){var c=a+\"_\"+s+\"_\"+u;r[c]=(r[c]||0)+1}})),Object.entries(r).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(r).reduce((function(t,e){return r[t]>r[e]?t:e})),o=i.split(\"_\"),a=parseInt(o[0]),s=parseInt(o[1]),u=parseInt(o[2]),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var r=this.getPixelColor(t,e),i=n.a.intToRGBA(r),o=i.r,c=i.g,l=i.b;Math.abs(a-o)>40||Math.abs(s-c)>40||Math.abs(u-l)>40||Math.abs(a-o)+Math.abs(s-c)+Math.abs(u-l)>80?this.setPixelColor(n.a.rgbaToInt(255,255,255,255),t,e):this.setPixelColor(n.a.rgbaToInt(0,0,0,255),t,e)})),t.abrupt(\"return\",e);case 17:case\"end\":return t.stop()}}),t)}))),function(t){return g.apply(this,arguments)})},{key:\"PblhR\",value:function(t,e,r){var i=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,o){var a=this.getPixelColor(t,o),s=n.a.intToRGBA(a),u=s.r,c=s.g,l=s.b;Math.abs(u-e[0])<=r&&Math.abs(c-e[1])<=r&&Math.abs(l-e[2])<=r&&i++})),i/(t.bitmap.width*t.bitmap.height)}},{key:\"Fg6gH\",value:function(t,e,r,i,o){for(var a=[{x:e,y:r}],s={x1:e,y1:r,x2:e,y2:r};a.length>0;){var u=a.pop(),c=u.x,l=u.y;if(c>=0&&c<t.bitmap.width&&l>=0&&l<t.bitmap.height){var f=t.getPixelIndex(c,l);if(t.bitmap.data[f]===i){var h=n.a.rgbaToInt(o,o,o,255);t.setPixelColor(h,c,l),c<s.x1&&(s.x1=c),c>s.x2&&(s.x2=c),l<s.y1&&(s.y1=l),l>s.y2&&(s.y2=l),a.push({x:c+1,y:l}),a.push({x:c-1,y:l}),a.push({x:c,y:l+1}),a.push({x:c,y:l-1})}}}return s}},{key:\"Ih91\",value:function(e,r){var n=[];return e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(i,o,a){if(e.bitmap.data[a]===r){var s=t.Fg6gH(e,i,o,r,250);n.push(s)}})),n}},{key:\"Mgk4\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var r=t[0][e],n=1;n<t.length;n++)t[n][e]>r&&(r=t[n][e]);return r}}},{key:\"rgdcr\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var r=t[0][e],n=1;n<t.length;n++)t[n][e]<r&&(r=t[n][e]);return r}}},{key:\"Agh9\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Number.MIN_SAFE_INTEGER,i=-1,o=-1,a=0;a<t.length;a++)if(e<0)for(var s=0;s<t[a].length;s++)a!==s&&t[a][s]>n&&(n=t[a][s],i=a,o=s);else t[a][e]>n&&(null==r||!r.includes(a))&&a!==e&&(n=t[a][e],i=a,o=e);return[i,o,t[i][o]]}},{key:\"ygd0\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Number.MAX_SAFE_INTEGER,i=-1,o=-1,a=0;a<t.length;a++)if(e<0)for(var s=0;s<t[a].length;s++)a!==s&&t[a][s]<n&&(n=t[a][s],i=a,o=s);else t[a][e]<n&&(null==r||!r.includes(a))&&a!==e&&(n=t[a][e],i=a,o=e);return[i,o,t[i][o]]}},{key:\"Gce5\",value:function(t,e,r){return t.filter((function(t,r){return!e.includes(r)})).map((function(t){return t.filter((function(t,e){return!r.includes(e)}))}))}},{key:\"Ri54T\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,r){chrome.runtime.sendMessage({type:\"C1k3\",label:t},(function(t){t?e(t):r()}))}))}},{key:\"sdnj\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,r){chrome.runtime.sendMessage({type:\"R1pcR\",label:t},(function(t){t?e(t):r()}))}))}},{key:\"LcifN\",value:(y=Ar(Sr().mark((function t(e,r){var i,o,a,s,u,c,l,f,h,p,d,m,y,g,b,v,w;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i=e.bitmap.width,o=e.bitmap.height,a=r[0],s=r[1],u=0;u<o;u++)for(c=0;c<i;c++){for(l=[0,0,0],f=0,h=-a;h<=a;h++)for(p=-a;p<=a;p++)m=u+h,(d=c+p)>=0&&d<i&&m>=0&&m<o&&(y=e.getPixelColor(d,m),g=n.a.intToRGBA(y),l[0]+=g.r,l[1]+=g.g,l[2]+=g.b,f++);b=[Math.floor(l[0]/f),Math.floor(l[1]/f),Math.floor(l[2]/f)],v=e.getPixelColor(c,u),w=n.a.intToRGBA(v),Math.abs(w.r-b[0])+Math.abs(w.g-b[1])+Math.abs(w.b-b[2])<s&&e.setPixelColor(n.a.rgbaToInt.apply(n.a,b.concat([w.a])),c,u)}return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e){return y.apply(this,arguments)})},{key:\"Oe76\",value:(m=Ar(Sr().mark((function t(e,r,i){var o,a,s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(o=e.bitmap,a=o.width,s=o.height,u=Array.from({length:s},(function(t,r){return Array.from({length:a},(function(t,i){return n.a.intToRGBA(e.getPixelColor(i,r))}))})),c=new Array(s),l=0;l<s;l++)for(c[l]=new Array(a),f=0;f<a;f++){for(h=0,p=0,d=0,m=0,y=-r;y<=r;y++)for(g=-r;g<=r;g++)v=l+y,(b=f+g)>=0&&b<a&&v>=0&&v<s&&(w=u[v][b],h+=w.r,p+=w.g,d+=w.b,m++);c[l][f]={r:Math.floor(h/m),g:Math.floor(p/m),b:Math.floor(d/m),a:u[l][f].a}}for(_=0;_<s;_++)for(x=0;x<a;x++)k=u[_][x],E=c[_][x],Math.abs(k.r-E.r)+Math.abs(k.g-E.g)+Math.abs(k.b-E.b)<i&&(S=n.a.rgbaToInt(E.r,E.g,E.b,E.a),e.setPixelColor(S,x,_));return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e,r){return m.apply(this,arguments)})},{key:\"ycma\",value:(d=Ar(Sr().mark((function e(r,n){var i;return Sr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt(\"return\",r);case 2:e.t0=Sr().keys(n);case 3:if((e.t1=e.t0()).done){e.next=30;break}if(i=e.t1.value,!n.hasOwnProperty(i)){e.next=28;break}e.t2=i,e.next=\"bw\"===e.t2?9:\"b\"===e.t2?13:\"c\"===e.t2?15:\"g\"===e.t2?17:\"p\"===e.t2?19:\"cbl\"===e.t2||\"ceb\"===e.t2||\"ced\"===e.t2||\"cee\"===e.t2||\"csh\"===e.t2?21:\"dns\"===e.t2?23:27;break;case 9:return e.next=11,t.ubnk(r);case 11:return r=e.sent,e.abrupt(\"break\",28);case 13:return r.blur(n[i]),e.abrupt(\"break\",28);case 15:return r.contrast(n[i]),e.abrupt(\"break\",28);case 17:return n[i]&&r.grayscale(),e.abrupt(\"break\",28);case 19:return r.pixelate(n[i]),e.abrupt(\"break\",28);case 21:return r.convolute([[n[i][0],n[i][1],n[i][2]],[n[i][3],n[i][4],n[i][5]],[n[i][6],n[i][7],n[i][8]]]),e.abrupt(\"break\",28);case 23:return e.next=25,t.Oe76(r,n[i][0],n[i][1]);case 25:return r=e.sent,e.abrupt(\"break\",28);case 27:return e.abrupt(\"break\",28);case 28:e.next=3;break;case 30:return e.abrupt(\"return\",r);case 31:case\"end\":return e.stop()}}),e)}))),function(t,e){return d.apply(this,arguments)})},{key:\"ubnk\",value:(p=Ar(Sr().mark((function t(e){var r,n,i;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=0,n=0,e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e,i){var o=this.bitmap.data[i+0],a=this.bitmap.data[i+1],s=this.bitmap.data[i+2];r+=.299*o+.587*a+.114*s,n++})),i=r/n,e.greyscale().threshold({max:i}),t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t){return p.apply(this,arguments)})},{key:\"He09J\",value:(h=Ar(Sr().mark((function t(e){var r,i,o,s=arguments;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:null,i=null,t.prev=2,\"string\"!=typeof e){t.next=20;break}if(!e.startsWith(\"data:image/\")){t.next=13;break}if(o=e.split(\",\")[1],r&&(i=r[o.subStr(0,256)]),i){t.next=11;break}return t.next=10,n.a.read(a.Buffer.from(o,\"base64\"));case 10:i=t.sent;case 11:t.next=18;break;case 13:if(r&&(i=r[e]),i){t.next=18;break}return t.next=17,n.a.read(e);case 17:i=t.sent;case 18:t.next=21;break;case 20:\"object\"===xr(e)&&(i=e);case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(2);case 26:return t.abrupt(\"return\",i);case 27:case\"end\":return t.stop()}}),t,null,[[2,23]])}))),function(t){return h.apply(this,arguments)})},{key:\"Df72H\",value:function(t,e,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=e.bitmap.data,o=[],a=[],s=[],u=0;u<i.length;u+=4)o.push(i[u]),a.push(i[u+1]),s.push(i[u+2]);var c=o.concat(a,s),l=new Float32Array(c.map((function(t){return t/255})));if(n)for(var f=[.485,.456,.406],h=[.229,.224,.225],p=0;p<l.length;p++)l[p]=(l[p]-f[p%3])/h[p%3];return new t.Tensor(\"float32\",l,r)}},{key:\"Khl9\",value:(f=Ar(Sr().mark((function e(r,i,o){var a,s,u,c;return Sr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.He09J(o);case 2:return(a=e.sent).resize(224,224,n.a.RESIZE_BILINEAR),s=t.Df72H(r,a,[1,3,224,224],!0),(u={})[i.inputNames[0]]=s,e.next=9,i.run(u);case 9:return c=e.sent,e.abrupt(\"return\",c[i.outputNames[0]].data);case 11:case\"end\":return e.stop()}}),e)}))),function(t,e,r){return f.apply(this,arguments)})},{key:\"qcbg\",value:(l=Ar(Sr().mark((function e(r,i,o,a,s){var u,c,l,f,h,p,d,m,y=arguments;return Sr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=y.length>5&&void 0!==y[5]?y[5]:null,e.next=3,t.He09J(o);case 3:return(c=e.sent).resize(s,s,n.a.RESIZE_BILINEAR),l=t.Df72H(i,c,[1,3,s,s],!0),(f={})[a.inputNames[0]]=l,e.next=10,a.run(f);case 10:if(h=e.sent,p=h[a.outputNames[0]],!u){e.next=21;break}return(f={})[u.inputNames[0]]=p,e.next=17,u.run(f);case 17:m=e.sent,d=m[u.outputNames[0]].data,e.next=22;break;case 21:d=p.data;case 22:return e.abrupt(\"return\",d);case 23:case\"end\":return e.stop()}}),e)}))),function(t,e,r,n,i){return l.apply(this,arguments)})},{key:\"vf8kv\",value:(c=Ar(Sr().mark((function t(e){var r,n,i,o,a;return Sr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(r=JSON.parse(JSON.stringify(e))).CSLc9jd,n=new TextEncoder,i=n.encode(r),t.next=6,crypto.subtle.digest(\"SHA-256\",i);case 6:return o=t.sent,a=Array.from(new Uint8Array(o)),t.abrupt(\"return\",a.map((function(t){return t.toString(16).padStart(2,\"0\")})).join(\"\"));case 9:case\"end\":return t.stop()}}),t)}))),function(t){return c.apply(this,arguments)})},{key:\"NdikP\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"av\",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i={};return kr(new Set([].concat(kr(Object.keys(t)),kr(Object.keys(e))))).forEach((function(o){var a=t[o],s=e[o];void 0!==a&&void 0!==s?\"av\"===r?i[o]=(a+s)/2:\"mx\"===r?i[o]=Math.max(a+s):\"mn\"===r?i[o]=Math.min(a+s):\"ad\"===r?i[o]=a+s:\"ft\"===r?i[o]=a:\"lt\"===r?i[o]=s:\"ap\"===r?i[o]=a+n:\"number\"==typeof r&&(i[o]=a*(1-r)+s*r):i[o]=void 0!==a?a:s})),i}},{key:\"Kiai\",value:function(t,e){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length,o=new Array(i>4?i-4:0),a=4;a<i;a++)o[a-4]=arguments[a];var u=o.length>0?\": [\":\"\";if(o.forEach((function(t){u=Array.isArray(t)?u.concat(t.sort().join(\" \")+\", \"):\"object\"===xr(t)&&null!==t?u.concat(JSON.stringify(t)+\", \"):u.concat(t+\", \")})),u=o.length>0?u.slice(0,-2).concat(\"]\"):\"\",t.t0&&t.t0 instanceof s.a){1===r?(t.t0.push(performance.now()),t.t0.size(),n?(-1,t.t0.push(-1)):t.t0.push(performance.now())):0===r?!t.t0.isEmpty()&&(-1===t.t0.pop()?(t.t0.push(-1),t.t0.size()):(performance.now(),t.t0.push(performance.now()),t.t0.size())):-1===r&&!t.t0.isEmpty()&&(t.t0.pop(),t.t0.size(),performance.now(),t.t0.pop())}}},{key:\"Ii24\",value:function(t){for(var e=t.replace(\"data:application/octet-stream;base64,\",\"\"),r=window.atob(e),n=new Uint8Array(r.length),i=0;i<r.length;++i)n[i]=r.charCodeAt(i);return n}},{key:\"Gg95\",value:function(t){var e=new Float32Array(t).buffer,r=_r.deflate(new Uint8Array(e));return btoa(String.fromCharCode.apply(String,kr(r)))}},{key:\"ud01\",value:function(t,e){var r=(t.length-1)*e,n=Math.floor(r),i=Math.ceil(r),o=r-n;return i===n?t[n]:t[n]*(1-o)+t[i]*o}},{key:\"Xe5nX\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1/0,n=0,i=1;i<t.length-e;i++){var o=t[i-1],a=t[i];if(o>1e-8){var s=a/o;s>r&&(r=s,n=i)}}return t[n]}},{key:\"Ch1b\",value:function(t){var e=0;t=t||\"\";for(var r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return e}}],r&&Dr(e.prototype,r),u&&Dr(e,u),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,T,A,D,O,I,P,C,L,M}()},function(t,e,r){\"use strict\";var n=r(25),i=r(19);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function a(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||f(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){var n;return n=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||f(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function f(t,e){if(t){if(\"string\"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var p=r(43),d=r(61),m=r.n(d),y=r(0);function g(t){return g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},g(t)}function b(t,e,r){var n;return n=function(t,e){if(\"object\"!=g(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=g(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==g(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v=\"image/jpeg\",w=r(46);function _(t){return _=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_(t)}function x(t,e,r){var n;return n=function(t,e){if(\"object\"!=_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==_(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var k=\"image/png\",E=r(62),S=r.n(E);function T(t){return T=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},T(t)}function A(t,e,r){var n;return n=function(t,e){if(\"object\"!=T(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=T(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==T(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var D=\"image/bmp\",O=\"image/x-ms-bmp\";var I=function(t){return e=S.a.decode(t),Object(y.b)({bitmap:e},0,0,e.width,e.height,(function(t,r,n){var i=this.bitmap.data[n+0],o=this.bitmap.data[n+1],a=this.bitmap.data[n+2],s=this.bitmap.data[n+3];this.bitmap.data[n+0]=s,this.bitmap.data[n+1]=a,this.bitmap.data[n+2]=o,this.bitmap.data[n+3]=e.is_with_alpha?i:255})).bitmap;var e},P=function(t){return S.a.encode(function(t){return Object(y.b)(t,0,0,t.bitmap.width,t.bitmap.height,(function(t,e,r){var n=this.bitmap.data[r+0],i=this.bitmap.data[r+1],o=this.bitmap.data[r+2],a=this.bitmap.data[r+3];this.bitmap.data[r+0]=a,this.bitmap.data[r+1]=o,this.bitmap.data[r+2]=i,this.bitmap.data[r+3]=n})).bitmap}(t)).data},C=r(105),L=r(106);function M(t){return M=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},M(t)}var F=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],B=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18],j=r(107),N=r(108);function R(t){return R=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},R(t)}function z(t){var e=[1,9,3,11,13,5,15,7,4,12,2,10,16,8,14,6];return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,r,n){var i=e[((3&r)<<2)+t%4];this.bitmap.data[n]=Math.min(this.bitmap.data[n]+i,255),this.bitmap.data[n+1]=Math.min(this.bitmap.data[n+1]+i,255),this.bitmap.data[n+2]=Math.min(this.bitmap.data[n+2]+i,255)})),Object(y.a)(t)&&t.call(this,null,this),this}var U=r(109);function G(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t.r[this.bitmap.data[n+0]]++,t.g[this.bitmap.data[n+1]]++,t.b[this.bitmap.data[n+2]]++})),t}var H=function(t,e,r){return 255*(t-e)/(r-e)},q=function(t){return[t.findIndex((function(t){return t>0})),255-t.slice().reverse().findIndex((function(t){return t>0}))]},V=r(110),W=r(112),Z=r(114);function Y(t){return function(t){if(Array.isArray(t))return X(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return X(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var K=[function(){return{blit:function(t,e,r,n,i,o,a,s){if(!(t instanceof this.constructor))return y.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof r)return y.d.call(this,\"x and y must be numbers\",s);if(\"function\"==typeof n)s=n,n=0,i=0,o=t.bitmap.width,a=t.bitmap.height;else{if(M(n)!==M(i)||M(i)!==M(o)||M(o)!==M(a))return y.d.call(this,\"srcx, srcy, srcw, srch must be numbers\",s);n=n||0,i=i||0,o=o||t.bitmap.width,a=a||t.bitmap.height}e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i),o=Math.round(o),a=Math.round(a);var u=this.bitmap.width,c=this.bitmap.height,l=this;return t.scanQuiet(n,i,o,a,(function(t,o,a){var s=e+t-n,f=r+o-i;if(s>=0&&f>=0&&u-s>0&&c-f>0){var h=l.getPixelIndex(s,f),p={r:this.bitmap.data[a],g:this.bitmap.data[a+1],b:this.bitmap.data[a+2],a:this.bitmap.data[a+3]},d={r:l.bitmap.data[h],g:l.bitmap.data[h+1],b:l.bitmap.data[h+2],a:l.bitmap.data[h+3]};l.bitmap.data[h]=(p.a*(p.r-d.r)-d.r+255>>8)+d.r,l.bitmap.data[h+1]=(p.a*(p.g-d.g)-d.g+255>>8)+d.g,l.bitmap.data[h+2]=(p.a*(p.b-d.b)-d.b+255>>8)+d.b,l.bitmap.data[h+3]=this.constructor.limit255(d.a+p.a)}})),Object(y.a)(s)&&s.call(this,null,this),this}}},function(){return{blur:function(t,e){if(\"number\"!=typeof t)return y.d.call(this,\"r must be a number\",e);if(t<1)return y.d.call(this,\"r must be greater than 0\",e);for(var r,n,i,o,a,s,u,c,l,f,h,p,d,m,g=this.bitmap.width-1,b=this.bitmap.height-1,v=t+1,w=F[t],_=B[t],x=[],k=[],E=[],S=[],T=[],A=[],D=2;D-- >0;){for(p=0,d=0,s=0;s<this.bitmap.height;s++){for(r=this.bitmap.data[d]*v,n=this.bitmap.data[d+1]*v,i=this.bitmap.data[d+2]*v,o=this.bitmap.data[d+3]*v,u=1;u<=t;u++)c=d+((u>g?g:u)<<2),r+=this.bitmap.data[c++],n+=this.bitmap.data[c++],i+=this.bitmap.data[c++],o+=this.bitmap.data[c];for(a=0;a<this.bitmap.width;a++)x[p]=r,k[p]=n,E[p]=i,S[p]=o,0===s&&(T[a]=((c=a+v)<g?c:g)<<2,A[a]=(c=a-t)>0?c<<2:0),l=d+T[a],f=d+A[a],r+=this.bitmap.data[l++]-this.bitmap.data[f++],n+=this.bitmap.data[l++]-this.bitmap.data[f++],i+=this.bitmap.data[l++]-this.bitmap.data[f++],o+=this.bitmap.data[l]-this.bitmap.data[f],p++;d+=this.bitmap.width<<2}for(a=0;a<this.bitmap.width;a++){for(r=x[h=a]*v,n=k[h]*v,i=E[h]*v,o=S[h]*v,u=1;u<=t;u++)r+=x[h+=u>b?0:this.bitmap.width],n+=k[h],i+=E[h],o+=S[h];for(p=a<<2,s=0;s<this.bitmap.height;s++)m=o*w>>>_,this.bitmap.data[p+3]=m,m>255&&(this.bitmap.data[p+3]=255),m>0?(m=255/m,this.bitmap.data[p]=(r*w>>>_)*m,this.bitmap.data[p+1]=(n*w>>>_)*m,this.bitmap.data[p+2]=(i*w>>>_)*m):(this.bitmap.data[p+2]=0,this.bitmap.data[p+1]=0,this.bitmap.data[p]=0),0===a&&(T[s]=((c=s+v)<b?c:b)*this.bitmap.width,A[s]=(c=s-t)>0?c*this.bitmap.width:0),l=a+T[s],f=a+A[s],r+=x[l]-x[f],n+=k[l]-k[f],i+=E[l]-E[f],o+=S[l]-S[f],p+=this.bitmap.width<<2}}return Object(y.a)(e)&&e.call(this,null,this),this}}},function(){return{circle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;\"function\"==typeof t&&(e=t,t={});var r=t.radius||(this.bitmap.width>this.bitmap.height?this.bitmap.height:this.bitmap.width)/2,n=\"number\"==typeof t.x?t.x:this.bitmap.width/2,i=\"number\"==typeof t.y?t.y:this.bitmap.height/2;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,o){var a=Math.sqrt(Math.pow(t-n,2)+Math.pow(e-i,2));r-a<=0?this.bitmap.data[o+3]=0:r-a<1&&(this.bitmap.data[o+3]=255*(r-a))})),Object(y.a)(e)&&e.call(this,null,this),this}}},j.a,function(){return{contain:function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",i);\"string\"==typeof r&&(\"function\"==typeof n&&void 0===i&&(i=n),n=r,r=null),\"function\"==typeof r&&(void 0===i&&(i=r),n=null,r=null),\"function\"==typeof n&&void 0===i&&(i=n,n=null);var o=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=r>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return y.d.call(this,\"only use one flag per alignment direction\",i);var s=o>>1,u=a>>1,c=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,l=this.cloneQuiet().scale(c,n);return this.resize(t,e,n),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)})),this.blit(l,(this.bitmap.width-l.bitmap.width)/2*s,(this.bitmap.height-l.bitmap.height)/2*u),Object(y.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",i);r&&\"function\"==typeof r&&void 0===i?(i=r,r=null,n=null):\"function\"==typeof n&&void 0===i&&(i=n,n=null);var o=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=r>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return y.d.call(this,\"only use one flag per alignment direction\",i);var s=o>>1,u=a>>1,c=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(c,n),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*u,t,e),Object(y.a)(i)&&i.call(this,null,this),this}}},N.a,function(){return{displace:function(t,e,r){if(\"object\"!==R(t)||t.constructor!==this.constructor)return y.d.call(this,\"The source must be a Jimp image\",r);if(\"number\"!=typeof e)return y.d.call(this,\"factor must be a number\",r);var n=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,i,o){var a=t.bitmap.data[o]/256*e;a=Math.round(a);var s=this.getPixelIndex(r+a,i);this.bitmap.data[s]=n.bitmap.data[o],this.bitmap.data[s+1]=n.bitmap.data[o+1],this.bitmap.data[s+2]=n.bitmap.data[o+2]})),Object(y.a)(r)&&r.call(this,null,this),this}}},function(){return{dither565:z,dither16:z}},function(){return{fisheye:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{r:2.5},r=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(r=e,e={r:2.5});var n=this.cloneQuiet(),i=n.bitmap,o=i.width,a=i.height;return n.scanQuiet(0,0,o,a,(function(r,i){var s=r/o,u=i/a,c=Math.sqrt(Math.pow(s-.5,2)+Math.pow(u-.5,2)),l=2*Math.pow(c,e.r),f=(s-.5)/c,h=(u-.5)/c,p=Math.round((l*f+.5)*o),d=Math.round((l*h+.5)*a),m=n.getPixelColor(p,d);t.setPixelColor(m,r,i)})),this.setPixelColor(n.getPixelColor(o/2,a/2),o/2,a/2),Object(y.a)(r)&&r.call(this,null,this),this}}},U.a,function(){return{gaussian:function(t,e){if(\"number\"!=typeof t)return y.d.call(this,\"r must be a number\",e);if(t<1)return y.d.call(this,\"r must be greater than 0\",e);for(var r=Math.ceil(2.57*t),n=2*r+1,i=t*t*2,o=i*Math.PI,a=[],s=0;s<n;s++){a[s]=[];for(var u=0;u<n;u++){var c=Math.pow(u-r,2)+Math.pow(s-r,2);a[s][u]=Math.exp(-c/i)/o}}for(var l=0;l<this.bitmap.height;l++)for(var f=0;f<this.bitmap.width;f++)for(var h=0,p=0,d=0,m=0,g=0,b=0;b<n;b++){for(var v=0;v<n;v++){var w=Math.min(this.bitmap.width-1,Math.max(0,v+f-r)),_=Math.min(this.bitmap.height-1,Math.max(0,b+l-r)),x=a[b][v],k=_*this.bitmap.width+w<<2;h+=this.bitmap.data[k]*x,p+=this.bitmap.data[k+1]*x,d+=this.bitmap.data[k+2]*x,m+=this.bitmap.data[k+3]*x,g+=x}var E=l*this.bitmap.width+f<<2;this.bitmap.data[E]=Math.round(h/g),this.bitmap.data[E+1]=Math.round(p/g),this.bitmap.data[E+2]=Math.round(d/g),this.bitmap.data[E+3]=Math.round(m/g)}return Object(y.a)(e)&&e.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=255-this.bitmap.data[r],this.bitmap.data[r+1]=255-this.bitmap.data[r+1],this.bitmap.data[r+2]=255-this.bitmap.data[r+2]})),Object(y.a)(t)&&t.call(this,null,this),this}}},function(){return{mask:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return y.d.call(this,\"The source must be a Jimp image\",n);if(\"number\"!=typeof e||\"number\"!=typeof r)return y.d.call(this,\"x and y must be numbers\",n);e=Math.round(e),r=Math.round(r);var i=this.bitmap.width,o=this.bitmap.height,a=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,s){var u=e+t,c=r+n;if(u>=0&&c>=0&&u<i&&c<o){var l=a.getPixelIndex(u,c),f=this.bitmap.data,h=(f[s+0]+f[s+1]+f[s+2])/3;a.bitmap.data[l+3]*=h/255}})),Object(y.a)(n)&&n.call(this,null,this),this}}},function(){return{normalize:function(t){var e=G.call(this),r={r:q(e.r),g:q(e.g),b:q(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){var i=this.bitmap.data[n+0],o=this.bitmap.data[n+1],a=this.bitmap.data[n+2];this.bitmap.data[n+0]=H(i,r.r[0],r.r[1]),this.bitmap.data[n+1]=H(o,r.g[0],r.g[1]),this.bitmap.data[n+2]=H(a,r.b[0],r.b[1])})),Object(y.a)(t)&&t.call(this,null,this),this}}},V.a,W.a,Z.a,function(){return{scale:function(t,e,r){if(\"number\"!=typeof t)return y.d.call(this,\"f must be a number\",r);if(t<0)return y.d.call(this,\"f must be a positive number\",r);\"function\"==typeof e&&void 0===r&&(r=e,e=null);var n=this.bitmap.width*t,i=this.bitmap.height*t;return this.resize(n,i,e),Object(y.a)(r)&&r.call(this,null,this),this},scaleToFit:function(t,e,r,n){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",n);\"function\"==typeof r&&void 0===n&&(n=r,r=null);var i=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,r),Object(y.a)(n)&&n.call(this,null,this),this}}},function(){return{shadow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(r=e,e={});var n=e,i=n.opacity,o=void 0===i?.7:i,a=n.size,s=void 0===a?1.1:a,u=n.x,c=void 0===u?-25:u,l=n.y,f=void 0===l?25:l,h=n.blur,p=void 0===h?5:h,d=this.clone(),m=this.clone();return m.scan(0,0,m.bitmap.width,m.bitmap.height,(function(e,r,n){m.bitmap.data[n]=0,m.bitmap.data[n+1]=0,m.bitmap.data[n+2]=0,m.bitmap.data[n+3]=m.constructor.limit255(m.bitmap.data[n+3]*o),t.bitmap.data[n]=0,t.bitmap.data[n+1]=0,t.bitmap.data[n+2]=0,t.bitmap.data[n+3]=0})),m.resize(m.bitmap.width*s,m.bitmap.height*s).blur(p),this.composite(m,c,f),this.composite(d,0,0),Object(y.a)(r)&&r.call(this,null,this),this}}},function(){return{threshold:function(t,e){var r=this,n=t.max,i=t.replace,o=void 0===i?255:i,a=t.autoGreyscale,s=void 0===a||a;return\"number\"!=typeof n?y.d.call(this,\"max must be a number\",e):\"number\"!=typeof o?y.d.call(this,\"replace must be a number\",e):\"boolean\"!=typeof s?y.d.call(this,\"autoGreyscale must be a boolean\",e):(n=this.constructor.limit255(n),o=this.constructor.limit255(o),s&&this.greyscale(),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,i){var a=r.bitmap.data[i]<n?r.bitmap.data[i]:o;r.bitmap.data[i]=a,r.bitmap.data[i+1]=a,r.bitmap.data[i+2]=a})),Object(y.a)(e)&&e.call(this,null,this),this)}}}];e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.c,r={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function o(t){Object.entries(t).forEach((function(t){var e=l(t,2),n=e[0],i=e[1];r[n]=u(u({},r[n]),i)}))}return t.types&&(t.types.forEach((function(t){var e=t();Array.isArray(e.mime)?i.a.apply(void 0,a(e.mime)):Object.entries(e.mime).forEach((function(t){return i.a.apply(void 0,a(t))})),delete e.mime,o(e)})),e.decoders=u(u({},e.decoders),r.decoders),e.encoders=u(u({},e.encoders),r.encoders),e.hasAlpha=u(u({},e.hasAlpha),r.hasAlpha)),t.plugins&&t.plugins.forEach((function(t){var e=t(n.d)||{};e.class||e.constants?o(e):o({class:e})})),Object(n.b)(r.class,e),Object(n.a)(r.constants,e),n.c}({types:[function(){return Object(p.mergeDeep)({mime:b({},v,[\"jpeg\",\"jpg\",\"jpe\"]),constants:{MIME_JPEG:v},decoders:b({},v,m.a.decode),encoders:b({},v,(function(t){return m.a.encode(t.bitmap,t._quality).data})),class:{_quality:100,quality:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"n must be a number\",e):t<0||t>100?y.d.call(this,\"n must be a number 0 - 100\",e):(this._quality=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)}}},{mime:x({},k,[\"png\"]),constants:{MIME_PNG:k,PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:x({},k,!0),decoders:x({},k,w.PNG.sync.read),encoders:x({},k,(function(t){var e=new w.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,w.PNG.sync.write(e,{deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:\"number\"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})})),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"l must be a number\",e):t<0||t>9?y.d.call(this,\"l must be a number 0 - 9\",e):(this._deflateLevel=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"s must be a number\",e):t<0||t>3?y.d.call(this,\"s must be a number 0 - 3\",e):(this._deflateStrategy=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"n must be a number\",e):t<-1||t>4?y.d.call(this,\"n must be -1 (auto) or a number 0 - 4\",e):(this._filterType=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"s must be a number\",e):0!==t&&2!==t&&4!==t&&6!==t?y.d.call(this,\"s must be a number 0, 2, 4, 6.\",e):(this._colorType=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)}}},{mime:A({},D,[\"bmp\"]),constants:{MIME_BMP:D,MIME_X_MS_BMP:O},decoders:A(A({},D,I),O,I),encoders:A(A({},D,P),O,P)},Object(C.a)(),Object(L.a)())}],plugins:[function(t){var e=K.map((function(e){var r=e(t)||{};return r.class||r.constants||(r={class:r}),r}));return p.mergeDeep.apply(void 0,Y(e))}]})},function(t,e,r){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(r){\"use strict\";var o=Math.cosh||function(t){return Math.abs(t)<1e-9?1-t:.5*(Math.exp(t)+Math.exp(-t))},a=Math.sinh||function(t){return Math.abs(t)<1e-9?t:.5*(Math.exp(t)-Math.exp(-t))},s=function(){throw SyntaxError(\"Invalid Param\")};function u(t,e){var r=Math.abs(t),n=Math.abs(e);return 0===t?Math.log(n):0===e?Math.log(r):r<3e3&&n<3e3?.5*Math.log(t*t+e*e):(t/=2,e/=2,.5*Math.log(t*t+e*e)+Math.LN2)}function c(t,e){if(!(this instanceof c))return new c(t,e);var r=function(t,e){var r={re:0,im:0};if(null==t)r.re=r.im=0;else if(void 0!==e)r.re=t,r.im=e;else switch(i(t)){case\"object\":if(\"im\"in t&&\"re\"in t)r.re=t.re,r.im=t.im;else if(\"abs\"in t&&\"arg\"in t){if(!Number.isFinite(t.abs)&&Number.isFinite(t.arg))return c.INFINITY;r.re=t.abs*Math.cos(t.arg),r.im=t.abs*Math.sin(t.arg)}else if(\"r\"in t&&\"phi\"in t){if(!Number.isFinite(t.r)&&Number.isFinite(t.phi))return c.INFINITY;r.re=t.r*Math.cos(t.phi),r.im=t.r*Math.sin(t.phi)}else 2===t.length?(r.re=t[0],r.im=t[1]):s();break;case\"string\":r.im=r.re=0;var n=t.match(/\\d+\\.?\\d*e[+-]?\\d+|\\d+\\.?\\d*|\\.\\d+|./g),o=1,a=0;null===n&&s();for(var u=0;u<n.length;u++){var l=n[u];\" \"===l||\"\\t\"===l||\"\\n\"===l||(\"+\"===l?o++:\"-\"===l?a++:\"i\"===l||\"I\"===l?(o+a===0&&s(),\" \"===n[u+1]||isNaN(n[u+1])?r.im+=parseFloat((a%2?\"-\":\"\")+\"1\"):(r.im+=parseFloat((a%2?\"-\":\"\")+n[u+1]),u++),o=a=0):((o+a===0||isNaN(l))&&s(),\"i\"===n[u+1]||\"I\"===n[u+1]?(r.im+=parseFloat((a%2?\"-\":\"\")+l),u++):r.re+=parseFloat((a%2?\"-\":\"\")+l),o=a=0))}o+a>0&&s();break;case\"number\":r.im=0,r.re=t;break;default:s()}return isNaN(r.re)||isNaN(r.im),r}(t,e);this.re=r.re,this.im=r.im}c.prototype={re:0,im:0,sign:function(){var t=this.abs();return new c(this.re/t,this.im/t)},add:function(t,e){var r=new c(t,e);return this.isInfinite()&&r.isInfinite()?c.NAN:this.isInfinite()||r.isInfinite()?c.INFINITY:new c(this.re+r.re,this.im+r.im)},sub:function(t,e){var r=new c(t,e);return this.isInfinite()&&r.isInfinite()?c.NAN:this.isInfinite()||r.isInfinite()?c.INFINITY:new c(this.re-r.re,this.im-r.im)},mul:function(t,e){var r=new c(t,e);return this.isInfinite()&&r.isZero()||this.isZero()&&r.isInfinite()?c.NAN:this.isInfinite()||r.isInfinite()?c.INFINITY:0===r.im&&0===this.im?new c(this.re*r.re,0):new c(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(t,e){var r=new c(t,e);if(this.isZero()&&r.isZero()||this.isInfinite()&&r.isInfinite())return c.NAN;if(this.isInfinite()||r.isZero())return c.INFINITY;if(this.isZero()||r.isInfinite())return c.ZERO;t=this.re,e=this.im;var n,i,o=r.re,a=r.im;return 0===a?new c(t/o,e/o):Math.abs(o)<Math.abs(a)?new c((t*(i=o/a)+e)/(n=o*i+a),(e*i-t)/n):new c((t+e*(i=a/o))/(n=a*i+o),(e-t*i)/n)},pow:function(t,e){var r=new c(t,e);if(t=this.re,e=this.im,r.isZero())return c.ONE;if(0===r.im){if(0===e&&t>0)return new c(Math.pow(t,r.re),0);if(0===t)switch((r.re%4+4)%4){case 0:return new c(Math.pow(e,r.re),0);case 1:return new c(0,Math.pow(e,r.re));case 2:return new c(-Math.pow(e,r.re),0);case 3:return new c(0,-Math.pow(e,r.re))}}if(0===t&&0===e&&r.re>0&&r.im>=0)return c.ZERO;var n=Math.atan2(e,t),i=u(t,e);return t=Math.exp(r.re*i-r.im*n),e=r.im*i+r.re*n,new c(t*Math.cos(e),t*Math.sin(e))},sqrt:function(){var t,e,r=this.re,n=this.im,i=this.abs();if(r>=0){if(0===n)return new c(Math.sqrt(r),0);t=.5*Math.sqrt(2*(i+r))}else t=Math.abs(n)/Math.sqrt(2*(i-r));return e=r<=0?.5*Math.sqrt(2*(i-r)):Math.abs(n)/Math.sqrt(2*(i+r)),new c(t,n<0?-e:e)},exp:function(){var t=Math.exp(this.re);return this.im,new c(t*Math.cos(this.im),t*Math.sin(this.im))},expm1:function(){var t=this.re,e=this.im;return new c(Math.expm1(t)*Math.cos(e)+function(t){var e=Math.PI/4;if(-e>t||t>e)return Math.cos(t)-1;var r=t*t;return r*(r*(r*(r*(r*(r*(r*(r/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5)}(e),Math.exp(t)*Math.sin(e))},log:function(){var t=this.re,e=this.im;return new c(u(t,e),Math.atan2(e,t))},abs:function(){return t=this.re,e=this.im,r=Math.abs(t),n=Math.abs(e),r<3e3&&n<3e3?Math.sqrt(r*r+n*n):(r<n?(r=n,n=t/e):n=e/t,r*Math.sqrt(1+n*n));var t,e,r,n},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var t=this.re,e=this.im;return new c(Math.sin(t)*o(e),Math.cos(t)*a(e))},cos:function(){var t=this.re,e=this.im;return new c(Math.cos(t)*o(e),-Math.sin(t)*a(e))},tan:function(){var t=2*this.re,e=2*this.im,r=Math.cos(t)+o(e);return new c(Math.sin(t)/r,a(e)/r)},cot:function(){var t=2*this.re,e=2*this.im,r=Math.cos(t)-o(e);return new c(-Math.sin(t)/r,a(e)/r)},sec:function(){var t=this.re,e=this.im,r=.5*o(2*e)+.5*Math.cos(2*t);return new c(Math.cos(t)*o(e)/r,Math.sin(t)*a(e)/r)},csc:function(){var t=this.re,e=this.im,r=.5*o(2*e)-.5*Math.cos(2*t);return new c(Math.sin(t)*o(e)/r,-Math.cos(t)*a(e)/r)},asin:function(){var t=this.re,e=this.im,r=new c(e*e-t*t+1,-2*t*e).sqrt(),n=new c(r.re-e,r.im+t).log();return new c(n.im,-n.re)},acos:function(){var t=this.re,e=this.im,r=new c(e*e-t*t+1,-2*t*e).sqrt(),n=new c(r.re-e,r.im+t).log();return new c(Math.PI/2-n.im,n.re)},atan:function(){var t=this.re,e=this.im;if(0===t){if(1===e)return new c(0,1/0);if(-1===e)return new c(0,-1/0)}var r=t*t+(1-e)*(1-e),n=new c((1-e*e-t*t)/r,-2*t/r).log();return new c(-.5*n.im,.5*n.re)},acot:function(){var t=this.re,e=this.im;if(0===e)return new c(Math.atan2(1,t),0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).atan():new c(0!==t?t/0:0,0!==e?-e/0:0).atan()},asec:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new c(0,1/0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).acos():new c(0!==t?t/0:0,0!==e?-e/0:0).acos()},acsc:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new c(Math.PI/2,1/0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).asin():new c(0!==t?t/0:0,0!==e?-e/0:0).asin()},sinh:function(){var t=this.re,e=this.im;return new c(a(t)*Math.cos(e),o(t)*Math.sin(e))},cosh:function(){var t=this.re,e=this.im;return new c(o(t)*Math.cos(e),a(t)*Math.sin(e))},tanh:function(){var t=2*this.re,e=2*this.im,r=o(t)+Math.cos(e);return new c(a(t)/r,Math.sin(e)/r)},coth:function(){var t=2*this.re,e=2*this.im,r=o(t)-Math.cos(e);return new c(a(t)/r,-Math.sin(e)/r)},csch:function(){var t=this.re,e=this.im,r=Math.cos(2*e)-o(2*t);return new c(-2*a(t)*Math.cos(e)/r,2*o(t)*Math.sin(e)/r)},sech:function(){var t=this.re,e=this.im,r=Math.cos(2*e)+o(2*t);return new c(2*o(t)*Math.cos(e)/r,-2*a(t)*Math.sin(e)/r)},asinh:function(){var t=this.im;this.im=-this.re,this.re=t;var e=this.asin();return this.re=-this.im,this.im=t,t=e.re,e.re=-e.im,e.im=t,e},acosh:function(){var t=this.acos();if(t.im<=0){var e=t.re;t.re=-t.im,t.im=e}else{e=t.im;t.im=-t.re,t.re=e}return t},atanh:function(){var t=this.re,e=this.im,r=t>1&&0===e,n=1-t,i=1+t,o=n*n+e*e,a=0!==o?new c((i*n-e*e)/o,(e*n+i*e)/o):new c(-1!==t?t/0:0,0!==e?e/0:0),s=a.re;return a.re=u(a.re,a.im)/2,a.im=Math.atan2(a.im,s)/2,r&&(a.im=-a.im),a},acoth:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new c(0,Math.PI/2);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).atanh():new c(0!==t?t/0:0,0!==e?-e/0:0).atanh()},acsch:function(){var t=this.re,e=this.im;if(0===e)return new c(0!==t?Math.log(t+Math.sqrt(t*t+1)):1/0,0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).asinh():new c(0!==t?t/0:0,0!==e?-e/0:0).asinh()},asech:function(){var t=this.re,e=this.im;if(this.isZero())return c.INFINITY;var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).acosh():new c(0!==t?t/0:0,0!==e?-e/0:0).acosh()},inverse:function(){if(this.isZero())return c.INFINITY;if(this.isInfinite())return c.ZERO;var t=this.re,e=this.im,r=t*t+e*e;return new c(t/r,-e/r)},conjugate:function(){return new c(this.re,-this.im)},neg:function(){return new c(-this.re,-this.im)},ceil:function(t){return t=Math.pow(10,t||0),new c(Math.ceil(this.re*t)/t,Math.ceil(this.im*t)/t)},floor:function(t){return t=Math.pow(10,t||0),new c(Math.floor(this.re*t)/t,Math.floor(this.im*t)/t)},round:function(t){return t=Math.pow(10,t||0),new c(Math.round(this.re*t)/t,Math.round(this.im*t)/t)},equals:function(t,e){var r=new c(t,e);return Math.abs(r.re-this.re)<=c.EPSILON&&Math.abs(r.im-this.im)<=c.EPSILON},clone:function(){return new c(this.re,this.im)},toString:function(){var t=this.re,e=this.im,r=\"\";return this.isNaN()?\"NaN\":this.isInfinite()?\"Infinity\":(Math.abs(t)<c.EPSILON&&(t=0),Math.abs(e)<c.EPSILON&&(e=0),0===e?r+t:(0!==t?(r+=t,r+=\" \",e<0?(e=-e,r+=\"-\"):r+=\"+\",r+=\" \"):e<0&&(e=-e,r+=\"-\"),1!==e&&(r+=e),r+\"i\"))},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isNaN(this.re)||isNaN(this.im)})),isZero:function(){return 0===this.im&&0===this.re},isFinite:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isFinite(this.re)&&isFinite(this.im)})),isInfinite:function(){return!(this.isNaN()||this.isFinite())}},c.ZERO=new c(0,0),c.ONE=new c(1,0),c.I=new c(0,1),c.PI=new c(Math.PI,0),c.E=new c(Math.E,0),c.INFINITY=new c(1/0,1/0),c.NAN=new c(NaN,NaN),c.EPSILON=1e-15,void 0===(n=function(){return c}.apply(e,[]))||(t.exports=n)}()},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];\".\"===i?t.splice(n,1):\"..\"===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift(\"..\");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e=\"\",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if(\"string\"!=typeof a)throw new TypeError(\"Arguments to path.resolve must be strings\");a&&(e=a+\"/\"+e,i=\"/\"===a.charAt(0))}return(i?\"/\":\"\")+(e=r(n(e.split(\"/\"),(function(t){return!!t})),!i).join(\"/\"))||\".\"},e.normalize=function(t){var o=e.isAbsolute(t),a=\"/\"===i(t,-1);return(t=r(n(t.split(\"/\"),(function(t){return!!t})),!o).join(\"/\"))||o||(t=\".\"),t&&a&&(t+=\"/\"),(o?\"/\":\"\")+t},e.isAbsolute=function(t){return\"/\"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"Arguments to path.join must be strings\");return t})).join(\"/\"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&\"\"===t[e];e++);for(var r=t.length-1;r>=0&&\"\"===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split(\"/\")),o=n(r.split(\"/\")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push(\"..\");return(c=c.concat(o.slice(s))).join(\"/\")},e.sep=\"/\",e.delimiter=\":\",e.dirname=function(t){if(\"string\"!=typeof t&&(t+=\"\"),0===t.length)return\".\";for(var e=t.charCodeAt(0),r=47===e,n=-1,i=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?\"/\":\".\":r&&1===n?\"/\":t.slice(0,n)},e.basename=function(t,e){var r=function(t){\"string\"!=typeof t&&(t+=\"\");var e,r=0,n=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?\"\":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){\"string\"!=typeof t&&(t+=\"\");for(var e=-1,r=0,n=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){r=a+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===r+1?\"\":t.slice(e,n)};var i=\"b\"===\"ab\".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(7))},function(t,e){var r,n,i=t.exports={};function o(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r=\"function\"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n=\"function\"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=s(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new d(t,e)),1!==c.length||l||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title=\"browser\",i.browser=!0,i.env={},i.argv=[],i.version=\"\",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error(\"process.binding is not supported\")},i.cwd=function(){return\"/\"},i.chdir=function(t){throw new Error(\"process.chdir is not supported\")},i.umask=function(){return 0}},function(t,e){function r(){return t.exports=r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,r.apply(this,arguments)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new Error(\"define cannot be used indirect\")}},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(t){\"object\"===(\"undefined\"==typeof window?\"undefined\":r(window))&&(n=window)}t.exports=n},function(t,e){},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}!function(r){\"use strict\";var i={s:1,n:0,d:1};function o(t,e){if(isNaN(t=parseInt(t,10)))throw h();return t*e}function a(t,e){if(0===e)throw f();var r=Object.create(l.prototype);r.s=t<0?-1:1;var n=c(t=t<0?-t:t,e);return r.n=t/n,r.d=e/n,r}function s(t){for(var e={},r=t,n=2,i=4;i<=r;){for(;r%n==0;)r/=n,e[n]=(e[n]||0)+1;i+=1+2*n++}return r!==t?r>1&&(e[r]=(e[r]||0)+1):e[t]=(e[t]||0)+1,e}var u=function(t,e){var r,a=0,s=1,u=1,c=0,l=0,d=0,m=1,y=1,g=0,b=1,v=1,w=1,_=1e7;if(null==t);else if(void 0!==e){if(u=(a=t)*(s=e),a%1!=0||s%1!=0)throw p()}else switch(n(t)){case\"object\":if(\"d\"in t&&\"n\"in t)a=t.n,s=t.d,\"s\"in t&&(a*=t.s);else{if(!(0 in t))throw h();a=t[0],1 in t&&(s=t[1])}u=a*s;break;case\"number\":if(t<0&&(u=t,t=-t),t%1==0)a=t;else if(t>0){for(t>=1&&(t/=y=Math.pow(10,Math.floor(1+Math.log(t)/Math.LN10)));b<=_&&w<=_;){if(t===(r=(g+v)/(b+w))){b+w<=_?(a=g+v,s=b+w):w>b?(a=v,s=w):(a=g,s=b);break}t>r?(g+=v,b+=w):(v+=g,w+=b),b>_?(a=v,s=w):(a=g,s=b)}a*=y}else(isNaN(t)||isNaN(e))&&(s=a=NaN);break;case\"string\":if(null===(b=t.match(/\\d+|./g)))throw h();if(\"-\"===b[g]?(u=-1,g++):\"+\"===b[g]&&g++,b.length===g+1?l=o(b[g++],u):\".\"===b[g+1]||\".\"===b[g]?(\".\"!==b[g]&&(c=o(b[g++],u)),(++g+1===b.length||\"(\"===b[g+1]&&\")\"===b[g+3]||\"'\"===b[g+1]&&\"'\"===b[g+3])&&(l=o(b[g],u),m=Math.pow(10,b[g].length),g++),(\"(\"===b[g]&&\")\"===b[g+2]||\"'\"===b[g]&&\"'\"===b[g+2])&&(d=o(b[g+1],u),y=Math.pow(10,b[g+1].length)-1,g+=3)):\"/\"===b[g+1]||\":\"===b[g+1]?(l=o(b[g],u),m=o(b[g+2],1),g+=3):\"/\"===b[g+3]&&\" \"===b[g+1]&&(c=o(b[g],u),l=o(b[g+2],u),m=o(b[g+4],1),g+=5),b.length<=g){u=a=d+(s=m*y)*c+y*l;break}default:throw h()}if(0===s)throw f();i.s=u<0?-1:1,i.n=Math.abs(a),i.d=Math.abs(s)};function c(t,e){if(!t)return e;if(!e)return t;for(;;){if(!(t%=e))return e;if(!(e%=t))return t}}function l(t,e){if(u(t,e),!(this instanceof l))return a(i.s*i.n,i.d);t=c(i.d,i.n),this.s=i.s,this.n=i.n/t,this.d=i.d/t}var f=function(){return new Error(\"Division by Zero\")},h=function(){return new Error(\"Invalid argument\")},p=function(){return new Error(\"Parameters must be integer\")};l.prototype={s:1,n:0,d:1,abs:function(){return a(this.n,this.d)},neg:function(){return a(-this.s*this.n,this.d)},add:function(t,e){return u(t,e),a(this.s*this.n*i.d+i.s*this.d*i.n,this.d*i.d)},sub:function(t,e){return u(t,e),a(this.s*this.n*i.d-i.s*this.d*i.n,this.d*i.d)},mul:function(t,e){return u(t,e),a(this.s*i.s*this.n*i.n,this.d*i.d)},div:function(t,e){return u(t,e),a(this.s*i.s*this.n*i.d,this.d*i.n)},clone:function(){return a(this.s*this.n,this.d)},mod:function(t,e){if(isNaN(this.n)||isNaN(this.d))return new l(NaN);if(void 0===t)return a(this.s*this.n%this.d,1);if(u(t,e),0===i.n&&0===this.d)throw f();return a(this.s*(i.d*this.n)%(i.n*this.d),i.d*this.d)},gcd:function(t,e){return u(t,e),a(c(i.n,this.n)*c(i.d,this.d),i.d*this.d)},lcm:function(t,e){return u(t,e),0===i.n&&0===this.n?a(0,1):a(i.n*this.n,c(i.n,this.n)*c(i.d,this.d))},ceil:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new l(NaN):a(Math.ceil(t*this.s*this.n/this.d),t)},floor:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new l(NaN):a(Math.floor(t*this.s*this.n/this.d),t)},round:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new l(NaN):a(Math.round(t*this.s*this.n/this.d),t)},inverse:function(){return a(this.s*this.d,this.n)},pow:function(t,e){if(u(t,e),1===i.d)return i.s<0?a(Math.pow(this.s*this.d,i.n),Math.pow(this.n,i.n)):a(Math.pow(this.s*this.n,i.n),Math.pow(this.d,i.n));if(this.s<0)return null;var r=s(this.n),n=s(this.d),o=1,c=1;for(var l in r)if(\"1\"!==l){if(\"0\"===l){o=0;break}if(r[l]*=i.n,r[l]%i.d!=0)return null;r[l]/=i.d,o*=Math.pow(l,r[l])}for(var l in n)if(\"1\"!==l){if(n[l]*=i.n,n[l]%i.d!=0)return null;n[l]/=i.d,c*=Math.pow(l,n[l])}return i.s<0?a(c,o):a(o,c)},equals:function(t,e){return u(t,e),this.s*this.n*i.d==i.s*i.n*this.d},compare:function(t,e){u(t,e);var r=this.s*this.n*i.d-i.s*i.n*this.d;return(0<r)-(r<0)},simplify:function(t){if(isNaN(this.n)||isNaN(this.d))return this;t=t||.001;for(var e=this.abs(),r=e.toContinued(),n=1;n<r.length;n++){for(var i=a(r[n-1],1),o=n-2;o>=0;o--)i=i.inverse().add(r[o]);if(Math.abs(i.sub(e).valueOf())<t)return i.mul(this.s)}return this},divisible:function(t,e){return u(t,e),!(!(i.n*this.d)||this.n*i.d%(i.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(t){var e,r=\"\",n=this.n,i=this.d;return this.s<0&&(r+=\"-\"),1===i?r+=n:(t&&(e=Math.floor(n/i))>0&&(r+=e,r+=\" \",n%=i),r+=n,r+=\"/\",r+=i),r},toLatex:function(t){var e,r=\"\",n=this.n,i=this.d;return this.s<0&&(r+=\"-\"),1===i?r+=n:(t&&(e=Math.floor(n/i))>0&&(r+=e,n%=i),r+=\"\\\\frac{\",r+=n,r+=\"}{\",r+=i,r+=\"}\"),r},toContinued:function(){var t,e=this.n,r=this.d,n=[];if(isNaN(e)||isNaN(r))return n;do{n.push(Math.floor(e/r)),t=e%r,e=r,r=t}while(1!==e);return n},toString:function(t){var e=this.n,r=this.d;if(isNaN(e)||isNaN(r))return\"NaN\";t=t||15;var n=function(t,e){for(;e%2==0;e/=2);for(;e%5==0;e/=5);if(1===e)return 0;for(var r=10%e,n=1;1!==r;n++)if(r=10*r%e,n>2e3)return 0;return n}(0,r),i=function(t,e,r){for(var n=1,i=function(t,e,r){for(var n=1;e>0;t=t*t%r,e>>=1)1&e&&(n=n*t%r);return n}(10,r,e),o=0;o<300;o++){if(n===i)return o;n=10*n%e,i=10*i%e}return 0}(0,r,n),o=this.s<0?\"-\":\"\";if(o+=e/r|0,e%=r,(e*=10)&&(o+=\".\"),n){for(var a=i;a--;)o+=e/r|0,e%=r,e*=10;o+=\"(\";for(a=n;a--;)o+=e/r|0,e%=r,e*=10;o+=\")\"}else for(a=t;e&&a--;)o+=e/r|0,e%=r,e*=10;return o}},\"object\"===n(e)?(Object.defineProperty(l,\"__esModule\",{value:!0}),l.default=l,l.Fraction=l,t.exports=l):r.Fraction=l}(this)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,\"loaded\",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,\"id\",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},o=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(\" \")}r=1;for(var n=arguments,i=n.length,a=String(t).replace(o,(function(t){if(\"%%\"===t)return\"%\";if(r>=i)return t;switch(t){case\"%s\":return String(n[r++]);case\"%d\":return Number(n[r++]);case\"%j\":try{return JSON.stringify(n[r++])}catch(t){return\"[Circular]\"}default:return t}})),s=n[r];r<i;s=n[++r])y(s)||!_(s)?a+=\" \"+s:a+=\" \"+u(s);return a},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation&&console.trace(n),i=!0}return r.apply(this,arguments)}};var a,s={};function u(t,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),f(n,t,n.depth)}function c(t,e){var r=u.styles[e];return r?\"\u001b[\"+u.colors[r][0]+\"m\"+t+\"\u001b[\"+u.colors[r][1]+\"m\":t}function l(t,e){return t}function f(t,r,n){if(t.customInspect&&r&&E(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return b(i)||(i=f(t,i,n)),i}var o=function(t,e){if(v(e))return t.stylize(\"undefined\",\"undefined\");if(b(e)){var r=\"'\"+JSON.stringify(e).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return t.stylize(r,\"string\")}if(g(e))return t.stylize(\"\"+e,\"number\");if(m(e))return t.stylize(\"\"+e,\"boolean\");if(y(e))return t.stylize(\"null\",\"null\")}(t,r);if(o)return o;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),k(r)&&(a.indexOf(\"message\")>=0||a.indexOf(\"description\")>=0))return h(r);if(0===a.length){if(E(r)){var u=r.name?\": \"+r.name:\"\";return t.stylize(\"[Function\"+u+\"]\",\"special\")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),\"regexp\");if(x(r))return t.stylize(Date.prototype.toString.call(r),\"date\");if(k(r))return h(r)}var c,l=\"\",_=!1,S=[\"{\",\"}\"];(d(r)&&(_=!0,S=[\"[\",\"]\"]),E(r))&&(l=\" [Function\"+(r.name?\": \"+r.name:\"\")+\"]\");return w(r)&&(l=\" \"+RegExp.prototype.toString.call(r)),x(r)&&(l=\" \"+Date.prototype.toUTCString.call(r)),k(r)&&(l=\" \"+h(r)),0!==a.length||_&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),\"regexp\"):t.stylize(\"[Object]\",\"special\"):(t.seen.push(r),c=_?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a<s;++a)D(e,String(a))?o.push(p(t,e,r,n,String(a),!0)):o.push(\"\");return i.forEach((function(i){i.match(/^\\d+$/)||o.push(p(t,e,r,n,i,!0))})),o}(t,r,n,s,a):a.map((function(e){return p(t,r,n,s,e,_)})),t.seen.pop(),function(t,e,r){var n=t.reduce((function(t,e){return e.indexOf(\"\\n\")>=0&&0,t+e.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1}),0);if(n>60)return r[0]+(\"\"===e?\"\":e+\"\\n \")+\" \"+t.join(\",\\n  \")+\" \"+r[1];return r[0]+e+\" \"+t.join(\", \")+\" \"+r[1]}(c,l,S)):S[0]+l+S[1]}function h(t){return\"[\"+Error.prototype.toString.call(t)+\"]\"}function p(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize(\"[Getter/Setter]\",\"special\"):t.stylize(\"[Getter]\",\"special\"):u.set&&(s=t.stylize(\"[Setter]\",\"special\")),D(n,i)||(a=\"[\"+i+\"]\"),s||(t.seen.indexOf(u.value)<0?(s=y(r)?f(t,u.value,null):f(t,u.value,r-1)).indexOf(\"\\n\")>-1&&(s=o?s.split(\"\\n\").map((function(t){return\"  \"+t})).join(\"\\n\").substr(2):\"\\n\"+s.split(\"\\n\").map((function(t){return\"   \"+t})).join(\"\\n\")):s=t.stylize(\"[Circular]\",\"special\")),v(a)){if(o&&i.match(/^\\d+$/))return s;(a=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,\"name\")):(a=a.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),a=t.stylize(a,\"string\"))}return a+\": \"+s}function d(t){return Array.isArray(t)}function m(t){return\"boolean\"==typeof t}function y(t){return null===t}function g(t){return\"number\"==typeof t}function b(t){return\"string\"==typeof t}function v(t){return void 0===t}function w(t){return _(t)&&\"[object RegExp]\"===S(t)}function _(t){return\"object\"===n(t)&&null!==t}function x(t){return _(t)&&\"[object Date]\"===S(t)}function k(t){return _(t)&&(\"[object Error]\"===S(t)||t instanceof Error)}function E(t){return\"function\"==typeof t}function S(t){return Object.prototype.toString.call(t)}function T(t){return t<10?\"0\"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(v(a)&&(a=t.env.NODE_DEBUG||\"\"),r=r.toUpperCase(),!s[r])if(new RegExp(\"\\\\b\"+r+\"\\\\b\",\"i\").test(a)){t.pid;s[r]=function(){e.format.apply(e,arguments)}}else s[r]=function(){};return s[r]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},e.isArray=d,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=b,e.isSymbol=function(t){return\"symbol\"===n(t)},e.isUndefined=v,e.isRegExp=w,e.isObject=_,e.isDate=x,e.isError=k,e.isFunction=E,e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===n(t)||void 0===t},e.isBuffer=r(144);var A=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function D(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;t=new Date,r=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(\":\"),[t.getDate(),A[t.getMonth()],r].join(\" \"),e.format.apply(e,arguments)},e.inherits=r(145),e._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var O=\"undefined\"!=typeof Symbol?Symbol(\"util.promisify.custom\"):void 0;function I(t,e){if(!t){var r=new Error(\"Promise was rejected with a falsy value\");r.reason=t,t=r}return e(t)}e.promisify=function(t){if(\"function\"!=typeof t)throw new TypeError('The \"original\" argument must be of type Function');if(O&&t[O]){var e;if(\"function\"!=typeof(e=t[O]))throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');return Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),O&&Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=O,e.callbackify=function(e){if(\"function\"!=typeof e)throw new TypeError('The \"original\" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if(\"function\"!=typeof i)throw new TypeError(\"The last argument must be of type Function\");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,r).then((function(e){t.nextTick(a,null,e)}),(function(e){t.nextTick(I,e,a)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,i(e)),r}}).call(this,r(7))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(\"object\"!==n(r))throw new TypeError(r+\"must be non-object\");for(var i in r)o(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var a={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},s={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,a)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,r){var n,i,o;function a(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}o=function(){\"use strict\";function t(){return!0}function e(){return!1}function r(){}var n=\"Argument is not a typed-function.\",i=function i(){function o(t){return\"object\"===u(t)&&null!==t&&t.constructor===Object}var s,c,l=[{name:\"number\",test:function(t){return\"number\"==typeof t}},{name:\"string\",test:function(t){return\"string\"==typeof t}},{name:\"boolean\",test:function(t){return\"boolean\"==typeof t}},{name:\"Function\",test:function(t){return\"function\"==typeof t}},{name:\"Array\",test:Array.isArray},{name:\"Date\",test:function(t){return t instanceof Date}},{name:\"RegExp\",test:function(t){return t instanceof RegExp}},{name:\"Object\",test:o},{name:\"null\",test:function(t){return null===t}},{name:\"undefined\",test:function(t){return void 0===t}}],f={name:\"any\",test:t,isAny:!0},h=0,p={createCount:0};function d(t){var e=s.get(t);if(e)return e;var r,n,i='Unknown type \"'+t+'\"',o=t.toLowerCase(),u=a(c);try{for(u.s();!(n=u.n()).done;)if((r=n.value).toLowerCase()===o){i+='. Did you mean \"'+r+'\" ?';break}}catch(t){u.e(t)}finally{u.f()}throw new TypeError(i)}function m(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"any\",r=e?d(e).index:c.length,n=[],i=0;i<t.length;++i){if(!t[i]||\"string\"!=typeof t[i].name||\"function\"!=typeof t[i].test)throw new TypeError(\"Object with properties {name: string, test: function} expected\");var o=t[i].name;if(s.has(o))throw new TypeError('Duplicate type name \"'+o+'\"');n.push(o),s.set(o,{name:o,test:t[i].test,isAny:t[i].isAny,index:r+i,conversionsTo:[]})}var a=c.slice(r);c=c.slice(0,r).concat(n).concat(a);for(var u=r+n.length;u<c.length;++u)s.get(c[u]).index=u}function y(){s=new Map,c=[],h=0,m([f],!1)}function g(t){var e=c.filter((function(e){var r=s.get(e);return!r.isAny&&r.test(t)}));return e.length?e:[\"any\"]}function b(t){return t&&\"function\"==typeof t&&\"_typedFunctionData\"in t}function v(t,e,r){if(!b(t))throw new TypeError(n);var i=r&&r.exact,o=E(Array.isArray(e)?e.join(\",\"):e),s=w(o);if(!i||s in t.signatures){var u=t._typedFunctionData.signatureMap.get(s);if(u)return u}var c,l,f,h=o.length;if(i)for(l in c=[],t.signatures)c.push(t._typedFunctionData.signatureMap.get(l));else c=t._typedFunctionData.signatures;for(var p=0;p<h;++p){var d,m=o[p],y=[],g=void 0,v=a(c);try{var _=function(){var t=D((g=d.value).params,p);if(!t||m.restParam&&!t.restParam)return 0;if(!t.hasAny){var e=k(t);if(m.types.some((function(t){return!e.has(t.name)})))return 0}y.push(g)};for(v.s();!(d=v.n()).done;)_()}catch(t){v.e(t)}finally{v.f()}if(0===(c=y).length)break}var x,S=a(c);try{for(S.s();!(x=S.n()).done;)if((f=x.value).params.length<=h)return f}catch(t){S.e(t)}finally{S.f()}throw new TypeError(\"Signature not found (signature: \"+(t.name||\"unnamed\")+\"(\"+w(o,\", \")+\"))\")}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\",\";return t.map((function(t){return t.name})).join(e)}function _(t){var e=0===t.indexOf(\"...\"),r=(e?t.length>3?t.slice(3):\"any\":t).split(\"|\").map((function(t){return d(t.trim())})),n=!1,i=e?\"...\":\"\";return{types:r.map((function(t){return n=t.isAny||n,i+=t.name+\"|\",{name:t.name,typeIndex:t.index,test:t.test,isAny:t.isAny,conversion:null,conversionIndex:-1}})),name:i.slice(0,-1),hasAny:n,hasConversion:!1,restParam:e}}function x(t){var e=function(t){if(0===t.length)return[];var e=t.map(d);t.length>1&&e.sort((function(t,e){return t.index-e.index}));var r=e[0].conversionsTo;if(1===t.length)return r;r=r.concat([]);for(var n=new Set(t),i=1;i<e.length;++i){var o,s=void 0,u=a(e[i].conversionsTo);try{for(u.s();!(o=u.n()).done;)s=o.value,n.has(s.from)||(r.push(s),n.add(s.from))}catch(t){u.e(t)}finally{u.f()}}return r}(t.types.map((function(t){return t.name}))),r=t.hasAny,n=t.name,i=e.map((function(t){var e=d(t.from);return r=e.isAny||r,n+=\"|\"+t.from,{name:t.from,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:t,conversionIndex:t.index}}));return{types:t.types.concat(i),name:n,hasAny:r,hasConversion:i.length>0,restParam:t.restParam}}function k(t){return t.typeSet||(t.typeSet=new Set,t.types.forEach((function(e){return t.typeSet.add(e.name)}))),t.typeSet}function E(t){var e=[];if(\"string\"!=typeof t)throw new TypeError(\"Signatures must be strings\");var r=t.trim();if(\"\"===r)return e;for(var n=r.split(\",\"),i=0;i<n.length;++i){var o=_(n[i].trim());if(o.restParam&&i!==n.length-1)throw new SyntaxError('Unexpected rest parameter \"'+n[i]+'\": only allowed for the last parameter');if(0===o.types.length)return null;e.push(o)}return e}function S(t){var e=V(t);return!!e&&e.restParam}function T(e){if(e&&0!==e.types.length){if(1===e.types.length)return d(e.types[0].name).test;if(2===e.types.length){var r=d(e.types[0].name).test,n=d(e.types[1].name).test;return function(t){return r(t)||n(t)}}var i=e.types.map((function(t){return d(t.name).test}));return function(t){for(var e=0;e<i.length;e++)if(i[e](t))return!0;return!1}}return t}function A(t){var e,r,n;if(S(t)){var i=(e=q(t).map(T)).length,o=T(V(t));return function(t){for(var r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return function(t){for(var e=i;e<t.length;e++)if(!o(t[e]))return!1;return!0}(t)&&t.length>=i+1}}return 0===t.length?function(t){return 0===t.length}:1===t.length?(r=T(t[0]),function(t){return r(t[0])&&1===t.length}):2===t.length?(r=T(t[0]),n=T(t[1]),function(t){return r(t[0])&&n(t[1])&&2===t.length}):(e=t.map(T),function(t){for(var r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return t.length===e.length})}function D(t,e){return e<t.length?t[e]:S(t)?V(t):null}function O(t,e){var r=D(t,e);return r?k(r):new Set}function I(t){return null===t.conversion||void 0===t.conversion}function P(t,e){var r=new Set;return t.forEach((function(t){var n,i,o=a(O(t.params,e));try{for(o.s();!(i=o.n()).done;)n=i.value,r.add(n)}catch(t){o.e(t)}finally{o.f()}})),r.has(\"any\")?[\"any\"]:Array.from(r)}function C(t,e,r){var n,i,o,a,s=t||\"unnamed\",u=r,c=function(){var t=[];if(u.forEach((function(r){var n=T(D(r.params,o));(o<r.params.length||S(r.params))&&n(e[o])&&t.push(r)})),0===t.length){if((i=P(u,o)).length>0){var r=g(e[o]);return(n=new TypeError(\"Unexpected type of argument in function \"+s+\" (expected: \"+i.join(\" or \")+\", actual: \"+r.join(\" | \")+\", index: \"+o+\")\")).data={category:\"wrongType\",fn:s,index:o,actual:r,expected:i},{v:n}}}else u=t};for(o=0;o<e.length;o++)if(a=c())return a.v;var l=u.map((function(t){return S(t.params)?1/0:t.params.length}));if(e.length<Math.min.apply(null,l))return i=P(u,o),(n=new TypeError(\"Too few arguments in function \"+s+\" (expected: \"+i.join(\" or \")+\", index: \"+e.length+\")\")).data={category:\"tooFewArgs\",fn:s,index:e.length,expected:i},n;var f=Math.max.apply(null,l);if(e.length>f)return(n=new TypeError(\"Too many arguments in function \"+s+\" (expected: \"+f+\", actual: \"+e.length+\")\")).data={category:\"tooManyArgs\",fn:s,index:e.length,expectedLength:f},n;for(var h=[],p=0;p<e.length;++p)h.push(g(e[p]).join(\"|\"));return(n=new TypeError('Arguments of type \"'+h.join(\", \")+'\" do not match any of the defined signatures of function '+s+\".\")).data={category:\"mismatch\",actual:h},n}function L(t){for(var e=c.length+1,r=0;r<t.types.length;r++)I(t.types[r])&&(e=Math.min(e,t.types[r].typeIndex));return e}function M(t){for(var e=h+1,r=0;r<t.types.length;r++)I(t.types[r])||(e=Math.min(e,t.types[r].conversionIndex));return e}function F(t,e){if(t.hasAny){if(!e.hasAny)return 1}else if(e.hasAny)return-1;if(t.restParam){if(!e.restParam)return 1}else if(e.restParam)return-1;if(t.hasConversion){if(!e.hasConversion)return 1}else if(e.hasConversion)return-1;var r=L(t)-L(e);if(r<0)return-1;if(r>0)return 1;var n=M(t)-M(e);return n<0?-1:n>0?1:0}function B(t,e){var r=t.params,n=e.params,i=V(r),o=V(n),s=S(r),u=S(n);if(s&&i.hasAny){if(!u||!o.hasAny)return 1}else if(u&&o.hasAny)return-1;var c,l,f=0,h=0,p=a(r);try{for(p.s();!(l=p.n()).done;)(c=l.value).hasAny&&++f,c.hasConversion&&++h}catch(t){p.e(t)}finally{p.f()}var d,m=0,y=0,g=a(n);try{for(g.s();!(d=g.n()).done;)(c=d.value).hasAny&&++m,c.hasConversion&&++y}catch(t){g.e(t)}finally{g.f()}if(f!==m)return f-m;if(s&&i.hasConversion){if(!u||!o.hasConversion)return 1}else if(u&&o.hasConversion)return-1;if(h!==y)return h-y;if(s){if(!u)return 1}else if(u)return-1;var b=(r.length-n.length)*(s?-1:1);if(0!==b)return b;for(var v,w=[],_=0,x=0;x<r.length;++x){var k=F(r[x],n[x]);w.push(k),_+=k}if(0!==_)return _;for(var E=0,T=w;E<T.length;E++)if(0!==(v=T[E]))return v;return 0}function j(t,e){var r=e;if(t.some((function(t){return t.hasConversion}))){var n=S(t),i=t.map(N);r=function(){for(var t=[],r=n?arguments.length-1:arguments.length,o=0;o<r;o++)t[o]=i[o](arguments[o]);return n&&(t[r]=arguments[r].map(i[r])),e.apply(this,t)}}var o=r;if(S(t)){var a=t.length-1;o=function(){return r.apply(this,W(arguments,0,a).concat([W(arguments,a)]))}}return o}function N(t){var e,r,n,i,o=[],a=[];switch(t.types.forEach((function(t){t.conversion&&(o.push(d(t.conversion.from).test),a.push(t.conversion.convert))})),a.length){case 0:return function(t){return t};case 1:return e=o[0],n=a[0],function(t){return e(t)?n(t):t};case 2:return e=o[0],r=o[1],n=a[0],i=a[1],function(t){return e(t)?n(t):r(t)?i(t):t};default:return function(t){for(var e=0;e<a.length;e++)if(o[e](t))return a[e](t);return t}}}function R(t){return function t(e,r,n){if(r<e.length){var i=e[r],o=[];if(i.restParam){var a=i.types.filter(I);a.length<i.types.length&&o.push({types:a,name:\"...\"+a.map((function(t){return t.name})).join(\"|\"),hasAny:a.some((function(t){return t.isAny})),hasConversion:!1,restParam:!0}),o.push(i)}else o=i.types.map((function(t){return{types:[t],name:t.name,hasAny:t.isAny,hasConversion:t.conversion,restParam:!1}}));return s=o,u=function(i){return t(e,r+1,n.concat([i]))},Array.prototype.concat.apply([],s.map(u))}return[n];var s,u}(t,0,[])}function z(t,e,r){var n,i,o=[],s=a(t);try{for(s.s();!(i=s.n()).done;){var u=r[n=i.value];if(\"number\"!=typeof u)throw new TypeError('No definition for referenced signature \"'+n+'\"');if(\"function\"!=typeof(u=e[u]))return!1;o.push(u)}}catch(t){s.e(t)}finally{s.f()}return o}function U(t,e,r){for(var n=function(t){return t.map((function(t){return K(t)?Y(t.referToSelf.callback):X(t)?Z(t.referTo.references,t.referTo.callback):t}))}(t),i=new Array(n.length).fill(!1),o=!0;o;){o=!1;for(var a=!0,s=0;s<n.length;++s)if(!i[s]){var u=n[s];if(K(u))n[s]=u.referToSelf.callback(r),n[s].referToSelf=u.referToSelf,i[s]=!0,a=!1;else if(X(u)){var c=z(u.referTo.references,n,e);c?(n[s]=u.referTo.callback.apply(this,c),n[s].referTo=u.referTo,i[s]=!0,a=!1):o=!0}}if(a&&o)throw new SyntaxError(\"Circular reference detected in resolving typed.referTo\")}return n}function G(t,n){if(p.createCount++,0===Object.keys(n).length)throw new SyntaxError(\"No signatures provided\");p.warnAgainstDeprecatedThis&&function(t){var e=/\\bthis(\\(|\\.signatures\\b)/;Object.keys(t).forEach((function(r){var n=t[r];if(e.test(n.toString()))throw new SyntaxError(\"Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.\")}))}(n);var i,o=[],s=[],u={},c=[],l=function(){if(!Object.prototype.hasOwnProperty.call(n,i))return 0;var t=E(i);if(!t)return 0;o.forEach((function(e){if(function(t,e){for(var r=Math.max(t.length,e.length),n=0;n<r;n++){var i,o=O(t,n),s=!1,u=void 0,c=a(O(e,n));try{for(c.s();!(i=c.n()).done;)if(u=i.value,o.has(u)){s=!0;break}}catch(t){c.e(t)}finally{c.f()}if(!s)return!1}var l=t.length,f=e.length,h=S(t),p=S(e);return h?p?l===f:f>=l:p?l>=f:l===f}(e,t))throw new TypeError('Conflicting signatures \"'+w(e)+'\" and \"'+w(t)+'\".')})),o.push(t);var e=s.length;s.push(n[i]);var r,l,f=a(R(t.map(x)));try{for(f.s();!(l=f.n()).done;){var h=w(r=l.value);c.push({params:r,name:h,fn:e}),r.every((function(t){return!t.hasConversion}))&&(u[h]=e)}}catch(t){f.e(t)}finally{f.f()}};for(i in n)l();c.sort(B);var f,h=U(s,u,pt);for(f in u)Object.prototype.hasOwnProperty.call(u,f)&&(u[f]=h[u[f]]);for(var d=[],m=new Map,y=0,g=c;y<g.length;y++)f=g[y],m.has(f.name)||(f.fn=h[f.fn],d.push(f),m.set(f.name,f));for(var b=d[0]&&d[0].params.length<=2&&!S(d[0].params),v=d[1]&&d[1].params.length<=2&&!S(d[1].params),_=d[2]&&d[2].params.length<=2&&!S(d[2].params),k=d[3]&&d[3].params.length<=2&&!S(d[3].params),D=d[4]&&d[4].params.length<=2&&!S(d[4].params),I=d[5]&&d[5].params.length<=2&&!S(d[5].params),P=b&&v&&_&&k&&D&&I,C=0;C<d.length;++C)d[C].test=A(d[C].params);for(var L=b?T(d[0].params[0]):e,M=v?T(d[1].params[0]):e,F=_?T(d[2].params[0]):e,N=k?T(d[3].params[0]):e,z=D?T(d[4].params[0]):e,G=I?T(d[5].params[0]):e,H=b?T(d[0].params[1]):e,q=v?T(d[1].params[1]):e,V=_?T(d[2].params[1]):e,W=k?T(d[3].params[1]):e,Z=D?T(d[4].params[1]):e,Y=I?T(d[5].params[1]):e,X=0;X<d.length;++X)d[X].implementation=j(d[X].params,d[X].fn);var K=b?d[0].implementation:r,J=v?d[1].implementation:r,$=_?d[2].implementation:r,Q=k?d[3].implementation:r,tt=D?d[4].implementation:r,et=I?d[5].implementation:r,rt=b?d[0].params.length:-1,nt=v?d[1].params.length:-1,it=_?d[2].params.length:-1,ot=k?d[3].params.length:-1,at=D?d[4].params.length:-1,st=I?d[5].params.length:-1,ut=P?6:0,ct=d.length,lt=d.map((function(t){return t.test})),ft=d.map((function(t){return t.implementation})),ht=function(){for(var e=ut;e<ct;e++)if(lt[e](arguments))return ft[e].apply(this,arguments);return p.onMismatch(t,arguments,d)};function pt(t,e){return arguments.length===rt&&L(t)&&H(e)?K.apply(this,arguments):arguments.length===nt&&M(t)&&q(e)?J.apply(this,arguments):arguments.length===it&&F(t)&&V(e)?$.apply(this,arguments):arguments.length===ot&&N(t)&&W(e)?Q.apply(this,arguments):arguments.length===at&&z(t)&&Z(e)?tt.apply(this,arguments):arguments.length===st&&G(t)&&Y(e)?et.apply(this,arguments):ht.apply(this,arguments)}try{Object.defineProperty(pt,\"name\",{value:t})}catch(t){}return pt.signatures=u,pt._typedFunctionData={signatures:d,signatureMap:m},pt}function H(t,e,r){throw C(t,e,r)}function q(t){return W(t,0,t.length-1)}function V(t){return t[t.length-1]}function W(t,e,r){return Array.prototype.slice.call(t,e,r)}function Z(t,e){return{referTo:{references:t,callback:e}}}function Y(t){if(\"function\"!=typeof t)throw new TypeError(\"Callback function expected as first argument\");return{referToSelf:{callback:t}}}function X(t){return t&&\"object\"===u(t.referTo)&&Array.isArray(t.referTo.references)&&\"function\"==typeof t.referTo.callback}function K(t){return t&&\"object\"===u(t.referToSelf)&&\"function\"==typeof t.referToSelf.callback}function J(t,e){if(!t)return e;if(e&&e!==t){var r=new Error(\"Function names do not match (expected: \"+t+\", actual: \"+e+\")\");throw r.data={actual:e,expected:t},r}return t}function $(t){var e;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(b(t[r])||\"string\"==typeof t[r].signature)&&(e=J(e,t[r].name));return e}function Q(t,e){var r;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(r in t&&e[r]!==t[r]){var n=new Error('Signature \"'+r+'\" is defined twice');throw n.data={signature:r,sourceFunction:e[r],destFunction:t[r]},n}t[r]=e[r]}}y(),m(l);var tt=p;function et(t){if(!t||\"string\"!=typeof t.from||\"string\"!=typeof t.to||\"function\"!=typeof t.convert)throw new TypeError(\"Object with properties {from: string, to: string, convert: function} expected\");if(t.to===t.from)throw new SyntaxError('Illegal to define conversion from \"'+t.from+'\" to itself.')}return p=function(t){for(var e=\"string\"==typeof t,r=e?t:\"\",n={},i=e?1:0;i<arguments.length;++i){var a=arguments[i],s={},u=void 0;if(\"function\"==typeof a?(u=a.name,\"string\"==typeof a.signature?s[a.signature]=a:b(a)&&(s=a.signatures)):o(a)&&(s=a,e||(u=$(a))),0===Object.keys(s).length){var c=new TypeError(\"Argument to 'typed' at index \"+i+\" is not a (typed) function, nor an object with signatures as keys and functions as values.\");throw c.data={index:i,argument:a},c}e||(r=J(r,u)),Q(n,s)}return G(r||\"\",n)},p.create=i,p.createCount=tt.createCount,p.onMismatch=H,p.throwMismatchError=H,p.createError=C,p.clear=y,p.clearConversions=function(){var t,e,r=a(c);try{for(r.s();!(e=r.n()).done;)t=e.value,s.get(t).conversionsTo=[]}catch(t){r.e(t)}finally{r.f()}h=0},p.addTypes=m,p._findType=d,p.referTo=function(){var t=q(arguments).map((function(t){return w(E(t))})),e=V(arguments);if(\"function\"!=typeof e)throw new TypeError(\"Callback function expected as last argument\");return Z(t,e)},p.referToSelf=Y,p.convert=function(t,e){var r=d(e);if(r.test(t))return t;var n=r.conversionsTo;if(0===n.length)throw new Error(\"There are no conversions to \"+e+\" defined.\");for(var i=0;i<n.length;i++)if(d(n[i].from).test(t))return n[i].convert(t);throw new Error(\"Cannot convert \"+t+\" to \"+e)},p.findSignature=v,p.find=function(t,e,r){return v(t,e,r).implementation},p.isTypedFunction=b,p.warnAgainstDeprecatedThis=!0,p.addType=function(t,e){var r=\"any\";!1!==e&&s.has(\"Object\")&&(r=\"Object\"),p.addTypes([t],r)},p.addConversion=function(t){et(t);var e=d(t.to);if(!e.conversionsTo.every((function(e){return e.from!==t.from})))throw new Error('There is already a conversion from \"'+t.from+'\" to \"'+e.name+'\"');e.conversionsTo.push({from:t.from,convert:t.convert,index:h++})},p.addConversions=function(t){t.forEach(p.addConversion)},p.removeConversion=function(t){et(t);var e=d(t.to),r=function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return t[r]}(e.conversionsTo,(function(e){return e.from===t.from}));if(!r)throw new Error(\"Attempt to remove nonexistent conversion from \"+t.from+\" to \"+t.to);if(r.convert!==t.convert)throw new Error(\"Conversion to remove does not match existing conversion\");var n=e.conversionsTo.indexOf(r);e.conversionsTo.splice(n,1)},p.resolve=function(t,e){if(!b(t))throw new TypeError(n);for(var r=t._typedFunctionData.signatures,i=0;i<r.length;++i)if(r[i].test(e))return r[i];return null},p}();return i},\"object\"===u(e)&&void 0!==t?t.exports=o():void 0===(i=\"function\"==typeof(n=o)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){\"use strict\";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){for(var r=0,n=0;n<e.length;n++)if(t.chars[e[n]]){var i=t.kernings[e[n]]&&t.kernings[e[n]][e[n+1]]?t.kernings[e[n]][e[n+1]]:0;r+=(t.chars[e[n]].xadvance||0)+i}return r}function a(t,e,r){var i=e.replace(/[\\r\\n]+/g,\" \\n\").split(\" \"),a=[],s=[],u=0;return i.forEach((function(e){var i=[].concat(n(s),[e]).join(\" \"),c=o(t,i);c<=r&&!e.includes(\"\\n\")?(c>u&&(u=c),s.push(e)):(a.push(s),s=[e.replace(\"\\n\",\"\")])})),a.push(s),{lines:a,longestLine:u}}function s(t,e,r){return a(t,e,r).lines.length*t.common.lineHeight}r.d(e,\"a\",(function(){return o})),r.d(e,\"c\",(function(){return a})),r.d(e,\"b\",(function(){return s}))},function(t,e,r){\"use strict\";var n=r(39),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=f;var o=Object.create(r(27));o.inherits=r(24);var a=r(70),s=r(52);o.inherits(f,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var l=u[c];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(t){if(!(this instanceof f))return new f(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once(\"end\",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(t){t.end()}Object.defineProperty(f.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),f.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return i})),r.d(e,\"c\",(function(){return o})),r.d(e,\"b\",(function(){return a}));var n={},i=function(t,e){n[t]=e},o=function(t){var e=t.split(\"/\").slice(-1),r=function(t){return Object.entries(n).find((function(e){return e[1].includes(t)}))||[]}(e[e.length-1].split(\".\").pop());return r[0]},a=function(t){return(n[t.toLowerCase()]||[])[0]}},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"AUTO\",(function(){return n})),r.d(e,\"HORIZONTAL_ALIGN_LEFT\",(function(){return i})),r.d(e,\"HORIZONTAL_ALIGN_CENTER\",(function(){return o})),r.d(e,\"HORIZONTAL_ALIGN_RIGHT\",(function(){return a})),r.d(e,\"VERTICAL_ALIGN_TOP\",(function(){return s})),r.d(e,\"VERTICAL_ALIGN_MIDDLE\",(function(){return u})),r.d(e,\"VERTICAL_ALIGN_BOTTOM\",(function(){return c})),r.d(e,\"BLEND_SOURCE_OVER\",(function(){return l})),r.d(e,\"BLEND_DESTINATION_OVER\",(function(){return f})),r.d(e,\"BLEND_MULTIPLY\",(function(){return h})),r.d(e,\"BLEND_ADD\",(function(){return p})),r.d(e,\"BLEND_SCREEN\",(function(){return d})),r.d(e,\"BLEND_OVERLAY\",(function(){return m})),r.d(e,\"BLEND_DARKEN\",(function(){return y})),r.d(e,\"BLEND_LIGHTEN\",(function(){return g})),r.d(e,\"BLEND_HARDLIGHT\",(function(){return b})),r.d(e,\"BLEND_DIFFERENCE\",(function(){return v})),r.d(e,\"BLEND_EXCLUSION\",(function(){return w})),r.d(e,\"EDGE_EXTEND\",(function(){return _})),r.d(e,\"EDGE_WRAP\",(function(){return x})),r.d(e,\"EDGE_CROP\",(function(){return k}));var n=-1,i=1,o=2,a=4,s=8,u=16,c=32,l=\"srcOver\",f=\"dstOver\",h=\"multiply\",p=\"add\",d=\"screen\",m=\"overlay\",y=\"darken\",g=\"lighten\",b=\"hardLight\",v=\"difference\",w=\"exclusion\",_=1,x=2,k=3},function(t,e,r){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(o){\"use strict\";var a,s,u,c=9e15,l=1e9,f=\"0123456789abcdef\",h=\"2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058\",p=\"3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789\",d={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-c,maxE:c,crypto:!1},m=!0,y=\"[DecimalError] \",g=y+\"Invalid argument: \",b=y+\"Precision limit exceeded\",v=y+\"crypto unavailable\",w=\"[object Decimal]\",_=Math.floor,x=Math.pow,k=/^0b([01]+(\\.[01]*)?|\\.[01]+)(p[+-]?\\d+)?$/i,E=/^0x([0-9a-f]+(\\.[0-9a-f]*)?|\\.[0-9a-f]+)(p[+-]?\\d+)?$/i,S=/^0o([0-7]+(\\.[0-7]*)?|\\.[0-7]+)(p[+-]?\\d+)?$/i,T=/^(\\d+(\\.\\d*)?|\\.\\d+)(e[+-]?\\d+)?$/i,A=1e7,D=7,O=h.length-1,I=p.length-1,P={toStringTag:w};function C(t){var e,r,n,i=t.length-1,o=\"\",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+\"\",(r=D-n.length)&&(o+=H(r)),o+=n;a=t[e],(r=D-(n=a+\"\").length)&&(o+=H(r))}else if(0===a)return\"0\";for(;a%10==0;)a/=10;return o+a}function L(t,e,r){if(t!==~~t||t<e||t>r)throw Error(g+t)}function M(t,e,r,n){var i,o,a,s;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=D,i=0):(i=Math.ceil((e+1)/D),e%=D),o=x(10,D-e),s=t[i]%o|0,null==n?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(t[i+1]/o/100|0)==x(10,e-2)-1||(s==o/2||0==s)&&!(t[i+1]/o/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),a=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>3&&s+1==o/2)&&(t[i+1]/o/1e3|0)==x(10,e-3)-1,a}function F(t,e,r){for(var n,i,o=[0],a=0,s=t.length;a<s;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=f.indexOf(t.charAt(a++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}P.absoluteValue=P.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),j(t)},P.ceil=function(){return j(new this.constructor(this),this.e+1,2)},P.clampedTo=P.clamp=function(t,e){var r=this,n=r.constructor;if(t=new n(t),e=new n(e),!t.s||!e.s)return new n(NaN);if(t.gt(e))throw Error(g+e);return r.cmp(t)<0?t:r.cmp(e)>0?e:new n(r)},P.comparedTo=P.cmp=function(t){var e,r,n,i,o=this,a=o.d,s=(t=new o.constructor(t)).d,u=o.s,c=t.s;if(!a||!s)return u&&c?u!==c?u:a===s?0:!a^u<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?u:s[0]?-c:0;if(u!==c)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,r=(n=a.length)<(i=s.length)?n:i;e<r;++e)if(a[e]!==s[e])return a[e]>s[e]^u<0?1:-1;return n===i?0:n>i^u<0?1:-1},P.cosine=P.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+D,n.rounding=1,r=function(t,e){var r,n,i;if(e.isZero())return e;n=e.d.length,n<32?i=(1/Q(4,r=Math.ceil(n/3))).toString():(r=16,i=\"2.3283064365386962890625e-10\");t.precision+=r,e=$(t,1,e.times(i),new t(1));for(var o=r;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=r,e}(n,tt(n,r)),n.precision=t,n.rounding=e,j(2==u||3==u?r.neg():r,t,e,!0)):new n(1):new n(NaN)},P.cubeRoot=P.cbrt=function(){var t,e,r,n,i,o,a,s,u,c,l=this,f=l.constructor;if(!l.isFinite()||l.isZero())return new f(l);for(m=!1,(o=l.s*x(l.s*l,1/3))&&Math.abs(o)!=1/0?n=new f(o.toString()):(r=C(l.d),(o=((t=l.e)-r.length+1)%3)&&(r+=1==o||-2==o?\"0\":\"00\"),o=x(r,1/3),t=_((t+1)/3)-(t%3==(t<0?-1:2)),(n=new f(r=o==1/0?\"5e\"+t:(r=o.toExponential()).slice(0,r.indexOf(\"e\")+1)+t)).s=l.s),a=(t=f.precision)+3;;)if(c=(u=(s=n).times(s).times(s)).plus(l),n=B(c.plus(l).times(s),c.plus(u),a+2,1),C(s.d).slice(0,a)===(r=C(n.d)).slice(0,a)){if(\"9999\"!=(r=r.slice(a-3,a+1))&&(i||\"4999\"!=r)){+r&&(+r.slice(1)||\"5\"!=r.charAt(0))||(j(n,t+1,1),e=!n.times(n).times(n).eq(l));break}if(!i&&(j(s,t+1,0),s.times(s).times(s).eq(l))){n=s;break}a+=4,i=1}return m=!0,j(n,t,f.rounding,e)},P.decimalPlaces=P.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-_(this.e/D))*D,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},P.dividedBy=P.div=function(t){return B(this,new this.constructor(t))},P.dividedToIntegerBy=P.divToInt=function(t){var e=this.constructor;return j(B(this,new e(t),0,1,1),e.precision,e.rounding)},P.equals=P.eq=function(t){return 0===this.cmp(t)},P.floor=function(){return j(new this.constructor(this),this.e+1,3)},P.greaterThan=P.gt=function(t){return this.cmp(t)>0},P.greaterThanOrEqualTo=P.gte=function(t){var e=this.cmp(t);return 1==e||0===e},P.hyperbolicCosine=P.cosh=function(){var t,e,r,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/Q(4,t=Math.ceil(i/3))).toString():(t=16,e=\"2.3283064365386962890625e-10\"),o=$(a,1,o.times(e),new a(1),!0);for(var u,c=t,l=new a(8);c--;)u=o.times(o),o=s.minus(u.times(l.minus(u.times(l))));return j(o,a.precision=r,a.rounding=n,!0)},P.hyperbolicSine=P.sinh=function(){var t,e,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,r=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=$(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=$(o,2,i=i.times(1/Q(5,t)),i,!0);for(var a,s=new o(5),u=new o(16),c=new o(20);t--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(c))))}return o.precision=e,o.rounding=r,j(i,e,r,!0)},P.hyperbolicTangent=P.tanh=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+7,n.rounding=1,B(r.sinh(),r.cosh(),n.precision=t,n.rounding=e)):new n(r.s)},P.inverseCosine=P.acos=function(){var t,e=this,r=e.constructor,n=e.abs().cmp(1),i=r.precision,o=r.rounding;return-1!==n?0===n?e.isNeg()?U(r,i,o):new r(0):new r(NaN):e.isZero()?U(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,e=e.asin(),t=U(r,i+4,o).times(.5),r.precision=i,r.rounding=o,t.minus(e))},P.inverseHyperbolicCosine=P.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,m=!1,r=r.times(r).minus(1).sqrt().plus(r),m=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},P.inverseHyperbolicSine=P.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,m=!1,r=r.times(r).plus(1).sqrt().plus(r),m=!0,n.precision=t,n.rounding=e,r.ln())},P.inverseHyperbolicTangent=P.atanh=function(){var t,e,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,n=i.sd(),Math.max(n,t)<2*-i.e-1?j(new o(i),t,e,!0):(o.precision=r=n-i.e,i=B(i.plus(1),new o(1).minus(i),r+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},P.inverseSine=P.asin=function(){var t,e,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==e?0===e?((t=U(o,r+4,n).times(.5)).s=i.s,t):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))},P.inverseTangent=P.atan=function(){var t,e,r,n,i,o,a,s,u,c=this,l=c.constructor,f=l.precision,h=l.rounding;if(c.isFinite()){if(c.isZero())return new l(c);if(c.abs().eq(1)&&f+4<=I)return(a=U(l,f+4,h).times(.25)).s=c.s,a}else{if(!c.s)return new l(NaN);if(f+4<=I)return(a=U(l,f+4,h).times(.5)).s=c.s,a}for(l.precision=s=f+10,l.rounding=1,t=r=Math.min(28,s/D+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(m=!1,e=Math.ceil(s/D),n=1,u=c.times(c),a=new l(c),i=c;-1!==t;)if(i=i.times(u),o=a.minus(i.div(n+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(n+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return r&&(a=a.times(2<<r-1)),m=!0,j(a,l.precision=f,l.rounding=h,!0)},P.isFinite=function(){return!!this.d},P.isInteger=P.isInt=function(){return!!this.d&&_(this.e/D)>this.d.length-2},P.isNaN=function(){return!this.s},P.isNegative=P.isNeg=function(){return this.s<0},P.isPositive=P.isPos=function(){return this.s>0},P.isZero=function(){return!!this.d&&0===this.d[0]},P.lessThan=P.lt=function(t){return this.cmp(t)<0},P.lessThanOrEqualTo=P.lte=function(t){return this.cmp(t)<1},P.logarithm=P.log=function(t){var e,r,n,i,o,a,s,u,c=this,l=c.constructor,f=l.precision,h=l.rounding;if(null==t)t=new l(10),e=!0;else{if(r=(t=new l(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new l(NaN);e=t.eq(10)}if(r=c.d,c.s<0||!r||!r[0]||c.eq(1))return new l(r&&!r[0]?-1/0:1!=c.s?NaN:r?0:1/0);if(e)if(r.length>1)o=!0;else{for(i=r[0];i%10==0;)i/=10;o=1!==i}if(m=!1,a=Y(c,s=f+5),n=e?z(l,s+10):Y(t,s),M((u=B(a,n,s,1)).d,i=f,h))do{if(a=Y(c,s+=10),n=e?z(l,s+10):Y(t,s),u=B(a,n,s,1),!o){+C(u.d).slice(i+1,i+15)+1==1e14&&(u=j(u,f+1,0));break}}while(M(u.d,i+=10,h));return m=!0,j(u,f,h)},P.minus=P.sub=function(t){var e,r,n,i,o,a,s,u,c,l,f,h,p=this,d=p.constructor;if(t=new d(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new d(t.d||p.s!==t.s?p:NaN):t=new d(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(c=p.d,h=t.d,s=d.precision,u=d.rounding,!c[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!c[0])return new d(3===u?-0:0);t=new d(p)}return m?j(t,s,u):t}if(r=_(t.e/D),l=_(p.e/D),c=c.slice(),o=l-r){for((f=o<0)?(e=c,o=-o,a=h.length):(e=h,r=l,a=c.length),o>(n=Math.max(Math.ceil(s/D),a)+2)&&(o=n,e.length=1),e.reverse(),n=o;n--;)e.push(0);e.reverse()}else{for((f=(n=c.length)<(a=h.length))&&(a=n),n=0;n<a;n++)if(c[n]!=h[n]){f=c[n]<h[n];break}o=0}for(f&&(e=c,c=h,h=e,t.s=-t.s),a=c.length,n=h.length-a;n>0;--n)c[a++]=0;for(n=h.length;n>o;){if(c[--n]<h[n]){for(i=n;i&&0===c[--i];)c[i]=A-1;--c[i],c[n]+=A}c[n]-=h[n]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=R(c,r),m?j(t,s,u):t):new d(3===u?-0:0)},P.modulo=P.mod=function(t){var e,r=this,n=r.constructor;return t=new n(t),!r.d||!t.s||t.d&&!t.d[0]?new n(NaN):!t.d||r.d&&!r.d[0]?j(new n(r),n.precision,n.rounding):(m=!1,9==n.modulo?(e=B(r,t.abs(),0,3,1)).s*=t.s:e=B(r,t,0,n.modulo,1),e=e.times(t),m=!0,r.minus(e))},P.naturalExponential=P.exp=function(){return Z(this)},P.naturalLogarithm=P.ln=function(){return Y(this)},P.negated=P.neg=function(){var t=new this.constructor(this);return t.s=-t.s,j(t)},P.plus=P.add=function(t){var e,r,n,i,o,a,s,u,c,l,f=this,h=f.constructor;if(t=new h(t),!f.d||!t.d)return f.s&&t.s?f.d||(t=new h(t.d||f.s===t.s?f:NaN)):t=new h(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.minus(t);if(c=f.d,l=t.d,s=h.precision,u=h.rounding,!c[0]||!l[0])return l[0]||(t=new h(f)),m?j(t,s,u):t;if(o=_(f.e/D),n=_(t.e/D),c=c.slice(),i=o-n){for(i<0?(r=c,i=-i,a=l.length):(r=l,n=o,a=c.length),i>(a=(o=Math.ceil(s/D))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=c.length)-(i=l.length)<0&&(i=a,r=l,l=c,c=r),e=0;i;)e=(c[--i]=c[i]+l[i]+e)/A|0,c[i]%=A;for(e&&(c.unshift(e),++n),a=c.length;0==c[--a];)c.pop();return t.d=c,t.e=R(c,n),m?j(t,s,u):t},P.precision=P.sd=function(t){var e,r=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(g+t);return r.d?(e=G(r.d),t&&r.e+1>e&&(e=r.e+1)):e=NaN,e},P.round=function(){var t=this,e=t.constructor;return j(new e(t),t.e+1,e.rounding)},P.sine=P.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+D,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return e.isZero()?e:$(t,2,e,e);r=(r=1.4*Math.sqrt(n))>16?16:0|r,e=e.times(1/Q(5,r)),e=$(t,2,e,e);for(var i,o=new t(5),a=new t(16),s=new t(20);r--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(s))));return e}(n,tt(n,r)),n.precision=t,n.rounding=e,j(u>2?r.neg():r,t,e,!0)):new n(NaN)},P.squareRoot=P.sqrt=function(){var t,e,r,n,i,o,a=this,s=a.d,u=a.e,c=a.s,l=a.constructor;if(1!==c||!s||!s[0])return new l(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(m=!1,0==(c=Math.sqrt(+a))||c==1/0?(((e=C(s)).length+u)%2==0&&(e+=\"0\"),c=Math.sqrt(e),u=_((u+1)/2)-(u<0||u%2),n=new l(e=c==1/0?\"5e\"+u:(e=c.toExponential()).slice(0,e.indexOf(\"e\")+1)+u)):n=new l(c.toString()),r=(u=l.precision)+3;;)if(n=(o=n).plus(B(a,o,r+2,1)).times(.5),C(o.d).slice(0,r)===(e=C(n.d)).slice(0,r)){if(\"9999\"!=(e=e.slice(r-3,r+1))&&(i||\"4999\"!=e)){+e&&(+e.slice(1)||\"5\"!=e.charAt(0))||(j(n,u+1,1),t=!n.times(n).eq(a));break}if(!i&&(j(o,u+1,0),o.times(o).eq(a))){n=o;break}r+=4,i=1}return m=!0,j(n,u,l.rounding,t)},P.tangent=P.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=B(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,j(2==u||4==u?r.neg():r,t,e,!0)):new n(NaN)},P.times=P.mul=function(t){var e,r,n,i,o,a,s,u,c,l=this,f=l.constructor,h=l.d,p=(t=new f(t)).d;if(t.s*=l.s,!(h&&h[0]&&p&&p[0]))return new f(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*t.s:t.s/0);for(r=_(l.e/D)+_(t.e/D),(u=h.length)<(c=p.length)&&(o=h,h=p,p=o,a=u,u=c,c=a),o=[],n=a=u+c;n--;)o.push(0);for(n=c;--n>=0;){for(e=0,i=u+n;i>n;)s=o[i]+p[n]*h[i-n-1]+e,o[i--]=s%A|0,e=s/A|0;o[i]=(o[i]+e)%A|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=R(o,r),m?j(t,f.precision,f.rounding):t},P.toBinary=function(t,e){return et(this,2,t,e)},P.toDecimalPlaces=P.toDP=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(L(t,0,l),void 0===e?e=n.rounding:L(e,0,8),j(r,t+r.e+1,e))},P.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=N(n,!0):(L(t,0,l),void 0===e?e=i.rounding:L(e,0,8),r=N(n=j(new i(n),t+1,e),!0,t+1)),n.isNeg()&&!n.isZero()?\"-\"+r:r},P.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?r=N(i):(L(t,0,l),void 0===e?e=o.rounding:L(e,0,8),r=N(n=j(new o(i),t+i.e+1,e),!1,t+n.e+1)),i.isNeg()&&!i.isZero()?\"-\"+r:r},P.toFraction=function(t){var e,r,n,i,o,a,s,u,c,l,f,h,p=this,d=p.d,y=p.constructor;if(!d)return new y(p);if(c=r=new y(1),n=u=new y(0),a=(o=(e=new y(n)).e=G(d)-p.e-1)%D,e.d[0]=x(10,a<0?D+a:a),null==t)t=o>0?e:c;else{if(!(s=new y(t)).isInt()||s.lt(c))throw Error(g+s);t=s.gt(e)?o>0?e:c:s}for(m=!1,s=new y(C(d)),l=y.precision,y.precision=o=d.length*D*2;f=B(s,e,0,1,1),1!=(i=r.plus(f.times(n))).cmp(t);)r=n,n=i,i=c,c=u.plus(f.times(i)),u=i,i=e,e=s.minus(f.times(i)),s=i;return i=B(t.minus(r),n,0,1,1),u=u.plus(i.times(c)),r=r.plus(i.times(n)),u.s=c.s=p.s,h=B(c,n,o,1).minus(p).abs().cmp(B(u,r,o,1).minus(p).abs())<1?[c,n]:[u,r],y.precision=l,m=!0,h},P.toHexadecimal=P.toHex=function(t,e){return et(this,16,t,e)},P.toNearest=function(t,e){var r=this,n=r.constructor;if(r=new n(r),null==t){if(!r.d)return r;t=new n(1),e=n.rounding}else{if(t=new n(t),void 0===e?e=n.rounding:L(e,0,8),!r.d)return t.s?r:t;if(!t.d)return t.s&&(t.s=r.s),t}return t.d[0]?(m=!1,r=B(r,t,0,e,1).times(t),m=!0,j(r)):(t.s=r.s,r=t),r},P.toNumber=function(){return+this},P.toOctal=function(t,e){return et(this,8,t,e)},P.toPower=P.pow=function(t){var e,r,n,i,o,a,s=this,u=s.constructor,c=+(t=new u(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new u(x(+s,c));if((s=new u(s)).eq(1))return s;if(n=u.precision,o=u.rounding,t.eq(1))return j(s,n,o);if((e=_(t.e/D))>=t.d.length-1&&(r=c<0?-c:c)<=9007199254740991)return i=q(u,s,r,n),t.s<0?new u(1).div(i):j(i,n,o);if((a=s.s)<0){if(e<t.d.length-1)return new u(NaN);if(1&t.d[e]||(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(e=0!=(r=x(+s,c))&&isFinite(r)?new u(r+\"\").e:_(c*(Math.log(\"0.\"+C(s.d))/Math.LN10+s.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(m=!1,u.rounding=s.s=1,r=Math.min(12,(e+\"\").length),(i=Z(t.times(Y(s,n+r)),n)).d&&M((i=j(i,n+5,1)).d,n,o)&&(e=n+10,+C((i=j(Z(t.times(Y(s,e+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=j(i,n+1,0))),i.s=a,m=!0,u.rounding=o,j(i,n,o))},P.toPrecision=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=N(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(L(t,1,l),void 0===e?e=i.rounding:L(e,0,8),r=N(n=j(new i(n),t,e),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?\"-\"+r:r},P.toSignificantDigits=P.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(L(t,1,l),void 0===e?e=r.rounding:L(e,0,8)),j(new r(this),t,e)},P.toString=function(){var t=this,e=t.constructor,r=N(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?\"-\"+r:r},P.truncated=P.trunc=function(){return j(new this.constructor(this),this.e+1,1)},P.valueOf=P.toJSON=function(){var t=this,e=t.constructor,r=N(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?\"-\"+r:r};var B=function(){function t(t,e,r){var n,i=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+i,t[o]=n%r|0,i=n/r|0;return i&&t.unshift(i),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,a,u,c){var l,f,h,p,d,m,y,g,b,v,w,x,k,E,S,T,O,I,P,C,L=n.constructor,M=n.s==i.s?1:-1,F=n.d,B=i.d;if(!(F&&F[0]&&B&&B[0]))return new L(n.s&&i.s&&(F?!B||F[0]!=B[0]:B)?F&&0==F[0]||!B?0*M:M/0:NaN);for(c?(d=1,f=n.e-i.e):(c=A,d=D,f=_(n.e/d)-_(i.e/d)),P=B.length,O=F.length,v=(b=new L(M)).d=[],h=0;B[h]==(F[h]||0);h++);if(B[h]>(F[h]||0)&&f--,null==o?(E=o=L.precision,a=L.rounding):E=u?o+(n.e-i.e)+1:o,E<0)v.push(1),m=!0;else{if(E=E/d+2|0,h=0,1==P){for(p=0,B=B[0],E++;(h<O||p)&&E--;h++)S=p*c+(F[h]||0),v[h]=S/B|0,p=S%B|0;m=p||h<O}else{for((p=c/(B[0]+1)|0)>1&&(B=t(B,p,c),F=t(F,p,c),P=B.length,O=F.length),T=P,x=(w=F.slice(0,P)).length;x<P;)w[x++]=0;(C=B.slice()).unshift(0),I=B[0],B[1]>=c/2&&++I;do{p=0,(l=e(B,w,P,x))<0?(k=w[0],P!=x&&(k=k*c+(w[1]||0)),(p=k/I|0)>1?(p>=c&&(p=c-1),1==(l=e(y=t(B,p,c),w,g=y.length,x=w.length))&&(p--,r(y,P<g?C:B,g,c))):(0==p&&(l=p=1),y=B.slice()),(g=y.length)<x&&y.unshift(0),r(w,y,x,c),-1==l&&(l=e(B,w,P,x=w.length))<1&&(p++,r(w,P<x?C:B,x,c)),x=w.length):0===l&&(p++,w=[0]),v[h++]=p,l&&w[0]?w[x++]=F[T]||0:(w=[F[T]],x=1)}while((T++<O||void 0!==w[0])&&E--);m=void 0!==w[0]}v[0]||v.shift()}if(1==d)b.e=f,s=m;else{for(h=1,p=v[0];p>=10;p/=10)h++;b.e=h+f*d-1,j(b,u?o+b.e+1:o,a,m)}return b}}();function j(t,e,r,n){var i,o,a,s,u,c,l,f,h,p=t.constructor;t:if(null!=e){if(!(f=t.d))return t;for(i=1,s=f[0];s>=10;s/=10)i++;if((o=e-i)<0)o+=D,a=e,u=(l=f[h=0])/x(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/D))>=(s=f.length)){if(!n)break t;for(;s++<=h;)f.push(0);l=u=0,i=1,a=(o%=D)-D+1}else{for(l=s=f[h],i=1;s>=10;s/=10)i++;u=(a=(o%=D)-D+i)<0?0:l/x(10,i-a-1)%10|0}if(n=n||e<0||void 0!==f[h+1]||(a<0?l:l%x(10,i-a-1)),c=r<4?(u||n)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?l/x(10,i-a):0:f[h-1])%10&1||r==(t.s<0?8:7)),e<1||!f[0])return f.length=0,c?(e-=t.e+1,f[0]=x(10,(D-e%D)%D),t.e=-e||0):f[0]=t.e=0,t;if(0==o?(f.length=h,s=1,h--):(f.length=h+1,s=x(10,D-o),f[h]=a>0?(l/x(10,i-a)%x(10,a)|0)*s:0),c)for(;;){if(0==h){for(o=1,a=f[0];a>=10;a/=10)o++;for(a=f[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(t.e++,f[0]==A&&(f[0]=1));break}if(f[h]+=s,f[h]!=A)break;f[h--]=0,s=1}for(o=f.length;0===f[--o];)f.pop()}return m&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function N(t,e,r){if(!t.isFinite())return X(t);var n,i=t.e,o=C(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+\".\"+o.slice(1)+H(n):a>1&&(o=o.charAt(0)+\".\"+o.slice(1)),o=o+(t.e<0?\"e\":\"e+\")+t.e):i<0?(o=\"0.\"+H(-i-1)+o,r&&(n=r-a)>0&&(o+=H(n))):i>=a?(o+=H(i+1-a),r&&(n=r-i-1)>0&&(o=o+\".\"+H(n))):((n=i+1)<a&&(o=o.slice(0,n)+\".\"+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+=\".\"),o+=H(n))),o}function R(t,e){var r=t[0];for(e*=D;r>=10;r/=10)e++;return e}function z(t,e,r){if(e>O)throw m=!0,r&&(t.precision=r),Error(b);return j(new t(h),e,1,!0)}function U(t,e,r){if(e>I)throw Error(b);return j(new t(p),e,r,!0)}function G(t){var e=t.length-1,r=e*D+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];e>=10;e/=10)r++}return r}function H(t){for(var e=\"\";t--;)e+=\"0\";return e}function q(t,e,r,n){var i,o=new t(1),a=Math.ceil(n/D+4);for(m=!1;;){if(r%2&&rt((o=o.times(e)).d,a)&&(i=!0),0===(r=_(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}rt((e=e.times(e)).d,a)}return m=!0,o}function V(t){return 1&t.d[t.d.length-1]}function W(t,e,r){for(var n,i=new t(e[0]),o=0;++o<e.length;){if(!(n=new t(e[o])).s){i=n;break}i[r](n)&&(i=n)}return i}function Z(t,e){var r,n,i,o,a,s,u,c=0,l=0,f=0,h=t.constructor,p=h.rounding,d=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(m=!1,u=d):u=e,s=new h(.03125);t.e>-2;)t=t.times(s),f+=5;for(u+=n=Math.log(x(2,f))/Math.LN10*2+5|0,r=o=a=new h(1),h.precision=u;;){if(o=j(o.times(t),u,1),r=r.times(++l),C((s=a.plus(B(o,r,u,1))).d).slice(0,u)===C(a.d).slice(0,u)){for(i=f;i--;)a=j(a.times(a),u,1);if(null!=e)return h.precision=d,a;if(!(c<3&&M(a.d,u-n,p,c)))return j(a,h.precision=d,p,m=!0);h.precision=u+=10,r=o=s=new h(1),l=0,c++}a=s}}function Y(t,e){var r,n,i,o,a,s,u,c,l,f,h,p=1,d=t,y=d.d,g=d.constructor,b=g.rounding,v=g.precision;if(d.s<0||!y||!y[0]||!d.e&&1==y[0]&&1==y.length)return new g(y&&!y[0]?-1/0:1!=d.s?NaN:y?0:d);if(null==e?(m=!1,l=v):l=e,g.precision=l+=10,n=(r=C(y)).charAt(0),!(Math.abs(o=d.e)<15e14))return c=z(g,l+2,v).times(o+\"\"),d=Y(new g(n+\".\"+r.slice(1)),l-10).plus(c),g.precision=v,null==e?j(d,v,b,m=!0):d;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=C((d=d.times(t)).d)).charAt(0),p++;for(o=d.e,n>1?(d=new g(\"0.\"+r),o++):d=new g(n+\".\"+r.slice(1)),f=d,u=a=d=B(d.minus(1),d.plus(1),l,1),h=j(d.times(d),l,1),i=3;;){if(a=j(a.times(h),l,1),C((c=u.plus(B(a,new g(i),l,1))).d).slice(0,l)===C(u.d).slice(0,l)){if(u=u.times(2),0!==o&&(u=u.plus(z(g,l+2,v).times(o+\"\"))),u=B(u,new g(p),l,1),null!=e)return g.precision=v,u;if(!M(u.d,l-10,b,s))return j(u,g.precision=v,b,m=!0);g.precision=l+=10,c=a=d=B(f.minus(1),f.plus(1),l,1),h=j(d.times(d),l,1),i=s=1}u=c,i+=2}}function X(t){return String(t.s*t.s/0)}function K(t,e){var r,n,i;for((r=e.indexOf(\".\"))>-1&&(e=e.replace(\".\",\"\")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(n,i)){if(i-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%D,r<0&&(n+=D),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=D;n<i;)t.d.push(+e.slice(n,n+=D));e=e.slice(n),n=D-e.length}else n-=i;for(;n--;)e+=\"0\";t.d.push(+e),m&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function J(t,e){var r,n,i,o,s,u,c,l,f;if(e.indexOf(\"_\")>-1){if(e=e.replace(/(\\d)_(?=\\d)/g,\"$1\"),T.test(e))return K(t,e)}else if(\"Infinity\"===e||\"NaN\"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(E.test(e))r=16,e=e.toLowerCase();else if(k.test(e))r=2;else{if(!S.test(e))throw Error(g+e);r=8}for((o=e.search(/p/i))>0?(c=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),s=(o=e.indexOf(\".\"))>=0,n=t.constructor,s&&(o=(u=(e=e.replace(\".\",\"\")).length)-o,i=q(n,new n(r),o,2*o)),o=f=(l=F(e,r,A)).length-1;0===l[o];--o)l.pop();return o<0?new n(0*t.s):(t.e=R(l,f),t.d=l,m=!1,s&&(t=B(t,i,4*u)),c&&(t=t.times(Math.abs(c)<54?x(2,c):a.pow(2,c))),m=!0,t)}function $(t,e,r,n,i){var o,a,s,u,c=t.precision,l=Math.ceil(c/D);for(m=!1,u=r.times(r),s=new t(n);;){if(a=B(s.times(u),new t(e++*e++),c,1),s=i?n.plus(a):n.minus(a),n=B(a.times(u),new t(e++*e++),c,1),void 0!==(a=s.plus(n)).d[l]){for(o=l;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=n,n=a,a=o}return m=!0,a.d.length=l+1,a}function Q(t,e){for(var r=t;--e;)r*=t;return r}function tt(t,e){var r,n=e.s<0,i=U(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return u=n?4:1,e;if((r=e.divToInt(i)).isZero())u=n?3:2;else{if((e=e.minus(r.times(i))).lte(o))return u=V(r)?n?2:3:n?4:1,e;u=V(r)?n?1:4:n?3:2}return e.minus(i).abs()}function et(t,e,r,n){var i,o,a,u,c,h,p,d,m,y=t.constructor,g=void 0!==r;if(g?(L(r,1,l),void 0===n?n=y.rounding:L(n,0,8)):(r=y.precision,n=y.rounding),t.isFinite()){for(g?(i=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):i=e,(a=(p=N(t)).indexOf(\".\"))>=0&&(p=p.replace(\".\",\"\"),(m=new y(1)).e=p.length-a,m.d=F(N(m),10,i),m.e=m.d.length),o=c=(d=F(p,10,i)).length;0==d[--c];)d.pop();if(d[0]){if(a<0?o--:((t=new y(t)).d=d,t.e=o,d=(t=B(t,m,r,n,0,i)).d,o=t.e,h=s),a=d[r],u=i/2,h=h||void 0!==d[r+1],h=n<4?(void 0!==a||h)&&(0===n||n===(t.s<0?3:2)):a>u||a===u&&(4===n||h||6===n&&1&d[r-1]||n===(t.s<0?8:7)),d.length=r,h)for(;++d[--r]>i-1;)d[r]=0,r||(++o,d.unshift(1));for(c=d.length;!d[c-1];--c);for(a=0,p=\"\";a<c;a++)p+=f.charAt(d[a]);if(g){if(c>1)if(16==e||8==e){for(a=16==e?4:3,--c;c%a;c++)p+=\"0\";for(c=(d=F(p,i,e)).length;!d[c-1];--c);for(a=1,p=\"1.\";a<c;a++)p+=f.charAt(d[a])}else p=p.charAt(0)+\".\"+p.slice(1);p=p+(o<0?\"p\":\"p+\")+o}else if(o<0){for(;++o;)p=\"0\"+p;p=\"0.\"+p}else if(++o>c)for(o-=c;o--;)p+=\"0\";else o<c&&(p=p.slice(0,o)+\".\"+p.slice(o))}else p=g?\"0p+0\":\"0\";p=(16==e?\"0x\":2==e?\"0b\":8==e?\"0o\":\"\")+p}else p=X(t);return t.s<0?\"-\"+p:p}function rt(t,e){if(t.length>e)return t.length=e,!0}function nt(t){return new this(t).abs()}function it(t){return new this(t).acos()}function ot(t){return new this(t).acosh()}function at(t,e){return new this(t).plus(e)}function st(t){return new this(t).asin()}function ut(t){return new this(t).asinh()}function ct(t){return new this(t).atan()}function lt(t){return new this(t).atanh()}function ft(t,e){t=new this(t),e=new this(e);var r,n=this.precision,i=this.rounding,o=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?U(this,n,i):new this(0)).s=t.s:!t.d||e.isZero()?(r=U(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,r=this.atan(B(t,e,o,1)),e=U(this,o,1),this.precision=n,this.rounding=i,r=t.s<0?r.minus(e):r.plus(e)):r=this.atan(B(t,e,o,1)):(r=U(this,o,1).times(e.s>0?.25:.75)).s=t.s:r=new this(NaN),r}function ht(t){return new this(t).cbrt()}function pt(t){return j(t=new this(t),t.e+1,2)}function dt(t,e,r){return new this(t).clamp(e,r)}function mt(t){if(!t||\"object\"!==i(t))throw Error(y+\"Object expected\");var e,r,n,o=!0===t.defaults,a=[\"precision\",1,l,\"rounding\",0,8,\"toExpNeg\",-c,0,\"toExpPos\",0,c,\"maxE\",0,c,\"minE\",-c,0,\"modulo\",0,9];for(e=0;e<a.length;e+=3)if(r=a[e],o&&(this[r]=d[r]),void 0!==(n=t[r])){if(!(_(n)===n&&n>=a[e+1]&&n<=a[e+2]))throw Error(g+r+\": \"+n);this[r]=n}if(r=\"crypto\",o&&(this[r]=d[r]),void 0!==(n=t[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(g+r+\": \"+n);if(n){if(\"undefined\"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(v);this[r]=!0}else this[r]=!1}return this}function yt(t){return new this(t).cos()}function gt(t){return new this(t).cosh()}function bt(t,e){return new this(t).div(e)}function vt(t){return new this(t).exp()}function wt(t){return j(t=new this(t),t.e+1,3)}function _t(){var t,e,r=new this(0);for(m=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return m=!0,new this(1/0);r=e}return m=!0,r.sqrt()}function xt(t){return t instanceof a||t&&t.toStringTag===w||!1}function kt(t){return new this(t).ln()}function Et(t,e){return new this(t).log(e)}function St(t){return new this(t).log(2)}function Tt(t){return new this(t).log(10)}function At(){return W(this,arguments,\"lt\")}function Dt(){return W(this,arguments,\"gt\")}function Ot(t,e){return new this(t).mod(e)}function It(t,e){return new this(t).mul(e)}function Pt(t,e){return new this(t).pow(e)}function Ct(t){var e,r,n,i,o=0,a=new this(1),s=[];if(void 0===t?t=this.precision:L(t,1,l),n=Math.ceil(t/D),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(v);for(e=crypto.randomBytes(n*=4);o<n;)(i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(s.push(i%1e7),o+=4);o=n/4}else for(;o<n;)s[o++]=1e7*Math.random()|0;for(n=s[--o],t%=D,n&&t&&(i=x(10,D-t),s[o]=(n/i|0)*i);0===s[o];o--)s.pop();if(o<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=D)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<D&&(r-=D-n)}return a.e=r,a.d=s,a}function Lt(t){return j(t=new this(t),t.e+1,this.rounding)}function Mt(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Ft(t){return new this(t).sin()}function Bt(t){return new this(t).sinh()}function jt(t){return new this(t).sqrt()}function Nt(t,e){return new this(t).sub(e)}function Rt(){var t=0,e=arguments,r=new this(e[t]);for(m=!1;r.s&&++t<e.length;)r=r.plus(e[t]);return m=!0,j(r,this.precision,this.rounding)}function zt(t){return new this(t).tan()}function Ut(t){return new this(t).tanh()}function Gt(t){return j(t=new this(t),t.e+1,1)}a=function t(e){var r,n,o;function a(t){var e,r,n,o=this;if(!(o instanceof a))return new a(t);if(o.constructor=a,xt(t))return o.s=t.s,void(m?!t.d||t.e>a.maxE?(o.e=NaN,o.d=null):t.e<a.minE?(o.e=0,o.d=[0]):(o.e=t.e,o.d=t.d.slice()):(o.e=t.e,o.d=t.d?t.d.slice():t.d));if(\"number\"===(n=i(t))){if(0===t)return o.s=1/t<0?-1:1,o.e=0,void(o.d=[0]);if(t<0?(t=-t,o.s=-1):o.s=1,t===~~t&&t<1e7){for(e=0,r=t;r>=10;r/=10)e++;return void(m?e>a.maxE?(o.e=NaN,o.d=null):e<a.minE?(o.e=0,o.d=[0]):(o.e=e,o.d=[t]):(o.e=e,o.d=[t]))}return 0*t!=0?(t||(o.s=NaN),o.e=NaN,void(o.d=null)):K(o,t.toString())}if(\"string\"!==n)throw Error(g+t);return 45===(r=t.charCodeAt(0))?(t=t.slice(1),o.s=-1):(43===r&&(t=t.slice(1)),o.s=1),T.test(t)?K(o,t):J(o,t)}if(a.prototype=P,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=mt,a.clone=t,a.isDecimal=xt,a.abs=nt,a.acos=it,a.acosh=ot,a.add=at,a.asin=st,a.asinh=ut,a.atan=ct,a.atanh=lt,a.atan2=ft,a.cbrt=ht,a.ceil=pt,a.clamp=dt,a.cos=yt,a.cosh=gt,a.div=bt,a.exp=vt,a.floor=wt,a.hypot=_t,a.ln=kt,a.log=Et,a.log10=Tt,a.log2=St,a.max=At,a.min=Dt,a.mod=Ot,a.mul=It,a.pow=Pt,a.random=Ct,a.round=Lt,a.sign=Mt,a.sin=Ft,a.sinh=Bt,a.sqrt=jt,a.sub=Nt,a.sum=Rt,a.tan=zt,a.tanh=Ut,a.trunc=Gt,void 0===e&&(e={}),e&&!0!==e.defaults)for(o=[\"precision\",\"rounding\",\"toExpNeg\",\"toExpPos\",\"maxE\",\"minE\",\"modulo\",\"crypto\"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return a.config(e),a}(d),a.prototype.constructor=a,a.default=a.Decimal=a,h=new a(h),p=new a(p),void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function t(e,n){\"use strict\";var i,o,a=/(^([+\\-]?(?:0|[1-9]\\d*)(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)?$|^0x[0-9a-f]+$|\\d+)/gi,s=/(^[ ]*|[ ]*$)/g,u=/(^([\\w ]+,?[\\w ]+)?[\\w ]+,?[\\w ]+\\d+:\\d+(:\\d+)?[\\w ]?|^\\d{1,4}[\\/\\-]\\d{1,4}[\\/\\-]\\d{1,4}|^\\w+, \\w+ \\d+, \\d{4})/,c=/^0x[0-9a-f]+$/i,l=/^0/,f=function(e){return t.insensitive&&(\"\"+e).toLowerCase()||\"\"+e},h=f(e).replace(s,\"\")||\"\",p=f(n).replace(s,\"\")||\"\",d=h.replace(a,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),m=p.replace(a,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),y=parseInt(h.match(c),16)||1!==d.length&&h.match(u)&&Date.parse(h),g=parseInt(p.match(c),16)||y&&p.match(u)&&Date.parse(p)||null;if(g){if(y<g)return-1;if(y>g)return 1}for(var b=0,v=Math.max(d.length,m.length);b<v;b++){if(i=!(d[b]||\"\").match(l)&&parseFloat(d[b])||d[b]||0,o=!(m[b]||\"\").match(l)&&parseFloat(m[b])||m[b]||0,isNaN(i)!==isNaN(o))return isNaN(i)?1:-1;if(r(i)!==r(o)&&(i+=\"\",o+=\"\"),i<o)return-1;if(i>o)return 1}return 0}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){\"use strict\";(function(t,n){r.d(e,\"a\",(function(){return W})),r.d(e,\"b\",(function(){return Z})),r.d(e,\"d\",(function(){return X}));var i=r(11),o=r.n(i),a=r(6),s=r.n(a),u=r(31),c=r.n(u),l=r(0),f=r(34),h=r.n(f),p=r(101),d=r.n(p),m=r(32),y=r.n(m),g=r(35),b=r(102),v=r(116),w=r(33),_=r(19),x=r(45),k=r(20);function E(t,e,r){return(e=D(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return T(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,D(n.key),n)}}function D(t){var e=function(t,e){if(\"object\"!=L(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=L(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==L(e)?e:e+\"\"}function O(t,e){if(e&&(\"object\"===L(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}function I(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(I=function(){return!!t})()}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}function C(t,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C(t,e)}function L(t){return L=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},L(t)}function M(t,e,r){return(e=function(t){var e=function(t,e){if(\"object\"!==L(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!==L(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"===L(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}for(var F=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_\",B=[NaN,NaN],j=2;j<65;j++){var N=h()(h.a.BIN,F.slice(0,j))(new Array(65).join(\"1\"));B.push(N.length)}function R(){}function z(t){return Object.prototype.toString.call(t).toLowerCase().indexOf(\"arraybuffer\")>-1}function U(e){for(var r=t.alloc(e.byteLength),n=new Uint8Array(e),i=0;i<r.length;++i)r[i]=n[i];return r}function G(e,r){Object(b.a)(e,(function(n,i){return n?r(n):\"object\"===L(i)&&t.isBuffer(i)?r(null,i):\"object\"===L(i)&&z(i)?r(null,U(i)):new Error(\"Could not load Buffer from <\".concat(e.url,\">\"))}))}var H,q={data:null,width:null,height:null},V=function(e){function r(){var e,n,i,a;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,r);for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];n=this,i=P(i=r),M(e=O(n,I()?Reflect.construct(i,a||[],P(n).constructor):i.apply(n,a)),\"bitmap\",q),M(e,\"_background\",0),M(e,\"_originalMime\",r.MIME_PNG),M(e,\"_exif\",null),M(e,\"_rgba\",!0),M(e,\"writeAsync\",(function(t){return Object(w.a)(e.write,e,t)})),M(e,\"getBase64Async\",(function(t){return Object(w.a)(e.getBase64,e,t)})),M(e,\"getBuffer\",x.a),M(e,\"getBufferAsync\",x.b),M(e,\"getPixelColour\",e.getPixelColor),M(e,\"setPixelColour\",e.setPixelColor);var f,h=e,p=R;function d(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];(n||{}).methodName=\"constructor\",setTimeout((function(){var t;n&&p===R?h.emitError(\"constructor\",n):n||h.emitMulti(\"constructor\",\"initialized\"),(t=p).call.apply(t,[h].concat(e))}),1)}if(z(u[0])&&(u[0]=U(u[0])),\"number\"==typeof u[0]&&\"number\"==typeof u[1]||parseInt(u[0],10)&&parseInt(u[1],10)){var m=parseInt(u[0],10),y=parseInt(u[1],10);if(p=u[2],\"number\"==typeof u[2]&&(e._background=u[2],p=u[3]),\"string\"==typeof u[2]&&(e._background=r.cssColorToHex(u[2]),p=u[3]),void 0===p&&(p=R),\"function\"!=typeof p)return O(e,l.d.call(e,\"cb must be a function\",d));e.bitmap={data:t.alloc(m*y*4),width:m,height:y};for(var g=0;g<e.bitmap.data.length;g+=4)e.bitmap.data.writeUInt32BE(e._background,g);d(null,e)}else if(\"object\"===L(u[0])&&u[0].url){if(\"function\"!=typeof(p=u[1]||R))return O(e,l.d.call(e,\"cb must be a function\",d));G(u[0],(function(t,r){if(t)return l.d.call(e,t,d);e.parseBitmap(r,u[0].url,d)}))}else if(u[0]instanceof r){var b=u[0];if(void 0===(p=u[1])&&(p=R),\"function\"!=typeof p)return O(e,l.d.call(e,\"cb must be a function\",d));e.bitmap={data:t.from(b.bitmap.data),width:b.bitmap.width,height:b.bitmap.height},e._quality=b._quality,e._deflateLevel=b._deflateLevel,e._deflateStrategy=b._deflateStrategy,e._filterType=b._filterType,e._rgba=b._rgba,e._background=b._background,e._originalMime=b._originalMime,d(null,e)}else if((f=u[0])&&\"object\"===L(f)&&\"number\"==typeof f.width&&\"number\"==typeof f.height&&(t.isBuffer(f.data)||f.data instanceof Uint8Array||\"function\"==typeof Uint8ClampedArray&&f.data instanceof Uint8ClampedArray)&&(f.data.length===f.width*f.height*4||f.data.length===f.width*f.height*3)){var v=u[0];p=u[1]||R;var _=v.width*v.height*4===v.data.length?t.from(v.data):function(e){if(e.length%3!=0)throw new Error(\"Buffer length is incorrect\");for(var r=t.allocUnsafe(e.length/3*4),n=0,i=0;i<e.length;i++)r[n]=e[i],(i+1)%3==0&&(r[++n]=255),n++;return r}(v.data);e.bitmap={data:_,width:v.width,height:v.height},d(null,e)}else if(\"string\"==typeof u[0]){var k=u[0];if(void 0===(p=u[1])&&(p=R),\"function\"!=typeof p)return O(e,l.d.call(e,\"cb must be a function\",d));!function(t,e){o.a&&\"function\"==typeof o.a.readFile&&!t.match(/^(http|ftp)s?:\\/\\/./)?o.a.readFile(t,e):G({url:t},e)}(k,(function(t,r){if(t)return l.d.call(e,t,d);e.parseBitmap(r,k,d)}))}else if(\"object\"===L(u[0])&&t.isBuffer(u[0])){var E=u[0];if(\"function\"!=typeof(p=u[1]))return O(e,l.d.call(e,\"cb must be a function\",d));e.parseBitmap(E,null,d)}else{\"function\"!=typeof(p=u[u.length-1])&&\"function\"!=typeof(p=u[u.length-2])&&(p=R);var S=r.__extraConstructors.find((function(t){return t.test.apply(t,u)}));if(!S)return O(e,l.d.call(e,\"No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.\",d));new Promise((function(t,r){var n;(n=S.run).call.apply(n,[e,t,r].concat(u))})).then((function(){return d(null,e)})).catch(d)}return e}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&C(t,e)}(r,e),n=r,i=[{key:\"parseBitmap\",value:function(t,e,r){x.c.call(this,t,null,r)}},{key:\"rgba\",value:function(t,e){return\"boolean\"!=typeof t?l.d.call(this,\"bool must be a boolean, true for RGBA or false for RGB\",e):(this._rgba=t,Object(l.a)(e)&&e.call(this,null,this),this)}},{key:\"emitMulti\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=Object.assign(r,{methodName:t,eventName:e}),this.emit(\"any\",r),t&&this.emit(t,r),this.emit(e,r)}},{key:\"emitError\",value:function(t,e){this.emitMulti(t,\"error\",e)}},{key:\"getHeight\",value:function(){return this.bitmap.height}},{key:\"getWidth\",value:function(){return this.bitmap.width}},{key:\"inspect\",value:function(){return\"<Jimp \"+(this.bitmap===q?\"pending...\":this.bitmap.width+\"x\"+this.bitmap.height)+\">\"}},{key:\"toString\",value:function(){return\"[object Jimp]\"}},{key:\"getMIME\",value:function(){return this._originalMime||r.MIME_PNG}},{key:\"getExtension\",value:function(){var t=this.getMIME();return _.b(t)}},{key:\"write\",value:function(t,e){var r=this;if(!o.a||!o.a.createWriteStream)throw new Error(\"Cant access the filesystem. You can use the getBase64 method.\");if(\"string\"!=typeof t)return l.d.call(this,\"path must be a string\",e);if(void 0===e&&(e=R),\"function\"!=typeof e)return l.d.call(this,\"cb must be a function\",e);var n=_.c(t)||this.getMIME(),i=s.a.parse(t);return i.dir&&o.a.mkdirSync(i.dir,{recursive:!0}),this.getBuffer(n,(function(n,i){if(n)return l.d.call(r,n,e);var a=o.a.createWriteStream(t);a.on(\"open\",(function(){a.write(i),a.end()})).on(\"error\",(function(t){return l.d.call(r,t,e)})),a.on(\"finish\",(function(){e.call(r,null,r)}))})),this}},{key:\"getBase64\",value:function(t,e){return t===r.AUTO&&(t=this.getMIME()),\"string\"!=typeof t?l.d.call(this,\"mime must be a string\",e):\"function\"!=typeof e?l.d.call(this,\"cb must be a function\",e):(this.getBuffer(t,(function(r,n){if(r)return l.d.call(this,r,e);var i=\"data:\"+t+\";base64,\"+n.toString(\"base64\");e.call(this,null,i)})),this)}},{key:\"hash\",value:function(t,e){if(\"function\"==typeof(t=t||64)&&(e=t,t=64),\"number\"!=typeof t)return l.d.call(this,\"base must be a number\",e);if(t<2||t>64)return l.d.call(this,\"base must be a number between 2 and 64\",e);var r=this.pHash();for(r=h()(h.a.BIN,F.slice(0,t))(r);r.length<B[t];)r=\"0\"+r;return Object(l.a)(e)&&e.call(this,null,r),r}},{key:\"pHash\",value:function(){var t=new g.a;return t.getHash(this)}},{key:\"distanceFromHash\",value:function(t){var e=new g.a,r=e.getHash(this);return e.distance(r,t)}},{key:\"getPixelIndex\",value:function(t,e,n,i){var o,a;if(\"function\"==typeof n&&void 0===i&&(i=n,n=null),n||(n=r.EDGE_EXTEND),\"number\"!=typeof t||\"number\"!=typeof e)return l.d.call(this,\"x and y must be numbers\",i);o=t=Math.round(t),a=e=Math.round(e),n===r.EDGE_EXTEND&&(t<0&&(o=0),t>=this.bitmap.width&&(o=this.bitmap.width-1),e<0&&(a=0),e>=this.bitmap.height&&(a=this.bitmap.height-1)),n===r.EDGE_WRAP&&(t<0&&(o=this.bitmap.width+t),t>=this.bitmap.width&&(o=t%this.bitmap.width),e<0&&(a=this.bitmap.height+e),e>=this.bitmap.height&&(a=e%this.bitmap.height));var s=this.bitmap.width*a+o<<2;return(o<0||o>=this.bitmap.width)&&(s=-1),(a<0||a>=this.bitmap.height)&&(s=-1),Object(l.a)(i)&&i.call(this,null,s),s}},{key:\"getPixelColor\",value:function(t,e,r){if(\"number\"!=typeof t||\"number\"!=typeof e)return l.d.call(this,\"x and y must be numbers\",r);var n=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(n);return Object(l.a)(r)&&r.call(this,null,i),i}},{key:\"setPixelColor\",value:function(t,e,r,n){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof r)return l.d.call(this,\"hex, x and y must be numbers\",n);var i=this.getPixelIndex(e,r);return this.bitmap.data.writeUInt32BE(t,i),Object(l.a)(n)&&n.call(this,null,this),this}},{key:\"hasAlpha\",value:function(){for(var t=this.bitmap,e=t.width,r=t.height,n=t.data,i=e*r<<2,o=3;o<i;o+=4)if(255!==n[o])return!0;return!1}},{key:\"scanIterator\",value:function(t,e,r,n){return\"number\"!=typeof t||\"number\"!=typeof e?l.d.call(this,\"x and y must be numbers\"):\"number\"!=typeof r||\"number\"!=typeof n?l.d.call(this,\"w and h must be numbers\"):Object(l.c)(this,t,e,r,n)}}],i&&A(n.prototype,i),a&&A(n,a),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,i,a}(c.a);function W(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V;Object.entries(t).forEach((function(t){var r=S(t,2),n=r[0],i=r[1];e[n]=i}))}function Z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V;Object.entries(t).forEach((function(t){var r=S(t,2),n=r[0],i=r[1];e.prototype[n]=i}))}function Y(t,e,r){var n=\"before-\"+e,i=e.replace(/e$/,\"\")+\"ed\";V.prototype[t]=function(){for(var e,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var u,c=a[r.length-1],l=this;\"function\"==typeof c?(e=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=r[0],a=r[1];o?l.emitError(t,o):l.emitMulti(t,i,E({},t,a)),c.apply(this,r)},a[a.length-1]=e):e=!1,this.emitMulti(t,n);try{u=r.apply(this,a),e||this.emitMulti(t,i,E({},t,u))}catch(e){e.methodName=t,this.emitError(t,e)}return u},V.prototype[t+\"Quiet\"]=r}function X(t,e){Y(t,\"change\",e)}(W(k),Z({composite:v.a}),V.__extraConstructors=[],V.appendConstructorOption=function(t,e,r){V.__extraConstructors.push({name:t,test:e,run:r})},V.read=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return new Promise((function(t,r){!function(t,e,r){if(I())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));r&&C(i,r.prototype)}(V,e.concat([function(e,n){e?r(e):t(n)}]))}))},V.create=V.read,V.rgbaToInt=function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof r||\"number\"!=typeof n)return l.d.call(this,\"r, g, b and a must be numbers\",i);if(t<0||t>255)return l.d.call(this,\"r must be between 0 and 255\",i);if((e<0||e>255)&&l.d.call(this,\"g must be between 0 and 255\",i),r<0||r>255)return l.d.call(this,\"b must be between 0 and 255\",i);if(n<0||n>255)return l.d.call(this,\"a must be between 0 and 255\",i);var o=255&t;return o<<=8,o|=255&e,o<<=8,o|=255&r,o<<=8,o|=255&n,o>>>=0,Object(l.a)(i)&&i.call(this,null,o),o},V.intToRGBA=function(t,e){if(\"number\"!=typeof t)return l.d.call(this,\"i must be a number\",e);var r={};return r.r=Math.floor(t/Math.pow(256,3)),r.g=Math.floor((t-r.r*Math.pow(256,3))/Math.pow(256,2)),r.b=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2))/Math.pow(256,1)),r.a=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2)-r.b*Math.pow(256,1))/Math.pow(256,0)),Object(l.a)(e)&&e.call(this,null,r),r},V.cssColorToHex=function(t){return\"number\"==typeof(t=t||0)?Number(t):parseInt(y()(t).toHex8(),16)},V.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},V.diff=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof V&&e instanceof V))return l.d.call(this,\"img1 and img2 must be an Jimp images\");var n=t.bitmap,i=e.bitmap;if(n.width===i.width&&n.height===i.height||(n.width*n.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(n.width,n.height)),\"number\"!=typeof r||r<0||r>1)return l.d.call(this,\"threshold must be a number between 0 and 1\");var o=new V(n.width,n.height,4294967295);return{percent:d()(n.data,i.data,o.bitmap.data,o.bitmap.width,o.bitmap.height,{threshold:r})/(o.bitmap.width*o.bitmap.height),image:o}},V.distance=function(t,e){var r=new g.a,n=r.getHash(t),i=r.getHash(e);return r.distance(n,i)},V.compareHashes=function(t,e){return(new g.a).distance(t,e)},V.colorDiff=function(t,e){var r=function(t){return Math.pow(t,2)},n=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(n(r(t.r-e.r),r(t.r-e.r-t.a+e.a))+n(r(t.g-e.g),r(t.g-e.g-t.a+e.a))+n(r(t.b-e.b),r(t.b-e.b-t.a+e.a)))/195075},Y(\"clone\",\"clone\",(function(t){var e=new V(this);return Object(l.a)(t)&&t.call(e,null,e),e})),X(\"background\",(function(t,e){return\"number\"!=typeof t?l.d.call(this,\"hex must be a hexadecimal rgba value\",e):(this._background=t,Object(l.a)(e)&&e.call(this,null,this),this)})),X(\"scan\",(function(t,e,r,n,i,o){if(\"number\"!=typeof t||\"number\"!=typeof e)return l.d.call(this,\"x and y must be numbers\",o);if(\"number\"!=typeof r||\"number\"!=typeof n)return l.d.call(this,\"w and h must be numbers\",o);if(\"function\"!=typeof i)return l.d.call(this,\"f must be a function\",o);var a=Object(l.b)(this,t,e,r,n,i);return Object(l.a)(o)&&o.call(this,null,a),a})),\"BROWSER\"===n.env.ENVIRONMENT)&&(\"undefined\"!=typeof window&&\"object\"===(\"undefined\"==typeof window?\"undefined\":L(window))&&(H=window),\"undefined\"!=typeof self&&\"object\"===(\"undefined\"==typeof self?\"undefined\":L(self))&&(H=self),H.Jimp=V,H.Buffer=t);e.c=V}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=r(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return n.EndOfStreamError}});var i=r(127);Object.defineProperty(e,\"StreamReader\",{enumerable:!0,get:function(){return i.StreamReader}})},function(t,e,r){(function(t){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):\"[object Array]\"===n(t)},e.isBoolean=function(t){return\"boolean\"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return\"number\"==typeof t},e.isString=function(t){return\"string\"==typeof t},e.isSymbol=function(t){return\"symbol\"===r(t)},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return\"[object RegExp]\"===n(t)},e.isObject=function(t){return\"object\"===r(t)&&null!==t},e.isDate=function(t){return\"[object Date]\"===n(t)},e.isError=function(t){return\"[object Error]\"===n(t)||t instanceof Error},e.isFunction=function(t){return\"function\"==typeof t},e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===r(t)||void 0===t},e.isBuffer=t.isBuffer}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(2).Buffer,i=r(38).Transform,o=r(159),a=r(14),s=r(53).ok,u=r(2).kMaxLength,c=\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var l=Object.keys(o),f=0;f<l.length;f++){var h=l[f];h.match(/^Z/)&&Object.defineProperty(e,h,{enumerable:!0,value:o[h],writable:!1})}for(var p={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},d=Object.keys(p),m=0;m<d.length;m++){var y=d[m];p[p[y]]=y}function g(t,e,r){var i=[],o=0;function a(){for(var e;null!==(e=t.read());)i.push(e),o+=e.length;t.once(\"readable\",a)}function s(){var e,a=null;o>=u?a=new RangeError(c):e=n.concat(i,o),i=[],t.close(),r(a,e)}t.on(\"error\",(function(e){t.removeListener(\"end\",s),t.removeListener(\"readable\",a),r(e)})),t.on(\"end\",s),t.end(e),a()}function b(t,e){if(\"string\"==typeof e&&(e=n.from(e)),!n.isBuffer(e))throw new TypeError(\"Not a string or buffer\");var r=t._finishFlushFlag;return t._processChunk(e,r)}function v(t){if(!(this instanceof v))return new v(t);A.call(this,t,o.DEFLATE)}function w(t){if(!(this instanceof w))return new w(t);A.call(this,t,o.INFLATE)}function _(t){if(!(this instanceof _))return new _(t);A.call(this,t,o.GZIP)}function x(t){if(!(this instanceof x))return new x(t);A.call(this,t,o.GUNZIP)}function k(t){if(!(this instanceof k))return new k(t);A.call(this,t,o.DEFLATERAW)}function E(t){if(!(this instanceof E))return new E(t);A.call(this,t,o.INFLATERAW)}function S(t){if(!(this instanceof S))return new S(t);A.call(this,t,o.UNZIP)}function T(t){return t===o.Z_NO_FLUSH||t===o.Z_PARTIAL_FLUSH||t===o.Z_SYNC_FLUSH||t===o.Z_FULL_FLUSH||t===o.Z_FINISH||t===o.Z_BLOCK}function A(t,r){var a=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,i.call(this,t),t.flush&&!T(t.flush))throw new Error(\"Invalid flush flag: \"+t.flush);if(t.finishFlush&&!T(t.finishFlush))throw new Error(\"Invalid flush flag: \"+t.finishFlush);if(this._flushFlag=t.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:o.Z_FINISH,t.chunkSize&&(t.chunkSize<e.Z_MIN_CHUNK||t.chunkSize>e.Z_MAX_CHUNK))throw new Error(\"Invalid chunk size: \"+t.chunkSize);if(t.windowBits&&(t.windowBits<e.Z_MIN_WINDOWBITS||t.windowBits>e.Z_MAX_WINDOWBITS))throw new Error(\"Invalid windowBits: \"+t.windowBits);if(t.level&&(t.level<e.Z_MIN_LEVEL||t.level>e.Z_MAX_LEVEL))throw new Error(\"Invalid compression level: \"+t.level);if(t.memLevel&&(t.memLevel<e.Z_MIN_MEMLEVEL||t.memLevel>e.Z_MAX_MEMLEVEL))throw new Error(\"Invalid memLevel: \"+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error(\"Invalid strategy: \"+t.strategy);if(t.dictionary&&!n.isBuffer(t.dictionary))throw new Error(\"Invalid dictionary: it should be a Buffer instance\");this._handle=new o.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(t,r){D(s),s._hadError=!0;var n=new Error(t);n.errno=r,n.code=e.codes[r],s.emit(\"error\",n)};var u=e.Z_DEFAULT_COMPRESSION;\"number\"==typeof t.level&&(u=t.level);var c=e.Z_DEFAULT_STRATEGY;\"number\"==typeof t.strategy&&(c=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,u,t.memLevel||e.Z_DEFAULT_MEMLEVEL,c,t.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=c,this.once(\"end\",this.close),Object.defineProperty(this,\"_closed\",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function D(e,r){r&&t.nextTick(r),e._handle&&(e._handle.close(),e._handle=null)}function O(t){t.emit(\"close\")}Object.defineProperty(e,\"codes\",{enumerable:!0,value:Object.freeze(p),writable:!1}),e.Deflate=v,e.Inflate=w,e.Gzip=_,e.Gunzip=x,e.DeflateRaw=k,e.InflateRaw=E,e.Unzip=S,e.createDeflate=function(t){return new v(t)},e.createInflate=function(t){return new w(t)},e.createDeflateRaw=function(t){return new k(t)},e.createInflateRaw=function(t){return new E(t)},e.createGzip=function(t){return new _(t)},e.createGunzip=function(t){return new x(t)},e.createUnzip=function(t){return new S(t)},e.deflate=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),g(new v(e),t,r)},e.deflateSync=function(t,e){return b(new v(e),t)},e.gzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),g(new _(e),t,r)},e.gzipSync=function(t,e){return b(new _(e),t)},e.deflateRaw=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),g(new k(e),t,r)},e.deflateRawSync=function(t,e){return b(new k(e),t)},e.unzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),g(new S(e),t,r)},e.unzipSync=function(t,e){return b(new S(e),t)},e.inflate=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),g(new w(e),t,r)},e.inflateSync=function(t,e){return b(new w(e),t)},e.gunzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),g(new x(e),t,r)},e.gunzipSync=function(t,e){return b(new x(e),t)},e.inflateRaw=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),g(new E(e),t,r)},e.inflateRawSync=function(t,e){return b(new E(e),t)},a.inherits(A,i),A.prototype.params=function(r,n,i){if(r<e.Z_MIN_LEVEL||r>e.Z_MAX_LEVEL)throw new RangeError(\"Invalid compression level: \"+r);if(n!=e.Z_FILTERED&&n!=e.Z_HUFFMAN_ONLY&&n!=e.Z_RLE&&n!=e.Z_FIXED&&n!=e.Z_DEFAULT_STRATEGY)throw new TypeError(\"Invalid strategy: \"+n);if(this._level!==r||this._strategy!==n){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(a._handle,\"zlib binding closed\"),a._handle.params(r,n),a._hadError||(a._level=r,a._strategy=n,i&&i())}))}else t.nextTick(i)},A.prototype.reset=function(){return s(this._handle,\"zlib binding closed\"),this._handle.reset()},A.prototype._flush=function(t){this._transform(n.alloc(0),\"\",t)},A.prototype.flush=function(e,r){var i=this,a=this._writableState;(\"function\"==typeof e||void 0===e&&!r)&&(r=e,e=o.Z_FULL_FLUSH),a.ended?r&&t.nextTick(r):a.ending?r&&this.once(\"end\",r):a.needDrain?r&&this.once(\"drain\",(function(){return i.flush(e,r)})):(this._flushFlag=e,this.write(n.alloc(0),\"\",r))},A.prototype.close=function(e){D(this,e),t.nextTick(O,this)},A.prototype._transform=function(t,e,r){var i,a=this._writableState,s=(a.ending||a.ended)&&(!t||a.length===t.length);return null===t||n.isBuffer(t)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,t.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(t,i,r)):r(new Error(\"zlib binding closed\")):r(new Error(\"invalid input\"))},A.prototype._processChunk=function(t,e,r){var i=t&&t.length,o=this._chunkSize-this._offset,a=0,l=this,f=\"function\"==typeof r;if(!f){var h,p=[],d=0;this.on(\"error\",(function(t){h=t})),s(this._handle,\"zlib binding closed\");do{var m=this._handle.writeSync(e,t,a,i,this._buffer,this._offset,o)}while(!this._hadError&&b(m[0],m[1]));if(this._hadError)throw h;if(d>=u)throw D(this),new RangeError(c);var y=n.concat(p,d);return D(this),y}s(this._handle,\"zlib binding closed\");var g=this._handle.write(e,t,a,i,this._buffer,this._offset,o);function b(u,c){if(this&&(this.buffer=null,this.callback=null),!l._hadError){var h=o-c;if(s(h>=0,\"have should not go down\"),h>0){var m=l._buffer.slice(l._offset,l._offset+h);l._offset+=h,f?l.push(m):(p.push(m),d+=m.length)}if((0===c||l._offset>=l._chunkSize)&&(o=l._chunkSize,l._offset=0,l._buffer=n.allocUnsafe(l._chunkSize)),0===c){if(a+=i-u,i=u,!f)return!0;var y=l._handle.write(e,t,a,i,l._buffer,l._offset,l._chunkSize);return y.callback=b,void(y.buffer=t)}if(!f)return!1;r()}}g.buffer=t,g.callback=b},a.inherits(v,A),a.inherits(w,A),a.inherits(_,A),a.inherits(x,A),a.inherits(k,A),a.inherits(E,A),a.inherits(S,A)}).call(this,r(7))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i,o=r(165),a=r(166),s=r(167),u=r(168),c=r(77),l=r(40),f=r(169),h=Function,p=function(t){try{return h('\"use strict\"; return ('+t+\").constructor;\")()}catch(t){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},\"\")}catch(t){d=null}var m=function(){throw new l},y=d?function(){try{return m}catch(t){try{return d(arguments,\"callee\").get}catch(t){return m}}}():m,g=r(170)(),b=r(171)(),v=Object.getPrototypeOf||(b?function(t){return t.__proto__}:null),w={},_=\"undefined\"!=typeof Uint8Array&&v?v(Uint8Array):i,x={__proto__:null,\"%AggregateError%\":\"undefined\"==typeof AggregateError?i:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":\"undefined\"==typeof ArrayBuffer?i:ArrayBuffer,\"%ArrayIteratorPrototype%\":g&&v?v([][Symbol.iterator]()):i,\"%AsyncFromSyncIteratorPrototype%\":i,\"%AsyncFunction%\":w,\"%AsyncGenerator%\":w,\"%AsyncGeneratorFunction%\":w,\"%AsyncIteratorPrototype%\":w,\"%Atomics%\":\"undefined\"==typeof Atomics?i:Atomics,\"%BigInt%\":\"undefined\"==typeof BigInt?i:BigInt,\"%BigInt64Array%\":\"undefined\"==typeof BigInt64Array?i:BigInt64Array,\"%BigUint64Array%\":\"undefined\"==typeof BigUint64Array?i:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":\"undefined\"==typeof DataView?i:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":o,\"%eval%\":eval,\"%EvalError%\":a,\"%Float32Array%\":\"undefined\"==typeof Float32Array?i:Float32Array,\"%Float64Array%\":\"undefined\"==typeof Float64Array?i:Float64Array,\"%FinalizationRegistry%\":\"undefined\"==typeof FinalizationRegistry?i:FinalizationRegistry,\"%Function%\":h,\"%GeneratorFunction%\":w,\"%Int8Array%\":\"undefined\"==typeof Int8Array?i:Int8Array,\"%Int16Array%\":\"undefined\"==typeof Int16Array?i:Int16Array,\"%Int32Array%\":\"undefined\"==typeof Int32Array?i:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":g&&v?v(v([][Symbol.iterator]())):i,\"%JSON%\":\"object\"===(\"undefined\"==typeof JSON?\"undefined\":n(JSON))?JSON:i,\"%Map%\":\"undefined\"==typeof Map?i:Map,\"%MapIteratorPrototype%\":\"undefined\"!=typeof Map&&g&&v?v((new Map)[Symbol.iterator]()):i,\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":Object,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":\"undefined\"==typeof Promise?i:Promise,\"%Proxy%\":\"undefined\"==typeof Proxy?i:Proxy,\"%RangeError%\":s,\"%ReferenceError%\":u,\"%Reflect%\":\"undefined\"==typeof Reflect?i:Reflect,\"%RegExp%\":RegExp,\"%Set%\":\"undefined\"==typeof Set?i:Set,\"%SetIteratorPrototype%\":\"undefined\"!=typeof Set&&g&&v?v((new Set)[Symbol.iterator]()):i,\"%SharedArrayBuffer%\":\"undefined\"==typeof SharedArrayBuffer?i:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":g&&v?v(\"\"[Symbol.iterator]()):i,\"%Symbol%\":g?Symbol:i,\"%SyntaxError%\":c,\"%ThrowTypeError%\":y,\"%TypedArray%\":_,\"%TypeError%\":l,\"%Uint8Array%\":\"undefined\"==typeof Uint8Array?i:Uint8Array,\"%Uint8ClampedArray%\":\"undefined\"==typeof Uint8ClampedArray?i:Uint8ClampedArray,\"%Uint16Array%\":\"undefined\"==typeof Uint16Array?i:Uint16Array,\"%Uint32Array%\":\"undefined\"==typeof Uint32Array?i:Uint32Array,\"%URIError%\":f,\"%WeakMap%\":\"undefined\"==typeof WeakMap?i:WeakMap,\"%WeakRef%\":\"undefined\"==typeof WeakRef?i:WeakRef,\"%WeakSet%\":\"undefined\"==typeof WeakSet?i:WeakSet};if(v)try{null.error}catch(t){var k=v(v(t));x[\"%Error.prototype%\"]=k}var E=function t(e){var r;if(\"%AsyncFunction%\"===e)r=p(\"async function () {}\");else if(\"%GeneratorFunction%\"===e)r=p(\"function* () {}\");else if(\"%AsyncGeneratorFunction%\"===e)r=p(\"async function* () {}\");else if(\"%AsyncGenerator%\"===e){var n=t(\"%AsyncGeneratorFunction%\");n&&(r=n.prototype)}else if(\"%AsyncIteratorPrototype%\"===e){var i=t(\"%AsyncGenerator%\");i&&v&&(r=v(i.prototype))}return x[e]=r,r},S={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},T=r(54),A=r(173),D=T.call(Function.call,Array.prototype.concat),O=T.call(Function.apply,Array.prototype.splice),I=T.call(Function.call,String.prototype.replace),P=T.call(Function.call,String.prototype.slice),C=T.call(Function.call,RegExp.prototype.exec),L=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,M=/\\\\(\\\\)?/g,F=function(t,e){var r,n=t;if(A(S,n)&&(n=\"%\"+(r=S[n])[0]+\"%\"),A(x,n)){var i=x[n];if(i===w&&(i=E(n)),void 0===i&&!e)throw new l(\"intrinsic \"+t+\" exists, but is not available. Please file an issue!\");return{alias:r,name:n,value:i}}throw new c(\"intrinsic \"+t+\" does not exist!\")};t.exports=function(t,e){if(\"string\"!=typeof t||0===t.length)throw new l(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&\"boolean\"!=typeof e)throw new l('\"allowMissing\" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,t))throw new c(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var r=function(t){var e=P(t,0,1),r=P(t,-1);if(\"%\"===e&&\"%\"!==r)throw new c(\"invalid intrinsic syntax, expected closing `%`\");if(\"%\"===r&&\"%\"!==e)throw new c(\"invalid intrinsic syntax, expected opening `%`\");var n=[];return I(t,L,(function(t,e,r,i){n[n.length]=r?I(i,M,\"$1\"):e||t})),n}(t),n=r.length>0?r[0]:\"\",i=F(\"%\"+n+\"%\",e),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],O(r,D([0,1],u)));for(var f=1,h=!0;f<r.length;f+=1){var p=r[f],m=P(p,0,1),y=P(p,-1);if(('\"'===m||\"'\"===m||\"`\"===m||'\"'===y||\"'\"===y||\"`\"===y)&&m!==y)throw new c(\"property names with quotes must have matching quotes\");if(\"constructor\"!==p&&h||(s=!0),A(x,o=\"%\"+(n+=\".\"+p)+\"%\"))a=x[o];else if(null!=a){if(!(p in a)){if(!e)throw new l(\"base intrinsic for \"+t+\" exists, but the property is not available.\");return}if(d&&f+1>=r.length){var g=d(a,p);a=(h=!!g)&&\"get\"in g&&!(\"originalValue\"in g.get)?g.get:a[p]}else h=A(a,p),a=a[p];h&&!s&&(x[o]=a)}}return a}},function(t,e,r){\"use strict\";t.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i,o=\"object\"===(\"undefined\"==typeof Reflect?\"undefined\":n(Reflect))?Reflect:null,a=o&&\"function\"==typeof o.apply?o.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};i=o&&\"function\"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}t.exports=u,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){\"function\"==typeof t.removeListener&&t.removeListener(\"error\",i),r([].slice.call(arguments))}b(t,e,o,{once:!0}),\"error\"!==e&&function(t,e,r){\"function\"==typeof t.on&&b(t,\"error\",e,r)}(t,i,{once:!0})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function l(t){if(\"function\"!=typeof t)throw new TypeError('The \"listener\" argument must be of type Function. Received type '+n(t))}function f(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var i,o,a;if(l(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit(\"newListener\",e,r.listener?r.listener:r),o=t._events),a=o[e]),void 0===a)a=o[e]=r,++t._eventsCount;else if(\"function\"==typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(t))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error(\"Possible EventEmitter memory leak detected. \"+a.length+\" \"+String(e)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");s.name=\"MaxListenersExceededWarning\",s.emitter=t,s.type=e,s.count=a.length,console&&console.warn}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=p.bind(n);return i.listener=r,n.wrapFn=i,i}function m(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:\"function\"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):g(i,i.length)}function y(t){var e=this._events;if(void 0!==e){var r=e[t];if(\"function\"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function b(t,e,r,i){if(\"function\"==typeof t.on)i.once?t.once(e,r):t.on(e,r);else{if(\"function\"!=typeof t.addEventListener)throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type '+n(t));t.addEventListener(e,(function n(o){i.once&&t.removeEventListener(e,n),r(o)}))}}Object.defineProperty(u,\"defaultMaxListeners\",{enumerable:!0,get:function(){return c},set:function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+t+\".\");c=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+t+\".\");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n=\"error\"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var s=new Error(\"Unhandled error.\"+(o?\" (\"+o.message+\")\":\"\"));throw s.context=o,s}var u=i[t];if(void 0===u)return!1;if(\"function\"==typeof u)a(u,this,e);else{var c=u.length,l=g(u,c);for(r=0;r<c;++r)a(l[r],this,e)}return!0},u.prototype.addListener=function(t,e){return h(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return h(this,t,e,!0)},u.prototype.once=function(t,e){return l(e),this.on(t,d(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){return l(e),this.prependListener(t,d(this,t,e)),this},u.prototype.removeListener=function(t,e){var r,n,i,o,a;if(l(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit(\"removeListener\",t,r.listener||e));else if(\"function\"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit(\"removeListener\",t,a||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)\"removeListener\"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(\"function\"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return m(this,t,!0)},u.prototype.rawListeners=function(t){return m(this,t,!1)},u.listenerCount=function(t,e){return\"function\"==typeof t.listenerCount?t.listenerCount(e):y.call(t,e)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(t,e,r){var n,i,o;function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}o=function(){\"use strict\";function t(e){return t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t(e)}var e=/^\\s+/,r=/\\s+$/;function n(i,o){if(o=o||{},(i=i||\"\")instanceof n)return i;if(!(this instanceof n))return new n(i,o);var a=function(n){var i,o,a,s={r:0,g:0,b:0},u=1,c=null,l=null,f=null,h=!1,p=!1;return\"string\"==typeof n&&(n=function(t){t=t.replace(e,\"\").replace(r,\"\").toLowerCase();var n,i=!1;if(w[t])t=w[t],i=!0;else if(\"transparent\"==t)return{r:0,g:0,b:0,a:0,format:\"name\"};return(n=L.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=L.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=L.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=L.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=L.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=L.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=L.hex8.exec(t))?{r:S(n[1]),g:S(n[2]),b:S(n[3]),a:O(n[4]),format:i?\"name\":\"hex8\"}:(n=L.hex6.exec(t))?{r:S(n[1]),g:S(n[2]),b:S(n[3]),format:i?\"name\":\"hex\"}:(n=L.hex4.exec(t))?{r:S(n[1]+\"\"+n[1]),g:S(n[2]+\"\"+n[2]),b:S(n[3]+\"\"+n[3]),a:O(n[4]+\"\"+n[4]),format:i?\"name\":\"hex8\"}:!!(n=L.hex3.exec(t))&&{r:S(n[1]+\"\"+n[1]),g:S(n[2]+\"\"+n[2]),b:S(n[3]+\"\"+n[3]),format:i?\"name\":\"hex\"}}(n)),\"object\"==t(n)&&(M(n.r)&&M(n.g)&&M(n.b)?(i=n.r,o=n.g,a=n.b,s={r:255*k(i,255),g:255*k(o,255),b:255*k(a,255)},h=!0,p=\"%\"===String(n.r).substr(-1)?\"prgb\":\"rgb\"):M(n.h)&&M(n.s)&&M(n.v)?(c=A(n.s),l=A(n.v),s=function(t,e,r){t=6*k(t,360),e=k(e,100),r=k(r,100);var n=Math.floor(t),i=t-n,o=r*(1-e),a=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6,c=[r,a,o,o,s,r][u],l=[s,r,r,a,o,o][u],f=[o,o,s,r,r,a][u];return{r:255*c,g:255*l,b:255*f}}(n.h,c,l),h=!0,p=\"hsv\"):M(n.h)&&M(n.s)&&M(n.l)&&(c=A(n.s),f=A(n.l),s=function(t,e,r){var n,i,o;function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=k(t,360),e=k(e,100),r=k(r,100),0===e)n=i=o=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*o}}(n.h,c,f),h=!0,p=\"hsl\"),n.hasOwnProperty(\"a\")&&(u=n.a)),u=x(u),{ok:h,format:n.format||p,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:u}}(i);this._originalInput=i,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=o.format||a.format,this._gradientType=o.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}function i(t,e,r){t=k(t,255),e=k(e,255),r=k(r,255);var n,i,o=Math.max(t,e,r),a=Math.min(t,e,r),s=(o+a)/2;if(o==a)n=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:s}}function o(t,e,r){t=k(t,255),e=k(e,255),r=k(r,255);var n,i,o=Math.max(t,e,r),a=Math.min(t,e,r),s=o,u=o-a;if(i=0===o?0:u/o,o==a)n=0;else{switch(o){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:s}}function a(t,e,r,n){var i=[T(Math.round(t).toString(16)),T(Math.round(e).toString(16)),T(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function s(t,e,r,n){return[T(D(n)),T(Math.round(t).toString(16)),T(Math.round(e).toString(16)),T(Math.round(r).toString(16))].join(\"\")}function u(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s-=e/100,r.s=E(r.s),n(r)}function c(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s+=e/100,r.s=E(r.s),n(r)}function l(t){return n(t).desaturate(100)}function f(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l+=e/100,r.l=E(r.l),n(r)}function h(t,e){e=0===e?0:e||10;var r=n(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),n(r)}function p(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l-=e/100,r.l=E(r.l),n(r)}function d(t,e){var r=n(t).toHsl(),i=(r.h+e)%360;return r.h=i<0?360+i:i,n(r)}function m(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function y(t,e){if(isNaN(e)||e<=0)throw new Error(\"Argument to polyad must be a positive number\");for(var r=n(t).toHsl(),i=[n(t)],o=360/e,a=1;a<e;a++)i.push(n({h:(r.h+a*o)%360,s:r.s,l:r.l}));return i}function g(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+72)%360,s:e.s,l:e.l}),n({h:(r+216)%360,s:e.s,l:e.l})]}function b(t,e,r){e=e||6,r=r||30;var i=n(t).toHsl(),o=360/r,a=[n(t)];for(i.h=(i.h-(o*e>>1)+720)%360;--e;)i.h=(i.h+o)%360,a.push(n(i));return a}function v(t,e){e=e||6;for(var r=n(t).toHsv(),i=r.h,o=r.s,a=r.v,s=[],u=1/e;e--;)s.push(n({h:i,s:o,v:a})),a=(a+u)%1;return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=x(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=o(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?\"hsv(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsva(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?\"hsl(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsla(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHex:function(t){return a(this._r,this._g,this._b,t)},toHexString:function(t){return\"#\"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[T(Math.round(t).toString(16)),T(Math.round(e).toString(16)),T(Math.round(r).toString(16)),T(D(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join(\"\")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return\"#\"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\")\":\"rgba(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:Math.round(100*k(this._r,255))+\"%\",g:Math.round(100*k(this._g,255))+\"%\",b:Math.round(100*k(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(100*k(this._r,255))+\"%, \"+Math.round(100*k(this._g,255))+\"%, \"+Math.round(100*k(this._b,255))+\"%)\":\"rgba(\"+Math.round(100*k(this._r,255))+\"%, \"+Math.round(100*k(this._g,255))+\"%, \"+Math.round(100*k(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&(_[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=\"#\"+s(this._r,this._g,this._b,this._a),r=e,i=this._gradientType?\"GradientType = 1, \":\"\";if(t){var o=n(t);r=\"#\"+s(o._r,o._g,o._b,o._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+i+\"startColorstr=\"+e+\",endColorstr=\"+r+\")\"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||\"hex\"!==t&&\"hex6\"!==t&&\"hex3\"!==t&&\"hex4\"!==t&&\"hex8\"!==t&&\"name\"!==t?(\"rgb\"===t&&(r=this.toRgbString()),\"prgb\"===t&&(r=this.toPercentageRgbString()),\"hex\"!==t&&\"hex6\"!==t||(r=this.toHexString()),\"hex3\"===t&&(r=this.toHexString(!0)),\"hex4\"===t&&(r=this.toHex8String(!0)),\"hex8\"===t&&(r=this.toHex8String()),\"name\"===t&&(r=this.toName()),\"hsl\"===t&&(r=this.toHslString()),\"hsv\"===t&&(r=this.toHsvString()),r||this.toHexString()):\"name\"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(l,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(b,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(v,arguments)},splitcomplement:function(){return this._applyCombination(g,arguments)},triad:function(){return this._applyCombination(y,[3])},tetrad:function(){return this._applyCombination(y,[4])}},n.fromRatio=function(e,r){if(\"object\"==t(e)){var i={};for(var o in e)e.hasOwnProperty(o)&&(i[o]=\"a\"===o?e[o]:A(e[o]));e=i}return n(e,r)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(t,e,r){r=0===r?0:r||50;var i=n(t).toRgb(),o=n(e).toRgb(),a=r/100;return n({r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a})},n.readability=function(t,e){var r=n(t),i=n(e);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(t,e,r){var i,o,a,s,u,c=n.readability(t,e);switch(o=!1,(a=r,s=((a=a||{level:\"AA\",size:\"small\"}).level||\"AA\").toUpperCase(),u=(a.size||\"small\").toLowerCase(),\"AA\"!==s&&\"AAA\"!==s&&(s=\"AA\"),\"small\"!==u&&\"large\"!==u&&(u=\"small\"),i={level:s,size:u}).level+i.size){case\"AAsmall\":case\"AAAlarge\":o=c>=4.5;break;case\"AAlarge\":o=c>=3;break;case\"AAAsmall\":o=c>=7}return o},n.mostReadable=function(t,e,r){var i,o,a,s,u=null,c=0;o=(r=r||{}).includeFallbackColors,a=r.level,s=r.size;for(var l=0;l<e.length;l++)(i=n.readability(t,e[l]))>c&&(c=i,u=n(e[l]));return n.isReadable(t,u,{level:a,size:s})||!o?u:(r.includeFallbackColors=!1,n.mostReadable(t,[\"#fff\",\"#000\"],r))};var w=n.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},_=n.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(w);function x(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function k(t,e){(function(t){return\"string\"==typeof t&&-1!=t.indexOf(\".\")&&1===parseFloat(t)})(t)&&(t=\"100%\");var r=function(t){return\"string\"==typeof t&&-1!=t.indexOf(\"%\")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function E(t){return Math.min(1,Math.max(0,t))}function S(t){return parseInt(t,16)}function T(t){return 1==t.length?\"0\"+t:\"\"+t}function A(t){return t<=1&&(t=100*t+\"%\"),t}function D(t){return Math.round(255*parseFloat(t)).toString(16)}function O(t){return S(t)/255}var I,P,C,L=(P=\"[\\\\s|\\\\(]+(\"+(I=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\")+\")[,|\\\\s]+(\"+I+\")[,|\\\\s]+(\"+I+\")\\\\s*\\\\)?\",C=\"[\\\\s|\\\\(]+(\"+I+\")[,|\\\\s]+(\"+I+\")[,|\\\\s]+(\"+I+\")[,|\\\\s]+(\"+I+\")\\\\s*\\\\)?\",{CSS_UNIT:new RegExp(I),rgb:new RegExp(\"rgb\"+P),rgba:new RegExp(\"rgba\"+C),hsl:new RegExp(\"hsl\"+P),hsla:new RegExp(\"hsla\"+C),hsv:new RegExp(\"hsv\"+P),hsva:new RegExp(\"hsva\"+C),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function M(t){return!!L.CSS_UNIT.exec(t)}return n},\"object\"===a(e)&&void 0!==t?t.exports=o():void 0===(i=\"function\"==typeof(n=o)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){\"use strict\";e.a=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise((function(r,i){n.push((function(t,e){t&&i(t),r(e)})),t.bind(e).apply(void 0,n)}))}},function(t,e,r){var n=r(122);function i(t,e){var r=new n(t,e);return function(t){return r.convert(t)}}i.BIN=\"01\",i.OCT=\"01234567\",i.DEC=\"0123456789\",i.HEX=\"0123456789abcdef\",t.exports=i},function(t,e,r){\"use strict\";function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;e<t;e++)o[e]=1;o[0]=1/Math.sqrt(2)}(this.size)}function i(t){var e=255&t,r=255&(t>>>=8),n=255&(t>>>=8);return{r:255&(t>>>=8),g:n,b:r,a:e}}n.prototype.size=32,n.prototype.smallerSize=8,n.prototype.distance=function(t,e){for(var r=0,n=0;n<t.length;n++)t[n]!==e[n]&&r++;return r/t.length},n.prototype.getHash=function(t){(t=t.clone().resize(this.size,this.size)).grayscale();for(var e=[],r=0;r<t.bitmap.width;r++){e[r]=[];for(var n=0;n<t.bitmap.height;n++)e[r][n]=i(t.getPixelColor(r,n)).b}for(var a=function(t,e){for(var r=e,n=[],i=0;i<r;i++){n[i]=[];for(var a=0;a<r;a++){for(var s=0,u=0;u<r;u++)for(var c=0;c<r;c++)s+=Math.cos((2*u+1)/(2*r)*i*Math.PI)*Math.cos((2*c+1)/(2*r)*a*Math.PI)*t[u][c];s*=o[i]*o[a]/4,n[i][a]=s}}return n}(e,this.size),s=0,u=0;u<this.smallerSize;u++)for(var c=0;c<this.smallerSize;c++)s+=a[u][c];for(var l=s/(this.smallerSize*this.smallerSize),f=\"\",h=0;h<this.smallerSize;h++)for(var p=0;p<this.smallerSize;p++)f+=a[h][p]>l?\"1\":\"0\";return f};var o=[];e.a=n},function(t,e,r){(function(t,e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}!function(){var i={};function o(){void 0===e&&console.log.apply(console,arguments)}\"object\"==n(t)?t.exports=i:self.UTIF=i,function(t,e){var r,i,a,s,u,c,l,f,h,p,d,m,y,g;!function(){\"use strict\";var e=function(){function t(t){this.message=\"JPEG error: \"+t}return t.prototype=new Error,t.prototype.name=\"JpegError\",t.constructor=t,t}(),r=function(){var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),r=4017,o=799,a=3406,s=2276,u=1567,c=3784,l=5793,f=2896;function h(t){null==t&&(t={}),null==t.w&&(t.w=-1),this.V=t.n,this.N=t.w}function p(t,e){for(var r,n,i,o=0,a=[],s=16;s>0&&!t[s-1];)s--;a.push({children:[],index:0});var u=a[0];for(r=0;r<s;r++){for(n=0;n<t[r];n++){for((u=a.pop()).children[u.index]=e[o];u.index>0;)u=a.pop();for(u.index++,a.push(u);a.length<=r;)a.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i;o++}r+1<s&&(a.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i)}return a[0].children}function d(t,e,r){return 64*((t.P+1)*e+r)}function m(r,o,a,s,u,c,l,f,h,p){null==p&&(p=!1);var m,y,g,v,w,_,x,k,E,S,T,A=a.m,D=a.Z,O=o,I=0,P=0,C=0,L=0,M=0,F=0;function B(){if(P>0)return P--,I>>P&1;if(255===(I=r[o++])){var t=r[o++];if(t){if(220===t&&p){var n=i(r,o+=2);if(o+=2,n>0&&n!==a.s)throw new DNLMarkerError(\"Found DNL marker (0xFFDC) while parsing scan data\",n)}else if(217===t){if(p){var s=8*M;if(s>0&&s<a.s/10)throw new DNLMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter\",s)}throw new EOIMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data\")}throw new e(\"unexpected marker\")}}return P=7,I>>>7}function j(t){for(var r=t;;){switch(n(r=r[B()])){case\"number\":return r;case\"object\":continue}throw new e(\"invalid huffman sequence\")}}function N(t){for(var e=0;t>0;)e=e<<1|B(),t--;return e}function R(t){if(1===t)return 1===B()?1:-1;var e=N(t);return e>=1<<t-1?e:e+(-1<<t)+1}function z(t,e,r,n,i){var o=r%A;M=(r/A|0)*t.A+n;var a=o*t.h+i;e(t,d(t,M,a))}function U(t,e,r){M=r/t.P|0;var n=r%t.P;e(t,d(t,M,n))}var G=s.length;for(x=D?0===c?0===f?function(t,e){var r=j(t.J),n=0===r?0:R(r)<<h;t.D[e]=t.Q+=n}:function(t,e){t.D[e]|=B()<<h}:0===f?function(e,r){if(C>0)C--;else for(var n=c,i=l;n<=i;){var o=j(e.i),a=15&o,s=o>>4;if(0!==a){var u=t[n+=s];e.D[r+u]=R(a)*(1<<h),n++}else{if(s<15){C=N(s)+(1<<s)-1;break}n+=16}}}:function(r,n){for(var i,o,a=c,s=l,u=0;a<=s;){var f=n+t[a],p=r.D[f]<0?-1:1;switch(L){case 0:if(u=(o=j(r.i))>>4,0==(i=15&o))u<15?(C=N(u)+(1<<u),L=4):(u=16,L=1);else{if(1!==i)throw new e(\"invalid ACn encoding\");m=R(i),L=u?2:3}continue;case 1:case 2:r.D[f]?r.D[f]+=p*(B()<<h):0==--u&&(L=2===L?3:0);break;case 3:r.D[f]?r.D[f]+=p*(B()<<h):(r.D[f]=m<<h,L=0);break;case 4:r.D[f]&&(r.D[f]+=p*(B()<<h))}a++}4===L&&0==--C&&(L=0)}:function(e,r){var n=j(e.J),i=0===n?0:R(n),o=1;for(e.D[r]=e.Q+=i;o<64;){var a=j(e.i),s=15&a,u=a>>4;if(0!==s){var c=t[o+=u];e.D[r+c]=R(s),o++}else{if(u<15)break;o+=16}}},E=1===G?s[0].P*s[0].c:A*a.R;F<=E;){var H=u?Math.min(E-F,u):E;if(H>0){for(g=0;g<G;g++)s[g].Q=0;if(C=0,1===G)for(y=s[0],_=0;_<H;_++)U(y,x,F),F++;else for(_=0;_<H;_++){for(g=0;g<G;g++)for(S=(y=s[g]).h,T=y.A,v=0;v<T;v++)for(w=0;w<S;w++)z(y,x,F,v,w);F++}}if(P=0,!(k=b(r,o)))break;if(k.u){o=k.offset}if(!(k.M>=65488&&k.M<=65495))break;o+=2}return o-O}function y(t,n,i){var h,p,d,m,y,g,b,v,w,_,x,k,E,S,T,A,D,O=t.$,I=t.D;if(!O)throw new e(\"missing required Quantization Table.\");for(var P=0;P<64;P+=8)w=I[n+P],_=I[n+P+1],x=I[n+P+2],k=I[n+P+3],E=I[n+P+4],S=I[n+P+5],T=I[n+P+6],A=I[n+P+7],w*=O[P],_|x|k|E|S|T|A?(_*=O[P+1],x*=O[P+2],k*=O[P+3],E*=O[P+4],S*=O[P+5],T*=O[P+6],A*=O[P+7],p=(h=(h=l*w+128>>8)+(p=l*E+128>>8)+1>>1)-p,D=(d=x)*c+(m=T)*u+128>>8,d=d*u-m*c+128>>8,b=(y=(y=f*(_-A)+128>>8)+(b=S<<4)+1>>1)-b,g=(v=(v=f*(_+A)+128>>8)+(g=k<<4)+1>>1)-g,m=(h=h+(m=D)+1>>1)-m,d=(p=p+d+1>>1)-d,D=y*s+v*a+2048>>12,y=y*a-v*s+2048>>12,v=D,D=g*o+b*r+2048>>12,g=g*r-b*o+2048>>12,b=D,i[P]=h+v,i[P+7]=h-v,i[P+1]=p+b,i[P+6]=p-b,i[P+2]=d+g,i[P+5]=d-g,i[P+3]=m+y,i[P+4]=m-y):(D=l*w+512>>10,i[P]=D,i[P+1]=D,i[P+2]=D,i[P+3]=D,i[P+4]=D,i[P+5]=D,i[P+6]=D,i[P+7]=D);for(var C=0;C<8;++C)w=i[C],(_=i[C+8])|(x=i[C+16])|(k=i[C+24])|(E=i[C+32])|(S=i[C+40])|(T=i[C+48])|(A=i[C+56])?(p=(h=4112+((h=l*w+2048>>12)+(p=l*E+2048>>12)+1>>1))-p,D=(d=x)*c+(m=T)*u+2048>>12,d=d*u-m*c+2048>>12,m=D,b=(y=(y=f*(_-A)+2048>>12)+(b=S)+1>>1)-b,g=(v=(v=f*(_+A)+2048>>12)+(g=k)+1>>1)-g,D=y*s+v*a+2048>>12,y=y*a-v*s+2048>>12,v=D,D=g*o+b*r+2048>>12,g=g*r-b*o+2048>>12,(w=(h=h+m+1>>1)+v)<16?w=0:w>=4080?w=255:w>>=4,(_=(p=p+d+1>>1)+(b=D))<16?_=0:_>=4080?_=255:_>>=4,(x=(d=p-d)+g)<16?x=0:x>=4080?x=255:x>>=4,(k=(m=h-m)+y)<16?k=0:k>=4080?k=255:k>>=4,(E=m-y)<16?E=0:E>=4080?E=255:E>>=4,(S=d-g)<16?S=0:S>=4080?S=255:S>>=4,(T=p-b)<16?T=0:T>=4080?T=255:T>>=4,(A=h-v)<16?A=0:A>=4080?A=255:A>>=4,I[n+C]=w,I[n+C+8]=_,I[n+C+16]=x,I[n+C+24]=k,I[n+C+32]=E,I[n+C+40]=S,I[n+C+48]=T,I[n+C+56]=A):(D=(D=l*w+8192>>14)<-2040?0:D>=2024?255:D+2056>>4,I[n+C]=D,I[n+C+8]=D,I[n+C+16]=D,I[n+C+24]=D,I[n+C+32]=D,I[n+C+40]=D,I[n+C+48]=D,I[n+C+56]=D)}function g(t,e){for(var r=e.P,n=e.c,i=new Int16Array(64),o=0;o<n;o++)for(var a=0;a<r;a++){y(e,d(e,o,a),i)}return e.D}function b(t,e,r){null==r&&(r=e);var n=t.length-1,o=r<e?r:e;if(e>=n)return null;var a=i(t,e);if(a>=65472&&a<=65534)return{u:null,M:a,offset:e};for(var s=i(t,o);!(s>=65472&&s<=65534);){if(++o>=n)return null;s=i(t,o)}return{u:a.toString(16),M:s,offset:o}}return h.prototype={parse:function(r,n){null==n&&(n={});var o,a,s=n.F,u=0,c=null,l=null,f=0;function h(){var t=i(r,u),e=(u+=2)+t-2,n=b(r,e,u);n&&n.u&&(e=n.offset);var o=r.subarray(u,e);return u+=o.length,o}function d(t){for(var e=Math.ceil(t.o/8/t.X),r=Math.ceil(t.s/8/t.B),n=0;n<t.W.length;n++){G=t.W[n];var i=Math.ceil(Math.ceil(t.o/8)*G.h/t.X),o=Math.ceil(Math.ceil(t.s/8)*G.A/t.B),a=e*G.h,s=64*(r*G.A)*(a+1);G.D=new Int16Array(s),G.P=i,G.c=o}t.m=e,t.R=r}var y=[],v=[],w=[],_=i(r,u);if(u+=2,65496!==_)throw new e(\"SOI not found\");_=i(r,u),u+=2;t:for(;65497!==_;){var x,k,E;switch(_){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var S=h();65504===_&&74===S[0]&&70===S[1]&&73===S[2]&&70===S[3]&&0===S[4]&&(c={version:{d:S[5],T:S[6]},K:S[7],j:S[8]<<8|S[9],H:S[10]<<8|S[11],S:S[12],I:S[13],C:S.subarray(14,14+3*S[12]*S[13])}),65518===_&&65===S[0]&&100===S[1]&&111===S[2]&&98===S[3]&&101===S[4]&&(l={version:S[5]<<8|S[6],k:S[7]<<8|S[8],q:S[9]<<8|S[10],a:S[11]});break;case 65499:for(var T=i(r,u)+(u+=2)-2;u<T;){var A=r[u++],D=new Uint16Array(64);if(A>>4){if(A>>4!=1)throw new e(\"DQT - invalid table spec\");for(k=0;k<64;k++)D[t[k]]=i(r,u),u+=2}else for(k=0;k<64;k++)D[t[k]]=r[u++];y[15&A]=D}break;case 65472:case 65473:case 65474:if(o)throw new e(\"Only single frame JPEGs supported\");u+=2,(o={}).G=65473===_,o.Z=65474===_,o.precision=r[u++];var O,I=i(r,u),P=0,C=0;u+=2,o.s=s||I,o.o=i(r,u),u+=2,o.W=[],o._={};var L=r[u++];for(x=0;x<L;x++){O=r[u];var M=r[u+1]>>4,F=15&r[u+1];P<M&&(P=M),C<F&&(C=F);var B=r[u+2];E=o.W.push({h:M,A:F,L:B,$:null}),o._[O]=E-1,u+=3}o.X=P,o.B=C,d(o);break;case 65476:var j=i(r,u);for(u+=2,x=2;x<j;){var N=r[u++],R=new Uint8Array(16),z=0;for(k=0;k<16;k++,u++)z+=R[k]=r[u];var U=new Uint8Array(z);for(k=0;k<z;k++,u++)U[k]=r[u];x+=17+z,(N>>4?v:w)[15&N]=p(R,U)}break;case 65501:a=i(r,u+=2),u+=2;break;case 65498:var G,H=1==++f&&!s;u+=2;var q=r[u++],V=[];for(x=0;x<q;x++){var W=r[u++],Z=o._[W];(G=o.W[Z]).index=W;var Y=r[u++];G.J=w[Y>>4],G.i=v[15&Y],V.push(G)}var X=r[u++],K=r[u++],J=r[u++];try{var $=m(r,u,o,V,a,X,K,J>>4,15&J,H);u+=$}catch(t){if(t instanceof DNLMarkerError)return this.parse(r,{F:t.s});if(t instanceof EOIMarkerError)break t;throw t}break;case 65500:u+=4;break;case 65535:255!==r[u]&&u--;break;default:var Q=b(r,u-2,u-3);if(Q&&Q.u){u=Q.offset;break}if(u>=r.length-1)break t;throw new e(\"JpegImage.parse - unknown marker: \"+_.toString(16))}_=i(r,u),u+=2}for(this.width=o.o,this.height=o.s,this.g=c,this.b=l,this.W=[],x=0;x<o.W.length;x++){var tt=y[(G=o.W[x]).L];tt&&(G.$=tt),this.W.push({index:G.index,e:g(0,G),l:G.h/o.X,t:G.A/o.B,P:G.P,c:G.c})}this.p=this.W.length},Y:function(t,e,r){null==r&&(r=!1);var n,i,o,a,s,u,c,l,f,h,p,d,m=this.width/t,y=this.height/e,g=0,b=this.W.length,v=t*e*b,w=new Uint8ClampedArray(v),_=new Uint32Array(t),x=4294967288;for(c=0;c<b;c++){if(i=(n=this.W[c]).l*m,o=n.t*y,g=c,p=n.e,a=n.P+1<<3,i!==d){for(s=0;s<t;s++)l=0|s*i,_[s]=(l&x)<<3|7&l;d=i}for(u=0;u<e;u++)for(h=a*((l=0|u*o)&x)|(7&l)<<3,s=0;s<t;s++)w[g]=p[h+_[s]],g+=b}var k=this.V;if(r||4!==b||k||(k=new Int32Array([-256,255,-256,255,-256,255,-256,255])),k)for(c=0;c<v;)for(l=0,f=0;l<b;l++,c++,f+=2)w[c]=(w[c]*k[f]>>8)+k[f+1];return w},get f(){return this.b?!!this.b.a:3===this.p?0!==this.N&&(82!==this.W[0].index||71!==this.W[1].index||66!==this.W[2].index):1===this.N},z:function(t){for(var e,r,n,i=0,o=t.length;i<o;i+=3)e=t[i],r=t[i+1],n=t[i+2],t[i]=e-179.456+1.402*n,t[i+1]=e+135.459-.344*r-.714*n,t[i+2]=e-226.816+1.772*r;return t},O:function(t){for(var e,r,n,i,o=0,a=0,s=t.length;a<s;a+=4)e=t[a],r=t[a+1],n=t[a+2],i=t[a+3],t[o++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*e+.00048449797120281*i-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*e-.00477271405408747*i+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),t[o++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*e+.000426105652938837*i-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*e+.000770482631801132*i-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),t[o++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*e-.00288260236853442*i+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*e+.000560833691242812*i-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return t.subarray(0,o)},r:function(t){for(var e,r,n,i=0,o=t.length;i<o;i+=4)e=t[i],r=t[i+1],n=t[i+2],t[i]=434.456-e-1.402*n,t[i+1]=119.541-e+.344*r+.714*n,t[i+2]=481.816-e-1.772*r;return t},U:function(t){for(var e,r,n,i,o=0,a=0,s=t.length;a<s;a+=4)e=t[a],r=t[a+1],n=t[a+2],i=t[a+3],t[o++]=255+e*(-6747147073602441e-20*e+.0008379262121013727*r+.0002894718188643294*n+.003264231057537806*i-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*n-.0002748769067499491*i-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*i+.0686742238595345)-i*(.0003361971776183937*i+.7430659151342254),t[o++]=255+e*(.00013596372813588848*e+.000924537132573585*r+.00010567359618683593*n+.0004791864687436512*i-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*n+.0020200308977307156*i-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*i-.09751927774728933)-i*(.0003189131175883281*i+.7364883807733168),t[o++]=255+e*(13598650411385307e-21*e+.00012423956175490851*r+.0004751985097583589*n-36729317476630422e-22*i-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*n+.0007782692450036253*i-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*i-.7591454649749609)-i*(.0003435319965105553*i+.7063770186160144);return t.subarray(0,o)},getData:function(t){var r=t.width,n=t.height,i=t.forceRGB,o=t.isSourcePDF;if(this.p>4)throw new e(\"Unsupported color mode\");var a=this.Y(r,n,o);if(1===this.p&&i){for(var s=a.length,u=new Uint8ClampedArray(3*s),c=0,l=0;l<s;l++){var f=a[l];u[c++]=f,u[c++]=f,u[c++]=f}return u}if(3===this.p&&this.f)return this.z(a);if(4===this.p){if(this.f)return i?this.O(a):this.r(a);if(i)return this.U(a)}return a}},h}();function i(t,e){return t[e]<<8|t[e+1]}t.JpegDecoder=r}(),t.encodeImage=function(e,r,n,i){var o={t256:[r],t257:[n],t258:[8,8,8,8],t259:[1],t262:[2],t273:[1e3],t277:[4],t278:[n],t279:[r*n*4],t282:[[72,1]],t283:[[72,1]],t284:[1],t286:[[0,1]],t287:[[0,1]],t296:[1],t305:[\"Photopea (UTIF.js)\"],t338:[1]};if(i)for(var a in i)o[a]=i[a];var s=new Uint8Array(t.encode([o])),u=new Uint8Array(e),c=new Uint8Array(1e3+r*n*4);for(a=0;a<s.length;a++)c[a]=s[a];for(a=0;a<u.length;a++)c[1e3+a]=u[a];return c.buffer},t.encode=function(e){var r=new Uint8Array(2e4),n=4,i=t._binBE;r[0]=r[1]=77,i.writeUshort(r,2,42);var o=8;i.writeUint(r,n,o),n+=4;for(var a=0;a<e.length;a++){var s=t._writeIFD(i,t._types.basic,r,o,e[a]);o=s[1],a<e.length-1&&(3&o&&(o+=4-(3&o)),i.writeUint(r,s[0],o))}return r.slice(0,o).buffer},t.decode=function(e,r){null==r&&(r={parseMN:!0,debug:!1});var n=new Uint8Array(e),i=0,a=t._binBE.readASCII(n,i,2);i+=2;var s=\"II\"==a?t._binLE:t._binBE;s.readUshort(n,i);i+=2;var u=s.readUint(n,i);i+=4;for(var c=[];;){var l=s.readUshort(n,u),f=s.readUshort(n,u+4);if(0!=l&&(f<1||13<f)){o(\"error in TIFF\");break}if(t._readIFD(s,n,u,c,0,r),0==(u=s.readUint(n,u+2+12*l)))break}return c},t.decodeImage=function(e,r,n){if(!r.data){var i=new Uint8Array(e),a=t._binBE.readASCII(i,0,2);if(null!=r.t256){r.isLE=\"II\"==a,r.width=r.t256[0],r.height=r.t257[0];var s=r.t259?r.t259[0]:1,u=r.t266?r.t266[0]:1;r.t284&&2==r.t284[0]&&o(\"PlanarConfiguration 2 should not be used!\"),7==s&&r.t258&&r.t258.length>3&&(r.t258=r.t258.slice(0,3));var c=r.t277?r.t277[0]:1,l=(r.t258?r.t258[0]:1)*c;1==s&&null!=r.t279&&r.t278&&32803==r.t262[0]&&(l=Math.round(8*r.t279[0]/(r.width*r.t278[0]))),r.t50885&&4==r.t50885[0]&&(l=3*r.t258[0]);var f=8*Math.ceil(r.width*l/8),h=r.t273;(null==h||r.t322)&&(h=r.t324);var p=r.t279;1==s&&1==h.length&&(p=[r.height*(f>>>3)]),(null==p||r.t322)&&(p=r.t325);var d=new Uint8Array(r.height*(f>>>3)),m=0;if(null!=r.t322){for(var y=r.t322[0],g=r.t323[0],b=Math.floor((r.width+y-1)/y),v=Math.floor((r.height+g-1)/g),w=new Uint8Array(0|Math.ceil(y*g*l/8)),_=0;_<v;_++)for(var x=0;x<b;x++){var k=_*b+x;w.fill(0),t.decode._decompress(r,n,i,h[k],p[k],s,w,0,u,y,g),6==s?d=w:t._copyTile(w,0|Math.ceil(y*l/8),g,d,0|Math.ceil(r.width*l/8),r.height,0|Math.ceil(x*y*l/8),_*g)}m=8*d.length}else{if(null==h)return;var E=r.t278?r.t278[0]:r.height;E=Math.min(E,r.height);for(k=0;k<h.length;k++)t.decode._decompress(r,n,i,h[k],p[k],s,d,0|Math.ceil(m/8),u,r.width,E),m+=f*E;m=Math.min(m,8*d.length)}r.data=new Uint8Array(d.buffer,0,0|Math.ceil(m/8))}}},t.decode._decompress=function(r,n,i,a,s,u,c,l,f,h,p){if(r.t271&&\"Panasonic\"==r.t271[0]&&r.t45&&6==r.t45[0]&&(u=34316),1==u)for(var d=0;d<s;d++)c[l+d]=i[a+d];else if(2==u)t.decode._decodeG2(i,a,s,c,l,h,f);else if(3==u)t.decode._decodeG3(i,a,s,c,l,h,f,!!r.t292&&!(1&~r.t292[0]));else if(4==u)t.decode._decodeG4(i,a,s,c,l,h,f);else if(5==u)t.decode._decodeLZW(i,a,s,c,l,8);else if(6==u)t.decode._decodeOldJPEG(r,i,a,s,c,l);else if(7==u||34892==u)t.decode._decodeNewJPEG(r,i,a,s,c,l);else if(8==u||32946==u){var m=new Uint8Array(i.buffer,a+2,s-6),y=e.inflateRaw(m);l+y.length<=c.length&&c.set(y,l)}else 9==u?t.decode._decodeVC5(i,a,s,c,l,r.t33422):32767==u?t.decode._decodeARW(r,i,a,s,c,l):32773==u?t.decode._decodePackBits(i,a,s,c,l):32809==u?t.decode._decodeThunder(i,a,s,c,l):34316==u?t.decode._decodePanasonic(r,i,a,s,c,l):34713==u?t.decode._decodeNikon(r,n,i,a,s,c,l):34676==u?t.decode._decodeLogLuv32(r,i,a,s,c,l):o(\"Unknown compression\",u);var g=r.t258?Math.min(32,r.t258[0]):1,b=r.t277?r.t277[0]:1,v=g*b>>>3,w=Math.ceil(g*b*h/8);if(16==g&&!r.isLE&&null==r.t33422)for(var _=0;_<p;_++)for(var x=l+_*w,k=1;k<w;k+=2){var E=c[x+k];c[x+k]=c[x+k-1],c[x+k-1]=E}if(r.t317&&2==r.t317[0])for(_=0;_<p;_++){var S=l+_*w;if(16==g)for(d=v;d<w;d+=2){var T=(c[S+d+1]<<8|c[S+d])+(c[S+d-v+1]<<8|c[S+d-v]);c[S+d]=255&T,c[S+d+1]=T>>>8&255}else if(3==b)for(d=3;d<w;d+=3)c[S+d]=c[S+d]+c[S+d-3]&255,c[S+d+1]=c[S+d+1]+c[S+d-2]&255,c[S+d+2]=c[S+d+2]+c[S+d-1]&255;else for(d=v;d<w;d++)c[S+d]=c[S+d]+c[S+d-v]&255}},t.decode._decodePanasonic=function(t,e,r,n,i,o){var a,s,u,c,l,f,h,p,d=e.buffer,m=t.t2[0],y=t.t3[0],g=t.t10[0],b=t.t45[0],v=0,w=0,_=0,x=0,k=6==b?new Uint32Array(18):new Uint8Array(16),E=[0,0],S=[0,0],T=0,A=new Uint8Array(16384),D=new Uint16Array(i.buffer);function O(t){if(0==_){var e=new Uint8Array(d,r+w+8184,8200),n=new Uint8Array(d,r+w,8184);A.set(e),A.set(n,e.length),w+=16384}if(5!=b)return(A[x=(_=_-t&131071)>>3^16368]|A[x+1]<<8)>>(7&_)&~(-1<<t);for(a=0;a<16;a++)k[a]=A[_++],_&=16383}function I(t){return A[_+15-t]}function P(){E[0]=0,E[1]=0,S[0]=0,S[1]=0}if(7==b)throw b;if(6==b){var C=12==g,L=C?function(){k[0]=I(0)<<4|I(1)>>4,k[1]=4095&((15&I(1))<<8|I(2)),k[2]=I(3)>>6&3,k[3]=(63&I(3))<<2|I(4)>>6,k[4]=(63&I(4))<<2|I(5)>>6,k[5]=(63&I(5))<<2|I(6)>>6,k[6]=I(6)>>4&3,k[7]=(15&I(6))<<4|I(7)>>4,k[8]=(15&I(7))<<4|I(8)>>4,k[9]=(15&I(8))<<4|I(9)>>4,k[10]=I(9)>>2&3,k[11]=(3&I(9))<<6|I(10)>>2,k[12]=(3&I(10))<<6|I(11)>>2,k[13]=(3&I(11))<<6|I(12)>>2,k[14]=3&I(12),k[15]=I(13),k[16]=I(14),k[17]=I(15),_+=16,x=0}:function(){k[0]=I(0)<<6|I(1)>>2,k[1]=16383&((3&I(1))<<12|I(2)<<4|I(3)>>4),k[2]=I(3)>>2&3,k[3]=(3&I(3))<<8|I(4),k[4]=I(5)<<2|I(6)>>6,k[5]=(63&I(6))<<4|I(7)>>4,k[6]=I(7)>>2&3,k[7]=(3&I(7))<<8|I(8),k[8]=I(9)<<2&1020|I(10)>>6,k[9]=1023&(I(10)<<4|I(11)>>4),k[10]=I(11)>>2&3,k[11]=(3&I(11))<<8|I(12),k[12]=1023&(I(13)<<2&1020|I(14)>>6),k[13]=1023&(I(14)<<4|I(15)>>4),_+=16,x=0},M=C?14:11,F=C?128:512,B=C?2048:8192,j=C?16383:65535,N=C?4095:16383,R=m/M,z=16*R,U=C?18:14;for(f=0;f<y-15;f+=16){var G=Math.min(16,y-f),H=z*G;for(A=new Uint8Array(d,r+v,H),_=0,v+=H,p=0,h=0;p<G;p++,h=0){T=(f+p)*m;for(var q=0;q<R;q++)for(L(),P(),u=0,l=0,a=0;a<M;a++){if(c=1&a,a%3==2){var V=x<U?k[x++]:0;3==V&&(V=4),l=F<<V,u=1<<V}var W=x<U?k[x++]:0;E[c]?(W*=u,l<B&&S[c]>l&&(W+=S[c]-l),S[c]=W):(E[c]=W,W?S[c]=W:W=S[c]),D[T+h++]=W-15<=j?W-15&j:W+2147483633>>31&N}}}}else if(5==b){var Z=12==g?10:9;for(f=0;f<y;f++)for(h=0;h<m;h+=Z)O(0),12==g?(D[T++]=((15&k[1])<<8)+k[0],D[T++]=16*k[2]+(k[1]>>4),D[T++]=((15&k[4])<<8)+k[3],D[T++]=16*k[5]+(k[4]>>4),D[T++]=((15&k[7])<<8)+k[6],D[T++]=16*k[8]+(k[7]>>4),D[T++]=((15&k[10])<<8)+k[9],D[T++]=16*k[11]+(k[10]>>4),D[T++]=((15&k[13])<<8)+k[12],D[T++]=16*k[14]+(k[13]>>4)):14==g&&(D[T++]=k[0]+((63&k[1])<<8),D[T++]=(k[1]>>6)+4*k[2]+((15&k[3])<<10),D[T++]=(k[3]>>4)+16*k[4]+((3&k[5])<<12),D[T++]=((252&k[5])>>2)+(k[6]<<6),D[T++]=k[7]+((63&k[8])<<8),D[T++]=(k[8]>>6)+4*k[9]+((15&k[10])<<10),D[T++]=(k[10]>>4)+16*k[11]+((3&k[12])<<12),D[T++]=((252&k[12])>>2)+(k[13]<<6),D[T++]=k[14]+((63&k[15])<<8))}else{if(4!=b)throw b;for(f=0;f<y;f++)for(h=0;h<m;h++)c=1&(a=h%14),0==a&&P(),a%3==2&&(u=4>>3-O(2)),S[c]?0!=(s=O(8))&&(E[c]-=128<<u,(E[c]<0||4==u)&&(E[c]&=~(-1<<u)),E[c]+=s<<u):(S[c]=O(8),(S[c]||a>11)&&(E[c]=S[c]<<4|O(4))),D[T++]=E[1&h]}},t.decode._decodeVC5=function(){var e,r,n,i=[1,0,1,0,2,2,1,1,3,7,1,2,5,25,1,3,6,48,1,4,6,54,1,5,7,111,1,8,7,99,1,6,7,105,12,0,7,107,1,7,8,209,20,0,8,212,1,9,8,220,1,10,9,393,1,11,9,394,32,0,9,416,1,12,9,427,1,13,10,887,1,18,10,784,1,14,10,790,1,15,10,835,60,0,10,852,1,16,10,885,1,17,11,1571,1,19,11,1668,1,20,11,1669,100,0,11,1707,1,21,11,1772,1,22,12,3547,1,29,12,3164,1,24,12,3166,1,25,12,3140,1,23,12,3413,1,26,12,3537,1,27,12,3539,1,28,13,7093,1,35,13,6283,1,30,13,6331,1,31,13,6335,180,0,13,6824,1,32,13,7072,1,33,13,7077,320,0,13,7076,1,34,14,12565,1,36,14,12661,1,37,14,12669,1,38,14,13651,1,39,14,14184,1,40,15,28295,1,46,15,28371,1,47,15,25320,1,42,15,25336,1,43,15,25128,1,41,15,27300,1,44,15,28293,1,45,16,50259,1,48,16,50643,1,49,16,50675,1,50,16,56740,1,53,16,56584,1,51,16,56588,1,52,17,113483,1,61,17,113482,1,60,17,101285,1,55,17,101349,1,56,17,109205,1,57,17,109207,1,58,17,100516,1,54,17,113171,1,59,18,202568,1,62,18,202696,1,63,18,218408,1,64,18,218412,1,65,18,226340,1,66,18,226356,1,67,18,226358,1,68,19,402068,1,69,19,405138,1,70,19,405394,1,71,19,436818,1,72,19,436826,1,73,19,452714,1,75,19,452718,1,76,19,452682,1,74,20,804138,1,77,20,810279,1,78,20,810790,1,79,20,873638,1,80,20,873654,1,81,20,905366,1,82,20,905430,1,83,20,905438,1,84,21,1608278,1,85,21,1620557,1,86,21,1621582,1,87,21,1621583,1,88,21,1747310,1,89,21,1810734,1,90,21,1810735,1,91,21,1810863,1,92,21,1810879,1,93,22,3621725,1,99,22,3621757,1,100,22,3241112,1,94,22,3494556,1,95,22,3494557,1,96,22,3494622,1,97,22,3494623,1,98,23,6482227,1,102,23,6433117,1,101,23,6989117,1,103,23,6989119,1,105,23,6989118,1,104,23,7243449,1,106,23,7243512,1,107,24,13978233,1,111,24,12964453,1,109,24,12866232,1,108,24,14486897,1,113,24,13978232,1,110,24,14486896,1,112,24,14487026,1,114,24,14487027,1,115,25,25732598,1,225,25,25732597,1,189,25,25732596,1,188,25,25732595,1,203,25,25732594,1,202,25,25732593,1,197,25,25732592,1,207,25,25732591,1,169,25,25732590,1,223,25,25732589,1,159,25,25732522,1,235,25,25732579,1,152,25,25732575,1,192,25,25732489,1,179,25,25732573,1,201,25,25732472,1,172,25,25732576,1,149,25,25732488,1,178,25,25732566,1,120,25,25732571,1,219,25,25732577,1,150,25,25732487,1,127,25,25732506,1,211,25,25732548,1,125,25,25732588,1,158,25,25732486,1,247,25,25732467,1,238,25,25732508,1,163,25,25732552,1,228,25,25732603,1,183,25,25732513,1,217,25,25732587,1,168,25,25732520,1,122,25,25732484,1,128,25,25732562,1,249,25,25732505,1,187,25,25732504,1,186,25,25732483,1,136,25,25928905,1,181,25,25732560,1,255,25,25732500,1,230,25,25732482,1,135,25,25732555,1,233,25,25732568,1,222,25,25732583,1,145,25,25732481,1,134,25,25732586,1,167,25,25732521,1,248,25,25732518,1,209,25,25732480,1,243,25,25732512,1,216,25,25732509,1,164,25,25732547,1,140,25,25732479,1,157,25,25732544,1,239,25,25732574,1,191,25,25732564,1,251,25,25732478,1,156,25,25732546,1,139,25,25732498,1,242,25,25732557,1,133,25,25732477,1,162,25,25732515,1,213,25,25732584,1,165,25,25732514,1,212,25,25732476,1,227,25,25732494,1,198,25,25732531,1,236,25,25732530,1,234,25,25732529,1,117,25,25732528,1,215,25,25732527,1,124,25,25732526,1,123,25,25732525,1,254,25,25732524,1,253,25,25732523,1,148,25,25732570,1,218,25,25732580,1,146,25,25732581,1,147,25,25732569,1,224,25,25732533,1,143,25,25732540,1,184,25,25732541,1,185,25,25732585,1,166,25,25732556,1,132,25,25732485,1,129,25,25732563,1,250,25,25732578,1,151,25,25732501,1,119,25,25732502,1,193,25,25732536,1,176,25,25732496,1,245,25,25732553,1,229,25,25732516,1,206,25,25732582,1,144,25,25732517,1,208,25,25732558,1,137,25,25732543,1,241,25,25732466,1,237,25,25732507,1,190,25,25732542,1,240,25,25732551,1,131,25,25732554,1,232,25,25732565,1,252,25,25732475,1,171,25,25732493,1,205,25,25732492,1,204,25,25732491,1,118,25,25732490,1,214,25,25928904,1,180,25,25732549,1,126,25,25732602,1,182,25,25732539,1,175,25,25732545,1,141,25,25732559,1,138,25,25732537,1,177,25,25732534,1,153,25,25732503,1,194,25,25732606,1,160,25,25732567,1,121,25,25732538,1,174,25,25732497,1,246,25,25732550,1,130,25,25732572,1,200,25,25732474,1,170,25,25732511,1,221,25,25732601,1,196,25,25732532,1,142,25,25732519,1,210,25,25732495,1,199,25,25732605,1,155,25,25732535,1,154,25,25732499,1,244,25,25732510,1,220,25,25732600,1,195,25,25732607,1,161,25,25732604,1,231,25,25732473,1,173,25,25732599,1,226,26,51465122,1,116,26,51465123,0,1],o=[3,3,3,3,2,2,2,1,1,1];function a(t){var e=t[1],r=t[0][e>>>3]>>>7-(7&e)&1;return t[1]++,r}function s(t,r){if(null==e){e={};for(var n=0;n<i.length;n+=4)e[i[n+1]]=i.slice(n,n+4)}for(var o=a(t),s=e[o];null==s;)o=o<<1|a(t),s=e[o];var u=s[3];0!=u&&(u=0==a(t)?u:-u),r[0]=s[2],r[1]=u}function u(t,e){for(var r=0;r<e;r++)1&~t||t++,t>>>=1;return t}function c(t,e){return t>>e}function l(t,e,r,n,i,o){e[r]=c(c(11*t[i]-4*t[i+o]+t[i+o+o]+4,3)+t[n],1),e[r+o]=c(c(5*t[i]+4*t[i+o]-t[i+o+o]+4,3)-t[n],1)}function f(t,e,r,n,i,o){var a=t[i-o]-t[i+o],s=t[i],u=t[n];e[r]=c(c(a+4,3)+s+u,1),e[r+o]=c(c(4-a,3)+s-u,1)}function h(t,e,r,n,i,o){e[r]=c(c(5*t[i]+4*t[i-o]-t[i-o-o]+4,3)+t[n],1),e[r+o]=c(c(11*t[i]-4*t[i-o]+t[i-o-o]+4,3)-t[n],1)}function p(t){return t=n[t=t<0?0:t>4095?4095:t]>>>2}return function(e,i,a,c,d,m){c=new Uint16Array(c.buffer),Date.now();var y,g,b,v,w,_,x,k,E=t._binBE,S=i+a;i+=4;for(var T=1==m[0];i<S;){var A=E.readShort(e,i),D=E.readUshort(e,i+2);if(i+=4,12==A)F=D;else if(20==A)y=D;else if(21==A)g=D;else if(48==A)b=D;else if(53==A)v=D;else if(35==A)D;else if(62==A)w=D;else if(101==A)D;else if(109==A)_=D;else if(84==A)D;else if(106==A)D;else if(107==A)D;else if(108==A)D;else if(102==A)D;else if(104==A)et=D;else if(105==A)D;else{var O=A<0?-A:A,I=65280&O,P=0;if(24576&O&&(8192&O?(P=65535&D,P+=(255&O)<<16):P=65535&D),24576&~O){if(16388==O)i+=4*P;else if(8192!=I&&8448!=I&&9216!=I)throw O.toString(16)}else{if(null==x){x=[];for(var C=0;C<4;C++)x[C]=new Int16Array((y>>>1)*(g>>>1));k=new Int16Array((y>>>1)*(g>>>1)),r=new Int16Array(1024);for(C=0;C<1024;C++){var L=C-512,M=Math.abs(L),F=Math.floor(768*M*M*M/16581375)+M;r[C]=Math.sign(L)*F}n=new Uint16Array(4096);for(C=0;C<4096;C++){var B=C,j=65535*(Math.pow(113,B/4095)-1)/112;n[C]=Math.min(j,65535)}}var N=x[w],R=u(y,1+o[b]),z=u(g,1+o[b]);if(0==b)for(var U=0;U<z;U++)for(var G=0;G<R;G++){var H=i+2*(U*R+G);N[U*(y>>>1)+G]=e[H]<<8|e[H+1]}else{var q=[e,8*i],V=[],W=0,Z=R*z,Y=[0,0],X=0;for(D=0;W<Z;)for(s(q,Y),X=Y[0],D=Y[1];X>0;)V[W++]=D,X--;var K=(b-1)%3,J=1!=K?R:0,$=0!=K?z:0;for(U=0;U<z;U++){var Q=(U+$)*(y>>>1)+J,tt=U*R;for(G=0;G<R;G++)N[Q+G]=r[V[tt+G]+512]*v}if(2==K){var et=y>>>1,rt=2*R,nt=2*z;for(U=0;U<z;U++)for(G=0;G<rt;G++){C=2*U*et+G;var it=z*et+(at=U*et+G);0==U?l(N,k,C,it,at,et):U==z-1?h(N,k,C,it,at,et):f(N,k,C,it,at,et)}var ot=N;N=k,k=ot;for(U=0;U<nt;U++)for(G=0;G<R;G++){var at;C=U*et+2*G,it=R+(at=U*et+G);0==G?l(N,k,C,it,at,1):G==R-1?h(N,k,C,it,at,1):f(N,k,C,it,at,1)}ot=N;N=k,k=ot;for(var st=[],ut=2-~~((b-1)/3),ct=0;ct<3;ct++)st[ct]=_>>14-2*ct&3;var lt=st[ut];if(0!=lt)for(U=0;U<nt;U++)for(G=0;G<rt;G++){N[C=U*et+G]=N[C]<<lt}}}if(9==b&&3==w){var ft=x[0],ht=x[1],pt=x[2],dt=x[3];for(U=0;U<g;U+=2)for(G=0;G<y;G+=2){var mt=U*y+G,yt=ft[H=(U>>>1)*(y>>>1)+(G>>>1)],gt=ht[H]-2048,bt=pt[H]-2048,vt=dt[H]-2048,wt=(gt<<1)+yt,_t=(bt<<1)+yt,xt=yt+vt,kt=yt-vt;T?(c[mt]=p(xt),c[mt+1]=p(_t),c[mt+y]=p(wt),c[mt+y+1]=p(kt)):(c[mt]=p(wt),c[mt+1]=p(xt),c[mt+y]=p(kt),c[mt+y+1]=p(_t))}}i+=4*P}}}Date.now()}}(),t.decode._decodeLogLuv32=function(t,e,r,n,i,o){for(var a=t.width,s=4*a,u=0,c=new Uint8Array(s);u<n;){for(var l=0;l<s;){var f=e[r+u];if(u++,f<128){for(var h=0;h<f;h++)c[l+h]=e[r+u+h];l+=f,u+=f}else{f-=126;for(h=0;h<f;h++)c[l+h]=e[r+u];l+=f,u++}}for(var p=0;p<a;p++)i[o+0]=c[p],i[o+1]=c[p+a],i[o+2]=c[p+2*a],i[o+4]=c[p+3*a],o+=6}},t.decode._ljpeg_diff=function(e,r,n){var i,o,a=t.decode._getbithuff;return i=a(e,r,n[0],n),(o=a(e,r,i,0))&1<<i-1||(o-=(1<<i)-1),o},t.decode._decodeARW=function(e,r,n,i,o,a){var s=e.t256[0],u=e.t257[0],c=e.t258[0],l=e.isLE?t._binLE:t._binBE;if(s*u==i||s*u*1.5==i)if(s*u*1.5!=i){var f,h,p,d,m,y,g,b,v=new Uint16Array(16),w=new Uint8Array(s+1);for(D=0;D<u;D++){for(var _=0;_<s;_++)w[_]=r[n++];for(b=0,A=0;A<s-30;b+=16){for(h=2047&(f=l.readUint(w,b)),p=2047&f>>>11,d=15&f>>>22,m=15&f>>>26,y=0;y<4&&128<<y<=h-p;y++);for(g=30,x=0;x<16;x++)x==d?v[x]=h:x==m?v[x]=p:(v[x]=((l.readUshort(w,b+(g>>3))>>>(7&g)&127)<<y)+p,v[x]>2047&&(v[x]=2047),g+=7);for(x=0;x<16;x++,A+=2){B=v[x]<<1;t.decode._putsF(o,(D*s+A)*c,B<<16-c)}A-=1&A?1:31}}}else for(var x=0;x<i;x+=3){var k=r[n+x+0],E=r[n+x+1],S=r[n+x+2];o[a+x]=E<<4|k>>>4,o[a+x+1]=k<<4|S>>>4,o[a+x+2]=S<<4|E>>>4}else{u+=8;var T,A,D,O=[n,0,0,0],I=new Uint16Array(32770),P=[3857,3856,3599,3342,3085,2828,2571,2314,2057,1800,1543,1286,1029,772,771,768,514,513],C=0,L=t.decode._ljpeg_diff;for(I[0]=15,T=x=0;x<18;x++)for(var M=32768>>>(P[x]>>>8),F=0;F<M;F++)I[++T]=P[x];for(A=s;A--;)for(D=0;D<u+1;D+=2)if(D==u&&(D=1),C+=L(r,O,I),D<u){var B=4095&C;t.decode._putsF(o,(D*s+A)*c,B<<16-c)}}},t.decode._decodeNikon=function(e,r,n,i,o,a,s){var u=[[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,5,4,3,6,2,7,1,0,8,9,11,10,12],[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,57,90,56,39,22,5,4,3,2,1,0,11,12,12],[0,0,1,4,2,3,1,2,0,0,0,0,0,0,0,0,0,5,4,6,3,7,2,8,1,9,0,10,11,12],[0,0,1,4,3,1,1,1,1,1,2,0,0,0,0,0,0,5,6,4,7,8,3,9,2,1,0,10,11,12,13,14],[0,0,1,5,1,1,1,1,1,1,1,2,0,0,0,0,0,8,92,75,58,41,7,6,5,4,3,2,1,0,13,14],[0,0,1,4,2,2,3,1,2,0,0,0,0,0,0,0,0,7,6,8,5,9,4,10,3,11,12,2,0,1,13,14]],c=e.t256[0],l=e.t257[0],f=e.t258[0],h=0,p=0,d=t.decode._make_decoder,m=t.decode._getbithuff,y=r[0].exifIFD.makerNote,g=y.t150?y.t150:y.t140,b=0,v=g[b++],w=g[b++];73!=v&&88!=w||(b+=2110),70==v&&(h=2),14==f&&(h+=3);for(var _=[[0,0],[0,0]],x=e.isLE?t._binLE:t._binBE,k=0;k<2;k++)for(var E=0;E<2;E++)_[k][E]=x.readShort(g,b),b+=2;var S,T,A,D,O,I=1<<f&32767,P=0,C=x.readShort(g,b);b+=2,C>1&&(P=Math.floor(I/(C-1))),68==v&&32==w&&P>0&&(p=x.readShort(g,562));var L=[0,0],M=d(u[h]),F=[i,0,0,0];for(S=0;S<l;S++)for(p&&S==p&&(M=d(u[h+1])),T=0;T<c;T++){k=m(n,F,M[0],M),(O=1+(m(n,F,(A=15&k)-(D=k>>>4),0)<<1)<<D>>>1)&1<<A-1||(O-=(1<<A)-(0==D?1:0)),T<2?L[T]=_[1&S][T]+=O:L[1&T]+=O;var B=Math.min(Math.max(L[1&T],0),(1<<f)-1),j=(S*c+T)*f;t.decode._putsF(a,j,B<<16-f)}},t.decode._putsF=function(t,e,r){r<<=8-(7&e);var n=e>>>3;t[n]|=r>>>16,t[n+1]|=r>>>8,t[n+2]|=r},t.decode._getbithuff=function(e,r,n,i){t.decode._get_byte;var o,a=r[0],s=r[1],u=r[2],c=r[3];if(0==n||u<0)return 0;for(;!c&&u<n&&-1!=(o=e[a++])&&!(c=0);)s=(s<<8)+o,u+=8;if(o=s<<32-u>>>32-n,i?(u-=i[o+1]>>>8,o=255&i[o+1]):u-=n,u<0)throw\"e\";return r[0]=a,r[1]=s,r[2]=u,r[3]=c,o},t.decode._make_decoder=function(t){var e,r,n,i,o,a=[];for(e=16;0!=e&&!t[e];e--);var s=17;for(a[0]=e,n=r=1;r<=e;r++)for(i=0;i<t[r];i++,++s)for(o=0;o<1<<e-r;o++)n<=1<<e&&(a[n++]=r<<8|t[s]);return a},t.decode._decodeNewJPEG=function(e,r,n,i,o,a){i=Math.min(i,r.length-n);var s=e.t347,u=s?s.length:0,c=new Uint8Array(u+i);if(s){for(var l=0,f=0;f<u-1&&(255!=s[f]||217!=s[f+1]);f++)c[l++]=s[f];var h=r[n],p=r[n+1];255==h&&216==p||(c[l++]=h,c[l++]=p);for(f=2;f<i;f++)c[l++]=r[n+f]}else for(f=0;f<i;f++)c[f]=r[n+f];if(32803==e.t262[0]||7==e.t259[0]&&34892==e.t262[0]){var d=e.t258[0],m=t.LosslessJpegDecode(c),y=m.length;if(16==d)if(e.isLE)for(f=0;f<y;f++)o[a+(f<<1)]=255&m[f],o[a+(f<<1)+1]=m[f]>>>8;else for(f=0;f<y;f++)o[a+(f<<1)]=m[f]>>>8,o[a+(f<<1)+1]=255&m[f];else if(14==d||12==d||10==d){var g=16-d;for(f=0;f<y;f++)t.decode._putsF(o,f*d,m[f]<<g)}else{if(8!=d)throw new Error(\"unsupported bit depth \"+d);for(f=0;f<y;f++)o[a+f]=m[f]}}else{var b=new t.JpegDecoder;b.parse(c);var v=b.getData({width:b.width,height:b.height,forceRGB:!0,isSourcePDF:!1});for(f=0;f<v.length;f++)o[a+f]=v[f]}6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodeOldJPEGInit=function(t,e,r,n){var i,a,s,u,c,l=216,f=0,h=0,p=!1,d=t.t513,m=d?d[0]:0,y=t.t514,g=y?y[0]:0,b=t.t324||t.t273||d,v=t.t530,w=0,_=0,x=t.t277?t.t277[0]:1,k=t.t515;if(b&&(h=b[0],p=b.length>1),!p){if(255==e[r]&&e[r+1]==l)return{jpegOffset:r};if(null!=d&&(255==e[r+m]&&e[r+m+1]==l?f=r+m:o(\"JPEGInterchangeFormat does not point to SOI\"),null==y?o(\"JPEGInterchangeFormatLength field is missing\"):(m>=h||m+g<=h)&&o(\"JPEGInterchangeFormatLength field value is invalid\"),null!=f))return{jpegOffset:f}}if(null!=v&&(w=v[0],_=v[1]),null!=d&&null!=y)if(g>=2&&m+g<=h){for(i=255==e[r+m+g-2]&&e[r+m+g-1]==l?new Uint8Array(g-2):new Uint8Array(g),s=0;s<i.length;s++)i[s]=e[r+m+s];o(\"Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables\")}else o(\"JPEGInterchangeFormat+JPEGInterchangeFormatLength > offset to first strip or tile\");if(null==i){var E=0,S=[];S[E++]=255,S[E++]=l;var T=t.t519;if(null==T)throw new Error(\"JPEGQTables tag is missing\");for(s=0;s<T.length;s++)for(S[E++]=255,S[E++]=219,S[E++]=0,S[E++]=67,S[E++]=s,u=0;u<64;u++)S[E++]=e[r+T[s]+u];for(c=0;c<2;c++){var A=t[0==c?\"t520\":\"t521\"];if(null==A)throw new Error((0==c?\"JPEGDCTables\":\"JPEGACTables\")+\" tag is missing\");for(s=0;s<A.length;s++){S[E++]=255,S[E++]=196;var D=19;for(u=0;u<16;u++)D+=e[r+A[s]+u];for(S[E++]=D>>>8,S[E++]=255&D,S[E++]=s|c<<4,u=0;u<16;u++)S[E++]=e[r+A[s]+u];for(u=0;u<D;u++)S[E++]=e[r+A[s]+16+u]}}if(S[E++]=255,S[E++]=192,S[E++]=0,S[E++]=8+3*x,S[E++]=8,S[E++]=t.height>>>8&255,S[E++]=255&t.height,S[E++]=t.width>>>8&255,S[E++]=255&t.width,S[E++]=x,1==x)S[E++]=1,S[E++]=17,S[E++]=0;else for(s=0;s<3;s++)S[E++]=s+1,S[E++]=0!=s?17:(15&w)<<4|15&_,S[E++]=s;null!=k&&0!=k[0]&&(S[E++]=255,S[E++]=221,S[E++]=0,S[E++]=4,S[E++]=k[0]>>>8&255,S[E++]=255&k[0]),i=new Uint8Array(S)}var O=-1;for(s=0;s<i.length-1;){if(255==i[s]&&192==i[s+1]){O=s;break}s++}if(-1==O){var I=new Uint8Array(i.length+10+3*x);I.set(i);var P=i.length;if(O=i.length,(i=I)[P++]=255,i[P++]=192,i[P++]=0,i[P++]=8+3*x,i[P++]=8,i[P++]=t.height>>>8&255,i[P++]=255&t.height,i[P++]=t.width>>>8&255,i[P++]=255&t.width,i[P++]=x,1==x)i[P++]=1,i[P++]=17,i[P++]=0;else for(s=0;s<3;s++)i[P++]=s+1,i[P++]=0!=s?17:(15&w)<<4|15&_,i[P++]=s}if(255==e[h]&&218==e[h+1]){var C=e[h+2]<<8|e[h+3];for((a=new Uint8Array(C+2))[0]=e[h],a[1]=e[h+1],a[2]=e[h+2],a[3]=e[h+3],s=0;s<C-2;s++)a[s+4]=e[h+s+4]}else{var L=0;if((a=new Uint8Array(8+2*x))[L++]=255,a[L++]=218,a[L++]=0,a[L++]=6+2*x,a[L++]=x,1==x)a[L++]=1,a[L++]=0;else for(s=0;s<3;s++)a[L++]=s+1,a[L++]=s<<4|s;a[L++]=0,a[L++]=63,a[L++]=0}return{jpegOffset:r,tables:i,sosMarker:a,sofPosition:O}},t.decode._decodeOldJPEG=function(e,r,n,i,o,a){var s,u,c,l,f=t.decode._decodeOldJPEGInit(e,r,n,i);if(null!=f.jpegOffset)for(s=n+i-f.jpegOffset,c=new Uint8Array(s),d=0;d<s;d++)c[d]=r[f.jpegOffset+d];else{for(u=f.tables.length,(c=new Uint8Array(u+f.sosMarker.length+i+2)).set(f.tables),l=u,c[f.sofPosition+5]=e.height>>>8&255,c[f.sofPosition+6]=255&e.height,c[f.sofPosition+7]=e.width>>>8&255,c[f.sofPosition+8]=255&e.width,255==r[n]&&r[n+1]==SOS||(c.set(f.sosMarker,l),l+=sosMarker.length),d=0;d<i;d++)c[l++]=r[n+d];c[l++]=255,c[l++]=EOI}var h=new t.JpegDecoder;h.parse(c);for(var p=h.getData({width:h.width,height:h.height,forceRGB:!0,isSourcePDF:!1}),d=0;d<p.length;d++)o[a+d]=p[d];e.t262&&6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodePackBits=function(t,e,r,n,i){for(var o=new Int8Array(t.buffer),a=new Int8Array(n.buffer),s=e+r;e<s;){var u=o[e];if(e++,u>=0&&u<128)for(var c=0;c<u+1;c++)a[i]=o[e],i++,e++;if(u>=-127&&u<0){for(c=0;c<1-u;c++)a[i]=o[e],i++;e++}}return i},t.decode._decodeThunder=function(t,e,r,n,i){for(var o=[0,1,0,-1],a=[0,1,2,3,0,-3,-2,-1],s=e+r,u=2*i,c=0;e<s;){var l=t[e],f=l>>>6,h=63&l;if(e++,3==f&&(c=15&h,n[u>>>1]|=c<<4*(1-u&1),u++),0==f)for(var p=0;p<h;p++)n[u>>>1]|=c<<4*(1-u&1),u++;if(2==f)for(p=0;p<2;p++){4!=(d=h>>>3*(1-p)&7)&&(c+=a[d],n[u>>>1]|=c<<4*(1-u&1),u++)}if(1==f)for(p=0;p<3;p++){var d;2!=(d=h>>>2*(2-p)&3)&&(c+=o[d],n[u>>>1]|=c<<4*(1-u&1),u++)}}},t.decode._dmap={1:0,\"011\":1,\"000011\":2,\"0000011\":3,\"010\":-1,\"000010\":-2,\"0000010\":-3},t.decode._lens=function(){var t=function(t,e,r,n){for(var i=0;i<e.length;i++)t[e[i]]=r+i*n},e=\"00110101,000111,0111,1000,1011,1100,1110,1111,10011,10100,00111,01000,001000,000011,110100,110101,101010,101011,0100111,0001100,0001000,0010111,0000011,0000100,0101000,0101011,0010011,0100100,0011000,00000010,00000011,00011010,00011011,00010010,00010011,00010100,00010101,00010110,00010111,00101000,00101001,00101010,00101011,00101100,00101101,00000100,00000101,00001010,00001011,01010010,01010011,01010100,01010101,00100100,00100101,01011000,01011001,01011010,01011011,01001010,01001011,00110010,00110011,00110100\",r=\"0000110111,010,11,10,011,0011,0010,00011,000101,000100,0000100,0000101,0000111,00000100,00000111,000011000,0000010111,0000011000,0000001000,00001100111,00001101000,00001101100,00000110111,00000101000,00000010111,00000011000,000011001010,000011001011,000011001100,000011001101,000001101000,000001101001,000001101010,000001101011,000011010010,000011010011,000011010100,000011010101,000011010110,000011010111,000001101100,000001101101,000011011010,000011011011,000001010100,000001010101,000001010110,000001010111,000001100100,000001100101,000001010010,000001010011,000000100100,000000110111,000000111000,000000100111,000000101000,000001011000,000001011001,000000101011,000000101100,000001011010,000001100110,000001100111\",n=\"11011,10010,010111,0110111,00110110,00110111,01100100,01100101,01101000,01100111,011001100,011001101,011010010,011010011,011010100,011010101,011010110,011010111,011011000,011011001,011011010,011011011,010011000,010011001,010011010,011000,010011011\",i=\"0000001111,000011001000,000011001001,000001011011,000000110011,000000110100,000000110101,0000001101100,0000001101101,0000001001010,0000001001011,0000001001100,0000001001101,0000001110010,0000001110011,0000001110100,0000001110101,0000001110110,0000001110111,0000001010010,0000001010011,0000001010100,0000001010101,0000001011010,0000001011011,0000001100100,0000001100101\",o=\"00000001000,00000001100,00000001101,000000010010,000000010011,000000010100,000000010101,000000010110,000000010111,000000011100,000000011101,000000011110,000000011111\";e=e.split(\",\"),r=r.split(\",\"),n=n.split(\",\"),i=i.split(\",\"),o=o.split(\",\");var a={},s={};return t(a,e,0,1),t(a,n,64,64),t(a,o,1792,64),t(s,r,0,1),t(s,i,64,64),t(s,o,1792,64),[a,s]}(),t.decode._decodeG4=function(e,r,n,i,o,a,s){for(var u=t.decode,c=r<<3,l=0,f=\"\",h=[],p=[],d=0;d<a;d++)p.push(0);p=u._makeDiff(p);for(var m=0,y=0,g=0,b=0,v=0,w=0,_=\"\",x=0,k=8*Math.ceil(a/8);c>>>3<r+n;){g=u._findDiff(p,m+(0==m?0:1),1-v),b=u._findDiff(p,g,v);var E=0;if(1==s&&(E=e[c>>>3]>>>7-(7&c)&1),2==s&&(E=e[c>>>3]>>>(7&c)&1),c++,f+=E,\"H\"==_){if(null!=u._lens[v][f]){var S=u._lens[v][f];f=\"\",l+=S,S<64&&(u._addNtimes(h,l,v),m+=l,v=1-v,l=0,0==--x&&(_=\"\"))}}else\"0001\"==f&&(f=\"\",u._addNtimes(h,b-m,v),m=b),\"001\"==f&&(f=\"\",_=\"H\",x=2),null!=u._dmap[f]&&(y=g+u._dmap[f],u._addNtimes(h,y-m,v),m=y,f=\"\",v=1-v);h.length==a&&\"\"==_&&(u._writeBits(h,i,8*o+w*k),v=0,w++,m=0,p=u._makeDiff(h),h=[])}},t.decode._findDiff=function(t,e,r){for(var n=0;n<t.length;n+=2)if(t[n]>=e&&t[n+1]==r)return t[n]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var r=1;r<t.length;r++)t[r-1]!=t[r]&&e.push(r,t[r]);return e.push(t.length,0,t.length,1),e},t.decode._decodeG2=function(e,r,n,i,o,a,s){for(var u=t.decode,c=r<<3,l=0,f=\"\",h=[],p=0,d=0,m=8*Math.ceil(a/8);c>>>3<r+n;){var y=0;1==s&&(y=e[c>>>3]>>>7-(7&c)&1),2==s&&(y=e[c>>>3]>>>(7&c)&1),c++,f+=y,null!=(l=u._lens[p][f])&&(u._addNtimes(h,l,p),f=\"\",l<64&&(p=1-p),h.length==a&&(u._writeBits(h,i,8*o+d*m),h=[],d++,p=0,7&c&&(c+=8-(7&c)),l>=64&&(c+=8)))}},t.decode._decodeG3=function(e,r,n,i,o,a,s,u){for(var c=t.decode,l=r<<3,f=0,h=\"\",p=[],d=[],m=0;m<a;m++)p.push(0);for(var y=0,g=0,b=0,v=0,w=0,_=-1,x=\"\",k=0,E=!0,S=8*Math.ceil(a/8);l>>>3<r+n;){b=c._findDiff(d,y+(0==y?0:1),1-w),v=c._findDiff(d,b,w);var T=0;if(1==s&&(T=e[l>>>3]>>>7-(7&l)&1),2==s&&(T=e[l>>>3]>>>(7&l)&1),l++,h+=T,E){if(null!=c._lens[w][h]){var A=c._lens[w][h];h=\"\",f+=A,A<64&&(c._addNtimes(p,f,w),w=1-w,f=0)}}else if(\"H\"==x){if(null!=c._lens[w][h]){A=c._lens[w][h];h=\"\",f+=A,A<64&&(c._addNtimes(p,f,w),y+=f,w=1-w,f=0,0==--k&&(x=\"\"))}}else\"0001\"==h&&(h=\"\",c._addNtimes(p,v-y,w),y=v),\"001\"==h&&(h=\"\",x=\"H\",k=2),null!=c._dmap[h]&&(g=b+c._dmap[h],c._addNtimes(p,g-y,w),y=g,h=\"\",w=1-w);h.endsWith(\"000000000001\")&&(_>=0&&c._writeBits(p,i,8*o+_*S),u&&(1==s&&(E=1==(e[l>>>3]>>>7-(7&l)&1)),2==s&&(E=1==(e[l>>>3]>>>(7&l)&1)),l++),h=\"\",w=0,_++,y=0,d=c._makeDiff(p),p=[])}p.length==a&&c._writeBits(p,i,8*o+_*S)},t.decode._addNtimes=function(t,e,r){for(var n=0;n<e;n++)t.push(r)},t.decode._writeBits=function(t,e,r){for(var n=0;n<t.length;n++)e[r+n>>>3]|=t[n]<<7-(r+n&7)},t.decode._decodeLZW=t.decode._decodeLZW=(u=0,c=0,l=0,f=0,h=function(){var t=r>>>3,e=(i[t]<<16|i[t+1]<<8|i[t+2])>>>24-(7&r)-c&(1<<c)-1;return r+=c,e},p=new Uint32Array(16384),d=0,m=function(t){c=t+1,u=f+1},y=function(t){for(var e=t<<2,r=p[e+2],n=s+r-1;65535!=e;)a[n--]=p[e],e=p[e+1];s+=r},g=function(t,e){var r=u<<2,n=t<<2;p[r]=p[3+(e<<2)],p[r+1]=n,p[r+2]=p[n+2]+1,p[r+3]=p[n+3],1+ ++u==1<<c&&12!=c&&c++},function(t,e,n,o,c,b){r=e<<3,i=t,a=o,s=c;var v=e+n<<3,w=0,_=0;for(function(t){if(t!=d){d=t,f=1+(l=1<<t);for(var e=0;e<f+1;e++)p[4*e]=p[4*e+3]=e,p[4*e+1]=65535,p[4*e+2]=1}}(b),m(b);r<v&&(w=h())!=f;){if(w==l){if(m(b),(w=h())==f)break;y(w)}else w<u?(y(w),g(_,w)):(g(_,_),y(u-1));_=w}return s}),t.tags={},t._types=function(){var t=new Array(250);t.fill(0);return{basic:{main:t=t.concat([0,0,0,0,4,3,3,3,3,3,0,0,3,0,0,0,3,0,0,2,2,2,2,4,3,0,0,3,4,4,3,3,5,5,3,2,5,5,0,0,0,0,4,4,0,0,3,3,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,2,2,3,5,5,3,0,3,3,4,4,4,3,4,0,0,0,0,0,0,0,0,0,3,3,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),rest:{33432:2,33434:5,33437:5,34665:4,34850:3,34853:4,34855:3,34864:3,34866:4,36864:7,36867:2,36868:2,37121:7,37377:10,37378:5,37380:10,37381:5,37383:3,37384:3,37385:3,37386:5,37510:7,37520:2,37521:2,37522:2,40960:7,40961:3,40962:4,40963:4,40965:4,41486:5,41487:5,41488:3,41985:3,41986:3,41987:3,41988:5,41989:3,41990:3,41993:3,41994:3,41995:7,41996:3,42032:2,42033:2,42034:5,42036:2,42037:2,59932:7}},gps:{main:[1,2,5,2,5,1,5,5,0,9],rest:{18:2,29:2}}}}(),t._readIFD=function(e,r,n,i,a,s){var u=e.readUshort(r,n);n+=2;var c={};s.debug&&o(\"   \".repeat(a),i.length-1,\">>>----------------\");for(var l=0;l<u;l++){var f=e.readUshort(r,n);n+=2;var h=e.readUshort(r,n);n+=2;var p=e.readUint(r,n);n+=4;var d=e.readUint(r,n);n+=4;var m=[];if(1==h||7==h){var y=p<5?n-4:d;y+p>r.buffer.byteLength&&(p=r.buffer.byteLength-y),m=new Uint8Array(r.buffer,y,p)}if(2==h){var g=p<5?n-4:d,b=r[g],v=Math.max(0,Math.min(p-1,r.length-g));b<128||0==v?m.push(e.readASCII(r,g,v)):m=new Uint8Array(r.buffer,g,v)}if(3==h)for(var w=0;w<p;w++)m.push(e.readUshort(r,(p<3?n-4:d)+2*w));if(4==h||13==h)for(w=0;w<p;w++)m.push(e.readUint(r,(p<2?n-4:d)+4*w));if(5==h||10==h){var _=5==h?e.readUint:e.readInt;for(w=0;w<p;w++)m.push([_(r,d+8*w),_(r,d+8*w+4)])}if(8==h)for(w=0;w<p;w++)m.push(e.readShort(r,(p<3?n-4:d)+2*w));if(9==h)for(w=0;w<p;w++)m.push(e.readInt(r,(p<2?n-4:d)+4*w));if(11==h)for(w=0;w<p;w++)m.push(e.readFloat(r,d+4*w));if(12==h)for(w=0;w<p;w++)m.push(e.readDouble(r,d+8*w));if(0==p||0!=m.length){if(s.debug&&o(\"   \".repeat(a),f,h,t.tags[f],m),c[\"t\"+f]=m,330==f&&c.t272&&\"DSLR-A100\"==c.t272[0]);else if(330==f||34665==f||34853==f||50740==f&&e.readUshort(r,e.readUint(m,0))<300||61440==f){var x=50740==f?[e.readUint(m,0)]:m,k=[];for(w=0;w<x.length;w++)t._readIFD(e,r,x[w],k,a+1,s);330==f&&(c.subIFD=k),34665==f&&(c.exifIFD=k[0]),34853==f&&(c.gpsiIFD=k[0]),50740==f&&(c.dngPrvt=k[0]),61440==f&&(c.fujiIFD=k[0])}if(37500==f&&s.parseMN){var E=m;if(\"Nikon\"==e.readASCII(E,0,5))c.makerNote=t.decode(E.slice(10).buffer)[0];else if(\"OLYMP\"==e.readASCII(E,0,5)||\"OM SYSTEM\"==e.readASCII(E,0,9)){var S=[8208,8224,8240,8256,8272],T=[];t._readIFD(e,E,77==E[1]?16:85==E[5]?12:8,T,a+1,s);var A=c.makerNote=T.pop();for(w=0;w<S.length;w++){var D=\"t\"+S[w];null!=A[D]&&(t._readIFD(e,E,A[D][0],T,a+1,s),A[D]=T.pop())}A.t12288&&(t._readIFD(e,A.t12288,0,T,a+1,s),A.t12288=T.pop())}else if(e.readUshort(r,d)<300&&e.readUshort(r,d+4)<=12){T=[];t._readIFD(e,r,d,T,a+1,s),c.makerNote=T[0]}}}else if(o(f,\"unknown TIFF tag type: \",h,\"num:\",p),0==l)return}return i.push(c),s.debug&&o(\"   \".repeat(a),\"<<<---------------\"),n},t._writeIFD=function(e,r,n,i,o){var a=Object.keys(o),s=a.length;o.exifIFD&&s--,o.gpsiIFD&&s--,e.writeUshort(n,i,s);for(var u=(i+=2)+12*s+4,c=0;c<a.length;c++){var l=a[c];if(\"t34665\"!=l&&\"t34853\"!=l){\"exifIFD\"==l&&(l=\"t34665\"),\"gpsiIFD\"==l&&(l=\"t34853\");var f=parseInt(l.slice(1)),h=r.main[f];if(null==h&&(h=r.rest[f]),null==h||0==h)throw new Error(\"unknown type of tag: \"+f);var p=o[l];if(34665==f)p=[u],u=t._writeIFD(e,r,n,u,o.exifIFD)[1];if(34853==f)p=[u],u=t._writeIFD(e,t._types.gps,n,u,o.gpsiIFD)[1];2==h&&(p=p[0]+\"\\0\");var d=p.length;e.writeUshort(n,i,f),i+=2,e.writeUshort(n,i,h),i+=2,e.writeUint(n,i,d);var m=[-1,1,1,2,4,8,0,1,0,4,8,0,8][h]*d,y=i+=4;if(m>4&&(e.writeUint(n,i,u),y=u),1==h||7==h)for(var g=0;g<d;g++)n[y+g]=p[g];else if(2==h)e.writeASCII(n,y,p);else if(3==h)for(g=0;g<d;g++)e.writeUshort(n,y+2*g,p[g]);else if(4==h)for(g=0;g<d;g++)e.writeUint(n,y+4*g,p[g]);else if(5==h||10==h){var b=5==h?e.writeUint:e.writeInt;for(g=0;g<d;g++){var v=p[g],w=v[0],_=v[1];if(null==w)throw\"e\";b(n,y+8*g,w),b(n,y+8*g+4,_)}}else if(9==h)for(g=0;g<d;g++)e.writeInt(n,y+4*g,p[g]);else{if(12!=h)throw h;for(g=0;g<d;g++)e.writeDouble(n,y+8*g,p[g])}m>4&&(u+=m+=1&m),i+=4}}return[i,u]},t.toRGBA8=function(t,e){function r(t){return t<.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}var n=t.width,i=t.height,a=n*i,s=t.data,u=new Uint8Array(4*a),c=t.t262?t.t262[0]:2,l=t.t258?Math.min(32,t.t258[0]):1;null==t.t262&&1==l&&(c=0);var f=t.t277?t.t277[0]:t.t258?t.t258.length:[1,1,3,1,1,4,3][c],h=t.t339?t.t339[0]:null;if(1==c&&32==l&&3!=h)throw\"e\";var p=Math.ceil(f*l*n/8);if(0==c){e=1/256;for(var d=0;d<i;d++){var m=d*p,y=d*n;if(1==l)for(var g=0;g<n;g++){var b=y+g<<2,v=s[m+(g>>3)]>>7-(7&g)&1;u[b]=u[b+1]=u[b+2]=255*(1-v),u[b+3]=255}if(4==l)for(g=0;g<n;g++){b=y+g<<2,v=s[m+(g>>1)]>>4-4*(1&g)&15;u[b]=u[b+1]=u[b+2]=17*(15-v),u[b+3]=255}if(8==l)for(g=0;g<n;g++){b=y+g<<2,v=s[m+g];u[b]=u[b+1]=u[b+2]=255-v,u[b+3]=255}if(16==l)for(g=0;g<n;g++){b=y+g<<2,v=s[(_=m+2*g)+1]<<8|s[_];u[b]=u[b+1]=u[b+2]=Math.min(255,255-~~(v*e)),u[b+3]=255}}}else if(1==c){null==e&&(e=1/256);var w=3&s.length?null:new Float32Array(s.buffer);for(d=0;d<i;d++){m=d*p,y=d*n;if(1==l)for(g=0;g<n;g++){b=y+g<<2,v=s[m+(g>>3)]>>7-(7&g)&1;u[b]=u[b+1]=u[b+2]=255*v,u[b+3]=255}if(2==l)for(g=0;g<n;g++){b=y+g<<2,v=s[m+(g>>2)]>>6-2*(3&g)&3;u[b]=u[b+1]=u[b+2]=85*v,u[b+3]=255}if(8==l)for(g=0;g<n;g++){b=y+g<<2,v=s[m+g*f];u[b]=u[b+1]=u[b+2]=v,u[b+3]=255}if(16==l)for(g=0;g<n;g++){b=y+g<<2,v=s[(_=m+2*g)+1]<<8|s[_];u[b]=u[b+1]=u[b+2]=Math.min(255,~~(v*e)),u[b+3]=255}if(32==l)for(g=0;g<n;g++){var _;b=y+g<<2,v=w[_=(m>>>2)+g];u[b]=u[b+1]=u[b+2]=~~(.5+255*v),u[b+3]=255}}}else if(2==c)if(8==l){if(1==f)for(g=0;g<a;g++)u[4*g]=u[4*g+1]=u[4*g+2]=s[g],u[4*g+3]=255;if(3==f)for(g=0;g<a;g++){var x=3*g;u[b=g<<2]=s[x],u[b+1]=s[x+1],u[b+2]=s[x+2],u[b+3]=255}if(f>=4)for(g=0;g<a;g++){x=g*f;u[b=g<<2]=s[x],u[b+1]=s[x+1],u[b+2]=s[x+2],u[b+3]=s[x+3]}}else if(16==l){if(4==f)for(g=0;g<a;g++){x=8*g+1;u[b=g<<2]=s[x],u[b+1]=s[x+2],u[b+2]=s[x+4],u[b+3]=s[x+6]}if(3==f)for(g=0;g<a;g++){x=6*g+1;u[b=g<<2]=s[x],u[b+1]=s[x+2],u[b+2]=s[x+4],u[b+3]=255}}else{if(32!=l)throw l;var k=new Float32Array(s.buffer),E=0;for(g=0;g<k.length;g++)E=Math.min(E,k[g]);if(E<0)for(g=0;g<s.length;g+=4){var S=s[g];s[g]=s[g+3],s[g+3]=S,S=s[g+1],s[g+1]=s[g+2],s[g+2]=S}var T=[];for(g=0;g<65536;g++)T.push(r(g/65535));for(g=0;g<k.length;g++){var A=Math.max(0,Math.min(1,k[g]));k[g]=T[~~(.5+65535*A)]}if(3==f)for(g=0;g<a;g++){x=3*g;u[b=g<<2]=~~(.5+255*k[x]),u[b+1]=~~(.5+255*k[x+1]),u[b+2]=~~(.5+255*k[x+2]),u[b+3]=255}else{if(4!=f)throw f;for(g=0;g<a;g++){x=4*g;u[b=g<<2]=~~(.5+255*k[x]),u[b+1]=~~(.5+255*k[x+1]),u[b+2]=~~(.5+255*k[x+2]),u[b+3]=~~(.5+255*k[x+3])}}}else if(3==c){var D=t.t320,O=1<<l,I=8==l&&f>1&&t.t338&&0!=t.t338[0];for(d=0;d<i;d++)for(var P=0;P<n;P++){b=(g=d*n+P)<<2;var C=0,L=d*p;if(1==l)C=s[L+(P>>>3)]>>>7-(7&P)&1;else if(2==l)C=s[L+(P>>>2)]>>>6-2*(3&P)&3;else if(4==l)C=s[L+(P>>>1)]>>>4-4*(1&P)&15;else{if(8!=l)throw l;C=s[L+P*f]}u[b]=D[C]>>8,u[b+1]=D[O+C]>>8,u[b+2]=D[O+O+C]>>8,u[b+3]=I?s[L+P*f+1]:255}}else if(5==c){var M=f>4?1:0;for(g=0;g<a;g++){b=g<<2;var F=g*f;if(window.UDOC){var B=s[F],j=s[F+1],N=s[F+2],R=s[F+3],z=UDOC.C.cmykToRgb([B*(1/255),j*(1/255),N*(1/255),R*(1/255)]);u[b]=~~(.5+255*z[0]),u[b+1]=~~(.5+255*z[1]),u[b+2]=~~(.5+255*z[2])}else{B=255-s[F],j=255-s[F+1],N=255-s[F+2],R=(255-s[F+3])*(1/255);u[b]=~~(B*R+.5),u[b+1]=~~(j*R+.5),u[b+2]=~~(N*R+.5)}u[b+3]=255*(1-M)+s[F+4]*M}}else if(6==c&&t.t278){var U=t.t278[0];for(d=0;d<i;d+=U){g=d*n;for(var G=U*n,H=0;H<G;H++){b=4*(g+H),N=s[(F=3*g+4*(H>>>1))+(1&H)];var q=s[F+2]-128,V=s[F+3]-128,W=N+((V>>2)+(V>>3)+(V>>5)),Z=N-((q>>2)+(q>>4)+(q>>5))-((V>>1)+(V>>3)+(V>>4)+(V>>5)),Y=N+(q+(q>>1)+(q>>2)+(q>>6));u[b]=Math.max(0,Math.min(255,W)),u[b+1]=Math.max(0,Math.min(255,Z)),u[b+2]=Math.max(0,Math.min(255,Y)),u[b+3]=255}}}else if(32845==c)for(d=0;d<i;d++)for(P=0;P<n;P++){b=4*(d*n+P);var X=s[(F=6*(d*n+P))+1]<<8|s[F],K=(X=Math.pow(2,(X+.5)/256-64),(s[F+3]+.5)/410),J=(s[F+5]+.5)/410,$=9*K/(6*K-16*J+12),Q=4*J/(6*K-16*J+12),tt=$*X/Q,et=(1-$-Q)*X/Q;W=2.69*tt-1.276*(N=X)-.414*et,Z=-1.022*tt+1.978*N+.044*et,Y=.061*tt-.224*N+1.163*et;u[b]=255*r(Math.min(W,1)),u[b+1]=255*r(Math.min(Z,1)),u[b+2]=255*r(Math.min(Y,1)),u[b+3]=255}else o(\"Unknown Photometric interpretation: \"+c);return u},t.replaceIMG=function(e){null==e&&(e=document.getElementsByTagName(\"img\"));for(var r=[\"tif\",\"tiff\",\"dng\",\"cr2\",\"nef\"],n=0;n<e.length;n++){var i=e[n],o=i.getAttribute(\"src\");if(null!=o){var a=o.split(\".\").pop().toLowerCase();if(-1!=r.indexOf(a)){var s=new XMLHttpRequest;t._xhrs.push(s),t._imgs.push(i),s.open(\"GET\",o),s.responseType=\"arraybuffer\",s.onload=t._imgLoaded,s.send()}}}},t._xhrs=[],t._imgs=[],t._imgLoaded=function(e){var r=t._xhrs.indexOf(e.target),n=t._imgs[r];t._xhrs.splice(r,1),t._imgs.splice(r,1),n.setAttribute(\"src\",t.bufferToURI(e.target.response))},t.bufferToURI=function(e){var r=t.decode(e),n=r,i=0,o=n[0];r[0].subIFD&&(n=n.concat(r[0].subIFD));for(var a=0;a<n.length;a++){var s=n[a];if(!(null==s.t258||s.t258.length<3)){var u=s.t256*s.t257;u>i&&(i=u,o=s)}}t.decodeImage(e,o,r);var c=t.toRGBA8(o),l=o.width,f=o.height,h=document.createElement(\"canvas\");h.width=l,h.height=f;var p=h.getContext(\"2d\"),d=new ImageData(new Uint8ClampedArray(c.buffer),l,f);return p.putImageData(d,0,0),h.toDataURL()},t._binBE={nextZero:function(t,e){for(;0!=t[e];)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+1],n[1]=e[r+0],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.ui32[0]},readASCII:function(t,e,r){for(var n=\"\",i=0;i<r;i++)n+=String.fromCharCode(t[e+i]);return n},readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+3-i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+7-i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=r>>8&255,t[e+1]=255&r},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+3]=i[0],e[r+2]=i[1],e[r+1]=i[2],e[r+0]=i[3]},writeUint:function(t,e,r){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},writeASCII:function(t,e,r){for(var n=0;n<r.length;n++)t[e+n]=r.charCodeAt(n)},writeDouble:function(e,r,n){t._binBE.fl64[0]=n;for(var i=0;i<8;i++)e[r+i]=t._binBE.ui8[7-i]}},t._binBE.ui8=new Uint8Array(8),t._binBE.i16=new Int16Array(t._binBE.ui8.buffer),t._binBE.i32=new Int32Array(t._binBE.ui8.buffer),t._binBE.ui32=new Uint32Array(t._binBE.ui8.buffer),t._binBE.fl32=new Float32Array(t._binBE.ui8.buffer),t._binBE.fl64=new Float64Array(t._binBE.ui8.buffer),t._binLE={nextZero:t._binBE.nextZero,readUshort:function(t,e){return t[e+1]<<8|t[e]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.ui32[0]},readASCII:t._binBE.readASCII,readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=255&r,t[e+1]=r>>8&255},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+0]=i[0],e[r+1]=i[1],e[r+2]=i[2],e[r+3]=i[3]},writeUint:function(t,e,r){t[e]=r>>>0&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24&255},writeASCII:t._binBE.writeASCII},t._copyTile=function(t,e,r,n,i,o,a,s){for(var u=Math.min(e,i-a),c=Math.min(r,o-s),l=0;l<c;l++)for(var f=(s+l)*i+a,h=l*e,p=0;p<u;p++)n[f+p]=t[h+p]},t.LosslessJpegDecode=function(){var t,e;function r(){return t[e++]}function n(){return t[e++]<<8|t[e++]}function i(t){for(var e=r(),n=[0,0,0,255],i=[],a=0;a<16;a++)i[a]=r();for(a=0;a<16;a++)for(var s=0;s<i[a];s++){n[o(n,0,a+1,1)+3]=r()}var u=new Uint8Array(256);t[e]=[new Uint8Array(n),u];for(a=0;a<256;a++){for(var c=8,l=a,f=0;255==n[f+3]&&0!=c;)f=n[f+(l>>--c&1)];u[a]=f}}function o(t,e,r,n){if(255!=t[e+3])return 0;if(0==r)return e;for(var i=0;i<2;i++){0==t[e+i]&&(t[e+i]=t.length,t.push(0,0,n,255));var a=o(t,t[e+i],r-1,n+1);if(0!=a)return a}return 0}function a(t){for(var e=t.b,r=t.f;e<25&&t.a<t.d;){var n=t.data[t.a++];255!=n||t.c||t.a++,r=r<<8|n,e+=8}if(e<0)throw\"e\";t.b=e,t.f=r}function s(t,e){return e.b<t&&a(e),e.f>>(e.b-=t)&65535>>16-t}function u(t,e){var r=t[0],n=0,i=255;e.b<16&&a(e);var o=e.f>>e.b-8&255;for(i=r[(n=t[1][o])+3],e.b-=r[n+2];255==i;)i=r[(n=r[n+(e.f>>--e.b&1)])+3];return i}function c(t,e){return t<32768>>16-e&&(t+=1-(1<<e)),t}function l(t,e){var r=u(t,e);return 0==r?0:16==r?-32768:c(s(r,e),r)}function f(t,e,r,n,i,o){for(var a=0,s=0;s<o;s++){for(var u=s*e,c=0;c<e;c+=i){a++;for(var f=0;f<i;f++)t[u+c+f]=l(n[f],r)}if(0!=r.e&&a%r.e==0&&0!=s){for(var h=r.a,p=r.data;255!=p[h]||!(208<=p[h+1]&&p[h+1]<=215);)h--;r.a=h+2,r.f=0,r.b=0}}}function h(t,e){return c(s(t,e),t)}function p(t,e,r,n,i,o,a,s){for(var u=r*a,c=i;c<o;c++)t[c]+=1<<s-1;for(var l=a;l<u;l+=a)for(c=i;c<o;c++)t[l+c]+=t[l+c-a];for(var f=1;f<n;f++){var h=f*u;for(c=i;c<o;c++)t[h+c]+=t[h+c-u];for(l=a;l<u;l+=a)for(c=i;c<o;c++){var p=h+l+c,d=p-u,m=t[p-a],y=0;if(0==e)y=0;else if(1==e)y=m;else if(2==e)y=t[d];else if(3==e)y=t[d-a];else if(4==e)y=m+(t[d]-t[d-a]);else if(5==e)y=m+(t[d]-t[d-a]>>>1);else if(6==e)y=t[d]+(m-t[d-a]>>>1);else{if(7!=e)throw e;y=m+t[d]>>>1}t[p]+=y}}}return function(o){if(t=o,e=0,65496!=n())throw\"e\";for(var a=[],s=0,c=0,l=0,d=[],m=[],y=[],g=0,b=0,v=0;;){var w=n();if(65535!=w){var _=n();if(65475==w){c=r(),b=n(),v=n(),g=r();for(var x=0;x<g;x++){var k=r(),E=r();if(0!=r())throw\"e\";a[k]=[x,E>>4,15&E]}}else if(65476==w)for(var S=e+_-2;e<S;)i(m);else{if(65498==w){e++;for(x=0;x<g;x++){var T=a[r()];y[T[0]]=m[r()>>>4],d[T[0]]=T.slice(1)}s=r(),e+=2;break}65501==w?l=n():e+=_-2}}else e--}var A=new(c>8?Uint16Array:Uint8Array)(b*v*g),D={b:0,f:0,c:8==s,a:e,data:t,d:t.length,e:l};if(D.c)!function(r,n,i,o,a){for(var s=t.length-e,c=0;c<s;c+=4){var l=t[e+c];t[e+c]=t[e+c+3],t[e+c+3]=l,l=t[e+c+1],t[e+c+1]=t[e+c+2],t[e+c+2]=l}for(var f=0;f<a;f++)for(var p=32768,d=32768,m=0;m<n;m+=2){var y=u(o,i),g=u(o,i);0!=y&&(p+=h(y,i)),0!=g&&(d+=h(g,i)),r[f*n+m]=65535&p,r[f*n+m+1]=65535&d}}(A,v*g,D,y[0],b);else{var O=[],I=0,P=0;for(x=0;x<g;x++){var C=d[x];(G=C[0])>I&&(I=G),(U=C[1])>P&&(P=U),O.push(G*U)}if(1!=I||1!=P){if(3!=g||1!=O[1]||1!=O[2])throw\"e\";if(2!=I||1!=P&&2!=P)throw\"e\";var L=[],M=0;for(x=0;x<g;x++){for(var F=0;F<O[x];F++)L.push(y[x]);M+=O[x]}var B=v/I,j=b/P,N=B*j;f(A,B*M,D,L,M,j),p(A,s,B,j,M-2,M,M,c);var R=new Uint16Array(N*O[0]);if(2==I&&2==P){for(x=0;x<N;x++)R[4*x]=A[6*x],R[4*x+1]=A[6*x+1],R[4*x+2]=A[6*x+2],R[4*x+3]=A[6*x+3];p(R,s,4*B,j,0,1,1,c);for(x=0;x<N;x++)A[6*x]=R[4*x],A[6*x+1]=R[4*x+1],A[6*x+2]=R[4*x+2],A[6*x+3]=R[4*x+3]}if(2==I&&1==P){for(x=0;x<N;x++)R[2*x]=A[4*x],R[2*x+1]=A[4*x+1];p(R,s,2*B,j,0,1,1,c);for(x=0;x<N;x++)A[4*x]=R[2*x],A[4*x+1]=R[2*x+1]}for(var z=A.slice(0),U=0;U<b;U++)if(2==P)for(var G=0;G<v;G++){var H=((U>>>1)*B+(G>>>1))*M,q=2*(1&U)+(1&G);A[V=(U*v+G)*g]=z[H+q],A[V+1]=z[H+4],A[V+2]=z[H+5]}else for(G=0;G<v;G++){var V;H=(U*B+(G>>>1))*M,q=1&G;A[V=(U*v+G)*g]=z[H+q],A[V+1]=z[H+2],A[V+2]=z[H+3]}}else if(f(A,v*g,D,y,g,b),0==l)p(A,s,v,b,0,g,g,c);else{var W=Math.floor(l/v);for(U=0;U<b;U+=W){var Z=A.slice(U*v*g,(U+W)*v*g);p(Z,s,v,W,0,g,g,c),A.set(Z,U*v*g)}}}return A}}(),function(){var e=2,r=4,n=5,i=6,o=7,a=12,s=13,u=14,c=15,l=17;function f(t){var e={c:new Int8Array(2<<t.u)};return function(t,e,r){var n=[e,3*e+18,5*e+67,7*e+276,r];t.o=e,t.w=(n[4]+2*e)/(2*e+1)+1|0,t.v=Math.ceil(Math.log2(t.w)),t.t=9,function(t,e){for(var r=-e[4],n=0;r<=e[4];n++,r++)t[n]=r<=-e[3]?-4:r<=-e[2]?-3:r<=-e[1]?-2:r<-e[0]?-1:r<=e[0]?0:r<e[1]?1:r<e[2]?2:r<e[3]?3:4}(t.c,n)}(e,0,t.g),e}function h(t){for(var e=[[],[],[]],r=Math.max(2,t.w+32>>>6),n=0;n<3;n++)for(var i=0;i<41;i++)e[n][i]=[r,1];return e}function p(t,e){var r=0,n=8-t.a;t.j,t.a;if(e){if(e>=n)do{r<<=n,e-=n,r|=t[t.j]&(1<<n)-1,t.j++,n=8}while(e>=8);e&&(r<<=e,n-=e,r|=t[t.j]>>>n&(1<<e)-1),t.a=8-n}return r}function d(t,e,r,n,i,o,a,s){null==s&&(s=0);var u,c,l,f,h,d,m=o+1,y=m%2,g=0,b=n[i],v=n[i-1],w=n[i-2][m],_=v[m-1],x=v[m],k=v[m+1],E=b[m-1],S=b[m+1],T=Math.abs;if(y&&(l=T(k-x),f=T(w-x),h=T(_-x)),y){if(d=(d=l>h&&f<l?w+_:l<h&&f<h?w+k:k+_)+2*x>>>2,s)return void(b[m]=d);u=e.t*e.c[t.g+x-w]+e.c[t.g+_-x]}else d=x>_&&x>k||x<_&&x<k?S+E+2*x>>>2:E+S>>>1,u=e.t*e.c[t.g+x-_]+e.c[t.g+_-E];c=T(u);var A=function(t){for(var e=-1,r=0;!r;e++)r=t[t.j]>>>7-t.a&1,t.a++,t.a&=7,t.a||t.j++;return e}(r);if(A<t.n-e.v-1){var D=function(t,e){var r=0;if(e<t)for(;r<=14&&e<<++r<t;);return r}(a[c][0],a[c][1]);g=p(r,D)+(A<<D)}else g=p(r,e.v)+1;g=1&g?-1-(g>>>1):g>>>1,a[c][0]+=T(g),a[c][1]==t.f&&(a[c][0]>>>=1,a[c][1]>>>=1),a[c][1]++,d=u<0?d-g:d+g,t.i&&(d<0?d+=e.w:d>t.g&&(d-=e.w)),b[m]=d>=0?Math.min(d,t.g):0}function m(t,e,r){for(var n=t[0].length,i=e;i<=r;i++)t[i][0]=t[i-1][1],t[i][n-1]=t[i-1][n-2]}function y(t){m(t,o,a),m(t,e,r),m(t,c,l)}function g(t,e,n,i,o,a,u,c,l,f,h,p,m){for(var g=0,b=1,v=o<s&&o>r;b<t.m;)g<t.m&&(d(t,e,n,i,o,g,u[l],t.h&&(v&&f||!v&&(h||(g&p)==m))),d(t,e,n,i,a,g,u[l],t.h&&(!v&&f||v&&(h||(g&p)==m))),g+=2),g>8&&(d(t,e,n,i,o,b,c[l]),d(t,e,n,i,a,b,c[l]),b+=2);y(i)}function b(t,n,i,s,u,f){g(t,n,i,s,e,o,u,f,0,0,1,0,8),g(t,n,i,s,8,c,u,f,1,0,1,0,8),g(t,n,i,s,3,9,u,f,2,1,0,3,0),g(t,n,i,s,10,16,u,f,0,0,0,3,2),g(t,n,i,s,r,11,u,f,1,0,0,3,2),g(t,n,i,s,a,l,u,f,2,1,0,3,0)}function v(t,r,n,i,a,s){var u=s.length,l=t.l;a+1==t.s&&(l=t.e-a*t.l);for(var f=6*t.e*i+a*t.l,h=0;h<6;h++){for(var p=0;p<l;p++){var d,m=s[h%u][p%u];d=0==m?e+(h>>>1):2==m?c+(h>>>1):o+h;var y=t.h?(2*p/3&2147483646|p%3&1)+(p%3>>>1):p>>>1;r[f+p]=n[d][y+1]}f+=t.e}}t._decompressRAF=function(o,c){var p=function(e){var r=t._binBE.readUshort,n={b:r(e,0),i:e[2],C:e[3],u:e[4],q:r(e,5),k:r(e,7),e:r(e,9),l:r(e,11),s:e[13],d:r(e,14)};if(18771!=n.b||n.i>1||n.q<6||n.q%6||n.e<768||n.e%24||768!=n.l||n.k<n.l||n.k%n.l||n.k-n.e>=n.l||n.s>16||n.s!=n.k/n.l||n.s!=Math.ceil(n.e/n.l)||n.d!=n.q/6||12!=n.u&&14!=n.u&&16!=n.u||16!=n.C&&0!=n.C)throw\"Invalid data\";if(0==n.i)throw\"Not implemented. We need this file!\";return n.h=16==n.C,n.m=0|(n.h?2*n.l/3:n.l>>>1),n.A=n.m+2,n.f=64,n.g=(1<<n.u)-1,n.n=4*n.u,n}(o),d=function(e,r){var n=new Array(r.s),i=4*r.s,o=16+i;12&i&&(o+=16-(12&i));for(var a=0,s=16;a<r.s;s+=4){var u=t._binBE.readUint(e,s);n[a]=e.slice(o,o+u),n[a].j=0,n[a].a=0,o+=u,a++}if(o!=e.length)throw\"Invalid data\";return n}(o,p),m=f(p),g=new Int16Array(p.e*p.q);null==c&&(c=p.h?[[1,1,0,1,1,2],[1,1,2,1,1,0],[2,0,1,0,2,1],[1,1,2,1,1,0],[1,1,0,1,1,2],[0,2,1,2,0,1]]:[[0,1],[3,2]]);for(var w=[[0,3],[1,r],[n,11],[i,a],[s,16],[u,l]],_=[],x=0;x<18;x++)_[x]=new Uint16Array(p.A);for(var k=0;k<p.s;k++){var E=h(m),S=h(m);for(x=0;x<18;x++)for(var T=0;T<p.A;T++)_[x][T]=0;for(var A=0;A<p.d;A++){b(p,m,d[k],_,E,S);for(x=0;x<6;x++)for(T=0;T<p.A;T++)_[w[x][0]][T]=_[w[x][1]][T];v(p,g,_,A,k,c);for(x=e;x<18;x++)if(-1==[n,i,s,u].indexOf(x))for(T=0;T<p.A;T++)_[x][T]=0;y(_)}}return g}}()}(i,r(197))}()}).call(this,r(13)(t),r(7))},function(t,e,r){\"use strict\";var n=r(57),i=r(42),o=i.Gif,a=i.GifError,s=r(96).GifCodec,u=r(58).GifFrame,c=r(97);t.exports={BitmapImage:n,Gif:o,GifCodec:s,GifFrame:u,GifUtil:c,GifError:a}},function(t,e,r){t.exports=i;var n=r(31).EventEmitter;function i(){n.call(this)}r(24)(i,n),i.Readable=r(50),i.Writable=r(154),i.Duplex=r(155),i.Transform=r(156),i.PassThrough=r(157),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on(\"data\",i),t.on(\"drain\",o),t._isStdio||e&&!1===e.end||(r.on(\"end\",s),r.on(\"close\",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,\"function\"==typeof t.destroy&&t.destroy())}function c(t){if(l(),0===n.listenerCount(this,\"error\"))throw t}function l(){r.removeListener(\"data\",i),t.removeListener(\"drain\",o),r.removeListener(\"end\",s),r.removeListener(\"close\",u),r.removeListener(\"error\",c),t.removeListener(\"error\",c),r.removeListener(\"end\",l),r.removeListener(\"close\",l),t.removeListener(\"close\",l)}return r.on(\"error\",c),t.on(\"error\",c),r.on(\"end\",l),r.on(\"close\",l),t.on(\"close\",l),t.emit(\"pipe\",r),t}},function(t,e,r){\"use strict\";(function(e){void 0===e||!e.version||0===e.version.indexOf(\"v0.\")||0===e.version.indexOf(\"v1.\")&&0!==e.version.indexOf(\"v1.8.\")?t.exports={nextTick:function(t,r,n,i){if(\"function\"!=typeof t)throw new TypeError('\"callback\" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,r(7))},function(t,e,r){\"use strict\";t.exports=TypeError},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(\"object\"!==n(r))throw new TypeError(r+\"must be non-object\");for(var i in r)o(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var a={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},s={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,a)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e,r){return e=u(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function o(t){var e=\"function\"==typeof Map?new Map:void 0;return o=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(a())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&s(i,r.prototype),i}(t,arguments,u(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},o(t)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function l(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function f(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function h(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var p=l((function t(e,r,n){h(this,t),this.width=n.width,this.height=n.height,this.loops=n.loops,this.usesTransparency=n.usesTransparency,this.colorScope=n.colorScope,this.frames=r,this.buffer=e}));p.GlobalColorsPreferred=0,p.GlobalColorsOnly=1,p.LocalColorsOnly=2;var d=function(t){function e(t){var r;return h(this,e),r=i(this,e,[t]),t instanceof Error&&(r.stack=\"Gif\"+t.stack),r}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&s(t,e)}(e,t),l(e)}(o(Error));e.Gif=p,e.GifError=d},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.clone=c,e.addLast=f,e.addFirst=h,e.removeLast=p,e.removeFirst=d,e.insert=m,e.removeAt=y,e.replaceAt=g,e.getIn=b,e.set=v,e.setIn=w,e.update=x,e.updateIn=k,e.merge=E,e.mergeDeep=S,e.mergeIn=T,e.omit=A,e.addDefaults=D,e.default=void 0;var i=\"INVALID_ARGS\",o=!1;function a(t){throw new Error(t)}function s(t){var e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}var u={}.hasOwnProperty;function c(t){if(Array.isArray(t))return t.slice();for(var e=t,r=s(e),n={},i=0;i<r.length;i++){var o=r[i];n[o]=e[o]}return n}function l(t){return null!=t&&\"object\"===n(t)}function f(t,e){return Array.isArray(e)?t.concat(e):t.concat([e])}function h(t,e){return Array.isArray(e)?e.concat(t):[e].concat(t)}function p(t){return t.length?t.slice(0,t.length-1):t}function d(t){return t.length?t.slice(1):t}function m(t,e,r){return t.slice(0,e).concat(Array.isArray(r)?r:[r]).concat(t.slice(e))}function y(t,e){return e>=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function g(t,e,r){if(t[e]===r)return t;for(var n=t.length,i=Array(n),o=0;o<n;o++)i[o]=t[o];return i[e]=r,i}function b(t,e){if(Array.isArray(e)||a(o?\"A path array should be provided when calling getIn()\":i),null!=t){for(var r=t,n=0;n<e.length;n++){var s=e[n];if(void 0===(r=null!=r?r[s]:void 0))return r}return r}}function v(t,e,r){var n=t;if(null==n&&(n=\"number\"==typeof e?[]:{}),n[e]===r)return n;var i=c(n);return i[e]=r,i}function w(t,e,r){return e.length?_(t,e,r,0):r}function _(t,e,r,n){var i,o=e[n];n===e.length-1?i=r:i=_(l(t)&&l(t[o])?t[o]:\"number\"==typeof e[n+1]?[]:{},e,r,n+1);return v(t,o,i)}function x(t,e,r){return v(t,e,r(null==t?void 0:t[e]))}function k(t,e,r){return w(t,e,r(b(t,e)))}function E(t,e,r,n,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?O.call.apply(O,[null,!1,!1,t,e,r,n,i,o].concat(s)):O(!1,!1,t,e,r,n,i,o)}function S(t,e,r,n,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?O.call.apply(O,[null,!1,!0,t,e,r,n,i,o].concat(s)):O(!1,!0,t,e,r,n,i,o)}function T(t,e,r,n,i,o,a){var s=b(t,e);null==s&&(s={});for(var u=arguments.length,c=new Array(u>7?u-7:0),l=7;l<u;l++)c[l-7]=arguments[l];return w(t,e,c.length?O.call.apply(O,[null,!1,!1,s,r,n,i,o,a].concat(c)):O(!1,!1,s,r,n,i,o,a))}function A(t,e){for(var r=Array.isArray(e)?e:[e],n=!1,i=0;i<r.length;i++)if(u.call(t,r[i])){n=!0;break}if(!n)return t;for(var o={},a=s(t),c=0;c<a.length;c++){var l=a[c];r.indexOf(l)>=0||(o[l]=t[l])}return o}function D(t,e,r,n,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?O.call.apply(O,[null,!0,!1,t,e,r,n,i,o].concat(s)):O(!0,!1,t,e,r,n,i,o)}function O(t,e,r){var n=r;null==n&&a(o?\"At least one object should be provided to merge()\":i);for(var u=!1,f=0;f<(arguments.length<=3?0:arguments.length-3);f++){var h=f+3<3||arguments.length<=f+3?void 0:arguments[f+3];if(null!=h){var p=s(h);if(p.length)for(var d=0;d<=p.length;d++){var m=p[d];if(!t||void 0===n[m]){var y=h[m];e&&l(n[m])&&l(y)&&(y=O(t,e,n[m],y)),void 0!==y&&y!==n[m]&&(u||(u=!0,n=c(n)),n[m]=y)}}}}return n}var I={clone:c,addLast:f,addFirst:h,removeLast:p,removeFirst:d,insert:m,removeAt:y,replaceAt:g,getIn:b,set:v,setIn:w,update:x,updateIn:k,merge:E,mergeDeep:S,mergeIn:T,omit:A,addDefaults:D};e.default=I},function(t,e,r){var n=r(229);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){\"use strict\";(function(t){r.d(e,\"c\",(function(){return _})),r.d(e,\"a\",(function(){return k})),r.d(e,\"b\",(function(){return E}));var n=r(103),i=r.n(n),o=r(104),a=r.n(o),s=r(0),u=r(20),c=r(19),l=r(33);function f(t){return f=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},f(t)}function h(){h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new C(n||[]);return i(a,\"_invoke\",{value:D(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};c(x,a,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&n.call(E,a)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,o,a,s){var u=p(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==f(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(f(e)+\" is not iterable\")}return w.prototype=_,i(S,\"constructor\",{value:_,configurable:!0}),i(_,\"constructor\",{value:w,configurable:!0}),w.displayName=c(_,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),c(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),c(S,u,\"Generator\"),c(S,a,(function(){return this})),c(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function y(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){m(o,n,i,a,s,\"next\",t)}function s(t){m(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function g(t,e){return b.apply(this,arguments)}function b(){return(b=y(h().mark((function t(e,r){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.fromBuffer(e);case 2:if(!(n=t.sent)){t.next=5;break}return t.abrupt(\"return\",n.mime);case 5:if(!r){t.next=7;break}return t.abrupt(\"return\",c.c(r));case 7:return t.abrupt(\"return\",null);case 8:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function v(t){return t._exif&&t._exif.tags&&t._exif.tags.Orientation||1}function w(e){if(!(v(e)<2)){var r=function(t){var e=t.getWidth(),r=t.getHeight();switch(v(t)){case 1:default:return null;case 2:return function(t,r){return[e-t-1,r]};case 3:return function(t,n){return[e-t-1,r-n-1]};case 4:return function(t,e){return[t,r-e-1]};case 5:return function(t,e){return[e,t]};case 6:return function(t,e){return[e,r-t-1]};case 7:return function(t,n){return[e-n-1,r-t-1]};case 8:return function(t,r){return[e-r-1,t]}}}(e),n=v(e)>4;!function(e,r,n,i){for(var o=e.bitmap.data,a=e.bitmap.width,s=t.alloc(o.length),u=0;u<r;u++)for(var c=0;c<n;c++){var l=p(i(u,c),2),f=l[0],h=r*c+u<<2,d=a*l[1]+f<<2,m=o.readUInt32BE(d);s.writeUInt32BE(m,h)}e.bitmap.data=s,e.bitmap.width=r,e.bitmap.height=n}(e,n?e.bitmap.height:e.bitmap.width,n?e.bitmap.width:e.bitmap.height,r)}}function _(t,e,r){return x.apply(this,arguments)}function x(){return(x=y(h().mark((function t(e,r,n){var i,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g(e,r);case 2:if(\"string\"==typeof(i=t.sent)){t.next=5;break}return t.abrupt(\"return\",n(new Error(\"Could not find MIME for Buffer <\"+r+\">\")));case 5:if(this._originalMime=i.toLowerCase(),t.prev=6,o=this.getMIME(),!this.constructor.decoders[o]){t.next=12;break}this.bitmap=this.constructor.decoders[o](e),t.next=13;break;case 12:return t.abrupt(\"return\",s.d.call(this,\"Unsupported MIME type: \"+o,n));case 13:t.next=18;break;case 15:return t.prev=15,t.t0=t.catch(6),t.abrupt(\"return\",n.call(this,t.t0,this));case 18:try{this._exif=a.a.create(e).parse(),w(this)}catch(t){}return n.call(this,null,this),t.abrupt(\"return\",this);case 21:case\"end\":return t.stop()}}),t,this,[[6,15]])})))).apply(this,arguments)}function k(e,r){var n,i,o=this;if(e===u.AUTO&&(e=this.getMIME()),\"string\"!=typeof e)return s.d.call(this,\"mime must be a string\",r);if(\"function\"!=typeof r)return s.d.call(this,\"cb must be a function\",r);if(e=e.toLowerCase(),this._rgba&&this.constructor.hasAlpha[e]?this.bitmap.data=t.from(this.bitmap.data):this.bitmap.data=(n=this.constructor,i=this,new n(i.bitmap.width,i.bitmap.height,i._background).composite(i,0,0).bitmap).data,!this.constructor.encoders[e])return s.d.call(this,\"Unsupported MIME type: \"+e,r);var a=this.constructor.encoders[e](this);return a instanceof Promise?a.then((function(t){r.call(o,null,t)})):r.call(this,null,a),this}function E(t){return Object(l.a)(k,this,t)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t,n){var i=r(14),o=r(38),a=r(158),s=r(187),u=r(190),c=e.PNG=function(e){o.call(this),e=e||{},this.width=0|e.width,this.height=0|e.height,this.data=this.width>0&&this.height>0?t.alloc(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new a(e),this._parser.on(\"error\",this.emit.bind(this,\"error\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._parser.on(\"metadata\",this._metadata.bind(this)),this._parser.on(\"gamma\",this._gamma.bind(this)),this._parser.on(\"parsed\",function(t){this.data=t,this.emit(\"parsed\",t)}.bind(this)),this._packer=new s(e),this._packer.on(\"data\",this.emit.bind(this,\"data\")),this._packer.on(\"end\",this.emit.bind(this,\"end\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._packer.on(\"error\",this.emit.bind(this,\"error\"))};i.inherits(c,o),c.sync=u,c.prototype.pack=function(){return this.data&&this.data.length?(n.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit(\"error\",\"No data provided\"),this)},c.prototype.parse=function(t,e){var r,n;e&&(r=function(t){this.removeListener(\"error\",n),this.data=t,e(null,this)}.bind(this),n=function(t){this.removeListener(\"parsed\",r),e(t,null)}.bind(this),this.once(\"parsed\",r),this.once(\"error\",n));return this.end(t),this},c.prototype.write=function(t){return this._parser.write(t),!0},c.prototype.end=function(t){this._parser.end(t)},c.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit(\"metadata\",t)},c.prototype._gamma=function(t){this.gamma=t},c.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit(\"close\")},c.bitblt=function(t,e,r,n,i,o,a,s){if(n|=0,i|=0,o|=0,a|=0,s|=0,(r|=0)>t.width||n>t.height||r+i>t.width||n+o>t.height)throw new Error(\"bitblt reading outside image\");if(a>e.width||s>e.height||a+i>e.width||s+o>e.height)throw new Error(\"bitblt writing outside image\");for(var u=0;u<o;u++)t.data.copy(e.data,(s+u)*e.width+a<<2,(n+u)*t.width+r<<2,(n+u)*t.width+r+i<<2)},c.prototype.bitblt=function(t,e,r,n,i,o,a){return c.bitblt(this,t,e,r,n,i,o,a),this},c.adjustGamma=function(t){if(t.gamma){for(var e=0;e<t.height;e++)for(var r=0;r<t.width;r++)for(var n=t.width*e+r<<2,i=0;i<3;i++){var o=t.data[n+i]/255;o=Math.pow(o,1/2.2/t.gamma),t.data[n+i]=Math.round(255*o)}t.gamma=0}},c.prototype.adjustGamma=function(){c.adjustGamma(this)}}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;var n=r(126),i=r(129),o=r(26);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return o.EndOfStreamError}}),e.fromStream=function(t,e){return e=e||{},new n.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new i.BufferTokenizer(t,e)}},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&o.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&o.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractTokenizer=void 0;var c=r(26),l=function(){return e=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}},r=[{key:\"readToken\",value:(p=a(i().mark((function e(r){var n,o,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:this.position,o=t.alloc(r.len),e.next=4,this.readBuffer(o,{position:n});case 4:if(!(e.sent<r.len)){e.next=7;break}throw new c.EndOfStreamError;case 7:return e.abrupt(\"return\",r.get(o,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return p.apply(this,arguments)})},{key:\"peekToken\",value:(h=a(i().mark((function e(r){var n,o,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:this.position,o=t.alloc(r.len),e.next=4,this.peekBuffer(o,{position:n});case 4:if(!(e.sent<r.len)){e.next=7;break}throw new c.EndOfStreamError;case 7:return e.abrupt(\"return\",r.get(o,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return h.apply(this,arguments)})},{key:\"readNumber\",value:(f=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new c.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:\"peekNumber\",value:(l=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.peekBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new c.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:\"ignore\",value:(u=a(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===this.fileInfo.size){t.next=5;break}if(r=this.fileInfo.size-this.position,!(e>r)){t.next=5;break}return this.position+=r,t.abrupt(\"return\",r);case 5:return this.position+=e,t.abrupt(\"return\",e);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:\"close\",value:(o=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:\"normalizeOptions\",value:function(t,e){if(e&&void 0!==e.position&&e.position<this.position)throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");return e?{mayBeLess:!0===e.mayBeLess,offset:e.offset?e.offset:0,length:e.length?e.length:t.length-(e.offset?e.offset:0),position:e.position?e.position:this.position}:{mayBeLess:!1,offset:0,length:t.length,position:this.position}}}],r&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,n,o,u,l,f,h,p}();e.AbstractTokenizer=l}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function a(t,e,r){return e=l(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,u()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(t){var e=\"function\"==typeof Map?new Map:void 0;return s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&c(i,r.prototype),i}(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,t)},s(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages=\"End-Of-Stream\";var f=function(t){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,r),a(this,r,[e.defaultMessages])}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&c(t,e)}(r,t),n=r,o&&i(n.prototype,o),s&&i(n,s),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,o,s}(s(Error));e.EndOfStreamError=f},function(t,e,r){(e=t.exports=r(70)).Stream=e,e.Readable=e,e.Writable=r(52),e.Duplex=r(18),e.Transform=r(74),e.PassThrough=r(153)},function(t,e,r){var n=r(2),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,r)},a.alloc=function(t,e,r){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var n=i(t);return void 0!==e?\"string\"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},a.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return n.SlowBuffer(t)}},function(t,e,r){\"use strict\";(function(e,n,i){var o=r(39);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=b;var s,u=!e.browser&&[\"v0.10\",\"v0.9.\"].indexOf(e.version.slice(0,5))>-1?n:o.nextTick;b.WritableState=g;var c=Object.create(r(27));c.inherits=r(24);var l={deprecate:r(151)},f=r(71),h=r(51).Buffer,p=(void 0!==i?i:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var d,m=r(72);function y(){}function g(t,e){s=s||r(18),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(o.nextTick(i,n),o.nextTick(E,t,e),t._writableState.errorEmitted=!0,t.emit(\"error\",n)):(i(n),t._writableState.errorEmitted=!0,t.emit(\"error\",n),E(t,e))}(t,r,n,e,i);else{var a=x(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(t,r),n?u(w,t,r,a,i):w(t,r,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(t){if(s=s||r(18),!(d.call(b,this)||this instanceof s))return new b(t);this._writableState=new g(t,this),this.writable=!0,t&&(\"function\"==typeof t.write&&(this._write=t.write),\"function\"==typeof t.writev&&(this._writev=t.writev),\"function\"==typeof t.destroy&&(this._destroy=t.destroy),\"function\"==typeof t.final&&(this._final=t.final)),f.call(this)}function v(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function w(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit(\"drain\"))}(t,e),e.pendingcb--,n(),E(t,e)}function _(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,v(t,e,!0,e.length,i,\"\",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback;if(v(t,e,!1,e.objectMode?1:c.length,c,l,f),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function k(t,e){t._final((function(r){e.pendingcb--,r&&t.emit(\"error\",r),e.prefinished=!0,t.emit(\"prefinish\"),E(t,e)}))}function E(t,e){var r=x(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||(\"function\"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(k,t,e)):(e.prefinished=!0,t.emit(\"prefinish\")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit(\"finish\"))),r}c.inherits(b,f),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,\"buffer\",{get:l.deprecate((function(){return this.getBuffer()}),\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(t){}}(),\"function\"==typeof Symbol&&Symbol.hasInstance&&\"function\"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===b&&(t&&t._writableState instanceof g)}})):d=function(t){return t instanceof this},b.prototype.pipe=function(){this.emit(\"error\",new Error(\"Cannot pipe, not readable\"))},b.prototype.write=function(t,e,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=t,h.isBuffer(n)||n instanceof p);return s&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),\"function\"==typeof e&&(r=e,e=null),s?e=\"buffer\":e||(e=i.defaultEncoding),\"function\"!=typeof r&&(r=y),i.ended?function(t,e){var r=new Error(\"write after end\");t.emit(\"error\",r),o.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError(\"May not write null values to stream\"):\"string\"==typeof r||void 0===r||e.objectMode||(a=new TypeError(\"Invalid non-string/buffer chunk\")),a&&(t.emit(\"error\",a),o.nextTick(n,a),i=!1),i}(this,i,t,r))&&(i.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||\"string\"!=typeof e||(e=h.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i=\"buffer\",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else v(t,e,!1,s,n,i,o);return u}(this,i,s,t,e,r)),a},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||_(this,t))},b.prototype.setDefaultEncoding=function(t){if(\"string\"==typeof t&&(t=t.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((t+\"\").toLowerCase())>-1))throw new TypeError(\"Unknown encoding: \"+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(b.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(t,e,r){r(new Error(\"_write() is not implemented\"))},b.prototype._writev=null,b.prototype.end=function(t,e,r){var n=this._writableState;\"function\"==typeof t?(r=t,t=null,e=null):\"function\"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,E(t,e),r&&(e.finished?o.nextTick(r):t.once(\"finish\",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,\"destroyed\",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(7),r(117).setImmediate,r(10))},function(t,e,r){\"use strict\";(function(e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(160)();function o(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function a(t){return e.Buffer&&\"function\"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=r(14),u=Object.prototype.hasOwnProperty,c=Array.prototype.slice,l=\"foo\"===function(){}.name;function f(t){return Object.prototype.toString.call(t)}function h(t){return!a(t)&&(\"function\"==typeof e.ArrayBuffer&&(\"function\"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var p=t.exports=v,d=/\\s*function\\s+([^\\(\\s]*)\\s*/;function m(t){if(s.isFunction(t)){if(l)return t.name;var e=t.toString().match(d);return e&&e[1]}}function y(t,e){return\"string\"==typeof t?t.length<e?t:t.slice(0,e):t}function g(t){if(l||!s.isFunction(t))return s.inspect(t);var e=m(t);return\"[Function\"+(e?\": \"+e:\"\")+\"]\"}function b(t,e,r,n,i){throw new p.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function v(t,e){t||b(t,!0,e,\"==\",p.ok)}function w(t,e,r,i){if(t===e)return!0;if(a(t)&&a(e))return 0===o(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&\"object\"===n(t)||null!==e&&\"object\"===n(e)){if(h(t)&&h(e)&&f(t)===f(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===o(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var u=(i=i||{actual:[],expected:[]}).actual.indexOf(t);return-1!==u&&u===i.expected.indexOf(e)||(i.actual.push(t),i.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=_(t),o=_(e);if(i&&!o||!i&&o)return!1;if(i)return w(t=c.call(t),e=c.call(e),r);var a,u,l=E(t),f=E(e);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),u=l.length-1;u>=0;u--)if(l[u]!==f[u])return!1;for(u=l.length-1;u>=0;u--)if(!w(t[a=l[u]],e[a],r,n))return!1;return!0}(t,e,r,i))}return r?t===e:t==e}function _(t){return\"[object Arguments]\"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if(\"[object RegExp]\"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function k(t,e,r,n){var i;if(\"function\"!=typeof e)throw new TypeError('\"block\" argument must be a function');\"string\"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?\" (\"+r.name+\").\":\".\")+(n?\" \"+n:\".\"),t&&!i&&b(i,r,\"Missing expected exception\"+n);var o=\"string\"==typeof n,a=!t&&i&&!r;if((!t&&s.isError(i)&&o&&x(i,r)||a)&&b(i,r,\"Got unwanted exception\"+n),t&&i&&r&&!x(i,r)||!t&&i)throw i}p.AssertionError=function(t){this.name=\"AssertionError\",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return y(g(t.actual),128)+\" \"+t.operator+\" \"+y(g(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||b;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=m(e),o=n.indexOf(\"\\n\"+i);if(o>=0){var a=n.indexOf(\"\\n\",o+1);n=n.substring(a+1)}this.stack=n}}},s.inherits(p.AssertionError,Error),p.fail=b,p.ok=v,p.equal=function(t,e,r){t!=e&&b(t,e,r,\"==\",p.equal)},p.notEqual=function(t,e,r){t==e&&b(t,e,r,\"!=\",p.notEqual)},p.deepEqual=function(t,e,r){w(t,e,!1)||b(t,e,r,\"deepEqual\",p.deepEqual)},p.deepStrictEqual=function(t,e,r){w(t,e,!0)||b(t,e,r,\"deepStrictEqual\",p.deepStrictEqual)},p.notDeepEqual=function(t,e,r){w(t,e,!1)&&b(t,e,r,\"notDeepEqual\",p.notDeepEqual)},p.notDeepStrictEqual=function t(e,r,n){w(e,r,!0)&&b(e,r,n,\"notDeepStrictEqual\",t)},p.strictEqual=function(t,e,r){t!==e&&b(t,e,r,\"===\",p.strictEqual)},p.notStrictEqual=function(t,e,r){t===e&&b(t,e,r,\"!==\",p.notStrictEqual)},p.throws=function(t,e,r){k(!0,t,e,r)},p.doesNotThrow=function(t,e,r){k(!1,t,e,r)},p.ifError=function(t){if(t)throw t},p.strict=i((function t(e,r){e||b(e,!0,r,\"==\",t)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var E=Object.keys||function(t){var e=[];for(var r in t)u.call(t,r)&&e.push(r);return e}}).call(this,r(10))},function(t,e,r){\"use strict\";var n=r(172);t.exports=Function.prototype.bind||n},function(t,e,r){\"use strict\";var n=r(29)(\"%Object.defineProperty%\",!0)||!1;if(n)try{n({},\"a\",{value:1})}catch(t){n=!1}t.exports=n},function(t,e,r){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,r){\"use strict\";(function(e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}var o=function(){function t(){if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),0===arguments.length)throw new Error(\"constructor requires parameters\");var n=arguments.length<=0?void 0:arguments[0];if(null!==n&&\"object\"===r(n))if(n instanceof t){var i=n.bitmap;this.bitmap={width:i.width,height:i.height,data:new e(i.width*i.height*4)},i.data.copy(this.bitmap.data)}else{if(!(n.width&&n.height&&n.data))throw new Error(\"unrecognized constructor parameters\");this.bitmap=n}else{if(\"number\"!=typeof n||\"number\"!=typeof(arguments.length<=1?void 0:arguments[1]))throw new Error(\"unrecognized constructor parameters\");var o=n,a=arguments.length<=1?void 0:arguments[1],s=arguments.length<=2?void 0:arguments[2];this.bitmap={width:o,height:a},e.isBuffer(s)?this.bitmap.data=s:(this.bitmap.data=new e(o*a*4),\"number\"==typeof s&&this.fillRGBA(s))}}return i=t,(o=[{key:\"blit\",value:function(t,e,r,n,i,o,a){if(n+o>this.bitmap.width)throw new Error(\"copy exceeds width of source bitmap\");if(e+o>t.bitmap.width)throw new Error(\"copy exceeds width of target bitmap\");if(i+a>this.bitmap.height)throw new Error(\"copy exceeds height of source bitmap\");if(r+a>t.bitmap.height)throw new Erro(\"copy exceeds height of target bitmap\");for(var s=this.bitmap.data,u=t.bitmap.data,c=4*this.bitmap.width,l=4*t.bitmap.width,f=4*o,h=i*c+4*n,p=r*l+4*e;--a>=0;)s.copy(u,p,h,h+f),h+=c,p+=l;return this}},{key:\"fillRGBA\",value:function(t){for(var e=this.bitmap.data,r=4*this.bitmap.height,n=0;n<r;)e.writeUInt32BE(t,n),n+=4;for(;n<e.length;)e.copy(e,n,0,r),n+=r;return this}},{key:\"getRGBA\",value:function(t,e){var r=4*(e*this.bitmap.width+t);return this.bitmap.data.readUInt32BE(r)}},{key:\"getRGBASet\",value:function(){for(var t=new Set,e=this.bitmap.data,r=0;r<e.length;r+=4)t.add(e.readUInt32BE(r,!0));return t}},{key:\"greyscale\",value:function(){var t=this.bitmap.data;return this.scan(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){var i=Math.round(.299*t[n]+.587*t[n+1]+.114*t[n+2]);t[n]=i,t[n+1]=i,t[n+2]=i})),this}},{key:\"reframe\",value:function(e,r,n,i,o){var a,s=e<0?0:e,u=r<0?0:r,c=n+s>this.bitmap.width?this.bitmap.width-s:n,l=i+u>this.bitmap.height?this.bitmap.height-u:i,f=e<0?-e:0,h=r<0?-r:0;if(void 0===o){if(s!==e||u!=r||c!==n||l!==i)throw new GifError(\"fillRGBA required for this reframing\");a=new t(n,i)}else a=new t(n,i,o);return this.blit(a,f,h,s,u,c,l),this.bitmap=a.bitmap,this}},{key:\"scale\",value:function(t){if(1!==t){if(!Number.isInteger(t)||t<1)throw new Error(\"the scale must be an integer >= 1\");for(var r,n=this.bitmap.width,i=this.bitmap.height,o=n*t*4,a=this.bitmap.data,s=new e(i*o*t),u=0,c=0,l=0;l<i;++l){r=c;for(var f=0;f<n;++f){for(var h=a.readUInt32BE(u,!0),p=0;p<t;++p)s.writeUInt32BE(h,c),c+=4;u+=4}for(var d=1;d<t;++d)s.copy(s,c,r,c),c+=o,r+=o}return this.bitmap={width:n*t,height:i*t,data:s},this}}},{key:\"scanAllCoords\",value:function(t){for(var e=this.bitmap.width,r=this.bitmap.data.length,n=0,i=0,o=0;o<r;o+=4)t(n,i,o),++n===e&&(n=0,++i)}},{key:\"scanAllIndexes\",value:function(t){for(var e=this.bitmap.data.length,r=0;r<e;r+=4)t(r)}}])&&n(i.prototype,o),a&&n(i,a),Object.defineProperty(i,\"prototype\",{writable:!1}),i;var i,o,a}();t.exports=o}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function a(t,e,r){return e=u(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,s()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}var l=r(57),f=(r(42).GifError,function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(t=a(this,e,[].concat(i)),i[0]instanceof e){var s=i[0];t.xOffset=s.xOffset,t.yOffset=s.yOffset,t.disposalMethod=s.disposalMethod,t.delayCentisecs=s.delayCentisecs,t.interlaced=s.interlaced}else{var u=i[i.length-1],c={};\"object\"!==n(u)||u instanceof l||(c=u),t.xOffset=c.xOffset||0,t.yOffset=c.yOffset||0,t.disposalMethod=void 0!==c.disposalMethod?c.disposalMethod:e.DisposeToBackgroundColor,t.delayCentisecs=c.delayCentisecs||8,t.interlaced=c.interlaced||!1}return t}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&c(t,e)}(e,t),r=e,(o=[{key:\"getPalette\",value:function(){for(var t=new Set,e=this.bitmap.data,r=0,n=!1;r<e.length;){if(0===e[r+3])n=!0;else{var i=e.readUInt32BE(r,!0)>>8&16777215;t.add(i)}r+=4}var o=new Array(t.size),a=t.values();for(r=0;r<o.length;++r)o[r]=a.next().value;o.sort((function(t,e){return t-e}));var s=o.length;return n&&++s,{colors:o,usesTransparency:n,indexCount:s}}}])&&i(r.prototype,o),s&&i(r,s),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,o,s}(l));f.DisposeToAnything=0,f.DisposeNothing=1,f.DisposeToBackgroundColor=2,f.DisposeToPrevious=3,e.GifFrame=f},function(t,e,r){\"use strict\";function n(t,e,r,n){for(var i=t[e++],o=1<<i,a=o+1,s=a+1,u=i+1,c=(1<<u)-1,l=0,f=0,h=0,p=t[e++],d=new Int32Array(4096),m=null;;){for(;l<16&&0!==p;)f|=t[e++]<<l,l+=8,1===p?p=t[e++]:--p;if(l<u)break;var y=f&c;if(f>>=u,l-=u,y!==o){if(y===a)break;for(var g=y<s?y:m,b=0,v=g;v>o;)v=d[v]>>8,++b;var w=v;if(h+b+(g!==y?1:0)>n)return;r[h++]=w;var _=h+=b;for(g!==y&&(r[h++]=w),v=g;b--;)v=d[v],r[--_]=255&v,v>>=8;null!==m&&s<4096&&(d[s++]=m<<8|w,s>=c+1&&u<12&&(++u,c=c<<1|1)),m=y}else s=a+1,c=(1<<(u=i+1))-1,m=null}return r}try{e.GifWriter=function(t,e,r,n){var i=0,o=void 0===(n=void 0===n?{}:n).loop?null:n.loop,a=void 0===n.palette?null:n.palette;if(e<=0||r<=0||e>65535||r>65535)throw new Error(\"Width/Height invalid.\");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var u=0,c=0;if(null!==a){for(var l=s(a);l>>=1;)++u;if(l=1<<u,--u,void 0!==n.background){if((c=n.background)>=l)throw new Error(\"Background index out of range.\");if(0===c)throw new Error(\"Background index explicitly passed as 0.\")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=(null!==a?128:0)|u,t[i++]=c,t[i++]=0,null!==a)for(var f=0,h=a.length;f<h;++f){var p=a[f];t[i++]=p>>16&255,t[i++]=p>>8&255,t[i++]=255&p}if(null!==o){if(o<0||o>65535)throw new Error(\"Loop count invalid.\");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,r,n,o,u,c){if(!0===d&&(--i,d=!1),c=void 0===c?{}:c,e<0||r<0||e>65535||r>65535)throw new Error(\"x/y invalid.\");if(n<=0||o<=0||n>65535||o>65535)throw new Error(\"Width/Height invalid.\");if(u.length<n*o)throw new Error(\"Not enough pixels for the frame size.\");var l=!0,f=c.palette;if(null==f&&(l=!1,f=a),null==f)throw new Error(\"Must supply either a local or global palette.\");for(var h=s(f),p=0;h>>=1;)++p;h=1<<p;var m=void 0===c.delay?0:c.delay,y=void 0===c.disposal?0:c.disposal;if(y<0||y>3)throw new Error(\"Disposal out of range.\");var g=!1,b=0;if(void 0!==c.transparent&&null!==c.transparent&&(g=!0,(b=c.transparent)<0||b>=h))throw new Error(\"Transparent color index.\");if((0!==y||g||0!==m)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=y<<2|(!0===g?1:0),t[i++]=255&m,t[i++]=m>>8&255,t[i++]=b,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===l?128|p-1:0,!0===l)for(var v=0,w=f.length;v<w;++v){var _=f[v];t[i++]=_>>16&255,t[i++]=_>>8&255,t[i++]=255&_}return i=function(t,e,r,n){t[e++]=r;var i=e++,o=1<<r,a=o-1,s=o+1,u=s+1,c=r+1,l=0,f=0;function h(r){for(;l>=r;)t[e++]=255&f,f>>=8,l-=8,e===i+256&&(t[i]=255,i=e++)}function p(t){f|=t<<l,l+=c,h(8)}var d=n[0]&a,m={};p(o);for(var y=1,g=n.length;y<g;++y){var b=n[y]&a,v=d<<8|b,w=m[v];if(void 0===w){for(f|=d<<l,l+=c;l>=8;)t[e++]=255&f,f>>=8,l-=8,e===i+256&&(t[i]=255,i=e++);4096===u?(p(o),u=s+1,c=r+1,m={}):(u>=1<<c&&++c,m[v]=u++),d=b}else d=w}return p(d),p(s),h(1),i+1===e?t[i]=0:(t[i]=e-i-1,t[e++]=0),e}(t,i,p<2?2:p,u),i},this.end=function(){return!1===d&&(t[i++]=59,d=!0),i},this.getOutputBuffer=function(){return t},this.setOutputBuffer=function(e){t=e},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(t){i=t}},e.GifReader=function(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var r=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,o=t[e++],a=o>>7,s=1<<1+(7&o);t[e++],t[e++];var u=null,c=null;a&&(u=e,c=s,e+=3*s);var l=!0,f=[],h=0,p=null,d=0,m=null;for(this.width=r,this.height=i;l&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,m=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((D=t[e++])>=0))throw Error(\"Invalid block size\");if(0===D)break;e+=D}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error(\"Invalid graphics extension block.\");var y=t[e++];h=t[e++]|t[e++]<<8,p=t[e++],1&y||(p=null),d=y>>2&7,e++;break;case 254:for(;;){if(!((D=t[e++])>=0))throw Error(\"Invalid block size\");if(0===D)break;e+=D}break;default:throw new Error(\"Unknown graphic control label: 0x\"+t[e-1].toString(16))}break;case 44:var g=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,_=t[e++],x=_>>6&1,k=1<<1+(7&_),E=u,S=c,T=!1;_>>7&&(T=!0,E=e,S=k,e+=3*k);var A=e;for(e++;;){var D;if(!((D=t[e++])>=0))throw Error(\"Invalid block size\");if(0===D)break;e+=D}f.push({x:g,y:b,width:v,height:w,has_local_palette:T,palette_offset:E,palette_size:S,data_offset:A,data_length:e-A,transparent_index:p,interlaced:!!x,delay:h,disposal:d});break;case 59:l=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+t[e-1].toString(16))}this.numFrames=function(){return f.length},this.loopCount=function(){return m},this.frameInfo=function(t){if(t<0||t>=f.length)throw new Error(\"Frame index out of range.\");return f[t]},this.decodeAndBlitFrameBGRA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);n(t,o.data_offset,s,a);var u=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var l=o.width,f=r-l,h=l,p=4*(o.y*r+o.x),d=4*((o.y+o.height)*r+o.x),m=p,y=4*f;!0===o.interlaced&&(y+=4*r*7);for(var g=8,b=0,v=s.length;b<v;++b){var w=s[b];if(0===h&&(h=l,(m+=y)>=d&&(y=4*f+4*r*(g-1),m=p+(l+f)*(g<<1),g>>=1)),w===c)m+=4;else{var _=t[u+3*w],x=t[u+3*w+1],k=t[u+3*w+2];i[m++]=k,i[m++]=x,i[m++]=_,i[m++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);n(t,o.data_offset,s,a);var u=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var l=o.width,f=r-l,h=l,p=4*(o.y*r+o.x),d=4*((o.y+o.height)*r+o.x),m=p,y=4*f;!0===o.interlaced&&(y+=4*r*7);for(var g=8,b=0,v=s.length;b<v;++b){var w=s[b];if(0===h&&(h=l,(m+=y)>=d&&(y=4*f+4*r*(g-1),m=p+(l+f)*(g<<1),g>>=1)),w===c)m+=4;else{var _=t[u+3*w],x=t[u+3*w+1],k=t[u+3*w+2];i[m++]=_,i[m++]=x,i[m++]=k,i[m++]=255}--h}}}}catch(t){}},,function(t,e,r){var n=r(142),i=r(143);t.exports={encode:n,decode:i}},function(t,e,r){var n=r(195),i=r(196);t.exports={encode:n,decode:i}},function(t,e,r){\"use strict\";(function(t){var r={nearestNeighbor:function(t,e){for(var r=t.width,n=t.height,i=e.width,o=e.height,a=t.data,s=e.data,u=0;u<o;u++)for(var c=0;c<i;c++){var l=4*(u*i+c),f=4*(Math.floor(u*n/o)*r+Math.floor(c*r/i));s[l++]=a[f++],s[l++]=a[f++],s[l++]=a[f++],s[l++]=a[f++]}},bilinearInterpolation:function(t,e){for(var r=t.width,n=t.height,i=e.width,o=e.height,a=t.data,s=e.data,u=function(t,e,r,n,i){return e===n?r:Math.round((t-e)*i+(n-t)*r)},c=function(t,e,n,i,o,c,l,f){var h=4*(l*r+i)+e,p=4*(l*r+o)+e,d=u(n,i,a[h],o,a[p]);if(f===l)s[t+e]=d;else{p=4*(f*r+o)+e;var m=u(n,i,a[h=4*(f*r+i)+e],o,a[p]);s[t+e]=u(c,l,d,f,m)}},l=0;l<o;l++)for(var f=0;f<i;f++){var h=4*(l*i+f),p=f*r/i,d=Math.floor(p),m=Math.min(Math.ceil(p),r-1),y=l*n/o,g=Math.floor(y),b=Math.min(Math.ceil(y),n-1);c(h,0,p,d,m,y,g,b),c(h,1,p,d,m,y,g,b),c(h,2,p,d,m,y,g,b),c(h,3,p,d,m,y,g,b)}},_interpolate2D:function(e,r,n,i){for(var o=e.data,a=r.data,s=e.width,u=e.height,c=r.width,l=r.height,f=Math.max(1,Math.floor(s/c)),h=c*f,p=Math.max(1,Math.floor(u/l)),d=l*p,m=t.alloc(h*u*4),y=0;y<u;y++)for(var g=0;g<h;g++)for(var b=g*(s-1)/h,v=Math.floor(b),w=b-v,_=4*(y*s+v),x=4*(y*h+g),k=0;k<4;k++){var E=_+k,S=v>0?o[E-4]:2*o[E]-o[E+4],T=o[E],A=o[E+4],D=v<s-2?o[E+8]:2*o[E+4]-o[E];m[x+k]=i(S,T,A,D,w)}for(var O=t.alloc(h*d*4),I=0;I<d;I++)for(var P=0;P<h;P++)for(var C=I*(u-1)/d,L=Math.floor(C),M=C-L,F=4*(L*h+P),B=4*(I*h+P),j=0;j<4;j++){var N=F+j,R=L>0?m[N-4*h]:2*m[N]-m[N+4*h],z=m[N],U=m[N+4*h],G=L<u-2?m[N+8*h]:2*m[N+4*h]-m[N];O[B+j]=i(R,z,U,G,M)}var H=f*p;if(H>1)for(var q=0;q<l;q++)for(var V=0;V<c;V++){for(var W=0,Z=0,Y=0,X=0,K=0,J=0;J<p;J++)for(var $=q*p+J,Q=0;Q<f;Q++){var tt=4*($*h+(V*f+Q)),et=O[tt+3];et&&(W+=O[tt],Z+=O[tt+1],Y+=O[tt+2],K++),X+=et}var rt=4*(q*c+V);a[rt]=K?Math.round(W/K):0,a[rt+1]=K?Math.round(Z/K):0,a[rt+2]=K?Math.round(Y/K):0,a[rt+3]=Math.round(X/H)}else r.data=O},bicubicInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var o=n-r-t+e,a=t-e-o,s=r-t,u=e;return Math.max(0,Math.min(255,o*(i*i*i)+a*(i*i)+s*i+u))}))},hermiteInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var o=e,a=.5*(r-t),s=t-2.5*e+2*r-.5*n,u=.5*(n-t)+1.5*(e-r);return Math.max(0,Math.min(255,Math.round(((u*i+s)*i+a)*i+o)))}))},bezierInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var o=1-i,a=e*o*o*o,s=3*(e+(r-t)/4)*o*o*i,u=3*(r-(n-e)/4)*o*i*i,c=r*i*i*i;return Math.max(0,Math.min(255,Math.round(a+s+u+c)))}))}};e.a=r}).call(this,r(2).Buffer)},function(t,e,r){var n=r(221),i=r(222),o=r(223),a=r(224),s=r(225),u=r(226),c=r(227);c.alea=n,c.xor128=i,c.xorwow=o,c.xorshift7=a,c.xor4096=s,c.tychei=u,t.exports=c},,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}r.d(e,\"a\",(function(){return a}));var a=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.items=[]},(e=[{key:\"push\",value:function(t){this.items.push(t)}},{key:\"pop\",value:function(){if(this.isEmpty())throw\"empty stack\";return this.items.pop()}},{key:\"peek\",value:function(){return this.items[this.items.length-1]}},{key:\"isEmpty\",value:function(){return 0===this.items.length}},{key:\"size\",value:function(){return this.items.length}},{key:\"print\",value:function(){}}])&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}()},function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+p]=255&a,p+=d,a/=256,c-=8);t[r+p-d]|=128*m}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&o.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&o.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.readFile=e.writeFileSync=e.writeFile=e.read=e.open=e.close=e.stat=e.createReadStream=e.pathExists=void 0;var s=r(11);function u(){return(u=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.stat(e,(function(e,n){e?r(e):t(n)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function c(){return(c=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.close(e,(function(e){e?r(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=a(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.open(e,r,(function(e,r){e?n(e):t(r)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=a(i().mark((function t(e,r,n,o,a){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,i){s.read(e,r,n,o,a,(function(e,r,n){e?i(e):t({bytesRead:r,buffer:n})}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function h(){return(h=a(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.writeFile(e,r,(function(e){e?n(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function p(){return(p=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.readFile(e,(function(e,n){e?r(e):t(n)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.pathExists=s.existsSync,e.createReadStream=s.createReadStream,e.stat=function(t){return u.apply(this,arguments)},e.close=function(t){return c.apply(this,arguments)},e.open=function(t,e){return l.apply(this,arguments)},e.read=function(t,e,r,n,i){return f.apply(this,arguments)},e.writeFile=function(t,e){return h.apply(this,arguments)},e.writeFileSync=function(t,e){s.writeFileSync(t,e)},e.readFile=function(t){return p.apply(this,arguments)}},function(t,e){function r(t,e){switch(t){case 1:return e.nextUInt8();case 3:case 8:return e.nextUInt16();case 4:case 9:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error(\"Invalid format while decoding: \"+t)}}function n(t,e){var n,i,o=e.nextUInt16(),a=e.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(a),u=e.nextUInt32(),c=s*u;if(c>4&&(e=t.openWithOffset(e.nextUInt32())),2===a){var l=(n=e.nextString(u)).indexOf(\"\\0\");-1!==l&&(n=n.substr(0,l))}else if(7===a)n=e.nextBuffer(u);else if(0!==a)for(n=[],i=0;i<u;++i)n.push(r(a,e));return c<4&&e.skip(4-c),[o,n,a]}function i(t,e,r){var i,o,a=e.nextUInt16();for(o=0;o<a;++o)r((i=n(t,e))[0],i[1],i[2])}t.exports={IFD0:1,IFD1:2,GPSIFD:3,SubIFD:4,InteropIFD:5,parseTags:function(t,e){var r,n,o,a;try{r=function(t){if(\"Exif\\0\\0\"!==t.nextString(6))throw new Error(\"Invalid EXIF header\");var e=t.mark(),r=t.nextUInt16();if(18761===r)t.setBigEndian(!1);else{if(19789!==r)throw new Error(\"Invalid TIFF header\");t.setBigEndian(!0)}if(42!==t.nextUInt16())throw new Error(\"Invalid TIFF data\");return e}(t)}catch(t){return!1}var s=r.openWithOffset(t.nextUInt32()),u=this.IFD0;i(r,s,(function(t,r,i){switch(t){case 34853:o=r[0];break;case 34665:n=r[0];break;default:e(u,t,r,i)}}));var c=s.nextUInt32();if(0!==c){var l=r.openWithOffset(c);i(r,l,e.bind(null,this.IFD1))}if(o){var f=r.openWithOffset(o);i(r,f,e.bind(null,this.GPSIFD))}if(n){var h=r.openWithOffset(n),p=this.InteropIFD;i(r,h,(function(t,r,n){40965===t?a=r[0]:e(p,t,r,n)}))}if(a){var d=r.openWithOffset(a);i(r,d,e.bind(null,this.InteropIFD))}return!0}}},function(t,e,r){\"use strict\";(function(e,n){var i=r(39);t.exports=v;var o,a=r(146);v.ReadableState=b;r(31).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=r(71),c=r(51).Buffer,l=(void 0!==e?e:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var f=Object.create(r(27));f.inherits=r(24);var h=r(147),p=void 0;p=h&&h.debuglog?h.debuglog(\"stream\"):function(){};var d,m=r(148),y=r(72);f.inherits(v,u);var g=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function b(t,e){t=t||{};var n=e instanceof(o=o||r(18));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=r(73).StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||r(18),!(this instanceof v))return new v(t);this._readableState=new b(t,this),this.readable=!0,t&&(\"function\"==typeof t.read&&(this._read=t.read),\"function\"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,r,n,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,E(t)}(t,a)):(i||(o=function(t,e){var r;n=e,c.isBuffer(n)||n instanceof l||\"string\"==typeof e||void 0===e||t.objectMode||(r=new TypeError(\"Invalid non-string/buffer chunk\"));var n;return r}(a,e)),o?t.emit(\"error\",o):a.objectMode||e&&e.length>0?(\"string\"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),n?a.endEmitted?t.emit(\"error\",new Error(\"stream.unshift() after end event\")):_(t,a,e,!0):a.ended?t.emit(\"error\",new Error(\"stream.push() after EOF\")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?_(t,a,e,!1):T(t,a)):_(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function _(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit(\"data\",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&E(t)),T(t,e)}Object.defineProperty(v.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=y.destroy,v.prototype._undestroy=y.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:\"string\"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=c.from(t,e),e=\"\"),r=!0),w(this,t,e,!1,r)},v.prototype.unshift=function(t){return w(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return d||(d=r(73).StringDecoder),this._readableState.decoder=new d(t),this._readableState.encoding=t,this};var x=8388608;function k(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function E(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(p(\"emitReadable\",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(S,t):S(t))}function S(t){p(\"emit readable\"),t.emit(\"readable\"),I(t)}function T(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(A,t,e))}function A(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(p(\"maybeReadMore read 0\"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function D(t){p(\"readable nexttick read 0\"),t.read(0)}function O(t,e){e.reading||(p(\"resume read 0\"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit(\"resume\"),I(t),e.flowing&&!e.reading&&t.read(0)}function I(t){var e=t._readableState;for(p(\"flow\",e.flowing);e.flowing&&null!==t.read(););}function P(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(\"\"):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=c.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function C(t){var e=t._readableState;if(e.length>0)throw new Error('\"endReadable()\" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(L,e,t))}function L(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit(\"end\"))}function M(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}v.prototype.read=function(t){p(\"read\",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return p(\"read: emitReadable\",e.length,e.ended),0===e.length&&e.ended?C(this):E(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&C(this),null;var n,i=e.needReadable;return p(\"need readable\",i),(0===e.length||e.length-t<e.highWaterMark)&&p(\"length less than watermark\",i=!0),e.ended||e.reading?p(\"reading or ended\",i=!1):i&&(p(\"do read\"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=k(r,e))),null===(n=t>0?P(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&C(this)),null!==n&&this.emit(\"data\",n),n},v.prototype._read=function(t){this.emit(\"error\",new Error(\"_read() is not implemented\"))},v.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,p(\"pipe count=%d opts=%j\",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?l:v;function c(e,n){p(\"onunpipe\"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p(\"cleanup\"),t.removeListener(\"close\",g),t.removeListener(\"finish\",b),t.removeListener(\"drain\",f),t.removeListener(\"error\",y),t.removeListener(\"unpipe\",c),r.removeListener(\"end\",l),r.removeListener(\"end\",v),r.removeListener(\"data\",m),h=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function l(){p(\"onend\"),t.end()}o.endEmitted?i.nextTick(u):r.once(\"end\",u),t.on(\"unpipe\",c);var f=function(t){return function(){var e=t._readableState;p(\"pipeOnDrain\",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,\"data\")&&(e.flowing=!0,I(t))}}(r);t.on(\"drain\",f);var h=!1;var d=!1;function m(e){p(\"ondata\"),d=!1,!1!==t.write(e)||d||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==M(o.pipes,t))&&!h&&(p(\"false write response, pause\",o.awaitDrain),o.awaitDrain++,d=!0),r.pause())}function y(e){p(\"onerror\",e),v(),t.removeListener(\"error\",y),0===s(t,\"error\")&&t.emit(\"error\",e)}function g(){t.removeListener(\"finish\",b),v()}function b(){p(\"onfinish\"),t.removeListener(\"close\",g),v()}function v(){p(\"unpipe\"),r.unpipe(t)}return r.on(\"data\",m),function(t,e,r){if(\"function\"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,\"error\",y),t.once(\"close\",g),t.once(\"finish\",b),t.emit(\"pipe\",r),o.flowing||(p(\"pipe resume\"),r.resume()),t},v.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit(\"unpipe\",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var a=M(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit(\"unpipe\",this,r)),this},v.prototype.on=function(t,e){var r=u.prototype.on.call(this,t,e);if(\"data\"===t)!1!==this._readableState.flowing&&this.resume();else if(\"readable\"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&E(this):i.nextTick(D,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(p(\"resume\"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(O,t,e))}(this,t)),this},v.prototype.pause=function(){return p(\"call pause flowing=%j\",this._readableState.flowing),!1!==this._readableState.flowing&&(p(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this},v.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on(\"end\",(function(){if(p(\"wrapped end\"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on(\"data\",(function(i){(p(\"wrapped data\"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&\"function\"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<g.length;o++)t.on(g[o],this.emit.bind(this,g[o]));return this._read=function(e){p(\"wrapped _read\",e),n&&(n=!1,t.resume())},this},Object.defineProperty(v.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=P}).call(this,r(10),r(7))},function(t,e,r){t.exports=r(31).EventEmitter},function(t,e,r){\"use strict\";var n=r(39);function i(t,e){t.emit(\"error\",e)}t.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,r){\"use strict\";var n=r(152).Buffer,i=n.isEncoding||function(t){switch((t=\"\"+t)&&t.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return\"utf8\";for(var e;;)switch(t){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return t;default:if(e)return;t=(\"\"+t).toLowerCase(),e=!0}}(t);if(\"string\"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error(\"Unknown encoding: \"+t);return e||t}(t),this.encoding){case\"utf16le\":this.text=u,this.end=c,e=4;break;case\"utf8\":this.fillLast=s,e=4;break;case\"base64\":this.text=l,this.end=f,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,\"�\";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,\"�\";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,\"�\"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString(\"utf16le\",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(\"utf16le\",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(\"utf16le\",0,r)}return e}function l(t,e){var r=(t.length-e)%3;return 0===r?t.toString(\"base64\",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(\"base64\",e,t.length-r))}function f(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+this.lastChar.toString(\"base64\",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):\"\"}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return\"\";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return\"\";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||\"\"},o.prototype.end=function(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+\"�\":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=a(e[n]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=a(e[n]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString(\"utf8\",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString(\"utf8\",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,r){\"use strict\";t.exports=a;var n=r(18),i=Object.create(r(27));function o(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit(\"error\",new Error(\"write callback called multiple times\"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);n.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(\"function\"==typeof t.transform&&(this._transform=t.transform),\"function\"==typeof t.flush&&(this._flush=t.flush)),this.on(\"prefinish\",s)}function s(){var t=this;\"function\"==typeof this._flush?this._flush((function(e,r){u(t,e,r)})):u(this,null,null)}function u(t,e,r){if(e)return t.emit(\"error\",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error(\"Calling transform done when ws.length != 0\");if(t._transformState.transforming)throw new Error(\"Calling transform done when still transforming\");return t.push(null)}i.inherits=r(24),i.inherits(a,n),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,r){throw new Error(\"_transform() is not implemented\")},a.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit(\"close\")}))}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=Object.prototype.toString;t.exports=function(t){var e=i.call(t),r=\"[object Arguments]\"===e;return r||(r=\"[object Array]\"!==e&&null!==t&&\"object\"===n(t)&&\"number\"==typeof t.length&&t.length>=0&&\"[object Function]\"===i.call(t.callee)),r}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}t.exports=function(){if(\"function\"!=typeof Symbol||\"function\"!=typeof Object.getOwnPropertySymbols)return!1;if(\"symbol\"===n(Symbol.iterator))return!0;var t={},e=Symbol(\"test\"),r=Object(e);if(\"string\"==typeof e)return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(e))return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if(\"function\"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if(\"function\"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(\"function\"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,r){\"use strict\";t.exports=SyntaxError},function(t,e,r){\"use strict\";var n=r(29)(\"%Object.getOwnPropertyDescriptor%\",!0);if(n)try{n([],\"length\")}catch(t){n=null}t.exports=n},function(t,e,r){\"use strict\";t.exports=function(t,e,r,n){for(var i=65535&t,o=t>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},function(t,e,r){\"use strict\";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var o=n,a=i+r;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return~t}},function(t,e,r){\"use strict\";(function(e,n){var i=r(14),o=r(38),a=t.exports=function(){o.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding=\"utf8\",this.writable=!0};i.inherits(a,o),a.prototype.read=function(t,r){this._reads.push({length:Math.abs(t),allowLess:t<0,func:r}),e.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit(\"drain\"))}.bind(this))},a.prototype.write=function(t,e){return this.writable?(r=n.isBuffer(t)?t:n.from(t,e||this._encoding),this._buffers.push(r),this._buffered+=r.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit(\"error\",new Error(\"Stream not writable\")),!1);var r},a.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},a.prototype.destroySoon=a.prototype.end,a.prototype._end=function(){this._reads.length>0&&this.emit(\"error\",new Error(\"Unexpected end of input\")),this.destroy()},a.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit(\"close\"))},a.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},a.prototype._processRead=function(t){this._reads.shift();for(var e=0,r=0,i=n.alloc(t.length);e<t.length;){var o=this._buffers[r++],a=Math.min(o.length,t.length-e);o.copy(i,e,0,a),e+=a,a!==o.length&&(this._buffers[--r]=o.slice(a))}r>0&&this._buffers.splice(0,r),this._buffered-=t.length,t.func.call(this,i)},a.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit(\"error\",t)}}}).call(this,r(7),r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(83),i=r(84);function o(t,e,r){var n=t*e;return 8!==r&&(n=Math.ceil(n/(8/r))),n}var a=t.exports=function(t,e){var r=t.width,i=t.height,a=t.interlace,s=t.bpp,u=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],a)for(var c=n.getImagePasses(r,i),l=0;l<c.length;l++)this._images.push({byteWidth:o(c[l].width,s,u),height:c[l].height,lineIndex:0});else this._images.push({byteWidth:o(r,s,u),height:i,lineIndex:0});this._xComparison=8===u?s:16===u?2*s:1};a.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},a.prototype._unFilterType1=function(t,e,r){for(var n=this._xComparison,i=n-1,o=0;o<r;o++){var a=t[1+o],s=o>i?e[o-n]:0;e[o]=a+s}},a.prototype._unFilterType2=function(t,e,r){for(var n=this._lastLine,i=0;i<r;i++){var o=t[1+i],a=n?n[i]:0;e[i]=o+a}},a.prototype._unFilterType3=function(t,e,r){for(var n=this._xComparison,i=n-1,o=this._lastLine,a=0;a<r;a++){var s=t[1+a],u=o?o[a]:0,c=a>i?e[a-n]:0,l=Math.floor((c+u)/2);e[a]=s+l}},a.prototype._unFilterType4=function(t,e,r){for(var n=this._xComparison,o=n-1,a=this._lastLine,s=0;s<r;s++){var u=t[1+s],c=a?a[s]:0,l=s>o?e[s-n]:0,f=s>o&&a?a[s-n]:0,h=i(l,c,f);e[s]=u+h}},a.prototype._reverseFilterLine=function(t){var r,n=t[0],i=this._images[this._imageIndex],o=i.byteWidth;if(0===n)r=t.slice(1,o+1);else switch(r=e.alloc(o),n){case 1:this._unFilterType1(t,r,o);break;case 2:this._unFilterType2(t,r,o);break;case 3:this._unFilterType3(t,r,o);break;case 4:this._unFilterType4(t,r,o);break;default:throw new Error(\"Unrecognised filter type - \"+n)}this.write(r),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=r,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var r=[],i=t%8,o=e%8,a=(t-i)/8,s=(e-o)/8,u=0;u<n.length;u++){for(var c=n[u],l=a*c.x.length,f=s*c.y.length,h=0;h<c.x.length&&c.x[h]<i;h++)l++;for(var p=0;p<c.y.length&&c.y[p]<o;p++)f++;l>0&&f>0&&r.push({width:l,height:f,index:u})}return r},e.getInterlaceIterator=function(t){return function(e,r,i){var o=e%n[i].x.length,a=(e-o)/n[i].x.length*8+n[i].x[o],s=r%n[i].y.length;return 4*a+((r-s)/n[i].y.length*8+n[i].y[s])*t*4}}},function(t,e,r){\"use strict\";t.exports=function(t,e,r){var n=t+e-r,i=Math.abs(n-t),o=Math.abs(n-e),a=Math.abs(n-r);return i<=o&&i<=a?t:o<=a?e:r}},function(t,e,r){\"use strict\";(function(e){var n=r(30),i=r(86),o=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[n.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[n.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[n.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[n.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[n.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[n.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};o.prototype.start=function(){this.read(n.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(t){for(var e=n.PNG_SIGNATURE,r=0;r<e.length;r++)if(t[r]!==e[r])return void this.error(new Error(\"Invalid file signature\"));this.read(8,this._parseChunkBegin.bind(this))},o.prototype._parseChunkBegin=function(t){for(var r=t.readUInt32BE(0),o=t.readUInt32BE(4),a=\"\",s=4;s<8;s++)a+=String.fromCharCode(t[s]);var u=Boolean(32&t[4]);if(this._hasIHDR||o===n.TYPE_IHDR){if(this._crc=new i,this._crc.write(e.from(a)),this._chunks[o])return this._chunks[o](r);u?this.read(r+4,this._skipChunk.bind(this)):this.error(new Error(\"Unsupported critical chunk type \"+a))}else this.error(new Error(\"Expected IHDR on beggining\"))},o.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},o.prototype._parseChunkEnd=function(t){var e=t.readInt32BE(0),r=this._crc.crc32();this._options.checkCRC&&r!==e?this.error(new Error(\"Crc error - \"+e+\" - \"+r)):this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleIHDR=function(t){this.read(t,this._parseIHDR.bind(this))},o.prototype._parseIHDR=function(t){this._crc.write(t);var e=t.readUInt32BE(0),r=t.readUInt32BE(4),i=t[8],o=t[9],a=t[10],s=t[11],u=t[12];if(8===i||4===i||2===i||1===i||16===i)if(o in n.COLORTYPE_TO_BPP_MAP)if(0===a)if(0===s)if(0===u||1===u){this._colorType=o;var c=n.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:r,depth:i,interlace:Boolean(u),palette:Boolean(o&n.COLORTYPE_PALETTE),color:Boolean(o&n.COLORTYPE_COLOR),alpha:Boolean(o&n.COLORTYPE_ALPHA),bpp:c,colorType:o}),this._handleChunkEnd()}else this.error(new Error(\"Unsupported interlace method\"));else this.error(new Error(\"Unsupported filter method\"));else this.error(new Error(\"Unsupported compression method\"));else this.error(new Error(\"Unsupported color type\"));else this.error(new Error(\"Unsupported bit depth \"+i))},o.prototype._handlePLTE=function(t){this.read(t,this._parsePLTE.bind(this))},o.prototype._parsePLTE=function(t){this._crc.write(t);for(var e=Math.floor(t.length/3),r=0;r<e;r++)this._palette.push([t[3*r],t[3*r+1],t[3*r+2],255]);this.palette(this._palette),this._handleChunkEnd()},o.prototype._handleTRNS=function(t){this.simpleTransparency(),this.read(t,this._parseTRNS.bind(this))},o.prototype._parseTRNS=function(t){if(this._crc.write(t),this._colorType===n.COLORTYPE_PALETTE_COLOR){if(0===this._palette.length)return void this.error(new Error(\"Transparency chunk must be after palette\"));if(t.length>this._palette.length)return void this.error(new Error(\"More transparent colors than palette size\"));for(var e=0;e<t.length;e++)this._palette[e][3]=t[e];this.palette(this._palette)}this._colorType===n.COLORTYPE_GRAYSCALE&&this.transColor([t.readUInt16BE(0)]),this._colorType===n.COLORTYPE_COLOR&&this.transColor([t.readUInt16BE(0),t.readUInt16BE(2),t.readUInt16BE(4)]),this._handleChunkEnd()},o.prototype._handleGAMA=function(t){this.read(t,this._parseGAMA.bind(this))},o.prototype._parseGAMA=function(t){this._crc.write(t),this.gamma(t.readUInt32BE(0)/n.GAMMA_DIVISION),this._handleChunkEnd()},o.prototype._handleIDAT=function(t){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-t,this._parseIDAT.bind(this,t))},o.prototype._parseIDAT=function(t,e){if(this._crc.write(e),this._colorType===n.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw new Error(\"Expected palette not found\");this.inflateData(e);var r=t-e.length;r>0?this._handleIDAT(r):this._handleChunkEnd()},o.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},o.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=[];!function(){for(var t=0;t<256;t++){for(var e=t,r=0;r<8;r++)1&e?e=3988292384^e>>>1:e>>>=1;n[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e<t.length;e++)this._crc=n[255&(this._crc^t[e])]^this._crc>>>8;return!0},i.prototype.crc32=function(){return~this._crc},i.crc32=function(t){for(var e=-1,r=0;r<t.length;r++)e=n[255&(e^t[r])]^e>>>8;return~e}},function(t,e,r){\"use strict\";(function(t){var n=r(83),i=[function(){},function(t,e,r,n){if(n===e.length)throw new Error(\"Ran out of data\");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=255},function(t,e,r,n){if(n+1>=e.length)throw new Error(\"Ran out of data\");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=e[n+1]},function(t,e,r,n){if(n+2>=e.length)throw new Error(\"Ran out of data\");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=255},function(t,e,r,n){if(n+3>=e.length)throw new Error(\"Ran out of data\");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=e[n+3]}],o=[function(){},function(t,e,r,n){var i=e[0];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=n},function(t,e,r){var n=e[0];t[r]=n,t[r+1]=n,t[r+2]=n,t[r+3]=e[1]},function(t,e,r,n){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=n},function(t,e,r){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=e[3]}];function a(t,e,r,n,o,a){for(var s=t.width,u=t.height,c=t.index,l=0;l<u;l++)for(var f=0;f<s;f++){var h=r(f,l,c);i[n](e,o,h,a),a+=n}return a}function s(t,e,r,n,i,a){for(var s=t.width,u=t.height,c=t.index,l=0;l<u;l++){for(var f=0;f<s;f++){var h=i.get(n),p=r(f,l,c);o[n](e,h,p,a)}i.resetAfterLine()}}e.dataToBitMap=function(e,r){var i,o,u=r.width,c=r.height,l=r.depth,f=r.bpp,h=r.interlace;8!==l&&(i=function(t,e){var r=[],n=0;function i(){if(n===t.length)throw new Error(\"Ran out of data\");var i,o,a,s,u,c,l,f,h=t[n];switch(n++,e){default:throw new Error(\"unrecognised depth\");case 16:l=t[n],n++,r.push((h<<8)+l);break;case 4:l=15&h,f=h>>4,r.push(f,l);break;case 2:u=3&h,c=h>>2&3,l=h>>4&3,f=h>>6&3,r.push(f,l,c,u);break;case 1:i=1&h,o=h>>1&1,a=h>>2&1,s=h>>3&1,u=h>>4&1,c=h>>5&1,l=h>>6&1,f=h>>7&1,r.push(f,l,c,u,s,a,o,i)}}return{get:function(t){for(;r.length<t;)i();var e=r.slice(0,t);return r=r.slice(t),e},resetAfterLine:function(){r.length=0},end:function(){if(n!==t.length)throw new Error(\"extra data found\")}}}(e,l)),o=l<=8?t.alloc(u*c*4):new Uint16Array(u*c*4);var p,d,m=Math.pow(2,l)-1,y=0;if(h)p=n.getImagePasses(u,c),d=n.getInterlaceIterator(u,c);else{var g=0;d=function(){var t=g;return g+=4,t},p=[{width:u,height:c}]}for(var b=0;b<p.length;b++)8===l?y=a(p[b],o,d,f,e,y):s(p[b],o,d,f,i,m);if(8===l){if(y!==e.length)throw new Error(\"extra data found\")}else i.end();return o}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){t.exports=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=r.depth,o=r.width,a=r.height,s=r.colorType,u=r.transColor,c=r.palette,l=t;return 3===s?function(t,e,r,n,i){for(var o=0,a=0;a<n;a++)for(var s=0;s<r;s++){var u=i[t[o]];if(!u)throw new Error(\"index \"+t[o]+\" not in palette\");for(var c=0;c<4;c++)e[o+c]=u[c];o+=4}}(t,l,o,a,c):(u&&function(t,e,r,n,i){for(var o=0,a=0;a<n;a++)for(var s=0;s<r;s++){var u=!1;if(1===i.length?i[0]===t[o]&&(u=!0):i[0]===t[o]&&i[1]===t[o+1]&&i[2]===t[o+2]&&(u=!0),u)for(var c=0;c<4;c++)e[o+c]=0;o+=4}}(t,l,o,a,u),8===i||n||(16===i&&(l=e.alloc(o*a*4)),function(t,e,r,n,i){for(var o=Math.pow(2,i)-1,a=0,s=0;s<n;s++)for(var u=0;u<r;u++){for(var c=0;c<4;c++)e[a+c]=Math.floor(255*t[a+c]/o+.5);a+=4}}(t,l,o,a,i))),l}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(30),i=r(86),o=r(188),a=r(189),s=r(28),u=t.exports=function(t){if(this._options=t,t.deflateChunkSize=t.deflateChunkSize||32768,t.deflateLevel=null!=t.deflateLevel?t.deflateLevel:9,t.deflateStrategy=null!=t.deflateStrategy?t.deflateStrategy:3,t.inputHasAlpha=null==t.inputHasAlpha||t.inputHasAlpha,t.deflateFactory=t.deflateFactory||s.createDeflate,t.bitDepth=t.bitDepth||8,t.colorType=\"number\"==typeof t.colorType?t.colorType:n.COLORTYPE_COLOR_ALPHA,t.inputColorType=\"number\"==typeof t.inputColorType?t.inputColorType:n.COLORTYPE_COLOR_ALPHA,-1===[n.COLORTYPE_GRAYSCALE,n.COLORTYPE_COLOR,n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(t.colorType))throw new Error(\"option color type:\"+t.colorType+\" is not supported at present\");if(-1===[n.COLORTYPE_GRAYSCALE,n.COLORTYPE_COLOR,n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(t.inputColorType))throw new Error(\"option input color type:\"+t.inputColorType+\" is not supported at present\");if(8!==t.bitDepth&&16!==t.bitDepth)throw new Error(\"option bit depth:\"+t.bitDepth+\" is not supported at present\")};u.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},u.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},u.prototype.filterData=function(t,e,r){var i=o(t,e,r,this._options),s=n.COLORTYPE_TO_BPP_MAP[this._options.colorType];return a(i,e,r,this._options,s)},u.prototype._packChunk=function(t,r){var n=r?r.length:0,o=e.alloc(n+12);return o.writeUInt32BE(n,0),o.writeUInt32BE(t,4),r&&r.copy(o,8),o.writeInt32BE(i.crc32(o.slice(4,o.length-4)),o.length-4),o},u.prototype.packGAMA=function(t){var r=e.alloc(4);return r.writeUInt32BE(Math.floor(t*n.GAMMA_DIVISION),0),this._packChunk(n.TYPE_gAMA,r)},u.prototype.packIHDR=function(t,r){var i=e.alloc(13);return i.writeUInt32BE(t,0),i.writeUInt32BE(r,4),i[8]=this._options.bitDepth,i[9]=this._options.colorType,i[10]=0,i[11]=0,i[12]=0,this._packChunk(n.TYPE_IHDR,i)},u.prototype.packIDAT=function(t){return this._packChunk(n.TYPE_IDAT,t)},u.prototype.packIEND=function(){return this._packChunk(n.TYPE_IEND,null)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=t.exports=function(t){this._buffer=t,this._reads=[]};n.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})},n.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}if(this._reads.length>0)throw new Error(\"There are some read requests waitng on finished stream\");if(this._buffer.length>0)throw new Error(\"unrecognised content at end of stream\")}},function(t,e,r){\"use strict\";t.exports=function(t,e,r,n){for(var i=65535&t,o=t>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},function(t,e,r){\"use strict\";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var o=n,a=i+r;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return~t}},function(t,e,r){\"use strict\";var n=r(15),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r=\"\",a=0;a<e;a++)r+=String.fromCharCode(t[a]);return r}a[254]=a[254]=1,e.string2buf=function(t){var e,r,i,o,a,s=t.length,u=0;for(o=0;o<s;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),u+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(u),a=0,o=0;a<u;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,o,s=e||t.length,c=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)c[n++]=i;else if((o=a[i])>4)c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<s;)i=i<<6|63&t[r++],o--;o>1?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return u(c,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+a[t[r]]>e?r:e}},function(t,e,r){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}var a=r(59),s=r(42),u=s.Gif,c=s.GifError;function l(){var t=r(97);return l=function(){return t},t}var f=r(58).GifFrame,h=function(){return e=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this._transparentRGB=null,\"number\"==typeof e.transparentRGB&&0!==e.transparentRGB&&(this._transparentRGBA=256*e.transparentRGB),this._testInitialBufferSize=0},r=[{key:\"decodeGif\",value:function(t){try{var e;try{e=new a.GifReader(t)}catch(t){throw new c(t)}for(var r=e.numFrames(),n=[],i={width:e.width,height:e.height,loops:e.loopCount(),usesTransparency:!1},o=0;o<r;++o){var s=this._decodeFrame(e,o,i.usesTransparency);n.push(s.frame),s.usesTransparency&&(i.usesTransparency=!0)}return Promise.resolve(new u(t,n,i))}catch(t){return Promise.reject(t)}}},{key:\"encodeGif\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{if(null===t||0===t.length)throw new c(\"there are no frames\");var r=l().getMaxDimensions(t);return(e=Object.assign({},e)).width=r.maxWidth,e.height=r.maxHeight,void 0===e.loops&&(e.loops=0),e.colorScope=e.colorScope||u.GlobalColorsPreferred,Promise.resolve(this._encodeGif(t,e))}catch(t){return Promise.reject(t)}}},{key:\"_decodeFrame\",value:function(e,r,n){var i,o;try{if(i=e.frameInfo(r),o=new t(e.width*e.height*4),e.decodeAndBlitFrameRGBA(r,o),i.width!==e.width||i.height!==e.height){if(i.y&&(o=o.slice(i.y*e.width*4)),e.width>i.width)for(var a=0;a<i.height;++a)o.copy(o,a*i.width*4,4*(i.x+a*e.width),4*(i.x+a*e.width)+4*i.width);o=o.slice(0,i.width*i.height*4)}}catch(t){throw new c(t)}var s=!1;if(null===this._transparentRGBA){if(!n)for(var u=3;u<o.length;u+=4)0===o[u]&&(s=!0,u=o.length)}else for(var l=3;l<o.length;l+=4)0===o[l]&&(o.writeUInt32BE(this._transparentRGBA,l-3),s=!0);return{frame:new f(i.width,i.height,o,{xOffset:i.x,yOffset:i.y,disposalMethod:i.disposal,interlaced:i.interlaced,delayCentisecs:i.delay}),usesTransparency:s}}},{key:\"_encodeGif\",value:function(e,r){var n;if(r.colorScope===u.LocalColorsOnly)n=l().getColorInfo(e,0);else if(!(n=l().getColorInfo(e,256)).colors){if(r.colorScope===u.GlobalColorsOnly)throw new c(\"Too many color indexes for global color table\");r.colorScope=u.LocalColorsOnly}r.usesTransparency=n.usesTransparency;var i=n.palettes;return r.colorScope===u.LocalColorsOnly?function(e,r,n,i){var o,s={loop:r.loops},l=new t(n);try{o=new a.GifWriter(l,r.width,r.height,s)}catch(t){throw new c(t)}for(var f=0;f<e.length;++f)l=b(o,f,e[f],i[f],!0);return new u(l.slice(0,o.end()),e,r)}(e,r,2e3,i):function(e,r,n,i){var o={colors:i.colors.slice(),usesTransparency:i.usesTransparency};m(o);var s,l={palette:o.colors,loop:r.loops},f=new t(n);try{s=new a.GifWriter(f,r.width,r.height,l)}catch(t){throw new c(t)}for(var h=0;h<e.length;++h)f=b(s,h,e[h],i,!1);return new u(f.slice(0,s.end()),e,r)}(e,r,2e3,n)}},{key:\"_getSizeEstimateGlobal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;var r=968,n=g(t);return e.forEach((function(t){r+=y(t,n)})),r}},{key:\"_getSizeEstimateLocal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;for(var r=200,n=0;n<e.length;++n){var i=g(t[n]);r+=y(e[n],i)}return r}}],r&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,n}();function p(t,e){var r=t.indexOf(e);return-1===r?null:r}function d(t,e){for(var r,n=0,i=t.length-1;n<=i;)if(t[r=Math.floor((n+i)/2)]>e)i=r-1;else{if(!(t[r]<e))return r;n=r+1}return null}function m(t){var e=t.colors;t.usesTransparency&&e.push(0);for(var r=e.length,n=2;r>n;)n<<=1;e.length=n,e.fill(0,r)}function y(t,e){var r=t.bitmap.width*t.bitmap.height;return r=Math.ceil(r*e/8),100+(r+=Math.ceil(r/255))+768}function g(t){var e=t.indexCount,r=0;for(--e;e;)++r,e>>=1;return r>0?r:1}function b(e,r,n,i,o){if(n.interlaced)throw new c(\"writing interlaced GIFs is not supported\");var a=function(e,r,n){for(var i=n.colors,o=i.length<=8?p:d,a=r.bitmap.data,s=new t(a.length/4),u=i.length,l=0,f=0;l<a.length;){if(0!==a[l+3]){var h=a.readUInt32BE(l,!0)>>8&16777215;s[f]=o(i,h)}else s[f]=u;l+=4,++f}if(n.usesTransparency){if(256===u)throw new c(\"Frame \".concat(e,\" already has 256 colors\")+\"and so can't use transparency\")}else u=null;return{buffer:s,transparentIndex:u}}(r,n,i),s={delay:n.delayCentisecs,disposal:n.disposalMethod,transparent:a.transparentIndex};o&&(m(i),s.palette=i.colors);try{for(var u,l=e.getOutputBuffer(),f=e.getOutputBufferPosition(),h=!0;h;)if(u=e.addFrame(n.xOffset,n.yOffset,n.bitmap.width,n.bitmap.height,a.buffer,s),h=!1,u>=l.length-1){var y=new t(1.5*l.length);l.copy(y),e.setOutputBuffer(y),e.setOutputBufferPosition(f),l=y,h=!0}return l}catch(t){throw new c(t)}}e.GifCodec=h}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(11),i=r(206),o=r(57),a=r(58).GifFrame,s=r(42).GifError,u=r(96).GifCodec,c=[\".jpg\",\".jpeg\",\".png\",\".bmp\"],l=new u;function f(t,e,r,n,o){var a=Array.isArray(t)?t:[t];if(o){if([\"FloydSteinberg\",\"FalseFloydSteinberg\",\"Stucki\",\"Atkinson\",\"Jarvis\",\"Burkes\",\"Sierra\",\"TwoSierra\",\"SierraLite\"].indexOf(o.ditherAlgorithm)<0)throw new Error(\"Invalid ditherAlgorithm '\".concat(o.ditherAlgorithm,\"'\"));void 0===o.serpentine&&(o.serpentine=!0),void 0===o.minimumColorDistanceToDither&&(o.minimumColorDistanceToDither=0),void 0===o.calculateErrorLikeGIMP&&(o.calculateErrorLikeGIMP=!1)}var s,u=new i.distance.Euclidean,c=new i.palette[e](u,r,n);s=o?new i.image.ErrorDiffusionArray(u,i.image.ErrorDiffusionArrayKernel[o.ditherAlgorithm],o.serpentine,o.minimumColorDistanceToDither,o.calculateErrorLikeGIMP):new i.image.NearestColor(u);var l=[];a.forEach((function(t){for(var e=t.bitmap.data,r=new ArrayBuffer(e.length),n=new Uint32Array(r),o=0,a=0;o<e.length;o+=4,++a)n[a]=e.readUInt32LE(o,!0);var s=i.utils.PointContainer.fromUint32Array(n,t.bitmap.width,t.bitmap.height);c.sample(s),l.push(s)}));for(var f=c.quantizeSync(),h=0;h<a.length;++h)for(var p=a[h].bitmap.data,d=s.quantizeSync(l[h],f).toUint32Array(),m=0,y=0;m<p.length;m+=4,++y)p.writeUInt32LE(d[y],m)}e.cloneFrames=function(t){var e=[];return t.forEach((function(t){e.push(new a(t))})),e},e.getColorInfo=function(t,e){for(var r=!1,n=[],i=0;i<t.length;++i){var o=t[i].getPalette();if(o.usesTransparency&&(r=!0),o.indexCount>256)throw new s(\"Frame \".concat(i,\" uses more than 256 color indexes\"));n.push(o)}if(0===e)return{usesTransparency:r,palettes:n};var a=new Set;n.forEach((function(t){t.colors.forEach((function(t){a.add(t)}))}));var u=a.size;if(r&&++u,e&&u>e)return{usesTransparency:r,palettes:n};for(var c=new Array(a.size),l=a.values(),f=0;f<c.length;++f)c[f]=l.next().value;return c.sort((function(t,e){return t-e})),{colors:c,indexCount:u,usesTransparency:r,palettes:n}},e.copyAsJimp=function(t,r){return e.shareAsJimp(t,new o(r))},e.getMaxDimensions=function(t){var e=0,r=0;return t.forEach((function(t){var n=t.xOffset+t.bitmap.width;n>e&&(e=n);var i=t.yOffset+t.bitmap.height;i>r&&(r=i)})),{maxWidth:e,maxHeight:r}},e.quantizeDekker=function(t,e,r){f(t,\"NeuQuantFloat\",e=e||256,0,r)},e.quantizeSorokin=function(t,e,r,n){var i;switch(e=e||256,r=r||\"min-pop\"){case\"min-pop\":i=2;break;case\"top-pop\":i=1;break;default:throw new Error(\"Invalid quantizeSorokin histogram '\".concat(r,\"'\"))}f(t,\"RGBQuant\",e,i,n)},e.quantizeWu=function(t,e,r,n){if(e=e||256,(r=r||5)<1||r>8)throw new Error(\"Invalid quantization quality\");f(t,\"WuQuant\",e,r,n)},e.read=function(e,r){return r=r||l,t.isBuffer(e)?r.decodeGif(e):(i=e,new Promise((function(t,e){n.readFile(i,(function(r,n){return r?e(r):t(n)}))}))).then((function(t){return r.decodeGif(t)}));var i},e.shareAsJimp=function(t,e){var r=new t(e.bitmap.width,e.bitmap.height,0);return r.bitmap.data=e.bitmap.data,r},e.write=function(t,e,r,i){i=i||l;var o=t.match(/\\.[a-zA-Z]+$/);if(null!==o&&c.includes(o[0].toLowerCase()))throw new Error(\"GIF '\".concat(t,\"' has an unexpected suffix\"));return i.encodeGif(e,r).then((function(e){return function(t,e){return new Promise((function(r,i){n.writeFile(t,e,(function(t){return t?i(t):r()}))}))}(t,e.buffer).then((function(){return e}))}))}}).call(this,r(2).Buffer)},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t};var r=Object.prototype.hasOwnProperty},function(t,e,r){function n(t,e,r){this._queue=[],this._priorities=[],this._sorting=\"desc\",this._init(t,e,r)}n.prototype.insert=function(t,e){for(var r=this._queue.length,n=r;n--;){var i=this._priorities[n];\"desc\"===this._sorting?e>i&&(r=n):e<i&&(r=n)}this._insertAt(t,e,r)},n.prototype.remove=function(t){for(var e=this._queue.length;e--;){if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}}},n.prototype.forEach=function(t){this._queue.forEach(t)},n.prototype.getElements=function(){return this._queue},n.prototype.getElementPriority=function(t){return this._priorities[t]},n.prototype.getPriorities=function(){return this._priorities},n.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,r=this._queue.length;e<r;e++)t.push([this._queue[e],this._priorities[e]]);return t},n.prototype._init=function(t,e,r){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error(\"Arrays must have the same length\");for(var n=0;n<t.length;n++)this.insert(t[n],e[n])}r&&(this._sorting=r)},n.prototype._insertAt=function(t,e,r){this._queue.length===r?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(r,0,t),this._priorities.splice(r,0,e))},t.exports&&(t.exports=n)},function(t,e){function r(e){return t.exports=r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){\"use strict\";function n(t,e,r,o,a,s){for(var u,c,l,f,h=Math.max(e-1,0),p=Math.max(r-1,0),d=Math.min(e+1,o-1),m=Math.min(r+1,a-1),y=4*(r*o+e),g=0,b=0,v=0,w=0,_=0,x=h;x<=d;x++)for(var k=p;k<=m;k++)if(x!==e||k!==r){var E=i(t,t,y,4*(k*o+x),!0);if(0===E?g++:E<0?v++:E>0&&b++,g>2)return!1;s&&(E<w&&(w=E,u=x,c=k),E>_&&(_=E,l=x,f=k))}return!s||0!==v&&0!==b&&(!n(t,u,c,o,a)&&!n(s,u,c,o,a)||!n(t,l,f,o,a)&&!n(s,l,f,o,a))}function i(t,e,r,n,i){var c=t[r+3]/255,l=e[n+3]/255,f=u(t[r+0],c),h=u(t[r+1],c),p=u(t[r+2],c),d=u(e[n+0],l),m=u(e[n+1],l),y=u(e[n+2],l),g=o(f,h,p)-o(d,m,y);if(i)return g;var b=a(f,h,p)-a(d,m,y),v=s(f,h,p)-s(d,m,y);return.5053*g*g+.299*b*b+.1957*v*v}function o(t,e,r){return.29889531*t+.58662247*e+.11448223*r}function a(t,e,r){return.59597799*t-.2741761*e-.32180189*r}function s(t,e,r){return.21147017*t-.52261711*e+.31114694*r}function u(t,e){return 255+(t-255)*e}function c(t,e,r,n,i){t[e+0]=r,t[e+1]=n,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,r,a,s,l){l||(l={});for(var f=void 0===l.threshold?.1:l.threshold,h=35215*f*f,p=0,d=0;d<s;d++)for(var m=0;m<a;m++){var y=4*(d*a+m);if(i(t,e,y,y)>h)l.includeAA||!n(t,m,d,a,s,e)&&!n(e,m,d,a,s,t)?(r&&c(r,y,255,0,0),p++):r&&c(r,y,255,255,0);else if(r){var g=u((w=void 0,_=void 0,x=void 0,k=void 0,w=(b=t)[(v=y)+3]/255,_=u(b[v+0],w),x=u(b[v+1],w),k=u(b[v+2],w),o(_,x,k)),.1);c(r,y,g,g,g)}}var b,v,w,_,x,k;return p}},function(t,e,r){\"use strict\";r(123);var n=[\"url\"];function i(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}e.a=function(t,e){var r=t.url,o=i(t,n);fetch(r,o).then((function(t){if(t.ok)return t.arrayBuffer().catch((function(t){throw new Error(\"Response is not a buffer for url \".concat(r,\". Error: \").concat(t.message))}));throw new Error(\"HTTP Status \".concat(t.status,\" for url \").concat(r))})).then((function(t){return e(null,t)})).catch((function(t){return e(t)}))}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&o.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&o.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}var a=r(125),s=r(131);function u(){var t;return t=i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.fromFile(e);case 2:return r=t.sent,t.prev=3,t.next=6,s.fromTokenizer(r);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])})),u=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))},u.apply(this,arguments)}var c={fromFile:function(t){return u.apply(this,arguments)}};Object.assign(c,s),Object.defineProperty(c,\"extensions\",{get:function(){return s.extensions}}),Object.defineProperty(c,\"mimeTypes\",{get:function(){return s.mimeTypes}}),t.exports=c},function(t,e,r){var n=r(135);t.exports={create:function(t,e){if(t instanceof(e=e||(0,eval)(\"this\")).ArrayBuffer){var i=r(140);return new n(new i(t,0,t.byteLength,!0,e))}var o=r(141);return new n(new o(t,0,t.length,!0))}}},function(t,e,r){\"use strict\";(function(t){var n=r(36),i=r.n(n);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function a(t,e,r){var n;return n=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=\"image/tiff\";e.a=function(){return{mime:a({},s,[\"tiff\",\"tif\"]),constants:{MIME_TIFF:s},decoders:a({},s,(function(e){var r=i.a.decode(e),n=r[0];r.forEach((function(t){i.a.decodeImage(e,t)}));var o=i.a.toRGBA8(n);return{data:t.from(o),width:n.t256[0],height:n.t257[0]}})),encoders:a({},s,(function(e){var r=i.a.encodeImage(e.bitmap.data,e.bitmap.width,e.bitmap.height);return t.from(r)}))}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(59),i=r.n(n),o=r(37);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e,r){var n;return n=function(t,e){if(\"object\"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==a(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=\"image/gif\";e.a=function(){return{mime:s({},u,[\"gif\"]),constants:{MIME_GIF:u},decoders:s({},u,(function(e){var r=new i.a.GifReader(e),n=t.alloc(r.width*r.height*4);return r.decodeAndBlitFrameRGBA(0,n),{data:n,width:r.width,height:r.height}})),encoders:s({},u,(function(t){var e=new o.BitmapImage(t.bitmap);o.GifUtil.quantizeDekker(e,256);var r=new o.GifFrame(e);return(new o.GifCodec).encodeGif([r],{}).then((function(t){return t.buffer}))}))}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(32),i=r.n(n),o=r(0);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e,r,n){for(var i=[0,0,0],o=(e.length-1)/2,a=0;a<e.length;a+=1)for(var s=0;s<e[a].length;s+=1){var u=t.getPixelIndex(r+a-o,n+s-o);i[0]+=t.bitmap.data[u]*e[a][s],i[1]+=t.bitmap.data[u+1]*e[a][s],i[2]+=t.bitmap.data[u+2]*e[a][s]}return i}var c=function(t){return null!=t};function l(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){var n=parseInt(.2126*this.bitmap.data[r]+.7152*this.bitmap.data[r+1]+.0722*this.bitmap.data[r+2],10);this.bitmap.data[r]=n,this.bitmap.data[r+1]=n,this.bitmap.data[r+2]=n})),Object(o.a)(t)&&t.call(this,null,this),this}function f(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(r/100)+t.r,g:(e.g-t.g)*(r/100)+t.g,b:(e.b-t.b)*(r/100)+t.b}}function h(t,e){var r=this;return t&&Array.isArray(t)?(t=t.map((function(t){return\"xor\"!==t.apply&&\"mix\"!==t.apply||(t.params[0]=i()(t.params[0]).toRgb()),t})),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(n,s,u){var c={r:r.bitmap.data[u],g:r.bitmap.data[u+1],b:r.bitmap.data[u+2]},l=function(t,e){return r.constructor.limit255(c[t]+e)};t.forEach((function(t){if(\"mix\"===t.apply)c=f(c,t.params[0],t.params[1]);else if(\"tint\"===t.apply)c=f(c,{r:255,g:255,b:255},t.params[0]);else if(\"shade\"===t.apply)c=f(c,{r:0,g:0,b:0},t.params[0]);else if(\"xor\"===t.apply)c={r:c.r^t.params[0].r,g:c.g^t.params[0].g,b:c.b^t.params[0].b};else if(\"red\"===t.apply)c.r=l(\"r\",t.params[0]);else if(\"green\"===t.apply)c.g=l(\"g\",t.params[0]);else if(\"blue\"===t.apply)c.b=l(\"b\",t.params[0]);else{var n;if(\"hue\"===t.apply&&(t.apply=\"spin\"),!(c=i()(c))[t.apply])return o.d.call(r,\"action \"+t.apply+\" not supported\",e);c=(n=c)[t.apply].apply(n,a(t.params)).toRgb()}})),r.bitmap.data[u]=c.r,r.bitmap.data[u+1]=c.g,r.bitmap.data[u+2]=c.b})),Object(o.a)(e)&&e.call(this,null,this),this):o.d.call(this,\"actions must be an array\",e)}Object.freeze({LIGHTEN:\"lighten\",BRIGHTEN:\"brighten\",DARKEN:\"darken\",DESATURATE:\"desaturate\",SATURATE:\"saturate\",GREYSCALE:\"greyscale\",SPIN:\"spin\",HUE:\"hue\",MIX:\"mix\",TINT:\"tint\",SHADE:\"shade\",XOR:\"xor\",RED:\"red\",GREEN:\"green\",BLUE:\"blue\"});e.a=function(){return{brightness:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"val must be numbers\",e):t<-1||t>1?o.d.call(this,\"val must be a number between -1 and +1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t<0?(this.bitmap.data[n]*=1+t,this.bitmap.data[n+1]*=1+t,this.bitmap.data[n+2]*=1+t):(this.bitmap.data[n]+=(255-this.bitmap.data[n])*t,this.bitmap.data[n+1]+=(255-this.bitmap.data[n+1])*t,this.bitmap.data[n+2]+=(255-this.bitmap.data[n+2])*t)})),Object(o.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if(\"number\"!=typeof t)return o.d.call(this,\"val must be numbers\",e);if(t<-1||t>1)return o.d.call(this,\"val must be a number between -1 and +1\",e);var r=(t+1)/(1-t);function n(t){return(t=Math.floor(r*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=n(this.bitmap.data[r]),this.bitmap.data[r+1]=n(this.bitmap.data[r+1]),this.bitmap.data[r+2]=n(this.bitmap.data[r+2])})),Object(o.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"n must be numbers\",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){this.bitmap.data[n]=Math.floor(this.bitmap.data[n]/255*(t-1))/(t-1)*255,this.bitmap.data[n+1]=Math.floor(this.bitmap.data[n+1]/255*(t-1))/(t-1)*255,this.bitmap.data[n+2]=Math.floor(this.bitmap.data[n+2]/255*(t-1))/(t-1)*255})),Object(o.a)(e)&&e.call(this,null,this),this)},greyscale:l,grayscale:l,opacity:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"f must be a number\",e):t<0||t>1?o.d.call(this,\"f must be a number from 0 to 1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){var i=this.bitmap.data[n+3]*t;this.bitmap.data[n+3]=i})),Object(o.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){var n=this.bitmap.data[r],i=this.bitmap.data[r+1],o=this.bitmap.data[r+2];o=.272*(n=.393*n+.769*i+.189*o)+.534*(i=.349*n+.686*i+.168*o)+.131*o,this.bitmap.data[r]=n<255?n:255,this.bitmap.data[r+1]=i<255?i:255,this.bitmap.data[r+2]=o<255?o:255})),Object(o.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"f must be a number\",e):t<0||t>1?o.d.call(this,\"f must be a number from 0 to 1\",e):(this.opacity(1-t),Object(o.a)(e)&&e.call(this,null,this),this)},convolution:function(e,r,n){\"function\"==typeof r&&void 0===n&&(n=r,r=null),r||(r=this.constructor.EDGE_EXTEND);var i,a,s,u,c,l,f,h,p,d,m=t.from(this.bitmap.data),y=e.length,g=e[0].length,b=Math.floor(y/2),v=Math.floor(g/2),w=-b,_=-v;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,n,o){u=0,s=0,a=0;for(var y=w;y<=b;y++)for(var g=_;g<=v;g++)h=t+g,p=n+y,i=e[y+b][g+v],-1===(d=this.getPixelIndex(h,p,r))?(f=0,l=0,c=0):(c=this.bitmap.data[d+0],l=this.bitmap.data[d+1],f=this.bitmap.data[d+2]),a+=i*c,s+=i*l,u+=i*f;a<0&&(a=0),s<0&&(s=0),u<0&&(u=0),a>255&&(a=255),s>255&&(s=255),u>255&&(u=255),m[o+0]=a,m[o+1]=s,m[o+2]=u})),this.bitmap.data=m,Object(o.a)(n)&&n.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r+3]=255})),Object(o.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,r,n,i,a){if(\"function\"==typeof e)a=e,i=null,n=null,r=null,e=null;else{if(\"number\"!=typeof t)return o.d.call(this,\"size must be a number\",a);if(c(e)&&\"number\"!=typeof e)return o.d.call(this,\"x must be a number\",a);if(c(r)&&\"number\"!=typeof r)return o.d.call(this,\"y must be a number\",a);if(c(n)&&\"number\"!=typeof n)return o.d.call(this,\"w must be a number\",a);if(c(i)&&\"number\"!=typeof i)return o.d.call(this,\"h must be a number\",a)}var s=[[1/16,2/16,1/16],[2/16,.25,2/16],[1/16,2/16,1/16]];e=e||0,r=r||0,n=c(n)?n:this.bitmap.width-e,i=c(i)?i:this.bitmap.height-r;var l=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){e=t*Math.floor(e/t),r=t*Math.floor(r/t);var i=u(l,s,e,r);this.bitmap.data[n]=i[0],this.bitmap.data[n+1]=i[1],this.bitmap.data[n+2]=i[2]})),Object(o.a)(a)&&a.call(this,null,this),this},convolute:function(t,e,r,n,i,a){if(!Array.isArray(t))return o.d.call(this,\"the kernel must be an array\",a);if(\"function\"==typeof e)a=e,e=null,r=null,n=null,i=null;else{if(c(e)&&\"number\"!=typeof e)return o.d.call(this,\"x must be a number\",a);if(c(r)&&\"number\"!=typeof r)return o.d.call(this,\"y must be a number\",a);if(c(n)&&\"number\"!=typeof n)return o.d.call(this,\"w must be a number\",a);if(c(i)&&\"number\"!=typeof i)return o.d.call(this,\"h must be a number\",a)}e=c(e)?e:0,r=c(r)?r:0,n=c(n)?n:this.bitmap.width-e,i=c(i)?i:this.bitmap.height-r;var s=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){var i=u(s,t,e,r);this.bitmap.data[n]=this.constructor.limit255(i[0]),this.bitmap.data[n+1]=this.constructor.limit255(i[1]),this.bitmap.data[n+2]=this.constructor.limit255(i[2])})),Object(o.a)(a)&&a.call(this,null,this),this},color:h,colour:h}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){r.d(e,\"a\",(function(){return o}));var n=r(0);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function o(e){return e(\"crop\",(function(e,r,i,o,a){if(\"number\"!=typeof e||\"number\"!=typeof r)return n.d.call(this,\"x and y must be numbers\",a);if(\"number\"!=typeof i||\"number\"!=typeof o)return n.d.call(this,\"w and h must be numbers\",a);if(e=Math.round(e),r=Math.round(r),i=Math.round(i),o=Math.round(o),0===e&&i===this.bitmap.width){var s=i*r+e<<2,u=s+(o*i<<2);this.bitmap.data=this.bitmap.data.slice(s,u)}else{var c=t.allocUnsafe(i*o*4),l=0;this.scanQuiet(e,r,i,o,(function(t,e,r){var n=this.bitmap.data.readUInt32BE(r,!0);c.writeUInt32BE(n,l,!0),l+=4})),this.bitmap.data=c}return this.bitmap.width=i,this.bitmap.height=o,Object(n.a)(a)&&a.call(this,null,this),this})),{class:{autocrop:function(){for(var t,e=this.bitmap.width,r=this.bitmap.height,o=0,a=2e-4,s=!0,u=!1,c={north:!1,south:!1,east:!1,west:!1},l=arguments.length,f=new Array(l),h=0;h<l;h++)f[h]=arguments[h];for(var p=0,d=f.length;p<d;p++)if(\"number\"==typeof f[p]&&(a=f[p]),\"boolean\"==typeof f[p]&&(s=f[p]),\"function\"==typeof f[p]&&(t=f[p]),\"object\"===i(f[p])){var m=f[p];void 0!==m.tolerance&&(a=m.tolerance),void 0!==m.cropOnlyFrames&&(s=m.cropOnlyFrames),void 0!==m.cropSymmetric&&(u=m.cropSymmetric),void 0!==m.leaveBorder&&(o=m.leaveBorder),void 0!==m.ignoreSides&&(c=m.ignoreSides)}var y=this.getPixelColor(0,0),g=this.constructor.intToRGBA(y),b=0,v=0,w=0,_=0;if(y=this.getPixelColor(0,0),!c.north)t:for(var x=0;x<r-1;x++){for(var k=0;k<e;k++){var E=this.getPixelColor(k,x),S=this.constructor.intToRGBA(E);if(this.constructor.colorDiff(g,S)>a)break t}b++}if(y=this.getPixelColor(e,0),!c.west)t:for(var T=0;T<e-1;T++){for(var A=0+b;A<r;A++){var D=this.getPixelColor(T,A),O=this.constructor.intToRGBA(D);if(this.constructor.colorDiff(g,O)>a)break t}_++}if(y=this.getPixelColor(0,r),!c.south)t:for(var I=r-1;I>=b+1;I--){for(var P=e-v-1;P>=0;P--){var C=this.getPixelColor(P,I),L=this.constructor.intToRGBA(C);if(this.constructor.colorDiff(g,L)>a)break t}w++}if(y=this.getPixelColor(e,r),!c.east)t:for(var M=e-1;M>=0+_+1;M--){for(var F=r-1;F>=0+b;F--){var B=this.getPixelColor(M,F),j=this.constructor.intToRGBA(B);if(this.constructor.colorDiff(g,j)>a)break t}v++}if(_-=o,v-=o,b-=o,w-=o,u){var N=Math.min(v,_),R=Math.min(b,w);_=N,v=N,b=R,w=R}var z=e-((_=_>=0?_:0)+(v=v>=0?v:0)),U=r-((w=w>=0?w:0)+(b=b>=0?b:0));return(s?0!==v&&0!==b&&0!==_&&0!==w:0!==v||0!==b||0!==_||0!==w)&&this.crop(_,b,z,U),Object(n.a)(t)&&t.call(this,null,this),this}}}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(0);function i(e,r,i){if(\"boolean\"!=typeof e||\"boolean\"!=typeof r)return n.d.call(this,\"horizontal and vertical must be Booleans\",i);var o=t.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,n,i){var a=e?this.bitmap.width-1-t:t,s=r?this.bitmap.height-1-n:n,u=this.bitmap.width*s+a<<2,c=this.bitmap.data.readUInt32BE(i);o.writeUInt32BE(c,u)})),this.bitmap.data=t.from(o),Object(n.a)(i)&&i.call(this,null,this),this}e.a=function(){return{flip:i,mirror:i}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t,n){var i=r(6),o=r.n(i),a=r(111),s=r.n(a),u=r(0),c=r(17);function l(t){return l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},l(t)}function f(t,e,r,n,i){if(i.width>0&&i.height>0){var o=e.pages[i.page];t.blit(o,r+i.xoffset,n+i.yoffset,i.x,i.y,i.width,i.height)}return t}function h(t,e,r,n,i){for(var o=0;o<n.length;o++){var a=void 0;a=t.chars[n[o]]?n[o]:/\\s/.test(n[o])?\"\":\"?\";var s=t.chars[a]||{},u=t.kernings[a];f(this,t,e,r,s||{}),e+=(u&&u[n[o+1]]?u[n[o+1]]:0)+(s.xadvance||i)}}var p=t.env.DIRNAME||\"\".concat(n,\"/../\");e.a=function(){return{constants:{measureText:c.a,measureTextHeight:c.b,FONT_SANS_8_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt\"),FONT_SANS_10_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt\"),FONT_SANS_12_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt\"),FONT_SANS_14_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt\"),FONT_SANS_16_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt\"),FONT_SANS_32_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt\"),FONT_SANS_64_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt\"),FONT_SANS_128_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt\"),FONT_SANS_8_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt\"),FONT_SANS_16_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt\"),FONT_SANS_32_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt\"),FONT_SANS_64_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt\"),FONT_SANS_128_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt\"),loadFont:function(t,e){var r=this;return\"string\"!=typeof t?u.d.call(this,\"file must be a string\",e):new Promise((function(n,i){e=e||function(t,e){t?i(t):n(e)},s()(t,(function(n,i){var a={},s={};if(n)return u.d.call(r,n,e);for(var c=0;c<i.chars.length;c++)a[String.fromCharCode(i.chars[c].id)]=i.chars[c];for(var l=0;l<i.kernings.length;l++){var f=String.fromCharCode(i.kernings[l].first);s[f]=s[f]||{},s[f][String.fromCharCode(i.kernings[l].second)]=i.kernings[l].amount}(function(t,e,r){var n=r.map((function(r){return t.read(e+\"/\"+r)}));return Promise.all(n)})(r,o.a.dirname(t),i.pages).then((function(t){e(null,{chars:a,kernings:s,pages:t,common:i.common,info:i.info})}))}))}))}},class:{print:function(t,e,r,n,i,o,a){var s,f,p=this;if(\"function\"==typeof i&&void 0===a&&(a=i,i=1/0),void 0===i&&(i=1/0),\"function\"==typeof o&&void 0===a&&(a=o,o=1/0),void 0===o&&(o=1/0),\"object\"!==l(t))return u.d.call(this,\"font must be a Jimp loadFont\",a);if(\"number\"!=typeof e||\"number\"!=typeof r||\"number\"!=typeof i)return u.d.call(this,\"x, y and maxWidth must be numbers\",a);if(\"number\"!=typeof i)return u.d.call(this,\"maxWidth must be a number\",a);if(\"number\"!=typeof o)return u.d.call(this,\"maxHeight must be a number\",a);\"object\"===l(n)&&null!==n.text&&void 0!==n.text?(s=n.alignmentX||this.constructor.HORIZONTAL_ALIGN_LEFT,f=n.alignmentY||this.constructor.VERTICAL_ALIGN_TOP,n=n.text):(s=this.constructor.HORIZONTAL_ALIGN_LEFT,f=this.constructor.VERTICAL_ALIGN_TOP,n=n.toString());o!==1/0&&f===this.constructor.VERTICAL_ALIGN_BOTTOM?r+=o-Object(c.b)(t,n,i):o!==1/0&&f===this.constructor.VERTICAL_ALIGN_MIDDLE&&(r+=o/2-Object(c.b)(t,n,i)/2);var d=Object.entries(t.chars)[0][1].xadvance,m=Object(c.c)(t,n,i),y=m.lines,g=m.longestLine;return y.forEach((function(n){var o=n.join(\" \"),a=function(t,e,r,n,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(n-Object(c.a)(e,r))/2:n-Object(c.a)(e,r)}(p.constructor,t,o,i,s);h.call(p,t,e+a,r,o,d),r+=t.common.lineHeight})),Object(u.a)(a)&&a.call(this,null,this,{x:e+g,y:r}),this}}}}}).call(this,r(7),\"/\")},function(t,e,r){(function(e){var n=r(207),i=function(){},o=r(211),a=r(212),s=r(215),u=r(216),c=r(98),l=self.XMLHttpRequest&&\"withCredentials\"in new XMLHttpRequest;t.exports=function(t,r){r=\"function\"==typeof r?r:i,\"string\"==typeof t?t={uri:t}:t||(t={}),t.binary&&(t=function(t){if(l)return c(t,{responseType:\"arraybuffer\"});if(void 0===self.XMLHttpRequest)throw new Error(\"your browser does not support XHR loading\");var e=new self.XMLHttpRequest;return e.overrideMimeType(\"text/plain; charset=x-user-defined\"),c({xhr:e},t)}(t)),n(t,(function(n,c,l){if(n)return r(n);if(!/^2/.test(c.statusCode))return r(new Error(\"http status code: \"+c.statusCode));if(!l)return r(new Error(\"no body result\"));var f,h,p=!1;if(f=l,\"[object ArrayBuffer]\"===Object.prototype.toString.call(f)){var d=new Uint8Array(l);l=e.from(d,\"binary\")}u(l)&&(p=!0,\"string\"==typeof l&&(l=e.from(l,\"binary\"))),p||(e.isBuffer(l)&&(l=l.toString(t.encoding)),l=l.trim());try{var m=c.headers[\"content-type\"];h=p?s(l):/json/.test(m)||\"{\"===l.charAt(0)?JSON.parse(l):/xml/.test(m)||\"<\"===l.charAt(0)?a(l):o(l)}catch(t){r(new Error(\"error parsing font \"+t.message)),r=i}r(null,h)}))}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(0),i=r(113),o=r(63);e.a=function(){return{constants:{RESIZE_NEAREST_NEIGHBOR:\"nearestNeighbor\",RESIZE_BILINEAR:\"bilinearInterpolation\",RESIZE_BICUBIC:\"bicubicInterpolation\",RESIZE_HERMITE:\"hermiteInterpolation\",RESIZE_BEZIER:\"bezierInterpolation\"},class:{resize:function(e,r,a,s){if(\"number\"!=typeof e||\"number\"!=typeof r)return n.d.call(this,\"w and h must be numbers\",s);if(\"function\"==typeof a&&void 0===s&&(s=a,a=null),e===this.constructor.AUTO&&r===this.constructor.AUTO)return n.d.call(this,\"w and h cannot both be set to auto\",s);if(e===this.constructor.AUTO&&(e=this.bitmap.width*(r/this.bitmap.height)),r===this.constructor.AUTO&&(r=this.bitmap.height*(e/this.bitmap.width)),e<0||r<0)return n.d.call(this,\"w and h must be positive numbers\",s);if(e=Math.round(e)||1,r=Math.round(r)||1,\"function\"==typeof o.a[a]){var u={data:t.alloc(e*r*4),width:e,height:r};o.a[a](this.bitmap,u),this.bitmap=u}else{var c=this,l=new i.a(this.bitmap.width,this.bitmap.height,e,r,!0,!0,(function(n){c.bitmap.data=t.from(n),c.bitmap.width=e,c.bitmap.height=r}));l.resize(this.bitmap.data)}return Object(n.a)(s)&&s.call(this,null,this),this}}}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t,e,r,n,i,o,a){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(r)||0),this.targetHeight=Math.abs(Math.floor(n)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(o),this.resizeCallback=\"function\"==typeof a?a:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}n.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error(\"Invalid settings specified for the resizer.\");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var r,n,i=e?4:3,o=this.ratioWeightWidthPass,a=this.widthBuffer,s=0,u=0,c=0,l=0,f=0;for(r=0;s<1/3;r+=i,s+=o)for(u=r,c=0;u<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u]=t[c],a[u+1]=t[c+1],a[u+2]=t[c+2],e&&(a[u+3]=t[c+3]);for(s-=1/3,n=this.widthOriginal-1;s<n;r+=i,s+=o)for(l=1-(f=s%1),u=r,c=Math.floor(s)*i;u<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u+0]=t[c+0]*l+t[c+i+0]*f,a[u+1]=t[c+1]*l+t[c+i+1]*f,a[u+2]=t[c+2]*l+t[c+i+2]*f,e&&(a[u+3]=t[c+3]*l+t[c+i+3]*f);for(n=this.originalWidthMultipliedByChannels-i;r<this.targetWidthMultipliedByChannels;r+=i)for(u=r,c=n;u<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u]=t[c],a[u+1]=t[c+1],a[u+2]=t[c+2],e&&(a[u+3]=t[c+3]);return a},n.prototype._resizeWidthRGBChannels=function(t,e){var r=e?4:3,n=this.ratioWeightWidthPass,i=1/n,o=this.originalWidthMultipliedByChannels-r+1,a=this.targetWidthMultipliedByChannels-r+1,s=this.outputWidthWorkBench,u=this.widthBuffer,c=this.outputWidthWorkBenchOpaquePixelsCount,l=0,f=0,h=0,p=0,d=0,m=0,y=0,g=1,b=0,v=0,w=0,_=0;do{for(d=0;d<this.originalHeightMultipliedByChannels;)s[d++]=0,s[d++]=0,s[d++]=0,e&&(s[d++]=0,c[d/r-1]=0);l=n;do{for(f=1+h-p,g=Math.min(l,f),d=0,m=h;d<this.originalHeightMultipliedByChannels;m+=o)b=t[m],v=t[++m],w=t[++m],_=e?t[++m]:255,s[d++]+=(_?b:0)*g,s[d++]+=(_?v:0)*g,s[d++]+=(_?w:0)*g,e&&(s[d++]+=_*g,c[d/r-1]+=_?g:0);if(!(l>=f)){p+=l;break}p=h+=r,l-=f}while(l>0&&h<this.originalWidthMultipliedByChannels);for(d=0,m=y;d<this.originalHeightMultipliedByChannels;m+=a)l=e?c[d/r]:1,g=e?l?1/l:0:i,u[m]=s[d++]*g,u[++m]=s[d++]*g,u[++m]=s[d++]*g,e&&(u[++m]=s[d++]*i);y+=r}while(y<this.targetWidthMultipliedByChannels);return u},n.prototype._resizeHeightRGBChannels=function(t,e){var r=this.ratioWeightHeightPass,n=1/r,i=this.outputHeightWorkBench,o=this.heightBuffer,a=this.outputHeightWorkBenchOpaquePixelsCount,s=0,u=0,c=0,l=0,f=0,h=0,p=0,d=1,m=0,y=0,g=0,b=0;do{for(f=0;f<this.targetWidthMultipliedByChannels;)i[f++]=0,i[f++]=0,i[f++]=0,e&&(i[f++]=0,a[f/4-1]=0);s=r;do{for(u=1+c-l,d=Math.min(s,u),p=c,f=0;f<this.targetWidthMultipliedByChannels;)m=t[p++],y=t[p++],g=t[p++],b=e?t[p++]:255,i[f++]+=(b?m:0)*d,i[f++]+=(b?y:0)*d,i[f++]+=(b?g:0)*d,e&&(i[f++]+=b*d,a[f/4-1]+=b?d:0);if(!(s>=u)){l+=s;break}l=c=p,s-=u}while(s>0&&c<this.widthPassResultSize);for(f=0;f<this.targetWidthMultipliedByChannels;)s=e?a[f/4]:1,d=e?s?1/s:0:n,o[h++]=Math.round(i[f++]*d),o[h++]=Math.round(i[f++]*d),o[h++]=Math.round(i[f++]*d),e&&(o[h++]=Math.round(i[f++]*n))}while(h<this.finalResultSize);return o},n.prototype.resizeWidthInterpolatedRGB=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!1)},n.prototype.resizeWidthInterpolatedRGBA=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!0)},n.prototype.resizeWidthRGB=function(t){return this._resizeWidthRGBChannels(t,!1)},n.prototype.resizeWidthRGBA=function(t){return this._resizeWidthRGBChannels(t,!0)},n.prototype.resizeHeightInterpolated=function(t){for(var e,r=this.ratioWeightHeightPass,n=this.heightBuffer,i=0,o=0,a=0,s=0,u=0,c=0,l=0;i<1/3;i+=r)for(a=0;a<this.targetWidthMultipliedByChannels;)n[o++]=Math.round(t[a++]);for(i-=1/3,e=this.heightOriginal-1;i<e;i+=r)for(c=1-(l=i%1),u=(s=Math.floor(i)*this.targetWidthMultipliedByChannels)+this.targetWidthMultipliedByChannels,a=0;a<this.targetWidthMultipliedByChannels;++a)n[o++]=Math.round(t[s++]*c+t[u++]*l);for(;o<this.finalResultSize;)for(a=0,s=e*this.targetWidthMultipliedByChannels;a<this.targetWidthMultipliedByChannels;++a)n[o++]=Math.round(t[s++]);return n},n.prototype.resizeHeightRGB=function(t){return this._resizeHeightRGBChannels(t,!1)},n.prototype.resizeHeightRGBA=function(t){return this._resizeHeightRGBChannels(t,!0)},n.prototype.resize=function(t){this.resizeCallback(this.resizeHeight(this.resizeWidth(t)))},n.prototype.bypassResizer=function(t){return t},n.prototype.initializeFirstPassBuffers=function(t){this.widthBuffer=this.generateFloatBuffer(this.widthPassResultSize),t||(this.outputWidthWorkBench=this.generateFloatBuffer(this.originalHeightMultipliedByChannels),this.colorChannels>3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},e.a=n},function(t,e,r){\"use strict\";(function(t){var n=r(0);function i(e){if(Math.abs(e)%90!=0)throw new Error(\"Unsupported matrix rotation degree\");if(e%=360,0!==Math.abs(e)){var r,n=this.bitmap.width,i=this.bitmap.height;switch(e){case 90:case-270:r=90;break;case 180:case-180:r=180;break;case 270:case-90:r=-90;break;default:throw new Error(\"Unsupported matrix rotation degree\")}for(var o=180===r?n:i,a=180===r?i:n,s=t.alloc(this.bitmap.data.length),u=m(n),c=m(o),l=0;l<n;l++)for(var f=0;f<i;f++){var h=u(l,f),p=this.bitmap.data.readUInt32BE(h),d=void 0;switch(r){case 90:d=c(f,n-l-1);break;case-90:d=c(i-f-1,l);break;case 180:d=c(n-l-1,i-f-1);break;default:throw new Error(\"Unsupported matrix rotation angle\")}s.writeUInt32BE(p,d)}this.bitmap.data=s,this.bitmap.width=o,this.bitmap.height=a}function m(t,e){return function(e,r){return r*t+e<<2}}}function o(e,r){var n=(e%=360)*Math.PI/180,i=Math.cos(n),o=Math.sin(n),a=this.bitmap.width,s=this.bitmap.height;if(!0===r||\"string\"==typeof r){(a=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*o))+1)%2!=0&&a++,(s=Math.ceil(Math.abs(this.bitmap.width*o)+Math.abs(this.bitmap.height*i))+1)%2!=0&&s++;var u=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)}));var c=Math.max(a,s,this.bitmap.width,this.bitmap.height);this.resize(c,c,r),this.blit(u,this.bitmap.width/2-u.bitmap.width/2,this.bitmap.height/2-u.bitmap.height/2)}var l=this.bitmap.width,f=this.bitmap.height,h=t.alloc(this.bitmap.data.length);function p(t,e){return function(r,n){return{x:r+t,y:n+e}}}for(var d=p(-l/2,-f/2),m=p(l/2+.5,f/2+.5),y=1;y<=f;y++)for(var g=1;g<=l;g++){var b=d(g,y),v=m(i*b.x-o*b.y,i*b.y+o*b.x),w=l*(y-1)+g-1<<2;if(v.x>=0&&v.x<l&&v.y>=0&&v.y<f){var _=l*(0|v.y)+v.x<<2,x=this.bitmap.data.readUInt32BE(_);h.writeUInt32BE(x,w)}else h.writeUInt32BE(this._background,w)}if(this.bitmap.data=h,!0===r||\"string\"==typeof r){var k=l/2-a/2,E=f/2-s/2;this.crop(k,E,a,s)}}e.a=function(){return{rotate:function(t,e,r){return null==e&&(e=!0),\"function\"==typeof e&&void 0===r&&(r=e,e=!0),\"number\"!=typeof t?n.d.call(this,\"deg must be a number\",r):\"boolean\"!=typeof e&&\"string\"!=typeof e?n.d.call(this,\"mode must be a boolean or a string\",r):(t%90==0&&(e||this.bitmap.width===this.bitmap.height||t%180==0)?i.call(this,t):o.call(this,t,e,r),Object(n.a)(r)&&r.call(this,null,this),this)}}}}).call(this,r(2).Buffer)},function(t,e,r){t.exports&&(t.exports={DBSCAN:r(218),KMEANS:r(219),OPTICS:r(220),PriorityQueue:r(99)})},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return g}));var n={};r.r(n),r.d(n,\"srcOver\",(function(){return a})),r.d(n,\"dstOver\",(function(){return s})),r.d(n,\"multiply\",(function(){return u})),r.d(n,\"add\",(function(){return c})),r.d(n,\"screen\",(function(){return l})),r.d(n,\"overlay\",(function(){return f})),r.d(n,\"darken\",(function(){return h})),r.d(n,\"lighten\",(function(){return p})),r.d(n,\"hardLight\",(function(){return d})),r.d(n,\"difference\",(function(){return m})),r.d(n,\"exclusion\",(function(){return y}));var i=r(0),o=r(20);function a(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/n,g:(t.g*t.a+e.g*e.a*(1-t.a))/n,b:(t.b*t.a+e.b*e.a*(1-t.a))/n,a:n}}function s(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/n,g:(e.g*e.a+t.g*t.a*(1-e.a))/n,b:(e.b*e.a+t.b*t.a*(1-e.a))/n,a:n}}function u(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/n,g:(o*u+o*(1-e.a)+u*(1-t.a))/n,b:(a*c+a*(1-e.a)+c*(1-t.a))/n,a:n}}function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a;return{r:(i+e.r*e.a)/n,g:(o+e.g*e.a)/n,b:(a+e.b*e.a)/n,a:n}}function l(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/n,g:(o*e.a+u*t.a-o*u+o*(1-e.a)+u*(1-t.a))/n,b:(a*e.a+c*t.a-a*c+a*(1-e.a)+c*(1-t.a))/n,a:n}}function f(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*u<=e.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/n,b:(2*c<=e.a?2*a*c+a*(1-e.a)+c*(1-t.a):a*(1+e.a)+c*(1+t.a)-2*c*a-e.a*t.a)/n,a:n}}function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.min(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/n,b:(Math.min(a*e.a,c*t.a)+a*(1-e.a)+c*(1-t.a))/n,a:n}}function p(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.max(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/n,b:(Math.max(a*e.a,c*t.a)+a*(1-e.a)+c*(1-t.a))/n,a:n}}function d(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*o<=t.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/n,b:(2*a<=t.a?2*a*c+a*(1-e.a)+c*(1-t.a):a*(1+e.a)+c*(1+t.a)-2*c*a-e.a*t.a)/n,a:n}}function m(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/n,g:(o+u-2*Math.min(o*e.a,u*t.a))/n,b:(a+c-2*Math.min(a*e.a,c*t.a))/n,a:n}}function y(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/n,g:(o*e.a+u*t.a-2*o*u+o*(1-e.a)+u*(1-t.a))/n,b:(a*e.a+c*t.a-2*a*c+a*(1-e.a)+c*(1-t.a))/n,a:n}}function g(t,e,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0;if(\"function\"==typeof a&&(s=a,a={}),!(t instanceof this.constructor))return i.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof r)return i.d.call(this,\"x and y must be numbers\",s);var u=a,c=u.mode,l=u.opacitySource,f=u.opacityDest;c||(c=o.BLEND_SOURCE_OVER),(\"number\"!=typeof l||l<0||l>1)&&(l=1),(\"number\"!=typeof f||f<0||f>1)&&(f=1);var h=n[c];e=Math.round(e),r=Math.round(r);var p=this;return 1!==f&&p.opacity(f),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,i){var a=p.getPixelIndex(e+t,r+n,o.EDGE_CROP);if(-1!==a){var s=h({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:p.bitmap.data[a+0]/255,g:p.bitmap.data[a+1]/255,b:p.bitmap.data[a+2]/255,a:p.bitmap.data[a+3]/255},l);p.bitmap.data[a+0]=this.constructor.limit255(255*s.r),p.bitmap.data[a+1]=this.constructor.limit255(255*s.g),p.bitmap.data[a+2]=this.constructor.limit255(255*s.b),p.bitmap.data[a+3]=this.constructor.limit255(255*s.a)}})),Object(i.a)(s)&&s.call(this,null,this),this}},function(t,e,r){(function(t){var n=void 0!==t&&t||\"undefined\"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r(150),e.setImmediate=\"undefined\"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate=\"undefined\"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(10))},,,function(t,e,r){\"use strict\";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=u(t),a=n[0],s=n[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,c[l++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e);return c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(c(t,s,s+a>u?u:s+a));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+\"==\")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+\"=\"));return o.join(\"\")};for(var n=[],i=[],o=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,a=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",s=0;s<64;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=t.indexOf(\"=\");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var i,o,a=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join(\"\")}i[\"-\".charCodeAt(0)]=62,i[\"_\".charCodeAt(0)]=63},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==r.call(t)}},function(t,e,r){\"use strict\";function n(t,e){if(!(t&&e&&t.length&&e.length))throw new Error(\"Bad alphabet\");this.srcAlphabet=t,this.dstAlphabet=e}n.prototype.convert=function(t){var e,r,n,i={},o=this.srcAlphabet.length,a=this.dstAlphabet.length,s=t.length,u=\"string\"==typeof t?\"\":[];if(!this.isValid(t))throw new Error('Number \"'+t+'\" contains of non-alphabetic digits ('+this.srcAlphabet+\")\");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e<s;e++)i[e]=this.srcAlphabet.indexOf(t[e]);do{for(r=0,n=0,e=0;e<s;e++)(r=r*o+i[e])>=a?(i[n++]=parseInt(r/a,10),r%=a):n>0&&(i[n++]=0);s=n,u=this.dstAlphabet.slice(r,r+1).concat(u)}while(0!==n);return u},n.prototype.isValid=function(t){for(var e=0;e<t.length;++e)if(-1===this.srcAlphabet.indexOf(t[e]))return!1;return!0},t.exports=n},function(t,e,r){r(124),t.exports=self.fetch.bind(self)},function(t,e,r){\"use strict\";r.r(e),function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}r.d(e,\"Headers\",(function(){return f})),r.d(e,\"Request\",(function(){return b})),r.d(e,\"Response\",(function(){return w})),r.d(e,\"DOMException\",(function(){return x})),r.d(e,\"fetch\",(function(){return k}));var i=\"undefined\"!=typeof globalThis&&globalThis||\"undefined\"!=typeof self&&self||void 0!==t&&t||{},o={searchParams:\"URLSearchParams\"in i,iterable:\"Symbol\"in i&&\"iterator\"in Symbol,blob:\"FileReader\"in i&&\"Blob\"in i&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:\"FormData\"in i,arrayBuffer:\"ArrayBuffer\"in i};if(o.arrayBuffer)var a=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if(\"string\"!=typeof t&&(t=String(t)),/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(t)||\"\"===t)throw new TypeError('Invalid character in header field name: \"'+t+'\"');return t.toLowerCase()}function c(t){return\"string\"!=typeof t&&(t=String(t)),t}function l(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError(\"Headers constructor: expected name/value pair to be length 2, found\"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError(\"Already read\")):void(t.bodyUsed=!0)}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function d(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?\"string\"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=\"\"),this.headers.get(\"content-type\")||(\"string\"==typeof t?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},o.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=h(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(o.blob)return this.blob().then(d);throw new Error(\"could not read as ArrayBuffer\")},this.text=function(){var t,e,r,n,i,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=p(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=n?n[1]:\"utf-8\",e.readAsText(t,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(t,e){t=u(t),e=c(e);var r=this.map[t];this.map[t]=r?r+\", \"+e:e},f.prototype.delete=function(t){delete this.map[u(t)]},f.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},f.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},f.prototype.set=function(t,e){this.map[u(t)]=c(e)},f.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},f.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),l(t)},f.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),l(t)},f.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),l(t)},o.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);var g=[\"CONNECT\",\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"PATCH\",\"POST\",\"PUT\",\"TRACE\"];function b(t,e){if(!(this instanceof b))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof b){if(t.bodyUsed)throw new TypeError(\"Already read\");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new f(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||\"same-origin\",!e.headers&&this.headers||(this.headers=new f(e.headers)),this.method=(r=e.method||this.method||\"GET\",n=r.toUpperCase(),g.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if(\"AbortController\"in i)return(new AbortController).signal}(),this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&o)throw new TypeError(\"Body not allowed for GET or HEAD requests\");if(this._initBody(o),!(\"GET\"!==this.method&&\"HEAD\"!==this.method||\"no-store\"!==e.cache&&\"no-cache\"!==e.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,\"$1_=\"+(new Date).getTime());else{this.url+=(/\\?/.test(this.url)?\"&\":\"?\")+\"_=\"+(new Date).getTime()}}}function v(t){var e=new FormData;return t.trim().split(\"&\").forEach((function(t){if(t){var r=t.split(\"=\"),n=r.shift().replace(/\\+/g,\" \"),i=r.join(\"=\").replace(/\\+/g,\" \");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type=\"default\",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError(\"Failed to construct 'Response': The status provided (0) is outside the range [200, 599].\");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?\"\":\"\"+e.statusText,this.headers=new f(e.headers),this.url=e.url||\"\",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:200,statusText:\"\"});return t.ok=!1,t.status=0,t.type=\"error\",t};var _=[301,302,303,307,308];w.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError(\"Invalid status code\");return new w(null,{status:e,headers:{location:t}})};var x=i.DOMException;try{new x}catch(t){(x=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}function k(t,e){return new Promise((function(r,a){var s=new b(t,e);if(s.signal&&s.signal.aborted)return a(new x(\"Aborted\",\"AbortError\"));var l=new XMLHttpRequest;function h(){l.abort()}if(l.onload=function(){var t,e,n={statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||\"\",e=new f,t.replace(/\\r?\\n[\\t ]+/g,\" \").split(\"\\r\").map((function(t){return 0===t.indexOf(\"\\n\")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(\":\"),n=r.shift().trim();if(n){var i=r.join(\":\").trim();try{e.append(n,i)}catch(t){t.message}}})),e)};0===s.url.indexOf(\"file://\")&&(l.status<200||l.status>599)?n.status=200:n.status=l.status,n.url=\"responseURL\"in l?l.responseURL:n.headers.get(\"X-Request-URL\");var i=\"response\"in l?l.response:l.responseText;setTimeout((function(){r(new w(i,n))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError(\"Network request failed\"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError(\"Network request timed out\"))}),0)},l.onabort=function(){setTimeout((function(){a(new x(\"Aborted\",\"AbortError\"))}),0)},l.open(s.method,function(t){try{return\"\"===t&&i.location.href?i.location.href:t}catch(e){return t}}(s.url),!0),\"include\"===s.credentials?l.withCredentials=!0:\"omit\"===s.credentials&&(l.withCredentials=!1),\"responseType\"in l&&(o.blob?l.responseType=\"blob\":o.arrayBuffer&&(l.responseType=\"arraybuffer\")),e&&\"object\"===n(e.headers)&&!(e.headers instanceof f||i.Headers&&e.headers instanceof i.Headers)){var p=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){p.push(u(t)),l.setRequestHeader(t,c(e.headers[t]))})),s.headers.forEach((function(t,e){-1===p.indexOf(e)&&l.setRequestHeader(e,t)}))}else s.headers.forEach((function(t,e){l.setRequestHeader(e,t)}));s.signal&&(s.signal.addEventListener(\"abort\",h),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener(\"abort\",h)}),l.send(void 0===s._bodyInit?null:s._bodyInit)}))}k.polyfill=!0,i.fetch||(i.fetch=k,i.Headers=f,i.Request=b,i.Response=w)}.call(this,r(10))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&o.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&o.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromStream=e.fromBuffer=e.EndOfStreamError=e.fromFile=void 0;var a=r(68),s=r(47),u=r(130);Object.defineProperty(e,\"fromFile\",{enumerable:!0,get:function(){return u.fromFile}});var c=r(47);function l(){var t;return t=i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=r||{},!e.path){t.next=7;break}return t.next=4,a.stat(e.path);case 4:n=t.sent,r.path=e.path,r.size=n.size;case 7:return t.abrupt(\"return\",s.fromStream(e,r));case 8:case\"end\":return t.stop()}}),t)})),l=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))},l.apply(this,arguments)}Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return c.EndOfStreamError}}),Object.defineProperty(e,\"fromBuffer\",{enumerable:!0,get:function(){return c.fromBuffer}}),e.fromStream=function(t,e){return l.apply(this,arguments)}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&o.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&o.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function c(t,e,r){return e=f(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.ReadStreamTokenizer=void 0;var p=r(48),d=r(26),m=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=c(this,e,[r])).streamReader=new d.StreamReader(t),n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(e,t),r=e,n=[{key:\"getFileInfo\",value:(p=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",this.fileInfo);case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return p.apply(this,arguments)})},{key:\"readBuffer\",value:(f=a(i().mark((function t(e,r){var n,o,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),!((o=n.position-this.position)>0)){t.next=8;break}return t.next=5,this.ignore(o);case 5:return t.abrupt(\"return\",this.readBuffer(e,r));case 8:if(!(o<0)){t.next=10;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 10:if(0!==n.length){t.next=12;break}return t.abrupt(\"return\",0);case 12:return t.next=14,this.streamReader.read(e,n.offset,n.length);case 14:if(a=t.sent,this.position+=a,r&&r.mayBeLess||!(a<n.length)){t.next=18;break}throw new d.EndOfStreamError;case 18:return t.abrupt(\"return\",a);case 19:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return f.apply(this,arguments)})},{key:\"peekBuffer\",value:(l=a(i().mark((function t(e,r){var n,o,a,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),o=0,!n.position){t.next=15;break}if(!((a=n.position-this.position)>0)){t.next=13;break}return s=new Uint8Array(n.length+a),t.next=8,this.peekBuffer(s,{mayBeLess:n.mayBeLess});case 8:return o=t.sent,e.set(s.subarray(a),n.offset),t.abrupt(\"return\",o-a);case 13:if(!(a<0)){t.next=15;break}throw new Error(\"Cannot peek from a negative offset in a stream\");case 15:if(!(n.length>0)){t.next=29;break}return t.prev=16,t.next=19,this.streamReader.peek(e,n.offset,n.length);case 19:o=t.sent,t.next=27;break;case 22:if(t.prev=22,t.t0=t.catch(16),!(r&&r.mayBeLess&&t.t0 instanceof d.EndOfStreamError)){t.next=26;break}return t.abrupt(\"return\",0);case 26:throw t.t0;case 27:if(n.mayBeLess||!(o<n.length)){t.next=29;break}throw new d.EndOfStreamError;case 29:return t.abrupt(\"return\",o);case 30:case\"end\":return t.stop()}}),t,this,[[16,22]])}))),function(t,e){return l.apply(this,arguments)})},{key:\"ignore\",value:(u=a(i().mark((function t(e){var r,n,o,a,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Math.min(256e3,e),n=new Uint8Array(r),o=0;case 3:if(!(o<e)){t.next=13;break}return a=e-o,t.next=7,this.readBuffer(n,{length:Math.min(r,a)});case 7:if(!((s=t.sent)<0)){t.next=10;break}return t.abrupt(\"return\",s);case 10:o+=s,t.next=3;break;case 13:return t.abrupt(\"return\",o);case 14:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})}],n&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,o,u,l,f,p}(p.AbstractTokenizer);e.ReadStreamTokenizer=m},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&o.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&o.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var c=r(49),l=r(128),f=r(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return f.EndOfStreamError}});var h=function(){return t=function t(e){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error(\"Expected an instance of stream.Readable\");this.s.once(\"end\",(function(){return r.reject(new c.EndOfStreamError)})),this.s.once(\"error\",(function(t){return r.reject(t)})),this.s.once(\"close\",(function(){return r.reject(new Error(\"Stream closed\"))}))},e=[{key:\"peek\",value:(u=a(i().mark((function t(e,r,n){var o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.read(e,r,n);case 2:return o=t.sent,this.peekQueue.push(e.subarray(r,r+o)),t.abrupt(\"return\",o);case 5:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return u.apply(this,arguments)})},{key:\"read\",value:(o=a(i().mark((function t(e,r,n){var o,a,s,u,l,f;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n){t.next=2;break}return t.abrupt(\"return\",0);case 2:if(0!==this.peekQueue.length||!this.endOfStream){t.next=4;break}throw new c.EndOfStreamError;case 4:o=n,a=0;case 6:if(!(this.peekQueue.length>0&&o>0)){t.next=17;break}if(s=this.peekQueue.pop()){t.next=10;break}throw new Error(\"peekData should be defined\");case 10:u=Math.min(s.length,o),e.set(s.subarray(0,u),r+a),a+=u,o-=u,u<s.length&&this.peekQueue.push(s.subarray(u)),t.next=6;break;case 17:if(!(o>0)||this.endOfStream){t.next=28;break}return l=Math.min(o,1048576),t.next=21,this.readFromStream(e,r+a,l);case 21:if(f=t.sent,a+=f,!(f<l)){t.next=25;break}return t.abrupt(\"break\",28);case 25:o-=f,t.next=17;break;case 28:return t.abrupt(\"return\",a);case 29:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})},{key:\"readFromStream\",value:(n=a(i().mark((function t(e,r,n){var o,a,s=this;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=this.s.read(n))){t.next=6;break}return e.set(o,r),t.abrupt(\"return\",o.length);case 6:return a={buffer:e,offset:r,length:n,deferred:new l.Deferred},this.deferred=a.deferred,this.s.once(\"readable\",(function(){s.readDeferred(a)})),t.abrupt(\"return\",a.deferred.promise);case 10:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:\"readDeferred\",value:function(t){var e=this,r=this.s.read(t.length);r?(t.buffer.set(r,t.offset),t.deferred.resolve(r.length),this.deferred=null):this.s.once(\"readable\",(function(){e.readDeferred(t)}))}},{key:\"reject\",value:function(t){this.endOfStream=!0,this.deferred&&(this.deferred.reject(t),this.deferred=null)}}],e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,o,u}();e.StreamReader=h},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function o(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function a(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Deferred=void 0;var s=o((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.resolve=function(){return null},this.reject=function(){return null},this.promise=new Promise((function(t,r){e.reject=r,e.resolve=t}))}));e.Deferred=s},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&o.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&o.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function c(t,e,r){return e=f(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.BufferTokenizer=void 0;var p=r(26),d=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=c(this,e,[r])).uint8Array=t,n.fileInfo.size=n.fileInfo.size?n.fileInfo.size:t.length,n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(e,t),r=e,n=[{key:\"readBuffer\",value:(f=a(i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r||!r.position){t.next=4;break}if(!(r.position<this.position)){t.next=3;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 3:this.position=r.position;case 4:return t.next=6,this.peekBuffer(e,r);case 6:return n=t.sent,this.position+=n,t.abrupt(\"return\",n);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return f.apply(this,arguments)})},{key:\"peekBuffer\",value:(l=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),o=Math.min(this.uint8Array.length-n.position,n.length),n.mayBeLess||!(o<n.length)){t.next=6;break}throw new p.EndOfStreamError;case 6:return e.set(this.uint8Array.subarray(n.position,n.position+o),n.offset),t.abrupt(\"return\",o);case 8:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:\"close\",value:(u=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})}],n&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,o,u,l,f}(r(48).AbstractTokenizer);e.BufferTokenizer=d},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&o.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&o.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function c(t,e,r){return e=f(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromFile=e.FileTokenizer=void 0;var p=r(48),d=r(26),m=r(68),y=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=c(this,e,[r])).fd=t,n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(e,t),r=e,n=[{key:\"readBuffer\",value:(f=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),this.position=n.position,t.next=4,m.read(this.fd,e,n.offset,n.length,n.position);case 4:if(o=t.sent,this.position+=o.bytesRead,!(o.bytesRead<n.length)||r&&r.mayBeLess){t.next=8;break}throw new d.EndOfStreamError;case 8:return t.abrupt(\"return\",o.bytesRead);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return f.apply(this,arguments)})},{key:\"peekBuffer\",value:(l=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),t.next=3,m.read(this.fd,e,n.offset,n.length,n.position);case 3:if(o=t.sent,n.mayBeLess||!(o.bytesRead<n.length)){t.next=6;break}throw new d.EndOfStreamError;case 6:return t.abrupt(\"return\",o.bytesRead);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:\"close\",value:(u=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",m.close(this.fd));case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})}],n&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,o,u,l,f}(p.AbstractTokenizer);function g(){return(g=a(i().mark((function t(e){var r,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m.stat(e);case 2:if((r=t.sent).isFile){t.next=5;break}throw new Error(\"File not a file: \".concat(e));case 5:return t.next=7,m.open(e,\"r\");case 7:return n=t.sent,t.abrupt(\"return\",new y(n,{path:e,size:r.size}));case 9:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.FileTokenizer=y,e.fromFile=function(t){return g.apply(this,arguments)}},function(module,exports,__webpack_require__){\"use strict\";(function(Buffer){function _typeof(t){return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_typeof(t)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:T(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function g(){}function b(){}function v(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(P([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=v.prototype=g.prototype=Object.create(w);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==_typeof(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function T(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=f(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=f(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(D,this),this.reset(!0)}function P(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(_typeof(e)+\" is not iterable\")}return b.prototype=v,i(k,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:b,configurable:!0}),b.displayName=c(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===b||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},E(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(k),c(k,u,\"Generator\"),c(k,a,(function(){return this})),c(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function _iterableToArrayLimit(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if(\"string\"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_toPrimitive(t,\"string\");return\"symbol\"==_typeof(e)?e:e+\"\"}function _toPrimitive(t,e){if(\"object\"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_typeof(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}function asyncGeneratorStep(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){asyncGeneratorStep(o,n,i,a,s,\"next\",t)}function s(t){asyncGeneratorStep(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}var Token=__webpack_require__(132),strtok3=__webpack_require__(47),_require=__webpack_require__(133),stringToBytes=_require.stringToBytes,tarHeaderChecksumMatches=_require.tarHeaderChecksumMatches,uint32SyncSafeToken=_require.uint32SyncSafeToken,supported=__webpack_require__(134),minimumBytes=4100;function fromStream(t){return _fromStream.apply(this,arguments)}function _fromStream(){return _fromStream=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,strtok3.fromStream(e);case 2:return r=t.sent,t.prev=3,t.next=6,fromTokenizer(r);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])}))),_fromStream.apply(this,arguments)}function fromBuffer(t){return _fromBuffer.apply(this,arguments)}function _fromBuffer(){return(_fromBuffer=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)){t.next=2;break}throw new TypeError(\"Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `\".concat(_typeof(e),\"`\"));case 2:if((r=e instanceof Buffer?e:Buffer.from(e))&&r.length>1){t.next=5;break}return t.abrupt(\"return\");case 5:return n=strtok3.fromBuffer(r),t.abrupt(\"return\",fromTokenizer(n));case 7:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function _check(t,e,r){r=_objectSpread({offset:0},r);var n,i=_createForOfIteratorHelper(e.entries());try{for(i.s();!(n=i.n()).done;){var o=_slicedToArray(n.value,2),a=o[0],s=o[1];if(r.mask){if(s!==(r.mask[a]&t[a+r.offset]))return!1}else if(s!==t[a+r.offset])return!1}}catch(t){i.e(t)}finally{i.f()}return!0}function fromTokenizer(t){return _fromTokenizer2.apply(this,arguments)}function _fromTokenizer2(){return(_fromTokenizer2=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt(\"return\",_fromTokenizer(e));case 4:if(t.prev=4,t.t0=t.catch(0),t.t0 instanceof strtok3.EndOfStreamError){t.next=8;break}throw t.t0;case 8:case\"end\":return t.stop()}}),t,null,[[0,4]])})))).apply(this,arguments)}function _fromTokenizer(t){return _fromTokenizer3.apply(this,arguments)}function _fromTokenizer3(){return _fromTokenizer3=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n,i,o,a,s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,T;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(minimumBytes),12,n=function(t,e){return _check(r,t,e)},i=function(t,e){return n(stringToBytes(t),e)},e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),t.next=7,e.peekBuffer(r,{length:12,mayBeLess:!0});case 7:if(!n([66,77])){t.next=9;break}return t.abrupt(\"return\",{ext:\"bmp\",mime:\"image/bmp\"});case 9:if(!n([11,119])){t.next=11;break}return t.abrupt(\"return\",{ext:\"ac3\",mime:\"audio/vnd.dolby.dd-raw\"});case 11:if(!n([120,1])){t.next=13;break}return t.abrupt(\"return\",{ext:\"dmg\",mime:\"application/x-apple-diskimage\"});case 13:if(!n([77,90])){t.next=15;break}return t.abrupt(\"return\",{ext:\"exe\",mime:\"application/x-msdownload\"});case 15:if(!n([37,33])){t.next=21;break}return t.next=18,e.peekBuffer(r,{length:24,mayBeLess:!0});case 18:if(!i(\"PS-Adobe-\",{offset:2})||!i(\" EPSF-\",{offset:14})){t.next=20;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 20:return t.abrupt(\"return\",{ext:\"ps\",mime:\"application/postscript\"});case 21:if(!n([31,160])&&!n([31,157])){t.next=23;break}return t.abrupt(\"return\",{ext:\"Z\",mime:\"application/x-compress\"});case 23:if(!n([255,216,255])){t.next=25;break}return t.abrupt(\"return\",{ext:\"jpg\",mime:\"image/jpeg\"});case 25:if(!n([73,73,188])){t.next=27;break}return t.abrupt(\"return\",{ext:\"jxr\",mime:\"image/vnd.ms-photo\"});case 27:if(!n([31,139,8])){t.next=29;break}return t.abrupt(\"return\",{ext:\"gz\",mime:\"application/gzip\"});case 29:if(!n([66,90,104])){t.next=31;break}return t.abrupt(\"return\",{ext:\"bz2\",mime:\"application/x-bzip2\"});case 31:if(!i(\"ID3\")){t.next=42;break}return t.next=34,e.ignore(6);case 34:return t.next=36,e.readToken(uint32SyncSafeToken);case 36:if(o=t.sent,!(e.position+o>e.fileInfo.size)){t.next=39;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 39:return t.next=41,e.ignore(o);case 41:return t.abrupt(\"return\",fromTokenizer(e));case 42:if(!i(\"MP+\")){t.next=44;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 44:if(67!==r[0]&&70!==r[0]||!n([87,83],{offset:1})){t.next=46;break}return t.abrupt(\"return\",{ext:\"swf\",mime:\"application/x-shockwave-flash\"});case 46:if(!n([71,73,70])){t.next=48;break}return t.abrupt(\"return\",{ext:\"gif\",mime:\"image/gif\"});case 48:if(!i(\"FLIF\")){t.next=50;break}return t.abrupt(\"return\",{ext:\"flif\",mime:\"image/flif\"});case 50:if(!i(\"8BPS\")){t.next=52;break}return t.abrupt(\"return\",{ext:\"psd\",mime:\"image/vnd.adobe.photoshop\"});case 52:if(!i(\"WEBP\",{offset:8})){t.next=54;break}return t.abrupt(\"return\",{ext:\"webp\",mime:\"image/webp\"});case 54:if(!i(\"MPCK\")){t.next=56;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 56:if(!i(\"FORM\")){t.next=58;break}return t.abrupt(\"return\",{ext:\"aif\",mime:\"audio/aiff\"});case 58:if(!i(\"icns\",{offset:0})){t.next=60;break}return t.abrupt(\"return\",{ext:\"icns\",mime:\"image/icns\"});case 60:if(!n([80,75,3,4])){t.next=121;break}t.prev=61;case 62:if(!(e.position+30<e.fileInfo.size)){t.next=114;break}return t.next=65,e.readBuffer(r,{length:30});case 65:return a={compressedSize:r.readUInt32LE(18),uncompressedSize:r.readUInt32LE(22),filenameLength:r.readUInt16LE(26),extraFieldLength:r.readUInt16LE(28)},t.next=68,e.readToken(new Token.StringType(a.filenameLength,\"utf-8\"));case 68:return a.filename=t.sent,t.next=71,e.ignore(a.extraFieldLength);case 71:if(\"META-INF/mozilla.rsa\"!==a.filename){t.next=73;break}return t.abrupt(\"return\",{ext:\"xpi\",mime:\"application/x-xpinstall\"});case 73:if(!a.filename.endsWith(\".rels\")&&!a.filename.endsWith(\".xml\")){t.next=83;break}s=a.filename.split(\"/\")[0],t.t0=s,t.next=\"_rels\"===t.t0?78:\"word\"===t.t0?79:\"ppt\"===t.t0?80:\"xl\"===t.t0?81:82;break;case 78:return t.abrupt(\"break\",83);case 79:return t.abrupt(\"return\",{ext:\"docx\",mime:\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"});case 80:return t.abrupt(\"return\",{ext:\"pptx\",mime:\"application/vnd.openxmlformats-officedocument.presentationml.presentation\"});case 81:return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 82:return t.abrupt(\"break\",83);case 83:if(!a.filename.startsWith(\"xl/\")){t.next=85;break}return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 85:if(!a.filename.startsWith(\"3D/\")||!a.filename.endsWith(\".model\")){t.next=87;break}return t.abrupt(\"return\",{ext:\"3mf\",mime:\"model/3mf\"});case 87:if(\"mimetype\"!==a.filename||a.compressedSize!==a.uncompressedSize){t.next=98;break}return t.next=90,e.readToken(new Token.StringType(a.compressedSize,\"utf-8\"));case 90:u=t.sent,t.t1=u,t.next=\"application/epub+zip\"===t.t1?94:\"application/vnd.oasis.opendocument.text\"===t.t1?95:\"application/vnd.oasis.opendocument.spreadsheet\"===t.t1?96:\"application/vnd.oasis.opendocument.presentation\"===t.t1?97:98;break;case 94:return t.abrupt(\"return\",{ext:\"epub\",mime:\"application/epub+zip\"});case 95:return t.abrupt(\"return\",{ext:\"odt\",mime:\"application/vnd.oasis.opendocument.text\"});case 96:return t.abrupt(\"return\",{ext:\"ods\",mime:\"application/vnd.oasis.opendocument.spreadsheet\"});case 97:return t.abrupt(\"return\",{ext:\"odp\",mime:\"application/vnd.oasis.opendocument.presentation\"});case 98:if(0!==a.compressedSize){t.next=110;break}c=-1;case 100:if(!(c<0&&e.position<e.fileInfo.size)){t.next=108;break}return t.next=103,e.peekBuffer(r,{mayBeLess:!0});case 103:return c=r.indexOf(\"504B0304\",0,\"hex\"),t.next=106,e.ignore(c>=0?c:r.length);case 106:t.next=100;break;case 108:t.next=112;break;case 110:return t.next=112,e.ignore(a.compressedSize);case 112:t.next=62;break;case 114:t.next=120;break;case 116:if(t.prev=116,t.t2=t.catch(61),t.t2 instanceof strtok3.EndOfStreamError){t.next=120;break}throw t.t2;case 120:return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 121:if(!i(\"OggS\")){t.next=140;break}return t.next=124,e.ignore(28);case 124:return l=Buffer.alloc(8),t.next=127,e.readBuffer(l);case 127:if(!_check(l,[79,112,117,115,72,101,97,100])){t.next=129;break}return t.abrupt(\"return\",{ext:\"opus\",mime:\"audio/opus\"});case 129:if(!_check(l,[128,116,104,101,111,114,97])){t.next=131;break}return t.abrupt(\"return\",{ext:\"ogv\",mime:\"video/ogg\"});case 131:if(!_check(l,[1,118,105,100,101,111,0])){t.next=133;break}return t.abrupt(\"return\",{ext:\"ogm\",mime:\"video/ogg\"});case 133:if(!_check(l,[127,70,76,65,67])){t.next=135;break}return t.abrupt(\"return\",{ext:\"oga\",mime:\"audio/ogg\"});case 135:if(!_check(l,[83,112,101,101,120,32,32])){t.next=137;break}return t.abrupt(\"return\",{ext:\"spx\",mime:\"audio/ogg\"});case 137:if(!_check(l,[1,118,111,114,98,105,115])){t.next=139;break}return t.abrupt(\"return\",{ext:\"ogg\",mime:\"audio/ogg\"});case 139:return t.abrupt(\"return\",{ext:\"ogx\",mime:\"application/ogg\"});case 140:if(!n([80,75])||3!==r[2]&&5!==r[2]&&7!==r[2]||4!==r[3]&&6!==r[3]&&8!==r[3]){t.next=142;break}return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 142:if(!(i(\"ftyp\",{offset:4})&&96&r[8])){t.next=167;break}f=r.toString(\"binary\",8,12).replace(\"\\0\",\" \").trim(),t.t3=f,t.next=\"avif\"===t.t3?147:\"mif1\"===t.t3?148:\"msf1\"===t.t3?149:\"heic\"===t.t3||\"heix\"===t.t3?150:\"hevc\"===t.t3||\"hevx\"===t.t3?151:\"qt\"===t.t3?152:\"M4V\"===t.t3||\"M4VH\"===t.t3||\"M4VP\"===t.t3?153:\"M4P\"===t.t3?154:\"M4B\"===t.t3?155:\"M4A\"===t.t3?156:\"F4V\"===t.t3?157:\"F4P\"===t.t3?158:\"F4A\"===t.t3?159:\"F4B\"===t.t3?160:\"crx\"===t.t3?161:162;break;case 147:return t.abrupt(\"return\",{ext:\"avif\",mime:\"image/avif\"});case 148:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif\"});case 149:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif-sequence\"});case 150:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic\"});case 151:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic-sequence\"});case 152:return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 153:return t.abrupt(\"return\",{ext:\"m4v\",mime:\"video/x-m4v\"});case 154:return t.abrupt(\"return\",{ext:\"m4p\",mime:\"video/mp4\"});case 155:return t.abrupt(\"return\",{ext:\"m4b\",mime:\"audio/mp4\"});case 156:return t.abrupt(\"return\",{ext:\"m4a\",mime:\"audio/x-m4a\"});case 157:return t.abrupt(\"return\",{ext:\"f4v\",mime:\"video/mp4\"});case 158:return t.abrupt(\"return\",{ext:\"f4p\",mime:\"video/mp4\"});case 159:return t.abrupt(\"return\",{ext:\"f4a\",mime:\"audio/mp4\"});case 160:return t.abrupt(\"return\",{ext:\"f4b\",mime:\"audio/mp4\"});case 161:return t.abrupt(\"return\",{ext:\"cr3\",mime:\"image/x-canon-cr3\"});case 162:if(!f.startsWith(\"3g\")){t.next=166;break}if(!f.startsWith(\"3g2\")){t.next=165;break}return t.abrupt(\"return\",{ext:\"3g2\",mime:\"video/3gpp2\"});case 165:return t.abrupt(\"return\",{ext:\"3gp\",mime:\"video/3gpp\"});case 166:return t.abrupt(\"return\",{ext:\"mp4\",mime:\"video/mp4\"});case 167:if(!i(\"MThd\")){t.next=169;break}return t.abrupt(\"return\",{ext:\"mid\",mime:\"audio/midi\"});case 169:if(!i(\"wOFF\")||!n([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=171;break}return t.abrupt(\"return\",{ext:\"woff\",mime:\"font/woff\"});case 171:if(!i(\"wOF2\")||!n([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=173;break}return t.abrupt(\"return\",{ext:\"woff2\",mime:\"font/woff2\"});case 173:if(!n([212,195,178,161])&&!n([161,178,195,212])){t.next=175;break}return t.abrupt(\"return\",{ext:\"pcap\",mime:\"application/vnd.tcpdump.pcap\"});case 175:if(!i(\"DSD \")){t.next=177;break}return t.abrupt(\"return\",{ext:\"dsf\",mime:\"audio/x-dsf\"});case 177:if(!i(\"LZIP\")){t.next=179;break}return t.abrupt(\"return\",{ext:\"lz\",mime:\"application/x-lzip\"});case 179:if(!i(\"fLaC\")){t.next=181;break}return t.abrupt(\"return\",{ext:\"flac\",mime:\"audio/x-flac\"});case 181:if(!n([66,80,71,251])){t.next=183;break}return t.abrupt(\"return\",{ext:\"bpg\",mime:\"image/bpg\"});case 183:if(!i(\"wvpk\")){t.next=185;break}return t.abrupt(\"return\",{ext:\"wv\",mime:\"audio/wavpack\"});case 185:if(!i(\"%PDF\")){t.next=195;break}return t.next=188,e.ignore(1350);case 188:return 10485760,h=Buffer.alloc(Math.min(10485760,e.fileInfo.size)),t.next=192,e.readBuffer(h,{mayBeLess:!0});case 192:if(!h.includes(Buffer.from(\"AIPrivateData\"))){t.next=194;break}return t.abrupt(\"return\",{ext:\"ai\",mime:\"application/postscript\"});case 194:return t.abrupt(\"return\",{ext:\"pdf\",mime:\"application/pdf\"});case 195:if(!n([0,97,115,109])){t.next=197;break}return t.abrupt(\"return\",{ext:\"wasm\",mime:\"application/wasm\"});case 197:if(!n([73,73,42,0])){t.next=210;break}if(!i(\"CR\",{offset:8})){t.next=200;break}return t.abrupt(\"return\",{ext:\"cr2\",mime:\"image/x-canon-cr2\"});case 200:if(!n([28,0,254,0],{offset:8})&&!n([31,0,11,0],{offset:8})){t.next=202;break}return t.abrupt(\"return\",{ext:\"nef\",mime:\"image/x-nikon-nef\"});case 202:if(!n([8,0,0,0],{offset:4})||!n([45,0,254,0],{offset:8})&&!n([39,0,254,0],{offset:8})){t.next=204;break}return t.abrupt(\"return\",{ext:\"dng\",mime:\"image/x-adobe-dng\"});case 204:return r=Buffer.alloc(24),t.next=207,e.peekBuffer(r);case 207:if(!n([16,251,134,1],{offset:4})&&!n([8,0,0,0],{offset:4})||!n([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})){t.next=209;break}return t.abrupt(\"return\",{ext:\"arw\",mime:\"image/x-sony-arw\"});case 209:return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 210:if(!n([77,77,0,42])){t.next=212;break}return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 212:if(!i(\"MAC \")){t.next=214;break}return t.abrupt(\"return\",{ext:\"ape\",mime:\"audio/ape\"});case 214:if(!n([26,69,223,163])){t.next=230;break}return p=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r,n,i,o;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peekNumber(Token.UINT8);case 2:for(r=t.sent,n=128,i=0;!(r&n)&&0!==n;)++i,n>>=1;return o=Buffer.alloc(i+1),t.next=9,e.readBuffer(o);case 9:return t.abrupt(\"return\",o);case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),d=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:return e=t.sent,t.next=5,p();case 5:return(r=t.sent)[0]^=128>>r.length-1,n=Math.min(6,r.length),t.abrupt(\"return\",{id:e.readUIntBE(0,e.length),len:r.readUIntBE(r.length-n,n)});case 9:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(r,n){var i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n>0)){t.next=11;break}return t.next=3,d();case 3:if(17026!==(i=t.sent).id){t.next=6;break}return t.abrupt(\"return\",e.readToken(new Token.StringType(i.len,\"utf-8\")));case 6:return t.next=8,e.ignore(i.len);case 8:--n,t.next=0;break;case 11:case\"end\":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),t.next=220,d();case 220:return y=t.sent,t.next=223,m(1,y.len);case 223:g=t.sent,t.t4=g,t.next=\"webm\"===t.t4?227:\"matroska\"===t.t4?228:229;break;case 227:return t.abrupt(\"return\",{ext:\"webm\",mime:\"video/webm\"});case 228:return t.abrupt(\"return\",{ext:\"mkv\",mime:\"video/x-matroska\"});case 229:return t.abrupt(\"return\");case 230:if(!n([82,73,70,70])){t.next=237;break}if(!n([65,86,73],{offset:8})){t.next=233;break}return t.abrupt(\"return\",{ext:\"avi\",mime:\"video/vnd.avi\"});case 233:if(!n([87,65,86,69],{offset:8})){t.next=235;break}return t.abrupt(\"return\",{ext:\"wav\",mime:\"audio/vnd.wave\"});case 235:if(!n([81,76,67,77],{offset:8})){t.next=237;break}return t.abrupt(\"return\",{ext:\"qcp\",mime:\"audio/qcelp\"});case 237:if(!i(\"SQLi\")){t.next=239;break}return t.abrupt(\"return\",{ext:\"sqlite\",mime:\"application/x-sqlite3\"});case 239:if(!n([78,69,83,26])){t.next=241;break}return t.abrupt(\"return\",{ext:\"nes\",mime:\"application/x-nintendo-nes-rom\"});case 241:if(!i(\"Cr24\")){t.next=243;break}return t.abrupt(\"return\",{ext:\"crx\",mime:\"application/x-google-chrome-extension\"});case 243:if(!i(\"MSCF\")&&!i(\"ISc(\")){t.next=245;break}return t.abrupt(\"return\",{ext:\"cab\",mime:\"application/vnd.ms-cab-compressed\"});case 245:if(!n([237,171,238,219])){t.next=247;break}return t.abrupt(\"return\",{ext:\"rpm\",mime:\"application/x-rpm\"});case 247:if(!n([197,208,211,198])){t.next=249;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 249:if(!n([40,181,47,253])){t.next=251;break}return t.abrupt(\"return\",{ext:\"zst\",mime:\"application/zstd\"});case 251:if(!n([79,84,84,79,0])){t.next=253;break}return t.abrupt(\"return\",{ext:\"otf\",mime:\"font/otf\"});case 253:if(!i(\"#!AMR\")){t.next=255;break}return t.abrupt(\"return\",{ext:\"amr\",mime:\"audio/amr\"});case 255:if(!i(\"{\\\\rtf\")){t.next=257;break}return t.abrupt(\"return\",{ext:\"rtf\",mime:\"application/rtf\"});case 257:if(!n([70,76,86,1])){t.next=259;break}return t.abrupt(\"return\",{ext:\"flv\",mime:\"video/x-flv\"});case 259:if(!i(\"IMPM\")){t.next=261;break}return t.abrupt(\"return\",{ext:\"it\",mime:\"audio/x-it\"});case 261:if(!(i(\"-lh0-\",{offset:2})||i(\"-lh1-\",{offset:2})||i(\"-lh2-\",{offset:2})||i(\"-lh3-\",{offset:2})||i(\"-lh4-\",{offset:2})||i(\"-lh5-\",{offset:2})||i(\"-lh6-\",{offset:2})||i(\"-lh7-\",{offset:2})||i(\"-lzs-\",{offset:2})||i(\"-lz4-\",{offset:2})||i(\"-lz5-\",{offset:2})||i(\"-lhd-\",{offset:2}))){t.next=263;break}return t.abrupt(\"return\",{ext:\"lzh\",mime:\"application/x-lzh-compressed\"});case 263:if(!n([0,0,1,186])){t.next=268;break}if(!n([33],{offset:4,mask:[241]})){t.next=266;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP1S\"});case 266:if(!n([68],{offset:4,mask:[196]})){t.next=268;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP2P\"});case 268:if(!i(\"ITSF\")){t.next=270;break}return t.abrupt(\"return\",{ext:\"chm\",mime:\"application/vnd.ms-htmlhelp\"});case 270:if(!n([253,55,122,88,90,0])){t.next=272;break}return t.abrupt(\"return\",{ext:\"xz\",mime:\"application/x-xz\"});case 272:if(!i(\"<?xml \")){t.next=274;break}return t.abrupt(\"return\",{ext:\"xml\",mime:\"application/xml\"});case 274:if(!n([55,122,188,175,39,28])){t.next=276;break}return t.abrupt(\"return\",{ext:\"7z\",mime:\"application/x-7z-compressed\"});case 276:if(!n([82,97,114,33,26,7])||0!==r[6]&&1!==r[6]){t.next=278;break}return t.abrupt(\"return\",{ext:\"rar\",mime:\"application/x-rar-compressed\"});case 278:if(!i(\"solid \")){t.next=280;break}return t.abrupt(\"return\",{ext:\"stl\",mime:\"model/stl\"});case 280:if(!i(\"BLENDER\")){t.next=282;break}return t.abrupt(\"return\",{ext:\"blend\",mime:\"application/x-blender\"});case 282:if(!i(\"!<arch>\")){t.next=291;break}return t.next=285,e.ignore(8);case 285:return t.next=287,e.readToken(new Token.StringType(13,\"ascii\"));case 287:if(\"debian-binary\"!==t.sent){t.next=290;break}return t.abrupt(\"return\",{ext:\"deb\",mime:\"application/x-deb\"});case 290:return t.abrupt(\"return\",{ext:\"ar\",mime:\"application/x-unix-archive\"});case 291:if(!n([137,80,78,71,13,10,26,10])){t.next=309;break}return b=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.readToken(Token.INT32_BE);case 2:return t.t0=t.sent,t.next=5,e.readToken(new Token.StringType(4,\"binary\"));case 5:return t.t1=t.sent,t.abrupt(\"return\",{length:t.t0,type:t.t1});case 7:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=295,e.ignore(8);case 295:return t.next=297,b();case 297:if(!((v=t.sent).length<0)){t.next=300;break}return t.abrupt(\"return\");case 300:t.t5=v.type,t.next=\"IDAT\"===t.t5?303:\"acTL\"===t.t5?304:305;break;case 303:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 304:return t.abrupt(\"return\",{ext:\"apng\",mime:\"image/apng\"});case 305:return t.next=307,e.ignore(v.length+4);case 307:if(e.position+8<e.fileInfo.size){t.next=295;break}case 308:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 309:if(!n([65,82,82,79,87,49,0,0])){t.next=311;break}return t.abrupt(\"return\",{ext:\"arrow\",mime:\"application/x-apache-arrow\"});case 311:if(!n([103,108,84,70,2,0,0,0])){t.next=313;break}return t.abrupt(\"return\",{ext:\"glb\",mime:\"model/gltf-binary\"});case 313:if(!(n([102,114,101,101],{offset:4})||n([109,100,97,116],{offset:4})||n([109,111,111,118],{offset:4})||n([119,105,100,101],{offset:4}))){t.next=315;break}return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 315:if(!n([73,73,82,79,8,0,0,0,24])){t.next=317;break}return t.abrupt(\"return\",{ext:\"orf\",mime:\"image/x-olympus-orf\"});case 317:if(!i(\"gimp xcf \")){t.next=319;break}return t.abrupt(\"return\",{ext:\"xcf\",mime:\"image/x-xcf\"});case 319:if(!n([73,73,85,0,24,0,0,0,136,231,116,216])){t.next=321;break}return t.abrupt(\"return\",{ext:\"rw2\",mime:\"image/x-panasonic-rw2\"});case 321:if(!n([48,38,178,117,142,102,207,17,166,217])){t.next=346;break}return w=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(16),t.next=3,e.readBuffer(r);case 3:return t.t0=r,t.t1=Number,t.next=7,e.readToken(Token.UINT64_LE);case 7:return t.t2=t.sent,t.t3=(0,t.t1)(t.t2),t.abrupt(\"return\",{id:t.t0,size:t.t3});case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=325,e.ignore(30);case 325:if(!(e.position+24<e.fileInfo.size)){t.next=345;break}return t.next=328,w();case 328:if(_=t.sent,x=_.size-24,!_check(_.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){t.next=341;break}return k=Buffer.alloc(16),t.t6=x,t.next=335,e.readBuffer(k);case 335:if(x=t.t6-=t.sent,!_check(k,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=338;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"audio/x-ms-asf\"});case 338:if(!_check(k,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=340;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"video/x-ms-asf\"});case 340:return t.abrupt(\"break\",345);case 341:return t.next=343,e.ignore(x);case 343:t.next=325;break;case 345:return t.abrupt(\"return\",{ext:\"asf\",mime:\"application/vnd.ms-asf\"});case 346:if(!n([171,75,84,88,32,49,49,187,13,10,26,10])){t.next=348;break}return t.abrupt(\"return\",{ext:\"ktx\",mime:\"image/ktx\"});case 348:if(!n([126,16,4])&&!n([126,24,4])||!n([48,77,73,69],{offset:4})){t.next=350;break}return t.abrupt(\"return\",{ext:\"mie\",mime:\"application/x-mie\"});case 350:if(!n([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2})){t.next=352;break}return t.abrupt(\"return\",{ext:\"shp\",mime:\"application/x-esri-shape\"});case 352:if(!n([0,0,0,12,106,80,32,32,13,10,135,10])){t.next=366;break}return t.next=355,e.ignore(20);case 355:return t.next=357,e.readToken(new Token.StringType(4,\"ascii\"));case 357:E=t.sent,t.t7=E,t.next=\"jp2 \"===t.t7?361:\"jpx \"===t.t7?362:\"jpm \"===t.t7?363:\"mjp2\"===t.t7?364:365;break;case 361:return t.abrupt(\"return\",{ext:\"jp2\",mime:\"image/jp2\"});case 362:return t.abrupt(\"return\",{ext:\"jpx\",mime:\"image/jpx\"});case 363:return t.abrupt(\"return\",{ext:\"jpm\",mime:\"image/jpm\"});case 364:return t.abrupt(\"return\",{ext:\"mj2\",mime:\"image/mj2\"});case 365:return t.abrupt(\"return\");case 366:if(!n([255,10])&&!n([0,0,0,12,74,88,76,32,13,10,135,10])){t.next=368;break}return t.abrupt(\"return\",{ext:\"jxl\",mime:\"image/jxl\"});case 368:if(!n([0,0,1,186])&&!n([0,0,1,179])){t.next=370;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/mpeg\"});case 370:if(!n([0,1,0,0,0])){t.next=372;break}return t.abrupt(\"return\",{ext:\"ttf\",mime:\"font/ttf\"});case 372:if(!n([0,0,1,0])){t.next=374;break}return t.abrupt(\"return\",{ext:\"ico\",mime:\"image/x-icon\"});case 374:if(!n([0,0,2,0])){t.next=376;break}return t.abrupt(\"return\",{ext:\"cur\",mime:\"image/x-icon\"});case 376:if(!n([208,207,17,224,161,177,26,225])){t.next=378;break}return t.abrupt(\"return\",{ext:\"cfb\",mime:\"application/x-cfb\"});case 378:return t.next=380,e.peekBuffer(r,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0});case 380:if(!i(\"BEGIN:\")){t.next=385;break}if(!i(\"VCARD\",{offset:6})){t.next=383;break}return t.abrupt(\"return\",{ext:\"vcf\",mime:\"text/vcard\"});case 383:if(!i(\"VCALENDAR\",{offset:6})){t.next=385;break}return t.abrupt(\"return\",{ext:\"ics\",mime:\"text/calendar\"});case 385:if(!i(\"FUJIFILMCCD-RAW\")){t.next=387;break}return t.abrupt(\"return\",{ext:\"raf\",mime:\"image/x-fujifilm-raf\"});case 387:if(!i(\"Extended Module:\")){t.next=389;break}return t.abrupt(\"return\",{ext:\"xm\",mime:\"audio/x-xm\"});case 389:if(!i(\"Creative Voice File\")){t.next=391;break}return t.abrupt(\"return\",{ext:\"voc\",mime:\"audio/x-voc\"});case 391:if(!(n([4,0,0,0])&&r.length>=16)){t.next=403;break}if(!((S=r.readUInt32LE(12))>12&&r.length>=S+16)){t.next=403;break}if(t.prev=394,T=r.slice(16,S+16).toString(),!JSON.parse(T).files){t.next=399;break}return t.abrupt(\"return\",{ext:\"asar\",mime:\"application/x-asar\"});case 399:t.next=403;break;case 401:t.prev=401,t.t8=t.catch(394);case 403:if(!n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){t.next=405;break}return t.abrupt(\"return\",{ext:\"mxf\",mime:\"application/mxf\"});case 405:if(!i(\"SCRM\",{offset:44})){t.next=407;break}return t.abrupt(\"return\",{ext:\"s3m\",mime:\"audio/x-s3m\"});case 407:if(!n([71],{offset:4})||!n([71],{offset:192})&&!n([71],{offset:196})){t.next=409;break}return t.abrupt(\"return\",{ext:\"mts\",mime:\"video/mp2t\"});case 409:if(!n([66,79,79,75,77,79,66,73],{offset:60})){t.next=411;break}return t.abrupt(\"return\",{ext:\"mobi\",mime:\"application/x-mobipocket-ebook\"});case 411:if(!n([68,73,67,77],{offset:128})){t.next=413;break}return t.abrupt(\"return\",{ext:\"dcm\",mime:\"application/dicom\"});case 413:if(!n([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70])){t.next=415;break}return t.abrupt(\"return\",{ext:\"lnk\",mime:\"application/x.ms.shortcut\"});case 415:if(!n([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0])){t.next=417;break}return t.abrupt(\"return\",{ext:\"alias\",mime:\"application/x.apple.alias\"});case 417:if(!n([76,80],{offset:34})||!(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))){t.next=419;break}return t.abrupt(\"return\",{ext:\"eot\",mime:\"application/vnd.ms-fontobject\"});case 419:if(!n([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29])){t.next=421;break}return t.abrupt(\"return\",{ext:\"indd\",mime:\"application/x-indesign\"});case 421:return t.next=423,e.peekBuffer(r,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0});case 423:if(!tarHeaderChecksumMatches(r)){t.next=425;break}return t.abrupt(\"return\",{ext:\"tar\",mime:\"application/x-tar\"});case 425:if(!n([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0])){t.next=427;break}return t.abrupt(\"return\",{ext:\"skp\",mime:\"application/vnd.sketchup.skp\"});case 427:if(!i(\"-----BEGIN PGP MESSAGE-----\")){t.next=429;break}return t.abrupt(\"return\",{ext:\"pgp\",mime:\"application/pgp-encrypted\"});case 429:if(!(r.length>=2&&n([255,224],{offset:0,mask:[255,224]}))){t.next=440;break}if(!n([16],{offset:1,mask:[22]})){t.next=434;break}if(!n([8],{offset:1,mask:[8]})){t.next=433;break}return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 433:return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 434:if(!n([2],{offset:1,mask:[6]})){t.next=436;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 436:if(!n([4],{offset:1,mask:[6]})){t.next=438;break}return t.abrupt(\"return\",{ext:\"mp2\",mime:\"audio/mpeg\"});case 438:if(!n([6],{offset:1,mask:[6]})){t.next=440;break}return t.abrupt(\"return\",{ext:\"mp1\",mime:\"audio/mpeg\"});case 440:case\"end\":return t.stop()}}),t,null,[[61,116],[394,401]])}))),_fromTokenizer3.apply(this,arguments)}var stream=function stream(readableStream){return new Promise((function(resolve,reject){var stream=eval(\"require\")(\"stream\");readableStream.on(\"error\",reject),readableStream.once(\"readable\",_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new stream.PassThrough,r=stream.pipeline?stream.pipeline(readableStream,e,(function(){})):readableStream.pipe(e),n=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0),t.prev=3,t.next=6,fromBuffer(n);case 6:i=t.sent,e.fileType=i,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),reject(t.t0);case 13:resolve(r);case 14:case\"end\":return t.stop()}}),t,null,[[3,10]])}))))}))},fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,\"extensions\",{get:function(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,\"mimeTypes\",{get:function(){return new Set(supported.mimeTypes)}}),module.exports=fileType}).call(this,__webpack_require__(2).Buffer)},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function a(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function s(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;var u=r(67);function c(t){return new DataView(t.buffer,t.byteOffset)}e.UINT8={len:1,get:function(t,e){return c(t).getUint8(e)},put:function(t,e,r){return c(t).setUint8(e,r),e+1}},e.UINT16_LE={len:2,get:function(t,e){return c(t).getUint16(e,!0)},put:function(t,e,r){return c(t).setUint16(e,r,!0),e+2}},e.UINT16_BE={len:2,get:function(t,e){return c(t).getUint16(e)},put:function(t,e,r){return c(t).setUint16(e,r),e+2}},e.UINT24_LE={len:3,get:function(t,e){var r=c(t);return r.getUint8(e)+(r.getUint16(e+1,!0)<<8)},put:function(t,e,r){var n=c(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.UINT24_BE={len:3,get:function(t,e){var r=c(t);return(r.getUint16(e)<<8)+r.getUint8(e+2)},put:function(t,e,r){var n=c(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.UINT32_LE={len:4,get:function(t,e){return c(t).getUint32(e,!0)},put:function(t,e,r){return c(t).setUint32(e,r,!0),e+4}},e.UINT32_BE={len:4,get:function(t,e){return c(t).getUint32(e)},put:function(t,e,r){return c(t).setUint32(e,r),e+4}},e.INT8={len:1,get:function(t,e){return c(t).getInt8(e)},put:function(t,e,r){return c(t).setInt8(e,r),e+1}},e.INT16_BE={len:2,get:function(t,e){return c(t).getInt16(e)},put:function(t,e,r){return c(t).setInt16(e,r),e+2}},e.INT16_LE={len:2,get:function(t,e){return c(t).getInt16(e,!0)},put:function(t,e,r){return c(t).setInt16(e,r,!0),e+2}},e.INT24_LE={len:3,get:function(t,r){var n=e.UINT24_LE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=c(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.INT24_BE={len:3,get:function(t,r){var n=e.UINT24_BE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=c(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.INT32_BE={len:4,get:function(t,e){return c(t).getInt32(e)},put:function(t,e,r){return c(t).setInt32(e,r),e+4}},e.INT32_LE={len:4,get:function(t,e){return c(t).getInt32(e,!0)},put:function(t,e,r){return c(t).setInt32(e,r,!0),e+4}},e.UINT64_LE={len:8,get:function(t,e){return c(t).getBigUint64(e,!0)},put:function(t,e,r){return c(t).setBigUint64(e,r,!0),e+8}},e.INT64_LE={len:8,get:function(t,e){return c(t).getBigInt64(e,!0)},put:function(t,e,r){return c(t).setBigInt64(e,r,!0),e+8}},e.UINT64_BE={len:8,get:function(t,e){return c(t).getBigUint64(e)},put:function(t,e,r){return c(t).setBigUint64(e,r),e+8}},e.INT64_BE={len:8,get:function(t,e){return c(t).getBigInt64(e)},put:function(t,e,r){return c(t).setBigInt64(e,r),e+8}},e.Float16_BE={len:2,get:function(t,e){return u.read(t,e,!1,10,this.len)},put:function(t,e,r){return u.write(t,r,e,!1,10,this.len),e+this.len}},e.Float16_LE={len:2,get:function(t,e){return u.read(t,e,!0,10,this.len)},put:function(t,e,r){return u.write(t,r,e,!0,10,this.len),e+this.len}},e.Float32_BE={len:4,get:function(t,e){return c(t).getFloat32(e)},put:function(t,e,r){return c(t).setFloat32(e,r),e+4}},e.Float32_LE={len:4,get:function(t,e){return c(t).getFloat32(e,!0)},put:function(t,e,r){return c(t).setFloat32(e,r,!0),e+4}},e.Float64_BE={len:8,get:function(t,e){return c(t).getFloat64(e)},put:function(t,e,r){return c(t).setFloat64(e,r),e+8}},e.Float64_LE={len:8,get:function(t,e){return c(t).getFloat64(e,!0)},put:function(t,e,r){return c(t).setFloat64(e,r,!0),e+8}},e.Float80_BE={len:10,get:function(t,e){return u.read(t,e,!1,63,this.len)},put:function(t,e,r){return u.write(t,r,e,!1,63,this.len),e+this.len}},e.Float80_LE={len:10,get:function(t,e){return u.read(t,e,!0,63,this.len)},put:function(t,e,r){return u.write(t,r,e,!0,63,this.len),e+this.len}};var l=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){}}])}();e.IgnoreType=l;var f=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){return t.subarray(e,e+this.len)}}])}();e.Uint8ArrayType=f;var h=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(e,r){return t.from(e.subarray(r,r+this.len))}}])}();e.BufferType=h;var p=function(){return a((function t(e,r){i(this,t),this.len=e,this.encoding=r}),[{key:\"get\",value:function(e,r){return t.from(e).toString(this.encoding,r,r+this.len)}}])}();e.StringType=p;var d=function(){function t(e){i(this,t),this.len=e}return a(t,[{key:\"get\",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.decode(e,r,r+this.len)}}],[{key:\"decode\",value:function(e,r,n){for(var i=\"\",o=r;o<n;++o)i+=t.codePointToString(t.singleByteDecoder(e[o]));return i}},{key:\"inRange\",value:function(t,e,r){return e<=t&&t<=r}},{key:\"codePointToString\",value:function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}},{key:\"singleByteDecoder\",value:function(e){if(t.inRange(e,0,127))return e;var r=t.windows1252[e-128];if(null===r)throw Error(\"invaliding encoding\");return r}}])}();e.AnsiStringType=d,d.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.stringToBytes=function(t){return n(t).map((function(t){return t.charCodeAt(0)}))},e.tarHeaderChecksumMatches=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=parseInt(t.toString(\"utf8\",148,154).replace(/\\0.*$/,\"\").trim(),8);if(isNaN(r))return!1;for(var n=256,i=e;i<e+148;i++)n+=t[i];for(var o=e+156;o<e+512;o++)n+=t[o];return r===n},e.uint32SyncSafeToken={get:function(t,e){return 127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21},len:4}},function(t,e,r){\"use strict\";t.exports={extensions:[\"jpg\",\"png\",\"apng\",\"gif\",\"webp\",\"flif\",\"xcf\",\"cr2\",\"cr3\",\"orf\",\"arw\",\"dng\",\"nef\",\"rw2\",\"raf\",\"tif\",\"bmp\",\"icns\",\"jxr\",\"psd\",\"indd\",\"zip\",\"tar\",\"rar\",\"gz\",\"bz2\",\"7z\",\"dmg\",\"mp4\",\"mid\",\"mkv\",\"webm\",\"mov\",\"avi\",\"mpg\",\"mp2\",\"mp3\",\"m4a\",\"oga\",\"ogg\",\"ogv\",\"opus\",\"flac\",\"wav\",\"spx\",\"amr\",\"pdf\",\"epub\",\"exe\",\"swf\",\"rtf\",\"wasm\",\"woff\",\"woff2\",\"eot\",\"ttf\",\"otf\",\"ico\",\"flv\",\"ps\",\"xz\",\"sqlite\",\"nes\",\"crx\",\"xpi\",\"cab\",\"deb\",\"ar\",\"rpm\",\"Z\",\"lz\",\"cfb\",\"mxf\",\"mts\",\"blend\",\"bpg\",\"docx\",\"pptx\",\"xlsx\",\"3gp\",\"3g2\",\"jp2\",\"jpm\",\"jpx\",\"mj2\",\"aif\",\"qcp\",\"odt\",\"ods\",\"odp\",\"xml\",\"mobi\",\"heic\",\"cur\",\"ktx\",\"ape\",\"wv\",\"dcm\",\"ics\",\"glb\",\"pcap\",\"dsf\",\"lnk\",\"alias\",\"voc\",\"ac3\",\"m4v\",\"m4p\",\"m4b\",\"f4v\",\"f4p\",\"f4b\",\"f4a\",\"mie\",\"asf\",\"ogm\",\"ogx\",\"mpc\",\"arrow\",\"shp\",\"aac\",\"mp1\",\"it\",\"s3m\",\"xm\",\"ai\",\"skp\",\"avif\",\"eps\",\"lzh\",\"pgp\",\"asar\",\"stl\",\"chm\",\"3mf\",\"zst\",\"jxl\",\"vcf\"],mimeTypes:[\"image/jpeg\",\"image/png\",\"image/gif\",\"image/webp\",\"image/flif\",\"image/x-xcf\",\"image/x-canon-cr2\",\"image/x-canon-cr3\",\"image/tiff\",\"image/bmp\",\"image/vnd.ms-photo\",\"image/vnd.adobe.photoshop\",\"application/x-indesign\",\"application/epub+zip\",\"application/x-xpinstall\",\"application/vnd.oasis.opendocument.text\",\"application/vnd.oasis.opendocument.spreadsheet\",\"application/vnd.oasis.opendocument.presentation\",\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\"application/zip\",\"application/x-tar\",\"application/x-rar-compressed\",\"application/gzip\",\"application/x-bzip2\",\"application/x-7z-compressed\",\"application/x-apple-diskimage\",\"application/x-apache-arrow\",\"video/mp4\",\"audio/midi\",\"video/x-matroska\",\"video/webm\",\"video/quicktime\",\"video/vnd.avi\",\"audio/vnd.wave\",\"audio/qcelp\",\"audio/x-ms-asf\",\"video/x-ms-asf\",\"application/vnd.ms-asf\",\"video/mpeg\",\"video/3gpp\",\"audio/mpeg\",\"audio/mp4\",\"audio/opus\",\"video/ogg\",\"audio/ogg\",\"application/ogg\",\"audio/x-flac\",\"audio/ape\",\"audio/wavpack\",\"audio/amr\",\"application/pdf\",\"application/x-msdownload\",\"application/x-shockwave-flash\",\"application/rtf\",\"application/wasm\",\"font/woff\",\"font/woff2\",\"application/vnd.ms-fontobject\",\"font/ttf\",\"font/otf\",\"image/x-icon\",\"video/x-flv\",\"application/postscript\",\"application/eps\",\"application/x-xz\",\"application/x-sqlite3\",\"application/x-nintendo-nes-rom\",\"application/x-google-chrome-extension\",\"application/vnd.ms-cab-compressed\",\"application/x-deb\",\"application/x-unix-archive\",\"application/x-rpm\",\"application/x-compress\",\"application/x-lzip\",\"application/x-cfb\",\"application/x-mie\",\"application/mxf\",\"video/mp2t\",\"application/x-blender\",\"image/bpg\",\"image/jp2\",\"image/jpx\",\"image/jpm\",\"image/mj2\",\"audio/aiff\",\"application/xml\",\"application/x-mobipocket-ebook\",\"image/heif\",\"image/heif-sequence\",\"image/heic\",\"image/heic-sequence\",\"image/icns\",\"image/ktx\",\"application/dicom\",\"audio/x-musepack\",\"text/calendar\",\"text/vcard\",\"model/gltf-binary\",\"application/vnd.tcpdump.pcap\",\"audio/x-dsf\",\"application/x.ms.shortcut\",\"application/x.apple.alias\",\"audio/x-voc\",\"audio/vnd.dolby.dd-raw\",\"audio/x-m4a\",\"image/apng\",\"image/x-olympus-orf\",\"image/x-sony-arw\",\"image/x-adobe-dng\",\"image/x-nikon-nef\",\"image/x-panasonic-rw2\",\"image/x-fujifilm-raf\",\"video/x-m4v\",\"video/3gpp2\",\"application/x-esri-shape\",\"audio/aac\",\"audio/x-it\",\"audio/x-s3m\",\"audio/x-xm\",\"video/MP1S\",\"video/MP2P\",\"application/vnd.sketchup.skp\",\"image/avif\",\"application/x-lzh-compressed\",\"application/pgp-encrypted\",\"application/x-asar\",\"model/stl\",\"application/vnd.ms-htmlhelp\",\"model/3mf\",\"image/jxl\",\"application/zstd\"]}},function(t,e,r){var n=r(136),i=r(69),o=r(137);function a(t,e,r,n,i,o,a){this.startMarker=t,this.tags=e,this.imageSize=r,this.thumbnailOffset=n,this.thumbnailLength=i,this.thumbnailType=o,this.app1Offset=a}function s(t){this.stream=t,this.flags={readBinaryTags:!1,resolveTagNames:!0,simplifyValues:!0,imageSize:!0,hidePointers:!0,returnTags:!0}}a.prototype={hasThumbnail:function(t){return!(!this.thumbnailOffset||!this.thumbnailLength)&&(\"string\"!=typeof t||(\"image/jpeg\"===t.toLowerCase().trim()?6===this.thumbnailType:\"image/tiff\"===t.toLowerCase().trim()&&1===this.thumbnailType))},getThumbnailOffset:function(){return this.app1Offset+6+this.thumbnailOffset},getThumbnailLength:function(){return this.thumbnailLength},getThumbnailBuffer:function(){return this._getThumbnailStream().nextBuffer(this.thumbnailLength)},_getThumbnailStream:function(){return this.startMarker.openWithOffset(this.getThumbnailOffset())},getImageSize:function(){return this.imageSize},getThumbnailSize:function(){var t,e=this._getThumbnailStream();return n.parseSections(e,(function(e,r){\"SOF\"===n.getSectionName(e).name&&(t=n.getSizeFromSOFSection(r))})),t}},s.prototype={enableBinaryFields:function(t){return this.flags.readBinaryTags=!!t,this},enablePointers:function(t){return this.flags.hidePointers=!t,this},enableTagNames:function(t){return this.flags.resolveTagNames=!!t,this},enableImageSize:function(t){return this.flags.imageSize=!!t,this},enableReturnTags:function(t){return this.flags.returnTags=!!t,this},enableSimpleValues:function(t){return this.flags.simplifyValues=!!t,this},parse:function(){var t,e,s,u,c,l,f,h,p,d=this.stream.mark(),m=d.openWithOffset(0),y=this.flags;return y.resolveTagNames&&(f=r(139)),y.resolveTagNames?(t={},h=function(e){return t[e.name]},p=function(e,r){t[e.name]=r}):(t=[],h=function(e){var r;for(r=0;r<t.length;++r)if(t[r].type===e.type&&t[r].section===e.section)return t.value},p=function(e,r){var n;for(n=0;n<t.length;++n)if(t[n].type===e.type&&t[n].section===e.section)return void(t.value=r)}),n.parseSections(m,(function(r,a){var h=a.offsetFrom(d);225===r?i.parseTags(a,(function(e,r,n,a){if(y.readBinaryTags||7!==a){if(513===r){if(s=n[0],y.hidePointers)return}else if(514===r){if(u=n[0],y.hidePointers)return}else if(259===r&&(c=n[0],y.hidePointers))return;if(y.returnTags)if(y.simplifyValues&&(n=o.simplifyValue(n,a)),y.resolveTagNames){var l=(e===i.GPSIFD?f.gps:f.exif)[r];l||(l=f.exif[r]),t.hasOwnProperty(l)||(t[l]=n)}else t.push({section:e,type:r,value:n})}}))&&(l=h):y.imageSize&&\"SOF\"===n.getSectionName(r).name&&(e=n.getSizeFromSOFSection(a))})),y.simplifyValues&&(o.castDegreeValues(h,p),o.castDateValues(h,p)),new a(d,t,e,s,u,c,l)}},t.exports=s},function(t,e){t.exports={parseSections:function(t,e){var r,n;for(t.setBigEndian(!0);t.remainingLength()>0&&218!==n;){if(255!==t.nextUInt8())throw new Error(\"Invalid JPEG section offset\");r=(n=t.nextUInt8())>=208&&n<=217||218===n?0:t.nextUInt16()-2,e(n,t.branch(0,r)),t.skip(r)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,r;switch(t){case 216:e=\"SOI\";break;case 196:e=\"DHT\";break;case 219:e=\"DQT\";break;case 221:e=\"DRI\";break;case 218:e=\"SOS\";break;case 254:e=\"COM\";break;case 217:e=\"EOI\";break;default:t>=224&&t<=239?(e=\"APP\",r=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e=\"SOF\",r=t-192):t>=208&&t<=215&&(e=\"RST\",r=t-208)}var n={name:e};return\"number\"==typeof r&&(n.index=r),n}}},function(t,e,r){var n=r(69),i=r(138),o=[{section:n.GPSIFD,type:2,name:\"GPSLatitude\",refType:1,refName:\"GPSLatitudeRef\",posVal:\"N\"},{section:n.GPSIFD,type:4,name:\"GPSLongitude\",refType:3,refName:\"GPSLongitudeRef\",posVal:\"E\"}],a=[{section:n.SubIFD,type:306,name:\"ModifyDate\"},{section:n.SubIFD,type:36867,name:\"DateTimeOriginal\"},{section:n.SubIFD,type:36868,name:\"CreateDate\"},{section:n.SubIFD,type:306,name:\"ModifyDate\"}];t.exports={castDegreeValues:function(t,e){o.forEach((function(r){var n=t(r);if(n){var i=t({section:r.section,type:r.refType,name:r.refName})===r.posVal?1:-1,o=(n[0]+n[1]/60+n[2]/3600)*i;e(r,o)}}))},castDateValues:function(t,e){a.forEach((function(r){var n=t(r);if(n){var o=i.parseExifDate(n);void 0!==o&&e(r,o)}}))},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map((function(t){return 10===e||5===e?t[0]/t[1]:t}))).length&&(t=t[0]),t}}},function(t,e){function r(t){return parseInt(t,10)}var n=3600,i=60;function o(t,e){t=t.map(r),e=e.map(r);var n=t[0],i=t[1]-1,o=t[2],a=e[0],s=e[1],u=e[2];return Date.UTC(n,i,o,a,s,u,0)/1e3}function a(t){var e=t.substr(0,10).split(\"-\"),a=t.substr(11,8).split(\":\"),s=t.substr(19,6).split(\":\").map(r),u=s[0]*n+s[1]*i,c=o(e,a);if(\"number\"==typeof(c-=u)&&!isNaN(c))return c}function s(t){var e=t.split(\" \"),r=o(e[0].split(\":\"),e[1].split(\":\"));if(\"number\"==typeof r&&!isNaN(r))return r}t.exports={parseDateWithSpecFormat:s,parseDateWithTimezoneFormat:a,parseExifDate:function(t){var e=19===t.length&&\":\"===t.charAt(4);return 25===t.length&&\"T\"===t.charAt(10)?a(t):e?s(t):void 0}}},function(t,e){t.exports={exif:{1:\"InteropIndex\",2:\"InteropVersion\",11:\"ProcessingSoftware\",254:\"SubfileType\",255:\"OldSubfileType\",256:\"ImageWidth\",257:\"ImageHeight\",258:\"BitsPerSample\",259:\"Compression\",262:\"PhotometricInterpretation\",263:\"Thresholding\",264:\"CellWidth\",265:\"CellLength\",266:\"FillOrder\",269:\"DocumentName\",270:\"ImageDescription\",271:\"Make\",272:\"Model\",273:\"StripOffsets\",274:\"Orientation\",277:\"SamplesPerPixel\",278:\"RowsPerStrip\",279:\"StripByteCounts\",280:\"MinSampleValue\",281:\"MaxSampleValue\",282:\"XResolution\",283:\"YResolution\",284:\"PlanarConfiguration\",285:\"PageName\",286:\"XPosition\",287:\"YPosition\",288:\"FreeOffsets\",289:\"FreeByteCounts\",290:\"GrayResponseUnit\",291:\"GrayResponseCurve\",292:\"T4Options\",293:\"T6Options\",296:\"ResolutionUnit\",297:\"PageNumber\",300:\"ColorResponseUnit\",301:\"TransferFunction\",305:\"Software\",306:\"ModifyDate\",315:\"Artist\",316:\"HostComputer\",317:\"Predictor\",318:\"WhitePoint\",319:\"PrimaryChromaticities\",320:\"ColorMap\",321:\"HalftoneHints\",322:\"TileWidth\",323:\"TileLength\",324:\"TileOffsets\",325:\"TileByteCounts\",326:\"BadFaxLines\",327:\"CleanFaxData\",328:\"ConsecutiveBadFaxLines\",330:\"SubIFD\",332:\"InkSet\",333:\"InkNames\",334:\"NumberofInks\",336:\"DotRange\",337:\"TargetPrinter\",338:\"ExtraSamples\",339:\"SampleFormat\",340:\"SMinSampleValue\",341:\"SMaxSampleValue\",342:\"TransferRange\",343:\"ClipPath\",344:\"XClipPathUnits\",345:\"YClipPathUnits\",346:\"Indexed\",347:\"JPEGTables\",351:\"OPIProxy\",400:\"GlobalParametersIFD\",401:\"ProfileType\",402:\"FaxProfile\",403:\"CodingMethods\",404:\"VersionYear\",405:\"ModeNumber\",433:\"Decode\",434:\"DefaultImageColor\",435:\"T82Options\",437:\"JPEGTables\",512:\"JPEGProc\",513:\"ThumbnailOffset\",514:\"ThumbnailLength\",515:\"JPEGRestartInterval\",517:\"JPEGLosslessPredictors\",518:\"JPEGPointTransforms\",519:\"JPEGQTables\",520:\"JPEGDCTables\",521:\"JPEGACTables\",529:\"YCbCrCoefficients\",530:\"YCbCrSubSampling\",531:\"YCbCrPositioning\",532:\"ReferenceBlackWhite\",559:\"StripRowCounts\",700:\"ApplicationNotes\",999:\"USPTOMiscellaneous\",4096:\"RelatedImageFileFormat\",4097:\"RelatedImageWidth\",4098:\"RelatedImageHeight\",18246:\"Rating\",18247:\"XP_DIP_XML\",18248:\"StitchInfo\",18249:\"RatingPercent\",32781:\"ImageID\",32931:\"WangTag1\",32932:\"WangAnnotation\",32933:\"WangTag3\",32934:\"WangTag4\",32995:\"Matteing\",32996:\"DataType\",32997:\"ImageDepth\",32998:\"TileDepth\",33405:\"Model2\",33421:\"CFARepeatPatternDim\",33422:\"CFAPattern2\",33423:\"BatteryLevel\",33424:\"KodakIFD\",33432:\"Copyright\",33434:\"ExposureTime\",33437:\"FNumber\",33445:\"MDFileTag\",33446:\"MDScalePixel\",33447:\"MDColorTable\",33448:\"MDLabName\",33449:\"MDSampleInfo\",33450:\"MDPrepDate\",33451:\"MDPrepTime\",33452:\"MDFileUnits\",33550:\"PixelScale\",33589:\"AdventScale\",33590:\"AdventRevision\",33628:\"UIC1Tag\",33629:\"UIC2Tag\",33630:\"UIC3Tag\",33631:\"UIC4Tag\",33723:\"IPTC-NAA\",33918:\"IntergraphPacketData\",33919:\"IntergraphFlagRegisters\",33920:\"IntergraphMatrix\",33921:\"INGRReserved\",33922:\"ModelTiePoint\",34016:\"Site\",34017:\"ColorSequence\",34018:\"IT8Header\",34019:\"RasterPadding\",34020:\"BitsPerRunLength\",34021:\"BitsPerExtendedRunLength\",34022:\"ColorTable\",34023:\"ImageColorIndicator\",34024:\"BackgroundColorIndicator\",34025:\"ImageColorValue\",34026:\"BackgroundColorValue\",34027:\"PixelIntensityRange\",34028:\"TransparencyIndicator\",34029:\"ColorCharacterization\",34030:\"HCUsage\",34031:\"TrapIndicator\",34032:\"CMYKEquivalent\",34118:\"SEMInfo\",34152:\"AFCP_IPTC\",34232:\"PixelMagicJBIGOptions\",34264:\"ModelTransform\",34306:\"WB_GRGBLevels\",34310:\"LeafData\",34377:\"PhotoshopSettings\",34665:\"ExifOffset\",34675:\"ICC_Profile\",34687:\"TIFF_FXExtensions\",34688:\"MultiProfiles\",34689:\"SharedData\",34690:\"T88Options\",34732:\"ImageLayer\",34735:\"GeoTiffDirectory\",34736:\"GeoTiffDoubleParams\",34737:\"GeoTiffAsciiParams\",34850:\"ExposureProgram\",34852:\"SpectralSensitivity\",34853:\"GPSInfo\",34855:\"ISO\",34856:\"Opto-ElectricConvFactor\",34857:\"Interlace\",34858:\"TimeZoneOffset\",34859:\"SelfTimerMode\",34864:\"SensitivityType\",34865:\"StandardOutputSensitivity\",34866:\"RecommendedExposureIndex\",34867:\"ISOSpeed\",34868:\"ISOSpeedLatitudeyyy\",34869:\"ISOSpeedLatitudezzz\",34908:\"FaxRecvParams\",34909:\"FaxSubAddress\",34910:\"FaxRecvTime\",34954:\"LeafSubIFD\",36864:\"ExifVersion\",36867:\"DateTimeOriginal\",36868:\"CreateDate\",37121:\"ComponentsConfiguration\",37122:\"CompressedBitsPerPixel\",37377:\"ShutterSpeedValue\",37378:\"ApertureValue\",37379:\"BrightnessValue\",37380:\"ExposureCompensation\",37381:\"MaxApertureValue\",37382:\"SubjectDistance\",37383:\"MeteringMode\",37384:\"LightSource\",37385:\"Flash\",37386:\"FocalLength\",37387:\"FlashEnergy\",37388:\"SpatialFrequencyResponse\",37389:\"Noise\",37390:\"FocalPlaneXResolution\",37391:\"FocalPlaneYResolution\",37392:\"FocalPlaneResolutionUnit\",37393:\"ImageNumber\",37394:\"SecurityClassification\",37395:\"ImageHistory\",37396:\"SubjectArea\",37397:\"ExposureIndex\",37398:\"TIFF-EPStandardID\",37399:\"SensingMethod\",37434:\"CIP3DataFile\",37435:\"CIP3Sheet\",37436:\"CIP3Side\",37439:\"StoNits\",37500:\"MakerNote\",37510:\"UserComment\",37520:\"SubSecTime\",37521:\"SubSecTimeOriginal\",37522:\"SubSecTimeDigitized\",37679:\"MSDocumentText\",37680:\"MSPropertySetStorage\",37681:\"MSDocumentTextPosition\",37724:\"ImageSourceData\",40091:\"XPTitle\",40092:\"XPComment\",40093:\"XPAuthor\",40094:\"XPKeywords\",40095:\"XPSubject\",40960:\"FlashpixVersion\",40961:\"ColorSpace\",40962:\"ExifImageWidth\",40963:\"ExifImageHeight\",40964:\"RelatedSoundFile\",40965:\"InteropOffset\",41483:\"FlashEnergy\",41484:\"SpatialFrequencyResponse\",41485:\"Noise\",41486:\"FocalPlaneXResolution\",41487:\"FocalPlaneYResolution\",41488:\"FocalPlaneResolutionUnit\",41489:\"ImageNumber\",41490:\"SecurityClassification\",41491:\"ImageHistory\",41492:\"SubjectLocation\",41493:\"ExposureIndex\",41494:\"TIFF-EPStandardID\",41495:\"SensingMethod\",41728:\"FileSource\",41729:\"SceneType\",41730:\"CFAPattern\",41985:\"CustomRendered\",41986:\"ExposureMode\",41987:\"WhiteBalance\",41988:\"DigitalZoomRatio\",41989:\"FocalLengthIn35mmFormat\",41990:\"SceneCaptureType\",41991:\"GainControl\",41992:\"Contrast\",41993:\"Saturation\",41994:\"Sharpness\",41995:\"DeviceSettingDescription\",41996:\"SubjectDistanceRange\",42016:\"ImageUniqueID\",42032:\"OwnerName\",42033:\"SerialNumber\",42034:\"LensInfo\",42035:\"LensMake\",42036:\"LensModel\",42037:\"LensSerialNumber\",42112:\"GDALMetadata\",42113:\"GDALNoData\",42240:\"Gamma\",44992:\"ExpandSoftware\",44993:\"ExpandLens\",44994:\"ExpandFilm\",44995:\"ExpandFilterLens\",44996:\"ExpandScanner\",44997:\"ExpandFlashLamp\",48129:\"PixelFormat\",48130:\"Transformation\",48131:\"Uncompressed\",48132:\"ImageType\",48256:\"ImageWidth\",48257:\"ImageHeight\",48258:\"WidthResolution\",48259:\"HeightResolution\",48320:\"ImageOffset\",48321:\"ImageByteCount\",48322:\"AlphaOffset\",48323:\"AlphaByteCount\",48324:\"ImageDataDiscard\",48325:\"AlphaDataDiscard\",50215:\"OceScanjobDesc\",50216:\"OceApplicationSelector\",50217:\"OceIDNumber\",50218:\"OceImageLogic\",50255:\"Annotations\",50341:\"PrintIM\",50560:\"USPTOOriginalContentType\",50706:\"DNGVersion\",50707:\"DNGBackwardVersion\",50708:\"UniqueCameraModel\",50709:\"LocalizedCameraModel\",50710:\"CFAPlaneColor\",50711:\"CFALayout\",50712:\"LinearizationTable\",50713:\"BlackLevelRepeatDim\",50714:\"BlackLevel\",50715:\"BlackLevelDeltaH\",50716:\"BlackLevelDeltaV\",50717:\"WhiteLevel\",50718:\"DefaultScale\",50719:\"DefaultCropOrigin\",50720:\"DefaultCropSize\",50721:\"ColorMatrix1\",50722:\"ColorMatrix2\",50723:\"CameraCalibration1\",50724:\"CameraCalibration2\",50725:\"ReductionMatrix1\",50726:\"ReductionMatrix2\",50727:\"AnalogBalance\",50728:\"AsShotNeutral\",50729:\"AsShotWhiteXY\",50730:\"BaselineExposure\",50731:\"BaselineNoise\",50732:\"BaselineSharpness\",50733:\"BayerGreenSplit\",50734:\"LinearResponseLimit\",50735:\"CameraSerialNumber\",50736:\"DNGLensInfo\",50737:\"ChromaBlurRadius\",50738:\"AntiAliasStrength\",50739:\"ShadowScale\",50740:\"DNGPrivateData\",50741:\"MakerNoteSafety\",50752:\"RawImageSegmentation\",50778:\"CalibrationIlluminant1\",50779:\"CalibrationIlluminant2\",50780:\"BestQualityScale\",50781:\"RawDataUniqueID\",50784:\"AliasLayerMetadata\",50827:\"OriginalRawFileName\",50828:\"OriginalRawFileData\",50829:\"ActiveArea\",50830:\"MaskedAreas\",50831:\"AsShotICCProfile\",50832:\"AsShotPreProfileMatrix\",50833:\"CurrentICCProfile\",50834:\"CurrentPreProfileMatrix\",50879:\"ColorimetricReference\",50898:\"PanasonicTitle\",50899:\"PanasonicTitle2\",50931:\"CameraCalibrationSig\",50932:\"ProfileCalibrationSig\",50933:\"ProfileIFD\",50934:\"AsShotProfileName\",50935:\"NoiseReductionApplied\",50936:\"ProfileName\",50937:\"ProfileHueSatMapDims\",50938:\"ProfileHueSatMapData1\",50939:\"ProfileHueSatMapData2\",50940:\"ProfileToneCurve\",50941:\"ProfileEmbedPolicy\",50942:\"ProfileCopyright\",50964:\"ForwardMatrix1\",50965:\"ForwardMatrix2\",50966:\"PreviewApplicationName\",50967:\"PreviewApplicationVersion\",50968:\"PreviewSettingsName\",50969:\"PreviewSettingsDigest\",50970:\"PreviewColorSpace\",50971:\"PreviewDateTime\",50972:\"RawImageDigest\",50973:\"OriginalRawFileDigest\",50974:\"SubTileBlockSize\",50975:\"RowInterleaveFactor\",50981:\"ProfileLookTableDims\",50982:\"ProfileLookTableData\",51008:\"OpcodeList1\",51009:\"OpcodeList2\",51022:\"OpcodeList3\",51041:\"NoiseProfile\",51043:\"TimeCodes\",51044:\"FrameRate\",51058:\"TStop\",51081:\"ReelName\",51089:\"OriginalDefaultFinalSize\",51090:\"OriginalBestQualitySize\",51091:\"OriginalDefaultCropSize\",51105:\"CameraLabel\",51107:\"ProfileHueSatMapEncoding\",51108:\"ProfileLookTableEncoding\",51109:\"BaselineExposureOffset\",51110:\"DefaultBlackRender\",51111:\"NewRawImageDigest\",51112:\"RawToPreviewGain\",51125:\"DefaultUserCrop\",59932:\"Padding\",59933:\"OffsetSchema\",65e3:\"OwnerName\",65001:\"SerialNumber\",65002:\"Lens\",65024:\"KDC_IFD\",65100:\"RawFile\",65101:\"Converter\",65102:\"WhiteBalance\",65105:\"Exposure\",65106:\"Shadows\",65107:\"Brightness\",65108:\"Contrast\",65109:\"Saturation\",65110:\"Sharpness\",65111:\"Smoothness\",65112:\"MoireFilter\"},gps:{0:\"GPSVersionID\",1:\"GPSLatitudeRef\",2:\"GPSLatitude\",3:\"GPSLongitudeRef\",4:\"GPSLongitude\",5:\"GPSAltitudeRef\",6:\"GPSAltitude\",7:\"GPSTimeStamp\",8:\"GPSSatellites\",9:\"GPSStatus\",10:\"GPSMeasureMode\",11:\"GPSDOP\",12:\"GPSSpeedRef\",13:\"GPSSpeed\",14:\"GPSTrackRef\",15:\"GPSTrack\",16:\"GPSImgDirectionRef\",17:\"GPSImgDirection\",18:\"GPSMapDatum\",19:\"GPSDestLatitudeRef\",20:\"GPSDestLatitude\",21:\"GPSDestLongitudeRef\",22:\"GPSDestLongitude\",23:\"GPSDestBearingRef\",24:\"GPSDestBearing\",25:\"GPSDestDistanceRef\",26:\"GPSDestDistance\",27:\"GPSProcessingMethod\",28:\"GPSAreaInformation\",29:\"GPSDateStamp\",30:\"GPSDifferential\",31:\"GPSHPositioningError\"}}},function(t,e){function r(t,e,r,n,i,o){this.global=i,e=e||0,r=r||t.byteLength-e,this.arrayBuffer=t.slice(e,e+r),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(n),this.offset=0,this.parentOffset=(o||0)+e}r.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new r(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new r(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=r},function(t,e){function r(t,e,r,n){this.buffer=t,this.offset=e||0,r=\"number\"==typeof r?r:t.length,this.endPosition=this.offset+r,this.setBigEndian(n)}r.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString(\"utf8\",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new r(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.endPosition-(this.offset+t),new r(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=r},function(t,e,r){(function(e){function r(t){Math.round;var r,n,i,o,a,s=Math.floor,u=new Array(64),c=new Array(64),l=new Array(64),f=new Array(64),h=new Array(65535),p=new Array(65535),d=new Array(64),m=new Array(64),y=[],g=0,b=7,v=new Array(64),w=new Array(64),_=new Array(64),x=new Array(256),k=new Array(2048),E=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],S=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],I=[0,1,2,3,4,5,6,7,8,9,10,11],P=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],C=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function L(t,e){for(var r=0,n=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=o,n++,r++;r*=2}return i}function M(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(g|=1<<b),r--,--b<0&&(255==g?(F(255),F(0)):F(g),b=7,g=0)}function F(t){y.push(t)}function B(t){F(t>>8&255),F(255&t)}function j(t,e,r,n,i){for(var o,a=i[0],s=i[240],u=function(t,e){var r,n,i,o,a,s,u,c,l,f,h=0;for(l=0;l<8;++l){r=t[h],n=t[h+1],i=t[h+2],o=t[h+3],a=t[h+4],s=t[h+5],u=t[h+6];var p=r+(c=t[h+7]),m=r-c,y=n+u,g=n-u,b=i+s,v=i-s,w=o+a,_=o-a,x=p+w,k=p-w,E=y+b,S=y-b;t[h]=x+E,t[h+4]=x-E;var T=.707106781*(S+k);t[h+2]=k+T,t[h+6]=k-T;var A=.382683433*((x=_+v)-(S=g+m)),D=.5411961*x+A,O=1.306562965*S+A,I=.707106781*(E=v+g),P=m+I,C=m-I;t[h+5]=C+D,t[h+3]=C-D,t[h+1]=P+O,t[h+7]=P-O,h+=8}for(h=0,l=0;l<8;++l){r=t[h],n=t[h+8],i=t[h+16],o=t[h+24],a=t[h+32],s=t[h+40],u=t[h+48];var L=r+(c=t[h+56]),M=r-c,F=n+u,B=n-u,j=i+s,N=i-s,R=o+a,z=o-a,U=L+R,G=L-R,H=F+j,q=F-j;t[h]=U+H,t[h+32]=U-H;var V=.707106781*(q+G);t[h+16]=G+V,t[h+48]=G-V;var W=.382683433*((U=z+N)-(q=B+M)),Z=.5411961*U+W,Y=1.306562965*q+W,X=.707106781*(H=N+B),K=M+X,J=M-X;t[h+40]=J+Z,t[h+24]=J-Z,t[h+8]=K+Y,t[h+56]=K-Y,h++}for(l=0;l<64;++l)f=t[l]*e[l],d[l]=f>0?f+.5|0:f-.5|0;return d}(t,e),c=0;c<64;++c)m[E[c]]=u[c];var l=m[0]-r;r=m[0],0==l?M(n[0]):(M(n[p[o=32767+l]]),M(h[o]));for(var f=63;f>0&&0==m[f];f--);if(0==f)return M(a),r;for(var y,g=1;g<=f;){for(var b=g;0==m[g]&&g<=f;++g);var v=g-b;if(v>=16){y=v>>4;for(var w=1;w<=y;++w)M(s);v&=15}o=32767+m[g],M(i[(v<<4)+p[o]]),M(h[o]),g++}return 63!=f&&M(a),r}function N(t){if(t<=0&&(t=1),t>100&&(t=100),a!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=s((e[r]*t+50)/100);n<1?n=1:n>255&&(n=255),u[E[r]]=n}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var a=s((i[o]*t+50)/100);a<1?a=1:a>255&&(a=255),c[E[o]]=a}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,d=0;d<8;d++)for(var m=0;m<8;m++)l[p]=1/(u[E[p]]*h[d]*h[m]*8),f[p]=1/(c[E[p]]*h[d]*h[m]*8),p++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t}}this.encode=function(t,a){var s;(new Date).getTime();a&&N(a),y=new Array,g=0,b=7,B(65496),B(65504),B(16),F(74),F(70),F(73),F(70),F(0),F(1),F(1),F(0),B(1),B(1),F(0),F(0),void 0!==(s=t.comments)&&s.constructor===Array&&s.forEach((function(t){if(\"string\"==typeof t){B(65534);var e,r=t.length;for(B(r+2),e=0;e<r;e++)F(t.charCodeAt(e))}})),function(t){if(t){B(65505),69===t[0]&&120===t[1]&&105===t[2]&&102===t[3]?B(t.length+2):(B(t.length+5+2),F(69),F(120),F(105),F(102),F(0));for(var e=0;e<t.length;e++)F(t[e])}}(t.exifBuffer),function(){B(65499),B(132),F(0);for(var t=0;t<64;t++)F(u[t]);F(1);for(var e=0;e<64;e++)F(c[e])}(),function(t,e){B(65472),B(17),F(8),B(e),B(t),F(3),F(1),F(17),F(0),F(2),F(17),F(1),F(3),F(17),F(1)}(t.width,t.height),function(){B(65476),B(418),F(0);for(var t=0;t<16;t++)F(S[t+1]);for(var e=0;e<=11;e++)F(T[e]);F(16);for(var r=0;r<16;r++)F(A[r+1]);for(var n=0;n<=161;n++)F(D[n]);F(1);for(var i=0;i<16;i++)F(O[i+1]);for(var o=0;o<=11;o++)F(I[o]);F(17);for(var a=0;a<16;a++)F(P[a+1]);for(var s=0;s<=161;s++)F(C[s])}(),B(65498),B(12),F(3),F(1),F(0),F(2),F(17),F(3),F(17),F(0),F(63),F(0);var h=0,p=0,d=0;g=0,b=7,this.encode.displayName=\"_encode_\";for(var m,x,E,L,R,z,U,G,H,q=t.data,V=t.width,W=t.height,Z=4*V,Y=0;Y<W;){for(m=0;m<Z;){for(z=R=Z*Y+m,U=-1,G=0,H=0;H<64;H++)z=R+(G=H>>3)*Z+(U=4*(7&H)),Y+G>=W&&(z-=Z*(Y+1+G-W)),m+U>=Z&&(z-=m+U-Z+4),x=q[z++],E=q[z++],L=q[z++],v[H]=(k[x]+k[E+256|0]+k[L+512|0]>>16)-128,w[H]=(k[x+768|0]+k[E+1024|0]+k[L+1280|0]>>16)-128,_[H]=(k[x+1280|0]+k[E+1536|0]+k[L+1792|0]>>16)-128;h=j(v,l,h,r,i),p=j(w,f,p,n,o),d=j(_,f,d,n,o),m+=32}Y+=8}if(b>=0){var X=[];X[1]=b+1,X[0]=(1<<b+1)-1,M(X)}return B(65497),e.from(y)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),r=L(S,T),n=L(O,I),i=L(A,D),o=L(P,C),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)p[32767+n]=r,h[32767+n]=[],h[32767+n][1]=r,h[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)p[32767+i]=r,h[32767+i]=[],h[32767+i][1]=r,h[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)k[t]=19595*t,k[t+256|0]=38470*t,k[t+512|0]=7471*t+32768,k[t+768|0]=-11059*t,k[t+1024|0]=-21709*t,k[t+1280|0]=32768*t+8421375,k[t+1536|0]=-27439*t,k[t+1792|0]=-5329*t}(),N(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new r(e).encode(t,e),width:t.width,height:t.height}}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,r){var n;return n=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}var a=function(){\"use strict\";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,r=799,n=3406,i=2276,a=1567,s=3784,u=5793,c=2896;function l(){}function f(t,e){for(var r,n,i=0,o=[],a=16;a>0&&!t[a-1];)a--;o.push({children:[],index:0});var s,u=o[0];for(r=0;r<a;r++){for(n=0;n<t[r];n++){for((u=o.pop()).children[u.index]=e[i];u.index>0;){if(0===o.length)throw new Error(\"Could not recreate Huffman Table\");u=o.pop()}for(u.index++,o.push(u);o.length<=r;)o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}r+1<a&&(o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return o[0].children}function h(e,r,n,i,a,s,u,c,l,f){n.precision,n.samplesPerLine,n.scanLines;var h=n.mcusPerLine,p=n.progressive,d=(n.maxH,n.maxV,r),m=0,y=0;function g(){if(y>0)return y--,m>>y&1;if(255==(m=e[r++])){var t=e[r++];if(t)throw new Error(\"unexpected marker: \"+(m<<8|t).toString(16))}return y=7,m>>>7}function b(t){for(var e,r=t;null!==(e=g());){if(\"number\"==typeof(r=r[e]))return r;if(\"object\"!==o(r))throw new Error(\"invalid huffman sequence\")}return null}function v(t){for(var e=0;t>0;){var r=g();if(null===r)return;e=e<<1|r,t--}return e}function w(t){var e=v(t);return e>=1<<t-1?e:e+(-1<<t)+1}var _=0;var x,k=0;function E(t,e,r,n,i){var o=r%h,a=(r/h|0)*t.v+n,s=o*t.h+i;void 0===t.blocks[a]&&f.tolerantDecoding||e(t,t.blocks[a][s])}function S(t,e,r){var n=r/t.blocksPerLine|0,i=r%t.blocksPerLine;void 0===t.blocks[n]&&f.tolerantDecoding||e(t,t.blocks[n][i])}var T,A,D,O,I,P,C=i.length;P=p?0===s?0===c?function(t,e){var r=b(t.huffmanTableDC),n=0===r?0:w(r)<<l;e[0]=t.pred+=n}:function(t,e){e[0]|=g()<<l}:0===c?function(e,r){if(_>0)_--;else for(var n=s,i=u;n<=i;){var o=b(e.huffmanTableAC),a=15&o,c=o>>4;if(0!==a)r[t[n+=c]]=w(a)*(1<<l),n++;else{if(c<15){_=v(c)+(1<<c)-1;break}n+=16}}}:function(e,r){for(var n=s,i=u,o=0;n<=i;){var a=t[n],c=r[a]<0?-1:1;switch(k){case 0:var f=b(e.huffmanTableAC),h=15&f;if(o=f>>4,0===h)o<15?(_=v(o)+(1<<o),k=4):(o=16,k=1);else{if(1!==h)throw new Error(\"invalid ACn encoding\");x=w(h),k=o?2:3}continue;case 1:case 2:r[a]?r[a]+=(g()<<l)*c:0==--o&&(k=2==k?3:0);break;case 3:r[a]?r[a]+=(g()<<l)*c:(r[a]=x<<l,k=0);break;case 4:r[a]&&(r[a]+=(g()<<l)*c)}n++}4===k&&0==--_&&(k=0)}:function(e,r){var n=b(e.huffmanTableDC),i=0===n?0:w(n);r[0]=e.pred+=i;for(var o=1;o<64;){var a=b(e.huffmanTableAC),s=15&a,u=a>>4;if(0!==s)r[t[o+=u]]=w(s),o++;else{if(u<15)break;o+=16}}};var L,M,F,B,j=0;for(M=1==C?i[0].blocksPerLine*i[0].blocksPerColumn:h*n.mcusPerColumn,a||(a=M);j<M;){for(A=0;A<C;A++)i[A].pred=0;if(_=0,1==C)for(T=i[0],I=0;I<a;I++)S(T,P,j),j++;else for(I=0;I<a;I++){for(A=0;A<C;A++)for(F=(T=i[A]).h,B=T.v,D=0;D<B;D++)for(O=0;O<F;O++)E(T,P,j,D,O);if(++j===M)break}if(j===M)do{if(255===e[r]&&0!==e[r+1])break;r+=1}while(r<e.length-2);if(y=0,(L=e[r]<<8|e[r+1])<65280)throw new Error(\"marker was not found\");if(!(L>=65488&&L<=65495))break;r+=2}return r-d}function p(t,o){var l,f,h=[],p=o.blocksPerLine,d=o.blocksPerColumn,m=p<<3,y=new Int32Array(64),b=new Uint8Array(64);function v(t,l,f){var h,p,d,m,y,g,b,v,w,_,x=o.quantizationTable,k=f;for(_=0;_<64;_++)k[_]=t[_]*x[_];for(_=0;_<8;++_){var E=8*_;0!=k[1+E]||0!=k[2+E]||0!=k[3+E]||0!=k[4+E]||0!=k[5+E]||0!=k[6+E]||0!=k[7+E]?(h=u*k[0+E]+128>>8,p=u*k[4+E]+128>>8,d=k[2+E],m=k[6+E],y=c*(k[1+E]-k[7+E])+128>>8,v=c*(k[1+E]+k[7+E])+128>>8,g=k[3+E]<<4,b=k[5+E]<<4,w=h-p+1>>1,h=h+p+1>>1,p=w,w=d*s+m*a+128>>8,d=d*a-m*s+128>>8,m=w,w=y-b+1>>1,y=y+b+1>>1,b=w,w=v+g+1>>1,g=v-g+1>>1,v=w,w=h-m+1>>1,h=h+m+1>>1,m=w,w=p-d+1>>1,p=p+d+1>>1,d=w,w=y*i+v*n+2048>>12,y=y*n-v*i+2048>>12,v=w,w=g*r+b*e+2048>>12,g=g*e-b*r+2048>>12,b=w,k[0+E]=h+v,k[7+E]=h-v,k[1+E]=p+b,k[6+E]=p-b,k[2+E]=d+g,k[5+E]=d-g,k[3+E]=m+y,k[4+E]=m-y):(w=u*k[0+E]+512>>10,k[0+E]=w,k[1+E]=w,k[2+E]=w,k[3+E]=w,k[4+E]=w,k[5+E]=w,k[6+E]=w,k[7+E]=w)}for(_=0;_<8;++_){var S=_;0!=k[8+S]||0!=k[16+S]||0!=k[24+S]||0!=k[32+S]||0!=k[40+S]||0!=k[48+S]||0!=k[56+S]?(h=u*k[0+S]+2048>>12,p=u*k[32+S]+2048>>12,d=k[16+S],m=k[48+S],y=c*(k[8+S]-k[56+S])+2048>>12,v=c*(k[8+S]+k[56+S])+2048>>12,g=k[24+S],b=k[40+S],w=h-p+1>>1,h=h+p+1>>1,p=w,w=d*s+m*a+2048>>12,d=d*a-m*s+2048>>12,m=w,w=y-b+1>>1,y=y+b+1>>1,b=w,w=v+g+1>>1,g=v-g+1>>1,v=w,w=h-m+1>>1,h=h+m+1>>1,m=w,w=p-d+1>>1,p=p+d+1>>1,d=w,w=y*i+v*n+2048>>12,y=y*n-v*i+2048>>12,v=w,w=g*r+b*e+2048>>12,g=g*e-b*r+2048>>12,b=w,k[0+S]=h+v,k[56+S]=h-v,k[8+S]=p+b,k[48+S]=p-b,k[16+S]=d+g,k[40+S]=d-g,k[24+S]=m+y,k[32+S]=m-y):(w=u*f[_+0]+8192>>14,k[0+S]=w,k[8+S]=w,k[16+S]=w,k[24+S]=w,k[32+S]=w,k[40+S]=w,k[48+S]=w,k[56+S]=w)}for(_=0;_<64;++_){var T=128+(k[_]+8>>4);l[_]=T<0?0:T>255?255:T}}g(m*d*8);for(var w=0;w<d;w++){var _=w<<3;for(l=0;l<8;l++)h.push(new Uint8Array(m));for(var x=0;x<p;x++){v(o.blocks[w][x],b,y);var k=0,E=x<<3;for(f=0;f<8;f++){var S=h[_+f];for(l=0;l<8;l++)S[E+l]=b[k++]}}}return h}function d(t){return t<0?0:t>255?255:t}l.prototype={load:function(t){var e=new XMLHttpRequest;e.open(\"GET\",t,!0),e.responseType=\"arraybuffer\",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var r=1e3*this.opts.maxResolutionInMP*1e3,n=0;e.length;function i(){var t=e[n]<<8|e[n+1];return n+=2,t}function o(){var t=i(),r=e.subarray(n,n+t-2);return n+=r.length,r}function a(t){var e,r,n=1,i=1;for(r in t.components)t.components.hasOwnProperty(r)&&(n<(e=t.components[r]).h&&(n=e.h),i<e.v&&(i=e.v));var o=Math.ceil(t.samplesPerLine/8/n),a=Math.ceil(t.scanLines/8/i);for(r in t.components)if(t.components.hasOwnProperty(r)){e=t.components[r];var s=Math.ceil(Math.ceil(t.samplesPerLine/8)*e.h/n),u=Math.ceil(Math.ceil(t.scanLines/8)*e.v/i),c=o*e.h,l=a*e.v,f=[];g(256*(l*c));for(var h=0;h<l;h++){for(var p=[],d=0;d<c;d++)p.push(new Int32Array(64));f.push(p)}e.blocksPerLine=s,e.blocksPerColumn=u,e.blocks=f}t.maxH=n,t.maxV=i,t.mcusPerLine=o,t.mcusPerColumn=a}var s,u,c=null,l=null,d=[],m=[],y=[],b=[],v=i(),w=-1;if(this.comments=[],65496!=v)throw new Error(\"SOI not found\");for(v=i();65497!=v;){switch(v){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var _=o();if(65534===v){var x=String.fromCharCode.apply(null,_);this.comments.push(x)}65504===v&&74===_[0]&&70===_[1]&&73===_[2]&&70===_[3]&&0===_[4]&&(c={version:{major:_[5],minor:_[6]},densityUnits:_[7],xDensity:_[8]<<8|_[9],yDensity:_[10]<<8|_[11],thumbWidth:_[12],thumbHeight:_[13],thumbData:_.subarray(14,14+3*_[12]*_[13])}),65505===v&&69===_[0]&&120===_[1]&&105===_[2]&&102===_[3]&&0===_[4]&&(this.exifBuffer=_.subarray(5,_.length)),65518===v&&65===_[0]&&100===_[1]&&111===_[2]&&98===_[3]&&101===_[4]&&0===_[5]&&(l={version:_[6],flags0:_[7]<<8|_[8],flags1:_[9]<<8|_[10],transformCode:_[11]});break;case 65499:for(var k=i()+n-2;n<k;){var E=e[n++];g(256);var S=new Int32Array(64);if(E>>4){if(E>>4!=1)throw new Error(\"DQT: invalid table spec\");for(Y=0;Y<64;Y++){S[t[Y]]=i()}}else for(Y=0;Y<64;Y++){S[t[Y]]=e[n++]}d[15&E]=S}break;case 65472:case 65473:case 65474:i(),(s={}).extended=65473===v,s.progressive=65474===v,s.precision=e[n++],s.scanLines=i(),s.samplesPerLine=i(),s.components={},s.componentsOrder=[];var T=s.scanLines*s.samplesPerLine;if(T>r){var A=Math.ceil((T-r)/1e6);throw new Error(\"maxResolutionInMP limit exceeded by \".concat(A,\"MP\"))}var D,O=e[n++];for(W=0;W<O;W++){D=e[n];var I=e[n+1]>>4,P=15&e[n+1],C=e[n+2];if(I<=0||P<=0)throw new Error(\"Invalid sampling factor, expected values above 0\");s.componentsOrder.push(D),s.components[D]={h:I,v:P,quantizationIdx:C},n+=3}a(s),m.push(s);break;case 65476:var L=i();for(W=2;W<L;){var M=e[n++],F=new Uint8Array(16),B=0;for(Y=0;Y<16;Y++,n++)B+=F[Y]=e[n];g(16+B);var j=new Uint8Array(B);for(Y=0;Y<B;Y++,n++)j[Y]=e[n];W+=17+B,(M>>4?y:b)[15&M]=f(F,j)}break;case 65501:i(),u=i();break;case 65500:i(),i();break;case 65498:i();var N=e[n++],R=[];for(W=0;W<N;W++){X=s.components[e[n++]];var z=e[n++];X.huffmanTableDC=b[z>>4],X.huffmanTableAC=y[15&z],R.push(X)}var U=e[n++],G=e[n++],H=e[n++],q=h(e,n,s,R,u,U,G,H>>4,15&H,this.opts);n+=q;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}if(224===v||225==v){if(-1!==w)throw new Error(\"first unknown JPEG marker at offset \".concat(w.toString(16),\", second unknown JPEG marker \").concat(v.toString(16),\" at offset \").concat((n-1).toString(16)));w=n-1;var V=i();if(255===e[n+V-2]){n+=V-2;break}}throw new Error(\"unknown JPEG marker \"+v.toString(16))}v=i()}if(1!=m.length)throw new Error(\"only single frame JPEGs supported\");for(var W=0;W<m.length;W++){var Z=m[W].components;for(var Y in Z)Z[Y].quantizationTable=d[Z[Y].quantizationIdx],delete Z[Y].quantizationIdx}this.width=s.samplesPerLine,this.height=s.scanLines,this.jfif=c,this.adobe=l,this.components=[];for(W=0;W<s.componentsOrder.length;W++){var X=s.components[s.componentsOrder[W]];this.components.push({lines:p(0,X),scaleX:X.h/s.maxH,scaleY:X.v/s.maxV})}},getData:function(t,e){var r,n,i,o,a,s,u,c,l,f,h,p,m,y,b,v,w,_,x,k,E,S=this.width/t,T=this.height/e,A=0,D=t*e*this.components.length;g(D);var O=new Uint8Array(D);switch(this.components.length){case 1:for(r=this.components[0],f=0;f<e;f++)for(a=r.lines[0|f*r.scaleY*T],l=0;l<t;l++)h=a[0|l*r.scaleX*S],O[A++]=h;break;case 2:for(r=this.components[0],n=this.components[1],f=0;f<e;f++)for(a=r.lines[0|f*r.scaleY*T],s=n.lines[0|f*n.scaleY*T],l=0;l<t;l++)h=a[0|l*r.scaleX*S],O[A++]=h,h=s[0|l*n.scaleX*S],O[A++]=h;break;case 3:for(E=!0,this.adobe&&this.adobe.transformCode?E=!0:void 0!==this.opts.colorTransform&&(E=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],f=0;f<e;f++)for(a=r.lines[0|f*r.scaleY*T],s=n.lines[0|f*n.scaleY*T],u=i.lines[0|f*i.scaleY*T],l=0;l<t;l++)E?(h=a[0|l*r.scaleX*S],p=s[0|l*n.scaleX*S],_=d(h+1.402*((m=u[0|l*i.scaleX*S])-128)),x=d(h-.3441363*(p-128)-.71413636*(m-128)),k=d(h+1.772*(p-128))):(_=a[0|l*r.scaleX*S],x=s[0|l*n.scaleX*S],k=u[0|l*i.scaleX*S]),O[A++]=_,O[A++]=x,O[A++]=k;break;case 4:if(!this.adobe)throw new Error(\"Unsupported color mode (4 components)\");for(E=!1,this.adobe&&this.adobe.transformCode?E=!0:void 0!==this.opts.colorTransform&&(E=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],o=this.components[3],f=0;f<e;f++)for(a=r.lines[0|f*r.scaleY*T],s=n.lines[0|f*n.scaleY*T],u=i.lines[0|f*i.scaleY*T],c=o.lines[0|f*o.scaleY*T],l=0;l<t;l++)E?(h=a[0|l*r.scaleX*S],p=s[0|l*n.scaleX*S],m=u[0|l*i.scaleX*S],y=c[0|l*o.scaleX*S],b=255-d(h+1.402*(m-128)),v=255-d(h-.3441363*(p-128)-.71413636*(m-128)),w=255-d(h+1.772*(p-128))):(b=a[0|l*r.scaleX*S],v=s[0|l*n.scaleX*S],w=u[0|l*i.scaleX*S],y=c[0|l*o.scaleX*S]),O[A++]=255-b,O[A++]=255-v,O[A++]=255-w,O[A++]=255-y;break;default:throw new Error(\"Unsupported color mode\")}return O},copyToImageData:function(t,e){var r,n,i,o,a,s,u,c,l,f=t.width,h=t.height,p=t.data,m=this.getData(f,h),y=0,g=0;switch(this.components.length){case 1:for(n=0;n<h;n++)for(r=0;r<f;r++)i=m[y++],p[g++]=i,p[g++]=i,p[g++]=i,e&&(p[g++]=255);break;case 3:for(n=0;n<h;n++)for(r=0;r<f;r++)u=m[y++],c=m[y++],l=m[y++],p[g++]=u,p[g++]=c,p[g++]=l,e&&(p[g++]=255);break;case 4:for(n=0;n<h;n++)for(r=0;r<f;r++)a=m[y++],s=m[y++],i=m[y++],u=255-d(a*(1-(o=m[y++])/255)+o),c=255-d(s*(1-o/255)+o),l=255-d(i*(1-o/255)+o),p[g++]=u,p[g++]=c,p[g++]=l,e&&(p[g++]=255);break;default:throw new Error(\"Unsupported color mode\")}}};var m=0,y=0;function g(){var t=m+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0);if(t>y){var e=Math.ceil((t-y)/1024/1024);throw new Error(\"maxMemoryUsageInMB limit exceeded by at least \".concat(e,\"MB\"))}m=t}return l.resetMaxMemoryUsage=function(t){m=0,y=t},l.getBytesAllocated=function(){return m},l.requestMemoryAllocation=g,l}();t.exports=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n(n({},{colorTransform:void 0,useTArray:!1,formatAsRGBA:!0,tolerantDecoding:!0,maxResolutionInMP:100,maxMemoryUsageInMB:512}),r),o=new Uint8Array(t),s=new a;s.opts=i,a.resetMaxMemoryUsage(1024*i.maxMemoryUsageInMB*1024),s.parse(o);var u=i.formatAsRGBA?4:3,c=s.width*s.height*u;try{a.requestMemoryAllocation(c);var l={width:s.width,height:s.height,exifBuffer:s.exifBuffer,data:i.useTArray?new Uint8Array(c):e.alloc(c)};s.comments.length>0&&(l.comments=s.comments)}catch(t){if(t instanceof RangeError)throw new Error(\"Could not allocate enough memory for the image. Required: \"+c);if(t instanceof ReferenceError&&\"Buffer is not defined\"===t.message)throw new Error(\"Buffer is not globally defined in this environment. Consider setting useTArray to true\");throw t}return s.copyToImageData(l,i.formatAsRGBA),l}}).call(this,r(2).Buffer)},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){return t&&\"object\"===r(t)&&\"function\"==typeof t.copy&&\"function\"==typeof t.fill&&\"function\"==typeof t.readUInt8}},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==r.call(t)}},function(t,e){},function(t,e,r){\"use strict\";var n=r(51).Buffer,i=r(149);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return\"\";for(var e=this.head,r=\"\"+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e,r,i,o=n.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,r=o,i=s,e.copy(r,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+\" \"+t})},function(t,e){},function(t,e,r){(function(t,e){!function(t,r){\"use strict\";if(!t.setImmediate){var n,i,o,a,s,u=1,c={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,\"[object process]\"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage(\"\",\"*\"),t.onmessage=r,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},n=function(t){o.port2.postMessage(t)}):f&&\"onreadystatechange\"in f.createElement(\"script\")?(i=f.documentElement,n=function(t){var e=f.createElement(\"script\");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):n=function(t){setTimeout(d,0,t)}:(a=\"setImmediate$\"+Math.random()+\"$\",s=function(e){e.source===t&&\"string\"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener(\"message\",s,!1):t.attachEvent(\"onmessage\",s),n=function(e){t.postMessage(a+e,\"*\")}),h.setImmediate=function(t){\"function\"!=typeof t&&(t=new Function(\"\"+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return c[u]=i,n(u),u++},h.clearImmediate=p}function p(t){delete c[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=c[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(r,n)}}(e)}finally{p(t),l=!1}}}}}(\"undefined\"==typeof self?void 0===t?this:t:self)}).call(this,r(10),r(7))},function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&\"true\"===String(r).toLowerCase()}t.exports=function(t,e){if(r(\"noDeprecation\"))return t;var n=!1;return function(){if(!n){if(r(\"throwDeprecation\"))throw new Error(e);r(\"traceDeprecation\")&&console.trace(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(10))},function(t,e,r){var n=r(2),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,r)},a.alloc=function(t,e,r){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var n=i(t);return void 0!==e?\"string\"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},a.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return n.SlowBuffer(t)}},function(t,e,r){\"use strict\";t.exports=o;var n=r(74),i=Object.create(r(27));function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=r(24),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){t.exports=r(52)},function(t,e,r){t.exports=r(18)},function(t,e,r){t.exports=r(50).Transform},function(t,e,r){t.exports=r(50).PassThrough},function(t,e,r){\"use strict\";var n=r(14),i=r(28),o=r(81),a=r(186),s=r(85),u=r(87),c=r(88),l=t.exports=function(t){o.call(this),this._parser=new s(t,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,\"gamma\"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=t,this.writable=!0,this._parser.start()};n.inherits(l,o),l.prototype._handleError=function(t){this.emit(\"error\",t),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on(\"error\",(function(){}))),this.errord=!0},l.prototype._inflateData=function(t){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i.createInflate(),this._inflate.on(\"error\",this.emit.bind(this,\"error\")),this._filter.on(\"complete\",this._complete.bind(this)),this._inflate.pipe(this._filter);else{var e=(1+(this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3))*this._bitmapInfo.height,r=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:r});var n=e,o=this.emit.bind(this,\"error\");this._inflate.on(\"error\",(function(t){n&&o(t)})),this._filter.on(\"complete\",this._complete.bind(this));var a=this._filter.write.bind(this._filter);this._inflate.on(\"data\",(function(t){n&&(t.length>n&&(t=t.slice(0,n)),n-=t.length,a(t))})),this._inflate.on(\"end\",this._filter.end.bind(this._filter))}this._inflate.write(t)},l.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new a(this._bitmapInfo)},l.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},l.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},l.prototype._simpleTransparency=function(){this._metaData.alpha=!0},l.prototype._headersFinished=function(){this.emit(\"metadata\",this._metaData)},l.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit(\"error\",\"No Inflate block\"))},l.prototype._complete=function(t){if(!this.errord){var e;try{var r=u.dataToBitMap(t,this._bitmapInfo);e=c(r,this._bitmapInfo,this._options.skipRescale),r=null}catch(t){return void this._handleError(t)}this.emit(\"parsed\",e)}}},function(t,e,r){\"use strict\";(function(t,n){var i=r(53),o=r(178),a=r(179),s=r(182),u=r(185);for(var c in u)e[c]=u[c];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;function l(t){if(\"number\"!=typeof t||t<e.DEFLATE||t>e.UNZIP)throw new TypeError(\"Bad argument\");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}l.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,\"close before init\"),i(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||s.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},l.prototype.write=function(t,e,r,n,i,o,a){return this._write(!0,t,e,r,n,i,o,a)},l.prototype.writeSync=function(t,e,r,n,i,o,a){return this._write(!1,t,e,r,n,i,o,a)},l.prototype._write=function(r,o,a,s,u,c,l,f){if(i.equal(arguments.length,8),i(this.init_done,\"write before init\"),i(this.mode!==e.NONE,\"already finalized\"),i.equal(!1,this.write_in_progress,\"write already in progress\"),i.equal(!1,this.pending_close,\"close is pending\"),this.write_in_progress=!0,i.equal(!1,void 0===o,\"must provide flush value\"),this.write_in_progress=!0,o!==e.Z_NO_FLUSH&&o!==e.Z_PARTIAL_FLUSH&&o!==e.Z_SYNC_FLUSH&&o!==e.Z_FULL_FLUSH&&o!==e.Z_FINISH&&o!==e.Z_BLOCK)throw new Error(\"Invalid flush value\");if(null==a&&(a=t.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=c,this.strm.next_out=l,this.flush=o,!r)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return n.nextTick((function(){h._process(),h._after()})),this},l.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},l.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error(\"invalid number of gzip magic number bytes read\")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error(\"Unknown mode \"+this.mode)}},l.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error(\"unexpected end of file\"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error(\"Missing dictionary\"):this._error(\"Bad dictionary\"),!1;default:return this._error(\"Zlib error\"),!1}return!0},l.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},l.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},l.prototype.init=function(t,r,n,o,a){i(4===arguments.length||5===arguments.length,\"init(windowBits, level, memLevel, strategy, [dictionary])\"),i(t>=8&&t<=15,\"invalid windowBits\"),i(r>=-1&&r<=9,\"invalid compression level\"),i(n>=1&&n<=9,\"invalid memlevel\"),i(o===e.Z_FILTERED||o===e.Z_HUFFMAN_ONLY||o===e.Z_RLE||o===e.Z_FIXED||o===e.Z_DEFAULT_STRATEGY,\"invalid strategy\"),this._init(r,t,n,o,a),this._setDictionary()},l.prototype.params=function(){throw new Error(\"deflateParams Not supported\")},l.prototype.reset=function(){this._reset(),this._setDictionary()},l.prototype._init=function(t,r,n,i,u){switch(this.level=t,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error(\"Unknown mode \"+this.mode)}this.err!==e.Z_OK&&this._error(\"Init error\"),this.dictionary=u,this.write_in_progress=!1,this.init_done=!0},l.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error(\"Failed to set dictionary\")}},l.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=a.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error(\"Failed to reset stream\")},e.Zlib=l}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";var n=r(161);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t=\"abcdefghijklmnopqrst\",e=t.split(\"\"),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),o=\"\";for(var a in i)o+=a;return t!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,\"xy\")}catch(e){return\"y\"===t[1]}return!1}()?n:Object.assign:n}},function(t,e,r){\"use strict\";var n=r(162),i=r(76)(),o=r(164),a=Object,s=o(\"Array.prototype.push\"),u=o(\"Object.prototype.propertyIsEnumerable\"),c=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError(\"target must be an object\");var r=a(t);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var l=a(arguments[o]),f=n(l),h=i&&(Object.getOwnPropertySymbols||c);if(h)for(var p=h(l),d=0;d<p.length;++d){var m=p[d];u(l,m)&&s(f,m)}for(var y=0;y<f.length;++y){var g=f[y];if(u(l,g)){var b=l[g];r[g]=b}}}return r}},function(t,e,r){\"use strict\";var n=Array.prototype.slice,i=r(75),o=Object.keys,a=o?function(t){return o(t)}:r(163),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=r(75),u=Object.prototype.propertyIsEnumerable,c=!u.call({toString:null},\"toString\"),l=u.call((function(){}),\"prototype\"),f=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],h=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(\"undefined\"==typeof window)return!1;for(var t in window)try{if(!p[\"$\"+t]&&o.call(window,t)&&null!==window[t]&&\"object\"===n(window[t]))try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();i=function(t){var e=null!==t&&\"object\"===n(t),r=\"[object Function]\"===a.call(t),i=s(t),u=e&&\"[object String]\"===a.call(t),p=[];if(!e&&!r&&!i)throw new TypeError(\"Object.keys called on a non-object\");var m=l&&r;if(u&&t.length>0&&!o.call(t,0))for(var y=0;y<t.length;++y)p.push(String(y));if(i&&t.length>0)for(var g=0;g<t.length;++g)p.push(String(g));else for(var b in t)m&&\"prototype\"===b||!o.call(t,b)||p.push(String(b));if(c)for(var v=function(t){if(\"undefined\"==typeof window||!d)return h(t);try{return h(t)}catch(t){return!1}}(t),w=0;w<f.length;++w)v&&\"constructor\"===f[w]||!o.call(t,f[w])||p.push(f[w]);return p}}t.exports=i},function(t,e,r){\"use strict\";var n=r(29),i=r(174),o=i(n(\"String.prototype.indexOf\"));t.exports=function(t,e){var r=n(t,!!e);return\"function\"==typeof r&&o(t,\".prototype.\")>-1?i(r):r}},function(t,e,r){\"use strict\";t.exports=Error},function(t,e,r){\"use strict\";t.exports=EvalError},function(t,e,r){\"use strict\";t.exports=RangeError},function(t,e,r){\"use strict\";t.exports=ReferenceError},function(t,e,r){\"use strict\";t.exports=URIError},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Symbol&&Symbol,o=r(76);t.exports=function(){return\"function\"==typeof i&&(\"function\"==typeof Symbol&&(\"symbol\"===n(i(\"foo\"))&&(\"symbol\"===n(Symbol(\"bar\"))&&o())))}},function(t,e,r){\"use strict\";var n={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!(n instanceof i)}},function(t,e,r){\"use strict\";var n=Object.prototype.toString,i=Math.max,o=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var e=this;if(\"function\"!=typeof e||\"[object Function]\"!==n.apply(e))throw new TypeError(\"Function.prototype.bind called on incompatible \"+e);for(var r,a=function(t,e){for(var r=[],n=e||0,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r}(arguments,1),s=i(0,e.length-a.length),u=[],c=0;c<s;c++)u[c]=\"$\"+c;if(r=Function(\"binder\",\"return function (\"+function(t,e){for(var r=\"\",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(u,\",\")+\"){ return binder.apply(this,arguments); }\")((function(){if(this instanceof r){var n=e.apply(this,o(a,arguments));return Object(n)===n?n:this}return e.apply(t,o(a,arguments))})),e.prototype){var l=function(){};l.prototype=e.prototype,r.prototype=new l,l.prototype=null}return r}},function(t,e,r){\"use strict\";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(54);t.exports=o.call(n,i)},function(t,e,r){\"use strict\";var n=r(54),i=r(29),o=r(175),a=r(40),s=i(\"%Function.prototype.apply%\"),u=i(\"%Function.prototype.call%\"),c=i(\"%Reflect.apply%\",!0)||n.call(u,s),l=r(55),f=i(\"%Math.max%\");t.exports=function(t){if(\"function\"!=typeof t)throw new a(\"a function is required\");var e=c(n,u,arguments);return o(e,1+f(0,t.length-(arguments.length-1)),!0)};var h=function(){return c(n,s,arguments)};l?l(t.exports,\"apply\",{value:h}):t.exports.apply=h},function(t,e,r){\"use strict\";var n=r(29),i=r(176),o=r(177)(),a=r(78),s=r(40),u=n(\"%Math.floor%\");t.exports=function(t,e){if(\"function\"!=typeof t)throw new s(\"`fn` is not a function\");if(\"number\"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new s(\"`length` must be a positive 32-bit integer\");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if(\"length\"in t&&a){var l=a(t,\"length\");l&&!l.configurable&&(n=!1),l&&!l.writable&&(c=!1)}return(n||c||!r)&&(o?i(t,\"length\",e,!0,!0):i(t,\"length\",e)),t}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(55),o=r(77),a=r(40),s=r(78);t.exports=function(t,e,r){if(!t||\"object\"!==n(t)&&\"function\"!=typeof t)throw new a(\"`obj` must be an object or a function`\");if(\"string\"!=typeof e&&\"symbol\"!==n(e))throw new a(\"`property` must be a string or a symbol`\");if(arguments.length>3&&\"boolean\"!=typeof arguments[3]&&null!==arguments[3])throw new a(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&\"boolean\"!=typeof arguments[4]&&null!==arguments[4])throw new a(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&\"boolean\"!=typeof arguments[5]&&null!==arguments[5])throw new a(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&\"boolean\"!=typeof arguments[6])throw new a(\"`loose`, if provided, must be a boolean\");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],h=!!s&&s(t,e);if(i)i(t,e,{configurable:null===l&&h?h.configurable:!l,enumerable:null===u&&h?h.enumerable:!u,value:r,writable:null===c&&h?h.writable:!c});else{if(!f&&(u||c||l))throw new o(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\");t[e]=r}}},function(t,e,r){\"use strict\";var n=r(55),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],\"length\",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,r){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){\"use strict\";var n,i=r(41),o=r(180),a=r(79),s=r(80),u=r(181),c=0,l=4,f=0,h=-2,p=-1,d=4,m=2,y=8,g=9,b=286,v=30,w=19,_=2*b+1,x=15,k=3,E=258,S=E+k+1,T=42,A=103,D=113,O=666,I=1,P=2,C=3,L=4;function M(t,e){return t.msg=u[e],e}function F(t){return(t<<1)-(t>4?9:0)}function B(t){for(var e=t.length;--e>=0;)t[e]=0}function j(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function N(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,j(t.strm)}function R(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-S?t.strstart-(t.w_size-S):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+E,p=c[o+a-1],d=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===d&&c[r+a-1]===p&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=E-(h-o),o=h-E,n>a){if(t.match_start=e,a=n,n>=s)break;p=c[o+a-1],d=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function G(t){var e,r,n,o,u,c,l,f,h,p,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-S)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--r);e=r=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--r);o+=d}if(0===t.strm.avail_in)break;if(c=t.strm,l=t.window,f=t.strstart+t.lookahead,h=o,p=void 0,(p=c.avail_in)>h&&(p=h),r=0===p?0:(c.avail_in-=p,i.arraySet(l,c.input,c.next_in,p,f),1===c.state.wrap?c.adler=a(c.adler,l,p,f):2===c.state.wrap&&(c.adler=s(c.adler,l,p,f)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=k)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+k-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<k)););}while(t.lookahead<S&&0!==t.strm.avail_in)}function H(t,e){for(var r,n;;){if(t.lookahead<S){if(G(t),t.lookahead<S&&e===c)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=k&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-S&&(t.match_length=U(t,r)),t.match_length>=k)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-k),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=k){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(N(t,!1),0===t.strm.avail_out))return I}return t.insert=t.strstart<k-1?t.strstart:k-1,e===l?(N(t,!0),0===t.strm.avail_out?C:L):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?I:P}function q(t,e){for(var r,n,i;;){if(t.lookahead<S){if(G(t),t.lookahead<S&&e===c)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=k&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=k-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-S&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===k&&t.strstart-t.match_start>4096)&&(t.match_length=k-1)),t.prev_length>=k&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-k,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-k),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=k-1,t.strstart++,n&&(N(t,!1),0===t.strm.avail_out))return I}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&N(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return I}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<k-1?t.strstart:k-1,e===l?(N(t,!0),0===t.strm.avail_out?C:L):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?I:P}function V(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*v+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),B(this.dyn_ltree),B(this.dyn_dtree),B(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*b+1),B(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*b+1),B(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Z(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?T:D,t.adler=2===e.wrap?0:1,e.last_flush=c,o._tr_init(e),f):M(t,h)}function Y(t){var e,r=Z(t);return r===f&&((e=t.state).window_size=2*e.w_size,B(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=k-1,e.match_available=0,e.ins_h=0),r}function X(t,e,r,n,o,a){if(!t)return h;var s=1;if(e===p&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>g||r!==y||n<8||n>15||e<0||e>9||a<0||a>d)return M(t,h);8===n&&(n=9);var u=new W;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+k-1)/k),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=r,Y(t)}n=[new V(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(G(t),0===t.lookahead&&e===c)return I;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,N(t,!1),0===t.strm.avail_out))return I;if(t.strstart-t.block_start>=t.w_size-S&&(N(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===l?(N(t,!0),0===t.strm.avail_out?C:L):(t.strstart>t.block_start&&(N(t,!1),t.strm.avail_out),I)})),new V(4,4,8,4,H),new V(4,5,16,8,H),new V(4,6,32,32,H),new V(4,4,16,16,q),new V(8,16,32,32,q),new V(8,16,128,128,q),new V(8,32,128,256,q),new V(32,128,258,1024,q),new V(32,258,258,4096,q)],e.deflateInit=function(t,e){return X(t,e,y,15,8,0)},e.deflateInit2=X,e.deflateReset=Y,e.deflateResetKeep=Z,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,f):h},e.deflate=function(t,e){var r,i,a,u;if(!t||!t.state||e>5||e<0)return t?M(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===O&&e!==l)return M(t,0===t.avail_out?-5:h);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===T)if(2===i.wrap)t.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,3),i.status=D);else{var p=y+(i.w_bits-8<<4)<<8;p|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(p|=32),p+=31-p%31,i.status=D,z(i,p),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=A)}else i.status=A;if(i.status===A&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&j(t),i.pending+2<=i.pending_buf_size&&(R(i,255&t.adler),R(i,t.adler>>8&255),t.adler=0,i.status=D)):i.status=D),0!==i.pending){if(j(t),0===t.avail_out)return i.last_flush=-1,f}else if(0===t.avail_in&&F(e)<=F(r)&&e!==l)return M(t,-5);if(i.status===O&&0!==t.avail_in)return M(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==c&&i.status!==O){var d=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(G(t),0===t.lookahead)){if(e===c)return I;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(N(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===l?(N(t,!0),0===t.strm.avail_out?C:L):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?I:P}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=E){if(G(t),t.lookahead<=E&&e===c)return I;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=k&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+E;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=E-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=k?(r=o._tr_tally(t,1,t.match_length-k),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(N(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===l?(N(t,!0),0===t.strm.avail_out?C:L):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?I:P}(i,e):n[i.level].func(i,e);if(d!==C&&d!==L||(i.status=O),d===I||d===C)return 0===t.avail_out&&(i.last_flush=-1),f;if(d===P&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(B(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),j(t),0===t.avail_out))return i.last_flush=-1,f}return e!==l?f:i.wrap<=0?1:(2===i.wrap?(R(i,255&t.adler),R(i,t.adler>>8&255),R(i,t.adler>>16&255),R(i,t.adler>>24&255),R(i,255&t.total_in),R(i,t.total_in>>8&255),R(i,t.total_in>>16&255),R(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),j(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?f:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==T&&69!==e&&73!==e&&91!==e&&e!==A&&e!==D&&e!==O?M(t,h):(t.state=null,e===D?M(t,-3):f):h},e.deflateSetDictionary=function(t,e){var r,n,o,s,u,c,l,p,d=e.length;if(!t||!t.state)return h;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==T||r.lookahead)return h;for(1===s&&(t.adler=a(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(B(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,e,d-r.w_size,r.w_size,0),e=p,d=r.w_size),u=t.avail_in,c=t.next_in,l=t.input,t.avail_in=d,t.next_in=0,t.input=e,G(r);r.lookahead>=k;){n=r.strstart,o=r.lookahead-(k-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+k-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=k-1,G(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=k-1,r.match_available=0,t.next_in=c,t.input=l,t.avail_in=u,r.wrap=s,f},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,r){\"use strict\";var n=r(41),i=0,o=1;function a(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,c=256,l=c+1+u,f=30,h=19,p=2*l+1,d=15,m=16,y=7,g=256,b=16,v=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=new Array(2*(l+2));a(S);var T=new Array(2*f);a(T);var A=new Array(512);a(A);var D=new Array(256);a(D);var O=new Array(u);a(O);var I,P,C,L=new Array(f);function M(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function F(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function B(t){return t<256?A[t]:A[256+(t>>>7)]}function j(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,r){t.bi_valid>m-r?(t.bi_buf|=e<<t.bi_valid&65535,j(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=r-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function R(t,e,r){N(t,r[2*e],r[2*e+1])}function z(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function U(t,e,r){var n,i,o=new Array(d+1),a=0;for(n=1;n<=d;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(o[s]++,s))}}function G(t){var e;for(e=0;e<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<f;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*g]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){t.bi_valid>8?j(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function q(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function V(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&q(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!q(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function W(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?R(t,i,e):(R(t,(o=D[i])+c+1,e),0!==(a=_[o])&&N(t,i-=O[o],a),R(t,o=B(--n),r),0!==(a=x[o])&&N(t,n-=L[o],a))}while(s<t.last_lit);R(t,g,e)}function Z(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=p,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)V(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],V(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,V(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,y=e.stat_desc.max_length,g=0;for(o=0;o<=d;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<p;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>y&&(o=y,g++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=m&&(a=h[n-m]),s=u[2*n],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*n+1]+a)));if(0!==g){do{for(o=y-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[y]--,g-=2}while(g>0);for(o=y;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),U(o,c,t.bl_count)}function Y(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*b]++):s<=10?t.bl_tree[2*v]++:t.bl_tree[2*w]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function X(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{R(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(R(t,i,t.bl_tree),s--),R(t,b,t.bl_tree),N(t,s-3,2)):s<=10?(R(t,v,t.bl_tree),N(t,s-3,3)):(R(t,w,t.bl_tree),N(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}a(L);var K=!1;function J(t,e,r,i){N(t,(s<<1)+(i?1:0),3),function(t,e,r,i){H(t),i&&(j(t,r),j(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){K||(!function(){var t,e,r,n,i,o=new Array(d+1);for(r=0,n=0;n<u-1;n++)for(O[n]=r,t=0;t<1<<_[n];t++)D[r++]=n;for(D[r-1]=n,i=0,n=0;n<16;n++)for(L[n]=i,t=0;t<1<<x[n];t++)A[i++]=n;for(i>>=7;n<f;n++)for(L[n]=i<<7,t=0;t<1<<x[n]-7;t++)A[256+i++]=n;for(e=0;e<=d;e++)o[e]=0;for(t=0;t<=143;)S[2*t+1]=8,t++,o[8]++;for(;t<=255;)S[2*t+1]=9,t++,o[9]++;for(;t<=279;)S[2*t+1]=7,t++,o[7]++;for(;t<=287;)S[2*t+1]=8,t++,o[8]++;for(U(S,l+1,o),t=0;t<f;t++)T[2*t+1]=5,T[2*t]=z(t,5);I=new M(S,_,c+1,l,d),P=new M(T,x,0,f,d),C=new M(new Array(0),k,0,h,y)}(),K=!0),t.l_desc=new F(t.dyn_ltree,I),t.d_desc=new F(t.dyn_dtree,P),t.bl_desc=new F(t.bl_tree,C),t.bi_buf=0,t.bi_valid=0,G(t)},e._tr_stored_block=J,e._tr_flush_block=function(t,e,r,n){var a,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return o;return i}(t)),Z(t,t.l_desc),Z(t,t.d_desc),u=function(t){var e;for(Y(t,t.dyn_ltree,t.l_desc.max_code),Y(t,t.dyn_dtree,t.d_desc.max_code),Z(t,t.bl_desc),e=h-1;e>=3&&0===t.bl_tree[2*E[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=r+5,r+4<=a&&-1!==e?J(t,e,r,n):4===t.strategy||s===a?(N(t,2+(n?1:0),3),W(t,S,T)):(N(t,4+(n?1:0),3),function(t,e,r,n){var i;for(N(t,e-257,5),N(t,r-1,5),N(t,n-4,4),i=0;i<n;i++)N(t,t.bl_tree[2*E[i]+1],3);X(t,t.dyn_ltree,e-1),X(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),W(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&H(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(D[r]+c+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){N(t,2,3),R(t,g,S),function(t){16===t.bi_valid?(j(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,r){\"use strict\";var n=r(41),i=r(79),o=r(80),a=r(183),s=r(184),u=1,c=2,l=0,f=-2,h=1,p=12,d=30,m=852,y=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=h,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(m),e.distcode=e.distdyn=new n.Buf32(y),e.sane=1,e.back=-1,l):f}function w(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,v(t)):f}function _(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?f:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,w(t))):f}function x(t,e){var r,n;return t?(n=new b,t.state=n,n.window=null,(r=_(t,e))!==l&&(t.state=null),r):f}var k,E,S=!0;function T(t){if(S){var e;for(k=new n.Buf32(512),E=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,k,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(c,t.lens,0,32,E,0,t.work,{bits:5}),S=!1}t.lencode=k,t.lenbits=9,t.distcode=E,t.distbits=5}function A(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=w,e.inflateReset2=_,e.inflateResetKeep=v,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var r,m,y,b,v,w,_,x,k,E,S,D,O,I,P,C,L,M,F,B,j,N,R,z,U=0,G=new n.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return f;(r=t.state).mode===p&&(r.mode=13),v=t.next_out,y=t.output,_=t.avail_out,b=t.next_in,m=t.input,w=t.avail_in,x=r.hold,k=r.bits,E=w,S=_,N=l;t:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;k<16;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(2&r.wrap&&35615===x){r.check=0,G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0),x=0,k=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",r.mode=d;break}if(8!=(15&x)){t.msg=\"unknown compression method\",r.mode=d;break}if(k-=4,j=8+(15&(x>>>=4)),0===r.wbits)r.wbits=j;else if(j>r.wbits){t.msg=\"invalid window size\",r.mode=d;break}r.dmax=1<<j,t.adler=r.check=1,r.mode=512&x?10:p,x=0,k=0;break;case 2:for(;k<16;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(r.flags=x,8!=(255&r.flags)){t.msg=\"unknown compression method\",r.mode=d;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=d;break}r.head&&(r.head.text=x>>8&1),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,k=0,r.mode=3;case 3:for(;k<32;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.head&&(r.head.time=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,G[2]=x>>>16&255,G[3]=x>>>24&255,r.check=o(r.check,G,4,0)),x=0,k=0,r.mode=4;case 4:for(;k<16;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>8),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,k=0,r.mode=5;case 5:if(1024&r.flags){for(;k<16;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,k=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((D=r.length)>w&&(D=w),D&&(r.head&&(j=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,m,b,D,j)),512&r.flags&&(r.check=o(r.check,m,D,b)),w-=D,b+=D,r.length-=D),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break t;D=0;do{j=m[b+D++],r.head&&j&&r.length<65536&&(r.head.name+=String.fromCharCode(j))}while(j&&D<w);if(512&r.flags&&(r.check=o(r.check,m,D,b)),w-=D,b+=D,j)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break t;D=0;do{j=m[b+D++],r.head&&j&&r.length<65536&&(r.head.comment+=String.fromCharCode(j))}while(j&&D<w);if(512&r.flags&&(r.check=o(r.check,m,D,b)),w-=D,b+=D,j)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;k<16;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(x!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=d;break}x=0,k=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=p;break;case 10:for(;k<32;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}t.adler=r.check=g(x),x=0,k=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=v,t.avail_out=_,t.next_in=b,t.avail_in=w,r.hold=x,r.bits=k,2;t.adler=r.check=1,r.mode=p;case p:if(5===e||6===e)break t;case 13:if(r.last){x>>>=7&k,k-=7&k,r.mode=27;break}for(;k<3;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}switch(r.last=1&x,k-=1,3&(x>>>=1)){case 0:r.mode=14;break;case 1:if(T(r),r.mode=20,6===e){x>>>=2,k-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=d}x>>>=2,k-=2;break;case 14:for(x>>>=7&k,k-=7&k;k<32;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=d;break}if(r.length=65535&x,x=0,k=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(D=r.length){if(D>w&&(D=w),D>_&&(D=_),0===D)break t;n.arraySet(y,m,b,D,v),w-=D,b+=D,_-=D,v+=D,r.length-=D;break}r.mode=p;break;case 17:for(;k<14;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(r.nlen=257+(31&x),x>>>=5,k-=5,r.ndist=1+(31&x),x>>>=5,k-=5,r.ncode=4+(15&x),x>>>=4,k-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=d;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;k<3;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.lens[H[r.have++]]=7&x,x>>>=3,k-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},N=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,N){t.msg=\"invalid code lengths set\",r.mode=d;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;C=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,L=65535&U,!((P=U>>>24)<=k);){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(L<16)x>>>=P,k-=P,r.lens[r.have++]=L;else{if(16===L){for(z=P+2;k<z;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(x>>>=P,k-=P,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=d;break}j=r.lens[r.have-1],D=3+(3&x),x>>>=2,k-=2}else if(17===L){for(z=P+3;k<z;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}k-=P,j=0,D=3+(7&(x>>>=P)),x>>>=3,k-=3}else{for(z=P+7;k<z;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}k-=P,j=0,D=11+(127&(x>>>=P)),x>>>=7,k-=7}if(r.have+D>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=d;break}for(;D--;)r.lens[r.have++]=j}}if(r.mode===d)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=d;break}if(r.lenbits=9,R={bits:r.lenbits},N=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,N){t.msg=\"invalid literal/lengths set\",r.mode=d;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},N=s(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,N){t.msg=\"invalid distances set\",r.mode=d;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(w>=6&&_>=258){t.next_out=v,t.avail_out=_,t.next_in=b,t.avail_in=w,r.hold=x,r.bits=k,a(t,S),v=t.next_out,y=t.output,_=t.avail_out,b=t.next_in,m=t.input,w=t.avail_in,x=r.hold,k=r.bits,r.mode===p&&(r.back=-1);break}for(r.back=0;C=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,L=65535&U,!((P=U>>>24)<=k);){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(C&&!(240&C)){for(M=P,F=C,B=L;C=(U=r.lencode[B+((x&(1<<M+F)-1)>>M)])>>>16&255,L=65535&U,!(M+(P=U>>>24)<=k);){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}x>>>=M,k-=M,r.back+=M}if(x>>>=P,k-=P,r.back+=P,r.length=L,0===C){r.mode=26;break}if(32&C){r.back=-1,r.mode=p;break}if(64&C){t.msg=\"invalid literal/length code\",r.mode=d;break}r.extra=15&C,r.mode=22;case 22:if(r.extra){for(z=r.extra;k<z;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.length+=x&(1<<r.extra)-1,x>>>=r.extra,k-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;C=(U=r.distcode[x&(1<<r.distbits)-1])>>>16&255,L=65535&U,!((P=U>>>24)<=k);){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(!(240&C)){for(M=P,F=C,B=L;C=(U=r.distcode[B+((x&(1<<M+F)-1)>>M)])>>>16&255,L=65535&U,!(M+(P=U>>>24)<=k);){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}x>>>=M,k-=M,r.back+=M}if(x>>>=P,k-=P,r.back+=P,64&C){t.msg=\"invalid distance code\",r.mode=d;break}r.offset=L,r.extra=15&C,r.mode=24;case 24:if(r.extra){for(z=r.extra;k<z;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.offset+=x&(1<<r.extra)-1,x>>>=r.extra,k-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=d;break}r.mode=25;case 25:if(0===_)break t;if(D=S-_,r.offset>D){if((D=r.offset-D)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=d;break}D>r.wnext?(D-=r.wnext,O=r.wsize-D):O=r.wnext-D,D>r.length&&(D=r.length),I=r.window}else I=y,O=v-r.offset,D=r.length;D>_&&(D=_),_-=D,r.length-=D;do{y[v++]=I[O++]}while(--D);0===r.length&&(r.mode=21);break;case 26:if(0===_)break t;y[v++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;k<32;){if(0===w)break t;w--,x|=m[b++]<<k,k+=8}if(S-=_,t.total_out+=S,r.total+=S,S&&(t.adler=r.check=r.flags?o(r.check,y,S,v-S):i(r.check,y,S,v-S)),S=_,(r.flags?x:g(x))!==r.check){t.msg=\"incorrect data check\",r.mode=d;break}x=0,k=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;k<32;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(x!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=d;break}x=0,k=0}r.mode=29;case 29:N=1;break t;case d:N=-3;break t;case 31:return-4;default:return f}return t.next_out=v,t.avail_out=_,t.next_in=b,t.avail_in=w,r.hold=x,r.bits=k,(r.wsize||S!==t.avail_out&&r.mode<d&&(r.mode<27||4!==e))&&A(t,t.output,t.next_out,S-t.avail_out)?(r.mode=31,-4):(E-=t.avail_in,S-=t.avail_out,t.total_in+=E,t.total_out+=S,r.total+=S,r.wrap&&S&&(t.adler=r.check=r.flags?o(r.check,y,S,t.next_out-S):i(r.check,y,S,t.next_out-S)),t.data_type=r.bits+(r.last?64:0)+(r.mode===p?128:0)+(20===r.mode||15===r.mode?256:0),(0===E&&0===S||4===e)&&N===l&&(N=-5),N)},e.inflateEnd=function(t){if(!t||!t.state)return f;var e=t.state;return e.window&&(e.window=null),t.state=null,l},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,l):f},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?f:11===r.mode&&i(1,e,n,0)!==r.check?-3:A(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,l):f},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,r){\"use strict\";t.exports=function(t,e){var r,n,i,o,a,s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,T;r=t.state,n=t.next_in,S=t.input,i=n+(t.avail_in-5),o=t.next_out,T=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=r.dmax,c=r.wsize,l=r.whave,f=r.wnext,h=r.window,p=r.hold,d=r.bits,m=r.lencode,y=r.distcode,g=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;t:do{d<15&&(p+=S[n++]<<d,d+=8,p+=S[n++]<<d,d+=8),v=m[p&g];e:for(;;){if(p>>>=w=v>>>24,d-=w,0===(w=v>>>16&255))T[o++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break t}t.msg=\"invalid literal/length code\",r.mode=30;break t}v=m[(65535&v)+(p&(1<<w)-1)];continue e}for(_=65535&v,(w&=15)&&(d<w&&(p+=S[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=S[n++]<<d,d+=8,p+=S[n++]<<d,d+=8),v=y[p&b];;){if(p>>>=w=v>>>24,d-=w,16&(w=v>>>16&255)){if(x=65535&v,d<(w&=15)&&(p+=S[n++]<<d,(d+=8)<w&&(p+=S[n++]<<d,d+=8)),(x+=p&(1<<w)-1)>u){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(p>>>=w,d-=w,x>(w=o-a)){if((w=x-w)>l&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(k=0,E=h,0===f){if(k+=c-w,w<_){_-=w;do{T[o++]=h[k++]}while(--w);k=o-x,E=T}}else if(f<w){if(k+=c+f-w,(w-=f)<_){_-=w;do{T[o++]=h[k++]}while(--w);if(k=0,f<_){_-=w=f;do{T[o++]=h[k++]}while(--w);k=o-x,E=T}}}else if(k+=f-w,w<_){_-=w;do{T[o++]=h[k++]}while(--w);k=o-x,E=T}for(;_>2;)T[o++]=E[k++],T[o++]=E[k++],T[o++]=E[k++],_-=3;_&&(T[o++]=E[k++],_>1&&(T[o++]=E[k++]))}else{k=o-x;do{T[o++]=T[k++],T[o++]=T[k++],T[o++]=T[k++],_-=3}while(_>2);_&&(T[o++]=T[k++],_>1&&(T[o++]=T[k++]))}break}if(64&w){t.msg=\"invalid distance code\",r.mode=30;break t}v=y[(65535&v)+(p&(1<<w)-1)]}}break}}while(n<i&&o<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=p,r.bits=d}},function(t,e,r){\"use strict\";var n=r(41),i=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,c,l,f,h,p){var d,m,y,g,b,v,w,_,x,k=p.bits,E=0,S=0,T=0,A=0,D=0,O=0,I=0,P=0,C=0,L=0,M=null,F=0,B=new n.Buf16(16),j=new n.Buf16(16),N=null,R=0;for(E=0;E<=i;E++)B[E]=0;for(S=0;S<c;S++)B[e[r+S]]++;for(D=k,A=i;A>=1&&0===B[A];A--);if(D>A&&(D=A),0===A)return l[f++]=20971520,l[f++]=20971520,p.bits=1,0;for(T=1;T<A&&0===B[T];T++);for(D<T&&(D=T),P=1,E=1;E<=i;E++)if(P<<=1,(P-=B[E])<0)return-1;if(P>0&&(0===t||1!==A))return-1;for(j[1]=0,E=1;E<i;E++)j[E+1]=j[E]+B[E];for(S=0;S<c;S++)0!==e[r+S]&&(h[j[e[r+S]]++]=S);if(0===t?(M=N=h,v=19):1===t?(M=o,F-=257,N=a,R-=257,v=256):(M=s,N=u,v=-1),L=0,S=0,E=T,b=f,O=D,I=0,y=-1,g=(C=1<<D)-1,1===t&&C>852||2===t&&C>592)return 1;for(;;){w=E-I,h[S]<v?(_=0,x=h[S]):h[S]>v?(_=N[R+h[S]],x=M[F+h[S]]):(_=96,x=0),d=1<<E-I,T=m=1<<O;do{l[b+(L>>I)+(m-=d)]=w<<24|_<<16|x}while(0!==m);for(d=1<<E-1;L&d;)d>>=1;if(0!==d?(L&=d-1,L+=d):L=0,S++,0==--B[E]){if(E===A)break;E=e[r+h[S]]}if(E>D&&(L&g)!==y){for(0===I&&(I=D),b+=T,P=1<<(O=E-I);O+I<A&&!((P-=B[O+I])<=0);)O++,P<<=1;if(C+=1<<O,1===t&&C>852||2===t&&C>592)return 1;l[y=L&g]=D<<24|O<<16|b-f}}return 0!==L&&(l[b+L]=E-I<<24|64<<16),p.bits=D,0}},function(t,e,r){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){\"use strict\";(function(e){var n=r(14),i=r(81),o=r(82),a=t.exports=function(t){i.call(this);var r=[],n=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){r.push(t)},complete:function(){n.emit(\"complete\",e.concat(r))}}),this._filter.start()};n.inherits(a,i)}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(14),i=r(38),o=r(30),a=r(89),s=t.exports=function(t){i.call(this);var e=t||{};this._packer=new a(e),this._deflate=this._packer.createDeflate(),this.readable=!0};n.inherits(s,i),s.prototype.pack=function(t,r,n,i){this.emit(\"data\",e.from(o.PNG_SIGNATURE)),this.emit(\"data\",this._packer.packIHDR(r,n)),i&&this.emit(\"data\",this._packer.packGAMA(i));var a=this._packer.filterData(t,r,n);this._deflate.on(\"error\",this.emit.bind(this,\"error\")),this._deflate.on(\"data\",function(t){this.emit(\"data\",this._packer.packIDAT(t))}.bind(this)),this._deflate.on(\"end\",function(){this.emit(\"data\",this._packer.packIEND()),this.emit(\"end\")}.bind(this)),this._deflate.end(a)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(30);t.exports=function(t,r,i,o){var a,s=-1!==[n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(o.colorType);if(o.colorType===o.inputColorType){var u=(a=new ArrayBuffer(2),new DataView(a).setInt16(0,256,!0),256!==new Int16Array(a)[0]);if(8===o.bitDepth||16===o.bitDepth&&u)return t}var c=16!==o.bitDepth?t:new Uint16Array(t.buffer),l=255,f=n.COLORTYPE_TO_BPP_MAP[o.inputColorType];4!==f||o.inputHasAlpha||(f=3);var h=n.COLORTYPE_TO_BPP_MAP[o.colorType];16===o.bitDepth&&(l=65535,h*=2);var p=e.alloc(r*i*h),d=0,m=0,y=o.bgColor||{};function g(){var t,e,r,i=l;switch(o.inputColorType){case n.COLORTYPE_COLOR_ALPHA:i=c[d+3],t=c[d],e=c[d+1],r=c[d+2];break;case n.COLORTYPE_COLOR:t=c[d],e=c[d+1],r=c[d+2];break;case n.COLORTYPE_ALPHA:i=c[d+1],e=t=c[d],r=t;break;case n.COLORTYPE_GRAYSCALE:e=t=c[d],r=t;break;default:throw new Error(\"input color type:\"+o.inputColorType+\" is not supported at present\")}return o.inputHasAlpha&&(s||(i/=l,t=Math.min(Math.max(Math.round((1-i)*y.red+i*t),0),l),e=Math.min(Math.max(Math.round((1-i)*y.green+i*e),0),l),r=Math.min(Math.max(Math.round((1-i)*y.blue+i*r),0),l))),{red:t,green:e,blue:r,alpha:i}}void 0===y.red&&(y.red=l),void 0===y.green&&(y.green=l),void 0===y.blue&&(y.blue=l);for(var b=0;b<i;b++)for(var v=0;v<r;v++){var w=g();switch(o.colorType){case n.COLORTYPE_COLOR_ALPHA:case n.COLORTYPE_COLOR:8===o.bitDepth?(p[m]=w.red,p[m+1]=w.green,p[m+2]=w.blue,s&&(p[m+3]=w.alpha)):(p.writeUInt16BE(w.red,m),p.writeUInt16BE(w.green,m+2),p.writeUInt16BE(w.blue,m+4),s&&p.writeUInt16BE(w.alpha,m+6));break;case n.COLORTYPE_ALPHA:case n.COLORTYPE_GRAYSCALE:var _=(w.red+w.green+w.blue)/3;8===o.bitDepth?(p[m]=_,s&&(p[m+1]=w.alpha)):(p.writeUInt16BE(_,m),s&&p.writeUInt16BE(w.alpha,m+2));break;default:throw new Error(\"unrecognised color Type \"+o.colorType)}d+=f,m+=h}return p}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(84);var i={0:function(t,e,r,n,i){for(var o=0;o<r;o++)n[i+o]=t[e+o]},1:function(t,e,r,n,i,o){for(var a=0;a<r;a++){var s=a>=o?t[e+a-o]:0,u=t[e+a]-s;n[i+a]=u}},2:function(t,e,r,n,i){for(var o=0;o<r;o++){var a=e>0?t[e+o-r]:0,s=t[e+o]-a;n[i+o]=s}},3:function(t,e,r,n,i,o){for(var a=0;a<r;a++){var s=a>=o?t[e+a-o]:0,u=e>0?t[e+a-r]:0,c=t[e+a]-(s+u>>1);n[i+a]=c}},4:function(t,e,r,i,o,a){for(var s=0;s<r;s++){var u=s>=a?t[e+s-a]:0,c=e>0?t[e+s-r]:0,l=e>0&&s>=a?t[e+s-(r+a)]:0,f=t[e+s]-n(u,c,l);i[o+s]=f}}},o={0:function(t,e,r){for(var n=0,i=e+r,o=e;o<i;o++)n+=Math.abs(t[o]);return n},1:function(t,e,r,n){for(var i=0,o=0;o<r;o++){var a=o>=n?t[e+o-n]:0,s=t[e+o]-a;i+=Math.abs(s)}return i},2:function(t,e,r){for(var n=0,i=e+r,o=e;o<i;o++){var a=e>0?t[o-r]:0,s=t[o]-a;n+=Math.abs(s)}return n},3:function(t,e,r,n){for(var i=0,o=0;o<r;o++){var a=o>=n?t[e+o-n]:0,s=e>0?t[e+o-r]:0,u=t[e+o]-(a+s>>1);i+=Math.abs(u)}return i},4:function(t,e,r,i){for(var o=0,a=0;a<r;a++){var s=a>=i?t[e+a-i]:0,u=e>0?t[e+a-r]:0,c=e>0&&a>=i?t[e+a-(r+i)]:0,l=t[e+a]-n(s,u,c);o+=Math.abs(l)}return o}};t.exports=function(t,r,n,a,s){var u;if(\"filterType\"in a&&-1!==a.filterType){if(\"number\"!=typeof a.filterType)throw new Error(\"unrecognised filter types\");u=[a.filterType]}else u=[0,1,2,3,4];16===a.bitDepth&&(s*=2);for(var c=r*s,l=0,f=0,h=e.alloc((c+1)*n),p=u[0],d=0;d<n;d++){if(u.length>1)for(var m=1/0,y=0;y<u.length;y++){var g=o[u[y]](t,f,c,s);g<m&&(p=u[y],m=g)}h[l]=p,l++,i[p](t,f,c,h,l,s),l+=c,f+=c}return h}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=r(191),i=r(194);e.read=function(t,e){return n(t,e||{})},e.write=function(t,e){return i(t,e)}},function(t,e,r){\"use strict\";(function(e){var n=!0,i=r(28),o=r(192);i.deflateSync||(n=!1);var a=r(90),s=r(193),u=r(85),c=r(87),l=r(88);t.exports=function(t,r){if(!n)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var f,h,p;var d=[];var m=new a(t),y=new u(r,{read:m.read.bind(m),error:function(t){f=t},metadata:function(t){h=t},gamma:function(t){p=t},palette:function(t){h.palette=t},transColor:function(t){h.transColor=t},inflateData:function(t){d.push(t)},simpleTransparency:function(){h.alpha=!0}});if(y.start(),m.process(),f)throw f;var g,b=e.concat(d);if(d.length=0,h.interlace)g=i.inflateSync(b);else{var v=(1+(h.width*h.bpp*h.depth+7>>3))*h.height;g=o(b,{chunkSize:v,maxLength:v})}if(b=null,!g||!g.length)throw new Error(\"bad png - invalid inflate data response\");var w=s.process(g,h);b=null;var _=c.dataToBitMap(w,h);w=null;var x=l(_,h,r.skipRescale);return h.data=x,h.gamma=p||0,h}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(n,i){var o=r(53).ok,a=r(28),s=r(14),u=r(2).kMaxLength;function c(t){if(!(this instanceof c))return new c(t);t&&t.chunkSize<a.Z_MIN_CHUNK&&(t.chunkSize=a.Z_MIN_CHUNK),a.Inflate.call(this,t),this._offset=void 0===this._offset?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,t&&null!=t.maxLength&&(this._maxLength=t.maxLength)}function l(t,e){e&&n.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function f(t,e){return function(t,e){if(\"string\"==typeof e&&(e=i.from(e)),!(e instanceof i))throw new TypeError(\"Not a string or buffer\");var r=t._finishFlushFlag;return null==r&&(r=a.Z_FINISH),t._processChunk(e,r)}(new c(e),t)}c.prototype._processChunk=function(t,e,r){if(\"function\"==typeof r)return a.Inflate._processChunk.call(this,t,e,r);var n,s,c=this,f=t&&t.length,h=this._chunkSize-this._offset,p=this._maxLength,d=0,m=[],y=0;function g(t,e){if(!c._hadError){var r=h-e;if(o(r>=0,\"have should not go down\"),r>0){var n=c._buffer.slice(c._offset,c._offset+r);if(c._offset+=r,n.length>p&&(n=n.slice(0,p)),m.push(n),y+=n.length,0===(p-=n.length))return!1}return(0===e||c._offset>=c._chunkSize)&&(h=c._chunkSize,c._offset=0,c._buffer=i.allocUnsafe(c._chunkSize)),0===e&&(d+=f-t,f=t,!0)}}this.on(\"error\",(function(t){n=t})),o(this._handle,\"zlib binding closed\");do{s=(s=this._handle.writeSync(e,t,d,f,this._buffer,this._offset,h))||this._writeState}while(!this._hadError&&g(s[0],s[1]));if(this._hadError)throw n;if(y>=u)throw l(this),new RangeError(\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\");var b=i.concat(m,y);return l(this),b},s.inherits(c,a.Inflate),t.exports=e=f,e.Inflate=c,e.createInflate=function(t){return new c(t)},e.inflateSync=f}).call(this,r(7),r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(90),i=r(82);e.process=function(e,r){var o=[],a=new n(e);return new i(r,{read:a.read.bind(a),write:function(t){o.push(t)},complete:function(){}}).start(),a.process(),t.concat(o)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=!0,i=r(28);i.deflateSync||(n=!1);var o=r(30),a=r(89);t.exports=function(t,r){if(!n)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var s=new a(r||{}),u=[];u.push(e.from(o.PNG_SIGNATURE)),u.push(s.packIHDR(t.width,t.height)),t.gamma&&u.push(s.packGAMA(t.gamma));var c=s.filterData(t.data,t.width,t.height),l=i.deflateSync(c,s.getDeflateOptions());if(c=null,!l||!l.length)throw new Error(\"bad png - invalid compressed data response\");return u.push(s.packIDAT(l)),u.push(s.packIEND()),e.concat(u)}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag=\"BM\",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}r.prototype.encode=function(){var t=new e(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var r=0,n=3*this.width+this.extraBytes,i=0;i<this.height;i++){for(var o=0;o<this.width;o++){var a=this.pos+i*n+3*o;r++,t[a]=this.buffer[r++],t[a+1]=this.buffer[r++],t[a+2]=this.buffer[r++]}if(this.extraBytes>0){var s=this.pos+i*n+3*this.width;t.fill(0,s,s+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new r(t).encode(),width:t.width,height:t.height}}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString(\"utf-8\",0,this.pos+=2),\"BM\"!=this.flag)throw new Error(\"Invalid BMP File\");this.parseHeader(),this.parseRGBA()}r.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);this.palette[e]={red:i,green:n,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},r.prototype.parseRGBA=function(){var t=\"bit\"+this.bitPP,r=this.width*this.height*4;this.data=new e(r),this[t]()},r.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,r=this.height>=0?this.height-1:-this.height;for(r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++)for(var o=this.buffer.readUInt8(this.pos++),a=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var u=this.palette[o>>7-s&1];this.data[a+4*s]=0,this.data[a+4*s+1]=u.blue,this.data[a+4*s+2]=u.green,this.data[a+4*s+3]=u.red}0!=e&&(this.pos+=4-e)}},r.prototype.bit4=function(){if(2==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0,n=!1;e<this.data.length;){var i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);if(0==i){if(0==o){this.bottom_up?r--:r++,e=r*this.width*4,n=!1;continue}if(1==o)break;if(2==o){var a=this.buffer.readUInt8(this.pos++),s=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=s:r+=s,e+=s*this.width*4+4*a}else{for(var u=this.buffer.readUInt8(this.pos++),c=0;c<o;c++)t.call(this,n?15&u:(240&u)>>4),1&c&&c+1<o&&(u=this.buffer.readUInt8(this.pos++)),n=!n;1==(o+1>>1&1)&&this.pos++}}else for(c=0;c<i;c++)t.call(this,n?15&o:(240&o)>>4),n=!n}}else{var l=Math.ceil(this.width/2),f=l%4;for(s=this.height-1;s>=0;s--){var h=this.bottom_up?s:this.height-1-s;for(a=0;a<l;a++){o=this.buffer.readUInt8(this.pos++),e=h*this.width*4+2*a*4;var p=o>>4,d=15&o,m=this.palette[p];if(this.data[e]=0,this.data[e+1]=m.blue,this.data[e+2]=m.green,this.data[e+3]=m.red,2*a+1>=this.width)break;m=this.palette[d],this.data[e+4]=0,this.data[e+4+1]=m.blue,this.data[e+4+2]=m.green,this.data[e+4+3]=m.red}0!=f&&(this.pos+=4-f)}}},r.prototype.bit8=function(){if(1==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0;e<this.data.length;){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++);if(0==n){if(0==i){this.bottom_up?r--:r++,e=r*this.width*4;continue}if(1==i)break;if(2==i){var o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=a:r+=a,e+=a*this.width*4+4*o}else{for(var s=0;s<i;s++){var u=this.buffer.readUInt8(this.pos++);t.call(this,u)}!0&i&&this.pos++}}else for(s=0;s<n;s++)t.call(this,i)}}else{var c=this.width%4;for(a=this.height-1;a>=0;a--){var l=this.bottom_up?a:this.height-1-a;for(o=0;o<this.width;o++){i=this.buffer.readUInt8(this.pos++),e=l*this.width*4+4*o;if(i<this.palette.length){var f=this.palette[i];this.data[e]=0,this.data[e+1]=f.blue,this.data[e+2]=f.green,this.data[e+3]=f.red}else this.data[e]=0,this.data[e+1]=255,this.data[e+2]=255,this.data[e+3]=255}0!=c&&(this.pos+=4-c)}}},r.prototype.bit15=function(){for(var t=this.width%3,e=parseInt(\"11111\",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.buffer.readUInt16LE(this.pos);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,u=(o>>10&e)/e*255|0,c=o>>15?255:0,l=n*this.width*4+4*i;this.data[l]=c,this.data[l+1]=a,this.data[l+2]=s,this.data[l+3]=u}this.pos+=t}},r.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],r=0;r<16;r++)this.maskRed>>r&1&&e[0]++,this.maskGreen>>r&1&&e[1]++,this.maskBlue>>r&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var a=this.buffer.readUInt16LE(this.pos);this.pos+=2;var s=(a&this.maskBlue)<<e[0],u=(a&this.maskGreen)>>e[1],c=(a&this.maskRed)>>e[2],l=i*this.width*4+4*o;this.data[l]=0,this.data[l+1]=s,this.data[l+2]=u,this.data[l+3]=c}this.pos+=t}},r.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=e*this.width*4+4*r;this.data[a]=0,this.data[a+1]=n,this.data[a+2]=i,this.data[a+3]=o}this.pos+=this.width%4}},r.prototype.bit32=function(){if(3==this.compress){this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4;for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=o,this.data[s+3]=a}}else for(t=this.height-1;t>=0;t--)for(e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=o,this.data[s+3]=a}},r.prototype.getData=function(){return this.data},t.exports=function(t){return new r(t)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n={};(0,r(15).assign)(n,r(198),r(201),r(95)),t.exports=n},function(t,e,r){\"use strict\";var n=r(199),i=r(15),o=r(93),a=r(56),s=r(94),u=Object.prototype.toString,c=0,l=-1,f=0,h=8;function p(t){if(!(this instanceof p))return new p(t);this.options=i.assign({level:l,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==c)throw new Error(a[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d=\"string\"==typeof e.dictionary?o.string2buf(e.dictionary):\"[object ArrayBuffer]\"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=n.deflateSetDictionary(this.strm,d))!==c)throw new Error(a[r]);this._dict_set=!0}}function d(t,e){var r=new p(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}p.prototype.push=function(t,e){var r,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,\"string\"==typeof t?s.input=o.string2buf(t):\"[object ArrayBuffer]\"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(r=n.deflate(s,a))&&r!==c)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||(\"string\"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==a||(this.onEnd(c),s.avail_out=0,!0)},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===c&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=p,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},function(t,e,r){\"use strict\";var n,i=r(15),o=r(200),a=r(91),s=r(92),u=r(56),c=0,l=4,f=0,h=-2,p=-1,d=4,m=2,y=8,g=9,b=286,v=30,w=19,_=2*b+1,x=15,k=3,E=258,S=E+k+1,T=42,A=103,D=113,O=666,I=1,P=2,C=3,L=4;function M(t,e){return t.msg=u[e],e}function F(t){return(t<<1)-(t>4?9:0)}function B(t){for(var e=t.length;--e>=0;)t[e]=0}function j(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function N(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,j(t.strm)}function R(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-S?t.strstart-(t.w_size-S):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+E,p=c[o+a-1],d=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===d&&c[r+a-1]===p&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=E-(h-o),o=h-E,n>a){if(t.match_start=e,a=n,n>=s)break;p=c[o+a-1],d=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function G(t){var e,r,n,o,u,c,l,f,h,p,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-S)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--r);e=r=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--r);o+=d}if(0===t.strm.avail_in)break;if(c=t.strm,l=t.window,f=t.strstart+t.lookahead,h=o,p=void 0,(p=c.avail_in)>h&&(p=h),r=0===p?0:(c.avail_in-=p,i.arraySet(l,c.input,c.next_in,p,f),1===c.state.wrap?c.adler=a(c.adler,l,p,f):2===c.state.wrap&&(c.adler=s(c.adler,l,p,f)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=k)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+k-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<k)););}while(t.lookahead<S&&0!==t.strm.avail_in)}function H(t,e){for(var r,n;;){if(t.lookahead<S){if(G(t),t.lookahead<S&&e===c)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=k&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-S&&(t.match_length=U(t,r)),t.match_length>=k)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-k),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=k){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(N(t,!1),0===t.strm.avail_out))return I}return t.insert=t.strstart<k-1?t.strstart:k-1,e===l?(N(t,!0),0===t.strm.avail_out?C:L):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?I:P}function q(t,e){for(var r,n,i;;){if(t.lookahead<S){if(G(t),t.lookahead<S&&e===c)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=k&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=k-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-S&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===k&&t.strstart-t.match_start>4096)&&(t.match_length=k-1)),t.prev_length>=k&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-k,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-k),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=k-1,t.strstart++,n&&(N(t,!1),0===t.strm.avail_out))return I}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&N(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return I}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<k-1?t.strstart:k-1,e===l?(N(t,!0),0===t.strm.avail_out?C:L):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?I:P}function V(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*v+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),B(this.dyn_ltree),B(this.dyn_dtree),B(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*b+1),B(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*b+1),B(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Z(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?T:D,t.adler=2===e.wrap?0:1,e.last_flush=c,o._tr_init(e),f):M(t,h)}function Y(t){var e,r=Z(t);return r===f&&((e=t.state).window_size=2*e.w_size,B(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=k-1,e.match_available=0,e.ins_h=0),r}function X(t,e,r,n,o,a){if(!t)return h;var s=1;if(e===p&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>g||r!==y||n<8||n>15||e<0||e>9||a<0||a>d)return M(t,h);8===n&&(n=9);var u=new W;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+k-1)/k),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=r,Y(t)}n=[new V(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(G(t),0===t.lookahead&&e===c)return I;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,N(t,!1),0===t.strm.avail_out))return I;if(t.strstart-t.block_start>=t.w_size-S&&(N(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===l?(N(t,!0),0===t.strm.avail_out?C:L):(t.strstart>t.block_start&&(N(t,!1),t.strm.avail_out),I)})),new V(4,4,8,4,H),new V(4,5,16,8,H),new V(4,6,32,32,H),new V(4,4,16,16,q),new V(8,16,32,32,q),new V(8,16,128,128,q),new V(8,32,128,256,q),new V(32,128,258,1024,q),new V(32,258,258,4096,q)],e.deflateInit=function(t,e){return X(t,e,y,15,8,0)},e.deflateInit2=X,e.deflateReset=Y,e.deflateResetKeep=Z,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,f):h},e.deflate=function(t,e){var r,i,a,u;if(!t||!t.state||e>5||e<0)return t?M(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===O&&e!==l)return M(t,0===t.avail_out?-5:h);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===T)if(2===i.wrap)t.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,3),i.status=D);else{var p=y+(i.w_bits-8<<4)<<8;p|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(p|=32),p+=31-p%31,i.status=D,z(i,p),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=A)}else i.status=A;if(i.status===A&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&j(t),i.pending+2<=i.pending_buf_size&&(R(i,255&t.adler),R(i,t.adler>>8&255),t.adler=0,i.status=D)):i.status=D),0!==i.pending){if(j(t),0===t.avail_out)return i.last_flush=-1,f}else if(0===t.avail_in&&F(e)<=F(r)&&e!==l)return M(t,-5);if(i.status===O&&0!==t.avail_in)return M(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==c&&i.status!==O){var d=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(G(t),0===t.lookahead)){if(e===c)return I;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(N(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===l?(N(t,!0),0===t.strm.avail_out?C:L):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?I:P}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=E){if(G(t),t.lookahead<=E&&e===c)return I;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=k&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+E;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=E-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=k?(r=o._tr_tally(t,1,t.match_length-k),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(N(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===l?(N(t,!0),0===t.strm.avail_out?C:L):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?I:P}(i,e):n[i.level].func(i,e);if(d!==C&&d!==L||(i.status=O),d===I||d===C)return 0===t.avail_out&&(i.last_flush=-1),f;if(d===P&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(B(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),j(t),0===t.avail_out))return i.last_flush=-1,f}return e!==l?f:i.wrap<=0?1:(2===i.wrap?(R(i,255&t.adler),R(i,t.adler>>8&255),R(i,t.adler>>16&255),R(i,t.adler>>24&255),R(i,255&t.total_in),R(i,t.total_in>>8&255),R(i,t.total_in>>16&255),R(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),j(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?f:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==T&&69!==e&&73!==e&&91!==e&&e!==A&&e!==D&&e!==O?M(t,h):(t.state=null,e===D?M(t,-3):f):h},e.deflateSetDictionary=function(t,e){var r,n,o,s,u,c,l,p,d=e.length;if(!t||!t.state)return h;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==T||r.lookahead)return h;for(1===s&&(t.adler=a(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(B(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,e,d-r.w_size,r.w_size,0),e=p,d=r.w_size),u=t.avail_in,c=t.next_in,l=t.input,t.avail_in=d,t.next_in=0,t.input=e,G(r);r.lookahead>=k;){n=r.strstart,o=r.lookahead-(k-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+k-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=k-1,G(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=k-1,r.match_available=0,t.next_in=c,t.input=l,t.avail_in=u,r.wrap=s,f},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,r){\"use strict\";var n=r(15),i=0,o=1;function a(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,c=256,l=c+1+u,f=30,h=19,p=2*l+1,d=15,m=16,y=7,g=256,b=16,v=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=new Array(2*(l+2));a(S);var T=new Array(2*f);a(T);var A=new Array(512);a(A);var D=new Array(256);a(D);var O=new Array(u);a(O);var I,P,C,L=new Array(f);function M(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function F(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function B(t){return t<256?A[t]:A[256+(t>>>7)]}function j(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,r){t.bi_valid>m-r?(t.bi_buf|=e<<t.bi_valid&65535,j(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=r-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function R(t,e,r){N(t,r[2*e],r[2*e+1])}function z(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function U(t,e,r){var n,i,o=new Array(d+1),a=0;for(n=1;n<=d;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(o[s]++,s))}}function G(t){var e;for(e=0;e<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<f;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*g]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){t.bi_valid>8?j(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function q(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function V(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&q(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!q(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function W(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?R(t,i,e):(R(t,(o=D[i])+c+1,e),0!==(a=_[o])&&N(t,i-=O[o],a),R(t,o=B(--n),r),0!==(a=x[o])&&N(t,n-=L[o],a))}while(s<t.last_lit);R(t,g,e)}function Z(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=p,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)V(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],V(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,V(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,y=e.stat_desc.max_length,g=0;for(o=0;o<=d;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<p;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>y&&(o=y,g++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=m&&(a=h[n-m]),s=u[2*n],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*n+1]+a)));if(0!==g){do{for(o=y-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[y]--,g-=2}while(g>0);for(o=y;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),U(o,c,t.bl_count)}function Y(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*b]++):s<=10?t.bl_tree[2*v]++:t.bl_tree[2*w]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function X(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{R(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(R(t,i,t.bl_tree),s--),R(t,b,t.bl_tree),N(t,s-3,2)):s<=10?(R(t,v,t.bl_tree),N(t,s-3,3)):(R(t,w,t.bl_tree),N(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}a(L);var K=!1;function J(t,e,r,i){N(t,(s<<1)+(i?1:0),3),function(t,e,r,i){H(t),i&&(j(t,r),j(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){K||(!function(){var t,e,r,n,i,o=new Array(d+1);for(r=0,n=0;n<u-1;n++)for(O[n]=r,t=0;t<1<<_[n];t++)D[r++]=n;for(D[r-1]=n,i=0,n=0;n<16;n++)for(L[n]=i,t=0;t<1<<x[n];t++)A[i++]=n;for(i>>=7;n<f;n++)for(L[n]=i<<7,t=0;t<1<<x[n]-7;t++)A[256+i++]=n;for(e=0;e<=d;e++)o[e]=0;for(t=0;t<=143;)S[2*t+1]=8,t++,o[8]++;for(;t<=255;)S[2*t+1]=9,t++,o[9]++;for(;t<=279;)S[2*t+1]=7,t++,o[7]++;for(;t<=287;)S[2*t+1]=8,t++,o[8]++;for(U(S,l+1,o),t=0;t<f;t++)T[2*t+1]=5,T[2*t]=z(t,5);I=new M(S,_,c+1,l,d),P=new M(T,x,0,f,d),C=new M(new Array(0),k,0,h,y)}(),K=!0),t.l_desc=new F(t.dyn_ltree,I),t.d_desc=new F(t.dyn_dtree,P),t.bl_desc=new F(t.bl_tree,C),t.bi_buf=0,t.bi_valid=0,G(t)},e._tr_stored_block=J,e._tr_flush_block=function(t,e,r,n){var a,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return o;return i}(t)),Z(t,t.l_desc),Z(t,t.d_desc),u=function(t){var e;for(Y(t,t.dyn_ltree,t.l_desc.max_code),Y(t,t.dyn_dtree,t.d_desc.max_code),Z(t,t.bl_desc),e=h-1;e>=3&&0===t.bl_tree[2*E[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=r+5,r+4<=a&&-1!==e?J(t,e,r,n):4===t.strategy||s===a?(N(t,2+(n?1:0),3),W(t,S,T)):(N(t,4+(n?1:0),3),function(t,e,r,n){var i;for(N(t,e-257,5),N(t,r-1,5),N(t,n-4,4),i=0;i<n;i++)N(t,t.bl_tree[2*E[i]+1],3);X(t,t.dyn_ltree,e-1),X(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),W(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&H(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(D[r]+c+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){N(t,2,3),R(t,g,S),function(t){16===t.bi_valid?(j(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){\"use strict\";var n=r(202),i=r(15),o=r(93),a=r(95),s=r(56),u=r(94),c=r(205),l=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new c,n.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):\"[object ArrayBuffer]\"===l.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[r])}function h(t,e){var r=new f(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(t,e){var r,s,u,c,f,h=this.strm,p=this.options.chunkSize,d=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,\"string\"==typeof t?h.input=o.binstring2buf(t):\"[object ArrayBuffer]\"===l.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&d&&(r=n.inflateSetDictionary(this.strm,d)),r===a.Z_BUF_ERROR&&!0===m&&(r=a.Z_OK,m=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&r!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||(\"string\"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,f=o.buf2string(h.output,u),h.next_out=c,h.avail_out=p-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(f)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((h.avail_in>0||0===h.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===a.Z_OK&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=f,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},function(t,e,r){\"use strict\";var n=r(15),i=r(91),o=r(92),a=r(203),s=r(204),u=1,c=2,l=0,f=-2,h=1,p=12,d=30,m=852,y=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=h,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(m),e.distcode=e.distdyn=new n.Buf32(y),e.sane=1,e.back=-1,l):f}function w(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,v(t)):f}function _(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?f:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,w(t))):f}function x(t,e){var r,n;return t?(n=new b,t.state=n,n.window=null,(r=_(t,e))!==l&&(t.state=null),r):f}var k,E,S=!0;function T(t){if(S){var e;for(k=new n.Buf32(512),E=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,k,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(c,t.lens,0,32,E,0,t.work,{bits:5}),S=!1}t.lencode=k,t.lenbits=9,t.distcode=E,t.distbits=5}function A(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=w,e.inflateReset2=_,e.inflateResetKeep=v,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var r,m,y,b,v,w,_,x,k,E,S,D,O,I,P,C,L,M,F,B,j,N,R,z,U=0,G=new n.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return f;(r=t.state).mode===p&&(r.mode=13),v=t.next_out,y=t.output,_=t.avail_out,b=t.next_in,m=t.input,w=t.avail_in,x=r.hold,k=r.bits,E=w,S=_,N=l;t:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;k<16;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(2&r.wrap&&35615===x){r.check=0,G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0),x=0,k=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",r.mode=d;break}if(8!=(15&x)){t.msg=\"unknown compression method\",r.mode=d;break}if(k-=4,j=8+(15&(x>>>=4)),0===r.wbits)r.wbits=j;else if(j>r.wbits){t.msg=\"invalid window size\",r.mode=d;break}r.dmax=1<<j,t.adler=r.check=1,r.mode=512&x?10:p,x=0,k=0;break;case 2:for(;k<16;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(r.flags=x,8!=(255&r.flags)){t.msg=\"unknown compression method\",r.mode=d;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=d;break}r.head&&(r.head.text=x>>8&1),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,k=0,r.mode=3;case 3:for(;k<32;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.head&&(r.head.time=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,G[2]=x>>>16&255,G[3]=x>>>24&255,r.check=o(r.check,G,4,0)),x=0,k=0,r.mode=4;case 4:for(;k<16;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>8),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,k=0,r.mode=5;case 5:if(1024&r.flags){for(;k<16;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,k=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((D=r.length)>w&&(D=w),D&&(r.head&&(j=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,m,b,D,j)),512&r.flags&&(r.check=o(r.check,m,D,b)),w-=D,b+=D,r.length-=D),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break t;D=0;do{j=m[b+D++],r.head&&j&&r.length<65536&&(r.head.name+=String.fromCharCode(j))}while(j&&D<w);if(512&r.flags&&(r.check=o(r.check,m,D,b)),w-=D,b+=D,j)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break t;D=0;do{j=m[b+D++],r.head&&j&&r.length<65536&&(r.head.comment+=String.fromCharCode(j))}while(j&&D<w);if(512&r.flags&&(r.check=o(r.check,m,D,b)),w-=D,b+=D,j)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;k<16;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(x!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=d;break}x=0,k=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=p;break;case 10:for(;k<32;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}t.adler=r.check=g(x),x=0,k=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=v,t.avail_out=_,t.next_in=b,t.avail_in=w,r.hold=x,r.bits=k,2;t.adler=r.check=1,r.mode=p;case p:if(5===e||6===e)break t;case 13:if(r.last){x>>>=7&k,k-=7&k,r.mode=27;break}for(;k<3;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}switch(r.last=1&x,k-=1,3&(x>>>=1)){case 0:r.mode=14;break;case 1:if(T(r),r.mode=20,6===e){x>>>=2,k-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=d}x>>>=2,k-=2;break;case 14:for(x>>>=7&k,k-=7&k;k<32;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=d;break}if(r.length=65535&x,x=0,k=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(D=r.length){if(D>w&&(D=w),D>_&&(D=_),0===D)break t;n.arraySet(y,m,b,D,v),w-=D,b+=D,_-=D,v+=D,r.length-=D;break}r.mode=p;break;case 17:for(;k<14;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(r.nlen=257+(31&x),x>>>=5,k-=5,r.ndist=1+(31&x),x>>>=5,k-=5,r.ncode=4+(15&x),x>>>=4,k-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=d;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;k<3;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.lens[H[r.have++]]=7&x,x>>>=3,k-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},N=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,N){t.msg=\"invalid code lengths set\",r.mode=d;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;C=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,L=65535&U,!((P=U>>>24)<=k);){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(L<16)x>>>=P,k-=P,r.lens[r.have++]=L;else{if(16===L){for(z=P+2;k<z;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(x>>>=P,k-=P,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=d;break}j=r.lens[r.have-1],D=3+(3&x),x>>>=2,k-=2}else if(17===L){for(z=P+3;k<z;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}k-=P,j=0,D=3+(7&(x>>>=P)),x>>>=3,k-=3}else{for(z=P+7;k<z;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}k-=P,j=0,D=11+(127&(x>>>=P)),x>>>=7,k-=7}if(r.have+D>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=d;break}for(;D--;)r.lens[r.have++]=j}}if(r.mode===d)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=d;break}if(r.lenbits=9,R={bits:r.lenbits},N=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,N){t.msg=\"invalid literal/lengths set\",r.mode=d;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},N=s(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,N){t.msg=\"invalid distances set\",r.mode=d;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(w>=6&&_>=258){t.next_out=v,t.avail_out=_,t.next_in=b,t.avail_in=w,r.hold=x,r.bits=k,a(t,S),v=t.next_out,y=t.output,_=t.avail_out,b=t.next_in,m=t.input,w=t.avail_in,x=r.hold,k=r.bits,r.mode===p&&(r.back=-1);break}for(r.back=0;C=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,L=65535&U,!((P=U>>>24)<=k);){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(C&&!(240&C)){for(M=P,F=C,B=L;C=(U=r.lencode[B+((x&(1<<M+F)-1)>>M)])>>>16&255,L=65535&U,!(M+(P=U>>>24)<=k);){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}x>>>=M,k-=M,r.back+=M}if(x>>>=P,k-=P,r.back+=P,r.length=L,0===C){r.mode=26;break}if(32&C){r.back=-1,r.mode=p;break}if(64&C){t.msg=\"invalid literal/length code\",r.mode=d;break}r.extra=15&C,r.mode=22;case 22:if(r.extra){for(z=r.extra;k<z;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.length+=x&(1<<r.extra)-1,x>>>=r.extra,k-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;C=(U=r.distcode[x&(1<<r.distbits)-1])>>>16&255,L=65535&U,!((P=U>>>24)<=k);){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(!(240&C)){for(M=P,F=C,B=L;C=(U=r.distcode[B+((x&(1<<M+F)-1)>>M)])>>>16&255,L=65535&U,!(M+(P=U>>>24)<=k);){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}x>>>=M,k-=M,r.back+=M}if(x>>>=P,k-=P,r.back+=P,64&C){t.msg=\"invalid distance code\",r.mode=d;break}r.offset=L,r.extra=15&C,r.mode=24;case 24:if(r.extra){for(z=r.extra;k<z;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}r.offset+=x&(1<<r.extra)-1,x>>>=r.extra,k-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=d;break}r.mode=25;case 25:if(0===_)break t;if(D=S-_,r.offset>D){if((D=r.offset-D)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=d;break}D>r.wnext?(D-=r.wnext,O=r.wsize-D):O=r.wnext-D,D>r.length&&(D=r.length),I=r.window}else I=y,O=v-r.offset,D=r.length;D>_&&(D=_),_-=D,r.length-=D;do{y[v++]=I[O++]}while(--D);0===r.length&&(r.mode=21);break;case 26:if(0===_)break t;y[v++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;k<32;){if(0===w)break t;w--,x|=m[b++]<<k,k+=8}if(S-=_,t.total_out+=S,r.total+=S,S&&(t.adler=r.check=r.flags?o(r.check,y,S,v-S):i(r.check,y,S,v-S)),S=_,(r.flags?x:g(x))!==r.check){t.msg=\"incorrect data check\",r.mode=d;break}x=0,k=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;k<32;){if(0===w)break t;w--,x+=m[b++]<<k,k+=8}if(x!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=d;break}x=0,k=0}r.mode=29;case 29:N=1;break t;case d:N=-3;break t;case 31:return-4;default:return f}return t.next_out=v,t.avail_out=_,t.next_in=b,t.avail_in=w,r.hold=x,r.bits=k,(r.wsize||S!==t.avail_out&&r.mode<d&&(r.mode<27||4!==e))&&A(t,t.output,t.next_out,S-t.avail_out)?(r.mode=31,-4):(E-=t.avail_in,S-=t.avail_out,t.total_in+=E,t.total_out+=S,r.total+=S,r.wrap&&S&&(t.adler=r.check=r.flags?o(r.check,y,S,t.next_out-S):i(r.check,y,S,t.next_out-S)),t.data_type=r.bits+(r.last?64:0)+(r.mode===p?128:0)+(20===r.mode||15===r.mode?256:0),(0===E&&0===S||4===e)&&N===l&&(N=-5),N)},e.inflateEnd=function(t){if(!t||!t.state)return f;var e=t.state;return e.window&&(e.window=null),t.state=null,l},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,l):f},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?f:11===r.mode&&i(1,e,n,0)!==r.check?-3:A(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,l):f},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,r){\"use strict\";t.exports=function(t,e){var r,n,i,o,a,s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,T;r=t.state,n=t.next_in,S=t.input,i=n+(t.avail_in-5),o=t.next_out,T=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=r.dmax,c=r.wsize,l=r.whave,f=r.wnext,h=r.window,p=r.hold,d=r.bits,m=r.lencode,y=r.distcode,g=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;t:do{d<15&&(p+=S[n++]<<d,d+=8,p+=S[n++]<<d,d+=8),v=m[p&g];e:for(;;){if(p>>>=w=v>>>24,d-=w,0===(w=v>>>16&255))T[o++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break t}t.msg=\"invalid literal/length code\",r.mode=30;break t}v=m[(65535&v)+(p&(1<<w)-1)];continue e}for(_=65535&v,(w&=15)&&(d<w&&(p+=S[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=S[n++]<<d,d+=8,p+=S[n++]<<d,d+=8),v=y[p&b];;){if(p>>>=w=v>>>24,d-=w,16&(w=v>>>16&255)){if(x=65535&v,d<(w&=15)&&(p+=S[n++]<<d,(d+=8)<w&&(p+=S[n++]<<d,d+=8)),(x+=p&(1<<w)-1)>u){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(p>>>=w,d-=w,x>(w=o-a)){if((w=x-w)>l&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(k=0,E=h,0===f){if(k+=c-w,w<_){_-=w;do{T[o++]=h[k++]}while(--w);k=o-x,E=T}}else if(f<w){if(k+=c+f-w,(w-=f)<_){_-=w;do{T[o++]=h[k++]}while(--w);if(k=0,f<_){_-=w=f;do{T[o++]=h[k++]}while(--w);k=o-x,E=T}}}else if(k+=f-w,w<_){_-=w;do{T[o++]=h[k++]}while(--w);k=o-x,E=T}for(;_>2;)T[o++]=E[k++],T[o++]=E[k++],T[o++]=E[k++],_-=3;_&&(T[o++]=E[k++],_>1&&(T[o++]=E[k++]))}else{k=o-x;do{T[o++]=T[k++],T[o++]=T[k++],T[o++]=T[k++],_-=3}while(_>2);_&&(T[o++]=T[k++],_>1&&(T[o++]=T[k++]))}break}if(64&w){t.msg=\"invalid distance code\",r.mode=30;break t}v=y[(65535&v)+(p&(1<<w)-1)]}}break}}while(n<i&&o<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=p,r.bits=d}},function(t,e,r){\"use strict\";var n=r(15),i=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,c,l,f,h,p){var d,m,y,g,b,v,w,_,x,k=p.bits,E=0,S=0,T=0,A=0,D=0,O=0,I=0,P=0,C=0,L=0,M=null,F=0,B=new n.Buf16(16),j=new n.Buf16(16),N=null,R=0;for(E=0;E<=i;E++)B[E]=0;for(S=0;S<c;S++)B[e[r+S]]++;for(D=k,A=i;A>=1&&0===B[A];A--);if(D>A&&(D=A),0===A)return l[f++]=20971520,l[f++]=20971520,p.bits=1,0;for(T=1;T<A&&0===B[T];T++);for(D<T&&(D=T),P=1,E=1;E<=i;E++)if(P<<=1,(P-=B[E])<0)return-1;if(P>0&&(0===t||1!==A))return-1;for(j[1]=0,E=1;E<i;E++)j[E+1]=j[E]+B[E];for(S=0;S<c;S++)0!==e[r+S]&&(h[j[e[r+S]]++]=S);if(0===t?(M=N=h,v=19):1===t?(M=o,F-=257,N=a,R-=257,v=256):(M=s,N=u,v=-1),L=0,S=0,E=T,b=f,O=D,I=0,y=-1,g=(C=1<<D)-1,1===t&&C>852||2===t&&C>592)return 1;for(;;){w=E-I,h[S]<v?(_=0,x=h[S]):h[S]>v?(_=N[R+h[S]],x=M[F+h[S]]):(_=96,x=0),d=1<<E-I,T=m=1<<O;do{l[b+(L>>I)+(m-=d)]=w<<24|_<<16|x}while(0!==m);for(d=1<<E-1;L&d;)d>>=1;if(0!==d?(L&=d-1,L+=d):L=0,S++,0==--B[E]){if(E===A)break;E=e[r+h[S]]}if(E>D&&(L&g)!==y){for(0===I&&(I=D),b+=T,P=1<<(O=E-I);O+I<A&&!((P-=B[O+I])<=0);)O++,P<<=1;if(C+=1<<O,1===t&&C>852||2===t&&C>592)return 1;l[y=L&g]=D<<24|O<<16|b-f}}return 0!==L&&(l[b+L]=E-I<<24|64<<16),p.bits=D,0}},function(t,e,r){\"use strict\";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1}},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"applyPalette\",(function(){return Yt})),r.d(e,\"applyPaletteSync\",(function(){return Zt})),r.d(e,\"buildPalette\",(function(){return Wt})),r.d(e,\"buildPaletteSync\",(function(){return Vt})),r.d(e,\"constants\",(function(){return a})),r.d(e,\"conversion\",(function(){return f})),r.d(e,\"distance\",(function(){return j})),r.d(e,\"image\",(function(){return Ot})),r.d(e,\"palette\",(function(){return tt})),r.d(e,\"quality\",(function(){return Nt})),r.d(e,\"utils\",(function(){return at}));var n=Object.defineProperty,i=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},o=(t,e,r)=>(((t,e,r)=>{e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r})(t,\"symbol\"!=typeof e?e+\"\":e,r),r),a={};i(a,{bt709:()=>s});var s={};i(s,{Y:()=>u,x:()=>c,y:()=>l});var u=(t=>(t[t.RED=.2126]=\"RED\",t[t.GREEN=.7152]=\"GREEN\",t[t.BLUE=.0722]=\"BLUE\",t[t.WHITE=1]=\"WHITE\",t))(u||{}),c=(t=>(t[t.RED=.64]=\"RED\",t[t.GREEN=.3]=\"GREEN\",t[t.BLUE=.15]=\"BLUE\",t[t.WHITE=.3127]=\"WHITE\",t))(c||{}),l=(t=>(t[t.RED=.33]=\"RED\",t[t.GREEN=.6]=\"GREEN\",t[t.BLUE=.06]=\"BLUE\",t[t.WHITE=.329]=\"WHITE\",t))(l||{}),f={};function h(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}function p(t,e,r){return{x:.4124*(t=h(t/255))+.3576*(e=h(e/255))+.1805*(r=h(r/255)),y:.2126*t+.7152*e+.0722*r,z:.0193*t+.1192*e+.9505*r}}i(f,{lab2rgb:()=>B,lab2xyz:()=>L,rgb2hsl:()=>x,rgb2lab:()=>D,rgb2xyz:()=>p,xyz2lab:()=>A,xyz2rgb:()=>F});var d={};function m(t){return t*(Math.PI/180)}function y(t,e,r){let n=t;return n<e&&(n=e),n<r&&(n=r),n}function g(t,e,r){let n=t;return n>e&&(n=e),n>r&&(n=r),n}function b(t,e,r){return t>r&&(t=r),t<e&&(t=e),0|t}function v(t){return(t=Math.round(t))>255?t=255:t<0&&(t=0),t}function w(t){return t>255?t=255:t<0&&(t=0),t}function _(t,e){const r=typeof t[0];let n;if(\"number\"===r||\"string\"===r){const r=Object.create(null);for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]||0===r[n]||(r[n]=e)}n=t.sort(((t,n)=>e(t,n)||r[t]-r[n]))}else{const r=t.slice(0);n=t.sort(((t,n)=>e(t,n)||r.indexOf(t)-r.indexOf(n)))}return n}function x(t,e,r){const n=g(t,e,r),i=y(t,e,r),o=i-n,a=(n+i)/510;let s=0;a>0&&a<1&&(s=o/(a<.5?i+n:510-i-n));let u=0;return o>0&&(u=i===t?(e-r)/o:i===e?2+(r-t)/o:4+(t-e)/o,u*=60,u<0&&(u+=360)),{h:u,s,l:a}}i(d,{degrees2radians:()=>m,inRange0to255:()=>w,inRange0to255Rounded:()=>v,intInRange:()=>b,max3:()=>y,min3:()=>g,stableSort:()=>_});var k=.95047,E=1,S=1.08883;function T(t){return t>.008856?t**(1/3):7.787*t+16/116}function A(t,e,r){if(t=T(t/k),e=T(e/E),r=T(r/S),116*e-16<0)throw new Error(\"xxx\");return{L:Math.max(0,116*e-16),a:500*(t-e),b:200*(e-r)}}function D(t,e,r){const n=p(t,e,r);return A(n.x,n.y,n.z)}var O=.95047,I=1,P=1.08883;function C(t){return t>.206893034?t**3:(t-16/116)/7.787}function L(t,e,r){const n=(t+16)/116,i=n-r/200;return{x:O*C(e/500+n),y:I*C(n),z:P*C(i)}}function M(t){return t>.0031308?1.055*t**(1/2.4)-.055:12.92*t}function F(t,e,r){const n=M(3.2406*t+-1.5372*e+-.4986*r),i=M(-.9689*t+1.8758*e+.0415*r),o=M(.0557*t+-.204*e+1.057*r);return{r:v(255*n),g:v(255*i),b:v(255*o)}}function B(t,e,r){const n=L(t,e,r);return F(n.x,n.y,n.z)}var j={};i(j,{AbstractDistanceCalculator:()=>N,AbstractEuclidean:()=>V,AbstractManhattan:()=>X,CIE94GraphicArts:()=>U,CIE94Textiles:()=>z,CIEDE2000:()=>H,CMetric:()=>q,Euclidean:()=>W,EuclideanBT709:()=>Z,EuclideanBT709NoAlpha:()=>Y,Manhattan:()=>K,ManhattanBT709:()=>$,ManhattanNommyde:()=>J,PNGQuant:()=>Q});var N=class{constructor(){o(this,\"_maxDistance\"),o(this,\"_whitePoint\"),this._setDefaults(),this.setWhitePoint(255,255,255,255)}setWhitePoint(t,e,r,n){this._whitePoint={r:t>0?255/t:0,g:e>0?255/e:0,b:r>0?255/r:0,a:n>0?255/n:0},this._maxDistance=this.calculateRaw(t,e,r,n,0,0,0,0)}calculateNormalized(t,e){return this.calculateRaw(t.r,t.g,t.b,t.a,e.r,e.g,e.b,e.a)/this._maxDistance}},R=class extends N{calculateRaw(t,e,r,n,i,o,a,s){const u=D(w(t*this._whitePoint.r),w(e*this._whitePoint.g),w(r*this._whitePoint.b)),c=D(w(i*this._whitePoint.r),w(o*this._whitePoint.g),w(a*this._whitePoint.b)),l=u.L-c.L,f=u.a-c.a,h=u.b-c.b,p=Math.sqrt(u.a*u.a+u.b*u.b),d=p-Math.sqrt(c.a*c.a+c.b*c.b);let m=f*f+h*h-d*d;m=m<0?0:Math.sqrt(m);const y=(s-n)*this._whitePoint.a*this._kA;return Math.sqrt((l/this._Kl)**2+(d/(1+this._K1*p))**2+(m/(1+this._K2*p))**2+y**2)}},z=class extends R{_setDefaults(){this._Kl=2,this._K1=.048,this._K2=.014,this._kA=12.5/255}},U=class extends R{_setDefaults(){this._Kl=1,this._K1=.045,this._K2=.015,this._kA=25/255}},G=class extends N{_setDefaults(){}static _calculatehp(t,e){const r=Math.atan2(t,e);return r>=0?r:r+G._deg360InRad}static _calculateRT(t,e){const r=e**7,n=2*Math.sqrt(r/(r+G._pow25to7)),i=G._deg30InRad*Math.exp(-(((t-G._deg275InRad)/G._deg25InRad)**2));return-Math.sin(2*i)*n}static _calculateT(t){return 1-.17*Math.cos(t-G._deg30InRad)+.24*Math.cos(2*t)+.32*Math.cos(3*t+G._deg6InRad)-.2*Math.cos(4*t-G._deg63InRad)}static _calculate_ahp(t,e,r,n){const i=r+n;return 0===t?i:e<=G._deg180InRad?i/2:i<G._deg360InRad?(i+G._deg360InRad)/2:(i-G._deg360InRad)/2}static _calculate_dHp(t,e,r,n){let i;return i=0===t?0:e<=G._deg180InRad?r-n:r<=n?r-n+G._deg360InRad:r-n-G._deg360InRad,2*Math.sqrt(t)*Math.sin(i/2)}calculateRaw(t,e,r,n,i,o,a,s){const u=D(w(t*this._whitePoint.r),w(e*this._whitePoint.g),w(r*this._whitePoint.b)),c=D(w(i*this._whitePoint.r),w(o*this._whitePoint.g),w(a*this._whitePoint.b)),l=(s-n)*this._whitePoint.a*G._kA,f=this.calculateRawInLab(u,c);return Math.sqrt(f+l*l)}calculateRawInLab(t,e){const r=t.L,n=t.a,i=t.b,o=e.L,a=e.a,s=e.b,u=((Math.sqrt(n*n+i*i)+Math.sqrt(a*a+s*s))/2)**7,c=.5*(1-Math.sqrt(u/(u+G._pow25to7))),l=(1+c)*n,f=(1+c)*a,h=Math.sqrt(l*l+i*i),p=Math.sqrt(f*f+s*s),d=h*p,m=G._calculatehp(i,l),y=G._calculatehp(s,f),g=Math.abs(m-y),b=o-r,v=p-h,w=G._calculate_dHp(d,g,y,m),_=G._calculate_ahp(d,g,m,y),x=(h+p)/2,k=((r+o)/2-50)**2,E=v/(1+.045*x),S=w/(1+.015*G._calculateT(_)*x);return(b/(1+.015*k/Math.sqrt(20+k)))**2+E**2+S**2+G._calculateRT(_,x)*E*S}},H=G;o(H,\"_kA\",25/255),o(H,\"_pow25to7\",25**7),o(H,\"_deg360InRad\",m(360)),o(H,\"_deg180InRad\",m(180)),o(H,\"_deg30InRad\",m(30)),o(H,\"_deg6InRad\",m(6)),o(H,\"_deg63InRad\",m(63)),o(H,\"_deg275InRad\",m(275)),o(H,\"_deg25InRad\",m(25));var q=class extends N{calculateRaw(t,e,r,n,i,o,a,s){const u=(t+i)/2*this._whitePoint.r,c=(t-i)*this._whitePoint.r,l=(e-o)*this._whitePoint.g,f=(r-a)*this._whitePoint.b,h=((512+u)*c*c>>8)+4*l*l+((767-u)*f*f>>8),p=(s-n)*this._whitePoint.a;return Math.sqrt(h+p*p)}_setDefaults(){}},V=class extends N{calculateRaw(t,e,r,n,i,o,a,s){const u=i-t,c=o-e,l=a-r,f=s-n;return Math.sqrt(this._kR*u*u+this._kG*c*c+this._kB*l*l+this._kA*f*f)}},W=class extends V{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},Z=class extends V{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},Y=class extends V{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=0}},X=class extends N{calculateRaw(t,e,r,n,i,o,a,s){let u=i-t,c=o-e,l=a-r,f=s-n;return u<0&&(u=0-u),c<0&&(c=0-c),l<0&&(l=0-l),f<0&&(f=0-f),this._kR*u+this._kG*c+this._kB*l+this._kA*f}},K=class extends X{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},J=class extends X{_setDefaults(){this._kR=.4984,this._kG=.8625,this._kB=.2979,this._kA=1}},$=class extends X{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},Q=class extends N{calculateRaw(t,e,r,n,i,o,a,s){const u=(s-n)*this._whitePoint.a;return this._colordifferenceCh(t*this._whitePoint.r,i*this._whitePoint.r,u)+this._colordifferenceCh(e*this._whitePoint.g,o*this._whitePoint.g,u)+this._colordifferenceCh(r*this._whitePoint.b,a*this._whitePoint.b,u)}_colordifferenceCh(t,e,r){const n=t-e,i=n+r;return n*n+i*i}_setDefaults(){}},tt={};i(tt,{AbstractPaletteQuantizer:()=>et,ColorHistogram:()=>bt,NeuQuant:()=>pt,NeuQuantFloat:()=>yt,RGBQuant:()=>wt,WuColorCube:()=>Tt,WuQuant:()=>Dt});var et=class{quantizeSync(){for(const t of this.quantize())if(t.palette)return t.palette;throw new Error(\"unreachable\")}},rt=class{constructor(){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),o(this,\"uint32\"),o(this,\"rgba\"),this.uint32=-1>>>0,this.r=this.g=this.b=this.a=0,this.rgba=new Array(4),this.rgba[0]=0,this.rgba[1]=0,this.rgba[2]=0,this.rgba[3]=0}static createByQuadruplet(t){const e=new rt;return e.r=0|t[0],e.g=0|t[1],e.b=0|t[2],e.a=0|t[3],e._loadUINT32(),e._loadQuadruplet(),e}static createByRGBA(t,e,r,n){const i=new rt;return i.r=0|t,i.g=0|e,i.b=0|r,i.a=0|n,i._loadUINT32(),i._loadQuadruplet(),i}static createByUint32(t){const e=new rt;return e.uint32=t>>>0,e._loadRGBA(),e._loadQuadruplet(),e}from(t){this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this.uint32=t.uint32,this.rgba[0]=t.r,this.rgba[1]=t.g,this.rgba[2]=t.b,this.rgba[3]=t.a}getLuminosity(t){let e=this.r,r=this.g,n=this.b;return t&&(e=Math.min(255,255-this.a+this.a*e/255),r=Math.min(255,255-this.a+this.a*r/255),n=Math.min(255,255-this.a+this.a*n/255)),.2126*e+.7152*r+.0722*n}_loadUINT32(){this.uint32=(this.a<<24|this.b<<16|this.g<<8|this.r)>>>0}_loadRGBA(){this.r=255&this.uint32,this.g=this.uint32>>>8&255,this.b=this.uint32>>>16&255,this.a=this.uint32>>>24&255}_loadQuadruplet(){this.rgba[0]=this.r,this.rgba[1]=this.g,this.rgba[2]=this.b,this.rgba[3]=this.a}},nt=class{constructor(){o(this,\"_pointArray\"),o(this,\"_width\"),o(this,\"_height\"),this._width=0,this._height=0,this._pointArray=[]}getWidth(){return this._width}getHeight(){return this._height}setWidth(t){this._width=t}setHeight(t){this._height=t}getPointArray(){return this._pointArray}clone(){const t=new nt;t._width=this._width,t._height=this._height;for(let e=0,r=this._pointArray.length;e<r;e++)t._pointArray[e]=rt.createByUint32(0|this._pointArray[e].uint32);return t}toUint32Array(){const t=this._pointArray.length,e=new Uint32Array(t);for(let r=0;r<t;r++)e[r]=this._pointArray[r].uint32;return e}toUint8Array(){return new Uint8Array(this.toUint32Array().buffer)}static fromHTMLImageElement(t){const e=t.naturalWidth,r=t.naturalHeight,n=document.createElement(\"canvas\");n.width=e,n.height=r;return n.getContext(\"2d\").drawImage(t,0,0,e,r,0,0,e,r),nt.fromHTMLCanvasElement(n)}static fromHTMLCanvasElement(t){const e=t.width,r=t.height,n=t.getContext(\"2d\").getImageData(0,0,e,r);return nt.fromImageData(n)}static fromImageData(t){const e=t.width,r=t.height;return nt.fromUint8Array(t.data,e,r)}static fromUint8Array(t,e,r){switch(Object.prototype.toString.call(t)){case\"[object Uint8ClampedArray]\":case\"[object Uint8Array]\":break;default:t=new Uint8Array(t)}const n=new Uint32Array(t.buffer);return nt.fromUint32Array(n,e,r)}static fromUint32Array(t,e,r){const n=new nt;n._width=e,n._height=r;for(let e=0,r=t.length;e<r;e++)n._pointArray[e]=rt.createByUint32(0|t[e]);return n}static fromBuffer(t,e,r){const n=new Uint32Array(t.buffer,t.byteOffset,t.byteLength/Uint32Array.BYTES_PER_ELEMENT);return nt.fromUint32Array(n,e,r)}};function it(t,e){const r=360/e;for(let n=1,i=r-r/2;n<e;n++,i+=r)if(t>=i&&t<i+r)return n;return 0}var ot=class{constructor(){o(this,\"_pointContainer\"),o(this,\"_pointArray\",[]),o(this,\"_i32idx\",{}),this._pointContainer=new nt,this._pointContainer.setHeight(1),this._pointArray=this._pointContainer.getPointArray()}add(t){this._pointArray.push(t),this._pointContainer.setWidth(this._pointArray.length)}has(t){for(let e=this._pointArray.length-1;e>=0;e--)if(t.uint32===this._pointArray[e].uint32)return!0;return!1}getNearestColor(t,e){return this._pointArray[0|this._getNearestIndex(t,e)]}getPointContainer(){return this._pointContainer}_nearestPointFromCache(t){return\"number\"==typeof this._i32idx[t]?this._i32idx[t]:-1}_getNearestIndex(t,e){let r=this._nearestPointFromCache(\"\"+e.uint32);if(r>=0)return r;let n=Number.MAX_VALUE;r=0;for(let i=0,o=this._pointArray.length;i<o;i++){const o=this._pointArray[i],a=t.calculateRaw(e.r,e.g,e.b,e.a,o.r,o.g,o.b,o.a);a<n&&(n=a,r=i)}return this._i32idx[e.uint32]=r,r}sort(){this._i32idx={},this._pointArray.sort(((t,e)=>{const r=x(t.r,t.g,t.b),n=x(e.r,e.g,e.b),i=t.r===t.g&&t.g===t.b?0:1+it(r.h,10),o=(e.r===e.g&&e.g===e.b?0:1+it(n.h,10))-i;if(o)return-o;const a=t.getLuminosity(!0),s=e.getLuminosity(!0);if(s-a!=0)return s-a;const u=(100*n.s|0)-(100*r.s|0);return u?-u:0}))}},at={};i(at,{HueStatistics:()=>ut,Palette:()=>ot,Point:()=>rt,PointContainer:()=>nt,ProgressTracker:()=>lt,arithmetic:()=>d});var st=class{constructor(){o(this,\"num\",0),o(this,\"cols\",[])}},ut=class{constructor(t,e){o(this,\"_numGroups\"),o(this,\"_minCols\"),o(this,\"_stats\"),o(this,\"_groupsFull\"),this._numGroups=t,this._minCols=e,this._stats=[];for(let e=0;e<=t;e++)this._stats[e]=new st;this._groupsFull=0}check(t){this._groupsFull===this._numGroups+1&&(this.check=()=>{});const e=255&t,r=t>>>8&255,n=t>>>16&255,i=e===r&&r===n?0:1+it(x(e,r,n).h,this._numGroups),o=this._stats[i],a=this._minCols;o.num++,o.num>a||(o.num===a&&this._groupsFull++,o.num<=a&&this._stats[i].cols.push(t))}injectIntoDictionary(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{t[e]?t[e]++:t[e]=1}))}injectIntoArray(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{-1===t.indexOf(e)&&t.push(e)}))}},ct=class{constructor(t,e){o(this,\"progress\"),o(this,\"_step\"),o(this,\"_range\"),o(this,\"_last\"),o(this,\"_progressRange\"),this._range=t,this._progressRange=e,this._step=Math.max(1,this._range/(ct.steps+1)|0),this._last=-this._step,this.progress=0}shouldNotify(t){return t-this._last>=this._step&&(this._last=t,this.progress=Math.min(this._progressRange*this._last/this._range,this._progressRange),!0)}},lt=ct;o(lt,\"steps\",100);var ft=class{constructor(t){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return rt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=0|t,this.g-=0|e,this.b-=0|r,this.a-=0|n}},ht=class extends et{constructor(t,e=256){super(),o(this,\"_pointArray\"),o(this,\"_networkSize\"),o(this,\"_network\"),o(this,\"_sampleFactor\"),o(this,\"_radPower\"),o(this,\"_freq\"),o(this,\"_bias\"),o(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new ft((t<<11)/this._networkSize|0),this._freq[t]=ht._initialBias/this._networkSize|0,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<ht._minpicturebytes&&(t=1);const r=30+(t-1)/3|0,n=e/t|0;let i,o=n/ht._nCycles|0,a=ht._initAlpha,s=(this._networkSize>>3)*ht._radiusBias,u=s>>ht._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*ht._radBias/(u*u))>>>0;i=e<ht._minpicturebytes?1:e%ht._prime1!=0?ht._prime1:e%ht._prime2!=0?ht._prime2:e%ht._prime3!=0?ht._prime3:ht._prime4;const c=new lt(n,99);for(let t=0,l=0;t<n;){c.shouldNotify(t)&&(yield{progress:c.progress});const n=this._pointArray[l],f=n.b<<3,h=n.g<<3,p=n.r<<3,d=n.a<<3,m=this._contest(f,h,p,d);if(this._alterSingle(a,m,f,h,p,d),0!==u&&this._alterNeighbour(u,m,f,h,p,d),l+=i,l>=e&&(l-=e),t++,0===o&&(o=1),t%o==0){a-=a/r|0,s-=s/ht._radiusDecrease|0,u=s>>ht._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*ht._radBias/(u*u))>>>0}}}_buildPalette(){const t=new ot;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,o){let a=e-t;a<-1&&(a=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,c=e-1,l=1;for(;u<s||c>a;){const t=this._radPower[l++]/ht._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}if(c>a){const e=this._network[c--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}}}_alterSingle(t,e,r,n,i,o){t/=ht._initAlpha;const a=this._network[e];a.subtract(t*(a.r-i),t*(a.g-n),t*(a.b-r),t*(a.a-o))}_contest(t,e,r,n){let i=~(1<<31),o=i,a=-1,s=a;for(let u=0;u<this._networkSize;u++){const c=this._network[u],l=8160*this._distance.calculateNormalized(c,{r,g:e,b:t,a:n})|0;l<i&&(i=l,a=u);const f=l-(this._bias[u]>>ht._initialBiasShift-3);f<o&&(o=f,s=u);const h=this._freq[u]>>ht._betaShift;this._freq[u]-=h,this._bias[u]+=h<<ht._gammaShift}return this._freq[a]+=ht._beta,this._bias[a]-=ht._betaGamma,s}},pt=ht;o(pt,\"_prime1\",499),o(pt,\"_prime2\",491),o(pt,\"_prime3\",487),o(pt,\"_prime4\",503),o(pt,\"_minpicturebytes\",ht._prime4),o(pt,\"_nCycles\",100),o(pt,\"_initialBiasShift\",16),o(pt,\"_initialBias\",1<<ht._initialBiasShift),o(pt,\"_gammaShift\",10),o(pt,\"_betaShift\",10),o(pt,\"_beta\",ht._initialBias>>ht._betaShift),o(pt,\"_betaGamma\",ht._initialBias<<ht._gammaShift-ht._betaShift),o(pt,\"_radiusBiasShift\",6),o(pt,\"_radiusBias\",1<<ht._radiusBiasShift),o(pt,\"_radiusDecrease\",30),o(pt,\"_alphaBiasShift\",10),o(pt,\"_initAlpha\",1<<ht._alphaBiasShift),o(pt,\"_radBiasShift\",8),o(pt,\"_radBias\",1<<ht._radBiasShift),o(pt,\"_alphaRadBiasShift\",ht._alphaBiasShift+ht._radBiasShift),o(pt,\"_alphaRadBias\",1<<ht._alphaRadBiasShift);var dt=class{constructor(t){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return rt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=t,this.g-=e,this.b-=r,this.a-=n}},mt=class extends et{constructor(t,e=256){super(),o(this,\"_pointArray\"),o(this,\"_networkSize\"),o(this,\"_network\"),o(this,\"_sampleFactor\"),o(this,\"_radPower\"),o(this,\"_freq\"),o(this,\"_bias\"),o(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new dt((t<<11)/this._networkSize),this._freq[t]=mt._initialBias/this._networkSize,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<mt._minpicturebytes&&(t=1);const r=30+(t-1)/3,n=e/t;let i,o=n/mt._nCycles|0,a=mt._initAlpha,s=(this._networkSize>>3)*mt._radiusBias,u=s>>mt._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*mt._radBias/(u*u));i=e<mt._minpicturebytes?1:e%mt._prime1!=0?mt._prime1:e%mt._prime2!=0?mt._prime2:e%mt._prime3!=0?mt._prime3:mt._prime4;const c=new lt(n,99);for(let t=0,l=0;t<n;){c.shouldNotify(t)&&(yield{progress:c.progress});const n=this._pointArray[l],f=n.b<<3,h=n.g<<3,p=n.r<<3,d=n.a<<3,m=this._contest(f,h,p,d);if(this._alterSingle(a,m,f,h,p,d),0!==u&&this._alterNeighbour(u,m,f,h,p,d),l+=i,l>=e&&(l-=e),t++,0===o&&(o=1),t%o==0){a-=a/r,s-=s/mt._radiusDecrease,u=s>>mt._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*mt._radBias/(u*u))}}}_buildPalette(){const t=new ot;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,o){let a=e-t;a<-1&&(a=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,c=e-1,l=1;for(;u<s||c>a;){const t=this._radPower[l++]/mt._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}if(c>a){const e=this._network[c--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}}}_alterSingle(t,e,r,n,i,o){t/=mt._initAlpha;const a=this._network[e];a.subtract(t*(a.r-i),t*(a.g-n),t*(a.b-r),t*(a.a-o))}_contest(t,e,r,n){let i=~(1<<31),o=i,a=-1,s=a;for(let u=0;u<this._networkSize;u++){const c=this._network[u],l=8160*this._distance.calculateNormalized(c,{r,g:e,b:t,a:n});l<i&&(i=l,a=u);const f=l-(this._bias[u]>>mt._initialBiasShift-3);f<o&&(o=f,s=u);const h=this._freq[u]>>mt._betaShift;this._freq[u]-=h,this._bias[u]+=h<<mt._gammaShift}return this._freq[a]+=mt._beta,this._bias[a]-=mt._betaGamma,s}},yt=mt;o(yt,\"_prime1\",499),o(yt,\"_prime2\",491),o(yt,\"_prime3\",487),o(yt,\"_prime4\",503),o(yt,\"_minpicturebytes\",mt._prime4),o(yt,\"_nCycles\",100),o(yt,\"_initialBiasShift\",16),o(yt,\"_initialBias\",1<<mt._initialBiasShift),o(yt,\"_gammaShift\",10),o(yt,\"_betaShift\",10),o(yt,\"_beta\",mt._initialBias>>mt._betaShift),o(yt,\"_betaGamma\",mt._initialBias<<mt._gammaShift-mt._betaShift),o(yt,\"_radiusBiasShift\",6),o(yt,\"_radiusBias\",1<<mt._radiusBiasShift),o(yt,\"_radiusDecrease\",30),o(yt,\"_alphaBiasShift\",10),o(yt,\"_initAlpha\",1<<mt._alphaBiasShift),o(yt,\"_radBiasShift\",8),o(yt,\"_radBias\",1<<mt._radBiasShift),o(yt,\"_alphaRadBiasShift\",mt._alphaBiasShift+mt._radBiasShift),o(yt,\"_alphaRadBias\",1<<mt._alphaRadBiasShift);var gt=class{constructor(t,e){o(this,\"_method\"),o(this,\"_hueStats\"),o(this,\"_histogram\"),o(this,\"_initColors\"),o(this,\"_minHueCols\"),this._method=t,this._minHueCols=e<<2,this._initColors=e<<2,this._hueStats=new ut(gt._hueGroups,this._minHueCols),this._histogram=Object.create(null)}sample(t){switch(this._method){case 1:this._colorStats1D(t);break;case 2:this._colorStats2D(t)}}getImportanceSortedColorsIDXI32(){const t=_(Object.keys(this._histogram),((t,e)=>this._histogram[e]-this._histogram[t]));if(0===t.length)return[];let e;switch(this._method){case 1:const r=Math.min(t.length,this._initColors),n=t[r-1],i=this._histogram[n];e=t.slice(0,r);let o=r;const a=t.length;for(;o<a&&this._histogram[t[o]]===i;)e.push(t[o++]);this._hueStats.injectIntoArray(e);break;case 2:e=t;break;default:throw new Error(\"Incorrect method\")}return e.map((t=>+t))}_colorStats1D(t){const e=this._histogram,r=t.getPointArray(),n=r.length;for(let t=0;t<n;t++){const n=r[t].uint32;this._hueStats.check(n),n in e?e[n]++:e[n]=1}}_colorStats2D(t){const e=t.getWidth(),r=t.getHeight(),n=t.getPointArray(),i=gt._boxSize[0],o=gt._boxSize[1],a=i*o,s=this._makeBoxes(e,r,i,o),u=this._histogram;s.forEach((t=>{let r=Math.round(t.w*t.h/a)*gt._boxPixels;r<2&&(r=2);const i={};this._iterateBox(t,e,(t=>{const e=n[t].uint32;this._hueStats.check(e),e in u?u[e]++:e in i?++i[e]>=r&&(u[e]=i[e]):i[e]=1}))})),this._hueStats.injectIntoDictionary(u)}_iterateBox(t,e,r){const n=t,i=n.y*e+n.x,o=(n.y+n.h-1)*e+(n.x+n.w-1),a=e-n.w+1;let s=0,u=i;do{r.call(this,u),u+=++s%n.w==0?a:1}while(u<=o)}_makeBoxes(t,e,r,n){const i=t%r,o=e%n,a=t-i,s=e-o,u=[];for(let c=0;c<e;c+=n)for(let e=0;e<t;e+=r)u.push({x:e,y:c,w:e===a?i:r,h:c===s?o:n});return u}},bt=gt;o(bt,\"_boxSize\",[64,64]),o(bt,\"_boxPixels\",2),o(bt,\"_hueGroups\",10);var vt=class{constructor(t,e,r){o(this,\"index\"),o(this,\"color\"),o(this,\"distance\"),this.index=t,this.color=e,this.distance=r}},wt=class extends et{constructor(t,e=256,r=2){super(),o(this,\"_colors\"),o(this,\"_initialDistance\"),o(this,\"_distanceIncrement\"),o(this,\"_histogram\"),o(this,\"_distance\"),this._distance=t,this._colors=e,this._histogram=new bt(r,e),this._initialDistance=.01,this._distanceIncrement=.005}sample(t){this._histogram.sample(t)}*quantize(){const t=this._histogram.getImportanceSortedColorsIDXI32();if(0===t.length)throw new Error(\"No colors in image\");yield*this._buildPalette(t)}*_buildPalette(t){const e=new ot,r=e.getPointContainer().getPointArray(),n=new Array(t.length);for(let e=0;e<t.length;e++)r.push(rt.createByUint32(t[e])),n[e]=1;const i=r.length,o=[];let a=i,s=this._initialDistance;const u=new lt(a-this._colors,99);for(;a>this._colors;){o.length=0;for(let t=0;t<i;t++){if(u.shouldNotify(i-a)&&(yield{progress:u.progress}),0===n[t])continue;const e=r[t];for(let u=t+1;u<i;u++){if(0===n[u])continue;const t=r[u],i=this._distance.calculateNormalized(e,t);i<s&&(o.push(new vt(u,t,i)),n[u]=0,a--)}}s+=a>3*this._colors?this._initialDistance:this._distanceIncrement}if(a<this._colors){_(o,((t,e)=>e.distance-t.distance));let t=0;for(;a<this._colors&&t<o.length;){n[o[t].index]=1,a++,t++}}let c=r.length;for(let t=c-1;t>=0;t--)0===n[t]&&(t!==c-1&&(r[t]=r[c-1]),--c);r.length=c,e.sort(),yield{palette:e,progress:100}}};function _t(t){const e=[];for(let r=0;r<t;r++)e[r]=0;return e}function xt(t,e,r,n){const i=new Array(t);for(let o=0;o<t;o++){i[o]=new Array(e);for(let t=0;t<e;t++){i[o][t]=new Array(r);for(let e=0;e<r;e++){i[o][t][e]=new Array(n);for(let r=0;r<n;r++)i[o][t][e][r]=0}}}return i}function kt(t,e,r){const n=new Array(t);for(let i=0;i<t;i++){n[i]=new Array(e);for(let t=0;t<e;t++){n[i][t]=new Array(r);for(let e=0;e<r;e++)n[i][t][e]=0}}return n}function Et(t,e,r,n,i){for(let o=0;o<e;o++){t[o]=[];for(let e=0;e<r;e++){t[o][e]=[];for(let r=0;r<n;r++)t[o][e][r]=i}}}function St(t,e,r){for(let n=0;n<e;n++)t[n]=r}var Tt=class{constructor(){o(this,\"redMinimum\"),o(this,\"redMaximum\"),o(this,\"greenMinimum\"),o(this,\"greenMaximum\"),o(this,\"blueMinimum\"),o(this,\"blueMaximum\"),o(this,\"volume\"),o(this,\"alphaMinimum\"),o(this,\"alphaMaximum\")}},At=class extends et{constructor(t,e=256,r=5){super(),o(this,\"_reds\"),o(this,\"_greens\"),o(this,\"_blues\"),o(this,\"_alphas\"),o(this,\"_sums\"),o(this,\"_weights\"),o(this,\"_momentsRed\"),o(this,\"_momentsGreen\"),o(this,\"_momentsBlue\"),o(this,\"_momentsAlpha\"),o(this,\"_moments\"),o(this,\"_table\"),o(this,\"_pixels\"),o(this,\"_cubes\"),o(this,\"_colors\"),o(this,\"_significantBitsPerChannel\"),o(this,\"_maxSideIndex\"),o(this,\"_alphaMaxSideIndex\"),o(this,\"_sideSize\"),o(this,\"_alphaSideSize\"),o(this,\"_distance\"),this._distance=t,this._setQuality(r),this._initialize(e)}sample(t){const e=t.getPointArray();for(let t=0,r=e.length;t<r;t++)this._addColor(e[t]);this._pixels=this._pixels.concat(e)}*quantize(){yield*this._preparePalette();const t=new ot;for(let e=0;e<this._colors;e++)if(this._sums[e]>0){const r=this._sums[e],n=this._reds[e]/r,i=this._greens[e]/r,o=this._blues[e]/r,a=this._alphas[e]/r,s=rt.createByRGBA(0|n,0|i,0|o,0|a);t.add(s)}t.sort(),yield{palette:t,progress:100}}*_preparePalette(){yield*this._calculateMoments();let t=0;const e=_t(this._colors);for(let r=1;r<this._colors;++r){this._cut(this._cubes[t],this._cubes[r])?(e[t]=this._cubes[t].volume>1?this._calculateVariance(this._cubes[t]):0,e[r]=this._cubes[r].volume>1?this._calculateVariance(this._cubes[r]):0):(e[t]=0,r--),t=0;let n=e[0];for(let i=1;i<=r;++i)e[i]>n&&(n=e[i],t=i);if(n<=0){this._colors=r+1;break}}const r=[],n=[],i=[],o=[];for(let t=0;t<this._colors;++t){const e=At._volume(this._cubes[t],this._weights);e>0?(r[t]=At._volume(this._cubes[t],this._momentsRed)/e|0,n[t]=At._volume(this._cubes[t],this._momentsGreen)/e|0,i[t]=At._volume(this._cubes[t],this._momentsBlue)/e|0,o[t]=At._volume(this._cubes[t],this._momentsAlpha)/e|0):(r[t]=0,n[t]=0,i[t]=0,o[t]=0)}this._reds=_t(this._colors+1),this._greens=_t(this._colors+1),this._blues=_t(this._colors+1),this._alphas=_t(this._colors+1),this._sums=_t(this._colors+1);for(let t=0,e=this._pixels.length;t<e;t++){const e=this._pixels[t];let a=-1,s=Number.MAX_VALUE;for(let t=0;t<this._colors;t++){const u=r[t],c=n[t],l=i[t],f=o[t],h=this._distance.calculateRaw(u,c,l,f,e.r,e.g,e.b,e.a);h<s&&(s=h,a=t)}this._reds[a]+=e.r,this._greens[a]+=e.g,this._blues[a]+=e.b,this._alphas[a]+=e.a,this._sums[a]++}}_addColor(t){const e=8-this._significantBitsPerChannel,r=1+(t.r>>e),n=1+(t.g>>e),i=1+(t.b>>e),o=1+(t.a>>e);this._weights[o][r][n][i]++,this._momentsRed[o][r][n][i]+=t.r,this._momentsGreen[o][r][n][i]+=t.g,this._momentsBlue[o][r][n][i]+=t.b,this._momentsAlpha[o][r][n][i]+=t.a,this._moments[o][r][n][i]+=this._table[t.r]+this._table[t.g]+this._table[t.b]+this._table[t.a]}*_calculateMoments(){const t=[],e=[],r=[],n=[],i=[],o=[],a=kt(this._sideSize,this._sideSize,this._sideSize),s=kt(this._sideSize,this._sideSize,this._sideSize),u=kt(this._sideSize,this._sideSize,this._sideSize),c=kt(this._sideSize,this._sideSize,this._sideSize),l=kt(this._sideSize,this._sideSize,this._sideSize),f=kt(this._sideSize,this._sideSize,this._sideSize);let h=0;const p=new lt(this._alphaMaxSideIndex*this._maxSideIndex,99);for(let d=1;d<=this._alphaMaxSideIndex;++d){Et(a,this._sideSize,this._sideSize,this._sideSize,0),Et(s,this._sideSize,this._sideSize,this._sideSize,0),Et(u,this._sideSize,this._sideSize,this._sideSize,0),Et(c,this._sideSize,this._sideSize,this._sideSize,0),Et(l,this._sideSize,this._sideSize,this._sideSize,0),Et(f,this._sideSize,this._sideSize,this._sideSize,0);for(let m=1;m<=this._maxSideIndex;++m,++h){p.shouldNotify(h)&&(yield{progress:p.progress}),St(t,this._sideSize,0),St(e,this._sideSize,0),St(r,this._sideSize,0),St(n,this._sideSize,0),St(i,this._sideSize,0),St(o,this._sideSize,0);for(let h=1;h<=this._maxSideIndex;++h){let p=0,y=0,g=0,b=0,v=0,w=0;for(let _=1;_<=this._maxSideIndex;++_)p+=this._weights[d][m][h][_],y+=this._momentsRed[d][m][h][_],g+=this._momentsGreen[d][m][h][_],b+=this._momentsBlue[d][m][h][_],v+=this._momentsAlpha[d][m][h][_],w+=this._moments[d][m][h][_],t[_]+=p,e[_]+=y,r[_]+=g,n[_]+=b,i[_]+=v,o[_]+=w,a[m][h][_]=a[m-1][h][_]+t[_],s[m][h][_]=s[m-1][h][_]+e[_],u[m][h][_]=u[m-1][h][_]+r[_],c[m][h][_]=c[m-1][h][_]+n[_],l[m][h][_]=l[m-1][h][_]+i[_],f[m][h][_]=f[m-1][h][_]+o[_],this._weights[d][m][h][_]=this._weights[d-1][m][h][_]+a[m][h][_],this._momentsRed[d][m][h][_]=this._momentsRed[d-1][m][h][_]+s[m][h][_],this._momentsGreen[d][m][h][_]=this._momentsGreen[d-1][m][h][_]+u[m][h][_],this._momentsBlue[d][m][h][_]=this._momentsBlue[d-1][m][h][_]+c[m][h][_],this._momentsAlpha[d][m][h][_]=this._momentsAlpha[d-1][m][h][_]+l[m][h][_],this._moments[d][m][h][_]=this._moments[d-1][m][h][_]+f[m][h][_]}}}}static _volumeFloat(t,e){return e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMaximum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum])}static _volume(t,e){return 0|At._volumeFloat(t,e)}static _top(t,e,r,n){let i;switch(e){case At._alpha:i=n[r][t.redMaximum][t.greenMaximum][t.blueMaximum]-n[r][t.redMaximum][t.greenMinimum][t.blueMaximum]-n[r][t.redMinimum][t.greenMaximum][t.blueMaximum]+n[r][t.redMinimum][t.greenMinimum][t.blueMaximum]-(n[r][t.redMaximum][t.greenMaximum][t.blueMinimum]-n[r][t.redMaximum][t.greenMinimum][t.blueMinimum]-n[r][t.redMinimum][t.greenMaximum][t.blueMinimum]+n[r][t.redMinimum][t.greenMinimum][t.blueMinimum]);break;case At._red:i=n[t.alphaMaximum][r][t.greenMaximum][t.blueMaximum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMaximum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMaximum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMaximum]-(n[t.alphaMaximum][r][t.greenMaximum][t.blueMinimum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMinimum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMinimum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMinimum]);break;case At._green:i=n[t.alphaMaximum][t.redMaximum][r][t.blueMaximum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMaximum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMaximum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMaximum]-(n[t.alphaMaximum][t.redMaximum][r][t.blueMinimum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMinimum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMinimum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMinimum]);break;case At._blue:i=n[t.alphaMaximum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMaximum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMaximum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMaximum][t.redMinimum][t.greenMinimum][r]-(n[t.alphaMinimum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMinimum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMinimum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMinimum][t.redMinimum][t.greenMinimum][r]);break;default:throw new Error(\"impossible\")}return 0|i}static _bottom(t,e,r){switch(e){case At._alpha:return-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case At._red:return-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case At._green:return-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case At._blue:return-r[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);default:return 0}}_calculateVariance(t){const e=At._volume(t,this._momentsRed),r=At._volume(t,this._momentsGreen),n=At._volume(t,this._momentsBlue),i=At._volume(t,this._momentsAlpha);return At._volumeFloat(t,this._moments)-(e*e+r*r+n*n+i*i)/At._volume(t,this._weights)}_maximize(t,e,r,n,i,o,a,s,u){const c=0|At._bottom(t,e,this._momentsRed),l=0|At._bottom(t,e,this._momentsGreen),f=0|At._bottom(t,e,this._momentsBlue),h=0|At._bottom(t,e,this._momentsAlpha),p=0|At._bottom(t,e,this._weights);let d=0,m=-1;for(let y=r;y<n;++y){let r=c+At._top(t,e,y,this._momentsRed),n=l+At._top(t,e,y,this._momentsGreen),g=f+At._top(t,e,y,this._momentsBlue),b=h+At._top(t,e,y,this._momentsAlpha),v=p+At._top(t,e,y,this._weights);if(0!==v){let t=r*r+n*n+g*g+b*b,e=t/v;r=i-r,n=o-n,g=a-g,b=s-b,v=u-v,0!==v&&(t=r*r+n*n+g*g+b*b,e+=t/v,e>d&&(d=e,m=y))}}return{max:d,position:m}}_cut(t,e){let r;const n=At._volume(t,this._momentsRed),i=At._volume(t,this._momentsGreen),o=At._volume(t,this._momentsBlue),a=At._volume(t,this._momentsAlpha),s=At._volume(t,this._weights),u=this._maximize(t,At._red,t.redMinimum+1,t.redMaximum,n,i,o,a,s),c=this._maximize(t,At._green,t.greenMinimum+1,t.greenMaximum,n,i,o,a,s),l=this._maximize(t,At._blue,t.blueMinimum+1,t.blueMaximum,n,i,o,a,s),f=this._maximize(t,At._alpha,t.alphaMinimum+1,t.alphaMaximum,n,i,o,a,s);if(f.max>=u.max&&f.max>=c.max&&f.max>=l.max){if(r=At._alpha,f.position<0)return!1}else r=u.max>=f.max&&u.max>=c.max&&u.max>=l.max?At._red:c.max>=f.max&&c.max>=u.max&&c.max>=l.max?At._green:At._blue;switch(e.redMaximum=t.redMaximum,e.greenMaximum=t.greenMaximum,e.blueMaximum=t.blueMaximum,e.alphaMaximum=t.alphaMaximum,r){case At._red:e.redMinimum=t.redMaximum=u.position,e.greenMinimum=t.greenMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case At._green:e.greenMinimum=t.greenMaximum=c.position,e.redMinimum=t.redMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case At._blue:e.blueMinimum=t.blueMaximum=l.position,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum,e.alphaMinimum=t.alphaMinimum;break;case At._alpha:e.alphaMinimum=t.alphaMaximum=f.position,e.blueMinimum=t.blueMinimum,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum}return t.volume=(t.redMaximum-t.redMinimum)*(t.greenMaximum-t.greenMinimum)*(t.blueMaximum-t.blueMinimum)*(t.alphaMaximum-t.alphaMinimum),e.volume=(e.redMaximum-e.redMinimum)*(e.greenMaximum-e.greenMinimum)*(e.blueMaximum-e.blueMinimum)*(e.alphaMaximum-e.alphaMinimum),!0}_initialize(t){this._colors=t,this._cubes=[];for(let e=0;e<t;e++)this._cubes[e]=new Tt;this._cubes[0].redMinimum=0,this._cubes[0].greenMinimum=0,this._cubes[0].blueMinimum=0,this._cubes[0].alphaMinimum=0,this._cubes[0].redMaximum=this._maxSideIndex,this._cubes[0].greenMaximum=this._maxSideIndex,this._cubes[0].blueMaximum=this._maxSideIndex,this._cubes[0].alphaMaximum=this._alphaMaxSideIndex,this._weights=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsRed=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsGreen=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsBlue=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsAlpha=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._moments=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._table=[];for(let t=0;t<256;++t)this._table[t]=t*t;this._pixels=[]}_setQuality(t=5){this._significantBitsPerChannel=t,this._maxSideIndex=1<<this._significantBitsPerChannel,this._alphaMaxSideIndex=this._maxSideIndex,this._sideSize=this._maxSideIndex+1,this._alphaSideSize=this._alphaMaxSideIndex+1}},Dt=At;o(Dt,\"_alpha\",3),o(Dt,\"_red\",2),o(Dt,\"_green\",1),o(Dt,\"_blue\",0);var Ot={};i(Ot,{AbstractImageQuantizer:()=>It,ErrorDiffusionArray:()=>Lt,ErrorDiffusionArrayKernel:()=>Ct,ErrorDiffusionRiemersma:()=>jt,NearestColor:()=>Pt});var It=class{quantizeSync(t,e){for(const r of this.quantize(t,e))if(r.pointContainer)return r.pointContainer;throw new Error(\"unreachable\")}},Pt=class extends It{constructor(t){super(),o(this,\"_distance\"),this._distance=t}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),o=new lt(i,99);for(let t=0;t<i;t++){o.shouldNotify(t)&&(yield{progress:o.progress});for(let i=0,o=t*n;i<n;i++,o++){const t=r[o];t.from(e.getNearestColor(this._distance,t))}}yield{pointContainer:t,progress:100}}},Ct=(t=>(t[t.FloydSteinberg=0]=\"FloydSteinberg\",t[t.FalseFloydSteinberg=1]=\"FalseFloydSteinberg\",t[t.Stucki=2]=\"Stucki\",t[t.Atkinson=3]=\"Atkinson\",t[t.Jarvis=4]=\"Jarvis\",t[t.Burkes=5]=\"Burkes\",t[t.Sierra=6]=\"Sierra\",t[t.TwoSierra=7]=\"TwoSierra\",t[t.SierraLite=8]=\"SierraLite\",t))(Ct||{}),Lt=class extends It{constructor(t,e,r=!0,n=0,i=!1){super(),o(this,\"_minColorDistance\"),o(this,\"_serpentine\"),o(this,\"_kernel\"),o(this,\"_calculateErrorLikeGIMP\"),o(this,\"_distance\"),this._setKernel(e),this._distance=t,this._minColorDistance=n,this._serpentine=r,this._calculateErrorLikeGIMP=i}*quantize(t,e){const r=t.getPointArray(),n=new rt,i=t.getWidth(),o=t.getHeight(),a=[];let s=1,u=1;for(const t of this._kernel){const e=t[2]+1;u<e&&(u=e)}for(let t=0;t<u;t++)this._fillErrorLine(a[t]=[],i);const c=new lt(o,99);for(let t=0;t<o;t++){c.shouldNotify(t)&&(yield{progress:c.progress}),this._serpentine&&(s*=-1);const u=t*i,l=1===s?0:i-1,f=1===s?i:-1;this._fillErrorLine(a[0],i),a.push(a.shift());const h=a[0];for(let c=l,p=u+l;c!==f;c+=s,p+=s){const u=r[p],l=h[c];n.from(u);const f=rt.createByRGBA(v(u.r+l[0]),v(u.g+l[1]),v(u.b+l[2]),v(u.a+l[3])),d=e.getNearestColor(this._distance,f);if(u.from(d),this._minColorDistance){if(this._distance.calculateNormalized(n,d)<this._minColorDistance)continue}let m,y,g,b;this._calculateErrorLikeGIMP?(m=f.r-d.r,y=f.g-d.g,g=f.b-d.b,b=f.a-d.a):(m=n.r-d.r,y=n.g-d.g,g=n.b-d.b,b=n.a-d.a);const w=1===s?0:this._kernel.length-1,_=1===s?this._kernel.length:-1;for(let e=w;e!==_;e+=s){const r=this._kernel[e][1]*s,n=this._kernel[e][2];if(r+c>=0&&r+c<i&&n+t>=0&&n+t<o){const t=this._kernel[e][0],i=a[n][r+c];i[0]+=m*t,i[1]+=y*t,i[2]+=g*t,i[3]+=b*t}}}}yield{pointContainer:t,progress:100}}_fillErrorLine(t,e){t.length>e&&(t.length=e);const r=t.length;for(let e=0;e<r;e++){const r=t[e];r[0]=r[1]=r[2]=r[3]=0}for(let n=r;n<e;n++)t[n]=[0,0,0,0]}_setKernel(t){switch(t){case 0:this._kernel=[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]];break;case 1:this._kernel=[[3/8,1,0],[3/8,0,1],[2/8,1,1]];break;case 2:this._kernel=[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]];break;case 3:this._kernel=[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]];break;case 4:this._kernel=[[7/48,1,0],[5/48,2,0],[3/48,-2,1],[5/48,-1,1],[7/48,0,1],[5/48,1,1],[3/48,2,1],[1/48,-2,2],[3/48,-1,2],[5/48,0,2],[3/48,1,2],[1/48,2,2]];break;case 5:this._kernel=[[.25,1,0],[4/32,2,0],[2/32,-2,1],[4/32,-1,1],[.25,0,1],[4/32,1,1],[2/32,2,1]];break;case 6:this._kernel=[[5/32,1,0],[3/32,2,0],[2/32,-2,1],[4/32,-1,1],[5/32,0,1],[4/32,1,1],[2/32,2,1],[2/32,-1,2],[3/32,0,2],[2/32,1,2]];break;case 7:this._kernel=[[.25,1,0],[3/16,2,0],[1/16,-2,1],[2/16,-1,1],[3/16,0,1],[2/16,1,1],[1/16,2,1]];break;case 8:this._kernel=[[.5,1,0],[1/4,-1,1],[1/4,0,1]];break;default:throw new Error(`ErrorDiffusionArray: unknown kernel = ${t}`)}}};function*Mt(t,e,r){const n=Math.max(t,e),i={width:t,height:e,level:Math.floor(Math.log(n)/Math.log(2)+1),callback:r,tracker:new lt(t*e,99),index:0,x:0,y:0};yield*Ft(i,1),Bt(i,0)}function*Ft(t,e){if(!(t.level<1)){switch(t.tracker.shouldNotify(t.index)&&(yield{progress:t.tracker.progress}),t.level--,e){case 2:yield*Ft(t,1),Bt(t,3),yield*Ft(t,2),Bt(t,4),yield*Ft(t,2),Bt(t,2),yield*Ft(t,4);break;case 3:yield*Ft(t,4),Bt(t,2),yield*Ft(t,3),Bt(t,1),yield*Ft(t,3),Bt(t,3),yield*Ft(t,1);break;case 1:yield*Ft(t,2),Bt(t,4),yield*Ft(t,1),Bt(t,3),yield*Ft(t,1),Bt(t,1),yield*Ft(t,3);break;case 4:yield*Ft(t,3),Bt(t,1),yield*Ft(t,4),Bt(t,2),yield*Ft(t,4),Bt(t,4),yield*Ft(t,2)}t.level++}}function Bt(t,e){switch(t.x>=0&&t.x<t.width&&t.y>=0&&t.y<t.height&&(t.callback(t.x,t.y),t.index++),e){case 2:t.x--;break;case 3:t.x++;break;case 1:t.y--;break;case 4:t.y++}}var jt=class extends It{constructor(t,e=16,r=1){super(),o(this,\"_distance\"),o(this,\"_weights\"),o(this,\"_errorQueueSize\"),this._distance=t,this._errorQueueSize=e,this._weights=jt._createWeights(r,e)}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),o=[];let a=0;for(let t=0;t<this._errorQueueSize;t++)o[t]={r:0,g:0,b:0,a:0};yield*Mt(n,i,((t,i)=>{const s=r[t+i*n];let{r:u,g:c,b:l,a:f}=s;for(let t=0;t<this._errorQueueSize;t++){const e=this._weights[t],r=o[(t+a)%this._errorQueueSize];u+=r.r*e,c+=r.g*e,l+=r.b*e,f+=r.a*e}const h=rt.createByRGBA(v(u),v(c),v(l),v(f)),p=e.getNearestColor(this._distance,h);a=(a+1)%this._errorQueueSize;const d=(a+this._errorQueueSize-1)%this._errorQueueSize;o[d].r=s.r-p.r,o[d].g=s.g-p.g,o[d].b=s.b-p.b,o[d].a=s.a-p.a,s.from(p)})),yield{pointContainer:t,progress:100}}static _createWeights(t,e){const r=[],n=Math.exp(Math.log(e)/(e-1));for(let i=0,o=1;i<e;i++)r[i]=(o+.5|0)/e*t,o*=n;return r}},Nt={};i(Nt,{ssim:()=>Ut});var Rt=.01,zt=.03;function Ut(t,e){if(t.getHeight()!==e.getHeight()||t.getWidth()!==e.getWidth())throw new Error(\"Images have different sizes!\");const r=(255*Rt)**2,n=(255*zt)**2;let i=0,o=0;return function(t,e,r){const n=8,i=t.getWidth(),o=t.getHeight();for(let a=0;a<o;a+=n)for(let s=0;s<i;s+=n){const u=Math.min(n,i-s),c=Math.min(n,o-a),l=Gt(t,s,a,u,c),f=Gt(e,s,a,u,c);r(l,f,Ht(l),Ht(f))}}(t,e,((t,e,a,s)=>{let u=0,c=0,l=0;for(let r=0;r<t.length;r++)c+=(t[r]-a)**2,l+=(e[r]-s)**2,u+=(t[r]-a)*(e[r]-s);const f=t.length-1;c/=f,l/=f,u/=f;o+=(2*a*s+r)*(2*u+n)/((a**2+s**2+r)*(c+l+n)),i++})),o/i}function Gt(t,e,r,n,i){const o=t.getPointArray(),a=[];let s=0;for(let u=r;u<r+i;u++){const r=u*t.getWidth();for(let t=e;t<e+n;t++){const e=o[r+t];a[s]=.2126*e.r+.7152*e.g+.0722*e.b,s++}}return a}function Ht(t){let e=0;for(const r of t)e+=r;return e/t.length}var qt=\"function\"==typeof setImmediate?setImmediate:\"undefined\"!=typeof process&&\"function\"==typeof(null==process?void 0:process.nextTick)?t=>process.nextTick(t):t=>setTimeout(t,0);function Vt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n}={}){const i=Jt(Xt(e),r,n);return t.forEach((t=>i.sample(t))),i.quantizeSync()}async function Wt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n,onProgress:i}={}){return new Promise(((o,a)=>{const s=Jt(Xt(e),r,n);let u;t.forEach((t=>s.sample(t)));const c=s.quantize(),l=()=>{try{const t=c.next();t.done?o(u):(t.value.palette&&(u=t.value.palette),i&&i(t.value.progress),qt(l))}catch(t){a(t)}};qt(l)}))}function Zt(t,e,{colorDistanceFormula:r,imageQuantization:n}={}){return Kt(Xt(r),n).quantizeSync(t,e)}async function Yt(t,e,{colorDistanceFormula:r,imageQuantization:n,onProgress:i}={}){return new Promise(((o,a)=>{let s;const u=Kt(Xt(r),n).quantize(t,e),c=()=>{try{const t=u.next();t.done?o(s):(t.value.pointContainer&&(s=t.value.pointContainer),i&&i(t.value.progress),qt(c))}catch(t){a(t)}};qt(c)}))}function Xt(t=\"euclidean-bt709\"){switch(t){case\"cie94-graphic-arts\":return new U;case\"cie94-textiles\":return new z;case\"ciede2000\":return new H;case\"color-metric\":return new q;case\"euclidean\":return new W;case\"euclidean-bt709\":return new Z;case\"euclidean-bt709-noalpha\":return new Y;case\"manhattan\":return new K;case\"manhattan-bt709\":return new $;case\"manhattan-nommyde\":return new J;case\"pngquant\":return new Q;default:throw new Error(`Unknown colorDistanceFormula ${t}`)}}function Kt(t,e=\"floyd-steinberg\"){switch(e){case\"nearest\":return new Pt(t);case\"riemersma\":return new jt(t);case\"floyd-steinberg\":return new Lt(t,0);case\"false-floyd-steinberg\":return new Lt(t,1);case\"stucki\":return new Lt(t,2);case\"atkinson\":return new Lt(t,3);case\"jarvis\":return new Lt(t,4);case\"burkes\":return new Lt(t,5);case\"sierra\":return new Lt(t,6);case\"two-sierra\":return new Lt(t,7);case\"sierra-lite\":return new Lt(t,8);default:throw new Error(`Unknown imageQuantization ${e}`)}}function Jt(t,e=\"wuquant\",r=256){switch(e){case\"neuquant\":return new pt(t,r);case\"rgbquant\":return new wt(t,r);case\"wuquant\":return new Dt(t,r);case\"neuquant-float\":return new yt(t,r);default:throw new Error(`Unknown paletteQuantization ${e}`)}}},function(t,e,r){\"use strict\";var n=r(208),i=r(209),o=r(210),a=r(98);function s(t,e,r){var n=t;return i(e)?(r=e,\"string\"==typeof t&&(n={uri:t})):n=a(e,{uri:t}),n.callback=r,n}function u(t,e,r){return c(e=s(t,e,r))}function c(t){if(void 0===t.callback)throw new Error(\"callback argument missing\");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=l.response?l.response:l.responseText||function(t){try{if(\"document\"===t.responseType)return t.responseXML;var e=t.responseXML&&\"parsererror\"===t.responseXML.documentElement.nodeName;if(\"\"===t.responseType&&!e)return t.responseXML}catch(t){}return null}(l),g)try{t=JSON.parse(t)}catch(t){}return t}function i(t){return clearTimeout(f),t instanceof Error||(t=new Error(\"\"+(t||\"Unknown XMLHttpRequest Error\"))),t.statusCode=0,r(t,b)}function a(){if(!c){var e;clearTimeout(f),e=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var i=b,a=null;return 0!==e?(i={body:n(),statusCode:e,method:p,headers:{},url:h,rawRequest:l},l.getAllResponseHeaders&&(i.headers=o(l.getAllResponseHeaders()))):a=new Error(\"Internal XMLHttpRequest Error\"),r(a,i,i.body)}}var s,c,l=t.xhr||null;l||(l=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var f,h=l.url=t.uri||t.url,p=l.method=t.method||\"GET\",d=t.body||t.data,m=l.headers=t.headers||{},y=!!t.sync,g=!1,b={body:void 0,headers:{},statusCode:0,method:p,url:h,rawRequest:l};if(\"json\"in t&&!1!==t.json&&(g=!0,m.accept||m.Accept||(m.Accept=\"application/json\"),\"GET\"!==p&&\"HEAD\"!==p&&(m[\"content-type\"]||m[\"Content-Type\"]||(m[\"Content-Type\"]=\"application/json\"),d=JSON.stringify(!0===t.json?d:t.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(a,0)},l.onload=a,l.onerror=i,l.onprogress=function(){},l.onabort=function(){c=!0},l.ontimeout=i,l.open(p,h,!y,t.username,t.password),y||(l.withCredentials=!!t.withCredentials),!y&&t.timeout>0&&(f=setTimeout((function(){if(!c){c=!0,l.abort(\"timeout\");var t=new Error(\"XMLHttpRequest timeout\");t.code=\"ETIMEDOUT\",i(t)}}),t.timeout)),l.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&l.setRequestHeader(s,m[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error(\"Headers cannot be set on an XDomainRequest object\");return\"responseType\"in t&&(l.responseType=t.responseType),\"beforeSend\"in t&&\"function\"==typeof t.beforeSend&&t.beforeSend(l),l.send(d||null),l}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest=\"withCredentials\"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}([\"get\",\"put\",\"post\",\"patch\",\"head\",\"delete\"],(function(t){u[\"delete\"===t?\"del\":t]=function(e,r,n){return(r=s(e,r,n)).method=t.toUpperCase(),c(r)}}))},function(t,e,r){(function(e){var r;r=\"undefined\"!=typeof window?window:void 0!==e?e:\"undefined\"!=typeof self?self:{},t.exports=r}).call(this,r(10))},function(t,e){t.exports=function(t){if(!t)return!1;var e=r.call(t);return\"[object Function]\"===e||\"function\"==typeof t&&\"[object RegExp]\"!==e||\"undefined\"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var r=Object.prototype.toString},function(t,e){var r=function(t){return t.replace(/^\\s+|\\s+$/g,\"\")};t.exports=function(t){if(!t)return{};for(var e,n={},i=r(t).split(\"\\n\"),o=0;o<i.length;o++){var a=i[o],s=a.indexOf(\":\"),u=r(a.slice(0,s)).toLowerCase(),c=r(a.slice(s+1));void 0===n[u]?n[u]=c:(e=n[u],\"[object Array]\"===Object.prototype.toString.call(e)?n[u].push(c):n[u]=[n[u],c])}return n}},function(t,e){function r(t,e){if(!(t=t.replace(/\\t+/g,\" \").trim()))return null;var r=t.indexOf(\" \");if(-1===r)throw new Error(\"no named row at line \"+e);var i=t.substring(0,r);t=(t=(t=(t=t.substring(r+1)).replace(/letter=[\\'\\\"]\\S+[\\'\\\"]/gi,\"\")).split(\"=\")).map((function(t){return t.trim().match(/(\".*?\"|[^\"\\s]+)+(?=\\s*|\\s*$)/g)}));for(var o=[],a=0;a<t.length;a++){var s=t[a];0===a?o.push({key:s[0],data:\"\"}):a===t.length-1?o[o.length-1].data=n(s[0]):(o[o.length-1].data=n(s[0]),o.push({key:s[1],data:\"\"}))}var u={key:i,data:{}};return o.forEach((function(t){u.data[t.key]=t.data})),u}function n(t){return t&&0!==t.length?0===t.indexOf('\"')||0===t.indexOf(\"'\")?t.substring(1,t.length-1):-1!==t.indexOf(\",\")?function(t){return t.split(\",\").map((function(t){return parseInt(t,10)}))}(t):parseInt(t,10):\"\"}t.exports=function(t){if(!t)throw new Error(\"no data provided\");var e={pages:[],chars:[],kernings:[]},n=(t=t.toString().trim()).split(/\\r\\n?|\\n/g);if(0===n.length)throw new Error(\"no data in BMFont file\");for(var i=0;i<n.length;i++){var o=r(n[i],i);if(o)if(\"page\"===o.key){if(\"number\"!=typeof o.data.id)throw new Error(\"malformed file at line \"+i+\" -- needs page id=N\");if(\"string\"!=typeof o.data.file)throw new Error(\"malformed file at line \"+i+' -- needs page file=\"path\"');e.pages[o.data.id]=o.data.file}else\"chars\"===o.key||\"kernings\"===o.key||(\"char\"===o.key?e.chars.push(o.data):\"kerning\"===o.key?e.kernings.push(o.data):e[o.key]=o.data)}return e}},function(t,e,r){var n=r(213),i=r(214),o={scaleh:\"scaleH\",scalew:\"scaleW\",stretchh:\"stretchH\",lineheight:\"lineHeight\",alphachnl:\"alphaChnl\",redchnl:\"redChnl\",greenchnl:\"greenChnl\",bluechnl:\"blueChnl\"};function a(t){var e=function(t){for(var e=[],r=0;r<t.attributes.length;r++)e.push(t.attributes[r]);return e}(t);return e.reduce((function(t,e){var r;return t[(r=e.nodeName,o[r.toLowerCase()]||r)]=e.nodeValue,t}),{})}t.exports=function(t){t=t.toString();var e=i(t),r={pages:[],chars:[],kernings:[]};[\"info\",\"common\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];i&&(r[t]=n(a(i)))}));var o=e.getElementsByTagName(\"pages\")[0];if(!o)throw new Error(\"malformed file -- no <pages> element\");for(var s=o.getElementsByTagName(\"page\"),u=0;u<s.length;u++){var c=s[u],l=parseInt(c.getAttribute(\"id\"),10),f=c.getAttribute(\"file\");if(isNaN(l))throw new Error('malformed file -- page \"id\" attribute is NaN');if(!f)throw new Error('malformed file -- needs page \"file\" attribute');r.pages[parseInt(l,10)]=f}return[\"chars\",\"kernings\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];if(i)for(var o=t.substring(0,t.length-1),s=i.getElementsByTagName(o),u=0;u<s.length;u++){var c=s[u];r[t].push(n(a(c)))}})),r}},function(t,e){var r=\"chasrset\";t.exports=function(t){for(var e in t=Object.assign({},t),r in t&&(t.charset=t[r],delete t[r]),t)\"face\"!==e&&\"charset\"!==e&&(t[e]=\"padding\"===e||\"spacing\"===e?t[e].split(\",\").map((function(t){return parseInt(t,10)})):parseInt(t[e],10));return t}},function(t,e){t.exports=void 0!==self.DOMParser?function(t){return(new self.DOMParser).parseFromString(t,\"application/xml\")}:void 0!==self.ActiveXObject&&new self.ActiveXObject(\"Microsoft.XMLDOM\")?function(t){var e=new self.ActiveXObject(\"Microsoft.XMLDOM\");return e.async=\"false\",e.loadXML(t),e}:function(t){var e=document.createElement(\"div\");return e.innerHTML=t,e}},function(t,e){var r=[66,77,70];function n(t,e,r){if(r>e.length-1)return 0;var n=e.readUInt8(r++),o=e.readInt32LE(r);switch(r+=4,n){case 1:t.info=function(t,e){var r={};r.size=t.readInt16LE(e);var n=t.readUInt8(e+2);r.smooth=n>>7&1,r.unicode=n>>6&1,r.italic=n>>5&1,r.bold=n>>4&1,n>>3&1&&(r.fixedHeight=1);return r.charset=t.readUInt8(e+3)||\"\",r.stretchH=t.readUInt16LE(e+4),r.aa=t.readUInt8(e+6),r.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],r.spacing=[t.readInt8(e+11),t.readInt8(e+12)],r.outline=t.readUInt8(e+13),r.face=function(t,e){return i(t,e).toString(\"utf8\")}(t,e+14),r}(e,r);break;case 2:t.common=function(t,e){var r={};r.lineHeight=t.readUInt16LE(e),r.base=t.readUInt16LE(e+2),r.scaleW=t.readUInt16LE(e+4),r.scaleH=t.readUInt16LE(e+6),r.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return r.packed=0,r.alphaChnl=t.readUInt8(e+11),r.redChnl=t.readUInt8(e+12),r.greenChnl=t.readUInt8(e+13),r.blueChnl=t.readUInt8(e+14),r}(e,r);break;case 3:t.pages=function(t,e,r){for(var n=[],o=i(t,e),a=o.length+1,s=r/a,u=0;u<s;u++)n[u]=t.slice(e,e+o.length).toString(\"utf8\"),e+=a;return n}(e,r,o);break;case 4:t.chars=function(t,e,r){for(var n=[],i=r/20,o=0;o<i;o++){var a={},s=20*o;a.id=t.readUInt32LE(e+0+s),a.x=t.readUInt16LE(e+4+s),a.y=t.readUInt16LE(e+6+s),a.width=t.readUInt16LE(e+8+s),a.height=t.readUInt16LE(e+10+s),a.xoffset=t.readInt16LE(e+12+s),a.yoffset=t.readInt16LE(e+14+s),a.xadvance=t.readInt16LE(e+16+s),a.page=t.readUInt8(e+18+s),a.chnl=t.readUInt8(e+19+s),n[o]=a}return n}(e,r,o);break;case 5:t.kernings=function(t,e,r){for(var n=[],i=r/10,o=0;o<i;o++){var a={},s=10*o;a.first=t.readUInt32LE(e+0+s),a.second=t.readUInt32LE(e+4+s),a.amount=t.readInt16LE(e+8+s),n[o]=a}return n}(e,r,o)}return 5+o}function i(t,e){for(var r=e;r<t.length&&0!==t[r];r++);return t.slice(e,r)}t.exports=function(t){if(t.length<6)throw new Error(\"invalid buffer length for BMFont\");var e=r.every((function(e,r){return t.readUInt8(r)===e}));if(!e)throw new Error(\"BMFont missing BMF byte header\");var i=3;if(t.readUInt8(i++)>3)throw new Error(\"Only supports BMFont Binary v3 (BMFont App v1.10)\");for(var o={kernings:[],chars:[]},a=0;a<5;a++)i+=n(o,t,i);return o}},function(t,e,r){(function(e){var n=r(217),i=e.from([66,77,70,3]);t.exports=function(t){return\"string\"==typeof t?\"BMF\"===t.substring(0,3):t.length>4&&n(t.slice(0,4),i)}}).call(this,r(2).Buffer)},function(t,e,r){var n=r(2).Buffer;t.exports=function(t,e){if(n.isBuffer(t)&&n.isBuffer(e)){if(\"function\"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}}},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e,r,n){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,r,n)}i.prototype.run=function(t,e,r,n){this._init(t,e,r,n);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var o=this._regionQuery(i);if(o.length<this.minPts)this.noise.push(i);else{var a=this.clusters.length;this.clusters.push([]),this._addToCluster(i,a),this._expandCluster(a,o)}}return this.clusters},i.prototype._init=function(t,e,r,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+n(t)+\" given\");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),r&&(this.minPts=r),i&&(this.distance=i)},i.prototype._expandCluster=function(t,e){for(var r=0;r<e.length;r++){var n=e[r];if(1!==this._visited[n]){this._visited[n]=1;var i=this._regionQuery(n);i.length>=this.minPts&&(e=this._mergeArrays(e,i))}1!==this._assigned[n]&&this._addToCluster(n,t)}},i.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},i.prototype._regionQuery=function(t){for(var e=[],r=0;r<this._datasetLength;r++){this.distance(this.dataset[t],this.dataset[r])<this.epsilon&&e.push(r)}return e},i.prototype._mergeArrays=function(t,e){for(var r=e.length,n=0;n<r;n++){var i=e[n];t.indexOf(i)<0&&t.push(i)}return t},i.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=i)},function(t,e,r){function n(t,e,r){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,r)}n.prototype.init=function(t,e,r){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==r&&(this.distance=r)},n.prototype.run=function(t,e){this.init(t,e);for(var r=this.dataset.length,n=0;n<this.k;n++)this.centroids[n]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var o=0;o<this.k;o++){for(var a=new Array(l),s=0,u=0;u<l;u++)a[u]=0;for(var c=0;c<r;c++){var l=this.dataset[c].length;if(o===this.assignments[c]){for(u=0;u<l;u++)a[u]+=this.dataset[c][u];s++}}if(s>0){for(u=0;u<l;u++)a[u]/=s;this.centroids[o]=a}else this.centroids[o]=this.randomCentroid(),i=!0}}return this.getClusters()},n.prototype.randomCentroid=function(){var t,e,r=this.dataset.length-1;do{e=Math.round(Math.random()*r),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},n.prototype.assign=function(){for(var t,e=!1,r=this.dataset.length,n=0;n<r;n++)(t=this.argmin(this.dataset[n],this.centroids,this.distance))!=this.assignments[n]&&(this.assignments[n]=t,e=!0);return e},n.prototype.getClusters=function(){for(var t,e=new Array(this.k),r=0;r<this.assignments.length;r++)void 0===e[t=this.assignments[r]]&&(e[t]=[]),e[t].push(r);return e},n.prototype.argmin=function(t,e,r){for(var n,i=Number.MAX_VALUE,o=0,a=e.length,s=0;s<a;s++)(n=r(t,e[s]))<i&&(i=n,o=s);return o},n.prototype.distance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)},t.exports&&(t.exports=n)},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}if(t.exports)var i=r(99);function o(t,e,r,n){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,r,n)}o.prototype.run=function(t,e,r,n){this._init(t,e,r,n);for(var o=0,a=this.dataset.length;o<a;o++)if(1!==this._processed[o]){this._processed[o]=1,this.clusters.push([o]);var s=this.clusters.length-1;this._orderedList.push(o);var u=new i(null,null,\"asc\"),c=this._regionQuery(o);void 0!==this._distanceToCore(o)&&(this._updateQueue(o,c,u),this._expandCluster(s,u))}return this.clusters},o.prototype.getReachabilityPlot=function(){for(var t=[],e=0,r=this._orderedList.length;e<r;e++){var n=this._orderedList[e],i=this._reachability[n];t.push([n,i])}return t},o.prototype._init=function(t,e,r,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+n(t)+\" given\");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),r&&(this.minPts=r),i&&(this.distance=i)},o.prototype._updateQueue=function(t,e,r){var n=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===n._processed[e]){var i=n.distance(n.dataset[t],n.dataset[e]),o=Math.max(n._coreDistance,i);void 0===n._reachability[e]?(n._reachability[e]=o,r.insert(e,o)):o<n._reachability[e]&&(n._reachability[e]=o,r.remove(e),r.insert(e,o))}}))},o.prototype._expandCluster=function(t,e){for(var r=e.getElements(),n=0,i=r.length;n<i;n++){var o=r[n];if(void 0===this._processed[o]){var a=this._regionQuery(o);this._processed[o]=1,this.clusters[t].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,a,e),this._expandCluster(t,e))}}},o.prototype._distanceToCore=function(t){for(var e=this.epsilon,r=0;r<e;r++){if(this._regionQuery(t,r).length>=this.minPts)return r}},o.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var r=[],n=0,i=this.dataset.length;n<i;n++)this.distance(this.dataset[t],this.dataset[n])<e&&r.push(n);return r},o.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=o)},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=function(){var t=4022871197,e=function(e){e=String(e);for(var r=0;r<e.length;r++){var n=.02519603282416938*(t+=e.charCodeAt(r));n-=t=n>>>0,t=(n*=t)>>>0,t+=4294967296*(n-=t)}return 2.3283064365386963e-10*(t>>>0)};return e}();e.next=function(){var t=2091639*e.s0+2.3283064365386963e-10*e.c;return e.s0=e.s1,e.s1=e.s2,e.s2=t-(e.c=0|t)},e.c=1,e.s0=r(\" \"),e.s1=r(\" \"),e.s2=r(\" \"),e.s0-=r(t),e.s0<0&&(e.s0+=1),e.s1-=r(t),e.s1<0&&(e.s1+=1),e.s2-=r(t),e.s2<0&&(e.s2+=1),r=null}function u(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function c(t,e){var r=new s(t),n=e&&e.state,o=r.next;return o.int32=function(){return 4294967296*r.next()|0},o.double=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.alea=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=\"\";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},t===(0|t)?e.x=t:r+=t;for(var n=0;n<r.length+64;n++)e.x^=0|r.charCodeAt(n),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e}function c(t,e){var r=new s(t),n=e&&e.state,o=function(){return(r.next()>>>0)/4294967296};return o.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=r.next,o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.xor128=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=\"\";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^t^t<<1)|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,t===(0|t)?e.x=t:r+=t;for(var n=0;n<r.length+64;n++)e.x^=0|r.charCodeAt(n),n==r.length&&(e.d=e.x<<10^e.x>>>4),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function c(t,e){var r=new s(t),n=e&&e.state,o=function(){return(r.next()>>>0)/4294967296};return o.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=r.next,o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.xorwow=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,o){function a(t){var e=this;e.next=function(){var t,r,n=e.x,i=e.i;return t=n[i],r=(t^=t>>>7)^t<<24,r^=(t=n[i+1&7])^t>>>10,r^=(t=n[i+3&7])^t>>>3,r^=(t=n[i+4&7])^t<<7,t=n[i+7&7],r^=(t^=t<<13)^t<<9,n[i]=r,e.i=i+1&7,r},function(t,e){var r,n=[];if(e===(0|e))n[0]=e;else for(e=\"\"+e,r=0;r<e.length;++r)n[7&r]=n[7&r]<<15^e.charCodeAt(r)+n[r+1&7]<<13;for(;n.length<8;)n.push(0);for(r=0;r<8&&0===n[r];++r);for(8==r?n[7]=-1:n[r],t.x=n,t.i=0,r=256;r>0;--r)t.next()}(e,t)}function s(t,e){return e.x=t.x.slice(),e.i=t.i,e}function u(t,e){null==t&&(t=+new Date);var r=new a(t),n=e&&e.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=r.next,i.quick=i,n&&(n.x&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=u:r(9)&&r(23)?void 0===(n=function(){return u}.call(e,r,e,i))||(i.exports=n):this.xorshift7=u}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,o){function a(t){var e=this;e.next=function(){var t,r,n=e.w,i=e.X,o=e.i;return e.w=n=n+1640531527|0,r=i[o+34&127],t=i[o=o+1&127],r^=r<<13,t^=t<<17,r^=r>>>15,t^=t>>>12,r=i[o]=r^t,e.i=o,r+(n^n>>>16)|0},function(t,e){var r,n,i,o,a,s=[],u=128;for(e===(0|e)?(n=e,e=null):(e+=\"\\0\",n=0,u=Math.max(u,e.length)),i=0,o=-32;o<u;++o)e&&(n^=e.charCodeAt((o+32)%e.length)),0===o&&(a=n),n^=n<<10,n^=n>>>15,n^=n<<4,n^=n>>>13,o>=0&&(a=a+1640531527|0,i=0==(r=s[127&o]^=n+a)?i+1:0);for(i>=128&&(s[127&(e&&e.length||0)]=-1),i=127,o=512;o>0;--o)n=s[i+34&127],r=s[i=i+1&127],n^=n<<13,r^=r<<17,n^=n>>>15,r^=r>>>12,s[i]=n^r;t.w=a,t.X=s,t.i=i}(e,t)}function s(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function u(t,e){null==t&&(t=+new Date);var r=new a(t),n=e&&e.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=r.next,i.quick=i,n&&(n.X&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=u:r(9)&&r(23)?void 0===(n=function(){return u}.call(e,r,e,i))||(i.exports=n):this.xor4096=u}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=\"\";e.next=function(){var t=e.b,r=e.c,n=e.d,i=e.a;return t=t<<25^t>>>7^r,r=r-n|0,n=n<<24^n>>>8^i,i=i-t|0,e.b=t=t<<20^t>>>12^r,e.c=r=r-n|0,e.d=n<<16^r>>>16^i,e.a=i-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,t===Math.floor(t)?(e.a=t/4294967296|0,e.b=0|t):r+=t;for(var n=0;n<r.length+20;n++)e.b^=0|r.charCodeAt(n),e.next()}function u(t,e){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e}function c(t,e){var r=new s(t),n=e&&e.state,o=function(){return(r.next()>>>0)/4294967296};return o.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=r.next,o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.tychei=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(o,a,s){var u,c=256,l=s.pow(c,6),f=s.pow(2,52),h=2*f,p=c-1;function d(t,e,r){var n=[],i=b(g((e=1==e?{entropy:!0}:e||{}).entropy?[t,v(a)]:null==t?function(){try{var t;return u&&(t=u.randomBytes)?t=t(c):(t=new Uint8Array(c),(o.crypto||o.msCrypto).getRandomValues(t)),v(t)}catch(t){var e=o.navigator,r=e&&e.plugins;return[+new Date,o,r,o.screen,v(a)]}}():t,3),n),p=new m(n),d=function(){for(var t=p.g(6),e=l,r=0;t<f;)t=(t+r)*c,e*=c,r=p.g(1);for(;t>=h;)t/=2,e/=2,r>>>=1;return(t+r)/e};return d.int32=function(){return 0|p.g(4)},d.quick=function(){return p.g(4)/4294967296},d.double=d,b(v(p.S),a),(e.pass||r||function(t,e,r,n){return n&&(n.S&&y(n,p),t.state=function(){return y(p,{})}),r?(s.random=t,e):t})(d,i,\"global\"in e?e.global:this==s,e.state)}function m(t){var e,r=t.length,n=this,i=0,o=n.i=n.j=0,a=n.S=[];for(r||(t=[r++]);i<c;)a[i]=i++;for(i=0;i<c;i++)a[i]=a[o=p&o+t[i%r]+(e=a[i])],a[o]=e;(n.g=function(t){for(var e,r=0,i=n.i,o=n.j,a=n.S;t--;)e=a[i=p&i+1],r=r*c+a[p&(a[i]=a[o=p&o+e])+(a[o]=e)];return n.i=i,n.j=o,r})(c)}function y(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function g(t,e){var r,n=[],o=i(t);if(e&&\"object\"==o)for(r in t)try{n.push(g(t[r],e-1))}catch(t){}return n.length?n:\"string\"==o?t:t+\"\\0\"}function b(t,e){for(var r,n=t+\"\",i=0;i<n.length;)e[p&i]=p&(r^=19*e[p&i])+n.charCodeAt(i++);return v(e)}function v(t){return String.fromCharCode.apply(0,t)}if(b(s.random(),a),\"object\"==i(t)&&t.exports){t.exports=d;try{u=r(228)}catch(t){}}else void 0===(n=function(){return d}.call(e,r,e,t))||(t.exports=n)}(\"undefined\"!=typeof self?self:this,[],Math)}).call(this,r(13)(t))},function(t,e){},function(t,e,r){var n=r(100).default,i=r(230);t.exports=function(t){var e=i(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(100).default;t.exports=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},,,,,,,,,,,,,,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||s(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function o(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=s(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function a(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){if(t){if(\"string\"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(){c=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},s=a.iterator||\"@@iterator\",u=a.asyncIterator||\"@@asyncIterator\",l=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new C(n||[]);return o(a,\"_invoke\",{value:D(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,s,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&i.call(E,s)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(o,a,s,u){var c=p(t[o],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&i.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var a;o(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[s];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(S,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,u,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,s,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=i.call(a,\"catchLoc\"),c=i.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var o=n;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function l(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){l(o,n,i,a,s,\"next\",t)}function s(t){l(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function p(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}r.d(e,\"a\",(function(){return d}));var d=function(){return t=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.zjh3D=e,this.Sjig=r,this.Kk09=new Map,this.PjleR=new Map,this._jna_=r>0?new Map:null,this.Zjp4Z=!1},e=[{key:\"wk2e\",value:(m=f(c().mark((function t(){var e;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=1;case 1:if(!(e<200)){t.next=10;break}if(this.Zjp4Z){t.next=5;break}return this.Zjp4Z=!0,t.abrupt(\"return\",!0);case 5:return t.next=7,new Promise((function(t){setTimeout(t,10)}));case 7:e++,t.next=1;break;case 10:return this.Zjp4Z=!0,t.abrupt(\"return\",!0);case 12:case\"end\":return t.stop()}}),t,this)}))),function(){return m.apply(this,arguments)})},{key:\"zka3D\",value:(d=f(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.Zjp4Z=!1,t.abrupt(\"return\",!0);case 2:case\"end\":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:\"Ckce\",value:(p=f(c().mark((function t(e,r){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this.Sjig){t.next=2;break}return t.abrupt(\"return\");case 2:return t.next=4,this.wk2e();case 4:t.prev=4,this.Kk09.set(e,r);case 6:return t.prev=6,t.next=9,this.zka3D();case 9:return t.finish(6);case 10:case\"end\":return t.stop()}}),t,this,[[4,,6,10]])}))),function(t,e){return p.apply(this,arguments)})},{key:\"wk67\",value:(l=f(c().mark((function t(e,r){var n,i,o,s;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this.Sjig){t.next=2;break}return t.abrupt(\"return\");case 2:return t.next=4,this.wk2e();case 4:if(t.prev=4,!(this.Kk09.size>=this.zjh3D&&this.PjleR.size>0)){t.next=15;break}n=a(this.PjleR).sort((function(t,e){return t[1]-e[1]})),i=Math.max(Math.min(n.length,this.zjh3D/5),1),o=i;case 9:if(!(o>=0)){t.next=15;break}return t.next=12,this.Ll23N(n[o][0]);case 12:o--,t.next=9;break;case 15:if(!(this.Kk09.size<this.zjh3D)){t.next=21;break}this.Kk09.set(e,r),this.PjleR.set(e,Date.now()),null===(s=this._jna_)||void 0===s||s.set(e,0),t.next=22;break;case 21:throw new Error(\"cache is full\");case 22:return t.prev=22,t.next=25,this.zka3D();case 25:return t.finish(22);case 26:case\"end\":return t.stop()}}),t,this,[[4,,22,26]])}))),function(t,e){return l.apply(this,arguments)})},{key:\"XkhpX\",value:(u=f(c().mark((function t(e){var r,n,i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.Kk09.has(e)){t.next=13;break}if(r=this.Kk09.get(e),!this.PjleR.has(e)){t.next=12;break}if(this.PjleR.set(e,Date.now()),!(this.Sjig>0)){t.next=12;break}if(!((n=this.Gkp9(e))>=this.Sjig-1)){t.next=11;break}return t.next=9,this.Ll23N(e);case 9:t.next=12;break;case 11:null===(i=this._jna_)||void 0===i||i.set(e,n+1);case 12:return t.abrupt(\"return\",r);case 13:return t.abrupt(\"return\",void 0);case 14:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:\"Ykl6\",value:function(t){return this.PjleR.get(t)}},{key:\"Gkp9\",value:function(t){var e;return null===(e=this._jna_)||void 0===e?void 0:e.get(t)}},{key:\"Ekg7\",value:function(t){return this.Kk09.has(t)}},{key:\"Ll23N\",value:(s=f(c().mark((function t(e){var r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.wk2e();case 2:t.prev=2,this.Kk09.delete(e),this.PjleR.delete(e),null===(r=this._jna_)||void 0===r||r.delete(e);case 6:return t.prev=6,t.next=9,this.zka3D();case 9:return t.finish(6);case 10:case\"end\":return t.stop()}}),t,this,[[2,,6,10]])}))),function(t){return s.apply(this,arguments)})},{key:\"wl2k\",value:(n=f(c().mark((function t(){var e,r,n,a,s,u,l,f,h=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:0,t.next=3,this.wk2e();case 3:if(t.prev=3,e<=0)this.Kk09.clear(),this.PjleR.clear(),null===(r=this._jna_)||void 0===r||r.clear();else{n=o(this.PjleR.entries());try{for(n.s();!(a=n.n()).done;)s=i(a.value,2),u=s[0],l=s[1],Date.now()-l>e&&(null===(f=this._jna_)||void 0===f||f.delete(u),this.PjleR.delete(u),this.Kk09.delete(u))}catch(t){n.e(t)}finally{n.f()}}case 5:return t.prev=5,t.next=8,this.zka3D();case 8:return t.finish(5);case 9:case\"end\":return t.stop()}}),t,this,[[3,,5,9]])}))),function(){return n.apply(this,arguments)})},{key:\"Lkf8N\",value:function(){return Array.from(this.Kk09.keys())}}],e&&h(t.prototype,e),r&&h(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,s,u,l,p,d,m}()},,,,,,,,,function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return _i})),r.d(e,\"c\",(function(){return xi})),r.d(e,\"b\",(function(){return Pi}));var n=r(8),i=r.n(n),o={epsilon:1e-12,matrix:\"Matrix\",number:\"number\",precision:64,predictable:!1,randomSeed:null};function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t){return\"number\"==typeof t}function u(t){return!(!t||\"object\"!==a(t)||\"function\"!=typeof t.constructor)&&(!0===t.isBigNumber&&\"object\"===a(t.constructor.prototype)&&!0===t.constructor.prototype.isBigNumber||\"function\"==typeof t.constructor.isDecimal&&!0===t.constructor.isDecimal(t))}function c(t){return t&&\"object\"===a(t)&&!0===Object.getPrototypeOf(t).isComplex||!1}function l(t){return t&&\"object\"===a(t)&&!0===Object.getPrototypeOf(t).isFraction||!1}function f(t){return t&&!0===t.constructor.prototype.isUnit||!1}function h(t){return\"string\"==typeof t}var p=Array.isArray;function d(t){return t&&!0===t.constructor.prototype.isMatrix||!1}function m(t){return Array.isArray(t)||d(t)}function y(t){return t&&t.isDenseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function g(t){return t&&t.isSparseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function b(t){return t&&!0===t.constructor.prototype.isRange||!1}function v(t){return t&&!0===t.constructor.prototype.isIndex||!1}function w(t){return\"boolean\"==typeof t}function _(t){return t&&!0===t.constructor.prototype.isResultSet||!1}function x(t){return t&&!0===t.constructor.prototype.isHelp||!1}function k(t){return\"function\"==typeof t}function E(t){return t instanceof Date}function S(t){return t instanceof RegExp}function T(t){return!(!t||\"object\"!==a(t)||t.constructor!==Object||c(t)||l(t))}function A(t){return null===t}function D(t){return void 0===t}function O(t){return t&&!0===t.isAccessorNode&&!0===t.constructor.prototype.isNode||!1}function I(t){return t&&!0===t.isArrayNode&&!0===t.constructor.prototype.isNode||!1}function P(t){return t&&!0===t.isAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function C(t){return t&&!0===t.isBlockNode&&!0===t.constructor.prototype.isNode||!1}function L(t){return t&&!0===t.isConditionalNode&&!0===t.constructor.prototype.isNode||!1}function M(t){return t&&!0===t.isConstantNode&&!0===t.constructor.prototype.isNode||!1}function F(t){return t&&!0===t.isFunctionAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function B(t){return t&&!0===t.isFunctionNode&&!0===t.constructor.prototype.isNode||!1}function j(t){return t&&!0===t.isIndexNode&&!0===t.constructor.prototype.isNode||!1}function N(t){return t&&!0===t.isNode&&!0===t.constructor.prototype.isNode||!1}function R(t){return t&&!0===t.isObjectNode&&!0===t.constructor.prototype.isNode||!1}function z(t){return t&&!0===t.isOperatorNode&&!0===t.constructor.prototype.isNode||!1}function U(t){return t&&!0===t.isParenthesisNode&&!0===t.constructor.prototype.isNode||!1}function G(t){return t&&!0===t.isRangeNode&&!0===t.constructor.prototype.isNode||!1}function H(t){return t&&!0===t.isRelationalNode&&!0===t.constructor.prototype.isNode||!1}function q(t){return t&&!0===t.isSymbolNode&&!0===t.constructor.prototype.isNode||!1}function V(t){return t&&!0===t.constructor.prototype.isChain||!1}function W(t){var e=a(t);return\"object\"===e?null===t?\"null\":u(t)?\"BigNumber\":t.constructor&&t.constructor.name?t.constructor.name:\"Object\":e}function Z(t){return Z=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Z(t)}function Y(t){var e=Z(t);if(\"number\"===e||\"string\"===e||\"boolean\"===e||null==t)return t;if(\"function\"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map((function(t){return Y(t)}));if(t instanceof Date)return new Date(t.valueOf());if(u(t))return t;if(T(t))return X(t,Y);throw new TypeError(\"Cannot clone: unknown type of value (value: \".concat(t,\")\"))}function X(t,e){var r={};for(var n in t)$(t,n)&&(r[n]=e(t[n]));return r}function K(t,e){for(var r in e)$(e,r)&&(t[r]=e[r]);return t}function J(t,e){var r,n,i;if(Array.isArray(t)){if(!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(n=0,i=t.length;n<i;n++)if(!J(t[n],e[n]))return!1;return!0}if(\"function\"==typeof t)return t===e;if(t instanceof Object){if(Array.isArray(e)||!(e instanceof Object))return!1;for(r in t)if(!(r in e)||!J(t[r],e[r]))return!1;for(r in e)if(!(r in t))return!1;return!0}return t===e}function $(t,e){return t&&Object.hasOwnProperty.call(t,e)}var Q=[\"Matrix\",\"Array\"],tt=[\"number\",\"BigNumber\",\"Fraction\"];var et=function(t){if(t)throw new Error(\"The global config is readonly. \\nPlease create a mathjs instance if you want to change the default configuration. \\nExample:\\n\\n  import { create, all } from 'mathjs';\\n  const mathjs = create(all);\\n  mathjs.config({ number: 'BigNumber' });\\n\");return Object.freeze(o)};i()(et,o,{MATRIX_OPTIONS:Q,NUMBER_OPTIONS:tt});var rt=r(21),nt=r.n(rt);function it(t){return\"boolean\"==typeof t||!!isFinite(t)&&t===Math.round(t)}var ot=Math.sign||function(t){return t>0?1:t<0?-1:0},at=Math.log2||function(t){return Math.log(t)/Math.LN2},st=Math.log10||function(t){return Math.log(t)/Math.LN10},ut=(Math.log1p,Math.cbrt||function(t){if(0===t)return t;var e,r=t<0;return r&&(t=-t),e=isFinite(t)?(t/((e=Math.exp(Math.log(t)/3))*e)+2*e)/3:t,r?-e:e}),ct=Math.expm1||function(t){return t>=2e-4||t<=-2e-4?Math.exp(t)-1:t+t*t/2+t*t*t/6};function lt(t,e,r){var n={2:\"0b\",8:\"0o\",16:\"0x\"}[e],i=\"\";if(r){if(r<1)throw new Error(\"size must be in greater than 0\");if(!it(r))throw new Error(\"size must be an integer\");if(t>Math.pow(2,r-1)-1||t<-Math.pow(2,r-1))throw new Error(\"Value must be in range [-2^\".concat(r-1,\", 2^\").concat(r-1,\"-1]\"));if(!it(t))throw new Error(\"Value must be an integer\");t<0&&(t+=Math.pow(2,r)),i=\"i\".concat(r)}var o=\"\";return t<0&&(t=-t,o=\"-\"),\"\".concat(o).concat(n).concat(t.toString(e)).concat(i)}function ft(t,e){if(\"function\"==typeof e)return e(t);if(t===1/0)return\"Infinity\";if(t===-1/0)return\"-Infinity\";if(isNaN(t))return\"NaN\";var r,n,i=\"auto\";if(e&&(e.notation&&(i=e.notation),s(e)?r=e:s(e.precision)&&(r=e.precision),e.wordSize&&\"number\"!=typeof(n=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return pt(t,r);case\"exponential\":return dt(t,r);case\"engineering\":return function(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=ht(t),n=mt(r,e),i=n.exponent,o=n.coefficients,a=i%3==0?i:i<0?i-3-i%3:i-i%3;if(s(e))for(;e>o.length||i-a+1>o.length;)o.push(0);else for(var u=Math.abs(i-a)-(o.length-1),c=0;c<u;c++)o.push(0);var l=Math.abs(i-a),f=1;for(;l>0;)f++,l--;var h=o.slice(f).join(\"\"),p=s(e)&&h.length||h.match(/[1-9]/)?\".\"+h:\"\",d=o.slice(0,f).join(\"\")+p+\"e\"+(i>=0?\"+\":\"\")+a.toString();return n.sign+d}(t,r);case\"bin\":return lt(t,2,n);case\"oct\":return lt(t,8,n);case\"hex\":return lt(t,16,n);case\"auto\":return function(t,e,r){if(isNaN(t)||!isFinite(t))return String(t);var n=r&&void 0!==r.lowerExp?r.lowerExp:-3,i=r&&void 0!==r.upperExp?r.upperExp:5,o=ht(t),a=e?mt(o,e):o;if(a.exponent<n||a.exponent>=i)return dt(t,e);var s=a.coefficients,u=a.exponent;s.length<e&&(s=s.concat(yt(e-s.length))),s=s.concat(yt(u-s.length+1+(s.length<e?e-s.length:0)));var c=u>0?u:0;return c<(s=yt(-u).concat(s)).length-1&&s.splice(c+1,0,\".\"),a.sign+s.join(\"\")}(t,r,e&&e).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function ht(t){var e=String(t).toLowerCase().match(/^(-?)(\\d+\\.?\\d*)(e([+-]?\\d+))?$/);if(!e)throw new SyntaxError(\"Invalid number \"+t);var r=e[1],n=e[2],i=parseFloat(e[4]||\"0\"),o=n.indexOf(\".\");i+=-1!==o?o-1:n.length-1;var a=n.replace(\".\",\"\").replace(/^0*/,(function(t){return i-=t.length,\"\"})).replace(/0*$/,\"\").split(\"\").map((function(t){return parseInt(t)}));return 0===a.length&&(a.push(0),i++),{sign:r,coefficients:a,exponent:i}}function pt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=ht(t),n=\"number\"==typeof e?mt(r,r.exponent+1+e):r,i=n.coefficients,o=n.exponent+1,a=o+(e||0);return i.length<a&&(i=i.concat(yt(a-i.length))),o<0&&(i=yt(1-o).concat(i),o=1),o<i.length&&i.splice(o,0,0===o?\"0.\":\".\"),n.sign+i.join(\"\")}function dt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=ht(t),n=e?mt(r,e):r,i=n.coefficients,o=n.exponent;i.length<e&&(i=i.concat(yt(e-i.length)));var a=i.shift();return n.sign+a+(i.length>0?\".\"+i.join(\"\"):\"\")+\"e\"+(o>=0?\"+\":\"\")+o}function mt(t,e){for(var r={sign:t.sign,coefficients:t.coefficients,exponent:t.exponent},n=r.coefficients;e<=0;)n.unshift(0),r.exponent++,e++;if(n.length>e&&n.splice(e,n.length-e)[0]>=5){var i=e-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),r.exponent++,i++),n[--i]++}return r}function yt(t){for(var e=[],r=0;r<t;r++)e.push(0);return e}var gt=Number.EPSILON||2220446049250313e-31;function bt(t,e,r){if(null==r)return t===e;if(t===e)return!0;if(isNaN(t)||isNaN(e))return!1;if(isFinite(t)&&isFinite(e)){var n=Math.abs(t-e);return n<=gt||n<=Math.max(Math.abs(t),Math.abs(e))*r}return!1}var vt=Math.acosh||function(t){return Math.log(Math.sqrt(t*t-1)+t)},wt=Math.asinh||function(t){return Math.log(Math.sqrt(t*t+1)+t)},_t=Math.atanh||function(t){return Math.log((1+t)/(1-t))/2},xt=(Math.cosh,Math.sinh||function(t){return(Math.exp(t)-Math.exp(-t))/2});Math.tanh;function kt(t,e,r){var n=new(0,t.constructor)(2),i=\"\";if(r){if(r<1)throw new Error(\"size must be in greater than 0\");if(!it(r))throw new Error(\"size must be an integer\");if(t.greaterThan(n.pow(r-1).sub(1))||t.lessThan(n.pow(r-1).mul(-1)))throw new Error(\"Value must be in range [-2^\".concat(r-1,\", 2^\").concat(r-1,\"-1]\"));if(!t.isInteger())throw new Error(\"Value must be an integer\");t.lessThan(0)&&(t=t.add(n.pow(r))),i=\"i\".concat(r)}switch(e){case 2:return\"\".concat(t.toBinary()).concat(i);case 8:return\"\".concat(t.toOctal()).concat(i);case 16:return\"\".concat(t.toHexadecimal()).concat(i);default:throw new Error(\"Base \".concat(e,\" not supported \"))}}function Et(t,e){if(\"function\"==typeof e)return e(t);if(!t.isFinite())return t.isNaN()?\"NaN\":t.gt(0)?\"Infinity\":\"-Infinity\";var r,n,i=\"auto\";if(void 0!==e&&(e.notation&&(i=e.notation),\"number\"==typeof e?r=e:void 0!==e.precision&&(r=e.precision),e.wordSize&&\"number\"!=typeof(n=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return function(t,e){return t.toFixed(e)}(t,r);case\"exponential\":return St(t,r);case\"engineering\":return function(t,e){var r=t.e,n=r%3==0?r:r<0?r-3-r%3:r-r%3,i=t.mul(Math.pow(10,-n)),o=i.toPrecision(e);if(-1!==o.indexOf(\"e\")){o=new(0,t.constructor)(o).toFixed()}return o+\"e\"+(r>=0?\"+\":\"\")+n.toString()}(t,r);case\"bin\":return kt(t,2,n);case\"oct\":return kt(t,8,n);case\"hex\":return kt(t,16,n);case\"auto\":var o=e&&void 0!==e.lowerExp?e.lowerExp:-3,a=e&&void 0!==e.upperExp?e.upperExp:5;if(t.isZero())return\"0\";var s=t.toSignificantDigits(r),u=s.e;return(u>=o&&u<a?s.toFixed():St(t,r)).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function St(t,e){return void 0!==e?t.toExponential(e-1):t.toExponential()}function Tt(t){return Tt=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Tt(t)}function At(t,e){var r=function(t,e){if(\"number\"==typeof t)return ft(t,e);if(u(t))return Et(t,e);if(function(t){return t&&\"object\"===Tt(t)&&\"number\"==typeof t.s&&\"number\"==typeof t.n&&\"number\"==typeof t.d||!1}(t))return e&&\"decimal\"===e.fraction?t.toString():t.s*t.n+\"/\"+t.d;if(Array.isArray(t))return It(t,e);if(h(t))return Dt(t);if(\"function\"==typeof t)return t.syntax?String(t.syntax):\"function\";if(t&&\"object\"===Tt(t)){return\"function\"==typeof t.format?t.format(e):t&&t.toString(e)!=={}.toString()?t.toString(e):\"{\"+Object.keys(t).map((function(r){return Dt(r)+\": \"+At(t[r],e)})).join(\", \")+\"}\"}return String(t)}(t,e);return e&&\"object\"===Tt(e)&&\"truncate\"in e&&r.length>e.truncate?r.substring(0,e.truncate-3)+\"...\":r}function Dt(t){for(var e=String(t),r=\"\",n=0;n<e.length;){var i=e.charAt(n);r+=i in Ot?Ot[i]:i,n++}return'\"'+r+'\"'}var Ot={'\"':'\\\\\"',\"\\\\\":\"\\\\\\\\\",\"\\b\":\"\\\\b\",\"\\f\":\"\\\\f\",\"\\n\":\"\\\\n\",\"\\r\":\"\\\\r\",\"\\t\":\"\\\\t\"};function It(t,e){if(Array.isArray(t)){for(var r=\"[\",n=t.length,i=0;i<n;i++)0!==i&&(r+=\", \"),r+=It(t[i],e);return r+=\"]\"}return At(t,e)}function Pt(t,e){if(!h(t))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+W(t)+\", index: 0)\");if(!h(e))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+W(e)+\", index: 1)\");return t===e?0:t>e?1:-1}function Ct(t,e,r){if(!(this instanceof Ct))throw new SyntaxError(\"Constructor must be called with the new operator\");this.actual=t,this.expected=e,this.relation=r,this.message=\"Dimension mismatch (\"+(Array.isArray(t)?\"[\"+t.join(\", \")+\"]\":t)+\" \"+(this.relation||\"!=\")+\" \"+(Array.isArray(e)?\"[\"+e.join(\", \")+\"]\":e)+\")\",this.stack=(new Error).stack}function Lt(t,e,r){if(!(this instanceof Lt))throw new SyntaxError(\"Constructor must be called with the new operator\");this.index=t,arguments.length<3?(this.min=0,this.max=e):(this.min=e,this.max=r),void 0!==this.min&&this.index<this.min?this.message=\"Index out of range (\"+this.index+\" < \"+this.min+\")\":void 0!==this.max&&this.index>=this.max?this.message=\"Index out of range (\"+this.index+\" > \"+(this.max-1)+\")\":this.message=\"Index out of range (\"+this.index+\")\",this.stack=(new Error).stack}function Mt(t){return function(t){if(Array.isArray(t))return Ft(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Ft(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ft(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Bt(t){for(var e=[];Array.isArray(t);)e.push(t.length),t=t[0];return e}function jt(t,e,r){var n,i=t.length;if(i!==e[r])throw new Ct(i,e[r]);if(r<e.length-1){var o=r+1;for(n=0;n<i;n++){var a=t[n];if(!Array.isArray(a))throw new Ct(e.length-1,e.length,\"<\");jt(t[n],e,o)}}else for(n=0;n<i;n++)if(Array.isArray(t[n]))throw new Ct(e.length+1,e.length,\">\")}function Nt(t,e){if(0===e.length){if(Array.isArray(t))throw new Ct(t.length,0)}else jt(t,e,0)}function Rt(t,e){if(void 0!==t){if(!s(t)||!it(t))throw new TypeError(\"Index must be an integer (value: \"+t+\")\");if(t<0||\"number\"==typeof e&&t>=e)throw new Lt(t,e)}}function zt(t,e,r){if(!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new Error(\"Resizing to scalar is not supported\");return e.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+At(e)+\")\")})),(s(t)||u(t))&&(t=[t]),Ut(t,e,0,void 0!==r?r:0),t}function Ut(t,e,r,n){var i,o,a=t.length,s=e[r],u=Math.min(a,s);if(t.length=s,r<e.length-1){var c=r+1;for(i=0;i<u;i++)o=t[i],Array.isArray(o)||(o=[o],t[i]=o),Ut(o,e,c,n);for(i=u;i<s;i++)o=[],t[i]=o,Ut(o,e,c,n)}else{for(i=0;i<u;i++)for(;Array.isArray(t[i]);)t[i]=t[i][0];for(i=u;i<s;i++)t[i]=n}}function Gt(t,e){var r=Zt(t),n=r.length;if(!Array.isArray(t)||!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new Ct(0,n,\"!=\");var i=qt(e=Ht(e,n));if(n!==i)throw new Ct(i,n,\"!=\");try{return function(t,e){for(var r,n=t,i=e.length-1;i>0;i--){var o=e[i];r=[];for(var a=n.length/o,s=0;s<a;s++)r.push(n.slice(s*o,(s+1)*o));n=r}return n}(r,e)}catch(t){if(t instanceof Ct)throw new Ct(i,n,\"!=\");throw t}}function Ht(t,e){var r=qt(t),n=t.slice(),i=t.indexOf(-1);if(t.indexOf(-1,i+1)>=0)throw new Error(\"More than one wildcard in sizes\");if(i>=0){if(!(e%r==0))throw new Error(\"Could not replace wildcard, since \"+e+\" is no multiple of \"+-r);n[i]=-e/r}return n}function qt(t){return t.reduce((function(t,e){return t*e}),1)}function Vt(t,e,r,n){var i=n||Bt(t);if(r)for(var o=0;o<r;o++)t=[t],i.unshift(1);for(t=Wt(t,e,0);i.length<e;)i.push(1);return t}function Wt(t,e,r){var n,i;if(Array.isArray(t)){var o=r+1;for(n=0,i=t.length;n<i;n++)t[n]=Wt(t[n],e,o)}else for(var a=r;a<e;a++)t=[t];return t}function Zt(t){if(!Array.isArray(t))return t;var e=[];return t.forEach((function t(r){Array.isArray(r)?r.forEach(t):e.push(r)})),e}function Yt(t,e){for(var r,n=0,i=0;i<t.length;i++){var o=t[i],a=Array.isArray(o);if(0===i&&a&&(n=o.length),a&&o.length!==n)return;var s=a?Yt(o,e):e(o);if(void 0===r)r=s;else if(r!==s)return\"mixed\"}return r}function Xt(t,e,r,n){if(n<r){if(t.length!==e.length)throw new Ct(t.length,e.length);for(var i=[],o=0;o<t.length;o++)i[o]=Xt(t[o],e[o],r,n+1);return i}return t.concat(e)}function Kt(){var t=Array.prototype.slice.call(arguments,0,-1),e=Array.prototype.slice.call(arguments,-1);if(1===t.length)return t[0];if(t.length>1)return t.slice(1).reduce((function(t,r){return Xt(t,r,e,0)}),t[0]);throw new Error(\"Wrong number of arguments in function concat\")}function Jt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=e.map((function(t){return t.length})),i=Math.max.apply(Math,Mt(n)),o=new Array(i).fill(null),a=0;a<e.length;a++)for(var s=e[a],u=n[a],c=0;c<u;c++){var l=i-u+c;s[c]>o[l]&&(o[l]=s[c])}for(var f=0;f<e.length;f++)$t(e[f],o);return o}function $t(t,e){for(var r=e.length,n=t.length,i=0;i<n;i++){var o=r-n+i;if(t[i]<e[o]&&t[i]>1||t[i]>e[o])throw new Error(\"shape missmatch: missmatch is found in arg with shape (\".concat(t,\") not possible to broadcast dimension \").concat(n,\" with size \").concat(t[i],\" to size \").concat(e[o]))}}function Qt(t,e){var r=Bt(t);if(J(r,e))return t;$t(r,e);var n,o,a,s=Jt(r,e),u=s.length,c=[].concat(Mt(Array(u-r.length).fill(1)),Mt(r)),l=function(t){return i()([],t)}(t);r.length<u&&(r=Bt(l=Gt(l,c)));for(var f=0;f<u;f++)r[f]<s[f]&&(n=l,o=s[f],a=f,r=Bt(l=Kt.apply(void 0,Mt(Array(o).fill(n)).concat([a]))));return l}function te(t,e,r,n){function i(n){var i=function(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],o=t[i];void 0!==o&&(r[i]=o)}return r}(n,e.map(ee));return function(t,e,r){var n=e.filter((function(t){return!function(t){return t&&\"?\"===t[0]}(t)})).every((function(t){return void 0!==r[t]}));if(!n){var i=e.filter((function(t){return void 0===r[t]}));throw new Error('Cannot create function \"'.concat(t,'\", ')+\"some dependencies are missing: \".concat(i.map((function(t){return'\"'.concat(t,'\"')})).join(\", \"),\".\"))}}(t,e,n),r(i)}return i.isFactory=!0,i.fn=t,i.dependencies=e.slice().sort(),n&&(i.meta=n),i}function ee(t){return t&&\"?\"===t[0]?t.slice(1):t}Ct.prototype=new RangeError,Ct.prototype.constructor=RangeError,Ct.prototype.name=\"DimensionError\",Ct.prototype.isDimensionError=!0,Lt.prototype=new RangeError,Lt.prototype.constructor=RangeError,Lt.prototype.name=\"IndexError\",Lt.prototype.isIndexError=!0;var re=te(\"BigNumber\",[\"?on\",\"config\"],(function(t){var e=t.on,r=t.config,n=nt.a.clone({precision:r.precision,modulo:nt.a.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type=\"BigNumber\",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:\"BigNumber\",value:this.toString()}},n.fromJSON=function(t){return new n(t.value)},e&&e(\"config\",(function(t,e){t.precision!==e.precision&&n.config({precision:t.precision})})),n}),{isClass:!0}),ne=r(5),ie=r.n(ne);function oe(t){return oe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},oe(t)}var ae=te(\"Complex\",[],(function(){return Object.defineProperty(ie.a,\"name\",{value:\"Complex\"}),ie.a.prototype.constructor=ie.a,ie.a.prototype.type=\"Complex\",ie.a.prototype.isComplex=!0,ie.a.prototype.toJSON=function(){return{mathjs:\"Complex\",re:this.re,im:this.im}},ie.a.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},ie.a.prototype.format=function(t){var e=this.im,r=this.re,n=ft(this.re,t),i=ft(this.im,t),o=s(t)?t:t?t.precision:null;if(null!==o){var a=Math.pow(10,-o);Math.abs(r/e)<a&&(r=0),Math.abs(e/r)<a&&(e=0)}return 0===e?n:0===r?1===e?\"i\":-1===e?\"-i\":i+\"i\":e<0?-1===e?n+\" - i\":n+\" - \"+i.substring(1)+\"i\":1===e?n+\" + i\":n+\" + \"+i+\"i\"},ie.a.fromPolar=function(t){switch(arguments.length){case 1:var e=arguments[0];if(\"object\"===oe(e))return ie()(e);throw new TypeError(\"Input has to be an object with r and phi keys.\");case 2:var r=arguments[0],n=arguments[1];if(s(r)){if(f(n)&&n.hasBase(\"ANGLE\")&&(n=n.toNumber(\"rad\")),s(n))return new ie.a({r,phi:n});throw new TypeError(\"Phi is not a number nor an angle unit.\")}throw new TypeError(\"Radius r is not a number.\");default:throw new SyntaxError(\"Wrong number of arguments in function fromPolar\")}},ie.a.prototype.valueOf=ie.a.prototype.toString,ie.a.fromJSON=function(t){return new ie.a(t)},ie.a.compare=function(t,e){return t.re>e.re?1:t.re<e.re?-1:t.im>e.im?1:t.im<e.im?-1:0},ie.a}),{isClass:!0});function se(t){var e=0,r=1,n=Object.create(null),i=Object.create(null),o=0,a=function(t){var a=i[t];if(a&&(delete n[a],delete i[t],--e,r===a)){if(!e)return o=0,void(r=1);for(;!Object.prototype.hasOwnProperty.call(n,++r););}};return t=Math.abs(t),{hit:function(s){var u=i[s],c=++o;if(n[c]=s,i[s]=c,!u){if(++e<=t)return;return s=n[r],a(s),s}if(delete n[u],r===u)for(;!Object.prototype.hasOwnProperty.call(n,++r););},delete:a,clear:function(){e=o=0,r=1,n=Object.create(null),i=Object.create(null)}}}function ue(t){return ue=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ue(t)}function ce(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.hasher,n=e.limit;return n=null==n?Number.POSITIVE_INFINITY:n,r=null==r?JSON.stringify:r,function e(){\"object\"!==ue(e.cache)&&(e.cache={values:new Map,lru:se(n||Number.POSITIVE_INFINITY)});for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=r(i);if(e.cache.values.has(a))return e.cache.lru.hit(a),e.cache.values.get(a);var s=t.apply(t,i);return e.cache.values.set(a,s),e.cache.values.delete(e.cache.lru.hit(a)),s}}function le(t){return Object.keys(t.signatures||{}).reduce((function(t,e){var r=(e.match(/,/g)||[]).length+1;return Math.max(t,r)}),-1)}ce((function(t){return new t(1).exp()}),{hasher:he}),ce((function(t){return new t(1).plus(new t(5).sqrt()).div(2)}),{hasher:he});var fe=ce((function(t){return t.acos(-1)}),{hasher:he});ce((function(t){return fe(t).times(2)}),{hasher:he});function he(t){return t[0].precision}Math.PI,Math.PI,Math.E;pe(\"fineStructure\",.0072973525693),pe(\"weakMixingAngle\",.2229),pe(\"efimovFactor\",22.7),pe(\"sackurTetrode\",-1.16487052358);function pe(t,e){return te(t,[\"config\",\"BigNumber\"],(function(t){var r=t.config,n=t.BigNumber;return\"BigNumber\"===r.number?new n(e):e}))}var de=r(12),me=r.n(de),ye=te(\"Fraction\",[],(function(){return Object.defineProperty(me.a,\"name\",{value:\"Fraction\"}),me.a.prototype.constructor=me.a,me.a.prototype.type=\"Fraction\",me.a.prototype.isFraction=!0,me.a.prototype.toJSON=function(){return{mathjs:\"Fraction\",n:this.s*this.n,d:this.d}},me.a.fromJSON=function(t){return new me.a(t)},me.a}),{isClass:!0}),ge=te(\"Matrix\",[],(function(){function t(){if(!(this instanceof t))throw new SyntaxError(\"Constructor must be called with the new operator\")}return t.prototype.type=\"Matrix\",t.prototype.isMatrix=!0,t.prototype.storage=function(){throw new Error(\"Cannot invoke storage on a Matrix interface\")},t.prototype.datatype=function(){throw new Error(\"Cannot invoke datatype on a Matrix interface\")},t.prototype.create=function(t,e){throw new Error(\"Cannot invoke create on a Matrix interface\")},t.prototype.subset=function(t,e,r){throw new Error(\"Cannot invoke subset on a Matrix interface\")},t.prototype.get=function(t){throw new Error(\"Cannot invoke get on a Matrix interface\")},t.prototype.set=function(t,e,r){throw new Error(\"Cannot invoke set on a Matrix interface\")},t.prototype.resize=function(t,e){throw new Error(\"Cannot invoke resize on a Matrix interface\")},t.prototype.reshape=function(t,e){throw new Error(\"Cannot invoke reshape on a Matrix interface\")},t.prototype.clone=function(){throw new Error(\"Cannot invoke clone on a Matrix interface\")},t.prototype.size=function(){throw new Error(\"Cannot invoke size on a Matrix interface\")},t.prototype.map=function(t,e){throw new Error(\"Cannot invoke map on a Matrix interface\")},t.prototype.forEach=function(t){throw new Error(\"Cannot invoke forEach on a Matrix interface\")},t.prototype[Symbol.iterator]=function(){throw new Error(\"Cannot iterate a Matrix interface\")},t.prototype.toArray=function(){throw new Error(\"Cannot invoke toArray on a Matrix interface\")},t.prototype.valueOf=function(){throw new Error(\"Cannot invoke valueOf on a Matrix interface\")},t.prototype.format=function(t){throw new Error(\"Cannot invoke format on a Matrix interface\")},t.prototype.toString=function(){throw new Error(\"Cannot invoke toString on a Matrix interface\")},t}),{isClass:!0});function be(t){return be=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},be(t)}function ve(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return we(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return we(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _e(){_e=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:T(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function g(){}function b(){}function v(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(P([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=v.prototype=g.prototype=Object.create(w);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==be(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function T(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=f(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=f(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(D,this),this.reset(!0)}function P(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(be(e)+\" is not iterable\")}return b.prototype=v,i(k,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:b,configurable:!0}),b.displayName=c(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===b||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},E(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(k),c(k,u,\"Generator\"),c(k,a,(function(){return this})),c(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}var xe=te(\"DenseMatrix\",[\"Matrix\"],(function(t){var e=t.Matrix;function r(t,e){if(!(this instanceof r))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!h(e))throw new Error(\"Invalid datatype: \"+e);if(d(t))\"DenseMatrix\"===t.type?(this._data=Y(t._data),this._size=Y(t._size),this._datatype=e||t._datatype):(this._data=t.toArray(),this._size=t.size(),this._datatype=e||t._datatype);else if(t&&p(t.data)&&p(t.size))this._data=t.data,this._size=t.size,Nt(this._data,this._size),this._datatype=e||t.datatype;else if(p(t))this._data=c(t),this._size=Bt(this._data),Nt(this._data,this._size),this._datatype=e;else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._data=[],this._size=[0],this._datatype=e}}function n(t,e,r,i){var o=i===r-1,a=e.dimension(i);return o?a.map((function(e){return Rt(e,t.length),t[e]})).valueOf():a.map((function(o){return Rt(o,t.length),n(t[o],e,r,i+1)})).valueOf()}function i(t,e,r,n,o){var a=o===n-1,s=e.dimension(o);a?s.forEach((function(e,n){Rt(e),t[e]=r[n[0]]})):s.forEach((function(a,s){Rt(a),i(t[a],e,r[s[0]],n,o+1)}))}function o(t,e,r){if(0===e.length){for(var n=t._data;p(n);)n=n[0];return n}return t._size=e.slice(0),t._data=zt(t._data,t._size,r),t}function a(t,e,r){for(var n=t._size.slice(0),i=!1;n.length<e.length;)n.push(0),i=!0;for(var a=0,s=e.length;a<s;a++)e[a]>n[a]&&(n[a]=e[a],i=!0);i&&o(t,n,r)}function c(t){return d(t)?c(t.valueOf()):p(t)?t.map(c):t}return r.prototype=new e,r.prototype.createDenseMatrix=function(t,e){return new r(t,e)},Object.defineProperty(r,\"name\",{value:\"DenseMatrix\"}),r.prototype.constructor=r,r.prototype.type=\"DenseMatrix\",r.prototype.isDenseMatrix=!0,r.prototype.getDataType=function(){return Yt(this._data,W)},r.prototype.storage=function(){return\"dense\"},r.prototype.datatype=function(){return this._datatype},r.prototype.create=function(t,e){return new r(t,e)},r.prototype.subset=function(t,e,o){switch(arguments.length){case 1:return function(t,e){if(!v(e))throw new TypeError(\"Invalid index\");var i=e.isScalar();if(i)return t.get(e.min());var o=e.size();if(o.length!==t._size.length)throw new Ct(o.length,t._size.length);for(var a=e.min(),s=e.max(),u=0,c=t._size.length;u<c;u++)Rt(a[u],t._size[u]),Rt(s[u],t._size[u]);return new r(n(t._data,e,o.length,0),t._datatype)}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var o,s=e.size(),u=e.isScalar();d(r)?(o=r.size(),r=r.valueOf()):o=Bt(r);if(u){if(0!==o.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),r,n)}else{if(!J(o,s))try{o=Bt(r=0===o.length?Qt([r],s):Qt(r,s))}catch(t){}if(s.length<t._size.length)throw new Ct(s.length,t._size.length,\"<\");if(o.length<s.length){for(var c=0,l=0;1===s[c]&&1===o[c];)c++;for(;1===s[c];)l++,c++;r=Vt(r,s.length,l,o)}if(!J(s,o))throw new Ct(s,o,\">\");var f=e.max().map((function(t){return t+1}));a(t,f,n);var h=s.length,p=0;i(t._data,e,r,h,p)}return t}(this,t,e,o);default:throw new SyntaxError(\"Wrong number of arguments\")}},r.prototype.get=function(t){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ct(t.length,this._size.length);for(var e=0;e<t.length;e++)Rt(t[e],this._size[e]);for(var r=this._data,n=0,i=t.length;n<i;n++){var o=t[n];Rt(o,r.length),r=r[o]}return r},r.prototype.set=function(t,e,r){if(!p(t))throw new TypeError(\"Array expected\");if(t.length<this._size.length)throw new Ct(t.length,this._size.length,\"<\");var n,i,o,s=t.map((function(t){return t+1}));a(this,s,r);var u=this._data;for(n=0,i=t.length-1;n<i;n++)Rt(o=t[n],u.length),u=u[o];return Rt(o=t[t.length-1],u.length),u[o]=e,this},r.prototype.resize=function(t,e,r){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var n=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));return o(r?this.clone():this,n,e)},r.prototype.reshape=function(t,e){var r=e?this.clone():this;r._data=Gt(r._data,t);var n=r._size.reduce((function(t,e){return t*e}));return r._size=Ht(t,n),r},r.prototype.clone=function(){return new r({data:Y(this._data),size:Y(this._size),datatype:this._datatype})},r.prototype.size=function(){return this._size.slice(0)},r.prototype.map=function(t){var e=this,n=le(t),i=function r(i,o){return p(i)?i.map((function(t,e){return r(t,o.concat(e))})):1===n?t(i):2===n?t(i,o):t(i,o,e)}(this._data,[]);return new r(i,void 0!==this._datatype?Yt(i,W):void 0)},r.prototype.forEach=function(t){var e=this;!function r(n,i){p(n)?n.forEach((function(t,e){r(t,i.concat(e))})):t(n,i,e)}(this._data,[])},r.prototype[Symbol.iterator]=_e().mark((function t(){var e;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=_e().mark((function t(e,r){var n;return _e().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!p(e)){i.next=9;break}n=0;case 2:if(!(n<e.length)){i.next=7;break}return i.delegateYield(t(e[n],r.concat(n)),\"t0\",4);case 4:n++,i.next=2;break;case 7:i.next=11;break;case 9:return i.next=11,{value:e,index:r};case 11:case\"end\":return i.stop()}}),t)})),t.delegateYield(e(this._data,[]),\"t0\",2);case 2:case\"end\":return t.stop()}}),t,this)})),r.prototype.rows=function(){var t=[];if(2!==this.size().length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");var e,n=ve(this._data);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(new r([i],this._datatype))}}catch(t){n.e(t)}finally{n.f()}return t},r.prototype.columns=function(){var t=this,e=[],n=this.size();if(2!==n.length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");for(var i=this._data,o=function(n){var o=i.map((function(t){return[t[n]]}));e.push(new r(o,t._datatype))},a=0;a<n[1];a++)o(a);return e},r.prototype.toArray=function(){return Y(this._data)},r.prototype.valueOf=function(){return this._data},r.prototype.format=function(t){return At(this._data,t)},r.prototype.toString=function(){return At(this._data)},r.prototype.toJSON=function(){return{mathjs:\"DenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},r.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;for(var e=t>0?t:0,n=t<0?-t:0,i=this._size[0],o=this._size[1],a=Math.min(i-n,o-e),c=[],l=0;l<a;l++)c[l]=this._data[l+n][l+e];return new r({data:c,size:[a],datatype:this._datatype})},r.diagonal=function(t,e,n,i){if(!p(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),n){if(u(n)&&(n=n.toNumber()),!s(n)||!it(n))throw new TypeError(\"The parameter k must be an integer number\")}else n=0;var o,a=n>0?n:0,c=n<0?-n:0,l=t[0],f=t[1],h=Math.min(l-c,f-a);if(p(e)){if(e.length!==h)throw new Error(\"Invalid value array length\");o=function(t){return e[t]}}else if(d(e)){var m=e.size();if(1!==m.length||m[0]!==h)throw new Error(\"Invalid matrix length\");o=function(t){return e.get([t])}}else o=function(){return e};i||(i=u(o(0))?o(0).mul(0):0);var y=[];if(t.length>0){y=zt(y,t,i);for(var g=0;g<h;g++)y[g+c][g+a]=o(g)}return new r({data:y,size:[l,f]})},r.fromJSON=function(t){return new r(t)},r.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return Rt(t,this._size[0]),Rt(e,this._size[0]),r._swapRows(t,e,this._data),this},r._swapRows=function(t,e,r){var n=r[t];r[t]=r[e],r[e]=n},r}),{isClass:!0}),ke=r(16),Ee=r.n(ke);function Se(t){return Se=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Se(t)}function Te(t,e){if(Ie(t)&&De(t,e))return t[e];if(\"function\"==typeof t[e]&&Oe(t,e))throw new Error('Cannot access method \"'+e+'\" as a property');throw new Error('No access to property \"'+e+'\"')}function Ae(t,e,r){if(Ie(t)&&De(t,e))return t[e]=r,r;throw new Error('No access to property \"'+e+'\"')}function De(t,e){return!(!t||\"object\"!==Se(t))&&(!!$(Pe,e)||!(e in Object.prototype)&&!(e in Function.prototype))}function Oe(t,e){return null!=t&&\"function\"==typeof t[e]&&(!($(t,e)&&Object.getPrototypeOf&&e in Object.getPrototypeOf(t))&&(!!$(Ce,e)||!(e in Object.prototype)&&!(e in Function.prototype)))}function Ie(t){return\"object\"===Se(t)&&t&&t.constructor===Object}var Pe={length:!0,name:!0},Ce={toString:!0,valueOf:!0,toLocaleString:!0};function Le(t){return Le=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Le(t)}function Me(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Fe(n.key),n)}}function Fe(t){var e=function(t,e){if(\"object\"!=Le(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=Le(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==Le(e)?e:e+\"\"}var Be=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.wrappedObject=e},(e=[{key:\"keys\",value:function(){return Object.keys(this.wrappedObject)}},{key:\"get\",value:function(t){return Te(this.wrappedObject,t)}},{key:\"set\",value:function(t,e){return Ae(this.wrappedObject,t,e),this}},{key:\"has\",value:function(t){return e=this.wrappedObject,t in e;var e}}])&&Me(t.prototype,e),r&&Me(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}();function je(t){return!!t&&(t instanceof Map||t instanceof Be||\"function\"==typeof t.set&&\"function\"==typeof t.get&&\"function\"==typeof t.keys&&\"function\"==typeof t.has)}var Ne=function(){return Ne=Ee.a.create,Ee.a},Re=te(\"typed\",[\"?BigNumber\",\"?Complex\",\"?DenseMatrix\",\"?Fraction\"],(function(t){var e=t.BigNumber,r=t.Complex,n=t.DenseMatrix,i=t.Fraction,o=Ne();return o.clear(),o.addTypes([{name:\"number\",test:s},{name:\"Complex\",test:c},{name:\"BigNumber\",test:u},{name:\"Fraction\",test:l},{name:\"Unit\",test:f},{name:\"identifier\",test:function(t){return h&&/^(?:[A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])*$/.test(t)}},{name:\"string\",test:h},{name:\"Chain\",test:V},{name:\"Array\",test:p},{name:\"Matrix\",test:d},{name:\"DenseMatrix\",test:y},{name:\"SparseMatrix\",test:g},{name:\"Range\",test:b},{name:\"Index\",test:v},{name:\"boolean\",test:w},{name:\"ResultSet\",test:_},{name:\"Help\",test:x},{name:\"function\",test:k},{name:\"Date\",test:E},{name:\"RegExp\",test:S},{name:\"null\",test:A},{name:\"undefined\",test:D},{name:\"AccessorNode\",test:O},{name:\"ArrayNode\",test:I},{name:\"AssignmentNode\",test:P},{name:\"BlockNode\",test:C},{name:\"ConditionalNode\",test:L},{name:\"ConstantNode\",test:M},{name:\"FunctionNode\",test:B},{name:\"FunctionAssignmentNode\",test:F},{name:\"IndexNode\",test:j},{name:\"Node\",test:N},{name:\"ObjectNode\",test:R},{name:\"OperatorNode\",test:z},{name:\"ParenthesisNode\",test:U},{name:\"RangeNode\",test:G},{name:\"RelationalNode\",test:H},{name:\"SymbolNode\",test:q},{name:\"Map\",test:je},{name:\"Object\",test:T}]),o.addConversions([{from:\"number\",to:\"BigNumber\",convert:function(t){if(e||ze(t),t.toExponential().replace(/e.*$/,\"\").replace(/^0\\.?0*|\\./,\"\").length>15)throw new TypeError(\"Cannot implicitly convert a number with >15 significant digits to BigNumber (value: \"+t+\"). Use function bignumber(x) to convert to BigNumber.\");return new e(t)}},{from:\"number\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t,0)}},{from:\"BigNumber\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t.toNumber(),0)}},{from:\"Fraction\",to:\"BigNumber\",convert:function(t){throw new TypeError(\"Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.\")}},{from:\"Fraction\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t.valueOf(),0)}},{from:\"number\",to:\"Fraction\",convert:function(t){i||Ge(t);var e=new i(t);if(e.valueOf()!==t)throw new TypeError(\"Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: \"+t+\"). Use function fraction(x) to convert to Fraction.\");return e}},{from:\"string\",to:\"number\",convert:function(t){var e=Number(t);if(isNaN(e))throw new Error('Cannot convert \"'+t+'\" to a number');return e}},{from:\"string\",to:\"BigNumber\",convert:function(t){e||ze(t);try{return new e(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to BigNumber')}}},{from:\"string\",to:\"Fraction\",convert:function(t){i||Ge(t);try{return new i(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Fraction')}}},{from:\"string\",to:\"Complex\",convert:function(t){r||Ue(t);try{return new r(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Complex')}}},{from:\"boolean\",to:\"number\",convert:function(t){return+t}},{from:\"boolean\",to:\"BigNumber\",convert:function(t){return e||ze(t),new e(+t)}},{from:\"boolean\",to:\"Fraction\",convert:function(t){return i||Ge(t),new i(+t)}},{from:\"boolean\",to:\"string\",convert:function(t){return String(t)}},{from:\"Array\",to:\"Matrix\",convert:function(t){return n||function(){throw new Error(\"Cannot convert array into a Matrix: no class 'DenseMatrix' provided\")}(),new n(t)}},{from:\"Matrix\",to:\"Array\",convert:function(t){return t.valueOf()}}]),o.onMismatch=function(t,e,r){var n=o.createError(t,e,r);if([\"wrongType\",\"mismatch\"].includes(n.data.category)&&1===e.length&&m(e[0])&&r.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=n.data,i}throw n},o.onMismatch=function(t,e,r){var n=o.createError(t,e,r);if([\"wrongType\",\"mismatch\"].includes(n.data.category)&&1===e.length&&m(e[0])&&r.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=n.data,i}throw n},o}));function ze(t){throw new Error(\"Cannot convert value \".concat(t,\" into a BigNumber: no class 'BigNumber' provided\"))}function Ue(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Complex number: no class 'Complex' provided\"))}function Ge(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Fraction, no class 'Fraction' provided.\"))}function He(t,e,r){return t&&\"function\"==typeof t.map?t.map((function(t){return He(t,e,r)})):e(t)}var qe=\"number\",Ve=\"number, number\";function We(t){return Math.abs(t)}function Ze(t,e){return t+e}function Ye(t,e){return t-e}function Xe(t,e){return t*e}function Ke(t){return-t}function Je(t){return t}function $e(t){return ut(t)}function Qe(t){return t*t*t}function tr(t){return Math.exp(t)}function er(t){return ct(t)}function rr(t,e){if(!it(t)||!it(e))throw new Error(\"Parameters in function lcm must be integer numbers\");if(0===t||0===e)return 0;for(var r,n=t*e;0!==e;)e=t%(r=e),t=r;return Math.abs(n/t)}function nr(t){return st(t)}function ir(t){return at(t)}function or(t){return ot(t)}function ar(t){return t*t}function sr(t,e){var r,n,i,o=0,a=1,s=1,u=0;if(!it(t)||!it(e))throw new Error(\"Parameters in function xgcd must be integer numbers\");for(;e;)i=t-(n=Math.floor(t/e))*e,r=o,o=a-n*o,a=r,r=s,s=u-n*s,u=r,t=e,e=i;return t<0?[-t,-a,-u]:[t,t?a:0,u]}function ur(t,e){return t*t<1&&e===1/0||t*t>1&&e===-1/0?0:Math.pow(t,e)}We.signature=qe,Ze.signature=Ve,Ye.signature=Ve,Xe.signature=Ve,Ke.signature=qe,Je.signature=qe,$e.signature=qe,Qe.signature=qe,tr.signature=qe,er.signature=qe,rr.signature=Ve,nr.signature=qe,ir.signature=qe,or.signature=qe,ar.signature=qe,sr.signature=Ve,ur.signature=Ve;var cr=\"number\";function lr(t){return vt(t)}function fr(t){return Math.atan(1/t)}function hr(t){return isFinite(t)?(Math.log((t+1)/t)+Math.log(t/(t-1)))/2:0}function pr(t){return Math.asin(1/t)}function dr(t){var e=1/t;return Math.log(e+Math.sqrt(e*e+1))}function mr(t){return Math.acos(1/t)}function yr(t){var e=1/t,r=Math.sqrt(e*e-1);return Math.log(r+e)}function gr(t){return wt(t)}function br(t){return _t(t)}function vr(t){return 1/Math.tan(t)}function wr(t){var e=Math.exp(2*t);return(e+1)/(e-1)}function _r(t){return 1/Math.sin(t)}function xr(t){return 0===t?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(t)-Math.exp(-t)))*ot(t)}function kr(t){return 1/Math.cos(t)}function Er(t){return 2/(Math.exp(t)+Math.exp(-t))}function Sr(t){return xt(t)}lr.signature=cr,fr.signature=cr,hr.signature=cr,pr.signature=cr,dr.signature=cr,mr.signature=cr,yr.signature=cr,gr.signature=cr,br.signature=cr,vr.signature=cr,wr.signature=cr,_r.signature=cr,xr.signature=cr,kr.signature=cr,Er.signature=cr,Sr.signature=cr;var Tr=\"addScalar\",Ar=te(Tr,[\"typed\"],(function(t){var e=t.typed;return e(Tr,{\"number, number\":Ze,\"Complex, Complex\":function(t,e){return t.add(e)},\"BigNumber, BigNumber\":function(t,e){return t.plus(e)},\"Fraction, Fraction\":function(t,e){return t.add(e)},\"Unit, Unit\":e.referToSelf((function(t){return function(r,n){if(null===r.value||void 0===r.value)throw new Error(\"Parameter x contains a unit with undefined value\");if(null===n.value||void 0===n.value)throw new Error(\"Parameter y contains a unit with undefined value\");if(!r.equalBase(n))throw new Error(\"Units do not match\");var i=r.clone();return i.value=e.find(t,[i.valueType(),n.valueType()])(i.value,n.value),i.fixPrefix=!1,i}}))})})),Dr=te(\"bignumber\",[\"typed\",\"BigNumber\"],(function(t){var e=t.typed,r=t.BigNumber;return e(\"bignumber\",{\"\":function(){return new r(0)},number:function(t){return new r(t+\"\")},string:function(t){var e=t.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(e){var n=e[2],i=r(e[1]),o=new r(2).pow(Number(n));if(i.gt(o.sub(1)))throw new SyntaxError('String \"'.concat(t,'\" is out of range'));var a=new r(2).pow(Number(n)-1);return i.gte(a)?i.sub(o):i}return new r(t)},BigNumber:function(t){return t},Unit:e.referToSelf((function(t){return function(e){var r=e.clone();return r.value=t(e.value),r}})),Fraction:function(t){return new r(t.n).div(t.d).times(t.s)},null:function(t){return new r(0)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})}));var Or=\"number, number\";function Ir(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitAnd\");return t&e}function Pr(t){if(!it(t))throw new Error(\"Integer expected in function bitNot\");return~t}function Cr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitOr\");return t|e}function Lr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitXor\");return t^e}function Mr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function leftShift\");return t<<e}function Fr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightArithShift\");return t>>e}function Br(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightLogShift\");return t>>>e}Ir.signature=Or,Pr.signature=\"number\",Cr.signature=Or,Lr.signature=Or,Mr.signature=Or,Fr.signature=Or,Br.signature=Or;function jr(t,e){if(e<t)return 1;if(e===t)return e;var r=e+t>>1;return jr(t,r)*jr(r+1,e)}function Nr(t,e){if(!it(t)||t<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(!it(e)||e<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(e>t)throw new TypeError(\"k must be less than or equal to n\");for(var r=t-e,n=1,i=2,o=e<r?e:r,a=e<r?r+1:e+1;a<=t;++a)for(n*=a;i<=o&&n%i==0;)n/=i,++i;return i<=o&&(n/=jr(i,o)),n}Nr.signature=\"number, number\";function Rr(t,e,r){if(null==r)return t.eq(e);if(t.eq(e))return!0;if(t.isNaN()||e.isNaN())return!1;if(t.isFinite()&&e.isFinite()){var n=t.minus(e).abs();if(n.isZero())return!0;var i=t.constructor.max(t.abs(),e.abs());return n.lte(i.times(r))}return!1}var zr=te(\"compareUnits\",[\"typed\"],(function(t){var e=t.typed;return{\"Unit, Unit\":e.referToSelf((function(t){return function(r,n){if(!r.equalBase(n))throw new Error(\"Cannot compare units with different base\");return e.find(t,[r.valueType(),n.valueType()])(r.value,n.value)}}))}})),Ur=\"equalScalar\",Gr=te(Ur,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config,n=zr({typed:e});return e(Ur,{\"boolean, boolean\":function(t,e){return t===e},\"number, number\":function(t,e){return bt(t,e,r.epsilon)},\"BigNumber, BigNumber\":function(t,e){return t.eq(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return t.equals(e)},\"Complex, Complex\":function(t,e){return function(t,e,r){return bt(t.re,e.re,r)&&bt(t.im,e.im,r)}(t,e,r.epsilon)}},n)}));te(Ur,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Ur,{\"number, number\":function(t,e){return bt(t,e,r.epsilon)}})})),Math.pow(2,53);var Hr=\"getMatrixDataType\",qr=te(Hr,[\"typed\"],(function(t){return(0,t.typed)(Hr,{Array:function(t){return Yt(t,W)},Matrix:function(t){return t.getDataType()}})})),Vr=(te(\"hex\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"hex\",{\"number | BigNumber\":function(t){return r(t,{notation:\"hex\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"hex\",wordSize:e})}})})),\"isInteger\"),Wr=te(Vr,[\"typed\"],(function(t){var e=t.typed;return e(Vr,{number:it,BigNumber:function(t){return t.isInt()},Fraction:function(t){return 1===t.d&&isFinite(t.n)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})})),Zr=\"number\";function Yr(t){return t<0}function Xr(t){return t>0}function Kr(t){return 0===t}function Jr(t){return Number.isNaN(t)}Yr.signature=Zr,Xr.signature=Zr,Kr.signature=Zr,Jr.signature=Zr;var $r=\"isPositive\",Qr=te($r,[\"typed\"],(function(t){var e=t.typed;return e($r,{number:Xr,BigNumber:function(t){return!t.isNeg()&&!t.isZero()&&!t.isNaN()},Fraction:function(t){return t.s>0&&t.n>0},Unit:e.referToSelf((function(t){return function(r){return e.find(t,r.valueType())(r.value)}})),\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})}));function tn(t){var e;if(it(t))return t<=0?isFinite(t)?1/0:NaN:t>171?1/0:jr(1,t-1);if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*tn(1-t));if(t>=171.35)return 1/0;if(t>85){var r=t*t,n=r*t,i=n*t,o=i*t;return Math.sqrt(2*Math.PI/t)*Math.pow(t/Math.E,t)*(1+1/(12*t)+1/(288*r)-139/(51840*n)-571/(2488320*i)+163879/(209018880*o)+5246819/(75246796800*o*t))}--t,e=rn[0];for(var a=1;a<rn.length;++a)e+=rn[a]/(t+a);var s=t+en+.5;return Math.sqrt(2*Math.PI)*Math.pow(s,t+.5)*Math.exp(-s)*e}tn.signature=\"number\";var en=4.7421875,rn=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],nn=.9189385332046728,on=[1.000000000190015,76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18];function an(t){if(t<0)return NaN;if(0===t)return 1/0;if(!isFinite(t))return t;if(t<.5)return Math.log(Math.PI/Math.sin(Math.PI*t))-an(1-t);for(var e=(t-=1)+5+.5,r=on[0],n=6;n>=1;n--)r+=on[n]/(t+n);return nn+(t+.5)*Math.log(e)-e+Math.log(r)}an.signature=\"number\";var sn=\"number, number\";function un(t){return!t}function cn(t,e){return!(!t&&!e)}function ln(t,e){return!!t!=!!e}function fn(t,e){return!(!t||!e)}un.signature=\"number\",cn.signature=sn,ln.signature=sn,fn.signature=sn;te(\"oct\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"oct\",{\"number | BigNumber\":function(t){return r(t,{notation:\"oct\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"oct\",wordSize:e})}})}));var hn=r(64),pn=r.n(hn);Date.now();function dn(t){return dn=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},dn(t)}function mn(){mn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:T(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function g(){}function b(){}function v(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(P([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=v.prototype=g.prototype=Object.create(w);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==dn(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function T(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=f(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=f(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(D,this),this.reset(!0)}function P(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(dn(e)+\" is not iterable\")}return b.prototype=v,i(k,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:b,configurable:!0}),b.displayName=c(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===b||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},E(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(k),c(k,u,\"Generator\"),c(k,a,(function(){return this})),c(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}var yn=te(\"SparseMatrix\",[\"typed\",\"equalScalar\",\"Matrix\"],(function(t){var e=t.typed,r=t.equalScalar,n=t.Matrix;function i(t,e){if(!(this instanceof i))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!h(e))throw new Error(\"Invalid datatype: \"+e);if(d(t))!function(t,e,r){\"SparseMatrix\"===e.type?(t._values=e._values?Y(e._values):void 0,t._index=Y(e._index),t._ptr=Y(e._ptr),t._size=Y(e._size),t._datatype=r||e._datatype):o(t,e.valueOf(),r||e._datatype)}(this,t,e);else if(t&&p(t.index)&&p(t.ptr)&&p(t.size))this._values=t.values,this._index=t.index,this._ptr=t.ptr,this._size=t.size,this._datatype=e||t.datatype;else if(p(t))o(this,t,e);else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=e}}function o(t,n,i){t._values=[],t._index=[],t._ptr=[],t._datatype=i;var o=n.length,a=0,s=r,u=0;if(h(i)&&(s=e.find(r,[i,i])||r,u=e.convert(0,i)),o>0){var c=0;do{t._ptr.push(t._index.length);for(var l=0;l<o;l++){var f=n[l];if(p(f)){if(0===c&&a<f.length&&(a=f.length),c<f.length){var d=f[c];s(d,u)||(t._values.push(d),t._index.push(l))}}else 0===c&&a<1&&(a=1),s(f,u)||(t._values.push(f),t._index.push(l))}c++}while(c<a)}t._ptr.push(t._index.length),t._size=[o,a]}function a(t,e,r,n){if(r-e==0)return r;for(var i=e;i<r;i++)if(n[i]===t)return i;return e}function c(t,e,r,n,i,o,a){i.splice(t,0,n),o.splice(t,0,e);for(var s=r+1;s<a.length;s++)a[s]++}function l(t,n,i,o){var a=o||0,s=r,u=0;h(t._datatype)&&(s=e.find(r,[t._datatype,t._datatype])||r,u=e.convert(0,t._datatype),a=e.convert(a,t._datatype));var c,l,f,p=!s(a,u),d=t._size[0],m=t._size[1];if(i>m){for(l=m;l<i;l++)if(t._ptr[l]=t._values.length,p)for(c=0;c<d;c++)t._values.push(a),t._index.push(c);t._ptr[i]=t._values.length}else i<m&&(t._ptr.splice(i+1,m-i),t._values.splice(t._ptr[i],t._values.length),t._index.splice(t._ptr[i],t._index.length));if(m=i,n>d){if(p){var y=0;for(l=0;l<m;l++){t._ptr[l]=t._ptr[l]+y,f=t._ptr[l+1]+y;var g=0;for(c=d;c<n;c++,g++)t._values.splice(f+g,0,a),t._index.splice(f+g,0,c),y++}t._ptr[m]=t._values.length}}else if(n<d){var b=0;for(l=0;l<m;l++){t._ptr[l]=t._ptr[l]-b;var v=t._ptr[l],w=t._ptr[l+1]-b;for(f=v;f<w;f++)(c=t._index[f])>n-1&&(t._values.splice(f,1),t._index.splice(f,1),b++)}t._ptr[l]=t._values.length}return t._size[0]=n,t._size[1]=i,t}function f(t,e,r,n,i){var o,a,s=n[0],u=n[1],c=[];for(o=0;o<s;o++)for(c[o]=[],a=0;a<u;a++)c[o][a]=0;for(a=0;a<u;a++)for(var l=r[a],f=r[a+1],h=l;h<f;h++)c[o=e[h]][a]=t?i?Y(t[h]):t[h]:1;return c}return i.prototype=new n,i.prototype.createSparseMatrix=function(t,e){return new i(t,e)},Object.defineProperty(i,\"name\",{value:\"SparseMatrix\"}),i.prototype.constructor=i,i.prototype.type=\"SparseMatrix\",i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return Yt(this._values,W)},i.prototype.storage=function(){return\"sparse\"},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(t,e){return new i(t,e)},i.prototype.density=function(){var t=this._size[0],e=this._size[1];return 0!==t&&0!==e?this._index.length/(t*e):0},i.prototype.subset=function(t,e,r){if(!this._values)throw new Error(\"Cannot invoke subset on a Pattern only matrix\");switch(arguments.length){case 1:return function(t,e){if(!v(e))throw new TypeError(\"Invalid index\");if(e.isScalar())return t.get(e.min());var r,n,o,a,s=e.size();if(s.length!==t._size.length)throw new Ct(s.length,t._size.length);var u=e.min(),c=e.max();for(r=0,n=t._size.length;r<n;r++)Rt(u[r],t._size[r]),Rt(c[r],t._size[r]);var l=t._values,f=t._index,h=t._ptr,p=e.dimension(0),d=e.dimension(1),m=[],y=[];p.forEach((function(t,e){y[t]=e[0],m[t]=!0}));var g=l?[]:void 0,b=[],w=[];return d.forEach((function(t){for(w.push(b.length),o=h[t],a=h[t+1];o<a;o++)r=f[o],!0===m[r]&&(b.push(y[r]),g&&g.push(l[o]))})),w.push(b.length),new i({values:g,index:b,ptr:w,size:s,datatype:t._datatype})}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var i,o=e.size(),a=e.isScalar();d(r)?(i=r.size(),r=r.toArray()):i=Bt(r);if(a){if(0!==i.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),r,n)}else{if(1!==o.length&&2!==o.length)throw new Ct(o.length,t._size.length,\"<\");if(i.length<o.length){for(var s=0,u=0;1===o[s]&&1===i[s];)s++;for(;1===o[s];)u++,s++;r=Vt(r,o.length,u,i)}if(!J(o,i))throw new Ct(o,i,\">\");if(1===o.length){e.dimension(0).forEach((function(e,i){Rt(e),t.set([e,0],r[i[0]],n)}))}else{var c=e.dimension(0),l=e.dimension(1);c.forEach((function(e,i){Rt(e),l.forEach((function(o,a){Rt(o),t.set([e,o],r[i[0]][a[0]],n)}))}))}}return t}(this,t,e,r);default:throw new SyntaxError(\"Wrong number of arguments\")}},i.prototype.get=function(t){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ct(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke get on a Pattern only matrix\");var e=t[0],r=t[1];Rt(e,this._size[0]),Rt(r,this._size[1]);var n=a(e,this._ptr[r],this._ptr[r+1],this._index);return n<this._ptr[r+1]&&this._index[n]===e?this._values[n]:0},i.prototype.set=function(t,n,i){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ct(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke set on a Pattern only matrix\");var o=t[0],s=t[1],u=this._size[0],f=this._size[1],d=r,m=0;h(this._datatype)&&(d=e.find(r,[this._datatype,this._datatype])||r,m=e.convert(0,this._datatype)),(o>u-1||s>f-1)&&(l(this,Math.max(o+1,u),Math.max(s+1,f),i),u=this._size[0],f=this._size[1]),Rt(o,u),Rt(s,f);var y=a(o,this._ptr[s],this._ptr[s+1],this._index);return y<this._ptr[s+1]&&this._index[y]===o?d(n,m)?function(t,e,r,n,i){r.splice(t,1),n.splice(t,1);for(var o=e+1;o<i.length;o++)i[o]--}(y,s,this._values,this._index,this._ptr):this._values[y]=n:d(n,m)||c(y,o,s,n,this._values,this._index,this._ptr),this},i.prototype.resize=function(t,e,r){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var n=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));if(2!==n.length)throw new Error(\"Only two dimensions matrix are supported\");return n.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+At(n)+\")\")})),l(r?this.clone():this,n[0],n[1],e)},i.prototype.reshape=function(t,e){if(!p(t))throw new TypeError(\"Array expected\");if(2!==t.length)throw new Error(\"Sparse matrices can only be reshaped in two dimensions\");t.forEach((function(e){if(!s(e)||!it(e)||e<=-2||0===e)throw new TypeError(\"Invalid size, must contain positive integers or -1 (size: \"+At(t)+\")\")}));var r=this._size[0]*this._size[1];if(r!==(t=Ht(t,r))[0]*t[1])throw new Error(\"Reshaping sparse matrix will result in the wrong number of elements\");var n=e?this.clone():this;if(this._size[0]===t[0]&&this._size[1]===t[1])return n;for(var i=[],o=0;o<n._ptr.length;o++)for(var u=0;u<n._ptr[o+1]-n._ptr[o];u++)i.push(o);for(var l=n._values.slice(),f=n._index.slice(),h=0;h<n._index.length;h++){var d=f[h],m=i[h],y=d*n._size[1]+m;i[h]=y%t[1],f[h]=Math.floor(y/t[1])}n._values.length=0,n._index.length=0,n._ptr.length=t[1]+1,n._size=t.slice();for(var g=0;g<n._ptr.length;g++)n._ptr[g]=0;for(var b=0;b<l.length;b++){var v=f[b],w=i[b],_=l[b];c(a(v,n._ptr[w],n._ptr[w+1],n._index),v,w,_,n._values,n._index,n._ptr)}return n},i.prototype.clone=function(){return new i({values:this._values?Y(this._values):void 0,index:Y(this._index),ptr:Y(this._ptr),size:Y(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(t,n){if(!this._values)throw new Error(\"Cannot invoke map on a Pattern only matrix\");var o=this,a=this._size[0],s=this._size[1],u=le(t);return function(t,n,o,a,s,u,c){var l=[],f=[],p=[],d=r,m=0;h(t._datatype)&&(d=e.find(r,[t._datatype,t._datatype])||r,m=e.convert(0,t._datatype));for(var y=function(t,e,r){t=u(t,e,r),d(t,m)||(l.push(t),f.push(e))},g=a;g<=s;g++){p.push(l.length);var b=t._ptr[g],v=t._ptr[g+1];if(c)for(var w=b;w<v;w++){var _=t._index[w];_>=n&&_<=o&&y(t._values[w],_-n,g-a)}else{for(var x={},k=b;k<v;k++){x[t._index[k]]=t._values[k]}for(var E=n;E<=o;E++){y(E in x?x[E]:0,E-n,g-a)}}}return p.push(l.length),new i({values:l,index:f,ptr:p,size:[o-n+1,s-a+1]})}(this,0,a-1,0,s-1,(function(e,r,n){return 1===u?t(e):2===u?t(e,[r,n]):t(e,[r,n],o)}),n)},i.prototype.forEach=function(t,e){if(!this._values)throw new Error(\"Cannot invoke forEach on a Pattern only matrix\");for(var r=this._size[0],n=this._size[1],i=0;i<n;i++){var o=this._ptr[i],a=this._ptr[i+1];if(e)for(var s=o;s<a;s++){var u=this._index[s];t(this._values[s],[u,i],this)}else{for(var c={},l=o;l<a;l++){c[this._index[l]]=this._values[l]}for(var f=0;f<r;f++){t(f in c?c[f]:0,[f,i],this)}}}},i.prototype[Symbol.iterator]=mn().mark((function t(){var e,r,n,i,o,a;return mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._values){t.next=2;break}throw new Error(\"Cannot iterate a Pattern only matrix\");case 2:e=this._size[1],r=0;case 4:if(!(r<e)){t.next=18;break}n=this._ptr[r],i=this._ptr[r+1],o=n;case 8:if(!(o<i)){t.next=15;break}return a=this._index[o],t.next=12,{value:this._values[o],index:[a,r]};case 12:o++,t.next=8;break;case 15:r++,t.next=4;break;case 18:case\"end\":return t.stop()}}),t,this)})),i.prototype.toArray=function(){return f(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return f(this._values,this._index,this._ptr,this._size,!1)},i.prototype.format=function(t){for(var e=this._size[0],r=this._size[1],n=this.density(),i=\"Sparse Matrix [\"+At(e,t)+\" x \"+At(r,t)+\"] density: \"+At(n,t)+\"\\n\",o=0;o<r;o++)for(var a=this._ptr[o],s=this._ptr[o+1],u=a;u<s;u++){i+=\"\\n    (\"+At(this._index[u],t)+\", \"+At(o,t)+\") ==> \"+(this._values?At(this._values[u],t):\"X\")}return i},i.prototype.toString=function(){return At(this.toArray())},i.prototype.toJSON=function(){return{mathjs:\"SparseMatrix\",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;var e=t>0?t:0,r=t<0?-t:0,n=this._size[0],o=this._size[1],a=Math.min(n-r,o-e),c=[],l=[],f=[];f[0]=0;for(var h=e;h<o&&c.length<a;h++)for(var p=this._ptr[h],d=this._ptr[h+1],m=p;m<d;m++){var y=this._index[m];if(y===h-e+r){c.push(this._values[m]),l[c.length-1]=y-r;break}}return f.push(c.length),new i({values:c,index:l,ptr:f,size:[a,1]})},i.fromJSON=function(t){return new i(t)},i.diagonal=function(t,n,o,a,c){if(!p(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),o){if(u(o)&&(o=o.toNumber()),!s(o)||!it(o))throw new TypeError(\"The parameter k must be an integer number\")}else o=0;var l=r,f=0;h(c)&&(l=e.find(r,[c,c])||r,f=e.convert(0,c));var m,y=o>0?o:0,g=o<0?-o:0,b=t[0],v=t[1],w=Math.min(b-g,v-y);if(p(n)){if(n.length!==w)throw new Error(\"Invalid value array length\");m=function(t){return n[t]}}else if(d(n)){var _=n.size();if(1!==_.length||_[0]!==w)throw new Error(\"Invalid matrix length\");m=function(t){return n.get([t])}}else m=function(){return n};for(var x=[],k=[],E=[],S=0;S<v;S++){E.push(x.length);var T=S-y;if(T>=0&&T<w){var A=m(T);l(A,f)||(k.push(T+g),x.push(A))}}return E.push(x.length),new i({values:x,index:k,ptr:E,size:[b,v]})},i.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return Rt(t,this._size[0]),Rt(e,this._size[0]),i._swapRows(t,e,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(t,e,r,n,i){for(var o=n[t],a=n[t+1],s=o;s<a;s++)i(r[s],e[s])},i._swapRows=function(t,e,r,n,i,o){for(var s=0;s<r;s++){var u=o[s],c=o[s+1],l=a(t,u,c,i),f=a(e,u,c,i);if(l<c&&f<c&&i[l]===t&&i[f]===e){if(n){var h=n[l];n[l]=n[f],n[f]=h}}else if(l<c&&i[l]===t&&(f>=c||i[f]!==e)){var p=n?n[l]:void 0;i.splice(f,0,e),n&&n.splice(f,0,p),i.splice(f<=l?l+1:l,1),n&&n.splice(f<=l?l+1:l,1)}else if(f<c&&i[f]===e&&(l>=c||i[l]!==t)){var d=n?n[f]:void 0;i.splice(l,0,t),n&&n.splice(l,0,d),i.splice(l<=f?f+1:f,1),n&&n.splice(l<=f?f+1:f,1)}}},i}),{isClass:!0});te(\"bin\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"bin\",{\"number | BigNumber\":function(t){return r(t,{notation:\"bin\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"bin\",wordSize:e})}})}));var gn=\"matrix\",bn=te(gn,[\"typed\",\"Matrix\",\"DenseMatrix\",\"SparseMatrix\"],(function(t){var e=t.typed,r=(t.Matrix,t.DenseMatrix),n=t.SparseMatrix;return e(gn,{\"\":function(){return i([])},string:function(t){return i([],t)},\"string, string\":function(t,e){return i([],t,e)},Array:function(t){return i(t)},Matrix:function(t){return i(t,t.storage())},\"Array | Matrix, string\":i,\"Array | Matrix, string, string\":i});function i(t,e,i){if(\"dense\"===e||\"default\"===e||void 0===e)return new r(t,i);if(\"sparse\"===e)return new n(t,i);throw new TypeError(\"Unknown matrix type \"+JSON.stringify(e)+\".\")}}));function vn(){throw new Error('No \"bignumber\" implementation available')}function wn(){throw new Error('No \"matrix\" implementation available')}var _n=\"transpose\",xn=te(_n,[\"typed\",\"matrix\"],(function(t){var e=t.typed,r=t.matrix;return e(_n,{Array:function(t){return n(r(t)).valueOf()},Matrix:n,any:Y});function n(t){var e,r=t.size();switch(r.length){case 1:e=t.clone();break;case 2:var n=r[0],i=r[1];if(0===i)throw new RangeError(\"Cannot transpose a 2D matrix with no columns (size: \"+At(r)+\")\");switch(t.storage()){case\"dense\":e=function(t,e,r){for(var n,i=t._data,o=[],a=0;a<r;a++){n=o[a]=[];for(var s=0;s<e;s++)n[s]=Y(i[s][a])}return t.createDenseMatrix({data:o,size:[r,e],datatype:t._datatype})}(t,n,i);break;case\"sparse\":e=function(t,e,r){for(var n,i,o,a=t._values,s=t._index,u=t._ptr,c=a?[]:void 0,l=[],f=[],h=[],p=0;p<e;p++)h[p]=0;for(n=0,i=s.length;n<i;n++)h[s[n]]++;for(var d=0,m=0;m<e;m++)f.push(d),d+=h[m],h[m]=f[m];for(f.push(d),o=0;o<r;o++)for(var y=u[o],g=u[o+1],b=y;b<g;b++){var v=h[s[b]]++;l[v]=o,a&&(c[v]=Y(a[b]))}return t.createSparseMatrix({values:c,index:l,ptr:f,size:[r,e],datatype:t._datatype})}(t,n,i)}break;default:throw new RangeError(\"Matrix must be a vector or two dimensional (size: \"+At(r)+\")\")}return e}})),kn=\"concat\",En=te(kn,[\"typed\",\"matrix\",\"isInteger\"],(function(t){var e=t.typed,r=t.matrix,n=t.isInteger;return e(kn,{\"...Array | Matrix | number | BigNumber\":function(t){var e,i,o=t.length,a=-1,c=!1,l=[];for(e=0;e<o;e++){var f=t[e];if(d(f)&&(c=!0),s(f)||u(f)){if(e!==o-1)throw new Error(\"Dimension must be specified as last argument\");if(i=a,a=f.valueOf(),!n(a))throw new TypeError(\"Integer number expected for dimension\");if(a<0||e>0&&a>i)throw new Lt(a,i+1)}else{var h=Y(f).valueOf(),p=Bt(h);if(l[e]=h,i=a,a=p.length-1,e>0&&a!==i)throw new Ct(i+1,a+1)}}if(0===l.length)throw new SyntaxError(\"At least one matrix expected\");for(var m=l.shift();l.length;)m=Kt(m,l.shift(),a);return c?r(m):m},\"...string\":function(t){return t.join(\"\")}})})),Sn=te(\"matAlgo03xDSf\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,n,i){var o=t._data,a=t._size,s=t._datatype,u=r._values,c=r._index,l=r._ptr,f=r._size,h=r._datatype;if(a.length!==f.length)throw new Ct(a.length,f.length);if(a[0]!==f[0]||a[1]!==f[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+f+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var p,d=a[0],m=a[1],y=0,g=n;\"string\"==typeof s&&s===h&&(p=s,y=e.convert(0,p),g=e.find(n,[p,p]));for(var b=[],v=0;v<d;v++)b[v]=[];for(var w=[],_=[],x=0;x<m;x++){for(var k=x+1,E=l[x],S=l[x+1],T=E;T<S;T++){var A=c[T];w[A]=i?g(u[T],o[A][x]):g(o[A][x],u[T]),_[A]=k}for(var D=0;D<d;D++)_[D]===k?b[D][x]=w[D]:b[D][x]=i?g(y,o[D][x]):g(o[D][x],y)}return t.createDenseMatrix({data:b,size:[d,m],datatype:p})}})),Tn=te(\"matAlgo07xSSf\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,i,o){var a=t._size,s=t._datatype,u=i._size,c=i._datatype;if(a.length!==u.length)throw new Ct(a.length,u.length);if(a[0]!==u[0]||a[1]!==u[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+u+\")\");var l,f,h,p=a[0],d=a[1],m=0,y=o;\"string\"==typeof s&&s===c&&(l=s,m=e.convert(0,l),y=e.find(o,[l,l]));var g=[];for(f=0;f<p;f++)g[f]=[];var b=[],v=[],w=[],_=[];for(h=0;h<d;h++){var x=h+1;for(n(t,h,w,b,x),n(i,h,_,v,x),f=0;f<p;f++){var k=w[f]===x?b[f]:m,E=_[f]===x?v[f]:m;g[f][h]=y(k,E)}}return new r({data:g,size:[p,d],datatype:l})};function n(t,e,r,n,i){for(var o=t._values,a=t._index,s=t._ptr,u=s[e],c=s[e+1];u<c;u++){var l=a[u];r[l]=i,n[l]=o[u]}}})),An=te(\"matAlgo12xSfs\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,n,i,o){var a=t._values,s=t._index,u=t._ptr,c=t._size,l=t._datatype;if(!a)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var f,h=c[0],p=c[1],d=i;\"string\"==typeof l&&(f=l,n=e.convert(n,f),d=e.find(i,[f,f]));for(var m=[],y=[],g=[],b=0;b<p;b++){for(var v=b+1,w=u[b],_=u[b+1],x=w;x<_;x++){var k=s[x];y[k]=a[x],g[k]=v}for(var E=0;E<h;E++)0===b&&(m[E]=[]),g[E]===v?m[E][b]=o?d(n,y[E]):d(y[E],n):m[E][b]=o?d(n,0):d(0,n)}return new r({data:m,size:[h,p],datatype:f})}})),Dn=te(\"matAlgo13xDD\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,i){var o,a=t._data,s=t._size,u=t._datatype,c=n._data,l=n._size,f=n._datatype,h=[];if(s.length!==l.length)throw new Ct(s.length,l.length);for(var p=0;p<s.length;p++){if(s[p]!==l[p])throw new RangeError(\"Dimension mismatch. Matrix A (\"+s+\") must match Matrix B (\"+l+\")\");h[p]=s[p]}var d=i;\"string\"==typeof u&&u===f&&(o=u,d=e.find(i,[o,o]));var m=h.length>0?r(d,0,h,h[0],a,c):[];return t.createDenseMatrix({data:m,size:h,datatype:o})};function r(t,e,n,i,o,a){var s=[];if(e===n.length-1)for(var u=0;u<i;u++)s[u]=t(o[u],a[u]);else for(var c=0;c<i;c++)s[c]=r(t,e+1,n,n[e+1],o[c],a[c]);return s}})),On=te(\"matAlgo14xDs\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,i,o){var a,s=t._data,u=t._size,c=t._datatype,l=i;\"string\"==typeof c&&(a=c,n=e.convert(n,a),l=e.find(i,[a,a]));var f=u.length>0?r(l,0,u,u[0],s,n,o):[];return t.createDenseMatrix({data:f,size:Y(u),datatype:a})};function r(t,e,n,i,o,a,s){var u=[];if(e===n.length-1)for(var c=0;c<i;c++)u[c]=s?t(a,o[c]):t(o[c],a);else for(var l=0;l<i;l++)u[l]=r(t,e+1,n,n[e+1],o[l],a,s);return u}}));function In(t){return function(t){if(Array.isArray(t))return Pn(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Pn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pn(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Pn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Cn=te(\"broadcast\",[\"concat\"],(function(t){var e=t.concat;return function(t,e){var i=Math.max(t._size.length,e._size.length);if(t._size.length===e._size.length&&t._size.every((function(t,r){return t===e._size[r]})))return[t,e];for(var o=r(t._size,i,0),a=r(e._size,i,0),s=[],u=0;u<i;u++)s[u]=Math.max(o[u],a[u]);$t(o,s),$t(a,s);var c=t.clone(),l=e.clone();c._size.length<i?c.reshape(r(c._size,i,1)):l._size.length<i&&l.reshape(r(l._size,i,1));for(var f=0;f<i;f++)c._size[f]<s[f]&&(c=n(c,s[f],f)),l._size[f]<s[f]&&(l=n(l,s[f],f));return[c,l]};function r(t,e,r){return[].concat(In(Array(e-t.length).fill(r)),In(t))}function n(t,r,n){return e.apply(void 0,In(Array(r).fill(t)).concat([n]))}}));function Ln(t){return function(t){if(Array.isArray(t))return Mn(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Mn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mn(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Mn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Fn=te(\"matrixAlgorithmSuite\",[\"typed\",\"matrix\",\"concat\"],(function(t){var e=t.typed,r=t.matrix,n=t.concat,i=Dn({typed:e}),o=On({typed:e}),a=Cn({concat:n});return function(t){var n,s=t.elop,u=t.SD||t.DS;s?(n={\"DenseMatrix, DenseMatrix\":function(t,e){return i.apply(void 0,Ln(a(t,e)).concat([s]))},\"Array, Array\":function(t,e){return i.apply(void 0,Ln(a(r(t),r(e))).concat([s])).valueOf()},\"Array, DenseMatrix\":function(t,e){return i.apply(void 0,Ln(a(r(t),e)).concat([s]))},\"DenseMatrix, Array\":function(t,e){return i.apply(void 0,Ln(a(t,r(e))).concat([s]))}},t.SS&&(n[\"SparseMatrix, SparseMatrix\"]=function(e,r){return t.SS.apply(t,Ln(a(e,r)).concat([s,!1]))}),t.DS&&(n[\"DenseMatrix, SparseMatrix\"]=function(e,r){return t.DS.apply(t,Ln(a(e,r)).concat([s,!1]))},n[\"Array, SparseMatrix\"]=function(e,n){return t.DS.apply(t,Ln(a(r(e),n)).concat([s,!1]))}),u&&(n[\"SparseMatrix, DenseMatrix\"]=function(t,e){return u.apply(void 0,Ln(a(e,t)).concat([s,!0]))},n[\"SparseMatrix, Array\"]=function(t,e){return u.apply(void 0,Ln(a(r(e),t)).concat([s,!0]))})):(n={\"DenseMatrix, DenseMatrix\":e.referToSelf((function(t){return function(e,r){return i.apply(void 0,Ln(a(e,r)).concat([t]))}})),\"Array, Array\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,Ln(a(r(e),r(n))).concat([t])).valueOf()}})),\"Array, DenseMatrix\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,Ln(a(r(e),n)).concat([t]))}})),\"DenseMatrix, Array\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,Ln(a(e,r(n))).concat([t]))}}))},t.SS&&(n[\"SparseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(r,n){return t.SS.apply(t,Ln(a(r,n)).concat([e,!1]))}}))),t.DS&&(n[\"DenseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(r,n){return t.DS.apply(t,Ln(a(r,n)).concat([e,!1]))}})),n[\"Array, SparseMatrix\"]=e.referToSelf((function(e){return function(n,i){return t.DS.apply(t,Ln(a(r(n),i)).concat([e,!1]))}}))),u&&(n[\"SparseMatrix, DenseMatrix\"]=e.referToSelf((function(t){return function(e,r){return u.apply(void 0,Ln(a(r,e)).concat([t,!0]))}})),n[\"SparseMatrix, Array\"]=e.referToSelf((function(t){return function(e,n){return u.apply(void 0,Ln(a(r(n),e)).concat([t,!0]))}}))));var c=t.scalar||\"any\";(t.Ds||t.Ss)&&(s?(n[\"DenseMatrix,\"+c]=function(t,e){return o(t,e,s,!1)},n[c+\", DenseMatrix\"]=function(t,e){return o(e,t,s,!0)},n[\"Array,\"+c]=function(t,e){return o(r(t),e,s,!1).valueOf()},n[c+\", Array\"]=function(t,e){return o(r(e),t,s,!0).valueOf()}):(n[\"DenseMatrix,\"+c]=e.referToSelf((function(t){return function(e,r){return o(e,r,t,!1)}})),n[c+\", DenseMatrix\"]=e.referToSelf((function(t){return function(e,r){return o(r,e,t,!0)}})),n[\"Array,\"+c]=e.referToSelf((function(t){return function(e,n){return o(r(e),n,t,!1).valueOf()}})),n[c+\", Array\"]=e.referToSelf((function(t){return function(e,n){return o(r(n),e,t,!0).valueOf()}}))));var l=void 0!==t.sS?t.sS:t.Ss;return s?(t.Ss&&(n[\"SparseMatrix,\"+c]=function(e,r){return t.Ss(e,r,s,!1)}),l&&(n[c+\", SparseMatrix\"]=function(t,e){return l(e,t,s,!0)})):(t.Ss&&(n[\"SparseMatrix,\"+c]=e.referToSelf((function(e){return function(r,n){return t.Ss(r,n,e,!1)}}))),l&&(n[c+\", SparseMatrix\"]=e.referToSelf((function(t){return function(e,r){return l(r,e,t,!0)}})))),s&&s.signatures&&K(n,s.signatures),n}})),Bn=\"equal\",jn=(te(Bn,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return e(Bn,{\"any, any\":function(t,e){return null===t?null===e:null===e?null===t:void 0===t?void 0===e:void 0===e?void 0===t:r(t,e)}})})),\"largerEq\"),Nn=te(jn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Sn({typed:e}),s=Tn({typed:e,DenseMatrix:i}),u=An({typed:e,DenseMatrix:i}),c=Fn({typed:e,matrix:n,concat:o}),l=zr({typed:e});return e(jn,Rn({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t>=e},\"BigNumber, BigNumber\":function(t,e){return t.gte(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return-1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},l,c({SS:s,DS:a,Ss:u}))})),Rn=te(jn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(jn,{\"number, number\":function(t,e){return t>=e||bt(t,e,r.epsilon)}})})),zn=te(\"matAlgo01xDSid\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,n,i){var o=t._data,a=t._size,s=t._datatype,u=r._values,c=r._index,l=r._ptr,f=r._size,h=r._datatype;if(a.length!==f.length)throw new Ct(a.length,f.length);if(a[0]!==f[0]||a[1]!==f[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+f+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var p,d,m=a[0],y=a[1],g=\"string\"==typeof s&&s===h?s:void 0,b=g?e.find(n,[g,g]):n,v=[];for(p=0;p<m;p++)v[p]=[];var w=[],_=[];for(d=0;d<y;d++){for(var x=d+1,k=l[d],E=l[d+1],S=k;S<E;S++)w[p=c[S]]=i?b(u[S],o[p][d]):b(o[p][d],u[S]),_[p]=x;for(p=0;p<m;p++)_[p]===x?v[p][d]=w[p]:v[p][d]=o[p][d]}return t.createDenseMatrix({data:v,size:[m,y],datatype:g})}})),Un=te(\"matAlgo10xSids\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,n,i,o){var a=t._values,s=t._index,u=t._ptr,c=t._size,l=t._datatype;if(!a)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var f,h=c[0],p=c[1],d=i;\"string\"==typeof l&&(f=l,n=e.convert(n,f),d=e.find(i,[f,f]));for(var m=[],y=[],g=[],b=0;b<p;b++){for(var v=b+1,w=u[b],_=u[b+1],x=w;x<_;x++){var k=s[x];y[k]=a[x],g[k]=v}for(var E=0;E<h;E++)0===b&&(m[E]=[]),g[E]===v?m[E][b]=o?d(n,y[E]):d(y[E],n):m[E][b]=n}return new r({data:m,size:[h,p],datatype:f})}}));function Gn(t,e,r,n){if(!(this instanceof Gn))throw new SyntaxError(\"Constructor must be called with the new operator\");this.fn=t,this.count=e,this.min=r,this.max=n,this.message=\"Wrong number of arguments in function \"+t+\" (\"+e+\" provided, \"+r+(null!=n?\"-\"+n:\"\")+\" expected)\",this.stack=(new Error).stack}Gn.prototype=new Error,Gn.prototype.constructor=Error,Gn.prototype.name=\"ArgumentsError\",Gn.prototype.isArgumentsError=!0;var Hn=\"smaller\",qn=te(Hn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Sn({typed:e}),s=Tn({typed:e,DenseMatrix:i}),u=An({typed:e,DenseMatrix:i}),c=Fn({typed:e,matrix:n,concat:o}),l=zr({typed:e});return e(Hn,Vn({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t<e},\"BigNumber, BigNumber\":function(t,e){return t.lt(e)&&!Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return-1===t.compare(e)},\"Complex, Complex\":function(t,e){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},l,c({SS:s,DS:a,Ss:u}))})),Vn=te(Hn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Hn,{\"number, number\":function(t,e){return t<e&&!bt(t,e,r.epsilon)}})})),Wn=\"unequal\",Zn=(te(Wn,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return e(Wn,{\"any, any\":function(t,e){return null===t?null!==e:null===e?null!==t:void 0===t?void 0!==e:void 0===e?void 0!==t:!r(t,e)}})})),te(\"matAlgo04xSidSid\",[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return function(t,n,i){var o=t._values,a=t._index,s=t._ptr,u=t._size,c=t._datatype,l=n._values,f=n._index,h=n._ptr,p=n._size,d=n._datatype;if(u.length!==p.length)throw new Ct(u.length,p.length);if(u[0]!==p[0]||u[1]!==p[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+u+\") must match Matrix B (\"+p+\")\");var m,y=u[0],g=u[1],b=r,v=0,w=i;\"string\"==typeof c&&c===d&&(m=c,b=e.find(r,[m,m]),v=e.convert(0,m),w=e.find(i,[m,m]));var _,x,k,E,S,T=o&&l?[]:void 0,A=[],D=[],O=o&&l?[]:void 0,I=o&&l?[]:void 0,P=[],C=[];for(x=0;x<g;x++){D[x]=A.length;var L=x+1;for(E=s[x],S=s[x+1],k=E;k<S;k++)_=a[k],A.push(_),P[_]=L,O&&(O[_]=o[k]);for(E=h[x],S=h[x+1],k=E;k<S;k++)if(P[_=f[k]]===L){if(O){var M=w(O[_],l[k]);b(M,v)?P[_]=null:O[_]=M}}else A.push(_),C[_]=L,I&&(I[_]=l[k]);if(O&&I)for(k=D[x];k<A.length;)P[_=A[k]]===L?(T[k]=O[_],k++):C[_]===L?(T[k]=I[_],k++):A.splice(k,1)}return D[g]=A.length,t.createSparseMatrix({values:T,index:A,ptr:D,size:[y,g],datatype:m})}}))),Yn=te(\"add\",[\"typed\",\"matrix\",\"addScalar\",\"equalScalar\",\"DenseMatrix\",\"SparseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.matrix,n=t.addScalar,i=t.equalScalar,o=t.DenseMatrix,a=(t.SparseMatrix,t.concat),s=zn({typed:e}),u=Zn({typed:e,equalScalar:i}),c=Un({typed:e,DenseMatrix:o}),l=Fn({typed:e,matrix:r,concat:a});return e(\"add\",{\"any, any\":n,\"any, any, ...any\":e.referToSelf((function(t){return function(e,r,n){for(var i=t(e,r),o=0;o<n.length;o++)i=t(i,n[o]);return i}}))},l({elop:n,DS:s,SS:u,Ss:c}))}));Pt.signature=\"any, any\";var Xn=\"number | BigNumber | Fraction | Matrix | Array\";\"\".concat(Xn,\", \").concat(Xn,\", ...\").concat(Xn);var Kn=te(\"ImmutableDenseMatrix\",[\"smaller\",\"DenseMatrix\"],(function(t){var e=t.smaller,r=t.DenseMatrix;function n(t,e){if(!(this instanceof n))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!h(e))throw new Error(\"Invalid datatype: \"+e);if(d(t)||p(t)){var i=new r(t,e);this._data=i._data,this._size=i._size,this._datatype=i._datatype,this._min=null,this._max=null}else if(t&&p(t.data)&&p(t.size))this._data=t.data,this._size=t.size,this._datatype=t.datatype,this._min=void 0!==t.min?t.min:null,this._max=void 0!==t.max?t.max:null;else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._data=[],this._size=[0],this._datatype=e,this._min=null,this._max=null}}return n.prototype=new r,n.prototype.type=\"ImmutableDenseMatrix\",n.prototype.isImmutableDenseMatrix=!0,n.prototype.subset=function(t){switch(arguments.length){case 1:var e=r.prototype.subset.call(this,t);return d(e)?new n({data:e._data,size:e._size,datatype:e._datatype}):e;case 2:case 3:throw new Error(\"Cannot invoke set subset on an Immutable Matrix instance\");default:throw new SyntaxError(\"Wrong number of arguments\")}},n.prototype.set=function(){throw new Error(\"Cannot invoke set on an Immutable Matrix instance\")},n.prototype.resize=function(){throw new Error(\"Cannot invoke resize on an Immutable Matrix instance\")},n.prototype.reshape=function(){throw new Error(\"Cannot invoke reshape on an Immutable Matrix instance\")},n.prototype.clone=function(){return new n({data:Y(this._data),size:Y(this._size),datatype:this._datatype})},n.prototype.toJSON=function(){return{mathjs:\"ImmutableDenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},n.fromJSON=function(t){return new n(t)},n.prototype.swapRows=function(){throw new Error(\"Cannot invoke swapRows on an Immutable Matrix instance\")},n.prototype.min=function(){if(null===this._min){var t=null;this.forEach((function(r){(null===t||e(r,t))&&(t=r)})),this._min=null!==t?t:void 0}return this._min},n.prototype.max=function(){if(null===this._max){var t=null;this.forEach((function(r){(null===t||e(t,r))&&(t=r)})),this._max=null!==t?t:void 0}return this._max},n}),{isClass:!0}),Jn=te(\"Index\",[\"ImmutableDenseMatrix\",\"getMatrixDataType\"],(function(t){var e=t.ImmutableDenseMatrix,r=t.getMatrixDataType;function n(t){if(!(this instanceof n))throw new SyntaxError(\"Constructor must be called with the new operator\");this._dimensions=[],this._sourceSize=[],this._isScalar=!0;for(var e=0,o=arguments.length;e<o;e++){var a=arguments[e],s=p(a),u=d(a),c=null;if(b(a))this._dimensions.push(a),this._isScalar=!1;else if(s||u){var l=void 0;\"boolean\"===r(a)?(s&&(l=i($n(a).valueOf())),u&&(l=i($n(a._data).valueOf())),c=a.valueOf().length):l=i(a.valueOf()),this._dimensions.push(l);var f=l.size();1===f.length&&1===f[0]&&null===c||(this._isScalar=!1)}else if(\"number\"==typeof a)this._dimensions.push(i([a]));else{if(\"string\"!=typeof a)throw new TypeError(\"Dimension must be an Array, Matrix, number, string, or Range\");this._dimensions.push(a)}this._sourceSize.push(c)}}function i(t){for(var r=0,n=t.length;r<n;r++)if(\"number\"!=typeof t[r]||!it(t[r]))throw new TypeError(\"Index parameters must be positive integer numbers\");return new e(t)}return n.prototype.type=\"Index\",n.prototype.isIndex=!0,n.prototype.clone=function(){var t=new n;return t._dimensions=Y(this._dimensions),t._isScalar=this._isScalar,t._sourceSize=this._sourceSize,t},n.create=function(t){var e=new n;return n.apply(e,t),e},n.prototype.size=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?1:n.size()[0]}return t},n.prototype.max=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?n:n.max()}return t},n.prototype.min=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?n:n.min()}return t},n.prototype.forEach=function(t){for(var e=0,r=this._dimensions.length;e<r;e++)t(this._dimensions[e],e,this)},n.prototype.dimension=function(t){return this._dimensions[t]||null},n.prototype.isObjectProperty=function(){return 1===this._dimensions.length&&\"string\"==typeof this._dimensions[0]},n.prototype.getObjectProperty=function(){return this.isObjectProperty()?this._dimensions[0]:null},n.prototype.isScalar=function(){return this._isScalar},n.prototype.toArray=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t.push(\"string\"==typeof n?n:n.toArray())}return t},n.prototype.valueOf=n.prototype.toArray,n.prototype.toString=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];\"string\"==typeof n?t.push(JSON.stringify(n)):t.push(n.toString())}return\"[\"+t.join(\", \")+\"]\"},n.prototype.toJSON=function(){return{mathjs:\"Index\",dimensions:this._dimensions}},n.fromJSON=function(t){return n.create(t.dimensions)},n}),{isClass:!0});function $n(t){var e=[];return t.forEach((function(t,r){t&&e.push(r)})),e}var Qn=\"larger\",ti=te(Qn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Sn({typed:e}),s=Tn({typed:e,DenseMatrix:i}),u=An({typed:e,DenseMatrix:i}),c=Fn({typed:e,matrix:n,concat:o}),l=zr({typed:e});return e(Qn,ei({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t>e},\"BigNumber, BigNumber\":function(t,e){return t.gt(e)&&!Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return 1===t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},l,c({SS:s,DS:a,Ss:u}))})),ei=te(Qn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Qn,{\"number, number\":function(t,e){return t>e&&!bt(t,e,r.epsilon)}})}));r(22);var ri=\"smallerEq\",ni=te(ri,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Sn({typed:e}),s=Tn({typed:e,DenseMatrix:i}),u=An({typed:e,DenseMatrix:i}),c=Fn({typed:e,matrix:n,concat:o}),l=zr({typed:e});return e(ri,ii({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t<=e},\"BigNumber, BigNumber\":function(t,e){return t.lte(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return 1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},l,c({SS:s,DS:a,Ss:u}))})),ii=te(ri,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(ri,{\"number, number\":function(t,e){return t<=e||bt(t,e,r.epsilon)}})})),oi=\"range\",ai=te(oi,[\"typed\",\"config\",\"?matrix\",\"?bignumber\",\"smaller\",\"smallerEq\",\"larger\",\"largerEq\",\"add\",\"isPositive\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.bignumber,o=t.smaller,a=t.smallerEq,s=t.larger,u=t.largerEq,c=t.add,l=t.isPositive;return e(oi,{string:h,\"string, boolean\":h,\"number, number\":function(t,e){return f(p(t,e,1,!1))},\"number, number, number\":function(t,e,r){return f(p(t,e,r,!1))},\"number, number, boolean\":function(t,e,r){return f(p(t,e,1,r))},\"number, number, number, boolean\":function(t,e,r,n){return f(p(t,e,r,n))},\"BigNumber, BigNumber\":function(t,e){return f(p(t,e,new(0,t.constructor)(1),!1))},\"BigNumber, BigNumber, BigNumber\":function(t,e,r){return f(p(t,e,r,!1))},\"BigNumber, BigNumber, boolean\":function(t,e,r){return f(p(t,e,new(0,t.constructor)(1),r))},\"BigNumber, BigNumber, BigNumber, boolean\":function(t,e,r,n){return f(p(t,e,r,n))},\"Unit, Unit, Unit\":function(t,e,r){return f(p(t,e,r,!1))},\"Unit, Unit, Unit, boolean\":function(t,e,r,n){return f(p(t,e,r,n))}});function f(t){return\"Matrix\"===r.matrix?n?n(t):wn():t}function h(t,e){var n=function(t){var e=t.split(\":\"),r=e.map((function(t){return Number(t)}));if(r.some((function(t){return isNaN(t)})))return null;switch(r.length){case 2:return{start:r[0],end:r[1],step:1};case 3:return{start:r[0],end:r[2],step:r[1]};default:return null}}(t);if(!n)throw new SyntaxError('String \"'+t+'\" is no valid range');return\"BigNumber\"===r.number?(void 0===i&&vn(),f(p(i(n.start),i(n.end),i(n.step)))):f(p(n.start,n.end,n.step,e))}function p(t,e,r,n){for(var i=[],f=l(r)?n?a:o:n?u:s,h=t;f(h,e);)i.push(h),h=c(h,r);return i}})),si=te(\"row\",[\"typed\",\"Index\",\"matrix\",\"range\"],(function(t){var e=t.typed,r=t.Index,n=t.matrix,i=t.range;return e(\"row\",{\"Matrix, number\":o,\"Array, number\":function(t,e){return o(n(Y(t)),e).valueOf()}});function o(t,e){if(2!==t.size().length)throw new Error(\"Only two dimensional matrix is supported\");Rt(e,t.size()[0]);var o=i(0,t.size()[1]),a=new r(e,o),s=t.subset(a);return d(s)?s:n([[s]])}}));r(44);var ui=re({config:et}),ci=ae({}),li=ye({}),fi=ge({}),hi=xe({Matrix:fi}),pi=Re({BigNumber:ui,Complex:ci,DenseMatrix:hi,Fraction:li}),di=Ar({typed:pi}),mi=Dr({BigNumber:ui,typed:pi}),yi=Gr({config:et,typed:pi}),gi=qr({typed:pi}),bi=Wr({typed:pi}),vi=Qr({typed:pi}),wi=yn({Matrix:fi,equalScalar:yi,typed:pi}),_i=bn({DenseMatrix:hi,Matrix:fi,SparseMatrix:wi,typed:pi}),xi=xn({matrix:_i,typed:pi}),ki=En({isInteger:bi,matrix:_i,typed:pi}),Ei=Nn({DenseMatrix:hi,concat:ki,config:et,matrix:_i,typed:pi}),Si=qn({DenseMatrix:hi,concat:ki,config:et,matrix:_i,typed:pi}),Ti=Yn({DenseMatrix:hi,SparseMatrix:wi,addScalar:di,concat:ki,equalScalar:yi,matrix:_i,typed:pi}),Ai=Jn({ImmutableDenseMatrix:Kn({DenseMatrix:hi,smaller:Si}),getMatrixDataType:gi}),Di=ti({DenseMatrix:hi,concat:ki,config:et,matrix:_i,typed:pi}),Oi=ni({DenseMatrix:hi,concat:ki,config:et,matrix:_i,typed:pi}),Ii=ai({bignumber:mi,matrix:_i,add:Ti,config:et,isPositive:vi,larger:Di,largerEq:Ei,smaller:Si,smallerEq:Oi,typed:pi}),Pi=si({Index:Ai,matrix:_i,range:Ii,typed:pi})},,,,,,,,,,,,function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.Tensor=void 0;var n=r(396);e.Tensor=n.Tensor},function(module,exports,__webpack_require__){(function(process,__dirname,__filename,global,module){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,t;function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function _iterableToArray(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function _iterableToArrayLimit(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _callSuper(t,e,r){return e=_getPrototypeOf(e),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(e,r||[],_getPrototypeOf(t).constructor):e.apply(t,r))}function _possibleConstructorReturn(t,e){if(e&&(\"object\"===_typeof(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _inherits(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _createForOfIteratorHelper(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if(\"string\"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _regeneratorRuntime(){\"use strict\";_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:T(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function g(){}function b(){}function v(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(P([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=v.prototype=g.prototype=Object.create(w);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==_typeof(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function T(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=f(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=f(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(D,this),this.reset(!0)}function P(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(_typeof(e)+\" is not iterable\")}return b.prototype=v,i(k,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:b,configurable:!0}),b.displayName=c(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===b||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},E(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(k),c(k,u,\"Generator\"),c(k,a,(function(){return this})),c(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){asyncGeneratorStep(o,n,i,a,s,\"next\",t)}function s(t){asyncGeneratorStep(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,_toPropertyKey(n.key),n)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function _toPropertyKey(t){var e=_toPrimitive(t,\"string\");return\"symbol\"==_typeof(e)?e:e+\"\"}function _toPrimitive(t,e){if(\"object\"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_typeof(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}function _typeof(t){return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_typeof(t)}self,t=function(__WEBPACK_EXTERNAL_MODULE__1670__){return function(){var __webpack_modules__={5716:function(t,e,r){\"use strict\";e.R=void 0;var n=r(6027),i=r(1723);e.R=new(function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:\"init\",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:\"createSessionHandler\",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r){var o;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new n.Session(r),t.next=3,o.loadModel(e);case 3:return t.abrupt(\"return\",new i.OnnxjsSessionHandler(o));case 4:case\"end\":return t.stop()}}),t)}))),function(e,r){return t.apply(this,arguments)})}]);var t,e}())},2818:function(t,e,r){\"use strict\";e.c8=e.rX=void 0;var n=r(1670),i=r(5381),o=r(9544),a=r(6640);e.rX=function(){if((\"number\"!=typeof n.env.wasm.initTimeout||n.env.wasm.initTimeout<0)&&(n.env.wasm.initTimeout=0),\"boolean\"!=typeof n.env.wasm.simd&&(n.env.wasm.simd=!0),\"boolean\"!=typeof n.env.wasm.proxy&&(n.env.wasm.proxy=!1),\"number\"!=typeof n.env.wasm.numThreads||!Number.isInteger(n.env.wasm.numThreads)||n.env.wasm.numThreads<=0){var t=\"undefined\"==typeof navigator?(0,i.cpus)().length:navigator.hardwareConcurrency;n.env.wasm.numThreads=Math.min(4,Math.ceil((t||1)/2))}},e.c8=new(function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:\"init\",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,e.rX)(),t.next=3,(0,o.initializeWebAssemblyInstance)();case 3:case\"end\":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:\"createSessionHandler\",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r){var n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new a.OnnxruntimeWebAssemblySessionHandler,t.next=3,n.loadModel(e,r);case 3:return t.abrupt(\"return\",Promise.resolve(n));case 4:case\"end\":return t.stop()}}),t)}))),function(e,r){return t.apply(this,arguments)})}]);var t,r}())},1057:function(t,e,r){\"use strict\";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!(\"get\"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)\"default\"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,\"__esModule\",{value:!0}),i(r(1670),e);var o=r(1670),a=r(8408),s=r(5716).R;(0,o.registerBackend)(\"webgl\",s,-10);var u=r(2818).c8;(0,o.registerBackend)(\"cpu\",u,10),(0,o.registerBackend)(\"wasm\",u,10),(0,o.registerBackend)(\"xnnpack\",u,9),(0,o.registerBackend)(\"webnn\",u,9),o.env.versions.web=a.version},4910:function(t,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createAttributeWithCacheKey=void 0;var r=function(){return _createClass((function t(e){_classCallCheck(this,t),Object.assign(this,e)}),[{key:\"cacheKey\",get:function(){var t=this;return this._cacheKey||(this._cacheKey=Object.getOwnPropertyNames(this).sort().map((function(e){return\"\".concat(t[e])})).join(\";\")),this._cacheKey}}])}();e.createAttributeWithCacheKey=function(t){return new r(t)}},6874:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.Attribute=void 0;var n=r(5127),i=r(2446),o=r(9240),a=r(7273),s=n.onnxruntime.experimental.fbs,u=function(){return _createClass((function t(e){if(_classCallCheck(this,t),this._attributes=new Map,null!=e){var r,n=_createForOfIteratorHelper(e);try{for(n.s();!(r=n.n()).done;){var o=r.value;o instanceof i.onnx.AttributeProto?this._attributes.set(o.name,[t.getValue(o),t.getType(o)]):o instanceof s.Attribute&&this._attributes.set(o.name(),[t.getValue(o),t.getType(o)])}}catch(t){n.e(t)}finally{n.f()}if(this._attributes.size<e.length)throw new Error(\"duplicated attribute names\")}}),[{key:\"set\",value:function(t,e,r){this._attributes.set(t,[r,e])}},{key:\"delete\",value:function(t){this._attributes.delete(t)}},{key:\"getFloat\",value:function(t,e){return this.get(t,\"float\",e)}},{key:\"getInt\",value:function(t,e){return this.get(t,\"int\",e)}},{key:\"getString\",value:function(t,e){return this.get(t,\"string\",e)}},{key:\"getTensor\",value:function(t,e){return this.get(t,\"tensor\",e)}},{key:\"getFloats\",value:function(t,e){return this.get(t,\"floats\",e)}},{key:\"getInts\",value:function(t,e){return this.get(t,\"ints\",e)}},{key:\"getStrings\",value:function(t,e){return this.get(t,\"strings\",e)}},{key:\"getTensors\",value:function(t,e){return this.get(t,\"tensors\",e)}},{key:\"get\",value:function(t,e,r){var n=this._attributes.get(t);if(void 0===n){if(void 0!==r)return r;throw new Error(\"required attribute not found: \".concat(t))}if(n[1]!==e)throw new Error(\"type mismatch: expected \".concat(e,\" but got \").concat(n[1]));return n[0]}}],[{key:\"getType\",value:function(t){var e=t instanceof i.onnx.AttributeProto?t.type:t.type();switch(e){case i.onnx.AttributeProto.AttributeType.FLOAT:return\"float\";case i.onnx.AttributeProto.AttributeType.INT:return\"int\";case i.onnx.AttributeProto.AttributeType.STRING:return\"string\";case i.onnx.AttributeProto.AttributeType.TENSOR:return\"tensor\";case i.onnx.AttributeProto.AttributeType.FLOATS:return\"floats\";case i.onnx.AttributeProto.AttributeType.INTS:return\"ints\";case i.onnx.AttributeProto.AttributeType.STRINGS:return\"strings\";case i.onnx.AttributeProto.AttributeType.TENSORS:return\"tensors\";default:throw new Error(\"attribute type is not supported yet: \".concat(i.onnx.AttributeProto.AttributeType[e]))}}},{key:\"getValue\",value:function(t){var e=t instanceof i.onnx.AttributeProto?t.type:t.type();if(e===i.onnx.AttributeProto.AttributeType.GRAPH||e===i.onnx.AttributeProto.AttributeType.GRAPHS)throw new Error(\"graph attribute is not supported yet\");var r=this.getValueNoCheck(t);if(e===i.onnx.AttributeProto.AttributeType.INT&&a.LongUtil.isLong(r))return a.LongUtil.longToNumber(r);if(e===i.onnx.AttributeProto.AttributeType.INTS){for(var n=r,u=new Array(n.length),c=0;c<n.length;c++){var l=n[c];u[c]=a.LongUtil.longToNumber(l)}return u}if(e===i.onnx.AttributeProto.AttributeType.TENSOR)return t instanceof i.onnx.AttributeProto?o.Tensor.fromProto(r):o.Tensor.fromOrtTensor(r);if(e===i.onnx.AttributeProto.AttributeType.TENSORS){if(t instanceof i.onnx.AttributeProto)return r.map((function(t){return o.Tensor.fromProto(t)}));if(t instanceof s.Attribute)return r.map((function(t){return o.Tensor.fromOrtTensor(t)}))}if(e===i.onnx.AttributeProto.AttributeType.STRING&&t instanceof i.onnx.AttributeProto){var f=r;return(0,a.decodeUtf8String)(f)}return e===i.onnx.AttributeProto.AttributeType.STRINGS&&t instanceof i.onnx.AttributeProto?r.map(a.decodeUtf8String):r}},{key:\"getValueNoCheck\",value:function(t){return t instanceof i.onnx.AttributeProto?this.getValueNoCheckFromOnnxFormat(t):this.getValueNoCheckFromOrtFormat(t)}},{key:\"getValueNoCheckFromOnnxFormat\",value:function(t){switch(t.type){case i.onnx.AttributeProto.AttributeType.FLOAT:return t.f;case i.onnx.AttributeProto.AttributeType.INT:return t.i;case i.onnx.AttributeProto.AttributeType.STRING:return t.s;case i.onnx.AttributeProto.AttributeType.TENSOR:return t.t;case i.onnx.AttributeProto.AttributeType.GRAPH:return t.g;case i.onnx.AttributeProto.AttributeType.FLOATS:return t.floats;case i.onnx.AttributeProto.AttributeType.INTS:return t.ints;case i.onnx.AttributeProto.AttributeType.STRINGS:return t.strings;case i.onnx.AttributeProto.AttributeType.TENSORS:return t.tensors;case i.onnx.AttributeProto.AttributeType.GRAPHS:return t.graphs;default:throw new Error(\"unsupported attribute type: \".concat(i.onnx.AttributeProto.AttributeType[t.type]))}}},{key:\"getValueNoCheckFromOrtFormat\",value:function(t){switch(t.type()){case s.AttributeType.FLOAT:return t.f();case s.AttributeType.INT:return t.i();case s.AttributeType.STRING:return t.s();case s.AttributeType.TENSOR:return t.t();case s.AttributeType.GRAPH:return t.g();case s.AttributeType.FLOATS:return t.floatsArray();case s.AttributeType.INTS:for(var e=[],r=0;r<t.intsLength();r++)e.push(t.ints(r));return e;case s.AttributeType.STRINGS:for(var n=[],i=0;i<t.stringsLength();i++)n.push(t.strings(i));return n;case s.AttributeType.TENSORS:for(var o=[],a=0;a<t.tensorsLength();a++)o.push(t.tensors(a));return o;default:throw new Error(\"unsupported attribute type: \".concat(s.AttributeType[t.type()]))}}}])}();e.Attribute=u},1975:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.resolveBackend=e.backend=void 0;var n=r(4418),i=new Map;function o(t){return a.apply(this,arguments)}function a(){return a=_asyncToGenerator(_regeneratorRuntime().mark((function t(r){var n,o,a;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===(n=e.backend)[r]||!function(t){var e=t;return\"initialize\"in e&&\"function\"==typeof e.initialize&&\"createSessionHandler\"in e&&\"function\"==typeof e.createSessionHandler&&\"dispose\"in e&&\"function\"==typeof e.dispose}(n[r])){t.next=11;break}if(o=n[r],a=o.initialize(),t.t0=\"object\"==_typeof(a)&&\"then\"in a,!t.t0){t.next=9;break}return t.next=8,a;case 8:a=t.sent;case 9:if(!a){t.next=11;break}return t.abrupt(\"return\",(i.set(r,o),o));case 11:case\"end\":return t.stop()}}),t)}))),a.apply(this,arguments)}e.backend={webgl:new n.WebGLBackend},e.resolveBackend=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(r){var n,a,s,u,c;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt(\"return\",e([\"webgl\"]));case 2:n=_createForOfIteratorHelper(\"string\"==typeof r?[r]:r),t.prev=4,n.s();case 6:if((a=n.n()).done){t.next=18;break}if(s=a.value,!(u=i.get(s))){t.next=11;break}return t.abrupt(\"return\",u);case 11:return t.next=13,o(s);case 13:if(!(c=t.sent)){t.next=16;break}return t.abrupt(\"return\",c);case 16:t.next=6;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(4),n.e(t.t0);case 23:return t.prev=23,n.f(),t.finish(23);case 26:throw new Error(\"no available backend to use\");case 27:case\"end\":return t.stop()}}),t,null,[[4,20,23,26]])})));function e(e){return t.apply(this,arguments)}return e}()},4418:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.WebGLBackend=void 0;var n=r(1670),i=r(1315),o=r(2171),a=r(3389);e.WebGLBackend=function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:\"contextId\",get:function(){return n.env.webgl.contextId},set:function(t){n.env.webgl.contextId=t}},{key:\"matmulMaxBatchSize\",get:function(){return n.env.webgl.matmulMaxBatchSize},set:function(t){n.env.webgl.matmulMaxBatchSize=t}},{key:\"textureCacheMode\",get:function(){return n.env.webgl.textureCacheMode},set:function(t){n.env.webgl.textureCacheMode=t}},{key:\"pack\",get:function(){return n.env.webgl.pack},set:function(t){n.env.webgl.pack=t}},{key:\"async\",get:function(){return n.env.webgl.async},set:function(t){n.env.webgl.async=t}},{key:\"initialize\",value:function(){try{return this.glContext=(0,a.createWebGLContext)(this.contextId),\"number\"!=typeof this.matmulMaxBatchSize&&(this.matmulMaxBatchSize=16),\"string\"!=typeof this.textureCacheMode&&(this.textureCacheMode=\"full\"),\"boolean\"!=typeof this.pack&&(this.pack=!1),\"boolean\"!=typeof this.async&&(this.async=!1),i.Logger.setWithEnv(n.env),i.Logger.verbose(\"WebGLBackend\",\"Created WebGLContext: \".concat(_typeof(this.glContext),\" with matmulMaxBatchSize: \").concat(this.matmulMaxBatchSize,\"; textureCacheMode: \").concat(this.textureCacheMode,\"; pack: \").concat(this.pack,\"; async: \").concat(this.async,\".\")),!0}catch(t){return i.Logger.warning(\"WebGLBackend\",\"Unable to initialize WebGLBackend. \".concat(t)),!1}}},{key:\"createSessionHandler\",value:function(t){return new o.WebGLSessionHandler(this,t)}},{key:\"dispose\",value:function(){this.glContext.dispose()}}])}()},6859:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.CoordsGlslLib=void 0;var n=r(7273),i=r(1997),o=r(6757),a=r(7618),s=r(432),u=function(t){function e(t){return _classCallCheck(this,e),_callSuper(this,e,[t])}return _inherits(e,t),_createClass(e,[{key:\"getFunctions\",value:function(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.offsetToCoords()),this.coordsToOffset()),this.toVec()),this.valueFrom()),this.getCommonUtilFuncs()),this.getInputsSamplingSnippets()),this.getOutputSamplingSnippet())}},{key:\"getCustomTypes\",value:function(){return{}}},{key:\"offsetToCoords\",value:function(){return{offsetToCoords:new i.GlslLibRoutine(\"\\n      vec2 offsetToCoords(int offset, int width, int height) {\\n        int t = offset / width;\\n        int s = offset - t*width;\\n        vec2 coords = (vec2(s,t) + vec2(0.5,0.5)) / vec2(width, height);\\n        return coords;\\n      }\\n      \")}}},{key:\"coordsToOffset\",value:function(){return{coordsToOffset:new i.GlslLibRoutine(\"\\n      int coordsToOffset(vec2 coords, int width, int height) {\\n        float s = coords.s * float(width);\\n        float t = coords.t * float(height);\\n        int offset = int(t) * width + int(s);\\n        return offset;\\n      }\\n      \")}}},{key:\"getOutputSamplingSnippet\",value:function(){var t=this.context.outputTextureLayout;return t.isPacked?this.getPackedOutputSamplingSnippet(t):this.getUnpackedOutputSamplingSnippet(t)}},{key:\"getPackedOutputSamplingSnippet\",value:function(t){var e=t.unpackedShape,r=[t.width,t.height],n={},a=\"getOutputCoords\";switch(e.length){case 0:n[a]=this.getOutputScalarCoords();break;case 1:n[a]=this.getOutputPacked1DCoords(e,r);break;case 2:n[a]=this.getOutputPacked2DCoords(e,r);break;case 3:n[a]=this.getOutputPacked3DCoords(e,r);break;default:n[a]=this.getOutputPackedNDCoords(e,r)}var s=\"\\n      void setOutput(vec4 val) {\\n        \".concat((0,o.getGlsl)(this.context.glContext.version).output,\" = val;\\n      }\\n    \");return n.floatTextureSetRGBA=new i.GlslLibRoutine(s),n}},{key:\"getUnpackedOutputSamplingSnippet\",value:function(t){var e=t.unpackedShape,r=[t.width,t.height],n={},a=\"getOutputCoords\";switch(e.length){case 0:n[a]=this.getOutputScalarCoords();break;case 1:n[a]=this.getOutputUnpacked1DCoords(e,r);break;case 2:n[a]=this.getOutputUnpacked2DCoords(e,r);break;case 3:n[a]=this.getOutputUnpacked3DCoords(e,r);break;case 4:n[a]=this.getOutputUnpacked4DCoords(e,r);break;case 5:n[a]=this.getOutputUnpacked5DCoords(e,r);break;case 6:n[a]=this.getOutputUnpacked6DCoords(e,r);break;default:throw new Error(\"Unsupported output dimensionality: \".concat(e.length))}var s=\"\\n        void setOutput(float val) {\\n          \".concat((0,o.getGlsl)(this.context.glContext.version).output,\" = vec4(val, 0, 0, 0);\\n        }\\n    \");return n.floatTextureSetR=new i.GlslLibRoutine(s),n}},{key:\"getOutputScalarCoords\",value:function(){return new i.GlslLibRoutine(\"\\n      int getOutputCoords() {\\n        return 0;\\n      }\\n    \")}},{key:\"getOutputPacked1DCoords\",value:function(t,e){var r=e,n=\"\";return 1===r[0]?(n=\"\\n          int getOutputCoords() {\\n            return 2 * int(TexCoords.y * \".concat(r[1],\".0);\\n          }\\n        \"),new i.GlslLibRoutine(n)):1===r[1]?(n=\"\\n          int getOutputCoords() {\\n            return 2 * int(TexCoords.x * \".concat(r[0],\".0);\\n          }\\n        \"),new i.GlslLibRoutine(n)):(n=\"\\n        int getOutputCoords() {\\n          ivec2 resTexRC = ivec2(TexCoords.xy *\\n                                 vec2(\".concat(r[0],\", \").concat(r[1],\"));\\n          return 2 * (resTexRC.y * \").concat(r[0],\" + resTexRC.x);\\n        }\\n      \"),new i.GlslLibRoutine(n))}},{key:\"getOutputPacked2DCoords\",value:function(t,e){var r=\"\";if(n.ArrayUtil.arraysEqual(t,e))return r=\"\\n        ivec2 getOutputCoords() {\\n          return 2 * ivec2(TexCoords.xy * vec2(\".concat(e[0],\", \").concat(e[1],\"));\\n        }\\n      \"),new i.GlslLibRoutine(r);var o=e,a=Math.ceil(t[1]/2);return r=\"\\n        ivec2 getOutputCoords() {\\n          ivec2 resTexRC = ivec2(TexCoords.xy *\\n                                vec2(\".concat(o[0],\", \").concat(o[1],\"));\\n\\n          int index = resTexRC.y * \").concat(o[0],\" + resTexRC.x;\\n\\n          // reverse r and c order for packed texture\\n          int r = imod(index, \").concat(a,\") * 2;\\n          int c = 2 * (index / \").concat(a,\");\\n\\n          return ivec2(r, c);\\n        }\\n      \"),new i.GlslLibRoutine(r)}},{key:\"getOutputPacked3DCoords\",value:function(t,e){var r=[e[0],e[1]],n=Math.ceil(t[2]/2),o=n*Math.ceil(t[1]/2),a=\"\\n        ivec3 getOutputCoords() {\\n          ivec2 resTexRC = ivec2(TexCoords.xy *\\n                                vec2(\".concat(r[0],\", \").concat(r[1],\"));\\n          int index = resTexRC.y * \").concat(r[0],\" + resTexRC.x;\\n\\n          int b = index / \").concat(o,\";\\n          index -= b * \").concat(o,\";\\n\\n          // reverse r and c order for packed texture\\n          int r = imod(index, \").concat(n,\") * 2;\\n          int c = 2 * (index / \").concat(n,\");\\n\\n          return ivec3(b, r, c);\\n        }\\n      \");return new i.GlslLibRoutine(a)}},{key:\"getOutputPackedNDCoords\",value:function(t,e){for(var r=[e[0],e[1]],n=Math.ceil(t[t.length-1]/2),o=n*Math.ceil(t[t.length-2]/2),a=o,s=\"\",u=\"b, r, c\",c=2;c<t.length-1;c++)a*=t[t.length-c-1],s=\"\\n      int b\".concat(c,\" = index / \").concat(a,\";\\n      index -= b\").concat(c,\" * \").concat(a,\";\\n    \")+s,u=\"b\".concat(c,\", \")+u;var l=\"\\n      ivec\".concat(t.length,\" getOutputCoords() {\\n        ivec2 resTexRC = ivec2(TexCoords.xy *\\n                              vec2(\").concat(r[0],\", \").concat(r[1],\"));\\n        int index = resTexRC.y * \").concat(r[0],\" + resTexRC.x;\\n\\n        \").concat(s,\"\\n\\n        int b = index / \").concat(o,\";\\n        index -= b * \").concat(o,\";\\n\\n        // reverse r and c order for packed texture\\n        int r = imod(index, \").concat(n,\") * 2;\\n        int c = 2 * (index / \").concat(n,\");\\n\\n        return ivec\").concat(t.length,\"(\").concat(u,\");\\n      }\\n    \");return new i.GlslLibRoutine(l)}},{key:\"getOutputUnpacked1DCoords\",value:function(t,e){var r=\"\\n        int getOutputCoords() {\\n          ivec2 resTexRC = ivec2(TexCoords.xy *\\n                                vec2(\".concat(e[0],\", \").concat(e[1],\"));\\n          return resTexRC.y * \").concat(e[0],\" + resTexRC.x;\\n        }\\n      \");return new i.GlslLibRoutine(r)}},{key:\"getOutputUnpacked2DCoords\",value:function(t,e){var r=\"\\n        ivec2 getOutputCoords() {\\n          ivec2 resTexRC = ivec2(TexCoords.xy *\\n                                vec2(\".concat(e[0],\", \").concat(e[1],\"));\\n          int index = resTexRC.y * \").concat(e[0],\" + resTexRC.x;\\n          int r = index / \").concat(t[1],\";\\n          int c = index - r * \").concat(t[1],\";\\n          return ivec2(r, c);\\n        }\\n      \");return new i.GlslLibRoutine(r)}},{key:\"getOutputUnpacked3DCoords\",value:function(t,e){var r,n=t.length,o=null;n<2&&(o=[]),(o=new Array(n-1))[n-2]=t[n-1];for(var a=n-3;a>=0;--a)o[a]=o[a+1]*t[a+1];var s=[\"r\",\"c\",\"d\"],u=o.map((function(t,e){return\"int \".concat(s[e],\" = index / \").concat(t,\"; \").concat(e===o.length-1?\"int \".concat(s[e+1],\" = index - \").concat(s[e],\" * \").concat(t):\"index -= \".concat(s[e],\" * \").concat(t),\";\")})).join(\"\");return r=\"\\n        ivec3 getOutputCoords() {\\n          ivec2 resTexRC = ivec2(TexCoords.xy *\\n                                vec2(\".concat(e[0],\", \").concat(e[1],\"));\\n          int index = resTexRC.y * \").concat(e[0],\" + resTexRC.x;\\n          \").concat(u,\"\\n          return ivec3(r, c, d);\\n        }\\n      \"),new i.GlslLibRoutine(r)}},{key:\"getOutputUnpacked4DCoords\",value:function(t,e){var r,n=t.length,o=null;n<2&&(o=[]),(o=new Array(n-1))[n-2]=t[n-1];for(var a=n-3;a>=0;--a)o[a]=o[a+1]*t[a+1];var s=[\"r\",\"c\",\"d\",\"d2\"],u=o.map((function(t,e){return\"int \".concat(s[e],\" = index / \").concat(t,\"; \").concat(e===o.length-1?\"int \".concat(s[e+1],\" = index - \").concat(s[e],\" * \").concat(t):\"index -= \".concat(s[e],\" * \").concat(t),\";\")})).join(\"\");return r=\"\\n      ivec4 getOutputCoords() {\\n          ivec2 resTexRC = ivec2(TexCoords.xy *\\n                                vec2(\".concat(e[0],\", \").concat(e[1],\"));\\n          int index = resTexRC.y * \").concat(e[0],\" + resTexRC.x;\\n          \").concat(u,\"\\n          return ivec4(r, c, d, d2);\\n        }\\n      \"),new i.GlslLibRoutine(r)}},{key:\"getOutputUnpacked5DCoords\",value:function(t,e){var r,n=t.length,o=null;n<2&&(o=[]),(o=new Array(n-1))[n-2]=t[n-1];for(var a=n-3;a>=0;--a)o[a]=o[a+1]*t[a+1];var s=[\"r\",\"c\",\"d\",\"d2\",\"d3\"],u=o.map((function(t,e){return\"int \".concat(s[e],\" = index / \").concat(t,\"; \").concat(e===o.length-1?\"int \".concat(s[e+1],\" = index - \").concat(s[e],\" * \").concat(t):\"index -= \".concat(s[e],\" * \").concat(t),\";\")})).join(\"\");return r=\"\\n      ivec5 getOutputCoords() {\\n          ivec2 resTexRC = ivec2(TexCoords.xy *\\n                                vec2(\".concat(e[0],\", \").concat(e[1],\"));\\n          int index = resTexRC.y * \").concat(e[0],\" + resTexRC.x;\\n          \").concat(u,\"\\n          return ivec5(r, c, d, d2, d3);\\n        }\\n      \"),new i.GlslLibRoutine(r)}},{key:\"getOutputUnpacked6DCoords\",value:function(t,e){var r,n=t.length,o=null;n<2&&(o=[]),(o=new Array(n-1))[n-2]=t[n-1];for(var a=n-3;a>=0;--a)o[a]=o[a+1]*t[a+1];var s=[\"r\",\"c\",\"d\",\"d2\",\"d3\",\"d4\"],u=o.map((function(t,e){return\"int \".concat(s[e],\" = index / \").concat(t,\"; \").concat(e===o.length-1?\"int \".concat(s[e+1],\" = index - \").concat(s[e],\" * \").concat(t):\"index -= \".concat(s[e],\" * \").concat(t),\";\")})).join(\"\");return r=\"\\n     ivec6 getOutputCoords() {\\n         ivec2 resTexRC = ivec2(TexCoords.xy *\\n                               vec2(\".concat(e[0],\", \").concat(e[1],\"));\\n         int index = resTexRC.y * \").concat(e[0],\" + resTexRC.x;\\n         \").concat(u,\"\\n         return ivec6(r, c, d, d2, d3, d4);\\n       }\\n     \"),new i.GlslLibRoutine(r)}},{key:\"getCommonUtilFuncs\",value:function(){var t={},e=\"uvFromFlat\";t[e]=new i.GlslLibRoutine(\"\\n    vec2 uvFromFlat(int texNumR, int texNumC, int index) {\\n      int texC = index / texNumR;\\n      int texR = index - texC * texNumR;\\n      // TODO: swap texR, texC order in following function so row is corresponding to u and column is corresponding to\\n      //       v.\\n      return (vec2(texR, texC) + halfCR) / vec2(texNumR, texNumC);\\n    }\\n    \"),t[e=\"packedUVfrom1D\"]=new i.GlslLibRoutine(\"\\n      vec2 packedUVfrom1D(int texNumR, int texNumC, int index) {\\n        int texelIndex = index / 2;\\n        int texR = texelIndex / texNumC;\\n        int texC = texelIndex - texR * texNumC;\\n        return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\\n      }\\n      \"),t[e=\"packedUVfrom2D\"]=new i.GlslLibRoutine(\"\\n      vec2 packedUVfrom2D(int texNumR, int texNumC, int texelsInLogicalRow, int row, int col) {\\n        int texelIndex = (row / 2) * texelsInLogicalRow + (col / 2);\\n        int texR = texelIndex / texNumC;\\n        int texC = texelIndex - texR * texNumC;\\n        return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\\n      }\\n      \"),t[e=\"packedUVfrom3D\"]=new i.GlslLibRoutine(\"\\n      vec2 packedUVfrom3D(int texNumR, int texNumC,\\n          int texelsInBatch, int texelsInLogicalRow, int b,\\n          int row, int col) {\\n        int index = b * texelsInBatch + (row / 2) * texelsInLogicalRow + (col / 2);\\n        int texR = index / texNumC;\\n        int texC = index - texR * texNumC;\\n        return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\\n      }\\n      \"),e=\"sampleTexture\";var r=(0,o.getGlsl)(this.context.glContext.version);return t[e]=new i.GlslLibRoutine(\"\\n        float sampleTexture(sampler2D textureSampler, vec2 uv) {\\n            return \".concat(r.texture2D,\"(textureSampler, uv).r;\\n        }\")),t}},{key:\"getInputsSamplingSnippets\",value:function(){var t=this,e={},r=this.context.outputTextureLayout;return this.context.programInfo.inputNames.forEach((function(n,i){var o=t.context.inputTextureLayouts[i],a=(0,s.generateShaderFuncNameFromInputSamplerName)(n);o.isPacked?e[a]=t.getPackedSamplerFromInput(a,n,o):e[a]=t.getUnpackedSamplerFromInput(a,n,o);var u=(0,s.generateShaderFuncNameFromInputSamplerNameAtOutCoords)(n);o.unpackedShape.length<=r.unpackedShape.length&&(o.isPacked?e[u]=t.getPackedSamplerAtOutputCoords(u,o,r,n):e[u]=t.getUnpackedSamplerAtOutputCoords(u,o,r,n))})),e}},{key:\"getPackedSamplerAtOutputCoords\",value:function(t,e,r,o){var a,u,c=e.unpackedShape,l=r.unpackedShape,f=o,h=(0,s.generateShaderFuncNameFromInputSamplerName)(f),p=c.length,d=l.length,m=n.BroadcastUtil.getBroadcastDims(c,l),y=(0,s.getCoordsDataType)(d),g=d-p,b=(0,s.getGlChannels)();a=0===p?\"\":d<2&&m.length>=1?\"coords = 0;\":m.map((function(t){return\"coords.\".concat(b[t+g],\" = 0;\")})).join(\"\\n\"),u=d<2&&p>0?\"coords\":c.map((function(t,e){return\"coords.\".concat(b[e+g])})).join(\", \");var v=\"return outputValue;\",w=1===n.ShapeUtil.size(c),_=1===n.ShapeUtil.size(l);if(1!==p||w||_){if(w&&!_)v=1===d?\"\\n          return vec4(outputValue.x, outputValue.x, 0., 0.);\\n        \":\"\\n          return vec4(outputValue.x);\\n        \";else if(m.length){var x=p-2,k=p-1;m.indexOf(x)>-1&&m.indexOf(k)>-1?v=\"return vec4(outputValue.x);\":m.indexOf(x)>-1?v=\"return vec4(outputValue.x, outputValue.y, outputValue.x, outputValue.y);\":m.indexOf(k)>-1&&(v=\"return vec4(outputValue.xx, outputValue.zz);\")}}else v=\"\\n        return vec4(outputValue.xy, outputValue.xy);\\n      \";var E=\"\\n      vec4 \".concat(t,\"() {\\n        \").concat(y,\" coords = getOutputCoords();\\n        \\n        int lastDim = coords.\").concat(b[d-1],\";\\n        coords.\").concat(b[d-1],\" = coords.\").concat(b[d-2],\";\\n        coords.\").concat(b[d-2],\" = lastDim;\\n      \\n        \").concat(a,\"\\n        vec4 outputValue = \").concat(h,\"(\").concat(u,\");\\n        \").concat(v,\"\\n      }\\n    \");return new i.GlslLibRoutine(E,[\"coordinates.getOutputCoords\"])}},{key:\"getUnpackedSamplerAtOutputCoords\",value:function(t,e,r,o){var a=[r.width,r.height],u=[e.width,e.height],c=e.unpackedShape.length,l=r.unpackedShape.length,f=e.unpackedShape,h=r.unpackedShape,p=(0,s.generateShaderFuncNameFromInputSamplerName)(o);if(c===l&&n.ArrayUtil.arraysEqual(u,a)){var d=\"\\n          float \".concat(t,\"() {\\n            return sampleTexture(\").concat(o,\", TexCoords);\\n          }\\n        \");return new i.GlslLibRoutine(d,[\"coordinates.sampleTexture\"])}var m,y,g=(0,s.getCoordsDataType)(l),b=n.BroadcastUtil.getBroadcastDims(f,h),v=l-c,w=(0,s.getGlChannels)();m=0===c?\"\":l<2&&b.length>=1?\"coords = 0;\":b.map((function(t){return\"coords.\".concat(w[t+v],\" = 0;\")})).join(\"\\n\"),y=l<2&&c>0?\"coords\":e.unpackedShape.map((function(t,e){return\"coords.\".concat(w[e+v])})).join(\", \");var _=\"\\n        float \".concat(t,\"() {\\n          \").concat(g,\" coords = getOutputCoords();\\n          \").concat(m,\"\\n          return \").concat(p,\"(\").concat(y,\");\\n        }\\n      \");return new i.GlslLibRoutine(_,[\"coordinates.getOutputCoords\"])}},{key:\"getPackedSamplerFromInput\",value:function(t,e,r){switch(r.unpackedShape.length){case 0:return this.getPackedSamplerScalar(t,e);case 1:return this.getPackedSampler1D(t,e,r);case 2:return this.getPackedSampler2D(t,e,r);case 3:return this.getPackedSampler3D(t,e,r);default:return this.getPackedSamplerND(t,e,r)}}},{key:\"getUnpackedSamplerFromInput\",value:function(t,e,r){var n=r.unpackedShape;switch(n.length){case 0:return this.getUnpackedSamplerScalar(t,e,r);case 1:return this.getUnpackedSampler1D(t,e,r);case 2:return this.getUnpackedSampler2D(t,e,r);case 3:return this.getUnpackedSampler3D(t,e,r);case 4:return this.getUnpackedSampler4D(t,e,r);case 5:return this.getUnpackedSampler5D(t,e,r);case 6:return this.getUnpackedSampler6D(t,e,r);default:throw new Error(\"Unsupported dimension \".concat(n.length,\"-D\"))}}},{key:\"getPackedSamplerScalar\",value:function(t,e){var r=\"\\n          vec4 \".concat(t,\"() {\\n            return \").concat((0,o.getGlsl)(this.context.glContext.version).texture2D,\"(\").concat(e,\", halfCR);\\n          }\\n        \");return new i.GlslLibRoutine(r)}},{key:\"getPackedSampler1D\",value:function(t,e,r){var n=[r.width,r.height],a=[n[1],n[0]],s=(0,o.getGlsl)(this.context.glContext.version),u=\"vec4 \".concat(t,\"(int index) {\\n      vec2 uv = packedUVfrom1D(\\n      \").concat(a[0],\", \").concat(a[1],\", index);\\n      return \").concat(s.texture2D,\"(\").concat(e,\", uv);\\n    }\");return new i.GlslLibRoutine(u,[\"coordinates.packedUVfrom1D\"])}},{key:\"getPackedSampler2D\",value:function(t,e,r){var a=r.unpackedShape,s=[r.width,r.height],u=(0,o.getGlsl)(this.context.glContext.version),c=s[0],l=s[1];if(null!=s&&n.ArrayUtil.arraysEqual(a,s)){var f=\"vec4 \".concat(t,\"(int row, int col) {\\n        vec2 uv = (vec2(col, row) + halfCR) / vec2(\").concat(l,\".0, \").concat(c,\".0);\\n        return \").concat(u.texture2D,\"(\").concat(e,\", uv);\\n      }\");return new i.GlslLibRoutine(f)}var h=s,p=Math.ceil(a[1]/2),d=\"vec4 \".concat(t,\"(int row, int col) {\\n      vec2 uv = packedUVfrom2D(\").concat(h[1],\", \").concat(h[0],\", \").concat(p,\", row, col);\\n      return \").concat(u.texture2D,\"(\").concat(e,\", uv);\\n    }\");return new i.GlslLibRoutine(d,[\"coordinates.packedUVfrom2D\"])}},{key:\"getPackedSampler3D\",value:function(t,e,r){var n=r.unpackedShape,a=[r.width,r.height],u=[a[0],a[1]],c=(0,o.getGlsl)(this.context.glContext.version);if(1===n[0]){var l=n.slice(1),f=(0,s.squeezeInputShape)(n,l),h=JSON.parse(JSON.stringify(r));h.unpackedShape=f;var p=this.getPackedSamplerFromInput(t,e,h),d=\"\".concat(p.routineBody,\"\\n      vec4 \").concat(t,\"(int b, int row, int col) {\\n        return \").concat(t,\"(\").concat((0,s.getSqueezedParams)([\"b\",\"row\",\"col\"],[1,2]),\");\\n      } \");return new i.GlslLibRoutine(d,p.dependencies)}var m=u[0],y=u[1],g=Math.ceil(n[2]/2),b=\"vec4 \".concat(t,\"(int b, int row, int col) {\\n      vec2 uv = packedUVfrom3D(\\n        \").concat(y,\", \").concat(m,\", \").concat(g*Math.ceil(n[1]/2),\", \").concat(g,\", b, row, col);\\n      return \").concat(c.texture2D,\"(\").concat(e,\", uv);}\");return new i.GlslLibRoutine(b,[\"coordinates.packedUVfrom3D\"])}},{key:\"getPackedSamplerND\",value:function(t,e,r){for(var n=r.unpackedShape,a=n.length,s=[r.width,r.height],u=(0,o.getGlsl)(this.context.glContext.version),c=[s[0],s[1]],l=c[1],f=c[0],h=Math.ceil(n[a-1]/2),p=h*Math.ceil(n[a-2]/2),d=\"int b, int row, int col\",m=\"b * \".concat(p,\" + (row / 2) * \").concat(h,\" + (col / 2)\"),y=2;y<a-1;y++)d=\"int b\".concat(y,\", \")+d,p*=n[a-y-1],m=\"b\".concat(y,\" * \").concat(p,\" + \")+m;var g=\"vec4 \".concat(t,\"(\").concat(d,\") {\\n      int index = \").concat(m,\";\\n      int texR = index / \").concat(f,\";\\n      int texC = index - texR * \").concat(f,\";\\n      vec2 uv = (vec2(texC, texR) + halfCR) / vec2(\").concat(f,\", \").concat(l,\");\\n      return \").concat(u.texture2D,\"(\").concat(e,\", uv);\\n    }\");return new i.GlslLibRoutine(g)}},{key:\"getUnpackedSamplerScalar\",value:function(t,e,r){var n=[r.width,r.height],o=n[0],a=n[1];if(1===o&&1===a){var s=\"\\n          float \".concat(t,\"() {\\n            return sampleTexture(\").concat(e,\", halfCR);\\n          }\\n        \");return new i.GlslLibRoutine(s,[\"coordinates.sampleTexture\"])}var u=\"\\n        float \".concat(t,\"() {\\n          int offset_\").concat(e,\" = coordsToOffset(TexCoords, \").concat(o,\", \").concat(a,\");\\n          vec2 uv = uvFromFlat(\").concat(o,\", \").concat(a,\", offset_\").concat(e,\");\\n          return sampleTexture(\").concat(e,\", uv);\\n        }\\n      \");return new i.GlslLibRoutine(u,[\"coordinates.uvFromFlat\",\"coordinates.sampleTexture\",\"coordinates.coordsToOffset\"])}},{key:\"getUnpackedSampler1D\",value:function(t,e,r){var n=r.width,o=r.height;if(1===o&&1===n){var a=\"\\n        float \".concat(t,\"(int index) {\\n          return sampleTexture(\").concat(e,\", halfCR);\\n        }\\n      \");return new i.GlslLibRoutine(a,[\"coordinates.sampleTexture\"])}if(1===o){var s=\"\\n          float \".concat(t,\"(int index) {\\n            vec2 uv = vec2((float(index) + 0.5) / \").concat(n,\".0, 0.5);\\n            return sampleTexture(\").concat(e,\", uv);\\n          }\\n        \");return new i.GlslLibRoutine(s,[\"coordinates.sampleTexture\"])}if(1===n){var u=\"\\n          float \".concat(t,\"(int index) {\\n            vec2 uv = vec2(0.5, (float(index) + 0.5) / \").concat(o,\".0);\\n            return sampleTexture(\").concat(e,\", uv);\\n          }\\n        \");return new i.GlslLibRoutine(u,[\"coordinates.sampleTexture\"])}var c=\"\\n        float \".concat(t,\"(int index) {\\n          vec2 uv = uvFromFlat(\").concat(n,\", \").concat(o,\", index);\\n          return sampleTexture(\").concat(e,\", uv);\\n        }\\n      \");return new i.GlslLibRoutine(c,[\"coordinates.uvFromFlat\",\"coordinates.sampleTexture\"])}},{key:\"getUnpackedSampler2D\",value:function(t,e,r){var o=r.unpackedShape,u=[r.height,r.width];if(null!=u&&n.ArrayUtil.arraysEqual(o,u)){var c=\"\\n          float \".concat(t,\"(int row, int col) {\\n            vec2 uv = (vec2(row, col) + halfCR) / vec2(\").concat(u[1],\".0, \").concat(u[0],\".0);\\n            return sampleTexture(\").concat(e,\", uv);\\n          }\\n        \");return new i.GlslLibRoutine(c,[\"coordinates.sampleTexture\"])}var l=(0,a.squeezeShape)(o),f=l.newShape,h=l.keptDims,p=f;if(p.length<o.length){var d=(0,s.squeezeInputShape)(o,p),m=JSON.parse(JSON.stringify(r));m.unpackedShape=d;var y=\"\\n          \".concat(this.getUnpackedSamplerFromInput(t,e,m).routineBody,\"\\n          float \").concat(t,\"(int row, int col) {\\n            return \").concat(t,\"(\").concat((0,s.getSqueezedParams)([\"col\",\"row\"],h),\");\\n          }\\n        \");return new i.GlslLibRoutine(y,[\"coordinates.sampleTexture\"])}var g=u[1],b=u[0];if(1===b){var v=\"\\n          float \".concat(t,\"(int row, int col) {\\n            int offset_\").concat(e,\" = coordsToOffset(TexCoords, \").concat(g,\", \").concat(b,\");\\n            float index = dot(vec3(row, col, offset_\").concat(e,\"), vec3(\").concat(o[1],\", 1, 1));\\n            vec2 uv = vec2(0.5, (index + 0.5) / \").concat(g,\".0);\\n            return sampleTexture(\").concat(e,\", uv);\\n          }\\n        \");return new i.GlslLibRoutine(v,[\"coordinates.sampleTexture\",\"coordinates.coordsToOffset\"])}if(1===g){var w=\"\\n          float \".concat(t,\"(int row, int col) {\\n            int offset_\").concat(e,\" = coordsToOffset(TexCoords, \").concat(g,\", \").concat(b,\");\\n            float index = dot(vec3(row, col, offset_\").concat(e,\"), vec3(\").concat(o[1],\", 1, 1));\\n            vec2 uv = vec2((index + 0.5) / \").concat(b,\".0, 0.5);\\n            return sampleTexture(\").concat(e,\", uv);\\n          }\\n        \");return new i.GlslLibRoutine(w,[\"coordinates.sampleTexture\",\"coordinates.coordsToOffset\"])}var _=\"\\n        float \".concat(t,\"(int row, int col) {\\n          int index = col * \").concat(o[1],\" + row;\\n          vec2 uv = uvFromFlat(\").concat(g,\", \").concat(b,\", index);\\n          return sampleTexture(\").concat(e,\", uv);\\n        }\\n      \");return new i.GlslLibRoutine(_,[\"coordinates.uvFromFlat\",\"coordinates.sampleTexture\",\"coordinates.coordsToOffset\"])}},{key:\"getUnpackedSampler3D\",value:function(t,e,r){var n=r.unpackedShape,o=n[1]*n[2],u=n[2],c=(0,a.squeezeShape)(n),l=c.newShape,f=c.keptDims,h=l;if(h.length<n.length){var p=(0,s.squeezeInputShape)(n,h),d=JSON.parse(JSON.stringify(r));d.unpackedShape=p;var m=this.getUnpackedSamplerFromInput(t,e,d),y=f.reverse(),g=\"\\n          \".concat(m.routineBody,\"\\n          float \").concat(t,\"(int batch, int row, int col) {\\n            return \").concat(t,\"(\").concat((0,s.getSqueezedParams)([\"batch\",\"col\",\"row\"],y),\");\\n          }\\n        \");return new i.GlslLibRoutine(g,m.dependencies)}var b=\"\\n          float \".concat(t,\"(int depth, int row, int col) {\\n            // Explicitly use integer operations as dot() only works on floats.\\n            int index = depth * \").concat(o,\" + col * \").concat(u,\" + row;\\n            vec2 uv = uvFromFlat(\").concat(r.width,\", \").concat(r.height,\", index);\\n            return sampleTexture(\").concat(e,\", uv);\\n          }\\n      \");return new i.GlslLibRoutine(b,[\"coordinates.uvFromFlat\",\"coordinates.sampleTexture\",\"coordinates.coordsToOffset\"])}},{key:\"getUnpackedSampler4D\",value:function(t,e,r){var n=r.unpackedShape,o=n[3],a=n[2]*o,s=\"\\n        float \".concat(t,\"(int row, int col, int depth, int depth2) {\\n          int index = row * \").concat(n[1]*a,\" + col * \").concat(a,\" +\\n              depth2 * \").concat(o,\" + depth;\\n          vec2 uv = uvFromFlat(\").concat(r.width,\", \").concat(r.height,\", index);\\n          return sampleTexture(\").concat(e,\", uv);\\n        }\\n      \");return new i.GlslLibRoutine(s,[\"coordinates.uvFromFlat\",\"coordinates.sampleTexture\"])}},{key:\"getUnpackedSampler5D\",value:function(t,e,r){var n=r.unpackedShape,o=n[4],u=n[3]*o,c=n[2]*u,l=n[1]*c,f=(0,a.squeezeShape)(n),h=f.newShape,p=f.keptDims;if(h.length<n.length){var d=(0,s.squeezeInputShape)(n,h),m=JSON.parse(JSON.stringify(r));m.unpackedShape=d;var y=\"\\n          \".concat(this.getUnpackedSamplerFromInput(t,e,m).routineBody,\"\\n          float \").concat(t,\"(int row, int col, int depth, int depth2, int depth3) {\\n            return \").concat(t,\"(\").concat((0,s.getSqueezedParams)([\"row\",\"col\",\"depth\",\"depth2\",\"depth3\"],p),\");\\n          }\\n        \");return new i.GlslLibRoutine(y,[\"coordinates.sampleTexture\",\"coordinates.uvFromFlat\"])}var g=\"\\n        float \".concat(t,\"(int row, int col, int depth, int depth2, int depth3) {\\n          int index = row * \").concat(l,\" + col * \").concat(c,\" + depth * \").concat(u,\" +\\n          depth3 * \").concat(o,\" + depth2;\\n          vec2 uv = uvFromFlat(\").concat(r.width,\", \").concat(r.height,\", index);\\n          return sampleTexture(\").concat(e,\", uv);\\n        }\\n      \");return new i.GlslLibRoutine(g,[\"coordinates.sampleTexture\",\"coordinates.uvFromFlat\"])}},{key:\"getUnpackedSampler6D\",value:function(t,e,r){var n=r.unpackedShape,o=n[5],u=n[4]*o,c=n[3]*u,l=n[2]*c,f=n[1]*l,h=(0,a.squeezeShape)(n),p=h.newShape,d=h.keptDims;if(p.length<n.length){var m=(0,s.squeezeInputShape)(n,p),y=JSON.parse(JSON.stringify(r));y.unpackedShape=m;var g=\"\\n            \".concat(this.getUnpackedSamplerFromInput(t,e,y).routineBody,\"\\n            float \").concat(t,\"(int row, int col, int depth,\\n              int depth2, int depth3, int depth4) {\\n              return \").concat(t,\"(\").concat((0,s.getSqueezedParams)([\"row\",\"col\",\"depth\",\"depth2\",\"depth3\",\"depth4\"],d),\");\\n            }\\n          \");return new i.GlslLibRoutine(g,[\"coordinates.sampleTexture\",\"coordinates.uvFromFlat\"])}var b=\"\\n          float \".concat(t,\"(int row, int col, int depth,\\n            int depth2, int depth3, int depth4) {\\n            int index = row * \").concat(f,\" + col * \").concat(l,\" + depth * \").concat(c,\" +\\n            depth2 * \").concat(u,\" + depth3 * \").concat(o,\" + depth4;\\n            vec2 uv = uvFromFlat(\").concat(r.width,\", \").concat(r.height,\", index);\\n            return sampleTexture(\").concat(e,\", uv);\\n          }\\n        \");return new i.GlslLibRoutine(b,[\"coordinates.uvFromFlat\",\"coordinates.sampleTexture\",\"coordinates.coordsToOffset\"])}},{key:\"toVec\",value:function(){for(var t=this.context.outputTextureLayout,e=t.shape.length,r=t.strides,n=t.width,o=t.height,a=[],s=0;s<e-1;++s)a.push(\"\\n        c[\".concat(s,\"] = offset / \").concat(r[s],\";\")),a.push(\"\\n        offset -= c[\".concat(s,\"] * \").concat(r[s],\";\"));a.push(\"\\n        c[\".concat(e-1,\"] = offset;\"));var u=\"\\n      void toVec(vec2 texCoords, out int c[\".concat(e,\"]) {\\n        int offset = coordsToOffset(texCoords, \").concat(n,\", \").concat(o,\");\\n        \").concat(a.join(\"\"),\"\\n      }\\n      void toVec(int offset, out int c[\").concat(e,\"]) {\\n        \").concat(a.join(\"\"),\"\\n      }\\n    \");return{toVec:new i.GlslLibRoutine(u,[\"coordinates.coordsToOffset\"])}}},{key:\"valueFrom\",value:function(){var t=this,e={};return this.context.programInfo.inputNames.forEach((function(r,n){var o=t.context.inputTextureLayouts[n],a=(o.unpackedShape.length>0?o.unpackedShape:o.shape).length,s=\"_\".concat(r);e[s]=new i.GlslLibRoutine(t.getValueFromSingle(r,a,o.width,o.height,!1),[\"shapeUtils.indicesToOffset\".concat(s),\"coordinates.offsetToCoords\",\"fragcolor.getColorAsFloat\"]),e[s+=\"_T\"]=new i.GlslLibRoutine(t.getValueFromSingle(r,a,o.width,o.height,!0),[\"shapeUtils.indicesToOffset\".concat(s),\"coordinates.offsetToCoords\",\"fragcolor.getColorAsFloat\"])})),e}},{key:\"getValueFromSingle\",value:function(t,e,r,n,i){var a=\"_\".concat(t);return i&&(a+=\"_T\"),\"\\n        float \".concat(a,\"(int m[\").concat(e,\"]) {\\n          int offset = indicesToOffset\").concat(a,\"(m);\\n          vec2 coords = offsetToCoords(offset, \").concat(r,\", \").concat(n,\");\\n          float value = getColorAsFloat(\").concat((0,o.getGlsl)(this.context.glContext.version).texture2D,\"(\").concat(t,\", coords));\\n          return value;\\n        }\\n        \")}},{key:\"getPackedValueFrom\",value:function(t,e,r,n,i){var a=\"_\".concat(t,\"_Pack\");return i&&(a+=\"_T\"),\"\\n        vec4 \".concat(a,\"(int m[\").concat(e,\"]) {\\n          int offset = indicesToOffset_\").concat(t,\"(m);\\n          vec2 coords = offsetToCoords(offset, \").concat(r,\", \").concat(n,\");\\n          return \").concat((0,o.getGlsl)(this.context.glContext.version).texture2D,\"(\").concat(t,\", coords);\\n        }\\n        \")}}])}(i.GlslLib);e.CoordsGlslLib=u},1997:function(t,e){\"use strict\";var r;Object.defineProperty(e,\"__esModule\",{value:!0}),e.TopologicalSortGlslRoutines=e.GlslLibRoutineNode=e.GlslLibRoutine=e.GlslLib=e.GlslContext=e.FunctionType=void 0,(r=e.FunctionType||(e.FunctionType={}))[r.ValueBased=0]=\"ValueBased\",r[r.Positional=1]=\"Positional\",e.GlslContext=function(){return _createClass((function t(e,r,n,i){_classCallCheck(this,t),this.glContext=e,this.programInfo=r,this.inputTextureLayouts=n,this.outputTextureLayout=i}))}(),e.GlslLib=function(){return _createClass((function t(e){_classCallCheck(this,t),this.context=e}))}(),e.GlslLibRoutine=function(){return _createClass((function t(e,r){_classCallCheck(this,t),this.routineBody=e,this.dependencies=r}))}(),e.GlslLibRoutineNode=function(){return _createClass((function t(e,r,n){_classCallCheck(this,t),this.name=e,this.dependencies=n||[],r&&(this.routineBody=r)}),[{key:\"addDependency\",value:function(t){t&&this.dependencies.push(t)}}])}(),e.TopologicalSortGlslRoutines=function(){return _createClass((function t(){_classCallCheck(this,t)}),null,[{key:\"returnOrderedNodes\",value:function(t){if(!t||0===t.length)return[];if(1===t.length)return t;var e=new Set,r=new Set,n=new Array;return this.createOrderedNodes(t,e,r,n),n}},{key:\"createOrderedNodes\",value:function(t,e,r,n){for(var i=0;i<t.length;++i)this.dfsTraverse(t[i],e,r,n)}},{key:\"dfsTraverse\",value:function(t,e,r,n){if(t&&!r.has(t.name)){if(e.has(t.name))throw new Error(\"Cyclic dependency detected. Can't topologically sort routines needed for shader.\");e.add(t.name);var i=t.dependencies;if(i&&i.length>0)for(var o=0;o<i.length;++o)this.dfsTraverse(i[o],e,r,n);n.push(t),r.add(t.name),e.delete(t.name)}}}])}()},1371:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EncodingGlslLib=void 0;var n=r(1997),i=function(t){function e(t){return _classCallCheck(this,e),_callSuper(this,e,[t])}return _inherits(e,t),_createClass(e,[{key:\"getFunctions\",value:function(){return Object.assign(Object.assign({},this.encodeFloat32()),this.decodeFloat32())}},{key:\"getCustomTypes\",value:function(){return{}}},{key:\"encodeFloat32\",value:function(){return{encode:new n.GlslLibRoutine(\"highp vec4 encode(highp float f) {\\n        return vec4(f, 0.0, 0.0, 0.0);\\n      }\\n        \")}}},{key:\"decodeFloat32\",value:function(){return{decode:new n.GlslLibRoutine(\"highp float decode(highp vec4 rgba) {\\n        return rgba.r;\\n      }\\n        \")}}},{key:\"encodeUint8\",value:function(){var t=e.isLittleEndian()?\"rgba.rgba=rgba.abgr;\":\"\";return{encode:new n.GlslLibRoutine(\"\\n      highp vec4 encode(highp float f) {\\n        highp float F = abs(f);\\n        highp float Sign = step(0.0,-f);\\n        highp float Exponent = floor(log2(F));\\n        highp float Mantissa = (exp2(- Exponent) * F);\\n        Exponent = floor(log2(F) + 127.0) + floor(log2(Mantissa));\\n        highp vec4 rgba;\\n        rgba[0] = 128.0 * Sign  + floor(Exponent*exp2(-1.0));\\n        rgba[1] = 128.0 * mod(Exponent,2.0) + mod(floor(Mantissa*128.0),128.0);\\n        rgba[2] = floor(mod(floor(Mantissa*exp2(23.0 -8.0)),exp2(8.0)));\\n        rgba[3] = floor(exp2(23.0)*mod(Mantissa,exp2(-15.0)));\\n        \".concat(t,\"\\n        rgba = rgba / 255.0; // values need to be normalized to [0,1]\\n        return rgba;\\n    }\\n        \"))}}},{key:\"decodeUint8\",value:function(){var t=e.isLittleEndian()?\"rgba.rgba=rgba.abgr;\":\"\";return{decode:new n.GlslLibRoutine(\"\\n        highp float decode(highp vec4 rgba) {\\n          rgba = rgba * 255.0; // values need to be de-normalized from [0,1] to [0,255]\\n          \".concat(t,\"\\n          highp float Sign = 1.0 - step(128.0,rgba[0])*2.0;\\n          highp float Exponent = 2.0 * mod(rgba[0],128.0) + step(128.0,rgba[1]) - 127.0;\\n          highp float Mantissa = mod(rgba[1],128.0)*65536.0 + rgba[2]*256.0 +rgba[3] + float(0x800000);\\n          highp float Result =  Sign * exp2(Exponent) * (Mantissa * exp2(-23.0 ));\\n          return Result;\\n      }\\n        \"))}}}],[{key:\"isLittleEndian\",value:function(){var t=new ArrayBuffer(4),e=new Uint32Array(t),r=new Uint8Array(t);if(e[0]=3735928559,239===r[0])return!0;if(222===r[0])return!1;throw new Error(\"unknown endianness\")}}])}(n.GlslLib);e.EncodingGlslLib=i},2691:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.FragColorGlslLib=void 0;var n=r(1997),i=r(6757),o=function(t){function e(t){return _classCallCheck(this,e),_callSuper(this,e,[t])}return _inherits(e,t),_createClass(e,[{key:\"getFunctions\",value:function(){return Object.assign(Object.assign({},this.setFragColor()),this.getColorAsFloat())}},{key:\"getCustomTypes\",value:function(){return{}}},{key:\"setFragColor\",value:function(){var t=(0,i.getGlsl)(this.context.glContext.version);return{setFragColor:new n.GlslLibRoutine(\"\\n        void setFragColor(float value) {\\n            \".concat(t.output,\" = encode(value);\\n        }\\n        \"),[\"encoding.encode\"])}}},{key:\"getColorAsFloat\",value:function(){return{getColorAsFloat:new n.GlslLibRoutine(\"\\n        float getColorAsFloat(vec4 color) {\\n            return decode(color);\\n        }\\n        \",[\"encoding.decode\"])}}}])}(n.GlslLib);e.FragColorGlslLib=o},3878:function(t,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.replaceInlines=void 0;var r=/@inline[\\s\\n\\r]+(\\w+)[\\s\\n\\r]+([0-9a-zA-Z_]+)\\s*\\(([^)]*)\\)\\s*{(([^}]|[\\n\\r])*)}/gm;e.replaceInlines=function(t){for(var e,n={};null!==(e=r.exec(t));){var i=e[3].split(\",\").map((function(t){var e=t.trim().split(\" \");return e&&2===e.length?{type:e[0],name:e[1]}:null})).filter((function(t){return null!==t}));n[e[2]]={params:i,body:e[4]}}for(var o in n)for(var a=\"(\\\\w+)?\\\\s+([_0-9a-zA-Z]+)\\\\s+=\\\\s+__FUNC__\\\\((.*)\\\\)\\\\s*;\".replace(\"__FUNC__\",o),s=new RegExp(a,\"gm\"),u=function(){var r=e[1],i=e[2],a=e[3].split(\",\"),s=r?\"\".concat(r,\" \").concat(i,\";\"):\"\",u=n[o].body,c=\"\";n[o].params.forEach((function(t,e){t&&(c+=\"\".concat(t.type,\" \").concat(t.name,\" = \").concat(a[e],\";\\n\"))})),u=(u=\"\".concat(c,\"\\n \").concat(u)).replace(\"return\",\"\".concat(i,\" = \"));var l=\"\\n      \".concat(s,\"\\n      {\\n        \").concat(u,\"\\n      }\\n      \");t=t.replace(e[0],l)};null!==(e=s.exec(t));)u();return t.replace(r,\"\")}},8897:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.GlslPreprocessor=void 0;var n=r(1997),i=r(3878),o=r(1248),a=r(6757);e.GlslPreprocessor=function(){return _createClass((function t(e,r,i,a){var s=this;_classCallCheck(this,t),this.libs={},this.glslLibRoutineDependencyGraph={},this.context=new n.GlslContext(e,r,i,a),Object.keys(o.glslRegistry).forEach((function(t){var e=new o.glslRegistry[t](s.context);s.libs[t]=e}));var u=this.glslLibRoutineDependencyGraph;for(var c in this.libs){var l=this.libs[c].getFunctions();for(var f in l){var h=c+\".\"+f,p=void 0;u[h]?(p=u[h]).routineBody=l[f].routineBody:(p=new n.GlslLibRoutineNode(h,l[f].routineBody),u[h]=p);var d=l[f].dependencies;if(d)for(var m=0;m<d.length;++m)if(u[d[m]])p.addDependency(u[d[m]]);else{var y=new n.GlslLibRoutineNode(d[m]);u[d[m]]=y,p.addDependency(y)}}}}),[{key:\"preprocess\",value:function(){var t=this.context.programInfo,e=t.shaderSource;return this.context.programInfo.hasMain||(e=\"\".concat(e,\"\\n      \").concat((0,a.getDefaultFragShaderMain)(this.context.glContext.version,this.context.outputTextureLayout.shape.length))),e=(0,i.replaceInlines)(e),\"\".concat((0,a.getFragShaderPreamble)(this.context.glContext.version),\"\\n    \").concat(this.getUniforms(t.inputNames,t.variables),\"\\n    \").concat(this.getImports(e),\"\\n    \").concat(e)}},{key:\"getImports\",value:function(t){var e=this.selectGlslLibRoutinesToBeIncluded(t);if(0===e.length)return\"\";for(var r=\"\",n=0;n<e.length;++n){if(!e[n].routineBody)throw new Error(\"Missing body for the Glsl Library routine: \".concat(e[n].name));r+=e[n].routineBody+\"\\n\"}return r}},{key:\"selectGlslLibRoutinesToBeIncluded\",value:function(t){var e=this,r=[];return Object.keys(this.glslLibRoutineDependencyGraph).forEach((function(n){var i=n.split(\".\")[1];-1!==t.indexOf(i)&&r.push(e.glslLibRoutineDependencyGraph[n])})),n.TopologicalSortGlslRoutines.returnOrderedNodes(r)}},{key:\"getUniforms\",value:function(t,e){var r=[];if(t){var n,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;r.push(\"uniform sampler2D \".concat(o,\";\"))}}catch(t){i.e(t)}finally{i.f()}}if(e){var a,s=_createForOfIteratorHelper(e);try{for(s.s();!(a=s.n()).done;){var u=a.value;r.push(\"uniform \".concat(u.type,\" \").concat(u.name).concat(u.arrayLength?\"[\".concat(u.arrayLength,\"]\"):\"\",\";\"))}}catch(t){s.e(t)}finally{s.f()}}return r.join(\"\\n\")}}])}()},1248:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.glslRegistry=void 0;var n=r(6859),i=r(1371),o=r(2691),a=r(9183),s=r(9314);e.glslRegistry={encoding:i.EncodingGlslLib,fragcolor:o.FragColorGlslLib,vec:s.VecGlslLib,shapeUtils:a.ShapeUtilsGlslLib,coordinates:n.CoordsGlslLib}},9183:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ShapeUtilsGlslLib=void 0;var n=r(1997),i=function(t){function e(t){return _classCallCheck(this,e),_callSuper(this,e,[t])}return _inherits(e,t),_createClass(e,[{key:\"getFunctions\",value:function(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.bcastIndex()),this.bcastMatmulIndex()),this.offsetToIndices()),this.indicesToOffset()),this.incrementIndices())}},{key:\"getCustomTypes\",value:function(){return{}}},{key:\"bcastIndex\",value:function(){var t=this,e=this.context.outputTextureLayout.shape.length,r={};return this.context.programInfo.inputNames.forEach((function(i,o){var a=t.context.inputTextureLayouts[o].unpackedShape;if(a.length<=e){for(var s=a.length,u=e-s,c=\"bcastIndices_\".concat(i),l=\"\",f=0;f<s;++f)l+=\"\\n          realIndices[\".concat(f,\"] = int( mod(float(bcastedIndices[\").concat(u+f,\"]), \").concat(a[f],\".0) );\\n          \");var h=\"\\n        void \".concat(c,\" (int bcastedIndices[\").concat(e,\"], out int realIndices[\").concat(s,\"]) {\\n          \").concat(l,\"\\n        }\\n        \");r[c]=new n.GlslLibRoutine(h)}})),r}},{key:\"bcastMatmulIndex\",value:function(){var t=this,e=this.context.outputTextureLayout.shape.length,r={};return this.context.programInfo.inputNames.forEach((function(i,o){var a=t.context.inputTextureLayouts[o].shape;if(!(a.length<2||a.length>e)){for(var s=a.length,u=e-s,c=\"bcastMatmulIndices_\".concat(i),l=\"\",f=0;f<s-2;++f)l+=\"\\n          realIndices[\".concat(f,\"] = int( mod(float(bcastedIndices[\").concat(u+f,\"]), \").concat(a[f],\".0) );\\n          \");var h=\"\\n        void \".concat(c,\"(int bcastedIndices[\").concat(e,\"], out int realIndices[\").concat(s,\"]) {\\n          \").concat(l,\"\\n          realIndices[\").concat(s-1,\"] = bcastedIndices[\").concat(e-1,\"];\\n          realIndices[\").concat(s-2,\"] = bcastedIndices[\").concat(e-2,\"];\\n        }\\n        \");r[c]=new n.GlslLibRoutine(h)}})),r}},{key:\"indicesToOffset\",value:function(){var t=this,r={};return this.context.programInfo.inputNames.forEach((function(i,o){var a=t.context.inputTextureLayouts[o].shape,s=t.context.inputTextureLayouts[o].strides,u=a.length,c=\"indicesToOffset_\".concat(i);r[c]=new n.GlslLibRoutine(e.indexToOffsetSingle(c,u,s)),c=\"indicesToOffset_\".concat(i,\"_T\"),r[c]=new n.GlslLibRoutine(e.indexToOffsetSingle(c,u,s.slice().reverse()))})),r}},{key:\"offsetToIndices\",value:function(){var t=this,r={};return this.context.programInfo.inputNames.forEach((function(i,o){var a=t.context.inputTextureLayouts[o].shape,s=t.context.inputTextureLayouts[o].strides,u=a.length,c=\"offsetToIndices_\".concat(i);r[c]=new n.GlslLibRoutine(e.offsetToIndicesSingle(c,u,s)),c=\"offsetToIndices_\".concat(i,\"_T\"),r[c]=new n.GlslLibRoutine(e.offsetToIndicesSingle(c,u,s.slice().reverse()))})),r}},{key:\"incrementIndices\",value:function(){var t=this,e={};return this.context.programInfo.inputNames.forEach((function(r,i){for(var o=t.context.inputTextureLayouts[i].shape,a=o.length,s=\"incrementIndices_\".concat(r),u=\"\",c=0;c<a;++c)u+=\"\\n        shape[\".concat(c,\"] = \").concat(o[c],\";\");var l=\"\\n        void \".concat(s,\"(int axis, out int indices[\").concat(a,\"]) {\\n          int shape[\").concat(a,\"];\\n          \").concat(u,\";\\n          for(int i = \").concat(a,\" -1 ; i >= 0; --i) {\\n            if(i > axis) continue;\\n            indices[i] += 1;\\n            if(indices[i] < shape[i]) {\\n              break;\\n            }\\n            indices[i] = 0;\\n          }\\n        }\\n        \");e[s]=new n.GlslLibRoutine(l)})),e}}],[{key:\"indexToOffsetSingle\",value:function(t,e,r){for(var n=\"\",i=e-1;i>=0;--i)n+=\"\\n        offset += indices[\".concat(i,\"] * \").concat(r[i],\";\\n        \");return\"\\n      int \".concat(t,\"(int indices[\").concat(e,\"]) {\\n        int offset = 0;\\n        \").concat(n,\"\\n        return offset;\\n      }\\n      \")}},{key:\"offsetToIndicesSingle\",value:function(t,e,r){for(var n=[],i=0;i<e-1;++i)n.push(\"\\n      indices[\".concat(i,\"] = offset / \").concat(r[i],\";\")),n.push(\"\\n        offset -= indices[\".concat(i,\"] * \").concat(r[i],\";\"));return n.push(\"\\n      indices[\".concat(e-1,\"] = offset;\")),\"\\n      void \".concat(t,\"(int offset, out int indices[\").concat(e,\"]) {\\n        \").concat(n.join(\"\"),\"\\n      }\\n      \")}}])}(n.GlslLib);e.ShapeUtilsGlslLib=i},6757:function(t,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.getDefaultFragShaderMain=e.getFragShaderPreamble=e.getVertexShaderSource=e.getGlsl=void 0;var r={version:\"\",attribute:\"attribute\",varyingVertex:\"varying\",varyingFrag:\"varying\",texture2D:\"texture2D\",output:\"gl_FragColor\",outputDeclaration:\"\"},n={version:\"#version 300 es\",attribute:\"in\",varyingVertex:\"out\",varyingFrag:\"in\",texture2D:\"texture\",output:\"outputColor\",outputDeclaration:\"out vec4 outputColor;\"};function i(t){return 1===t?r:n}e.getGlsl=i,e.getVertexShaderSource=function(t){var e=i(t);return\"\".concat(e.version,\"\\n      precision highp float;\\n      \").concat(e.attribute,\" vec3 position;\\n      \").concat(e.attribute,\" vec2 textureCoord;\\n\\n      \").concat(e.varyingVertex,\" vec2 TexCoords;\\n\\n      void main()\\n      {\\n          gl_Position = vec4(position, 1.0);\\n          TexCoords = textureCoord;\\n      }\")},e.getFragShaderPreamble=function(t){var e=i(t);return\"\".concat(e.version,\"\\n    precision highp float;\\n    precision highp int;\\n    precision highp sampler2D;\\n    \").concat(e.varyingFrag,\" vec2 TexCoords;\\n    \").concat(e.outputDeclaration,\"\\n    const vec2 halfCR = vec2(0.5, 0.5);\\n\\n    // Custom vector types to handle higher dimenalities.\\n    struct ivec5\\n    {\\n      int x;\\n      int y;\\n      int z;\\n      int w;\\n      int u;\\n    };\\n\\n    struct ivec6\\n    {\\n      int x;\\n      int y;\\n      int z;\\n      int w;\\n      int u;\\n      int v;\\n    };\\n\\n    int imod(int x, int y) {\\n      return x - y * (x / y);\\n    }\\n\\n    \")},e.getDefaultFragShaderMain=function(t,e){return\"\\n  void main() {\\n    int indices[\".concat(e,\"];\\n    toVec(TexCoords, indices);\\n    vec4 result = vec4(process(indices));\\n    \").concat(i(t).output,\" = result;\\n  }\\n  \")}},9314:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.VecGlslLib=void 0;var n=r(1997),i=function(t){function e(t){return _classCallCheck(this,e),_callSuper(this,e,[t])}return _inherits(e,t),_createClass(e,[{key:\"getCustomTypes\",value:function(){return{}}},{key:\"getFunctions\",value:function(){return Object.assign(Object.assign(Object.assign(Object.assign({},this.binaryVecFunctions()),this.copyVec()),this.setVecItem()),this.getVecItem())}},{key:\"binaryVecFunctions\",value:function(){var t=this.context.outputTextureLayout.shape.length,e={add:\"+=\",sub:\"-=\",mul:\"*=\",div:\"/=\"},r={};for(var i in e){for(var o=\"\".concat(i,\"Vec\"),a=\"\",s=0;s<t;++s)a+=\"\\n          dest[\".concat(s,\"] \").concat(e[i],\" src[\").concat(s,\"];\\n          \");var u=\"\\n        void \".concat(o,\"(int src[\").concat(t,\"], out int dest[\").concat(t,\"]) {\\n          \").concat(a,\"\\n        }\\n        \");r[o]=new n.GlslLibRoutine(u)}return r}},{key:\"copyVec\",value:function(){for(var t=this.context.outputTextureLayout.shape.length,e=\"\",r=0;r<t;++r)e+=\"\\n        dest[\".concat(r,\"] = src[\").concat(r,\"];\\n        \");var i=\"\\n      void copyVec(int src[\".concat(t,\"], out int dest[\").concat(t,\"]) {\\n        \").concat(e,\"\\n      }\\n      \");return{copyVec:new n.GlslLibRoutine(i)}}},{key:\"setVecItem\",value:function(){for(var t=this.context.outputTextureLayout.shape.length,e=\"\\n        if(index < 0)\\n            index =\".concat(t,\" + index;\\n        if (index == 0)\\n            m[0] = value;\\n        \"),r=1;r<t-1;++r)e+=\"\\n        else if (index == \".concat(r,\")\\n            m[\").concat(r,\"] = value;\\n            \");e+=\"\\n        else\\n            m[\".concat(t-1,\"] = value;\\n        \");var i=\"\\n      void setVecItem(out int m[\".concat(t,\"], int index, int value) {\\n        \").concat(e,\"\\n      }\\n        \");return{setVecItem:new n.GlslLibRoutine(i)}}},{key:\"getVecItem\",value:function(){for(var t=this.context.outputTextureLayout.shape.length,e=\"\\n        if(index < 0)\\n            index = \".concat(t,\" + index;\\n        if (index == 0)\\n            return m[0];\\n      \"),r=1;r<t-1;++r)e+=\"\\n        else if (index == \".concat(r,\")\\n            return m[\").concat(r,\"];\\n      \");e+=\"\\n        else\\n            return m[\".concat(t-1,\"];\\n        \");var i=\"\\n      int getVecItem(int m[\".concat(t,\"], int index) {\\n        \").concat(e,\"\\n      }\\n    \");return{getVecItem:new n.GlslLibRoutine(i)}}}])}(n.GlslLib);e.VecGlslLib=i},7860:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.WebGLInferenceHandler=void 0;var n=r(1315),i=r(9240),o=r(7273),a=r(9),s=r(7379),u=r(2488),c=r(540),l=r(3314),f=r(5639);e.WebGLInferenceHandler=function(){return _createClass((function t(e){_classCallCheck(this,t),this.session=e,this.packedTextureDataCache=new Map,this.unpackedTextureDataCache=new Map}),[{key:\"calculateTextureWidthAndHeight\",value:function(t,e){return(0,l.calculateTextureWidthAndHeight)(this.session.layoutStrategy,t,e)}},{key:\"executeProgram\",value:function(t,e){if(e.length<t.inputNames.length)throw new Error(\"Input size mustn't be less than \".concat(t.inputNames.length,\".\"));if(t.inputNames.length!==t.inputTypes.length)throw new Error(\"input names size does not match input types\");for(var r=[],n=0;n<t.inputNames.length;++n)r[n]=this.getOrCreateTextureData(e[n],t.inputTypes[n]);var i=function(t,e){var r=e.map((function(t){return\"\".concat(t.unpackedShape.join(\",\"),\";\").concat(t.width,\"x\").concat(t.height)})).join(\"_\"),n=t.name;return t.cacheHint&&(n+=\"[\"+t.cacheHint+\"]\"),n+=\":\"+r}(t,r),o=this.session.programManager.getArtifact(i),a=o?o.programInfo:\"function\"==typeof t.get?t.get():t,s=(0,l.createTextureLayoutFromTextureType)(this.session.layoutStrategy,a.output.dims,a.output.textureType),u=this.createTextureData(s,a.output.type);return o||(o=this.session.programManager.build(a,r,u),this.session.programManager.setArtifact(i,o)),this.runProgram(o,r,u),u}},{key:\"run\",value:function(t,e){return this.executeProgram(t,e).tensor}},{key:\"runProgram\",value:function(t,e,r){for(var n=0;n<e.length;++n)if(!!e[n].isPacked!=(t.programInfo.inputTypes[n]===f.TextureType.packed))throw new Error(\"input[\".concat(n,\"] property packed inconsistent\"));if(!!r.isPacked!=(t.programInfo.output.textureType===f.TextureType.packed))throw new Error(\"output property packed inconsistent\");this.session.programManager.run(t,e,r)}},{key:\"getOrCreateTextureData\",value:function(t,e){var r=this.getTextureData(t.dataId,e===f.TextureType.packed);if(!r&&(r=this.getTextureData(t.dataId,e!==f.TextureType.packed)))return e===f.TextureType.packed?this.pack(r):this.unpack(r);if(!r){var n=(0,l.createTextureLayoutFromTextureType)(this.session.layoutStrategy,t.dims,e);if(e===f.TextureType.packedLastDimension){var i=t.dims;if(4===i.length){var o=[i[0],Math.ceil(i[1]*i[2]*i[3]/4)],a=(0,l.createTextureLayoutFromTextureType)(this.session.layoutStrategy,o,e),s=t.numberData;if(i[1]*i[2]*i[3]%4!=0){var u=i[0],c=i[1]*i[2]*i[3],h=4*Math.ceil(1*c/4);s=new Float32Array(u*h);for(var p=0;p<u;++p){var d=p*c,m=p*h+p%1*c;s.set(t.numberData.subarray(d,d+c),m)}}return this.createTextureData(a,t.type,s,t,1)}}if(e===f.TextureType.packed){var y=(0,l.createTextureLayoutFromShape)(this.session.layoutStrategy,t.dims,1,[],{reverseWH:!0}),g=this.createTextureData(y,t.type,t.numberData,t,1);r=this.pack(g)}else r=this.createTextureData(n,t.type,t.numberData,t,1)}return r}},{key:\"createTextureDataFromLayoutBindTensor\",value:function(t,e,r,n){return this.createTextureData(t,e,r,n,1)}},{key:\"createTextureData\",value:function(t,e,r,i,o){n.Logger.verbose(\"InferenceHandler\",\"Creating TextureData: layout:[\".concat(JSON.stringify(t),\"]\"));var a=this.session.textureManager.createTextureFromLayout(e,t,r,o);return this.createTextureDataFromTexture(t,e,a,i)}},{key:\"reshapeUnpacked\",value:function(t,e){var r=this.getOrCreateTextureData(t,f.TextureType.unpacked),n={channels:r.channels,height:r.height,width:r.width,shape:0!==e.length?e:[1],strides:o.ShapeUtil.computeStrides(e),unpackedShape:e};return this.createTextureDataFromTexture(n,t.type,r.texture).tensor}},{key:\"reshapePacked\",value:function(t,e){var r=this.getOrCreateTextureData(t,f.TextureType.packed);if((0,s.isReshapeCheap)(t.dims,e)){var n={channels:r.channels,height:r.height,width:r.width,shape:0!==e.length?e:[1],strides:o.ShapeUtil.computeStrides(e),unpackedShape:e,isPacked:!0};return this.createTextureDataFromTexture(n,t.type,r.texture).tensor}var i=(0,s.processDims3D)(t.dims),a=(0,s.processDims3D)(e),u=this.reshapePacked(t,i),c=this.run((0,s.createPackedReshape3DProgramInfoLoader)(this,u,a),[u]);return this.reshapePacked(c,e)}},{key:\"cast\",value:function(t,e){var r=this.getOrCreateTextureData(t,f.TextureType.unpacked);return this.createTextureDataFromTexture(r,e,r.texture).tensor}},{key:\"createTextureDataFromTexture\",value:function(t,e,r,n,o){var a=this,s=Object.assign(Object.assign({},t),{tensor:n||new i.Tensor(t.unpackedShape,e,(function(t){return a.readTexture(s)}),function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",a.readTextureAsync(s));case 1:case\"end\":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),void 0,o),texture:r});return this.setTextureData(s.tensor.dataId,s,t.isPacked),s}},{key:\"getTextureData\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.session.isInitializer(t)?this.session.getTextureData(t,e):e?this.packedTextureDataCache.get(t):this.unpackedTextureDataCache.get(t)}},{key:\"setTextureData\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.session.isInitializer(t)?this.session.setTextureData(t,e,r):(r?this.packedTextureDataCache:this.unpackedTextureDataCache).set(t,e)}},{key:\"isTextureLayoutCached\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!this.getTextureData(t.dataId,e)}},{key:\"dispose\",value:function(){var t=this;this.session.textureManager.clearActiveTextures(),this.packedTextureDataCache.forEach((function(e){return t.session.textureManager.releaseTexture(e)})),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache.forEach((function(e){return t.session.textureManager.releaseTexture(e)})),this.unpackedTextureDataCache=new Map}},{key:\"readTexture\",value:function(t){return t.isPacked?this.readTexture(this.unpack(t)):this.session.backend.glContext.isFloat32DownloadSupported?this.session.textureManager.readTexture(t,t.tensor.type,t.channels):this.session.textureManager.readUint8TextureAsFloat((0,u.encodeAsUint8)(this,t))}},{key:\"readTextureAsync\",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",e.isPacked?this.readTextureAsync(this.unpack(e)):this.session.backend.glContext.isFloat32DownloadSupported?this.session.textureManager.readTextureAsync(e,e.tensor.type,e.channels):this.session.textureManager.readUint8TextureAsFloat((0,u.encodeAsUint8)(this,e)));case 1:case\"end\":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:\"pack\",value:function(t){return this.executeProgram((0,a.createPackProgramInfoLoader)(this,t.tensor),[t.tensor])}},{key:\"unpack\",value:function(t){return this.executeProgram((0,c.createUnpackProgramInfoLoader)(this,t.tensor),[t.tensor])}}]);var t}()},4110:function(t,e,r){\"use strict\";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!(\"get\"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)\"default\"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,\"__esModule\",{value:!0}),e.WEBGL_OP_RESOLVE_RULES=void 0;var a=r(8817),s=o(r(5194)),u=r(4752),c=r(6668),l=r(9754),f=r(5042),h=r(6742),p=r(4125),d=r(6149),m=r(5378),y=r(6981),g=r(7413),b=r(7006),v=r(8276),w=r(5565),_=r(2834),x=r(1010),k=r(8126),E=r(2801),S=r(565),T=r(2444),A=r(815),D=r(564),O=r(5416),I=r(1240),P=r(5944),C=r(5707),L=o(r(9087)),M=r(7862),F=r(3980);e.WEBGL_OP_RESOLVE_RULES=[[\"Abs\",\"\",\"6+\",L.abs],[\"Acos\",\"\",\"7+\",L.acos],[\"Add\",\"\",\"7+\",s.add],[\"And\",\"\",\"7+\",s.and],[\"Asin\",\"\",\"7+\",L.asin],[\"Atan\",\"\",\"7+\",L.atan],[\"AveragePool\",\"\",\"7+\",_.averagePool,_.parseAveragePoolAttributes],[\"BatchNormalization\",\"\",\"7+\",a.batchNormalization,a.parseBatchNormalizationAttributes],[\"Cast\",\"\",\"6+\",u.cast,u.parseCastAttributes],[\"Ceil\",\"\",\"6+\",L.ceil],[\"Clip\",\"\",\"6-10\",L.clip,L.parseClipAttributes],[\"Clip\",\"\",\"11+\",L.clipV11],[\"Concat\",\"\",\"4+\",c.concat,c.parseConcatAttributes],[\"Conv\",\"\",\"1+\",l.conv,l.parseConvAttributes],[\"ConvTranspose\",\"\",\"1+\",f.convTranspose,f.parseConvTransposeAttributes],[\"Cos\",\"\",\"7+\",L.cos],[\"Div\",\"\",\"7+\",s.div],[\"Dropout\",\"\",\"7+\",L.identity],[\"DepthToSpace\",\"\",\"1+\",h.depthToSpace,h.parseDepthToSpaceAttributes],[\"Equal\",\"\",\"7+\",s.equal],[\"Elu\",\"\",\"6+\",L.elu,L.parseEluAttributes],[\"Exp\",\"\",\"6+\",L.exp],[\"Flatten\",\"\",\"1+\",p.flatten,p.parseFlattenAttributes],[\"Floor\",\"\",\"6+\",L.floor],[\"FusedConv\",\"com.microsoft\",\"1+\",l.conv,l.parseConvAttributes],[\"Gather\",\"\",\"1+\",d.gather,d.parseGatherAttributes],[\"Gemm\",\"\",\"7-10\",m.gemm,m.parseGemmAttributesV7],[\"Gemm\",\"\",\"11+\",m.gemm,m.parseGemmAttributesV11],[\"GlobalAveragePool\",\"\",\"1+\",_.globalAveragePool,_.parseGlobalAveragePoolAttributes],[\"GlobalMaxPool\",\"\",\"1+\",_.globalMaxPool],[\"Greater\",\"\",\"7+\",s.greater],[\"Identity\",\"\",\"1+\",L.identity],[\"ImageScaler\",\"\",\"1+\",y.imageScaler,y.parseImageScalerAttributes],[\"InstanceNormalization\",\"\",\"6+\",g.instanceNormalization,g.parseInstanceNormalizationAttributes],[\"LeakyRelu\",\"\",\"6+\",L.leakyRelu,L.parseLeakyReluAttributes],[\"Less\",\"\",\"7+\",s.less],[\"LRN\",\"\",\"1+\",b.lrn,b.parseLrnAttributes],[\"Log\",\"\",\"6+\",L.log],[\"MatMul\",\"\",\"1+\",v.matMul,v.parseMatMulAttributes],[\"MaxPool\",\"\",\"1+\",_.maxPool,_.parseMaxPoolAttributes],[\"Mul\",\"\",\"7+\",s.mul],[\"Neg\",\"\",\"6+\",L.neg],[\"Not\",\"\",\"1+\",L.not],[\"Or\",\"\",\"7+\",s.or],[\"Pad\",\"\",\"2-10\",w.padV2,w.parsePadAttributesV2],[\"Pad\",\"\",\"11+\",w.padV11,w.parsePadAttributesV11],[\"Pow\",\"\",\"7+\",s.pow],[\"PRelu\",\"\",\"7+\",s.pRelu],[\"ReduceLogSum\",\"\",\"1+\",x.reduceLogSum,x.parseReduceAttributes],[\"ReduceMax\",\"\",\"1+\",x.reduceMax,x.parseReduceAttributes],[\"ReduceMean\",\"\",\"1+\",x.reduceMean,x.parseReduceAttributes],[\"ReduceMin\",\"\",\"1+\",x.reduceMin,x.parseReduceAttributes],[\"ReduceProd\",\"\",\"1+\",x.reduceProd,x.parseReduceAttributes],[\"ReduceSum\",\"\",\"1-12\",x.reduceSum,x.parseReduceAttributes],[\"ReduceSumSquare\",\"\",\"1+\",x.reduceLogSumSquare,x.parseReduceAttributes],[\"Relu\",\"\",\"6+\",L.relu],[\"Reshape\",\"\",\"5+\",k.reshape],[\"Resize\",\"\",\"10\",E.resize,E.parseResizeAttributesV10],[\"Resize\",\"\",\"11+\",E.resize,E.parseResizeAttributesV11],[\"Shape\",\"\",\"1+\",S.shape],[\"Sigmoid\",\"\",\"6+\",L.sigmoid],[\"Sin\",\"\",\"7+\",L.sin],[\"Slice\",\"\",\"10+\",T.sliceV10],[\"Slice\",\"\",\"1-9\",T.slice,T.parseSliceAttributes],[\"Softmax\",\"\",\"1-12\",A.softmax,A.parseSoftmaxAttributes],[\"Softmax\",\"\",\"13+\",A.softmaxV13,A.parseSoftmaxAttributesV13],[\"Split\",\"\",\"2-12\",D.split,D.parseSplitAttributes],[\"Sqrt\",\"\",\"6+\",L.sqrt],[\"Squeeze\",\"\",\"1-12\",O.squeeze,O.parseSqueezeAttributes],[\"Squeeze\",\"\",\"13+\",O.squeezeV13],[\"Sub\",\"\",\"7+\",s.sub],[\"Sum\",\"\",\"6+\",I.sum],[\"Tan\",\"\",\"7+\",L.tan],[\"Tanh\",\"\",\"6+\",L.tanh],[\"Tile\",\"\",\"6+\",P.tile],[\"Transpose\",\"\",\"1+\",C.transpose,C.parseTransposeAttributes],[\"Upsample\",\"\",\"7-8\",F.upsample,F.parseUpsampleAttributesV7],[\"Upsample\",\"\",\"9\",F.upsample,F.parseUpsampleAttributesV9],[\"Unsqueeze\",\"\",\"1-12\",M.unsqueeze,M.parseUnsqueezeAttributes],[\"Unsqueeze\",\"\",\"13+\",M.unsqueezeV13],[\"Xor\",\"\",\"7+\",s.xor]]},8817:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseBatchNormalizationAttributes=e.batchNormalization=void 0;var n=r(4910),i=r(6757),o=r(5639),a={name:\"BatchNormalization\",inputNames:[\"A\",\"Scale\",\"B\",\"Mean\",\"Variance\"],inputTypes:[o.TextureType.unpacked,o.TextureType.unpacked,o.TextureType.unpacked,o.TextureType.unpacked,o.TextureType.unpacked]};e.batchNormalization=function(t,e,r){return u(e),[t.run(Object.assign(Object.assign({},a),{cacheHint:r.cacheKey,get:function(){return s(t,e,r)}}),e)]},e.parseBatchNormalizationAttributes=function(t){var e=t.attributes.getFloat(\"epsilon\",1e-5),r=t.attributes.getFloat(\"momentum\",.9),i=t.attributes.getInt(\"spatial\",1);return(0,n.createAttributeWithCacheKey)({epsilon:e,momentum:r,spatial:i})};var s=function(t,e,r){var n=(0,i.getGlsl)(t.session.backend.glContext.version),s=e[0].dims.length,u=_slicedToArray(t.calculateTextureWidthAndHeight(e[1].dims,o.TextureType.unpacked),2),c=u[0],l=u[1],f=\"\\n  float process(int[\".concat(s,\"] indices) {\\n    vec2 position = offsetToCoords(indices[1], \").concat(c,\", \").concat(l,\");\\n    float scale = getColorAsFloat(\").concat(n.texture2D,\"(Scale, position));\\n    float mean = getColorAsFloat(\").concat(n.texture2D,\"(Mean, position));\\n    float variance = getColorAsFloat(\").concat(n.texture2D,\"(Variance, position));\\n    float b = getColorAsFloat(\").concat(n.texture2D,\"(B, position));\\n\\n    return scale * ( (_A(indices) - mean) / sqrt(variance + float(\").concat(r.epsilon,\")) ) + b;\\n  }\");return Object.assign(Object.assign({},a),{output:{dims:e[0].dims,type:e[0].type,textureType:o.TextureType.unpacked},shaderSource:f})},u=function(t){if(!t||5!==t.length)throw new Error(\"BatchNormalization requires 5 inputs.\");var e=t[0],r=t[1],n=t[2],i=t[3],o=t[4];if(e.dims.length<3||1!==r.dims.length||1!==n.dims.length||1!==i.dims.length||1!==o.dims.length)throw new Error(\"invalid input shape.\");if(r.dims[0]!==e.dims[1]||n.dims[0]!==e.dims[1]||i.dims[0]!==e.dims[1]||o.dims[0]!==e.dims[1])throw new Error(\"invalid input shape.\");if(\"float32\"!==e.type&&\"float64\"!==e.type||\"float32\"!==r.type&&\"float64\"!==r.type||\"float32\"!==n.type&&\"float64\"!==n.type||\"float32\"!==i.type&&\"float64\"!==i.type||\"float32\"!==o.type&&\"float64\"!==o.type)throw new Error(\"invalid input tensor types.\")}},5194:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.xor=e.sub=e.pRelu=e.pow=e.or=e.mul=e.less=e.greater=e.equal=e.div=e.and=e.add=e.glslPRelu=e.glslPow=e.glslXor=e.glslOr=e.glslAnd=e.glslLess=e.glslGreater=e.glslEqual=e.glslSub=e.glslMul=e.glslDiv=e.glslAdd=void 0;var n=r(7273),i=r(1997),o=r(6757),a=r(5639);function s(){var t=\"add_\";return{body:\"\\n  float \".concat(t,\"(float a, float b) {\\n    return a + b;\\n  }\\n  vec4 \").concat(t,\"(vec4 v1, vec4 v2) {\\n    return v1 + v2;\\n  }\\n  \"),name:t,type:i.FunctionType.ValueBased}}function u(){var t=\"div_\";return{body:\"\\n  float \".concat(t,\"(float a, float b) {\\n    return a / b;\\n  }\\n  vec4 \").concat(t,\"(vec4 v1, vec4 v2) {\\n    return v1 / v2;\\n  }\\n  \"),name:t,type:i.FunctionType.ValueBased}}function c(){var t=\"mul_\";return{body:\"\\n  float \".concat(t,\"(float a, float b) {\\n    return a * b;\\n  }\\n  vec4 \").concat(t,\"(vec4 v1, vec4 v2) {\\n    return v1 * v2;\\n  }\\n  \"),name:t,type:i.FunctionType.ValueBased}}function l(){var t=\"sub_\";return{body:\"\\n  float \".concat(t,\"(float a, float b) {\\n    return a - b;\\n  }\\n  vec4 \").concat(t,\"(vec4 v1, vec4 v2) {\\n    return v1 - v2;\\n  }\\n  \"),name:t,type:i.FunctionType.ValueBased}}function f(){var t=\"equal_\";return{body:\"\\n  float \".concat(t,\"(float a, float b) {\\n    return float(a == b);\\n  }\\n  vec4 \").concat(t,\"(vec4 v1, vec4 v2) {\\n    return vec4(equal(v1, v2));\\n  }\\n  \"),name:t,type:i.FunctionType.ValueBased}}function h(){var t=\"greater_\";return{body:\"\\n  float \".concat(t,\"(float a, float b) {\\n    return float(a > b);\\n  }\\n  vec4 \").concat(t,\"(vec4 v1, vec4 v2) {\\n    return vec4( v1.r > v2.r ,\\n      v1.g > v2.g,\\n      v1.b > v2.b,\\n      v1.a > v2.a );\\n  }\\n  \"),name:t,type:i.FunctionType.ValueBased}}function p(){var t=\"less_\";return{body:\"\\n  float \".concat(t,\"(float a, float b) {\\n    return float(a < b);\\n  }\\n  vec4 \").concat(t,\"(vec4 v1, vec4 v2) {\\n    return vec4( v1.r < v2.r ,\\n                v1.g < v2.g,\\n                v1.b < v2.b,\\n                v1.a < v2.a );\\n  }\\n  \"),name:t,type:i.FunctionType.ValueBased}}function d(){var t=\"and_\";return{body:\"\\n  float \".concat(t,\"(float a, float b) {\\n    return float( bool(a) && bool(b) );\\n  }\\n  vec4 \").concat(t,\"(vec4 v1, vec4 v2) {\\n    bvec4 b1 = bvec4(v1);\\n    bvec4 b2 = bvec4(v2);\\n    return vec4( b1.r && b2.r ,\\n                b1.g && b2.g,\\n                b1.b && b2.b,\\n                b1.a && b2.a );\\n  }\\n  \"),name:t,type:i.FunctionType.ValueBased}}function m(){var t=\"or_\";return{body:\"\\n  float \".concat(t,\"(float a, float b) {\\n    return float( bool(a) || bool(b) );\\n  }\\n  vec4 \").concat(t,\"(vec4 v1, vec4 v2) {\\n    bvec4 b1 = bvec4(v1);\\n    bvec4 b2 = bvec4(v2);\\n    return vec4( b1.r || b2.r ,\\n                b1.g || b2.g,\\n                b1.b || b2.b,\\n                b1.a || b2.a );\\n  }\\n  \"),name:t,type:i.FunctionType.ValueBased}}function y(){var t=\"xor_\";return{body:\"\\n  float \".concat(t,\"(float a, float b) {\\n    return float( bool(a) ^^ bool(b) );\\n  }\\n  vec4 \").concat(t,\"(vec4 v1, vec4 v2) {\\n    bvec4 b1 = bvec4(v1);\\n    bvec4 b2 = bvec4(v2);\\n    return vec4( b1.r ^^ b2.r ,\\n                b1.g ^^ b2.g,\\n                b1.b ^^ b2.b,\\n                b1.a ^^ b2.a );\\n  }\\n  \"),name:t,type:i.FunctionType.ValueBased}}function g(){return function(t){var e=\"\".concat(t,\"_\");return{body:\"\\n  float \".concat(e,\"(float a, float b) {\\n    return \").concat(t,\"(a, b);\\n  }\\n  vec4 \").concat(e,\"(vec4 v1, vec4 v2) {\\n    return \").concat(t,\"(v1, v2);\\n  }\\n  \"),name:e,type:i.FunctionType.ValueBased}}(\"pow\")}function b(){var t=\"prelu_\";return{body:\"\\n  float \".concat(t,\"(float a, float b) {\\n    return a < 0.0 ? a * b: a;\\n  }\\n  vec4 \").concat(t,\"(vec4 v1, vec4 v2) {\\n    return vec4(\\n      v1.r < 0.0 ? v1.r * v2.r: v1.r,\\n      v1.g < 0.0 ? v1.g * v2.g: v1.g,\\n      v1.b < 0.0 ? v1.b * v2.b: v1.b,\\n      v1.a < 0.0 ? v1.a * v2.a: v1.a\\n      );\\n  }\\n  \"),name:t,type:i.FunctionType.ValueBased}}e.glslAdd=s,e.glslDiv=u,e.glslMul=c,e.glslSub=l,e.glslEqual=f,e.glslGreater=h,e.glslLess=p,e.glslAnd=d,e.glslOr=m,e.glslXor=y,e.glslPow=g,e.glslPRelu=b;var v=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e[0].type,i=arguments.length>4?arguments[4]:void 0,o=t.session.pack?a.TextureType.packed:a.TextureType.unpacked;return{name:r.name,inputNames:[\"A\",\"B\"],inputTypes:[o,o],cacheHint:i,get:function(){return w(t,e,r,n)}}},w=function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e[0].type,s=t.session.pack?a.TextureType.packed:a.TextureType.unpacked,u=!n.ShapeUtil.areEqual(e[0].dims,e[1].dims),c=e[0].dims,l=t.session.pack;if(u){var f=n.BroadcastUtil.calcShape(e[0].dims,e[1].dims,!1);if(!f)throw new Error(\"Can't perform binary op on the given tensors\");var h=(c=f).length,p=0!==e[0].dims.length?e[0].dims.length:1,d=0!==e[1].dims.length?e[1].dims.length:1,m=0!==e[0].dims.length?\"bcastIndices_A(indices, aindices);\":\"aindices[0] = 0;\",y=0!==e[1].dims.length?\"bcastIndices_B(indices, bindices);\":\"bindices[0] = 0;\",g=(0,o.getGlsl)(t.session.backend.glContext.version),b=l?\"\\n      \".concat(r.body,\"\\n      void main() {\\n        vec4 a = getAAtOutCoords();\\n        vec4 b = getBAtOutCoords();\\n        vec4 result = \").concat(r.name,\"(a, b);\\n        \").concat(g.output,\" = result;\\n      }\"):\"\\n      \".concat(r.body,\"\\n      float process(int indices[\").concat(h,\"]) {\\n        int aindices[\").concat(p,\"];\\n        int bindices[\").concat(d,\"];\\n        \").concat(m,\"\\n        \").concat(y,\"\\n        return \").concat(r.name,\"(_A(aindices), _B(bindices));\\n      }\");return{name:r.name,inputNames:[\"A\",\"B\"],inputTypes:[s,s],output:{dims:c,type:i,textureType:s},shaderSource:b,hasMain:l}}var v=(0,o.getGlsl)(t.session.backend.glContext.version),w=\"\\n    \".concat(r.body,\"\\n    void main() {\\n      vec4 v1 = \").concat(v.texture2D,\"(A, TexCoords);\\n      vec4 v2 = \").concat(v.texture2D,\"(B, TexCoords);\\n      vec4 result = \").concat(r.name,\"(v1, v2);\\n      \").concat(v.output,\" = result;\\n    }\\n    \");return{name:r.name,inputNames:[\"A\",\"B\"],inputTypes:[s,s],output:{dims:e[0].dims,type:i,textureType:s},shaderSource:w,hasMain:!0}};e.add=function(t,e){return[t.run(v(t,e,s()),e)]},e.and=function(t,e){return[t.run(v(t,e,d(),\"bool\"),e)]},e.div=function(t,e){return[t.run(v(t,e,u()),e)]},e.equal=function(t,e){return[t.run(v(t,e,f(),\"bool\"),e)]},e.greater=function(t,e){return[t.run(v(t,e,h(),\"bool\"),e)]},e.less=function(t,e){return[t.run(v(t,e,p(),\"bool\"),e)]},e.mul=function(t,e){return[t.run(v(t,e,c()),e)]},e.or=function(t,e){return[t.run(v(t,e,m(),\"bool\"),e)]},e.pow=function(t,e){return[t.run(v(t,e,g()),e)]},e.pRelu=function(t,e){return[t.run(v(t,e,b()),e)]},e.sub=function(t,e){return[t.run(v(t,e,l()),e)]},e.xor=function(t,e){return[t.run(v(t,e,y(),\"bool\"),e)]}},4752:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseCastAttributes=e.cast=void 0;var n=r(7273);e.cast=function(t,e,r){return i(e),[t.cast(e[0],r)]},e.parseCastAttributes=function(t){return n.ProtoUtil.tensorDataTypeFromProto(t.attributes.getInt(\"to\"))};var i=function(t){if(!t||1!==t.length)throw new Error(\"Cast requires 1 input.\");if(\"string\"===t[0].type)throw new Error(\"Invalid input type.\")}},4595:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createPackedConcatProgramInfoLoader=void 0;var n=r(6757),i=r(5639),o=r(432),a=r(5614);e.createPackedConcatProgramInfoLoader=function(t,e,r){var u,c,l=(u=e.length,c=r.cacheKey,{name:\"Concat (packed)\",inputNames:Array.from({length:u},(function(t,e){return\"X\".concat(e)})),inputTypes:Array(u).fill(i.TextureType.packed),cacheHint:c});return Object.assign(Object.assign({},l),{get:function(){return function(t,e,r,u){var c=r[0].dims.slice();if(u>=c.length||u<-1*c.length)throw new Error(\"axis specified for concat doesn't match input dimensionality\");u<0&&(u=c.length+u);for(var l=c.slice(0),f=1;f<r.length;f++)for(var h=r[f].dims.slice(),p=0;p<c.length;p++)if(p===u)l[u]+=h[p];else if(c[p]!==h[p])throw new Error(\"non concat dimensions must match\");var d=l.length,m=(0,a.getChannels)(\"coords\",d),y=(0,o.getCoordsDataType)(d),g=(0,a.unpackFromChannel)(),b=r.map((function(t){return t.dims})),v=(0,o.getGlChannels)(d),w=new Array(b.length-1);w[0]=b[0][u];for(var _=1;_<w.length;_++)w[_]=w[_-1]+b[_][u];for(var x=v[u],k=v.slice(-2),E=v.join(),S=\"if (\".concat(x,\" < \").concat(w[0],\") {\\n        return getChannel(\\n            getX0(\").concat(E,\"), vec2(\").concat(k.join(),\"));\\n        }\"),T=1;T<w.length;T++){var A=w[T-1];S+=\"\\n            if (\".concat(x,\" < \").concat(w[T],\"  && \").concat(x,\" >= \").concat(w[T-1],\") {\\n              return getChannel(\\n                getX\").concat(T,\"(\").concat(s(v,x,A),\"),\\n                vec2(\").concat(s(k,x,A),\"));\\n            }\")}var D=w.length,O=w[w.length-1];S+=\"\\n            return getChannel(\\n              getX\".concat(D,\"(\").concat(s(v,x,O),\"),\\n              vec2(\").concat(s(k,x,O),\"));\");var I=(0,n.getGlsl)(t.session.backend.glContext.version),P=\"\\n          \".concat(g,\"\\n          float getValue(\").concat(v.map((function(t){return\"int \"+t})),\") {\\n            \").concat(S,\"\\n          }\\n\\n          void main() {\\n            \").concat(y,\" coords = getOutputCoords();\\n            int lastDim = coords.\").concat(v[d-1],\";\\n            coords.\").concat(v[d-1],\" = coords.\").concat(v[d-2],\";\\n            coords.\").concat(v[d-2],\" = lastDim;\\n\\n            vec4 result = vec4(getValue(\").concat(m,\"), 0., 0., 0.);\\n\\n            \").concat(m[d-1],\" = \").concat(m[d-1],\" + 1;\\n            if (\").concat(m[d-1],\" < \").concat(l[d-1],\") {\\n              result.g = getValue(\").concat(m,\");\\n            }\\n\\n            \").concat(m[d-2],\" = \").concat(m[d-2],\" + 1;\\n            if (\").concat(m[d-2],\" < \").concat(l[d-2],\") {\\n              result.a = getValue(\").concat(m,\");\\n            }\\n\\n            \").concat(m[d-1],\" = \").concat(m[d-1],\" - 1;\\n            if (\").concat(m[d-2],\" < \").concat(l[d-2],\" &&\\n                \").concat(m[d-1],\" < \").concat(l[d-1],\") {\\n              result.b = getValue(\").concat(m,\");\\n            }\\n            \").concat(I.output,\" = result;\\n          }\\n        \");return Object.assign(Object.assign({},e),{output:{dims:l,type:r[0].type,textureType:i.TextureType.packed},shaderSource:P,hasMain:!0})}(t,l,e,r.axis)}})};var s=function(t,e,r){var n=t.indexOf(e);return t.map((function(t,e){return e===n?\"\".concat(t,\" - \").concat(r):t})).join()}},6668:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseConcatAttributes=e.concat=void 0;var n=r(4910),i=r(5639),o=r(4595);e.concat=function(t,e,r){return f(e),t.session.pack&&e[0].dims.length>1?[t.run((0,o.createPackedConcatProgramInfoLoader)(t,e,r),e)]:[t.run(a(t,e,r),e)]};var a=function(t,e,r){var n,o,a=(n=e.length,o=r.cacheKey,{name:\"Concat\",inputNames:Array.from({length:n},(function(t,e){return\"X\".concat(e)})),inputTypes:Array(n).fill(i.TextureType.unpacked),cacheHint:o});return Object.assign(Object.assign({},a),{get:function(){return function(t,e,r,n){var o,a=r[0].dims.slice();if(n>=a.length||n<-1*a.length)throw new Error(\"axis specified for concat doesn't match input dimensionality\");n<0&&(n=a.length+n);for(var f=a.slice(0),h=1;h<r.length;h++)for(var p=r[h].dims.slice(),d=0;d<a.length;d++)if(d===n)f[n]+=p[d];else if(a[d]!==p[d])throw new Error(\"non concat dimensions must match\");for(var m=f.length,y=new Array(r.length),g=0,b=0;b<y.length;++b)g+=r[b].dims[n],y[b]=g;o=r.length<5?s(y):u(y);var v=\"\\n        \".concat(c(r.length,m),\"\\n        \").concat(l(y),\"\\n        \").concat(o,\"\\n        float process(int indices[\").concat(m,\"]) {\\n          int textureIndex = getTextureWhereDataResides (indices[\").concat(n,\"]);\\n\\n          if(textureIndex != 0) {\\n            indices[\").concat(n,\"] = indices[\").concat(n,\"] - int(getSizeInConcatAxisValueFromIndex(textureIndex-int(1)));\\n          }\\n\\n          return fetchDataFromCorrectTexture(textureIndex, indices);\\n        }\");return Object.assign(Object.assign({},e),{output:{dims:f,type:r[0].type,textureType:i.TextureType.unpacked},shaderSource:v})}(0,a,e,r.axis)}})},s=function(t){return\"int getTextureWhereDataResides(int index) {\\n      \".concat(t.map((function(t,e){return\"if(index<\".concat(t,\") {return \").concat(e,\";}\\n\")})).join(\"\"),\"\\n    }\")},u=function(t){return s(t)},c=function(t,e){for(var r=[\"float fetchDataFromCorrectTexture(int textureIndex, int indices[\".concat(e,\"]) {\")],n=0;n<t;++n)0===n?r.push(\"\\tif (textureIndex == \".concat(n,\") { return _X\").concat(n,\"(indices); }\")):n===t-1?r.push(\"\\telse { return _X\".concat(n,\"(indices); }\")):r.push(\"\\telse if (textureIndex == \".concat(n,\") { return _X\").concat(n,\"(indices); }\"));return r.push(\"\\t}\"),r.join(\"\\n\")},l=function(t){for(var e=[\"int getSizeInConcatAxisValueFromIndex(int index) {\"],r=0;r<t.length;++r)0===r?e.push(\"\\tif (index == \".concat(r,\") { return \").concat(t[r],\"; }\")):r===t.length-1?e.push(\"\\telse { return \".concat(t[r],\"; }\")):e.push(\"\\telse if (index == \".concat(r,\") { return \").concat(t[r],\"; }\"));return e.push(\"\\t}\"),e.join(\"\\n\")};e.parseConcatAttributes=function(t){return(0,n.createAttributeWithCacheKey)({axis:t.attributes.getInt(\"axis\")})};var f=function(t){if(!t||t.length<1)throw new Error(\"too few inputs\");var e=t[0].type,r=t[0].dims.length;if(\"string\"===e)throw new Error(\"string tensor is not supported yet\");var n,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.type!==e)throw new Error(\"input tensors should be one type\");if(o.dims.length!==r)throw new Error(\"input tensors should have the same shape\")}}catch(t){i.e(t)}finally{i.f()}}},7825:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createUnpackedGroupedConvProgramInfoLoader=void 0;var n=r(1315),i=r(6757),o=r(5639),a=r(9754),s=r(2150);e.createUnpackedGroupedConvProgramInfoLoader=function(t,e,r){var u,c,l=(u=e.length>2,c=r.cacheKey,{name:\"GroupedConv\",inputNames:u?[\"X\",\"W\",\"Bias\"]:[\"X\",\"W\"],inputTypes:u?[o.TextureType.unpacked,o.TextureType.unpacked,o.TextureType.unpacked]:[o.TextureType.unpacked,o.TextureType.unpacked],cacheHint:c});return Object.assign(Object.assign({},l),{get:function(){return function(t,e,r,u){var c=e.length>2?\"value += getBias(output_channel);\":\"\",l=e[0].dims.slice(),f=e[1].dims.slice(),h=f[0]/u.group;n.Logger.verbose(\"GroupedConv\",\"autpPad:\".concat(u.autoPad,\", dilations:\").concat(u.dilations,\", group:\").concat(u.group,\", kernelShape:\").concat(u.kernelShape,\", pads:\").concat(u.pads,\", strides:\").concat(u.strides));var p=(0,a.calculateOutputShape)(l,f,u.dilations,u.pads,u.strides),d=(0,i.getGlsl)(t.session.backend.glContext.version),m=(0,s.getActivationSnippet)(u),y=m.activationFunction,g=m.applyActivation,b=\"\\n  const ivec2 strides = ivec2(\".concat(u.strides[0],\", \").concat(u.strides[1],\");\\n  const ivec2 pads = ivec2(\").concat(u.pads[0],\", \").concat(u.pads[1],\");\\n  \").concat(y,\"\\n  void main() {\\n    ivec4 coords = getOutputCoords();\\n    int batch = coords.x;\\n    int output_channel = coords.y;\\n    ivec2 xRCCorner = coords.zw * strides - pads;\\n    int group_id = output_channel / \").concat(h,\";\\n\\n    float value = 0.0;\\n    for (int wInChannel = 0; wInChannel < \").concat(f[1],\"; wInChannel++) {\\n      int input_channel = group_id * \").concat(f[1],\" + wInChannel;\\n      for (int wHeight = 0; wHeight < \").concat(f[2],\"; wHeight++) {\\n        int xHeight = xRCCorner.x + wHeight * \").concat(u.dilations[0],\";\\n\\n        if (xHeight < 0 || xHeight >= \").concat(l[2],\") {\\n          continue;\\n        }\\n\\n        for (int wWidth = 0; wWidth < \").concat(f[3],\"; wWidth++) {\\n          int xWidth = xRCCorner.y + wWidth * \").concat(u.dilations[1],\";\\n          if (xWidth < 0 || xWidth >= \").concat(l[3],\") {\\n            continue;\\n          }\\n\\n          float xVal = getX(batch, input_channel, xWidth, xHeight);\\n          float wVal = getW(output_channel, wInChannel, wWidth, wHeight);\\n          value += xVal*wVal;\\n        }\\n      }\\n    }\\n    \").concat(c,\"\\n    \").concat(g,\"\\n    \").concat(d.output,\" = vec4(value, .0, .0, .0);\\n  }\\n\");return Object.assign(Object.assign({},r),{output:{dims:p,type:e[0].type,textureType:o.TextureType.unpacked},shaderSource:b,hasMain:!0})}(t,e,l,r)}})}},7708:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.conv2DPacked=e.conv2DPackedPointwise=void 0;var n=r(9754),i=r(5950),o=r(5632);e.conv2DPackedPointwise=function(t,e,r){var i=e[0].dims,a=e[1].dims,s=(0,n.calculateOutputShape)(i,a,r.dilations,r.pads,r.strides),u=t.reshapePacked(e[0],[i[1],i[2]*i[3]]),c=t.reshapePacked(e[1],[a[0],a[1]]),l=e.length>2?[c,u,e[2]]:[c,u],f=t.run((0,o.createPackedMatmulProgramInfoLoader)(t,l,r),l);return t.reshapePacked(f,s)},e.conv2DPacked=function(t,e,r){var a=e[0].dims,s=e[1].dims,u=(0,n.calculateOutputShape)(a,s,r.dilations,r.pads,r.strides),c=t.run((0,i.createPackedIm2ColProgramInfoLoader)(t,e[0],e[1],u,r),[e[0]]),l=t.reshapePacked(e[1],[s[0],s[1]*s[2]*s[3]]),f=3===e.length?[l,c,e[2]]:[l,c],h=t.run((0,o.createPackedMatmulProgramInfoLoader)(t,f,r),f);return t.reshapePacked(h,u)}},5042:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseConvTransposeAttributes=e.convTranspose=void 0;var n=r(4910),i=r(6757),o=r(5639),a=r(2150),s=function(t,e,r,n,i,o){return(t-1)*e+r+(n-1)*i+1-o},u=function(t,e,r,n,i){var o=Math.floor(t/2);\"SAME_UPPER\"===e?(r[n]=o,r[i]=t-o):\"SAME_LOWER\"===e&&(r[n]=t-o,r[i]=o)};e.convTranspose=function(t,e,r){return h(e,r),c(t,e,r)};var c=function(t,e,r){var n=f(r,e);return[l(t,e,n)]},l=function(t,e,r){return t.run(function(t,e,r){var n,s,u=(n=e.length>2,s=r.cacheKey,{name:\"ConvTranspose\",inputNames:n?[\"X\",\"W\",\"B\"]:[\"X\",\"W\"],inputTypes:n?[o.TextureType.unpacked,o.TextureType.unpacked,o.TextureType.unpacked]:[o.TextureType.unpacked,o.TextureType.unpacked],cacheHint:s});return Object.assign(Object.assign({},u),{get:function(){return function(t,e,r,n){var s=e.length>2?\"getB(output_channel)\":\"0.0\",u=e[0].dims,c=e[1].dims,l=c[1],f=c[0]/n.group,h=[e[0].dims[0],e[1].dims[1]*n.group].concat(_toConsumableArray(n.outputShape)),p=(0,i.getGlsl)(t.session.backend.glContext.version),d=(0,a.getActivationSnippet)(n),m=d.activationFunction,y=d.applyActivation,g=\"\\n  const ivec2 strides = ivec2(\".concat(n.strides[0],\", \").concat(n.strides[1],\");\\n  const ivec2 pads = ivec2(\").concat(n.pads[0],\", \").concat(n.pads[1],\");\\n  \").concat(m,\"\\n  void main() {\\n    ivec4 coords = getOutputCoords();\\n    int batch = coords.x;\\n    int output_channel = coords.y;\\n\\n    ivec2 loc = coords.zw + pads;\\n\\n    int group_id = output_channel / \").concat(l,\";\\n    int wOutChannel = output_channel - group_id * \").concat(l,\";\\n\\n    float value = \").concat(s,\";\\n    for (int inChannelOffset = 0; inChannelOffset < \").concat(f,\"; inChannelOffset++) {\\n      int input_channel = group_id * \").concat(f,\" + inChannelOffset;\\n      for (int wWOff = 0; wWOff < \").concat(c[2],\"; wWOff++) {\\n        for (int wHOff = 0; wHOff < \").concat(c[3],\"; wHOff++) {\\n          ivec2 wOff = ivec2(wWOff * \").concat(n.dilations[0],\", wHOff * \").concat(n.dilations[1],\");\\n          ivec2 wLoc = loc - wOff;\\n          ivec2 wLocIn = wLoc / strides;\\n          if (\\n            wLocIn * strides == wLoc &&\\n            wLocIn.x >= 0 && wLocIn.x < \").concat(u[2],\" &&\\n            wLocIn.y >= 0 && wLocIn.y < \").concat(u[3],\"\\n          ) {\\n            float xVal = getX(batch, input_channel, wLocIn.y, wLocIn.x);\\n            float wVal = getW(input_channel, wOutChannel, wHOff, wWOff);\\n            value += xVal * wVal;\\n          }\\n        }\\n      }\\n    }\\n    \").concat(y,\"\\n    \").concat(p.output,\" = vec4(value, .0, .0, .0);\\n  }\\n\");return Object.assign(Object.assign({},r),{output:{dims:h,type:e[0].type,textureType:o.TextureType.unpacked},shaderSource:g,hasMain:!0})}(t,e,u,r)}})}(t,e,r),e)},f=function(t,e){var r=t.kernelShape.slice();if(0===t.kernelShape.length)for(var n=2;n<e[1].dims.length;++n)r.push(e[1].dims[n]);var i=t.pads.slice(),o=t.outputShape.slice();!function(t,e,r,n,i,o,a,c){for(var l=t.length-2,f=0===c.length,h=0;h<l;++h){var p=f?t[h+2]*o[h]:c[h],d=s(t[h+2],o[h],i[h],e[h],r[h],p);u(d,n,i,h,h+l),f&&c.push(o[h]*(t[h+2]-1)+a[h]+(e[h]-1)*r[h]+1-i[h]-i[h+l])}}(e[0].dims,r,t.dilations,t.autoPad,i,t.strides,t.outputPadding,o);var a=Object.assign({},t);return Object.assign(a,{kernelShape:r,pads:i,outputShape:o,cacheKey:t.cacheKey}),a};e.parseConvTransposeAttributes=function(t){var e=t.attributes,r=(0,a.parseInternalActivationAttributes)(e),i=e.getString(\"auto_pad\",\"NOTSET\"),o=e.getInts(\"dilations\",[1,1]),s=e.getInt(\"group\",1),u=e.getInts(\"kernel_shape\",[]),c=e.getInts(\"output_padding\",[0,0]),l=e.getInts(\"output_shape\",[]),f=e.getInts(\"pads\",[0,0,0,0]),h=e.getInts(\"strides\",[1,1]);return(0,n.createAttributeWithCacheKey)(Object.assign({autoPad:i,dilations:o,group:s,kernelShape:u,outputPadding:c,outputShape:l,pads:f,strides:h},r))};var h=function(t,e){if(!t||2!==t.length&&3!==t.length)throw new Error(\"Conv requires 2 or 3 inputs\");if(4!==t[0].dims.length||4!==t[1].dims.length)throw new Error(\"currently only support 2-dimensional conv\");if(t[0].dims[1]!==t[1].dims[0])throw new Error(\"FILTER_IN_CHANNEL should be equal to DATA_CHANNEL\");var r=t[1].dims[1]*e.group;if(3===t.length&&(1!==t[2].dims.length||t[2].dims[0]!==r))throw new Error(\"invalid bias\");var n=t[0].dims.length-2;if(e.dilations.length!==n)throw new Error(\"dilations should be \".concat(n,\"D\"));if(e.strides.length!==n)throw new Error(\"strides should be \".concat(n,\"D\"));if(e.pads.length!==2*n)throw new Error(\"pads should be \".concat(2*n,\"D\"));if(e.outputPadding.length!==n)throw new Error(\"output_padding should be \".concat(n,\"D\"));if(0!==e.kernelShape.length&&e.kernelShape.length!==t[1].dims.length-2)throw new Error(\"invalid kernel shape\");if(0!==e.outputShape.length&&e.outputShape.length!==t[0].dims.length-2)throw new Error(\"invalid output shape\");if(\"float32\"!==t[0].type||\"float32\"!==t[1].type)throw new Error(\"ConvTranspose input(X,W) should be float tensor\");if(3===t.length&&\"float32\"!==t[2].type)throw new Error(\"ConvTranspose input(bias) should be float tensor\")}},9754:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseConvAttributes=e.conv=e.calculateOutputShape=void 0;var n=r(4910),i=r(7273),o=r(7825),a=r(7708),s=r(3281),u=r(2150),c=r(1625),l=r(8276);e.calculateOutputShape=function(t,e,r,n,i){var o,a=t[0],s=t.slice(2),u=s.length,c=e[0],l=e.slice(2).map((function(t,e){return t+(t-1)*(r[e]-1)})),f=s.map((function(t,e){return t+n[e]+n[e+u]})).map((function(t,e){return Math.floor((t-l[e]+i[e])/i[e])}));return(o=[a,c]).concat.apply(o,_toConsumableArray(f))},e.conv=function(t,e,r){return m(e,r),f(t,e,r)};var f=function(t,e,r){var n=d(r,e),i=t.session.pack,s=1===n.kernelShape[0]&&1===n.kernelShape[1];return n.group>1?[t.run((0,o.createUnpackedGroupedConvProgramInfoLoader)(t,e,n),e)]:s&&i?[h(t,e,n)]:i&&4===e[0].dims.length&&1===e[0].dims[0]&&!s?[(0,a.conv2DPacked)(t,e,n)]:[p(t,e,n)]},h=function(t,r,n){var i=r[0].dims,o=r[1].dims,a=(0,e.calculateOutputShape)(i,o,n.dilations,n.pads,n.strides),s=t.reshapeUnpacked(r[0],[i[1],i[2]*i[3]]),u=t.reshapeUnpacked(r[1],[o[0],o[1]]),c=r.length>2?[u,s,r[2]]:[u,s],f=t.run((0,l.createMatmulProgramInfoLoader)(c,n),c);return t.reshapeUnpacked(f,a)},p=function(t,r,n){var i=r[0].dims,o=r[1].dims,a=(0,e.calculateOutputShape)(i,o,n.dilations,n.pads,n.strides),u=t.run((0,c.createIm2ColProgramInfoLoader)(t,r[0],r[1],a,n),[r[0]]),l=3===r.length?[u,r[1],r[2]]:[u,r[1]];return t.run((0,s.createDotProductProgramInfoLoader)(t,r,a,n),l)},d=function(t,e){var r=t.kernelShape.slice();if(0===t.kernelShape.length)for(var n=2;n<e[1].dims.length;++n)r.push(e[1].dims[n]);var o=t.pads.slice();i.PoolConvUtil.adjustPadsBasedOnAutoPad(e[0].dims,t.strides,t.dilations,r,o,t.autoPad);var a=Object.assign({},t);return Object.assign(a,{kernelShape:r,pads:o,cacheKey:t.cacheKey}),a};e.parseConvAttributes=function(t){var e=t.attributes,r=(0,u.parseInternalActivationAttributes)(e),i=e.getString(\"auto_pad\",\"NOTSET\"),o=e.getInts(\"dilations\",[1,1]),a=e.getInt(\"group\",1),s=e.getInts(\"kernel_shape\",[]),c=e.getInts(\"pads\",[0,0,0,0]),l=e.getInts(\"strides\",[1,1]);return(0,n.createAttributeWithCacheKey)(Object.assign({autoPad:i,dilations:o,group:a,kernelShape:s,pads:c,strides:l},r))};var m=function(t,e){if(!t||2!==t.length&&3!==t.length)throw new Error(\"Conv requires 2 or 3 inputs\");if(4!==t[0].dims.length||4!==t[1].dims.length)throw new Error(\"currently only support 2-dimensional conv\");if(t[0].dims[1]!==t[1].dims[1]*e.group)throw new Error(\"FILTER_IN_CHANNEL should be equal to DATA_CHANNEL\");if(3===t.length&&(1!==t[2].dims.length||t[1].dims[0]!==t[2].dims[0]))throw new Error(\"invalid bias\");var r=t[0].dims.length-2;if(e.dilations.length!==r)throw new Error(\"dilations should be \".concat(r,\"D\"));if(e.strides.length!==r)throw new Error(\"strides should be \".concat(r,\"D\"));if(e.pads.length!==2*r)throw new Error(\"pads should be \".concat(2*r,\"D\"));if(0!==e.kernelShape.length&&e.kernelShape.length!==t[1].dims.length-2)throw new Error(\"invalid kernel shape\");if(\"float32\"!==t[0].type||\"float32\"!==t[1].type)throw new Error(\"Conv input(X,W) should be float tensor\");if(3===t.length&&\"float32\"!==t[2].type)throw new Error(\"Conv input(bias) should be float tensor\")}},6742:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseDepthToSpaceAttributes=e.depthToSpace=void 0;var n=r(5707);e.depthToSpace=function(t,e,r){i(e);var o=r.blocksize,a=o*o,s=\"DCR\"===r.mode?[0,3,4,1,5,2]:[0,1,4,2,5,3],u=\"DCR\"===r.mode?[e[0].dims[0],o,o,e[0].dims[1]/a,e[0].dims[2],e[0].dims[3]]:[e[0].dims[0],e[0].dims[1]/a,o,o,e[0].dims[2],e[0].dims[3]],c=t.reshapeUnpacked(e[0],u),l={perm:s,cacheKey:\"\".concat(s)},f=_slicedToArray((0,n.transpose)(t,[c],l),1)[0],h=[e[0].dims[0],e[0].dims[1]/a,e[0].dims[2]*o,e[0].dims[3]*o];return[t.reshapeUnpacked(f,h)]},e.parseDepthToSpaceAttributes=function(t){var e=t.attributes.getInt(\"blocksize\");if(e<1)throw new Error(\"blocksize must be >= 1, but got : \".concat(e,\" for DepthToSpace\"));var r=t.attributes.getString(\"mode\",\"DCR\");if(\"DCR\"!==r&&\"CRD\"!==r)throw new Error(\"unrecognized mode: \".concat(r,\" for DepthToSpace\"));return{mode:r,blocksize:e}};var i=function(t){if(1!==t.length)throw new Error(\"DepthToSpace expect 1 inputs, but got \".concat(t.length));if(\"string\"===t[0].type||4!==t[0].dims.length)throw new TypeError(\"DepthToSpace input should be a 4-D numeric tensor\")}},3281:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createDotProductProgramInfoLoader=void 0;var n=r(7273),i=r(6757),o=r(5639),a=r(2150),s=r(1625);e.createDotProductProgramInfoLoader=function(t,e,r,u){var c=function(t,e){return{name:\"ConvDotProduct\",inputNames:t?[\"Im2Col\",\"K\",\"B\"]:[\"Im2Col\",\"K\"],inputTypes:t?[o.TextureType.unpacked,o.TextureType.packedLastDimension,o.TextureType.unpacked]:[o.TextureType.unpacked,o.TextureType.packedLastDimension],cacheKey:e.activationCacheKey}}(e.length>2,u);return Object.assign(Object.assign({},c),{get:function(){return function(t,e,r,u,c){var l=r[0].dims,f=r[1].dims,h=[f[0],Math.ceil(l[1]*f[2]*f[3]/4)],p=(0,s.calculateIm2ColDims)(l,f,u),d=_slicedToArray(t.calculateTextureWidthAndHeight(h,o.TextureType.packedLastDimension),2),m=d[0],y=d[1],g=n.ShapeUtil.computeStrides(p),b=_slicedToArray(t.calculateTextureWidthAndHeight(p,o.TextureType.packedLastDimension),2),v=b[0],w=b[1],_=u.length,x=r.length<3?\"0.0\":\"_B(b)\",k=Math.ceil(l[1]*f[2]*f[3]/4),E=(0,a.getActivationSnippet)(c),S=E.activationFunction,T=E.applyActivation,A=(0,i.getGlsl)(t.session.backend.glContext.version),D=\"\\n\".concat(S,\"\\nfloat process(int indices[\").concat(_,\"]) {\\n  int b[1];\\n  b[0] = indices[1];\\n  int im2col[4];\\n  im2col[0] = indices[0];\\n  im2col[1] = indices[2];\\n  im2col[2] = indices[3];\\n  int im2colOffset = im2col[0] * \").concat(g[0],\" + im2col[1] * \").concat(g[1],\" + im2col[2] * \").concat(g[2],\";\\n  int kernelOffset = indices[1] * \").concat(h[1],\";\\n  float value = \").concat(x,\";\\n  for (int i = 0; i < \").concat(k,\"; ++i) {\\n    vec2 im2colCoords = offsetToCoords(im2colOffset, \").concat(v,\", \").concat(w,\");\\n    vec2 kernelCoords = offsetToCoords(kernelOffset, \").concat(m,\", \").concat(y,\");\\n    value += dot(\").concat(A.texture2D,\"(Im2Col, im2colCoords), \").concat(A.texture2D,\"(K, kernelCoords));\\n    ++im2colOffset;\\n    ++kernelOffset;\\n  }\\n  \").concat(T,\"\\n  return value;\\n}\");return Object.assign(Object.assign({},e),{output:{dims:u,type:r[0].type,textureType:o.TextureType.unpacked},shaderSource:D})}(t,c,e,r,u)}})}},4125:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseFlattenAttributes=e.flatten=void 0;var n=r(7273);e.flatten=function(t,e,r){i(e,r);var o=n.ShapeUtil.flattenShape(e[0].dims,r);return[t.reshapeUnpacked(e[0],o)]},e.parseFlattenAttributes=function(t){return t.attributes.getInt(\"axis\",1)};var i=function(t,e){if(!t||1!==t.length)throw new Error(\"Flatten requires 1 input.\");var r=t[0].dims.length;if(0===r)throw new Error(\"scalar tensor is not supported.\");if(e<-r||e>r)throw new Error(\"Invalid axis\");if(\"string\"===t[0].type)throw new Error(\"string tensor is not supported.\")}},2150:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseInternalActivationAttributes=e.getActivationSnippet=void 0;var n=r(7273),i=r(9087);e.getActivationSnippet=function(t){var e;switch(t.activation){case\"Relu\":e=(0,i.glslRelu)();break;case\"Sigmoid\":e=(0,i.glslSigmoid)();break;case\"Clip\":e=(0,i.glslClip)(t.clipMin,t.clipMax);break;default:return{activationFunction:\"\",applyActivation:\"\"}}var r=e.name;return{activationFunction:e.body,applyActivation:\"value = \".concat(r,\"_(value);\")}},e.parseInternalActivationAttributes=function(t){var e=t.getString(\"activation\",\"\");if(\"Clip\"===e){var r=_slicedToArray(t.getFloats(\"activation_params\",[n.MIN_CLIP,n.MAX_CLIP]),2),i=r[0],o=r[1];return{activation:e,clipMax:o,clipMin:i,activationCacheKey:\"\".concat(e,\":\").concat(i,\",\").concat(o)}}return{activation:e,activationCacheKey:e}}},6149:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseGatherAttributes=e.gather=void 0;var n=r(4910),i=r(6145),o=r(7273),a=r(5639);e.gather=function(t,e,r){return c(e,r.axis),[t.run(u(t,e,r),e)]},e.parseGatherAttributes=function(t){return(0,n.createAttributeWithCacheKey)({axis:t.attributes.getInt(\"axis\",0)})};var s={name:\"Gather\",inputNames:[\"A\",\"B\"],inputTypes:[a.TextureType.unpacked,a.TextureType.unpacked]},u=function(t,e,r){var n=Object.assign(Object.assign({},s),{cacheHint:r.cacheKey});return Object.assign(Object.assign({},n),{get:function(){return function(t,e,r,n){var i=r[0].dims.slice(),s=r[1].dims.slice(),u=new Array(i.length+s.length-1);n=o.ShapeUtil.normalizeAxis(n,i.length);for(var c=[],l=0;l<u.length;l++)l<n?(u[l]=i[l],c.push(\"inputIdx[\".concat(l,\"] = outputIdx[\").concat(l,\"];\"))):l<n+s.length?(u[l]=s[l-n],c.push(\"indexDataIdx[\".concat(l-n,\"] = outputIdx[\").concat(l,\"];\"))):(u[l]=i[l-s.length+1],c.push(\"inputIdx[\".concat(l-s.length+1,\"] = outputIdx[\").concat(l,\"];\")));var f=\"\\n      float process(int outputIdx[\".concat(u.length||1,\"]) {\\n        int inputIdx[\").concat(i.length,\"];\\n        int indexDataIdx[\").concat(s.length||1,\"];\\n        indexDataIdx[0] = 0;\\n        \").concat(c.join(\"\\n        \"),\"\\n        int idx = int(_B(indexDataIdx));\\n        inputIdx[\").concat(n,\"] = idx < 0 ? idx + \").concat(i[n],\" : idx;\\n        return _A(inputIdx);\\n      }\");return Object.assign(Object.assign({},e),{output:{dims:u,type:r[0].type,textureType:a.TextureType.unpacked},shaderSource:f})}(0,n,e,r.axis)}})},c=function(t,e){if(!t||2!==t.length)throw new Error(\"Gather requires 2 inputs.\");var r=t[0].dims.length;if(r<1)throw new Error(\"Invalid input shape.\");if(e<-r||e>r-1)throw new Error(\"Invalid axis.\");if(-1===i.NUMBER_TYPES.indexOf(t[0].type))throw new Error(\"Invaid input type.\");if(\"int32\"!==t[1].type&&\"int16\"!==t[1].type)throw new Error(\"Invaid input type.\")}},5378:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseGemmAttributesV11=e.parseGemmAttributesV7=e.gemm=void 0;var n=r(4910),i=r(7273),o=r(5639);e.gemm=function(t,e,r){return c(e,r),[t.run(s(e,r),e)]};var a=function(t,e){var r=0!==t.attributes.getInt(\"transA\",0),i=0!==t.attributes.getInt(\"transB\",0),o=t.attributes.getFloat(\"alpha\",1),a=t.attributes.getFloat(\"beta\",1);return(0,n.createAttributeWithCacheKey)({transA:r,transB:i,alpha:o,beta:a,isOptionalC:e})};e.parseGemmAttributesV7=function(t){return a(t,!1)},e.parseGemmAttributesV11=function(t){return a(t,!0)};var s=function(t,e){var r={name:\"Gemm\",inputNames:3===t.length?[\"A\",\"B\",\"C\"]:[\"A\",\"B\"],inputTypes:3===t.length?[o.TextureType.unpacked,o.TextureType.unpacked,o.TextureType.unpacked]:[o.TextureType.unpacked,o.TextureType.unpacked],key:e.cacheKey};return Object.assign(Object.assign({},r),{get:function(){return u(r,t,e)}})},u=function(t,e,r){var n=e[0].dims.slice(),a=e[1].dims.slice(),s=_slicedToArray(i.GemmUtil.getShapeOfGemmResult(n,r.transA,a,r.transB,3===e.length?e[2].dims:void 0),2),u=s[0],c=s[1],l=[u,c];if(!l)throw new Error(\"Can't use gemm on the given tensors\");var f=n[n.length-1],h=\"\";r.transA&&(f=n[0]),r.transA&&r.transB?h=\"value += _A_T(a) * _B_T(b);\":r.transA&&!r.transB?h=\"value += _A_T(a) * _B(b);\":!r.transA&&r.transB?h=\"value += _A(a) * _B_T(b);\":r.transA||r.transB||(h=\"value += _A(a) * _B(b);\");var p=l.length,d=\"\\n      float process(int indices[\".concat(p,\"]) {\\n          int a[\").concat(p,\"];\\n          int b[\").concat(p,\"];\\n          \").concat(3===e.length?\"int c[\".concat(e[2].dims.length,\"];\"):\"\",\"\\n\\n          copyVec(indices, a);\\n          copyVec(indices, b);\\n          \").concat(3===e.length?\"bcastIndices_C(indices, c);\":\"\",\"\\n\\n          float value = 0.0;\\n          for (int k=0; k<\").concat(f,\"; ++k) {\\n              a[\").concat(p-1,\"] = k;\\n              b[\").concat(p-2,\"] = k;\\n              \").concat(h,\"\\n          }\\n\\n          value = value * alpha;\\n          \").concat(3===e.length?\"value += beta * _C(c);\":\"\",\"\\n          return value;\\n      }\");return Object.assign(Object.assign({},t),{output:{dims:l,type:e[0].type,textureType:o.TextureType.unpacked},variables:[{name:\"alpha\",type:\"float\",data:r.alpha},{name:\"beta\",type:\"float\",data:r.beta}],shaderSource:d})},c=function(t,e){if(!t)throw new Error(\"Input is missing\");if(e.isOptionalC&&(t.length<2||t.length>3))throw new Error(\"Invaid input shape.\");if(!e.isOptionalC&&3!==t.length)throw new Error(\"Gemm requires 3 inputs\");if(3===t.length&&1!==t[2].dims.length&&2!==t[2].dims.length)throw new Error(\"Invalid input shape of C\");if(\"float32\"!==t[0].type&&\"float64\"!==t[0].type||\"float32\"!==t[1].type&&\"float64\"!==t[1].type||3===t.length&&\"float32\"!==t[2].type&&\"float64\"!==t[2].type)throw new Error(\"Invalid input type.\");if(t[0].type!==t[1].type||3===t.length&&t[0].type!==t[2].type)throw new Error(\"Input types are mismatched\")}},5950:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createPackedIm2ColProgramInfoLoader=void 0;var n=r(6757),i=r(5639),o=r(5614);e.createPackedIm2ColProgramInfoLoader=function(t,e,r,a,s){var u,c=(u=s.cacheKey,{name:\"Im2Col (packed)\",inputNames:[\"A\"],inputTypes:[i.TextureType.packed],cacheHint:u});return Object.assign(Object.assign({},c),{get:function(){return function(t,e,r,a,s,u){for(var c=r.dims,l=a.dims,f=s.length,h=[l[1]*l[2]*l[3],s[2]*s[3]],p=l[2]*l[3],d=(0,o.unpackFromChannel)(),m=(0,n.getGlsl)(t.session.backend.glContext.version),y=\"\",g=0;g<=1;g++)for(var b=0;b<=1;b++)y+=\"\\n            blockIndex = rc.x + \".concat(b,\";\\n            pos = rc.y + \").concat(g,\";\\n\\n            if(blockIndex < \").concat(h[1],\" && pos < \").concat(h[0],\") {\\n              offsetY = int(blockIndex / (\").concat(s[f-1],\")) * \").concat(u.strides[0],\" -\\n                \").concat(u.pads[0],\";\\n              d0 = offsetY + \").concat(u.dilations[0],\" * (imod(pos, \").concat(p,\") / \").concat(l[2],\");\\n\\n              if(d0 < \").concat(c[2],\" && d0 >= 0) {\\n                offsetX = imod(blockIndex, \").concat(s[f-1],\") * \").concat(u.strides[1],\" -\\n                  \").concat(u.pads[1],\";\\n                d1 = offsetX + \").concat(u.dilations[1],\" * imod(imod(pos, \").concat(p,\"), \").concat(l[2],\");\\n\\n                if(d1 < \").concat(c[3],\" && d1 >= 0) {\\n\\n                  ch = int(float(pos)/ \").concat(p,\".);\\n                    innerDims = vec2(d0, d1);\\n                    result[\").concat(2*g+b,\"] = getChannel(\\n                      getA(0, ch, int(innerDims.x),\\n                      int(innerDims.y)), innerDims);\\n                }\\n              }\\n            }\\n\\n          \");var v=\"\\n      \".concat(d,\"\\n\\n      void main() {\\n        ivec2 rc = getOutputCoords();\\n          vec4 result = vec4(0.0);\\n          int blockIndex, pos, offsetY, d0, offsetX, d1, ch;\\n          vec2 innerDims;\\n          \").concat(y,\"\\n          \").concat(m.output,\" = result;\\n      }\\n            \");return Object.assign(Object.assign({},e),{output:{dims:h,type:r.type,textureType:i.TextureType.packed},shaderSource:v,hasMain:!0})}(t,c,e,r,a,s)}})}},1625:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.calculateIm2ColDims=e.createIm2ColProgramInfoLoader=void 0;var n=r(5639);e.createIm2ColProgramInfoLoader=function(t,r,i,o,a){var s,u=(s=a.cacheKey,{name:\"Im2Col\",inputNames:[\"X\"],inputTypes:[n.TextureType.unpacked],cacheHint:s});return Object.assign(Object.assign({},u),{get:function(){return function(t,r,i,o,a,s){var u=i.dims,c=o.dims,l=a.length,f=(0,e.calculateIm2ColDims)(u,c,a,4),h=\"\\n        const int XC = \".concat(u[1],\";\\n        const int XH = \").concat(u[2],\";\\n        const int XW = \").concat(u[3],\";\\n        const int KH = \").concat(s.kernelShape[0],\";\\n        const int KW = \").concat(s.kernelShape[1],\";\\n        const int dilationH = \").concat(s.dilations[0],\";\\n        const int dilationW = \").concat(s.dilations[1],\";\\n        const int strideH = \").concat(s.strides[0],\";\\n        const int strideW = \").concat(s.strides[1],\";\\n        const int padH = \").concat(s.pads[0],\";\\n        const int padW = \").concat(s.pads[1],\";\\n        const int KHKW = KH*KW;\\n        const int XCKHKW = XC * KHKW;\\n        const int outputChannels = 4;\\n        vec4 process(int indices[\").concat(l,\"]) {\\n          int b  = indices[0]; // batch size\\n          int oh = indices[1] * strideH - padH; //output height\\n          int ow = indices[2] * strideW - padW; //output width\\n          int p = indices[3] * outputChannels; //patch\\n          vec4 value = vec4(0.0);\\n          for(int i=0; i < outputChannels; ++i) {\\n            if(p < XCKHKW) {\\n              int patchC = p / KHKW;\\n              int patchH = (p - patchC*KHKW) / KW;\\n              int patchW = (p - patchC*KHKW) - patchH * KW;\\n              int xh2 = oh + patchH * dilationH;\\n              int xw2 = ow + patchW * dilationW;\\n              int x[\").concat(u.length,\"];\\n              x[0] = b;\\n              x[1] = patchC;\\n              x[2] = xh2;\\n              x[3] = xw2;\\n              if(xh2 >= 0 &&\\n                  xh2 < XH &&\\n                  xw2 >= 0 &&\\n                  xw2 < XW) {\\n                value[i] = _X(x);\\n              }\\n            }\\n            ++p;\\n          }\\n          return value;\\n        }\\n        \");return Object.assign(Object.assign({},r),{output:{dims:f,type:i.type,textureType:n.TextureType.packedLastDimension},shaderSource:h})}(0,u,r,i,o,a)}})},e.calculateIm2ColDims=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4;return[r[0],r[2],r[3],Math.ceil(t[1]*e[2]*e[3]/n)]}},6981:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseImageScalerAttributes=e.imageScaler=void 0;var n=r(4910),i=r(5639);e.imageScaler=function(t,e,r){return u(e),[t.run(a(t,e,r),e)]},e.parseImageScalerAttributes=function(t){var e=t.attributes.getFloat(\"scale\"),r=t.attributes.getFloats(\"bias\");return(0,n.createAttributeWithCacheKey)({scale:e,bias:r})};var o={name:\"ImageScaler\",inputNames:[\"X\"],inputTypes:[i.TextureType.unpacked]},a=function(t,e,r){var n=Object.assign(Object.assign({},o),{cacheHint:r.cacheKey});return Object.assign(Object.assign({},n),{get:function(){return function(t,e,r,n){var o=r[0].dims.slice(),a=o.length,u=\"\\n      \".concat(s(n.bias.length),\"\\n      float process(int indices[\").concat(a,\"]) {\\n        return _X(indices) * scale + getBias(bias, indices[1]);\\n      }\");return Object.assign(Object.assign({},e),{output:{dims:o,type:r[0].type,textureType:i.TextureType.unpacked},variables:[{name:\"bias\",type:\"float\",arrayLength:n.bias.length,data:n.bias},{name:\"scale\",type:\"float\",data:n.scale}],shaderSource:u})}(0,n,e,r)}})},s=function(t){for(var e=[\"float getBias(float bias[\".concat(t,\"], int channel) {\")],r=0;r<t;++r)0===r?e.push(\"\\tif (channel == \".concat(r,\") { return bias[\").concat(r,\"]; }\")):r===t-1?e.push(\"\\telse { return bias[\".concat(r,\"]; }\")):e.push(\"\\telse if (channel == \".concat(r,\") { return bias[\").concat(r,\"]; }\"));return e.push(\"\\t}\"),e.join(\"\\n\")},u=function(t){if(!t||1!==t.length)throw new Error(\"ImageScaler requires 1 input.\");if(4!==t[0].dims.length)throw new Error(\"Invalid input shape.\");if(\"float32\"!==t[0].type&&\"float64\"!==t[0].type)throw new Error(\"Invalid input type.\")}},7413:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseInstanceNormalizationAttributes=e.instanceNormalization=void 0;var n=r(6757),i=r(5639);e.instanceNormalization=function(t,e,r){c(e);var n=t.run(a(e[0]),e);return[t.run(u(t,e[0],r,n.dims),[e[0],n,e[1],e[2]])]},e.parseInstanceNormalizationAttributes=function(t){return t.attributes.getFloat(\"epsilon\",1e-5)};var o={name:\"InstanceNormalization_MeanAndVariance\",inputNames:[\"X\"],inputTypes:[i.TextureType.unpacked]},a=function(t){return Object.assign(Object.assign({},o),{get:function(){return function(t,e){var r=e.dims.slice(),n=r[1],o=r[2]*r[3],a=[r[0],n],s=\"\\n      vec4 process(int[2] indices) {\\n        vec4 v = vec4(0.0);\\n        int a[4];\\n        a[0] = indices[0];\\n        a[1] = indices[1];\\n        float temp = 0.0;\\n        for(int a2=0; a2<\".concat(r[2],\"; a2++) {\\n          a[2] = a2;\\n          for(int a3=0; a3<\").concat(r[3],\"; a3++) {\\n            a[3] = a3;\\n            float x = _X(a);\\n            temp += x;\\n          }\\n        }\\n        float mean = temp / float(\").concat(o,\");\\n        temp = 0.0;\\n        for(int a2=0; a2<\").concat(r[2],\"; a2++) {\\n          a[2] = a2;\\n          for(int a3=0; a3<\").concat(r[3],\"; a3++) {\\n            a[3] = a3;\\n            float x = _X(a);\\n            temp += (x - mean) * (x - mean);\\n          }\\n        }\\n        v.r = mean;\\n        v.g = temp / float(\").concat(o,\");\\n\\n        return v;\\n      }\");return Object.assign(Object.assign({},t),{output:{dims:a,type:e.type,textureType:i.TextureType.packedLastDimension},shaderSource:s})}(o,t)}})},s={name:\"InstanceNormalization_ComputeOutput\",inputNames:[\"X\",\"MeanAndVariance\",\"Scale\",\"B\"],inputTypes:[i.TextureType.unpacked,i.TextureType.packedLastDimension,i.TextureType.unpacked,i.TextureType.unpacked]},u=function(t,e,r,o){var a=Object.assign(Object.assign({},s),{cacheHint:\"\".concat(r)});return Object.assign(Object.assign({},a),{get:function(){return function(t,e,r,o,a){var s=(0,n.getGlsl)(t.session.backend.glContext.version),u=_slicedToArray(t.calculateTextureWidthAndHeight(a,i.TextureType.packedLastDimension),2),c=u[0],l=u[1],f=\"\\n      vec4 get_MeanAndVariance(int[2] mv) {\\n        int offset = indicesToOffset_MeanAndVariance(mv);\\n        vec2 coords = offsetToCoords(offset, \".concat(c/4,\", \").concat(l,\");\\n        return \").concat(s.texture2D,\"(MeanAndVariance, coords);\\n      }\\n\\n      float process(int[4] indices) {\\n        int mv[2];\\n        mv[0] = indices[0];\\n        mv[1] = indices[1];\\n        vec4 mean_and_variance = get_MeanAndVariance(mv);\\n        float mean = mean_and_variance.r;\\n        float variance = mean_and_variance.g;\\n\\n        int sb[1];\\n        sb[0] = indices[1];\\n        float scale = _Scale(sb);\\n        float b = _B(sb);\\n\\n        return scale * (_X(indices) - mean) / sqrt(variance + epsilon) + b;\\n      }\");return Object.assign(Object.assign({},e),{output:{dims:r.dims,type:r.type,textureType:i.TextureType.unpacked},variables:[{name:\"epsilon\",type:\"float\",data:o}],shaderSource:f})}(t,a,e,r,o)}})},c=function(t){if(!t||3!==t.length)throw new Error(\"InstanceNormalization requires 3 inputs.\");var e=t[0],r=t[1],n=t[2];if(e.dims.length<3||1!==r.dims.length||1!==n.dims.length)throw new Error(\"Invalid input shape.\");if(r.dims[0]!==e.dims[1]||n.dims[0]!==e.dims[1])throw new Error(\"Input shapes are mismatched.\");if(\"float32\"!==e.type&&\"float64\"!==e.type||\"float32\"!==r.type&&\"float64\"!==r.type||\"float32\"!==n.type&&\"float64\"!==n.type)throw new Error(\"Invalid input type.\");if(4!==t[0].dims.length)throw new Error(\"Only support 4-D input shape.\")}},7006:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createLrnProgramInfoLoader=e.parseLrnAttributes=e.lrn=void 0;var n=r(4910),i=r(5639);e.lrn=function(t,e,r){return s(e),[t.run(a(e,r),e)]},e.parseLrnAttributes=function(t){var e=t.attributes.getFloat(\"alpha\",1e-4),r=t.attributes.getFloat(\"beta\",.75),i=t.attributes.getFloat(\"bias\",1),o=t.attributes.getInt(\"size\");return(0,n.createAttributeWithCacheKey)({alpha:e,beta:r,bias:i,size:o})};var o={name:\"LRN\",inputNames:[\"X\"],inputTypes:[i.TextureType.unpacked]};function a(t,e){return Object.assign(Object.assign({},o),{cacheHint:e.cacheKey,get:function(){return function(t,e){var r=t[0].dims[1],n=t[0].dims.length,a=-Math.floor((e.size-1)/2),s=Math.ceil((e.size-1)/2),u=\"float(\".concat(e.alpha,\") / float(\").concat(e.size,\")\"),c=\"\\n    float process(int indices[\".concat(n,\"]) {\\n        int c = indices[1];\\n        float x = _X(indices);\\n        float square_sum = 0.0;\\n\\n        for (int i = \").concat(a,\"; i <= \").concat(s,\"; i++) {\\n          int idx = c + i;\\n          if (c >= 0 && c < \").concat(r,\") {\\n            indices[1] = idx;\\n            float j = _X(indices);\\n            square_sum += j * j;\\n          }\\n        }\\n        return x / pow(float(\").concat(e.bias,\") + \").concat(u,\" * square_sum, float(\").concat(e.beta,\"));\\n    }\");return Object.assign(Object.assign({},o),{cacheHint:e.cacheKey,output:{dims:t[0].dims,type:t[0].type,textureType:i.TextureType.unpacked},shaderSource:c})}(t,e)}})}e.createLrnProgramInfoLoader=a;var s=function(t){if(!t||1!==t.length)throw new Error(\"LRN requires 1 input.\");if(4!==t[0].dims.length)throw new Error('currently only support LRN for input with \"NCHW\" format');if(\"float32\"!==t[0].type)throw new Error(\"input should be float type\")}},5632:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createPackedMatmulProgramInfoLoader=void 0;var n=r(7273),i=r(6757),o=r(5639),a=r(432),s=r(2150),u=r(8276);e.createPackedMatmulProgramInfoLoader=function(t,e,r){var c,l,f=(c=e.length>2,l=r.activationCacheKey,{name:\"MatMul (packed)\",inputNames:c?[\"A\",\"B\",\"Bias\"]:[\"A\",\"B\"],inputTypes:c?[o.TextureType.packed,o.TextureType.packed,o.TextureType.packed]:[o.TextureType.packed,o.TextureType.packed],cacheHint:l});return Object.assign(Object.assign({},f),{get:function(){return function(t,e,r,c){var l=r.length>2,f=l?\"value += getBiasForMatmul();\":\"\",h=r[0].dims,p=r[1].dims,d=n.BroadcastUtil.calcShape(h,p,!0),m=!n.ShapeUtil.areEqual(r[0].dims,r[1].dims);if(!d)throw new Error(\"Can't use matmul on the given tensors\");var y=h[h.length-1],g=Math.ceil(y/2),b=h.length,v=p.length,w=(0,i.getGlsl)(t.session.backend.glContext.version),_=(0,a.getCoordsDataType)(d.length),x=d.length,k=(0,a.getGlChannels)(),E=(0,s.getActivationSnippet)(c),S=E.activationFunction,T=E.applyActivation,A=l?\"\".concat((0,u.getBiasForMatmul)(_,k,r[2].dims,d,!0)):\"\",D=m?\"\".concat(function(t,e,r,i){var o=[],a=[],s=r[0].dims,u=r[1].dims,c=s.length,l=u.length,f=i.length,h=f-c,p=f-l;o=s.map((function(t,r){return\"coords.\".concat(e[r+h])})),o[c-1]=\"i*2\",o.join(\", \"),a=u.map((function(t,r){return\"coords.\".concat(e[r+p])})),a[l-2]=\"i*2\",a.join(\", \");var d=n.BroadcastUtil.getBroadcastDims(s,i),m=n.BroadcastUtil.getBroadcastDims(u,i),y=d.map((function(t){return\"coords.\".concat(e[t+h],\" = 0;\")})).join(\"\\n\"),g=m.map((function(t){return\"coords.\".concat(e[t+p],\" = 0;\")})).join(\"\\n\"),b=\"int lastDim = coords.\".concat(e[f-1],\";\\n  coords.\").concat(e[f-1],\" = coords.\").concat(e[f-2],\";\\n  coords.\").concat(e[f-2],\" = lastDim;\");return\"\\nvec4 getAAtOutCoordsMatmul(int i) {\\n  \".concat(t,\" coords = getOutputCoords();\\n  \").concat(b,\"\\n  \").concat(y,\"\\n  vec4 outputValue = getA(\").concat(o,\");\\n  return outputValue;\\n}\\n\\nvec4 getBAtOutCoordsMatmul(int i) {\\n  \").concat(t,\" coords = getOutputCoords();\\n  \").concat(b,\"\\n  \").concat(g,\"\\n  vec4 outputValue = getB(\").concat(a,\");\\n  return outputValue;\\n}\")}(_,k,r,d)):\"\",O=m?\"getAAtOutCoordsMatmul(i)\":\"getA(\".concat(function(t,e){for(var r=\"\",n=0;n<e-2;n++)r+=\"rc.\".concat(t[n],\", \");return r+=\"rc.\".concat(t[e-2],\", i*2\")}(k,b),\")\"),I=m?\"getBAtOutCoordsMatmul(i)\":\"getB(\".concat(function(t,e){for(var r=\"\",n=0;n<e-2;n++)r+=\"rc.\".concat(t[n],\", \");return r+=\"i*2, rc.\".concat(t[e-1])}(k,v),\")\"),P=\"\\n            \".concat(D,\"\\n            \").concat(A,\"\\n            \").concat(S,\"\\n            void main() {\\n              \").concat(m?\"\":\"\".concat(_,\" rc =\\n          getOutputCoords(); int lastDim = rc.\").concat(k[x-1],\"; rc.\").concat(k[x-1],\" =\\n          rc.\").concat(k[x-2],\"; rc.\").concat(k[x-2],\" = lastDim;\\n      \"),\"\\n\\n              vec4 value = vec4(0);\\n              for (int i = 0; i < \").concat(g,\"; i++) {\\n                vec4 a = \").concat(O,\";\\n                vec4 b = \").concat(I,\";\\n\\n                value += (a.rrbb * b.rgrg);\\n                value += (a.ggaa * b.baba);\\n              }\\n              \").concat(f,\"\\n              \").concat(T,\"\\n              \").concat(w.output,\" = value;\\n            }\");return Object.assign(Object.assign({},e),{output:{dims:d,type:r[0].type,textureType:o.TextureType.packed},shaderSource:P,hasMain:!0})}(t,f,e,r)}})}},8276:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.getBiasForMatmul=e.createMatmulProgramInfoLoader=e.parseMatMulAttributes=e.matMul=void 0;var n=r(7273),i=r(5639),o=r(432),a=r(2150),s=r(5632);e.matMul=function(t,e,r){return l(e),t.session.pack?[t.run((0,s.createPackedMatmulProgramInfoLoader)(t,e,r),e)]:[t.run(c(e,r),e)]},e.parseMatMulAttributes=function(t){return(0,a.parseInternalActivationAttributes)(t.attributes)};var u=function(t,e){return{name:\"MatMul\",inputNames:t?[\"A\",\"B\",\"Bias\"]:[\"A\",\"B\"],inputTypes:t?[i.TextureType.unpacked,i.TextureType.unpacked,i.TextureType.unpacked]:[i.TextureType.unpacked,i.TextureType.unpacked],cacheHint:e}};function c(t,e){var r=u(t.length>2,e.activationCacheKey);return Object.assign(Object.assign({},r),{get:function(){return function(t,e,r){var s=e[0].dims,u=e[1].dims,c=n.BroadcastUtil.calcShape(s,u,!0);if(!c)throw new Error(\"Can't use matmul on the given tensors\");var l=(0,o.getCoordsDataType)(c.length),h=(0,o.getGlChannels)(),p=(0,a.getActivationSnippet)(r),d=p.activationFunction,m=p.applyActivation,y=e.length>2,g=y?\"value += getBiasForMatmul();\":\"\",b=y?\"\".concat(f(l,h,e[2].dims,c,!1)):\"\",v=c.length,w=s.length,_=u.length,x=\"\\n    \".concat(d,\"\\n    \").concat(b,\"\\n    float process(int indices[\").concat(v,\"]) {\\n        int a[\").concat(w,\"];\\n        int b[\").concat(_,\"];\\n        bcastMatmulIndices_A(indices, a);\\n        bcastMatmulIndices_B(indices, b);\\n\\n        float value;\\n        for (int k=0; k<\").concat(s[s.length-1],\"; ++k) {\\n            a[\").concat(w-1,\"] = k;\\n            b[\").concat(_-2,\"] = k;\\n            value += _A(a) * _B(b);\\n        }\\n        \").concat(g,\"\\n        \").concat(m,\"\\n        return value;\\n    }\");return Object.assign(Object.assign({},t),{output:{dims:c,type:e[0].type,textureType:i.TextureType.unpacked},shaderSource:x})}(r,t,e)}})}e.createMatmulProgramInfoLoader=c;var l=function(t){if(!t||2!==t.length)throw new Error(\"MatMul requires 2 inputs.\");if(t[0].dims[t[0].dims.length-1]!==t[1].dims[t[1].dims.length-2])throw new Error(\"shared dimension does not match.\");if(\"float32\"!==t[0].type&&\"float64\"!==t[0].type||\"float32\"!==t[1].type&&\"float64\"!==t[1].type)throw new Error(\"inputs should be float type\");if(t[0].type!==t[1].type)throw new Error(\"inputs types should match\")};function f(t,e,r,i,o){var a,s=r.length,u=i.length,c=u-s;a=u<2&&s>0?\"coords\":r.map((function(t,r){return\"coords.\".concat(e[r+c])})).join(\", \");var l=n.BroadcastUtil.getBroadcastDims(r,i).map((function(t){return\"coords.\".concat(e[t+c],\" = 0;\")})).join(\"\\n\"),f=\"vec4(outputValue.xx, outputValue.yy)\";return 1===n.ShapeUtil.size(r)&&(f=\"vec4(outputValue.x)\"),o?\"\\nvec4 getBiasForMatmul() {\\n  \".concat(t,\" coords = getOutputCoords();\\n  \").concat(l,\"\\n  vec4 outputValue = getBias(\").concat(a,\");\\n  return \").concat(f,\";\\n}\"):\"\\nfloat getBiasForMatmul() {\\n  \".concat(t,\" coords = getOutputCoords();\\n  \").concat(l,\"\\n  return getBias(coords.x);\\n}\")}e.getBiasForMatmul=f},9:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createPackProgramInfoLoader=void 0;var n=r(6757),i=r(5639),o=r(432),a=r(5614),s={name:\"pack\",inputNames:[\"A\"],inputTypes:[i.TextureType.unpackedReversed]};e.createPackProgramInfoLoader=function(t,e){return Object.assign(Object.assign({},s),{get:function(){return function(t,e){var r,u,c,l,f=(0,n.getGlsl)(t.session.backend.glContext.version),h=e.dims,p=h.length,d=e.dims.length,m=(0,o.getCoordsDataType)(d),y=(0,a.getChannels)(\"rc\",d),g=(r=d,u=y,c=h[h.length-2],l=h[h.length-1],0===r||1===r?\"\":\"\\n    int r = \".concat(u[r-2],\";\\n    int c = \").concat(u[r-1],\";\\n    int rp1 = \").concat(u[r-2],\" + 1;\\n    int cp1 = \").concat(u[r-1],\" + 1;\\n    bool rEdge = rp1 >= \").concat(l,\";\\n    bool cEdge = cp1 >= \").concat(c,\";\\n    \")),b=function(t,e,r){if(0===t)return\"false\";if(1===t)return\"rc > \".concat(e[0]);for(var n=\"\",i=t-2;i<t;i++)n+=\"\".concat(r[i],\" >= \").concat(e[i-t+2]),i<t-1&&(n+=\"||\");return n}(d,0===p?[1,1]:1===p?[h[0],1]:[h[d-1],h[d-2]],y),v=function(t,e){var r=t.length;if(0===r)return\"getA(), 0, 0, 0\";if(1===r)return\"getA(rc),\\n            rc + 1 >= \".concat(t[0],\" ? 0. : getA(rc + 1),\\n            0, 0\");var n=\"\";if(r>2)for(var i=0;i<r-2;++i)n+=\"\".concat(e[i],\",\");return\"getA(\".concat(n,\"r, c),\\n          rEdge ? 0. : getA(\").concat(n,\"rp1, c),\\n          cEdge ? 0. : getA(\").concat(n,\"r, cp1),\\n          rEdge || cEdge ? 0. : getA(\").concat(n,\"rp1, cp1)\")}(h,y),w=\"\\n        void main() {\\n          \".concat(m,\" rc = getOutputCoords();\\n\\n          if(\").concat(b,\") {\\n            \").concat(f.output,\" = vec4(0);\\n          } else {\\n            \").concat(g,\"\\n\\n            \").concat(f.output,\" = vec4(\").concat(v,\");\\n          }\\n        }\\n      \");return Object.assign(Object.assign({},s),{hasMain:!0,output:{dims:e.dims,type:e.type,textureType:i.TextureType.packed},shaderSource:w})}(t,e)}})}},5614:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.unpackFromChannel=e.getChannels=e.getVecChannels=void 0;var n=r(432);function i(t,e){return(0,n.getGlChannels)(e).map((function(e){return\"\".concat(t,\".\").concat(e)}))}e.getVecChannels=i,e.getChannels=function(t,e){return 1===e?[t]:i(t,e)},e.unpackFromChannel=function(){return\"\\n    float getChannel(vec4 frag, int dim) {\\n      int modCoord = imod(dim, 2);\\n      return modCoord == 0 ? frag.r : frag.g;\\n    }\\n\\n    float getChannel(vec4 frag, vec2 innerDims) {\\n      vec2 modCoord = mod(innerDims, 2.);\\n      return modCoord.x == 0. ?\\n        (modCoord.y == 0. ? frag.r : frag.g) :\\n        (modCoord.y == 0. ? frag.b : frag.a);\\n    }\\n  \"}},5565:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parsePadAttributesV11=e.padV11=e.parsePadAttributesV2=e.padV2=void 0;var n=r(4910),i=r(7273),o=r(6757),a=r(5639),s={name:\"Pad\",inputNames:[\"A\"],inputTypes:[a.TextureType.unpacked]};e.padV2=function(t,e,r){return l(e),[t.run(Object.assign(Object.assign({},s),{cacheHint:r.cacheKey,get:function(){return c(t,e[0],r)}}),e)]},e.parsePadAttributesV2=function(t){var e=t.attributes.getString(\"mode\",\"constant\"),r=t.attributes.getFloat(\"value\",0),i=t.attributes.getInts(\"pads\");return(0,n.createAttributeWithCacheKey)({mode:e,value:r,pads:i})},e.padV11=function(t,r,n){f(r);var i=u(t,r,n);return(0,e.padV2)(t,[r[0]],i)},e.parsePadAttributesV11=function(t){return t.attributes.getString(\"mode\",\"constant\")};var u=function(t,e,r){if(!t.session.isInitializer(e[1].dataId)||e.length>=3&&!t.session.isInitializer(e[2].dataId))throw new Error(\"dynamic pad attributes are not allowed\");var i=Array.from(e[1].integerData),o=e.length>=3?e[2].floatData[0]:0;return(0,n.createAttributeWithCacheKey)({mode:r,pads:i,value:o})},c=function(t,e,r){var n=i.ShapeUtil.padShape(e.dims.slice(),r.pads),o=n.length,s=\"\\n      \".concat(h(t,e,r),\"\\n      float process(int[\").concat(o,\"] indices) {\\n          return padA(indices);\\n      }\");return{name:\"Pad\",inputNames:[\"A\"],inputTypes:[a.TextureType.unpacked],output:{dims:n,type:e.type,textureType:a.TextureType.unpacked},shaderSource:s}},l=function(t){if(!t||1!==t.length)throw new Error(\"Pad requires 1 input\");if(\"float32\"!==t[0].type&&\"float64\"!==t[0].type)throw new Error(\"Invalid input type.\")},f=function(t){if(!t||2!==t.length&&3!==t.length)throw new Error(\"Pad requires 2 or 3 inputs\");if(\"int32\"!==t[1].type)throw new Error(\"Invalid input type.\");if(t.length>=3&&\"string\"===t[2].type)throw new Error(\"Invalid input type.\")},h=function(t,e,r){var n=(0,o.getGlsl)(t.session.backend.glContext.version),s=_slicedToArray(t.calculateTextureWidthAndHeight(e.dims,a.TextureType.unpacked),2),u=s[0],c=s[1],l=i.ShapeUtil.computeStrides(e.dims);switch(r.mode){case\"constant\":return p(n,e.dims,l,u,c,r.pads,r.value);case\"reflect\":return d(n,e.dims,l,u,c,r.pads);case\"edge\":return m(n,e.dims,l,u,c,r.pads);default:throw new Error(\"Invalid mode\")}},p=function(t,e,r,n,i,o,a){for(var s=e.length,u=\"\",c=s-1;c>=0;--c)u+=\"\\n        k = m[\".concat(c,\"] - \").concat(o[c],\";\\n        if (k < 0)  return constant;\\n        if (k >= \").concat(e[c],\") return constant;\\n        offset += k * \").concat(r[c],\";\\n        \");return\"\\n      float padA(int m[\".concat(s,\"]) {\\n        const float constant = float(\").concat(a,\");\\n        int offset = 0;\\n        int k = 0;\\n        \").concat(u,\"\\n        vec2 coords = offsetToCoords(offset, \").concat(n,\", \").concat(i,\");\\n        float value = getColorAsFloat(\").concat(t.texture2D,\"(A, coords));\\n        return value;\\n      }\\n      \")},d=function(t,e,r,n,i,o){for(var a=e.length,s=\"\",u=a-1;u>=0;--u)s+=\"\\n        k = m[\".concat(u,\"] - \").concat(o[u],\";\\n        if (k < 0) { k = -k; }\\n        {\\n          const int _2n_1 = \").concat(2*(e[u]-1),\";\\n          k = int( mod( float(k), float(_2n_1) ) ) ;\\n          if(k >= \").concat(e[u],\") { k = _2n_1 - k; }\\n        }\\n        offset += k * \").concat(r[u],\";\\n        \");return\"\\n      float padA(int m[\".concat(a,\"]) {\\n        int offset = 0;\\n        int k = 0;\\n        \").concat(s,\"\\n        vec2 coords = offsetToCoords(offset, \").concat(n,\", \").concat(i,\");\\n        float value = getColorAsFloat(\").concat(t.texture2D,\"(A, coords));\\n        return value;\\n      }\\n      \")},m=function(t,e,r,n,i,o){for(var a=e.length,s=\"\",u=a-1;u>=0;--u)s+=\"\\n        k = m[\".concat(u,\"] - \").concat(o[u],\";\\n        if (k < 0)  k = 0;\\n        if (k >= \").concat(e[u],\") k = \").concat(e[u]-1,\";\\n        offset += k * \").concat(r[u],\";\\n      \");return\"\\n      float padA(int m[\".concat(a,\"]) {\\n        int offset = 0;\\n        int k = 0;\\n        \").concat(s,\"\\n        vec2 coords = offsetToCoords(offset, \").concat(n,\", \").concat(i,\");\\n        float value = getColorAsFloat(\").concat(t.texture2D,\"(A, coords));\\n        return value;\\n      }\\n      \")}},2834:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.globalMaxPool=e.parseMaxPoolAttributes=e.maxPool=e.parseGlobalAveragePoolAttributes=e.globalAveragePool=e.parseAveragePoolAttributes=e.averagePool=void 0;var n=r(4910),i=r(7273),o=r(5639);e.averagePool=function(t,e,r){f(e);var n={name:\"AveragePool\",inputNames:[\"X\"],inputTypes:[o.TextureType.unpacked],cacheHint:r.cacheKey};return[t.run(Object.assign(Object.assign({},n),{get:function(){return a(e,n,!1,r)}}),e)]},e.parseAveragePoolAttributes=function(t){var e=t.attributes.getString(\"auto_pad\",\"NOTSET\"),r=t.attributes.getInt(\"ceil_mode\",0),i=0!==t.attributes.getInt(\"count_include_pad\",0),o=t.attributes.getInts(\"kernel_shape\"),a=t.attributes.getInts(\"strides\",[]),s=t.attributes.getInts(\"pads\",[]);if(0!==r)throw new Error(\"using ceil() in shape computation is not yet supported for AveragePool\");return(0,n.createAttributeWithCacheKey)({autoPad:e,ceilMode:r,countIncludePad:i,kernelShape:o,strides:a,pads:s})};var a=function(t,e,r,n){var a=_slicedToArray(u(t,n,r),2),s=a[0],c=a[1],l=i.ShapeUtil.size(s.kernelShape),f=\"\";s.countIncludePad?f+=\"value /= float(\".concat(l,\");\"):f+=\"value /= float(\".concat(l,\" - pad);\");var p=\"\\n        \".concat(h(t[0].dims,s,\"value += _X(x);\",f,\"0.0\"),\"\\n      \");return Object.assign(Object.assign({},e),{output:{dims:c,type:t[0].type,textureType:o.TextureType.unpacked},shaderSource:p})};e.globalAveragePool=function(t,e,r){f(e);var n={name:\"GlobalAveragePool\",inputNames:[\"X\"],inputTypes:[o.TextureType.unpacked],cacheHint:\"\".concat(r.countIncludePad)};return[t.run(Object.assign(Object.assign({},n),{get:function(){return a(e,n,!0,r)}}),e)]},e.parseGlobalAveragePoolAttributes=function(t){var e=0!==t.attributes.getInt(\"count_include_pad\",0);return(0,n.createAttributeWithCacheKey)({autoPad:\"\",ceilMode:0,countIncludePad:e,kernelShape:[],strides:[],pads:[]})},e.maxPool=function(t,e,r){f(e);var n={name:\"MaxPool\",inputNames:[\"X\"],inputTypes:[o.TextureType.unpacked],cacheHint:r.cacheKey};return[t.run(Object.assign(Object.assign({},n),{get:function(){return s(e,n,!1,r)}}),e)]},e.parseMaxPoolAttributes=function(t){var e=t.attributes.getString(\"auto_pad\",\"NOTSET\"),r=t.attributes.getInt(\"ceil_mode\",0),i=t.attributes.getInts(\"kernel_shape\"),o=t.attributes.getInts(\"strides\",[]),a=t.attributes.getInts(\"pads\",[]),s=t.attributes.getInt(\"storage_order\",0),u=t.attributes.getInts(\"dilations\",[]);if(0!==s)throw new Error(\"column major storage order is not yet supported for MaxPool\");if(0!==r)throw new Error(\"using ceil() in shape computation is not yet supported for MaxPool\");return(0,n.createAttributeWithCacheKey)({autoPad:e,ceilMode:r,countIncludePad:!1,kernelShape:i,strides:o,pads:a,storageOrder:s,dilations:u})};var s=function(t,e,r,n){var i=_slicedToArray(u(t,n,r),2),a=i[0],s=i[1],c=\"\\n      \".concat(h(t[0].dims,a,\"\\n      value = max(_X(x), value);\\n    \",\"\",\"-1e5\"),\"\\n    \");return Object.assign(Object.assign({},e),{output:{dims:s,type:t[0].type,textureType:o.TextureType.unpacked},shaderSource:c})},u=function(t,e,r){var n=t[0].dims.slice(),o=Object.hasOwnProperty.call(e,\"dilations\"),a=e.kernelShape.slice(),s=e.strides.slice(),u=o?e.dilations.slice():[],c=e.pads.slice();i.PoolConvUtil.adjustPoolAttributes(r,n,a,s,u,c);var l=i.PoolConvUtil.computePoolOutputShape(r,n,s,u,a,c,e.autoPad),f=Object.assign({},e);return o?Object.assign(f,{kernelShape:a,strides:s,pads:c,dilations:u,cacheKey:e.cacheKey}):Object.assign(f,{kernelShape:a,strides:s,pads:c,cacheKey:e.cacheKey}),[f,l]},c={autoPad:\"\",ceilMode:0,countIncludePad:!1,kernelShape:[],strides:[],pads:[],storageOrder:0,dilations:[],cacheKey:\"\"},l={name:\"GlobalMaxPool\",inputNames:[\"X\"],inputTypes:[o.TextureType.unpacked]};e.globalMaxPool=function(t,e){return f(e),[t.run(Object.assign(Object.assign({},l),{get:function(){return s(e,l,!0,c)}}),e)]};var f=function(t){if(!t||1!==t.length)throw new Error(\"Pool ops requires 1 input.\");if(\"float32\"!==t[0].type&&\"float64\"!==t[0].type)throw new Error(\"Invalid input type.\")},h=function(t,e,r,n,o){var a=t.length;if(e.kernelShape.length<=2){var s,u=e.kernelShape[e.kernelShape.length-1],c=e.strides[e.strides.length-1],l=e.pads[e.pads.length/2-1],f=e.pads[e.pads.length-1],h=t[a-1],m=\"\",y=\"\";if(s=l+f!==0?\"\\n          for (int i = 0; i < \".concat(u,\"; i++) {\\n            x[\").concat(a,\" - 1] = indices[\").concat(a,\" - 1] * \").concat(c,\" - \").concat(l,\" + i;\\n            if (x[\").concat(a,\" - 1] < 0 || x[\").concat(a,\" - 1] >= \").concat(h,\") {\\n              pad++;\\n              continue;\\n            }\\n            \").concat(r,\"\\n          }\"):\"\\n          for (int i = 0; i < \".concat(u,\"; i++) {\\n            x[\").concat(a,\" - 1] = indices[\").concat(a,\" - 1] * \").concat(c,\" - \").concat(l,\" + i;\\n            \").concat(r,\"\\n          }\"),2===e.kernelShape.length){var g=e.kernelShape[e.kernelShape.length-2],b=e.strides[e.strides.length-2],v=e.pads[e.pads.length/2-2],w=e.pads[e.pads.length-2],_=t[a-2];m=v+w!==0?\"\\n            for (int j = 0; j < \".concat(g,\"; j++) {\\n              x[\").concat(a,\" - 2] = indices[\").concat(a,\" - 2] * \").concat(b,\" - \").concat(v,\" + j;\\n              if (x[\").concat(a,\" - 2] < 0 || x[\").concat(a,\" - 2] >= \").concat(_,\") {\\n                pad+= \").concat(u,\";\\n                continue;\\n              }\\n          \"):\"\\n            for (int j = 0; j < \".concat(g,\"; j++) {\\n              x[\").concat(a,\" - 2] = indices[\").concat(a,\" - 2] * \").concat(b,\" - \").concat(v,\" + j;\\n            \"),y=\"\\n          }\\n        \"}return\"\\n        float process(int indices[\".concat(a,\"]) {\\n          int x[\").concat(a,\"];\\n          copyVec(indices, x);\\n\\n          float value = \").concat(o,\";\\n          int pad = 0;\\n          \").concat(m,\"\\n          \").concat(s,\"\\n          \").concat(y,\"\\n          \").concat(n,\"\\n          return value;\\n        }\\n      \")}var x,k=i.ShapeUtil.size(e.kernelShape),E=i.ShapeUtil.computeStrides(e.kernelShape),S=E.length,T=e.pads.length,A=d(S),D=p(t,\"inputDims\"),O=p(e.pads,\"pads\"),I=p(E,\"kernelStrides\"),P=p(e.strides,\"strides\");return x=e.pads.reduce((function(t,e){return t+e}))?\"\\n            if (x[j] >= inputDims[j] || x[j] < 0) {\\n              pad++;\\n              isPad = true;\\n              break;\\n            }\\n          }\\n          if (!isPad) {\\n            \".concat(r,\"\\n          }\"):\"\\n          }\\n          \".concat(r,\"\\n        \"),\"\\n        \".concat(A,\"\\n        float process(int indices[\").concat(a,\"]) {\\n          int x[\").concat(a,\"];\\n          copyVec(indices, x);\\n          int offset[\").concat(S,\"];\\n          int pads[\").concat(T,\"];\\n          int inputDims[\").concat(a,\"];\\n          int kernelStrides[\").concat(S,\"];\\n          int strides[\").concat(S,\"];\\n          \").concat(O,\"\\n          \").concat(D,\"\\n          \").concat(P,\"\\n          \").concat(I,\"\\n\\n          float value = \").concat(o,\";\\n          int pad = 0;\\n          bool isPad = false;\\n          for (int i = 0; i < \").concat(k,\"; i++) {\\n            offsetToIndices(i, kernelStrides, offset);\\n            isPad = false;\\n            for (int j = \").concat(a,\" - \").concat(S,\"; j < \").concat(a,\"; j++) {\\n              x[j] = indices[j] * strides[j - \").concat(a,\" + \").concat(S,\"]\\n                + offset[j - \").concat(a,\" + \").concat(S,\"] - pads[j - 2];\\n              \").concat(x,\"\\n          }\\n          \").concat(n,\"\\n\\n          return value;\\n        }\\n      \")},p=function(t,e){for(var r=\"\",n=0;n<t.length;n++)r+=\"\\n      \".concat(e,\"[\").concat(n,\"] = \").concat(t[n],\";\\n    \");return r},d=function(t){return\"\\n  void offsetToIndices(int offset, int[\".concat(t,\"] strides, out int[\").concat(t,\"] indices) {\\n    if (\").concat(t,\" == 0) {\\n      return;\\n    }\\n    for (int i = 0; i < \").concat(t,\" - 1; ++i) {\\n      indices[i] = offset / strides[i];\\n      offset -= indices[i] * strides[i];\\n    }\\n    indices[\").concat(t,\" - 1] = offset;\\n  }\")}},1010:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.reduceLogSumSquare=e.reduceLogSum=e.reduceProd=e.reduceMin=e.reduceMax=e.reduceMean=e.reduceSum=e.parseReduceAttributes=void 0;var n=r(4910),i=r(6145),o=r(7273),a=r(5639),s=function(t,e,r,n,i){c(e);var o={name:n,inputNames:[\"A\"],inputTypes:[a.TextureType.unpacked]};return[t.run(Object.assign(Object.assign({},o),{cacheHint:r.cacheKey,get:function(){return u(t,e,r,n,i,o)}}),e)]};e.parseReduceAttributes=function(t){var e=t.attributes.getInts(\"axes\",[]),r=1===t.attributes.getInt(\"keepdims\",1);return(0,n.createAttributeWithCacheKey)({axes:e,keepDims:r})};var u=function(t,e,r,n,i,s){for(var u=[],c=e[0].dims.length||1,l=[],f=o.ShapeUtil.normalizeAxes(r.axes,e[0].dims.length),h=i(e,f),p=h[1],d=0;d<e[0].dims.length;d++)f.indexOf(d)>=0||0===f.length?(r.keepDims&&u.push(1),p=\"\\n          for(int j\".concat(d,\" = 0; j\").concat(d,\" < \").concat(e[0].dims[d],\"; j\").concat(d,\"++) {\\n            inputIdx[\").concat(d,\"] = j\").concat(d,\";\\n            \").concat(p,\"\\n          }\")):(l.push(\"inputIdx[\".concat(d,\"] = outputIdx[\").concat(u.length,\"];\")),u.push(e[0].dims[d]));var m=\"\\n      float process(int outputIdx[\".concat(u.length||1,\"]) {\\n        float value;                 // final result\\n        int inputIdx[\").concat(c,\"];      // addressing input data\\n        \").concat(l.join(\"\\n\"),\"\\n        \").concat(h[0],\"       // init ops for reduce max/min\\n        \").concat(p,\"\\n        \").concat(h[2],\"       // final computation for reduce mean\\n        return value;\\n      }\");return Object.assign(Object.assign({},s),{output:{dims:u,type:e[0].type,textureType:a.TextureType.unpacked},shaderSource:m})},c=function(t){if(!t||1!==t.length)throw new Error(\"Reduce op requires 1 input.\");if(-1===i.NUMBER_TYPES.indexOf(t[0].type))throw new Error(\"Invalid input type.\")};e.reduceSum=function(t,e,r){return s(t,e,r,\"ReduceSum\",(function(){return[\"value = 0.0;\",\"value += _A(inputIdx);\",\"\"]}))},e.reduceMean=function(t,e,r){return s(t,e,r,\"ReduceMean\",(function(t,e){for(var r=1,n=0;n<t[0].dims.length;n++)(e.indexOf(n)>=0||0===e.length)&&(r*=t[0].dims[n]);return[\"value = 0.0;\",\"value += _A(inputIdx);\",\"value /= \".concat(r,\".;\")]}))},e.reduceMax=function(t,e,r){return s(t,e,r,\"ReduceMax\",(function(t,e){for(var r=[],n=0;n<t[0].dims.length;n++)(e.indexOf(n)>=0||0===e.length)&&r.push(\"inputIdx[\".concat(n,\"] = 0;\"));return[\"\".concat(r.join(\"\\n\"),\"\\nvalue = _A(inputIdx);\"),\"value = max(value, _A(inputIdx));\",\"\"]}))},e.reduceMin=function(t,e,r){return s(t,e,r,\"ReduceMin\",(function(t,e){for(var r=[],n=0;n<t[0].dims.length;n++)(e.indexOf(n)>=0||0===e.length)&&r.push(\"inputIdx[\".concat(n,\"] = 0;\"));return[\"\".concat(r.join(\"\\n\"),\"\\nvalue = _A(inputIdx);\"),\"value = min(value, _A(inputIdx));\",\"\"]}))},e.reduceProd=function(t,e,r){return s(t,e,r,\"ReduceProd\",(function(){return[\"value = 1.0;\",\"value *= _A(inputIdx);\",\"\"]}))},e.reduceLogSum=function(t,e,r){return s(t,e,r,\"ReduceLogSum\",(function(){return[\"value = 0.0;\",\"value += _A(inputIdx);\",\"value = log(value);\"]}))},e.reduceLogSumSquare=function(t,e,r){return s(t,e,r,\"ReduceLogSumSquare\",(function(){return[\"float t; value = 0.0;\",\"t = _A(inputIdx); value += t * t;\",\"\"]}))}},7379:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.isReshapeCheap=e.processDims3D=e.createPackedReshape3DProgramInfoLoader=void 0;var n=r(7273),i=r(6757),o=r(5639),a=r(5614);e.createPackedReshape3DProgramInfoLoader=function(t,e,r){var s=function(t){return{name:\"Reshape (packed)\",inputTypes:[o.TextureType.packed],inputNames:[\"A\"],cacheHint:\"\".concat(t)}}(r);return Object.assign(Object.assign({},s),{get:function(){return function(t,e,r,s){for(var u=e.dims,c=s,l=\"\",f=0;f<4;f++){var h=\"\";switch(f){case 0:h=\"outputCoords = rc;\";break;case 1:h=\"outputCoords = ivec3(rc.x, rc.y+1, rc.z);\";break;case 2:h=\"outputCoords = ivec3(rc.x, rc.y, rc.z+1);\";break;case 3:h=\"outputCoords = ivec3(rc.x, rc.y+1, rc.z+1);\";break;default:throw new Error}l+=\"\\n        \".concat(h,\"\\n        \").concat(f>0?\"if(outputCoords.y < rows && outputCoords.z < cols){\":\"\",\"\\n          int flattenedIndex = getFlattenedIndex(outputCoords);\\n\\n          ivec3 inputRC = inputCoordsFromReshapedOutCoords(flattenedIndex);\\n          vec2 innerDims = vec2(float(inputRC.y),float(inputRC.z));\\n\\n          result[\").concat(f,\"] = getChannel(getA(inputRC.x, inputRC.y, inputRC.z), innerDims);\\n\\n        \").concat(f>0?\"}\":\"\",\"\\n      \")}var p=(0,i.getGlsl)(t.session.backend.glContext.version),d=\"\\n      \".concat(function(t){var e=n.ShapeUtil.computeStrides(t),r=[\"b\",\"r\",\"c\"],i=\"index\";return\"\\n    ivec3 inputCoordsFromReshapedOutCoords(int index) {\\n      \".concat(e.map((function(t,n){return\"int \".concat(r[n],\" = \").concat(i,\" / \").concat(t,\"; \").concat(n===e.length-1?\"int \".concat(r[n+1],\" = \").concat(i,\" - \").concat(r[n],\" * \").concat(t):\"index -= \".concat(r[n],\" * \").concat(t),\";\")})).join(\"\"),\"\\n      return ivec3(b, r, c);\\n    }\\n  \")}(u),\"\\n      \").concat(function(t){var e=n.ShapeUtil.computeStrides(t);return\"\\n  int getFlattenedIndex(ivec3 coords) {\\n    // reverse y, z order\\n    return coords.x * \".concat(e[0],\" + coords.z * \").concat(e[1],\" + coords.y;\\n  }\\n\")}(c),\"\\n      \").concat((0,a.unpackFromChannel)(),\"\\n\\n      void main() {\\n        ivec3 rc = getOutputCoords();\\n\\n        vec4 result = vec4(0.0);\\n\\n        ivec3 outputCoords;\\n        int rows = \").concat(c[2],\";\\n        int cols = \").concat(c[1],\";\\n\\n        \").concat(l,\"\\n        \").concat(p.output,\" = result;\\n      }\\n    \");return Object.assign(Object.assign({},r),{output:{dims:c,type:e.type,textureType:o.TextureType.packed},shaderSource:d,hasMain:!0})}(t,e,s,r)}})},e.processDims3D=function(t){if(0===t.length)return[1,1,1];for(var e=1,r=0;r<t.length-2;++r)e*=t[r];return[e,t.length>1?t[t.length-2]:1,t[t.length-1]]},e.isReshapeCheap=function(t,e){return 0===t.length||0===e.length||(t.length<2||e.length<2?t[t.length-1]===e[e.length-1]:t[t.length-1]===e[e.length-1]&&t[t.length-2]===e[e.length-2])}},8126:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.reshape=void 0;var n=r(7273);e.reshape=function(t,e){var r=n.ShapeUtil.calculateReshapedDims(e[0].dims,e[1].integerData);return t.session.pack?[t.reshapePacked(e[0],r)]:[t.reshapeUnpacked(e[0],r)]}},2801:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseResizeAttributesV11=e.parseResizeAttributesV10=e.resize=void 0;var n=r(6757),i=r(5639),o=r(432),a=r(5614),s=r(3980),u={name:\"Resize\",inputNames:[\"A\"],inputTypes:[i.TextureType.packed]};e.resize=function(t,e,r){return(0,s.validateInputs)(e,r),[t.run(Object.assign(Object.assign({},u),{cacheHint:r.cacheKey,get:function(){return c(t,e,r)}}),e)]},e.parseResizeAttributesV10=function(t){return(0,s.parseUpsampleAttributes)(t,10)},e.parseResizeAttributesV11=function(t){return(0,s.parseUpsampleAttributes)(t,11)};var c=function(t,e,r){var s=(0,n.getGlsl)(t.session.backend.glContext.version),c=_slicedToArray(l(e,r),2),f=c[0],h=c[1];if(f.every((function(t){return 1===t}))&&\"tf_crop_and_resize\"!==r.coordinateTransformMode)return Object.assign(Object.assign({},u),{output:{dims:h,type:e[0].type,textureType:i.TextureType.packed},hasMain:!0,shaderSource:\"void main() {\\n                    vec4 v = \".concat(s.texture2D,\"(X, TexCoords);\\n                    \").concat(s.output,\" = v;\\n                }\")});var p=h.length;if(p<2)throw new Error(\"output dimension should be at least 2, but got \".concat(p));var d=h[p-2],m=h[p-1],y=e[0].dims;if(p!==y.length)throw new Error(\"output dimension should match input \".concat(y.length,\", but got \").concat(p));var g=y[p-2],b=y[p-1],v=f[p-2],w=f[p-1],_=\"\";if(\"linear\"!==r.mode)throw new Error(\"resize (packed) does not support mode: '\".concat(r.mode,\"'\"));switch(r.coordinateTransformMode){case\"asymmetric\":_=\"\\n                    vec4 getSourceFracIndex(ivec4 coords) {\\n                        return vec4(coords) / scaleWHWH;\\n                    }\\n                \";break;case\"half_pixel\":_=\"\\n                    vec4 getSourceFracIndex(ivec4 coords) {\\n                        return (vec4(coords) + 0.5) / scaleWHWH - 0.5;\\n                    }\\n                \";break;case\"pytorch_half_pixel\":_=\"\\n                    vec4 getSourceFracIndex(ivec4 coords) {\\n                        vec4 fcoords = vec4(coords);\\n                        return vec4(\\n                            \".concat(m,\".0 > 1.0 ? (fcoords.x + 0.5) / scaleWHWH.x - 0.5 : 0.0,\\n                            \").concat(d,\".0 > 1.0 ? (fcoords.y + 0.5) / scaleWHWH.y - 0.5 : 0.0,\\n                            \").concat(m,\".0 > 1.0 ? (fcoords.z + 0.5) / scaleWHWH.z - 0.5 : 0.0,\\n                            \").concat(d,\".0 > 1.0 ? (fcoords.w + 0.5) / scaleWHWH.w - 0.5 : 0.0\\n                          );\\n                    }\\n                \");break;case\"align_corners\":_=\"\\n                    vec4 getSourceFracIndex(ivec4 coords) {\\n                        vec4 resized = vec4(\".concat(m,\".0 - 1.0, \").concat(d,\".0 - 1.0, \").concat(m,\".0 - 1.0,\\n                            \").concat(d,\".0 - 1.0);\\n                        vec4 original = vec4(\").concat(b,\".0 - 1.0, \").concat(g,\".0 - 1.0, \").concat(b,\".0 - 1.0,\\n                            \").concat(g,\".0 - 1.0);\\n                        vec4 new_scale = original / resized;\\n                        return vec4(coords) * new_scale;\\n                    }\\n                \");break;default:throw new Error(\"resize (packed) does not support coordinateTransformMode:                                 '\".concat(r.coordinateTransformMode,\"'\"))}var x=(0,o.getCoordsDataType)(p),k=\"\\n            const vec2 inputWH = vec2(\".concat(g,\".0, \").concat(b,\".0);\\n            const vec4 scaleWHWH = vec4(float(\").concat(v,\"), float(\").concat(w,\"), float(\").concat(v,\"), float(\").concat(w,\"));\\n            \").concat((0,a.unpackFromChannel)(),\"\\n            \").concat(_,\"\\n            float getAValue(int x10, int r, int c, int d) {\\n                return getChannel(getA(x10, r, c, d), vec2(c, d));\\n            }\\n            void main() {\\n                \").concat(x,\" rc = getOutputCoords();\\n\\n                int batch = rc[0];\\n                int depth = rc[1];\\n\\n                // retrieve the 4 coordinates that is used in the 4 packed output values.\\n                ivec4 coords = ivec4(rc.wz, rc.w + 1, rc.z + 1);\\n\\n                // calculate the source index in fraction\\n                vec4 sourceFrac = getSourceFracIndex(coords);\\n\\n                // get the lower and upper bound of the 4 values that will be packed into one texel.\\n                ivec4 x00 = ivec4(max(sourceFrac.xy, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.xy)));\\n                ivec4 x01 = ivec4(max(sourceFrac.xw, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.xw)));\\n                ivec4 x10 = ivec4(max(sourceFrac.zy, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.zy)));\\n                ivec4 x11 = ivec4(max(sourceFrac.zw, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.zw)));\\n\\n                bool hasNextRow = rc.w < \").concat(d-1,\";\\n                bool hasNextCol = rc.z < \").concat(m-1,\";\\n\\n                // pack x00, x01, x10, x11's top-left corner into one vec4 structure\\n                vec4 topLeft = vec4(\\n                    getAValue(batch, depth, x00.x, x00.y),\\n                    hasNextCol ? getAValue(batch, depth, x01.x, x01.y) : 0.0,\\n                    hasNextRow ? getAValue(batch, depth, x10.x, x10.y) : 0.0,\\n                    (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.x, x11.y) : 0.0);\\n\\n                // pack x00, x01, x10, x11's top-right corner into one vec4 structure\\n                vec4 topRight = vec4(\\n                    getAValue(batch, depth, x00.x, x00.w),\\n                    hasNextCol ? getAValue(batch, depth, x01.x, x01.w) : 0.0,\\n                    hasNextRow ? getAValue(batch, depth, x10.x, x10.w) : 0.0,\\n                    (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.x, x11.w) : 0.0);\\n\\n                // pack x00, x01, x10, x11's bottom-left corner into one vec4 structure\\n                vec4 bottomLeft = vec4(\\n                    getAValue(batch, depth, x00.z, x00.y),\\n                    hasNextCol ? getAValue(batch, depth, x01.z, x01.y) : 0.0,\\n                    hasNextRow ? getAValue(batch, depth, x10.z, x10.y) : 0.0,\\n                    (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.z, x11.y) : 0.0);\\n\\n                // pack x00, x01, x10, x11's bottom-right corner into one vec4 structure\\n                vec4 bottomRight = vec4(\\n                    getAValue(batch, depth, x00.z, x00.w),\\n                    hasNextCol ? getAValue(batch, depth, x01.z, x01.w) : 0.0,\\n                    hasNextRow ? getAValue(batch, depth, x10.z, x10.w) : 0.0,\\n                    (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.z, x11.w) : 0.0);\\n\\n                // calculate the interpolation fraction on u and v direction\\n                vec4 frac = vec4(sourceFrac) - floor(sourceFrac);\\n                vec4 clampFrac = clamp(frac, vec4(0.0), vec4(1.0));\\n\\n                vec4 top = mix(topLeft, topRight, clampFrac.ywyw);\\n                vec4 bottom = mix(bottomLeft, bottomRight, clampFrac.ywyw);\\n                vec4 newValue = mix(top, bottom, clampFrac.xxzz);\\n\\n                \").concat(s.output,\" = vec4(newValue);\\n            }\\n        \");return Object.assign(Object.assign({},u),{output:{dims:h,type:e[0].type,textureType:i.TextureType.packed},hasMain:!0,shaderSource:k})},l=function(t,e){var r,n=t[0].dims,i=e.scales;if(0===i.length){var o=t[e.scalesInputIdx];if(o&&0!==o.size){if(t[e.sizesInputIdx])throw new Error(\"Only one of scales or sizes must be provided as input.\");i=f(o,e.mode,e.isResize)}else{var a=t[e.sizesInputIdx];if(!a||0===a.size)throw new Error(\"Either scales or sizes MUST be provided as input.\");r=Array.from(a.integerData),i=h(r,n,e.mode,e.isResize)}}else if(t[e.sizesInputIdx])throw new Error(\"Only one of scales or sizes must be provided as input.\");var s=r||n.map((function(t,e){return Math.floor(t*i[e])}));return[i,s]},f=function(t,e,r){var n=Array.from(t.floatData);return(0,s.scalesValidation)(n,e,r),n},h=function(t,e,r,n){for(var i=e.length,o=new Array(i),a=0,u=i;a<u;a++)if(0===e[a]){if(0!==t[a])throw new Error(\"Input dim is zero but required output dim is non-zero.\");o[a]=1}else o[a]=t[a]/e[a];return(0,s.scalesValidation)(o,r,n),o}},565:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.shape=void 0;var n=r(9240);e.shape=function(t,e){return i(e),[new n.Tensor([e[0].dims.length],\"int32\",void 0,void 0,new Int32Array(e[0].dims))]};var i=function(t){if(!t||1!==t.length)throw new Error(\"Shape requires 1 input.\")}},2444:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.sliceV10=e.parseSliceAttributes=e.slice=void 0;var n=r(4910),i=r(6145),o=r(7273),a=r(5639),s={name:\"Slice\",inputNames:[\"A\"],inputTypes:[a.TextureType.unpacked]};e.slice=function(t,e,r){return c(e),[t.run(Object.assign(Object.assign({},s),{cacheHint:r.cacheKey,get:function(){return u(t,e[0],r)}}),e)]},e.parseSliceAttributes=function(t){var e=t.attributes.getInts(\"starts\"),r=t.attributes.getInts(\"ends\"),i=t.attributes.getInts(\"axes\",[]);return(0,n.createAttributeWithCacheKey)({starts:e,ends:r,axes:i})};var u=function(t,e,r){for(var n=0===r.axes.length?e.dims.slice(0).map((function(t,e){return e})):r.axes,i=o.ShapeUtil.normalizeAxes(n,e.dims.length),u=r.starts.map((function(t,r){return t>e.dims[i[r]]-1?e.dims[i[r]]:o.ShapeUtil.normalizeAxis(t,e.dims[i[r]])})),c=r.ends.map((function(t,r){return t>e.dims[i[r]]-1?e.dims[i[r]]:o.ShapeUtil.normalizeAxis(t,e.dims[i[r]])})),l=e.dims.slice(),f=[],h=0;h<i.length;h++)l[i[h]]=c[h]-u[h],u[h]>0&&f.push(\"outputIdx[\".concat(i[h],\"] += \").concat(u[h],\";\"));var p=\"\\n      float process(int outputIdx[\".concat(l.length,\"]) {\\n        \").concat(f.join(\"\\n      \"),\"\\n        return _A(outputIdx);\\n      }\");return Object.assign(Object.assign({},s),{output:{dims:l,type:e.type,textureType:a.TextureType.unpacked},shaderSource:p})},c=function(t){if(!t||1!==t.length)throw new Error(\"Slice requires 1 input.\");if(-1===i.NUMBER_TYPES.indexOf(t[0].type))throw new Error(\"Invalid input type.\")};e.sliceV10=function(t,e){f(e);var r=l(t,e);return[t.run(Object.assign(Object.assign({},s),{cacheHint:r.cacheKey,get:function(){return u(t,e[0],r)}}),[e[0]])]};var l=function(t,e){if(!t.session.isInitializer(e[1].dataId)||!t.session.isInitializer(e[2].dataId)||e.length>=4&&!t.session.isInitializer(e[3].dataId)||e.length>=5&&!t.session.isInitializer(e[4].dataId))throw new Error(\"dynamic slice attributes are not allowed\");if(e.length>=5&&e[4].integerData.some((function(t){return 1!==t})))throw new Error(\"currently non-1 steps is not supported for Slice\");var r=Array.from(e[1].integerData),n=Array.from(e[2].integerData),i=e.length>=4?Array.from(e[3].integerData):[];return{starts:r,ends:n,axes:i,cacheKey:\"\".concat(i,\";\").concat(r,\";\").concat(n)}},f=function(t){if(!t||t.length<3||t.length>5)throw new Error(\"Invalid input number.\");if(\"int32\"!==t[1].type||1!==t[1].dims.length)throw new Error(\"Invalid input type.\");if(\"int32\"!==t[2].type||1!==t[2].dims.length)throw new Error(\"Invalid input type.\");if(t.length>=4&&(\"int32\"!==t[3].type||1!==t[3].dims.length))throw new Error(\"Invalid input type.\");if(t.length>=5&&(\"int32\"!==t[4].type||1!==t[4].dims.length))throw new Error(\"Invalid input type.\")}},815:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.softmaxV13=e.parseSoftmaxAttributesV13=e.parseSoftmaxAttributes=e.softmax=void 0;var n=r(4910),i=r(7273),o=r(6757),a=r(5639),s=r(5707),u={name:\"SoftmaxComputeMax\",inputNames:[\"A\"],inputTypes:[a.TextureType.unpacked]},c={name:\"SoftmaxComputeScale\",inputNames:[\"A\",\"Max\"],inputTypes:[a.TextureType.unpacked,a.TextureType.unpacked]},l={name:\"SoftMax\",inputNames:[\"A\",\"Max\",\"Norm\"],inputTypes:[a.TextureType.unpacked,a.TextureType.unpacked,a.TextureType.unpacked]};e.softmax=function(t,e,r){m(e);var n=e[0].dims.slice(),o=i.ShapeUtil.normalizeAxis(r.axis,n.length),a=i.ShapeUtil.sizeToDimension(n,o),s=i.ShapeUtil.sizeFromDimension(n,o);return f(t,e,r,a,s)},e.parseSoftmaxAttributes=function(t){return(0,n.createAttributeWithCacheKey)({axis:t.attributes.getInt(\"axis\",1)})},e.parseSoftmaxAttributesV13=function(t){return(0,n.createAttributeWithCacheKey)({axis:t.attributes.getInt(\"axis\",-1)})},e.softmaxV13=function(t,e,r){m(e);var o,a=e[0].dims.slice(),u=i.ShapeUtil.normalizeAxis(r.axis,a.length),c=a.length,l=u!==c-1,h=[],p=[],d=[];l&&(p=Array.from({length:c}).map((function(t,e){return e})),p[u]=c-1,p[c-1]=u,p.map((function(t){return h.push(a[t])})),o=(0,n.createAttributeWithCacheKey)({perm:p}),d=(0,s.transpose)(t,e,o));var y=l?i.ShapeUtil.sizeToDimension(h,c-1):i.ShapeUtil.sizeToDimension(a,c-1),g=l?i.ShapeUtil.sizeFromDimension(h,c-1):i.ShapeUtil.sizeFromDimension(a,c-1),b=f(t,l?d:e,r,y,g);return l?(0,s.transpose)(t,b,o):b};var f=function(t,e,r,n,i){var o=h(t,e[0],n,i,[n]),a=t.run(Object.assign(Object.assign({},u),{cacheHint:r.cacheKey,get:function(){return o}}),e),s=p(t,e[0],n,i,o.output.dims,[n]),f=t.run(Object.assign(Object.assign({},c),{cacheHint:r.cacheKey,get:function(){return s}}),[e[0],a]),m=d(t,e[0],n,i,o.output.dims,s.output.dims);return[t.run(Object.assign(Object.assign({},l),{cacheHint:r.cacheKey,get:function(){return m}}),[e[0],a,f])]},h=function(t,e,r,n,i){var s=_slicedToArray(t.calculateTextureWidthAndHeight(e.dims,a.TextureType.unpacked),2),c=s[0],l=s[1],f=i.length;if(r<1||n<1)throw new Error(\"Logical row count N and feature count D must be greater than or equal to 1\");if(1!==i.length)throw new Error(\"Dimensionality of the output should be 1\");if(i[0]!==r)throw new Error(\"Shape of the output should be equal to logical row count\");var h=(0,o.getGlsl)(t.session.backend.glContext.version),p=\"\\n      float process(int[\".concat(f,\"] indices) {\\n        int logical_row_start_offset = indices[0] * \").concat(n,\";\\n\\n        float max = getColorAsFloat(\").concat(h.texture2D,\"(A, offsetToCoords(logical_row_start_offset, \").concat(c,\",\\n        \").concat(l,\" )));\\n        for(int i=1; i<\").concat(n,\"; ++i)\\n        {\\n          float current = getColorAsFloat(\").concat(h.texture2D,\"(A, offsetToCoords(logical_row_start_offset + i,\\n            \").concat(c,\", \").concat(l,\")));\\n          if(current > max)\\n          max = current;\\n        }\\n\\n        return max;\\n      }\");return Object.assign(Object.assign({},u),{output:{dims:i,type:e.type,textureType:a.TextureType.unpacked},shaderSource:p})},p=function(t,e,r,n,i,s){var u=_slicedToArray(t.calculateTextureWidthAndHeight(e.dims,a.TextureType.unpacked),2),l=u[0],f=u[1],h=s.length;if(r<1||n<1)throw new Error(\"Logical row count N and feature count D must be greater than or equal to 1\");if(1!==s.length)throw new Error(\"Dimensionality of the output should be 1\");if(s[0]!==r)throw new Error(\"Shape of the output should be equal to logical row count\");if(1!==i.length)throw new Error(\"Dimensionality of the intermediate results should be 1\");if(i[0]!==r)throw new Error(\"Shape of the intermediate results should be equal to logical row count\");var p=\"\\n      float process(int[\".concat(h,\"] indices) {\\n        int logical_row_start_offset = indices[0] * \").concat(n,\";\\n\\n        float norm_factor = 0.0;\\n        float max = _Max(indices);\\n        for(int i=0; i<\").concat(n,\"; ++i)\\n        {\\n          norm_factor += exp(getColorAsFloat(\").concat((0,o.getGlsl)(t.session.backend.glContext.version).texture2D,\"(A, offsetToCoords(logical_row_start_offset + i,\\n            \").concat(l,\", \").concat(f,\"))) - max);\\n        }\\n\\n        return norm_factor;\\n      }\");return Object.assign(Object.assign({},c),{output:{dims:s,type:e.type,textureType:a.TextureType.unpacked},shaderSource:p})},d=function(t,e,r,n,i,o){var s=_slicedToArray(t.calculateTextureWidthAndHeight(e.dims,a.TextureType.unpacked),2),u=s[0],c=s[1],f=e.dims.length;if(r<1||n<1)throw new Error(\"Logical row count N and feature count D must be greater than or equal to 1\");if(1!==i.length||1!==o.length)throw new Error(\"Dimensionality of the intermediate results should be 1\");if(i[0]!==r||o[0]!==r)throw new Error(\"Shape of the intermediate results should be equal to logical row count\");var h=\"\\n      float process(int[\".concat(f,\"] indices) {\\n\\n      // get offset of current logical tensor index from the 2-D texture coordinates (TexCoords)\\n      int offset = coordsToOffset(TexCoords, \").concat(u,\", \").concat(c,\");\\n\\n      //determine the logical row for this index\\n      int logical_row_index[1];\\n      logical_row_index[0] = offset / \").concat(n,\";\\n\\n      float norm_factor = _Norm(logical_row_index);\\n\\n      // avoid possible division by 0\\n      // if norm_facor is 0, all elements are zero\\n      // if so, return 0\\n      if(norm_factor == 0.0)\\n        return 0.0;\\n\\n      return exp(_A(indices) - _Max(logical_row_index)) / norm_factor;\\n    }\");return Object.assign(Object.assign({},l),{output:{dims:e.dims,type:e.type,textureType:a.TextureType.unpacked},shaderSource:h})},m=function(t){if(!t||1!==t.length)throw new Error(\"Softmax requires 1 input.\");if(\"float32\"!==t[0].type&&\"float64\"!==t[0].type)throw new Error(\"Invalid input type\")}},564:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseSplitAttributes=e.split=void 0;var n=r(4910),i=r(7273),o=r(5639),a={name:\"Split\",inputNames:[\"A\"],inputTypes:[o.TextureType.unpacked]};e.split=function(t,e,r){c(e);for(var n=i.ShapeUtil.normalizeAxis(r.axis,e[0].dims.length),o=s(t,e,n,r),l=[],f=function(i){l.push(t.run(Object.assign(Object.assign({},a),{cacheHint:\"\".concat(r.cacheKey,\";\").concat(i),get:function(){return u(t,e[0],r,n,i)}}),e))},h=0;h<o;++h)f(h);return l},e.parseSplitAttributes=function(t){var e=t.attributes.getInt(\"axis\",0),r=t.attributes.getInts(\"split\",[]),i=t.outputs.length;return(0,n.createAttributeWithCacheKey)({axis:e,split:r,numOutputs:i})};var s=function(t,e,r,n){return _slicedToArray(i.SplitUtil.splitShape(e[0].dims,r,n.split,n.numOutputs),2)[1].length},u=function(t,e,r,n,s){var u=_slicedToArray(i.SplitUtil.splitShape(e.dims,n,r.split,r.numOutputs),2),c=u[0],l=u[1][s],f=c[s],h=\"\\n      float process(int indices[\".concat(f.length,\"]) {\\n        indices[\").concat(n,\"] += \").concat(l,\";\\n        return _A(indices);\\n      }\\n    \");return Object.assign(Object.assign({},a),{cacheHint:\"\".concat(r.cacheKey,\":\").concat(s),output:{dims:f,type:e.type,textureType:o.TextureType.unpacked},shaderSource:h})},c=function(t){if(!t||1!==t.length)throw new Error(\"Split requires one input.\");if(\"int8\"!==t[0].type&&\"uint8\"!==t[0].type&&\"int16\"!==t[0].type&&\"uint16\"!==t[0].type&&\"int32\"!==t[0].type&&\"uint32\"!==t[0].type&&\"float32\"!==t[0].type&&\"float64\"!==t[0].type&&\"bool\"!==t[0].type)throw new Error(\"Invalid input type.\")}},5416:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseSqueezeAttributes=e.squeezeV13=e.squeeze=void 0;var n=r(7273);e.squeeze=function(t,e,r){i(e);var o=n.ShapeUtil.squeezeShape(e[0].dims,r);return[t.reshapeUnpacked(e[0],o)]},e.squeezeV13=function(t,r){return o(r),(0,e.squeeze)(t,[r[0]],Array.from(r[1].integerData))},e.parseSqueezeAttributes=function(t){return t.attributes.getInts(\"axes\")};var i=function(t){if(!t||1!==t.length)throw new Error(\"Squeeze requires 1 input.\");if(\"string\"===t[0].type)throw new Error(\"invalid input tensor types.\")},o=function(t){if(!t||2!==t.length)throw new Error(\"Squeeze requires 2 inputs.\");if(\"int32\"!==t[1].type)throw new Error(\"Invalid input type.\")}},1240:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.sum=void 0;var n=r(6757),i=r(5639);e.sum=function(t,e){a(e);var r={name:\"Sum\",inputNames:e.map((function(t,e){return\"X\".concat(e)})),inputTypes:new Array(e.length).fill(i.TextureType.unpacked)};return[t.run(Object.assign(Object.assign({},r),{get:function(){return o(t,e,r)}}),e)]};var o=function(t,e,r){var o=(0,n.getGlsl)(t.session.backend.glContext.version),a=e[0].dims.slice(),s=\"\\n      void main() {\\n        vec4 result = \".concat(e.map((function(t,e){return\"\".concat(o.texture2D,\"(X\").concat(e,\",TexCoords)\")})).join(\" + \"),\";\\n        \").concat(o.output,\" = result;\\n      }\\n    \");return Object.assign(Object.assign({},r),{output:{dims:a,type:e[0].type,textureType:i.TextureType.unpacked},hasMain:!0,shaderSource:s})},a=function(t){if(!t||0===t.length)throw new Error(\"Sum requires inputs.\");for(var e=t[0].dims.length,r=1;r<t.length;r++){if(e!==t[r].dims.length)throw new Error(\"Input shapes are mismatched.\");for(var n=0;n<e;n++)if(t[0].dims[n]!==t[r].dims[n])throw new Error(\"Input shapes are not matched.\")}if(\"float32\"!==t[0].type&&\"float64\"!==t[0].type)throw new Error(\"Invalid input type.\");for(var i=1;i<t.length;i++)if(t[0].type!==t[i].type)throw new Error(\"Input types are not matched.\")}},5944:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.tile=void 0;var n=r(6145),i=r(5639);e.tile=function(t,e){a(e);var r={name:\"Tile\",inputNames:[\"A\"],inputTypes:[i.TextureType.unpacked]};return[t.run(Object.assign(Object.assign({},r),{get:function(){return o(t,e,r)}}),e)]};var o=function(t,e,r){for(var n=e[0].dims.slice(),o=new Array(n.length),a=[],s=0;s<n.length;s++)o[s]=n[s]*e[1].numberData[s],a.push(\"inputIdx[\".concat(s,\"] = int(mod(float(outputIdx[\").concat(s,\"]), \").concat(n[s],\".));\"));var u=o.length,c=\"\\n      float process(int outputIdx[\".concat(u,\"]) {\\n        int inputIdx[\").concat(u,\"];\\n        \").concat(a.join(\"\\n\"),\"\\n        return _A(inputIdx);\\n      }\\n    \");return Object.assign(Object.assign({},r),{output:{dims:o,type:e[0].type,textureType:i.TextureType.unpacked},shaderSource:c})},a=function(t){if(!t||2!==t.length)throw new Error(\"Tile requires 2 input.\");if(1!==t[1].dims.length)throw new Error(\"The second input shape must 1 dimension.\");if(t[1].dims[0]!==t[0].dims.length)throw new Error(\"Invalid input shape.\");if(-1===n.NUMBER_TYPES.indexOf(t[0].type))throw new Error(\"Invalid input type.\");if(\"int32\"!==t[1].type&&\"int16\"!==t[1].type)throw new Error(\"Invalid repeat type.\")}},5707:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseTransposeAttributes=e.transpose=void 0;var n=r(4910),i=r(7273),o=r(5639),a={name:\"Transpose\",inputNames:[\"A\"],inputTypes:[o.TextureType.unpacked]};e.transpose=function(t,e,r){return f(e),[t.run(Object.assign(Object.assign({},a),{cacheHint:r.cacheKey,get:function(){return s(t,e[0],r.perm)}}),e)]},e.parseTransposeAttributes=function(t){return(0,n.createAttributeWithCacheKey)({perm:t.attributes.getInts(\"perm\",[])})};var s=function(t,e,r){var n=e.dims;r=u(n,r);var i=c(n,r),s=n.length,f=\"\\n      \".concat(l(\"perm\",r,s),\"\\n      float process(int indices[\").concat(s,\"]) {\\n        int a[\").concat(s,\"];\\n        perm(a, indices);\\n        return _A(a);\\n      }\");return Object.assign(Object.assign({},a),{output:{dims:i,type:e.type,textureType:o.TextureType.unpacked},shaderSource:f})},u=function(t,e){return e&&e.length!==t.length&&(e=_toConsumableArray(t.keys()).reverse()),e},c=function(t,e){return e=u(t,e),i.ShapeUtil.sortBasedOnPerm(t,e)},l=function(t,e,r){var n=[];n.push(\"void \".concat(t,\"(out int a[\").concat(r,\"], int src[\").concat(r,\"]) {\"));for(var i=0;i<r;++i)n.push(\"\\ta[\".concat(e[i],\"]=src[\").concat(i,\"];\"));return n.push(\"\\t}\"),n.join(\"\\n\")},f=function(t){if(!t||1!==t.length)throw new Error(\"Transpose requires 1 input.\");if(\"float32\"!==t[0].type&&\"float64\"!==t[0].type)throw new Error(\"input should be float tensor\")}},2488:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.encodeAsUint8=void 0;var n=r(6757),i=r(5639);e.encodeAsUint8=function(t,e){var r=e.shape,o=(0,n.getGlsl)(t.session.backend.glContext.version),a=\"\\n    const float FLOAT_MAX = 1.70141184e38;\\n    const float FLOAT_MIN = 1.17549435e-38;\\n\\n    bool isNaN(float val) {\\n      return (val < 1.0 || 0.0 < val || val == 0.0) ? false : true;\\n    }\\n\\n    highp vec4 encodeAsUint8(highp float v) {\\n      if (isNaN(v)) {\\n        return vec4(255, 255, 255, 255);\\n      }\\n\\n      highp float av = abs(v);\\n\\n      if(av < FLOAT_MIN) {\\n        return vec4(0.0, 0.0, 0.0, 0.0);\\n      } else if(v > FLOAT_MAX) {\\n        return vec4(0.0, 0.0, 128.0, 127.0) / 255.0;\\n      } else if(v < -FLOAT_MAX) {\\n        return vec4(0.0, 0.0,  128.0, 255.0) / 255.0;\\n      }\\n\\n      highp vec4 c = vec4(0,0,0,0);\\n\\n      highp float e = floor(log2(av));\\n      highp float m = exp2(fract(log2(av))) - 1.0;\\n\\n      c[2] = floor(128.0 * m);\\n      m -= c[2] / 128.0;\\n      c[1] = floor(32768.0 * m);\\n      m -= c[1] / 32768.0;\\n      c[0] = floor(8388608.0 * m);\\n\\n      highp float ebias = e + 127.0;\\n      c[3] = floor(ebias / 2.0);\\n      ebias -= c[3] * 2.0;\\n      c[2] += floor(ebias) * 128.0;\\n\\n      c[3] += 128.0 * step(0.0, -v);\\n\\n      return c / 255.0;\\n    }\\n\\n    void main() {\\n      float value = \".concat(o.texture2D,\"(X,TexCoords).r;\\n      \").concat(o.output,\" = encodeAsUint8(value);\\n    }\"),s={name:\"Uint8Encode\",inputTypes:[i.TextureType.unpacked],inputNames:[\"X\"],output:{dims:r,type:e.tensor.type,textureType:i.TextureType.downloadUint8AsFloat},shaderSource:a,hasMain:!0};return t.executeProgram(s,[e.tensor])}},9087:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.tanh=e.tan=e.sqrt=e.sin=e.sigmoid=e.relu=e.not=e.neg=e.log=e.parseLeakyReluAttributes=e.leakyRelu=e.identity=e.floor=e.exp=e.parseEluAttributes=e.elu=e.cos=e.ceil=e.clipV11=e.parseClipAttributes=e.clip=e.atan=e.asin=e.acos=e.abs=e.glslTanh=e.glslTan=e.glslSqrt=e.glslSigmoid=e.glslRelu=e.glslSin=e.glslNot=e.glslNeg=e.glslLog=e.glslLeakyRelu=e.glslIdentity=e.glslClip=e.glslFloor=e.glslExp=e.glslElu=e.glslCos=e.glslCeil=e.glslAtan=e.glslAsin=e.glslAcos=e.glslAbs=void 0;var n=r(4910),i=r(7273),o=r(1997),a=r(6757),s=r(5639);function u(){return O(\"abs\")}function c(){return O(\"acos\")}function l(){return O(\"asin\")}function f(){return O(\"atan\")}function h(){return O(\"ceil\")}function p(){return O(\"cos\")}function d(t){var e=\"elu\";return{body:\"\\n  const float alpha = float(\".concat(t,\");\\n\\n  float \").concat(e,\"_(float a) {\\n    return a >= 0.0 ? a: (exp(a) - 1.0) * alpha;\\n  }\\n  vec4 \").concat(e,\"_(vec4 v) {\\n    return vec4(\").concat(e,\"_(v.x), \").concat(e,\"_(v.y), \").concat(e,\"_(v.z), \").concat(e,\"_(v.w));\\n  }\\n  \"),name:e,type:o.FunctionType.ValueBased}}function m(){return O(\"exp\")}function y(){return O(\"floor\")}function g(t,e){var r=\"clip\";return{body:\"\\n  const float min = float(\".concat(t,\");\\n  const float max = float(\").concat(e,\");\\n\\n  float \").concat(r,\"_(float a) {\\n    return clamp(a, min, max);\\n  }\\n  vec4 \").concat(r,\"_(vec4 v) {\\n    return clamp(v, min, max);\\n  }\\n  \"),name:r,type:o.FunctionType.ValueBased}}function b(){var t=\"indentity\";return{body:\"\\n  float \".concat(t,\"_(float a) {\\n    return a;\\n  }\\n  vec4 \").concat(t,\"_(vec4 v) {\\n    return v;\\n  }\\n  \"),name:t,type:o.FunctionType.ValueBased}}function v(t){var e=\"leakyRelu\";return{body:\"\\n  const float alpha = float(\".concat(t,\");\\n\\n  float \").concat(e,\"_(float a) {\\n    return a < 0.0 ? a * alpha : a;\\n  }\\n  vec4 \").concat(e,\"_(vec4 v) {\\n    return vec4(\").concat(e,\"_(v.x), \").concat(e,\"_(v.y), \").concat(e,\"_(v.z), \").concat(e,\"_(v.w));\\n  }\\n  \"),name:e,type:o.FunctionType.ValueBased}}function w(){return O(\"log\")}function _(){var t=\"neg\";return{body:\"\\n  float \".concat(t,\"_(float a) {\\n    return -a;\\n  }\\n  vec4 \").concat(t,\"_(vec4 v) {\\n    return -v;\\n  }\\n  \"),name:t,type:o.FunctionType.ValueBased}}function x(){var t=\"not\";return{body:\"\\n  float \".concat(t,\"_(float a) {\\n    return float( ! bool(a) );\\n  }\\n  bool \").concat(t,\"_(bool a) {\\n    return !a;\\n  }\\n  vec4 \").concat(t,\"_(vec4 v) {\\n    return vec4(!bool(v.x), !bool(v.y), !bool(v.z), !bool(v.w));\\n  }\\n  bvec4 \").concat(t,\"_(bvec4 v) {\\n    return bvec4(!v.x, !v.y, !v.z, !v.w);\\n  }\\n  \"),name:t,type:o.FunctionType.ValueBased}}function k(){return O(\"sin\")}function E(){var t=\"relu\";return{body:\"\\n  float \".concat(t,\"_(float a) {\\n    return max( a, 0.0 );\\n  }\\n  vec4 \").concat(t,\"_(vec4 v) {\\n    return max( v, 0.0 );\\n  }\\n  \"),name:t,type:o.FunctionType.ValueBased}}function S(){var t=\"sigmoid\";return{body:\"\\n  float \".concat(t,\"_(float a) {\\n    return 1.0 / (1.0 + exp(-a));\\n  }\\n  vec4 \").concat(t,\"_(vec4 v) {\\n    return 1.0 / (1.0 + exp(-v));\\n  }\\n  \"),name:t,type:o.FunctionType.ValueBased}}function T(){return O(\"sqrt\")}function A(){return O(\"tan\")}function D(){var t=\"tanh\";return{body:\"\\n  float \".concat(t,\"_(float a) {\\n    a = clamp(a, -10., 10.);\\n    a = exp(2.*a);\\n    return (a - 1.) / (a + 1.);\\n  }\\n  vec4 \").concat(t,\"_(vec4 v) {\\n    v = clamp(v, -10., 10.);\\n    v = exp(2.*v);\\n    return (v - 1.) / (v + 1.);\\n  }\\n  \"),name:t,type:o.FunctionType.ValueBased}}function O(t){return{body:\"\\n  float \".concat(t,\"_(float a) {\\n    return \").concat(t,\"(a);\\n  }\\n  vec4 \").concat(t,\"_(vec4 v) {\\n    return \").concat(t,\"(v);\\n  }\\n  \"),name:t,type:o.FunctionType.ValueBased}}e.glslAbs=u,e.glslAcos=c,e.glslAsin=l,e.glslAtan=f,e.glslCeil=h,e.glslCos=p,e.glslElu=d,e.glslExp=m,e.glslFloor=y,e.glslClip=g,e.glslIdentity=b,e.glslLeakyRelu=v,e.glslLog=w,e.glslNeg=_,e.glslNot=x,e.glslSin=k,e.glslRelu=E,e.glslSigmoid=S,e.glslSqrt=T,e.glslTan=A,e.glslTanh=D;var I=function(t,e,r,n){var i=t.session.pack?s.TextureType.packed:s.TextureType.unpacked,o={name:r.name,inputTypes:[i],inputNames:[\"A\"],cacheHint:n};return Object.assign(Object.assign({},o),{get:function(){return function(t,e,r,n){var i=t.session.pack?s.TextureType.packed:s.TextureType.unpacked,o=(0,a.getGlsl)(t.session.backend.glContext.version);return Object.assign(Object.assign({},e),{output:{dims:r.dims,type:r.type,textureType:i},shaderSource:\"\\n     \".concat(n.body,\"\\n     void main() {\\n       vec4 v = \").concat(o.texture2D,\"(A, TexCoords);\\n       v = \").concat(n.name,\"_(v);\\n       \").concat(o.output,\" = v;\\n     }\\n     \"),hasMain:!0})}(t,o,e,r)}})};e.abs=function(t,e){return[t.run(I(t,e[0],u()),e)]},e.acos=function(t,e){return[t.run(I(t,e[0],c()),e)]},e.asin=function(t,e){return[t.run(I(t,e[0],l()),e)]},e.atan=function(t,e){return[t.run(I(t,e[0],f()),e)]},e.clip=function(t,e,r){return[t.run(I(t,e[0],g(r.min,r.max),r.cacheKey),e)]},e.parseClipAttributes=function(t){return(0,n.createAttributeWithCacheKey)({min:t.attributes.getFloat(\"min\",i.MIN_CLIP),max:t.attributes.getFloat(\"max\",i.MAX_CLIP)})},e.clipV11=function(t,r){var n=P(t,r);return(0,e.clip)(t,[r[0]],n)};var P=function(t,e){if(e.length>=3&&(!t.session.isInitializer(e[1].dataId)||!t.session.isInitializer(e[2].dataId)))throw new Error(\"dynamic clip attributes are not allowed\");var r=e.length>=3?e[1].numberData[0]:i.MIN_CLIP,o=e.length>=3?e[2].numberData[0]:i.MAX_CLIP;return(0,n.createAttributeWithCacheKey)({min:r,max:o})};e.ceil=function(t,e){return[t.run(I(t,e[0],h()),e)]},e.cos=function(t,e){return[t.run(I(t,e[0],p()),e)]},e.elu=function(t,e,r){return[t.run(I(t,e[0],d(r.alpha),r.cacheKey),e)]},e.parseEluAttributes=function(t){return(0,n.createAttributeWithCacheKey)({alpha:t.attributes.getFloat(\"alpha\",1)})},e.exp=function(t,e){return[t.run(I(t,e[0],m()),e)]},e.floor=function(t,e){return[t.run(I(t,e[0],y()),e)]},e.identity=function(t,e){return[t.run(I(t,e[0],b()),e)]},e.leakyRelu=function(t,e,r){return[t.run(I(t,e[0],v(r.alpha),r.cacheKey),e)]},e.parseLeakyReluAttributes=function(t){return(0,n.createAttributeWithCacheKey)({alpha:t.attributes.getFloat(\"alpha\",.01)})},e.log=function(t,e){return[t.run(I(t,e[0],w()),e)]},e.neg=function(t,e){return[t.run(I(t,e[0],_()),e)]},e.not=function(t,e){return[t.run(I(t,e[0],x()),e)]},e.relu=function(t,e){return[t.run(I(t,e[0],E()),e)]},e.sigmoid=function(t,e){return[t.run(I(t,e[0],S()),e)]},e.sin=function(t,e){return[t.run(I(t,e[0],k()),e)]},e.sqrt=function(t,e){return[t.run(I(t,e[0],T()),e)]},e.tan=function(t,e){return[t.run(I(t,e[0],A()),e)]},e.tanh=function(t,e){return[t.run(I(t,e[0],D()),e)]}},540:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createUnpackProgramInfoLoader=e.createUnpackProgramInfo=void 0;var n=r(6757),i=r(5639),o=r(432),a=r(5614),s={name:\"unpack\",inputNames:[\"A\"],inputTypes:[i.TextureType.packed]};e.createUnpackProgramInfo=function(t,e){var r=e.dims.length,u=(0,a.getChannels)(\"rc\",r),c=u.slice(-2),l=(0,o.getCoordsDataType)(r),f=(0,a.unpackFromChannel)(),h=0===e.dims.length?\"\":function(t,e){if(1===t)return\"rc\";for(var r=\"\",n=0;n<t;n++)r+=e[n],n<t-1&&(r+=\",\");return r}(r,u),p=r<=1?\"rc\":\"vec2(\".concat(c.join(\",\"),\")\"),d=\"\\n    \".concat(f,\"\\n    void main() {\\n      \").concat(l,\" rc = getOutputCoords();\\n\\n       // Sample the texture with the coords to get the rgba channel value.\\n       vec4 packedInput = getA(\").concat(h,\");\\n\\n       \").concat((0,n.getGlsl)(t.session.backend.glContext.version).output,\" = vec4(getChannel(packedInput, \").concat(p,\"), 0, 0, 0);\\n     }\\n   \");return Object.assign(Object.assign({},s),{hasMain:!0,output:{dims:e.dims,type:e.type,textureType:i.TextureType.unpacked},shaderSource:d})},e.createUnpackProgramInfoLoader=function(t,r){return Object.assign(Object.assign({},s),{get:function(){return(0,e.createUnpackProgramInfo)(t,r)}})}},7862:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.parseUnsqueezeAttributes=e.unsqueezeV13=e.unsqueeze=void 0;var n=r(7273);e.unsqueeze=function(t,e,r){i(e);var o=n.ShapeUtil.unsqueezeShape(e[0].dims,r);return[t.reshapeUnpacked(e[0],o)]},e.unsqueezeV13=function(t,r){return o(r),(0,e.unsqueeze)(t,[r[0]],Array.from(r[1].integerData))},e.parseUnsqueezeAttributes=function(t){return t.attributes.getInts(\"axes\")};var i=function(t){if(!t||1!==t.length)throw new Error(\"Unsqueeze requires 1 input.\");if(\"string\"===t[0].type)throw new Error(\"invalid input tensor types.\")},o=function(t){if(!t||2!==t.length)throw new Error(\"Unsqueeze requires 2 inputs.\");if(\"int32\"!==t[1].type)throw new Error(\"Invalid input type.\")}},3980:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.scalesValidation=e.validateInputs=e.parseUpsampleAttributes=e.parseUpsampleAttributesV9=e.parseUpsampleAttributesV7=e.upsample=void 0;var n=r(4910),i=r(6757),o=r(5639),a={name:\"Upsample\",inputNames:[\"X\"],inputTypes:[o.TextureType.unpacked]};e.upsample=function(t,r,n){return(0,e.validateInputs)(r,n),[t.run(Object.assign(Object.assign({},a),{cacheHint:n.cacheKey,get:function(){return s(t,r,n)}}),r)]},e.parseUpsampleAttributesV7=function(t){return(0,e.parseUpsampleAttributes)(t,7)},e.parseUpsampleAttributesV9=function(t){return(0,e.parseUpsampleAttributes)(t,9)},e.parseUpsampleAttributes=function(t,r){var i=r>=10,o=t.attributes.getString(\"mode\",\"nearest\");if(\"nearest\"!==o&&\"linear\"!==o&&(r<11||\"cubic\"!==o))throw new Error(\"unrecognized mode: \".concat(o));var a=[];r<9&&(a=t.attributes.getFloats(\"scales\"),(0,e.scalesValidation)(a,o,i));var s=t.attributes.getFloat(\"extrapolation_value\",0),u=r>10?t.attributes.getString(\"coordinate_transformation_mode\",\"half_pixel\"):\"asymmetric\";if(-1===[\"asymmetric\",\"pytorch_half_pixel\",\"tf_half_pixel_for_nn\",\"align_corners\",\"tf_crop_and_resize\",\"half_pixel\"].indexOf(u))throw new Error(\"coordinate_transform_mode '\".concat(u,\"' is not supported\"));var c=\"tf_crop_and_resize\"===u,l=c,f=\"nearest\"===o&&r>=11?t.attributes.getString(\"nearest_mode\",\"round_prefer_floor\"):\"\";if(-1===[\"round_prefer_floor\",\"round_prefer_ceil\",\"floor\",\"ceil\",\"\"].indexOf(f))throw new Error(\"nearest_mode '\".concat(f,\"' is not supported\"));var h=t.attributes.getFloat(\"cubic_coeff_a\",-.75),p=0!==t.attributes.getInt(\"exclude_outside\",0);if(p&&\"cubic\"!==o)throw new Error(\"exclude_outside can be set to 1 only when mode is CUBIC.\");var d=r<11||\"nearest\"===o&&\"asymmetric\"===u&&\"floor\"===f,m=0,y=0,g=0;return r>10?t.inputs.length>2?(m=1,y=2,g=3):(y=1,g=2):9===r&&(y=1),(0,n.createAttributeWithCacheKey)({opset:r,isResize:i,mode:o,scales:a,extrapolationValue:s,coordinateTransformMode:u,useExtrapolation:l,needRoiInput:c,nearestMode:f,cubicCoefficientA:h,excludeOutside:p,useNearest2xOptimization:d,roiInputIdx:m,scalesInputIdx:y,sizesInputIdx:g})};var s=function(t,e,r){for(var n=(0,i.getGlsl)(t.session.backend.glContext.version),s=_slicedToArray(t.calculateTextureWidthAndHeight(e[0].dims,o.TextureType.unpacked),2),u=s[0],c=s[1],l=e[0].dims.map((function(t,e){return Math.floor(t*r.scales[e])})),f=_slicedToArray(t.calculateTextureWidthAndHeight(l,o.TextureType.unpacked),2),h=f[0],p=f[1],d=l.length,m=new Array(d),y=new Array(d),g=\"\\n      int output_pitches[\".concat(d,\"];\\n      int input_pitches[\").concat(d,\"];\\n      \"),b=d-1;b>=0;b--)m[b]=b===d-1?1:m[b+1]*l[b+1],y[b]=b===d-1?1:y[b+1]*e[0].dims[b+1],g+=\"\\n        output_pitches[\".concat(b,\"] = \").concat(m[b],\";\\n        input_pitches[\").concat(b,\"] = \").concat(y[b],\";\\n        \");var v=\"\\n      float getInputFloat(int index) {\\n        vec2 coords = offsetToCoords(index, \".concat(u,\", \").concat(c,\");\\n        float value = getColorAsFloat(\").concat(n.texture2D,\"(X, coords));\\n        return value;\\n      }\\n      \"),w=\"nearest\"===r.mode?\"\\n    \".concat(v,\"\\n    float process(int indices[\").concat(d,\"]) {\\n      int input_index = 0;\\n      int output_index = coordsToOffset(TexCoords, \").concat(h,\", \").concat(p,\");\\n\\n      \").concat(g,\"\\n\\n      int d, m;\\n      for (int dim = 0; dim < \").concat(d,\"; ++dim) {\\n        d = output_index / output_pitches[dim];\\n        m = output_index - d * output_pitches[dim];\\n        output_index = m;\\n\\n        if (scales[dim] != 1 && d > 0) {\\n          int d2 = d / scales[dim];\\n          m = d - d2 * scales[dim];\\n          d = d2;\\n        }\\n        input_index += input_pitches[dim] * d;\\n      }\\n\\n      return getInputFloat(input_index);\\n    }\"):4===d?\"\\n    \".concat(v,\"\\n    float process(int indices[4]) {\\n      int input_index = 0;\\n      int output_index = coordsToOffset(TexCoords, \").concat(h,\", \").concat(p,\");\\n\\n      \").concat(g,\"\\n\\n      int m;\\n      int index_of_dim0, index_of_dim1, index_of_dim2, index_of_dim3;\\n      index_of_dim0 = output_index / output_pitches[0];\\n      m = output_index - index_of_dim0 * output_pitches[0];\\n      index_of_dim1 = m / output_pitches[1];\\n      m = m - index_of_dim1 * output_pitches[1];\\n      index_of_dim2 = m / output_pitches[2];\\n      m = m - index_of_dim2 * output_pitches[2];\\n      index_of_dim3 = m;\\n\\n      int index_of_input_dim2, index_of_input_dim3, x_offset, y_offset;\\n      index_of_input_dim2 = index_of_dim2 / scales[2];\\n      y_offset = index_of_dim2 - index_of_input_dim2 * scales[2];\\n      index_of_input_dim3 = index_of_dim3 / scales[3];\\n      x_offset = index_of_dim3 - index_of_input_dim3 * scales[3];\\n\\n      input_index = index_of_dim0 * input_pitches[0] +\\n            index_of_dim1 * input_pitches[1] +\\n            index_of_input_dim2 * input_pitches[2] +\\n            index_of_input_dim3;\\n\\n      float x00 = getInputFloat(input_index);\\n      float x10, x01, x11;\\n\\n      bool end_of_dim2 = false;\\n      if (index_of_input_dim2 == (\").concat(e[0].dims[2],\" - 1)) {\\n        // It's the end in dimension 2\\n        x01 = x00;\\n        end_of_dim2 = true;\\n      } else {\\n        x01 = getInputFloat(input_index + input_pitches[2]);\\n      }\\n\\n      if (index_of_input_dim3 == (input_pitches[2] - 1)) {\\n        // It's the end in dimension 3\\n        x10 = x00;\\n        x11 = x01;\\n      }\\n      else {\\n        x10 = getInputFloat(input_index + 1);\\n        x11 = end_of_dim2 ? x10 : getInputFloat(input_index + input_pitches[2] + 1);\\n      }\\n\\n      float y0 = x00 + float(y_offset) * (x01 - x00) / float(scales[2]);\\n      float y1 = x10 + float(y_offset) * (x11 - x10) / float(scales[2]);\\n      return y0 + float(x_offset) * (y1 - y0) / float(scales[3]);\\n    }\"):\"\\n    \".concat(v,\"\\n    float process(int indices[2]) {\\n      int input_index = 0;\\n      int output_index = coordsToOffset(TexCoords, \").concat(h,\", \").concat(p,\");\\n\\n      \").concat(g,\"\\n\\n      int m;\\n      int index_of_dim0, index_of_dim1;\\n      index_of_dim0 = output_index / output_pitches[0];\\n      m = output_index - index_of_dim0 * output_pitches[0];\\n      index_of_dim1 = m;\\n\\n      int index_of_input_dim0, index_of_input_dim1, x_offset, y_offset;\\n      index_of_input_dim0 = index_of_dim0 / scales[0];\\n      y_offset = index_of_dim0 - index_of_input_dim0 * scales[0];\\n      index_of_input_dim1 = index_of_dim1 / scales[1];\\n      x_offset = index_of_dim1 - index_of_input_dim1 * scales[1];\\n\\n      input_index = index_of_input_dim0 * input_pitches[0] + index_of_input_dim1;\\n\\n      float x00 = getInputFloat(input_index);\\n      float x10, x01, x11;\\n\\n      bool end_of_dim0 = false;\\n      if (index_of_input_dim0 == (\").concat(e[0].dims[0],\" - 1)) {\\n        // It's the end in dimension 0\\n        x01 = x00;\\n        end_of_dim0 = true;\\n      } else {\\n        x01 = getInputFloat(input_index + input_pitches[0]);\\n      }\\n\\n      if (index_of_input_dim1 == (input_pitches[0] - 1)) {\\n        // It's the end in dimension 1\\n        x10 = x00;\\n        x11 = x01;\\n      }\\n      else {\\n        x10 = getInputFloat(input_index + 1);\\n        x11 = end_of_dim0 ? x10 : getInputFloat(input_index + input_pitches[0] + 1);\\n      }\\n\\n      float y0 = x00 + float(y_offset) * (x01 - x00) / float(scales[0]);\\n      float y1 = x10 + float(y_offset) * (x11 - x10) / float(scales[0]);\\n      return y0 + float(x_offset) * (y1 - y0) / float(scales[1]);\\n    }\");return Object.assign(Object.assign({},a),{output:{dims:l,type:e[0].type,textureType:o.TextureType.unpacked},shaderSource:w,variables:[{name:\"scales\",type:\"int\",arrayLength:r.scales.length,data:r.scales.map((function(t){return Math.ceil(t)}))}]})};e.validateInputs=function(t,e){if(!t||e.opset<9&&1!==t.length||e.opset>=9&&e.opset<11&&2!==t.length||e.opset>=11&&t.length<2)throw new Error(\"invalid inputs.\");if(e.scales.length>0&&t[0].dims.length!==e.scales.length)throw new Error(\"Invalid input shape.\");if(\"string\"===t[0].type)throw new Error(\"Invalid input tensor types.\")},e.scalesValidation=function(t,e,r){if(r){var n,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;)if(n.value<=0)throw new Error(\"Scale value should be greater than 0.\")}catch(t){i.e(t)}finally{i.f()}}else{var o,a=_createForOfIteratorHelper(t);try{for(a.s();!(o=a.n()).done;)if(o.value<1)throw new Error(\"Scale value should be greater than or equal to 1.\")}catch(t){a.e(t)}finally{a.f()}}if(!(\"linear\"!==e&&\"cubic\"!==e||2===t.length||4===t.length&&1===t[0]&&1===t[1]))throw new Error(\"'Linear' mode and 'Cubic' mode only support 2-D inputs ('Bilinear', 'Bicubic')         or 4-D inputs with the corresponding outermost 2 scale values being 1         in the \".concat(r?\"Resize\":\"Upsample\",\" opeartor.\"))}},2757:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ProgramManager=void 0;var n=r(1670),i=r(1315),o=r(8897),a=r(6757);e.ProgramManager=function(){return _createClass((function t(e,r,n){_classCallCheck(this,t),this.profiler=e,this.glContext=r,this.textureLayoutStrategy=n,this.repo=new Map,this.attributesBound=!1}),[{key:\"getArtifact\",value:function(t){return this.repo.get(t)}},{key:\"setArtifact\",value:function(t,e){this.repo.set(t,e)}},{key:\"run\",value:function(t,e,r){var n,o=this;this.profiler.event(\"op\",\"ProgramManager.run \".concat(null!==(n=t.programInfo.name)&&void 0!==n?n:\"unknown kernel\"),(function(){var n,a=o.glContext.gl,s=t.program;a.useProgram(s);try{o.bindOutput(r),o.attributesBound||o.bindAttributes(t.attribLocations),o.bindUniforms(t.uniformLocations,null!==(n=t.programInfo.variables)&&void 0!==n?n:[],e)}catch(e){throw i.Logger.error(\"ProgramManager\",t.programInfo.shaderSource),e}o.profiler.event(\"backend\",\"GlContext.draw()\",(function(){o.glContext.draw()}))}),this.glContext)}},{key:\"dispose\",value:function(){var t=this;this.vertexShader&&this.glContext.deleteShader(this.vertexShader),this.repo.forEach((function(e){return t.glContext.deleteProgram(e.program)}))}},{key:\"build\",value:function(t,e,r){var n=this;return this.profiler.event(\"backend\",\"ProgramManager.build\",(function(){var i=new o.GlslPreprocessor(n.glContext,t,e,r),a=i.preprocess(),s=n.compile(a);return{programInfo:t,program:s,uniformLocations:n.getUniformLocations(s,i.context.programInfo.inputNames,i.context.programInfo.variables),attribLocations:n.getAttribLocations(s)}}))}},{key:\"compile\",value:function(t){if(!this.vertexShader){i.Logger.verbose(\"ProrgramManager\",\"Compiling and caching Vertex shader for the first time\");var e=(0,a.getVertexShaderSource)(this.glContext.version);this.vertexShader=this.glContext.compileShader(e,this.glContext.gl.VERTEX_SHADER)}n.env.debug&&i.Logger.verbose(\"ProrgramManager\",\"FragShader:\\n\".concat(t,\"\\n\"));var r=this.glContext.compileShader(t,this.glContext.gl.FRAGMENT_SHADER),o=this.glContext.createProgram(this.vertexShader,r);return this.glContext.deleteShader(r),o}},{key:\"bindOutput\",value:function(t){var e=t.width,r=t.height;i.Logger.verbose(\"ProrgramManager\",\"Binding output texture to Framebuffer: w/h=\".concat(e,\"/\").concat(r,\", shape=\").concat(t.shape,\", type=\").concat(t.tensor.type)),this.glContext.attachFramebuffer(t.texture,e,r)}},{key:\"bindAttributes\",value:function(t){var e=t.position,r=t.textureCoord;this.glContext.setVertexAttributes(e,r),this.attributesBound=!0}},{key:\"bindUniforms\",value:function(t,e,r){var n,i,o=this,a=this.glContext.gl,s=0,u=_createForOfIteratorHelper(t);try{var c=function(){var t=i.value,u=t.name,c=t.type,l=t.location,f=t.arrayLength,h=null===(n=e.find((function(t){return t.name===u})))||void 0===n?void 0:n.data;if(\"sampler2D\"!==c&&!h)throw new Error(\"variable '\".concat(u,\"' does not have data defined in program info\"));switch(c){case\"sampler2D\":o.bindTexture(r[s],l,s),s++;break;case\"float\":f?a.uniform1fv(l,h):a.uniform1f(l,h);break;case\"int\":f?a.uniform1iv(l,h):a.uniform1i(l,h);break;default:throw new Error(\"Uniform not implemented: \".concat(c))}};for(u.s();!(i=u.n()).done;)c()}catch(t){u.e(t)}finally{u.f()}}},{key:\"bindTexture\",value:function(t,e,r){this.glContext.bindTextureToUniform(t.texture,r,e)}},{key:\"getAttribLocations\",value:function(t){return{position:this.getAttribLocation(t,\"position\"),textureCoord:this.getAttribLocation(t,\"textureCoord\")}}},{key:\"getUniformLocations\",value:function(t,e,r){var n=[];if(e){var i,o=_createForOfIteratorHelper(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;n.push({name:a,type:\"sampler2D\",location:this.getUniformLocation(t,a)})}}catch(t){o.e(t)}finally{o.f()}}if(r){var s,u=_createForOfIteratorHelper(r);try{for(u.s();!(s=u.n()).done;){var c=s.value;n.push(Object.assign(Object.assign({},c),{location:this.getUniformLocation(t,c.name)}))}}catch(t){u.e(t)}finally{u.f()}}return n}},{key:\"getUniformLocation\",value:function(t,e){var r=this.glContext.gl.getUniformLocation(t,e);if(null===r)throw new Error(\"Uniform \".concat(e,\" not found.\"));return r}},{key:\"getAttribLocation\",value:function(t,e){return this.glContext.gl.getAttribLocation(t,e)}}])}()},2171:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.WebGLSessionHandler=void 0;var n=r(1315),i=r(5881),o=r(7860),a=r(4110),s=r(2757),u=r(7618),c=r(5243);e.WebGLSessionHandler=function(){return _createClass((function t(e,r){_classCallCheck(this,t),this.backend=e,this.context=r,this.layoutStrategy=new u.PreferLogicalStrategy(e.glContext.maxTextureSize),this.programManager=new s.ProgramManager(this.context.profiler,e.glContext,this.layoutStrategy),this.textureManager=new c.TextureManager(e.glContext,this.layoutStrategy,this.context.profiler,{reuseTextures:\"full\"===e.textureCacheMode}),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache=new Map,this.pack=e.pack,this.pack2unpackMap=new Map,this.unpack2packMap=new Map}),[{key:\"createInferenceHandler\",value:function(){return new o.WebGLInferenceHandler(this)}},{key:\"onGraphInitialized\",value:function(t){var e=t.getValues().filter((function(t){return-1===t.from&&t.tensor})).map((function(t){return t.tensor.dataId}));this.initializers=new Set(e)}},{key:\"isInitializer\",value:function(t){return!!this.initializers&&this.initializers.has(t)}},{key:\"addInitializer\",value:function(t){this.initializers.add(t)}},{key:\"getTextureData\",value:function(t,e){return e?this.packedTextureDataCache.get(t):this.unpackedTextureDataCache.get(t)}},{key:\"setTextureData\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n.Logger.verbose(\"WebGLSessionHandler\",\"Storing Texture data in cache\"),r?this.packedTextureDataCache.set(t,e):this.unpackedTextureDataCache.set(t,e)}},{key:\"dispose\",value:function(){var t=this;this.programManager.dispose(),this.textureManager.clearActiveTextures(),this.packedTextureDataCache.forEach((function(e){return t.textureManager.releaseTexture(e,!0)})),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache.forEach((function(e){return t.textureManager.releaseTexture(e,!0)})),this.unpackedTextureDataCache=new Map}},{key:\"resolve\",value:function(t,e,r){var n=(0,i.resolveOperator)(t,e,a.WEBGL_OP_RESOLVE_RULES);return{impl:n.opImpl,context:n.opInit?n.opInit(t,r):t}}}])}()},9622:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.Uint8DataEncoder=e.RGBAFloatDataEncoder=e.RedFloat32DataEncoder=void 0;var n=r(1315);e.RedFloat32DataEncoder=function(){return _createClass((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(_classCallCheck(this,t),1===r)this.internalFormat=e.R32F,this.format=e.RED,this.textureType=e.FLOAT,this.channelSize=r;else{if(4!==r)throw new Error(\"Invalid number of channels: \".concat(r));this.internalFormat=e.RGBA32F,this.format=e.RGBA,this.textureType=e.FLOAT,this.channelSize=r}}),[{key:\"encode\",value:function(t,e){var r,i;return t.constructor!==Float32Array&&(n.Logger.warning(\"Encoder\",\"data was not of type Float32; creating new Float32Array\"),i=new Float32Array(t)),e*this.channelSize>t.length?(n.Logger.warning(\"Encoder\",\"Source data too small. Allocating larger array\"),i=t,r=this.allocate(e*this.channelSize),i.forEach((function(t,e){return r[e]=t}))):r=i=t,r}},{key:\"allocate\",value:function(t){return new Float32Array(4*t)}},{key:\"decode\",value:function(t,e){return 1===this.channelSize?t.filter((function(t,e){return e%4==0})).subarray(0,e):t.subarray(0,e)}}])}(),e.RGBAFloatDataEncoder=function(){return _createClass((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if(_classCallCheck(this,t),1!==r&&4!==r)throw new Error(\"Invalid number of channels: \".concat(r));this.internalFormat=e.RGBA,this.format=e.RGBA,this.channelSize=r,this.textureType=n||e.FLOAT}),[{key:\"encode\",value:function(t,e){var r=t;return 1===this.channelSize&&(n.Logger.verbose(\"Encoder\",\"Exploding into a larger array\"),r=this.allocate(e),t.forEach((function(t,e){return r[4*e]=t}))),r}},{key:\"allocate\",value:function(t){return new Float32Array(4*t)}},{key:\"decode\",value:function(t,e){return 1===this.channelSize?t.filter((function(t,e){return e%4==0})).subarray(0,e):t.subarray(0,e)}}])}(),e.Uint8DataEncoder=function(){return _createClass((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(_classCallCheck(this,t),this.channelSize=4,1===r)this.internalFormat=e.ALPHA,this.format=e.ALPHA,this.textureType=e.UNSIGNED_BYTE,this.channelSize=r;else{if(4!==r)throw new Error(\"Invalid number of channels: \".concat(r));this.internalFormat=e.RGBA,this.format=e.RGBA,this.textureType=e.UNSIGNED_BYTE,this.channelSize=r}}),[{key:\"encode\",value:function(t,e){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}},{key:\"allocate\",value:function(t){return new Uint8Array(t*this.channelSize)}},{key:\"decode\",value:function(t,e){if(t instanceof Uint8Array)return t.subarray(0,e);throw new Error(\"Invalid array type: \".concat(t.constructor))}}])}()},7618:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.getBatchDim=e.sizeToSquarishShape=e.getRowsCols=e.sizeFromShape=e.isInt=e.parseAxisParam=e.squeezeShape=e.PreferLogicalStrategy=e.AlwaysKeepOriginalSizeStrategy=void 0;var n=r(1315),i=r(7273);function o(t,e){for(var r=[],n=[],i=null!=e&&Array.isArray(e)&&0===e.length,o=null==e||i?null:a(e,t).sort(),s=0,u=0;u<t.length;++u){if(null!=o){if(o[s]===u&&1!==t[u])throw new Error(\"Can't squeeze axis \".concat(u,\" since its dim '\").concat(t[u],\"' is not 1\"));(null==o[s]||o[s]>u)&&1===t[u]&&(r.push(t[u]),n.push(u)),o[s]<=u&&s++}1!==t[u]&&(r.push(t[u]),n.push(u))}return{newShape:r,keptDims:n}}function a(t,e){var r=e.length;return t=null==t?e.map((function(t,e){return e})):[].concat(t),(0,i.assert)(t.every((function(t){return t>=-r&&t<r})),(function(){return\"All values in axis param must be in range [-\".concat(r,\", \").concat(r,\") but got axis \").concat(t)})),(0,i.assert)(t.every(s),(function(){return\"All values in axis param must be integers but got axis \".concat(t)})),t.map((function(t){return t<0?r+t:t}))}function s(t){return t%1==0}function u(t){if(0===t.length)return 1;for(var e=t[0],r=1;r<t.length;r++)e*=t[r];return e}function c(t){var e=Math.ceil(Math.sqrt(t));return[e,Math.ceil(t/e)]}e.AlwaysKeepOriginalSizeStrategy=function(){return _createClass((function t(e){_classCallCheck(this,t),this.maxTextureSize=e}),[{key:\"computeTextureWH\",value:function(t,e){if(0===t.length)return[1,1];var r=this.maxTextureSize;if(e&&void 0!==e.breakAxis){var i=e.breakAxis>=t.length?1:t.slice(e.breakAxis).reduce((function(t,e){return t*e})),o=e.breakAxis<=0?1:t.slice(0,e.breakAxis).reduce((function(t,e){return t*e}));if(!(i>r||o>r))return[i,o];n.Logger.verbose(\"TextureLayout\",\"Given width/height preferences were unattainable: shape:\".concat(t,\", breakAxis:\").concat(e.breakAxis))}for(var a=t.reduce((function(t,e){return t*e})),s=Math.floor(Math.sqrt(a));s<r&&s<a&&a%s!=0;s++);if(s>=r||a%s!=0)throw new Error(\"The given dimensions are outside this GPU's boundaries: \".concat(t));return[s,a/s]}}])}(),e.PreferLogicalStrategy=function(){return _createClass((function t(e){_classCallCheck(this,t),this.maxTextureSize=e}),[{key:\"computeTextureWH\",value:function(t,e){var r=this.computeTexture(t,e);return e&&e.isPacked&&(r[0]/=2,r[1]/=2),e&&e.reverseWH?[r[1],r[0]]:r}},{key:\"computeTexture\",value:function(t,e){var r=e&&e.isPacked;if(0===t.length)return r?[2,2]:[1,1];var i=this.maxTextureSize;if(e&&void 0!==e.breakAxis){var a=e.breakAxis>=t.length?1:t.slice(e.breakAxis).reduce((function(t,e){return t*e})),s=e.breakAxis<=0?1:t.slice(0,e.breakAxis).reduce((function(t,e){return t*e}));if(!(a>i||s>i))return[a,s];n.Logger.verbose(\"TextureLayout\",\"Given width/height preferences were unattainable: shape:\".concat(t,\", breakAxis:\").concat(e.breakAxis))}var l=t.slice(0);if(r&&(i*=2,l=l.map((function(t,e){return e>=l.length-2?l[e]%2==0?l[e]:l[e]+1:l[e]})),1===l.length&&(l=[2,l[0]])),2!==l.length){var f=o(l);l=f.newShape}var h=u(l);return l.length<=1&&h<=i?[1,h]:2===l.length&&l[0]<=i&&l[1]<=i?l:3===l.length&&l[0]*l[1]<=i&&l[2]<=i?[l[0]*l[1],l[2]]:3===l.length&&l[0]<=i&&l[1]*l[2]<=i?[l[0],l[1]*l[2]]:4===l.length&&l[0]*l[1]*l[2]<=i&&l[3]<=i?[l[0]*l[1]*l[2],l[3]]:4===l.length&&l[0]<=i&&l[1]*l[2]*l[3]<=i?[l[0],l[1]*l[2]*l[3]]:r?c(h/4).map((function(t){return 2*t})):c(h)}}])}(),e.squeezeShape=o,e.parseAxisParam=a,e.isInt=s,e.sizeFromShape=u,e.getRowsCols=function(t){if(0===t.length)throw Error(\"Cannot get rows and columns of an empty shape array.\");return[t.length>1?t[t.length-2]:1,t[t.length-1]]},e.sizeToSquarishShape=c,e.getBatchDim=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return u(t.slice(0,t.length-e))}},3314:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createTextureLayoutFromShape=e.calculateTextureWidthAndHeight=e.createTextureLayoutFromTextureType=void 0;var n=r(7273),i=r(5639);e.createTextureLayoutFromTextureType=function(t,r,n){var o=n===i.TextureType.unpacked||n===i.TextureType.unpackedReversed?1:4,a=n===i.TextureType.packed,s=n===i.TextureType.unpackedReversed||n===i.TextureType.packed,u=n===i.TextureType.packedLastDimension?r.length-1:void 0,c=n===i.TextureType.packedLastDimension?r.map((function(t,e){return e===r.length-1?4*t:t})):void 0;return(0,e.createTextureLayoutFromShape)(t,r,o,c,{isPacked:a,reverseWH:s,breakAxis:u})},e.calculateTextureWidthAndHeight=function(t,r,n){var i=(0,e.createTextureLayoutFromTextureType)(t,r,n);return[i.width,i.height]},e.createTextureLayoutFromShape=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=!(!o||!o.isPacked),s=_slicedToArray(t.computeTextureWH(a&&i||e,o),2),u=s[0],c=s[1],l=e.length,f=e.slice(0);if(0===l&&(f=[1]),1===r)i=e;else if(a){if(4!==r)throw new Error(\"a packed texture must be 4-channel\");i=e,l>0&&(f[l-1]=Math.ceil(f[l-1]/2)),l>1&&(f[l-2]=Math.ceil(f[l-2]/2))}else if(!i)throw new Error(\"Unpacked shape is needed when using channels > 1\");return{width:u,height:c,channels:r,isPacked:a,shape:f,strides:n.ShapeUtil.computeStrides(f),unpackedShape:i,reversedWH:o&&o.reverseWH}}},5243:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.TextureManager=void 0;var n=r(1315);e.TextureManager=function(){return _createClass((function t(e,r,n,i){_classCallCheck(this,t),this.glContext=e,this.layoutStrategy=r,this.profiler=n,this.config=i,this.pendingRead=new Map,i.reuseTextures&&(this.inUseTextures=new Map,this.idleTextures=new Map,this.textureLookup=new Map)}),[{key:\"createTextureFromLayout\",value:function(t,e,r,i){var o=this.toEncoderType(t),a=this.glContext.getEncoder(o,e.channels||1,i);if(e.isPacked&&1===i)throw new Error(\"not implemented\");var s,u,c=e.width,l=e.height;if(this.config.reuseTextures){s=\"\".concat(c,\"x\").concat(l,\"_\").concat(a.format,\"_\").concat(a.internalFormat,\"_\").concat(a.textureType),(u=this.inUseTextures.get(s))||(u=[],this.inUseTextures.set(s,u));var f=this.idleTextures.get(s);if(f&&f.length>0){var h=f.pop();return u.push(h),1===i&&this.glContext.updateTexture(h,c,l,a,this.toTextureData(t,r)),h}}n.Logger.verbose(\"TextureManager\",\"Creating new texture of size \".concat(e.width,\"x\").concat(e.height));var p=this.glContext.allocateTexture(c,l,a,this.toTextureData(t,r));return this.config.reuseTextures&&(u.push(p),this.textureLookup.set(p,s)),p}},{key:\"readTexture\",value:function(t,e,r){var n=this;return r||(r=1),this.profiler.event(\"backend\",\"TextureManager.readTexture\",(function(){var i=t.shape.reduce((function(t,e){return t*e}))*r,o=n.glContext.readTexture(t.texture,t.width,t.height,i,n.toEncoderType(e),r);return n.toTensorData(e,o)}))}},{key:\"readTextureAsync\",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r,n){var i,o,a=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.tensor.dataId,n||(n=1),!this.pendingRead.has(i)){t.next=4;break}return o=this.pendingRead.get(i),t.abrupt(\"return\",new Promise((function(t){return null==o?void 0:o.push(t)})));case 4:return t.abrupt(\"return\",this.profiler.event(\"backend\",\"TextureManager.readTextureAsync\",_asyncToGenerator(_regeneratorRuntime().mark((function t(){var o,s,u,c;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a.pendingRead.set(i,[]),o=e.shape.reduce((function(t,e){return t*e}))*n,t.next=4,a.glContext.createAndWaitForFence();case 4:return s=a.glContext.readTexture(e.texture,e.width,e.height,o,a.toEncoderType(r),n),u=a.toTensorData(r,s),c=a.pendingRead.get(i),t.abrupt(\"return\",(a.pendingRead.delete(i),null==c||c.forEach((function(t){return t(u)})),u));case 6:case\"end\":return t.stop()}}),t)})))));case 5:case\"end\":return t.stop()}}),t,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:\"readUint8TextureAsFloat\",value:function(t){var e=this;return this.profiler.event(\"backend\",\"TextureManager.readUint8TextureAsFloat\",(function(){var r=t.shape.reduce((function(t,e){return t*e})),n=e.glContext.readTexture(t.texture,t.width,t.height,4*r,\"byte\",4);return new Float32Array(n.buffer,n.byteOffset,r)}))}},{key:\"releaseTexture\",value:function(t,e){var r;if(this.config.reuseTextures&&(r=this.textureLookup.get(t.texture))){e&&this.textureLookup.delete(r);var i=this.inUseTextures.get(r);if(i){var o=i.indexOf(t.texture);if(-1!==o){i.splice(o,1);var a=this.idleTextures.get(r);a||(a=[],this.idleTextures.set(r,a)),a.push(t.texture)}}}r&&!e||(n.Logger.verbose(\"TextureManager\",\"Deleting texture of size \".concat(t.width,\"x\").concat(t.height)),this.glContext.deleteTexture(t.texture))}},{key:\"toTensorData\",value:function(t,e){switch(t){case\"int16\":return e instanceof Int16Array?e:Int16Array.from(e);case\"int32\":return e instanceof Int32Array?e:Int32Array.from(e);case\"int8\":return e instanceof Int8Array?e:Int8Array.from(e);case\"uint16\":return e instanceof Uint16Array?e:Uint16Array.from(e);case\"uint32\":return e instanceof Uint32Array?e:Uint32Array.from(e);case\"uint8\":case\"bool\":return e instanceof Uint8Array?e:Uint8Array.from(e);case\"float32\":return e instanceof Float32Array?e:Float32Array.from(e);case\"float64\":return e instanceof Float64Array?e:Float64Array.from(e);default:throw new Error(\"TensorData type \".concat(t,\" is not supported\"))}}},{key:\"toTextureData\",value:function(t,e){if(e)return e instanceof Float32Array?e:new Float32Array(e)}},{key:\"toEncoderType\",value:function(t){return\"float\"}},{key:\"clearActiveTextures\",value:function(){this.glContext.clearActiveTextures()}}]);var t}()},5639:function(t,e){\"use strict\";var r;Object.defineProperty(e,\"__esModule\",{value:!0}),e.TextureType=void 0,(r=e.TextureType||(e.TextureType={}))[r.unpacked=0]=\"unpacked\",r[r.unpackedReversed=1]=\"unpackedReversed\",r[r.packed=2]=\"packed\",r[r.downloadUint8AsFloat=3]=\"downloadUint8AsFloat\",r[r.packedLastDimension=4]=\"packedLastDimension\"},432:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.getGlChannels=e.getCoordsDataType=e.getSqueezedParams=e.squeezeInputShape=e.generateShaderFuncNameFromInputSamplerNameAtOutCoords=e.generateShaderFuncNameFromInputSamplerName=e.repeatedTry=e.getPackedShape=void 0;var n=r(7273);e.getPackedShape=function(t){var e=t.length;return t.slice(0,e-1).concat(t[e-1]/4)},e.repeatedTry=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n,i=arguments;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:function(t){return 0},n=i.length>2?i[2]:void 0,t.abrupt(\"return\",new Promise((function(t,i){var o=0;!function a(){if(e())t();else{o++;var s=r(o);null!=n&&o>=n?i():setTimeout(a,s)}}()})));case 3:case\"end\":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.generateShaderFuncNameFromInputSamplerName=function(t){return(0,n.assert)(void 0!==t&&0!==t.length,(function(){return\"empty string found for sampler name\"})),\"get\"+t.charAt(0).toUpperCase()+t.slice(1)},e.generateShaderFuncNameFromInputSamplerNameAtOutCoords=function(t){return(0,n.assert)(void 0!==t&&0!==t.length,(function(){return\"empty string found for sampler name\"})),\"get\"+t.charAt(0).toUpperCase()+t.slice(1)+\"AtOutCoords\"},e.squeezeInputShape=function(t,e){return JSON.parse(JSON.stringify(t)),e},e.getSqueezedParams=function(t,e){return e.map((function(e){return t[e]})).join(\", \")},e.getCoordsDataType=function(t){if(t<=1)return\"int\";if(2===t)return\"ivec2\";if(3===t)return\"ivec3\";if(4===t)return\"ivec4\";if(5===t)return\"ivec5\";if(6===t)return\"ivec6\";throw Error(\"GPU for rank \".concat(t,\" is not yet supported\"))},e.getGlChannels=function(){return[\"x\",\"y\",\"z\",\"w\",\"u\",\"v\"].slice(0,arguments.length>0&&void 0!==arguments[0]?arguments[0]:6)}},3389:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createNewWebGLContext=e.createWebGLContext=void 0;var n=r(1315),i=r(3524),o={};function a(t,e){var r,o={alpha:!1,depth:!1,antialias:!1,stencil:!1,preserveDrawingBuffer:!1,premultipliedAlpha:!1,failIfMajorPerformanceCaveat:!1};if((!e||\"webgl2\"===e)&&(r=t.getContext(\"webgl2\",o)))try{return new i.WebGLContext(r,2)}catch(t){n.Logger.warning(\"GlContextFactory\",\"failed to create WebGLContext using contextId 'webgl2'. Error: \".concat(t))}if((!e||\"webgl\"===e)&&(r=t.getContext(\"webgl\",o)||t.getContext(\"experimental-webgl\",o)))try{return new i.WebGLContext(r,1)}catch(t){n.Logger.warning(\"GlContextFactory\",\"failed to create WebGLContext using contextId 'webgl' or 'experimental-webgl'. Error: \".concat(t))}throw new Error(\"WebGL is not supported\")}e.createWebGLContext=function t(e){var r;if(e&&\"webgl2\"!==e||!(\"webgl2\"in o)?e&&\"webgl\"!==e||!(\"webgl\"in o)||(r=o.webgl):r=o.webgl2,!r)try{r=a(function(){if(\"undefined\"==typeof OffscreenCanvas)throw new TypeError(\"failed to create offscreen canvas: OffscreenCanvas is not supported\");return new OffscreenCanvas(1,1)}(),e)}catch(t){r=a(function(){if(\"undefined\"==typeof document)throw new TypeError(\"failed to create canvas: document is not supported\");var t=document.createElement(\"canvas\");return t.width=1,t.height=1,t}(),e)}e=e||1===r.version?\"webgl\":\"webgl2\";var n=r.gl;return o[e]=r,n.isContextLost()?(delete o[e],t(e)):(n.disable(n.DEPTH_TEST),n.disable(n.STENCIL_TEST),n.disable(n.BLEND),n.disable(n.DITHER),n.disable(n.POLYGON_OFFSET_FILL),n.disable(n.SAMPLE_COVERAGE),n.enable(n.SCISSOR_TEST),n.enable(n.CULL_FACE),n.cullFace(n.BACK),r)},e.createNewWebGLContext=a},3524:function(t,e,r){\"use strict\";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!(\"get\"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)\"default\"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,\"__esModule\",{value:!0}),e.WebGLContext=e.linearSearchLastTrue=void 0;var a=r(1670),s=o(r(9622)),u=r(432);function c(t){for(var e=0;e<t.length&&t[e]();++e);return e-1}e.linearSearchLastTrue=c,e.WebGLContext=function(){return _createClass((function t(e,r){_classCallCheck(this,t),this.frameBufferBound=!1,this.itemsToPoll=[],this.gl=e,this.version=r,this.getExtensions(),this.vertexbuffer=this.createVertexbuffer(),this.framebuffer=this.createFramebuffer(),this.queryVitalParameters()}),[{key:\"allocateTexture\",value:function(t,e,r,n){var i=this.gl,o=i.createTexture();i.bindTexture(i.TEXTURE_2D,o),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.NEAREST),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.NEAREST),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE);var a=n?r.encode(n,t*e):null;return i.texImage2D(i.TEXTURE_2D,0,r.internalFormat,t,e,0,r.format,r.textureType,a),this.checkError(),o}},{key:\"updateTexture\",value:function(t,e,r,n,i){var o=this.gl;o.bindTexture(o.TEXTURE_2D,t);var a=n.encode(i,e*r);o.texSubImage2D(o.TEXTURE_2D,0,0,0,e,r,n.format,n.textureType,a),this.checkError()}},{key:\"attachFramebuffer\",value:function(t,e,r){var n=this.gl;n.bindTexture(n.TEXTURE_2D,t),n.bindFramebuffer(n.FRAMEBUFFER,this.framebuffer),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,t,0),this.checkError(),n.viewport(0,0,e,r),n.scissor(0,0,e,r)}},{key:\"readTexture\",value:function(t,e,r,n,i,o){var a=this.gl;o||(o=1),this.frameBufferBound||this.attachFramebuffer(t,e,r);var s=this.getEncoder(i,o),u=s.allocate(e*r);return a.bindTexture(a.TEXTURE_2D,t),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,t,0),a.readPixels(0,0,e,r,a.RGBA,s.textureType,u),this.checkError(),s.decode(u,n)}},{key:\"isFramebufferReady\",value:function(){return!0}},{key:\"getActiveTexture\",value:function(){var t=this.gl;return\"TEXTURE\"+(t.getParameter(this.gl.ACTIVE_TEXTURE)-t.TEXTURE0)}},{key:\"getTextureBinding\",value:function(){return this.gl.getParameter(this.gl.TEXTURE_BINDING_2D)}},{key:\"getFramebufferBinding\",value:function(){return this.gl.getParameter(this.gl.FRAMEBUFFER_BINDING)}},{key:\"setVertexAttributes\",value:function(t,e){var r=this.gl;r.vertexAttribPointer(t,3,r.FLOAT,!1,20,0),r.enableVertexAttribArray(t),-1!==e&&(r.vertexAttribPointer(e,2,r.FLOAT,!1,20,12),r.enableVertexAttribArray(e)),this.checkError()}},{key:\"createProgram\",value:function(t,e){var r=this.gl,n=r.createProgram();return r.attachShader(n,t),r.attachShader(n,e),r.linkProgram(n),n}},{key:\"compileShader\",value:function(t,e){var r=this.gl,n=r.createShader(e);if(!n)throw new Error(\"createShader() returned null with type \".concat(e));if(r.shaderSource(n,t),r.compileShader(n),!1===r.getShaderParameter(n,r.COMPILE_STATUS))throw new Error(\"Failed to compile shader: \".concat(r.getShaderInfoLog(n),\"\\nShader source:\\n\").concat(t));return n}},{key:\"deleteShader\",value:function(t){this.gl.deleteShader(t)}},{key:\"bindTextureToUniform\",value:function(t,e,r){var n=this.gl;n.activeTexture(n.TEXTURE0+e),this.checkError(),n.bindTexture(n.TEXTURE_2D,t),this.checkError(),n.uniform1i(r,e),this.checkError()}},{key:\"draw\",value:function(){this.gl.drawArrays(this.gl.TRIANGLE_STRIP,0,4),this.checkError()}},{key:\"checkError\",value:function(){if(a.env.debug){var t=this.gl,e=t.getError(),r=\"\";switch(e){case t.NO_ERROR:return;case t.INVALID_ENUM:r=\"INVALID_ENUM\";break;case t.INVALID_VALUE:r=\"INVALID_VALUE\";break;case t.INVALID_OPERATION:r=\"INVALID_OPERATION\";break;case t.INVALID_FRAMEBUFFER_OPERATION:r=\"INVALID_FRAMEBUFFER_OPERATION\";break;case t.OUT_OF_MEMORY:r=\"OUT_OF_MEMORY\";break;case t.CONTEXT_LOST_WEBGL:r=\"CONTEXT_LOST_WEBGL\";break;default:r=\"Unknown WebGL Error: \".concat(e.toString(16))}throw new Error(r)}}},{key:\"deleteTexture\",value:function(t){this.gl.deleteTexture(t)}},{key:\"deleteProgram\",value:function(t){this.gl.deleteProgram(t)}},{key:\"getEncoder\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(2===this.version)return new s.RedFloat32DataEncoder(this.gl,e);switch(t){case\"float\":return 1===r||this.isRenderFloat32Supported?new s.RGBAFloatDataEncoder(this.gl,e):new s.RGBAFloatDataEncoder(this.gl,e,this.textureHalfFloatExtension.HALF_FLOAT_OES);case\"int\":throw new Error(\"not implemented\");case\"byte\":return new s.Uint8DataEncoder(this.gl,e);default:throw new Error(\"Invalid dataType: \".concat(t))}}},{key:\"clearActiveTextures\",value:function(){for(var t=this.gl,e=0;e<this.maxTextureImageUnits;++e)t.activeTexture(t.TEXTURE0+e),t.bindTexture(t.TEXTURE_2D,null)}},{key:\"dispose\",value:function(){if(!this.disposed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,null),t.deleteFramebuffer(this.framebuffer),t.bindBuffer(t.ARRAY_BUFFER,null),t.deleteBuffer(this.vertexbuffer),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null),t.finish(),this.disposed=!0}}},{key:\"createDefaultGeometry\",value:function(){return new Float32Array([-1,1,0,0,1,-1,-1,0,0,0,1,1,0,1,1,1,-1,0,1,0])}},{key:\"createVertexbuffer\",value:function(){var t=this.gl,e=t.createBuffer();if(!e)throw new Error(\"createBuffer() returned null\");var r=this.createDefaultGeometry();return t.bindBuffer(t.ARRAY_BUFFER,e),t.bufferData(t.ARRAY_BUFFER,r,t.STATIC_DRAW),this.checkError(),e}},{key:\"createFramebuffer\",value:function(){var t=this.gl.createFramebuffer();if(!t)throw new Error(\"createFramebuffer returned null\");return t}},{key:\"queryVitalParameters\",value:function(){var t=this.gl;if(this.isFloatTextureAttachableToFrameBuffer=this.checkFloatTextureAttachableToFrameBuffer(),this.isRenderFloat32Supported=this.checkRenderFloat32(),this.isFloat32DownloadSupported=this.checkFloat32Download(),1===this.version&&!this.textureHalfFloatExtension&&!this.isRenderFloat32Supported)throw new Error(\"both float32 and float16 TextureType are not supported\");this.isBlendSupported=!this.isRenderFloat32Supported||this.checkFloat32Blend(),this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE),this.maxTextureImageUnits=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),this.version}},{key:\"getExtensions\",value:function(){2===this.version?(this.colorBufferFloatExtension=this.gl.getExtension(\"EXT_color_buffer_float\"),this.disjointTimerQueryWebgl2Extension=this.gl.getExtension(\"EXT_disjoint_timer_query_webgl2\")):(this.textureFloatExtension=this.gl.getExtension(\"OES_texture_float\"),this.textureHalfFloatExtension=this.gl.getExtension(\"OES_texture_half_float\"))}},{key:\"checkFloatTextureAttachableToFrameBuffer\",value:function(){var t=this.gl,e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);var r=2===this.version?t.RGBA32F:t.RGBA;t.texImage2D(t.TEXTURE_2D,0,r,1,1,0,t.RGBA,t.FLOAT,null);var n=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,n),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0);var i=t.checkFramebufferStatus(t.FRAMEBUFFER)===t.FRAMEBUFFER_COMPLETE;return t.bindTexture(t.TEXTURE_2D,null),t.bindFramebuffer(t.FRAMEBUFFER,null),t.deleteTexture(e),t.deleteFramebuffer(n),i}},{key:\"checkRenderFloat32\",value:function(){if(2===this.version){if(!this.colorBufferFloatExtension)return!1}else if(!this.textureFloatExtension)return!1;return this.isFloatTextureAttachableToFrameBuffer}},{key:\"checkFloat32Download\",value:function(){if(2===this.version){if(!this.colorBufferFloatExtension)return!1}else{if(!this.textureFloatExtension)return!1;if(!this.gl.getExtension(\"WEBGL_color_buffer_float\"))return!1}return this.isFloatTextureAttachableToFrameBuffer}},{key:\"checkFloat32Blend\",value:function(){var t,e,r,n,i,o=this.gl;try{t=o.createTexture(),e=o.createFramebuffer(),o.bindTexture(o.TEXTURE_2D,t);var a=2===this.version?o.RGBA32F:o.RGBA;return o.texImage2D(o.TEXTURE_2D,0,a,1,1,0,o.RGBA,o.FLOAT,null),o.bindFramebuffer(o.FRAMEBUFFER,e),o.framebufferTexture2D(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,t,0),o.enable(o.BLEND),!!(r=o.createShader(o.VERTEX_SHADER))&&(o.shaderSource(r,\"void main(){}\"),o.compileShader(r),!!(n=o.createShader(o.FRAGMENT_SHADER))&&(o.shaderSource(n,\"precision highp float;void main(){gl_FragColor=vec4(0.5);}\"),o.compileShader(n),!!(i=o.createProgram())&&(o.attachShader(i,r),o.attachShader(i,n),o.linkProgram(i),o.useProgram(i),o.drawArrays(o.POINTS,0,1),o.getError()===o.NO_ERROR)))}finally{o.disable(o.BLEND),i&&o.deleteProgram(i),r&&o.deleteShader(r),n&&o.deleteShader(n),e&&(o.bindFramebuffer(o.FRAMEBUFFER,null),o.deleteFramebuffer(e)),t&&(o.bindTexture(o.TEXTURE_2D,null),o.deleteTexture(t))}}},{key:\"beginTimer\",value:function(){if(2===this.version&&this.disjointTimerQueryWebgl2Extension){var t=this.gl,e=this.disjointTimerQueryWebgl2Extension,r=t.createQuery();return t.beginQuery(e.TIME_ELAPSED_EXT,r),r}throw new Error(\"WebGL1 profiling currently not supported.\")}},{key:\"endTimer\",value:function(){if(2!==this.version||!this.disjointTimerQueryWebgl2Extension)throw new Error(\"WebGL1 profiling currently not supported\");var t=this.gl,e=this.disjointTimerQueryWebgl2Extension;t.endQuery(e.TIME_ELAPSED_EXT)}},{key:\"isTimerResultAvailable\",value:function(t){var e,r;if(2!==this.version||!this.disjointTimerQueryWebgl2Extension)throw new Error(\"WebGL1 profiling currently not supported\");var n=this.gl,i=this.disjointTimerQueryWebgl2Extension;return e=n.getQueryParameter(t,n.QUERY_RESULT_AVAILABLE),r=n.getParameter(i.GPU_DISJOINT_EXT),e&&!r}},{key:\"getTimerResult\",value:function(t){var e;if(2!==this.version)throw new Error(\"WebGL1 profiling currently not supported\");var r=this.gl;return e=r.getQueryParameter(t,r.QUERY_RESULT),r.deleteQuery(t),e/1e6}},{key:\"waitForQueryAndGetTime\",value:(n=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,u.repeatedTry)((function(){return r.isTimerResultAvailable(e)}));case 2:return t.abrupt(\"return\",this.getTimerResult(e));case 3:case\"end\":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:\"createAndWaitForFence\",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.createFence(this.gl),t.abrupt(\"return\",this.pollFence(e));case 2:case\"end\":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:\"createFence\",value:function(t){var e,r=t,n=r.fenceSync(r.SYNC_GPU_COMMANDS_COMPLETE,0);return t.flush(),e=null===n?function(){return!0}:function(){var t=r.clientWaitSync(n,0,0);return t===r.ALREADY_SIGNALED||t===r.CONDITION_SATISFIED},{query:n,isFencePassed:e}}},{key:\"pollFence\",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t){r.addItemToPoll((function(){return e.isFencePassed()}),(function(){return t()}))})));case 1:case\"end\":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:\"pollItems\",value:function(){for(var t=c(this.itemsToPoll.map((function(t){return t.isDoneFn}))),e=0;e<=t;++e)(0,this.itemsToPoll[e].resolveFn)();this.itemsToPoll=this.itemsToPoll.slice(t+1)}},{key:\"addItemToPoll\",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r){var n=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.itemsToPoll.push({isDoneFn:e,resolveFn:r}),t.t0=this.itemsToPoll.length>1,t.t0){t.next=5;break}return t.next=5,(0,u.repeatedTry)((function(){return n.pollItems(),0===n.itemsToPoll.length}));case 5:case\"end\":return t.stop()}}),t,this)}))),function(e,r){return t.apply(this,arguments)})}]);var t,e,r,n}()},6496:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ExecutionPlan=void 0;var n=r(1315),i=_createClass((function t(e,r){_classCallCheck(this,t),this.op=e,this.node=r}));e.ExecutionPlan=function(){return _createClass((function t(e,r,n){_classCallCheck(this,t),this.graph=e,this.profiler=n,this.initialize(r)}),[{key:\"initialize\",value:function(t){var e=this;this.profiler.event(\"session\",\"ExecutionPlan.initialize\",(function(){var r=e.graph.getNodes();if(r.length!==t.length)throw new Error(\"The size of nodes and OPs do not match.\");e._ops=t.map((function(t,e){return new i(t,r[e])})),e.reset(),e._starter=[],e._ops.forEach((function(t,r){var n,i=!0,o=_createForOfIteratorHelper(t.node.inputs);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(!e._values[a]&&-1===e.graph.getInputIndices().indexOf(a)){i=!1;break}}}catch(t){o.e(t)}finally{o.f()}i&&e._starter.push(r)}))}))}},{key:\"reset\",value:function(){this._values=this.graph.getValues().map((function(t){return t.tensor}))}},{key:\"execute\",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r){var i=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",this.profiler.event(\"session\",\"ExecutionPlan.execute\",_asyncToGenerator(_regeneratorRuntime().mark((function t(){var o,a,s,u,c,l,f,h,p,d,m;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i.reset(),o=e.createInferenceHandler(),a=i.graph.getInputIndices(),r.length===a.length){t.next=4;break}throw new Error(\"number of input tensors don't match the number of inputs to the model: actual: \".concat(r.length,\" expected: \").concat(a.length));case 4:r.forEach((function(t,e){var r=a[e];i._values[r]=t})),s=i._starter.slice(0),u=i.graph.getValues(),c=i.graph.getNodes(),l=0,f=_regeneratorRuntime().mark((function t(){var e,r,a,f,h,p;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=s[l++],r=i._ops[e],a=r.node.inputs.map((function(t){return i._values[t]})),-1===a.indexOf(void 0)){t.next=3;break}throw new Error(\"unresolved input detected: op: \".concat(r.node));case 3:return f=a,n.Logger.verbose(\"ExecPlan\",\"Runing op:\".concat(r.node.name,\" (\").concat(f.map((function(t,e){return\"'\".concat(r.node.inputs[e],\"': \").concat(t.type,\"[\").concat(t.dims.join(\",\"),\"]\")})).join(\", \"),\")\")),t.next=7,i.profiler.event(\"node\",r.node.name,_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",r.op.impl(o,f,r.op.context));case 1:case\"end\":return t.stop()}}),t)}))));case 7:if((h=t.sent).length===r.node.outputs.length){t.next=10;break}throw new Error(\"the size of output does not match model definition.\");case 10:h.forEach((function(t,e){var n=r.node.outputs[e];if(i._values[n])throw new Error(\"output [\".concat(n,\"] already has value: op:\").concat(r.node.name));i._values[n]=t})),p=new Set,h.forEach((function(t,e){var n,o=r.node.outputs[e],a=_createForOfIteratorHelper(u[o].to);try{for(a.s();!(n=a.n()).done;){var s,l=n.value,f=c[l],h=!0,d=_createForOfIteratorHelper(f.inputs);try{for(d.s();!(s=d.n()).done;){var m=s.value;if(!i._values[m]){h=!1;break}}}catch(t){d.e(t)}finally{d.f()}h&&p.add(l)}}catch(t){a.e(t)}finally{a.f()}})),s.push.apply(s,_toConsumableArray(p));case 13:case\"end\":return t.stop()}}),t)}));case 8:if(!(l<s.length)){t.next=12;break}return t.delegateYield(f(),\"t0\",10);case 10:t.next=8;break;case 12:h=[],p=0;case 14:if(!(p<i.graph.getOutputIndices().length)){t.next=28;break}if(d=i.graph.getOutputIndices()[p],void 0!==(m=i._values[d])){t.next=18;break}throw new Error(\"required output [\".concat(d,\"] does not have value\"));case 18:if(0!==d){t.next=23;break}return t.next=21,m.getData();case 21:t.next=24;break;case 23:m.data;case 24:h.push(m);case 25:p++,t.next=14;break;case 28:return t.abrupt(\"return\",(n.Logger.verbose(\"ExecPlan\",\"disposing of inferenceHandler\"),o.dispose(),h));case 29:case\"end\":return t.stop()}}),t)})))));case 1:case\"end\":return t.stop()}}),t,this)}))),function(e,r){return t.apply(this,arguments)})}]);var t}()},4662:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.Graph=void 0;var n=r(6874),i=r(5127),o=r(2446),a=r(9240),s=r(7273),u=i.onnxruntime.experimental.fbs;e.Graph={from:function(t,e){return new f(t,e)}};var c=function(){return _createClass((function t(e){_classCallCheck(this,t),this._from=void 0,this._to=[],this.tensor=void 0,this.type=void 0,e&&(this.type=s.ProtoUtil.tensorValueTypeFromProto(e.type.tensorType))}),[{key:\"from\",get:function(){return this._from}},{key:\"to\",get:function(){return this._to}}])}(),l=_createClass((function t(e,r){_classCallCheck(this,t),e instanceof o.onnx.NodeProto?(this.name=e.name,this.opType=e.opType,this.attributes=new n.Attribute(e.attribute)):e instanceof u.Node&&(this.name=null!=r?r:e.name(),this.opType=e.opType(),this.attributes=new n.Attribute(s.ProtoUtil.tensorAttributesFromORTFormat(e))),this.inputs=[],this.outputs=[],this.executeNode=!0})),f=function(){return _createClass((function t(e,r){if(_classCallCheck(this,t),!e)throw new TypeError(\"graph is empty\");this.buildGraph(e),this.transformGraph(r),this.checkIsAcyclic()}),[{key:\"getInputIndices\",value:function(){return this._allInputIndices}},{key:\"getInputNames\",value:function(){return this._allInputNames}},{key:\"getOutputIndices\",value:function(){return this._allOutputIndices}},{key:\"getOutputNames\",value:function(){return this._allOutputNames}},{key:\"getValues\",value:function(){return this._allData}},{key:\"getNodes\",value:function(){return this._nodes}},{key:\"buildGraph\",value:function(t){if(t instanceof o.onnx.GraphProto)this.buildGraphFromOnnxFormat(t);else{if(!(t instanceof u.Graph))throw new TypeError(\"Graph type is not supported.\");this.buildGraphFromOrtFormat(t)}}},{key:\"buildGraphFromOnnxFormat\",value:function(t){var e=new Map;this._allData=[],this._allInputIndices=[],this._allInputNames=[],this._allOutputIndices=[],this._allOutputNames=[],this._nodes=[];var r=new Map;if(!t.input)throw new Error(\"missing information in graph: input\");var n,i=[],o=_createForOfIteratorHelper(t.input);try{for(o.s();!(n=o.n()).done;){var u=n.value;if(e.has(u.name))throw new Error(\"duplicated input name: \".concat(u.name));var f=this._allData.push(new c(u))-1;e.set(u.name,f),i.push(u.name)}}catch(t){o.e(t)}finally{o.f()}if(!t.initializer)throw new Error(\"missing information in graph: initializer\");var h,p=_createForOfIteratorHelper(t.initializer);try{for(p.s();!(h=p.n()).done;){var d=h.value,m=e.get(d.name);if(void 0===m){var y=new c;y.type={shape:{dims:s.ProtoUtil.tensorDimsFromProto(d.dims)},tensorType:s.ProtoUtil.tensorDataTypeFromProto(d.dataType)},m=this._allData.push(y)-1,e.set(d.name,m)}this._allData[m]._from=-1,this._allData[m].tensor=a.Tensor.fromProto(d)}}catch(t){p.e(t)}finally{p.f()}for(var g=0;g<this._allData.length;g++)this._allData[g].tensor||(this._allInputIndices.push(g),this._allInputNames.push(i[g]));if(!t.output)throw new Error(\"missing information in graph: output\");var b,v=_createForOfIteratorHelper(t.output);try{for(v.s();!(b=v.n()).done;){var w=b.value;if(e.has(w.name))throw new Error(\"duplicated output name: \".concat(w.name));var _=this._allData.push(new c(w))-1;e.set(w.name,_),this._allOutputIndices.push(_),this._allOutputNames.push(w.name)}}catch(t){v.e(t)}finally{v.f()}if(!t.node)throw new Error(\"missing information in graph: node\");var x,k=_createForOfIteratorHelper(t.node);try{for(k.s();!(x=k.n()).done;){var E=x.value;if(!E.name)for(var S=0;;S++){var T=\"unnamed_\".concat(E.opType,\"_\").concat(S);if(!r.has(T)){E.name=T;break}}if(r.has(E.name))throw new Error(\"duplicated node name: \".concat(E.name));var A=this._nodes.push(new l(E))-1;r.set(E.name,A)}}catch(t){k.e(t)}finally{k.f()}for(var D=0;D<this._nodes.length;D++){var O=this._nodes[D],I=t.node[D];if(!I.output)throw new Error(\"missing output for node: \".concat(I.name));var P,C=_createForOfIteratorHelper(I.output);try{for(C.s();!(P=C.n()).done;){var L=P.value,M=e.get(L);if(void 0===M&&(M=this._allData.push(new c)-1,e.set(L,M)),O.outputs.push(M),void 0!==this._allData[M]._from)throw new Error(\"multiple nodes output to one data value: \".concat(M));if(this._allData[M]._from=D,\"Constant\"===I.opType){if(!I.attribute||1!==I.attribute.length||!I.attribute[0].t)throw new Error(\"missing attributes or missing tensor value in attributes for this Constant operator\");if(!I.output||1!==I.output.length)throw new Error(\"missing output or incorrect number of outputs for this Constant operator\");O.outputs.pop(),O.executeNode=!1,this._allData[M]._from=-1,this._allData[M].tensor=a.Tensor.fromProto(I.attribute[0].t)}}}catch(t){C.e(t)}finally{C.f()}}for(var F=0;F<this._nodes.length;F++){var B=this._nodes[F],j=t.node[F];if(!j.input)throw new Error(\"missing input for node: \".concat(j.name));var N,R=_createForOfIteratorHelper(j.input);try{for(R.s();!(N=R.n()).done;){var z=N.value,U=e.get(z);if(void 0===U){if(\"\"===z&&(3===j.input.length||4===j.input.length)&&\"Resize\"===j.opType)continue;throw new Error(\"unrecognized input '\".concat(z,\"' for node: \").concat(j.name))}B.inputs.push(U),this._allData[U]._to.push(F)}}catch(t){R.e(t)}finally{R.f()}}return!0}},{key:\"buildGraphFromOrtFormat\",value:function(t){var e,r,n,i=new Map;this._allData=[],this._allInputIndices=[],this._allInputNames=[],this._allOutputIndices=[],this._allOutputNames=[],this._nodes=[];for(var o=new Map,f=[],h=0;h<t.inputsLength();h++){var p=t.inputs(h);if(i.has(p))throw new Error(\"duplicated input name: \".concat(p));for(var d=0;d<t.nodeArgsLength();d++)if((null===(e=t.nodeArgs(d))||void 0===e?void 0:e.name())===p){var m=new c;if((null===(n=null===(r=t.nodeArgs(d))||void 0===r?void 0:r.type())||void 0===n?void 0:n.valueType())!==u.TypeInfoValue.tensor_type)throw new Error(\"Unexpected value type for the nodeArg.\");for(var y=t.nodeArgs(d).type().value(new u.TensorTypeAndShape),g=s.ProtoUtil.tensorDataTypeFromProto(y.elemType()),b=y.shape(),v=[],w=0;w<b.dimLength();w++)v.push(s.LongUtil.longToNumber(b.dim(w).value().dimValue()));m.type={shape:{dims:v},tensorType:g};var _=this._allData.push(m)-1;i.set(p,_),f.push(p)}}for(var x=0;x<t.initializersLength();x++){var k=t.initializers(x),E=i.get(k.name());if(void 0===E){var S=new c,T=s.ProtoUtil.tensorDimsFromORTFormat(k),A=s.ProtoUtil.tensorDataTypeFromProto(k.dataType());S.type={shape:{dims:T},tensorType:A},E=this._allData.push(S)-1,i.set(k.name(),E)}this._allData[E]._from=-1,this._allData[E].tensor=a.Tensor.fromOrtTensor(k)}for(var D=0;D<this._allData.length;D++)this._allData[D].tensor||(this._allInputIndices.push(D),this._allInputNames.push(f[D]));for(var O=0;O<t.outputsLength();O++){var I=t.outputs(O);if(i.has(I))throw new Error(\"duplicated output name: \".concat(I));var P=this._allData.push(new c)-1;i.set(I,P),this._allOutputIndices.push(P),this._allOutputNames.push(I)}if(!t.nodes)throw new Error(\"missing information in graph: node\");for(var C=0;C<t.nodesLength();C++){var L=t.nodes(C),M=L.name();if(!M)for(var F=0;M=\"unnamed_\".concat(L.opType(),\"_\").concat(F),o.has(M);F++);if(o.has(M))throw new Error(\"duplicated node name: \".concat(M));var B=this._nodes.push(new l(L,M))-1;o.set(M,B)}for(var j=0;j<this._nodes.length;j++){var N=this._nodes[j],R=t.nodes(j);if(null==R)throw new Error(\"No node exists at index \".concat(j));if(0===(null==R?void 0:R.outputsLength()))throw new Error(\"missing output for node: \".concat(R.name));for(var z=0;z<(null==R?void 0:R.outputsLength());z++){var U=null==R?void 0:R.outputs(z),G=i.get(U);if(void 0===G&&(G=this._allData.push(new c)-1,i.set(U,G)),N.outputs.push(G),void 0!==this._allData[G]._from)throw new Error(\"multiple nodes output to one data value: \".concat(G));if(this._allData[G]._from=j,\"Constant\"===R.opType()){if(1!==R.attributesLength()||!R.attributes(0).t())throw new Error(\"missing attributes or missing tensor value in attributes for this Constant operator\");if(1!==R.outputsLength())throw new Error(\"missing output or incorrect number of outputs for this Constant operator\");N.outputs.pop(),N.executeNode=!1,this._allData[G]._from=-1,this._allData[G].tensor=a.Tensor.fromOrtTensor(R.attributes(0).t())}}}for(var H=0;H<this._nodes.length;H++){var q=this._nodes[H],V=t.nodes(H);if(0===V.inputsLength())throw new Error(\"missing input for node: \".concat(V.name));for(var W=0;W<V.inputsLength();W++){var Z=V.inputs(W),Y=i.get(Z);if(void 0===Y)throw new Error(\"unrecognized input '\".concat(Z,\"' for node: \").concat(V.name()));q.inputs.push(Y),this._allData[Y]._to.push(H)}}}},{key:\"checkIsAcyclic\",value:function(){var t=this,e=new Set;this._allInputIndices.forEach((function(r){t._allData[r]._to.forEach((function(t){e.add(t)}))}));for(var r=Array.from(e),n=new Array(this._nodes.length).fill(\"white\"),i=function(){var e=r.pop();\"gray\"===n[e]?n[e]=\"black\":(r.push(e),n[e]=\"gray\",t._nodes[e].outputs.forEach((function(i){var o=t._allData[i];if(void 0!==o.tensor)throw new Error(\"node outputs should not be initialized\");if(o._from!==e)throw new Error(\"from property of the Value object doesn't match index of Node being processed\");o._to.forEach((function(t){if(\"gray\"===n[t])throw new Error(\"model graph is cyclic\");\"white\"===n[t]&&r.push(t)}))})))};r.length>0;)i()}},{key:\"transformGraph\",value:function(t){this.removeAllIdentityNodes(),this.removeAllDropoutNodes(),this.fuseConvActivationNodes(),t&&t.transformGraph(this),this.finalizeGraph()}},{key:\"finalizeGraph\",value:function(){for(var t=this,e=0,r=new Array(this._nodes.length,0),n=0,i=0;i<this._nodes.length;i++)r[i]=n,this._nodes[i].executeNode?(n!==i&&(this._nodes[n]=this._nodes[i]),n++):this._nodes[i].outputs.forEach((function(e){t._allData[e]._from=-2}));this._nodes.splice(n,this._nodes.length-n);for(var o=0;o<this._allData.length;o++){var a=this._allData[o];void 0!==a._from&&-1!==a._from&&-2!==a._from&&(a._from=r[a._from]);for(var s=0;s<a._to.length;s++){if(!(a._to[s]>=0))throw new Error(\"Trying to update a removed node\");a._to[s]=r[a._to[s]]}}e=0;for(var u=function(r){if(-2!==t._allData[r].from||-1!==t._allOutputIndices.indexOf(r+e)){if(e>0){var n=-1;void 0!==t._allData[r].from&&-1!==t._allData[r].from?-1!==(n=t._nodes[t._allData[r].from].outputs.indexOf(r+e))&&(t._nodes[t._allData[r].from].outputs[n]=r):-1!==(n=t._allInputIndices.indexOf(r+e))&&(t._allInputIndices[n]=r),t._allData[r].to.forEach((function(i){-1!==(n=t._nodes[i].inputs.indexOf(r+e))&&(t._nodes[i].inputs[n]=r)})),0===t._allData[r].to.length&&-1!==(n=t._allOutputIndices.indexOf(r+e))&&(t._allOutputIndices[n]=r)}}else e++,t._allData.splice(r,1),r--;c=r},c=0;c<this._allData.length;c++)u(c)}},{key:\"deleteNode\",value:function(t){var e=this._nodes[t];if(e.outputs.length>1)for(var r=1;r<e.outputs.length;r++)if(this._allData[e.outputs[r]].to.length>0)throw new Error(\"Node deletion with more than one output connected to other nodes is not supported. \");e.executeNode=!1;for(var n=e.inputs[0],i=e.outputs[0],o=this._allData[i].to,a=0;a<e.inputs.length;a++){var s=this._allData[e.inputs[a]].to.indexOf(t);if(-1===s)throw new Error(\"The Value object doesn't have the current Node in it's 'to' property \");this._allData[e.inputs[a]].to.splice(s,1)}this._allData[i]._to=[];var u=this._allOutputIndices.indexOf(i);if(-1!==u&&(this._allOutputIndices[u]=n),o&&o.length>0){var c,l=_createForOfIteratorHelper(o);try{for(l.s();!(c=l.n()).done;){var f=c.value,h=this._nodes[f].inputs.indexOf(i);if(-1===h)throw new Error(\"The Node object doesn't have the output Value in it's 'inputs' property \");this._nodes[f].inputs[h]=n,this._allData[n].to.push(f)}}catch(t){l.e(t)}finally{l.f()}}}},{key:\"removeAllDropoutNodes\",value:function(){var t,e=0,r=_createForOfIteratorHelper(this._nodes);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(\"Dropout\"===n.opType){if(1!==n.inputs.length)throw new Error(\"Dropout nodes should only contain one input. \");if(1!==n.outputs.length&&2!==n.outputs.length)throw new Error(\"Dropout nodes should contain either 1 or 2 output(s)\");if(2===n.outputs.length&&0!==this._allData[n.outputs[1]]._to.length)throw new Error(\"Dropout nodes's second output should not be referenced by other nodes\");this.deleteNode(e)}e++}}catch(t){r.e(t)}finally{r.f()}}},{key:\"removeAllIdentityNodes\",value:function(){var t,e=0,r=_createForOfIteratorHelper(this._nodes);try{for(r.s();!(t=r.n()).done;)\"Identity\"===t.value.opType&&this.deleteNode(e),e++}catch(t){r.e(t)}finally{r.f()}}},{key:\"isActivation\",value:function(t){switch(t.opType){case\"Relu\":case\"Sigmoid\":case\"Clip\":return!0;default:return!1}}},{key:\"fuseConvActivationNodes\",value:function(){var t,e=_createForOfIteratorHelper(this._nodes);try{for(e.s();!(t=e.n()).done;){var r=t.value;if(\"Conv\"===r.opType){var n=this._allData[r.outputs[0]]._to;if(1===n.length&&this.isActivation(this._nodes[n[0]])){var i=this._nodes[n[0]];if(\"Clip\"===i.opType)if(1===i.inputs.length)try{r.attributes.set(\"activation_params\",\"floats\",[i.attributes.getFloat(\"min\"),i.attributes.getFloat(\"max\")])}catch(t){r.attributes.set(\"activation_params\",\"floats\",[s.MIN_CLIP,s.MAX_CLIP])}else{if(!(i.inputs.length>=3&&void 0!==this._allData[i.inputs[1]].tensor&&void 0!==this._allData[i.inputs[2]].tensor))continue;r.attributes.set(\"activation_params\",\"floats\",[this._allData[i.inputs[1]].tensor.floatData[0],this._allData[i.inputs[2]].tensor.floatData[0]])}r.attributes.set(\"activation\",\"string\",i.opType),this.deleteNode(n[0])}}}}catch(t){e.e(t)}finally{e.f()}}}])}()},1315:function(t,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.now=e.Profiler=e.Logger=void 0;var r={verbose:1e3,info:2e3,warning:4e3,error:5e3,fatal:6e3},n={none:new(function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:\"log\",value:function(t,e,r){}}])}()),console:new(function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:\"log\",value:function(t,e,r){\"\".concat(this.color(t),\" \").concat(r?\"\u001b[35m\"+r+\"\u001b[0m \":\"\").concat(e)}},{key:\"color\",value:function(t){switch(t){case\"verbose\":return\"\u001b[34;40mv\u001b[0m\";case\"info\":return\"\u001b[32mi\u001b[0m\";case\"warning\":return\"\u001b[30;43mw\u001b[0m\";case\"error\":return\"\u001b[31;40me\u001b[0m\";case\"fatal\":return\"\u001b[101mf\u001b[0m\";default:throw new Error(\"unsupported severity: \".concat(t))}}}])}())},i={provider:\"console\",minimalSeverity:\"warning\",logDateTime:!0,logSourceLocation:!1},o={\"\":i};function a(t,e,r,n){if(void 0===e)return i=t,{verbose:a.verbose.bind(null,i),info:a.info.bind(null,i),warning:a.warning.bind(null,i),error:a.error.bind(null,i),fatal:a.fatal.bind(null,i)};if(void 0===r)s(t,e);else if(\"number\"==typeof r&&void 0===n)s(t,e);else if(\"string\"==typeof r&&void 0===n)s(t,r,0,e);else{if(\"string\"!=typeof r||\"number\"!=typeof n)throw new TypeError(\"input is valid\");s(t,r,0,e)}var i}function s(t,e,i,a){var s=o[a||\"\"]||o[\"\"];r[t]<r[s.minimalSeverity]||(s.logDateTime&&(e=\"\".concat((new Date).toISOString(),\"|\").concat(e)),s.logSourceLocation,n[s.provider].log(t,e,a))}!function(t){function e(t){o={},r(\"\",t||{})}function r(t,r){if(\"*\"===t)e(r);else{var n=o[t]||i;o[t]={provider:r.provider||n.provider,minimalSeverity:r.minimalSeverity||n.minimalSeverity,logDateTime:void 0===r.logDateTime?n.logDateTime:r.logDateTime,logSourceLocation:void 0===r.logSourceLocation?n.logSourceLocation:r.logSourceLocation}}}t.verbose=function(e,r){t(\"verbose\",e,r)},t.info=function(e,r){t(\"info\",e,r)},t.warning=function(e,r){t(\"warning\",e,r)},t.error=function(e,r){t(\"error\",e,r)},t.fatal=function(e,r){t(\"fatal\",e,r)},t.reset=e,t.set=r,t.setWithEnv=function(t){var e={};t.logLevel&&(e.minimalSeverity=t.logLevel),r(\"\",e)}}(a||(a={})),e.Logger=a;var u=function(){return _createClass((function t(e,r,n,i,o,a){_classCallCheck(this,t),this.category=e,this.name=r,this.startTime=n,this.endCallback=i,this.timer=o,this.ctx=a}),[{key:\"end\",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",this.endCallback(this));case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:\"checkTimer\",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==this.ctx&&void 0!==this.timer){t.next=2;break}throw new Error(\"No webgl timer found\");case 2:return t.abrupt(\"return\",(this.ctx.endTimer(),this.ctx.waitForQueryAndGetTime(this.timer)));case 3:case\"end\":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})}]);var t,e}(),c=_createClass((function t(e,r,n,i){_classCallCheck(this,t),this.category=e,this.name=r,this.startTime=n,this.endTime=i}));e.Profiler=function(){return _createClass((function t(e,r,n){_classCallCheck(this,t),this._started=!1,this._flushPointer=0,this._started=!1,this._maxNumberEvents=void 0===e?1e4:e,this._flushBatchSize=void 0===r?10:r,this._flushIntervalInMilliseconds=void 0===n?5e3:n}),[{key:\"start\",value:function(){this._started=!0,this._timingEvents=[],this._flushTime=(0,e.now)(),this._flushPointer=0}},{key:\"stop\",value:function(){for(this._started=!1;this._flushPointer<this._timingEvents.length;this._flushPointer++)this.logOneEvent(this._timingEvents[this._flushPointer])}},{key:\"event\",value:function(t,e,r,n){var i=this._started?this.begin(t,e,n):void 0,o=!1,a=r();if(a&&\"function\"==typeof a.then)return o=!0,new Promise((function(t,e){a.then(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(r){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=i,!e.t0){e.next=4;break}return e.next=4,i.end();case 4:t(r);case 5:case\"end\":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(r){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=i,!t.t0){t.next=4;break}return t.next=4,i.end();case 4:e(r);case 5:case\"end\":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}));if(!o&&i){var s=i.end();if(s&&\"function\"==typeof s.then)return new Promise((function(t,e){s.then((function(){t(a)}),(function(t){e(t)}))}))}return a}},{key:\"begin\",value:function(t,r,n){var i=this;if(!this._started)throw new Error(\"profiler is not started yet\");if(void 0===n){var o=(0,e.now)();return this.flush(o),new u(t,r,o,(function(t){return i.endSync(t)}))}var a=n.beginTimer();return new u(t,r,0,function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",i.end(e));case 1:case\"end\":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),a,n)}},{key:\"end\",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkTimer();case 2:r=t.sent,this._timingEvents.length<this._maxNumberEvents&&(this._timingEvents.push(new c(e.category,e.name,e.startTime,r)),this.flush(r));case 4:case\"end\":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:\"endSync\",value:function(t){var r=(0,e.now)();this._timingEvents.length<this._maxNumberEvents&&(this._timingEvents.push(new c(t.category,t.name,t.startTime,r)),this.flush(r))}},{key:\"logOneEvent\",value:function(t){e.Logger.verbose(\"Profiler.\".concat(t.category),\"\".concat((t.endTime-t.startTime).toFixed(2),\"ms on event '\").concat(t.name,\"' at \").concat(t.endTime.toFixed(2)))}},{key:\"flush\",value:function(t){if(this._timingEvents.length-this._flushPointer>=this._flushBatchSize||t-this._flushTime>=this._flushIntervalInMilliseconds){for(var r=this._flushPointer;this._flushPointer<r+this._flushBatchSize&&this._flushPointer<this._timingEvents.length;this._flushPointer++)this.logOneEvent(this._timingEvents[this._flushPointer]);this._flushTime=(0,e.now)()}}},{key:\"started\",get:function(){return this._started}}],[{key:\"create\",value:function(t){return void 0===t?new this:new this(t.maxNumberEvents,t.flushBatchSize,t.flushIntervalInMilliseconds)}}]);var t}(),e.now=\"undefined\"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now},1745:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.Model=void 0;var n=r(5686),i=r(4662),o=r(5127),a=r(2446),s=r(7273),u=o.onnxruntime.experimental.fbs;e.Model=function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:\"load\",value:function(t,e,r){if(!r)try{return void this.loadFromOnnxFormat(t,e)}catch(t){if(void 0!==r)throw t}this.loadFromOrtFormat(t,e)}},{key:\"loadFromOnnxFormat\",value:function(t,e){var r=a.onnx.ModelProto.decode(t);if(s.LongUtil.longToNumber(r.irVersion)<3)throw new Error(\"only support ONNX model with IR_VERSION>=3\");this._opsets=r.opsetImport.map((function(t){return{domain:t.domain,version:s.LongUtil.longToNumber(t.version)}})),this._graph=i.Graph.from(r.graph,e)}},{key:\"loadFromOrtFormat\",value:function(t,e){var r=new n.flatbuffers.ByteBuffer(t),o=u.InferenceSession.getRootAsInferenceSession(r).model();if(s.LongUtil.longToNumber(o.irVersion())<3)throw new Error(\"only support ONNX model with IR_VERSION>=3\");this._opsets=[];for(var a=0;a<o.opsetImportLength();a++){var c=o.opsetImport(a);this._opsets.push({domain:null==c?void 0:c.domain(),version:s.LongUtil.longToNumber(c.version())})}this._graph=i.Graph.from(o.graph(),e)}},{key:\"graph\",get:function(){return this._graph}},{key:\"opsets\",get:function(){return this._opsets}}])}()},6145:function(t,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.FLOAT_TYPES=e.INT_TYPES=e.NUMBER_TYPES=void 0,e.NUMBER_TYPES=[\"float32\",\"float64\",\"int32\",\"int16\",\"int8\",\"uint16\",\"uint32\",\"uint8\"],e.INT_TYPES=[\"int32\",\"int16\",\"int8\",\"uint16\",\"uint32\",\"uint8\"],e.FLOAT_TYPES=[\"float32\",\"float64\"]},5881:function(t,e){\"use strict\";function r(t,e){if(e.endsWith(\"+\")){var r=Number.parseInt(e.substring(0,e.length-1),10);return!isNaN(r)&&r<=t}if(2===e.split(\"-\").length){var n=e.split(\"-\"),i=Number.parseInt(n[0],10),o=Number.parseInt(n[1],10);return!isNaN(i)&&!isNaN(o)&&i<=t&&t<=o}return Number.parseInt(e,10)===t}Object.defineProperty(e,\"__esModule\",{value:!0}),e.resolveOperator=void 0,e.resolveOperator=function(t,e,n){var i,o=_createForOfIteratorHelper(n);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a[0],u=a[1],c=a[2],l=a[3],f=a[4];if(t.opType===s){var h,p=_createForOfIteratorHelper(e);try{for(p.s();!(h=p.n()).done;){var d=h.value;if((d.domain===u||\"ai.onnx\"===d.domain&&\"\"===u)&&r(d.version,c))return{opImpl:l,opInit:f}}}catch(t){p.e(t)}finally{p.f()}}}}catch(t){o.e(t)}finally{o.f()}throw new TypeError(\"cannot resolve operator '\".concat(t.opType,\"' with opsets: \").concat(e.map((function(t){return\"\".concat(t.domain||\"ai.onnx\",\" v\").concat(t.version)})).join(\", \")))}},5127:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.onnxruntime=void 0;var n,i,o=r(5686);(function(t){!function(t){t[t.UNDEFINED=0]=\"UNDEFINED\",t[t.FLOAT=1]=\"FLOAT\",t[t.INT=2]=\"INT\",t[t.STRING=3]=\"STRING\",t[t.TENSOR=4]=\"TENSOR\",t[t.GRAPH=5]=\"GRAPH\",t[t.FLOATS=6]=\"FLOATS\",t[t.INTS=7]=\"INTS\",t[t.STRINGS=8]=\"STRINGS\",t[t.TENSORS=9]=\"TENSORS\",t[t.GRAPHS=10]=\"GRAPHS\",t[t.SPARSE_TENSOR=11]=\"SPARSE_TENSOR\",t[t.SPARSE_TENSORS=12]=\"SPARSE_TENSORS\"}(t.AttributeType||(t.AttributeType={}))})((i=(n=e.onnxruntime||(e.onnxruntime={})).experimental||(n.experimental={})).fbs||(i.fbs={})),function(t){!function(t){!function(t){!function(t){t[t.UNKNOWN=0]=\"UNKNOWN\",t[t.VALUE=1]=\"VALUE\",t[t.PARAM=2]=\"PARAM\"}(t.DimensionValueType||(t.DimensionValueType={}))}(t.fbs||(t.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(t){!function(t){!function(t){t[t.UNDEFINED=0]=\"UNDEFINED\",t[t.FLOAT=1]=\"FLOAT\",t[t.UINT8=2]=\"UINT8\",t[t.INT8=3]=\"INT8\",t[t.UINT16=4]=\"UINT16\",t[t.INT16=5]=\"INT16\",t[t.INT32=6]=\"INT32\",t[t.INT64=7]=\"INT64\",t[t.STRING=8]=\"STRING\",t[t.BOOL=9]=\"BOOL\",t[t.FLOAT16=10]=\"FLOAT16\",t[t.DOUBLE=11]=\"DOUBLE\",t[t.UINT32=12]=\"UINT32\",t[t.UINT64=13]=\"UINT64\",t[t.COMPLEX64=14]=\"COMPLEX64\",t[t.COMPLEX128=15]=\"COMPLEX128\",t[t.BFLOAT16=16]=\"BFLOAT16\",t[t.FLOAT8E4M3FN=17]=\"FLOAT8E4M3FN\",t[t.FLOAT8E4M3FNUZ=18]=\"FLOAT8E4M3FNUZ\",t[t.FLOAT8E5M2=19]=\"FLOAT8E5M2\",t[t.FLOAT8E5M2FNUZ=20]=\"FLOAT8E5M2FNUZ\"}(t.TensorDataType||(t.TensorDataType={}))}(t.fbs||(t.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(t){!function(t){!function(t){t[t.Primitive=0]=\"Primitive\",t[t.Fused=1]=\"Fused\"}(t.NodeType||(t.NodeType={}))}(t.fbs||(t.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(t){!function(t){!function(t){t[t.NONE=0]=\"NONE\",t[t.tensor_type=1]=\"tensor_type\",t[t.sequence_type=2]=\"sequence_type\",t[t.map_type=3]=\"map_type\"}(t.TypeInfoValue||(t.TypeInfoValue={}))}(t.fbs||(t.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"dim\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,4);return n?(r||new t.experimental.fbs.Dimension).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:\"dimLength\",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:\"getRootAsShape\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsShape\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startShape\",value:function(t){t.startObject(1)}},{key:\"addDim\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"createDimVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startDimVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"endShape\",value:function(t){return t.endObject()}},{key:\"createShape\",value:function(t,r){return e.startShape(t),e.addDim(t,r),e.endShape(t)}}])}();e.Shape=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"value\",value:function(e){var r=this.bb.__offset(this.bb_pos,4);return r?(e||new t.experimental.fbs.DimensionValue).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}},{key:\"denotation\",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}}],[{key:\"getRootAsDimension\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsDimension\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startDimension\",value:function(t){t.startObject(2)}},{key:\"addValue\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"addDenotation\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"endDimension\",value:function(t){return t.endObject()}},{key:\"createDimension\",value:function(t,r,n){return e.startDimension(t),e.addValue(t,r),e.addDenotation(t,n),e.endDimension(t)}}])}();e.Dimension=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"dimType\",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):t.experimental.fbs.DimensionValueType.UNKNOWN}},{key:\"dimValue\",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:\"dimParam\",value:function(t){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__string(this.bb_pos+e,t):null}}],[{key:\"getRootAsDimensionValue\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsDimensionValue\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startDimensionValue\",value:function(t){t.startObject(3)}},{key:\"addDimType\",value:function(e,r){e.addFieldInt8(0,r,t.experimental.fbs.DimensionValueType.UNKNOWN)}},{key:\"addDimValue\",value:function(t,e){t.addFieldInt64(1,e,t.createLong(0,0))}},{key:\"addDimParam\",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:\"endDimensionValue\",value:function(t){return t.endObject()}},{key:\"createDimensionValue\",value:function(t,r,n,i){return e.startDimensionValue(t),e.addDimType(t,r),e.addDimValue(t,n),e.addDimParam(t,i),e.endDimensionValue(t)}}])}();e.DimensionValue=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"elemType\",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):t.experimental.fbs.TensorDataType.UNDEFINED}},{key:\"shape\",value:function(e){var r=this.bb.__offset(this.bb_pos,6);return r?(e||new t.experimental.fbs.Shape).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}}],[{key:\"getRootAsTensorTypeAndShape\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsTensorTypeAndShape\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startTensorTypeAndShape\",value:function(t){t.startObject(2)}},{key:\"addElemType\",value:function(e,r){e.addFieldInt32(0,r,t.experimental.fbs.TensorDataType.UNDEFINED)}},{key:\"addShape\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"endTensorTypeAndShape\",value:function(t){return t.endObject()}},{key:\"createTensorTypeAndShape\",value:function(t,r,n){return e.startTensorTypeAndShape(t),e.addElemType(t,r),e.addShape(t,n),e.endTensorTypeAndShape(t)}}])}();e.TensorTypeAndShape=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"keyType\",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):t.experimental.fbs.TensorDataType.UNDEFINED}},{key:\"valueType\",value:function(e){var r=this.bb.__offset(this.bb_pos,6);return r?(e||new t.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}}],[{key:\"getRootAsMapType\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsMapType\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startMapType\",value:function(t){t.startObject(2)}},{key:\"addKeyType\",value:function(e,r){e.addFieldInt32(0,r,t.experimental.fbs.TensorDataType.UNDEFINED)}},{key:\"addValueType\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"endMapType\",value:function(t){return t.endObject()}},{key:\"createMapType\",value:function(t,r,n){return e.startMapType(t),e.addKeyType(t,r),e.addValueType(t,n),e.endMapType(t)}}])}();e.MapType=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"elemType\",value:function(e){var r=this.bb.__offset(this.bb_pos,4);return r?(e||new t.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}}],[{key:\"getRootAsSequenceType\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsSequenceType\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startSequenceType\",value:function(t){t.startObject(1)}},{key:\"addElemType\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"endSequenceType\",value:function(t){return t.endObject()}},{key:\"createSequenceType\",value:function(t,r){return e.startSequenceType(t),e.addElemType(t,r),e.endSequenceType(t)}}])}();e.SequenceType=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(t){(t.fbs||(t.fbs={})).EdgeEnd=function(){return _createClass((function t(){_classCallCheck(this,t),this.bb=null,this.bb_pos=0}),[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"nodeIndex\",value:function(){return this.bb.readUint32(this.bb_pos)}},{key:\"srcArgIndex\",value:function(){return this.bb.readInt32(this.bb_pos+4)}},{key:\"dstArgIndex\",value:function(){return this.bb.readInt32(this.bb_pos+8)}}],[{key:\"createEdgeEnd\",value:function(t,e,r,n){return t.prep(4,12),t.writeInt32(n),t.writeInt32(r),t.writeInt32(e),t.offset()}}])}()}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"nodeIndex\",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint32(this.bb_pos+t):0}},{key:\"inputEdges\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,6);return n?(r||new t.experimental.fbs.EdgeEnd).__init(this.bb.__vector(this.bb_pos+n)+12*e,this.bb):null}},{key:\"inputEdgesLength\",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"outputEdges\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,8);return n?(r||new t.experimental.fbs.EdgeEnd).__init(this.bb.__vector(this.bb_pos+n)+12*e,this.bb):null}},{key:\"outputEdgesLength\",value:function(){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:\"getRootAsNodeEdge\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsNodeEdge\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startNodeEdge\",value:function(t){t.startObject(3)}},{key:\"addNodeIndex\",value:function(t,e){t.addFieldInt32(0,e,0)}},{key:\"addInputEdges\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"startInputEdgesVector\",value:function(t,e){t.startVector(12,e,4)}},{key:\"addOutputEdges\",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:\"startOutputEdgesVector\",value:function(t,e){t.startVector(12,e,4)}},{key:\"endNodeEdge\",value:function(t){return t.endObject()}},{key:\"createNodeEdge\",value:function(t,r,n,i){return e.startNodeEdge(t),e.addNodeIndex(t,r),e.addInputEdges(t,n),e.addOutputEdges(t,i),e.endNodeEdge(t)}}])}();e.NodeEdge=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"name\",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"docString\",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"domain\",value:function(t){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"sinceVersion\",value:function(){var t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt32(this.bb_pos+t):0}},{key:\"index\",value:function(){var t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readUint32(this.bb_pos+t):0}},{key:\"opType\",value:function(t){var e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"type\",value:function(){var e=this.bb.__offset(this.bb_pos,16);return e?this.bb.readInt32(this.bb_pos+e):t.experimental.fbs.NodeType.Primitive}},{key:\"executionProviderType\",value:function(t){var e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"inputs\",value:function(t,e){var r=this.bb.__offset(this.bb_pos,20);return r?this.bb.__string(this.bb.__vector(this.bb_pos+r)+4*t,e):null}},{key:\"inputsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,20);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"outputs\",value:function(t,e){var r=this.bb.__offset(this.bb_pos,22);return r?this.bb.__string(this.bb.__vector(this.bb_pos+r)+4*t,e):null}},{key:\"outputsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,22);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"attributes\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,24);return n?(r||new t.experimental.fbs.Attribute).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:\"attributesLength\",value:function(){var t=this.bb.__offset(this.bb_pos,24);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"inputArgCounts\",value:function(t){var e=this.bb.__offset(this.bb_pos,26);return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+4*t):0}},{key:\"inputArgCountsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,26);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"inputArgCountsArray\",value:function(){var t=this.bb.__offset(this.bb_pos,26);return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}},{key:\"implicitInputs\",value:function(t,e){var r=this.bb.__offset(this.bb_pos,28);return r?this.bb.__string(this.bb.__vector(this.bb_pos+r)+4*t,e):null}},{key:\"implicitInputsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,28);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:\"getRootAsNode\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsNode\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startNode\",value:function(t){t.startObject(13)}},{key:\"addName\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"addDocString\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"addDomain\",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:\"addSinceVersion\",value:function(t,e){t.addFieldInt32(3,e,0)}},{key:\"addIndex\",value:function(t,e){t.addFieldInt32(4,e,0)}},{key:\"addOpType\",value:function(t,e){t.addFieldOffset(5,e,0)}},{key:\"addType\",value:function(e,r){e.addFieldInt32(6,r,t.experimental.fbs.NodeType.Primitive)}},{key:\"addExecutionProviderType\",value:function(t,e){t.addFieldOffset(7,e,0)}},{key:\"addInputs\",value:function(t,e){t.addFieldOffset(8,e,0)}},{key:\"createInputsVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startInputsVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addOutputs\",value:function(t,e){t.addFieldOffset(9,e,0)}},{key:\"createOutputsVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startOutputsVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addAttributes\",value:function(t,e){t.addFieldOffset(10,e,0)}},{key:\"createAttributesVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startAttributesVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addInputArgCounts\",value:function(t,e){t.addFieldOffset(11,e,0)}},{key:\"createInputArgCountsVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addInt32(e[r]);return t.endVector()}},{key:\"startInputArgCountsVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addImplicitInputs\",value:function(t,e){t.addFieldOffset(12,e,0)}},{key:\"createImplicitInputsVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startImplicitInputsVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"endNode\",value:function(t){return t.endObject()}},{key:\"createNode\",value:function(t,r,n,i,o,a,s,u,c,l,f,h,p,d){return e.startNode(t),e.addName(t,r),e.addDocString(t,n),e.addDomain(t,i),e.addSinceVersion(t,o),e.addIndex(t,a),e.addOpType(t,s),e.addType(t,u),e.addExecutionProviderType(t,c),e.addInputs(t,l),e.addOutputs(t,f),e.addAttributes(t,h),e.addInputArgCounts(t,p),e.addImplicitInputs(t,d),e.endNode(t)}}])}();e.Node=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"name\",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"docString\",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"type\",value:function(e){var r=this.bb.__offset(this.bb_pos,8);return r?(e||new t.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}}],[{key:\"getRootAsValueInfo\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsValueInfo\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startValueInfo\",value:function(t){t.startObject(3)}},{key:\"addName\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"addDocString\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"addType\",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:\"endValueInfo\",value:function(t){return t.endObject()}},{key:\"createValueInfo\",value:function(t,r,n,i){return e.startValueInfo(t),e.addName(t,r),e.addDocString(t,n),e.addType(t,i),e.endValueInfo(t)}}])}();e.ValueInfo=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"denotation\",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"valueType\",value:function(){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):t.experimental.fbs.TypeInfoValue.NONE}},{key:\"value\",value:function(t){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(t,this.bb_pos+e):null}}],[{key:\"getRootAsTypeInfo\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsTypeInfo\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startTypeInfo\",value:function(t){t.startObject(3)}},{key:\"addDenotation\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"addValueType\",value:function(e,r){e.addFieldInt8(1,r,t.experimental.fbs.TypeInfoValue.NONE)}},{key:\"addValue\",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:\"endTypeInfo\",value:function(t){return t.endObject()}},{key:\"createTypeInfo\",value:function(t,r,n,i){return e.startTypeInfo(t),e.addDenotation(t,r),e.addValueType(t,n),e.addValue(t,i),e.endTypeInfo(t)}}])}();e.TypeInfo=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(t){!function(t){var e=function(){function t(){_classCallCheck(this,t),this.bb=null,this.bb_pos=0}return _createClass(t,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"domain\",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"version\",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}}],[{key:\"getRootAsOperatorSetId\",value:function(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:\"getSizePrefixedRootAsOperatorSetId\",value:function(e,r){return e.setPosition(e.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:\"startOperatorSetId\",value:function(t){t.startObject(2)}},{key:\"addDomain\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"addVersion\",value:function(t,e){t.addFieldInt64(1,e,t.createLong(0,0))}},{key:\"endOperatorSetId\",value:function(t){return t.endObject()}},{key:\"createOperatorSetId\",value:function(e,r,n){return t.startOperatorSetId(e),t.addDomain(e,r),t.addVersion(e,n),t.endOperatorSetId(e)}}])}();t.OperatorSetId=e}(t.fbs||(t.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"name\",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"docString\",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"dims\",value:function(t){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*t):this.bb.createLong(0,0)}},{key:\"dimsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"dataType\",value:function(){var e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt32(this.bb_pos+e):t.experimental.fbs.TensorDataType.UNDEFINED}},{key:\"rawData\",value:function(t){var e=this.bb.__offset(this.bb_pos,12);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}},{key:\"rawDataLength\",value:function(){var t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"rawDataArray\",value:function(){var t=this.bb.__offset(this.bb_pos,12);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}},{key:\"stringData\",value:function(t,e){var r=this.bb.__offset(this.bb_pos,14);return r?this.bb.__string(this.bb.__vector(this.bb_pos+r)+4*t,e):null}},{key:\"stringDataLength\",value:function(){var t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:\"getRootAsTensor\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsTensor\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startTensor\",value:function(t){t.startObject(6)}},{key:\"addName\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"addDocString\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"addDims\",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:\"createDimsVector\",value:function(t,e){t.startVector(8,e.length,8);for(var r=e.length-1;r>=0;r--)t.addInt64(e[r]);return t.endVector()}},{key:\"startDimsVector\",value:function(t,e){t.startVector(8,e,8)}},{key:\"addDataType\",value:function(e,r){e.addFieldInt32(3,r,t.experimental.fbs.TensorDataType.UNDEFINED)}},{key:\"addRawData\",value:function(t,e){t.addFieldOffset(4,e,0)}},{key:\"createRawDataVector\",value:function(t,e){t.startVector(1,e.length,1);for(var r=e.length-1;r>=0;r--)t.addInt8(e[r]);return t.endVector()}},{key:\"startRawDataVector\",value:function(t,e){t.startVector(1,e,1)}},{key:\"addStringData\",value:function(t,e){t.addFieldOffset(5,e,0)}},{key:\"createStringDataVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startStringDataVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"endTensor\",value:function(t){return t.endObject()}},{key:\"createTensor\",value:function(t,r,n,i,o,a,s){return e.startTensor(t),e.addName(t,r),e.addDocString(t,n),e.addDims(t,i),e.addDataType(t,o),e.addRawData(t,a),e.addStringData(t,s),e.endTensor(t)}}])}();e.Tensor=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"values\",value:function(e){var r=this.bb.__offset(this.bb_pos,4);return r?(e||new t.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}},{key:\"indices\",value:function(e){var r=this.bb.__offset(this.bb_pos,6);return r?(e||new t.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}},{key:\"dims\",value:function(t){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*t):this.bb.createLong(0,0)}},{key:\"dimsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:\"getRootAsSparseTensor\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsSparseTensor\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startSparseTensor\",value:function(t){t.startObject(3)}},{key:\"addValues\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"addIndices\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"addDims\",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:\"createDimsVector\",value:function(t,e){t.startVector(8,e.length,8);for(var r=e.length-1;r>=0;r--)t.addInt64(e[r]);return t.endVector()}},{key:\"startDimsVector\",value:function(t,e){t.startVector(8,e,8)}},{key:\"endSparseTensor\",value:function(t){return t.endObject()}},{key:\"createSparseTensor\",value:function(t,r,n,i){return e.startSparseTensor(t),e.addValues(t,r),e.addIndices(t,n),e.addDims(t,i),e.endSparseTensor(t)}}])}();e.SparseTensor=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"name\",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"docString\",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"type\",value:function(){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):t.experimental.fbs.AttributeType.UNDEFINED}},{key:\"f\",value:function(){var t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readFloat32(this.bb_pos+t):0}},{key:\"i\",value:function(){var t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:\"s\",value:function(t){var e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"t\",value:function(e){var r=this.bb.__offset(this.bb_pos,16);return r?(e||new t.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}},{key:\"g\",value:function(e){var r=this.bb.__offset(this.bb_pos,18);return r?(e||new t.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}},{key:\"floats\",value:function(t){var e=this.bb.__offset(this.bb_pos,20);return e?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e)+4*t):0}},{key:\"floatsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,20);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"floatsArray\",value:function(){var t=this.bb.__offset(this.bb_pos,20);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}},{key:\"ints\",value:function(t){var e=this.bb.__offset(this.bb_pos,22);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*t):this.bb.createLong(0,0)}},{key:\"intsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,22);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"strings\",value:function(t,e){var r=this.bb.__offset(this.bb_pos,24);return r?this.bb.__string(this.bb.__vector(this.bb_pos+r)+4*t,e):null}},{key:\"stringsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,24);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"tensors\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,26);return n?(r||new t.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:\"tensorsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,26);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"graphs\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,28);return n?(r||new t.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:\"graphsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,28);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:\"getRootAsAttribute\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsAttribute\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startAttribute\",value:function(t){t.startObject(13)}},{key:\"addName\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"addDocString\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"addType\",value:function(e,r){e.addFieldInt32(2,r,t.experimental.fbs.AttributeType.UNDEFINED)}},{key:\"addF\",value:function(t,e){t.addFieldFloat32(3,e,0)}},{key:\"addI\",value:function(t,e){t.addFieldInt64(4,e,t.createLong(0,0))}},{key:\"addS\",value:function(t,e){t.addFieldOffset(5,e,0)}},{key:\"addT\",value:function(t,e){t.addFieldOffset(6,e,0)}},{key:\"addG\",value:function(t,e){t.addFieldOffset(7,e,0)}},{key:\"addFloats\",value:function(t,e){t.addFieldOffset(8,e,0)}},{key:\"createFloatsVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addFloat32(e[r]);return t.endVector()}},{key:\"startFloatsVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addInts\",value:function(t,e){t.addFieldOffset(9,e,0)}},{key:\"createIntsVector\",value:function(t,e){t.startVector(8,e.length,8);for(var r=e.length-1;r>=0;r--)t.addInt64(e[r]);return t.endVector()}},{key:\"startIntsVector\",value:function(t,e){t.startVector(8,e,8)}},{key:\"addStrings\",value:function(t,e){t.addFieldOffset(10,e,0)}},{key:\"createStringsVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startStringsVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addTensors\",value:function(t,e){t.addFieldOffset(11,e,0)}},{key:\"createTensorsVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startTensorsVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addGraphs\",value:function(t,e){t.addFieldOffset(12,e,0)}},{key:\"createGraphsVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startGraphsVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"endAttribute\",value:function(t){return t.endObject()}},{key:\"createAttribute\",value:function(t,r,n,i,o,a,s,u,c,l,f,h,p,d){return e.startAttribute(t),e.addName(t,r),e.addDocString(t,n),e.addType(t,i),e.addF(t,o),e.addI(t,a),e.addS(t,s),e.addT(t,u),e.addG(t,c),e.addFloats(t,l),e.addInts(t,f),e.addStrings(t,h),e.addTensors(t,p),e.addGraphs(t,d),e.endAttribute(t)}}])}();e.Attribute=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"initializers\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,4);return n?(r||new t.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:\"initializersLength\",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"nodeArgs\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,6);return n?(r||new t.experimental.fbs.ValueInfo).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:\"nodeArgsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"nodes\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,8);return n?(r||new t.experimental.fbs.Node).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:\"nodesLength\",value:function(){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"maxNodeIndex\",value:function(){var t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readUint32(this.bb_pos+t):0}},{key:\"nodeEdges\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,12);return n?(r||new t.experimental.fbs.NodeEdge).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:\"nodeEdgesLength\",value:function(){var t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"inputs\",value:function(t,e){var r=this.bb.__offset(this.bb_pos,14);return r?this.bb.__string(this.bb.__vector(this.bb_pos+r)+4*t,e):null}},{key:\"inputsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"outputs\",value:function(t,e){var r=this.bb.__offset(this.bb_pos,16);return r?this.bb.__string(this.bb.__vector(this.bb_pos+r)+4*t,e):null}},{key:\"outputsLength\",value:function(){var t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"sparseInitializers\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,18);return n?(r||new t.experimental.fbs.SparseTensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:\"sparseInitializersLength\",value:function(){var t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:\"getRootAsGraph\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsGraph\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startGraph\",value:function(t){t.startObject(8)}},{key:\"addInitializers\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"createInitializersVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startInitializersVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addNodeArgs\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"createNodeArgsVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startNodeArgsVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addNodes\",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:\"createNodesVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startNodesVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addMaxNodeIndex\",value:function(t,e){t.addFieldInt32(3,e,0)}},{key:\"addNodeEdges\",value:function(t,e){t.addFieldOffset(4,e,0)}},{key:\"createNodeEdgesVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startNodeEdgesVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addInputs\",value:function(t,e){t.addFieldOffset(5,e,0)}},{key:\"createInputsVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startInputsVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addOutputs\",value:function(t,e){t.addFieldOffset(6,e,0)}},{key:\"createOutputsVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startOutputsVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addSparseInitializers\",value:function(t,e){t.addFieldOffset(7,e,0)}},{key:\"createSparseInitializersVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startSparseInitializersVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"endGraph\",value:function(t){return t.endObject()}},{key:\"createGraph\",value:function(t,r,n,i,o,a,s,u,c){return e.startGraph(t),e.addInitializers(t,r),e.addNodeArgs(t,n),e.addNodes(t,i),e.addMaxNodeIndex(t,o),e.addNodeEdges(t,a),e.addInputs(t,s),e.addOutputs(t,u),e.addSparseInitializers(t,c),e.endGraph(t)}}])}();e.Graph=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"irVersion\",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:\"opsetImport\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,6);return n?(r||new t.experimental.fbs.OperatorSetId).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:\"opsetImportLength\",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"producerName\",value:function(t){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"producerVersion\",value:function(t){var e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"domain\",value:function(t){var e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"modelVersion\",value:function(){var t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:\"docString\",value:function(t){var e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"graph\",value:function(e){var r=this.bb.__offset(this.bb_pos,18);return r?(e||new t.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}},{key:\"graphDocString\",value:function(t){var e=this.bb.__offset(this.bb_pos,20);return e?this.bb.__string(this.bb_pos+e,t):null}}],[{key:\"getRootAsModel\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsModel\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startModel\",value:function(t){t.startObject(9)}},{key:\"addIrVersion\",value:function(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}},{key:\"addOpsetImport\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"createOpsetImportVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startOpsetImportVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addProducerName\",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:\"addProducerVersion\",value:function(t,e){t.addFieldOffset(3,e,0)}},{key:\"addDomain\",value:function(t,e){t.addFieldOffset(4,e,0)}},{key:\"addModelVersion\",value:function(t,e){t.addFieldInt64(5,e,t.createLong(0,0))}},{key:\"addDocString\",value:function(t,e){t.addFieldOffset(6,e,0)}},{key:\"addGraph\",value:function(t,e){t.addFieldOffset(7,e,0)}},{key:\"addGraphDocString\",value:function(t,e){t.addFieldOffset(8,e,0)}},{key:\"endModel\",value:function(t){return t.endObject()}},{key:\"createModel\",value:function(t,r,n,i,o,a,s,u,c,l){return e.startModel(t),e.addIrVersion(t,r),e.addOpsetImport(t,n),e.addProducerName(t,i),e.addProducerVersion(t,o),e.addDomain(t,a),e.addModelVersion(t,s),e.addDocString(t,u),e.addGraph(t,c),e.addGraphDocString(t,l),e.endModel(t)}}])}();e.Model=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(t){!function(t){var e=function(){function t(){_classCallCheck(this,t),this.bb=null,this.bb_pos=0}return _createClass(t,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"nodeIndices\",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readUint32(this.bb.__vector(this.bb_pos+e)+4*t):0}},{key:\"nodeIndicesLength\",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:\"nodeIndicesArray\",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?new Uint32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}},{key:\"kernelDefHashes\",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint64(this.bb.__vector(this.bb_pos+e)+8*t):this.bb.createLong(0,0)}},{key:\"kernelDefHashesLength\",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:\"getRootAsKernelCreateInfos\",value:function(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:\"getSizePrefixedRootAsKernelCreateInfos\",value:function(e,r){return e.setPosition(e.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:\"startKernelCreateInfos\",value:function(t){t.startObject(2)}},{key:\"addNodeIndices\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"createNodeIndicesVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addInt32(e[r]);return t.endVector()}},{key:\"startNodeIndicesVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"addKernelDefHashes\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"createKernelDefHashesVector\",value:function(t,e){t.startVector(8,e.length,8);for(var r=e.length-1;r>=0;r--)t.addInt64(e[r]);return t.endVector()}},{key:\"startKernelDefHashesVector\",value:function(t,e){t.startVector(8,e,8)}},{key:\"endKernelCreateInfos\",value:function(t){return t.endObject()}},{key:\"createKernelCreateInfos\",value:function(e,r,n){return t.startKernelCreateInfos(e),t.addNodeIndices(e,r),t.addKernelDefHashes(e,n),t.endKernelCreateInfos(e)}}])}();t.KernelCreateInfos=e}(t.fbs||(t.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"graphId\",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"sessionState\",value:function(e){var r=this.bb.__offset(this.bb_pos,6);return r?(e||new t.experimental.fbs.SessionState).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}}],[{key:\"getRootAsSubGraphSessionState\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsSubGraphSessionState\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startSubGraphSessionState\",value:function(t){t.startObject(2)}},{key:\"addGraphId\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"addSessionState\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"endSubGraphSessionState\",value:function(t){var e=t.endObject();return t.requiredField(e,4),e}},{key:\"createSubGraphSessionState\",value:function(t,r,n){return e.startSubGraphSessionState(t),e.addGraphId(t,r),e.addSessionState(t,n),e.endSubGraphSessionState(t)}}])}();e.SubGraphSessionState=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"kernels\",value:function(e){var r=this.bb.__offset(this.bb_pos,4);return r?(e||new t.experimental.fbs.KernelCreateInfos).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}},{key:\"subGraphSessionStates\",value:function(e,r){var n=this.bb.__offset(this.bb_pos,6);return n?(r||new t.experimental.fbs.SubGraphSessionState).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:\"subGraphSessionStatesLength\",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:\"getRootAsSessionState\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsSessionState\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"startSessionState\",value:function(t){t.startObject(2)}},{key:\"addKernels\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"addSubGraphSessionStates\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"createSubGraphSessionStatesVector\",value:function(t,e){t.startVector(4,e.length,4);for(var r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}},{key:\"startSubGraphSessionStatesVector\",value:function(t,e){t.startVector(4,e,4)}},{key:\"endSessionState\",value:function(t){return t.endObject()}},{key:\"createSessionState\",value:function(t,r,n){return e.startSessionState(t),e.addKernels(t,r),e.addSubGraphSessionStates(t,n),e.endSessionState(t)}}])}();e.SessionState=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={})),function(t){!function(e){!function(e){var r=function(){function e(){_classCallCheck(this,e),this.bb=null,this.bb_pos=0}return _createClass(e,[{key:\"__init\",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:\"ortVersion\",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:\"model\",value:function(e){var r=this.bb.__offset(this.bb_pos,6);return r?(e||new t.experimental.fbs.Model).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}},{key:\"sessionState\",value:function(e){var r=this.bb.__offset(this.bb_pos,8);return r?(e||new t.experimental.fbs.SessionState).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}}],[{key:\"getRootAsInferenceSession\",value:function(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"getSizePrefixedRootAsInferenceSession\",value:function(t,r){return t.setPosition(t.position()+o.flatbuffers.SIZE_PREFIX_LENGTH),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:\"bufferHasIdentifier\",value:function(t){return t.__has_identifier(\"ORTM\")}},{key:\"startInferenceSession\",value:function(t){t.startObject(3)}},{key:\"addOrtVersion\",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:\"addModel\",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:\"addSessionState\",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:\"endInferenceSession\",value:function(t){return t.endObject()}},{key:\"finishInferenceSessionBuffer\",value:function(t,e){t.finish(e,\"ORTM\")}},{key:\"finishSizePrefixedInferenceSessionBuffer\",value:function(t,e){t.finish(e,\"ORTM\",!0)}},{key:\"createInferenceSession\",value:function(t,r,n,i){return e.startInferenceSession(t),e.addOrtVersion(t,r),e.addModel(t,n),e.addSessionState(t,i),e.endInferenceSession(t)}}])}();e.InferenceSession=r}(e.fbs||(e.fbs={}))}(t.experimental||(t.experimental={}))}(e.onnxruntime||(e.onnxruntime={}))},1723:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.OnnxjsSessionHandler=void 0;var n=r(1670),i=r(9240);e.OnnxjsSessionHandler=function(){return _createClass((function t(e){_classCallCheck(this,t),this.session=e,this.inputNames=this.session.inputNames,this.outputNames=this.session.outputNames}),[{key:\"dispose\",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:\"run\",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r,o){var a,s,u,c,l;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(s in a=new Map,e)Object.hasOwnProperty.call(e,s)&&(u=e[s],a.set(s,new i.Tensor(u.dims,u.type,void 0,void 0,u.data)));return t.next=4,this.session.run(a);case 4:return c=t.sent,l={},t.abrupt(\"return\",(c.forEach((function(t,e){l[e]=new n.Tensor(t.type,t.data,t.dims)})),l));case 7:case\"end\":return t.stop()}}),t,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:\"startProfiling\",value:function(){this.session.startProfiling()}},{key:\"endProfiling\",value:function(){this.session.endProfiling()}}]);var t,e}()},6027:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.Session=void 0;var n=r(7067),i=r(1296),o=r(1975),a=r(6496),s=r(1315),u=r(1745);e.Session=function(){return _createClass((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this._initialized=!1,this.backendHint=e.backendHint,this.profiler=s.Profiler.create(e.profiler),this.context={profiler:this.profiler,graphInputTypes:[],graphInputDims:[]}}),[{key:\"inputNames\",get:function(){return this._model.graph.getInputNames()}},{key:\"outputNames\",get:function(){return this._model.graph.getOutputNames()}},{key:\"startProfiling\",value:function(){this.profiler.start()}},{key:\"endProfiling\",value:function(){this.profiler.stop()}},{key:\"loadModel\",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r,a){var s=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.profiler.event(\"session\",\"Session.loadModel\",_asyncToGenerator(_regeneratorRuntime().mark((function t(){var c,l,f,h,p,d;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.resolveBackend)(s.backendHint);case 2:if(c=t.sent,s.sessionHandler=c.createSessionHandler(s.context),s._model=new u.Model,\"string\"!=typeof e){t.next=21;break}if(l=e.endsWith(\".ort\"),void 0===process||!process.versions||!process.versions.node){t.next=12;break}return t.next=8,(0,i.promisify)(n.readFile)(e);case 8:f=t.sent,s.initialize(f,l),t.next=19;break;case 12:return t.next=14,fetch(e);case 14:return h=t.sent,t.next=17,h.arrayBuffer();case 17:p=t.sent,s.initialize(new Uint8Array(p),l);case 19:t.next=22;break;case 21:ArrayBuffer.isView(e)?s.initialize(e):(d=new Uint8Array(e,r||0,a||e.byteLength),s.initialize(d));case 22:case\"end\":return t.stop()}}),t)}))));case 2:case\"end\":return t.stop()}}),t,this)}))),function(t,r,n){return e.apply(this,arguments)})},{key:\"initialize\",value:function(t,e){var r=this;if(this._initialized)throw new Error(\"already initialized\");this.profiler.event(\"session\",\"Session.initialize\",(function(){var n=r.sessionHandler.transformGraph?r.sessionHandler:void 0;r._model.load(t,n,e),r.sessionHandler.onGraphInitialized&&r.sessionHandler.onGraphInitialized(r._model.graph),r.initializeOps(r._model.graph),r._executionPlan=new a.ExecutionPlan(r._model.graph,r._ops,r.profiler)})),this._initialized=!0}},{key:\"run\",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._initialized){t.next=2;break}throw new Error(\"session not initialized yet\");case 2:return t.abrupt(\"return\",this.profiler.event(\"session\",\"Session.run\",_asyncToGenerator(_regeneratorRuntime().mark((function t(){var n,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.normalizeAndValidateInputs(e),t.next=3,r._executionPlan.execute(r.sessionHandler,n);case 3:return i=t.sent,t.abrupt(\"return\",r.createOutput(i));case 5:case\"end\":return t.stop()}}),t)})))));case 3:case\"end\":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:\"normalizeAndValidateInputs\",value:function(t){var e=this._model.graph.getInputNames();if(Array.isArray(t)){if(t.length!==e.length)throw new Error(\"incorrect input array length: expected \".concat(e.length,\" but got \").concat(t.length))}else{if(t.size!==e.length)throw new Error(\"incorrect input map size: expected \".concat(e.length,\" but got \").concat(t.size));for(var r=new Array(t.size),n=0,i=0;i<e.length;++i){var o=t.get(e[i]);if(!o)throw new Error(\"missing input tensor for: '\".concat(name,\"'\"));r[n++]=o}t=r}if(this.context.graphInputTypes&&0!==this.context.graphInputTypes.length&&this.context.graphInputDims&&0!==this.context.graphInputDims.length)this.validateInputTensorDims(this.context.graphInputDims,t,!1);else{for(var a=this._model.graph.getInputIndices(),s=this._model.graph.getValues(),u=new Array(a.length),c=0;c<a.length;++c){var l=s[a[c]];u[c]=l.type.shape.dims,this.context.graphInputTypes.push(l.type.tensorType),this.context.graphInputDims.push(t[c].dims)}this.validateInputTensorDims(u,t,!0)}return this.validateInputTensorTypes(this.context.graphInputTypes,t),t}},{key:\"validateInputTensorTypes\",value:function(t,e){for(var r=0;r<e.length;r++){var n=t[r],i=e[r].type;if(n!==i)throw new Error(\"input tensor[\".concat(r,\"] check failed: expected type '\").concat(n,\"' but got \").concat(i))}}},{key:\"validateInputTensorDims\",value:function(t,e,r){for(var n=0;n<e.length;n++){var i=t[n],o=e[n].dims;if(!this.compareTensorDims(i,o,r))throw new Error(\"input tensor[\".concat(n,\"] check failed: expected shape '[\").concat(i.join(\",\"),\"]' but got [\").concat(o.join(\",\"),\"]\"))}}},{key:\"compareTensorDims\",value:function(t,e,r){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(t[n]!==e[n]&&(!r||0!==t[n]))return!1;return!0}},{key:\"createOutput\",value:function(t){var e=this._model.graph.getOutputNames();if(t.length!==e.length)throw new Error(\"expected number of outputs do not match number of generated outputs\");for(var r=new Map,n=0;n<e.length;++n)r.set(e[n],t[n]);return r}},{key:\"initializeOps\",value:function(t){var e=t.getNodes();this._ops=new Array(e.length);for(var r=0;r<e.length;r++)this._ops[r]=this.sessionHandler.resolve(e[r],this._model.opsets,t)}}]);var t,e}()},9240:function(t,e,r){\"use strict\";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,\"__esModule\",{value:!0}),e.Tensor=void 0;var i=r(3442),o=n(r(1583)),a=r(5127),s=r(2446),u=r(7273),c=a.onnxruntime.experimental.fbs,l=function(){function t(e,r,n,o,a){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:i.Guid.create();_classCallCheck(this,t),this.dims=e,this.type=r,this.dataProvider=n,this.asyncDataProvider=o,this.cache=a,this.dataId=s,this.size=u.ShapeUtil.validateDimsAndCalcSize(e);var c=this.size,l=void 0===n&&void 0===o&&void 0===a;if(void 0!==a&&a.length!==c)throw new RangeError(\"Input dims doesn't match data length.\");if(\"string\"===r){if(!(void 0===a||Array.isArray(a)&&a.every((function(t){return\"string\"==typeof t}))))throw new TypeError(\"cache should be a string array\");l&&(this.cache=new Array(c))}else{if(void 0!==a){var f=h(r);if(!(a instanceof f))throw new TypeError(\"cache should be type \".concat(f.name))}if(l){var p=new ArrayBuffer(c*function(t){switch(t){case\"bool\":case\"int8\":case\"uint8\":return 1;case\"int16\":case\"uint16\":return 2;case\"int32\":case\"uint32\":case\"float32\":return 4;case\"float64\":return 8;default:throw new Error(\"cannot calculate sizeof() on type \".concat(t))}}(r));this.cache=function(t,e){return new(h(e))(t)}(p,r)}}}return _createClass(t,[{key:\"data\",get:function(){if(void 0===this.cache){var t=this.dataProvider(this.dataId);if(t.length!==this.size)throw new Error(\"Length of data provided by the Data Provider is inconsistent with the dims of this Tensor.\");this.cache=t}return this.cache}},{key:\"stringData\",get:function(){if(\"string\"!==this.type)throw new TypeError(\"data type is not string\");return this.data}},{key:\"integerData\",get:function(){switch(this.type){case\"uint8\":case\"int8\":case\"uint16\":case\"int16\":case\"int32\":case\"uint32\":case\"bool\":return this.data;default:throw new TypeError(\"data type is not integer (uint8, int8, uint16, int16, int32, uint32, bool)\")}}},{key:\"floatData\",get:function(){switch(this.type){case\"float32\":case\"float64\":return this.data;default:throw new TypeError(\"data type is not float (float32, float64)\")}}},{key:\"numberData\",get:function(){if(\"string\"!==this.type)return this.data;throw new TypeError(\"type cannot be non-number (string)\")}},{key:\"get\",value:function(t){return this.data[u.ShapeUtil.indicesToOffset(t,this.strides)]}},{key:\"set\",value:function(t,e){this.data[u.ShapeUtil.indicesToOffset(t,this.strides)]=e}},{key:\"getData\",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=void 0===this.cache,!t.t0){t.next=5;break}return t.next=4,this.asyncDataProvider(this.dataId);case 4:this.cache=t.sent;case 5:return t.abrupt(\"return\",this.cache);case 6:case\"end\":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:\"strides\",get:function(){return this._strides||(this._strides=u.ShapeUtil.computeStrides(this.dims)),this._strides}}],[{key:\"fromProto\",value:function(e){if(!e)throw new Error(\"cannot construct Value from an empty tensor\");var r=u.ProtoUtil.tensorDataTypeFromProto(e.dataType),n=new t(u.ProtoUtil.tensorDimsFromProto(e.dims),r);if(\"string\"===r)e.stringData.forEach((function(t,e){n.data[e]=(0,u.decodeUtf8String)(t)}));else if(e.rawData&&\"number\"==typeof e.rawData.byteLength&&e.rawData.byteLength>0){var i=n.data,a=new DataView(e.rawData.buffer,e.rawData.byteOffset,e.rawData.byteLength),c=f(e.dataType),l=e.rawData.byteLength/c;if(e.rawData.byteLength%c!=0)throw new Error(\"invalid buffer length\");if(i.length!==l)throw new Error(\"buffer length mismatch\");for(var h=0;h<l;h++){var m=d(a,e.dataType,h*c);i[h]=m}}else{var y;switch(e.dataType){case s.onnx.TensorProto.DataType.FLOAT:y=e.floatData;break;case s.onnx.TensorProto.DataType.INT32:case s.onnx.TensorProto.DataType.INT16:case s.onnx.TensorProto.DataType.UINT16:case s.onnx.TensorProto.DataType.INT8:case s.onnx.TensorProto.DataType.UINT8:case s.onnx.TensorProto.DataType.BOOL:y=e.int32Data;break;case s.onnx.TensorProto.DataType.INT64:y=e.int64Data;break;case s.onnx.TensorProto.DataType.DOUBLE:y=e.doubleData;break;case s.onnx.TensorProto.DataType.UINT32:case s.onnx.TensorProto.DataType.UINT64:y=e.uint64Data;break;default:throw new Error(\"unspecific error\")}if(null==y)throw new Error(\"failed to populate data from a tensorproto value\");var g=n.data;if(g.length!==y.length)throw new Error(\"array length mismatch\");for(var b=0;b<y.length;b++){var v=y[b];o.default.isLong(v)?g[b]=p(v,e.dataType):g[b]=v}}return n}},{key:\"fromData\",value:function(e,r,n){return new t(r,n,void 0,void 0,e)}},{key:\"fromOrtTensor\",value:function(e){if(!e)throw new Error(\"cannot construct Value from an empty tensor\");var r=u.ProtoUtil.tensorDimsFromORTFormat(e),n=u.ProtoUtil.tensorDataTypeFromProto(e.dataType()),i=new t(r,n);if(\"string\"===n)for(var o=0;o<e.stringDataLength();o++)i.data[o]=e.stringData(o);else if(e.rawDataArray()&&\"number\"==typeof e.rawDataLength()&&e.rawDataLength()>0){var a=i.data,s=new DataView(e.rawDataArray().buffer,e.rawDataArray().byteOffset,e.rawDataLength()),c=f(e.dataType()),l=e.rawDataLength()/c;if(e.rawDataLength()%c!=0)throw new Error(\"invalid buffer length\");if(a.length!==l)throw new Error(\"buffer length mismatch\");for(var h=0;h<l;h++){var p=d(s,e.dataType(),h*c);a[h]=p}}return i}}]);var e}();function f(t){switch(t){case s.onnx.TensorProto.DataType.UINT8:case s.onnx.TensorProto.DataType.INT8:case s.onnx.TensorProto.DataType.BOOL:return 1;case s.onnx.TensorProto.DataType.UINT16:case s.onnx.TensorProto.DataType.INT16:return 2;case s.onnx.TensorProto.DataType.FLOAT:case s.onnx.TensorProto.DataType.INT32:case s.onnx.TensorProto.DataType.UINT32:return 4;case s.onnx.TensorProto.DataType.INT64:case s.onnx.TensorProto.DataType.DOUBLE:case s.onnx.TensorProto.DataType.UINT64:return 8;default:throw new Error(\"cannot calculate sizeof() on type \".concat(s.onnx.TensorProto.DataType[t]))}}function h(t){switch(t){case\"bool\":case\"uint8\":return Uint8Array;case\"int8\":return Int8Array;case\"int16\":return Int16Array;case\"uint16\":return Uint16Array;case\"int32\":return Int32Array;case\"uint32\":return Uint32Array;case\"int64\":return BigInt64Array;case\"float32\":return Float32Array;case\"float64\":return Float64Array;default:throw new Error(\"unspecified error\")}}function p(t,e){if(e===s.onnx.TensorProto.DataType.INT64||e===c.TensorDataType.INT64){if(t.greaterThanOrEqual(2147483648)||t.lessThan(-2147483648))throw new TypeError(\"int64 is not supported\")}else{if(e!==s.onnx.TensorProto.DataType.UINT32&&e!==c.TensorDataType.UINT32&&e!==s.onnx.TensorProto.DataType.UINT64&&e!==c.TensorDataType.UINT64)throw new TypeError(\"not a LONG type: \".concat(s.onnx.TensorProto.DataType[e]));if(t.greaterThanOrEqual(4294967296)||t.lessThan(0))throw new TypeError(\"uint64 is not supported\")}return t.toNumber()}function d(t,e,r){switch(e){case s.onnx.TensorProto.DataType.BOOL:case s.onnx.TensorProto.DataType.UINT8:return t.getUint8(r);case s.onnx.TensorProto.DataType.INT8:return t.getInt8(r);case s.onnx.TensorProto.DataType.UINT16:return t.getUint16(r,!0);case s.onnx.TensorProto.DataType.INT16:return t.getInt16(r,!0);case s.onnx.TensorProto.DataType.FLOAT:return t.getFloat32(r,!0);case s.onnx.TensorProto.DataType.INT32:return t.getInt32(r,!0);case s.onnx.TensorProto.DataType.UINT32:return t.getUint32(r,!0);case s.onnx.TensorProto.DataType.INT64:return p(o.default.fromBits(t.getUint32(r,!0),t.getUint32(r+4,!0),!1),e);case s.onnx.TensorProto.DataType.DOUBLE:return t.getFloat64(r,!0);case s.onnx.TensorProto.DataType.UINT64:return p(o.default.fromBits(t.getUint32(r,!0),t.getUint32(r+4,!0),!0),e);default:throw new Error(\"cannot read from DataView for type \".concat(s.onnx.TensorProto.DataType[e]))}}e.Tensor=l},7273:function(t,e,r){\"use strict\";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,\"__esModule\",{value:!0}),e.decodeUtf8String=e.MAX_CLIP=e.MIN_CLIP=e.PoolConvUtil=e.ReduceUtil=e.SplitUtil=e.MathUtil=e.ShapeUtil=e.LongUtil=e.ProtoUtil=e.GemmUtil=e.arrayCopyHelper=e.BroadcastUtil=e.MatMulUtil=e.ArrayUtil=e.assert=e.checkInputsShape=void 0;var i=r(5686),o=n(r(1583)),a=r(2446),s=r(9240);e.checkInputsShape=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(!t||t.length!==r.length)return!1;for(var i=0;i<t.length;i++)if(!t[i].dims||t[i].dims.length!==r[i])return!1;return!0},e.assert=function(t,e){if(!t)throw new Error(\"string\"==typeof e?e:e())},e.ArrayUtil=function(){return _createClass((function t(){_classCallCheck(this,t)}),null,[{key:\"arraysEqual\",value:function(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}}])}();var u=function(){return _createClass((function t(){_classCallCheck(this,t)}),null,[{key:\"preprocessInputShapes\",value:function(t,e){return[1===t.length?[1,t[0]]:t,1===e.length?[e[0],1]:e]}},{key:\"postprocessOutputShape\",value:function(t,e,r){1===e&&t.splice(t.length-2,1),1===r&&t.pop()}},{key:\"calcMatMulShape\",value:function(t,e){return t[1]!==e[0]?void 0:[t[0],e[1]]}}])}();e.MatMulUtil=u;var c=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:\"calcShape\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t.length,i=e.length;if(0===n)return e;if(0===i)return t;var o=Math.max(t.length,e.length),a=new Array(o);if(r){if(n<2||i<2)return;var s=u.calcMatMulShape([t[n-2],t[n-1]],[e[i-2],e[i-1]]);if(void 0===s)return;var c=_slicedToArray(s,2);a[o-2]=c[0],a[o-1]=c[1]}for(var l=r?3:1;l<=o;l++){var f=n-l<0?1:t[n-l],h=i-l<0?1:e[i-l];if(f!==h&&f>1&&h>1)return;a[o-l]=Math.max(f,h)}return a}},{key:\"index\",value:function(e,r){var n=new Array(r.length);return t.fillIndex(e,r,n),n}},{key:\"fillIndex\",value:function(t,e,r){for(var n=t.length-e.length,i=0;i<e.length;i++)r[i]=t[n+i]%e[i]}},{key:\"calc\",value:function(e,r,n,i,o){var a=t.calcShape(e.dims,r.dims);if(a){if(i&&!h.areEqual(a,e.dims))return;var u=h.size(a),c=i?e:new s.Tensor(a,o||e.type);if(0===a.length)c.set([],n(e.get([]),r.get([])));else{var l,f=new Array(a.length),p=new Array(e.dims.length),d=new Array(r.dims.length),m=0,y=0,g=!1,b=!1;0===e.dims.length&&(m=e.get([]),g=!0),0===r.dims.length&&(y=r.get([]),b=!0);for(var v=0;v<u;v++){l=v;for(var w=a.length-1;w>=0;w--)f[w]=l%a[w],l=Math.floor(l/a[w]);g||(t.fillIndex(f,e.dims,p),m=e.get(p)),b||(t.fillIndex(f,r.dims,d),y=r.get(d)),c.set(f,n(m,y))}}return c}}},{key:\"isValidBroadcast\",value:function(t,e){var r=t.length,n=e.length;if(r>n)return!1;for(var i=1;i<=r;i++)if(1!==t[r-i]&&t[r-i]!==e[n-i])return!1;return!0}},{key:\"getBroadcastDims\",value:function(t,e){for(var r=t.length,n=[],i=0;i<r;i++){var o=r-1-i,a=t[o]||1;(e[e.length-1-i]||1)>1&&1===a&&n.unshift(o)}return n}}])}();e.BroadcastUtil=c,e.arrayCopyHelper=function(t,e,r,n,i){if(n<0||n>=e.length)throw new Error(\"sourceIndex out of bounds\");if(r<0||r>=t.length)throw new Error(\"targetIndex out of bounds\");if(n+i>e.length)throw new Error(\"source indices to be copied are outside bounds\");if(r+i>t.length)throw new Error(\"target array is too small to hold result\");for(var o=0;o<i;o++)t[r+o]=e[n+o]},e.GemmUtil=function(){return _createClass((function t(){_classCallCheck(this,t)}),null,[{key:\"getShapeOfGemmResult\",value:function(t,e,r,n,i){if(2!==t.length||2!==r.length)throw new Error(\"shape need to be of size 2\");var o,a,s;e?(o=t[1],a=t[0]):(o=t[0],a=t[1]);var u=-1;if(n?(s=r[0],u=1):(s=r[1],u=0),r[u]!==a)throw new Error(\"dimension mismatch\");if(o<=0||s<=0||a<=0)throw new Error(\"invalid shape specified\");if(i&&!c.isValidBroadcast(i,[o,s]))throw new Error(\"gemm: invalid bias shape for broadcast\");return[o,s,a]}}])}();var l=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:\"tensorDataTypeFromProto\",value:function(t){switch(t){case a.onnx.TensorProto.DataType.INT8:return\"int8\";case a.onnx.TensorProto.DataType.UINT8:return\"uint8\";case a.onnx.TensorProto.DataType.BOOL:return\"bool\";case a.onnx.TensorProto.DataType.INT16:return\"int16\";case a.onnx.TensorProto.DataType.UINT16:return\"uint16\";case a.onnx.TensorProto.DataType.INT32:return\"int32\";case a.onnx.TensorProto.DataType.UINT32:return\"uint32\";case a.onnx.TensorProto.DataType.FLOAT:return\"float32\";case a.onnx.TensorProto.DataType.DOUBLE:return\"float64\";case a.onnx.TensorProto.DataType.STRING:return\"string\";case a.onnx.TensorProto.DataType.INT64:return\"int32\";case a.onnx.TensorProto.DataType.UINT64:return\"uint32\";default:throw new Error(\"unsupported data type: \".concat(a.onnx.TensorProto.DataType[t]))}}},{key:\"tensorDataTypeStringToEnum\",value:function(t){switch(t){case\"int8\":return a.onnx.TensorProto.DataType.INT8;case\"uint8\":return a.onnx.TensorProto.DataType.UINT8;case\"bool\":return a.onnx.TensorProto.DataType.BOOL;case\"int16\":return a.onnx.TensorProto.DataType.INT16;case\"uint16\":return a.onnx.TensorProto.DataType.UINT16;case\"int32\":return a.onnx.TensorProto.DataType.INT32;case\"uint32\":return a.onnx.TensorProto.DataType.UINT32;case\"float32\":return a.onnx.TensorProto.DataType.FLOAT;case\"float64\":return a.onnx.TensorProto.DataType.DOUBLE;case\"string\":return a.onnx.TensorProto.DataType.STRING;case\"int64\":return a.onnx.TensorProto.DataType.INT64;case\"uint64\":return a.onnx.TensorProto.DataType.UINT64;default:throw new Error(\"unsupported data type: \".concat(t))}}},{key:\"tensorDimsFromProto\",value:function(t){return t.map((function(t){return o.default.isLong(t)?t.toNumber():t}))}},{key:\"tensorValueTypeFromProto\",value:function(e){return{tensorType:t.tensorDataTypeFromProto(e.elemType),shape:{dims:t.tensorDimsFromProto(e.shape.dim.map((function(t){return t.dimValue})))}}}},{key:\"tensorDimsFromORTFormat\",value:function(t){for(var e=[],r=0;r<t.dimsLength();r++)e.push(f.longToNumber(t.dims(r)));return e}},{key:\"tensorAttributesFromORTFormat\",value:function(t){for(var e=[],r=0;r<t.attributesLength();r++)e.push(t.attributes(r));return e}}])}();e.ProtoUtil=l;var f=function(){return _createClass((function t(){_classCallCheck(this,t)}),null,[{key:\"longToNumber\",value:function(t,e){return o.default.isLong(t)?t.toNumber():t instanceof i.flatbuffers.Long?o.default.fromValue({low:t.low,high:t.high,unsigned:null!=e&&e}).toNumber():t}},{key:\"isLong\",value:function(t){return o.default.isLong(t)||t instanceof i.flatbuffers.Long}}])}();e.LongUtil=f;var h=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:\"size\",value:function(e){return t.getSizeFromDimensionRange(e,0,e.length)}},{key:\"sizeFromDimension\",value:function(e,r){if(r<0||r>e.length)throw new Error(\"invalid dimension of \".concat(r,\" for sizeFromDimension as Tensor has \").concat(e.length,\" dimensions.\"));return t.getSizeFromDimensionRange(e,r,e.length)}},{key:\"sizeToDimension\",value:function(e,r){if(r<0||r>e.length)throw new Error(\"invalid dimension of \".concat(r,\" for sizeToDimension as Tensor has \").concat(e.length,\" dimensions.\"));return t.getSizeFromDimensionRange(e,0,r)}},{key:\"getSizeFromDimensionRange\",value:function(t,e,r){for(var n=1,i=e;i<r;i++){if(t[i]<=0)throw new Error(\"cannot get valid size from specified dimension range. Most likely the range contains 0 or negative values in them.\");n*=t[i]}return n}},{key:\"computeStrides\",value:function(t){var e=t.length;if(0===e)return[];if(1===e)return[1];var r=new Array(e);r[e-1]=1,r[e-2]=t[e-1];for(var n=e-3;n>=0;--n)r[n]=r[n+1]*t[n+1];return r}},{key:\"transpose\",value:function(t){return t.slice().reverse()}},{key:\"indicesToOffset\",value:function(t,e,r){void 0===r&&(r=t.length);for(var n=0,i=0;i<r;++i)n+=e[i]*t[i];return n}},{key:\"offsetToIndices\",value:function(t,e){var r=e.length;if(0===r)return[];if(1===r)return[t*e[0]];for(var n=new Array(e.length),i=0;i<n.length-1;++i)n[i]=Math.floor(t/e[i]),t-=n[i]*e[i];return n[n.length-1]=t,n}},{key:\"normalizeAxis\",value:function(t,e){if(t<-e&&t>=e)throw new Error(\"unsupported axis for this operation.\");return t<0?t+e:t}},{key:\"normalizeAxes\",value:function(t,e){var r=this;return t.map((function(t){return r.normalizeAxis(t,e)}))}},{key:\"incrementIndex\",value:function(t,e,r){if(0===e.length||0===t.length)throw new Error(\"Index incrementing unsupported for scalar Tensor\");if(void 0===r)r=e.length;else if(r<=0||r>e.length)throw new Error(\"Incorrect axis to increment on\");for(var n=r-1;n>=0&&(t[n]++,!(t[n]<e[n]));--n)t[n]=0}},{key:\"calculateReshapedDims\",value:function(e,r){if(0===r.length){if(0===e.length||1===t.size(e))return[];throw new Error(\"cannot reshape to a scalar Tensor\")}for(var n=r.length,i=new Array(n),o=-1,a=1,s=0;s<n;s++){if(r[s]<-1)throw new Error(\"a dimension in shape hints cannot be less than -1\");if(-1===r[s]){if(-1!==o)throw new Error(\"at most one dimension in shape hints can be -1\");o=s}else{if(0===r[s]){if(s>=e.length)throw new Error(\"the dimension with value zero exceeds the dimension size of the input tensor\");i[s]=e[s]}else i[s]=r[s];a*=i[s]}}var u=t.size(e);if(-1!==o){if(u%a!=0)throw new Error(\"the input tensor cannot be reshaped to the requested shape. Input shape: [\".concat(e,\"] Output shape: [\").concat(r,\"]\"));i[o]=u/a}else if(a!==u)throw new Error(\"reshapedDims and originalDims don't have matching sizes\");return i}},{key:\"sortBasedOnPerm\",value:function(t,e){return e?e.map((function(e){return t[e]})):t.slice().reverse()}},{key:\"padShape\",value:function(t,e){var r=t.length;return t.map((function(t,n){return t+e[n]+e[n+r]}))}},{key:\"areEqual\",value:function(t,e){return t.length===e.length&&t.every((function(t,r){return t===e[r]}))}},{key:\"validateDimsAndCalcSize\",value:function(t){if(t.length>6)throw new TypeError(\"Only rank 0 to 6 is supported for tensor shape.\");var e,r=1,n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(!Number.isInteger(i))throw new TypeError(\"Invalid shape: \".concat(i,\" is not an integer\"));if(i<0||i>2147483647)throw new TypeError(\"Invalid shape: length \".concat(i,\" is not allowed\"));r*=i}}catch(t){n.e(t)}finally{n.f()}return r}},{key:\"flattenShape\",value:function(t,e){e<0&&(e+=t.length);var r=t.reduce((function(t,e){return t*e}),1),n=t.slice(e).reduce((function(t,e){return t*e}),1);return[r/n,n]}},{key:\"squeezeShape\",value:function(e,r){var n=new Array;r=t.normalizeAxes(r,e.length);for(var i=0;i<e.length;i++){var o=r.indexOf(i)>=0;if(o&&1!==e[i])throw new Error(\"squeeze an axis of size different than 1\");(0===r.length&&e[i]>1||r.length>0&&!o)&&n.push(e[i])}return n}},{key:\"unsqueezeShape\",value:function(e,r){var n=new Array(e.length+r.length);n.fill(0);for(var i=0;i<r.length;i++){var o=t.normalizeAxis(r[i],n.length);if(o>=n.length)throw new Error(\"'axes' has an out of range axis\");if(0!==n[o])throw new Error(\"'axes' has a duplicate axis\");n[o]=1}for(var a=0,s=0;s<n.length;s++)0===n[s]&&(n[s]=e[a++]);if(a!==e.length)throw new Error(\"the unsqueezed dimension could not be established\");return n}}])}();e.ShapeUtil=h,e.MathUtil=function(){return _createClass((function t(){_classCallCheck(this,t)}),null,[{key:\"sqr\",value:function(t,e,r,n,i){if(n<0||n>=e.length)throw new Error(\"sourceIndex out of bounds\");if(r<0||r>=t.length)throw new Error(\"targetIndex out of bounds\");if(n+i>e.length)throw new Error(\"source indices to be copied are outside bounds\");if(r+i>t.length)throw new Error(\"target array is too small to hold result\");for(var o=0;o<i;o++)t[r+o]+=Math.pow(e[n+o],2)}},{key:\"axpy\",value:function(t,e,r,n,i,o){if(n<0||n>=e.length)throw new Error(\"sourceIndex out of bounds\");if(r<0||r>=t.length)throw new Error(\"targetIndex out of bounds\");if(n+i>e.length)throw new Error(\"source indices to be copied are outside bounds\");if(r+i>t.length)throw new Error(\"target array is too small to hold result\");for(var a=0;a<i;a++)t[r+a]+=o*e[n+a]}},{key:\"powx\",value:function(t,e,r,n,i,o){if(n<0||n>=e.length)throw new Error(\"sourceIndex out of bounds\");if(r<0||r>=t.length)throw new Error(\"targetIndex out of bounds\");if(n+i>e.length)throw new Error(\"source indices to be copied are outside bounds\");if(r+i>t.length)throw new Error(\"target array is too small to hold result\");for(var a=0;a<i;a++)t[r+a]=Math.pow(e[n+a],o)}},{key:\"mul\",value:function(t,e,r,n,i){if(n<0||n>=e.length)throw new Error(\"sourceIndex out of bounds\");if(r<0||r>=t.length)throw new Error(\"targetIndex out of bounds\");if(n+i>e.length)throw new Error(\"source indices to be copied are outside bounds\");if(r+i>t.length)throw new Error(\"target array is too small to hold result\");for(var o=0;o<i;o++)t[r+o]=e[n+o]*t[r+o]}}])}();var p=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:\"splitShape\",value:function(e,r,n,i){if(0===n.length){if(!i)throw new Error(\"need to know number of outputs when the 'split' attribute is not specified\");t.determineSplit(e[r],i,n)}for(var o=[],a=[0],s=0;s<n.length;++s){0!==s&&a.push(a[s-1]+n[s-1]);var u=e.slice();u[r]=n[s],o.push(u)}return[o,a]}},{key:\"determineSplit\",value:function(t,e,r){if(t%e!=0)throw new Error(\"cannot split tensor to equal sized parts\");for(var n=0;n<e;++n)r.push(t/e)}}])}();e.SplitUtil=p;var d=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:\"calcReduce\",value:function(e,r,n,i,o){var a=e.dims.slice(0);0===r.length&&a.forEach((function(t,e){return r.push(e)}));for(var u=t.calcReduceShape(a,r,!0),l=h.size(u),f=new s.Tensor(u,e.type),p=h.computeStrides(u),d=h.computeStrides(a),m=new Array(a.length),y=0;y<l;y++){var g=h.offsetToIndices(y,p);c.fillIndex(g,a,m),f.set(g,t.calcReduceByAxis(e.numberData,r,a,0,h.indicesToOffset(m,d),i,o))}return n?f:new s.Tensor(t.calcReduceShape(a,r,n),f.type,void 0,void 0,f.data,f.dataId)}},{key:\"calcReduceByAxis\",value:function(e,r,n,i,o,a,s){var u=0;if(i>=r.length)return a(e[o]);for(var c=r[i],l=c>=n.length?1:h.size(n.slice(c+1)),f=0;f<n[c];f++)u=0===f?t.calcReduceByAxis(e,r,n,i+1,o,a,s):s(u,t.calcReduceByAxis(e,r,n,i+1,o,a,s)),o+=l;return u}},{key:\"calcReduceShape\",value:function(t,e,r){for(var n=t.slice(),i=0;i<e.length;i++)n[e[i]]=r?1:0;return n.filter((function(t){return 0!==t}))}}])}();e.ReduceUtil=d;var m=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:\"adjustPoolAttributes\",value:function(t,e,r,n,i,o){if(!t&&r.length!==e.length-2)throw new Error(\"length of specified kernel shapes should be 2 less than length of input dimensions\");if(t)for(var a=0;a<e.length-2;a++)a>=r.length?r.push(e[a+2]):r[a]=e[a+2];for(var s=0;s<r.length;s++)if(s<n.length){if(n[s]<0)throw new Error(\"strides should be greater than or equal to 1\")}else n.push(1);for(var u=0;u<r.length;u++)if(u<i.length){if(i[u]<0)throw new Error(\"dilations should be greater than or equal to 1\")}else i.push(1);for(var c=0;c<2*r.length;c++)if(c<o.length){if(o[c]<0)throw new Error(\"pad should be greater than or equal to 1\")}else o.push(0);for(var l=0;l<r.length;l++){if(r[l]<=0)throw new Error(\"kernel shapes need to be greater than 0\");if(o[l]>=r[l]||o[l+r.length]>=r[l])throw new Error(\"pads should be smaller than kernel\")}}},{key:\"adjustPadsBasedOnAutoPad\",value:function(e,r,n,i,o,a){if(a){if(o.length!==2*(e.length-2))throw new Error(\"length of pads should be twice the length of data dimensions\");if(r.length!==e.length-2)throw new Error(\"length of strides should be the length of data dimensions\");if(i.length!==e.length-2)throw new Error(\"length of kernel shapes should be the length of data dimensions\");for(var s=0;s<e.length-2;s++)t.adjustPadAndReturnShape(e[s+2],r[s],n[s],i[s],o,s,s+e.length-2,a)}}},{key:\"computePoolOutputShape\",value:function(e,r,n,i,o,a,s){if(r.length<=0)throw new Error(\"input shape must be of size greater than 0\");var u=[r[0],r[1]];return t.computeShapeHelper(e,r,u,n,i,o,a,s),u}},{key:\"computeConvOutputShape\",value:function(e,r,n,i,o,a,s){if(e.length<=0||r.length<=0)throw new Error(\"invalid input tensor dims or invalid filter tensor dims\");var u=[e[0],r[0]];return t.computeShapeHelper(!1,e,u,n,i,o,a,s),u}},{key:\"computeShapeHelper\",value:function(e,r,n,i,o,a,s,u){if(e)for(var c=0;c<r.length-2;c++)n.push(1);else for(var l=0;l<r.length-2;l++)n.push(t.adjustPadAndReturnShape(r[l+2],i[l],o[l],a[l],s,l,l+r.length-2,u))}},{key:\"adjustPadAndReturnShape\",value:function(t,e,r,n,i,o,a,s){var u=r*(n-1)+1;if(!s||\"NOTSET\"===s)return Math.floor((t+i[o]+i[a]-u)/e+1);switch(s){case\"VALID\":return i[o]=0,i[a]=0,Math.floor((t-u)/e+1);case\"SAME_LOWER\":case\"SAME_UPPER\":if(1!==r)throw new Error(\"Dilation not supported for SAME_UPPER or SAME_LOWER\");var c=((t+e-1)/e-1)*e+n-t;return i[o]=\"SAME_LOWER\"===s?Math.floor((c+1)/2):Math.floor(c/2),i[a]=c-i[o],Math.floor((t+c-n)/e+1);default:throw new Error(\"Unsupported AutoPad type\")}}}])}();e.PoolConvUtil=m,e.MIN_CLIP=-34028234663852886e22,e.MAX_CLIP=34028234663852886e22,e.decodeUtf8String=function(t){return(new TextDecoder).decode(t)}},8408:function(t,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.version=void 0,e.version=\"1.16.1\"},9544:function(t,e,r){\"use strict\";var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!(\"get\"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)\"default\"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return o(e,t),e};Object.defineProperty(e,\"__esModule\",{value:!0}),e.endProfiling=e.run=e.releaseSession=e.createSession=e.createSessionFinalize=e.createSessionAllocate=e.initializeRuntime=e.initializeWebAssemblyInstance=void 0;var s,u,c,l=r(1670),f=a(r(1259)),h=r(263),p=function(){return!!l.env.wasm.proxy&&\"undefined\"!=typeof document},d=!1,m=!1,y=!1,g=[],b=[],v=[],w=[],_=[],x=[],k=function(){if(d||!m||y||!s)throw new Error(\"worker not ready\")},E=function(t){switch(t.data.type){case\"init-wasm\":d=!1,t.data.err?(y=!0,u[1](t.data.err)):(m=!0,u[0]());break;case\"init-ort\":t.data.err?c[1](t.data.err):c[0]();break;case\"create_allocate\":t.data.err?g.shift()[1](t.data.err):g.shift()[0](t.data.out);break;case\"create_finalize\":t.data.err?b.shift()[1](t.data.err):b.shift()[0](t.data.out);break;case\"create\":t.data.err?v.shift()[1](t.data.err):v.shift()[0](t.data.out);break;case\"release\":t.data.err?w.shift()[1](t.data.err):w.shift()[0]();break;case\"run\":t.data.err?_.shift()[1](t.data.err):_.shift()[0](t.data.out);break;case\"end-profiling\":t.data.err?x.shift()[1](t.data.err):x.shift()[0]()}},S=\"undefined\"!=typeof document?null===(n=null===document||void 0===document?void 0:document.currentScript)||void 0===n?void 0:n.src:void 0;e.initializeWebAssemblyInstance=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p()){t.next=8;break}if(!m){t.next=3;break}return t.abrupt(\"return\");case 3:if(!d){t.next=5;break}throw new Error(\"multiple calls to 'initWasm()' detected.\");case 5:if(!y){t.next=7;break}throw new Error(\"previous call to 'initWasm()' failed.\");case 7:return t.abrupt(\"return\",(d=!0,void 0===l.env.wasm.wasmPaths&&S&&0!==S.indexOf(\"blob:\")&&(l.env.wasm.wasmPaths=S.substr(0,+S.lastIndexOf(\"/\")+1)),new Promise((function(t,e){null==s||s.terminate(),(s=r(8050).Z()).onmessage=E,u=[t,e];var n={type:\"init-wasm\",in:l.env.wasm};s.postMessage(n)}))));case 8:return t.abrupt(\"return\",(0,h.initializeWebAssembly)(l.env.wasm));case 9:case\"end\":return t.stop()}}),t)}))),e.initializeRuntime=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p()){t.next=2;break}return t.abrupt(\"return\",(k(),new Promise((function(t,r){c=[t,r];var n={type:\"init-ort\",in:e};s.postMessage(n)}))));case 2:return t.next=4,f.initRuntime(e);case 4:case\"end\":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.createSessionAllocate=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",p()?(k(),new Promise((function(t,r){g.push([t,r]);var n={type:\"create_allocate\",in:{model:e}};s.postMessage(n,[e.buffer])}))):f.createSessionAllocate(e));case 1:case\"end\":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.createSessionFinalize=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",p()?(k(),new Promise((function(t,n){b.push([t,n]);var i={type:\"create_finalize\",in:{modeldata:e,options:r}};s.postMessage(i)}))):f.createSessionFinalize(e,r));case 1:case\"end\":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),e.createSession=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",p()?(k(),new Promise((function(t,n){v.push([t,n]);var i={type:\"create\",in:{model:e,options:r}};s.postMessage(i,[e.buffer])}))):f.createSession(e,r));case 1:case\"end\":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),e.releaseSession=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p()){t.next=2;break}return t.abrupt(\"return\",(k(),new Promise((function(t,r){w.push([t,r]);var n={type:\"release\",in:e};s.postMessage(n)}))));case 2:f.releaseSession(e);case 3:case\"end\":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.run=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r,n,i,o){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",p()?(k(),new Promise((function(t,a){_.push([t,a]);var u={type:\"run\",in:{sessionId:e,inputIndices:r,inputs:n,outputIndices:i,options:o}};s.postMessage(u,f.extractTransferableBuffers(n))}))):f.run(e,r,n,i,o));case 1:case\"end\":return t.stop()}}),t)})));return function(e,r,n,i,o){return t.apply(this,arguments)}}(),e.endProfiling=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p()){t.next=2;break}return t.abrupt(\"return\",(k(),new Promise((function(t,r){x.push([t,r]);var n={type:\"end-profiling\",in:e};s.postMessage(n)}))));case 2:f.endProfiling(e);case 3:case\"end\":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},7918:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.setRunOptions=void 0;var n=r(263),i=r(1497);e.setRunOptions=function(t){var e=(0,n.getInstance)(),r=0,o=[],a=t||{};try{if(void 0===(null==t?void 0:t.logSeverityLevel))a.logSeverityLevel=2;else if(\"number\"!=typeof t.logSeverityLevel||!Number.isInteger(t.logSeverityLevel)||t.logSeverityLevel<0||t.logSeverityLevel>4)throw new Error(\"log serverity level is not valid: \".concat(t.logSeverityLevel));if(void 0===(null==t?void 0:t.logVerbosityLevel))a.logVerbosityLevel=0;else if(\"number\"!=typeof t.logVerbosityLevel||!Number.isInteger(t.logVerbosityLevel))throw new Error(\"log verbosity level is not valid: \".concat(t.logVerbosityLevel));void 0===(null==t?void 0:t.terminate)&&(a.terminate=!1);var s=0;return void 0!==(null==t?void 0:t.tag)&&(s=(0,i.allocWasmString)(t.tag,o)),0===(r=e._OrtCreateRunOptions(a.logSeverityLevel,a.logVerbosityLevel,!!a.terminate,s))&&(0,i.checkLastError)(\"Can't create run options.\"),void 0!==(null==t?void 0:t.extra)&&(0,i.iterateExtraOptions)(t.extra,\"\",new WeakSet,(function(t,n){var a=(0,i.allocWasmString)(t,o),s=(0,i.allocWasmString)(n,o);0!==e._OrtAddRunConfigEntry(r,a,s)&&(0,i.checkLastError)(\"Can't set a run config entry: \".concat(t,\" - \").concat(n,\".\"))})),[r,o]}catch(t){throw 0!==r&&e._OrtReleaseRunOptions(r),o.forEach((function(t){return e._free(t)})),t}}},6640:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.OnnxruntimeWebAssemblySessionHandler=void 0;var n,i=r(2806),o=r(1670),a=r(2850),s=r(9544);e.OnnxruntimeWebAssemblySessionHandler=function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:\"createSessionAllocate\",value:(u=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:if(200===(r=t.sent).status){t.next=5;break}throw new Error(\"failed to load model: \".concat(e));case 5:return t.next=7,r.arrayBuffer();case 7:return n=t.sent,t.abrupt(\"return\",(0,s.createSessionAllocate)(new Uint8Array(n)));case 9:case\"end\":return t.stop()}}),t)}))),function(t){return u.apply(this,arguments)})},{key:\"loadModel\",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r){var u,c,l,f,h,p,d,m;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=n,t.t0){t.next=5;break}return t.next=4,(0,s.initializeRuntime)(o.env);case 4:n=!0;case 5:if(\"string\"!=typeof e){t.next=31;break}if(void 0===process||!process.versions||!process.versions.node){t.next=19;break}return t.next=9,(0,a.promisify)(i.readFile)(e);case 9:return u=t.sent,t.next=12,(0,s.createSession)(u,r);case 12:c=t.sent,l=_slicedToArray(c,3),this.sessionId=l[0],this.inputNames=l[1],this.outputNames=l[2],t.next=29;break;case 19:return t.next=21,this.createSessionAllocate(e);case 21:return f=t.sent,t.next=24,(0,s.createSessionFinalize)(f,r);case 24:h=t.sent,p=_slicedToArray(h,3),this.sessionId=p[0],this.inputNames=p[1],this.outputNames=p[2];case 29:t.next=38;break;case 31:return t.next=33,(0,s.createSession)(e,r);case 33:d=t.sent,m=_slicedToArray(d,3),this.sessionId=m[0],this.inputNames=m[1],this.outputNames=m[2];case 38:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:\"dispose\",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",(0,s.releaseSession)(this.sessionId));case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:\"run\",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r,n){var i,a,u,c,l,f,h=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=[],a=[],Object.entries(e).forEach((function(t){var e=t[0],r=t[1],n=h.inputNames.indexOf(e);if(-1===n)throw new Error(\"invalid input '\".concat(e,\"'\"));i.push(r),a.push(n)})),u=[],Object.entries(r).forEach((function(t){var e=t[0],r=h.outputNames.indexOf(e);if(-1===r)throw new Error(\"invalid output '\".concat(e,\"'\"));u.push(r)})),t.next=6,(0,s.run)(this.sessionId,a,i.map((function(t){return[t.type,t.dims,t.data]})),u,n);case 6:for(c=t.sent,l={},f=0;f<c.length;f++)l[this.outputNames[u[f]]]=new o.Tensor(c[f][0],c[f][2],c[f][1]);return t.abrupt(\"return\",l);case 10:case\"end\":return t.stop()}}),t,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:\"startProfiling\",value:function(){}},{key:\"endProfiling\",value:function(){(0,s.endProfiling)(this.sessionId)}}]);var t,e,r,u}()},7622:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.setSessionOptions=void 0;var n=r(263),i=r(1497);e.setSessionOptions=function(t){var e,r,o,a,s=(0,n.getInstance)(),u=0,c=[],l=t||{};!function(t){t.extra||(t.extra={}),t.extra.session||(t.extra.session={});var e=t.extra.session;e.use_ort_model_bytes_directly||(e.use_ort_model_bytes_directly=\"1\"),t.executionProviders&&t.executionProviders.some((function(t){return\"webgpu\"===(\"string\"==typeof t?t:t.name)}))&&(t.enableMemPattern=!1)}(l);try{var f=function(t){switch(t){case\"disabled\":return 0;case\"basic\":return 1;case\"extended\":return 2;case\"all\":return 99;default:throw new Error(\"unsupported graph optimization level: \".concat(t))}}(null!==(e=l.graphOptimizationLevel)&&void 0!==e?e:\"all\"),h=function(t){switch(t){case\"sequential\":return 0;case\"parallel\":return 1;default:throw new Error(\"unsupported execution mode: \".concat(t))}}(null!==(r=l.executionMode)&&void 0!==r?r:\"sequential\"),p=\"string\"==typeof l.logId?(0,i.allocWasmString)(l.logId,c):0,d=null!==(o=l.logSeverityLevel)&&void 0!==o?o:2;if(!Number.isInteger(d)||d<0||d>4)throw new Error(\"log serverity level is not valid: \".concat(d));var m=null!==(a=l.logVerbosityLevel)&&void 0!==a?a:0;if(!Number.isInteger(m)||m<0||m>4)throw new Error(\"log verbosity level is not valid: \".concat(m));var y=\"string\"==typeof l.optimizedModelFilePath?(0,i.allocWasmString)(l.optimizedModelFilePath,c):0;return 0===(u=s._OrtCreateSessionOptions(f,!!l.enableCpuMemArena,!!l.enableMemPattern,h,!!l.enableProfiling,0,p,d,m,y))&&(0,i.checkLastError)(\"Can't create session options.\"),l.executionProviders&&function(t,e,r){var o,a=_createForOfIteratorHelper(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=\"string\"==typeof s?s:s.name;switch(u){case\"xnnpack\":u=\"XNNPACK\";break;case\"webnn\":if(u=\"WEBNN\",\"string\"!=typeof s){var c=s;if(null==c?void 0:c.deviceType){var l=(0,i.allocWasmString)(\"deviceType\",r),f=(0,i.allocWasmString)(c.deviceType,r);0!==(0,n.getInstance)()._OrtAddSessionConfigEntry(t,l,f)&&(0,i.checkLastError)(\"Can't set a session config entry: 'deviceType' - \".concat(c.deviceType,\".\"))}if(null==c?void 0:c.powerPreference){var h=(0,i.allocWasmString)(\"powerPreference\",r),p=(0,i.allocWasmString)(c.powerPreference,r);0!==(0,n.getInstance)()._OrtAddSessionConfigEntry(t,h,p)&&(0,i.checkLastError)(\"Can't set a session config entry: 'powerPreference' - \".concat(c.powerPreference,\".\"))}}break;case\"webgpu\":u=\"JS\";break;case\"wasm\":case\"cpu\":continue;default:throw new Error(\"not supported execution provider: \".concat(u))}var d=(0,i.allocWasmString)(u,r);0!==(0,n.getInstance)()._OrtAppendExecutionProvider(t,d)&&(0,i.checkLastError)(\"Can't append execution provider: \".concat(u,\".\"))}}catch(t){a.e(t)}finally{a.f()}}(u,l.executionProviders,c),void 0!==l.extra&&(0,i.iterateExtraOptions)(l.extra,\"\",new WeakSet,(function(t,e){var r=(0,i.allocWasmString)(t,c),n=(0,i.allocWasmString)(e,c);0!==s._OrtAddSessionConfigEntry(u,r,n)&&(0,i.checkLastError)(\"Can't set a session config entry: \".concat(t,\" - \").concat(e,\".\"))})),[u,c]}catch(t){throw 0!==u&&s._OrtReleaseSessionOptions(u),c.forEach((function(t){return s._free(t)})),t}}},7917:function(t,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.logLevelStringToEnum=e.tensorTypeToTypedArrayConstructor=e.getTensorElementSize=e.tensorDataTypeEnumToString=e.tensorDataTypeStringToEnum=void 0,e.tensorDataTypeStringToEnum=function(t){switch(t){case\"int8\":return 3;case\"uint8\":return 2;case\"bool\":return 9;case\"int16\":return 5;case\"uint16\":return 4;case\"int32\":return 6;case\"uint32\":return 12;case\"float16\":return 10;case\"float32\":return 1;case\"float64\":return 11;case\"string\":return 8;case\"int64\":return 7;case\"uint64\":return 13;default:throw new Error(\"unsupported data type: \".concat(t))}},e.tensorDataTypeEnumToString=function(t){switch(t){case 3:return\"int8\";case 2:return\"uint8\";case 9:return\"bool\";case 5:return\"int16\";case 4:return\"uint16\";case 6:return\"int32\";case 12:return\"uint32\";case 10:return\"float16\";case 1:return\"float32\";case 11:return\"float64\";case 8:return\"string\";case 7:return\"int64\";case 13:return\"uint64\";default:throw new Error(\"unsupported data type: \".concat(t))}},e.getTensorElementSize=function(t){return[void 0,4,1,1,2,2,4,8,void 0,1,2,8,4,8,void 0,void 0,void 0][t]},e.tensorTypeToTypedArrayConstructor=function(t){switch(t){case\"float16\":case\"uint16\":return Uint16Array;case\"float32\":return Float32Array;case\"uint8\":case\"bool\":return Uint8Array;case\"int8\":return Int8Array;case\"int16\":return Int16Array;case\"int32\":return Int32Array;case\"float64\":return Float64Array;case\"uint32\":return Uint32Array;case\"int64\":return BigInt64Array;case\"uint64\":return BigUint64Array;default:throw new Error(\"unsupported type: \".concat(t))}},e.logLevelStringToEnum=function(t){switch(t){case\"verbose\":return 0;case\"info\":return 1;case\"warning\":return 2;case\"error\":return 3;case\"fatal\":return 4;default:throw new Error(\"unsupported logging level: \".concat(t))}}},1259:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.extractTransferableBuffers=e.endProfiling=e.run=e.releaseSession=e.createSession=e.createSessionFinalize=e.createSessionAllocate=e.initRuntime=void 0;var n=r(7918),i=r(7622),o=r(7917),a=r(263),s=r(1497);e.initRuntime=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.wasm.numThreads,n=(0,o.logLevelStringToEnum)(e.logLevel),0!==(0,a.getInstance)()._OrtInit(r,n)&&(0,s.checkLastError)(\"Can't initialize onnxruntime.\");case 1:case\"end\":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();var u=new Map;e.createSessionAllocate=function(t){var e=(0,a.getInstance)(),r=e._malloc(t.byteLength);if(0===r)throw new Error(\"Can't create a session. failed to allocate a buffer of size \".concat(t.byteLength,\".\"));return e.HEAPU8.set(t,r),[r,t.byteLength]},e.createSessionFinalize=function(t,e){var r=(0,a.getInstance)(),n=0,o=0,c=[],l=[],f=[];try{var h;o=(h=_slicedToArray((0,i.setSessionOptions)(e),2))[0],c=h[1],0===(n=r._OrtCreateSession(t[0],t[1],o))&&(0,s.checkLastError)(\"Can't create a session.\");for(var p=function(t){var e=(0,a.getInstance)(),r=e.stackSave();try{var n=e.stackAlloc(8);return 0!==e._OrtGetInputOutputCount(t,n,n+4)&&(0,s.checkLastError)(\"Can't get session input/output count.\"),[e.HEAP32[n/4],e.HEAP32[n/4+1]]}finally{e.stackRestore(r)}}(n),d=_slicedToArray(p,2),m=d[0],y=d[1],g=[],b=[],v=0;v<m;v++){var w=r._OrtGetInputName(n,v);0===w&&(0,s.checkLastError)(\"Can't get an input name.\"),l.push(w),g.push(r.UTF8ToString(w))}for(var _=0;_<y;_++){var x=r._OrtGetOutputName(n,_);0===x&&(0,s.checkLastError)(\"Can't get an output name.\"),f.push(x),b.push(r.UTF8ToString(x))}return u.set(n,[n,l,f]),[n,g,b]}catch(t){throw l.forEach((function(t){return r._OrtFree(t)})),f.forEach((function(t){return r._OrtFree(t)})),0!==n&&r._OrtReleaseSession(n),t}finally{r._free(t[0]),0!==o&&r._OrtReleaseSessionOptions(o),c.forEach((function(t){return r._free(t)}))}},e.createSession=function(t,r){var n=(0,e.createSessionAllocate)(t);return(0,e.createSessionFinalize)(n,r)},e.releaseSession=function(t){var e=(0,a.getInstance)(),r=u.get(t);if(!r)throw new Error(\"cannot release session. invalid session id: \".concat(t));var n=_slicedToArray(r,3),i=n[0],o=n[1],s=n[2];o.forEach((function(t){return e._OrtFree(t)})),s.forEach((function(t){return e._OrtFree(t)})),e._OrtReleaseSession(i),u.delete(t)},e.run=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r,i,c,l){var f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,T,A,D,O,I,P,C,L,M,F,B,j,N,R,z,U,G,H,q,V,W,Z,Y,X,K,J,$,Q,tt,et,rt,nt,it,ot;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(f=(0,a.getInstance)(),h=u.get(e)){t.next=3;break}throw new Error(\"cannot run inference. invalid session id: \".concat(e));case 3:p=_slicedToArray(h,3),d=p[0],m=p[1],y=p[2],g=r.length,b=c.length,v=0,w=[],_=[],x=[],t.prev=6,k=(0,n.setRunOptions)(l),E=_slicedToArray(k,2),v=E[0],w=E[1],S=_regeneratorRuntime().mark((function t(){var e,r,n,a,u,c,l,h,p,d,m;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i[T][0],r=i[T][1],n=i[T][2],!Array.isArray(n)){t.next=14;break}u=4*n.length,a=f._malloc(u),x.push(a),c=a/4,l=0;case 5:if(!(l<n.length)){t.next=12;break}if(\"string\"==typeof n[l]){t.next=8;break}throw new TypeError(\"tensor data at index \".concat(l,\" is not a string\"));case 8:f.HEAPU32[c++]=(0,s.allocWasmString)(n[l],x);case 9:l++,t.next=5;break;case 12:t.next=15;break;case 14:u=n.byteLength,a=f._malloc(u),x.push(a),f.HEAPU8.set(new Uint8Array(n.buffer,n.byteOffset,u),a);case 15:h=f.stackSave(),p=f.stackAlloc(4*r.length);try{d=p/4,r.forEach((function(t){return f.HEAP32[d++]=t})),0===(m=f._OrtCreateTensor((0,o.tensorDataTypeStringToEnum)(e),a,u,p,r.length))&&(0,s.checkLastError)(\"Can't create tensor for input[\".concat(T,\"].\")),_.push(m)}finally{f.stackRestore(h)}case 17:case\"end\":return t.stop()}}),t)})),T=0;case 13:if(!(T<g)){t.next=18;break}return t.delegateYield(S(),\"t0\",15);case 15:T++,t.next=13;break;case 18:for(A=f.stackSave(),D=f.stackAlloc(4*g),O=f.stackAlloc(4*g),I=f.stackAlloc(4*b),P=f.stackAlloc(4*b),t.prev=19,C=D/4,L=O/4,M=I/4,F=P/4,B=0;B<g;B++)f.HEAPU32[C++]=_[B],f.HEAPU32[L++]=m[r[B]];for(j=0;j<b;j++)f.HEAPU32[M++]=0,f.HEAPU32[F++]=y[c[j]];if(N=f._OrtRun(d,O,D,g,P,b,I,v),R=f.jsepRunPromise,t.t1=R&&void 0!==R.then,!t.t1){t.next=30;break}return t.next=29,R;case 29:N=t.sent;case 30:for(z=[],0!==N&&(0,s.checkLastError)(\"failed to call OrtRun().\"),U=0;U<b;U++){G=f.HEAPU32[I/4+U],H=f.stackSave(),q=f.stackAlloc(16),V=void 0,W=0;try{for(0!==(N=f._OrtGetTensorData(G,q,q+4,q+8,q+12))&&(0,s.checkLastError)(\"Can't access output tensor data on index \".concat(U,\".\")),Z=q/4,Y=f.HEAPU32[Z++],W=f.HEAPU32[Z++],X=f.HEAPU32[Z++],K=f.HEAPU32[Z++],J=[],$=0;$<K;$++)J.push(f.HEAPU32[X/4+$]);if(f._OrtFree(X),Q=0===J.length?1:J.reduce((function(t,e){return t*e})),\"string\"===(V=(0,o.tensorDataTypeEnumToString)(Y))){for(tt=[],et=W/4,rt=0;rt<Q;rt++)nt=f.HEAPU32[et++],it=rt===Q-1?void 0:f.HEAPU32[et]-nt,tt.push(f.UTF8ToString(nt,it));z.push([V,J,tt])}else ot=new((0,o.tensorTypeToTypedArrayConstructor)(V))(Q),new Uint8Array(ot.buffer,ot.byteOffset,ot.byteLength).set(f.HEAPU8.subarray(W,W+ot.byteLength)),z.push([V,J,ot])}finally{f.stackRestore(H),\"string\"===V&&W&&f._free(W),f._OrtReleaseTensor(G)}}return t.abrupt(\"return\",z);case 34:return t.prev=34,f.stackRestore(A),t.finish(34);case 37:return t.prev=37,_.forEach((function(t){return f._OrtReleaseTensor(t)})),x.forEach((function(t){return f._free(t)})),0!==v&&f._OrtReleaseRunOptions(v),w.forEach((function(t){return f._free(t)})),t.finish(37);case 40:case\"end\":return t.stop()}}),t,null,[[6,,37,40],[19,,34,37]])})));return function(e,r,n,i,o){return t.apply(this,arguments)}}(),e.endProfiling=function(t){var e=(0,a.getInstance)(),r=u.get(t);if(!r)throw new Error(\"invalid session id\");var n=r[0],i=e._OrtEndProfiling(n);0===i&&(0,s.checkLastError)(\"Can't get an profile file name.\"),e._OrtFree(i)},e.extractTransferableBuffers=function(t){var e,r=[],n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var i=e.value[2];!Array.isArray(i)&&i.buffer&&r.push(i.buffer)}}catch(t){n.e(t)}finally{n.f()}return r}},263:function(t,e,r){\"use strict\";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!(\"get\"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)\"default\"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,\"__esModule\",{value:!0}),e.dispose=e.getInstance=e.initializeWebAssembly=void 0;var a,s=o(r(6449)),u=r(932),c=r(3474),l=!1,f=!1,h=!1;e.initializeWebAssembly=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var n,i,o,p,d,m,y,g,b,v,w;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!l){t.next=2;break}return t.abrupt(\"return\",Promise.resolve());case 2:if(!f){t.next=4;break}throw new Error(\"multiple calls to 'initializeWebAssembly()' detected.\");case 4:if(!h){t.next=6;break}throw new Error(\"previous call to 'initializeWebAssembly()' failed.\");case 6:return f=!0,n=e.initTimeout,i=e.numThreads,o=e.simd,p=i>1&&function(){try{return\"undefined\"!=typeof SharedArrayBuffer&&(\"undefined\"!=typeof MessageChannel&&(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11])))}catch(t){return!1}}(),d=o&&function(){try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,30,1,28,0,65,0,253,15,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,186,1,26,11]))}catch(t){return!1}}(),m=e.wasmPaths,y=\"string\"==typeof m?m:void 0,g=function(t,e){return e?t?\"ort-wasm-simd-threaded.wasm\":\"ort-wasm-threaded.wasm\":t?\"ort-wasm-simd.wasm\":\"ort-wasm.wasm\"}(d,p),b=\"object\"==_typeof(m)?m[g]:void 0,v=!1,w=[],n>0&&w.push(new Promise((function(t){setTimeout((function(){v=!0,t()}),n)}))),w.push(new Promise((function(t,e){var n=p?c:u,i={locateFile:function(t,e){return p&&t.endsWith(\".worker.js\")&&\"undefined\"!=typeof Blob?URL.createObjectURL(new Blob([r(4154)],{type:\"text/javascript\"})):t.endsWith(\".wasm\")?b||(null!=y?y:e)+g:e+t}};if(p)if(\"undefined\"==typeof Blob)i.mainScriptUrlOrBlob=s.join(__dirname,\"ort-wasm-threaded.js\");else{var o=\"var ortWasmThreaded=(function(){var _scriptDir;return \".concat(n.toString(),\"})();\");i.mainScriptUrlOrBlob=new Blob([o],{type:\"text/javascript\"})}n(i).then((function(e){f=!1,l=!0,a=e,t()}),(function(t){f=!1,h=!0,e(t)}))}))),t.next=14,Promise.race(w);case 14:if(!v){t.next=16;break}throw new Error(\"WebAssembly backend initializing failed due to timeout: \".concat(n,\"ms\"));case 16:case\"end\":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.getInstance=function(){if(l&&a)return a;throw new Error(\"WebAssembly is not initialized yet.\")},e.dispose=function(){var t;!l||f||h||(f=!0,null===(t=a.PThread)||void 0===t||t.terminateAllThreads(),a=void 0,f=!1,l=!1,h=!0)}},1497:function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.checkLastError=e.iterateExtraOptions=e.allocWasmString=void 0;var n=r(263);e.allocWasmString=function(t,e){var r=(0,n.getInstance)(),i=r.lengthBytesUTF8(t)+1,o=r._malloc(i);return r.stringToUTF8(t,o,i),e.push(o),o},e.iterateExtraOptions=function(t,r,n,i){if(\"object\"==_typeof(t)&&null!==t){if(n.has(t))throw new Error(\"Circular reference in options\");n.add(t)}Object.entries(t).forEach((function(t){var o=_slicedToArray(t,2),a=o[0],s=o[1],u=r?r+a:a;if(\"object\"==_typeof(s))(0,e.iterateExtraOptions)(s,u+\".\",n,i);else if(\"string\"==typeof s||\"number\"==typeof s)i(u,s.toString());else{if(\"boolean\"!=typeof s)throw new Error(\"Can't handle extra config type: \"+_typeof(s));i(u,s?\"1\":\"0\")}}))},e.checkLastError=function(t){var e=(0,n.getInstance)(),r=e.stackSave();try{var i=e.stackAlloc(8);e._OrtGetLastError(i,i+4);var o=e.HEAP32[i/4],a=e.HEAPU32[i/4+1],s=a?e.UTF8ToString(a):\"\";throw new Error(\"\".concat(t,\" ERROR_CODE: \").concat(o,\", ERROR_MESSAGE: \").concat(s))}finally{e.stackRestore(r)}}},8050:function(t,e,r){\"use strict\";r.d(e,{Z:function(){return o}});var n=r(6614),i=r.n(n);function o(){return i()('/*!\\n* ONNX Runtime Web v1.16.1\\n* Copyright (c) Microsoft Corporation. All rights reserved.\\n* Licensed under the MIT License.\\n*/\\n(()=>{var e={918:(e,t,r)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.setRunOptions=void 0;const n=r(263),a=r(497);t.setRunOptions=e=>{const t=(0,n.getInstance)();let r=0;const o=[],i=e||{};try{if(void 0===(null==e?void 0:e.logSeverityLevel))i.logSeverityLevel=2;else if(\"number\"!=typeof e.logSeverityLevel||!Number.isInteger(e.logSeverityLevel)||e.logSeverityLevel<0||e.logSeverityLevel>4)throw new Error(`log serverity level is not valid: ${e.logSeverityLevel}`);if(void 0===(null==e?void 0:e.logVerbosityLevel))i.logVerbosityLevel=0;else if(\"number\"!=typeof e.logVerbosityLevel||!Number.isInteger(e.logVerbosityLevel))throw new Error(`log verbosity level is not valid: ${e.logVerbosityLevel}`);void 0===(null==e?void 0:e.terminate)&&(i.terminate=!1);let n=0;return void 0!==(null==e?void 0:e.tag)&&(n=(0,a.allocWasmString)(e.tag,o)),r=t._OrtCreateRunOptions(i.logSeverityLevel,i.logVerbosityLevel,!!i.terminate,n),0===r&&(0,a.checkLastError)(\"Can\\'t create run options.\"),void 0!==(null==e?void 0:e.extra)&&(0,a.iterateExtraOptions)(e.extra,\"\",new WeakSet,((e,n)=>{const i=(0,a.allocWasmString)(e,o),s=(0,a.allocWasmString)(n,o);0!==t._OrtAddRunConfigEntry(r,i,s)&&(0,a.checkLastError)(`Can\\'t set a run config entry: ${e} - ${n}.`)})),[r,o]}catch(e){throw 0!==r&&t._OrtReleaseRunOptions(r),o.forEach((e=>t._free(e))),e}}},622:(e,t,r)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.setSessionOptions=void 0;const n=r(263),a=r(497);t.setSessionOptions=e=>{var t,r,o,i;const s=(0,n.getInstance)();let u=0;const c=[],l=e||{};(e=>{e.extra||(e.extra={}),e.extra.session||(e.extra.session={});const t=e.extra.session;t.use_ort_model_bytes_directly||(t.use_ort_model_bytes_directly=\"1\"),e.executionProviders&&e.executionProviders.some((e=>\"webgpu\"===(\"string\"==typeof e?e:e.name)))&&(e.enableMemPattern=!1)})(l);try{const e=(e=>{switch(e){case\"disabled\":return 0;case\"basic\":return 1;case\"extended\":return 2;case\"all\":return 99;default:throw new Error(`unsupported graph optimization level: ${e}`)}})(null!==(t=l.graphOptimizationLevel)&&void 0!==t?t:\"all\"),f=(e=>{switch(e){case\"sequential\":return 0;case\"parallel\":return 1;default:throw new Error(`unsupported execution mode: ${e}`)}})(null!==(r=l.executionMode)&&void 0!==r?r:\"sequential\"),d=\"string\"==typeof l.logId?(0,a.allocWasmString)(l.logId,c):0,p=null!==(o=l.logSeverityLevel)&&void 0!==o?o:2;if(!Number.isInteger(p)||p<0||p>4)throw new Error(`log serverity level is not valid: ${p}`);const g=null!==(i=l.logVerbosityLevel)&&void 0!==i?i:0;if(!Number.isInteger(g)||g<0||g>4)throw new Error(`log verbosity level is not valid: ${g}`);const h=\"string\"==typeof l.optimizedModelFilePath?(0,a.allocWasmString)(l.optimizedModelFilePath,c):0;return u=s._OrtCreateSessionOptions(e,!!l.enableCpuMemArena,!!l.enableMemPattern,f,!!l.enableProfiling,0,d,p,g,h),0===u&&(0,a.checkLastError)(\"Can\\'t create session options.\"),l.executionProviders&&((e,t,r)=>{for(const o of t){let t=\"string\"==typeof o?o:o.name;switch(t){case\"xnnpack\":t=\"XNNPACK\";break;case\"webnn\":if(t=\"WEBNN\",\"string\"!=typeof o){const t=o;if(null==t?void 0:t.deviceType){const o=(0,a.allocWasmString)(\"deviceType\",r),i=(0,a.allocWasmString)(t.deviceType,r);0!==(0,n.getInstance)()._OrtAddSessionConfigEntry(e,o,i)&&(0,a.checkLastError)(`Can\\'t set a session config entry: \\'deviceType\\' - ${t.deviceType}.`)}if(null==t?void 0:t.powerPreference){const o=(0,a.allocWasmString)(\"powerPreference\",r),i=(0,a.allocWasmString)(t.powerPreference,r);0!==(0,n.getInstance)()._OrtAddSessionConfigEntry(e,o,i)&&(0,a.checkLastError)(`Can\\'t set a session config entry: \\'powerPreference\\' - ${t.powerPreference}.`)}}break;case\"webgpu\":t=\"JS\";break;case\"wasm\":case\"cpu\":continue;default:throw new Error(`not supported execution provider: ${t}`)}const i=(0,a.allocWasmString)(t,r);0!==(0,n.getInstance)()._OrtAppendExecutionProvider(e,i)&&(0,a.checkLastError)(`Can\\'t append execution provider: ${t}.`)}})(u,l.executionProviders,c),void 0!==l.extra&&(0,a.iterateExtraOptions)(l.extra,\"\",new WeakSet,((e,t)=>{const r=(0,a.allocWasmString)(e,c),n=(0,a.allocWasmString)(t,c);0!==s._OrtAddSessionConfigEntry(u,r,n)&&(0,a.checkLastError)(`Can\\'t set a session config entry: ${e} - ${t}.`)})),[u,c]}catch(e){throw 0!==u&&s._OrtReleaseSessionOptions(u),c.forEach((e=>s._free(e))),e}}},917:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.logLevelStringToEnum=t.tensorTypeToTypedArrayConstructor=t.getTensorElementSize=t.tensorDataTypeEnumToString=t.tensorDataTypeStringToEnum=void 0,t.tensorDataTypeStringToEnum=e=>{switch(e){case\"int8\":return 3;case\"uint8\":return 2;case\"bool\":return 9;case\"int16\":return 5;case\"uint16\":return 4;case\"int32\":return 6;case\"uint32\":return 12;case\"float16\":return 10;case\"float32\":return 1;case\"float64\":return 11;case\"string\":return 8;case\"int64\":return 7;case\"uint64\":return 13;default:throw new Error(`unsupported data type: ${e}`)}},t.tensorDataTypeEnumToString=e=>{switch(e){case 3:return\"int8\";case 2:return\"uint8\";case 9:return\"bool\";case 5:return\"int16\";case 4:return\"uint16\";case 6:return\"int32\";case 12:return\"uint32\";case 10:return\"float16\";case 1:return\"float32\";case 11:return\"float64\";case 8:return\"string\";case 7:return\"int64\";case 13:return\"uint64\";default:throw new Error(`unsupported data type: ${e}`)}},t.getTensorElementSize=e=>[void 0,4,1,1,2,2,4,8,void 0,1,2,8,4,8,void 0,void 0,void 0][e],t.tensorTypeToTypedArrayConstructor=e=>{switch(e){case\"float16\":case\"uint16\":return Uint16Array;case\"float32\":return Float32Array;case\"uint8\":case\"bool\":return Uint8Array;case\"int8\":return Int8Array;case\"int16\":return Int16Array;case\"int32\":return Int32Array;case\"float64\":return Float64Array;case\"uint32\":return Uint32Array;case\"int64\":return BigInt64Array;case\"uint64\":return BigUint64Array;default:throw new Error(`unsupported type: ${e}`)}},t.logLevelStringToEnum=e=>{switch(e){case\"verbose\":return 0;case\"info\":return 1;case\"warning\":return 2;case\"error\":return 3;case\"fatal\":return 4;default:throw new Error(`unsupported logging level: ${e}`)}}},259:(e,t,r)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.extractTransferableBuffers=t.endProfiling=t.run=t.releaseSession=t.createSession=t.createSessionFinalize=t.createSessionAllocate=t.initRuntime=void 0;const n=r(918),a=r(622),o=r(917),i=r(263),s=r(497);t.initRuntime=async e=>{var t,r;t=e.wasm.numThreads,r=(0,o.logLevelStringToEnum)(e.logLevel),0!==(0,i.getInstance)()._OrtInit(t,r)&&(0,s.checkLastError)(\"Can\\'t initialize onnxruntime.\")};const u=new Map;t.createSessionAllocate=e=>{const t=(0,i.getInstance)(),r=t._malloc(e.byteLength);if(0===r)throw new Error(`Can\\'t create a session. failed to allocate a buffer of size ${e.byteLength}.`);return t.HEAPU8.set(e,r),[r,e.byteLength]},t.createSessionFinalize=(e,t)=>{const r=(0,i.getInstance)();let n=0,o=0,c=[];const l=[],f=[];try{[o,c]=(0,a.setSessionOptions)(t),n=r._OrtCreateSession(e[0],e[1],o),0===n&&(0,s.checkLastError)(\"Can\\'t create a session.\");const[d,p]=(e=>{const t=(0,i.getInstance)(),r=t.stackSave();try{const r=t.stackAlloc(8);return 0!==t._OrtGetInputOutputCount(e,r,r+4)&&(0,s.checkLastError)(\"Can\\'t get session input/output count.\"),[t.HEAP32[r/4],t.HEAP32[r/4+1]]}finally{t.stackRestore(r)}})(n),g=[],h=[];for(let e=0;e<d;e++){const t=r._OrtGetInputName(n,e);0===t&&(0,s.checkLastError)(\"Can\\'t get an input name.\"),l.push(t),g.push(r.UTF8ToString(t))}for(let e=0;e<p;e++){const t=r._OrtGetOutputName(n,e);0===t&&(0,s.checkLastError)(\"Can\\'t get an output name.\"),f.push(t),h.push(r.UTF8ToString(t))}return u.set(n,[n,l,f]),[n,g,h]}catch(e){throw l.forEach((e=>r._OrtFree(e))),f.forEach((e=>r._OrtFree(e))),0!==n&&r._OrtReleaseSession(n),e}finally{r._free(e[0]),0!==o&&r._OrtReleaseSessionOptions(o),c.forEach((e=>r._free(e)))}},t.createSession=(e,r)=>{const n=(0,t.createSessionAllocate)(e);return(0,t.createSessionFinalize)(n,r)},t.releaseSession=e=>{const t=(0,i.getInstance)(),r=u.get(e);if(!r)throw new Error(`cannot release session. invalid session id: ${e}`);const[n,a,o]=r;a.forEach((e=>t._OrtFree(e))),o.forEach((e=>t._OrtFree(e))),t._OrtReleaseSession(n),u.delete(e)},t.run=async(e,t,r,a,c)=>{const l=(0,i.getInstance)(),f=u.get(e);if(!f)throw new Error(`cannot run inference. invalid session id: ${e}`);const[d,p,g]=f,h=t.length,m=a.length;let y=0,v=[];const b=[],w=[];try{[y,v]=(0,n.setRunOptions)(c);for(let e=0;e<h;e++){const t=r[e][0],n=r[e][1],a=r[e][2];let i,u;if(Array.isArray(a)){u=4*a.length,i=l._malloc(u),w.push(i);let e=i/4;for(let t=0;t<a.length;t++){if(\"string\"!=typeof a[t])throw new TypeError(`tensor data at index ${t} is not a string`);l.HEAPU32[e++]=(0,s.allocWasmString)(a[t],w)}}else u=a.byteLength,i=l._malloc(u),w.push(i),l.HEAPU8.set(new Uint8Array(a.buffer,a.byteOffset,u),i);const c=l.stackSave(),f=l.stackAlloc(4*n.length);try{let r=f/4;n.forEach((e=>l.HEAP32[r++]=e));const a=l._OrtCreateTensor((0,o.tensorDataTypeStringToEnum)(t),i,u,f,n.length);0===a&&(0,s.checkLastError)(`Can\\'t create tensor for input[${e}].`),b.push(a)}finally{l.stackRestore(c)}}const e=l.stackSave(),i=l.stackAlloc(4*h),u=l.stackAlloc(4*h),f=l.stackAlloc(4*m),_=l.stackAlloc(4*m);try{let e=i/4,r=u/4,n=f/4,c=_/4;for(let n=0;n<h;n++)l.HEAPU32[e++]=b[n],l.HEAPU32[r++]=p[t[n]];for(let e=0;e<m;e++)l.HEAPU32[n++]=0,l.HEAPU32[c++]=g[a[e]];let v=l._OrtRun(d,u,i,h,_,m,f,y);const w=l.jsepRunPromise;w&&void 0!==w.then&&(v=await w);const O=[];0!==v&&(0,s.checkLastError)(\"failed to call OrtRun().\");for(let e=0;e<m;e++){const t=l.HEAPU32[f/4+e],r=l.stackSave(),n=l.stackAlloc(16);let a,i=0;try{v=l._OrtGetTensorData(t,n,n+4,n+8,n+12),0!==v&&(0,s.checkLastError)(`Can\\'t access output tensor data on index ${e}.`);let r=n/4;const u=l.HEAPU32[r++];i=l.HEAPU32[r++];const c=l.HEAPU32[r++],f=l.HEAPU32[r++],d=[];for(let e=0;e<f;e++)d.push(l.HEAPU32[c/4+e]);l._OrtFree(c);const p=0===d.length?1:d.reduce(((e,t)=>e*t));if(a=(0,o.tensorDataTypeEnumToString)(u),\"string\"===a){const e=[];let t=i/4;for(let r=0;r<p;r++){const n=l.HEAPU32[t++],a=r===p-1?void 0:l.HEAPU32[t]-n;e.push(l.UTF8ToString(n,a))}O.push([a,d,e])}else{const e=new((0,o.tensorTypeToTypedArrayConstructor)(a))(p);new Uint8Array(e.buffer,e.byteOffset,e.byteLength).set(l.HEAPU8.subarray(i,i+e.byteLength)),O.push([a,d,e])}}finally{l.stackRestore(r),\"string\"===a&&i&&l._free(i),l._OrtReleaseTensor(t)}}return O}finally{l.stackRestore(e)}}finally{b.forEach((e=>l._OrtReleaseTensor(e))),w.forEach((e=>l._free(e))),0!==y&&l._OrtReleaseRunOptions(y),v.forEach((e=>l._free(e)))}},t.endProfiling=e=>{const t=(0,i.getInstance)(),r=u.get(e);if(!r)throw new Error(\"invalid session id\");const n=r[0],a=t._OrtEndProfiling(n);0===a&&(0,s.checkLastError)(\"Can\\'t get an profile file name.\"),t._OrtFree(a)},t.extractTransferableBuffers=e=>{const t=[];for(const r of e){const e=r[2];!Array.isArray(e)&&e.buffer&&t.push(e.buffer)}return t}},263:function(e,t,r){\"use strict\";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!(\"get\"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)\"default\"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0}),t.dispose=t.getInstance=t.initializeWebAssembly=void 0;const i=o(r(449)),s=r(932),u=r(474);let c,l=!1,f=!1,d=!1;t.initializeWebAssembly=async e=>{if(l)return Promise.resolve();if(f)throw new Error(\"multiple calls to \\'initializeWebAssembly()\\' detected.\");if(d)throw new Error(\"previous call to \\'initializeWebAssembly()\\' failed.\");f=!0;const t=e.initTimeout,n=e.numThreads,a=e.simd,o=n>1&&(()=>{try{return\"undefined\"!=typeof SharedArrayBuffer&&(\"undefined\"!=typeof MessageChannel&&(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11])))}catch(e){return!1}})(),p=a&&(()=>{try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,30,1,28,0,65,0,253,15,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,186,1,26,11]))}catch(e){return!1}})(),g=e.wasmPaths,h=\"string\"==typeof g?g:void 0,m=((e,t)=>t?e?\"ort-wasm-simd-threaded.wasm\":\"ort-wasm-threaded.wasm\":e?\"ort-wasm-simd.wasm\":\"ort-wasm.wasm\")(p,o),y=\"object\"==typeof g?g[m]:void 0;let v=!1;const b=[];if(t>0&&b.push(new Promise((e=>{setTimeout((()=>{v=!0,e()}),t)}))),b.push(new Promise(((e,t)=>{const n=o?u:s,a={locateFile:(e,t)=>o&&e.endsWith(\".worker.js\")&&\"undefined\"!=typeof Blob?URL.createObjectURL(new Blob([r(154)],{type:\"text/javascript\"})):e.endsWith(\".wasm\")?y||(null!=h?h:t)+m:t+e};if(o)if(\"undefined\"==typeof Blob)a.mainScriptUrlOrBlob=i.join(__dirname,\"ort-wasm-threaded.js\");else{const e=`var ortWasmThreaded=(function(){var _scriptDir;return ${n.toString()}})();`;a.mainScriptUrlOrBlob=new Blob([e],{type:\"text/javascript\"})}n(a).then((t=>{f=!1,l=!0,c=t,e()}),(e=>{f=!1,d=!0,t(e)}))}))),await Promise.race(b),v)throw new Error(`WebAssembly backend initializing failed due to timeout: ${t}ms`)},t.getInstance=()=>{if(l&&c)return c;throw new Error(\"WebAssembly is not initialized yet.\")},t.dispose=()=>{var e;!l||f||d||(f=!0,null===(e=c.PThread)||void 0===e||e.terminateAllThreads(),c=void 0,f=!1,l=!1,d=!0)}},497:(e,t,r)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.checkLastError=t.iterateExtraOptions=t.allocWasmString=void 0;const n=r(263);t.allocWasmString=(e,t)=>{const r=(0,n.getInstance)(),a=r.lengthBytesUTF8(e)+1,o=r._malloc(a);return r.stringToUTF8(e,o,a),t.push(o),o},t.iterateExtraOptions=(e,r,n,a)=>{if(\"object\"==typeof e&&null!==e){if(n.has(e))throw new Error(\"Circular reference in options\");n.add(e)}Object.entries(e).forEach((([e,o])=>{const i=r?r+e:e;if(\"object\"==typeof o)(0,t.iterateExtraOptions)(o,i+\".\",n,a);else if(\"string\"==typeof o||\"number\"==typeof o)a(i,o.toString());else{if(\"boolean\"!=typeof o)throw new Error(\"Can\\'t handle extra config type: \"+typeof o);a(i,o?\"1\":\"0\")}}))},t.checkLastError=e=>{const t=(0,n.getInstance)(),r=t.stackSave();try{const r=t.stackAlloc(8);t._OrtGetLastError(r,r+4);const n=t.HEAP32[r/4],a=t.HEAPU32[r/4+1],o=a?t.UTF8ToString(a):\"\";throw new Error(`${e} ERROR_CODE: ${n}, ERROR_MESSAGE: ${o}`)}finally{t.stackRestore(r)}}},474:(e,t,r)=>{var _scriptDir,n=(_scriptDir=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0,\"undefined\"!=typeof __filename&&(_scriptDir=_scriptDir||__filename),function(e={}){function t(){return k.buffer!=x.buffer&&Y(),x}function n(){return k.buffer!=x.buffer&&Y(),I}function a(){return k.buffer!=x.buffer&&Y(),U}function o(){return k.buffer!=x.buffer&&Y(),L}function i(){return k.buffer!=x.buffer&&Y(),W}var s,u,c=e;c.ready=new Promise(((e,t)=>{s=e,u=t}));var l,f,d,p=Object.assign({},c),g=\"./this.program\",h=(e,t)=>{throw t},m=\"object\"==typeof window,y=\"function\"==typeof importScripts,v=\"object\"==typeof process&&\"object\"==typeof process.versions&&\"string\"==typeof process.versions.node,b=c.ENVIRONMENT_IS_PTHREAD||!1,w=\"\";function _(e){return c.locateFile?c.locateFile(e,w):w+e}if(v){var O=r(384),S=r(908);let t;w=y?S.dirname(w)+\"/\":__dirname+\"/\",l=(e,t)=>(e=e.startsWith(\"file://\")?new URL(e):S.normalize(e),O.readFileSync(e,t?void 0:\"utf8\")),d=e=>((e=l(e,!0)).buffer||(e=new Uint8Array(e)),e),f=(e,t,r,n=!0)=>{e=e.startsWith(\"file://\")?new URL(e):S.normalize(e),O.readFile(e,n?void 0:\"utf8\",((e,a)=>{e?r(e):t(n?a.buffer:a)}))},!c.thisProgram&&1<process.argv.length&&(g=process.argv[1].replace(/\\\\\\\\/g,\"/\")),process.argv.slice(2),h=(e,t)=>{throw process.exitCode=e,t},c.inspect=()=>\"[Emscripten Module object]\";try{t=r(925)}catch(e){throw console.error(\\'The \"worker_threads\" module is not supported in this node.js build - perhaps a newer version is needed?\\'),e}global.Worker=t.Worker}else(m||y)&&(y?w=self.location.href:\"undefined\"!=typeof document&&document.currentScript&&(w=document.currentScript.src),_scriptDir&&(w=_scriptDir),w=0!==w.indexOf(\"blob:\")?w.substr(0,w.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1):\"\",v||(l=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.send(null),t.responseText},y&&(d=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.responseType=\"arraybuffer\",t.send(null),new Uint8Array(t.response)}),f=(e,t,r)=>{var n=new XMLHttpRequest;n.open(\"GET\",e,!0),n.responseType=\"arraybuffer\",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}));v&&\"undefined\"==typeof performance&&(global.performance=r(953).performance);var E=console.log.bind(console),A=console.error.bind(console);v&&(E=(...e)=>O.writeSync(1,e.join(\" \")+\"\\\\n\"),A=(...e)=>O.writeSync(2,e.join(\" \")+\"\\\\n\"));var T,M=c.print||E,R=c.printErr||A;Object.assign(c,p),p=null,c.thisProgram&&(g=c.thisProgram),c.quit&&(h=c.quit),c.wasmBinary&&(T=c.wasmBinary);var F=c.noExitRuntime||!0;\"object\"!=typeof WebAssembly&&te(\"no native wasm support detected\");var k,C,P,D,x,I,U,L,W,H=!1;function Y(){var e=k.buffer;c.HEAP8=x=new Int8Array(e),c.HEAP16=new Int16Array(e),c.HEAP32=U=new Int32Array(e),c.HEAPU8=I=new Uint8Array(e),c.HEAPU16=new Uint16Array(e),c.HEAPU32=L=new Uint32Array(e),c.HEAPF32=new Float32Array(e),c.HEAPF64=W=new Float64Array(e)}var j=c.INITIAL_MEMORY||16777216;if(5242880<=j||te(\"INITIAL_MEMORY should be larger than STACK_SIZE, was \"+j+\"! (STACK_SIZE=5242880)\"),b)k=c.wasmMemory;else if(c.wasmMemory)k=c.wasmMemory;else if(!((k=new WebAssembly.Memory({initial:j/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw R(\"requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag\"),v&&R(\"(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)\"),Error(\"bad memory\");Y(),j=k.buffer.byteLength;var z,G=[],N=[],B=[],$=0;function q(){return F||0<$}var V,J,X=0,K=null,Z=null;function Q(){X++,c.monitorRunDependencies&&c.monitorRunDependencies(X)}function ee(){if(X--,c.monitorRunDependencies&&c.monitorRunDependencies(X),0==X&&(null!==K&&(clearInterval(K),K=null),Z)){var e=Z;Z=null,e()}}function te(e){throw c.onAbort&&c.onAbort(e),R(e=\"Aborted(\"+e+\")\"),H=!0,D=1,e=new WebAssembly.RuntimeError(e+\". Build with -sASSERTIONS for more info.\"),u(e),e}function re(e){return e.startsWith(\"data:application/octet-stream;base64,\")}function ne(e){if(e==V&&T)return new Uint8Array(T);if(d)return d(e);throw\"both async and sync fetching of the wasm failed\"}function ae(e,t,r){return function(e){if(!T&&(m||y)){if(\"function\"==typeof fetch&&!e.startsWith(\"file://\"))return fetch(e,{credentials:\"same-origin\"}).then((t=>{if(!t.ok)throw\"failed to load wasm binary file at \\'\"+e+\"\\'\";return t.arrayBuffer()})).catch((()=>ne(e)));if(f)return new Promise(((t,r)=>{f(e,(e=>t(new Uint8Array(e))),r)}))}return Promise.resolve().then((()=>ne(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{R(\"failed to asynchronously prepare wasm: \"+e),te(e)}))}function oe(e){this.name=\"ExitStatus\",this.message=`Program terminated with exit(${e})`,this.status=e}function ie(e){e.terminate(),e.onmessage=()=>{}}function se(e){(e=ge.Fa[e])||te(),ge.fb(e)}function ue(e){var t=ge.Za();if(!t)return 6;ge.Ia.push(t),ge.Fa[e.Ha]=t,t.Ha=e.Ha;var r={cmd:\"run\",start_routine:e.gb,arg:e.Ya,pthread_ptr:e.Ha};return v&&t.unref(),t.postMessage(r,e.mb),0}re(V=\"ort-wasm-threaded.wasm\")||(V=_(V));var ce=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0,le=(e,t,r)=>{var n=(t>>>=0)+r;for(r=t;e[r]&&!(r>=n);)++r;if(16<r-t&&e.buffer&&ce)return ce.decode(e.buffer instanceof SharedArrayBuffer?e.slice(t,r):e.subarray(t,r));for(n=\"\";t<r;){var a=e[t++];if(128&a){var o=63&e[t++];if(192==(224&a))n+=String.fromCharCode((31&a)<<6|o);else{var i=63&e[t++];65536>(a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&e[t++])?n+=String.fromCharCode(a):(a-=65536,n+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else n+=String.fromCharCode(a)}return n},fe=(e,t)=>(e>>>=0)?le(n(),e,t):\"\";function de(e){if(b)return qe(1,1,e);D=e,q()||(ge.hb(),c.onExit&&c.onExit(e),H=!0),h(e,new oe(e))}var pe=e=>{if(D=e,b)throw me(e),\"unwind\";de(e)},ge={La:[],Ia:[],Ta:[],Fa:{},Pa:function(){b?ge.ab():ge.$a()},$a:function(){G.unshift((()=>{Q(),ge.bb((()=>ee()))}))},ab:function(){ge.receiveObjectTransfer=ge.eb,ge.threadInitTLS=ge.Sa,ge.setExitStatus=ge.Ra,F=!1},Ra:function(e){D=e},rb:[\"$terminateWorker\"],hb:function(){for(var e of ge.Ia)ie(e);for(e of ge.La)ie(e);ge.La=[],ge.Ia=[],ge.Fa=[]},fb:function(e){var t=e.Ha;delete ge.Fa[t],ge.La.push(e),ge.Ia.splice(ge.Ia.indexOf(e),1),e.Ha=0,yt(t)},eb:function(){},Sa:function(){ge.Ta.forEach((e=>e()))},cb:e=>new Promise((t=>{e.onmessage=r=>{var n=(r=r.data).cmd;if(r.targetThread&&r.targetThread!=dt()){var a=ge.Fa[r.qb];a?a.postMessage(r,r.transferList):R(\\'Internal error! Worker sent a message \"\\'+n+\\'\" to target pthread \\'+r.targetThread+\", but that thread no longer exists!\")}else\"checkMailbox\"===n?He():\"spawnThread\"===n?ue(r):\"cleanupThread\"===n?se(r.thread):\"killThread\"===n?(r=r.thread,n=ge.Fa[r],delete ge.Fa[r],ie(n),yt(r),ge.Ia.splice(ge.Ia.indexOf(n),1),n.Ha=0):\"cancelThread\"===n?ge.Fa[r.thread].postMessage({cmd:\"cancel\"}):\"loaded\"===n?(e.loaded=!0,t(e)):\"alert\"===n?alert(\"Thread \"+r.threadId+\": \"+r.text):\"setimmediate\"===r.target?e.postMessage(r):\"callHandler\"===n?c[r.handler](...r.args):n&&R(\"worker sent an unknown command \"+n)},e.onerror=e=>{throw R(\"worker sent an error! \"+e.filename+\":\"+e.lineno+\": \"+e.message),e},v&&(e.on(\"message\",(function(t){e.onmessage({data:t})})),e.on(\"error\",(function(t){e.onerror(t)})));var r,n=[];for(r of[\"onExit\",\"onAbort\",\"print\",\"printErr\"])c.hasOwnProperty(r)&&n.push(r);e.postMessage({cmd:\"load\",handlers:n,urlOrBlob:c.mainScriptUrlOrBlob||_scriptDir,wasmMemory:k,wasmModule:P})})),bb:function(e){e()},Xa:function(){var e=_(\"ort-wasm-threaded.worker.js\");e=new Worker(e),ge.La.push(e)},Za:function(){return 0==ge.La.length&&(ge.Xa(),ge.cb(ge.La[0])),ge.La.pop()}};c.PThread=ge;var he=e=>{for(;0<e.length;)e.shift()(c)};function me(e){if(b)return qe(2,0,e);pe(e)}c.establishStackSpace=function(){var e=dt(),t=a()[e+52>>2>>>0];e=a()[e+56>>2>>>0],_t(t,t-e),St(t)};var ye=[];function ve(e){this.Oa=e-24,this.Wa=function(e){o()[this.Oa+4>>2>>>0]=e},this.Va=function(e){o()[this.Oa+8>>2>>>0]=e},this.Pa=function(e,t){this.Ua(),this.Wa(e),this.Va(t)},this.Ua=function(){o()[this.Oa+16>>2>>>0]=0}}function be(e,t,r,n){return b?qe(3,1,e,t,r,n):we(e,t,r,n)}function we(e,t,r,n){if(e>>>=0,t>>>=0,r>>>=0,n>>>=0,\"undefined\"==typeof SharedArrayBuffer)return R(\"Current environment does not support SharedArrayBuffer, pthreads are not available!\"),6;var a=[];return b&&0===a.length?be(e,t,r,n):(e={gb:r,Ha:e,Ya:n,mb:a},b?(e.ob=\"spawnThread\",postMessage(e,a),0):ue(e))}function _e(e,t,r){return b?qe(4,1,e,t,r):0}function Oe(e,t){if(b)return qe(5,1,e,t)}c.invokeEntryPoint=function(e,t){var r=ye[e];r||(e>=ye.length&&(ye.length=e+1),ye[e]=r=z.get(e)),e=r(t),q()?ge.Ra(e):vt(e)};var Se=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);127>=n?t++:2047>=n?t+=2:55296<=n&&57343>=n?(t+=4,++r):t+=3}return t},Ee=(e,t,r,n)=>{if(!(0<n))return 0;var a=r>>>=0;n=r+n-1;for(var o=0;o<e.length;++o){var i=e.charCodeAt(o);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++o)),127>=i){if(r>=n)break;t[r++>>>0]=i}else{if(2047>=i){if(r+1>=n)break;t[r++>>>0]=192|i>>6}else{if(65535>=i){if(r+2>=n)break;t[r++>>>0]=224|i>>12}else{if(r+3>=n)break;t[r++>>>0]=240|i>>18,t[r++>>>0]=128|i>>12&63}t[r++>>>0]=128|i>>6&63}t[r++>>>0]=128|63&i}}return t[r>>>0]=0,r-a},Ae=(e,t,r)=>Ee(e,n(),t,r);function Te(e,t){if(b)return qe(6,1,e,t)}function Me(e,t,r){if(b)return qe(7,1,e,t,r)}function Re(e,t,r){return b?qe(8,1,e,t,r):0}function Fe(e,t){if(b)return qe(9,1,e,t)}function ke(e,t,r){if(b)return qe(10,1,e,t,r)}function Ce(e,t,r,n){if(b)return qe(11,1,e,t,r,n)}function Pe(e,t,r,n){if(b)return qe(12,1,e,t,r,n)}function De(e,t,r,n){if(b)return qe(13,1,e,t,r,n)}function xe(e){if(b)return qe(14,1,e)}function Ie(e,t){if(b)return qe(15,1,e,t)}function Ue(e,t,r){if(b)return qe(16,1,e,t,r)}var Le=e=>{if(!H)try{if(e(),!q())try{b?vt(D):pe(D)}catch(e){e instanceof oe||\"unwind\"==e||h(1,e)}}catch(e){e instanceof oe||\"unwind\"==e||h(1,e)}};function We(e){e>>>=0,\"function\"==typeof Atomics.nb&&(Atomics.nb(a(),e>>2,e).value.then(He),e+=128,Atomics.store(a(),e>>2,1))}function He(){var e=dt();e&&(We(e),Le((()=>bt())))}c.__emscripten_thread_mailbox_await=We,c.checkMailbox=He;var Ye=e=>0==e%4&&(0!=e%100||0==e%400),je=[0,31,60,91,121,152,182,213,244,274,305,335],ze=[0,31,59,90,120,151,181,212,243,273,304,334];function Ge(e,t,r,n,a,o,i,s){return b?qe(17,1,e,t,r,n,a,o,i,s):-52}function Ne(e,t,r,n,a,o,i){if(b)return qe(18,1,e,t,r,n,a,o,i)}var Be=e=>{var t=Se(e)+1,r=pt(t);return r&&Ae(e,r,t),r},$e=e=>{var t=Ot();return e=e(),St(t),e};function qe(e,t){var r=arguments.length-2,n=arguments;return $e((()=>{for(var a=Et(8*r),o=a>>3,s=0;s<r;s++){var u=n[2+s];i()[o+s>>>0]=u}return mt(e,r,a,t)}))}var Ve,Je=[],Xe={},Ke=()=>{if(!Ve){var e,t={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:g||\"./this.program\"};for(e in Xe)void 0===Xe[e]?delete t[e]:t[e]=Xe[e];var r=[];for(e in t)r.push(`${e}=${t[e]}`);Ve=r}return Ve};function Ze(e,r){if(b)return qe(19,1,e,r);e>>>=0,r>>>=0;var n=0;return Ke().forEach((function(a,i){var s=r+n;for(i=o()[e+4*i>>2>>>0]=s,s=0;s<a.length;++s)t()[i++>>0>>>0]=a.charCodeAt(s);t()[i>>0>>>0]=0,n+=a.length+1})),0}function Qe(e,t){if(b)return qe(20,1,e,t);e>>>=0,t>>>=0;var r=Ke();o()[e>>2>>>0]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),o()[t>>2>>>0]=n,0}function et(e){return b?qe(21,1,e):52}function tt(e,t,r,n){return b?qe(22,1,e,t,r,n):52}function rt(e,t,r,n,a){return b?qe(23,1,e,t,r,n,a):70}var nt=[null,[],[]];function at(e,t,r,a){if(b)return qe(24,1,e,t,r,a);t>>>=0,r>>>=0,a>>>=0;for(var i=0,s=0;s<r;s++){var u=o()[t>>2>>>0],c=o()[t+4>>2>>>0];t+=8;for(var l=0;l<c;l++){var f=n()[u+l>>>0],d=nt[e];0===f||10===f?((1===e?M:R)(le(d,0)),d.length=0):d.push(f)}i+=c}return o()[a>>2>>>0]=i,0}var ot=e=>(ot=(()=>{if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);if(v)try{var e=r(760);if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}te(\"initRandomDevice\")})())(e),it=[31,29,31,30,31,30,31,31,30,31,30,31],st=[31,28,31,30,31,30,31,31,30,31,30,31],ut=(e,r)=>{t().set(e,r>>>0)};function ct(e,t,r,n){function o(e,t,r){for(e=\"number\"==typeof e?e.toString():e||\"\";e.length<t;)e=r[0]+e;return e}function i(e,t){return o(e,t,\"0\")}function s(e,t){function r(e){return 0>e?-1:0<e?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function u(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function c(e){var t=e.Ja;for(e=new Date(new Date(e.Ka+1900,0,1).getTime());0<t;){var r=e.getMonth(),n=(Ye(e.getFullYear())?it:st)[r];if(!(t>n-e.getDate())){e.setDate(e.getDate()+t);break}t-=n-e.getDate()+1,e.setDate(1),11>r?e.setMonth(r+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return r=new Date(e.getFullYear()+1,0,4),t=u(new Date(e.getFullYear(),0,4)),r=u(r),0>=s(t,e)?0>=s(r,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}e>>>=0,t>>>=0,r>>>=0,n>>>=0;var l=a()[n+40>>2>>>0];for(var f in n={kb:a()[n>>2>>>0],jb:a()[n+4>>2>>>0],Ma:a()[n+8>>2>>>0],Qa:a()[n+12>>2>>>0],Na:a()[n+16>>2>>>0],Ka:a()[n+20>>2>>>0],Ga:a()[n+24>>2>>>0],Ja:a()[n+28>>2>>>0],sb:a()[n+32>>2>>>0],ib:a()[n+36>>2>>>0],lb:l?fe(l):\"\"},r=fe(r),l={\"%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\"})r=r.replace(new RegExp(f,\"g\"),l[f]);var d=\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),p=\"January February March April May June July August September October November December\".split(\" \");for(f in l={\"%a\":e=>d[e.Ga].substring(0,3),\"%A\":e=>d[e.Ga],\"%b\":e=>p[e.Na].substring(0,3),\"%B\":e=>p[e.Na],\"%C\":e=>i((e.Ka+1900)/100|0,2),\"%d\":e=>i(e.Qa,2),\"%e\":e=>o(e.Qa,2,\" \"),\"%g\":e=>c(e).toString().substring(2),\"%G\":e=>c(e),\"%H\":e=>i(e.Ma,2),\"%I\":e=>(0==(e=e.Ma)?e=12:12<e&&(e-=12),i(e,2)),\"%j\":e=>{for(var t=0,r=0;r<=e.Na-1;t+=(Ye(e.Ka+1900)?it:st)[r++]);return i(e.Qa+t,3)},\"%m\":e=>i(e.Na+1,2),\"%M\":e=>i(e.jb,2),\"%n\":()=>\"\\\\n\",\"%p\":e=>0<=e.Ma&&12>e.Ma?\"AM\":\"PM\",\"%S\":e=>i(e.kb,2),\"%t\":()=>\"\\\\t\",\"%u\":e=>e.Ga||7,\"%U\":e=>i(Math.floor((e.Ja+7-e.Ga)/7),2),\"%V\":e=>{var t=Math.floor((e.Ja+7-(e.Ga+6)%7)/7);if(2>=(e.Ga+371-e.Ja-2)%7&&t++,t)53==t&&(4==(r=(e.Ga+371-e.Ja)%7)||3==r&&Ye(e.Ka)||(t=1));else{t=52;var r=(e.Ga+7-e.Ja-1)%7;(4==r||5==r&&Ye(e.Ka%400-1))&&t++}return i(t,2)},\"%w\":e=>e.Ga,\"%W\":e=>i(Math.floor((e.Ja+7-(e.Ga+6)%7)/7),2),\"%y\":e=>(e.Ka+1900).toString().substring(2),\"%Y\":e=>e.Ka+1900,\"%z\":e=>{var t=0<=(e=e.ib);return e=Math.abs(e)/60,(t?\"+\":\"-\")+String(\"0000\"+(e/60*100+e%60)).slice(-4)},\"%Z\":e=>e.lb,\"%%\":()=>\"%\"},r=r.replace(/%%/g,\"\\\\0\\\\0\"),l)r.includes(f)&&(r=r.replace(new RegExp(f,\"g\"),l[f](n)));return f=function(e){var t=Array(Se(e)+1);return Ee(e,t,0,t.length),t}(r=r.replace(/\\\\0\\\\0/g,\"%\")),f.length>t?0:(ut(f,e),f.length-1)}ge.Pa();var lt=[null,de,me,be,_e,Oe,Te,Me,Re,Fe,ke,Ce,Pe,De,xe,Ie,Ue,Ge,Ne,Ze,Qe,et,tt,rt,at],ft={b:function(e,t,r){throw new ve(e>>>=0).Pa(t>>>0,r>>>0),e},N:function(e){gt(e>>>0,!y,1,!m,131072,!1),ge.Sa()},k:function(e){e>>>=0,b?postMessage({cmd:\"cleanupThread\",thread:e}):se(e)},I:we,h:_e,T:Oe,E:Te,G:Me,U:Re,R:Fe,J:ke,Q:Ce,o:Pe,F:De,C:xe,S:Ie,D:Ue,q:()=>!0,A:function(e,t){(e>>>=0)==t>>>0?setTimeout((()=>He())):b?postMessage({targetThread:e,cmd:\"checkMailbox\"}):(e=ge.Fa[e])&&e.postMessage({cmd:\"checkMailbox\"})},L:function(){return-1},M:We,p:function(e){v&&ge.Fa[e>>>0].ref()},t:function(e,t,r){e=t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN,r>>>=0,e=new Date(1e3*e),a()[r>>2>>>0]=e.getUTCSeconds(),a()[r+4>>2>>>0]=e.getUTCMinutes(),a()[r+8>>2>>>0]=e.getUTCHours(),a()[r+12>>2>>>0]=e.getUTCDate(),a()[r+16>>2>>>0]=e.getUTCMonth(),a()[r+20>>2>>>0]=e.getUTCFullYear()-1900,a()[r+24>>2>>>0]=e.getUTCDay(),e=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,a()[r+28>>2>>>0]=e},u:function(e,t,r){e=t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN,r>>>=0,e=new Date(1e3*e),a()[r>>2>>>0]=e.getSeconds(),a()[r+4>>2>>>0]=e.getMinutes(),a()[r+8>>2>>>0]=e.getHours(),a()[r+12>>2>>>0]=e.getDate(),a()[r+16>>2>>>0]=e.getMonth(),a()[r+20>>2>>>0]=e.getFullYear()-1900,a()[r+24>>2>>>0]=e.getDay(),t=(Ye(e.getFullYear())?je:ze)[e.getMonth()]+e.getDate()-1|0,a()[r+28>>2>>>0]=t,a()[r+36>>2>>>0]=-60*e.getTimezoneOffset(),t=new Date(e.getFullYear(),6,1).getTimezoneOffset();var n=new Date(e.getFullYear(),0,1).getTimezoneOffset();e=0|(t!=n&&e.getTimezoneOffset()==Math.min(n,t)),a()[r+32>>2>>>0]=e},v:function(e){e>>>=0;var t=new Date(a()[e+20>>2>>>0]+1900,a()[e+16>>2>>>0],a()[e+12>>2>>>0],a()[e+8>>2>>>0],a()[e+4>>2>>>0],a()[e>>2>>>0],0),r=a()[e+32>>2>>>0],n=t.getTimezoneOffset(),o=new Date(t.getFullYear(),6,1).getTimezoneOffset(),i=new Date(t.getFullYear(),0,1).getTimezoneOffset(),s=Math.min(i,o);return 0>r?a()[e+32>>2>>>0]=Number(o!=i&&s==n):0<r!=(s==n)&&(o=Math.max(i,o),t.setTime(t.getTime()+6e4*((0<r?s:o)-n))),a()[e+24>>2>>>0]=t.getDay(),r=(Ye(t.getFullYear())?je:ze)[t.getMonth()]+t.getDate()-1|0,a()[e+28>>2>>>0]=r,a()[e>>2>>>0]=t.getSeconds(),a()[e+4>>2>>>0]=t.getMinutes(),a()[e+8>>2>>>0]=t.getHours(),a()[e+12>>2>>>0]=t.getDate(),a()[e+16>>2>>>0]=t.getMonth(),a()[e+20>>2>>>0]=t.getYear(),e=t.getTime()/1e3,wt((J=e,1<=+Math.abs(J)?0<J?+Math.floor(J/4294967296)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)),e>>>0},r:Ge,s:Ne,z:function(e,t,r){function n(e){return(e=e.toTimeString().match(/\\\\(([A-Za-z ]+)\\\\)$/))?e[1]:\"GMT\"}e>>>=0,t>>>=0,r>>>=0;var i=(new Date).getFullYear(),s=new Date(i,0,1),u=new Date(i,6,1);i=s.getTimezoneOffset();var c=u.getTimezoneOffset(),l=Math.max(i,c);o()[e>>2>>>0]=60*l,a()[t>>2>>>0]=Number(i!=c),e=n(s),t=n(u),e=Be(e),t=Be(t),c<i?(o()[r>>2>>>0]=e,o()[r+4>>2>>>0]=t):(o()[r>>2>>>0]=t,o()[r+4>>2>>>0]=e)},c:()=>{te(\"\")},l:function(){},i:function(){return Date.now()},V:()=>{throw $+=1,\"unwind\"},B:function(){return 4294901760},e:()=>performance.timeOrigin+performance.now(),f:function(){return v?r(993).cpus().length:navigator.hardwareConcurrency},K:function(e,t,r,n){for(ge.pb=t>>>0,Je.length=r,t=n>>>0>>3,n=0;n<r;n++)Je[n]=i()[t+n>>>0];return lt[e].apply(null,Je)},y:function(e){e>>>=0;var t=n().length;if(e<=t||4294901760<e)return!1;for(var r=1;4>=r;r*=2){var a=t*(1+.2/r);a=Math.min(a,e+100663296);var o=Math;a=Math.max(e,a);e:{o=o.min.call(o,4294901760,a+(65536-a%65536)%65536)-k.buffer.byteLength+65535>>>16;try{k.grow(o),Y();var i=1;break e}catch(e){}i=void 0}if(i)return!0}return!1},O:Ze,P:Qe,j:pe,g:et,n:tt,w:rt,m:at,x:function(e,t){return e>>>=0,t>>>=0,ot(n().subarray(e>>>0,e+t>>>0)),0},a:k||c.wasmMemory,H:ct,d:function(e,t,r,n){return ct(e>>>0,t>>>0,r>>>0,n>>>0)}};!function(){function e(e,t){return e=e.exports,C=e=function(e){var t=e=>()=>e()>>>0,r=e=>t=>e(t)>>>0;return(e=Object.assign({},e)).__errno_location=t(e.__errno_location),e.pthread_self=t(e.pthread_self),e.malloc=r(e.malloc),e.stackSave=t(e.stackSave),e.stackAlloc=r(e.stackAlloc),e}(e),ge.Ta.push(C.sa),z=C.ta,N.unshift(C.W),P=t,ee(),e}var t={a:ft};if(Q(),c.instantiateWasm)try{return c.instantiateWasm(t,e)}catch(e){R(\"Module.instantiateWasm callback failed with error: \"+e),u(e)}(function(e,t){var r=V;return T||\"function\"!=typeof WebAssembly.instantiateStreaming||re(r)||r.startsWith(\"file://\")||v||\"function\"!=typeof fetch?ae(r,e,t):fetch(r,{credentials:\"same-origin\"}).then((n=>WebAssembly.instantiateStreaming(n,e).then(t,(function(n){return R(\"wasm streaming compile failed: \"+n),R(\"falling back to ArrayBuffer instantiation\"),ae(r,e,t)}))))})(t,(function(t){e(t.instance,t.module)})).catch(u)}(),c._OrtInit=(e,t)=>(c._OrtInit=C.X)(e,t),c._OrtGetLastError=(e,t)=>(c._OrtGetLastError=C.Y)(e,t),c._OrtCreateSessionOptions=(e,t,r,n,a,o,i,s,u,l)=>(c._OrtCreateSessionOptions=C.Z)(e,t,r,n,a,o,i,s,u,l),c._OrtAppendExecutionProvider=(e,t)=>(c._OrtAppendExecutionProvider=C._)(e,t),c._OrtAddSessionConfigEntry=(e,t,r)=>(c._OrtAddSessionConfigEntry=C.$)(e,t,r),c._OrtReleaseSessionOptions=e=>(c._OrtReleaseSessionOptions=C.aa)(e),c._OrtCreateSession=(e,t,r)=>(c._OrtCreateSession=C.ba)(e,t,r),c._OrtReleaseSession=e=>(c._OrtReleaseSession=C.ca)(e),c._OrtGetInputOutputCount=(e,t,r)=>(c._OrtGetInputOutputCount=C.da)(e,t,r),c._OrtGetInputName=(e,t)=>(c._OrtGetInputName=C.ea)(e,t),c._OrtGetOutputName=(e,t)=>(c._OrtGetOutputName=C.fa)(e,t),c._OrtFree=e=>(c._OrtFree=C.ga)(e),c._OrtCreateTensor=(e,t,r,n,a)=>(c._OrtCreateTensor=C.ha)(e,t,r,n,a),c._OrtGetTensorData=(e,t,r,n,a)=>(c._OrtGetTensorData=C.ia)(e,t,r,n,a),c._OrtReleaseTensor=e=>(c._OrtReleaseTensor=C.ja)(e),c._OrtCreateRunOptions=(e,t,r,n)=>(c._OrtCreateRunOptions=C.ka)(e,t,r,n),c._OrtAddRunConfigEntry=(e,t,r)=>(c._OrtAddRunConfigEntry=C.la)(e,t,r),c._OrtReleaseRunOptions=e=>(c._OrtReleaseRunOptions=C.ma)(e),c._OrtRun=(e,t,r,n,a,o,i,s)=>(c._OrtRun=C.na)(e,t,r,n,a,o,i,s),c._OrtEndProfiling=e=>(c._OrtEndProfiling=C.oa)(e);var dt=c._pthread_self=()=>(dt=c._pthread_self=C.pa)(),pt=c._malloc=e=>(pt=c._malloc=C.qa)(e);c._free=e=>(c._free=C.ra)(e),c.__emscripten_tls_init=()=>(c.__emscripten_tls_init=C.sa)();var gt=c.__emscripten_thread_init=(e,t,r,n,a,o)=>(gt=c.__emscripten_thread_init=C.ua)(e,t,r,n,a,o);c.__emscripten_thread_crashed=()=>(c.__emscripten_thread_crashed=C.va)();var ht,mt=(e,t,r,n)=>(mt=C.wa)(e,t,r,n),yt=e=>(yt=C.xa)(e),vt=c.__emscripten_thread_exit=e=>(vt=c.__emscripten_thread_exit=C.ya)(e),bt=c.__emscripten_check_mailbox=()=>(bt=c.__emscripten_check_mailbox=C.za)(),wt=e=>(wt=C.Aa)(e),_t=(e,t)=>(_t=C.Ba)(e,t),Ot=()=>(Ot=C.Ca)(),St=e=>(St=C.Da)(e),Et=e=>(Et=C.Ea)(e);function At(){function e(){if(!ht&&(ht=!0,c.calledRun=!0,!H)&&(b||he(N),s(c),c.onRuntimeInitialized&&c.onRuntimeInitialized(),!b)){if(c.postRun)for(\"function\"==typeof c.postRun&&(c.postRun=[c.postRun]);c.postRun.length;){var e=c.postRun.shift();B.unshift(e)}he(B)}}if(!(0<X))if(b)s(c),b||he(N),startWorker(c);else{if(c.preRun)for(\"function\"==typeof c.preRun&&(c.preRun=[c.preRun]);c.preRun.length;)G.unshift(c.preRun.shift());he(G),0<X||(c.setStatus?(c.setStatus(\"Running...\"),setTimeout((function(){setTimeout((function(){c.setStatus(\"\")}),1),e()}),1)):e())}}if(c.keepRuntimeAlive=q,c.wasmMemory=k,c.stackAlloc=Et,c.stackSave=Ot,c.stackRestore=St,c.UTF8ToString=fe,c.stringToUTF8=Ae,c.lengthBytesUTF8=Se,c.ExitStatus=oe,c.PThread=ge,Z=function e(){ht||At(),ht||(Z=e)},c.preInit)for(\"function\"==typeof c.preInit&&(c.preInit=[c.preInit]);0<c.preInit.length;)c.preInit.pop()();return At(),e.ready});e.exports=n},932:(e,t,r)=>{var _scriptDir,n=(_scriptDir=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0,\"undefined\"!=typeof __filename&&(_scriptDir=_scriptDir||__filename),function(e={}){var t,n,a=e;a.ready=new Promise(((e,r)=>{t=e,n=r}));var o,i,s,u=Object.assign({},a),c=\"./this.program\",l=(e,t)=>{throw t},f=\"object\"==typeof window,d=\"function\"==typeof importScripts,p=\"object\"==typeof process&&\"object\"==typeof process.versions&&\"string\"==typeof process.versions.node,g=\"\";if(p){var h=r(384),m=r(908);g=d?m.dirname(g)+\"/\":__dirname+\"/\",o=(e,t)=>(e=e.startsWith(\"file://\")?new URL(e):m.normalize(e),h.readFileSync(e,t?void 0:\"utf8\")),s=e=>((e=o(e,!0)).buffer||(e=new Uint8Array(e)),e),i=(e,t,r,n=!0)=>{e=e.startsWith(\"file://\")?new URL(e):m.normalize(e),h.readFile(e,n?void 0:\"utf8\",((e,a)=>{e?r(e):t(n?a.buffer:a)}))},!a.thisProgram&&1<process.argv.length&&(c=process.argv[1].replace(/\\\\\\\\/g,\"/\")),process.argv.slice(2),l=(e,t)=>{throw process.exitCode=e,t},a.inspect=()=>\"[Emscripten Module object]\"}else(f||d)&&(d?g=self.location.href:\"undefined\"!=typeof document&&document.currentScript&&(g=document.currentScript.src),_scriptDir&&(g=_scriptDir),g=0!==g.indexOf(\"blob:\")?g.substr(0,g.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1):\"\",o=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.send(null),t.responseText},d&&(s=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.responseType=\"arraybuffer\",t.send(null),new Uint8Array(t.response)}),i=(e,t,r)=>{var n=new XMLHttpRequest;n.open(\"GET\",e,!0),n.responseType=\"arraybuffer\",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var y,v=a.print||console.log.bind(console),b=a.printErr||console.error.bind(console);Object.assign(a,u),u=null,a.thisProgram&&(c=a.thisProgram),a.quit&&(l=a.quit),a.wasmBinary&&(y=a.wasmBinary);var w=a.noExitRuntime||!0;\"object\"!=typeof WebAssembly&&W(\"no native wasm support detected\");var _,O,S,E,A,T,M=!1;function R(){var e=_.buffer;a.HEAP8=S=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=A=new Int32Array(e),a.HEAPU8=E=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=T=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}var F=[],k=[],C=[];function P(){var e=a.preRun.shift();F.unshift(e)}var D,x,I=0,U=null,L=null;function W(e){throw a.onAbort&&a.onAbort(e),b(e=\"Aborted(\"+e+\")\"),M=!0,e=new WebAssembly.RuntimeError(e+\". Build with -sASSERTIONS for more info.\"),n(e),e}function H(e){return e.startsWith(\"data:application/octet-stream;base64,\")}if(!H(D=\"ort-wasm.wasm\")){var Y=D;D=a.locateFile?a.locateFile(Y,g):g+Y}function j(e){if(e==D&&y)return new Uint8Array(y);if(s)return s(e);throw\"both async and sync fetching of the wasm failed\"}function z(e,t,r){return function(e){if(!y&&(f||d)){if(\"function\"==typeof fetch&&!e.startsWith(\"file://\"))return fetch(e,{credentials:\"same-origin\"}).then((t=>{if(!t.ok)throw\"failed to load wasm binary file at \\'\"+e+\"\\'\";return t.arrayBuffer()})).catch((()=>j(e)));if(i)return new Promise(((t,r)=>{i(e,(e=>t(new Uint8Array(e))),r)}))}return Promise.resolve().then((()=>j(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{b(\"failed to asynchronously prepare wasm: \"+e),W(e)}))}function G(e){this.name=\"ExitStatus\",this.message=`Program terminated with exit(${e})`,this.status=e}var N=e=>{for(;0<e.length;)e.shift()(a)};function B(e){this.qa=e-24,this.va=function(e){T[this.qa+4>>2>>>0]=e},this.ua=function(e){T[this.qa+8>>2>>>0]=e},this.sa=function(e,t){this.ta(),this.va(e),this.ua(t)},this.ta=function(){T[this.qa+16>>2>>>0]=0}}var $,q=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0,V=(e,t,r)=>{var n=(t>>>=0)+r;for(r=t;e[r]&&!(r>=n);)++r;if(16<r-t&&e.buffer&&q)return q.decode(e.subarray(t,r));for(n=\"\";t<r;){var a=e[t++];if(128&a){var o=63&e[t++];if(192==(224&a))n+=String.fromCharCode((31&a)<<6|o);else{var i=63&e[t++];65536>(a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&e[t++])?n+=String.fromCharCode(a):(a-=65536,n+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else n+=String.fromCharCode(a)}return n},J=(e,t)=>(e>>>=0)?V(E,e,t):\"\",X=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);127>=n?t++:2047>=n?t+=2:55296<=n&&57343>=n?(t+=4,++r):t+=3}return t},K=(e,t,r,n)=>{if(!(0<n))return 0;var a=r>>>=0;n=r+n-1;for(var o=0;o<e.length;++o){var i=e.charCodeAt(o);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++o)),127>=i){if(r>=n)break;t[r++>>>0]=i}else{if(2047>=i){if(r+1>=n)break;t[r++>>>0]=192|i>>6}else{if(65535>=i){if(r+2>=n)break;t[r++>>>0]=224|i>>12}else{if(r+3>=n)break;t[r++>>>0]=240|i>>18,t[r++>>>0]=128|i>>12&63}t[r++>>>0]=128|i>>6&63}t[r++>>>0]=128|63&i}}return t[r>>>0]=0,r-a},Z=e=>0==e%4&&(0!=e%100||0==e%400),Q=[0,31,60,91,121,152,182,213,244,274,305,335],ee=[0,31,59,90,120,151,181,212,243,273,304,334],te=e=>{var t=X(e)+1,r=le(t);return r&&K(e,E,r,t),r},re={},ne=()=>{if(!$){var e,t={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:c||\"./this.program\"};for(e in re)void 0===re[e]?delete t[e]:t[e]=re[e];var r=[];for(e in t)r.push(`${e}=${t[e]}`);$=r}return $},ae=[null,[],[]],oe=e=>(oe=(()=>{if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);if(p)try{var e=r(760);if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}W(\"initRandomDevice\")})())(e),ie=[31,29,31,30,31,30,31,31,30,31,30,31],se=[31,28,31,30,31,30,31,31,30,31,30,31];function ue(e,t,r,n){function a(e,t,r){for(e=\"number\"==typeof e?e.toString():e||\"\";e.length<t;)e=r[0]+e;return e}function o(e,t){return a(e,t,\"0\")}function i(e,t){function r(e){return 0>e?-1:0<e?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function s(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function u(e){var t=e.ma;for(e=new Date(new Date(e.na+1900,0,1).getTime());0<t;){var r=e.getMonth(),n=(Z(e.getFullYear())?ie:se)[r];if(!(t>n-e.getDate())){e.setDate(e.getDate()+t);break}t-=n-e.getDate()+1,e.setDate(1),11>r?e.setMonth(r+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return r=new Date(e.getFullYear()+1,0,4),t=s(new Date(e.getFullYear(),0,4)),r=s(r),0>=i(t,e)?0>=i(r,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}e>>>=0,t>>>=0,r>>>=0;var c=A[40+(n>>>=0)>>2>>>0];for(var l in n={ya:A[n>>2>>>0],xa:A[n+4>>2>>>0],oa:A[n+8>>2>>>0],ra:A[n+12>>2>>>0],pa:A[n+16>>2>>>0],na:A[n+20>>2>>>0],ha:A[n+24>>2>>>0],ma:A[n+28>>2>>>0],Aa:A[n+32>>2>>>0],wa:A[n+36>>2>>>0],za:c?J(c):\"\"},r=J(r),c={\"%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\"})r=r.replace(new RegExp(l,\"g\"),c[l]);var f=\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),d=\"January February March April May June July August September October November December\".split(\" \");for(l in c={\"%a\":e=>f[e.ha].substring(0,3),\"%A\":e=>f[e.ha],\"%b\":e=>d[e.pa].substring(0,3),\"%B\":e=>d[e.pa],\"%C\":e=>o((e.na+1900)/100|0,2),\"%d\":e=>o(e.ra,2),\"%e\":e=>a(e.ra,2,\" \"),\"%g\":e=>u(e).toString().substring(2),\"%G\":e=>u(e),\"%H\":e=>o(e.oa,2),\"%I\":e=>(0==(e=e.oa)?e=12:12<e&&(e-=12),o(e,2)),\"%j\":e=>{for(var t=0,r=0;r<=e.pa-1;t+=(Z(e.na+1900)?ie:se)[r++]);return o(e.ra+t,3)},\"%m\":e=>o(e.pa+1,2),\"%M\":e=>o(e.xa,2),\"%n\":()=>\"\\\\n\",\"%p\":e=>0<=e.oa&&12>e.oa?\"AM\":\"PM\",\"%S\":e=>o(e.ya,2),\"%t\":()=>\"\\\\t\",\"%u\":e=>e.ha||7,\"%U\":e=>o(Math.floor((e.ma+7-e.ha)/7),2),\"%V\":e=>{var t=Math.floor((e.ma+7-(e.ha+6)%7)/7);if(2>=(e.ha+371-e.ma-2)%7&&t++,t)53==t&&(4==(r=(e.ha+371-e.ma)%7)||3==r&&Z(e.na)||(t=1));else{t=52;var r=(e.ha+7-e.ma-1)%7;(4==r||5==r&&Z(e.na%400-1))&&t++}return o(t,2)},\"%w\":e=>e.ha,\"%W\":e=>o(Math.floor((e.ma+7-(e.ha+6)%7)/7),2),\"%y\":e=>(e.na+1900).toString().substring(2),\"%Y\":e=>e.na+1900,\"%z\":e=>{var t=0<=(e=e.wa);return e=Math.abs(e)/60,(t?\"+\":\"-\")+String(\"0000\"+(e/60*100+e%60)).slice(-4)},\"%Z\":e=>e.za,\"%%\":()=>\"%\"},r=r.replace(/%%/g,\"\\\\0\\\\0\"),c)r.includes(l)&&(r=r.replace(new RegExp(l,\"g\"),c[l](n)));return l=function(e){var t=Array(X(e)+1);return K(e,t,0,t.length),t}(r=r.replace(/\\\\0\\\\0/g,\"%\")),l.length>t?0:(S.set(l,e>>>0),l.length-1)}var ce={a:function(e,t,r){throw new B(e>>>=0).sa(t>>>0,r>>>0),e},e:function(){return 0},I:function(){},y:function(){},A:function(){},K:function(){return 0},G:function(){},B:function(){},F:function(){},g:function(){},z:function(){},w:function(){},H:function(){},x:function(){},k:()=>!0,n:function(e,t,r){e=t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN,r>>>=0,e=new Date(1e3*e),A[r>>2>>>0]=e.getUTCSeconds(),A[r+4>>2>>>0]=e.getUTCMinutes(),A[r+8>>2>>>0]=e.getUTCHours(),A[r+12>>2>>>0]=e.getUTCDate(),A[r+16>>2>>>0]=e.getUTCMonth(),A[r+20>>2>>>0]=e.getUTCFullYear()-1900,A[r+24>>2>>>0]=e.getUTCDay(),A[r+28>>2>>>0]=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},o:function(e,t,r){e=t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN,r>>>=0,e=new Date(1e3*e),A[r>>2>>>0]=e.getSeconds(),A[r+4>>2>>>0]=e.getMinutes(),A[r+8>>2>>>0]=e.getHours(),A[r+12>>2>>>0]=e.getDate(),A[r+16>>2>>>0]=e.getMonth(),A[r+20>>2>>>0]=e.getFullYear()-1900,A[r+24>>2>>>0]=e.getDay(),A[r+28>>2>>>0]=(Z(e.getFullYear())?Q:ee)[e.getMonth()]+e.getDate()-1|0,A[r+36>>2>>>0]=-60*e.getTimezoneOffset(),t=new Date(e.getFullYear(),6,1).getTimezoneOffset();var n=new Date(e.getFullYear(),0,1).getTimezoneOffset();A[r+32>>2>>>0]=0|(t!=n&&e.getTimezoneOffset()==Math.min(n,t))},p:function(e){e>>>=0;var t=new Date(A[e+20>>2>>>0]+1900,A[e+16>>2>>>0],A[e+12>>2>>>0],A[e+8>>2>>>0],A[e+4>>2>>>0],A[e>>2>>>0],0),r=A[e+32>>2>>>0],n=t.getTimezoneOffset(),a=new Date(t.getFullYear(),6,1).getTimezoneOffset(),o=new Date(t.getFullYear(),0,1).getTimezoneOffset(),i=Math.min(o,a);return 0>r?A[e+32>>2>>>0]=Number(a!=o&&i==n):0<r!=(i==n)&&(a=Math.max(o,a),t.setTime(t.getTime()+6e4*((0<r?i:a)-n))),A[e+24>>2>>>0]=t.getDay(),A[e+28>>2>>>0]=(Z(t.getFullYear())?Q:ee)[t.getMonth()]+t.getDate()-1|0,A[e>>2>>>0]=t.getSeconds(),A[e+4>>2>>>0]=t.getMinutes(),A[e+8>>2>>>0]=t.getHours(),A[e+12>>2>>>0]=t.getDate(),A[e+16>>2>>>0]=t.getMonth(),A[e+20>>2>>>0]=t.getYear(),e=t.getTime()/1e3,de((x=e,1<=+Math.abs(x)?0<x?+Math.floor(x/4294967296)>>>0:~~+Math.ceil((x-+(~~x>>>0))/4294967296)>>>0:0)),e>>>0},l:function(){return-52},m:function(){},u:function(e,t,r){function n(e){return(e=e.toTimeString().match(/\\\\(([A-Za-z ]+)\\\\)$/))?e[1]:\"GMT\"}r>>>=0;var a=(new Date).getFullYear(),o=new Date(a,0,1),i=new Date(a,6,1);a=o.getTimezoneOffset();var s=i.getTimezoneOffset();T[e>>>0>>2>>>0]=60*Math.max(a,s),A[t>>>0>>2>>>0]=Number(a!=s),e=n(o),t=n(i),e=te(e),t=te(t),s<a?(T[r>>2>>>0]=e,T[r+4>>2>>>0]=t):(T[r>>2>>>0]=t,T[r+4>>2>>>0]=e)},d:()=>{W(\"\")},h:function(){return Date.now()},v:function(){return 4294901760},b:()=>performance.now(),J:function(e,t,r){return t>>>=0,E.copyWithin(e>>>0>>>0,t>>>0,t+(r>>>0)>>>0)},t:function(e){e>>>=0;var t=E.length;if(4294901760<e)return!1;for(var r=1;4>=r;r*=2){var n=t*(1+.2/r);n=Math.min(n,e+100663296);var a=Math;n=Math.max(e,n);e:{a=a.min.call(a,4294901760,n+(65536-n%65536)%65536)-_.buffer.byteLength+65535>>>16;try{_.grow(a),R();var o=1;break e}catch(e){}o=void 0}if(o)return!0}return!1},D:function(e,t){e>>>=0,t>>>=0;var r=0;return ne().forEach((function(n,a){var o=t+r;for(a=T[e+4*a>>2>>>0]=o,o=0;o<n.length;++o)S[a++>>0>>>0]=n.charCodeAt(o);S[a>>0>>>0]=0,r+=n.length+1})),0},E:function(e,t){e>>>=0,t>>>=0;var r=ne();T[e>>2>>>0]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),T[t>>2>>>0]=n,0},s:e=>{w||(a.onExit&&a.onExit(e),M=!0),l(e,new G(e))},f:()=>52,j:function(){return 52},q:function(){return 70},i:function(e,t,r,n){t>>>=0,r>>>=0,n>>>=0;for(var a=0,o=0;o<r;o++){var i=T[t>>2>>>0],s=T[t+4>>2>>>0];t+=8;for(var u=0;u<s;u++){var c=E[i+u>>>0],l=ae[e];0===c||10===c?((1===e?v:b)(V(l,0)),l.length=0):l.push(c)}a+=s}return T[n>>2>>>0]=a,0},r:function(e,t){return e>>>=0,oe(E.subarray(e>>>0,e+(t>>>0)>>>0)),0},C:ue,c:function(e,t,r,n){return ue(e>>>0,t>>>0,r>>>0,n>>>0)}};!function(){function e(e){if(e=e.exports,O=e=function(e){var t=e=>()=>e()>>>0,r=e=>t=>e(t)>>>0;return(e=Object.assign({},e)).__errno_location=t(e.__errno_location),e.malloc=r(e.malloc),e.stackSave=t(e.stackSave),e.stackAlloc=r(e.stackAlloc),e}(e),_=O.L,R(),k.unshift(O.M),I--,a.monitorRunDependencies&&a.monitorRunDependencies(I),0==I&&(null!==U&&(clearInterval(U),U=null),L)){var t=L;L=null,t()}return e}var t={a:ce};if(I++,a.monitorRunDependencies&&a.monitorRunDependencies(I),a.instantiateWasm)try{return a.instantiateWasm(t,e)}catch(e){b(\"Module.instantiateWasm callback failed with error: \"+e),n(e)}(function(e,t){var r=D;return y||\"function\"!=typeof WebAssembly.instantiateStreaming||H(r)||r.startsWith(\"file://\")||p||\"function\"!=typeof fetch?z(r,e,t):fetch(r,{credentials:\"same-origin\"}).then((n=>WebAssembly.instantiateStreaming(n,e).then(t,(function(n){return b(\"wasm streaming compile failed: \"+n),b(\"falling back to ArrayBuffer instantiation\"),z(r,e,t)}))))})(t,(function(t){e(t.instance)})).catch(n)}(),a._OrtInit=(e,t)=>(a._OrtInit=O.N)(e,t),a._OrtGetLastError=(e,t)=>(a._OrtGetLastError=O.O)(e,t),a._OrtCreateSessionOptions=(e,t,r,n,o,i,s,u,c,l)=>(a._OrtCreateSessionOptions=O.P)(e,t,r,n,o,i,s,u,c,l),a._OrtAppendExecutionProvider=(e,t)=>(a._OrtAppendExecutionProvider=O.Q)(e,t),a._OrtAddSessionConfigEntry=(e,t,r)=>(a._OrtAddSessionConfigEntry=O.R)(e,t,r),a._OrtReleaseSessionOptions=e=>(a._OrtReleaseSessionOptions=O.S)(e),a._OrtCreateSession=(e,t,r)=>(a._OrtCreateSession=O.T)(e,t,r),a._OrtReleaseSession=e=>(a._OrtReleaseSession=O.U)(e),a._OrtGetInputOutputCount=(e,t,r)=>(a._OrtGetInputOutputCount=O.V)(e,t,r),a._OrtGetInputName=(e,t)=>(a._OrtGetInputName=O.W)(e,t),a._OrtGetOutputName=(e,t)=>(a._OrtGetOutputName=O.X)(e,t),a._OrtFree=e=>(a._OrtFree=O.Y)(e),a._OrtCreateTensor=(e,t,r,n,o)=>(a._OrtCreateTensor=O.Z)(e,t,r,n,o),a._OrtGetTensorData=(e,t,r,n,o)=>(a._OrtGetTensorData=O._)(e,t,r,n,o),a._OrtReleaseTensor=e=>(a._OrtReleaseTensor=O.$)(e),a._OrtCreateRunOptions=(e,t,r,n)=>(a._OrtCreateRunOptions=O.aa)(e,t,r,n),a._OrtAddRunConfigEntry=(e,t,r)=>(a._OrtAddRunConfigEntry=O.ba)(e,t,r),a._OrtReleaseRunOptions=e=>(a._OrtReleaseRunOptions=O.ca)(e),a._OrtRun=(e,t,r,n,o,i,s,u)=>(a._OrtRun=O.da)(e,t,r,n,o,i,s,u),a._OrtEndProfiling=e=>(a._OrtEndProfiling=O.ea)(e);var le=a._malloc=e=>(le=a._malloc=O.fa)(e);a._free=e=>(a._free=O.ga)(e);var fe,de=e=>(de=O.ia)(e),pe=()=>(pe=O.ja)(),ge=e=>(ge=O.ka)(e),he=e=>(he=O.la)(e);function me(){function e(){if(!fe&&(fe=!0,a.calledRun=!0,!M)){if(N(k),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(\"function\"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;){var e=a.postRun.shift();C.unshift(e)}N(C)}}if(!(0<I)){if(a.preRun)for(\"function\"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)P();N(F),0<I||(a.setStatus?(a.setStatus(\"Running...\"),setTimeout((function(){setTimeout((function(){a.setStatus(\"\")}),1),e()}),1)):e())}}if(a.stackAlloc=he,a.stackSave=pe,a.stackRestore=ge,a.UTF8ToString=J,a.stringToUTF8=(e,t,r)=>K(e,E,t,r),a.lengthBytesUTF8=X,L=function e(){fe||me(),fe||(L=e)},a.preInit)for(\"function\"==typeof a.preInit&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();return me(),e.ready});e.exports=n},154:e=>{\"use strict\";e.exports=\\'\"use strict\";var e={},a=\"object\"==typeof process&&\"object\"==typeof process.versions&&\"string\"==typeof process.versions.node;if(a){var r=require(\"worker_threads\"),t=r.parentPort;t.on(\"message\",(e=>onmessage({data:e})));var s=require(\"fs\");Object.assign(global,{self:global,require:require,Module:e,location:{href:__filename},Worker:r.Worker,importScripts:e=>(0,eval)(s.readFileSync(e,\"utf8\")+\"//# sourceURL=\"+e),postMessage:e=>t.postMessage(e),performance:global.performance||{now:Date.now}})}var o=!1,d=function(){var e=Array.prototype.slice.call(arguments).join(\" \");a?s.writeSync(2,e+\"\\\\\\\\n\"):console.error(e)};self.alert=function(){var a=Array.prototype.slice.call(arguments).join(\" \");postMessage({cmd:\"alert\",text:a,threadId:e._pthread_self()})},e.instantiateWasm=(a,r)=>{var t=e.wasmModule;return e.wasmModule=null,r(new WebAssembly.Instance(t,a))},self.onunhandledrejection=e=>{throw e.reason??e},self.onmessage=function a(r){try{if(\"load\"===r.data.cmd){let s=[];self.onmessage=e=>s.push(e),self.startWorker=r=>{e=r,postMessage({cmd:\"loaded\"});for(let e of s)a(e);self.onmessage=a},e.wasmModule=r.data.wasmModule;for(const a of r.data.handlers)e[a]=(...e)=>{postMessage({cmd:\"callHandler\",handler:a,args:e})};if(e.wasmMemory=r.data.wasmMemory,e.buffer=e.wasmMemory.buffer,e.ENVIRONMENT_IS_PTHREAD=!0,\"string\"==typeof r.data.urlOrBlob)importScripts(r.data.urlOrBlob);else{var t=URL.createObjectURL(r.data.urlOrBlob);importScripts(t),URL.revokeObjectURL(t)}ortWasmThreaded(e)}else if(\"run\"===r.data.cmd){e.__emscripten_thread_init(r.data.pthread_ptr,0,0,1),e.__emscripten_thread_mailbox_await(r.data.pthread_ptr),e.establishStackSpace(),e.PThread.receiveObjectTransfer(r.data),e.PThread.threadInitTLS(),o||(o=!0);try{e.invokeEntryPoint(r.data.start_routine,r.data.arg)}catch(e){if(\"unwind\"!=e)throw e}}else\"cancel\"===r.data.cmd?e._pthread_self()&&e.__emscripten_thread_exit(-1):\"setimmediate\"===r.data.target||(\"checkMailbox\"===r.data.cmd?o&&e.checkMailbox():r.data.cmd&&(d(\"worker.js received unknown command \"+r.data.cmd),d(r.data)))}catch(a){throw e.__emscripten_thread_crashed&&e.__emscripten_thread_crashed(),a}};\\\\n\\'},760:()=>{},384:()=>{},993:()=>{},908:()=>{},953:()=>{},925:()=>{},449:()=>{}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(()=>{\"use strict\";const e=r(259),t=r(263);self.onmessage=r=>{switch(r.data.type){case\"init-wasm\":try{(0,t.initializeWebAssembly)(r.data.in).then((()=>postMessage({type:\"init-wasm\"})),(e=>postMessage({type:\"init-wasm\",err:e})))}catch(e){postMessage({type:\"init-wasm\",err:e})}break;case\"init-ort\":try{(0,e.initRuntime)(r.data.in).then((()=>postMessage({type:\"init-ort\"})),(e=>postMessage({type:\"init-ort\",err:e}))),postMessage({type:\"init-ort\"})}catch(e){postMessage({type:\"init-ort\",err:e})}break;case\"create_allocate\":try{const{model:t}=r.data.in,n=(0,e.createSessionAllocate)(t);postMessage({type:\"create_allocate\",out:n})}catch(e){postMessage({type:\"create_allocate\",err:e})}break;case\"create_finalize\":try{const{modeldata:t,options:n}=r.data.in,a=(0,e.createSessionFinalize)(t,n);postMessage({type:\"create_finalize\",out:a})}catch(e){postMessage({type:\"create_finalize\",err:e})}break;case\"create\":try{const{model:t,options:n}=r.data.in,a=(0,e.createSession)(t,n);postMessage({type:\"create\",out:a})}catch(e){postMessage({type:\"create\",err:e})}break;case\"release\":try{const t=r.data.in;(0,e.releaseSession)(t),postMessage({type:\"release\"})}catch(e){postMessage({type:\"release\",err:e})}break;case\"run\":try{const{sessionId:t,inputIndices:n,inputs:a,outputIndices:o,options:i}=r.data.in;(0,e.run)(t,n,a,o,i).then((t=>{postMessage({type:\"run\",out:t},(0,e.extractTransferableBuffers)(t))}),(e=>{postMessage({type:\"run\",err:e})}))}catch(e){postMessage({type:\"run\",err:e})}break;case\"end-profiling\":try{const t=r.data.in;(0,e.endProfiling)(t),postMessage({type:\"end-profiling\"})}catch(e){postMessage({type:\"end-profiling\",err:e})}}}})()})();\\n',\"Worker\",void 0,void 0)}},6614:function(t){\"use strict\";t.exports=function(t,e,r,n){var i=self||window;try{try{var o;try{o=new i.Blob([t])}catch(e){(o=new(i.BlobBuilder||i.WebKitBlobBuilder||i.MozBlobBuilder||i.MSBlobBuilder)).append(t),o=o.getBlob()}var a=i.URL||i.webkitURL,s=a.createObjectURL(o),u=new i[e](s,r);return a.revokeObjectURL(s),u}catch(n){return new i[e](\"data:application/javascript,\".concat(encodeURIComponent(t)),r)}}catch(t){if(!n)throw Error(\"Inline worker is not supported\");return new i[e](n,r)}}},2446:function(t,e,r){\"use strict\";var n,i,o,a=r(2100),s=a.Reader,u=a.Writer,c=a.util,l=a.roots.default||(a.roots.default={});l.onnx=((o={}).Version=(n={},(i=Object.create(n))[n[0]=\"_START_VERSION\"]=0,i[n[1]=\"IR_VERSION_2017_10_10\"]=1,i[n[2]=\"IR_VERSION_2017_10_30\"]=2,i[n[3]=\"IR_VERSION_2017_11_3\"]=3,i[n[4]=\"IR_VERSION_2019_1_22\"]=4,i[n[5]=\"IR_VERSION_2019_3_18\"]=5,i[n[6]=\"IR_VERSION_2019_9_19\"]=6,i[n[7]=\"IR_VERSION_2020_5_8\"]=7,i[n[8]=\"IR_VERSION_2021_7_30\"]=8,i[n[9]=\"IR_VERSION\"]=9,i),o.AttributeProto=function(){function t(t){if(this.floats=[],this.ints=[],this.strings=[],this.tensors=[],this.graphs=[],this.sparseTensors=[],this.typeProtos=[],t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.name=\"\",t.prototype.refAttrName=\"\",t.prototype.docString=\"\",t.prototype.type=0,t.prototype.f=0,t.prototype.i=c.Long?c.Long.fromBits(0,0,!1):0,t.prototype.s=c.newBuffer([]),t.prototype.t=null,t.prototype.g=null,t.prototype.sparseTensor=null,t.prototype.tp=null,t.prototype.floats=c.emptyArray,t.prototype.ints=c.emptyArray,t.prototype.strings=c.emptyArray,t.prototype.tensors=c.emptyArray,t.prototype.graphs=c.emptyArray,t.prototype.sparseTensors=c.emptyArray,t.prototype.typeProtos=c.emptyArray,t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=u.create()),null!=t.name&&Object.hasOwnProperty.call(t,\"name\")&&e.uint32(10).string(t.name),null!=t.f&&Object.hasOwnProperty.call(t,\"f\")&&e.uint32(21).float(t.f),null!=t.i&&Object.hasOwnProperty.call(t,\"i\")&&e.uint32(24).int64(t.i),null!=t.s&&Object.hasOwnProperty.call(t,\"s\")&&e.uint32(34).bytes(t.s),null!=t.t&&Object.hasOwnProperty.call(t,\"t\")&&l.onnx.TensorProto.encode(t.t,e.uint32(42).fork()).ldelim(),null!=t.g&&Object.hasOwnProperty.call(t,\"g\")&&l.onnx.GraphProto.encode(t.g,e.uint32(50).fork()).ldelim(),null!=t.floats&&t.floats.length){e.uint32(58).fork();for(var r=0;r<t.floats.length;++r)e.float(t.floats[r]);e.ldelim()}if(null!=t.ints&&t.ints.length){for(e.uint32(66).fork(),r=0;r<t.ints.length;++r)e.int64(t.ints[r]);e.ldelim()}if(null!=t.strings&&t.strings.length)for(r=0;r<t.strings.length;++r)e.uint32(74).bytes(t.strings[r]);if(null!=t.tensors&&t.tensors.length)for(r=0;r<t.tensors.length;++r)l.onnx.TensorProto.encode(t.tensors[r],e.uint32(82).fork()).ldelim();if(null!=t.graphs&&t.graphs.length)for(r=0;r<t.graphs.length;++r)l.onnx.GraphProto.encode(t.graphs[r],e.uint32(90).fork()).ldelim();if(null!=t.docString&&Object.hasOwnProperty.call(t,\"docString\")&&e.uint32(106).string(t.docString),null!=t.tp&&Object.hasOwnProperty.call(t,\"tp\")&&l.onnx.TypeProto.encode(t.tp,e.uint32(114).fork()).ldelim(),null!=t.typeProtos&&t.typeProtos.length)for(r=0;r<t.typeProtos.length;++r)l.onnx.TypeProto.encode(t.typeProtos[r],e.uint32(122).fork()).ldelim();if(null!=t.type&&Object.hasOwnProperty.call(t,\"type\")&&e.uint32(160).int32(t.type),null!=t.refAttrName&&Object.hasOwnProperty.call(t,\"refAttrName\")&&e.uint32(170).string(t.refAttrName),null!=t.sparseTensor&&Object.hasOwnProperty.call(t,\"sparseTensor\")&&l.onnx.SparseTensorProto.encode(t.sparseTensor,e.uint32(178).fork()).ldelim(),null!=t.sparseTensors&&t.sparseTensors.length)for(r=0;r<t.sparseTensors.length;++r)l.onnx.SparseTensorProto.encode(t.sparseTensors[r],e.uint32(186).fork()).ldelim();return e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.AttributeProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.name=t.string();break;case 21:n.refAttrName=t.string();break;case 13:n.docString=t.string();break;case 20:n.type=t.int32();break;case 2:n.f=t.float();break;case 3:n.i=t.int64();break;case 4:n.s=t.bytes();break;case 5:n.t=l.onnx.TensorProto.decode(t,t.uint32());break;case 6:n.g=l.onnx.GraphProto.decode(t,t.uint32());break;case 22:n.sparseTensor=l.onnx.SparseTensorProto.decode(t,t.uint32());break;case 14:n.tp=l.onnx.TypeProto.decode(t,t.uint32());break;case 7:if(n.floats&&n.floats.length||(n.floats=[]),2==(7&i))for(var o=t.uint32()+t.pos;t.pos<o;)n.floats.push(t.float());else n.floats.push(t.float());break;case 8:if(n.ints&&n.ints.length||(n.ints=[]),2==(7&i))for(o=t.uint32()+t.pos;t.pos<o;)n.ints.push(t.int64());else n.ints.push(t.int64());break;case 9:n.strings&&n.strings.length||(n.strings=[]),n.strings.push(t.bytes());break;case 10:n.tensors&&n.tensors.length||(n.tensors=[]),n.tensors.push(l.onnx.TensorProto.decode(t,t.uint32()));break;case 11:n.graphs&&n.graphs.length||(n.graphs=[]),n.graphs.push(l.onnx.GraphProto.decode(t,t.uint32()));break;case 23:n.sparseTensors&&n.sparseTensors.length||(n.sparseTensors=[]),n.sparseTensors.push(l.onnx.SparseTensorProto.decode(t,t.uint32()));break;case 15:n.typeProtos&&n.typeProtos.length||(n.typeProtos=[]),n.typeProtos.push(l.onnx.TypeProto.decode(t,t.uint32()));break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.name&&t.hasOwnProperty(\"name\")&&!c.isString(t.name))return\"name: string expected\";if(null!=t.refAttrName&&t.hasOwnProperty(\"refAttrName\")&&!c.isString(t.refAttrName))return\"refAttrName: string expected\";if(null!=t.docString&&t.hasOwnProperty(\"docString\")&&!c.isString(t.docString))return\"docString: string expected\";if(null!=t.type&&t.hasOwnProperty(\"type\"))switch(t.type){default:return\"type: enum value expected\";case 0:case 1:case 2:case 3:case 4:case 5:case 11:case 13:case 6:case 7:case 8:case 9:case 10:case 12:case 14:}if(null!=t.f&&t.hasOwnProperty(\"f\")&&\"number\"!=typeof t.f)return\"f: number expected\";if(null!=t.i&&t.hasOwnProperty(\"i\")&&!(c.isInteger(t.i)||t.i&&c.isInteger(t.i.low)&&c.isInteger(t.i.high)))return\"i: integer|Long expected\";if(null!=t.s&&t.hasOwnProperty(\"s\")&&!(t.s&&\"number\"==typeof t.s.length||c.isString(t.s)))return\"s: buffer expected\";if(null!=t.t&&t.hasOwnProperty(\"t\")&&(r=l.onnx.TensorProto.verify(t.t)))return\"t.\"+r;if(null!=t.g&&t.hasOwnProperty(\"g\")&&(r=l.onnx.GraphProto.verify(t.g)))return\"g.\"+r;if(null!=t.sparseTensor&&t.hasOwnProperty(\"sparseTensor\")&&(r=l.onnx.SparseTensorProto.verify(t.sparseTensor)))return\"sparseTensor.\"+r;if(null!=t.tp&&t.hasOwnProperty(\"tp\")&&(r=l.onnx.TypeProto.verify(t.tp)))return\"tp.\"+r;if(null!=t.floats&&t.hasOwnProperty(\"floats\")){if(!Array.isArray(t.floats))return\"floats: array expected\";for(var e=0;e<t.floats.length;++e)if(\"number\"!=typeof t.floats[e])return\"floats: number[] expected\"}if(null!=t.ints&&t.hasOwnProperty(\"ints\")){if(!Array.isArray(t.ints))return\"ints: array expected\";for(e=0;e<t.ints.length;++e)if(!(c.isInteger(t.ints[e])||t.ints[e]&&c.isInteger(t.ints[e].low)&&c.isInteger(t.ints[e].high)))return\"ints: integer|Long[] expected\"}if(null!=t.strings&&t.hasOwnProperty(\"strings\")){if(!Array.isArray(t.strings))return\"strings: array expected\";for(e=0;e<t.strings.length;++e)if(!(t.strings[e]&&\"number\"==typeof t.strings[e].length||c.isString(t.strings[e])))return\"strings: buffer[] expected\"}if(null!=t.tensors&&t.hasOwnProperty(\"tensors\")){if(!Array.isArray(t.tensors))return\"tensors: array expected\";for(e=0;e<t.tensors.length;++e)if(r=l.onnx.TensorProto.verify(t.tensors[e]))return\"tensors.\"+r}if(null!=t.graphs&&t.hasOwnProperty(\"graphs\")){if(!Array.isArray(t.graphs))return\"graphs: array expected\";for(e=0;e<t.graphs.length;++e)if(r=l.onnx.GraphProto.verify(t.graphs[e]))return\"graphs.\"+r}if(null!=t.sparseTensors&&t.hasOwnProperty(\"sparseTensors\")){if(!Array.isArray(t.sparseTensors))return\"sparseTensors: array expected\";for(e=0;e<t.sparseTensors.length;++e)if(r=l.onnx.SparseTensorProto.verify(t.sparseTensors[e]))return\"sparseTensors.\"+r}if(null!=t.typeProtos&&t.hasOwnProperty(\"typeProtos\")){if(!Array.isArray(t.typeProtos))return\"typeProtos: array expected\";for(e=0;e<t.typeProtos.length;++e){var r;if(r=l.onnx.TypeProto.verify(t.typeProtos[e]))return\"typeProtos.\"+r}}return null},t.fromObject=function(t){if(t instanceof l.onnx.AttributeProto)return t;var e=new l.onnx.AttributeProto;switch(null!=t.name&&(e.name=String(t.name)),null!=t.refAttrName&&(e.refAttrName=String(t.refAttrName)),null!=t.docString&&(e.docString=String(t.docString)),t.type){default:if(\"number\"==typeof t.type){e.type=t.type;break}break;case\"UNDEFINED\":case 0:e.type=0;break;case\"FLOAT\":case 1:e.type=1;break;case\"INT\":case 2:e.type=2;break;case\"STRING\":case 3:e.type=3;break;case\"TENSOR\":case 4:e.type=4;break;case\"GRAPH\":case 5:e.type=5;break;case\"SPARSE_TENSOR\":case 11:e.type=11;break;case\"TYPE_PROTO\":case 13:e.type=13;break;case\"FLOATS\":case 6:e.type=6;break;case\"INTS\":case 7:e.type=7;break;case\"STRINGS\":case 8:e.type=8;break;case\"TENSORS\":case 9:e.type=9;break;case\"GRAPHS\":case 10:e.type=10;break;case\"SPARSE_TENSORS\":case 12:e.type=12;break;case\"TYPE_PROTOS\":case 14:e.type=14}if(null!=t.f&&(e.f=Number(t.f)),null!=t.i&&(c.Long?(e.i=c.Long.fromValue(t.i)).unsigned=!1:\"string\"==typeof t.i?e.i=parseInt(t.i,10):\"number\"==typeof t.i?e.i=t.i:\"object\"==_typeof(t.i)&&(e.i=new c.LongBits(t.i.low>>>0,t.i.high>>>0).toNumber())),null!=t.s&&(\"string\"==typeof t.s?c.base64.decode(t.s,e.s=c.newBuffer(c.base64.length(t.s)),0):t.s.length>=0&&(e.s=t.s)),null!=t.t){if(\"object\"!=_typeof(t.t))throw TypeError(\".onnx.AttributeProto.t: object expected\");e.t=l.onnx.TensorProto.fromObject(t.t)}if(null!=t.g){if(\"object\"!=_typeof(t.g))throw TypeError(\".onnx.AttributeProto.g: object expected\");e.g=l.onnx.GraphProto.fromObject(t.g)}if(null!=t.sparseTensor){if(\"object\"!=_typeof(t.sparseTensor))throw TypeError(\".onnx.AttributeProto.sparseTensor: object expected\");e.sparseTensor=l.onnx.SparseTensorProto.fromObject(t.sparseTensor)}if(null!=t.tp){if(\"object\"!=_typeof(t.tp))throw TypeError(\".onnx.AttributeProto.tp: object expected\");e.tp=l.onnx.TypeProto.fromObject(t.tp)}if(t.floats){if(!Array.isArray(t.floats))throw TypeError(\".onnx.AttributeProto.floats: array expected\");e.floats=[];for(var r=0;r<t.floats.length;++r)e.floats[r]=Number(t.floats[r])}if(t.ints){if(!Array.isArray(t.ints))throw TypeError(\".onnx.AttributeProto.ints: array expected\");for(e.ints=[],r=0;r<t.ints.length;++r)c.Long?(e.ints[r]=c.Long.fromValue(t.ints[r])).unsigned=!1:\"string\"==typeof t.ints[r]?e.ints[r]=parseInt(t.ints[r],10):\"number\"==typeof t.ints[r]?e.ints[r]=t.ints[r]:\"object\"==_typeof(t.ints[r])&&(e.ints[r]=new c.LongBits(t.ints[r].low>>>0,t.ints[r].high>>>0).toNumber())}if(t.strings){if(!Array.isArray(t.strings))throw TypeError(\".onnx.AttributeProto.strings: array expected\");for(e.strings=[],r=0;r<t.strings.length;++r)\"string\"==typeof t.strings[r]?c.base64.decode(t.strings[r],e.strings[r]=c.newBuffer(c.base64.length(t.strings[r])),0):t.strings[r].length>=0&&(e.strings[r]=t.strings[r])}if(t.tensors){if(!Array.isArray(t.tensors))throw TypeError(\".onnx.AttributeProto.tensors: array expected\");for(e.tensors=[],r=0;r<t.tensors.length;++r){if(\"object\"!=_typeof(t.tensors[r]))throw TypeError(\".onnx.AttributeProto.tensors: object expected\");e.tensors[r]=l.onnx.TensorProto.fromObject(t.tensors[r])}}if(t.graphs){if(!Array.isArray(t.graphs))throw TypeError(\".onnx.AttributeProto.graphs: array expected\");for(e.graphs=[],r=0;r<t.graphs.length;++r){if(\"object\"!=_typeof(t.graphs[r]))throw TypeError(\".onnx.AttributeProto.graphs: object expected\");e.graphs[r]=l.onnx.GraphProto.fromObject(t.graphs[r])}}if(t.sparseTensors){if(!Array.isArray(t.sparseTensors))throw TypeError(\".onnx.AttributeProto.sparseTensors: array expected\");for(e.sparseTensors=[],r=0;r<t.sparseTensors.length;++r){if(\"object\"!=_typeof(t.sparseTensors[r]))throw TypeError(\".onnx.AttributeProto.sparseTensors: object expected\");e.sparseTensors[r]=l.onnx.SparseTensorProto.fromObject(t.sparseTensors[r])}}if(t.typeProtos){if(!Array.isArray(t.typeProtos))throw TypeError(\".onnx.AttributeProto.typeProtos: array expected\");for(e.typeProtos=[],r=0;r<t.typeProtos.length;++r){if(\"object\"!=_typeof(t.typeProtos[r]))throw TypeError(\".onnx.AttributeProto.typeProtos: object expected\");e.typeProtos[r]=l.onnx.TypeProto.fromObject(t.typeProtos[r])}}return e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.floats=[],r.ints=[],r.strings=[],r.tensors=[],r.graphs=[],r.typeProtos=[],r.sparseTensors=[]),e.defaults){if(r.name=\"\",r.f=0,c.Long){var n=new c.Long(0,0,!1);r.i=e.longs===String?n.toString():e.longs===Number?n.toNumber():n}else r.i=e.longs===String?\"0\":0;e.bytes===String?r.s=\"\":(r.s=[],e.bytes!==Array&&(r.s=c.newBuffer(r.s))),r.t=null,r.g=null,r.docString=\"\",r.tp=null,r.type=e.enums===String?\"UNDEFINED\":0,r.refAttrName=\"\",r.sparseTensor=null}if(null!=t.name&&t.hasOwnProperty(\"name\")&&(r.name=t.name),null!=t.f&&t.hasOwnProperty(\"f\")&&(r.f=e.json&&!isFinite(t.f)?String(t.f):t.f),null!=t.i&&t.hasOwnProperty(\"i\")&&(\"number\"==typeof t.i?r.i=e.longs===String?String(t.i):t.i:r.i=e.longs===String?c.Long.prototype.toString.call(t.i):e.longs===Number?new c.LongBits(t.i.low>>>0,t.i.high>>>0).toNumber():t.i),null!=t.s&&t.hasOwnProperty(\"s\")&&(r.s=e.bytes===String?c.base64.encode(t.s,0,t.s.length):e.bytes===Array?Array.prototype.slice.call(t.s):t.s),null!=t.t&&t.hasOwnProperty(\"t\")&&(r.t=l.onnx.TensorProto.toObject(t.t,e)),null!=t.g&&t.hasOwnProperty(\"g\")&&(r.g=l.onnx.GraphProto.toObject(t.g,e)),t.floats&&t.floats.length){r.floats=[];for(var i=0;i<t.floats.length;++i)r.floats[i]=e.json&&!isFinite(t.floats[i])?String(t.floats[i]):t.floats[i]}if(t.ints&&t.ints.length)for(r.ints=[],i=0;i<t.ints.length;++i)\"number\"==typeof t.ints[i]?r.ints[i]=e.longs===String?String(t.ints[i]):t.ints[i]:r.ints[i]=e.longs===String?c.Long.prototype.toString.call(t.ints[i]):e.longs===Number?new c.LongBits(t.ints[i].low>>>0,t.ints[i].high>>>0).toNumber():t.ints[i];if(t.strings&&t.strings.length)for(r.strings=[],i=0;i<t.strings.length;++i)r.strings[i]=e.bytes===String?c.base64.encode(t.strings[i],0,t.strings[i].length):e.bytes===Array?Array.prototype.slice.call(t.strings[i]):t.strings[i];if(t.tensors&&t.tensors.length)for(r.tensors=[],i=0;i<t.tensors.length;++i)r.tensors[i]=l.onnx.TensorProto.toObject(t.tensors[i],e);if(t.graphs&&t.graphs.length)for(r.graphs=[],i=0;i<t.graphs.length;++i)r.graphs[i]=l.onnx.GraphProto.toObject(t.graphs[i],e);if(null!=t.docString&&t.hasOwnProperty(\"docString\")&&(r.docString=t.docString),null!=t.tp&&t.hasOwnProperty(\"tp\")&&(r.tp=l.onnx.TypeProto.toObject(t.tp,e)),t.typeProtos&&t.typeProtos.length)for(r.typeProtos=[],i=0;i<t.typeProtos.length;++i)r.typeProtos[i]=l.onnx.TypeProto.toObject(t.typeProtos[i],e);if(null!=t.type&&t.hasOwnProperty(\"type\")&&(r.type=e.enums===String?void 0===l.onnx.AttributeProto.AttributeType[t.type]?t.type:l.onnx.AttributeProto.AttributeType[t.type]:t.type),null!=t.refAttrName&&t.hasOwnProperty(\"refAttrName\")&&(r.refAttrName=t.refAttrName),null!=t.sparseTensor&&t.hasOwnProperty(\"sparseTensor\")&&(r.sparseTensor=l.onnx.SparseTensorProto.toObject(t.sparseTensor,e)),t.sparseTensors&&t.sparseTensors.length)for(r.sparseTensors=[],i=0;i<t.sparseTensors.length;++i)r.sparseTensors[i]=l.onnx.SparseTensorProto.toObject(t.sparseTensors[i],e);return r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.AttributeProto\"},t.AttributeType=function(){var t={},e=Object.create(t);return e[t[0]=\"UNDEFINED\"]=0,e[t[1]=\"FLOAT\"]=1,e[t[2]=\"INT\"]=2,e[t[3]=\"STRING\"]=3,e[t[4]=\"TENSOR\"]=4,e[t[5]=\"GRAPH\"]=5,e[t[11]=\"SPARSE_TENSOR\"]=11,e[t[13]=\"TYPE_PROTO\"]=13,e[t[6]=\"FLOATS\"]=6,e[t[7]=\"INTS\"]=7,e[t[8]=\"STRINGS\"]=8,e[t[9]=\"TENSORS\"]=9,e[t[10]=\"GRAPHS\"]=10,e[t[12]=\"SPARSE_TENSORS\"]=12,e[t[14]=\"TYPE_PROTOS\"]=14,e}(),t}(),o.ValueInfoProto=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.name=\"\",t.prototype.type=null,t.prototype.docString=\"\",t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=u.create()),null!=t.name&&Object.hasOwnProperty.call(t,\"name\")&&e.uint32(10).string(t.name),null!=t.type&&Object.hasOwnProperty.call(t,\"type\")&&l.onnx.TypeProto.encode(t.type,e.uint32(18).fork()).ldelim(),null!=t.docString&&Object.hasOwnProperty.call(t,\"docString\")&&e.uint32(26).string(t.docString),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.ValueInfoProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.name=t.string();break;case 2:n.type=l.onnx.TypeProto.decode(t,t.uint32());break;case 3:n.docString=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.name&&t.hasOwnProperty(\"name\")&&!c.isString(t.name))return\"name: string expected\";if(null!=t.type&&t.hasOwnProperty(\"type\")){var e=l.onnx.TypeProto.verify(t.type);if(e)return\"type.\"+e}return null!=t.docString&&t.hasOwnProperty(\"docString\")&&!c.isString(t.docString)?\"docString: string expected\":null},t.fromObject=function(t){if(t instanceof l.onnx.ValueInfoProto)return t;var e=new l.onnx.ValueInfoProto;if(null!=t.name&&(e.name=String(t.name)),null!=t.type){if(\"object\"!=_typeof(t.type))throw TypeError(\".onnx.ValueInfoProto.type: object expected\");e.type=l.onnx.TypeProto.fromObject(t.type)}return null!=t.docString&&(e.docString=String(t.docString)),e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.name=\"\",r.type=null,r.docString=\"\"),null!=t.name&&t.hasOwnProperty(\"name\")&&(r.name=t.name),null!=t.type&&t.hasOwnProperty(\"type\")&&(r.type=l.onnx.TypeProto.toObject(t.type,e)),null!=t.docString&&t.hasOwnProperty(\"docString\")&&(r.docString=t.docString),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.ValueInfoProto\"},t}(),o.NodeProto=function(){function t(t){if(this.input=[],this.output=[],this.attribute=[],t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.input=c.emptyArray,t.prototype.output=c.emptyArray,t.prototype.name=\"\",t.prototype.opType=\"\",t.prototype.domain=\"\",t.prototype.attribute=c.emptyArray,t.prototype.docString=\"\",t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=u.create()),null!=t.input&&t.input.length)for(var r=0;r<t.input.length;++r)e.uint32(10).string(t.input[r]);if(null!=t.output&&t.output.length)for(r=0;r<t.output.length;++r)e.uint32(18).string(t.output[r]);if(null!=t.name&&Object.hasOwnProperty.call(t,\"name\")&&e.uint32(26).string(t.name),null!=t.opType&&Object.hasOwnProperty.call(t,\"opType\")&&e.uint32(34).string(t.opType),null!=t.attribute&&t.attribute.length)for(r=0;r<t.attribute.length;++r)l.onnx.AttributeProto.encode(t.attribute[r],e.uint32(42).fork()).ldelim();return null!=t.docString&&Object.hasOwnProperty.call(t,\"docString\")&&e.uint32(50).string(t.docString),null!=t.domain&&Object.hasOwnProperty.call(t,\"domain\")&&e.uint32(58).string(t.domain),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.NodeProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.input&&n.input.length||(n.input=[]),n.input.push(t.string());break;case 2:n.output&&n.output.length||(n.output=[]),n.output.push(t.string());break;case 3:n.name=t.string();break;case 4:n.opType=t.string();break;case 7:n.domain=t.string();break;case 5:n.attribute&&n.attribute.length||(n.attribute=[]),n.attribute.push(l.onnx.AttributeProto.decode(t,t.uint32()));break;case 6:n.docString=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.input&&t.hasOwnProperty(\"input\")){if(!Array.isArray(t.input))return\"input: array expected\";for(var e=0;e<t.input.length;++e)if(!c.isString(t.input[e]))return\"input: string[] expected\"}if(null!=t.output&&t.hasOwnProperty(\"output\")){if(!Array.isArray(t.output))return\"output: array expected\";for(e=0;e<t.output.length;++e)if(!c.isString(t.output[e]))return\"output: string[] expected\"}if(null!=t.name&&t.hasOwnProperty(\"name\")&&!c.isString(t.name))return\"name: string expected\";if(null!=t.opType&&t.hasOwnProperty(\"opType\")&&!c.isString(t.opType))return\"opType: string expected\";if(null!=t.domain&&t.hasOwnProperty(\"domain\")&&!c.isString(t.domain))return\"domain: string expected\";if(null!=t.attribute&&t.hasOwnProperty(\"attribute\")){if(!Array.isArray(t.attribute))return\"attribute: array expected\";for(e=0;e<t.attribute.length;++e){var r=l.onnx.AttributeProto.verify(t.attribute[e]);if(r)return\"attribute.\"+r}}return null!=t.docString&&t.hasOwnProperty(\"docString\")&&!c.isString(t.docString)?\"docString: string expected\":null},t.fromObject=function(t){if(t instanceof l.onnx.NodeProto)return t;var e=new l.onnx.NodeProto;if(t.input){if(!Array.isArray(t.input))throw TypeError(\".onnx.NodeProto.input: array expected\");e.input=[];for(var r=0;r<t.input.length;++r)e.input[r]=String(t.input[r])}if(t.output){if(!Array.isArray(t.output))throw TypeError(\".onnx.NodeProto.output: array expected\");for(e.output=[],r=0;r<t.output.length;++r)e.output[r]=String(t.output[r])}if(null!=t.name&&(e.name=String(t.name)),null!=t.opType&&(e.opType=String(t.opType)),null!=t.domain&&(e.domain=String(t.domain)),t.attribute){if(!Array.isArray(t.attribute))throw TypeError(\".onnx.NodeProto.attribute: array expected\");for(e.attribute=[],r=0;r<t.attribute.length;++r){if(\"object\"!=_typeof(t.attribute[r]))throw TypeError(\".onnx.NodeProto.attribute: object expected\");e.attribute[r]=l.onnx.AttributeProto.fromObject(t.attribute[r])}}return null!=t.docString&&(e.docString=String(t.docString)),e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.input=[],r.output=[],r.attribute=[]),e.defaults&&(r.name=\"\",r.opType=\"\",r.docString=\"\",r.domain=\"\"),t.input&&t.input.length){r.input=[];for(var n=0;n<t.input.length;++n)r.input[n]=t.input[n]}if(t.output&&t.output.length)for(r.output=[],n=0;n<t.output.length;++n)r.output[n]=t.output[n];if(null!=t.name&&t.hasOwnProperty(\"name\")&&(r.name=t.name),null!=t.opType&&t.hasOwnProperty(\"opType\")&&(r.opType=t.opType),t.attribute&&t.attribute.length)for(r.attribute=[],n=0;n<t.attribute.length;++n)r.attribute[n]=l.onnx.AttributeProto.toObject(t.attribute[n],e);return null!=t.docString&&t.hasOwnProperty(\"docString\")&&(r.docString=t.docString),null!=t.domain&&t.hasOwnProperty(\"domain\")&&(r.domain=t.domain),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.NodeProto\"},t}(),o.TrainingInfoProto=function(){function t(t){if(this.initializationBinding=[],this.updateBinding=[],t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.initialization=null,t.prototype.algorithm=null,t.prototype.initializationBinding=c.emptyArray,t.prototype.updateBinding=c.emptyArray,t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=u.create()),null!=t.initialization&&Object.hasOwnProperty.call(t,\"initialization\")&&l.onnx.GraphProto.encode(t.initialization,e.uint32(10).fork()).ldelim(),null!=t.algorithm&&Object.hasOwnProperty.call(t,\"algorithm\")&&l.onnx.GraphProto.encode(t.algorithm,e.uint32(18).fork()).ldelim(),null!=t.initializationBinding&&t.initializationBinding.length)for(var r=0;r<t.initializationBinding.length;++r)l.onnx.StringStringEntryProto.encode(t.initializationBinding[r],e.uint32(26).fork()).ldelim();if(null!=t.updateBinding&&t.updateBinding.length)for(r=0;r<t.updateBinding.length;++r)l.onnx.StringStringEntryProto.encode(t.updateBinding[r],e.uint32(34).fork()).ldelim();return e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TrainingInfoProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.initialization=l.onnx.GraphProto.decode(t,t.uint32());break;case 2:n.algorithm=l.onnx.GraphProto.decode(t,t.uint32());break;case 3:n.initializationBinding&&n.initializationBinding.length||(n.initializationBinding=[]),n.initializationBinding.push(l.onnx.StringStringEntryProto.decode(t,t.uint32()));break;case 4:n.updateBinding&&n.updateBinding.length||(n.updateBinding=[]),n.updateBinding.push(l.onnx.StringStringEntryProto.decode(t,t.uint32()));break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.initialization&&t.hasOwnProperty(\"initialization\")&&(r=l.onnx.GraphProto.verify(t.initialization)))return\"initialization.\"+r;if(null!=t.algorithm&&t.hasOwnProperty(\"algorithm\")&&(r=l.onnx.GraphProto.verify(t.algorithm)))return\"algorithm.\"+r;if(null!=t.initializationBinding&&t.hasOwnProperty(\"initializationBinding\")){if(!Array.isArray(t.initializationBinding))return\"initializationBinding: array expected\";for(var e=0;e<t.initializationBinding.length;++e)if(r=l.onnx.StringStringEntryProto.verify(t.initializationBinding[e]))return\"initializationBinding.\"+r}if(null!=t.updateBinding&&t.hasOwnProperty(\"updateBinding\")){if(!Array.isArray(t.updateBinding))return\"updateBinding: array expected\";for(e=0;e<t.updateBinding.length;++e){var r;if(r=l.onnx.StringStringEntryProto.verify(t.updateBinding[e]))return\"updateBinding.\"+r}}return null},t.fromObject=function(t){if(t instanceof l.onnx.TrainingInfoProto)return t;var e=new l.onnx.TrainingInfoProto;if(null!=t.initialization){if(\"object\"!=_typeof(t.initialization))throw TypeError(\".onnx.TrainingInfoProto.initialization: object expected\");e.initialization=l.onnx.GraphProto.fromObject(t.initialization)}if(null!=t.algorithm){if(\"object\"!=_typeof(t.algorithm))throw TypeError(\".onnx.TrainingInfoProto.algorithm: object expected\");e.algorithm=l.onnx.GraphProto.fromObject(t.algorithm)}if(t.initializationBinding){if(!Array.isArray(t.initializationBinding))throw TypeError(\".onnx.TrainingInfoProto.initializationBinding: array expected\");e.initializationBinding=[];for(var r=0;r<t.initializationBinding.length;++r){if(\"object\"!=_typeof(t.initializationBinding[r]))throw TypeError(\".onnx.TrainingInfoProto.initializationBinding: object expected\");e.initializationBinding[r]=l.onnx.StringStringEntryProto.fromObject(t.initializationBinding[r])}}if(t.updateBinding){if(!Array.isArray(t.updateBinding))throw TypeError(\".onnx.TrainingInfoProto.updateBinding: array expected\");for(e.updateBinding=[],r=0;r<t.updateBinding.length;++r){if(\"object\"!=_typeof(t.updateBinding[r]))throw TypeError(\".onnx.TrainingInfoProto.updateBinding: object expected\");e.updateBinding[r]=l.onnx.StringStringEntryProto.fromObject(t.updateBinding[r])}}return e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.initializationBinding=[],r.updateBinding=[]),e.defaults&&(r.initialization=null,r.algorithm=null),null!=t.initialization&&t.hasOwnProperty(\"initialization\")&&(r.initialization=l.onnx.GraphProto.toObject(t.initialization,e)),null!=t.algorithm&&t.hasOwnProperty(\"algorithm\")&&(r.algorithm=l.onnx.GraphProto.toObject(t.algorithm,e)),t.initializationBinding&&t.initializationBinding.length){r.initializationBinding=[];for(var n=0;n<t.initializationBinding.length;++n)r.initializationBinding[n]=l.onnx.StringStringEntryProto.toObject(t.initializationBinding[n],e)}if(t.updateBinding&&t.updateBinding.length)for(r.updateBinding=[],n=0;n<t.updateBinding.length;++n)r.updateBinding[n]=l.onnx.StringStringEntryProto.toObject(t.updateBinding[n],e);return r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TrainingInfoProto\"},t}(),o.ModelProto=function(){function t(t){if(this.opsetImport=[],this.metadataProps=[],this.trainingInfo=[],this.functions=[],t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.irVersion=c.Long?c.Long.fromBits(0,0,!1):0,t.prototype.opsetImport=c.emptyArray,t.prototype.producerName=\"\",t.prototype.producerVersion=\"\",t.prototype.domain=\"\",t.prototype.modelVersion=c.Long?c.Long.fromBits(0,0,!1):0,t.prototype.docString=\"\",t.prototype.graph=null,t.prototype.metadataProps=c.emptyArray,t.prototype.trainingInfo=c.emptyArray,t.prototype.functions=c.emptyArray,t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=u.create()),null!=t.irVersion&&Object.hasOwnProperty.call(t,\"irVersion\")&&e.uint32(8).int64(t.irVersion),null!=t.producerName&&Object.hasOwnProperty.call(t,\"producerName\")&&e.uint32(18).string(t.producerName),null!=t.producerVersion&&Object.hasOwnProperty.call(t,\"producerVersion\")&&e.uint32(26).string(t.producerVersion),null!=t.domain&&Object.hasOwnProperty.call(t,\"domain\")&&e.uint32(34).string(t.domain),null!=t.modelVersion&&Object.hasOwnProperty.call(t,\"modelVersion\")&&e.uint32(40).int64(t.modelVersion),null!=t.docString&&Object.hasOwnProperty.call(t,\"docString\")&&e.uint32(50).string(t.docString),null!=t.graph&&Object.hasOwnProperty.call(t,\"graph\")&&l.onnx.GraphProto.encode(t.graph,e.uint32(58).fork()).ldelim(),null!=t.opsetImport&&t.opsetImport.length)for(var r=0;r<t.opsetImport.length;++r)l.onnx.OperatorSetIdProto.encode(t.opsetImport[r],e.uint32(66).fork()).ldelim();if(null!=t.metadataProps&&t.metadataProps.length)for(r=0;r<t.metadataProps.length;++r)l.onnx.StringStringEntryProto.encode(t.metadataProps[r],e.uint32(114).fork()).ldelim();if(null!=t.trainingInfo&&t.trainingInfo.length)for(r=0;r<t.trainingInfo.length;++r)l.onnx.TrainingInfoProto.encode(t.trainingInfo[r],e.uint32(162).fork()).ldelim();if(null!=t.functions&&t.functions.length)for(r=0;r<t.functions.length;++r)l.onnx.FunctionProto.encode(t.functions[r],e.uint32(202).fork()).ldelim();return e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.ModelProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.irVersion=t.int64();break;case 8:n.opsetImport&&n.opsetImport.length||(n.opsetImport=[]),n.opsetImport.push(l.onnx.OperatorSetIdProto.decode(t,t.uint32()));break;case 2:n.producerName=t.string();break;case 3:n.producerVersion=t.string();break;case 4:n.domain=t.string();break;case 5:n.modelVersion=t.int64();break;case 6:n.docString=t.string();break;case 7:n.graph=l.onnx.GraphProto.decode(t,t.uint32());break;case 14:n.metadataProps&&n.metadataProps.length||(n.metadataProps=[]),n.metadataProps.push(l.onnx.StringStringEntryProto.decode(t,t.uint32()));break;case 20:n.trainingInfo&&n.trainingInfo.length||(n.trainingInfo=[]),n.trainingInfo.push(l.onnx.TrainingInfoProto.decode(t,t.uint32()));break;case 25:n.functions&&n.functions.length||(n.functions=[]),n.functions.push(l.onnx.FunctionProto.decode(t,t.uint32()));break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.irVersion&&t.hasOwnProperty(\"irVersion\")&&!(c.isInteger(t.irVersion)||t.irVersion&&c.isInteger(t.irVersion.low)&&c.isInteger(t.irVersion.high)))return\"irVersion: integer|Long expected\";if(null!=t.opsetImport&&t.hasOwnProperty(\"opsetImport\")){if(!Array.isArray(t.opsetImport))return\"opsetImport: array expected\";for(var e=0;e<t.opsetImport.length;++e)if(r=l.onnx.OperatorSetIdProto.verify(t.opsetImport[e]))return\"opsetImport.\"+r}if(null!=t.producerName&&t.hasOwnProperty(\"producerName\")&&!c.isString(t.producerName))return\"producerName: string expected\";if(null!=t.producerVersion&&t.hasOwnProperty(\"producerVersion\")&&!c.isString(t.producerVersion))return\"producerVersion: string expected\";if(null!=t.domain&&t.hasOwnProperty(\"domain\")&&!c.isString(t.domain))return\"domain: string expected\";if(null!=t.modelVersion&&t.hasOwnProperty(\"modelVersion\")&&!(c.isInteger(t.modelVersion)||t.modelVersion&&c.isInteger(t.modelVersion.low)&&c.isInteger(t.modelVersion.high)))return\"modelVersion: integer|Long expected\";if(null!=t.docString&&t.hasOwnProperty(\"docString\")&&!c.isString(t.docString))return\"docString: string expected\";if(null!=t.graph&&t.hasOwnProperty(\"graph\")&&(r=l.onnx.GraphProto.verify(t.graph)))return\"graph.\"+r;if(null!=t.metadataProps&&t.hasOwnProperty(\"metadataProps\")){if(!Array.isArray(t.metadataProps))return\"metadataProps: array expected\";for(e=0;e<t.metadataProps.length;++e)if(r=l.onnx.StringStringEntryProto.verify(t.metadataProps[e]))return\"metadataProps.\"+r}if(null!=t.trainingInfo&&t.hasOwnProperty(\"trainingInfo\")){if(!Array.isArray(t.trainingInfo))return\"trainingInfo: array expected\";for(e=0;e<t.trainingInfo.length;++e)if(r=l.onnx.TrainingInfoProto.verify(t.trainingInfo[e]))return\"trainingInfo.\"+r}if(null!=t.functions&&t.hasOwnProperty(\"functions\")){if(!Array.isArray(t.functions))return\"functions: array expected\";for(e=0;e<t.functions.length;++e){var r;if(r=l.onnx.FunctionProto.verify(t.functions[e]))return\"functions.\"+r}}return null},t.fromObject=function(t){if(t instanceof l.onnx.ModelProto)return t;var e=new l.onnx.ModelProto;if(null!=t.irVersion&&(c.Long?(e.irVersion=c.Long.fromValue(t.irVersion)).unsigned=!1:\"string\"==typeof t.irVersion?e.irVersion=parseInt(t.irVersion,10):\"number\"==typeof t.irVersion?e.irVersion=t.irVersion:\"object\"==_typeof(t.irVersion)&&(e.irVersion=new c.LongBits(t.irVersion.low>>>0,t.irVersion.high>>>0).toNumber())),t.opsetImport){if(!Array.isArray(t.opsetImport))throw TypeError(\".onnx.ModelProto.opsetImport: array expected\");e.opsetImport=[];for(var r=0;r<t.opsetImport.length;++r){if(\"object\"!=_typeof(t.opsetImport[r]))throw TypeError(\".onnx.ModelProto.opsetImport: object expected\");e.opsetImport[r]=l.onnx.OperatorSetIdProto.fromObject(t.opsetImport[r])}}if(null!=t.producerName&&(e.producerName=String(t.producerName)),null!=t.producerVersion&&(e.producerVersion=String(t.producerVersion)),null!=t.domain&&(e.domain=String(t.domain)),null!=t.modelVersion&&(c.Long?(e.modelVersion=c.Long.fromValue(t.modelVersion)).unsigned=!1:\"string\"==typeof t.modelVersion?e.modelVersion=parseInt(t.modelVersion,10):\"number\"==typeof t.modelVersion?e.modelVersion=t.modelVersion:\"object\"==_typeof(t.modelVersion)&&(e.modelVersion=new c.LongBits(t.modelVersion.low>>>0,t.modelVersion.high>>>0).toNumber())),null!=t.docString&&(e.docString=String(t.docString)),null!=t.graph){if(\"object\"!=_typeof(t.graph))throw TypeError(\".onnx.ModelProto.graph: object expected\");e.graph=l.onnx.GraphProto.fromObject(t.graph)}if(t.metadataProps){if(!Array.isArray(t.metadataProps))throw TypeError(\".onnx.ModelProto.metadataProps: array expected\");for(e.metadataProps=[],r=0;r<t.metadataProps.length;++r){if(\"object\"!=_typeof(t.metadataProps[r]))throw TypeError(\".onnx.ModelProto.metadataProps: object expected\");e.metadataProps[r]=l.onnx.StringStringEntryProto.fromObject(t.metadataProps[r])}}if(t.trainingInfo){if(!Array.isArray(t.trainingInfo))throw TypeError(\".onnx.ModelProto.trainingInfo: array expected\");for(e.trainingInfo=[],r=0;r<t.trainingInfo.length;++r){if(\"object\"!=_typeof(t.trainingInfo[r]))throw TypeError(\".onnx.ModelProto.trainingInfo: object expected\");e.trainingInfo[r]=l.onnx.TrainingInfoProto.fromObject(t.trainingInfo[r])}}if(t.functions){if(!Array.isArray(t.functions))throw TypeError(\".onnx.ModelProto.functions: array expected\");for(e.functions=[],r=0;r<t.functions.length;++r){if(\"object\"!=_typeof(t.functions[r]))throw TypeError(\".onnx.ModelProto.functions: object expected\");e.functions[r]=l.onnx.FunctionProto.fromObject(t.functions[r])}}return e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.opsetImport=[],r.metadataProps=[],r.trainingInfo=[],r.functions=[]),e.defaults){if(c.Long){var n=new c.Long(0,0,!1);r.irVersion=e.longs===String?n.toString():e.longs===Number?n.toNumber():n}else r.irVersion=e.longs===String?\"0\":0;r.producerName=\"\",r.producerVersion=\"\",r.domain=\"\",c.Long?(n=new c.Long(0,0,!1),r.modelVersion=e.longs===String?n.toString():e.longs===Number?n.toNumber():n):r.modelVersion=e.longs===String?\"0\":0,r.docString=\"\",r.graph=null}if(null!=t.irVersion&&t.hasOwnProperty(\"irVersion\")&&(\"number\"==typeof t.irVersion?r.irVersion=e.longs===String?String(t.irVersion):t.irVersion:r.irVersion=e.longs===String?c.Long.prototype.toString.call(t.irVersion):e.longs===Number?new c.LongBits(t.irVersion.low>>>0,t.irVersion.high>>>0).toNumber():t.irVersion),null!=t.producerName&&t.hasOwnProperty(\"producerName\")&&(r.producerName=t.producerName),null!=t.producerVersion&&t.hasOwnProperty(\"producerVersion\")&&(r.producerVersion=t.producerVersion),null!=t.domain&&t.hasOwnProperty(\"domain\")&&(r.domain=t.domain),null!=t.modelVersion&&t.hasOwnProperty(\"modelVersion\")&&(\"number\"==typeof t.modelVersion?r.modelVersion=e.longs===String?String(t.modelVersion):t.modelVersion:r.modelVersion=e.longs===String?c.Long.prototype.toString.call(t.modelVersion):e.longs===Number?new c.LongBits(t.modelVersion.low>>>0,t.modelVersion.high>>>0).toNumber():t.modelVersion),null!=t.docString&&t.hasOwnProperty(\"docString\")&&(r.docString=t.docString),null!=t.graph&&t.hasOwnProperty(\"graph\")&&(r.graph=l.onnx.GraphProto.toObject(t.graph,e)),t.opsetImport&&t.opsetImport.length){r.opsetImport=[];for(var i=0;i<t.opsetImport.length;++i)r.opsetImport[i]=l.onnx.OperatorSetIdProto.toObject(t.opsetImport[i],e)}if(t.metadataProps&&t.metadataProps.length)for(r.metadataProps=[],i=0;i<t.metadataProps.length;++i)r.metadataProps[i]=l.onnx.StringStringEntryProto.toObject(t.metadataProps[i],e);if(t.trainingInfo&&t.trainingInfo.length)for(r.trainingInfo=[],i=0;i<t.trainingInfo.length;++i)r.trainingInfo[i]=l.onnx.TrainingInfoProto.toObject(t.trainingInfo[i],e);if(t.functions&&t.functions.length)for(r.functions=[],i=0;i<t.functions.length;++i)r.functions[i]=l.onnx.FunctionProto.toObject(t.functions[i],e);return r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.ModelProto\"},t}(),o.StringStringEntryProto=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.key=\"\",t.prototype.value=\"\",t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=u.create()),null!=t.key&&Object.hasOwnProperty.call(t,\"key\")&&e.uint32(10).string(t.key),null!=t.value&&Object.hasOwnProperty.call(t,\"value\")&&e.uint32(18).string(t.value),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.StringStringEntryProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.key=t.string();break;case 2:n.value=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return\"object\"!=_typeof(t)||null===t?\"object expected\":null!=t.key&&t.hasOwnProperty(\"key\")&&!c.isString(t.key)?\"key: string expected\":null!=t.value&&t.hasOwnProperty(\"value\")&&!c.isString(t.value)?\"value: string expected\":null},t.fromObject=function(t){if(t instanceof l.onnx.StringStringEntryProto)return t;var e=new l.onnx.StringStringEntryProto;return null!=t.key&&(e.key=String(t.key)),null!=t.value&&(e.value=String(t.value)),e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.key=\"\",r.value=\"\"),null!=t.key&&t.hasOwnProperty(\"key\")&&(r.key=t.key),null!=t.value&&t.hasOwnProperty(\"value\")&&(r.value=t.value),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.StringStringEntryProto\"},t}(),o.TensorAnnotation=function(){function t(t){if(this.quantParameterTensorNames=[],t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.tensorName=\"\",t.prototype.quantParameterTensorNames=c.emptyArray,t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=u.create()),null!=t.tensorName&&Object.hasOwnProperty.call(t,\"tensorName\")&&e.uint32(10).string(t.tensorName),null!=t.quantParameterTensorNames&&t.quantParameterTensorNames.length)for(var r=0;r<t.quantParameterTensorNames.length;++r)l.onnx.StringStringEntryProto.encode(t.quantParameterTensorNames[r],e.uint32(18).fork()).ldelim();return e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TensorAnnotation;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.tensorName=t.string();break;case 2:n.quantParameterTensorNames&&n.quantParameterTensorNames.length||(n.quantParameterTensorNames=[]),n.quantParameterTensorNames.push(l.onnx.StringStringEntryProto.decode(t,t.uint32()));break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.tensorName&&t.hasOwnProperty(\"tensorName\")&&!c.isString(t.tensorName))return\"tensorName: string expected\";if(null!=t.quantParameterTensorNames&&t.hasOwnProperty(\"quantParameterTensorNames\")){if(!Array.isArray(t.quantParameterTensorNames))return\"quantParameterTensorNames: array expected\";for(var e=0;e<t.quantParameterTensorNames.length;++e){var r=l.onnx.StringStringEntryProto.verify(t.quantParameterTensorNames[e]);if(r)return\"quantParameterTensorNames.\"+r}}return null},t.fromObject=function(t){if(t instanceof l.onnx.TensorAnnotation)return t;var e=new l.onnx.TensorAnnotation;if(null!=t.tensorName&&(e.tensorName=String(t.tensorName)),t.quantParameterTensorNames){if(!Array.isArray(t.quantParameterTensorNames))throw TypeError(\".onnx.TensorAnnotation.quantParameterTensorNames: array expected\");e.quantParameterTensorNames=[];for(var r=0;r<t.quantParameterTensorNames.length;++r){if(\"object\"!=_typeof(t.quantParameterTensorNames[r]))throw TypeError(\".onnx.TensorAnnotation.quantParameterTensorNames: object expected\");e.quantParameterTensorNames[r]=l.onnx.StringStringEntryProto.fromObject(t.quantParameterTensorNames[r])}}return e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.quantParameterTensorNames=[]),e.defaults&&(r.tensorName=\"\"),null!=t.tensorName&&t.hasOwnProperty(\"tensorName\")&&(r.tensorName=t.tensorName),t.quantParameterTensorNames&&t.quantParameterTensorNames.length){r.quantParameterTensorNames=[];for(var n=0;n<t.quantParameterTensorNames.length;++n)r.quantParameterTensorNames[n]=l.onnx.StringStringEntryProto.toObject(t.quantParameterTensorNames[n],e)}return r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TensorAnnotation\"},t}(),o.GraphProto=function(){function t(t){if(this.node=[],this.initializer=[],this.sparseInitializer=[],this.input=[],this.output=[],this.valueInfo=[],this.quantizationAnnotation=[],t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.node=c.emptyArray,t.prototype.name=\"\",t.prototype.initializer=c.emptyArray,t.prototype.sparseInitializer=c.emptyArray,t.prototype.docString=\"\",t.prototype.input=c.emptyArray,t.prototype.output=c.emptyArray,t.prototype.valueInfo=c.emptyArray,t.prototype.quantizationAnnotation=c.emptyArray,t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=u.create()),null!=t.node&&t.node.length)for(var r=0;r<t.node.length;++r)l.onnx.NodeProto.encode(t.node[r],e.uint32(10).fork()).ldelim();if(null!=t.name&&Object.hasOwnProperty.call(t,\"name\")&&e.uint32(18).string(t.name),null!=t.initializer&&t.initializer.length)for(r=0;r<t.initializer.length;++r)l.onnx.TensorProto.encode(t.initializer[r],e.uint32(42).fork()).ldelim();if(null!=t.docString&&Object.hasOwnProperty.call(t,\"docString\")&&e.uint32(82).string(t.docString),null!=t.input&&t.input.length)for(r=0;r<t.input.length;++r)l.onnx.ValueInfoProto.encode(t.input[r],e.uint32(90).fork()).ldelim();if(null!=t.output&&t.output.length)for(r=0;r<t.output.length;++r)l.onnx.ValueInfoProto.encode(t.output[r],e.uint32(98).fork()).ldelim();if(null!=t.valueInfo&&t.valueInfo.length)for(r=0;r<t.valueInfo.length;++r)l.onnx.ValueInfoProto.encode(t.valueInfo[r],e.uint32(106).fork()).ldelim();if(null!=t.quantizationAnnotation&&t.quantizationAnnotation.length)for(r=0;r<t.quantizationAnnotation.length;++r)l.onnx.TensorAnnotation.encode(t.quantizationAnnotation[r],e.uint32(114).fork()).ldelim();if(null!=t.sparseInitializer&&t.sparseInitializer.length)for(r=0;r<t.sparseInitializer.length;++r)l.onnx.SparseTensorProto.encode(t.sparseInitializer[r],e.uint32(122).fork()).ldelim();return e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.GraphProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.node&&n.node.length||(n.node=[]),n.node.push(l.onnx.NodeProto.decode(t,t.uint32()));break;case 2:n.name=t.string();break;case 5:n.initializer&&n.initializer.length||(n.initializer=[]),n.initializer.push(l.onnx.TensorProto.decode(t,t.uint32()));break;case 15:n.sparseInitializer&&n.sparseInitializer.length||(n.sparseInitializer=[]),n.sparseInitializer.push(l.onnx.SparseTensorProto.decode(t,t.uint32()));break;case 10:n.docString=t.string();break;case 11:n.input&&n.input.length||(n.input=[]),n.input.push(l.onnx.ValueInfoProto.decode(t,t.uint32()));break;case 12:n.output&&n.output.length||(n.output=[]),n.output.push(l.onnx.ValueInfoProto.decode(t,t.uint32()));break;case 13:n.valueInfo&&n.valueInfo.length||(n.valueInfo=[]),n.valueInfo.push(l.onnx.ValueInfoProto.decode(t,t.uint32()));break;case 14:n.quantizationAnnotation&&n.quantizationAnnotation.length||(n.quantizationAnnotation=[]),n.quantizationAnnotation.push(l.onnx.TensorAnnotation.decode(t,t.uint32()));break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.node&&t.hasOwnProperty(\"node\")){if(!Array.isArray(t.node))return\"node: array expected\";for(var e=0;e<t.node.length;++e)if(r=l.onnx.NodeProto.verify(t.node[e]))return\"node.\"+r}if(null!=t.name&&t.hasOwnProperty(\"name\")&&!c.isString(t.name))return\"name: string expected\";if(null!=t.initializer&&t.hasOwnProperty(\"initializer\")){if(!Array.isArray(t.initializer))return\"initializer: array expected\";for(e=0;e<t.initializer.length;++e)if(r=l.onnx.TensorProto.verify(t.initializer[e]))return\"initializer.\"+r}if(null!=t.sparseInitializer&&t.hasOwnProperty(\"sparseInitializer\")){if(!Array.isArray(t.sparseInitializer))return\"sparseInitializer: array expected\";for(e=0;e<t.sparseInitializer.length;++e)if(r=l.onnx.SparseTensorProto.verify(t.sparseInitializer[e]))return\"sparseInitializer.\"+r}if(null!=t.docString&&t.hasOwnProperty(\"docString\")&&!c.isString(t.docString))return\"docString: string expected\";if(null!=t.input&&t.hasOwnProperty(\"input\")){if(!Array.isArray(t.input))return\"input: array expected\";for(e=0;e<t.input.length;++e)if(r=l.onnx.ValueInfoProto.verify(t.input[e]))return\"input.\"+r}if(null!=t.output&&t.hasOwnProperty(\"output\")){if(!Array.isArray(t.output))return\"output: array expected\";for(e=0;e<t.output.length;++e)if(r=l.onnx.ValueInfoProto.verify(t.output[e]))return\"output.\"+r}if(null!=t.valueInfo&&t.hasOwnProperty(\"valueInfo\")){if(!Array.isArray(t.valueInfo))return\"valueInfo: array expected\";for(e=0;e<t.valueInfo.length;++e)if(r=l.onnx.ValueInfoProto.verify(t.valueInfo[e]))return\"valueInfo.\"+r}if(null!=t.quantizationAnnotation&&t.hasOwnProperty(\"quantizationAnnotation\")){if(!Array.isArray(t.quantizationAnnotation))return\"quantizationAnnotation: array expected\";for(e=0;e<t.quantizationAnnotation.length;++e){var r;if(r=l.onnx.TensorAnnotation.verify(t.quantizationAnnotation[e]))return\"quantizationAnnotation.\"+r}}return null},t.fromObject=function(t){if(t instanceof l.onnx.GraphProto)return t;var e=new l.onnx.GraphProto;if(t.node){if(!Array.isArray(t.node))throw TypeError(\".onnx.GraphProto.node: array expected\");e.node=[];for(var r=0;r<t.node.length;++r){if(\"object\"!=_typeof(t.node[r]))throw TypeError(\".onnx.GraphProto.node: object expected\");e.node[r]=l.onnx.NodeProto.fromObject(t.node[r])}}if(null!=t.name&&(e.name=String(t.name)),t.initializer){if(!Array.isArray(t.initializer))throw TypeError(\".onnx.GraphProto.initializer: array expected\");for(e.initializer=[],r=0;r<t.initializer.length;++r){if(\"object\"!=_typeof(t.initializer[r]))throw TypeError(\".onnx.GraphProto.initializer: object expected\");e.initializer[r]=l.onnx.TensorProto.fromObject(t.initializer[r])}}if(t.sparseInitializer){if(!Array.isArray(t.sparseInitializer))throw TypeError(\".onnx.GraphProto.sparseInitializer: array expected\");for(e.sparseInitializer=[],r=0;r<t.sparseInitializer.length;++r){if(\"object\"!=_typeof(t.sparseInitializer[r]))throw TypeError(\".onnx.GraphProto.sparseInitializer: object expected\");e.sparseInitializer[r]=l.onnx.SparseTensorProto.fromObject(t.sparseInitializer[r])}}if(null!=t.docString&&(e.docString=String(t.docString)),t.input){if(!Array.isArray(t.input))throw TypeError(\".onnx.GraphProto.input: array expected\");for(e.input=[],r=0;r<t.input.length;++r){if(\"object\"!=_typeof(t.input[r]))throw TypeError(\".onnx.GraphProto.input: object expected\");e.input[r]=l.onnx.ValueInfoProto.fromObject(t.input[r])}}if(t.output){if(!Array.isArray(t.output))throw TypeError(\".onnx.GraphProto.output: array expected\");for(e.output=[],r=0;r<t.output.length;++r){if(\"object\"!=_typeof(t.output[r]))throw TypeError(\".onnx.GraphProto.output: object expected\");e.output[r]=l.onnx.ValueInfoProto.fromObject(t.output[r])}}if(t.valueInfo){if(!Array.isArray(t.valueInfo))throw TypeError(\".onnx.GraphProto.valueInfo: array expected\");for(e.valueInfo=[],r=0;r<t.valueInfo.length;++r){if(\"object\"!=_typeof(t.valueInfo[r]))throw TypeError(\".onnx.GraphProto.valueInfo: object expected\");e.valueInfo[r]=l.onnx.ValueInfoProto.fromObject(t.valueInfo[r])}}if(t.quantizationAnnotation){if(!Array.isArray(t.quantizationAnnotation))throw TypeError(\".onnx.GraphProto.quantizationAnnotation: array expected\");for(e.quantizationAnnotation=[],r=0;r<t.quantizationAnnotation.length;++r){if(\"object\"!=_typeof(t.quantizationAnnotation[r]))throw TypeError(\".onnx.GraphProto.quantizationAnnotation: object expected\");e.quantizationAnnotation[r]=l.onnx.TensorAnnotation.fromObject(t.quantizationAnnotation[r])}}return e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.node=[],r.initializer=[],r.input=[],r.output=[],r.valueInfo=[],r.quantizationAnnotation=[],r.sparseInitializer=[]),e.defaults&&(r.name=\"\",r.docString=\"\"),t.node&&t.node.length){r.node=[];for(var n=0;n<t.node.length;++n)r.node[n]=l.onnx.NodeProto.toObject(t.node[n],e)}if(null!=t.name&&t.hasOwnProperty(\"name\")&&(r.name=t.name),t.initializer&&t.initializer.length)for(r.initializer=[],n=0;n<t.initializer.length;++n)r.initializer[n]=l.onnx.TensorProto.toObject(t.initializer[n],e);if(null!=t.docString&&t.hasOwnProperty(\"docString\")&&(r.docString=t.docString),t.input&&t.input.length)for(r.input=[],n=0;n<t.input.length;++n)r.input[n]=l.onnx.ValueInfoProto.toObject(t.input[n],e);if(t.output&&t.output.length)for(r.output=[],n=0;n<t.output.length;++n)r.output[n]=l.onnx.ValueInfoProto.toObject(t.output[n],e);if(t.valueInfo&&t.valueInfo.length)for(r.valueInfo=[],n=0;n<t.valueInfo.length;++n)r.valueInfo[n]=l.onnx.ValueInfoProto.toObject(t.valueInfo[n],e);if(t.quantizationAnnotation&&t.quantizationAnnotation.length)for(r.quantizationAnnotation=[],n=0;n<t.quantizationAnnotation.length;++n)r.quantizationAnnotation[n]=l.onnx.TensorAnnotation.toObject(t.quantizationAnnotation[n],e);if(t.sparseInitializer&&t.sparseInitializer.length)for(r.sparseInitializer=[],n=0;n<t.sparseInitializer.length;++n)r.sparseInitializer[n]=l.onnx.SparseTensorProto.toObject(t.sparseInitializer[n],e);return r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.GraphProto\"},t}(),o.TensorProto=function(){function t(t){if(this.dims=[],this.floatData=[],this.int32Data=[],this.stringData=[],this.int64Data=[],this.externalData=[],this.doubleData=[],this.uint64Data=[],t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.dims=c.emptyArray,t.prototype.dataType=0,t.prototype.segment=null,t.prototype.floatData=c.emptyArray,t.prototype.int32Data=c.emptyArray,t.prototype.stringData=c.emptyArray,t.prototype.int64Data=c.emptyArray,t.prototype.name=\"\",t.prototype.docString=\"\",t.prototype.rawData=c.newBuffer([]),t.prototype.externalData=c.emptyArray,t.prototype.dataLocation=0,t.prototype.doubleData=c.emptyArray,t.prototype.uint64Data=c.emptyArray,t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=u.create()),null!=t.dims&&t.dims.length){e.uint32(10).fork();for(var r=0;r<t.dims.length;++r)e.int64(t.dims[r]);e.ldelim()}if(null!=t.dataType&&Object.hasOwnProperty.call(t,\"dataType\")&&e.uint32(16).int32(t.dataType),null!=t.segment&&Object.hasOwnProperty.call(t,\"segment\")&&l.onnx.TensorProto.Segment.encode(t.segment,e.uint32(26).fork()).ldelim(),null!=t.floatData&&t.floatData.length){for(e.uint32(34).fork(),r=0;r<t.floatData.length;++r)e.float(t.floatData[r]);e.ldelim()}if(null!=t.int32Data&&t.int32Data.length){for(e.uint32(42).fork(),r=0;r<t.int32Data.length;++r)e.int32(t.int32Data[r]);e.ldelim()}if(null!=t.stringData&&t.stringData.length)for(r=0;r<t.stringData.length;++r)e.uint32(50).bytes(t.stringData[r]);if(null!=t.int64Data&&t.int64Data.length){for(e.uint32(58).fork(),r=0;r<t.int64Data.length;++r)e.int64(t.int64Data[r]);e.ldelim()}if(null!=t.name&&Object.hasOwnProperty.call(t,\"name\")&&e.uint32(66).string(t.name),null!=t.rawData&&Object.hasOwnProperty.call(t,\"rawData\")&&e.uint32(74).bytes(t.rawData),null!=t.doubleData&&t.doubleData.length){for(e.uint32(82).fork(),r=0;r<t.doubleData.length;++r)e.double(t.doubleData[r]);e.ldelim()}if(null!=t.uint64Data&&t.uint64Data.length){for(e.uint32(90).fork(),r=0;r<t.uint64Data.length;++r)e.uint64(t.uint64Data[r]);e.ldelim()}if(null!=t.docString&&Object.hasOwnProperty.call(t,\"docString\")&&e.uint32(98).string(t.docString),null!=t.externalData&&t.externalData.length)for(r=0;r<t.externalData.length;++r)l.onnx.StringStringEntryProto.encode(t.externalData[r],e.uint32(106).fork()).ldelim();return null!=t.dataLocation&&Object.hasOwnProperty.call(t,\"dataLocation\")&&e.uint32(112).int32(t.dataLocation),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TensorProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:if(n.dims&&n.dims.length||(n.dims=[]),2==(7&i))for(var o=t.uint32()+t.pos;t.pos<o;)n.dims.push(t.int64());else n.dims.push(t.int64());break;case 2:n.dataType=t.int32();break;case 3:n.segment=l.onnx.TensorProto.Segment.decode(t,t.uint32());break;case 4:if(n.floatData&&n.floatData.length||(n.floatData=[]),2==(7&i))for(o=t.uint32()+t.pos;t.pos<o;)n.floatData.push(t.float());else n.floatData.push(t.float());break;case 5:if(n.int32Data&&n.int32Data.length||(n.int32Data=[]),2==(7&i))for(o=t.uint32()+t.pos;t.pos<o;)n.int32Data.push(t.int32());else n.int32Data.push(t.int32());break;case 6:n.stringData&&n.stringData.length||(n.stringData=[]),n.stringData.push(t.bytes());break;case 7:if(n.int64Data&&n.int64Data.length||(n.int64Data=[]),2==(7&i))for(o=t.uint32()+t.pos;t.pos<o;)n.int64Data.push(t.int64());else n.int64Data.push(t.int64());break;case 8:n.name=t.string();break;case 12:n.docString=t.string();break;case 9:n.rawData=t.bytes();break;case 13:n.externalData&&n.externalData.length||(n.externalData=[]),n.externalData.push(l.onnx.StringStringEntryProto.decode(t,t.uint32()));break;case 14:n.dataLocation=t.int32();break;case 10:if(n.doubleData&&n.doubleData.length||(n.doubleData=[]),2==(7&i))for(o=t.uint32()+t.pos;t.pos<o;)n.doubleData.push(t.double());else n.doubleData.push(t.double());break;case 11:if(n.uint64Data&&n.uint64Data.length||(n.uint64Data=[]),2==(7&i))for(o=t.uint32()+t.pos;t.pos<o;)n.uint64Data.push(t.uint64());else n.uint64Data.push(t.uint64());break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.dims&&t.hasOwnProperty(\"dims\")){if(!Array.isArray(t.dims))return\"dims: array expected\";for(var e=0;e<t.dims.length;++e)if(!(c.isInteger(t.dims[e])||t.dims[e]&&c.isInteger(t.dims[e].low)&&c.isInteger(t.dims[e].high)))return\"dims: integer|Long[] expected\"}if(null!=t.dataType&&t.hasOwnProperty(\"dataType\")&&!c.isInteger(t.dataType))return\"dataType: integer expected\";if(null!=t.segment&&t.hasOwnProperty(\"segment\")&&(r=l.onnx.TensorProto.Segment.verify(t.segment)))return\"segment.\"+r;if(null!=t.floatData&&t.hasOwnProperty(\"floatData\")){if(!Array.isArray(t.floatData))return\"floatData: array expected\";for(e=0;e<t.floatData.length;++e)if(\"number\"!=typeof t.floatData[e])return\"floatData: number[] expected\"}if(null!=t.int32Data&&t.hasOwnProperty(\"int32Data\")){if(!Array.isArray(t.int32Data))return\"int32Data: array expected\";for(e=0;e<t.int32Data.length;++e)if(!c.isInteger(t.int32Data[e]))return\"int32Data: integer[] expected\"}if(null!=t.stringData&&t.hasOwnProperty(\"stringData\")){if(!Array.isArray(t.stringData))return\"stringData: array expected\";for(e=0;e<t.stringData.length;++e)if(!(t.stringData[e]&&\"number\"==typeof t.stringData[e].length||c.isString(t.stringData[e])))return\"stringData: buffer[] expected\"}if(null!=t.int64Data&&t.hasOwnProperty(\"int64Data\")){if(!Array.isArray(t.int64Data))return\"int64Data: array expected\";for(e=0;e<t.int64Data.length;++e)if(!(c.isInteger(t.int64Data[e])||t.int64Data[e]&&c.isInteger(t.int64Data[e].low)&&c.isInteger(t.int64Data[e].high)))return\"int64Data: integer|Long[] expected\"}if(null!=t.name&&t.hasOwnProperty(\"name\")&&!c.isString(t.name))return\"name: string expected\";if(null!=t.docString&&t.hasOwnProperty(\"docString\")&&!c.isString(t.docString))return\"docString: string expected\";if(null!=t.rawData&&t.hasOwnProperty(\"rawData\")&&!(t.rawData&&\"number\"==typeof t.rawData.length||c.isString(t.rawData)))return\"rawData: buffer expected\";if(null!=t.externalData&&t.hasOwnProperty(\"externalData\")){if(!Array.isArray(t.externalData))return\"externalData: array expected\";for(e=0;e<t.externalData.length;++e){var r;if(r=l.onnx.StringStringEntryProto.verify(t.externalData[e]))return\"externalData.\"+r}}if(null!=t.dataLocation&&t.hasOwnProperty(\"dataLocation\"))switch(t.dataLocation){default:return\"dataLocation: enum value expected\";case 0:case 1:}if(null!=t.doubleData&&t.hasOwnProperty(\"doubleData\")){if(!Array.isArray(t.doubleData))return\"doubleData: array expected\";for(e=0;e<t.doubleData.length;++e)if(\"number\"!=typeof t.doubleData[e])return\"doubleData: number[] expected\"}if(null!=t.uint64Data&&t.hasOwnProperty(\"uint64Data\")){if(!Array.isArray(t.uint64Data))return\"uint64Data: array expected\";for(e=0;e<t.uint64Data.length;++e)if(!(c.isInteger(t.uint64Data[e])||t.uint64Data[e]&&c.isInteger(t.uint64Data[e].low)&&c.isInteger(t.uint64Data[e].high)))return\"uint64Data: integer|Long[] expected\"}return null},t.fromObject=function(t){if(t instanceof l.onnx.TensorProto)return t;var e=new l.onnx.TensorProto;if(t.dims){if(!Array.isArray(t.dims))throw TypeError(\".onnx.TensorProto.dims: array expected\");e.dims=[];for(var r=0;r<t.dims.length;++r)c.Long?(e.dims[r]=c.Long.fromValue(t.dims[r])).unsigned=!1:\"string\"==typeof t.dims[r]?e.dims[r]=parseInt(t.dims[r],10):\"number\"==typeof t.dims[r]?e.dims[r]=t.dims[r]:\"object\"==_typeof(t.dims[r])&&(e.dims[r]=new c.LongBits(t.dims[r].low>>>0,t.dims[r].high>>>0).toNumber())}if(null!=t.dataType&&(e.dataType=0|t.dataType),null!=t.segment){if(\"object\"!=_typeof(t.segment))throw TypeError(\".onnx.TensorProto.segment: object expected\");e.segment=l.onnx.TensorProto.Segment.fromObject(t.segment)}if(t.floatData){if(!Array.isArray(t.floatData))throw TypeError(\".onnx.TensorProto.floatData: array expected\");for(e.floatData=[],r=0;r<t.floatData.length;++r)e.floatData[r]=Number(t.floatData[r])}if(t.int32Data){if(!Array.isArray(t.int32Data))throw TypeError(\".onnx.TensorProto.int32Data: array expected\");for(e.int32Data=[],r=0;r<t.int32Data.length;++r)e.int32Data[r]=0|t.int32Data[r]}if(t.stringData){if(!Array.isArray(t.stringData))throw TypeError(\".onnx.TensorProto.stringData: array expected\");for(e.stringData=[],r=0;r<t.stringData.length;++r)\"string\"==typeof t.stringData[r]?c.base64.decode(t.stringData[r],e.stringData[r]=c.newBuffer(c.base64.length(t.stringData[r])),0):t.stringData[r].length>=0&&(e.stringData[r]=t.stringData[r])}if(t.int64Data){if(!Array.isArray(t.int64Data))throw TypeError(\".onnx.TensorProto.int64Data: array expected\");for(e.int64Data=[],r=0;r<t.int64Data.length;++r)c.Long?(e.int64Data[r]=c.Long.fromValue(t.int64Data[r])).unsigned=!1:\"string\"==typeof t.int64Data[r]?e.int64Data[r]=parseInt(t.int64Data[r],10):\"number\"==typeof t.int64Data[r]?e.int64Data[r]=t.int64Data[r]:\"object\"==_typeof(t.int64Data[r])&&(e.int64Data[r]=new c.LongBits(t.int64Data[r].low>>>0,t.int64Data[r].high>>>0).toNumber())}if(null!=t.name&&(e.name=String(t.name)),null!=t.docString&&(e.docString=String(t.docString)),null!=t.rawData&&(\"string\"==typeof t.rawData?c.base64.decode(t.rawData,e.rawData=c.newBuffer(c.base64.length(t.rawData)),0):t.rawData.length>=0&&(e.rawData=t.rawData)),t.externalData){if(!Array.isArray(t.externalData))throw TypeError(\".onnx.TensorProto.externalData: array expected\");for(e.externalData=[],r=0;r<t.externalData.length;++r){if(\"object\"!=_typeof(t.externalData[r]))throw TypeError(\".onnx.TensorProto.externalData: object expected\");e.externalData[r]=l.onnx.StringStringEntryProto.fromObject(t.externalData[r])}}switch(t.dataLocation){default:if(\"number\"==typeof t.dataLocation){e.dataLocation=t.dataLocation;break}break;case\"DEFAULT\":case 0:e.dataLocation=0;break;case\"EXTERNAL\":case 1:e.dataLocation=1}if(t.doubleData){if(!Array.isArray(t.doubleData))throw TypeError(\".onnx.TensorProto.doubleData: array expected\");for(e.doubleData=[],r=0;r<t.doubleData.length;++r)e.doubleData[r]=Number(t.doubleData[r])}if(t.uint64Data){if(!Array.isArray(t.uint64Data))throw TypeError(\".onnx.TensorProto.uint64Data: array expected\");for(e.uint64Data=[],r=0;r<t.uint64Data.length;++r)c.Long?(e.uint64Data[r]=c.Long.fromValue(t.uint64Data[r])).unsigned=!0:\"string\"==typeof t.uint64Data[r]?e.uint64Data[r]=parseInt(t.uint64Data[r],10):\"number\"==typeof t.uint64Data[r]?e.uint64Data[r]=t.uint64Data[r]:\"object\"==_typeof(t.uint64Data[r])&&(e.uint64Data[r]=new c.LongBits(t.uint64Data[r].low>>>0,t.uint64Data[r].high>>>0).toNumber(!0))}return e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.dims=[],r.floatData=[],r.int32Data=[],r.stringData=[],r.int64Data=[],r.doubleData=[],r.uint64Data=[],r.externalData=[]),e.defaults&&(r.dataType=0,r.segment=null,r.name=\"\",e.bytes===String?r.rawData=\"\":(r.rawData=[],e.bytes!==Array&&(r.rawData=c.newBuffer(r.rawData))),r.docString=\"\",r.dataLocation=e.enums===String?\"DEFAULT\":0),t.dims&&t.dims.length){r.dims=[];for(var n=0;n<t.dims.length;++n)\"number\"==typeof t.dims[n]?r.dims[n]=e.longs===String?String(t.dims[n]):t.dims[n]:r.dims[n]=e.longs===String?c.Long.prototype.toString.call(t.dims[n]):e.longs===Number?new c.LongBits(t.dims[n].low>>>0,t.dims[n].high>>>0).toNumber():t.dims[n]}if(null!=t.dataType&&t.hasOwnProperty(\"dataType\")&&(r.dataType=t.dataType),null!=t.segment&&t.hasOwnProperty(\"segment\")&&(r.segment=l.onnx.TensorProto.Segment.toObject(t.segment,e)),t.floatData&&t.floatData.length)for(r.floatData=[],n=0;n<t.floatData.length;++n)r.floatData[n]=e.json&&!isFinite(t.floatData[n])?String(t.floatData[n]):t.floatData[n];if(t.int32Data&&t.int32Data.length)for(r.int32Data=[],n=0;n<t.int32Data.length;++n)r.int32Data[n]=t.int32Data[n];if(t.stringData&&t.stringData.length)for(r.stringData=[],n=0;n<t.stringData.length;++n)r.stringData[n]=e.bytes===String?c.base64.encode(t.stringData[n],0,t.stringData[n].length):e.bytes===Array?Array.prototype.slice.call(t.stringData[n]):t.stringData[n];if(t.int64Data&&t.int64Data.length)for(r.int64Data=[],n=0;n<t.int64Data.length;++n)\"number\"==typeof t.int64Data[n]?r.int64Data[n]=e.longs===String?String(t.int64Data[n]):t.int64Data[n]:r.int64Data[n]=e.longs===String?c.Long.prototype.toString.call(t.int64Data[n]):e.longs===Number?new c.LongBits(t.int64Data[n].low>>>0,t.int64Data[n].high>>>0).toNumber():t.int64Data[n];if(null!=t.name&&t.hasOwnProperty(\"name\")&&(r.name=t.name),null!=t.rawData&&t.hasOwnProperty(\"rawData\")&&(r.rawData=e.bytes===String?c.base64.encode(t.rawData,0,t.rawData.length):e.bytes===Array?Array.prototype.slice.call(t.rawData):t.rawData),t.doubleData&&t.doubleData.length)for(r.doubleData=[],n=0;n<t.doubleData.length;++n)r.doubleData[n]=e.json&&!isFinite(t.doubleData[n])?String(t.doubleData[n]):t.doubleData[n];if(t.uint64Data&&t.uint64Data.length)for(r.uint64Data=[],n=0;n<t.uint64Data.length;++n)\"number\"==typeof t.uint64Data[n]?r.uint64Data[n]=e.longs===String?String(t.uint64Data[n]):t.uint64Data[n]:r.uint64Data[n]=e.longs===String?c.Long.prototype.toString.call(t.uint64Data[n]):e.longs===Number?new c.LongBits(t.uint64Data[n].low>>>0,t.uint64Data[n].high>>>0).toNumber(!0):t.uint64Data[n];if(null!=t.docString&&t.hasOwnProperty(\"docString\")&&(r.docString=t.docString),t.externalData&&t.externalData.length)for(r.externalData=[],n=0;n<t.externalData.length;++n)r.externalData[n]=l.onnx.StringStringEntryProto.toObject(t.externalData[n],e);return null!=t.dataLocation&&t.hasOwnProperty(\"dataLocation\")&&(r.dataLocation=e.enums===String?void 0===l.onnx.TensorProto.DataLocation[t.dataLocation]?t.dataLocation:l.onnx.TensorProto.DataLocation[t.dataLocation]:t.dataLocation),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TensorProto\"},t.DataType=function(){var t={},e=Object.create(t);return e[t[0]=\"UNDEFINED\"]=0,e[t[1]=\"FLOAT\"]=1,e[t[2]=\"UINT8\"]=2,e[t[3]=\"INT8\"]=3,e[t[4]=\"UINT16\"]=4,e[t[5]=\"INT16\"]=5,e[t[6]=\"INT32\"]=6,e[t[7]=\"INT64\"]=7,e[t[8]=\"STRING\"]=8,e[t[9]=\"BOOL\"]=9,e[t[10]=\"FLOAT16\"]=10,e[t[11]=\"DOUBLE\"]=11,e[t[12]=\"UINT32\"]=12,e[t[13]=\"UINT64\"]=13,e[t[14]=\"COMPLEX64\"]=14,e[t[15]=\"COMPLEX128\"]=15,e[t[16]=\"BFLOAT16\"]=16,e[t[17]=\"FLOAT8E4M3FN\"]=17,e[t[18]=\"FLOAT8E4M3FNUZ\"]=18,e[t[19]=\"FLOAT8E5M2\"]=19,e[t[20]=\"FLOAT8E5M2FNUZ\"]=20,e}(),t.Segment=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.begin=c.Long?c.Long.fromBits(0,0,!1):0,t.prototype.end=c.Long?c.Long.fromBits(0,0,!1):0,t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=u.create()),null!=t.begin&&Object.hasOwnProperty.call(t,\"begin\")&&e.uint32(8).int64(t.begin),null!=t.end&&Object.hasOwnProperty.call(t,\"end\")&&e.uint32(16).int64(t.end),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TensorProto.Segment;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.begin=t.int64();break;case 2:n.end=t.int64();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return\"object\"!=_typeof(t)||null===t?\"object expected\":null!=t.begin&&t.hasOwnProperty(\"begin\")&&!(c.isInteger(t.begin)||t.begin&&c.isInteger(t.begin.low)&&c.isInteger(t.begin.high))?\"begin: integer|Long expected\":null!=t.end&&t.hasOwnProperty(\"end\")&&!(c.isInteger(t.end)||t.end&&c.isInteger(t.end.low)&&c.isInteger(t.end.high))?\"end: integer|Long expected\":null},t.fromObject=function(t){if(t instanceof l.onnx.TensorProto.Segment)return t;var e=new l.onnx.TensorProto.Segment;return null!=t.begin&&(c.Long?(e.begin=c.Long.fromValue(t.begin)).unsigned=!1:\"string\"==typeof t.begin?e.begin=parseInt(t.begin,10):\"number\"==typeof t.begin?e.begin=t.begin:\"object\"==_typeof(t.begin)&&(e.begin=new c.LongBits(t.begin.low>>>0,t.begin.high>>>0).toNumber())),null!=t.end&&(c.Long?(e.end=c.Long.fromValue(t.end)).unsigned=!1:\"string\"==typeof t.end?e.end=parseInt(t.end,10):\"number\"==typeof t.end?e.end=t.end:\"object\"==_typeof(t.end)&&(e.end=new c.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber())),e},t.toObject=function(t,e){e||(e={});var r={};if(e.defaults){if(c.Long){var n=new c.Long(0,0,!1);r.begin=e.longs===String?n.toString():e.longs===Number?n.toNumber():n}else r.begin=e.longs===String?\"0\":0;c.Long?(n=new c.Long(0,0,!1),r.end=e.longs===String?n.toString():e.longs===Number?n.toNumber():n):r.end=e.longs===String?\"0\":0}return null!=t.begin&&t.hasOwnProperty(\"begin\")&&(\"number\"==typeof t.begin?r.begin=e.longs===String?String(t.begin):t.begin:r.begin=e.longs===String?c.Long.prototype.toString.call(t.begin):e.longs===Number?new c.LongBits(t.begin.low>>>0,t.begin.high>>>0).toNumber():t.begin),null!=t.end&&t.hasOwnProperty(\"end\")&&(\"number\"==typeof t.end?r.end=e.longs===String?String(t.end):t.end:r.end=e.longs===String?c.Long.prototype.toString.call(t.end):e.longs===Number?new c.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber():t.end),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TensorProto.Segment\"},t}(),t.DataLocation=function(){var t={},e=Object.create(t);return e[t[0]=\"DEFAULT\"]=0,e[t[1]=\"EXTERNAL\"]=1,e}(),t}(),o.SparseTensorProto=function(){function t(t){if(this.dims=[],t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.values=null,t.prototype.indices=null,t.prototype.dims=c.emptyArray,t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=u.create()),null!=t.values&&Object.hasOwnProperty.call(t,\"values\")&&l.onnx.TensorProto.encode(t.values,e.uint32(10).fork()).ldelim(),null!=t.indices&&Object.hasOwnProperty.call(t,\"indices\")&&l.onnx.TensorProto.encode(t.indices,e.uint32(18).fork()).ldelim(),null!=t.dims&&t.dims.length){e.uint32(26).fork();for(var r=0;r<t.dims.length;++r)e.int64(t.dims[r]);e.ldelim()}return e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.SparseTensorProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.values=l.onnx.TensorProto.decode(t,t.uint32());break;case 2:n.indices=l.onnx.TensorProto.decode(t,t.uint32());break;case 3:if(n.dims&&n.dims.length||(n.dims=[]),2==(7&i))for(var o=t.uint32()+t.pos;t.pos<o;)n.dims.push(t.int64());else n.dims.push(t.int64());break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";var e;if(null!=t.values&&t.hasOwnProperty(\"values\")&&(e=l.onnx.TensorProto.verify(t.values)))return\"values.\"+e;if(null!=t.indices&&t.hasOwnProperty(\"indices\")&&(e=l.onnx.TensorProto.verify(t.indices)))return\"indices.\"+e;if(null!=t.dims&&t.hasOwnProperty(\"dims\")){if(!Array.isArray(t.dims))return\"dims: array expected\";for(var r=0;r<t.dims.length;++r)if(!(c.isInteger(t.dims[r])||t.dims[r]&&c.isInteger(t.dims[r].low)&&c.isInteger(t.dims[r].high)))return\"dims: integer|Long[] expected\"}return null},t.fromObject=function(t){if(t instanceof l.onnx.SparseTensorProto)return t;var e=new l.onnx.SparseTensorProto;if(null!=t.values){if(\"object\"!=_typeof(t.values))throw TypeError(\".onnx.SparseTensorProto.values: object expected\");e.values=l.onnx.TensorProto.fromObject(t.values)}if(null!=t.indices){if(\"object\"!=_typeof(t.indices))throw TypeError(\".onnx.SparseTensorProto.indices: object expected\");e.indices=l.onnx.TensorProto.fromObject(t.indices)}if(t.dims){if(!Array.isArray(t.dims))throw TypeError(\".onnx.SparseTensorProto.dims: array expected\");e.dims=[];for(var r=0;r<t.dims.length;++r)c.Long?(e.dims[r]=c.Long.fromValue(t.dims[r])).unsigned=!1:\"string\"==typeof t.dims[r]?e.dims[r]=parseInt(t.dims[r],10):\"number\"==typeof t.dims[r]?e.dims[r]=t.dims[r]:\"object\"==_typeof(t.dims[r])&&(e.dims[r]=new c.LongBits(t.dims[r].low>>>0,t.dims[r].high>>>0).toNumber())}return e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.dims=[]),e.defaults&&(r.values=null,r.indices=null),null!=t.values&&t.hasOwnProperty(\"values\")&&(r.values=l.onnx.TensorProto.toObject(t.values,e)),null!=t.indices&&t.hasOwnProperty(\"indices\")&&(r.indices=l.onnx.TensorProto.toObject(t.indices,e)),t.dims&&t.dims.length){r.dims=[];for(var n=0;n<t.dims.length;++n)\"number\"==typeof t.dims[n]?r.dims[n]=e.longs===String?String(t.dims[n]):t.dims[n]:r.dims[n]=e.longs===String?c.Long.prototype.toString.call(t.dims[n]):e.longs===Number?new c.LongBits(t.dims[n].low>>>0,t.dims[n].high>>>0).toNumber():t.dims[n]}return r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.SparseTensorProto\"},t}(),o.TensorShapeProto=function(){function t(t){if(this.dim=[],t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.dim=c.emptyArray,t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=u.create()),null!=t.dim&&t.dim.length)for(var r=0;r<t.dim.length;++r)l.onnx.TensorShapeProto.Dimension.encode(t.dim[r],e.uint32(10).fork()).ldelim();return e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TensorShapeProto;t.pos<r;){var i=t.uint32();i>>>3==1?(n.dim&&n.dim.length||(n.dim=[]),n.dim.push(l.onnx.TensorShapeProto.Dimension.decode(t,t.uint32()))):t.skipType(7&i)}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.dim&&t.hasOwnProperty(\"dim\")){if(!Array.isArray(t.dim))return\"dim: array expected\";for(var e=0;e<t.dim.length;++e){var r=l.onnx.TensorShapeProto.Dimension.verify(t.dim[e]);if(r)return\"dim.\"+r}}return null},t.fromObject=function(t){if(t instanceof l.onnx.TensorShapeProto)return t;var e=new l.onnx.TensorShapeProto;if(t.dim){if(!Array.isArray(t.dim))throw TypeError(\".onnx.TensorShapeProto.dim: array expected\");e.dim=[];for(var r=0;r<t.dim.length;++r){if(\"object\"!=_typeof(t.dim[r]))throw TypeError(\".onnx.TensorShapeProto.dim: object expected\");e.dim[r]=l.onnx.TensorShapeProto.Dimension.fromObject(t.dim[r])}}return e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.dim=[]),t.dim&&t.dim.length){r.dim=[];for(var n=0;n<t.dim.length;++n)r.dim[n]=l.onnx.TensorShapeProto.Dimension.toObject(t.dim[n],e)}return r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TensorShapeProto\"},t.Dimension=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}var e;return t.prototype.dimValue=null,t.prototype.dimParam=null,t.prototype.denotation=\"\",Object.defineProperty(t.prototype,\"value\",{get:c.oneOfGetter(e=[\"dimValue\",\"dimParam\"]),set:c.oneOfSetter(e)}),t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=u.create()),null!=t.dimValue&&Object.hasOwnProperty.call(t,\"dimValue\")&&e.uint32(8).int64(t.dimValue),null!=t.dimParam&&Object.hasOwnProperty.call(t,\"dimParam\")&&e.uint32(18).string(t.dimParam),null!=t.denotation&&Object.hasOwnProperty.call(t,\"denotation\")&&e.uint32(26).string(t.denotation),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TensorShapeProto.Dimension;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.dimValue=t.int64();break;case 2:n.dimParam=t.string();break;case 3:n.denotation=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";var e={};if(null!=t.dimValue&&t.hasOwnProperty(\"dimValue\")&&(e.value=1,!(c.isInteger(t.dimValue)||t.dimValue&&c.isInteger(t.dimValue.low)&&c.isInteger(t.dimValue.high))))return\"dimValue: integer|Long expected\";if(null!=t.dimParam&&t.hasOwnProperty(\"dimParam\")){if(1===e.value)return\"value: multiple values\";if(e.value=1,!c.isString(t.dimParam))return\"dimParam: string expected\"}return null!=t.denotation&&t.hasOwnProperty(\"denotation\")&&!c.isString(t.denotation)?\"denotation: string expected\":null},t.fromObject=function(t){if(t instanceof l.onnx.TensorShapeProto.Dimension)return t;var e=new l.onnx.TensorShapeProto.Dimension;return null!=t.dimValue&&(c.Long?(e.dimValue=c.Long.fromValue(t.dimValue)).unsigned=!1:\"string\"==typeof t.dimValue?e.dimValue=parseInt(t.dimValue,10):\"number\"==typeof t.dimValue?e.dimValue=t.dimValue:\"object\"==_typeof(t.dimValue)&&(e.dimValue=new c.LongBits(t.dimValue.low>>>0,t.dimValue.high>>>0).toNumber())),null!=t.dimParam&&(e.dimParam=String(t.dimParam)),null!=t.denotation&&(e.denotation=String(t.denotation)),e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.denotation=\"\"),null!=t.dimValue&&t.hasOwnProperty(\"dimValue\")&&(\"number\"==typeof t.dimValue?r.dimValue=e.longs===String?String(t.dimValue):t.dimValue:r.dimValue=e.longs===String?c.Long.prototype.toString.call(t.dimValue):e.longs===Number?new c.LongBits(t.dimValue.low>>>0,t.dimValue.high>>>0).toNumber():t.dimValue,e.oneofs&&(r.value=\"dimValue\")),null!=t.dimParam&&t.hasOwnProperty(\"dimParam\")&&(r.dimParam=t.dimParam,e.oneofs&&(r.value=\"dimParam\")),null!=t.denotation&&t.hasOwnProperty(\"denotation\")&&(r.denotation=t.denotation),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TensorShapeProto.Dimension\"},t}(),t}(),o.TypeProto=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}var e;return t.prototype.tensorType=null,t.prototype.sequenceType=null,t.prototype.mapType=null,t.prototype.optionalType=null,t.prototype.sparseTensorType=null,t.prototype.denotation=\"\",Object.defineProperty(t.prototype,\"value\",{get:c.oneOfGetter(e=[\"tensorType\",\"sequenceType\",\"mapType\",\"optionalType\",\"sparseTensorType\"]),set:c.oneOfSetter(e)}),t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=u.create()),null!=t.tensorType&&Object.hasOwnProperty.call(t,\"tensorType\")&&l.onnx.TypeProto.Tensor.encode(t.tensorType,e.uint32(10).fork()).ldelim(),null!=t.sequenceType&&Object.hasOwnProperty.call(t,\"sequenceType\")&&l.onnx.TypeProto.Sequence.encode(t.sequenceType,e.uint32(34).fork()).ldelim(),null!=t.mapType&&Object.hasOwnProperty.call(t,\"mapType\")&&l.onnx.TypeProto.Map.encode(t.mapType,e.uint32(42).fork()).ldelim(),null!=t.denotation&&Object.hasOwnProperty.call(t,\"denotation\")&&e.uint32(50).string(t.denotation),null!=t.sparseTensorType&&Object.hasOwnProperty.call(t,\"sparseTensorType\")&&l.onnx.TypeProto.SparseTensor.encode(t.sparseTensorType,e.uint32(66).fork()).ldelim(),null!=t.optionalType&&Object.hasOwnProperty.call(t,\"optionalType\")&&l.onnx.TypeProto.Optional.encode(t.optionalType,e.uint32(74).fork()).ldelim(),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TypeProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.tensorType=l.onnx.TypeProto.Tensor.decode(t,t.uint32());break;case 4:n.sequenceType=l.onnx.TypeProto.Sequence.decode(t,t.uint32());break;case 5:n.mapType=l.onnx.TypeProto.Map.decode(t,t.uint32());break;case 9:n.optionalType=l.onnx.TypeProto.Optional.decode(t,t.uint32());break;case 8:n.sparseTensorType=l.onnx.TypeProto.SparseTensor.decode(t,t.uint32());break;case 6:n.denotation=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";var e={};if(null!=t.tensorType&&t.hasOwnProperty(\"tensorType\")&&(e.value=1,r=l.onnx.TypeProto.Tensor.verify(t.tensorType)))return\"tensorType.\"+r;if(null!=t.sequenceType&&t.hasOwnProperty(\"sequenceType\")){if(1===e.value)return\"value: multiple values\";if(e.value=1,r=l.onnx.TypeProto.Sequence.verify(t.sequenceType))return\"sequenceType.\"+r}if(null!=t.mapType&&t.hasOwnProperty(\"mapType\")){if(1===e.value)return\"value: multiple values\";if(e.value=1,r=l.onnx.TypeProto.Map.verify(t.mapType))return\"mapType.\"+r}if(null!=t.optionalType&&t.hasOwnProperty(\"optionalType\")){if(1===e.value)return\"value: multiple values\";if(e.value=1,r=l.onnx.TypeProto.Optional.verify(t.optionalType))return\"optionalType.\"+r}if(null!=t.sparseTensorType&&t.hasOwnProperty(\"sparseTensorType\")){if(1===e.value)return\"value: multiple values\";var r;if(e.value=1,r=l.onnx.TypeProto.SparseTensor.verify(t.sparseTensorType))return\"sparseTensorType.\"+r}return null!=t.denotation&&t.hasOwnProperty(\"denotation\")&&!c.isString(t.denotation)?\"denotation: string expected\":null},t.fromObject=function(t){if(t instanceof l.onnx.TypeProto)return t;var e=new l.onnx.TypeProto;if(null!=t.tensorType){if(\"object\"!=_typeof(t.tensorType))throw TypeError(\".onnx.TypeProto.tensorType: object expected\");e.tensorType=l.onnx.TypeProto.Tensor.fromObject(t.tensorType)}if(null!=t.sequenceType){if(\"object\"!=_typeof(t.sequenceType))throw TypeError(\".onnx.TypeProto.sequenceType: object expected\");e.sequenceType=l.onnx.TypeProto.Sequence.fromObject(t.sequenceType)}if(null!=t.mapType){if(\"object\"!=_typeof(t.mapType))throw TypeError(\".onnx.TypeProto.mapType: object expected\");e.mapType=l.onnx.TypeProto.Map.fromObject(t.mapType)}if(null!=t.optionalType){if(\"object\"!=_typeof(t.optionalType))throw TypeError(\".onnx.TypeProto.optionalType: object expected\");e.optionalType=l.onnx.TypeProto.Optional.fromObject(t.optionalType)}if(null!=t.sparseTensorType){if(\"object\"!=_typeof(t.sparseTensorType))throw TypeError(\".onnx.TypeProto.sparseTensorType: object expected\");e.sparseTensorType=l.onnx.TypeProto.SparseTensor.fromObject(t.sparseTensorType)}return null!=t.denotation&&(e.denotation=String(t.denotation)),e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.denotation=\"\"),null!=t.tensorType&&t.hasOwnProperty(\"tensorType\")&&(r.tensorType=l.onnx.TypeProto.Tensor.toObject(t.tensorType,e),e.oneofs&&(r.value=\"tensorType\")),null!=t.sequenceType&&t.hasOwnProperty(\"sequenceType\")&&(r.sequenceType=l.onnx.TypeProto.Sequence.toObject(t.sequenceType,e),e.oneofs&&(r.value=\"sequenceType\")),null!=t.mapType&&t.hasOwnProperty(\"mapType\")&&(r.mapType=l.onnx.TypeProto.Map.toObject(t.mapType,e),e.oneofs&&(r.value=\"mapType\")),null!=t.denotation&&t.hasOwnProperty(\"denotation\")&&(r.denotation=t.denotation),null!=t.sparseTensorType&&t.hasOwnProperty(\"sparseTensorType\")&&(r.sparseTensorType=l.onnx.TypeProto.SparseTensor.toObject(t.sparseTensorType,e),e.oneofs&&(r.value=\"sparseTensorType\")),null!=t.optionalType&&t.hasOwnProperty(\"optionalType\")&&(r.optionalType=l.onnx.TypeProto.Optional.toObject(t.optionalType,e),e.oneofs&&(r.value=\"optionalType\")),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TypeProto\"},t.Tensor=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.elemType=0,t.prototype.shape=null,t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=u.create()),null!=t.elemType&&Object.hasOwnProperty.call(t,\"elemType\")&&e.uint32(8).int32(t.elemType),null!=t.shape&&Object.hasOwnProperty.call(t,\"shape\")&&l.onnx.TensorShapeProto.encode(t.shape,e.uint32(18).fork()).ldelim(),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TypeProto.Tensor;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.elemType=t.int32();break;case 2:n.shape=l.onnx.TensorShapeProto.decode(t,t.uint32());break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.elemType&&t.hasOwnProperty(\"elemType\")&&!c.isInteger(t.elemType))return\"elemType: integer expected\";if(null!=t.shape&&t.hasOwnProperty(\"shape\")){var e=l.onnx.TensorShapeProto.verify(t.shape);if(e)return\"shape.\"+e}return null},t.fromObject=function(t){if(t instanceof l.onnx.TypeProto.Tensor)return t;var e=new l.onnx.TypeProto.Tensor;if(null!=t.elemType&&(e.elemType=0|t.elemType),null!=t.shape){if(\"object\"!=_typeof(t.shape))throw TypeError(\".onnx.TypeProto.Tensor.shape: object expected\");e.shape=l.onnx.TensorShapeProto.fromObject(t.shape)}return e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.elemType=0,r.shape=null),null!=t.elemType&&t.hasOwnProperty(\"elemType\")&&(r.elemType=t.elemType),null!=t.shape&&t.hasOwnProperty(\"shape\")&&(r.shape=l.onnx.TensorShapeProto.toObject(t.shape,e)),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TypeProto.Tensor\"},t}(),t.Sequence=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.elemType=null,t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=u.create()),null!=t.elemType&&Object.hasOwnProperty.call(t,\"elemType\")&&l.onnx.TypeProto.encode(t.elemType,e.uint32(10).fork()).ldelim(),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TypeProto.Sequence;t.pos<r;){var i=t.uint32();i>>>3==1?n.elemType=l.onnx.TypeProto.decode(t,t.uint32()):t.skipType(7&i)}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.elemType&&t.hasOwnProperty(\"elemType\")){var e=l.onnx.TypeProto.verify(t.elemType);if(e)return\"elemType.\"+e}return null},t.fromObject=function(t){if(t instanceof l.onnx.TypeProto.Sequence)return t;var e=new l.onnx.TypeProto.Sequence;if(null!=t.elemType){if(\"object\"!=_typeof(t.elemType))throw TypeError(\".onnx.TypeProto.Sequence.elemType: object expected\");e.elemType=l.onnx.TypeProto.fromObject(t.elemType)}return e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.elemType=null),null!=t.elemType&&t.hasOwnProperty(\"elemType\")&&(r.elemType=l.onnx.TypeProto.toObject(t.elemType,e)),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TypeProto.Sequence\"},t}(),t.Map=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.keyType=0,t.prototype.valueType=null,t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=u.create()),null!=t.keyType&&Object.hasOwnProperty.call(t,\"keyType\")&&e.uint32(8).int32(t.keyType),null!=t.valueType&&Object.hasOwnProperty.call(t,\"valueType\")&&l.onnx.TypeProto.encode(t.valueType,e.uint32(18).fork()).ldelim(),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TypeProto.Map;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.keyType=t.int32();break;case 2:n.valueType=l.onnx.TypeProto.decode(t,t.uint32());break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.keyType&&t.hasOwnProperty(\"keyType\")&&!c.isInteger(t.keyType))return\"keyType: integer expected\";if(null!=t.valueType&&t.hasOwnProperty(\"valueType\")){var e=l.onnx.TypeProto.verify(t.valueType);if(e)return\"valueType.\"+e}return null},t.fromObject=function(t){if(t instanceof l.onnx.TypeProto.Map)return t;var e=new l.onnx.TypeProto.Map;if(null!=t.keyType&&(e.keyType=0|t.keyType),null!=t.valueType){if(\"object\"!=_typeof(t.valueType))throw TypeError(\".onnx.TypeProto.Map.valueType: object expected\");e.valueType=l.onnx.TypeProto.fromObject(t.valueType)}return e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.keyType=0,r.valueType=null),null!=t.keyType&&t.hasOwnProperty(\"keyType\")&&(r.keyType=t.keyType),null!=t.valueType&&t.hasOwnProperty(\"valueType\")&&(r.valueType=l.onnx.TypeProto.toObject(t.valueType,e)),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TypeProto.Map\"},t}(),t.Optional=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.elemType=null,t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=u.create()),null!=t.elemType&&Object.hasOwnProperty.call(t,\"elemType\")&&l.onnx.TypeProto.encode(t.elemType,e.uint32(10).fork()).ldelim(),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TypeProto.Optional;t.pos<r;){var i=t.uint32();i>>>3==1?n.elemType=l.onnx.TypeProto.decode(t,t.uint32()):t.skipType(7&i)}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.elemType&&t.hasOwnProperty(\"elemType\")){var e=l.onnx.TypeProto.verify(t.elemType);if(e)return\"elemType.\"+e}return null},t.fromObject=function(t){if(t instanceof l.onnx.TypeProto.Optional)return t;var e=new l.onnx.TypeProto.Optional;if(null!=t.elemType){if(\"object\"!=_typeof(t.elemType))throw TypeError(\".onnx.TypeProto.Optional.elemType: object expected\");e.elemType=l.onnx.TypeProto.fromObject(t.elemType)}return e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.elemType=null),null!=t.elemType&&t.hasOwnProperty(\"elemType\")&&(r.elemType=l.onnx.TypeProto.toObject(t.elemType,e)),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TypeProto.Optional\"},t}(),t.SparseTensor=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.elemType=0,t.prototype.shape=null,t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=u.create()),null!=t.elemType&&Object.hasOwnProperty.call(t,\"elemType\")&&e.uint32(8).int32(t.elemType),null!=t.shape&&Object.hasOwnProperty.call(t,\"shape\")&&l.onnx.TensorShapeProto.encode(t.shape,e.uint32(18).fork()).ldelim(),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.TypeProto.SparseTensor;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.elemType=t.int32();break;case 2:n.shape=l.onnx.TensorShapeProto.decode(t,t.uint32());break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.elemType&&t.hasOwnProperty(\"elemType\")&&!c.isInteger(t.elemType))return\"elemType: integer expected\";if(null!=t.shape&&t.hasOwnProperty(\"shape\")){var e=l.onnx.TensorShapeProto.verify(t.shape);if(e)return\"shape.\"+e}return null},t.fromObject=function(t){if(t instanceof l.onnx.TypeProto.SparseTensor)return t;var e=new l.onnx.TypeProto.SparseTensor;if(null!=t.elemType&&(e.elemType=0|t.elemType),null!=t.shape){if(\"object\"!=_typeof(t.shape))throw TypeError(\".onnx.TypeProto.SparseTensor.shape: object expected\");e.shape=l.onnx.TensorShapeProto.fromObject(t.shape)}return e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.elemType=0,r.shape=null),null!=t.elemType&&t.hasOwnProperty(\"elemType\")&&(r.elemType=t.elemType),null!=t.shape&&t.hasOwnProperty(\"shape\")&&(r.shape=l.onnx.TensorShapeProto.toObject(t.shape,e)),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.TypeProto.SparseTensor\"},t}(),t}(),o.OperatorSetIdProto=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.domain=\"\",t.prototype.version=c.Long?c.Long.fromBits(0,0,!1):0,t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=u.create()),null!=t.domain&&Object.hasOwnProperty.call(t,\"domain\")&&e.uint32(10).string(t.domain),null!=t.version&&Object.hasOwnProperty.call(t,\"version\")&&e.uint32(16).int64(t.version),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.OperatorSetIdProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.domain=t.string();break;case 2:n.version=t.int64();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return\"object\"!=_typeof(t)||null===t?\"object expected\":null!=t.domain&&t.hasOwnProperty(\"domain\")&&!c.isString(t.domain)?\"domain: string expected\":null!=t.version&&t.hasOwnProperty(\"version\")&&!(c.isInteger(t.version)||t.version&&c.isInteger(t.version.low)&&c.isInteger(t.version.high))?\"version: integer|Long expected\":null},t.fromObject=function(t){if(t instanceof l.onnx.OperatorSetIdProto)return t;var e=new l.onnx.OperatorSetIdProto;return null!=t.domain&&(e.domain=String(t.domain)),null!=t.version&&(c.Long?(e.version=c.Long.fromValue(t.version)).unsigned=!1:\"string\"==typeof t.version?e.version=parseInt(t.version,10):\"number\"==typeof t.version?e.version=t.version:\"object\"==_typeof(t.version)&&(e.version=new c.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber())),e},t.toObject=function(t,e){e||(e={});var r={};if(e.defaults)if(r.domain=\"\",c.Long){var n=new c.Long(0,0,!1);r.version=e.longs===String?n.toString():e.longs===Number?n.toNumber():n}else r.version=e.longs===String?\"0\":0;return null!=t.domain&&t.hasOwnProperty(\"domain\")&&(r.domain=t.domain),null!=t.version&&t.hasOwnProperty(\"version\")&&(\"number\"==typeof t.version?r.version=e.longs===String?String(t.version):t.version:r.version=e.longs===String?c.Long.prototype.toString.call(t.version):e.longs===Number?new c.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber():t.version),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.OperatorSetIdProto\"},t}(),o.OperatorStatus=function(){var t={},e=Object.create(t);return e[t[0]=\"EXPERIMENTAL\"]=0,e[t[1]=\"STABLE\"]=1,e}(),o.FunctionProto=function(){function t(t){if(this.input=[],this.output=[],this.attribute=[],this.attributeProto=[],this.node=[],this.opsetImport=[],t)for(var e=Object.keys(t),r=0;r<e.length;++r)null!=t[e[r]]&&(this[e[r]]=t[e[r]])}return t.prototype.name=\"\",t.prototype.input=c.emptyArray,t.prototype.output=c.emptyArray,t.prototype.attribute=c.emptyArray,t.prototype.attributeProto=c.emptyArray,t.prototype.node=c.emptyArray,t.prototype.docString=\"\",t.prototype.opsetImport=c.emptyArray,t.prototype.domain=\"\",t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=u.create()),null!=t.name&&Object.hasOwnProperty.call(t,\"name\")&&e.uint32(10).string(t.name),null!=t.input&&t.input.length)for(var r=0;r<t.input.length;++r)e.uint32(34).string(t.input[r]);if(null!=t.output&&t.output.length)for(r=0;r<t.output.length;++r)e.uint32(42).string(t.output[r]);if(null!=t.attribute&&t.attribute.length)for(r=0;r<t.attribute.length;++r)e.uint32(50).string(t.attribute[r]);if(null!=t.node&&t.node.length)for(r=0;r<t.node.length;++r)l.onnx.NodeProto.encode(t.node[r],e.uint32(58).fork()).ldelim();if(null!=t.docString&&Object.hasOwnProperty.call(t,\"docString\")&&e.uint32(66).string(t.docString),null!=t.opsetImport&&t.opsetImport.length)for(r=0;r<t.opsetImport.length;++r)l.onnx.OperatorSetIdProto.encode(t.opsetImport[r],e.uint32(74).fork()).ldelim();if(null!=t.domain&&Object.hasOwnProperty.call(t,\"domain\")&&e.uint32(82).string(t.domain),null!=t.attributeProto&&t.attributeProto.length)for(r=0;r<t.attributeProto.length;++r)l.onnx.AttributeProto.encode(t.attributeProto[r],e.uint32(90).fork()).ldelim();return e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var r=void 0===e?t.len:t.pos+e,n=new l.onnx.FunctionProto;t.pos<r;){var i=t.uint32();switch(i>>>3){case 1:n.name=t.string();break;case 4:n.input&&n.input.length||(n.input=[]),n.input.push(t.string());break;case 5:n.output&&n.output.length||(n.output=[]),n.output.push(t.string());break;case 6:n.attribute&&n.attribute.length||(n.attribute=[]),n.attribute.push(t.string());break;case 11:n.attributeProto&&n.attributeProto.length||(n.attributeProto=[]),n.attributeProto.push(l.onnx.AttributeProto.decode(t,t.uint32()));break;case 7:n.node&&n.node.length||(n.node=[]),n.node.push(l.onnx.NodeProto.decode(t,t.uint32()));break;case 8:n.docString=t.string();break;case 9:n.opsetImport&&n.opsetImport.length||(n.opsetImport=[]),n.opsetImport.push(l.onnx.OperatorSetIdProto.decode(t,t.uint32()));break;case 10:n.domain=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if(\"object\"!=_typeof(t)||null===t)return\"object expected\";if(null!=t.name&&t.hasOwnProperty(\"name\")&&!c.isString(t.name))return\"name: string expected\";if(null!=t.input&&t.hasOwnProperty(\"input\")){if(!Array.isArray(t.input))return\"input: array expected\";for(var e=0;e<t.input.length;++e)if(!c.isString(t.input[e]))return\"input: string[] expected\"}if(null!=t.output&&t.hasOwnProperty(\"output\")){if(!Array.isArray(t.output))return\"output: array expected\";for(e=0;e<t.output.length;++e)if(!c.isString(t.output[e]))return\"output: string[] expected\"}if(null!=t.attribute&&t.hasOwnProperty(\"attribute\")){if(!Array.isArray(t.attribute))return\"attribute: array expected\";for(e=0;e<t.attribute.length;++e)if(!c.isString(t.attribute[e]))return\"attribute: string[] expected\"}if(null!=t.attributeProto&&t.hasOwnProperty(\"attributeProto\")){if(!Array.isArray(t.attributeProto))return\"attributeProto: array expected\";for(e=0;e<t.attributeProto.length;++e)if(r=l.onnx.AttributeProto.verify(t.attributeProto[e]))return\"attributeProto.\"+r}if(null!=t.node&&t.hasOwnProperty(\"node\")){if(!Array.isArray(t.node))return\"node: array expected\";for(e=0;e<t.node.length;++e)if(r=l.onnx.NodeProto.verify(t.node[e]))return\"node.\"+r}if(null!=t.docString&&t.hasOwnProperty(\"docString\")&&!c.isString(t.docString))return\"docString: string expected\";if(null!=t.opsetImport&&t.hasOwnProperty(\"opsetImport\")){if(!Array.isArray(t.opsetImport))return\"opsetImport: array expected\";for(e=0;e<t.opsetImport.length;++e){var r;if(r=l.onnx.OperatorSetIdProto.verify(t.opsetImport[e]))return\"opsetImport.\"+r}}return null!=t.domain&&t.hasOwnProperty(\"domain\")&&!c.isString(t.domain)?\"domain: string expected\":null},t.fromObject=function(t){if(t instanceof l.onnx.FunctionProto)return t;var e=new l.onnx.FunctionProto;if(null!=t.name&&(e.name=String(t.name)),t.input){if(!Array.isArray(t.input))throw TypeError(\".onnx.FunctionProto.input: array expected\");e.input=[];for(var r=0;r<t.input.length;++r)e.input[r]=String(t.input[r])}if(t.output){if(!Array.isArray(t.output))throw TypeError(\".onnx.FunctionProto.output: array expected\");for(e.output=[],r=0;r<t.output.length;++r)e.output[r]=String(t.output[r])}if(t.attribute){if(!Array.isArray(t.attribute))throw TypeError(\".onnx.FunctionProto.attribute: array expected\");for(e.attribute=[],r=0;r<t.attribute.length;++r)e.attribute[r]=String(t.attribute[r])}if(t.attributeProto){if(!Array.isArray(t.attributeProto))throw TypeError(\".onnx.FunctionProto.attributeProto: array expected\");for(e.attributeProto=[],r=0;r<t.attributeProto.length;++r){if(\"object\"!=_typeof(t.attributeProto[r]))throw TypeError(\".onnx.FunctionProto.attributeProto: object expected\");e.attributeProto[r]=l.onnx.AttributeProto.fromObject(t.attributeProto[r])}}if(t.node){if(!Array.isArray(t.node))throw TypeError(\".onnx.FunctionProto.node: array expected\");for(e.node=[],r=0;r<t.node.length;++r){if(\"object\"!=_typeof(t.node[r]))throw TypeError(\".onnx.FunctionProto.node: object expected\");e.node[r]=l.onnx.NodeProto.fromObject(t.node[r])}}if(null!=t.docString&&(e.docString=String(t.docString)),t.opsetImport){if(!Array.isArray(t.opsetImport))throw TypeError(\".onnx.FunctionProto.opsetImport: array expected\");for(e.opsetImport=[],r=0;r<t.opsetImport.length;++r){if(\"object\"!=_typeof(t.opsetImport[r]))throw TypeError(\".onnx.FunctionProto.opsetImport: object expected\");e.opsetImport[r]=l.onnx.OperatorSetIdProto.fromObject(t.opsetImport[r])}}return null!=t.domain&&(e.domain=String(t.domain)),e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.input=[],r.output=[],r.attribute=[],r.node=[],r.opsetImport=[],r.attributeProto=[]),e.defaults&&(r.name=\"\",r.docString=\"\",r.domain=\"\"),null!=t.name&&t.hasOwnProperty(\"name\")&&(r.name=t.name),t.input&&t.input.length){r.input=[];for(var n=0;n<t.input.length;++n)r.input[n]=t.input[n]}if(t.output&&t.output.length)for(r.output=[],n=0;n<t.output.length;++n)r.output[n]=t.output[n];if(t.attribute&&t.attribute.length)for(r.attribute=[],n=0;n<t.attribute.length;++n)r.attribute[n]=t.attribute[n];if(t.node&&t.node.length)for(r.node=[],n=0;n<t.node.length;++n)r.node[n]=l.onnx.NodeProto.toObject(t.node[n],e);if(null!=t.docString&&t.hasOwnProperty(\"docString\")&&(r.docString=t.docString),t.opsetImport&&t.opsetImport.length)for(r.opsetImport=[],n=0;n<t.opsetImport.length;++n)r.opsetImport[n]=l.onnx.OperatorSetIdProto.toObject(t.opsetImport[n],e);if(null!=t.domain&&t.hasOwnProperty(\"domain\")&&(r.domain=t.domain),t.attributeProto&&t.attributeProto.length)for(r.attributeProto=[],n=0;n<t.attributeProto.length;++n)r.attributeProto[n]=l.onnx.AttributeProto.toObject(t.attributeProto[n],e);return r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t=\"type.googleapis.com\"),t+\"/onnx.FunctionProto\"},t}(),o),t.exports=l},3474:function(t,e,r){var n,i=(n=(n=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||__filename,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function e(){return C.buffer!=B.buffer&&G(),B}function i(){return C.buffer!=B.buffer&&G(),j}function o(){return C.buffer!=B.buffer&&G(),N}function a(){return C.buffer!=B.buffer&&G(),R}function s(){return C.buffer!=B.buffer&&G(),z}var u,c,l=t;l.ready=new Promise((function(t,e){u=t,c=e}));var f,h,p,d=Object.assign({},l),m=\"./this.program\",y=function(t,e){throw e},g=\"object\"==(\"undefined\"==typeof window?\"undefined\":_typeof(window)),b=\"function\"==typeof importScripts,v=\"object\"==(void 0===process?\"undefined\":_typeof(process))&&\"object\"==_typeof(process.versions)&&\"string\"==typeof process.versions.node,w=l.ENVIRONMENT_IS_PTHREAD||!1,_=\"\";function x(t){return l.locateFile?l.locateFile(t,_):_+t}if(v){var k,E=r(1384),S=r(908);_=b?S.dirname(_)+\"/\":__dirname+\"/\",f=function(t,e){return t=t.startsWith(\"file://\")?new URL(t):S.normalize(t),E.readFileSync(t,e?void 0:\"utf8\")},p=function(t){return(t=f(t,!0)).buffer||(t=new Uint8Array(t)),t},h=function(t,e,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t=t.startsWith(\"file://\")?new URL(t):S.normalize(t),E.readFile(t,n?void 0:\"utf8\",(function(t,i){t?r(t):e(n?i.buffer:i)}))},!l.thisProgram&&1<process.argv.length&&(m=process.argv[1].replace(/\\\\/g,\"/\")),process.argv.slice(2),y=function(t,e){throw process.exitCode=t,e},l.inspect=function(){return\"[Emscripten Module object]\"};try{k=r(9925)}catch(t){throw t}global.Worker=k.Worker}else(g||b)&&(b?_=self.location.href:\"undefined\"!=typeof document&&document.currentScript&&(_=document.currentScript.src),n&&(_=n),_=0!==_.indexOf(\"blob:\")?_.substr(0,_.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1):\"\",v||(f=function(t){var e=new XMLHttpRequest;return e.open(\"GET\",t,!1),e.send(null),e.responseText},b&&(p=function(t){var e=new XMLHttpRequest;return e.open(\"GET\",t,!1),e.responseType=\"arraybuffer\",e.send(null),new Uint8Array(e.response)}),h=function(t,e,r){var n=new XMLHttpRequest;n.open(\"GET\",t,!0),n.responseType=\"arraybuffer\",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)}));v&&\"undefined\"==typeof performance&&(global.performance=r(6953).performance);var T=console.log.bind(console),A=console.error.bind(console);v&&(T=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return E.writeSync(1,e.join(\" \")+\"\\n\")},A=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return E.writeSync(2,e.join(\" \")+\"\\n\")});var D,O=l.print||T,I=l.printErr||A;Object.assign(l,d),d=null,l.thisProgram&&(m=l.thisProgram),l.quit&&(y=l.quit),l.wasmBinary&&(D=l.wasmBinary);var P=l.noExitRuntime||!0;\"object\"!=(\"undefined\"==typeof WebAssembly?\"undefined\":_typeof(WebAssembly))&&nt(\"no native wasm support detected\");var C,L,M,F,B,j,N,R,z,U=!1;function G(){var t=C.buffer;l.HEAP8=B=new Int8Array(t),l.HEAP16=new Int16Array(t),l.HEAP32=N=new Int32Array(t),l.HEAPU8=j=new Uint8Array(t),l.HEAPU16=new Uint16Array(t),l.HEAPU32=R=new Uint32Array(t),l.HEAPF32=new Float32Array(t),l.HEAPF64=z=new Float64Array(t)}var H=l.INITIAL_MEMORY||16777216;if(5242880<=H||nt(\"INITIAL_MEMORY should be larger than STACK_SIZE, was \"+H+\"! (STACK_SIZE=5242880)\"),w)C=l.wasmMemory;else if(l.wasmMemory)C=l.wasmMemory;else if(!((C=new WebAssembly.Memory({initial:H/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw I(\"requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag\"),v&&I(\"(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)\"),Error(\"bad memory\");G(),H=C.buffer.byteLength;var q,V=[],W=[],Z=[],Y=0;function X(){return P||0<Y}var K,J,$=0,Q=null,tt=null;function et(){$++,l.monitorRunDependencies&&l.monitorRunDependencies($)}function rt(){if($--,l.monitorRunDependencies&&l.monitorRunDependencies($),0==$&&(null!==Q&&(clearInterval(Q),Q=null),tt)){var t=tt;tt=null,t()}}function nt(t){throw l.onAbort&&l.onAbort(t),I(t=\"Aborted(\"+t+\")\"),U=!0,F=1,t=new WebAssembly.RuntimeError(t+\". Build with -sASSERTIONS for more info.\"),c(t),t}function it(t){return t.startsWith(\"data:application/octet-stream;base64,\")}function ot(t){if(t==K&&D)return new Uint8Array(D);if(p)return p(t);throw\"both async and sync fetching of the wasm failed\"}function at(t,e,r){return function(t){if(!D&&(g||b)){if(\"function\"==typeof fetch&&!t.startsWith(\"file://\"))return fetch(t,{credentials:\"same-origin\"}).then((function(e){if(!e.ok)throw\"failed to load wasm binary file at '\"+t+\"'\";return e.arrayBuffer()})).catch((function(){return ot(t)}));if(h)return new Promise((function(e,r){h(t,(function(t){return e(new Uint8Array(t))}),r)}))}return Promise.resolve().then((function(){return ot(t)}))}(t).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(t){return t})).then(r,(function(t){I(\"failed to asynchronously prepare wasm: \"+t),nt(t)}))}function st(t){this.name=\"ExitStatus\",this.message=\"Program terminated with exit(\".concat(t,\")\"),this.status=t}function ut(t){t.terminate(),t.onmessage=function(){}}function ct(t){(t=yt.Fa[t])||nt(),yt.fb(t)}function lt(t){var e=yt.Za();if(!e)return 6;yt.Ia.push(e),yt.Fa[t.Ha]=e,e.Ha=t.Ha;var r={cmd:\"run\",start_routine:t.gb,arg:t.Ya,pthread_ptr:t.Ha};return v&&e.unref(),e.postMessage(r,t.mb),0}it(K=\"ort-wasm-threaded.wasm\")||(K=x(K));var ft=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0,ht=function(t,e,r){var n=(e>>>=0)+r;for(r=e;t[r]&&!(r>=n);)++r;if(16<r-e&&t.buffer&&ft)return ft.decode(t.buffer instanceof SharedArrayBuffer?t.slice(e,r):t.subarray(e,r));for(n=\"\";e<r;){var i=t[e++];if(128&i){var o=63&t[e++];if(192==(224&i))n+=String.fromCharCode((31&i)<<6|o);else{var a=63&t[e++];65536>(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&t[e++])?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else n+=String.fromCharCode(i)}return n},pt=function(t,e){return(t>>>=0)?ht(i(),t,e):\"\"};function dt(t){if(w)return Xt(1,1,t);F=t,X()||(yt.hb(),l.onExit&&l.onExit(t),U=!0),y(t,new st(t))}var mt=function(t){if(F=t,w)throw bt(t),\"unwind\";dt(t)},yt={La:[],Ia:[],Ta:[],Fa:{},Pa:function(){w?yt.ab():yt.$a()},$a:function(){V.unshift((function(){et(),yt.bb((function(){return rt()}))}))},ab:function(){yt.receiveObjectTransfer=yt.eb,yt.threadInitTLS=yt.Sa,yt.setExitStatus=yt.Ra,P=!1},Ra:function(t){F=t},rb:[\"$terminateWorker\"],hb:function(){var t,e=_createForOfIteratorHelper(yt.Ia);try{for(e.s();!(t=e.n()).done;){var r=t.value;ut(r)}}catch(t){e.e(t)}finally{e.f()}var n,i=_createForOfIteratorHelper(yt.La);try{for(i.s();!(n=i.n()).done;)ut(r=n.value)}catch(t){i.e(t)}finally{i.f()}yt.La=[],yt.Ia=[],yt.Fa=[]},fb:function(t){var e=t.Ha;delete yt.Fa[e],yt.La.push(t),yt.Ia.splice(yt.Ia.indexOf(t),1),t.Ha=0,ve(e)},eb:function(){},Sa:function(){yt.Ta.forEach((function(t){return t()}))},cb:function(t){return new Promise((function(e){t.onmessage=function(r){var n=(r=r.data).cmd;if(r.targetThread&&r.targetThread!=de()){var i=yt.Fa[r.qb];i?i.postMessage(r,r.transferList):I('Internal error! Worker sent a message \"'+n+'\" to target pthread '+r.targetThread+\", but that thread no longer exists!\")}else\"checkMailbox\"===n?Ut():\"spawnThread\"===n?lt(r):\"cleanupThread\"===n?ct(r.thread):\"killThread\"===n?(r=r.thread,n=yt.Fa[r],delete yt.Fa[r],ut(n),ve(r),yt.Ia.splice(yt.Ia.indexOf(n),1),n.Ha=0):\"cancelThread\"===n?yt.Fa[r.thread].postMessage({cmd:\"cancel\"}):\"loaded\"===n?(t.loaded=!0,e(t)):\"alert\"===n?alert(\"Thread \"+r.threadId+\": \"+r.text):\"setimmediate\"===r.target?t.postMessage(r):\"callHandler\"===n?l[r.handler].apply(l,_toConsumableArray(r.args)):n&&I(\"worker sent an unknown command \"+n)},t.onerror=function(t){throw I(\"worker sent an error! \"+t.filename+\":\"+t.lineno+\": \"+t.message),t},v&&(t.on(\"message\",(function(e){t.onmessage({data:e})})),t.on(\"error\",(function(e){t.onerror(e)})));for(var r,i=[],o=0,a=[\"onExit\",\"onAbort\",\"print\",\"printErr\"];o<a.length;o++)r=a[o],l.hasOwnProperty(r)&&i.push(r);t.postMessage({cmd:\"load\",handlers:i,urlOrBlob:l.mainScriptUrlOrBlob||n,wasmMemory:C,wasmModule:M})}))},bb:function(t){t()},Xa:function(){var t=x(\"ort-wasm-threaded.worker.js\");t=new Worker(t),yt.La.push(t)},Za:function(){return 0==yt.La.length&&(yt.Xa(),yt.cb(yt.La[0])),yt.La.pop()}};l.PThread=yt;var gt=function(t){for(;0<t.length;)t.shift()(l)};function bt(t){if(w)return Xt(2,0,t);mt(t)}l.establishStackSpace=function(){var t=de(),e=o()[t+52>>2>>>0];t=o()[t+56>>2>>>0],ke(e,e-t),Se(e)};var vt=[];function wt(t){this.Oa=t-24,this.Wa=function(t){a()[this.Oa+4>>2>>>0]=t},this.Va=function(t){a()[this.Oa+8>>2>>>0]=t},this.Pa=function(t,e){this.Ua(),this.Wa(t),this.Va(e)},this.Ua=function(){a()[this.Oa+16>>2>>>0]=0}}function _t(t,e,r,n){return w?Xt(3,1,t,e,r,n):xt(t,e,r,n)}function xt(t,e,r,n){if(t>>>=0,e>>>=0,r>>>=0,n>>>=0,\"undefined\"==typeof SharedArrayBuffer)return I(\"Current environment does not support SharedArrayBuffer, pthreads are not available!\"),6;var i=[];return w&&0===i.length?_t(t,e,r,n):(t={gb:r,Ha:t,Ya:n,mb:i},w?(t.ob=\"spawnThread\",postMessage(t,i),0):lt(t))}function kt(t,e,r){return w?Xt(4,1,t,e,r):0}function Et(t,e){if(w)return Xt(5,1,t,e)}l.invokeEntryPoint=function(t,e){var r=vt[t];r||(t>=vt.length&&(vt.length=t+1),vt[t]=r=q.get(t)),t=r(e),X()?yt.Ra(t):we(t)};var St=function(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);127>=n?e++:2047>=n?e+=2:55296<=n&&57343>=n?(e+=4,++r):e+=3}return e},Tt=function(t,e,r,n){if(!(0<n))return 0;var i=r>>>=0;n=r+n-1;for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);if(55296<=a&&57343>=a&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),127>=a){if(r>=n)break;e[r++>>>0]=a}else{if(2047>=a){if(r+1>=n)break;e[r++>>>0]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;e[r++>>>0]=224|a>>12}else{if(r+3>=n)break;e[r++>>>0]=240|a>>18,e[r++>>>0]=128|a>>12&63}e[r++>>>0]=128|a>>6&63}e[r++>>>0]=128|63&a}}return e[r>>>0]=0,r-i},At=function(t,e,r){return Tt(t,i(),e,r)};function Dt(t,e){if(w)return Xt(6,1,t,e)}function Ot(t,e,r){if(w)return Xt(7,1,t,e,r)}function It(t,e,r){return w?Xt(8,1,t,e,r):0}function Pt(t,e){if(w)return Xt(9,1,t,e)}function Ct(t,e,r){if(w)return Xt(10,1,t,e,r)}function Lt(t,e,r,n){if(w)return Xt(11,1,t,e,r,n)}function Mt(t,e,r,n){if(w)return Xt(12,1,t,e,r,n)}function Ft(t,e,r,n){if(w)return Xt(13,1,t,e,r,n)}function Bt(t){if(w)return Xt(14,1,t)}function jt(t,e){if(w)return Xt(15,1,t,e)}function Nt(t,e,r){if(w)return Xt(16,1,t,e,r)}var Rt=function(t){if(!U)try{if(t(),!X())try{w?we(F):mt(F)}catch(t){t instanceof st||\"unwind\"==t||y(1,t)}}catch(t){t instanceof st||\"unwind\"==t||y(1,t)}};function zt(t){t>>>=0,\"function\"==typeof Atomics.nb&&(Atomics.nb(o(),t>>2,t).value.then(Ut),t+=128,Atomics.store(o(),t>>2,1))}function Ut(){var t=de();t&&(zt(t),Rt((function(){return _e()})))}l.__emscripten_thread_mailbox_await=zt,l.checkMailbox=Ut;var Gt=function(t){return 0==t%4&&(0!=t%100||0==t%400)},Ht=[0,31,60,91,121,152,182,213,244,274,305,335],qt=[0,31,59,90,120,151,181,212,243,273,304,334];function Vt(t,e,r,n,i,o,a,s){return w?Xt(17,1,t,e,r,n,i,o,a,s):-52}function Wt(t,e,r,n,i,o,a){if(w)return Xt(18,1,t,e,r,n,i,o,a)}var Zt=function(t){var e=St(t)+1,r=me(e);return r&&At(t,r,e),r},Yt=function(t){var e=Ee();return t=t(),Se(e),t};function Xt(t,e){var r=arguments.length-2,n=arguments;return Yt((function(){for(var i=Te(8*r),o=i>>3,a=0;a<r;a++){var u=n[2+a];s()[o+a>>>0]=u}return be(t,r,i,e)}))}var Kt,Jt=[],$t={},Qt=function(){if(!Kt){var t,e={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==(\"undefined\"==typeof navigator?\"undefined\":_typeof(navigator))&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:m||\"./this.program\"};for(t in $t)void 0===$t[t]?delete e[t]:e[t]=$t[t];var r=[];for(t in e)r.push(\"\".concat(t,\"=\").concat(e[t]));Kt=r}return Kt};function te(t,r){if(w)return Xt(19,1,t,r);t>>>=0,r>>>=0;var n=0;return Qt().forEach((function(i,o){var s=r+n;for(o=a()[t+4*o>>2>>>0]=s,s=0;s<i.length;++s)e()[(0|o++)>>>0]=i.charCodeAt(s);e()[(0|o)>>>0]=0,n+=i.length+1})),0}function ee(t,e){if(w)return Xt(20,1,t,e);t>>>=0,e>>>=0;var r=Qt();a()[t>>2>>>0]=r.length;var n=0;return r.forEach((function(t){n+=t.length+1})),a()[e>>2>>>0]=n,0}function re(t){return w?Xt(21,1,t):52}function ne(t,e,r,n){return w?Xt(22,1,t,e,r,n):52}function ie(t,e,r,n,i){return w?Xt(23,1,t,e,r,n,i):70}var oe=[null,[],[]];function ae(t,e,r,n){if(w)return Xt(24,1,t,e,r,n);e>>>=0,r>>>=0,n>>>=0;for(var o=0,s=0;s<r;s++){var u=a()[e>>2>>>0],c=a()[e+4>>2>>>0];e+=8;for(var l=0;l<c;l++){var f=i()[u+l>>>0],h=oe[t];0===f||10===f?((1===t?O:I)(ht(h,0)),h.length=0):h.push(f)}o+=c}return a()[n>>2>>>0]=o,0}var se=function(t){return(se=function(){if(\"object\"==(\"undefined\"==typeof crypto?\"undefined\":_typeof(crypto))&&\"function\"==typeof crypto.getRandomValues)return function(t){return t.set(crypto.getRandomValues(new Uint8Array(t.byteLength))),t};if(v)try{var t=r(760);if(t.randomFillSync)return function(e){return t.randomFillSync(e)};var e=t.randomBytes;return function(t){return t.set(e(t.byteLength)),t}}catch(t){}nt(\"initRandomDevice\")}())(t)},ue=[31,29,31,30,31,30,31,31,30,31,30,31],ce=[31,28,31,30,31,30,31,31,30,31,30,31],le=function(t,r){e().set(t,r>>>0)};function fe(t,e,r,n){function i(t,e,r){for(t=\"number\"==typeof t?t.toString():t||\"\";t.length<e;)t=r[0]+t;return t}function a(t,e){return i(t,e,\"0\")}function s(t,e){function r(t){return 0>t?-1:0<t?1:0}var n;return 0===(n=r(t.getFullYear()-e.getFullYear()))&&0===(n=r(t.getMonth()-e.getMonth()))&&(n=r(t.getDate()-e.getDate())),n}function u(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function c(t){var e=t.Ja;for(t=new Date(new Date(t.Ka+1900,0,1).getTime());0<e;){var r=t.getMonth(),n=(Gt(t.getFullYear())?ue:ce)[r];if(!(e>n-t.getDate())){t.setDate(t.getDate()+e);break}e-=n-t.getDate()+1,t.setDate(1),11>r?t.setMonth(r+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return r=new Date(t.getFullYear()+1,0,4),e=u(new Date(t.getFullYear(),0,4)),r=u(r),0>=s(e,t)?0>=s(r,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}t>>>=0,e>>>=0,r>>>=0,n>>>=0;var l=o()[n+40>>2>>>0];for(var f in n={kb:o()[n>>2>>>0],jb:o()[n+4>>2>>>0],Ma:o()[n+8>>2>>>0],Qa:o()[n+12>>2>>>0],Na:o()[n+16>>2>>>0],Ka:o()[n+20>>2>>>0],Ga:o()[n+24>>2>>>0],Ja:o()[n+28>>2>>>0],sb:o()[n+32>>2>>>0],ib:o()[n+36>>2>>>0],lb:l?pt(l):\"\"},r=pt(r),l={\"%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\"})r=r.replace(new RegExp(f,\"g\"),l[f]);var h=\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),p=\"January February March April May June July August September October November December\".split(\" \");for(f in l={\"%a\":function(t){return h[t.Ga].substring(0,3)},\"%A\":function(t){return h[t.Ga]},\"%b\":function(t){return p[t.Na].substring(0,3)},\"%B\":function(t){return p[t.Na]},\"%C\":function(t){return a((t.Ka+1900)/100|0,2)},\"%d\":function(t){return a(t.Qa,2)},\"%e\":function(t){return i(t.Qa,2,\" \")},\"%g\":function(t){return c(t).toString().substring(2)},\"%G\":function(t){return c(t)},\"%H\":function(t){return a(t.Ma,2)},\"%I\":function(t){return 0==(t=t.Ma)?t=12:12<t&&(t-=12),a(t,2)},\"%j\":function(t){for(var e=0,r=0;r<=t.Na-1;e+=(Gt(t.Ka+1900)?ue:ce)[r++]);return a(t.Qa+e,3)},\"%m\":function(t){return a(t.Na+1,2)},\"%M\":function(t){return a(t.jb,2)},\"%n\":function(){return\"\\n\"},\"%p\":function(t){return 0<=t.Ma&&12>t.Ma?\"AM\":\"PM\"},\"%S\":function(t){return a(t.kb,2)},\"%t\":function(){return\"\\t\"},\"%u\":function(t){return t.Ga||7},\"%U\":function(t){return a(Math.floor((t.Ja+7-t.Ga)/7),2)},\"%V\":function(t){var e=Math.floor((t.Ja+7-(t.Ga+6)%7)/7);if(2>=(t.Ga+371-t.Ja-2)%7&&e++,e)53==e&&(4==(r=(t.Ga+371-t.Ja)%7)||3==r&&Gt(t.Ka)||(e=1));else{e=52;var r=(t.Ga+7-t.Ja-1)%7;(4==r||5==r&&Gt(t.Ka%400-1))&&e++}return a(e,2)},\"%w\":function(t){return t.Ga},\"%W\":function(t){return a(Math.floor((t.Ja+7-(t.Ga+6)%7)/7),2)},\"%y\":function(t){return(t.Ka+1900).toString().substring(2)},\"%Y\":function(t){return t.Ka+1900},\"%z\":function(t){var e=0<=(t=t.ib);return t=Math.abs(t)/60,(e?\"+\":\"-\")+String(\"0000\"+(t/60*100+t%60)).slice(-4)},\"%Z\":function(t){return t.lb},\"%%\":function(){return\"%\"}},r=r.replace(/%%/g,\"\\0\\0\"),l)r.includes(f)&&(r=r.replace(new RegExp(f,\"g\"),l[f](n)));return f=function(t){var e=Array(St(t)+1);return Tt(t,e,0,e.length),e}(r=r.replace(/\\0\\0/g,\"%\")),f.length>e?0:(le(f,t),f.length-1)}yt.Pa();var he=[null,dt,bt,_t,kt,Et,Dt,Ot,It,Pt,Ct,Lt,Mt,Ft,Bt,jt,Nt,Vt,Wt,te,ee,re,ne,ie,ae],pe={b:function(t,e,r){throw new wt(t>>>=0).Pa(e>>>0,r>>>0),t},N:function(t){ye(t>>>0,!b,1,!g,131072,!1),yt.Sa()},k:function(t){t>>>=0,w?postMessage({cmd:\"cleanupThread\",thread:t}):ct(t)},I:xt,h:kt,T:Et,E:Dt,G:Ot,U:It,R:Pt,J:Ct,Q:Lt,o:Mt,F:Ft,C:Bt,S:jt,D:Nt,q:function(){return!0},A:function(t,e){(t>>>=0)==e>>>0?setTimeout((function(){return Ut()})):w?postMessage({targetThread:t,cmd:\"checkMailbox\"}):(t=yt.Fa[t])&&t.postMessage({cmd:\"checkMailbox\"})},L:function(){return-1},M:zt,p:function(t){v&&yt.Fa[t>>>0].ref()},t:function(t,e,r){t=e+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*e:NaN,r>>>=0,t=new Date(1e3*t),o()[r>>2>>>0]=t.getUTCSeconds(),o()[r+4>>2>>>0]=t.getUTCMinutes(),o()[r+8>>2>>>0]=t.getUTCHours(),o()[r+12>>2>>>0]=t.getUTCDate(),o()[r+16>>2>>>0]=t.getUTCMonth(),o()[r+20>>2>>>0]=t.getUTCFullYear()-1900,o()[r+24>>2>>>0]=t.getUTCDay(),t=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,o()[r+28>>2>>>0]=t},u:function(t,e,r){t=e+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*e:NaN,r>>>=0,t=new Date(1e3*t),o()[r>>2>>>0]=t.getSeconds(),o()[r+4>>2>>>0]=t.getMinutes(),o()[r+8>>2>>>0]=t.getHours(),o()[r+12>>2>>>0]=t.getDate(),o()[r+16>>2>>>0]=t.getMonth(),o()[r+20>>2>>>0]=t.getFullYear()-1900,o()[r+24>>2>>>0]=t.getDay(),e=(Gt(t.getFullYear())?Ht:qt)[t.getMonth()]+t.getDate()-1|0,o()[r+28>>2>>>0]=e,o()[r+36>>2>>>0]=-60*t.getTimezoneOffset(),e=new Date(t.getFullYear(),6,1).getTimezoneOffset();var n=new Date(t.getFullYear(),0,1).getTimezoneOffset();t=0|(e!=n&&t.getTimezoneOffset()==Math.min(n,e)),o()[r+32>>2>>>0]=t},v:function(t){t>>>=0;var e=new Date(o()[t+20>>2>>>0]+1900,o()[t+16>>2>>>0],o()[t+12>>2>>>0],o()[t+8>>2>>>0],o()[t+4>>2>>>0],o()[t>>2>>>0],0),r=o()[t+32>>2>>>0],n=e.getTimezoneOffset(),i=new Date(e.getFullYear(),6,1).getTimezoneOffset(),a=new Date(e.getFullYear(),0,1).getTimezoneOffset(),s=Math.min(a,i);return 0>r?o()[t+32>>2>>>0]=Number(i!=a&&s==n):0<r!=(s==n)&&(i=Math.max(a,i),e.setTime(e.getTime()+6e4*((0<r?s:i)-n))),o()[t+24>>2>>>0]=e.getDay(),r=(Gt(e.getFullYear())?Ht:qt)[e.getMonth()]+e.getDate()-1|0,o()[t+28>>2>>>0]=r,o()[t>>2>>>0]=e.getSeconds(),o()[t+4>>2>>>0]=e.getMinutes(),o()[t+8>>2>>>0]=e.getHours(),o()[t+12>>2>>>0]=e.getDate(),o()[t+16>>2>>>0]=e.getMonth(),o()[t+20>>2>>>0]=e.getYear(),t=e.getTime()/1e3,xe((J=t,1<=+Math.abs(J)?0<J?+Math.floor(J/4294967296)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)),t>>>0},r:Vt,s:Wt,z:function(t,e,r){function n(t){return(t=t.toTimeString().match(/\\(([A-Za-z ]+)\\)$/))?t[1]:\"GMT\"}t>>>=0,e>>>=0,r>>>=0;var i=(new Date).getFullYear(),s=new Date(i,0,1),u=new Date(i,6,1);i=s.getTimezoneOffset();var c=u.getTimezoneOffset(),l=Math.max(i,c);a()[t>>2>>>0]=60*l,o()[e>>2>>>0]=Number(i!=c),t=n(s),e=n(u),t=Zt(t),e=Zt(e),c<i?(a()[r>>2>>>0]=t,a()[r+4>>2>>>0]=e):(a()[r>>2>>>0]=e,a()[r+4>>2>>>0]=t)},c:function(){nt(\"\")},l:function(){},i:function(){return Date.now()},V:function(){throw Y+=1,\"unwind\"},B:function(){return 4294901760},e:function(){return performance.timeOrigin+performance.now()},f:function(){return v?r(3993).cpus().length:navigator.hardwareConcurrency},K:function(t,e,r,n){for(yt.pb=e>>>0,Jt.length=r,e=n>>>0>>3,n=0;n<r;n++)Jt[n]=s()[e+n>>>0];return he[t].apply(null,Jt)},y:function(t){t>>>=0;var e=i().length;if(t<=e||4294901760<t)return!1;for(var r=1;4>=r;r*=2){var n=e*(1+.2/r);n=Math.min(n,t+100663296);var o=Math;n=Math.max(t,n);t:{o=o.min.call(o,4294901760,n+(65536-n%65536)%65536)-C.buffer.byteLength+65535>>>16;try{C.grow(o),G();var a=1;break t}catch(t){}a=void 0}if(a)return!0}return!1},O:te,P:ee,j:mt,g:re,n:ne,w:ie,m:ae,x:function(t,e){return t>>>=0,e>>>=0,se(i().subarray(t>>>0,t+e>>>0)),0},a:C||l.wasmMemory,H:fe,d:function(t,e,r,n){return fe(t>>>0,e>>>0,r>>>0,n>>>0)}};!function(){function t(t,e){return t=t.exports,L=t=function(t){var e=function(t){return function(){return t()>>>0}},r=function(t){return function(e){return t(e)>>>0}};return(t=Object.assign({},t)).__errno_location=e(t.__errno_location),t.pthread_self=e(t.pthread_self),t.malloc=r(t.malloc),t.stackSave=e(t.stackSave),t.stackAlloc=r(t.stackAlloc),t}(t),yt.Ta.push(L.sa),q=L.ta,W.unshift(L.W),M=e,rt(),t}var e={a:pe};if(et(),l.instantiateWasm)try{return l.instantiateWasm(e,t)}catch(t){I(\"Module.instantiateWasm callback failed with error: \"+t),c(t)}(function(t,e){var r=K;return D||\"function\"!=typeof WebAssembly.instantiateStreaming||it(r)||r.startsWith(\"file://\")||v||\"function\"!=typeof fetch?at(r,t,e):fetch(r,{credentials:\"same-origin\"}).then((function(n){return WebAssembly.instantiateStreaming(n,t).then(e,(function(n){return I(\"wasm streaming compile failed: \"+n),I(\"falling back to ArrayBuffer instantiation\"),at(r,t,e)}))}))})(e,(function(e){t(e.instance,e.module)})).catch(c)}(),l._OrtInit=function(t,e){return(l._OrtInit=L.X)(t,e)},l._OrtGetLastError=function(t,e){return(l._OrtGetLastError=L.Y)(t,e)},l._OrtCreateSessionOptions=function(t,e,r,n,i,o,a,s,u,c){return(l._OrtCreateSessionOptions=L.Z)(t,e,r,n,i,o,a,s,u,c)},l._OrtAppendExecutionProvider=function(t,e){return(l._OrtAppendExecutionProvider=L._)(t,e)},l._OrtAddSessionConfigEntry=function(t,e,r){return(l._OrtAddSessionConfigEntry=L.$)(t,e,r)},l._OrtReleaseSessionOptions=function(t){return(l._OrtReleaseSessionOptions=L.aa)(t)},l._OrtCreateSession=function(t,e,r){return(l._OrtCreateSession=L.ba)(t,e,r)},l._OrtReleaseSession=function(t){return(l._OrtReleaseSession=L.ca)(t)},l._OrtGetInputOutputCount=function(t,e,r){return(l._OrtGetInputOutputCount=L.da)(t,e,r)},l._OrtGetInputName=function(t,e){return(l._OrtGetInputName=L.ea)(t,e)},l._OrtGetOutputName=function(t,e){return(l._OrtGetOutputName=L.fa)(t,e)},l._OrtFree=function(t){return(l._OrtFree=L.ga)(t)},l._OrtCreateTensor=function(t,e,r,n,i){return(l._OrtCreateTensor=L.ha)(t,e,r,n,i)},l._OrtGetTensorData=function(t,e,r,n,i){return(l._OrtGetTensorData=L.ia)(t,e,r,n,i)},l._OrtReleaseTensor=function(t){return(l._OrtReleaseTensor=L.ja)(t)},l._OrtCreateRunOptions=function(t,e,r,n){return(l._OrtCreateRunOptions=L.ka)(t,e,r,n)},l._OrtAddRunConfigEntry=function(t,e,r){return(l._OrtAddRunConfigEntry=L.la)(t,e,r)},l._OrtReleaseRunOptions=function(t){return(l._OrtReleaseRunOptions=L.ma)(t)},l._OrtRun=function(t,e,r,n,i,o,a,s){return(l._OrtRun=L.na)(t,e,r,n,i,o,a,s)},l._OrtEndProfiling=function(t){return(l._OrtEndProfiling=L.oa)(t)};var de=l._pthread_self=function(){return(de=l._pthread_self=L.pa)()},me=l._malloc=function(t){return(me=l._malloc=L.qa)(t)};l._free=function(t){return(l._free=L.ra)(t)},l.__emscripten_tls_init=function(){return(l.__emscripten_tls_init=L.sa)()};var ye=l.__emscripten_thread_init=function(t,e,r,n,i,o){return(ye=l.__emscripten_thread_init=L.ua)(t,e,r,n,i,o)};l.__emscripten_thread_crashed=function(){return(l.__emscripten_thread_crashed=L.va)()};var ge,be=function(t,e,r,n){return(be=L.wa)(t,e,r,n)},ve=function(t){return(ve=L.xa)(t)},we=l.__emscripten_thread_exit=function(t){return(we=l.__emscripten_thread_exit=L.ya)(t)},_e=l.__emscripten_check_mailbox=function(){return(_e=l.__emscripten_check_mailbox=L.za)()},xe=function(t){return(xe=L.Aa)(t)},ke=function(t,e){return(ke=L.Ba)(t,e)},Ee=function(){return(Ee=L.Ca)()},Se=function(t){return(Se=L.Da)(t)},Te=function(t){return(Te=L.Ea)(t)};function Ae(){function t(){if(!ge&&(ge=!0,l.calledRun=!0,!U)&&(w||gt(W),u(l),l.onRuntimeInitialized&&l.onRuntimeInitialized(),!w)){if(l.postRun)for(\"function\"==typeof l.postRun&&(l.postRun=[l.postRun]);l.postRun.length;){var t=l.postRun.shift();Z.unshift(t)}gt(Z)}}if(!(0<$))if(w)u(l),w||gt(W),startWorker(l);else{if(l.preRun)for(\"function\"==typeof l.preRun&&(l.preRun=[l.preRun]);l.preRun.length;)V.unshift(l.preRun.shift());gt(V),0<$||(l.setStatus?(l.setStatus(\"Running...\"),setTimeout((function(){setTimeout((function(){l.setStatus(\"\")}),1),t()}),1)):t())}}if(l.keepRuntimeAlive=X,l.wasmMemory=C,l.stackAlloc=Te,l.stackSave=Ee,l.stackRestore=Se,l.UTF8ToString=pt,l.stringToUTF8=At,l.lengthBytesUTF8=St,l.ExitStatus=st,l.PThread=yt,tt=function t(){ge||Ae(),ge||(tt=t)},l.preInit)for(\"function\"==typeof l.preInit&&(l.preInit=[l.preInit]);0<l.preInit.length;)l.preInit.pop()();return Ae(),t.ready});t.exports=i},932:function(t,e,r){var n,i=(n=(n=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||__filename,function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i;o.ready=new Promise((function(r,n){t=r,e=n}));var a,s,u,c=Object.assign({},o),l=\"./this.program\",f=function(t,e){throw e},h=\"object\"==(\"undefined\"==typeof window?\"undefined\":_typeof(window)),p=\"function\"==typeof importScripts,d=\"object\"==(void 0===process?\"undefined\":_typeof(process))&&\"object\"==_typeof(process.versions)&&\"string\"==typeof process.versions.node,m=\"\";if(d){var y=r(1384),g=r(908);m=p?g.dirname(m)+\"/\":__dirname+\"/\",a=function(t,e){return t=t.startsWith(\"file://\")?new URL(t):g.normalize(t),y.readFileSync(t,e?void 0:\"utf8\")},u=function(t){return(t=a(t,!0)).buffer||(t=new Uint8Array(t)),t},s=function(t,e,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t=t.startsWith(\"file://\")?new URL(t):g.normalize(t),y.readFile(t,n?void 0:\"utf8\",(function(t,i){t?r(t):e(n?i.buffer:i)}))},!o.thisProgram&&1<process.argv.length&&(l=process.argv[1].replace(/\\\\/g,\"/\")),process.argv.slice(2),f=function(t,e){throw process.exitCode=t,e},o.inspect=function(){return\"[Emscripten Module object]\"}}else(h||p)&&(p?m=self.location.href:\"undefined\"!=typeof document&&document.currentScript&&(m=document.currentScript.src),n&&(m=n),m=0!==m.indexOf(\"blob:\")?m.substr(0,m.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1):\"\",a=function(t){var e=new XMLHttpRequest;return e.open(\"GET\",t,!1),e.send(null),e.responseText},p&&(u=function(t){var e=new XMLHttpRequest;return e.open(\"GET\",t,!1),e.responseType=\"arraybuffer\",e.send(null),new Uint8Array(e.response)}),s=function(t,e,r){var n=new XMLHttpRequest;n.open(\"GET\",t,!0),n.responseType=\"arraybuffer\",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var b,v=o.print||console.log.bind(console),w=o.printErr||console.error.bind(console);Object.assign(o,c),c=null,o.thisProgram&&(l=o.thisProgram),o.quit&&(f=o.quit),o.wasmBinary&&(b=o.wasmBinary);var _=o.noExitRuntime||!0;\"object\"!=(\"undefined\"==typeof WebAssembly?\"undefined\":_typeof(WebAssembly))&&R(\"no native wasm support detected\");var x,k,E,S,T,A,D=!1;function O(){var t=x.buffer;o.HEAP8=E=new Int8Array(t),o.HEAP16=new Int16Array(t),o.HEAP32=T=new Int32Array(t),o.HEAPU8=S=new Uint8Array(t),o.HEAPU16=new Uint16Array(t),o.HEAPU32=A=new Uint32Array(t),o.HEAPF32=new Float32Array(t),o.HEAPF64=new Float64Array(t)}var I=[],P=[],C=[];function L(){var t=o.preRun.shift();I.unshift(t)}var M,F,B=0,j=null,N=null;function R(t){throw o.onAbort&&o.onAbort(t),w(t=\"Aborted(\"+t+\")\"),D=!0,t=new WebAssembly.RuntimeError(t+\". Build with -sASSERTIONS for more info.\"),e(t),t}function z(t){return t.startsWith(\"data:application/octet-stream;base64,\")}if(!z(M=\"ort-wasm.wasm\")){var U=M;M=o.locateFile?o.locateFile(U,m):m+U}function G(t){if(t==M&&b)return new Uint8Array(b);if(u)return u(t);throw\"both async and sync fetching of the wasm failed\"}function H(t,e,r){return function(t){if(!b&&(h||p)){if(\"function\"==typeof fetch&&!t.startsWith(\"file://\"))return fetch(t,{credentials:\"same-origin\"}).then((function(e){if(!e.ok)throw\"failed to load wasm binary file at '\"+t+\"'\";return e.arrayBuffer()})).catch((function(){return G(t)}));if(s)return new Promise((function(e,r){s(t,(function(t){return e(new Uint8Array(t))}),r)}))}return Promise.resolve().then((function(){return G(t)}))}(t).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(t){return t})).then(r,(function(t){w(\"failed to asynchronously prepare wasm: \"+t),R(t)}))}function q(t){this.name=\"ExitStatus\",this.message=\"Program terminated with exit(\".concat(t,\")\"),this.status=t}var V=function(t){for(;0<t.length;)t.shift()(o)};function W(t){this.qa=t-24,this.va=function(t){A[this.qa+4>>2>>>0]=t},this.ua=function(t){A[this.qa+8>>2>>>0]=t},this.sa=function(t,e){this.ta(),this.va(t),this.ua(e)},this.ta=function(){A[this.qa+16>>2>>>0]=0}}var Z,Y=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0,X=function(t,e,r){var n=(e>>>=0)+r;for(r=e;t[r]&&!(r>=n);)++r;if(16<r-e&&t.buffer&&Y)return Y.decode(t.subarray(e,r));for(n=\"\";e<r;){var i=t[e++];if(128&i){var o=63&t[e++];if(192==(224&i))n+=String.fromCharCode((31&i)<<6|o);else{var a=63&t[e++];65536>(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&t[e++])?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else n+=String.fromCharCode(i)}return n},K=function(t,e){return(t>>>=0)?X(S,t,e):\"\"},J=function(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);127>=n?e++:2047>=n?e+=2:55296<=n&&57343>=n?(e+=4,++r):e+=3}return e},$=function(t,e,r,n){if(!(0<n))return 0;var i=r>>>=0;n=r+n-1;for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);if(55296<=a&&57343>=a&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),127>=a){if(r>=n)break;e[r++>>>0]=a}else{if(2047>=a){if(r+1>=n)break;e[r++>>>0]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;e[r++>>>0]=224|a>>12}else{if(r+3>=n)break;e[r++>>>0]=240|a>>18,e[r++>>>0]=128|a>>12&63}e[r++>>>0]=128|a>>6&63}e[r++>>>0]=128|63&a}}return e[r>>>0]=0,r-i},Q=function(t){return 0==t%4&&(0!=t%100||0==t%400)},tt=[0,31,60,91,121,152,182,213,244,274,305,335],et=[0,31,59,90,120,151,181,212,243,273,304,334],rt=function(t){var e=J(t)+1,r=ft(e);return r&&$(t,S,r,e),r},nt={},it=function(){if(!Z){var t,e={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==(\"undefined\"==typeof navigator?\"undefined\":_typeof(navigator))&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:l||\"./this.program\"};for(t in nt)void 0===nt[t]?delete e[t]:e[t]=nt[t];var r=[];for(t in e)r.push(\"\".concat(t,\"=\").concat(e[t]));Z=r}return Z},ot=[null,[],[]],at=function(t){return(at=function(){if(\"object\"==(\"undefined\"==typeof crypto?\"undefined\":_typeof(crypto))&&\"function\"==typeof crypto.getRandomValues)return function(t){return crypto.getRandomValues(t)};if(d)try{var t=r(760);if(t.randomFillSync)return function(e){return t.randomFillSync(e)};var e=t.randomBytes;return function(t){return t.set(e(t.byteLength)),t}}catch(t){}R(\"initRandomDevice\")}())(t)},st=[31,29,31,30,31,30,31,31,30,31,30,31],ut=[31,28,31,30,31,30,31,31,30,31,30,31];function ct(t,e,r,n){function i(t,e,r){for(t=\"number\"==typeof t?t.toString():t||\"\";t.length<e;)t=r[0]+t;return t}function o(t,e){return i(t,e,\"0\")}function a(t,e){function r(t){return 0>t?-1:0<t?1:0}var n;return 0===(n=r(t.getFullYear()-e.getFullYear()))&&0===(n=r(t.getMonth()-e.getMonth()))&&(n=r(t.getDate()-e.getDate())),n}function s(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function u(t){var e=t.ma;for(t=new Date(new Date(t.na+1900,0,1).getTime());0<e;){var r=t.getMonth(),n=(Q(t.getFullYear())?st:ut)[r];if(!(e>n-t.getDate())){t.setDate(t.getDate()+e);break}e-=n-t.getDate()+1,t.setDate(1),11>r?t.setMonth(r+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return r=new Date(t.getFullYear()+1,0,4),e=s(new Date(t.getFullYear(),0,4)),r=s(r),0>=a(e,t)?0>=a(r,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}t>>>=0,e>>>=0,r>>>=0;var c=T[40+(n>>>=0)>>2>>>0];for(var l in n={ya:T[n>>2>>>0],xa:T[n+4>>2>>>0],oa:T[n+8>>2>>>0],ra:T[n+12>>2>>>0],pa:T[n+16>>2>>>0],na:T[n+20>>2>>>0],ha:T[n+24>>2>>>0],ma:T[n+28>>2>>>0],Aa:T[n+32>>2>>>0],wa:T[n+36>>2>>>0],za:c?K(c):\"\"},r=K(r),c={\"%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\"})r=r.replace(new RegExp(l,\"g\"),c[l]);var f=\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),h=\"January February March April May June July August September October November December\".split(\" \");for(l in c={\"%a\":function(t){return f[t.ha].substring(0,3)},\"%A\":function(t){return f[t.ha]},\"%b\":function(t){return h[t.pa].substring(0,3)},\"%B\":function(t){return h[t.pa]},\"%C\":function(t){return o((t.na+1900)/100|0,2)},\"%d\":function(t){return o(t.ra,2)},\"%e\":function(t){return i(t.ra,2,\" \")},\"%g\":function(t){return u(t).toString().substring(2)},\"%G\":function(t){return u(t)},\"%H\":function(t){return o(t.oa,2)},\"%I\":function(t){return 0==(t=t.oa)?t=12:12<t&&(t-=12),o(t,2)},\"%j\":function(t){for(var e=0,r=0;r<=t.pa-1;e+=(Q(t.na+1900)?st:ut)[r++]);return o(t.ra+e,3)},\"%m\":function(t){return o(t.pa+1,2)},\"%M\":function(t){return o(t.xa,2)},\"%n\":function(){return\"\\n\"},\"%p\":function(t){return 0<=t.oa&&12>t.oa?\"AM\":\"PM\"},\"%S\":function(t){return o(t.ya,2)},\"%t\":function(){return\"\\t\"},\"%u\":function(t){return t.ha||7},\"%U\":function(t){return o(Math.floor((t.ma+7-t.ha)/7),2)},\"%V\":function(t){var e=Math.floor((t.ma+7-(t.ha+6)%7)/7);if(2>=(t.ha+371-t.ma-2)%7&&e++,e)53==e&&(4==(r=(t.ha+371-t.ma)%7)||3==r&&Q(t.na)||(e=1));else{e=52;var r=(t.ha+7-t.ma-1)%7;(4==r||5==r&&Q(t.na%400-1))&&e++}return o(e,2)},\"%w\":function(t){return t.ha},\"%W\":function(t){return o(Math.floor((t.ma+7-(t.ha+6)%7)/7),2)},\"%y\":function(t){return(t.na+1900).toString().substring(2)},\"%Y\":function(t){return t.na+1900},\"%z\":function(t){var e=0<=(t=t.wa);return t=Math.abs(t)/60,(e?\"+\":\"-\")+String(\"0000\"+(t/60*100+t%60)).slice(-4)},\"%Z\":function(t){return t.za},\"%%\":function(){return\"%\"}},r=r.replace(/%%/g,\"\\0\\0\"),c)r.includes(l)&&(r=r.replace(new RegExp(l,\"g\"),c[l](n)));return l=function(t){var e=Array(J(t)+1);return $(t,e,0,e.length),e}(r=r.replace(/\\0\\0/g,\"%\")),l.length>e?0:(E.set(l,t>>>0),l.length-1)}var lt={a:function(t,e,r){throw new W(t>>>=0).sa(e>>>0,r>>>0),t},e:function(){return 0},I:function(){},y:function(){},A:function(){},K:function(){return 0},G:function(){},B:function(){},F:function(){},g:function(){},z:function(){},w:function(){},H:function(){},x:function(){},k:function(){return!0},n:function(t,e,r){t=e+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*e:NaN,r>>>=0,t=new Date(1e3*t),T[r>>2>>>0]=t.getUTCSeconds(),T[r+4>>2>>>0]=t.getUTCMinutes(),T[r+8>>2>>>0]=t.getUTCHours(),T[r+12>>2>>>0]=t.getUTCDate(),T[r+16>>2>>>0]=t.getUTCMonth(),T[r+20>>2>>>0]=t.getUTCFullYear()-1900,T[r+24>>2>>>0]=t.getUTCDay(),T[r+28>>2>>>0]=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},o:function(t,e,r){t=e+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*e:NaN,r>>>=0,t=new Date(1e3*t),T[r>>2>>>0]=t.getSeconds(),T[r+4>>2>>>0]=t.getMinutes(),T[r+8>>2>>>0]=t.getHours(),T[r+12>>2>>>0]=t.getDate(),T[r+16>>2>>>0]=t.getMonth(),T[r+20>>2>>>0]=t.getFullYear()-1900,T[r+24>>2>>>0]=t.getDay(),T[r+28>>2>>>0]=(Q(t.getFullYear())?tt:et)[t.getMonth()]+t.getDate()-1|0,T[r+36>>2>>>0]=-60*t.getTimezoneOffset(),e=new Date(t.getFullYear(),6,1).getTimezoneOffset();var n=new Date(t.getFullYear(),0,1).getTimezoneOffset();T[r+32>>2>>>0]=0|(e!=n&&t.getTimezoneOffset()==Math.min(n,e))},p:function(t){t>>>=0;var e=new Date(T[t+20>>2>>>0]+1900,T[t+16>>2>>>0],T[t+12>>2>>>0],T[t+8>>2>>>0],T[t+4>>2>>>0],T[t>>2>>>0],0),r=T[t+32>>2>>>0],n=e.getTimezoneOffset(),i=new Date(e.getFullYear(),6,1).getTimezoneOffset(),o=new Date(e.getFullYear(),0,1).getTimezoneOffset(),a=Math.min(o,i);return 0>r?T[t+32>>2>>>0]=Number(i!=o&&a==n):0<r!=(a==n)&&(i=Math.max(o,i),e.setTime(e.getTime()+6e4*((0<r?a:i)-n))),T[t+24>>2>>>0]=e.getDay(),T[t+28>>2>>>0]=(Q(e.getFullYear())?tt:et)[e.getMonth()]+e.getDate()-1|0,T[t>>2>>>0]=e.getSeconds(),T[t+4>>2>>>0]=e.getMinutes(),T[t+8>>2>>>0]=e.getHours(),T[t+12>>2>>>0]=e.getDate(),T[t+16>>2>>>0]=e.getMonth(),T[t+20>>2>>>0]=e.getYear(),t=e.getTime()/1e3,pt((F=t,1<=+Math.abs(F)?0<F?+Math.floor(F/4294967296)>>>0:~~+Math.ceil((F-+(~~F>>>0))/4294967296)>>>0:0)),t>>>0},l:function(){return-52},m:function(){},u:function(t,e,r){function n(t){return(t=t.toTimeString().match(/\\(([A-Za-z ]+)\\)$/))?t[1]:\"GMT\"}r>>>=0;var i=(new Date).getFullYear(),o=new Date(i,0,1),a=new Date(i,6,1);i=o.getTimezoneOffset();var s=a.getTimezoneOffset();A[t>>>0>>2>>>0]=60*Math.max(i,s),T[e>>>0>>2>>>0]=Number(i!=s),t=n(o),e=n(a),t=rt(t),e=rt(e),s<i?(A[r>>2>>>0]=t,A[r+4>>2>>>0]=e):(A[r>>2>>>0]=e,A[r+4>>2>>>0]=t)},d:function(){R(\"\")},h:function(){return Date.now()},v:function(){return 4294901760},b:function(){return performance.now()},J:function(t,e,r){return e>>>=0,S.copyWithin(t>>>0>>>0,e>>>0,e+(r>>>0)>>>0)},t:function(t){t>>>=0;var e=S.length;if(4294901760<t)return!1;for(var r=1;4>=r;r*=2){var n=e*(1+.2/r);n=Math.min(n,t+100663296);var i=Math;n=Math.max(t,n);t:{i=i.min.call(i,4294901760,n+(65536-n%65536)%65536)-x.buffer.byteLength+65535>>>16;try{x.grow(i),O();var o=1;break t}catch(t){}o=void 0}if(o)return!0}return!1},D:function(t,e){t>>>=0,e>>>=0;var r=0;return it().forEach((function(n,i){var o=e+r;for(i=A[t+4*i>>2>>>0]=o,o=0;o<n.length;++o)E[(0|i++)>>>0]=n.charCodeAt(o);E[(0|i)>>>0]=0,r+=n.length+1})),0},E:function(t,e){t>>>=0,e>>>=0;var r=it();A[t>>2>>>0]=r.length;var n=0;return r.forEach((function(t){n+=t.length+1})),A[e>>2>>>0]=n,0},s:function(t){_||(o.onExit&&o.onExit(t),D=!0),f(t,new q(t))},f:function(){return 52},j:function(){return 52},q:function(){return 70},i:function(t,e,r,n){e>>>=0,r>>>=0,n>>>=0;for(var i=0,o=0;o<r;o++){var a=A[e>>2>>>0],s=A[e+4>>2>>>0];e+=8;for(var u=0;u<s;u++){var c=S[a+u>>>0],l=ot[t];0===c||10===c?((1===t?v:w)(X(l,0)),l.length=0):l.push(c)}i+=s}return A[n>>2>>>0]=i,0},r:function(t,e){return t>>>=0,at(S.subarray(t>>>0,t+(e>>>0)>>>0)),0},C:ct,c:function(t,e,r,n){return ct(t>>>0,e>>>0,r>>>0,n>>>0)}};!function(){function t(t){if(t=t.exports,k=t=function(t){var e=function(t){return function(){return t()>>>0}},r=function(t){return function(e){return t(e)>>>0}};return(t=Object.assign({},t)).__errno_location=e(t.__errno_location),t.malloc=r(t.malloc),t.stackSave=e(t.stackSave),t.stackAlloc=r(t.stackAlloc),t}(t),x=k.L,O(),P.unshift(k.M),B--,o.monitorRunDependencies&&o.monitorRunDependencies(B),0==B&&(null!==j&&(clearInterval(j),j=null),N)){var e=N;N=null,e()}return t}var r={a:lt};if(B++,o.monitorRunDependencies&&o.monitorRunDependencies(B),o.instantiateWasm)try{return o.instantiateWasm(r,t)}catch(t){w(\"Module.instantiateWasm callback failed with error: \"+t),e(t)}(function(t,e){var r=M;return b||\"function\"!=typeof WebAssembly.instantiateStreaming||z(r)||r.startsWith(\"file://\")||d||\"function\"!=typeof fetch?H(r,t,e):fetch(r,{credentials:\"same-origin\"}).then((function(n){return WebAssembly.instantiateStreaming(n,t).then(e,(function(n){return w(\"wasm streaming compile failed: \"+n),w(\"falling back to ArrayBuffer instantiation\"),H(r,t,e)}))}))})(r,(function(e){t(e.instance)})).catch(e)}(),o._OrtInit=function(t,e){return(o._OrtInit=k.N)(t,e)},o._OrtGetLastError=function(t,e){return(o._OrtGetLastError=k.O)(t,e)},o._OrtCreateSessionOptions=function(t,e,r,n,i,a,s,u,c,l){return(o._OrtCreateSessionOptions=k.P)(t,e,r,n,i,a,s,u,c,l)},o._OrtAppendExecutionProvider=function(t,e){return(o._OrtAppendExecutionProvider=k.Q)(t,e)},o._OrtAddSessionConfigEntry=function(t,e,r){return(o._OrtAddSessionConfigEntry=k.R)(t,e,r)},o._OrtReleaseSessionOptions=function(t){return(o._OrtReleaseSessionOptions=k.S)(t)},o._OrtCreateSession=function(t,e,r){return(o._OrtCreateSession=k.T)(t,e,r)},o._OrtReleaseSession=function(t){return(o._OrtReleaseSession=k.U)(t)},o._OrtGetInputOutputCount=function(t,e,r){return(o._OrtGetInputOutputCount=k.V)(t,e,r)},o._OrtGetInputName=function(t,e){return(o._OrtGetInputName=k.W)(t,e)},o._OrtGetOutputName=function(t,e){return(o._OrtGetOutputName=k.X)(t,e)},o._OrtFree=function(t){return(o._OrtFree=k.Y)(t)},o._OrtCreateTensor=function(t,e,r,n,i){return(o._OrtCreateTensor=k.Z)(t,e,r,n,i)},o._OrtGetTensorData=function(t,e,r,n,i){return(o._OrtGetTensorData=k._)(t,e,r,n,i)},o._OrtReleaseTensor=function(t){return(o._OrtReleaseTensor=k.$)(t)},o._OrtCreateRunOptions=function(t,e,r,n){return(o._OrtCreateRunOptions=k.aa)(t,e,r,n)},o._OrtAddRunConfigEntry=function(t,e,r){return(o._OrtAddRunConfigEntry=k.ba)(t,e,r)},o._OrtReleaseRunOptions=function(t){return(o._OrtReleaseRunOptions=k.ca)(t)},o._OrtRun=function(t,e,r,n,i,a,s,u){return(o._OrtRun=k.da)(t,e,r,n,i,a,s,u)},o._OrtEndProfiling=function(t){return(o._OrtEndProfiling=k.ea)(t)};var ft=o._malloc=function(t){return(ft=o._malloc=k.fa)(t)};o._free=function(t){return(o._free=k.ga)(t)};var ht,pt=function(t){return(pt=k.ia)(t)},dt=function(){return(dt=k.ja)()},mt=function(t){return(mt=k.ka)(t)},yt=function(t){return(yt=k.la)(t)};function gt(){function e(){if(!ht&&(ht=!0,o.calledRun=!0,!D)){if(V(P),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),o.postRun)for(\"function\"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;){var e=o.postRun.shift();C.unshift(e)}V(C)}}if(!(0<B)){if(o.preRun)for(\"function\"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)L();V(I),0<B||(o.setStatus?(o.setStatus(\"Running...\"),setTimeout((function(){setTimeout((function(){o.setStatus(\"\")}),1),e()}),1)):e())}}if(o.stackAlloc=yt,o.stackSave=dt,o.stackRestore=mt,o.UTF8ToString=K,o.stringToUTF8=function(t,e,r){return $(t,S,e,r)},o.lengthBytesUTF8=J,N=function t(){ht||gt(),ht||(N=t)},o.preInit)for(\"function\"==typeof o.preInit&&(o.preInit=[o.preInit]);0<o.preInit.length;)o.preInit.pop()();return gt(),i.ready});t.exports=i},4537:function(t){\"use strict\";t.exports=function(t,e){for(var r=new Array(arguments.length-1),n=0,i=2,o=!0;i<arguments.length;)r[n++]=arguments[i++];return new Promise((function(i,a){r[n]=function(t){if(o)if(o=!1,t)a(t);else{for(var e=new Array(arguments.length-1),r=0;r<e.length;)e[r++]=arguments[r];i.apply(null,e)}};try{t.apply(e||null,r)}catch(t){o&&(o=!1,a(t))}}))}},7419:function(t,e){\"use strict\";var r=e;r.length=function(t){var e=t.length;if(!e)return 0;for(var r=0;--e%4>1&&\"=\"===t.charAt(e);)++r;return Math.ceil(3*t.length)/4-r};for(var n=new Array(64),i=new Array(123),o=0;o<64;)i[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(t,e,r){for(var i,o=null,a=[],s=0,u=0;e<r;){var c=t[e++];switch(u){case 0:a[s++]=n[c>>2],i=(3&c)<<4,u=1;break;case 1:a[s++]=n[i|c>>4],i=(15&c)<<2,u=2;break;case 2:a[s++]=n[i|c>>6],a[s++]=n[63&c],u=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=n[i],a[s++]=61,1===u&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join(\"\")):String.fromCharCode.apply(String,a.slice(0,s))};var a=\"invalid encoding\";r.decode=function(t,e,r){for(var n,o=r,s=0,u=0;u<t.length;){var c=t.charCodeAt(u++);if(61===c&&s>1)break;if(void 0===(c=i[c]))throw Error(a);switch(s){case 0:n=c,s=1;break;case 1:e[r++]=n<<2|(48&c)>>4,n=c,s=2;break;case 2:e[r++]=(15&n)<<4|(60&c)>>2,n=c,s=3;break;case 3:e[r++]=(3&n)<<6|c,s=0}}if(1===s)throw Error(a);return r-o},r.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},9211:function(t){\"use strict\";function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,r){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:r||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var r=this._listeners[t],n=0;n<r.length;)r[n].fn===e?r.splice(n,1):++n;return this},e.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var r=[],n=1;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<e.length;)e[n].fn.apply(e[n++].ctx,r)}return this}},945:function(t){\"use strict\";function e(t){return\"undefined\"!=typeof Float32Array?function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),n=128===r[3];function i(t,n,i){e[0]=t,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3]}function o(t,n,i){e[0]=t,n[i]=r[3],n[i+1]=r[2],n[i+2]=r[1],n[i+3]=r[0]}function a(t,n){return r[0]=t[n],r[1]=t[n+1],r[2]=t[n+2],r[3]=t[n+3],e[0]}function s(t,n){return r[3]=t[n],r[2]=t[n+1],r[1]=t[n+2],r[0]=t[n+3],e[0]}t.writeFloatLE=n?i:o,t.writeFloatBE=n?o:i,t.readFloatLE=n?a:s,t.readFloatBE=n?s:a}():function(){function e(t,e,r,n){var i=e<0?1:0;if(i&&(e=-e),0===e)t(1/e>0?0:2147483648,r,n);else if(isNaN(e))t(2143289344,r,n);else if(e>34028234663852886e22)t((i<<31|2139095040)>>>0,r,n);else if(e<11754943508222875e-54)t((i<<31|Math.round(e/1401298464324817e-60))>>>0,r,n);else{var o=Math.floor(Math.log(e)/Math.LN2);t((i<<31|o+127<<23|8388607&Math.round(e*Math.pow(2,-o)*8388608))>>>0,r,n)}}function a(t,e,r){var n=t(e,r),i=2*(n>>31)+1,o=n>>>23&255,a=8388607&n;return 255===o?a?NaN:i*(1/0):0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}t.writeFloatLE=e.bind(null,r),t.writeFloatBE=e.bind(null,n),t.readFloatLE=a.bind(null,i),t.readFloatBE=a.bind(null,o)}(),\"undefined\"!=typeof Float64Array?function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),n=128===r[7];function i(t,n,i){e[0]=t,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3],n[i+4]=r[4],n[i+5]=r[5],n[i+6]=r[6],n[i+7]=r[7]}function o(t,n,i){e[0]=t,n[i]=r[7],n[i+1]=r[6],n[i+2]=r[5],n[i+3]=r[4],n[i+4]=r[3],n[i+5]=r[2],n[i+6]=r[1],n[i+7]=r[0]}function a(t,n){return r[0]=t[n],r[1]=t[n+1],r[2]=t[n+2],r[3]=t[n+3],r[4]=t[n+4],r[5]=t[n+5],r[6]=t[n+6],r[7]=t[n+7],e[0]}function s(t,n){return r[7]=t[n],r[6]=t[n+1],r[5]=t[n+2],r[4]=t[n+3],r[3]=t[n+4],r[2]=t[n+5],r[1]=t[n+6],r[0]=t[n+7],e[0]}t.writeDoubleLE=n?i:o,t.writeDoubleBE=n?o:i,t.readDoubleLE=n?a:s,t.readDoubleBE=n?s:a}():function(){function e(t,e,r,n,i,o){var a=n<0?1:0;if(a&&(n=-n),0===n)t(0,i,o+e),t(1/n>0?0:2147483648,i,o+r);else if(isNaN(n))t(0,i,o+e),t(2146959360,i,o+r);else if(n>17976931348623157e292)t(0,i,o+e),t((a<<31|2146435072)>>>0,i,o+r);else{var s;if(n<22250738585072014e-324)t((s=n/5e-324)>>>0,i,o+e),t((a<<31|s/4294967296)>>>0,i,o+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),t(4503599627370496*(s=n*Math.pow(2,-u))>>>0,i,o+e),t((a<<31|u+1023<<20|1048576*s&1048575)>>>0,i,o+r)}}}function a(t,e,r,n,i){var o=t(n,i+e),a=t(n,i+r),s=2*(a>>31)+1,u=a>>>20&2047,c=4294967296*(1048575&a)+o;return 2047===u?c?NaN:s*(1/0):0===u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+4503599627370496)}t.writeDoubleLE=e.bind(null,r,0,4),t.writeDoubleBE=e.bind(null,n,4,0),t.readDoubleLE=a.bind(null,i,0,4),t.readDoubleBE=a.bind(null,o,4,0)}(),t}function r(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function n(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=255&t}function i(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function o(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},7199:function _(module){\"use strict\";function inquire(moduleName){try{var mod=eval(\"quire\".replace(/^/,\"re\"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}module.exports=inquire},6662:function(t){\"use strict\";t.exports=function(t,e,r){var n=r||8192,i=n>>>1,o=null,a=n;return function(r){if(r<1||r>i)return t(r);a+r>n&&(o=t(n),a=0);var s=e.call(o,a,a+=r);return 7&a&&(a=1+(7|a)),s}}},4997:function(t,e){\"use strict\";var r=e;r.length=function(t){for(var e=0,r=0,n=0;n<t.length;++n)(r=t.charCodeAt(n))<128?e+=1:r<2048?e+=2:55296==(64512&r)&&56320==(64512&t.charCodeAt(n+1))?(++n,e+=4):e+=3;return e},r.read=function(t,e,r){if(r-e<1)return\"\";for(var n,i=null,o=[],a=0;e<r;)(n=t[e++])<128?o[a++]=n:n>191&&n<224?o[a++]=(31&n)<<6|63&t[e++]:n>239&&n<365?(n=((7&n)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,o[a++]=55296+(n>>10),o[a++]=56320+(1023&n)):o[a++]=(15&n)<<12|(63&t[e++])<<6|63&t[e++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,o.slice(0,a))),i.join(\"\")):String.fromCharCode.apply(String,o.slice(0,a))},r.write=function(t,e,r){for(var n,i,o=r,a=0;a<t.length;++a)(n=t.charCodeAt(a))<128?e[r++]=n:n<2048?(e[r++]=n>>6|192,e[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(i=t.charCodeAt(a+1)))?(n=65536+((1023&n)<<10)+(1023&i),++a,e[r++]=n>>18|240,e[r++]=n>>12&63|128,e[r++]=n>>6&63|128,e[r++]=63&n|128):(e[r++]=n>>12|224,e[r++]=n>>6&63|128,e[r++]=63&n|128);return r-o}},3442:function(t,e){\"use strict\";e.__esModule=!0;var r=function(){function t(e){if(!e)throw new TypeError(\"Invalid argument; `value` has no value.\");this.value=t.EMPTY,e&&t.isGuid(e)&&(this.value=e)}return t.isGuid=function(e){var r=e.toString();return e&&(e instanceof t||t.validator.test(r))},t.create=function(){return new t([t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join(\"-\"))},t.createEmpty=function(){return new t(\"emptyguid\")},t.parse=function(e){return new t(e)},t.raw=function(){return[t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join(\"-\")},t.gen=function(t){for(var e=\"\",r=0;r<t;r++)e+=(65536*(1+Math.random())|0).toString(16).substring(1);return e},t.prototype.equals=function(e){return t.isGuid(e)&&this.value===e.toString()},t.prototype.isEmpty=function(){return this.value===t.EMPTY},t.prototype.toString=function(){return this.value},t.prototype.toJSON=function(){return{value:this.value}},t.validator=new RegExp(\"^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$\",\"i\"),t.EMPTY=\"00000000-0000-0000-0000-000000000000\",t}();e.Guid=r},2100:function(t,e,r){\"use strict\";t.exports=r(9482)},9482:function(t,e,r){\"use strict\";var n=e;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build=\"minimal\",n.Writer=r(1173),n.BufferWriter=r(3155),n.Reader=r(1408),n.BufferReader=r(593),n.util=r(9693),n.rpc=r(5994),n.roots=r(5054),n.configure=i,i()},1408:function(t,e,r){\"use strict\";t.exports=u;var n,i=r(9693),o=i.LongBits,a=i.utf8;function s(t,e){return RangeError(\"index out of range: \"+t.pos+\" + \"+(e||1)+\" > \"+t.len)}function u(t){this.buf=t,this.pos=0,this.len=t.length}var c,l=\"undefined\"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new u(t);throw Error(\"illegal buffer\")}:function(t){if(Array.isArray(t))return new u(t);throw Error(\"illegal buffer\")},f=function(){return i.Buffer?function(t){return(u.create=function(t){return i.Buffer.isBuffer(t)?new n(t):l(t)})(t)}:l};function h(){var t=new o(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw s(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw s(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error(\"invalid varint encoding\")}function p(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw s(this,8);return new o(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return p(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|p(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},u.prototype.bytes=function(){var t=this.uint32(),e=this.pos,r=this.pos+t;if(r>this.len)throw s(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,r):e===r?new this.buf.constructor(0):this._slice.call(this.buf,e,r)},u.prototype.string=function(){var t=this.bytes();return a.read(t,0,t.length)},u.prototype.skip=function(t){if(\"number\"==typeof t){if(this.pos+t>this.len)throw s(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error(\"invalid wire type \"+t+\" at offset \"+this.pos)}return this},u._configure=function(t){n=t,u.create=f(),n._configure();var e=i.Long?\"toLong\":\"toNumber\";i.merge(u.prototype,{int64:function(){return h.call(this)[e](!1)},uint64:function(){return h.call(this)[e](!0)},sint64:function(){return h.call(this).zzDecode()[e](!1)},fixed64:function(){return d.call(this)[e](!0)},sfixed64:function(){return d.call(this)[e](!1)}})}},593:function(t,e,r){\"use strict\";t.exports=o;var n=r(1408);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(9693);function o(t){n.call(this,t)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString(\"utf-8\",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},5054:function(t){\"use strict\";t.exports={}},5994:function(t,e,r){\"use strict\";e.Service=r(7948)},7948:function(t,e,r){\"use strict\";t.exports=i;var n=r(9693);function i(t,e,r){if(\"function\"!=typeof t)throw TypeError(\"rpcImpl must be a function\");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(r)}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function t(e,r,i,o,a){if(!o)throw TypeError(\"request must be specified\");var s=this;if(!a)return n.asPromise(t,s,e,r,i,o);if(s.rpcImpl)try{return s.rpcImpl(e,r[s.requestDelimited?\"encodeDelimited\":\"encode\"](o).finish(),(function(t,r){if(t)return s.emit(\"error\",t,e),a(t);if(null!==r){if(!(r instanceof i))try{r=i[s.responseDelimited?\"decodeDelimited\":\"decode\"](r)}catch(t){return s.emit(\"error\",t,e),a(t)}return s.emit(\"data\",r,e),a(null,r)}s.end(!0)}))}catch(t){return s.emit(\"error\",t,e),void setTimeout((function(){a(t)}),0)}else setTimeout((function(){a(Error(\"already ended\"))}),0)},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit(\"end\").off()),this}},1945:function(t,e,r){\"use strict\";t.exports=i;var n=r(9693);function i(t,e){this.lo=t>>>0,this.hi=e>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash=\"\\0\\0\\0\\0\\0\\0\\0\\0\";i.fromNumber=function(t){if(0===t)return o;var e=t<0;e&&(t=-t);var r=t>>>0,n=(t-r)/4294967296>>>0;return e&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new i(r,n)},i.from=function(t){if(\"number\"==typeof t)return i.fromNumber(t);if(n.isString(t)){if(!n.Long)return i.fromNumber(parseInt(t,10));t=n.Long.fromString(t)}return t.low||t.high?new i(t.low>>>0,t.high>>>0):o},i.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,r=~this.hi>>>0;return e||(r=r+1>>>0),-(e+4294967296*r)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var s=String.prototype.charCodeAt;i.fromHash=function(t){return t===a?o:new i((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},i.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},i.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:r<128?9:10}},9693:function(t,e,r){\"use strict\";var n=e;function i(t,e,r){for(var n=Object.keys(e),i=0;i<n.length;++i)void 0!==t[n[i]]&&r||(t[n[i]]=e[n[i]]);return t}function o(t){function e(t,r){if(!(this instanceof e))return new e(t,r);Object.defineProperty(this,\"message\",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,\"stack\",{value:(new Error).stack||\"\"}),r&&i(this,r)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+\": \"+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}n.asPromise=r(4537),n.base64=r(7419),n.EventEmitter=r(9211),n.float=r(945),n.inquire=r(7199),n.utf8=r(4997),n.pool=r(6662),n.LongBits=r(1945),n.isNode=Boolean(void 0!==global&&global&&global.process&&global.process.versions&&global.process.versions.node),n.global=n.isNode&&global||\"undefined\"!=typeof window&&window||\"undefined\"!=typeof self&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(t){return\"number\"==typeof t&&isFinite(t)&&Math.floor(t)===t},n.isString=function(t){return\"string\"==typeof t||t instanceof String},n.isObject=function(t){return t&&\"object\"==_typeof(t)},n.isset=n.isSet=function(t,e){var r=t[e];return!(null==r||!t.hasOwnProperty(e))&&(\"object\"!=_typeof(r)||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},n.Buffer=function(){try{var t=n.inquire(\"buffer\").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(t){return\"number\"==typeof t?n.Buffer?n._Buffer_allocUnsafe(t):new n.Array(t):n.Buffer?n._Buffer_from(t):\"undefined\"==typeof Uint8Array?t:new Uint8Array(t)},n.Array=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire(\"long\"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\\\x00-\\\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,e){var r=n.LongBits.fromHash(t);return n.Long?n.Long.fromBits(r.lo,r.hi,e):r.toNumber(Boolean(e))},n.merge=i,n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newError=o,n.ProtocolError=o(\"ProtocolError\"),n.oneOfGetter=function(t){for(var e={},r=0;r<t.length;++r)e[t[r]]=1;return function(){for(var t=Object.keys(this),r=t.length-1;r>-1;--r)if(1===e[t[r]]&&void 0!==this[t[r]]&&null!==this[t[r]])return t[r]}},n.oneOfSetter=function(t){return function(e){for(var r=0;r<t.length;++r)t[r]!==e&&delete this[t[r]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var t=n.Buffer;t?(n._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,r){return new t(e,r)},n._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):n._Buffer_from=n._Buffer_allocUnsafe=null}},1173:function(t,e,r){\"use strict\";t.exports=f;var n,i=r(9693),o=i.LongBits,a=i.base64,s=i.utf8;function u(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function c(){}function l(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function f(){this.len=0,this.head=new u(c,0,0),this.tail=this.head,this.states=null}var h=function(){return i.Buffer?function(){return(f.create=function(){return new n})()}:function(){return new f}};function p(t,e,r){e[r]=255&t}function d(t,e){this.len=t,this.next=void 0,this.val=e}function m(t,e,r){for(;t.hi;)e[r++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[r++]=127&t.lo|128,t.lo=t.lo>>>7;e[r++]=t.lo}function y(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}f.create=h(),f.alloc=function(t){return new i.Array(t)},i.Array!==Array&&(f.alloc=i.pool(f.alloc,i.Array.prototype.subarray)),f.prototype._push=function(t,e,r){return this.tail=this.tail.next=new u(t,e,r),this.len+=e,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(t,e,r){for(;t>127;)e[r++]=127&t|128,t>>>=7;e[r]=t},f.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new d((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},f.prototype.int32=function(t){return t<0?this._push(m,10,o.fromNumber(t)):this.uint32(t)},f.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},f.prototype.uint64=function(t){var e=o.from(t);return this._push(m,e.length(),e)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(t){var e=o.from(t).zzEncode();return this._push(m,e.length(),e)},f.prototype.bool=function(t){return this._push(p,1,t?1:0)},f.prototype.fixed32=function(t){return this._push(y,4,t>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(t){var e=o.from(t);return this._push(y,4,e.lo)._push(y,4,e.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(t){return this._push(i.float.writeFloatLE,4,t)},f.prototype.double=function(t){return this._push(i.float.writeDoubleLE,8,t)};var g=i.Array.prototype.set?function(t,e,r){e.set(t,r)}:function(t,e,r){for(var n=0;n<t.length;++n)e[r+n]=t[n]};f.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(p,1,0);if(i.isString(t)){var r=f.alloc(e=a.length(t));a.decode(t,r,0),t=r}return this.uint32(e)._push(g,e,t)},f.prototype.string=function(t){var e=s.length(t);return e?this.uint32(e)._push(s.write,e,t):this._push(p,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var t=this.head,e=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=t.next,this.tail=e,this.len+=r),this},f.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),r=0;t;)t.fn(t.val,e,r),r+=t.len,t=t.next;return e},f._configure=function(t){n=t,f.create=h(),n._configure()}},3155:function(t,e,r){\"use strict\";t.exports=o;var n=r(1173);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(9693);function o(){n.call(this)}function a(t,e,r){t.length<40?i.utf8.write(t,e,r):e.utf8Write?e.utf8Write(t,r):e.write(t,r)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&\"set\"===i.Buffer.prototype.set.name?function(t,e,r){e.set(t,r)}:function(t,e,r){if(t.copy)t.copy(e,r,0,t.length);else for(var n=0;n<t.length;)e[r++]=t[n++]}},o.prototype.bytes=function(t){i.isString(t)&&(t=i._Buffer_from(t,\"base64\"));var e=t.length>>>0;return this.uint32(e),e&&this._push(o.writeBytesBuffer,e,t),this},o.prototype.string=function(t){var e=i.Buffer.byteLength(t);return this.uint32(e),e&&this._push(a,e,t),this},o._configure()},4154:function(t){\"use strict\";t.exports='\"use strict\";var e={},a=\"object\"==typeof process&&\"object\"==typeof process.versions&&\"string\"==typeof process.versions.node;if(a){var r=require(\"worker_threads\"),t=r.parentPort;t.on(\"message\",(e=>onmessage({data:e})));var s=require(\"fs\");Object.assign(global,{self:global,require:require,Module:e,location:{href:__filename},Worker:r.Worker,importScripts:e=>(0,eval)(s.readFileSync(e,\"utf8\")+\"//# sourceURL=\"+e),postMessage:e=>t.postMessage(e),performance:global.performance||{now:Date.now}})}var o=!1,d=function(){var e=Array.prototype.slice.call(arguments).join(\" \");a?s.writeSync(2,e+\"\\\\n\"):console.error(e)};self.alert=function(){var a=Array.prototype.slice.call(arguments).join(\" \");postMessage({cmd:\"alert\",text:a,threadId:e._pthread_self()})},e.instantiateWasm=(a,r)=>{var t=e.wasmModule;return e.wasmModule=null,r(new WebAssembly.Instance(t,a))},self.onunhandledrejection=e=>{throw e.reason??e},self.onmessage=function a(r){try{if(\"load\"===r.data.cmd){let s=[];self.onmessage=e=>s.push(e),self.startWorker=r=>{e=r,postMessage({cmd:\"loaded\"});for(let e of s)a(e);self.onmessage=a},e.wasmModule=r.data.wasmModule;for(const a of r.data.handlers)e[a]=(...e)=>{postMessage({cmd:\"callHandler\",handler:a,args:e})};if(e.wasmMemory=r.data.wasmMemory,e.buffer=e.wasmMemory.buffer,e.ENVIRONMENT_IS_PTHREAD=!0,\"string\"==typeof r.data.urlOrBlob)importScripts(r.data.urlOrBlob);else{var t=URL.createObjectURL(r.data.urlOrBlob);importScripts(t),URL.revokeObjectURL(t)}ortWasmThreaded(e)}else if(\"run\"===r.data.cmd){e.__emscripten_thread_init(r.data.pthread_ptr,0,0,1),e.__emscripten_thread_mailbox_await(r.data.pthread_ptr),e.establishStackSpace(),e.PThread.receiveObjectTransfer(r.data),e.PThread.threadInitTLS(),o||(o=!0);try{e.invokeEntryPoint(r.data.start_routine,r.data.arg)}catch(e){if(\"unwind\"!=e)throw e}}else\"cancel\"===r.data.cmd?e._pthread_self()&&e.__emscripten_thread_exit(-1):\"setimmediate\"===r.data.target||(\"checkMailbox\"===r.data.cmd?o&&e.checkMailbox():r.data.cmd&&(d(\"worker.js received unknown command \"+r.data.cmd),d(r.data)))}catch(a){throw e.__emscripten_thread_crashed&&e.__emscripten_thread_crashed(),a}};\\n'},1670:function(t){\"use strict\";t.exports=__WEBPACK_EXTERNAL_MODULE__1670__},7067:function(){},1296:function(){},760:function(){},1384:function(){},3993:function(){},908:function(){},6953:function(){},9925:function(){},2806:function(){},6449:function(){},2850:function(){},5381:function(){},1583:function(t,e){var r,n=function(t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var e=null;try{e=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(t){}function r(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function n(t){return!0===(t&&t.__isLong__)}function i(t){var e=Math.clz32(t&-t);return t?31-e:e}r.prototype.__isLong__,Object.defineProperty(r.prototype,\"__isLong__\",{value:!0}),r.isLong=n;var o={},a={};function s(t,e){var r,n,i;return e?(i=0<=(t>>>=0)&&t<256)&&(n=a[t])?n:(r=c(t,0,!0),i&&(a[t]=r),r):(i=-128<=(t|=0)&&t<128)&&(n=o[t])?n:(r=c(t,t<0?-1:0,!1),i&&(o[t]=r),r)}function u(t,e){if(isNaN(t))return e?b:g;if(e){if(t<0)return b;if(t>=d)return k}else{if(t<=-m)return E;if(t+1>=m)return x}return t<0?u(-t,e).neg():c(t%p|0,t/p|0,e)}function c(t,e,n){return new r(t,e,n)}r.fromInt=s,r.fromNumber=u,r.fromBits=c;var l=Math.pow;function f(t,e,r){if(0===t.length)throw Error(\"empty string\");if(\"number\"==typeof e?(r=e,e=!1):e=!!e,\"NaN\"===t||\"Infinity\"===t||\"+Infinity\"===t||\"-Infinity\"===t)return e?b:g;if((r=r||10)<2||36<r)throw RangeError(\"radix\");var n;if((n=t.indexOf(\"-\"))>0)throw Error(\"interior hyphen\");if(0===n)return f(t.substring(1),e,r).neg();for(var i=u(l(r,8)),o=g,a=0;a<t.length;a+=8){var s=Math.min(8,t.length-a),c=parseInt(t.substring(a,a+s),r);if(s<8){var h=u(l(r,s));o=o.mul(h).add(u(c))}else o=(o=o.mul(i)).add(u(c))}return o.unsigned=e,o}function h(t,e){return\"number\"==typeof t?u(t,e):\"string\"==typeof t?f(t,e):c(t.low,t.high,\"boolean\"==typeof e?e:t.unsigned)}r.fromString=f,r.fromValue=h;var p=4294967296,d=p*p,m=d/2,y=s(1<<24),g=s(0);r.ZERO=g;var b=s(0,!0);r.UZERO=b;var v=s(1);r.ONE=v;var w=s(1,!0);r.UONE=w;var _=s(-1);r.NEG_ONE=_;var x=c(-1,2147483647,!1);r.MAX_VALUE=x;var k=c(-1,-1,!0);r.MAX_UNSIGNED_VALUE=k;var E=c(0,-2147483648,!1);r.MIN_VALUE=E;var S=r.prototype;S.toInt=function(){return this.unsigned?this.low>>>0:this.low},S.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},S.toString=function(t){if((t=t||10)<2||36<t)throw RangeError(\"radix\");if(this.isZero())return\"0\";if(this.isNegative()){if(this.eq(E)){var e=u(t),r=this.div(e),n=r.mul(e).sub(this);return r.toString(t)+n.toInt().toString(t)}return\"-\"+this.neg().toString(t)}for(var i=u(l(t,6),this.unsigned),o=this,a=\"\";;){var s=o.div(i),c=(o.sub(s.mul(i)).toInt()>>>0).toString(t);if((o=s).isZero())return c+a;for(;c.length<6;)c=\"0\"+c;a=\"\"+c+a}},S.getHighBits=function(){return this.high},S.getHighBitsUnsigned=function(){return this.high>>>0},S.getLowBits=function(){return this.low},S.getLowBitsUnsigned=function(){return this.low>>>0},S.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&!(t&1<<e);e--);return 0!=this.high?e+33:e+1},S.isZero=function(){return 0===this.high&&0===this.low},S.eqz=S.isZero,S.isNegative=function(){return!this.unsigned&&this.high<0},S.isPositive=function(){return this.unsigned||this.high>=0},S.isOdd=function(){return!(1&~this.low)},S.isEven=function(){return!(1&this.low)},S.equals=function(t){return n(t)||(t=h(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&this.high===t.high&&this.low===t.low},S.eq=S.equals,S.notEquals=function(t){return!this.eq(t)},S.neq=S.notEquals,S.ne=S.notEquals,S.lessThan=function(t){return this.comp(t)<0},S.lt=S.lessThan,S.lessThanOrEqual=function(t){return this.comp(t)<=0},S.lte=S.lessThanOrEqual,S.le=S.lessThanOrEqual,S.greaterThan=function(t){return this.comp(t)>0},S.gt=S.greaterThan,S.greaterThanOrEqual=function(t){return this.comp(t)>=0},S.gte=S.greaterThanOrEqual,S.ge=S.greaterThanOrEqual,S.compare=function(t){if(n(t)||(t=h(t)),this.eq(t))return 0;var e=this.isNegative(),r=t.isNegative();return e&&!r?-1:!e&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},S.comp=S.compare,S.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(v)},S.neg=S.negate,S.add=function(t){n(t)||(t=h(t));var e=this.high>>>16,r=65535&this.high,i=this.low>>>16,o=65535&this.low,a=t.high>>>16,s=65535&t.high,u=t.low>>>16,l=0,f=0,p=0,d=0;return p+=(d+=o+(65535&t.low))>>>16,f+=(p+=i+u)>>>16,l+=(f+=r+s)>>>16,l+=e+a,c((p&=65535)<<16|(d&=65535),(l&=65535)<<16|(f&=65535),this.unsigned)},S.subtract=function(t){return n(t)||(t=h(t)),this.add(t.neg())},S.sub=S.subtract,S.multiply=function(t){if(this.isZero())return this;if(n(t)||(t=h(t)),e)return c(e.mul(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned);if(t.isZero())return this.unsigned?b:g;if(this.eq(E))return t.isOdd()?E:g;if(t.eq(E))return this.isOdd()?E:g;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(y)&&t.lt(y))return u(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,i=65535&this.high,o=this.low>>>16,a=65535&this.low,s=t.high>>>16,l=65535&t.high,f=t.low>>>16,p=65535&t.low,d=0,m=0,v=0,w=0;return v+=(w+=a*p)>>>16,m+=(v+=o*p)>>>16,v&=65535,m+=(v+=a*f)>>>16,d+=(m+=i*p)>>>16,m&=65535,d+=(m+=o*f)>>>16,m&=65535,d+=(m+=a*l)>>>16,d+=r*p+i*f+o*l+a*s,c((v&=65535)<<16|(w&=65535),(d&=65535)<<16|(m&=65535),this.unsigned)},S.mul=S.multiply,S.divide=function(t){if(n(t)||(t=h(t)),t.isZero())throw Error(\"division by zero\");var r,i,o;if(e)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?c((this.unsigned?e.div_u:e.div_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?b:g;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return b;if(t.gt(this.shru(1)))return w;o=b}else{if(this.eq(E))return t.eq(v)||t.eq(_)?E:t.eq(E)?v:(r=this.shr(1).div(t).shl(1)).eq(g)?t.isNegative()?v:_:(i=this.sub(t.mul(r)),o=r.add(i.div(t)));if(t.eq(E))return this.unsigned?b:g;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();o=g}for(i=this;i.gte(t);){r=Math.max(1,Math.floor(i.toNumber()/t.toNumber()));for(var a=Math.ceil(Math.log(r)/Math.LN2),s=a<=48?1:l(2,a-48),f=u(r),p=f.mul(t);p.isNegative()||p.gt(i);)p=(f=u(r-=s,this.unsigned)).mul(t);f.isZero()&&(f=v),o=o.add(f),i=i.sub(p)}return o},S.div=S.divide,S.modulo=function(t){return n(t)||(t=h(t)),e?c((this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},S.mod=S.modulo,S.rem=S.modulo,S.not=function(){return c(~this.low,~this.high,this.unsigned)},S.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},S.clz=S.countLeadingZeros,S.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},S.ctz=S.countTrailingZeros,S.and=function(t){return n(t)||(t=h(t)),c(this.low&t.low,this.high&t.high,this.unsigned)},S.or=function(t){return n(t)||(t=h(t)),c(this.low|t.low,this.high|t.high,this.unsigned)},S.xor=function(t){return n(t)||(t=h(t)),c(this.low^t.low,this.high^t.high,this.unsigned)},S.shiftLeft=function(t){return n(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?c(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):c(0,this.low<<t-32,this.unsigned)},S.shl=S.shiftLeft,S.shiftRight=function(t){return n(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?c(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):c(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},S.shr=S.shiftRight,S.shiftRightUnsigned=function(t){return n(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?c(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):c(32===t?this.high:this.high>>>t-32,0,this.unsigned)},S.shru=S.shiftRightUnsigned,S.shr_u=S.shiftRightUnsigned,S.rotateLeft=function(t){var e;return n(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?c(this.high,this.low,this.unsigned):t<32?(e=32-t,c(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned)):(e=32-(t-=32),c(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned))},S.rotl=S.rotateLeft,S.rotateRight=function(t){var e;return n(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?c(this.high,this.low,this.unsigned):t<32?(e=32-t,c(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned)):(e=32-(t-=32),c(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned))},S.rotr=S.rotateRight,S.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},S.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},S.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},S.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},S.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,e>>>24,e>>>16&255,e>>>8&255,255&e]},r.fromBytes=function(t,e,n){return n?r.fromBytesLE(t,e):r.fromBytesBE(t,e)},r.fromBytesLE=function(t,e){return new r(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,e)},r.fromBytesBE=function(t,e){return new r(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],e)};var T=r;return t.default=T,\"default\"in t?t.default:t}({});void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)},5686:function(t,e,r){\"use strict\";r.r(e),r.d(e,{flatbuffers:function(){return n}});var n={};n.Offset,n.Table,n.SIZEOF_SHORT=2,n.SIZEOF_INT=4,n.FILE_IDENTIFIER_LENGTH=4,n.SIZE_PREFIX_LENGTH=4,n.Encoding={UTF8_BYTES:1,UTF16_STRING:2},n.int32=new Int32Array(2),n.float32=new Float32Array(n.int32.buffer),n.float64=new Float64Array(n.int32.buffer),n.isLittleEndian=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],n.Long=function(t,e){this.low=0|t,this.high=0|e},n.Long.create=function(t,e){return 0==t&&0==e?n.Long.ZERO:new n.Long(t,e)},n.Long.prototype.toFloat64=function(){return(this.low>>>0)+4294967296*this.high},n.Long.prototype.equals=function(t){return this.low==t.low&&this.high==t.high},n.Long.ZERO=new n.Long(0,0),n.Builder=function(t){if(t)e=t;else var e=1024;this.bb=n.ByteBuffer.allocate(e),this.space=e,this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1},n.Builder.prototype.clear=function(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1},n.Builder.prototype.forceDefaults=function(t){this.force_defaults=t},n.Builder.prototype.dataBuffer=function(){return this.bb},n.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())},n.Builder.prototype.prep=function(t,e){t>this.minalign&&(this.minalign=t);for(var r=1+~(this.bb.capacity()-this.space+e)&t-1;this.space<r+t+e;){var i=this.bb.capacity();this.bb=n.Builder.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(r)},n.Builder.prototype.pad=function(t){for(var e=0;e<t;e++)this.bb.writeInt8(--this.space,0)},n.Builder.prototype.writeInt8=function(t){this.bb.writeInt8(this.space-=1,t)},n.Builder.prototype.writeInt16=function(t){this.bb.writeInt16(this.space-=2,t)},n.Builder.prototype.writeInt32=function(t){this.bb.writeInt32(this.space-=4,t)},n.Builder.prototype.writeInt64=function(t){this.bb.writeInt64(this.space-=8,t)},n.Builder.prototype.writeFloat32=function(t){this.bb.writeFloat32(this.space-=4,t)},n.Builder.prototype.writeFloat64=function(t){this.bb.writeFloat64(this.space-=8,t)},n.Builder.prototype.addInt8=function(t){this.prep(1,0),this.writeInt8(t)},n.Builder.prototype.addInt16=function(t){this.prep(2,0),this.writeInt16(t)},n.Builder.prototype.addInt32=function(t){this.prep(4,0),this.writeInt32(t)},n.Builder.prototype.addInt64=function(t){this.prep(8,0),this.writeInt64(t)},n.Builder.prototype.addFloat32=function(t){this.prep(4,0),this.writeFloat32(t)},n.Builder.prototype.addFloat64=function(t){this.prep(8,0),this.writeFloat64(t)},n.Builder.prototype.addFieldInt8=function(t,e,r){(this.force_defaults||e!=r)&&(this.addInt8(e),this.slot(t))},n.Builder.prototype.addFieldInt16=function(t,e,r){(this.force_defaults||e!=r)&&(this.addInt16(e),this.slot(t))},n.Builder.prototype.addFieldInt32=function(t,e,r){(this.force_defaults||e!=r)&&(this.addInt32(e),this.slot(t))},n.Builder.prototype.addFieldInt64=function(t,e,r){!this.force_defaults&&e.equals(r)||(this.addInt64(e),this.slot(t))},n.Builder.prototype.addFieldFloat32=function(t,e,r){(this.force_defaults||e!=r)&&(this.addFloat32(e),this.slot(t))},n.Builder.prototype.addFieldFloat64=function(t,e,r){(this.force_defaults||e!=r)&&(this.addFloat64(e),this.slot(t))},n.Builder.prototype.addFieldOffset=function(t,e,r){(this.force_defaults||e!=r)&&(this.addOffset(e),this.slot(t))},n.Builder.prototype.addFieldStruct=function(t,e,r){e!=r&&(this.nested(e),this.slot(t))},n.Builder.prototype.nested=function(t){if(t!=this.offset())throw new Error(\"FlatBuffers: struct must be serialized inline.\")},n.Builder.prototype.notNested=function(){if(this.isNested)throw new Error(\"FlatBuffers: object serialization must not be nested.\")},n.Builder.prototype.slot=function(t){this.vtable[t]=this.offset()},n.Builder.prototype.offset=function(){return this.bb.capacity()-this.space},n.Builder.growByteBuffer=function(t){var e=t.capacity();if(3221225472&e)throw new Error(\"FlatBuffers: cannot grow buffer beyond 2 gigabytes.\");var r=e<<1,i=n.ByteBuffer.allocate(r);return i.setPosition(r-e),i.bytes().set(t.bytes(),r-e),i},n.Builder.prototype.addOffset=function(t){this.prep(n.SIZEOF_INT,0),this.writeInt32(this.offset()-t+n.SIZEOF_INT)},n.Builder.prototype.startObject=function(t){this.notNested(),null==this.vtable&&(this.vtable=[]),this.vtable_in_use=t;for(var e=0;e<t;e++)this.vtable[e]=0;this.isNested=!0,this.object_start=this.offset()},n.Builder.prototype.endObject=function(){if(null==this.vtable||!this.isNested)throw new Error(\"FlatBuffers: endObject called without startObject\");this.addInt32(0);for(var t=this.offset(),e=this.vtable_in_use-1;e>=0&&0==this.vtable[e];e--);for(var r=e+1;e>=0;e--)this.addInt16(0!=this.vtable[e]?t-this.vtable[e]:0);this.addInt16(t-this.object_start);var i=(r+2)*n.SIZEOF_SHORT;this.addInt16(i);var o=0,a=this.space;t:for(e=0;e<this.vtables.length;e++){var s=this.bb.capacity()-this.vtables[e];if(i==this.bb.readInt16(s)){for(var u=n.SIZEOF_SHORT;u<i;u+=n.SIZEOF_SHORT)if(this.bb.readInt16(a+u)!=this.bb.readInt16(s+u))continue t;o=this.vtables[e];break}}return o?(this.space=this.bb.capacity()-t,this.bb.writeInt32(this.space,o-t)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-t,this.offset()-t)),this.isNested=!1,t},n.Builder.prototype.finish=function(t,e,r){var i=r?n.SIZE_PREFIX_LENGTH:0;if(e){var o=e;if(this.prep(this.minalign,n.SIZEOF_INT+n.FILE_IDENTIFIER_LENGTH+i),o.length!=n.FILE_IDENTIFIER_LENGTH)throw new Error(\"FlatBuffers: file identifier must be length \"+n.FILE_IDENTIFIER_LENGTH);for(var a=n.FILE_IDENTIFIER_LENGTH-1;a>=0;a--)this.writeInt8(o.charCodeAt(a))}this.prep(this.minalign,n.SIZEOF_INT+i),this.addOffset(t),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)},n.Builder.prototype.finishSizePrefixed=function(t,e){this.finish(t,e,!0)},n.Builder.prototype.requiredField=function(t,e){var r=this.bb.capacity()-t,n=r-this.bb.readInt32(r);if(0==this.bb.readInt16(n+e))throw new Error(\"FlatBuffers: field \"+e+\" must be set\")},n.Builder.prototype.startVector=function(t,e,r){this.notNested(),this.vector_num_elems=e,this.prep(n.SIZEOF_INT,t*e),this.prep(r,t*e)},n.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()},n.Builder.prototype.createString=function(t){if(t instanceof Uint8Array)var e=t;else{e=[];for(var r=0;r<t.length;){var n,i=t.charCodeAt(r++);(n=i<55296||i>=56320?i:(i<<10)+t.charCodeAt(r++)+-56613888)<128?e.push(n):(n<2048?e.push(n>>6&31|192):(n<65536?e.push(n>>12&15|224):e.push(n>>18&7|240,n>>12&63|128),e.push(n>>6&63|128)),e.push(63&n|128))}}this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),r=0;for(var o=this.space,a=this.bb.bytes();r<e.length;r++)a[o++]=e[r];return this.endVector()},n.Builder.prototype.createLong=function(t,e){return n.Long.create(t,e)},n.ByteBuffer=function(t){this.bytes_=t,this.position_=0},n.ByteBuffer.allocate=function(t){return new n.ByteBuffer(new Uint8Array(t))},n.ByteBuffer.prototype.clear=function(){this.position_=0},n.ByteBuffer.prototype.bytes=function(){return this.bytes_},n.ByteBuffer.prototype.position=function(){return this.position_},n.ByteBuffer.prototype.setPosition=function(t){this.position_=t},n.ByteBuffer.prototype.capacity=function(){return this.bytes_.length},n.ByteBuffer.prototype.readInt8=function(t){return this.readUint8(t)<<24>>24},n.ByteBuffer.prototype.readUint8=function(t){return this.bytes_[t]},n.ByteBuffer.prototype.readInt16=function(t){return this.readUint16(t)<<16>>16},n.ByteBuffer.prototype.readUint16=function(t){return this.bytes_[t]|this.bytes_[t+1]<<8},n.ByteBuffer.prototype.readInt32=function(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24},n.ByteBuffer.prototype.readUint32=function(t){return this.readInt32(t)>>>0},n.ByteBuffer.prototype.readInt64=function(t){return new n.Long(this.readInt32(t),this.readInt32(t+4))},n.ByteBuffer.prototype.readUint64=function(t){return new n.Long(this.readUint32(t),this.readUint32(t+4))},n.ByteBuffer.prototype.readFloat32=function(t){return n.int32[0]=this.readInt32(t),n.float32[0]},n.ByteBuffer.prototype.readFloat64=function(t){return n.int32[n.isLittleEndian?0:1]=this.readInt32(t),n.int32[n.isLittleEndian?1:0]=this.readInt32(t+4),n.float64[0]},n.ByteBuffer.prototype.writeInt8=function(t,e){this.bytes_[t]=e},n.ByteBuffer.prototype.writeUint8=function(t,e){this.bytes_[t]=e},n.ByteBuffer.prototype.writeInt16=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8},n.ByteBuffer.prototype.writeUint16=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8},n.ByteBuffer.prototype.writeInt32=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24},n.ByteBuffer.prototype.writeUint32=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24},n.ByteBuffer.prototype.writeInt64=function(t,e){this.writeInt32(t,e.low),this.writeInt32(t+4,e.high)},n.ByteBuffer.prototype.writeUint64=function(t,e){this.writeUint32(t,e.low),this.writeUint32(t+4,e.high)},n.ByteBuffer.prototype.writeFloat32=function(t,e){n.float32[0]=e,this.writeInt32(t,n.int32[0])},n.ByteBuffer.prototype.writeFloat64=function(t,e){n.float64[0]=e,this.writeInt32(t,n.int32[n.isLittleEndian?0:1]),this.writeInt32(t+4,n.int32[n.isLittleEndian?1:0])},n.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length<this.position_+n.SIZEOF_INT+n.FILE_IDENTIFIER_LENGTH)throw new Error(\"FlatBuffers: ByteBuffer is too short to contain an identifier.\");for(var t=\"\",e=0;e<n.FILE_IDENTIFIER_LENGTH;e++)t+=String.fromCharCode(this.readInt8(this.position_+n.SIZEOF_INT+e));return t},n.ByteBuffer.prototype.__offset=function(t,e){var r=t-this.readInt32(t);return e<this.readInt16(r)?this.readInt16(r+e):0},n.ByteBuffer.prototype.__union=function(t,e){return t.bb_pos=e+this.readInt32(e),t.bb=this,t},n.ByteBuffer.prototype.__string=function(t,e){t+=this.readInt32(t);var r=this.readInt32(t),i=\"\",o=0;if(t+=n.SIZEOF_INT,e===n.Encoding.UTF8_BYTES)return this.bytes_.subarray(t,t+r);for(;o<r;){var a,s=this.readUint8(t+o++);if(s<192)a=s;else{var u=this.readUint8(t+o++);if(s<224)a=(31&s)<<6|63&u;else{var c=this.readUint8(t+o++);a=s<240?(15&s)<<12|(63&u)<<6|63&c:(7&s)<<18|(63&u)<<12|(63&c)<<6|63&this.readUint8(t+o++)}}a<65536?i+=String.fromCharCode(a):(a-=65536,i+=String.fromCharCode(55296+(a>>10),56320+(1023&a)))}return i},n.ByteBuffer.prototype.__indirect=function(t){return t+this.readInt32(t)},n.ByteBuffer.prototype.__vector=function(t){return t+this.readInt32(t)+n.SIZEOF_INT},n.ByteBuffer.prototype.__vector_len=function(t){return this.readInt32(t+this.readInt32(t))},n.ByteBuffer.prototype.__has_identifier=function(t){if(t.length!=n.FILE_IDENTIFIER_LENGTH)throw new Error(\"FlatBuffers: file identifier must be length \"+n.FILE_IDENTIFIER_LENGTH);for(var e=0;e<n.FILE_IDENTIFIER_LENGTH;e++)if(t.charCodeAt(e)!=this.readInt8(this.position_+n.SIZEOF_INT+e))return!1;return!0},n.ByteBuffer.prototype.createLong=function(t,e){return n.Long.create(t,e)}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})};var __webpack_exports__=__webpack_require__(1057);return __webpack_exports__}()},\"object\"==_typeof(exports)&&\"object\"==_typeof(module)?module.exports=t(__webpack_require__(389)):(__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0===(__WEBPACK_AMD_DEFINE_RESULT__=\"function\"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=t)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}).call(this,__webpack_require__(7),\"/\",\"/index.js\",__webpack_require__(10),__webpack_require__(13)(module))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&o.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&o.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function o(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.resolveBackend=e.registerBackend=void 0;var u={},c=[];e.registerBackend=function(t,e,r){if(!e||\"function\"!=typeof e.init||\"function\"!=typeof e.createSessionHandler)throw new TypeError(\"not a valid backend\");var n=u[t];if(void 0===n)u[t]={backend:e,priority:r};else{if(n.priority>r)return;if(n.priority===r&&n.backend!==e)throw new Error('cannot register backend \"'.concat(t,'\" using priority ').concat(r))}if(r>=0){var i=c.indexOf(t);-1!==i&&c.splice(i,1);for(var o=0;o<c.length;o++)if(u[c[o]].priority<=r)return void c.splice(o,0,t);c.push(t)}};var l=function(){var t,e=(t=i().mark((function t(e){var r,n,a,s,l,f,h;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=0===e.length?c:e,n=[],a=o(r),t.prev=3,a.s();case 5:if((s=a.n()).done){t.next=33;break}if(l=s.value,!(f=u[l])){t.next=31;break}if(!f.initialized){t.next=13;break}return t.abrupt(\"return\",f.backend);case 13:if(!f.aborted){t.next=15;break}return t.abrupt(\"continue\",31);case 15:return h=!!f.initPromise,t.prev=16,h||(f.initPromise=f.backend.init()),t.next=20,f.initPromise;case 20:return f.initialized=!0,t.abrupt(\"return\",f.backend);case 24:t.prev=24,t.t0=t.catch(16),h||n.push({name:l,err:t.t0}),f.aborted=!0;case 28:return t.prev=28,delete f.initPromise,t.finish(28);case 31:t.next=5;break;case 33:t.next=38;break;case 35:t.prev=35,t.t1=t.catch(3),a.e(t.t1);case 38:return t.prev=38,a.f(),t.finish(38);case 41:throw new Error(\"no available backend found. ERR: \".concat(n.map((function(t){return\"[\".concat(t.name,\"] \").concat(t.err)})).join(\", \")));case 42:case\"end\":return t.stop()}}),t,null,[[3,35,38,41],[16,24,28,31]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,u,\"next\",t)}function u(t){s(o,n,i,a,u,\"throw\",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}();e.resolveBackend=l},function(t,e,r){var n={};function i(){return\"10000000-1000-4000-8000-100000000000\".replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}window.setInterval=function(t,e){var r=i();return n[r]={callback:t,parameters:Array.prototype.slice.call(arguments,2)},chrome.runtime.sendMessage({type:\"D1f8F\",label:{name:\"z18eoD\",hkId:r,time:e}}),r},window.clearInterval=function(t){n.hasOwnProperty(t)&&(delete n[t],chrome.runtime.sendMessage({type:\"D1f8F\",label:{name:\"_18gk_\",hkId:t}}))},window.setTimeout=function(t,e){var r=i();return n[r]={callback:t,parameters:Array.prototype.slice.call(arguments,2),isTimeout:!0},chrome.runtime.sendMessage({type:\"D1f8F\",label:{name:\"U18i9\",hkId:r,time:e}}),r},window.clearTimeout=function(t){n.hasOwnProperty(t)&&(delete n[t],chrome.runtime.sendMessage({type:\"D1f8F\",label:{name:\"N18jhN\",hkId:t}}))},chrome.runtime.onMessage.addListener((function(t){var e=t.type,r=t.label;if(\"D1f8F\"===e){var i,o,a,s=r.hkId;n.hasOwnProperty(s)&&(a=(i=n[s]).callback,o=i.parameters,i.hasOwnProperty(\"isTimeout\")&&i.isTimeout&&delete n[s]),\"function\"==typeof a&&a.apply(window,o)}}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){},function(t,e,r){\"use strict\";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!(\"get\"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)\"default\"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,\"__esModule\",{value:!0}),i(r(390),e),i(r(391),e),i(r(394),e),i(r(265),e),i(r(400),e)},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.registerBackend=void 0;var n=r(315);Object.defineProperty(e,\"registerBackend\",{enumerable:!0,get:function(){return n.registerBackend}})},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.env=void 0;var n=r(392);e.env=n.env},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.env=void 0;var n=r(393),i=\"warning\";e.env={wasm:{},webgl:{},webgpu:{},versions:{common:n.version},set logLevel(t){if(void 0!==t){if(\"string\"!=typeof t||-1===[\"verbose\",\"info\",\"warning\",\"error\",\"fatal\"].indexOf(t))throw new Error(\"Unsupported logging level: \".concat(t));i=t}},get logLevel(){return i}},Object.defineProperty(e.env,\"logLevel\",{enumerable:!0})},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.version=void 0,e.version=\"1.16.3\"},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.InferenceSession=void 0;var n=r(395);e.InferenceSession=n.InferenceSession},function(t,e,r){\"use strict\";function n(){n=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new C(n||[]);return o(a,\"_invoke\",{value:D(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&i.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(n,o,s,u){var c=p(t[n],t,o);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==a(f)&&i.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var n;o(this,\"_invoke\",{value:function(t,i){function o(){return new e((function(e,n){r(t,i,e,n)}))}return n=n?n.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function r(){for(;++n<e.length;)if(i.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(a(e)+\" is not iterable\")}return w.prototype=_,o(S,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=i.call(a,\"catchLoc\"),c=i.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var o=n;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function i(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,u,\"next\",t)}function u(t){s(o,n,i,a,u,\"throw\",t)}a(void 0)}))}}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t,e){if(\"object\"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==a(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.InferenceSession=void 0;var f=r(315),h=r(265),p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.handler=e}return e=t,r=[{key:\"run\",value:(p=u(n().mark((function t(e,r,o){var s,u,c,l,f,p,d,m,y,g,b,v,w,_,x,k,E,S,T,A,D;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s={},u={},!(\"object\"!==a(e)||null===e||e instanceof h.Tensor||Array.isArray(e))){t.next=4;break}throw new TypeError(\"'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.\");case 4:if(c=!0,\"object\"!==a(r)){t.next=58;break}if(null!==r){t.next=8;break}throw new TypeError(\"Unexpected argument[1]: cannot be null.\");case 8:if(!(r instanceof h.Tensor)){t.next=10;break}throw new TypeError(\"'fetches' cannot be a Tensor\");case 10:if(!Array.isArray(r)){t.next=42;break}if(0!==r.length){t.next=13;break}throw new TypeError(\"'fetches' cannot be an empty array.\");case 13:c=!1,l=i(r),t.prev=15,l.s();case 17:if((f=l.n()).done){t.next=26;break}if(\"string\"==typeof(p=f.value)){t.next=21;break}throw new TypeError(\"'fetches' must be a string array or an object.\");case 21:if(-1!==this.outputNames.indexOf(p)){t.next=23;break}throw new RangeError(\"'fetches' contains invalid output name: \".concat(p,\".\"));case 23:s[p]=null;case 24:t.next=17;break;case 26:t.next=31;break;case 28:t.prev=28,t.t0=t.catch(15),l.e(t.t0);case 31:return t.prev=31,l.f(),t.finish(31);case 34:if(\"object\"!==a(o)||null===o){t.next=38;break}u=o,t.next=40;break;case 38:if(void 0===o){t.next=40;break}throw new TypeError(\"'options' must be an object.\");case 40:t.next=56;break;case 42:d=!1,m=Object.getOwnPropertyNames(r),y=i(this.outputNames);try{for(y.s();!(g=y.n()).done;)b=g.value,-1!==m.indexOf(b)&&(null===(v=r[b])||v instanceof h.Tensor)&&(d=!0,c=!1,s[b]=v)}catch(t){y.e(t)}finally{y.f()}if(!d){t.next=55;break}if(\"object\"!==a(o)||null===o){t.next=51;break}u=o,t.next=53;break;case 51:if(void 0===o){t.next=53;break}throw new TypeError(\"'options' must be an object.\");case 53:t.next=56;break;case 55:u=r;case 56:t.next=60;break;case 58:if(void 0===r){t.next=60;break}throw new TypeError(\"Unexpected argument[1]: must be 'fetches' or 'options'.\");case 60:w=i(this.inputNames),t.prev=61,w.s();case 63:if((_=w.n()).done){t.next=69;break}if(x=_.value,void 0!==e[x]){t.next=67;break}throw new Error(\"input '\".concat(x,\"' is missing in 'feeds'.\"));case 67:t.next=63;break;case 69:t.next=74;break;case 71:t.prev=71,t.t1=t.catch(61),w.e(t.t1);case 74:return t.prev=74,w.f(),t.finish(74);case 77:if(c){k=i(this.outputNames);try{for(k.s();!(E=k.n()).done;)S=E.value,s[S]=null}catch(t){k.e(t)}finally{k.f()}}return t.next=80,this.handler.run(e,s,u);case 80:for(D in T=t.sent,A={},T)Object.hasOwnProperty.call(T,D)&&(A[D]=new h.Tensor(T[D].type,T[D].data,T[D].dims));return t.abrupt(\"return\",A);case 84:case\"end\":return t.stop()}}),t,this,[[15,28,31,34],[61,71,74,77]])}))),function(t,e,r){return p.apply(this,arguments)})},{key:\"release\",value:(l=u(n().mark((function t(){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",this.handler.dispose());case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:\"startProfiling\",value:function(){this.handler.startProfiling()}},{key:\"endProfiling\",value:function(){this.handler.endProfiling()}},{key:\"inputNames\",get:function(){return this.handler.inputNames}},{key:\"outputNames\",get:function(){return this.handler.outputNames}}],o=[{key:\"create\",value:(s=u(n().mark((function e(r,i,o,s){var u,c,l,h,p,d,m,y,g;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c={},\"string\"!=typeof r){e.next=11;break}if(u=r,\"object\"!==a(i)||null===i){e.next=7;break}c=i,e.next=9;break;case 7:if(void 0===i){e.next=9;break}throw new TypeError(\"'options' must be an object.\");case 9:case 19:e.next=60;break;case 11:if(!(r instanceof Uint8Array)){e.next=21;break}if(u=r,\"object\"!==a(i)||null===i){e.next=17;break}c=i,e.next=19;break;case 17:if(void 0===i){e.next=19;break}throw new TypeError(\"'options' must be an object.\");case 21:if(!(r instanceof ArrayBuffer||\"undefined\"!=typeof SharedArrayBuffer&&r instanceof SharedArrayBuffer)){e.next=59;break}if(l=r,h=0,p=r.byteLength,\"object\"!==a(i)||null===i){e.next=29;break}c=i,e.next=56;break;case 29:if(\"number\"!=typeof i){e.next=54;break}if(h=i,Number.isSafeInteger(h)){e.next=33;break}throw new RangeError(\"'byteOffset' must be an integer.\");case 33:if(!(h<0||h>=l.byteLength)){e.next=35;break}throw new RangeError(\"'byteOffset' is out of range [0, \".concat(l.byteLength,\").\"));case 35:if(p=r.byteLength-h,\"number\"!=typeof o){e.next=50;break}if(p=o,Number.isSafeInteger(p)){e.next=40;break}throw new RangeError(\"'byteLength' must be an integer.\");case 40:if(!(p<=0||h+p>l.byteLength)){e.next=42;break}throw new RangeError(\"'byteLength' is out of range (0, \".concat(l.byteLength-h,\"].\"));case 42:if(\"object\"!==a(s)||null===s){e.next=46;break}c=s,e.next=48;break;case 46:if(void 0===s){e.next=48;break}throw new TypeError(\"'options' must be an object.\");case 48:e.next=52;break;case 50:if(void 0===o){e.next=52;break}throw new TypeError(\"'byteLength' must be a number.\");case 52:e.next=56;break;case 54:if(void 0===i){e.next=56;break}throw new TypeError(\"'options' must be an object.\");case 56:u=new Uint8Array(l,h,p),e.next=60;break;case 59:throw new TypeError(\"Unexpected argument[0]: must be 'path' or 'buffer'.\");case 60:return d=c.executionProviders||[],m=d.map((function(t){return\"string\"==typeof t?t:t.name})),e.next=64,(0,f.resolveBackend)(m);case 64:return y=e.sent,e.next=67,y.createSessionHandler(u,c);case 67:return g=e.sent,e.abrupt(\"return\",new t(g));case 69:case\"end\":return e.stop()}}),e)}))),function(t,e,r,n){return s.apply(this,arguments)})}],r&&c(e.prototype,r),o&&c(e,o),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,o,s,l,p}();e.InferenceSession=p},function(t,e,r){\"use strict\";function n(){n=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&i.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(n,a,s,u){var c=p(t[n],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==o(f)&&i.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var n;a(this,\"_invoke\",{value:function(t,i){function o(){return new e((function(e,n){r(t,i,e,n)}))}return n=n?n.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function r(){for(;++n<e.length;)if(i.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(o(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=i.call(a,\"catchLoc\"),c=i.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var o=n;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function i(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==o(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Tensor=void 0;var u=r(397),c=r(398),l=r(399),f=new Map([[\"float32\",Float32Array],[\"uint8\",Uint8Array],[\"int8\",Int8Array],[\"uint16\",Uint16Array],[\"float16\",Uint16Array],[\"int16\",Int16Array],[\"int32\",Int32Array],[\"bool\",Uint8Array],[\"float64\",Float64Array],[\"uint32\",Uint32Array]]),h=new Map([[Float32Array,\"float32\"],[Uint8Array,\"uint8\"],[Int8Array,\"int8\"],[Uint16Array,\"uint16\"],[Int16Array,\"int16\"],[Int32Array,\"int32\"],[Float64Array,\"float64\"],[Uint32Array,\"uint32\"]]),p=!1,d=function(){return t=function t(e,r,n){var i,a,s;if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(){if(!p){p=!0;var t=\"undefined\"!=typeof BigInt64Array&&\"function\"==typeof BigInt64Array.from,e=\"undefined\"!=typeof BigUint64Array&&\"function\"==typeof BigUint64Array.from;t&&(f.set(\"int64\",BigInt64Array),h.set(BigInt64Array,\"int64\")),e&&(f.set(\"uint64\",BigUint64Array),h.set(BigUint64Array,\"uint64\"))}}(),\"string\"==typeof e)if(i=e,s=n,\"string\"===e){if(!Array.isArray(r))throw new TypeError(\"A string tensor's data must be a string array.\");a=r}else{var u=f.get(e);if(void 0===u)throw new TypeError(\"Unsupported tensor type: \".concat(e,\".\"));if(Array.isArray(r)){if(\"float16\"===e)throw new TypeError(\"Creating a float16 tensor from number array is not supported. Please use Uint16Array as data.\");a=\"uint64\"===e||\"int64\"===e?u.from(r,BigInt):u.from(r)}else{if(!(r instanceof u))throw new TypeError(\"A \".concat(i,\" tensor's data must be type of \").concat(u));a=r}}else if(s=r,Array.isArray(e)){if(0===e.length)throw new TypeError(\"Tensor type cannot be inferred from an empty array.\");var c=o(e[0]);if(\"string\"===c)i=\"string\",a=e;else{if(\"boolean\"!==c)throw new TypeError(\"Invalid element type of data array: \".concat(c,\".\"));i=\"bool\",a=Uint8Array.from(e)}}else{var d=h.get(e.constructor);if(void 0===d)throw new TypeError(\"Unsupported type for tensor data: \".concat(e.constructor,\".\"));i=d,a=e}if(void 0===s)s=[a.length];else if(!Array.isArray(s))throw new TypeError(\"A tensor's dims must be a number array\");var m=(0,l.calculateSize)(s);if(m!==a.length)throw new Error(\"Tensor's size(\".concat(m,\") does not match data length(\").concat(a.length,\").\"));this.dims=s,this.type=i,this.data=a,this.size=m},e=[{key:\"toDataURL\",value:function(t){return(0,u.tensorToDataURL)(this,t)}},{key:\"toImageData\",value:function(t){return(0,u.tensorToImageData)(this,t)}},{key:\"reshape\",value:function(t){return(0,l.tensorReshape)(this,t)}}],r=[{key:\"fromImage\",value:(s=n().mark((function t(e,r){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",(0,c.tensorFromImage)(e,r));case 1:case\"end\":return t.stop()}}),t)})),d=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=s.apply(t,e);function a(t){i(o,r,n,a,u,\"next\",t)}function u(t){i(o,r,n,a,u,\"throw\",t)}a(void 0)}))},function(t,e){return d.apply(this,arguments)})}],e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,s,d}();e.Tensor=d},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.tensorToImageData=e.tensorToDataURL=void 0;e.tensorToDataURL=function(t,e){var r=document.createElement(\"canvas\");r.width=t.dims[3],r.height=t.dims[2];var n=r.getContext(\"2d\");if(null!=n){var i,o;void 0!==(null==e?void 0:e.tensorLayout)&&\"NHWC\"===e.tensorLayout?(i=t.dims[2],o=t.dims[3]):(i=t.dims[3],o=t.dims[2]);var a,s,u=void 0!==(null==e?void 0:e.format)?e.format:\"RGB\",c=null==e?void 0:e.norm;void 0===c||void 0===c.mean?a=[255,255,255,255]:\"number\"==typeof c.mean?a=[c.mean,c.mean,c.mean,c.mean]:(a=[c.mean[0],c.mean[1],c.mean[2],0],void 0!==c.mean[3]&&(a[3]=c.mean[3])),void 0===c||void 0===c.bias?s=[0,0,0,0]:\"number\"==typeof c.bias?s=[c.bias,c.bias,c.bias,c.bias]:(s=[c.bias[0],c.bias[1],c.bias[2],0],void 0!==c.bias[3]&&(s[3]=c.bias[3]));var l=o*i,f=0,h=l,p=2*l,d=-1;\"RGBA\"===u?(f=0,h=l,p=2*l,d=3*l):\"RGB\"===u?(f=0,h=l,p=2*l):\"RBG\"===u&&(f=0,p=l,h=2*l);for(var m=0;m<o;m++)for(var y=0;y<i;y++){var g=(t.data[f++]-s[0])*a[0],b=(t.data[h++]-s[1])*a[1],v=(t.data[p++]-s[2])*a[2],w=-1===d?255:(t.data[d++]-s[3])*a[3];n.fillStyle=\"rgba(\"+g+\",\"+b+\",\"+v+\",\"+w+\")\",n.fillRect(y,m,1,1)}return r.toDataURL()}throw new Error(\"Can not access image data\")};e.tensorToImageData=function(t,e){var r,n,i,o,a=document.createElement(\"canvas\").getContext(\"2d\");if(null==a)throw new Error(\"Can not access image data\");void 0!==(null==e?void 0:e.tensorLayout)&&\"NHWC\"===e.tensorLayout?(n=t.dims[2],i=t.dims[1],o=t.dims[3]):(n=t.dims[3],i=t.dims[2],o=t.dims[1]);var s,u,c=void 0!==e&&void 0!==e.format?e.format:\"RGB\",l=null==e?void 0:e.norm;void 0===l||void 0===l.mean?s=[255,255,255,255]:\"number\"==typeof l.mean?s=[l.mean,l.mean,l.mean,l.mean]:(s=[l.mean[0],l.mean[1],l.mean[2],255],void 0!==l.mean[3]&&(s[3]=l.mean[3])),void 0===l||void 0===l.bias?u=[0,0,0,0]:\"number\"==typeof l.bias?u=[l.bias,l.bias,l.bias,l.bias]:(u=[l.bias[0],l.bias[1],l.bias[2],0],void 0!==l.bias[3]&&(u[3]=l.bias[3]));var f=i*n;if(void 0!==e&&(void 0!==e.format&&4===o&&\"RGBA\"!==e.format||3===o&&\"RGB\"!==e.format&&\"BGR\"!==e.format))throw new Error(\"Tensor format doesn't match input tensor dims\");var h=0,p=1,d=2,m=3,y=0,g=f,b=2*f,v=-1;\"RGBA\"===c?(y=0,g=f,b=2*f,v=3*f):\"RGB\"===c?(y=0,g=f,b=2*f):\"RBG\"===c&&(y=0,b=f,g=2*f),r=a.createImageData(n,i);for(var w=0;w<i*n;h+=4,p+=4,d+=4,m+=4,w++)r.data[h]=(t.data[y++]-u[0])*s[0],r.data[p]=(t.data[g++]-u[1])*s[1],r.data[d]=(t.data[b++]-u[2])*s[2],r.data[m]=-1===v?255:(t.data[v++]-u[3])*s[3];return r}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",l=s.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new C(n||[]);return a(o,\"_invoke\",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&o.call(E,u)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==n(f)&&o.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(S,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),f(S,l,\"Generator\"),f(S,u,(function(){return this})),f(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.tensorFromImage=e.bufferToTensor=void 0;var a=r(265);e.bufferToTensor=function(t,e){var r;if(void 0===t)throw new Error(\"Image buffer must be defined\");if(void 0===e.height||void 0===e.width)throw new Error(\"Image height and width must be defined\");if(\"NHWC\"===e.tensorLayout)throw new Error(\"NHWC Tensor layout is not supported yet\");var n,i,o,s,u=e.height,c=e.width,l=null!==(r=e.norm)&&void 0!==r?r:{mean:255,bias:0};\"number\"==typeof l.mean?n=[l.mean,l.mean,l.mean,l.mean]:n=[l.mean[0],l.mean[1],l.mean[2],null!==(o=l.mean[3])&&void 0!==o?o:255];\"number\"==typeof l.bias?i=[l.bias,l.bias,l.bias,l.bias]:i=[l.bias[0],l.bias[1],l.bias[2],null!==(s=l.bias[3])&&void 0!==s?s:0];var f=void 0!==e.format?e.format:\"RGBA\",h=void 0!==e.tensorFormat&&void 0!==e.tensorFormat?e.tensorFormat:\"RGB\",p=u*c,d=\"RGBA\"===h?new Float32Array(4*p):new Float32Array(3*p),m=4,y=0,g=1,b=2,v=3,w=0,_=p,x=2*p,k=-1;\"RGB\"===f&&(m=3,y=0,g=1,b=2,v=-1),\"RGBA\"===h?k=3*p:\"RBG\"===h?(w=0,x=p,_=2*p):\"BGR\"===h&&(x=0,_=p,w=2*p);for(var E=0;E<p;E++,y+=m,b+=m,g+=m,v+=m)d[w++]=(t[y]+i[0])/n[0],d[_++]=(t[g]+i[1])/n[1],d[x++]=(t[b]+i[2])/n[2],-1!==k&&-1!==v&&(d[k++]=(t[v]+i[3])/n[3]);return\"RGBA\"===h?new a.Tensor(\"float32\",d,[1,4,u,c]):new a.Tensor(\"float32\",d,[1,3,u,c])};var s=function(){var t,r=(t=i().mark((function t(r,n){var o,a,s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=\"undefined\"!=typeof HTMLImageElement&&r instanceof HTMLImageElement,a=\"undefined\"!=typeof ImageData&&r instanceof ImageData,s=\"undefined\"!=typeof ImageBitmap&&r instanceof ImageBitmap,u=\"string\"==typeof r,l=null!=n?n:{},!o){t.next=35;break}if((f=document.createElement(\"canvas\")).width=r.width,f.height=r.height,null==(h=f.getContext(\"2d\"))){t.next=32;break}if(p=r.height,d=r.width,void 0!==n&&void 0!==n.resizedHeight&&void 0!==n.resizedWidth&&(p=n.resizedHeight,d=n.resizedWidth),void 0===n){t.next=25;break}if(l=n,void 0===n.tensorFormat){t.next=20;break}throw new Error(\"Image input config format must be RGBA for HTMLImageElement\");case 20:l.tensorFormat=\"RGBA\";case 21:l.height=p,l.width=d,t.next=28;break;case 25:l.tensorFormat=\"RGBA\",l.height=p,l.width=d;case 28:h.drawImage(r,0,0),c=h.getImageData(0,0,d,p).data,t.next=33;break;case 32:throw new Error(\"Can not access image data\");case 33:t.next=82;break;case 35:if(!a){t.next=57;break}if(void 0!==n&&void 0!==n.resizedWidth&&void 0!==n.resizedHeight?(m=n.resizedHeight,y=n.resizedWidth):(m=r.height,y=r.width),void 0!==n&&(l=n),l.format=\"RGBA\",l.height=m,l.width=y,void 0===n){t.next=54;break}if((g=document.createElement(\"canvas\")).width=y,g.height=m,null==(b=g.getContext(\"2d\"))){t.next=51;break}b.putImageData(r,0,0),c=b.getImageData(0,0,y,m).data,t.next=52;break;case 51:throw new Error(\"Can not access image data\");case 52:t.next=55;break;case 54:c=r.data;case 55:t.next=82;break;case 57:if(!s){t.next=77;break}if(void 0!==n){t.next=60;break}throw new Error(\"Please provide image config with format for Imagebitmap\");case 60:if((v=document.createElement(\"canvas\")).width=r.width,v.height=r.height,null==(w=v.getContext(\"2d\"))){t.next=74;break}return _=r.height,x=r.width,w.drawImage(r,0,0,x,_),c=w.getImageData(0,0,x,_).data,l.height=_,l.width=x,t.abrupt(\"return\",(0,e.bufferToTensor)(c,l));case 74:throw new Error(\"Can not access image data\");case 75:t.next=82;break;case 77:if(!u){t.next=81;break}return t.abrupt(\"return\",new Promise((function(t,n){var i=document.createElement(\"canvas\"),o=i.getContext(\"2d\");if(!r||!o)return n();var a=new Image;a.crossOrigin=\"Anonymous\",a.src=r,a.onload=function(){i.width=a.width,i.height=a.height,o.drawImage(a,0,0,i.width,i.height);var r=o.getImageData(0,0,i.width,i.height);l.height=i.height,l.width=i.width,t((0,e.bufferToTensor)(r.data,l))}})));case 81:throw new Error(\"Input data provided is not supported - aborted tensor creation\");case 82:if(void 0===c){t.next=86;break}return t.abrupt(\"return\",(0,e.bufferToTensor)(c,l));case 86:throw new Error(\"Input data provided is not supported - aborted tensor creation\");case 87:case\"end\":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))});return function(t,e){return r.apply(this,arguments)}}();e.tensorFromImage=s},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.tensorReshape=e.calculateSize=void 0;var n=r(265);e.calculateSize=function(t){for(var e=1,r=0;r<t.length;r++){var n=t[r];if(\"number\"!=typeof n||!Number.isSafeInteger(n))throw new TypeError(\"dims[\".concat(r,\"] must be an integer, got: \").concat(n));if(n<0)throw new RangeError(\"dims[\".concat(r,\"] must be a non-negative integer, got: \").concat(n));e*=n}return e};e.tensorReshape=function(t,e){return new n.Tensor(t.type,t.data,e)}},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0})},,,,,function(t,e,r){\"use strict\";r.r(e);r(388);var n=r(266),i=(r(66),r(2)),o=r(4),a=r(3),s=r(244);function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}function c(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",c=o.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new C(n||[]);return i(a,\"_invoke\",{value:D(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",g=\"completed\",b={};function v(){}function w(){}function _(){}var x={};l(x,a,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&n.call(E,a)&&(x=E);var S=_.prototype=v.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,o,a,s){var c=p(t[i],t,o);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==u(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r(\"throw\",t,a,s)}))}s(c.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function D(e,r,n){var i=d;return function(o,a){if(i===y)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===b)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=g,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=g,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),b;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,b):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(u(e)+\" is not iterable\")}return w.prototype=_,i(S,\"constructor\",{value:_,configurable:!0}),i(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),l(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),l(S,c,\"Generator\"),l(S,a,(function(){return this})),l(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),b}},e}function h(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,\"next\",t)}function s(t){h(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function d(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function m(t){var e=function(t,e){if(\"object\"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=u(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==u(e)?e:e+\"\"}var y=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var r=this;r.app=e,r.ort=e.ort,r.contentCache=new s.a(10),r.t0=null},e=[{key:\"init\",value:(h=p(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return h.apply(this,arguments)})},{key:\"znpiz\",value:(l=p(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return l.apply(this,arguments)})},{key:\"Ko0n\",value:(u=p(f().mark((function t(e){var r,n,i,o,s,u,c,l,h,p,d,m;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,i=e.split(\"@@\"),o=i[0],s=i.length>1?i.slice(1):[],t.next=6,r.contentCache.XkhpX(o);case 6:if(!(n=t.sent)){t.next=9;break}return t.abrupt(\"return\",n);case 9:if(t.prev=9,u=chrome.runtime.getManifest(),c=[],l=u.web_accessible_resources)for(h=0;h<l.length;h++)Array.isArray(l[h].resources)&&(c=c.concat(l[h].resources.filter((function(t){return t.startsWith(\"static/\")}))));if(!c.includes(\"static/\".concat(o))){t.next=21;break}return t.next=17,r.ort.InferenceSession.create(chrome.runtime.getURL(\"static/\".concat(o)));case 17:return n=t.sent,t.next=20,r.contentCache.wk67(o,n);case 20:return t.abrupt(\"return\",n);case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(9);case 26:return t.prev=26,t.next=29,a.a.sdnj({code:o,urls:s});case 29:if(!((null==(d=t.sent)||null===(p=d.value)||void 0===p?void 0:p.length)>0)){t.next=40;break}return m=a.a.Ii24(d.value),t.next=34,r.ort.InferenceSession.create(m);case 34:return n=t.sent,t.next=37,r.contentCache.wk67(o,n);case 37:return t.abrupt(\"return\",n);case 40:case 41:t.next=46;break;case 43:t.prev=43,t.t1=t.catch(26);case 46:return t.abrupt(\"return\",n);case 47:case\"end\":return t.stop()}}),t,this,[[9,23],[26,43]])}))),function(t){return u.apply(this,arguments)})},{key:\"Do87F\",value:(i=p(f().mark((function t(e,r,n){var i,o,s,u,l,h,d,m,y,g,b,v,w,_,x,k,E,S,T,A,D,O,I;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this,o=[],t.prev=3,t.next=7,i.Ko0n(e.CSL97s0.CSL94sn);case 7:if(l=t.sent){t.next=11;break}return t.abrupt(\"return\",[]);case 11:if(h=-1,!r||null===(s=e.CSL93jp)||void 0===s||!s.CSL94sn){t.next=31;break}return t.next=16,i.Ko0n(e.CSL93jp.CSL94sn);case 16:if(m=t.sent){t.next=20;break}return t.abrupt(\"return\",[]);case 20:return t.next=23,a.a.He09J(r);case 23:return y=t.sent,t.next=26,a.a.ycma(y,null===(d=e.CSL93jp)||void 0===d?void 0:d.CSL95dh);case 26:return t.next=28,i.yo4i(l,e.CSL97s0.CSL94pa,m,y);case 28:g=t.sent,h=g.indexOf(Math.max.apply(Math,c(g)));case 31:if(!((null===(u=e.CSL97l3)||void 0===u?void 0:u.length)>0)){t.next=57;break}return b=n.length,v=e.CSL97l3.length,w=Array.from({length:b},(function(){return Array(v).fill(0)})),_=n.map((function(t){return a.a.He09J(t)})),t.next=38,Promise.all(_);case 38:x=t.sent,k=f().mark((function t(r){var n,o,s,u;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(\"\"!==(n=e.CSL97l3[r]).CSL94sn){t.next=4;break}for(o=0;o<b;o++)w[o][r]=0;return t.abrupt(\"return\",0);case 4:return t.next=6,i.Ko0n(n.CSL94sn);case 6:if(s=t.sent){t.next=10;break}return t.abrupt(\"return\",{v:[]});case 10:return u=x.map(function(){var t=p(f().mark((function t(o,u){var p,d,m,y,g,b,v;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p=o.clone(),t.next=3,a.a.ycma(p,n.CSL95dh);case 3:return t.next=5,i.yo4i(l,e.CSL97s0.CSL94pa,s,p);case 5:if(d=t.sent,m=d.indexOf(Math.max.apply(Math,c(d))),(y=e.CSL90o3[r.toString()])&&0!==y.length){t.next=13;break}(h<0||m===h)&&(w[u][r]=1),t.next=25;break;case 13:g=0;case 14:if(!(g<y.length)){t.next=25;break}if((b=y[g].split(\".\")).length<2&&b.unshift(\"\"),!(b[0].length>0&&b[0]!==h.toString())){t.next=19;break}return t.abrupt(\"continue\",22);case 19:if(b[1].trim()!==m.toString()){t.next=22;break}return w[u][r]=1,t.abrupt(\"break\",25);case 22:g++,t.next=14;break;case 25:(v=e.CSL98jk&&e.CSL98jk[r.toString()])&&(w[u][r]=v[m]||0);case 27:case\"end\":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),t.next=14,Promise.all(u);case 14:case 15:case\"end\":return t.stop()}}),t)})),S=0;case 42:if(!(S<v)){t.next=52;break}return t.delegateYield(k(S),\"t0\",44);case 44:if(0!==(E=t.t0)){t.next=47;break}return t.abrupt(\"continue\",49);case 47:if(!E){t.next=49;break}return t.abrupt(\"return\",E.v);case 49:S++,t.next=42;break;case 52:if(e.CSL90o3.CSL98n4>0)for(T=0;T<v;T++)for(A=-9999,1===e.CSL90o3.CSL98n4?A=a.a.Mgk4(w,T):2===e.CSL90o3.CSL98n4&&(A=a.a.rgdcr(w,T)),D=0;D<b;D++)w[D][T]===A?w[D][T]=1:w[D][T]=0;for(O=0;O<w.length;O++)I=w[O].reduce((function(t,e){return t+e}),0),(1===e.CSL90o3.CSL93qm&&I===w[O].length||1!==e.CSL90o3.CSL93qm&&I>0)&&o.push(O);t.next=57;break;case 57:t.next=62;break;case 59:t.prev=59,t.t1=t.catch(3);case 62:return t.prev=62,t.finish(62);case 65:return t.abrupt(\"return\",o);case 66:case\"end\":return t.stop()}}),t,this,[[3,59,62,65]])}))),function(t,e,r){return i.apply(this,arguments)})},{key:\"yo4i\",value:(n=p(f().mark((function t(e,r){var n,i,s,u,c,l,h,p,d,m,y=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=y.length>2&&void 0!==y[2]?y[2]:null,i=y.length>3?y[3]:void 0,s=this,t.next=6,a.a.He09J(i);case 6:return(u=t.sent).resize(r,r,o.a.RESIZE_BILINEAR),c=a.a.Df72H(s.ort,u,[1,3,r,r],!0),(l={})[e.inputNames[0]]=c,t.next=14,e.run(l);case 14:if(h=t.sent,p=h[e.outputNames[0]],!n){t.next=27;break}return(l={})[n.inputNames[0]]=p,t.next=22,n.run(l);case 22:m=t.sent,d=m[n.outputNames[0]].data,t.next=28;break;case 27:d=p.data;case 28:return t.abrupt(\"return\",d);case 30:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})}],e&&d(t.prototype,e),r&&d(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,i,u,l,h}(),g=r(253);function b(t){return b=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},b(t)}function v(t){return function(t){if(Array.isArray(t))return w(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return w(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _(){_=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new C(n||[]);return i(a,\"_invoke\",{value:D(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function g(){}function v(){}function w(){}var x={};c(x,a,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==r&&n.call(E,a)&&(x=E);var S=w.prototype=g.prototype=Object.create(x);function T(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==b(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function D(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=f(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,O(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=f(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function L(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(b(e)+\" is not iterable\")}return v.prototype=w,i(S,\"constructor\",{value:w,configurable:!0}),i(w,\"constructor\",{value:v,configurable:!0}),v.displayName=c(w,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===v||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(A.prototype),c(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new A(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(S),c(S,u,\"Generator\"),c(S,a,(function(){return this})),c(S,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;P(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function x(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function k(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){x(o,n,i,a,s,\"next\",t)}function s(t){x(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function E(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,S(n.key),n)}}function S(t){var e=function(t,e){if(\"object\"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=b(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==b(e)?e:e+\"\"}var T=function(){return t=function t(e,r,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.srcImage=e,this.segSetting=r,this.ort=n,this.samModel=i,this.vectorModel=o,this.task=a,this.debugDownload=!1,this.t0=null},e=[{key:\"Ampj\",value:(m=k(_().mark((function t(){var e;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this).segSetting.CSL95dh){t.next=6;break}return t.next=4,a.a.ycma(e.srcImage,e.segSetting.CSL95dh);case 4:e.srcImage=t.sent,e.debugDownload&&a.a.vh3fx(e.srcImage,e.task.CSLc9jd+\"_deNoised.png\",e.task.CSLc9g0).then();case 6:case\"end\":return t.stop()}}),t,this)}))),function(){return m.apply(this,arguments)})},{key:\"tmoox\",value:(d=k(_().mark((function t(){var e,r,n,i,s,u,c;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(e=this).segSetting.CSL93n9,i=n.CSL94pa,e.srcImage.resize(i,i,o.a.RESIZE_BILINEAR),(s={})[e.samModel.inputNames[0]]=a.a.Df72H(e.ort,e.srcImage,[1,3,i,i],!1),t.next=10,e.samModel.run(s);case 10:return u=t.sent,c=u[e.samModel.outputNames[0]],r=a.a.Cd86(c,[37,n.CSL94lq]),r=g.c(r),t.abrupt(\"return\",r);case 17:case\"end\":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:\"Cnad\",value:(p=k(_().mark((function t(e){var r,n;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this,e[0]=Math.max(e[0],2),e[1]=Math.max(e[1],2),e[2]=Math.max(e[2],2),e[3]=Math.max(e[3],2),n=r.segSetting.CSL93n9.CSL94pa,!r.segSetting.CSL93gc){t.next=9;break}if(!(e[0]<r.segSetting.CSL93gc||e[1]<r.segSetting.CSL93gc||n-e[2]<r.segSetting.CSL93gc||n-e[3]<r.segSetting.CSL93gc)){t.next=9;break}return t.abrupt(\"return\",!0);case 9:return t.abrupt(\"return\",!1);case 10:case\"end\":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:\"Unim\",value:(h=k(_().mark((function t(e){var r,n,i,o,a,s,u,c,l;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this,n=e[2],i=e[3],o=e[0]-n/2,a=e[1]-i/2,s=e[0]+n/2,u=e[1]+i/2,!r.segSetting.CSL91mk||!r.segSetting.CSL91j7){t.next=17;break}if(!r.segSetting.CSL91fn){t.next=13;break}if(!(r.segSetting.CSL91mk<r.segSetting.CSL91j7&&(n/i<r.segSetting.CSL91mk||n/i>r.segSetting.CSL91j7)||r.segSetting.CSL91mk>r.segSetting.CSL91j7&&n/i<r.segSetting.CSL91mk&&n/i>r.segSetting.CSL91j7)){t.next=11;break}return t.abrupt(\"return\",!1);case 11:t.next=17;break;case 13:if(c=n<i?n/i:i/n,l=n<i?i/n:n/i,!(r.segSetting.CSL91mk<r.segSetting.CSL91j7&&(c<r.segSetting.CSL91mk||l>r.segSetting.CSL91j7)||r.segSetting.CSL91mk>r.segSetting.CSL91j7&&l<r.segSetting.CSL91mk&&c>r.segSetting.CSL91j7)){t.next=17;break}return t.abrupt(\"return\",!1);case 17:if(r.segSetting.CSL920h&&!(n>r.segSetting.CSL920h)||r.segSetting.CSL91ca&&!(n<r.segSetting.CSL91ca)||r.segSetting.CSL920h&&!(i>r.segSetting.CSL920h)||r.segSetting.CSL91ca&&!(i<r.segSetting.CSL91ca)){t.next=23;break}return e[0]=o,e[1]=a,e[2]=s,e[3]=u,t.abrupt(\"return\",!0);case 23:return t.abrupt(\"return\",!1);case 24:case\"end\":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:\"XndjZ\",value:(f=k(_().mark((function t(e){var r,n,i;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=[],!(r=this).segSetting.CSL9241){t.next=11;break}e.sort((function(t,e){return e[4]-t[4]})),i=_().mark((function t(){var i;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=e.shift(),n.push(i),e=e.filter((function(t){return a.a.tel7v(t,i)<r.segSetting.CSL9241}));case 3:case\"end\":return t.stop()}}),t)}));case 5:if(!(e.length>0)){t.next=9;break}return t.delegateYield(i(),\"t0\",7);case 7:t.next=5;break;case 9:t.next=12;break;case 11:n=v(e);case 12:return t.abrupt(\"return\",n);case 13:case\"end\":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:\"snnl\",value:(l=k(_().mark((function t(e){var r;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new Array(10))[0]=(e[2]-e[0])*(e[3]-e[1]),t.abrupt(\"return\",[e[0],e[1],e[2],e[3]].concat(r,v(e.slice(4))));case 3:case\"end\":return t.stop()}}),t)}))),function(t){return l.apply(this,arguments)})},{key:\"rn1jt\",value:(c=k(_().mark((function t(e){var r,n;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,n=v(e),r.segSetting.CSL92s5&&(n=a.a.rdfov(n)),t.abrupt(\"return\",n);case 4:case\"end\":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:\"rnfjt\",value:(u=k(_().mark((function t(e){var r,n,i,a,s,u,c,l,f,h,p,d,m,y,g,b,v,w,x,k,E,S,T;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=new Array(256).fill(0),n=e.bitmap.width,i=e.bitmap.height,a=n*i,s=0;s<i;s++)for(u=0;u<n;u++)c=o.a.intToRGBA(e.getPixelColor(u,s)),l=c.r,f=c.g,h=c.b,p=Math.floor(.299*l+.587*f+.114*h),r[p]++;for(d=r.map((function(t){return t/a})),m=d.reduce((function(t,e,r){return t+e*r}),0)/256,y=0,g=0;g<256;g++)y+=Math.pow(d[g]-m,2);for(y/=256,b=0,v=1;v<i-1;v++)for(w=1;w<n-1;w++)x=function(t,r){var n=o.a.intToRGBA(e.getPixelColor(t,r));return.299*n.r+.587*n.g+.114*n.b},k=-1*x(w-1,v-1)+1*x(w+1,v-1)+-2*x(w-1,v)+2*x(w+1,v)+-1*x(w-1,v+1)+1*x(w+1,v+1),E=-1*x(w-1,v-1)+1*x(w-1,v+1)+-2*x(w,v-1)+2*x(w,v+1)+-1*x(w+1,v-1)+1*x(w+1,v+1),Math.sqrt(k*k+E*E)>50&&b++;return T=(1-y)*(S=b/a)*S,t.abrupt(\"return\",{variance:y,edgeDensity:S,score:T});case 15:case\"end\":return t.stop()}}),t)}))),function(t){return u.apply(this,arguments)})},{key:\"Bn9gF\",value:(s=k(_().mark((function t(e){var r,n,i,o,s;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(3!==(null===(r=(i=this).segSetting.CSL92l8)||void 0===r?void 0:r.length)){t.next=7;break}if(o=a.a.PblhR(e,i.segSetting.CSL92l8,30),!(i.segSetting.CSL92eb&&o<i.segSetting.CSL92eb)){t.next=5;break}return t.abrupt(\"return\",!1);case 5:if(!(i.segSetting.CSL92ho&&o>i.segSetting.CSL92ho)){t.next=7;break}return t.abrupt(\"return\",!1);case 7:if(!((null===(n=i.segSetting.CSL92qd)||void 0===n?void 0:n.length)>0)){t.next=12;break}if(s=a.a.Hf84H(e),i.segSetting.CSL92qd.includes(s)){t.next=12;break}return t.abrupt(\"return\",!1);case 12:return t.abrupt(\"return\",!0);case 13:case\"end\":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:\"Pnk6P\",value:(i=k(_().mark((function t(e){var r,n,i,o;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,n=e,i=e.bitmap.width,o=e.bitmap.height,!0===r.segSetting.CSL918q&&(n=n.clone().crop(Math.round(i/2),Math.round(3*o/10),i,Math.round(3*o/5))),!0===r.segSetting.CSL92ar&&(n=n.clone().crop(Math.round(3*i/10),Math.round(o/2),Math.round(3*i/5),o)),t.abrupt(\"return\",n);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:\"Cn5i\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,r=t.map((function(t){return t[9].score})).sort((function(t,e){return t-e})),n=a.a.Xe5nX(r,e);return t.filter((function(t){return t[9].score>=n}))}},{key:\"Inoo\",value:(n=k(_().mark((function t(){var e,r,n,i,o,s,u,c,l,f,h,p,d,m,y,b;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=4,this.Ampj();case 4:return t.next=7,this.tmoox();case 7:r=t.sent,n=[],i=e.segSetting.CSL93n9,o=0;case 12:if(!(o<i.CSL94lq)){t.next=27;break}if(!((s=g.b(r,o)._data[0])[4]<e.segSetting.CSL927e)){t.next=16;break}return t.abrupt(\"continue\",24);case 16:return t.next=18,e.Cnad(s);case 18:if(!t.sent){t.next=20;break}return t.abrupt(\"continue\",24);case 20:return t.next=22,e.Unim(s);case 22:if(!t.sent){t.next=24;break}n.push(s);case 24:o++,t.next=12;break;case 27:return t.next=30,e.XndjZ(n);case 30:u=t.sent,c=[],l=0;case 35:if(!(l<u.length)){t.next=45;break}return f=u[l],t.next=39,e.snnl(f);case 39:(h=t.sent)[4],c.push(h);case 42:l++,t.next=35;break;case 45:return t.next=47,e.rn1jt(c);case 47:if(p=t.sent,d=v(p),m=v(d),!e.segSetting.CSL9362){t.next=59;break}return y=m.map(function(){var t=k(_().mark((function t(r,n){var i,o,s;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.srcImage.clone().crop(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.next=3,e.Pnk6P(i);case 3:return i=t.sent,t.next=6,e.rnfjt(i);case 6:if(o=t.sent,!(m.length>12&&o.score<.001||o.score<1e-5)){t.next=12;break}return m[n]=null,t.abrupt(\"return\");case 12:if(r[5]=i,r[9]=o,!e.segSetting.CSL932i){t.next=22;break}if(!(s=e.segSetting.CSL90h6).CSL95dh){t.next=19;break}return t.next=19,a.a.ycma(i,s.CSL95dh);case 19:return t.next=21,a.a.qcbg(e,e.ort,i,e.vectorModel,s.CSL94pa,null);case 21:r[6]=t.sent;case 22:m[n]=r;case 23:case\"end\":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),t.next=55,Promise.all(y);case 55:m=m.filter((function(t){return null!==t})),m=this.Cn5i(m);case 59:for(b=0;b<m.length;b++);return t.abrupt(\"return\",m);case 62:case\"end\":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}],e&&E(t.prototype,e),r&&E(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,i,s,u,c,l,f,h,p,d,m}();function A(t){return A=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},A(t)}function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||P(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function O(t){return function(t){if(Array.isArray(t))return C(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||P(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function I(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=P(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function P(t,e){if(t){if(\"string\"==typeof t)return C(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(t,e):void 0}}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function L(){L=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new P(n||[]);return i(a,\"_invoke\",{value:T(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function g(){}function b(){}function v(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=v.prototype=g.prototype=Object.create(w);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==A(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function T(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=D(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=f(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function D(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,D(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=f(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(O,this),this.reset(!0)}function C(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(A(e)+\" is not iterable\")}return b.prototype=v,i(k,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:b,configurable:!0}),b.displayName=c(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===b||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},E(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(k),c(k,u,\"Generator\"),c(k,a,(function(){return this})),c(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;I(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function M(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function F(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){M(o,n,i,a,s,\"next\",t)}function s(t){M(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function B(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,j(n.key),n)}}function j(t){var e=function(t,e){if(\"object\"!=A(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=A(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==A(e)?e:e+\"\"}function N(t,e,r){return e=z(e),function(t,e){if(e&&(\"object\"===A(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,R()?Reflect.construct(e,r||[],z(t).constructor):e.apply(t,r))}function R(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(R=function(){return!!t})()}function z(t){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},z(t)}function U(t,e){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},U(t,e)}r(316);var G=2592e6,H=1.6,q=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e);var n=r=N(this,e,[t]);return n.V13mnV=!1,n.A13l7=null,n.A13io=!1,n.q13gf=!1,n._13g4={},r}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&U(t,e)}(e,t),r=e,n=[{key:\"Op5f\",value:function(){var t;return\"block\"===(null===(t=document.querySelector(\"div.check\"))||void 0===t?void 0:t.style.display)}},{key:\"yp46\",value:function(){var t,e,r=0!==(null===(t=document.body.getBoundingClientRect())||void 0===t?void 0:t.width),n=0!==(null===(e=document.body.getBoundingClientRect())||void 0===e?void 0:e.height);return!(!r||!n)&&a.a.BgncB(\"div.check\")}},{key:\"_oior\",value:(st=F(L().mark((function t(){var e,r,n,i,o,s;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,t.next=3,a.a.Dfj0D({key:\"Alic\"});case 3:if(t.t1=e=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===e;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=e.value;case 12:return i=t.t2,t.next=15,a.a.Dfj0D({key:\"Ulk1\"});case 15:if(t.t4=r=t.sent,t.t3=null===t.t4,t.t3){t.next=19;break}t.t3=void 0===r;case 19:if(!t.t3){t.next=23;break}t.t5=void 0,t.next=24;break;case 23:t.t5=r.value;case 24:if(o=t.t5,!0===i&&!0!==o){t.next=27;break}return t.abrupt(\"return\");case 27:if(!0!==i||!n.Op5f()){t.next=30;break}return t.abrupt(\"return\");case 30:return t.next=32,a.a.Mc76({key:\"K17cl\",value:\"E17mh\"});case 32:return t.next=34,a.a._g06(3323);case 34:return s=t.sent,t.next=37,a.a.Bi9dF(555,55,s,88);case 37:return t.next=39,n.s10b9();case 39:case\"end\":return t.stop()}}),t,this)}))),function(){return st.apply(this,arguments)})},{key:\"s10b9\",value:(at=F(L().mark((function t(){var e;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._13g4={},t.next=4,a.a._g06(3323);case 4:return e=t.sent,t.next=7,a.a.Bc2bD(document.querySelector(\"#anchor\"),!1,null,null,e);case 7:case\"end\":return t.stop()}}),t,this)}))),function(){return at.apply(this,arguments)})},{key:\"rp93v\",value:function(){return a.a.BgncB(\"h2.prompt-text\")}},{key:\"J13e7N\",value:(ot=F(L().mark((function t(){var e;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=document.querySelector(\".display-language .text, #display-language .text\")){t.next=5;break}return t.next=4,a.a.Bi9dF(1401,11);case 4:e=document.querySelector(\".display-language .text, #display-language .text\");case 5:if(!e||\"EN\"===e.textContent){t.next=13;break}return t.next=9,a.a.Bi9dF(200,15);case 9:return t.next=11,a.a.Bc2bD(document.querySelector(\".language-selector .option:nth-child(23), #language-list .option:nth-child(23)\"));case 11:return t.next=13,a.a.Bi9dF(1011,15);case 13:case\"end\":return t.stop()}}),t)}))),function(){return ot.apply(this,arguments)})},{key:\"Nok6N\",value:(it=F(L().mark((function t(){var e,r,n,i,o,s=arguments;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:400,r=this,n=0,i=5,t.next=6,a.a._g06(3323);case 6:return o=t.sent,t.abrupt(\"return\",new Promise((function(t){var a=!1,s=setInterval(F(L().mark((function u(){var c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,T,A,D,O,I,P,C,M,F,B,j,N;return L().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(!a){u.next=2;break}return u.abrupt(\"return\");case 2:if(a=!0,n+=1,!(Math.max(3404/o,1288)/e>n&&r.V13mnV)){u.next=7;break}return a=!1,u.abrupt(\"return\");case 7:if(f={CSLc993:\"CSLc8kp\",CSLc9g0:\"\",CSLc9cg:[],CSLc9mq:null},h=null===(c=document.querySelector(\"h2.prompt-text\"))||void 0===c?void 0:c.innerText,h=null===(l=h)||void 0===l?void 0:l.replace(/\\s+/g,\" \").trim().toLowerCase()){u.next=13;break}return a=!1,u.abrupt(\"return\");case 13:if(f.CSLc9g0=h,p=null,d=null,m=null,y=!0,!document.querySelector(\".challenge-view > .task-grid\")){u.next=42;break}return f.CSLc993=\"CSLc926\",u.next=22,r.zp0nB(i,r.A13l7);case 22:if(g=u.sent,b=g.taskReady,v=g.remainCheckTimes,w=g.sampleImageURL,_=g.cellElements,x=g.cellImageURLs,k=g.toProcessImageURLsHash,b){u.next=35;break}return(v||0===v)&&(i=v),a=!1,u.abrupt(\"return\");case 35:w&&(f.CSLc9cg[0]=w),p=_,d=x,r.A13l7=k,y=!1;case 40:u.next=92;break;case 42:if(!document.querySelector(\".challenge-view > .task-wrapper\")){u.next=66;break}return f.CSLc993=\"CSLc8o9\",u.next=46,r.Mon1(r.A13l7);case 46:if(E=u.sent,S=E.taskReady,T=E.sampleImageURL,A=E.cellElements,D=E.cellImageURLs,O=E.cellImageTexts,I=E.toProcessImageURLsHash,S){u.next=58;break}return a=!1,u.abrupt(\"return\");case 58:f.CSLc9cg[0]=T,p=A,d=D,m=O,r.A13l7=I,y=!1;case 64:u.next=92;break;case 66:if(!document.querySelector(\".challenge-view > .bounding-box-example\")){u.next=91;break}return f.CSLc993=\"CSLc95j\",u.next=70,r.Kp22(r.A13l7);case 70:if(P=u.sent,C=P.taskReady,M=P.sampleImageURLs,F=P.sampleImageColor,B=P.cellElements,j=P.cellImageURLs,N=P.toProcessImageURLsHash,C){u.next=83;break}return a=!1,u.abrupt(\"return\");case 83:f.CSLc9cg=M,f.CSLc9mq=F,p=B,d=j,r.A13l7=N,y=!1;case 89:u.next=92;break;case 91:document.querySelector(\".challenge-view > .challenge-prompt\")&&h.indexOf(\"drag\")>=0&&(y=!0);case 92:return clearInterval(s),a=!1,r.V13mnV=!1,u.abrupt(\"return\",t({notSupportedTask:y,H13pdJ:f,w146d:p,Q142c:d,_1448_:m}));case 97:case\"end\":return u.stop()}}),u)}))),e)})));case 8:case\"end\":return t.stop()}}),t,this)}))),function(){return it.apply(this,arguments)})},{key:\"zp0nB\",value:(nt=F(L().mark((function t(e,r){var n,i,o,s,u,c,l,f,h,p,d,m,y;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=null,i=null,o=[],s=[],u=e,c=null,0!==(null==(l=document.querySelectorAll(\".task-image\"))?void 0:l.length)){t.next=10;break}return t.abrupt(\"return\",{taskReady:!1});case 10:f=I(l),t.prev=11,f.s();case 13:if((h=f.n()).done){t.next=24;break}if(p=h.value,d=p.querySelector(\"div.image\"),(m=a.a.Jfi2J(d))&&\"\"!==m.trim()){t.next=20;break}return t.abrupt(\"return\",{taskReady:!1});case 20:o.push(p),s.push(m);case 22:t.next=13;break;case 24:t.next=29;break;case 26:t.prev=26,t.t0=t.catch(11),f.e(t.t0);case 29:return t.prev=29,f.f(),t.finish(29);case 32:if(c=JSON.stringify(s),r!==c){t.next=35;break}return t.abrupt(\"return\",{taskReady:!1});case 35:if(y=document.querySelector(\"div.examples > .example-wrapper > .challenge-example\"),n=document.querySelector(\"div.challenge-example > div.image > div.image\"),i=a.a.Jfi2J(n),!y||i&&\"\"!==i){t.next=47;break}if(!(--u>=0)){t.next=44;break}return t.abrupt(\"return\",{taskReady:!1,remainCheckTimes:u});case 44:case 45:t.next=48;break;case 47:case 48:return t.abrupt(\"return\",{taskReady:!0,remainCheckTimes:u,sampleElement:n,sampleImageURL:i,cellElements:o,cellImageURLs:s,toProcessImageURLsHash:c});case 49:case\"end\":return t.stop()}}),t,null,[[11,26,29,32]])}))),function(t,e){return nt.apply(this,arguments)})},{key:\"Mon1\",value:(rt=F(L().mark((function t(e){var r,n,i,o,s,u,c,l,f,h,p,d,m;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=[],o=[],s=[],u=null,r=document.querySelector(\"div.task-image > div.image-wrapper > div.image\"),(n=a.a.Jfi2J(r))&&\"\"!==n.trim()){t.next=9;break}return t.abrupt(\"return\",{taskReady:!1});case 9:if((c=document.querySelectorAll(\"div.task-answers > div.challenge-answer\"))&&0!==c.length){t.next=12;break}return t.abrupt(\"return\",{taskReady:!1});case 12:l=I(c),t.prev=13,l.s();case 15:if((f=l.n()).done){t.next=27;break}if(h=f.value,p=h.querySelector(\"div.image\"),(d=a.a.Jfi2J(p))&&\"\"!==d.trim()){t.next=21;break}return t.abrupt(\"return\",{taskReady:!1});case 21:i.push(h),o.push(d),(m=h.querySelector(\"div.text-content\"))&&(s[i.length-1]=m.innerText);case 25:t.next=15;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t.catch(13),l.e(t.t0);case 32:return t.prev=32,l.f(),t.finish(32);case 35:if(u=JSON.stringify(n),e!==u){t.next=38;break}return t.abrupt(\"return\",{taskReady:!1});case 38:return t.abrupt(\"return\",{taskReady:!0,sampleElement:r,sampleImageURL:n,cellElements:i,cellImageURLs:o,cellImageTexts:s,toProcessImageURLsHash:u});case 39:case\"end\":return t.stop()}}),t,null,[[13,29,32,35]])}))),function(t){return rt.apply(this,arguments)})},{key:\"Kp22\",value:(et=F(L().mark((function t(e){var r,n,i,s,u,c,l,f,h,p,d,m,y,g;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=[],s=null,u=[],c=[],l=null,f=!1,!((n=document.querySelectorAll(\"div.bounding-box-example > div.example-wrapper > div.example-image > div.image\"))&&n.length>0)){t.next=21;break}h=0;case 10:if(!(h<n.length)){t.next=21;break}if(!(p=a.a.Jfi2J(n[h]))){t.next=18;break}return t.next=15,o.a.read(p);case 15:d=t.sent,(m=a.a.Hf84H(d))>0&&(i.push(p),s=s||m,f=!0);case 18:h++,t.next=10;break;case 21:if(!((null===(r=n)||void 0===r?void 0:r.length)>0)||f){t.next=24;break}return t.abrupt(\"return\",{taskReady:!1});case 24:if(y=document.querySelector(\".challenge-view > canvas\")){t.next=28;break}return t.abrupt(\"return\",{taskReady:!1});case 28:if(!((g=y.toDataURL(\"image/jpeg\")).length<15360)){t.next=31;break}return t.abrupt(\"return\",{taskReady:!1});case 31:if(u.push(y),c.push(g),l=JSON.stringify(c),e!==l){t.next=37;break}return t.abrupt(\"return\",{taskReady:!1});case 37:return t.abrupt(\"return\",{taskReady:!0,sampleElements:n,sampleImageURLs:i,sampleImageColor:s,cellElements:u,cellImageURLs:c,toProcessImageURLsHash:l});case 39:case\"end\":return t.stop()}}),t)}))),function(t){return et.apply(this,arguments)})},{key:\"X10amZ\",value:(tt=F(L().mark((function t(e,r){var n,i,o,a,s;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=this,!(null!==(n=e.CSL985q)&&void 0!==n&&n.startsWith(\"001\")||null!==(i=e.CSL985q)&&void 0!==i&&i.startsWith(\"011\"))){t.next=4;break}t.next=14;break;case 4:if(null===(o=e.CSL985q)||void 0===o||!o.startsWith(\"002\")){t.next=9;break}return t.next=7,s.O13a1(e,null,null,e.CSLc9cg[0]);case 7:case 12:t.next=14;break;case 9:if(null===(a=e.CSL985q)||void 0===a||!a.startsWith(\"003\")){t.next=14;break}return t.next=12,s.O13a1(e,e.CSLc9cg,null,r[0]);case 14:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return tt.apply(this,arguments)})},{key:\"O13a1\",value:(Q=F(L().mark((function t(e){var r,n,a,s,u,c,l,f=arguments;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=f.length>1&&void 0!==f[1]?f[1]:null,n=f.length>2&&void 0!==f[2]?f[2]:null,a=f.length>3&&void 0!==f[3]?f[3]:null,(s=this).q13gf&&e){t.next=7;break}return t.abrupt(\"return\");case 7:if(t.prev=7,!((null==r?void 0:r.length)>0)){t.next=20;break}u=0;case 10:if(!(u<r.length)){t.next=20;break}if(r[u]&&r[u].startsWith(\"http\")){t.next=13;break}return t.abrupt(\"continue\",17);case 13:return t.next=15,o.a.read(r[u]);case 15:t.sent;case 17:u++,t.next=10;break;case 20:if(!((null==n?void 0:n.length)>0)){t.next=33;break}c=0;case 22:if(!(c<n.length)){t.next=33;break}if(n[c]){t.next=25;break}return t.abrupt(\"continue\",30);case 25:return t.next=28,o.a.read(n[c]);case 28:t.sent;case 30:c++,t.next=22;break;case 33:if(!a){t.next=45;break}if(!a.startsWith(\"data:image/\")){t.next=40;break}return t.next=37,o.a.read(i.Buffer.from(a.split(\",\")[1],\"base64\"));case 37:l=t.sent,t.next=43;break;case 40:return t.next=42,o.a.read(a);case 42:l=t.sent;case 43:s.x12mkB(l);case 45:t.next=50;break;case 47:t.prev=47,t.t0=t.catch(7);case 50:case\"end\":return t.stop()}}),t,this,[[7,47]])}))),function(t){return Q.apply(this,arguments)})},{key:\"R10e9T\",value:($=F(L().mark((function t(e,r,n,i){var o,s,u,c,l,f,h;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=this,e.CSLcab4=\"hc\",e.CSLca0n=i,\"CSLc926\"!==e.CSLc993){t.next=31;break}return t.next=6,o.Ko0n(\"eJzLzU_KzEnNSy0pM44vM9DLLyoBAEPaBvE=\");case 6:if(s=t.sent,!((u=e.CSLc9cg).length>0)){t.next=19;break}e.CSLcai0=[],c=0;case 11:if(!(c<u.length)){t.next=19;break}return t.next=14,a.a.Khl9(o.ort,s,u[c]);case 14:l=t.sent,e.CSLcai0.push(a.a.Gg95(l));case 16:c++,t.next=11;break;case 19:if(!((null==n?void 0:n.length)>0)){t.next=31;break}e.CSLcaop=n,e.CSLcajm=[],f=0;case 23:if(!(f<n.length)){t.next=31;break}return t.next=26,a.a.Khl9(o.ort,s,n[f]);case 26:h=t.sent,e.CSLcajm.push(a.a.Gg95(h));case 28:f++,t.next=23;break;case 31:return t.next=33,a.a.Ri54T(e);case 33:return t.abrupt(\"return\",t.sent.value);case 34:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r,n){return $.apply(this,arguments)})},{key:\"ToofT\",value:(J=F(L().mark((function t(){var e,r,n,i,o,s,u,c,l,f,h,p,d,m,y,g,b;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.next=3,a.a.Mc76({key:\"K17cl\",value:\"E17mh\"});case 3:return t.next=5,r.J13e7N();case 5:return t.next=7,r.Nok6N();case 7:if(n=t.sent,i=n.notSupportedTask,o=n.H13pdJ,s=n.w146d,u=n.Q142c,c=n._1448_,!i){t.next=24;break}return t.next=18,a.a.Bi9dF(1111*H,44);case 18:return H=H<100?Math.pow(H,1.4):100,t.next=21,r.wofe();case 21:return t.abrupt(\"return\",t.sent);case 24:H=1.6;case 25:return t.next=27,r.R10e9T(o,s,u,c);case 27:if(l=t.sent,Object.assign(o,l),o&&o.CSL985q&&(null===(e=o.CSL985q)||void 0===e||!e.startsWith(\"999\"))){t.next=40;break}return t.next=34,a.a.Bi9dF(1111*H,44);case 34:return H=H<100?Math.pow(H,1.4):100,t.next=37,r.wofe();case 37:return t.abrupt(\"return\",t.sent);case 40:H=1.6;case 41:return t.next=43,this.s10ko(o);case 43:if(!t.sent){t.next=50;break}return G=0,t.next=49,r.wofe();case 49:return t.abrupt(\"return\",t.sent);case 50:if(t.prev=51,!((null!==(f=o.CSL985q)&&void 0!==f&&f.startsWith(\"011.0000\")||null!==(h=o.CSL985q)&&void 0!==h&&h.startsWith(\"011.0001\")||null!==(p=o.CSL985q)&&void 0!==p&&p.startsWith(\"011.0002\"))&&(null===(d=o.CSL9912)||void 0===d?void 0:d.length)>1)){t.next=57;break}return t.next=56,r.tpglx(s,u,o.CSL9912);case 56:return t.abrupt(\"return\",t.sent);case 57:if(!(null!==(m=o.CSL985q)&&void 0!==m&&m.startsWith(\"001\")||null!==(y=o.CSL985q)&&void 0!==y&&y.startsWith(\"011\"))){t.next=63;break}return t.next=60,r._pk6(o,s,u);case 60:return t.abrupt(\"return\",t.sent);case 63:if(null===(g=o.CSL985q)||void 0===g||!g.startsWith(\"002\")){t.next=69;break}return t.next=66,r.Gpd5(o,s,u,c);case 66:return t.abrupt(\"return\",t.sent);case 69:if(null===(b=o.CSL985q)||void 0===b||!b.startsWith(\"003\")){t.next=73;break}return t.next=72,r.zpo2D(o,s,u);case 72:return t.abrupt(\"return\",t.sent);case 73:t.next=81;break;case 75:return t.prev=75,t.t0=t.catch(51),t.next=80,r.wofe();case 80:return t.abrupt(\"return\",t.sent);case 81:case\"end\":return t.stop()}}),t,this,[[51,75]])}))),function(){return J.apply(this,arguments)})},{key:\"Spag\",value:function(t){return\"true\"===t.getAttribute(\"aria-pressed\")}},{key:\"roblv\",value:(K=F(L().mark((function t(){var e,r,n,i;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.prev=2,r=document.querySelector(\".button-submit\"),\"verify\"===(null==(n=null==r?void 0:r.innerText)?void 0:n.toLowerCase())&&(e._13g4={}),t.next=9,a.a._g06(3323);case 9:return i=t.sent,t.next=12,a.a.Bc2bD(r,!1,null,null,i);case 12:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(2);case 18:return t.prev=18,t.finish(18);case 21:case\"end\":return t.stop()}}),t,this,[[2,15,18,21]])}))),function(){return K.apply(this,arguments)})},{key:\"s10ko\",value:(X=F(L().mark((function t(e){var r,n;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.a.Cc9h(3323,e.CSLc9g0);case 2:return r=t.sent,t.next=5,a.a._g06(3323);case 5:return n=t.sent,t.abrupt(\"return\",r>12*n);case 8:case\"end\":return t.stop()}}),t)}))),function(t){return X.apply(this,arguments)})},{key:\"wofe\",value:(Y=F(L().mark((function t(){var e,r,n,i=arguments;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=!(i.length>0&&void 0!==i[0])||i[0],r=this,t.next=4,a.a._g06(3323);case 4:return n=t.sent,t.prev=6,r.V13mnV=!0,r._13g4={},t.next=11,a.a.Mc76({key:\"rl94t\",value:\"\"});case 11:if(!e){t.next=14;break}return t.next=14,a.a.Bi9dF(1111,101,n,222);case 14:return t.next=16,a.a.Bc2bD(document.querySelector(\".refresh.button\"),!1,null,null,n);case 16:t.next=23;break;case 18:return t.prev=18,t.t0=t.catch(6),t.next=23,a.a.Bc2bD(document.querySelector(\".refresh.button\"));case 23:case\"end\":return t.stop()}}),t,this,[[6,18]])}))),function(){return Y.apply(this,arguments)})},{key:\"_pk6\",value:(Z=F(L().mark((function t(e,r,n){var i,o,a,s,u,c,l,f,h;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((a=this).t0=null,s=e.CSL9912||[],!e.CSL985q.startsWith(\"001.99\")){t.next=9;break}return t.next=8,a.wofe(!0);case 8:return t.abrupt(\"return\",t.sent);case 9:if(!(e.CSL985q.startsWith(\"001.0101\")||e.CSL985q.startsWith(\"001.0102\")||e.CSL985q.startsWith(\"001.1001\")||e.CSL985q.startsWith(\"001.2001\"))){t.next=15;break}return t.next=13,a._11cit(e,r,n);case 13:(s=t.sent).length>4&&(s=[]);case 15:if(0!==(null===(i=s)||void 0===i?void 0:i.length)||!e.CSL985q.startsWith(\"001.8902\")&&0!==e.CSLc9cg.length){t.next=20;break}return t.next=19,a.q11eh(e,r,n);case 19:s=t.sent;case 20:if(!e.CSL985q.startsWith(\"001.8901\")&&1!==(null===(o=s)||void 0===o?void 0:o.length)){t.next=25;break}return t.next=24,a.z1196D(e,r,n,s);case 24:s=t.sent;case 25:if(1!==s.length){t.next=49;break}return t.prev=27,u=e.CSL982d,t.next=31,a.H138iJ(u.CSL90h6,[n[s[0]]]);case 31:return c=t.sent[0],t.next=35,a.H138iJ(u.CSL90h6,[n]);case 35:l=t.sent,f=a._132kt(c,l),p=f,h=Object.entries(p).sort((function(t,e){return e[1]-t[1]})).map((function(t){return t[0]})),s=Array.from(new Set([].concat(O(s),O(h)))),t.next=46;break;case 44:t.prev=44,t.t0=t.catch(27);case 46:return t.prev=46,t.finish(46);case 49:return t.next=51,a.tpglx(r,n,s);case 51:return t.abrupt(\"return\",t.sent);case 52:case\"end\":return t.stop()}var p}),t,this,[[27,44,46,49]])}))),function(t,e,r){return Z.apply(this,arguments)})},{key:\"_11cit\",value:(W=F(L().mark((function t(e,r,n){var i,o,a,s,u,c,l;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,(o=null==e?void 0:e.CSL982d)&&0!==Object.keys(o).length&&!1!==e.CSLcaad){t.next=5;break}return t.abrupt(\"return\",[]);case 5:a=o.CSL97e6,s=e.CSLc9cg[0],u=[],c=0;case 10:if(!(c<n.length)){t.next=17;break}if(r[c].isConnected){t.next=13;break}return t.abrupt(\"return\",[]);case 13:u.push(n[c]);case 14:c++,t.next=10;break;case 17:return t.next=19,i.Do87F(a,s,u);case 19:return l=t.sent,t.abrupt(\"return\",l);case 22:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return W.apply(this,arguments)})},{key:\"q11eh\",value:(V=F(L().mark((function t(e,r,n){var i,o,a,s,u,c,l,f,h;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this,o=[],t.prev=2,t.next=5,i.Z1362_(e,r,n);case 5:if(a=t.sent,s=0,\"3321\"!==(u=a.map((function(t){return t.ids.length})).join(\"\"))){t.next=13;break}s=a[0].ls<.88||a[1].ls>a[0].ls?0:1,t.next=56;break;case 13:if(\"3222\"!==u){t.next=18;break}(c=(a[0].hs-a[1].hs)/(a[1].hs-a[2].hs))>15?s=2:c>.5&&c<15?s=0:c<.5&&(s=1),t.next=56;break;case 18:if(\"22221\"!==u){t.next=22;break}s=a[0].hs>.8||a[1].hs<.7?2:1,t.next=56;break;case 22:if(\"2232\"!==u){t.next=27;break}l=(a[1].hs-a[2].hs)/(a[0].hs-a[1].hs),s=l>=1.2?2:1,t.next=56;break;case 27:if(\"2421\"!==u){t.next=31;break}s=0,t.next=56;break;case 31:if(\"2322\"!==u){t.next=36;break}f=(a[1].hs-a[2].hs)/(a[0].hs-a[1].hs),s=f>=15?2:f>=1&&f<15&&a[0].hs<.72?0:1,t.next=56;break;case 36:if(\"441\"!==u){t.next=40;break}s=0,t.next=56;break;case 40:if(!u.startsWith(\"3\")){t.next=44;break}s=0,t.next=56;break;case 44:if(!u.startsWith(\"2\")){t.next=55;break}h=1;case 46:if(!(h<a.length)){t.next=53;break}if(!(a[h].ids.length<=3)){t.next=50;break}return s=h,t.abrupt(\"break\",53);case 50:h++,t.next=46;break;case 53:t.next=56;break;case 55:(u.startsWith(\"4\")||u.startsWith(\"5\"))&&(s=1);case 56:o=a[s].ids,t.next=62;break;case 60:t.prev=60,t.t0=t.catch(2);case 62:return t.prev=62,t.finish(62);case 65:return t.abrupt(\"return\",o);case 66:case\"end\":return t.stop()}}),t,this,[[2,60,62,65]])}))),function(t,e,r){return V.apply(this,arguments)})},{key:\"z1196D\",value:(q=F(L().mark((function t(e,r,n,i){var o,a,s,u,c,l;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=this,a=e.CSL982d,t.prev=2,t.next=5,o.H138iJ(a.CSL90h6,n);case 5:if(u=t.sent,!((null===(s=i)||void 0===s?void 0:s.length)>0)){t.next=11;break}c=u[i[0]],t.next=14;break;case 11:return t.next=13,o.H138iJ(a.CSL90h6,[e.CSLc9cg[0]]);case 13:c=t.sent[0];case 14:l=o._132kt(c,u,null,[.65,.35],0),i=Object.keys(l),t.next=22;break;case 20:t.prev=20,t.t0=t.catch(2);case 22:return t.prev=22,t.finish(22);case 25:return t.abrupt(\"return\",i);case 26:case\"end\":return t.stop()}}),t,this,[[2,20,22,25]])}))),function(t,e,r,n){return q.apply(this,arguments)})},{key:\"tpglx\",value:(z=F(L().mark((function t(e,r,n){var i,o,s;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this,n=(n=n.filter((function(t,e){return n.indexOf(t)===e}))).sort((function(t,e){return t-e})),t.next=5,a.a._g06(3323);case 5:o=t.sent,s=0;case 7:if(!(s<n.length)){t.next=22;break}if(e[n[s]].isConnected){t.next=13;break}return t.next=12,i.wofe();case 12:return t.abrupt(\"return\",t.sent);case 13:if(!i.Spag(e[n[s]])){t.next=15;break}return t.abrupt(\"continue\",19);case 15:return t.next=17,a.a.Bc2bD(e[n[s]],!1,null,null,o);case 17:return t.next=19,a.a.Bi9dF(77,55,o,51);case 19:s++,t.next=7;break;case 22:return t.next=24,a.a.Bi9dF(1222,101,o,121);case 24:return t.next=26,i.roblv();case 26:return t.abrupt(\"return\",t.sent);case 27:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return z.apply(this,arguments)})},{key:\"Z1362_\",value:(R=F(L().mark((function t(e,r,n){var i,o,s,u,c,l,f,h,p;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,(o=null==e?void 0:e.CSL982d)&&0!==Object.keys(o).length&&!1!==e.CSLcaad){t.next=4;break}return t.abrupt(\"return\",[]);case 4:return s=[],t.prev=6,t.next=9,i.H138iJ(o.CSL90h6,n);case 9:if((null==(u=t.sent)?void 0:u.length)===n.length){t.next=12;break}return t.abrupt(\"return\",s);case 12:c=a.a.shk4(u),l=Array(n.length).fill(0).map((function(t,e){return e})),(f=o.CSL961o).CSL98qh=f.CSL98qh||3,s=i.F12p8H(c,l,f),h=L().mark((function t(e){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s[e].vs=[],s[e].ids.forEach((function(t,r){s[e].vs[r]=u[t]}));case 2:case\"end\":return t.stop()}}),t)})),p=0;case 23:if(!(p<s.length)){t.next=28;break}return t.delegateYield(h(p),\"t0\",25);case 25:p++,t.next=23;break;case 28:t.next=33;break;case 30:t.prev=30,t.t1=t.catch(6);case 33:return t.prev=33,t.finish(33);case 36:return t.abrupt(\"return\",s);case 37:case\"end\":return t.stop()}}),t,this,[[6,30,33,36]])}))),function(t,e,r){return R.apply(this,arguments)})},{key:\"H138iJ\",value:(j=F(L().mark((function t(e,r){var n,i,o,s;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,i=[],t.prev=3,t.next=6,n.Qp3d(e.CSL94sn);case 6:if(o=t.sent){t.next=9;break}return t.abrupt(\"return\",[]);case 9:return s=function(){var t=F(L().mark((function t(r){var i;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=r.map(function(){var t=F(L().mark((function t(r){var i,s;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n._13g4[r]){t.next=10;break}return t.next=3,a.a.He09J(r);case 3:return i=t.sent,t.next=6,a.a.ycma(i,e.CSL95dh);case 6:return s=t.sent,t.next=9,n.Q10nn(o,e.CSL94pa,s);case 9:n._13g4[r]=t.sent;case 10:return t.abrupt(\"return\",n._13g4[r]);case 11:case\"end\":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t.next=4,Promise.all(i);case 4:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt(\"return\",[]);case 11:case\"end\":return t.stop()}}),t,null,[[0,7]])})));return function(e){return t.apply(this,arguments)}}(),t.next=13,s(r);case 13:i=t.sent,t.next=20;break;case 17:t.prev=17,t.t0=t.catch(3);case 20:return t.prev=20,t.finish(20);case 23:return t.abrupt(\"return\",i);case 24:case\"end\":return t.stop()}}),t,this,[[3,17,20,23]])}))),function(t,e){return j.apply(this,arguments)})},{key:\"F12p8H\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=[],i=-1;try{for(;e.length>r.CSL989a/2&&e.length>=2;){i++;var o={ids:[],hs:0,ls:0},s=[],u=D(a.a.Agh9(t),3),c=u[0],l=u[1],f=u[2];if(2===e.length){o.ids=[c,l],o.hs=f,o.ls=f,n.push(o);break}var h=D(a.a.Agh9(t,c,[l]),3)[2],p=D(a.a.Agh9(t,l,[c]),3)[2],d=l;h>p&&(d=c),s.push(l),s.push(c),o.hs=f,o.ls=f;var m=0,y=0;if(r.CSL989a>2&&e.length-2>0){var g=D(a.a.Agh9(t,d,s),3),b=g[0],v=g[2];if(m=(null==r?void 0:r.gTargetSize)>3?r.CSL98cn[0]*o.ls:.72,y=(null==r?void 0:r.gTargetSize)>3?r.CSL98g7[0]*o.ls:.6,(0===i&&v>m||i>=1&&v>y)&&(s.push(b),o.ls=v,r.CSL989a>3&&e.length-3>0)){var w=D(a.a.Agh9(t,d,s),3),_=w[0],x=w[2];if(m=r.CSL989a>3?r.CSL98cn[1]*o.ls:.7,y=r.CSL989a>3?r.CSL98g7[1]*o.ls:.6,(0===i&&x>m||i>=1&&x>y)&&(s.push(_),o.ls=x,r.CSL989a>4&&e.length-5>0)){var k=D(a.a.Agh9(t,d,s),3),E=k[0],S=k[2];m=r.CSL989a>3?r.CSL98cn[2]*o.ls:.68,y=r.CSL989a>3?r.CSL98g7[2]*o.ls:.6,(0===i&&x>m||i>=1&&x>y)&&(s.push(E),o.ls=S)}}}s.sort((function(t,e){return e-t}));for(var T=0;T<s.length;T++)o.ids.push(e[s[T]]),e.splice(s[T],1);t=a.a.Gce5(t,s,s),n.push(o)}if(e.length>1){var A=a.a.Agh9(t),I=a.a.ygd0(t);n.push({ids:O(e),hs:A[2],ls:I[2]})}else n.push({ids:O(e),hs:1,ls:0})}catch(t){}return n}},{key:\"_132kt\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[.4,.6],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.6,o={};r=r||Array(e.length).fill(0).map((function(t,e){return e}));try{var s=e.concat([t]),u=s.length-1,c=a.a.shk4(s),l=D(a.a.Agh9(c,u),3),f=l[0],h=l[2];if(h>.75){for(var p={},d=0;d<e.length;d++)p[d]=c[d][u];var m=Object.entries(p);m.sort((function(t,e){return e[1]-t[1]}));var y=r[parseInt(m[0][0])],g=r[parseInt(m[1][0])];o[y]=m[0][1],o[g]=m[1][1],m[2][1]>.75&&(o[r[parseInt(m[2][0])]]=m[2][1]),m[3][1]>.7&&(o[r[parseInt(m[3][0])]]=m[3][1]),o.length<3&&(m[2][1]-m[3][1])/(m[0][1]-m[2][1])>1&&(o[r[parseInt(m[2][0])]]=m[2][1])}else if(h>i){o[r[f]]=h;var b=D(a.a.Agh9(c,u,[f]),3),v=b[0],w=b[2];if(h-w<.01)o[r[v]]=w;else{for(var _=0,x=-1,k=0;k<e.length;k++)if(k!==f){var E=c[k][f]*n[0]+c[k][u]*n[1];E>_&&(_=E,x=k)}if(o[r[x]]=_>h?h-.001:_,_>.749){for(var S=0,T=-1,A=0;A<e.length;A++)if(A!==f&&A!==x){var O=.4*c[A][f]+.6*c[A][u];O>S&&(S=O,T=A)}S>.65&&(o[r[T]]=S>h?h-.002:S)}}}}catch(t){}return o}},{key:\"Gpd5\",value:(M=F(L().mark((function t(e,r,n,i){var o,s,u;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=this,!e.CSL985q.startsWith(\"002.99\")){t.next=7;break}return t.next=6,o.wofe();case 6:return t.abrupt(\"return\",t.sent);case 7:if(s=-1,!e.CSL985q.startsWith(\"002.0101\")){t.next=12;break}return t.next=11,o.w115a(e,r,n,i);case 11:s=t.sent;case 12:if(!e.CSL985q.startsWith(\"002.8901\")){t.next=16;break}return t.next=15,o.x111hB(e,r,n);case 15:s=t.sent;case 16:if(-1!==s){t.next=23;break}return t.next=20,o.wofe();case 20:return t.abrupt(\"return\",t.sent);case 23:return t.next=25,a.a._g06(3323);case 25:return u=t.sent,t.next=28,a.a.Bi9dF(606,55,u,50);case 28:return t.next=30,a.a.Bc2bD(r[s],!1,null,null,u);case 30:return t.next=32,a.a.Bi9dF(1101,101,u,101);case 32:return t.next=35,o.roblv();case 35:return t.abrupt(\"return\",t.sent);case 36:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r,n){return M.apply(this,arguments)})},{key:\"w115a\",value:(C=F(L().mark((function t(e,r,n,i){var s,u,c,l,f,h,p,d,m,y,g;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=this,(u=null==e?void 0:e.CSL982d)&&0!==Object.keys(u).length&&!1!==e.CSLcaad){t.next=4;break}return t.abrupt(\"return\",-1);case 4:return c=-1,t.prev=6,l=u.CSL97e6,t.next=10,s.Qp3d(l.CSL97s0.CSL94sn);case 10:if(f=t.sent){t.next=14;break}return t.abrupt(\"return\",-1);case 14:return t.next=16,s.Qp3d(l.CSL93jp.CSL94sn);case 16:if(h=t.sent){t.next=20;break}return t.abrupt(\"return\",-1);case 20:return t.next=22,o.a.read(e.CSLc9cg[0]);case 22:if(p=t.sent,!l.CSL97s0.CSL95dh){t.next=27;break}return t.next=26,a.a.ycma(p,l.CSL97s0.CSL95dh);case 26:case 27:return t.next=29,s.yo4i(f,l.CSL97s0.CSL94pa,h,p);case 29:d=t.sent,m=d.indexOf(Math.max.apply(Math,O(d))),y=u.CSL961o.CSL968l.substr(m,1),g=0;case 35:if(!(g<i.length)){t.next=42;break}if(i[g].substr(0,1).toLowerCase()!==y){t.next=39;break}return c=g,t.abrupt(\"break\",42);case 39:g++,t.next=35;break;case 42:t.next=49;break;case 45:return t.prev=45,t.t0=t.catch(6),t.abrupt(\"return\",-1);case 49:return t.abrupt(\"return\",c);case 50:case\"end\":return t.stop()}}),t,this,[[6,45]])}))),function(t,e,r,n){return C.apply(this,arguments)})},{key:\"x111hB\",value:(P=F(L().mark((function t(e,r,n){var i,s,u,c,l,f,h,p,d,m,y,g;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,(s=null==e?void 0:e.CSL982d)&&0!==Object.keys(s).length&&!1!==e.CSLcaad){t.next=4;break}return t.abrupt(\"return\",-1);case 4:return u=-1,t.prev=7,c=s.CSL90h6,t.next=11,i.Qp3d(c.CSL94sn);case 11:if(l=t.sent){t.next=15;break}return t.abrupt(\"return\",-1);case 15:return t.next=17,o.a.read(e.CSLc9cg[0]);case 17:if(f=t.sent,!c.CSL95dh){t.next=21;break}return t.next=21,a.a.ycma(f,c.CSL95dh);case 21:return t.next=24,i.Q10nn(l,c.CSL94pa,f);case 24:h=t.sent,p={},d=0;case 28:if(!(d<n.length)){t.next=42;break}return t.next=31,o.a.read(n[d]);case 31:if(m=t.sent,!c.CSL95dh){t.next=35;break}return t.next=35,a.a.ycma(m,c.CSL95dh);case 35:return t.next=37,i.Q10nn(l,c.CSL94pa,m);case 37:y=t.sent,p[d]=a.a.qhi5(h,y);case 39:d++,t.next=28;break;case 42:(g=Object.entries(p)).sort((function(t,e){return e[1]-t[1]})),u=parseInt(g[0][0]),t.next=53;break;case 49:return t.prev=49,t.t0=t.catch(7),t.abrupt(\"return\",-1);case 53:return t.abrupt(\"return\",u);case 54:case\"end\":return t.stop()}}),t,this,[[7,49]])}))),function(t,e,r){return P.apply(this,arguments)})},{key:\"zpo2D\",value:(A=F(L().mark((function t(e,r,n){var i,o,a,s;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,o=e.CSL985q,a=!1,!o.startsWith(\"003.0101\")){t.next=8;break}return t.next=7,i.X11p1Z(e,r,n);case 7:a=t.sent;case 8:if(!o.startsWith(\"003.0201\")){t.next=12;break}return t.next=11,i.H11h7J(e,r,n);case 11:a=t.sent;case 12:if(!o.startsWith(\"003.010201\")&&!o.startsWith(\"003.0103\")){t.next=16;break}return t.next=15,i.L11idL(e,r,n);case 15:a=t.sent;case 16:if(!o.startsWith(\"003.010202\")){t.next=20;break}return t.next=19,i.Z11ll_(e,r,n);case 19:a=t.sent;case 20:if(!o.startsWith(\"003.0104\")){t.next=24;break}return t.next=23,i.z1219B(e,r,n);case 23:a=t.sent;case 24:if(!o.startsWith(\"003.0105\")){t.next=29;break}return t.next=27,i.R1292R(e,r,n);case 27:s=t.sent,a=!!s;case 29:if(!o.startsWith(\"003.10\")){t.next=33;break}return t.next=32,i.P12c0R(e,r,n);case 32:a=t.sent;case 33:if(!(o.startsWith(\"003.2001\")||o.startsWith(\"003.2002\")||o.startsWith(\"003.2003\")||o.startsWith(\"003.2004\"))){t.next=37;break}return t.next=36,i.H125dL(e,r,n);case 36:a=t.sent;case 37:if(!(o.startsWith(\"003.0106\")||o.startsWith(\"003.8901\")||o.startsWith(\"003.8902\")||o.startsWith(\"003.99\"))){t.next=41;break}return t.next=40,i.u127g(e,r,n);case 40:a=t.sent;case 41:if(a){t.next=48;break}return t.next=45,i.wofe();case 45:return t.abrupt(\"return\",t.sent);case 48:case 49:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return A.apply(this,arguments)})},{key:\"X11p1Z\",value:(S=F(L().mark((function t(e,r,n){var s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,T;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=this,u=!1,(c=null==e?void 0:e.CSL982d)&&0!==Object.keys(c).length){t.next=5;break}return t.abrupt(\"return\",!1);case 5:return t.prev=6,l=n[0].split(\",\")[1],t.next=10,o.a.read(i.Buffer.from(l,\"base64\"));case 10:return f=t.sent,h=s.x12mkB(f),c.x=h.x,c.y=h.y,c.w=h.w,c.h=h.h,t.next=20,s.M12j0(h.img,c.CSL915d,e);case 20:if((p=t.sent)&&0!==p.length){t.next=24;break}return t.abrupt(\"return\",!1);case 24:for(m=[],y=p.reduce((function(t,e){return t+e[4]}),0),g=p.length-1;g>=0;g--)b=(y-p[g][4])/(p.length-1),((v=p[g][4]/b)>2.2||v<.35)&&m.push(g);for(w=[],_=0;_<p.length;_++)w.push(p[_][6]);for(x=a.a.shk4(w),k=0;k<p.length;k++)E=O(x[k]),S=E.sort((function(t,e){return e-t})).slice(0,2).reduce((function(t,e){return t+e}),0),p[k][47]=S/2;if(p.length>m.length&&(p=p.filter((function(t,e){return!m.includes(e)}))),T=p.reduce((function(t,e,r,n){return e[47]<n[t][47]?r:t}),0),!(d=p[T])){t.next=43;break}return t.next=42,s.I105m(d,c,r[0]);case 42:u=!0;case 43:t.next=50;break;case 46:return t.prev=46,t.t0=t.catch(6),t.abrupt(\"return\",u);case 50:return t.abrupt(\"return\",u);case 51:case\"end\":return t.stop()}}),t,this,[[6,46]])}))),function(t,e,r){return S.apply(this,arguments)})},{key:\"H11h7J\",value:(E=F(L().mark((function t(e,r,n){var s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=this,(u=null==e?void 0:e.CSL982d)&&0!==Object.keys(u).length){t.next=4;break}return t.abrupt(\"return\",!1);case 4:return c=!1,t.prev=6,l=n[0].split(\",\")[1],t.next=10,o.a.read(i.Buffer.from(l,\"base64\"));case 10:return f=t.sent,h=s.x12mkB(f),u.x=h.x,u.y=h.y,u.w=h.w,u.h=h.h,t.next=18,s.M12j0(h.img,u.CSL915d,e);case 18:if((p=t.sent)&&0!==p.length){t.next=22;break}return t.abrupt(\"return\",!1);case 22:for(d=null,y=[],g=0;g<p.length;g++)y.push(p[g][6]);if(m=a.a.shk4(y),b=a.a.Agh9(m),v=D(b,2),w=v[0],_=v[1],!(w>=0&&_>=0)){t.next=42;break}return t.next=32,a.a._g06(3323);case 32:return x=t.sent,d=p[w],t.next=36,s.I105m(d,u,r[0],!1);case 36:return t.next=38,a.a.Bi9dF(1011,50,x,60);case 38:return d=p[_],t.next=41,s.I105m(d,u,r[0]);case 41:c=!0;case 42:t.next=49;break;case 45:return t.prev=45,t.t0=t.catch(6),t.abrupt(\"return\",c);case 49:return t.abrupt(\"return\",c);case 50:case\"end\":return t.stop()}}),t,this,[[6,45]])}))),function(t,e,r){return E.apply(this,arguments)})},{key:\"P12c0R\",value:(k=F(L().mark((function t(e,r,n){var a,s,u,c,l,f,h,p,d,m,y,g;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=this,(s=null==e?void 0:e.CSL982d)&&0!==Object.keys(s).length&&!1!==e.CSLcaad){t.next=4;break}return t.abrupt(\"return\",!1);case 4:return u=!1,t.prev=6,c=n[0].split(\",\")[1],t.next=10,o.a.read(i.Buffer.from(c,\"base64\"));case 10:return l=t.sent,f=a.x12mkB(l),s.x=f.x,s.y=f.y,s.w=f.w,s.h=f.h,t.next=19,a.M12j0(f.img,s.CSL915d,e);case 19:for(h=t.sent,p=s.CSL97e6,d=[],m=0;m<h.length;m++)d.push(h[m][5]);return t.next=27,a.Do87F(p,null,d);case 27:if(!((y=t.sent).length>0)){t.next=34;break}return g=h[y[0]],t.next=33,a.I105m(g,s,r[0]);case 33:u=!0;case 34:t.next=39;break;case 36:t.prev=36,t.t0=t.catch(6);case 39:return t.prev=39,t.finish(39);case 42:return t.abrupt(\"return\",u);case 43:case\"end\":return t.stop()}}),t,this,[[6,36,39,42]])}))),function(t,e,r){return k.apply(this,arguments)})},{key:\"L11idL\",value:(x=F(L().mark((function t(e,r,n){var s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,T,A,D,O,I,P,C,M,F,B;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u=this,(c=null==e?void 0:e.CSL982d)&&0!==Object.keys(c).length&&!1!==e.CSLcaad){t.next=4;break}return t.abrupt(\"return\",!1);case 4:if(\"S\"!==(l=(null==c||null===(s=c.CSL961o)||void 0===s?void 0:s.CSL9658)||\"S\")||e.CSLc9cg&&0!==e.CSLc9cg.length){t.next=9;break}return t.abrupt(\"return\",!1);case 9:return f=!1,t.prev=10,h=n[0].split(\",\")[1],t.next=14,o.a.read(i.Buffer.from(h,\"base64\"));case 14:return p=t.sent,d=u.x12mkB(p),c.x=d.x,c.y=d.y,c.w=d.w,c.h=d.h,t.next=22,u.M12j0(d.img,c.CSL915d,e);case 22:if((m=t.sent)&&0!==m.length){t.next=27;break}return t.abrupt(\"return\",!1);case 27:return y=c.CSL915d.CSL90h6,t.next=30,u.Qp3d(y.CSL94sn);case 30:if(g=t.sent){t.next=34;break}return t.abrupt(\"return\",!1);case 34:if(b=[],\"bg\"!==l){t.next=52;break}for(v=p.clone(),w=0;w<m.length;w++)for(_=m[w],x=_[0];x<_[2];x++)for(k=_[1];k<_[3];k++)v.setPixelColor(o.a.rgbaToInt(0,0,0,255),x,k);if(!y.CSL95dh){t.next=44;break}return t.next=44,a.a.ycma(v,y.CSL95dh);case 44:return t.t0=b,t.next=47,u.Q10nn(g,y.CSL94pa,v);case 47:t.t1=t.sent,t.t0.push.call(t.t0,t.t1),t.next=81;break;case 52:if(![\"st\",\"sb\",\"sl\",\"sr\"].includes(l)){t.next=61;break}for(E=m[0],S=0,T=1;T<m.length;T++)(\"st\"===l&&m[T][1]<E[1]||\"sb\"===l&&m[T][1]>E[1]||\"sl\"===l&&m[T][0]<E[0]||\"sr\"===l&&m[T][0]>E[0])&&(E=m[T],S=T);m.splice(S,1),b.push(E[6]),t.next=81;break;case 61:if(!Array.isArray(l)){t.next=64;break}t.next=81;break;case 64:A=0;case 66:if(!(A<e.CSLc9cg.length)){t.next=81;break}return t.next=69,o.a.read(e.CSLc9cg[A]);case 69:if(D=t.sent,!y.CSL95dh){t.next=73;break}return t.next=73,a.a.ycma(D,y.CSL95dh);case 73:return t.t2=b,t.next=76,u.Q10nn(g,y.CSL94pa,D);case 76:t.t3=t.sent,t.t2.push.call(t.t2,t.t3);case 78:A++,t.next=66;break;case 81:for(O=0;O<m.length;O++){for(I=m[O][6],P=0,C=0;C<b.length;C++)M=a.a.qhi5(b[C],I),P=M>P?M:P;m[O][47]=P}if(!((F=m.reduce((function(t,e,r,n){return e[47]>n[t][47]?r:t}),0))>=0)){t.next=91;break}return B=m[F],t.next=87,u.I105m(B,c,r[0]);case 87:f=!0,t.next=93;break;case 91:return t.abrupt(\"return\",!1);case 93:t.next=99;break;case 95:return t.prev=95,t.t4=t.catch(10),t.abrupt(\"return\",!1);case 99:return t.prev=99,t.finish(99);case 102:return t.abrupt(\"return\",f);case 103:case\"end\":return t.stop()}}),t,this,[[10,95,99,102]])}))),function(t,e,r){return x.apply(this,arguments)})},{key:\"Z11ll_\",value:(_=F(L().mark((function t(e,r,n){var s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,T,A,D,O,I,P,C;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u=this,(c=null==e?void 0:e.CSL982d)&&0!==Object.keys(c).length&&!1!==e.CSLcaad){t.next=4;break}return t.abrupt(\"return\",!1);case 4:if(\"S\"!==((null==c||null===(s=c.CSL961o)||void 0===s?void 0:s.CSL9658)||\"S\")||0!==e.CSLc9cg.length){t.next=9;break}return t.abrupt(\"return\",!1);case 9:return l=!1,t.prev=10,f=c.CSL915d,h=n[0].split(\",\")[1],t.next=15,o.a.read(i.Buffer.from(h,\"base64\"));case 15:return p=t.sent,d=u.x12mkB(p),m=d.img,c.x=d.x,c.y=d.y,c.w=d.w,c.h=d.h,m.resize(f.CSL94pa,f.CSL94pa,o.a.RESIZE_BILINEAR),t.next=25,a.a.vcelv(m);case 25:for(y=a.a.Ih91(m,255),g=y.length-1;g>=0;g--)b=y[g].x2-y[g].x1,v=y[g].y2-y[g].y1,(b<f.CSL920h||b>f.CSL91ca||v<f.CSL920h||v>f.CSL91ca)&&y.splice(g,1);if(!(y.length>0)){t.next=77;break}return w=c.CSL90h6,t.next=34,u.Qp3d(w.CSL94sn);case 34:if(_=t.sent){t.next=37;break}return t.abrupt(\"return\",!1);case 37:x=[],k=0;case 39:if(!(k<e.CSLc9cg.length)){t.next=54;break}return t.next=42,o.a.read(e.CSLc9cg[k]);case 42:if(E=t.sent,!w.CSL95dh){t.next=46;break}return t.next=46,a.a.ycma(E,w.CSL95dh);case 46:return t.t0=x,t.next=49,u.Q10nn(_,w.CSL94pa,E);case 49:t.t1=t.sent,t.t0.push.call(t.t0,t.t1);case 51:k++,t.next=39;break;case 54:S=-1,T=-1,A=0;case 57:if(!(A<y.length)){t.next=71;break}if(D=m.clone().crop(y[A].x1-10,y[A].y1-10,y[A].x2-y[A].x1+20,y[A].y2-y[A].y1+20),!w.CSL95dh){t.next=62;break}return t.next=62,a.a.ycma(D,w.CSL95dh);case 62:return t.next=64,u.Q10nn(_,w.CSL94pa,D);case 64:for(O=t.sent,I=0,P=0;P<x.length;P++)I+=a.a.qhi5(x[P],O);I>S&&(S=I,T=A);case 68:A++,t.next=57;break;case 71:if(!(T>=0)){t.next=77;break}return C=[y[T].x1,y[T].y1,y[T].x2,y[T].y2],t.next=76,u.I105m(C,c,r[0]);case 76:l=!0;case 77:t.next=83;break;case 79:return t.prev=79,t.t2=t.catch(10),t.abrupt(\"return\",!1);case 83:return t.abrupt(\"return\",l);case 84:case\"end\":return t.stop()}}),t,this,[[10,79]])}))),function(t,e,r){return _.apply(this,arguments)})},{key:\"z1219B\",value:(w=F(L().mark((function t(e,r,n){var s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=this,(u=null==e?void 0:e.CSL982d)&&0!==Object.keys(u).length&&!1!==e.CSLcaad){t.next=4;break}return t.abrupt(\"return\",!1);case 4:return c=!1,t.prev=5,l=u.CSL915d,f=n[0].split(\",\")[1],t.next=11,o.a.read(i.Buffer.from(f,\"base64\"));case 11:return h=t.sent,p=s.x12mkB(h),u.x=p.x,u.y=p.y,u.w=p.w,u.h=p.h,t.next=19,s.M12j0(p.img,l,e);case 19:if((d=t.sent)&&0!==d.length){t.next=23;break}return t.abrupt(\"return\",!1);case 23:if(!((m=d.length)>20&&l.CSL91q4)){t.next=36;break}return l.CSL920h=l.CSL91q4,t.next=28,s.M12j0(h,l,e);case 28:if((d=t.sent)&&0!==d.length){t.next=34;break}return t.next=33,s.wofe();case 33:return t.abrupt(\"return\",!1);case 34:m=d.length;case 36:for((y=d.reduce((function(t,e){return t.x+=e[0],t.y+=e[1],t}),{x:0,y:0})).x/=d.length,y.y/=d.length,g=0;g<m;g++)d[g][47]=Math.atan2((d[g][1]+d[g][3])/2-y.y,(d[g][0]+d[g][2])/2-y.x);for(d.sort((function(t,e){return t[47]-e[47]})),b=0;b<m;b++)d[b][48]=Math.sqrt(Math.pow(d[b][0]-d[(b+1)%m][0],2)+Math.pow(d[b][1]-d[(b+1)%m][1],2));return v=d.map((function(t){return t[48]})),w=a.a.Ff32H(v),_=d.slice(0,w+1),x=d.slice(w+1).concat(_),k=x.map((function(t,e){return 0===e||e===m-1?1:a.a.qhi5(t[6],x[e+1][6])*a.a.qhi5(t[6],x[e-1][6])})),E=a.a.Hf0eH(k),S=x[E],t.next=55,s.I105m(S,u,r[0]);case 55:c=!0,t.next=62;break;case 58:return t.prev=58,t.t0=t.catch(5),t.abrupt(\"return\",!1);case 62:return t.abrupt(\"return\",c);case 63:case\"end\":return t.stop()}}),t,this,[[5,58]])}))),function(t,e,r){return w.apply(this,arguments)})},{key:\"R1292R\",value:(v=F(L().mark((function t(e,r,n){var s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,T,A,D;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=this,(u=null==e?void 0:e.CSL982d)&&0!==Object.keys(u).length&&!1!==e.CSLcaad){t.next=4;break}return t.abrupt(\"return\",!1);case 4:return c=!1,t.prev=5,l=n[0].split(\",\")[1],t.next=9,o.a.read(i.Buffer.from(l,\"base64\"));case 9:if(f=t.sent,h=s.x12mkB(f),u.x=h.x,u.y=h.y,u.w=h.w,u.h=h.h,(p=h.img).resize(640,640,o.a.RESIZE_BILINEAR),d=p.clone(),m=u.CSL961o,d.scan(0,0,d.bitmap.width,d.bitmap.height,(function(t,e,r){var n=(this.bitmap.data[r]+this.bitmap.data[r+1]+this.bitmap.data[r+2])/3>=m.CSL973p?255:0;this.bitmap.data[r]=n,this.bitmap.data[r+1]=n,this.bitmap.data[r+2]=n,this.bitmap.data[r+3]=255})),y=d.bitmap.width,g=d.bitmap.height,b=[{x:0,y:0,r:0},{x:100,y:100,r:0}],v=0,w=0,d.scan(0,0,y,g,(function(t,e,r){if(0===this.bitmap.data[r])for(var n=1;t-n>=0&&t+n<y&&e-n>=0&&e+n<g;n+=2){for(var i=!0,o=-1,a=0;a<360;a+=30){var s=a*Math.PI/180,u=Math.round(t+n*Math.cos(s)),c=4*(Math.round(e+n*Math.sin(s))*y+u);if(c!==o&&(o=c,0!==this.bitmap.data[c])){i=!1;break}}if(!i)break;n>b[0].r&&(b[0].r=n,b[0].x=t,b[0].y=e)}})),!(b[0].x-b[0].r<m.CSL96fi||b[0].x+b[0].r>y-m.CSL96fi||b[0].y-b[0].r<m.CSL96fi||b[0].y+b[0].r>g-m.CSL96fi||b[0].r<m.CSL970c||b[0].r>m.CSL96ps)){t.next=54;break}return _=u.CSL915d,t.next=32,s.M12j0(p,_,e);case 32:for(x=t.sent,k=x.length,E=[],S=0;S<k;S++)(T=(T=a.a.Shoa(x[S][5]))>.5?1-T:T)<.4&&E.push({x:(x[S][0]+x[S][2])/2,y:(x[S][1]+x[S][3])/2,value:T});if(!(E.length>0)){t.next=51;break}if(!((A=a.a.Ii11(E,m.CSL96mf,1))&&A.length>0)){t.next=47;break}for(v=E[A[0]].x,w=E[A[0]].y,D=1;D<A.length;D++)v=(v+E[A[D]].x)/2,w=(w+E[A[D]].y)/2;t.next=49;break;case 47:return t.abrupt(\"return\",!1);case 49:t.next=52;break;case 51:return t.abrupt(\"return\",!1);case 52:t.next=57;break;case 54:v=b[0].x,w=b[0].y;case 57:return t.next=59,s.I105m([v,w,v,w],u,r[0]);case 59:c=!0,t.next=66;break;case 62:return t.prev=62,t.t0=t.catch(5),t.abrupt(\"return\",!1);case 66:return t.abrupt(\"return\",c);case 67:case\"end\":return t.stop()}}),t,this,[[5,62]])}))),function(t,e,r){return v.apply(this,arguments)})},{key:\"H125dL\",value:(b=F(L().mark((function t(e,r,n){var a,s,u,c,l,f,h,p,d,m,y;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=this,(s=null==e?void 0:e.CSL982d)&&0!==Object.keys(s).length&&!1!==e.CSLcaad){t.next=4;break}return t.abrupt(\"return\",!1);case 4:return u=!1,t.prev=7,c=n[0].split(\",\")[1],t.next=11,o.a.read(i.Buffer.from(c,\"base64\"));case 11:return l=t.sent,f=a.x12mkB(l),s.x=f.x,s.y=f.y,s.w=f.w,s.h=f.h,h=s.CSL9120,p=f.img,t.next=21,a.I12g5(p,h,e);case 21:if(d=t.sent,!s.CSL961o||\"d\"!==s.CSL961o.CSL96c5){t.next=29;break}return m=[d.x1,d.y1,d.x2+15,d.y2+15],t.next=26,a.D1022H(m,s,r[0]);case 26:u=!0,t.next=33;break;case 29:return y=[d.x1,d.y1,d.x2,d.y2],t.next=32,a.I105m(y,s,r[0]);case 32:u=!0;case 33:t.next=39;break;case 35:return t.prev=35,t.t0=t.catch(7),t.abrupt(\"return\",!1);case 39:return t.abrupt(\"return\",u);case 40:case\"end\":return t.stop()}}),t,this,[[7,35]])}))),function(t,e,r){return b.apply(this,arguments)})},{key:\"u127g\",value:(g=F(L().mark((function t(e,r,n){var a,s,u,c,l,f,h,p;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=this,(s=null==e?void 0:e.CSL982d)&&0!==Object.keys(s).length&&!1!==e.CSLcaad){t.next=4;break}return t.abrupt(\"return\",!1);case 4:return u=!1,t.prev=5,c=n[0].split(\",\")[1],t.next=9,o.a.read(i.Buffer.from(c,\"base64\"));case 9:return l=t.sent,f=a.x12mkB(l),s.x=f.x,s.y=f.y,s.w=f.w,s.h=f.h,t.next=17,a.M12j0(f.img,s.CSL915d,e);case 17:if((h=t.sent)&&0!==h.length){t.next=21;break}return t.abrupt(\"return\",!1);case 21:if(h.sort((function(t,e){return e[4]-t[4]})),!(h.length>0)){t.next=35;break}if(p=h[0],!s.CSL961o||\"d\"!==s.CSL961o.CSL96c5){t.next=31;break}return t.next=29,a.D1022H(p,s,r[0]);case 29:t.next=34;break;case 31:return t.next=34,a.I105m(p,s,r[0]);case 34:u=!0;case 35:t.next=41;break;case 37:return t.prev=37,t.t0=t.catch(5),t.abrupt(\"return\",!1);case 41:return t.abrupt(\"return\",u);case 42:case\"end\":return t.stop()}}),t,this,[[5,37]])}))),function(t,e,r){return g.apply(this,arguments)})},{key:\"x12mkB\",value:function(t){var e,r=t.getWidth(),n=t.getHeight(),i=n>1200?438:n>1150||n>1050?382:n>950||n>850?170:0,o=(e=t.clone().crop(0,i,r,n-i-10)).getWidth(),a=e.getHeight();e.autocrop({tolerance:.01,cropOnlyFrames:!1,cropSymmetric:!0,leaveBorder:0});var s=Math.floor(e.getWidth()),u=Math.floor(e.getHeight());return{img:e,x:Math.round((o-s)/2),y:i+Math.round((a-u)/2),w:s,h:u}}},{key:\"Qp3d\",value:(y=F(L().mark((function t(e){var r;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.next=3,r.Ko0n(e);case 3:return t.abrupt(\"return\",t.sent);case 4:case\"end\":return t.stop()}}),t,this)}))),function(t){return y.apply(this,arguments)})},{key:\"Q10nn\",value:(m=F(L().mark((function t(e,r,n){var i;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this,t.next=3,i.yo4i(e,r,null,n);case 3:return t.abrupt(\"return\",t.sent);case 4:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return m.apply(this,arguments)})},{key:\"O10h9\",value:function(t,e){for(var r=t.bitmap.width,n=t.bitmap.height,i=0;i<n;i++)for(var a=0;a<r;a++){for(var s=[0,0,0],u=-e;u<=e;u++)for(var c=-e;c<=e;c++){var l=a+c,f=i+u;if(l>=0&&l<r&&f>=0&&f<n){var h=t.getPixelColor(l,f),p=o.a.intToRGBA(h);s[0]+=p.r,s[1]+=p.g,s[2]+=p.b}}var d=(2*e+1)*(2*e+1),m=[Math.floor(s[0]/d),Math.floor(s[1]/d),Math.floor(s[2]/d)],y=t.getPixelColor(a,i),g=o.a.intToRGBA(y);Math.abs(g.r-m[0])+Math.abs(g.g-m[1])+Math.abs(g.b-m[2])<130&&t.setPixelColor(o.a.rgbaToInt.apply(o.a,m.concat([g.a])),a,i)}return t}},{key:\"W10g0\",value:(d=F(L().mark((function t(e,r,n,i){var s,u,c,l,f;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=this,(u=e.clone()).resize(n,n,o.a.RESIZE_BILINEAR),(c={})[r.inputNames[0]]=a.a.Df72H(s.ort,u,[1,3,n,n],!0),t.next=7,r.run(c);case 7:return l=t.sent,f=l[r.outputNames[0]].data,t.abrupt(\"return\",f.map((function(t){return t>i?255:0})));case 10:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r,n){return d.apply(this,arguments)})},{key:\"I12g5\",value:(p=F(L().mark((function t(e,r,n){var i,o,s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this,t.next=3,i.Qp3d(r.CSL94sn);case 3:if(o=t.sent){t.next=6;break}return t.abrupt(\"return\",{x1:0,y1:0,x2:0,y2:0});case 6:return s=r.CSL94pa,t.next=9,i.W10g0(e,o,s,r.CSL94lq);case 9:u=t.sent,t.next=20;break;case 18:t.sent;case 20:c={x1:0,y1:0,x2:0,y2:0},l={x:s,y:s},f={x:0,y:0},h={x:0,y:0},p={x:s,y:0},t.t0=r.CSL94f0,t.next=0===t.t0?28:1===t.t0?32:2===t.t0?36:3===t.t0?40:11===t.t0?44:12===t.t0?51:21===t.t0?58:50===t.t0?67:100===t.t0?76:101===t.t0?77:78;break;case 28:return l=a.a.DgmgF(u,s,s,0),c.x1=c.x2=l.x,c.y1=c.y2=l.y,t.abrupt(\"break\",79);case 32:return f=a.a.DgmgF(u,s,s,1),c.x1=c.x2=f.x,c.y1=c.y2=f.y,t.abrupt(\"break\",79);case 36:return h=a.a.DgmgF(u,s,s,2),c.x1=c.x2=h.x,c.y1=c.y2=h.y,t.abrupt(\"break\",79);case 40:return p=a.a.DgmgF(u,s,s,3),c.x1=c.x2=p.x,c.y1=c.y2=p.y,t.abrupt(\"break\",79);case 44:for(d={x1:0,y1:0,x2:0,y2:0,points:0},m=0;m<s;m++){for(y=0,g=-1,b=0,v=0;v<s;v++)255===u[m*s+v]&&(y++,g<0&&(g=v),v>b&&(b=v));y>d.points&&(d.x1=g,d.y1=m,d.x2=b,d.y2=m,d.points=y)}return c.x1=d.x1,c.y1=d.y1,c.x2=d.x2,c.y2=d.y2,t.abrupt(\"break\",79);case 51:for(w={x1:0,y1:0,x2:0,y2:0,points:0},_=0;_<s;_++){for(x=0,k=-1,E=0,S=0;S<s;S++)255===u[S*s+_]&&(x++,k<0&&(k=S),S>E&&(E=S));x>w.points&&(w.x1=_,w.y1=k,w.x2=_,w.y2=E,w.points=x)}return c.x1=w.x1,c.y1=w.y1,c.x2=w.x2,c.y2=w.y2,t.abrupt(\"break\",79);case 58:return l=a.a.DgmgF(u,s,s,0),f=a.a.DgmgF(u,s,s,1),h=a.a.DgmgF(u,s,s,2),p=a.a.DgmgF(u,s,s,3),c.x1=(p.x+f.x)/2,c.y1=(l.y+h.y)/2,c.x2=c.x1,c.y2=c.y1,t.abrupt(\"break\",79);case 67:return l=a.a.DgmgF(u,s,s,0),f=a.a.DgmgF(u,s,s,1),h=a.a.DgmgF(u,s,s,2),p=a.a.DgmgF(u,s,s,3),c.x1=p.x,c.y1=l.y,c.x2=f.x,c.y2=h.y,t.abrupt(\"break\",79);case 76:case 77:case 78:return t.abrupt(\"break\",79);case 79:return c.x1*=r.CSL94id,c.y1*=r.CSL94id,c.x2*=r.CSL94id,c.y2*=r.CSL94id,t.abrupt(\"return\",c);case 84:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return p.apply(this,arguments)})},{key:\"M12j0\",value:(h=F(L().mark((function t(e,r){var n,i,o,a,s,u,c,l=arguments;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=l.length>2&&void 0!==l[2]?l[2]:null,a=this,t.next=4,a.Qp3d(null===(n=r.CSL93n9)||void 0===n?void 0:n.CSL94sn);case 4:return s=t.sent,t.next=7,a.Qp3d(null===(i=r.CSL90h6)||void 0===i?void 0:i.CSL94sn);case 7:if(u=t.sent,s&&u){t.next=11;break}return t.abrupt(\"return\",[]);case 11:return c=new T(e,r,a.ort,s,u,o),t.next=14,c.Inoo();case 14:return t.abrupt(\"return\",t.sent);case 15:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:\"Z107gZ\",value:function(t,e,r){}},{key:\"I105m\",value:(f=F(L().mark((function t(e,r,n){var i,o,s,u,c,l,f,h,p,d=arguments;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=!(d.length>3&&void 0!==d[3])||d[3],o=this,s=(e[0]*r.w/640+r.x)/2,u=(e[1]*r.h/640+r.y)/2,c=(e[2]*r.w/640+r.x)/2,l=(e[3]*r.h/640+r.y)/2,f=Math.floor((s+c)/2),h=Math.floor((u+l)/2),t.next=10,a.a._g06(3323);case 10:return p=t.sent,t.next=14,a.a.Bc2bD(n,!1,f,h,p);case 14:if(o.A13l7=JSON.stringify([n.toDataURL(\"image/jpeg\")]),!i){t.next=20;break}return t.next=18,a.a.Bi9dF(1811,101,p,101);case 18:return t.next=20,o.roblv();case 20:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return f.apply(this,arguments)})},{key:\"D1022H\",value:(l=F(L().mark((function t(e,r,n){var i,o,s,u,c,l,f,h,p,d,m,y,g;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p=function(t,e,r,n){f.fillRect(t,e,r-t,n-e)},h=function(t,e,r){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,clientX:e,clientY:r});l.dispatchEvent(n)},i=this,e[0]=Math.max(e[0],5),e[1]=Math.max(e[1],5),e[2]=Math.min(e[2],635),e[3]=Math.min(e[3],635),o=(e[0]*r.w/640+r.x+5)/2,s=(e[1]*r.h/640+r.y+5)/2,u=(e[2]*r.w/640+r.x-5)/2,c=(e[3]*r.h/640+r.y-5)/2,o=Math.floor(o),s=Math.floor(s),u=Math.floor(u),c=Math.floor(c),f=(l=n).getContext(\"2d\"),h(\"mouseover\",o,s),t.next=20,a.a.Bi9dF(10);case 20:return h(\"click\",o,s),t.next=23,a.a.Bi9dF(50);case 23:return h(\"mousedown\",o,s),t.next=26,a.a.Bi9dF(10);case 26:d=1;case 27:if(!(d<=10)){t.next=36;break}return m=o+Math.floor((u-o)/10*d),y=s+Math.floor((c-s)/10*d),h(\"mousemove\",m,y),t.next=33,a.a.Bi9dF(15+d);case 33:d++,t.next=27;break;case 36:return p(o,s,u,c),t.next=39,a.a.Bi9dF(10);case 39:return h(\"click\",u,c),t.next=42,a.a.Bi9dF(10);case 42:return h(\"mouseup\",u,c),t.next=45,a.a._g06(3323);case 45:return g=t.sent,t.next=48,a.a.Bi9dF(1303,101,g,303);case 48:return i.A13l7=JSON.stringify([n.toDataURL(\"image/jpeg\")]),t.next=51,i.roblv();case 51:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return l.apply(this,arguments)})},{key:\"I1035\",value:(c=F(L().mark((function t(e,r,n){var i,o,a,s,u,c,l=arguments;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:c=function(){a++;var t=r.x+s*a,e=r.y+u*a;document.dispatchEvent(new MouseEvent(\"mousemove\",{clientX:t,clientY:e,bubbles:!0})),a<i?setTimeout(c,o):document.dispatchEvent(new MouseEvent(\"mouseup\",{clientX:n.x,clientY:n.y,bubbles:!0}))},i=l.length>3&&void 0!==l[3]?l[3]:20,o=l.length>4&&void 0!==l[4]?l[4]:10,e.dispatchEvent(new MouseEvent(\"mousedown\",{clientX:r.x,clientY:r.y,bubbles:!0})),a=0,s=(n.x-r.x)/i,u=(n.y-r.y)/i,c();case 8:case\"end\":return t.stop()}}),t)}))),function(t,e,r){return c.apply(this,arguments)})},{key:\"znpiz\",value:(u=F(L().mark((function t(){var e,r,n,i,o,s,u,c,l;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,a.a._g06(3323);case 3:r=t.sent,G=r<2?6e5:G;case 5:if(!(G-- >0)){t.next=78;break}if(t.t0=!(null!==(n=chrome.runtime)&&void 0!==n&&n.id),!t.t0){t.next=11;break}return t.next=10,a.a.Bi9dF(3e3);case 10:t.t0=t.sent;case 11:if(!t.t0){t.next=13;break}return t.abrupt(\"continue\",5);case 13:return t.next=15,a.a.Bi9dF(1007);case 15:return t.next=17,a.a.Dfj0D({key:\"CSLcaeg\",B174bD:-1});case 17:if(t.t2=i=t.sent,t.t1=null===t.t2,t.t1){t.next=21;break}t.t1=void 0===i;case 21:if(!t.t1){t.next=25;break}t.t3=void 0,t.next=26;break;case 25:t.t3=i.value;case 26:if(s=t.t3,t.t4=!(null!=s&&s.hc_enabled),!t.t4){t.next=32;break}return t.next=31,a.a.Bi9dF(2e3);case 31:t.t4=t.sent;case 32:if(!t.t4){t.next=34;break}return t.abrupt(\"continue\",5);case 34:return t.next=36,a.a.Jef6N();case 36:if(t.t6=o=t.sent,t.t5=null===t.t6,t.t5){t.next=40;break}t.t5=void 0===o;case 40:if(!t.t5){t.next=44;break}t.t7=void 0,t.next=45;break;case 44:t.t7=o.value;case 45:if(u=t.t7,t.t8=!u,!t.t8){t.next=51;break}return t.next=50,a.a.Bi9dF(2e3);case 50:t.t8=t.sent;case 51:if(!t.t8){t.next=53;break}return t.abrupt(\"continue\",5);case 53:if(c=e.yp46(),l=e.rp93v(),!e.Op5f()){t.next=67;break}if(e.A13io){t.next=66;break}return t.next=60,a.a.Mc76({key:\"K17cl\",value:\"U181p\"});case 60:return t.next=62,a.a.Mc76({key:\"rl94t\",value:\"\"});case 62:return e.A13io=!0,t.next=66,a.a.Bi9dF(1006);case 66:return t.abrupt(\"continue\",5);case 67:if(e.A13io=!1,!c){t.next=73;break}return t.next=71,e._oior();case 71:t.next=76;break;case 73:if(!l){t.next=76;break}return t.next=76,e.ToofT();case 76:t.next=5;break;case 78:case\"end\":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})}],n&&B(r.prototype,n),s&&B(r,s),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,A,P,C,M,j,R,z,q,V,W,Z,Y,X,K,J,$,Q,tt,et,rt,nt,it,ot,at,st}(y);function V(t){return V=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},V(t)}function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||X(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Z(t){return function(t){if(Array.isArray(t))return K(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||X(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Y(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=X(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function X(t,e){if(t){if(\"string\"==typeof t)return K(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?K(t,e):void 0}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function J(){J=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:T(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function g(){}function b(){}function v(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(P([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=v.prototype=g.prototype=Object.create(w);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==V(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function T(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=f(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=f(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(D,this),this.reset(!0)}function P(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(V(e)+\" is not iterable\")}return b.prototype=v,i(k,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:b,configurable:!0}),b.displayName=c(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===b||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},E(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(k),c(k,u,\"Generator\"),c(k,a,(function(){return this})),c(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function $(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Q(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){$(o,n,i,a,s,\"next\",t)}function s(t){$(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function tt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,et(n.key),n)}}function et(t){var e=function(t,e){if(\"object\"!=V(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=V(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==V(e)?e:e+\"\"}function rt(t,e,r){return e=it(e),function(t,e){if(e&&(\"object\"===V(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,nt()?Reflect.construct(e,r||[],it(t).constructor):e.apply(t,r))}function nt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(nt=function(){return!!t})()}function it(t){return it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},it(t)}function ot(t,e){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ot(t,e)}r(316);var at=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e);var n=r=rt(this,e,[t]);return n.J16ccJ=!1,n.E16b8=null,n.E16ia=!1,n.s16ed=[],n.P16hbR=!1,n.F1677F=a.a.HfbaJ(1,1e5),n.V16k0V=!1,r}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&ot(t,e)}(e,t),r=e,n=[{key:\"init\",value:(_=Q(J().mark((function t(){return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return _.apply(this,arguments)})},{key:\"y150j\",value:function(){return a.a.BgncB(\".recaptcha-checkbox\")}},{key:\"K15bh\",value:function(){return a.a.BgncB(\"#rc-imageselect\")}},{key:\"I15k9\",value:function(){return a.a.BgncB(\".recaptcha-checkbox-checked\")}},{key:\"W1667\",value:(w=Q(J().mark((function t(){var e;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=document.querySelector(\"#recaptcha-anchor\"))){t.next=4;break}return t.next=4,a.a.Bc2bD(e,!1);case 4:case\"end\":return t.stop()}}),t)}))),function(){return w.apply(this,arguments)})},{key:\"u15ac\",value:function(){return a.a.BgncB(\".rc-anchor-error-message\")}},{key:\"t156lx\",value:(v=Q(J().mark((function t(){var e;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=a.a.BgncB(\".rc-doscaptcha-header\")||a.a.BgncB(\".rc-doscaptcha-header-text\"))){t.next=4;break}return t.next=4,a.a.Mc76({key:\"K17cl\",value:\"t1841v\"});case 4:return t.abrupt(\"return\",e);case 5:case\"end\":return t.stop()}}),t)}))),function(){return v.apply(this,arguments)})},{key:\"D1535F\",value:function(){var t,e,r=\"true\"===(null===(t=document.querySelector(\".recaptcha-checkbox\"))||void 0===t?void 0:t.getAttribute(\"aria-checked\")),n=null===(e=document.querySelector(\"#recaptcha-verify-button\"))||void 0===e?void 0:e.disabled;return r||n}},{key:\"Z14h6Z\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15e3;return new Promise(function(){var e=Q(J().mark((function e(r){var n,i,o;return J().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Date.now();case 1:if(i=document.querySelectorAll(\".rc-imageselect-tile\"),o=document.querySelectorAll(\".rc-imageselect-dynamic-selected\"),!(i.length>0&&0===o.length)){e.next=6;break}return e.abrupt(\"return\",r(!0));case 6:if(!(Date.now()-n>t)){e.next=8;break}return e.abrupt(\"return\",r(!1));case 8:return e.next=10,a.a.Bi9dF(100);case 10:e.next=1;break;case 12:case\"end\":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},{key:\"u15no\",value:function(){var t,e=null===(t=document.querySelector(\".rc-imageselect-instructions\"))||void 0===t?void 0:t.innerText,r=null==e?void 0:e.split(\"\\n\");return{CSLc9g0:r&&r.length>1?r.slice(0,2).join(\" \").replace(/\\s+/g,\" \").trim():null==r?void 0:r.join(\"\\n\"),CSLc9cg:[],CSLc993:\"CSLc8kp\",CSLc9qa:3===r.length?1:0}}},{key:\"A14jf\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,e=this;return new Promise((function(r){var n=!1,i=setInterval(Q(J().mark((function t(){var o,s,u,c,l,f,h,p,d,m,y,g,b;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=2;break}return t.abrupt(\"return\");case 2:if(n=!0,(o=e.u15no()).CSLc9g0){t.next=7;break}return n=!1,t.abrupt(\"return\");case 7:if(9===(s=document.querySelectorAll(\"table tr td\")).length||16===s.length){t.next=11;break}return n=!1,t.abrupt(\"return\");case 11:u=[],c=Array(s.length).fill(null),l=null,f=!1,h=0,p=Y(s),t.prev=17,p.s();case 19:if((d=p.n()).done){t.next=34;break}if(m=d.value,y=null==m?void 0:m.querySelector(\"img\")){t.next=25;break}return n=!1,t.abrupt(\"return\");case 25:if((g=a.a.BfgoD(y))&&\"\"!==g){t.next=29;break}return n=!1,t.abrupt(\"return\");case 29:y.naturalWidth>=300?l=g:100===y.naturalWidth&&(c[h]=g,f=!0),u.push(m),h++;case 32:t.next=19;break;case 34:t.next=39;break;case 36:t.prev=36,t.t0=t.catch(17),p.e(t.t0);case 39:return t.prev=39,p.f(),t.finish(39);case 42:if(f&&(l=null),b=JSON.stringify([l,c]),e.E16b8!==b){t.next=47;break}return n=!1,t.abrupt(\"return\");case 47:return e.E16b8=b,clearInterval(i),n=!1,t.abrupt(\"return\",r({P16laP:o,t16ncv:l,L1706N:c,_1721:u}));case 51:case\"end\":return t.stop()}}),t,null,[[17,36,39,42]])}))),t)}))}},{key:\"_14ab\",value:(b=Q(J().mark((function t(){var e;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.a._g06(3635);case 2:return e=t.sent,t.next=5,a.a.Bc2bD(document.querySelector(\"#recaptcha-verify-button\"),!1,null,null,e);case 5:case\"end\":return t.stop()}}),t)}))),function(){return b.apply(this,arguments)})},{key:\"D14cnF\",value:(g=Q(J().mark((function t(){return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.a.Mc76({key:\"Ml74\",value:\"\"});case 2:return t.next=4,a.a.Bc2bD(document.querySelector(\"#recaptcha-reload-button\"));case 4:case\"end\":return t.stop()}}),t)}))),function(){return g.apply(this,arguments)})},{key:\"G15ci\",value:function(){for(var t=0,e=[\".rc-imageselect-incorrect-response\"];t<e.length;t++){var r,n=e[t];if(\"none\"!==(null===(r=document.querySelector(n))||void 0===r?void 0:r.style.display))return!0}return!1}},{key:\"P15e2P\",value:function(){for(var t=0,e=[\".rc-imageselect-error-select-more\",\".rc-imageselect-error-dynamic-more\",\".rc-imageselect-error-select-something\"];t<e.length;t++){var r=e[t],n=document.querySelector(r);if(\"none\"!==(null==n?void 0:n.style.display)||0===(null==n?void 0:n.tabIndex))return!0}return!1}},{key:\"t15g4v\",value:function(t){try{var e;return null===(e=t.classList)||void 0===e?void 0:e.contains(\"rc-imageselect-tileselected\")}catch(t){}return!1}},{key:\"G14fc\",value:(y=Q(J().mark((function t(){var e,r,n,i;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,t.next=3,a.a.Dfj0D({key:\"rld1r\"});case 3:if(t.t1=e=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===e;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=e.value;case 12:return i=t.t2,t.next=15,a.a.Dfj0D({key:\"TlefT\"});case 15:if(t.t4=r=t.sent,t.t3=null===t.t4,t.t3){t.next=19;break}t.t3=void 0===r;case 19:if(!t.t3){t.next=23;break}t.t5=void 0,t.next=24;break;case 23:t.t5=r.value;case 24:if(!0!==t.t5&&!0===i&&!n.D1535F()){t.next=27;break}return t.abrupt(\"return\");case 27:return t.next=29,a.a.Mc76({key:\"K17cl\",value:\"O17k4\"});case 29:return t.t6=a.a,t.next=32,a.a._g06(3635);case 32:return t.t7=t.sent,t.next=35,t.t6.Bi9dF.call(t.t6,606,55,t.t7,99);case 35:return t.next=37,n.W1667();case 37:case\"end\":return t.stop()}}),t,this)}))),function(){return y.apply(this,arguments)})},{key:\"s148e\",value:(m=Q(J().mark((function t(e,r,n,i,s,u){var c,l,f,h,p,d,m,y,g,b,v,w;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=this,e.CSLcab4=\"re\",e.CSLc993=9===i.length?\"CSLc926\":\"CSLc8rm\",t.next=5,a.a.Ri54T(e);case 5:if((e=t.sent.value).CSLca7k=9===i.length?3:4,e&&e.CSL982d){t.next=10;break}return t.abrupt(\"return\");case 10:if(l=[],null===r&&n.length>0?n.forEach((function(t,e){t&&!c.s16ed.includes(t)&&(l.push(t),u.push(i[e]))})):(l.push(r),u.push.apply(u,Z(i))),null!==r){t.next=36;break}if(!(l.length>0)){t.next=34;break}f=Y(l),t.prev=15,f.s();case 17:if((h=f.n()).done){t.next=26;break}return p=h.value,t.t0=s,t.next=22,o.a.read(p).then((function(t){return t.rgba(!1)}));case 22:t.t1=t.sent,t.t0.push.call(t.t0,t.t1);case 24:t.next=17;break;case 26:t.next=31;break;case 28:t.prev=28,t.t2=t.catch(15),f.e(t.t2);case 31:return t.prev=31,f.f(),t.finish(31);case 34:t.next=40;break;case 36:return t.next=38,o.a.read(r).then((function(t){return t.rgba(!1)}));case 38:if(d=t.sent,\"CSLc8rm\"===e.CSLc993)s.push(d);else for(m=d.bitmap.width/e.CSLca7k,y=0;y<e.CSLca7k;y++)for(g=0;g<e.CSLca7k;g++)s.push(d.clone().crop(g*m,y*m,m,m));case 40:b=Y(n);try{for(b.s();!(v=b.n()).done;)w=v.value,c.s16ed.push(w),c.s16ed.length>9&&c.s16ed.shift()}catch(t){b.e(t)}finally{b.f()}return t.abrupt(\"return\",e);case 43:case\"end\":return t.stop()}}),t,this,[[15,28,31,34]])}))),function(t,e,r,n,i,o){return m.apply(this,arguments)})},{key:\"C14m0\",value:(d=Q(J().mark((function t(){var e,r,n,i,o,s,u,c,l,f,h,p,d,m,y,g,b;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this,t.next=3,a.a.Dfj0D({key:\"TlefT\"});case 3:if(t.t1=e=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===e;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=e.value;case 12:if(o=t.t2,t.t4=!0!==o||i.D1535F(),t.t4){t.next=18;break}return t.next=17,i.t156lx();case 17:t.t4=t.sent;case 18:if(t.t3=t.t4,t.t3){t.next=21;break}t.t3=i.u15ac();case 21:if(!t.t3){t.next=23;break}return t.abrupt(\"return\");case 23:return t.next=25,a.a._g06(3635);case 25:if(s=t.sent,!i.E16ia&&i.G15ci()?(i.s16ed=[],i.E16ia=!0):i.E16ia=!1,!i.P15e2P()){t.next=35;break}return i.s16ed=[],t.next=32,a.a.Bi9dF(666,55,s,88);case 32:return t.next=34,i.D14cnF();case 34:return t.abrupt(\"return\");case 35:return t.next=37,i.Z14h6Z();case 37:if(t.sent){t.next=40;break}return t.abrupt(\"return\");case 40:return t.next=43,i.A14jf();case 43:if(u=t.sent,c=u.P16laP,l=u.t16ncv,f=u.L1706N,h=u._1721,null!==(r=c)&&void 0!==r&&r.CSLc9g0){t.next=54;break}return t.next=53,i.D14cnF();case 53:return t.abrupt(\"return\");case 54:return p=c.CSLc9g0,t.next=57,a.a.Cc9h(3635,p);case 57:if(!(t.sent>6)){t.next=63;break}return t.next=62,i.D14cnF();case 62:return t.abrupt(\"return\",t.sent);case 63:return d=[],m=[],t.next=68,i.s148e(c,l,f,h,d,m);case 68:if(c=t.sent,null!==(n=c)&&void 0!==n&&n.CSL985q){t.next=77;break}return t.next=76,i.D14cnF();case 76:return t.abrupt(\"return\");case 77:if(0!==d.length){t.next=82;break}return t.next=81,i.D14cnF();case 81:return t.abrupt(\"return\");case 82:return t.next=84,a.a.Mc76({key:\"K17cl\",value:\"O17k4\"});case 84:if(y=Array(16).fill(!1),t.prev=85,\"CSLc926\"!==c.CSLc993||!c.CSL985q.startsWith(\"101.01\")){t.next=91;break}return t.next=89,i.K15le(c,d,y);case 89:t.next=99;break;case 91:if(\"CSLc926\"!==c.CSLc993||!c.CSL985q.startsWith(\"101.10\")){t.next=96;break}return t.next=94,i.T164gV(c,d,y);case 94:t.next=99;break;case 96:if(\"CSLc8rm\"!==c.CSLc993){t.next=99;break}return t.next=99,i._15n9(c,d[0],y);case 99:t.next=108;break;case 101:return t.prev=101,t.t5=t.catch(85),t.next=106,a.a.Bi9dF(666,55,s,99);case 106:return t.next=108,i.D14cnF();case 108:g=0,b=0;case 110:if(!(b<y.length)){t.next=122;break}if(y[b]){t.next=113;break}return t.abrupt(\"continue\",119);case 113:if(i.t15g4v(m[b])){t.next=119;break}return g++,t.next=117,a.a.Bc2bD(m[b]);case 117:return t.next=119,a.a.Bi9dF(777,101,3*s,51);case 119:b++,t.next=110;break;case 122:if(1!==c.CSLc9qa){t.next=127;break}return t.next=125,a.a.Bi9dF(1555,101,2*s,1e3);case 125:t.next=129;break;case 127:return t.next=129,a.a.Bi9dF(1555,101,2*s,200);case 129:if(t.t9=\"CSLc926\"===c.CSLc993&&1===c.CSLc9qa,!t.t9){t.next=134;break}return t.next=133,i.Z14h6Z();case 133:t.t9=t.sent;case 134:if(t.t8=t.t9,!t.t8){t.next=137;break}t.t8=0===g;case 137:if(t.t7=t.t8,t.t7){t.next=140;break}t.t7=\"CSLc926\"===c.CSLc993&&0===c.CSLc9qa;case 140:if(t.t6=t.t7,t.t6){t.next=143;break}t.t6=\"CSLc8rm\"===c.CSLc993&&0!==g;case 143:if(!t.t6){t.next=150;break}return t.next=146,a.a.Bi9dF(888,101,s,111);case 146:return t.next=148,i._14ab();case 148:t.next=156;break;case 150:if(\"CSLc8rm\"!==c.CSLc993||0!==g){t.next=156;break}return t.next=154,a.a.Bi9dF(555,101,s,88);case 154:return t.next=156,i.D14cnF();case 156:case 157:case\"end\":return t.stop()}}),t,this,[[85,101]])}))),function(){return d.apply(this,arguments)})},{key:\"T164gV\",value:(p=Q(J().mark((function t(e,r,n){var i,o,a;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,(o=e.CSL982d)&&0!==Object.keys(o).length&&!1!==e.CSLcaad){t.next=5;break}return t.abrupt(\"return\",[]);case 5:return a=o.CSL97e6,t.next=9,i.Do87F(a,null,r);case 9:t.sent.forEach((function(t){return n[t]=!0}));case 12:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return p.apply(this,arguments)})},{key:\"K15le\",value:(h=Q(J().mark((function t(e,r,n){var i,s,u,c,l,f,h,p,d;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,e){t.next=4;break}throw new Error(\"error\");case 4:if((s=e.CSL982d).CSL97e6&&s.CSL97e6.CSL97og){t.next=8;break}throw new Error(\"error\");case 8:return u=s.CSL97e6.CSL97og,c=null,t.prev=11,t.next=14,i.D1500H(u.CSL94sn);case 14:c=t.sent,t.next=22;break;case 18:throw t.prev=18,t.t0=t.catch(11),new Error(\"error\");case 22:return l={},f=u.CSL94pa,h=r.map(function(){var t=Q(J().mark((function t(e,r){var n,s,h,p;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.resize(f,f,o.a.RESIZE_BILINEAR),n=a.a.Df72H(i.ort,e,[1,3,f,f],!0),t.next=4,c.run({input:n});case 4:s=t.sent,h=s[c.outputNames[0]].data,p=a.a.yc01(h),l[r]=p[parseInt(u.CSL9416)];case 8:case\"end\":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),t.next=27,Promise.all(h);case 27:p=Object.keys(l).sort((function(t,e){return l[e]-l[t]})),d=p.filter((function(t){return l[t]>u.CSL94bg})),9===r.length&&(d.length<3||d.length>4)?(d=d.slice(0,3),p.length>3&&d.length>0&&l[p[d.length-1]]-l[d.length]<u.CSL944j&&(d=p.slice(0,d.length+1))):[3,4].includes(r.length)&&0===d.length&&(d=p.filter((function(t){return l[t]>u.CSL9483}))),d.forEach((function(t){return n[t]=!0}));case 34:case\"end\":return t.stop()}}),t,this,[[11,18]])}))),function(t,e,r){return h.apply(this,arguments)})},{key:\"_15n9\",value:(f=Q(J().mark((function t(e,r,n){var i,s,u,c,l,f,h,p,d,m,y,g,b,v,w,_,x,k,E,S,T,A,D,O;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,e){t.next=4;break}throw new Error(\"error\");case 4:if((s=e.CSL982d)&&s.CSL95rb){t.next=8;break}throw new Error(\"error\");case 8:return u=s.CSL95rb.CSL95h1,c=s.CSL95rb.CSL95ke,l=s.CSL95rb.CSL95nr,t.next=14,Promise.all([i.D1500H(u.CSL94sn),i.D1500H(c.CSL94sn),i.D1500H(l.CSL94sn)]);case 14:if(f=t.sent,h=W(f,3),p=h[0],d=h[1],m=h[2],p&&d&&m){t.next=21;break}throw new Error(\"error\");case 21:return y=u.CSL95a4,r=r.resize(y,y),g=a.a.Df72H(i.ort,r,[1,3,y,y],!1),t.next=27,p.run({images:g});case 27:return b=t.sent,v=b.output0,w=b.output1,_=new i.ort.Tensor(\"float32\",new Float32Array([c.CSL90kj,c.CSL956k,c.CSL97am])),t.next=34,d.run({detection:v,config:_});case 34:x=t.sent,k=x[d.outputNames[0]],E=y/4,S=Math.pow(E,2),T=parseInt(u.CSL97hj),A=parseInt(u.CSL90rg),D=J().mark((function t(){var e,r,s,u,c,f,h,p,d,g,b,_,x,D;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=k.data[O],r=v.data.slice(e*v.dims[2],(e+1)*v.dims[2]),s=r.slice(5,5+T),u=Math.max.apply(Math,Z(s)),s.indexOf(u)===A){t.next=6;break}return t.abrupt(\"return\",1);case 6:return c=Object.values(l.CSL9537),f=r.slice(0,4),f=a.a.qd5l([f[0]-.5*f[2],f[1]-.5*f[3],f[2],f[3]],y),h=new i.ort.Tensor(\"float32\",new Float32Array([].concat(Z(f),Z(r.slice(5+T))))),p=new i.ort.Tensor(\"float32\",new Float32Array([y,f[0],f[1],f[2],f[3]].concat(c))),t.next=13,m.run({detection:h,mask:w,config:p});case 13:for(d=t.sent,g=d[m.outputNames[0]].data,(b=new o.a(y,y)).bitmap.data=g,_=Array.from({length:4},(function(){return Array.from({length:4},(function(){return 0}))})),b.scan(0,0,y,y,(function(t,e,r){var n=Math.floor(t/E),i=Math.floor(e/E);this.bitmap.data[r+3]>0&&(_[i][n]+=1)})),x=l.CSL9779,D=0;D<16;D++)_[Math.floor(D/4)][D%4]/S>x&&(n[D]=!0);case 21:case\"end\":return t.stop()}}),t)})),O=0;case 43:if(!(O<k.data.length)){t.next=50;break}return t.delegateYield(D(),\"t0\",45);case 45:if(!t.t0){t.next=47;break}return t.abrupt(\"continue\",47);case 47:O++,t.next=43;break;case 50:case 51:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return f.apply(this,arguments)})},{key:\"D1500H\",value:(l=Q(J().mark((function t(e){var r;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.next=3,r.Ko0n(e);case 3:return t.abrupt(\"return\",t.sent);case 4:case\"end\":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:\"t161ex\",value:(c=Q(J().mark((function t(e,r){var n,a,s,u,c,l,f,h=arguments;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=h.length>2&&void 0!==h[2]?h[2]:null,a=h.length>3&&void 0!==h[3]?h[3]:null,s=h.length>4&&void 0!==h[4]?h[4]:null,u=h.length>5&&void 0!==h[5]?h[5]:null,t.next=50;break;case 8:if(t.prev=8,!((null==n?void 0:n.length)>0)){t.next=21;break}c=0;case 11:if(!(c<n.length)){t.next=21;break}if(n[c]){t.next=14;break}return t.abrupt(\"continue\",18);case 14:return t.next=16,o.a.read(n[c]);case 16:t.sent;case 18:c++,t.next=11;break;case 21:if(!((null==a?void 0:a.length)>0)){t.next=33;break}l=0;case 23:if(!(l<a.length)){t.next=33;break}if(a[l]){t.next=26;break}return t.abrupt(\"continue\",30);case 26:return t.next=28,o.a.read(a[l]);case 28:t.sent;case 30:l++,t.next=23;break;case 33:if(!s){t.next=44;break}if(!s.startsWith(\"data:image/\")){t.next=40;break}return t.next=37,o.a.read(i.Buffer.from(s.split(\",\")[1],\"base64\"));case 37:t.sent,t.next=43;break;case 40:return t.next=42,o.a.read(s);case 42:t.sent;case 43:case 44:if((null==u?void 0:u.length)>0)for(f=0;f<u.length;f++);t.next=50;break;case 47:t.prev=47,t.t0=t.catch(8);case 50:case\"end\":return t.stop()}}),t,null,[[8,47]])}))),function(t,e){return c.apply(this,arguments)})},{key:\"znpiz\",value:(u=Q(J().mark((function t(){var e,r,n,i,o,s,u,c,l;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,a.a._g06(3323);case 3:r=t.sent,n=r>=2?2592e6:6e5;case 5:if(!(n-- >0)){t.next=67;break}if(null!==(i=chrome.runtime)&&void 0!==i&&i.id){t.next=10;break}return t.next=9,a.a.Bi9dF(5e3);case 9:return t.abrupt(\"continue\",5);case 10:return t.next=12,a.a.Bi9dF(1002);case 12:return t.next=14,a.a.Dfj0D({key:\"CSLcaeg\",B174bD:-1});case 14:if(t.t1=o=t.sent,t.t0=null===t.t1,t.t0){t.next=18;break}t.t0=void 0===o;case 18:if(!t.t0){t.next=22;break}t.t2=void 0,t.next=23;break;case 22:t.t2=o.value;case 23:if(null!=(u=t.t2)&&u.re_enabled){t.next=28;break}return t.next=27,a.a.Bi9dF(2e3);case 27:return t.abrupt(\"continue\",5);case 28:return t.next=30,a.a.Jef6N();case 30:if(t.t4=s=t.sent,t.t3=null===t.t4,t.t3){t.next=34;break}t.t3=void 0===s;case 34:if(!t.t3){t.next=38;break}t.t5=void 0,t.next=39;break;case 38:t.t5=s.value;case 39:if(t.t5){t.next=42;break}return t.abrupt(\"continue\",5);case 42:if(c=e.y150j(),l=e.K15bh(),!e.D1535F()){t.next=56;break}if(e.P16hbR){t.next=55;break}return t.next=49,a.a.Mc76({key:\"K17cl\",value:\"w180a\"});case 49:return t.next=51,a.a.Mc76({key:\"Ml74\",value:\"\"});case 51:return e.P16hbR=!0,t.next=55,a.a.Bi9dF(1003);case 55:return t.abrupt(\"continue\",5);case 56:if(e.P16hbR=!1,!c){t.next=62;break}return t.next=60,e.G14fc();case 60:t.next=65;break;case 62:if(!l){t.next=65;break}return t.next=65,e.C14m0();case 65:t.next=5;break;case 67:case\"end\":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})}],n&&tt(r.prototype,n),s&&tt(r,s),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,s,u,c,l,f,h,p,d,m,y,g,b,v,w,_}(y);function st(t){return st=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},st(t)}function ut(){ut=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new I(n||[]);return i(a,\"_invoke\",{value:T(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function g(){}function b(){}function v(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(P([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=v.prototype=g.prototype=Object.create(w);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==st(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function T(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=A(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=f(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function A(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,A(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var o=f(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(D,this),this.reset(!0)}function P(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(st(e)+\" is not iterable\")}return b.prototype=v,i(k,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:b,configurable:!0}),b.displayName=c(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===b||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},E(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(k),c(k,u,\"Generator\"),c(k,a,(function(){return this})),c(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function ct(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function lt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ct(o,n,i,a,s,\"next\",t)}function s(t){ct(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function ft(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,ht(n.key),n)}}function ht(t){var e=function(t,e){if(\"object\"!=st(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=st(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==st(e)?e:e+\"\"}n.env.wasm.wasmPaths={\"ort-wasm.wasm\":chrome.runtime.getURL(\"static/wasm.wasm\"),\"ort-wasm-simd.wasm\":chrome.runtime.getURL(\"static/wasm-simd.wasm\")},n.env.wasm.numThreads=1;var pt=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.loadStatus=\"0\",this.ort=n},e=[{key:\"init\",value:(o=lt(ut().mark((function t(){return ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.myFrame=window;case 2:case\"end\":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:\"start\",value:(i=lt(ut().mark((function t(){return ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})}],e&&ft(t.prototype,e),r&&ft(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,i,o}();lt(ut().mark((function t(){var e,r,n;return ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new pt,globalThis.app=e,t.next=4,e.init();case 4:return t.next=6,e.start();case 6:r=new at(e),n=new q(e),r.znpiz(),n.znpiz();case 10:case\"end\":return t.stop()}}),t)})))()}]);"
  },
  {
    "path": "utils/hcaptchasolver/content/clientIndex.js.LICENSE.txt",
    "content": "/*!\n   *  decimal.js v10.4.3\n   *  An arbitrary-precision Decimal type for JavaScript.\n   *  https://github.com/MikeMcl/decimal.js\n   *  Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>\n   *  MIT Licence\n   */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * Timm\n *\n * Immutability helpers with fast reads and acceptable writes.\n *\n * @copyright Guillermo Grau Panea 2016\n * @license MIT\n */\n\n/*!\n* ONNX Runtime Web v1.16.1\n* Copyright (c) Microsoft Corporation. All rights reserved.\n* Licensed under the MIT License.\n*/\n\n/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\n\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n\n/**\n * @license Complex.js v2.1.1 12/05/2020\n *\n * Copyright (c) 2020, Robert Eisele (robert@xarg.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @license Fraction.js v4.3.0 20/08/2023\n * https://www.xarg.org/2014/03/rational-numbers-in-javascript/\n *\n * Copyright (c) 2023, Robert Eisele (robert@raw.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cie94.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ciede2000.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cmetric.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * common.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * constants.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ditherErrorDiffusionArray.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * euclidean.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * helper.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * hueStatistics.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * iq.ts - Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * manhattanNeuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * nearestColor.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * palette.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pngQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * point.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pointContainer.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2hsl.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ssim.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * wuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * MIT License\n *\n * Copyright 2015-2018 Igor Bezkrovnyi\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n *\n * riemersma.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * colorHistogram.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * neuquant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgbquant.ts - part of Image Quantization Library\n */\n"
  },
  {
    "path": "utils/hcaptchasolver/content/cloudflareDetector.js",
    "content": "/*! For license information please see cloudflareDetector.js.LICENSE.txt */\n!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,\"a\",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p=\"\",r(r.s=292)}([function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}r.d(e,\"a\",(function(){return o})),r.d(e,\"d\",(function(){return s})),r.d(e,\"b\",(function(){return u})),r.d(e,\"c\",(function(){return f}));var a=i().mark(f);function o(t){if(void 0===t)return!1;if(\"function\"!=typeof t)throw new TypeError(\"Callback must be a function\");return!0}function s(t,e){if(\"string\"==typeof t&&(t=new Error(t)),\"function\"==typeof e)return e.call(this,t);throw t}function u(t,e,r,n,i,a){e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i);for(var o=r;o<r+i;o++)for(var s=e;s<e+n;s++){var u=t.bitmap.width*o+s<<2;a.call(t,s,o,u)}return t}function f(t,e,r,n,o){var s,u,f;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e=Math.round(e),r=Math.round(r),n=Math.round(n),o=Math.round(o),s=r;case 5:if(!(s<r+o)){i.next=17;break}u=e;case 7:if(!(u<e+n)){i.next=14;break}return f=t.bitmap.width*s+u<<2,i.next=11,{x:u,y:s,idx:f,image:t};case 11:u++,i.next=7;break;case 14:s++,i.next=5;break;case 17:case\"end\":return i.stop()}}),a)}},,function(t,e,r){\"use strict\";(function(t){var n=r(120),i=r(67),a=r(121);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(o()<e)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if(\"number\"==typeof t){if(\"string\"==typeof e)throw new Error(\"If encoding is specified then the first argument must be a string\");return h(this,t)}return f(this,t,e,r)}function f(t,e,r,n){if(\"number\"==typeof e)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError(\"'offset' is out of bounds\");if(e.byteLength<r+(n||0))throw new RangeError(\"'length' is out of bounds\");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=l(t,e);return t}(t,e,r,n):\"string\"==typeof e?function(t,e,r){\"string\"==typeof r&&\"\"!==r||(r=\"utf8\");if(!u.isEncoding(r))throw new TypeError('\"encoding\" must be a valid string encoding');var n=0|d(e,r);t=s(t,n);var i=t.write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|p(e.length);return 0===(t=s(t,r)).length||e.copy(t,0,0,r),t}if(e){if(\"undefined\"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||\"length\"in e)return\"number\"!=typeof e.length||(n=e.length)!=n?s(t,0):l(t,e);if(\"Buffer\"===e.type&&a(e.data))return l(t,e.data)}var n;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(t,e)}function c(t){if(\"number\"!=typeof t)throw new TypeError('\"size\" argument must be a number');if(t<0)throw new RangeError('\"size\" argument must not be negative')}function h(t,e){if(c(e),t=s(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function l(t,e){var r=e.length<0?0:0|p(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=o())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+o().toString(16)+\" bytes\");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;\"string\"!=typeof t&&(t=\"\"+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":case void 0:return U(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return G(t).length;default:if(n)return U(t).length;e=(\"\"+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(e>>>=0))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return C(this,e,r);case\"utf8\":case\"utf-8\":return A(this,e,r);case\"ascii\":return M(this,e,r);case\"latin1\":case\"binary\":return F(this,e,r);case\"base64\":return k(this,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return B(this,e,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,i){if(0===t.length)return-1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if(\"string\"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if(\"number\"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError(\"val must be string, number or Buffer\")}function g(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function f(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var c=-1;for(a=r;a<s;a++)if(f(t,a)===f(e,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var h=!0,l=0;l<u;l++)if(f(t,a+l)!==f(e,l)){h=!1;break}if(h)return a}return-1}function v(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;if(a%2!=0)throw new TypeError(\"Invalid hex string\");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[r+o]=s}return o}function w(t,e,r,n){return H(U(e,t.length-r),t,r,n)}function _(t,e,r,n){return H(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return _(t,e,r,n)}function E(t,e,r,n){return H(G(e),t,r,n)}function D(t,e,r,n){return H(function(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,u,f=t[i],c=null,h=f>239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(a=t[i+1]))&&(u=(31&f)<<6|63&a)>127&&(c=u);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(u=(15&f)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&f)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);var r=\"\",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=S));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&\"function\"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=o(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return f(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return c(e),e<=0?s(t,e):void 0!==r?\"string\"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError(\"Arguments must be Buffers\");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(t,e){if(!a(t))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(!u.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?\"\":0===arguments.length?A(this,0,t):m.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t=\"\",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString(\"hex\",0,r).match(/.{2}/g).join(\" \"),this.length>r&&(t+=\" ... \")),\"<Buffer \"+t+\">\"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError(\"out of range index\");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),f=this.slice(n,i),c=t.slice(e,r),h=0;h<s;++h)if(f[h]!==c[h]){a=f[h],o=c[h];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n=\"utf8\",r=this.length,e=0;else if(void 0===r&&\"string\"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");e|=0,isFinite(r)?(r|=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var a=!1;;)switch(n){case\"hex\":return v(this,t,e,r);case\"utf8\":case\"utf-8\":return w(this,t,e,r);case\"ascii\":return _(this,t,e,r);case\"latin1\":case\"binary\":return x(this,t,e,r);case\"base64\":return E(this,t,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return D(this,t,e,r);default:if(a)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function M(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function F(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function C(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i=\"\",a=e;a<r;++a)i+=z(t[a]);return i}function B(t,e,r){for(var n=t.slice(e,r),i=\"\",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function O(t,e,r){if(t%1!=0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>r)throw new RangeError(\"Trying to access beyond buffer length\")}function I(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('\"value\" argument is out of bounds');if(r+n>t.length)throw new RangeError(\"Index out of range\")}function T(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-r,2);i<a;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function P(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-r,4);i<a;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function L(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function N(t,e,r,n,a){return a||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function j(t,e,r,n,a){return a||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||I(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||I(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):P(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);I(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o|0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);I(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o|0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):P(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return j(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return j(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},u.prototype.fill=function(t,e,r,n){if(\"string\"==typeof t){if(\"string\"==typeof e?(n=e,e=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&\"string\"!=typeof n)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!u.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n)}else\"number\"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError(\"Out of range index\");if(r<=e)return this;var a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),\"number\"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=u.isBuffer(t)?t:U(new u(t,n).toString()),s=o.length;for(a=0;a<r-e;++a)this[a+e]=o[a%s]}return this};var R=/[^+\\/0-9A-Za-z-_]/g;function z(t){return t<16?\"0\"+t.toString(16):t.toString(16)}function U(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function G(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\\s+|\\s+$/g,\"\")}(t).replace(R,\"\")).length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t}(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(10))},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return Cr}));var n=r(4),i=r(253),a=r(115),o=r(2),s=r(66);function u(t){let e=t.length;for(;--e>=0;)t[e]=0}const f=256,c=286,h=30,l=15,p=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),d=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),m=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),y=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),b=new Array(576);u(b);const g=new Array(60);u(g);const v=new Array(512);u(v);const w=new Array(256);u(w);const _=new Array(29);u(_);const x=new Array(h);function E(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}let D,k,A;function S(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}u(x);const M=t=>t<256?v[t]:v[256+(t>>>7)],F=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},C=(t,e,r)=>{t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,F(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)},B=(t,e,r)=>{C(t,r[2*e],r[2*e+1])},O=(t,e)=>{let r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1},I=(t,e,r)=>{const n=new Array(16);let i,a,o=0;for(i=1;i<=l;i++)o=o+r[i-1]<<1,n[i]=o;for(a=0;a<=e;a++){let e=t[2*a+1];0!==e&&(t[2*a]=O(n[e]++,e))}},T=t=>{let e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},P=t=>{t.bi_valid>8?F(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},L=(t,e,r,n)=>{const i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]},N=(t,e,r)=>{const n=t.heap[r];let i=r<<1;for(;i<=t.heap_len&&(i<t.heap_len&&L(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!L(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n},j=(t,e,r)=>{let n,i,a,o,s=0;if(0!==t.sym_next)do{n=255&t.pending_buf[t.sym_buf+s++],n+=(255&t.pending_buf[t.sym_buf+s++])<<8,i=t.pending_buf[t.sym_buf+s++],0===n?B(t,i,e):(a=w[i],B(t,a+f+1,e),o=p[a],0!==o&&(i-=_[a],C(t,i,o)),n--,a=M(n),B(t,a,r),o=d[a],0!==o&&(n-=x[a],C(t,n,o)))}while(s<t.sym_next);B(t,256,e)},R=(t,e)=>{const r=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,a=e.stat_desc.elems;let o,s,u,f=-1;for(t.heap_len=0,t.heap_max=573,o=0;o<a;o++)0!==r[2*o]?(t.heap[++t.heap_len]=f=o,t.depth[o]=0):r[2*o+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=f<2?++f:0,r[2*u]=1,t.depth[u]=0,t.opt_len--,i&&(t.static_len-=n[2*u+1]);for(e.max_code=f,o=t.heap_len>>1;o>=1;o--)N(t,r,o);u=a;do{o=t.heap[1],t.heap[1]=t.heap[t.heap_len--],N(t,r,1),s=t.heap[1],t.heap[--t.heap_max]=o,t.heap[--t.heap_max]=s,r[2*u]=r[2*o]+r[2*s],t.depth[u]=(t.depth[o]>=t.depth[s]?t.depth[o]:t.depth[s])+1,r[2*o+1]=r[2*s+1]=u,t.heap[1]=u++,N(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const r=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,a=e.stat_desc.has_stree,o=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,u=e.stat_desc.max_length;let f,c,h,p,d,m,y=0;for(p=0;p<=l;p++)t.bl_count[p]=0;for(r[2*t.heap[t.heap_max]+1]=0,f=t.heap_max+1;f<573;f++)c=t.heap[f],p=r[2*r[2*c+1]+1]+1,p>u&&(p=u,y++),r[2*c+1]=p,c>n||(t.bl_count[p]++,d=0,c>=s&&(d=o[c-s]),m=r[2*c],t.opt_len+=m*(p+d),a&&(t.static_len+=m*(i[2*c+1]+d)));if(0!==y){do{for(p=u-1;0===t.bl_count[p];)p--;t.bl_count[p]--,t.bl_count[p+1]+=2,t.bl_count[u]--,y-=2}while(y>0);for(p=u;0!==p;p--)for(c=t.bl_count[p];0!==c;)h=t.heap[--f],h>n||(r[2*h+1]!==p&&(t.opt_len+=(p-r[2*h+1])*r[2*h],r[2*h+1]=p),c--)}})(t,e),I(r,f,t.bl_count)},z=(t,e,r)=>{let n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<f?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4))},U=(t,e,r)=>{let n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<f)do{B(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(B(t,i,t.bl_tree),s--),B(t,16,t.bl_tree),C(t,s-3,2)):s<=10?(B(t,17,t.bl_tree),C(t,s-3,3)):(B(t,18,t.bl_tree),C(t,s-11,7));s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4)}};let G=!1;const H=(t,e,r,n)=>{C(t,0+(n?1:0),3),P(t),F(t,r),F(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r};var Z=(t,e,r,n)=>{let i,a,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<f;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),o=(t=>{let e;for(z(t,t.dyn_ltree,t.l_desc.max_code),z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*y[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),i=t.opt_len+3+7>>>3,a=t.static_len+3+7>>>3,a<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?H(t,e,r,n):4===t.strategy||a===i?(C(t,2+(n?1:0),3),j(t,b,g)):(C(t,4+(n?1:0),3),((t,e,r,n)=>{let i;for(C(t,e-257,5),C(t,r-1,5),C(t,n-4,4),i=0;i<n;i++)C(t,t.bl_tree[2*y[i]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,r-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),j(t,t.dyn_ltree,t.dyn_dtree)),T(t),n&&P(t)},q={_tr_init:t=>{G||((()=>{let t,e,r,n,i;const a=new Array(16);for(r=0,n=0;n<28;n++)for(_[n]=r,t=0;t<1<<p[n];t++)w[r++]=n;for(w[r-1]=n,i=0,n=0;n<16;n++)for(x[n]=i,t=0;t<1<<d[n];t++)v[i++]=n;for(i>>=7;n<h;n++)for(x[n]=i<<7,t=0;t<1<<d[n]-7;t++)v[256+i++]=n;for(e=0;e<=l;e++)a[e]=0;for(t=0;t<=143;)b[2*t+1]=8,t++,a[8]++;for(;t<=255;)b[2*t+1]=9,t++,a[9]++;for(;t<=279;)b[2*t+1]=7,t++,a[7]++;for(;t<=287;)b[2*t+1]=8,t++,a[8]++;for(I(b,287,a),t=0;t<h;t++)g[2*t+1]=5,g[2*t]=O(t,5);D=new E(b,p,257,c,l),k=new E(g,d,0,h,l),A=new E(new Array(0),m,0,19,7)})(),G=!0),t.l_desc=new S(t.dyn_ltree,D),t.d_desc=new S(t.dyn_dtree,k),t.bl_desc=new S(t.bl_tree,A),t.bi_buf=0,t.bi_valid=0,T(t)},_tr_stored_block:H,_tr_flush_block:Z,_tr_tally:(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(w[r]+f+1)]++,t.dyn_dtree[2*M(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{C(t,2,3),B(t,256,b),(t=>{16===t.bi_valid?(F(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var W=(t,e,r,n)=>{let i=65535&t,a=t>>>16&65535,o=0;for(;0!==r;){o=r>2e3?2e3:r,r-=o;do{i=i+e[n++]|0,a=a+i|0}while(--o);i%=65521,a%=65521}return i|a<<16};const Y=new Uint32Array((()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e})());var V=(t,e,r,n)=>{const i=Y,a=n+r;t^=-1;for(let r=n;r<a;r++)t=t>>>8^i[255&(t^e[r])];return~t},X={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"},J={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:K,_tr_stored_block:Q,_tr_flush_block:$,_tr_tally:tt,_tr_align:et}=q,{Z_NO_FLUSH:rt,Z_PARTIAL_FLUSH:nt,Z_FULL_FLUSH:it,Z_FINISH:at,Z_BLOCK:ot,Z_OK:st,Z_STREAM_END:ut,Z_STREAM_ERROR:ft,Z_DATA_ERROR:ct,Z_BUF_ERROR:ht,Z_DEFAULT_COMPRESSION:lt,Z_FILTERED:pt,Z_HUFFMAN_ONLY:dt,Z_RLE:mt,Z_FIXED:yt,Z_DEFAULT_STRATEGY:bt,Z_UNKNOWN:gt,Z_DEFLATED:vt}=J,wt=258,_t=262,xt=42,Et=113,Dt=666,kt=(t,e)=>(t.msg=X[e],e),At=t=>2*t-(t>4?9:0),St=t=>{let e=t.length;for(;--e>=0;)t[e]=0},Mt=t=>{let e,r,n,i=t.w_size;e=t.hash_size,n=e;do{r=t.head[--n],t.head[n]=r>=i?r-i:0}while(--e);e=i,n=e;do{r=t.prev[--n],t.prev[n]=r>=i?r-i:0}while(--e)};let Ft=(t,e,r)=>(e<<t.hash_shift^r)&t.hash_mask;const Ct=t=>{const e=t.state;let r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))},Bt=(t,e)=>{$(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Ct(t.strm)},Ot=(t,e)=>{t.pending_buf[t.pending++]=e},It=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Tt=(t,e,r,n)=>{let i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),1===t.state.wrap?t.adler=W(t.adler,e,i,r):2===t.state.wrap&&(t.adler=V(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},Pt=(t,e)=>{let r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match;const u=t.strstart>t.w_size-_t?t.strstart-(t.w_size-_t):0,f=t.window,c=t.w_mask,h=t.prev,l=t.strstart+wt;let p=f[a+o-1],d=f[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(r=e,f[r+o]===d&&f[r+o-1]===p&&f[r]===f[a]&&f[++r]===f[a+1]){a+=2,r++;do{}while(f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&a<l);if(n=wt-(l-a),a=l-wt,n>o){if(t.match_start=e,o=n,n>=s)break;p=f[a+o-1],d=f[a+o]}}}while((e=h[e&c])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead},Lt=t=>{const e=t.w_size;let r,n,i;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-_t)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),Mt(t),n+=e),0===t.strm.avail_in)break;if(r=Tt(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=r,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Ft(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Ft(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<_t&&0!==t.strm.avail_in)},Nt=(t,e)=>{let r,n,i,a=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,o=0,s=t.strm.avail_in;do{if(r=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,n=t.strstart-t.block_start,r>n+t.strm.avail_in&&(r=n+t.strm.avail_in),r>i&&(r=i),r<a&&(0===r&&e!==at||e===rt||r!==n+t.strm.avail_in))break;o=e===at&&r===n+t.strm.avail_in?1:0,Q(t,0,0,o),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,Ct(t.strm),n&&(n>r&&(n=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,r-=n),r&&(Tt(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(0===o);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),o?4:e!==rt&&e!==at&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(Tt(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,a=i>t.w_size?t.w_size:i,n=t.strstart-t.block_start,(n>=a||(n||e===at)&&e!==rt&&0===t.strm.avail_in&&n<=i)&&(r=n>i?i:n,o=e===at&&0===t.strm.avail_in&&r===n?1:0,Q(t,t.block_start,r,o),t.block_start+=r,Ct(t.strm)),o?3:1)},jt=(t,e)=>{let r,n;for(;;){if(t.lookahead<_t){if(Lt(t),t.lookahead<_t&&e===rt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Ft(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-_t&&(t.match_length=Pt(t,r)),t.match_length>=3)if(n=tt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Ft(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Ft(t,t.ins_h,t.window[t.strstart+1]);else n=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Bt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===at?(Bt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Bt(t,!1),0===t.strm.avail_out)?1:2},Rt=(t,e)=>{let r,n,i;for(;;){if(t.lookahead<_t){if(Lt(t),t.lookahead<_t&&e===rt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Ft(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-_t&&(t.match_length=Pt(t,r),t.match_length<=5&&(t.strategy===pt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=tt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=Ft(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Bt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(n=tt(t,0,t.window[t.strstart-1]),n&&Bt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=tt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===at?(Bt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Bt(t,!1),0===t.strm.avail_out)?1:2};function zt(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}const Ut=[new zt(0,0,0,0,Nt),new zt(4,4,8,4,jt),new zt(4,5,16,8,jt),new zt(4,6,32,32,jt),new zt(4,4,16,16,Rt),new zt(8,16,32,32,Rt),new zt(8,16,128,128,Rt),new zt(8,32,128,256,Rt),new zt(32,128,258,1024,Rt),new zt(32,258,258,4096,Rt)];function Gt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=vt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),St(this.dyn_ltree),St(this.dyn_dtree),St(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),St(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),St(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ht=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==xt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==Et&&e.status!==Dt?1:0},Zt=t=>{if(Ht(t))return kt(t,ft);t.total_in=t.total_out=0,t.data_type=gt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?xt:Et,t.adler=2===e.wrap?0:1,e.last_flush=-2,K(e),st},qt=t=>{const e=Zt(t);var r;return e===st&&((r=t.state).window_size=2*r.w_size,St(r.head),r.max_lazy_match=Ut[r.level].max_lazy,r.good_match=Ut[r.level].good_length,r.nice_match=Ut[r.level].nice_length,r.max_chain_length=Ut[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,r.ins_h=0),e},Wt=(t,e,r,n,i,a)=>{if(!t)return ft;let o=1;if(e===lt&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>9||r!==vt||n<8||n>15||e<0||e>9||a<0||a>yt||8===n&&1!==o)return kt(t,ft);8===n&&(n=9);const s=new Gt;return t.state=s,s.strm=t,s.status=xt,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=a,s.method=r,qt(t)};var Yt={deflateInit:(t,e)=>Wt(t,e,vt,15,8,bt),deflateInit2:Wt,deflateReset:qt,deflateResetKeep:Zt,deflateSetHeader:(t,e)=>Ht(t)||2!==t.state.wrap?ft:(t.state.gzhead=e,st),deflate:(t,e)=>{if(Ht(t)||e>ot||e<0)return t?kt(t,ft):ft;const r=t.state;if(!t.output||0!==t.avail_in&&!t.input||r.status===Dt&&e!==at)return kt(t,0===t.avail_out?ht:ft);const n=r.last_flush;if(r.last_flush=e,0!==r.pending){if(Ct(t),0===t.avail_out)return r.last_flush=-1,st}else if(0===t.avail_in&&At(e)<=At(n)&&e!==at)return kt(t,ht);if(r.status===Dt&&0!==t.avail_in)return kt(t,ht);if(r.status===xt&&0===r.wrap&&(r.status=Et),r.status===xt){let e=vt+(r.w_bits-8<<4)<<8,n=-1;if(n=r.strategy>=dt||r.level<2?0:r.level<6?1:6===r.level?2:3,e|=n<<6,0!==r.strstart&&(e|=32),e+=31-e%31,It(r,e),0!==r.strstart&&(It(r,t.adler>>>16),It(r,65535&t.adler)),t.adler=1,r.status=Et,Ct(t),0!==r.pending)return r.last_flush=-1,st}if(57===r.status)if(t.adler=0,Ot(r,31),Ot(r,139),Ot(r,8),r.gzhead)Ot(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Ot(r,255&r.gzhead.time),Ot(r,r.gzhead.time>>8&255),Ot(r,r.gzhead.time>>16&255),Ot(r,r.gzhead.time>>24&255),Ot(r,9===r.level?2:r.strategy>=dt||r.level<2?4:0),Ot(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Ot(r,255&r.gzhead.extra.length),Ot(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=V(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(Ot(r,0),Ot(r,0),Ot(r,0),Ot(r,0),Ot(r,0),Ot(r,9===r.level?2:r.strategy>=dt||r.level<2?4:0),Ot(r,3),r.status=Et,Ct(t),0!==r.pending)return r.last_flush=-1,st;if(69===r.status){if(r.gzhead.extra){let e=r.pending,n=(65535&r.gzhead.extra.length)-r.gzindex;for(;r.pending+n>r.pending_buf_size;){let i=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+i),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>e&&(t.adler=V(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex+=i,Ct(t),0!==r.pending)return r.last_flush=-1,st;e=0,n-=i}let i=new Uint8Array(r.gzhead.extra);r.pending_buf.set(i.subarray(r.gzindex,r.gzindex+n),r.pending),r.pending+=n,r.gzhead.hcrc&&r.pending>e&&(t.adler=V(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex=0}r.status=73}if(73===r.status){if(r.gzhead.name){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n)),Ct(t),0!==r.pending)return r.last_flush=-1,st;n=0}e=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Ot(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n)),Ct(t),0!==r.pending)return r.last_flush=-1,st;n=0}e=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Ot(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=V(t.adler,r.pending_buf,r.pending-n,n))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(Ct(t),0!==r.pending))return r.last_flush=-1,st;Ot(r,255&t.adler),Ot(r,t.adler>>8&255),t.adler=0}if(r.status=Et,Ct(t),0!==r.pending)return r.last_flush=-1,st}if(0!==t.avail_in||0!==r.lookahead||e!==rt&&r.status!==Dt){let n=0===r.level?Nt(r,e):r.strategy===dt?((t,e)=>{let r;for(;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===rt)return 1;break}if(t.match_length=0,r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Bt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===at?(Bt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Bt(t,!1),0===t.strm.avail_out)?1:2})(r,e):r.strategy===mt?((t,e)=>{let r,n,i,a;const o=t.window;for(;;){if(t.lookahead<=wt){if(Lt(t),t.lookahead<=wt&&e===rt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=t.strstart-1,n=o[i],n===o[++i]&&n===o[++i]&&n===o[++i])){a=t.strstart+wt;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);t.match_length=wt-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=tt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Bt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===at?(Bt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Bt(t,!1),0===t.strm.avail_out)?1:2})(r,e):Ut[r.level].func(r,e);if(3!==n&&4!==n||(r.status=Dt),1===n||3===n)return 0===t.avail_out&&(r.last_flush=-1),st;if(2===n&&(e===nt?et(r):e!==ot&&(Q(r,0,0,!1),e===it&&(St(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Ct(t),0===t.avail_out))return r.last_flush=-1,st}return e!==at?st:r.wrap<=0?ut:(2===r.wrap?(Ot(r,255&t.adler),Ot(r,t.adler>>8&255),Ot(r,t.adler>>16&255),Ot(r,t.adler>>24&255),Ot(r,255&t.total_in),Ot(r,t.total_in>>8&255),Ot(r,t.total_in>>16&255),Ot(r,t.total_in>>24&255)):(It(r,t.adler>>>16),It(r,65535&t.adler)),Ct(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?st:ut)},deflateEnd:t=>{if(Ht(t))return ft;const e=t.state.status;return t.state=null,e===Et?kt(t,ct):st},deflateSetDictionary:(t,e)=>{let r=e.length;if(Ht(t))return ft;const n=t.state,i=n.wrap;if(2===i||1===i&&n.status!==xt||n.lookahead)return ft;if(1===i&&(t.adler=W(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){0===i&&(St(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(r-n.w_size,r),0),e=t,r=n.w_size}const a=t.avail_in,o=t.next_in,s=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do{n.ins_h=Ft(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++}while(--e);n.strstart=t,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=o,t.input=s,t.avail_in=a,n.wrap=i,st},deflateInfo:\"pako deflate (from Nodeca project)\"};const Vt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Xt={assign:function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if(\"object\"!=typeof r)throw new TypeError(r+\"must be non-object\");for(const e in r)Vt(r,e)&&(t[e]=r[e])}}return t},flattenChunks:t=>{let e=0;for(let r=0,n=t.length;r<n;r++)e+=t[r].length;const r=new Uint8Array(e);for(let e=0,n=0,i=t.length;e<i;e++){let i=t[e];r.set(i,n),n+=i.length}return r}};let Jt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Jt=!1}const Kt=new Uint8Array(256);for(let t=0;t<256;t++)Kt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Kt[254]=Kt[254]=1;var Qt={string2buf:t=>{if(\"function\"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,r,n,i,a,o=t.length,s=0;for(i=0;i<o;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<o&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(s),a=0,i=0;a<s;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<o&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},buf2string:(t,e)=>{const r=e||t.length;if(\"function\"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let n,i;const a=new Array(2*r);for(i=0,n=0;n<r;){let e=t[n++];if(e<128){a[i++]=e;continue}let o=Kt[e];if(o>4)a[i++]=65533,n+=o-1;else{for(e&=2===o?31:3===o?15:7;o>1&&n<r;)e=e<<6|63&t[n++],o--;o>1?a[i++]=65533:e<65536?a[i++]=e:(e-=65536,a[i++]=55296|e>>10&1023,a[i++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Jt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r=\"\";for(let n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r})(a,i)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let r=e-1;for(;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Kt[t[r]]>e?r:e}};var $t=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0};const te=Object.prototype.toString,{Z_NO_FLUSH:ee,Z_SYNC_FLUSH:re,Z_FULL_FLUSH:ne,Z_FINISH:ie,Z_OK:ae,Z_STREAM_END:oe,Z_DEFAULT_COMPRESSION:se,Z_DEFAULT_STRATEGY:ue,Z_DEFLATED:fe}=J;function ce(t){this.options=Xt.assign({level:se,method:fe,chunkSize:16384,windowBits:15,memLevel:8,strategy:ue},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new $t,this.strm.avail_out=0;let r=Yt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==ae)throw new Error(X[r]);if(e.header&&Yt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t=\"string\"==typeof e.dictionary?Qt.string2buf(e.dictionary):\"[object ArrayBuffer]\"===te.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,r=Yt.deflateSetDictionary(this.strm,t),r!==ae)throw new Error(X[r]);this._dict_set=!0}}function he(t,e){const r=new ce(e);if(r.push(t,!0),r.err)throw r.msg||X[r.err];return r.result}ce.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize;let i,a;if(this.ended)return!1;for(a=e===~~e?e:!0===e?ie:ee,\"string\"==typeof t?r.input=Qt.string2buf(t):\"[object ArrayBuffer]\"===te.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(a===re||a===ne)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(i=Yt.deflate(r,a),i===oe)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=Yt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===ae;if(0!==r.avail_out){if(a>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},ce.prototype.onData=function(t){this.chunks.push(t)},ce.prototype.onEnd=function(t){t===ae&&(this.result=Xt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var le={Deflate:ce,deflate:he,deflateRaw:function(t,e){return(e=e||{}).raw=!0,he(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,he(t,e)},constants:J};const pe=16209;var de=function(t,e){let r,n,i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k;const A=t.state;r=t.next_in,D=t.input,n=r+(t.avail_in-5),i=t.next_out,k=t.output,a=i-(e-t.avail_out),o=i+(t.avail_out-257),s=A.dmax,u=A.wsize,f=A.whave,c=A.wnext,h=A.window,l=A.hold,p=A.bits,d=A.lencode,m=A.distcode,y=(1<<A.lenbits)-1,b=(1<<A.distbits)-1;t:do{p<15&&(l+=D[r++]<<p,p+=8,l+=D[r++]<<p,p+=8),g=d[l&y];e:for(;;){if(v=g>>>24,l>>>=v,p-=v,v=g>>>16&255,0===v)k[i++]=65535&g;else{if(!(16&v)){if(64&v){if(32&v){A.mode=16191;break t}t.msg=\"invalid literal/length code\",A.mode=pe;break t}g=d[(65535&g)+(l&(1<<v)-1)];continue e}for(w=65535&g,v&=15,v&&(p<v&&(l+=D[r++]<<p,p+=8),w+=l&(1<<v)-1,l>>>=v,p-=v),p<15&&(l+=D[r++]<<p,p+=8,l+=D[r++]<<p,p+=8),g=m[l&b];;){if(v=g>>>24,l>>>=v,p-=v,v=g>>>16&255,16&v){if(_=65535&g,v&=15,p<v&&(l+=D[r++]<<p,p+=8,p<v&&(l+=D[r++]<<p,p+=8)),_+=l&(1<<v)-1,_>s){t.msg=\"invalid distance too far back\",A.mode=pe;break t}if(l>>>=v,p-=v,v=i-a,_>v){if(v=_-v,v>f&&A.sane){t.msg=\"invalid distance too far back\",A.mode=pe;break t}if(x=0,E=h,0===c){if(x+=u-v,v<w){w-=v;do{k[i++]=h[x++]}while(--v);x=i-_,E=k}}else if(c<v){if(x+=u+c-v,v-=c,v<w){w-=v;do{k[i++]=h[x++]}while(--v);if(x=0,c<w){v=c,w-=v;do{k[i++]=h[x++]}while(--v);x=i-_,E=k}}}else if(x+=c-v,v<w){w-=v;do{k[i++]=h[x++]}while(--v);x=i-_,E=k}for(;w>2;)k[i++]=E[x++],k[i++]=E[x++],k[i++]=E[x++],w-=3;w&&(k[i++]=E[x++],w>1&&(k[i++]=E[x++]))}else{x=i-_;do{k[i++]=k[x++],k[i++]=k[x++],k[i++]=k[x++],w-=3}while(w>2);w&&(k[i++]=k[x++],w>1&&(k[i++]=k[x++]))}break}if(64&v){t.msg=\"invalid distance code\",A.mode=pe;break t}g=m[(65535&g)+(l&(1<<v)-1)]}}break}}while(r<n&&i<o);w=p>>3,r-=w,p-=w<<3,l&=(1<<p)-1,t.next_in=r,t.next_out=i,t.avail_in=r<n?n-r+5:5-(r-n),t.avail_out=i<o?o-i+257:257-(i-o),A.hold=l,A.bits=p};const me=15,ye=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),be=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ge=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ve=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var we=(t,e,r,n,i,a,o,s)=>{const u=s.bits;let f,c,h,l,p,d,m=0,y=0,b=0,g=0,v=0,w=0,_=0,x=0,E=0,D=0,k=null;const A=new Uint16Array(16),S=new Uint16Array(16);let M,F,C,B=null;for(m=0;m<=me;m++)A[m]=0;for(y=0;y<n;y++)A[e[r+y]]++;for(v=u,g=me;g>=1&&0===A[g];g--);if(v>g&&(v=g),0===g)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(b=1;b<g&&0===A[b];b++);for(v<b&&(v=b),x=1,m=1;m<=me;m++)if(x<<=1,x-=A[m],x<0)return-1;if(x>0&&(0===t||1!==g))return-1;for(S[1]=0,m=1;m<me;m++)S[m+1]=S[m]+A[m];for(y=0;y<n;y++)0!==e[r+y]&&(o[S[e[r+y]]++]=y);if(0===t?(k=B=o,d=20):1===t?(k=ye,B=be,d=257):(k=ge,B=ve,d=0),D=0,y=0,m=b,p=a,w=v,_=0,h=-1,E=1<<v,l=E-1,1===t&&E>852||2===t&&E>592)return 1;for(;;){M=m-_,o[y]+1<d?(F=0,C=o[y]):o[y]>=d?(F=B[o[y]-d],C=k[o[y]-d]):(F=96,C=0),f=1<<m-_,c=1<<w,b=c;do{c-=f,i[p+(D>>_)+c]=M<<24|F<<16|C}while(0!==c);for(f=1<<m-1;D&f;)f>>=1;if(0!==f?(D&=f-1,D+=f):D=0,y++,0==--A[m]){if(m===g)break;m=e[r+o[y]]}if(m>v&&(D&l)!==h){for(0===_&&(_=v),p+=b,w=m-_,x=1<<w;w+_<g&&(x-=A[w+_],!(x<=0));)w++,x<<=1;if(E+=1<<w,1===t&&E>852||2===t&&E>592)return 1;h=D&l,i[h]=v<<24|w<<16|p-a}}return 0!==D&&(i[p+D]=m-_<<24|64<<16),s.bits=v,0};const{Z_FINISH:_e,Z_BLOCK:xe,Z_TREES:Ee,Z_OK:De,Z_STREAM_END:ke,Z_NEED_DICT:Ae,Z_STREAM_ERROR:Se,Z_DATA_ERROR:Me,Z_MEM_ERROR:Fe,Z_BUF_ERROR:Ce,Z_DEFLATED:Be}=J,Oe=16180,Ie=16190,Te=16191,Pe=16192,Le=16194,Ne=16199,je=16200,Re=16206,ze=16209,Ue=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const He=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Oe||e.mode>16211?1:0},Ze=t=>{if(He(t))return Se;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=Oe,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,De},qe=t=>{if(He(t))return Se;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,Ze(t)},We=(t,e)=>{let r;if(He(t))return Se;const n=t.state;return e<0?(r=0,e=-e):(r=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Se:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,qe(t))},Ye=(t,e)=>{if(!t)return Se;const r=new Ge;t.state=r,r.strm=t,r.window=null,r.mode=Oe;const n=We(t,e);return n!==De&&(t.state=null),n};let Ve,Xe,Je=!0;const Ke=t=>{if(Je){Ve=new Int32Array(512),Xe=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(we(1,t.lens,0,288,Ve,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;we(2,t.lens,0,32,Xe,0,t.work,{bits:5}),Je=!1}t.lencode=Ve,t.lenbits=9,t.distcode=Xe,t.distbits=5},Qe=(t,e,r,n)=>{let i;const a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),n>=a.wsize?(a.window.set(e.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>n&&(i=n),a.window.set(e.subarray(r-n,r-n+i),a.wnext),(n-=i)?(a.window.set(e.subarray(r-n,r),0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0};var $e={inflateReset:qe,inflateReset2:We,inflateResetKeep:Ze,inflateInit:t=>Ye(t,15),inflateInit2:Ye,inflate:(t,e)=>{let r,n,i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D=0;const k=new Uint8Array(4);let A,S;const M=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(He(t)||!t.output||!t.input&&0!==t.avail_in)return Se;r=t.state,r.mode===Te&&(r.mode=Pe),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,f=r.hold,c=r.bits,h=s,l=u,E=De;t:for(;;)switch(r.mode){case Oe:if(0===r.wrap){r.mode=Pe;break}for(;c<16;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(2&r.wrap&&35615===f){0===r.wbits&&(r.wbits=15),r.check=0,k[0]=255&f,k[1]=f>>>8&255,r.check=V(r.check,k,2,0),f=0,c=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&f)<<8)+(f>>8))%31){t.msg=\"incorrect header check\",r.mode=ze;break}if((15&f)!==Be){t.msg=\"unknown compression method\",r.mode=ze;break}if(f>>>=4,c-=4,x=8+(15&f),0===r.wbits&&(r.wbits=x),x>15||x>r.wbits){t.msg=\"invalid window size\",r.mode=ze;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=512&f?16189:Te,f=0,c=0;break;case 16181:for(;c<16;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(r.flags=f,(255&r.flags)!==Be){t.msg=\"unknown compression method\",r.mode=ze;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=ze;break}r.head&&(r.head.text=f>>8&1),512&r.flags&&4&r.wrap&&(k[0]=255&f,k[1]=f>>>8&255,r.check=V(r.check,k,2,0)),f=0,c=0,r.mode=16182;case 16182:for(;c<32;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.head&&(r.head.time=f),512&r.flags&&4&r.wrap&&(k[0]=255&f,k[1]=f>>>8&255,k[2]=f>>>16&255,k[3]=f>>>24&255,r.check=V(r.check,k,4,0)),f=0,c=0,r.mode=16183;case 16183:for(;c<16;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.head&&(r.head.xflags=255&f,r.head.os=f>>8),512&r.flags&&4&r.wrap&&(k[0]=255&f,k[1]=f>>>8&255,r.check=V(r.check,k,2,0)),f=0,c=0,r.mode=16184;case 16184:if(1024&r.flags){for(;c<16;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.length=f,r.head&&(r.head.extra_len=f),512&r.flags&&4&r.wrap&&(k[0]=255&f,k[1]=f>>>8&255,r.check=V(r.check,k,2,0)),f=0,c=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&(p=r.length,p>s&&(p=s),p&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(a,a+p),x)),512&r.flags&&4&r.wrap&&(r.check=V(r.check,n,p,a)),s-=p,a+=p,r.length-=p),r.length))break t;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break t;p=0;do{x=n[a+p++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=V(r.check,n,p,a)),s-=p,a+=p,x)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===s)break t;p=0;do{x=n[a+p++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=V(r.check,n,p,a)),s-=p,a+=p,x)break t}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;c<16;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(4&r.wrap&&f!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=ze;break}f=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Te;break;case 16189:for(;c<32;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}t.adler=r.check=Ue(f),f=0,c=0,r.mode=Ie;case Ie:if(0===r.havedict)return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=f,r.bits=c,Ae;t.adler=r.check=1,r.mode=Te;case Te:if(e===xe||e===Ee)break t;case Pe:if(r.last){f>>>=7&c,c-=7&c,r.mode=Re;break}for(;c<3;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}switch(r.last=1&f,f>>>=1,c-=1,3&f){case 0:r.mode=16193;break;case 1:if(Ke(r),r.mode=Ne,e===Ee){f>>>=2,c-=2;break t}break;case 2:r.mode=16196;break;case 3:t.msg=\"invalid block type\",r.mode=ze}f>>>=2,c-=2;break;case 16193:for(f>>>=7&c,c-=7&c;c<32;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if((65535&f)!=(f>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=ze;break}if(r.length=65535&f,f=0,c=0,r.mode=Le,e===Ee)break t;case Le:r.mode=16195;case 16195:if(p=r.length,p){if(p>s&&(p=s),p>u&&(p=u),0===p)break t;i.set(n.subarray(a,a+p),o),s-=p,a+=p,u-=p,o+=p,r.length-=p;break}r.mode=Te;break;case 16196:for(;c<14;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(r.nlen=257+(31&f),f>>>=5,c-=5,r.ndist=1+(31&f),f>>>=5,c-=5,r.ncode=4+(15&f),f>>>=4,c-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=ze;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;c<3;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.lens[M[r.have++]]=7&f,f>>>=3,c-=3}for(;r.have<19;)r.lens[M[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},E=we(0,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,E){t.msg=\"invalid code lengths set\",r.mode=ze;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;D=r.lencode[f&(1<<r.lenbits)-1],y=D>>>24,b=D>>>16&255,g=65535&D,!(y<=c);){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(g<16)f>>>=y,c-=y,r.lens[r.have++]=g;else{if(16===g){for(S=y+2;c<S;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(f>>>=y,c-=y,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=ze;break}x=r.lens[r.have-1],p=3+(3&f),f>>>=2,c-=2}else if(17===g){for(S=y+3;c<S;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}f>>>=y,c-=y,x=0,p=3+(7&f),f>>>=3,c-=3}else{for(S=y+7;c<S;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}f>>>=y,c-=y,x=0,p=11+(127&f),f>>>=7,c-=7}if(r.have+p>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=ze;break}for(;p--;)r.lens[r.have++]=x}}if(r.mode===ze)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=ze;break}if(r.lenbits=9,A={bits:r.lenbits},E=we(1,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,E){t.msg=\"invalid literal/lengths set\",r.mode=ze;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},E=we(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,E){t.msg=\"invalid distances set\",r.mode=ze;break}if(r.mode=Ne,e===Ee)break t;case Ne:r.mode=je;case je:if(s>=6&&u>=258){t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=f,r.bits=c,de(t,l),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,f=r.hold,c=r.bits,r.mode===Te&&(r.back=-1);break}for(r.back=0;D=r.lencode[f&(1<<r.lenbits)-1],y=D>>>24,b=D>>>16&255,g=65535&D,!(y<=c);){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(b&&!(240&b)){for(v=y,w=b,_=g;D=r.lencode[_+((f&(1<<v+w)-1)>>v)],y=D>>>24,b=D>>>16&255,g=65535&D,!(v+y<=c);){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}f>>>=v,c-=v,r.back+=v}if(f>>>=y,c-=y,r.back+=y,r.length=g,0===b){r.mode=16205;break}if(32&b){r.back=-1,r.mode=Te;break}if(64&b){t.msg=\"invalid literal/length code\",r.mode=ze;break}r.extra=15&b,r.mode=16201;case 16201:if(r.extra){for(S=r.extra;c<S;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;D=r.distcode[f&(1<<r.distbits)-1],y=D>>>24,b=D>>>16&255,g=65535&D,!(y<=c);){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(!(240&b)){for(v=y,w=b,_=g;D=r.distcode[_+((f&(1<<v+w)-1)>>v)],y=D>>>24,b=D>>>16&255,g=65535&D,!(v+y<=c);){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}f>>>=v,c-=v,r.back+=v}if(f>>>=y,c-=y,r.back+=y,64&b){t.msg=\"invalid distance code\",r.mode=ze;break}r.offset=g,r.extra=15&b,r.mode=16203;case 16203:if(r.extra){for(S=r.extra;c<S;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}r.offset+=f&(1<<r.extra)-1,f>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=ze;break}r.mode=16204;case 16204:if(0===u)break t;if(p=l-u,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=ze;break}p>r.wnext?(p-=r.wnext,d=r.wsize-p):d=r.wnext-p,p>r.length&&(p=r.length),m=r.window}else m=i,d=o-r.offset,p=r.length;p>u&&(p=u),u-=p,r.length-=p;do{i[o++]=m[d++]}while(--p);0===r.length&&(r.mode=je);break;case 16205:if(0===u)break t;i[o++]=r.length,u--,r.mode=je;break;case Re:if(r.wrap){for(;c<32;){if(0===s)break t;s--,f|=n[a++]<<c,c+=8}if(l-=u,t.total_out+=l,r.total+=l,4&r.wrap&&l&&(t.adler=r.check=r.flags?V(r.check,i,l,o-l):W(r.check,i,l,o-l)),l=u,4&r.wrap&&(r.flags?f:Ue(f))!==r.check){t.msg=\"incorrect data check\",r.mode=ze;break}f=0,c=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;c<32;){if(0===s)break t;s--,f+=n[a++]<<c,c+=8}if(4&r.wrap&&f!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=ze;break}f=0,c=0}r.mode=16208;case 16208:E=ke;break t;case ze:E=Me;break t;case 16210:return Fe;default:return Se}return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=f,r.bits=c,(r.wsize||l!==t.avail_out&&r.mode<ze&&(r.mode<Re||e!==_e))&&Qe(t,t.output,t.next_out,l-t.avail_out),h-=t.avail_in,l-=t.avail_out,t.total_in+=h,t.total_out+=l,r.total+=l,4&r.wrap&&l&&(t.adler=r.check=r.flags?V(r.check,i,l,t.next_out-l):W(r.check,i,l,t.next_out-l)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Te?128:0)+(r.mode===Ne||r.mode===Le?256:0),(0===h&&0===l||e===_e)&&E===De&&(E=Ce),E},inflateEnd:t=>{if(He(t))return Se;let e=t.state;return e.window&&(e.window=null),t.state=null,De},inflateGetHeader:(t,e)=>{if(He(t))return Se;const r=t.state;return 2&r.wrap?(r.head=e,e.done=!1,De):Se},inflateSetDictionary:(t,e)=>{const r=e.length;let n,i,a;return He(t)?Se:(n=t.state,0!==n.wrap&&n.mode!==Ie?Se:n.mode===Ie&&(i=1,i=W(i,e,r,0),i!==n.check)?Me:(a=Qe(t,e,r,r),a?(n.mode=16210,Fe):(n.havedict=1,De)))},inflateInfo:\"pako inflate (from Nodeca project)\"};var tr=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1};const er=Object.prototype.toString,{Z_NO_FLUSH:rr,Z_FINISH:nr,Z_OK:ir,Z_STREAM_END:ar,Z_NEED_DICT:or,Z_STREAM_ERROR:sr,Z_DATA_ERROR:ur,Z_MEM_ERROR:fr}=J;function cr(t){this.options=Xt.assign({chunkSize:65536,windowBits:15,to:\"\"},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new $t,this.strm.avail_out=0;let r=$e.inflateInit2(this.strm,e.windowBits);if(r!==ir)throw new Error(X[r]);if(this.header=new tr,$e.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=Qt.string2buf(e.dictionary):\"[object ArrayBuffer]\"===er.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=$e.inflateSetDictionary(this.strm,e.dictionary),r!==ir)))throw new Error(X[r])}function hr(t,e){const r=new cr(e);if(r.push(t),r.err)throw r.msg||X[r.err];return r.result}cr.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(o=e===~~e?e:!0===e?nr:rr,\"[object ArrayBuffer]\"===er.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),a=$e.inflate(r,o),a===or&&i&&(a=$e.inflateSetDictionary(r,i),a===ir?a=$e.inflate(r,o):a===ur&&(a=or));r.avail_in>0&&a===ar&&r.state.wrap>0&&0!==t[r.next_in];)$e.inflateReset(r),a=$e.inflate(r,o);switch(a){case sr:case ur:case or:case fr:return this.onEnd(a),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||a===ar))if(\"string\"===this.options.to){let t=Qt.utf8border(r.output,r.next_out),e=r.next_out-t,i=Qt.buf2string(r.output,t);r.next_out=e,r.avail_out=n-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(a!==ir||0!==s){if(a===ar)return a=$e.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},cr.prototype.onData=function(t){this.chunks.push(t)},cr.prototype.onEnd=function(t){t===ir&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=Xt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var lr={Inflate:cr,inflate:hr,inflateRaw:function(t,e){return(e=e||{}).raw=!0,hr(t,e)},ungzip:hr,constants:J};const{Deflate:pr,deflate:dr,deflateRaw:mr,gzip:yr}=le,{Inflate:br,inflate:gr,inflateRaw:vr,ungzip:wr}=lr;var _r={Deflate:pr,deflate:dr,deflateRaw:mr,gzip:yr,Inflate:br,inflate:gr,inflateRaw:vr,ungzip:wr,constants:J};function xr(t){return xr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},xr(t)}function Er(t){return function(t){if(Array.isArray(t))return Dr(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Dr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dr(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Dr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kr(){kr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",s=a.asyncIterator||\"@@asyncIterator\",u=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),s=new C(n||[]);return i(o,\"_invoke\",{value:A(t,r,s)}),o}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var l=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function b(){}function g(){}function v(){}var w={};f(w,o,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(B([])));x&&x!==r&&n.call(x,o)&&(w=x);var E=v.prototype=b.prototype=Object.create(w);function D(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if(\"throw\"!==u.type){var f=u.arg,c=f.value;return c&&\"object\"==xr(c)&&n.call(c,\"__await\")?e.resolve(c.__await).then((function(t){r(\"next\",t,o,s)}),(function(t){r(\"throw\",t,o,s)})):e.resolve(c).then((function(t){f.value=t,o(f)}),(function(t){return r(\"throw\",t,o,s)}))}s(u.arg)}var a;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function A(e,r,n){var i=l;return function(a,o){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===l)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var f=h(e,r,n);if(\"normal\"===f.type){if(i=n.done?m:p,f.arg===y)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=m,n.method=\"throw\",n.arg=f.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var a=h(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[o];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(xr(e)+\" is not iterable\")}return g.prototype=v,i(E,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:g,configurable:!0}),g.displayName=f(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},D(k.prototype),f(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new k(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},D(E),f(E,u,\"Generator\"),f(E,o,(function(){return this})),f(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function Ar(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Sr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Ar(a,n,i,o,s,\"next\",t)}function s(t){Ar(a,n,i,o,s,\"throw\",t)}o(void 0)}))}}function Mr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Fr(n.key),n)}}function Fr(t){var e=function(t,e){if(\"object\"!=xr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=xr(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==xr(e)?e:e+\"\"}var Cr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t)}return e=t,r=null,u=[{key:\"Abcc\",value:(T=Sr(kr().mark((function t(e){return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t){chrome.storage.local.get(e,(function(r){return r&&r[e]?t(r[e]):t({})}))})));case 1:case\"end\":return t.stop()}}),t)}))),function(t){return T.apply(this,arguments)})},{key:\"wbeh\",value:(I=Sr(kr().mark((function t(e,r){var n;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={})[e]=r,t.next=4,chrome.storage.local.set(n);case 4:case\"end\":return t.stop()}}),t)}))),function(t,e){return I.apply(this,arguments)})},{key:\"Bi9dF\",value:(O=Sr(kr().mark((function t(e){var r,n,i,a,o=arguments;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:0,n=o.length>2&&void 0!==o[2]?o[2]:1,i=o.length>3?o[3]:void 0,a=Math.floor(Math.random()*r+e),n&&i&&(a=Math.max(a/n,i)),t.next=7,new Promise((function(t){setTimeout(t,a)}));case 7:return t.abrupt(\"return\",t.sent);case 8:case\"end\":return t.stop()}}),t)}))),function(t){return O.apply(this,arguments)})},{key:\"HfbaJ\",value:function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}},{key:\"RhjhR\",value:function(t){var e=t.split(\".\");return 1e3*parseInt(e[0])*1e3+1e3*parseInt(e[1])+parseInt(e[2])}},{key:\"Oeb0\",value:function(e,r){try{return t.RhjhR(e)>=t.RhjhR(r)}catch(t){return!1}}},{key:\"_d5at\",value:function(t,e,r){for(;\"\".concat(t).length<r;)t=\"\".concat(e).concat(t);return t}},{key:\"Dfj0D\",value:(B=Sr(kr().mark((function t(e){var r,n,i,a;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.B174bD,a=void 0===i?1:i,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"zo4B\",label:{key:n,B174bD:a}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return B.apply(this,arguments)})},{key:\"Mc76\",value:(C=Sr(kr().mark((function t(e){var r,n,i,a,o,s,u;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.value,a=e.B174bD,o=void 0===a?1:a,s=e.q177o,u=void 0!==s&&s,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"TpiT\",label:{key:n,value:i,B174bD:o,q177o:u}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return C.apply(this,arguments)})},{key:\"Zhc9_\",value:(F=Sr(kr().mark((function t(e){var r,n,i,a;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.B174bD,a=void 0===i?1:i,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"r136v\",label:{key:n,B174bD:a}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return F.apply(this,arguments)})},{key:\"Cc9h\",value:(M=Sr(kr().mark((function e(r,n){var i,a,o,s,u,f,c;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(i=chrome.runtime)&&void 0!==i&&i.id){e.next=2;break}return e.abrupt(\"return\",0);case 2:return 3323===r?(s=\"rl94t\",u=\"vm2ex\"):3635===r&&(s=\"Ml74\",u=\"_m0a\"),e.next=5,t.Dfj0D({key:s,B174bD:1});case 5:if(e.t1=a=e.sent,e.t0=null===e.t1,e.t0){e.next=9;break}e.t0=void 0===a;case 9:if(!e.t0){e.next=13;break}e.t2=void 0,e.next=14;break;case 13:e.t2=a.value;case 14:if(e.t2===n){e.next=22;break}return e.next=19,t.Mc76({key:s,value:n,B174bD:1});case 19:o=1,e.next=36;break;case 22:return e.next=24,t.Dfj0D({key:u,B174bD:1});case 24:if(e.t4=f=e.sent,e.t3=null===e.t4,e.t3){e.next=28;break}e.t3=void 0===f;case 28:if(!e.t3){e.next=32;break}e.t5=void 0,e.next=33;break;case 32:e.t5=f.value;case 33:c=e.t5,o=parseInt(c?c+\"\":\"1\")+1;case 36:return e.next=38,t.Mc76({key:u,value:o,B174bD:1});case 38:return e.abrupt(\"return\",o);case 39:case\"end\":return e.stop()}}),e)}))),function(t,e){return M.apply(this,arguments)})},{key:\"_g06\",value:(S=Sr(kr().mark((function e(r){var n,i,a,o,s;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Dfj0D({key:\"CSLcaeg\",B174bD:-1});case 2:if(e.t1=n=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===n;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=n.value;case 11:return a=e.t2,e.next=14,t.Dfj0D({key:\"CSLid5l\"});case 14:if(e.t4=i=e.sent,e.t3=null===e.t4,e.t3){e.next=18;break}e.t3=void 0===i;case 18:if(!e.t3){e.next=22;break}e.t5=void 0,e.next=23;break;case 22:e.t5=i.value;case 23:return o=e.t5,s=1,3323===r?s=parseFloat((null==a?void 0:a.hcs)||o||\"1.1708\"):3635===r&&(s=parseFloat((null==a?void 0:a.res)||o||\"1.1708\")),e.abrupt(\"return\",s);case 27:case\"end\":return e.stop()}}),e)}))),function(t){return S.apply(this,arguments)})},{key:\"VfeeX\",value:(A=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s1c4\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return A.apply(this,arguments)})},{key:\"yfml\",value:(k=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x236B\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return k.apply(this,arguments)})},{key:\"qi5f\",value:(D=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x1cmx\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return D.apply(this,arguments)})},{key:\"FcflF\",value:(E=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"B142B\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return E.apply(this,arguments)})},{key:\"xehcz\",value:(x=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s163\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return x.apply(this,arguments)})},{key:\"Jef6N\",value:(_=Sr(kr().mark((function t(){var e;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"D18fF\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return _.apply(this,arguments)})},{key:\"tg42v\",value:(w=Sr(kr().mark((function t(e){var r;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.next=2;break;case 2:if(null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=4;break}return t.abrupt(\"return\",void 0);case 4:return t.abrupt(\"return\",new Promise((function(t,r){chrome.runtime.sendMessage({type:\"q1fj\",label:e},(function(e){e?t(e):r()}))})));case 5:case\"end\":return t.stop()}}),t)}))),function(t){return w.apply(this,arguments)})},{key:\"Bc2bD\",value:(v=Sr(kr().mark((function e(r){var n,i,a,o,s,u,f,c,h,l,p,d,m,y,b=arguments;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=b.length>1&&void 0!==b[1]&&b[1],i=b.length>2&&void 0!==b[2]?b[2]:null,a=b.length>3&&void 0!==b[3]?b[3]:null,o=b.length>4&&void 0!==b[4]?b[4]:1,r&&r.isConnected){e.next=7;break}return e.abrupt(\"return\");case 7:if(s=r.getBoundingClientRect(),null!==i&&null!==a||(i=s.left+s.width/2,a=s.top+s.height/2),!isNaN(i)&&!isNaN(a)){e.next=12;break}return e.abrupt(\"return\");case 12:if(!n){e.next=29;break}u=[{e:\"mouseover\",w:30/o},{e:\"mouseenter\",w:15/o}].concat(Er(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/o})),[{e:\"mousedown\",w:35/o},{e:\"mouseup\",w:30/o},{e:\"click\",w:35/o}],Er(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/o})),[{e:\"mouseout\",w:25/o}]),f=0;case 15:if(!(f<u.length)){e.next=27;break}return c=u[f].e,h=50+Math.floor(100*Math.random()),l=50+Math.floor(200*Math.random()),\"mouseenter\"!==c&&\"mouseout\"!==c?(i=s.left+s.width/2,a=s.top+s.height/2):(i=s.left+(\"mouseenter\"===c?0:s.width),a=s.top+(\"mouseenter\"===c?0:s.height),i+=10*Math.random()-5,a+=20*Math.random()-5),p=new MouseEvent(c,{detail:\"mouseover\"===c?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i,clientY:a,screenX:h,screenY:l}),r.dispatchEvent(p),e.next=24,t.Bi9dF(u[f].w);case 24:f++,e.next=15;break;case 27:e.next=39;break;case 29:d=[{e:\"mouseover\",w:30/o},{e:\"mouseenter\",w:15/o},{e:\"mousedown\",w:30/o},{e:\"mouseup\",w:30/o},{e:\"click\",w:50/o},{e:\"mouseout\",w:35/o}],m=0;case 31:if(!(m<d.length)){e.next=39;break}return y=new MouseEvent(d[m].e,{detail:\"mouseover\"===d[m].e?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i+4,clientY:a+4}),r.dispatchEvent(y),e.next=36,t.Bi9dF(d[m].w);case 36:m++,e.next=31;break;case 39:case\"end\":return e.stop()}}),e)}))),function(t){return v.apply(this,arguments)})},{key:\"Jfi2J\",value:function(t){var e;if(!t)return null;var r=null===(e=t.style)||void 0===e?void 0:e.background.trim().match(/(?!^)\".*?\"/g);return r&&0!==r.length?r[0].replaceAll('\"',\"\"):null}},{key:\"BfgoD\",value:function(t){var e;return null==t||null===(e=t.src)||void 0===e?void 0:e.trim()}},{key:\"qd5l\",value:function(t,e){return t[0]=t[0]>=0?t[0]:0,t[1]=t[1]>=0?t[1]:0,t[2]=t[0]+t[2]<=e?t[2]:e-t[0],t[3]=t[1]+t[3]<=e?t[3]:e-t[1],t}},{key:\"yc01\",value:function(t){var e=t.map((function(t){return Math.exp(t)})),r=e.reduce((function(t,e){return t+e}),0);return e.map((function(t){return t/r}))}},{key:\"BgncB\",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.querySelector(e),i=null!==n;return i&&r&&(i=t.Yej5(n)),i}},{key:\"Mh6a\",value:function(t,e){if(t.length!==e.length)throw new Error(\"must have the same length\");return t.reduce((function(t,r,n){return t+r*e[n]}),0)}},{key:\"HdcaL\",value:function(t){return Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e,2)}),0))}},{key:\"shk4\",value:function(e){for(var r=[],n=0;n<e.length;n++){for(var i=new Array(e.length).fill(0),a=0;a<n;a++)i[a]=r[a][n];for(var o=e[n],s=n+1;s<e.length;s++){var u=e[s];i[s]=t.qhi5(o,u)}r.push(Er(i))}return r}},{key:\"qhi5\",value:function(e,r){return t.Mh6a(e,r)/(t.HdcaL(e)*t.HdcaL(r))}},{key:\"ze45D\",value:function(t,e){var r=new Set(Object.keys(t)),n=new Set(Object.keys(e)),i=Er(r).filter((function(t){return n.has(t)})),a=new Set([].concat(Er(r),Er(n)));return i.length/a.size}},{key:\"Yej5\",value:function(t){if(!t)return!1;var e=window.getComputedStyle(t);return!(\"none\"===e.display||\"hidden\"===e.visibility||0===t.offsetWidth&&0===t.offsetHeight||\"fixed\"===e.position&&\"hidden\"===e.visibility||null===t.offsetParent)}},{key:\"Cd86\",value:function(t,e){var r=t.data,n=[],a=0;if(2===e.length)for(var o=0;o<e[0];o++){for(var s=[],u=0;u<e[1];u++)s.push(r[a]),a++;n.push(s)}else if(3===e.length)for(var f=0;f<e[0];f++){for(var c=[],h=0;h<e[1];h++){for(var l=[],p=0;p<e[2];p++)l.push(r[a]),a++;c.push(l)}n.push(c)}else if(4===e.length)for(var d=0;d<e[0];d++){for(var m=[],y=0;y<e[1];y++){for(var b=[],g=0;g<e[2];g++){for(var v=[],w=0;w<e[3];w++)v.push(r[a]),a++;b.push(v)}m.push(b)}n.push(m)}return i.a(n)}},{key:\"Iepc\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Er(e);r&&(n[0]=t[0],n[1]=t[1],n[2]=e[2]-(e[0]-n[0]),n[3]=e[3]-(e[1]-n[1]));var i=Math.max(t[0],n[0]),a=Math.max(t[1],n[1]),o=Math.min(t[2],n[2]),s=Math.min(t[3],n[3]);return Math.max(0,o-i)*Math.max(0,s-a)}},{key:\"FbijJ\",value:function(e,r){return(e[2]-e[0])*(e[3]-e[1])+(r[2]-r[0])*(r[3]-r[1])-t.Iepc(e,r)}},{key:\"tel7v\",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.Iepc(e,r,n)/t.FbijJ(e,r)}},{key:\"ue9h\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return!!((e[0]<=t[0]||n&&e[0]-t[0]<5)&&(e[1]<=t[1]||n&&e[1]-t[1]<5)&&(e[2]>=t[2]||n&&e[2]-t[2]>-5)&&(e[3]>=t[3]||n&&e[3]-t[3]>-5))||!r&&(t[0]<=e[0]||n&&t[0]-e[0]<5)&&(t[1]<=e[1]||n&&t[1]-e[1]<5)&&(t[2]>=e[2]||n&&t[2]-e[2]>-5)&&(t[3]>=e[3]||n&&t[3]-e[3]>-5)}},{key:\"rdfov\",value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];if(e.length>0){e.sort((function(t,e){return e[4]-t[4]}));for(var i=function(){var i=e.shift();n.push(i),e=e.filter((function(e){return!t.ue9h(e,i,!0,r)}))};e.length>0;)i()}return n}},{key:\"_e92_\",value:function(t,e){var r=t[2]<e[0],n=t[0]>e[2],i=t[3]<e[1],a=t[1]>e[3];return!(r||n||i||a)}},{key:\"thebv\",value:function(e,r){for(var n=0;n<r.length;n++)t._e92_(e,r[n])}},{key:\"Ff32H\",value:function(t){if(0===t.length)return-1;var e=Math.max.apply(Math,Er(t));return t.indexOf(e)}},{key:\"Hf0eH\",value:function(t){if(0===t.length)return-1;var e=Math.min.apply(Math,Er(t));return t.indexOf(e)}},{key:\"rc4bt\",value:function(t){return 1/(1+Math.exp(-t))}},{key:\"_d1o\",value:function(t,e,r){for(;\"\".concat(t).length<r;)t=\"\".concat(e).concat(t);return t}},{key:\"Shoa\",value:function(t){for(var e=t.bitmap.width,r=t.bitmap.height,n=0,i=0,a=0;a<r;a++)for(var o=0;o<e;o++){var s=4*(a*e+o);t.bitmap.data[s]<128?n++:i++}return n/(n+i)}},{key:\"Ii11\",value:function(t,e,r){if(t&&0!==t.length){for(var n=t.map((function(t){return[t.x,t.y]})),i=(new a.DBSCAN).run(n,e,r,null),o=0,s=0,u=0,f=0;f<i.length;f++)if(i[f].length>o)s=f,o=i[f].length,u=i[f].reduce((function(t,e){return t+=e.value}),0);else if(i[f].length===o){var c=i[f].reduce((function(t,e){return t+=e.value}),0);c<u&&(s=f,o=i[f].length,u=c)}return i[s]}}},{key:\"vh3fx\",value:(g=Sr(kr().mark((function t(e,r){var i,a,o,s,u,f,c,h=arguments;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=h.length>2&&void 0!==h[2]?h[2]:\"\",null!==(i=chrome.runtime)&&void 0!==i&&i.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.next=5,e.getBase64Async(n.a.AUTO);case 5:return s=t.sent,u=/[<>:\"\\/\\\\|?*\\x00-\\x1F]/g,o=o.replace(u,\"\").replaceAll(\".\",\"\").replace(/\\s+/g,\"_\"),f=(null===(a=o)||void 0===a?void 0:a.length)>0?\"_solver_raw/\"+o+\"/\"+r:\"_solver_raw/\"+r,c={url:s,filename:f,saveAs:!1,conflictAction:\"uniquify\"},t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"q1j6\",label:c},(function(r){r?t(r):e()}))})));case 11:case\"end\":return t.stop()}}),t)}))),function(t,e){return g.apply(this,arguments)})},{key:\"DgmgF\",value:function(t,e,r,n){var i={x:0,y:0},a=!1;switch(n){case 0:i={x:e-1,y:r-1};for(var o=0;o<r;o++){for(var s=0;s<e;s++)if(!a&&255===t[o*e+s]&&s<i.x&&o<i.y){i.x=s,i.y=o,a=!0;break}if(a)break}break;case 1:i={x:0,y:0};for(var u=e-1;u>=0;u--){for(var f=r-1;f>=0;f--)if(!a&&255===t[f*e+u]&&u>i.x&&f>i.y){i.x=u,i.y=f,a=!0;break}if(a)break}break;case 2:i={x:0,y:0};for(var c=r-1;c>=0;c--){for(var h=e-1;h>=0;h--)if(!a&&255===t[c*e+h]&&h>i.x&&c>i.y){i.x=h,i.y=c,a=!0;break}if(a)break}break;case 3:i={x:e,y:r};for(var l=0;l<e;l++){for(var p=0;p<r;p++)if(!a&&255===t[p*e+l]&&l<i.x&&p<i.y){i.x=l,i.y=p,a=!0;break}if(a)break}}return i}},{key:\"Zg20Z\",value:function(t,e){var r=Array.from({length:e},(function(){return 0})),i=256/e;t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,e){var a=this.getPixelColor(t,e),o=n.a.intToRGBA(a),s=o.r,u=o.g,f=o.b,c=Math.floor((s+u+f)/3/i);r[c]++}));var a=r.reduce((function(t,e){return t+e}),0);return r.map((function(t){return t/a}))}},{key:\"_hhk\",value:function(t,e){var r=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,i){var a=this.getPixelColor(t,i),o=n.a.intToRGBA(a),s=o.r,u=o.g,f=o.b;Math.abs(s-u)<e&&Math.abs(s-f)<e&&Math.abs(u-f)<e&&r++})),r/(t.bitmap.width*t.bitmap.height)}},{key:\"Pdk4P\",value:function(t,e){if(e>t.length)return null;for(var r,n=0,i=0;i<e;i++)n+=t[i];r=n;for(var a=e;a<t.length;a++)n=n+t[a]-t[a-e],r=Math.max(r,n);return r}},{key:\"Hf84H\",value:function(e){var r=t.Zg20Z(e,32),n=r.indexOf(Math.max.apply(Math,Er(r)));if(r[30]+r[31]+r[30]>.93||r[0]+r[1]+r[2]>.93||n>2&&n<30&&r[n]>.93)return 0;if(r[29]+r[30]+r[31]+r[0]+r[1]+r[2]>.93||r[30]+r[31]+r[29]>.9||r[0]+r[1]+r[2]>.9)return 1;var i=t.Pdk4P(r,2),a=t.Pdk4P(r,3);return i>.85||a>.9?2:t._hhk(e,10)>.8?3:99}},{key:\"vcelv\",value:(b=Sr(kr().mark((function t(e){var r,i,a,o,s,u;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),a=n.a.intToRGBA(i),o=a.r,s=a.g,u=a.b,f=Math.floor((o+s+u)/3);f>80&&f<200&&(r[f]=(r[f]||0)+1)})),Object.entries(r).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(r).reduce((function(t,e){return r[t]>r[e]?t:e})),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var r=this.getPixelColor(t,e),a=n.a.intToRGBA(r),o=a.r,s=a.g,u=a.b,f=Math.floor((o+s+u)/3);Math.abs(i-f)>15&&this.setPixelColor(n.a.rgbaToInt(255,255,255,255),t,e)})),r={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),a=n.a.intToRGBA(i),o=a.r,s=a.g,u=a.b;if(255!==o&&255!==s&&255!==u){var f=o+\"_\"+s+\"_\"+u;r[f]=(r[f]||0)+1}})),Object.entries(r).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(r).reduce((function(t,e){return r[t]>r[e]?t:e})),a=i.split(\"_\"),o=parseInt(a[0]),s=parseInt(a[1]),u=parseInt(a[2]),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var r=this.getPixelColor(t,e),i=n.a.intToRGBA(r),a=i.r,f=i.g,c=i.b;Math.abs(o-a)>40||Math.abs(s-f)>40||Math.abs(u-c)>40||Math.abs(o-a)+Math.abs(s-f)+Math.abs(u-c)>80?this.setPixelColor(n.a.rgbaToInt(255,255,255,255),t,e):this.setPixelColor(n.a.rgbaToInt(0,0,0,255),t,e)})),t.abrupt(\"return\",e);case 17:case\"end\":return t.stop()}}),t)}))),function(t){return b.apply(this,arguments)})},{key:\"PblhR\",value:function(t,e,r){var i=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,a){var o=this.getPixelColor(t,a),s=n.a.intToRGBA(o),u=s.r,f=s.g,c=s.b;Math.abs(u-e[0])<=r&&Math.abs(f-e[1])<=r&&Math.abs(c-e[2])<=r&&i++})),i/(t.bitmap.width*t.bitmap.height)}},{key:\"Fg6gH\",value:function(t,e,r,i,a){for(var o=[{x:e,y:r}],s={x1:e,y1:r,x2:e,y2:r};o.length>0;){var u=o.pop(),f=u.x,c=u.y;if(f>=0&&f<t.bitmap.width&&c>=0&&c<t.bitmap.height){var h=t.getPixelIndex(f,c);if(t.bitmap.data[h]===i){var l=n.a.rgbaToInt(a,a,a,255);t.setPixelColor(l,f,c),f<s.x1&&(s.x1=f),f>s.x2&&(s.x2=f),c<s.y1&&(s.y1=c),c>s.y2&&(s.y2=c),o.push({x:f+1,y:c}),o.push({x:f-1,y:c}),o.push({x:f,y:c+1}),o.push({x:f,y:c-1})}}}return s}},{key:\"Ih91\",value:function(e,r){var n=[];return e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(i,a,o){if(e.bitmap.data[o]===r){var s=t.Fg6gH(e,i,a,r,250);n.push(s)}})),n}},{key:\"Mgk4\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var r=t[0][e],n=1;n<t.length;n++)t[n][e]>r&&(r=t[n][e]);return r}}},{key:\"rgdcr\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var r=t[0][e],n=1;n<t.length;n++)t[n][e]<r&&(r=t[n][e]);return r}}},{key:\"Agh9\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Number.MIN_SAFE_INTEGER,i=-1,a=-1,o=0;o<t.length;o++)if(e<0)for(var s=0;s<t[o].length;s++)o!==s&&t[o][s]>n&&(n=t[o][s],i=o,a=s);else t[o][e]>n&&(null==r||!r.includes(o))&&o!==e&&(n=t[o][e],i=o,a=e);return[i,a,t[i][a]]}},{key:\"ygd0\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Number.MAX_SAFE_INTEGER,i=-1,a=-1,o=0;o<t.length;o++)if(e<0)for(var s=0;s<t[o].length;s++)o!==s&&t[o][s]<n&&(n=t[o][s],i=o,a=s);else t[o][e]<n&&(null==r||!r.includes(o))&&o!==e&&(n=t[o][e],i=o,a=e);return[i,a,t[i][a]]}},{key:\"Gce5\",value:function(t,e,r){return t.filter((function(t,r){return!e.includes(r)})).map((function(t){return t.filter((function(t,e){return!r.includes(e)}))}))}},{key:\"Ri54T\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,r){chrome.runtime.sendMessage({type:\"C1k3\",label:t},(function(t){t?e(t):r()}))}))}},{key:\"sdnj\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,r){chrome.runtime.sendMessage({type:\"R1pcR\",label:t},(function(t){t?e(t):r()}))}))}},{key:\"LcifN\",value:(y=Sr(kr().mark((function t(e,r){var i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i=e.bitmap.width,a=e.bitmap.height,o=r[0],s=r[1],u=0;u<a;u++)for(f=0;f<i;f++){for(c=[0,0,0],h=0,l=-o;l<=o;l++)for(p=-o;p<=o;p++)m=u+l,(d=f+p)>=0&&d<i&&m>=0&&m<a&&(y=e.getPixelColor(d,m),b=n.a.intToRGBA(y),c[0]+=b.r,c[1]+=b.g,c[2]+=b.b,h++);g=[Math.floor(c[0]/h),Math.floor(c[1]/h),Math.floor(c[2]/h)],v=e.getPixelColor(f,u),w=n.a.intToRGBA(v),Math.abs(w.r-g[0])+Math.abs(w.g-g[1])+Math.abs(w.b-g[2])<s&&e.setPixelColor(n.a.rgbaToInt.apply(n.a,g.concat([w.a])),f,u)}return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e){return y.apply(this,arguments)})},{key:\"Oe76\",value:(m=Sr(kr().mark((function t(e,r,i){var a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(a=e.bitmap,o=a.width,s=a.height,u=Array.from({length:s},(function(t,r){return Array.from({length:o},(function(t,i){return n.a.intToRGBA(e.getPixelColor(i,r))}))})),f=new Array(s),c=0;c<s;c++)for(f[c]=new Array(o),h=0;h<o;h++){for(l=0,p=0,d=0,m=0,y=-r;y<=r;y++)for(b=-r;b<=r;b++)v=c+y,(g=h+b)>=0&&g<o&&v>=0&&v<s&&(w=u[v][g],l+=w.r,p+=w.g,d+=w.b,m++);f[c][h]={r:Math.floor(l/m),g:Math.floor(p/m),b:Math.floor(d/m),a:u[c][h].a}}for(_=0;_<s;_++)for(x=0;x<o;x++)E=u[_][x],D=f[_][x],Math.abs(E.r-D.r)+Math.abs(E.g-D.g)+Math.abs(E.b-D.b)<i&&(k=n.a.rgbaToInt(D.r,D.g,D.b,D.a),e.setPixelColor(k,x,_));return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e,r){return m.apply(this,arguments)})},{key:\"ycma\",value:(d=Sr(kr().mark((function e(r,n){var i;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt(\"return\",r);case 2:e.t0=kr().keys(n);case 3:if((e.t1=e.t0()).done){e.next=30;break}if(i=e.t1.value,!n.hasOwnProperty(i)){e.next=28;break}e.t2=i,e.next=\"bw\"===e.t2?9:\"b\"===e.t2?13:\"c\"===e.t2?15:\"g\"===e.t2?17:\"p\"===e.t2?19:\"cbl\"===e.t2||\"ceb\"===e.t2||\"ced\"===e.t2||\"cee\"===e.t2||\"csh\"===e.t2?21:\"dns\"===e.t2?23:27;break;case 9:return e.next=11,t.ubnk(r);case 11:return r=e.sent,e.abrupt(\"break\",28);case 13:return r.blur(n[i]),e.abrupt(\"break\",28);case 15:return r.contrast(n[i]),e.abrupt(\"break\",28);case 17:return n[i]&&r.grayscale(),e.abrupt(\"break\",28);case 19:return r.pixelate(n[i]),e.abrupt(\"break\",28);case 21:return r.convolute([[n[i][0],n[i][1],n[i][2]],[n[i][3],n[i][4],n[i][5]],[n[i][6],n[i][7],n[i][8]]]),e.abrupt(\"break\",28);case 23:return e.next=25,t.Oe76(r,n[i][0],n[i][1]);case 25:return r=e.sent,e.abrupt(\"break\",28);case 27:return e.abrupt(\"break\",28);case 28:e.next=3;break;case 30:return e.abrupt(\"return\",r);case 31:case\"end\":return e.stop()}}),e)}))),function(t,e){return d.apply(this,arguments)})},{key:\"ubnk\",value:(p=Sr(kr().mark((function t(e){var r,n,i;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=0,n=0,e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e,i){var a=this.bitmap.data[i+0],o=this.bitmap.data[i+1],s=this.bitmap.data[i+2];r+=.299*a+.587*o+.114*s,n++})),i=r/n,e.greyscale().threshold({max:i}),t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t){return p.apply(this,arguments)})},{key:\"He09J\",value:(l=Sr(kr().mark((function t(e){var r,i,a,s=arguments;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:null,i=null,t.prev=2,\"string\"!=typeof e){t.next=20;break}if(!e.startsWith(\"data:image/\")){t.next=13;break}if(a=e.split(\",\")[1],r&&(i=r[a.subStr(0,256)]),i){t.next=11;break}return t.next=10,n.a.read(o.Buffer.from(a,\"base64\"));case 10:i=t.sent;case 11:t.next=18;break;case 13:if(r&&(i=r[e]),i){t.next=18;break}return t.next=17,n.a.read(e);case 17:i=t.sent;case 18:t.next=21;break;case 20:\"object\"===xr(e)&&(i=e);case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(2);case 26:return t.abrupt(\"return\",i);case 27:case\"end\":return t.stop()}}),t,null,[[2,23]])}))),function(t){return l.apply(this,arguments)})},{key:\"Df72H\",value:function(t,e,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=e.bitmap.data,a=[],o=[],s=[],u=0;u<i.length;u+=4)a.push(i[u]),o.push(i[u+1]),s.push(i[u+2]);var f=a.concat(o,s),c=new Float32Array(f.map((function(t){return t/255})));if(n)for(var h=[.485,.456,.406],l=[.229,.224,.225],p=0;p<c.length;p++)c[p]=(c[p]-h[p%3])/l[p%3];return new t.Tensor(\"float32\",c,r)}},{key:\"Khl9\",value:(h=Sr(kr().mark((function e(r,i,a){var o,s,u,f;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.He09J(a);case 2:return(o=e.sent).resize(224,224,n.a.RESIZE_BILINEAR),s=t.Df72H(r,o,[1,3,224,224],!0),(u={})[i.inputNames[0]]=s,e.next=9,i.run(u);case 9:return f=e.sent,e.abrupt(\"return\",f[i.outputNames[0]].data);case 11:case\"end\":return e.stop()}}),e)}))),function(t,e,r){return h.apply(this,arguments)})},{key:\"qcbg\",value:(c=Sr(kr().mark((function e(r,i,a,o,s){var u,f,c,h,l,p,d,m,y=arguments;return kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=y.length>5&&void 0!==y[5]?y[5]:null,e.next=3,t.He09J(a);case 3:return(f=e.sent).resize(s,s,n.a.RESIZE_BILINEAR),c=t.Df72H(i,f,[1,3,s,s],!0),(h={})[o.inputNames[0]]=c,e.next=10,o.run(h);case 10:if(l=e.sent,p=l[o.outputNames[0]],!u){e.next=21;break}return(h={})[u.inputNames[0]]=p,e.next=17,u.run(h);case 17:m=e.sent,d=m[u.outputNames[0]].data,e.next=22;break;case 21:d=p.data;case 22:return e.abrupt(\"return\",d);case 23:case\"end\":return e.stop()}}),e)}))),function(t,e,r,n,i){return c.apply(this,arguments)})},{key:\"vf8kv\",value:(f=Sr(kr().mark((function t(e){var r,n,i,a,o;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(r=JSON.parse(JSON.stringify(e))).CSLc9jd,n=new TextEncoder,i=n.encode(r),t.next=6,crypto.subtle.digest(\"SHA-256\",i);case 6:return a=t.sent,o=Array.from(new Uint8Array(a)),t.abrupt(\"return\",o.map((function(t){return t.toString(16).padStart(2,\"0\")})).join(\"\"));case 9:case\"end\":return t.stop()}}),t)}))),function(t){return f.apply(this,arguments)})},{key:\"NdikP\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"av\",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i={};return Er(new Set([].concat(Er(Object.keys(t)),Er(Object.keys(e))))).forEach((function(a){var o=t[a],s=e[a];void 0!==o&&void 0!==s?\"av\"===r?i[a]=(o+s)/2:\"mx\"===r?i[a]=Math.max(o+s):\"mn\"===r?i[a]=Math.min(o+s):\"ad\"===r?i[a]=o+s:\"ft\"===r?i[a]=o:\"lt\"===r?i[a]=s:\"ap\"===r?i[a]=o+n:\"number\"==typeof r&&(i[a]=o*(1-r)+s*r):i[a]=void 0!==o?o:s})),i}},{key:\"Kiai\",value:function(t,e){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length,a=new Array(i>4?i-4:0),o=4;o<i;o++)a[o-4]=arguments[o];var u=a.length>0?\": [\":\"\";if(a.forEach((function(t){u=Array.isArray(t)?u.concat(t.sort().join(\" \")+\", \"):\"object\"===xr(t)&&null!==t?u.concat(JSON.stringify(t)+\", \"):u.concat(t+\", \")})),u=a.length>0?u.slice(0,-2).concat(\"]\"):\"\",t.t0&&t.t0 instanceof s.a){1===r?(t.t0.push(performance.now()),t.t0.size(),n?(-1,t.t0.push(-1)):t.t0.push(performance.now())):0===r?!t.t0.isEmpty()&&(-1===t.t0.pop()?(t.t0.push(-1),t.t0.size()):(performance.now(),t.t0.push(performance.now()),t.t0.size())):-1===r&&!t.t0.isEmpty()&&(t.t0.pop(),t.t0.size(),performance.now(),t.t0.pop())}}},{key:\"Ii24\",value:function(t){for(var e=t.replace(\"data:application/octet-stream;base64,\",\"\"),r=window.atob(e),n=new Uint8Array(r.length),i=0;i<r.length;++i)n[i]=r.charCodeAt(i);return n}},{key:\"Gg95\",value:function(t){var e=new Float32Array(t).buffer,r=_r.deflate(new Uint8Array(e));return btoa(String.fromCharCode.apply(String,Er(r)))}},{key:\"ud01\",value:function(t,e){var r=(t.length-1)*e,n=Math.floor(r),i=Math.ceil(r),a=r-n;return i===n?t[n]:t[n]*(1-a)+t[i]*a}},{key:\"Xe5nX\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1/0,n=0,i=1;i<t.length-e;i++){var a=t[i-1],o=t[i];if(a>1e-8){var s=o/a;s>r&&(r=s,n=i)}}return t[n]}},{key:\"Ch1b\",value:function(t){var e=0;t=t||\"\";for(var r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return e}}],r&&Mr(e.prototype,r),u&&Mr(e,u),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k,A,S,M,F,C,B,O,I,T}()},function(t,e,r){\"use strict\";var n=r(25),i=r(19);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function o(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||h(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){var n;return n=function(t,e){if(\"object\"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==a(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,a,o,s=[],u=!0,f=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){f=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(f)throw i}}return s}}(t,e)||h(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function h(t,e){if(t){if(\"string\"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var p=r(43),d=r(61),m=r.n(d),y=r(0);function b(t){return b=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},b(t)}function g(t,e,r){var n;return n=function(t,e){if(\"object\"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=b(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==b(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v=\"image/jpeg\",w=r(46);function _(t){return _=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_(t)}function x(t,e,r){var n;return n=function(t,e){if(\"object\"!=_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==_(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var E=\"image/png\",D=r(62),k=r.n(D);function A(t){return A=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},A(t)}function S(t,e,r){var n;return n=function(t,e){if(\"object\"!=A(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=A(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==A(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var M=\"image/bmp\",F=\"image/x-ms-bmp\";var C=function(t){return e=k.a.decode(t),Object(y.b)({bitmap:e},0,0,e.width,e.height,(function(t,r,n){var i=this.bitmap.data[n+0],a=this.bitmap.data[n+1],o=this.bitmap.data[n+2],s=this.bitmap.data[n+3];this.bitmap.data[n+0]=s,this.bitmap.data[n+1]=o,this.bitmap.data[n+2]=a,this.bitmap.data[n+3]=e.is_with_alpha?i:255})).bitmap;var e},B=function(t){return k.a.encode(function(t){return Object(y.b)(t,0,0,t.bitmap.width,t.bitmap.height,(function(t,e,r){var n=this.bitmap.data[r+0],i=this.bitmap.data[r+1],a=this.bitmap.data[r+2],o=this.bitmap.data[r+3];this.bitmap.data[r+0]=o,this.bitmap.data[r+1]=a,this.bitmap.data[r+2]=i,this.bitmap.data[r+3]=n})).bitmap}(t)).data},O=r(105),I=r(106);function T(t){return T=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},T(t)}var P=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],L=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18],N=r(107),j=r(108);function R(t){return R=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},R(t)}function z(t){var e=[1,9,3,11,13,5,15,7,4,12,2,10,16,8,14,6];return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,r,n){var i=e[((3&r)<<2)+t%4];this.bitmap.data[n]=Math.min(this.bitmap.data[n]+i,255),this.bitmap.data[n+1]=Math.min(this.bitmap.data[n+1]+i,255),this.bitmap.data[n+2]=Math.min(this.bitmap.data[n+2]+i,255)})),Object(y.a)(t)&&t.call(this,null,this),this}var U=r(109);function G(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t.r[this.bitmap.data[n+0]]++,t.g[this.bitmap.data[n+1]]++,t.b[this.bitmap.data[n+2]]++})),t}var H=function(t,e,r){return 255*(t-e)/(r-e)},Z=function(t){return[t.findIndex((function(t){return t>0})),255-t.slice().reverse().findIndex((function(t){return t>0}))]},q=r(110),W=r(112),Y=r(114);function V(t){return function(t){if(Array.isArray(t))return X(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return X(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var J=[function(){return{blit:function(t,e,r,n,i,a,o,s){if(!(t instanceof this.constructor))return y.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof r)return y.d.call(this,\"x and y must be numbers\",s);if(\"function\"==typeof n)s=n,n=0,i=0,a=t.bitmap.width,o=t.bitmap.height;else{if(T(n)!==T(i)||T(i)!==T(a)||T(a)!==T(o))return y.d.call(this,\"srcx, srcy, srcw, srch must be numbers\",s);n=n||0,i=i||0,a=a||t.bitmap.width,o=o||t.bitmap.height}e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i),a=Math.round(a),o=Math.round(o);var u=this.bitmap.width,f=this.bitmap.height,c=this;return t.scanQuiet(n,i,a,o,(function(t,a,o){var s=e+t-n,h=r+a-i;if(s>=0&&h>=0&&u-s>0&&f-h>0){var l=c.getPixelIndex(s,h),p={r:this.bitmap.data[o],g:this.bitmap.data[o+1],b:this.bitmap.data[o+2],a:this.bitmap.data[o+3]},d={r:c.bitmap.data[l],g:c.bitmap.data[l+1],b:c.bitmap.data[l+2],a:c.bitmap.data[l+3]};c.bitmap.data[l]=(p.a*(p.r-d.r)-d.r+255>>8)+d.r,c.bitmap.data[l+1]=(p.a*(p.g-d.g)-d.g+255>>8)+d.g,c.bitmap.data[l+2]=(p.a*(p.b-d.b)-d.b+255>>8)+d.b,c.bitmap.data[l+3]=this.constructor.limit255(d.a+p.a)}})),Object(y.a)(s)&&s.call(this,null,this),this}}},function(){return{blur:function(t,e){if(\"number\"!=typeof t)return y.d.call(this,\"r must be a number\",e);if(t<1)return y.d.call(this,\"r must be greater than 0\",e);for(var r,n,i,a,o,s,u,f,c,h,l,p,d,m,b=this.bitmap.width-1,g=this.bitmap.height-1,v=t+1,w=P[t],_=L[t],x=[],E=[],D=[],k=[],A=[],S=[],M=2;M-- >0;){for(p=0,d=0,s=0;s<this.bitmap.height;s++){for(r=this.bitmap.data[d]*v,n=this.bitmap.data[d+1]*v,i=this.bitmap.data[d+2]*v,a=this.bitmap.data[d+3]*v,u=1;u<=t;u++)f=d+((u>b?b:u)<<2),r+=this.bitmap.data[f++],n+=this.bitmap.data[f++],i+=this.bitmap.data[f++],a+=this.bitmap.data[f];for(o=0;o<this.bitmap.width;o++)x[p]=r,E[p]=n,D[p]=i,k[p]=a,0===s&&(A[o]=((f=o+v)<b?f:b)<<2,S[o]=(f=o-t)>0?f<<2:0),c=d+A[o],h=d+S[o],r+=this.bitmap.data[c++]-this.bitmap.data[h++],n+=this.bitmap.data[c++]-this.bitmap.data[h++],i+=this.bitmap.data[c++]-this.bitmap.data[h++],a+=this.bitmap.data[c]-this.bitmap.data[h],p++;d+=this.bitmap.width<<2}for(o=0;o<this.bitmap.width;o++){for(r=x[l=o]*v,n=E[l]*v,i=D[l]*v,a=k[l]*v,u=1;u<=t;u++)r+=x[l+=u>g?0:this.bitmap.width],n+=E[l],i+=D[l],a+=k[l];for(p=o<<2,s=0;s<this.bitmap.height;s++)m=a*w>>>_,this.bitmap.data[p+3]=m,m>255&&(this.bitmap.data[p+3]=255),m>0?(m=255/m,this.bitmap.data[p]=(r*w>>>_)*m,this.bitmap.data[p+1]=(n*w>>>_)*m,this.bitmap.data[p+2]=(i*w>>>_)*m):(this.bitmap.data[p+2]=0,this.bitmap.data[p+1]=0,this.bitmap.data[p]=0),0===o&&(A[s]=((f=s+v)<g?f:g)*this.bitmap.width,S[s]=(f=s-t)>0?f*this.bitmap.width:0),c=o+A[s],h=o+S[s],r+=x[c]-x[h],n+=E[c]-E[h],i+=D[c]-D[h],a+=k[c]-k[h],p+=this.bitmap.width<<2}}return Object(y.a)(e)&&e.call(this,null,this),this}}},function(){return{circle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;\"function\"==typeof t&&(e=t,t={});var r=t.radius||(this.bitmap.width>this.bitmap.height?this.bitmap.height:this.bitmap.width)/2,n=\"number\"==typeof t.x?t.x:this.bitmap.width/2,i=\"number\"==typeof t.y?t.y:this.bitmap.height/2;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,a){var o=Math.sqrt(Math.pow(t-n,2)+Math.pow(e-i,2));r-o<=0?this.bitmap.data[a+3]=0:r-o<1&&(this.bitmap.data[a+3]=255*(r-o))})),Object(y.a)(e)&&e.call(this,null,this),this}}},N.a,function(){return{contain:function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",i);\"string\"==typeof r&&(\"function\"==typeof n&&void 0===i&&(i=n),n=r,r=null),\"function\"==typeof r&&(void 0===i&&(i=r),n=null,r=null),\"function\"==typeof n&&void 0===i&&(i=n,n=null);var a=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),o=r>>3;if((0===a||a&a-1)&&(0===o||o&o-1))return y.d.call(this,\"only use one flag per alignment direction\",i);var s=a>>1,u=o>>1,f=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,c=this.cloneQuiet().scale(f,n);return this.resize(t,e,n),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)})),this.blit(c,(this.bitmap.width-c.bitmap.width)/2*s,(this.bitmap.height-c.bitmap.height)/2*u),Object(y.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",i);r&&\"function\"==typeof r&&void 0===i?(i=r,r=null,n=null):\"function\"==typeof n&&void 0===i&&(i=n,n=null);var a=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),o=r>>3;if((0===a||a&a-1)&&(0===o||o&o-1))return y.d.call(this,\"only use one flag per alignment direction\",i);var s=a>>1,u=o>>1,f=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(f,n),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*u,t,e),Object(y.a)(i)&&i.call(this,null,this),this}}},j.a,function(){return{displace:function(t,e,r){if(\"object\"!==R(t)||t.constructor!==this.constructor)return y.d.call(this,\"The source must be a Jimp image\",r);if(\"number\"!=typeof e)return y.d.call(this,\"factor must be a number\",r);var n=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,i,a){var o=t.bitmap.data[a]/256*e;o=Math.round(o);var s=this.getPixelIndex(r+o,i);this.bitmap.data[s]=n.bitmap.data[a],this.bitmap.data[s+1]=n.bitmap.data[a+1],this.bitmap.data[s+2]=n.bitmap.data[a+2]})),Object(y.a)(r)&&r.call(this,null,this),this}}},function(){return{dither565:z,dither16:z}},function(){return{fisheye:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{r:2.5},r=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(r=e,e={r:2.5});var n=this.cloneQuiet(),i=n.bitmap,a=i.width,o=i.height;return n.scanQuiet(0,0,a,o,(function(r,i){var s=r/a,u=i/o,f=Math.sqrt(Math.pow(s-.5,2)+Math.pow(u-.5,2)),c=2*Math.pow(f,e.r),h=(s-.5)/f,l=(u-.5)/f,p=Math.round((c*h+.5)*a),d=Math.round((c*l+.5)*o),m=n.getPixelColor(p,d);t.setPixelColor(m,r,i)})),this.setPixelColor(n.getPixelColor(a/2,o/2),a/2,o/2),Object(y.a)(r)&&r.call(this,null,this),this}}},U.a,function(){return{gaussian:function(t,e){if(\"number\"!=typeof t)return y.d.call(this,\"r must be a number\",e);if(t<1)return y.d.call(this,\"r must be greater than 0\",e);for(var r=Math.ceil(2.57*t),n=2*r+1,i=t*t*2,a=i*Math.PI,o=[],s=0;s<n;s++){o[s]=[];for(var u=0;u<n;u++){var f=Math.pow(u-r,2)+Math.pow(s-r,2);o[s][u]=Math.exp(-f/i)/a}}for(var c=0;c<this.bitmap.height;c++)for(var h=0;h<this.bitmap.width;h++)for(var l=0,p=0,d=0,m=0,b=0,g=0;g<n;g++){for(var v=0;v<n;v++){var w=Math.min(this.bitmap.width-1,Math.max(0,v+h-r)),_=Math.min(this.bitmap.height-1,Math.max(0,g+c-r)),x=o[g][v],E=_*this.bitmap.width+w<<2;l+=this.bitmap.data[E]*x,p+=this.bitmap.data[E+1]*x,d+=this.bitmap.data[E+2]*x,m+=this.bitmap.data[E+3]*x,b+=x}var D=c*this.bitmap.width+h<<2;this.bitmap.data[D]=Math.round(l/b),this.bitmap.data[D+1]=Math.round(p/b),this.bitmap.data[D+2]=Math.round(d/b),this.bitmap.data[D+3]=Math.round(m/b)}return Object(y.a)(e)&&e.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=255-this.bitmap.data[r],this.bitmap.data[r+1]=255-this.bitmap.data[r+1],this.bitmap.data[r+2]=255-this.bitmap.data[r+2]})),Object(y.a)(t)&&t.call(this,null,this),this}}},function(){return{mask:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return y.d.call(this,\"The source must be a Jimp image\",n);if(\"number\"!=typeof e||\"number\"!=typeof r)return y.d.call(this,\"x and y must be numbers\",n);e=Math.round(e),r=Math.round(r);var i=this.bitmap.width,a=this.bitmap.height,o=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,s){var u=e+t,f=r+n;if(u>=0&&f>=0&&u<i&&f<a){var c=o.getPixelIndex(u,f),h=this.bitmap.data,l=(h[s+0]+h[s+1]+h[s+2])/3;o.bitmap.data[c+3]*=l/255}})),Object(y.a)(n)&&n.call(this,null,this),this}}},function(){return{normalize:function(t){var e=G.call(this),r={r:Z(e.r),g:Z(e.g),b:Z(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){var i=this.bitmap.data[n+0],a=this.bitmap.data[n+1],o=this.bitmap.data[n+2];this.bitmap.data[n+0]=H(i,r.r[0],r.r[1]),this.bitmap.data[n+1]=H(a,r.g[0],r.g[1]),this.bitmap.data[n+2]=H(o,r.b[0],r.b[1])})),Object(y.a)(t)&&t.call(this,null,this),this}}},q.a,W.a,Y.a,function(){return{scale:function(t,e,r){if(\"number\"!=typeof t)return y.d.call(this,\"f must be a number\",r);if(t<0)return y.d.call(this,\"f must be a positive number\",r);\"function\"==typeof e&&void 0===r&&(r=e,e=null);var n=this.bitmap.width*t,i=this.bitmap.height*t;return this.resize(n,i,e),Object(y.a)(r)&&r.call(this,null,this),this},scaleToFit:function(t,e,r,n){if(\"number\"!=typeof t||\"number\"!=typeof e)return y.d.call(this,\"w and h must be numbers\",n);\"function\"==typeof r&&void 0===n&&(n=r,r=null);var i=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,r),Object(y.a)(n)&&n.call(this,null,this),this}}},function(){return{shadow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(r=e,e={});var n=e,i=n.opacity,a=void 0===i?.7:i,o=n.size,s=void 0===o?1.1:o,u=n.x,f=void 0===u?-25:u,c=n.y,h=void 0===c?25:c,l=n.blur,p=void 0===l?5:l,d=this.clone(),m=this.clone();return m.scan(0,0,m.bitmap.width,m.bitmap.height,(function(e,r,n){m.bitmap.data[n]=0,m.bitmap.data[n+1]=0,m.bitmap.data[n+2]=0,m.bitmap.data[n+3]=m.constructor.limit255(m.bitmap.data[n+3]*a),t.bitmap.data[n]=0,t.bitmap.data[n+1]=0,t.bitmap.data[n+2]=0,t.bitmap.data[n+3]=0})),m.resize(m.bitmap.width*s,m.bitmap.height*s).blur(p),this.composite(m,f,h),this.composite(d,0,0),Object(y.a)(r)&&r.call(this,null,this),this}}},function(){return{threshold:function(t,e){var r=this,n=t.max,i=t.replace,a=void 0===i?255:i,o=t.autoGreyscale,s=void 0===o||o;return\"number\"!=typeof n?y.d.call(this,\"max must be a number\",e):\"number\"!=typeof a?y.d.call(this,\"replace must be a number\",e):\"boolean\"!=typeof s?y.d.call(this,\"autoGreyscale must be a boolean\",e):(n=this.constructor.limit255(n),a=this.constructor.limit255(a),s&&this.greyscale(),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,i){var o=r.bitmap.data[i]<n?r.bitmap.data[i]:a;r.bitmap.data[i]=o,r.bitmap.data[i+1]=o,r.bitmap.data[i+2]=o})),Object(y.a)(e)&&e.call(this,null,this),this)}}}];e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.c,r={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function a(t){Object.entries(t).forEach((function(t){var e=c(t,2),n=e[0],i=e[1];r[n]=u(u({},r[n]),i)}))}return t.types&&(t.types.forEach((function(t){var e=t();Array.isArray(e.mime)?i.a.apply(void 0,o(e.mime)):Object.entries(e.mime).forEach((function(t){return i.a.apply(void 0,o(t))})),delete e.mime,a(e)})),e.decoders=u(u({},e.decoders),r.decoders),e.encoders=u(u({},e.encoders),r.encoders),e.hasAlpha=u(u({},e.hasAlpha),r.hasAlpha)),t.plugins&&t.plugins.forEach((function(t){var e=t(n.d)||{};e.class||e.constants?a(e):a({class:e})})),Object(n.b)(r.class,e),Object(n.a)(r.constants,e),n.c}({types:[function(){return Object(p.mergeDeep)({mime:g({},v,[\"jpeg\",\"jpg\",\"jpe\"]),constants:{MIME_JPEG:v},decoders:g({},v,m.a.decode),encoders:g({},v,(function(t){return m.a.encode(t.bitmap,t._quality).data})),class:{_quality:100,quality:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"n must be a number\",e):t<0||t>100?y.d.call(this,\"n must be a number 0 - 100\",e):(this._quality=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)}}},{mime:x({},E,[\"png\"]),constants:{MIME_PNG:E,PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:x({},E,!0),decoders:x({},E,w.PNG.sync.read),encoders:x({},E,(function(t){var e=new w.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,w.PNG.sync.write(e,{deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:\"number\"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})})),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"l must be a number\",e):t<0||t>9?y.d.call(this,\"l must be a number 0 - 9\",e):(this._deflateLevel=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"s must be a number\",e):t<0||t>3?y.d.call(this,\"s must be a number 0 - 3\",e):(this._deflateStrategy=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"n must be a number\",e):t<-1||t>4?y.d.call(this,\"n must be -1 (auto) or a number 0 - 4\",e):(this._filterType=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return\"number\"!=typeof t?y.d.call(this,\"s must be a number\",e):0!==t&&2!==t&&4!==t&&6!==t?y.d.call(this,\"s must be a number 0, 2, 4, 6.\",e):(this._colorType=Math.round(t),Object(y.a)(e)&&e.call(this,null,this),this)}}},{mime:S({},M,[\"bmp\"]),constants:{MIME_BMP:M,MIME_X_MS_BMP:F},decoders:S(S({},M,C),F,C),encoders:S(S({},M,B),F,B)},Object(O.a)(),Object(I.a)())}],plugins:[function(t){var e=J.map((function(e){var r=e(t)||{};return r.class||r.constants||(r={class:r}),r}));return p.mergeDeep.apply(void 0,V(e))}]})},function(t,e,r){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(r){\"use strict\";var a=Math.cosh||function(t){return Math.abs(t)<1e-9?1-t:.5*(Math.exp(t)+Math.exp(-t))},o=Math.sinh||function(t){return Math.abs(t)<1e-9?t:.5*(Math.exp(t)-Math.exp(-t))},s=function(){throw SyntaxError(\"Invalid Param\")};function u(t,e){var r=Math.abs(t),n=Math.abs(e);return 0===t?Math.log(n):0===e?Math.log(r):r<3e3&&n<3e3?.5*Math.log(t*t+e*e):(t/=2,e/=2,.5*Math.log(t*t+e*e)+Math.LN2)}function f(t,e){if(!(this instanceof f))return new f(t,e);var r=function(t,e){var r={re:0,im:0};if(null==t)r.re=r.im=0;else if(void 0!==e)r.re=t,r.im=e;else switch(i(t)){case\"object\":if(\"im\"in t&&\"re\"in t)r.re=t.re,r.im=t.im;else if(\"abs\"in t&&\"arg\"in t){if(!Number.isFinite(t.abs)&&Number.isFinite(t.arg))return f.INFINITY;r.re=t.abs*Math.cos(t.arg),r.im=t.abs*Math.sin(t.arg)}else if(\"r\"in t&&\"phi\"in t){if(!Number.isFinite(t.r)&&Number.isFinite(t.phi))return f.INFINITY;r.re=t.r*Math.cos(t.phi),r.im=t.r*Math.sin(t.phi)}else 2===t.length?(r.re=t[0],r.im=t[1]):s();break;case\"string\":r.im=r.re=0;var n=t.match(/\\d+\\.?\\d*e[+-]?\\d+|\\d+\\.?\\d*|\\.\\d+|./g),a=1,o=0;null===n&&s();for(var u=0;u<n.length;u++){var c=n[u];\" \"===c||\"\\t\"===c||\"\\n\"===c||(\"+\"===c?a++:\"-\"===c?o++:\"i\"===c||\"I\"===c?(a+o===0&&s(),\" \"===n[u+1]||isNaN(n[u+1])?r.im+=parseFloat((o%2?\"-\":\"\")+\"1\"):(r.im+=parseFloat((o%2?\"-\":\"\")+n[u+1]),u++),a=o=0):((a+o===0||isNaN(c))&&s(),\"i\"===n[u+1]||\"I\"===n[u+1]?(r.im+=parseFloat((o%2?\"-\":\"\")+c),u++):r.re+=parseFloat((o%2?\"-\":\"\")+c),a=o=0))}a+o>0&&s();break;case\"number\":r.im=0,r.re=t;break;default:s()}return isNaN(r.re)||isNaN(r.im),r}(t,e);this.re=r.re,this.im=r.im}f.prototype={re:0,im:0,sign:function(){var t=this.abs();return new f(this.re/t,this.im/t)},add:function(t,e){var r=new f(t,e);return this.isInfinite()&&r.isInfinite()?f.NAN:this.isInfinite()||r.isInfinite()?f.INFINITY:new f(this.re+r.re,this.im+r.im)},sub:function(t,e){var r=new f(t,e);return this.isInfinite()&&r.isInfinite()?f.NAN:this.isInfinite()||r.isInfinite()?f.INFINITY:new f(this.re-r.re,this.im-r.im)},mul:function(t,e){var r=new f(t,e);return this.isInfinite()&&r.isZero()||this.isZero()&&r.isInfinite()?f.NAN:this.isInfinite()||r.isInfinite()?f.INFINITY:0===r.im&&0===this.im?new f(this.re*r.re,0):new f(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(t,e){var r=new f(t,e);if(this.isZero()&&r.isZero()||this.isInfinite()&&r.isInfinite())return f.NAN;if(this.isInfinite()||r.isZero())return f.INFINITY;if(this.isZero()||r.isInfinite())return f.ZERO;t=this.re,e=this.im;var n,i,a=r.re,o=r.im;return 0===o?new f(t/a,e/a):Math.abs(a)<Math.abs(o)?new f((t*(i=a/o)+e)/(n=a*i+o),(e*i-t)/n):new f((t+e*(i=o/a))/(n=o*i+a),(e-t*i)/n)},pow:function(t,e){var r=new f(t,e);if(t=this.re,e=this.im,r.isZero())return f.ONE;if(0===r.im){if(0===e&&t>0)return new f(Math.pow(t,r.re),0);if(0===t)switch((r.re%4+4)%4){case 0:return new f(Math.pow(e,r.re),0);case 1:return new f(0,Math.pow(e,r.re));case 2:return new f(-Math.pow(e,r.re),0);case 3:return new f(0,-Math.pow(e,r.re))}}if(0===t&&0===e&&r.re>0&&r.im>=0)return f.ZERO;var n=Math.atan2(e,t),i=u(t,e);return t=Math.exp(r.re*i-r.im*n),e=r.im*i+r.re*n,new f(t*Math.cos(e),t*Math.sin(e))},sqrt:function(){var t,e,r=this.re,n=this.im,i=this.abs();if(r>=0){if(0===n)return new f(Math.sqrt(r),0);t=.5*Math.sqrt(2*(i+r))}else t=Math.abs(n)/Math.sqrt(2*(i-r));return e=r<=0?.5*Math.sqrt(2*(i-r)):Math.abs(n)/Math.sqrt(2*(i+r)),new f(t,n<0?-e:e)},exp:function(){var t=Math.exp(this.re);return this.im,new f(t*Math.cos(this.im),t*Math.sin(this.im))},expm1:function(){var t=this.re,e=this.im;return new f(Math.expm1(t)*Math.cos(e)+function(t){var e=Math.PI/4;if(-e>t||t>e)return Math.cos(t)-1;var r=t*t;return r*(r*(r*(r*(r*(r*(r*(r/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5)}(e),Math.exp(t)*Math.sin(e))},log:function(){var t=this.re,e=this.im;return new f(u(t,e),Math.atan2(e,t))},abs:function(){return t=this.re,e=this.im,r=Math.abs(t),n=Math.abs(e),r<3e3&&n<3e3?Math.sqrt(r*r+n*n):(r<n?(r=n,n=t/e):n=e/t,r*Math.sqrt(1+n*n));var t,e,r,n},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var t=this.re,e=this.im;return new f(Math.sin(t)*a(e),Math.cos(t)*o(e))},cos:function(){var t=this.re,e=this.im;return new f(Math.cos(t)*a(e),-Math.sin(t)*o(e))},tan:function(){var t=2*this.re,e=2*this.im,r=Math.cos(t)+a(e);return new f(Math.sin(t)/r,o(e)/r)},cot:function(){var t=2*this.re,e=2*this.im,r=Math.cos(t)-a(e);return new f(-Math.sin(t)/r,o(e)/r)},sec:function(){var t=this.re,e=this.im,r=.5*a(2*e)+.5*Math.cos(2*t);return new f(Math.cos(t)*a(e)/r,Math.sin(t)*o(e)/r)},csc:function(){var t=this.re,e=this.im,r=.5*a(2*e)-.5*Math.cos(2*t);return new f(Math.sin(t)*a(e)/r,-Math.cos(t)*o(e)/r)},asin:function(){var t=this.re,e=this.im,r=new f(e*e-t*t+1,-2*t*e).sqrt(),n=new f(r.re-e,r.im+t).log();return new f(n.im,-n.re)},acos:function(){var t=this.re,e=this.im,r=new f(e*e-t*t+1,-2*t*e).sqrt(),n=new f(r.re-e,r.im+t).log();return new f(Math.PI/2-n.im,n.re)},atan:function(){var t=this.re,e=this.im;if(0===t){if(1===e)return new f(0,1/0);if(-1===e)return new f(0,-1/0)}var r=t*t+(1-e)*(1-e),n=new f((1-e*e-t*t)/r,-2*t/r).log();return new f(-.5*n.im,.5*n.re)},acot:function(){var t=this.re,e=this.im;if(0===e)return new f(Math.atan2(1,t),0);var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).atan():new f(0!==t?t/0:0,0!==e?-e/0:0).atan()},asec:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new f(0,1/0);var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).acos():new f(0!==t?t/0:0,0!==e?-e/0:0).acos()},acsc:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new f(Math.PI/2,1/0);var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).asin():new f(0!==t?t/0:0,0!==e?-e/0:0).asin()},sinh:function(){var t=this.re,e=this.im;return new f(o(t)*Math.cos(e),a(t)*Math.sin(e))},cosh:function(){var t=this.re,e=this.im;return new f(a(t)*Math.cos(e),o(t)*Math.sin(e))},tanh:function(){var t=2*this.re,e=2*this.im,r=a(t)+Math.cos(e);return new f(o(t)/r,Math.sin(e)/r)},coth:function(){var t=2*this.re,e=2*this.im,r=a(t)-Math.cos(e);return new f(o(t)/r,-Math.sin(e)/r)},csch:function(){var t=this.re,e=this.im,r=Math.cos(2*e)-a(2*t);return new f(-2*o(t)*Math.cos(e)/r,2*a(t)*Math.sin(e)/r)},sech:function(){var t=this.re,e=this.im,r=Math.cos(2*e)+a(2*t);return new f(2*a(t)*Math.cos(e)/r,-2*o(t)*Math.sin(e)/r)},asinh:function(){var t=this.im;this.im=-this.re,this.re=t;var e=this.asin();return this.re=-this.im,this.im=t,t=e.re,e.re=-e.im,e.im=t,e},acosh:function(){var t=this.acos();if(t.im<=0){var e=t.re;t.re=-t.im,t.im=e}else{e=t.im;t.im=-t.re,t.re=e}return t},atanh:function(){var t=this.re,e=this.im,r=t>1&&0===e,n=1-t,i=1+t,a=n*n+e*e,o=0!==a?new f((i*n-e*e)/a,(e*n+i*e)/a):new f(-1!==t?t/0:0,0!==e?e/0:0),s=o.re;return o.re=u(o.re,o.im)/2,o.im=Math.atan2(o.im,s)/2,r&&(o.im=-o.im),o},acoth:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new f(0,Math.PI/2);var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).atanh():new f(0!==t?t/0:0,0!==e?-e/0:0).atanh()},acsch:function(){var t=this.re,e=this.im;if(0===e)return new f(0!==t?Math.log(t+Math.sqrt(t*t+1)):1/0,0);var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).asinh():new f(0!==t?t/0:0,0!==e?-e/0:0).asinh()},asech:function(){var t=this.re,e=this.im;if(this.isZero())return f.INFINITY;var r=t*t+e*e;return 0!==r?new f(t/r,-e/r).acosh():new f(0!==t?t/0:0,0!==e?-e/0:0).acosh()},inverse:function(){if(this.isZero())return f.INFINITY;if(this.isInfinite())return f.ZERO;var t=this.re,e=this.im,r=t*t+e*e;return new f(t/r,-e/r)},conjugate:function(){return new f(this.re,-this.im)},neg:function(){return new f(-this.re,-this.im)},ceil:function(t){return t=Math.pow(10,t||0),new f(Math.ceil(this.re*t)/t,Math.ceil(this.im*t)/t)},floor:function(t){return t=Math.pow(10,t||0),new f(Math.floor(this.re*t)/t,Math.floor(this.im*t)/t)},round:function(t){return t=Math.pow(10,t||0),new f(Math.round(this.re*t)/t,Math.round(this.im*t)/t)},equals:function(t,e){var r=new f(t,e);return Math.abs(r.re-this.re)<=f.EPSILON&&Math.abs(r.im-this.im)<=f.EPSILON},clone:function(){return new f(this.re,this.im)},toString:function(){var t=this.re,e=this.im,r=\"\";return this.isNaN()?\"NaN\":this.isInfinite()?\"Infinity\":(Math.abs(t)<f.EPSILON&&(t=0),Math.abs(e)<f.EPSILON&&(e=0),0===e?r+t:(0!==t?(r+=t,r+=\" \",e<0?(e=-e,r+=\"-\"):r+=\"+\",r+=\" \"):e<0&&(e=-e,r+=\"-\"),1!==e&&(r+=e),r+\"i\"))},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isNaN(this.re)||isNaN(this.im)})),isZero:function(){return 0===this.im&&0===this.re},isFinite:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isFinite(this.re)&&isFinite(this.im)})),isInfinite:function(){return!(this.isNaN()||this.isFinite())}},f.ZERO=new f(0,0),f.ONE=new f(1,0),f.I=new f(0,1),f.PI=new f(Math.PI,0),f.E=new f(Math.E,0),f.INFINITY=new f(1/0,1/0),f.NAN=new f(NaN,NaN),f.EPSILON=1e-15,void 0===(n=function(){return f}.apply(e,[]))||(t.exports=n)}()},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];\".\"===i?t.splice(n,1):\"..\"===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift(\"..\");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e=\"\",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if(\"string\"!=typeof o)throw new TypeError(\"Arguments to path.resolve must be strings\");o&&(e=o+\"/\"+e,i=\"/\"===o.charAt(0))}return(i?\"/\":\"\")+(e=r(n(e.split(\"/\"),(function(t){return!!t})),!i).join(\"/\"))||\".\"},e.normalize=function(t){var a=e.isAbsolute(t),o=\"/\"===i(t,-1);return(t=r(n(t.split(\"/\"),(function(t){return!!t})),!a).join(\"/\"))||a||(t=\".\"),t&&o&&(t+=\"/\"),(a?\"/\":\"\")+t},e.isAbsolute=function(t){return\"/\"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"Arguments to path.join must be strings\");return t})).join(\"/\"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&\"\"===t[e];e++);for(var r=t.length-1;r>=0&&\"\"===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split(\"/\")),a=n(r.split(\"/\")),o=Math.min(i.length,a.length),s=o,u=0;u<o;u++)if(i[u]!==a[u]){s=u;break}var f=[];for(u=s;u<i.length;u++)f.push(\"..\");return(f=f.concat(a.slice(s))).join(\"/\")},e.sep=\"/\",e.delimiter=\":\",e.dirname=function(t){if(\"string\"!=typeof t&&(t+=\"\"),0===t.length)return\".\";for(var e=t.charCodeAt(0),r=47===e,n=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!i){n=a;break}}else i=!1;return-1===n?r?\"/\":\".\":r&&1===n?\"/\":t.slice(0,n)},e.basename=function(t,e){var r=function(t){\"string\"!=typeof t&&(t+=\"\");var e,r=0,n=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?\"\":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){\"string\"!=typeof t&&(t+=\"\");for(var e=-1,r=0,n=-1,i=!0,a=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===n&&(i=!1,n=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!i){r=o+1;break}}return-1===e||-1===n||0===a||1===a&&e===n-1&&e===r+1?\"\":t.slice(e,n)};var i=\"b\"===\"ab\".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(7))},function(t,e){var r,n,i=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function o(){throw new Error(\"clearTimeout has not been defined\")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r=\"function\"==typeof setTimeout?setTimeout:a}catch(t){r=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var u,f=[],c=!1,h=-1;function l(){c&&u&&(c=!1,u.length?f=u.concat(f):h=-1,f.length&&p())}function p(){if(!c){var t=s(l);c=!0;for(var e=f.length;e;){for(u=f,f=[];++h<e;)u&&u[h].run();h=-1,e=f.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];f.push(new d(t,e)),1!==f.length||c||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title=\"browser\",i.browser=!0,i.env={},i.argv=[],i.version=\"\",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error(\"process.binding is not supported\")},i.cwd=function(){return\"/\"},i.chdir=function(t){throw new Error(\"process.chdir is not supported\")},i.umask=function(){return 0}},function(t,e){function r(){return t.exports=r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,r.apply(this,arguments)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new Error(\"define cannot be used indirect\")}},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(t){\"object\"===(\"undefined\"==typeof window?\"undefined\":r(window))&&(n=window)}t.exports=n},function(t,e){},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}!function(r){\"use strict\";var i={s:1,n:0,d:1};function a(t,e){if(isNaN(t=parseInt(t,10)))throw l();return t*e}function o(t,e){if(0===e)throw h();var r=Object.create(c.prototype);r.s=t<0?-1:1;var n=f(t=t<0?-t:t,e);return r.n=t/n,r.d=e/n,r}function s(t){for(var e={},r=t,n=2,i=4;i<=r;){for(;r%n==0;)r/=n,e[n]=(e[n]||0)+1;i+=1+2*n++}return r!==t?r>1&&(e[r]=(e[r]||0)+1):e[t]=(e[t]||0)+1,e}var u=function(t,e){var r,o=0,s=1,u=1,f=0,c=0,d=0,m=1,y=1,b=0,g=1,v=1,w=1,_=1e7;if(null==t);else if(void 0!==e){if(u=(o=t)*(s=e),o%1!=0||s%1!=0)throw p()}else switch(n(t)){case\"object\":if(\"d\"in t&&\"n\"in t)o=t.n,s=t.d,\"s\"in t&&(o*=t.s);else{if(!(0 in t))throw l();o=t[0],1 in t&&(s=t[1])}u=o*s;break;case\"number\":if(t<0&&(u=t,t=-t),t%1==0)o=t;else if(t>0){for(t>=1&&(t/=y=Math.pow(10,Math.floor(1+Math.log(t)/Math.LN10)));g<=_&&w<=_;){if(t===(r=(b+v)/(g+w))){g+w<=_?(o=b+v,s=g+w):w>g?(o=v,s=w):(o=b,s=g);break}t>r?(b+=v,g+=w):(v+=b,w+=g),g>_?(o=v,s=w):(o=b,s=g)}o*=y}else(isNaN(t)||isNaN(e))&&(s=o=NaN);break;case\"string\":if(null===(g=t.match(/\\d+|./g)))throw l();if(\"-\"===g[b]?(u=-1,b++):\"+\"===g[b]&&b++,g.length===b+1?c=a(g[b++],u):\".\"===g[b+1]||\".\"===g[b]?(\".\"!==g[b]&&(f=a(g[b++],u)),(++b+1===g.length||\"(\"===g[b+1]&&\")\"===g[b+3]||\"'\"===g[b+1]&&\"'\"===g[b+3])&&(c=a(g[b],u),m=Math.pow(10,g[b].length),b++),(\"(\"===g[b]&&\")\"===g[b+2]||\"'\"===g[b]&&\"'\"===g[b+2])&&(d=a(g[b+1],u),y=Math.pow(10,g[b+1].length)-1,b+=3)):\"/\"===g[b+1]||\":\"===g[b+1]?(c=a(g[b],u),m=a(g[b+2],1),b+=3):\"/\"===g[b+3]&&\" \"===g[b+1]&&(f=a(g[b],u),c=a(g[b+2],u),m=a(g[b+4],1),b+=5),g.length<=b){u=o=d+(s=m*y)*f+y*c;break}default:throw l()}if(0===s)throw h();i.s=u<0?-1:1,i.n=Math.abs(o),i.d=Math.abs(s)};function f(t,e){if(!t)return e;if(!e)return t;for(;;){if(!(t%=e))return e;if(!(e%=t))return t}}function c(t,e){if(u(t,e),!(this instanceof c))return o(i.s*i.n,i.d);t=f(i.d,i.n),this.s=i.s,this.n=i.n/t,this.d=i.d/t}var h=function(){return new Error(\"Division by Zero\")},l=function(){return new Error(\"Invalid argument\")},p=function(){return new Error(\"Parameters must be integer\")};c.prototype={s:1,n:0,d:1,abs:function(){return o(this.n,this.d)},neg:function(){return o(-this.s*this.n,this.d)},add:function(t,e){return u(t,e),o(this.s*this.n*i.d+i.s*this.d*i.n,this.d*i.d)},sub:function(t,e){return u(t,e),o(this.s*this.n*i.d-i.s*this.d*i.n,this.d*i.d)},mul:function(t,e){return u(t,e),o(this.s*i.s*this.n*i.n,this.d*i.d)},div:function(t,e){return u(t,e),o(this.s*i.s*this.n*i.d,this.d*i.n)},clone:function(){return o(this.s*this.n,this.d)},mod:function(t,e){if(isNaN(this.n)||isNaN(this.d))return new c(NaN);if(void 0===t)return o(this.s*this.n%this.d,1);if(u(t,e),0===i.n&&0===this.d)throw h();return o(this.s*(i.d*this.n)%(i.n*this.d),i.d*this.d)},gcd:function(t,e){return u(t,e),o(f(i.n,this.n)*f(i.d,this.d),i.d*this.d)},lcm:function(t,e){return u(t,e),0===i.n&&0===this.n?o(0,1):o(i.n*this.n,f(i.n,this.n)*f(i.d,this.d))},ceil:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):o(Math.ceil(t*this.s*this.n/this.d),t)},floor:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):o(Math.floor(t*this.s*this.n/this.d),t)},round:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):o(Math.round(t*this.s*this.n/this.d),t)},inverse:function(){return o(this.s*this.d,this.n)},pow:function(t,e){if(u(t,e),1===i.d)return i.s<0?o(Math.pow(this.s*this.d,i.n),Math.pow(this.n,i.n)):o(Math.pow(this.s*this.n,i.n),Math.pow(this.d,i.n));if(this.s<0)return null;var r=s(this.n),n=s(this.d),a=1,f=1;for(var c in r)if(\"1\"!==c){if(\"0\"===c){a=0;break}if(r[c]*=i.n,r[c]%i.d!=0)return null;r[c]/=i.d,a*=Math.pow(c,r[c])}for(var c in n)if(\"1\"!==c){if(n[c]*=i.n,n[c]%i.d!=0)return null;n[c]/=i.d,f*=Math.pow(c,n[c])}return i.s<0?o(f,a):o(a,f)},equals:function(t,e){return u(t,e),this.s*this.n*i.d==i.s*i.n*this.d},compare:function(t,e){u(t,e);var r=this.s*this.n*i.d-i.s*i.n*this.d;return(0<r)-(r<0)},simplify:function(t){if(isNaN(this.n)||isNaN(this.d))return this;t=t||.001;for(var e=this.abs(),r=e.toContinued(),n=1;n<r.length;n++){for(var i=o(r[n-1],1),a=n-2;a>=0;a--)i=i.inverse().add(r[a]);if(Math.abs(i.sub(e).valueOf())<t)return i.mul(this.s)}return this},divisible:function(t,e){return u(t,e),!(!(i.n*this.d)||this.n*i.d%(i.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(t){var e,r=\"\",n=this.n,i=this.d;return this.s<0&&(r+=\"-\"),1===i?r+=n:(t&&(e=Math.floor(n/i))>0&&(r+=e,r+=\" \",n%=i),r+=n,r+=\"/\",r+=i),r},toLatex:function(t){var e,r=\"\",n=this.n,i=this.d;return this.s<0&&(r+=\"-\"),1===i?r+=n:(t&&(e=Math.floor(n/i))>0&&(r+=e,n%=i),r+=\"\\\\frac{\",r+=n,r+=\"}{\",r+=i,r+=\"}\"),r},toContinued:function(){var t,e=this.n,r=this.d,n=[];if(isNaN(e)||isNaN(r))return n;do{n.push(Math.floor(e/r)),t=e%r,e=r,r=t}while(1!==e);return n},toString:function(t){var e=this.n,r=this.d;if(isNaN(e)||isNaN(r))return\"NaN\";t=t||15;var n=function(t,e){for(;e%2==0;e/=2);for(;e%5==0;e/=5);if(1===e)return 0;for(var r=10%e,n=1;1!==r;n++)if(r=10*r%e,n>2e3)return 0;return n}(0,r),i=function(t,e,r){for(var n=1,i=function(t,e,r){for(var n=1;e>0;t=t*t%r,e>>=1)1&e&&(n=n*t%r);return n}(10,r,e),a=0;a<300;a++){if(n===i)return a;n=10*n%e,i=10*i%e}return 0}(0,r,n),a=this.s<0?\"-\":\"\";if(a+=e/r|0,e%=r,(e*=10)&&(a+=\".\"),n){for(var o=i;o--;)a+=e/r|0,e%=r,e*=10;a+=\"(\";for(o=n;o--;)a+=e/r|0,e%=r,e*=10;a+=\")\"}else for(o=t;e&&o--;)a+=e/r|0,e%=r,e*=10;return a}},\"object\"===n(e)?(Object.defineProperty(c,\"__esModule\",{value:!0}),c.default=c,c.Fraction=c,t.exports=c):r.Fraction=c}(this)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,\"loaded\",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,\"id\",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},a=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(\" \")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(a,(function(t){if(\"%%\"===t)return\"%\";if(r>=i)return t;switch(t){case\"%s\":return String(n[r++]);case\"%d\":return Number(n[r++]);case\"%j\":try{return JSON.stringify(n[r++])}catch(t){return\"[Circular]\"}default:return t}})),s=n[r];r<i;s=n[++r])y(s)||!_(s)?o+=\" \"+s:o+=\" \"+u(s);return o},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation&&console.trace(n),i=!0}return r.apply(this,arguments)}};var o,s={};function u(t,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),h(n,t,n.depth)}function f(t,e){var r=u.styles[e];return r?\"\u001b[\"+u.colors[r][0]+\"m\"+t+\"\u001b[\"+u.colors[r][1]+\"m\":t}function c(t,e){return t}function h(t,r,n){if(t.customInspect&&r&&D(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return g(i)||(i=h(t,i,n)),i}var a=function(t,e){if(v(e))return t.stylize(\"undefined\",\"undefined\");if(g(e)){var r=\"'\"+JSON.stringify(e).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return t.stylize(r,\"string\")}if(b(e))return t.stylize(\"\"+e,\"number\");if(m(e))return t.stylize(\"\"+e,\"boolean\");if(y(e))return t.stylize(\"null\",\"null\")}(t,r);if(a)return a;var o=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),E(r)&&(o.indexOf(\"message\")>=0||o.indexOf(\"description\")>=0))return l(r);if(0===o.length){if(D(r)){var u=r.name?\": \"+r.name:\"\";return t.stylize(\"[Function\"+u+\"]\",\"special\")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),\"regexp\");if(x(r))return t.stylize(Date.prototype.toString.call(r),\"date\");if(E(r))return l(r)}var f,c=\"\",_=!1,k=[\"{\",\"}\"];(d(r)&&(_=!0,k=[\"[\",\"]\"]),D(r))&&(c=\" [Function\"+(r.name?\": \"+r.name:\"\")+\"]\");return w(r)&&(c=\" \"+RegExp.prototype.toString.call(r)),x(r)&&(c=\" \"+Date.prototype.toUTCString.call(r)),E(r)&&(c=\" \"+l(r)),0!==o.length||_&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),\"regexp\"):t.stylize(\"[Object]\",\"special\"):(t.seen.push(r),f=_?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)M(e,String(o))?a.push(p(t,e,r,n,String(o),!0)):a.push(\"\");return i.forEach((function(i){i.match(/^\\d+$/)||a.push(p(t,e,r,n,i,!0))})),a}(t,r,n,s,o):o.map((function(e){return p(t,r,n,s,e,_)})),t.seen.pop(),function(t,e,r){var n=t.reduce((function(t,e){return e.indexOf(\"\\n\")>=0&&0,t+e.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1}),0);if(n>60)return r[0]+(\"\"===e?\"\":e+\"\\n \")+\" \"+t.join(\",\\n  \")+\" \"+r[1];return r[0]+e+\" \"+t.join(\", \")+\" \"+r[1]}(f,c,k)):k[0]+c+k[1]}function l(t){return\"[\"+Error.prototype.toString.call(t)+\"]\"}function p(t,e,r,n,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize(\"[Getter/Setter]\",\"special\"):t.stylize(\"[Getter]\",\"special\"):u.set&&(s=t.stylize(\"[Setter]\",\"special\")),M(n,i)||(o=\"[\"+i+\"]\"),s||(t.seen.indexOf(u.value)<0?(s=y(r)?h(t,u.value,null):h(t,u.value,r-1)).indexOf(\"\\n\")>-1&&(s=a?s.split(\"\\n\").map((function(t){return\"  \"+t})).join(\"\\n\").substr(2):\"\\n\"+s.split(\"\\n\").map((function(t){return\"   \"+t})).join(\"\\n\")):s=t.stylize(\"[Circular]\",\"special\")),v(o)){if(a&&i.match(/^\\d+$/))return s;(o=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,\"name\")):(o=o.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),o=t.stylize(o,\"string\"))}return o+\": \"+s}function d(t){return Array.isArray(t)}function m(t){return\"boolean\"==typeof t}function y(t){return null===t}function b(t){return\"number\"==typeof t}function g(t){return\"string\"==typeof t}function v(t){return void 0===t}function w(t){return _(t)&&\"[object RegExp]\"===k(t)}function _(t){return\"object\"===n(t)&&null!==t}function x(t){return _(t)&&\"[object Date]\"===k(t)}function E(t){return _(t)&&(\"[object Error]\"===k(t)||t instanceof Error)}function D(t){return\"function\"==typeof t}function k(t){return Object.prototype.toString.call(t)}function A(t){return t<10?\"0\"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(v(o)&&(o=t.env.NODE_DEBUG||\"\"),r=r.toUpperCase(),!s[r])if(new RegExp(\"\\\\b\"+r+\"\\\\b\",\"i\").test(o)){t.pid;s[r]=function(){e.format.apply(e,arguments)}}else s[r]=function(){};return s[r]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},e.isArray=d,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=g,e.isSymbol=function(t){return\"symbol\"===n(t)},e.isUndefined=v,e.isRegExp=w,e.isObject=_,e.isDate=x,e.isError=E,e.isFunction=D,e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===n(t)||void 0===t},e.isBuffer=r(144);var S=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function M(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;t=new Date,r=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(\":\"),[t.getDate(),S[t.getMonth()],r].join(\" \"),e.format.apply(e,arguments)},e.inherits=r(145),e._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var F=\"undefined\"!=typeof Symbol?Symbol(\"util.promisify.custom\"):void 0;function C(t,e){if(!t){var r=new Error(\"Promise was rejected with a falsy value\");r.reason=t,t=r}return e(t)}e.promisify=function(t){if(\"function\"!=typeof t)throw new TypeError('The \"original\" argument must be of type Function');if(F&&t[F]){var e;if(\"function\"!=typeof(e=t[F]))throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');return Object.defineProperty(e,F,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),F&&Object.defineProperty(e,F,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=F,e.callbackify=function(e){if(\"function\"!=typeof e)throw new TypeError('The \"original\" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if(\"function\"!=typeof i)throw new TypeError(\"The last argument must be of type Function\");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,r).then((function(e){t.nextTick(o,null,e)}),(function(e){t.nextTick(C,e,o)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,i(e)),r}}).call(this,r(7))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(\"object\"!==n(r))throw new TypeError(r+\"must be non-object\");for(var i in r)a(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,o;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)a=t[e],o.set(a,i),i+=a.length;return o}},s={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,r){var n,i,a;function o(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,o=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){u=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw a}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}a=function(){\"use strict\";function t(){return!0}function e(){return!1}function r(){}var n=\"Argument is not a typed-function.\",i=function i(){function a(t){return\"object\"===u(t)&&null!==t&&t.constructor===Object}var s,f,c=[{name:\"number\",test:function(t){return\"number\"==typeof t}},{name:\"string\",test:function(t){return\"string\"==typeof t}},{name:\"boolean\",test:function(t){return\"boolean\"==typeof t}},{name:\"Function\",test:function(t){return\"function\"==typeof t}},{name:\"Array\",test:Array.isArray},{name:\"Date\",test:function(t){return t instanceof Date}},{name:\"RegExp\",test:function(t){return t instanceof RegExp}},{name:\"Object\",test:a},{name:\"null\",test:function(t){return null===t}},{name:\"undefined\",test:function(t){return void 0===t}}],h={name:\"any\",test:t,isAny:!0},l=0,p={createCount:0};function d(t){var e=s.get(t);if(e)return e;var r,n,i='Unknown type \"'+t+'\"',a=t.toLowerCase(),u=o(f);try{for(u.s();!(n=u.n()).done;)if((r=n.value).toLowerCase()===a){i+='. Did you mean \"'+r+'\" ?';break}}catch(t){u.e(t)}finally{u.f()}throw new TypeError(i)}function m(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"any\",r=e?d(e).index:f.length,n=[],i=0;i<t.length;++i){if(!t[i]||\"string\"!=typeof t[i].name||\"function\"!=typeof t[i].test)throw new TypeError(\"Object with properties {name: string, test: function} expected\");var a=t[i].name;if(s.has(a))throw new TypeError('Duplicate type name \"'+a+'\"');n.push(a),s.set(a,{name:a,test:t[i].test,isAny:t[i].isAny,index:r+i,conversionsTo:[]})}var o=f.slice(r);f=f.slice(0,r).concat(n).concat(o);for(var u=r+n.length;u<f.length;++u)s.get(f[u]).index=u}function y(){s=new Map,f=[],l=0,m([h],!1)}function b(t){var e=f.filter((function(e){var r=s.get(e);return!r.isAny&&r.test(t)}));return e.length?e:[\"any\"]}function g(t){return t&&\"function\"==typeof t&&\"_typedFunctionData\"in t}function v(t,e,r){if(!g(t))throw new TypeError(n);var i=r&&r.exact,a=D(Array.isArray(e)?e.join(\",\"):e),s=w(a);if(!i||s in t.signatures){var u=t._typedFunctionData.signatureMap.get(s);if(u)return u}var f,c,h,l=a.length;if(i)for(c in f=[],t.signatures)f.push(t._typedFunctionData.signatureMap.get(c));else f=t._typedFunctionData.signatures;for(var p=0;p<l;++p){var d,m=a[p],y=[],b=void 0,v=o(f);try{var _=function(){var t=M((b=d.value).params,p);if(!t||m.restParam&&!t.restParam)return 0;if(!t.hasAny){var e=E(t);if(m.types.some((function(t){return!e.has(t.name)})))return 0}y.push(b)};for(v.s();!(d=v.n()).done;)_()}catch(t){v.e(t)}finally{v.f()}if(0===(f=y).length)break}var x,k=o(f);try{for(k.s();!(x=k.n()).done;)if((h=x.value).params.length<=l)return h}catch(t){k.e(t)}finally{k.f()}throw new TypeError(\"Signature not found (signature: \"+(t.name||\"unnamed\")+\"(\"+w(a,\", \")+\"))\")}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\",\";return t.map((function(t){return t.name})).join(e)}function _(t){var e=0===t.indexOf(\"...\"),r=(e?t.length>3?t.slice(3):\"any\":t).split(\"|\").map((function(t){return d(t.trim())})),n=!1,i=e?\"...\":\"\";return{types:r.map((function(t){return n=t.isAny||n,i+=t.name+\"|\",{name:t.name,typeIndex:t.index,test:t.test,isAny:t.isAny,conversion:null,conversionIndex:-1}})),name:i.slice(0,-1),hasAny:n,hasConversion:!1,restParam:e}}function x(t){var e=function(t){if(0===t.length)return[];var e=t.map(d);t.length>1&&e.sort((function(t,e){return t.index-e.index}));var r=e[0].conversionsTo;if(1===t.length)return r;r=r.concat([]);for(var n=new Set(t),i=1;i<e.length;++i){var a,s=void 0,u=o(e[i].conversionsTo);try{for(u.s();!(a=u.n()).done;)s=a.value,n.has(s.from)||(r.push(s),n.add(s.from))}catch(t){u.e(t)}finally{u.f()}}return r}(t.types.map((function(t){return t.name}))),r=t.hasAny,n=t.name,i=e.map((function(t){var e=d(t.from);return r=e.isAny||r,n+=\"|\"+t.from,{name:t.from,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:t,conversionIndex:t.index}}));return{types:t.types.concat(i),name:n,hasAny:r,hasConversion:i.length>0,restParam:t.restParam}}function E(t){return t.typeSet||(t.typeSet=new Set,t.types.forEach((function(e){return t.typeSet.add(e.name)}))),t.typeSet}function D(t){var e=[];if(\"string\"!=typeof t)throw new TypeError(\"Signatures must be strings\");var r=t.trim();if(\"\"===r)return e;for(var n=r.split(\",\"),i=0;i<n.length;++i){var a=_(n[i].trim());if(a.restParam&&i!==n.length-1)throw new SyntaxError('Unexpected rest parameter \"'+n[i]+'\": only allowed for the last parameter');if(0===a.types.length)return null;e.push(a)}return e}function k(t){var e=q(t);return!!e&&e.restParam}function A(e){if(e&&0!==e.types.length){if(1===e.types.length)return d(e.types[0].name).test;if(2===e.types.length){var r=d(e.types[0].name).test,n=d(e.types[1].name).test;return function(t){return r(t)||n(t)}}var i=e.types.map((function(t){return d(t.name).test}));return function(t){for(var e=0;e<i.length;e++)if(i[e](t))return!0;return!1}}return t}function S(t){var e,r,n;if(k(t)){var i=(e=Z(t).map(A)).length,a=A(q(t));return function(t){for(var r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return function(t){for(var e=i;e<t.length;e++)if(!a(t[e]))return!1;return!0}(t)&&t.length>=i+1}}return 0===t.length?function(t){return 0===t.length}:1===t.length?(r=A(t[0]),function(t){return r(t[0])&&1===t.length}):2===t.length?(r=A(t[0]),n=A(t[1]),function(t){return r(t[0])&&n(t[1])&&2===t.length}):(e=t.map(A),function(t){for(var r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return t.length===e.length})}function M(t,e){return e<t.length?t[e]:k(t)?q(t):null}function F(t,e){var r=M(t,e);return r?E(r):new Set}function C(t){return null===t.conversion||void 0===t.conversion}function B(t,e){var r=new Set;return t.forEach((function(t){var n,i,a=o(F(t.params,e));try{for(a.s();!(i=a.n()).done;)n=i.value,r.add(n)}catch(t){a.e(t)}finally{a.f()}})),r.has(\"any\")?[\"any\"]:Array.from(r)}function O(t,e,r){var n,i,a,o,s=t||\"unnamed\",u=r,f=function(){var t=[];if(u.forEach((function(r){var n=A(M(r.params,a));(a<r.params.length||k(r.params))&&n(e[a])&&t.push(r)})),0===t.length){if((i=B(u,a)).length>0){var r=b(e[a]);return(n=new TypeError(\"Unexpected type of argument in function \"+s+\" (expected: \"+i.join(\" or \")+\", actual: \"+r.join(\" | \")+\", index: \"+a+\")\")).data={category:\"wrongType\",fn:s,index:a,actual:r,expected:i},{v:n}}}else u=t};for(a=0;a<e.length;a++)if(o=f())return o.v;var c=u.map((function(t){return k(t.params)?1/0:t.params.length}));if(e.length<Math.min.apply(null,c))return i=B(u,a),(n=new TypeError(\"Too few arguments in function \"+s+\" (expected: \"+i.join(\" or \")+\", index: \"+e.length+\")\")).data={category:\"tooFewArgs\",fn:s,index:e.length,expected:i},n;var h=Math.max.apply(null,c);if(e.length>h)return(n=new TypeError(\"Too many arguments in function \"+s+\" (expected: \"+h+\", actual: \"+e.length+\")\")).data={category:\"tooManyArgs\",fn:s,index:e.length,expectedLength:h},n;for(var l=[],p=0;p<e.length;++p)l.push(b(e[p]).join(\"|\"));return(n=new TypeError('Arguments of type \"'+l.join(\", \")+'\" do not match any of the defined signatures of function '+s+\".\")).data={category:\"mismatch\",actual:l},n}function I(t){for(var e=f.length+1,r=0;r<t.types.length;r++)C(t.types[r])&&(e=Math.min(e,t.types[r].typeIndex));return e}function T(t){for(var e=l+1,r=0;r<t.types.length;r++)C(t.types[r])||(e=Math.min(e,t.types[r].conversionIndex));return e}function P(t,e){if(t.hasAny){if(!e.hasAny)return 1}else if(e.hasAny)return-1;if(t.restParam){if(!e.restParam)return 1}else if(e.restParam)return-1;if(t.hasConversion){if(!e.hasConversion)return 1}else if(e.hasConversion)return-1;var r=I(t)-I(e);if(r<0)return-1;if(r>0)return 1;var n=T(t)-T(e);return n<0?-1:n>0?1:0}function L(t,e){var r=t.params,n=e.params,i=q(r),a=q(n),s=k(r),u=k(n);if(s&&i.hasAny){if(!u||!a.hasAny)return 1}else if(u&&a.hasAny)return-1;var f,c,h=0,l=0,p=o(r);try{for(p.s();!(c=p.n()).done;)(f=c.value).hasAny&&++h,f.hasConversion&&++l}catch(t){p.e(t)}finally{p.f()}var d,m=0,y=0,b=o(n);try{for(b.s();!(d=b.n()).done;)(f=d.value).hasAny&&++m,f.hasConversion&&++y}catch(t){b.e(t)}finally{b.f()}if(h!==m)return h-m;if(s&&i.hasConversion){if(!u||!a.hasConversion)return 1}else if(u&&a.hasConversion)return-1;if(l!==y)return l-y;if(s){if(!u)return 1}else if(u)return-1;var g=(r.length-n.length)*(s?-1:1);if(0!==g)return g;for(var v,w=[],_=0,x=0;x<r.length;++x){var E=P(r[x],n[x]);w.push(E),_+=E}if(0!==_)return _;for(var D=0,A=w;D<A.length;D++)if(0!==(v=A[D]))return v;return 0}function N(t,e){var r=e;if(t.some((function(t){return t.hasConversion}))){var n=k(t),i=t.map(j);r=function(){for(var t=[],r=n?arguments.length-1:arguments.length,a=0;a<r;a++)t[a]=i[a](arguments[a]);return n&&(t[r]=arguments[r].map(i[r])),e.apply(this,t)}}var a=r;if(k(t)){var o=t.length-1;a=function(){return r.apply(this,W(arguments,0,o).concat([W(arguments,o)]))}}return a}function j(t){var e,r,n,i,a=[],o=[];switch(t.types.forEach((function(t){t.conversion&&(a.push(d(t.conversion.from).test),o.push(t.conversion.convert))})),o.length){case 0:return function(t){return t};case 1:return e=a[0],n=o[0],function(t){return e(t)?n(t):t};case 2:return e=a[0],r=a[1],n=o[0],i=o[1],function(t){return e(t)?n(t):r(t)?i(t):t};default:return function(t){for(var e=0;e<o.length;e++)if(a[e](t))return o[e](t);return t}}}function R(t){return function t(e,r,n){if(r<e.length){var i=e[r],a=[];if(i.restParam){var o=i.types.filter(C);o.length<i.types.length&&a.push({types:o,name:\"...\"+o.map((function(t){return t.name})).join(\"|\"),hasAny:o.some((function(t){return t.isAny})),hasConversion:!1,restParam:!0}),a.push(i)}else a=i.types.map((function(t){return{types:[t],name:t.name,hasAny:t.isAny,hasConversion:t.conversion,restParam:!1}}));return s=a,u=function(i){return t(e,r+1,n.concat([i]))},Array.prototype.concat.apply([],s.map(u))}return[n];var s,u}(t,0,[])}function z(t,e,r){var n,i,a=[],s=o(t);try{for(s.s();!(i=s.n()).done;){var u=r[n=i.value];if(\"number\"!=typeof u)throw new TypeError('No definition for referenced signature \"'+n+'\"');if(\"function\"!=typeof(u=e[u]))return!1;a.push(u)}}catch(t){s.e(t)}finally{s.f()}return a}function U(t,e,r){for(var n=function(t){return t.map((function(t){return J(t)?V(t.referToSelf.callback):X(t)?Y(t.referTo.references,t.referTo.callback):t}))}(t),i=new Array(n.length).fill(!1),a=!0;a;){a=!1;for(var o=!0,s=0;s<n.length;++s)if(!i[s]){var u=n[s];if(J(u))n[s]=u.referToSelf.callback(r),n[s].referToSelf=u.referToSelf,i[s]=!0,o=!1;else if(X(u)){var f=z(u.referTo.references,n,e);f?(n[s]=u.referTo.callback.apply(this,f),n[s].referTo=u.referTo,i[s]=!0,o=!1):a=!0}}if(o&&a)throw new SyntaxError(\"Circular reference detected in resolving typed.referTo\")}return n}function G(t,n){if(p.createCount++,0===Object.keys(n).length)throw new SyntaxError(\"No signatures provided\");p.warnAgainstDeprecatedThis&&function(t){var e=/\\bthis(\\(|\\.signatures\\b)/;Object.keys(t).forEach((function(r){var n=t[r];if(e.test(n.toString()))throw new SyntaxError(\"Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.\")}))}(n);var i,a=[],s=[],u={},f=[],c=function(){if(!Object.prototype.hasOwnProperty.call(n,i))return 0;var t=D(i);if(!t)return 0;a.forEach((function(e){if(function(t,e){for(var r=Math.max(t.length,e.length),n=0;n<r;n++){var i,a=F(t,n),s=!1,u=void 0,f=o(F(e,n));try{for(f.s();!(i=f.n()).done;)if(u=i.value,a.has(u)){s=!0;break}}catch(t){f.e(t)}finally{f.f()}if(!s)return!1}var c=t.length,h=e.length,l=k(t),p=k(e);return l?p?c===h:h>=c:p?c>=h:c===h}(e,t))throw new TypeError('Conflicting signatures \"'+w(e)+'\" and \"'+w(t)+'\".')})),a.push(t);var e=s.length;s.push(n[i]);var r,c,h=o(R(t.map(x)));try{for(h.s();!(c=h.n()).done;){var l=w(r=c.value);f.push({params:r,name:l,fn:e}),r.every((function(t){return!t.hasConversion}))&&(u[l]=e)}}catch(t){h.e(t)}finally{h.f()}};for(i in n)c();f.sort(L);var h,l=U(s,u,pt);for(h in u)Object.prototype.hasOwnProperty.call(u,h)&&(u[h]=l[u[h]]);for(var d=[],m=new Map,y=0,b=f;y<b.length;y++)h=b[y],m.has(h.name)||(h.fn=l[h.fn],d.push(h),m.set(h.name,h));for(var g=d[0]&&d[0].params.length<=2&&!k(d[0].params),v=d[1]&&d[1].params.length<=2&&!k(d[1].params),_=d[2]&&d[2].params.length<=2&&!k(d[2].params),E=d[3]&&d[3].params.length<=2&&!k(d[3].params),M=d[4]&&d[4].params.length<=2&&!k(d[4].params),C=d[5]&&d[5].params.length<=2&&!k(d[5].params),B=g&&v&&_&&E&&M&&C,O=0;O<d.length;++O)d[O].test=S(d[O].params);for(var I=g?A(d[0].params[0]):e,T=v?A(d[1].params[0]):e,P=_?A(d[2].params[0]):e,j=E?A(d[3].params[0]):e,z=M?A(d[4].params[0]):e,G=C?A(d[5].params[0]):e,H=g?A(d[0].params[1]):e,Z=v?A(d[1].params[1]):e,q=_?A(d[2].params[1]):e,W=E?A(d[3].params[1]):e,Y=M?A(d[4].params[1]):e,V=C?A(d[5].params[1]):e,X=0;X<d.length;++X)d[X].implementation=N(d[X].params,d[X].fn);var J=g?d[0].implementation:r,K=v?d[1].implementation:r,Q=_?d[2].implementation:r,$=E?d[3].implementation:r,tt=M?d[4].implementation:r,et=C?d[5].implementation:r,rt=g?d[0].params.length:-1,nt=v?d[1].params.length:-1,it=_?d[2].params.length:-1,at=E?d[3].params.length:-1,ot=M?d[4].params.length:-1,st=C?d[5].params.length:-1,ut=B?6:0,ft=d.length,ct=d.map((function(t){return t.test})),ht=d.map((function(t){return t.implementation})),lt=function(){for(var e=ut;e<ft;e++)if(ct[e](arguments))return ht[e].apply(this,arguments);return p.onMismatch(t,arguments,d)};function pt(t,e){return arguments.length===rt&&I(t)&&H(e)?J.apply(this,arguments):arguments.length===nt&&T(t)&&Z(e)?K.apply(this,arguments):arguments.length===it&&P(t)&&q(e)?Q.apply(this,arguments):arguments.length===at&&j(t)&&W(e)?$.apply(this,arguments):arguments.length===ot&&z(t)&&Y(e)?tt.apply(this,arguments):arguments.length===st&&G(t)&&V(e)?et.apply(this,arguments):lt.apply(this,arguments)}try{Object.defineProperty(pt,\"name\",{value:t})}catch(t){}return pt.signatures=u,pt._typedFunctionData={signatures:d,signatureMap:m},pt}function H(t,e,r){throw O(t,e,r)}function Z(t){return W(t,0,t.length-1)}function q(t){return t[t.length-1]}function W(t,e,r){return Array.prototype.slice.call(t,e,r)}function Y(t,e){return{referTo:{references:t,callback:e}}}function V(t){if(\"function\"!=typeof t)throw new TypeError(\"Callback function expected as first argument\");return{referToSelf:{callback:t}}}function X(t){return t&&\"object\"===u(t.referTo)&&Array.isArray(t.referTo.references)&&\"function\"==typeof t.referTo.callback}function J(t){return t&&\"object\"===u(t.referToSelf)&&\"function\"==typeof t.referToSelf.callback}function K(t,e){if(!t)return e;if(e&&e!==t){var r=new Error(\"Function names do not match (expected: \"+t+\", actual: \"+e+\")\");throw r.data={actual:e,expected:t},r}return t}function Q(t){var e;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(g(t[r])||\"string\"==typeof t[r].signature)&&(e=K(e,t[r].name));return e}function $(t,e){var r;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(r in t&&e[r]!==t[r]){var n=new Error('Signature \"'+r+'\" is defined twice');throw n.data={signature:r,sourceFunction:e[r],destFunction:t[r]},n}t[r]=e[r]}}y(),m(c);var tt=p;function et(t){if(!t||\"string\"!=typeof t.from||\"string\"!=typeof t.to||\"function\"!=typeof t.convert)throw new TypeError(\"Object with properties {from: string, to: string, convert: function} expected\");if(t.to===t.from)throw new SyntaxError('Illegal to define conversion from \"'+t.from+'\" to itself.')}return p=function(t){for(var e=\"string\"==typeof t,r=e?t:\"\",n={},i=e?1:0;i<arguments.length;++i){var o=arguments[i],s={},u=void 0;if(\"function\"==typeof o?(u=o.name,\"string\"==typeof o.signature?s[o.signature]=o:g(o)&&(s=o.signatures)):a(o)&&(s=o,e||(u=Q(o))),0===Object.keys(s).length){var f=new TypeError(\"Argument to 'typed' at index \"+i+\" is not a (typed) function, nor an object with signatures as keys and functions as values.\");throw f.data={index:i,argument:o},f}e||(r=K(r,u)),$(n,s)}return G(r||\"\",n)},p.create=i,p.createCount=tt.createCount,p.onMismatch=H,p.throwMismatchError=H,p.createError=O,p.clear=y,p.clearConversions=function(){var t,e,r=o(f);try{for(r.s();!(e=r.n()).done;)t=e.value,s.get(t).conversionsTo=[]}catch(t){r.e(t)}finally{r.f()}l=0},p.addTypes=m,p._findType=d,p.referTo=function(){var t=Z(arguments).map((function(t){return w(D(t))})),e=q(arguments);if(\"function\"!=typeof e)throw new TypeError(\"Callback function expected as last argument\");return Y(t,e)},p.referToSelf=V,p.convert=function(t,e){var r=d(e);if(r.test(t))return t;var n=r.conversionsTo;if(0===n.length)throw new Error(\"There are no conversions to \"+e+\" defined.\");for(var i=0;i<n.length;i++)if(d(n[i].from).test(t))return n[i].convert(t);throw new Error(\"Cannot convert \"+t+\" to \"+e)},p.findSignature=v,p.find=function(t,e,r){return v(t,e,r).implementation},p.isTypedFunction=g,p.warnAgainstDeprecatedThis=!0,p.addType=function(t,e){var r=\"any\";!1!==e&&s.has(\"Object\")&&(r=\"Object\"),p.addTypes([t],r)},p.addConversion=function(t){et(t);var e=d(t.to);if(!e.conversionsTo.every((function(e){return e.from!==t.from})))throw new Error('There is already a conversion from \"'+t.from+'\" to \"'+e.name+'\"');e.conversionsTo.push({from:t.from,convert:t.convert,index:l++})},p.addConversions=function(t){t.forEach(p.addConversion)},p.removeConversion=function(t){et(t);var e=d(t.to),r=function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return t[r]}(e.conversionsTo,(function(e){return e.from===t.from}));if(!r)throw new Error(\"Attempt to remove nonexistent conversion from \"+t.from+\" to \"+t.to);if(r.convert!==t.convert)throw new Error(\"Conversion to remove does not match existing conversion\");var n=e.conversionsTo.indexOf(r);e.conversionsTo.splice(n,1)},p.resolve=function(t,e){if(!g(t))throw new TypeError(n);for(var r=t._typedFunctionData.signatures,i=0;i<r.length;++i)if(r[i].test(e))return r[i];return null},p}();return i},\"object\"===u(e)&&void 0!==t?t.exports=a():void 0===(i=\"function\"==typeof(n=a)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){\"use strict\";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r=0,n=0;n<e.length;n++)if(t.chars[e[n]]){var i=t.kernings[e[n]]&&t.kernings[e[n]][e[n+1]]?t.kernings[e[n]][e[n+1]]:0;r+=(t.chars[e[n]].xadvance||0)+i}return r}function o(t,e,r){var i=e.replace(/[\\r\\n]+/g,\" \\n\").split(\" \"),o=[],s=[],u=0;return i.forEach((function(e){var i=[].concat(n(s),[e]).join(\" \"),f=a(t,i);f<=r&&!e.includes(\"\\n\")?(f>u&&(u=f),s.push(e)):(o.push(s),s=[e.replace(\"\\n\",\"\")])})),o.push(s),{lines:o,longestLine:u}}function s(t,e,r){return o(t,e,r).lines.length*t.common.lineHeight}r.d(e,\"a\",(function(){return a})),r.d(e,\"c\",(function(){return o})),r.d(e,\"b\",(function(){return s}))},function(t,e,r){\"use strict\";var n=r(39),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=h;var a=Object.create(r(27));a.inherits=r(24);var o=r(70),s=r(52);a.inherits(h,o);for(var u=i(s.prototype),f=0;f<u.length;f++){var c=u[f];h.prototype[c]||(h.prototype[c]=s.prototype[c])}function h(t){if(!(this instanceof h))return new h(t);o.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once(\"end\",l)}function l(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(t){t.end()}Object.defineProperty(h.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return i})),r.d(e,\"c\",(function(){return a})),r.d(e,\"b\",(function(){return o}));var n={},i=function(t,e){n[t]=e},a=function(t){var e=t.split(\"/\").slice(-1),r=function(t){return Object.entries(n).find((function(e){return e[1].includes(t)}))||[]}(e[e.length-1].split(\".\").pop());return r[0]},o=function(t){return(n[t.toLowerCase()]||[])[0]}},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"AUTO\",(function(){return n})),r.d(e,\"HORIZONTAL_ALIGN_LEFT\",(function(){return i})),r.d(e,\"HORIZONTAL_ALIGN_CENTER\",(function(){return a})),r.d(e,\"HORIZONTAL_ALIGN_RIGHT\",(function(){return o})),r.d(e,\"VERTICAL_ALIGN_TOP\",(function(){return s})),r.d(e,\"VERTICAL_ALIGN_MIDDLE\",(function(){return u})),r.d(e,\"VERTICAL_ALIGN_BOTTOM\",(function(){return f})),r.d(e,\"BLEND_SOURCE_OVER\",(function(){return c})),r.d(e,\"BLEND_DESTINATION_OVER\",(function(){return h})),r.d(e,\"BLEND_MULTIPLY\",(function(){return l})),r.d(e,\"BLEND_ADD\",(function(){return p})),r.d(e,\"BLEND_SCREEN\",(function(){return d})),r.d(e,\"BLEND_OVERLAY\",(function(){return m})),r.d(e,\"BLEND_DARKEN\",(function(){return y})),r.d(e,\"BLEND_LIGHTEN\",(function(){return b})),r.d(e,\"BLEND_HARDLIGHT\",(function(){return g})),r.d(e,\"BLEND_DIFFERENCE\",(function(){return v})),r.d(e,\"BLEND_EXCLUSION\",(function(){return w})),r.d(e,\"EDGE_EXTEND\",(function(){return _})),r.d(e,\"EDGE_WRAP\",(function(){return x})),r.d(e,\"EDGE_CROP\",(function(){return E}));var n=-1,i=1,a=2,o=4,s=8,u=16,f=32,c=\"srcOver\",h=\"dstOver\",l=\"multiply\",p=\"add\",d=\"screen\",m=\"overlay\",y=\"darken\",b=\"lighten\",g=\"hardLight\",v=\"difference\",w=\"exclusion\",_=1,x=2,E=3},function(t,e,r){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(a){\"use strict\";var o,s,u,f=9e15,c=1e9,h=\"0123456789abcdef\",l=\"2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058\",p=\"3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789\",d={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-f,maxE:f,crypto:!1},m=!0,y=\"[DecimalError] \",b=y+\"Invalid argument: \",g=y+\"Precision limit exceeded\",v=y+\"crypto unavailable\",w=\"[object Decimal]\",_=Math.floor,x=Math.pow,E=/^0b([01]+(\\.[01]*)?|\\.[01]+)(p[+-]?\\d+)?$/i,D=/^0x([0-9a-f]+(\\.[0-9a-f]*)?|\\.[0-9a-f]+)(p[+-]?\\d+)?$/i,k=/^0o([0-7]+(\\.[0-7]*)?|\\.[0-7]+)(p[+-]?\\d+)?$/i,A=/^(\\d+(\\.\\d*)?|\\.\\d+)(e[+-]?\\d+)?$/i,S=1e7,M=7,F=l.length-1,C=p.length-1,B={toStringTag:w};function O(t){var e,r,n,i=t.length-1,a=\"\",o=t[0];if(i>0){for(a+=o,e=1;e<i;e++)n=t[e]+\"\",(r=M-n.length)&&(a+=H(r)),a+=n;o=t[e],(r=M-(n=o+\"\").length)&&(a+=H(r))}else if(0===o)return\"0\";for(;o%10==0;)o/=10;return a+o}function I(t,e,r){if(t!==~~t||t<e||t>r)throw Error(b+t)}function T(t,e,r,n){var i,a,o,s;for(a=t[0];a>=10;a/=10)--e;return--e<0?(e+=M,i=0):(i=Math.ceil((e+1)/M),e%=M),a=x(10,M-e),s=t[i]%a|0,null==n?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),o=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):o=(r<4&&s+1==a||r>3&&s+1==a/2)&&(t[i+1]/a/100|0)==x(10,e-2)-1||(s==a/2||0==s)&&!(t[i+1]/a/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),o=(n||r<4)&&9999==s||!n&&r>3&&4999==s):o=((n||r<4)&&s+1==a||!n&&r>3&&s+1==a/2)&&(t[i+1]/a/1e3|0)==x(10,e-3)-1,o}function P(t,e,r){for(var n,i,a=[0],o=0,s=t.length;o<s;){for(i=a.length;i--;)a[i]*=e;for(a[0]+=h.indexOf(t.charAt(o++)),n=0;n<a.length;n++)a[n]>r-1&&(void 0===a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}B.absoluteValue=B.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),N(t)},B.ceil=function(){return N(new this.constructor(this),this.e+1,2)},B.clampedTo=B.clamp=function(t,e){var r=this,n=r.constructor;if(t=new n(t),e=new n(e),!t.s||!e.s)return new n(NaN);if(t.gt(e))throw Error(b+e);return r.cmp(t)<0?t:r.cmp(e)>0?e:new n(r)},B.comparedTo=B.cmp=function(t){var e,r,n,i,a=this,o=a.d,s=(t=new a.constructor(t)).d,u=a.s,f=t.s;if(!o||!s)return u&&f?u!==f?u:o===s?0:!o^u<0?1:-1:NaN;if(!o[0]||!s[0])return o[0]?u:s[0]?-f:0;if(u!==f)return u;if(a.e!==t.e)return a.e>t.e^u<0?1:-1;for(e=0,r=(n=o.length)<(i=s.length)?n:i;e<r;++e)if(o[e]!==s[e])return o[e]>s[e]^u<0?1:-1;return n===i?0:n>i^u<0?1:-1},B.cosine=B.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+M,n.rounding=1,r=function(t,e){var r,n,i;if(e.isZero())return e;n=e.d.length,n<32?i=(1/$(4,r=Math.ceil(n/3))).toString():(r=16,i=\"2.3283064365386962890625e-10\");t.precision+=r,e=Q(t,1,e.times(i),new t(1));for(var a=r;a--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return t.precision-=r,e}(n,tt(n,r)),n.precision=t,n.rounding=e,N(2==u||3==u?r.neg():r,t,e,!0)):new n(1):new n(NaN)},B.cubeRoot=B.cbrt=function(){var t,e,r,n,i,a,o,s,u,f,c=this,h=c.constructor;if(!c.isFinite()||c.isZero())return new h(c);for(m=!1,(a=c.s*x(c.s*c,1/3))&&Math.abs(a)!=1/0?n=new h(a.toString()):(r=O(c.d),(a=((t=c.e)-r.length+1)%3)&&(r+=1==a||-2==a?\"0\":\"00\"),a=x(r,1/3),t=_((t+1)/3)-(t%3==(t<0?-1:2)),(n=new h(r=a==1/0?\"5e\"+t:(r=a.toExponential()).slice(0,r.indexOf(\"e\")+1)+t)).s=c.s),o=(t=h.precision)+3;;)if(f=(u=(s=n).times(s).times(s)).plus(c),n=L(f.plus(c).times(s),f.plus(u),o+2,1),O(s.d).slice(0,o)===(r=O(n.d)).slice(0,o)){if(\"9999\"!=(r=r.slice(o-3,o+1))&&(i||\"4999\"!=r)){+r&&(+r.slice(1)||\"5\"!=r.charAt(0))||(N(n,t+1,1),e=!n.times(n).times(n).eq(c));break}if(!i&&(N(s,t+1,0),s.times(s).times(s).eq(c))){n=s;break}o+=4,i=1}return m=!0,N(n,t,h.rounding,e)},B.decimalPlaces=B.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-_(this.e/M))*M,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},B.dividedBy=B.div=function(t){return L(this,new this.constructor(t))},B.dividedToIntegerBy=B.divToInt=function(t){var e=this.constructor;return N(L(this,new e(t),0,1,1),e.precision,e.rounding)},B.equals=B.eq=function(t){return 0===this.cmp(t)},B.floor=function(){return N(new this.constructor(this),this.e+1,3)},B.greaterThan=B.gt=function(t){return this.cmp(t)>0},B.greaterThanOrEqualTo=B.gte=function(t){var e=this.cmp(t);return 1==e||0===e},B.hyperbolicCosine=B.cosh=function(){var t,e,r,n,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;r=o.precision,n=o.rounding,o.precision=r+Math.max(a.e,a.sd())+4,o.rounding=1,(i=a.d.length)<32?e=(1/$(4,t=Math.ceil(i/3))).toString():(t=16,e=\"2.3283064365386962890625e-10\"),a=Q(o,1,a.times(e),new o(1),!0);for(var u,f=t,c=new o(8);f--;)u=a.times(a),a=s.minus(u.times(c.minus(u.times(c))));return N(a,o.precision=r,o.rounding=n,!0)},B.hyperbolicSine=B.sinh=function(){var t,e,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(e=a.precision,r=a.rounding,a.precision=e+Math.max(i.e,i.sd())+4,a.rounding=1,(n=i.d.length)<3)i=Q(a,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=Q(a,2,i=i.times(1/$(5,t)),i,!0);for(var o,s=new a(5),u=new a(16),f=new a(20);t--;)o=i.times(i),i=i.times(s.plus(o.times(u.times(o).plus(f))))}return a.precision=e,a.rounding=r,N(i,e,r,!0)},B.hyperbolicTangent=B.tanh=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+7,n.rounding=1,L(r.sinh(),r.cosh(),n.precision=t,n.rounding=e)):new n(r.s)},B.inverseCosine=B.acos=function(){var t,e=this,r=e.constructor,n=e.abs().cmp(1),i=r.precision,a=r.rounding;return-1!==n?0===n?e.isNeg()?U(r,i,a):new r(0):new r(NaN):e.isZero()?U(r,i+4,a).times(.5):(r.precision=i+6,r.rounding=1,e=e.asin(),t=U(r,i+4,a).times(.5),r.precision=i,r.rounding=a,t.minus(e))},B.inverseHyperbolicCosine=B.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,m=!1,r=r.times(r).minus(1).sqrt().plus(r),m=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},B.inverseHyperbolicSine=B.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,m=!1,r=r.times(r).plus(1).sqrt().plus(r),m=!0,n.precision=t,n.rounding=e,r.ln())},B.inverseHyperbolicTangent=B.atanh=function(){var t,e,r,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=a.precision,e=a.rounding,n=i.sd(),Math.max(n,t)<2*-i.e-1?N(new a(i),t,e,!0):(a.precision=r=n-i.e,i=L(i.plus(1),new a(1).minus(i),r+t,1),a.precision=t+4,a.rounding=1,i=i.ln(),a.precision=t,a.rounding=e,i.times(.5))):new a(NaN)},B.inverseSine=B.asin=function(){var t,e,r,n,i=this,a=i.constructor;return i.isZero()?new a(i):(e=i.abs().cmp(1),r=a.precision,n=a.rounding,-1!==e?0===e?((t=U(a,r+4,n).times(.5)).s=i.s,t):new a(NaN):(a.precision=r+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,i.times(2)))},B.inverseTangent=B.atan=function(){var t,e,r,n,i,a,o,s,u,f=this,c=f.constructor,h=c.precision,l=c.rounding;if(f.isFinite()){if(f.isZero())return new c(f);if(f.abs().eq(1)&&h+4<=C)return(o=U(c,h+4,l).times(.25)).s=f.s,o}else{if(!f.s)return new c(NaN);if(h+4<=C)return(o=U(c,h+4,l).times(.5)).s=f.s,o}for(c.precision=s=h+10,c.rounding=1,t=r=Math.min(28,s/M+2|0);t;--t)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(m=!1,e=Math.ceil(s/M),n=1,u=f.times(f),o=new c(f),i=f;-1!==t;)if(i=i.times(u),a=o.minus(i.div(n+=2)),i=i.times(u),void 0!==(o=a.plus(i.div(n+=2))).d[e])for(t=e;o.d[t]===a.d[t]&&t--;);return r&&(o=o.times(2<<r-1)),m=!0,N(o,c.precision=h,c.rounding=l,!0)},B.isFinite=function(){return!!this.d},B.isInteger=B.isInt=function(){return!!this.d&&_(this.e/M)>this.d.length-2},B.isNaN=function(){return!this.s},B.isNegative=B.isNeg=function(){return this.s<0},B.isPositive=B.isPos=function(){return this.s>0},B.isZero=function(){return!!this.d&&0===this.d[0]},B.lessThan=B.lt=function(t){return this.cmp(t)<0},B.lessThanOrEqualTo=B.lte=function(t){return this.cmp(t)<1},B.logarithm=B.log=function(t){var e,r,n,i,a,o,s,u,f=this,c=f.constructor,h=c.precision,l=c.rounding;if(null==t)t=new c(10),e=!0;else{if(r=(t=new c(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new c(NaN);e=t.eq(10)}if(r=f.d,f.s<0||!r||!r[0]||f.eq(1))return new c(r&&!r[0]?-1/0:1!=f.s?NaN:r?0:1/0);if(e)if(r.length>1)a=!0;else{for(i=r[0];i%10==0;)i/=10;a=1!==i}if(m=!1,o=V(f,s=h+5),n=e?z(c,s+10):V(t,s),T((u=L(o,n,s,1)).d,i=h,l))do{if(o=V(f,s+=10),n=e?z(c,s+10):V(t,s),u=L(o,n,s,1),!a){+O(u.d).slice(i+1,i+15)+1==1e14&&(u=N(u,h+1,0));break}}while(T(u.d,i+=10,l));return m=!0,N(u,h,l)},B.minus=B.sub=function(t){var e,r,n,i,a,o,s,u,f,c,h,l,p=this,d=p.constructor;if(t=new d(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new d(t.d||p.s!==t.s?p:NaN):t=new d(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(f=p.d,l=t.d,s=d.precision,u=d.rounding,!f[0]||!l[0]){if(l[0])t.s=-t.s;else{if(!f[0])return new d(3===u?-0:0);t=new d(p)}return m?N(t,s,u):t}if(r=_(t.e/M),c=_(p.e/M),f=f.slice(),a=c-r){for((h=a<0)?(e=f,a=-a,o=l.length):(e=l,r=c,o=f.length),a>(n=Math.max(Math.ceil(s/M),o)+2)&&(a=n,e.length=1),e.reverse(),n=a;n--;)e.push(0);e.reverse()}else{for((h=(n=f.length)<(o=l.length))&&(o=n),n=0;n<o;n++)if(f[n]!=l[n]){h=f[n]<l[n];break}a=0}for(h&&(e=f,f=l,l=e,t.s=-t.s),o=f.length,n=l.length-o;n>0;--n)f[o++]=0;for(n=l.length;n>a;){if(f[--n]<l[n]){for(i=n;i&&0===f[--i];)f[i]=S-1;--f[i],f[n]+=S}f[n]-=l[n]}for(;0===f[--o];)f.pop();for(;0===f[0];f.shift())--r;return f[0]?(t.d=f,t.e=R(f,r),m?N(t,s,u):t):new d(3===u?-0:0)},B.modulo=B.mod=function(t){var e,r=this,n=r.constructor;return t=new n(t),!r.d||!t.s||t.d&&!t.d[0]?new n(NaN):!t.d||r.d&&!r.d[0]?N(new n(r),n.precision,n.rounding):(m=!1,9==n.modulo?(e=L(r,t.abs(),0,3,1)).s*=t.s:e=L(r,t,0,n.modulo,1),e=e.times(t),m=!0,r.minus(e))},B.naturalExponential=B.exp=function(){return Y(this)},B.naturalLogarithm=B.ln=function(){return V(this)},B.negated=B.neg=function(){var t=new this.constructor(this);return t.s=-t.s,N(t)},B.plus=B.add=function(t){var e,r,n,i,a,o,s,u,f,c,h=this,l=h.constructor;if(t=new l(t),!h.d||!t.d)return h.s&&t.s?h.d||(t=new l(t.d||h.s===t.s?h:NaN)):t=new l(NaN),t;if(h.s!=t.s)return t.s=-t.s,h.minus(t);if(f=h.d,c=t.d,s=l.precision,u=l.rounding,!f[0]||!c[0])return c[0]||(t=new l(h)),m?N(t,s,u):t;if(a=_(h.e/M),n=_(t.e/M),f=f.slice(),i=a-n){for(i<0?(r=f,i=-i,o=c.length):(r=c,n=a,o=f.length),i>(o=(a=Math.ceil(s/M))>o?a+1:o+1)&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((o=f.length)-(i=c.length)<0&&(i=o,r=c,c=f,f=r),e=0;i;)e=(f[--i]=f[i]+c[i]+e)/S|0,f[i]%=S;for(e&&(f.unshift(e),++n),o=f.length;0==f[--o];)f.pop();return t.d=f,t.e=R(f,n),m?N(t,s,u):t},B.precision=B.sd=function(t){var e,r=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(b+t);return r.d?(e=G(r.d),t&&r.e+1>e&&(e=r.e+1)):e=NaN,e},B.round=function(){var t=this,e=t.constructor;return N(new e(t),t.e+1,e.rounding)},B.sine=B.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+M,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return e.isZero()?e:Q(t,2,e,e);r=(r=1.4*Math.sqrt(n))>16?16:0|r,e=e.times(1/$(5,r)),e=Q(t,2,e,e);for(var i,a=new t(5),o=new t(16),s=new t(20);r--;)i=e.times(e),e=e.times(a.plus(i.times(o.times(i).minus(s))));return e}(n,tt(n,r)),n.precision=t,n.rounding=e,N(u>2?r.neg():r,t,e,!0)):new n(NaN)},B.squareRoot=B.sqrt=function(){var t,e,r,n,i,a,o=this,s=o.d,u=o.e,f=o.s,c=o.constructor;if(1!==f||!s||!s[0])return new c(!f||f<0&&(!s||s[0])?NaN:s?o:1/0);for(m=!1,0==(f=Math.sqrt(+o))||f==1/0?(((e=O(s)).length+u)%2==0&&(e+=\"0\"),f=Math.sqrt(e),u=_((u+1)/2)-(u<0||u%2),n=new c(e=f==1/0?\"5e\"+u:(e=f.toExponential()).slice(0,e.indexOf(\"e\")+1)+u)):n=new c(f.toString()),r=(u=c.precision)+3;;)if(n=(a=n).plus(L(o,a,r+2,1)).times(.5),O(a.d).slice(0,r)===(e=O(n.d)).slice(0,r)){if(\"9999\"!=(e=e.slice(r-3,r+1))&&(i||\"4999\"!=e)){+e&&(+e.slice(1)||\"5\"!=e.charAt(0))||(N(n,u+1,1),t=!n.times(n).eq(o));break}if(!i&&(N(a,u+1,0),a.times(a).eq(o))){n=a;break}r+=4,i=1}return m=!0,N(n,u,c.rounding,t)},B.tangent=B.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=L(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,N(2==u||4==u?r.neg():r,t,e,!0)):new n(NaN)},B.times=B.mul=function(t){var e,r,n,i,a,o,s,u,f,c=this,h=c.constructor,l=c.d,p=(t=new h(t)).d;if(t.s*=c.s,!(l&&l[0]&&p&&p[0]))return new h(!t.s||l&&!l[0]&&!p||p&&!p[0]&&!l?NaN:l&&p?0*t.s:t.s/0);for(r=_(c.e/M)+_(t.e/M),(u=l.length)<(f=p.length)&&(a=l,l=p,p=a,o=u,u=f,f=o),a=[],n=o=u+f;n--;)a.push(0);for(n=f;--n>=0;){for(e=0,i=u+n;i>n;)s=a[i]+p[n]*l[i-n-1]+e,a[i--]=s%S|0,e=s/S|0;a[i]=(a[i]+e)%S|0}for(;!a[--o];)a.pop();return e?++r:a.shift(),t.d=a,t.e=R(a,r),m?N(t,h.precision,h.rounding):t},B.toBinary=function(t,e){return et(this,2,t,e)},B.toDecimalPlaces=B.toDP=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(I(t,0,c),void 0===e?e=n.rounding:I(e,0,8),N(r,t+r.e+1,e))},B.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=j(n,!0):(I(t,0,c),void 0===e?e=i.rounding:I(e,0,8),r=j(n=N(new i(n),t+1,e),!0,t+1)),n.isNeg()&&!n.isZero()?\"-\"+r:r},B.toFixed=function(t,e){var r,n,i=this,a=i.constructor;return void 0===t?r=j(i):(I(t,0,c),void 0===e?e=a.rounding:I(e,0,8),r=j(n=N(new a(i),t+i.e+1,e),!1,t+n.e+1)),i.isNeg()&&!i.isZero()?\"-\"+r:r},B.toFraction=function(t){var e,r,n,i,a,o,s,u,f,c,h,l,p=this,d=p.d,y=p.constructor;if(!d)return new y(p);if(f=r=new y(1),n=u=new y(0),o=(a=(e=new y(n)).e=G(d)-p.e-1)%M,e.d[0]=x(10,o<0?M+o:o),null==t)t=a>0?e:f;else{if(!(s=new y(t)).isInt()||s.lt(f))throw Error(b+s);t=s.gt(e)?a>0?e:f:s}for(m=!1,s=new y(O(d)),c=y.precision,y.precision=a=d.length*M*2;h=L(s,e,0,1,1),1!=(i=r.plus(h.times(n))).cmp(t);)r=n,n=i,i=f,f=u.plus(h.times(i)),u=i,i=e,e=s.minus(h.times(i)),s=i;return i=L(t.minus(r),n,0,1,1),u=u.plus(i.times(f)),r=r.plus(i.times(n)),u.s=f.s=p.s,l=L(f,n,a,1).minus(p).abs().cmp(L(u,r,a,1).minus(p).abs())<1?[f,n]:[u,r],y.precision=c,m=!0,l},B.toHexadecimal=B.toHex=function(t,e){return et(this,16,t,e)},B.toNearest=function(t,e){var r=this,n=r.constructor;if(r=new n(r),null==t){if(!r.d)return r;t=new n(1),e=n.rounding}else{if(t=new n(t),void 0===e?e=n.rounding:I(e,0,8),!r.d)return t.s?r:t;if(!t.d)return t.s&&(t.s=r.s),t}return t.d[0]?(m=!1,r=L(r,t,0,e,1).times(t),m=!0,N(r)):(t.s=r.s,r=t),r},B.toNumber=function(){return+this},B.toOctal=function(t,e){return et(this,8,t,e)},B.toPower=B.pow=function(t){var e,r,n,i,a,o,s=this,u=s.constructor,f=+(t=new u(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new u(x(+s,f));if((s=new u(s)).eq(1))return s;if(n=u.precision,a=u.rounding,t.eq(1))return N(s,n,a);if((e=_(t.e/M))>=t.d.length-1&&(r=f<0?-f:f)<=9007199254740991)return i=Z(u,s,r,n),t.s<0?new u(1).div(i):N(i,n,a);if((o=s.s)<0){if(e<t.d.length-1)return new u(NaN);if(1&t.d[e]||(o=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=o,s}return(e=0!=(r=x(+s,f))&&isFinite(r)?new u(r+\"\").e:_(f*(Math.log(\"0.\"+O(s.d))/Math.LN10+s.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?o/0:0):(m=!1,u.rounding=s.s=1,r=Math.min(12,(e+\"\").length),(i=Y(t.times(V(s,n+r)),n)).d&&T((i=N(i,n+5,1)).d,n,a)&&(e=n+10,+O((i=N(Y(t.times(V(s,e+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=N(i,n+1,0))),i.s=o,m=!0,u.rounding=a,N(i,n,a))},B.toPrecision=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=j(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(I(t,1,c),void 0===e?e=i.rounding:I(e,0,8),r=j(n=N(new i(n),t,e),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?\"-\"+r:r},B.toSignificantDigits=B.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(I(t,1,c),void 0===e?e=r.rounding:I(e,0,8)),N(new r(this),t,e)},B.toString=function(){var t=this,e=t.constructor,r=j(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?\"-\"+r:r},B.truncated=B.trunc=function(){return N(new this.constructor(this),this.e+1,1)},B.valueOf=B.toJSON=function(){var t=this,e=t.constructor,r=j(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?\"-\"+r:r};var L=function(){function t(t,e,r){var n,i=0,a=t.length;for(t=t.slice();a--;)n=t[a]*e+i,t[a]=n%r|0,i=n/r|0;return i&&t.unshift(i),t}function e(t,e,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(t[i]!=e[i]){a=t[i]>e[i]?1:-1;break}return a}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,a,o,u,f){var c,h,l,p,d,m,y,b,g,v,w,x,E,D,k,A,F,C,B,O,I=n.constructor,T=n.s==i.s?1:-1,P=n.d,L=i.d;if(!(P&&P[0]&&L&&L[0]))return new I(n.s&&i.s&&(P?!L||P[0]!=L[0]:L)?P&&0==P[0]||!L?0*T:T/0:NaN);for(f?(d=1,h=n.e-i.e):(f=S,d=M,h=_(n.e/d)-_(i.e/d)),B=L.length,F=P.length,v=(g=new I(T)).d=[],l=0;L[l]==(P[l]||0);l++);if(L[l]>(P[l]||0)&&h--,null==a?(D=a=I.precision,o=I.rounding):D=u?a+(n.e-i.e)+1:a,D<0)v.push(1),m=!0;else{if(D=D/d+2|0,l=0,1==B){for(p=0,L=L[0],D++;(l<F||p)&&D--;l++)k=p*f+(P[l]||0),v[l]=k/L|0,p=k%L|0;m=p||l<F}else{for((p=f/(L[0]+1)|0)>1&&(L=t(L,p,f),P=t(P,p,f),B=L.length,F=P.length),A=B,x=(w=P.slice(0,B)).length;x<B;)w[x++]=0;(O=L.slice()).unshift(0),C=L[0],L[1]>=f/2&&++C;do{p=0,(c=e(L,w,B,x))<0?(E=w[0],B!=x&&(E=E*f+(w[1]||0)),(p=E/C|0)>1?(p>=f&&(p=f-1),1==(c=e(y=t(L,p,f),w,b=y.length,x=w.length))&&(p--,r(y,B<b?O:L,b,f))):(0==p&&(c=p=1),y=L.slice()),(b=y.length)<x&&y.unshift(0),r(w,y,x,f),-1==c&&(c=e(L,w,B,x=w.length))<1&&(p++,r(w,B<x?O:L,x,f)),x=w.length):0===c&&(p++,w=[0]),v[l++]=p,c&&w[0]?w[x++]=P[A]||0:(w=[P[A]],x=1)}while((A++<F||void 0!==w[0])&&D--);m=void 0!==w[0]}v[0]||v.shift()}if(1==d)g.e=h,s=m;else{for(l=1,p=v[0];p>=10;p/=10)l++;g.e=l+h*d-1,N(g,u?a+g.e+1:a,o,m)}return g}}();function N(t,e,r,n){var i,a,o,s,u,f,c,h,l,p=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(i=1,s=h[0];s>=10;s/=10)i++;if((a=e-i)<0)a+=M,o=e,u=(c=h[l=0])/x(10,i-o-1)%10|0;else if((l=Math.ceil((a+1)/M))>=(s=h.length)){if(!n)break t;for(;s++<=l;)h.push(0);c=u=0,i=1,o=(a%=M)-M+1}else{for(c=s=h[l],i=1;s>=10;s/=10)i++;u=(o=(a%=M)-M+i)<0?0:c/x(10,i-o-1)%10|0}if(n=n||e<0||void 0!==h[l+1]||(o<0?c:c%x(10,i-o-1)),f=r<4?(u||n)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(a>0?o>0?c/x(10,i-o):0:h[l-1])%10&1||r==(t.s<0?8:7)),e<1||!h[0])return h.length=0,f?(e-=t.e+1,h[0]=x(10,(M-e%M)%M),t.e=-e||0):h[0]=t.e=0,t;if(0==a?(h.length=l,s=1,l--):(h.length=l+1,s=x(10,M-a),h[l]=o>0?(c/x(10,i-o)%x(10,o)|0)*s:0),f)for(;;){if(0==l){for(a=1,o=h[0];o>=10;o/=10)a++;for(o=h[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(t.e++,h[0]==S&&(h[0]=1));break}if(h[l]+=s,h[l]!=S)break;h[l--]=0,s=1}for(a=h.length;0===h[--a];)h.pop()}return m&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function j(t,e,r){if(!t.isFinite())return X(t);var n,i=t.e,a=O(t.d),o=a.length;return e?(r&&(n=r-o)>0?a=a.charAt(0)+\".\"+a.slice(1)+H(n):o>1&&(a=a.charAt(0)+\".\"+a.slice(1)),a=a+(t.e<0?\"e\":\"e+\")+t.e):i<0?(a=\"0.\"+H(-i-1)+a,r&&(n=r-o)>0&&(a+=H(n))):i>=o?(a+=H(i+1-o),r&&(n=r-i-1)>0&&(a=a+\".\"+H(n))):((n=i+1)<o&&(a=a.slice(0,n)+\".\"+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+=\".\"),a+=H(n))),a}function R(t,e){var r=t[0];for(e*=M;r>=10;r/=10)e++;return e}function z(t,e,r){if(e>F)throw m=!0,r&&(t.precision=r),Error(g);return N(new t(l),e,1,!0)}function U(t,e,r){if(e>C)throw Error(g);return N(new t(p),e,r,!0)}function G(t){var e=t.length-1,r=e*M+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];e>=10;e/=10)r++}return r}function H(t){for(var e=\"\";t--;)e+=\"0\";return e}function Z(t,e,r,n){var i,a=new t(1),o=Math.ceil(n/M+4);for(m=!1;;){if(r%2&&rt((a=a.times(e)).d,o)&&(i=!0),0===(r=_(r/2))){r=a.d.length-1,i&&0===a.d[r]&&++a.d[r];break}rt((e=e.times(e)).d,o)}return m=!0,a}function q(t){return 1&t.d[t.d.length-1]}function W(t,e,r){for(var n,i=new t(e[0]),a=0;++a<e.length;){if(!(n=new t(e[a])).s){i=n;break}i[r](n)&&(i=n)}return i}function Y(t,e){var r,n,i,a,o,s,u,f=0,c=0,h=0,l=t.constructor,p=l.rounding,d=l.precision;if(!t.d||!t.d[0]||t.e>17)return new l(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(m=!1,u=d):u=e,s=new l(.03125);t.e>-2;)t=t.times(s),h+=5;for(u+=n=Math.log(x(2,h))/Math.LN10*2+5|0,r=a=o=new l(1),l.precision=u;;){if(a=N(a.times(t),u,1),r=r.times(++c),O((s=o.plus(L(a,r,u,1))).d).slice(0,u)===O(o.d).slice(0,u)){for(i=h;i--;)o=N(o.times(o),u,1);if(null!=e)return l.precision=d,o;if(!(f<3&&T(o.d,u-n,p,f)))return N(o,l.precision=d,p,m=!0);l.precision=u+=10,r=a=s=new l(1),c=0,f++}o=s}}function V(t,e){var r,n,i,a,o,s,u,f,c,h,l,p=1,d=t,y=d.d,b=d.constructor,g=b.rounding,v=b.precision;if(d.s<0||!y||!y[0]||!d.e&&1==y[0]&&1==y.length)return new b(y&&!y[0]?-1/0:1!=d.s?NaN:y?0:d);if(null==e?(m=!1,c=v):c=e,b.precision=c+=10,n=(r=O(y)).charAt(0),!(Math.abs(a=d.e)<15e14))return f=z(b,c+2,v).times(a+\"\"),d=V(new b(n+\".\"+r.slice(1)),c-10).plus(f),b.precision=v,null==e?N(d,v,g,m=!0):d;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=O((d=d.times(t)).d)).charAt(0),p++;for(a=d.e,n>1?(d=new b(\"0.\"+r),a++):d=new b(n+\".\"+r.slice(1)),h=d,u=o=d=L(d.minus(1),d.plus(1),c,1),l=N(d.times(d),c,1),i=3;;){if(o=N(o.times(l),c,1),O((f=u.plus(L(o,new b(i),c,1))).d).slice(0,c)===O(u.d).slice(0,c)){if(u=u.times(2),0!==a&&(u=u.plus(z(b,c+2,v).times(a+\"\"))),u=L(u,new b(p),c,1),null!=e)return b.precision=v,u;if(!T(u.d,c-10,g,s))return N(u,b.precision=v,g,m=!0);b.precision=c+=10,f=o=d=L(h.minus(1),h.plus(1),c,1),l=N(d.times(d),c,1),i=s=1}u=f,i+=2}}function X(t){return String(t.s*t.s/0)}function J(t,e){var r,n,i;for((r=e.indexOf(\".\"))>-1&&(e=e.replace(\".\",\"\")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(n,i)){if(i-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%M,r<0&&(n+=M),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=M;n<i;)t.d.push(+e.slice(n,n+=M));e=e.slice(n),n=M-e.length}else n-=i;for(;n--;)e+=\"0\";t.d.push(+e),m&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function K(t,e){var r,n,i,a,s,u,f,c,h;if(e.indexOf(\"_\")>-1){if(e=e.replace(/(\\d)_(?=\\d)/g,\"$1\"),A.test(e))return J(t,e)}else if(\"Infinity\"===e||\"NaN\"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(D.test(e))r=16,e=e.toLowerCase();else if(E.test(e))r=2;else{if(!k.test(e))throw Error(b+e);r=8}for((a=e.search(/p/i))>0?(f=+e.slice(a+1),e=e.substring(2,a)):e=e.slice(2),s=(a=e.indexOf(\".\"))>=0,n=t.constructor,s&&(a=(u=(e=e.replace(\".\",\"\")).length)-a,i=Z(n,new n(r),a,2*a)),a=h=(c=P(e,r,S)).length-1;0===c[a];--a)c.pop();return a<0?new n(0*t.s):(t.e=R(c,h),t.d=c,m=!1,s&&(t=L(t,i,4*u)),f&&(t=t.times(Math.abs(f)<54?x(2,f):o.pow(2,f))),m=!0,t)}function Q(t,e,r,n,i){var a,o,s,u,f=t.precision,c=Math.ceil(f/M);for(m=!1,u=r.times(r),s=new t(n);;){if(o=L(s.times(u),new t(e++*e++),f,1),s=i?n.plus(o):n.minus(o),n=L(o.times(u),new t(e++*e++),f,1),void 0!==(o=s.plus(n)).d[c]){for(a=c;o.d[a]===s.d[a]&&a--;);if(-1==a)break}a=s,s=n,n=o,o=a}return m=!0,o.d.length=c+1,o}function $(t,e){for(var r=t;--e;)r*=t;return r}function tt(t,e){var r,n=e.s<0,i=U(t,t.precision,1),a=i.times(.5);if((e=e.abs()).lte(a))return u=n?4:1,e;if((r=e.divToInt(i)).isZero())u=n?3:2;else{if((e=e.minus(r.times(i))).lte(a))return u=q(r)?n?2:3:n?4:1,e;u=q(r)?n?1:4:n?3:2}return e.minus(i).abs()}function et(t,e,r,n){var i,a,o,u,f,l,p,d,m,y=t.constructor,b=void 0!==r;if(b?(I(r,1,c),void 0===n?n=y.rounding:I(n,0,8)):(r=y.precision,n=y.rounding),t.isFinite()){for(b?(i=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):i=e,(o=(p=j(t)).indexOf(\".\"))>=0&&(p=p.replace(\".\",\"\"),(m=new y(1)).e=p.length-o,m.d=P(j(m),10,i),m.e=m.d.length),a=f=(d=P(p,10,i)).length;0==d[--f];)d.pop();if(d[0]){if(o<0?a--:((t=new y(t)).d=d,t.e=a,d=(t=L(t,m,r,n,0,i)).d,a=t.e,l=s),o=d[r],u=i/2,l=l||void 0!==d[r+1],l=n<4?(void 0!==o||l)&&(0===n||n===(t.s<0?3:2)):o>u||o===u&&(4===n||l||6===n&&1&d[r-1]||n===(t.s<0?8:7)),d.length=r,l)for(;++d[--r]>i-1;)d[r]=0,r||(++a,d.unshift(1));for(f=d.length;!d[f-1];--f);for(o=0,p=\"\";o<f;o++)p+=h.charAt(d[o]);if(b){if(f>1)if(16==e||8==e){for(o=16==e?4:3,--f;f%o;f++)p+=\"0\";for(f=(d=P(p,i,e)).length;!d[f-1];--f);for(o=1,p=\"1.\";o<f;o++)p+=h.charAt(d[o])}else p=p.charAt(0)+\".\"+p.slice(1);p=p+(a<0?\"p\":\"p+\")+a}else if(a<0){for(;++a;)p=\"0\"+p;p=\"0.\"+p}else if(++a>f)for(a-=f;a--;)p+=\"0\";else a<f&&(p=p.slice(0,a)+\".\"+p.slice(a))}else p=b?\"0p+0\":\"0\";p=(16==e?\"0x\":2==e?\"0b\":8==e?\"0o\":\"\")+p}else p=X(t);return t.s<0?\"-\"+p:p}function rt(t,e){if(t.length>e)return t.length=e,!0}function nt(t){return new this(t).abs()}function it(t){return new this(t).acos()}function at(t){return new this(t).acosh()}function ot(t,e){return new this(t).plus(e)}function st(t){return new this(t).asin()}function ut(t){return new this(t).asinh()}function ft(t){return new this(t).atan()}function ct(t){return new this(t).atanh()}function ht(t,e){t=new this(t),e=new this(e);var r,n=this.precision,i=this.rounding,a=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?U(this,n,i):new this(0)).s=t.s:!t.d||e.isZero()?(r=U(this,a,1).times(.5)).s=t.s:e.s<0?(this.precision=a,this.rounding=1,r=this.atan(L(t,e,a,1)),e=U(this,a,1),this.precision=n,this.rounding=i,r=t.s<0?r.minus(e):r.plus(e)):r=this.atan(L(t,e,a,1)):(r=U(this,a,1).times(e.s>0?.25:.75)).s=t.s:r=new this(NaN),r}function lt(t){return new this(t).cbrt()}function pt(t){return N(t=new this(t),t.e+1,2)}function dt(t,e,r){return new this(t).clamp(e,r)}function mt(t){if(!t||\"object\"!==i(t))throw Error(y+\"Object expected\");var e,r,n,a=!0===t.defaults,o=[\"precision\",1,c,\"rounding\",0,8,\"toExpNeg\",-f,0,\"toExpPos\",0,f,\"maxE\",0,f,\"minE\",-f,0,\"modulo\",0,9];for(e=0;e<o.length;e+=3)if(r=o[e],a&&(this[r]=d[r]),void 0!==(n=t[r])){if(!(_(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(b+r+\": \"+n);this[r]=n}if(r=\"crypto\",a&&(this[r]=d[r]),void 0!==(n=t[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(b+r+\": \"+n);if(n){if(\"undefined\"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(v);this[r]=!0}else this[r]=!1}return this}function yt(t){return new this(t).cos()}function bt(t){return new this(t).cosh()}function gt(t,e){return new this(t).div(e)}function vt(t){return new this(t).exp()}function wt(t){return N(t=new this(t),t.e+1,3)}function _t(){var t,e,r=new this(0);for(m=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return m=!0,new this(1/0);r=e}return m=!0,r.sqrt()}function xt(t){return t instanceof o||t&&t.toStringTag===w||!1}function Et(t){return new this(t).ln()}function Dt(t,e){return new this(t).log(e)}function kt(t){return new this(t).log(2)}function At(t){return new this(t).log(10)}function St(){return W(this,arguments,\"lt\")}function Mt(){return W(this,arguments,\"gt\")}function Ft(t,e){return new this(t).mod(e)}function Ct(t,e){return new this(t).mul(e)}function Bt(t,e){return new this(t).pow(e)}function Ot(t){var e,r,n,i,a=0,o=new this(1),s=[];if(void 0===t?t=this.precision:I(t,1,c),n=Math.ceil(t/M),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));a<n;)(i=e[a])>=429e7?e[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else{if(!crypto.randomBytes)throw Error(v);for(e=crypto.randomBytes(n*=4);a<n;)(i=e[a]+(e[a+1]<<8)+(e[a+2]<<16)+((127&e[a+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,a):(s.push(i%1e7),a+=4);a=n/4}else for(;a<n;)s[a++]=1e7*Math.random()|0;for(n=s[--a],t%=M,n&&t&&(i=x(10,M-t),s[a]=(n/i|0)*i);0===s[a];a--)s.pop();if(a<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=M)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<M&&(r-=M-n)}return o.e=r,o.d=s,o}function It(t){return N(t=new this(t),t.e+1,this.rounding)}function Tt(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Pt(t){return new this(t).sin()}function Lt(t){return new this(t).sinh()}function Nt(t){return new this(t).sqrt()}function jt(t,e){return new this(t).sub(e)}function Rt(){var t=0,e=arguments,r=new this(e[t]);for(m=!1;r.s&&++t<e.length;)r=r.plus(e[t]);return m=!0,N(r,this.precision,this.rounding)}function zt(t){return new this(t).tan()}function Ut(t){return new this(t).tanh()}function Gt(t){return N(t=new this(t),t.e+1,1)}o=function t(e){var r,n,a;function o(t){var e,r,n,a=this;if(!(a instanceof o))return new o(t);if(a.constructor=o,xt(t))return a.s=t.s,void(m?!t.d||t.e>o.maxE?(a.e=NaN,a.d=null):t.e<o.minE?(a.e=0,a.d=[0]):(a.e=t.e,a.d=t.d.slice()):(a.e=t.e,a.d=t.d?t.d.slice():t.d));if(\"number\"===(n=i(t))){if(0===t)return a.s=1/t<0?-1:1,a.e=0,void(a.d=[0]);if(t<0?(t=-t,a.s=-1):a.s=1,t===~~t&&t<1e7){for(e=0,r=t;r>=10;r/=10)e++;return void(m?e>o.maxE?(a.e=NaN,a.d=null):e<o.minE?(a.e=0,a.d=[0]):(a.e=e,a.d=[t]):(a.e=e,a.d=[t]))}return 0*t!=0?(t||(a.s=NaN),a.e=NaN,void(a.d=null)):J(a,t.toString())}if(\"string\"!==n)throw Error(b+t);return 45===(r=t.charCodeAt(0))?(t=t.slice(1),a.s=-1):(43===r&&(t=t.slice(1)),a.s=1),A.test(t)?J(a,t):K(a,t)}if(o.prototype=B,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=mt,o.clone=t,o.isDecimal=xt,o.abs=nt,o.acos=it,o.acosh=at,o.add=ot,o.asin=st,o.asinh=ut,o.atan=ft,o.atanh=ct,o.atan2=ht,o.cbrt=lt,o.ceil=pt,o.clamp=dt,o.cos=yt,o.cosh=bt,o.div=gt,o.exp=vt,o.floor=wt,o.hypot=_t,o.ln=Et,o.log=Dt,o.log10=At,o.log2=kt,o.max=St,o.min=Mt,o.mod=Ft,o.mul=Ct,o.pow=Bt,o.random=Ot,o.round=It,o.sign=Tt,o.sin=Pt,o.sinh=Lt,o.sqrt=Nt,o.sub=jt,o.sum=Rt,o.tan=zt,o.tanh=Ut,o.trunc=Gt,void 0===e&&(e={}),e&&!0!==e.defaults)for(a=[\"precision\",\"rounding\",\"toExpNeg\",\"toExpPos\",\"maxE\",\"minE\",\"modulo\",\"crypto\"],r=0;r<a.length;)e.hasOwnProperty(n=a[r++])||(e[n]=this[n]);return o.config(e),o}(d),o.prototype.constructor=o,o.default=o.Decimal=o,l=new o(l),p=new o(p),void 0===(n=function(){return o}.call(e,r,e,t))||(t.exports=n)}()},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function t(e,n){\"use strict\";var i,a,o=/(^([+\\-]?(?:0|[1-9]\\d*)(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)?$|^0x[0-9a-f]+$|\\d+)/gi,s=/(^[ ]*|[ ]*$)/g,u=/(^([\\w ]+,?[\\w ]+)?[\\w ]+,?[\\w ]+\\d+:\\d+(:\\d+)?[\\w ]?|^\\d{1,4}[\\/\\-]\\d{1,4}[\\/\\-]\\d{1,4}|^\\w+, \\w+ \\d+, \\d{4})/,f=/^0x[0-9a-f]+$/i,c=/^0/,h=function(e){return t.insensitive&&(\"\"+e).toLowerCase()||\"\"+e},l=h(e).replace(s,\"\")||\"\",p=h(n).replace(s,\"\")||\"\",d=l.replace(o,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),m=p.replace(o,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),y=parseInt(l.match(f),16)||1!==d.length&&l.match(u)&&Date.parse(l),b=parseInt(p.match(f),16)||y&&p.match(u)&&Date.parse(p)||null;if(b){if(y<b)return-1;if(y>b)return 1}for(var g=0,v=Math.max(d.length,m.length);g<v;g++){if(i=!(d[g]||\"\").match(c)&&parseFloat(d[g])||d[g]||0,a=!(m[g]||\"\").match(c)&&parseFloat(m[g])||m[g]||0,isNaN(i)!==isNaN(a))return isNaN(i)?1:-1;if(r(i)!==r(a)&&(i+=\"\",a+=\"\"),i<a)return-1;if(i>a)return 1}return 0}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){\"use strict\";(function(t,n){r.d(e,\"a\",(function(){return W})),r.d(e,\"b\",(function(){return Y})),r.d(e,\"d\",(function(){return X}));var i=r(11),a=r.n(i),o=r(6),s=r.n(o),u=r(31),f=r.n(u),c=r(0),h=r(34),l=r.n(h),p=r(101),d=r.n(p),m=r(32),y=r.n(m),b=r(35),g=r(102),v=r(116),w=r(33),_=r(19),x=r(45),E=r(20);function D(t,e,r){return(e=M(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,a,o,s=[],u=!0,f=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){f=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(f)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return A(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function S(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,M(n.key),n)}}function M(t){var e=function(t,e){if(\"object\"!=I(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=I(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==I(e)?e:e+\"\"}function F(t,e){if(e&&(\"object\"===I(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(C=function(){return!!t})()}function B(t){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(t)}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}function I(t){return I=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},I(t)}function T(t,e,r){return(e=function(t){var e=function(t,e){if(\"object\"!==I(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!==I(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"===I(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}for(var P=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_\",L=[NaN,NaN],N=2;N<65;N++){var j=l()(l.a.BIN,P.slice(0,N))(new Array(65).join(\"1\"));L.push(j.length)}function R(){}function z(t){return Object.prototype.toString.call(t).toLowerCase().indexOf(\"arraybuffer\")>-1}function U(e){for(var r=t.alloc(e.byteLength),n=new Uint8Array(e),i=0;i<r.length;++i)r[i]=n[i];return r}function G(e,r){Object(g.a)(e,(function(n,i){return n?r(n):\"object\"===I(i)&&t.isBuffer(i)?r(null,i):\"object\"===I(i)&&z(i)?r(null,U(i)):new Error(\"Could not load Buffer from <\".concat(e.url,\">\"))}))}var H,Z={data:null,width:null,height:null},q=function(e){function r(){var e,n,i,o;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,r);for(var s=arguments.length,u=new Array(s),f=0;f<s;f++)u[f]=arguments[f];n=this,i=B(i=r),T(e=F(n,C()?Reflect.construct(i,o||[],B(n).constructor):i.apply(n,o)),\"bitmap\",Z),T(e,\"_background\",0),T(e,\"_originalMime\",r.MIME_PNG),T(e,\"_exif\",null),T(e,\"_rgba\",!0),T(e,\"writeAsync\",(function(t){return Object(w.a)(e.write,e,t)})),T(e,\"getBase64Async\",(function(t){return Object(w.a)(e.getBase64,e,t)})),T(e,\"getBuffer\",x.a),T(e,\"getBufferAsync\",x.b),T(e,\"getPixelColour\",e.getPixelColor),T(e,\"setPixelColour\",e.setPixelColor);var h,l=e,p=R;function d(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];(n||{}).methodName=\"constructor\",setTimeout((function(){var t;n&&p===R?l.emitError(\"constructor\",n):n||l.emitMulti(\"constructor\",\"initialized\"),(t=p).call.apply(t,[l].concat(e))}),1)}if(z(u[0])&&(u[0]=U(u[0])),\"number\"==typeof u[0]&&\"number\"==typeof u[1]||parseInt(u[0],10)&&parseInt(u[1],10)){var m=parseInt(u[0],10),y=parseInt(u[1],10);if(p=u[2],\"number\"==typeof u[2]&&(e._background=u[2],p=u[3]),\"string\"==typeof u[2]&&(e._background=r.cssColorToHex(u[2]),p=u[3]),void 0===p&&(p=R),\"function\"!=typeof p)return F(e,c.d.call(e,\"cb must be a function\",d));e.bitmap={data:t.alloc(m*y*4),width:m,height:y};for(var b=0;b<e.bitmap.data.length;b+=4)e.bitmap.data.writeUInt32BE(e._background,b);d(null,e)}else if(\"object\"===I(u[0])&&u[0].url){if(\"function\"!=typeof(p=u[1]||R))return F(e,c.d.call(e,\"cb must be a function\",d));G(u[0],(function(t,r){if(t)return c.d.call(e,t,d);e.parseBitmap(r,u[0].url,d)}))}else if(u[0]instanceof r){var g=u[0];if(void 0===(p=u[1])&&(p=R),\"function\"!=typeof p)return F(e,c.d.call(e,\"cb must be a function\",d));e.bitmap={data:t.from(g.bitmap.data),width:g.bitmap.width,height:g.bitmap.height},e._quality=g._quality,e._deflateLevel=g._deflateLevel,e._deflateStrategy=g._deflateStrategy,e._filterType=g._filterType,e._rgba=g._rgba,e._background=g._background,e._originalMime=g._originalMime,d(null,e)}else if((h=u[0])&&\"object\"===I(h)&&\"number\"==typeof h.width&&\"number\"==typeof h.height&&(t.isBuffer(h.data)||h.data instanceof Uint8Array||\"function\"==typeof Uint8ClampedArray&&h.data instanceof Uint8ClampedArray)&&(h.data.length===h.width*h.height*4||h.data.length===h.width*h.height*3)){var v=u[0];p=u[1]||R;var _=v.width*v.height*4===v.data.length?t.from(v.data):function(e){if(e.length%3!=0)throw new Error(\"Buffer length is incorrect\");for(var r=t.allocUnsafe(e.length/3*4),n=0,i=0;i<e.length;i++)r[n]=e[i],(i+1)%3==0&&(r[++n]=255),n++;return r}(v.data);e.bitmap={data:_,width:v.width,height:v.height},d(null,e)}else if(\"string\"==typeof u[0]){var E=u[0];if(void 0===(p=u[1])&&(p=R),\"function\"!=typeof p)return F(e,c.d.call(e,\"cb must be a function\",d));!function(t,e){a.a&&\"function\"==typeof a.a.readFile&&!t.match(/^(http|ftp)s?:\\/\\/./)?a.a.readFile(t,e):G({url:t},e)}(E,(function(t,r){if(t)return c.d.call(e,t,d);e.parseBitmap(r,E,d)}))}else if(\"object\"===I(u[0])&&t.isBuffer(u[0])){var D=u[0];if(\"function\"!=typeof(p=u[1]))return F(e,c.d.call(e,\"cb must be a function\",d));e.parseBitmap(D,null,d)}else{\"function\"!=typeof(p=u[u.length-1])&&\"function\"!=typeof(p=u[u.length-2])&&(p=R);var k=r.__extraConstructors.find((function(t){return t.test.apply(t,u)}));if(!k)return F(e,c.d.call(e,\"No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.\",d));new Promise((function(t,r){var n;(n=k.run).call.apply(n,[e,t,r].concat(u))})).then((function(){return d(null,e)})).catch(d)}return e}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&O(t,e)}(r,e),n=r,i=[{key:\"parseBitmap\",value:function(t,e,r){x.c.call(this,t,null,r)}},{key:\"rgba\",value:function(t,e){return\"boolean\"!=typeof t?c.d.call(this,\"bool must be a boolean, true for RGBA or false for RGB\",e):(this._rgba=t,Object(c.a)(e)&&e.call(this,null,this),this)}},{key:\"emitMulti\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=Object.assign(r,{methodName:t,eventName:e}),this.emit(\"any\",r),t&&this.emit(t,r),this.emit(e,r)}},{key:\"emitError\",value:function(t,e){this.emitMulti(t,\"error\",e)}},{key:\"getHeight\",value:function(){return this.bitmap.height}},{key:\"getWidth\",value:function(){return this.bitmap.width}},{key:\"inspect\",value:function(){return\"<Jimp \"+(this.bitmap===Z?\"pending...\":this.bitmap.width+\"x\"+this.bitmap.height)+\">\"}},{key:\"toString\",value:function(){return\"[object Jimp]\"}},{key:\"getMIME\",value:function(){return this._originalMime||r.MIME_PNG}},{key:\"getExtension\",value:function(){var t=this.getMIME();return _.b(t)}},{key:\"write\",value:function(t,e){var r=this;if(!a.a||!a.a.createWriteStream)throw new Error(\"Cant access the filesystem. You can use the getBase64 method.\");if(\"string\"!=typeof t)return c.d.call(this,\"path must be a string\",e);if(void 0===e&&(e=R),\"function\"!=typeof e)return c.d.call(this,\"cb must be a function\",e);var n=_.c(t)||this.getMIME(),i=s.a.parse(t);return i.dir&&a.a.mkdirSync(i.dir,{recursive:!0}),this.getBuffer(n,(function(n,i){if(n)return c.d.call(r,n,e);var o=a.a.createWriteStream(t);o.on(\"open\",(function(){o.write(i),o.end()})).on(\"error\",(function(t){return c.d.call(r,t,e)})),o.on(\"finish\",(function(){e.call(r,null,r)}))})),this}},{key:\"getBase64\",value:function(t,e){return t===r.AUTO&&(t=this.getMIME()),\"string\"!=typeof t?c.d.call(this,\"mime must be a string\",e):\"function\"!=typeof e?c.d.call(this,\"cb must be a function\",e):(this.getBuffer(t,(function(r,n){if(r)return c.d.call(this,r,e);var i=\"data:\"+t+\";base64,\"+n.toString(\"base64\");e.call(this,null,i)})),this)}},{key:\"hash\",value:function(t,e){if(\"function\"==typeof(t=t||64)&&(e=t,t=64),\"number\"!=typeof t)return c.d.call(this,\"base must be a number\",e);if(t<2||t>64)return c.d.call(this,\"base must be a number between 2 and 64\",e);var r=this.pHash();for(r=l()(l.a.BIN,P.slice(0,t))(r);r.length<L[t];)r=\"0\"+r;return Object(c.a)(e)&&e.call(this,null,r),r}},{key:\"pHash\",value:function(){var t=new b.a;return t.getHash(this)}},{key:\"distanceFromHash\",value:function(t){var e=new b.a,r=e.getHash(this);return e.distance(r,t)}},{key:\"getPixelIndex\",value:function(t,e,n,i){var a,o;if(\"function\"==typeof n&&void 0===i&&(i=n,n=null),n||(n=r.EDGE_EXTEND),\"number\"!=typeof t||\"number\"!=typeof e)return c.d.call(this,\"x and y must be numbers\",i);a=t=Math.round(t),o=e=Math.round(e),n===r.EDGE_EXTEND&&(t<0&&(a=0),t>=this.bitmap.width&&(a=this.bitmap.width-1),e<0&&(o=0),e>=this.bitmap.height&&(o=this.bitmap.height-1)),n===r.EDGE_WRAP&&(t<0&&(a=this.bitmap.width+t),t>=this.bitmap.width&&(a=t%this.bitmap.width),e<0&&(o=this.bitmap.height+e),e>=this.bitmap.height&&(o=e%this.bitmap.height));var s=this.bitmap.width*o+a<<2;return(a<0||a>=this.bitmap.width)&&(s=-1),(o<0||o>=this.bitmap.height)&&(s=-1),Object(c.a)(i)&&i.call(this,null,s),s}},{key:\"getPixelColor\",value:function(t,e,r){if(\"number\"!=typeof t||\"number\"!=typeof e)return c.d.call(this,\"x and y must be numbers\",r);var n=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(n);return Object(c.a)(r)&&r.call(this,null,i),i}},{key:\"setPixelColor\",value:function(t,e,r,n){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof r)return c.d.call(this,\"hex, x and y must be numbers\",n);var i=this.getPixelIndex(e,r);return this.bitmap.data.writeUInt32BE(t,i),Object(c.a)(n)&&n.call(this,null,this),this}},{key:\"hasAlpha\",value:function(){for(var t=this.bitmap,e=t.width,r=t.height,n=t.data,i=e*r<<2,a=3;a<i;a+=4)if(255!==n[a])return!0;return!1}},{key:\"scanIterator\",value:function(t,e,r,n){return\"number\"!=typeof t||\"number\"!=typeof e?c.d.call(this,\"x and y must be numbers\"):\"number\"!=typeof r||\"number\"!=typeof n?c.d.call(this,\"w and h must be numbers\"):Object(c.c)(this,t,e,r,n)}}],i&&S(n.prototype,i),o&&S(n,o),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,i,o}(f.a);function W(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;Object.entries(t).forEach((function(t){var r=k(t,2),n=r[0],i=r[1];e[n]=i}))}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;Object.entries(t).forEach((function(t){var r=k(t,2),n=r[0],i=r[1];e.prototype[n]=i}))}function V(t,e,r){var n=\"before-\"+e,i=e.replace(/e$/,\"\")+\"ed\";q.prototype[t]=function(){for(var e,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var u,f=o[r.length-1],c=this;\"function\"==typeof f?(e=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var a=r[0],o=r[1];a?c.emitError(t,a):c.emitMulti(t,i,D({},t,o)),f.apply(this,r)},o[o.length-1]=e):e=!1,this.emitMulti(t,n);try{u=r.apply(this,o),e||this.emitMulti(t,i,D({},t,u))}catch(e){e.methodName=t,this.emitError(t,e)}return u},q.prototype[t+\"Quiet\"]=r}function X(t,e){V(t,\"change\",e)}(W(E),Y({composite:v.a}),q.__extraConstructors=[],q.appendConstructorOption=function(t,e,r){q.__extraConstructors.push({name:t,test:e,run:r})},q.read=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return new Promise((function(t,r){!function(t,e,r){if(C())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));r&&O(i,r.prototype)}(q,e.concat([function(e,n){e?r(e):t(n)}]))}))},q.create=q.read,q.rgbaToInt=function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof r||\"number\"!=typeof n)return c.d.call(this,\"r, g, b and a must be numbers\",i);if(t<0||t>255)return c.d.call(this,\"r must be between 0 and 255\",i);if((e<0||e>255)&&c.d.call(this,\"g must be between 0 and 255\",i),r<0||r>255)return c.d.call(this,\"b must be between 0 and 255\",i);if(n<0||n>255)return c.d.call(this,\"a must be between 0 and 255\",i);var a=255&t;return a<<=8,a|=255&e,a<<=8,a|=255&r,a<<=8,a|=255&n,a>>>=0,Object(c.a)(i)&&i.call(this,null,a),a},q.intToRGBA=function(t,e){if(\"number\"!=typeof t)return c.d.call(this,\"i must be a number\",e);var r={};return r.r=Math.floor(t/Math.pow(256,3)),r.g=Math.floor((t-r.r*Math.pow(256,3))/Math.pow(256,2)),r.b=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2))/Math.pow(256,1)),r.a=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2)-r.b*Math.pow(256,1))/Math.pow(256,0)),Object(c.a)(e)&&e.call(this,null,r),r},q.cssColorToHex=function(t){return\"number\"==typeof(t=t||0)?Number(t):parseInt(y()(t).toHex8(),16)},q.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},q.diff=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof q&&e instanceof q))return c.d.call(this,\"img1 and img2 must be an Jimp images\");var n=t.bitmap,i=e.bitmap;if(n.width===i.width&&n.height===i.height||(n.width*n.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(n.width,n.height)),\"number\"!=typeof r||r<0||r>1)return c.d.call(this,\"threshold must be a number between 0 and 1\");var a=new q(n.width,n.height,4294967295);return{percent:d()(n.data,i.data,a.bitmap.data,a.bitmap.width,a.bitmap.height,{threshold:r})/(a.bitmap.width*a.bitmap.height),image:a}},q.distance=function(t,e){var r=new b.a,n=r.getHash(t),i=r.getHash(e);return r.distance(n,i)},q.compareHashes=function(t,e){return(new b.a).distance(t,e)},q.colorDiff=function(t,e){var r=function(t){return Math.pow(t,2)},n=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(n(r(t.r-e.r),r(t.r-e.r-t.a+e.a))+n(r(t.g-e.g),r(t.g-e.g-t.a+e.a))+n(r(t.b-e.b),r(t.b-e.b-t.a+e.a)))/195075},V(\"clone\",\"clone\",(function(t){var e=new q(this);return Object(c.a)(t)&&t.call(e,null,e),e})),X(\"background\",(function(t,e){return\"number\"!=typeof t?c.d.call(this,\"hex must be a hexadecimal rgba value\",e):(this._background=t,Object(c.a)(e)&&e.call(this,null,this),this)})),X(\"scan\",(function(t,e,r,n,i,a){if(\"number\"!=typeof t||\"number\"!=typeof e)return c.d.call(this,\"x and y must be numbers\",a);if(\"number\"!=typeof r||\"number\"!=typeof n)return c.d.call(this,\"w and h must be numbers\",a);if(\"function\"!=typeof i)return c.d.call(this,\"f must be a function\",a);var o=Object(c.b)(this,t,e,r,n,i);return Object(c.a)(a)&&a.call(this,null,o),o})),\"BROWSER\"===n.env.ENVIRONMENT)&&(\"undefined\"!=typeof window&&\"object\"===(\"undefined\"==typeof window?\"undefined\":I(window))&&(H=window),\"undefined\"!=typeof self&&\"object\"===(\"undefined\"==typeof self?\"undefined\":I(self))&&(H=self),H.Jimp=q,H.Buffer=t);e.c=q}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=r(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return n.EndOfStreamError}});var i=r(127);Object.defineProperty(e,\"StreamReader\",{enumerable:!0,get:function(){return i.StreamReader}})},function(t,e,r){(function(t){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):\"[object Array]\"===n(t)},e.isBoolean=function(t){return\"boolean\"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return\"number\"==typeof t},e.isString=function(t){return\"string\"==typeof t},e.isSymbol=function(t){return\"symbol\"===r(t)},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return\"[object RegExp]\"===n(t)},e.isObject=function(t){return\"object\"===r(t)&&null!==t},e.isDate=function(t){return\"[object Date]\"===n(t)},e.isError=function(t){return\"[object Error]\"===n(t)||t instanceof Error},e.isFunction=function(t){return\"function\"==typeof t},e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===r(t)||void 0===t},e.isBuffer=t.isBuffer}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(2).Buffer,i=r(38).Transform,a=r(159),o=r(14),s=r(53).ok,u=r(2).kMaxLength,f=\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\";a.Z_MIN_WINDOWBITS=8,a.Z_MAX_WINDOWBITS=15,a.Z_DEFAULT_WINDOWBITS=15,a.Z_MIN_CHUNK=64,a.Z_MAX_CHUNK=1/0,a.Z_DEFAULT_CHUNK=16384,a.Z_MIN_MEMLEVEL=1,a.Z_MAX_MEMLEVEL=9,a.Z_DEFAULT_MEMLEVEL=8,a.Z_MIN_LEVEL=-1,a.Z_MAX_LEVEL=9,a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(a),h=0;h<c.length;h++){var l=c[h];l.match(/^Z/)&&Object.defineProperty(e,l,{enumerable:!0,value:a[l],writable:!1})}for(var p={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.Z_VERSION_ERROR},d=Object.keys(p),m=0;m<d.length;m++){var y=d[m];p[p[y]]=y}function b(t,e,r){var i=[],a=0;function o(){for(var e;null!==(e=t.read());)i.push(e),a+=e.length;t.once(\"readable\",o)}function s(){var e,o=null;a>=u?o=new RangeError(f):e=n.concat(i,a),i=[],t.close(),r(o,e)}t.on(\"error\",(function(e){t.removeListener(\"end\",s),t.removeListener(\"readable\",o),r(e)})),t.on(\"end\",s),t.end(e),o()}function g(t,e){if(\"string\"==typeof e&&(e=n.from(e)),!n.isBuffer(e))throw new TypeError(\"Not a string or buffer\");var r=t._finishFlushFlag;return t._processChunk(e,r)}function v(t){if(!(this instanceof v))return new v(t);S.call(this,t,a.DEFLATE)}function w(t){if(!(this instanceof w))return new w(t);S.call(this,t,a.INFLATE)}function _(t){if(!(this instanceof _))return new _(t);S.call(this,t,a.GZIP)}function x(t){if(!(this instanceof x))return new x(t);S.call(this,t,a.GUNZIP)}function E(t){if(!(this instanceof E))return new E(t);S.call(this,t,a.DEFLATERAW)}function D(t){if(!(this instanceof D))return new D(t);S.call(this,t,a.INFLATERAW)}function k(t){if(!(this instanceof k))return new k(t);S.call(this,t,a.UNZIP)}function A(t){return t===a.Z_NO_FLUSH||t===a.Z_PARTIAL_FLUSH||t===a.Z_SYNC_FLUSH||t===a.Z_FULL_FLUSH||t===a.Z_FINISH||t===a.Z_BLOCK}function S(t,r){var o=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,i.call(this,t),t.flush&&!A(t.flush))throw new Error(\"Invalid flush flag: \"+t.flush);if(t.finishFlush&&!A(t.finishFlush))throw new Error(\"Invalid flush flag: \"+t.finishFlush);if(this._flushFlag=t.flush||a.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:a.Z_FINISH,t.chunkSize&&(t.chunkSize<e.Z_MIN_CHUNK||t.chunkSize>e.Z_MAX_CHUNK))throw new Error(\"Invalid chunk size: \"+t.chunkSize);if(t.windowBits&&(t.windowBits<e.Z_MIN_WINDOWBITS||t.windowBits>e.Z_MAX_WINDOWBITS))throw new Error(\"Invalid windowBits: \"+t.windowBits);if(t.level&&(t.level<e.Z_MIN_LEVEL||t.level>e.Z_MAX_LEVEL))throw new Error(\"Invalid compression level: \"+t.level);if(t.memLevel&&(t.memLevel<e.Z_MIN_MEMLEVEL||t.memLevel>e.Z_MAX_MEMLEVEL))throw new Error(\"Invalid memLevel: \"+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error(\"Invalid strategy: \"+t.strategy);if(t.dictionary&&!n.isBuffer(t.dictionary))throw new Error(\"Invalid dictionary: it should be a Buffer instance\");this._handle=new a.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(t,r){M(s),s._hadError=!0;var n=new Error(t);n.errno=r,n.code=e.codes[r],s.emit(\"error\",n)};var u=e.Z_DEFAULT_COMPRESSION;\"number\"==typeof t.level&&(u=t.level);var f=e.Z_DEFAULT_STRATEGY;\"number\"==typeof t.strategy&&(f=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,u,t.memLevel||e.Z_DEFAULT_MEMLEVEL,f,t.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=f,this.once(\"end\",this.close),Object.defineProperty(this,\"_closed\",{get:function(){return!o._handle},configurable:!0,enumerable:!0})}function M(e,r){r&&t.nextTick(r),e._handle&&(e._handle.close(),e._handle=null)}function F(t){t.emit(\"close\")}Object.defineProperty(e,\"codes\",{enumerable:!0,value:Object.freeze(p),writable:!1}),e.Deflate=v,e.Inflate=w,e.Gzip=_,e.Gunzip=x,e.DeflateRaw=E,e.InflateRaw=D,e.Unzip=k,e.createDeflate=function(t){return new v(t)},e.createInflate=function(t){return new w(t)},e.createDeflateRaw=function(t){return new E(t)},e.createInflateRaw=function(t){return new D(t)},e.createGzip=function(t){return new _(t)},e.createGunzip=function(t){return new x(t)},e.createUnzip=function(t){return new k(t)},e.deflate=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new v(e),t,r)},e.deflateSync=function(t,e){return g(new v(e),t)},e.gzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new _(e),t,r)},e.gzipSync=function(t,e){return g(new _(e),t)},e.deflateRaw=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new E(e),t,r)},e.deflateRawSync=function(t,e){return g(new E(e),t)},e.unzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new k(e),t,r)},e.unzipSync=function(t,e){return g(new k(e),t)},e.inflate=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new w(e),t,r)},e.inflateSync=function(t,e){return g(new w(e),t)},e.gunzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new x(e),t,r)},e.gunzipSync=function(t,e){return g(new x(e),t)},e.inflateRaw=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),b(new D(e),t,r)},e.inflateRawSync=function(t,e){return g(new D(e),t)},o.inherits(S,i),S.prototype.params=function(r,n,i){if(r<e.Z_MIN_LEVEL||r>e.Z_MAX_LEVEL)throw new RangeError(\"Invalid compression level: \"+r);if(n!=e.Z_FILTERED&&n!=e.Z_HUFFMAN_ONLY&&n!=e.Z_RLE&&n!=e.Z_FIXED&&n!=e.Z_DEFAULT_STRATEGY)throw new TypeError(\"Invalid strategy: \"+n);if(this._level!==r||this._strategy!==n){var o=this;this.flush(a.Z_SYNC_FLUSH,(function(){s(o._handle,\"zlib binding closed\"),o._handle.params(r,n),o._hadError||(o._level=r,o._strategy=n,i&&i())}))}else t.nextTick(i)},S.prototype.reset=function(){return s(this._handle,\"zlib binding closed\"),this._handle.reset()},S.prototype._flush=function(t){this._transform(n.alloc(0),\"\",t)},S.prototype.flush=function(e,r){var i=this,o=this._writableState;(\"function\"==typeof e||void 0===e&&!r)&&(r=e,e=a.Z_FULL_FLUSH),o.ended?r&&t.nextTick(r):o.ending?r&&this.once(\"end\",r):o.needDrain?r&&this.once(\"drain\",(function(){return i.flush(e,r)})):(this._flushFlag=e,this.write(n.alloc(0),\"\",r))},S.prototype.close=function(e){M(this,e),t.nextTick(F,this)},S.prototype._transform=function(t,e,r){var i,o=this._writableState,s=(o.ending||o.ended)&&(!t||o.length===t.length);return null===t||n.isBuffer(t)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,t.length>=o.length&&(this._flushFlag=this._opts.flush||a.Z_NO_FLUSH)),void this._processChunk(t,i,r)):r(new Error(\"zlib binding closed\")):r(new Error(\"invalid input\"))},S.prototype._processChunk=function(t,e,r){var i=t&&t.length,a=this._chunkSize-this._offset,o=0,c=this,h=\"function\"==typeof r;if(!h){var l,p=[],d=0;this.on(\"error\",(function(t){l=t})),s(this._handle,\"zlib binding closed\");do{var m=this._handle.writeSync(e,t,o,i,this._buffer,this._offset,a)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw l;if(d>=u)throw M(this),new RangeError(f);var y=n.concat(p,d);return M(this),y}s(this._handle,\"zlib binding closed\");var b=this._handle.write(e,t,o,i,this._buffer,this._offset,a);function g(u,f){if(this&&(this.buffer=null,this.callback=null),!c._hadError){var l=a-f;if(s(l>=0,\"have should not go down\"),l>0){var m=c._buffer.slice(c._offset,c._offset+l);c._offset+=l,h?c.push(m):(p.push(m),d+=m.length)}if((0===f||c._offset>=c._chunkSize)&&(a=c._chunkSize,c._offset=0,c._buffer=n.allocUnsafe(c._chunkSize)),0===f){if(o+=i-u,i=u,!h)return!0;var y=c._handle.write(e,t,o,i,c._buffer,c._offset,c._chunkSize);return y.callback=g,void(y.buffer=t)}if(!h)return!1;r()}}b.buffer=t,b.callback=g},o.inherits(v,S),o.inherits(w,S),o.inherits(_,S),o.inherits(x,S),o.inherits(E,S),o.inherits(D,S),o.inherits(k,S)}).call(this,r(7))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i,a=r(165),o=r(166),s=r(167),u=r(168),f=r(77),c=r(40),h=r(169),l=Function,p=function(t){try{return l('\"use strict\"; return ('+t+\").constructor;\")()}catch(t){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},\"\")}catch(t){d=null}var m=function(){throw new c},y=d?function(){try{return m}catch(t){try{return d(arguments,\"callee\").get}catch(t){return m}}}():m,b=r(170)(),g=r(171)(),v=Object.getPrototypeOf||(g?function(t){return t.__proto__}:null),w={},_=\"undefined\"!=typeof Uint8Array&&v?v(Uint8Array):i,x={__proto__:null,\"%AggregateError%\":\"undefined\"==typeof AggregateError?i:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":\"undefined\"==typeof ArrayBuffer?i:ArrayBuffer,\"%ArrayIteratorPrototype%\":b&&v?v([][Symbol.iterator]()):i,\"%AsyncFromSyncIteratorPrototype%\":i,\"%AsyncFunction%\":w,\"%AsyncGenerator%\":w,\"%AsyncGeneratorFunction%\":w,\"%AsyncIteratorPrototype%\":w,\"%Atomics%\":\"undefined\"==typeof Atomics?i:Atomics,\"%BigInt%\":\"undefined\"==typeof BigInt?i:BigInt,\"%BigInt64Array%\":\"undefined\"==typeof BigInt64Array?i:BigInt64Array,\"%BigUint64Array%\":\"undefined\"==typeof BigUint64Array?i:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":\"undefined\"==typeof DataView?i:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":a,\"%eval%\":eval,\"%EvalError%\":o,\"%Float32Array%\":\"undefined\"==typeof Float32Array?i:Float32Array,\"%Float64Array%\":\"undefined\"==typeof Float64Array?i:Float64Array,\"%FinalizationRegistry%\":\"undefined\"==typeof FinalizationRegistry?i:FinalizationRegistry,\"%Function%\":l,\"%GeneratorFunction%\":w,\"%Int8Array%\":\"undefined\"==typeof Int8Array?i:Int8Array,\"%Int16Array%\":\"undefined\"==typeof Int16Array?i:Int16Array,\"%Int32Array%\":\"undefined\"==typeof Int32Array?i:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":b&&v?v(v([][Symbol.iterator]())):i,\"%JSON%\":\"object\"===(\"undefined\"==typeof JSON?\"undefined\":n(JSON))?JSON:i,\"%Map%\":\"undefined\"==typeof Map?i:Map,\"%MapIteratorPrototype%\":\"undefined\"!=typeof Map&&b&&v?v((new Map)[Symbol.iterator]()):i,\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":Object,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":\"undefined\"==typeof Promise?i:Promise,\"%Proxy%\":\"undefined\"==typeof Proxy?i:Proxy,\"%RangeError%\":s,\"%ReferenceError%\":u,\"%Reflect%\":\"undefined\"==typeof Reflect?i:Reflect,\"%RegExp%\":RegExp,\"%Set%\":\"undefined\"==typeof Set?i:Set,\"%SetIteratorPrototype%\":\"undefined\"!=typeof Set&&b&&v?v((new Set)[Symbol.iterator]()):i,\"%SharedArrayBuffer%\":\"undefined\"==typeof SharedArrayBuffer?i:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":b&&v?v(\"\"[Symbol.iterator]()):i,\"%Symbol%\":b?Symbol:i,\"%SyntaxError%\":f,\"%ThrowTypeError%\":y,\"%TypedArray%\":_,\"%TypeError%\":c,\"%Uint8Array%\":\"undefined\"==typeof Uint8Array?i:Uint8Array,\"%Uint8ClampedArray%\":\"undefined\"==typeof Uint8ClampedArray?i:Uint8ClampedArray,\"%Uint16Array%\":\"undefined\"==typeof Uint16Array?i:Uint16Array,\"%Uint32Array%\":\"undefined\"==typeof Uint32Array?i:Uint32Array,\"%URIError%\":h,\"%WeakMap%\":\"undefined\"==typeof WeakMap?i:WeakMap,\"%WeakRef%\":\"undefined\"==typeof WeakRef?i:WeakRef,\"%WeakSet%\":\"undefined\"==typeof WeakSet?i:WeakSet};if(v)try{null.error}catch(t){var E=v(v(t));x[\"%Error.prototype%\"]=E}var D=function t(e){var r;if(\"%AsyncFunction%\"===e)r=p(\"async function () {}\");else if(\"%GeneratorFunction%\"===e)r=p(\"function* () {}\");else if(\"%AsyncGeneratorFunction%\"===e)r=p(\"async function* () {}\");else if(\"%AsyncGenerator%\"===e){var n=t(\"%AsyncGeneratorFunction%\");n&&(r=n.prototype)}else if(\"%AsyncIteratorPrototype%\"===e){var i=t(\"%AsyncGenerator%\");i&&v&&(r=v(i.prototype))}return x[e]=r,r},k={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},A=r(54),S=r(173),M=A.call(Function.call,Array.prototype.concat),F=A.call(Function.apply,Array.prototype.splice),C=A.call(Function.call,String.prototype.replace),B=A.call(Function.call,String.prototype.slice),O=A.call(Function.call,RegExp.prototype.exec),I=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,T=/\\\\(\\\\)?/g,P=function(t,e){var r,n=t;if(S(k,n)&&(n=\"%\"+(r=k[n])[0]+\"%\"),S(x,n)){var i=x[n];if(i===w&&(i=D(n)),void 0===i&&!e)throw new c(\"intrinsic \"+t+\" exists, but is not available. Please file an issue!\");return{alias:r,name:n,value:i}}throw new f(\"intrinsic \"+t+\" does not exist!\")};t.exports=function(t,e){if(\"string\"!=typeof t||0===t.length)throw new c(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&\"boolean\"!=typeof e)throw new c('\"allowMissing\" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,t))throw new f(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var r=function(t){var e=B(t,0,1),r=B(t,-1);if(\"%\"===e&&\"%\"!==r)throw new f(\"invalid intrinsic syntax, expected closing `%`\");if(\"%\"===r&&\"%\"!==e)throw new f(\"invalid intrinsic syntax, expected opening `%`\");var n=[];return C(t,I,(function(t,e,r,i){n[n.length]=r?C(i,T,\"$1\"):e||t})),n}(t),n=r.length>0?r[0]:\"\",i=P(\"%\"+n+\"%\",e),a=i.name,o=i.value,s=!1,u=i.alias;u&&(n=u[0],F(r,M([0,1],u)));for(var h=1,l=!0;h<r.length;h+=1){var p=r[h],m=B(p,0,1),y=B(p,-1);if(('\"'===m||\"'\"===m||\"`\"===m||'\"'===y||\"'\"===y||\"`\"===y)&&m!==y)throw new f(\"property names with quotes must have matching quotes\");if(\"constructor\"!==p&&l||(s=!0),S(x,a=\"%\"+(n+=\".\"+p)+\"%\"))o=x[a];else if(null!=o){if(!(p in o)){if(!e)throw new c(\"base intrinsic for \"+t+\" exists, but the property is not available.\");return}if(d&&h+1>=r.length){var b=d(o,p);o=(l=!!b)&&\"get\"in b&&!(\"originalValue\"in b.get)?b.get:o[p]}else l=S(o,p),o=o[p];l&&!s&&(x[a]=o)}}return o}},function(t,e,r){\"use strict\";t.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i,a=\"object\"===(\"undefined\"==typeof Reflect?\"undefined\":n(Reflect))?Reflect:null,o=a&&\"function\"==typeof a.apply?a.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};i=a&&\"function\"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}t.exports=u,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,a),n(r)}function a(){\"function\"==typeof t.removeListener&&t.removeListener(\"error\",i),r([].slice.call(arguments))}g(t,e,a,{once:!0}),\"error\"!==e&&function(t,e,r){\"function\"==typeof t.on&&g(t,\"error\",e,r)}(t,i,{once:!0})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var f=10;function c(t){if(\"function\"!=typeof t)throw new TypeError('The \"listener\" argument must be of type Function. Received type '+n(t))}function h(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var i,a,o;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit(\"newListener\",e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if(\"function\"==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=h(t))>0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error(\"Possible EventEmitter memory leak detected. \"+o.length+\" \"+String(e)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");s.name=\"MaxListenersExceededWarning\",s.emitter=t,s.type=e,s.count=o.length,console&&console.warn}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=p.bind(n);return i.listener=r,n.wrapFn=i,i}function m(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:\"function\"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):b(i,i.length)}function y(t){var e=this._events;if(void 0!==e){var r=e[t];if(\"function\"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function b(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function g(t,e,r,i){if(\"function\"==typeof t.on)i.once?t.once(e,r):t.on(e,r);else{if(\"function\"!=typeof t.addEventListener)throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type '+n(t));t.addEventListener(e,(function n(a){i.once&&t.removeEventListener(e,n),r(a)}))}}Object.defineProperty(u,\"defaultMaxListeners\",{enumerable:!0,get:function(){return f},set:function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+t+\".\");f=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+t+\".\");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return h(this)},u.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n=\"error\"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error(\"Unhandled error.\"+(a?\" (\"+a.message+\")\":\"\"));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if(\"function\"==typeof u)o(u,this,e);else{var f=u.length,c=b(u,f);for(r=0;r<f;++r)o(c[r],this,e)}return!0},u.prototype.addListener=function(t,e){return l(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return l(this,t,e,!0)},u.prototype.once=function(t,e){return c(e),this.on(t,d(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,d(this,t,e)),this},u.prototype.removeListener=function(t,e){var r,n,i,a,o;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit(\"removeListener\",t,r.listener||e));else if(\"function\"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit(\"removeListener\",t,o||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n<a.length;++n)\"removeListener\"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(\"function\"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return m(this,t,!0)},u.prototype.rawListeners=function(t){return m(this,t,!1)},u.listenerCount=function(t,e){return\"function\"==typeof t.listenerCount?t.listenerCount(e):y.call(t,e)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(t,e,r){var n,i,a;function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}a=function(){\"use strict\";function t(e){return t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t(e)}var e=/^\\s+/,r=/\\s+$/;function n(i,a){if(a=a||{},(i=i||\"\")instanceof n)return i;if(!(this instanceof n))return new n(i,a);var o=function(n){var i,a,o,s={r:0,g:0,b:0},u=1,f=null,c=null,h=null,l=!1,p=!1;return\"string\"==typeof n&&(n=function(t){t=t.replace(e,\"\").replace(r,\"\").toLowerCase();var n,i=!1;if(w[t])t=w[t],i=!0;else if(\"transparent\"==t)return{r:0,g:0,b:0,a:0,format:\"name\"};return(n=I.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=I.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=I.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=I.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=I.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=I.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=I.hex8.exec(t))?{r:k(n[1]),g:k(n[2]),b:k(n[3]),a:F(n[4]),format:i?\"name\":\"hex8\"}:(n=I.hex6.exec(t))?{r:k(n[1]),g:k(n[2]),b:k(n[3]),format:i?\"name\":\"hex\"}:(n=I.hex4.exec(t))?{r:k(n[1]+\"\"+n[1]),g:k(n[2]+\"\"+n[2]),b:k(n[3]+\"\"+n[3]),a:F(n[4]+\"\"+n[4]),format:i?\"name\":\"hex8\"}:!!(n=I.hex3.exec(t))&&{r:k(n[1]+\"\"+n[1]),g:k(n[2]+\"\"+n[2]),b:k(n[3]+\"\"+n[3]),format:i?\"name\":\"hex\"}}(n)),\"object\"==t(n)&&(T(n.r)&&T(n.g)&&T(n.b)?(i=n.r,a=n.g,o=n.b,s={r:255*E(i,255),g:255*E(a,255),b:255*E(o,255)},l=!0,p=\"%\"===String(n.r).substr(-1)?\"prgb\":\"rgb\"):T(n.h)&&T(n.s)&&T(n.v)?(f=S(n.s),c=S(n.v),s=function(t,e,r){t=6*E(t,360),e=E(e,100),r=E(r,100);var n=Math.floor(t),i=t-n,a=r*(1-e),o=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6,f=[r,o,a,a,s,r][u],c=[s,r,r,o,a,a][u],h=[a,a,s,r,r,o][u];return{r:255*f,g:255*c,b:255*h}}(n.h,f,c),l=!0,p=\"hsv\"):T(n.h)&&T(n.s)&&T(n.l)&&(f=S(n.s),h=S(n.l),s=function(t,e,r){var n,i,a;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=E(t,360),e=E(e,100),r=E(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),i=o(u,s,t),a=o(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(n.h,f,h),l=!0,p=\"hsl\"),n.hasOwnProperty(\"a\")&&(u=n.a)),u=x(u),{ok:l,format:n.format||p,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:u}}(i);this._originalInput=i,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=a.format||o.format,this._gradientType=a.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function i(t,e,r){t=E(t,255),e=E(e,255),r=E(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=(a+o)/2;if(a==o)n=i=0;else{var u=a-o;switch(i=s>.5?u/(2-a-o):u/(a+o),a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:s}}function a(t,e,r){t=E(t,255),e=E(e,255),r=E(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=a,u=a-o;if(i=0===a?0:u/a,a==o)n=0;else{switch(a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:s}}function o(t,e,r,n){var i=[A(Math.round(t).toString(16)),A(Math.round(e).toString(16)),A(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function s(t,e,r,n){return[A(M(n)),A(Math.round(t).toString(16)),A(Math.round(e).toString(16)),A(Math.round(r).toString(16))].join(\"\")}function u(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s-=e/100,r.s=D(r.s),n(r)}function f(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s+=e/100,r.s=D(r.s),n(r)}function c(t){return n(t).desaturate(100)}function h(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l+=e/100,r.l=D(r.l),n(r)}function l(t,e){e=0===e?0:e||10;var r=n(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),n(r)}function p(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l-=e/100,r.l=D(r.l),n(r)}function d(t,e){var r=n(t).toHsl(),i=(r.h+e)%360;return r.h=i<0?360+i:i,n(r)}function m(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function y(t,e){if(isNaN(e)||e<=0)throw new Error(\"Argument to polyad must be a positive number\");for(var r=n(t).toHsl(),i=[n(t)],a=360/e,o=1;o<e;o++)i.push(n({h:(r.h+o*a)%360,s:r.s,l:r.l}));return i}function b(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+72)%360,s:e.s,l:e.l}),n({h:(r+216)%360,s:e.s,l:e.l})]}function g(t,e,r){e=e||6,r=r||30;var i=n(t).toHsl(),a=360/r,o=[n(t)];for(i.h=(i.h-(a*e>>1)+720)%360;--e;)i.h=(i.h+a)%360,o.push(n(i));return o}function v(t,e){e=e||6;for(var r=n(t).toHsv(),i=r.h,a=r.s,o=r.v,s=[],u=1/e;e--;)s.push(n({h:i,s:a,v:o})),o=(o+u)%1;return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=x(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=a(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?\"hsv(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsva(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?\"hsl(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsla(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHex:function(t){return o(this._r,this._g,this._b,t)},toHexString:function(t){return\"#\"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var a=[A(Math.round(t).toString(16)),A(Math.round(e).toString(16)),A(Math.round(r).toString(16)),A(M(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join(\"\")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return\"#\"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\")\":\"rgba(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:Math.round(100*E(this._r,255))+\"%\",g:Math.round(100*E(this._g,255))+\"%\",b:Math.round(100*E(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(100*E(this._r,255))+\"%, \"+Math.round(100*E(this._g,255))+\"%, \"+Math.round(100*E(this._b,255))+\"%)\":\"rgba(\"+Math.round(100*E(this._r,255))+\"%, \"+Math.round(100*E(this._g,255))+\"%, \"+Math.round(100*E(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&(_[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=\"#\"+s(this._r,this._g,this._b,this._a),r=e,i=this._gradientType?\"GradientType = 1, \":\"\";if(t){var a=n(t);r=\"#\"+s(a._r,a._g,a._b,a._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+i+\"startColorstr=\"+e+\",endColorstr=\"+r+\")\"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||\"hex\"!==t&&\"hex6\"!==t&&\"hex3\"!==t&&\"hex4\"!==t&&\"hex8\"!==t&&\"name\"!==t?(\"rgb\"===t&&(r=this.toRgbString()),\"prgb\"===t&&(r=this.toPercentageRgbString()),\"hex\"!==t&&\"hex6\"!==t||(r=this.toHexString()),\"hex3\"===t&&(r=this.toHexString(!0)),\"hex4\"===t&&(r=this.toHex8String(!0)),\"hex8\"===t&&(r=this.toHex8String()),\"name\"===t&&(r=this.toName()),\"hsl\"===t&&(r=this.toHslString()),\"hsv\"===t&&(r=this.toHsvString()),r||this.toHexString()):\"name\"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(l,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(c,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(g,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(v,arguments)},splitcomplement:function(){return this._applyCombination(b,arguments)},triad:function(){return this._applyCombination(y,[3])},tetrad:function(){return this._applyCombination(y,[4])}},n.fromRatio=function(e,r){if(\"object\"==t(e)){var i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=\"a\"===a?e[a]:S(e[a]));e=i}return n(e,r)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(t,e,r){r=0===r?0:r||50;var i=n(t).toRgb(),a=n(e).toRgb(),o=r/100;return n({r:(a.r-i.r)*o+i.r,g:(a.g-i.g)*o+i.g,b:(a.b-i.b)*o+i.b,a:(a.a-i.a)*o+i.a})},n.readability=function(t,e){var r=n(t),i=n(e);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(t,e,r){var i,a,o,s,u,f=n.readability(t,e);switch(a=!1,(o=r,s=((o=o||{level:\"AA\",size:\"small\"}).level||\"AA\").toUpperCase(),u=(o.size||\"small\").toLowerCase(),\"AA\"!==s&&\"AAA\"!==s&&(s=\"AA\"),\"small\"!==u&&\"large\"!==u&&(u=\"small\"),i={level:s,size:u}).level+i.size){case\"AAsmall\":case\"AAAlarge\":a=f>=4.5;break;case\"AAlarge\":a=f>=3;break;case\"AAAsmall\":a=f>=7}return a},n.mostReadable=function(t,e,r){var i,a,o,s,u=null,f=0;a=(r=r||{}).includeFallbackColors,o=r.level,s=r.size;for(var c=0;c<e.length;c++)(i=n.readability(t,e[c]))>f&&(f=i,u=n(e[c]));return n.isReadable(t,u,{level:o,size:s})||!a?u:(r.includeFallbackColors=!1,n.mostReadable(t,[\"#fff\",\"#000\"],r))};var w=n.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},_=n.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(w);function x(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function E(t,e){(function(t){return\"string\"==typeof t&&-1!=t.indexOf(\".\")&&1===parseFloat(t)})(t)&&(t=\"100%\");var r=function(t){return\"string\"==typeof t&&-1!=t.indexOf(\"%\")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function D(t){return Math.min(1,Math.max(0,t))}function k(t){return parseInt(t,16)}function A(t){return 1==t.length?\"0\"+t:\"\"+t}function S(t){return t<=1&&(t=100*t+\"%\"),t}function M(t){return Math.round(255*parseFloat(t)).toString(16)}function F(t){return k(t)/255}var C,B,O,I=(B=\"[\\\\s|\\\\(]+(\"+(C=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\")+\")[,|\\\\s]+(\"+C+\")[,|\\\\s]+(\"+C+\")\\\\s*\\\\)?\",O=\"[\\\\s|\\\\(]+(\"+C+\")[,|\\\\s]+(\"+C+\")[,|\\\\s]+(\"+C+\")[,|\\\\s]+(\"+C+\")\\\\s*\\\\)?\",{CSS_UNIT:new RegExp(C),rgb:new RegExp(\"rgb\"+B),rgba:new RegExp(\"rgba\"+O),hsl:new RegExp(\"hsl\"+B),hsla:new RegExp(\"hsla\"+O),hsv:new RegExp(\"hsv\"+B),hsva:new RegExp(\"hsva\"+O),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function T(t){return!!I.CSS_UNIT.exec(t)}return n},\"object\"===o(e)&&void 0!==t?t.exports=a():void 0===(i=\"function\"==typeof(n=a)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){\"use strict\";e.a=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise((function(r,i){n.push((function(t,e){t&&i(t),r(e)})),t.bind(e).apply(void 0,n)}))}},function(t,e,r){var n=r(122);function i(t,e){var r=new n(t,e);return function(t){return r.convert(t)}}i.BIN=\"01\",i.OCT=\"01234567\",i.DEC=\"0123456789\",i.HEX=\"0123456789abcdef\",t.exports=i},function(t,e,r){\"use strict\";function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;e<t;e++)a[e]=1;a[0]=1/Math.sqrt(2)}(this.size)}function i(t){var e=255&t,r=255&(t>>>=8),n=255&(t>>>=8);return{r:255&(t>>>=8),g:n,b:r,a:e}}n.prototype.size=32,n.prototype.smallerSize=8,n.prototype.distance=function(t,e){for(var r=0,n=0;n<t.length;n++)t[n]!==e[n]&&r++;return r/t.length},n.prototype.getHash=function(t){(t=t.clone().resize(this.size,this.size)).grayscale();for(var e=[],r=0;r<t.bitmap.width;r++){e[r]=[];for(var n=0;n<t.bitmap.height;n++)e[r][n]=i(t.getPixelColor(r,n)).b}for(var o=function(t,e){for(var r=e,n=[],i=0;i<r;i++){n[i]=[];for(var o=0;o<r;o++){for(var s=0,u=0;u<r;u++)for(var f=0;f<r;f++)s+=Math.cos((2*u+1)/(2*r)*i*Math.PI)*Math.cos((2*f+1)/(2*r)*o*Math.PI)*t[u][f];s*=a[i]*a[o]/4,n[i][o]=s}}return n}(e,this.size),s=0,u=0;u<this.smallerSize;u++)for(var f=0;f<this.smallerSize;f++)s+=o[u][f];for(var c=s/(this.smallerSize*this.smallerSize),h=\"\",l=0;l<this.smallerSize;l++)for(var p=0;p<this.smallerSize;p++)h+=o[l][p]>c?\"1\":\"0\";return h};var a=[];e.a=n},function(t,e,r){(function(t,e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}!function(){var i={};function a(){void 0===e&&console.log.apply(console,arguments)}\"object\"==n(t)?t.exports=i:self.UTIF=i,function(t,e){var r,i,o,s,u,f,c,h,l,p,d,m,y,b;!function(){\"use strict\";var e=function(){function t(t){this.message=\"JPEG error: \"+t}return t.prototype=new Error,t.prototype.name=\"JpegError\",t.constructor=t,t}(),r=function(){var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),r=4017,a=799,o=3406,s=2276,u=1567,f=3784,c=5793,h=2896;function l(t){null==t&&(t={}),null==t.w&&(t.w=-1),this.V=t.n,this.N=t.w}function p(t,e){for(var r,n,i,a=0,o=[],s=16;s>0&&!t[s-1];)s--;o.push({children:[],index:0});var u=o[0];for(r=0;r<s;r++){for(n=0;n<t[r];n++){for((u=o.pop()).children[u.index]=e[a];u.index>0;)u=o.pop();for(u.index++,o.push(u);o.length<=r;)o.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i;a++}r+1<s&&(o.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i)}return o[0].children}function d(t,e,r){return 64*((t.P+1)*e+r)}function m(r,a,o,s,u,f,c,h,l,p){null==p&&(p=!1);var m,y,b,v,w,_,x,E,D,k,A,S=o.m,M=o.Z,F=a,C=0,B=0,O=0,I=0,T=0,P=0;function L(){if(B>0)return B--,C>>B&1;if(255===(C=r[a++])){var t=r[a++];if(t){if(220===t&&p){var n=i(r,a+=2);if(a+=2,n>0&&n!==o.s)throw new DNLMarkerError(\"Found DNL marker (0xFFDC) while parsing scan data\",n)}else if(217===t){if(p){var s=8*T;if(s>0&&s<o.s/10)throw new DNLMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter\",s)}throw new EOIMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data\")}throw new e(\"unexpected marker\")}}return B=7,C>>>7}function N(t){for(var r=t;;){switch(n(r=r[L()])){case\"number\":return r;case\"object\":continue}throw new e(\"invalid huffman sequence\")}}function j(t){for(var e=0;t>0;)e=e<<1|L(),t--;return e}function R(t){if(1===t)return 1===L()?1:-1;var e=j(t);return e>=1<<t-1?e:e+(-1<<t)+1}function z(t,e,r,n,i){var a=r%S;T=(r/S|0)*t.A+n;var o=a*t.h+i;e(t,d(t,T,o))}function U(t,e,r){T=r/t.P|0;var n=r%t.P;e(t,d(t,T,n))}var G=s.length;for(x=M?0===f?0===h?function(t,e){var r=N(t.J),n=0===r?0:R(r)<<l;t.D[e]=t.Q+=n}:function(t,e){t.D[e]|=L()<<l}:0===h?function(e,r){if(O>0)O--;else for(var n=f,i=c;n<=i;){var a=N(e.i),o=15&a,s=a>>4;if(0!==o){var u=t[n+=s];e.D[r+u]=R(o)*(1<<l),n++}else{if(s<15){O=j(s)+(1<<s)-1;break}n+=16}}}:function(r,n){for(var i,a,o=f,s=c,u=0;o<=s;){var h=n+t[o],p=r.D[h]<0?-1:1;switch(I){case 0:if(u=(a=N(r.i))>>4,0==(i=15&a))u<15?(O=j(u)+(1<<u),I=4):(u=16,I=1);else{if(1!==i)throw new e(\"invalid ACn encoding\");m=R(i),I=u?2:3}continue;case 1:case 2:r.D[h]?r.D[h]+=p*(L()<<l):0==--u&&(I=2===I?3:0);break;case 3:r.D[h]?r.D[h]+=p*(L()<<l):(r.D[h]=m<<l,I=0);break;case 4:r.D[h]&&(r.D[h]+=p*(L()<<l))}o++}4===I&&0==--O&&(I=0)}:function(e,r){var n=N(e.J),i=0===n?0:R(n),a=1;for(e.D[r]=e.Q+=i;a<64;){var o=N(e.i),s=15&o,u=o>>4;if(0!==s){var f=t[a+=u];e.D[r+f]=R(s),a++}else{if(u<15)break;a+=16}}},D=1===G?s[0].P*s[0].c:S*o.R;P<=D;){var H=u?Math.min(D-P,u):D;if(H>0){for(b=0;b<G;b++)s[b].Q=0;if(O=0,1===G)for(y=s[0],_=0;_<H;_++)U(y,x,P),P++;else for(_=0;_<H;_++){for(b=0;b<G;b++)for(k=(y=s[b]).h,A=y.A,v=0;v<A;v++)for(w=0;w<k;w++)z(y,x,P,v,w);P++}}if(B=0,!(E=g(r,a)))break;if(E.u){a=E.offset}if(!(E.M>=65488&&E.M<=65495))break;a+=2}return a-F}function y(t,n,i){var l,p,d,m,y,b,g,v,w,_,x,E,D,k,A,S,M,F=t.$,C=t.D;if(!F)throw new e(\"missing required Quantization Table.\");for(var B=0;B<64;B+=8)w=C[n+B],_=C[n+B+1],x=C[n+B+2],E=C[n+B+3],D=C[n+B+4],k=C[n+B+5],A=C[n+B+6],S=C[n+B+7],w*=F[B],_|x|E|D|k|A|S?(_*=F[B+1],x*=F[B+2],E*=F[B+3],D*=F[B+4],k*=F[B+5],A*=F[B+6],S*=F[B+7],p=(l=(l=c*w+128>>8)+(p=c*D+128>>8)+1>>1)-p,M=(d=x)*f+(m=A)*u+128>>8,d=d*u-m*f+128>>8,g=(y=(y=h*(_-S)+128>>8)+(g=k<<4)+1>>1)-g,b=(v=(v=h*(_+S)+128>>8)+(b=E<<4)+1>>1)-b,m=(l=l+(m=M)+1>>1)-m,d=(p=p+d+1>>1)-d,M=y*s+v*o+2048>>12,y=y*o-v*s+2048>>12,v=M,M=b*a+g*r+2048>>12,b=b*r-g*a+2048>>12,g=M,i[B]=l+v,i[B+7]=l-v,i[B+1]=p+g,i[B+6]=p-g,i[B+2]=d+b,i[B+5]=d-b,i[B+3]=m+y,i[B+4]=m-y):(M=c*w+512>>10,i[B]=M,i[B+1]=M,i[B+2]=M,i[B+3]=M,i[B+4]=M,i[B+5]=M,i[B+6]=M,i[B+7]=M);for(var O=0;O<8;++O)w=i[O],(_=i[O+8])|(x=i[O+16])|(E=i[O+24])|(D=i[O+32])|(k=i[O+40])|(A=i[O+48])|(S=i[O+56])?(p=(l=4112+((l=c*w+2048>>12)+(p=c*D+2048>>12)+1>>1))-p,M=(d=x)*f+(m=A)*u+2048>>12,d=d*u-m*f+2048>>12,m=M,g=(y=(y=h*(_-S)+2048>>12)+(g=k)+1>>1)-g,b=(v=(v=h*(_+S)+2048>>12)+(b=E)+1>>1)-b,M=y*s+v*o+2048>>12,y=y*o-v*s+2048>>12,v=M,M=b*a+g*r+2048>>12,b=b*r-g*a+2048>>12,(w=(l=l+m+1>>1)+v)<16?w=0:w>=4080?w=255:w>>=4,(_=(p=p+d+1>>1)+(g=M))<16?_=0:_>=4080?_=255:_>>=4,(x=(d=p-d)+b)<16?x=0:x>=4080?x=255:x>>=4,(E=(m=l-m)+y)<16?E=0:E>=4080?E=255:E>>=4,(D=m-y)<16?D=0:D>=4080?D=255:D>>=4,(k=d-b)<16?k=0:k>=4080?k=255:k>>=4,(A=p-g)<16?A=0:A>=4080?A=255:A>>=4,(S=l-v)<16?S=0:S>=4080?S=255:S>>=4,C[n+O]=w,C[n+O+8]=_,C[n+O+16]=x,C[n+O+24]=E,C[n+O+32]=D,C[n+O+40]=k,C[n+O+48]=A,C[n+O+56]=S):(M=(M=c*w+8192>>14)<-2040?0:M>=2024?255:M+2056>>4,C[n+O]=M,C[n+O+8]=M,C[n+O+16]=M,C[n+O+24]=M,C[n+O+32]=M,C[n+O+40]=M,C[n+O+48]=M,C[n+O+56]=M)}function b(t,e){for(var r=e.P,n=e.c,i=new Int16Array(64),a=0;a<n;a++)for(var o=0;o<r;o++){y(e,d(e,a,o),i)}return e.D}function g(t,e,r){null==r&&(r=e);var n=t.length-1,a=r<e?r:e;if(e>=n)return null;var o=i(t,e);if(o>=65472&&o<=65534)return{u:null,M:o,offset:e};for(var s=i(t,a);!(s>=65472&&s<=65534);){if(++a>=n)return null;s=i(t,a)}return{u:o.toString(16),M:s,offset:a}}return l.prototype={parse:function(r,n){null==n&&(n={});var a,o,s=n.F,u=0,f=null,c=null,h=0;function l(){var t=i(r,u),e=(u+=2)+t-2,n=g(r,e,u);n&&n.u&&(e=n.offset);var a=r.subarray(u,e);return u+=a.length,a}function d(t){for(var e=Math.ceil(t.o/8/t.X),r=Math.ceil(t.s/8/t.B),n=0;n<t.W.length;n++){G=t.W[n];var i=Math.ceil(Math.ceil(t.o/8)*G.h/t.X),a=Math.ceil(Math.ceil(t.s/8)*G.A/t.B),o=e*G.h,s=64*(r*G.A)*(o+1);G.D=new Int16Array(s),G.P=i,G.c=a}t.m=e,t.R=r}var y=[],v=[],w=[],_=i(r,u);if(u+=2,65496!==_)throw new e(\"SOI not found\");_=i(r,u),u+=2;t:for(;65497!==_;){var x,E,D;switch(_){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var k=l();65504===_&&74===k[0]&&70===k[1]&&73===k[2]&&70===k[3]&&0===k[4]&&(f={version:{d:k[5],T:k[6]},K:k[7],j:k[8]<<8|k[9],H:k[10]<<8|k[11],S:k[12],I:k[13],C:k.subarray(14,14+3*k[12]*k[13])}),65518===_&&65===k[0]&&100===k[1]&&111===k[2]&&98===k[3]&&101===k[4]&&(c={version:k[5]<<8|k[6],k:k[7]<<8|k[8],q:k[9]<<8|k[10],a:k[11]});break;case 65499:for(var A=i(r,u)+(u+=2)-2;u<A;){var S=r[u++],M=new Uint16Array(64);if(S>>4){if(S>>4!=1)throw new e(\"DQT - invalid table spec\");for(E=0;E<64;E++)M[t[E]]=i(r,u),u+=2}else for(E=0;E<64;E++)M[t[E]]=r[u++];y[15&S]=M}break;case 65472:case 65473:case 65474:if(a)throw new e(\"Only single frame JPEGs supported\");u+=2,(a={}).G=65473===_,a.Z=65474===_,a.precision=r[u++];var F,C=i(r,u),B=0,O=0;u+=2,a.s=s||C,a.o=i(r,u),u+=2,a.W=[],a._={};var I=r[u++];for(x=0;x<I;x++){F=r[u];var T=r[u+1]>>4,P=15&r[u+1];B<T&&(B=T),O<P&&(O=P);var L=r[u+2];D=a.W.push({h:T,A:P,L,$:null}),a._[F]=D-1,u+=3}a.X=B,a.B=O,d(a);break;case 65476:var N=i(r,u);for(u+=2,x=2;x<N;){var j=r[u++],R=new Uint8Array(16),z=0;for(E=0;E<16;E++,u++)z+=R[E]=r[u];var U=new Uint8Array(z);for(E=0;E<z;E++,u++)U[E]=r[u];x+=17+z,(j>>4?v:w)[15&j]=p(R,U)}break;case 65501:o=i(r,u+=2),u+=2;break;case 65498:var G,H=1==++h&&!s;u+=2;var Z=r[u++],q=[];for(x=0;x<Z;x++){var W=r[u++],Y=a._[W];(G=a.W[Y]).index=W;var V=r[u++];G.J=w[V>>4],G.i=v[15&V],q.push(G)}var X=r[u++],J=r[u++],K=r[u++];try{var Q=m(r,u,a,q,o,X,J,K>>4,15&K,H);u+=Q}catch(t){if(t instanceof DNLMarkerError)return this.parse(r,{F:t.s});if(t instanceof EOIMarkerError)break t;throw t}break;case 65500:u+=4;break;case 65535:255!==r[u]&&u--;break;default:var $=g(r,u-2,u-3);if($&&$.u){u=$.offset;break}if(u>=r.length-1)break t;throw new e(\"JpegImage.parse - unknown marker: \"+_.toString(16))}_=i(r,u),u+=2}for(this.width=a.o,this.height=a.s,this.g=f,this.b=c,this.W=[],x=0;x<a.W.length;x++){var tt=y[(G=a.W[x]).L];tt&&(G.$=tt),this.W.push({index:G.index,e:b(0,G),l:G.h/a.X,t:G.A/a.B,P:G.P,c:G.c})}this.p=this.W.length},Y:function(t,e,r){null==r&&(r=!1);var n,i,a,o,s,u,f,c,h,l,p,d,m=this.width/t,y=this.height/e,b=0,g=this.W.length,v=t*e*g,w=new Uint8ClampedArray(v),_=new Uint32Array(t),x=4294967288;for(f=0;f<g;f++){if(i=(n=this.W[f]).l*m,a=n.t*y,b=f,p=n.e,o=n.P+1<<3,i!==d){for(s=0;s<t;s++)c=0|s*i,_[s]=(c&x)<<3|7&c;d=i}for(u=0;u<e;u++)for(l=o*((c=0|u*a)&x)|(7&c)<<3,s=0;s<t;s++)w[b]=p[l+_[s]],b+=g}var E=this.V;if(r||4!==g||E||(E=new Int32Array([-256,255,-256,255,-256,255,-256,255])),E)for(f=0;f<v;)for(c=0,h=0;c<g;c++,f++,h+=2)w[f]=(w[f]*E[h]>>8)+E[h+1];return w},get f(){return this.b?!!this.b.a:3===this.p?0!==this.N&&(82!==this.W[0].index||71!==this.W[1].index||66!==this.W[2].index):1===this.N},z:function(t){for(var e,r,n,i=0,a=t.length;i<a;i+=3)e=t[i],r=t[i+1],n=t[i+2],t[i]=e-179.456+1.402*n,t[i+1]=e+135.459-.344*r-.714*n,t[i+2]=e-226.816+1.772*r;return t},O:function(t){for(var e,r,n,i,a=0,o=0,s=t.length;o<s;o+=4)e=t[o],r=t[o+1],n=t[o+2],i=t[o+3],t[a++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*e+.00048449797120281*i-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*e-.00477271405408747*i+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),t[a++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*e+.000426105652938837*i-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*e+.000770482631801132*i-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),t[a++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*e-.00288260236853442*i+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*e+.000560833691242812*i-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return t.subarray(0,a)},r:function(t){for(var e,r,n,i=0,a=t.length;i<a;i+=4)e=t[i],r=t[i+1],n=t[i+2],t[i]=434.456-e-1.402*n,t[i+1]=119.541-e+.344*r+.714*n,t[i+2]=481.816-e-1.772*r;return t},U:function(t){for(var e,r,n,i,a=0,o=0,s=t.length;o<s;o+=4)e=t[o],r=t[o+1],n=t[o+2],i=t[o+3],t[a++]=255+e*(-6747147073602441e-20*e+.0008379262121013727*r+.0002894718188643294*n+.003264231057537806*i-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*n-.0002748769067499491*i-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*i+.0686742238595345)-i*(.0003361971776183937*i+.7430659151342254),t[a++]=255+e*(.00013596372813588848*e+.000924537132573585*r+.00010567359618683593*n+.0004791864687436512*i-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*n+.0020200308977307156*i-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*i-.09751927774728933)-i*(.0003189131175883281*i+.7364883807733168),t[a++]=255+e*(13598650411385307e-21*e+.00012423956175490851*r+.0004751985097583589*n-36729317476630422e-22*i-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*n+.0007782692450036253*i-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*i-.7591454649749609)-i*(.0003435319965105553*i+.7063770186160144);return t.subarray(0,a)},getData:function(t){var r=t.width,n=t.height,i=t.forceRGB,a=t.isSourcePDF;if(this.p>4)throw new e(\"Unsupported color mode\");var o=this.Y(r,n,a);if(1===this.p&&i){for(var s=o.length,u=new Uint8ClampedArray(3*s),f=0,c=0;c<s;c++){var h=o[c];u[f++]=h,u[f++]=h,u[f++]=h}return u}if(3===this.p&&this.f)return this.z(o);if(4===this.p){if(this.f)return i?this.O(o):this.r(o);if(i)return this.U(o)}return o}},l}();function i(t,e){return t[e]<<8|t[e+1]}t.JpegDecoder=r}(),t.encodeImage=function(e,r,n,i){var a={t256:[r],t257:[n],t258:[8,8,8,8],t259:[1],t262:[2],t273:[1e3],t277:[4],t278:[n],t279:[r*n*4],t282:[[72,1]],t283:[[72,1]],t284:[1],t286:[[0,1]],t287:[[0,1]],t296:[1],t305:[\"Photopea (UTIF.js)\"],t338:[1]};if(i)for(var o in i)a[o]=i[o];var s=new Uint8Array(t.encode([a])),u=new Uint8Array(e),f=new Uint8Array(1e3+r*n*4);for(o=0;o<s.length;o++)f[o]=s[o];for(o=0;o<u.length;o++)f[1e3+o]=u[o];return f.buffer},t.encode=function(e){var r=new Uint8Array(2e4),n=4,i=t._binBE;r[0]=r[1]=77,i.writeUshort(r,2,42);var a=8;i.writeUint(r,n,a),n+=4;for(var o=0;o<e.length;o++){var s=t._writeIFD(i,t._types.basic,r,a,e[o]);a=s[1],o<e.length-1&&(3&a&&(a+=4-(3&a)),i.writeUint(r,s[0],a))}return r.slice(0,a).buffer},t.decode=function(e,r){null==r&&(r={parseMN:!0,debug:!1});var n=new Uint8Array(e),i=0,o=t._binBE.readASCII(n,i,2);i+=2;var s=\"II\"==o?t._binLE:t._binBE;s.readUshort(n,i);i+=2;var u=s.readUint(n,i);i+=4;for(var f=[];;){var c=s.readUshort(n,u),h=s.readUshort(n,u+4);if(0!=c&&(h<1||13<h)){a(\"error in TIFF\");break}if(t._readIFD(s,n,u,f,0,r),0==(u=s.readUint(n,u+2+12*c)))break}return f},t.decodeImage=function(e,r,n){if(!r.data){var i=new Uint8Array(e),o=t._binBE.readASCII(i,0,2);if(null!=r.t256){r.isLE=\"II\"==o,r.width=r.t256[0],r.height=r.t257[0];var s=r.t259?r.t259[0]:1,u=r.t266?r.t266[0]:1;r.t284&&2==r.t284[0]&&a(\"PlanarConfiguration 2 should not be used!\"),7==s&&r.t258&&r.t258.length>3&&(r.t258=r.t258.slice(0,3));var f=r.t277?r.t277[0]:1,c=(r.t258?r.t258[0]:1)*f;1==s&&null!=r.t279&&r.t278&&32803==r.t262[0]&&(c=Math.round(8*r.t279[0]/(r.width*r.t278[0]))),r.t50885&&4==r.t50885[0]&&(c=3*r.t258[0]);var h=8*Math.ceil(r.width*c/8),l=r.t273;(null==l||r.t322)&&(l=r.t324);var p=r.t279;1==s&&1==l.length&&(p=[r.height*(h>>>3)]),(null==p||r.t322)&&(p=r.t325);var d=new Uint8Array(r.height*(h>>>3)),m=0;if(null!=r.t322){for(var y=r.t322[0],b=r.t323[0],g=Math.floor((r.width+y-1)/y),v=Math.floor((r.height+b-1)/b),w=new Uint8Array(0|Math.ceil(y*b*c/8)),_=0;_<v;_++)for(var x=0;x<g;x++){var E=_*g+x;w.fill(0),t.decode._decompress(r,n,i,l[E],p[E],s,w,0,u,y,b),6==s?d=w:t._copyTile(w,0|Math.ceil(y*c/8),b,d,0|Math.ceil(r.width*c/8),r.height,0|Math.ceil(x*y*c/8),_*b)}m=8*d.length}else{if(null==l)return;var D=r.t278?r.t278[0]:r.height;D=Math.min(D,r.height);for(E=0;E<l.length;E++)t.decode._decompress(r,n,i,l[E],p[E],s,d,0|Math.ceil(m/8),u,r.width,D),m+=h*D;m=Math.min(m,8*d.length)}r.data=new Uint8Array(d.buffer,0,0|Math.ceil(m/8))}}},t.decode._decompress=function(r,n,i,o,s,u,f,c,h,l,p){if(r.t271&&\"Panasonic\"==r.t271[0]&&r.t45&&6==r.t45[0]&&(u=34316),1==u)for(var d=0;d<s;d++)f[c+d]=i[o+d];else if(2==u)t.decode._decodeG2(i,o,s,f,c,l,h);else if(3==u)t.decode._decodeG3(i,o,s,f,c,l,h,!!r.t292&&!(1&~r.t292[0]));else if(4==u)t.decode._decodeG4(i,o,s,f,c,l,h);else if(5==u)t.decode._decodeLZW(i,o,s,f,c,8);else if(6==u)t.decode._decodeOldJPEG(r,i,o,s,f,c);else if(7==u||34892==u)t.decode._decodeNewJPEG(r,i,o,s,f,c);else if(8==u||32946==u){var m=new Uint8Array(i.buffer,o+2,s-6),y=e.inflateRaw(m);c+y.length<=f.length&&f.set(y,c)}else 9==u?t.decode._decodeVC5(i,o,s,f,c,r.t33422):32767==u?t.decode._decodeARW(r,i,o,s,f,c):32773==u?t.decode._decodePackBits(i,o,s,f,c):32809==u?t.decode._decodeThunder(i,o,s,f,c):34316==u?t.decode._decodePanasonic(r,i,o,s,f,c):34713==u?t.decode._decodeNikon(r,n,i,o,s,f,c):34676==u?t.decode._decodeLogLuv32(r,i,o,s,f,c):a(\"Unknown compression\",u);var b=r.t258?Math.min(32,r.t258[0]):1,g=r.t277?r.t277[0]:1,v=b*g>>>3,w=Math.ceil(b*g*l/8);if(16==b&&!r.isLE&&null==r.t33422)for(var _=0;_<p;_++)for(var x=c+_*w,E=1;E<w;E+=2){var D=f[x+E];f[x+E]=f[x+E-1],f[x+E-1]=D}if(r.t317&&2==r.t317[0])for(_=0;_<p;_++){var k=c+_*w;if(16==b)for(d=v;d<w;d+=2){var A=(f[k+d+1]<<8|f[k+d])+(f[k+d-v+1]<<8|f[k+d-v]);f[k+d]=255&A,f[k+d+1]=A>>>8&255}else if(3==g)for(d=3;d<w;d+=3)f[k+d]=f[k+d]+f[k+d-3]&255,f[k+d+1]=f[k+d+1]+f[k+d-2]&255,f[k+d+2]=f[k+d+2]+f[k+d-1]&255;else for(d=v;d<w;d++)f[k+d]=f[k+d]+f[k+d-v]&255}},t.decode._decodePanasonic=function(t,e,r,n,i,a){var o,s,u,f,c,h,l,p,d=e.buffer,m=t.t2[0],y=t.t3[0],b=t.t10[0],g=t.t45[0],v=0,w=0,_=0,x=0,E=6==g?new Uint32Array(18):new Uint8Array(16),D=[0,0],k=[0,0],A=0,S=new Uint8Array(16384),M=new Uint16Array(i.buffer);function F(t){if(0==_){var e=new Uint8Array(d,r+w+8184,8200),n=new Uint8Array(d,r+w,8184);S.set(e),S.set(n,e.length),w+=16384}if(5!=g)return(S[x=(_=_-t&131071)>>3^16368]|S[x+1]<<8)>>(7&_)&~(-1<<t);for(o=0;o<16;o++)E[o]=S[_++],_&=16383}function C(t){return S[_+15-t]}function B(){D[0]=0,D[1]=0,k[0]=0,k[1]=0}if(7==g)throw g;if(6==g){var O=12==b,I=O?function(){E[0]=C(0)<<4|C(1)>>4,E[1]=4095&((15&C(1))<<8|C(2)),E[2]=C(3)>>6&3,E[3]=(63&C(3))<<2|C(4)>>6,E[4]=(63&C(4))<<2|C(5)>>6,E[5]=(63&C(5))<<2|C(6)>>6,E[6]=C(6)>>4&3,E[7]=(15&C(6))<<4|C(7)>>4,E[8]=(15&C(7))<<4|C(8)>>4,E[9]=(15&C(8))<<4|C(9)>>4,E[10]=C(9)>>2&3,E[11]=(3&C(9))<<6|C(10)>>2,E[12]=(3&C(10))<<6|C(11)>>2,E[13]=(3&C(11))<<6|C(12)>>2,E[14]=3&C(12),E[15]=C(13),E[16]=C(14),E[17]=C(15),_+=16,x=0}:function(){E[0]=C(0)<<6|C(1)>>2,E[1]=16383&((3&C(1))<<12|C(2)<<4|C(3)>>4),E[2]=C(3)>>2&3,E[3]=(3&C(3))<<8|C(4),E[4]=C(5)<<2|C(6)>>6,E[5]=(63&C(6))<<4|C(7)>>4,E[6]=C(7)>>2&3,E[7]=(3&C(7))<<8|C(8),E[8]=C(9)<<2&1020|C(10)>>6,E[9]=1023&(C(10)<<4|C(11)>>4),E[10]=C(11)>>2&3,E[11]=(3&C(11))<<8|C(12),E[12]=1023&(C(13)<<2&1020|C(14)>>6),E[13]=1023&(C(14)<<4|C(15)>>4),_+=16,x=0},T=O?14:11,P=O?128:512,L=O?2048:8192,N=O?16383:65535,j=O?4095:16383,R=m/T,z=16*R,U=O?18:14;for(h=0;h<y-15;h+=16){var G=Math.min(16,y-h),H=z*G;for(S=new Uint8Array(d,r+v,H),_=0,v+=H,p=0,l=0;p<G;p++,l=0){A=(h+p)*m;for(var Z=0;Z<R;Z++)for(I(),B(),u=0,c=0,o=0;o<T;o++){if(f=1&o,o%3==2){var q=x<U?E[x++]:0;3==q&&(q=4),c=P<<q,u=1<<q}var W=x<U?E[x++]:0;D[f]?(W*=u,c<L&&k[f]>c&&(W+=k[f]-c),k[f]=W):(D[f]=W,W?k[f]=W:W=k[f]),M[A+l++]=W-15<=N?W-15&N:W+2147483633>>31&j}}}}else if(5==g){var Y=12==b?10:9;for(h=0;h<y;h++)for(l=0;l<m;l+=Y)F(0),12==b?(M[A++]=((15&E[1])<<8)+E[0],M[A++]=16*E[2]+(E[1]>>4),M[A++]=((15&E[4])<<8)+E[3],M[A++]=16*E[5]+(E[4]>>4),M[A++]=((15&E[7])<<8)+E[6],M[A++]=16*E[8]+(E[7]>>4),M[A++]=((15&E[10])<<8)+E[9],M[A++]=16*E[11]+(E[10]>>4),M[A++]=((15&E[13])<<8)+E[12],M[A++]=16*E[14]+(E[13]>>4)):14==b&&(M[A++]=E[0]+((63&E[1])<<8),M[A++]=(E[1]>>6)+4*E[2]+((15&E[3])<<10),M[A++]=(E[3]>>4)+16*E[4]+((3&E[5])<<12),M[A++]=((252&E[5])>>2)+(E[6]<<6),M[A++]=E[7]+((63&E[8])<<8),M[A++]=(E[8]>>6)+4*E[9]+((15&E[10])<<10),M[A++]=(E[10]>>4)+16*E[11]+((3&E[12])<<12),M[A++]=((252&E[12])>>2)+(E[13]<<6),M[A++]=E[14]+((63&E[15])<<8))}else{if(4!=g)throw g;for(h=0;h<y;h++)for(l=0;l<m;l++)f=1&(o=l%14),0==o&&B(),o%3==2&&(u=4>>3-F(2)),k[f]?0!=(s=F(8))&&(D[f]-=128<<u,(D[f]<0||4==u)&&(D[f]&=~(-1<<u)),D[f]+=s<<u):(k[f]=F(8),(k[f]||o>11)&&(D[f]=k[f]<<4|F(4))),M[A++]=D[1&l]}},t.decode._decodeVC5=function(){var e,r,n,i=[1,0,1,0,2,2,1,1,3,7,1,2,5,25,1,3,6,48,1,4,6,54,1,5,7,111,1,8,7,99,1,6,7,105,12,0,7,107,1,7,8,209,20,0,8,212,1,9,8,220,1,10,9,393,1,11,9,394,32,0,9,416,1,12,9,427,1,13,10,887,1,18,10,784,1,14,10,790,1,15,10,835,60,0,10,852,1,16,10,885,1,17,11,1571,1,19,11,1668,1,20,11,1669,100,0,11,1707,1,21,11,1772,1,22,12,3547,1,29,12,3164,1,24,12,3166,1,25,12,3140,1,23,12,3413,1,26,12,3537,1,27,12,3539,1,28,13,7093,1,35,13,6283,1,30,13,6331,1,31,13,6335,180,0,13,6824,1,32,13,7072,1,33,13,7077,320,0,13,7076,1,34,14,12565,1,36,14,12661,1,37,14,12669,1,38,14,13651,1,39,14,14184,1,40,15,28295,1,46,15,28371,1,47,15,25320,1,42,15,25336,1,43,15,25128,1,41,15,27300,1,44,15,28293,1,45,16,50259,1,48,16,50643,1,49,16,50675,1,50,16,56740,1,53,16,56584,1,51,16,56588,1,52,17,113483,1,61,17,113482,1,60,17,101285,1,55,17,101349,1,56,17,109205,1,57,17,109207,1,58,17,100516,1,54,17,113171,1,59,18,202568,1,62,18,202696,1,63,18,218408,1,64,18,218412,1,65,18,226340,1,66,18,226356,1,67,18,226358,1,68,19,402068,1,69,19,405138,1,70,19,405394,1,71,19,436818,1,72,19,436826,1,73,19,452714,1,75,19,452718,1,76,19,452682,1,74,20,804138,1,77,20,810279,1,78,20,810790,1,79,20,873638,1,80,20,873654,1,81,20,905366,1,82,20,905430,1,83,20,905438,1,84,21,1608278,1,85,21,1620557,1,86,21,1621582,1,87,21,1621583,1,88,21,1747310,1,89,21,1810734,1,90,21,1810735,1,91,21,1810863,1,92,21,1810879,1,93,22,3621725,1,99,22,3621757,1,100,22,3241112,1,94,22,3494556,1,95,22,3494557,1,96,22,3494622,1,97,22,3494623,1,98,23,6482227,1,102,23,6433117,1,101,23,6989117,1,103,23,6989119,1,105,23,6989118,1,104,23,7243449,1,106,23,7243512,1,107,24,13978233,1,111,24,12964453,1,109,24,12866232,1,108,24,14486897,1,113,24,13978232,1,110,24,14486896,1,112,24,14487026,1,114,24,14487027,1,115,25,25732598,1,225,25,25732597,1,189,25,25732596,1,188,25,25732595,1,203,25,25732594,1,202,25,25732593,1,197,25,25732592,1,207,25,25732591,1,169,25,25732590,1,223,25,25732589,1,159,25,25732522,1,235,25,25732579,1,152,25,25732575,1,192,25,25732489,1,179,25,25732573,1,201,25,25732472,1,172,25,25732576,1,149,25,25732488,1,178,25,25732566,1,120,25,25732571,1,219,25,25732577,1,150,25,25732487,1,127,25,25732506,1,211,25,25732548,1,125,25,25732588,1,158,25,25732486,1,247,25,25732467,1,238,25,25732508,1,163,25,25732552,1,228,25,25732603,1,183,25,25732513,1,217,25,25732587,1,168,25,25732520,1,122,25,25732484,1,128,25,25732562,1,249,25,25732505,1,187,25,25732504,1,186,25,25732483,1,136,25,25928905,1,181,25,25732560,1,255,25,25732500,1,230,25,25732482,1,135,25,25732555,1,233,25,25732568,1,222,25,25732583,1,145,25,25732481,1,134,25,25732586,1,167,25,25732521,1,248,25,25732518,1,209,25,25732480,1,243,25,25732512,1,216,25,25732509,1,164,25,25732547,1,140,25,25732479,1,157,25,25732544,1,239,25,25732574,1,191,25,25732564,1,251,25,25732478,1,156,25,25732546,1,139,25,25732498,1,242,25,25732557,1,133,25,25732477,1,162,25,25732515,1,213,25,25732584,1,165,25,25732514,1,212,25,25732476,1,227,25,25732494,1,198,25,25732531,1,236,25,25732530,1,234,25,25732529,1,117,25,25732528,1,215,25,25732527,1,124,25,25732526,1,123,25,25732525,1,254,25,25732524,1,253,25,25732523,1,148,25,25732570,1,218,25,25732580,1,146,25,25732581,1,147,25,25732569,1,224,25,25732533,1,143,25,25732540,1,184,25,25732541,1,185,25,25732585,1,166,25,25732556,1,132,25,25732485,1,129,25,25732563,1,250,25,25732578,1,151,25,25732501,1,119,25,25732502,1,193,25,25732536,1,176,25,25732496,1,245,25,25732553,1,229,25,25732516,1,206,25,25732582,1,144,25,25732517,1,208,25,25732558,1,137,25,25732543,1,241,25,25732466,1,237,25,25732507,1,190,25,25732542,1,240,25,25732551,1,131,25,25732554,1,232,25,25732565,1,252,25,25732475,1,171,25,25732493,1,205,25,25732492,1,204,25,25732491,1,118,25,25732490,1,214,25,25928904,1,180,25,25732549,1,126,25,25732602,1,182,25,25732539,1,175,25,25732545,1,141,25,25732559,1,138,25,25732537,1,177,25,25732534,1,153,25,25732503,1,194,25,25732606,1,160,25,25732567,1,121,25,25732538,1,174,25,25732497,1,246,25,25732550,1,130,25,25732572,1,200,25,25732474,1,170,25,25732511,1,221,25,25732601,1,196,25,25732532,1,142,25,25732519,1,210,25,25732495,1,199,25,25732605,1,155,25,25732535,1,154,25,25732499,1,244,25,25732510,1,220,25,25732600,1,195,25,25732607,1,161,25,25732604,1,231,25,25732473,1,173,25,25732599,1,226,26,51465122,1,116,26,51465123,0,1],a=[3,3,3,3,2,2,2,1,1,1];function o(t){var e=t[1],r=t[0][e>>>3]>>>7-(7&e)&1;return t[1]++,r}function s(t,r){if(null==e){e={};for(var n=0;n<i.length;n+=4)e[i[n+1]]=i.slice(n,n+4)}for(var a=o(t),s=e[a];null==s;)a=a<<1|o(t),s=e[a];var u=s[3];0!=u&&(u=0==o(t)?u:-u),r[0]=s[2],r[1]=u}function u(t,e){for(var r=0;r<e;r++)1&~t||t++,t>>>=1;return t}function f(t,e){return t>>e}function c(t,e,r,n,i,a){e[r]=f(f(11*t[i]-4*t[i+a]+t[i+a+a]+4,3)+t[n],1),e[r+a]=f(f(5*t[i]+4*t[i+a]-t[i+a+a]+4,3)-t[n],1)}function h(t,e,r,n,i,a){var o=t[i-a]-t[i+a],s=t[i],u=t[n];e[r]=f(f(o+4,3)+s+u,1),e[r+a]=f(f(4-o,3)+s-u,1)}function l(t,e,r,n,i,a){e[r]=f(f(5*t[i]+4*t[i-a]-t[i-a-a]+4,3)+t[n],1),e[r+a]=f(f(11*t[i]-4*t[i-a]+t[i-a-a]+4,3)-t[n],1)}function p(t){return t=n[t=t<0?0:t>4095?4095:t]>>>2}return function(e,i,o,f,d,m){f=new Uint16Array(f.buffer),Date.now();var y,b,g,v,w,_,x,E,D=t._binBE,k=i+o;i+=4;for(var A=1==m[0];i<k;){var S=D.readShort(e,i),M=D.readUshort(e,i+2);if(i+=4,12==S)P=M;else if(20==S)y=M;else if(21==S)b=M;else if(48==S)g=M;else if(53==S)v=M;else if(35==S)M;else if(62==S)w=M;else if(101==S)M;else if(109==S)_=M;else if(84==S)M;else if(106==S)M;else if(107==S)M;else if(108==S)M;else if(102==S)M;else if(104==S)et=M;else if(105==S)M;else{var F=S<0?-S:S,C=65280&F,B=0;if(24576&F&&(8192&F?(B=65535&M,B+=(255&F)<<16):B=65535&M),24576&~F){if(16388==F)i+=4*B;else if(8192!=C&&8448!=C&&9216!=C)throw F.toString(16)}else{if(null==x){x=[];for(var O=0;O<4;O++)x[O]=new Int16Array((y>>>1)*(b>>>1));E=new Int16Array((y>>>1)*(b>>>1)),r=new Int16Array(1024);for(O=0;O<1024;O++){var I=O-512,T=Math.abs(I),P=Math.floor(768*T*T*T/16581375)+T;r[O]=Math.sign(I)*P}n=new Uint16Array(4096);for(O=0;O<4096;O++){var L=O,N=65535*(Math.pow(113,L/4095)-1)/112;n[O]=Math.min(N,65535)}}var j=x[w],R=u(y,1+a[g]),z=u(b,1+a[g]);if(0==g)for(var U=0;U<z;U++)for(var G=0;G<R;G++){var H=i+2*(U*R+G);j[U*(y>>>1)+G]=e[H]<<8|e[H+1]}else{var Z=[e,8*i],q=[],W=0,Y=R*z,V=[0,0],X=0;for(M=0;W<Y;)for(s(Z,V),X=V[0],M=V[1];X>0;)q[W++]=M,X--;var J=(g-1)%3,K=1!=J?R:0,Q=0!=J?z:0;for(U=0;U<z;U++){var $=(U+Q)*(y>>>1)+K,tt=U*R;for(G=0;G<R;G++)j[$+G]=r[q[tt+G]+512]*v}if(2==J){var et=y>>>1,rt=2*R,nt=2*z;for(U=0;U<z;U++)for(G=0;G<rt;G++){O=2*U*et+G;var it=z*et+(ot=U*et+G);0==U?c(j,E,O,it,ot,et):U==z-1?l(j,E,O,it,ot,et):h(j,E,O,it,ot,et)}var at=j;j=E,E=at;for(U=0;U<nt;U++)for(G=0;G<R;G++){var ot;O=U*et+2*G,it=R+(ot=U*et+G);0==G?c(j,E,O,it,ot,1):G==R-1?l(j,E,O,it,ot,1):h(j,E,O,it,ot,1)}at=j;j=E,E=at;for(var st=[],ut=2-~~((g-1)/3),ft=0;ft<3;ft++)st[ft]=_>>14-2*ft&3;var ct=st[ut];if(0!=ct)for(U=0;U<nt;U++)for(G=0;G<rt;G++){j[O=U*et+G]=j[O]<<ct}}}if(9==g&&3==w){var ht=x[0],lt=x[1],pt=x[2],dt=x[3];for(U=0;U<b;U+=2)for(G=0;G<y;G+=2){var mt=U*y+G,yt=ht[H=(U>>>1)*(y>>>1)+(G>>>1)],bt=lt[H]-2048,gt=pt[H]-2048,vt=dt[H]-2048,wt=(bt<<1)+yt,_t=(gt<<1)+yt,xt=yt+vt,Et=yt-vt;A?(f[mt]=p(xt),f[mt+1]=p(_t),f[mt+y]=p(wt),f[mt+y+1]=p(Et)):(f[mt]=p(wt),f[mt+1]=p(xt),f[mt+y]=p(Et),f[mt+y+1]=p(_t))}}i+=4*B}}}Date.now()}}(),t.decode._decodeLogLuv32=function(t,e,r,n,i,a){for(var o=t.width,s=4*o,u=0,f=new Uint8Array(s);u<n;){for(var c=0;c<s;){var h=e[r+u];if(u++,h<128){for(var l=0;l<h;l++)f[c+l]=e[r+u+l];c+=h,u+=h}else{h-=126;for(l=0;l<h;l++)f[c+l]=e[r+u];c+=h,u++}}for(var p=0;p<o;p++)i[a+0]=f[p],i[a+1]=f[p+o],i[a+2]=f[p+2*o],i[a+4]=f[p+3*o],a+=6}},t.decode._ljpeg_diff=function(e,r,n){var i,a,o=t.decode._getbithuff;return i=o(e,r,n[0],n),(a=o(e,r,i,0))&1<<i-1||(a-=(1<<i)-1),a},t.decode._decodeARW=function(e,r,n,i,a,o){var s=e.t256[0],u=e.t257[0],f=e.t258[0],c=e.isLE?t._binLE:t._binBE;if(s*u==i||s*u*1.5==i)if(s*u*1.5!=i){var h,l,p,d,m,y,b,g,v=new Uint16Array(16),w=new Uint8Array(s+1);for(M=0;M<u;M++){for(var _=0;_<s;_++)w[_]=r[n++];for(g=0,S=0;S<s-30;g+=16){for(l=2047&(h=c.readUint(w,g)),p=2047&h>>>11,d=15&h>>>22,m=15&h>>>26,y=0;y<4&&128<<y<=l-p;y++);for(b=30,x=0;x<16;x++)x==d?v[x]=l:x==m?v[x]=p:(v[x]=((c.readUshort(w,g+(b>>3))>>>(7&b)&127)<<y)+p,v[x]>2047&&(v[x]=2047),b+=7);for(x=0;x<16;x++,S+=2){L=v[x]<<1;t.decode._putsF(a,(M*s+S)*f,L<<16-f)}S-=1&S?1:31}}}else for(var x=0;x<i;x+=3){var E=r[n+x+0],D=r[n+x+1],k=r[n+x+2];a[o+x]=D<<4|E>>>4,a[o+x+1]=E<<4|k>>>4,a[o+x+2]=k<<4|D>>>4}else{u+=8;var A,S,M,F=[n,0,0,0],C=new Uint16Array(32770),B=[3857,3856,3599,3342,3085,2828,2571,2314,2057,1800,1543,1286,1029,772,771,768,514,513],O=0,I=t.decode._ljpeg_diff;for(C[0]=15,A=x=0;x<18;x++)for(var T=32768>>>(B[x]>>>8),P=0;P<T;P++)C[++A]=B[x];for(S=s;S--;)for(M=0;M<u+1;M+=2)if(M==u&&(M=1),O+=I(r,F,C),M<u){var L=4095&O;t.decode._putsF(a,(M*s+S)*f,L<<16-f)}}},t.decode._decodeNikon=function(e,r,n,i,a,o,s){var u=[[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,5,4,3,6,2,7,1,0,8,9,11,10,12],[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,57,90,56,39,22,5,4,3,2,1,0,11,12,12],[0,0,1,4,2,3,1,2,0,0,0,0,0,0,0,0,0,5,4,6,3,7,2,8,1,9,0,10,11,12],[0,0,1,4,3,1,1,1,1,1,2,0,0,0,0,0,0,5,6,4,7,8,3,9,2,1,0,10,11,12,13,14],[0,0,1,5,1,1,1,1,1,1,1,2,0,0,0,0,0,8,92,75,58,41,7,6,5,4,3,2,1,0,13,14],[0,0,1,4,2,2,3,1,2,0,0,0,0,0,0,0,0,7,6,8,5,9,4,10,3,11,12,2,0,1,13,14]],f=e.t256[0],c=e.t257[0],h=e.t258[0],l=0,p=0,d=t.decode._make_decoder,m=t.decode._getbithuff,y=r[0].exifIFD.makerNote,b=y.t150?y.t150:y.t140,g=0,v=b[g++],w=b[g++];73!=v&&88!=w||(g+=2110),70==v&&(l=2),14==h&&(l+=3);for(var _=[[0,0],[0,0]],x=e.isLE?t._binLE:t._binBE,E=0;E<2;E++)for(var D=0;D<2;D++)_[E][D]=x.readShort(b,g),g+=2;var k,A,S,M,F,C=1<<h&32767,B=0,O=x.readShort(b,g);g+=2,O>1&&(B=Math.floor(C/(O-1))),68==v&&32==w&&B>0&&(p=x.readShort(b,562));var I=[0,0],T=d(u[l]),P=[i,0,0,0];for(k=0;k<c;k++)for(p&&k==p&&(T=d(u[l+1])),A=0;A<f;A++){E=m(n,P,T[0],T),(F=1+(m(n,P,(S=15&E)-(M=E>>>4),0)<<1)<<M>>>1)&1<<S-1||(F-=(1<<S)-(0==M?1:0)),A<2?I[A]=_[1&k][A]+=F:I[1&A]+=F;var L=Math.min(Math.max(I[1&A],0),(1<<h)-1),N=(k*f+A)*h;t.decode._putsF(o,N,L<<16-h)}},t.decode._putsF=function(t,e,r){r<<=8-(7&e);var n=e>>>3;t[n]|=r>>>16,t[n+1]|=r>>>8,t[n+2]|=r},t.decode._getbithuff=function(e,r,n,i){t.decode._get_byte;var a,o=r[0],s=r[1],u=r[2],f=r[3];if(0==n||u<0)return 0;for(;!f&&u<n&&-1!=(a=e[o++])&&!(f=0);)s=(s<<8)+a,u+=8;if(a=s<<32-u>>>32-n,i?(u-=i[a+1]>>>8,a=255&i[a+1]):u-=n,u<0)throw\"e\";return r[0]=o,r[1]=s,r[2]=u,r[3]=f,a},t.decode._make_decoder=function(t){var e,r,n,i,a,o=[];for(e=16;0!=e&&!t[e];e--);var s=17;for(o[0]=e,n=r=1;r<=e;r++)for(i=0;i<t[r];i++,++s)for(a=0;a<1<<e-r;a++)n<=1<<e&&(o[n++]=r<<8|t[s]);return o},t.decode._decodeNewJPEG=function(e,r,n,i,a,o){i=Math.min(i,r.length-n);var s=e.t347,u=s?s.length:0,f=new Uint8Array(u+i);if(s){for(var c=0,h=0;h<u-1&&(255!=s[h]||217!=s[h+1]);h++)f[c++]=s[h];var l=r[n],p=r[n+1];255==l&&216==p||(f[c++]=l,f[c++]=p);for(h=2;h<i;h++)f[c++]=r[n+h]}else for(h=0;h<i;h++)f[h]=r[n+h];if(32803==e.t262[0]||7==e.t259[0]&&34892==e.t262[0]){var d=e.t258[0],m=t.LosslessJpegDecode(f),y=m.length;if(16==d)if(e.isLE)for(h=0;h<y;h++)a[o+(h<<1)]=255&m[h],a[o+(h<<1)+1]=m[h]>>>8;else for(h=0;h<y;h++)a[o+(h<<1)]=m[h]>>>8,a[o+(h<<1)+1]=255&m[h];else if(14==d||12==d||10==d){var b=16-d;for(h=0;h<y;h++)t.decode._putsF(a,h*d,m[h]<<b)}else{if(8!=d)throw new Error(\"unsupported bit depth \"+d);for(h=0;h<y;h++)a[o+h]=m[h]}}else{var g=new t.JpegDecoder;g.parse(f);var v=g.getData({width:g.width,height:g.height,forceRGB:!0,isSourcePDF:!1});for(h=0;h<v.length;h++)a[o+h]=v[h]}6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodeOldJPEGInit=function(t,e,r,n){var i,o,s,u,f,c=216,h=0,l=0,p=!1,d=t.t513,m=d?d[0]:0,y=t.t514,b=y?y[0]:0,g=t.t324||t.t273||d,v=t.t530,w=0,_=0,x=t.t277?t.t277[0]:1,E=t.t515;if(g&&(l=g[0],p=g.length>1),!p){if(255==e[r]&&e[r+1]==c)return{jpegOffset:r};if(null!=d&&(255==e[r+m]&&e[r+m+1]==c?h=r+m:a(\"JPEGInterchangeFormat does not point to SOI\"),null==y?a(\"JPEGInterchangeFormatLength field is missing\"):(m>=l||m+b<=l)&&a(\"JPEGInterchangeFormatLength field value is invalid\"),null!=h))return{jpegOffset:h}}if(null!=v&&(w=v[0],_=v[1]),null!=d&&null!=y)if(b>=2&&m+b<=l){for(i=255==e[r+m+b-2]&&e[r+m+b-1]==c?new Uint8Array(b-2):new Uint8Array(b),s=0;s<i.length;s++)i[s]=e[r+m+s];a(\"Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables\")}else a(\"JPEGInterchangeFormat+JPEGInterchangeFormatLength > offset to first strip or tile\");if(null==i){var D=0,k=[];k[D++]=255,k[D++]=c;var A=t.t519;if(null==A)throw new Error(\"JPEGQTables tag is missing\");for(s=0;s<A.length;s++)for(k[D++]=255,k[D++]=219,k[D++]=0,k[D++]=67,k[D++]=s,u=0;u<64;u++)k[D++]=e[r+A[s]+u];for(f=0;f<2;f++){var S=t[0==f?\"t520\":\"t521\"];if(null==S)throw new Error((0==f?\"JPEGDCTables\":\"JPEGACTables\")+\" tag is missing\");for(s=0;s<S.length;s++){k[D++]=255,k[D++]=196;var M=19;for(u=0;u<16;u++)M+=e[r+S[s]+u];for(k[D++]=M>>>8,k[D++]=255&M,k[D++]=s|f<<4,u=0;u<16;u++)k[D++]=e[r+S[s]+u];for(u=0;u<M;u++)k[D++]=e[r+S[s]+16+u]}}if(k[D++]=255,k[D++]=192,k[D++]=0,k[D++]=8+3*x,k[D++]=8,k[D++]=t.height>>>8&255,k[D++]=255&t.height,k[D++]=t.width>>>8&255,k[D++]=255&t.width,k[D++]=x,1==x)k[D++]=1,k[D++]=17,k[D++]=0;else for(s=0;s<3;s++)k[D++]=s+1,k[D++]=0!=s?17:(15&w)<<4|15&_,k[D++]=s;null!=E&&0!=E[0]&&(k[D++]=255,k[D++]=221,k[D++]=0,k[D++]=4,k[D++]=E[0]>>>8&255,k[D++]=255&E[0]),i=new Uint8Array(k)}var F=-1;for(s=0;s<i.length-1;){if(255==i[s]&&192==i[s+1]){F=s;break}s++}if(-1==F){var C=new Uint8Array(i.length+10+3*x);C.set(i);var B=i.length;if(F=i.length,(i=C)[B++]=255,i[B++]=192,i[B++]=0,i[B++]=8+3*x,i[B++]=8,i[B++]=t.height>>>8&255,i[B++]=255&t.height,i[B++]=t.width>>>8&255,i[B++]=255&t.width,i[B++]=x,1==x)i[B++]=1,i[B++]=17,i[B++]=0;else for(s=0;s<3;s++)i[B++]=s+1,i[B++]=0!=s?17:(15&w)<<4|15&_,i[B++]=s}if(255==e[l]&&218==e[l+1]){var O=e[l+2]<<8|e[l+3];for((o=new Uint8Array(O+2))[0]=e[l],o[1]=e[l+1],o[2]=e[l+2],o[3]=e[l+3],s=0;s<O-2;s++)o[s+4]=e[l+s+4]}else{var I=0;if((o=new Uint8Array(8+2*x))[I++]=255,o[I++]=218,o[I++]=0,o[I++]=6+2*x,o[I++]=x,1==x)o[I++]=1,o[I++]=0;else for(s=0;s<3;s++)o[I++]=s+1,o[I++]=s<<4|s;o[I++]=0,o[I++]=63,o[I++]=0}return{jpegOffset:r,tables:i,sosMarker:o,sofPosition:F}},t.decode._decodeOldJPEG=function(e,r,n,i,a,o){var s,u,f,c,h=t.decode._decodeOldJPEGInit(e,r,n,i);if(null!=h.jpegOffset)for(s=n+i-h.jpegOffset,f=new Uint8Array(s),d=0;d<s;d++)f[d]=r[h.jpegOffset+d];else{for(u=h.tables.length,(f=new Uint8Array(u+h.sosMarker.length+i+2)).set(h.tables),c=u,f[h.sofPosition+5]=e.height>>>8&255,f[h.sofPosition+6]=255&e.height,f[h.sofPosition+7]=e.width>>>8&255,f[h.sofPosition+8]=255&e.width,255==r[n]&&r[n+1]==SOS||(f.set(h.sosMarker,c),c+=sosMarker.length),d=0;d<i;d++)f[c++]=r[n+d];f[c++]=255,f[c++]=EOI}var l=new t.JpegDecoder;l.parse(f);for(var p=l.getData({width:l.width,height:l.height,forceRGB:!0,isSourcePDF:!1}),d=0;d<p.length;d++)a[o+d]=p[d];e.t262&&6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodePackBits=function(t,e,r,n,i){for(var a=new Int8Array(t.buffer),o=new Int8Array(n.buffer),s=e+r;e<s;){var u=a[e];if(e++,u>=0&&u<128)for(var f=0;f<u+1;f++)o[i]=a[e],i++,e++;if(u>=-127&&u<0){for(f=0;f<1-u;f++)o[i]=a[e],i++;e++}}return i},t.decode._decodeThunder=function(t,e,r,n,i){for(var a=[0,1,0,-1],o=[0,1,2,3,0,-3,-2,-1],s=e+r,u=2*i,f=0;e<s;){var c=t[e],h=c>>>6,l=63&c;if(e++,3==h&&(f=15&l,n[u>>>1]|=f<<4*(1-u&1),u++),0==h)for(var p=0;p<l;p++)n[u>>>1]|=f<<4*(1-u&1),u++;if(2==h)for(p=0;p<2;p++){4!=(d=l>>>3*(1-p)&7)&&(f+=o[d],n[u>>>1]|=f<<4*(1-u&1),u++)}if(1==h)for(p=0;p<3;p++){var d;2!=(d=l>>>2*(2-p)&3)&&(f+=a[d],n[u>>>1]|=f<<4*(1-u&1),u++)}}},t.decode._dmap={1:0,\"011\":1,\"000011\":2,\"0000011\":3,\"010\":-1,\"000010\":-2,\"0000010\":-3},t.decode._lens=function(){var t=function(t,e,r,n){for(var i=0;i<e.length;i++)t[e[i]]=r+i*n},e=\"00110101,000111,0111,1000,1011,1100,1110,1111,10011,10100,00111,01000,001000,000011,110100,110101,101010,101011,0100111,0001100,0001000,0010111,0000011,0000100,0101000,0101011,0010011,0100100,0011000,00000010,00000011,00011010,00011011,00010010,00010011,00010100,00010101,00010110,00010111,00101000,00101001,00101010,00101011,00101100,00101101,00000100,00000101,00001010,00001011,01010010,01010011,01010100,01010101,00100100,00100101,01011000,01011001,01011010,01011011,01001010,01001011,00110010,00110011,00110100\",r=\"0000110111,010,11,10,011,0011,0010,00011,000101,000100,0000100,0000101,0000111,00000100,00000111,000011000,0000010111,0000011000,0000001000,00001100111,00001101000,00001101100,00000110111,00000101000,00000010111,00000011000,000011001010,000011001011,000011001100,000011001101,000001101000,000001101001,000001101010,000001101011,000011010010,000011010011,000011010100,000011010101,000011010110,000011010111,000001101100,000001101101,000011011010,000011011011,000001010100,000001010101,000001010110,000001010111,000001100100,000001100101,000001010010,000001010011,000000100100,000000110111,000000111000,000000100111,000000101000,000001011000,000001011001,000000101011,000000101100,000001011010,000001100110,000001100111\",n=\"11011,10010,010111,0110111,00110110,00110111,01100100,01100101,01101000,01100111,011001100,011001101,011010010,011010011,011010100,011010101,011010110,011010111,011011000,011011001,011011010,011011011,010011000,010011001,010011010,011000,010011011\",i=\"0000001111,000011001000,000011001001,000001011011,000000110011,000000110100,000000110101,0000001101100,0000001101101,0000001001010,0000001001011,0000001001100,0000001001101,0000001110010,0000001110011,0000001110100,0000001110101,0000001110110,0000001110111,0000001010010,0000001010011,0000001010100,0000001010101,0000001011010,0000001011011,0000001100100,0000001100101\",a=\"00000001000,00000001100,00000001101,000000010010,000000010011,000000010100,000000010101,000000010110,000000010111,000000011100,000000011101,000000011110,000000011111\";e=e.split(\",\"),r=r.split(\",\"),n=n.split(\",\"),i=i.split(\",\"),a=a.split(\",\");var o={},s={};return t(o,e,0,1),t(o,n,64,64),t(o,a,1792,64),t(s,r,0,1),t(s,i,64,64),t(s,a,1792,64),[o,s]}(),t.decode._decodeG4=function(e,r,n,i,a,o,s){for(var u=t.decode,f=r<<3,c=0,h=\"\",l=[],p=[],d=0;d<o;d++)p.push(0);p=u._makeDiff(p);for(var m=0,y=0,b=0,g=0,v=0,w=0,_=\"\",x=0,E=8*Math.ceil(o/8);f>>>3<r+n;){b=u._findDiff(p,m+(0==m?0:1),1-v),g=u._findDiff(p,b,v);var D=0;if(1==s&&(D=e[f>>>3]>>>7-(7&f)&1),2==s&&(D=e[f>>>3]>>>(7&f)&1),f++,h+=D,\"H\"==_){if(null!=u._lens[v][h]){var k=u._lens[v][h];h=\"\",c+=k,k<64&&(u._addNtimes(l,c,v),m+=c,v=1-v,c=0,0==--x&&(_=\"\"))}}else\"0001\"==h&&(h=\"\",u._addNtimes(l,g-m,v),m=g),\"001\"==h&&(h=\"\",_=\"H\",x=2),null!=u._dmap[h]&&(y=b+u._dmap[h],u._addNtimes(l,y-m,v),m=y,h=\"\",v=1-v);l.length==o&&\"\"==_&&(u._writeBits(l,i,8*a+w*E),v=0,w++,m=0,p=u._makeDiff(l),l=[])}},t.decode._findDiff=function(t,e,r){for(var n=0;n<t.length;n+=2)if(t[n]>=e&&t[n+1]==r)return t[n]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var r=1;r<t.length;r++)t[r-1]!=t[r]&&e.push(r,t[r]);return e.push(t.length,0,t.length,1),e},t.decode._decodeG2=function(e,r,n,i,a,o,s){for(var u=t.decode,f=r<<3,c=0,h=\"\",l=[],p=0,d=0,m=8*Math.ceil(o/8);f>>>3<r+n;){var y=0;1==s&&(y=e[f>>>3]>>>7-(7&f)&1),2==s&&(y=e[f>>>3]>>>(7&f)&1),f++,h+=y,null!=(c=u._lens[p][h])&&(u._addNtimes(l,c,p),h=\"\",c<64&&(p=1-p),l.length==o&&(u._writeBits(l,i,8*a+d*m),l=[],d++,p=0,7&f&&(f+=8-(7&f)),c>=64&&(f+=8)))}},t.decode._decodeG3=function(e,r,n,i,a,o,s,u){for(var f=t.decode,c=r<<3,h=0,l=\"\",p=[],d=[],m=0;m<o;m++)p.push(0);for(var y=0,b=0,g=0,v=0,w=0,_=-1,x=\"\",E=0,D=!0,k=8*Math.ceil(o/8);c>>>3<r+n;){g=f._findDiff(d,y+(0==y?0:1),1-w),v=f._findDiff(d,g,w);var A=0;if(1==s&&(A=e[c>>>3]>>>7-(7&c)&1),2==s&&(A=e[c>>>3]>>>(7&c)&1),c++,l+=A,D){if(null!=f._lens[w][l]){var S=f._lens[w][l];l=\"\",h+=S,S<64&&(f._addNtimes(p,h,w),w=1-w,h=0)}}else if(\"H\"==x){if(null!=f._lens[w][l]){S=f._lens[w][l];l=\"\",h+=S,S<64&&(f._addNtimes(p,h,w),y+=h,w=1-w,h=0,0==--E&&(x=\"\"))}}else\"0001\"==l&&(l=\"\",f._addNtimes(p,v-y,w),y=v),\"001\"==l&&(l=\"\",x=\"H\",E=2),null!=f._dmap[l]&&(b=g+f._dmap[l],f._addNtimes(p,b-y,w),y=b,l=\"\",w=1-w);l.endsWith(\"000000000001\")&&(_>=0&&f._writeBits(p,i,8*a+_*k),u&&(1==s&&(D=1==(e[c>>>3]>>>7-(7&c)&1)),2==s&&(D=1==(e[c>>>3]>>>(7&c)&1)),c++),l=\"\",w=0,_++,y=0,d=f._makeDiff(p),p=[])}p.length==o&&f._writeBits(p,i,8*a+_*k)},t.decode._addNtimes=function(t,e,r){for(var n=0;n<e;n++)t.push(r)},t.decode._writeBits=function(t,e,r){for(var n=0;n<t.length;n++)e[r+n>>>3]|=t[n]<<7-(r+n&7)},t.decode._decodeLZW=t.decode._decodeLZW=(u=0,f=0,c=0,h=0,l=function(){var t=r>>>3,e=(i[t]<<16|i[t+1]<<8|i[t+2])>>>24-(7&r)-f&(1<<f)-1;return r+=f,e},p=new Uint32Array(16384),d=0,m=function(t){f=t+1,u=h+1},y=function(t){for(var e=t<<2,r=p[e+2],n=s+r-1;65535!=e;)o[n--]=p[e],e=p[e+1];s+=r},b=function(t,e){var r=u<<2,n=t<<2;p[r]=p[3+(e<<2)],p[r+1]=n,p[r+2]=p[n+2]+1,p[r+3]=p[n+3],1+ ++u==1<<f&&12!=f&&f++},function(t,e,n,a,f,g){r=e<<3,i=t,o=a,s=f;var v=e+n<<3,w=0,_=0;for(function(t){if(t!=d){d=t,h=1+(c=1<<t);for(var e=0;e<h+1;e++)p[4*e]=p[4*e+3]=e,p[4*e+1]=65535,p[4*e+2]=1}}(g),m(g);r<v&&(w=l())!=h;){if(w==c){if(m(g),(w=l())==h)break;y(w)}else w<u?(y(w),b(_,w)):(b(_,_),y(u-1));_=w}return s}),t.tags={},t._types=function(){var t=new Array(250);t.fill(0);return{basic:{main:t=t.concat([0,0,0,0,4,3,3,3,3,3,0,0,3,0,0,0,3,0,0,2,2,2,2,4,3,0,0,3,4,4,3,3,5,5,3,2,5,5,0,0,0,0,4,4,0,0,3,3,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,2,2,3,5,5,3,0,3,3,4,4,4,3,4,0,0,0,0,0,0,0,0,0,3,3,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),rest:{33432:2,33434:5,33437:5,34665:4,34850:3,34853:4,34855:3,34864:3,34866:4,36864:7,36867:2,36868:2,37121:7,37377:10,37378:5,37380:10,37381:5,37383:3,37384:3,37385:3,37386:5,37510:7,37520:2,37521:2,37522:2,40960:7,40961:3,40962:4,40963:4,40965:4,41486:5,41487:5,41488:3,41985:3,41986:3,41987:3,41988:5,41989:3,41990:3,41993:3,41994:3,41995:7,41996:3,42032:2,42033:2,42034:5,42036:2,42037:2,59932:7}},gps:{main:[1,2,5,2,5,1,5,5,0,9],rest:{18:2,29:2}}}}(),t._readIFD=function(e,r,n,i,o,s){var u=e.readUshort(r,n);n+=2;var f={};s.debug&&a(\"   \".repeat(o),i.length-1,\">>>----------------\");for(var c=0;c<u;c++){var h=e.readUshort(r,n);n+=2;var l=e.readUshort(r,n);n+=2;var p=e.readUint(r,n);n+=4;var d=e.readUint(r,n);n+=4;var m=[];if(1==l||7==l){var y=p<5?n-4:d;y+p>r.buffer.byteLength&&(p=r.buffer.byteLength-y),m=new Uint8Array(r.buffer,y,p)}if(2==l){var b=p<5?n-4:d,g=r[b],v=Math.max(0,Math.min(p-1,r.length-b));g<128||0==v?m.push(e.readASCII(r,b,v)):m=new Uint8Array(r.buffer,b,v)}if(3==l)for(var w=0;w<p;w++)m.push(e.readUshort(r,(p<3?n-4:d)+2*w));if(4==l||13==l)for(w=0;w<p;w++)m.push(e.readUint(r,(p<2?n-4:d)+4*w));if(5==l||10==l){var _=5==l?e.readUint:e.readInt;for(w=0;w<p;w++)m.push([_(r,d+8*w),_(r,d+8*w+4)])}if(8==l)for(w=0;w<p;w++)m.push(e.readShort(r,(p<3?n-4:d)+2*w));if(9==l)for(w=0;w<p;w++)m.push(e.readInt(r,(p<2?n-4:d)+4*w));if(11==l)for(w=0;w<p;w++)m.push(e.readFloat(r,d+4*w));if(12==l)for(w=0;w<p;w++)m.push(e.readDouble(r,d+8*w));if(0==p||0!=m.length){if(s.debug&&a(\"   \".repeat(o),h,l,t.tags[h],m),f[\"t\"+h]=m,330==h&&f.t272&&\"DSLR-A100\"==f.t272[0]);else if(330==h||34665==h||34853==h||50740==h&&e.readUshort(r,e.readUint(m,0))<300||61440==h){var x=50740==h?[e.readUint(m,0)]:m,E=[];for(w=0;w<x.length;w++)t._readIFD(e,r,x[w],E,o+1,s);330==h&&(f.subIFD=E),34665==h&&(f.exifIFD=E[0]),34853==h&&(f.gpsiIFD=E[0]),50740==h&&(f.dngPrvt=E[0]),61440==h&&(f.fujiIFD=E[0])}if(37500==h&&s.parseMN){var D=m;if(\"Nikon\"==e.readASCII(D,0,5))f.makerNote=t.decode(D.slice(10).buffer)[0];else if(\"OLYMP\"==e.readASCII(D,0,5)||\"OM SYSTEM\"==e.readASCII(D,0,9)){var k=[8208,8224,8240,8256,8272],A=[];t._readIFD(e,D,77==D[1]?16:85==D[5]?12:8,A,o+1,s);var S=f.makerNote=A.pop();for(w=0;w<k.length;w++){var M=\"t\"+k[w];null!=S[M]&&(t._readIFD(e,D,S[M][0],A,o+1,s),S[M]=A.pop())}S.t12288&&(t._readIFD(e,S.t12288,0,A,o+1,s),S.t12288=A.pop())}else if(e.readUshort(r,d)<300&&e.readUshort(r,d+4)<=12){A=[];t._readIFD(e,r,d,A,o+1,s),f.makerNote=A[0]}}}else if(a(h,\"unknown TIFF tag type: \",l,\"num:\",p),0==c)return}return i.push(f),s.debug&&a(\"   \".repeat(o),\"<<<---------------\"),n},t._writeIFD=function(e,r,n,i,a){var o=Object.keys(a),s=o.length;a.exifIFD&&s--,a.gpsiIFD&&s--,e.writeUshort(n,i,s);for(var u=(i+=2)+12*s+4,f=0;f<o.length;f++){var c=o[f];if(\"t34665\"!=c&&\"t34853\"!=c){\"exifIFD\"==c&&(c=\"t34665\"),\"gpsiIFD\"==c&&(c=\"t34853\");var h=parseInt(c.slice(1)),l=r.main[h];if(null==l&&(l=r.rest[h]),null==l||0==l)throw new Error(\"unknown type of tag: \"+h);var p=a[c];if(34665==h)p=[u],u=t._writeIFD(e,r,n,u,a.exifIFD)[1];if(34853==h)p=[u],u=t._writeIFD(e,t._types.gps,n,u,a.gpsiIFD)[1];2==l&&(p=p[0]+\"\\0\");var d=p.length;e.writeUshort(n,i,h),i+=2,e.writeUshort(n,i,l),i+=2,e.writeUint(n,i,d);var m=[-1,1,1,2,4,8,0,1,0,4,8,0,8][l]*d,y=i+=4;if(m>4&&(e.writeUint(n,i,u),y=u),1==l||7==l)for(var b=0;b<d;b++)n[y+b]=p[b];else if(2==l)e.writeASCII(n,y,p);else if(3==l)for(b=0;b<d;b++)e.writeUshort(n,y+2*b,p[b]);else if(4==l)for(b=0;b<d;b++)e.writeUint(n,y+4*b,p[b]);else if(5==l||10==l){var g=5==l?e.writeUint:e.writeInt;for(b=0;b<d;b++){var v=p[b],w=v[0],_=v[1];if(null==w)throw\"e\";g(n,y+8*b,w),g(n,y+8*b+4,_)}}else if(9==l)for(b=0;b<d;b++)e.writeInt(n,y+4*b,p[b]);else{if(12!=l)throw l;for(b=0;b<d;b++)e.writeDouble(n,y+8*b,p[b])}m>4&&(u+=m+=1&m),i+=4}}return[i,u]},t.toRGBA8=function(t,e){function r(t){return t<.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}var n=t.width,i=t.height,o=n*i,s=t.data,u=new Uint8Array(4*o),f=t.t262?t.t262[0]:2,c=t.t258?Math.min(32,t.t258[0]):1;null==t.t262&&1==c&&(f=0);var h=t.t277?t.t277[0]:t.t258?t.t258.length:[1,1,3,1,1,4,3][f],l=t.t339?t.t339[0]:null;if(1==f&&32==c&&3!=l)throw\"e\";var p=Math.ceil(h*c*n/8);if(0==f){e=1/256;for(var d=0;d<i;d++){var m=d*p,y=d*n;if(1==c)for(var b=0;b<n;b++){var g=y+b<<2,v=s[m+(b>>3)]>>7-(7&b)&1;u[g]=u[g+1]=u[g+2]=255*(1-v),u[g+3]=255}if(4==c)for(b=0;b<n;b++){g=y+b<<2,v=s[m+(b>>1)]>>4-4*(1&b)&15;u[g]=u[g+1]=u[g+2]=17*(15-v),u[g+3]=255}if(8==c)for(b=0;b<n;b++){g=y+b<<2,v=s[m+b];u[g]=u[g+1]=u[g+2]=255-v,u[g+3]=255}if(16==c)for(b=0;b<n;b++){g=y+b<<2,v=s[(_=m+2*b)+1]<<8|s[_];u[g]=u[g+1]=u[g+2]=Math.min(255,255-~~(v*e)),u[g+3]=255}}}else if(1==f){null==e&&(e=1/256);var w=3&s.length?null:new Float32Array(s.buffer);for(d=0;d<i;d++){m=d*p,y=d*n;if(1==c)for(b=0;b<n;b++){g=y+b<<2,v=s[m+(b>>3)]>>7-(7&b)&1;u[g]=u[g+1]=u[g+2]=255*v,u[g+3]=255}if(2==c)for(b=0;b<n;b++){g=y+b<<2,v=s[m+(b>>2)]>>6-2*(3&b)&3;u[g]=u[g+1]=u[g+2]=85*v,u[g+3]=255}if(8==c)for(b=0;b<n;b++){g=y+b<<2,v=s[m+b*h];u[g]=u[g+1]=u[g+2]=v,u[g+3]=255}if(16==c)for(b=0;b<n;b++){g=y+b<<2,v=s[(_=m+2*b)+1]<<8|s[_];u[g]=u[g+1]=u[g+2]=Math.min(255,~~(v*e)),u[g+3]=255}if(32==c)for(b=0;b<n;b++){var _;g=y+b<<2,v=w[_=(m>>>2)+b];u[g]=u[g+1]=u[g+2]=~~(.5+255*v),u[g+3]=255}}}else if(2==f)if(8==c){if(1==h)for(b=0;b<o;b++)u[4*b]=u[4*b+1]=u[4*b+2]=s[b],u[4*b+3]=255;if(3==h)for(b=0;b<o;b++){var x=3*b;u[g=b<<2]=s[x],u[g+1]=s[x+1],u[g+2]=s[x+2],u[g+3]=255}if(h>=4)for(b=0;b<o;b++){x=b*h;u[g=b<<2]=s[x],u[g+1]=s[x+1],u[g+2]=s[x+2],u[g+3]=s[x+3]}}else if(16==c){if(4==h)for(b=0;b<o;b++){x=8*b+1;u[g=b<<2]=s[x],u[g+1]=s[x+2],u[g+2]=s[x+4],u[g+3]=s[x+6]}if(3==h)for(b=0;b<o;b++){x=6*b+1;u[g=b<<2]=s[x],u[g+1]=s[x+2],u[g+2]=s[x+4],u[g+3]=255}}else{if(32!=c)throw c;var E=new Float32Array(s.buffer),D=0;for(b=0;b<E.length;b++)D=Math.min(D,E[b]);if(D<0)for(b=0;b<s.length;b+=4){var k=s[b];s[b]=s[b+3],s[b+3]=k,k=s[b+1],s[b+1]=s[b+2],s[b+2]=k}var A=[];for(b=0;b<65536;b++)A.push(r(b/65535));for(b=0;b<E.length;b++){var S=Math.max(0,Math.min(1,E[b]));E[b]=A[~~(.5+65535*S)]}if(3==h)for(b=0;b<o;b++){x=3*b;u[g=b<<2]=~~(.5+255*E[x]),u[g+1]=~~(.5+255*E[x+1]),u[g+2]=~~(.5+255*E[x+2]),u[g+3]=255}else{if(4!=h)throw h;for(b=0;b<o;b++){x=4*b;u[g=b<<2]=~~(.5+255*E[x]),u[g+1]=~~(.5+255*E[x+1]),u[g+2]=~~(.5+255*E[x+2]),u[g+3]=~~(.5+255*E[x+3])}}}else if(3==f){var M=t.t320,F=1<<c,C=8==c&&h>1&&t.t338&&0!=t.t338[0];for(d=0;d<i;d++)for(var B=0;B<n;B++){g=(b=d*n+B)<<2;var O=0,I=d*p;if(1==c)O=s[I+(B>>>3)]>>>7-(7&B)&1;else if(2==c)O=s[I+(B>>>2)]>>>6-2*(3&B)&3;else if(4==c)O=s[I+(B>>>1)]>>>4-4*(1&B)&15;else{if(8!=c)throw c;O=s[I+B*h]}u[g]=M[O]>>8,u[g+1]=M[F+O]>>8,u[g+2]=M[F+F+O]>>8,u[g+3]=C?s[I+B*h+1]:255}}else if(5==f){var T=h>4?1:0;for(b=0;b<o;b++){g=b<<2;var P=b*h;if(window.UDOC){var L=s[P],N=s[P+1],j=s[P+2],R=s[P+3],z=UDOC.C.cmykToRgb([L*(1/255),N*(1/255),j*(1/255),R*(1/255)]);u[g]=~~(.5+255*z[0]),u[g+1]=~~(.5+255*z[1]),u[g+2]=~~(.5+255*z[2])}else{L=255-s[P],N=255-s[P+1],j=255-s[P+2],R=(255-s[P+3])*(1/255);u[g]=~~(L*R+.5),u[g+1]=~~(N*R+.5),u[g+2]=~~(j*R+.5)}u[g+3]=255*(1-T)+s[P+4]*T}}else if(6==f&&t.t278){var U=t.t278[0];for(d=0;d<i;d+=U){b=d*n;for(var G=U*n,H=0;H<G;H++){g=4*(b+H),j=s[(P=3*b+4*(H>>>1))+(1&H)];var Z=s[P+2]-128,q=s[P+3]-128,W=j+((q>>2)+(q>>3)+(q>>5)),Y=j-((Z>>2)+(Z>>4)+(Z>>5))-((q>>1)+(q>>3)+(q>>4)+(q>>5)),V=j+(Z+(Z>>1)+(Z>>2)+(Z>>6));u[g]=Math.max(0,Math.min(255,W)),u[g+1]=Math.max(0,Math.min(255,Y)),u[g+2]=Math.max(0,Math.min(255,V)),u[g+3]=255}}}else if(32845==f)for(d=0;d<i;d++)for(B=0;B<n;B++){g=4*(d*n+B);var X=s[(P=6*(d*n+B))+1]<<8|s[P],J=(X=Math.pow(2,(X+.5)/256-64),(s[P+3]+.5)/410),K=(s[P+5]+.5)/410,Q=9*J/(6*J-16*K+12),$=4*K/(6*J-16*K+12),tt=Q*X/$,et=(1-Q-$)*X/$;W=2.69*tt-1.276*(j=X)-.414*et,Y=-1.022*tt+1.978*j+.044*et,V=.061*tt-.224*j+1.163*et;u[g]=255*r(Math.min(W,1)),u[g+1]=255*r(Math.min(Y,1)),u[g+2]=255*r(Math.min(V,1)),u[g+3]=255}else a(\"Unknown Photometric interpretation: \"+f);return u},t.replaceIMG=function(e){null==e&&(e=document.getElementsByTagName(\"img\"));for(var r=[\"tif\",\"tiff\",\"dng\",\"cr2\",\"nef\"],n=0;n<e.length;n++){var i=e[n],a=i.getAttribute(\"src\");if(null!=a){var o=a.split(\".\").pop().toLowerCase();if(-1!=r.indexOf(o)){var s=new XMLHttpRequest;t._xhrs.push(s),t._imgs.push(i),s.open(\"GET\",a),s.responseType=\"arraybuffer\",s.onload=t._imgLoaded,s.send()}}}},t._xhrs=[],t._imgs=[],t._imgLoaded=function(e){var r=t._xhrs.indexOf(e.target),n=t._imgs[r];t._xhrs.splice(r,1),t._imgs.splice(r,1),n.setAttribute(\"src\",t.bufferToURI(e.target.response))},t.bufferToURI=function(e){var r=t.decode(e),n=r,i=0,a=n[0];r[0].subIFD&&(n=n.concat(r[0].subIFD));for(var o=0;o<n.length;o++){var s=n[o];if(!(null==s.t258||s.t258.length<3)){var u=s.t256*s.t257;u>i&&(i=u,a=s)}}t.decodeImage(e,a,r);var f=t.toRGBA8(a),c=a.width,h=a.height,l=document.createElement(\"canvas\");l.width=c,l.height=h;var p=l.getContext(\"2d\"),d=new ImageData(new Uint8ClampedArray(f.buffer),c,h);return p.putImageData(d,0,0),l.toDataURL()},t._binBE={nextZero:function(t,e){for(;0!=t[e];)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+1],n[1]=e[r+0],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.ui32[0]},readASCII:function(t,e,r){for(var n=\"\",i=0;i<r;i++)n+=String.fromCharCode(t[e+i]);return n},readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+3-i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+7-i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=r>>8&255,t[e+1]=255&r},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+3]=i[0],e[r+2]=i[1],e[r+1]=i[2],e[r+0]=i[3]},writeUint:function(t,e,r){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},writeASCII:function(t,e,r){for(var n=0;n<r.length;n++)t[e+n]=r.charCodeAt(n)},writeDouble:function(e,r,n){t._binBE.fl64[0]=n;for(var i=0;i<8;i++)e[r+i]=t._binBE.ui8[7-i]}},t._binBE.ui8=new Uint8Array(8),t._binBE.i16=new Int16Array(t._binBE.ui8.buffer),t._binBE.i32=new Int32Array(t._binBE.ui8.buffer),t._binBE.ui32=new Uint32Array(t._binBE.ui8.buffer),t._binBE.fl32=new Float32Array(t._binBE.ui8.buffer),t._binBE.fl64=new Float64Array(t._binBE.ui8.buffer),t._binLE={nextZero:t._binBE.nextZero,readUshort:function(t,e){return t[e+1]<<8|t[e]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.ui32[0]},readASCII:t._binBE.readASCII,readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=255&r,t[e+1]=r>>8&255},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+0]=i[0],e[r+1]=i[1],e[r+2]=i[2],e[r+3]=i[3]},writeUint:function(t,e,r){t[e]=r>>>0&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24&255},writeASCII:t._binBE.writeASCII},t._copyTile=function(t,e,r,n,i,a,o,s){for(var u=Math.min(e,i-o),f=Math.min(r,a-s),c=0;c<f;c++)for(var h=(s+c)*i+o,l=c*e,p=0;p<u;p++)n[h+p]=t[l+p]},t.LosslessJpegDecode=function(){var t,e;function r(){return t[e++]}function n(){return t[e++]<<8|t[e++]}function i(t){for(var e=r(),n=[0,0,0,255],i=[],o=0;o<16;o++)i[o]=r();for(o=0;o<16;o++)for(var s=0;s<i[o];s++){n[a(n,0,o+1,1)+3]=r()}var u=new Uint8Array(256);t[e]=[new Uint8Array(n),u];for(o=0;o<256;o++){for(var f=8,c=o,h=0;255==n[h+3]&&0!=f;)h=n[h+(c>>--f&1)];u[o]=h}}function a(t,e,r,n){if(255!=t[e+3])return 0;if(0==r)return e;for(var i=0;i<2;i++){0==t[e+i]&&(t[e+i]=t.length,t.push(0,0,n,255));var o=a(t,t[e+i],r-1,n+1);if(0!=o)return o}return 0}function o(t){for(var e=t.b,r=t.f;e<25&&t.a<t.d;){var n=t.data[t.a++];255!=n||t.c||t.a++,r=r<<8|n,e+=8}if(e<0)throw\"e\";t.b=e,t.f=r}function s(t,e){return e.b<t&&o(e),e.f>>(e.b-=t)&65535>>16-t}function u(t,e){var r=t[0],n=0,i=255;e.b<16&&o(e);var a=e.f>>e.b-8&255;for(i=r[(n=t[1][a])+3],e.b-=r[n+2];255==i;)i=r[(n=r[n+(e.f>>--e.b&1)])+3];return i}function f(t,e){return t<32768>>16-e&&(t+=1-(1<<e)),t}function c(t,e){var r=u(t,e);return 0==r?0:16==r?-32768:f(s(r,e),r)}function h(t,e,r,n,i,a){for(var o=0,s=0;s<a;s++){for(var u=s*e,f=0;f<e;f+=i){o++;for(var h=0;h<i;h++)t[u+f+h]=c(n[h],r)}if(0!=r.e&&o%r.e==0&&0!=s){for(var l=r.a,p=r.data;255!=p[l]||!(208<=p[l+1]&&p[l+1]<=215);)l--;r.a=l+2,r.f=0,r.b=0}}}function l(t,e){return f(s(t,e),t)}function p(t,e,r,n,i,a,o,s){for(var u=r*o,f=i;f<a;f++)t[f]+=1<<s-1;for(var c=o;c<u;c+=o)for(f=i;f<a;f++)t[c+f]+=t[c+f-o];for(var h=1;h<n;h++){var l=h*u;for(f=i;f<a;f++)t[l+f]+=t[l+f-u];for(c=o;c<u;c+=o)for(f=i;f<a;f++){var p=l+c+f,d=p-u,m=t[p-o],y=0;if(0==e)y=0;else if(1==e)y=m;else if(2==e)y=t[d];else if(3==e)y=t[d-o];else if(4==e)y=m+(t[d]-t[d-o]);else if(5==e)y=m+(t[d]-t[d-o]>>>1);else if(6==e)y=t[d]+(m-t[d-o]>>>1);else{if(7!=e)throw e;y=m+t[d]>>>1}t[p]+=y}}}return function(a){if(t=a,e=0,65496!=n())throw\"e\";for(var o=[],s=0,f=0,c=0,d=[],m=[],y=[],b=0,g=0,v=0;;){var w=n();if(65535!=w){var _=n();if(65475==w){f=r(),g=n(),v=n(),b=r();for(var x=0;x<b;x++){var E=r(),D=r();if(0!=r())throw\"e\";o[E]=[x,D>>4,15&D]}}else if(65476==w)for(var k=e+_-2;e<k;)i(m);else{if(65498==w){e++;for(x=0;x<b;x++){var A=o[r()];y[A[0]]=m[r()>>>4],d[A[0]]=A.slice(1)}s=r(),e+=2;break}65501==w?c=n():e+=_-2}}else e--}var S=new(f>8?Uint16Array:Uint8Array)(g*v*b),M={b:0,f:0,c:8==s,a:e,data:t,d:t.length,e:c};if(M.c)!function(r,n,i,a,o){for(var s=t.length-e,f=0;f<s;f+=4){var c=t[e+f];t[e+f]=t[e+f+3],t[e+f+3]=c,c=t[e+f+1],t[e+f+1]=t[e+f+2],t[e+f+2]=c}for(var h=0;h<o;h++)for(var p=32768,d=32768,m=0;m<n;m+=2){var y=u(a,i),b=u(a,i);0!=y&&(p+=l(y,i)),0!=b&&(d+=l(b,i)),r[h*n+m]=65535&p,r[h*n+m+1]=65535&d}}(S,v*b,M,y[0],g);else{var F=[],C=0,B=0;for(x=0;x<b;x++){var O=d[x];(G=O[0])>C&&(C=G),(U=O[1])>B&&(B=U),F.push(G*U)}if(1!=C||1!=B){if(3!=b||1!=F[1]||1!=F[2])throw\"e\";if(2!=C||1!=B&&2!=B)throw\"e\";var I=[],T=0;for(x=0;x<b;x++){for(var P=0;P<F[x];P++)I.push(y[x]);T+=F[x]}var L=v/C,N=g/B,j=L*N;h(S,L*T,M,I,T,N),p(S,s,L,N,T-2,T,T,f);var R=new Uint16Array(j*F[0]);if(2==C&&2==B){for(x=0;x<j;x++)R[4*x]=S[6*x],R[4*x+1]=S[6*x+1],R[4*x+2]=S[6*x+2],R[4*x+3]=S[6*x+3];p(R,s,4*L,N,0,1,1,f);for(x=0;x<j;x++)S[6*x]=R[4*x],S[6*x+1]=R[4*x+1],S[6*x+2]=R[4*x+2],S[6*x+3]=R[4*x+3]}if(2==C&&1==B){for(x=0;x<j;x++)R[2*x]=S[4*x],R[2*x+1]=S[4*x+1];p(R,s,2*L,N,0,1,1,f);for(x=0;x<j;x++)S[4*x]=R[2*x],S[4*x+1]=R[2*x+1]}for(var z=S.slice(0),U=0;U<g;U++)if(2==B)for(var G=0;G<v;G++){var H=((U>>>1)*L+(G>>>1))*T,Z=2*(1&U)+(1&G);S[q=(U*v+G)*b]=z[H+Z],S[q+1]=z[H+4],S[q+2]=z[H+5]}else for(G=0;G<v;G++){var q;H=(U*L+(G>>>1))*T,Z=1&G;S[q=(U*v+G)*b]=z[H+Z],S[q+1]=z[H+2],S[q+2]=z[H+3]}}else if(h(S,v*b,M,y,b,g),0==c)p(S,s,v,g,0,b,b,f);else{var W=Math.floor(c/v);for(U=0;U<g;U+=W){var Y=S.slice(U*v*b,(U+W)*v*b);p(Y,s,v,W,0,b,b,f),S.set(Y,U*v*b)}}}return S}}(),function(){var e=2,r=4,n=5,i=6,a=7,o=12,s=13,u=14,f=15,c=17;function h(t){var e={c:new Int8Array(2<<t.u)};return function(t,e,r){var n=[e,3*e+18,5*e+67,7*e+276,r];t.o=e,t.w=(n[4]+2*e)/(2*e+1)+1|0,t.v=Math.ceil(Math.log2(t.w)),t.t=9,function(t,e){for(var r=-e[4],n=0;r<=e[4];n++,r++)t[n]=r<=-e[3]?-4:r<=-e[2]?-3:r<=-e[1]?-2:r<-e[0]?-1:r<=e[0]?0:r<e[1]?1:r<e[2]?2:r<e[3]?3:4}(t.c,n)}(e,0,t.g),e}function l(t){for(var e=[[],[],[]],r=Math.max(2,t.w+32>>>6),n=0;n<3;n++)for(var i=0;i<41;i++)e[n][i]=[r,1];return e}function p(t,e){var r=0,n=8-t.a;t.j,t.a;if(e){if(e>=n)do{r<<=n,e-=n,r|=t[t.j]&(1<<n)-1,t.j++,n=8}while(e>=8);e&&(r<<=e,n-=e,r|=t[t.j]>>>n&(1<<e)-1),t.a=8-n}return r}function d(t,e,r,n,i,a,o,s){null==s&&(s=0);var u,f,c,h,l,d,m=a+1,y=m%2,b=0,g=n[i],v=n[i-1],w=n[i-2][m],_=v[m-1],x=v[m],E=v[m+1],D=g[m-1],k=g[m+1],A=Math.abs;if(y&&(c=A(E-x),h=A(w-x),l=A(_-x)),y){if(d=(d=c>l&&h<c?w+_:c<l&&h<l?w+E:E+_)+2*x>>>2,s)return void(g[m]=d);u=e.t*e.c[t.g+x-w]+e.c[t.g+_-x]}else d=x>_&&x>E||x<_&&x<E?k+D+2*x>>>2:D+k>>>1,u=e.t*e.c[t.g+x-_]+e.c[t.g+_-D];f=A(u);var S=function(t){for(var e=-1,r=0;!r;e++)r=t[t.j]>>>7-t.a&1,t.a++,t.a&=7,t.a||t.j++;return e}(r);if(S<t.n-e.v-1){var M=function(t,e){var r=0;if(e<t)for(;r<=14&&e<<++r<t;);return r}(o[f][0],o[f][1]);b=p(r,M)+(S<<M)}else b=p(r,e.v)+1;b=1&b?-1-(b>>>1):b>>>1,o[f][0]+=A(b),o[f][1]==t.f&&(o[f][0]>>>=1,o[f][1]>>>=1),o[f][1]++,d=u<0?d-b:d+b,t.i&&(d<0?d+=e.w:d>t.g&&(d-=e.w)),g[m]=d>=0?Math.min(d,t.g):0}function m(t,e,r){for(var n=t[0].length,i=e;i<=r;i++)t[i][0]=t[i-1][1],t[i][n-1]=t[i-1][n-2]}function y(t){m(t,a,o),m(t,e,r),m(t,f,c)}function b(t,e,n,i,a,o,u,f,c,h,l,p,m){for(var b=0,g=1,v=a<s&&a>r;g<t.m;)b<t.m&&(d(t,e,n,i,a,b,u[c],t.h&&(v&&h||!v&&(l||(b&p)==m))),d(t,e,n,i,o,b,u[c],t.h&&(!v&&h||v&&(l||(b&p)==m))),b+=2),b>8&&(d(t,e,n,i,a,g,f[c]),d(t,e,n,i,o,g,f[c]),g+=2);y(i)}function g(t,n,i,s,u,h){b(t,n,i,s,e,a,u,h,0,0,1,0,8),b(t,n,i,s,8,f,u,h,1,0,1,0,8),b(t,n,i,s,3,9,u,h,2,1,0,3,0),b(t,n,i,s,10,16,u,h,0,0,0,3,2),b(t,n,i,s,r,11,u,h,1,0,0,3,2),b(t,n,i,s,o,c,u,h,2,1,0,3,0)}function v(t,r,n,i,o,s){var u=s.length,c=t.l;o+1==t.s&&(c=t.e-o*t.l);for(var h=6*t.e*i+o*t.l,l=0;l<6;l++){for(var p=0;p<c;p++){var d,m=s[l%u][p%u];d=0==m?e+(l>>>1):2==m?f+(l>>>1):a+l;var y=t.h?(2*p/3&2147483646|p%3&1)+(p%3>>>1):p>>>1;r[h+p]=n[d][y+1]}h+=t.e}}t._decompressRAF=function(a,f){var p=function(e){var r=t._binBE.readUshort,n={b:r(e,0),i:e[2],C:e[3],u:e[4],q:r(e,5),k:r(e,7),e:r(e,9),l:r(e,11),s:e[13],d:r(e,14)};if(18771!=n.b||n.i>1||n.q<6||n.q%6||n.e<768||n.e%24||768!=n.l||n.k<n.l||n.k%n.l||n.k-n.e>=n.l||n.s>16||n.s!=n.k/n.l||n.s!=Math.ceil(n.e/n.l)||n.d!=n.q/6||12!=n.u&&14!=n.u&&16!=n.u||16!=n.C&&0!=n.C)throw\"Invalid data\";if(0==n.i)throw\"Not implemented. We need this file!\";return n.h=16==n.C,n.m=0|(n.h?2*n.l/3:n.l>>>1),n.A=n.m+2,n.f=64,n.g=(1<<n.u)-1,n.n=4*n.u,n}(a),d=function(e,r){var n=new Array(r.s),i=4*r.s,a=16+i;12&i&&(a+=16-(12&i));for(var o=0,s=16;o<r.s;s+=4){var u=t._binBE.readUint(e,s);n[o]=e.slice(a,a+u),n[o].j=0,n[o].a=0,a+=u,o++}if(a!=e.length)throw\"Invalid data\";return n}(a,p),m=h(p),b=new Int16Array(p.e*p.q);null==f&&(f=p.h?[[1,1,0,1,1,2],[1,1,2,1,1,0],[2,0,1,0,2,1],[1,1,2,1,1,0],[1,1,0,1,1,2],[0,2,1,2,0,1]]:[[0,1],[3,2]]);for(var w=[[0,3],[1,r],[n,11],[i,o],[s,16],[u,c]],_=[],x=0;x<18;x++)_[x]=new Uint16Array(p.A);for(var E=0;E<p.s;E++){var D=l(m),k=l(m);for(x=0;x<18;x++)for(var A=0;A<p.A;A++)_[x][A]=0;for(var S=0;S<p.d;S++){g(p,m,d[E],_,D,k);for(x=0;x<6;x++)for(A=0;A<p.A;A++)_[w[x][0]][A]=_[w[x][1]][A];v(p,b,_,S,E,f);for(x=e;x<18;x++)if(-1==[n,i,s,u].indexOf(x))for(A=0;A<p.A;A++)_[x][A]=0;y(_)}}return b}}()}(i,r(197))}()}).call(this,r(13)(t),r(7))},function(t,e,r){\"use strict\";var n=r(57),i=r(42),a=i.Gif,o=i.GifError,s=r(96).GifCodec,u=r(58).GifFrame,f=r(97);t.exports={BitmapImage:n,Gif:a,GifCodec:s,GifFrame:u,GifUtil:f,GifError:o}},function(t,e,r){t.exports=i;var n=r(31).EventEmitter;function i(){n.call(this)}r(24)(i,n),i.Readable=r(50),i.Writable=r(154),i.Duplex=r(155),i.Transform=r(156),i.PassThrough=r(157),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on(\"data\",i),t.on(\"drain\",a),t._isStdio||e&&!1===e.end||(r.on(\"end\",s),r.on(\"close\",u));var o=!1;function s(){o||(o=!0,t.end())}function u(){o||(o=!0,\"function\"==typeof t.destroy&&t.destroy())}function f(t){if(c(),0===n.listenerCount(this,\"error\"))throw t}function c(){r.removeListener(\"data\",i),t.removeListener(\"drain\",a),r.removeListener(\"end\",s),r.removeListener(\"close\",u),r.removeListener(\"error\",f),t.removeListener(\"error\",f),r.removeListener(\"end\",c),r.removeListener(\"close\",c),t.removeListener(\"close\",c)}return r.on(\"error\",f),t.on(\"error\",f),r.on(\"end\",c),r.on(\"close\",c),t.on(\"close\",c),t.emit(\"pipe\",r),t}},function(t,e,r){\"use strict\";(function(e){void 0===e||!e.version||0===e.version.indexOf(\"v0.\")||0===e.version.indexOf(\"v1.\")&&0!==e.version.indexOf(\"v1.8.\")?t.exports={nextTick:function(t,r,n,i){if(\"function\"!=typeof t)throw new TypeError('\"callback\" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return e.nextTick((function(){t.apply(null,a)}))}}}:t.exports=e}).call(this,r(7))},function(t,e,r){\"use strict\";t.exports=TypeError},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(\"object\"!==n(r))throw new TypeError(r+\"must be non-object\");for(var i in r)a(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,o;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)a=t[e],o.set(a,i),i+=a.length;return o}},s={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e,r){return e=u(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,o()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(t){var e=\"function\"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(o())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&s(i,r.prototype),i}(t,arguments,u(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},a(t)}function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(o=function(){return!!t})()}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function c(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function h(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function l(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var p=c((function t(e,r,n){l(this,t),this.width=n.width,this.height=n.height,this.loops=n.loops,this.usesTransparency=n.usesTransparency,this.colorScope=n.colorScope,this.frames=r,this.buffer=e}));p.GlobalColorsPreferred=0,p.GlobalColorsOnly=1,p.LocalColorsOnly=2;var d=function(t){function e(t){var r;return l(this,e),r=i(this,e,[t]),t instanceof Error&&(r.stack=\"Gif\"+t.stack),r}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&s(t,e)}(e,t),c(e)}(a(Error));e.Gif=p,e.GifError=d},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.clone=f,e.addLast=h,e.addFirst=l,e.removeLast=p,e.removeFirst=d,e.insert=m,e.removeAt=y,e.replaceAt=b,e.getIn=g,e.set=v,e.setIn=w,e.update=x,e.updateIn=E,e.merge=D,e.mergeDeep=k,e.mergeIn=A,e.omit=S,e.addDefaults=M,e.default=void 0;var i=\"INVALID_ARGS\",a=!1;function o(t){throw new Error(t)}function s(t){var e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}var u={}.hasOwnProperty;function f(t){if(Array.isArray(t))return t.slice();for(var e=t,r=s(e),n={},i=0;i<r.length;i++){var a=r[i];n[a]=e[a]}return n}function c(t){return null!=t&&\"object\"===n(t)}function h(t,e){return Array.isArray(e)?t.concat(e):t.concat([e])}function l(t,e){return Array.isArray(e)?e.concat(t):[e].concat(t)}function p(t){return t.length?t.slice(0,t.length-1):t}function d(t){return t.length?t.slice(1):t}function m(t,e,r){return t.slice(0,e).concat(Array.isArray(r)?r:[r]).concat(t.slice(e))}function y(t,e){return e>=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function b(t,e,r){if(t[e]===r)return t;for(var n=t.length,i=Array(n),a=0;a<n;a++)i[a]=t[a];return i[e]=r,i}function g(t,e){if(Array.isArray(e)||o(a?\"A path array should be provided when calling getIn()\":i),null!=t){for(var r=t,n=0;n<e.length;n++){var s=e[n];if(void 0===(r=null!=r?r[s]:void 0))return r}return r}}function v(t,e,r){var n=t;if(null==n&&(n=\"number\"==typeof e?[]:{}),n[e]===r)return n;var i=f(n);return i[e]=r,i}function w(t,e,r){return e.length?_(t,e,r,0):r}function _(t,e,r,n){var i,a=e[n];n===e.length-1?i=r:i=_(c(t)&&c(t[a])?t[a]:\"number\"==typeof e[n+1]?[]:{},e,r,n+1);return v(t,a,i)}function x(t,e,r){return v(t,e,r(null==t?void 0:t[e]))}function E(t,e,r){return w(t,e,r(g(t,e)))}function D(t,e,r,n,i,a){for(var o=arguments.length,s=new Array(o>6?o-6:0),u=6;u<o;u++)s[u-6]=arguments[u];return s.length?F.call.apply(F,[null,!1,!1,t,e,r,n,i,a].concat(s)):F(!1,!1,t,e,r,n,i,a)}function k(t,e,r,n,i,a){for(var o=arguments.length,s=new Array(o>6?o-6:0),u=6;u<o;u++)s[u-6]=arguments[u];return s.length?F.call.apply(F,[null,!1,!0,t,e,r,n,i,a].concat(s)):F(!1,!0,t,e,r,n,i,a)}function A(t,e,r,n,i,a,o){var s=g(t,e);null==s&&(s={});for(var u=arguments.length,f=new Array(u>7?u-7:0),c=7;c<u;c++)f[c-7]=arguments[c];return w(t,e,f.length?F.call.apply(F,[null,!1,!1,s,r,n,i,a,o].concat(f)):F(!1,!1,s,r,n,i,a,o))}function S(t,e){for(var r=Array.isArray(e)?e:[e],n=!1,i=0;i<r.length;i++)if(u.call(t,r[i])){n=!0;break}if(!n)return t;for(var a={},o=s(t),f=0;f<o.length;f++){var c=o[f];r.indexOf(c)>=0||(a[c]=t[c])}return a}function M(t,e,r,n,i,a){for(var o=arguments.length,s=new Array(o>6?o-6:0),u=6;u<o;u++)s[u-6]=arguments[u];return s.length?F.call.apply(F,[null,!0,!1,t,e,r,n,i,a].concat(s)):F(!0,!1,t,e,r,n,i,a)}function F(t,e,r){var n=r;null==n&&o(a?\"At least one object should be provided to merge()\":i);for(var u=!1,h=0;h<(arguments.length<=3?0:arguments.length-3);h++){var l=h+3<3||arguments.length<=h+3?void 0:arguments[h+3];if(null!=l){var p=s(l);if(p.length)for(var d=0;d<=p.length;d++){var m=p[d];if(!t||void 0===n[m]){var y=l[m];e&&c(n[m])&&c(y)&&(y=F(t,e,n[m],y)),void 0!==y&&y!==n[m]&&(u||(u=!0,n=f(n)),n[m]=y)}}}}return n}var C={clone:f,addLast:h,addFirst:l,removeLast:p,removeFirst:d,insert:m,removeAt:y,replaceAt:b,getIn:g,set:v,setIn:w,update:x,updateIn:E,merge:D,mergeDeep:k,mergeIn:A,omit:S,addDefaults:M};e.default=C},function(t,e,r){var n=r(229);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){\"use strict\";(function(t){r.d(e,\"c\",(function(){return _})),r.d(e,\"a\",(function(){return E})),r.d(e,\"b\",(function(){return D}));var n=r(103),i=r.n(n),a=r(104),o=r.n(a),s=r(0),u=r(20),f=r(19),c=r(33);function h(t){return h=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},h(t)}function l(){l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",s=a.asyncIterator||\"@@asyncIterator\",u=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new O(n||[]);return i(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};f(x,o,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&n.call(D,o)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,o,s){var u=p(t[i],t,a);if(\"throw\"!==u.type){var f=u.arg,c=f.value;return c&&\"object\"==h(c)&&n.call(c,\"__await\")?e.resolve(c.__await).then((function(t){r(\"next\",t,o,s)}),(function(t){r(\"throw\",t,o,s)})):e.resolve(c).then((function(t){f.value=t,o(f)}),(function(t){return r(\"throw\",t,o,s)}))}s(u.arg)}var a;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[o];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(h(e)+\" is not iterable\")}return w.prototype=_,i(k,\"constructor\",{value:_,configurable:!0}),i(_,\"constructor\",{value:w,configurable:!0}),w.displayName=f(_,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),f(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),f(k,u,\"Generator\"),f(k,o,(function(){return this})),f(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,a,o,s=[],u=!0,f=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){f=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(f)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function y(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){m(a,n,i,o,s,\"next\",t)}function s(t){m(a,n,i,o,s,\"throw\",t)}o(void 0)}))}}function b(t,e){return g.apply(this,arguments)}function g(){return(g=y(l().mark((function t(e,r){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.fromBuffer(e);case 2:if(!(n=t.sent)){t.next=5;break}return t.abrupt(\"return\",n.mime);case 5:if(!r){t.next=7;break}return t.abrupt(\"return\",f.c(r));case 7:return t.abrupt(\"return\",null);case 8:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function v(t){return t._exif&&t._exif.tags&&t._exif.tags.Orientation||1}function w(e){if(!(v(e)<2)){var r=function(t){var e=t.getWidth(),r=t.getHeight();switch(v(t)){case 1:default:return null;case 2:return function(t,r){return[e-t-1,r]};case 3:return function(t,n){return[e-t-1,r-n-1]};case 4:return function(t,e){return[t,r-e-1]};case 5:return function(t,e){return[e,t]};case 6:return function(t,e){return[e,r-t-1]};case 7:return function(t,n){return[e-n-1,r-t-1]};case 8:return function(t,r){return[e-r-1,t]}}}(e),n=v(e)>4;!function(e,r,n,i){for(var a=e.bitmap.data,o=e.bitmap.width,s=t.alloc(a.length),u=0;u<r;u++)for(var f=0;f<n;f++){var c=p(i(u,f),2),h=c[0],l=r*f+u<<2,d=o*c[1]+h<<2,m=a.readUInt32BE(d);s.writeUInt32BE(m,l)}e.bitmap.data=s,e.bitmap.width=r,e.bitmap.height=n}(e,n?e.bitmap.height:e.bitmap.width,n?e.bitmap.width:e.bitmap.height,r)}}function _(t,e,r){return x.apply(this,arguments)}function x(){return(x=y(l().mark((function t(e,r,n){var i,a;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b(e,r);case 2:if(\"string\"==typeof(i=t.sent)){t.next=5;break}return t.abrupt(\"return\",n(new Error(\"Could not find MIME for Buffer <\"+r+\">\")));case 5:if(this._originalMime=i.toLowerCase(),t.prev=6,a=this.getMIME(),!this.constructor.decoders[a]){t.next=12;break}this.bitmap=this.constructor.decoders[a](e),t.next=13;break;case 12:return t.abrupt(\"return\",s.d.call(this,\"Unsupported MIME type: \"+a,n));case 13:t.next=18;break;case 15:return t.prev=15,t.t0=t.catch(6),t.abrupt(\"return\",n.call(this,t.t0,this));case 18:try{this._exif=o.a.create(e).parse(),w(this)}catch(t){}return n.call(this,null,this),t.abrupt(\"return\",this);case 21:case\"end\":return t.stop()}}),t,this,[[6,15]])})))).apply(this,arguments)}function E(e,r){var n,i,a=this;if(e===u.AUTO&&(e=this.getMIME()),\"string\"!=typeof e)return s.d.call(this,\"mime must be a string\",r);if(\"function\"!=typeof r)return s.d.call(this,\"cb must be a function\",r);if(e=e.toLowerCase(),this._rgba&&this.constructor.hasAlpha[e]?this.bitmap.data=t.from(this.bitmap.data):this.bitmap.data=(n=this.constructor,i=this,new n(i.bitmap.width,i.bitmap.height,i._background).composite(i,0,0).bitmap).data,!this.constructor.encoders[e])return s.d.call(this,\"Unsupported MIME type: \"+e,r);var o=this.constructor.encoders[e](this);return o instanceof Promise?o.then((function(t){r.call(a,null,t)})):r.call(this,null,o),this}function D(t){return Object(c.a)(E,this,t)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t,n){var i=r(14),a=r(38),o=r(158),s=r(187),u=r(190),f=e.PNG=function(e){a.call(this),e=e||{},this.width=0|e.width,this.height=0|e.height,this.data=this.width>0&&this.height>0?t.alloc(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new o(e),this._parser.on(\"error\",this.emit.bind(this,\"error\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._parser.on(\"metadata\",this._metadata.bind(this)),this._parser.on(\"gamma\",this._gamma.bind(this)),this._parser.on(\"parsed\",function(t){this.data=t,this.emit(\"parsed\",t)}.bind(this)),this._packer=new s(e),this._packer.on(\"data\",this.emit.bind(this,\"data\")),this._packer.on(\"end\",this.emit.bind(this,\"end\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._packer.on(\"error\",this.emit.bind(this,\"error\"))};i.inherits(f,a),f.sync=u,f.prototype.pack=function(){return this.data&&this.data.length?(n.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit(\"error\",\"No data provided\"),this)},f.prototype.parse=function(t,e){var r,n;e&&(r=function(t){this.removeListener(\"error\",n),this.data=t,e(null,this)}.bind(this),n=function(t){this.removeListener(\"parsed\",r),e(t,null)}.bind(this),this.once(\"parsed\",r),this.once(\"error\",n));return this.end(t),this},f.prototype.write=function(t){return this._parser.write(t),!0},f.prototype.end=function(t){this._parser.end(t)},f.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit(\"metadata\",t)},f.prototype._gamma=function(t){this.gamma=t},f.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit(\"close\")},f.bitblt=function(t,e,r,n,i,a,o,s){if(n|=0,i|=0,a|=0,o|=0,s|=0,(r|=0)>t.width||n>t.height||r+i>t.width||n+a>t.height)throw new Error(\"bitblt reading outside image\");if(o>e.width||s>e.height||o+i>e.width||s+a>e.height)throw new Error(\"bitblt writing outside image\");for(var u=0;u<a;u++)t.data.copy(e.data,(s+u)*e.width+o<<2,(n+u)*t.width+r<<2,(n+u)*t.width+r+i<<2)},f.prototype.bitblt=function(t,e,r,n,i,a,o){return f.bitblt(this,t,e,r,n,i,a,o),this},f.adjustGamma=function(t){if(t.gamma){for(var e=0;e<t.height;e++)for(var r=0;r<t.width;r++)for(var n=t.width*e+r<<2,i=0;i<3;i++){var a=t.data[n+i]/255;a=Math.pow(a,1/2.2/t.gamma),t.data[n+i]=Math.round(255*a)}t.gamma=0}},f.prototype.adjustGamma=function(){f.adjustGamma(this)}}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;var n=r(126),i=r(129),a=r(26);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return a.EndOfStreamError}}),e.fromStream=function(t,e){return e=e||{},new n.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new i.BufferTokenizer(t,e)}},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractTokenizer=void 0;var f=r(26),c=function(){return e=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}},r=[{key:\"readToken\",value:(p=o(i().mark((function e(r){var n,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:this.position,a=t.alloc(r.len),e.next=4,this.readBuffer(a,{position:n});case 4:if(!(e.sent<r.len)){e.next=7;break}throw new f.EndOfStreamError;case 7:return e.abrupt(\"return\",r.get(a,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return p.apply(this,arguments)})},{key:\"peekToken\",value:(l=o(i().mark((function e(r){var n,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:this.position,a=t.alloc(r.len),e.next=4,this.peekBuffer(a,{position:n});case 4:if(!(e.sent<r.len)){e.next=7;break}throw new f.EndOfStreamError;case 7:return e.abrupt(\"return\",r.get(a,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return l.apply(this,arguments)})},{key:\"readNumber\",value:(h=o(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new f.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:\"peekNumber\",value:(c=o(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.peekBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new f.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:\"ignore\",value:(u=o(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===this.fileInfo.size){t.next=5;break}if(r=this.fileInfo.size-this.position,!(e>r)){t.next=5;break}return this.position+=r,t.abrupt(\"return\",r);case 5:return this.position+=e,t.abrupt(\"return\",e);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:\"close\",value:(a=o(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return a.apply(this,arguments)})},{key:\"normalizeOptions\",value:function(t,e){if(e&&void 0!==e.position&&e.position<this.position)throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");return e?{mayBeLess:!0===e.mayBeLess,offset:e.offset?e.offset:0,length:e.length?e.length:t.length-(e.offset?e.offset:0),position:e.position?e.position:this.position}:{mayBeLess:!1,offset:0,length:t.length,position:this.position}}}],r&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,n,a,u,c,h,l,p}();e.AbstractTokenizer=c}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function o(t,e,r){return e=c(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,u()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}function s(t){var e=\"function\"==typeof Map?new Map:void 0;return s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&f(i,r.prototype),i}(t,arguments,c(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,t)},s(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages=\"End-Of-Stream\";var h=function(t){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,r),o(this,r,[e.defaultMessages])}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&f(t,e)}(r,t),n=r,a&&i(n.prototype,a),s&&i(n,s),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,a,s}(s(Error));e.EndOfStreamError=h},function(t,e,r){(e=t.exports=r(70)).Stream=e,e.Readable=e,e.Writable=r(52),e.Duplex=r(18),e.Transform=r(74),e.PassThrough=r(153)},function(t,e,r){var n=r(2),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(a(n,e),e.Buffer=o),a(i,o),o.from=function(t,e,r){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,r)},o.alloc=function(t,e,r){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var n=i(t);return void 0!==e?\"string\"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},o.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return n.SlowBuffer(t)}},function(t,e,r){\"use strict\";(function(e,n,i){var a=r(39);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=g;var s,u=!e.browser&&[\"v0.10\",\"v0.9.\"].indexOf(e.version.slice(0,5))>-1?n:a.nextTick;g.WritableState=b;var f=Object.create(r(27));f.inherits=r(24);var c={deprecate:r(151)},h=r(71),l=r(51).Buffer,p=(void 0!==i?i:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var d,m=r(72);function y(){}function b(t,e){s=s||r(18),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,f=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(f||0===f)?f:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(a.nextTick(i,n),a.nextTick(D,t,e),t._writableState.errorEmitted=!0,t.emit(\"error\",n)):(i(n),t._writableState.errorEmitted=!0,t.emit(\"error\",n),D(t,e))}(t,r,n,e,i);else{var o=x(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||_(t,r),n?u(w,t,r,o,i):w(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function g(t){if(s=s||r(18),!(d.call(g,this)||this instanceof s))return new g(t);this._writableState=new b(t,this),this.writable=!0,t&&(\"function\"==typeof t.write&&(this._write=t.write),\"function\"==typeof t.writev&&(this._writev=t.writev),\"function\"==typeof t.destroy&&(this._destroy=t.destroy),\"function\"==typeof t.final&&(this._final=t.final)),h.call(this)}function v(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function w(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit(\"drain\"))}(t,e),e.pendingcb--,n(),D(t,e)}function _(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,v(t,e,!0,e.length,i,\"\",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,h=r.callback;if(v(t,e,!1,e.objectMode?1:f.length,f,c,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final((function(r){e.pendingcb--,r&&t.emit(\"error\",r),e.prefinished=!0,t.emit(\"prefinish\"),D(t,e)}))}function D(t,e){var r=x(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||(\"function\"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,a.nextTick(E,t,e)):(e.prefinished=!0,t.emit(\"prefinish\")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit(\"finish\"))),r}f.inherits(g,h),b.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(b.prototype,\"buffer\",{get:c.deprecate((function(){return this.getBuffer()}),\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(t){}}(),\"function\"==typeof Symbol&&Symbol.hasInstance&&\"function\"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===g&&(t&&t._writableState instanceof b)}})):d=function(t){return t instanceof this},g.prototype.pipe=function(){this.emit(\"error\",new Error(\"Cannot pipe, not readable\"))},g.prototype.write=function(t,e,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=t,l.isBuffer(n)||n instanceof p);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),\"function\"==typeof e&&(r=e,e=null),s?e=\"buffer\":e||(e=i.defaultEncoding),\"function\"!=typeof r&&(r=y),i.ended?function(t,e){var r=new Error(\"write after end\");t.emit(\"error\",r),a.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var i=!0,o=!1;return null===r?o=new TypeError(\"May not write null values to stream\"):\"string\"==typeof r||void 0===r||e.objectMode||(o=new TypeError(\"Invalid non-string/buffer chunk\")),o&&(t.emit(\"error\",o),a.nextTick(n,o),i=!1),i}(this,i,t,r))&&(i.pendingcb++,o=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||\"string\"!=typeof e||(e=l.from(e,r));return e}(e,n,i);n!==o&&(r=!0,i=\"buffer\",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else v(t,e,!1,s,n,i,a);return u}(this,i,s,t,e,r)),o},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||_(this,t))},g.prototype.setDefaultEncoding=function(t){if(\"string\"==typeof t&&(t=t.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((t+\"\").toLowerCase())>-1))throw new TypeError(\"Unknown encoding: \"+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(g.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(t,e,r){r(new Error(\"_write() is not implemented\"))},g.prototype._writev=null,g.prototype.end=function(t,e,r){var n=this._writableState;\"function\"==typeof t?(r=t,t=null,e=null):\"function\"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,D(t,e),r&&(e.finished?a.nextTick(r):t.once(\"finish\",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(g.prototype,\"destroyed\",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(7),r(117).setImmediate,r(10))},function(t,e,r){\"use strict\";(function(e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(160)();function a(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function o(t){return e.Buffer&&\"function\"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=r(14),u=Object.prototype.hasOwnProperty,f=Array.prototype.slice,c=\"foo\"===function(){}.name;function h(t){return Object.prototype.toString.call(t)}function l(t){return!o(t)&&(\"function\"==typeof e.ArrayBuffer&&(\"function\"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var p=t.exports=v,d=/\\s*function\\s+([^\\(\\s]*)\\s*/;function m(t){if(s.isFunction(t)){if(c)return t.name;var e=t.toString().match(d);return e&&e[1]}}function y(t,e){return\"string\"==typeof t?t.length<e?t:t.slice(0,e):t}function b(t){if(c||!s.isFunction(t))return s.inspect(t);var e=m(t);return\"[Function\"+(e?\": \"+e:\"\")+\"]\"}function g(t,e,r,n,i){throw new p.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function v(t,e){t||g(t,!0,e,\"==\",p.ok)}function w(t,e,r,i){if(t===e)return!0;if(o(t)&&o(e))return 0===a(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&\"object\"===n(t)||null!==e&&\"object\"===n(e)){if(l(t)&&l(e)&&h(t)===h(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===a(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var u=(i=i||{actual:[],expected:[]}).actual.indexOf(t);return-1!==u&&u===i.expected.indexOf(e)||(i.actual.push(t),i.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=_(t),a=_(e);if(i&&!a||!i&&a)return!1;if(i)return w(t=f.call(t),e=f.call(e),r);var o,u,c=D(t),h=D(e);if(c.length!==h.length)return!1;for(c.sort(),h.sort(),u=c.length-1;u>=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(!w(t[o=c[u]],e[o],r,n))return!1;return!0}(t,e,r,i))}return r?t===e:t==e}function _(t){return\"[object Arguments]\"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if(\"[object RegExp]\"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function E(t,e,r,n){var i;if(\"function\"!=typeof e)throw new TypeError('\"block\" argument must be a function');\"string\"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?\" (\"+r.name+\").\":\".\")+(n?\" \"+n:\".\"),t&&!i&&g(i,r,\"Missing expected exception\"+n);var a=\"string\"==typeof n,o=!t&&i&&!r;if((!t&&s.isError(i)&&a&&x(i,r)||o)&&g(i,r,\"Got unwanted exception\"+n),t&&i&&r&&!x(i,r)||!t&&i)throw i}p.AssertionError=function(t){this.name=\"AssertionError\",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return y(b(t.actual),128)+\" \"+t.operator+\" \"+y(b(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=m(e),a=n.indexOf(\"\\n\"+i);if(a>=0){var o=n.indexOf(\"\\n\",a+1);n=n.substring(o+1)}this.stack=n}}},s.inherits(p.AssertionError,Error),p.fail=g,p.ok=v,p.equal=function(t,e,r){t!=e&&g(t,e,r,\"==\",p.equal)},p.notEqual=function(t,e,r){t==e&&g(t,e,r,\"!=\",p.notEqual)},p.deepEqual=function(t,e,r){w(t,e,!1)||g(t,e,r,\"deepEqual\",p.deepEqual)},p.deepStrictEqual=function(t,e,r){w(t,e,!0)||g(t,e,r,\"deepStrictEqual\",p.deepStrictEqual)},p.notDeepEqual=function(t,e,r){w(t,e,!1)&&g(t,e,r,\"notDeepEqual\",p.notDeepEqual)},p.notDeepStrictEqual=function t(e,r,n){w(e,r,!0)&&g(e,r,n,\"notDeepStrictEqual\",t)},p.strictEqual=function(t,e,r){t!==e&&g(t,e,r,\"===\",p.strictEqual)},p.notStrictEqual=function(t,e,r){t===e&&g(t,e,r,\"!==\",p.notStrictEqual)},p.throws=function(t,e,r){E(!0,t,e,r)},p.doesNotThrow=function(t,e,r){E(!1,t,e,r)},p.ifError=function(t){if(t)throw t},p.strict=i((function t(e,r){e||g(e,!0,r,\"==\",t)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var D=Object.keys||function(t){var e=[];for(var r in t)u.call(t,r)&&e.push(r);return e}}).call(this,r(10))},function(t,e,r){\"use strict\";var n=r(172);t.exports=Function.prototype.bind||n},function(t,e,r){\"use strict\";var n=r(29)(\"%Object.defineProperty%\",!0)||!1;if(n)try{n({},\"a\",{value:1})}catch(t){n=!1}t.exports=n},function(t,e,r){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,r){\"use strict\";(function(e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}var a=function(){function t(){if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),0===arguments.length)throw new Error(\"constructor requires parameters\");var n=arguments.length<=0?void 0:arguments[0];if(null!==n&&\"object\"===r(n))if(n instanceof t){var i=n.bitmap;this.bitmap={width:i.width,height:i.height,data:new e(i.width*i.height*4)},i.data.copy(this.bitmap.data)}else{if(!(n.width&&n.height&&n.data))throw new Error(\"unrecognized constructor parameters\");this.bitmap=n}else{if(\"number\"!=typeof n||\"number\"!=typeof(arguments.length<=1?void 0:arguments[1]))throw new Error(\"unrecognized constructor parameters\");var a=n,o=arguments.length<=1?void 0:arguments[1],s=arguments.length<=2?void 0:arguments[2];this.bitmap={width:a,height:o},e.isBuffer(s)?this.bitmap.data=s:(this.bitmap.data=new e(a*o*4),\"number\"==typeof s&&this.fillRGBA(s))}}return i=t,(a=[{key:\"blit\",value:function(t,e,r,n,i,a,o){if(n+a>this.bitmap.width)throw new Error(\"copy exceeds width of source bitmap\");if(e+a>t.bitmap.width)throw new Error(\"copy exceeds width of target bitmap\");if(i+o>this.bitmap.height)throw new Error(\"copy exceeds height of source bitmap\");if(r+o>t.bitmap.height)throw new Erro(\"copy exceeds height of target bitmap\");for(var s=this.bitmap.data,u=t.bitmap.data,f=4*this.bitmap.width,c=4*t.bitmap.width,h=4*a,l=i*f+4*n,p=r*c+4*e;--o>=0;)s.copy(u,p,l,l+h),l+=f,p+=c;return this}},{key:\"fillRGBA\",value:function(t){for(var e=this.bitmap.data,r=4*this.bitmap.height,n=0;n<r;)e.writeUInt32BE(t,n),n+=4;for(;n<e.length;)e.copy(e,n,0,r),n+=r;return this}},{key:\"getRGBA\",value:function(t,e){var r=4*(e*this.bitmap.width+t);return this.bitmap.data.readUInt32BE(r)}},{key:\"getRGBASet\",value:function(){for(var t=new Set,e=this.bitmap.data,r=0;r<e.length;r+=4)t.add(e.readUInt32BE(r,!0));return t}},{key:\"greyscale\",value:function(){var t=this.bitmap.data;return this.scan(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){var i=Math.round(.299*t[n]+.587*t[n+1]+.114*t[n+2]);t[n]=i,t[n+1]=i,t[n+2]=i})),this}},{key:\"reframe\",value:function(e,r,n,i,a){var o,s=e<0?0:e,u=r<0?0:r,f=n+s>this.bitmap.width?this.bitmap.width-s:n,c=i+u>this.bitmap.height?this.bitmap.height-u:i,h=e<0?-e:0,l=r<0?-r:0;if(void 0===a){if(s!==e||u!=r||f!==n||c!==i)throw new GifError(\"fillRGBA required for this reframing\");o=new t(n,i)}else o=new t(n,i,a);return this.blit(o,h,l,s,u,f,c),this.bitmap=o.bitmap,this}},{key:\"scale\",value:function(t){if(1!==t){if(!Number.isInteger(t)||t<1)throw new Error(\"the scale must be an integer >= 1\");for(var r,n=this.bitmap.width,i=this.bitmap.height,a=n*t*4,o=this.bitmap.data,s=new e(i*a*t),u=0,f=0,c=0;c<i;++c){r=f;for(var h=0;h<n;++h){for(var l=o.readUInt32BE(u,!0),p=0;p<t;++p)s.writeUInt32BE(l,f),f+=4;u+=4}for(var d=1;d<t;++d)s.copy(s,f,r,f),f+=a,r+=a}return this.bitmap={width:n*t,height:i*t,data:s},this}}},{key:\"scanAllCoords\",value:function(t){for(var e=this.bitmap.width,r=this.bitmap.data.length,n=0,i=0,a=0;a<r;a+=4)t(n,i,a),++n===e&&(n=0,++i)}},{key:\"scanAllIndexes\",value:function(t){for(var e=this.bitmap.data.length,r=0;r<e;r+=4)t(r)}}])&&n(i.prototype,a),o&&n(i,o),Object.defineProperty(i,\"prototype\",{writable:!1}),i;var i,a,o}();t.exports=a}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function o(t,e,r){return e=u(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,s()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var c=r(57),h=(r(42).GifError,function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];if(t=o(this,e,[].concat(i)),i[0]instanceof e){var s=i[0];t.xOffset=s.xOffset,t.yOffset=s.yOffset,t.disposalMethod=s.disposalMethod,t.delayCentisecs=s.delayCentisecs,t.interlaced=s.interlaced}else{var u=i[i.length-1],f={};\"object\"!==n(u)||u instanceof c||(f=u),t.xOffset=f.xOffset||0,t.yOffset=f.yOffset||0,t.disposalMethod=void 0!==f.disposalMethod?f.disposalMethod:e.DisposeToBackgroundColor,t.delayCentisecs=f.delayCentisecs||8,t.interlaced=f.interlaced||!1}return t}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&f(t,e)}(e,t),r=e,(a=[{key:\"getPalette\",value:function(){for(var t=new Set,e=this.bitmap.data,r=0,n=!1;r<e.length;){if(0===e[r+3])n=!0;else{var i=e.readUInt32BE(r,!0)>>8&16777215;t.add(i)}r+=4}var a=new Array(t.size),o=t.values();for(r=0;r<a.length;++r)a[r]=o.next().value;a.sort((function(t,e){return t-e}));var s=a.length;return n&&++s,{colors:a,usesTransparency:n,indexCount:s}}}])&&i(r.prototype,a),s&&i(r,s),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,a,s}(c));h.DisposeToAnything=0,h.DisposeNothing=1,h.DisposeToBackgroundColor=2,h.DisposeToPrevious=3,e.GifFrame=h},function(t,e,r){\"use strict\";function n(t,e,r,n){for(var i=t[e++],a=1<<i,o=a+1,s=o+1,u=i+1,f=(1<<u)-1,c=0,h=0,l=0,p=t[e++],d=new Int32Array(4096),m=null;;){for(;c<16&&0!==p;)h|=t[e++]<<c,c+=8,1===p?p=t[e++]:--p;if(c<u)break;var y=h&f;if(h>>=u,c-=u,y!==a){if(y===o)break;for(var b=y<s?y:m,g=0,v=b;v>a;)v=d[v]>>8,++g;var w=v;if(l+g+(b!==y?1:0)>n)return;r[l++]=w;var _=l+=g;for(b!==y&&(r[l++]=w),v=b;g--;)v=d[v],r[--_]=255&v,v>>=8;null!==m&&s<4096&&(d[s++]=m<<8|w,s>=f+1&&u<12&&(++u,f=f<<1|1)),m=y}else s=o+1,f=(1<<(u=i+1))-1,m=null}return r}try{e.GifWriter=function(t,e,r,n){var i=0,a=void 0===(n=void 0===n?{}:n).loop?null:n.loop,o=void 0===n.palette?null:n.palette;if(e<=0||r<=0||e>65535||r>65535)throw new Error(\"Width/Height invalid.\");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var u=0,f=0;if(null!==o){for(var c=s(o);c>>=1;)++u;if(c=1<<u,--u,void 0!==n.background){if((f=n.background)>=c)throw new Error(\"Background index out of range.\");if(0===f)throw new Error(\"Background index explicitly passed as 0.\")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=(null!==o?128:0)|u,t[i++]=f,t[i++]=0,null!==o)for(var h=0,l=o.length;h<l;++h){var p=o[h];t[i++]=p>>16&255,t[i++]=p>>8&255,t[i++]=255&p}if(null!==a){if(a<0||a>65535)throw new Error(\"Loop count invalid.\");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&a,t[i++]=a>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,r,n,a,u,f){if(!0===d&&(--i,d=!1),f=void 0===f?{}:f,e<0||r<0||e>65535||r>65535)throw new Error(\"x/y invalid.\");if(n<=0||a<=0||n>65535||a>65535)throw new Error(\"Width/Height invalid.\");if(u.length<n*a)throw new Error(\"Not enough pixels for the frame size.\");var c=!0,h=f.palette;if(null==h&&(c=!1,h=o),null==h)throw new Error(\"Must supply either a local or global palette.\");for(var l=s(h),p=0;l>>=1;)++p;l=1<<p;var m=void 0===f.delay?0:f.delay,y=void 0===f.disposal?0:f.disposal;if(y<0||y>3)throw new Error(\"Disposal out of range.\");var b=!1,g=0;if(void 0!==f.transparent&&null!==f.transparent&&(b=!0,(g=f.transparent)<0||g>=l))throw new Error(\"Transparent color index.\");if((0!==y||b||0!==m)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=y<<2|(!0===b?1:0),t[i++]=255&m,t[i++]=m>>8&255,t[i++]=g,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&a,t[i++]=a>>8&255,t[i++]=!0===c?128|p-1:0,!0===c)for(var v=0,w=h.length;v<w;++v){var _=h[v];t[i++]=_>>16&255,t[i++]=_>>8&255,t[i++]=255&_}return i=function(t,e,r,n){t[e++]=r;var i=e++,a=1<<r,o=a-1,s=a+1,u=s+1,f=r+1,c=0,h=0;function l(r){for(;c>=r;)t[e++]=255&h,h>>=8,c-=8,e===i+256&&(t[i]=255,i=e++)}function p(t){h|=t<<c,c+=f,l(8)}var d=n[0]&o,m={};p(a);for(var y=1,b=n.length;y<b;++y){var g=n[y]&o,v=d<<8|g,w=m[v];if(void 0===w){for(h|=d<<c,c+=f;c>=8;)t[e++]=255&h,h>>=8,c-=8,e===i+256&&(t[i]=255,i=e++);4096===u?(p(a),u=s+1,f=r+1,m={}):(u>=1<<f&&++f,m[v]=u++),d=g}else d=w}return p(d),p(s),l(1),i+1===e?t[i]=0:(t[i]=e-i-1,t[e++]=0),e}(t,i,p<2?2:p,u),i},this.end=function(){return!1===d&&(t[i++]=59,d=!0),i},this.getOutputBuffer=function(){return t},this.setOutputBuffer=function(e){t=e},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(t){i=t}},e.GifReader=function(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var r=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,a=t[e++],o=a>>7,s=1<<1+(7&a);t[e++],t[e++];var u=null,f=null;o&&(u=e,f=s,e+=3*s);var c=!0,h=[],l=0,p=null,d=0,m=null;for(this.width=r,this.height=i;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,m=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error(\"Invalid graphics extension block.\");var y=t[e++];l=t[e++]|t[e++]<<8,p=t[e++],1&y||(p=null),d=y>>2&7,e++;break;case 254:for(;;){if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}break;default:throw new Error(\"Unknown graphic control label: 0x\"+t[e-1].toString(16))}break;case 44:var b=t[e++]|t[e++]<<8,g=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,_=t[e++],x=_>>6&1,E=1<<1+(7&_),D=u,k=f,A=!1;_>>7&&(A=!0,D=e,k=E,e+=3*E);var S=e;for(e++;;){var M;if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}h.push({x:b,y:g,width:v,height:w,has_local_palette:A,palette_offset:D,palette_size:k,data_offset:S,data_length:e-S,transparent_index:p,interlaced:!!x,delay:l,disposal:d});break;case 59:c=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+t[e-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return m},this.frameInfo=function(t){if(t<0||t>=h.length)throw new Error(\"Frame index out of range.\");return h[t]},this.decodeAndBlitFrameBGRA=function(e,i){var a=this.frameInfo(e),o=a.width*a.height,s=new Uint8Array(o);n(t,a.data_offset,s,o);var u=a.palette_offset,f=a.transparent_index;null===f&&(f=256);var c=a.width,h=r-c,l=c,p=4*(a.y*r+a.x),d=4*((a.y+a.height)*r+a.x),m=p,y=4*h;!0===a.interlaced&&(y+=4*r*7);for(var b=8,g=0,v=s.length;g<v;++g){var w=s[g];if(0===l&&(l=c,(m+=y)>=d&&(y=4*h+4*r*(b-1),m=p+(c+h)*(b<<1),b>>=1)),w===f)m+=4;else{var _=t[u+3*w],x=t[u+3*w+1],E=t[u+3*w+2];i[m++]=E,i[m++]=x,i[m++]=_,i[m++]=255}--l}},this.decodeAndBlitFrameRGBA=function(e,i){var a=this.frameInfo(e),o=a.width*a.height,s=new Uint8Array(o);n(t,a.data_offset,s,o);var u=a.palette_offset,f=a.transparent_index;null===f&&(f=256);var c=a.width,h=r-c,l=c,p=4*(a.y*r+a.x),d=4*((a.y+a.height)*r+a.x),m=p,y=4*h;!0===a.interlaced&&(y+=4*r*7);for(var b=8,g=0,v=s.length;g<v;++g){var w=s[g];if(0===l&&(l=c,(m+=y)>=d&&(y=4*h+4*r*(b-1),m=p+(c+h)*(b<<1),b>>=1)),w===f)m+=4;else{var _=t[u+3*w],x=t[u+3*w+1],E=t[u+3*w+2];i[m++]=_,i[m++]=x,i[m++]=E,i[m++]=255}--l}}}}catch(t){}},,function(t,e,r){var n=r(142),i=r(143);t.exports={encode:n,decode:i}},function(t,e,r){var n=r(195),i=r(196);t.exports={encode:n,decode:i}},function(t,e,r){\"use strict\";(function(t){var r={nearestNeighbor:function(t,e){for(var r=t.width,n=t.height,i=e.width,a=e.height,o=t.data,s=e.data,u=0;u<a;u++)for(var f=0;f<i;f++){var c=4*(u*i+f),h=4*(Math.floor(u*n/a)*r+Math.floor(f*r/i));s[c++]=o[h++],s[c++]=o[h++],s[c++]=o[h++],s[c++]=o[h++]}},bilinearInterpolation:function(t,e){for(var r=t.width,n=t.height,i=e.width,a=e.height,o=t.data,s=e.data,u=function(t,e,r,n,i){return e===n?r:Math.round((t-e)*i+(n-t)*r)},f=function(t,e,n,i,a,f,c,h){var l=4*(c*r+i)+e,p=4*(c*r+a)+e,d=u(n,i,o[l],a,o[p]);if(h===c)s[t+e]=d;else{p=4*(h*r+a)+e;var m=u(n,i,o[l=4*(h*r+i)+e],a,o[p]);s[t+e]=u(f,c,d,h,m)}},c=0;c<a;c++)for(var h=0;h<i;h++){var l=4*(c*i+h),p=h*r/i,d=Math.floor(p),m=Math.min(Math.ceil(p),r-1),y=c*n/a,b=Math.floor(y),g=Math.min(Math.ceil(y),n-1);f(l,0,p,d,m,y,b,g),f(l,1,p,d,m,y,b,g),f(l,2,p,d,m,y,b,g),f(l,3,p,d,m,y,b,g)}},_interpolate2D:function(e,r,n,i){for(var a=e.data,o=r.data,s=e.width,u=e.height,f=r.width,c=r.height,h=Math.max(1,Math.floor(s/f)),l=f*h,p=Math.max(1,Math.floor(u/c)),d=c*p,m=t.alloc(l*u*4),y=0;y<u;y++)for(var b=0;b<l;b++)for(var g=b*(s-1)/l,v=Math.floor(g),w=g-v,_=4*(y*s+v),x=4*(y*l+b),E=0;E<4;E++){var D=_+E,k=v>0?a[D-4]:2*a[D]-a[D+4],A=a[D],S=a[D+4],M=v<s-2?a[D+8]:2*a[D+4]-a[D];m[x+E]=i(k,A,S,M,w)}for(var F=t.alloc(l*d*4),C=0;C<d;C++)for(var B=0;B<l;B++)for(var O=C*(u-1)/d,I=Math.floor(O),T=O-I,P=4*(I*l+B),L=4*(C*l+B),N=0;N<4;N++){var j=P+N,R=I>0?m[j-4*l]:2*m[j]-m[j+4*l],z=m[j],U=m[j+4*l],G=I<u-2?m[j+8*l]:2*m[j+4*l]-m[j];F[L+N]=i(R,z,U,G,T)}var H=h*p;if(H>1)for(var Z=0;Z<c;Z++)for(var q=0;q<f;q++){for(var W=0,Y=0,V=0,X=0,J=0,K=0;K<p;K++)for(var Q=Z*p+K,$=0;$<h;$++){var tt=4*(Q*l+(q*h+$)),et=F[tt+3];et&&(W+=F[tt],Y+=F[tt+1],V+=F[tt+2],J++),X+=et}var rt=4*(Z*f+q);o[rt]=J?Math.round(W/J):0,o[rt+1]=J?Math.round(Y/J):0,o[rt+2]=J?Math.round(V/J):0,o[rt+3]=Math.round(X/H)}else r.data=F},bicubicInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var a=n-r-t+e,o=t-e-a,s=r-t,u=e;return Math.max(0,Math.min(255,a*(i*i*i)+o*(i*i)+s*i+u))}))},hermiteInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var a=e,o=.5*(r-t),s=t-2.5*e+2*r-.5*n,u=.5*(n-t)+1.5*(e-r);return Math.max(0,Math.min(255,Math.round(((u*i+s)*i+o)*i+a)))}))},bezierInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var a=1-i,o=e*a*a*a,s=3*(e+(r-t)/4)*a*a*i,u=3*(r-(n-e)/4)*a*i*i,f=r*i*i*i;return Math.max(0,Math.min(255,Math.round(o+s+u+f)))}))}};e.a=r}).call(this,r(2).Buffer)},function(t,e,r){var n=r(221),i=r(222),a=r(223),o=r(224),s=r(225),u=r(226),f=r(227);f.alea=n,f.xor128=i,f.xorwow=a,f.xorshift7=o,f.xor4096=s,f.tychei=u,t.exports=f},,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}r.d(e,\"a\",(function(){return o}));var o=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.items=[]},(e=[{key:\"push\",value:function(t){this.items.push(t)}},{key:\"pop\",value:function(){if(this.isEmpty())throw\"empty stack\";return this.items.pop()}},{key:\"peek\",value:function(){return this.items[this.items.length-1]}},{key:\"isEmpty\",value:function(){return 0===this.items.length}},{key:\"size\",value:function(){return this.items.length}},{key:\"print\",value:function(){}}])&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}()},function(t,e){e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,f=u>>1,c=-7,h=r?i-1:0,l=r?-1:1,p=t[e+h];for(h+=l,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=l,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+t[e+h],h+=l,c-=8);if(0===a)a=1-f;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=f}return(p?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,f=8*a-i-1,c=(1<<f)-1,h=c>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+h>=1?l/u:l*Math.pow(2,1-h))*u>=2&&(o++,u/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*u-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<<i|s,f+=i;f>0;t[r+p]=255&o,p+=d,o/=256,f-=8);t[r+p-d]|=128*m}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.readFile=e.writeFileSync=e.writeFile=e.read=e.open=e.close=e.stat=e.createReadStream=e.pathExists=void 0;var s=r(11);function u(){return(u=o(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.stat(e,(function(e,n){e?r(e):t(n)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=o(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.close(e,(function(e){e?r(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function c(){return(c=o(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.open(e,r,(function(e,r){e?n(e):t(r)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function h(){return(h=o(i().mark((function t(e,r,n,a,o){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,i){s.read(e,r,n,a,o,(function(e,r,n){e?i(e):t({bytesRead:r,buffer:n})}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=o(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.writeFile(e,r,(function(e){e?n(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function p(){return(p=o(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.readFile(e,(function(e,n){e?r(e):t(n)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.pathExists=s.existsSync,e.createReadStream=s.createReadStream,e.stat=function(t){return u.apply(this,arguments)},e.close=function(t){return f.apply(this,arguments)},e.open=function(t,e){return c.apply(this,arguments)},e.read=function(t,e,r,n,i){return h.apply(this,arguments)},e.writeFile=function(t,e){return l.apply(this,arguments)},e.writeFileSync=function(t,e){s.writeFileSync(t,e)},e.readFile=function(t){return p.apply(this,arguments)}},function(t,e){function r(t,e){switch(t){case 1:return e.nextUInt8();case 3:case 8:return e.nextUInt16();case 4:case 9:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error(\"Invalid format while decoding: \"+t)}}function n(t,e){var n,i,a=e.nextUInt16(),o=e.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(o),u=e.nextUInt32(),f=s*u;if(f>4&&(e=t.openWithOffset(e.nextUInt32())),2===o){var c=(n=e.nextString(u)).indexOf(\"\\0\");-1!==c&&(n=n.substr(0,c))}else if(7===o)n=e.nextBuffer(u);else if(0!==o)for(n=[],i=0;i<u;++i)n.push(r(o,e));return f<4&&e.skip(4-f),[a,n,o]}function i(t,e,r){var i,a,o=e.nextUInt16();for(a=0;a<o;++a)r((i=n(t,e))[0],i[1],i[2])}t.exports={IFD0:1,IFD1:2,GPSIFD:3,SubIFD:4,InteropIFD:5,parseTags:function(t,e){var r,n,a,o;try{r=function(t){if(\"Exif\\0\\0\"!==t.nextString(6))throw new Error(\"Invalid EXIF header\");var e=t.mark(),r=t.nextUInt16();if(18761===r)t.setBigEndian(!1);else{if(19789!==r)throw new Error(\"Invalid TIFF header\");t.setBigEndian(!0)}if(42!==t.nextUInt16())throw new Error(\"Invalid TIFF data\");return e}(t)}catch(t){return!1}var s=r.openWithOffset(t.nextUInt32()),u=this.IFD0;i(r,s,(function(t,r,i){switch(t){case 34853:a=r[0];break;case 34665:n=r[0];break;default:e(u,t,r,i)}}));var f=s.nextUInt32();if(0!==f){var c=r.openWithOffset(f);i(r,c,e.bind(null,this.IFD1))}if(a){var h=r.openWithOffset(a);i(r,h,e.bind(null,this.GPSIFD))}if(n){var l=r.openWithOffset(n),p=this.InteropIFD;i(r,l,(function(t,r,n){40965===t?o=r[0]:e(p,t,r,n)}))}if(o){var d=r.openWithOffset(o);i(r,d,e.bind(null,this.InteropIFD))}return!0}}},function(t,e,r){\"use strict\";(function(e,n){var i=r(39);t.exports=v;var a,o=r(146);v.ReadableState=g;r(31).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=r(71),f=r(51).Buffer,c=(void 0!==e?e:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var h=Object.create(r(27));h.inherits=r(24);var l=r(147),p=void 0;p=l&&l.debuglog?l.debuglog(\"stream\"):function(){};var d,m=r(148),y=r(72);h.inherits(v,u);var b=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function g(t,e){t=t||{};var n=e instanceof(a=a||r(18));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=r(73).StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function v(t){if(a=a||r(18),!(this instanceof v))return new v(t);this._readableState=new g(t,this),this.readable=!0,t&&(\"function\"==typeof t.read&&(this._read=t.read),\"function\"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,r,n,i){var a,o=t._readableState;null===e?(o.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,D(t)}(t,o)):(i||(a=function(t,e){var r;n=e,f.isBuffer(n)||n instanceof c||\"string\"==typeof e||void 0===e||t.objectMode||(r=new TypeError(\"Invalid non-string/buffer chunk\"));var n;return r}(o,e)),a?t.emit(\"error\",a):o.objectMode||e&&e.length>0?(\"string\"==typeof e||o.objectMode||Object.getPrototypeOf(e)===f.prototype||(e=function(t){return f.from(t)}(e)),n?o.endEmitted?t.emit(\"error\",new Error(\"stream.unshift() after end event\")):_(t,o,e,!0):o.ended?t.emit(\"error\",new Error(\"stream.push() after EOF\")):(o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?_(t,o,e,!1):A(t,o)):_(t,o,e,!1))):n||(o.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(o)}function _(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit(\"data\",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&D(t)),A(t,e)}Object.defineProperty(v.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=y.destroy,v.prototype._undestroy=y.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:\"string\"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=f.from(t,e),e=\"\"),r=!0),w(this,t,e,!1,r)},v.prototype.unshift=function(t){return w(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return d||(d=r(73).StringDecoder),this._readableState.decoder=new d(t),this._readableState.encoding=t,this};var x=8388608;function E(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function D(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(p(\"emitReadable\",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(k,t):k(t))}function k(t){p(\"emit readable\"),t.emit(\"readable\"),C(t)}function A(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(S,t,e))}function S(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(p(\"maybeReadMore read 0\"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function M(t){p(\"readable nexttick read 0\"),t.read(0)}function F(t,e){e.reading||(p(\"resume read 0\"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit(\"resume\"),C(t),e.flowing&&!e.reading&&t.read(0)}function C(t){var e=t._readableState;for(p(\"flow\",e.flowing);e.flowing&&null!==t.read(););}function B(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(\"\"):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=f.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var a=n.data,o=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,o),0===(t-=o)){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function O(t){var e=t._readableState;if(e.length>0)throw new Error('\"endReadable()\" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(I,e,t))}function I(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit(\"end\"))}function T(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}v.prototype.read=function(t){p(\"read\",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return p(\"read: emitReadable\",e.length,e.ended),0===e.length&&e.ended?O(this):D(this),null;if(0===(t=E(t,e))&&e.ended)return 0===e.length&&O(this),null;var n,i=e.needReadable;return p(\"need readable\",i),(0===e.length||e.length-t<e.highWaterMark)&&p(\"length less than watermark\",i=!0),e.ended||e.reading?p(\"reading or ended\",i=!1):i&&(p(\"do read\"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(r,e))),null===(n=t>0?B(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&O(this)),null!==n&&this.emit(\"data\",n),n},v.prototype._read=function(t){this.emit(\"error\",new Error(\"_read() is not implemented\"))},v.prototype.pipe=function(t,e){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t)}a.pipesCount+=1,p(\"pipe count=%d opts=%j\",a.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?c:v;function f(e,n){p(\"onunpipe\"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p(\"cleanup\"),t.removeListener(\"close\",b),t.removeListener(\"finish\",g),t.removeListener(\"drain\",h),t.removeListener(\"error\",y),t.removeListener(\"unpipe\",f),r.removeListener(\"end\",c),r.removeListener(\"end\",v),r.removeListener(\"data\",m),l=!0,!a.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function c(){p(\"onend\"),t.end()}a.endEmitted?i.nextTick(u):r.once(\"end\",u),t.on(\"unpipe\",f);var h=function(t){return function(){var e=t._readableState;p(\"pipeOnDrain\",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,\"data\")&&(e.flowing=!0,C(t))}}(r);t.on(\"drain\",h);var l=!1;var d=!1;function m(e){p(\"ondata\"),d=!1,!1!==t.write(e)||d||((1===a.pipesCount&&a.pipes===t||a.pipesCount>1&&-1!==T(a.pipes,t))&&!l&&(p(\"false write response, pause\",a.awaitDrain),a.awaitDrain++,d=!0),r.pause())}function y(e){p(\"onerror\",e),v(),t.removeListener(\"error\",y),0===s(t,\"error\")&&t.emit(\"error\",e)}function b(){t.removeListener(\"finish\",g),v()}function g(){p(\"onfinish\"),t.removeListener(\"close\",b),v()}function v(){p(\"unpipe\"),r.unpipe(t)}return r.on(\"data\",m),function(t,e,r){if(\"function\"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?o(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,\"error\",y),t.once(\"close\",b),t.once(\"finish\",g),t.emit(\"pipe\",r),a.flowing||(p(\"pipe resume\"),r.resume()),t},v.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit(\"unpipe\",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var o=T(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit(\"unpipe\",this,r)),this},v.prototype.on=function(t,e){var r=u.prototype.on.call(this,t,e);if(\"data\"===t)!1!==this._readableState.flowing&&this.resume();else if(\"readable\"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&D(this):i.nextTick(M,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(p(\"resume\"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(F,t,e))}(this,t)),this},v.prototype.pause=function(){return p(\"call pause flowing=%j\",this._readableState.flowing),!1!==this._readableState.flowing&&(p(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this},v.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on(\"end\",(function(){if(p(\"wrapped end\"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on(\"data\",(function(i){(p(\"wrapped data\"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&\"function\"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a<b.length;a++)t.on(b[a],this.emit.bind(this,b[a]));return this._read=function(e){p(\"wrapped _read\",e),n&&(n=!1,t.resume())},this},Object.defineProperty(v.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=B}).call(this,r(10),r(7))},function(t,e,r){t.exports=r(31).EventEmitter},function(t,e,r){\"use strict\";var n=r(39);function i(t,e){t.emit(\"error\",e)}t.exports={destroy:function(t,e){var r=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,r){\"use strict\";var n=r(152).Buffer,i=n.isEncoding||function(t){switch((t=\"\"+t)&&t.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function a(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return\"utf8\";for(var e;;)switch(t){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return t;default:if(e)return;t=(\"\"+t).toLowerCase(),e=!0}}(t);if(\"string\"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error(\"Unknown encoding: \"+t);return e||t}(t),this.encoding){case\"utf16le\":this.text=u,this.end=f,e=4;break;case\"utf8\":this.fillLast=s,e=4;break;case\"base64\":this.text=c,this.end=h,e=3;break;default:return this.write=l,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,\"�\";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,\"�\";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,\"�\"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString(\"utf16le\",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(\"utf16le\",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(\"utf16le\",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString(\"base64\",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(\"base64\",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+this.lastChar.toString(\"base64\",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):\"\"}e.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return\"\";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return\"\";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||\"\"},a.prototype.end=function(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+\"�\":e},a.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=o(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=o(e[n]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString(\"utf8\",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString(\"utf8\",e,n)},a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,r){\"use strict\";t.exports=o;var n=r(18),i=Object.create(r(27));function a(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit(\"error\",new Error(\"write callback called multiple times\"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);n.call(this,t),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(\"function\"==typeof t.transform&&(this._transform=t.transform),\"function\"==typeof t.flush&&(this._flush=t.flush)),this.on(\"prefinish\",s)}function s(){var t=this;\"function\"==typeof this._flush?this._flush((function(e,r){u(t,e,r)})):u(this,null,null)}function u(t,e,r){if(e)return t.emit(\"error\",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error(\"Calling transform done when ws.length != 0\");if(t._transformState.transforming)throw new Error(\"Calling transform done when still transforming\");return t.push(null)}i.inherits=r(24),i.inherits(o,n),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,r){throw new Error(\"_transform() is not implemented\")},o.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit(\"close\")}))}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=Object.prototype.toString;t.exports=function(t){var e=i.call(t),r=\"[object Arguments]\"===e;return r||(r=\"[object Array]\"!==e&&null!==t&&\"object\"===n(t)&&\"number\"==typeof t.length&&t.length>=0&&\"[object Function]\"===i.call(t.callee)),r}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}t.exports=function(){if(\"function\"!=typeof Symbol||\"function\"!=typeof Object.getOwnPropertySymbols)return!1;if(\"symbol\"===n(Symbol.iterator))return!0;var t={},e=Symbol(\"test\"),r=Object(e);if(\"string\"==typeof e)return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(e))return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if(\"function\"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if(\"function\"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(\"function\"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(t,e);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},function(t,e,r){\"use strict\";t.exports=SyntaxError},function(t,e,r){\"use strict\";var n=r(29)(\"%Object.getOwnPropertyDescriptor%\",!0);if(n)try{n([],\"length\")}catch(t){n=null}t.exports=n},function(t,e,r){\"use strict\";t.exports=function(t,e,r,n){for(var i=65535&t,a=t>>>16&65535,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{a=a+(i=i+e[n++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16}},function(t,e,r){\"use strict\";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var a=n,o=i+r;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^e[s])];return~t}},function(t,e,r){\"use strict\";(function(e,n){var i=r(14),a=r(38),o=t.exports=function(){a.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding=\"utf8\",this.writable=!0};i.inherits(o,a),o.prototype.read=function(t,r){this._reads.push({length:Math.abs(t),allowLess:t<0,func:r}),e.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit(\"drain\"))}.bind(this))},o.prototype.write=function(t,e){return this.writable?(r=n.isBuffer(t)?t:n.from(t,e||this._encoding),this._buffers.push(r),this._buffered+=r.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit(\"error\",new Error(\"Stream not writable\")),!1);var r},o.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},o.prototype.destroySoon=o.prototype.end,o.prototype._end=function(){this._reads.length>0&&this.emit(\"error\",new Error(\"Unexpected end of input\")),this.destroy()},o.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit(\"close\"))},o.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},o.prototype._processRead=function(t){this._reads.shift();for(var e=0,r=0,i=n.alloc(t.length);e<t.length;){var a=this._buffers[r++],o=Math.min(a.length,t.length-e);a.copy(i,e,0,o),e+=o,o!==a.length&&(this._buffers[--r]=a.slice(o))}r>0&&this._buffers.splice(0,r),this._buffered-=t.length,t.func.call(this,i)},o.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit(\"error\",t)}}}).call(this,r(7),r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(83),i=r(84);function a(t,e,r){var n=t*e;return 8!==r&&(n=Math.ceil(n/(8/r))),n}var o=t.exports=function(t,e){var r=t.width,i=t.height,o=t.interlace,s=t.bpp,u=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],o)for(var f=n.getImagePasses(r,i),c=0;c<f.length;c++)this._images.push({byteWidth:a(f[c].width,s,u),height:f[c].height,lineIndex:0});else this._images.push({byteWidth:a(r,s,u),height:i,lineIndex:0});this._xComparison=8===u?s:16===u?2*s:1};o.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},o.prototype._unFilterType1=function(t,e,r){for(var n=this._xComparison,i=n-1,a=0;a<r;a++){var o=t[1+a],s=a>i?e[a-n]:0;e[a]=o+s}},o.prototype._unFilterType2=function(t,e,r){for(var n=this._lastLine,i=0;i<r;i++){var a=t[1+i],o=n?n[i]:0;e[i]=a+o}},o.prototype._unFilterType3=function(t,e,r){for(var n=this._xComparison,i=n-1,a=this._lastLine,o=0;o<r;o++){var s=t[1+o],u=a?a[o]:0,f=o>i?e[o-n]:0,c=Math.floor((f+u)/2);e[o]=s+c}},o.prototype._unFilterType4=function(t,e,r){for(var n=this._xComparison,a=n-1,o=this._lastLine,s=0;s<r;s++){var u=t[1+s],f=o?o[s]:0,c=s>a?e[s-n]:0,h=s>a&&o?o[s-n]:0,l=i(c,f,h);e[s]=u+l}},o.prototype._reverseFilterLine=function(t){var r,n=t[0],i=this._images[this._imageIndex],a=i.byteWidth;if(0===n)r=t.slice(1,a+1);else switch(r=e.alloc(a),n){case 1:this._unFilterType1(t,r,a);break;case 2:this._unFilterType2(t,r,a);break;case 3:this._unFilterType3(t,r,a);break;case 4:this._unFilterType4(t,r,a);break;default:throw new Error(\"Unrecognised filter type - \"+n)}this.write(r),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=r,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var r=[],i=t%8,a=e%8,o=(t-i)/8,s=(e-a)/8,u=0;u<n.length;u++){for(var f=n[u],c=o*f.x.length,h=s*f.y.length,l=0;l<f.x.length&&f.x[l]<i;l++)c++;for(var p=0;p<f.y.length&&f.y[p]<a;p++)h++;c>0&&h>0&&r.push({width:c,height:h,index:u})}return r},e.getInterlaceIterator=function(t){return function(e,r,i){var a=e%n[i].x.length,o=(e-a)/n[i].x.length*8+n[i].x[a],s=r%n[i].y.length;return 4*o+((r-s)/n[i].y.length*8+n[i].y[s])*t*4}}},function(t,e,r){\"use strict\";t.exports=function(t,e,r){var n=t+e-r,i=Math.abs(n-t),a=Math.abs(n-e),o=Math.abs(n-r);return i<=a&&i<=o?t:a<=o?e:r}},function(t,e,r){\"use strict\";(function(e){var n=r(30),i=r(86),a=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[n.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[n.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[n.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[n.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[n.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[n.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};a.prototype.start=function(){this.read(n.PNG_SIGNATURE.length,this._parseSignature.bind(this))},a.prototype._parseSignature=function(t){for(var e=n.PNG_SIGNATURE,r=0;r<e.length;r++)if(t[r]!==e[r])return void this.error(new Error(\"Invalid file signature\"));this.read(8,this._parseChunkBegin.bind(this))},a.prototype._parseChunkBegin=function(t){for(var r=t.readUInt32BE(0),a=t.readUInt32BE(4),o=\"\",s=4;s<8;s++)o+=String.fromCharCode(t[s]);var u=Boolean(32&t[4]);if(this._hasIHDR||a===n.TYPE_IHDR){if(this._crc=new i,this._crc.write(e.from(o)),this._chunks[a])return this._chunks[a](r);u?this.read(r+4,this._skipChunk.bind(this)):this.error(new Error(\"Unsupported critical chunk type \"+o))}else this.error(new Error(\"Expected IHDR on beggining\"))},a.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},a.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},a.prototype._parseChunkEnd=function(t){var e=t.readInt32BE(0),r=this._crc.crc32();this._options.checkCRC&&r!==e?this.error(new Error(\"Crc error - \"+e+\" - \"+r)):this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))},a.prototype._handleIHDR=function(t){this.read(t,this._parseIHDR.bind(this))},a.prototype._parseIHDR=function(t){this._crc.write(t);var e=t.readUInt32BE(0),r=t.readUInt32BE(4),i=t[8],a=t[9],o=t[10],s=t[11],u=t[12];if(8===i||4===i||2===i||1===i||16===i)if(a in n.COLORTYPE_TO_BPP_MAP)if(0===o)if(0===s)if(0===u||1===u){this._colorType=a;var f=n.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:r,depth:i,interlace:Boolean(u),palette:Boolean(a&n.COLORTYPE_PALETTE),color:Boolean(a&n.COLORTYPE_COLOR),alpha:Boolean(a&n.COLORTYPE_ALPHA),bpp:f,colorType:a}),this._handleChunkEnd()}else this.error(new Error(\"Unsupported interlace method\"));else this.error(new Error(\"Unsupported filter method\"));else this.error(new Error(\"Unsupported compression method\"));else this.error(new Error(\"Unsupported color type\"));else this.error(new Error(\"Unsupported bit depth \"+i))},a.prototype._handlePLTE=function(t){this.read(t,this._parsePLTE.bind(this))},a.prototype._parsePLTE=function(t){this._crc.write(t);for(var e=Math.floor(t.length/3),r=0;r<e;r++)this._palette.push([t[3*r],t[3*r+1],t[3*r+2],255]);this.palette(this._palette),this._handleChunkEnd()},a.prototype._handleTRNS=function(t){this.simpleTransparency(),this.read(t,this._parseTRNS.bind(this))},a.prototype._parseTRNS=function(t){if(this._crc.write(t),this._colorType===n.COLORTYPE_PALETTE_COLOR){if(0===this._palette.length)return void this.error(new Error(\"Transparency chunk must be after palette\"));if(t.length>this._palette.length)return void this.error(new Error(\"More transparent colors than palette size\"));for(var e=0;e<t.length;e++)this._palette[e][3]=t[e];this.palette(this._palette)}this._colorType===n.COLORTYPE_GRAYSCALE&&this.transColor([t.readUInt16BE(0)]),this._colorType===n.COLORTYPE_COLOR&&this.transColor([t.readUInt16BE(0),t.readUInt16BE(2),t.readUInt16BE(4)]),this._handleChunkEnd()},a.prototype._handleGAMA=function(t){this.read(t,this._parseGAMA.bind(this))},a.prototype._parseGAMA=function(t){this._crc.write(t),this.gamma(t.readUInt32BE(0)/n.GAMMA_DIVISION),this._handleChunkEnd()},a.prototype._handleIDAT=function(t){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-t,this._parseIDAT.bind(this,t))},a.prototype._parseIDAT=function(t,e){if(this._crc.write(e),this._colorType===n.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw new Error(\"Expected palette not found\");this.inflateData(e);var r=t-e.length;r>0?this._handleIDAT(r):this._handleChunkEnd()},a.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},a.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=[];!function(){for(var t=0;t<256;t++){for(var e=t,r=0;r<8;r++)1&e?e=3988292384^e>>>1:e>>>=1;n[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e<t.length;e++)this._crc=n[255&(this._crc^t[e])]^this._crc>>>8;return!0},i.prototype.crc32=function(){return~this._crc},i.crc32=function(t){for(var e=-1,r=0;r<t.length;r++)e=n[255&(e^t[r])]^e>>>8;return~e}},function(t,e,r){\"use strict\";(function(t){var n=r(83),i=[function(){},function(t,e,r,n){if(n===e.length)throw new Error(\"Ran out of data\");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=255},function(t,e,r,n){if(n+1>=e.length)throw new Error(\"Ran out of data\");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=e[n+1]},function(t,e,r,n){if(n+2>=e.length)throw new Error(\"Ran out of data\");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=255},function(t,e,r,n){if(n+3>=e.length)throw new Error(\"Ran out of data\");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=e[n+3]}],a=[function(){},function(t,e,r,n){var i=e[0];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=n},function(t,e,r){var n=e[0];t[r]=n,t[r+1]=n,t[r+2]=n,t[r+3]=e[1]},function(t,e,r,n){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=n},function(t,e,r){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=e[3]}];function o(t,e,r,n,a,o){for(var s=t.width,u=t.height,f=t.index,c=0;c<u;c++)for(var h=0;h<s;h++){var l=r(h,c,f);i[n](e,a,l,o),o+=n}return o}function s(t,e,r,n,i,o){for(var s=t.width,u=t.height,f=t.index,c=0;c<u;c++){for(var h=0;h<s;h++){var l=i.get(n),p=r(h,c,f);a[n](e,l,p,o)}i.resetAfterLine()}}e.dataToBitMap=function(e,r){var i,a,u=r.width,f=r.height,c=r.depth,h=r.bpp,l=r.interlace;8!==c&&(i=function(t,e){var r=[],n=0;function i(){if(n===t.length)throw new Error(\"Ran out of data\");var i,a,o,s,u,f,c,h,l=t[n];switch(n++,e){default:throw new Error(\"unrecognised depth\");case 16:c=t[n],n++,r.push((l<<8)+c);break;case 4:c=15&l,h=l>>4,r.push(h,c);break;case 2:u=3&l,f=l>>2&3,c=l>>4&3,h=l>>6&3,r.push(h,c,f,u);break;case 1:i=1&l,a=l>>1&1,o=l>>2&1,s=l>>3&1,u=l>>4&1,f=l>>5&1,c=l>>6&1,h=l>>7&1,r.push(h,c,f,u,s,o,a,i)}}return{get:function(t){for(;r.length<t;)i();var e=r.slice(0,t);return r=r.slice(t),e},resetAfterLine:function(){r.length=0},end:function(){if(n!==t.length)throw new Error(\"extra data found\")}}}(e,c)),a=c<=8?t.alloc(u*f*4):new Uint16Array(u*f*4);var p,d,m=Math.pow(2,c)-1,y=0;if(l)p=n.getImagePasses(u,f),d=n.getInterlaceIterator(u,f);else{var b=0;d=function(){var t=b;return b+=4,t},p=[{width:u,height:f}]}for(var g=0;g<p.length;g++)8===c?y=o(p[g],a,d,h,e,y):s(p[g],a,d,h,i,m);if(8===c){if(y!==e.length)throw new Error(\"extra data found\")}else i.end();return a}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){t.exports=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=r.depth,a=r.width,o=r.height,s=r.colorType,u=r.transColor,f=r.palette,c=t;return 3===s?function(t,e,r,n,i){for(var a=0,o=0;o<n;o++)for(var s=0;s<r;s++){var u=i[t[a]];if(!u)throw new Error(\"index \"+t[a]+\" not in palette\");for(var f=0;f<4;f++)e[a+f]=u[f];a+=4}}(t,c,a,o,f):(u&&function(t,e,r,n,i){for(var a=0,o=0;o<n;o++)for(var s=0;s<r;s++){var u=!1;if(1===i.length?i[0]===t[a]&&(u=!0):i[0]===t[a]&&i[1]===t[a+1]&&i[2]===t[a+2]&&(u=!0),u)for(var f=0;f<4;f++)e[a+f]=0;a+=4}}(t,c,a,o,u),8===i||n||(16===i&&(c=e.alloc(a*o*4)),function(t,e,r,n,i){for(var a=Math.pow(2,i)-1,o=0,s=0;s<n;s++)for(var u=0;u<r;u++){for(var f=0;f<4;f++)e[o+f]=Math.floor(255*t[o+f]/a+.5);o+=4}}(t,c,a,o,i))),c}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(30),i=r(86),a=r(188),o=r(189),s=r(28),u=t.exports=function(t){if(this._options=t,t.deflateChunkSize=t.deflateChunkSize||32768,t.deflateLevel=null!=t.deflateLevel?t.deflateLevel:9,t.deflateStrategy=null!=t.deflateStrategy?t.deflateStrategy:3,t.inputHasAlpha=null==t.inputHasAlpha||t.inputHasAlpha,t.deflateFactory=t.deflateFactory||s.createDeflate,t.bitDepth=t.bitDepth||8,t.colorType=\"number\"==typeof t.colorType?t.colorType:n.COLORTYPE_COLOR_ALPHA,t.inputColorType=\"number\"==typeof t.inputColorType?t.inputColorType:n.COLORTYPE_COLOR_ALPHA,-1===[n.COLORTYPE_GRAYSCALE,n.COLORTYPE_COLOR,n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(t.colorType))throw new Error(\"option color type:\"+t.colorType+\" is not supported at present\");if(-1===[n.COLORTYPE_GRAYSCALE,n.COLORTYPE_COLOR,n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(t.inputColorType))throw new Error(\"option input color type:\"+t.inputColorType+\" is not supported at present\");if(8!==t.bitDepth&&16!==t.bitDepth)throw new Error(\"option bit depth:\"+t.bitDepth+\" is not supported at present\")};u.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},u.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},u.prototype.filterData=function(t,e,r){var i=a(t,e,r,this._options),s=n.COLORTYPE_TO_BPP_MAP[this._options.colorType];return o(i,e,r,this._options,s)},u.prototype._packChunk=function(t,r){var n=r?r.length:0,a=e.alloc(n+12);return a.writeUInt32BE(n,0),a.writeUInt32BE(t,4),r&&r.copy(a,8),a.writeInt32BE(i.crc32(a.slice(4,a.length-4)),a.length-4),a},u.prototype.packGAMA=function(t){var r=e.alloc(4);return r.writeUInt32BE(Math.floor(t*n.GAMMA_DIVISION),0),this._packChunk(n.TYPE_gAMA,r)},u.prototype.packIHDR=function(t,r){var i=e.alloc(13);return i.writeUInt32BE(t,0),i.writeUInt32BE(r,4),i[8]=this._options.bitDepth,i[9]=this._options.colorType,i[10]=0,i[11]=0,i[12]=0,this._packChunk(n.TYPE_IHDR,i)},u.prototype.packIDAT=function(t){return this._packChunk(n.TYPE_IDAT,t)},u.prototype.packIEND=function(){return this._packChunk(n.TYPE_IEND,null)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=t.exports=function(t){this._buffer=t,this._reads=[]};n.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})},n.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}if(this._reads.length>0)throw new Error(\"There are some read requests waitng on finished stream\");if(this._buffer.length>0)throw new Error(\"unrecognised content at end of stream\")}},function(t,e,r){\"use strict\";t.exports=function(t,e,r,n){for(var i=65535&t,a=t>>>16&65535,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{a=a+(i=i+e[n++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16}},function(t,e,r){\"use strict\";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var a=n,o=i+r;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^e[s])];return~t}},function(t,e,r){\"use strict\";var n=r(15),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){a=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&a||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r=\"\",o=0;o<e;o++)r+=String.fromCharCode(t[o]);return r}o[254]=o[254]=1,e.string2buf=function(t){var e,r,i,a,o,s=t.length,u=0;for(a=0;a<s;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),u+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(u),o=0,a=0;o<u;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,a,s=e||t.length,f=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)f[n++]=i;else if((a=o[i])>4)f[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&r<s;)i=i<<6|63&t[r++],a--;a>1?f[n++]=65533:i<65536?f[n++]=i:(i-=65536,f[n++]=55296|i>>10&1023,f[n++]=56320|1023&i)}return u(f,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+o[t[r]]>e?r:e}},function(t,e,r){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}var o=r(59),s=r(42),u=s.Gif,f=s.GifError;function c(){var t=r(97);return c=function(){return t},t}var h=r(58).GifFrame,l=function(){return e=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this._transparentRGB=null,\"number\"==typeof e.transparentRGB&&0!==e.transparentRGB&&(this._transparentRGBA=256*e.transparentRGB),this._testInitialBufferSize=0},r=[{key:\"decodeGif\",value:function(t){try{var e;try{e=new o.GifReader(t)}catch(t){throw new f(t)}for(var r=e.numFrames(),n=[],i={width:e.width,height:e.height,loops:e.loopCount(),usesTransparency:!1},a=0;a<r;++a){var s=this._decodeFrame(e,a,i.usesTransparency);n.push(s.frame),s.usesTransparency&&(i.usesTransparency=!0)}return Promise.resolve(new u(t,n,i))}catch(t){return Promise.reject(t)}}},{key:\"encodeGif\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{if(null===t||0===t.length)throw new f(\"there are no frames\");var r=c().getMaxDimensions(t);return(e=Object.assign({},e)).width=r.maxWidth,e.height=r.maxHeight,void 0===e.loops&&(e.loops=0),e.colorScope=e.colorScope||u.GlobalColorsPreferred,Promise.resolve(this._encodeGif(t,e))}catch(t){return Promise.reject(t)}}},{key:\"_decodeFrame\",value:function(e,r,n){var i,a;try{if(i=e.frameInfo(r),a=new t(e.width*e.height*4),e.decodeAndBlitFrameRGBA(r,a),i.width!==e.width||i.height!==e.height){if(i.y&&(a=a.slice(i.y*e.width*4)),e.width>i.width)for(var o=0;o<i.height;++o)a.copy(a,o*i.width*4,4*(i.x+o*e.width),4*(i.x+o*e.width)+4*i.width);a=a.slice(0,i.width*i.height*4)}}catch(t){throw new f(t)}var s=!1;if(null===this._transparentRGBA){if(!n)for(var u=3;u<a.length;u+=4)0===a[u]&&(s=!0,u=a.length)}else for(var c=3;c<a.length;c+=4)0===a[c]&&(a.writeUInt32BE(this._transparentRGBA,c-3),s=!0);return{frame:new h(i.width,i.height,a,{xOffset:i.x,yOffset:i.y,disposalMethod:i.disposal,interlaced:i.interlaced,delayCentisecs:i.delay}),usesTransparency:s}}},{key:\"_encodeGif\",value:function(e,r){var n;if(r.colorScope===u.LocalColorsOnly)n=c().getColorInfo(e,0);else if(!(n=c().getColorInfo(e,256)).colors){if(r.colorScope===u.GlobalColorsOnly)throw new f(\"Too many color indexes for global color table\");r.colorScope=u.LocalColorsOnly}r.usesTransparency=n.usesTransparency;var i=n.palettes;return r.colorScope===u.LocalColorsOnly?function(e,r,n,i){var a,s={loop:r.loops},c=new t(n);try{a=new o.GifWriter(c,r.width,r.height,s)}catch(t){throw new f(t)}for(var h=0;h<e.length;++h)c=g(a,h,e[h],i[h],!0);return new u(c.slice(0,a.end()),e,r)}(e,r,2e3,i):function(e,r,n,i){var a={colors:i.colors.slice(),usesTransparency:i.usesTransparency};m(a);var s,c={palette:a.colors,loop:r.loops},h=new t(n);try{s=new o.GifWriter(h,r.width,r.height,c)}catch(t){throw new f(t)}for(var l=0;l<e.length;++l)h=g(s,l,e[l],i,!1);return new u(h.slice(0,s.end()),e,r)}(e,r,2e3,n)}},{key:\"_getSizeEstimateGlobal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;var r=968,n=b(t);return e.forEach((function(t){r+=y(t,n)})),r}},{key:\"_getSizeEstimateLocal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;for(var r=200,n=0;n<e.length;++n){var i=b(t[n]);r+=y(e[n],i)}return r}}],r&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,n}();function p(t,e){var r=t.indexOf(e);return-1===r?null:r}function d(t,e){for(var r,n=0,i=t.length-1;n<=i;)if(t[r=Math.floor((n+i)/2)]>e)i=r-1;else{if(!(t[r]<e))return r;n=r+1}return null}function m(t){var e=t.colors;t.usesTransparency&&e.push(0);for(var r=e.length,n=2;r>n;)n<<=1;e.length=n,e.fill(0,r)}function y(t,e){var r=t.bitmap.width*t.bitmap.height;return r=Math.ceil(r*e/8),100+(r+=Math.ceil(r/255))+768}function b(t){var e=t.indexCount,r=0;for(--e;e;)++r,e>>=1;return r>0?r:1}function g(e,r,n,i,a){if(n.interlaced)throw new f(\"writing interlaced GIFs is not supported\");var o=function(e,r,n){for(var i=n.colors,a=i.length<=8?p:d,o=r.bitmap.data,s=new t(o.length/4),u=i.length,c=0,h=0;c<o.length;){if(0!==o[c+3]){var l=o.readUInt32BE(c,!0)>>8&16777215;s[h]=a(i,l)}else s[h]=u;c+=4,++h}if(n.usesTransparency){if(256===u)throw new f(\"Frame \".concat(e,\" already has 256 colors\")+\"and so can't use transparency\")}else u=null;return{buffer:s,transparentIndex:u}}(r,n,i),s={delay:n.delayCentisecs,disposal:n.disposalMethod,transparent:o.transparentIndex};a&&(m(i),s.palette=i.colors);try{for(var u,c=e.getOutputBuffer(),h=e.getOutputBufferPosition(),l=!0;l;)if(u=e.addFrame(n.xOffset,n.yOffset,n.bitmap.width,n.bitmap.height,o.buffer,s),l=!1,u>=c.length-1){var y=new t(1.5*c.length);c.copy(y),e.setOutputBuffer(y),e.setOutputBufferPosition(h),c=y,l=!0}return c}catch(t){throw new f(t)}}e.GifCodec=l}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(11),i=r(206),a=r(57),o=r(58).GifFrame,s=r(42).GifError,u=r(96).GifCodec,f=[\".jpg\",\".jpeg\",\".png\",\".bmp\"],c=new u;function h(t,e,r,n,a){var o=Array.isArray(t)?t:[t];if(a){if([\"FloydSteinberg\",\"FalseFloydSteinberg\",\"Stucki\",\"Atkinson\",\"Jarvis\",\"Burkes\",\"Sierra\",\"TwoSierra\",\"SierraLite\"].indexOf(a.ditherAlgorithm)<0)throw new Error(\"Invalid ditherAlgorithm '\".concat(a.ditherAlgorithm,\"'\"));void 0===a.serpentine&&(a.serpentine=!0),void 0===a.minimumColorDistanceToDither&&(a.minimumColorDistanceToDither=0),void 0===a.calculateErrorLikeGIMP&&(a.calculateErrorLikeGIMP=!1)}var s,u=new i.distance.Euclidean,f=new i.palette[e](u,r,n);s=a?new i.image.ErrorDiffusionArray(u,i.image.ErrorDiffusionArrayKernel[a.ditherAlgorithm],a.serpentine,a.minimumColorDistanceToDither,a.calculateErrorLikeGIMP):new i.image.NearestColor(u);var c=[];o.forEach((function(t){for(var e=t.bitmap.data,r=new ArrayBuffer(e.length),n=new Uint32Array(r),a=0,o=0;a<e.length;a+=4,++o)n[o]=e.readUInt32LE(a,!0);var s=i.utils.PointContainer.fromUint32Array(n,t.bitmap.width,t.bitmap.height);f.sample(s),c.push(s)}));for(var h=f.quantizeSync(),l=0;l<o.length;++l)for(var p=o[l].bitmap.data,d=s.quantizeSync(c[l],h).toUint32Array(),m=0,y=0;m<p.length;m+=4,++y)p.writeUInt32LE(d[y],m)}e.cloneFrames=function(t){var e=[];return t.forEach((function(t){e.push(new o(t))})),e},e.getColorInfo=function(t,e){for(var r=!1,n=[],i=0;i<t.length;++i){var a=t[i].getPalette();if(a.usesTransparency&&(r=!0),a.indexCount>256)throw new s(\"Frame \".concat(i,\" uses more than 256 color indexes\"));n.push(a)}if(0===e)return{usesTransparency:r,palettes:n};var o=new Set;n.forEach((function(t){t.colors.forEach((function(t){o.add(t)}))}));var u=o.size;if(r&&++u,e&&u>e)return{usesTransparency:r,palettes:n};for(var f=new Array(o.size),c=o.values(),h=0;h<f.length;++h)f[h]=c.next().value;return f.sort((function(t,e){return t-e})),{colors:f,indexCount:u,usesTransparency:r,palettes:n}},e.copyAsJimp=function(t,r){return e.shareAsJimp(t,new a(r))},e.getMaxDimensions=function(t){var e=0,r=0;return t.forEach((function(t){var n=t.xOffset+t.bitmap.width;n>e&&(e=n);var i=t.yOffset+t.bitmap.height;i>r&&(r=i)})),{maxWidth:e,maxHeight:r}},e.quantizeDekker=function(t,e,r){h(t,\"NeuQuantFloat\",e=e||256,0,r)},e.quantizeSorokin=function(t,e,r,n){var i;switch(e=e||256,r=r||\"min-pop\"){case\"min-pop\":i=2;break;case\"top-pop\":i=1;break;default:throw new Error(\"Invalid quantizeSorokin histogram '\".concat(r,\"'\"))}h(t,\"RGBQuant\",e,i,n)},e.quantizeWu=function(t,e,r,n){if(e=e||256,(r=r||5)<1||r>8)throw new Error(\"Invalid quantization quality\");h(t,\"WuQuant\",e,r,n)},e.read=function(e,r){return r=r||c,t.isBuffer(e)?r.decodeGif(e):(i=e,new Promise((function(t,e){n.readFile(i,(function(r,n){return r?e(r):t(n)}))}))).then((function(t){return r.decodeGif(t)}));var i},e.shareAsJimp=function(t,e){var r=new t(e.bitmap.width,e.bitmap.height,0);return r.bitmap.data=e.bitmap.data,r},e.write=function(t,e,r,i){i=i||c;var a=t.match(/\\.[a-zA-Z]+$/);if(null!==a&&f.includes(a[0].toLowerCase()))throw new Error(\"GIF '\".concat(t,\"' has an unexpected suffix\"));return i.encodeGif(e,r).then((function(e){return function(t,e){return new Promise((function(r,i){n.writeFile(t,e,(function(t){return t?i(t):r()}))}))}(t,e.buffer).then((function(){return e}))}))}}).call(this,r(2).Buffer)},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t};var r=Object.prototype.hasOwnProperty},function(t,e,r){function n(t,e,r){this._queue=[],this._priorities=[],this._sorting=\"desc\",this._init(t,e,r)}n.prototype.insert=function(t,e){for(var r=this._queue.length,n=r;n--;){var i=this._priorities[n];\"desc\"===this._sorting?e>i&&(r=n):e<i&&(r=n)}this._insertAt(t,e,r)},n.prototype.remove=function(t){for(var e=this._queue.length;e--;){if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}}},n.prototype.forEach=function(t){this._queue.forEach(t)},n.prototype.getElements=function(){return this._queue},n.prototype.getElementPriority=function(t){return this._priorities[t]},n.prototype.getPriorities=function(){return this._priorities},n.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,r=this._queue.length;e<r;e++)t.push([this._queue[e],this._priorities[e]]);return t},n.prototype._init=function(t,e,r){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error(\"Arrays must have the same length\");for(var n=0;n<t.length;n++)this.insert(t[n],e[n])}r&&(this._sorting=r)},n.prototype._insertAt=function(t,e,r){this._queue.length===r?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(r,0,t),this._priorities.splice(r,0,e))},t.exports&&(t.exports=n)},function(t,e){function r(e){return t.exports=r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){\"use strict\";function n(t,e,r,a,o,s){for(var u,f,c,h,l=Math.max(e-1,0),p=Math.max(r-1,0),d=Math.min(e+1,a-1),m=Math.min(r+1,o-1),y=4*(r*a+e),b=0,g=0,v=0,w=0,_=0,x=l;x<=d;x++)for(var E=p;E<=m;E++)if(x!==e||E!==r){var D=i(t,t,y,4*(E*a+x),!0);if(0===D?b++:D<0?v++:D>0&&g++,b>2)return!1;s&&(D<w&&(w=D,u=x,f=E),D>_&&(_=D,c=x,h=E))}return!s||0!==v&&0!==g&&(!n(t,u,f,a,o)&&!n(s,u,f,a,o)||!n(t,c,h,a,o)&&!n(s,c,h,a,o))}function i(t,e,r,n,i){var f=t[r+3]/255,c=e[n+3]/255,h=u(t[r+0],f),l=u(t[r+1],f),p=u(t[r+2],f),d=u(e[n+0],c),m=u(e[n+1],c),y=u(e[n+2],c),b=a(h,l,p)-a(d,m,y);if(i)return b;var g=o(h,l,p)-o(d,m,y),v=s(h,l,p)-s(d,m,y);return.5053*b*b+.299*g*g+.1957*v*v}function a(t,e,r){return.29889531*t+.58662247*e+.11448223*r}function o(t,e,r){return.59597799*t-.2741761*e-.32180189*r}function s(t,e,r){return.21147017*t-.52261711*e+.31114694*r}function u(t,e){return 255+(t-255)*e}function f(t,e,r,n,i){t[e+0]=r,t[e+1]=n,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,r,o,s,c){c||(c={});for(var h=void 0===c.threshold?.1:c.threshold,l=35215*h*h,p=0,d=0;d<s;d++)for(var m=0;m<o;m++){var y=4*(d*o+m);if(i(t,e,y,y)>l)c.includeAA||!n(t,m,d,o,s,e)&&!n(e,m,d,o,s,t)?(r&&f(r,y,255,0,0),p++):r&&f(r,y,255,255,0);else if(r){var b=u((w=void 0,_=void 0,x=void 0,E=void 0,w=(g=t)[(v=y)+3]/255,_=u(g[v+0],w),x=u(g[v+1],w),E=u(g[v+2],w),a(_,x,E)),.1);f(r,y,b,b,b)}}var g,v,w,_,x,E;return p}},function(t,e,r){\"use strict\";r(123);var n=[\"url\"];function i(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}e.a=function(t,e){var r=t.url,a=i(t,n);fetch(r,a).then((function(t){if(t.ok)return t.arrayBuffer().catch((function(t){throw new Error(\"Response is not a buffer for url \".concat(r,\". Error: \").concat(t.message))}));throw new Error(\"HTTP Status \".concat(t.status,\" for url \").concat(r))})).then((function(t){return e(null,t)})).catch((function(t){return e(t)}))}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}var o=r(125),s=r(131);function u(){var t;return t=i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.fromFile(e);case 2:return r=t.sent,t.prev=3,t.next=6,s.fromTokenizer(r);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])})),u=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))},u.apply(this,arguments)}var f={fromFile:function(t){return u.apply(this,arguments)}};Object.assign(f,s),Object.defineProperty(f,\"extensions\",{get:function(){return s.extensions}}),Object.defineProperty(f,\"mimeTypes\",{get:function(){return s.mimeTypes}}),t.exports=f},function(t,e,r){var n=r(135);t.exports={create:function(t,e){if(t instanceof(e=e||(0,eval)(\"this\")).ArrayBuffer){var i=r(140);return new n(new i(t,0,t.byteLength,!0,e))}var a=r(141);return new n(new a(t,0,t.length,!0))}}},function(t,e,r){\"use strict\";(function(t){var n=r(36),i=r.n(n);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function o(t,e,r){var n;return n=function(t,e){if(\"object\"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==a(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=\"image/tiff\";e.a=function(){return{mime:o({},s,[\"tiff\",\"tif\"]),constants:{MIME_TIFF:s},decoders:o({},s,(function(e){var r=i.a.decode(e),n=r[0];r.forEach((function(t){i.a.decodeImage(e,t)}));var a=i.a.toRGBA8(n);return{data:t.from(a),width:n.t256[0],height:n.t257[0]}})),encoders:o({},s,(function(e){var r=i.a.encodeImage(e.bitmap.data,e.bitmap.width,e.bitmap.height);return t.from(r)}))}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(59),i=r.n(n),a=r(37);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function s(t,e,r){var n;return n=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=\"image/gif\";e.a=function(){return{mime:s({},u,[\"gif\"]),constants:{MIME_GIF:u},decoders:s({},u,(function(e){var r=new i.a.GifReader(e),n=t.alloc(r.width*r.height*4);return r.decodeAndBlitFrameRGBA(0,n),{data:n,width:r.width,height:r.height}})),encoders:s({},u,(function(t){var e=new a.BitmapImage(t.bitmap);a.GifUtil.quantizeDekker(e,256);var r=new a.GifFrame(e);return(new a.GifCodec).encodeGif([r],{}).then((function(t){return t.buffer}))}))}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(32),i=r.n(n),a=r(0);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e,r,n){for(var i=[0,0,0],a=(e.length-1)/2,o=0;o<e.length;o+=1)for(var s=0;s<e[o].length;s+=1){var u=t.getPixelIndex(r+o-a,n+s-a);i[0]+=t.bitmap.data[u]*e[o][s],i[1]+=t.bitmap.data[u+1]*e[o][s],i[2]+=t.bitmap.data[u+2]*e[o][s]}return i}var f=function(t){return null!=t};function c(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){var n=parseInt(.2126*this.bitmap.data[r]+.7152*this.bitmap.data[r+1]+.0722*this.bitmap.data[r+2],10);this.bitmap.data[r]=n,this.bitmap.data[r+1]=n,this.bitmap.data[r+2]=n})),Object(a.a)(t)&&t.call(this,null,this),this}function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(r/100)+t.r,g:(e.g-t.g)*(r/100)+t.g,b:(e.b-t.b)*(r/100)+t.b}}function l(t,e){var r=this;return t&&Array.isArray(t)?(t=t.map((function(t){return\"xor\"!==t.apply&&\"mix\"!==t.apply||(t.params[0]=i()(t.params[0]).toRgb()),t})),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(n,s,u){var f={r:r.bitmap.data[u],g:r.bitmap.data[u+1],b:r.bitmap.data[u+2]},c=function(t,e){return r.constructor.limit255(f[t]+e)};t.forEach((function(t){if(\"mix\"===t.apply)f=h(f,t.params[0],t.params[1]);else if(\"tint\"===t.apply)f=h(f,{r:255,g:255,b:255},t.params[0]);else if(\"shade\"===t.apply)f=h(f,{r:0,g:0,b:0},t.params[0]);else if(\"xor\"===t.apply)f={r:f.r^t.params[0].r,g:f.g^t.params[0].g,b:f.b^t.params[0].b};else if(\"red\"===t.apply)f.r=c(\"r\",t.params[0]);else if(\"green\"===t.apply)f.g=c(\"g\",t.params[0]);else if(\"blue\"===t.apply)f.b=c(\"b\",t.params[0]);else{var n;if(\"hue\"===t.apply&&(t.apply=\"spin\"),!(f=i()(f))[t.apply])return a.d.call(r,\"action \"+t.apply+\" not supported\",e);f=(n=f)[t.apply].apply(n,o(t.params)).toRgb()}})),r.bitmap.data[u]=f.r,r.bitmap.data[u+1]=f.g,r.bitmap.data[u+2]=f.b})),Object(a.a)(e)&&e.call(this,null,this),this):a.d.call(this,\"actions must be an array\",e)}Object.freeze({LIGHTEN:\"lighten\",BRIGHTEN:\"brighten\",DARKEN:\"darken\",DESATURATE:\"desaturate\",SATURATE:\"saturate\",GREYSCALE:\"greyscale\",SPIN:\"spin\",HUE:\"hue\",MIX:\"mix\",TINT:\"tint\",SHADE:\"shade\",XOR:\"xor\",RED:\"red\",GREEN:\"green\",BLUE:\"blue\"});e.a=function(){return{brightness:function(t,e){return\"number\"!=typeof t?a.d.call(this,\"val must be numbers\",e):t<-1||t>1?a.d.call(this,\"val must be a number between -1 and +1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t<0?(this.bitmap.data[n]*=1+t,this.bitmap.data[n+1]*=1+t,this.bitmap.data[n+2]*=1+t):(this.bitmap.data[n]+=(255-this.bitmap.data[n])*t,this.bitmap.data[n+1]+=(255-this.bitmap.data[n+1])*t,this.bitmap.data[n+2]+=(255-this.bitmap.data[n+2])*t)})),Object(a.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if(\"number\"!=typeof t)return a.d.call(this,\"val must be numbers\",e);if(t<-1||t>1)return a.d.call(this,\"val must be a number between -1 and +1\",e);var r=(t+1)/(1-t);function n(t){return(t=Math.floor(r*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=n(this.bitmap.data[r]),this.bitmap.data[r+1]=n(this.bitmap.data[r+1]),this.bitmap.data[r+2]=n(this.bitmap.data[r+2])})),Object(a.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return\"number\"!=typeof t?a.d.call(this,\"n must be numbers\",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){this.bitmap.data[n]=Math.floor(this.bitmap.data[n]/255*(t-1))/(t-1)*255,this.bitmap.data[n+1]=Math.floor(this.bitmap.data[n+1]/255*(t-1))/(t-1)*255,this.bitmap.data[n+2]=Math.floor(this.bitmap.data[n+2]/255*(t-1))/(t-1)*255})),Object(a.a)(e)&&e.call(this,null,this),this)},greyscale:c,grayscale:c,opacity:function(t,e){return\"number\"!=typeof t?a.d.call(this,\"f must be a number\",e):t<0||t>1?a.d.call(this,\"f must be a number from 0 to 1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){var i=this.bitmap.data[n+3]*t;this.bitmap.data[n+3]=i})),Object(a.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){var n=this.bitmap.data[r],i=this.bitmap.data[r+1],a=this.bitmap.data[r+2];a=.272*(n=.393*n+.769*i+.189*a)+.534*(i=.349*n+.686*i+.168*a)+.131*a,this.bitmap.data[r]=n<255?n:255,this.bitmap.data[r+1]=i<255?i:255,this.bitmap.data[r+2]=a<255?a:255})),Object(a.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return\"number\"!=typeof t?a.d.call(this,\"f must be a number\",e):t<0||t>1?a.d.call(this,\"f must be a number from 0 to 1\",e):(this.opacity(1-t),Object(a.a)(e)&&e.call(this,null,this),this)},convolution:function(e,r,n){\"function\"==typeof r&&void 0===n&&(n=r,r=null),r||(r=this.constructor.EDGE_EXTEND);var i,o,s,u,f,c,h,l,p,d,m=t.from(this.bitmap.data),y=e.length,b=e[0].length,g=Math.floor(y/2),v=Math.floor(b/2),w=-g,_=-v;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,n,a){u=0,s=0,o=0;for(var y=w;y<=g;y++)for(var b=_;b<=v;b++)l=t+b,p=n+y,i=e[y+g][b+v],-1===(d=this.getPixelIndex(l,p,r))?(h=0,c=0,f=0):(f=this.bitmap.data[d+0],c=this.bitmap.data[d+1],h=this.bitmap.data[d+2]),o+=i*f,s+=i*c,u+=i*h;o<0&&(o=0),s<0&&(s=0),u<0&&(u=0),o>255&&(o=255),s>255&&(s=255),u>255&&(u=255),m[a+0]=o,m[a+1]=s,m[a+2]=u})),this.bitmap.data=m,Object(a.a)(n)&&n.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r+3]=255})),Object(a.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,r,n,i,o){if(\"function\"==typeof e)o=e,i=null,n=null,r=null,e=null;else{if(\"number\"!=typeof t)return a.d.call(this,\"size must be a number\",o);if(f(e)&&\"number\"!=typeof e)return a.d.call(this,\"x must be a number\",o);if(f(r)&&\"number\"!=typeof r)return a.d.call(this,\"y must be a number\",o);if(f(n)&&\"number\"!=typeof n)return a.d.call(this,\"w must be a number\",o);if(f(i)&&\"number\"!=typeof i)return a.d.call(this,\"h must be a number\",o)}var s=[[1/16,2/16,1/16],[2/16,.25,2/16],[1/16,2/16,1/16]];e=e||0,r=r||0,n=f(n)?n:this.bitmap.width-e,i=f(i)?i:this.bitmap.height-r;var c=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){e=t*Math.floor(e/t),r=t*Math.floor(r/t);var i=u(c,s,e,r);this.bitmap.data[n]=i[0],this.bitmap.data[n+1]=i[1],this.bitmap.data[n+2]=i[2]})),Object(a.a)(o)&&o.call(this,null,this),this},convolute:function(t,e,r,n,i,o){if(!Array.isArray(t))return a.d.call(this,\"the kernel must be an array\",o);if(\"function\"==typeof e)o=e,e=null,r=null,n=null,i=null;else{if(f(e)&&\"number\"!=typeof e)return a.d.call(this,\"x must be a number\",o);if(f(r)&&\"number\"!=typeof r)return a.d.call(this,\"y must be a number\",o);if(f(n)&&\"number\"!=typeof n)return a.d.call(this,\"w must be a number\",o);if(f(i)&&\"number\"!=typeof i)return a.d.call(this,\"h must be a number\",o)}e=f(e)?e:0,r=f(r)?r:0,n=f(n)?n:this.bitmap.width-e,i=f(i)?i:this.bitmap.height-r;var s=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){var i=u(s,t,e,r);this.bitmap.data[n]=this.constructor.limit255(i[0]),this.bitmap.data[n+1]=this.constructor.limit255(i[1]),this.bitmap.data[n+2]=this.constructor.limit255(i[2])})),Object(a.a)(o)&&o.call(this,null,this),this},color:l,colour:l}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){r.d(e,\"a\",(function(){return a}));var n=r(0);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function a(e){return e(\"crop\",(function(e,r,i,a,o){if(\"number\"!=typeof e||\"number\"!=typeof r)return n.d.call(this,\"x and y must be numbers\",o);if(\"number\"!=typeof i||\"number\"!=typeof a)return n.d.call(this,\"w and h must be numbers\",o);if(e=Math.round(e),r=Math.round(r),i=Math.round(i),a=Math.round(a),0===e&&i===this.bitmap.width){var s=i*r+e<<2,u=s+(a*i<<2);this.bitmap.data=this.bitmap.data.slice(s,u)}else{var f=t.allocUnsafe(i*a*4),c=0;this.scanQuiet(e,r,i,a,(function(t,e,r){var n=this.bitmap.data.readUInt32BE(r,!0);f.writeUInt32BE(n,c,!0),c+=4})),this.bitmap.data=f}return this.bitmap.width=i,this.bitmap.height=a,Object(n.a)(o)&&o.call(this,null,this),this})),{class:{autocrop:function(){for(var t,e=this.bitmap.width,r=this.bitmap.height,a=0,o=2e-4,s=!0,u=!1,f={north:!1,south:!1,east:!1,west:!1},c=arguments.length,h=new Array(c),l=0;l<c;l++)h[l]=arguments[l];for(var p=0,d=h.length;p<d;p++)if(\"number\"==typeof h[p]&&(o=h[p]),\"boolean\"==typeof h[p]&&(s=h[p]),\"function\"==typeof h[p]&&(t=h[p]),\"object\"===i(h[p])){var m=h[p];void 0!==m.tolerance&&(o=m.tolerance),void 0!==m.cropOnlyFrames&&(s=m.cropOnlyFrames),void 0!==m.cropSymmetric&&(u=m.cropSymmetric),void 0!==m.leaveBorder&&(a=m.leaveBorder),void 0!==m.ignoreSides&&(f=m.ignoreSides)}var y=this.getPixelColor(0,0),b=this.constructor.intToRGBA(y),g=0,v=0,w=0,_=0;if(y=this.getPixelColor(0,0),!f.north)t:for(var x=0;x<r-1;x++){for(var E=0;E<e;E++){var D=this.getPixelColor(E,x),k=this.constructor.intToRGBA(D);if(this.constructor.colorDiff(b,k)>o)break t}g++}if(y=this.getPixelColor(e,0),!f.west)t:for(var A=0;A<e-1;A++){for(var S=0+g;S<r;S++){var M=this.getPixelColor(A,S),F=this.constructor.intToRGBA(M);if(this.constructor.colorDiff(b,F)>o)break t}_++}if(y=this.getPixelColor(0,r),!f.south)t:for(var C=r-1;C>=g+1;C--){for(var B=e-v-1;B>=0;B--){var O=this.getPixelColor(B,C),I=this.constructor.intToRGBA(O);if(this.constructor.colorDiff(b,I)>o)break t}w++}if(y=this.getPixelColor(e,r),!f.east)t:for(var T=e-1;T>=0+_+1;T--){for(var P=r-1;P>=0+g;P--){var L=this.getPixelColor(T,P),N=this.constructor.intToRGBA(L);if(this.constructor.colorDiff(b,N)>o)break t}v++}if(_-=a,v-=a,g-=a,w-=a,u){var j=Math.min(v,_),R=Math.min(g,w);_=j,v=j,g=R,w=R}var z=e-((_=_>=0?_:0)+(v=v>=0?v:0)),U=r-((w=w>=0?w:0)+(g=g>=0?g:0));return(s?0!==v&&0!==g&&0!==_&&0!==w:0!==v||0!==g||0!==_||0!==w)&&this.crop(_,g,z,U),Object(n.a)(t)&&t.call(this,null,this),this}}}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(0);function i(e,r,i){if(\"boolean\"!=typeof e||\"boolean\"!=typeof r)return n.d.call(this,\"horizontal and vertical must be Booleans\",i);var a=t.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,n,i){var o=e?this.bitmap.width-1-t:t,s=r?this.bitmap.height-1-n:n,u=this.bitmap.width*s+o<<2,f=this.bitmap.data.readUInt32BE(i);a.writeUInt32BE(f,u)})),this.bitmap.data=t.from(a),Object(n.a)(i)&&i.call(this,null,this),this}e.a=function(){return{flip:i,mirror:i}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t,n){var i=r(6),a=r.n(i),o=r(111),s=r.n(o),u=r(0),f=r(17);function c(t){return c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},c(t)}function h(t,e,r,n,i){if(i.width>0&&i.height>0){var a=e.pages[i.page];t.blit(a,r+i.xoffset,n+i.yoffset,i.x,i.y,i.width,i.height)}return t}function l(t,e,r,n,i){for(var a=0;a<n.length;a++){var o=void 0;o=t.chars[n[a]]?n[a]:/\\s/.test(n[a])?\"\":\"?\";var s=t.chars[o]||{},u=t.kernings[o];h(this,t,e,r,s||{}),e+=(u&&u[n[a+1]]?u[n[a+1]]:0)+(s.xadvance||i)}}var p=t.env.DIRNAME||\"\".concat(n,\"/../\");e.a=function(){return{constants:{measureText:f.a,measureTextHeight:f.b,FONT_SANS_8_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt\"),FONT_SANS_10_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt\"),FONT_SANS_12_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt\"),FONT_SANS_14_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt\"),FONT_SANS_16_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt\"),FONT_SANS_32_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt\"),FONT_SANS_64_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt\"),FONT_SANS_128_BLACK:a.a.join(p,\"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt\"),FONT_SANS_8_WHITE:a.a.join(p,\"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt\"),FONT_SANS_16_WHITE:a.a.join(p,\"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt\"),FONT_SANS_32_WHITE:a.a.join(p,\"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt\"),FONT_SANS_64_WHITE:a.a.join(p,\"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt\"),FONT_SANS_128_WHITE:a.a.join(p,\"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt\"),loadFont:function(t,e){var r=this;return\"string\"!=typeof t?u.d.call(this,\"file must be a string\",e):new Promise((function(n,i){e=e||function(t,e){t?i(t):n(e)},s()(t,(function(n,i){var o={},s={};if(n)return u.d.call(r,n,e);for(var f=0;f<i.chars.length;f++)o[String.fromCharCode(i.chars[f].id)]=i.chars[f];for(var c=0;c<i.kernings.length;c++){var h=String.fromCharCode(i.kernings[c].first);s[h]=s[h]||{},s[h][String.fromCharCode(i.kernings[c].second)]=i.kernings[c].amount}(function(t,e,r){var n=r.map((function(r){return t.read(e+\"/\"+r)}));return Promise.all(n)})(r,a.a.dirname(t),i.pages).then((function(t){e(null,{chars:o,kernings:s,pages:t,common:i.common,info:i.info})}))}))}))}},class:{print:function(t,e,r,n,i,a,o){var s,h,p=this;if(\"function\"==typeof i&&void 0===o&&(o=i,i=1/0),void 0===i&&(i=1/0),\"function\"==typeof a&&void 0===o&&(o=a,a=1/0),void 0===a&&(a=1/0),\"object\"!==c(t))return u.d.call(this,\"font must be a Jimp loadFont\",o);if(\"number\"!=typeof e||\"number\"!=typeof r||\"number\"!=typeof i)return u.d.call(this,\"x, y and maxWidth must be numbers\",o);if(\"number\"!=typeof i)return u.d.call(this,\"maxWidth must be a number\",o);if(\"number\"!=typeof a)return u.d.call(this,\"maxHeight must be a number\",o);\"object\"===c(n)&&null!==n.text&&void 0!==n.text?(s=n.alignmentX||this.constructor.HORIZONTAL_ALIGN_LEFT,h=n.alignmentY||this.constructor.VERTICAL_ALIGN_TOP,n=n.text):(s=this.constructor.HORIZONTAL_ALIGN_LEFT,h=this.constructor.VERTICAL_ALIGN_TOP,n=n.toString());a!==1/0&&h===this.constructor.VERTICAL_ALIGN_BOTTOM?r+=a-Object(f.b)(t,n,i):a!==1/0&&h===this.constructor.VERTICAL_ALIGN_MIDDLE&&(r+=a/2-Object(f.b)(t,n,i)/2);var d=Object.entries(t.chars)[0][1].xadvance,m=Object(f.c)(t,n,i),y=m.lines,b=m.longestLine;return y.forEach((function(n){var a=n.join(\" \"),o=function(t,e,r,n,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(n-Object(f.a)(e,r))/2:n-Object(f.a)(e,r)}(p.constructor,t,a,i,s);l.call(p,t,e+o,r,a,d),r+=t.common.lineHeight})),Object(u.a)(o)&&o.call(this,null,this,{x:e+b,y:r}),this}}}}}).call(this,r(7),\"/\")},function(t,e,r){(function(e){var n=r(207),i=function(){},a=r(211),o=r(212),s=r(215),u=r(216),f=r(98),c=self.XMLHttpRequest&&\"withCredentials\"in new XMLHttpRequest;t.exports=function(t,r){r=\"function\"==typeof r?r:i,\"string\"==typeof t?t={uri:t}:t||(t={}),t.binary&&(t=function(t){if(c)return f(t,{responseType:\"arraybuffer\"});if(void 0===self.XMLHttpRequest)throw new Error(\"your browser does not support XHR loading\");var e=new self.XMLHttpRequest;return e.overrideMimeType(\"text/plain; charset=x-user-defined\"),f({xhr:e},t)}(t)),n(t,(function(n,f,c){if(n)return r(n);if(!/^2/.test(f.statusCode))return r(new Error(\"http status code: \"+f.statusCode));if(!c)return r(new Error(\"no body result\"));var h,l,p=!1;if(h=c,\"[object ArrayBuffer]\"===Object.prototype.toString.call(h)){var d=new Uint8Array(c);c=e.from(d,\"binary\")}u(c)&&(p=!0,\"string\"==typeof c&&(c=e.from(c,\"binary\"))),p||(e.isBuffer(c)&&(c=c.toString(t.encoding)),c=c.trim());try{var m=f.headers[\"content-type\"];l=p?s(c):/json/.test(m)||\"{\"===c.charAt(0)?JSON.parse(c):/xml/.test(m)||\"<\"===c.charAt(0)?o(c):a(c)}catch(t){r(new Error(\"error parsing font \"+t.message)),r=i}r(null,l)}))}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(0),i=r(113),a=r(63);e.a=function(){return{constants:{RESIZE_NEAREST_NEIGHBOR:\"nearestNeighbor\",RESIZE_BILINEAR:\"bilinearInterpolation\",RESIZE_BICUBIC:\"bicubicInterpolation\",RESIZE_HERMITE:\"hermiteInterpolation\",RESIZE_BEZIER:\"bezierInterpolation\"},class:{resize:function(e,r,o,s){if(\"number\"!=typeof e||\"number\"!=typeof r)return n.d.call(this,\"w and h must be numbers\",s);if(\"function\"==typeof o&&void 0===s&&(s=o,o=null),e===this.constructor.AUTO&&r===this.constructor.AUTO)return n.d.call(this,\"w and h cannot both be set to auto\",s);if(e===this.constructor.AUTO&&(e=this.bitmap.width*(r/this.bitmap.height)),r===this.constructor.AUTO&&(r=this.bitmap.height*(e/this.bitmap.width)),e<0||r<0)return n.d.call(this,\"w and h must be positive numbers\",s);if(e=Math.round(e)||1,r=Math.round(r)||1,\"function\"==typeof a.a[o]){var u={data:t.alloc(e*r*4),width:e,height:r};a.a[o](this.bitmap,u),this.bitmap=u}else{var f=this,c=new i.a(this.bitmap.width,this.bitmap.height,e,r,!0,!0,(function(n){f.bitmap.data=t.from(n),f.bitmap.width=e,f.bitmap.height=r}));c.resize(this.bitmap.data)}return Object(n.a)(s)&&s.call(this,null,this),this}}}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(r)||0),this.targetHeight=Math.abs(Math.floor(n)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(a),this.resizeCallback=\"function\"==typeof o?o:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}n.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error(\"Invalid settings specified for the resizer.\");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var r,n,i=e?4:3,a=this.ratioWeightWidthPass,o=this.widthBuffer,s=0,u=0,f=0,c=0,h=0;for(r=0;s<1/3;r+=i,s+=a)for(u=r,f=0;u<this.widthPassResultSize;f+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)o[u]=t[f],o[u+1]=t[f+1],o[u+2]=t[f+2],e&&(o[u+3]=t[f+3]);for(s-=1/3,n=this.widthOriginal-1;s<n;r+=i,s+=a)for(c=1-(h=s%1),u=r,f=Math.floor(s)*i;u<this.widthPassResultSize;f+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)o[u+0]=t[f+0]*c+t[f+i+0]*h,o[u+1]=t[f+1]*c+t[f+i+1]*h,o[u+2]=t[f+2]*c+t[f+i+2]*h,e&&(o[u+3]=t[f+3]*c+t[f+i+3]*h);for(n=this.originalWidthMultipliedByChannels-i;r<this.targetWidthMultipliedByChannels;r+=i)for(u=r,f=n;u<this.widthPassResultSize;f+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)o[u]=t[f],o[u+1]=t[f+1],o[u+2]=t[f+2],e&&(o[u+3]=t[f+3]);return o},n.prototype._resizeWidthRGBChannels=function(t,e){var r=e?4:3,n=this.ratioWeightWidthPass,i=1/n,a=this.originalWidthMultipliedByChannels-r+1,o=this.targetWidthMultipliedByChannels-r+1,s=this.outputWidthWorkBench,u=this.widthBuffer,f=this.outputWidthWorkBenchOpaquePixelsCount,c=0,h=0,l=0,p=0,d=0,m=0,y=0,b=1,g=0,v=0,w=0,_=0;do{for(d=0;d<this.originalHeightMultipliedByChannels;)s[d++]=0,s[d++]=0,s[d++]=0,e&&(s[d++]=0,f[d/r-1]=0);c=n;do{for(h=1+l-p,b=Math.min(c,h),d=0,m=l;d<this.originalHeightMultipliedByChannels;m+=a)g=t[m],v=t[++m],w=t[++m],_=e?t[++m]:255,s[d++]+=(_?g:0)*b,s[d++]+=(_?v:0)*b,s[d++]+=(_?w:0)*b,e&&(s[d++]+=_*b,f[d/r-1]+=_?b:0);if(!(c>=h)){p+=c;break}p=l+=r,c-=h}while(c>0&&l<this.originalWidthMultipliedByChannels);for(d=0,m=y;d<this.originalHeightMultipliedByChannels;m+=o)c=e?f[d/r]:1,b=e?c?1/c:0:i,u[m]=s[d++]*b,u[++m]=s[d++]*b,u[++m]=s[d++]*b,e&&(u[++m]=s[d++]*i);y+=r}while(y<this.targetWidthMultipliedByChannels);return u},n.prototype._resizeHeightRGBChannels=function(t,e){var r=this.ratioWeightHeightPass,n=1/r,i=this.outputHeightWorkBench,a=this.heightBuffer,o=this.outputHeightWorkBenchOpaquePixelsCount,s=0,u=0,f=0,c=0,h=0,l=0,p=0,d=1,m=0,y=0,b=0,g=0;do{for(h=0;h<this.targetWidthMultipliedByChannels;)i[h++]=0,i[h++]=0,i[h++]=0,e&&(i[h++]=0,o[h/4-1]=0);s=r;do{for(u=1+f-c,d=Math.min(s,u),p=f,h=0;h<this.targetWidthMultipliedByChannels;)m=t[p++],y=t[p++],b=t[p++],g=e?t[p++]:255,i[h++]+=(g?m:0)*d,i[h++]+=(g?y:0)*d,i[h++]+=(g?b:0)*d,e&&(i[h++]+=g*d,o[h/4-1]+=g?d:0);if(!(s>=u)){c+=s;break}c=f=p,s-=u}while(s>0&&f<this.widthPassResultSize);for(h=0;h<this.targetWidthMultipliedByChannels;)s=e?o[h/4]:1,d=e?s?1/s:0:n,a[l++]=Math.round(i[h++]*d),a[l++]=Math.round(i[h++]*d),a[l++]=Math.round(i[h++]*d),e&&(a[l++]=Math.round(i[h++]*n))}while(l<this.finalResultSize);return a},n.prototype.resizeWidthInterpolatedRGB=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!1)},n.prototype.resizeWidthInterpolatedRGBA=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!0)},n.prototype.resizeWidthRGB=function(t){return this._resizeWidthRGBChannels(t,!1)},n.prototype.resizeWidthRGBA=function(t){return this._resizeWidthRGBChannels(t,!0)},n.prototype.resizeHeightInterpolated=function(t){for(var e,r=this.ratioWeightHeightPass,n=this.heightBuffer,i=0,a=0,o=0,s=0,u=0,f=0,c=0;i<1/3;i+=r)for(o=0;o<this.targetWidthMultipliedByChannels;)n[a++]=Math.round(t[o++]);for(i-=1/3,e=this.heightOriginal-1;i<e;i+=r)for(f=1-(c=i%1),u=(s=Math.floor(i)*this.targetWidthMultipliedByChannels)+this.targetWidthMultipliedByChannels,o=0;o<this.targetWidthMultipliedByChannels;++o)n[a++]=Math.round(t[s++]*f+t[u++]*c);for(;a<this.finalResultSize;)for(o=0,s=e*this.targetWidthMultipliedByChannels;o<this.targetWidthMultipliedByChannels;++o)n[a++]=Math.round(t[s++]);return n},n.prototype.resizeHeightRGB=function(t){return this._resizeHeightRGBChannels(t,!1)},n.prototype.resizeHeightRGBA=function(t){return this._resizeHeightRGBChannels(t,!0)},n.prototype.resize=function(t){this.resizeCallback(this.resizeHeight(this.resizeWidth(t)))},n.prototype.bypassResizer=function(t){return t},n.prototype.initializeFirstPassBuffers=function(t){this.widthBuffer=this.generateFloatBuffer(this.widthPassResultSize),t||(this.outputWidthWorkBench=this.generateFloatBuffer(this.originalHeightMultipliedByChannels),this.colorChannels>3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},e.a=n},function(t,e,r){\"use strict\";(function(t){var n=r(0);function i(e){if(Math.abs(e)%90!=0)throw new Error(\"Unsupported matrix rotation degree\");if(e%=360,0!==Math.abs(e)){var r,n=this.bitmap.width,i=this.bitmap.height;switch(e){case 90:case-270:r=90;break;case 180:case-180:r=180;break;case 270:case-90:r=-90;break;default:throw new Error(\"Unsupported matrix rotation degree\")}for(var a=180===r?n:i,o=180===r?i:n,s=t.alloc(this.bitmap.data.length),u=m(n),f=m(a),c=0;c<n;c++)for(var h=0;h<i;h++){var l=u(c,h),p=this.bitmap.data.readUInt32BE(l),d=void 0;switch(r){case 90:d=f(h,n-c-1);break;case-90:d=f(i-h-1,c);break;case 180:d=f(n-c-1,i-h-1);break;default:throw new Error(\"Unsupported matrix rotation angle\")}s.writeUInt32BE(p,d)}this.bitmap.data=s,this.bitmap.width=a,this.bitmap.height=o}function m(t,e){return function(e,r){return r*t+e<<2}}}function a(e,r){var n=(e%=360)*Math.PI/180,i=Math.cos(n),a=Math.sin(n),o=this.bitmap.width,s=this.bitmap.height;if(!0===r||\"string\"==typeof r){(o=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*a))+1)%2!=0&&o++,(s=Math.ceil(Math.abs(this.bitmap.width*a)+Math.abs(this.bitmap.height*i))+1)%2!=0&&s++;var u=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)}));var f=Math.max(o,s,this.bitmap.width,this.bitmap.height);this.resize(f,f,r),this.blit(u,this.bitmap.width/2-u.bitmap.width/2,this.bitmap.height/2-u.bitmap.height/2)}var c=this.bitmap.width,h=this.bitmap.height,l=t.alloc(this.bitmap.data.length);function p(t,e){return function(r,n){return{x:r+t,y:n+e}}}for(var d=p(-c/2,-h/2),m=p(c/2+.5,h/2+.5),y=1;y<=h;y++)for(var b=1;b<=c;b++){var g=d(b,y),v=m(i*g.x-a*g.y,i*g.y+a*g.x),w=c*(y-1)+b-1<<2;if(v.x>=0&&v.x<c&&v.y>=0&&v.y<h){var _=c*(0|v.y)+v.x<<2,x=this.bitmap.data.readUInt32BE(_);l.writeUInt32BE(x,w)}else l.writeUInt32BE(this._background,w)}if(this.bitmap.data=l,!0===r||\"string\"==typeof r){var E=c/2-o/2,D=h/2-s/2;this.crop(E,D,o,s)}}e.a=function(){return{rotate:function(t,e,r){return null==e&&(e=!0),\"function\"==typeof e&&void 0===r&&(r=e,e=!0),\"number\"!=typeof t?n.d.call(this,\"deg must be a number\",r):\"boolean\"!=typeof e&&\"string\"!=typeof e?n.d.call(this,\"mode must be a boolean or a string\",r):(t%90==0&&(e||this.bitmap.width===this.bitmap.height||t%180==0)?i.call(this,t):a.call(this,t,e,r),Object(n.a)(r)&&r.call(this,null,this),this)}}}}).call(this,r(2).Buffer)},function(t,e,r){t.exports&&(t.exports={DBSCAN:r(218),KMEANS:r(219),OPTICS:r(220),PriorityQueue:r(99)})},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return b}));var n={};r.r(n),r.d(n,\"srcOver\",(function(){return o})),r.d(n,\"dstOver\",(function(){return s})),r.d(n,\"multiply\",(function(){return u})),r.d(n,\"add\",(function(){return f})),r.d(n,\"screen\",(function(){return c})),r.d(n,\"overlay\",(function(){return h})),r.d(n,\"darken\",(function(){return l})),r.d(n,\"lighten\",(function(){return p})),r.d(n,\"hardLight\",(function(){return d})),r.d(n,\"difference\",(function(){return m})),r.d(n,\"exclusion\",(function(){return y}));var i=r(0),a=r(20);function o(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/n,g:(t.g*t.a+e.g*e.a*(1-t.a))/n,b:(t.b*t.a+e.b*e.a*(1-t.a))/n,a:n}}function s(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/n,g:(e.g*e.a+t.g*t.a*(1-e.a))/n,b:(e.b*e.a+t.b*t.a*(1-e.a))/n,a:n}}function u(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*f+o*(1-e.a)+f*(1-t.a))/n,a:n}}function f(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a;return{r:(i+e.r*e.a)/n,g:(a+e.g*e.a)/n,b:(o+e.b*e.a)/n,a:n}}function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*e.a+u*t.a-a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*e.a+f*t.a-o*f+o*(1-e.a)+f*(1-t.a))/n,a:n}}function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*u<=e.a?2*a*u+a*(1-e.a)+u*(1-t.a):a*(1+e.a)+u*(1+t.a)-2*u*a-e.a*t.a)/n,b:(2*f<=e.a?2*o*f+o*(1-e.a)+f*(1-t.a):o*(1+e.a)+f*(1+t.a)-2*f*o-e.a*t.a)/n,a:n}}function l(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.min(a*e.a,u*t.a)+a*(1-e.a)+u*(1-t.a))/n,b:(Math.min(o*e.a,f*t.a)+o*(1-e.a)+f*(1-t.a))/n,a:n}}function p(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.max(a*e.a,u*t.a)+a*(1-e.a)+u*(1-t.a))/n,b:(Math.max(o*e.a,f*t.a)+o*(1-e.a)+f*(1-t.a))/n,a:n}}function d(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*a<=t.a?2*a*u+a*(1-e.a)+u*(1-t.a):a*(1+e.a)+u*(1+t.a)-2*u*a-e.a*t.a)/n,b:(2*o<=t.a?2*o*f+o*(1-e.a)+f*(1-t.a):o*(1+e.a)+f*(1+t.a)-2*f*o-e.a*t.a)/n,a:n}}function m(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/n,g:(a+u-2*Math.min(a*e.a,u*t.a))/n,b:(o+f-2*Math.min(o*e.a,f*t.a))/n,a:n}}function y(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*e.a+u*t.a-2*a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*e.a+f*t.a-2*o*f+o*(1-e.a)+f*(1-t.a))/n,a:n}}function b(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0;if(\"function\"==typeof o&&(s=o,o={}),!(t instanceof this.constructor))return i.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof r)return i.d.call(this,\"x and y must be numbers\",s);var u=o,f=u.mode,c=u.opacitySource,h=u.opacityDest;f||(f=a.BLEND_SOURCE_OVER),(\"number\"!=typeof c||c<0||c>1)&&(c=1),(\"number\"!=typeof h||h<0||h>1)&&(h=1);var l=n[f];e=Math.round(e),r=Math.round(r);var p=this;return 1!==h&&p.opacity(h),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,i){var o=p.getPixelIndex(e+t,r+n,a.EDGE_CROP);if(-1!==o){var s=l({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:p.bitmap.data[o+0]/255,g:p.bitmap.data[o+1]/255,b:p.bitmap.data[o+2]/255,a:p.bitmap.data[o+3]/255},c);p.bitmap.data[o+0]=this.constructor.limit255(255*s.r),p.bitmap.data[o+1]=this.constructor.limit255(255*s.g),p.bitmap.data[o+2]=this.constructor.limit255(255*s.b),p.bitmap.data[o+3]=this.constructor.limit255(255*s.a)}})),Object(i.a)(s)&&s.call(this,null,this),this}},function(t,e,r){(function(t){var n=void 0!==t&&t||\"undefined\"!=typeof self&&self||window,i=Function.prototype.apply;function a(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new a(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new a(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r(150),e.setImmediate=\"undefined\"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate=\"undefined\"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(10))},,,function(t,e,r){\"use strict\";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=u(t),o=n[0],s=n[1],f=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),c=0,h=s>0?o-4:o;for(r=0;r<h;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],f[c++]=e>>16&255,f[c++]=e>>8&255,f[c++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,f[c++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,f[c++]=e>>8&255,f[c++]=255&e);return f},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=16383,s=0,u=r-i;s<u;s+=o)a.push(f(t,s,s+o>u?u:s+o));1===i?(e=t[r-1],a.push(n[e>>2]+n[e<<4&63]+\"==\")):2===i&&(e=(t[r-2]<<8)+t[r-1],a.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+\"=\"));return a.join(\"\")};for(var n=[],i=[],a=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",s=0;s<64;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=t.indexOf(\"=\");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var i,a,o=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join(\"\")}i[\"-\".charCodeAt(0)]=62,i[\"_\".charCodeAt(0)]=63},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==r.call(t)}},function(t,e,r){\"use strict\";function n(t,e){if(!(t&&e&&t.length&&e.length))throw new Error(\"Bad alphabet\");this.srcAlphabet=t,this.dstAlphabet=e}n.prototype.convert=function(t){var e,r,n,i={},a=this.srcAlphabet.length,o=this.dstAlphabet.length,s=t.length,u=\"string\"==typeof t?\"\":[];if(!this.isValid(t))throw new Error('Number \"'+t+'\" contains of non-alphabetic digits ('+this.srcAlphabet+\")\");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e<s;e++)i[e]=this.srcAlphabet.indexOf(t[e]);do{for(r=0,n=0,e=0;e<s;e++)(r=r*a+i[e])>=o?(i[n++]=parseInt(r/o,10),r%=o):n>0&&(i[n++]=0);s=n,u=this.dstAlphabet.slice(r,r+1).concat(u)}while(0!==n);return u},n.prototype.isValid=function(t){for(var e=0;e<t.length;++e)if(-1===this.srcAlphabet.indexOf(t[e]))return!1;return!0},t.exports=n},function(t,e,r){r(124),t.exports=self.fetch.bind(self)},function(t,e,r){\"use strict\";r.r(e),function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}r.d(e,\"Headers\",(function(){return h})),r.d(e,\"Request\",(function(){return g})),r.d(e,\"Response\",(function(){return w})),r.d(e,\"DOMException\",(function(){return x})),r.d(e,\"fetch\",(function(){return E}));var i=\"undefined\"!=typeof globalThis&&globalThis||\"undefined\"!=typeof self&&self||void 0!==t&&t||{},a={searchParams:\"URLSearchParams\"in i,iterable:\"Symbol\"in i&&\"iterator\"in Symbol,blob:\"FileReader\"in i&&\"Blob\"in i&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:\"FormData\"in i,arrayBuffer:\"ArrayBuffer\"in i};if(a.arrayBuffer)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if(\"string\"!=typeof t&&(t=String(t)),/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(t)||\"\"===t)throw new TypeError('Invalid character in header field name: \"'+t+'\"');return t.toLowerCase()}function f(t){return\"string\"!=typeof t&&(t=String(t)),t}function c(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return a.iterable&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError(\"Headers constructor: expected name/value pair to be length 2, found\"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError(\"Already read\")):void(t.bodyUsed=!0)}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function d(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?\"string\"==typeof t?this._bodyText=t:a.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a.arrayBuffer&&a.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=\"\"),this.headers.get(\"content-type\")||(\"string\"==typeof t?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=l(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(a.blob)return this.blob().then(d);throw new Error(\"could not read as ArrayBuffer\")},this.text=function(){var t,e,r,n,i,a=l(this);if(a)return a;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=p(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=n?n[1]:\"utf-8\",e.readAsText(t,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=u(t),e=f(e);var r=this.map[t];this.map[t]=r?r+\", \"+e:e},h.prototype.delete=function(t){delete this.map[u(t)]},h.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},h.prototype.set=function(t,e){this.map[u(t)]=f(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),c(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),c(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),c(t)},a.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=[\"CONNECT\",\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"PATCH\",\"POST\",\"PUT\",\"TRACE\"];function g(t,e){if(!(this instanceof g))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');var r,n,a=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError(\"Already read\");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,a||null==t._bodyInit||(a=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||\"same-origin\",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(r=e.method||this.method||\"GET\",n=r.toUpperCase(),b.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if(\"AbortController\"in i)return(new AbortController).signal}(),this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&a)throw new TypeError(\"Body not allowed for GET or HEAD requests\");if(this._initBody(a),!(\"GET\"!==this.method&&\"HEAD\"!==this.method||\"no-store\"!==e.cache&&\"no-cache\"!==e.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,\"$1_=\"+(new Date).getTime());else{this.url+=(/\\?/.test(this.url)?\"&\":\"?\")+\"_=\"+(new Date).getTime()}}}function v(t){var e=new FormData;return t.trim().split(\"&\").forEach((function(t){if(t){var r=t.split(\"=\"),n=r.shift().replace(/\\+/g,\" \"),i=r.join(\"=\").replace(/\\+/g,\" \");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type=\"default\",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError(\"Failed to construct 'Response': The status provided (0) is outside the range [200, 599].\");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?\"\":\"\"+e.statusText,this.headers=new h(e.headers),this.url=e.url||\"\",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:200,statusText:\"\"});return t.ok=!1,t.status=0,t.type=\"error\",t};var _=[301,302,303,307,308];w.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError(\"Invalid status code\");return new w(null,{status:e,headers:{location:t}})};var x=i.DOMException;try{new x}catch(t){(x=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}function E(t,e){return new Promise((function(r,o){var s=new g(t,e);if(s.signal&&s.signal.aborted)return o(new x(\"Aborted\",\"AbortError\"));var c=new XMLHttpRequest;function l(){c.abort()}if(c.onload=function(){var t,e,n={statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||\"\",e=new h,t.replace(/\\r?\\n[\\t ]+/g,\" \").split(\"\\r\").map((function(t){return 0===t.indexOf(\"\\n\")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(\":\"),n=r.shift().trim();if(n){var i=r.join(\":\").trim();try{e.append(n,i)}catch(t){t.message}}})),e)};0===s.url.indexOf(\"file://\")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url=\"responseURL\"in c?c.responseURL:n.headers.get(\"X-Request-URL\");var i=\"response\"in c?c.response:c.responseText;setTimeout((function(){r(new w(i,n))}),0)},c.onerror=function(){setTimeout((function(){o(new TypeError(\"Network request failed\"))}),0)},c.ontimeout=function(){setTimeout((function(){o(new TypeError(\"Network request timed out\"))}),0)},c.onabort=function(){setTimeout((function(){o(new x(\"Aborted\",\"AbortError\"))}),0)},c.open(s.method,function(t){try{return\"\"===t&&i.location.href?i.location.href:t}catch(e){return t}}(s.url),!0),\"include\"===s.credentials?c.withCredentials=!0:\"omit\"===s.credentials&&(c.withCredentials=!1),\"responseType\"in c&&(a.blob?c.responseType=\"blob\":a.arrayBuffer&&(c.responseType=\"arraybuffer\")),e&&\"object\"===n(e.headers)&&!(e.headers instanceof h||i.Headers&&e.headers instanceof i.Headers)){var p=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){p.push(u(t)),c.setRequestHeader(t,f(e.headers[t]))})),s.headers.forEach((function(t,e){-1===p.indexOf(e)&&c.setRequestHeader(e,t)}))}else s.headers.forEach((function(t,e){c.setRequestHeader(e,t)}));s.signal&&(s.signal.addEventListener(\"abort\",l),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener(\"abort\",l)}),c.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,i.fetch||(i.fetch=E,i.Headers=h,i.Request=g,i.Response=w)}.call(this,r(10))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromStream=e.fromBuffer=e.EndOfStreamError=e.fromFile=void 0;var o=r(68),s=r(47),u=r(130);Object.defineProperty(e,\"fromFile\",{enumerable:!0,get:function(){return u.fromFile}});var f=r(47);function c(){var t;return t=i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=r||{},!e.path){t.next=7;break}return t.next=4,o.stat(e.path);case 4:n=t.sent,r.path=e.path,r.size=n.size;case 7:return t.abrupt(\"return\",s.fromStream(e,r));case 8:case\"end\":return t.stop()}}),t)})),c=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))},c.apply(this,arguments)}Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return f.EndOfStreamError}}),Object.defineProperty(e,\"fromBuffer\",{enumerable:!0,get:function(){return f.fromBuffer}}),e.fromStream=function(t,e){return c.apply(this,arguments)}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function f(t,e,r){return e=h(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,c()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.ReadStreamTokenizer=void 0;var p=r(48),d=r(26),m=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=f(this,e,[r])).streamReader=new d.StreamReader(t),n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&l(t,e)}(e,t),r=e,n=[{key:\"getFileInfo\",value:(p=o(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",this.fileInfo);case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return p.apply(this,arguments)})},{key:\"readBuffer\",value:(h=o(i().mark((function t(e,r){var n,a,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),!((a=n.position-this.position)>0)){t.next=8;break}return t.next=5,this.ignore(a);case 5:return t.abrupt(\"return\",this.readBuffer(e,r));case 8:if(!(a<0)){t.next=10;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 10:if(0!==n.length){t.next=12;break}return t.abrupt(\"return\",0);case 12:return t.next=14,this.streamReader.read(e,n.offset,n.length);case 14:if(o=t.sent,this.position+=o,r&&r.mayBeLess||!(o<n.length)){t.next=18;break}throw new d.EndOfStreamError;case 18:return t.abrupt(\"return\",o);case 19:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:\"peekBuffer\",value:(c=o(i().mark((function t(e,r){var n,a,o,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),a=0,!n.position){t.next=15;break}if(!((o=n.position-this.position)>0)){t.next=13;break}return s=new Uint8Array(n.length+o),t.next=8,this.peekBuffer(s,{mayBeLess:n.mayBeLess});case 8:return a=t.sent,e.set(s.subarray(o),n.offset),t.abrupt(\"return\",a-o);case 13:if(!(o<0)){t.next=15;break}throw new Error(\"Cannot peek from a negative offset in a stream\");case 15:if(!(n.length>0)){t.next=29;break}return t.prev=16,t.next=19,this.streamReader.peek(e,n.offset,n.length);case 19:a=t.sent,t.next=27;break;case 22:if(t.prev=22,t.t0=t.catch(16),!(r&&r.mayBeLess&&t.t0 instanceof d.EndOfStreamError)){t.next=26;break}return t.abrupt(\"return\",0);case 26:throw t.t0;case 27:if(n.mayBeLess||!(a<n.length)){t.next=29;break}throw new d.EndOfStreamError;case 29:return t.abrupt(\"return\",a);case 30:case\"end\":return t.stop()}}),t,this,[[16,22]])}))),function(t,e){return c.apply(this,arguments)})},{key:\"ignore\",value:(u=o(i().mark((function t(e){var r,n,a,o,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Math.min(256e3,e),n=new Uint8Array(r),a=0;case 3:if(!(a<e)){t.next=13;break}return o=e-a,t.next=7,this.readBuffer(n,{length:Math.min(r,o)});case 7:if(!((s=t.sent)<0)){t.next=10;break}return t.abrupt(\"return\",s);case 10:a+=s,t.next=3;break;case 13:return t.abrupt(\"return\",a);case 14:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})}],n&&s(r.prototype,n),a&&s(r,a),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,a,u,c,h,p}(p.AbstractTokenizer);e.ReadStreamTokenizer=m},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var f=r(49),c=r(128),h=r(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return h.EndOfStreamError}});var l=function(){return t=function t(e){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error(\"Expected an instance of stream.Readable\");this.s.once(\"end\",(function(){return r.reject(new f.EndOfStreamError)})),this.s.once(\"error\",(function(t){return r.reject(t)})),this.s.once(\"close\",(function(){return r.reject(new Error(\"Stream closed\"))}))},e=[{key:\"peek\",value:(u=o(i().mark((function t(e,r,n){var a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.read(e,r,n);case 2:return a=t.sent,this.peekQueue.push(e.subarray(r,r+a)),t.abrupt(\"return\",a);case 5:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return u.apply(this,arguments)})},{key:\"read\",value:(a=o(i().mark((function t(e,r,n){var a,o,s,u,c,h;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n){t.next=2;break}return t.abrupt(\"return\",0);case 2:if(0!==this.peekQueue.length||!this.endOfStream){t.next=4;break}throw new f.EndOfStreamError;case 4:a=n,o=0;case 6:if(!(this.peekQueue.length>0&&a>0)){t.next=17;break}if(s=this.peekQueue.pop()){t.next=10;break}throw new Error(\"peekData should be defined\");case 10:u=Math.min(s.length,a),e.set(s.subarray(0,u),r+o),o+=u,a-=u,u<s.length&&this.peekQueue.push(s.subarray(u)),t.next=6;break;case 17:if(!(a>0)||this.endOfStream){t.next=28;break}return c=Math.min(a,1048576),t.next=21,this.readFromStream(e,r+o,c);case 21:if(h=t.sent,o+=h,!(h<c)){t.next=25;break}return t.abrupt(\"break\",28);case 25:a-=h,t.next=17;break;case 28:return t.abrupt(\"return\",o);case 29:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return a.apply(this,arguments)})},{key:\"readFromStream\",value:(n=o(i().mark((function t(e,r,n){var a,o,s=this;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(a=this.s.read(n))){t.next=6;break}return e.set(a,r),t.abrupt(\"return\",a.length);case 6:return o={buffer:e,offset:r,length:n,deferred:new c.Deferred},this.deferred=o.deferred,this.s.once(\"readable\",(function(){s.readDeferred(o)})),t.abrupt(\"return\",o.deferred.promise);case 10:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:\"readDeferred\",value:function(t){var e=this,r=this.s.read(t.length);r?(t.buffer.set(r,t.offset),t.deferred.resolve(r.length),this.deferred=null):this.s.once(\"readable\",(function(){e.readDeferred(t)}))}},{key:\"reject\",value:function(t){this.endOfStream=!0,this.deferred&&(this.deferred.reject(t),this.deferred=null)}}],e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,a,u}();e.StreamReader=l},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function a(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Deferred=void 0;var s=a((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.resolve=function(){return null},this.reject=function(){return null},this.promise=new Promise((function(t,r){e.reject=r,e.resolve=t}))}));e.Deferred=s},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function f(t,e,r){return e=h(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,c()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.BufferTokenizer=void 0;var p=r(26),d=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=f(this,e,[r])).uint8Array=t,n.fileInfo.size=n.fileInfo.size?n.fileInfo.size:t.length,n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&l(t,e)}(e,t),r=e,n=[{key:\"readBuffer\",value:(h=o(i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r||!r.position){t.next=4;break}if(!(r.position<this.position)){t.next=3;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 3:this.position=r.position;case 4:return t.next=6,this.peekBuffer(e,r);case 6:return n=t.sent,this.position+=n,t.abrupt(\"return\",n);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:\"peekBuffer\",value:(c=o(i().mark((function t(e,r){var n,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),a=Math.min(this.uint8Array.length-n.position,n.length),n.mayBeLess||!(a<n.length)){t.next=6;break}throw new p.EndOfStreamError;case 6:return e.set(this.uint8Array.subarray(n.position,n.position+a),n.offset),t.abrupt(\"return\",a);case 8:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:\"close\",value:(u=o(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})}],n&&s(r.prototype,n),a&&s(r,a),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,a,u,c,h}(r(48).AbstractTokenizer);e.BufferTokenizer=d},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",f=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(n||[]);return o(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&a.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var f=p(t[i],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==n(h)&&a.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,o(k,\"constructor\",{value:_,configurable:!0}),o(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),f=a.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function f(t,e,r){return e=h(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,c()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromFile=e.FileTokenizer=void 0;var p=r(48),d=r(26),m=r(68),y=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=f(this,e,[r])).fd=t,n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&l(t,e)}(e,t),r=e,n=[{key:\"readBuffer\",value:(h=o(i().mark((function t(e,r){var n,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),this.position=n.position,t.next=4,m.read(this.fd,e,n.offset,n.length,n.position);case 4:if(a=t.sent,this.position+=a.bytesRead,!(a.bytesRead<n.length)||r&&r.mayBeLess){t.next=8;break}throw new d.EndOfStreamError;case 8:return t.abrupt(\"return\",a.bytesRead);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:\"peekBuffer\",value:(c=o(i().mark((function t(e,r){var n,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),t.next=3,m.read(this.fd,e,n.offset,n.length,n.position);case 3:if(a=t.sent,n.mayBeLess||!(a.bytesRead<n.length)){t.next=6;break}throw new d.EndOfStreamError;case 6:return t.abrupt(\"return\",a.bytesRead);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:\"close\",value:(u=o(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",m.close(this.fd));case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})}],n&&s(r.prototype,n),a&&s(r,a),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,a,u,c,h}(p.AbstractTokenizer);function b(){return(b=o(i().mark((function t(e){var r,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m.stat(e);case 2:if((r=t.sent).isFile){t.next=5;break}throw new Error(\"File not a file: \".concat(e));case 5:return t.next=7,m.open(e,\"r\");case 7:return n=t.sent,t.abrupt(\"return\",new y(n,{path:e,size:r.size}));case 9:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.FileTokenizer=y,e.fromFile=function(t){return b.apply(this,arguments)}},function(module,exports,__webpack_require__){\"use strict\";(function(Buffer){function _typeof(t){return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_typeof(t)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",s=a.asyncIterator||\"@@asyncIterator\",u=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),s=new C(n||[]);return i(o,\"_invoke\",{value:A(t,r,s)}),o}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var l=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function b(){}function g(){}function v(){}var w={};f(w,o,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(B([])));x&&x!==r&&n.call(x,o)&&(w=x);var E=v.prototype=b.prototype=Object.create(w);function D(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if(\"throw\"!==u.type){var f=u.arg,c=f.value;return c&&\"object\"==_typeof(c)&&n.call(c,\"__await\")?e.resolve(c.__await).then((function(t){r(\"next\",t,o,s)}),(function(t){r(\"throw\",t,o,s)})):e.resolve(c).then((function(t){f.value=t,o(f)}),(function(t){return r(\"throw\",t,o,s)}))}s(u.arg)}var a;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function A(e,r,n){var i=l;return function(a,o){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===l)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var f=h(e,r,n);if(\"normal\"===f.type){if(i=n.done?m:p,f.arg===y)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=m,n.method=\"throw\",n.arg=f.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var a=h(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[o];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(_typeof(e)+\" is not iterable\")}return g.prototype=v,i(E,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:g,configurable:!0}),g.displayName=f(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},D(k.prototype),f(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new k(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},D(E),f(E,u,\"Generator\"),f(E,o,(function(){return this})),f(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function _iterableToArrayLimit(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,a,o,s=[],u=!0,f=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){f=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(f)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function _unsupportedIterableToArray(t,e){if(t){if(\"string\"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_toPrimitive(t,\"string\");return\"symbol\"==_typeof(e)?e:e+\"\"}function _toPrimitive(t,e){if(\"object\"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_typeof(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}function asyncGeneratorStep(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){asyncGeneratorStep(a,n,i,o,s,\"next\",t)}function s(t){asyncGeneratorStep(a,n,i,o,s,\"throw\",t)}o(void 0)}))}}var Token=__webpack_require__(132),strtok3=__webpack_require__(47),_require=__webpack_require__(133),stringToBytes=_require.stringToBytes,tarHeaderChecksumMatches=_require.tarHeaderChecksumMatches,uint32SyncSafeToken=_require.uint32SyncSafeToken,supported=__webpack_require__(134),minimumBytes=4100;function fromStream(t){return _fromStream.apply(this,arguments)}function _fromStream(){return _fromStream=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,strtok3.fromStream(e);case 2:return r=t.sent,t.prev=3,t.next=6,fromTokenizer(r);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])}))),_fromStream.apply(this,arguments)}function fromBuffer(t){return _fromBuffer.apply(this,arguments)}function _fromBuffer(){return(_fromBuffer=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)){t.next=2;break}throw new TypeError(\"Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `\".concat(_typeof(e),\"`\"));case 2:if((r=e instanceof Buffer?e:Buffer.from(e))&&r.length>1){t.next=5;break}return t.abrupt(\"return\");case 5:return n=strtok3.fromBuffer(r),t.abrupt(\"return\",fromTokenizer(n));case 7:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function _check(t,e,r){r=_objectSpread({offset:0},r);var n,i=_createForOfIteratorHelper(e.entries());try{for(i.s();!(n=i.n()).done;){var a=_slicedToArray(n.value,2),o=a[0],s=a[1];if(r.mask){if(s!==(r.mask[o]&t[o+r.offset]))return!1}else if(s!==t[o+r.offset])return!1}}catch(t){i.e(t)}finally{i.f()}return!0}function fromTokenizer(t){return _fromTokenizer2.apply(this,arguments)}function _fromTokenizer2(){return(_fromTokenizer2=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt(\"return\",_fromTokenizer(e));case 4:if(t.prev=4,t.t0=t.catch(0),t.t0 instanceof strtok3.EndOfStreamError){t.next=8;break}throw t.t0;case 8:case\"end\":return t.stop()}}),t,null,[[0,4]])})))).apply(this,arguments)}function _fromTokenizer(t){return _fromTokenizer3.apply(this,arguments)}function _fromTokenizer3(){return _fromTokenizer3=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n,i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k,A;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(minimumBytes),12,n=function(t,e){return _check(r,t,e)},i=function(t,e){return n(stringToBytes(t),e)},e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),t.next=7,e.peekBuffer(r,{length:12,mayBeLess:!0});case 7:if(!n([66,77])){t.next=9;break}return t.abrupt(\"return\",{ext:\"bmp\",mime:\"image/bmp\"});case 9:if(!n([11,119])){t.next=11;break}return t.abrupt(\"return\",{ext:\"ac3\",mime:\"audio/vnd.dolby.dd-raw\"});case 11:if(!n([120,1])){t.next=13;break}return t.abrupt(\"return\",{ext:\"dmg\",mime:\"application/x-apple-diskimage\"});case 13:if(!n([77,90])){t.next=15;break}return t.abrupt(\"return\",{ext:\"exe\",mime:\"application/x-msdownload\"});case 15:if(!n([37,33])){t.next=21;break}return t.next=18,e.peekBuffer(r,{length:24,mayBeLess:!0});case 18:if(!i(\"PS-Adobe-\",{offset:2})||!i(\" EPSF-\",{offset:14})){t.next=20;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 20:return t.abrupt(\"return\",{ext:\"ps\",mime:\"application/postscript\"});case 21:if(!n([31,160])&&!n([31,157])){t.next=23;break}return t.abrupt(\"return\",{ext:\"Z\",mime:\"application/x-compress\"});case 23:if(!n([255,216,255])){t.next=25;break}return t.abrupt(\"return\",{ext:\"jpg\",mime:\"image/jpeg\"});case 25:if(!n([73,73,188])){t.next=27;break}return t.abrupt(\"return\",{ext:\"jxr\",mime:\"image/vnd.ms-photo\"});case 27:if(!n([31,139,8])){t.next=29;break}return t.abrupt(\"return\",{ext:\"gz\",mime:\"application/gzip\"});case 29:if(!n([66,90,104])){t.next=31;break}return t.abrupt(\"return\",{ext:\"bz2\",mime:\"application/x-bzip2\"});case 31:if(!i(\"ID3\")){t.next=42;break}return t.next=34,e.ignore(6);case 34:return t.next=36,e.readToken(uint32SyncSafeToken);case 36:if(a=t.sent,!(e.position+a>e.fileInfo.size)){t.next=39;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 39:return t.next=41,e.ignore(a);case 41:return t.abrupt(\"return\",fromTokenizer(e));case 42:if(!i(\"MP+\")){t.next=44;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 44:if(67!==r[0]&&70!==r[0]||!n([87,83],{offset:1})){t.next=46;break}return t.abrupt(\"return\",{ext:\"swf\",mime:\"application/x-shockwave-flash\"});case 46:if(!n([71,73,70])){t.next=48;break}return t.abrupt(\"return\",{ext:\"gif\",mime:\"image/gif\"});case 48:if(!i(\"FLIF\")){t.next=50;break}return t.abrupt(\"return\",{ext:\"flif\",mime:\"image/flif\"});case 50:if(!i(\"8BPS\")){t.next=52;break}return t.abrupt(\"return\",{ext:\"psd\",mime:\"image/vnd.adobe.photoshop\"});case 52:if(!i(\"WEBP\",{offset:8})){t.next=54;break}return t.abrupt(\"return\",{ext:\"webp\",mime:\"image/webp\"});case 54:if(!i(\"MPCK\")){t.next=56;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 56:if(!i(\"FORM\")){t.next=58;break}return t.abrupt(\"return\",{ext:\"aif\",mime:\"audio/aiff\"});case 58:if(!i(\"icns\",{offset:0})){t.next=60;break}return t.abrupt(\"return\",{ext:\"icns\",mime:\"image/icns\"});case 60:if(!n([80,75,3,4])){t.next=121;break}t.prev=61;case 62:if(!(e.position+30<e.fileInfo.size)){t.next=114;break}return t.next=65,e.readBuffer(r,{length:30});case 65:return o={compressedSize:r.readUInt32LE(18),uncompressedSize:r.readUInt32LE(22),filenameLength:r.readUInt16LE(26),extraFieldLength:r.readUInt16LE(28)},t.next=68,e.readToken(new Token.StringType(o.filenameLength,\"utf-8\"));case 68:return o.filename=t.sent,t.next=71,e.ignore(o.extraFieldLength);case 71:if(\"META-INF/mozilla.rsa\"!==o.filename){t.next=73;break}return t.abrupt(\"return\",{ext:\"xpi\",mime:\"application/x-xpinstall\"});case 73:if(!o.filename.endsWith(\".rels\")&&!o.filename.endsWith(\".xml\")){t.next=83;break}s=o.filename.split(\"/\")[0],t.t0=s,t.next=\"_rels\"===t.t0?78:\"word\"===t.t0?79:\"ppt\"===t.t0?80:\"xl\"===t.t0?81:82;break;case 78:return t.abrupt(\"break\",83);case 79:return t.abrupt(\"return\",{ext:\"docx\",mime:\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"});case 80:return t.abrupt(\"return\",{ext:\"pptx\",mime:\"application/vnd.openxmlformats-officedocument.presentationml.presentation\"});case 81:return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 82:return t.abrupt(\"break\",83);case 83:if(!o.filename.startsWith(\"xl/\")){t.next=85;break}return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 85:if(!o.filename.startsWith(\"3D/\")||!o.filename.endsWith(\".model\")){t.next=87;break}return t.abrupt(\"return\",{ext:\"3mf\",mime:\"model/3mf\"});case 87:if(\"mimetype\"!==o.filename||o.compressedSize!==o.uncompressedSize){t.next=98;break}return t.next=90,e.readToken(new Token.StringType(o.compressedSize,\"utf-8\"));case 90:u=t.sent,t.t1=u,t.next=\"application/epub+zip\"===t.t1?94:\"application/vnd.oasis.opendocument.text\"===t.t1?95:\"application/vnd.oasis.opendocument.spreadsheet\"===t.t1?96:\"application/vnd.oasis.opendocument.presentation\"===t.t1?97:98;break;case 94:return t.abrupt(\"return\",{ext:\"epub\",mime:\"application/epub+zip\"});case 95:return t.abrupt(\"return\",{ext:\"odt\",mime:\"application/vnd.oasis.opendocument.text\"});case 96:return t.abrupt(\"return\",{ext:\"ods\",mime:\"application/vnd.oasis.opendocument.spreadsheet\"});case 97:return t.abrupt(\"return\",{ext:\"odp\",mime:\"application/vnd.oasis.opendocument.presentation\"});case 98:if(0!==o.compressedSize){t.next=110;break}f=-1;case 100:if(!(f<0&&e.position<e.fileInfo.size)){t.next=108;break}return t.next=103,e.peekBuffer(r,{mayBeLess:!0});case 103:return f=r.indexOf(\"504B0304\",0,\"hex\"),t.next=106,e.ignore(f>=0?f:r.length);case 106:t.next=100;break;case 108:t.next=112;break;case 110:return t.next=112,e.ignore(o.compressedSize);case 112:t.next=62;break;case 114:t.next=120;break;case 116:if(t.prev=116,t.t2=t.catch(61),t.t2 instanceof strtok3.EndOfStreamError){t.next=120;break}throw t.t2;case 120:return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 121:if(!i(\"OggS\")){t.next=140;break}return t.next=124,e.ignore(28);case 124:return c=Buffer.alloc(8),t.next=127,e.readBuffer(c);case 127:if(!_check(c,[79,112,117,115,72,101,97,100])){t.next=129;break}return t.abrupt(\"return\",{ext:\"opus\",mime:\"audio/opus\"});case 129:if(!_check(c,[128,116,104,101,111,114,97])){t.next=131;break}return t.abrupt(\"return\",{ext:\"ogv\",mime:\"video/ogg\"});case 131:if(!_check(c,[1,118,105,100,101,111,0])){t.next=133;break}return t.abrupt(\"return\",{ext:\"ogm\",mime:\"video/ogg\"});case 133:if(!_check(c,[127,70,76,65,67])){t.next=135;break}return t.abrupt(\"return\",{ext:\"oga\",mime:\"audio/ogg\"});case 135:if(!_check(c,[83,112,101,101,120,32,32])){t.next=137;break}return t.abrupt(\"return\",{ext:\"spx\",mime:\"audio/ogg\"});case 137:if(!_check(c,[1,118,111,114,98,105,115])){t.next=139;break}return t.abrupt(\"return\",{ext:\"ogg\",mime:\"audio/ogg\"});case 139:return t.abrupt(\"return\",{ext:\"ogx\",mime:\"application/ogg\"});case 140:if(!n([80,75])||3!==r[2]&&5!==r[2]&&7!==r[2]||4!==r[3]&&6!==r[3]&&8!==r[3]){t.next=142;break}return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 142:if(!(i(\"ftyp\",{offset:4})&&96&r[8])){t.next=167;break}h=r.toString(\"binary\",8,12).replace(\"\\0\",\" \").trim(),t.t3=h,t.next=\"avif\"===t.t3?147:\"mif1\"===t.t3?148:\"msf1\"===t.t3?149:\"heic\"===t.t3||\"heix\"===t.t3?150:\"hevc\"===t.t3||\"hevx\"===t.t3?151:\"qt\"===t.t3?152:\"M4V\"===t.t3||\"M4VH\"===t.t3||\"M4VP\"===t.t3?153:\"M4P\"===t.t3?154:\"M4B\"===t.t3?155:\"M4A\"===t.t3?156:\"F4V\"===t.t3?157:\"F4P\"===t.t3?158:\"F4A\"===t.t3?159:\"F4B\"===t.t3?160:\"crx\"===t.t3?161:162;break;case 147:return t.abrupt(\"return\",{ext:\"avif\",mime:\"image/avif\"});case 148:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif\"});case 149:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif-sequence\"});case 150:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic\"});case 151:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic-sequence\"});case 152:return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 153:return t.abrupt(\"return\",{ext:\"m4v\",mime:\"video/x-m4v\"});case 154:return t.abrupt(\"return\",{ext:\"m4p\",mime:\"video/mp4\"});case 155:return t.abrupt(\"return\",{ext:\"m4b\",mime:\"audio/mp4\"});case 156:return t.abrupt(\"return\",{ext:\"m4a\",mime:\"audio/x-m4a\"});case 157:return t.abrupt(\"return\",{ext:\"f4v\",mime:\"video/mp4\"});case 158:return t.abrupt(\"return\",{ext:\"f4p\",mime:\"video/mp4\"});case 159:return t.abrupt(\"return\",{ext:\"f4a\",mime:\"audio/mp4\"});case 160:return t.abrupt(\"return\",{ext:\"f4b\",mime:\"audio/mp4\"});case 161:return t.abrupt(\"return\",{ext:\"cr3\",mime:\"image/x-canon-cr3\"});case 162:if(!h.startsWith(\"3g\")){t.next=166;break}if(!h.startsWith(\"3g2\")){t.next=165;break}return t.abrupt(\"return\",{ext:\"3g2\",mime:\"video/3gpp2\"});case 165:return t.abrupt(\"return\",{ext:\"3gp\",mime:\"video/3gpp\"});case 166:return t.abrupt(\"return\",{ext:\"mp4\",mime:\"video/mp4\"});case 167:if(!i(\"MThd\")){t.next=169;break}return t.abrupt(\"return\",{ext:\"mid\",mime:\"audio/midi\"});case 169:if(!i(\"wOFF\")||!n([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=171;break}return t.abrupt(\"return\",{ext:\"woff\",mime:\"font/woff\"});case 171:if(!i(\"wOF2\")||!n([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=173;break}return t.abrupt(\"return\",{ext:\"woff2\",mime:\"font/woff2\"});case 173:if(!n([212,195,178,161])&&!n([161,178,195,212])){t.next=175;break}return t.abrupt(\"return\",{ext:\"pcap\",mime:\"application/vnd.tcpdump.pcap\"});case 175:if(!i(\"DSD \")){t.next=177;break}return t.abrupt(\"return\",{ext:\"dsf\",mime:\"audio/x-dsf\"});case 177:if(!i(\"LZIP\")){t.next=179;break}return t.abrupt(\"return\",{ext:\"lz\",mime:\"application/x-lzip\"});case 179:if(!i(\"fLaC\")){t.next=181;break}return t.abrupt(\"return\",{ext:\"flac\",mime:\"audio/x-flac\"});case 181:if(!n([66,80,71,251])){t.next=183;break}return t.abrupt(\"return\",{ext:\"bpg\",mime:\"image/bpg\"});case 183:if(!i(\"wvpk\")){t.next=185;break}return t.abrupt(\"return\",{ext:\"wv\",mime:\"audio/wavpack\"});case 185:if(!i(\"%PDF\")){t.next=195;break}return t.next=188,e.ignore(1350);case 188:return 10485760,l=Buffer.alloc(Math.min(10485760,e.fileInfo.size)),t.next=192,e.readBuffer(l,{mayBeLess:!0});case 192:if(!l.includes(Buffer.from(\"AIPrivateData\"))){t.next=194;break}return t.abrupt(\"return\",{ext:\"ai\",mime:\"application/postscript\"});case 194:return t.abrupt(\"return\",{ext:\"pdf\",mime:\"application/pdf\"});case 195:if(!n([0,97,115,109])){t.next=197;break}return t.abrupt(\"return\",{ext:\"wasm\",mime:\"application/wasm\"});case 197:if(!n([73,73,42,0])){t.next=210;break}if(!i(\"CR\",{offset:8})){t.next=200;break}return t.abrupt(\"return\",{ext:\"cr2\",mime:\"image/x-canon-cr2\"});case 200:if(!n([28,0,254,0],{offset:8})&&!n([31,0,11,0],{offset:8})){t.next=202;break}return t.abrupt(\"return\",{ext:\"nef\",mime:\"image/x-nikon-nef\"});case 202:if(!n([8,0,0,0],{offset:4})||!n([45,0,254,0],{offset:8})&&!n([39,0,254,0],{offset:8})){t.next=204;break}return t.abrupt(\"return\",{ext:\"dng\",mime:\"image/x-adobe-dng\"});case 204:return r=Buffer.alloc(24),t.next=207,e.peekBuffer(r);case 207:if(!n([16,251,134,1],{offset:4})&&!n([8,0,0,0],{offset:4})||!n([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})){t.next=209;break}return t.abrupt(\"return\",{ext:\"arw\",mime:\"image/x-sony-arw\"});case 209:return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 210:if(!n([77,77,0,42])){t.next=212;break}return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 212:if(!i(\"MAC \")){t.next=214;break}return t.abrupt(\"return\",{ext:\"ape\",mime:\"audio/ape\"});case 214:if(!n([26,69,223,163])){t.next=230;break}return p=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r,n,i,a;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peekNumber(Token.UINT8);case 2:for(r=t.sent,n=128,i=0;!(r&n)&&0!==n;)++i,n>>=1;return a=Buffer.alloc(i+1),t.next=9,e.readBuffer(a);case 9:return t.abrupt(\"return\",a);case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),d=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:return e=t.sent,t.next=5,p();case 5:return(r=t.sent)[0]^=128>>r.length-1,n=Math.min(6,r.length),t.abrupt(\"return\",{id:e.readUIntBE(0,e.length),len:r.readUIntBE(r.length-n,n)});case 9:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(r,n){var i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n>0)){t.next=11;break}return t.next=3,d();case 3:if(17026!==(i=t.sent).id){t.next=6;break}return t.abrupt(\"return\",e.readToken(new Token.StringType(i.len,\"utf-8\")));case 6:return t.next=8,e.ignore(i.len);case 8:--n,t.next=0;break;case 11:case\"end\":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),t.next=220,d();case 220:return y=t.sent,t.next=223,m(1,y.len);case 223:b=t.sent,t.t4=b,t.next=\"webm\"===t.t4?227:\"matroska\"===t.t4?228:229;break;case 227:return t.abrupt(\"return\",{ext:\"webm\",mime:\"video/webm\"});case 228:return t.abrupt(\"return\",{ext:\"mkv\",mime:\"video/x-matroska\"});case 229:return t.abrupt(\"return\");case 230:if(!n([82,73,70,70])){t.next=237;break}if(!n([65,86,73],{offset:8})){t.next=233;break}return t.abrupt(\"return\",{ext:\"avi\",mime:\"video/vnd.avi\"});case 233:if(!n([87,65,86,69],{offset:8})){t.next=235;break}return t.abrupt(\"return\",{ext:\"wav\",mime:\"audio/vnd.wave\"});case 235:if(!n([81,76,67,77],{offset:8})){t.next=237;break}return t.abrupt(\"return\",{ext:\"qcp\",mime:\"audio/qcelp\"});case 237:if(!i(\"SQLi\")){t.next=239;break}return t.abrupt(\"return\",{ext:\"sqlite\",mime:\"application/x-sqlite3\"});case 239:if(!n([78,69,83,26])){t.next=241;break}return t.abrupt(\"return\",{ext:\"nes\",mime:\"application/x-nintendo-nes-rom\"});case 241:if(!i(\"Cr24\")){t.next=243;break}return t.abrupt(\"return\",{ext:\"crx\",mime:\"application/x-google-chrome-extension\"});case 243:if(!i(\"MSCF\")&&!i(\"ISc(\")){t.next=245;break}return t.abrupt(\"return\",{ext:\"cab\",mime:\"application/vnd.ms-cab-compressed\"});case 245:if(!n([237,171,238,219])){t.next=247;break}return t.abrupt(\"return\",{ext:\"rpm\",mime:\"application/x-rpm\"});case 247:if(!n([197,208,211,198])){t.next=249;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 249:if(!n([40,181,47,253])){t.next=251;break}return t.abrupt(\"return\",{ext:\"zst\",mime:\"application/zstd\"});case 251:if(!n([79,84,84,79,0])){t.next=253;break}return t.abrupt(\"return\",{ext:\"otf\",mime:\"font/otf\"});case 253:if(!i(\"#!AMR\")){t.next=255;break}return t.abrupt(\"return\",{ext:\"amr\",mime:\"audio/amr\"});case 255:if(!i(\"{\\\\rtf\")){t.next=257;break}return t.abrupt(\"return\",{ext:\"rtf\",mime:\"application/rtf\"});case 257:if(!n([70,76,86,1])){t.next=259;break}return t.abrupt(\"return\",{ext:\"flv\",mime:\"video/x-flv\"});case 259:if(!i(\"IMPM\")){t.next=261;break}return t.abrupt(\"return\",{ext:\"it\",mime:\"audio/x-it\"});case 261:if(!(i(\"-lh0-\",{offset:2})||i(\"-lh1-\",{offset:2})||i(\"-lh2-\",{offset:2})||i(\"-lh3-\",{offset:2})||i(\"-lh4-\",{offset:2})||i(\"-lh5-\",{offset:2})||i(\"-lh6-\",{offset:2})||i(\"-lh7-\",{offset:2})||i(\"-lzs-\",{offset:2})||i(\"-lz4-\",{offset:2})||i(\"-lz5-\",{offset:2})||i(\"-lhd-\",{offset:2}))){t.next=263;break}return t.abrupt(\"return\",{ext:\"lzh\",mime:\"application/x-lzh-compressed\"});case 263:if(!n([0,0,1,186])){t.next=268;break}if(!n([33],{offset:4,mask:[241]})){t.next=266;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP1S\"});case 266:if(!n([68],{offset:4,mask:[196]})){t.next=268;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP2P\"});case 268:if(!i(\"ITSF\")){t.next=270;break}return t.abrupt(\"return\",{ext:\"chm\",mime:\"application/vnd.ms-htmlhelp\"});case 270:if(!n([253,55,122,88,90,0])){t.next=272;break}return t.abrupt(\"return\",{ext:\"xz\",mime:\"application/x-xz\"});case 272:if(!i(\"<?xml \")){t.next=274;break}return t.abrupt(\"return\",{ext:\"xml\",mime:\"application/xml\"});case 274:if(!n([55,122,188,175,39,28])){t.next=276;break}return t.abrupt(\"return\",{ext:\"7z\",mime:\"application/x-7z-compressed\"});case 276:if(!n([82,97,114,33,26,7])||0!==r[6]&&1!==r[6]){t.next=278;break}return t.abrupt(\"return\",{ext:\"rar\",mime:\"application/x-rar-compressed\"});case 278:if(!i(\"solid \")){t.next=280;break}return t.abrupt(\"return\",{ext:\"stl\",mime:\"model/stl\"});case 280:if(!i(\"BLENDER\")){t.next=282;break}return t.abrupt(\"return\",{ext:\"blend\",mime:\"application/x-blender\"});case 282:if(!i(\"!<arch>\")){t.next=291;break}return t.next=285,e.ignore(8);case 285:return t.next=287,e.readToken(new Token.StringType(13,\"ascii\"));case 287:if(\"debian-binary\"!==t.sent){t.next=290;break}return t.abrupt(\"return\",{ext:\"deb\",mime:\"application/x-deb\"});case 290:return t.abrupt(\"return\",{ext:\"ar\",mime:\"application/x-unix-archive\"});case 291:if(!n([137,80,78,71,13,10,26,10])){t.next=309;break}return g=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.readToken(Token.INT32_BE);case 2:return t.t0=t.sent,t.next=5,e.readToken(new Token.StringType(4,\"binary\"));case 5:return t.t1=t.sent,t.abrupt(\"return\",{length:t.t0,type:t.t1});case 7:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=295,e.ignore(8);case 295:return t.next=297,g();case 297:if(!((v=t.sent).length<0)){t.next=300;break}return t.abrupt(\"return\");case 300:t.t5=v.type,t.next=\"IDAT\"===t.t5?303:\"acTL\"===t.t5?304:305;break;case 303:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 304:return t.abrupt(\"return\",{ext:\"apng\",mime:\"image/apng\"});case 305:return t.next=307,e.ignore(v.length+4);case 307:if(e.position+8<e.fileInfo.size){t.next=295;break}case 308:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 309:if(!n([65,82,82,79,87,49,0,0])){t.next=311;break}return t.abrupt(\"return\",{ext:\"arrow\",mime:\"application/x-apache-arrow\"});case 311:if(!n([103,108,84,70,2,0,0,0])){t.next=313;break}return t.abrupt(\"return\",{ext:\"glb\",mime:\"model/gltf-binary\"});case 313:if(!(n([102,114,101,101],{offset:4})||n([109,100,97,116],{offset:4})||n([109,111,111,118],{offset:4})||n([119,105,100,101],{offset:4}))){t.next=315;break}return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 315:if(!n([73,73,82,79,8,0,0,0,24])){t.next=317;break}return t.abrupt(\"return\",{ext:\"orf\",mime:\"image/x-olympus-orf\"});case 317:if(!i(\"gimp xcf \")){t.next=319;break}return t.abrupt(\"return\",{ext:\"xcf\",mime:\"image/x-xcf\"});case 319:if(!n([73,73,85,0,24,0,0,0,136,231,116,216])){t.next=321;break}return t.abrupt(\"return\",{ext:\"rw2\",mime:\"image/x-panasonic-rw2\"});case 321:if(!n([48,38,178,117,142,102,207,17,166,217])){t.next=346;break}return w=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(16),t.next=3,e.readBuffer(r);case 3:return t.t0=r,t.t1=Number,t.next=7,e.readToken(Token.UINT64_LE);case 7:return t.t2=t.sent,t.t3=(0,t.t1)(t.t2),t.abrupt(\"return\",{id:t.t0,size:t.t3});case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=325,e.ignore(30);case 325:if(!(e.position+24<e.fileInfo.size)){t.next=345;break}return t.next=328,w();case 328:if(_=t.sent,x=_.size-24,!_check(_.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){t.next=341;break}return E=Buffer.alloc(16),t.t6=x,t.next=335,e.readBuffer(E);case 335:if(x=t.t6-=t.sent,!_check(E,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=338;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"audio/x-ms-asf\"});case 338:if(!_check(E,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=340;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"video/x-ms-asf\"});case 340:return t.abrupt(\"break\",345);case 341:return t.next=343,e.ignore(x);case 343:t.next=325;break;case 345:return t.abrupt(\"return\",{ext:\"asf\",mime:\"application/vnd.ms-asf\"});case 346:if(!n([171,75,84,88,32,49,49,187,13,10,26,10])){t.next=348;break}return t.abrupt(\"return\",{ext:\"ktx\",mime:\"image/ktx\"});case 348:if(!n([126,16,4])&&!n([126,24,4])||!n([48,77,73,69],{offset:4})){t.next=350;break}return t.abrupt(\"return\",{ext:\"mie\",mime:\"application/x-mie\"});case 350:if(!n([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2})){t.next=352;break}return t.abrupt(\"return\",{ext:\"shp\",mime:\"application/x-esri-shape\"});case 352:if(!n([0,0,0,12,106,80,32,32,13,10,135,10])){t.next=366;break}return t.next=355,e.ignore(20);case 355:return t.next=357,e.readToken(new Token.StringType(4,\"ascii\"));case 357:D=t.sent,t.t7=D,t.next=\"jp2 \"===t.t7?361:\"jpx \"===t.t7?362:\"jpm \"===t.t7?363:\"mjp2\"===t.t7?364:365;break;case 361:return t.abrupt(\"return\",{ext:\"jp2\",mime:\"image/jp2\"});case 362:return t.abrupt(\"return\",{ext:\"jpx\",mime:\"image/jpx\"});case 363:return t.abrupt(\"return\",{ext:\"jpm\",mime:\"image/jpm\"});case 364:return t.abrupt(\"return\",{ext:\"mj2\",mime:\"image/mj2\"});case 365:return t.abrupt(\"return\");case 366:if(!n([255,10])&&!n([0,0,0,12,74,88,76,32,13,10,135,10])){t.next=368;break}return t.abrupt(\"return\",{ext:\"jxl\",mime:\"image/jxl\"});case 368:if(!n([0,0,1,186])&&!n([0,0,1,179])){t.next=370;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/mpeg\"});case 370:if(!n([0,1,0,0,0])){t.next=372;break}return t.abrupt(\"return\",{ext:\"ttf\",mime:\"font/ttf\"});case 372:if(!n([0,0,1,0])){t.next=374;break}return t.abrupt(\"return\",{ext:\"ico\",mime:\"image/x-icon\"});case 374:if(!n([0,0,2,0])){t.next=376;break}return t.abrupt(\"return\",{ext:\"cur\",mime:\"image/x-icon\"});case 376:if(!n([208,207,17,224,161,177,26,225])){t.next=378;break}return t.abrupt(\"return\",{ext:\"cfb\",mime:\"application/x-cfb\"});case 378:return t.next=380,e.peekBuffer(r,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0});case 380:if(!i(\"BEGIN:\")){t.next=385;break}if(!i(\"VCARD\",{offset:6})){t.next=383;break}return t.abrupt(\"return\",{ext:\"vcf\",mime:\"text/vcard\"});case 383:if(!i(\"VCALENDAR\",{offset:6})){t.next=385;break}return t.abrupt(\"return\",{ext:\"ics\",mime:\"text/calendar\"});case 385:if(!i(\"FUJIFILMCCD-RAW\")){t.next=387;break}return t.abrupt(\"return\",{ext:\"raf\",mime:\"image/x-fujifilm-raf\"});case 387:if(!i(\"Extended Module:\")){t.next=389;break}return t.abrupt(\"return\",{ext:\"xm\",mime:\"audio/x-xm\"});case 389:if(!i(\"Creative Voice File\")){t.next=391;break}return t.abrupt(\"return\",{ext:\"voc\",mime:\"audio/x-voc\"});case 391:if(!(n([4,0,0,0])&&r.length>=16)){t.next=403;break}if(!((k=r.readUInt32LE(12))>12&&r.length>=k+16)){t.next=403;break}if(t.prev=394,A=r.slice(16,k+16).toString(),!JSON.parse(A).files){t.next=399;break}return t.abrupt(\"return\",{ext:\"asar\",mime:\"application/x-asar\"});case 399:t.next=403;break;case 401:t.prev=401,t.t8=t.catch(394);case 403:if(!n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){t.next=405;break}return t.abrupt(\"return\",{ext:\"mxf\",mime:\"application/mxf\"});case 405:if(!i(\"SCRM\",{offset:44})){t.next=407;break}return t.abrupt(\"return\",{ext:\"s3m\",mime:\"audio/x-s3m\"});case 407:if(!n([71],{offset:4})||!n([71],{offset:192})&&!n([71],{offset:196})){t.next=409;break}return t.abrupt(\"return\",{ext:\"mts\",mime:\"video/mp2t\"});case 409:if(!n([66,79,79,75,77,79,66,73],{offset:60})){t.next=411;break}return t.abrupt(\"return\",{ext:\"mobi\",mime:\"application/x-mobipocket-ebook\"});case 411:if(!n([68,73,67,77],{offset:128})){t.next=413;break}return t.abrupt(\"return\",{ext:\"dcm\",mime:\"application/dicom\"});case 413:if(!n([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70])){t.next=415;break}return t.abrupt(\"return\",{ext:\"lnk\",mime:\"application/x.ms.shortcut\"});case 415:if(!n([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0])){t.next=417;break}return t.abrupt(\"return\",{ext:\"alias\",mime:\"application/x.apple.alias\"});case 417:if(!n([76,80],{offset:34})||!(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))){t.next=419;break}return t.abrupt(\"return\",{ext:\"eot\",mime:\"application/vnd.ms-fontobject\"});case 419:if(!n([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29])){t.next=421;break}return t.abrupt(\"return\",{ext:\"indd\",mime:\"application/x-indesign\"});case 421:return t.next=423,e.peekBuffer(r,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0});case 423:if(!tarHeaderChecksumMatches(r)){t.next=425;break}return t.abrupt(\"return\",{ext:\"tar\",mime:\"application/x-tar\"});case 425:if(!n([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0])){t.next=427;break}return t.abrupt(\"return\",{ext:\"skp\",mime:\"application/vnd.sketchup.skp\"});case 427:if(!i(\"-----BEGIN PGP MESSAGE-----\")){t.next=429;break}return t.abrupt(\"return\",{ext:\"pgp\",mime:\"application/pgp-encrypted\"});case 429:if(!(r.length>=2&&n([255,224],{offset:0,mask:[255,224]}))){t.next=440;break}if(!n([16],{offset:1,mask:[22]})){t.next=434;break}if(!n([8],{offset:1,mask:[8]})){t.next=433;break}return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 433:return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 434:if(!n([2],{offset:1,mask:[6]})){t.next=436;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 436:if(!n([4],{offset:1,mask:[6]})){t.next=438;break}return t.abrupt(\"return\",{ext:\"mp2\",mime:\"audio/mpeg\"});case 438:if(!n([6],{offset:1,mask:[6]})){t.next=440;break}return t.abrupt(\"return\",{ext:\"mp1\",mime:\"audio/mpeg\"});case 440:case\"end\":return t.stop()}}),t,null,[[61,116],[394,401]])}))),_fromTokenizer3.apply(this,arguments)}var stream=function stream(readableStream){return new Promise((function(resolve,reject){var stream=eval(\"require\")(\"stream\");readableStream.on(\"error\",reject),readableStream.once(\"readable\",_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new stream.PassThrough,r=stream.pipeline?stream.pipeline(readableStream,e,(function(){})):readableStream.pipe(e),n=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0),t.prev=3,t.next=6,fromBuffer(n);case 6:i=t.sent,e.fileType=i,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),reject(t.t0);case 13:resolve(r);case 14:case\"end\":return t.stop()}}),t,null,[[3,10]])}))))}))},fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,\"extensions\",{get:function(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,\"mimeTypes\",{get:function(){return new Set(supported.mimeTypes)}}),module.exports=fileType}).call(this,__webpack_require__(2).Buffer)},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function o(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function s(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;var u=r(67);function f(t){return new DataView(t.buffer,t.byteOffset)}e.UINT8={len:1,get:function(t,e){return f(t).getUint8(e)},put:function(t,e,r){return f(t).setUint8(e,r),e+1}},e.UINT16_LE={len:2,get:function(t,e){return f(t).getUint16(e,!0)},put:function(t,e,r){return f(t).setUint16(e,r,!0),e+2}},e.UINT16_BE={len:2,get:function(t,e){return f(t).getUint16(e)},put:function(t,e,r){return f(t).setUint16(e,r),e+2}},e.UINT24_LE={len:3,get:function(t,e){var r=f(t);return r.getUint8(e)+(r.getUint16(e+1,!0)<<8)},put:function(t,e,r){var n=f(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.UINT24_BE={len:3,get:function(t,e){var r=f(t);return(r.getUint16(e)<<8)+r.getUint8(e+2)},put:function(t,e,r){var n=f(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.UINT32_LE={len:4,get:function(t,e){return f(t).getUint32(e,!0)},put:function(t,e,r){return f(t).setUint32(e,r,!0),e+4}},e.UINT32_BE={len:4,get:function(t,e){return f(t).getUint32(e)},put:function(t,e,r){return f(t).setUint32(e,r),e+4}},e.INT8={len:1,get:function(t,e){return f(t).getInt8(e)},put:function(t,e,r){return f(t).setInt8(e,r),e+1}},e.INT16_BE={len:2,get:function(t,e){return f(t).getInt16(e)},put:function(t,e,r){return f(t).setInt16(e,r),e+2}},e.INT16_LE={len:2,get:function(t,e){return f(t).getInt16(e,!0)},put:function(t,e,r){return f(t).setInt16(e,r,!0),e+2}},e.INT24_LE={len:3,get:function(t,r){var n=e.UINT24_LE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=f(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.INT24_BE={len:3,get:function(t,r){var n=e.UINT24_BE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=f(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.INT32_BE={len:4,get:function(t,e){return f(t).getInt32(e)},put:function(t,e,r){return f(t).setInt32(e,r),e+4}},e.INT32_LE={len:4,get:function(t,e){return f(t).getInt32(e,!0)},put:function(t,e,r){return f(t).setInt32(e,r,!0),e+4}},e.UINT64_LE={len:8,get:function(t,e){return f(t).getBigUint64(e,!0)},put:function(t,e,r){return f(t).setBigUint64(e,r,!0),e+8}},e.INT64_LE={len:8,get:function(t,e){return f(t).getBigInt64(e,!0)},put:function(t,e,r){return f(t).setBigInt64(e,r,!0),e+8}},e.UINT64_BE={len:8,get:function(t,e){return f(t).getBigUint64(e)},put:function(t,e,r){return f(t).setBigUint64(e,r),e+8}},e.INT64_BE={len:8,get:function(t,e){return f(t).getBigInt64(e)},put:function(t,e,r){return f(t).setBigInt64(e,r),e+8}},e.Float16_BE={len:2,get:function(t,e){return u.read(t,e,!1,10,this.len)},put:function(t,e,r){return u.write(t,r,e,!1,10,this.len),e+this.len}},e.Float16_LE={len:2,get:function(t,e){return u.read(t,e,!0,10,this.len)},put:function(t,e,r){return u.write(t,r,e,!0,10,this.len),e+this.len}},e.Float32_BE={len:4,get:function(t,e){return f(t).getFloat32(e)},put:function(t,e,r){return f(t).setFloat32(e,r),e+4}},e.Float32_LE={len:4,get:function(t,e){return f(t).getFloat32(e,!0)},put:function(t,e,r){return f(t).setFloat32(e,r,!0),e+4}},e.Float64_BE={len:8,get:function(t,e){return f(t).getFloat64(e)},put:function(t,e,r){return f(t).setFloat64(e,r),e+8}},e.Float64_LE={len:8,get:function(t,e){return f(t).getFloat64(e,!0)},put:function(t,e,r){return f(t).setFloat64(e,r,!0),e+8}},e.Float80_BE={len:10,get:function(t,e){return u.read(t,e,!1,63,this.len)},put:function(t,e,r){return u.write(t,r,e,!1,63,this.len),e+this.len}},e.Float80_LE={len:10,get:function(t,e){return u.read(t,e,!0,63,this.len)},put:function(t,e,r){return u.write(t,r,e,!0,63,this.len),e+this.len}};var c=function(){return o((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){}}])}();e.IgnoreType=c;var h=function(){return o((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){return t.subarray(e,e+this.len)}}])}();e.Uint8ArrayType=h;var l=function(){return o((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(e,r){return t.from(e.subarray(r,r+this.len))}}])}();e.BufferType=l;var p=function(){return o((function t(e,r){i(this,t),this.len=e,this.encoding=r}),[{key:\"get\",value:function(e,r){return t.from(e).toString(this.encoding,r,r+this.len)}}])}();e.StringType=p;var d=function(){function t(e){i(this,t),this.len=e}return o(t,[{key:\"get\",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.decode(e,r,r+this.len)}}],[{key:\"decode\",value:function(e,r,n){for(var i=\"\",a=r;a<n;++a)i+=t.codePointToString(t.singleByteDecoder(e[a]));return i}},{key:\"inRange\",value:function(t,e,r){return e<=t&&t<=r}},{key:\"codePointToString\",value:function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}},{key:\"singleByteDecoder\",value:function(e){if(t.inRange(e,0,127))return e;var r=t.windows1252[e-128];if(null===r)throw Error(\"invaliding encoding\");return r}}])}();e.AnsiStringType=d,d.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.stringToBytes=function(t){return n(t).map((function(t){return t.charCodeAt(0)}))},e.tarHeaderChecksumMatches=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=parseInt(t.toString(\"utf8\",148,154).replace(/\\0.*$/,\"\").trim(),8);if(isNaN(r))return!1;for(var n=256,i=e;i<e+148;i++)n+=t[i];for(var a=e+156;a<e+512;a++)n+=t[a];return r===n},e.uint32SyncSafeToken={get:function(t,e){return 127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21},len:4}},function(t,e,r){\"use strict\";t.exports={extensions:[\"jpg\",\"png\",\"apng\",\"gif\",\"webp\",\"flif\",\"xcf\",\"cr2\",\"cr3\",\"orf\",\"arw\",\"dng\",\"nef\",\"rw2\",\"raf\",\"tif\",\"bmp\",\"icns\",\"jxr\",\"psd\",\"indd\",\"zip\",\"tar\",\"rar\",\"gz\",\"bz2\",\"7z\",\"dmg\",\"mp4\",\"mid\",\"mkv\",\"webm\",\"mov\",\"avi\",\"mpg\",\"mp2\",\"mp3\",\"m4a\",\"oga\",\"ogg\",\"ogv\",\"opus\",\"flac\",\"wav\",\"spx\",\"amr\",\"pdf\",\"epub\",\"exe\",\"swf\",\"rtf\",\"wasm\",\"woff\",\"woff2\",\"eot\",\"ttf\",\"otf\",\"ico\",\"flv\",\"ps\",\"xz\",\"sqlite\",\"nes\",\"crx\",\"xpi\",\"cab\",\"deb\",\"ar\",\"rpm\",\"Z\",\"lz\",\"cfb\",\"mxf\",\"mts\",\"blend\",\"bpg\",\"docx\",\"pptx\",\"xlsx\",\"3gp\",\"3g2\",\"jp2\",\"jpm\",\"jpx\",\"mj2\",\"aif\",\"qcp\",\"odt\",\"ods\",\"odp\",\"xml\",\"mobi\",\"heic\",\"cur\",\"ktx\",\"ape\",\"wv\",\"dcm\",\"ics\",\"glb\",\"pcap\",\"dsf\",\"lnk\",\"alias\",\"voc\",\"ac3\",\"m4v\",\"m4p\",\"m4b\",\"f4v\",\"f4p\",\"f4b\",\"f4a\",\"mie\",\"asf\",\"ogm\",\"ogx\",\"mpc\",\"arrow\",\"shp\",\"aac\",\"mp1\",\"it\",\"s3m\",\"xm\",\"ai\",\"skp\",\"avif\",\"eps\",\"lzh\",\"pgp\",\"asar\",\"stl\",\"chm\",\"3mf\",\"zst\",\"jxl\",\"vcf\"],mimeTypes:[\"image/jpeg\",\"image/png\",\"image/gif\",\"image/webp\",\"image/flif\",\"image/x-xcf\",\"image/x-canon-cr2\",\"image/x-canon-cr3\",\"image/tiff\",\"image/bmp\",\"image/vnd.ms-photo\",\"image/vnd.adobe.photoshop\",\"application/x-indesign\",\"application/epub+zip\",\"application/x-xpinstall\",\"application/vnd.oasis.opendocument.text\",\"application/vnd.oasis.opendocument.spreadsheet\",\"application/vnd.oasis.opendocument.presentation\",\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\"application/zip\",\"application/x-tar\",\"application/x-rar-compressed\",\"application/gzip\",\"application/x-bzip2\",\"application/x-7z-compressed\",\"application/x-apple-diskimage\",\"application/x-apache-arrow\",\"video/mp4\",\"audio/midi\",\"video/x-matroska\",\"video/webm\",\"video/quicktime\",\"video/vnd.avi\",\"audio/vnd.wave\",\"audio/qcelp\",\"audio/x-ms-asf\",\"video/x-ms-asf\",\"application/vnd.ms-asf\",\"video/mpeg\",\"video/3gpp\",\"audio/mpeg\",\"audio/mp4\",\"audio/opus\",\"video/ogg\",\"audio/ogg\",\"application/ogg\",\"audio/x-flac\",\"audio/ape\",\"audio/wavpack\",\"audio/amr\",\"application/pdf\",\"application/x-msdownload\",\"application/x-shockwave-flash\",\"application/rtf\",\"application/wasm\",\"font/woff\",\"font/woff2\",\"application/vnd.ms-fontobject\",\"font/ttf\",\"font/otf\",\"image/x-icon\",\"video/x-flv\",\"application/postscript\",\"application/eps\",\"application/x-xz\",\"application/x-sqlite3\",\"application/x-nintendo-nes-rom\",\"application/x-google-chrome-extension\",\"application/vnd.ms-cab-compressed\",\"application/x-deb\",\"application/x-unix-archive\",\"application/x-rpm\",\"application/x-compress\",\"application/x-lzip\",\"application/x-cfb\",\"application/x-mie\",\"application/mxf\",\"video/mp2t\",\"application/x-blender\",\"image/bpg\",\"image/jp2\",\"image/jpx\",\"image/jpm\",\"image/mj2\",\"audio/aiff\",\"application/xml\",\"application/x-mobipocket-ebook\",\"image/heif\",\"image/heif-sequence\",\"image/heic\",\"image/heic-sequence\",\"image/icns\",\"image/ktx\",\"application/dicom\",\"audio/x-musepack\",\"text/calendar\",\"text/vcard\",\"model/gltf-binary\",\"application/vnd.tcpdump.pcap\",\"audio/x-dsf\",\"application/x.ms.shortcut\",\"application/x.apple.alias\",\"audio/x-voc\",\"audio/vnd.dolby.dd-raw\",\"audio/x-m4a\",\"image/apng\",\"image/x-olympus-orf\",\"image/x-sony-arw\",\"image/x-adobe-dng\",\"image/x-nikon-nef\",\"image/x-panasonic-rw2\",\"image/x-fujifilm-raf\",\"video/x-m4v\",\"video/3gpp2\",\"application/x-esri-shape\",\"audio/aac\",\"audio/x-it\",\"audio/x-s3m\",\"audio/x-xm\",\"video/MP1S\",\"video/MP2P\",\"application/vnd.sketchup.skp\",\"image/avif\",\"application/x-lzh-compressed\",\"application/pgp-encrypted\",\"application/x-asar\",\"model/stl\",\"application/vnd.ms-htmlhelp\",\"model/3mf\",\"image/jxl\",\"application/zstd\"]}},function(t,e,r){var n=r(136),i=r(69),a=r(137);function o(t,e,r,n,i,a,o){this.startMarker=t,this.tags=e,this.imageSize=r,this.thumbnailOffset=n,this.thumbnailLength=i,this.thumbnailType=a,this.app1Offset=o}function s(t){this.stream=t,this.flags={readBinaryTags:!1,resolveTagNames:!0,simplifyValues:!0,imageSize:!0,hidePointers:!0,returnTags:!0}}o.prototype={hasThumbnail:function(t){return!(!this.thumbnailOffset||!this.thumbnailLength)&&(\"string\"!=typeof t||(\"image/jpeg\"===t.toLowerCase().trim()?6===this.thumbnailType:\"image/tiff\"===t.toLowerCase().trim()&&1===this.thumbnailType))},getThumbnailOffset:function(){return this.app1Offset+6+this.thumbnailOffset},getThumbnailLength:function(){return this.thumbnailLength},getThumbnailBuffer:function(){return this._getThumbnailStream().nextBuffer(this.thumbnailLength)},_getThumbnailStream:function(){return this.startMarker.openWithOffset(this.getThumbnailOffset())},getImageSize:function(){return this.imageSize},getThumbnailSize:function(){var t,e=this._getThumbnailStream();return n.parseSections(e,(function(e,r){\"SOF\"===n.getSectionName(e).name&&(t=n.getSizeFromSOFSection(r))})),t}},s.prototype={enableBinaryFields:function(t){return this.flags.readBinaryTags=!!t,this},enablePointers:function(t){return this.flags.hidePointers=!t,this},enableTagNames:function(t){return this.flags.resolveTagNames=!!t,this},enableImageSize:function(t){return this.flags.imageSize=!!t,this},enableReturnTags:function(t){return this.flags.returnTags=!!t,this},enableSimpleValues:function(t){return this.flags.simplifyValues=!!t,this},parse:function(){var t,e,s,u,f,c,h,l,p,d=this.stream.mark(),m=d.openWithOffset(0),y=this.flags;return y.resolveTagNames&&(h=r(139)),y.resolveTagNames?(t={},l=function(e){return t[e.name]},p=function(e,r){t[e.name]=r}):(t=[],l=function(e){var r;for(r=0;r<t.length;++r)if(t[r].type===e.type&&t[r].section===e.section)return t.value},p=function(e,r){var n;for(n=0;n<t.length;++n)if(t[n].type===e.type&&t[n].section===e.section)return void(t.value=r)}),n.parseSections(m,(function(r,o){var l=o.offsetFrom(d);225===r?i.parseTags(o,(function(e,r,n,o){if(y.readBinaryTags||7!==o){if(513===r){if(s=n[0],y.hidePointers)return}else if(514===r){if(u=n[0],y.hidePointers)return}else if(259===r&&(f=n[0],y.hidePointers))return;if(y.returnTags)if(y.simplifyValues&&(n=a.simplifyValue(n,o)),y.resolveTagNames){var c=(e===i.GPSIFD?h.gps:h.exif)[r];c||(c=h.exif[r]),t.hasOwnProperty(c)||(t[c]=n)}else t.push({section:e,type:r,value:n})}}))&&(c=l):y.imageSize&&\"SOF\"===n.getSectionName(r).name&&(e=n.getSizeFromSOFSection(o))})),y.simplifyValues&&(a.castDegreeValues(l,p),a.castDateValues(l,p)),new o(d,t,e,s,u,f,c)}},t.exports=s},function(t,e){t.exports={parseSections:function(t,e){var r,n;for(t.setBigEndian(!0);t.remainingLength()>0&&218!==n;){if(255!==t.nextUInt8())throw new Error(\"Invalid JPEG section offset\");r=(n=t.nextUInt8())>=208&&n<=217||218===n?0:t.nextUInt16()-2,e(n,t.branch(0,r)),t.skip(r)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,r;switch(t){case 216:e=\"SOI\";break;case 196:e=\"DHT\";break;case 219:e=\"DQT\";break;case 221:e=\"DRI\";break;case 218:e=\"SOS\";break;case 254:e=\"COM\";break;case 217:e=\"EOI\";break;default:t>=224&&t<=239?(e=\"APP\",r=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e=\"SOF\",r=t-192):t>=208&&t<=215&&(e=\"RST\",r=t-208)}var n={name:e};return\"number\"==typeof r&&(n.index=r),n}}},function(t,e,r){var n=r(69),i=r(138),a=[{section:n.GPSIFD,type:2,name:\"GPSLatitude\",refType:1,refName:\"GPSLatitudeRef\",posVal:\"N\"},{section:n.GPSIFD,type:4,name:\"GPSLongitude\",refType:3,refName:\"GPSLongitudeRef\",posVal:\"E\"}],o=[{section:n.SubIFD,type:306,name:\"ModifyDate\"},{section:n.SubIFD,type:36867,name:\"DateTimeOriginal\"},{section:n.SubIFD,type:36868,name:\"CreateDate\"},{section:n.SubIFD,type:306,name:\"ModifyDate\"}];t.exports={castDegreeValues:function(t,e){a.forEach((function(r){var n=t(r);if(n){var i=t({section:r.section,type:r.refType,name:r.refName})===r.posVal?1:-1,a=(n[0]+n[1]/60+n[2]/3600)*i;e(r,a)}}))},castDateValues:function(t,e){o.forEach((function(r){var n=t(r);if(n){var a=i.parseExifDate(n);void 0!==a&&e(r,a)}}))},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map((function(t){return 10===e||5===e?t[0]/t[1]:t}))).length&&(t=t[0]),t}}},function(t,e){function r(t){return parseInt(t,10)}var n=3600,i=60;function a(t,e){t=t.map(r),e=e.map(r);var n=t[0],i=t[1]-1,a=t[2],o=e[0],s=e[1],u=e[2];return Date.UTC(n,i,a,o,s,u,0)/1e3}function o(t){var e=t.substr(0,10).split(\"-\"),o=t.substr(11,8).split(\":\"),s=t.substr(19,6).split(\":\").map(r),u=s[0]*n+s[1]*i,f=a(e,o);if(\"number\"==typeof(f-=u)&&!isNaN(f))return f}function s(t){var e=t.split(\" \"),r=a(e[0].split(\":\"),e[1].split(\":\"));if(\"number\"==typeof r&&!isNaN(r))return r}t.exports={parseDateWithSpecFormat:s,parseDateWithTimezoneFormat:o,parseExifDate:function(t){var e=19===t.length&&\":\"===t.charAt(4);return 25===t.length&&\"T\"===t.charAt(10)?o(t):e?s(t):void 0}}},function(t,e){t.exports={exif:{1:\"InteropIndex\",2:\"InteropVersion\",11:\"ProcessingSoftware\",254:\"SubfileType\",255:\"OldSubfileType\",256:\"ImageWidth\",257:\"ImageHeight\",258:\"BitsPerSample\",259:\"Compression\",262:\"PhotometricInterpretation\",263:\"Thresholding\",264:\"CellWidth\",265:\"CellLength\",266:\"FillOrder\",269:\"DocumentName\",270:\"ImageDescription\",271:\"Make\",272:\"Model\",273:\"StripOffsets\",274:\"Orientation\",277:\"SamplesPerPixel\",278:\"RowsPerStrip\",279:\"StripByteCounts\",280:\"MinSampleValue\",281:\"MaxSampleValue\",282:\"XResolution\",283:\"YResolution\",284:\"PlanarConfiguration\",285:\"PageName\",286:\"XPosition\",287:\"YPosition\",288:\"FreeOffsets\",289:\"FreeByteCounts\",290:\"GrayResponseUnit\",291:\"GrayResponseCurve\",292:\"T4Options\",293:\"T6Options\",296:\"ResolutionUnit\",297:\"PageNumber\",300:\"ColorResponseUnit\",301:\"TransferFunction\",305:\"Software\",306:\"ModifyDate\",315:\"Artist\",316:\"HostComputer\",317:\"Predictor\",318:\"WhitePoint\",319:\"PrimaryChromaticities\",320:\"ColorMap\",321:\"HalftoneHints\",322:\"TileWidth\",323:\"TileLength\",324:\"TileOffsets\",325:\"TileByteCounts\",326:\"BadFaxLines\",327:\"CleanFaxData\",328:\"ConsecutiveBadFaxLines\",330:\"SubIFD\",332:\"InkSet\",333:\"InkNames\",334:\"NumberofInks\",336:\"DotRange\",337:\"TargetPrinter\",338:\"ExtraSamples\",339:\"SampleFormat\",340:\"SMinSampleValue\",341:\"SMaxSampleValue\",342:\"TransferRange\",343:\"ClipPath\",344:\"XClipPathUnits\",345:\"YClipPathUnits\",346:\"Indexed\",347:\"JPEGTables\",351:\"OPIProxy\",400:\"GlobalParametersIFD\",401:\"ProfileType\",402:\"FaxProfile\",403:\"CodingMethods\",404:\"VersionYear\",405:\"ModeNumber\",433:\"Decode\",434:\"DefaultImageColor\",435:\"T82Options\",437:\"JPEGTables\",512:\"JPEGProc\",513:\"ThumbnailOffset\",514:\"ThumbnailLength\",515:\"JPEGRestartInterval\",517:\"JPEGLosslessPredictors\",518:\"JPEGPointTransforms\",519:\"JPEGQTables\",520:\"JPEGDCTables\",521:\"JPEGACTables\",529:\"YCbCrCoefficients\",530:\"YCbCrSubSampling\",531:\"YCbCrPositioning\",532:\"ReferenceBlackWhite\",559:\"StripRowCounts\",700:\"ApplicationNotes\",999:\"USPTOMiscellaneous\",4096:\"RelatedImageFileFormat\",4097:\"RelatedImageWidth\",4098:\"RelatedImageHeight\",18246:\"Rating\",18247:\"XP_DIP_XML\",18248:\"StitchInfo\",18249:\"RatingPercent\",32781:\"ImageID\",32931:\"WangTag1\",32932:\"WangAnnotation\",32933:\"WangTag3\",32934:\"WangTag4\",32995:\"Matteing\",32996:\"DataType\",32997:\"ImageDepth\",32998:\"TileDepth\",33405:\"Model2\",33421:\"CFARepeatPatternDim\",33422:\"CFAPattern2\",33423:\"BatteryLevel\",33424:\"KodakIFD\",33432:\"Copyright\",33434:\"ExposureTime\",33437:\"FNumber\",33445:\"MDFileTag\",33446:\"MDScalePixel\",33447:\"MDColorTable\",33448:\"MDLabName\",33449:\"MDSampleInfo\",33450:\"MDPrepDate\",33451:\"MDPrepTime\",33452:\"MDFileUnits\",33550:\"PixelScale\",33589:\"AdventScale\",33590:\"AdventRevision\",33628:\"UIC1Tag\",33629:\"UIC2Tag\",33630:\"UIC3Tag\",33631:\"UIC4Tag\",33723:\"IPTC-NAA\",33918:\"IntergraphPacketData\",33919:\"IntergraphFlagRegisters\",33920:\"IntergraphMatrix\",33921:\"INGRReserved\",33922:\"ModelTiePoint\",34016:\"Site\",34017:\"ColorSequence\",34018:\"IT8Header\",34019:\"RasterPadding\",34020:\"BitsPerRunLength\",34021:\"BitsPerExtendedRunLength\",34022:\"ColorTable\",34023:\"ImageColorIndicator\",34024:\"BackgroundColorIndicator\",34025:\"ImageColorValue\",34026:\"BackgroundColorValue\",34027:\"PixelIntensityRange\",34028:\"TransparencyIndicator\",34029:\"ColorCharacterization\",34030:\"HCUsage\",34031:\"TrapIndicator\",34032:\"CMYKEquivalent\",34118:\"SEMInfo\",34152:\"AFCP_IPTC\",34232:\"PixelMagicJBIGOptions\",34264:\"ModelTransform\",34306:\"WB_GRGBLevels\",34310:\"LeafData\",34377:\"PhotoshopSettings\",34665:\"ExifOffset\",34675:\"ICC_Profile\",34687:\"TIFF_FXExtensions\",34688:\"MultiProfiles\",34689:\"SharedData\",34690:\"T88Options\",34732:\"ImageLayer\",34735:\"GeoTiffDirectory\",34736:\"GeoTiffDoubleParams\",34737:\"GeoTiffAsciiParams\",34850:\"ExposureProgram\",34852:\"SpectralSensitivity\",34853:\"GPSInfo\",34855:\"ISO\",34856:\"Opto-ElectricConvFactor\",34857:\"Interlace\",34858:\"TimeZoneOffset\",34859:\"SelfTimerMode\",34864:\"SensitivityType\",34865:\"StandardOutputSensitivity\",34866:\"RecommendedExposureIndex\",34867:\"ISOSpeed\",34868:\"ISOSpeedLatitudeyyy\",34869:\"ISOSpeedLatitudezzz\",34908:\"FaxRecvParams\",34909:\"FaxSubAddress\",34910:\"FaxRecvTime\",34954:\"LeafSubIFD\",36864:\"ExifVersion\",36867:\"DateTimeOriginal\",36868:\"CreateDate\",37121:\"ComponentsConfiguration\",37122:\"CompressedBitsPerPixel\",37377:\"ShutterSpeedValue\",37378:\"ApertureValue\",37379:\"BrightnessValue\",37380:\"ExposureCompensation\",37381:\"MaxApertureValue\",37382:\"SubjectDistance\",37383:\"MeteringMode\",37384:\"LightSource\",37385:\"Flash\",37386:\"FocalLength\",37387:\"FlashEnergy\",37388:\"SpatialFrequencyResponse\",37389:\"Noise\",37390:\"FocalPlaneXResolution\",37391:\"FocalPlaneYResolution\",37392:\"FocalPlaneResolutionUnit\",37393:\"ImageNumber\",37394:\"SecurityClassification\",37395:\"ImageHistory\",37396:\"SubjectArea\",37397:\"ExposureIndex\",37398:\"TIFF-EPStandardID\",37399:\"SensingMethod\",37434:\"CIP3DataFile\",37435:\"CIP3Sheet\",37436:\"CIP3Side\",37439:\"StoNits\",37500:\"MakerNote\",37510:\"UserComment\",37520:\"SubSecTime\",37521:\"SubSecTimeOriginal\",37522:\"SubSecTimeDigitized\",37679:\"MSDocumentText\",37680:\"MSPropertySetStorage\",37681:\"MSDocumentTextPosition\",37724:\"ImageSourceData\",40091:\"XPTitle\",40092:\"XPComment\",40093:\"XPAuthor\",40094:\"XPKeywords\",40095:\"XPSubject\",40960:\"FlashpixVersion\",40961:\"ColorSpace\",40962:\"ExifImageWidth\",40963:\"ExifImageHeight\",40964:\"RelatedSoundFile\",40965:\"InteropOffset\",41483:\"FlashEnergy\",41484:\"SpatialFrequencyResponse\",41485:\"Noise\",41486:\"FocalPlaneXResolution\",41487:\"FocalPlaneYResolution\",41488:\"FocalPlaneResolutionUnit\",41489:\"ImageNumber\",41490:\"SecurityClassification\",41491:\"ImageHistory\",41492:\"SubjectLocation\",41493:\"ExposureIndex\",41494:\"TIFF-EPStandardID\",41495:\"SensingMethod\",41728:\"FileSource\",41729:\"SceneType\",41730:\"CFAPattern\",41985:\"CustomRendered\",41986:\"ExposureMode\",41987:\"WhiteBalance\",41988:\"DigitalZoomRatio\",41989:\"FocalLengthIn35mmFormat\",41990:\"SceneCaptureType\",41991:\"GainControl\",41992:\"Contrast\",41993:\"Saturation\",41994:\"Sharpness\",41995:\"DeviceSettingDescription\",41996:\"SubjectDistanceRange\",42016:\"ImageUniqueID\",42032:\"OwnerName\",42033:\"SerialNumber\",42034:\"LensInfo\",42035:\"LensMake\",42036:\"LensModel\",42037:\"LensSerialNumber\",42112:\"GDALMetadata\",42113:\"GDALNoData\",42240:\"Gamma\",44992:\"ExpandSoftware\",44993:\"ExpandLens\",44994:\"ExpandFilm\",44995:\"ExpandFilterLens\",44996:\"ExpandScanner\",44997:\"ExpandFlashLamp\",48129:\"PixelFormat\",48130:\"Transformation\",48131:\"Uncompressed\",48132:\"ImageType\",48256:\"ImageWidth\",48257:\"ImageHeight\",48258:\"WidthResolution\",48259:\"HeightResolution\",48320:\"ImageOffset\",48321:\"ImageByteCount\",48322:\"AlphaOffset\",48323:\"AlphaByteCount\",48324:\"ImageDataDiscard\",48325:\"AlphaDataDiscard\",50215:\"OceScanjobDesc\",50216:\"OceApplicationSelector\",50217:\"OceIDNumber\",50218:\"OceImageLogic\",50255:\"Annotations\",50341:\"PrintIM\",50560:\"USPTOOriginalContentType\",50706:\"DNGVersion\",50707:\"DNGBackwardVersion\",50708:\"UniqueCameraModel\",50709:\"LocalizedCameraModel\",50710:\"CFAPlaneColor\",50711:\"CFALayout\",50712:\"LinearizationTable\",50713:\"BlackLevelRepeatDim\",50714:\"BlackLevel\",50715:\"BlackLevelDeltaH\",50716:\"BlackLevelDeltaV\",50717:\"WhiteLevel\",50718:\"DefaultScale\",50719:\"DefaultCropOrigin\",50720:\"DefaultCropSize\",50721:\"ColorMatrix1\",50722:\"ColorMatrix2\",50723:\"CameraCalibration1\",50724:\"CameraCalibration2\",50725:\"ReductionMatrix1\",50726:\"ReductionMatrix2\",50727:\"AnalogBalance\",50728:\"AsShotNeutral\",50729:\"AsShotWhiteXY\",50730:\"BaselineExposure\",50731:\"BaselineNoise\",50732:\"BaselineSharpness\",50733:\"BayerGreenSplit\",50734:\"LinearResponseLimit\",50735:\"CameraSerialNumber\",50736:\"DNGLensInfo\",50737:\"ChromaBlurRadius\",50738:\"AntiAliasStrength\",50739:\"ShadowScale\",50740:\"DNGPrivateData\",50741:\"MakerNoteSafety\",50752:\"RawImageSegmentation\",50778:\"CalibrationIlluminant1\",50779:\"CalibrationIlluminant2\",50780:\"BestQualityScale\",50781:\"RawDataUniqueID\",50784:\"AliasLayerMetadata\",50827:\"OriginalRawFileName\",50828:\"OriginalRawFileData\",50829:\"ActiveArea\",50830:\"MaskedAreas\",50831:\"AsShotICCProfile\",50832:\"AsShotPreProfileMatrix\",50833:\"CurrentICCProfile\",50834:\"CurrentPreProfileMatrix\",50879:\"ColorimetricReference\",50898:\"PanasonicTitle\",50899:\"PanasonicTitle2\",50931:\"CameraCalibrationSig\",50932:\"ProfileCalibrationSig\",50933:\"ProfileIFD\",50934:\"AsShotProfileName\",50935:\"NoiseReductionApplied\",50936:\"ProfileName\",50937:\"ProfileHueSatMapDims\",50938:\"ProfileHueSatMapData1\",50939:\"ProfileHueSatMapData2\",50940:\"ProfileToneCurve\",50941:\"ProfileEmbedPolicy\",50942:\"ProfileCopyright\",50964:\"ForwardMatrix1\",50965:\"ForwardMatrix2\",50966:\"PreviewApplicationName\",50967:\"PreviewApplicationVersion\",50968:\"PreviewSettingsName\",50969:\"PreviewSettingsDigest\",50970:\"PreviewColorSpace\",50971:\"PreviewDateTime\",50972:\"RawImageDigest\",50973:\"OriginalRawFileDigest\",50974:\"SubTileBlockSize\",50975:\"RowInterleaveFactor\",50981:\"ProfileLookTableDims\",50982:\"ProfileLookTableData\",51008:\"OpcodeList1\",51009:\"OpcodeList2\",51022:\"OpcodeList3\",51041:\"NoiseProfile\",51043:\"TimeCodes\",51044:\"FrameRate\",51058:\"TStop\",51081:\"ReelName\",51089:\"OriginalDefaultFinalSize\",51090:\"OriginalBestQualitySize\",51091:\"OriginalDefaultCropSize\",51105:\"CameraLabel\",51107:\"ProfileHueSatMapEncoding\",51108:\"ProfileLookTableEncoding\",51109:\"BaselineExposureOffset\",51110:\"DefaultBlackRender\",51111:\"NewRawImageDigest\",51112:\"RawToPreviewGain\",51125:\"DefaultUserCrop\",59932:\"Padding\",59933:\"OffsetSchema\",65e3:\"OwnerName\",65001:\"SerialNumber\",65002:\"Lens\",65024:\"KDC_IFD\",65100:\"RawFile\",65101:\"Converter\",65102:\"WhiteBalance\",65105:\"Exposure\",65106:\"Shadows\",65107:\"Brightness\",65108:\"Contrast\",65109:\"Saturation\",65110:\"Sharpness\",65111:\"Smoothness\",65112:\"MoireFilter\"},gps:{0:\"GPSVersionID\",1:\"GPSLatitudeRef\",2:\"GPSLatitude\",3:\"GPSLongitudeRef\",4:\"GPSLongitude\",5:\"GPSAltitudeRef\",6:\"GPSAltitude\",7:\"GPSTimeStamp\",8:\"GPSSatellites\",9:\"GPSStatus\",10:\"GPSMeasureMode\",11:\"GPSDOP\",12:\"GPSSpeedRef\",13:\"GPSSpeed\",14:\"GPSTrackRef\",15:\"GPSTrack\",16:\"GPSImgDirectionRef\",17:\"GPSImgDirection\",18:\"GPSMapDatum\",19:\"GPSDestLatitudeRef\",20:\"GPSDestLatitude\",21:\"GPSDestLongitudeRef\",22:\"GPSDestLongitude\",23:\"GPSDestBearingRef\",24:\"GPSDestBearing\",25:\"GPSDestDistanceRef\",26:\"GPSDestDistance\",27:\"GPSProcessingMethod\",28:\"GPSAreaInformation\",29:\"GPSDateStamp\",30:\"GPSDifferential\",31:\"GPSHPositioningError\"}}},function(t,e){function r(t,e,r,n,i,a){this.global=i,e=e||0,r=r||t.byteLength-e,this.arrayBuffer=t.slice(e,e+r),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(n),this.offset=0,this.parentOffset=(a||0)+e}r.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new r(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new r(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=r},function(t,e){function r(t,e,r,n){this.buffer=t,this.offset=e||0,r=\"number\"==typeof r?r:t.length,this.endPosition=this.offset+r,this.setBigEndian(n)}r.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString(\"utf8\",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new r(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.endPosition-(this.offset+t),new r(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=r},function(t,e,r){(function(e){function r(t){Math.round;var r,n,i,a,o,s=Math.floor,u=new Array(64),f=new Array(64),c=new Array(64),h=new Array(64),l=new Array(65535),p=new Array(65535),d=new Array(64),m=new Array(64),y=[],b=0,g=7,v=new Array(64),w=new Array(64),_=new Array(64),x=new Array(256),E=new Array(2048),D=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],A=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],M=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],F=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],B=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],O=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function I(t,e){for(var r=0,n=0,i=new Array,a=1;a<=16;a++){for(var o=1;o<=t[a];o++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=a,n++,r++;r*=2}return i}function T(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(b|=1<<g),r--,--g<0&&(255==b?(P(255),P(0)):P(b),g=7,b=0)}function P(t){y.push(t)}function L(t){P(t>>8&255),P(255&t)}function N(t,e,r,n,i){for(var a,o=i[0],s=i[240],u=function(t,e){var r,n,i,a,o,s,u,f,c,h,l=0;for(c=0;c<8;++c){r=t[l],n=t[l+1],i=t[l+2],a=t[l+3],o=t[l+4],s=t[l+5],u=t[l+6];var p=r+(f=t[l+7]),m=r-f,y=n+u,b=n-u,g=i+s,v=i-s,w=a+o,_=a-o,x=p+w,E=p-w,D=y+g,k=y-g;t[l]=x+D,t[l+4]=x-D;var A=.707106781*(k+E);t[l+2]=E+A,t[l+6]=E-A;var S=.382683433*((x=_+v)-(k=b+m)),M=.5411961*x+S,F=1.306562965*k+S,C=.707106781*(D=v+b),B=m+C,O=m-C;t[l+5]=O+M,t[l+3]=O-M,t[l+1]=B+F,t[l+7]=B-F,l+=8}for(l=0,c=0;c<8;++c){r=t[l],n=t[l+8],i=t[l+16],a=t[l+24],o=t[l+32],s=t[l+40],u=t[l+48];var I=r+(f=t[l+56]),T=r-f,P=n+u,L=n-u,N=i+s,j=i-s,R=a+o,z=a-o,U=I+R,G=I-R,H=P+N,Z=P-N;t[l]=U+H,t[l+32]=U-H;var q=.707106781*(Z+G);t[l+16]=G+q,t[l+48]=G-q;var W=.382683433*((U=z+j)-(Z=L+T)),Y=.5411961*U+W,V=1.306562965*Z+W,X=.707106781*(H=j+L),J=T+X,K=T-X;t[l+40]=K+Y,t[l+24]=K-Y,t[l+8]=J+V,t[l+56]=J-V,l++}for(c=0;c<64;++c)h=t[c]*e[c],d[c]=h>0?h+.5|0:h-.5|0;return d}(t,e),f=0;f<64;++f)m[D[f]]=u[f];var c=m[0]-r;r=m[0],0==c?T(n[0]):(T(n[p[a=32767+c]]),T(l[a]));for(var h=63;h>0&&0==m[h];h--);if(0==h)return T(o),r;for(var y,b=1;b<=h;){for(var g=b;0==m[b]&&b<=h;++b);var v=b-g;if(v>=16){y=v>>4;for(var w=1;w<=y;++w)T(s);v&=15}a=32767+m[b],T(i[(v<<4)+p[a]]),T(l[a]),b++}return 63!=h&&T(o),r}function j(t){if(t<=0&&(t=1),t>100&&(t=100),o!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=s((e[r]*t+50)/100);n<1?n=1:n>255&&(n=255),u[D[r]]=n}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;a<64;a++){var o=s((i[a]*t+50)/100);o<1?o=1:o>255&&(o=255),f[D[a]]=o}for(var l=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,d=0;d<8;d++)for(var m=0;m<8;m++)c[p]=1/(u[D[p]]*l[d]*l[m]*8),h[p]=1/(f[D[p]]*l[d]*l[m]*8),p++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t}}this.encode=function(t,o){var s;(new Date).getTime();o&&j(o),y=new Array,b=0,g=7,L(65496),L(65504),L(16),P(74),P(70),P(73),P(70),P(0),P(1),P(1),P(0),L(1),L(1),P(0),P(0),void 0!==(s=t.comments)&&s.constructor===Array&&s.forEach((function(t){if(\"string\"==typeof t){L(65534);var e,r=t.length;for(L(r+2),e=0;e<r;e++)P(t.charCodeAt(e))}})),function(t){if(t){L(65505),69===t[0]&&120===t[1]&&105===t[2]&&102===t[3]?L(t.length+2):(L(t.length+5+2),P(69),P(120),P(105),P(102),P(0));for(var e=0;e<t.length;e++)P(t[e])}}(t.exifBuffer),function(){L(65499),L(132),P(0);for(var t=0;t<64;t++)P(u[t]);P(1);for(var e=0;e<64;e++)P(f[e])}(),function(t,e){L(65472),L(17),P(8),L(e),L(t),P(3),P(1),P(17),P(0),P(2),P(17),P(1),P(3),P(17),P(1)}(t.width,t.height),function(){L(65476),L(418),P(0);for(var t=0;t<16;t++)P(k[t+1]);for(var e=0;e<=11;e++)P(A[e]);P(16);for(var r=0;r<16;r++)P(S[r+1]);for(var n=0;n<=161;n++)P(M[n]);P(1);for(var i=0;i<16;i++)P(F[i+1]);for(var a=0;a<=11;a++)P(C[a]);P(17);for(var o=0;o<16;o++)P(B[o+1]);for(var s=0;s<=161;s++)P(O[s])}(),L(65498),L(12),P(3),P(1),P(0),P(2),P(17),P(3),P(17),P(0),P(63),P(0);var l=0,p=0,d=0;b=0,g=7,this.encode.displayName=\"_encode_\";for(var m,x,D,I,R,z,U,G,H,Z=t.data,q=t.width,W=t.height,Y=4*q,V=0;V<W;){for(m=0;m<Y;){for(z=R=Y*V+m,U=-1,G=0,H=0;H<64;H++)z=R+(G=H>>3)*Y+(U=4*(7&H)),V+G>=W&&(z-=Y*(V+1+G-W)),m+U>=Y&&(z-=m+U-Y+4),x=Z[z++],D=Z[z++],I=Z[z++],v[H]=(E[x]+E[D+256|0]+E[I+512|0]>>16)-128,w[H]=(E[x+768|0]+E[D+1024|0]+E[I+1280|0]>>16)-128,_[H]=(E[x+1280|0]+E[D+1536|0]+E[I+1792|0]>>16)-128;l=N(v,c,l,r,i),p=N(w,h,p,n,a),d=N(_,h,d,n,a),m+=32}V+=8}if(g>=0){var X=[];X[1]=g+1,X[0]=(1<<g+1)-1,T(X)}return L(65497),e.from(y)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),r=I(k,A),n=I(F,C),i=I(S,M),a=I(B,O),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)p[32767+n]=r,l[32767+n]=[],l[32767+n][1]=r,l[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)p[32767+i]=r,l[32767+i]=[],l[32767+i][1]=r,l[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)E[t]=19595*t,E[t+256|0]=38470*t,E[t+512|0]=7471*t+32768,E[t+768|0]=-11059*t,E[t+1024|0]=-21709*t,E[t+1280|0]=32768*t+8421375,E[t+1536|0]=-27439*t,E[t+1792|0]=-5329*t}(),j(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new r(e).encode(t,e),width:t.width,height:t.height}}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,r){var n;return n=function(t,e){if(\"object\"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==a(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}var o=function(){\"use strict\";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,r=799,n=3406,i=2276,o=1567,s=3784,u=5793,f=2896;function c(){}function h(t,e){for(var r,n,i=0,a=[],o=16;o>0&&!t[o-1];)o--;a.push({children:[],index:0});var s,u=a[0];for(r=0;r<o;r++){for(n=0;n<t[r];n++){for((u=a.pop()).children[u.index]=e[i];u.index>0;){if(0===a.length)throw new Error(\"Could not recreate Huffman Table\");u=a.pop()}for(u.index++,a.push(u);a.length<=r;)a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}r+1<o&&(a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return a[0].children}function l(e,r,n,i,o,s,u,f,c,h){n.precision,n.samplesPerLine,n.scanLines;var l=n.mcusPerLine,p=n.progressive,d=(n.maxH,n.maxV,r),m=0,y=0;function b(){if(y>0)return y--,m>>y&1;if(255==(m=e[r++])){var t=e[r++];if(t)throw new Error(\"unexpected marker: \"+(m<<8|t).toString(16))}return y=7,m>>>7}function g(t){for(var e,r=t;null!==(e=b());){if(\"number\"==typeof(r=r[e]))return r;if(\"object\"!==a(r))throw new Error(\"invalid huffman sequence\")}return null}function v(t){for(var e=0;t>0;){var r=b();if(null===r)return;e=e<<1|r,t--}return e}function w(t){var e=v(t);return e>=1<<t-1?e:e+(-1<<t)+1}var _=0;var x,E=0;function D(t,e,r,n,i){var a=r%l,o=(r/l|0)*t.v+n,s=a*t.h+i;void 0===t.blocks[o]&&h.tolerantDecoding||e(t,t.blocks[o][s])}function k(t,e,r){var n=r/t.blocksPerLine|0,i=r%t.blocksPerLine;void 0===t.blocks[n]&&h.tolerantDecoding||e(t,t.blocks[n][i])}var A,S,M,F,C,B,O=i.length;B=p?0===s?0===f?function(t,e){var r=g(t.huffmanTableDC),n=0===r?0:w(r)<<c;e[0]=t.pred+=n}:function(t,e){e[0]|=b()<<c}:0===f?function(e,r){if(_>0)_--;else for(var n=s,i=u;n<=i;){var a=g(e.huffmanTableAC),o=15&a,f=a>>4;if(0!==o)r[t[n+=f]]=w(o)*(1<<c),n++;else{if(f<15){_=v(f)+(1<<f)-1;break}n+=16}}}:function(e,r){for(var n=s,i=u,a=0;n<=i;){var o=t[n],f=r[o]<0?-1:1;switch(E){case 0:var h=g(e.huffmanTableAC),l=15&h;if(a=h>>4,0===l)a<15?(_=v(a)+(1<<a),E=4):(a=16,E=1);else{if(1!==l)throw new Error(\"invalid ACn encoding\");x=w(l),E=a?2:3}continue;case 1:case 2:r[o]?r[o]+=(b()<<c)*f:0==--a&&(E=2==E?3:0);break;case 3:r[o]?r[o]+=(b()<<c)*f:(r[o]=x<<c,E=0);break;case 4:r[o]&&(r[o]+=(b()<<c)*f)}n++}4===E&&0==--_&&(E=0)}:function(e,r){var n=g(e.huffmanTableDC),i=0===n?0:w(n);r[0]=e.pred+=i;for(var a=1;a<64;){var o=g(e.huffmanTableAC),s=15&o,u=o>>4;if(0!==s)r[t[a+=u]]=w(s),a++;else{if(u<15)break;a+=16}}};var I,T,P,L,N=0;for(T=1==O?i[0].blocksPerLine*i[0].blocksPerColumn:l*n.mcusPerColumn,o||(o=T);N<T;){for(S=0;S<O;S++)i[S].pred=0;if(_=0,1==O)for(A=i[0],C=0;C<o;C++)k(A,B,N),N++;else for(C=0;C<o;C++){for(S=0;S<O;S++)for(P=(A=i[S]).h,L=A.v,M=0;M<L;M++)for(F=0;F<P;F++)D(A,B,N,M,F);if(++N===T)break}if(N===T)do{if(255===e[r]&&0!==e[r+1])break;r+=1}while(r<e.length-2);if(y=0,(I=e[r]<<8|e[r+1])<65280)throw new Error(\"marker was not found\");if(!(I>=65488&&I<=65495))break;r+=2}return r-d}function p(t,a){var c,h,l=[],p=a.blocksPerLine,d=a.blocksPerColumn,m=p<<3,y=new Int32Array(64),g=new Uint8Array(64);function v(t,c,h){var l,p,d,m,y,b,g,v,w,_,x=a.quantizationTable,E=h;for(_=0;_<64;_++)E[_]=t[_]*x[_];for(_=0;_<8;++_){var D=8*_;0!=E[1+D]||0!=E[2+D]||0!=E[3+D]||0!=E[4+D]||0!=E[5+D]||0!=E[6+D]||0!=E[7+D]?(l=u*E[0+D]+128>>8,p=u*E[4+D]+128>>8,d=E[2+D],m=E[6+D],y=f*(E[1+D]-E[7+D])+128>>8,v=f*(E[1+D]+E[7+D])+128>>8,b=E[3+D]<<4,g=E[5+D]<<4,w=l-p+1>>1,l=l+p+1>>1,p=w,w=d*s+m*o+128>>8,d=d*o-m*s+128>>8,m=w,w=y-g+1>>1,y=y+g+1>>1,g=w,w=v+b+1>>1,b=v-b+1>>1,v=w,w=l-m+1>>1,l=l+m+1>>1,m=w,w=p-d+1>>1,p=p+d+1>>1,d=w,w=y*i+v*n+2048>>12,y=y*n-v*i+2048>>12,v=w,w=b*r+g*e+2048>>12,b=b*e-g*r+2048>>12,g=w,E[0+D]=l+v,E[7+D]=l-v,E[1+D]=p+g,E[6+D]=p-g,E[2+D]=d+b,E[5+D]=d-b,E[3+D]=m+y,E[4+D]=m-y):(w=u*E[0+D]+512>>10,E[0+D]=w,E[1+D]=w,E[2+D]=w,E[3+D]=w,E[4+D]=w,E[5+D]=w,E[6+D]=w,E[7+D]=w)}for(_=0;_<8;++_){var k=_;0!=E[8+k]||0!=E[16+k]||0!=E[24+k]||0!=E[32+k]||0!=E[40+k]||0!=E[48+k]||0!=E[56+k]?(l=u*E[0+k]+2048>>12,p=u*E[32+k]+2048>>12,d=E[16+k],m=E[48+k],y=f*(E[8+k]-E[56+k])+2048>>12,v=f*(E[8+k]+E[56+k])+2048>>12,b=E[24+k],g=E[40+k],w=l-p+1>>1,l=l+p+1>>1,p=w,w=d*s+m*o+2048>>12,d=d*o-m*s+2048>>12,m=w,w=y-g+1>>1,y=y+g+1>>1,g=w,w=v+b+1>>1,b=v-b+1>>1,v=w,w=l-m+1>>1,l=l+m+1>>1,m=w,w=p-d+1>>1,p=p+d+1>>1,d=w,w=y*i+v*n+2048>>12,y=y*n-v*i+2048>>12,v=w,w=b*r+g*e+2048>>12,b=b*e-g*r+2048>>12,g=w,E[0+k]=l+v,E[56+k]=l-v,E[8+k]=p+g,E[48+k]=p-g,E[16+k]=d+b,E[40+k]=d-b,E[24+k]=m+y,E[32+k]=m-y):(w=u*h[_+0]+8192>>14,E[0+k]=w,E[8+k]=w,E[16+k]=w,E[24+k]=w,E[32+k]=w,E[40+k]=w,E[48+k]=w,E[56+k]=w)}for(_=0;_<64;++_){var A=128+(E[_]+8>>4);c[_]=A<0?0:A>255?255:A}}b(m*d*8);for(var w=0;w<d;w++){var _=w<<3;for(c=0;c<8;c++)l.push(new Uint8Array(m));for(var x=0;x<p;x++){v(a.blocks[w][x],g,y);var E=0,D=x<<3;for(h=0;h<8;h++){var k=l[_+h];for(c=0;c<8;c++)k[D+c]=g[E++]}}}return l}function d(t){return t<0?0:t>255?255:t}c.prototype={load:function(t){var e=new XMLHttpRequest;e.open(\"GET\",t,!0),e.responseType=\"arraybuffer\",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var r=1e3*this.opts.maxResolutionInMP*1e3,n=0;e.length;function i(){var t=e[n]<<8|e[n+1];return n+=2,t}function a(){var t=i(),r=e.subarray(n,n+t-2);return n+=r.length,r}function o(t){var e,r,n=1,i=1;for(r in t.components)t.components.hasOwnProperty(r)&&(n<(e=t.components[r]).h&&(n=e.h),i<e.v&&(i=e.v));var a=Math.ceil(t.samplesPerLine/8/n),o=Math.ceil(t.scanLines/8/i);for(r in t.components)if(t.components.hasOwnProperty(r)){e=t.components[r];var s=Math.ceil(Math.ceil(t.samplesPerLine/8)*e.h/n),u=Math.ceil(Math.ceil(t.scanLines/8)*e.v/i),f=a*e.h,c=o*e.v,h=[];b(256*(c*f));for(var l=0;l<c;l++){for(var p=[],d=0;d<f;d++)p.push(new Int32Array(64));h.push(p)}e.blocksPerLine=s,e.blocksPerColumn=u,e.blocks=h}t.maxH=n,t.maxV=i,t.mcusPerLine=a,t.mcusPerColumn=o}var s,u,f=null,c=null,d=[],m=[],y=[],g=[],v=i(),w=-1;if(this.comments=[],65496!=v)throw new Error(\"SOI not found\");for(v=i();65497!=v;){switch(v){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var _=a();if(65534===v){var x=String.fromCharCode.apply(null,_);this.comments.push(x)}65504===v&&74===_[0]&&70===_[1]&&73===_[2]&&70===_[3]&&0===_[4]&&(f={version:{major:_[5],minor:_[6]},densityUnits:_[7],xDensity:_[8]<<8|_[9],yDensity:_[10]<<8|_[11],thumbWidth:_[12],thumbHeight:_[13],thumbData:_.subarray(14,14+3*_[12]*_[13])}),65505===v&&69===_[0]&&120===_[1]&&105===_[2]&&102===_[3]&&0===_[4]&&(this.exifBuffer=_.subarray(5,_.length)),65518===v&&65===_[0]&&100===_[1]&&111===_[2]&&98===_[3]&&101===_[4]&&0===_[5]&&(c={version:_[6],flags0:_[7]<<8|_[8],flags1:_[9]<<8|_[10],transformCode:_[11]});break;case 65499:for(var E=i()+n-2;n<E;){var D=e[n++];b(256);var k=new Int32Array(64);if(D>>4){if(D>>4!=1)throw new Error(\"DQT: invalid table spec\");for(V=0;V<64;V++){k[t[V]]=i()}}else for(V=0;V<64;V++){k[t[V]]=e[n++]}d[15&D]=k}break;case 65472:case 65473:case 65474:i(),(s={}).extended=65473===v,s.progressive=65474===v,s.precision=e[n++],s.scanLines=i(),s.samplesPerLine=i(),s.components={},s.componentsOrder=[];var A=s.scanLines*s.samplesPerLine;if(A>r){var S=Math.ceil((A-r)/1e6);throw new Error(\"maxResolutionInMP limit exceeded by \".concat(S,\"MP\"))}var M,F=e[n++];for(W=0;W<F;W++){M=e[n];var C=e[n+1]>>4,B=15&e[n+1],O=e[n+2];if(C<=0||B<=0)throw new Error(\"Invalid sampling factor, expected values above 0\");s.componentsOrder.push(M),s.components[M]={h:C,v:B,quantizationIdx:O},n+=3}o(s),m.push(s);break;case 65476:var I=i();for(W=2;W<I;){var T=e[n++],P=new Uint8Array(16),L=0;for(V=0;V<16;V++,n++)L+=P[V]=e[n];b(16+L);var N=new Uint8Array(L);for(V=0;V<L;V++,n++)N[V]=e[n];W+=17+L,(T>>4?y:g)[15&T]=h(P,N)}break;case 65501:i(),u=i();break;case 65500:i(),i();break;case 65498:i();var j=e[n++],R=[];for(W=0;W<j;W++){X=s.components[e[n++]];var z=e[n++];X.huffmanTableDC=g[z>>4],X.huffmanTableAC=y[15&z],R.push(X)}var U=e[n++],G=e[n++],H=e[n++],Z=l(e,n,s,R,u,U,G,H>>4,15&H,this.opts);n+=Z;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}if(224===v||225==v){if(-1!==w)throw new Error(\"first unknown JPEG marker at offset \".concat(w.toString(16),\", second unknown JPEG marker \").concat(v.toString(16),\" at offset \").concat((n-1).toString(16)));w=n-1;var q=i();if(255===e[n+q-2]){n+=q-2;break}}throw new Error(\"unknown JPEG marker \"+v.toString(16))}v=i()}if(1!=m.length)throw new Error(\"only single frame JPEGs supported\");for(var W=0;W<m.length;W++){var Y=m[W].components;for(var V in Y)Y[V].quantizationTable=d[Y[V].quantizationIdx],delete Y[V].quantizationIdx}this.width=s.samplesPerLine,this.height=s.scanLines,this.jfif=f,this.adobe=c,this.components=[];for(W=0;W<s.componentsOrder.length;W++){var X=s.components[s.componentsOrder[W]];this.components.push({lines:p(0,X),scaleX:X.h/s.maxH,scaleY:X.v/s.maxV})}},getData:function(t,e){var r,n,i,a,o,s,u,f,c,h,l,p,m,y,g,v,w,_,x,E,D,k=this.width/t,A=this.height/e,S=0,M=t*e*this.components.length;b(M);var F=new Uint8Array(M);switch(this.components.length){case 1:for(r=this.components[0],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*A],c=0;c<t;c++)l=o[0|c*r.scaleX*k],F[S++]=l;break;case 2:for(r=this.components[0],n=this.components[1],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*A],s=n.lines[0|h*n.scaleY*A],c=0;c<t;c++)l=o[0|c*r.scaleX*k],F[S++]=l,l=s[0|c*n.scaleX*k],F[S++]=l;break;case 3:for(D=!0,this.adobe&&this.adobe.transformCode?D=!0:void 0!==this.opts.colorTransform&&(D=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*A],s=n.lines[0|h*n.scaleY*A],u=i.lines[0|h*i.scaleY*A],c=0;c<t;c++)D?(l=o[0|c*r.scaleX*k],p=s[0|c*n.scaleX*k],_=d(l+1.402*((m=u[0|c*i.scaleX*k])-128)),x=d(l-.3441363*(p-128)-.71413636*(m-128)),E=d(l+1.772*(p-128))):(_=o[0|c*r.scaleX*k],x=s[0|c*n.scaleX*k],E=u[0|c*i.scaleX*k]),F[S++]=_,F[S++]=x,F[S++]=E;break;case 4:if(!this.adobe)throw new Error(\"Unsupported color mode (4 components)\");for(D=!1,this.adobe&&this.adobe.transformCode?D=!0:void 0!==this.opts.colorTransform&&(D=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],a=this.components[3],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*A],s=n.lines[0|h*n.scaleY*A],u=i.lines[0|h*i.scaleY*A],f=a.lines[0|h*a.scaleY*A],c=0;c<t;c++)D?(l=o[0|c*r.scaleX*k],p=s[0|c*n.scaleX*k],m=u[0|c*i.scaleX*k],y=f[0|c*a.scaleX*k],g=255-d(l+1.402*(m-128)),v=255-d(l-.3441363*(p-128)-.71413636*(m-128)),w=255-d(l+1.772*(p-128))):(g=o[0|c*r.scaleX*k],v=s[0|c*n.scaleX*k],w=u[0|c*i.scaleX*k],y=f[0|c*a.scaleX*k]),F[S++]=255-g,F[S++]=255-v,F[S++]=255-w,F[S++]=255-y;break;default:throw new Error(\"Unsupported color mode\")}return F},copyToImageData:function(t,e){var r,n,i,a,o,s,u,f,c,h=t.width,l=t.height,p=t.data,m=this.getData(h,l),y=0,b=0;switch(this.components.length){case 1:for(n=0;n<l;n++)for(r=0;r<h;r++)i=m[y++],p[b++]=i,p[b++]=i,p[b++]=i,e&&(p[b++]=255);break;case 3:for(n=0;n<l;n++)for(r=0;r<h;r++)u=m[y++],f=m[y++],c=m[y++],p[b++]=u,p[b++]=f,p[b++]=c,e&&(p[b++]=255);break;case 4:for(n=0;n<l;n++)for(r=0;r<h;r++)o=m[y++],s=m[y++],i=m[y++],u=255-d(o*(1-(a=m[y++])/255)+a),f=255-d(s*(1-a/255)+a),c=255-d(i*(1-a/255)+a),p[b++]=u,p[b++]=f,p[b++]=c,e&&(p[b++]=255);break;default:throw new Error(\"Unsupported color mode\")}}};var m=0,y=0;function b(){var t=m+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0);if(t>y){var e=Math.ceil((t-y)/1024/1024);throw new Error(\"maxMemoryUsageInMB limit exceeded by at least \".concat(e,\"MB\"))}m=t}return c.resetMaxMemoryUsage=function(t){m=0,y=t},c.getBytesAllocated=function(){return m},c.requestMemoryAllocation=b,c}();t.exports=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n(n({},{colorTransform:void 0,useTArray:!1,formatAsRGBA:!0,tolerantDecoding:!0,maxResolutionInMP:100,maxMemoryUsageInMB:512}),r),a=new Uint8Array(t),s=new o;s.opts=i,o.resetMaxMemoryUsage(1024*i.maxMemoryUsageInMB*1024),s.parse(a);var u=i.formatAsRGBA?4:3,f=s.width*s.height*u;try{o.requestMemoryAllocation(f);var c={width:s.width,height:s.height,exifBuffer:s.exifBuffer,data:i.useTArray?new Uint8Array(f):e.alloc(f)};s.comments.length>0&&(c.comments=s.comments)}catch(t){if(t instanceof RangeError)throw new Error(\"Could not allocate enough memory for the image. Required: \"+f);if(t instanceof ReferenceError&&\"Buffer is not defined\"===t.message)throw new Error(\"Buffer is not globally defined in this environment. Consider setting useTArray to true\");throw t}return s.copyToImageData(c,i.formatAsRGBA),c}}).call(this,r(2).Buffer)},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){return t&&\"object\"===r(t)&&\"function\"==typeof t.copy&&\"function\"==typeof t.fill&&\"function\"==typeof t.readUInt8}},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==r.call(t)}},function(t,e){},function(t,e,r){\"use strict\";var n=r(51).Buffer,i=r(149);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return\"\";for(var e=this.head,r=\"\"+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e,r,i,a=n.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,r=a,i=s,e.copy(r,i),s+=o.data.length,o=o.next;return a},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+\" \"+t})},function(t,e){},function(t,e,r){(function(t,e){!function(t,r){\"use strict\";if(!t.setImmediate){var n,i,a,o,s,u=1,f={},c=!1,h=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,\"[object process]\"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage(\"\",\"*\"),t.onmessage=r,e}}()?t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(t){d(t.data)},n=function(t){a.port2.postMessage(t)}):h&&\"onreadystatechange\"in h.createElement(\"script\")?(i=h.documentElement,n=function(t){var e=h.createElement(\"script\");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):n=function(t){setTimeout(d,0,t)}:(o=\"setImmediate$\"+Math.random()+\"$\",s=function(e){e.source===t&&\"string\"==typeof e.data&&0===e.data.indexOf(o)&&d(+e.data.slice(o.length))},t.addEventListener?t.addEventListener(\"message\",s,!1):t.attachEvent(\"onmessage\",s),n=function(e){t.postMessage(o+e,\"*\")}),l.setImmediate=function(t){\"function\"!=typeof t&&(t=new Function(\"\"+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return f[u]=i,n(u),u++},l.clearImmediate=p}function p(t){delete f[t]}function d(t){if(c)setTimeout(d,0,t);else{var e=f[t];if(e){c=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(r,n)}}(e)}finally{p(t),c=!1}}}}}(\"undefined\"==typeof self?void 0===t?this:t:self)}).call(this,r(10),r(7))},function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&\"true\"===String(r).toLowerCase()}t.exports=function(t,e){if(r(\"noDeprecation\"))return t;var n=!1;return function(){if(!n){if(r(\"throwDeprecation\"))throw new Error(e);r(\"traceDeprecation\")&&console.trace(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(10))},function(t,e,r){var n=r(2),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(a(n,e),e.Buffer=o),a(i,o),o.from=function(t,e,r){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,r)},o.alloc=function(t,e,r){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var n=i(t);return void 0!==e?\"string\"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},o.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return n.SlowBuffer(t)}},function(t,e,r){\"use strict\";t.exports=a;var n=r(74),i=Object.create(r(27));function a(t){if(!(this instanceof a))return new a(t);n.call(this,t)}i.inherits=r(24),i.inherits(a,n),a.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){t.exports=r(52)},function(t,e,r){t.exports=r(18)},function(t,e,r){t.exports=r(50).Transform},function(t,e,r){t.exports=r(50).PassThrough},function(t,e,r){\"use strict\";var n=r(14),i=r(28),a=r(81),o=r(186),s=r(85),u=r(87),f=r(88),c=t.exports=function(t){a.call(this),this._parser=new s(t,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,\"gamma\"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=t,this.writable=!0,this._parser.start()};n.inherits(c,a),c.prototype._handleError=function(t){this.emit(\"error\",t),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on(\"error\",(function(){}))),this.errord=!0},c.prototype._inflateData=function(t){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i.createInflate(),this._inflate.on(\"error\",this.emit.bind(this,\"error\")),this._filter.on(\"complete\",this._complete.bind(this)),this._inflate.pipe(this._filter);else{var e=(1+(this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3))*this._bitmapInfo.height,r=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:r});var n=e,a=this.emit.bind(this,\"error\");this._inflate.on(\"error\",(function(t){n&&a(t)})),this._filter.on(\"complete\",this._complete.bind(this));var o=this._filter.write.bind(this._filter);this._inflate.on(\"data\",(function(t){n&&(t.length>n&&(t=t.slice(0,n)),n-=t.length,o(t))})),this._inflate.on(\"end\",this._filter.end.bind(this._filter))}this._inflate.write(t)},c.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new o(this._bitmapInfo)},c.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},c.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},c.prototype._simpleTransparency=function(){this._metaData.alpha=!0},c.prototype._headersFinished=function(){this.emit(\"metadata\",this._metaData)},c.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit(\"error\",\"No Inflate block\"))},c.prototype._complete=function(t){if(!this.errord){var e;try{var r=u.dataToBitMap(t,this._bitmapInfo);e=f(r,this._bitmapInfo,this._options.skipRescale),r=null}catch(t){return void this._handleError(t)}this.emit(\"parsed\",e)}}},function(t,e,r){\"use strict\";(function(t,n){var i=r(53),a=r(178),o=r(179),s=r(182),u=r(185);for(var f in u)e[f]=u[f];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;function c(t){if(\"number\"!=typeof t||t<e.DEFLATE||t>e.UNZIP)throw new TypeError(\"Bad argument\");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}c.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,\"close before init\"),i(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?o.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||s.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},c.prototype.write=function(t,e,r,n,i,a,o){return this._write(!0,t,e,r,n,i,a,o)},c.prototype.writeSync=function(t,e,r,n,i,a,o){return this._write(!1,t,e,r,n,i,a,o)},c.prototype._write=function(r,a,o,s,u,f,c,h){if(i.equal(arguments.length,8),i(this.init_done,\"write before init\"),i(this.mode!==e.NONE,\"already finalized\"),i.equal(!1,this.write_in_progress,\"write already in progress\"),i.equal(!1,this.pending_close,\"close is pending\"),this.write_in_progress=!0,i.equal(!1,void 0===a,\"must provide flush value\"),this.write_in_progress=!0,a!==e.Z_NO_FLUSH&&a!==e.Z_PARTIAL_FLUSH&&a!==e.Z_SYNC_FLUSH&&a!==e.Z_FULL_FLUSH&&a!==e.Z_FINISH&&a!==e.Z_BLOCK)throw new Error(\"Invalid flush value\");if(null==o&&(o=t.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=o,this.strm.next_in=s,this.strm.avail_out=h,this.strm.output=f,this.strm.next_out=c,this.flush=a,!r)return this._process(),this._checkError()?this._afterSync():void 0;var l=this;return n.nextTick((function(){l._process(),l._after()})),this},c.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},c.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error(\"invalid number of gzip magic number bytes read\")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error(\"Unknown mode \"+this.mode)}},c.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error(\"unexpected end of file\"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error(\"Missing dictionary\"):this._error(\"Bad dictionary\"),!1;default:return this._error(\"Zlib error\"),!1}return!0},c.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},c.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},c.prototype.init=function(t,r,n,a,o){i(4===arguments.length||5===arguments.length,\"init(windowBits, level, memLevel, strategy, [dictionary])\"),i(t>=8&&t<=15,\"invalid windowBits\"),i(r>=-1&&r<=9,\"invalid compression level\"),i(n>=1&&n<=9,\"invalid memlevel\"),i(a===e.Z_FILTERED||a===e.Z_HUFFMAN_ONLY||a===e.Z_RLE||a===e.Z_FIXED||a===e.Z_DEFAULT_STRATEGY,\"invalid strategy\"),this._init(r,t,n,a,o),this._setDictionary()},c.prototype.params=function(){throw new Error(\"deflateParams Not supported\")},c.prototype.reset=function(){this._reset(),this._setDictionary()},c.prototype._init=function(t,r,n,i,u){switch(this.level=t,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new a,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error(\"Unknown mode \"+this.mode)}this.err!==e.Z_OK&&this._error(\"Init error\"),this.dictionary=u,this.write_in_progress=!1,this.init_done=!0},c.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error(\"Failed to set dictionary\")}},c.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=o.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error(\"Failed to reset stream\")},e.Zlib=c}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";var n=r(161);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t=\"abcdefghijklmnopqrst\",e=t.split(\"\"),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),a=\"\";for(var o in i)a+=o;return t!==a}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,\"xy\")}catch(e){return\"y\"===t[1]}return!1}()?n:Object.assign:n}},function(t,e,r){\"use strict\";var n=r(162),i=r(76)(),a=r(164),o=Object,s=a(\"Array.prototype.push\"),u=a(\"Object.prototype.propertyIsEnumerable\"),f=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError(\"target must be an object\");var r=o(t);if(1===arguments.length)return r;for(var a=1;a<arguments.length;++a){var c=o(arguments[a]),h=n(c),l=i&&(Object.getOwnPropertySymbols||f);if(l)for(var p=l(c),d=0;d<p.length;++d){var m=p[d];u(c,m)&&s(h,m)}for(var y=0;y<h.length;++y){var b=h[y];if(u(c,b)){var g=c[b];r[b]=g}}}return r}},function(t,e,r){\"use strict\";var n=Array.prototype.slice,i=r(75),a=Object.keys,o=a?function(t){return a(t)}:r(163),s=Object.keys;o.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?s(n.call(t)):s(t)})}else Object.keys=o;return Object.keys||o},t.exports=o},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i;if(!Object.keys){var a=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(75),u=Object.prototype.propertyIsEnumerable,f=!u.call({toString:null},\"toString\"),c=u.call((function(){}),\"prototype\"),h=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],l=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(\"undefined\"==typeof window)return!1;for(var t in window)try{if(!p[\"$\"+t]&&a.call(window,t)&&null!==window[t]&&\"object\"===n(window[t]))try{l(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();i=function(t){var e=null!==t&&\"object\"===n(t),r=\"[object Function]\"===o.call(t),i=s(t),u=e&&\"[object String]\"===o.call(t),p=[];if(!e&&!r&&!i)throw new TypeError(\"Object.keys called on a non-object\");var m=c&&r;if(u&&t.length>0&&!a.call(t,0))for(var y=0;y<t.length;++y)p.push(String(y));if(i&&t.length>0)for(var b=0;b<t.length;++b)p.push(String(b));else for(var g in t)m&&\"prototype\"===g||!a.call(t,g)||p.push(String(g));if(f)for(var v=function(t){if(\"undefined\"==typeof window||!d)return l(t);try{return l(t)}catch(t){return!1}}(t),w=0;w<h.length;++w)v&&\"constructor\"===h[w]||!a.call(t,h[w])||p.push(h[w]);return p}}t.exports=i},function(t,e,r){\"use strict\";var n=r(29),i=r(174),a=i(n(\"String.prototype.indexOf\"));t.exports=function(t,e){var r=n(t,!!e);return\"function\"==typeof r&&a(t,\".prototype.\")>-1?i(r):r}},function(t,e,r){\"use strict\";t.exports=Error},function(t,e,r){\"use strict\";t.exports=EvalError},function(t,e,r){\"use strict\";t.exports=RangeError},function(t,e,r){\"use strict\";t.exports=ReferenceError},function(t,e,r){\"use strict\";t.exports=URIError},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Symbol&&Symbol,a=r(76);t.exports=function(){return\"function\"==typeof i&&(\"function\"==typeof Symbol&&(\"symbol\"===n(i(\"foo\"))&&(\"symbol\"===n(Symbol(\"bar\"))&&a())))}},function(t,e,r){\"use strict\";var n={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!(n instanceof i)}},function(t,e,r){\"use strict\";var n=Object.prototype.toString,i=Math.max,a=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var e=this;if(\"function\"!=typeof e||\"[object Function]\"!==n.apply(e))throw new TypeError(\"Function.prototype.bind called on incompatible \"+e);for(var r,o=function(t,e){for(var r=[],n=e||0,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r}(arguments,1),s=i(0,e.length-o.length),u=[],f=0;f<s;f++)u[f]=\"$\"+f;if(r=Function(\"binder\",\"return function (\"+function(t,e){for(var r=\"\",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(u,\",\")+\"){ return binder.apply(this,arguments); }\")((function(){if(this instanceof r){var n=e.apply(this,a(o,arguments));return Object(n)===n?n:this}return e.apply(t,a(o,arguments))})),e.prototype){var c=function(){};c.prototype=e.prototype,r.prototype=new c,c.prototype=null}return r}},function(t,e,r){\"use strict\";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,a=r(54);t.exports=a.call(n,i)},function(t,e,r){\"use strict\";var n=r(54),i=r(29),a=r(175),o=r(40),s=i(\"%Function.prototype.apply%\"),u=i(\"%Function.prototype.call%\"),f=i(\"%Reflect.apply%\",!0)||n.call(u,s),c=r(55),h=i(\"%Math.max%\");t.exports=function(t){if(\"function\"!=typeof t)throw new o(\"a function is required\");var e=f(n,u,arguments);return a(e,1+h(0,t.length-(arguments.length-1)),!0)};var l=function(){return f(n,s,arguments)};c?c(t.exports,\"apply\",{value:l}):t.exports.apply=l},function(t,e,r){\"use strict\";var n=r(29),i=r(176),a=r(177)(),o=r(78),s=r(40),u=n(\"%Math.floor%\");t.exports=function(t,e){if(\"function\"!=typeof t)throw new s(\"`fn` is not a function\");if(\"number\"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new s(\"`length` must be a positive 32-bit integer\");var r=arguments.length>2&&!!arguments[2],n=!0,f=!0;if(\"length\"in t&&o){var c=o(t,\"length\");c&&!c.configurable&&(n=!1),c&&!c.writable&&(f=!1)}return(n||f||!r)&&(a?i(t,\"length\",e,!0,!0):i(t,\"length\",e)),t}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(55),a=r(77),o=r(40),s=r(78);t.exports=function(t,e,r){if(!t||\"object\"!==n(t)&&\"function\"!=typeof t)throw new o(\"`obj` must be an object or a function`\");if(\"string\"!=typeof e&&\"symbol\"!==n(e))throw new o(\"`property` must be a string or a symbol`\");if(arguments.length>3&&\"boolean\"!=typeof arguments[3]&&null!==arguments[3])throw new o(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&\"boolean\"!=typeof arguments[4]&&null!==arguments[4])throw new o(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&\"boolean\"!=typeof arguments[5]&&null!==arguments[5])throw new o(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&\"boolean\"!=typeof arguments[6])throw new o(\"`loose`, if provided, must be a boolean\");var u=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,h=arguments.length>6&&arguments[6],l=!!s&&s(t,e);if(i)i(t,e,{configurable:null===c&&l?l.configurable:!c,enumerable:null===u&&l?l.enumerable:!u,value:r,writable:null===f&&l?l.writable:!f});else{if(!h&&(u||f||c))throw new a(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\");t[e]=r}}},function(t,e,r){\"use strict\";var n=r(55),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],\"length\",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,r){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){\"use strict\";var n,i=r(41),a=r(180),o=r(79),s=r(80),u=r(181),f=0,c=4,h=0,l=-2,p=-1,d=4,m=2,y=8,b=9,g=286,v=30,w=19,_=2*g+1,x=15,E=3,D=258,k=D+E+1,A=42,S=103,M=113,F=666,C=1,B=2,O=3,I=4;function T(t,e){return t.msg=u[e],e}function P(t){return(t<<1)-(t>4?9:0)}function L(t){for(var e=t.length;--e>=0;)t[e]=0}function N(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function j(t,e){a._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,N(t.strm)}function R(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-k?t.strstart-(t.w_size-k):0,f=t.window,c=t.w_mask,h=t.prev,l=t.strstart+D,p=f[a+o-1],d=f[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(f[(r=e)+o]===d&&f[r+o-1]===p&&f[r]===f[a]&&f[++r]===f[a+1]){a+=2,r++;do{}while(f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&a<l);if(n=D-(l-a),a=l-D,n>o){if(t.match_start=e,o=n,n>=s)break;p=f[a+o-1],d=f[a+o]}}}while((e=h[e&c])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead}function G(t){var e,r,n,a,u,f,c,h,l,p,d=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-k)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--r);e=r=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--r);a+=d}if(0===t.strm.avail_in)break;if(f=t.strm,c=t.window,h=t.strstart+t.lookahead,l=a,p=void 0,(p=f.avail_in)>l&&(p=l),r=0===p?0:(f.avail_in-=p,i.arraySet(c,f.input,f.next_in,p,h),1===f.state.wrap?f.adler=o(f.adler,c,p,h):2===f.state.wrap&&(f.adler=s(f.adler,c,p,h)),f.next_in+=p,f.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=E)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+E-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<k&&0!==t.strm.avail_in)}function H(t,e){for(var r,n;;){if(t.lookahead<k){if(G(t),t.lookahead<k&&e===f)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-k&&(t.match_length=U(t,r)),t.match_length>=E)if(n=a._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=t.strstart<E-1?t.strstart:E-1,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}function Z(t,e){for(var r,n,i;;){if(t.lookahead<k){if(G(t),t.lookahead<k&&e===f)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=E-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-k&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===E&&t.strstart-t.match_start>4096)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-E,n=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=E-1,t.strstart++,n&&(j(t,!1),0===t.strm.avail_out))return C}else if(t.match_available){if((n=a._tr_tally(t,0,t.window[t.strstart-1]))&&j(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return C}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=a._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}function q(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*v+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*g+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*g+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?A:M,t.adler=2===e.wrap?0:1,e.last_flush=f,a._tr_init(e),h):T(t,l)}function V(t){var e,r=Y(t);return r===h&&((e=t.state).window_size=2*e.w_size,L(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=E-1,e.match_available=0,e.ins_h=0),r}function X(t,e,r,n,a,o){if(!t)return l;var s=1;if(e===p&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),a<1||a>b||r!==y||n<8||n>15||e<0||e>9||o<0||o>d)return T(t,l);8===n&&(n=9);var u=new W;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=a+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+E-1)/E),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<a+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=o,u.method=r,V(t)}n=[new q(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(G(t),0===t.lookahead&&e===f)return C;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,j(t,!1),0===t.strm.avail_out))return C;if(t.strstart-t.block_start>=t.w_size-k&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):(t.strstart>t.block_start&&(j(t,!1),t.strm.avail_out),C)})),new q(4,4,8,4,H),new q(4,5,16,8,H),new q(4,6,32,32,H),new q(4,4,16,16,Z),new q(8,16,32,32,Z),new q(8,16,128,128,Z),new q(8,32,128,256,Z),new q(32,128,258,1024,Z),new q(32,258,258,4096,Z)],e.deflateInit=function(t,e){return X(t,e,y,15,8,0)},e.deflateInit2=X,e.deflateReset=V,e.deflateResetKeep=Y,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?l:(t.state.gzhead=e,h):l},e.deflate=function(t,e){var r,i,o,u;if(!t||!t.state||e>5||e<0)return t?T(t,l):l;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===F&&e!==c)return T(t,0===t.avail_out?-5:l);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===A)if(2===i.wrap)t.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,3),i.status=M);else{var p=y+(i.w_bits-8<<4)<<8;p|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(p|=32),p+=31-p%31,i.status=M,z(i,p),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=S)}else i.status=S;if(i.status===S&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(t),i.pending+2<=i.pending_buf_size&&(R(i,255&t.adler),R(i,t.adler>>8&255),t.adler=0,i.status=M)):i.status=M),0!==i.pending){if(N(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&P(e)<=P(r)&&e!==c)return T(t,-5);if(i.status===F&&0!==t.avail_in)return T(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==f&&i.status!==F){var d=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(G(t),0===t.lookahead)){if(e===f)return C;break}if(t.match_length=0,r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}(i,e):3===i.strategy?function(t,e){for(var r,n,i,o,s=t.window;;){if(t.lookahead<=D){if(G(t),t.lookahead<=D&&e===f)return C;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){o=t.strstart+D;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);t.match_length=D-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=a._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}(i,e):n[i.level].func(i,e);if(d!==O&&d!==I||(i.status=F),d===C||d===O)return 0===t.avail_out&&(i.last_flush=-1),h;if(d===B&&(1===e?a._tr_align(i):5!==e&&(a._tr_stored_block(i,0,0,!1),3===e&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),N(t),0===t.avail_out))return i.last_flush=-1,h}return e!==c?h:i.wrap<=0?1:(2===i.wrap?(R(i,255&t.adler),R(i,t.adler>>8&255),R(i,t.adler>>16&255),R(i,t.adler>>24&255),R(i,255&t.total_in),R(i,t.total_in>>8&255),R(i,t.total_in>>16&255),R(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),N(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?h:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==A&&69!==e&&73!==e&&91!==e&&e!==S&&e!==M&&e!==F?T(t,l):(t.state=null,e===M?T(t,-3):h):l},e.deflateSetDictionary=function(t,e){var r,n,a,s,u,f,c,p,d=e.length;if(!t||!t.state)return l;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==A||r.lookahead)return l;for(1===s&&(t.adler=o(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,e,d-r.w_size,r.w_size,0),e=p,d=r.w_size),u=t.avail_in,f=t.next_in,c=t.input,t.avail_in=d,t.next_in=0,t.input=e,G(r);r.lookahead>=E;){n=r.strstart,a=r.lookahead-(E-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+E-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--a);r.strstart=n,r.lookahead=E-1,G(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=E-1,r.match_available=0,t.next_in=f,t.input=c,t.avail_in=u,r.wrap=s,h},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,r){\"use strict\";var n=r(41),i=0,a=1;function o(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,f=256,c=f+1+u,h=30,l=19,p=2*c+1,d=15,m=16,y=7,b=256,g=16,v=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(c+2));o(k);var A=new Array(2*h);o(A);var S=new Array(512);o(S);var M=new Array(256);o(M);var F=new Array(u);o(F);var C,B,O,I=new Array(h);function T(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function P(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function L(t){return t<256?S[t]:S[256+(t>>>7)]}function N(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function j(t,e,r){t.bi_valid>m-r?(t.bi_buf|=e<<t.bi_valid&65535,N(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=r-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function R(t,e,r){j(t,r[2*e],r[2*e+1])}function z(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function U(t,e,r){var n,i,a=new Array(d+1),o=0;for(n=1;n<=d;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(a[s]++,s))}}function G(t){var e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<l;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*b]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){t.bi_valid>8?N(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Z(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function q(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&Z(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Z(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function W(t,e,r){var n,i,a,o,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?R(t,i,e):(R(t,(a=M[i])+f+1,e),0!==(o=_[a])&&j(t,i-=F[a],o),R(t,a=L(--n),r),0!==(o=x[a])&&j(t,n-=I[a],o))}while(s<t.last_lit);R(t,b,e)}function Y(t,e){var r,n,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,f=-1;for(t.heap_len=0,t.heap_max=p,r=0;r<u;r++)0!==a[2*r]?(t.heap[++t.heap_len]=f=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=f<2?++f:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=f,r=t.heap_len>>1;r>=1;r--)q(t,a,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],q(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,q(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,u=e.dyn_tree,f=e.max_code,c=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,y=e.stat_desc.max_length,b=0;for(a=0;a<=d;a++)t.bl_count[a]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<p;r++)(a=u[2*u[2*(n=t.heap[r])+1]+1]+1)>y&&(a=y,b++),u[2*n+1]=a,n>f||(t.bl_count[a]++,o=0,n>=m&&(o=l[n-m]),s=u[2*n],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(c[2*n+1]+o)));if(0!==b){do{for(a=y-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[y]--,b-=2}while(b>0);for(a=y;0!==a;a--)for(n=t.bl_count[a];0!==n;)(i=t.heap[--r])>f||(u[2*i+1]!==a&&(t.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),n--)}}(t,e),U(a,f,t.bl_count)}function V(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<f?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[2*g]++):s<=10?t.bl_tree[2*v]++:t.bl_tree[2*w]++,s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4))}function X(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<f)do{R(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(R(t,i,t.bl_tree),s--),R(t,g,t.bl_tree),j(t,s-3,2)):s<=10?(R(t,v,t.bl_tree),j(t,s-3,3)):(R(t,w,t.bl_tree),j(t,s-11,7));s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4)}}o(I);var J=!1;function K(t,e,r,i){j(t,(s<<1)+(i?1:0),3),function(t,e,r,i){H(t),i&&(N(t,r),N(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){J||(!function(){var t,e,r,n,i,a=new Array(d+1);for(r=0,n=0;n<u-1;n++)for(F[n]=r,t=0;t<1<<_[n];t++)M[r++]=n;for(M[r-1]=n,i=0,n=0;n<16;n++)for(I[n]=i,t=0;t<1<<x[n];t++)S[i++]=n;for(i>>=7;n<h;n++)for(I[n]=i<<7,t=0;t<1<<x[n]-7;t++)S[256+i++]=n;for(e=0;e<=d;e++)a[e]=0;for(t=0;t<=143;)k[2*t+1]=8,t++,a[8]++;for(;t<=255;)k[2*t+1]=9,t++,a[9]++;for(;t<=279;)k[2*t+1]=7,t++,a[7]++;for(;t<=287;)k[2*t+1]=8,t++,a[8]++;for(U(k,c+1,a),t=0;t<h;t++)A[2*t+1]=5,A[2*t]=z(t,5);C=new T(k,_,f+1,c,d),B=new T(A,x,0,h,d),O=new T(new Array(0),E,0,l,y)}(),J=!0),t.l_desc=new P(t.dyn_ltree,C),t.d_desc=new P(t.dyn_dtree,B),t.bl_desc=new P(t.bl_tree,O),t.bi_buf=0,t.bi_valid=0,G(t)},e._tr_stored_block=K,e._tr_flush_block=function(t,e,r,n){var o,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e<f;e++)if(0!==t.dyn_ltree[2*e])return a;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),u=function(t){var e;for(V(t,t.dyn_ltree,t.l_desc.max_code),V(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=l-1;e>=3&&0===t.bl_tree[2*D[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==e?K(t,e,r,n):4===t.strategy||s===o?(j(t,2+(n?1:0),3),W(t,k,A)):(j(t,4+(n?1:0),3),function(t,e,r,n){var i;for(j(t,e-257,5),j(t,r-1,5),j(t,n-4,4),i=0;i<n;i++)j(t,t.bl_tree[2*D[i]+1],3);X(t,t.dyn_ltree,e-1),X(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),W(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&H(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(M[r]+f+1)]++,t.dyn_dtree[2*L(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){j(t,2,3),R(t,b,k),function(t){16===t.bi_valid?(N(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,r){\"use strict\";var n=r(41),i=r(79),a=r(80),o=r(183),s=r(184),u=1,f=2,c=0,h=-2,l=1,p=12,d=30,m=852,y=592;function b(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=l,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(m),e.distcode=e.distdyn=new n.Buf32(y),e.sane=1,e.back=-1,c):h}function w(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,v(t)):h}function _(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?h:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,w(t))):h}function x(t,e){var r,n;return t?(n=new g,t.state=n,n.window=null,(r=_(t,e))!==c&&(t.state=null),r):h}var E,D,k=!0;function A(t){if(k){var e;for(E=new n.Buf32(512),D=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,E,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(f,t.lens,0,32,D,0,t.work,{bits:5}),k=!1}t.lencode=E,t.lenbits=9,t.distcode=D,t.distbits=5}function S(t,e,r,i){var a,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),n.arraySet(o.window,e,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,e,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}e.inflateReset=w,e.inflateReset2=_,e.inflateResetKeep=v,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var r,m,y,g,v,w,_,x,E,D,k,M,F,C,B,O,I,T,P,L,N,j,R,z,U=0,G=new n.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;(r=t.state).mode===p&&(r.mode=13),v=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,D=w,k=_,j=c;t:for(;;)switch(r.mode){case l:if(0===r.wrap){r.mode=13;break}for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(2&r.wrap&&35615===x){r.check=0,G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0),x=0,E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",r.mode=d;break}if(8!=(15&x)){t.msg=\"unknown compression method\",r.mode=d;break}if(E-=4,N=8+(15&(x>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){t.msg=\"invalid window size\",r.mode=d;break}r.dmax=1<<N,t.adler=r.check=1,r.mode=512&x?10:p,x=0,E=0;break;case 2:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.flags=x,8!=(255&r.flags)){t.msg=\"unknown compression method\",r.mode=d;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=d;break}r.head&&(r.head.text=x>>8&1),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0,r.mode=3;case 3:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.time=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,G[2]=x>>>16&255,G[3]=x>>>24&255,r.check=a(r.check,G,4,0)),x=0,E=0,r.mode=4;case 4:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>8),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0,r.mode=5;case 5:if(1024&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((M=r.length)>w&&(M=w),M&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,m,g,M,N)),512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,r.length-=M),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break t;M=0;do{N=m[g+M++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,N)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break t;M=0;do{N=m[g+M++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,N)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=d;break}x=0,E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=p;break;case 10:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}t.adler=r.check=b(x),x=0,E=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,2;t.adler=r.check=1,r.mode=p;case p:if(5===e||6===e)break t;case 13:if(r.last){x>>>=7&E,E-=7&E,r.mode=27;break}for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}switch(r.last=1&x,E-=1,3&(x>>>=1)){case 0:r.mode=14;break;case 1:if(A(r),r.mode=20,6===e){x>>>=2,E-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=d}x>>>=2,E-=2;break;case 14:for(x>>>=7&E,E-=7&E;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=d;break}if(r.length=65535&x,x=0,E=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(M=r.length){if(M>w&&(M=w),M>_&&(M=_),0===M)break t;n.arraySet(y,m,g,M,v),w-=M,g+=M,_-=M,v+=M,r.length-=M;break}r.mode=p;break;case 17:for(;E<14;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.nlen=257+(31&x),x>>>=5,E-=5,r.ndist=1+(31&x),x>>>=5,E-=5,r.ncode=4+(15&x),x>>>=4,E-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=d;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.lens[H[r.have++]]=7&x,x>>>=3,E-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},j=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid code lengths set\",r.mode=d;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;O=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(I<16)x>>>=B,E-=B,r.lens[r.have++]=I;else{if(16===I){for(z=B+2;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x>>>=B,E-=B,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=d;break}N=r.lens[r.have-1],M=3+(3&x),x>>>=2,E-=2}else if(17===I){for(z=B+3;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=B,N=0,M=3+(7&(x>>>=B)),x>>>=3,E-=3}else{for(z=B+7;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=B,N=0,M=11+(127&(x>>>=B)),x>>>=7,E-=7}if(r.have+M>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=d;break}for(;M--;)r.lens[r.have++]=N}}if(r.mode===d)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=d;break}if(r.lenbits=9,R={bits:r.lenbits},j=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid literal/lengths set\",r.mode=d;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},j=s(f,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,j){t.msg=\"invalid distances set\",r.mode=d;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(w>=6&&_>=258){t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,o(t,k),v=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,r.mode===p&&(r.back=-1);break}for(r.back=0;O=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(O&&!(240&O)){for(T=B,P=O,L=I;O=(U=r.lencode[L+((x&(1<<T+P)-1)>>T)])>>>16&255,I=65535&U,!(T+(B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=B,E-=B,r.back+=B,r.length=I,0===O){r.mode=26;break}if(32&O){r.back=-1,r.mode=p;break}if(64&O){t.msg=\"invalid literal/length code\",r.mode=d;break}r.extra=15&O,r.mode=22;case 22:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;O=(U=r.distcode[x&(1<<r.distbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(!(240&O)){for(T=B,P=O,L=I;O=(U=r.distcode[L+((x&(1<<T+P)-1)>>T)])>>>16&255,I=65535&U,!(T+(B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=B,E-=B,r.back+=B,64&O){t.msg=\"invalid distance code\",r.mode=d;break}r.offset=I,r.extra=15&O,r.mode=24;case 24:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.offset+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=d;break}r.mode=25;case 25:if(0===_)break t;if(M=k-_,r.offset>M){if((M=r.offset-M)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=d;break}M>r.wnext?(M-=r.wnext,F=r.wsize-M):F=r.wnext-M,M>r.length&&(M=r.length),C=r.window}else C=y,F=v-r.offset,M=r.length;M>_&&(M=_),_-=M,r.length-=M;do{y[v++]=C[F++]}while(--M);0===r.length&&(r.mode=21);break;case 26:if(0===_)break t;y[v++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;E<32;){if(0===w)break t;w--,x|=m[g++]<<E,E+=8}if(k-=_,t.total_out+=k,r.total+=k,k&&(t.adler=r.check=r.flags?a(r.check,y,k,v-k):i(r.check,y,k,v-k)),k=_,(r.flags?x:b(x))!==r.check){t.msg=\"incorrect data check\",r.mode=d;break}x=0,E=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=d;break}x=0,E=0}r.mode=29;case 29:j=1;break t;case d:j=-3;break t;case 31:return-4;default:return h}return t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,(r.wsize||k!==t.avail_out&&r.mode<d&&(r.mode<27||4!==e))&&S(t,t.output,t.next_out,k-t.avail_out)?(r.mode=31,-4):(D-=t.avail_in,k-=t.avail_out,t.total_in+=D,t.total_out+=k,r.total+=k,r.wrap&&k&&(t.adler=r.check=r.flags?a(r.check,y,k,t.next_out-k):i(r.check,y,k,t.next_out-k)),t.data_type=r.bits+(r.last?64:0)+(r.mode===p?128:0)+(20===r.mode||15===r.mode?256:0),(0===D&&0===k||4===e)&&j===c&&(j=-5),j)},e.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,c},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,c):h},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?h:11===r.mode&&i(1,e,n,0)!==r.check?-3:S(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,c):h},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,r){\"use strict\";t.exports=function(t,e){var r,n,i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k,A;r=t.state,n=t.next_in,k=t.input,i=n+(t.avail_in-5),a=t.next_out,A=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),u=r.dmax,f=r.wsize,c=r.whave,h=r.wnext,l=r.window,p=r.hold,d=r.bits,m=r.lencode,y=r.distcode,b=(1<<r.lenbits)-1,g=(1<<r.distbits)-1;t:do{d<15&&(p+=k[n++]<<d,d+=8,p+=k[n++]<<d,d+=8),v=m[p&b];e:for(;;){if(p>>>=w=v>>>24,d-=w,0===(w=v>>>16&255))A[a++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break t}t.msg=\"invalid literal/length code\",r.mode=30;break t}v=m[(65535&v)+(p&(1<<w)-1)];continue e}for(_=65535&v,(w&=15)&&(d<w&&(p+=k[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=k[n++]<<d,d+=8,p+=k[n++]<<d,d+=8),v=y[p&g];;){if(p>>>=w=v>>>24,d-=w,16&(w=v>>>16&255)){if(x=65535&v,d<(w&=15)&&(p+=k[n++]<<d,(d+=8)<w&&(p+=k[n++]<<d,d+=8)),(x+=p&(1<<w)-1)>u){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(p>>>=w,d-=w,x>(w=a-o)){if((w=x-w)>c&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(E=0,D=l,0===h){if(E+=f-w,w<_){_-=w;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}}else if(h<w){if(E+=f+h-w,(w-=h)<_){_-=w;do{A[a++]=l[E++]}while(--w);if(E=0,h<_){_-=w=h;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}}}else if(E+=h-w,w<_){_-=w;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}for(;_>2;)A[a++]=D[E++],A[a++]=D[E++],A[a++]=D[E++],_-=3;_&&(A[a++]=D[E++],_>1&&(A[a++]=D[E++]))}else{E=a-x;do{A[a++]=A[E++],A[a++]=A[E++],A[a++]=A[E++],_-=3}while(_>2);_&&(A[a++]=A[E++],_>1&&(A[a++]=A[E++]))}break}if(64&w){t.msg=\"invalid distance code\",r.mode=30;break t}v=y[(65535&v)+(p&(1<<w)-1)]}}break}}while(n<i&&a<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=a<s?s-a+257:257-(a-s),r.hold=p,r.bits=d}},function(t,e,r){\"use strict\";var n=r(41),i=15,a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,f,c,h,l,p){var d,m,y,b,g,v,w,_,x,E=p.bits,D=0,k=0,A=0,S=0,M=0,F=0,C=0,B=0,O=0,I=0,T=null,P=0,L=new n.Buf16(16),N=new n.Buf16(16),j=null,R=0;for(D=0;D<=i;D++)L[D]=0;for(k=0;k<f;k++)L[e[r+k]]++;for(M=E,S=i;S>=1&&0===L[S];S--);if(M>S&&(M=S),0===S)return c[h++]=20971520,c[h++]=20971520,p.bits=1,0;for(A=1;A<S&&0===L[A];A++);for(M<A&&(M=A),B=1,D=1;D<=i;D++)if(B<<=1,(B-=L[D])<0)return-1;if(B>0&&(0===t||1!==S))return-1;for(N[1]=0,D=1;D<i;D++)N[D+1]=N[D]+L[D];for(k=0;k<f;k++)0!==e[r+k]&&(l[N[e[r+k]]++]=k);if(0===t?(T=j=l,v=19):1===t?(T=a,P-=257,j=o,R-=257,v=256):(T=s,j=u,v=-1),I=0,k=0,D=A,g=h,F=M,C=0,y=-1,b=(O=1<<M)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){w=D-C,l[k]<v?(_=0,x=l[k]):l[k]>v?(_=j[R+l[k]],x=T[P+l[k]]):(_=96,x=0),d=1<<D-C,A=m=1<<F;do{c[g+(I>>C)+(m-=d)]=w<<24|_<<16|x}while(0!==m);for(d=1<<D-1;I&d;)d>>=1;if(0!==d?(I&=d-1,I+=d):I=0,k++,0==--L[D]){if(D===S)break;D=e[r+l[k]]}if(D>M&&(I&b)!==y){for(0===C&&(C=M),g+=A,B=1<<(F=D-C);F+C<S&&!((B-=L[F+C])<=0);)F++,B<<=1;if(O+=1<<F,1===t&&O>852||2===t&&O>592)return 1;c[y=I&b]=M<<24|F<<16|g-h}}return 0!==I&&(c[g+I]=D-C<<24|64<<16),p.bits=M,0}},function(t,e,r){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){\"use strict\";(function(e){var n=r(14),i=r(81),a=r(82),o=t.exports=function(t){i.call(this);var r=[],n=this;this._filter=new a(t,{read:this.read.bind(this),write:function(t){r.push(t)},complete:function(){n.emit(\"complete\",e.concat(r))}}),this._filter.start()};n.inherits(o,i)}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(14),i=r(38),a=r(30),o=r(89),s=t.exports=function(t){i.call(this);var e=t||{};this._packer=new o(e),this._deflate=this._packer.createDeflate(),this.readable=!0};n.inherits(s,i),s.prototype.pack=function(t,r,n,i){this.emit(\"data\",e.from(a.PNG_SIGNATURE)),this.emit(\"data\",this._packer.packIHDR(r,n)),i&&this.emit(\"data\",this._packer.packGAMA(i));var o=this._packer.filterData(t,r,n);this._deflate.on(\"error\",this.emit.bind(this,\"error\")),this._deflate.on(\"data\",function(t){this.emit(\"data\",this._packer.packIDAT(t))}.bind(this)),this._deflate.on(\"end\",function(){this.emit(\"data\",this._packer.packIEND()),this.emit(\"end\")}.bind(this)),this._deflate.end(o)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(30);t.exports=function(t,r,i,a){var o,s=-1!==[n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(a.colorType);if(a.colorType===a.inputColorType){var u=(o=new ArrayBuffer(2),new DataView(o).setInt16(0,256,!0),256!==new Int16Array(o)[0]);if(8===a.bitDepth||16===a.bitDepth&&u)return t}var f=16!==a.bitDepth?t:new Uint16Array(t.buffer),c=255,h=n.COLORTYPE_TO_BPP_MAP[a.inputColorType];4!==h||a.inputHasAlpha||(h=3);var l=n.COLORTYPE_TO_BPP_MAP[a.colorType];16===a.bitDepth&&(c=65535,l*=2);var p=e.alloc(r*i*l),d=0,m=0,y=a.bgColor||{};function b(){var t,e,r,i=c;switch(a.inputColorType){case n.COLORTYPE_COLOR_ALPHA:i=f[d+3],t=f[d],e=f[d+1],r=f[d+2];break;case n.COLORTYPE_COLOR:t=f[d],e=f[d+1],r=f[d+2];break;case n.COLORTYPE_ALPHA:i=f[d+1],e=t=f[d],r=t;break;case n.COLORTYPE_GRAYSCALE:e=t=f[d],r=t;break;default:throw new Error(\"input color type:\"+a.inputColorType+\" is not supported at present\")}return a.inputHasAlpha&&(s||(i/=c,t=Math.min(Math.max(Math.round((1-i)*y.red+i*t),0),c),e=Math.min(Math.max(Math.round((1-i)*y.green+i*e),0),c),r=Math.min(Math.max(Math.round((1-i)*y.blue+i*r),0),c))),{red:t,green:e,blue:r,alpha:i}}void 0===y.red&&(y.red=c),void 0===y.green&&(y.green=c),void 0===y.blue&&(y.blue=c);for(var g=0;g<i;g++)for(var v=0;v<r;v++){var w=b();switch(a.colorType){case n.COLORTYPE_COLOR_ALPHA:case n.COLORTYPE_COLOR:8===a.bitDepth?(p[m]=w.red,p[m+1]=w.green,p[m+2]=w.blue,s&&(p[m+3]=w.alpha)):(p.writeUInt16BE(w.red,m),p.writeUInt16BE(w.green,m+2),p.writeUInt16BE(w.blue,m+4),s&&p.writeUInt16BE(w.alpha,m+6));break;case n.COLORTYPE_ALPHA:case n.COLORTYPE_GRAYSCALE:var _=(w.red+w.green+w.blue)/3;8===a.bitDepth?(p[m]=_,s&&(p[m+1]=w.alpha)):(p.writeUInt16BE(_,m),s&&p.writeUInt16BE(w.alpha,m+2));break;default:throw new Error(\"unrecognised color Type \"+a.colorType)}d+=h,m+=l}return p}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(84);var i={0:function(t,e,r,n,i){for(var a=0;a<r;a++)n[i+a]=t[e+a]},1:function(t,e,r,n,i,a){for(var o=0;o<r;o++){var s=o>=a?t[e+o-a]:0,u=t[e+o]-s;n[i+o]=u}},2:function(t,e,r,n,i){for(var a=0;a<r;a++){var o=e>0?t[e+a-r]:0,s=t[e+a]-o;n[i+a]=s}},3:function(t,e,r,n,i,a){for(var o=0;o<r;o++){var s=o>=a?t[e+o-a]:0,u=e>0?t[e+o-r]:0,f=t[e+o]-(s+u>>1);n[i+o]=f}},4:function(t,e,r,i,a,o){for(var s=0;s<r;s++){var u=s>=o?t[e+s-o]:0,f=e>0?t[e+s-r]:0,c=e>0&&s>=o?t[e+s-(r+o)]:0,h=t[e+s]-n(u,f,c);i[a+s]=h}}},a={0:function(t,e,r){for(var n=0,i=e+r,a=e;a<i;a++)n+=Math.abs(t[a]);return n},1:function(t,e,r,n){for(var i=0,a=0;a<r;a++){var o=a>=n?t[e+a-n]:0,s=t[e+a]-o;i+=Math.abs(s)}return i},2:function(t,e,r){for(var n=0,i=e+r,a=e;a<i;a++){var o=e>0?t[a-r]:0,s=t[a]-o;n+=Math.abs(s)}return n},3:function(t,e,r,n){for(var i=0,a=0;a<r;a++){var o=a>=n?t[e+a-n]:0,s=e>0?t[e+a-r]:0,u=t[e+a]-(o+s>>1);i+=Math.abs(u)}return i},4:function(t,e,r,i){for(var a=0,o=0;o<r;o++){var s=o>=i?t[e+o-i]:0,u=e>0?t[e+o-r]:0,f=e>0&&o>=i?t[e+o-(r+i)]:0,c=t[e+o]-n(s,u,f);a+=Math.abs(c)}return a}};t.exports=function(t,r,n,o,s){var u;if(\"filterType\"in o&&-1!==o.filterType){if(\"number\"!=typeof o.filterType)throw new Error(\"unrecognised filter types\");u=[o.filterType]}else u=[0,1,2,3,4];16===o.bitDepth&&(s*=2);for(var f=r*s,c=0,h=0,l=e.alloc((f+1)*n),p=u[0],d=0;d<n;d++){if(u.length>1)for(var m=1/0,y=0;y<u.length;y++){var b=a[u[y]](t,h,f,s);b<m&&(p=u[y],m=b)}l[c]=p,c++,i[p](t,h,f,l,c,s),c+=f,h+=f}return l}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=r(191),i=r(194);e.read=function(t,e){return n(t,e||{})},e.write=function(t,e){return i(t,e)}},function(t,e,r){\"use strict\";(function(e){var n=!0,i=r(28),a=r(192);i.deflateSync||(n=!1);var o=r(90),s=r(193),u=r(85),f=r(87),c=r(88);t.exports=function(t,r){if(!n)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var h,l,p;var d=[];var m=new o(t),y=new u(r,{read:m.read.bind(m),error:function(t){h=t},metadata:function(t){l=t},gamma:function(t){p=t},palette:function(t){l.palette=t},transColor:function(t){l.transColor=t},inflateData:function(t){d.push(t)},simpleTransparency:function(){l.alpha=!0}});if(y.start(),m.process(),h)throw h;var b,g=e.concat(d);if(d.length=0,l.interlace)b=i.inflateSync(g);else{var v=(1+(l.width*l.bpp*l.depth+7>>3))*l.height;b=a(g,{chunkSize:v,maxLength:v})}if(g=null,!b||!b.length)throw new Error(\"bad png - invalid inflate data response\");var w=s.process(b,l);g=null;var _=f.dataToBitMap(w,l);w=null;var x=c(_,l,r.skipRescale);return l.data=x,l.gamma=p||0,l}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(n,i){var a=r(53).ok,o=r(28),s=r(14),u=r(2).kMaxLength;function f(t){if(!(this instanceof f))return new f(t);t&&t.chunkSize<o.Z_MIN_CHUNK&&(t.chunkSize=o.Z_MIN_CHUNK),o.Inflate.call(this,t),this._offset=void 0===this._offset?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,t&&null!=t.maxLength&&(this._maxLength=t.maxLength)}function c(t,e){e&&n.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function h(t,e){return function(t,e){if(\"string\"==typeof e&&(e=i.from(e)),!(e instanceof i))throw new TypeError(\"Not a string or buffer\");var r=t._finishFlushFlag;return null==r&&(r=o.Z_FINISH),t._processChunk(e,r)}(new f(e),t)}f.prototype._processChunk=function(t,e,r){if(\"function\"==typeof r)return o.Inflate._processChunk.call(this,t,e,r);var n,s,f=this,h=t&&t.length,l=this._chunkSize-this._offset,p=this._maxLength,d=0,m=[],y=0;function b(t,e){if(!f._hadError){var r=l-e;if(a(r>=0,\"have should not go down\"),r>0){var n=f._buffer.slice(f._offset,f._offset+r);if(f._offset+=r,n.length>p&&(n=n.slice(0,p)),m.push(n),y+=n.length,0===(p-=n.length))return!1}return(0===e||f._offset>=f._chunkSize)&&(l=f._chunkSize,f._offset=0,f._buffer=i.allocUnsafe(f._chunkSize)),0===e&&(d+=h-t,h=t,!0)}}this.on(\"error\",(function(t){n=t})),a(this._handle,\"zlib binding closed\");do{s=(s=this._handle.writeSync(e,t,d,h,this._buffer,this._offset,l))||this._writeState}while(!this._hadError&&b(s[0],s[1]));if(this._hadError)throw n;if(y>=u)throw c(this),new RangeError(\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\");var g=i.concat(m,y);return c(this),g},s.inherits(f,o.Inflate),t.exports=e=h,e.Inflate=f,e.createInflate=function(t){return new f(t)},e.inflateSync=h}).call(this,r(7),r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(90),i=r(82);e.process=function(e,r){var a=[],o=new n(e);return new i(r,{read:o.read.bind(o),write:function(t){a.push(t)},complete:function(){}}).start(),o.process(),t.concat(a)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=!0,i=r(28);i.deflateSync||(n=!1);var a=r(30),o=r(89);t.exports=function(t,r){if(!n)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var s=new o(r||{}),u=[];u.push(e.from(a.PNG_SIGNATURE)),u.push(s.packIHDR(t.width,t.height)),t.gamma&&u.push(s.packGAMA(t.gamma));var f=s.filterData(t.data,t.width,t.height),c=i.deflateSync(f,s.getDeflateOptions());if(f=null,!c||!c.length)throw new Error(\"bad png - invalid compressed data response\");return u.push(s.packIDAT(c)),u.push(s.packIEND()),e.concat(u)}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag=\"BM\",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}r.prototype.encode=function(){var t=new e(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var r=0,n=3*this.width+this.extraBytes,i=0;i<this.height;i++){for(var a=0;a<this.width;a++){var o=this.pos+i*n+3*a;r++,t[o]=this.buffer[r++],t[o+1]=this.buffer[r++],t[o+2]=this.buffer[r++]}if(this.extraBytes>0){var s=this.pos+i*n+3*this.width;t.fill(0,s,s+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new r(t).encode(),width:t.width,height:t.height}}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString(\"utf-8\",0,this.pos+=2),\"BM\"!=this.flag)throw new Error(\"Invalid BMP File\");this.parseHeader(),this.parseRGBA()}r.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);this.palette[e]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},r.prototype.parseRGBA=function(){var t=\"bit\"+this.bitPP,r=this.width*this.height*4;this.data=new e(r),this[t]()},r.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,r=this.height>=0?this.height-1:-this.height;for(r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++)for(var a=this.buffer.readUInt8(this.pos++),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var u=this.palette[a>>7-s&1];this.data[o+4*s]=0,this.data[o+4*s+1]=u.blue,this.data[o+4*s+2]=u.green,this.data[o+4*s+3]=u.red}0!=e&&(this.pos+=4-e)}},r.prototype.bit4=function(){if(2==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0,n=!1;e<this.data.length;){var i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);if(0==i){if(0==a){this.bottom_up?r--:r++,e=r*this.width*4,n=!1;continue}if(1==a)break;if(2==a){var o=this.buffer.readUInt8(this.pos++),s=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=s:r+=s,e+=s*this.width*4+4*o}else{for(var u=this.buffer.readUInt8(this.pos++),f=0;f<a;f++)t.call(this,n?15&u:(240&u)>>4),1&f&&f+1<a&&(u=this.buffer.readUInt8(this.pos++)),n=!n;1==(a+1>>1&1)&&this.pos++}}else for(f=0;f<i;f++)t.call(this,n?15&a:(240&a)>>4),n=!n}}else{var c=Math.ceil(this.width/2),h=c%4;for(s=this.height-1;s>=0;s--){var l=this.bottom_up?s:this.height-1-s;for(o=0;o<c;o++){a=this.buffer.readUInt8(this.pos++),e=l*this.width*4+2*o*4;var p=a>>4,d=15&a,m=this.palette[p];if(this.data[e]=0,this.data[e+1]=m.blue,this.data[e+2]=m.green,this.data[e+3]=m.red,2*o+1>=this.width)break;m=this.palette[d],this.data[e+4]=0,this.data[e+4+1]=m.blue,this.data[e+4+2]=m.green,this.data[e+4+3]=m.red}0!=h&&(this.pos+=4-h)}}},r.prototype.bit8=function(){if(1==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0;e<this.data.length;){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++);if(0==n){if(0==i){this.bottom_up?r--:r++,e=r*this.width*4;continue}if(1==i)break;if(2==i){var a=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=o:r+=o,e+=o*this.width*4+4*a}else{for(var s=0;s<i;s++){var u=this.buffer.readUInt8(this.pos++);t.call(this,u)}!0&i&&this.pos++}}else for(s=0;s<n;s++)t.call(this,i)}}else{var f=this.width%4;for(o=this.height-1;o>=0;o--){var c=this.bottom_up?o:this.height-1-o;for(a=0;a<this.width;a++){i=this.buffer.readUInt8(this.pos++),e=c*this.width*4+4*a;if(i<this.palette.length){var h=this.palette[i];this.data[e]=0,this.data[e+1]=h.blue,this.data[e+2]=h.green,this.data[e+3]=h.red}else this.data[e]=0,this.data[e+1]=255,this.data[e+2]=255,this.data[e+3]=255}0!=f&&(this.pos+=4-f)}}},r.prototype.bit15=function(){for(var t=this.width%3,e=parseInt(\"11111\",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.buffer.readUInt16LE(this.pos);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,u=(a>>10&e)/e*255|0,f=a>>15?255:0,c=n*this.width*4+4*i;this.data[c]=f,this.data[c+1]=o,this.data[c+2]=s,this.data[c+3]=u}this.pos+=t}},r.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],r=0;r<16;r++)this.maskRed>>r&1&&e[0]++,this.maskGreen>>r&1&&e[1]++,this.maskBlue>>r&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var o=this.buffer.readUInt16LE(this.pos);this.pos+=2;var s=(o&this.maskBlue)<<e[0],u=(o&this.maskGreen)>>e[1],f=(o&this.maskRed)>>e[2],c=i*this.width*4+4*a;this.data[c]=0,this.data[c+1]=s,this.data[c+2]=u,this.data[c+3]=f}this.pos+=t}},r.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),o=e*this.width*4+4*r;this.data[o]=0,this.data[o+1]=n,this.data[o+2]=i,this.data[o+3]=a}this.pos+=this.width%4}},r.prototype.bit32=function(){if(3==this.compress){this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4;for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=a,this.data[s+3]=o}}else for(t=this.height-1;t>=0;t--)for(e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=a,this.data[s+3]=o}},r.prototype.getData=function(){return this.data},t.exports=function(t){return new r(t)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n={};(0,r(15).assign)(n,r(198),r(201),r(95)),t.exports=n},function(t,e,r){\"use strict\";var n=r(199),i=r(15),a=r(93),o=r(56),s=r(94),u=Object.prototype.toString,f=0,c=-1,h=0,l=8;function p(t){if(!(this instanceof p))return new p(t);this.options=i.assign({level:c,method:l,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==f)throw new Error(o[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d=\"string\"==typeof e.dictionary?a.string2buf(e.dictionary):\"[object ArrayBuffer]\"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=n.deflateSetDictionary(this.strm,d))!==f)throw new Error(o[r]);this._dict_set=!0}}function d(t,e){var r=new p(e);if(r.push(t,!0),r.err)throw r.msg||o[r.err];return r.result}p.prototype.push=function(t,e){var r,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,\"string\"==typeof t?s.input=a.string2buf(t):\"[object ArrayBuffer]\"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(r=n.deflate(s,o))&&r!==f)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||(\"string\"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===o?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===f):2!==o||(this.onEnd(f),s.avail_out=0,!0)},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===f&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=p,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},function(t,e,r){\"use strict\";var n,i=r(15),a=r(200),o=r(91),s=r(92),u=r(56),f=0,c=4,h=0,l=-2,p=-1,d=4,m=2,y=8,b=9,g=286,v=30,w=19,_=2*g+1,x=15,E=3,D=258,k=D+E+1,A=42,S=103,M=113,F=666,C=1,B=2,O=3,I=4;function T(t,e){return t.msg=u[e],e}function P(t){return(t<<1)-(t>4?9:0)}function L(t){for(var e=t.length;--e>=0;)t[e]=0}function N(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function j(t,e){a._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,N(t.strm)}function R(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-k?t.strstart-(t.w_size-k):0,f=t.window,c=t.w_mask,h=t.prev,l=t.strstart+D,p=f[a+o-1],d=f[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(f[(r=e)+o]===d&&f[r+o-1]===p&&f[r]===f[a]&&f[++r]===f[a+1]){a+=2,r++;do{}while(f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&f[++a]===f[++r]&&a<l);if(n=D-(l-a),a=l-D,n>o){if(t.match_start=e,o=n,n>=s)break;p=f[a+o-1],d=f[a+o]}}}while((e=h[e&c])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead}function G(t){var e,r,n,a,u,f,c,h,l,p,d=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-k)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--r);e=r=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--r);a+=d}if(0===t.strm.avail_in)break;if(f=t.strm,c=t.window,h=t.strstart+t.lookahead,l=a,p=void 0,(p=f.avail_in)>l&&(p=l),r=0===p?0:(f.avail_in-=p,i.arraySet(c,f.input,f.next_in,p,h),1===f.state.wrap?f.adler=o(f.adler,c,p,h):2===f.state.wrap&&(f.adler=s(f.adler,c,p,h)),f.next_in+=p,f.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=E)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+E-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<k&&0!==t.strm.avail_in)}function H(t,e){for(var r,n;;){if(t.lookahead<k){if(G(t),t.lookahead<k&&e===f)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-k&&(t.match_length=U(t,r)),t.match_length>=E)if(n=a._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=t.strstart<E-1?t.strstart:E-1,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}function Z(t,e){for(var r,n,i;;){if(t.lookahead<k){if(G(t),t.lookahead<k&&e===f)return C;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=E-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-k&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===E&&t.strstart-t.match_start>4096)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-E,n=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=E-1,t.strstart++,n&&(j(t,!1),0===t.strm.avail_out))return C}else if(t.match_available){if((n=a._tr_tally(t,0,t.window[t.strstart-1]))&&j(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return C}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=a._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}function q(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*v+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*g+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*g+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?A:M,t.adler=2===e.wrap?0:1,e.last_flush=f,a._tr_init(e),h):T(t,l)}function V(t){var e,r=Y(t);return r===h&&((e=t.state).window_size=2*e.w_size,L(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=E-1,e.match_available=0,e.ins_h=0),r}function X(t,e,r,n,a,o){if(!t)return l;var s=1;if(e===p&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),a<1||a>b||r!==y||n<8||n>15||e<0||e>9||o<0||o>d)return T(t,l);8===n&&(n=9);var u=new W;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=a+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+E-1)/E),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<a+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=o,u.method=r,V(t)}n=[new q(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(G(t),0===t.lookahead&&e===f)return C;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,j(t,!1),0===t.strm.avail_out))return C;if(t.strstart-t.block_start>=t.w_size-k&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):(t.strstart>t.block_start&&(j(t,!1),t.strm.avail_out),C)})),new q(4,4,8,4,H),new q(4,5,16,8,H),new q(4,6,32,32,H),new q(4,4,16,16,Z),new q(8,16,32,32,Z),new q(8,16,128,128,Z),new q(8,32,128,256,Z),new q(32,128,258,1024,Z),new q(32,258,258,4096,Z)],e.deflateInit=function(t,e){return X(t,e,y,15,8,0)},e.deflateInit2=X,e.deflateReset=V,e.deflateResetKeep=Y,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?l:(t.state.gzhead=e,h):l},e.deflate=function(t,e){var r,i,o,u;if(!t||!t.state||e>5||e<0)return t?T(t,l):l;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===F&&e!==c)return T(t,0===t.avail_out?-5:l);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===A)if(2===i.wrap)t.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,3),i.status=M);else{var p=y+(i.w_bits-8<<4)<<8;p|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(p|=32),p+=31-p%31,i.status=M,z(i,p),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),N(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=S)}else i.status=S;if(i.status===S&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(t),i.pending+2<=i.pending_buf_size&&(R(i,255&t.adler),R(i,t.adler>>8&255),t.adler=0,i.status=M)):i.status=M),0!==i.pending){if(N(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&P(e)<=P(r)&&e!==c)return T(t,-5);if(i.status===F&&0!==t.avail_in)return T(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==f&&i.status!==F){var d=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(G(t),0===t.lookahead)){if(e===f)return C;break}if(t.match_length=0,r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}(i,e):3===i.strategy?function(t,e){for(var r,n,i,o,s=t.window;;){if(t.lookahead<=D){if(G(t),t.lookahead<=D&&e===f)return C;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){o=t.strstart+D;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);t.match_length=D-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=a._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(j(t,!1),0===t.strm.avail_out))return C}return t.insert=0,e===c?(j(t,!0),0===t.strm.avail_out?O:I):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?C:B}(i,e):n[i.level].func(i,e);if(d!==O&&d!==I||(i.status=F),d===C||d===O)return 0===t.avail_out&&(i.last_flush=-1),h;if(d===B&&(1===e?a._tr_align(i):5!==e&&(a._tr_stored_block(i,0,0,!1),3===e&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),N(t),0===t.avail_out))return i.last_flush=-1,h}return e!==c?h:i.wrap<=0?1:(2===i.wrap?(R(i,255&t.adler),R(i,t.adler>>8&255),R(i,t.adler>>16&255),R(i,t.adler>>24&255),R(i,255&t.total_in),R(i,t.total_in>>8&255),R(i,t.total_in>>16&255),R(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),N(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?h:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==A&&69!==e&&73!==e&&91!==e&&e!==S&&e!==M&&e!==F?T(t,l):(t.state=null,e===M?T(t,-3):h):l},e.deflateSetDictionary=function(t,e){var r,n,a,s,u,f,c,p,d=e.length;if(!t||!t.state)return l;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==A||r.lookahead)return l;for(1===s&&(t.adler=o(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,e,d-r.w_size,r.w_size,0),e=p,d=r.w_size),u=t.avail_in,f=t.next_in,c=t.input,t.avail_in=d,t.next_in=0,t.input=e,G(r);r.lookahead>=E;){n=r.strstart,a=r.lookahead-(E-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+E-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--a);r.strstart=n,r.lookahead=E-1,G(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=E-1,r.match_available=0,t.next_in=f,t.input=c,t.avail_in=u,r.wrap=s,h},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,r){\"use strict\";var n=r(15),i=0,a=1;function o(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,f=256,c=f+1+u,h=30,l=19,p=2*c+1,d=15,m=16,y=7,b=256,g=16,v=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(c+2));o(k);var A=new Array(2*h);o(A);var S=new Array(512);o(S);var M=new Array(256);o(M);var F=new Array(u);o(F);var C,B,O,I=new Array(h);function T(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function P(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function L(t){return t<256?S[t]:S[256+(t>>>7)]}function N(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function j(t,e,r){t.bi_valid>m-r?(t.bi_buf|=e<<t.bi_valid&65535,N(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=r-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function R(t,e,r){j(t,r[2*e],r[2*e+1])}function z(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function U(t,e,r){var n,i,a=new Array(d+1),o=0;for(n=1;n<=d;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(a[s]++,s))}}function G(t){var e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<l;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*b]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){t.bi_valid>8?N(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Z(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function q(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&Z(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Z(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function W(t,e,r){var n,i,a,o,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?R(t,i,e):(R(t,(a=M[i])+f+1,e),0!==(o=_[a])&&j(t,i-=F[a],o),R(t,a=L(--n),r),0!==(o=x[a])&&j(t,n-=I[a],o))}while(s<t.last_lit);R(t,b,e)}function Y(t,e){var r,n,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,f=-1;for(t.heap_len=0,t.heap_max=p,r=0;r<u;r++)0!==a[2*r]?(t.heap[++t.heap_len]=f=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=f<2?++f:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=f,r=t.heap_len>>1;r>=1;r--)q(t,a,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],q(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,q(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,u=e.dyn_tree,f=e.max_code,c=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,y=e.stat_desc.max_length,b=0;for(a=0;a<=d;a++)t.bl_count[a]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<p;r++)(a=u[2*u[2*(n=t.heap[r])+1]+1]+1)>y&&(a=y,b++),u[2*n+1]=a,n>f||(t.bl_count[a]++,o=0,n>=m&&(o=l[n-m]),s=u[2*n],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(c[2*n+1]+o)));if(0!==b){do{for(a=y-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[y]--,b-=2}while(b>0);for(a=y;0!==a;a--)for(n=t.bl_count[a];0!==n;)(i=t.heap[--r])>f||(u[2*i+1]!==a&&(t.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),n--)}}(t,e),U(a,f,t.bl_count)}function V(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<f?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[2*g]++):s<=10?t.bl_tree[2*v]++:t.bl_tree[2*w]++,s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4))}function X(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<f)do{R(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(R(t,i,t.bl_tree),s--),R(t,g,t.bl_tree),j(t,s-3,2)):s<=10?(R(t,v,t.bl_tree),j(t,s-3,3)):(R(t,w,t.bl_tree),j(t,s-11,7));s=0,a=i,0===o?(u=138,f=3):i===o?(u=6,f=3):(u=7,f=4)}}o(I);var J=!1;function K(t,e,r,i){j(t,(s<<1)+(i?1:0),3),function(t,e,r,i){H(t),i&&(N(t,r),N(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){J||(!function(){var t,e,r,n,i,a=new Array(d+1);for(r=0,n=0;n<u-1;n++)for(F[n]=r,t=0;t<1<<_[n];t++)M[r++]=n;for(M[r-1]=n,i=0,n=0;n<16;n++)for(I[n]=i,t=0;t<1<<x[n];t++)S[i++]=n;for(i>>=7;n<h;n++)for(I[n]=i<<7,t=0;t<1<<x[n]-7;t++)S[256+i++]=n;for(e=0;e<=d;e++)a[e]=0;for(t=0;t<=143;)k[2*t+1]=8,t++,a[8]++;for(;t<=255;)k[2*t+1]=9,t++,a[9]++;for(;t<=279;)k[2*t+1]=7,t++,a[7]++;for(;t<=287;)k[2*t+1]=8,t++,a[8]++;for(U(k,c+1,a),t=0;t<h;t++)A[2*t+1]=5,A[2*t]=z(t,5);C=new T(k,_,f+1,c,d),B=new T(A,x,0,h,d),O=new T(new Array(0),E,0,l,y)}(),J=!0),t.l_desc=new P(t.dyn_ltree,C),t.d_desc=new P(t.dyn_dtree,B),t.bl_desc=new P(t.bl_tree,O),t.bi_buf=0,t.bi_valid=0,G(t)},e._tr_stored_block=K,e._tr_flush_block=function(t,e,r,n){var o,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e<f;e++)if(0!==t.dyn_ltree[2*e])return a;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),u=function(t){var e;for(V(t,t.dyn_ltree,t.l_desc.max_code),V(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=l-1;e>=3&&0===t.bl_tree[2*D[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==e?K(t,e,r,n):4===t.strategy||s===o?(j(t,2+(n?1:0),3),W(t,k,A)):(j(t,4+(n?1:0),3),function(t,e,r,n){var i;for(j(t,e-257,5),j(t,r-1,5),j(t,n-4,4),i=0;i<n;i++)j(t,t.bl_tree[2*D[i]+1],3);X(t,t.dyn_ltree,e-1),X(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),W(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&H(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(M[r]+f+1)]++,t.dyn_dtree[2*L(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){j(t,2,3),R(t,b,k),function(t){16===t.bi_valid?(N(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){\"use strict\";var n=r(202),i=r(15),a=r(93),o=r(95),s=r(56),u=r(94),f=r(205),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==o.Z_OK)throw new Error(s[r]);if(this.header=new f,n.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=a.string2buf(e.dictionary):\"[object ArrayBuffer]\"===c.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==o.Z_OK))throw new Error(s[r])}function l(t,e){var r=new h(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}h.prototype.push=function(t,e){var r,s,u,f,h,l=this.strm,p=this.options.chunkSize,d=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,\"string\"==typeof t?l.input=a.binstring2buf(t):\"[object ArrayBuffer]\"===c.call(t)?l.input=new Uint8Array(t):l.input=t,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new i.Buf8(p),l.next_out=0,l.avail_out=p),(r=n.inflate(l,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&d&&(r=n.inflateSetDictionary(this.strm,d)),r===o.Z_BUF_ERROR&&!0===m&&(r=o.Z_OK,m=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),this.ended=!0,!1;l.next_out&&(0!==l.avail_out&&r!==o.Z_STREAM_END&&(0!==l.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||(\"string\"===this.options.to?(u=a.utf8border(l.output,l.next_out),f=l.next_out-u,h=a.buf2string(l.output,u),l.next_out=f,l.avail_out=p-f,f&&i.arraySet(l.output,l.output,u,f,0),this.onData(h)):this.onData(i.shrinkBuf(l.output,l.next_out)))),0===l.avail_in&&0===l.avail_out&&(m=!0)}while((l.avail_in>0||0===l.avail_out)&&r!==o.Z_STREAM_END);return r===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),l.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===o.Z_OK&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=h,e.inflate=l,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,l(t,e)},e.ungzip=l},function(t,e,r){\"use strict\";var n=r(15),i=r(91),a=r(92),o=r(203),s=r(204),u=1,f=2,c=0,h=-2,l=1,p=12,d=30,m=852,y=592;function b(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=l,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(m),e.distcode=e.distdyn=new n.Buf32(y),e.sane=1,e.back=-1,c):h}function w(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,v(t)):h}function _(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?h:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,w(t))):h}function x(t,e){var r,n;return t?(n=new g,t.state=n,n.window=null,(r=_(t,e))!==c&&(t.state=null),r):h}var E,D,k=!0;function A(t){if(k){var e;for(E=new n.Buf32(512),D=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,E,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(f,t.lens,0,32,D,0,t.work,{bits:5}),k=!1}t.lencode=E,t.lenbits=9,t.distcode=D,t.distbits=5}function S(t,e,r,i){var a,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),n.arraySet(o.window,e,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,e,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}e.inflateReset=w,e.inflateReset2=_,e.inflateResetKeep=v,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var r,m,y,g,v,w,_,x,E,D,k,M,F,C,B,O,I,T,P,L,N,j,R,z,U=0,G=new n.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;(r=t.state).mode===p&&(r.mode=13),v=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,D=w,k=_,j=c;t:for(;;)switch(r.mode){case l:if(0===r.wrap){r.mode=13;break}for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(2&r.wrap&&35615===x){r.check=0,G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0),x=0,E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",r.mode=d;break}if(8!=(15&x)){t.msg=\"unknown compression method\",r.mode=d;break}if(E-=4,N=8+(15&(x>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){t.msg=\"invalid window size\",r.mode=d;break}r.dmax=1<<N,t.adler=r.check=1,r.mode=512&x?10:p,x=0,E=0;break;case 2:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.flags=x,8!=(255&r.flags)){t.msg=\"unknown compression method\",r.mode=d;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=d;break}r.head&&(r.head.text=x>>8&1),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0,r.mode=3;case 3:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.time=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,G[2]=x>>>16&255,G[3]=x>>>24&255,r.check=a(r.check,G,4,0)),x=0,E=0,r.mode=4;case 4:for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>8),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0,r.mode=5;case 5:if(1024&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=a(r.check,G,2,0)),x=0,E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((M=r.length)>w&&(M=w),M&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,m,g,M,N)),512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,r.length-=M),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break t;M=0;do{N=m[g+M++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,N)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break t;M=0;do{N=m[g+M++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=a(r.check,m,M,g)),w-=M,g+=M,N)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=d;break}x=0,E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=p;break;case 10:for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}t.adler=r.check=b(x),x=0,E=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,2;t.adler=r.check=1,r.mode=p;case p:if(5===e||6===e)break t;case 13:if(r.last){x>>>=7&E,E-=7&E,r.mode=27;break}for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}switch(r.last=1&x,E-=1,3&(x>>>=1)){case 0:r.mode=14;break;case 1:if(A(r),r.mode=20,6===e){x>>>=2,E-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=d}x>>>=2,E-=2;break;case 14:for(x>>>=7&E,E-=7&E;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=d;break}if(r.length=65535&x,x=0,E=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(M=r.length){if(M>w&&(M=w),M>_&&(M=_),0===M)break t;n.arraySet(y,m,g,M,v),w-=M,g+=M,_-=M,v+=M,r.length-=M;break}r.mode=p;break;case 17:for(;E<14;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(r.nlen=257+(31&x),x>>>=5,E-=5,r.ndist=1+(31&x),x>>>=5,E-=5,r.ncode=4+(15&x),x>>>=4,E-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=d;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;E<3;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.lens[H[r.have++]]=7&x,x>>>=3,E-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},j=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid code lengths set\",r.mode=d;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;O=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(I<16)x>>>=B,E-=B,r.lens[r.have++]=I;else{if(16===I){for(z=B+2;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x>>>=B,E-=B,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=d;break}N=r.lens[r.have-1],M=3+(3&x),x>>>=2,E-=2}else if(17===I){for(z=B+3;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=B,N=0,M=3+(7&(x>>>=B)),x>>>=3,E-=3}else{for(z=B+7;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}E-=B,N=0,M=11+(127&(x>>>=B)),x>>>=7,E-=7}if(r.have+M>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=d;break}for(;M--;)r.lens[r.have++]=N}}if(r.mode===d)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=d;break}if(r.lenbits=9,R={bits:r.lenbits},j=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid literal/lengths set\",r.mode=d;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},j=s(f,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,j){t.msg=\"invalid distances set\",r.mode=d;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(w>=6&&_>=258){t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,o(t,k),v=t.next_out,y=t.output,_=t.avail_out,g=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,r.mode===p&&(r.back=-1);break}for(r.back=0;O=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(O&&!(240&O)){for(T=B,P=O,L=I;O=(U=r.lencode[L+((x&(1<<T+P)-1)>>T)])>>>16&255,I=65535&U,!(T+(B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=B,E-=B,r.back+=B,r.length=I,0===O){r.mode=26;break}if(32&O){r.back=-1,r.mode=p;break}if(64&O){t.msg=\"invalid literal/length code\",r.mode=d;break}r.extra=15&O,r.mode=22;case 22:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.length+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;O=(U=r.distcode[x&(1<<r.distbits)-1])>>>16&255,I=65535&U,!((B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(!(240&O)){for(T=B,P=O,L=I;O=(U=r.distcode[L+((x&(1<<T+P)-1)>>T)])>>>16&255,I=65535&U,!(T+(B=U>>>24)<=E);){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}x>>>=T,E-=T,r.back+=T}if(x>>>=B,E-=B,r.back+=B,64&O){t.msg=\"invalid distance code\",r.mode=d;break}r.offset=I,r.extra=15&O,r.mode=24;case 24:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}r.offset+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=d;break}r.mode=25;case 25:if(0===_)break t;if(M=k-_,r.offset>M){if((M=r.offset-M)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=d;break}M>r.wnext?(M-=r.wnext,F=r.wsize-M):F=r.wnext-M,M>r.length&&(M=r.length),C=r.window}else C=y,F=v-r.offset,M=r.length;M>_&&(M=_),_-=M,r.length-=M;do{y[v++]=C[F++]}while(--M);0===r.length&&(r.mode=21);break;case 26:if(0===_)break t;y[v++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;E<32;){if(0===w)break t;w--,x|=m[g++]<<E,E+=8}if(k-=_,t.total_out+=k,r.total+=k,k&&(t.adler=r.check=r.flags?a(r.check,y,k,v-k):i(r.check,y,k,v-k)),k=_,(r.flags?x:b(x))!==r.check){t.msg=\"incorrect data check\",r.mode=d;break}x=0,E=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;E<32;){if(0===w)break t;w--,x+=m[g++]<<E,E+=8}if(x!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=d;break}x=0,E=0}r.mode=29;case 29:j=1;break t;case d:j=-3;break t;case 31:return-4;default:return h}return t.next_out=v,t.avail_out=_,t.next_in=g,t.avail_in=w,r.hold=x,r.bits=E,(r.wsize||k!==t.avail_out&&r.mode<d&&(r.mode<27||4!==e))&&S(t,t.output,t.next_out,k-t.avail_out)?(r.mode=31,-4):(D-=t.avail_in,k-=t.avail_out,t.total_in+=D,t.total_out+=k,r.total+=k,r.wrap&&k&&(t.adler=r.check=r.flags?a(r.check,y,k,t.next_out-k):i(r.check,y,k,t.next_out-k)),t.data_type=r.bits+(r.last?64:0)+(r.mode===p?128:0)+(20===r.mode||15===r.mode?256:0),(0===D&&0===k||4===e)&&j===c&&(j=-5),j)},e.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,c},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,c):h},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?h:11===r.mode&&i(1,e,n,0)!==r.check?-3:S(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,c):h},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,r){\"use strict\";t.exports=function(t,e){var r,n,i,a,o,s,u,f,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k,A;r=t.state,n=t.next_in,k=t.input,i=n+(t.avail_in-5),a=t.next_out,A=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),u=r.dmax,f=r.wsize,c=r.whave,h=r.wnext,l=r.window,p=r.hold,d=r.bits,m=r.lencode,y=r.distcode,b=(1<<r.lenbits)-1,g=(1<<r.distbits)-1;t:do{d<15&&(p+=k[n++]<<d,d+=8,p+=k[n++]<<d,d+=8),v=m[p&b];e:for(;;){if(p>>>=w=v>>>24,d-=w,0===(w=v>>>16&255))A[a++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break t}t.msg=\"invalid literal/length code\",r.mode=30;break t}v=m[(65535&v)+(p&(1<<w)-1)];continue e}for(_=65535&v,(w&=15)&&(d<w&&(p+=k[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=k[n++]<<d,d+=8,p+=k[n++]<<d,d+=8),v=y[p&g];;){if(p>>>=w=v>>>24,d-=w,16&(w=v>>>16&255)){if(x=65535&v,d<(w&=15)&&(p+=k[n++]<<d,(d+=8)<w&&(p+=k[n++]<<d,d+=8)),(x+=p&(1<<w)-1)>u){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(p>>>=w,d-=w,x>(w=a-o)){if((w=x-w)>c&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(E=0,D=l,0===h){if(E+=f-w,w<_){_-=w;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}}else if(h<w){if(E+=f+h-w,(w-=h)<_){_-=w;do{A[a++]=l[E++]}while(--w);if(E=0,h<_){_-=w=h;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}}}else if(E+=h-w,w<_){_-=w;do{A[a++]=l[E++]}while(--w);E=a-x,D=A}for(;_>2;)A[a++]=D[E++],A[a++]=D[E++],A[a++]=D[E++],_-=3;_&&(A[a++]=D[E++],_>1&&(A[a++]=D[E++]))}else{E=a-x;do{A[a++]=A[E++],A[a++]=A[E++],A[a++]=A[E++],_-=3}while(_>2);_&&(A[a++]=A[E++],_>1&&(A[a++]=A[E++]))}break}if(64&w){t.msg=\"invalid distance code\",r.mode=30;break t}v=y[(65535&v)+(p&(1<<w)-1)]}}break}}while(n<i&&a<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=a<s?s-a+257:257-(a-s),r.hold=p,r.bits=d}},function(t,e,r){\"use strict\";var n=r(15),i=15,a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,f,c,h,l,p){var d,m,y,b,g,v,w,_,x,E=p.bits,D=0,k=0,A=0,S=0,M=0,F=0,C=0,B=0,O=0,I=0,T=null,P=0,L=new n.Buf16(16),N=new n.Buf16(16),j=null,R=0;for(D=0;D<=i;D++)L[D]=0;for(k=0;k<f;k++)L[e[r+k]]++;for(M=E,S=i;S>=1&&0===L[S];S--);if(M>S&&(M=S),0===S)return c[h++]=20971520,c[h++]=20971520,p.bits=1,0;for(A=1;A<S&&0===L[A];A++);for(M<A&&(M=A),B=1,D=1;D<=i;D++)if(B<<=1,(B-=L[D])<0)return-1;if(B>0&&(0===t||1!==S))return-1;for(N[1]=0,D=1;D<i;D++)N[D+1]=N[D]+L[D];for(k=0;k<f;k++)0!==e[r+k]&&(l[N[e[r+k]]++]=k);if(0===t?(T=j=l,v=19):1===t?(T=a,P-=257,j=o,R-=257,v=256):(T=s,j=u,v=-1),I=0,k=0,D=A,g=h,F=M,C=0,y=-1,b=(O=1<<M)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){w=D-C,l[k]<v?(_=0,x=l[k]):l[k]>v?(_=j[R+l[k]],x=T[P+l[k]]):(_=96,x=0),d=1<<D-C,A=m=1<<F;do{c[g+(I>>C)+(m-=d)]=w<<24|_<<16|x}while(0!==m);for(d=1<<D-1;I&d;)d>>=1;if(0!==d?(I&=d-1,I+=d):I=0,k++,0==--L[D]){if(D===S)break;D=e[r+l[k]]}if(D>M&&(I&b)!==y){for(0===C&&(C=M),g+=A,B=1<<(F=D-C);F+C<S&&!((B-=L[F+C])<=0);)F++,B<<=1;if(O+=1<<F,1===t&&O>852||2===t&&O>592)return 1;c[y=I&b]=M<<24|F<<16|g-h}}return 0!==I&&(c[g+I]=D-C<<24|64<<16),p.bits=M,0}},function(t,e,r){\"use strict\";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1}},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"applyPalette\",(function(){return Vt})),r.d(e,\"applyPaletteSync\",(function(){return Yt})),r.d(e,\"buildPalette\",(function(){return Wt})),r.d(e,\"buildPaletteSync\",(function(){return qt})),r.d(e,\"constants\",(function(){return o})),r.d(e,\"conversion\",(function(){return h})),r.d(e,\"distance\",(function(){return N})),r.d(e,\"image\",(function(){return Ft})),r.d(e,\"palette\",(function(){return tt})),r.d(e,\"quality\",(function(){return jt})),r.d(e,\"utils\",(function(){return ot}));var n=Object.defineProperty,i=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},a=(t,e,r)=>(((t,e,r)=>{e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r})(t,\"symbol\"!=typeof e?e+\"\":e,r),r),o={};i(o,{bt709:()=>s});var s={};i(s,{Y:()=>u,x:()=>f,y:()=>c});var u=(t=>(t[t.RED=.2126]=\"RED\",t[t.GREEN=.7152]=\"GREEN\",t[t.BLUE=.0722]=\"BLUE\",t[t.WHITE=1]=\"WHITE\",t))(u||{}),f=(t=>(t[t.RED=.64]=\"RED\",t[t.GREEN=.3]=\"GREEN\",t[t.BLUE=.15]=\"BLUE\",t[t.WHITE=.3127]=\"WHITE\",t))(f||{}),c=(t=>(t[t.RED=.33]=\"RED\",t[t.GREEN=.6]=\"GREEN\",t[t.BLUE=.06]=\"BLUE\",t[t.WHITE=.329]=\"WHITE\",t))(c||{}),h={};function l(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}function p(t,e,r){return{x:.4124*(t=l(t/255))+.3576*(e=l(e/255))+.1805*(r=l(r/255)),y:.2126*t+.7152*e+.0722*r,z:.0193*t+.1192*e+.9505*r}}i(h,{lab2rgb:()=>L,lab2xyz:()=>I,rgb2hsl:()=>x,rgb2lab:()=>M,rgb2xyz:()=>p,xyz2lab:()=>S,xyz2rgb:()=>P});var d={};function m(t){return t*(Math.PI/180)}function y(t,e,r){let n=t;return n<e&&(n=e),n<r&&(n=r),n}function b(t,e,r){let n=t;return n>e&&(n=e),n>r&&(n=r),n}function g(t,e,r){return t>r&&(t=r),t<e&&(t=e),0|t}function v(t){return(t=Math.round(t))>255?t=255:t<0&&(t=0),t}function w(t){return t>255?t=255:t<0&&(t=0),t}function _(t,e){const r=typeof t[0];let n;if(\"number\"===r||\"string\"===r){const r=Object.create(null);for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]||0===r[n]||(r[n]=e)}n=t.sort(((t,n)=>e(t,n)||r[t]-r[n]))}else{const r=t.slice(0);n=t.sort(((t,n)=>e(t,n)||r.indexOf(t)-r.indexOf(n)))}return n}function x(t,e,r){const n=b(t,e,r),i=y(t,e,r),a=i-n,o=(n+i)/510;let s=0;o>0&&o<1&&(s=a/(o<.5?i+n:510-i-n));let u=0;return a>0&&(u=i===t?(e-r)/a:i===e?2+(r-t)/a:4+(t-e)/a,u*=60,u<0&&(u+=360)),{h:u,s,l:o}}i(d,{degrees2radians:()=>m,inRange0to255:()=>w,inRange0to255Rounded:()=>v,intInRange:()=>g,max3:()=>y,min3:()=>b,stableSort:()=>_});var E=.95047,D=1,k=1.08883;function A(t){return t>.008856?t**(1/3):7.787*t+16/116}function S(t,e,r){if(t=A(t/E),e=A(e/D),r=A(r/k),116*e-16<0)throw new Error(\"xxx\");return{L:Math.max(0,116*e-16),a:500*(t-e),b:200*(e-r)}}function M(t,e,r){const n=p(t,e,r);return S(n.x,n.y,n.z)}var F=.95047,C=1,B=1.08883;function O(t){return t>.206893034?t**3:(t-16/116)/7.787}function I(t,e,r){const n=(t+16)/116,i=n-r/200;return{x:F*O(e/500+n),y:C*O(n),z:B*O(i)}}function T(t){return t>.0031308?1.055*t**(1/2.4)-.055:12.92*t}function P(t,e,r){const n=T(3.2406*t+-1.5372*e+-.4986*r),i=T(-.9689*t+1.8758*e+.0415*r),a=T(.0557*t+-.204*e+1.057*r);return{r:v(255*n),g:v(255*i),b:v(255*a)}}function L(t,e,r){const n=I(t,e,r);return P(n.x,n.y,n.z)}var N={};i(N,{AbstractDistanceCalculator:()=>j,AbstractEuclidean:()=>q,AbstractManhattan:()=>X,CIE94GraphicArts:()=>U,CIE94Textiles:()=>z,CIEDE2000:()=>H,CMetric:()=>Z,Euclidean:()=>W,EuclideanBT709:()=>Y,EuclideanBT709NoAlpha:()=>V,Manhattan:()=>J,ManhattanBT709:()=>Q,ManhattanNommyde:()=>K,PNGQuant:()=>$});var j=class{constructor(){a(this,\"_maxDistance\"),a(this,\"_whitePoint\"),this._setDefaults(),this.setWhitePoint(255,255,255,255)}setWhitePoint(t,e,r,n){this._whitePoint={r:t>0?255/t:0,g:e>0?255/e:0,b:r>0?255/r:0,a:n>0?255/n:0},this._maxDistance=this.calculateRaw(t,e,r,n,0,0,0,0)}calculateNormalized(t,e){return this.calculateRaw(t.r,t.g,t.b,t.a,e.r,e.g,e.b,e.a)/this._maxDistance}},R=class extends j{calculateRaw(t,e,r,n,i,a,o,s){const u=M(w(t*this._whitePoint.r),w(e*this._whitePoint.g),w(r*this._whitePoint.b)),f=M(w(i*this._whitePoint.r),w(a*this._whitePoint.g),w(o*this._whitePoint.b)),c=u.L-f.L,h=u.a-f.a,l=u.b-f.b,p=Math.sqrt(u.a*u.a+u.b*u.b),d=p-Math.sqrt(f.a*f.a+f.b*f.b);let m=h*h+l*l-d*d;m=m<0?0:Math.sqrt(m);const y=(s-n)*this._whitePoint.a*this._kA;return Math.sqrt((c/this._Kl)**2+(d/(1+this._K1*p))**2+(m/(1+this._K2*p))**2+y**2)}},z=class extends R{_setDefaults(){this._Kl=2,this._K1=.048,this._K2=.014,this._kA=12.5/255}},U=class extends R{_setDefaults(){this._Kl=1,this._K1=.045,this._K2=.015,this._kA=25/255}},G=class extends j{_setDefaults(){}static _calculatehp(t,e){const r=Math.atan2(t,e);return r>=0?r:r+G._deg360InRad}static _calculateRT(t,e){const r=e**7,n=2*Math.sqrt(r/(r+G._pow25to7)),i=G._deg30InRad*Math.exp(-(((t-G._deg275InRad)/G._deg25InRad)**2));return-Math.sin(2*i)*n}static _calculateT(t){return 1-.17*Math.cos(t-G._deg30InRad)+.24*Math.cos(2*t)+.32*Math.cos(3*t+G._deg6InRad)-.2*Math.cos(4*t-G._deg63InRad)}static _calculate_ahp(t,e,r,n){const i=r+n;return 0===t?i:e<=G._deg180InRad?i/2:i<G._deg360InRad?(i+G._deg360InRad)/2:(i-G._deg360InRad)/2}static _calculate_dHp(t,e,r,n){let i;return i=0===t?0:e<=G._deg180InRad?r-n:r<=n?r-n+G._deg360InRad:r-n-G._deg360InRad,2*Math.sqrt(t)*Math.sin(i/2)}calculateRaw(t,e,r,n,i,a,o,s){const u=M(w(t*this._whitePoint.r),w(e*this._whitePoint.g),w(r*this._whitePoint.b)),f=M(w(i*this._whitePoint.r),w(a*this._whitePoint.g),w(o*this._whitePoint.b)),c=(s-n)*this._whitePoint.a*G._kA,h=this.calculateRawInLab(u,f);return Math.sqrt(h+c*c)}calculateRawInLab(t,e){const r=t.L,n=t.a,i=t.b,a=e.L,o=e.a,s=e.b,u=((Math.sqrt(n*n+i*i)+Math.sqrt(o*o+s*s))/2)**7,f=.5*(1-Math.sqrt(u/(u+G._pow25to7))),c=(1+f)*n,h=(1+f)*o,l=Math.sqrt(c*c+i*i),p=Math.sqrt(h*h+s*s),d=l*p,m=G._calculatehp(i,c),y=G._calculatehp(s,h),b=Math.abs(m-y),g=a-r,v=p-l,w=G._calculate_dHp(d,b,y,m),_=G._calculate_ahp(d,b,m,y),x=(l+p)/2,E=((r+a)/2-50)**2,D=v/(1+.045*x),k=w/(1+.015*G._calculateT(_)*x);return(g/(1+.015*E/Math.sqrt(20+E)))**2+D**2+k**2+G._calculateRT(_,x)*D*k}},H=G;a(H,\"_kA\",25/255),a(H,\"_pow25to7\",25**7),a(H,\"_deg360InRad\",m(360)),a(H,\"_deg180InRad\",m(180)),a(H,\"_deg30InRad\",m(30)),a(H,\"_deg6InRad\",m(6)),a(H,\"_deg63InRad\",m(63)),a(H,\"_deg275InRad\",m(275)),a(H,\"_deg25InRad\",m(25));var Z=class extends j{calculateRaw(t,e,r,n,i,a,o,s){const u=(t+i)/2*this._whitePoint.r,f=(t-i)*this._whitePoint.r,c=(e-a)*this._whitePoint.g,h=(r-o)*this._whitePoint.b,l=((512+u)*f*f>>8)+4*c*c+((767-u)*h*h>>8),p=(s-n)*this._whitePoint.a;return Math.sqrt(l+p*p)}_setDefaults(){}},q=class extends j{calculateRaw(t,e,r,n,i,a,o,s){const u=i-t,f=a-e,c=o-r,h=s-n;return Math.sqrt(this._kR*u*u+this._kG*f*f+this._kB*c*c+this._kA*h*h)}},W=class extends q{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},Y=class extends q{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},V=class extends q{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=0}},X=class extends j{calculateRaw(t,e,r,n,i,a,o,s){let u=i-t,f=a-e,c=o-r,h=s-n;return u<0&&(u=0-u),f<0&&(f=0-f),c<0&&(c=0-c),h<0&&(h=0-h),this._kR*u+this._kG*f+this._kB*c+this._kA*h}},J=class extends X{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},K=class extends X{_setDefaults(){this._kR=.4984,this._kG=.8625,this._kB=.2979,this._kA=1}},Q=class extends X{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},$=class extends j{calculateRaw(t,e,r,n,i,a,o,s){const u=(s-n)*this._whitePoint.a;return this._colordifferenceCh(t*this._whitePoint.r,i*this._whitePoint.r,u)+this._colordifferenceCh(e*this._whitePoint.g,a*this._whitePoint.g,u)+this._colordifferenceCh(r*this._whitePoint.b,o*this._whitePoint.b,u)}_colordifferenceCh(t,e,r){const n=t-e,i=n+r;return n*n+i*i}_setDefaults(){}},tt={};i(tt,{AbstractPaletteQuantizer:()=>et,ColorHistogram:()=>gt,NeuQuant:()=>pt,NeuQuantFloat:()=>yt,RGBQuant:()=>wt,WuColorCube:()=>At,WuQuant:()=>Mt});var et=class{quantizeSync(){for(const t of this.quantize())if(t.palette)return t.palette;throw new Error(\"unreachable\")}},rt=class{constructor(){a(this,\"r\"),a(this,\"g\"),a(this,\"b\"),a(this,\"a\"),a(this,\"uint32\"),a(this,\"rgba\"),this.uint32=-1>>>0,this.r=this.g=this.b=this.a=0,this.rgba=new Array(4),this.rgba[0]=0,this.rgba[1]=0,this.rgba[2]=0,this.rgba[3]=0}static createByQuadruplet(t){const e=new rt;return e.r=0|t[0],e.g=0|t[1],e.b=0|t[2],e.a=0|t[3],e._loadUINT32(),e._loadQuadruplet(),e}static createByRGBA(t,e,r,n){const i=new rt;return i.r=0|t,i.g=0|e,i.b=0|r,i.a=0|n,i._loadUINT32(),i._loadQuadruplet(),i}static createByUint32(t){const e=new rt;return e.uint32=t>>>0,e._loadRGBA(),e._loadQuadruplet(),e}from(t){this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this.uint32=t.uint32,this.rgba[0]=t.r,this.rgba[1]=t.g,this.rgba[2]=t.b,this.rgba[3]=t.a}getLuminosity(t){let e=this.r,r=this.g,n=this.b;return t&&(e=Math.min(255,255-this.a+this.a*e/255),r=Math.min(255,255-this.a+this.a*r/255),n=Math.min(255,255-this.a+this.a*n/255)),.2126*e+.7152*r+.0722*n}_loadUINT32(){this.uint32=(this.a<<24|this.b<<16|this.g<<8|this.r)>>>0}_loadRGBA(){this.r=255&this.uint32,this.g=this.uint32>>>8&255,this.b=this.uint32>>>16&255,this.a=this.uint32>>>24&255}_loadQuadruplet(){this.rgba[0]=this.r,this.rgba[1]=this.g,this.rgba[2]=this.b,this.rgba[3]=this.a}},nt=class{constructor(){a(this,\"_pointArray\"),a(this,\"_width\"),a(this,\"_height\"),this._width=0,this._height=0,this._pointArray=[]}getWidth(){return this._width}getHeight(){return this._height}setWidth(t){this._width=t}setHeight(t){this._height=t}getPointArray(){return this._pointArray}clone(){const t=new nt;t._width=this._width,t._height=this._height;for(let e=0,r=this._pointArray.length;e<r;e++)t._pointArray[e]=rt.createByUint32(0|this._pointArray[e].uint32);return t}toUint32Array(){const t=this._pointArray.length,e=new Uint32Array(t);for(let r=0;r<t;r++)e[r]=this._pointArray[r].uint32;return e}toUint8Array(){return new Uint8Array(this.toUint32Array().buffer)}static fromHTMLImageElement(t){const e=t.naturalWidth,r=t.naturalHeight,n=document.createElement(\"canvas\");n.width=e,n.height=r;return n.getContext(\"2d\").drawImage(t,0,0,e,r,0,0,e,r),nt.fromHTMLCanvasElement(n)}static fromHTMLCanvasElement(t){const e=t.width,r=t.height,n=t.getContext(\"2d\").getImageData(0,0,e,r);return nt.fromImageData(n)}static fromImageData(t){const e=t.width,r=t.height;return nt.fromUint8Array(t.data,e,r)}static fromUint8Array(t,e,r){switch(Object.prototype.toString.call(t)){case\"[object Uint8ClampedArray]\":case\"[object Uint8Array]\":break;default:t=new Uint8Array(t)}const n=new Uint32Array(t.buffer);return nt.fromUint32Array(n,e,r)}static fromUint32Array(t,e,r){const n=new nt;n._width=e,n._height=r;for(let e=0,r=t.length;e<r;e++)n._pointArray[e]=rt.createByUint32(0|t[e]);return n}static fromBuffer(t,e,r){const n=new Uint32Array(t.buffer,t.byteOffset,t.byteLength/Uint32Array.BYTES_PER_ELEMENT);return nt.fromUint32Array(n,e,r)}};function it(t,e){const r=360/e;for(let n=1,i=r-r/2;n<e;n++,i+=r)if(t>=i&&t<i+r)return n;return 0}var at=class{constructor(){a(this,\"_pointContainer\"),a(this,\"_pointArray\",[]),a(this,\"_i32idx\",{}),this._pointContainer=new nt,this._pointContainer.setHeight(1),this._pointArray=this._pointContainer.getPointArray()}add(t){this._pointArray.push(t),this._pointContainer.setWidth(this._pointArray.length)}has(t){for(let e=this._pointArray.length-1;e>=0;e--)if(t.uint32===this._pointArray[e].uint32)return!0;return!1}getNearestColor(t,e){return this._pointArray[0|this._getNearestIndex(t,e)]}getPointContainer(){return this._pointContainer}_nearestPointFromCache(t){return\"number\"==typeof this._i32idx[t]?this._i32idx[t]:-1}_getNearestIndex(t,e){let r=this._nearestPointFromCache(\"\"+e.uint32);if(r>=0)return r;let n=Number.MAX_VALUE;r=0;for(let i=0,a=this._pointArray.length;i<a;i++){const a=this._pointArray[i],o=t.calculateRaw(e.r,e.g,e.b,e.a,a.r,a.g,a.b,a.a);o<n&&(n=o,r=i)}return this._i32idx[e.uint32]=r,r}sort(){this._i32idx={},this._pointArray.sort(((t,e)=>{const r=x(t.r,t.g,t.b),n=x(e.r,e.g,e.b),i=t.r===t.g&&t.g===t.b?0:1+it(r.h,10),a=(e.r===e.g&&e.g===e.b?0:1+it(n.h,10))-i;if(a)return-a;const o=t.getLuminosity(!0),s=e.getLuminosity(!0);if(s-o!=0)return s-o;const u=(100*n.s|0)-(100*r.s|0);return u?-u:0}))}},ot={};i(ot,{HueStatistics:()=>ut,Palette:()=>at,Point:()=>rt,PointContainer:()=>nt,ProgressTracker:()=>ct,arithmetic:()=>d});var st=class{constructor(){a(this,\"num\",0),a(this,\"cols\",[])}},ut=class{constructor(t,e){a(this,\"_numGroups\"),a(this,\"_minCols\"),a(this,\"_stats\"),a(this,\"_groupsFull\"),this._numGroups=t,this._minCols=e,this._stats=[];for(let e=0;e<=t;e++)this._stats[e]=new st;this._groupsFull=0}check(t){this._groupsFull===this._numGroups+1&&(this.check=()=>{});const e=255&t,r=t>>>8&255,n=t>>>16&255,i=e===r&&r===n?0:1+it(x(e,r,n).h,this._numGroups),a=this._stats[i],o=this._minCols;a.num++,a.num>o||(a.num===o&&this._groupsFull++,a.num<=o&&this._stats[i].cols.push(t))}injectIntoDictionary(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{t[e]?t[e]++:t[e]=1}))}injectIntoArray(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{-1===t.indexOf(e)&&t.push(e)}))}},ft=class{constructor(t,e){a(this,\"progress\"),a(this,\"_step\"),a(this,\"_range\"),a(this,\"_last\"),a(this,\"_progressRange\"),this._range=t,this._progressRange=e,this._step=Math.max(1,this._range/(ft.steps+1)|0),this._last=-this._step,this.progress=0}shouldNotify(t){return t-this._last>=this._step&&(this._last=t,this.progress=Math.min(this._progressRange*this._last/this._range,this._progressRange),!0)}},ct=ft;a(ct,\"steps\",100);var ht=class{constructor(t){a(this,\"r\"),a(this,\"g\"),a(this,\"b\"),a(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return rt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=0|t,this.g-=0|e,this.b-=0|r,this.a-=0|n}},lt=class extends et{constructor(t,e=256){super(),a(this,\"_pointArray\"),a(this,\"_networkSize\"),a(this,\"_network\"),a(this,\"_sampleFactor\"),a(this,\"_radPower\"),a(this,\"_freq\"),a(this,\"_bias\"),a(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new ht((t<<11)/this._networkSize|0),this._freq[t]=lt._initialBias/this._networkSize|0,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<lt._minpicturebytes&&(t=1);const r=30+(t-1)/3|0,n=e/t|0;let i,a=n/lt._nCycles|0,o=lt._initAlpha,s=(this._networkSize>>3)*lt._radiusBias,u=s>>lt._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*lt._radBias/(u*u))>>>0;i=e<lt._minpicturebytes?1:e%lt._prime1!=0?lt._prime1:e%lt._prime2!=0?lt._prime2:e%lt._prime3!=0?lt._prime3:lt._prime4;const f=new ct(n,99);for(let t=0,c=0;t<n;){f.shouldNotify(t)&&(yield{progress:f.progress});const n=this._pointArray[c],h=n.b<<3,l=n.g<<3,p=n.r<<3,d=n.a<<3,m=this._contest(h,l,p,d);if(this._alterSingle(o,m,h,l,p,d),0!==u&&this._alterNeighbour(u,m,h,l,p,d),c+=i,c>=e&&(c-=e),t++,0===a&&(a=1),t%a==0){o-=o/r|0,s-=s/lt._radiusDecrease|0,u=s>>lt._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*lt._radBias/(u*u))>>>0}}}_buildPalette(){const t=new at;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,a){let o=e-t;o<-1&&(o=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,f=e-1,c=1;for(;u<s||f>o;){const t=this._radPower[c++]/lt._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}if(f>o){const e=this._network[f--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}}}_alterSingle(t,e,r,n,i,a){t/=lt._initAlpha;const o=this._network[e];o.subtract(t*(o.r-i),t*(o.g-n),t*(o.b-r),t*(o.a-a))}_contest(t,e,r,n){let i=~(1<<31),a=i,o=-1,s=o;for(let u=0;u<this._networkSize;u++){const f=this._network[u],c=8160*this._distance.calculateNormalized(f,{r,g:e,b:t,a:n})|0;c<i&&(i=c,o=u);const h=c-(this._bias[u]>>lt._initialBiasShift-3);h<a&&(a=h,s=u);const l=this._freq[u]>>lt._betaShift;this._freq[u]-=l,this._bias[u]+=l<<lt._gammaShift}return this._freq[o]+=lt._beta,this._bias[o]-=lt._betaGamma,s}},pt=lt;a(pt,\"_prime1\",499),a(pt,\"_prime2\",491),a(pt,\"_prime3\",487),a(pt,\"_prime4\",503),a(pt,\"_minpicturebytes\",lt._prime4),a(pt,\"_nCycles\",100),a(pt,\"_initialBiasShift\",16),a(pt,\"_initialBias\",1<<lt._initialBiasShift),a(pt,\"_gammaShift\",10),a(pt,\"_betaShift\",10),a(pt,\"_beta\",lt._initialBias>>lt._betaShift),a(pt,\"_betaGamma\",lt._initialBias<<lt._gammaShift-lt._betaShift),a(pt,\"_radiusBiasShift\",6),a(pt,\"_radiusBias\",1<<lt._radiusBiasShift),a(pt,\"_radiusDecrease\",30),a(pt,\"_alphaBiasShift\",10),a(pt,\"_initAlpha\",1<<lt._alphaBiasShift),a(pt,\"_radBiasShift\",8),a(pt,\"_radBias\",1<<lt._radBiasShift),a(pt,\"_alphaRadBiasShift\",lt._alphaBiasShift+lt._radBiasShift),a(pt,\"_alphaRadBias\",1<<lt._alphaRadBiasShift);var dt=class{constructor(t){a(this,\"r\"),a(this,\"g\"),a(this,\"b\"),a(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return rt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=t,this.g-=e,this.b-=r,this.a-=n}},mt=class extends et{constructor(t,e=256){super(),a(this,\"_pointArray\"),a(this,\"_networkSize\"),a(this,\"_network\"),a(this,\"_sampleFactor\"),a(this,\"_radPower\"),a(this,\"_freq\"),a(this,\"_bias\"),a(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new dt((t<<11)/this._networkSize),this._freq[t]=mt._initialBias/this._networkSize,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<mt._minpicturebytes&&(t=1);const r=30+(t-1)/3,n=e/t;let i,a=n/mt._nCycles|0,o=mt._initAlpha,s=(this._networkSize>>3)*mt._radiusBias,u=s>>mt._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*mt._radBias/(u*u));i=e<mt._minpicturebytes?1:e%mt._prime1!=0?mt._prime1:e%mt._prime2!=0?mt._prime2:e%mt._prime3!=0?mt._prime3:mt._prime4;const f=new ct(n,99);for(let t=0,c=0;t<n;){f.shouldNotify(t)&&(yield{progress:f.progress});const n=this._pointArray[c],h=n.b<<3,l=n.g<<3,p=n.r<<3,d=n.a<<3,m=this._contest(h,l,p,d);if(this._alterSingle(o,m,h,l,p,d),0!==u&&this._alterNeighbour(u,m,h,l,p,d),c+=i,c>=e&&(c-=e),t++,0===a&&(a=1),t%a==0){o-=o/r,s-=s/mt._radiusDecrease,u=s>>mt._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*mt._radBias/(u*u))}}}_buildPalette(){const t=new at;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,a){let o=e-t;o<-1&&(o=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,f=e-1,c=1;for(;u<s||f>o;){const t=this._radPower[c++]/mt._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}if(f>o){const e=this._network[f--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}}}_alterSingle(t,e,r,n,i,a){t/=mt._initAlpha;const o=this._network[e];o.subtract(t*(o.r-i),t*(o.g-n),t*(o.b-r),t*(o.a-a))}_contest(t,e,r,n){let i=~(1<<31),a=i,o=-1,s=o;for(let u=0;u<this._networkSize;u++){const f=this._network[u],c=8160*this._distance.calculateNormalized(f,{r,g:e,b:t,a:n});c<i&&(i=c,o=u);const h=c-(this._bias[u]>>mt._initialBiasShift-3);h<a&&(a=h,s=u);const l=this._freq[u]>>mt._betaShift;this._freq[u]-=l,this._bias[u]+=l<<mt._gammaShift}return this._freq[o]+=mt._beta,this._bias[o]-=mt._betaGamma,s}},yt=mt;a(yt,\"_prime1\",499),a(yt,\"_prime2\",491),a(yt,\"_prime3\",487),a(yt,\"_prime4\",503),a(yt,\"_minpicturebytes\",mt._prime4),a(yt,\"_nCycles\",100),a(yt,\"_initialBiasShift\",16),a(yt,\"_initialBias\",1<<mt._initialBiasShift),a(yt,\"_gammaShift\",10),a(yt,\"_betaShift\",10),a(yt,\"_beta\",mt._initialBias>>mt._betaShift),a(yt,\"_betaGamma\",mt._initialBias<<mt._gammaShift-mt._betaShift),a(yt,\"_radiusBiasShift\",6),a(yt,\"_radiusBias\",1<<mt._radiusBiasShift),a(yt,\"_radiusDecrease\",30),a(yt,\"_alphaBiasShift\",10),a(yt,\"_initAlpha\",1<<mt._alphaBiasShift),a(yt,\"_radBiasShift\",8),a(yt,\"_radBias\",1<<mt._radBiasShift),a(yt,\"_alphaRadBiasShift\",mt._alphaBiasShift+mt._radBiasShift),a(yt,\"_alphaRadBias\",1<<mt._alphaRadBiasShift);var bt=class{constructor(t,e){a(this,\"_method\"),a(this,\"_hueStats\"),a(this,\"_histogram\"),a(this,\"_initColors\"),a(this,\"_minHueCols\"),this._method=t,this._minHueCols=e<<2,this._initColors=e<<2,this._hueStats=new ut(bt._hueGroups,this._minHueCols),this._histogram=Object.create(null)}sample(t){switch(this._method){case 1:this._colorStats1D(t);break;case 2:this._colorStats2D(t)}}getImportanceSortedColorsIDXI32(){const t=_(Object.keys(this._histogram),((t,e)=>this._histogram[e]-this._histogram[t]));if(0===t.length)return[];let e;switch(this._method){case 1:const r=Math.min(t.length,this._initColors),n=t[r-1],i=this._histogram[n];e=t.slice(0,r);let a=r;const o=t.length;for(;a<o&&this._histogram[t[a]]===i;)e.push(t[a++]);this._hueStats.injectIntoArray(e);break;case 2:e=t;break;default:throw new Error(\"Incorrect method\")}return e.map((t=>+t))}_colorStats1D(t){const e=this._histogram,r=t.getPointArray(),n=r.length;for(let t=0;t<n;t++){const n=r[t].uint32;this._hueStats.check(n),n in e?e[n]++:e[n]=1}}_colorStats2D(t){const e=t.getWidth(),r=t.getHeight(),n=t.getPointArray(),i=bt._boxSize[0],a=bt._boxSize[1],o=i*a,s=this._makeBoxes(e,r,i,a),u=this._histogram;s.forEach((t=>{let r=Math.round(t.w*t.h/o)*bt._boxPixels;r<2&&(r=2);const i={};this._iterateBox(t,e,(t=>{const e=n[t].uint32;this._hueStats.check(e),e in u?u[e]++:e in i?++i[e]>=r&&(u[e]=i[e]):i[e]=1}))})),this._hueStats.injectIntoDictionary(u)}_iterateBox(t,e,r){const n=t,i=n.y*e+n.x,a=(n.y+n.h-1)*e+(n.x+n.w-1),o=e-n.w+1;let s=0,u=i;do{r.call(this,u),u+=++s%n.w==0?o:1}while(u<=a)}_makeBoxes(t,e,r,n){const i=t%r,a=e%n,o=t-i,s=e-a,u=[];for(let f=0;f<e;f+=n)for(let e=0;e<t;e+=r)u.push({x:e,y:f,w:e===o?i:r,h:f===s?a:n});return u}},gt=bt;a(gt,\"_boxSize\",[64,64]),a(gt,\"_boxPixels\",2),a(gt,\"_hueGroups\",10);var vt=class{constructor(t,e,r){a(this,\"index\"),a(this,\"color\"),a(this,\"distance\"),this.index=t,this.color=e,this.distance=r}},wt=class extends et{constructor(t,e=256,r=2){super(),a(this,\"_colors\"),a(this,\"_initialDistance\"),a(this,\"_distanceIncrement\"),a(this,\"_histogram\"),a(this,\"_distance\"),this._distance=t,this._colors=e,this._histogram=new gt(r,e),this._initialDistance=.01,this._distanceIncrement=.005}sample(t){this._histogram.sample(t)}*quantize(){const t=this._histogram.getImportanceSortedColorsIDXI32();if(0===t.length)throw new Error(\"No colors in image\");yield*this._buildPalette(t)}*_buildPalette(t){const e=new at,r=e.getPointContainer().getPointArray(),n=new Array(t.length);for(let e=0;e<t.length;e++)r.push(rt.createByUint32(t[e])),n[e]=1;const i=r.length,a=[];let o=i,s=this._initialDistance;const u=new ct(o-this._colors,99);for(;o>this._colors;){a.length=0;for(let t=0;t<i;t++){if(u.shouldNotify(i-o)&&(yield{progress:u.progress}),0===n[t])continue;const e=r[t];for(let u=t+1;u<i;u++){if(0===n[u])continue;const t=r[u],i=this._distance.calculateNormalized(e,t);i<s&&(a.push(new vt(u,t,i)),n[u]=0,o--)}}s+=o>3*this._colors?this._initialDistance:this._distanceIncrement}if(o<this._colors){_(a,((t,e)=>e.distance-t.distance));let t=0;for(;o<this._colors&&t<a.length;){n[a[t].index]=1,o++,t++}}let f=r.length;for(let t=f-1;t>=0;t--)0===n[t]&&(t!==f-1&&(r[t]=r[f-1]),--f);r.length=f,e.sort(),yield{palette:e,progress:100}}};function _t(t){const e=[];for(let r=0;r<t;r++)e[r]=0;return e}function xt(t,e,r,n){const i=new Array(t);for(let a=0;a<t;a++){i[a]=new Array(e);for(let t=0;t<e;t++){i[a][t]=new Array(r);for(let e=0;e<r;e++){i[a][t][e]=new Array(n);for(let r=0;r<n;r++)i[a][t][e][r]=0}}}return i}function Et(t,e,r){const n=new Array(t);for(let i=0;i<t;i++){n[i]=new Array(e);for(let t=0;t<e;t++){n[i][t]=new Array(r);for(let e=0;e<r;e++)n[i][t][e]=0}}return n}function Dt(t,e,r,n,i){for(let a=0;a<e;a++){t[a]=[];for(let e=0;e<r;e++){t[a][e]=[];for(let r=0;r<n;r++)t[a][e][r]=i}}}function kt(t,e,r){for(let n=0;n<e;n++)t[n]=r}var At=class{constructor(){a(this,\"redMinimum\"),a(this,\"redMaximum\"),a(this,\"greenMinimum\"),a(this,\"greenMaximum\"),a(this,\"blueMinimum\"),a(this,\"blueMaximum\"),a(this,\"volume\"),a(this,\"alphaMinimum\"),a(this,\"alphaMaximum\")}},St=class extends et{constructor(t,e=256,r=5){super(),a(this,\"_reds\"),a(this,\"_greens\"),a(this,\"_blues\"),a(this,\"_alphas\"),a(this,\"_sums\"),a(this,\"_weights\"),a(this,\"_momentsRed\"),a(this,\"_momentsGreen\"),a(this,\"_momentsBlue\"),a(this,\"_momentsAlpha\"),a(this,\"_moments\"),a(this,\"_table\"),a(this,\"_pixels\"),a(this,\"_cubes\"),a(this,\"_colors\"),a(this,\"_significantBitsPerChannel\"),a(this,\"_maxSideIndex\"),a(this,\"_alphaMaxSideIndex\"),a(this,\"_sideSize\"),a(this,\"_alphaSideSize\"),a(this,\"_distance\"),this._distance=t,this._setQuality(r),this._initialize(e)}sample(t){const e=t.getPointArray();for(let t=0,r=e.length;t<r;t++)this._addColor(e[t]);this._pixels=this._pixels.concat(e)}*quantize(){yield*this._preparePalette();const t=new at;for(let e=0;e<this._colors;e++)if(this._sums[e]>0){const r=this._sums[e],n=this._reds[e]/r,i=this._greens[e]/r,a=this._blues[e]/r,o=this._alphas[e]/r,s=rt.createByRGBA(0|n,0|i,0|a,0|o);t.add(s)}t.sort(),yield{palette:t,progress:100}}*_preparePalette(){yield*this._calculateMoments();let t=0;const e=_t(this._colors);for(let r=1;r<this._colors;++r){this._cut(this._cubes[t],this._cubes[r])?(e[t]=this._cubes[t].volume>1?this._calculateVariance(this._cubes[t]):0,e[r]=this._cubes[r].volume>1?this._calculateVariance(this._cubes[r]):0):(e[t]=0,r--),t=0;let n=e[0];for(let i=1;i<=r;++i)e[i]>n&&(n=e[i],t=i);if(n<=0){this._colors=r+1;break}}const r=[],n=[],i=[],a=[];for(let t=0;t<this._colors;++t){const e=St._volume(this._cubes[t],this._weights);e>0?(r[t]=St._volume(this._cubes[t],this._momentsRed)/e|0,n[t]=St._volume(this._cubes[t],this._momentsGreen)/e|0,i[t]=St._volume(this._cubes[t],this._momentsBlue)/e|0,a[t]=St._volume(this._cubes[t],this._momentsAlpha)/e|0):(r[t]=0,n[t]=0,i[t]=0,a[t]=0)}this._reds=_t(this._colors+1),this._greens=_t(this._colors+1),this._blues=_t(this._colors+1),this._alphas=_t(this._colors+1),this._sums=_t(this._colors+1);for(let t=0,e=this._pixels.length;t<e;t++){const e=this._pixels[t];let o=-1,s=Number.MAX_VALUE;for(let t=0;t<this._colors;t++){const u=r[t],f=n[t],c=i[t],h=a[t],l=this._distance.calculateRaw(u,f,c,h,e.r,e.g,e.b,e.a);l<s&&(s=l,o=t)}this._reds[o]+=e.r,this._greens[o]+=e.g,this._blues[o]+=e.b,this._alphas[o]+=e.a,this._sums[o]++}}_addColor(t){const e=8-this._significantBitsPerChannel,r=1+(t.r>>e),n=1+(t.g>>e),i=1+(t.b>>e),a=1+(t.a>>e);this._weights[a][r][n][i]++,this._momentsRed[a][r][n][i]+=t.r,this._momentsGreen[a][r][n][i]+=t.g,this._momentsBlue[a][r][n][i]+=t.b,this._momentsAlpha[a][r][n][i]+=t.a,this._moments[a][r][n][i]+=this._table[t.r]+this._table[t.g]+this._table[t.b]+this._table[t.a]}*_calculateMoments(){const t=[],e=[],r=[],n=[],i=[],a=[],o=Et(this._sideSize,this._sideSize,this._sideSize),s=Et(this._sideSize,this._sideSize,this._sideSize),u=Et(this._sideSize,this._sideSize,this._sideSize),f=Et(this._sideSize,this._sideSize,this._sideSize),c=Et(this._sideSize,this._sideSize,this._sideSize),h=Et(this._sideSize,this._sideSize,this._sideSize);let l=0;const p=new ct(this._alphaMaxSideIndex*this._maxSideIndex,99);for(let d=1;d<=this._alphaMaxSideIndex;++d){Dt(o,this._sideSize,this._sideSize,this._sideSize,0),Dt(s,this._sideSize,this._sideSize,this._sideSize,0),Dt(u,this._sideSize,this._sideSize,this._sideSize,0),Dt(f,this._sideSize,this._sideSize,this._sideSize,0),Dt(c,this._sideSize,this._sideSize,this._sideSize,0),Dt(h,this._sideSize,this._sideSize,this._sideSize,0);for(let m=1;m<=this._maxSideIndex;++m,++l){p.shouldNotify(l)&&(yield{progress:p.progress}),kt(t,this._sideSize,0),kt(e,this._sideSize,0),kt(r,this._sideSize,0),kt(n,this._sideSize,0),kt(i,this._sideSize,0),kt(a,this._sideSize,0);for(let l=1;l<=this._maxSideIndex;++l){let p=0,y=0,b=0,g=0,v=0,w=0;for(let _=1;_<=this._maxSideIndex;++_)p+=this._weights[d][m][l][_],y+=this._momentsRed[d][m][l][_],b+=this._momentsGreen[d][m][l][_],g+=this._momentsBlue[d][m][l][_],v+=this._momentsAlpha[d][m][l][_],w+=this._moments[d][m][l][_],t[_]+=p,e[_]+=y,r[_]+=b,n[_]+=g,i[_]+=v,a[_]+=w,o[m][l][_]=o[m-1][l][_]+t[_],s[m][l][_]=s[m-1][l][_]+e[_],u[m][l][_]=u[m-1][l][_]+r[_],f[m][l][_]=f[m-1][l][_]+n[_],c[m][l][_]=c[m-1][l][_]+i[_],h[m][l][_]=h[m-1][l][_]+a[_],this._weights[d][m][l][_]=this._weights[d-1][m][l][_]+o[m][l][_],this._momentsRed[d][m][l][_]=this._momentsRed[d-1][m][l][_]+s[m][l][_],this._momentsGreen[d][m][l][_]=this._momentsGreen[d-1][m][l][_]+u[m][l][_],this._momentsBlue[d][m][l][_]=this._momentsBlue[d-1][m][l][_]+f[m][l][_],this._momentsAlpha[d][m][l][_]=this._momentsAlpha[d-1][m][l][_]+c[m][l][_],this._moments[d][m][l][_]=this._moments[d-1][m][l][_]+h[m][l][_]}}}}static _volumeFloat(t,e){return e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMaximum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum])}static _volume(t,e){return 0|St._volumeFloat(t,e)}static _top(t,e,r,n){let i;switch(e){case St._alpha:i=n[r][t.redMaximum][t.greenMaximum][t.blueMaximum]-n[r][t.redMaximum][t.greenMinimum][t.blueMaximum]-n[r][t.redMinimum][t.greenMaximum][t.blueMaximum]+n[r][t.redMinimum][t.greenMinimum][t.blueMaximum]-(n[r][t.redMaximum][t.greenMaximum][t.blueMinimum]-n[r][t.redMaximum][t.greenMinimum][t.blueMinimum]-n[r][t.redMinimum][t.greenMaximum][t.blueMinimum]+n[r][t.redMinimum][t.greenMinimum][t.blueMinimum]);break;case St._red:i=n[t.alphaMaximum][r][t.greenMaximum][t.blueMaximum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMaximum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMaximum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMaximum]-(n[t.alphaMaximum][r][t.greenMaximum][t.blueMinimum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMinimum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMinimum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMinimum]);break;case St._green:i=n[t.alphaMaximum][t.redMaximum][r][t.blueMaximum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMaximum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMaximum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMaximum]-(n[t.alphaMaximum][t.redMaximum][r][t.blueMinimum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMinimum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMinimum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMinimum]);break;case St._blue:i=n[t.alphaMaximum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMaximum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMaximum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMaximum][t.redMinimum][t.greenMinimum][r]-(n[t.alphaMinimum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMinimum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMinimum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMinimum][t.redMinimum][t.greenMinimum][r]);break;default:throw new Error(\"impossible\")}return 0|i}static _bottom(t,e,r){switch(e){case St._alpha:return-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case St._red:return-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case St._green:return-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case St._blue:return-r[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);default:return 0}}_calculateVariance(t){const e=St._volume(t,this._momentsRed),r=St._volume(t,this._momentsGreen),n=St._volume(t,this._momentsBlue),i=St._volume(t,this._momentsAlpha);return St._volumeFloat(t,this._moments)-(e*e+r*r+n*n+i*i)/St._volume(t,this._weights)}_maximize(t,e,r,n,i,a,o,s,u){const f=0|St._bottom(t,e,this._momentsRed),c=0|St._bottom(t,e,this._momentsGreen),h=0|St._bottom(t,e,this._momentsBlue),l=0|St._bottom(t,e,this._momentsAlpha),p=0|St._bottom(t,e,this._weights);let d=0,m=-1;for(let y=r;y<n;++y){let r=f+St._top(t,e,y,this._momentsRed),n=c+St._top(t,e,y,this._momentsGreen),b=h+St._top(t,e,y,this._momentsBlue),g=l+St._top(t,e,y,this._momentsAlpha),v=p+St._top(t,e,y,this._weights);if(0!==v){let t=r*r+n*n+b*b+g*g,e=t/v;r=i-r,n=a-n,b=o-b,g=s-g,v=u-v,0!==v&&(t=r*r+n*n+b*b+g*g,e+=t/v,e>d&&(d=e,m=y))}}return{max:d,position:m}}_cut(t,e){let r;const n=St._volume(t,this._momentsRed),i=St._volume(t,this._momentsGreen),a=St._volume(t,this._momentsBlue),o=St._volume(t,this._momentsAlpha),s=St._volume(t,this._weights),u=this._maximize(t,St._red,t.redMinimum+1,t.redMaximum,n,i,a,o,s),f=this._maximize(t,St._green,t.greenMinimum+1,t.greenMaximum,n,i,a,o,s),c=this._maximize(t,St._blue,t.blueMinimum+1,t.blueMaximum,n,i,a,o,s),h=this._maximize(t,St._alpha,t.alphaMinimum+1,t.alphaMaximum,n,i,a,o,s);if(h.max>=u.max&&h.max>=f.max&&h.max>=c.max){if(r=St._alpha,h.position<0)return!1}else r=u.max>=h.max&&u.max>=f.max&&u.max>=c.max?St._red:f.max>=h.max&&f.max>=u.max&&f.max>=c.max?St._green:St._blue;switch(e.redMaximum=t.redMaximum,e.greenMaximum=t.greenMaximum,e.blueMaximum=t.blueMaximum,e.alphaMaximum=t.alphaMaximum,r){case St._red:e.redMinimum=t.redMaximum=u.position,e.greenMinimum=t.greenMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case St._green:e.greenMinimum=t.greenMaximum=f.position,e.redMinimum=t.redMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case St._blue:e.blueMinimum=t.blueMaximum=c.position,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum,e.alphaMinimum=t.alphaMinimum;break;case St._alpha:e.alphaMinimum=t.alphaMaximum=h.position,e.blueMinimum=t.blueMinimum,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum}return t.volume=(t.redMaximum-t.redMinimum)*(t.greenMaximum-t.greenMinimum)*(t.blueMaximum-t.blueMinimum)*(t.alphaMaximum-t.alphaMinimum),e.volume=(e.redMaximum-e.redMinimum)*(e.greenMaximum-e.greenMinimum)*(e.blueMaximum-e.blueMinimum)*(e.alphaMaximum-e.alphaMinimum),!0}_initialize(t){this._colors=t,this._cubes=[];for(let e=0;e<t;e++)this._cubes[e]=new At;this._cubes[0].redMinimum=0,this._cubes[0].greenMinimum=0,this._cubes[0].blueMinimum=0,this._cubes[0].alphaMinimum=0,this._cubes[0].redMaximum=this._maxSideIndex,this._cubes[0].greenMaximum=this._maxSideIndex,this._cubes[0].blueMaximum=this._maxSideIndex,this._cubes[0].alphaMaximum=this._alphaMaxSideIndex,this._weights=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsRed=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsGreen=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsBlue=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsAlpha=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._moments=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._table=[];for(let t=0;t<256;++t)this._table[t]=t*t;this._pixels=[]}_setQuality(t=5){this._significantBitsPerChannel=t,this._maxSideIndex=1<<this._significantBitsPerChannel,this._alphaMaxSideIndex=this._maxSideIndex,this._sideSize=this._maxSideIndex+1,this._alphaSideSize=this._alphaMaxSideIndex+1}},Mt=St;a(Mt,\"_alpha\",3),a(Mt,\"_red\",2),a(Mt,\"_green\",1),a(Mt,\"_blue\",0);var Ft={};i(Ft,{AbstractImageQuantizer:()=>Ct,ErrorDiffusionArray:()=>It,ErrorDiffusionArrayKernel:()=>Ot,ErrorDiffusionRiemersma:()=>Nt,NearestColor:()=>Bt});var Ct=class{quantizeSync(t,e){for(const r of this.quantize(t,e))if(r.pointContainer)return r.pointContainer;throw new Error(\"unreachable\")}},Bt=class extends Ct{constructor(t){super(),a(this,\"_distance\"),this._distance=t}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),a=new ct(i,99);for(let t=0;t<i;t++){a.shouldNotify(t)&&(yield{progress:a.progress});for(let i=0,a=t*n;i<n;i++,a++){const t=r[a];t.from(e.getNearestColor(this._distance,t))}}yield{pointContainer:t,progress:100}}},Ot=(t=>(t[t.FloydSteinberg=0]=\"FloydSteinberg\",t[t.FalseFloydSteinberg=1]=\"FalseFloydSteinberg\",t[t.Stucki=2]=\"Stucki\",t[t.Atkinson=3]=\"Atkinson\",t[t.Jarvis=4]=\"Jarvis\",t[t.Burkes=5]=\"Burkes\",t[t.Sierra=6]=\"Sierra\",t[t.TwoSierra=7]=\"TwoSierra\",t[t.SierraLite=8]=\"SierraLite\",t))(Ot||{}),It=class extends Ct{constructor(t,e,r=!0,n=0,i=!1){super(),a(this,\"_minColorDistance\"),a(this,\"_serpentine\"),a(this,\"_kernel\"),a(this,\"_calculateErrorLikeGIMP\"),a(this,\"_distance\"),this._setKernel(e),this._distance=t,this._minColorDistance=n,this._serpentine=r,this._calculateErrorLikeGIMP=i}*quantize(t,e){const r=t.getPointArray(),n=new rt,i=t.getWidth(),a=t.getHeight(),o=[];let s=1,u=1;for(const t of this._kernel){const e=t[2]+1;u<e&&(u=e)}for(let t=0;t<u;t++)this._fillErrorLine(o[t]=[],i);const f=new ct(a,99);for(let t=0;t<a;t++){f.shouldNotify(t)&&(yield{progress:f.progress}),this._serpentine&&(s*=-1);const u=t*i,c=1===s?0:i-1,h=1===s?i:-1;this._fillErrorLine(o[0],i),o.push(o.shift());const l=o[0];for(let f=c,p=u+c;f!==h;f+=s,p+=s){const u=r[p],c=l[f];n.from(u);const h=rt.createByRGBA(v(u.r+c[0]),v(u.g+c[1]),v(u.b+c[2]),v(u.a+c[3])),d=e.getNearestColor(this._distance,h);if(u.from(d),this._minColorDistance){if(this._distance.calculateNormalized(n,d)<this._minColorDistance)continue}let m,y,b,g;this._calculateErrorLikeGIMP?(m=h.r-d.r,y=h.g-d.g,b=h.b-d.b,g=h.a-d.a):(m=n.r-d.r,y=n.g-d.g,b=n.b-d.b,g=n.a-d.a);const w=1===s?0:this._kernel.length-1,_=1===s?this._kernel.length:-1;for(let e=w;e!==_;e+=s){const r=this._kernel[e][1]*s,n=this._kernel[e][2];if(r+f>=0&&r+f<i&&n+t>=0&&n+t<a){const t=this._kernel[e][0],i=o[n][r+f];i[0]+=m*t,i[1]+=y*t,i[2]+=b*t,i[3]+=g*t}}}}yield{pointContainer:t,progress:100}}_fillErrorLine(t,e){t.length>e&&(t.length=e);const r=t.length;for(let e=0;e<r;e++){const r=t[e];r[0]=r[1]=r[2]=r[3]=0}for(let n=r;n<e;n++)t[n]=[0,0,0,0]}_setKernel(t){switch(t){case 0:this._kernel=[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]];break;case 1:this._kernel=[[3/8,1,0],[3/8,0,1],[2/8,1,1]];break;case 2:this._kernel=[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]];break;case 3:this._kernel=[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]];break;case 4:this._kernel=[[7/48,1,0],[5/48,2,0],[3/48,-2,1],[5/48,-1,1],[7/48,0,1],[5/48,1,1],[3/48,2,1],[1/48,-2,2],[3/48,-1,2],[5/48,0,2],[3/48,1,2],[1/48,2,2]];break;case 5:this._kernel=[[.25,1,0],[4/32,2,0],[2/32,-2,1],[4/32,-1,1],[.25,0,1],[4/32,1,1],[2/32,2,1]];break;case 6:this._kernel=[[5/32,1,0],[3/32,2,0],[2/32,-2,1],[4/32,-1,1],[5/32,0,1],[4/32,1,1],[2/32,2,1],[2/32,-1,2],[3/32,0,2],[2/32,1,2]];break;case 7:this._kernel=[[.25,1,0],[3/16,2,0],[1/16,-2,1],[2/16,-1,1],[3/16,0,1],[2/16,1,1],[1/16,2,1]];break;case 8:this._kernel=[[.5,1,0],[1/4,-1,1],[1/4,0,1]];break;default:throw new Error(`ErrorDiffusionArray: unknown kernel = ${t}`)}}};function*Tt(t,e,r){const n=Math.max(t,e),i={width:t,height:e,level:Math.floor(Math.log(n)/Math.log(2)+1),callback:r,tracker:new ct(t*e,99),index:0,x:0,y:0};yield*Pt(i,1),Lt(i,0)}function*Pt(t,e){if(!(t.level<1)){switch(t.tracker.shouldNotify(t.index)&&(yield{progress:t.tracker.progress}),t.level--,e){case 2:yield*Pt(t,1),Lt(t,3),yield*Pt(t,2),Lt(t,4),yield*Pt(t,2),Lt(t,2),yield*Pt(t,4);break;case 3:yield*Pt(t,4),Lt(t,2),yield*Pt(t,3),Lt(t,1),yield*Pt(t,3),Lt(t,3),yield*Pt(t,1);break;case 1:yield*Pt(t,2),Lt(t,4),yield*Pt(t,1),Lt(t,3),yield*Pt(t,1),Lt(t,1),yield*Pt(t,3);break;case 4:yield*Pt(t,3),Lt(t,1),yield*Pt(t,4),Lt(t,2),yield*Pt(t,4),Lt(t,4),yield*Pt(t,2)}t.level++}}function Lt(t,e){switch(t.x>=0&&t.x<t.width&&t.y>=0&&t.y<t.height&&(t.callback(t.x,t.y),t.index++),e){case 2:t.x--;break;case 3:t.x++;break;case 1:t.y--;break;case 4:t.y++}}var Nt=class extends Ct{constructor(t,e=16,r=1){super(),a(this,\"_distance\"),a(this,\"_weights\"),a(this,\"_errorQueueSize\"),this._distance=t,this._errorQueueSize=e,this._weights=Nt._createWeights(r,e)}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),a=[];let o=0;for(let t=0;t<this._errorQueueSize;t++)a[t]={r:0,g:0,b:0,a:0};yield*Tt(n,i,((t,i)=>{const s=r[t+i*n];let{r:u,g:f,b:c,a:h}=s;for(let t=0;t<this._errorQueueSize;t++){const e=this._weights[t],r=a[(t+o)%this._errorQueueSize];u+=r.r*e,f+=r.g*e,c+=r.b*e,h+=r.a*e}const l=rt.createByRGBA(v(u),v(f),v(c),v(h)),p=e.getNearestColor(this._distance,l);o=(o+1)%this._errorQueueSize;const d=(o+this._errorQueueSize-1)%this._errorQueueSize;a[d].r=s.r-p.r,a[d].g=s.g-p.g,a[d].b=s.b-p.b,a[d].a=s.a-p.a,s.from(p)})),yield{pointContainer:t,progress:100}}static _createWeights(t,e){const r=[],n=Math.exp(Math.log(e)/(e-1));for(let i=0,a=1;i<e;i++)r[i]=(a+.5|0)/e*t,a*=n;return r}},jt={};i(jt,{ssim:()=>Ut});var Rt=.01,zt=.03;function Ut(t,e){if(t.getHeight()!==e.getHeight()||t.getWidth()!==e.getWidth())throw new Error(\"Images have different sizes!\");const r=(255*Rt)**2,n=(255*zt)**2;let i=0,a=0;return function(t,e,r){const n=8,i=t.getWidth(),a=t.getHeight();for(let o=0;o<a;o+=n)for(let s=0;s<i;s+=n){const u=Math.min(n,i-s),f=Math.min(n,a-o),c=Gt(t,s,o,u,f),h=Gt(e,s,o,u,f);r(c,h,Ht(c),Ht(h))}}(t,e,((t,e,o,s)=>{let u=0,f=0,c=0;for(let r=0;r<t.length;r++)f+=(t[r]-o)**2,c+=(e[r]-s)**2,u+=(t[r]-o)*(e[r]-s);const h=t.length-1;f/=h,c/=h,u/=h;a+=(2*o*s+r)*(2*u+n)/((o**2+s**2+r)*(f+c+n)),i++})),a/i}function Gt(t,e,r,n,i){const a=t.getPointArray(),o=[];let s=0;for(let u=r;u<r+i;u++){const r=u*t.getWidth();for(let t=e;t<e+n;t++){const e=a[r+t];o[s]=.2126*e.r+.7152*e.g+.0722*e.b,s++}}return o}function Ht(t){let e=0;for(const r of t)e+=r;return e/t.length}var Zt=\"function\"==typeof setImmediate?setImmediate:\"undefined\"!=typeof process&&\"function\"==typeof(null==process?void 0:process.nextTick)?t=>process.nextTick(t):t=>setTimeout(t,0);function qt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n}={}){const i=Kt(Xt(e),r,n);return t.forEach((t=>i.sample(t))),i.quantizeSync()}async function Wt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n,onProgress:i}={}){return new Promise(((a,o)=>{const s=Kt(Xt(e),r,n);let u;t.forEach((t=>s.sample(t)));const f=s.quantize(),c=()=>{try{const t=f.next();t.done?a(u):(t.value.palette&&(u=t.value.palette),i&&i(t.value.progress),Zt(c))}catch(t){o(t)}};Zt(c)}))}function Yt(t,e,{colorDistanceFormula:r,imageQuantization:n}={}){return Jt(Xt(r),n).quantizeSync(t,e)}async function Vt(t,e,{colorDistanceFormula:r,imageQuantization:n,onProgress:i}={}){return new Promise(((a,o)=>{let s;const u=Jt(Xt(r),n).quantize(t,e),f=()=>{try{const t=u.next();t.done?a(s):(t.value.pointContainer&&(s=t.value.pointContainer),i&&i(t.value.progress),Zt(f))}catch(t){o(t)}};Zt(f)}))}function Xt(t=\"euclidean-bt709\"){switch(t){case\"cie94-graphic-arts\":return new U;case\"cie94-textiles\":return new z;case\"ciede2000\":return new H;case\"color-metric\":return new Z;case\"euclidean\":return new W;case\"euclidean-bt709\":return new Y;case\"euclidean-bt709-noalpha\":return new V;case\"manhattan\":return new J;case\"manhattan-bt709\":return new Q;case\"manhattan-nommyde\":return new K;case\"pngquant\":return new $;default:throw new Error(`Unknown colorDistanceFormula ${t}`)}}function Jt(t,e=\"floyd-steinberg\"){switch(e){case\"nearest\":return new Bt(t);case\"riemersma\":return new Nt(t);case\"floyd-steinberg\":return new It(t,0);case\"false-floyd-steinberg\":return new It(t,1);case\"stucki\":return new It(t,2);case\"atkinson\":return new It(t,3);case\"jarvis\":return new It(t,4);case\"burkes\":return new It(t,5);case\"sierra\":return new It(t,6);case\"two-sierra\":return new It(t,7);case\"sierra-lite\":return new It(t,8);default:throw new Error(`Unknown imageQuantization ${e}`)}}function Kt(t,e=\"wuquant\",r=256){switch(e){case\"neuquant\":return new pt(t,r);case\"rgbquant\":return new wt(t,r);case\"wuquant\":return new Mt(t,r);case\"neuquant-float\":return new yt(t,r);default:throw new Error(`Unknown paletteQuantization ${e}`)}}},function(t,e,r){\"use strict\";var n=r(208),i=r(209),a=r(210),o=r(98);function s(t,e,r){var n=t;return i(e)?(r=e,\"string\"==typeof t&&(n={uri:t})):n=o(e,{uri:t}),n.callback=r,n}function u(t,e,r){return f(e=s(t,e,r))}function f(t){if(void 0===t.callback)throw new Error(\"callback argument missing\");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if(\"document\"===t.responseType)return t.responseXML;var e=t.responseXML&&\"parsererror\"===t.responseXML.documentElement.nodeName;if(\"\"===t.responseType&&!e)return t.responseXML}catch(t){}return null}(c),b)try{t=JSON.parse(t)}catch(t){}return t}function i(t){return clearTimeout(h),t instanceof Error||(t=new Error(\"\"+(t||\"Unknown XMLHttpRequest Error\"))),t.statusCode=0,r(t,g)}function o(){if(!f){var e;clearTimeout(h),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=g,o=null;return 0!==e?(i={body:n(),statusCode:e,method:p,headers:{},url:l,rawRequest:c},c.getAllResponseHeaders&&(i.headers=a(c.getAllResponseHeaders()))):o=new Error(\"Internal XMLHttpRequest Error\"),r(o,i,i.body)}}var s,f,c=t.xhr||null;c||(c=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var h,l=c.url=t.uri||t.url,p=c.method=t.method||\"GET\",d=t.body||t.data,m=c.headers=t.headers||{},y=!!t.sync,b=!1,g={body:void 0,headers:{},statusCode:0,method:p,url:l,rawRequest:c};if(\"json\"in t&&!1!==t.json&&(b=!0,m.accept||m.Accept||(m.Accept=\"application/json\"),\"GET\"!==p&&\"HEAD\"!==p&&(m[\"content-type\"]||m[\"Content-Type\"]||(m[\"Content-Type\"]=\"application/json\"),d=JSON.stringify(!0===t.json?d:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(o,0)},c.onload=o,c.onerror=i,c.onprogress=function(){},c.onabort=function(){f=!0},c.ontimeout=i,c.open(p,l,!y,t.username,t.password),y||(c.withCredentials=!!t.withCredentials),!y&&t.timeout>0&&(h=setTimeout((function(){if(!f){f=!0,c.abort(\"timeout\");var t=new Error(\"XMLHttpRequest timeout\");t.code=\"ETIMEDOUT\",i(t)}}),t.timeout)),c.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&c.setRequestHeader(s,m[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error(\"Headers cannot be set on an XDomainRequest object\");return\"responseType\"in t&&(c.responseType=t.responseType),\"beforeSend\"in t&&\"function\"==typeof t.beforeSend&&t.beforeSend(c),c.send(d||null),c}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest=\"withCredentials\"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}([\"get\",\"put\",\"post\",\"patch\",\"head\",\"delete\"],(function(t){u[\"delete\"===t?\"del\":t]=function(e,r,n){return(r=s(e,r,n)).method=t.toUpperCase(),f(r)}}))},function(t,e,r){(function(e){var r;r=\"undefined\"!=typeof window?window:void 0!==e?e:\"undefined\"!=typeof self?self:{},t.exports=r}).call(this,r(10))},function(t,e){t.exports=function(t){if(!t)return!1;var e=r.call(t);return\"[object Function]\"===e||\"function\"==typeof t&&\"[object RegExp]\"!==e||\"undefined\"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var r=Object.prototype.toString},function(t,e){var r=function(t){return t.replace(/^\\s+|\\s+$/g,\"\")};t.exports=function(t){if(!t)return{};for(var e,n={},i=r(t).split(\"\\n\"),a=0;a<i.length;a++){var o=i[a],s=o.indexOf(\":\"),u=r(o.slice(0,s)).toLowerCase(),f=r(o.slice(s+1));void 0===n[u]?n[u]=f:(e=n[u],\"[object Array]\"===Object.prototype.toString.call(e)?n[u].push(f):n[u]=[n[u],f])}return n}},function(t,e){function r(t,e){if(!(t=t.replace(/\\t+/g,\" \").trim()))return null;var r=t.indexOf(\" \");if(-1===r)throw new Error(\"no named row at line \"+e);var i=t.substring(0,r);t=(t=(t=(t=t.substring(r+1)).replace(/letter=[\\'\\\"]\\S+[\\'\\\"]/gi,\"\")).split(\"=\")).map((function(t){return t.trim().match(/(\".*?\"|[^\"\\s]+)+(?=\\s*|\\s*$)/g)}));for(var a=[],o=0;o<t.length;o++){var s=t[o];0===o?a.push({key:s[0],data:\"\"}):o===t.length-1?a[a.length-1].data=n(s[0]):(a[a.length-1].data=n(s[0]),a.push({key:s[1],data:\"\"}))}var u={key:i,data:{}};return a.forEach((function(t){u.data[t.key]=t.data})),u}function n(t){return t&&0!==t.length?0===t.indexOf('\"')||0===t.indexOf(\"'\")?t.substring(1,t.length-1):-1!==t.indexOf(\",\")?function(t){return t.split(\",\").map((function(t){return parseInt(t,10)}))}(t):parseInt(t,10):\"\"}t.exports=function(t){if(!t)throw new Error(\"no data provided\");var e={pages:[],chars:[],kernings:[]},n=(t=t.toString().trim()).split(/\\r\\n?|\\n/g);if(0===n.length)throw new Error(\"no data in BMFont file\");for(var i=0;i<n.length;i++){var a=r(n[i],i);if(a)if(\"page\"===a.key){if(\"number\"!=typeof a.data.id)throw new Error(\"malformed file at line \"+i+\" -- needs page id=N\");if(\"string\"!=typeof a.data.file)throw new Error(\"malformed file at line \"+i+' -- needs page file=\"path\"');e.pages[a.data.id]=a.data.file}else\"chars\"===a.key||\"kernings\"===a.key||(\"char\"===a.key?e.chars.push(a.data):\"kerning\"===a.key?e.kernings.push(a.data):e[a.key]=a.data)}return e}},function(t,e,r){var n=r(213),i=r(214),a={scaleh:\"scaleH\",scalew:\"scaleW\",stretchh:\"stretchH\",lineheight:\"lineHeight\",alphachnl:\"alphaChnl\",redchnl:\"redChnl\",greenchnl:\"greenChnl\",bluechnl:\"blueChnl\"};function o(t){var e=function(t){for(var e=[],r=0;r<t.attributes.length;r++)e.push(t.attributes[r]);return e}(t);return e.reduce((function(t,e){var r;return t[(r=e.nodeName,a[r.toLowerCase()]||r)]=e.nodeValue,t}),{})}t.exports=function(t){t=t.toString();var e=i(t),r={pages:[],chars:[],kernings:[]};[\"info\",\"common\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];i&&(r[t]=n(o(i)))}));var a=e.getElementsByTagName(\"pages\")[0];if(!a)throw new Error(\"malformed file -- no <pages> element\");for(var s=a.getElementsByTagName(\"page\"),u=0;u<s.length;u++){var f=s[u],c=parseInt(f.getAttribute(\"id\"),10),h=f.getAttribute(\"file\");if(isNaN(c))throw new Error('malformed file -- page \"id\" attribute is NaN');if(!h)throw new Error('malformed file -- needs page \"file\" attribute');r.pages[parseInt(c,10)]=h}return[\"chars\",\"kernings\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];if(i)for(var a=t.substring(0,t.length-1),s=i.getElementsByTagName(a),u=0;u<s.length;u++){var f=s[u];r[t].push(n(o(f)))}})),r}},function(t,e){var r=\"chasrset\";t.exports=function(t){for(var e in t=Object.assign({},t),r in t&&(t.charset=t[r],delete t[r]),t)\"face\"!==e&&\"charset\"!==e&&(t[e]=\"padding\"===e||\"spacing\"===e?t[e].split(\",\").map((function(t){return parseInt(t,10)})):parseInt(t[e],10));return t}},function(t,e){t.exports=void 0!==self.DOMParser?function(t){return(new self.DOMParser).parseFromString(t,\"application/xml\")}:void 0!==self.ActiveXObject&&new self.ActiveXObject(\"Microsoft.XMLDOM\")?function(t){var e=new self.ActiveXObject(\"Microsoft.XMLDOM\");return e.async=\"false\",e.loadXML(t),e}:function(t){var e=document.createElement(\"div\");return e.innerHTML=t,e}},function(t,e){var r=[66,77,70];function n(t,e,r){if(r>e.length-1)return 0;var n=e.readUInt8(r++),a=e.readInt32LE(r);switch(r+=4,n){case 1:t.info=function(t,e){var r={};r.size=t.readInt16LE(e);var n=t.readUInt8(e+2);r.smooth=n>>7&1,r.unicode=n>>6&1,r.italic=n>>5&1,r.bold=n>>4&1,n>>3&1&&(r.fixedHeight=1);return r.charset=t.readUInt8(e+3)||\"\",r.stretchH=t.readUInt16LE(e+4),r.aa=t.readUInt8(e+6),r.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],r.spacing=[t.readInt8(e+11),t.readInt8(e+12)],r.outline=t.readUInt8(e+13),r.face=function(t,e){return i(t,e).toString(\"utf8\")}(t,e+14),r}(e,r);break;case 2:t.common=function(t,e){var r={};r.lineHeight=t.readUInt16LE(e),r.base=t.readUInt16LE(e+2),r.scaleW=t.readUInt16LE(e+4),r.scaleH=t.readUInt16LE(e+6),r.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return r.packed=0,r.alphaChnl=t.readUInt8(e+11),r.redChnl=t.readUInt8(e+12),r.greenChnl=t.readUInt8(e+13),r.blueChnl=t.readUInt8(e+14),r}(e,r);break;case 3:t.pages=function(t,e,r){for(var n=[],a=i(t,e),o=a.length+1,s=r/o,u=0;u<s;u++)n[u]=t.slice(e,e+a.length).toString(\"utf8\"),e+=o;return n}(e,r,a);break;case 4:t.chars=function(t,e,r){for(var n=[],i=r/20,a=0;a<i;a++){var o={},s=20*a;o.id=t.readUInt32LE(e+0+s),o.x=t.readUInt16LE(e+4+s),o.y=t.readUInt16LE(e+6+s),o.width=t.readUInt16LE(e+8+s),o.height=t.readUInt16LE(e+10+s),o.xoffset=t.readInt16LE(e+12+s),o.yoffset=t.readInt16LE(e+14+s),o.xadvance=t.readInt16LE(e+16+s),o.page=t.readUInt8(e+18+s),o.chnl=t.readUInt8(e+19+s),n[a]=o}return n}(e,r,a);break;case 5:t.kernings=function(t,e,r){for(var n=[],i=r/10,a=0;a<i;a++){var o={},s=10*a;o.first=t.readUInt32LE(e+0+s),o.second=t.readUInt32LE(e+4+s),o.amount=t.readInt16LE(e+8+s),n[a]=o}return n}(e,r,a)}return 5+a}function i(t,e){for(var r=e;r<t.length&&0!==t[r];r++);return t.slice(e,r)}t.exports=function(t){if(t.length<6)throw new Error(\"invalid buffer length for BMFont\");var e=r.every((function(e,r){return t.readUInt8(r)===e}));if(!e)throw new Error(\"BMFont missing BMF byte header\");var i=3;if(t.readUInt8(i++)>3)throw new Error(\"Only supports BMFont Binary v3 (BMFont App v1.10)\");for(var a={kernings:[],chars:[]},o=0;o<5;o++)i+=n(a,t,i);return a}},function(t,e,r){(function(e){var n=r(217),i=e.from([66,77,70,3]);t.exports=function(t){return\"string\"==typeof t?\"BMF\"===t.substring(0,3):t.length>4&&n(t.slice(0,4),i)}}).call(this,r(2).Buffer)},function(t,e,r){var n=r(2).Buffer;t.exports=function(t,e){if(n.isBuffer(t)&&n.isBuffer(e)){if(\"function\"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}}},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e,r,n){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,r,n)}i.prototype.run=function(t,e,r,n){this._init(t,e,r,n);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var a=this._regionQuery(i);if(a.length<this.minPts)this.noise.push(i);else{var o=this.clusters.length;this.clusters.push([]),this._addToCluster(i,o),this._expandCluster(o,a)}}return this.clusters},i.prototype._init=function(t,e,r,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+n(t)+\" given\");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),r&&(this.minPts=r),i&&(this.distance=i)},i.prototype._expandCluster=function(t,e){for(var r=0;r<e.length;r++){var n=e[r];if(1!==this._visited[n]){this._visited[n]=1;var i=this._regionQuery(n);i.length>=this.minPts&&(e=this._mergeArrays(e,i))}1!==this._assigned[n]&&this._addToCluster(n,t)}},i.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},i.prototype._regionQuery=function(t){for(var e=[],r=0;r<this._datasetLength;r++){this.distance(this.dataset[t],this.dataset[r])<this.epsilon&&e.push(r)}return e},i.prototype._mergeArrays=function(t,e){for(var r=e.length,n=0;n<r;n++){var i=e[n];t.indexOf(i)<0&&t.push(i)}return t},i.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=i)},function(t,e,r){function n(t,e,r){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,r)}n.prototype.init=function(t,e,r){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==r&&(this.distance=r)},n.prototype.run=function(t,e){this.init(t,e);for(var r=this.dataset.length,n=0;n<this.k;n++)this.centroids[n]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var a=0;a<this.k;a++){for(var o=new Array(c),s=0,u=0;u<c;u++)o[u]=0;for(var f=0;f<r;f++){var c=this.dataset[f].length;if(a===this.assignments[f]){for(u=0;u<c;u++)o[u]+=this.dataset[f][u];s++}}if(s>0){for(u=0;u<c;u++)o[u]/=s;this.centroids[a]=o}else this.centroids[a]=this.randomCentroid(),i=!0}}return this.getClusters()},n.prototype.randomCentroid=function(){var t,e,r=this.dataset.length-1;do{e=Math.round(Math.random()*r),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},n.prototype.assign=function(){for(var t,e=!1,r=this.dataset.length,n=0;n<r;n++)(t=this.argmin(this.dataset[n],this.centroids,this.distance))!=this.assignments[n]&&(this.assignments[n]=t,e=!0);return e},n.prototype.getClusters=function(){for(var t,e=new Array(this.k),r=0;r<this.assignments.length;r++)void 0===e[t=this.assignments[r]]&&(e[t]=[]),e[t].push(r);return e},n.prototype.argmin=function(t,e,r){for(var n,i=Number.MAX_VALUE,a=0,o=e.length,s=0;s<o;s++)(n=r(t,e[s]))<i&&(i=n,a=s);return a},n.prototype.distance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)},t.exports&&(t.exports=n)},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}if(t.exports)var i=r(99);function a(t,e,r,n){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,r,n)}a.prototype.run=function(t,e,r,n){this._init(t,e,r,n);for(var a=0,o=this.dataset.length;a<o;a++)if(1!==this._processed[a]){this._processed[a]=1,this.clusters.push([a]);var s=this.clusters.length-1;this._orderedList.push(a);var u=new i(null,null,\"asc\"),f=this._regionQuery(a);void 0!==this._distanceToCore(a)&&(this._updateQueue(a,f,u),this._expandCluster(s,u))}return this.clusters},a.prototype.getReachabilityPlot=function(){for(var t=[],e=0,r=this._orderedList.length;e<r;e++){var n=this._orderedList[e],i=this._reachability[n];t.push([n,i])}return t},a.prototype._init=function(t,e,r,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+n(t)+\" given\");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),r&&(this.minPts=r),i&&(this.distance=i)},a.prototype._updateQueue=function(t,e,r){var n=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===n._processed[e]){var i=n.distance(n.dataset[t],n.dataset[e]),a=Math.max(n._coreDistance,i);void 0===n._reachability[e]?(n._reachability[e]=a,r.insert(e,a)):a<n._reachability[e]&&(n._reachability[e]=a,r.remove(e),r.insert(e,a))}}))},a.prototype._expandCluster=function(t,e){for(var r=e.getElements(),n=0,i=r.length;n<i;n++){var a=r[n];if(void 0===this._processed[a]){var o=this._regionQuery(a);this._processed[a]=1,this.clusters[t].push(a),this._orderedList.push(a),void 0!==this._distanceToCore(a)&&(this._updateQueue(a,o,e),this._expandCluster(t,e))}}},a.prototype._distanceToCore=function(t){for(var e=this.epsilon,r=0;r<e;r++){if(this._regionQuery(t,r).length>=this.minPts)return r}},a.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var r=[],n=0,i=this.dataset.length;n<i;n++)this.distance(this.dataset[t],this.dataset[n])<e&&r.push(n);return r},a.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=a)},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,a,o){function s(t){var e=this,r=function(){var t=4022871197,e=function(e){e=String(e);for(var r=0;r<e.length;r++){var n=.02519603282416938*(t+=e.charCodeAt(r));n-=t=n>>>0,t=(n*=t)>>>0,t+=4294967296*(n-=t)}return 2.3283064365386963e-10*(t>>>0)};return e}();e.next=function(){var t=2091639*e.s0+2.3283064365386963e-10*e.c;return e.s0=e.s1,e.s1=e.s2,e.s2=t-(e.c=0|t)},e.c=1,e.s0=r(\" \"),e.s1=r(\" \"),e.s2=r(\" \"),e.s0-=r(t),e.s0<0&&(e.s0+=1),e.s1-=r(t),e.s1<0&&(e.s1+=1),e.s2-=r(t),e.s2<0&&(e.s2+=1),r=null}function u(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function f(t,e){var r=new s(t),n=e&&e.state,a=r.next;return a.int32=function(){return 4294967296*r.next()|0},a.double=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.quick=a,n&&(\"object\"==i(n)&&u(n,r),a.state=function(){return u(r,{})}),a}a&&a.exports?a.exports=f:r(9)&&r(23)?void 0===(n=function(){return f}.call(e,r,e,a))||(a.exports=n):this.alea=f}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,a,o){function s(t){var e=this,r=\"\";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},t===(0|t)?e.x=t:r+=t;for(var n=0;n<r.length+64;n++)e.x^=0|r.charCodeAt(n),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e}function f(t,e){var r=new s(t),n=e&&e.state,a=function(){return(r.next()>>>0)/4294967296};return a.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},a.int32=r.next,a.quick=a,n&&(\"object\"==i(n)&&u(n,r),a.state=function(){return u(r,{})}),a}a&&a.exports?a.exports=f:r(9)&&r(23)?void 0===(n=function(){return f}.call(e,r,e,a))||(a.exports=n):this.xor128=f}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,a,o){function s(t){var e=this,r=\"\";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^t^t<<1)|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,t===(0|t)?e.x=t:r+=t;for(var n=0;n<r.length+64;n++)e.x^=0|r.charCodeAt(n),n==r.length&&(e.d=e.x<<10^e.x>>>4),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function f(t,e){var r=new s(t),n=e&&e.state,a=function(){return(r.next()>>>0)/4294967296};return a.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},a.int32=r.next,a.quick=a,n&&(\"object\"==i(n)&&u(n,r),a.state=function(){return u(r,{})}),a}a&&a.exports?a.exports=f:r(9)&&r(23)?void 0===(n=function(){return f}.call(e,r,e,a))||(a.exports=n):this.xorwow=f}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,a){function o(t){var e=this;e.next=function(){var t,r,n=e.x,i=e.i;return t=n[i],r=(t^=t>>>7)^t<<24,r^=(t=n[i+1&7])^t>>>10,r^=(t=n[i+3&7])^t>>>3,r^=(t=n[i+4&7])^t<<7,t=n[i+7&7],r^=(t^=t<<13)^t<<9,n[i]=r,e.i=i+1&7,r},function(t,e){var r,n=[];if(e===(0|e))n[0]=e;else for(e=\"\"+e,r=0;r<e.length;++r)n[7&r]=n[7&r]<<15^e.charCodeAt(r)+n[r+1&7]<<13;for(;n.length<8;)n.push(0);for(r=0;r<8&&0===n[r];++r);for(8==r?n[7]=-1:n[r],t.x=n,t.i=0,r=256;r>0;--r)t.next()}(e,t)}function s(t,e){return e.x=t.x.slice(),e.i=t.i,e}function u(t,e){null==t&&(t=+new Date);var r=new o(t),n=e&&e.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=r.next,i.quick=i,n&&(n.x&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=u:r(9)&&r(23)?void 0===(n=function(){return u}.call(e,r,e,i))||(i.exports=n):this.xorshift7=u}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,a){function o(t){var e=this;e.next=function(){var t,r,n=e.w,i=e.X,a=e.i;return e.w=n=n+1640531527|0,r=i[a+34&127],t=i[a=a+1&127],r^=r<<13,t^=t<<17,r^=r>>>15,t^=t>>>12,r=i[a]=r^t,e.i=a,r+(n^n>>>16)|0},function(t,e){var r,n,i,a,o,s=[],u=128;for(e===(0|e)?(n=e,e=null):(e+=\"\\0\",n=0,u=Math.max(u,e.length)),i=0,a=-32;a<u;++a)e&&(n^=e.charCodeAt((a+32)%e.length)),0===a&&(o=n),n^=n<<10,n^=n>>>15,n^=n<<4,n^=n>>>13,a>=0&&(o=o+1640531527|0,i=0==(r=s[127&a]^=n+o)?i+1:0);for(i>=128&&(s[127&(e&&e.length||0)]=-1),i=127,a=512;a>0;--a)n=s[i+34&127],r=s[i=i+1&127],n^=n<<13,r^=r<<17,n^=n>>>15,r^=r>>>12,s[i]=n^r;t.w=o,t.X=s,t.i=i}(e,t)}function s(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function u(t,e){null==t&&(t=+new Date);var r=new o(t),n=e&&e.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=r.next,i.quick=i,n&&(n.X&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=u:r(9)&&r(23)?void 0===(n=function(){return u}.call(e,r,e,i))||(i.exports=n):this.xor4096=u}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,a,o){function s(t){var e=this,r=\"\";e.next=function(){var t=e.b,r=e.c,n=e.d,i=e.a;return t=t<<25^t>>>7^r,r=r-n|0,n=n<<24^n>>>8^i,i=i-t|0,e.b=t=t<<20^t>>>12^r,e.c=r=r-n|0,e.d=n<<16^r>>>16^i,e.a=i-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,t===Math.floor(t)?(e.a=t/4294967296|0,e.b=0|t):r+=t;for(var n=0;n<r.length+20;n++)e.b^=0|r.charCodeAt(n),e.next()}function u(t,e){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e}function f(t,e){var r=new s(t),n=e&&e.state,a=function(){return(r.next()>>>0)/4294967296};return a.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},a.int32=r.next,a.quick=a,n&&(\"object\"==i(n)&&u(n,r),a.state=function(){return u(r,{})}),a}a&&a.exports?a.exports=f:r(9)&&r(23)?void 0===(n=function(){return f}.call(e,r,e,a))||(a.exports=n):this.tychei=f}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(a,o,s){var u,f=256,c=s.pow(f,6),h=s.pow(2,52),l=2*h,p=f-1;function d(t,e,r){var n=[],i=g(b((e=1==e?{entropy:!0}:e||{}).entropy?[t,v(o)]:null==t?function(){try{var t;return u&&(t=u.randomBytes)?t=t(f):(t=new Uint8Array(f),(a.crypto||a.msCrypto).getRandomValues(t)),v(t)}catch(t){var e=a.navigator,r=e&&e.plugins;return[+new Date,a,r,a.screen,v(o)]}}():t,3),n),p=new m(n),d=function(){for(var t=p.g(6),e=c,r=0;t<h;)t=(t+r)*f,e*=f,r=p.g(1);for(;t>=l;)t/=2,e/=2,r>>>=1;return(t+r)/e};return d.int32=function(){return 0|p.g(4)},d.quick=function(){return p.g(4)/4294967296},d.double=d,g(v(p.S),o),(e.pass||r||function(t,e,r,n){return n&&(n.S&&y(n,p),t.state=function(){return y(p,{})}),r?(s.random=t,e):t})(d,i,\"global\"in e?e.global:this==s,e.state)}function m(t){var e,r=t.length,n=this,i=0,a=n.i=n.j=0,o=n.S=[];for(r||(t=[r++]);i<f;)o[i]=i++;for(i=0;i<f;i++)o[i]=o[a=p&a+t[i%r]+(e=o[i])],o[a]=e;(n.g=function(t){for(var e,r=0,i=n.i,a=n.j,o=n.S;t--;)e=o[i=p&i+1],r=r*f+o[p&(o[i]=o[a=p&a+e])+(o[a]=e)];return n.i=i,n.j=a,r})(f)}function y(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function b(t,e){var r,n=[],a=i(t);if(e&&\"object\"==a)for(r in t)try{n.push(b(t[r],e-1))}catch(t){}return n.length?n:\"string\"==a?t:t+\"\\0\"}function g(t,e){for(var r,n=t+\"\",i=0;i<n.length;)e[p&i]=p&(r^=19*e[p&i])+n.charCodeAt(i++);return v(e)}function v(t){return String.fromCharCode.apply(0,t)}if(g(s.random(),o),\"object\"==i(t)&&t.exports){t.exports=d;try{u=r(228)}catch(t){}}else void 0===(n=function(){return d}.call(e,r,e,t))||(t.exports=n)}(\"undefined\"!=typeof self?self:this,[],Math)}).call(this,r(13)(t))},function(t,e){},function(t,e,r){var n=r(100).default,i=r(230);t.exports=function(t){var e=i(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(100).default;t.exports=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return _i})),r.d(e,\"c\",(function(){return xi})),r.d(e,\"b\",(function(){return Bi}));var n=r(8),i=r.n(n),a={epsilon:1e-12,matrix:\"Matrix\",number:\"number\",precision:64,predictable:!1,randomSeed:null};function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function s(t){return\"number\"==typeof t}function u(t){return!(!t||\"object\"!==o(t)||\"function\"!=typeof t.constructor)&&(!0===t.isBigNumber&&\"object\"===o(t.constructor.prototype)&&!0===t.constructor.prototype.isBigNumber||\"function\"==typeof t.constructor.isDecimal&&!0===t.constructor.isDecimal(t))}function f(t){return t&&\"object\"===o(t)&&!0===Object.getPrototypeOf(t).isComplex||!1}function c(t){return t&&\"object\"===o(t)&&!0===Object.getPrototypeOf(t).isFraction||!1}function h(t){return t&&!0===t.constructor.prototype.isUnit||!1}function l(t){return\"string\"==typeof t}var p=Array.isArray;function d(t){return t&&!0===t.constructor.prototype.isMatrix||!1}function m(t){return Array.isArray(t)||d(t)}function y(t){return t&&t.isDenseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function b(t){return t&&t.isSparseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function g(t){return t&&!0===t.constructor.prototype.isRange||!1}function v(t){return t&&!0===t.constructor.prototype.isIndex||!1}function w(t){return\"boolean\"==typeof t}function _(t){return t&&!0===t.constructor.prototype.isResultSet||!1}function x(t){return t&&!0===t.constructor.prototype.isHelp||!1}function E(t){return\"function\"==typeof t}function D(t){return t instanceof Date}function k(t){return t instanceof RegExp}function A(t){return!(!t||\"object\"!==o(t)||t.constructor!==Object||f(t)||c(t))}function S(t){return null===t}function M(t){return void 0===t}function F(t){return t&&!0===t.isAccessorNode&&!0===t.constructor.prototype.isNode||!1}function C(t){return t&&!0===t.isArrayNode&&!0===t.constructor.prototype.isNode||!1}function B(t){return t&&!0===t.isAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function O(t){return t&&!0===t.isBlockNode&&!0===t.constructor.prototype.isNode||!1}function I(t){return t&&!0===t.isConditionalNode&&!0===t.constructor.prototype.isNode||!1}function T(t){return t&&!0===t.isConstantNode&&!0===t.constructor.prototype.isNode||!1}function P(t){return t&&!0===t.isFunctionAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function L(t){return t&&!0===t.isFunctionNode&&!0===t.constructor.prototype.isNode||!1}function N(t){return t&&!0===t.isIndexNode&&!0===t.constructor.prototype.isNode||!1}function j(t){return t&&!0===t.isNode&&!0===t.constructor.prototype.isNode||!1}function R(t){return t&&!0===t.isObjectNode&&!0===t.constructor.prototype.isNode||!1}function z(t){return t&&!0===t.isOperatorNode&&!0===t.constructor.prototype.isNode||!1}function U(t){return t&&!0===t.isParenthesisNode&&!0===t.constructor.prototype.isNode||!1}function G(t){return t&&!0===t.isRangeNode&&!0===t.constructor.prototype.isNode||!1}function H(t){return t&&!0===t.isRelationalNode&&!0===t.constructor.prototype.isNode||!1}function Z(t){return t&&!0===t.isSymbolNode&&!0===t.constructor.prototype.isNode||!1}function q(t){return t&&!0===t.constructor.prototype.isChain||!1}function W(t){var e=o(t);return\"object\"===e?null===t?\"null\":u(t)?\"BigNumber\":t.constructor&&t.constructor.name?t.constructor.name:\"Object\":e}function Y(t){return Y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Y(t)}function V(t){var e=Y(t);if(\"number\"===e||\"string\"===e||\"boolean\"===e||null==t)return t;if(\"function\"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map((function(t){return V(t)}));if(t instanceof Date)return new Date(t.valueOf());if(u(t))return t;if(A(t))return X(t,V);throw new TypeError(\"Cannot clone: unknown type of value (value: \".concat(t,\")\"))}function X(t,e){var r={};for(var n in t)Q(t,n)&&(r[n]=e(t[n]));return r}function J(t,e){for(var r in e)Q(e,r)&&(t[r]=e[r]);return t}function K(t,e){var r,n,i;if(Array.isArray(t)){if(!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(n=0,i=t.length;n<i;n++)if(!K(t[n],e[n]))return!1;return!0}if(\"function\"==typeof t)return t===e;if(t instanceof Object){if(Array.isArray(e)||!(e instanceof Object))return!1;for(r in t)if(!(r in e)||!K(t[r],e[r]))return!1;for(r in e)if(!(r in t))return!1;return!0}return t===e}function Q(t,e){return t&&Object.hasOwnProperty.call(t,e)}var $=[\"Matrix\",\"Array\"],tt=[\"number\",\"BigNumber\",\"Fraction\"];var et=function(t){if(t)throw new Error(\"The global config is readonly. \\nPlease create a mathjs instance if you want to change the default configuration. \\nExample:\\n\\n  import { create, all } from 'mathjs';\\n  const mathjs = create(all);\\n  mathjs.config({ number: 'BigNumber' });\\n\");return Object.freeze(a)};i()(et,a,{MATRIX_OPTIONS:$,NUMBER_OPTIONS:tt});var rt=r(21),nt=r.n(rt);function it(t){return\"boolean\"==typeof t||!!isFinite(t)&&t===Math.round(t)}var at=Math.sign||function(t){return t>0?1:t<0?-1:0},ot=Math.log2||function(t){return Math.log(t)/Math.LN2},st=Math.log10||function(t){return Math.log(t)/Math.LN10},ut=(Math.log1p,Math.cbrt||function(t){if(0===t)return t;var e,r=t<0;return r&&(t=-t),e=isFinite(t)?(t/((e=Math.exp(Math.log(t)/3))*e)+2*e)/3:t,r?-e:e}),ft=Math.expm1||function(t){return t>=2e-4||t<=-2e-4?Math.exp(t)-1:t+t*t/2+t*t*t/6};function ct(t,e,r){var n={2:\"0b\",8:\"0o\",16:\"0x\"}[e],i=\"\";if(r){if(r<1)throw new Error(\"size must be in greater than 0\");if(!it(r))throw new Error(\"size must be an integer\");if(t>Math.pow(2,r-1)-1||t<-Math.pow(2,r-1))throw new Error(\"Value must be in range [-2^\".concat(r-1,\", 2^\").concat(r-1,\"-1]\"));if(!it(t))throw new Error(\"Value must be an integer\");t<0&&(t+=Math.pow(2,r)),i=\"i\".concat(r)}var a=\"\";return t<0&&(t=-t,a=\"-\"),\"\".concat(a).concat(n).concat(t.toString(e)).concat(i)}function ht(t,e){if(\"function\"==typeof e)return e(t);if(t===1/0)return\"Infinity\";if(t===-1/0)return\"-Infinity\";if(isNaN(t))return\"NaN\";var r,n,i=\"auto\";if(e&&(e.notation&&(i=e.notation),s(e)?r=e:s(e.precision)&&(r=e.precision),e.wordSize&&\"number\"!=typeof(n=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return pt(t,r);case\"exponential\":return dt(t,r);case\"engineering\":return function(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=lt(t),n=mt(r,e),i=n.exponent,a=n.coefficients,o=i%3==0?i:i<0?i-3-i%3:i-i%3;if(s(e))for(;e>a.length||i-o+1>a.length;)a.push(0);else for(var u=Math.abs(i-o)-(a.length-1),f=0;f<u;f++)a.push(0);var c=Math.abs(i-o),h=1;for(;c>0;)h++,c--;var l=a.slice(h).join(\"\"),p=s(e)&&l.length||l.match(/[1-9]/)?\".\"+l:\"\",d=a.slice(0,h).join(\"\")+p+\"e\"+(i>=0?\"+\":\"\")+o.toString();return n.sign+d}(t,r);case\"bin\":return ct(t,2,n);case\"oct\":return ct(t,8,n);case\"hex\":return ct(t,16,n);case\"auto\":return function(t,e,r){if(isNaN(t)||!isFinite(t))return String(t);var n=r&&void 0!==r.lowerExp?r.lowerExp:-3,i=r&&void 0!==r.upperExp?r.upperExp:5,a=lt(t),o=e?mt(a,e):a;if(o.exponent<n||o.exponent>=i)return dt(t,e);var s=o.coefficients,u=o.exponent;s.length<e&&(s=s.concat(yt(e-s.length))),s=s.concat(yt(u-s.length+1+(s.length<e?e-s.length:0)));var f=u>0?u:0;return f<(s=yt(-u).concat(s)).length-1&&s.splice(f+1,0,\".\"),o.sign+s.join(\"\")}(t,r,e&&e).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function lt(t){var e=String(t).toLowerCase().match(/^(-?)(\\d+\\.?\\d*)(e([+-]?\\d+))?$/);if(!e)throw new SyntaxError(\"Invalid number \"+t);var r=e[1],n=e[2],i=parseFloat(e[4]||\"0\"),a=n.indexOf(\".\");i+=-1!==a?a-1:n.length-1;var o=n.replace(\".\",\"\").replace(/^0*/,(function(t){return i-=t.length,\"\"})).replace(/0*$/,\"\").split(\"\").map((function(t){return parseInt(t)}));return 0===o.length&&(o.push(0),i++),{sign:r,coefficients:o,exponent:i}}function pt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=lt(t),n=\"number\"==typeof e?mt(r,r.exponent+1+e):r,i=n.coefficients,a=n.exponent+1,o=a+(e||0);return i.length<o&&(i=i.concat(yt(o-i.length))),a<0&&(i=yt(1-a).concat(i),a=1),a<i.length&&i.splice(a,0,0===a?\"0.\":\".\"),n.sign+i.join(\"\")}function dt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=lt(t),n=e?mt(r,e):r,i=n.coefficients,a=n.exponent;i.length<e&&(i=i.concat(yt(e-i.length)));var o=i.shift();return n.sign+o+(i.length>0?\".\"+i.join(\"\"):\"\")+\"e\"+(a>=0?\"+\":\"\")+a}function mt(t,e){for(var r={sign:t.sign,coefficients:t.coefficients,exponent:t.exponent},n=r.coefficients;e<=0;)n.unshift(0),r.exponent++,e++;if(n.length>e&&n.splice(e,n.length-e)[0]>=5){var i=e-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),r.exponent++,i++),n[--i]++}return r}function yt(t){for(var e=[],r=0;r<t;r++)e.push(0);return e}var bt=Number.EPSILON||2220446049250313e-31;function gt(t,e,r){if(null==r)return t===e;if(t===e)return!0;if(isNaN(t)||isNaN(e))return!1;if(isFinite(t)&&isFinite(e)){var n=Math.abs(t-e);return n<=bt||n<=Math.max(Math.abs(t),Math.abs(e))*r}return!1}var vt=Math.acosh||function(t){return Math.log(Math.sqrt(t*t-1)+t)},wt=Math.asinh||function(t){return Math.log(Math.sqrt(t*t+1)+t)},_t=Math.atanh||function(t){return Math.log((1+t)/(1-t))/2},xt=(Math.cosh,Math.sinh||function(t){return(Math.exp(t)-Math.exp(-t))/2});Math.tanh;function Et(t,e,r){var n=new(0,t.constructor)(2),i=\"\";if(r){if(r<1)throw new Error(\"size must be in greater than 0\");if(!it(r))throw new Error(\"size must be an integer\");if(t.greaterThan(n.pow(r-1).sub(1))||t.lessThan(n.pow(r-1).mul(-1)))throw new Error(\"Value must be in range [-2^\".concat(r-1,\", 2^\").concat(r-1,\"-1]\"));if(!t.isInteger())throw new Error(\"Value must be an integer\");t.lessThan(0)&&(t=t.add(n.pow(r))),i=\"i\".concat(r)}switch(e){case 2:return\"\".concat(t.toBinary()).concat(i);case 8:return\"\".concat(t.toOctal()).concat(i);case 16:return\"\".concat(t.toHexadecimal()).concat(i);default:throw new Error(\"Base \".concat(e,\" not supported \"))}}function Dt(t,e){if(\"function\"==typeof e)return e(t);if(!t.isFinite())return t.isNaN()?\"NaN\":t.gt(0)?\"Infinity\":\"-Infinity\";var r,n,i=\"auto\";if(void 0!==e&&(e.notation&&(i=e.notation),\"number\"==typeof e?r=e:void 0!==e.precision&&(r=e.precision),e.wordSize&&\"number\"!=typeof(n=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return function(t,e){return t.toFixed(e)}(t,r);case\"exponential\":return kt(t,r);case\"engineering\":return function(t,e){var r=t.e,n=r%3==0?r:r<0?r-3-r%3:r-r%3,i=t.mul(Math.pow(10,-n)),a=i.toPrecision(e);if(-1!==a.indexOf(\"e\")){a=new(0,t.constructor)(a).toFixed()}return a+\"e\"+(r>=0?\"+\":\"\")+n.toString()}(t,r);case\"bin\":return Et(t,2,n);case\"oct\":return Et(t,8,n);case\"hex\":return Et(t,16,n);case\"auto\":var a=e&&void 0!==e.lowerExp?e.lowerExp:-3,o=e&&void 0!==e.upperExp?e.upperExp:5;if(t.isZero())return\"0\";var s=t.toSignificantDigits(r),u=s.e;return(u>=a&&u<o?s.toFixed():kt(t,r)).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function kt(t,e){return void 0!==e?t.toExponential(e-1):t.toExponential()}function At(t){return At=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},At(t)}function St(t,e){var r=function(t,e){if(\"number\"==typeof t)return ht(t,e);if(u(t))return Dt(t,e);if(function(t){return t&&\"object\"===At(t)&&\"number\"==typeof t.s&&\"number\"==typeof t.n&&\"number\"==typeof t.d||!1}(t))return e&&\"decimal\"===e.fraction?t.toString():t.s*t.n+\"/\"+t.d;if(Array.isArray(t))return Ct(t,e);if(l(t))return Mt(t);if(\"function\"==typeof t)return t.syntax?String(t.syntax):\"function\";if(t&&\"object\"===At(t)){return\"function\"==typeof t.format?t.format(e):t&&t.toString(e)!=={}.toString()?t.toString(e):\"{\"+Object.keys(t).map((function(r){return Mt(r)+\": \"+St(t[r],e)})).join(\", \")+\"}\"}return String(t)}(t,e);return e&&\"object\"===At(e)&&\"truncate\"in e&&r.length>e.truncate?r.substring(0,e.truncate-3)+\"...\":r}function Mt(t){for(var e=String(t),r=\"\",n=0;n<e.length;){var i=e.charAt(n);r+=i in Ft?Ft[i]:i,n++}return'\"'+r+'\"'}var Ft={'\"':'\\\\\"',\"\\\\\":\"\\\\\\\\\",\"\\b\":\"\\\\b\",\"\\f\":\"\\\\f\",\"\\n\":\"\\\\n\",\"\\r\":\"\\\\r\",\"\\t\":\"\\\\t\"};function Ct(t,e){if(Array.isArray(t)){for(var r=\"[\",n=t.length,i=0;i<n;i++)0!==i&&(r+=\", \"),r+=Ct(t[i],e);return r+=\"]\"}return St(t,e)}function Bt(t,e){if(!l(t))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+W(t)+\", index: 0)\");if(!l(e))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+W(e)+\", index: 1)\");return t===e?0:t>e?1:-1}function Ot(t,e,r){if(!(this instanceof Ot))throw new SyntaxError(\"Constructor must be called with the new operator\");this.actual=t,this.expected=e,this.relation=r,this.message=\"Dimension mismatch (\"+(Array.isArray(t)?\"[\"+t.join(\", \")+\"]\":t)+\" \"+(this.relation||\"!=\")+\" \"+(Array.isArray(e)?\"[\"+e.join(\", \")+\"]\":e)+\")\",this.stack=(new Error).stack}function It(t,e,r){if(!(this instanceof It))throw new SyntaxError(\"Constructor must be called with the new operator\");this.index=t,arguments.length<3?(this.min=0,this.max=e):(this.min=e,this.max=r),void 0!==this.min&&this.index<this.min?this.message=\"Index out of range (\"+this.index+\" < \"+this.min+\")\":void 0!==this.max&&this.index>=this.max?this.message=\"Index out of range (\"+this.index+\" > \"+(this.max-1)+\")\":this.message=\"Index out of range (\"+this.index+\")\",this.stack=(new Error).stack}function Tt(t){return function(t){if(Array.isArray(t))return Pt(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Pt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pt(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Lt(t){for(var e=[];Array.isArray(t);)e.push(t.length),t=t[0];return e}function Nt(t,e,r){var n,i=t.length;if(i!==e[r])throw new Ot(i,e[r]);if(r<e.length-1){var a=r+1;for(n=0;n<i;n++){var o=t[n];if(!Array.isArray(o))throw new Ot(e.length-1,e.length,\"<\");Nt(t[n],e,a)}}else for(n=0;n<i;n++)if(Array.isArray(t[n]))throw new Ot(e.length+1,e.length,\">\")}function jt(t,e){if(0===e.length){if(Array.isArray(t))throw new Ot(t.length,0)}else Nt(t,e,0)}function Rt(t,e){if(void 0!==t){if(!s(t)||!it(t))throw new TypeError(\"Index must be an integer (value: \"+t+\")\");if(t<0||\"number\"==typeof e&&t>=e)throw new It(t,e)}}function zt(t,e,r){if(!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new Error(\"Resizing to scalar is not supported\");return e.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+St(e)+\")\")})),(s(t)||u(t))&&(t=[t]),Ut(t,e,0,void 0!==r?r:0),t}function Ut(t,e,r,n){var i,a,o=t.length,s=e[r],u=Math.min(o,s);if(t.length=s,r<e.length-1){var f=r+1;for(i=0;i<u;i++)a=t[i],Array.isArray(a)||(a=[a],t[i]=a),Ut(a,e,f,n);for(i=u;i<s;i++)a=[],t[i]=a,Ut(a,e,f,n)}else{for(i=0;i<u;i++)for(;Array.isArray(t[i]);)t[i]=t[i][0];for(i=u;i<s;i++)t[i]=n}}function Gt(t,e){var r=Yt(t),n=r.length;if(!Array.isArray(t)||!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new Ot(0,n,\"!=\");var i=Zt(e=Ht(e,n));if(n!==i)throw new Ot(i,n,\"!=\");try{return function(t,e){for(var r,n=t,i=e.length-1;i>0;i--){var a=e[i];r=[];for(var o=n.length/a,s=0;s<o;s++)r.push(n.slice(s*a,(s+1)*a));n=r}return n}(r,e)}catch(t){if(t instanceof Ot)throw new Ot(i,n,\"!=\");throw t}}function Ht(t,e){var r=Zt(t),n=t.slice(),i=t.indexOf(-1);if(t.indexOf(-1,i+1)>=0)throw new Error(\"More than one wildcard in sizes\");if(i>=0){if(!(e%r==0))throw new Error(\"Could not replace wildcard, since \"+e+\" is no multiple of \"+-r);n[i]=-e/r}return n}function Zt(t){return t.reduce((function(t,e){return t*e}),1)}function qt(t,e,r,n){var i=n||Lt(t);if(r)for(var a=0;a<r;a++)t=[t],i.unshift(1);for(t=Wt(t,e,0);i.length<e;)i.push(1);return t}function Wt(t,e,r){var n,i;if(Array.isArray(t)){var a=r+1;for(n=0,i=t.length;n<i;n++)t[n]=Wt(t[n],e,a)}else for(var o=r;o<e;o++)t=[t];return t}function Yt(t){if(!Array.isArray(t))return t;var e=[];return t.forEach((function t(r){Array.isArray(r)?r.forEach(t):e.push(r)})),e}function Vt(t,e){for(var r,n=0,i=0;i<t.length;i++){var a=t[i],o=Array.isArray(a);if(0===i&&o&&(n=a.length),o&&a.length!==n)return;var s=o?Vt(a,e):e(a);if(void 0===r)r=s;else if(r!==s)return\"mixed\"}return r}function Xt(t,e,r,n){if(n<r){if(t.length!==e.length)throw new Ot(t.length,e.length);for(var i=[],a=0;a<t.length;a++)i[a]=Xt(t[a],e[a],r,n+1);return i}return t.concat(e)}function Jt(){var t=Array.prototype.slice.call(arguments,0,-1),e=Array.prototype.slice.call(arguments,-1);if(1===t.length)return t[0];if(t.length>1)return t.slice(1).reduce((function(t,r){return Xt(t,r,e,0)}),t[0]);throw new Error(\"Wrong number of arguments in function concat\")}function Kt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=e.map((function(t){return t.length})),i=Math.max.apply(Math,Tt(n)),a=new Array(i).fill(null),o=0;o<e.length;o++)for(var s=e[o],u=n[o],f=0;f<u;f++){var c=i-u+f;s[f]>a[c]&&(a[c]=s[f])}for(var h=0;h<e.length;h++)Qt(e[h],a);return a}function Qt(t,e){for(var r=e.length,n=t.length,i=0;i<n;i++){var a=r-n+i;if(t[i]<e[a]&&t[i]>1||t[i]>e[a])throw new Error(\"shape missmatch: missmatch is found in arg with shape (\".concat(t,\") not possible to broadcast dimension \").concat(n,\" with size \").concat(t[i],\" to size \").concat(e[a]))}}function $t(t,e){var r=Lt(t);if(K(r,e))return t;Qt(r,e);var n,a,o,s=Kt(r,e),u=s.length,f=[].concat(Tt(Array(u-r.length).fill(1)),Tt(r)),c=function(t){return i()([],t)}(t);r.length<u&&(r=Lt(c=Gt(c,f)));for(var h=0;h<u;h++)r[h]<s[h]&&(n=c,a=s[h],o=h,r=Lt(c=Jt.apply(void 0,Tt(Array(a).fill(n)).concat([o]))));return c}function te(t,e,r,n){function i(n){var i=function(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],a=t[i];void 0!==a&&(r[i]=a)}return r}(n,e.map(ee));return function(t,e,r){var n=e.filter((function(t){return!function(t){return t&&\"?\"===t[0]}(t)})).every((function(t){return void 0!==r[t]}));if(!n){var i=e.filter((function(t){return void 0===r[t]}));throw new Error('Cannot create function \"'.concat(t,'\", ')+\"some dependencies are missing: \".concat(i.map((function(t){return'\"'.concat(t,'\"')})).join(\", \"),\".\"))}}(t,e,n),r(i)}return i.isFactory=!0,i.fn=t,i.dependencies=e.slice().sort(),n&&(i.meta=n),i}function ee(t){return t&&\"?\"===t[0]?t.slice(1):t}Ot.prototype=new RangeError,Ot.prototype.constructor=RangeError,Ot.prototype.name=\"DimensionError\",Ot.prototype.isDimensionError=!0,It.prototype=new RangeError,It.prototype.constructor=RangeError,It.prototype.name=\"IndexError\",It.prototype.isIndexError=!0;var re=te(\"BigNumber\",[\"?on\",\"config\"],(function(t){var e=t.on,r=t.config,n=nt.a.clone({precision:r.precision,modulo:nt.a.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type=\"BigNumber\",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:\"BigNumber\",value:this.toString()}},n.fromJSON=function(t){return new n(t.value)},e&&e(\"config\",(function(t,e){t.precision!==e.precision&&n.config({precision:t.precision})})),n}),{isClass:!0}),ne=r(5),ie=r.n(ne);function ae(t){return ae=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ae(t)}var oe=te(\"Complex\",[],(function(){return Object.defineProperty(ie.a,\"name\",{value:\"Complex\"}),ie.a.prototype.constructor=ie.a,ie.a.prototype.type=\"Complex\",ie.a.prototype.isComplex=!0,ie.a.prototype.toJSON=function(){return{mathjs:\"Complex\",re:this.re,im:this.im}},ie.a.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},ie.a.prototype.format=function(t){var e=this.im,r=this.re,n=ht(this.re,t),i=ht(this.im,t),a=s(t)?t:t?t.precision:null;if(null!==a){var o=Math.pow(10,-a);Math.abs(r/e)<o&&(r=0),Math.abs(e/r)<o&&(e=0)}return 0===e?n:0===r?1===e?\"i\":-1===e?\"-i\":i+\"i\":e<0?-1===e?n+\" - i\":n+\" - \"+i.substring(1)+\"i\":1===e?n+\" + i\":n+\" + \"+i+\"i\"},ie.a.fromPolar=function(t){switch(arguments.length){case 1:var e=arguments[0];if(\"object\"===ae(e))return ie()(e);throw new TypeError(\"Input has to be an object with r and phi keys.\");case 2:var r=arguments[0],n=arguments[1];if(s(r)){if(h(n)&&n.hasBase(\"ANGLE\")&&(n=n.toNumber(\"rad\")),s(n))return new ie.a({r,phi:n});throw new TypeError(\"Phi is not a number nor an angle unit.\")}throw new TypeError(\"Radius r is not a number.\");default:throw new SyntaxError(\"Wrong number of arguments in function fromPolar\")}},ie.a.prototype.valueOf=ie.a.prototype.toString,ie.a.fromJSON=function(t){return new ie.a(t)},ie.a.compare=function(t,e){return t.re>e.re?1:t.re<e.re?-1:t.im>e.im?1:t.im<e.im?-1:0},ie.a}),{isClass:!0});function se(t){var e=0,r=1,n=Object.create(null),i=Object.create(null),a=0,o=function(t){var o=i[t];if(o&&(delete n[o],delete i[t],--e,r===o)){if(!e)return a=0,void(r=1);for(;!Object.prototype.hasOwnProperty.call(n,++r););}};return t=Math.abs(t),{hit:function(s){var u=i[s],f=++a;if(n[f]=s,i[s]=f,!u){if(++e<=t)return;return s=n[r],o(s),s}if(delete n[u],r===u)for(;!Object.prototype.hasOwnProperty.call(n,++r););},delete:o,clear:function(){e=a=0,r=1,n=Object.create(null),i=Object.create(null)}}}function ue(t){return ue=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ue(t)}function fe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.hasher,n=e.limit;return n=null==n?Number.POSITIVE_INFINITY:n,r=null==r?JSON.stringify:r,function e(){\"object\"!==ue(e.cache)&&(e.cache={values:new Map,lru:se(n||Number.POSITIVE_INFINITY)});for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var o=r(i);if(e.cache.values.has(o))return e.cache.lru.hit(o),e.cache.values.get(o);var s=t.apply(t,i);return e.cache.values.set(o,s),e.cache.values.delete(e.cache.lru.hit(o)),s}}function ce(t){return Object.keys(t.signatures||{}).reduce((function(t,e){var r=(e.match(/,/g)||[]).length+1;return Math.max(t,r)}),-1)}fe((function(t){return new t(1).exp()}),{hasher:le}),fe((function(t){return new t(1).plus(new t(5).sqrt()).div(2)}),{hasher:le});var he=fe((function(t){return t.acos(-1)}),{hasher:le});fe((function(t){return he(t).times(2)}),{hasher:le});function le(t){return t[0].precision}Math.PI,Math.PI,Math.E;pe(\"fineStructure\",.0072973525693),pe(\"weakMixingAngle\",.2229),pe(\"efimovFactor\",22.7),pe(\"sackurTetrode\",-1.16487052358);function pe(t,e){return te(t,[\"config\",\"BigNumber\"],(function(t){var r=t.config,n=t.BigNumber;return\"BigNumber\"===r.number?new n(e):e}))}var de=r(12),me=r.n(de),ye=te(\"Fraction\",[],(function(){return Object.defineProperty(me.a,\"name\",{value:\"Fraction\"}),me.a.prototype.constructor=me.a,me.a.prototype.type=\"Fraction\",me.a.prototype.isFraction=!0,me.a.prototype.toJSON=function(){return{mathjs:\"Fraction\",n:this.s*this.n,d:this.d}},me.a.fromJSON=function(t){return new me.a(t)},me.a}),{isClass:!0}),be=te(\"Matrix\",[],(function(){function t(){if(!(this instanceof t))throw new SyntaxError(\"Constructor must be called with the new operator\")}return t.prototype.type=\"Matrix\",t.prototype.isMatrix=!0,t.prototype.storage=function(){throw new Error(\"Cannot invoke storage on a Matrix interface\")},t.prototype.datatype=function(){throw new Error(\"Cannot invoke datatype on a Matrix interface\")},t.prototype.create=function(t,e){throw new Error(\"Cannot invoke create on a Matrix interface\")},t.prototype.subset=function(t,e,r){throw new Error(\"Cannot invoke subset on a Matrix interface\")},t.prototype.get=function(t){throw new Error(\"Cannot invoke get on a Matrix interface\")},t.prototype.set=function(t,e,r){throw new Error(\"Cannot invoke set on a Matrix interface\")},t.prototype.resize=function(t,e){throw new Error(\"Cannot invoke resize on a Matrix interface\")},t.prototype.reshape=function(t,e){throw new Error(\"Cannot invoke reshape on a Matrix interface\")},t.prototype.clone=function(){throw new Error(\"Cannot invoke clone on a Matrix interface\")},t.prototype.size=function(){throw new Error(\"Cannot invoke size on a Matrix interface\")},t.prototype.map=function(t,e){throw new Error(\"Cannot invoke map on a Matrix interface\")},t.prototype.forEach=function(t){throw new Error(\"Cannot invoke forEach on a Matrix interface\")},t.prototype[Symbol.iterator]=function(){throw new Error(\"Cannot iterate a Matrix interface\")},t.prototype.toArray=function(){throw new Error(\"Cannot invoke toArray on a Matrix interface\")},t.prototype.valueOf=function(){throw new Error(\"Cannot invoke valueOf on a Matrix interface\")},t.prototype.format=function(t){throw new Error(\"Cannot invoke format on a Matrix interface\")},t.prototype.toString=function(){throw new Error(\"Cannot invoke toString on a Matrix interface\")},t}),{isClass:!0});function ge(t){return ge=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ge(t)}function ve(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return we(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return we(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _e(){_e=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",s=a.asyncIterator||\"@@asyncIterator\",u=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),s=new C(n||[]);return i(o,\"_invoke\",{value:A(t,r,s)}),o}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var l=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function b(){}function g(){}function v(){}var w={};f(w,o,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(B([])));x&&x!==r&&n.call(x,o)&&(w=x);var E=v.prototype=b.prototype=Object.create(w);function D(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if(\"throw\"!==u.type){var f=u.arg,c=f.value;return c&&\"object\"==ge(c)&&n.call(c,\"__await\")?e.resolve(c.__await).then((function(t){r(\"next\",t,o,s)}),(function(t){r(\"throw\",t,o,s)})):e.resolve(c).then((function(t){f.value=t,o(f)}),(function(t){return r(\"throw\",t,o,s)}))}s(u.arg)}var a;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function A(e,r,n){var i=l;return function(a,o){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===l)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var f=h(e,r,n);if(\"normal\"===f.type){if(i=n.done?m:p,f.arg===y)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=m,n.method=\"throw\",n.arg=f.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var a=h(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[o];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(ge(e)+\" is not iterable\")}return g.prototype=v,i(E,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:g,configurable:!0}),g.displayName=f(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},D(k.prototype),f(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new k(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},D(E),f(E,u,\"Generator\"),f(E,o,(function(){return this})),f(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}var xe=te(\"DenseMatrix\",[\"Matrix\"],(function(t){var e=t.Matrix;function r(t,e){if(!(this instanceof r))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!l(e))throw new Error(\"Invalid datatype: \"+e);if(d(t))\"DenseMatrix\"===t.type?(this._data=V(t._data),this._size=V(t._size),this._datatype=e||t._datatype):(this._data=t.toArray(),this._size=t.size(),this._datatype=e||t._datatype);else if(t&&p(t.data)&&p(t.size))this._data=t.data,this._size=t.size,jt(this._data,this._size),this._datatype=e||t.datatype;else if(p(t))this._data=f(t),this._size=Lt(this._data),jt(this._data,this._size),this._datatype=e;else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._data=[],this._size=[0],this._datatype=e}}function n(t,e,r,i){var a=i===r-1,o=e.dimension(i);return a?o.map((function(e){return Rt(e,t.length),t[e]})).valueOf():o.map((function(a){return Rt(a,t.length),n(t[a],e,r,i+1)})).valueOf()}function i(t,e,r,n,a){var o=a===n-1,s=e.dimension(a);o?s.forEach((function(e,n){Rt(e),t[e]=r[n[0]]})):s.forEach((function(o,s){Rt(o),i(t[o],e,r[s[0]],n,a+1)}))}function a(t,e,r){if(0===e.length){for(var n=t._data;p(n);)n=n[0];return n}return t._size=e.slice(0),t._data=zt(t._data,t._size,r),t}function o(t,e,r){for(var n=t._size.slice(0),i=!1;n.length<e.length;)n.push(0),i=!0;for(var o=0,s=e.length;o<s;o++)e[o]>n[o]&&(n[o]=e[o],i=!0);i&&a(t,n,r)}function f(t){return d(t)?f(t.valueOf()):p(t)?t.map(f):t}return r.prototype=new e,r.prototype.createDenseMatrix=function(t,e){return new r(t,e)},Object.defineProperty(r,\"name\",{value:\"DenseMatrix\"}),r.prototype.constructor=r,r.prototype.type=\"DenseMatrix\",r.prototype.isDenseMatrix=!0,r.prototype.getDataType=function(){return Vt(this._data,W)},r.prototype.storage=function(){return\"dense\"},r.prototype.datatype=function(){return this._datatype},r.prototype.create=function(t,e){return new r(t,e)},r.prototype.subset=function(t,e,a){switch(arguments.length){case 1:return function(t,e){if(!v(e))throw new TypeError(\"Invalid index\");var i=e.isScalar();if(i)return t.get(e.min());var a=e.size();if(a.length!==t._size.length)throw new Ot(a.length,t._size.length);for(var o=e.min(),s=e.max(),u=0,f=t._size.length;u<f;u++)Rt(o[u],t._size[u]),Rt(s[u],t._size[u]);return new r(n(t._data,e,a.length,0),t._datatype)}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var a,s=e.size(),u=e.isScalar();d(r)?(a=r.size(),r=r.valueOf()):a=Lt(r);if(u){if(0!==a.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),r,n)}else{if(!K(a,s))try{a=Lt(r=0===a.length?$t([r],s):$t(r,s))}catch(t){}if(s.length<t._size.length)throw new Ot(s.length,t._size.length,\"<\");if(a.length<s.length){for(var f=0,c=0;1===s[f]&&1===a[f];)f++;for(;1===s[f];)c++,f++;r=qt(r,s.length,c,a)}if(!K(s,a))throw new Ot(s,a,\">\");var h=e.max().map((function(t){return t+1}));o(t,h,n);var l=s.length,p=0;i(t._data,e,r,l,p)}return t}(this,t,e,a);default:throw new SyntaxError(\"Wrong number of arguments\")}},r.prototype.get=function(t){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ot(t.length,this._size.length);for(var e=0;e<t.length;e++)Rt(t[e],this._size[e]);for(var r=this._data,n=0,i=t.length;n<i;n++){var a=t[n];Rt(a,r.length),r=r[a]}return r},r.prototype.set=function(t,e,r){if(!p(t))throw new TypeError(\"Array expected\");if(t.length<this._size.length)throw new Ot(t.length,this._size.length,\"<\");var n,i,a,s=t.map((function(t){return t+1}));o(this,s,r);var u=this._data;for(n=0,i=t.length-1;n<i;n++)Rt(a=t[n],u.length),u=u[a];return Rt(a=t[t.length-1],u.length),u[a]=e,this},r.prototype.resize=function(t,e,r){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var n=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));return a(r?this.clone():this,n,e)},r.prototype.reshape=function(t,e){var r=e?this.clone():this;r._data=Gt(r._data,t);var n=r._size.reduce((function(t,e){return t*e}));return r._size=Ht(t,n),r},r.prototype.clone=function(){return new r({data:V(this._data),size:V(this._size),datatype:this._datatype})},r.prototype.size=function(){return this._size.slice(0)},r.prototype.map=function(t){var e=this,n=ce(t),i=function r(i,a){return p(i)?i.map((function(t,e){return r(t,a.concat(e))})):1===n?t(i):2===n?t(i,a):t(i,a,e)}(this._data,[]);return new r(i,void 0!==this._datatype?Vt(i,W):void 0)},r.prototype.forEach=function(t){var e=this;!function r(n,i){p(n)?n.forEach((function(t,e){r(t,i.concat(e))})):t(n,i,e)}(this._data,[])},r.prototype[Symbol.iterator]=_e().mark((function t(){var e;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=_e().mark((function t(e,r){var n;return _e().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!p(e)){i.next=9;break}n=0;case 2:if(!(n<e.length)){i.next=7;break}return i.delegateYield(t(e[n],r.concat(n)),\"t0\",4);case 4:n++,i.next=2;break;case 7:i.next=11;break;case 9:return i.next=11,{value:e,index:r};case 11:case\"end\":return i.stop()}}),t)})),t.delegateYield(e(this._data,[]),\"t0\",2);case 2:case\"end\":return t.stop()}}),t,this)})),r.prototype.rows=function(){var t=[];if(2!==this.size().length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");var e,n=ve(this._data);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(new r([i],this._datatype))}}catch(t){n.e(t)}finally{n.f()}return t},r.prototype.columns=function(){var t=this,e=[],n=this.size();if(2!==n.length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");for(var i=this._data,a=function(n){var a=i.map((function(t){return[t[n]]}));e.push(new r(a,t._datatype))},o=0;o<n[1];o++)a(o);return e},r.prototype.toArray=function(){return V(this._data)},r.prototype.valueOf=function(){return this._data},r.prototype.format=function(t){return St(this._data,t)},r.prototype.toString=function(){return St(this._data)},r.prototype.toJSON=function(){return{mathjs:\"DenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},r.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;for(var e=t>0?t:0,n=t<0?-t:0,i=this._size[0],a=this._size[1],o=Math.min(i-n,a-e),f=[],c=0;c<o;c++)f[c]=this._data[c+n][c+e];return new r({data:f,size:[o],datatype:this._datatype})},r.diagonal=function(t,e,n,i){if(!p(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),n){if(u(n)&&(n=n.toNumber()),!s(n)||!it(n))throw new TypeError(\"The parameter k must be an integer number\")}else n=0;var a,o=n>0?n:0,f=n<0?-n:0,c=t[0],h=t[1],l=Math.min(c-f,h-o);if(p(e)){if(e.length!==l)throw new Error(\"Invalid value array length\");a=function(t){return e[t]}}else if(d(e)){var m=e.size();if(1!==m.length||m[0]!==l)throw new Error(\"Invalid matrix length\");a=function(t){return e.get([t])}}else a=function(){return e};i||(i=u(a(0))?a(0).mul(0):0);var y=[];if(t.length>0){y=zt(y,t,i);for(var b=0;b<l;b++)y[b+f][b+o]=a(b)}return new r({data:y,size:[c,h]})},r.fromJSON=function(t){return new r(t)},r.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return Rt(t,this._size[0]),Rt(e,this._size[0]),r._swapRows(t,e,this._data),this},r._swapRows=function(t,e,r){var n=r[t];r[t]=r[e],r[e]=n},r}),{isClass:!0}),Ee=r(16),De=r.n(Ee);function ke(t){return ke=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ke(t)}function Ae(t,e){if(Ce(t)&&Me(t,e))return t[e];if(\"function\"==typeof t[e]&&Fe(t,e))throw new Error('Cannot access method \"'+e+'\" as a property');throw new Error('No access to property \"'+e+'\"')}function Se(t,e,r){if(Ce(t)&&Me(t,e))return t[e]=r,r;throw new Error('No access to property \"'+e+'\"')}function Me(t,e){return!(!t||\"object\"!==ke(t))&&(!!Q(Be,e)||!(e in Object.prototype)&&!(e in Function.prototype))}function Fe(t,e){return null!=t&&\"function\"==typeof t[e]&&(!(Q(t,e)&&Object.getPrototypeOf&&e in Object.getPrototypeOf(t))&&(!!Q(Oe,e)||!(e in Object.prototype)&&!(e in Function.prototype)))}function Ce(t){return\"object\"===ke(t)&&t&&t.constructor===Object}var Be={length:!0,name:!0},Oe={toString:!0,valueOf:!0,toLocaleString:!0};function Ie(t){return Ie=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Ie(t)}function Te(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Pe(n.key),n)}}function Pe(t){var e=function(t,e){if(\"object\"!=Ie(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=Ie(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==Ie(e)?e:e+\"\"}var Le=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.wrappedObject=e},(e=[{key:\"keys\",value:function(){return Object.keys(this.wrappedObject)}},{key:\"get\",value:function(t){return Ae(this.wrappedObject,t)}},{key:\"set\",value:function(t,e){return Se(this.wrappedObject,t,e),this}},{key:\"has\",value:function(t){return e=this.wrappedObject,t in e;var e}}])&&Te(t.prototype,e),r&&Te(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}();function Ne(t){return!!t&&(t instanceof Map||t instanceof Le||\"function\"==typeof t.set&&\"function\"==typeof t.get&&\"function\"==typeof t.keys&&\"function\"==typeof t.has)}var je=function(){return je=De.a.create,De.a},Re=te(\"typed\",[\"?BigNumber\",\"?Complex\",\"?DenseMatrix\",\"?Fraction\"],(function(t){var e=t.BigNumber,r=t.Complex,n=t.DenseMatrix,i=t.Fraction,a=je();return a.clear(),a.addTypes([{name:\"number\",test:s},{name:\"Complex\",test:f},{name:\"BigNumber\",test:u},{name:\"Fraction\",test:c},{name:\"Unit\",test:h},{name:\"identifier\",test:function(t){return l&&/^(?:[A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])*$/.test(t)}},{name:\"string\",test:l},{name:\"Chain\",test:q},{name:\"Array\",test:p},{name:\"Matrix\",test:d},{name:\"DenseMatrix\",test:y},{name:\"SparseMatrix\",test:b},{name:\"Range\",test:g},{name:\"Index\",test:v},{name:\"boolean\",test:w},{name:\"ResultSet\",test:_},{name:\"Help\",test:x},{name:\"function\",test:E},{name:\"Date\",test:D},{name:\"RegExp\",test:k},{name:\"null\",test:S},{name:\"undefined\",test:M},{name:\"AccessorNode\",test:F},{name:\"ArrayNode\",test:C},{name:\"AssignmentNode\",test:B},{name:\"BlockNode\",test:O},{name:\"ConditionalNode\",test:I},{name:\"ConstantNode\",test:T},{name:\"FunctionNode\",test:L},{name:\"FunctionAssignmentNode\",test:P},{name:\"IndexNode\",test:N},{name:\"Node\",test:j},{name:\"ObjectNode\",test:R},{name:\"OperatorNode\",test:z},{name:\"ParenthesisNode\",test:U},{name:\"RangeNode\",test:G},{name:\"RelationalNode\",test:H},{name:\"SymbolNode\",test:Z},{name:\"Map\",test:Ne},{name:\"Object\",test:A}]),a.addConversions([{from:\"number\",to:\"BigNumber\",convert:function(t){if(e||ze(t),t.toExponential().replace(/e.*$/,\"\").replace(/^0\\.?0*|\\./,\"\").length>15)throw new TypeError(\"Cannot implicitly convert a number with >15 significant digits to BigNumber (value: \"+t+\"). Use function bignumber(x) to convert to BigNumber.\");return new e(t)}},{from:\"number\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t,0)}},{from:\"BigNumber\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t.toNumber(),0)}},{from:\"Fraction\",to:\"BigNumber\",convert:function(t){throw new TypeError(\"Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.\")}},{from:\"Fraction\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t.valueOf(),0)}},{from:\"number\",to:\"Fraction\",convert:function(t){i||Ge(t);var e=new i(t);if(e.valueOf()!==t)throw new TypeError(\"Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: \"+t+\"). Use function fraction(x) to convert to Fraction.\");return e}},{from:\"string\",to:\"number\",convert:function(t){var e=Number(t);if(isNaN(e))throw new Error('Cannot convert \"'+t+'\" to a number');return e}},{from:\"string\",to:\"BigNumber\",convert:function(t){e||ze(t);try{return new e(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to BigNumber')}}},{from:\"string\",to:\"Fraction\",convert:function(t){i||Ge(t);try{return new i(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Fraction')}}},{from:\"string\",to:\"Complex\",convert:function(t){r||Ue(t);try{return new r(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Complex')}}},{from:\"boolean\",to:\"number\",convert:function(t){return+t}},{from:\"boolean\",to:\"BigNumber\",convert:function(t){return e||ze(t),new e(+t)}},{from:\"boolean\",to:\"Fraction\",convert:function(t){return i||Ge(t),new i(+t)}},{from:\"boolean\",to:\"string\",convert:function(t){return String(t)}},{from:\"Array\",to:\"Matrix\",convert:function(t){return n||function(){throw new Error(\"Cannot convert array into a Matrix: no class 'DenseMatrix' provided\")}(),new n(t)}},{from:\"Matrix\",to:\"Array\",convert:function(t){return t.valueOf()}}]),a.onMismatch=function(t,e,r){var n=a.createError(t,e,r);if([\"wrongType\",\"mismatch\"].includes(n.data.category)&&1===e.length&&m(e[0])&&r.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=n.data,i}throw n},a.onMismatch=function(t,e,r){var n=a.createError(t,e,r);if([\"wrongType\",\"mismatch\"].includes(n.data.category)&&1===e.length&&m(e[0])&&r.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=n.data,i}throw n},a}));function ze(t){throw new Error(\"Cannot convert value \".concat(t,\" into a BigNumber: no class 'BigNumber' provided\"))}function Ue(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Complex number: no class 'Complex' provided\"))}function Ge(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Fraction, no class 'Fraction' provided.\"))}function He(t,e,r){return t&&\"function\"==typeof t.map?t.map((function(t){return He(t,e,r)})):e(t)}var Ze=\"number\",qe=\"number, number\";function We(t){return Math.abs(t)}function Ye(t,e){return t+e}function Ve(t,e){return t-e}function Xe(t,e){return t*e}function Je(t){return-t}function Ke(t){return t}function Qe(t){return ut(t)}function $e(t){return t*t*t}function tr(t){return Math.exp(t)}function er(t){return ft(t)}function rr(t,e){if(!it(t)||!it(e))throw new Error(\"Parameters in function lcm must be integer numbers\");if(0===t||0===e)return 0;for(var r,n=t*e;0!==e;)e=t%(r=e),t=r;return Math.abs(n/t)}function nr(t){return st(t)}function ir(t){return ot(t)}function ar(t){return at(t)}function or(t){return t*t}function sr(t,e){var r,n,i,a=0,o=1,s=1,u=0;if(!it(t)||!it(e))throw new Error(\"Parameters in function xgcd must be integer numbers\");for(;e;)i=t-(n=Math.floor(t/e))*e,r=a,a=o-n*a,o=r,r=s,s=u-n*s,u=r,t=e,e=i;return t<0?[-t,-o,-u]:[t,t?o:0,u]}function ur(t,e){return t*t<1&&e===1/0||t*t>1&&e===-1/0?0:Math.pow(t,e)}We.signature=Ze,Ye.signature=qe,Ve.signature=qe,Xe.signature=qe,Je.signature=Ze,Ke.signature=Ze,Qe.signature=Ze,$e.signature=Ze,tr.signature=Ze,er.signature=Ze,rr.signature=qe,nr.signature=Ze,ir.signature=Ze,ar.signature=Ze,or.signature=Ze,sr.signature=qe,ur.signature=qe;var fr=\"number\";function cr(t){return vt(t)}function hr(t){return Math.atan(1/t)}function lr(t){return isFinite(t)?(Math.log((t+1)/t)+Math.log(t/(t-1)))/2:0}function pr(t){return Math.asin(1/t)}function dr(t){var e=1/t;return Math.log(e+Math.sqrt(e*e+1))}function mr(t){return Math.acos(1/t)}function yr(t){var e=1/t,r=Math.sqrt(e*e-1);return Math.log(r+e)}function br(t){return wt(t)}function gr(t){return _t(t)}function vr(t){return 1/Math.tan(t)}function wr(t){var e=Math.exp(2*t);return(e+1)/(e-1)}function _r(t){return 1/Math.sin(t)}function xr(t){return 0===t?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(t)-Math.exp(-t)))*at(t)}function Er(t){return 1/Math.cos(t)}function Dr(t){return 2/(Math.exp(t)+Math.exp(-t))}function kr(t){return xt(t)}cr.signature=fr,hr.signature=fr,lr.signature=fr,pr.signature=fr,dr.signature=fr,mr.signature=fr,yr.signature=fr,br.signature=fr,gr.signature=fr,vr.signature=fr,wr.signature=fr,_r.signature=fr,xr.signature=fr,Er.signature=fr,Dr.signature=fr,kr.signature=fr;var Ar=\"addScalar\",Sr=te(Ar,[\"typed\"],(function(t){var e=t.typed;return e(Ar,{\"number, number\":Ye,\"Complex, Complex\":function(t,e){return t.add(e)},\"BigNumber, BigNumber\":function(t,e){return t.plus(e)},\"Fraction, Fraction\":function(t,e){return t.add(e)},\"Unit, Unit\":e.referToSelf((function(t){return function(r,n){if(null===r.value||void 0===r.value)throw new Error(\"Parameter x contains a unit with undefined value\");if(null===n.value||void 0===n.value)throw new Error(\"Parameter y contains a unit with undefined value\");if(!r.equalBase(n))throw new Error(\"Units do not match\");var i=r.clone();return i.value=e.find(t,[i.valueType(),n.valueType()])(i.value,n.value),i.fixPrefix=!1,i}}))})})),Mr=te(\"bignumber\",[\"typed\",\"BigNumber\"],(function(t){var e=t.typed,r=t.BigNumber;return e(\"bignumber\",{\"\":function(){return new r(0)},number:function(t){return new r(t+\"\")},string:function(t){var e=t.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(e){var n=e[2],i=r(e[1]),a=new r(2).pow(Number(n));if(i.gt(a.sub(1)))throw new SyntaxError('String \"'.concat(t,'\" is out of range'));var o=new r(2).pow(Number(n)-1);return i.gte(o)?i.sub(a):i}return new r(t)},BigNumber:function(t){return t},Unit:e.referToSelf((function(t){return function(e){var r=e.clone();return r.value=t(e.value),r}})),Fraction:function(t){return new r(t.n).div(t.d).times(t.s)},null:function(t){return new r(0)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})}));var Fr=\"number, number\";function Cr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitAnd\");return t&e}function Br(t){if(!it(t))throw new Error(\"Integer expected in function bitNot\");return~t}function Or(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitOr\");return t|e}function Ir(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitXor\");return t^e}function Tr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function leftShift\");return t<<e}function Pr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightArithShift\");return t>>e}function Lr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightLogShift\");return t>>>e}Cr.signature=Fr,Br.signature=\"number\",Or.signature=Fr,Ir.signature=Fr,Tr.signature=Fr,Pr.signature=Fr,Lr.signature=Fr;function Nr(t,e){if(e<t)return 1;if(e===t)return e;var r=e+t>>1;return Nr(t,r)*Nr(r+1,e)}function jr(t,e){if(!it(t)||t<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(!it(e)||e<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(e>t)throw new TypeError(\"k must be less than or equal to n\");for(var r=t-e,n=1,i=2,a=e<r?e:r,o=e<r?r+1:e+1;o<=t;++o)for(n*=o;i<=a&&n%i==0;)n/=i,++i;return i<=a&&(n/=Nr(i,a)),n}jr.signature=\"number, number\";function Rr(t,e,r){if(null==r)return t.eq(e);if(t.eq(e))return!0;if(t.isNaN()||e.isNaN())return!1;if(t.isFinite()&&e.isFinite()){var n=t.minus(e).abs();if(n.isZero())return!0;var i=t.constructor.max(t.abs(),e.abs());return n.lte(i.times(r))}return!1}var zr=te(\"compareUnits\",[\"typed\"],(function(t){var e=t.typed;return{\"Unit, Unit\":e.referToSelf((function(t){return function(r,n){if(!r.equalBase(n))throw new Error(\"Cannot compare units with different base\");return e.find(t,[r.valueType(),n.valueType()])(r.value,n.value)}}))}})),Ur=\"equalScalar\",Gr=te(Ur,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config,n=zr({typed:e});return e(Ur,{\"boolean, boolean\":function(t,e){return t===e},\"number, number\":function(t,e){return gt(t,e,r.epsilon)},\"BigNumber, BigNumber\":function(t,e){return t.eq(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return t.equals(e)},\"Complex, Complex\":function(t,e){return function(t,e,r){return gt(t.re,e.re,r)&&gt(t.im,e.im,r)}(t,e,r.epsilon)}},n)}));te(Ur,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Ur,{\"number, number\":function(t,e){return gt(t,e,r.epsilon)}})})),Math.pow(2,53);var Hr=\"getMatrixDataType\",Zr=te(Hr,[\"typed\"],(function(t){return(0,t.typed)(Hr,{Array:function(t){return Vt(t,W)},Matrix:function(t){return t.getDataType()}})})),qr=(te(\"hex\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"hex\",{\"number | BigNumber\":function(t){return r(t,{notation:\"hex\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"hex\",wordSize:e})}})})),\"isInteger\"),Wr=te(qr,[\"typed\"],(function(t){var e=t.typed;return e(qr,{number:it,BigNumber:function(t){return t.isInt()},Fraction:function(t){return 1===t.d&&isFinite(t.n)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})})),Yr=\"number\";function Vr(t){return t<0}function Xr(t){return t>0}function Jr(t){return 0===t}function Kr(t){return Number.isNaN(t)}Vr.signature=Yr,Xr.signature=Yr,Jr.signature=Yr,Kr.signature=Yr;var Qr=\"isPositive\",$r=te(Qr,[\"typed\"],(function(t){var e=t.typed;return e(Qr,{number:Xr,BigNumber:function(t){return!t.isNeg()&&!t.isZero()&&!t.isNaN()},Fraction:function(t){return t.s>0&&t.n>0},Unit:e.referToSelf((function(t){return function(r){return e.find(t,r.valueType())(r.value)}})),\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})}));function tn(t){var e;if(it(t))return t<=0?isFinite(t)?1/0:NaN:t>171?1/0:Nr(1,t-1);if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*tn(1-t));if(t>=171.35)return 1/0;if(t>85){var r=t*t,n=r*t,i=n*t,a=i*t;return Math.sqrt(2*Math.PI/t)*Math.pow(t/Math.E,t)*(1+1/(12*t)+1/(288*r)-139/(51840*n)-571/(2488320*i)+163879/(209018880*a)+5246819/(75246796800*a*t))}--t,e=rn[0];for(var o=1;o<rn.length;++o)e+=rn[o]/(t+o);var s=t+en+.5;return Math.sqrt(2*Math.PI)*Math.pow(s,t+.5)*Math.exp(-s)*e}tn.signature=\"number\";var en=4.7421875,rn=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],nn=.9189385332046728,an=[1.000000000190015,76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18];function on(t){if(t<0)return NaN;if(0===t)return 1/0;if(!isFinite(t))return t;if(t<.5)return Math.log(Math.PI/Math.sin(Math.PI*t))-on(1-t);for(var e=(t-=1)+5+.5,r=an[0],n=6;n>=1;n--)r+=an[n]/(t+n);return nn+(t+.5)*Math.log(e)-e+Math.log(r)}on.signature=\"number\";var sn=\"number, number\";function un(t){return!t}function fn(t,e){return!(!t&&!e)}function cn(t,e){return!!t!=!!e}function hn(t,e){return!(!t||!e)}un.signature=\"number\",fn.signature=sn,cn.signature=sn,hn.signature=sn;te(\"oct\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"oct\",{\"number | BigNumber\":function(t){return r(t,{notation:\"oct\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"oct\",wordSize:e})}})}));var ln=r(64),pn=r.n(ln);Date.now();function dn(t){return dn=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},dn(t)}function mn(){mn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",s=a.asyncIterator||\"@@asyncIterator\",u=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),s=new C(n||[]);return i(o,\"_invoke\",{value:A(t,r,s)}),o}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var l=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",y={};function b(){}function g(){}function v(){}var w={};f(w,o,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(B([])));x&&x!==r&&n.call(x,o)&&(w=x);var E=v.prototype=b.prototype=Object.create(w);function D(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if(\"throw\"!==u.type){var f=u.arg,c=f.value;return c&&\"object\"==dn(c)&&n.call(c,\"__await\")?e.resolve(c.__await).then((function(t){r(\"next\",t,o,s)}),(function(t){r(\"throw\",t,o,s)})):e.resolve(c).then((function(t){f.value=t,o(f)}),(function(t){return r(\"throw\",t,o,s)}))}s(u.arg)}var a;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function A(e,r,n){var i=l;return function(a,o){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===y)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===l)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var f=h(e,r,n);if(\"normal\"===f.type){if(i=n.done?m:p,f.arg===y)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=m,n.method=\"throw\",n.arg=f.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),y;var a=h(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,y):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[o];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(dn(e)+\" is not iterable\")}return g.prototype=v,i(E,\"constructor\",{value:v,configurable:!0}),i(v,\"constructor\",{value:g,configurable:!0}),g.displayName=f(v,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},D(k.prototype),f(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new k(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},D(E),f(E,u,\"Generator\"),f(E,o,(function(){return this})),f(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;F(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),y}},e}var yn=te(\"SparseMatrix\",[\"typed\",\"equalScalar\",\"Matrix\"],(function(t){var e=t.typed,r=t.equalScalar,n=t.Matrix;function i(t,e){if(!(this instanceof i))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!l(e))throw new Error(\"Invalid datatype: \"+e);if(d(t))!function(t,e,r){\"SparseMatrix\"===e.type?(t._values=e._values?V(e._values):void 0,t._index=V(e._index),t._ptr=V(e._ptr),t._size=V(e._size),t._datatype=r||e._datatype):a(t,e.valueOf(),r||e._datatype)}(this,t,e);else if(t&&p(t.index)&&p(t.ptr)&&p(t.size))this._values=t.values,this._index=t.index,this._ptr=t.ptr,this._size=t.size,this._datatype=e||t.datatype;else if(p(t))a(this,t,e);else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=e}}function a(t,n,i){t._values=[],t._index=[],t._ptr=[],t._datatype=i;var a=n.length,o=0,s=r,u=0;if(l(i)&&(s=e.find(r,[i,i])||r,u=e.convert(0,i)),a>0){var f=0;do{t._ptr.push(t._index.length);for(var c=0;c<a;c++){var h=n[c];if(p(h)){if(0===f&&o<h.length&&(o=h.length),f<h.length){var d=h[f];s(d,u)||(t._values.push(d),t._index.push(c))}}else 0===f&&o<1&&(o=1),s(h,u)||(t._values.push(h),t._index.push(c))}f++}while(f<o)}t._ptr.push(t._index.length),t._size=[a,o]}function o(t,e,r,n){if(r-e==0)return r;for(var i=e;i<r;i++)if(n[i]===t)return i;return e}function f(t,e,r,n,i,a,o){i.splice(t,0,n),a.splice(t,0,e);for(var s=r+1;s<o.length;s++)o[s]++}function c(t,n,i,a){var o=a||0,s=r,u=0;l(t._datatype)&&(s=e.find(r,[t._datatype,t._datatype])||r,u=e.convert(0,t._datatype),o=e.convert(o,t._datatype));var f,c,h,p=!s(o,u),d=t._size[0],m=t._size[1];if(i>m){for(c=m;c<i;c++)if(t._ptr[c]=t._values.length,p)for(f=0;f<d;f++)t._values.push(o),t._index.push(f);t._ptr[i]=t._values.length}else i<m&&(t._ptr.splice(i+1,m-i),t._values.splice(t._ptr[i],t._values.length),t._index.splice(t._ptr[i],t._index.length));if(m=i,n>d){if(p){var y=0;for(c=0;c<m;c++){t._ptr[c]=t._ptr[c]+y,h=t._ptr[c+1]+y;var b=0;for(f=d;f<n;f++,b++)t._values.splice(h+b,0,o),t._index.splice(h+b,0,f),y++}t._ptr[m]=t._values.length}}else if(n<d){var g=0;for(c=0;c<m;c++){t._ptr[c]=t._ptr[c]-g;var v=t._ptr[c],w=t._ptr[c+1]-g;for(h=v;h<w;h++)(f=t._index[h])>n-1&&(t._values.splice(h,1),t._index.splice(h,1),g++)}t._ptr[c]=t._values.length}return t._size[0]=n,t._size[1]=i,t}function h(t,e,r,n,i){var a,o,s=n[0],u=n[1],f=[];for(a=0;a<s;a++)for(f[a]=[],o=0;o<u;o++)f[a][o]=0;for(o=0;o<u;o++)for(var c=r[o],h=r[o+1],l=c;l<h;l++)f[a=e[l]][o]=t?i?V(t[l]):t[l]:1;return f}return i.prototype=new n,i.prototype.createSparseMatrix=function(t,e){return new i(t,e)},Object.defineProperty(i,\"name\",{value:\"SparseMatrix\"}),i.prototype.constructor=i,i.prototype.type=\"SparseMatrix\",i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return Vt(this._values,W)},i.prototype.storage=function(){return\"sparse\"},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(t,e){return new i(t,e)},i.prototype.density=function(){var t=this._size[0],e=this._size[1];return 0!==t&&0!==e?this._index.length/(t*e):0},i.prototype.subset=function(t,e,r){if(!this._values)throw new Error(\"Cannot invoke subset on a Pattern only matrix\");switch(arguments.length){case 1:return function(t,e){if(!v(e))throw new TypeError(\"Invalid index\");if(e.isScalar())return t.get(e.min());var r,n,a,o,s=e.size();if(s.length!==t._size.length)throw new Ot(s.length,t._size.length);var u=e.min(),f=e.max();for(r=0,n=t._size.length;r<n;r++)Rt(u[r],t._size[r]),Rt(f[r],t._size[r]);var c=t._values,h=t._index,l=t._ptr,p=e.dimension(0),d=e.dimension(1),m=[],y=[];p.forEach((function(t,e){y[t]=e[0],m[t]=!0}));var b=c?[]:void 0,g=[],w=[];return d.forEach((function(t){for(w.push(g.length),a=l[t],o=l[t+1];a<o;a++)r=h[a],!0===m[r]&&(g.push(y[r]),b&&b.push(c[a]))})),w.push(g.length),new i({values:b,index:g,ptr:w,size:s,datatype:t._datatype})}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var i,a=e.size(),o=e.isScalar();d(r)?(i=r.size(),r=r.toArray()):i=Lt(r);if(o){if(0!==i.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),r,n)}else{if(1!==a.length&&2!==a.length)throw new Ot(a.length,t._size.length,\"<\");if(i.length<a.length){for(var s=0,u=0;1===a[s]&&1===i[s];)s++;for(;1===a[s];)u++,s++;r=qt(r,a.length,u,i)}if(!K(a,i))throw new Ot(a,i,\">\");if(1===a.length){e.dimension(0).forEach((function(e,i){Rt(e),t.set([e,0],r[i[0]],n)}))}else{var f=e.dimension(0),c=e.dimension(1);f.forEach((function(e,i){Rt(e),c.forEach((function(a,o){Rt(a),t.set([e,a],r[i[0]][o[0]],n)}))}))}}return t}(this,t,e,r);default:throw new SyntaxError(\"Wrong number of arguments\")}},i.prototype.get=function(t){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ot(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke get on a Pattern only matrix\");var e=t[0],r=t[1];Rt(e,this._size[0]),Rt(r,this._size[1]);var n=o(e,this._ptr[r],this._ptr[r+1],this._index);return n<this._ptr[r+1]&&this._index[n]===e?this._values[n]:0},i.prototype.set=function(t,n,i){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ot(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke set on a Pattern only matrix\");var a=t[0],s=t[1],u=this._size[0],h=this._size[1],d=r,m=0;l(this._datatype)&&(d=e.find(r,[this._datatype,this._datatype])||r,m=e.convert(0,this._datatype)),(a>u-1||s>h-1)&&(c(this,Math.max(a+1,u),Math.max(s+1,h),i),u=this._size[0],h=this._size[1]),Rt(a,u),Rt(s,h);var y=o(a,this._ptr[s],this._ptr[s+1],this._index);return y<this._ptr[s+1]&&this._index[y]===a?d(n,m)?function(t,e,r,n,i){r.splice(t,1),n.splice(t,1);for(var a=e+1;a<i.length;a++)i[a]--}(y,s,this._values,this._index,this._ptr):this._values[y]=n:d(n,m)||f(y,a,s,n,this._values,this._index,this._ptr),this},i.prototype.resize=function(t,e,r){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var n=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));if(2!==n.length)throw new Error(\"Only two dimensions matrix are supported\");return n.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+St(n)+\")\")})),c(r?this.clone():this,n[0],n[1],e)},i.prototype.reshape=function(t,e){if(!p(t))throw new TypeError(\"Array expected\");if(2!==t.length)throw new Error(\"Sparse matrices can only be reshaped in two dimensions\");t.forEach((function(e){if(!s(e)||!it(e)||e<=-2||0===e)throw new TypeError(\"Invalid size, must contain positive integers or -1 (size: \"+St(t)+\")\")}));var r=this._size[0]*this._size[1];if(r!==(t=Ht(t,r))[0]*t[1])throw new Error(\"Reshaping sparse matrix will result in the wrong number of elements\");var n=e?this.clone():this;if(this._size[0]===t[0]&&this._size[1]===t[1])return n;for(var i=[],a=0;a<n._ptr.length;a++)for(var u=0;u<n._ptr[a+1]-n._ptr[a];u++)i.push(a);for(var c=n._values.slice(),h=n._index.slice(),l=0;l<n._index.length;l++){var d=h[l],m=i[l],y=d*n._size[1]+m;i[l]=y%t[1],h[l]=Math.floor(y/t[1])}n._values.length=0,n._index.length=0,n._ptr.length=t[1]+1,n._size=t.slice();for(var b=0;b<n._ptr.length;b++)n._ptr[b]=0;for(var g=0;g<c.length;g++){var v=h[g],w=i[g],_=c[g];f(o(v,n._ptr[w],n._ptr[w+1],n._index),v,w,_,n._values,n._index,n._ptr)}return n},i.prototype.clone=function(){return new i({values:this._values?V(this._values):void 0,index:V(this._index),ptr:V(this._ptr),size:V(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(t,n){if(!this._values)throw new Error(\"Cannot invoke map on a Pattern only matrix\");var a=this,o=this._size[0],s=this._size[1],u=ce(t);return function(t,n,a,o,s,u,f){var c=[],h=[],p=[],d=r,m=0;l(t._datatype)&&(d=e.find(r,[t._datatype,t._datatype])||r,m=e.convert(0,t._datatype));for(var y=function(t,e,r){t=u(t,e,r),d(t,m)||(c.push(t),h.push(e))},b=o;b<=s;b++){p.push(c.length);var g=t._ptr[b],v=t._ptr[b+1];if(f)for(var w=g;w<v;w++){var _=t._index[w];_>=n&&_<=a&&y(t._values[w],_-n,b-o)}else{for(var x={},E=g;E<v;E++){x[t._index[E]]=t._values[E]}for(var D=n;D<=a;D++){y(D in x?x[D]:0,D-n,b-o)}}}return p.push(c.length),new i({values:c,index:h,ptr:p,size:[a-n+1,s-o+1]})}(this,0,o-1,0,s-1,(function(e,r,n){return 1===u?t(e):2===u?t(e,[r,n]):t(e,[r,n],a)}),n)},i.prototype.forEach=function(t,e){if(!this._values)throw new Error(\"Cannot invoke forEach on a Pattern only matrix\");for(var r=this._size[0],n=this._size[1],i=0;i<n;i++){var a=this._ptr[i],o=this._ptr[i+1];if(e)for(var s=a;s<o;s++){var u=this._index[s];t(this._values[s],[u,i],this)}else{for(var f={},c=a;c<o;c++){f[this._index[c]]=this._values[c]}for(var h=0;h<r;h++){t(h in f?f[h]:0,[h,i],this)}}}},i.prototype[Symbol.iterator]=mn().mark((function t(){var e,r,n,i,a,o;return mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._values){t.next=2;break}throw new Error(\"Cannot iterate a Pattern only matrix\");case 2:e=this._size[1],r=0;case 4:if(!(r<e)){t.next=18;break}n=this._ptr[r],i=this._ptr[r+1],a=n;case 8:if(!(a<i)){t.next=15;break}return o=this._index[a],t.next=12,{value:this._values[a],index:[o,r]};case 12:a++,t.next=8;break;case 15:r++,t.next=4;break;case 18:case\"end\":return t.stop()}}),t,this)})),i.prototype.toArray=function(){return h(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return h(this._values,this._index,this._ptr,this._size,!1)},i.prototype.format=function(t){for(var e=this._size[0],r=this._size[1],n=this.density(),i=\"Sparse Matrix [\"+St(e,t)+\" x \"+St(r,t)+\"] density: \"+St(n,t)+\"\\n\",a=0;a<r;a++)for(var o=this._ptr[a],s=this._ptr[a+1],u=o;u<s;u++){i+=\"\\n    (\"+St(this._index[u],t)+\", \"+St(a,t)+\") ==> \"+(this._values?St(this._values[u],t):\"X\")}return i},i.prototype.toString=function(){return St(this.toArray())},i.prototype.toJSON=function(){return{mathjs:\"SparseMatrix\",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;var e=t>0?t:0,r=t<0?-t:0,n=this._size[0],a=this._size[1],o=Math.min(n-r,a-e),f=[],c=[],h=[];h[0]=0;for(var l=e;l<a&&f.length<o;l++)for(var p=this._ptr[l],d=this._ptr[l+1],m=p;m<d;m++){var y=this._index[m];if(y===l-e+r){f.push(this._values[m]),c[f.length-1]=y-r;break}}return h.push(f.length),new i({values:f,index:c,ptr:h,size:[o,1]})},i.fromJSON=function(t){return new i(t)},i.diagonal=function(t,n,a,o,f){if(!p(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),a){if(u(a)&&(a=a.toNumber()),!s(a)||!it(a))throw new TypeError(\"The parameter k must be an integer number\")}else a=0;var c=r,h=0;l(f)&&(c=e.find(r,[f,f])||r,h=e.convert(0,f));var m,y=a>0?a:0,b=a<0?-a:0,g=t[0],v=t[1],w=Math.min(g-b,v-y);if(p(n)){if(n.length!==w)throw new Error(\"Invalid value array length\");m=function(t){return n[t]}}else if(d(n)){var _=n.size();if(1!==_.length||_[0]!==w)throw new Error(\"Invalid matrix length\");m=function(t){return n.get([t])}}else m=function(){return n};for(var x=[],E=[],D=[],k=0;k<v;k++){D.push(x.length);var A=k-y;if(A>=0&&A<w){var S=m(A);c(S,h)||(E.push(A+b),x.push(S))}}return D.push(x.length),new i({values:x,index:E,ptr:D,size:[g,v]})},i.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return Rt(t,this._size[0]),Rt(e,this._size[0]),i._swapRows(t,e,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(t,e,r,n,i){for(var a=n[t],o=n[t+1],s=a;s<o;s++)i(r[s],e[s])},i._swapRows=function(t,e,r,n,i,a){for(var s=0;s<r;s++){var u=a[s],f=a[s+1],c=o(t,u,f,i),h=o(e,u,f,i);if(c<f&&h<f&&i[c]===t&&i[h]===e){if(n){var l=n[c];n[c]=n[h],n[h]=l}}else if(c<f&&i[c]===t&&(h>=f||i[h]!==e)){var p=n?n[c]:void 0;i.splice(h,0,e),n&&n.splice(h,0,p),i.splice(h<=c?c+1:c,1),n&&n.splice(h<=c?c+1:c,1)}else if(h<f&&i[h]===e&&(c>=f||i[c]!==t)){var d=n?n[h]:void 0;i.splice(c,0,t),n&&n.splice(c,0,d),i.splice(c<=h?h+1:h,1),n&&n.splice(c<=h?h+1:h,1)}}},i}),{isClass:!0});te(\"bin\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"bin\",{\"number | BigNumber\":function(t){return r(t,{notation:\"bin\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"bin\",wordSize:e})}})}));var bn=\"matrix\",gn=te(bn,[\"typed\",\"Matrix\",\"DenseMatrix\",\"SparseMatrix\"],(function(t){var e=t.typed,r=(t.Matrix,t.DenseMatrix),n=t.SparseMatrix;return e(bn,{\"\":function(){return i([])},string:function(t){return i([],t)},\"string, string\":function(t,e){return i([],t,e)},Array:function(t){return i(t)},Matrix:function(t){return i(t,t.storage())},\"Array | Matrix, string\":i,\"Array | Matrix, string, string\":i});function i(t,e,i){if(\"dense\"===e||\"default\"===e||void 0===e)return new r(t,i);if(\"sparse\"===e)return new n(t,i);throw new TypeError(\"Unknown matrix type \"+JSON.stringify(e)+\".\")}}));function vn(){throw new Error('No \"bignumber\" implementation available')}function wn(){throw new Error('No \"matrix\" implementation available')}var _n=\"transpose\",xn=te(_n,[\"typed\",\"matrix\"],(function(t){var e=t.typed,r=t.matrix;return e(_n,{Array:function(t){return n(r(t)).valueOf()},Matrix:n,any:V});function n(t){var e,r=t.size();switch(r.length){case 1:e=t.clone();break;case 2:var n=r[0],i=r[1];if(0===i)throw new RangeError(\"Cannot transpose a 2D matrix with no columns (size: \"+St(r)+\")\");switch(t.storage()){case\"dense\":e=function(t,e,r){for(var n,i=t._data,a=[],o=0;o<r;o++){n=a[o]=[];for(var s=0;s<e;s++)n[s]=V(i[s][o])}return t.createDenseMatrix({data:a,size:[r,e],datatype:t._datatype})}(t,n,i);break;case\"sparse\":e=function(t,e,r){for(var n,i,a,o=t._values,s=t._index,u=t._ptr,f=o?[]:void 0,c=[],h=[],l=[],p=0;p<e;p++)l[p]=0;for(n=0,i=s.length;n<i;n++)l[s[n]]++;for(var d=0,m=0;m<e;m++)h.push(d),d+=l[m],l[m]=h[m];for(h.push(d),a=0;a<r;a++)for(var y=u[a],b=u[a+1],g=y;g<b;g++){var v=l[s[g]]++;c[v]=a,o&&(f[v]=V(o[g]))}return t.createSparseMatrix({values:f,index:c,ptr:h,size:[r,e],datatype:t._datatype})}(t,n,i)}break;default:throw new RangeError(\"Matrix must be a vector or two dimensional (size: \"+St(r)+\")\")}return e}})),En=\"concat\",Dn=te(En,[\"typed\",\"matrix\",\"isInteger\"],(function(t){var e=t.typed,r=t.matrix,n=t.isInteger;return e(En,{\"...Array | Matrix | number | BigNumber\":function(t){var e,i,a=t.length,o=-1,f=!1,c=[];for(e=0;e<a;e++){var h=t[e];if(d(h)&&(f=!0),s(h)||u(h)){if(e!==a-1)throw new Error(\"Dimension must be specified as last argument\");if(i=o,o=h.valueOf(),!n(o))throw new TypeError(\"Integer number expected for dimension\");if(o<0||e>0&&o>i)throw new It(o,i+1)}else{var l=V(h).valueOf(),p=Lt(l);if(c[e]=l,i=o,o=p.length-1,e>0&&o!==i)throw new Ot(i+1,o+1)}}if(0===c.length)throw new SyntaxError(\"At least one matrix expected\");for(var m=c.shift();c.length;)m=Jt(m,c.shift(),o);return f?r(m):m},\"...string\":function(t){return t.join(\"\")}})})),kn=te(\"matAlgo03xDSf\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,n,i){var a=t._data,o=t._size,s=t._datatype,u=r._values,f=r._index,c=r._ptr,h=r._size,l=r._datatype;if(o.length!==h.length)throw new Ot(o.length,h.length);if(o[0]!==h[0]||o[1]!==h[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+o+\") must match Matrix B (\"+h+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var p,d=o[0],m=o[1],y=0,b=n;\"string\"==typeof s&&s===l&&(p=s,y=e.convert(0,p),b=e.find(n,[p,p]));for(var g=[],v=0;v<d;v++)g[v]=[];for(var w=[],_=[],x=0;x<m;x++){for(var E=x+1,D=c[x],k=c[x+1],A=D;A<k;A++){var S=f[A];w[S]=i?b(u[A],a[S][x]):b(a[S][x],u[A]),_[S]=E}for(var M=0;M<d;M++)_[M]===E?g[M][x]=w[M]:g[M][x]=i?b(y,a[M][x]):b(a[M][x],y)}return t.createDenseMatrix({data:g,size:[d,m],datatype:p})}})),An=te(\"matAlgo07xSSf\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,i,a){var o=t._size,s=t._datatype,u=i._size,f=i._datatype;if(o.length!==u.length)throw new Ot(o.length,u.length);if(o[0]!==u[0]||o[1]!==u[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+o+\") must match Matrix B (\"+u+\")\");var c,h,l,p=o[0],d=o[1],m=0,y=a;\"string\"==typeof s&&s===f&&(c=s,m=e.convert(0,c),y=e.find(a,[c,c]));var b=[];for(h=0;h<p;h++)b[h]=[];var g=[],v=[],w=[],_=[];for(l=0;l<d;l++){var x=l+1;for(n(t,l,w,g,x),n(i,l,_,v,x),h=0;h<p;h++){var E=w[h]===x?g[h]:m,D=_[h]===x?v[h]:m;b[h][l]=y(E,D)}}return new r({data:b,size:[p,d],datatype:c})};function n(t,e,r,n,i){for(var a=t._values,o=t._index,s=t._ptr,u=s[e],f=s[e+1];u<f;u++){var c=o[u];r[c]=i,n[c]=a[u]}}})),Sn=te(\"matAlgo12xSfs\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,n,i,a){var o=t._values,s=t._index,u=t._ptr,f=t._size,c=t._datatype;if(!o)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var h,l=f[0],p=f[1],d=i;\"string\"==typeof c&&(h=c,n=e.convert(n,h),d=e.find(i,[h,h]));for(var m=[],y=[],b=[],g=0;g<p;g++){for(var v=g+1,w=u[g],_=u[g+1],x=w;x<_;x++){var E=s[x];y[E]=o[x],b[E]=v}for(var D=0;D<l;D++)0===g&&(m[D]=[]),b[D]===v?m[D][g]=a?d(n,y[D]):d(y[D],n):m[D][g]=a?d(n,0):d(0,n)}return new r({data:m,size:[l,p],datatype:h})}})),Mn=te(\"matAlgo13xDD\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,i){var a,o=t._data,s=t._size,u=t._datatype,f=n._data,c=n._size,h=n._datatype,l=[];if(s.length!==c.length)throw new Ot(s.length,c.length);for(var p=0;p<s.length;p++){if(s[p]!==c[p])throw new RangeError(\"Dimension mismatch. Matrix A (\"+s+\") must match Matrix B (\"+c+\")\");l[p]=s[p]}var d=i;\"string\"==typeof u&&u===h&&(a=u,d=e.find(i,[a,a]));var m=l.length>0?r(d,0,l,l[0],o,f):[];return t.createDenseMatrix({data:m,size:l,datatype:a})};function r(t,e,n,i,a,o){var s=[];if(e===n.length-1)for(var u=0;u<i;u++)s[u]=t(a[u],o[u]);else for(var f=0;f<i;f++)s[f]=r(t,e+1,n,n[e+1],a[f],o[f]);return s}})),Fn=te(\"matAlgo14xDs\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,i,a){var o,s=t._data,u=t._size,f=t._datatype,c=i;\"string\"==typeof f&&(o=f,n=e.convert(n,o),c=e.find(i,[o,o]));var h=u.length>0?r(c,0,u,u[0],s,n,a):[];return t.createDenseMatrix({data:h,size:V(u),datatype:o})};function r(t,e,n,i,a,o,s){var u=[];if(e===n.length-1)for(var f=0;f<i;f++)u[f]=s?t(o,a[f]):t(a[f],o);else for(var c=0;c<i;c++)u[c]=r(t,e+1,n,n[e+1],a[c],o,s);return u}}));function Cn(t){return function(t){if(Array.isArray(t))return Bn(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Bn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bn(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Bn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var On=te(\"broadcast\",[\"concat\"],(function(t){var e=t.concat;return function(t,e){var i=Math.max(t._size.length,e._size.length);if(t._size.length===e._size.length&&t._size.every((function(t,r){return t===e._size[r]})))return[t,e];for(var a=r(t._size,i,0),o=r(e._size,i,0),s=[],u=0;u<i;u++)s[u]=Math.max(a[u],o[u]);Qt(a,s),Qt(o,s);var f=t.clone(),c=e.clone();f._size.length<i?f.reshape(r(f._size,i,1)):c._size.length<i&&c.reshape(r(c._size,i,1));for(var h=0;h<i;h++)f._size[h]<s[h]&&(f=n(f,s[h],h)),c._size[h]<s[h]&&(c=n(c,s[h],h));return[f,c]};function r(t,e,r){return[].concat(Cn(Array(e-t.length).fill(r)),Cn(t))}function n(t,r,n){return e.apply(void 0,Cn(Array(r).fill(t)).concat([n]))}}));function In(t){return function(t){if(Array.isArray(t))return Tn(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Tn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tn(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Tn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Pn=te(\"matrixAlgorithmSuite\",[\"typed\",\"matrix\",\"concat\"],(function(t){var e=t.typed,r=t.matrix,n=t.concat,i=Mn({typed:e}),a=Fn({typed:e}),o=On({concat:n});return function(t){var n,s=t.elop,u=t.SD||t.DS;s?(n={\"DenseMatrix, DenseMatrix\":function(t,e){return i.apply(void 0,In(o(t,e)).concat([s]))},\"Array, Array\":function(t,e){return i.apply(void 0,In(o(r(t),r(e))).concat([s])).valueOf()},\"Array, DenseMatrix\":function(t,e){return i.apply(void 0,In(o(r(t),e)).concat([s]))},\"DenseMatrix, Array\":function(t,e){return i.apply(void 0,In(o(t,r(e))).concat([s]))}},t.SS&&(n[\"SparseMatrix, SparseMatrix\"]=function(e,r){return t.SS.apply(t,In(o(e,r)).concat([s,!1]))}),t.DS&&(n[\"DenseMatrix, SparseMatrix\"]=function(e,r){return t.DS.apply(t,In(o(e,r)).concat([s,!1]))},n[\"Array, SparseMatrix\"]=function(e,n){return t.DS.apply(t,In(o(r(e),n)).concat([s,!1]))}),u&&(n[\"SparseMatrix, DenseMatrix\"]=function(t,e){return u.apply(void 0,In(o(e,t)).concat([s,!0]))},n[\"SparseMatrix, Array\"]=function(t,e){return u.apply(void 0,In(o(r(e),t)).concat([s,!0]))})):(n={\"DenseMatrix, DenseMatrix\":e.referToSelf((function(t){return function(e,r){return i.apply(void 0,In(o(e,r)).concat([t]))}})),\"Array, Array\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,In(o(r(e),r(n))).concat([t])).valueOf()}})),\"Array, DenseMatrix\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,In(o(r(e),n)).concat([t]))}})),\"DenseMatrix, Array\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,In(o(e,r(n))).concat([t]))}}))},t.SS&&(n[\"SparseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(r,n){return t.SS.apply(t,In(o(r,n)).concat([e,!1]))}}))),t.DS&&(n[\"DenseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(r,n){return t.DS.apply(t,In(o(r,n)).concat([e,!1]))}})),n[\"Array, SparseMatrix\"]=e.referToSelf((function(e){return function(n,i){return t.DS.apply(t,In(o(r(n),i)).concat([e,!1]))}}))),u&&(n[\"SparseMatrix, DenseMatrix\"]=e.referToSelf((function(t){return function(e,r){return u.apply(void 0,In(o(r,e)).concat([t,!0]))}})),n[\"SparseMatrix, Array\"]=e.referToSelf((function(t){return function(e,n){return u.apply(void 0,In(o(r(n),e)).concat([t,!0]))}}))));var f=t.scalar||\"any\";(t.Ds||t.Ss)&&(s?(n[\"DenseMatrix,\"+f]=function(t,e){return a(t,e,s,!1)},n[f+\", DenseMatrix\"]=function(t,e){return a(e,t,s,!0)},n[\"Array,\"+f]=function(t,e){return a(r(t),e,s,!1).valueOf()},n[f+\", Array\"]=function(t,e){return a(r(e),t,s,!0).valueOf()}):(n[\"DenseMatrix,\"+f]=e.referToSelf((function(t){return function(e,r){return a(e,r,t,!1)}})),n[f+\", DenseMatrix\"]=e.referToSelf((function(t){return function(e,r){return a(r,e,t,!0)}})),n[\"Array,\"+f]=e.referToSelf((function(t){return function(e,n){return a(r(e),n,t,!1).valueOf()}})),n[f+\", Array\"]=e.referToSelf((function(t){return function(e,n){return a(r(n),e,t,!0).valueOf()}}))));var c=void 0!==t.sS?t.sS:t.Ss;return s?(t.Ss&&(n[\"SparseMatrix,\"+f]=function(e,r){return t.Ss(e,r,s,!1)}),c&&(n[f+\", SparseMatrix\"]=function(t,e){return c(e,t,s,!0)})):(t.Ss&&(n[\"SparseMatrix,\"+f]=e.referToSelf((function(e){return function(r,n){return t.Ss(r,n,e,!1)}}))),c&&(n[f+\", SparseMatrix\"]=e.referToSelf((function(t){return function(e,r){return c(r,e,t,!0)}})))),s&&s.signatures&&J(n,s.signatures),n}})),Ln=\"equal\",Nn=(te(Ln,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return e(Ln,{\"any, any\":function(t,e){return null===t?null===e:null===e?null===t:void 0===t?void 0===e:void 0===e?void 0===t:r(t,e)}})})),\"largerEq\"),jn=te(Nn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,a=t.concat,o=kn({typed:e}),s=An({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),f=Pn({typed:e,matrix:n,concat:a}),c=zr({typed:e});return e(Nn,Rn({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t>=e},\"BigNumber, BigNumber\":function(t,e){return t.gte(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return-1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,f({SS:s,DS:o,Ss:u}))})),Rn=te(Nn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Nn,{\"number, number\":function(t,e){return t>=e||gt(t,e,r.epsilon)}})})),zn=te(\"matAlgo01xDSid\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,n,i){var a=t._data,o=t._size,s=t._datatype,u=r._values,f=r._index,c=r._ptr,h=r._size,l=r._datatype;if(o.length!==h.length)throw new Ot(o.length,h.length);if(o[0]!==h[0]||o[1]!==h[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+o+\") must match Matrix B (\"+h+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var p,d,m=o[0],y=o[1],b=\"string\"==typeof s&&s===l?s:void 0,g=b?e.find(n,[b,b]):n,v=[];for(p=0;p<m;p++)v[p]=[];var w=[],_=[];for(d=0;d<y;d++){for(var x=d+1,E=c[d],D=c[d+1],k=E;k<D;k++)w[p=f[k]]=i?g(u[k],a[p][d]):g(a[p][d],u[k]),_[p]=x;for(p=0;p<m;p++)_[p]===x?v[p][d]=w[p]:v[p][d]=a[p][d]}return t.createDenseMatrix({data:v,size:[m,y],datatype:b})}})),Un=te(\"matAlgo10xSids\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,n,i,a){var o=t._values,s=t._index,u=t._ptr,f=t._size,c=t._datatype;if(!o)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var h,l=f[0],p=f[1],d=i;\"string\"==typeof c&&(h=c,n=e.convert(n,h),d=e.find(i,[h,h]));for(var m=[],y=[],b=[],g=0;g<p;g++){for(var v=g+1,w=u[g],_=u[g+1],x=w;x<_;x++){var E=s[x];y[E]=o[x],b[E]=v}for(var D=0;D<l;D++)0===g&&(m[D]=[]),b[D]===v?m[D][g]=a?d(n,y[D]):d(y[D],n):m[D][g]=n}return new r({data:m,size:[l,p],datatype:h})}}));function Gn(t,e,r,n){if(!(this instanceof Gn))throw new SyntaxError(\"Constructor must be called with the new operator\");this.fn=t,this.count=e,this.min=r,this.max=n,this.message=\"Wrong number of arguments in function \"+t+\" (\"+e+\" provided, \"+r+(null!=n?\"-\"+n:\"\")+\" expected)\",this.stack=(new Error).stack}Gn.prototype=new Error,Gn.prototype.constructor=Error,Gn.prototype.name=\"ArgumentsError\",Gn.prototype.isArgumentsError=!0;var Hn=\"smaller\",Zn=te(Hn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,a=t.concat,o=kn({typed:e}),s=An({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),f=Pn({typed:e,matrix:n,concat:a}),c=zr({typed:e});return e(Hn,qn({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t<e},\"BigNumber, BigNumber\":function(t,e){return t.lt(e)&&!Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return-1===t.compare(e)},\"Complex, Complex\":function(t,e){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,f({SS:s,DS:o,Ss:u}))})),qn=te(Hn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Hn,{\"number, number\":function(t,e){return t<e&&!gt(t,e,r.epsilon)}})})),Wn=\"unequal\",Yn=(te(Wn,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return e(Wn,{\"any, any\":function(t,e){return null===t?null!==e:null===e?null!==t:void 0===t?void 0!==e:void 0===e?void 0!==t:!r(t,e)}})})),te(\"matAlgo04xSidSid\",[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return function(t,n,i){var a=t._values,o=t._index,s=t._ptr,u=t._size,f=t._datatype,c=n._values,h=n._index,l=n._ptr,p=n._size,d=n._datatype;if(u.length!==p.length)throw new Ot(u.length,p.length);if(u[0]!==p[0]||u[1]!==p[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+u+\") must match Matrix B (\"+p+\")\");var m,y=u[0],b=u[1],g=r,v=0,w=i;\"string\"==typeof f&&f===d&&(m=f,g=e.find(r,[m,m]),v=e.convert(0,m),w=e.find(i,[m,m]));var _,x,E,D,k,A=a&&c?[]:void 0,S=[],M=[],F=a&&c?[]:void 0,C=a&&c?[]:void 0,B=[],O=[];for(x=0;x<b;x++){M[x]=S.length;var I=x+1;for(D=s[x],k=s[x+1],E=D;E<k;E++)_=o[E],S.push(_),B[_]=I,F&&(F[_]=a[E]);for(D=l[x],k=l[x+1],E=D;E<k;E++)if(B[_=h[E]]===I){if(F){var T=w(F[_],c[E]);g(T,v)?B[_]=null:F[_]=T}}else S.push(_),O[_]=I,C&&(C[_]=c[E]);if(F&&C)for(E=M[x];E<S.length;)B[_=S[E]]===I?(A[E]=F[_],E++):O[_]===I?(A[E]=C[_],E++):S.splice(E,1)}return M[b]=S.length,t.createSparseMatrix({values:A,index:S,ptr:M,size:[y,b],datatype:m})}}))),Vn=te(\"add\",[\"typed\",\"matrix\",\"addScalar\",\"equalScalar\",\"DenseMatrix\",\"SparseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.matrix,n=t.addScalar,i=t.equalScalar,a=t.DenseMatrix,o=(t.SparseMatrix,t.concat),s=zn({typed:e}),u=Yn({typed:e,equalScalar:i}),f=Un({typed:e,DenseMatrix:a}),c=Pn({typed:e,matrix:r,concat:o});return e(\"add\",{\"any, any\":n,\"any, any, ...any\":e.referToSelf((function(t){return function(e,r,n){for(var i=t(e,r),a=0;a<n.length;a++)i=t(i,n[a]);return i}}))},c({elop:n,DS:s,SS:u,Ss:f}))}));Bt.signature=\"any, any\";var Xn=\"number | BigNumber | Fraction | Matrix | Array\";\"\".concat(Xn,\", \").concat(Xn,\", ...\").concat(Xn);var Jn=te(\"ImmutableDenseMatrix\",[\"smaller\",\"DenseMatrix\"],(function(t){var e=t.smaller,r=t.DenseMatrix;function n(t,e){if(!(this instanceof n))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!l(e))throw new Error(\"Invalid datatype: \"+e);if(d(t)||p(t)){var i=new r(t,e);this._data=i._data,this._size=i._size,this._datatype=i._datatype,this._min=null,this._max=null}else if(t&&p(t.data)&&p(t.size))this._data=t.data,this._size=t.size,this._datatype=t.datatype,this._min=void 0!==t.min?t.min:null,this._max=void 0!==t.max?t.max:null;else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._data=[],this._size=[0],this._datatype=e,this._min=null,this._max=null}}return n.prototype=new r,n.prototype.type=\"ImmutableDenseMatrix\",n.prototype.isImmutableDenseMatrix=!0,n.prototype.subset=function(t){switch(arguments.length){case 1:var e=r.prototype.subset.call(this,t);return d(e)?new n({data:e._data,size:e._size,datatype:e._datatype}):e;case 2:case 3:throw new Error(\"Cannot invoke set subset on an Immutable Matrix instance\");default:throw new SyntaxError(\"Wrong number of arguments\")}},n.prototype.set=function(){throw new Error(\"Cannot invoke set on an Immutable Matrix instance\")},n.prototype.resize=function(){throw new Error(\"Cannot invoke resize on an Immutable Matrix instance\")},n.prototype.reshape=function(){throw new Error(\"Cannot invoke reshape on an Immutable Matrix instance\")},n.prototype.clone=function(){return new n({data:V(this._data),size:V(this._size),datatype:this._datatype})},n.prototype.toJSON=function(){return{mathjs:\"ImmutableDenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},n.fromJSON=function(t){return new n(t)},n.prototype.swapRows=function(){throw new Error(\"Cannot invoke swapRows on an Immutable Matrix instance\")},n.prototype.min=function(){if(null===this._min){var t=null;this.forEach((function(r){(null===t||e(r,t))&&(t=r)})),this._min=null!==t?t:void 0}return this._min},n.prototype.max=function(){if(null===this._max){var t=null;this.forEach((function(r){(null===t||e(t,r))&&(t=r)})),this._max=null!==t?t:void 0}return this._max},n}),{isClass:!0}),Kn=te(\"Index\",[\"ImmutableDenseMatrix\",\"getMatrixDataType\"],(function(t){var e=t.ImmutableDenseMatrix,r=t.getMatrixDataType;function n(t){if(!(this instanceof n))throw new SyntaxError(\"Constructor must be called with the new operator\");this._dimensions=[],this._sourceSize=[],this._isScalar=!0;for(var e=0,a=arguments.length;e<a;e++){var o=arguments[e],s=p(o),u=d(o),f=null;if(g(o))this._dimensions.push(o),this._isScalar=!1;else if(s||u){var c=void 0;\"boolean\"===r(o)?(s&&(c=i(Qn(o).valueOf())),u&&(c=i(Qn(o._data).valueOf())),f=o.valueOf().length):c=i(o.valueOf()),this._dimensions.push(c);var h=c.size();1===h.length&&1===h[0]&&null===f||(this._isScalar=!1)}else if(\"number\"==typeof o)this._dimensions.push(i([o]));else{if(\"string\"!=typeof o)throw new TypeError(\"Dimension must be an Array, Matrix, number, string, or Range\");this._dimensions.push(o)}this._sourceSize.push(f)}}function i(t){for(var r=0,n=t.length;r<n;r++)if(\"number\"!=typeof t[r]||!it(t[r]))throw new TypeError(\"Index parameters must be positive integer numbers\");return new e(t)}return n.prototype.type=\"Index\",n.prototype.isIndex=!0,n.prototype.clone=function(){var t=new n;return t._dimensions=V(this._dimensions),t._isScalar=this._isScalar,t._sourceSize=this._sourceSize,t},n.create=function(t){var e=new n;return n.apply(e,t),e},n.prototype.size=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?1:n.size()[0]}return t},n.prototype.max=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?n:n.max()}return t},n.prototype.min=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?n:n.min()}return t},n.prototype.forEach=function(t){for(var e=0,r=this._dimensions.length;e<r;e++)t(this._dimensions[e],e,this)},n.prototype.dimension=function(t){return this._dimensions[t]||null},n.prototype.isObjectProperty=function(){return 1===this._dimensions.length&&\"string\"==typeof this._dimensions[0]},n.prototype.getObjectProperty=function(){return this.isObjectProperty()?this._dimensions[0]:null},n.prototype.isScalar=function(){return this._isScalar},n.prototype.toArray=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t.push(\"string\"==typeof n?n:n.toArray())}return t},n.prototype.valueOf=n.prototype.toArray,n.prototype.toString=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];\"string\"==typeof n?t.push(JSON.stringify(n)):t.push(n.toString())}return\"[\"+t.join(\", \")+\"]\"},n.prototype.toJSON=function(){return{mathjs:\"Index\",dimensions:this._dimensions}},n.fromJSON=function(t){return n.create(t.dimensions)},n}),{isClass:!0});function Qn(t){var e=[];return t.forEach((function(t,r){t&&e.push(r)})),e}var $n=\"larger\",ti=te($n,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,a=t.concat,o=kn({typed:e}),s=An({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),f=Pn({typed:e,matrix:n,concat:a}),c=zr({typed:e});return e($n,ei({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t>e},\"BigNumber, BigNumber\":function(t,e){return t.gt(e)&&!Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return 1===t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,f({SS:s,DS:o,Ss:u}))})),ei=te($n,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e($n,{\"number, number\":function(t,e){return t>e&&!gt(t,e,r.epsilon)}})}));r(22);var ri=\"smallerEq\",ni=te(ri,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,a=t.concat,o=kn({typed:e}),s=An({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),f=Pn({typed:e,matrix:n,concat:a}),c=zr({typed:e});return e(ri,ii({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t<=e},\"BigNumber, BigNumber\":function(t,e){return t.lte(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return 1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,f({SS:s,DS:o,Ss:u}))})),ii=te(ri,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(ri,{\"number, number\":function(t,e){return t<=e||gt(t,e,r.epsilon)}})})),ai=\"range\",oi=te(ai,[\"typed\",\"config\",\"?matrix\",\"?bignumber\",\"smaller\",\"smallerEq\",\"larger\",\"largerEq\",\"add\",\"isPositive\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.bignumber,a=t.smaller,o=t.smallerEq,s=t.larger,u=t.largerEq,f=t.add,c=t.isPositive;return e(ai,{string:l,\"string, boolean\":l,\"number, number\":function(t,e){return h(p(t,e,1,!1))},\"number, number, number\":function(t,e,r){return h(p(t,e,r,!1))},\"number, number, boolean\":function(t,e,r){return h(p(t,e,1,r))},\"number, number, number, boolean\":function(t,e,r,n){return h(p(t,e,r,n))},\"BigNumber, BigNumber\":function(t,e){return h(p(t,e,new(0,t.constructor)(1),!1))},\"BigNumber, BigNumber, BigNumber\":function(t,e,r){return h(p(t,e,r,!1))},\"BigNumber, BigNumber, boolean\":function(t,e,r){return h(p(t,e,new(0,t.constructor)(1),r))},\"BigNumber, BigNumber, BigNumber, boolean\":function(t,e,r,n){return h(p(t,e,r,n))},\"Unit, Unit, Unit\":function(t,e,r){return h(p(t,e,r,!1))},\"Unit, Unit, Unit, boolean\":function(t,e,r,n){return h(p(t,e,r,n))}});function h(t){return\"Matrix\"===r.matrix?n?n(t):wn():t}function l(t,e){var n=function(t){var e=t.split(\":\"),r=e.map((function(t){return Number(t)}));if(r.some((function(t){return isNaN(t)})))return null;switch(r.length){case 2:return{start:r[0],end:r[1],step:1};case 3:return{start:r[0],end:r[2],step:r[1]};default:return null}}(t);if(!n)throw new SyntaxError('String \"'+t+'\" is no valid range');return\"BigNumber\"===r.number?(void 0===i&&vn(),h(p(i(n.start),i(n.end),i(n.step)))):h(p(n.start,n.end,n.step,e))}function p(t,e,r,n){for(var i=[],h=c(r)?n?o:a:n?u:s,l=t;h(l,e);)i.push(l),l=f(l,r);return i}})),si=te(\"row\",[\"typed\",\"Index\",\"matrix\",\"range\"],(function(t){var e=t.typed,r=t.Index,n=t.matrix,i=t.range;return e(\"row\",{\"Matrix, number\":a,\"Array, number\":function(t,e){return a(n(V(t)),e).valueOf()}});function a(t,e){if(2!==t.size().length)throw new Error(\"Only two dimensional matrix is supported\");Rt(e,t.size()[0]);var a=i(0,t.size()[1]),o=new r(e,a),s=t.subset(o);return d(s)?s:n([[s]])}}));r(44);var ui=re({config:et}),fi=oe({}),ci=ye({}),hi=be({}),li=xe({Matrix:hi}),pi=Re({BigNumber:ui,Complex:fi,DenseMatrix:li,Fraction:ci}),di=Sr({typed:pi}),mi=Mr({BigNumber:ui,typed:pi}),yi=Gr({config:et,typed:pi}),bi=Zr({typed:pi}),gi=Wr({typed:pi}),vi=$r({typed:pi}),wi=yn({Matrix:hi,equalScalar:yi,typed:pi}),_i=gn({DenseMatrix:li,Matrix:hi,SparseMatrix:wi,typed:pi}),xi=xn({matrix:_i,typed:pi}),Ei=Dn({isInteger:gi,matrix:_i,typed:pi}),Di=jn({DenseMatrix:li,concat:Ei,config:et,matrix:_i,typed:pi}),ki=Zn({DenseMatrix:li,concat:Ei,config:et,matrix:_i,typed:pi}),Ai=Vn({DenseMatrix:li,SparseMatrix:wi,addScalar:di,concat:Ei,equalScalar:yi,matrix:_i,typed:pi}),Si=Kn({ImmutableDenseMatrix:Jn({DenseMatrix:li,smaller:ki}),getMatrixDataType:bi}),Mi=ti({DenseMatrix:li,concat:Ei,config:et,matrix:_i,typed:pi}),Fi=ni({DenseMatrix:li,concat:Ei,config:et,matrix:_i,typed:pi}),Ci=oi({bignumber:mi,matrix:_i,add:Ai,config:et,isPositive:vi,larger:Mi,largerEq:Di,smaller:ki,smallerEq:Fi,typed:pi}),Bi=si({Index:Si,matrix:_i,range:Ci,typed:pi})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){\"use strict\";r.r(e);var n=r(3);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function a(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},u=o.iterator||\"@@iterator\",f=o.asyncIterator||\"@@asyncIterator\",c=o.toStringTag||\"@@toStringTag\";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new O(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var d=\"suspendedStart\",m=\"suspendedYield\",y=\"executing\",b=\"completed\",g={};function v(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,D=E&&E(E(I([])));D&&D!==r&&n.call(D,u)&&(x=D);var k=_.prototype=v.prototype=Object.create(x);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(a,o,s,u){var f=p(t[a],t,o);if(\"throw\"!==f.type){var c=f.arg,h=c.value;return h&&\"object\"==i(h)&&n.call(h,\"__await\")?e.resolve(h.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r(\"throw\",t,s,u)}))}u(f.arg)}var o;a(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,r,n){var i=d;return function(a,o){if(i===y)throw Error(\"Generator is already running\");if(i===b){if(\"throw\"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=F(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=b,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=y;var f=p(e,r,n);if(\"normal\"===f.type){if(i=n.done?b:m,f.arg===g)continue;return{value:f.arg,done:n.done}}\"throw\"===f.type&&(i=b,n.method=\"throw\",n.arg=f.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,F(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var a=p(i,e.iterator,r.arg);if(\"throw\"===a.type)return r.method=\"throw\",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):o:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(i(e)+\" is not iterable\")}return w.prototype=_,a(k,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=h(_,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),h(S.prototype,f,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new S(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),h(k,c,\"Generator\"),h(k,u,(function(){return this})),h(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return i(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),f=n.call(o,\"finallyLoc\");if(u&&f){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!f)throw Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var a=i;break}}a&&(\"break\"===t||\"continue\"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method=\"next\",this.next=a.finallyLoc,g):this.complete(o)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;B(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function u(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){u(a,n,i,o,s,\"next\",t)}function s(t){u(a,n,i,o,s,\"throw\",t)}o(void 0)}))}}f(s().mark((function t(){var e,r,i,o,u,c,h,l,p,d,m,y,b,g,v,w,_,x,E,D,k,A;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:x=function(){return(x=f(s().mark((function t(){var e,r,i,a;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=void 0,t.next=3,n.a.Dfj0D({key:\"K17cl\"});case 3:if(t.t1=e=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===e;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=e.value;case 12:if(\"w184i\"!==t.t2){t.next=35;break}return t.prev=14,t.next=17,m();case 17:return i=t.sent,t.next=20,b();case 20:if(a=t.sent,r=!i&&!a,!(r=!0)){t.next=26;break}return t.next=26,n.a.Mc76({key:\"K17cl\",value:\"N18b2N\"});case 26:t.next=33;break;case 28:return t.prev=28,t.t3=t.catch(14),r=!0,t.next=33,n.a.Mc76({key:\"K17cl\",value:\"N18b2N\"});case 33:return t.next=35,n.a.Bi9dF(800);case 35:return t.abrupt(\"return\",r);case 36:case\"end\":return t.stop()}}),t,null,[[14,28]])})))).apply(this,arguments)},_=function(){return x.apply(this,arguments)},w=function(){return w=f(s().mark((function t(){var r,i,a,o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=void 0,t.next=3,n.a.Dfj0D({key:\"K17cl\"});case 3:if(t.t1=r=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===r;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=r.value;case 12:if(\"U181p\"!==t.t2){t.next=43;break}return t.prev=15,t.next=18,n.a.Dfj0D({key:\"CSLid95\"});case 18:if(t.t4=a=t.sent,t.t3=null===t.t4,t.t3){t.next=22;break}t.t3=void 0===a;case 22:if(!t.t3){t.next=26;break}t.t5=void 0,t.next=27;break;case 26:t.t5=a.value;case 27:return o=t.t5,t.next=31,e(o);case 31:return i=!0,t.next=35,n.a.Mc76({key:\"K17cl\",value:\"w184i\"});case 35:t.next=43;break;case 37:return t.prev=37,t.t6=t.catch(15),i=!1,t.next=43,n.a.Mc76({key:\"K17cl\",value:\"T189kV\"});case 43:return t.abrupt(\"return\",i);case 44:case\"end\":return t.stop()}}),t,null,[[15,37]])}))),w.apply(this,arguments)},v=function(){return w.apply(this,arguments)},g=function(){return(g=f(s().mark((function t(){var e,r,i,o,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=void 0,r=document.querySelectorAll('iframe[src*=\".hcaptcha.com/captcha/\"]'),i=!1,o=a(r),t.prev=4,o.s();case 6:if((u=o.n()).done){t.next=19;break}if(!((f=u.value).offsetHeight>200)){t.next=16;break}if(!n.a.Yej5(f)){t.next=14;break}return e=!0,t.next=13,n.a.Mc76({key:\"Ulk1\",value:e});case 13:return t.abrupt(\"return\",e);case 14:t.next=17;break;case 16:i=!0;case 17:t.next=6;break;case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(4),o.e(t.t0);case 24:return t.prev=24,o.f(),t.finish(24);case 27:if(!i){t.next=31;break}return e=!1,t.next=31,n.a.Mc76({key:\"Ulk1\",value:e});case 31:return t.abrupt(\"return\",e);case 32:case\"end\":return t.stop()}}),t,null,[[4,21,24,27]])})))).apply(this,arguments)},b=function(){return g.apply(this,arguments)},y=function(){return(y=f(s().mark((function t(){var e,r,i,o,u,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=void 0,r=document.querySelectorAll('iframe[src*=\".hcaptcha.com/captcha/\"]'),i=!1,o=a(r),t.prev=4,o.s();case 6:if((u=o.n()).done){t.next=19;break}if(!((f=u.value).offsetHeight<200)){t.next=17;break}if(!n.a.Yej5(f)){t.next=16;break}return e=!0,t.next=13,n.a.Mc76({key:\"Alic\",value:e});case 13:return t.abrupt(\"return\",e);case 16:i=!0;case 17:t.next=6;break;case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(4),o.e(t.t0);case 24:return t.prev=24,o.f(),t.finish(24);case 27:if(!i){t.next=32;break}return e=!1,t.next=32,n.a.Mc76({key:\"Alic\",value:e});case 32:return t.abrupt(\"return\",e);case 33:case\"end\":return t.stop()}}),t,null,[[4,21,24,27]])})))).apply(this,arguments)},m=function(){return y.apply(this,arguments)},d=function(){return(d=f(s().mark((function t(){var e,r,a,o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=void 0,t.next=3,n.a.Dfj0D({key:\"K17cl\"});case 3:if(t.t1=e=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===e;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=e.value;case 12:if(\"r186it\"!==t.t2){t.next=32;break}return t.prev=14,t.next=17,i();case 17:return a=t.sent,t.next=20,u();case 20:if(o=t.sent,!(r=!a&&!o)){t.next=25;break}return t.next=25,n.a.Mc76({key:\"K17cl\",value:\"N18b2N\"});case 25:t.next=32;break;case 27:return t.prev=27,t.t3=t.catch(14),r=!0,t.next=32,n.a.Mc76({key:\"K17cl\",value:\"N18b2N\"});case 32:return t.abrupt(\"return\",r);case 33:case\"end\":return t.stop()}}),t,null,[[14,27]])})))).apply(this,arguments)},p=function(){return d.apply(this,arguments)},l=function(){return l=f(s().mark((function t(){var r,i,a,o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=void 0,t.next=3,n.a.Dfj0D({key:\"K17cl\"});case 3:if(t.t1=r=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===r;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=r.value;case 12:if(\"w180a\"!==t.t2){t.next=40;break}return t.prev=14,t.next=17,n.a.Dfj0D({key:\"CSLid95\"});case 17:if(t.t4=a=t.sent,t.t3=null===t.t4,t.t3){t.next=21;break}t.t3=void 0===a;case 21:if(!t.t3){t.next=25;break}t.t5=void 0,t.next=26;break;case 25:t.t5=a.value;case 26:return o=t.t5,t.next=29,e(o);case 29:return i=!0,t.next=33,n.a.Mc76({key:\"K17cl\",value:\"r186it\"});case 33:t.next=40;break;case 35:return t.prev=35,t.t6=t.catch(14),i=!1,t.next=40,n.a.Mc76({key:\"K17cl\",value:\"T189kV\"});case 40:return t.abrupt(\"return\",i);case 41:case\"end\":return t.stop()}}),t,null,[[14,35]])}))),l.apply(this,arguments)},h=function(){return l.apply(this,arguments)},c=function(){return(c=f(s().mark((function t(){var e,r,i,o,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=document.querySelectorAll('iframe[src*=\"/recaptcha/api2/bframe\"], iframe[src*=\"/recaptcha/enterprise/bframe\"]'),r=void 0,i=a(e),t.prev=3,i.s();case 5:if((o=i.n()).done){t.next=14;break}if(u=o.value,!n.a.Yej5(u)){t.next=12;break}return r=!0,t.next=11,n.a.Mc76({key:\"TlefT\",value:r});case 11:return t.abrupt(\"return\",r);case 12:t.next=5;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(3),i.e(t.t0);case 19:return t.prev=19,i.f(),t.finish(19);case 22:if(!(e.length>0)){t.next=26;break}return r=!1,t.next=26,n.a.Mc76({key:\"TlefT\",value:r});case 26:return t.abrupt(\"return\",r);case 27:case\"end\":return t.stop()}}),t,null,[[3,16,19,22]])})))).apply(this,arguments)},u=function(){return c.apply(this,arguments)},o=function(){return(o=f(s().mark((function t(){var e,r,i,o,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=document.querySelectorAll('iframe[src*=\"/recaptcha/api2/anchor\"], iframe[src*=\"/recaptcha/enterprise/anchor\"]'),r=void 0,i=a(e),t.prev=3,i.s();case 5:if((o=i.n()).done){t.next=14;break}if(u=o.value,!n.a.Yej5(u)){t.next=12;break}return r=!0,t.next=11,n.a.Mc76({key:\"rld1r\",value:r});case 11:return t.abrupt(\"return\",r);case 12:t.next=5;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(3),i.e(t.t0);case 19:return t.prev=19,i.f(),t.finish(19);case 22:if(!(e.length>0)){t.next=26;break}return r=!1,t.next=26,n.a.Mc76({key:\"rld1r\",value:r});case 26:return t.abrupt(\"return\",r);case 27:case\"end\":return t.stop()}}),t,null,[[3,16,19,22]])})))).apply(this,arguments)},i=function(){return o.apply(this,arguments)},r=function(){return(r=f(s().mark((function t(e){var r,i,a,o,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!((null==e?void 0:e.length)>0)){t.next=32;break}r=0;case 2:if(!(r<e.length)){t.next=32;break}if(\"ck\"!==e[r].act){t.next=16;break}if(i=e[r].css,!(i=(i=(i=decodeURIComponent(i||\"\")).replace(/@\\d+/g,\"\")).replace(/#\\{([\\s\\S]*?)\\}#/g,\"\"))||\"\"===i){t.next=14;break}if(!(a=document.querySelector(i))){t.next=14;break}return t.next=13,n.a.Bc2bD(a);case 13:0;case 14:t.next=29;break;case 16:if(\"wt\"!==e[r].act){t.next=25;break}if(o=parseFloat(e[r].sec||\"3\"),u=parseFloat(e[r].rand||\"0\"),!(o>0)){t.next=22;break}return t.next=22,n.a.Bi9dF(1e3*o,1e3*u);case 22:0,t.next=29;break;case 25:if(\"at\"!==e[r].act){t.next=29;break}return t.next=28,n.a.qi5f();case 28:0;case 29:r++,t.next=2;break;case 32:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)},e=function(t){return r.apply(this,arguments)};case 18:if(null!==(E=chrome.runtime)&&void 0!==E&&E.id){t.next=24;break}return t.next=22,n.a.Bi9dF(5e3);case 22:return t.abrupt(\"continue\",18);case 24:return t.next=26,n.a.Bi9dF(900);case 26:return t.next=28,n.a.xehcz();case 28:if(t.t1=D=t.sent,t.t0=null===t.t1,t.t0){t.next=32;break}t.t0=void 0===D;case 32:if(!t.t0){t.next=36;break}t.t2=void 0,t.next=37;break;case 36:t.t2=D.value;case 37:if(t.t2){t.next=40;break}return t.abrupt(\"continue\",18);case 40:return t.next=42,n.a.VfeeX();case 42:if(t.t4=k=t.sent,t.t3=null===t.t4,t.t3){t.next=46;break}t.t3=void 0===k;case 46:if(!t.t3){t.next=50;break}t.t5=void 0,t.next=51;break;case 50:t.t5=k.value;case 51:return A=t.t5,t.prev=52,t.next=55,p();case 55:if(0!==A){t.next=59;break}return t.next=58,h();case 58:t.sent;case 59:return t.next=61,i();case 61:return t.sent,t.next=64,u();case 64:t.sent,t.next=70;break;case 67:t.prev=67,t.t6=t.catch(52);case 70:return t.prev=70,t.next=73,_();case 73:if(0!==A){t.next=77;break}return t.next=76,v();case 76:t.sent;case 77:return t.next=79,m();case 79:return t.sent,t.next=82,b();case 82:t.sent,t.next=88;break;case 85:t.prev=85,t.t7=t.catch(70);case 88:t.next=18;break;case 90:case\"end\":return t.stop()}}),t,null,[[52,67],[70,85]])})))()}]);"
  },
  {
    "path": "utils/hcaptchasolver/content/cloudflareDetector.js.LICENSE.txt",
    "content": "/*!\n   *  decimal.js v10.4.3\n   *  An arbitrary-precision Decimal type for JavaScript.\n   *  https://github.com/MikeMcl/decimal.js\n   *  Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>\n   *  MIT Licence\n   */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * Timm\n *\n * Immutability helpers with fast reads and acceptable writes.\n *\n * @copyright Guillermo Grau Panea 2016\n * @license MIT\n */\n\n/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\n\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n\n/**\n * @license Complex.js v2.1.1 12/05/2020\n *\n * Copyright (c) 2020, Robert Eisele (robert@xarg.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @license Fraction.js v4.3.0 20/08/2023\n * https://www.xarg.org/2014/03/rational-numbers-in-javascript/\n *\n * Copyright (c) 2023, Robert Eisele (robert@raw.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cie94.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ciede2000.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cmetric.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * common.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * constants.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ditherErrorDiffusionArray.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * euclidean.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * helper.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * hueStatistics.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * iq.ts - Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * manhattanNeuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * nearestColor.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * palette.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pngQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * point.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pointContainer.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2hsl.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ssim.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * wuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * MIT License\n *\n * Copyright 2015-2018 Igor Bezkrovnyi\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n *\n * riemersma.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * colorHistogram.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * neuquant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgbquant.ts - part of Image Quantization Library\n */\n"
  },
  {
    "path": "utils/hcaptchasolver/content/manageIndex.js",
    "content": "/*! For license information please see manageIndex.js.LICENSE.txt */\n!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,\"a\",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p=\"\",r(r.s=401)}([function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new F(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&o.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}r.d(e,\"a\",(function(){return a})),r.d(e,\"d\",(function(){return s})),r.d(e,\"b\",(function(){return u})),r.d(e,\"c\",(function(){return c}));var o=i().mark(c);function a(t){if(void 0===t)return!1;if(\"function\"!=typeof t)throw new TypeError(\"Callback must be a function\");return!0}function s(t,e){if(\"string\"==typeof t&&(t=new Error(t)),\"function\"==typeof e)return e.call(this,t);throw t}function u(t,e,r,n,i,o){e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i);for(var a=r;a<r+i;a++)for(var s=e;s<e+n;s++){var u=t.bitmap.width*a+s<<2;o.call(t,s,a,u)}return t}function c(t,e,r,n,a){var s,u,c;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e=Math.round(e),r=Math.round(r),n=Math.round(n),a=Math.round(a),s=r;case 5:if(!(s<r+a)){i.next=17;break}u=e;case 7:if(!(u<e+n)){i.next=14;break}return c=t.bitmap.width*s+u<<2,i.next=11,{x:u,y:s,idx:c,image:t};case 11:u++,i.next=7;break;case 14:s++,i.next=5;break;case 17:case\"end\":return i.stop()}}),o)}},,function(t,e,r){\"use strict\";(function(t){var n=r(120),i=r(67),o=r(121);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if(\"number\"==typeof t){if(\"string\"==typeof e)throw new Error(\"If encoding is specified then the first argument must be a string\");return l(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if(\"number\"==typeof e)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError(\"'offset' is out of bounds\");if(e.byteLength<r+(n||0))throw new RangeError(\"'length' is out of bounds\");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,r,n):\"string\"==typeof e?function(t,e,r){\"string\"==typeof r&&\"\"!==r||(r=\"utf8\");if(!u.isEncoding(r))throw new TypeError('\"encoding\" must be a valid string encoding');var n=0|d(e,r);t=s(t,n);var i=t.write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|p(e.length);return 0===(t=s(t,r)).length||e.copy(t,0,0,r),t}if(e){if(\"undefined\"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||\"length\"in e)return\"number\"!=typeof e.length||(n=e.length)!=n?s(t,0):h(t,e);if(\"Buffer\"===e.type&&o(e.data))return h(t,e.data)}var n;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(t,e)}function f(t){if(\"number\"!=typeof t)throw new TypeError('\"size\" argument must be a number');if(t<0)throw new RangeError('\"size\" argument must not be negative')}function l(t,e){if(f(e),t=s(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function h(t,e){var r=e.length<0?0:0|p(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=a())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+a().toString(16)+\" bytes\");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;\"string\"!=typeof t&&(t=\"\"+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":case void 0:return U(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return G(t).length;default:if(n)return U(t).length;e=(\"\"+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(e>>>=0))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return T(this,e,r);case\"utf8\":case\"utf-8\":return k(this,e,r);case\"ascii\":return M(this,e,r);case\"latin1\":case\"binary\":return C(this,e,r);case\"base64\":return D(this,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return O(this,e,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){if(0===t.length)return-1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if(\"string\"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if(\"number\"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw new TypeError(\"val must be string, number or Buffer\")}function v(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(t,o)===c(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var l=!0,h=0;h<u;h++)if(c(t,o+h)!==c(e,h)){l=!1;break}if(l)return o}return-1}function b(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError(\"Invalid hex string\");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function w(t,e,r,n){return H(U(e,t.length-r),t,r,n)}function _(t,e,r,n){return H(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return _(t,e,r,n)}function E(t,e,r,n){return H(G(e),t,r,n)}function A(t,e,r,n){return H(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function D(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function k(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,c=t[i],f=null,l=c>239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);var r=\"\",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=S));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&\"function\"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return f(e),e<=0?s(t,e):void 0!==r?\"string\"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return l(null,t)},u.allocUnsafeSlow=function(t){return l(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError(\"Arguments must be Buffers\");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('\"list\" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?\"\":0===arguments.length?k(this,0,t):m.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t=\"\",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString(\"hex\",0,r).match(/.{2}/g).join(\" \"),this.length>r&&(t+=\" ... \")),\"<Buffer \"+t+\">\"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError(\"out of range index\");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(n,i),f=t.slice(e,r),l=0;l<s;++l)if(c[l]!==f[l]){o=c[l],a=f[l];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n=\"utf8\",r=this.length,e=0;else if(void 0===r&&\"string\"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");e|=0,isFinite(r)?(r|=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var o=!1;;)switch(n){case\"hex\":return b(this,t,e,r);case\"utf8\":case\"utf-8\":return w(this,t,e,r);case\"ascii\":return _(this,t,e,r);case\"latin1\":case\"binary\":return x(this,t,e,r);case\"base64\":return E(this,t,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return A(this,t,e,r);default:if(o)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function M(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function C(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function T(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i=\"\",o=e;o<r;++o)i+=z(t[o]);return i}function O(t,e,r){for(var n=t.slice(e,r),i=\"\",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function F(t,e,r){if(t%1!=0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>r)throw new RangeError(\"Trying to access beyond buffer length\")}function B(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('\"value\" argument is out of bounds');if(r+n>t.length)throw new RangeError(\"Index out of range\")}function I(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function P(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function L(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function N(t,e,r,n,o){return o||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function j(t,e,r,n,o){return o||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||B(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||B(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):P(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):P(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return j(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return j(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if(\"string\"==typeof t){if(\"string\"==typeof e?(n=e,e=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&\"string\"!=typeof n)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!u.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n)}else\"number\"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError(\"Out of range index\");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),\"number\"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=u.isBuffer(t)?t:U(new u(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var R=/[^+\\/0-9A-Za-z-_]/g;function z(t){return t<16?\"0\"+t.toString(16):t.toString(16)}function U(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\\s+|\\s+$/g,\"\")}(t).replace(R,\"\")).length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t}(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(10))},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return Tr}));var n=r(4),i=r(253),o=r(115),a=r(2),s=r(66);function u(t){let e=t.length;for(;--e>=0;)t[e]=0}const c=256,f=286,l=30,h=15,p=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),d=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),m=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),g=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),y=new Array(576);u(y);const v=new Array(60);u(v);const b=new Array(512);u(b);const w=new Array(256);u(w);const _=new Array(29);u(_);const x=new Array(l);function E(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}let A,D,k;function S(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}u(x);const M=t=>t<256?b[t]:b[256+(t>>>7)],C=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},T=(t,e,r)=>{t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,C(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)},O=(t,e,r)=>{T(t,r[2*e],r[2*e+1])},F=(t,e)=>{let r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1},B=(t,e,r)=>{const n=new Array(16);let i,o,a=0;for(i=1;i<=h;i++)a=a+r[i-1]<<1,n[i]=a;for(o=0;o<=e;o++){let e=t[2*o+1];0!==e&&(t[2*o]=F(n[e]++,e))}},I=t=>{let e;for(e=0;e<f;e++)t.dyn_ltree[2*e]=0;for(e=0;e<l;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},P=t=>{t.bi_valid>8?C(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},L=(t,e,r,n)=>{const i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]},N=(t,e,r)=>{const n=t.heap[r];let i=r<<1;for(;i<=t.heap_len&&(i<t.heap_len&&L(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!L(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n},j=(t,e,r)=>{let n,i,o,a,s=0;if(0!==t.sym_next)do{n=255&t.pending_buf[t.sym_buf+s++],n+=(255&t.pending_buf[t.sym_buf+s++])<<8,i=t.pending_buf[t.sym_buf+s++],0===n?O(t,i,e):(o=w[i],O(t,o+c+1,e),a=p[o],0!==a&&(i-=_[o],T(t,i,a)),n--,o=M(n),O(t,o,r),a=d[o],0!==a&&(n-=x[o],T(t,n,a)))}while(s<t.sym_next);O(t,256,e)},R=(t,e)=>{const r=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,o=e.stat_desc.elems;let a,s,u,c=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<o;a++)0!==r[2*a]?(t.heap[++t.heap_len]=c=a,t.depth[a]=0):r[2*a+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=c<2?++c:0,r[2*u]=1,t.depth[u]=0,t.opt_len--,i&&(t.static_len-=n[2*u+1]);for(e.max_code=c,a=t.heap_len>>1;a>=1;a--)N(t,r,a);u=o;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],N(t,r,1),s=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=s,r[2*u]=r[2*a]+r[2*s],t.depth[u]=(t.depth[a]>=t.depth[s]?t.depth[a]:t.depth[s])+1,r[2*a+1]=r[2*s+1]=u,t.heap[1]=u++,N(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const r=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,o=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,u=e.stat_desc.max_length;let c,f,l,p,d,m,g=0;for(p=0;p<=h;p++)t.bl_count[p]=0;for(r[2*t.heap[t.heap_max]+1]=0,c=t.heap_max+1;c<573;c++)f=t.heap[c],p=r[2*r[2*f+1]+1]+1,p>u&&(p=u,g++),r[2*f+1]=p,f>n||(t.bl_count[p]++,d=0,f>=s&&(d=a[f-s]),m=r[2*f],t.opt_len+=m*(p+d),o&&(t.static_len+=m*(i[2*f+1]+d)));if(0!==g){do{for(p=u-1;0===t.bl_count[p];)p--;t.bl_count[p]--,t.bl_count[p+1]+=2,t.bl_count[u]--,g-=2}while(g>0);for(p=u;0!==p;p--)for(f=t.bl_count[p];0!==f;)l=t.heap[--c],l>n||(r[2*l+1]!==p&&(t.opt_len+=(p-r[2*l+1])*r[2*l],r[2*l+1]=p),f--)}})(t,e),B(r,c,t.bl_count)},z=(t,e,r)=>{let n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))},U=(t,e,r)=>{let n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{O(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(O(t,i,t.bl_tree),s--),O(t,16,t.bl_tree),T(t,s-3,2)):s<=10?(O(t,17,t.bl_tree),T(t,s-3,3)):(O(t,18,t.bl_tree),T(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}};let G=!1;const H=(t,e,r,n)=>{T(t,0+(n?1:0),3),P(t),C(t,r),C(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r};var q=(t,e,r,n)=>{let i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),a=(t=>{let e;for(z(t,t.dyn_ltree,t.l_desc.max_code),z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*g[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),i=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?H(t,e,r,n):4===t.strategy||o===i?(T(t,2+(n?1:0),3),j(t,y,v)):(T(t,4+(n?1:0),3),((t,e,r,n)=>{let i;for(T(t,e-257,5),T(t,r-1,5),T(t,n-4,4),i=0;i<n;i++)T(t,t.bl_tree[2*g[i]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,r-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),j(t,t.dyn_ltree,t.dyn_dtree)),I(t),n&&P(t)},Z={_tr_init:t=>{G||((()=>{let t,e,r,n,i;const o=new Array(16);for(r=0,n=0;n<28;n++)for(_[n]=r,t=0;t<1<<p[n];t++)w[r++]=n;for(w[r-1]=n,i=0,n=0;n<16;n++)for(x[n]=i,t=0;t<1<<d[n];t++)b[i++]=n;for(i>>=7;n<l;n++)for(x[n]=i<<7,t=0;t<1<<d[n]-7;t++)b[256+i++]=n;for(e=0;e<=h;e++)o[e]=0;for(t=0;t<=143;)y[2*t+1]=8,t++,o[8]++;for(;t<=255;)y[2*t+1]=9,t++,o[9]++;for(;t<=279;)y[2*t+1]=7,t++,o[7]++;for(;t<=287;)y[2*t+1]=8,t++,o[8]++;for(B(y,287,o),t=0;t<l;t++)v[2*t+1]=5,v[2*t]=F(t,5);A=new E(y,p,257,f,h),D=new E(v,d,0,l,h),k=new E(new Array(0),m,0,19,7)})(),G=!0),t.l_desc=new S(t.dyn_ltree,A),t.d_desc=new S(t.dyn_dtree,D),t.bl_desc=new S(t.bl_tree,k),t.bi_buf=0,t.bi_valid=0,I(t)},_tr_stored_block:H,_tr_flush_block:q,_tr_tally:(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(w[r]+c+1)]++,t.dyn_dtree[2*M(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{T(t,2,3),O(t,256,y),(t=>{16===t.bi_valid?(C(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var W=(t,e,r,n)=>{let i=65535&t,o=t>>>16&65535,a=0;for(;0!==r;){a=r>2e3?2e3:r,r-=a;do{i=i+e[n++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16};const Y=new Uint32Array((()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e})());var X=(t,e,r,n)=>{const i=Y,o=n+r;t^=-1;for(let r=n;r<o;r++)t=t>>>8^i[255&(t^e[r])];return~t},$={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"},V={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:J,_tr_stored_block:Q,_tr_flush_block:K,_tr_tally:tt,_tr_align:et}=Z,{Z_NO_FLUSH:rt,Z_PARTIAL_FLUSH:nt,Z_FULL_FLUSH:it,Z_FINISH:ot,Z_BLOCK:at,Z_OK:st,Z_STREAM_END:ut,Z_STREAM_ERROR:ct,Z_DATA_ERROR:ft,Z_BUF_ERROR:lt,Z_DEFAULT_COMPRESSION:ht,Z_FILTERED:pt,Z_HUFFMAN_ONLY:dt,Z_RLE:mt,Z_FIXED:gt,Z_DEFAULT_STRATEGY:yt,Z_UNKNOWN:vt,Z_DEFLATED:bt}=V,wt=258,_t=262,xt=42,Et=113,At=666,Dt=(t,e)=>(t.msg=$[e],e),kt=t=>2*t-(t>4?9:0),St=t=>{let e=t.length;for(;--e>=0;)t[e]=0},Mt=t=>{let e,r,n,i=t.w_size;e=t.hash_size,n=e;do{r=t.head[--n],t.head[n]=r>=i?r-i:0}while(--e);e=i,n=e;do{r=t.prev[--n],t.prev[n]=r>=i?r-i:0}while(--e)};let Ct=(t,e,r)=>(e<<t.hash_shift^r)&t.hash_mask;const Tt=t=>{const e=t.state;let r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))},Ot=(t,e)=>{K(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Tt(t.strm)},Ft=(t,e)=>{t.pending_buf[t.pending++]=e},Bt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},It=(t,e,r,n)=>{let i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),1===t.state.wrap?t.adler=W(t.adler,e,i,r):2===t.state.wrap&&(t.adler=X(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},Pt=(t,e)=>{let r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match;const u=t.strstart>t.w_size-_t?t.strstart-(t.w_size-_t):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+wt;let p=c[o+a-1],d=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(r=e,c[r+a]===d&&c[r+a-1]===p&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=wt-(h-o),o=h-wt,n>a){if(t.match_start=e,a=n,n>=s)break;p=c[o+a-1],d=c[o+a]}}}while((e=l[e&f])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead},Lt=t=>{const e=t.w_size;let r,n,i;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-_t)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),Mt(t),n+=e),0===t.strm.avail_in)break;if(r=It(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=r,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Ct(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Ct(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<_t&&0!==t.strm.avail_in)},Nt=(t,e)=>{let r,n,i,o=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a=0,s=t.strm.avail_in;do{if(r=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,n=t.strstart-t.block_start,r>n+t.strm.avail_in&&(r=n+t.strm.avail_in),r>i&&(r=i),r<o&&(0===r&&e!==ot||e===rt||r!==n+t.strm.avail_in))break;a=e===ot&&r===n+t.strm.avail_in?1:0,Q(t,0,0,a),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,Tt(t.strm),n&&(n>r&&(n=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,r-=n),r&&(It(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(0===a);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),a?4:e!==rt&&e!==ot&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(It(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,o=i>t.w_size?t.w_size:i,n=t.strstart-t.block_start,(n>=o||(n||e===ot)&&e!==rt&&0===t.strm.avail_in&&n<=i)&&(r=n>i?i:n,a=e===ot&&0===t.strm.avail_in&&r===n?1:0,Q(t,t.block_start,r,a),t.block_start+=r,Tt(t.strm)),a?3:1)},jt=(t,e)=>{let r,n;for(;;){if(t.lookahead<_t){if(Lt(t),t.lookahead<_t&&e===rt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-_t&&(t.match_length=Pt(t,r)),t.match_length>=3)if(n=tt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+1]);else n=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ot(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===ot?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2},Rt=(t,e)=>{let r,n,i;for(;;){if(t.lookahead<_t){if(Lt(t),t.lookahead<_t&&e===rt)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-_t&&(t.match_length=Pt(t,r),t.match_length<=5&&(t.strategy===pt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=tt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ot(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(n=tt(t,0,t.window[t.strstart-1]),n&&Ot(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=tt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===ot?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2};function zt(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}const Ut=[new zt(0,0,0,0,Nt),new zt(4,4,8,4,jt),new zt(4,5,16,8,jt),new zt(4,6,32,32,jt),new zt(4,4,16,16,Rt),new zt(8,16,32,32,Rt),new zt(8,16,128,128,Rt),new zt(8,32,128,256,Rt),new zt(32,128,258,1024,Rt),new zt(32,258,258,4096,Rt)];function Gt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=bt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),St(this.dyn_ltree),St(this.dyn_dtree),St(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),St(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),St(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ht=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==xt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==Et&&e.status!==At?1:0},qt=t=>{if(Ht(t))return Dt(t,ct);t.total_in=t.total_out=0,t.data_type=vt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?xt:Et,t.adler=2===e.wrap?0:1,e.last_flush=-2,J(e),st},Zt=t=>{const e=qt(t);var r;return e===st&&((r=t.state).window_size=2*r.w_size,St(r.head),r.max_lazy_match=Ut[r.level].max_lazy,r.good_match=Ut[r.level].good_length,r.nice_match=Ut[r.level].nice_length,r.max_chain_length=Ut[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,r.ins_h=0),e},Wt=(t,e,r,n,i,o)=>{if(!t)return ct;let a=1;if(e===ht&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||r!==bt||n<8||n>15||e<0||e>9||o<0||o>gt||8===n&&1!==a)return Dt(t,ct);8===n&&(n=9);const s=new Gt;return t.state=s,s.strm=t,s.status=xt,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=o,s.method=r,Zt(t)};var Yt={deflateInit:(t,e)=>Wt(t,e,bt,15,8,yt),deflateInit2:Wt,deflateReset:Zt,deflateResetKeep:qt,deflateSetHeader:(t,e)=>Ht(t)||2!==t.state.wrap?ct:(t.state.gzhead=e,st),deflate:(t,e)=>{if(Ht(t)||e>at||e<0)return t?Dt(t,ct):ct;const r=t.state;if(!t.output||0!==t.avail_in&&!t.input||r.status===At&&e!==ot)return Dt(t,0===t.avail_out?lt:ct);const n=r.last_flush;if(r.last_flush=e,0!==r.pending){if(Tt(t),0===t.avail_out)return r.last_flush=-1,st}else if(0===t.avail_in&&kt(e)<=kt(n)&&e!==ot)return Dt(t,lt);if(r.status===At&&0!==t.avail_in)return Dt(t,lt);if(r.status===xt&&0===r.wrap&&(r.status=Et),r.status===xt){let e=bt+(r.w_bits-8<<4)<<8,n=-1;if(n=r.strategy>=dt||r.level<2?0:r.level<6?1:6===r.level?2:3,e|=n<<6,0!==r.strstart&&(e|=32),e+=31-e%31,Bt(r,e),0!==r.strstart&&(Bt(r,t.adler>>>16),Bt(r,65535&t.adler)),t.adler=1,r.status=Et,Tt(t),0!==r.pending)return r.last_flush=-1,st}if(57===r.status)if(t.adler=0,Ft(r,31),Ft(r,139),Ft(r,8),r.gzhead)Ft(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Ft(r,255&r.gzhead.time),Ft(r,r.gzhead.time>>8&255),Ft(r,r.gzhead.time>>16&255),Ft(r,r.gzhead.time>>24&255),Ft(r,9===r.level?2:r.strategy>=dt||r.level<2?4:0),Ft(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Ft(r,255&r.gzhead.extra.length),Ft(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=X(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(Ft(r,0),Ft(r,0),Ft(r,0),Ft(r,0),Ft(r,0),Ft(r,9===r.level?2:r.strategy>=dt||r.level<2?4:0),Ft(r,3),r.status=Et,Tt(t),0!==r.pending)return r.last_flush=-1,st;if(69===r.status){if(r.gzhead.extra){let e=r.pending,n=(65535&r.gzhead.extra.length)-r.gzindex;for(;r.pending+n>r.pending_buf_size;){let i=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+i),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>e&&(t.adler=X(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex+=i,Tt(t),0!==r.pending)return r.last_flush=-1,st;e=0,n-=i}let i=new Uint8Array(r.gzhead.extra);r.pending_buf.set(i.subarray(r.gzindex,r.gzindex+n),r.pending),r.pending+=n,r.gzhead.hcrc&&r.pending>e&&(t.adler=X(t.adler,r.pending_buf,r.pending-e,e)),r.gzindex=0}r.status=73}if(73===r.status){if(r.gzhead.name){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=X(t.adler,r.pending_buf,r.pending-n,n)),Tt(t),0!==r.pending)return r.last_flush=-1,st;n=0}e=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Ft(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=X(t.adler,r.pending_buf,r.pending-n,n)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){let e,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(t.adler=X(t.adler,r.pending_buf,r.pending-n,n)),Tt(t),0!==r.pending)return r.last_flush=-1,st;n=0}e=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Ft(r,e)}while(0!==e);r.gzhead.hcrc&&r.pending>n&&(t.adler=X(t.adler,r.pending_buf,r.pending-n,n))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(Tt(t),0!==r.pending))return r.last_flush=-1,st;Ft(r,255&t.adler),Ft(r,t.adler>>8&255),t.adler=0}if(r.status=Et,Tt(t),0!==r.pending)return r.last_flush=-1,st}if(0!==t.avail_in||0!==r.lookahead||e!==rt&&r.status!==At){let n=0===r.level?Nt(r,e):r.strategy===dt?((t,e)=>{let r;for(;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===rt)return 1;break}if(t.match_length=0,r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Ot(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===ot?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2})(r,e):r.strategy===mt?((t,e)=>{let r,n,i,o;const a=t.window;for(;;){if(t.lookahead<=wt){if(Lt(t),t.lookahead<=wt&&e===rt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=t.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=t.strstart+wt;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=wt-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=tt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Ot(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===ot?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2})(r,e):Ut[r.level].func(r,e);if(3!==n&&4!==n||(r.status=At),1===n||3===n)return 0===t.avail_out&&(r.last_flush=-1),st;if(2===n&&(e===nt?et(r):e!==at&&(Q(r,0,0,!1),e===it&&(St(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Tt(t),0===t.avail_out))return r.last_flush=-1,st}return e!==ot?st:r.wrap<=0?ut:(2===r.wrap?(Ft(r,255&t.adler),Ft(r,t.adler>>8&255),Ft(r,t.adler>>16&255),Ft(r,t.adler>>24&255),Ft(r,255&t.total_in),Ft(r,t.total_in>>8&255),Ft(r,t.total_in>>16&255),Ft(r,t.total_in>>24&255)):(Bt(r,t.adler>>>16),Bt(r,65535&t.adler)),Tt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?st:ut)},deflateEnd:t=>{if(Ht(t))return ct;const e=t.state.status;return t.state=null,e===Et?Dt(t,ft):st},deflateSetDictionary:(t,e)=>{let r=e.length;if(Ht(t))return ct;const n=t.state,i=n.wrap;if(2===i||1===i&&n.status!==xt||n.lookahead)return ct;if(1===i&&(t.adler=W(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){0===i&&(St(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(r-n.w_size,r),0),e=t,r=n.w_size}const o=t.avail_in,a=t.next_in,s=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do{n.ins_h=Ct(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++}while(--e);n.strstart=t,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=a,t.input=s,t.avail_in=o,n.wrap=i,st},deflateInfo:\"pako deflate (from Nodeca project)\"};const Xt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var $t={assign:function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if(\"object\"!=typeof r)throw new TypeError(r+\"must be non-object\");for(const e in r)Xt(r,e)&&(t[e]=r[e])}}return t},flattenChunks:t=>{let e=0;for(let r=0,n=t.length;r<n;r++)e+=t[r].length;const r=new Uint8Array(e);for(let e=0,n=0,i=t.length;e<i;e++){let i=t[e];r.set(i,n),n+=i.length}return r}};let Vt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Vt=!1}const Jt=new Uint8Array(256);for(let t=0;t<256;t++)Jt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Jt[254]=Jt[254]=1;var Qt={string2buf:t=>{if(\"function\"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)r=t.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},buf2string:(t,e)=>{const r=e||t.length;if(\"function\"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let n,i;const o=new Array(2*r);for(i=0,n=0;n<r;){let e=t[n++];if(e<128){o[i++]=e;continue}let a=Jt[e];if(a>4)o[i++]=65533,n+=a-1;else{for(e&=2===a?31:3===a?15:7;a>1&&n<r;)e=e<<6|63&t[n++],a--;a>1?o[i++]=65533:e<65536?o[i++]=e:(e-=65536,o[i++]=55296|e>>10&1023,o[i++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Vt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r=\"\";for(let n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r})(o,i)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let r=e-1;for(;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Jt[t[r]]>e?r:e}};var Kt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0};const te=Object.prototype.toString,{Z_NO_FLUSH:ee,Z_SYNC_FLUSH:re,Z_FULL_FLUSH:ne,Z_FINISH:ie,Z_OK:oe,Z_STREAM_END:ae,Z_DEFAULT_COMPRESSION:se,Z_DEFAULT_STRATEGY:ue,Z_DEFLATED:ce}=V;function fe(t){this.options=$t.assign({level:se,method:ce,chunkSize:16384,windowBits:15,memLevel:8,strategy:ue},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Kt,this.strm.avail_out=0;let r=Yt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==oe)throw new Error($[r]);if(e.header&&Yt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t=\"string\"==typeof e.dictionary?Qt.string2buf(e.dictionary):\"[object ArrayBuffer]\"===te.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,r=Yt.deflateSetDictionary(this.strm,t),r!==oe)throw new Error($[r]);this._dict_set=!0}}function le(t,e){const r=new fe(e);if(r.push(t,!0),r.err)throw r.msg||$[r.err];return r.result}fe.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=e===~~e?e:!0===e?ie:ee,\"string\"==typeof t?r.input=Qt.string2buf(t):\"[object ArrayBuffer]\"===te.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===re||o===ne)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(i=Yt.deflate(r,o),i===ae)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=Yt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===oe;if(0!==r.avail_out){if(o>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},fe.prototype.onData=function(t){this.chunks.push(t)},fe.prototype.onEnd=function(t){t===oe&&(this.result=$t.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var he={Deflate:fe,deflate:le,deflateRaw:function(t,e){return(e=e||{}).raw=!0,le(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,le(t,e)},constants:V};const pe=16209;var de=function(t,e){let r,n,i,o,a,s,u,c,f,l,h,p,d,m,g,y,v,b,w,_,x,E,A,D;const k=t.state;r=t.next_in,A=t.input,n=r+(t.avail_in-5),i=t.next_out,D=t.output,o=i-(e-t.avail_out),a=i+(t.avail_out-257),s=k.dmax,u=k.wsize,c=k.whave,f=k.wnext,l=k.window,h=k.hold,p=k.bits,d=k.lencode,m=k.distcode,g=(1<<k.lenbits)-1,y=(1<<k.distbits)-1;t:do{p<15&&(h+=A[r++]<<p,p+=8,h+=A[r++]<<p,p+=8),v=d[h&g];e:for(;;){if(b=v>>>24,h>>>=b,p-=b,b=v>>>16&255,0===b)D[i++]=65535&v;else{if(!(16&b)){if(64&b){if(32&b){k.mode=16191;break t}t.msg=\"invalid literal/length code\",k.mode=pe;break t}v=d[(65535&v)+(h&(1<<b)-1)];continue e}for(w=65535&v,b&=15,b&&(p<b&&(h+=A[r++]<<p,p+=8),w+=h&(1<<b)-1,h>>>=b,p-=b),p<15&&(h+=A[r++]<<p,p+=8,h+=A[r++]<<p,p+=8),v=m[h&y];;){if(b=v>>>24,h>>>=b,p-=b,b=v>>>16&255,16&b){if(_=65535&v,b&=15,p<b&&(h+=A[r++]<<p,p+=8,p<b&&(h+=A[r++]<<p,p+=8)),_+=h&(1<<b)-1,_>s){t.msg=\"invalid distance too far back\",k.mode=pe;break t}if(h>>>=b,p-=b,b=i-o,_>b){if(b=_-b,b>c&&k.sane){t.msg=\"invalid distance too far back\",k.mode=pe;break t}if(x=0,E=l,0===f){if(x+=u-b,b<w){w-=b;do{D[i++]=l[x++]}while(--b);x=i-_,E=D}}else if(f<b){if(x+=u+f-b,b-=f,b<w){w-=b;do{D[i++]=l[x++]}while(--b);if(x=0,f<w){b=f,w-=b;do{D[i++]=l[x++]}while(--b);x=i-_,E=D}}}else if(x+=f-b,b<w){w-=b;do{D[i++]=l[x++]}while(--b);x=i-_,E=D}for(;w>2;)D[i++]=E[x++],D[i++]=E[x++],D[i++]=E[x++],w-=3;w&&(D[i++]=E[x++],w>1&&(D[i++]=E[x++]))}else{x=i-_;do{D[i++]=D[x++],D[i++]=D[x++],D[i++]=D[x++],w-=3}while(w>2);w&&(D[i++]=D[x++],w>1&&(D[i++]=D[x++]))}break}if(64&b){t.msg=\"invalid distance code\",k.mode=pe;break t}v=m[(65535&v)+(h&(1<<b)-1)]}}break}}while(r<n&&i<a);w=p>>3,r-=w,p-=w<<3,h&=(1<<p)-1,t.next_in=r,t.next_out=i,t.avail_in=r<n?n-r+5:5-(r-n),t.avail_out=i<a?a-i+257:257-(i-a),k.hold=h,k.bits=p};const me=15,ge=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ye=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ve=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),be=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var we=(t,e,r,n,i,o,a,s)=>{const u=s.bits;let c,f,l,h,p,d,m=0,g=0,y=0,v=0,b=0,w=0,_=0,x=0,E=0,A=0,D=null;const k=new Uint16Array(16),S=new Uint16Array(16);let M,C,T,O=null;for(m=0;m<=me;m++)k[m]=0;for(g=0;g<n;g++)k[e[r+g]]++;for(b=u,v=me;v>=1&&0===k[v];v--);if(b>v&&(b=v),0===v)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(y=1;y<v&&0===k[y];y++);for(b<y&&(b=y),x=1,m=1;m<=me;m++)if(x<<=1,x-=k[m],x<0)return-1;if(x>0&&(0===t||1!==v))return-1;for(S[1]=0,m=1;m<me;m++)S[m+1]=S[m]+k[m];for(g=0;g<n;g++)0!==e[r+g]&&(a[S[e[r+g]]++]=g);if(0===t?(D=O=a,d=20):1===t?(D=ge,O=ye,d=257):(D=ve,O=be,d=0),A=0,g=0,m=y,p=o,w=b,_=0,l=-1,E=1<<b,h=E-1,1===t&&E>852||2===t&&E>592)return 1;for(;;){M=m-_,a[g]+1<d?(C=0,T=a[g]):a[g]>=d?(C=O[a[g]-d],T=D[a[g]-d]):(C=96,T=0),c=1<<m-_,f=1<<w,y=f;do{f-=c,i[p+(A>>_)+f]=M<<24|C<<16|T}while(0!==f);for(c=1<<m-1;A&c;)c>>=1;if(0!==c?(A&=c-1,A+=c):A=0,g++,0==--k[m]){if(m===v)break;m=e[r+a[g]]}if(m>b&&(A&h)!==l){for(0===_&&(_=b),p+=y,w=m-_,x=1<<w;w+_<v&&(x-=k[w+_],!(x<=0));)w++,x<<=1;if(E+=1<<w,1===t&&E>852||2===t&&E>592)return 1;l=A&h,i[l]=b<<24|w<<16|p-o}}return 0!==A&&(i[p+A]=m-_<<24|64<<16),s.bits=b,0};const{Z_FINISH:_e,Z_BLOCK:xe,Z_TREES:Ee,Z_OK:Ae,Z_STREAM_END:De,Z_NEED_DICT:ke,Z_STREAM_ERROR:Se,Z_DATA_ERROR:Me,Z_MEM_ERROR:Ce,Z_BUF_ERROR:Te,Z_DEFLATED:Oe}=V,Fe=16180,Be=16190,Ie=16191,Pe=16192,Le=16194,Ne=16199,je=16200,Re=16206,ze=16209,Ue=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const He=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Fe||e.mode>16211?1:0},qe=t=>{if(He(t))return Se;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=Fe,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,Ae},Ze=t=>{if(He(t))return Se;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,qe(t)},We=(t,e)=>{let r;if(He(t))return Se;const n=t.state;return e<0?(r=0,e=-e):(r=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Se:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,Ze(t))},Ye=(t,e)=>{if(!t)return Se;const r=new Ge;t.state=r,r.strm=t,r.window=null,r.mode=Fe;const n=We(t,e);return n!==Ae&&(t.state=null),n};let Xe,$e,Ve=!0;const Je=t=>{if(Ve){Xe=new Int32Array(512),$e=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(we(1,t.lens,0,288,Xe,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;we(2,t.lens,0,32,$e,0,t.work,{bits:5}),Ve=!1}t.lencode=Xe,t.lenbits=9,t.distcode=$e,t.distbits=5},Qe=(t,e,r,n)=>{let i;const o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(e.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(e.subarray(r-n,r-n+i),o.wnext),(n-=i)?(o.window.set(e.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0};var Ke={inflateReset:Ze,inflateReset2:We,inflateResetKeep:qe,inflateInit:t=>Ye(t,15),inflateInit2:Ye,inflate:(t,e)=>{let r,n,i,o,a,s,u,c,f,l,h,p,d,m,g,y,v,b,w,_,x,E,A=0;const D=new Uint8Array(4);let k,S;const M=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(He(t)||!t.output||!t.input&&0!==t.avail_in)return Se;r=t.state,r.mode===Ie&&(r.mode=Pe),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,f=r.bits,l=s,h=u,E=Ae;t:for(;;)switch(r.mode){case Fe:if(0===r.wrap){r.mode=Pe;break}for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(2&r.wrap&&35615===c){0===r.wbits&&(r.wbits=15),r.check=0,D[0]=255&c,D[1]=c>>>8&255,r.check=X(r.check,D,2,0),c=0,f=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg=\"incorrect header check\",r.mode=ze;break}if((15&c)!==Oe){t.msg=\"unknown compression method\",r.mode=ze;break}if(c>>>=4,f-=4,x=8+(15&c),0===r.wbits&&(r.wbits=x),x>15||x>r.wbits){t.msg=\"invalid window size\",r.mode=ze;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=512&c?16189:Ie,c=0,f=0;break;case 16181:for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(r.flags=c,(255&r.flags)!==Oe){t.msg=\"unknown compression method\",r.mode=ze;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=ze;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&4&r.wrap&&(D[0]=255&c,D[1]=c>>>8&255,r.check=X(r.check,D,2,0)),c=0,f=0,r.mode=16182;case 16182:for(;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.head&&(r.head.time=c),512&r.flags&&4&r.wrap&&(D[0]=255&c,D[1]=c>>>8&255,D[2]=c>>>16&255,D[3]=c>>>24&255,r.check=X(r.check,D,4,0)),c=0,f=0,r.mode=16183;case 16183:for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&4&r.wrap&&(D[0]=255&c,D[1]=c>>>8&255,r.check=X(r.check,D,2,0)),c=0,f=0,r.mode=16184;case 16184:if(1024&r.flags){for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&4&r.wrap&&(D[0]=255&c,D[1]=c>>>8&255,r.check=X(r.check,D,2,0)),c=0,f=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&(p=r.length,p>s&&(p=s),p&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+p),x)),512&r.flags&&4&r.wrap&&(r.check=X(r.check,n,p,o)),s-=p,o+=p,r.length-=p),r.length))break t;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break t;p=0;do{x=n[o+p++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=X(r.check,n,p,o)),s-=p,o+=p,x)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===s)break t;p=0;do{x=n[o+p++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&4&r.wrap&&(r.check=X(r.check,n,p,o)),s-=p,o+=p,x)break t}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;f<16;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(4&r.wrap&&c!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=ze;break}c=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Ie;break;case 16189:for(;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}t.adler=r.check=Ue(c),c=0,f=0,r.mode=Be;case Be:if(0===r.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=f,ke;t.adler=r.check=1,r.mode=Ie;case Ie:if(e===xe||e===Ee)break t;case Pe:if(r.last){c>>>=7&f,f-=7&f,r.mode=Re;break}for(;f<3;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}switch(r.last=1&c,c>>>=1,f-=1,3&c){case 0:r.mode=16193;break;case 1:if(Je(r),r.mode=Ne,e===Ee){c>>>=2,f-=2;break t}break;case 2:r.mode=16196;break;case 3:t.msg=\"invalid block type\",r.mode=ze}c>>>=2,f-=2;break;case 16193:for(c>>>=7&f,f-=7&f;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if((65535&c)!=(c>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=ze;break}if(r.length=65535&c,c=0,f=0,r.mode=Le,e===Ee)break t;case Le:r.mode=16195;case 16195:if(p=r.length,p){if(p>s&&(p=s),p>u&&(p=u),0===p)break t;i.set(n.subarray(o,o+p),a),s-=p,o+=p,u-=p,a+=p,r.length-=p;break}r.mode=Ie;break;case 16196:for(;f<14;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(r.nlen=257+(31&c),c>>>=5,f-=5,r.ndist=1+(31&c),c>>>=5,f-=5,r.ncode=4+(15&c),c>>>=4,f-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=ze;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;f<3;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.lens[M[r.have++]]=7&c,c>>>=3,f-=3}for(;r.have<19;)r.lens[M[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,k={bits:r.lenbits},E=we(0,r.lens,0,19,r.lencode,0,r.work,k),r.lenbits=k.bits,E){t.msg=\"invalid code lengths set\",r.mode=ze;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;A=r.lencode[c&(1<<r.lenbits)-1],g=A>>>24,y=A>>>16&255,v=65535&A,!(g<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(v<16)c>>>=g,f-=g,r.lens[r.have++]=v;else{if(16===v){for(S=g+2;f<S;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(c>>>=g,f-=g,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=ze;break}x=r.lens[r.have-1],p=3+(3&c),c>>>=2,f-=2}else if(17===v){for(S=g+3;f<S;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}c>>>=g,f-=g,x=0,p=3+(7&c),c>>>=3,f-=3}else{for(S=g+7;f<S;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}c>>>=g,f-=g,x=0,p=11+(127&c),c>>>=7,f-=7}if(r.have+p>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=ze;break}for(;p--;)r.lens[r.have++]=x}}if(r.mode===ze)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=ze;break}if(r.lenbits=9,k={bits:r.lenbits},E=we(1,r.lens,0,r.nlen,r.lencode,0,r.work,k),r.lenbits=k.bits,E){t.msg=\"invalid literal/lengths set\",r.mode=ze;break}if(r.distbits=6,r.distcode=r.distdyn,k={bits:r.distbits},E=we(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,k),r.distbits=k.bits,E){t.msg=\"invalid distances set\",r.mode=ze;break}if(r.mode=Ne,e===Ee)break t;case Ne:r.mode=je;case je:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=f,de(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,f=r.bits,r.mode===Ie&&(r.back=-1);break}for(r.back=0;A=r.lencode[c&(1<<r.lenbits)-1],g=A>>>24,y=A>>>16&255,v=65535&A,!(g<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(y&&!(240&y)){for(b=g,w=y,_=v;A=r.lencode[_+((c&(1<<b+w)-1)>>b)],g=A>>>24,y=A>>>16&255,v=65535&A,!(b+g<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}c>>>=b,f-=b,r.back+=b}if(c>>>=g,f-=g,r.back+=g,r.length=v,0===y){r.mode=16205;break}if(32&y){r.back=-1,r.mode=Ie;break}if(64&y){t.msg=\"invalid literal/length code\",r.mode=ze;break}r.extra=15&y,r.mode=16201;case 16201:if(r.extra){for(S=r.extra;f<S;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;A=r.distcode[c&(1<<r.distbits)-1],g=A>>>24,y=A>>>16&255,v=65535&A,!(g<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(!(240&y)){for(b=g,w=y,_=v;A=r.distcode[_+((c&(1<<b+w)-1)>>b)],g=A>>>24,y=A>>>16&255,v=65535&A,!(b+g<=f);){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}c>>>=b,f-=b,r.back+=b}if(c>>>=g,f-=g,r.back+=g,64&y){t.msg=\"invalid distance code\",r.mode=ze;break}r.offset=v,r.extra=15&y,r.mode=16203;case 16203:if(r.extra){for(S=r.extra;f<S;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=ze;break}r.mode=16204;case 16204:if(0===u)break t;if(p=h-u,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=ze;break}p>r.wnext?(p-=r.wnext,d=r.wsize-p):d=r.wnext-p,p>r.length&&(p=r.length),m=r.window}else m=i,d=a-r.offset,p=r.length;p>u&&(p=u),u-=p,r.length-=p;do{i[a++]=m[d++]}while(--p);0===r.length&&(r.mode=je);break;case 16205:if(0===u)break t;i[a++]=r.length,u--,r.mode=je;break;case Re:if(r.wrap){for(;f<32;){if(0===s)break t;s--,c|=n[o++]<<f,f+=8}if(h-=u,t.total_out+=h,r.total+=h,4&r.wrap&&h&&(t.adler=r.check=r.flags?X(r.check,i,h,a-h):W(r.check,i,h,a-h)),h=u,4&r.wrap&&(r.flags?c:Ue(c))!==r.check){t.msg=\"incorrect data check\",r.mode=ze;break}c=0,f=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;f<32;){if(0===s)break t;s--,c+=n[o++]<<f,f+=8}if(4&r.wrap&&c!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=ze;break}c=0,f=0}r.mode=16208;case 16208:E=De;break t;case ze:E=Me;break t;case 16210:return Ce;default:return Se}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=f,(r.wsize||h!==t.avail_out&&r.mode<ze&&(r.mode<Re||e!==_e))&&Qe(t,t.output,t.next_out,h-t.avail_out),l-=t.avail_in,h-=t.avail_out,t.total_in+=l,t.total_out+=h,r.total+=h,4&r.wrap&&h&&(t.adler=r.check=r.flags?X(r.check,i,h,t.next_out-h):W(r.check,i,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Ie?128:0)+(r.mode===Ne||r.mode===Le?256:0),(0===l&&0===h||e===_e)&&E===Ae&&(E=Te),E},inflateEnd:t=>{if(He(t))return Se;let e=t.state;return e.window&&(e.window=null),t.state=null,Ae},inflateGetHeader:(t,e)=>{if(He(t))return Se;const r=t.state;return 2&r.wrap?(r.head=e,e.done=!1,Ae):Se},inflateSetDictionary:(t,e)=>{const r=e.length;let n,i,o;return He(t)?Se:(n=t.state,0!==n.wrap&&n.mode!==Be?Se:n.mode===Be&&(i=1,i=W(i,e,r,0),i!==n.check)?Me:(o=Qe(t,e,r,r),o?(n.mode=16210,Ce):(n.havedict=1,Ae)))},inflateInfo:\"pako inflate (from Nodeca project)\"};var tr=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1};const er=Object.prototype.toString,{Z_NO_FLUSH:rr,Z_FINISH:nr,Z_OK:ir,Z_STREAM_END:or,Z_NEED_DICT:ar,Z_STREAM_ERROR:sr,Z_DATA_ERROR:ur,Z_MEM_ERROR:cr}=V;function fr(t){this.options=$t.assign({chunkSize:65536,windowBits:15,to:\"\"},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Kt,this.strm.avail_out=0;let r=Ke.inflateInit2(this.strm,e.windowBits);if(r!==ir)throw new Error($[r]);if(this.header=new tr,Ke.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=Qt.string2buf(e.dictionary):\"[object ArrayBuffer]\"===er.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Ke.inflateSetDictionary(this.strm,e.dictionary),r!==ir)))throw new Error($[r])}function lr(t,e){const r=new fr(e);if(r.push(t),r.err)throw r.msg||$[r.err];return r.result}fr.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(a=e===~~e?e:!0===e?nr:rr,\"[object ArrayBuffer]\"===er.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=Ke.inflate(r,a),o===ar&&i&&(o=Ke.inflateSetDictionary(r,i),o===ir?o=Ke.inflate(r,a):o===ur&&(o=ar));r.avail_in>0&&o===or&&r.state.wrap>0&&0!==t[r.next_in];)Ke.inflateReset(r),o=Ke.inflate(r,a);switch(o){case sr:case ur:case ar:case cr:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||o===or))if(\"string\"===this.options.to){let t=Qt.utf8border(r.output,r.next_out),e=r.next_out-t,i=Qt.buf2string(r.output,t);r.next_out=e,r.avail_out=n-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(o!==ir||0!==s){if(o===or)return o=Ke.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},fr.prototype.onData=function(t){this.chunks.push(t)},fr.prototype.onEnd=function(t){t===ir&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=$t.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var hr={Inflate:fr,inflate:lr,inflateRaw:function(t,e){return(e=e||{}).raw=!0,lr(t,e)},ungzip:lr,constants:V};const{Deflate:pr,deflate:dr,deflateRaw:mr,gzip:gr}=he,{Inflate:yr,inflate:vr,inflateRaw:br,ungzip:wr}=hr;var _r={Deflate:pr,deflate:dr,deflateRaw:mr,gzip:gr,Inflate:yr,inflate:vr,inflateRaw:br,ungzip:wr,constants:V};function xr(t){return xr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},xr(t)}function Er(t){return function(t){if(Array.isArray(t))return Ar(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Ar(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ar(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ar(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Dr(){Dr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),s=new T(n||[]);return i(a,\"_invoke\",{value:k(t,r,s)}),a}function l(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",g={};function y(){}function v(){}function b(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(O([])));x&&x!==r&&n.call(x,a)&&(w=x);var E=b.prototype=y.prototype=Object.create(w);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==xr(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function k(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=l(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=l(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function O(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(xr(e)+\" is not iterable\")}return v.prototype=b,i(E,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:v,configurable:!0}),v.displayName=c(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===v||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},A(D.prototype),c(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new D(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(E),c(E,u,\"Generator\"),c(E,a,(function(){return this})),c(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=O,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;C(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function kr(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Sr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){kr(o,n,i,a,s,\"next\",t)}function s(t){kr(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function Mr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Cr(n.key),n)}}function Cr(t){var e=function(t,e){if(\"object\"!=xr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=xr(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==xr(e)?e:e+\"\"}var Tr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t)}return e=t,r=null,u=[{key:\"Abcc\",value:(I=Sr(Dr().mark((function t(e){return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t){chrome.storage.local.get(e,(function(r){return r&&r[e]?t(r[e]):t({})}))})));case 1:case\"end\":return t.stop()}}),t)}))),function(t){return I.apply(this,arguments)})},{key:\"wbeh\",value:(B=Sr(Dr().mark((function t(e,r){var n;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={})[e]=r,t.next=4,chrome.storage.local.set(n);case 4:case\"end\":return t.stop()}}),t)}))),function(t,e){return B.apply(this,arguments)})},{key:\"Bi9dF\",value:(F=Sr(Dr().mark((function t(e){var r,n,i,o,a=arguments;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:0,n=a.length>2&&void 0!==a[2]?a[2]:1,i=a.length>3?a[3]:void 0,o=Math.floor(Math.random()*r+e),n&&i&&(o=Math.max(o/n,i)),t.next=7,new Promise((function(t){setTimeout(t,o)}));case 7:return t.abrupt(\"return\",t.sent);case 8:case\"end\":return t.stop()}}),t)}))),function(t){return F.apply(this,arguments)})},{key:\"HfbaJ\",value:function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}},{key:\"RhjhR\",value:function(t){var e=t.split(\".\");return 1e3*parseInt(e[0])*1e3+1e3*parseInt(e[1])+parseInt(e[2])}},{key:\"Oeb0\",value:function(e,r){try{return t.RhjhR(e)>=t.RhjhR(r)}catch(t){return!1}}},{key:\"_d5at\",value:function(t,e,r){for(;\"\".concat(t).length<r;)t=\"\".concat(e).concat(t);return t}},{key:\"Dfj0D\",value:(O=Sr(Dr().mark((function t(e){var r,n,i,o;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.B174bD,o=void 0===i?1:i,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"zo4B\",label:{key:n,B174bD:o}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return O.apply(this,arguments)})},{key:\"Mc76\",value:(T=Sr(Dr().mark((function t(e){var r,n,i,o,a,s,u;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.value,o=e.B174bD,a=void 0===o?1:o,s=e.q177o,u=void 0!==s&&s,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"TpiT\",label:{key:n,value:i,B174bD:a,q177o:u}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return T.apply(this,arguments)})},{key:\"Zhc9_\",value:(C=Sr(Dr().mark((function t(e){var r,n,i,o;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,i=e.B174bD,o=void 0===i?1:i,null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"r136v\",label:{key:n,B174bD:o}},(function(r){r?t(r):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return C.apply(this,arguments)})},{key:\"Cc9h\",value:(M=Sr(Dr().mark((function e(r,n){var i,o,a,s,u,c,f;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(i=chrome.runtime)&&void 0!==i&&i.id){e.next=2;break}return e.abrupt(\"return\",0);case 2:return 3323===r?(s=\"rl94t\",u=\"vm2ex\"):3635===r&&(s=\"Ml74\",u=\"_m0a\"),e.next=5,t.Dfj0D({key:s,B174bD:1});case 5:if(e.t1=o=e.sent,e.t0=null===e.t1,e.t0){e.next=9;break}e.t0=void 0===o;case 9:if(!e.t0){e.next=13;break}e.t2=void 0,e.next=14;break;case 13:e.t2=o.value;case 14:if(e.t2===n){e.next=22;break}return e.next=19,t.Mc76({key:s,value:n,B174bD:1});case 19:a=1,e.next=36;break;case 22:return e.next=24,t.Dfj0D({key:u,B174bD:1});case 24:if(e.t4=c=e.sent,e.t3=null===e.t4,e.t3){e.next=28;break}e.t3=void 0===c;case 28:if(!e.t3){e.next=32;break}e.t5=void 0,e.next=33;break;case 32:e.t5=c.value;case 33:f=e.t5,a=parseInt(f?f+\"\":\"1\")+1;case 36:return e.next=38,t.Mc76({key:u,value:a,B174bD:1});case 38:return e.abrupt(\"return\",a);case 39:case\"end\":return e.stop()}}),e)}))),function(t,e){return M.apply(this,arguments)})},{key:\"_g06\",value:(S=Sr(Dr().mark((function e(r){var n,i,o,a,s;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Dfj0D({key:\"CSLcaeg\",B174bD:-1});case 2:if(e.t1=n=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===n;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=n.value;case 11:return o=e.t2,e.next=14,t.Dfj0D({key:\"CSLid5l\"});case 14:if(e.t4=i=e.sent,e.t3=null===e.t4,e.t3){e.next=18;break}e.t3=void 0===i;case 18:if(!e.t3){e.next=22;break}e.t5=void 0,e.next=23;break;case 22:e.t5=i.value;case 23:return a=e.t5,s=1,3323===r?s=parseFloat((null==o?void 0:o.hcs)||a||\"1.1708\"):3635===r&&(s=parseFloat((null==o?void 0:o.res)||a||\"1.1708\")),e.abrupt(\"return\",s);case 27:case\"end\":return e.stop()}}),e)}))),function(t){return S.apply(this,arguments)})},{key:\"VfeeX\",value:(k=Sr(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s1c4\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return k.apply(this,arguments)})},{key:\"yfml\",value:(D=Sr(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x236B\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return D.apply(this,arguments)})},{key:\"qi5f\",value:(A=Sr(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x1cmx\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return A.apply(this,arguments)})},{key:\"FcflF\",value:(E=Sr(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"B142B\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return E.apply(this,arguments)})},{key:\"xehcz\",value:(x=Sr(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s163\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return x.apply(this,arguments)})},{key:\"Jef6N\",value:(_=Sr(Dr().mark((function t(){var e;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"D18fF\"},(function(r){r?t(r):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return _.apply(this,arguments)})},{key:\"tg42v\",value:(w=Sr(Dr().mark((function t(e){var r;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.next=2;break;case 2:if(null!==(r=chrome.runtime)&&void 0!==r&&r.id){t.next=4;break}return t.abrupt(\"return\",void 0);case 4:return t.abrupt(\"return\",new Promise((function(t,r){chrome.runtime.sendMessage({type:\"q1fj\",label:e},(function(e){e?t(e):r()}))})));case 5:case\"end\":return t.stop()}}),t)}))),function(t){return w.apply(this,arguments)})},{key:\"Bc2bD\",value:(b=Sr(Dr().mark((function e(r){var n,i,o,a,s,u,c,f,l,h,p,d,m,g,y=arguments;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=y.length>1&&void 0!==y[1]&&y[1],i=y.length>2&&void 0!==y[2]?y[2]:null,o=y.length>3&&void 0!==y[3]?y[3]:null,a=y.length>4&&void 0!==y[4]?y[4]:1,r&&r.isConnected){e.next=7;break}return e.abrupt(\"return\");case 7:if(s=r.getBoundingClientRect(),null!==i&&null!==o||(i=s.left+s.width/2,o=s.top+s.height/2),!isNaN(i)&&!isNaN(o)){e.next=12;break}return e.abrupt(\"return\");case 12:if(!n){e.next=29;break}u=[{e:\"mouseover\",w:30/a},{e:\"mouseenter\",w:15/a}].concat(Er(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/a})),[{e:\"mousedown\",w:35/a},{e:\"mouseup\",w:30/a},{e:\"click\",w:35/a}],Er(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/a})),[{e:\"mouseout\",w:25/a}]),c=0;case 15:if(!(c<u.length)){e.next=27;break}return f=u[c].e,l=50+Math.floor(100*Math.random()),h=50+Math.floor(200*Math.random()),\"mouseenter\"!==f&&\"mouseout\"!==f?(i=s.left+s.width/2,o=s.top+s.height/2):(i=s.left+(\"mouseenter\"===f?0:s.width),o=s.top+(\"mouseenter\"===f?0:s.height),i+=10*Math.random()-5,o+=20*Math.random()-5),p=new MouseEvent(f,{detail:\"mouseover\"===f?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i,clientY:o,screenX:l,screenY:h}),r.dispatchEvent(p),e.next=24,t.Bi9dF(u[c].w);case 24:c++,e.next=15;break;case 27:e.next=39;break;case 29:d=[{e:\"mouseover\",w:30/a},{e:\"mouseenter\",w:15/a},{e:\"mousedown\",w:30/a},{e:\"mouseup\",w:30/a},{e:\"click\",w:50/a},{e:\"mouseout\",w:35/a}],m=0;case 31:if(!(m<d.length)){e.next=39;break}return g=new MouseEvent(d[m].e,{detail:\"mouseover\"===d[m].e?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i+4,clientY:o+4}),r.dispatchEvent(g),e.next=36,t.Bi9dF(d[m].w);case 36:m++,e.next=31;break;case 39:case\"end\":return e.stop()}}),e)}))),function(t){return b.apply(this,arguments)})},{key:\"Jfi2J\",value:function(t){var e;if(!t)return null;var r=null===(e=t.style)||void 0===e?void 0:e.background.trim().match(/(?!^)\".*?\"/g);return r&&0!==r.length?r[0].replaceAll('\"',\"\"):null}},{key:\"BfgoD\",value:function(t){var e;return null==t||null===(e=t.src)||void 0===e?void 0:e.trim()}},{key:\"qd5l\",value:function(t,e){return t[0]=t[0]>=0?t[0]:0,t[1]=t[1]>=0?t[1]:0,t[2]=t[0]+t[2]<=e?t[2]:e-t[0],t[3]=t[1]+t[3]<=e?t[3]:e-t[1],t}},{key:\"yc01\",value:function(t){var e=t.map((function(t){return Math.exp(t)})),r=e.reduce((function(t,e){return t+e}),0);return e.map((function(t){return t/r}))}},{key:\"BgncB\",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.querySelector(e),i=null!==n;return i&&r&&(i=t.Yej5(n)),i}},{key:\"Mh6a\",value:function(t,e){if(t.length!==e.length)throw new Error(\"must have the same length\");return t.reduce((function(t,r,n){return t+r*e[n]}),0)}},{key:\"HdcaL\",value:function(t){return Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e,2)}),0))}},{key:\"shk4\",value:function(e){for(var r=[],n=0;n<e.length;n++){for(var i=new Array(e.length).fill(0),o=0;o<n;o++)i[o]=r[o][n];for(var a=e[n],s=n+1;s<e.length;s++){var u=e[s];i[s]=t.qhi5(a,u)}r.push(Er(i))}return r}},{key:\"qhi5\",value:function(e,r){return t.Mh6a(e,r)/(t.HdcaL(e)*t.HdcaL(r))}},{key:\"ze45D\",value:function(t,e){var r=new Set(Object.keys(t)),n=new Set(Object.keys(e)),i=Er(r).filter((function(t){return n.has(t)})),o=new Set([].concat(Er(r),Er(n)));return i.length/o.size}},{key:\"Yej5\",value:function(t){if(!t)return!1;var e=window.getComputedStyle(t);return!(\"none\"===e.display||\"hidden\"===e.visibility||0===t.offsetWidth&&0===t.offsetHeight||\"fixed\"===e.position&&\"hidden\"===e.visibility||null===t.offsetParent)}},{key:\"Cd86\",value:function(t,e){var r=t.data,n=[],o=0;if(2===e.length)for(var a=0;a<e[0];a++){for(var s=[],u=0;u<e[1];u++)s.push(r[o]),o++;n.push(s)}else if(3===e.length)for(var c=0;c<e[0];c++){for(var f=[],l=0;l<e[1];l++){for(var h=[],p=0;p<e[2];p++)h.push(r[o]),o++;f.push(h)}n.push(f)}else if(4===e.length)for(var d=0;d<e[0];d++){for(var m=[],g=0;g<e[1];g++){for(var y=[],v=0;v<e[2];v++){for(var b=[],w=0;w<e[3];w++)b.push(r[o]),o++;y.push(b)}m.push(y)}n.push(m)}return i.a(n)}},{key:\"Iepc\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Er(e);r&&(n[0]=t[0],n[1]=t[1],n[2]=e[2]-(e[0]-n[0]),n[3]=e[3]-(e[1]-n[1]));var i=Math.max(t[0],n[0]),o=Math.max(t[1],n[1]),a=Math.min(t[2],n[2]),s=Math.min(t[3],n[3]);return Math.max(0,a-i)*Math.max(0,s-o)}},{key:\"FbijJ\",value:function(e,r){return(e[2]-e[0])*(e[3]-e[1])+(r[2]-r[0])*(r[3]-r[1])-t.Iepc(e,r)}},{key:\"tel7v\",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.Iepc(e,r,n)/t.FbijJ(e,r)}},{key:\"ue9h\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return!!((e[0]<=t[0]||n&&e[0]-t[0]<5)&&(e[1]<=t[1]||n&&e[1]-t[1]<5)&&(e[2]>=t[2]||n&&e[2]-t[2]>-5)&&(e[3]>=t[3]||n&&e[3]-t[3]>-5))||!r&&(t[0]<=e[0]||n&&t[0]-e[0]<5)&&(t[1]<=e[1]||n&&t[1]-e[1]<5)&&(t[2]>=e[2]||n&&t[2]-e[2]>-5)&&(t[3]>=e[3]||n&&t[3]-e[3]>-5)}},{key:\"rdfov\",value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];if(e.length>0){e.sort((function(t,e){return e[4]-t[4]}));for(var i=function(){var i=e.shift();n.push(i),e=e.filter((function(e){return!t.ue9h(e,i,!0,r)}))};e.length>0;)i()}return n}},{key:\"_e92_\",value:function(t,e){var r=t[2]<e[0],n=t[0]>e[2],i=t[3]<e[1],o=t[1]>e[3];return!(r||n||i||o)}},{key:\"thebv\",value:function(e,r){for(var n=0;n<r.length;n++)t._e92_(e,r[n])}},{key:\"Ff32H\",value:function(t){if(0===t.length)return-1;var e=Math.max.apply(Math,Er(t));return t.indexOf(e)}},{key:\"Hf0eH\",value:function(t){if(0===t.length)return-1;var e=Math.min.apply(Math,Er(t));return t.indexOf(e)}},{key:\"rc4bt\",value:function(t){return 1/(1+Math.exp(-t))}},{key:\"_d1o\",value:function(t,e,r){for(;\"\".concat(t).length<r;)t=\"\".concat(e).concat(t);return t}},{key:\"Shoa\",value:function(t){for(var e=t.bitmap.width,r=t.bitmap.height,n=0,i=0,o=0;o<r;o++)for(var a=0;a<e;a++){var s=4*(o*e+a);t.bitmap.data[s]<128?n++:i++}return n/(n+i)}},{key:\"Ii11\",value:function(t,e,r){if(t&&0!==t.length){for(var n=t.map((function(t){return[t.x,t.y]})),i=(new o.DBSCAN).run(n,e,r,null),a=0,s=0,u=0,c=0;c<i.length;c++)if(i[c].length>a)s=c,a=i[c].length,u=i[c].reduce((function(t,e){return t+=e.value}),0);else if(i[c].length===a){var f=i[c].reduce((function(t,e){return t+=e.value}),0);f<u&&(s=c,a=i[c].length,u=f)}return i[s]}}},{key:\"vh3fx\",value:(v=Sr(Dr().mark((function t(e,r){var i,o,a,s,u,c,f,l=arguments;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=l.length>2&&void 0!==l[2]?l[2]:\"\",null!==(i=chrome.runtime)&&void 0!==i&&i.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.next=5,e.getBase64Async(n.a.AUTO);case 5:return s=t.sent,u=/[<>:\"\\/\\\\|?*\\x00-\\x1F]/g,a=a.replace(u,\"\").replaceAll(\".\",\"\").replace(/\\s+/g,\"_\"),c=(null===(o=a)||void 0===o?void 0:o.length)>0?\"_solver_raw/\"+a+\"/\"+r:\"_solver_raw/\"+r,f={url:s,filename:c,saveAs:!1,conflictAction:\"uniquify\"},t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"q1j6\",label:f},(function(r){r?t(r):e()}))})));case 11:case\"end\":return t.stop()}}),t)}))),function(t,e){return v.apply(this,arguments)})},{key:\"DgmgF\",value:function(t,e,r,n){var i={x:0,y:0},o=!1;switch(n){case 0:i={x:e-1,y:r-1};for(var a=0;a<r;a++){for(var s=0;s<e;s++)if(!o&&255===t[a*e+s]&&s<i.x&&a<i.y){i.x=s,i.y=a,o=!0;break}if(o)break}break;case 1:i={x:0,y:0};for(var u=e-1;u>=0;u--){for(var c=r-1;c>=0;c--)if(!o&&255===t[c*e+u]&&u>i.x&&c>i.y){i.x=u,i.y=c,o=!0;break}if(o)break}break;case 2:i={x:0,y:0};for(var f=r-1;f>=0;f--){for(var l=e-1;l>=0;l--)if(!o&&255===t[f*e+l]&&l>i.x&&f>i.y){i.x=l,i.y=f,o=!0;break}if(o)break}break;case 3:i={x:e,y:r};for(var h=0;h<e;h++){for(var p=0;p<r;p++)if(!o&&255===t[p*e+h]&&h<i.x&&p<i.y){i.x=h,i.y=p,o=!0;break}if(o)break}}return i}},{key:\"Zg20Z\",value:function(t,e){var r=Array.from({length:e},(function(){return 0})),i=256/e;t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,e){var o=this.getPixelColor(t,e),a=n.a.intToRGBA(o),s=a.r,u=a.g,c=a.b,f=Math.floor((s+u+c)/3/i);r[f]++}));var o=r.reduce((function(t,e){return t+e}),0);return r.map((function(t){return t/o}))}},{key:\"_hhk\",value:function(t,e){var r=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,i){var o=this.getPixelColor(t,i),a=n.a.intToRGBA(o),s=a.r,u=a.g,c=a.b;Math.abs(s-u)<e&&Math.abs(s-c)<e&&Math.abs(u-c)<e&&r++})),r/(t.bitmap.width*t.bitmap.height)}},{key:\"Pdk4P\",value:function(t,e){if(e>t.length)return null;for(var r,n=0,i=0;i<e;i++)n+=t[i];r=n;for(var o=e;o<t.length;o++)n=n+t[o]-t[o-e],r=Math.max(r,n);return r}},{key:\"Hf84H\",value:function(e){var r=t.Zg20Z(e,32),n=r.indexOf(Math.max.apply(Math,Er(r)));if(r[30]+r[31]+r[30]>.93||r[0]+r[1]+r[2]>.93||n>2&&n<30&&r[n]>.93)return 0;if(r[29]+r[30]+r[31]+r[0]+r[1]+r[2]>.93||r[30]+r[31]+r[29]>.9||r[0]+r[1]+r[2]>.9)return 1;var i=t.Pdk4P(r,2),o=t.Pdk4P(r,3);return i>.85||o>.9?2:t._hhk(e,10)>.8?3:99}},{key:\"vcelv\",value:(y=Sr(Dr().mark((function t(e){var r,i,o,a,s,u;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),o=n.a.intToRGBA(i),a=o.r,s=o.g,u=o.b,c=Math.floor((a+s+u)/3);c>80&&c<200&&(r[c]=(r[c]||0)+1)})),Object.entries(r).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(r).reduce((function(t,e){return r[t]>r[e]?t:e})),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var r=this.getPixelColor(t,e),o=n.a.intToRGBA(r),a=o.r,s=o.g,u=o.b,c=Math.floor((a+s+u)/3);Math.abs(i-c)>15&&this.setPixelColor(n.a.rgbaToInt(255,255,255,255),t,e)})),r={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),o=n.a.intToRGBA(i),a=o.r,s=o.g,u=o.b;if(255!==a&&255!==s&&255!==u){var c=a+\"_\"+s+\"_\"+u;r[c]=(r[c]||0)+1}})),Object.entries(r).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(r).reduce((function(t,e){return r[t]>r[e]?t:e})),o=i.split(\"_\"),a=parseInt(o[0]),s=parseInt(o[1]),u=parseInt(o[2]),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var r=this.getPixelColor(t,e),i=n.a.intToRGBA(r),o=i.r,c=i.g,f=i.b;Math.abs(a-o)>40||Math.abs(s-c)>40||Math.abs(u-f)>40||Math.abs(a-o)+Math.abs(s-c)+Math.abs(u-f)>80?this.setPixelColor(n.a.rgbaToInt(255,255,255,255),t,e):this.setPixelColor(n.a.rgbaToInt(0,0,0,255),t,e)})),t.abrupt(\"return\",e);case 17:case\"end\":return t.stop()}}),t)}))),function(t){return y.apply(this,arguments)})},{key:\"PblhR\",value:function(t,e,r){var i=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,o){var a=this.getPixelColor(t,o),s=n.a.intToRGBA(a),u=s.r,c=s.g,f=s.b;Math.abs(u-e[0])<=r&&Math.abs(c-e[1])<=r&&Math.abs(f-e[2])<=r&&i++})),i/(t.bitmap.width*t.bitmap.height)}},{key:\"Fg6gH\",value:function(t,e,r,i,o){for(var a=[{x:e,y:r}],s={x1:e,y1:r,x2:e,y2:r};a.length>0;){var u=a.pop(),c=u.x,f=u.y;if(c>=0&&c<t.bitmap.width&&f>=0&&f<t.bitmap.height){var l=t.getPixelIndex(c,f);if(t.bitmap.data[l]===i){var h=n.a.rgbaToInt(o,o,o,255);t.setPixelColor(h,c,f),c<s.x1&&(s.x1=c),c>s.x2&&(s.x2=c),f<s.y1&&(s.y1=f),f>s.y2&&(s.y2=f),a.push({x:c+1,y:f}),a.push({x:c-1,y:f}),a.push({x:c,y:f+1}),a.push({x:c,y:f-1})}}}return s}},{key:\"Ih91\",value:function(e,r){var n=[];return e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(i,o,a){if(e.bitmap.data[a]===r){var s=t.Fg6gH(e,i,o,r,250);n.push(s)}})),n}},{key:\"Mgk4\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var r=t[0][e],n=1;n<t.length;n++)t[n][e]>r&&(r=t[n][e]);return r}}},{key:\"rgdcr\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var r=t[0][e],n=1;n<t.length;n++)t[n][e]<r&&(r=t[n][e]);return r}}},{key:\"Agh9\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Number.MIN_SAFE_INTEGER,i=-1,o=-1,a=0;a<t.length;a++)if(e<0)for(var s=0;s<t[a].length;s++)a!==s&&t[a][s]>n&&(n=t[a][s],i=a,o=s);else t[a][e]>n&&(null==r||!r.includes(a))&&a!==e&&(n=t[a][e],i=a,o=e);return[i,o,t[i][o]]}},{key:\"ygd0\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Number.MAX_SAFE_INTEGER,i=-1,o=-1,a=0;a<t.length;a++)if(e<0)for(var s=0;s<t[a].length;s++)a!==s&&t[a][s]<n&&(n=t[a][s],i=a,o=s);else t[a][e]<n&&(null==r||!r.includes(a))&&a!==e&&(n=t[a][e],i=a,o=e);return[i,o,t[i][o]]}},{key:\"Gce5\",value:function(t,e,r){return t.filter((function(t,r){return!e.includes(r)})).map((function(t){return t.filter((function(t,e){return!r.includes(e)}))}))}},{key:\"Ri54T\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,r){chrome.runtime.sendMessage({type:\"C1k3\",label:t},(function(t){t?e(t):r()}))}))}},{key:\"sdnj\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,r){chrome.runtime.sendMessage({type:\"R1pcR\",label:t},(function(t){t?e(t):r()}))}))}},{key:\"LcifN\",value:(g=Sr(Dr().mark((function t(e,r){var i,o,a,s,u,c,f,l,h,p,d,m,g,y,v,b,w;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i=e.bitmap.width,o=e.bitmap.height,a=r[0],s=r[1],u=0;u<o;u++)for(c=0;c<i;c++){for(f=[0,0,0],l=0,h=-a;h<=a;h++)for(p=-a;p<=a;p++)m=u+h,(d=c+p)>=0&&d<i&&m>=0&&m<o&&(g=e.getPixelColor(d,m),y=n.a.intToRGBA(g),f[0]+=y.r,f[1]+=y.g,f[2]+=y.b,l++);v=[Math.floor(f[0]/l),Math.floor(f[1]/l),Math.floor(f[2]/l)],b=e.getPixelColor(c,u),w=n.a.intToRGBA(b),Math.abs(w.r-v[0])+Math.abs(w.g-v[1])+Math.abs(w.b-v[2])<s&&e.setPixelColor(n.a.rgbaToInt.apply(n.a,v.concat([w.a])),c,u)}return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e){return g.apply(this,arguments)})},{key:\"Oe76\",value:(m=Sr(Dr().mark((function t(e,r,i){var o,a,s,u,c,f,l,h,p,d,m,g,y,v,b,w,_,x,E,A,D;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(o=e.bitmap,a=o.width,s=o.height,u=Array.from({length:s},(function(t,r){return Array.from({length:a},(function(t,i){return n.a.intToRGBA(e.getPixelColor(i,r))}))})),c=new Array(s),f=0;f<s;f++)for(c[f]=new Array(a),l=0;l<a;l++){for(h=0,p=0,d=0,m=0,g=-r;g<=r;g++)for(y=-r;y<=r;y++)b=f+g,(v=l+y)>=0&&v<a&&b>=0&&b<s&&(w=u[b][v],h+=w.r,p+=w.g,d+=w.b,m++);c[f][l]={r:Math.floor(h/m),g:Math.floor(p/m),b:Math.floor(d/m),a:u[f][l].a}}for(_=0;_<s;_++)for(x=0;x<a;x++)E=u[_][x],A=c[_][x],Math.abs(E.r-A.r)+Math.abs(E.g-A.g)+Math.abs(E.b-A.b)<i&&(D=n.a.rgbaToInt(A.r,A.g,A.b,A.a),e.setPixelColor(D,x,_));return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e,r){return m.apply(this,arguments)})},{key:\"ycma\",value:(d=Sr(Dr().mark((function e(r,n){var i;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt(\"return\",r);case 2:e.t0=Dr().keys(n);case 3:if((e.t1=e.t0()).done){e.next=30;break}if(i=e.t1.value,!n.hasOwnProperty(i)){e.next=28;break}e.t2=i,e.next=\"bw\"===e.t2?9:\"b\"===e.t2?13:\"c\"===e.t2?15:\"g\"===e.t2?17:\"p\"===e.t2?19:\"cbl\"===e.t2||\"ceb\"===e.t2||\"ced\"===e.t2||\"cee\"===e.t2||\"csh\"===e.t2?21:\"dns\"===e.t2?23:27;break;case 9:return e.next=11,t.ubnk(r);case 11:return r=e.sent,e.abrupt(\"break\",28);case 13:return r.blur(n[i]),e.abrupt(\"break\",28);case 15:return r.contrast(n[i]),e.abrupt(\"break\",28);case 17:return n[i]&&r.grayscale(),e.abrupt(\"break\",28);case 19:return r.pixelate(n[i]),e.abrupt(\"break\",28);case 21:return r.convolute([[n[i][0],n[i][1],n[i][2]],[n[i][3],n[i][4],n[i][5]],[n[i][6],n[i][7],n[i][8]]]),e.abrupt(\"break\",28);case 23:return e.next=25,t.Oe76(r,n[i][0],n[i][1]);case 25:return r=e.sent,e.abrupt(\"break\",28);case 27:return e.abrupt(\"break\",28);case 28:e.next=3;break;case 30:return e.abrupt(\"return\",r);case 31:case\"end\":return e.stop()}}),e)}))),function(t,e){return d.apply(this,arguments)})},{key:\"ubnk\",value:(p=Sr(Dr().mark((function t(e){var r,n,i;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=0,n=0,e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e,i){var o=this.bitmap.data[i+0],a=this.bitmap.data[i+1],s=this.bitmap.data[i+2];r+=.299*o+.587*a+.114*s,n++})),i=r/n,e.greyscale().threshold({max:i}),t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t){return p.apply(this,arguments)})},{key:\"He09J\",value:(h=Sr(Dr().mark((function t(e){var r,i,o,s=arguments;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:null,i=null,t.prev=2,\"string\"!=typeof e){t.next=20;break}if(!e.startsWith(\"data:image/\")){t.next=13;break}if(o=e.split(\",\")[1],r&&(i=r[o.subStr(0,256)]),i){t.next=11;break}return t.next=10,n.a.read(a.Buffer.from(o,\"base64\"));case 10:i=t.sent;case 11:t.next=18;break;case 13:if(r&&(i=r[e]),i){t.next=18;break}return t.next=17,n.a.read(e);case 17:i=t.sent;case 18:t.next=21;break;case 20:\"object\"===xr(e)&&(i=e);case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(2);case 26:return t.abrupt(\"return\",i);case 27:case\"end\":return t.stop()}}),t,null,[[2,23]])}))),function(t){return h.apply(this,arguments)})},{key:\"Df72H\",value:function(t,e,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=e.bitmap.data,o=[],a=[],s=[],u=0;u<i.length;u+=4)o.push(i[u]),a.push(i[u+1]),s.push(i[u+2]);var c=o.concat(a,s),f=new Float32Array(c.map((function(t){return t/255})));if(n)for(var l=[.485,.456,.406],h=[.229,.224,.225],p=0;p<f.length;p++)f[p]=(f[p]-l[p%3])/h[p%3];return new t.Tensor(\"float32\",f,r)}},{key:\"Khl9\",value:(l=Sr(Dr().mark((function e(r,i,o){var a,s,u,c;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.He09J(o);case 2:return(a=e.sent).resize(224,224,n.a.RESIZE_BILINEAR),s=t.Df72H(r,a,[1,3,224,224],!0),(u={})[i.inputNames[0]]=s,e.next=9,i.run(u);case 9:return c=e.sent,e.abrupt(\"return\",c[i.outputNames[0]].data);case 11:case\"end\":return e.stop()}}),e)}))),function(t,e,r){return l.apply(this,arguments)})},{key:\"qcbg\",value:(f=Sr(Dr().mark((function e(r,i,o,a,s){var u,c,f,l,h,p,d,m,g=arguments;return Dr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=g.length>5&&void 0!==g[5]?g[5]:null,e.next=3,t.He09J(o);case 3:return(c=e.sent).resize(s,s,n.a.RESIZE_BILINEAR),f=t.Df72H(i,c,[1,3,s,s],!0),(l={})[a.inputNames[0]]=f,e.next=10,a.run(l);case 10:if(h=e.sent,p=h[a.outputNames[0]],!u){e.next=21;break}return(l={})[u.inputNames[0]]=p,e.next=17,u.run(l);case 17:m=e.sent,d=m[u.outputNames[0]].data,e.next=22;break;case 21:d=p.data;case 22:return e.abrupt(\"return\",d);case 23:case\"end\":return e.stop()}}),e)}))),function(t,e,r,n,i){return f.apply(this,arguments)})},{key:\"vf8kv\",value:(c=Sr(Dr().mark((function t(e){var r,n,i,o,a;return Dr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(r=JSON.parse(JSON.stringify(e))).CSLc9jd,n=new TextEncoder,i=n.encode(r),t.next=6,crypto.subtle.digest(\"SHA-256\",i);case 6:return o=t.sent,a=Array.from(new Uint8Array(o)),t.abrupt(\"return\",a.map((function(t){return t.toString(16).padStart(2,\"0\")})).join(\"\"));case 9:case\"end\":return t.stop()}}),t)}))),function(t){return c.apply(this,arguments)})},{key:\"NdikP\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"av\",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i={};return Er(new Set([].concat(Er(Object.keys(t)),Er(Object.keys(e))))).forEach((function(o){var a=t[o],s=e[o];void 0!==a&&void 0!==s?\"av\"===r?i[o]=(a+s)/2:\"mx\"===r?i[o]=Math.max(a+s):\"mn\"===r?i[o]=Math.min(a+s):\"ad\"===r?i[o]=a+s:\"ft\"===r?i[o]=a:\"lt\"===r?i[o]=s:\"ap\"===r?i[o]=a+n:\"number\"==typeof r&&(i[o]=a*(1-r)+s*r):i[o]=void 0!==a?a:s})),i}},{key:\"Kiai\",value:function(t,e){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length,o=new Array(i>4?i-4:0),a=4;a<i;a++)o[a-4]=arguments[a];var u=o.length>0?\": [\":\"\";if(o.forEach((function(t){u=Array.isArray(t)?u.concat(t.sort().join(\" \")+\", \"):\"object\"===xr(t)&&null!==t?u.concat(JSON.stringify(t)+\", \"):u.concat(t+\", \")})),u=o.length>0?u.slice(0,-2).concat(\"]\"):\"\",t.t0&&t.t0 instanceof s.a){1===r?(t.t0.push(performance.now()),t.t0.size(),n?(-1,t.t0.push(-1)):t.t0.push(performance.now())):0===r?!t.t0.isEmpty()&&(-1===t.t0.pop()?(t.t0.push(-1),t.t0.size()):(performance.now(),t.t0.push(performance.now()),t.t0.size())):-1===r&&!t.t0.isEmpty()&&(t.t0.pop(),t.t0.size(),performance.now(),t.t0.pop())}}},{key:\"Ii24\",value:function(t){for(var e=t.replace(\"data:application/octet-stream;base64,\",\"\"),r=window.atob(e),n=new Uint8Array(r.length),i=0;i<r.length;++i)n[i]=r.charCodeAt(i);return n}},{key:\"Gg95\",value:function(t){var e=new Float32Array(t).buffer,r=_r.deflate(new Uint8Array(e));return btoa(String.fromCharCode.apply(String,Er(r)))}},{key:\"ud01\",value:function(t,e){var r=(t.length-1)*e,n=Math.floor(r),i=Math.ceil(r),o=r-n;return i===n?t[n]:t[n]*(1-o)+t[i]*o}},{key:\"Xe5nX\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1/0,n=0,i=1;i<t.length-e;i++){var o=t[i-1],a=t[i];if(o>1e-8){var s=a/o;s>r&&(r=s,n=i)}}return t[n]}},{key:\"Ch1b\",value:function(t){var e=0;t=t||\"\";for(var r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return e}}],r&&Mr(e.prototype,r),u&&Mr(e,u),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,u,c,f,l,h,p,d,m,g,y,v,b,w,_,x,E,A,D,k,S,M,C,T,O,F,B,I}()},function(t,e,r){\"use strict\";var n=r(25),i=r(19);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function a(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){var n;return n=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||l(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function l(t,e){if(t){if(\"string\"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var p=r(43),d=r(61),m=r.n(d),g=r(0);function y(t){return y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},y(t)}function v(t,e,r){var n;return n=function(t,e){if(\"object\"!=y(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=y(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==y(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=\"image/jpeg\",w=r(46);function _(t){return _=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_(t)}function x(t,e,r){var n;return n=function(t,e){if(\"object\"!=_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==_(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var E=\"image/png\",A=r(62),D=r.n(A);function k(t){return k=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},k(t)}function S(t,e,r){var n;return n=function(t,e){if(\"object\"!=k(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=k(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==k(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var M=\"image/bmp\",C=\"image/x-ms-bmp\";var T=function(t){return e=D.a.decode(t),Object(g.b)({bitmap:e},0,0,e.width,e.height,(function(t,r,n){var i=this.bitmap.data[n+0],o=this.bitmap.data[n+1],a=this.bitmap.data[n+2],s=this.bitmap.data[n+3];this.bitmap.data[n+0]=s,this.bitmap.data[n+1]=a,this.bitmap.data[n+2]=o,this.bitmap.data[n+3]=e.is_with_alpha?i:255})).bitmap;var e},O=function(t){return D.a.encode(function(t){return Object(g.b)(t,0,0,t.bitmap.width,t.bitmap.height,(function(t,e,r){var n=this.bitmap.data[r+0],i=this.bitmap.data[r+1],o=this.bitmap.data[r+2],a=this.bitmap.data[r+3];this.bitmap.data[r+0]=a,this.bitmap.data[r+1]=o,this.bitmap.data[r+2]=i,this.bitmap.data[r+3]=n})).bitmap}(t)).data},F=r(105),B=r(106);function I(t){return I=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},I(t)}var P=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],L=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18],N=r(107),j=r(108);function R(t){return R=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},R(t)}function z(t){var e=[1,9,3,11,13,5,15,7,4,12,2,10,16,8,14,6];return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,r,n){var i=e[((3&r)<<2)+t%4];this.bitmap.data[n]=Math.min(this.bitmap.data[n]+i,255),this.bitmap.data[n+1]=Math.min(this.bitmap.data[n+1]+i,255),this.bitmap.data[n+2]=Math.min(this.bitmap.data[n+2]+i,255)})),Object(g.a)(t)&&t.call(this,null,this),this}var U=r(109);function G(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t.r[this.bitmap.data[n+0]]++,t.g[this.bitmap.data[n+1]]++,t.b[this.bitmap.data[n+2]]++})),t}var H=function(t,e,r){return 255*(t-e)/(r-e)},q=function(t){return[t.findIndex((function(t){return t>0})),255-t.slice().reverse().findIndex((function(t){return t>0}))]},Z=r(110),W=r(112),Y=r(114);function X(t){return function(t){if(Array.isArray(t))return $(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return $(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var V=[function(){return{blit:function(t,e,r,n,i,o,a,s){if(!(t instanceof this.constructor))return g.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof r)return g.d.call(this,\"x and y must be numbers\",s);if(\"function\"==typeof n)s=n,n=0,i=0,o=t.bitmap.width,a=t.bitmap.height;else{if(I(n)!==I(i)||I(i)!==I(o)||I(o)!==I(a))return g.d.call(this,\"srcx, srcy, srcw, srch must be numbers\",s);n=n||0,i=i||0,o=o||t.bitmap.width,a=a||t.bitmap.height}e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i),o=Math.round(o),a=Math.round(a);var u=this.bitmap.width,c=this.bitmap.height,f=this;return t.scanQuiet(n,i,o,a,(function(t,o,a){var s=e+t-n,l=r+o-i;if(s>=0&&l>=0&&u-s>0&&c-l>0){var h=f.getPixelIndex(s,l),p={r:this.bitmap.data[a],g:this.bitmap.data[a+1],b:this.bitmap.data[a+2],a:this.bitmap.data[a+3]},d={r:f.bitmap.data[h],g:f.bitmap.data[h+1],b:f.bitmap.data[h+2],a:f.bitmap.data[h+3]};f.bitmap.data[h]=(p.a*(p.r-d.r)-d.r+255>>8)+d.r,f.bitmap.data[h+1]=(p.a*(p.g-d.g)-d.g+255>>8)+d.g,f.bitmap.data[h+2]=(p.a*(p.b-d.b)-d.b+255>>8)+d.b,f.bitmap.data[h+3]=this.constructor.limit255(d.a+p.a)}})),Object(g.a)(s)&&s.call(this,null,this),this}}},function(){return{blur:function(t,e){if(\"number\"!=typeof t)return g.d.call(this,\"r must be a number\",e);if(t<1)return g.d.call(this,\"r must be greater than 0\",e);for(var r,n,i,o,a,s,u,c,f,l,h,p,d,m,y=this.bitmap.width-1,v=this.bitmap.height-1,b=t+1,w=P[t],_=L[t],x=[],E=[],A=[],D=[],k=[],S=[],M=2;M-- >0;){for(p=0,d=0,s=0;s<this.bitmap.height;s++){for(r=this.bitmap.data[d]*b,n=this.bitmap.data[d+1]*b,i=this.bitmap.data[d+2]*b,o=this.bitmap.data[d+3]*b,u=1;u<=t;u++)c=d+((u>y?y:u)<<2),r+=this.bitmap.data[c++],n+=this.bitmap.data[c++],i+=this.bitmap.data[c++],o+=this.bitmap.data[c];for(a=0;a<this.bitmap.width;a++)x[p]=r,E[p]=n,A[p]=i,D[p]=o,0===s&&(k[a]=((c=a+b)<y?c:y)<<2,S[a]=(c=a-t)>0?c<<2:0),f=d+k[a],l=d+S[a],r+=this.bitmap.data[f++]-this.bitmap.data[l++],n+=this.bitmap.data[f++]-this.bitmap.data[l++],i+=this.bitmap.data[f++]-this.bitmap.data[l++],o+=this.bitmap.data[f]-this.bitmap.data[l],p++;d+=this.bitmap.width<<2}for(a=0;a<this.bitmap.width;a++){for(r=x[h=a]*b,n=E[h]*b,i=A[h]*b,o=D[h]*b,u=1;u<=t;u++)r+=x[h+=u>v?0:this.bitmap.width],n+=E[h],i+=A[h],o+=D[h];for(p=a<<2,s=0;s<this.bitmap.height;s++)m=o*w>>>_,this.bitmap.data[p+3]=m,m>255&&(this.bitmap.data[p+3]=255),m>0?(m=255/m,this.bitmap.data[p]=(r*w>>>_)*m,this.bitmap.data[p+1]=(n*w>>>_)*m,this.bitmap.data[p+2]=(i*w>>>_)*m):(this.bitmap.data[p+2]=0,this.bitmap.data[p+1]=0,this.bitmap.data[p]=0),0===a&&(k[s]=((c=s+b)<v?c:v)*this.bitmap.width,S[s]=(c=s-t)>0?c*this.bitmap.width:0),f=a+k[s],l=a+S[s],r+=x[f]-x[l],n+=E[f]-E[l],i+=A[f]-A[l],o+=D[f]-D[l],p+=this.bitmap.width<<2}}return Object(g.a)(e)&&e.call(this,null,this),this}}},function(){return{circle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;\"function\"==typeof t&&(e=t,t={});var r=t.radius||(this.bitmap.width>this.bitmap.height?this.bitmap.height:this.bitmap.width)/2,n=\"number\"==typeof t.x?t.x:this.bitmap.width/2,i=\"number\"==typeof t.y?t.y:this.bitmap.height/2;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,o){var a=Math.sqrt(Math.pow(t-n,2)+Math.pow(e-i,2));r-a<=0?this.bitmap.data[o+3]=0:r-a<1&&(this.bitmap.data[o+3]=255*(r-a))})),Object(g.a)(e)&&e.call(this,null,this),this}}},N.a,function(){return{contain:function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return g.d.call(this,\"w and h must be numbers\",i);\"string\"==typeof r&&(\"function\"==typeof n&&void 0===i&&(i=n),n=r,r=null),\"function\"==typeof r&&(void 0===i&&(i=r),n=null,r=null),\"function\"==typeof n&&void 0===i&&(i=n,n=null);var o=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=r>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return g.d.call(this,\"only use one flag per alignment direction\",i);var s=o>>1,u=a>>1,c=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,f=this.cloneQuiet().scale(c,n);return this.resize(t,e,n),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)})),this.blit(f,(this.bitmap.width-f.bitmap.width)/2*s,(this.bitmap.height-f.bitmap.height)/2*u),Object(g.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return g.d.call(this,\"w and h must be numbers\",i);r&&\"function\"==typeof r&&void 0===i?(i=r,r=null,n=null):\"function\"==typeof n&&void 0===i&&(i=n,n=null);var o=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=r>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return g.d.call(this,\"only use one flag per alignment direction\",i);var s=o>>1,u=a>>1,c=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(c,n),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*u,t,e),Object(g.a)(i)&&i.call(this,null,this),this}}},j.a,function(){return{displace:function(t,e,r){if(\"object\"!==R(t)||t.constructor!==this.constructor)return g.d.call(this,\"The source must be a Jimp image\",r);if(\"number\"!=typeof e)return g.d.call(this,\"factor must be a number\",r);var n=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,i,o){var a=t.bitmap.data[o]/256*e;a=Math.round(a);var s=this.getPixelIndex(r+a,i);this.bitmap.data[s]=n.bitmap.data[o],this.bitmap.data[s+1]=n.bitmap.data[o+1],this.bitmap.data[s+2]=n.bitmap.data[o+2]})),Object(g.a)(r)&&r.call(this,null,this),this}}},function(){return{dither565:z,dither16:z}},function(){return{fisheye:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{r:2.5},r=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(r=e,e={r:2.5});var n=this.cloneQuiet(),i=n.bitmap,o=i.width,a=i.height;return n.scanQuiet(0,0,o,a,(function(r,i){var s=r/o,u=i/a,c=Math.sqrt(Math.pow(s-.5,2)+Math.pow(u-.5,2)),f=2*Math.pow(c,e.r),l=(s-.5)/c,h=(u-.5)/c,p=Math.round((f*l+.5)*o),d=Math.round((f*h+.5)*a),m=n.getPixelColor(p,d);t.setPixelColor(m,r,i)})),this.setPixelColor(n.getPixelColor(o/2,a/2),o/2,a/2),Object(g.a)(r)&&r.call(this,null,this),this}}},U.a,function(){return{gaussian:function(t,e){if(\"number\"!=typeof t)return g.d.call(this,\"r must be a number\",e);if(t<1)return g.d.call(this,\"r must be greater than 0\",e);for(var r=Math.ceil(2.57*t),n=2*r+1,i=t*t*2,o=i*Math.PI,a=[],s=0;s<n;s++){a[s]=[];for(var u=0;u<n;u++){var c=Math.pow(u-r,2)+Math.pow(s-r,2);a[s][u]=Math.exp(-c/i)/o}}for(var f=0;f<this.bitmap.height;f++)for(var l=0;l<this.bitmap.width;l++)for(var h=0,p=0,d=0,m=0,y=0,v=0;v<n;v++){for(var b=0;b<n;b++){var w=Math.min(this.bitmap.width-1,Math.max(0,b+l-r)),_=Math.min(this.bitmap.height-1,Math.max(0,v+f-r)),x=a[v][b],E=_*this.bitmap.width+w<<2;h+=this.bitmap.data[E]*x,p+=this.bitmap.data[E+1]*x,d+=this.bitmap.data[E+2]*x,m+=this.bitmap.data[E+3]*x,y+=x}var A=f*this.bitmap.width+l<<2;this.bitmap.data[A]=Math.round(h/y),this.bitmap.data[A+1]=Math.round(p/y),this.bitmap.data[A+2]=Math.round(d/y),this.bitmap.data[A+3]=Math.round(m/y)}return Object(g.a)(e)&&e.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=255-this.bitmap.data[r],this.bitmap.data[r+1]=255-this.bitmap.data[r+1],this.bitmap.data[r+2]=255-this.bitmap.data[r+2]})),Object(g.a)(t)&&t.call(this,null,this),this}}},function(){return{mask:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return g.d.call(this,\"The source must be a Jimp image\",n);if(\"number\"!=typeof e||\"number\"!=typeof r)return g.d.call(this,\"x and y must be numbers\",n);e=Math.round(e),r=Math.round(r);var i=this.bitmap.width,o=this.bitmap.height,a=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,s){var u=e+t,c=r+n;if(u>=0&&c>=0&&u<i&&c<o){var f=a.getPixelIndex(u,c),l=this.bitmap.data,h=(l[s+0]+l[s+1]+l[s+2])/3;a.bitmap.data[f+3]*=h/255}})),Object(g.a)(n)&&n.call(this,null,this),this}}},function(){return{normalize:function(t){var e=G.call(this),r={r:q(e.r),g:q(e.g),b:q(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){var i=this.bitmap.data[n+0],o=this.bitmap.data[n+1],a=this.bitmap.data[n+2];this.bitmap.data[n+0]=H(i,r.r[0],r.r[1]),this.bitmap.data[n+1]=H(o,r.g[0],r.g[1]),this.bitmap.data[n+2]=H(a,r.b[0],r.b[1])})),Object(g.a)(t)&&t.call(this,null,this),this}}},Z.a,W.a,Y.a,function(){return{scale:function(t,e,r){if(\"number\"!=typeof t)return g.d.call(this,\"f must be a number\",r);if(t<0)return g.d.call(this,\"f must be a positive number\",r);\"function\"==typeof e&&void 0===r&&(r=e,e=null);var n=this.bitmap.width*t,i=this.bitmap.height*t;return this.resize(n,i,e),Object(g.a)(r)&&r.call(this,null,this),this},scaleToFit:function(t,e,r,n){if(\"number\"!=typeof t||\"number\"!=typeof e)return g.d.call(this,\"w and h must be numbers\",n);\"function\"==typeof r&&void 0===n&&(n=r,r=null);var i=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,r),Object(g.a)(n)&&n.call(this,null,this),this}}},function(){return{shadow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(r=e,e={});var n=e,i=n.opacity,o=void 0===i?.7:i,a=n.size,s=void 0===a?1.1:a,u=n.x,c=void 0===u?-25:u,f=n.y,l=void 0===f?25:f,h=n.blur,p=void 0===h?5:h,d=this.clone(),m=this.clone();return m.scan(0,0,m.bitmap.width,m.bitmap.height,(function(e,r,n){m.bitmap.data[n]=0,m.bitmap.data[n+1]=0,m.bitmap.data[n+2]=0,m.bitmap.data[n+3]=m.constructor.limit255(m.bitmap.data[n+3]*o),t.bitmap.data[n]=0,t.bitmap.data[n+1]=0,t.bitmap.data[n+2]=0,t.bitmap.data[n+3]=0})),m.resize(m.bitmap.width*s,m.bitmap.height*s).blur(p),this.composite(m,c,l),this.composite(d,0,0),Object(g.a)(r)&&r.call(this,null,this),this}}},function(){return{threshold:function(t,e){var r=this,n=t.max,i=t.replace,o=void 0===i?255:i,a=t.autoGreyscale,s=void 0===a||a;return\"number\"!=typeof n?g.d.call(this,\"max must be a number\",e):\"number\"!=typeof o?g.d.call(this,\"replace must be a number\",e):\"boolean\"!=typeof s?g.d.call(this,\"autoGreyscale must be a boolean\",e):(n=this.constructor.limit255(n),o=this.constructor.limit255(o),s&&this.greyscale(),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,i){var a=r.bitmap.data[i]<n?r.bitmap.data[i]:o;r.bitmap.data[i]=a,r.bitmap.data[i+1]=a,r.bitmap.data[i+2]=a})),Object(g.a)(e)&&e.call(this,null,this),this)}}}];e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.c,r={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function o(t){Object.entries(t).forEach((function(t){var e=f(t,2),n=e[0],i=e[1];r[n]=u(u({},r[n]),i)}))}return t.types&&(t.types.forEach((function(t){var e=t();Array.isArray(e.mime)?i.a.apply(void 0,a(e.mime)):Object.entries(e.mime).forEach((function(t){return i.a.apply(void 0,a(t))})),delete e.mime,o(e)})),e.decoders=u(u({},e.decoders),r.decoders),e.encoders=u(u({},e.encoders),r.encoders),e.hasAlpha=u(u({},e.hasAlpha),r.hasAlpha)),t.plugins&&t.plugins.forEach((function(t){var e=t(n.d)||{};e.class||e.constants?o(e):o({class:e})})),Object(n.b)(r.class,e),Object(n.a)(r.constants,e),n.c}({types:[function(){return Object(p.mergeDeep)({mime:v({},b,[\"jpeg\",\"jpg\",\"jpe\"]),constants:{MIME_JPEG:b},decoders:v({},b,m.a.decode),encoders:v({},b,(function(t){return m.a.encode(t.bitmap,t._quality).data})),class:{_quality:100,quality:function(t,e){return\"number\"!=typeof t?g.d.call(this,\"n must be a number\",e):t<0||t>100?g.d.call(this,\"n must be a number 0 - 100\",e):(this._quality=Math.round(t),Object(g.a)(e)&&e.call(this,null,this),this)}}},{mime:x({},E,[\"png\"]),constants:{MIME_PNG:E,PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:x({},E,!0),decoders:x({},E,w.PNG.sync.read),encoders:x({},E,(function(t){var e=new w.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,w.PNG.sync.write(e,{deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:\"number\"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})})),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return\"number\"!=typeof t?g.d.call(this,\"l must be a number\",e):t<0||t>9?g.d.call(this,\"l must be a number 0 - 9\",e):(this._deflateLevel=Math.round(t),Object(g.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return\"number\"!=typeof t?g.d.call(this,\"s must be a number\",e):t<0||t>3?g.d.call(this,\"s must be a number 0 - 3\",e):(this._deflateStrategy=Math.round(t),Object(g.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return\"number\"!=typeof t?g.d.call(this,\"n must be a number\",e):t<-1||t>4?g.d.call(this,\"n must be -1 (auto) or a number 0 - 4\",e):(this._filterType=Math.round(t),Object(g.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return\"number\"!=typeof t?g.d.call(this,\"s must be a number\",e):0!==t&&2!==t&&4!==t&&6!==t?g.d.call(this,\"s must be a number 0, 2, 4, 6.\",e):(this._colorType=Math.round(t),Object(g.a)(e)&&e.call(this,null,this),this)}}},{mime:S({},M,[\"bmp\"]),constants:{MIME_BMP:M,MIME_X_MS_BMP:C},decoders:S(S({},M,T),C,T),encoders:S(S({},M,O),C,O)},Object(F.a)(),Object(B.a)())}],plugins:[function(t){var e=V.map((function(e){var r=e(t)||{};return r.class||r.constants||(r={class:r}),r}));return p.mergeDeep.apply(void 0,X(e))}]})},function(t,e,r){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(r){\"use strict\";var o=Math.cosh||function(t){return Math.abs(t)<1e-9?1-t:.5*(Math.exp(t)+Math.exp(-t))},a=Math.sinh||function(t){return Math.abs(t)<1e-9?t:.5*(Math.exp(t)-Math.exp(-t))},s=function(){throw SyntaxError(\"Invalid Param\")};function u(t,e){var r=Math.abs(t),n=Math.abs(e);return 0===t?Math.log(n):0===e?Math.log(r):r<3e3&&n<3e3?.5*Math.log(t*t+e*e):(t/=2,e/=2,.5*Math.log(t*t+e*e)+Math.LN2)}function c(t,e){if(!(this instanceof c))return new c(t,e);var r=function(t,e){var r={re:0,im:0};if(null==t)r.re=r.im=0;else if(void 0!==e)r.re=t,r.im=e;else switch(i(t)){case\"object\":if(\"im\"in t&&\"re\"in t)r.re=t.re,r.im=t.im;else if(\"abs\"in t&&\"arg\"in t){if(!Number.isFinite(t.abs)&&Number.isFinite(t.arg))return c.INFINITY;r.re=t.abs*Math.cos(t.arg),r.im=t.abs*Math.sin(t.arg)}else if(\"r\"in t&&\"phi\"in t){if(!Number.isFinite(t.r)&&Number.isFinite(t.phi))return c.INFINITY;r.re=t.r*Math.cos(t.phi),r.im=t.r*Math.sin(t.phi)}else 2===t.length?(r.re=t[0],r.im=t[1]):s();break;case\"string\":r.im=r.re=0;var n=t.match(/\\d+\\.?\\d*e[+-]?\\d+|\\d+\\.?\\d*|\\.\\d+|./g),o=1,a=0;null===n&&s();for(var u=0;u<n.length;u++){var f=n[u];\" \"===f||\"\\t\"===f||\"\\n\"===f||(\"+\"===f?o++:\"-\"===f?a++:\"i\"===f||\"I\"===f?(o+a===0&&s(),\" \"===n[u+1]||isNaN(n[u+1])?r.im+=parseFloat((a%2?\"-\":\"\")+\"1\"):(r.im+=parseFloat((a%2?\"-\":\"\")+n[u+1]),u++),o=a=0):((o+a===0||isNaN(f))&&s(),\"i\"===n[u+1]||\"I\"===n[u+1]?(r.im+=parseFloat((a%2?\"-\":\"\")+f),u++):r.re+=parseFloat((a%2?\"-\":\"\")+f),o=a=0))}o+a>0&&s();break;case\"number\":r.im=0,r.re=t;break;default:s()}return isNaN(r.re)||isNaN(r.im),r}(t,e);this.re=r.re,this.im=r.im}c.prototype={re:0,im:0,sign:function(){var t=this.abs();return new c(this.re/t,this.im/t)},add:function(t,e){var r=new c(t,e);return this.isInfinite()&&r.isInfinite()?c.NAN:this.isInfinite()||r.isInfinite()?c.INFINITY:new c(this.re+r.re,this.im+r.im)},sub:function(t,e){var r=new c(t,e);return this.isInfinite()&&r.isInfinite()?c.NAN:this.isInfinite()||r.isInfinite()?c.INFINITY:new c(this.re-r.re,this.im-r.im)},mul:function(t,e){var r=new c(t,e);return this.isInfinite()&&r.isZero()||this.isZero()&&r.isInfinite()?c.NAN:this.isInfinite()||r.isInfinite()?c.INFINITY:0===r.im&&0===this.im?new c(this.re*r.re,0):new c(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(t,e){var r=new c(t,e);if(this.isZero()&&r.isZero()||this.isInfinite()&&r.isInfinite())return c.NAN;if(this.isInfinite()||r.isZero())return c.INFINITY;if(this.isZero()||r.isInfinite())return c.ZERO;t=this.re,e=this.im;var n,i,o=r.re,a=r.im;return 0===a?new c(t/o,e/o):Math.abs(o)<Math.abs(a)?new c((t*(i=o/a)+e)/(n=o*i+a),(e*i-t)/n):new c((t+e*(i=a/o))/(n=a*i+o),(e-t*i)/n)},pow:function(t,e){var r=new c(t,e);if(t=this.re,e=this.im,r.isZero())return c.ONE;if(0===r.im){if(0===e&&t>0)return new c(Math.pow(t,r.re),0);if(0===t)switch((r.re%4+4)%4){case 0:return new c(Math.pow(e,r.re),0);case 1:return new c(0,Math.pow(e,r.re));case 2:return new c(-Math.pow(e,r.re),0);case 3:return new c(0,-Math.pow(e,r.re))}}if(0===t&&0===e&&r.re>0&&r.im>=0)return c.ZERO;var n=Math.atan2(e,t),i=u(t,e);return t=Math.exp(r.re*i-r.im*n),e=r.im*i+r.re*n,new c(t*Math.cos(e),t*Math.sin(e))},sqrt:function(){var t,e,r=this.re,n=this.im,i=this.abs();if(r>=0){if(0===n)return new c(Math.sqrt(r),0);t=.5*Math.sqrt(2*(i+r))}else t=Math.abs(n)/Math.sqrt(2*(i-r));return e=r<=0?.5*Math.sqrt(2*(i-r)):Math.abs(n)/Math.sqrt(2*(i+r)),new c(t,n<0?-e:e)},exp:function(){var t=Math.exp(this.re);return this.im,new c(t*Math.cos(this.im),t*Math.sin(this.im))},expm1:function(){var t=this.re,e=this.im;return new c(Math.expm1(t)*Math.cos(e)+function(t){var e=Math.PI/4;if(-e>t||t>e)return Math.cos(t)-1;var r=t*t;return r*(r*(r*(r*(r*(r*(r*(r/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5)}(e),Math.exp(t)*Math.sin(e))},log:function(){var t=this.re,e=this.im;return new c(u(t,e),Math.atan2(e,t))},abs:function(){return t=this.re,e=this.im,r=Math.abs(t),n=Math.abs(e),r<3e3&&n<3e3?Math.sqrt(r*r+n*n):(r<n?(r=n,n=t/e):n=e/t,r*Math.sqrt(1+n*n));var t,e,r,n},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var t=this.re,e=this.im;return new c(Math.sin(t)*o(e),Math.cos(t)*a(e))},cos:function(){var t=this.re,e=this.im;return new c(Math.cos(t)*o(e),-Math.sin(t)*a(e))},tan:function(){var t=2*this.re,e=2*this.im,r=Math.cos(t)+o(e);return new c(Math.sin(t)/r,a(e)/r)},cot:function(){var t=2*this.re,e=2*this.im,r=Math.cos(t)-o(e);return new c(-Math.sin(t)/r,a(e)/r)},sec:function(){var t=this.re,e=this.im,r=.5*o(2*e)+.5*Math.cos(2*t);return new c(Math.cos(t)*o(e)/r,Math.sin(t)*a(e)/r)},csc:function(){var t=this.re,e=this.im,r=.5*o(2*e)-.5*Math.cos(2*t);return new c(Math.sin(t)*o(e)/r,-Math.cos(t)*a(e)/r)},asin:function(){var t=this.re,e=this.im,r=new c(e*e-t*t+1,-2*t*e).sqrt(),n=new c(r.re-e,r.im+t).log();return new c(n.im,-n.re)},acos:function(){var t=this.re,e=this.im,r=new c(e*e-t*t+1,-2*t*e).sqrt(),n=new c(r.re-e,r.im+t).log();return new c(Math.PI/2-n.im,n.re)},atan:function(){var t=this.re,e=this.im;if(0===t){if(1===e)return new c(0,1/0);if(-1===e)return new c(0,-1/0)}var r=t*t+(1-e)*(1-e),n=new c((1-e*e-t*t)/r,-2*t/r).log();return new c(-.5*n.im,.5*n.re)},acot:function(){var t=this.re,e=this.im;if(0===e)return new c(Math.atan2(1,t),0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).atan():new c(0!==t?t/0:0,0!==e?-e/0:0).atan()},asec:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new c(0,1/0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).acos():new c(0!==t?t/0:0,0!==e?-e/0:0).acos()},acsc:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new c(Math.PI/2,1/0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).asin():new c(0!==t?t/0:0,0!==e?-e/0:0).asin()},sinh:function(){var t=this.re,e=this.im;return new c(a(t)*Math.cos(e),o(t)*Math.sin(e))},cosh:function(){var t=this.re,e=this.im;return new c(o(t)*Math.cos(e),a(t)*Math.sin(e))},tanh:function(){var t=2*this.re,e=2*this.im,r=o(t)+Math.cos(e);return new c(a(t)/r,Math.sin(e)/r)},coth:function(){var t=2*this.re,e=2*this.im,r=o(t)-Math.cos(e);return new c(a(t)/r,-Math.sin(e)/r)},csch:function(){var t=this.re,e=this.im,r=Math.cos(2*e)-o(2*t);return new c(-2*a(t)*Math.cos(e)/r,2*o(t)*Math.sin(e)/r)},sech:function(){var t=this.re,e=this.im,r=Math.cos(2*e)+o(2*t);return new c(2*o(t)*Math.cos(e)/r,-2*a(t)*Math.sin(e)/r)},asinh:function(){var t=this.im;this.im=-this.re,this.re=t;var e=this.asin();return this.re=-this.im,this.im=t,t=e.re,e.re=-e.im,e.im=t,e},acosh:function(){var t=this.acos();if(t.im<=0){var e=t.re;t.re=-t.im,t.im=e}else{e=t.im;t.im=-t.re,t.re=e}return t},atanh:function(){var t=this.re,e=this.im,r=t>1&&0===e,n=1-t,i=1+t,o=n*n+e*e,a=0!==o?new c((i*n-e*e)/o,(e*n+i*e)/o):new c(-1!==t?t/0:0,0!==e?e/0:0),s=a.re;return a.re=u(a.re,a.im)/2,a.im=Math.atan2(a.im,s)/2,r&&(a.im=-a.im),a},acoth:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new c(0,Math.PI/2);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).atanh():new c(0!==t?t/0:0,0!==e?-e/0:0).atanh()},acsch:function(){var t=this.re,e=this.im;if(0===e)return new c(0!==t?Math.log(t+Math.sqrt(t*t+1)):1/0,0);var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).asinh():new c(0!==t?t/0:0,0!==e?-e/0:0).asinh()},asech:function(){var t=this.re,e=this.im;if(this.isZero())return c.INFINITY;var r=t*t+e*e;return 0!==r?new c(t/r,-e/r).acosh():new c(0!==t?t/0:0,0!==e?-e/0:0).acosh()},inverse:function(){if(this.isZero())return c.INFINITY;if(this.isInfinite())return c.ZERO;var t=this.re,e=this.im,r=t*t+e*e;return new c(t/r,-e/r)},conjugate:function(){return new c(this.re,-this.im)},neg:function(){return new c(-this.re,-this.im)},ceil:function(t){return t=Math.pow(10,t||0),new c(Math.ceil(this.re*t)/t,Math.ceil(this.im*t)/t)},floor:function(t){return t=Math.pow(10,t||0),new c(Math.floor(this.re*t)/t,Math.floor(this.im*t)/t)},round:function(t){return t=Math.pow(10,t||0),new c(Math.round(this.re*t)/t,Math.round(this.im*t)/t)},equals:function(t,e){var r=new c(t,e);return Math.abs(r.re-this.re)<=c.EPSILON&&Math.abs(r.im-this.im)<=c.EPSILON},clone:function(){return new c(this.re,this.im)},toString:function(){var t=this.re,e=this.im,r=\"\";return this.isNaN()?\"NaN\":this.isInfinite()?\"Infinity\":(Math.abs(t)<c.EPSILON&&(t=0),Math.abs(e)<c.EPSILON&&(e=0),0===e?r+t:(0!==t?(r+=t,r+=\" \",e<0?(e=-e,r+=\"-\"):r+=\"+\",r+=\" \"):e<0&&(e=-e,r+=\"-\"),1!==e&&(r+=e),r+\"i\"))},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isNaN(this.re)||isNaN(this.im)})),isZero:function(){return 0===this.im&&0===this.re},isFinite:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isFinite(this.re)&&isFinite(this.im)})),isInfinite:function(){return!(this.isNaN()||this.isFinite())}},c.ZERO=new c(0,0),c.ONE=new c(1,0),c.I=new c(0,1),c.PI=new c(Math.PI,0),c.E=new c(Math.E,0),c.INFINITY=new c(1/0,1/0),c.NAN=new c(NaN,NaN),c.EPSILON=1e-15,void 0===(n=function(){return c}.apply(e,[]))||(t.exports=n)}()},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];\".\"===i?t.splice(n,1):\"..\"===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift(\"..\");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e=\"\",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if(\"string\"!=typeof a)throw new TypeError(\"Arguments to path.resolve must be strings\");a&&(e=a+\"/\"+e,i=\"/\"===a.charAt(0))}return(i?\"/\":\"\")+(e=r(n(e.split(\"/\"),(function(t){return!!t})),!i).join(\"/\"))||\".\"},e.normalize=function(t){var o=e.isAbsolute(t),a=\"/\"===i(t,-1);return(t=r(n(t.split(\"/\"),(function(t){return!!t})),!o).join(\"/\"))||o||(t=\".\"),t&&a&&(t+=\"/\"),(o?\"/\":\"\")+t},e.isAbsolute=function(t){return\"/\"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"Arguments to path.join must be strings\");return t})).join(\"/\"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&\"\"===t[e];e++);for(var r=t.length-1;r>=0&&\"\"===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split(\"/\")),o=n(r.split(\"/\")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push(\"..\");return(c=c.concat(o.slice(s))).join(\"/\")},e.sep=\"/\",e.delimiter=\":\",e.dirname=function(t){if(\"string\"!=typeof t&&(t+=\"\"),0===t.length)return\".\";for(var e=t.charCodeAt(0),r=47===e,n=-1,i=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?\"/\":\".\":r&&1===n?\"/\":t.slice(0,n)},e.basename=function(t,e){var r=function(t){\"string\"!=typeof t&&(t+=\"\");var e,r=0,n=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?\"\":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){\"string\"!=typeof t&&(t+=\"\");for(var e=-1,r=0,n=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){r=a+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===r+1?\"\":t.slice(e,n)};var i=\"b\"===\"ab\".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(7))},function(t,e){var r,n,i=t.exports={};function o(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r=\"function\"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n=\"function\"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,c=[],f=!1,l=-1;function h(){f&&u&&(f=!1,u.length?c=u.concat(c):l=-1,c.length&&p())}function p(){if(!f){var t=s(h);f=!0;for(var e=c.length;e;){for(u=c,c=[];++l<e;)u&&u[l].run();l=-1,e=c.length}u=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new d(t,e)),1!==c.length||f||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title=\"browser\",i.browser=!0,i.env={},i.argv=[],i.version=\"\",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error(\"process.binding is not supported\")},i.cwd=function(){return\"/\"},i.chdir=function(t){throw new Error(\"process.chdir is not supported\")},i.umask=function(){return 0}},function(t,e){function r(){return t.exports=r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,r.apply(this,arguments)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new Error(\"define cannot be used indirect\")}},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(t){\"object\"===(\"undefined\"==typeof window?\"undefined\":r(window))&&(n=window)}t.exports=n},function(t,e){},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}!function(r){\"use strict\";var i={s:1,n:0,d:1};function o(t,e){if(isNaN(t=parseInt(t,10)))throw h();return t*e}function a(t,e){if(0===e)throw l();var r=Object.create(f.prototype);r.s=t<0?-1:1;var n=c(t=t<0?-t:t,e);return r.n=t/n,r.d=e/n,r}function s(t){for(var e={},r=t,n=2,i=4;i<=r;){for(;r%n==0;)r/=n,e[n]=(e[n]||0)+1;i+=1+2*n++}return r!==t?r>1&&(e[r]=(e[r]||0)+1):e[t]=(e[t]||0)+1,e}var u=function(t,e){var r,a=0,s=1,u=1,c=0,f=0,d=0,m=1,g=1,y=0,v=1,b=1,w=1,_=1e7;if(null==t);else if(void 0!==e){if(u=(a=t)*(s=e),a%1!=0||s%1!=0)throw p()}else switch(n(t)){case\"object\":if(\"d\"in t&&\"n\"in t)a=t.n,s=t.d,\"s\"in t&&(a*=t.s);else{if(!(0 in t))throw h();a=t[0],1 in t&&(s=t[1])}u=a*s;break;case\"number\":if(t<0&&(u=t,t=-t),t%1==0)a=t;else if(t>0){for(t>=1&&(t/=g=Math.pow(10,Math.floor(1+Math.log(t)/Math.LN10)));v<=_&&w<=_;){if(t===(r=(y+b)/(v+w))){v+w<=_?(a=y+b,s=v+w):w>v?(a=b,s=w):(a=y,s=v);break}t>r?(y+=b,v+=w):(b+=y,w+=v),v>_?(a=b,s=w):(a=y,s=v)}a*=g}else(isNaN(t)||isNaN(e))&&(s=a=NaN);break;case\"string\":if(null===(v=t.match(/\\d+|./g)))throw h();if(\"-\"===v[y]?(u=-1,y++):\"+\"===v[y]&&y++,v.length===y+1?f=o(v[y++],u):\".\"===v[y+1]||\".\"===v[y]?(\".\"!==v[y]&&(c=o(v[y++],u)),(++y+1===v.length||\"(\"===v[y+1]&&\")\"===v[y+3]||\"'\"===v[y+1]&&\"'\"===v[y+3])&&(f=o(v[y],u),m=Math.pow(10,v[y].length),y++),(\"(\"===v[y]&&\")\"===v[y+2]||\"'\"===v[y]&&\"'\"===v[y+2])&&(d=o(v[y+1],u),g=Math.pow(10,v[y+1].length)-1,y+=3)):\"/\"===v[y+1]||\":\"===v[y+1]?(f=o(v[y],u),m=o(v[y+2],1),y+=3):\"/\"===v[y+3]&&\" \"===v[y+1]&&(c=o(v[y],u),f=o(v[y+2],u),m=o(v[y+4],1),y+=5),v.length<=y){u=a=d+(s=m*g)*c+g*f;break}default:throw h()}if(0===s)throw l();i.s=u<0?-1:1,i.n=Math.abs(a),i.d=Math.abs(s)};function c(t,e){if(!t)return e;if(!e)return t;for(;;){if(!(t%=e))return e;if(!(e%=t))return t}}function f(t,e){if(u(t,e),!(this instanceof f))return a(i.s*i.n,i.d);t=c(i.d,i.n),this.s=i.s,this.n=i.n/t,this.d=i.d/t}var l=function(){return new Error(\"Division by Zero\")},h=function(){return new Error(\"Invalid argument\")},p=function(){return new Error(\"Parameters must be integer\")};f.prototype={s:1,n:0,d:1,abs:function(){return a(this.n,this.d)},neg:function(){return a(-this.s*this.n,this.d)},add:function(t,e){return u(t,e),a(this.s*this.n*i.d+i.s*this.d*i.n,this.d*i.d)},sub:function(t,e){return u(t,e),a(this.s*this.n*i.d-i.s*this.d*i.n,this.d*i.d)},mul:function(t,e){return u(t,e),a(this.s*i.s*this.n*i.n,this.d*i.d)},div:function(t,e){return u(t,e),a(this.s*i.s*this.n*i.d,this.d*i.n)},clone:function(){return a(this.s*this.n,this.d)},mod:function(t,e){if(isNaN(this.n)||isNaN(this.d))return new f(NaN);if(void 0===t)return a(this.s*this.n%this.d,1);if(u(t,e),0===i.n&&0===this.d)throw l();return a(this.s*(i.d*this.n)%(i.n*this.d),i.d*this.d)},gcd:function(t,e){return u(t,e),a(c(i.n,this.n)*c(i.d,this.d),i.d*this.d)},lcm:function(t,e){return u(t,e),0===i.n&&0===this.n?a(0,1):a(i.n*this.n,c(i.n,this.n)*c(i.d,this.d))},ceil:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new f(NaN):a(Math.ceil(t*this.s*this.n/this.d),t)},floor:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new f(NaN):a(Math.floor(t*this.s*this.n/this.d),t)},round:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new f(NaN):a(Math.round(t*this.s*this.n/this.d),t)},inverse:function(){return a(this.s*this.d,this.n)},pow:function(t,e){if(u(t,e),1===i.d)return i.s<0?a(Math.pow(this.s*this.d,i.n),Math.pow(this.n,i.n)):a(Math.pow(this.s*this.n,i.n),Math.pow(this.d,i.n));if(this.s<0)return null;var r=s(this.n),n=s(this.d),o=1,c=1;for(var f in r)if(\"1\"!==f){if(\"0\"===f){o=0;break}if(r[f]*=i.n,r[f]%i.d!=0)return null;r[f]/=i.d,o*=Math.pow(f,r[f])}for(var f in n)if(\"1\"!==f){if(n[f]*=i.n,n[f]%i.d!=0)return null;n[f]/=i.d,c*=Math.pow(f,n[f])}return i.s<0?a(c,o):a(o,c)},equals:function(t,e){return u(t,e),this.s*this.n*i.d==i.s*i.n*this.d},compare:function(t,e){u(t,e);var r=this.s*this.n*i.d-i.s*i.n*this.d;return(0<r)-(r<0)},simplify:function(t){if(isNaN(this.n)||isNaN(this.d))return this;t=t||.001;for(var e=this.abs(),r=e.toContinued(),n=1;n<r.length;n++){for(var i=a(r[n-1],1),o=n-2;o>=0;o--)i=i.inverse().add(r[o]);if(Math.abs(i.sub(e).valueOf())<t)return i.mul(this.s)}return this},divisible:function(t,e){return u(t,e),!(!(i.n*this.d)||this.n*i.d%(i.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(t){var e,r=\"\",n=this.n,i=this.d;return this.s<0&&(r+=\"-\"),1===i?r+=n:(t&&(e=Math.floor(n/i))>0&&(r+=e,r+=\" \",n%=i),r+=n,r+=\"/\",r+=i),r},toLatex:function(t){var e,r=\"\",n=this.n,i=this.d;return this.s<0&&(r+=\"-\"),1===i?r+=n:(t&&(e=Math.floor(n/i))>0&&(r+=e,n%=i),r+=\"\\\\frac{\",r+=n,r+=\"}{\",r+=i,r+=\"}\"),r},toContinued:function(){var t,e=this.n,r=this.d,n=[];if(isNaN(e)||isNaN(r))return n;do{n.push(Math.floor(e/r)),t=e%r,e=r,r=t}while(1!==e);return n},toString:function(t){var e=this.n,r=this.d;if(isNaN(e)||isNaN(r))return\"NaN\";t=t||15;var n=function(t,e){for(;e%2==0;e/=2);for(;e%5==0;e/=5);if(1===e)return 0;for(var r=10%e,n=1;1!==r;n++)if(r=10*r%e,n>2e3)return 0;return n}(0,r),i=function(t,e,r){for(var n=1,i=function(t,e,r){for(var n=1;e>0;t=t*t%r,e>>=1)1&e&&(n=n*t%r);return n}(10,r,e),o=0;o<300;o++){if(n===i)return o;n=10*n%e,i=10*i%e}return 0}(0,r,n),o=this.s<0?\"-\":\"\";if(o+=e/r|0,e%=r,(e*=10)&&(o+=\".\"),n){for(var a=i;a--;)o+=e/r|0,e%=r,e*=10;o+=\"(\";for(a=n;a--;)o+=e/r|0,e%=r,e*=10;o+=\")\"}else for(a=t;e&&a--;)o+=e/r|0,e%=r,e*=10;return o}},\"object\"===n(e)?(Object.defineProperty(f,\"__esModule\",{value:!0}),f.default=f,f.Fraction=f,t.exports=f):r.Fraction=f}(this)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,\"loaded\",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,\"id\",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},o=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(\" \")}r=1;for(var n=arguments,i=n.length,a=String(t).replace(o,(function(t){if(\"%%\"===t)return\"%\";if(r>=i)return t;switch(t){case\"%s\":return String(n[r++]);case\"%d\":return Number(n[r++]);case\"%j\":try{return JSON.stringify(n[r++])}catch(t){return\"[Circular]\"}default:return t}})),s=n[r];r<i;s=n[++r])g(s)||!_(s)?a+=\" \"+s:a+=\" \"+u(s);return a},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation&&console.trace(n),i=!0}return r.apply(this,arguments)}};var a,s={};function u(t,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,t,n.depth)}function c(t,e){var r=u.styles[e];return r?\"\u001b[\"+u.colors[r][0]+\"m\"+t+\"\u001b[\"+u.colors[r][1]+\"m\":t}function f(t,e){return t}function l(t,r,n){if(t.customInspect&&r&&A(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return v(i)||(i=l(t,i,n)),i}var o=function(t,e){if(b(e))return t.stylize(\"undefined\",\"undefined\");if(v(e)){var r=\"'\"+JSON.stringify(e).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return t.stylize(r,\"string\")}if(y(e))return t.stylize(\"\"+e,\"number\");if(m(e))return t.stylize(\"\"+e,\"boolean\");if(g(e))return t.stylize(\"null\",\"null\")}(t,r);if(o)return o;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf(\"message\")>=0||a.indexOf(\"description\")>=0))return h(r);if(0===a.length){if(A(r)){var u=r.name?\": \"+r.name:\"\";return t.stylize(\"[Function\"+u+\"]\",\"special\")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),\"regexp\");if(x(r))return t.stylize(Date.prototype.toString.call(r),\"date\");if(E(r))return h(r)}var c,f=\"\",_=!1,D=[\"{\",\"}\"];(d(r)&&(_=!0,D=[\"[\",\"]\"]),A(r))&&(f=\" [Function\"+(r.name?\": \"+r.name:\"\")+\"]\");return w(r)&&(f=\" \"+RegExp.prototype.toString.call(r)),x(r)&&(f=\" \"+Date.prototype.toUTCString.call(r)),E(r)&&(f=\" \"+h(r)),0!==a.length||_&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),\"regexp\"):t.stylize(\"[Object]\",\"special\"):(t.seen.push(r),c=_?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a<s;++a)M(e,String(a))?o.push(p(t,e,r,n,String(a),!0)):o.push(\"\");return i.forEach((function(i){i.match(/^\\d+$/)||o.push(p(t,e,r,n,i,!0))})),o}(t,r,n,s,a):a.map((function(e){return p(t,r,n,s,e,_)})),t.seen.pop(),function(t,e,r){var n=t.reduce((function(t,e){return e.indexOf(\"\\n\")>=0&&0,t+e.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1}),0);if(n>60)return r[0]+(\"\"===e?\"\":e+\"\\n \")+\" \"+t.join(\",\\n  \")+\" \"+r[1];return r[0]+e+\" \"+t.join(\", \")+\" \"+r[1]}(c,f,D)):D[0]+f+D[1]}function h(t){return\"[\"+Error.prototype.toString.call(t)+\"]\"}function p(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize(\"[Getter/Setter]\",\"special\"):t.stylize(\"[Getter]\",\"special\"):u.set&&(s=t.stylize(\"[Setter]\",\"special\")),M(n,i)||(a=\"[\"+i+\"]\"),s||(t.seen.indexOf(u.value)<0?(s=g(r)?l(t,u.value,null):l(t,u.value,r-1)).indexOf(\"\\n\")>-1&&(s=o?s.split(\"\\n\").map((function(t){return\"  \"+t})).join(\"\\n\").substr(2):\"\\n\"+s.split(\"\\n\").map((function(t){return\"   \"+t})).join(\"\\n\")):s=t.stylize(\"[Circular]\",\"special\")),b(a)){if(o&&i.match(/^\\d+$/))return s;(a=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,\"name\")):(a=a.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),a=t.stylize(a,\"string\"))}return a+\": \"+s}function d(t){return Array.isArray(t)}function m(t){return\"boolean\"==typeof t}function g(t){return null===t}function y(t){return\"number\"==typeof t}function v(t){return\"string\"==typeof t}function b(t){return void 0===t}function w(t){return _(t)&&\"[object RegExp]\"===D(t)}function _(t){return\"object\"===n(t)&&null!==t}function x(t){return _(t)&&\"[object Date]\"===D(t)}function E(t){return _(t)&&(\"[object Error]\"===D(t)||t instanceof Error)}function A(t){return\"function\"==typeof t}function D(t){return Object.prototype.toString.call(t)}function k(t){return t<10?\"0\"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(b(a)&&(a=t.env.NODE_DEBUG||\"\"),r=r.toUpperCase(),!s[r])if(new RegExp(\"\\\\b\"+r+\"\\\\b\",\"i\").test(a)){t.pid;s[r]=function(){e.format.apply(e,arguments)}}else s[r]=function(){};return s[r]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},e.isArray=d,e.isBoolean=m,e.isNull=g,e.isNullOrUndefined=function(t){return null==t},e.isNumber=y,e.isString=v,e.isSymbol=function(t){return\"symbol\"===n(t)},e.isUndefined=b,e.isRegExp=w,e.isObject=_,e.isDate=x,e.isError=E,e.isFunction=A,e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===n(t)||void 0===t},e.isBuffer=r(144);var S=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function M(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;t=new Date,r=[k(t.getHours()),k(t.getMinutes()),k(t.getSeconds())].join(\":\"),[t.getDate(),S[t.getMonth()],r].join(\" \"),e.format.apply(e,arguments)},e.inherits=r(145),e._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var C=\"undefined\"!=typeof Symbol?Symbol(\"util.promisify.custom\"):void 0;function T(t,e){if(!t){var r=new Error(\"Promise was rejected with a falsy value\");r.reason=t,t=r}return e(t)}e.promisify=function(t){if(\"function\"!=typeof t)throw new TypeError('The \"original\" argument must be of type Function');if(C&&t[C]){var e;if(\"function\"!=typeof(e=t[C]))throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');return Object.defineProperty(e,C,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),C&&Object.defineProperty(e,C,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=C,e.callbackify=function(e){if(\"function\"!=typeof e)throw new TypeError('The \"original\" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if(\"function\"!=typeof i)throw new TypeError(\"The last argument must be of type Function\");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,r).then((function(e){t.nextTick(a,null,e)}),(function(e){t.nextTick(T,e,a)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,i(e)),r}}).call(this,r(7))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(\"object\"!==n(r))throw new TypeError(r+\"must be non-object\");for(var i in r)o(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var a={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},s={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,a)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,r){var n,i,o;function a(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}o=function(){\"use strict\";function t(){return!0}function e(){return!1}function r(){}var n=\"Argument is not a typed-function.\",i=function i(){function o(t){return\"object\"===u(t)&&null!==t&&t.constructor===Object}var s,c,f=[{name:\"number\",test:function(t){return\"number\"==typeof t}},{name:\"string\",test:function(t){return\"string\"==typeof t}},{name:\"boolean\",test:function(t){return\"boolean\"==typeof t}},{name:\"Function\",test:function(t){return\"function\"==typeof t}},{name:\"Array\",test:Array.isArray},{name:\"Date\",test:function(t){return t instanceof Date}},{name:\"RegExp\",test:function(t){return t instanceof RegExp}},{name:\"Object\",test:o},{name:\"null\",test:function(t){return null===t}},{name:\"undefined\",test:function(t){return void 0===t}}],l={name:\"any\",test:t,isAny:!0},h=0,p={createCount:0};function d(t){var e=s.get(t);if(e)return e;var r,n,i='Unknown type \"'+t+'\"',o=t.toLowerCase(),u=a(c);try{for(u.s();!(n=u.n()).done;)if((r=n.value).toLowerCase()===o){i+='. Did you mean \"'+r+'\" ?';break}}catch(t){u.e(t)}finally{u.f()}throw new TypeError(i)}function m(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"any\",r=e?d(e).index:c.length,n=[],i=0;i<t.length;++i){if(!t[i]||\"string\"!=typeof t[i].name||\"function\"!=typeof t[i].test)throw new TypeError(\"Object with properties {name: string, test: function} expected\");var o=t[i].name;if(s.has(o))throw new TypeError('Duplicate type name \"'+o+'\"');n.push(o),s.set(o,{name:o,test:t[i].test,isAny:t[i].isAny,index:r+i,conversionsTo:[]})}var a=c.slice(r);c=c.slice(0,r).concat(n).concat(a);for(var u=r+n.length;u<c.length;++u)s.get(c[u]).index=u}function g(){s=new Map,c=[],h=0,m([l],!1)}function y(t){var e=c.filter((function(e){var r=s.get(e);return!r.isAny&&r.test(t)}));return e.length?e:[\"any\"]}function v(t){return t&&\"function\"==typeof t&&\"_typedFunctionData\"in t}function b(t,e,r){if(!v(t))throw new TypeError(n);var i=r&&r.exact,o=A(Array.isArray(e)?e.join(\",\"):e),s=w(o);if(!i||s in t.signatures){var u=t._typedFunctionData.signatureMap.get(s);if(u)return u}var c,f,l,h=o.length;if(i)for(f in c=[],t.signatures)c.push(t._typedFunctionData.signatureMap.get(f));else c=t._typedFunctionData.signatures;for(var p=0;p<h;++p){var d,m=o[p],g=[],y=void 0,b=a(c);try{var _=function(){var t=M((y=d.value).params,p);if(!t||m.restParam&&!t.restParam)return 0;if(!t.hasAny){var e=E(t);if(m.types.some((function(t){return!e.has(t.name)})))return 0}g.push(y)};for(b.s();!(d=b.n()).done;)_()}catch(t){b.e(t)}finally{b.f()}if(0===(c=g).length)break}var x,D=a(c);try{for(D.s();!(x=D.n()).done;)if((l=x.value).params.length<=h)return l}catch(t){D.e(t)}finally{D.f()}throw new TypeError(\"Signature not found (signature: \"+(t.name||\"unnamed\")+\"(\"+w(o,\", \")+\"))\")}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\",\";return t.map((function(t){return t.name})).join(e)}function _(t){var e=0===t.indexOf(\"...\"),r=(e?t.length>3?t.slice(3):\"any\":t).split(\"|\").map((function(t){return d(t.trim())})),n=!1,i=e?\"...\":\"\";return{types:r.map((function(t){return n=t.isAny||n,i+=t.name+\"|\",{name:t.name,typeIndex:t.index,test:t.test,isAny:t.isAny,conversion:null,conversionIndex:-1}})),name:i.slice(0,-1),hasAny:n,hasConversion:!1,restParam:e}}function x(t){var e=function(t){if(0===t.length)return[];var e=t.map(d);t.length>1&&e.sort((function(t,e){return t.index-e.index}));var r=e[0].conversionsTo;if(1===t.length)return r;r=r.concat([]);for(var n=new Set(t),i=1;i<e.length;++i){var o,s=void 0,u=a(e[i].conversionsTo);try{for(u.s();!(o=u.n()).done;)s=o.value,n.has(s.from)||(r.push(s),n.add(s.from))}catch(t){u.e(t)}finally{u.f()}}return r}(t.types.map((function(t){return t.name}))),r=t.hasAny,n=t.name,i=e.map((function(t){var e=d(t.from);return r=e.isAny||r,n+=\"|\"+t.from,{name:t.from,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:t,conversionIndex:t.index}}));return{types:t.types.concat(i),name:n,hasAny:r,hasConversion:i.length>0,restParam:t.restParam}}function E(t){return t.typeSet||(t.typeSet=new Set,t.types.forEach((function(e){return t.typeSet.add(e.name)}))),t.typeSet}function A(t){var e=[];if(\"string\"!=typeof t)throw new TypeError(\"Signatures must be strings\");var r=t.trim();if(\"\"===r)return e;for(var n=r.split(\",\"),i=0;i<n.length;++i){var o=_(n[i].trim());if(o.restParam&&i!==n.length-1)throw new SyntaxError('Unexpected rest parameter \"'+n[i]+'\": only allowed for the last parameter');if(0===o.types.length)return null;e.push(o)}return e}function D(t){var e=Z(t);return!!e&&e.restParam}function k(e){if(e&&0!==e.types.length){if(1===e.types.length)return d(e.types[0].name).test;if(2===e.types.length){var r=d(e.types[0].name).test,n=d(e.types[1].name).test;return function(t){return r(t)||n(t)}}var i=e.types.map((function(t){return d(t.name).test}));return function(t){for(var e=0;e<i.length;e++)if(i[e](t))return!0;return!1}}return t}function S(t){var e,r,n;if(D(t)){var i=(e=q(t).map(k)).length,o=k(Z(t));return function(t){for(var r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return function(t){for(var e=i;e<t.length;e++)if(!o(t[e]))return!1;return!0}(t)&&t.length>=i+1}}return 0===t.length?function(t){return 0===t.length}:1===t.length?(r=k(t[0]),function(t){return r(t[0])&&1===t.length}):2===t.length?(r=k(t[0]),n=k(t[1]),function(t){return r(t[0])&&n(t[1])&&2===t.length}):(e=t.map(k),function(t){for(var r=0;r<e.length;r++)if(!e[r](t[r]))return!1;return t.length===e.length})}function M(t,e){return e<t.length?t[e]:D(t)?Z(t):null}function C(t,e){var r=M(t,e);return r?E(r):new Set}function T(t){return null===t.conversion||void 0===t.conversion}function O(t,e){var r=new Set;return t.forEach((function(t){var n,i,o=a(C(t.params,e));try{for(o.s();!(i=o.n()).done;)n=i.value,r.add(n)}catch(t){o.e(t)}finally{o.f()}})),r.has(\"any\")?[\"any\"]:Array.from(r)}function F(t,e,r){var n,i,o,a,s=t||\"unnamed\",u=r,c=function(){var t=[];if(u.forEach((function(r){var n=k(M(r.params,o));(o<r.params.length||D(r.params))&&n(e[o])&&t.push(r)})),0===t.length){if((i=O(u,o)).length>0){var r=y(e[o]);return(n=new TypeError(\"Unexpected type of argument in function \"+s+\" (expected: \"+i.join(\" or \")+\", actual: \"+r.join(\" | \")+\", index: \"+o+\")\")).data={category:\"wrongType\",fn:s,index:o,actual:r,expected:i},{v:n}}}else u=t};for(o=0;o<e.length;o++)if(a=c())return a.v;var f=u.map((function(t){return D(t.params)?1/0:t.params.length}));if(e.length<Math.min.apply(null,f))return i=O(u,o),(n=new TypeError(\"Too few arguments in function \"+s+\" (expected: \"+i.join(\" or \")+\", index: \"+e.length+\")\")).data={category:\"tooFewArgs\",fn:s,index:e.length,expected:i},n;var l=Math.max.apply(null,f);if(e.length>l)return(n=new TypeError(\"Too many arguments in function \"+s+\" (expected: \"+l+\", actual: \"+e.length+\")\")).data={category:\"tooManyArgs\",fn:s,index:e.length,expectedLength:l},n;for(var h=[],p=0;p<e.length;++p)h.push(y(e[p]).join(\"|\"));return(n=new TypeError('Arguments of type \"'+h.join(\", \")+'\" do not match any of the defined signatures of function '+s+\".\")).data={category:\"mismatch\",actual:h},n}function B(t){for(var e=c.length+1,r=0;r<t.types.length;r++)T(t.types[r])&&(e=Math.min(e,t.types[r].typeIndex));return e}function I(t){for(var e=h+1,r=0;r<t.types.length;r++)T(t.types[r])||(e=Math.min(e,t.types[r].conversionIndex));return e}function P(t,e){if(t.hasAny){if(!e.hasAny)return 1}else if(e.hasAny)return-1;if(t.restParam){if(!e.restParam)return 1}else if(e.restParam)return-1;if(t.hasConversion){if(!e.hasConversion)return 1}else if(e.hasConversion)return-1;var r=B(t)-B(e);if(r<0)return-1;if(r>0)return 1;var n=I(t)-I(e);return n<0?-1:n>0?1:0}function L(t,e){var r=t.params,n=e.params,i=Z(r),o=Z(n),s=D(r),u=D(n);if(s&&i.hasAny){if(!u||!o.hasAny)return 1}else if(u&&o.hasAny)return-1;var c,f,l=0,h=0,p=a(r);try{for(p.s();!(f=p.n()).done;)(c=f.value).hasAny&&++l,c.hasConversion&&++h}catch(t){p.e(t)}finally{p.f()}var d,m=0,g=0,y=a(n);try{for(y.s();!(d=y.n()).done;)(c=d.value).hasAny&&++m,c.hasConversion&&++g}catch(t){y.e(t)}finally{y.f()}if(l!==m)return l-m;if(s&&i.hasConversion){if(!u||!o.hasConversion)return 1}else if(u&&o.hasConversion)return-1;if(h!==g)return h-g;if(s){if(!u)return 1}else if(u)return-1;var v=(r.length-n.length)*(s?-1:1);if(0!==v)return v;for(var b,w=[],_=0,x=0;x<r.length;++x){var E=P(r[x],n[x]);w.push(E),_+=E}if(0!==_)return _;for(var A=0,k=w;A<k.length;A++)if(0!==(b=k[A]))return b;return 0}function N(t,e){var r=e;if(t.some((function(t){return t.hasConversion}))){var n=D(t),i=t.map(j);r=function(){for(var t=[],r=n?arguments.length-1:arguments.length,o=0;o<r;o++)t[o]=i[o](arguments[o]);return n&&(t[r]=arguments[r].map(i[r])),e.apply(this,t)}}var o=r;if(D(t)){var a=t.length-1;o=function(){return r.apply(this,W(arguments,0,a).concat([W(arguments,a)]))}}return o}function j(t){var e,r,n,i,o=[],a=[];switch(t.types.forEach((function(t){t.conversion&&(o.push(d(t.conversion.from).test),a.push(t.conversion.convert))})),a.length){case 0:return function(t){return t};case 1:return e=o[0],n=a[0],function(t){return e(t)?n(t):t};case 2:return e=o[0],r=o[1],n=a[0],i=a[1],function(t){return e(t)?n(t):r(t)?i(t):t};default:return function(t){for(var e=0;e<a.length;e++)if(o[e](t))return a[e](t);return t}}}function R(t){return function t(e,r,n){if(r<e.length){var i=e[r],o=[];if(i.restParam){var a=i.types.filter(T);a.length<i.types.length&&o.push({types:a,name:\"...\"+a.map((function(t){return t.name})).join(\"|\"),hasAny:a.some((function(t){return t.isAny})),hasConversion:!1,restParam:!0}),o.push(i)}else o=i.types.map((function(t){return{types:[t],name:t.name,hasAny:t.isAny,hasConversion:t.conversion,restParam:!1}}));return s=o,u=function(i){return t(e,r+1,n.concat([i]))},Array.prototype.concat.apply([],s.map(u))}return[n];var s,u}(t,0,[])}function z(t,e,r){var n,i,o=[],s=a(t);try{for(s.s();!(i=s.n()).done;){var u=r[n=i.value];if(\"number\"!=typeof u)throw new TypeError('No definition for referenced signature \"'+n+'\"');if(\"function\"!=typeof(u=e[u]))return!1;o.push(u)}}catch(t){s.e(t)}finally{s.f()}return o}function U(t,e,r){for(var n=function(t){return t.map((function(t){return V(t)?X(t.referToSelf.callback):$(t)?Y(t.referTo.references,t.referTo.callback):t}))}(t),i=new Array(n.length).fill(!1),o=!0;o;){o=!1;for(var a=!0,s=0;s<n.length;++s)if(!i[s]){var u=n[s];if(V(u))n[s]=u.referToSelf.callback(r),n[s].referToSelf=u.referToSelf,i[s]=!0,a=!1;else if($(u)){var c=z(u.referTo.references,n,e);c?(n[s]=u.referTo.callback.apply(this,c),n[s].referTo=u.referTo,i[s]=!0,a=!1):o=!0}}if(a&&o)throw new SyntaxError(\"Circular reference detected in resolving typed.referTo\")}return n}function G(t,n){if(p.createCount++,0===Object.keys(n).length)throw new SyntaxError(\"No signatures provided\");p.warnAgainstDeprecatedThis&&function(t){var e=/\\bthis(\\(|\\.signatures\\b)/;Object.keys(t).forEach((function(r){var n=t[r];if(e.test(n.toString()))throw new SyntaxError(\"Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.\")}))}(n);var i,o=[],s=[],u={},c=[],f=function(){if(!Object.prototype.hasOwnProperty.call(n,i))return 0;var t=A(i);if(!t)return 0;o.forEach((function(e){if(function(t,e){for(var r=Math.max(t.length,e.length),n=0;n<r;n++){var i,o=C(t,n),s=!1,u=void 0,c=a(C(e,n));try{for(c.s();!(i=c.n()).done;)if(u=i.value,o.has(u)){s=!0;break}}catch(t){c.e(t)}finally{c.f()}if(!s)return!1}var f=t.length,l=e.length,h=D(t),p=D(e);return h?p?f===l:l>=f:p?f>=l:f===l}(e,t))throw new TypeError('Conflicting signatures \"'+w(e)+'\" and \"'+w(t)+'\".')})),o.push(t);var e=s.length;s.push(n[i]);var r,f,l=a(R(t.map(x)));try{for(l.s();!(f=l.n()).done;){var h=w(r=f.value);c.push({params:r,name:h,fn:e}),r.every((function(t){return!t.hasConversion}))&&(u[h]=e)}}catch(t){l.e(t)}finally{l.f()}};for(i in n)f();c.sort(L);var l,h=U(s,u,pt);for(l in u)Object.prototype.hasOwnProperty.call(u,l)&&(u[l]=h[u[l]]);for(var d=[],m=new Map,g=0,y=c;g<y.length;g++)l=y[g],m.has(l.name)||(l.fn=h[l.fn],d.push(l),m.set(l.name,l));for(var v=d[0]&&d[0].params.length<=2&&!D(d[0].params),b=d[1]&&d[1].params.length<=2&&!D(d[1].params),_=d[2]&&d[2].params.length<=2&&!D(d[2].params),E=d[3]&&d[3].params.length<=2&&!D(d[3].params),M=d[4]&&d[4].params.length<=2&&!D(d[4].params),T=d[5]&&d[5].params.length<=2&&!D(d[5].params),O=v&&b&&_&&E&&M&&T,F=0;F<d.length;++F)d[F].test=S(d[F].params);for(var B=v?k(d[0].params[0]):e,I=b?k(d[1].params[0]):e,P=_?k(d[2].params[0]):e,j=E?k(d[3].params[0]):e,z=M?k(d[4].params[0]):e,G=T?k(d[5].params[0]):e,H=v?k(d[0].params[1]):e,q=b?k(d[1].params[1]):e,Z=_?k(d[2].params[1]):e,W=E?k(d[3].params[1]):e,Y=M?k(d[4].params[1]):e,X=T?k(d[5].params[1]):e,$=0;$<d.length;++$)d[$].implementation=N(d[$].params,d[$].fn);var V=v?d[0].implementation:r,J=b?d[1].implementation:r,Q=_?d[2].implementation:r,K=E?d[3].implementation:r,tt=M?d[4].implementation:r,et=T?d[5].implementation:r,rt=v?d[0].params.length:-1,nt=b?d[1].params.length:-1,it=_?d[2].params.length:-1,ot=E?d[3].params.length:-1,at=M?d[4].params.length:-1,st=T?d[5].params.length:-1,ut=O?6:0,ct=d.length,ft=d.map((function(t){return t.test})),lt=d.map((function(t){return t.implementation})),ht=function(){for(var e=ut;e<ct;e++)if(ft[e](arguments))return lt[e].apply(this,arguments);return p.onMismatch(t,arguments,d)};function pt(t,e){return arguments.length===rt&&B(t)&&H(e)?V.apply(this,arguments):arguments.length===nt&&I(t)&&q(e)?J.apply(this,arguments):arguments.length===it&&P(t)&&Z(e)?Q.apply(this,arguments):arguments.length===ot&&j(t)&&W(e)?K.apply(this,arguments):arguments.length===at&&z(t)&&Y(e)?tt.apply(this,arguments):arguments.length===st&&G(t)&&X(e)?et.apply(this,arguments):ht.apply(this,arguments)}try{Object.defineProperty(pt,\"name\",{value:t})}catch(t){}return pt.signatures=u,pt._typedFunctionData={signatures:d,signatureMap:m},pt}function H(t,e,r){throw F(t,e,r)}function q(t){return W(t,0,t.length-1)}function Z(t){return t[t.length-1]}function W(t,e,r){return Array.prototype.slice.call(t,e,r)}function Y(t,e){return{referTo:{references:t,callback:e}}}function X(t){if(\"function\"!=typeof t)throw new TypeError(\"Callback function expected as first argument\");return{referToSelf:{callback:t}}}function $(t){return t&&\"object\"===u(t.referTo)&&Array.isArray(t.referTo.references)&&\"function\"==typeof t.referTo.callback}function V(t){return t&&\"object\"===u(t.referToSelf)&&\"function\"==typeof t.referToSelf.callback}function J(t,e){if(!t)return e;if(e&&e!==t){var r=new Error(\"Function names do not match (expected: \"+t+\", actual: \"+e+\")\");throw r.data={actual:e,expected:t},r}return t}function Q(t){var e;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(v(t[r])||\"string\"==typeof t[r].signature)&&(e=J(e,t[r].name));return e}function K(t,e){var r;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(r in t&&e[r]!==t[r]){var n=new Error('Signature \"'+r+'\" is defined twice');throw n.data={signature:r,sourceFunction:e[r],destFunction:t[r]},n}t[r]=e[r]}}g(),m(f);var tt=p;function et(t){if(!t||\"string\"!=typeof t.from||\"string\"!=typeof t.to||\"function\"!=typeof t.convert)throw new TypeError(\"Object with properties {from: string, to: string, convert: function} expected\");if(t.to===t.from)throw new SyntaxError('Illegal to define conversion from \"'+t.from+'\" to itself.')}return p=function(t){for(var e=\"string\"==typeof t,r=e?t:\"\",n={},i=e?1:0;i<arguments.length;++i){var a=arguments[i],s={},u=void 0;if(\"function\"==typeof a?(u=a.name,\"string\"==typeof a.signature?s[a.signature]=a:v(a)&&(s=a.signatures)):o(a)&&(s=a,e||(u=Q(a))),0===Object.keys(s).length){var c=new TypeError(\"Argument to 'typed' at index \"+i+\" is not a (typed) function, nor an object with signatures as keys and functions as values.\");throw c.data={index:i,argument:a},c}e||(r=J(r,u)),K(n,s)}return G(r||\"\",n)},p.create=i,p.createCount=tt.createCount,p.onMismatch=H,p.throwMismatchError=H,p.createError=F,p.clear=g,p.clearConversions=function(){var t,e,r=a(c);try{for(r.s();!(e=r.n()).done;)t=e.value,s.get(t).conversionsTo=[]}catch(t){r.e(t)}finally{r.f()}h=0},p.addTypes=m,p._findType=d,p.referTo=function(){var t=q(arguments).map((function(t){return w(A(t))})),e=Z(arguments);if(\"function\"!=typeof e)throw new TypeError(\"Callback function expected as last argument\");return Y(t,e)},p.referToSelf=X,p.convert=function(t,e){var r=d(e);if(r.test(t))return t;var n=r.conversionsTo;if(0===n.length)throw new Error(\"There are no conversions to \"+e+\" defined.\");for(var i=0;i<n.length;i++)if(d(n[i].from).test(t))return n[i].convert(t);throw new Error(\"Cannot convert \"+t+\" to \"+e)},p.findSignature=b,p.find=function(t,e,r){return b(t,e,r).implementation},p.isTypedFunction=v,p.warnAgainstDeprecatedThis=!0,p.addType=function(t,e){var r=\"any\";!1!==e&&s.has(\"Object\")&&(r=\"Object\"),p.addTypes([t],r)},p.addConversion=function(t){et(t);var e=d(t.to);if(!e.conversionsTo.every((function(e){return e.from!==t.from})))throw new Error('There is already a conversion from \"'+t.from+'\" to \"'+e.name+'\"');e.conversionsTo.push({from:t.from,convert:t.convert,index:h++})},p.addConversions=function(t){t.forEach(p.addConversion)},p.removeConversion=function(t){et(t);var e=d(t.to),r=function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return t[r]}(e.conversionsTo,(function(e){return e.from===t.from}));if(!r)throw new Error(\"Attempt to remove nonexistent conversion from \"+t.from+\" to \"+t.to);if(r.convert!==t.convert)throw new Error(\"Conversion to remove does not match existing conversion\");var n=e.conversionsTo.indexOf(r);e.conversionsTo.splice(n,1)},p.resolve=function(t,e){if(!v(t))throw new TypeError(n);for(var r=t._typedFunctionData.signatures,i=0;i<r.length;++i)if(r[i].test(e))return r[i];return null},p}();return i},\"object\"===u(e)&&void 0!==t?t.exports=o():void 0===(i=\"function\"==typeof(n=o)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){\"use strict\";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){for(var r=0,n=0;n<e.length;n++)if(t.chars[e[n]]){var i=t.kernings[e[n]]&&t.kernings[e[n]][e[n+1]]?t.kernings[e[n]][e[n+1]]:0;r+=(t.chars[e[n]].xadvance||0)+i}return r}function a(t,e,r){var i=e.replace(/[\\r\\n]+/g,\" \\n\").split(\" \"),a=[],s=[],u=0;return i.forEach((function(e){var i=[].concat(n(s),[e]).join(\" \"),c=o(t,i);c<=r&&!e.includes(\"\\n\")?(c>u&&(u=c),s.push(e)):(a.push(s),s=[e.replace(\"\\n\",\"\")])})),a.push(s),{lines:a,longestLine:u}}function s(t,e,r){return a(t,e,r).lines.length*t.common.lineHeight}r.d(e,\"a\",(function(){return o})),r.d(e,\"c\",(function(){return a})),r.d(e,\"b\",(function(){return s}))},function(t,e,r){\"use strict\";var n=r(39),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=l;var o=Object.create(r(27));o.inherits=r(24);var a=r(70),s=r(52);o.inherits(l,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var f=u[c];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(t){if(!(this instanceof l))return new l(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once(\"end\",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(t){t.end()}Object.defineProperty(l.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),l.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return i})),r.d(e,\"c\",(function(){return o})),r.d(e,\"b\",(function(){return a}));var n={},i=function(t,e){n[t]=e},o=function(t){var e=t.split(\"/\").slice(-1),r=function(t){return Object.entries(n).find((function(e){return e[1].includes(t)}))||[]}(e[e.length-1].split(\".\").pop());return r[0]},a=function(t){return(n[t.toLowerCase()]||[])[0]}},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"AUTO\",(function(){return n})),r.d(e,\"HORIZONTAL_ALIGN_LEFT\",(function(){return i})),r.d(e,\"HORIZONTAL_ALIGN_CENTER\",(function(){return o})),r.d(e,\"HORIZONTAL_ALIGN_RIGHT\",(function(){return a})),r.d(e,\"VERTICAL_ALIGN_TOP\",(function(){return s})),r.d(e,\"VERTICAL_ALIGN_MIDDLE\",(function(){return u})),r.d(e,\"VERTICAL_ALIGN_BOTTOM\",(function(){return c})),r.d(e,\"BLEND_SOURCE_OVER\",(function(){return f})),r.d(e,\"BLEND_DESTINATION_OVER\",(function(){return l})),r.d(e,\"BLEND_MULTIPLY\",(function(){return h})),r.d(e,\"BLEND_ADD\",(function(){return p})),r.d(e,\"BLEND_SCREEN\",(function(){return d})),r.d(e,\"BLEND_OVERLAY\",(function(){return m})),r.d(e,\"BLEND_DARKEN\",(function(){return g})),r.d(e,\"BLEND_LIGHTEN\",(function(){return y})),r.d(e,\"BLEND_HARDLIGHT\",(function(){return v})),r.d(e,\"BLEND_DIFFERENCE\",(function(){return b})),r.d(e,\"BLEND_EXCLUSION\",(function(){return w})),r.d(e,\"EDGE_EXTEND\",(function(){return _})),r.d(e,\"EDGE_WRAP\",(function(){return x})),r.d(e,\"EDGE_CROP\",(function(){return E}));var n=-1,i=1,o=2,a=4,s=8,u=16,c=32,f=\"srcOver\",l=\"dstOver\",h=\"multiply\",p=\"add\",d=\"screen\",m=\"overlay\",g=\"darken\",y=\"lighten\",v=\"hardLight\",b=\"difference\",w=\"exclusion\",_=1,x=2,E=3},function(t,e,r){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(o){\"use strict\";var a,s,u,c=9e15,f=1e9,l=\"0123456789abcdef\",h=\"2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058\",p=\"3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789\",d={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-c,maxE:c,crypto:!1},m=!0,g=\"[DecimalError] \",y=g+\"Invalid argument: \",v=g+\"Precision limit exceeded\",b=g+\"crypto unavailable\",w=\"[object Decimal]\",_=Math.floor,x=Math.pow,E=/^0b([01]+(\\.[01]*)?|\\.[01]+)(p[+-]?\\d+)?$/i,A=/^0x([0-9a-f]+(\\.[0-9a-f]*)?|\\.[0-9a-f]+)(p[+-]?\\d+)?$/i,D=/^0o([0-7]+(\\.[0-7]*)?|\\.[0-7]+)(p[+-]?\\d+)?$/i,k=/^(\\d+(\\.\\d*)?|\\.\\d+)(e[+-]?\\d+)?$/i,S=1e7,M=7,C=h.length-1,T=p.length-1,O={toStringTag:w};function F(t){var e,r,n,i=t.length-1,o=\"\",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+\"\",(r=M-n.length)&&(o+=H(r)),o+=n;a=t[e],(r=M-(n=a+\"\").length)&&(o+=H(r))}else if(0===a)return\"0\";for(;a%10==0;)a/=10;return o+a}function B(t,e,r){if(t!==~~t||t<e||t>r)throw Error(y+t)}function I(t,e,r,n){var i,o,a,s;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=M,i=0):(i=Math.ceil((e+1)/M),e%=M),o=x(10,M-e),s=t[i]%o|0,null==n?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(t[i+1]/o/100|0)==x(10,e-2)-1||(s==o/2||0==s)&&!(t[i+1]/o/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),a=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>3&&s+1==o/2)&&(t[i+1]/o/1e3|0)==x(10,e-3)-1,a}function P(t,e,r){for(var n,i,o=[0],a=0,s=t.length;a<s;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=l.indexOf(t.charAt(a++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}O.absoluteValue=O.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),N(t)},O.ceil=function(){return N(new this.constructor(this),this.e+1,2)},O.clampedTo=O.clamp=function(t,e){var r=this,n=r.constructor;if(t=new n(t),e=new n(e),!t.s||!e.s)return new n(NaN);if(t.gt(e))throw Error(y+e);return r.cmp(t)<0?t:r.cmp(e)>0?e:new n(r)},O.comparedTo=O.cmp=function(t){var e,r,n,i,o=this,a=o.d,s=(t=new o.constructor(t)).d,u=o.s,c=t.s;if(!a||!s)return u&&c?u!==c?u:a===s?0:!a^u<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?u:s[0]?-c:0;if(u!==c)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,r=(n=a.length)<(i=s.length)?n:i;e<r;++e)if(a[e]!==s[e])return a[e]>s[e]^u<0?1:-1;return n===i?0:n>i^u<0?1:-1},O.cosine=O.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+M,n.rounding=1,r=function(t,e){var r,n,i;if(e.isZero())return e;n=e.d.length,n<32?i=(1/K(4,r=Math.ceil(n/3))).toString():(r=16,i=\"2.3283064365386962890625e-10\");t.precision+=r,e=Q(t,1,e.times(i),new t(1));for(var o=r;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=r,e}(n,tt(n,r)),n.precision=t,n.rounding=e,N(2==u||3==u?r.neg():r,t,e,!0)):new n(1):new n(NaN)},O.cubeRoot=O.cbrt=function(){var t,e,r,n,i,o,a,s,u,c,f=this,l=f.constructor;if(!f.isFinite()||f.isZero())return new l(f);for(m=!1,(o=f.s*x(f.s*f,1/3))&&Math.abs(o)!=1/0?n=new l(o.toString()):(r=F(f.d),(o=((t=f.e)-r.length+1)%3)&&(r+=1==o||-2==o?\"0\":\"00\"),o=x(r,1/3),t=_((t+1)/3)-(t%3==(t<0?-1:2)),(n=new l(r=o==1/0?\"5e\"+t:(r=o.toExponential()).slice(0,r.indexOf(\"e\")+1)+t)).s=f.s),a=(t=l.precision)+3;;)if(c=(u=(s=n).times(s).times(s)).plus(f),n=L(c.plus(f).times(s),c.plus(u),a+2,1),F(s.d).slice(0,a)===(r=F(n.d)).slice(0,a)){if(\"9999\"!=(r=r.slice(a-3,a+1))&&(i||\"4999\"!=r)){+r&&(+r.slice(1)||\"5\"!=r.charAt(0))||(N(n,t+1,1),e=!n.times(n).times(n).eq(f));break}if(!i&&(N(s,t+1,0),s.times(s).times(s).eq(f))){n=s;break}a+=4,i=1}return m=!0,N(n,t,l.rounding,e)},O.decimalPlaces=O.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-_(this.e/M))*M,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},O.dividedBy=O.div=function(t){return L(this,new this.constructor(t))},O.dividedToIntegerBy=O.divToInt=function(t){var e=this.constructor;return N(L(this,new e(t),0,1,1),e.precision,e.rounding)},O.equals=O.eq=function(t){return 0===this.cmp(t)},O.floor=function(){return N(new this.constructor(this),this.e+1,3)},O.greaterThan=O.gt=function(t){return this.cmp(t)>0},O.greaterThanOrEqualTo=O.gte=function(t){var e=this.cmp(t);return 1==e||0===e},O.hyperbolicCosine=O.cosh=function(){var t,e,r,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/K(4,t=Math.ceil(i/3))).toString():(t=16,e=\"2.3283064365386962890625e-10\"),o=Q(a,1,o.times(e),new a(1),!0);for(var u,c=t,f=new a(8);c--;)u=o.times(o),o=s.minus(u.times(f.minus(u.times(f))));return N(o,a.precision=r,a.rounding=n,!0)},O.hyperbolicSine=O.sinh=function(){var t,e,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,r=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=Q(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=Q(o,2,i=i.times(1/K(5,t)),i,!0);for(var a,s=new o(5),u=new o(16),c=new o(20);t--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(c))))}return o.precision=e,o.rounding=r,N(i,e,r,!0)},O.hyperbolicTangent=O.tanh=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+7,n.rounding=1,L(r.sinh(),r.cosh(),n.precision=t,n.rounding=e)):new n(r.s)},O.inverseCosine=O.acos=function(){var t,e=this,r=e.constructor,n=e.abs().cmp(1),i=r.precision,o=r.rounding;return-1!==n?0===n?e.isNeg()?U(r,i,o):new r(0):new r(NaN):e.isZero()?U(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,e=e.asin(),t=U(r,i+4,o).times(.5),r.precision=i,r.rounding=o,t.minus(e))},O.inverseHyperbolicCosine=O.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,m=!1,r=r.times(r).minus(1).sqrt().plus(r),m=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},O.inverseHyperbolicSine=O.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,m=!1,r=r.times(r).plus(1).sqrt().plus(r),m=!0,n.precision=t,n.rounding=e,r.ln())},O.inverseHyperbolicTangent=O.atanh=function(){var t,e,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,n=i.sd(),Math.max(n,t)<2*-i.e-1?N(new o(i),t,e,!0):(o.precision=r=n-i.e,i=L(i.plus(1),new o(1).minus(i),r+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},O.inverseSine=O.asin=function(){var t,e,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==e?0===e?((t=U(o,r+4,n).times(.5)).s=i.s,t):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))},O.inverseTangent=O.atan=function(){var t,e,r,n,i,o,a,s,u,c=this,f=c.constructor,l=f.precision,h=f.rounding;if(c.isFinite()){if(c.isZero())return new f(c);if(c.abs().eq(1)&&l+4<=T)return(a=U(f,l+4,h).times(.25)).s=c.s,a}else{if(!c.s)return new f(NaN);if(l+4<=T)return(a=U(f,l+4,h).times(.5)).s=c.s,a}for(f.precision=s=l+10,f.rounding=1,t=r=Math.min(28,s/M+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(m=!1,e=Math.ceil(s/M),n=1,u=c.times(c),a=new f(c),i=c;-1!==t;)if(i=i.times(u),o=a.minus(i.div(n+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(n+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return r&&(a=a.times(2<<r-1)),m=!0,N(a,f.precision=l,f.rounding=h,!0)},O.isFinite=function(){return!!this.d},O.isInteger=O.isInt=function(){return!!this.d&&_(this.e/M)>this.d.length-2},O.isNaN=function(){return!this.s},O.isNegative=O.isNeg=function(){return this.s<0},O.isPositive=O.isPos=function(){return this.s>0},O.isZero=function(){return!!this.d&&0===this.d[0]},O.lessThan=O.lt=function(t){return this.cmp(t)<0},O.lessThanOrEqualTo=O.lte=function(t){return this.cmp(t)<1},O.logarithm=O.log=function(t){var e,r,n,i,o,a,s,u,c=this,f=c.constructor,l=f.precision,h=f.rounding;if(null==t)t=new f(10),e=!0;else{if(r=(t=new f(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new f(NaN);e=t.eq(10)}if(r=c.d,c.s<0||!r||!r[0]||c.eq(1))return new f(r&&!r[0]?-1/0:1!=c.s?NaN:r?0:1/0);if(e)if(r.length>1)o=!0;else{for(i=r[0];i%10==0;)i/=10;o=1!==i}if(m=!1,a=X(c,s=l+5),n=e?z(f,s+10):X(t,s),I((u=L(a,n,s,1)).d,i=l,h))do{if(a=X(c,s+=10),n=e?z(f,s+10):X(t,s),u=L(a,n,s,1),!o){+F(u.d).slice(i+1,i+15)+1==1e14&&(u=N(u,l+1,0));break}}while(I(u.d,i+=10,h));return m=!0,N(u,l,h)},O.minus=O.sub=function(t){var e,r,n,i,o,a,s,u,c,f,l,h,p=this,d=p.constructor;if(t=new d(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new d(t.d||p.s!==t.s?p:NaN):t=new d(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(c=p.d,h=t.d,s=d.precision,u=d.rounding,!c[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!c[0])return new d(3===u?-0:0);t=new d(p)}return m?N(t,s,u):t}if(r=_(t.e/M),f=_(p.e/M),c=c.slice(),o=f-r){for((l=o<0)?(e=c,o=-o,a=h.length):(e=h,r=f,a=c.length),o>(n=Math.max(Math.ceil(s/M),a)+2)&&(o=n,e.length=1),e.reverse(),n=o;n--;)e.push(0);e.reverse()}else{for((l=(n=c.length)<(a=h.length))&&(a=n),n=0;n<a;n++)if(c[n]!=h[n]){l=c[n]<h[n];break}o=0}for(l&&(e=c,c=h,h=e,t.s=-t.s),a=c.length,n=h.length-a;n>0;--n)c[a++]=0;for(n=h.length;n>o;){if(c[--n]<h[n]){for(i=n;i&&0===c[--i];)c[i]=S-1;--c[i],c[n]+=S}c[n]-=h[n]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=R(c,r),m?N(t,s,u):t):new d(3===u?-0:0)},O.modulo=O.mod=function(t){var e,r=this,n=r.constructor;return t=new n(t),!r.d||!t.s||t.d&&!t.d[0]?new n(NaN):!t.d||r.d&&!r.d[0]?N(new n(r),n.precision,n.rounding):(m=!1,9==n.modulo?(e=L(r,t.abs(),0,3,1)).s*=t.s:e=L(r,t,0,n.modulo,1),e=e.times(t),m=!0,r.minus(e))},O.naturalExponential=O.exp=function(){return Y(this)},O.naturalLogarithm=O.ln=function(){return X(this)},O.negated=O.neg=function(){var t=new this.constructor(this);return t.s=-t.s,N(t)},O.plus=O.add=function(t){var e,r,n,i,o,a,s,u,c,f,l=this,h=l.constructor;if(t=new h(t),!l.d||!t.d)return l.s&&t.s?l.d||(t=new h(t.d||l.s===t.s?l:NaN)):t=new h(NaN),t;if(l.s!=t.s)return t.s=-t.s,l.minus(t);if(c=l.d,f=t.d,s=h.precision,u=h.rounding,!c[0]||!f[0])return f[0]||(t=new h(l)),m?N(t,s,u):t;if(o=_(l.e/M),n=_(t.e/M),c=c.slice(),i=o-n){for(i<0?(r=c,i=-i,a=f.length):(r=f,n=o,a=c.length),i>(a=(o=Math.ceil(s/M))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=c.length)-(i=f.length)<0&&(i=a,r=f,f=c,c=r),e=0;i;)e=(c[--i]=c[i]+f[i]+e)/S|0,c[i]%=S;for(e&&(c.unshift(e),++n),a=c.length;0==c[--a];)c.pop();return t.d=c,t.e=R(c,n),m?N(t,s,u):t},O.precision=O.sd=function(t){var e,r=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(y+t);return r.d?(e=G(r.d),t&&r.e+1>e&&(e=r.e+1)):e=NaN,e},O.round=function(){var t=this,e=t.constructor;return N(new e(t),t.e+1,e.rounding)},O.sine=O.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+M,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return e.isZero()?e:Q(t,2,e,e);r=(r=1.4*Math.sqrt(n))>16?16:0|r,e=e.times(1/K(5,r)),e=Q(t,2,e,e);for(var i,o=new t(5),a=new t(16),s=new t(20);r--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(s))));return e}(n,tt(n,r)),n.precision=t,n.rounding=e,N(u>2?r.neg():r,t,e,!0)):new n(NaN)},O.squareRoot=O.sqrt=function(){var t,e,r,n,i,o,a=this,s=a.d,u=a.e,c=a.s,f=a.constructor;if(1!==c||!s||!s[0])return new f(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(m=!1,0==(c=Math.sqrt(+a))||c==1/0?(((e=F(s)).length+u)%2==0&&(e+=\"0\"),c=Math.sqrt(e),u=_((u+1)/2)-(u<0||u%2),n=new f(e=c==1/0?\"5e\"+u:(e=c.toExponential()).slice(0,e.indexOf(\"e\")+1)+u)):n=new f(c.toString()),r=(u=f.precision)+3;;)if(n=(o=n).plus(L(a,o,r+2,1)).times(.5),F(o.d).slice(0,r)===(e=F(n.d)).slice(0,r)){if(\"9999\"!=(e=e.slice(r-3,r+1))&&(i||\"4999\"!=e)){+e&&(+e.slice(1)||\"5\"!=e.charAt(0))||(N(n,u+1,1),t=!n.times(n).eq(a));break}if(!i&&(N(o,u+1,0),o.times(o).eq(a))){n=o;break}r+=4,i=1}return m=!0,N(n,u,f.rounding,t)},O.tangent=O.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=L(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,N(2==u||4==u?r.neg():r,t,e,!0)):new n(NaN)},O.times=O.mul=function(t){var e,r,n,i,o,a,s,u,c,f=this,l=f.constructor,h=f.d,p=(t=new l(t)).d;if(t.s*=f.s,!(h&&h[0]&&p&&p[0]))return new l(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*t.s:t.s/0);for(r=_(f.e/M)+_(t.e/M),(u=h.length)<(c=p.length)&&(o=h,h=p,p=o,a=u,u=c,c=a),o=[],n=a=u+c;n--;)o.push(0);for(n=c;--n>=0;){for(e=0,i=u+n;i>n;)s=o[i]+p[n]*h[i-n-1]+e,o[i--]=s%S|0,e=s/S|0;o[i]=(o[i]+e)%S|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=R(o,r),m?N(t,l.precision,l.rounding):t},O.toBinary=function(t,e){return et(this,2,t,e)},O.toDecimalPlaces=O.toDP=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(B(t,0,f),void 0===e?e=n.rounding:B(e,0,8),N(r,t+r.e+1,e))},O.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=j(n,!0):(B(t,0,f),void 0===e?e=i.rounding:B(e,0,8),r=j(n=N(new i(n),t+1,e),!0,t+1)),n.isNeg()&&!n.isZero()?\"-\"+r:r},O.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?r=j(i):(B(t,0,f),void 0===e?e=o.rounding:B(e,0,8),r=j(n=N(new o(i),t+i.e+1,e),!1,t+n.e+1)),i.isNeg()&&!i.isZero()?\"-\"+r:r},O.toFraction=function(t){var e,r,n,i,o,a,s,u,c,f,l,h,p=this,d=p.d,g=p.constructor;if(!d)return new g(p);if(c=r=new g(1),n=u=new g(0),a=(o=(e=new g(n)).e=G(d)-p.e-1)%M,e.d[0]=x(10,a<0?M+a:a),null==t)t=o>0?e:c;else{if(!(s=new g(t)).isInt()||s.lt(c))throw Error(y+s);t=s.gt(e)?o>0?e:c:s}for(m=!1,s=new g(F(d)),f=g.precision,g.precision=o=d.length*M*2;l=L(s,e,0,1,1),1!=(i=r.plus(l.times(n))).cmp(t);)r=n,n=i,i=c,c=u.plus(l.times(i)),u=i,i=e,e=s.minus(l.times(i)),s=i;return i=L(t.minus(r),n,0,1,1),u=u.plus(i.times(c)),r=r.plus(i.times(n)),u.s=c.s=p.s,h=L(c,n,o,1).minus(p).abs().cmp(L(u,r,o,1).minus(p).abs())<1?[c,n]:[u,r],g.precision=f,m=!0,h},O.toHexadecimal=O.toHex=function(t,e){return et(this,16,t,e)},O.toNearest=function(t,e){var r=this,n=r.constructor;if(r=new n(r),null==t){if(!r.d)return r;t=new n(1),e=n.rounding}else{if(t=new n(t),void 0===e?e=n.rounding:B(e,0,8),!r.d)return t.s?r:t;if(!t.d)return t.s&&(t.s=r.s),t}return t.d[0]?(m=!1,r=L(r,t,0,e,1).times(t),m=!0,N(r)):(t.s=r.s,r=t),r},O.toNumber=function(){return+this},O.toOctal=function(t,e){return et(this,8,t,e)},O.toPower=O.pow=function(t){var e,r,n,i,o,a,s=this,u=s.constructor,c=+(t=new u(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new u(x(+s,c));if((s=new u(s)).eq(1))return s;if(n=u.precision,o=u.rounding,t.eq(1))return N(s,n,o);if((e=_(t.e/M))>=t.d.length-1&&(r=c<0?-c:c)<=9007199254740991)return i=q(u,s,r,n),t.s<0?new u(1).div(i):N(i,n,o);if((a=s.s)<0){if(e<t.d.length-1)return new u(NaN);if(1&t.d[e]||(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(e=0!=(r=x(+s,c))&&isFinite(r)?new u(r+\"\").e:_(c*(Math.log(\"0.\"+F(s.d))/Math.LN10+s.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(m=!1,u.rounding=s.s=1,r=Math.min(12,(e+\"\").length),(i=Y(t.times(X(s,n+r)),n)).d&&I((i=N(i,n+5,1)).d,n,o)&&(e=n+10,+F((i=N(Y(t.times(X(s,e+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=N(i,n+1,0))),i.s=a,m=!0,u.rounding=o,N(i,n,o))},O.toPrecision=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=j(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(B(t,1,f),void 0===e?e=i.rounding:B(e,0,8),r=j(n=N(new i(n),t,e),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?\"-\"+r:r},O.toSignificantDigits=O.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(B(t,1,f),void 0===e?e=r.rounding:B(e,0,8)),N(new r(this),t,e)},O.toString=function(){var t=this,e=t.constructor,r=j(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?\"-\"+r:r},O.truncated=O.trunc=function(){return N(new this.constructor(this),this.e+1,1)},O.valueOf=O.toJSON=function(){var t=this,e=t.constructor,r=j(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?\"-\"+r:r};var L=function(){function t(t,e,r){var n,i=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+i,t[o]=n%r|0,i=n/r|0;return i&&t.unshift(i),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,a,u,c){var f,l,h,p,d,m,g,y,v,b,w,x,E,A,D,k,C,T,O,F,B=n.constructor,I=n.s==i.s?1:-1,P=n.d,L=i.d;if(!(P&&P[0]&&L&&L[0]))return new B(n.s&&i.s&&(P?!L||P[0]!=L[0]:L)?P&&0==P[0]||!L?0*I:I/0:NaN);for(c?(d=1,l=n.e-i.e):(c=S,d=M,l=_(n.e/d)-_(i.e/d)),O=L.length,C=P.length,b=(v=new B(I)).d=[],h=0;L[h]==(P[h]||0);h++);if(L[h]>(P[h]||0)&&l--,null==o?(A=o=B.precision,a=B.rounding):A=u?o+(n.e-i.e)+1:o,A<0)b.push(1),m=!0;else{if(A=A/d+2|0,h=0,1==O){for(p=0,L=L[0],A++;(h<C||p)&&A--;h++)D=p*c+(P[h]||0),b[h]=D/L|0,p=D%L|0;m=p||h<C}else{for((p=c/(L[0]+1)|0)>1&&(L=t(L,p,c),P=t(P,p,c),O=L.length,C=P.length),k=O,x=(w=P.slice(0,O)).length;x<O;)w[x++]=0;(F=L.slice()).unshift(0),T=L[0],L[1]>=c/2&&++T;do{p=0,(f=e(L,w,O,x))<0?(E=w[0],O!=x&&(E=E*c+(w[1]||0)),(p=E/T|0)>1?(p>=c&&(p=c-1),1==(f=e(g=t(L,p,c),w,y=g.length,x=w.length))&&(p--,r(g,O<y?F:L,y,c))):(0==p&&(f=p=1),g=L.slice()),(y=g.length)<x&&g.unshift(0),r(w,g,x,c),-1==f&&(f=e(L,w,O,x=w.length))<1&&(p++,r(w,O<x?F:L,x,c)),x=w.length):0===f&&(p++,w=[0]),b[h++]=p,f&&w[0]?w[x++]=P[k]||0:(w=[P[k]],x=1)}while((k++<C||void 0!==w[0])&&A--);m=void 0!==w[0]}b[0]||b.shift()}if(1==d)v.e=l,s=m;else{for(h=1,p=b[0];p>=10;p/=10)h++;v.e=h+l*d-1,N(v,u?o+v.e+1:o,a,m)}return v}}();function N(t,e,r,n){var i,o,a,s,u,c,f,l,h,p=t.constructor;t:if(null!=e){if(!(l=t.d))return t;for(i=1,s=l[0];s>=10;s/=10)i++;if((o=e-i)<0)o+=M,a=e,u=(f=l[h=0])/x(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/M))>=(s=l.length)){if(!n)break t;for(;s++<=h;)l.push(0);f=u=0,i=1,a=(o%=M)-M+1}else{for(f=s=l[h],i=1;s>=10;s/=10)i++;u=(a=(o%=M)-M+i)<0?0:f/x(10,i-a-1)%10|0}if(n=n||e<0||void 0!==l[h+1]||(a<0?f:f%x(10,i-a-1)),c=r<4?(u||n)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?f/x(10,i-a):0:l[h-1])%10&1||r==(t.s<0?8:7)),e<1||!l[0])return l.length=0,c?(e-=t.e+1,l[0]=x(10,(M-e%M)%M),t.e=-e||0):l[0]=t.e=0,t;if(0==o?(l.length=h,s=1,h--):(l.length=h+1,s=x(10,M-o),l[h]=a>0?(f/x(10,i-a)%x(10,a)|0)*s:0),c)for(;;){if(0==h){for(o=1,a=l[0];a>=10;a/=10)o++;for(a=l[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(t.e++,l[0]==S&&(l[0]=1));break}if(l[h]+=s,l[h]!=S)break;l[h--]=0,s=1}for(o=l.length;0===l[--o];)l.pop()}return m&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function j(t,e,r){if(!t.isFinite())return $(t);var n,i=t.e,o=F(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+\".\"+o.slice(1)+H(n):a>1&&(o=o.charAt(0)+\".\"+o.slice(1)),o=o+(t.e<0?\"e\":\"e+\")+t.e):i<0?(o=\"0.\"+H(-i-1)+o,r&&(n=r-a)>0&&(o+=H(n))):i>=a?(o+=H(i+1-a),r&&(n=r-i-1)>0&&(o=o+\".\"+H(n))):((n=i+1)<a&&(o=o.slice(0,n)+\".\"+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+=\".\"),o+=H(n))),o}function R(t,e){var r=t[0];for(e*=M;r>=10;r/=10)e++;return e}function z(t,e,r){if(e>C)throw m=!0,r&&(t.precision=r),Error(v);return N(new t(h),e,1,!0)}function U(t,e,r){if(e>T)throw Error(v);return N(new t(p),e,r,!0)}function G(t){var e=t.length-1,r=e*M+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];e>=10;e/=10)r++}return r}function H(t){for(var e=\"\";t--;)e+=\"0\";return e}function q(t,e,r,n){var i,o=new t(1),a=Math.ceil(n/M+4);for(m=!1;;){if(r%2&&rt((o=o.times(e)).d,a)&&(i=!0),0===(r=_(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}rt((e=e.times(e)).d,a)}return m=!0,o}function Z(t){return 1&t.d[t.d.length-1]}function W(t,e,r){for(var n,i=new t(e[0]),o=0;++o<e.length;){if(!(n=new t(e[o])).s){i=n;break}i[r](n)&&(i=n)}return i}function Y(t,e){var r,n,i,o,a,s,u,c=0,f=0,l=0,h=t.constructor,p=h.rounding,d=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(m=!1,u=d):u=e,s=new h(.03125);t.e>-2;)t=t.times(s),l+=5;for(u+=n=Math.log(x(2,l))/Math.LN10*2+5|0,r=o=a=new h(1),h.precision=u;;){if(o=N(o.times(t),u,1),r=r.times(++f),F((s=a.plus(L(o,r,u,1))).d).slice(0,u)===F(a.d).slice(0,u)){for(i=l;i--;)a=N(a.times(a),u,1);if(null!=e)return h.precision=d,a;if(!(c<3&&I(a.d,u-n,p,c)))return N(a,h.precision=d,p,m=!0);h.precision=u+=10,r=o=s=new h(1),f=0,c++}a=s}}function X(t,e){var r,n,i,o,a,s,u,c,f,l,h,p=1,d=t,g=d.d,y=d.constructor,v=y.rounding,b=y.precision;if(d.s<0||!g||!g[0]||!d.e&&1==g[0]&&1==g.length)return new y(g&&!g[0]?-1/0:1!=d.s?NaN:g?0:d);if(null==e?(m=!1,f=b):f=e,y.precision=f+=10,n=(r=F(g)).charAt(0),!(Math.abs(o=d.e)<15e14))return c=z(y,f+2,b).times(o+\"\"),d=X(new y(n+\".\"+r.slice(1)),f-10).plus(c),y.precision=b,null==e?N(d,b,v,m=!0):d;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=F((d=d.times(t)).d)).charAt(0),p++;for(o=d.e,n>1?(d=new y(\"0.\"+r),o++):d=new y(n+\".\"+r.slice(1)),l=d,u=a=d=L(d.minus(1),d.plus(1),f,1),h=N(d.times(d),f,1),i=3;;){if(a=N(a.times(h),f,1),F((c=u.plus(L(a,new y(i),f,1))).d).slice(0,f)===F(u.d).slice(0,f)){if(u=u.times(2),0!==o&&(u=u.plus(z(y,f+2,b).times(o+\"\"))),u=L(u,new y(p),f,1),null!=e)return y.precision=b,u;if(!I(u.d,f-10,v,s))return N(u,y.precision=b,v,m=!0);y.precision=f+=10,c=a=d=L(l.minus(1),l.plus(1),f,1),h=N(d.times(d),f,1),i=s=1}u=c,i+=2}}function $(t){return String(t.s*t.s/0)}function V(t,e){var r,n,i;for((r=e.indexOf(\".\"))>-1&&(e=e.replace(\".\",\"\")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(n,i)){if(i-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%M,r<0&&(n+=M),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=M;n<i;)t.d.push(+e.slice(n,n+=M));e=e.slice(n),n=M-e.length}else n-=i;for(;n--;)e+=\"0\";t.d.push(+e),m&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function J(t,e){var r,n,i,o,s,u,c,f,l;if(e.indexOf(\"_\")>-1){if(e=e.replace(/(\\d)_(?=\\d)/g,\"$1\"),k.test(e))return V(t,e)}else if(\"Infinity\"===e||\"NaN\"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(A.test(e))r=16,e=e.toLowerCase();else if(E.test(e))r=2;else{if(!D.test(e))throw Error(y+e);r=8}for((o=e.search(/p/i))>0?(c=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),s=(o=e.indexOf(\".\"))>=0,n=t.constructor,s&&(o=(u=(e=e.replace(\".\",\"\")).length)-o,i=q(n,new n(r),o,2*o)),o=l=(f=P(e,r,S)).length-1;0===f[o];--o)f.pop();return o<0?new n(0*t.s):(t.e=R(f,l),t.d=f,m=!1,s&&(t=L(t,i,4*u)),c&&(t=t.times(Math.abs(c)<54?x(2,c):a.pow(2,c))),m=!0,t)}function Q(t,e,r,n,i){var o,a,s,u,c=t.precision,f=Math.ceil(c/M);for(m=!1,u=r.times(r),s=new t(n);;){if(a=L(s.times(u),new t(e++*e++),c,1),s=i?n.plus(a):n.minus(a),n=L(a.times(u),new t(e++*e++),c,1),void 0!==(a=s.plus(n)).d[f]){for(o=f;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=n,n=a,a=o}return m=!0,a.d.length=f+1,a}function K(t,e){for(var r=t;--e;)r*=t;return r}function tt(t,e){var r,n=e.s<0,i=U(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return u=n?4:1,e;if((r=e.divToInt(i)).isZero())u=n?3:2;else{if((e=e.minus(r.times(i))).lte(o))return u=Z(r)?n?2:3:n?4:1,e;u=Z(r)?n?1:4:n?3:2}return e.minus(i).abs()}function et(t,e,r,n){var i,o,a,u,c,h,p,d,m,g=t.constructor,y=void 0!==r;if(y?(B(r,1,f),void 0===n?n=g.rounding:B(n,0,8)):(r=g.precision,n=g.rounding),t.isFinite()){for(y?(i=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):i=e,(a=(p=j(t)).indexOf(\".\"))>=0&&(p=p.replace(\".\",\"\"),(m=new g(1)).e=p.length-a,m.d=P(j(m),10,i),m.e=m.d.length),o=c=(d=P(p,10,i)).length;0==d[--c];)d.pop();if(d[0]){if(a<0?o--:((t=new g(t)).d=d,t.e=o,d=(t=L(t,m,r,n,0,i)).d,o=t.e,h=s),a=d[r],u=i/2,h=h||void 0!==d[r+1],h=n<4?(void 0!==a||h)&&(0===n||n===(t.s<0?3:2)):a>u||a===u&&(4===n||h||6===n&&1&d[r-1]||n===(t.s<0?8:7)),d.length=r,h)for(;++d[--r]>i-1;)d[r]=0,r||(++o,d.unshift(1));for(c=d.length;!d[c-1];--c);for(a=0,p=\"\";a<c;a++)p+=l.charAt(d[a]);if(y){if(c>1)if(16==e||8==e){for(a=16==e?4:3,--c;c%a;c++)p+=\"0\";for(c=(d=P(p,i,e)).length;!d[c-1];--c);for(a=1,p=\"1.\";a<c;a++)p+=l.charAt(d[a])}else p=p.charAt(0)+\".\"+p.slice(1);p=p+(o<0?\"p\":\"p+\")+o}else if(o<0){for(;++o;)p=\"0\"+p;p=\"0.\"+p}else if(++o>c)for(o-=c;o--;)p+=\"0\";else o<c&&(p=p.slice(0,o)+\".\"+p.slice(o))}else p=y?\"0p+0\":\"0\";p=(16==e?\"0x\":2==e?\"0b\":8==e?\"0o\":\"\")+p}else p=$(t);return t.s<0?\"-\"+p:p}function rt(t,e){if(t.length>e)return t.length=e,!0}function nt(t){return new this(t).abs()}function it(t){return new this(t).acos()}function ot(t){return new this(t).acosh()}function at(t,e){return new this(t).plus(e)}function st(t){return new this(t).asin()}function ut(t){return new this(t).asinh()}function ct(t){return new this(t).atan()}function ft(t){return new this(t).atanh()}function lt(t,e){t=new this(t),e=new this(e);var r,n=this.precision,i=this.rounding,o=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?U(this,n,i):new this(0)).s=t.s:!t.d||e.isZero()?(r=U(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,r=this.atan(L(t,e,o,1)),e=U(this,o,1),this.precision=n,this.rounding=i,r=t.s<0?r.minus(e):r.plus(e)):r=this.atan(L(t,e,o,1)):(r=U(this,o,1).times(e.s>0?.25:.75)).s=t.s:r=new this(NaN),r}function ht(t){return new this(t).cbrt()}function pt(t){return N(t=new this(t),t.e+1,2)}function dt(t,e,r){return new this(t).clamp(e,r)}function mt(t){if(!t||\"object\"!==i(t))throw Error(g+\"Object expected\");var e,r,n,o=!0===t.defaults,a=[\"precision\",1,f,\"rounding\",0,8,\"toExpNeg\",-c,0,\"toExpPos\",0,c,\"maxE\",0,c,\"minE\",-c,0,\"modulo\",0,9];for(e=0;e<a.length;e+=3)if(r=a[e],o&&(this[r]=d[r]),void 0!==(n=t[r])){if(!(_(n)===n&&n>=a[e+1]&&n<=a[e+2]))throw Error(y+r+\": \"+n);this[r]=n}if(r=\"crypto\",o&&(this[r]=d[r]),void 0!==(n=t[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(y+r+\": \"+n);if(n){if(\"undefined\"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(b);this[r]=!0}else this[r]=!1}return this}function gt(t){return new this(t).cos()}function yt(t){return new this(t).cosh()}function vt(t,e){return new this(t).div(e)}function bt(t){return new this(t).exp()}function wt(t){return N(t=new this(t),t.e+1,3)}function _t(){var t,e,r=new this(0);for(m=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return m=!0,new this(1/0);r=e}return m=!0,r.sqrt()}function xt(t){return t instanceof a||t&&t.toStringTag===w||!1}function Et(t){return new this(t).ln()}function At(t,e){return new this(t).log(e)}function Dt(t){return new this(t).log(2)}function kt(t){return new this(t).log(10)}function St(){return W(this,arguments,\"lt\")}function Mt(){return W(this,arguments,\"gt\")}function Ct(t,e){return new this(t).mod(e)}function Tt(t,e){return new this(t).mul(e)}function Ot(t,e){return new this(t).pow(e)}function Ft(t){var e,r,n,i,o=0,a=new this(1),s=[];if(void 0===t?t=this.precision:B(t,1,f),n=Math.ceil(t/M),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(b);for(e=crypto.randomBytes(n*=4);o<n;)(i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(s.push(i%1e7),o+=4);o=n/4}else for(;o<n;)s[o++]=1e7*Math.random()|0;for(n=s[--o],t%=M,n&&t&&(i=x(10,M-t),s[o]=(n/i|0)*i);0===s[o];o--)s.pop();if(o<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=M)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<M&&(r-=M-n)}return a.e=r,a.d=s,a}function Bt(t){return N(t=new this(t),t.e+1,this.rounding)}function It(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Pt(t){return new this(t).sin()}function Lt(t){return new this(t).sinh()}function Nt(t){return new this(t).sqrt()}function jt(t,e){return new this(t).sub(e)}function Rt(){var t=0,e=arguments,r=new this(e[t]);for(m=!1;r.s&&++t<e.length;)r=r.plus(e[t]);return m=!0,N(r,this.precision,this.rounding)}function zt(t){return new this(t).tan()}function Ut(t){return new this(t).tanh()}function Gt(t){return N(t=new this(t),t.e+1,1)}a=function t(e){var r,n,o;function a(t){var e,r,n,o=this;if(!(o instanceof a))return new a(t);if(o.constructor=a,xt(t))return o.s=t.s,void(m?!t.d||t.e>a.maxE?(o.e=NaN,o.d=null):t.e<a.minE?(o.e=0,o.d=[0]):(o.e=t.e,o.d=t.d.slice()):(o.e=t.e,o.d=t.d?t.d.slice():t.d));if(\"number\"===(n=i(t))){if(0===t)return o.s=1/t<0?-1:1,o.e=0,void(o.d=[0]);if(t<0?(t=-t,o.s=-1):o.s=1,t===~~t&&t<1e7){for(e=0,r=t;r>=10;r/=10)e++;return void(m?e>a.maxE?(o.e=NaN,o.d=null):e<a.minE?(o.e=0,o.d=[0]):(o.e=e,o.d=[t]):(o.e=e,o.d=[t]))}return 0*t!=0?(t||(o.s=NaN),o.e=NaN,void(o.d=null)):V(o,t.toString())}if(\"string\"!==n)throw Error(y+t);return 45===(r=t.charCodeAt(0))?(t=t.slice(1),o.s=-1):(43===r&&(t=t.slice(1)),o.s=1),k.test(t)?V(o,t):J(o,t)}if(a.prototype=O,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=mt,a.clone=t,a.isDecimal=xt,a.abs=nt,a.acos=it,a.acosh=ot,a.add=at,a.asin=st,a.asinh=ut,a.atan=ct,a.atanh=ft,a.atan2=lt,a.cbrt=ht,a.ceil=pt,a.clamp=dt,a.cos=gt,a.cosh=yt,a.div=vt,a.exp=bt,a.floor=wt,a.hypot=_t,a.ln=Et,a.log=At,a.log10=kt,a.log2=Dt,a.max=St,a.min=Mt,a.mod=Ct,a.mul=Tt,a.pow=Ot,a.random=Ft,a.round=Bt,a.sign=It,a.sin=Pt,a.sinh=Lt,a.sqrt=Nt,a.sub=jt,a.sum=Rt,a.tan=zt,a.tanh=Ut,a.trunc=Gt,void 0===e&&(e={}),e&&!0!==e.defaults)for(o=[\"precision\",\"rounding\",\"toExpNeg\",\"toExpPos\",\"maxE\",\"minE\",\"modulo\",\"crypto\"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return a.config(e),a}(d),a.prototype.constructor=a,a.default=a.Decimal=a,h=new a(h),p=new a(p),void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function t(e,n){\"use strict\";var i,o,a=/(^([+\\-]?(?:0|[1-9]\\d*)(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)?$|^0x[0-9a-f]+$|\\d+)/gi,s=/(^[ ]*|[ ]*$)/g,u=/(^([\\w ]+,?[\\w ]+)?[\\w ]+,?[\\w ]+\\d+:\\d+(:\\d+)?[\\w ]?|^\\d{1,4}[\\/\\-]\\d{1,4}[\\/\\-]\\d{1,4}|^\\w+, \\w+ \\d+, \\d{4})/,c=/^0x[0-9a-f]+$/i,f=/^0/,l=function(e){return t.insensitive&&(\"\"+e).toLowerCase()||\"\"+e},h=l(e).replace(s,\"\")||\"\",p=l(n).replace(s,\"\")||\"\",d=h.replace(a,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),m=p.replace(a,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),g=parseInt(h.match(c),16)||1!==d.length&&h.match(u)&&Date.parse(h),y=parseInt(p.match(c),16)||g&&p.match(u)&&Date.parse(p)||null;if(y){if(g<y)return-1;if(g>y)return 1}for(var v=0,b=Math.max(d.length,m.length);v<b;v++){if(i=!(d[v]||\"\").match(f)&&parseFloat(d[v])||d[v]||0,o=!(m[v]||\"\").match(f)&&parseFloat(m[v])||m[v]||0,isNaN(i)!==isNaN(o))return isNaN(i)?1:-1;if(r(i)!==r(o)&&(i+=\"\",o+=\"\"),i<o)return-1;if(i>o)return 1}return 0}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){\"use strict\";(function(t,n){r.d(e,\"a\",(function(){return W})),r.d(e,\"b\",(function(){return Y})),r.d(e,\"d\",(function(){return $}));var i=r(11),o=r.n(i),a=r(6),s=r.n(a),u=r(31),c=r.n(u),f=r(0),l=r(34),h=r.n(l),p=r(101),d=r.n(p),m=r(32),g=r.n(m),y=r(35),v=r(102),b=r(116),w=r(33),_=r(19),x=r(45),E=r(20);function A(t,e,r){return(e=M(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return k(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function S(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,M(n.key),n)}}function M(t){var e=function(t,e){if(\"object\"!=B(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=B(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==B(e)?e:e+\"\"}function C(t,e){if(e&&(\"object\"===B(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(T=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function F(t,e){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},F(t,e)}function B(t){return B=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},B(t)}function I(t,e,r){return(e=function(t){var e=function(t,e){if(\"object\"!==B(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!==B(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"===B(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}for(var P=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_\",L=[NaN,NaN],N=2;N<65;N++){var j=h()(h.a.BIN,P.slice(0,N))(new Array(65).join(\"1\"));L.push(j.length)}function R(){}function z(t){return Object.prototype.toString.call(t).toLowerCase().indexOf(\"arraybuffer\")>-1}function U(e){for(var r=t.alloc(e.byteLength),n=new Uint8Array(e),i=0;i<r.length;++i)r[i]=n[i];return r}function G(e,r){Object(v.a)(e,(function(n,i){return n?r(n):\"object\"===B(i)&&t.isBuffer(i)?r(null,i):\"object\"===B(i)&&z(i)?r(null,U(i)):new Error(\"Could not load Buffer from <\".concat(e.url,\">\"))}))}var H,q={data:null,width:null,height:null},Z=function(e){function r(){var e,n,i,a;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,r);for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];n=this,i=O(i=r),I(e=C(n,T()?Reflect.construct(i,a||[],O(n).constructor):i.apply(n,a)),\"bitmap\",q),I(e,\"_background\",0),I(e,\"_originalMime\",r.MIME_PNG),I(e,\"_exif\",null),I(e,\"_rgba\",!0),I(e,\"writeAsync\",(function(t){return Object(w.a)(e.write,e,t)})),I(e,\"getBase64Async\",(function(t){return Object(w.a)(e.getBase64,e,t)})),I(e,\"getBuffer\",x.a),I(e,\"getBufferAsync\",x.b),I(e,\"getPixelColour\",e.getPixelColor),I(e,\"setPixelColour\",e.setPixelColor);var l,h=e,p=R;function d(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];(n||{}).methodName=\"constructor\",setTimeout((function(){var t;n&&p===R?h.emitError(\"constructor\",n):n||h.emitMulti(\"constructor\",\"initialized\"),(t=p).call.apply(t,[h].concat(e))}),1)}if(z(u[0])&&(u[0]=U(u[0])),\"number\"==typeof u[0]&&\"number\"==typeof u[1]||parseInt(u[0],10)&&parseInt(u[1],10)){var m=parseInt(u[0],10),g=parseInt(u[1],10);if(p=u[2],\"number\"==typeof u[2]&&(e._background=u[2],p=u[3]),\"string\"==typeof u[2]&&(e._background=r.cssColorToHex(u[2]),p=u[3]),void 0===p&&(p=R),\"function\"!=typeof p)return C(e,f.d.call(e,\"cb must be a function\",d));e.bitmap={data:t.alloc(m*g*4),width:m,height:g};for(var y=0;y<e.bitmap.data.length;y+=4)e.bitmap.data.writeUInt32BE(e._background,y);d(null,e)}else if(\"object\"===B(u[0])&&u[0].url){if(\"function\"!=typeof(p=u[1]||R))return C(e,f.d.call(e,\"cb must be a function\",d));G(u[0],(function(t,r){if(t)return f.d.call(e,t,d);e.parseBitmap(r,u[0].url,d)}))}else if(u[0]instanceof r){var v=u[0];if(void 0===(p=u[1])&&(p=R),\"function\"!=typeof p)return C(e,f.d.call(e,\"cb must be a function\",d));e.bitmap={data:t.from(v.bitmap.data),width:v.bitmap.width,height:v.bitmap.height},e._quality=v._quality,e._deflateLevel=v._deflateLevel,e._deflateStrategy=v._deflateStrategy,e._filterType=v._filterType,e._rgba=v._rgba,e._background=v._background,e._originalMime=v._originalMime,d(null,e)}else if((l=u[0])&&\"object\"===B(l)&&\"number\"==typeof l.width&&\"number\"==typeof l.height&&(t.isBuffer(l.data)||l.data instanceof Uint8Array||\"function\"==typeof Uint8ClampedArray&&l.data instanceof Uint8ClampedArray)&&(l.data.length===l.width*l.height*4||l.data.length===l.width*l.height*3)){var b=u[0];p=u[1]||R;var _=b.width*b.height*4===b.data.length?t.from(b.data):function(e){if(e.length%3!=0)throw new Error(\"Buffer length is incorrect\");for(var r=t.allocUnsafe(e.length/3*4),n=0,i=0;i<e.length;i++)r[n]=e[i],(i+1)%3==0&&(r[++n]=255),n++;return r}(b.data);e.bitmap={data:_,width:b.width,height:b.height},d(null,e)}else if(\"string\"==typeof u[0]){var E=u[0];if(void 0===(p=u[1])&&(p=R),\"function\"!=typeof p)return C(e,f.d.call(e,\"cb must be a function\",d));!function(t,e){o.a&&\"function\"==typeof o.a.readFile&&!t.match(/^(http|ftp)s?:\\/\\/./)?o.a.readFile(t,e):G({url:t},e)}(E,(function(t,r){if(t)return f.d.call(e,t,d);e.parseBitmap(r,E,d)}))}else if(\"object\"===B(u[0])&&t.isBuffer(u[0])){var A=u[0];if(\"function\"!=typeof(p=u[1]))return C(e,f.d.call(e,\"cb must be a function\",d));e.parseBitmap(A,null,d)}else{\"function\"!=typeof(p=u[u.length-1])&&\"function\"!=typeof(p=u[u.length-2])&&(p=R);var D=r.__extraConstructors.find((function(t){return t.test.apply(t,u)}));if(!D)return C(e,f.d.call(e,\"No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.\",d));new Promise((function(t,r){var n;(n=D.run).call.apply(n,[e,t,r].concat(u))})).then((function(){return d(null,e)})).catch(d)}return e}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&F(t,e)}(r,e),n=r,i=[{key:\"parseBitmap\",value:function(t,e,r){x.c.call(this,t,null,r)}},{key:\"rgba\",value:function(t,e){return\"boolean\"!=typeof t?f.d.call(this,\"bool must be a boolean, true for RGBA or false for RGB\",e):(this._rgba=t,Object(f.a)(e)&&e.call(this,null,this),this)}},{key:\"emitMulti\",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=Object.assign(r,{methodName:t,eventName:e}),this.emit(\"any\",r),t&&this.emit(t,r),this.emit(e,r)}},{key:\"emitError\",value:function(t,e){this.emitMulti(t,\"error\",e)}},{key:\"getHeight\",value:function(){return this.bitmap.height}},{key:\"getWidth\",value:function(){return this.bitmap.width}},{key:\"inspect\",value:function(){return\"<Jimp \"+(this.bitmap===q?\"pending...\":this.bitmap.width+\"x\"+this.bitmap.height)+\">\"}},{key:\"toString\",value:function(){return\"[object Jimp]\"}},{key:\"getMIME\",value:function(){return this._originalMime||r.MIME_PNG}},{key:\"getExtension\",value:function(){var t=this.getMIME();return _.b(t)}},{key:\"write\",value:function(t,e){var r=this;if(!o.a||!o.a.createWriteStream)throw new Error(\"Cant access the filesystem. You can use the getBase64 method.\");if(\"string\"!=typeof t)return f.d.call(this,\"path must be a string\",e);if(void 0===e&&(e=R),\"function\"!=typeof e)return f.d.call(this,\"cb must be a function\",e);var n=_.c(t)||this.getMIME(),i=s.a.parse(t);return i.dir&&o.a.mkdirSync(i.dir,{recursive:!0}),this.getBuffer(n,(function(n,i){if(n)return f.d.call(r,n,e);var a=o.a.createWriteStream(t);a.on(\"open\",(function(){a.write(i),a.end()})).on(\"error\",(function(t){return f.d.call(r,t,e)})),a.on(\"finish\",(function(){e.call(r,null,r)}))})),this}},{key:\"getBase64\",value:function(t,e){return t===r.AUTO&&(t=this.getMIME()),\"string\"!=typeof t?f.d.call(this,\"mime must be a string\",e):\"function\"!=typeof e?f.d.call(this,\"cb must be a function\",e):(this.getBuffer(t,(function(r,n){if(r)return f.d.call(this,r,e);var i=\"data:\"+t+\";base64,\"+n.toString(\"base64\");e.call(this,null,i)})),this)}},{key:\"hash\",value:function(t,e){if(\"function\"==typeof(t=t||64)&&(e=t,t=64),\"number\"!=typeof t)return f.d.call(this,\"base must be a number\",e);if(t<2||t>64)return f.d.call(this,\"base must be a number between 2 and 64\",e);var r=this.pHash();for(r=h()(h.a.BIN,P.slice(0,t))(r);r.length<L[t];)r=\"0\"+r;return Object(f.a)(e)&&e.call(this,null,r),r}},{key:\"pHash\",value:function(){var t=new y.a;return t.getHash(this)}},{key:\"distanceFromHash\",value:function(t){var e=new y.a,r=e.getHash(this);return e.distance(r,t)}},{key:\"getPixelIndex\",value:function(t,e,n,i){var o,a;if(\"function\"==typeof n&&void 0===i&&(i=n,n=null),n||(n=r.EDGE_EXTEND),\"number\"!=typeof t||\"number\"!=typeof e)return f.d.call(this,\"x and y must be numbers\",i);o=t=Math.round(t),a=e=Math.round(e),n===r.EDGE_EXTEND&&(t<0&&(o=0),t>=this.bitmap.width&&(o=this.bitmap.width-1),e<0&&(a=0),e>=this.bitmap.height&&(a=this.bitmap.height-1)),n===r.EDGE_WRAP&&(t<0&&(o=this.bitmap.width+t),t>=this.bitmap.width&&(o=t%this.bitmap.width),e<0&&(a=this.bitmap.height+e),e>=this.bitmap.height&&(a=e%this.bitmap.height));var s=this.bitmap.width*a+o<<2;return(o<0||o>=this.bitmap.width)&&(s=-1),(a<0||a>=this.bitmap.height)&&(s=-1),Object(f.a)(i)&&i.call(this,null,s),s}},{key:\"getPixelColor\",value:function(t,e,r){if(\"number\"!=typeof t||\"number\"!=typeof e)return f.d.call(this,\"x and y must be numbers\",r);var n=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(n);return Object(f.a)(r)&&r.call(this,null,i),i}},{key:\"setPixelColor\",value:function(t,e,r,n){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof r)return f.d.call(this,\"hex, x and y must be numbers\",n);var i=this.getPixelIndex(e,r);return this.bitmap.data.writeUInt32BE(t,i),Object(f.a)(n)&&n.call(this,null,this),this}},{key:\"hasAlpha\",value:function(){for(var t=this.bitmap,e=t.width,r=t.height,n=t.data,i=e*r<<2,o=3;o<i;o+=4)if(255!==n[o])return!0;return!1}},{key:\"scanIterator\",value:function(t,e,r,n){return\"number\"!=typeof t||\"number\"!=typeof e?f.d.call(this,\"x and y must be numbers\"):\"number\"!=typeof r||\"number\"!=typeof n?f.d.call(this,\"w and h must be numbers\"):Object(f.c)(this,t,e,r,n)}}],i&&S(n.prototype,i),a&&S(n,a),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,i,a}(c.a);function W(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z;Object.entries(t).forEach((function(t){var r=D(t,2),n=r[0],i=r[1];e[n]=i}))}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z;Object.entries(t).forEach((function(t){var r=D(t,2),n=r[0],i=r[1];e.prototype[n]=i}))}function X(t,e,r){var n=\"before-\"+e,i=e.replace(/e$/,\"\")+\"ed\";Z.prototype[t]=function(){for(var e,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var u,c=a[r.length-1],f=this;\"function\"==typeof c?(e=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=r[0],a=r[1];o?f.emitError(t,o):f.emitMulti(t,i,A({},t,a)),c.apply(this,r)},a[a.length-1]=e):e=!1,this.emitMulti(t,n);try{u=r.apply(this,a),e||this.emitMulti(t,i,A({},t,u))}catch(e){e.methodName=t,this.emitError(t,e)}return u},Z.prototype[t+\"Quiet\"]=r}function $(t,e){X(t,\"change\",e)}(W(E),Y({composite:b.a}),Z.__extraConstructors=[],Z.appendConstructorOption=function(t,e,r){Z.__extraConstructors.push({name:t,test:e,run:r})},Z.read=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return new Promise((function(t,r){!function(t,e,r){if(T())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));r&&F(i,r.prototype)}(Z,e.concat([function(e,n){e?r(e):t(n)}]))}))},Z.create=Z.read,Z.rgbaToInt=function(t,e,r,n,i){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof r||\"number\"!=typeof n)return f.d.call(this,\"r, g, b and a must be numbers\",i);if(t<0||t>255)return f.d.call(this,\"r must be between 0 and 255\",i);if((e<0||e>255)&&f.d.call(this,\"g must be between 0 and 255\",i),r<0||r>255)return f.d.call(this,\"b must be between 0 and 255\",i);if(n<0||n>255)return f.d.call(this,\"a must be between 0 and 255\",i);var o=255&t;return o<<=8,o|=255&e,o<<=8,o|=255&r,o<<=8,o|=255&n,o>>>=0,Object(f.a)(i)&&i.call(this,null,o),o},Z.intToRGBA=function(t,e){if(\"number\"!=typeof t)return f.d.call(this,\"i must be a number\",e);var r={};return r.r=Math.floor(t/Math.pow(256,3)),r.g=Math.floor((t-r.r*Math.pow(256,3))/Math.pow(256,2)),r.b=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2))/Math.pow(256,1)),r.a=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2)-r.b*Math.pow(256,1))/Math.pow(256,0)),Object(f.a)(e)&&e.call(this,null,r),r},Z.cssColorToHex=function(t){return\"number\"==typeof(t=t||0)?Number(t):parseInt(g()(t).toHex8(),16)},Z.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},Z.diff=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof Z&&e instanceof Z))return f.d.call(this,\"img1 and img2 must be an Jimp images\");var n=t.bitmap,i=e.bitmap;if(n.width===i.width&&n.height===i.height||(n.width*n.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(n.width,n.height)),\"number\"!=typeof r||r<0||r>1)return f.d.call(this,\"threshold must be a number between 0 and 1\");var o=new Z(n.width,n.height,4294967295);return{percent:d()(n.data,i.data,o.bitmap.data,o.bitmap.width,o.bitmap.height,{threshold:r})/(o.bitmap.width*o.bitmap.height),image:o}},Z.distance=function(t,e){var r=new y.a,n=r.getHash(t),i=r.getHash(e);return r.distance(n,i)},Z.compareHashes=function(t,e){return(new y.a).distance(t,e)},Z.colorDiff=function(t,e){var r=function(t){return Math.pow(t,2)},n=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(n(r(t.r-e.r),r(t.r-e.r-t.a+e.a))+n(r(t.g-e.g),r(t.g-e.g-t.a+e.a))+n(r(t.b-e.b),r(t.b-e.b-t.a+e.a)))/195075},X(\"clone\",\"clone\",(function(t){var e=new Z(this);return Object(f.a)(t)&&t.call(e,null,e),e})),$(\"background\",(function(t,e){return\"number\"!=typeof t?f.d.call(this,\"hex must be a hexadecimal rgba value\",e):(this._background=t,Object(f.a)(e)&&e.call(this,null,this),this)})),$(\"scan\",(function(t,e,r,n,i,o){if(\"number\"!=typeof t||\"number\"!=typeof e)return f.d.call(this,\"x and y must be numbers\",o);if(\"number\"!=typeof r||\"number\"!=typeof n)return f.d.call(this,\"w and h must be numbers\",o);if(\"function\"!=typeof i)return f.d.call(this,\"f must be a function\",o);var a=Object(f.b)(this,t,e,r,n,i);return Object(f.a)(o)&&o.call(this,null,a),a})),\"BROWSER\"===n.env.ENVIRONMENT)&&(\"undefined\"!=typeof window&&\"object\"===(\"undefined\"==typeof window?\"undefined\":B(window))&&(H=window),\"undefined\"!=typeof self&&\"object\"===(\"undefined\"==typeof self?\"undefined\":B(self))&&(H=self),H.Jimp=Z,H.Buffer=t);e.c=Z}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=r(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return n.EndOfStreamError}});var i=r(127);Object.defineProperty(e,\"StreamReader\",{enumerable:!0,get:function(){return i.StreamReader}})},function(t,e,r){(function(t){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):\"[object Array]\"===n(t)},e.isBoolean=function(t){return\"boolean\"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return\"number\"==typeof t},e.isString=function(t){return\"string\"==typeof t},e.isSymbol=function(t){return\"symbol\"===r(t)},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return\"[object RegExp]\"===n(t)},e.isObject=function(t){return\"object\"===r(t)&&null!==t},e.isDate=function(t){return\"[object Date]\"===n(t)},e.isError=function(t){return\"[object Error]\"===n(t)||t instanceof Error},e.isFunction=function(t){return\"function\"==typeof t},e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===r(t)||void 0===t},e.isBuffer=t.isBuffer}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(2).Buffer,i=r(38).Transform,o=r(159),a=r(14),s=r(53).ok,u=r(2).kMaxLength,c=\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(o),l=0;l<f.length;l++){var h=f[l];h.match(/^Z/)&&Object.defineProperty(e,h,{enumerable:!0,value:o[h],writable:!1})}for(var p={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},d=Object.keys(p),m=0;m<d.length;m++){var g=d[m];p[p[g]]=g}function y(t,e,r){var i=[],o=0;function a(){for(var e;null!==(e=t.read());)i.push(e),o+=e.length;t.once(\"readable\",a)}function s(){var e,a=null;o>=u?a=new RangeError(c):e=n.concat(i,o),i=[],t.close(),r(a,e)}t.on(\"error\",(function(e){t.removeListener(\"end\",s),t.removeListener(\"readable\",a),r(e)})),t.on(\"end\",s),t.end(e),a()}function v(t,e){if(\"string\"==typeof e&&(e=n.from(e)),!n.isBuffer(e))throw new TypeError(\"Not a string or buffer\");var r=t._finishFlushFlag;return t._processChunk(e,r)}function b(t){if(!(this instanceof b))return new b(t);S.call(this,t,o.DEFLATE)}function w(t){if(!(this instanceof w))return new w(t);S.call(this,t,o.INFLATE)}function _(t){if(!(this instanceof _))return new _(t);S.call(this,t,o.GZIP)}function x(t){if(!(this instanceof x))return new x(t);S.call(this,t,o.GUNZIP)}function E(t){if(!(this instanceof E))return new E(t);S.call(this,t,o.DEFLATERAW)}function A(t){if(!(this instanceof A))return new A(t);S.call(this,t,o.INFLATERAW)}function D(t){if(!(this instanceof D))return new D(t);S.call(this,t,o.UNZIP)}function k(t){return t===o.Z_NO_FLUSH||t===o.Z_PARTIAL_FLUSH||t===o.Z_SYNC_FLUSH||t===o.Z_FULL_FLUSH||t===o.Z_FINISH||t===o.Z_BLOCK}function S(t,r){var a=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,i.call(this,t),t.flush&&!k(t.flush))throw new Error(\"Invalid flush flag: \"+t.flush);if(t.finishFlush&&!k(t.finishFlush))throw new Error(\"Invalid flush flag: \"+t.finishFlush);if(this._flushFlag=t.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:o.Z_FINISH,t.chunkSize&&(t.chunkSize<e.Z_MIN_CHUNK||t.chunkSize>e.Z_MAX_CHUNK))throw new Error(\"Invalid chunk size: \"+t.chunkSize);if(t.windowBits&&(t.windowBits<e.Z_MIN_WINDOWBITS||t.windowBits>e.Z_MAX_WINDOWBITS))throw new Error(\"Invalid windowBits: \"+t.windowBits);if(t.level&&(t.level<e.Z_MIN_LEVEL||t.level>e.Z_MAX_LEVEL))throw new Error(\"Invalid compression level: \"+t.level);if(t.memLevel&&(t.memLevel<e.Z_MIN_MEMLEVEL||t.memLevel>e.Z_MAX_MEMLEVEL))throw new Error(\"Invalid memLevel: \"+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error(\"Invalid strategy: \"+t.strategy);if(t.dictionary&&!n.isBuffer(t.dictionary))throw new Error(\"Invalid dictionary: it should be a Buffer instance\");this._handle=new o.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(t,r){M(s),s._hadError=!0;var n=new Error(t);n.errno=r,n.code=e.codes[r],s.emit(\"error\",n)};var u=e.Z_DEFAULT_COMPRESSION;\"number\"==typeof t.level&&(u=t.level);var c=e.Z_DEFAULT_STRATEGY;\"number\"==typeof t.strategy&&(c=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,u,t.memLevel||e.Z_DEFAULT_MEMLEVEL,c,t.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=c,this.once(\"end\",this.close),Object.defineProperty(this,\"_closed\",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function M(e,r){r&&t.nextTick(r),e._handle&&(e._handle.close(),e._handle=null)}function C(t){t.emit(\"close\")}Object.defineProperty(e,\"codes\",{enumerable:!0,value:Object.freeze(p),writable:!1}),e.Deflate=b,e.Inflate=w,e.Gzip=_,e.Gunzip=x,e.DeflateRaw=E,e.InflateRaw=A,e.Unzip=D,e.createDeflate=function(t){return new b(t)},e.createInflate=function(t){return new w(t)},e.createDeflateRaw=function(t){return new E(t)},e.createInflateRaw=function(t){return new A(t)},e.createGzip=function(t){return new _(t)},e.createGunzip=function(t){return new x(t)},e.createUnzip=function(t){return new D(t)},e.deflate=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),y(new b(e),t,r)},e.deflateSync=function(t,e){return v(new b(e),t)},e.gzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),y(new _(e),t,r)},e.gzipSync=function(t,e){return v(new _(e),t)},e.deflateRaw=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),y(new E(e),t,r)},e.deflateRawSync=function(t,e){return v(new E(e),t)},e.unzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),y(new D(e),t,r)},e.unzipSync=function(t,e){return v(new D(e),t)},e.inflate=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),y(new w(e),t,r)},e.inflateSync=function(t,e){return v(new w(e),t)},e.gunzip=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),y(new x(e),t,r)},e.gunzipSync=function(t,e){return v(new x(e),t)},e.inflateRaw=function(t,e,r){return\"function\"==typeof e&&(r=e,e={}),y(new A(e),t,r)},e.inflateRawSync=function(t,e){return v(new A(e),t)},a.inherits(S,i),S.prototype.params=function(r,n,i){if(r<e.Z_MIN_LEVEL||r>e.Z_MAX_LEVEL)throw new RangeError(\"Invalid compression level: \"+r);if(n!=e.Z_FILTERED&&n!=e.Z_HUFFMAN_ONLY&&n!=e.Z_RLE&&n!=e.Z_FIXED&&n!=e.Z_DEFAULT_STRATEGY)throw new TypeError(\"Invalid strategy: \"+n);if(this._level!==r||this._strategy!==n){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(a._handle,\"zlib binding closed\"),a._handle.params(r,n),a._hadError||(a._level=r,a._strategy=n,i&&i())}))}else t.nextTick(i)},S.prototype.reset=function(){return s(this._handle,\"zlib binding closed\"),this._handle.reset()},S.prototype._flush=function(t){this._transform(n.alloc(0),\"\",t)},S.prototype.flush=function(e,r){var i=this,a=this._writableState;(\"function\"==typeof e||void 0===e&&!r)&&(r=e,e=o.Z_FULL_FLUSH),a.ended?r&&t.nextTick(r):a.ending?r&&this.once(\"end\",r):a.needDrain?r&&this.once(\"drain\",(function(){return i.flush(e,r)})):(this._flushFlag=e,this.write(n.alloc(0),\"\",r))},S.prototype.close=function(e){M(this,e),t.nextTick(C,this)},S.prototype._transform=function(t,e,r){var i,a=this._writableState,s=(a.ending||a.ended)&&(!t||a.length===t.length);return null===t||n.isBuffer(t)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,t.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(t,i,r)):r(new Error(\"zlib binding closed\")):r(new Error(\"invalid input\"))},S.prototype._processChunk=function(t,e,r){var i=t&&t.length,o=this._chunkSize-this._offset,a=0,f=this,l=\"function\"==typeof r;if(!l){var h,p=[],d=0;this.on(\"error\",(function(t){h=t})),s(this._handle,\"zlib binding closed\");do{var m=this._handle.writeSync(e,t,a,i,this._buffer,this._offset,o)}while(!this._hadError&&v(m[0],m[1]));if(this._hadError)throw h;if(d>=u)throw M(this),new RangeError(c);var g=n.concat(p,d);return M(this),g}s(this._handle,\"zlib binding closed\");var y=this._handle.write(e,t,a,i,this._buffer,this._offset,o);function v(u,c){if(this&&(this.buffer=null,this.callback=null),!f._hadError){var h=o-c;if(s(h>=0,\"have should not go down\"),h>0){var m=f._buffer.slice(f._offset,f._offset+h);f._offset+=h,l?f.push(m):(p.push(m),d+=m.length)}if((0===c||f._offset>=f._chunkSize)&&(o=f._chunkSize,f._offset=0,f._buffer=n.allocUnsafe(f._chunkSize)),0===c){if(a+=i-u,i=u,!l)return!0;var g=f._handle.write(e,t,a,i,f._buffer,f._offset,f._chunkSize);return g.callback=v,void(g.buffer=t)}if(!l)return!1;r()}}y.buffer=t,y.callback=v},a.inherits(b,S),a.inherits(w,S),a.inherits(_,S),a.inherits(x,S),a.inherits(E,S),a.inherits(A,S),a.inherits(D,S)}).call(this,r(7))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i,o=r(165),a=r(166),s=r(167),u=r(168),c=r(77),f=r(40),l=r(169),h=Function,p=function(t){try{return h('\"use strict\"; return ('+t+\").constructor;\")()}catch(t){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},\"\")}catch(t){d=null}var m=function(){throw new f},g=d?function(){try{return m}catch(t){try{return d(arguments,\"callee\").get}catch(t){return m}}}():m,y=r(170)(),v=r(171)(),b=Object.getPrototypeOf||(v?function(t){return t.__proto__}:null),w={},_=\"undefined\"!=typeof Uint8Array&&b?b(Uint8Array):i,x={__proto__:null,\"%AggregateError%\":\"undefined\"==typeof AggregateError?i:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":\"undefined\"==typeof ArrayBuffer?i:ArrayBuffer,\"%ArrayIteratorPrototype%\":y&&b?b([][Symbol.iterator]()):i,\"%AsyncFromSyncIteratorPrototype%\":i,\"%AsyncFunction%\":w,\"%AsyncGenerator%\":w,\"%AsyncGeneratorFunction%\":w,\"%AsyncIteratorPrototype%\":w,\"%Atomics%\":\"undefined\"==typeof Atomics?i:Atomics,\"%BigInt%\":\"undefined\"==typeof BigInt?i:BigInt,\"%BigInt64Array%\":\"undefined\"==typeof BigInt64Array?i:BigInt64Array,\"%BigUint64Array%\":\"undefined\"==typeof BigUint64Array?i:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":\"undefined\"==typeof DataView?i:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":o,\"%eval%\":eval,\"%EvalError%\":a,\"%Float32Array%\":\"undefined\"==typeof Float32Array?i:Float32Array,\"%Float64Array%\":\"undefined\"==typeof Float64Array?i:Float64Array,\"%FinalizationRegistry%\":\"undefined\"==typeof FinalizationRegistry?i:FinalizationRegistry,\"%Function%\":h,\"%GeneratorFunction%\":w,\"%Int8Array%\":\"undefined\"==typeof Int8Array?i:Int8Array,\"%Int16Array%\":\"undefined\"==typeof Int16Array?i:Int16Array,\"%Int32Array%\":\"undefined\"==typeof Int32Array?i:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":y&&b?b(b([][Symbol.iterator]())):i,\"%JSON%\":\"object\"===(\"undefined\"==typeof JSON?\"undefined\":n(JSON))?JSON:i,\"%Map%\":\"undefined\"==typeof Map?i:Map,\"%MapIteratorPrototype%\":\"undefined\"!=typeof Map&&y&&b?b((new Map)[Symbol.iterator]()):i,\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":Object,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":\"undefined\"==typeof Promise?i:Promise,\"%Proxy%\":\"undefined\"==typeof Proxy?i:Proxy,\"%RangeError%\":s,\"%ReferenceError%\":u,\"%Reflect%\":\"undefined\"==typeof Reflect?i:Reflect,\"%RegExp%\":RegExp,\"%Set%\":\"undefined\"==typeof Set?i:Set,\"%SetIteratorPrototype%\":\"undefined\"!=typeof Set&&y&&b?b((new Set)[Symbol.iterator]()):i,\"%SharedArrayBuffer%\":\"undefined\"==typeof SharedArrayBuffer?i:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":y&&b?b(\"\"[Symbol.iterator]()):i,\"%Symbol%\":y?Symbol:i,\"%SyntaxError%\":c,\"%ThrowTypeError%\":g,\"%TypedArray%\":_,\"%TypeError%\":f,\"%Uint8Array%\":\"undefined\"==typeof Uint8Array?i:Uint8Array,\"%Uint8ClampedArray%\":\"undefined\"==typeof Uint8ClampedArray?i:Uint8ClampedArray,\"%Uint16Array%\":\"undefined\"==typeof Uint16Array?i:Uint16Array,\"%Uint32Array%\":\"undefined\"==typeof Uint32Array?i:Uint32Array,\"%URIError%\":l,\"%WeakMap%\":\"undefined\"==typeof WeakMap?i:WeakMap,\"%WeakRef%\":\"undefined\"==typeof WeakRef?i:WeakRef,\"%WeakSet%\":\"undefined\"==typeof WeakSet?i:WeakSet};if(b)try{null.error}catch(t){var E=b(b(t));x[\"%Error.prototype%\"]=E}var A=function t(e){var r;if(\"%AsyncFunction%\"===e)r=p(\"async function () {}\");else if(\"%GeneratorFunction%\"===e)r=p(\"function* () {}\");else if(\"%AsyncGeneratorFunction%\"===e)r=p(\"async function* () {}\");else if(\"%AsyncGenerator%\"===e){var n=t(\"%AsyncGeneratorFunction%\");n&&(r=n.prototype)}else if(\"%AsyncIteratorPrototype%\"===e){var i=t(\"%AsyncGenerator%\");i&&b&&(r=b(i.prototype))}return x[e]=r,r},D={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},k=r(54),S=r(173),M=k.call(Function.call,Array.prototype.concat),C=k.call(Function.apply,Array.prototype.splice),T=k.call(Function.call,String.prototype.replace),O=k.call(Function.call,String.prototype.slice),F=k.call(Function.call,RegExp.prototype.exec),B=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,I=/\\\\(\\\\)?/g,P=function(t,e){var r,n=t;if(S(D,n)&&(n=\"%\"+(r=D[n])[0]+\"%\"),S(x,n)){var i=x[n];if(i===w&&(i=A(n)),void 0===i&&!e)throw new f(\"intrinsic \"+t+\" exists, but is not available. Please file an issue!\");return{alias:r,name:n,value:i}}throw new c(\"intrinsic \"+t+\" does not exist!\")};t.exports=function(t,e){if(\"string\"!=typeof t||0===t.length)throw new f(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&\"boolean\"!=typeof e)throw new f('\"allowMissing\" argument must be a boolean');if(null===F(/^%?[^%]*%?$/,t))throw new c(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var r=function(t){var e=O(t,0,1),r=O(t,-1);if(\"%\"===e&&\"%\"!==r)throw new c(\"invalid intrinsic syntax, expected closing `%`\");if(\"%\"===r&&\"%\"!==e)throw new c(\"invalid intrinsic syntax, expected opening `%`\");var n=[];return T(t,B,(function(t,e,r,i){n[n.length]=r?T(i,I,\"$1\"):e||t})),n}(t),n=r.length>0?r[0]:\"\",i=P(\"%\"+n+\"%\",e),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],C(r,M([0,1],u)));for(var l=1,h=!0;l<r.length;l+=1){var p=r[l],m=O(p,0,1),g=O(p,-1);if(('\"'===m||\"'\"===m||\"`\"===m||'\"'===g||\"'\"===g||\"`\"===g)&&m!==g)throw new c(\"property names with quotes must have matching quotes\");if(\"constructor\"!==p&&h||(s=!0),S(x,o=\"%\"+(n+=\".\"+p)+\"%\"))a=x[o];else if(null!=a){if(!(p in a)){if(!e)throw new f(\"base intrinsic for \"+t+\" exists, but the property is not available.\");return}if(d&&l+1>=r.length){var y=d(a,p);a=(h=!!y)&&\"get\"in y&&!(\"originalValue\"in y.get)?y.get:a[p]}else h=S(a,p),a=a[p];h&&!s&&(x[o]=a)}}return a}},function(t,e,r){\"use strict\";t.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i,o=\"object\"===(\"undefined\"==typeof Reflect?\"undefined\":n(Reflect))?Reflect:null,a=o&&\"function\"==typeof o.apply?o.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};i=o&&\"function\"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}t.exports=u,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){\"function\"==typeof t.removeListener&&t.removeListener(\"error\",i),r([].slice.call(arguments))}v(t,e,o,{once:!0}),\"error\"!==e&&function(t,e,r){\"function\"==typeof t.on&&v(t,\"error\",e,r)}(t,i,{once:!0})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function f(t){if(\"function\"!=typeof t)throw new TypeError('The \"listener\" argument must be of type Function. Received type '+n(t))}function l(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var i,o,a;if(f(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit(\"newListener\",e,r.listener?r.listener:r),o=t._events),a=o[e]),void 0===a)a=o[e]=r,++t._eventsCount;else if(\"function\"==typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(t))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error(\"Possible EventEmitter memory leak detected. \"+a.length+\" \"+String(e)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");s.name=\"MaxListenersExceededWarning\",s.emitter=t,s.type=e,s.count=a.length,console&&console.warn}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=p.bind(n);return i.listener=r,n.wrapFn=i,i}function m(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:\"function\"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):y(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var r=e[t];if(\"function\"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function v(t,e,r,i){if(\"function\"==typeof t.on)i.once?t.once(e,r):t.on(e,r);else{if(\"function\"!=typeof t.addEventListener)throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type '+n(t));t.addEventListener(e,(function n(o){i.once&&t.removeEventListener(e,n),r(o)}))}}Object.defineProperty(u,\"defaultMaxListeners\",{enumerable:!0,get:function(){return c},set:function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+t+\".\");c=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+t+\".\");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return l(this)},u.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n=\"error\"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var s=new Error(\"Unhandled error.\"+(o?\" (\"+o.message+\")\":\"\"));throw s.context=o,s}var u=i[t];if(void 0===u)return!1;if(\"function\"==typeof u)a(u,this,e);else{var c=u.length,f=y(u,c);for(r=0;r<c;++r)a(f[r],this,e)}return!0},u.prototype.addListener=function(t,e){return h(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return h(this,t,e,!0)},u.prototype.once=function(t,e){return f(e),this.on(t,d(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){return f(e),this.prependListener(t,d(this,t,e)),this},u.prototype.removeListener=function(t,e){var r,n,i,o,a;if(f(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit(\"removeListener\",t,r.listener||e));else if(\"function\"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit(\"removeListener\",t,a||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)\"removeListener\"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(\"function\"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return m(this,t,!0)},u.prototype.rawListeners=function(t){return m(this,t,!1)},u.listenerCount=function(t,e){return\"function\"==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},u.prototype.listenerCount=g,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(t,e,r){var n,i,o;function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}o=function(){\"use strict\";function t(e){return t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t(e)}var e=/^\\s+/,r=/\\s+$/;function n(i,o){if(o=o||{},(i=i||\"\")instanceof n)return i;if(!(this instanceof n))return new n(i,o);var a=function(n){var i,o,a,s={r:0,g:0,b:0},u=1,c=null,f=null,l=null,h=!1,p=!1;return\"string\"==typeof n&&(n=function(t){t=t.replace(e,\"\").replace(r,\"\").toLowerCase();var n,i=!1;if(w[t])t=w[t],i=!0;else if(\"transparent\"==t)return{r:0,g:0,b:0,a:0,format:\"name\"};return(n=B.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=B.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=B.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=B.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=B.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=B.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=B.hex8.exec(t))?{r:D(n[1]),g:D(n[2]),b:D(n[3]),a:C(n[4]),format:i?\"name\":\"hex8\"}:(n=B.hex6.exec(t))?{r:D(n[1]),g:D(n[2]),b:D(n[3]),format:i?\"name\":\"hex\"}:(n=B.hex4.exec(t))?{r:D(n[1]+\"\"+n[1]),g:D(n[2]+\"\"+n[2]),b:D(n[3]+\"\"+n[3]),a:C(n[4]+\"\"+n[4]),format:i?\"name\":\"hex8\"}:!!(n=B.hex3.exec(t))&&{r:D(n[1]+\"\"+n[1]),g:D(n[2]+\"\"+n[2]),b:D(n[3]+\"\"+n[3]),format:i?\"name\":\"hex\"}}(n)),\"object\"==t(n)&&(I(n.r)&&I(n.g)&&I(n.b)?(i=n.r,o=n.g,a=n.b,s={r:255*E(i,255),g:255*E(o,255),b:255*E(a,255)},h=!0,p=\"%\"===String(n.r).substr(-1)?\"prgb\":\"rgb\"):I(n.h)&&I(n.s)&&I(n.v)?(c=S(n.s),f=S(n.v),s=function(t,e,r){t=6*E(t,360),e=E(e,100),r=E(r,100);var n=Math.floor(t),i=t-n,o=r*(1-e),a=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6,c=[r,a,o,o,s,r][u],f=[s,r,r,a,o,o][u],l=[o,o,s,r,r,a][u];return{r:255*c,g:255*f,b:255*l}}(n.h,c,f),h=!0,p=\"hsv\"):I(n.h)&&I(n.s)&&I(n.l)&&(c=S(n.s),l=S(n.l),s=function(t,e,r){var n,i,o;function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=E(t,360),e=E(e,100),r=E(r,100),0===e)n=i=o=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*o}}(n.h,c,l),h=!0,p=\"hsl\"),n.hasOwnProperty(\"a\")&&(u=n.a)),u=x(u),{ok:h,format:n.format||p,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:u}}(i);this._originalInput=i,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=o.format||a.format,this._gradientType=o.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}function i(t,e,r){t=E(t,255),e=E(e,255),r=E(r,255);var n,i,o=Math.max(t,e,r),a=Math.min(t,e,r),s=(o+a)/2;if(o==a)n=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:s}}function o(t,e,r){t=E(t,255),e=E(e,255),r=E(r,255);var n,i,o=Math.max(t,e,r),a=Math.min(t,e,r),s=o,u=o-a;if(i=0===o?0:u/o,o==a)n=0;else{switch(o){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:s}}function a(t,e,r,n){var i=[k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function s(t,e,r,n){return[k(M(n)),k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(Math.round(r).toString(16))].join(\"\")}function u(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s-=e/100,r.s=A(r.s),n(r)}function c(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s+=e/100,r.s=A(r.s),n(r)}function f(t){return n(t).desaturate(100)}function l(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l+=e/100,r.l=A(r.l),n(r)}function h(t,e){e=0===e?0:e||10;var r=n(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),n(r)}function p(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l-=e/100,r.l=A(r.l),n(r)}function d(t,e){var r=n(t).toHsl(),i=(r.h+e)%360;return r.h=i<0?360+i:i,n(r)}function m(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function g(t,e){if(isNaN(e)||e<=0)throw new Error(\"Argument to polyad must be a positive number\");for(var r=n(t).toHsl(),i=[n(t)],o=360/e,a=1;a<e;a++)i.push(n({h:(r.h+a*o)%360,s:r.s,l:r.l}));return i}function y(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+72)%360,s:e.s,l:e.l}),n({h:(r+216)%360,s:e.s,l:e.l})]}function v(t,e,r){e=e||6,r=r||30;var i=n(t).toHsl(),o=360/r,a=[n(t)];for(i.h=(i.h-(o*e>>1)+720)%360;--e;)i.h=(i.h+o)%360,a.push(n(i));return a}function b(t,e){e=e||6;for(var r=n(t).toHsv(),i=r.h,o=r.s,a=r.v,s=[],u=1/e;e--;)s.push(n({h:i,s:o,v:a})),a=(a+u)%1;return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=x(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=o(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?\"hsv(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsva(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?\"hsl(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsla(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHex:function(t){return a(this._r,this._g,this._b,t)},toHexString:function(t){return\"#\"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(Math.round(r).toString(16)),k(M(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join(\"\")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return\"#\"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\")\":\"rgba(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:Math.round(100*E(this._r,255))+\"%\",g:Math.round(100*E(this._g,255))+\"%\",b:Math.round(100*E(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(100*E(this._r,255))+\"%, \"+Math.round(100*E(this._g,255))+\"%, \"+Math.round(100*E(this._b,255))+\"%)\":\"rgba(\"+Math.round(100*E(this._r,255))+\"%, \"+Math.round(100*E(this._g,255))+\"%, \"+Math.round(100*E(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&(_[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=\"#\"+s(this._r,this._g,this._b,this._a),r=e,i=this._gradientType?\"GradientType = 1, \":\"\";if(t){var o=n(t);r=\"#\"+s(o._r,o._g,o._b,o._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+i+\"startColorstr=\"+e+\",endColorstr=\"+r+\")\"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||\"hex\"!==t&&\"hex6\"!==t&&\"hex3\"!==t&&\"hex4\"!==t&&\"hex8\"!==t&&\"name\"!==t?(\"rgb\"===t&&(r=this.toRgbString()),\"prgb\"===t&&(r=this.toPercentageRgbString()),\"hex\"!==t&&\"hex6\"!==t||(r=this.toHexString()),\"hex3\"===t&&(r=this.toHexString(!0)),\"hex4\"===t&&(r=this.toHex8String(!0)),\"hex8\"===t&&(r=this.toHex8String()),\"name\"===t&&(r=this.toName()),\"hsl\"===t&&(r=this.toHslString()),\"hsv\"===t&&(r=this.toHsvString()),r||this.toHexString()):\"name\"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(y,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},n.fromRatio=function(e,r){if(\"object\"==t(e)){var i={};for(var o in e)e.hasOwnProperty(o)&&(i[o]=\"a\"===o?e[o]:S(e[o]));e=i}return n(e,r)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(t,e,r){r=0===r?0:r||50;var i=n(t).toRgb(),o=n(e).toRgb(),a=r/100;return n({r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a})},n.readability=function(t,e){var r=n(t),i=n(e);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(t,e,r){var i,o,a,s,u,c=n.readability(t,e);switch(o=!1,(a=r,s=((a=a||{level:\"AA\",size:\"small\"}).level||\"AA\").toUpperCase(),u=(a.size||\"small\").toLowerCase(),\"AA\"!==s&&\"AAA\"!==s&&(s=\"AA\"),\"small\"!==u&&\"large\"!==u&&(u=\"small\"),i={level:s,size:u}).level+i.size){case\"AAsmall\":case\"AAAlarge\":o=c>=4.5;break;case\"AAlarge\":o=c>=3;break;case\"AAAsmall\":o=c>=7}return o},n.mostReadable=function(t,e,r){var i,o,a,s,u=null,c=0;o=(r=r||{}).includeFallbackColors,a=r.level,s=r.size;for(var f=0;f<e.length;f++)(i=n.readability(t,e[f]))>c&&(c=i,u=n(e[f]));return n.isReadable(t,u,{level:a,size:s})||!o?u:(r.includeFallbackColors=!1,n.mostReadable(t,[\"#fff\",\"#000\"],r))};var w=n.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},_=n.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(w);function x(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function E(t,e){(function(t){return\"string\"==typeof t&&-1!=t.indexOf(\".\")&&1===parseFloat(t)})(t)&&(t=\"100%\");var r=function(t){return\"string\"==typeof t&&-1!=t.indexOf(\"%\")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function A(t){return Math.min(1,Math.max(0,t))}function D(t){return parseInt(t,16)}function k(t){return 1==t.length?\"0\"+t:\"\"+t}function S(t){return t<=1&&(t=100*t+\"%\"),t}function M(t){return Math.round(255*parseFloat(t)).toString(16)}function C(t){return D(t)/255}var T,O,F,B=(O=\"[\\\\s|\\\\(]+(\"+(T=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\")+\")[,|\\\\s]+(\"+T+\")[,|\\\\s]+(\"+T+\")\\\\s*\\\\)?\",F=\"[\\\\s|\\\\(]+(\"+T+\")[,|\\\\s]+(\"+T+\")[,|\\\\s]+(\"+T+\")[,|\\\\s]+(\"+T+\")\\\\s*\\\\)?\",{CSS_UNIT:new RegExp(T),rgb:new RegExp(\"rgb\"+O),rgba:new RegExp(\"rgba\"+F),hsl:new RegExp(\"hsl\"+O),hsla:new RegExp(\"hsla\"+F),hsv:new RegExp(\"hsv\"+O),hsva:new RegExp(\"hsva\"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function I(t){return!!B.CSS_UNIT.exec(t)}return n},\"object\"===a(e)&&void 0!==t?t.exports=o():void 0===(i=\"function\"==typeof(n=o)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){\"use strict\";e.a=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise((function(r,i){n.push((function(t,e){t&&i(t),r(e)})),t.bind(e).apply(void 0,n)}))}},function(t,e,r){var n=r(122);function i(t,e){var r=new n(t,e);return function(t){return r.convert(t)}}i.BIN=\"01\",i.OCT=\"01234567\",i.DEC=\"0123456789\",i.HEX=\"0123456789abcdef\",t.exports=i},function(t,e,r){\"use strict\";function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;e<t;e++)o[e]=1;o[0]=1/Math.sqrt(2)}(this.size)}function i(t){var e=255&t,r=255&(t>>>=8),n=255&(t>>>=8);return{r:255&(t>>>=8),g:n,b:r,a:e}}n.prototype.size=32,n.prototype.smallerSize=8,n.prototype.distance=function(t,e){for(var r=0,n=0;n<t.length;n++)t[n]!==e[n]&&r++;return r/t.length},n.prototype.getHash=function(t){(t=t.clone().resize(this.size,this.size)).grayscale();for(var e=[],r=0;r<t.bitmap.width;r++){e[r]=[];for(var n=0;n<t.bitmap.height;n++)e[r][n]=i(t.getPixelColor(r,n)).b}for(var a=function(t,e){for(var r=e,n=[],i=0;i<r;i++){n[i]=[];for(var a=0;a<r;a++){for(var s=0,u=0;u<r;u++)for(var c=0;c<r;c++)s+=Math.cos((2*u+1)/(2*r)*i*Math.PI)*Math.cos((2*c+1)/(2*r)*a*Math.PI)*t[u][c];s*=o[i]*o[a]/4,n[i][a]=s}}return n}(e,this.size),s=0,u=0;u<this.smallerSize;u++)for(var c=0;c<this.smallerSize;c++)s+=a[u][c];for(var f=s/(this.smallerSize*this.smallerSize),l=\"\",h=0;h<this.smallerSize;h++)for(var p=0;p<this.smallerSize;p++)l+=a[h][p]>f?\"1\":\"0\";return l};var o=[];e.a=n},function(t,e,r){(function(t,e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}!function(){var i={};function o(){void 0===e&&console.log.apply(console,arguments)}\"object\"==n(t)?t.exports=i:self.UTIF=i,function(t,e){var r,i,a,s,u,c,f,l,h,p,d,m,g,y;!function(){\"use strict\";var e=function(){function t(t){this.message=\"JPEG error: \"+t}return t.prototype=new Error,t.prototype.name=\"JpegError\",t.constructor=t,t}(),r=function(){var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),r=4017,o=799,a=3406,s=2276,u=1567,c=3784,f=5793,l=2896;function h(t){null==t&&(t={}),null==t.w&&(t.w=-1),this.V=t.n,this.N=t.w}function p(t,e){for(var r,n,i,o=0,a=[],s=16;s>0&&!t[s-1];)s--;a.push({children:[],index:0});var u=a[0];for(r=0;r<s;r++){for(n=0;n<t[r];n++){for((u=a.pop()).children[u.index]=e[o];u.index>0;)u=a.pop();for(u.index++,a.push(u);a.length<=r;)a.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i;o++}r+1<s&&(a.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i)}return a[0].children}function d(t,e,r){return 64*((t.P+1)*e+r)}function m(r,o,a,s,u,c,f,l,h,p){null==p&&(p=!1);var m,g,y,b,w,_,x,E,A,D,k,S=a.m,M=a.Z,C=o,T=0,O=0,F=0,B=0,I=0,P=0;function L(){if(O>0)return O--,T>>O&1;if(255===(T=r[o++])){var t=r[o++];if(t){if(220===t&&p){var n=i(r,o+=2);if(o+=2,n>0&&n!==a.s)throw new DNLMarkerError(\"Found DNL marker (0xFFDC) while parsing scan data\",n)}else if(217===t){if(p){var s=8*I;if(s>0&&s<a.s/10)throw new DNLMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter\",s)}throw new EOIMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data\")}throw new e(\"unexpected marker\")}}return O=7,T>>>7}function N(t){for(var r=t;;){switch(n(r=r[L()])){case\"number\":return r;case\"object\":continue}throw new e(\"invalid huffman sequence\")}}function j(t){for(var e=0;t>0;)e=e<<1|L(),t--;return e}function R(t){if(1===t)return 1===L()?1:-1;var e=j(t);return e>=1<<t-1?e:e+(-1<<t)+1}function z(t,e,r,n,i){var o=r%S;I=(r/S|0)*t.A+n;var a=o*t.h+i;e(t,d(t,I,a))}function U(t,e,r){I=r/t.P|0;var n=r%t.P;e(t,d(t,I,n))}var G=s.length;for(x=M?0===c?0===l?function(t,e){var r=N(t.J),n=0===r?0:R(r)<<h;t.D[e]=t.Q+=n}:function(t,e){t.D[e]|=L()<<h}:0===l?function(e,r){if(F>0)F--;else for(var n=c,i=f;n<=i;){var o=N(e.i),a=15&o,s=o>>4;if(0!==a){var u=t[n+=s];e.D[r+u]=R(a)*(1<<h),n++}else{if(s<15){F=j(s)+(1<<s)-1;break}n+=16}}}:function(r,n){for(var i,o,a=c,s=f,u=0;a<=s;){var l=n+t[a],p=r.D[l]<0?-1:1;switch(B){case 0:if(u=(o=N(r.i))>>4,0==(i=15&o))u<15?(F=j(u)+(1<<u),B=4):(u=16,B=1);else{if(1!==i)throw new e(\"invalid ACn encoding\");m=R(i),B=u?2:3}continue;case 1:case 2:r.D[l]?r.D[l]+=p*(L()<<h):0==--u&&(B=2===B?3:0);break;case 3:r.D[l]?r.D[l]+=p*(L()<<h):(r.D[l]=m<<h,B=0);break;case 4:r.D[l]&&(r.D[l]+=p*(L()<<h))}a++}4===B&&0==--F&&(B=0)}:function(e,r){var n=N(e.J),i=0===n?0:R(n),o=1;for(e.D[r]=e.Q+=i;o<64;){var a=N(e.i),s=15&a,u=a>>4;if(0!==s){var c=t[o+=u];e.D[r+c]=R(s),o++}else{if(u<15)break;o+=16}}},A=1===G?s[0].P*s[0].c:S*a.R;P<=A;){var H=u?Math.min(A-P,u):A;if(H>0){for(y=0;y<G;y++)s[y].Q=0;if(F=0,1===G)for(g=s[0],_=0;_<H;_++)U(g,x,P),P++;else for(_=0;_<H;_++){for(y=0;y<G;y++)for(D=(g=s[y]).h,k=g.A,b=0;b<k;b++)for(w=0;w<D;w++)z(g,x,P,b,w);P++}}if(O=0,!(E=v(r,o)))break;if(E.u){o=E.offset}if(!(E.M>=65488&&E.M<=65495))break;o+=2}return o-C}function g(t,n,i){var h,p,d,m,g,y,v,b,w,_,x,E,A,D,k,S,M,C=t.$,T=t.D;if(!C)throw new e(\"missing required Quantization Table.\");for(var O=0;O<64;O+=8)w=T[n+O],_=T[n+O+1],x=T[n+O+2],E=T[n+O+3],A=T[n+O+4],D=T[n+O+5],k=T[n+O+6],S=T[n+O+7],w*=C[O],_|x|E|A|D|k|S?(_*=C[O+1],x*=C[O+2],E*=C[O+3],A*=C[O+4],D*=C[O+5],k*=C[O+6],S*=C[O+7],p=(h=(h=f*w+128>>8)+(p=f*A+128>>8)+1>>1)-p,M=(d=x)*c+(m=k)*u+128>>8,d=d*u-m*c+128>>8,v=(g=(g=l*(_-S)+128>>8)+(v=D<<4)+1>>1)-v,y=(b=(b=l*(_+S)+128>>8)+(y=E<<4)+1>>1)-y,m=(h=h+(m=M)+1>>1)-m,d=(p=p+d+1>>1)-d,M=g*s+b*a+2048>>12,g=g*a-b*s+2048>>12,b=M,M=y*o+v*r+2048>>12,y=y*r-v*o+2048>>12,v=M,i[O]=h+b,i[O+7]=h-b,i[O+1]=p+v,i[O+6]=p-v,i[O+2]=d+y,i[O+5]=d-y,i[O+3]=m+g,i[O+4]=m-g):(M=f*w+512>>10,i[O]=M,i[O+1]=M,i[O+2]=M,i[O+3]=M,i[O+4]=M,i[O+5]=M,i[O+6]=M,i[O+7]=M);for(var F=0;F<8;++F)w=i[F],(_=i[F+8])|(x=i[F+16])|(E=i[F+24])|(A=i[F+32])|(D=i[F+40])|(k=i[F+48])|(S=i[F+56])?(p=(h=4112+((h=f*w+2048>>12)+(p=f*A+2048>>12)+1>>1))-p,M=(d=x)*c+(m=k)*u+2048>>12,d=d*u-m*c+2048>>12,m=M,v=(g=(g=l*(_-S)+2048>>12)+(v=D)+1>>1)-v,y=(b=(b=l*(_+S)+2048>>12)+(y=E)+1>>1)-y,M=g*s+b*a+2048>>12,g=g*a-b*s+2048>>12,b=M,M=y*o+v*r+2048>>12,y=y*r-v*o+2048>>12,(w=(h=h+m+1>>1)+b)<16?w=0:w>=4080?w=255:w>>=4,(_=(p=p+d+1>>1)+(v=M))<16?_=0:_>=4080?_=255:_>>=4,(x=(d=p-d)+y)<16?x=0:x>=4080?x=255:x>>=4,(E=(m=h-m)+g)<16?E=0:E>=4080?E=255:E>>=4,(A=m-g)<16?A=0:A>=4080?A=255:A>>=4,(D=d-y)<16?D=0:D>=4080?D=255:D>>=4,(k=p-v)<16?k=0:k>=4080?k=255:k>>=4,(S=h-b)<16?S=0:S>=4080?S=255:S>>=4,T[n+F]=w,T[n+F+8]=_,T[n+F+16]=x,T[n+F+24]=E,T[n+F+32]=A,T[n+F+40]=D,T[n+F+48]=k,T[n+F+56]=S):(M=(M=f*w+8192>>14)<-2040?0:M>=2024?255:M+2056>>4,T[n+F]=M,T[n+F+8]=M,T[n+F+16]=M,T[n+F+24]=M,T[n+F+32]=M,T[n+F+40]=M,T[n+F+48]=M,T[n+F+56]=M)}function y(t,e){for(var r=e.P,n=e.c,i=new Int16Array(64),o=0;o<n;o++)for(var a=0;a<r;a++){g(e,d(e,o,a),i)}return e.D}function v(t,e,r){null==r&&(r=e);var n=t.length-1,o=r<e?r:e;if(e>=n)return null;var a=i(t,e);if(a>=65472&&a<=65534)return{u:null,M:a,offset:e};for(var s=i(t,o);!(s>=65472&&s<=65534);){if(++o>=n)return null;s=i(t,o)}return{u:a.toString(16),M:s,offset:o}}return h.prototype={parse:function(r,n){null==n&&(n={});var o,a,s=n.F,u=0,c=null,f=null,l=0;function h(){var t=i(r,u),e=(u+=2)+t-2,n=v(r,e,u);n&&n.u&&(e=n.offset);var o=r.subarray(u,e);return u+=o.length,o}function d(t){for(var e=Math.ceil(t.o/8/t.X),r=Math.ceil(t.s/8/t.B),n=0;n<t.W.length;n++){G=t.W[n];var i=Math.ceil(Math.ceil(t.o/8)*G.h/t.X),o=Math.ceil(Math.ceil(t.s/8)*G.A/t.B),a=e*G.h,s=64*(r*G.A)*(a+1);G.D=new Int16Array(s),G.P=i,G.c=o}t.m=e,t.R=r}var g=[],b=[],w=[],_=i(r,u);if(u+=2,65496!==_)throw new e(\"SOI not found\");_=i(r,u),u+=2;t:for(;65497!==_;){var x,E,A;switch(_){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var D=h();65504===_&&74===D[0]&&70===D[1]&&73===D[2]&&70===D[3]&&0===D[4]&&(c={version:{d:D[5],T:D[6]},K:D[7],j:D[8]<<8|D[9],H:D[10]<<8|D[11],S:D[12],I:D[13],C:D.subarray(14,14+3*D[12]*D[13])}),65518===_&&65===D[0]&&100===D[1]&&111===D[2]&&98===D[3]&&101===D[4]&&(f={version:D[5]<<8|D[6],k:D[7]<<8|D[8],q:D[9]<<8|D[10],a:D[11]});break;case 65499:for(var k=i(r,u)+(u+=2)-2;u<k;){var S=r[u++],M=new Uint16Array(64);if(S>>4){if(S>>4!=1)throw new e(\"DQT - invalid table spec\");for(E=0;E<64;E++)M[t[E]]=i(r,u),u+=2}else for(E=0;E<64;E++)M[t[E]]=r[u++];g[15&S]=M}break;case 65472:case 65473:case 65474:if(o)throw new e(\"Only single frame JPEGs supported\");u+=2,(o={}).G=65473===_,o.Z=65474===_,o.precision=r[u++];var C,T=i(r,u),O=0,F=0;u+=2,o.s=s||T,o.o=i(r,u),u+=2,o.W=[],o._={};var B=r[u++];for(x=0;x<B;x++){C=r[u];var I=r[u+1]>>4,P=15&r[u+1];O<I&&(O=I),F<P&&(F=P);var L=r[u+2];A=o.W.push({h:I,A:P,L,$:null}),o._[C]=A-1,u+=3}o.X=O,o.B=F,d(o);break;case 65476:var N=i(r,u);for(u+=2,x=2;x<N;){var j=r[u++],R=new Uint8Array(16),z=0;for(E=0;E<16;E++,u++)z+=R[E]=r[u];var U=new Uint8Array(z);for(E=0;E<z;E++,u++)U[E]=r[u];x+=17+z,(j>>4?b:w)[15&j]=p(R,U)}break;case 65501:a=i(r,u+=2),u+=2;break;case 65498:var G,H=1==++l&&!s;u+=2;var q=r[u++],Z=[];for(x=0;x<q;x++){var W=r[u++],Y=o._[W];(G=o.W[Y]).index=W;var X=r[u++];G.J=w[X>>4],G.i=b[15&X],Z.push(G)}var $=r[u++],V=r[u++],J=r[u++];try{var Q=m(r,u,o,Z,a,$,V,J>>4,15&J,H);u+=Q}catch(t){if(t instanceof DNLMarkerError)return this.parse(r,{F:t.s});if(t instanceof EOIMarkerError)break t;throw t}break;case 65500:u+=4;break;case 65535:255!==r[u]&&u--;break;default:var K=v(r,u-2,u-3);if(K&&K.u){u=K.offset;break}if(u>=r.length-1)break t;throw new e(\"JpegImage.parse - unknown marker: \"+_.toString(16))}_=i(r,u),u+=2}for(this.width=o.o,this.height=o.s,this.g=c,this.b=f,this.W=[],x=0;x<o.W.length;x++){var tt=g[(G=o.W[x]).L];tt&&(G.$=tt),this.W.push({index:G.index,e:y(0,G),l:G.h/o.X,t:G.A/o.B,P:G.P,c:G.c})}this.p=this.W.length},Y:function(t,e,r){null==r&&(r=!1);var n,i,o,a,s,u,c,f,l,h,p,d,m=this.width/t,g=this.height/e,y=0,v=this.W.length,b=t*e*v,w=new Uint8ClampedArray(b),_=new Uint32Array(t),x=4294967288;for(c=0;c<v;c++){if(i=(n=this.W[c]).l*m,o=n.t*g,y=c,p=n.e,a=n.P+1<<3,i!==d){for(s=0;s<t;s++)f=0|s*i,_[s]=(f&x)<<3|7&f;d=i}for(u=0;u<e;u++)for(h=a*((f=0|u*o)&x)|(7&f)<<3,s=0;s<t;s++)w[y]=p[h+_[s]],y+=v}var E=this.V;if(r||4!==v||E||(E=new Int32Array([-256,255,-256,255,-256,255,-256,255])),E)for(c=0;c<b;)for(f=0,l=0;f<v;f++,c++,l+=2)w[c]=(w[c]*E[l]>>8)+E[l+1];return w},get f(){return this.b?!!this.b.a:3===this.p?0!==this.N&&(82!==this.W[0].index||71!==this.W[1].index||66!==this.W[2].index):1===this.N},z:function(t){for(var e,r,n,i=0,o=t.length;i<o;i+=3)e=t[i],r=t[i+1],n=t[i+2],t[i]=e-179.456+1.402*n,t[i+1]=e+135.459-.344*r-.714*n,t[i+2]=e-226.816+1.772*r;return t},O:function(t){for(var e,r,n,i,o=0,a=0,s=t.length;a<s;a+=4)e=t[a],r=t[a+1],n=t[a+2],i=t[a+3],t[o++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*e+.00048449797120281*i-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*e-.00477271405408747*i+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),t[o++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*e+.000426105652938837*i-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*e+.000770482631801132*i-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),t[o++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*e-.00288260236853442*i+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*e+.000560833691242812*i-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return t.subarray(0,o)},r:function(t){for(var e,r,n,i=0,o=t.length;i<o;i+=4)e=t[i],r=t[i+1],n=t[i+2],t[i]=434.456-e-1.402*n,t[i+1]=119.541-e+.344*r+.714*n,t[i+2]=481.816-e-1.772*r;return t},U:function(t){for(var e,r,n,i,o=0,a=0,s=t.length;a<s;a+=4)e=t[a],r=t[a+1],n=t[a+2],i=t[a+3],t[o++]=255+e*(-6747147073602441e-20*e+.0008379262121013727*r+.0002894718188643294*n+.003264231057537806*i-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*n-.0002748769067499491*i-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*i+.0686742238595345)-i*(.0003361971776183937*i+.7430659151342254),t[o++]=255+e*(.00013596372813588848*e+.000924537132573585*r+.00010567359618683593*n+.0004791864687436512*i-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*n+.0020200308977307156*i-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*i-.09751927774728933)-i*(.0003189131175883281*i+.7364883807733168),t[o++]=255+e*(13598650411385307e-21*e+.00012423956175490851*r+.0004751985097583589*n-36729317476630422e-22*i-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*n+.0007782692450036253*i-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*i-.7591454649749609)-i*(.0003435319965105553*i+.7063770186160144);return t.subarray(0,o)},getData:function(t){var r=t.width,n=t.height,i=t.forceRGB,o=t.isSourcePDF;if(this.p>4)throw new e(\"Unsupported color mode\");var a=this.Y(r,n,o);if(1===this.p&&i){for(var s=a.length,u=new Uint8ClampedArray(3*s),c=0,f=0;f<s;f++){var l=a[f];u[c++]=l,u[c++]=l,u[c++]=l}return u}if(3===this.p&&this.f)return this.z(a);if(4===this.p){if(this.f)return i?this.O(a):this.r(a);if(i)return this.U(a)}return a}},h}();function i(t,e){return t[e]<<8|t[e+1]}t.JpegDecoder=r}(),t.encodeImage=function(e,r,n,i){var o={t256:[r],t257:[n],t258:[8,8,8,8],t259:[1],t262:[2],t273:[1e3],t277:[4],t278:[n],t279:[r*n*4],t282:[[72,1]],t283:[[72,1]],t284:[1],t286:[[0,1]],t287:[[0,1]],t296:[1],t305:[\"Photopea (UTIF.js)\"],t338:[1]};if(i)for(var a in i)o[a]=i[a];var s=new Uint8Array(t.encode([o])),u=new Uint8Array(e),c=new Uint8Array(1e3+r*n*4);for(a=0;a<s.length;a++)c[a]=s[a];for(a=0;a<u.length;a++)c[1e3+a]=u[a];return c.buffer},t.encode=function(e){var r=new Uint8Array(2e4),n=4,i=t._binBE;r[0]=r[1]=77,i.writeUshort(r,2,42);var o=8;i.writeUint(r,n,o),n+=4;for(var a=0;a<e.length;a++){var s=t._writeIFD(i,t._types.basic,r,o,e[a]);o=s[1],a<e.length-1&&(3&o&&(o+=4-(3&o)),i.writeUint(r,s[0],o))}return r.slice(0,o).buffer},t.decode=function(e,r){null==r&&(r={parseMN:!0,debug:!1});var n=new Uint8Array(e),i=0,a=t._binBE.readASCII(n,i,2);i+=2;var s=\"II\"==a?t._binLE:t._binBE;s.readUshort(n,i);i+=2;var u=s.readUint(n,i);i+=4;for(var c=[];;){var f=s.readUshort(n,u),l=s.readUshort(n,u+4);if(0!=f&&(l<1||13<l)){o(\"error in TIFF\");break}if(t._readIFD(s,n,u,c,0,r),0==(u=s.readUint(n,u+2+12*f)))break}return c},t.decodeImage=function(e,r,n){if(!r.data){var i=new Uint8Array(e),a=t._binBE.readASCII(i,0,2);if(null!=r.t256){r.isLE=\"II\"==a,r.width=r.t256[0],r.height=r.t257[0];var s=r.t259?r.t259[0]:1,u=r.t266?r.t266[0]:1;r.t284&&2==r.t284[0]&&o(\"PlanarConfiguration 2 should not be used!\"),7==s&&r.t258&&r.t258.length>3&&(r.t258=r.t258.slice(0,3));var c=r.t277?r.t277[0]:1,f=(r.t258?r.t258[0]:1)*c;1==s&&null!=r.t279&&r.t278&&32803==r.t262[0]&&(f=Math.round(8*r.t279[0]/(r.width*r.t278[0]))),r.t50885&&4==r.t50885[0]&&(f=3*r.t258[0]);var l=8*Math.ceil(r.width*f/8),h=r.t273;(null==h||r.t322)&&(h=r.t324);var p=r.t279;1==s&&1==h.length&&(p=[r.height*(l>>>3)]),(null==p||r.t322)&&(p=r.t325);var d=new Uint8Array(r.height*(l>>>3)),m=0;if(null!=r.t322){for(var g=r.t322[0],y=r.t323[0],v=Math.floor((r.width+g-1)/g),b=Math.floor((r.height+y-1)/y),w=new Uint8Array(0|Math.ceil(g*y*f/8)),_=0;_<b;_++)for(var x=0;x<v;x++){var E=_*v+x;w.fill(0),t.decode._decompress(r,n,i,h[E],p[E],s,w,0,u,g,y),6==s?d=w:t._copyTile(w,0|Math.ceil(g*f/8),y,d,0|Math.ceil(r.width*f/8),r.height,0|Math.ceil(x*g*f/8),_*y)}m=8*d.length}else{if(null==h)return;var A=r.t278?r.t278[0]:r.height;A=Math.min(A,r.height);for(E=0;E<h.length;E++)t.decode._decompress(r,n,i,h[E],p[E],s,d,0|Math.ceil(m/8),u,r.width,A),m+=l*A;m=Math.min(m,8*d.length)}r.data=new Uint8Array(d.buffer,0,0|Math.ceil(m/8))}}},t.decode._decompress=function(r,n,i,a,s,u,c,f,l,h,p){if(r.t271&&\"Panasonic\"==r.t271[0]&&r.t45&&6==r.t45[0]&&(u=34316),1==u)for(var d=0;d<s;d++)c[f+d]=i[a+d];else if(2==u)t.decode._decodeG2(i,a,s,c,f,h,l);else if(3==u)t.decode._decodeG3(i,a,s,c,f,h,l,!!r.t292&&!(1&~r.t292[0]));else if(4==u)t.decode._decodeG4(i,a,s,c,f,h,l);else if(5==u)t.decode._decodeLZW(i,a,s,c,f,8);else if(6==u)t.decode._decodeOldJPEG(r,i,a,s,c,f);else if(7==u||34892==u)t.decode._decodeNewJPEG(r,i,a,s,c,f);else if(8==u||32946==u){var m=new Uint8Array(i.buffer,a+2,s-6),g=e.inflateRaw(m);f+g.length<=c.length&&c.set(g,f)}else 9==u?t.decode._decodeVC5(i,a,s,c,f,r.t33422):32767==u?t.decode._decodeARW(r,i,a,s,c,f):32773==u?t.decode._decodePackBits(i,a,s,c,f):32809==u?t.decode._decodeThunder(i,a,s,c,f):34316==u?t.decode._decodePanasonic(r,i,a,s,c,f):34713==u?t.decode._decodeNikon(r,n,i,a,s,c,f):34676==u?t.decode._decodeLogLuv32(r,i,a,s,c,f):o(\"Unknown compression\",u);var y=r.t258?Math.min(32,r.t258[0]):1,v=r.t277?r.t277[0]:1,b=y*v>>>3,w=Math.ceil(y*v*h/8);if(16==y&&!r.isLE&&null==r.t33422)for(var _=0;_<p;_++)for(var x=f+_*w,E=1;E<w;E+=2){var A=c[x+E];c[x+E]=c[x+E-1],c[x+E-1]=A}if(r.t317&&2==r.t317[0])for(_=0;_<p;_++){var D=f+_*w;if(16==y)for(d=b;d<w;d+=2){var k=(c[D+d+1]<<8|c[D+d])+(c[D+d-b+1]<<8|c[D+d-b]);c[D+d]=255&k,c[D+d+1]=k>>>8&255}else if(3==v)for(d=3;d<w;d+=3)c[D+d]=c[D+d]+c[D+d-3]&255,c[D+d+1]=c[D+d+1]+c[D+d-2]&255,c[D+d+2]=c[D+d+2]+c[D+d-1]&255;else for(d=b;d<w;d++)c[D+d]=c[D+d]+c[D+d-b]&255}},t.decode._decodePanasonic=function(t,e,r,n,i,o){var a,s,u,c,f,l,h,p,d=e.buffer,m=t.t2[0],g=t.t3[0],y=t.t10[0],v=t.t45[0],b=0,w=0,_=0,x=0,E=6==v?new Uint32Array(18):new Uint8Array(16),A=[0,0],D=[0,0],k=0,S=new Uint8Array(16384),M=new Uint16Array(i.buffer);function C(t){if(0==_){var e=new Uint8Array(d,r+w+8184,8200),n=new Uint8Array(d,r+w,8184);S.set(e),S.set(n,e.length),w+=16384}if(5!=v)return(S[x=(_=_-t&131071)>>3^16368]|S[x+1]<<8)>>(7&_)&~(-1<<t);for(a=0;a<16;a++)E[a]=S[_++],_&=16383}function T(t){return S[_+15-t]}function O(){A[0]=0,A[1]=0,D[0]=0,D[1]=0}if(7==v)throw v;if(6==v){var F=12==y,B=F?function(){E[0]=T(0)<<4|T(1)>>4,E[1]=4095&((15&T(1))<<8|T(2)),E[2]=T(3)>>6&3,E[3]=(63&T(3))<<2|T(4)>>6,E[4]=(63&T(4))<<2|T(5)>>6,E[5]=(63&T(5))<<2|T(6)>>6,E[6]=T(6)>>4&3,E[7]=(15&T(6))<<4|T(7)>>4,E[8]=(15&T(7))<<4|T(8)>>4,E[9]=(15&T(8))<<4|T(9)>>4,E[10]=T(9)>>2&3,E[11]=(3&T(9))<<6|T(10)>>2,E[12]=(3&T(10))<<6|T(11)>>2,E[13]=(3&T(11))<<6|T(12)>>2,E[14]=3&T(12),E[15]=T(13),E[16]=T(14),E[17]=T(15),_+=16,x=0}:function(){E[0]=T(0)<<6|T(1)>>2,E[1]=16383&((3&T(1))<<12|T(2)<<4|T(3)>>4),E[2]=T(3)>>2&3,E[3]=(3&T(3))<<8|T(4),E[4]=T(5)<<2|T(6)>>6,E[5]=(63&T(6))<<4|T(7)>>4,E[6]=T(7)>>2&3,E[7]=(3&T(7))<<8|T(8),E[8]=T(9)<<2&1020|T(10)>>6,E[9]=1023&(T(10)<<4|T(11)>>4),E[10]=T(11)>>2&3,E[11]=(3&T(11))<<8|T(12),E[12]=1023&(T(13)<<2&1020|T(14)>>6),E[13]=1023&(T(14)<<4|T(15)>>4),_+=16,x=0},I=F?14:11,P=F?128:512,L=F?2048:8192,N=F?16383:65535,j=F?4095:16383,R=m/I,z=16*R,U=F?18:14;for(l=0;l<g-15;l+=16){var G=Math.min(16,g-l),H=z*G;for(S=new Uint8Array(d,r+b,H),_=0,b+=H,p=0,h=0;p<G;p++,h=0){k=(l+p)*m;for(var q=0;q<R;q++)for(B(),O(),u=0,f=0,a=0;a<I;a++){if(c=1&a,a%3==2){var Z=x<U?E[x++]:0;3==Z&&(Z=4),f=P<<Z,u=1<<Z}var W=x<U?E[x++]:0;A[c]?(W*=u,f<L&&D[c]>f&&(W+=D[c]-f),D[c]=W):(A[c]=W,W?D[c]=W:W=D[c]),M[k+h++]=W-15<=N?W-15&N:W+2147483633>>31&j}}}}else if(5==v){var Y=12==y?10:9;for(l=0;l<g;l++)for(h=0;h<m;h+=Y)C(0),12==y?(M[k++]=((15&E[1])<<8)+E[0],M[k++]=16*E[2]+(E[1]>>4),M[k++]=((15&E[4])<<8)+E[3],M[k++]=16*E[5]+(E[4]>>4),M[k++]=((15&E[7])<<8)+E[6],M[k++]=16*E[8]+(E[7]>>4),M[k++]=((15&E[10])<<8)+E[9],M[k++]=16*E[11]+(E[10]>>4),M[k++]=((15&E[13])<<8)+E[12],M[k++]=16*E[14]+(E[13]>>4)):14==y&&(M[k++]=E[0]+((63&E[1])<<8),M[k++]=(E[1]>>6)+4*E[2]+((15&E[3])<<10),M[k++]=(E[3]>>4)+16*E[4]+((3&E[5])<<12),M[k++]=((252&E[5])>>2)+(E[6]<<6),M[k++]=E[7]+((63&E[8])<<8),M[k++]=(E[8]>>6)+4*E[9]+((15&E[10])<<10),M[k++]=(E[10]>>4)+16*E[11]+((3&E[12])<<12),M[k++]=((252&E[12])>>2)+(E[13]<<6),M[k++]=E[14]+((63&E[15])<<8))}else{if(4!=v)throw v;for(l=0;l<g;l++)for(h=0;h<m;h++)c=1&(a=h%14),0==a&&O(),a%3==2&&(u=4>>3-C(2)),D[c]?0!=(s=C(8))&&(A[c]-=128<<u,(A[c]<0||4==u)&&(A[c]&=~(-1<<u)),A[c]+=s<<u):(D[c]=C(8),(D[c]||a>11)&&(A[c]=D[c]<<4|C(4))),M[k++]=A[1&h]}},t.decode._decodeVC5=function(){var e,r,n,i=[1,0,1,0,2,2,1,1,3,7,1,2,5,25,1,3,6,48,1,4,6,54,1,5,7,111,1,8,7,99,1,6,7,105,12,0,7,107,1,7,8,209,20,0,8,212,1,9,8,220,1,10,9,393,1,11,9,394,32,0,9,416,1,12,9,427,1,13,10,887,1,18,10,784,1,14,10,790,1,15,10,835,60,0,10,852,1,16,10,885,1,17,11,1571,1,19,11,1668,1,20,11,1669,100,0,11,1707,1,21,11,1772,1,22,12,3547,1,29,12,3164,1,24,12,3166,1,25,12,3140,1,23,12,3413,1,26,12,3537,1,27,12,3539,1,28,13,7093,1,35,13,6283,1,30,13,6331,1,31,13,6335,180,0,13,6824,1,32,13,7072,1,33,13,7077,320,0,13,7076,1,34,14,12565,1,36,14,12661,1,37,14,12669,1,38,14,13651,1,39,14,14184,1,40,15,28295,1,46,15,28371,1,47,15,25320,1,42,15,25336,1,43,15,25128,1,41,15,27300,1,44,15,28293,1,45,16,50259,1,48,16,50643,1,49,16,50675,1,50,16,56740,1,53,16,56584,1,51,16,56588,1,52,17,113483,1,61,17,113482,1,60,17,101285,1,55,17,101349,1,56,17,109205,1,57,17,109207,1,58,17,100516,1,54,17,113171,1,59,18,202568,1,62,18,202696,1,63,18,218408,1,64,18,218412,1,65,18,226340,1,66,18,226356,1,67,18,226358,1,68,19,402068,1,69,19,405138,1,70,19,405394,1,71,19,436818,1,72,19,436826,1,73,19,452714,1,75,19,452718,1,76,19,452682,1,74,20,804138,1,77,20,810279,1,78,20,810790,1,79,20,873638,1,80,20,873654,1,81,20,905366,1,82,20,905430,1,83,20,905438,1,84,21,1608278,1,85,21,1620557,1,86,21,1621582,1,87,21,1621583,1,88,21,1747310,1,89,21,1810734,1,90,21,1810735,1,91,21,1810863,1,92,21,1810879,1,93,22,3621725,1,99,22,3621757,1,100,22,3241112,1,94,22,3494556,1,95,22,3494557,1,96,22,3494622,1,97,22,3494623,1,98,23,6482227,1,102,23,6433117,1,101,23,6989117,1,103,23,6989119,1,105,23,6989118,1,104,23,7243449,1,106,23,7243512,1,107,24,13978233,1,111,24,12964453,1,109,24,12866232,1,108,24,14486897,1,113,24,13978232,1,110,24,14486896,1,112,24,14487026,1,114,24,14487027,1,115,25,25732598,1,225,25,25732597,1,189,25,25732596,1,188,25,25732595,1,203,25,25732594,1,202,25,25732593,1,197,25,25732592,1,207,25,25732591,1,169,25,25732590,1,223,25,25732589,1,159,25,25732522,1,235,25,25732579,1,152,25,25732575,1,192,25,25732489,1,179,25,25732573,1,201,25,25732472,1,172,25,25732576,1,149,25,25732488,1,178,25,25732566,1,120,25,25732571,1,219,25,25732577,1,150,25,25732487,1,127,25,25732506,1,211,25,25732548,1,125,25,25732588,1,158,25,25732486,1,247,25,25732467,1,238,25,25732508,1,163,25,25732552,1,228,25,25732603,1,183,25,25732513,1,217,25,25732587,1,168,25,25732520,1,122,25,25732484,1,128,25,25732562,1,249,25,25732505,1,187,25,25732504,1,186,25,25732483,1,136,25,25928905,1,181,25,25732560,1,255,25,25732500,1,230,25,25732482,1,135,25,25732555,1,233,25,25732568,1,222,25,25732583,1,145,25,25732481,1,134,25,25732586,1,167,25,25732521,1,248,25,25732518,1,209,25,25732480,1,243,25,25732512,1,216,25,25732509,1,164,25,25732547,1,140,25,25732479,1,157,25,25732544,1,239,25,25732574,1,191,25,25732564,1,251,25,25732478,1,156,25,25732546,1,139,25,25732498,1,242,25,25732557,1,133,25,25732477,1,162,25,25732515,1,213,25,25732584,1,165,25,25732514,1,212,25,25732476,1,227,25,25732494,1,198,25,25732531,1,236,25,25732530,1,234,25,25732529,1,117,25,25732528,1,215,25,25732527,1,124,25,25732526,1,123,25,25732525,1,254,25,25732524,1,253,25,25732523,1,148,25,25732570,1,218,25,25732580,1,146,25,25732581,1,147,25,25732569,1,224,25,25732533,1,143,25,25732540,1,184,25,25732541,1,185,25,25732585,1,166,25,25732556,1,132,25,25732485,1,129,25,25732563,1,250,25,25732578,1,151,25,25732501,1,119,25,25732502,1,193,25,25732536,1,176,25,25732496,1,245,25,25732553,1,229,25,25732516,1,206,25,25732582,1,144,25,25732517,1,208,25,25732558,1,137,25,25732543,1,241,25,25732466,1,237,25,25732507,1,190,25,25732542,1,240,25,25732551,1,131,25,25732554,1,232,25,25732565,1,252,25,25732475,1,171,25,25732493,1,205,25,25732492,1,204,25,25732491,1,118,25,25732490,1,214,25,25928904,1,180,25,25732549,1,126,25,25732602,1,182,25,25732539,1,175,25,25732545,1,141,25,25732559,1,138,25,25732537,1,177,25,25732534,1,153,25,25732503,1,194,25,25732606,1,160,25,25732567,1,121,25,25732538,1,174,25,25732497,1,246,25,25732550,1,130,25,25732572,1,200,25,25732474,1,170,25,25732511,1,221,25,25732601,1,196,25,25732532,1,142,25,25732519,1,210,25,25732495,1,199,25,25732605,1,155,25,25732535,1,154,25,25732499,1,244,25,25732510,1,220,25,25732600,1,195,25,25732607,1,161,25,25732604,1,231,25,25732473,1,173,25,25732599,1,226,26,51465122,1,116,26,51465123,0,1],o=[3,3,3,3,2,2,2,1,1,1];function a(t){var e=t[1],r=t[0][e>>>3]>>>7-(7&e)&1;return t[1]++,r}function s(t,r){if(null==e){e={};for(var n=0;n<i.length;n+=4)e[i[n+1]]=i.slice(n,n+4)}for(var o=a(t),s=e[o];null==s;)o=o<<1|a(t),s=e[o];var u=s[3];0!=u&&(u=0==a(t)?u:-u),r[0]=s[2],r[1]=u}function u(t,e){for(var r=0;r<e;r++)1&~t||t++,t>>>=1;return t}function c(t,e){return t>>e}function f(t,e,r,n,i,o){e[r]=c(c(11*t[i]-4*t[i+o]+t[i+o+o]+4,3)+t[n],1),e[r+o]=c(c(5*t[i]+4*t[i+o]-t[i+o+o]+4,3)-t[n],1)}function l(t,e,r,n,i,o){var a=t[i-o]-t[i+o],s=t[i],u=t[n];e[r]=c(c(a+4,3)+s+u,1),e[r+o]=c(c(4-a,3)+s-u,1)}function h(t,e,r,n,i,o){e[r]=c(c(5*t[i]+4*t[i-o]-t[i-o-o]+4,3)+t[n],1),e[r+o]=c(c(11*t[i]-4*t[i-o]+t[i-o-o]+4,3)-t[n],1)}function p(t){return t=n[t=t<0?0:t>4095?4095:t]>>>2}return function(e,i,a,c,d,m){c=new Uint16Array(c.buffer),Date.now();var g,y,v,b,w,_,x,E,A=t._binBE,D=i+a;i+=4;for(var k=1==m[0];i<D;){var S=A.readShort(e,i),M=A.readUshort(e,i+2);if(i+=4,12==S)P=M;else if(20==S)g=M;else if(21==S)y=M;else if(48==S)v=M;else if(53==S)b=M;else if(35==S)M;else if(62==S)w=M;else if(101==S)M;else if(109==S)_=M;else if(84==S)M;else if(106==S)M;else if(107==S)M;else if(108==S)M;else if(102==S)M;else if(104==S)et=M;else if(105==S)M;else{var C=S<0?-S:S,T=65280&C,O=0;if(24576&C&&(8192&C?(O=65535&M,O+=(255&C)<<16):O=65535&M),24576&~C){if(16388==C)i+=4*O;else if(8192!=T&&8448!=T&&9216!=T)throw C.toString(16)}else{if(null==x){x=[];for(var F=0;F<4;F++)x[F]=new Int16Array((g>>>1)*(y>>>1));E=new Int16Array((g>>>1)*(y>>>1)),r=new Int16Array(1024);for(F=0;F<1024;F++){var B=F-512,I=Math.abs(B),P=Math.floor(768*I*I*I/16581375)+I;r[F]=Math.sign(B)*P}n=new Uint16Array(4096);for(F=0;F<4096;F++){var L=F,N=65535*(Math.pow(113,L/4095)-1)/112;n[F]=Math.min(N,65535)}}var j=x[w],R=u(g,1+o[v]),z=u(y,1+o[v]);if(0==v)for(var U=0;U<z;U++)for(var G=0;G<R;G++){var H=i+2*(U*R+G);j[U*(g>>>1)+G]=e[H]<<8|e[H+1]}else{var q=[e,8*i],Z=[],W=0,Y=R*z,X=[0,0],$=0;for(M=0;W<Y;)for(s(q,X),$=X[0],M=X[1];$>0;)Z[W++]=M,$--;var V=(v-1)%3,J=1!=V?R:0,Q=0!=V?z:0;for(U=0;U<z;U++){var K=(U+Q)*(g>>>1)+J,tt=U*R;for(G=0;G<R;G++)j[K+G]=r[Z[tt+G]+512]*b}if(2==V){var et=g>>>1,rt=2*R,nt=2*z;for(U=0;U<z;U++)for(G=0;G<rt;G++){F=2*U*et+G;var it=z*et+(at=U*et+G);0==U?f(j,E,F,it,at,et):U==z-1?h(j,E,F,it,at,et):l(j,E,F,it,at,et)}var ot=j;j=E,E=ot;for(U=0;U<nt;U++)for(G=0;G<R;G++){var at;F=U*et+2*G,it=R+(at=U*et+G);0==G?f(j,E,F,it,at,1):G==R-1?h(j,E,F,it,at,1):l(j,E,F,it,at,1)}ot=j;j=E,E=ot;for(var st=[],ut=2-~~((v-1)/3),ct=0;ct<3;ct++)st[ct]=_>>14-2*ct&3;var ft=st[ut];if(0!=ft)for(U=0;U<nt;U++)for(G=0;G<rt;G++){j[F=U*et+G]=j[F]<<ft}}}if(9==v&&3==w){var lt=x[0],ht=x[1],pt=x[2],dt=x[3];for(U=0;U<y;U+=2)for(G=0;G<g;G+=2){var mt=U*g+G,gt=lt[H=(U>>>1)*(g>>>1)+(G>>>1)],yt=ht[H]-2048,vt=pt[H]-2048,bt=dt[H]-2048,wt=(yt<<1)+gt,_t=(vt<<1)+gt,xt=gt+bt,Et=gt-bt;k?(c[mt]=p(xt),c[mt+1]=p(_t),c[mt+g]=p(wt),c[mt+g+1]=p(Et)):(c[mt]=p(wt),c[mt+1]=p(xt),c[mt+g]=p(Et),c[mt+g+1]=p(_t))}}i+=4*O}}}Date.now()}}(),t.decode._decodeLogLuv32=function(t,e,r,n,i,o){for(var a=t.width,s=4*a,u=0,c=new Uint8Array(s);u<n;){for(var f=0;f<s;){var l=e[r+u];if(u++,l<128){for(var h=0;h<l;h++)c[f+h]=e[r+u+h];f+=l,u+=l}else{l-=126;for(h=0;h<l;h++)c[f+h]=e[r+u];f+=l,u++}}for(var p=0;p<a;p++)i[o+0]=c[p],i[o+1]=c[p+a],i[o+2]=c[p+2*a],i[o+4]=c[p+3*a],o+=6}},t.decode._ljpeg_diff=function(e,r,n){var i,o,a=t.decode._getbithuff;return i=a(e,r,n[0],n),(o=a(e,r,i,0))&1<<i-1||(o-=(1<<i)-1),o},t.decode._decodeARW=function(e,r,n,i,o,a){var s=e.t256[0],u=e.t257[0],c=e.t258[0],f=e.isLE?t._binLE:t._binBE;if(s*u==i||s*u*1.5==i)if(s*u*1.5!=i){var l,h,p,d,m,g,y,v,b=new Uint16Array(16),w=new Uint8Array(s+1);for(M=0;M<u;M++){for(var _=0;_<s;_++)w[_]=r[n++];for(v=0,S=0;S<s-30;v+=16){for(h=2047&(l=f.readUint(w,v)),p=2047&l>>>11,d=15&l>>>22,m=15&l>>>26,g=0;g<4&&128<<g<=h-p;g++);for(y=30,x=0;x<16;x++)x==d?b[x]=h:x==m?b[x]=p:(b[x]=((f.readUshort(w,v+(y>>3))>>>(7&y)&127)<<g)+p,b[x]>2047&&(b[x]=2047),y+=7);for(x=0;x<16;x++,S+=2){L=b[x]<<1;t.decode._putsF(o,(M*s+S)*c,L<<16-c)}S-=1&S?1:31}}}else for(var x=0;x<i;x+=3){var E=r[n+x+0],A=r[n+x+1],D=r[n+x+2];o[a+x]=A<<4|E>>>4,o[a+x+1]=E<<4|D>>>4,o[a+x+2]=D<<4|A>>>4}else{u+=8;var k,S,M,C=[n,0,0,0],T=new Uint16Array(32770),O=[3857,3856,3599,3342,3085,2828,2571,2314,2057,1800,1543,1286,1029,772,771,768,514,513],F=0,B=t.decode._ljpeg_diff;for(T[0]=15,k=x=0;x<18;x++)for(var I=32768>>>(O[x]>>>8),P=0;P<I;P++)T[++k]=O[x];for(S=s;S--;)for(M=0;M<u+1;M+=2)if(M==u&&(M=1),F+=B(r,C,T),M<u){var L=4095&F;t.decode._putsF(o,(M*s+S)*c,L<<16-c)}}},t.decode._decodeNikon=function(e,r,n,i,o,a,s){var u=[[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,5,4,3,6,2,7,1,0,8,9,11,10,12],[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,57,90,56,39,22,5,4,3,2,1,0,11,12,12],[0,0,1,4,2,3,1,2,0,0,0,0,0,0,0,0,0,5,4,6,3,7,2,8,1,9,0,10,11,12],[0,0,1,4,3,1,1,1,1,1,2,0,0,0,0,0,0,5,6,4,7,8,3,9,2,1,0,10,11,12,13,14],[0,0,1,5,1,1,1,1,1,1,1,2,0,0,0,0,0,8,92,75,58,41,7,6,5,4,3,2,1,0,13,14],[0,0,1,4,2,2,3,1,2,0,0,0,0,0,0,0,0,7,6,8,5,9,4,10,3,11,12,2,0,1,13,14]],c=e.t256[0],f=e.t257[0],l=e.t258[0],h=0,p=0,d=t.decode._make_decoder,m=t.decode._getbithuff,g=r[0].exifIFD.makerNote,y=g.t150?g.t150:g.t140,v=0,b=y[v++],w=y[v++];73!=b&&88!=w||(v+=2110),70==b&&(h=2),14==l&&(h+=3);for(var _=[[0,0],[0,0]],x=e.isLE?t._binLE:t._binBE,E=0;E<2;E++)for(var A=0;A<2;A++)_[E][A]=x.readShort(y,v),v+=2;var D,k,S,M,C,T=1<<l&32767,O=0,F=x.readShort(y,v);v+=2,F>1&&(O=Math.floor(T/(F-1))),68==b&&32==w&&O>0&&(p=x.readShort(y,562));var B=[0,0],I=d(u[h]),P=[i,0,0,0];for(D=0;D<f;D++)for(p&&D==p&&(I=d(u[h+1])),k=0;k<c;k++){E=m(n,P,I[0],I),(C=1+(m(n,P,(S=15&E)-(M=E>>>4),0)<<1)<<M>>>1)&1<<S-1||(C-=(1<<S)-(0==M?1:0)),k<2?B[k]=_[1&D][k]+=C:B[1&k]+=C;var L=Math.min(Math.max(B[1&k],0),(1<<l)-1),N=(D*c+k)*l;t.decode._putsF(a,N,L<<16-l)}},t.decode._putsF=function(t,e,r){r<<=8-(7&e);var n=e>>>3;t[n]|=r>>>16,t[n+1]|=r>>>8,t[n+2]|=r},t.decode._getbithuff=function(e,r,n,i){t.decode._get_byte;var o,a=r[0],s=r[1],u=r[2],c=r[3];if(0==n||u<0)return 0;for(;!c&&u<n&&-1!=(o=e[a++])&&!(c=0);)s=(s<<8)+o,u+=8;if(o=s<<32-u>>>32-n,i?(u-=i[o+1]>>>8,o=255&i[o+1]):u-=n,u<0)throw\"e\";return r[0]=a,r[1]=s,r[2]=u,r[3]=c,o},t.decode._make_decoder=function(t){var e,r,n,i,o,a=[];for(e=16;0!=e&&!t[e];e--);var s=17;for(a[0]=e,n=r=1;r<=e;r++)for(i=0;i<t[r];i++,++s)for(o=0;o<1<<e-r;o++)n<=1<<e&&(a[n++]=r<<8|t[s]);return a},t.decode._decodeNewJPEG=function(e,r,n,i,o,a){i=Math.min(i,r.length-n);var s=e.t347,u=s?s.length:0,c=new Uint8Array(u+i);if(s){for(var f=0,l=0;l<u-1&&(255!=s[l]||217!=s[l+1]);l++)c[f++]=s[l];var h=r[n],p=r[n+1];255==h&&216==p||(c[f++]=h,c[f++]=p);for(l=2;l<i;l++)c[f++]=r[n+l]}else for(l=0;l<i;l++)c[l]=r[n+l];if(32803==e.t262[0]||7==e.t259[0]&&34892==e.t262[0]){var d=e.t258[0],m=t.LosslessJpegDecode(c),g=m.length;if(16==d)if(e.isLE)for(l=0;l<g;l++)o[a+(l<<1)]=255&m[l],o[a+(l<<1)+1]=m[l]>>>8;else for(l=0;l<g;l++)o[a+(l<<1)]=m[l]>>>8,o[a+(l<<1)+1]=255&m[l];else if(14==d||12==d||10==d){var y=16-d;for(l=0;l<g;l++)t.decode._putsF(o,l*d,m[l]<<y)}else{if(8!=d)throw new Error(\"unsupported bit depth \"+d);for(l=0;l<g;l++)o[a+l]=m[l]}}else{var v=new t.JpegDecoder;v.parse(c);var b=v.getData({width:v.width,height:v.height,forceRGB:!0,isSourcePDF:!1});for(l=0;l<b.length;l++)o[a+l]=b[l]}6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodeOldJPEGInit=function(t,e,r,n){var i,a,s,u,c,f=216,l=0,h=0,p=!1,d=t.t513,m=d?d[0]:0,g=t.t514,y=g?g[0]:0,v=t.t324||t.t273||d,b=t.t530,w=0,_=0,x=t.t277?t.t277[0]:1,E=t.t515;if(v&&(h=v[0],p=v.length>1),!p){if(255==e[r]&&e[r+1]==f)return{jpegOffset:r};if(null!=d&&(255==e[r+m]&&e[r+m+1]==f?l=r+m:o(\"JPEGInterchangeFormat does not point to SOI\"),null==g?o(\"JPEGInterchangeFormatLength field is missing\"):(m>=h||m+y<=h)&&o(\"JPEGInterchangeFormatLength field value is invalid\"),null!=l))return{jpegOffset:l}}if(null!=b&&(w=b[0],_=b[1]),null!=d&&null!=g)if(y>=2&&m+y<=h){for(i=255==e[r+m+y-2]&&e[r+m+y-1]==f?new Uint8Array(y-2):new Uint8Array(y),s=0;s<i.length;s++)i[s]=e[r+m+s];o(\"Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables\")}else o(\"JPEGInterchangeFormat+JPEGInterchangeFormatLength > offset to first strip or tile\");if(null==i){var A=0,D=[];D[A++]=255,D[A++]=f;var k=t.t519;if(null==k)throw new Error(\"JPEGQTables tag is missing\");for(s=0;s<k.length;s++)for(D[A++]=255,D[A++]=219,D[A++]=0,D[A++]=67,D[A++]=s,u=0;u<64;u++)D[A++]=e[r+k[s]+u];for(c=0;c<2;c++){var S=t[0==c?\"t520\":\"t521\"];if(null==S)throw new Error((0==c?\"JPEGDCTables\":\"JPEGACTables\")+\" tag is missing\");for(s=0;s<S.length;s++){D[A++]=255,D[A++]=196;var M=19;for(u=0;u<16;u++)M+=e[r+S[s]+u];for(D[A++]=M>>>8,D[A++]=255&M,D[A++]=s|c<<4,u=0;u<16;u++)D[A++]=e[r+S[s]+u];for(u=0;u<M;u++)D[A++]=e[r+S[s]+16+u]}}if(D[A++]=255,D[A++]=192,D[A++]=0,D[A++]=8+3*x,D[A++]=8,D[A++]=t.height>>>8&255,D[A++]=255&t.height,D[A++]=t.width>>>8&255,D[A++]=255&t.width,D[A++]=x,1==x)D[A++]=1,D[A++]=17,D[A++]=0;else for(s=0;s<3;s++)D[A++]=s+1,D[A++]=0!=s?17:(15&w)<<4|15&_,D[A++]=s;null!=E&&0!=E[0]&&(D[A++]=255,D[A++]=221,D[A++]=0,D[A++]=4,D[A++]=E[0]>>>8&255,D[A++]=255&E[0]),i=new Uint8Array(D)}var C=-1;for(s=0;s<i.length-1;){if(255==i[s]&&192==i[s+1]){C=s;break}s++}if(-1==C){var T=new Uint8Array(i.length+10+3*x);T.set(i);var O=i.length;if(C=i.length,(i=T)[O++]=255,i[O++]=192,i[O++]=0,i[O++]=8+3*x,i[O++]=8,i[O++]=t.height>>>8&255,i[O++]=255&t.height,i[O++]=t.width>>>8&255,i[O++]=255&t.width,i[O++]=x,1==x)i[O++]=1,i[O++]=17,i[O++]=0;else for(s=0;s<3;s++)i[O++]=s+1,i[O++]=0!=s?17:(15&w)<<4|15&_,i[O++]=s}if(255==e[h]&&218==e[h+1]){var F=e[h+2]<<8|e[h+3];for((a=new Uint8Array(F+2))[0]=e[h],a[1]=e[h+1],a[2]=e[h+2],a[3]=e[h+3],s=0;s<F-2;s++)a[s+4]=e[h+s+4]}else{var B=0;if((a=new Uint8Array(8+2*x))[B++]=255,a[B++]=218,a[B++]=0,a[B++]=6+2*x,a[B++]=x,1==x)a[B++]=1,a[B++]=0;else for(s=0;s<3;s++)a[B++]=s+1,a[B++]=s<<4|s;a[B++]=0,a[B++]=63,a[B++]=0}return{jpegOffset:r,tables:i,sosMarker:a,sofPosition:C}},t.decode._decodeOldJPEG=function(e,r,n,i,o,a){var s,u,c,f,l=t.decode._decodeOldJPEGInit(e,r,n,i);if(null!=l.jpegOffset)for(s=n+i-l.jpegOffset,c=new Uint8Array(s),d=0;d<s;d++)c[d]=r[l.jpegOffset+d];else{for(u=l.tables.length,(c=new Uint8Array(u+l.sosMarker.length+i+2)).set(l.tables),f=u,c[l.sofPosition+5]=e.height>>>8&255,c[l.sofPosition+6]=255&e.height,c[l.sofPosition+7]=e.width>>>8&255,c[l.sofPosition+8]=255&e.width,255==r[n]&&r[n+1]==SOS||(c.set(l.sosMarker,f),f+=sosMarker.length),d=0;d<i;d++)c[f++]=r[n+d];c[f++]=255,c[f++]=EOI}var h=new t.JpegDecoder;h.parse(c);for(var p=h.getData({width:h.width,height:h.height,forceRGB:!0,isSourcePDF:!1}),d=0;d<p.length;d++)o[a+d]=p[d];e.t262&&6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodePackBits=function(t,e,r,n,i){for(var o=new Int8Array(t.buffer),a=new Int8Array(n.buffer),s=e+r;e<s;){var u=o[e];if(e++,u>=0&&u<128)for(var c=0;c<u+1;c++)a[i]=o[e],i++,e++;if(u>=-127&&u<0){for(c=0;c<1-u;c++)a[i]=o[e],i++;e++}}return i},t.decode._decodeThunder=function(t,e,r,n,i){for(var o=[0,1,0,-1],a=[0,1,2,3,0,-3,-2,-1],s=e+r,u=2*i,c=0;e<s;){var f=t[e],l=f>>>6,h=63&f;if(e++,3==l&&(c=15&h,n[u>>>1]|=c<<4*(1-u&1),u++),0==l)for(var p=0;p<h;p++)n[u>>>1]|=c<<4*(1-u&1),u++;if(2==l)for(p=0;p<2;p++){4!=(d=h>>>3*(1-p)&7)&&(c+=a[d],n[u>>>1]|=c<<4*(1-u&1),u++)}if(1==l)for(p=0;p<3;p++){var d;2!=(d=h>>>2*(2-p)&3)&&(c+=o[d],n[u>>>1]|=c<<4*(1-u&1),u++)}}},t.decode._dmap={1:0,\"011\":1,\"000011\":2,\"0000011\":3,\"010\":-1,\"000010\":-2,\"0000010\":-3},t.decode._lens=function(){var t=function(t,e,r,n){for(var i=0;i<e.length;i++)t[e[i]]=r+i*n},e=\"00110101,000111,0111,1000,1011,1100,1110,1111,10011,10100,00111,01000,001000,000011,110100,110101,101010,101011,0100111,0001100,0001000,0010111,0000011,0000100,0101000,0101011,0010011,0100100,0011000,00000010,00000011,00011010,00011011,00010010,00010011,00010100,00010101,00010110,00010111,00101000,00101001,00101010,00101011,00101100,00101101,00000100,00000101,00001010,00001011,01010010,01010011,01010100,01010101,00100100,00100101,01011000,01011001,01011010,01011011,01001010,01001011,00110010,00110011,00110100\",r=\"0000110111,010,11,10,011,0011,0010,00011,000101,000100,0000100,0000101,0000111,00000100,00000111,000011000,0000010111,0000011000,0000001000,00001100111,00001101000,00001101100,00000110111,00000101000,00000010111,00000011000,000011001010,000011001011,000011001100,000011001101,000001101000,000001101001,000001101010,000001101011,000011010010,000011010011,000011010100,000011010101,000011010110,000011010111,000001101100,000001101101,000011011010,000011011011,000001010100,000001010101,000001010110,000001010111,000001100100,000001100101,000001010010,000001010011,000000100100,000000110111,000000111000,000000100111,000000101000,000001011000,000001011001,000000101011,000000101100,000001011010,000001100110,000001100111\",n=\"11011,10010,010111,0110111,00110110,00110111,01100100,01100101,01101000,01100111,011001100,011001101,011010010,011010011,011010100,011010101,011010110,011010111,011011000,011011001,011011010,011011011,010011000,010011001,010011010,011000,010011011\",i=\"0000001111,000011001000,000011001001,000001011011,000000110011,000000110100,000000110101,0000001101100,0000001101101,0000001001010,0000001001011,0000001001100,0000001001101,0000001110010,0000001110011,0000001110100,0000001110101,0000001110110,0000001110111,0000001010010,0000001010011,0000001010100,0000001010101,0000001011010,0000001011011,0000001100100,0000001100101\",o=\"00000001000,00000001100,00000001101,000000010010,000000010011,000000010100,000000010101,000000010110,000000010111,000000011100,000000011101,000000011110,000000011111\";e=e.split(\",\"),r=r.split(\",\"),n=n.split(\",\"),i=i.split(\",\"),o=o.split(\",\");var a={},s={};return t(a,e,0,1),t(a,n,64,64),t(a,o,1792,64),t(s,r,0,1),t(s,i,64,64),t(s,o,1792,64),[a,s]}(),t.decode._decodeG4=function(e,r,n,i,o,a,s){for(var u=t.decode,c=r<<3,f=0,l=\"\",h=[],p=[],d=0;d<a;d++)p.push(0);p=u._makeDiff(p);for(var m=0,g=0,y=0,v=0,b=0,w=0,_=\"\",x=0,E=8*Math.ceil(a/8);c>>>3<r+n;){y=u._findDiff(p,m+(0==m?0:1),1-b),v=u._findDiff(p,y,b);var A=0;if(1==s&&(A=e[c>>>3]>>>7-(7&c)&1),2==s&&(A=e[c>>>3]>>>(7&c)&1),c++,l+=A,\"H\"==_){if(null!=u._lens[b][l]){var D=u._lens[b][l];l=\"\",f+=D,D<64&&(u._addNtimes(h,f,b),m+=f,b=1-b,f=0,0==--x&&(_=\"\"))}}else\"0001\"==l&&(l=\"\",u._addNtimes(h,v-m,b),m=v),\"001\"==l&&(l=\"\",_=\"H\",x=2),null!=u._dmap[l]&&(g=y+u._dmap[l],u._addNtimes(h,g-m,b),m=g,l=\"\",b=1-b);h.length==a&&\"\"==_&&(u._writeBits(h,i,8*o+w*E),b=0,w++,m=0,p=u._makeDiff(h),h=[])}},t.decode._findDiff=function(t,e,r){for(var n=0;n<t.length;n+=2)if(t[n]>=e&&t[n+1]==r)return t[n]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var r=1;r<t.length;r++)t[r-1]!=t[r]&&e.push(r,t[r]);return e.push(t.length,0,t.length,1),e},t.decode._decodeG2=function(e,r,n,i,o,a,s){for(var u=t.decode,c=r<<3,f=0,l=\"\",h=[],p=0,d=0,m=8*Math.ceil(a/8);c>>>3<r+n;){var g=0;1==s&&(g=e[c>>>3]>>>7-(7&c)&1),2==s&&(g=e[c>>>3]>>>(7&c)&1),c++,l+=g,null!=(f=u._lens[p][l])&&(u._addNtimes(h,f,p),l=\"\",f<64&&(p=1-p),h.length==a&&(u._writeBits(h,i,8*o+d*m),h=[],d++,p=0,7&c&&(c+=8-(7&c)),f>=64&&(c+=8)))}},t.decode._decodeG3=function(e,r,n,i,o,a,s,u){for(var c=t.decode,f=r<<3,l=0,h=\"\",p=[],d=[],m=0;m<a;m++)p.push(0);for(var g=0,y=0,v=0,b=0,w=0,_=-1,x=\"\",E=0,A=!0,D=8*Math.ceil(a/8);f>>>3<r+n;){v=c._findDiff(d,g+(0==g?0:1),1-w),b=c._findDiff(d,v,w);var k=0;if(1==s&&(k=e[f>>>3]>>>7-(7&f)&1),2==s&&(k=e[f>>>3]>>>(7&f)&1),f++,h+=k,A){if(null!=c._lens[w][h]){var S=c._lens[w][h];h=\"\",l+=S,S<64&&(c._addNtimes(p,l,w),w=1-w,l=0)}}else if(\"H\"==x){if(null!=c._lens[w][h]){S=c._lens[w][h];h=\"\",l+=S,S<64&&(c._addNtimes(p,l,w),g+=l,w=1-w,l=0,0==--E&&(x=\"\"))}}else\"0001\"==h&&(h=\"\",c._addNtimes(p,b-g,w),g=b),\"001\"==h&&(h=\"\",x=\"H\",E=2),null!=c._dmap[h]&&(y=v+c._dmap[h],c._addNtimes(p,y-g,w),g=y,h=\"\",w=1-w);h.endsWith(\"000000000001\")&&(_>=0&&c._writeBits(p,i,8*o+_*D),u&&(1==s&&(A=1==(e[f>>>3]>>>7-(7&f)&1)),2==s&&(A=1==(e[f>>>3]>>>(7&f)&1)),f++),h=\"\",w=0,_++,g=0,d=c._makeDiff(p),p=[])}p.length==a&&c._writeBits(p,i,8*o+_*D)},t.decode._addNtimes=function(t,e,r){for(var n=0;n<e;n++)t.push(r)},t.decode._writeBits=function(t,e,r){for(var n=0;n<t.length;n++)e[r+n>>>3]|=t[n]<<7-(r+n&7)},t.decode._decodeLZW=t.decode._decodeLZW=(u=0,c=0,f=0,l=0,h=function(){var t=r>>>3,e=(i[t]<<16|i[t+1]<<8|i[t+2])>>>24-(7&r)-c&(1<<c)-1;return r+=c,e},p=new Uint32Array(16384),d=0,m=function(t){c=t+1,u=l+1},g=function(t){for(var e=t<<2,r=p[e+2],n=s+r-1;65535!=e;)a[n--]=p[e],e=p[e+1];s+=r},y=function(t,e){var r=u<<2,n=t<<2;p[r]=p[3+(e<<2)],p[r+1]=n,p[r+2]=p[n+2]+1,p[r+3]=p[n+3],1+ ++u==1<<c&&12!=c&&c++},function(t,e,n,o,c,v){r=e<<3,i=t,a=o,s=c;var b=e+n<<3,w=0,_=0;for(function(t){if(t!=d){d=t,l=1+(f=1<<t);for(var e=0;e<l+1;e++)p[4*e]=p[4*e+3]=e,p[4*e+1]=65535,p[4*e+2]=1}}(v),m(v);r<b&&(w=h())!=l;){if(w==f){if(m(v),(w=h())==l)break;g(w)}else w<u?(g(w),y(_,w)):(y(_,_),g(u-1));_=w}return s}),t.tags={},t._types=function(){var t=new Array(250);t.fill(0);return{basic:{main:t=t.concat([0,0,0,0,4,3,3,3,3,3,0,0,3,0,0,0,3,0,0,2,2,2,2,4,3,0,0,3,4,4,3,3,5,5,3,2,5,5,0,0,0,0,4,4,0,0,3,3,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,2,2,3,5,5,3,0,3,3,4,4,4,3,4,0,0,0,0,0,0,0,0,0,3,3,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),rest:{33432:2,33434:5,33437:5,34665:4,34850:3,34853:4,34855:3,34864:3,34866:4,36864:7,36867:2,36868:2,37121:7,37377:10,37378:5,37380:10,37381:5,37383:3,37384:3,37385:3,37386:5,37510:7,37520:2,37521:2,37522:2,40960:7,40961:3,40962:4,40963:4,40965:4,41486:5,41487:5,41488:3,41985:3,41986:3,41987:3,41988:5,41989:3,41990:3,41993:3,41994:3,41995:7,41996:3,42032:2,42033:2,42034:5,42036:2,42037:2,59932:7}},gps:{main:[1,2,5,2,5,1,5,5,0,9],rest:{18:2,29:2}}}}(),t._readIFD=function(e,r,n,i,a,s){var u=e.readUshort(r,n);n+=2;var c={};s.debug&&o(\"   \".repeat(a),i.length-1,\">>>----------------\");for(var f=0;f<u;f++){var l=e.readUshort(r,n);n+=2;var h=e.readUshort(r,n);n+=2;var p=e.readUint(r,n);n+=4;var d=e.readUint(r,n);n+=4;var m=[];if(1==h||7==h){var g=p<5?n-4:d;g+p>r.buffer.byteLength&&(p=r.buffer.byteLength-g),m=new Uint8Array(r.buffer,g,p)}if(2==h){var y=p<5?n-4:d,v=r[y],b=Math.max(0,Math.min(p-1,r.length-y));v<128||0==b?m.push(e.readASCII(r,y,b)):m=new Uint8Array(r.buffer,y,b)}if(3==h)for(var w=0;w<p;w++)m.push(e.readUshort(r,(p<3?n-4:d)+2*w));if(4==h||13==h)for(w=0;w<p;w++)m.push(e.readUint(r,(p<2?n-4:d)+4*w));if(5==h||10==h){var _=5==h?e.readUint:e.readInt;for(w=0;w<p;w++)m.push([_(r,d+8*w),_(r,d+8*w+4)])}if(8==h)for(w=0;w<p;w++)m.push(e.readShort(r,(p<3?n-4:d)+2*w));if(9==h)for(w=0;w<p;w++)m.push(e.readInt(r,(p<2?n-4:d)+4*w));if(11==h)for(w=0;w<p;w++)m.push(e.readFloat(r,d+4*w));if(12==h)for(w=0;w<p;w++)m.push(e.readDouble(r,d+8*w));if(0==p||0!=m.length){if(s.debug&&o(\"   \".repeat(a),l,h,t.tags[l],m),c[\"t\"+l]=m,330==l&&c.t272&&\"DSLR-A100\"==c.t272[0]);else if(330==l||34665==l||34853==l||50740==l&&e.readUshort(r,e.readUint(m,0))<300||61440==l){var x=50740==l?[e.readUint(m,0)]:m,E=[];for(w=0;w<x.length;w++)t._readIFD(e,r,x[w],E,a+1,s);330==l&&(c.subIFD=E),34665==l&&(c.exifIFD=E[0]),34853==l&&(c.gpsiIFD=E[0]),50740==l&&(c.dngPrvt=E[0]),61440==l&&(c.fujiIFD=E[0])}if(37500==l&&s.parseMN){var A=m;if(\"Nikon\"==e.readASCII(A,0,5))c.makerNote=t.decode(A.slice(10).buffer)[0];else if(\"OLYMP\"==e.readASCII(A,0,5)||\"OM SYSTEM\"==e.readASCII(A,0,9)){var D=[8208,8224,8240,8256,8272],k=[];t._readIFD(e,A,77==A[1]?16:85==A[5]?12:8,k,a+1,s);var S=c.makerNote=k.pop();for(w=0;w<D.length;w++){var M=\"t\"+D[w];null!=S[M]&&(t._readIFD(e,A,S[M][0],k,a+1,s),S[M]=k.pop())}S.t12288&&(t._readIFD(e,S.t12288,0,k,a+1,s),S.t12288=k.pop())}else if(e.readUshort(r,d)<300&&e.readUshort(r,d+4)<=12){k=[];t._readIFD(e,r,d,k,a+1,s),c.makerNote=k[0]}}}else if(o(l,\"unknown TIFF tag type: \",h,\"num:\",p),0==f)return}return i.push(c),s.debug&&o(\"   \".repeat(a),\"<<<---------------\"),n},t._writeIFD=function(e,r,n,i,o){var a=Object.keys(o),s=a.length;o.exifIFD&&s--,o.gpsiIFD&&s--,e.writeUshort(n,i,s);for(var u=(i+=2)+12*s+4,c=0;c<a.length;c++){var f=a[c];if(\"t34665\"!=f&&\"t34853\"!=f){\"exifIFD\"==f&&(f=\"t34665\"),\"gpsiIFD\"==f&&(f=\"t34853\");var l=parseInt(f.slice(1)),h=r.main[l];if(null==h&&(h=r.rest[l]),null==h||0==h)throw new Error(\"unknown type of tag: \"+l);var p=o[f];if(34665==l)p=[u],u=t._writeIFD(e,r,n,u,o.exifIFD)[1];if(34853==l)p=[u],u=t._writeIFD(e,t._types.gps,n,u,o.gpsiIFD)[1];2==h&&(p=p[0]+\"\\0\");var d=p.length;e.writeUshort(n,i,l),i+=2,e.writeUshort(n,i,h),i+=2,e.writeUint(n,i,d);var m=[-1,1,1,2,4,8,0,1,0,4,8,0,8][h]*d,g=i+=4;if(m>4&&(e.writeUint(n,i,u),g=u),1==h||7==h)for(var y=0;y<d;y++)n[g+y]=p[y];else if(2==h)e.writeASCII(n,g,p);else if(3==h)for(y=0;y<d;y++)e.writeUshort(n,g+2*y,p[y]);else if(4==h)for(y=0;y<d;y++)e.writeUint(n,g+4*y,p[y]);else if(5==h||10==h){var v=5==h?e.writeUint:e.writeInt;for(y=0;y<d;y++){var b=p[y],w=b[0],_=b[1];if(null==w)throw\"e\";v(n,g+8*y,w),v(n,g+8*y+4,_)}}else if(9==h)for(y=0;y<d;y++)e.writeInt(n,g+4*y,p[y]);else{if(12!=h)throw h;for(y=0;y<d;y++)e.writeDouble(n,g+8*y,p[y])}m>4&&(u+=m+=1&m),i+=4}}return[i,u]},t.toRGBA8=function(t,e){function r(t){return t<.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}var n=t.width,i=t.height,a=n*i,s=t.data,u=new Uint8Array(4*a),c=t.t262?t.t262[0]:2,f=t.t258?Math.min(32,t.t258[0]):1;null==t.t262&&1==f&&(c=0);var l=t.t277?t.t277[0]:t.t258?t.t258.length:[1,1,3,1,1,4,3][c],h=t.t339?t.t339[0]:null;if(1==c&&32==f&&3!=h)throw\"e\";var p=Math.ceil(l*f*n/8);if(0==c){e=1/256;for(var d=0;d<i;d++){var m=d*p,g=d*n;if(1==f)for(var y=0;y<n;y++){var v=g+y<<2,b=s[m+(y>>3)]>>7-(7&y)&1;u[v]=u[v+1]=u[v+2]=255*(1-b),u[v+3]=255}if(4==f)for(y=0;y<n;y++){v=g+y<<2,b=s[m+(y>>1)]>>4-4*(1&y)&15;u[v]=u[v+1]=u[v+2]=17*(15-b),u[v+3]=255}if(8==f)for(y=0;y<n;y++){v=g+y<<2,b=s[m+y];u[v]=u[v+1]=u[v+2]=255-b,u[v+3]=255}if(16==f)for(y=0;y<n;y++){v=g+y<<2,b=s[(_=m+2*y)+1]<<8|s[_];u[v]=u[v+1]=u[v+2]=Math.min(255,255-~~(b*e)),u[v+3]=255}}}else if(1==c){null==e&&(e=1/256);var w=3&s.length?null:new Float32Array(s.buffer);for(d=0;d<i;d++){m=d*p,g=d*n;if(1==f)for(y=0;y<n;y++){v=g+y<<2,b=s[m+(y>>3)]>>7-(7&y)&1;u[v]=u[v+1]=u[v+2]=255*b,u[v+3]=255}if(2==f)for(y=0;y<n;y++){v=g+y<<2,b=s[m+(y>>2)]>>6-2*(3&y)&3;u[v]=u[v+1]=u[v+2]=85*b,u[v+3]=255}if(8==f)for(y=0;y<n;y++){v=g+y<<2,b=s[m+y*l];u[v]=u[v+1]=u[v+2]=b,u[v+3]=255}if(16==f)for(y=0;y<n;y++){v=g+y<<2,b=s[(_=m+2*y)+1]<<8|s[_];u[v]=u[v+1]=u[v+2]=Math.min(255,~~(b*e)),u[v+3]=255}if(32==f)for(y=0;y<n;y++){var _;v=g+y<<2,b=w[_=(m>>>2)+y];u[v]=u[v+1]=u[v+2]=~~(.5+255*b),u[v+3]=255}}}else if(2==c)if(8==f){if(1==l)for(y=0;y<a;y++)u[4*y]=u[4*y+1]=u[4*y+2]=s[y],u[4*y+3]=255;if(3==l)for(y=0;y<a;y++){var x=3*y;u[v=y<<2]=s[x],u[v+1]=s[x+1],u[v+2]=s[x+2],u[v+3]=255}if(l>=4)for(y=0;y<a;y++){x=y*l;u[v=y<<2]=s[x],u[v+1]=s[x+1],u[v+2]=s[x+2],u[v+3]=s[x+3]}}else if(16==f){if(4==l)for(y=0;y<a;y++){x=8*y+1;u[v=y<<2]=s[x],u[v+1]=s[x+2],u[v+2]=s[x+4],u[v+3]=s[x+6]}if(3==l)for(y=0;y<a;y++){x=6*y+1;u[v=y<<2]=s[x],u[v+1]=s[x+2],u[v+2]=s[x+4],u[v+3]=255}}else{if(32!=f)throw f;var E=new Float32Array(s.buffer),A=0;for(y=0;y<E.length;y++)A=Math.min(A,E[y]);if(A<0)for(y=0;y<s.length;y+=4){var D=s[y];s[y]=s[y+3],s[y+3]=D,D=s[y+1],s[y+1]=s[y+2],s[y+2]=D}var k=[];for(y=0;y<65536;y++)k.push(r(y/65535));for(y=0;y<E.length;y++){var S=Math.max(0,Math.min(1,E[y]));E[y]=k[~~(.5+65535*S)]}if(3==l)for(y=0;y<a;y++){x=3*y;u[v=y<<2]=~~(.5+255*E[x]),u[v+1]=~~(.5+255*E[x+1]),u[v+2]=~~(.5+255*E[x+2]),u[v+3]=255}else{if(4!=l)throw l;for(y=0;y<a;y++){x=4*y;u[v=y<<2]=~~(.5+255*E[x]),u[v+1]=~~(.5+255*E[x+1]),u[v+2]=~~(.5+255*E[x+2]),u[v+3]=~~(.5+255*E[x+3])}}}else if(3==c){var M=t.t320,C=1<<f,T=8==f&&l>1&&t.t338&&0!=t.t338[0];for(d=0;d<i;d++)for(var O=0;O<n;O++){v=(y=d*n+O)<<2;var F=0,B=d*p;if(1==f)F=s[B+(O>>>3)]>>>7-(7&O)&1;else if(2==f)F=s[B+(O>>>2)]>>>6-2*(3&O)&3;else if(4==f)F=s[B+(O>>>1)]>>>4-4*(1&O)&15;else{if(8!=f)throw f;F=s[B+O*l]}u[v]=M[F]>>8,u[v+1]=M[C+F]>>8,u[v+2]=M[C+C+F]>>8,u[v+3]=T?s[B+O*l+1]:255}}else if(5==c){var I=l>4?1:0;for(y=0;y<a;y++){v=y<<2;var P=y*l;if(window.UDOC){var L=s[P],N=s[P+1],j=s[P+2],R=s[P+3],z=UDOC.C.cmykToRgb([L*(1/255),N*(1/255),j*(1/255),R*(1/255)]);u[v]=~~(.5+255*z[0]),u[v+1]=~~(.5+255*z[1]),u[v+2]=~~(.5+255*z[2])}else{L=255-s[P],N=255-s[P+1],j=255-s[P+2],R=(255-s[P+3])*(1/255);u[v]=~~(L*R+.5),u[v+1]=~~(N*R+.5),u[v+2]=~~(j*R+.5)}u[v+3]=255*(1-I)+s[P+4]*I}}else if(6==c&&t.t278){var U=t.t278[0];for(d=0;d<i;d+=U){y=d*n;for(var G=U*n,H=0;H<G;H++){v=4*(y+H),j=s[(P=3*y+4*(H>>>1))+(1&H)];var q=s[P+2]-128,Z=s[P+3]-128,W=j+((Z>>2)+(Z>>3)+(Z>>5)),Y=j-((q>>2)+(q>>4)+(q>>5))-((Z>>1)+(Z>>3)+(Z>>4)+(Z>>5)),X=j+(q+(q>>1)+(q>>2)+(q>>6));u[v]=Math.max(0,Math.min(255,W)),u[v+1]=Math.max(0,Math.min(255,Y)),u[v+2]=Math.max(0,Math.min(255,X)),u[v+3]=255}}}else if(32845==c)for(d=0;d<i;d++)for(O=0;O<n;O++){v=4*(d*n+O);var $=s[(P=6*(d*n+O))+1]<<8|s[P],V=($=Math.pow(2,($+.5)/256-64),(s[P+3]+.5)/410),J=(s[P+5]+.5)/410,Q=9*V/(6*V-16*J+12),K=4*J/(6*V-16*J+12),tt=Q*$/K,et=(1-Q-K)*$/K;W=2.69*tt-1.276*(j=$)-.414*et,Y=-1.022*tt+1.978*j+.044*et,X=.061*tt-.224*j+1.163*et;u[v]=255*r(Math.min(W,1)),u[v+1]=255*r(Math.min(Y,1)),u[v+2]=255*r(Math.min(X,1)),u[v+3]=255}else o(\"Unknown Photometric interpretation: \"+c);return u},t.replaceIMG=function(e){null==e&&(e=document.getElementsByTagName(\"img\"));for(var r=[\"tif\",\"tiff\",\"dng\",\"cr2\",\"nef\"],n=0;n<e.length;n++){var i=e[n],o=i.getAttribute(\"src\");if(null!=o){var a=o.split(\".\").pop().toLowerCase();if(-1!=r.indexOf(a)){var s=new XMLHttpRequest;t._xhrs.push(s),t._imgs.push(i),s.open(\"GET\",o),s.responseType=\"arraybuffer\",s.onload=t._imgLoaded,s.send()}}}},t._xhrs=[],t._imgs=[],t._imgLoaded=function(e){var r=t._xhrs.indexOf(e.target),n=t._imgs[r];t._xhrs.splice(r,1),t._imgs.splice(r,1),n.setAttribute(\"src\",t.bufferToURI(e.target.response))},t.bufferToURI=function(e){var r=t.decode(e),n=r,i=0,o=n[0];r[0].subIFD&&(n=n.concat(r[0].subIFD));for(var a=0;a<n.length;a++){var s=n[a];if(!(null==s.t258||s.t258.length<3)){var u=s.t256*s.t257;u>i&&(i=u,o=s)}}t.decodeImage(e,o,r);var c=t.toRGBA8(o),f=o.width,l=o.height,h=document.createElement(\"canvas\");h.width=f,h.height=l;var p=h.getContext(\"2d\"),d=new ImageData(new Uint8ClampedArray(c.buffer),f,l);return p.putImageData(d,0,0),h.toDataURL()},t._binBE={nextZero:function(t,e){for(;0!=t[e];)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+1],n[1]=e[r+0],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.ui32[0]},readASCII:function(t,e,r){for(var n=\"\",i=0;i<r;i++)n+=String.fromCharCode(t[e+i]);return n},readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+3-i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+7-i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=r>>8&255,t[e+1]=255&r},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+3]=i[0],e[r+2]=i[1],e[r+1]=i[2],e[r+0]=i[3]},writeUint:function(t,e,r){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},writeASCII:function(t,e,r){for(var n=0;n<r.length;n++)t[e+n]=r.charCodeAt(n)},writeDouble:function(e,r,n){t._binBE.fl64[0]=n;for(var i=0;i<8;i++)e[r+i]=t._binBE.ui8[7-i]}},t._binBE.ui8=new Uint8Array(8),t._binBE.i16=new Int16Array(t._binBE.ui8.buffer),t._binBE.i32=new Int32Array(t._binBE.ui8.buffer),t._binBE.ui32=new Uint32Array(t._binBE.ui8.buffer),t._binBE.fl32=new Float32Array(t._binBE.ui8.buffer),t._binBE.fl64=new Float64Array(t._binBE.ui8.buffer),t._binLE={nextZero:t._binBE.nextZero,readUshort:function(t,e){return t[e+1]<<8|t[e]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.ui32[0]},readASCII:t._binBE.readASCII,readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=255&r,t[e+1]=r>>8&255},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+0]=i[0],e[r+1]=i[1],e[r+2]=i[2],e[r+3]=i[3]},writeUint:function(t,e,r){t[e]=r>>>0&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24&255},writeASCII:t._binBE.writeASCII},t._copyTile=function(t,e,r,n,i,o,a,s){for(var u=Math.min(e,i-a),c=Math.min(r,o-s),f=0;f<c;f++)for(var l=(s+f)*i+a,h=f*e,p=0;p<u;p++)n[l+p]=t[h+p]},t.LosslessJpegDecode=function(){var t,e;function r(){return t[e++]}function n(){return t[e++]<<8|t[e++]}function i(t){for(var e=r(),n=[0,0,0,255],i=[],a=0;a<16;a++)i[a]=r();for(a=0;a<16;a++)for(var s=0;s<i[a];s++){n[o(n,0,a+1,1)+3]=r()}var u=new Uint8Array(256);t[e]=[new Uint8Array(n),u];for(a=0;a<256;a++){for(var c=8,f=a,l=0;255==n[l+3]&&0!=c;)l=n[l+(f>>--c&1)];u[a]=l}}function o(t,e,r,n){if(255!=t[e+3])return 0;if(0==r)return e;for(var i=0;i<2;i++){0==t[e+i]&&(t[e+i]=t.length,t.push(0,0,n,255));var a=o(t,t[e+i],r-1,n+1);if(0!=a)return a}return 0}function a(t){for(var e=t.b,r=t.f;e<25&&t.a<t.d;){var n=t.data[t.a++];255!=n||t.c||t.a++,r=r<<8|n,e+=8}if(e<0)throw\"e\";t.b=e,t.f=r}function s(t,e){return e.b<t&&a(e),e.f>>(e.b-=t)&65535>>16-t}function u(t,e){var r=t[0],n=0,i=255;e.b<16&&a(e);var o=e.f>>e.b-8&255;for(i=r[(n=t[1][o])+3],e.b-=r[n+2];255==i;)i=r[(n=r[n+(e.f>>--e.b&1)])+3];return i}function c(t,e){return t<32768>>16-e&&(t+=1-(1<<e)),t}function f(t,e){var r=u(t,e);return 0==r?0:16==r?-32768:c(s(r,e),r)}function l(t,e,r,n,i,o){for(var a=0,s=0;s<o;s++){for(var u=s*e,c=0;c<e;c+=i){a++;for(var l=0;l<i;l++)t[u+c+l]=f(n[l],r)}if(0!=r.e&&a%r.e==0&&0!=s){for(var h=r.a,p=r.data;255!=p[h]||!(208<=p[h+1]&&p[h+1]<=215);)h--;r.a=h+2,r.f=0,r.b=0}}}function h(t,e){return c(s(t,e),t)}function p(t,e,r,n,i,o,a,s){for(var u=r*a,c=i;c<o;c++)t[c]+=1<<s-1;for(var f=a;f<u;f+=a)for(c=i;c<o;c++)t[f+c]+=t[f+c-a];for(var l=1;l<n;l++){var h=l*u;for(c=i;c<o;c++)t[h+c]+=t[h+c-u];for(f=a;f<u;f+=a)for(c=i;c<o;c++){var p=h+f+c,d=p-u,m=t[p-a],g=0;if(0==e)g=0;else if(1==e)g=m;else if(2==e)g=t[d];else if(3==e)g=t[d-a];else if(4==e)g=m+(t[d]-t[d-a]);else if(5==e)g=m+(t[d]-t[d-a]>>>1);else if(6==e)g=t[d]+(m-t[d-a]>>>1);else{if(7!=e)throw e;g=m+t[d]>>>1}t[p]+=g}}}return function(o){if(t=o,e=0,65496!=n())throw\"e\";for(var a=[],s=0,c=0,f=0,d=[],m=[],g=[],y=0,v=0,b=0;;){var w=n();if(65535!=w){var _=n();if(65475==w){c=r(),v=n(),b=n(),y=r();for(var x=0;x<y;x++){var E=r(),A=r();if(0!=r())throw\"e\";a[E]=[x,A>>4,15&A]}}else if(65476==w)for(var D=e+_-2;e<D;)i(m);else{if(65498==w){e++;for(x=0;x<y;x++){var k=a[r()];g[k[0]]=m[r()>>>4],d[k[0]]=k.slice(1)}s=r(),e+=2;break}65501==w?f=n():e+=_-2}}else e--}var S=new(c>8?Uint16Array:Uint8Array)(v*b*y),M={b:0,f:0,c:8==s,a:e,data:t,d:t.length,e:f};if(M.c)!function(r,n,i,o,a){for(var s=t.length-e,c=0;c<s;c+=4){var f=t[e+c];t[e+c]=t[e+c+3],t[e+c+3]=f,f=t[e+c+1],t[e+c+1]=t[e+c+2],t[e+c+2]=f}for(var l=0;l<a;l++)for(var p=32768,d=32768,m=0;m<n;m+=2){var g=u(o,i),y=u(o,i);0!=g&&(p+=h(g,i)),0!=y&&(d+=h(y,i)),r[l*n+m]=65535&p,r[l*n+m+1]=65535&d}}(S,b*y,M,g[0],v);else{var C=[],T=0,O=0;for(x=0;x<y;x++){var F=d[x];(G=F[0])>T&&(T=G),(U=F[1])>O&&(O=U),C.push(G*U)}if(1!=T||1!=O){if(3!=y||1!=C[1]||1!=C[2])throw\"e\";if(2!=T||1!=O&&2!=O)throw\"e\";var B=[],I=0;for(x=0;x<y;x++){for(var P=0;P<C[x];P++)B.push(g[x]);I+=C[x]}var L=b/T,N=v/O,j=L*N;l(S,L*I,M,B,I,N),p(S,s,L,N,I-2,I,I,c);var R=new Uint16Array(j*C[0]);if(2==T&&2==O){for(x=0;x<j;x++)R[4*x]=S[6*x],R[4*x+1]=S[6*x+1],R[4*x+2]=S[6*x+2],R[4*x+3]=S[6*x+3];p(R,s,4*L,N,0,1,1,c);for(x=0;x<j;x++)S[6*x]=R[4*x],S[6*x+1]=R[4*x+1],S[6*x+2]=R[4*x+2],S[6*x+3]=R[4*x+3]}if(2==T&&1==O){for(x=0;x<j;x++)R[2*x]=S[4*x],R[2*x+1]=S[4*x+1];p(R,s,2*L,N,0,1,1,c);for(x=0;x<j;x++)S[4*x]=R[2*x],S[4*x+1]=R[2*x+1]}for(var z=S.slice(0),U=0;U<v;U++)if(2==O)for(var G=0;G<b;G++){var H=((U>>>1)*L+(G>>>1))*I,q=2*(1&U)+(1&G);S[Z=(U*b+G)*y]=z[H+q],S[Z+1]=z[H+4],S[Z+2]=z[H+5]}else for(G=0;G<b;G++){var Z;H=(U*L+(G>>>1))*I,q=1&G;S[Z=(U*b+G)*y]=z[H+q],S[Z+1]=z[H+2],S[Z+2]=z[H+3]}}else if(l(S,b*y,M,g,y,v),0==f)p(S,s,b,v,0,y,y,c);else{var W=Math.floor(f/b);for(U=0;U<v;U+=W){var Y=S.slice(U*b*y,(U+W)*b*y);p(Y,s,b,W,0,y,y,c),S.set(Y,U*b*y)}}}return S}}(),function(){var e=2,r=4,n=5,i=6,o=7,a=12,s=13,u=14,c=15,f=17;function l(t){var e={c:new Int8Array(2<<t.u)};return function(t,e,r){var n=[e,3*e+18,5*e+67,7*e+276,r];t.o=e,t.w=(n[4]+2*e)/(2*e+1)+1|0,t.v=Math.ceil(Math.log2(t.w)),t.t=9,function(t,e){for(var r=-e[4],n=0;r<=e[4];n++,r++)t[n]=r<=-e[3]?-4:r<=-e[2]?-3:r<=-e[1]?-2:r<-e[0]?-1:r<=e[0]?0:r<e[1]?1:r<e[2]?2:r<e[3]?3:4}(t.c,n)}(e,0,t.g),e}function h(t){for(var e=[[],[],[]],r=Math.max(2,t.w+32>>>6),n=0;n<3;n++)for(var i=0;i<41;i++)e[n][i]=[r,1];return e}function p(t,e){var r=0,n=8-t.a;t.j,t.a;if(e){if(e>=n)do{r<<=n,e-=n,r|=t[t.j]&(1<<n)-1,t.j++,n=8}while(e>=8);e&&(r<<=e,n-=e,r|=t[t.j]>>>n&(1<<e)-1),t.a=8-n}return r}function d(t,e,r,n,i,o,a,s){null==s&&(s=0);var u,c,f,l,h,d,m=o+1,g=m%2,y=0,v=n[i],b=n[i-1],w=n[i-2][m],_=b[m-1],x=b[m],E=b[m+1],A=v[m-1],D=v[m+1],k=Math.abs;if(g&&(f=k(E-x),l=k(w-x),h=k(_-x)),g){if(d=(d=f>h&&l<f?w+_:f<h&&l<h?w+E:E+_)+2*x>>>2,s)return void(v[m]=d);u=e.t*e.c[t.g+x-w]+e.c[t.g+_-x]}else d=x>_&&x>E||x<_&&x<E?D+A+2*x>>>2:A+D>>>1,u=e.t*e.c[t.g+x-_]+e.c[t.g+_-A];c=k(u);var S=function(t){for(var e=-1,r=0;!r;e++)r=t[t.j]>>>7-t.a&1,t.a++,t.a&=7,t.a||t.j++;return e}(r);if(S<t.n-e.v-1){var M=function(t,e){var r=0;if(e<t)for(;r<=14&&e<<++r<t;);return r}(a[c][0],a[c][1]);y=p(r,M)+(S<<M)}else y=p(r,e.v)+1;y=1&y?-1-(y>>>1):y>>>1,a[c][0]+=k(y),a[c][1]==t.f&&(a[c][0]>>>=1,a[c][1]>>>=1),a[c][1]++,d=u<0?d-y:d+y,t.i&&(d<0?d+=e.w:d>t.g&&(d-=e.w)),v[m]=d>=0?Math.min(d,t.g):0}function m(t,e,r){for(var n=t[0].length,i=e;i<=r;i++)t[i][0]=t[i-1][1],t[i][n-1]=t[i-1][n-2]}function g(t){m(t,o,a),m(t,e,r),m(t,c,f)}function y(t,e,n,i,o,a,u,c,f,l,h,p,m){for(var y=0,v=1,b=o<s&&o>r;v<t.m;)y<t.m&&(d(t,e,n,i,o,y,u[f],t.h&&(b&&l||!b&&(h||(y&p)==m))),d(t,e,n,i,a,y,u[f],t.h&&(!b&&l||b&&(h||(y&p)==m))),y+=2),y>8&&(d(t,e,n,i,o,v,c[f]),d(t,e,n,i,a,v,c[f]),v+=2);g(i)}function v(t,n,i,s,u,l){y(t,n,i,s,e,o,u,l,0,0,1,0,8),y(t,n,i,s,8,c,u,l,1,0,1,0,8),y(t,n,i,s,3,9,u,l,2,1,0,3,0),y(t,n,i,s,10,16,u,l,0,0,0,3,2),y(t,n,i,s,r,11,u,l,1,0,0,3,2),y(t,n,i,s,a,f,u,l,2,1,0,3,0)}function b(t,r,n,i,a,s){var u=s.length,f=t.l;a+1==t.s&&(f=t.e-a*t.l);for(var l=6*t.e*i+a*t.l,h=0;h<6;h++){for(var p=0;p<f;p++){var d,m=s[h%u][p%u];d=0==m?e+(h>>>1):2==m?c+(h>>>1):o+h;var g=t.h?(2*p/3&2147483646|p%3&1)+(p%3>>>1):p>>>1;r[l+p]=n[d][g+1]}l+=t.e}}t._decompressRAF=function(o,c){var p=function(e){var r=t._binBE.readUshort,n={b:r(e,0),i:e[2],C:e[3],u:e[4],q:r(e,5),k:r(e,7),e:r(e,9),l:r(e,11),s:e[13],d:r(e,14)};if(18771!=n.b||n.i>1||n.q<6||n.q%6||n.e<768||n.e%24||768!=n.l||n.k<n.l||n.k%n.l||n.k-n.e>=n.l||n.s>16||n.s!=n.k/n.l||n.s!=Math.ceil(n.e/n.l)||n.d!=n.q/6||12!=n.u&&14!=n.u&&16!=n.u||16!=n.C&&0!=n.C)throw\"Invalid data\";if(0==n.i)throw\"Not implemented. We need this file!\";return n.h=16==n.C,n.m=0|(n.h?2*n.l/3:n.l>>>1),n.A=n.m+2,n.f=64,n.g=(1<<n.u)-1,n.n=4*n.u,n}(o),d=function(e,r){var n=new Array(r.s),i=4*r.s,o=16+i;12&i&&(o+=16-(12&i));for(var a=0,s=16;a<r.s;s+=4){var u=t._binBE.readUint(e,s);n[a]=e.slice(o,o+u),n[a].j=0,n[a].a=0,o+=u,a++}if(o!=e.length)throw\"Invalid data\";return n}(o,p),m=l(p),y=new Int16Array(p.e*p.q);null==c&&(c=p.h?[[1,1,0,1,1,2],[1,1,2,1,1,0],[2,0,1,0,2,1],[1,1,2,1,1,0],[1,1,0,1,1,2],[0,2,1,2,0,1]]:[[0,1],[3,2]]);for(var w=[[0,3],[1,r],[n,11],[i,a],[s,16],[u,f]],_=[],x=0;x<18;x++)_[x]=new Uint16Array(p.A);for(var E=0;E<p.s;E++){var A=h(m),D=h(m);for(x=0;x<18;x++)for(var k=0;k<p.A;k++)_[x][k]=0;for(var S=0;S<p.d;S++){v(p,m,d[E],_,A,D);for(x=0;x<6;x++)for(k=0;k<p.A;k++)_[w[x][0]][k]=_[w[x][1]][k];b(p,y,_,S,E,c);for(x=e;x<18;x++)if(-1==[n,i,s,u].indexOf(x))for(k=0;k<p.A;k++)_[x][k]=0;g(_)}}return y}}()}(i,r(197))}()}).call(this,r(13)(t),r(7))},function(t,e,r){\"use strict\";var n=r(57),i=r(42),o=i.Gif,a=i.GifError,s=r(96).GifCodec,u=r(58).GifFrame,c=r(97);t.exports={BitmapImage:n,Gif:o,GifCodec:s,GifFrame:u,GifUtil:c,GifError:a}},function(t,e,r){t.exports=i;var n=r(31).EventEmitter;function i(){n.call(this)}r(24)(i,n),i.Readable=r(50),i.Writable=r(154),i.Duplex=r(155),i.Transform=r(156),i.PassThrough=r(157),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on(\"data\",i),t.on(\"drain\",o),t._isStdio||e&&!1===e.end||(r.on(\"end\",s),r.on(\"close\",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,\"function\"==typeof t.destroy&&t.destroy())}function c(t){if(f(),0===n.listenerCount(this,\"error\"))throw t}function f(){r.removeListener(\"data\",i),t.removeListener(\"drain\",o),r.removeListener(\"end\",s),r.removeListener(\"close\",u),r.removeListener(\"error\",c),t.removeListener(\"error\",c),r.removeListener(\"end\",f),r.removeListener(\"close\",f),t.removeListener(\"close\",f)}return r.on(\"error\",c),t.on(\"error\",c),r.on(\"end\",f),r.on(\"close\",f),t.on(\"close\",f),t.emit(\"pipe\",r),t}},function(t,e,r){\"use strict\";(function(e){void 0===e||!e.version||0===e.version.indexOf(\"v0.\")||0===e.version.indexOf(\"v1.\")&&0!==e.version.indexOf(\"v1.8.\")?t.exports={nextTick:function(t,r,n,i){if(\"function\"!=typeof t)throw new TypeError('\"callback\" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,r(7))},function(t,e,r){\"use strict\";t.exports=TypeError},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(\"object\"!==n(r))throw new TypeError(r+\"must be non-object\");for(var i in r)o(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var a={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},s={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,a)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e,r){return e=u(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function o(t){var e=\"function\"==typeof Map?new Map:void 0;return o=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(a())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&s(i,r.prototype),i}(t,arguments,u(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},o(t)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function f(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function l(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function h(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var p=f((function t(e,r,n){h(this,t),this.width=n.width,this.height=n.height,this.loops=n.loops,this.usesTransparency=n.usesTransparency,this.colorScope=n.colorScope,this.frames=r,this.buffer=e}));p.GlobalColorsPreferred=0,p.GlobalColorsOnly=1,p.LocalColorsOnly=2;var d=function(t){function e(t){var r;return h(this,e),r=i(this,e,[t]),t instanceof Error&&(r.stack=\"Gif\"+t.stack),r}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&s(t,e)}(e,t),f(e)}(o(Error));e.Gif=p,e.GifError=d},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.clone=c,e.addLast=l,e.addFirst=h,e.removeLast=p,e.removeFirst=d,e.insert=m,e.removeAt=g,e.replaceAt=y,e.getIn=v,e.set=b,e.setIn=w,e.update=x,e.updateIn=E,e.merge=A,e.mergeDeep=D,e.mergeIn=k,e.omit=S,e.addDefaults=M,e.default=void 0;var i=\"INVALID_ARGS\",o=!1;function a(t){throw new Error(t)}function s(t){var e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}var u={}.hasOwnProperty;function c(t){if(Array.isArray(t))return t.slice();for(var e=t,r=s(e),n={},i=0;i<r.length;i++){var o=r[i];n[o]=e[o]}return n}function f(t){return null!=t&&\"object\"===n(t)}function l(t,e){return Array.isArray(e)?t.concat(e):t.concat([e])}function h(t,e){return Array.isArray(e)?e.concat(t):[e].concat(t)}function p(t){return t.length?t.slice(0,t.length-1):t}function d(t){return t.length?t.slice(1):t}function m(t,e,r){return t.slice(0,e).concat(Array.isArray(r)?r:[r]).concat(t.slice(e))}function g(t,e){return e>=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function y(t,e,r){if(t[e]===r)return t;for(var n=t.length,i=Array(n),o=0;o<n;o++)i[o]=t[o];return i[e]=r,i}function v(t,e){if(Array.isArray(e)||a(o?\"A path array should be provided when calling getIn()\":i),null!=t){for(var r=t,n=0;n<e.length;n++){var s=e[n];if(void 0===(r=null!=r?r[s]:void 0))return r}return r}}function b(t,e,r){var n=t;if(null==n&&(n=\"number\"==typeof e?[]:{}),n[e]===r)return n;var i=c(n);return i[e]=r,i}function w(t,e,r){return e.length?_(t,e,r,0):r}function _(t,e,r,n){var i,o=e[n];n===e.length-1?i=r:i=_(f(t)&&f(t[o])?t[o]:\"number\"==typeof e[n+1]?[]:{},e,r,n+1);return b(t,o,i)}function x(t,e,r){return b(t,e,r(null==t?void 0:t[e]))}function E(t,e,r){return w(t,e,r(v(t,e)))}function A(t,e,r,n,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?C.call.apply(C,[null,!1,!1,t,e,r,n,i,o].concat(s)):C(!1,!1,t,e,r,n,i,o)}function D(t,e,r,n,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?C.call.apply(C,[null,!1,!0,t,e,r,n,i,o].concat(s)):C(!1,!0,t,e,r,n,i,o)}function k(t,e,r,n,i,o,a){var s=v(t,e);null==s&&(s={});for(var u=arguments.length,c=new Array(u>7?u-7:0),f=7;f<u;f++)c[f-7]=arguments[f];return w(t,e,c.length?C.call.apply(C,[null,!1,!1,s,r,n,i,o,a].concat(c)):C(!1,!1,s,r,n,i,o,a))}function S(t,e){for(var r=Array.isArray(e)?e:[e],n=!1,i=0;i<r.length;i++)if(u.call(t,r[i])){n=!0;break}if(!n)return t;for(var o={},a=s(t),c=0;c<a.length;c++){var f=a[c];r.indexOf(f)>=0||(o[f]=t[f])}return o}function M(t,e,r,n,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?C.call.apply(C,[null,!0,!1,t,e,r,n,i,o].concat(s)):C(!0,!1,t,e,r,n,i,o)}function C(t,e,r){var n=r;null==n&&a(o?\"At least one object should be provided to merge()\":i);for(var u=!1,l=0;l<(arguments.length<=3?0:arguments.length-3);l++){var h=l+3<3||arguments.length<=l+3?void 0:arguments[l+3];if(null!=h){var p=s(h);if(p.length)for(var d=0;d<=p.length;d++){var m=p[d];if(!t||void 0===n[m]){var g=h[m];e&&f(n[m])&&f(g)&&(g=C(t,e,n[m],g)),void 0!==g&&g!==n[m]&&(u||(u=!0,n=c(n)),n[m]=g)}}}}return n}var T={clone:c,addLast:l,addFirst:h,removeLast:p,removeFirst:d,insert:m,removeAt:g,replaceAt:y,getIn:v,set:b,setIn:w,update:x,updateIn:E,merge:A,mergeDeep:D,mergeIn:k,omit:S,addDefaults:M};e.default=T},function(t,e,r){var n=r(229);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){\"use strict\";(function(t){r.d(e,\"c\",(function(){return _})),r.d(e,\"a\",(function(){return E})),r.d(e,\"b\",(function(){return A}));var n=r(103),i=r.n(n),o=r(104),a=r.n(o),s=r(0),u=r(20),c=r(19),f=r(33);function l(t){return l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},l(t)}function h(){h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new F(n||[]);return i(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};c(x,a,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&n.call(A,a)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,s){var u=p(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==l(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(l(e)+\" is not iterable\")}return w.prototype=_,i(D,\"constructor\",{value:_,configurable:!0}),i(_,\"constructor\",{value:w,configurable:!0}),w.displayName=c(_,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),c(D,u,\"Generator\"),c(D,a,(function(){return this})),c(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function g(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){m(o,n,i,a,s,\"next\",t)}function s(t){m(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function y(t,e){return v.apply(this,arguments)}function v(){return(v=g(h().mark((function t(e,r){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.fromBuffer(e);case 2:if(!(n=t.sent)){t.next=5;break}return t.abrupt(\"return\",n.mime);case 5:if(!r){t.next=7;break}return t.abrupt(\"return\",c.c(r));case 7:return t.abrupt(\"return\",null);case 8:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function b(t){return t._exif&&t._exif.tags&&t._exif.tags.Orientation||1}function w(e){if(!(b(e)<2)){var r=function(t){var e=t.getWidth(),r=t.getHeight();switch(b(t)){case 1:default:return null;case 2:return function(t,r){return[e-t-1,r]};case 3:return function(t,n){return[e-t-1,r-n-1]};case 4:return function(t,e){return[t,r-e-1]};case 5:return function(t,e){return[e,t]};case 6:return function(t,e){return[e,r-t-1]};case 7:return function(t,n){return[e-n-1,r-t-1]};case 8:return function(t,r){return[e-r-1,t]}}}(e),n=b(e)>4;!function(e,r,n,i){for(var o=e.bitmap.data,a=e.bitmap.width,s=t.alloc(o.length),u=0;u<r;u++)for(var c=0;c<n;c++){var f=p(i(u,c),2),l=f[0],h=r*c+u<<2,d=a*f[1]+l<<2,m=o.readUInt32BE(d);s.writeUInt32BE(m,h)}e.bitmap.data=s,e.bitmap.width=r,e.bitmap.height=n}(e,n?e.bitmap.height:e.bitmap.width,n?e.bitmap.width:e.bitmap.height,r)}}function _(t,e,r){return x.apply(this,arguments)}function x(){return(x=g(h().mark((function t(e,r,n){var i,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,y(e,r);case 2:if(\"string\"==typeof(i=t.sent)){t.next=5;break}return t.abrupt(\"return\",n(new Error(\"Could not find MIME for Buffer <\"+r+\">\")));case 5:if(this._originalMime=i.toLowerCase(),t.prev=6,o=this.getMIME(),!this.constructor.decoders[o]){t.next=12;break}this.bitmap=this.constructor.decoders[o](e),t.next=13;break;case 12:return t.abrupt(\"return\",s.d.call(this,\"Unsupported MIME type: \"+o,n));case 13:t.next=18;break;case 15:return t.prev=15,t.t0=t.catch(6),t.abrupt(\"return\",n.call(this,t.t0,this));case 18:try{this._exif=a.a.create(e).parse(),w(this)}catch(t){}return n.call(this,null,this),t.abrupt(\"return\",this);case 21:case\"end\":return t.stop()}}),t,this,[[6,15]])})))).apply(this,arguments)}function E(e,r){var n,i,o=this;if(e===u.AUTO&&(e=this.getMIME()),\"string\"!=typeof e)return s.d.call(this,\"mime must be a string\",r);if(\"function\"!=typeof r)return s.d.call(this,\"cb must be a function\",r);if(e=e.toLowerCase(),this._rgba&&this.constructor.hasAlpha[e]?this.bitmap.data=t.from(this.bitmap.data):this.bitmap.data=(n=this.constructor,i=this,new n(i.bitmap.width,i.bitmap.height,i._background).composite(i,0,0).bitmap).data,!this.constructor.encoders[e])return s.d.call(this,\"Unsupported MIME type: \"+e,r);var a=this.constructor.encoders[e](this);return a instanceof Promise?a.then((function(t){r.call(o,null,t)})):r.call(this,null,a),this}function A(t){return Object(f.a)(E,this,t)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t,n){var i=r(14),o=r(38),a=r(158),s=r(187),u=r(190),c=e.PNG=function(e){o.call(this),e=e||{},this.width=0|e.width,this.height=0|e.height,this.data=this.width>0&&this.height>0?t.alloc(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new a(e),this._parser.on(\"error\",this.emit.bind(this,\"error\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._parser.on(\"metadata\",this._metadata.bind(this)),this._parser.on(\"gamma\",this._gamma.bind(this)),this._parser.on(\"parsed\",function(t){this.data=t,this.emit(\"parsed\",t)}.bind(this)),this._packer=new s(e),this._packer.on(\"data\",this.emit.bind(this,\"data\")),this._packer.on(\"end\",this.emit.bind(this,\"end\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._packer.on(\"error\",this.emit.bind(this,\"error\"))};i.inherits(c,o),c.sync=u,c.prototype.pack=function(){return this.data&&this.data.length?(n.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit(\"error\",\"No data provided\"),this)},c.prototype.parse=function(t,e){var r,n;e&&(r=function(t){this.removeListener(\"error\",n),this.data=t,e(null,this)}.bind(this),n=function(t){this.removeListener(\"parsed\",r),e(t,null)}.bind(this),this.once(\"parsed\",r),this.once(\"error\",n));return this.end(t),this},c.prototype.write=function(t){return this._parser.write(t),!0},c.prototype.end=function(t){this._parser.end(t)},c.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit(\"metadata\",t)},c.prototype._gamma=function(t){this.gamma=t},c.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit(\"close\")},c.bitblt=function(t,e,r,n,i,o,a,s){if(n|=0,i|=0,o|=0,a|=0,s|=0,(r|=0)>t.width||n>t.height||r+i>t.width||n+o>t.height)throw new Error(\"bitblt reading outside image\");if(a>e.width||s>e.height||a+i>e.width||s+o>e.height)throw new Error(\"bitblt writing outside image\");for(var u=0;u<o;u++)t.data.copy(e.data,(s+u)*e.width+a<<2,(n+u)*t.width+r<<2,(n+u)*t.width+r+i<<2)},c.prototype.bitblt=function(t,e,r,n,i,o,a){return c.bitblt(this,t,e,r,n,i,o,a),this},c.adjustGamma=function(t){if(t.gamma){for(var e=0;e<t.height;e++)for(var r=0;r<t.width;r++)for(var n=t.width*e+r<<2,i=0;i<3;i++){var o=t.data[n+i]/255;o=Math.pow(o,1/2.2/t.gamma),t.data[n+i]=Math.round(255*o)}t.gamma=0}},c.prototype.adjustGamma=function(){c.adjustGamma(this)}}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;var n=r(126),i=r(129),o=r(26);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return o.EndOfStreamError}}),e.fromStream=function(t,e){return e=e||{},new n.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new i.BufferTokenizer(t,e)}},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new F(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&o.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractTokenizer=void 0;var c=r(26),f=function(){return e=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}},r=[{key:\"readToken\",value:(p=a(i().mark((function e(r){var n,o,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:this.position,o=t.alloc(r.len),e.next=4,this.readBuffer(o,{position:n});case 4:if(!(e.sent<r.len)){e.next=7;break}throw new c.EndOfStreamError;case 7:return e.abrupt(\"return\",r.get(o,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return p.apply(this,arguments)})},{key:\"peekToken\",value:(h=a(i().mark((function e(r){var n,o,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:this.position,o=t.alloc(r.len),e.next=4,this.peekBuffer(o,{position:n});case 4:if(!(e.sent<r.len)){e.next=7;break}throw new c.EndOfStreamError;case 7:return e.abrupt(\"return\",r.get(o,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return h.apply(this,arguments)})},{key:\"readNumber\",value:(l=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new c.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:\"peekNumber\",value:(f=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.peekBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new c.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:\"ignore\",value:(u=a(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===this.fileInfo.size){t.next=5;break}if(r=this.fileInfo.size-this.position,!(e>r)){t.next=5;break}return this.position+=r,t.abrupt(\"return\",r);case 5:return this.position+=e,t.abrupt(\"return\",e);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:\"close\",value:(o=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:\"normalizeOptions\",value:function(t,e){if(e&&void 0!==e.position&&e.position<this.position)throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");return e?{mayBeLess:!0===e.mayBeLess,offset:e.offset?e.offset:0,length:e.length?e.length:t.length-(e.offset?e.offset:0),position:e.position?e.position:this.position}:{mayBeLess:!1,offset:0,length:t.length,position:this.position}}}],r&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,n,o,u,f,l,h,p}();e.AbstractTokenizer=f}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function a(t,e,r){return e=f(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,u()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function s(t){var e=\"function\"==typeof Map?new Map:void 0;return s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&c(i,r.prototype),i}(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,t)},s(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages=\"End-Of-Stream\";var l=function(t){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,r),a(this,r,[e.defaultMessages])}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&c(t,e)}(r,t),n=r,o&&i(n.prototype,o),s&&i(n,s),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,o,s}(s(Error));e.EndOfStreamError=l},function(t,e,r){(e=t.exports=r(70)).Stream=e,e.Readable=e,e.Writable=r(52),e.Duplex=r(18),e.Transform=r(74),e.PassThrough=r(153)},function(t,e,r){var n=r(2),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,r)},a.alloc=function(t,e,r){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var n=i(t);return void 0!==e?\"string\"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},a.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return n.SlowBuffer(t)}},function(t,e,r){\"use strict\";(function(e,n,i){var o=r(39);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=v;var s,u=!e.browser&&[\"v0.10\",\"v0.9.\"].indexOf(e.version.slice(0,5))>-1?n:o.nextTick;v.WritableState=y;var c=Object.create(r(27));c.inherits=r(24);var f={deprecate:r(151)},l=r(71),h=r(51).Buffer,p=(void 0!==i?i:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var d,m=r(72);function g(){}function y(t,e){s=s||r(18),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(o.nextTick(i,n),o.nextTick(A,t,e),t._writableState.errorEmitted=!0,t.emit(\"error\",n)):(i(n),t._writableState.errorEmitted=!0,t.emit(\"error\",n),A(t,e))}(t,r,n,e,i);else{var a=x(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(t,r),n?u(w,t,r,a,i):w(t,r,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(t){if(s=s||r(18),!(d.call(v,this)||this instanceof s))return new v(t);this._writableState=new y(t,this),this.writable=!0,t&&(\"function\"==typeof t.write&&(this._write=t.write),\"function\"==typeof t.writev&&(this._writev=t.writev),\"function\"==typeof t.destroy&&(this._destroy=t.destroy),\"function\"==typeof t.final&&(this._final=t.final)),l.call(this)}function b(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function w(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit(\"drain\"))}(t,e),e.pendingcb--,n(),A(t,e)}function _(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,b(t,e,!0,e.length,i,\"\",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(b(t,e,!1,e.objectMode?1:c.length,c,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final((function(r){e.pendingcb--,r&&t.emit(\"error\",r),e.prefinished=!0,t.emit(\"prefinish\"),A(t,e)}))}function A(t,e){var r=x(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||(\"function\"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(E,t,e)):(e.prefinished=!0,t.emit(\"prefinish\")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit(\"finish\"))),r}c.inherits(v,l),y.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(y.prototype,\"buffer\",{get:f.deprecate((function(){return this.getBuffer()}),\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(t){}}(),\"function\"==typeof Symbol&&Symbol.hasInstance&&\"function\"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===v&&(t&&t._writableState instanceof y)}})):d=function(t){return t instanceof this},v.prototype.pipe=function(){this.emit(\"error\",new Error(\"Cannot pipe, not readable\"))},v.prototype.write=function(t,e,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=t,h.isBuffer(n)||n instanceof p);return s&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),\"function\"==typeof e&&(r=e,e=null),s?e=\"buffer\":e||(e=i.defaultEncoding),\"function\"!=typeof r&&(r=g),i.ended?function(t,e){var r=new Error(\"write after end\");t.emit(\"error\",r),o.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError(\"May not write null values to stream\"):\"string\"==typeof r||void 0===r||e.objectMode||(a=new TypeError(\"Invalid non-string/buffer chunk\")),a&&(t.emit(\"error\",a),o.nextTick(n,a),i=!1),i}(this,i,t,r))&&(i.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||\"string\"!=typeof e||(e=h.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i=\"buffer\",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else b(t,e,!1,s,n,i,o);return u}(this,i,s,t,e,r)),a},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||_(this,t))},v.prototype.setDefaultEncoding=function(t){if(\"string\"==typeof t&&(t=t.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((t+\"\").toLowerCase())>-1))throw new TypeError(\"Unknown encoding: \"+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(v.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(t,e,r){r(new Error(\"_write() is not implemented\"))},v.prototype._writev=null,v.prototype.end=function(t,e,r){var n=this._writableState;\"function\"==typeof t?(r=t,t=null,e=null):\"function\"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,A(t,e),r&&(e.finished?o.nextTick(r):t.once(\"finish\",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,\"destroyed\",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(7),r(117).setImmediate,r(10))},function(t,e,r){\"use strict\";(function(e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(160)();function o(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function a(t){return e.Buffer&&\"function\"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=r(14),u=Object.prototype.hasOwnProperty,c=Array.prototype.slice,f=\"foo\"===function(){}.name;function l(t){return Object.prototype.toString.call(t)}function h(t){return!a(t)&&(\"function\"==typeof e.ArrayBuffer&&(\"function\"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var p=t.exports=b,d=/\\s*function\\s+([^\\(\\s]*)\\s*/;function m(t){if(s.isFunction(t)){if(f)return t.name;var e=t.toString().match(d);return e&&e[1]}}function g(t,e){return\"string\"==typeof t?t.length<e?t:t.slice(0,e):t}function y(t){if(f||!s.isFunction(t))return s.inspect(t);var e=m(t);return\"[Function\"+(e?\": \"+e:\"\")+\"]\"}function v(t,e,r,n,i){throw new p.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function b(t,e){t||v(t,!0,e,\"==\",p.ok)}function w(t,e,r,i){if(t===e)return!0;if(a(t)&&a(e))return 0===o(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&\"object\"===n(t)||null!==e&&\"object\"===n(e)){if(h(t)&&h(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===o(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var u=(i=i||{actual:[],expected:[]}).actual.indexOf(t);return-1!==u&&u===i.expected.indexOf(e)||(i.actual.push(t),i.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=_(t),o=_(e);if(i&&!o||!i&&o)return!1;if(i)return w(t=c.call(t),e=c.call(e),r);var a,u,f=A(t),l=A(e);if(f.length!==l.length)return!1;for(f.sort(),l.sort(),u=f.length-1;u>=0;u--)if(f[u]!==l[u])return!1;for(u=f.length-1;u>=0;u--)if(!w(t[a=f[u]],e[a],r,n))return!1;return!0}(t,e,r,i))}return r?t===e:t==e}function _(t){return\"[object Arguments]\"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if(\"[object RegExp]\"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function E(t,e,r,n){var i;if(\"function\"!=typeof e)throw new TypeError('\"block\" argument must be a function');\"string\"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?\" (\"+r.name+\").\":\".\")+(n?\" \"+n:\".\"),t&&!i&&v(i,r,\"Missing expected exception\"+n);var o=\"string\"==typeof n,a=!t&&i&&!r;if((!t&&s.isError(i)&&o&&x(i,r)||a)&&v(i,r,\"Got unwanted exception\"+n),t&&i&&r&&!x(i,r)||!t&&i)throw i}p.AssertionError=function(t){this.name=\"AssertionError\",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return g(y(t.actual),128)+\" \"+t.operator+\" \"+g(y(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=m(e),o=n.indexOf(\"\\n\"+i);if(o>=0){var a=n.indexOf(\"\\n\",o+1);n=n.substring(a+1)}this.stack=n}}},s.inherits(p.AssertionError,Error),p.fail=v,p.ok=b,p.equal=function(t,e,r){t!=e&&v(t,e,r,\"==\",p.equal)},p.notEqual=function(t,e,r){t==e&&v(t,e,r,\"!=\",p.notEqual)},p.deepEqual=function(t,e,r){w(t,e,!1)||v(t,e,r,\"deepEqual\",p.deepEqual)},p.deepStrictEqual=function(t,e,r){w(t,e,!0)||v(t,e,r,\"deepStrictEqual\",p.deepStrictEqual)},p.notDeepEqual=function(t,e,r){w(t,e,!1)&&v(t,e,r,\"notDeepEqual\",p.notDeepEqual)},p.notDeepStrictEqual=function t(e,r,n){w(e,r,!0)&&v(e,r,n,\"notDeepStrictEqual\",t)},p.strictEqual=function(t,e,r){t!==e&&v(t,e,r,\"===\",p.strictEqual)},p.notStrictEqual=function(t,e,r){t===e&&v(t,e,r,\"!==\",p.notStrictEqual)},p.throws=function(t,e,r){E(!0,t,e,r)},p.doesNotThrow=function(t,e,r){E(!1,t,e,r)},p.ifError=function(t){if(t)throw t},p.strict=i((function t(e,r){e||v(e,!0,r,\"==\",t)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var A=Object.keys||function(t){var e=[];for(var r in t)u.call(t,r)&&e.push(r);return e}}).call(this,r(10))},function(t,e,r){\"use strict\";var n=r(172);t.exports=Function.prototype.bind||n},function(t,e,r){\"use strict\";var n=r(29)(\"%Object.defineProperty%\",!0)||!1;if(n)try{n({},\"a\",{value:1})}catch(t){n=!1}t.exports=n},function(t,e,r){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,r){\"use strict\";(function(e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}var o=function(){function t(){if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),0===arguments.length)throw new Error(\"constructor requires parameters\");var n=arguments.length<=0?void 0:arguments[0];if(null!==n&&\"object\"===r(n))if(n instanceof t){var i=n.bitmap;this.bitmap={width:i.width,height:i.height,data:new e(i.width*i.height*4)},i.data.copy(this.bitmap.data)}else{if(!(n.width&&n.height&&n.data))throw new Error(\"unrecognized constructor parameters\");this.bitmap=n}else{if(\"number\"!=typeof n||\"number\"!=typeof(arguments.length<=1?void 0:arguments[1]))throw new Error(\"unrecognized constructor parameters\");var o=n,a=arguments.length<=1?void 0:arguments[1],s=arguments.length<=2?void 0:arguments[2];this.bitmap={width:o,height:a},e.isBuffer(s)?this.bitmap.data=s:(this.bitmap.data=new e(o*a*4),\"number\"==typeof s&&this.fillRGBA(s))}}return i=t,(o=[{key:\"blit\",value:function(t,e,r,n,i,o,a){if(n+o>this.bitmap.width)throw new Error(\"copy exceeds width of source bitmap\");if(e+o>t.bitmap.width)throw new Error(\"copy exceeds width of target bitmap\");if(i+a>this.bitmap.height)throw new Error(\"copy exceeds height of source bitmap\");if(r+a>t.bitmap.height)throw new Erro(\"copy exceeds height of target bitmap\");for(var s=this.bitmap.data,u=t.bitmap.data,c=4*this.bitmap.width,f=4*t.bitmap.width,l=4*o,h=i*c+4*n,p=r*f+4*e;--a>=0;)s.copy(u,p,h,h+l),h+=c,p+=f;return this}},{key:\"fillRGBA\",value:function(t){for(var e=this.bitmap.data,r=4*this.bitmap.height,n=0;n<r;)e.writeUInt32BE(t,n),n+=4;for(;n<e.length;)e.copy(e,n,0,r),n+=r;return this}},{key:\"getRGBA\",value:function(t,e){var r=4*(e*this.bitmap.width+t);return this.bitmap.data.readUInt32BE(r)}},{key:\"getRGBASet\",value:function(){for(var t=new Set,e=this.bitmap.data,r=0;r<e.length;r+=4)t.add(e.readUInt32BE(r,!0));return t}},{key:\"greyscale\",value:function(){var t=this.bitmap.data;return this.scan(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){var i=Math.round(.299*t[n]+.587*t[n+1]+.114*t[n+2]);t[n]=i,t[n+1]=i,t[n+2]=i})),this}},{key:\"reframe\",value:function(e,r,n,i,o){var a,s=e<0?0:e,u=r<0?0:r,c=n+s>this.bitmap.width?this.bitmap.width-s:n,f=i+u>this.bitmap.height?this.bitmap.height-u:i,l=e<0?-e:0,h=r<0?-r:0;if(void 0===o){if(s!==e||u!=r||c!==n||f!==i)throw new GifError(\"fillRGBA required for this reframing\");a=new t(n,i)}else a=new t(n,i,o);return this.blit(a,l,h,s,u,c,f),this.bitmap=a.bitmap,this}},{key:\"scale\",value:function(t){if(1!==t){if(!Number.isInteger(t)||t<1)throw new Error(\"the scale must be an integer >= 1\");for(var r,n=this.bitmap.width,i=this.bitmap.height,o=n*t*4,a=this.bitmap.data,s=new e(i*o*t),u=0,c=0,f=0;f<i;++f){r=c;for(var l=0;l<n;++l){for(var h=a.readUInt32BE(u,!0),p=0;p<t;++p)s.writeUInt32BE(h,c),c+=4;u+=4}for(var d=1;d<t;++d)s.copy(s,c,r,c),c+=o,r+=o}return this.bitmap={width:n*t,height:i*t,data:s},this}}},{key:\"scanAllCoords\",value:function(t){for(var e=this.bitmap.width,r=this.bitmap.data.length,n=0,i=0,o=0;o<r;o+=4)t(n,i,o),++n===e&&(n=0,++i)}},{key:\"scanAllIndexes\",value:function(t){for(var e=this.bitmap.data.length,r=0;r<e;r+=4)t(r)}}])&&n(i.prototype,o),a&&n(i,a),Object.defineProperty(i,\"prototype\",{writable:!1}),i;var i,o,a}();t.exports=o}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function a(t,e,r){return e=u(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,s()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}var f=r(57),l=(r(42).GifError,function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(t=a(this,e,[].concat(i)),i[0]instanceof e){var s=i[0];t.xOffset=s.xOffset,t.yOffset=s.yOffset,t.disposalMethod=s.disposalMethod,t.delayCentisecs=s.delayCentisecs,t.interlaced=s.interlaced}else{var u=i[i.length-1],c={};\"object\"!==n(u)||u instanceof f||(c=u),t.xOffset=c.xOffset||0,t.yOffset=c.yOffset||0,t.disposalMethod=void 0!==c.disposalMethod?c.disposalMethod:e.DisposeToBackgroundColor,t.delayCentisecs=c.delayCentisecs||8,t.interlaced=c.interlaced||!1}return t}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&c(t,e)}(e,t),r=e,(o=[{key:\"getPalette\",value:function(){for(var t=new Set,e=this.bitmap.data,r=0,n=!1;r<e.length;){if(0===e[r+3])n=!0;else{var i=e.readUInt32BE(r,!0)>>8&16777215;t.add(i)}r+=4}var o=new Array(t.size),a=t.values();for(r=0;r<o.length;++r)o[r]=a.next().value;o.sort((function(t,e){return t-e}));var s=o.length;return n&&++s,{colors:o,usesTransparency:n,indexCount:s}}}])&&i(r.prototype,o),s&&i(r,s),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,o,s}(f));l.DisposeToAnything=0,l.DisposeNothing=1,l.DisposeToBackgroundColor=2,l.DisposeToPrevious=3,e.GifFrame=l},function(t,e,r){\"use strict\";function n(t,e,r,n){for(var i=t[e++],o=1<<i,a=o+1,s=a+1,u=i+1,c=(1<<u)-1,f=0,l=0,h=0,p=t[e++],d=new Int32Array(4096),m=null;;){for(;f<16&&0!==p;)l|=t[e++]<<f,f+=8,1===p?p=t[e++]:--p;if(f<u)break;var g=l&c;if(l>>=u,f-=u,g!==o){if(g===a)break;for(var y=g<s?g:m,v=0,b=y;b>o;)b=d[b]>>8,++v;var w=b;if(h+v+(y!==g?1:0)>n)return;r[h++]=w;var _=h+=v;for(y!==g&&(r[h++]=w),b=y;v--;)b=d[b],r[--_]=255&b,b>>=8;null!==m&&s<4096&&(d[s++]=m<<8|w,s>=c+1&&u<12&&(++u,c=c<<1|1)),m=g}else s=a+1,c=(1<<(u=i+1))-1,m=null}return r}try{e.GifWriter=function(t,e,r,n){var i=0,o=void 0===(n=void 0===n?{}:n).loop?null:n.loop,a=void 0===n.palette?null:n.palette;if(e<=0||r<=0||e>65535||r>65535)throw new Error(\"Width/Height invalid.\");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var u=0,c=0;if(null!==a){for(var f=s(a);f>>=1;)++u;if(f=1<<u,--u,void 0!==n.background){if((c=n.background)>=f)throw new Error(\"Background index out of range.\");if(0===c)throw new Error(\"Background index explicitly passed as 0.\")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=(null!==a?128:0)|u,t[i++]=c,t[i++]=0,null!==a)for(var l=0,h=a.length;l<h;++l){var p=a[l];t[i++]=p>>16&255,t[i++]=p>>8&255,t[i++]=255&p}if(null!==o){if(o<0||o>65535)throw new Error(\"Loop count invalid.\");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,r,n,o,u,c){if(!0===d&&(--i,d=!1),c=void 0===c?{}:c,e<0||r<0||e>65535||r>65535)throw new Error(\"x/y invalid.\");if(n<=0||o<=0||n>65535||o>65535)throw new Error(\"Width/Height invalid.\");if(u.length<n*o)throw new Error(\"Not enough pixels for the frame size.\");var f=!0,l=c.palette;if(null==l&&(f=!1,l=a),null==l)throw new Error(\"Must supply either a local or global palette.\");for(var h=s(l),p=0;h>>=1;)++p;h=1<<p;var m=void 0===c.delay?0:c.delay,g=void 0===c.disposal?0:c.disposal;if(g<0||g>3)throw new Error(\"Disposal out of range.\");var y=!1,v=0;if(void 0!==c.transparent&&null!==c.transparent&&(y=!0,(v=c.transparent)<0||v>=h))throw new Error(\"Transparent color index.\");if((0!==g||y||0!==m)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=g<<2|(!0===y?1:0),t[i++]=255&m,t[i++]=m>>8&255,t[i++]=v,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===f?128|p-1:0,!0===f)for(var b=0,w=l.length;b<w;++b){var _=l[b];t[i++]=_>>16&255,t[i++]=_>>8&255,t[i++]=255&_}return i=function(t,e,r,n){t[e++]=r;var i=e++,o=1<<r,a=o-1,s=o+1,u=s+1,c=r+1,f=0,l=0;function h(r){for(;f>=r;)t[e++]=255&l,l>>=8,f-=8,e===i+256&&(t[i]=255,i=e++)}function p(t){l|=t<<f,f+=c,h(8)}var d=n[0]&a,m={};p(o);for(var g=1,y=n.length;g<y;++g){var v=n[g]&a,b=d<<8|v,w=m[b];if(void 0===w){for(l|=d<<f,f+=c;f>=8;)t[e++]=255&l,l>>=8,f-=8,e===i+256&&(t[i]=255,i=e++);4096===u?(p(o),u=s+1,c=r+1,m={}):(u>=1<<c&&++c,m[b]=u++),d=v}else d=w}return p(d),p(s),h(1),i+1===e?t[i]=0:(t[i]=e-i-1,t[e++]=0),e}(t,i,p<2?2:p,u),i},this.end=function(){return!1===d&&(t[i++]=59,d=!0),i},this.getOutputBuffer=function(){return t},this.setOutputBuffer=function(e){t=e},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(t){i=t}},e.GifReader=function(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var r=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,o=t[e++],a=o>>7,s=1<<1+(7&o);t[e++],t[e++];var u=null,c=null;a&&(u=e,c=s,e+=3*s);var f=!0,l=[],h=0,p=null,d=0,m=null;for(this.width=r,this.height=i;f&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,m=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error(\"Invalid graphics extension block.\");var g=t[e++];h=t[e++]|t[e++]<<8,p=t[e++],1&g||(p=null),d=g>>2&7,e++;break;case 254:for(;;){if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}break;default:throw new Error(\"Unknown graphic control label: 0x\"+t[e-1].toString(16))}break;case 44:var y=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,_=t[e++],x=_>>6&1,E=1<<1+(7&_),A=u,D=c,k=!1;_>>7&&(k=!0,A=e,D=E,e+=3*E);var S=e;for(e++;;){var M;if(!((M=t[e++])>=0))throw Error(\"Invalid block size\");if(0===M)break;e+=M}l.push({x:y,y:v,width:b,height:w,has_local_palette:k,palette_offset:A,palette_size:D,data_offset:S,data_length:e-S,transparent_index:p,interlaced:!!x,delay:h,disposal:d});break;case 59:f=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+t[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return m},this.frameInfo=function(t){if(t<0||t>=l.length)throw new Error(\"Frame index out of range.\");return l[t]},this.decodeAndBlitFrameBGRA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);n(t,o.data_offset,s,a);var u=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var f=o.width,l=r-f,h=f,p=4*(o.y*r+o.x),d=4*((o.y+o.height)*r+o.x),m=p,g=4*l;!0===o.interlaced&&(g+=4*r*7);for(var y=8,v=0,b=s.length;v<b;++v){var w=s[v];if(0===h&&(h=f,(m+=g)>=d&&(g=4*l+4*r*(y-1),m=p+(f+l)*(y<<1),y>>=1)),w===c)m+=4;else{var _=t[u+3*w],x=t[u+3*w+1],E=t[u+3*w+2];i[m++]=E,i[m++]=x,i[m++]=_,i[m++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);n(t,o.data_offset,s,a);var u=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var f=o.width,l=r-f,h=f,p=4*(o.y*r+o.x),d=4*((o.y+o.height)*r+o.x),m=p,g=4*l;!0===o.interlaced&&(g+=4*r*7);for(var y=8,v=0,b=s.length;v<b;++v){var w=s[v];if(0===h&&(h=f,(m+=g)>=d&&(g=4*l+4*r*(y-1),m=p+(f+l)*(y<<1),y>>=1)),w===c)m+=4;else{var _=t[u+3*w],x=t[u+3*w+1],E=t[u+3*w+2];i[m++]=_,i[m++]=x,i[m++]=E,i[m++]=255}--h}}}}catch(t){}},,function(t,e,r){var n=r(142),i=r(143);t.exports={encode:n,decode:i}},function(t,e,r){var n=r(195),i=r(196);t.exports={encode:n,decode:i}},function(t,e,r){\"use strict\";(function(t){var r={nearestNeighbor:function(t,e){for(var r=t.width,n=t.height,i=e.width,o=e.height,a=t.data,s=e.data,u=0;u<o;u++)for(var c=0;c<i;c++){var f=4*(u*i+c),l=4*(Math.floor(u*n/o)*r+Math.floor(c*r/i));s[f++]=a[l++],s[f++]=a[l++],s[f++]=a[l++],s[f++]=a[l++]}},bilinearInterpolation:function(t,e){for(var r=t.width,n=t.height,i=e.width,o=e.height,a=t.data,s=e.data,u=function(t,e,r,n,i){return e===n?r:Math.round((t-e)*i+(n-t)*r)},c=function(t,e,n,i,o,c,f,l){var h=4*(f*r+i)+e,p=4*(f*r+o)+e,d=u(n,i,a[h],o,a[p]);if(l===f)s[t+e]=d;else{p=4*(l*r+o)+e;var m=u(n,i,a[h=4*(l*r+i)+e],o,a[p]);s[t+e]=u(c,f,d,l,m)}},f=0;f<o;f++)for(var l=0;l<i;l++){var h=4*(f*i+l),p=l*r/i,d=Math.floor(p),m=Math.min(Math.ceil(p),r-1),g=f*n/o,y=Math.floor(g),v=Math.min(Math.ceil(g),n-1);c(h,0,p,d,m,g,y,v),c(h,1,p,d,m,g,y,v),c(h,2,p,d,m,g,y,v),c(h,3,p,d,m,g,y,v)}},_interpolate2D:function(e,r,n,i){for(var o=e.data,a=r.data,s=e.width,u=e.height,c=r.width,f=r.height,l=Math.max(1,Math.floor(s/c)),h=c*l,p=Math.max(1,Math.floor(u/f)),d=f*p,m=t.alloc(h*u*4),g=0;g<u;g++)for(var y=0;y<h;y++)for(var v=y*(s-1)/h,b=Math.floor(v),w=v-b,_=4*(g*s+b),x=4*(g*h+y),E=0;E<4;E++){var A=_+E,D=b>0?o[A-4]:2*o[A]-o[A+4],k=o[A],S=o[A+4],M=b<s-2?o[A+8]:2*o[A+4]-o[A];m[x+E]=i(D,k,S,M,w)}for(var C=t.alloc(h*d*4),T=0;T<d;T++)for(var O=0;O<h;O++)for(var F=T*(u-1)/d,B=Math.floor(F),I=F-B,P=4*(B*h+O),L=4*(T*h+O),N=0;N<4;N++){var j=P+N,R=B>0?m[j-4*h]:2*m[j]-m[j+4*h],z=m[j],U=m[j+4*h],G=B<u-2?m[j+8*h]:2*m[j+4*h]-m[j];C[L+N]=i(R,z,U,G,I)}var H=l*p;if(H>1)for(var q=0;q<f;q++)for(var Z=0;Z<c;Z++){for(var W=0,Y=0,X=0,$=0,V=0,J=0;J<p;J++)for(var Q=q*p+J,K=0;K<l;K++){var tt=4*(Q*h+(Z*l+K)),et=C[tt+3];et&&(W+=C[tt],Y+=C[tt+1],X+=C[tt+2],V++),$+=et}var rt=4*(q*c+Z);a[rt]=V?Math.round(W/V):0,a[rt+1]=V?Math.round(Y/V):0,a[rt+2]=V?Math.round(X/V):0,a[rt+3]=Math.round($/H)}else r.data=C},bicubicInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var o=n-r-t+e,a=t-e-o,s=r-t,u=e;return Math.max(0,Math.min(255,o*(i*i*i)+a*(i*i)+s*i+u))}))},hermiteInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var o=e,a=.5*(r-t),s=t-2.5*e+2*r-.5*n,u=.5*(n-t)+1.5*(e-r);return Math.max(0,Math.min(255,Math.round(((u*i+s)*i+a)*i+o)))}))},bezierInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){var o=1-i,a=e*o*o*o,s=3*(e+(r-t)/4)*o*o*i,u=3*(r-(n-e)/4)*o*i*i,c=r*i*i*i;return Math.max(0,Math.min(255,Math.round(a+s+u+c)))}))}};e.a=r}).call(this,r(2).Buffer)},function(t,e,r){var n=r(221),i=r(222),o=r(223),a=r(224),s=r(225),u=r(226),c=r(227);c.alea=n,c.xor128=i,c.xorwow=o,c.xorshift7=a,c.xor4096=s,c.tychei=u,t.exports=c},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.timeout=e.credentials=e.userAgent=e.header=e.json=e.form=e.query=void 0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=r(247);var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.baseUrl=e||\"\",this.middlewareId=1,this.middlewares=[]}return i(t,[{key:\"addMiddleware\",value:function(t){return t.middlewareId||(t.middlewareId=this.middlewareId++),this.middlewares.push(t),this}},{key:\"removeMiddleware\",value:function(t){return t.middlewareId?(this.middlewares[t.middlewareId]&&delete this.middlewares[t.middlewareId],this):this}},{key:\"fetch\",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(\"function\"!=typeof fetch)throw new TypeError(\"fetch() function not available\");e=n({headers:{}},e);var r=this.resolveUrl(t,e.uriParams||{}),i=[];return this.middlewares.reduce((function(t,e){return t.then((function(t){var r=e(t);return\"function\"==typeof r&&i.push(r),r&&\"function\"!=typeof r?r:t}))}),Promise.resolve({url:r,path:t,options:e})).then((function(t){return fetch(t.url,t.options)})).then((function(t){return i.reduce((function(t,e){return t.then((function(t){return e(t)||t}))}),Promise.resolve(t))}))}))},{key:\"request\",value:function(t,e){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return this.fetch(t,n({},r,{method:e}))}},{key:\"get\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"GET\",e)}},{key:\"post\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"POST\",e)}},{key:\"put\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"PUT\",e)}},{key:\"delete\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"DELETE\",e)}},{key:\"patch\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"PATCH\",e)}},{key:\"resolveUrl\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(t.toLowerCase().startsWith(\"http://\")||t.toLowerCase().startsWith(\"https://\")||t.startsWith(\"//\"))return t;var r=this.baseUrl.replace(/\\/+$/g,\"\"),n=\"\";if(t.startsWith(\"/\")){var i=r.indexOf(\"/\",r.indexOf(\"//\")+2);n=r.substr(0,-1===i?void 0:i)+t}else n=r+\"/\"+t;return n=n.replace(/\\{(\\w+)\\}/gi,(function(t,r){if(!e[r])throw new Error(\"Unknown path variable '\"+r+\"'.\");return encodeURIComponent(e[r])}))}}]),t}();e.default=a;e.query=function(){return function(t){if(t.options.query){var e=(0,o.stringify)(t.options.query);-1===t.url.indexOf(\"?\")&&(t.url=t.url.concat(\"?\")),t.url.endsWith(\"&\")||t.url.endsWith(\"?\")?t.url=t.url.concat(e):t.url=t.url.concat(\"&\",e)}}},e.form=function(){return function(t){t.options.form&&(t.options.body=(0,o.stringify)(t.options.form),t.options.headers[\"Content-Type\"]=\"application/x-www-form-urlencoded;charset=UTF-8\")}},e.json=function(){return function(t){return t.options.json&&(t.options.body=JSON.stringify(t.options.json),t.options.headers[\"Content-Type\"]=\"application/json\"),t.options.headers.Accept=\"application/json\",function(t){return-1===(t.headers.get(\"Content-Type\")||\"\").indexOf(\"json\")?t:t.json().then((function(e){return t.jsonData=e,t}))}}},e.header=function(t){return function(e){e.options.headers=n({},e.options.headers,t)}},e.userAgent=function(t){return function(e){var r=[];Object.keys(t).forEach((function(e){return r.push(e+\"/\"+t[e])})),e.options.headers[\"User-Agent\"]=r.join(\" \")}},e.credentials=function(t){return function(e){e.options.credentials=t}},e.timeout=function(t){return function(e){if(\"number\"!=typeof parseInt(t,10))throw new TypeError(\"function params not available\");var r=new Promise((function(e,r){return setTimeout(r,t,\"request timeout!\")}));return Promise.race([e,r])}}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}r.d(e,\"a\",(function(){return a}));var a=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.items=[]},(e=[{key:\"push\",value:function(t){this.items.push(t)}},{key:\"pop\",value:function(){if(this.isEmpty())throw\"empty stack\";return this.items.pop()}},{key:\"peek\",value:function(){return this.items[this.items.length-1]}},{key:\"isEmpty\",value:function(){return 0===this.items.length}},{key:\"size\",value:function(){return this.items.length}},{key:\"print\",value:function(){}}])&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}()},function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+t[e+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*u-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+p]=255&a,p+=d,a/=256,c-=8);t[r+p-d]|=128*m}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new F(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&o.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.readFile=e.writeFileSync=e.writeFile=e.read=e.open=e.close=e.stat=e.createReadStream=e.pathExists=void 0;var s=r(11);function u(){return(u=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.stat(e,(function(e,n){e?r(e):t(n)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function c(){return(c=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.close(e,(function(e){e?r(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=a(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.open(e,r,(function(e,r){e?n(e):t(r)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=a(i().mark((function t(e,r,n,o,a){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,i){s.read(e,r,n,o,a,(function(e,r,n){e?i(e):t({bytesRead:r,buffer:n})}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function h(){return(h=a(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.writeFile(e,r,(function(e){e?n(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function p(){return(p=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.readFile(e,(function(e,n){e?r(e):t(n)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.pathExists=s.existsSync,e.createReadStream=s.createReadStream,e.stat=function(t){return u.apply(this,arguments)},e.close=function(t){return c.apply(this,arguments)},e.open=function(t,e){return f.apply(this,arguments)},e.read=function(t,e,r,n,i){return l.apply(this,arguments)},e.writeFile=function(t,e){return h.apply(this,arguments)},e.writeFileSync=function(t,e){s.writeFileSync(t,e)},e.readFile=function(t){return p.apply(this,arguments)}},function(t,e){function r(t,e){switch(t){case 1:return e.nextUInt8();case 3:case 8:return e.nextUInt16();case 4:case 9:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error(\"Invalid format while decoding: \"+t)}}function n(t,e){var n,i,o=e.nextUInt16(),a=e.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(a),u=e.nextUInt32(),c=s*u;if(c>4&&(e=t.openWithOffset(e.nextUInt32())),2===a){var f=(n=e.nextString(u)).indexOf(\"\\0\");-1!==f&&(n=n.substr(0,f))}else if(7===a)n=e.nextBuffer(u);else if(0!==a)for(n=[],i=0;i<u;++i)n.push(r(a,e));return c<4&&e.skip(4-c),[o,n,a]}function i(t,e,r){var i,o,a=e.nextUInt16();for(o=0;o<a;++o)r((i=n(t,e))[0],i[1],i[2])}t.exports={IFD0:1,IFD1:2,GPSIFD:3,SubIFD:4,InteropIFD:5,parseTags:function(t,e){var r,n,o,a;try{r=function(t){if(\"Exif\\0\\0\"!==t.nextString(6))throw new Error(\"Invalid EXIF header\");var e=t.mark(),r=t.nextUInt16();if(18761===r)t.setBigEndian(!1);else{if(19789!==r)throw new Error(\"Invalid TIFF header\");t.setBigEndian(!0)}if(42!==t.nextUInt16())throw new Error(\"Invalid TIFF data\");return e}(t)}catch(t){return!1}var s=r.openWithOffset(t.nextUInt32()),u=this.IFD0;i(r,s,(function(t,r,i){switch(t){case 34853:o=r[0];break;case 34665:n=r[0];break;default:e(u,t,r,i)}}));var c=s.nextUInt32();if(0!==c){var f=r.openWithOffset(c);i(r,f,e.bind(null,this.IFD1))}if(o){var l=r.openWithOffset(o);i(r,l,e.bind(null,this.GPSIFD))}if(n){var h=r.openWithOffset(n),p=this.InteropIFD;i(r,h,(function(t,r,n){40965===t?a=r[0]:e(p,t,r,n)}))}if(a){var d=r.openWithOffset(a);i(r,d,e.bind(null,this.InteropIFD))}return!0}}},function(t,e,r){\"use strict\";(function(e,n){var i=r(39);t.exports=b;var o,a=r(146);b.ReadableState=v;r(31).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=r(71),c=r(51).Buffer,f=(void 0!==e?e:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var l=Object.create(r(27));l.inherits=r(24);var h=r(147),p=void 0;p=h&&h.debuglog?h.debuglog(\"stream\"):function(){};var d,m=r(148),g=r(72);l.inherits(b,u);var y=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function v(t,e){t=t||{};var n=e instanceof(o=o||r(18));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=r(73).StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function b(t){if(o=o||r(18),!(this instanceof b))return new b(t);this._readableState=new v(t,this),this.readable=!0,t&&(\"function\"==typeof t.read&&(this._read=t.read),\"function\"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,r,n,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,A(t)}(t,a)):(i||(o=function(t,e){var r;n=e,c.isBuffer(n)||n instanceof f||\"string\"==typeof e||void 0===e||t.objectMode||(r=new TypeError(\"Invalid non-string/buffer chunk\"));var n;return r}(a,e)),o?t.emit(\"error\",o):a.objectMode||e&&e.length>0?(\"string\"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),n?a.endEmitted?t.emit(\"error\",new Error(\"stream.unshift() after end event\")):_(t,a,e,!0):a.ended?t.emit(\"error\",new Error(\"stream.push() after EOF\")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?_(t,a,e,!1):k(t,a)):_(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function _(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit(\"data\",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&A(t)),k(t,e)}Object.defineProperty(b.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(t,e){this.push(null),e(t)},b.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:\"string\"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=c.from(t,e),e=\"\"),r=!0),w(this,t,e,!1,r)},b.prototype.unshift=function(t){return w(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return d||(d=r(73).StringDecoder),this._readableState.decoder=new d(t),this._readableState.encoding=t,this};var x=8388608;function E(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function A(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(p(\"emitReadable\",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(D,t):D(t))}function D(t){p(\"emit readable\"),t.emit(\"readable\"),T(t)}function k(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(S,t,e))}function S(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(p(\"maybeReadMore read 0\"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function M(t){p(\"readable nexttick read 0\"),t.read(0)}function C(t,e){e.reading||(p(\"resume read 0\"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit(\"resume\"),T(t),e.flowing&&!e.reading&&t.read(0)}function T(t){var e=t._readableState;for(p(\"flow\",e.flowing);e.flowing&&null!==t.read(););}function O(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(\"\"):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=c.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function F(t){var e=t._readableState;if(e.length>0)throw new Error('\"endReadable()\" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(B,e,t))}function B(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit(\"end\"))}function I(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}b.prototype.read=function(t){p(\"read\",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return p(\"read: emitReadable\",e.length,e.ended),0===e.length&&e.ended?F(this):A(this),null;if(0===(t=E(t,e))&&e.ended)return 0===e.length&&F(this),null;var n,i=e.needReadable;return p(\"need readable\",i),(0===e.length||e.length-t<e.highWaterMark)&&p(\"length less than watermark\",i=!0),e.ended||e.reading?p(\"reading or ended\",i=!1):i&&(p(\"do read\"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(r,e))),null===(n=t>0?O(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&F(this)),null!==n&&this.emit(\"data\",n),n},b.prototype._read=function(t){this.emit(\"error\",new Error(\"_read() is not implemented\"))},b.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,p(\"pipe count=%d opts=%j\",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?f:b;function c(e,n){p(\"onunpipe\"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p(\"cleanup\"),t.removeListener(\"close\",y),t.removeListener(\"finish\",v),t.removeListener(\"drain\",l),t.removeListener(\"error\",g),t.removeListener(\"unpipe\",c),r.removeListener(\"end\",f),r.removeListener(\"end\",b),r.removeListener(\"data\",m),h=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function f(){p(\"onend\"),t.end()}o.endEmitted?i.nextTick(u):r.once(\"end\",u),t.on(\"unpipe\",c);var l=function(t){return function(){var e=t._readableState;p(\"pipeOnDrain\",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,\"data\")&&(e.flowing=!0,T(t))}}(r);t.on(\"drain\",l);var h=!1;var d=!1;function m(e){p(\"ondata\"),d=!1,!1!==t.write(e)||d||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==I(o.pipes,t))&&!h&&(p(\"false write response, pause\",o.awaitDrain),o.awaitDrain++,d=!0),r.pause())}function g(e){p(\"onerror\",e),b(),t.removeListener(\"error\",g),0===s(t,\"error\")&&t.emit(\"error\",e)}function y(){t.removeListener(\"finish\",v),b()}function v(){p(\"onfinish\"),t.removeListener(\"close\",y),b()}function b(){p(\"unpipe\"),r.unpipe(t)}return r.on(\"data\",m),function(t,e,r){if(\"function\"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,\"error\",g),t.once(\"close\",y),t.once(\"finish\",v),t.emit(\"pipe\",r),o.flowing||(p(\"pipe resume\"),r.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit(\"unpipe\",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var a=I(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit(\"unpipe\",this,r)),this},b.prototype.on=function(t,e){var r=u.prototype.on.call(this,t,e);if(\"data\"===t)!1!==this._readableState.flowing&&this.resume();else if(\"readable\"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&A(this):i.nextTick(M,this))}return r},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var t=this._readableState;return t.flowing||(p(\"resume\"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(C,t,e))}(this,t)),this},b.prototype.pause=function(){return p(\"call pause flowing=%j\",this._readableState.flowing),!1!==this._readableState.flowing&&(p(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this},b.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on(\"end\",(function(){if(p(\"wrapped end\"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on(\"data\",(function(i){(p(\"wrapped data\"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&\"function\"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<y.length;o++)t.on(y[o],this.emit.bind(this,y[o]));return this._read=function(e){p(\"wrapped _read\",e),n&&(n=!1,t.resume())},this},Object.defineProperty(b.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=O}).call(this,r(10),r(7))},function(t,e,r){t.exports=r(31).EventEmitter},function(t,e,r){\"use strict\";var n=r(39);function i(t,e){t.emit(\"error\",e)}t.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,r){\"use strict\";var n=r(152).Buffer,i=n.isEncoding||function(t){switch((t=\"\"+t)&&t.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return\"utf8\";for(var e;;)switch(t){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return t;default:if(e)return;t=(\"\"+t).toLowerCase(),e=!0}}(t);if(\"string\"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error(\"Unknown encoding: \"+t);return e||t}(t),this.encoding){case\"utf16le\":this.text=u,this.end=c,e=4;break;case\"utf8\":this.fillLast=s,e=4;break;case\"base64\":this.text=f,this.end=l,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,\"�\";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,\"�\";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,\"�\"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString(\"utf16le\",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(\"utf16le\",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(\"utf16le\",0,r)}return e}function f(t,e){var r=(t.length-e)%3;return 0===r?t.toString(\"base64\",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(\"base64\",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+this.lastChar.toString(\"base64\",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):\"\"}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return\"\";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return\"\";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||\"\"},o.prototype.end=function(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+\"�\":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=a(e[n]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=a(e[n]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString(\"utf8\",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString(\"utf8\",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,r){\"use strict\";t.exports=a;var n=r(18),i=Object.create(r(27));function o(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit(\"error\",new Error(\"write callback called multiple times\"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);n.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(\"function\"==typeof t.transform&&(this._transform=t.transform),\"function\"==typeof t.flush&&(this._flush=t.flush)),this.on(\"prefinish\",s)}function s(){var t=this;\"function\"==typeof this._flush?this._flush((function(e,r){u(t,e,r)})):u(this,null,null)}function u(t,e,r){if(e)return t.emit(\"error\",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error(\"Calling transform done when ws.length != 0\");if(t._transformState.transforming)throw new Error(\"Calling transform done when still transforming\");return t.push(null)}i.inherits=r(24),i.inherits(a,n),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,r){throw new Error(\"_transform() is not implemented\")},a.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit(\"close\")}))}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=Object.prototype.toString;t.exports=function(t){var e=i.call(t),r=\"[object Arguments]\"===e;return r||(r=\"[object Array]\"!==e&&null!==t&&\"object\"===n(t)&&\"number\"==typeof t.length&&t.length>=0&&\"[object Function]\"===i.call(t.callee)),r}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}t.exports=function(){if(\"function\"!=typeof Symbol||\"function\"!=typeof Object.getOwnPropertySymbols)return!1;if(\"symbol\"===n(Symbol.iterator))return!0;var t={},e=Symbol(\"test\"),r=Object(e);if(\"string\"==typeof e)return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(e))return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if(\"function\"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if(\"function\"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(\"function\"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,r){\"use strict\";t.exports=SyntaxError},function(t,e,r){\"use strict\";var n=r(29)(\"%Object.getOwnPropertyDescriptor%\",!0);if(n)try{n([],\"length\")}catch(t){n=null}t.exports=n},function(t,e,r){\"use strict\";t.exports=function(t,e,r,n){for(var i=65535&t,o=t>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},function(t,e,r){\"use strict\";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var o=n,a=i+r;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return~t}},function(t,e,r){\"use strict\";(function(e,n){var i=r(14),o=r(38),a=t.exports=function(){o.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding=\"utf8\",this.writable=!0};i.inherits(a,o),a.prototype.read=function(t,r){this._reads.push({length:Math.abs(t),allowLess:t<0,func:r}),e.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit(\"drain\"))}.bind(this))},a.prototype.write=function(t,e){return this.writable?(r=n.isBuffer(t)?t:n.from(t,e||this._encoding),this._buffers.push(r),this._buffered+=r.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit(\"error\",new Error(\"Stream not writable\")),!1);var r},a.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},a.prototype.destroySoon=a.prototype.end,a.prototype._end=function(){this._reads.length>0&&this.emit(\"error\",new Error(\"Unexpected end of input\")),this.destroy()},a.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit(\"close\"))},a.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},a.prototype._processRead=function(t){this._reads.shift();for(var e=0,r=0,i=n.alloc(t.length);e<t.length;){var o=this._buffers[r++],a=Math.min(o.length,t.length-e);o.copy(i,e,0,a),e+=a,a!==o.length&&(this._buffers[--r]=o.slice(a))}r>0&&this._buffers.splice(0,r),this._buffered-=t.length,t.func.call(this,i)},a.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit(\"error\",t)}}}).call(this,r(7),r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(83),i=r(84);function o(t,e,r){var n=t*e;return 8!==r&&(n=Math.ceil(n/(8/r))),n}var a=t.exports=function(t,e){var r=t.width,i=t.height,a=t.interlace,s=t.bpp,u=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],a)for(var c=n.getImagePasses(r,i),f=0;f<c.length;f++)this._images.push({byteWidth:o(c[f].width,s,u),height:c[f].height,lineIndex:0});else this._images.push({byteWidth:o(r,s,u),height:i,lineIndex:0});this._xComparison=8===u?s:16===u?2*s:1};a.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},a.prototype._unFilterType1=function(t,e,r){for(var n=this._xComparison,i=n-1,o=0;o<r;o++){var a=t[1+o],s=o>i?e[o-n]:0;e[o]=a+s}},a.prototype._unFilterType2=function(t,e,r){for(var n=this._lastLine,i=0;i<r;i++){var o=t[1+i],a=n?n[i]:0;e[i]=o+a}},a.prototype._unFilterType3=function(t,e,r){for(var n=this._xComparison,i=n-1,o=this._lastLine,a=0;a<r;a++){var s=t[1+a],u=o?o[a]:0,c=a>i?e[a-n]:0,f=Math.floor((c+u)/2);e[a]=s+f}},a.prototype._unFilterType4=function(t,e,r){for(var n=this._xComparison,o=n-1,a=this._lastLine,s=0;s<r;s++){var u=t[1+s],c=a?a[s]:0,f=s>o?e[s-n]:0,l=s>o&&a?a[s-n]:0,h=i(f,c,l);e[s]=u+h}},a.prototype._reverseFilterLine=function(t){var r,n=t[0],i=this._images[this._imageIndex],o=i.byteWidth;if(0===n)r=t.slice(1,o+1);else switch(r=e.alloc(o),n){case 1:this._unFilterType1(t,r,o);break;case 2:this._unFilterType2(t,r,o);break;case 3:this._unFilterType3(t,r,o);break;case 4:this._unFilterType4(t,r,o);break;default:throw new Error(\"Unrecognised filter type - \"+n)}this.write(r),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=r,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var r=[],i=t%8,o=e%8,a=(t-i)/8,s=(e-o)/8,u=0;u<n.length;u++){for(var c=n[u],f=a*c.x.length,l=s*c.y.length,h=0;h<c.x.length&&c.x[h]<i;h++)f++;for(var p=0;p<c.y.length&&c.y[p]<o;p++)l++;f>0&&l>0&&r.push({width:f,height:l,index:u})}return r},e.getInterlaceIterator=function(t){return function(e,r,i){var o=e%n[i].x.length,a=(e-o)/n[i].x.length*8+n[i].x[o],s=r%n[i].y.length;return 4*a+((r-s)/n[i].y.length*8+n[i].y[s])*t*4}}},function(t,e,r){\"use strict\";t.exports=function(t,e,r){var n=t+e-r,i=Math.abs(n-t),o=Math.abs(n-e),a=Math.abs(n-r);return i<=o&&i<=a?t:o<=a?e:r}},function(t,e,r){\"use strict\";(function(e){var n=r(30),i=r(86),o=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[n.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[n.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[n.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[n.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[n.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[n.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};o.prototype.start=function(){this.read(n.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(t){for(var e=n.PNG_SIGNATURE,r=0;r<e.length;r++)if(t[r]!==e[r])return void this.error(new Error(\"Invalid file signature\"));this.read(8,this._parseChunkBegin.bind(this))},o.prototype._parseChunkBegin=function(t){for(var r=t.readUInt32BE(0),o=t.readUInt32BE(4),a=\"\",s=4;s<8;s++)a+=String.fromCharCode(t[s]);var u=Boolean(32&t[4]);if(this._hasIHDR||o===n.TYPE_IHDR){if(this._crc=new i,this._crc.write(e.from(a)),this._chunks[o])return this._chunks[o](r);u?this.read(r+4,this._skipChunk.bind(this)):this.error(new Error(\"Unsupported critical chunk type \"+a))}else this.error(new Error(\"Expected IHDR on beggining\"))},o.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},o.prototype._parseChunkEnd=function(t){var e=t.readInt32BE(0),r=this._crc.crc32();this._options.checkCRC&&r!==e?this.error(new Error(\"Crc error - \"+e+\" - \"+r)):this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleIHDR=function(t){this.read(t,this._parseIHDR.bind(this))},o.prototype._parseIHDR=function(t){this._crc.write(t);var e=t.readUInt32BE(0),r=t.readUInt32BE(4),i=t[8],o=t[9],a=t[10],s=t[11],u=t[12];if(8===i||4===i||2===i||1===i||16===i)if(o in n.COLORTYPE_TO_BPP_MAP)if(0===a)if(0===s)if(0===u||1===u){this._colorType=o;var c=n.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:r,depth:i,interlace:Boolean(u),palette:Boolean(o&n.COLORTYPE_PALETTE),color:Boolean(o&n.COLORTYPE_COLOR),alpha:Boolean(o&n.COLORTYPE_ALPHA),bpp:c,colorType:o}),this._handleChunkEnd()}else this.error(new Error(\"Unsupported interlace method\"));else this.error(new Error(\"Unsupported filter method\"));else this.error(new Error(\"Unsupported compression method\"));else this.error(new Error(\"Unsupported color type\"));else this.error(new Error(\"Unsupported bit depth \"+i))},o.prototype._handlePLTE=function(t){this.read(t,this._parsePLTE.bind(this))},o.prototype._parsePLTE=function(t){this._crc.write(t);for(var e=Math.floor(t.length/3),r=0;r<e;r++)this._palette.push([t[3*r],t[3*r+1],t[3*r+2],255]);this.palette(this._palette),this._handleChunkEnd()},o.prototype._handleTRNS=function(t){this.simpleTransparency(),this.read(t,this._parseTRNS.bind(this))},o.prototype._parseTRNS=function(t){if(this._crc.write(t),this._colorType===n.COLORTYPE_PALETTE_COLOR){if(0===this._palette.length)return void this.error(new Error(\"Transparency chunk must be after palette\"));if(t.length>this._palette.length)return void this.error(new Error(\"More transparent colors than palette size\"));for(var e=0;e<t.length;e++)this._palette[e][3]=t[e];this.palette(this._palette)}this._colorType===n.COLORTYPE_GRAYSCALE&&this.transColor([t.readUInt16BE(0)]),this._colorType===n.COLORTYPE_COLOR&&this.transColor([t.readUInt16BE(0),t.readUInt16BE(2),t.readUInt16BE(4)]),this._handleChunkEnd()},o.prototype._handleGAMA=function(t){this.read(t,this._parseGAMA.bind(this))},o.prototype._parseGAMA=function(t){this._crc.write(t),this.gamma(t.readUInt32BE(0)/n.GAMMA_DIVISION),this._handleChunkEnd()},o.prototype._handleIDAT=function(t){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-t,this._parseIDAT.bind(this,t))},o.prototype._parseIDAT=function(t,e){if(this._crc.write(e),this._colorType===n.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw new Error(\"Expected palette not found\");this.inflateData(e);var r=t-e.length;r>0?this._handleIDAT(r):this._handleChunkEnd()},o.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},o.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=[];!function(){for(var t=0;t<256;t++){for(var e=t,r=0;r<8;r++)1&e?e=3988292384^e>>>1:e>>>=1;n[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e<t.length;e++)this._crc=n[255&(this._crc^t[e])]^this._crc>>>8;return!0},i.prototype.crc32=function(){return~this._crc},i.crc32=function(t){for(var e=-1,r=0;r<t.length;r++)e=n[255&(e^t[r])]^e>>>8;return~e}},function(t,e,r){\"use strict\";(function(t){var n=r(83),i=[function(){},function(t,e,r,n){if(n===e.length)throw new Error(\"Ran out of data\");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=255},function(t,e,r,n){if(n+1>=e.length)throw new Error(\"Ran out of data\");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=e[n+1]},function(t,e,r,n){if(n+2>=e.length)throw new Error(\"Ran out of data\");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=255},function(t,e,r,n){if(n+3>=e.length)throw new Error(\"Ran out of data\");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=e[n+3]}],o=[function(){},function(t,e,r,n){var i=e[0];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=n},function(t,e,r){var n=e[0];t[r]=n,t[r+1]=n,t[r+2]=n,t[r+3]=e[1]},function(t,e,r,n){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=n},function(t,e,r){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=e[3]}];function a(t,e,r,n,o,a){for(var s=t.width,u=t.height,c=t.index,f=0;f<u;f++)for(var l=0;l<s;l++){var h=r(l,f,c);i[n](e,o,h,a),a+=n}return a}function s(t,e,r,n,i,a){for(var s=t.width,u=t.height,c=t.index,f=0;f<u;f++){for(var l=0;l<s;l++){var h=i.get(n),p=r(l,f,c);o[n](e,h,p,a)}i.resetAfterLine()}}e.dataToBitMap=function(e,r){var i,o,u=r.width,c=r.height,f=r.depth,l=r.bpp,h=r.interlace;8!==f&&(i=function(t,e){var r=[],n=0;function i(){if(n===t.length)throw new Error(\"Ran out of data\");var i,o,a,s,u,c,f,l,h=t[n];switch(n++,e){default:throw new Error(\"unrecognised depth\");case 16:f=t[n],n++,r.push((h<<8)+f);break;case 4:f=15&h,l=h>>4,r.push(l,f);break;case 2:u=3&h,c=h>>2&3,f=h>>4&3,l=h>>6&3,r.push(l,f,c,u);break;case 1:i=1&h,o=h>>1&1,a=h>>2&1,s=h>>3&1,u=h>>4&1,c=h>>5&1,f=h>>6&1,l=h>>7&1,r.push(l,f,c,u,s,a,o,i)}}return{get:function(t){for(;r.length<t;)i();var e=r.slice(0,t);return r=r.slice(t),e},resetAfterLine:function(){r.length=0},end:function(){if(n!==t.length)throw new Error(\"extra data found\")}}}(e,f)),o=f<=8?t.alloc(u*c*4):new Uint16Array(u*c*4);var p,d,m=Math.pow(2,f)-1,g=0;if(h)p=n.getImagePasses(u,c),d=n.getInterlaceIterator(u,c);else{var y=0;d=function(){var t=y;return y+=4,t},p=[{width:u,height:c}]}for(var v=0;v<p.length;v++)8===f?g=a(p[v],o,d,l,e,g):s(p[v],o,d,l,i,m);if(8===f){if(g!==e.length)throw new Error(\"extra data found\")}else i.end();return o}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){t.exports=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=r.depth,o=r.width,a=r.height,s=r.colorType,u=r.transColor,c=r.palette,f=t;return 3===s?function(t,e,r,n,i){for(var o=0,a=0;a<n;a++)for(var s=0;s<r;s++){var u=i[t[o]];if(!u)throw new Error(\"index \"+t[o]+\" not in palette\");for(var c=0;c<4;c++)e[o+c]=u[c];o+=4}}(t,f,o,a,c):(u&&function(t,e,r,n,i){for(var o=0,a=0;a<n;a++)for(var s=0;s<r;s++){var u=!1;if(1===i.length?i[0]===t[o]&&(u=!0):i[0]===t[o]&&i[1]===t[o+1]&&i[2]===t[o+2]&&(u=!0),u)for(var c=0;c<4;c++)e[o+c]=0;o+=4}}(t,f,o,a,u),8===i||n||(16===i&&(f=e.alloc(o*a*4)),function(t,e,r,n,i){for(var o=Math.pow(2,i)-1,a=0,s=0;s<n;s++)for(var u=0;u<r;u++){for(var c=0;c<4;c++)e[a+c]=Math.floor(255*t[a+c]/o+.5);a+=4}}(t,f,o,a,i))),f}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(30),i=r(86),o=r(188),a=r(189),s=r(28),u=t.exports=function(t){if(this._options=t,t.deflateChunkSize=t.deflateChunkSize||32768,t.deflateLevel=null!=t.deflateLevel?t.deflateLevel:9,t.deflateStrategy=null!=t.deflateStrategy?t.deflateStrategy:3,t.inputHasAlpha=null==t.inputHasAlpha||t.inputHasAlpha,t.deflateFactory=t.deflateFactory||s.createDeflate,t.bitDepth=t.bitDepth||8,t.colorType=\"number\"==typeof t.colorType?t.colorType:n.COLORTYPE_COLOR_ALPHA,t.inputColorType=\"number\"==typeof t.inputColorType?t.inputColorType:n.COLORTYPE_COLOR_ALPHA,-1===[n.COLORTYPE_GRAYSCALE,n.COLORTYPE_COLOR,n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(t.colorType))throw new Error(\"option color type:\"+t.colorType+\" is not supported at present\");if(-1===[n.COLORTYPE_GRAYSCALE,n.COLORTYPE_COLOR,n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(t.inputColorType))throw new Error(\"option input color type:\"+t.inputColorType+\" is not supported at present\");if(8!==t.bitDepth&&16!==t.bitDepth)throw new Error(\"option bit depth:\"+t.bitDepth+\" is not supported at present\")};u.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},u.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},u.prototype.filterData=function(t,e,r){var i=o(t,e,r,this._options),s=n.COLORTYPE_TO_BPP_MAP[this._options.colorType];return a(i,e,r,this._options,s)},u.prototype._packChunk=function(t,r){var n=r?r.length:0,o=e.alloc(n+12);return o.writeUInt32BE(n,0),o.writeUInt32BE(t,4),r&&r.copy(o,8),o.writeInt32BE(i.crc32(o.slice(4,o.length-4)),o.length-4),o},u.prototype.packGAMA=function(t){var r=e.alloc(4);return r.writeUInt32BE(Math.floor(t*n.GAMMA_DIVISION),0),this._packChunk(n.TYPE_gAMA,r)},u.prototype.packIHDR=function(t,r){var i=e.alloc(13);return i.writeUInt32BE(t,0),i.writeUInt32BE(r,4),i[8]=this._options.bitDepth,i[9]=this._options.colorType,i[10]=0,i[11]=0,i[12]=0,this._packChunk(n.TYPE_IHDR,i)},u.prototype.packIDAT=function(t){return this._packChunk(n.TYPE_IDAT,t)},u.prototype.packIEND=function(){return this._packChunk(n.TYPE_IEND,null)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=t.exports=function(t){this._buffer=t,this._reads=[]};n.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})},n.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}if(this._reads.length>0)throw new Error(\"There are some read requests waitng on finished stream\");if(this._buffer.length>0)throw new Error(\"unrecognised content at end of stream\")}},function(t,e,r){\"use strict\";t.exports=function(t,e,r,n){for(var i=65535&t,o=t>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},function(t,e,r){\"use strict\";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var o=n,a=i+r;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return~t}},function(t,e,r){\"use strict\";var n=r(15),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r=\"\",a=0;a<e;a++)r+=String.fromCharCode(t[a]);return r}a[254]=a[254]=1,e.string2buf=function(t){var e,r,i,o,a,s=t.length,u=0;for(o=0;o<s;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),u+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(u),a=0,o=0;a<u;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,o,s=e||t.length,c=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)c[n++]=i;else if((o=a[i])>4)c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<s;)i=i<<6|63&t[r++],o--;o>1?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return u(c,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+a[t[r]]>e?r:e}},function(t,e,r){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}var a=r(59),s=r(42),u=s.Gif,c=s.GifError;function f(){var t=r(97);return f=function(){return t},t}var l=r(58).GifFrame,h=function(){return e=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this._transparentRGB=null,\"number\"==typeof e.transparentRGB&&0!==e.transparentRGB&&(this._transparentRGBA=256*e.transparentRGB),this._testInitialBufferSize=0},r=[{key:\"decodeGif\",value:function(t){try{var e;try{e=new a.GifReader(t)}catch(t){throw new c(t)}for(var r=e.numFrames(),n=[],i={width:e.width,height:e.height,loops:e.loopCount(),usesTransparency:!1},o=0;o<r;++o){var s=this._decodeFrame(e,o,i.usesTransparency);n.push(s.frame),s.usesTransparency&&(i.usesTransparency=!0)}return Promise.resolve(new u(t,n,i))}catch(t){return Promise.reject(t)}}},{key:\"encodeGif\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{if(null===t||0===t.length)throw new c(\"there are no frames\");var r=f().getMaxDimensions(t);return(e=Object.assign({},e)).width=r.maxWidth,e.height=r.maxHeight,void 0===e.loops&&(e.loops=0),e.colorScope=e.colorScope||u.GlobalColorsPreferred,Promise.resolve(this._encodeGif(t,e))}catch(t){return Promise.reject(t)}}},{key:\"_decodeFrame\",value:function(e,r,n){var i,o;try{if(i=e.frameInfo(r),o=new t(e.width*e.height*4),e.decodeAndBlitFrameRGBA(r,o),i.width!==e.width||i.height!==e.height){if(i.y&&(o=o.slice(i.y*e.width*4)),e.width>i.width)for(var a=0;a<i.height;++a)o.copy(o,a*i.width*4,4*(i.x+a*e.width),4*(i.x+a*e.width)+4*i.width);o=o.slice(0,i.width*i.height*4)}}catch(t){throw new c(t)}var s=!1;if(null===this._transparentRGBA){if(!n)for(var u=3;u<o.length;u+=4)0===o[u]&&(s=!0,u=o.length)}else for(var f=3;f<o.length;f+=4)0===o[f]&&(o.writeUInt32BE(this._transparentRGBA,f-3),s=!0);return{frame:new l(i.width,i.height,o,{xOffset:i.x,yOffset:i.y,disposalMethod:i.disposal,interlaced:i.interlaced,delayCentisecs:i.delay}),usesTransparency:s}}},{key:\"_encodeGif\",value:function(e,r){var n;if(r.colorScope===u.LocalColorsOnly)n=f().getColorInfo(e,0);else if(!(n=f().getColorInfo(e,256)).colors){if(r.colorScope===u.GlobalColorsOnly)throw new c(\"Too many color indexes for global color table\");r.colorScope=u.LocalColorsOnly}r.usesTransparency=n.usesTransparency;var i=n.palettes;return r.colorScope===u.LocalColorsOnly?function(e,r,n,i){var o,s={loop:r.loops},f=new t(n);try{o=new a.GifWriter(f,r.width,r.height,s)}catch(t){throw new c(t)}for(var l=0;l<e.length;++l)f=v(o,l,e[l],i[l],!0);return new u(f.slice(0,o.end()),e,r)}(e,r,2e3,i):function(e,r,n,i){var o={colors:i.colors.slice(),usesTransparency:i.usesTransparency};m(o);var s,f={palette:o.colors,loop:r.loops},l=new t(n);try{s=new a.GifWriter(l,r.width,r.height,f)}catch(t){throw new c(t)}for(var h=0;h<e.length;++h)l=v(s,h,e[h],i,!1);return new u(l.slice(0,s.end()),e,r)}(e,r,2e3,n)}},{key:\"_getSizeEstimateGlobal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;var r=968,n=y(t);return e.forEach((function(t){r+=g(t,n)})),r}},{key:\"_getSizeEstimateLocal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;for(var r=200,n=0;n<e.length;++n){var i=y(t[n]);r+=g(e[n],i)}return r}}],r&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,r,n}();function p(t,e){var r=t.indexOf(e);return-1===r?null:r}function d(t,e){for(var r,n=0,i=t.length-1;n<=i;)if(t[r=Math.floor((n+i)/2)]>e)i=r-1;else{if(!(t[r]<e))return r;n=r+1}return null}function m(t){var e=t.colors;t.usesTransparency&&e.push(0);for(var r=e.length,n=2;r>n;)n<<=1;e.length=n,e.fill(0,r)}function g(t,e){var r=t.bitmap.width*t.bitmap.height;return r=Math.ceil(r*e/8),100+(r+=Math.ceil(r/255))+768}function y(t){var e=t.indexCount,r=0;for(--e;e;)++r,e>>=1;return r>0?r:1}function v(e,r,n,i,o){if(n.interlaced)throw new c(\"writing interlaced GIFs is not supported\");var a=function(e,r,n){for(var i=n.colors,o=i.length<=8?p:d,a=r.bitmap.data,s=new t(a.length/4),u=i.length,f=0,l=0;f<a.length;){if(0!==a[f+3]){var h=a.readUInt32BE(f,!0)>>8&16777215;s[l]=o(i,h)}else s[l]=u;f+=4,++l}if(n.usesTransparency){if(256===u)throw new c(\"Frame \".concat(e,\" already has 256 colors\")+\"and so can't use transparency\")}else u=null;return{buffer:s,transparentIndex:u}}(r,n,i),s={delay:n.delayCentisecs,disposal:n.disposalMethod,transparent:a.transparentIndex};o&&(m(i),s.palette=i.colors);try{for(var u,f=e.getOutputBuffer(),l=e.getOutputBufferPosition(),h=!0;h;)if(u=e.addFrame(n.xOffset,n.yOffset,n.bitmap.width,n.bitmap.height,a.buffer,s),h=!1,u>=f.length-1){var g=new t(1.5*f.length);f.copy(g),e.setOutputBuffer(g),e.setOutputBufferPosition(l),f=g,h=!0}return f}catch(t){throw new c(t)}}e.GifCodec=h}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(11),i=r(206),o=r(57),a=r(58).GifFrame,s=r(42).GifError,u=r(96).GifCodec,c=[\".jpg\",\".jpeg\",\".png\",\".bmp\"],f=new u;function l(t,e,r,n,o){var a=Array.isArray(t)?t:[t];if(o){if([\"FloydSteinberg\",\"FalseFloydSteinberg\",\"Stucki\",\"Atkinson\",\"Jarvis\",\"Burkes\",\"Sierra\",\"TwoSierra\",\"SierraLite\"].indexOf(o.ditherAlgorithm)<0)throw new Error(\"Invalid ditherAlgorithm '\".concat(o.ditherAlgorithm,\"'\"));void 0===o.serpentine&&(o.serpentine=!0),void 0===o.minimumColorDistanceToDither&&(o.minimumColorDistanceToDither=0),void 0===o.calculateErrorLikeGIMP&&(o.calculateErrorLikeGIMP=!1)}var s,u=new i.distance.Euclidean,c=new i.palette[e](u,r,n);s=o?new i.image.ErrorDiffusionArray(u,i.image.ErrorDiffusionArrayKernel[o.ditherAlgorithm],o.serpentine,o.minimumColorDistanceToDither,o.calculateErrorLikeGIMP):new i.image.NearestColor(u);var f=[];a.forEach((function(t){for(var e=t.bitmap.data,r=new ArrayBuffer(e.length),n=new Uint32Array(r),o=0,a=0;o<e.length;o+=4,++a)n[a]=e.readUInt32LE(o,!0);var s=i.utils.PointContainer.fromUint32Array(n,t.bitmap.width,t.bitmap.height);c.sample(s),f.push(s)}));for(var l=c.quantizeSync(),h=0;h<a.length;++h)for(var p=a[h].bitmap.data,d=s.quantizeSync(f[h],l).toUint32Array(),m=0,g=0;m<p.length;m+=4,++g)p.writeUInt32LE(d[g],m)}e.cloneFrames=function(t){var e=[];return t.forEach((function(t){e.push(new a(t))})),e},e.getColorInfo=function(t,e){for(var r=!1,n=[],i=0;i<t.length;++i){var o=t[i].getPalette();if(o.usesTransparency&&(r=!0),o.indexCount>256)throw new s(\"Frame \".concat(i,\" uses more than 256 color indexes\"));n.push(o)}if(0===e)return{usesTransparency:r,palettes:n};var a=new Set;n.forEach((function(t){t.colors.forEach((function(t){a.add(t)}))}));var u=a.size;if(r&&++u,e&&u>e)return{usesTransparency:r,palettes:n};for(var c=new Array(a.size),f=a.values(),l=0;l<c.length;++l)c[l]=f.next().value;return c.sort((function(t,e){return t-e})),{colors:c,indexCount:u,usesTransparency:r,palettes:n}},e.copyAsJimp=function(t,r){return e.shareAsJimp(t,new o(r))},e.getMaxDimensions=function(t){var e=0,r=0;return t.forEach((function(t){var n=t.xOffset+t.bitmap.width;n>e&&(e=n);var i=t.yOffset+t.bitmap.height;i>r&&(r=i)})),{maxWidth:e,maxHeight:r}},e.quantizeDekker=function(t,e,r){l(t,\"NeuQuantFloat\",e=e||256,0,r)},e.quantizeSorokin=function(t,e,r,n){var i;switch(e=e||256,r=r||\"min-pop\"){case\"min-pop\":i=2;break;case\"top-pop\":i=1;break;default:throw new Error(\"Invalid quantizeSorokin histogram '\".concat(r,\"'\"))}l(t,\"RGBQuant\",e,i,n)},e.quantizeWu=function(t,e,r,n){if(e=e||256,(r=r||5)<1||r>8)throw new Error(\"Invalid quantization quality\");l(t,\"WuQuant\",e,r,n)},e.read=function(e,r){return r=r||f,t.isBuffer(e)?r.decodeGif(e):(i=e,new Promise((function(t,e){n.readFile(i,(function(r,n){return r?e(r):t(n)}))}))).then((function(t){return r.decodeGif(t)}));var i},e.shareAsJimp=function(t,e){var r=new t(e.bitmap.width,e.bitmap.height,0);return r.bitmap.data=e.bitmap.data,r},e.write=function(t,e,r,i){i=i||f;var o=t.match(/\\.[a-zA-Z]+$/);if(null!==o&&c.includes(o[0].toLowerCase()))throw new Error(\"GIF '\".concat(t,\"' has an unexpected suffix\"));return i.encodeGif(e,r).then((function(e){return function(t,e){return new Promise((function(r,i){n.writeFile(t,e,(function(t){return t?i(t):r()}))}))}(t,e.buffer).then((function(){return e}))}))}}).call(this,r(2).Buffer)},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t};var r=Object.prototype.hasOwnProperty},function(t,e,r){function n(t,e,r){this._queue=[],this._priorities=[],this._sorting=\"desc\",this._init(t,e,r)}n.prototype.insert=function(t,e){for(var r=this._queue.length,n=r;n--;){var i=this._priorities[n];\"desc\"===this._sorting?e>i&&(r=n):e<i&&(r=n)}this._insertAt(t,e,r)},n.prototype.remove=function(t){for(var e=this._queue.length;e--;){if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}}},n.prototype.forEach=function(t){this._queue.forEach(t)},n.prototype.getElements=function(){return this._queue},n.prototype.getElementPriority=function(t){return this._priorities[t]},n.prototype.getPriorities=function(){return this._priorities},n.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,r=this._queue.length;e<r;e++)t.push([this._queue[e],this._priorities[e]]);return t},n.prototype._init=function(t,e,r){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error(\"Arrays must have the same length\");for(var n=0;n<t.length;n++)this.insert(t[n],e[n])}r&&(this._sorting=r)},n.prototype._insertAt=function(t,e,r){this._queue.length===r?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(r,0,t),this._priorities.splice(r,0,e))},t.exports&&(t.exports=n)},function(t,e){function r(e){return t.exports=r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){\"use strict\";function n(t,e,r,o,a,s){for(var u,c,f,l,h=Math.max(e-1,0),p=Math.max(r-1,0),d=Math.min(e+1,o-1),m=Math.min(r+1,a-1),g=4*(r*o+e),y=0,v=0,b=0,w=0,_=0,x=h;x<=d;x++)for(var E=p;E<=m;E++)if(x!==e||E!==r){var A=i(t,t,g,4*(E*o+x),!0);if(0===A?y++:A<0?b++:A>0&&v++,y>2)return!1;s&&(A<w&&(w=A,u=x,c=E),A>_&&(_=A,f=x,l=E))}return!s||0!==b&&0!==v&&(!n(t,u,c,o,a)&&!n(s,u,c,o,a)||!n(t,f,l,o,a)&&!n(s,f,l,o,a))}function i(t,e,r,n,i){var c=t[r+3]/255,f=e[n+3]/255,l=u(t[r+0],c),h=u(t[r+1],c),p=u(t[r+2],c),d=u(e[n+0],f),m=u(e[n+1],f),g=u(e[n+2],f),y=o(l,h,p)-o(d,m,g);if(i)return y;var v=a(l,h,p)-a(d,m,g),b=s(l,h,p)-s(d,m,g);return.5053*y*y+.299*v*v+.1957*b*b}function o(t,e,r){return.29889531*t+.58662247*e+.11448223*r}function a(t,e,r){return.59597799*t-.2741761*e-.32180189*r}function s(t,e,r){return.21147017*t-.52261711*e+.31114694*r}function u(t,e){return 255+(t-255)*e}function c(t,e,r,n,i){t[e+0]=r,t[e+1]=n,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,r,a,s,f){f||(f={});for(var l=void 0===f.threshold?.1:f.threshold,h=35215*l*l,p=0,d=0;d<s;d++)for(var m=0;m<a;m++){var g=4*(d*a+m);if(i(t,e,g,g)>h)f.includeAA||!n(t,m,d,a,s,e)&&!n(e,m,d,a,s,t)?(r&&c(r,g,255,0,0),p++):r&&c(r,g,255,255,0);else if(r){var y=u((w=void 0,_=void 0,x=void 0,E=void 0,w=(v=t)[(b=g)+3]/255,_=u(v[b+0],w),x=u(v[b+1],w),E=u(v[b+2],w),o(_,x,E)),.1);c(r,g,y,y,y)}}var v,b,w,_,x,E;return p}},function(t,e,r){\"use strict\";r(123);var n=[\"url\"];function i(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}e.a=function(t,e){var r=t.url,o=i(t,n);fetch(r,o).then((function(t){if(t.ok)return t.arrayBuffer().catch((function(t){throw new Error(\"Response is not a buffer for url \".concat(r,\". Error: \").concat(t.message))}));throw new Error(\"HTTP Status \".concat(t.status,\" for url \").concat(r))})).then((function(t){return e(null,t)})).catch((function(t){return e(t)}))}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new F(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&o.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}var a=r(125),s=r(131);function u(){var t;return t=i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.fromFile(e);case 2:return r=t.sent,t.prev=3,t.next=6,s.fromTokenizer(r);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])})),u=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))},u.apply(this,arguments)}var c={fromFile:function(t){return u.apply(this,arguments)}};Object.assign(c,s),Object.defineProperty(c,\"extensions\",{get:function(){return s.extensions}}),Object.defineProperty(c,\"mimeTypes\",{get:function(){return s.mimeTypes}}),t.exports=c},function(t,e,r){var n=r(135);t.exports={create:function(t,e){if(t instanceof(e=e||(0,eval)(\"this\")).ArrayBuffer){var i=r(140);return new n(new i(t,0,t.byteLength,!0,e))}var o=r(141);return new n(new o(t,0,t.length,!0))}}},function(t,e,r){\"use strict\";(function(t){var n=r(36),i=r.n(n);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function a(t,e,r){var n;return n=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=\"image/tiff\";e.a=function(){return{mime:a({},s,[\"tiff\",\"tif\"]),constants:{MIME_TIFF:s},decoders:a({},s,(function(e){var r=i.a.decode(e),n=r[0];r.forEach((function(t){i.a.decodeImage(e,t)}));var o=i.a.toRGBA8(n);return{data:t.from(o),width:n.t256[0],height:n.t257[0]}})),encoders:a({},s,(function(e){var r=i.a.encodeImage(e.bitmap.data,e.bitmap.width,e.bitmap.height);return t.from(r)}))}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(59),i=r.n(n),o=r(37);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e,r){var n;return n=function(t,e){if(\"object\"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==a(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=\"image/gif\";e.a=function(){return{mime:s({},u,[\"gif\"]),constants:{MIME_GIF:u},decoders:s({},u,(function(e){var r=new i.a.GifReader(e),n=t.alloc(r.width*r.height*4);return r.decodeAndBlitFrameRGBA(0,n),{data:n,width:r.width,height:r.height}})),encoders:s({},u,(function(t){var e=new o.BitmapImage(t.bitmap);o.GifUtil.quantizeDekker(e,256);var r=new o.GifFrame(e);return(new o.GifCodec).encodeGif([r],{}).then((function(t){return t.buffer}))}))}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(32),i=r.n(n),o=r(0);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e,r,n){for(var i=[0,0,0],o=(e.length-1)/2,a=0;a<e.length;a+=1)for(var s=0;s<e[a].length;s+=1){var u=t.getPixelIndex(r+a-o,n+s-o);i[0]+=t.bitmap.data[u]*e[a][s],i[1]+=t.bitmap.data[u+1]*e[a][s],i[2]+=t.bitmap.data[u+2]*e[a][s]}return i}var c=function(t){return null!=t};function f(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){var n=parseInt(.2126*this.bitmap.data[r]+.7152*this.bitmap.data[r+1]+.0722*this.bitmap.data[r+2],10);this.bitmap.data[r]=n,this.bitmap.data[r+1]=n,this.bitmap.data[r+2]=n})),Object(o.a)(t)&&t.call(this,null,this),this}function l(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(r/100)+t.r,g:(e.g-t.g)*(r/100)+t.g,b:(e.b-t.b)*(r/100)+t.b}}function h(t,e){var r=this;return t&&Array.isArray(t)?(t=t.map((function(t){return\"xor\"!==t.apply&&\"mix\"!==t.apply||(t.params[0]=i()(t.params[0]).toRgb()),t})),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(n,s,u){var c={r:r.bitmap.data[u],g:r.bitmap.data[u+1],b:r.bitmap.data[u+2]},f=function(t,e){return r.constructor.limit255(c[t]+e)};t.forEach((function(t){if(\"mix\"===t.apply)c=l(c,t.params[0],t.params[1]);else if(\"tint\"===t.apply)c=l(c,{r:255,g:255,b:255},t.params[0]);else if(\"shade\"===t.apply)c=l(c,{r:0,g:0,b:0},t.params[0]);else if(\"xor\"===t.apply)c={r:c.r^t.params[0].r,g:c.g^t.params[0].g,b:c.b^t.params[0].b};else if(\"red\"===t.apply)c.r=f(\"r\",t.params[0]);else if(\"green\"===t.apply)c.g=f(\"g\",t.params[0]);else if(\"blue\"===t.apply)c.b=f(\"b\",t.params[0]);else{var n;if(\"hue\"===t.apply&&(t.apply=\"spin\"),!(c=i()(c))[t.apply])return o.d.call(r,\"action \"+t.apply+\" not supported\",e);c=(n=c)[t.apply].apply(n,a(t.params)).toRgb()}})),r.bitmap.data[u]=c.r,r.bitmap.data[u+1]=c.g,r.bitmap.data[u+2]=c.b})),Object(o.a)(e)&&e.call(this,null,this),this):o.d.call(this,\"actions must be an array\",e)}Object.freeze({LIGHTEN:\"lighten\",BRIGHTEN:\"brighten\",DARKEN:\"darken\",DESATURATE:\"desaturate\",SATURATE:\"saturate\",GREYSCALE:\"greyscale\",SPIN:\"spin\",HUE:\"hue\",MIX:\"mix\",TINT:\"tint\",SHADE:\"shade\",XOR:\"xor\",RED:\"red\",GREEN:\"green\",BLUE:\"blue\"});e.a=function(){return{brightness:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"val must be numbers\",e):t<-1||t>1?o.d.call(this,\"val must be a number between -1 and +1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t<0?(this.bitmap.data[n]*=1+t,this.bitmap.data[n+1]*=1+t,this.bitmap.data[n+2]*=1+t):(this.bitmap.data[n]+=(255-this.bitmap.data[n])*t,this.bitmap.data[n+1]+=(255-this.bitmap.data[n+1])*t,this.bitmap.data[n+2]+=(255-this.bitmap.data[n+2])*t)})),Object(o.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if(\"number\"!=typeof t)return o.d.call(this,\"val must be numbers\",e);if(t<-1||t>1)return o.d.call(this,\"val must be a number between -1 and +1\",e);var r=(t+1)/(1-t);function n(t){return(t=Math.floor(r*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=n(this.bitmap.data[r]),this.bitmap.data[r+1]=n(this.bitmap.data[r+1]),this.bitmap.data[r+2]=n(this.bitmap.data[r+2])})),Object(o.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"n must be numbers\",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){this.bitmap.data[n]=Math.floor(this.bitmap.data[n]/255*(t-1))/(t-1)*255,this.bitmap.data[n+1]=Math.floor(this.bitmap.data[n+1]/255*(t-1))/(t-1)*255,this.bitmap.data[n+2]=Math.floor(this.bitmap.data[n+2]/255*(t-1))/(t-1)*255})),Object(o.a)(e)&&e.call(this,null,this),this)},greyscale:f,grayscale:f,opacity:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"f must be a number\",e):t<0||t>1?o.d.call(this,\"f must be a number from 0 to 1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){var i=this.bitmap.data[n+3]*t;this.bitmap.data[n+3]=i})),Object(o.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){var n=this.bitmap.data[r],i=this.bitmap.data[r+1],o=this.bitmap.data[r+2];o=.272*(n=.393*n+.769*i+.189*o)+.534*(i=.349*n+.686*i+.168*o)+.131*o,this.bitmap.data[r]=n<255?n:255,this.bitmap.data[r+1]=i<255?i:255,this.bitmap.data[r+2]=o<255?o:255})),Object(o.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"f must be a number\",e):t<0||t>1?o.d.call(this,\"f must be a number from 0 to 1\",e):(this.opacity(1-t),Object(o.a)(e)&&e.call(this,null,this),this)},convolution:function(e,r,n){\"function\"==typeof r&&void 0===n&&(n=r,r=null),r||(r=this.constructor.EDGE_EXTEND);var i,a,s,u,c,f,l,h,p,d,m=t.from(this.bitmap.data),g=e.length,y=e[0].length,v=Math.floor(g/2),b=Math.floor(y/2),w=-v,_=-b;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,n,o){u=0,s=0,a=0;for(var g=w;g<=v;g++)for(var y=_;y<=b;y++)h=t+y,p=n+g,i=e[g+v][y+b],-1===(d=this.getPixelIndex(h,p,r))?(l=0,f=0,c=0):(c=this.bitmap.data[d+0],f=this.bitmap.data[d+1],l=this.bitmap.data[d+2]),a+=i*c,s+=i*f,u+=i*l;a<0&&(a=0),s<0&&(s=0),u<0&&(u=0),a>255&&(a=255),s>255&&(s=255),u>255&&(u=255),m[o+0]=a,m[o+1]=s,m[o+2]=u})),this.bitmap.data=m,Object(o.a)(n)&&n.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r+3]=255})),Object(o.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,r,n,i,a){if(\"function\"==typeof e)a=e,i=null,n=null,r=null,e=null;else{if(\"number\"!=typeof t)return o.d.call(this,\"size must be a number\",a);if(c(e)&&\"number\"!=typeof e)return o.d.call(this,\"x must be a number\",a);if(c(r)&&\"number\"!=typeof r)return o.d.call(this,\"y must be a number\",a);if(c(n)&&\"number\"!=typeof n)return o.d.call(this,\"w must be a number\",a);if(c(i)&&\"number\"!=typeof i)return o.d.call(this,\"h must be a number\",a)}var s=[[1/16,2/16,1/16],[2/16,.25,2/16],[1/16,2/16,1/16]];e=e||0,r=r||0,n=c(n)?n:this.bitmap.width-e,i=c(i)?i:this.bitmap.height-r;var f=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){e=t*Math.floor(e/t),r=t*Math.floor(r/t);var i=u(f,s,e,r);this.bitmap.data[n]=i[0],this.bitmap.data[n+1]=i[1],this.bitmap.data[n+2]=i[2]})),Object(o.a)(a)&&a.call(this,null,this),this},convolute:function(t,e,r,n,i,a){if(!Array.isArray(t))return o.d.call(this,\"the kernel must be an array\",a);if(\"function\"==typeof e)a=e,e=null,r=null,n=null,i=null;else{if(c(e)&&\"number\"!=typeof e)return o.d.call(this,\"x must be a number\",a);if(c(r)&&\"number\"!=typeof r)return o.d.call(this,\"y must be a number\",a);if(c(n)&&\"number\"!=typeof n)return o.d.call(this,\"w must be a number\",a);if(c(i)&&\"number\"!=typeof i)return o.d.call(this,\"h must be a number\",a)}e=c(e)?e:0,r=c(r)?r:0,n=c(n)?n:this.bitmap.width-e,i=c(i)?i:this.bitmap.height-r;var s=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){var i=u(s,t,e,r);this.bitmap.data[n]=this.constructor.limit255(i[0]),this.bitmap.data[n+1]=this.constructor.limit255(i[1]),this.bitmap.data[n+2]=this.constructor.limit255(i[2])})),Object(o.a)(a)&&a.call(this,null,this),this},color:h,colour:h}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){r.d(e,\"a\",(function(){return o}));var n=r(0);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function o(e){return e(\"crop\",(function(e,r,i,o,a){if(\"number\"!=typeof e||\"number\"!=typeof r)return n.d.call(this,\"x and y must be numbers\",a);if(\"number\"!=typeof i||\"number\"!=typeof o)return n.d.call(this,\"w and h must be numbers\",a);if(e=Math.round(e),r=Math.round(r),i=Math.round(i),o=Math.round(o),0===e&&i===this.bitmap.width){var s=i*r+e<<2,u=s+(o*i<<2);this.bitmap.data=this.bitmap.data.slice(s,u)}else{var c=t.allocUnsafe(i*o*4),f=0;this.scanQuiet(e,r,i,o,(function(t,e,r){var n=this.bitmap.data.readUInt32BE(r,!0);c.writeUInt32BE(n,f,!0),f+=4})),this.bitmap.data=c}return this.bitmap.width=i,this.bitmap.height=o,Object(n.a)(a)&&a.call(this,null,this),this})),{class:{autocrop:function(){for(var t,e=this.bitmap.width,r=this.bitmap.height,o=0,a=2e-4,s=!0,u=!1,c={north:!1,south:!1,east:!1,west:!1},f=arguments.length,l=new Array(f),h=0;h<f;h++)l[h]=arguments[h];for(var p=0,d=l.length;p<d;p++)if(\"number\"==typeof l[p]&&(a=l[p]),\"boolean\"==typeof l[p]&&(s=l[p]),\"function\"==typeof l[p]&&(t=l[p]),\"object\"===i(l[p])){var m=l[p];void 0!==m.tolerance&&(a=m.tolerance),void 0!==m.cropOnlyFrames&&(s=m.cropOnlyFrames),void 0!==m.cropSymmetric&&(u=m.cropSymmetric),void 0!==m.leaveBorder&&(o=m.leaveBorder),void 0!==m.ignoreSides&&(c=m.ignoreSides)}var g=this.getPixelColor(0,0),y=this.constructor.intToRGBA(g),v=0,b=0,w=0,_=0;if(g=this.getPixelColor(0,0),!c.north)t:for(var x=0;x<r-1;x++){for(var E=0;E<e;E++){var A=this.getPixelColor(E,x),D=this.constructor.intToRGBA(A);if(this.constructor.colorDiff(y,D)>a)break t}v++}if(g=this.getPixelColor(e,0),!c.west)t:for(var k=0;k<e-1;k++){for(var S=0+v;S<r;S++){var M=this.getPixelColor(k,S),C=this.constructor.intToRGBA(M);if(this.constructor.colorDiff(y,C)>a)break t}_++}if(g=this.getPixelColor(0,r),!c.south)t:for(var T=r-1;T>=v+1;T--){for(var O=e-b-1;O>=0;O--){var F=this.getPixelColor(O,T),B=this.constructor.intToRGBA(F);if(this.constructor.colorDiff(y,B)>a)break t}w++}if(g=this.getPixelColor(e,r),!c.east)t:for(var I=e-1;I>=0+_+1;I--){for(var P=r-1;P>=0+v;P--){var L=this.getPixelColor(I,P),N=this.constructor.intToRGBA(L);if(this.constructor.colorDiff(y,N)>a)break t}b++}if(_-=o,b-=o,v-=o,w-=o,u){var j=Math.min(b,_),R=Math.min(v,w);_=j,b=j,v=R,w=R}var z=e-((_=_>=0?_:0)+(b=b>=0?b:0)),U=r-((w=w>=0?w:0)+(v=v>=0?v:0));return(s?0!==b&&0!==v&&0!==_&&0!==w:0!==b||0!==v||0!==_||0!==w)&&this.crop(_,v,z,U),Object(n.a)(t)&&t.call(this,null,this),this}}}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(0);function i(e,r,i){if(\"boolean\"!=typeof e||\"boolean\"!=typeof r)return n.d.call(this,\"horizontal and vertical must be Booleans\",i);var o=t.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,n,i){var a=e?this.bitmap.width-1-t:t,s=r?this.bitmap.height-1-n:n,u=this.bitmap.width*s+a<<2,c=this.bitmap.data.readUInt32BE(i);o.writeUInt32BE(c,u)})),this.bitmap.data=t.from(o),Object(n.a)(i)&&i.call(this,null,this),this}e.a=function(){return{flip:i,mirror:i}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t,n){var i=r(6),o=r.n(i),a=r(111),s=r.n(a),u=r(0),c=r(17);function f(t){return f=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},f(t)}function l(t,e,r,n,i){if(i.width>0&&i.height>0){var o=e.pages[i.page];t.blit(o,r+i.xoffset,n+i.yoffset,i.x,i.y,i.width,i.height)}return t}function h(t,e,r,n,i){for(var o=0;o<n.length;o++){var a=void 0;a=t.chars[n[o]]?n[o]:/\\s/.test(n[o])?\"\":\"?\";var s=t.chars[a]||{},u=t.kernings[a];l(this,t,e,r,s||{}),e+=(u&&u[n[o+1]]?u[n[o+1]]:0)+(s.xadvance||i)}}var p=t.env.DIRNAME||\"\".concat(n,\"/../\");e.a=function(){return{constants:{measureText:c.a,measureTextHeight:c.b,FONT_SANS_8_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt\"),FONT_SANS_10_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt\"),FONT_SANS_12_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt\"),FONT_SANS_14_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt\"),FONT_SANS_16_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt\"),FONT_SANS_32_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt\"),FONT_SANS_64_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt\"),FONT_SANS_128_BLACK:o.a.join(p,\"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt\"),FONT_SANS_8_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt\"),FONT_SANS_16_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt\"),FONT_SANS_32_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt\"),FONT_SANS_64_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt\"),FONT_SANS_128_WHITE:o.a.join(p,\"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt\"),loadFont:function(t,e){var r=this;return\"string\"!=typeof t?u.d.call(this,\"file must be a string\",e):new Promise((function(n,i){e=e||function(t,e){t?i(t):n(e)},s()(t,(function(n,i){var a={},s={};if(n)return u.d.call(r,n,e);for(var c=0;c<i.chars.length;c++)a[String.fromCharCode(i.chars[c].id)]=i.chars[c];for(var f=0;f<i.kernings.length;f++){var l=String.fromCharCode(i.kernings[f].first);s[l]=s[l]||{},s[l][String.fromCharCode(i.kernings[f].second)]=i.kernings[f].amount}(function(t,e,r){var n=r.map((function(r){return t.read(e+\"/\"+r)}));return Promise.all(n)})(r,o.a.dirname(t),i.pages).then((function(t){e(null,{chars:a,kernings:s,pages:t,common:i.common,info:i.info})}))}))}))}},class:{print:function(t,e,r,n,i,o,a){var s,l,p=this;if(\"function\"==typeof i&&void 0===a&&(a=i,i=1/0),void 0===i&&(i=1/0),\"function\"==typeof o&&void 0===a&&(a=o,o=1/0),void 0===o&&(o=1/0),\"object\"!==f(t))return u.d.call(this,\"font must be a Jimp loadFont\",a);if(\"number\"!=typeof e||\"number\"!=typeof r||\"number\"!=typeof i)return u.d.call(this,\"x, y and maxWidth must be numbers\",a);if(\"number\"!=typeof i)return u.d.call(this,\"maxWidth must be a number\",a);if(\"number\"!=typeof o)return u.d.call(this,\"maxHeight must be a number\",a);\"object\"===f(n)&&null!==n.text&&void 0!==n.text?(s=n.alignmentX||this.constructor.HORIZONTAL_ALIGN_LEFT,l=n.alignmentY||this.constructor.VERTICAL_ALIGN_TOP,n=n.text):(s=this.constructor.HORIZONTAL_ALIGN_LEFT,l=this.constructor.VERTICAL_ALIGN_TOP,n=n.toString());o!==1/0&&l===this.constructor.VERTICAL_ALIGN_BOTTOM?r+=o-Object(c.b)(t,n,i):o!==1/0&&l===this.constructor.VERTICAL_ALIGN_MIDDLE&&(r+=o/2-Object(c.b)(t,n,i)/2);var d=Object.entries(t.chars)[0][1].xadvance,m=Object(c.c)(t,n,i),g=m.lines,y=m.longestLine;return g.forEach((function(n){var o=n.join(\" \"),a=function(t,e,r,n,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(n-Object(c.a)(e,r))/2:n-Object(c.a)(e,r)}(p.constructor,t,o,i,s);h.call(p,t,e+a,r,o,d),r+=t.common.lineHeight})),Object(u.a)(a)&&a.call(this,null,this,{x:e+y,y:r}),this}}}}}).call(this,r(7),\"/\")},function(t,e,r){(function(e){var n=r(207),i=function(){},o=r(211),a=r(212),s=r(215),u=r(216),c=r(98),f=self.XMLHttpRequest&&\"withCredentials\"in new XMLHttpRequest;t.exports=function(t,r){r=\"function\"==typeof r?r:i,\"string\"==typeof t?t={uri:t}:t||(t={}),t.binary&&(t=function(t){if(f)return c(t,{responseType:\"arraybuffer\"});if(void 0===self.XMLHttpRequest)throw new Error(\"your browser does not support XHR loading\");var e=new self.XMLHttpRequest;return e.overrideMimeType(\"text/plain; charset=x-user-defined\"),c({xhr:e},t)}(t)),n(t,(function(n,c,f){if(n)return r(n);if(!/^2/.test(c.statusCode))return r(new Error(\"http status code: \"+c.statusCode));if(!f)return r(new Error(\"no body result\"));var l,h,p=!1;if(l=f,\"[object ArrayBuffer]\"===Object.prototype.toString.call(l)){var d=new Uint8Array(f);f=e.from(d,\"binary\")}u(f)&&(p=!0,\"string\"==typeof f&&(f=e.from(f,\"binary\"))),p||(e.isBuffer(f)&&(f=f.toString(t.encoding)),f=f.trim());try{var m=c.headers[\"content-type\"];h=p?s(f):/json/.test(m)||\"{\"===f.charAt(0)?JSON.parse(f):/xml/.test(m)||\"<\"===f.charAt(0)?a(f):o(f)}catch(t){r(new Error(\"error parsing font \"+t.message)),r=i}r(null,h)}))}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(0),i=r(113),o=r(63);e.a=function(){return{constants:{RESIZE_NEAREST_NEIGHBOR:\"nearestNeighbor\",RESIZE_BILINEAR:\"bilinearInterpolation\",RESIZE_BICUBIC:\"bicubicInterpolation\",RESIZE_HERMITE:\"hermiteInterpolation\",RESIZE_BEZIER:\"bezierInterpolation\"},class:{resize:function(e,r,a,s){if(\"number\"!=typeof e||\"number\"!=typeof r)return n.d.call(this,\"w and h must be numbers\",s);if(\"function\"==typeof a&&void 0===s&&(s=a,a=null),e===this.constructor.AUTO&&r===this.constructor.AUTO)return n.d.call(this,\"w and h cannot both be set to auto\",s);if(e===this.constructor.AUTO&&(e=this.bitmap.width*(r/this.bitmap.height)),r===this.constructor.AUTO&&(r=this.bitmap.height*(e/this.bitmap.width)),e<0||r<0)return n.d.call(this,\"w and h must be positive numbers\",s);if(e=Math.round(e)||1,r=Math.round(r)||1,\"function\"==typeof o.a[a]){var u={data:t.alloc(e*r*4),width:e,height:r};o.a[a](this.bitmap,u),this.bitmap=u}else{var c=this,f=new i.a(this.bitmap.width,this.bitmap.height,e,r,!0,!0,(function(n){c.bitmap.data=t.from(n),c.bitmap.width=e,c.bitmap.height=r}));f.resize(this.bitmap.data)}return Object(n.a)(s)&&s.call(this,null,this),this}}}}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t,e,r,n,i,o,a){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(r)||0),this.targetHeight=Math.abs(Math.floor(n)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(o),this.resizeCallback=\"function\"==typeof a?a:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}n.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error(\"Invalid settings specified for the resizer.\");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var r,n,i=e?4:3,o=this.ratioWeightWidthPass,a=this.widthBuffer,s=0,u=0,c=0,f=0,l=0;for(r=0;s<1/3;r+=i,s+=o)for(u=r,c=0;u<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u]=t[c],a[u+1]=t[c+1],a[u+2]=t[c+2],e&&(a[u+3]=t[c+3]);for(s-=1/3,n=this.widthOriginal-1;s<n;r+=i,s+=o)for(f=1-(l=s%1),u=r,c=Math.floor(s)*i;u<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u+0]=t[c+0]*f+t[c+i+0]*l,a[u+1]=t[c+1]*f+t[c+i+1]*l,a[u+2]=t[c+2]*f+t[c+i+2]*l,e&&(a[u+3]=t[c+3]*f+t[c+i+3]*l);for(n=this.originalWidthMultipliedByChannels-i;r<this.targetWidthMultipliedByChannels;r+=i)for(u=r,c=n;u<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u]=t[c],a[u+1]=t[c+1],a[u+2]=t[c+2],e&&(a[u+3]=t[c+3]);return a},n.prototype._resizeWidthRGBChannels=function(t,e){var r=e?4:3,n=this.ratioWeightWidthPass,i=1/n,o=this.originalWidthMultipliedByChannels-r+1,a=this.targetWidthMultipliedByChannels-r+1,s=this.outputWidthWorkBench,u=this.widthBuffer,c=this.outputWidthWorkBenchOpaquePixelsCount,f=0,l=0,h=0,p=0,d=0,m=0,g=0,y=1,v=0,b=0,w=0,_=0;do{for(d=0;d<this.originalHeightMultipliedByChannels;)s[d++]=0,s[d++]=0,s[d++]=0,e&&(s[d++]=0,c[d/r-1]=0);f=n;do{for(l=1+h-p,y=Math.min(f,l),d=0,m=h;d<this.originalHeightMultipliedByChannels;m+=o)v=t[m],b=t[++m],w=t[++m],_=e?t[++m]:255,s[d++]+=(_?v:0)*y,s[d++]+=(_?b:0)*y,s[d++]+=(_?w:0)*y,e&&(s[d++]+=_*y,c[d/r-1]+=_?y:0);if(!(f>=l)){p+=f;break}p=h+=r,f-=l}while(f>0&&h<this.originalWidthMultipliedByChannels);for(d=0,m=g;d<this.originalHeightMultipliedByChannels;m+=a)f=e?c[d/r]:1,y=e?f?1/f:0:i,u[m]=s[d++]*y,u[++m]=s[d++]*y,u[++m]=s[d++]*y,e&&(u[++m]=s[d++]*i);g+=r}while(g<this.targetWidthMultipliedByChannels);return u},n.prototype._resizeHeightRGBChannels=function(t,e){var r=this.ratioWeightHeightPass,n=1/r,i=this.outputHeightWorkBench,o=this.heightBuffer,a=this.outputHeightWorkBenchOpaquePixelsCount,s=0,u=0,c=0,f=0,l=0,h=0,p=0,d=1,m=0,g=0,y=0,v=0;do{for(l=0;l<this.targetWidthMultipliedByChannels;)i[l++]=0,i[l++]=0,i[l++]=0,e&&(i[l++]=0,a[l/4-1]=0);s=r;do{for(u=1+c-f,d=Math.min(s,u),p=c,l=0;l<this.targetWidthMultipliedByChannels;)m=t[p++],g=t[p++],y=t[p++],v=e?t[p++]:255,i[l++]+=(v?m:0)*d,i[l++]+=(v?g:0)*d,i[l++]+=(v?y:0)*d,e&&(i[l++]+=v*d,a[l/4-1]+=v?d:0);if(!(s>=u)){f+=s;break}f=c=p,s-=u}while(s>0&&c<this.widthPassResultSize);for(l=0;l<this.targetWidthMultipliedByChannels;)s=e?a[l/4]:1,d=e?s?1/s:0:n,o[h++]=Math.round(i[l++]*d),o[h++]=Math.round(i[l++]*d),o[h++]=Math.round(i[l++]*d),e&&(o[h++]=Math.round(i[l++]*n))}while(h<this.finalResultSize);return o},n.prototype.resizeWidthInterpolatedRGB=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!1)},n.prototype.resizeWidthInterpolatedRGBA=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!0)},n.prototype.resizeWidthRGB=function(t){return this._resizeWidthRGBChannels(t,!1)},n.prototype.resizeWidthRGBA=function(t){return this._resizeWidthRGBChannels(t,!0)},n.prototype.resizeHeightInterpolated=function(t){for(var e,r=this.ratioWeightHeightPass,n=this.heightBuffer,i=0,o=0,a=0,s=0,u=0,c=0,f=0;i<1/3;i+=r)for(a=0;a<this.targetWidthMultipliedByChannels;)n[o++]=Math.round(t[a++]);for(i-=1/3,e=this.heightOriginal-1;i<e;i+=r)for(c=1-(f=i%1),u=(s=Math.floor(i)*this.targetWidthMultipliedByChannels)+this.targetWidthMultipliedByChannels,a=0;a<this.targetWidthMultipliedByChannels;++a)n[o++]=Math.round(t[s++]*c+t[u++]*f);for(;o<this.finalResultSize;)for(a=0,s=e*this.targetWidthMultipliedByChannels;a<this.targetWidthMultipliedByChannels;++a)n[o++]=Math.round(t[s++]);return n},n.prototype.resizeHeightRGB=function(t){return this._resizeHeightRGBChannels(t,!1)},n.prototype.resizeHeightRGBA=function(t){return this._resizeHeightRGBChannels(t,!0)},n.prototype.resize=function(t){this.resizeCallback(this.resizeHeight(this.resizeWidth(t)))},n.prototype.bypassResizer=function(t){return t},n.prototype.initializeFirstPassBuffers=function(t){this.widthBuffer=this.generateFloatBuffer(this.widthPassResultSize),t||(this.outputWidthWorkBench=this.generateFloatBuffer(this.originalHeightMultipliedByChannels),this.colorChannels>3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},e.a=n},function(t,e,r){\"use strict\";(function(t){var n=r(0);function i(e){if(Math.abs(e)%90!=0)throw new Error(\"Unsupported matrix rotation degree\");if(e%=360,0!==Math.abs(e)){var r,n=this.bitmap.width,i=this.bitmap.height;switch(e){case 90:case-270:r=90;break;case 180:case-180:r=180;break;case 270:case-90:r=-90;break;default:throw new Error(\"Unsupported matrix rotation degree\")}for(var o=180===r?n:i,a=180===r?i:n,s=t.alloc(this.bitmap.data.length),u=m(n),c=m(o),f=0;f<n;f++)for(var l=0;l<i;l++){var h=u(f,l),p=this.bitmap.data.readUInt32BE(h),d=void 0;switch(r){case 90:d=c(l,n-f-1);break;case-90:d=c(i-l-1,f);break;case 180:d=c(n-f-1,i-l-1);break;default:throw new Error(\"Unsupported matrix rotation angle\")}s.writeUInt32BE(p,d)}this.bitmap.data=s,this.bitmap.width=o,this.bitmap.height=a}function m(t,e){return function(e,r){return r*t+e<<2}}}function o(e,r){var n=(e%=360)*Math.PI/180,i=Math.cos(n),o=Math.sin(n),a=this.bitmap.width,s=this.bitmap.height;if(!0===r||\"string\"==typeof r){(a=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*o))+1)%2!=0&&a++,(s=Math.ceil(Math.abs(this.bitmap.width*o)+Math.abs(this.bitmap.height*i))+1)%2!=0&&s++;var u=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)}));var c=Math.max(a,s,this.bitmap.width,this.bitmap.height);this.resize(c,c,r),this.blit(u,this.bitmap.width/2-u.bitmap.width/2,this.bitmap.height/2-u.bitmap.height/2)}var f=this.bitmap.width,l=this.bitmap.height,h=t.alloc(this.bitmap.data.length);function p(t,e){return function(r,n){return{x:r+t,y:n+e}}}for(var d=p(-f/2,-l/2),m=p(f/2+.5,l/2+.5),g=1;g<=l;g++)for(var y=1;y<=f;y++){var v=d(y,g),b=m(i*v.x-o*v.y,i*v.y+o*v.x),w=f*(g-1)+y-1<<2;if(b.x>=0&&b.x<f&&b.y>=0&&b.y<l){var _=f*(0|b.y)+b.x<<2,x=this.bitmap.data.readUInt32BE(_);h.writeUInt32BE(x,w)}else h.writeUInt32BE(this._background,w)}if(this.bitmap.data=h,!0===r||\"string\"==typeof r){var E=f/2-a/2,A=l/2-s/2;this.crop(E,A,a,s)}}e.a=function(){return{rotate:function(t,e,r){return null==e&&(e=!0),\"function\"==typeof e&&void 0===r&&(r=e,e=!0),\"number\"!=typeof t?n.d.call(this,\"deg must be a number\",r):\"boolean\"!=typeof e&&\"string\"!=typeof e?n.d.call(this,\"mode must be a boolean or a string\",r):(t%90==0&&(e||this.bitmap.width===this.bitmap.height||t%180==0)?i.call(this,t):o.call(this,t,e,r),Object(n.a)(r)&&r.call(this,null,this),this)}}}}).call(this,r(2).Buffer)},function(t,e,r){t.exports&&(t.exports={DBSCAN:r(218),KMEANS:r(219),OPTICS:r(220),PriorityQueue:r(99)})},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return y}));var n={};r.r(n),r.d(n,\"srcOver\",(function(){return a})),r.d(n,\"dstOver\",(function(){return s})),r.d(n,\"multiply\",(function(){return u})),r.d(n,\"add\",(function(){return c})),r.d(n,\"screen\",(function(){return f})),r.d(n,\"overlay\",(function(){return l})),r.d(n,\"darken\",(function(){return h})),r.d(n,\"lighten\",(function(){return p})),r.d(n,\"hardLight\",(function(){return d})),r.d(n,\"difference\",(function(){return m})),r.d(n,\"exclusion\",(function(){return g}));var i=r(0),o=r(20);function a(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/n,g:(t.g*t.a+e.g*e.a*(1-t.a))/n,b:(t.b*t.a+e.b*e.a*(1-t.a))/n,a:n}}function s(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/n,g:(e.g*e.a+t.g*t.a*(1-e.a))/n,b:(e.b*e.a+t.b*t.a*(1-e.a))/n,a:n}}function u(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/n,g:(o*u+o*(1-e.a)+u*(1-t.a))/n,b:(a*c+a*(1-e.a)+c*(1-t.a))/n,a:n}}function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a;return{r:(i+e.r*e.a)/n,g:(o+e.g*e.a)/n,b:(a+e.b*e.a)/n,a:n}}function f(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/n,g:(o*e.a+u*t.a-o*u+o*(1-e.a)+u*(1-t.a))/n,b:(a*e.a+c*t.a-a*c+a*(1-e.a)+c*(1-t.a))/n,a:n}}function l(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*u<=e.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/n,b:(2*c<=e.a?2*a*c+a*(1-e.a)+c*(1-t.a):a*(1+e.a)+c*(1+t.a)-2*c*a-e.a*t.a)/n,a:n}}function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.min(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/n,b:(Math.min(a*e.a,c*t.a)+a*(1-e.a)+c*(1-t.a))/n,a:n}}function p(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.max(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/n,b:(Math.max(a*e.a,c*t.a)+a*(1-e.a)+c*(1-t.a))/n,a:n}}function d(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*o<=t.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/n,b:(2*a<=t.a?2*a*c+a*(1-e.a)+c*(1-t.a):a*(1+e.a)+c*(1+t.a)-2*c*a-e.a*t.a)/n,a:n}}function m(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/n,g:(o+u-2*Math.min(o*e.a,u*t.a))/n,b:(a+c-2*Math.min(a*e.a,c*t.a))/n,a:n}}function g(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/n,g:(o*e.a+u*t.a-2*o*u+o*(1-e.a)+u*(1-t.a))/n,b:(a*e.a+c*t.a-2*a*c+a*(1-e.a)+c*(1-t.a))/n,a:n}}function y(t,e,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0;if(\"function\"==typeof a&&(s=a,a={}),!(t instanceof this.constructor))return i.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof r)return i.d.call(this,\"x and y must be numbers\",s);var u=a,c=u.mode,f=u.opacitySource,l=u.opacityDest;c||(c=o.BLEND_SOURCE_OVER),(\"number\"!=typeof f||f<0||f>1)&&(f=1),(\"number\"!=typeof l||l<0||l>1)&&(l=1);var h=n[c];e=Math.round(e),r=Math.round(r);var p=this;return 1!==l&&p.opacity(l),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,i){var a=p.getPixelIndex(e+t,r+n,o.EDGE_CROP);if(-1!==a){var s=h({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:p.bitmap.data[a+0]/255,g:p.bitmap.data[a+1]/255,b:p.bitmap.data[a+2]/255,a:p.bitmap.data[a+3]/255},f);p.bitmap.data[a+0]=this.constructor.limit255(255*s.r),p.bitmap.data[a+1]=this.constructor.limit255(255*s.g),p.bitmap.data[a+2]=this.constructor.limit255(255*s.b),p.bitmap.data[a+3]=this.constructor.limit255(255*s.a)}})),Object(i.a)(s)&&s.call(this,null,this),this}},function(t,e,r){(function(t){var n=void 0!==t&&t||\"undefined\"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r(150),e.setImmediate=\"undefined\"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate=\"undefined\"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(10))},,,function(t,e,r){\"use strict\";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=u(t),a=n[0],s=n[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),f=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(c(t,s,s+a>u?u:s+a));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+\"==\")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+\"=\"));return o.join(\"\")};for(var n=[],i=[],o=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,a=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",s=0;s<64;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=t.indexOf(\"=\");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var i,o,a=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join(\"\")}i[\"-\".charCodeAt(0)]=62,i[\"_\".charCodeAt(0)]=63},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==r.call(t)}},function(t,e,r){\"use strict\";function n(t,e){if(!(t&&e&&t.length&&e.length))throw new Error(\"Bad alphabet\");this.srcAlphabet=t,this.dstAlphabet=e}n.prototype.convert=function(t){var e,r,n,i={},o=this.srcAlphabet.length,a=this.dstAlphabet.length,s=t.length,u=\"string\"==typeof t?\"\":[];if(!this.isValid(t))throw new Error('Number \"'+t+'\" contains of non-alphabetic digits ('+this.srcAlphabet+\")\");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e<s;e++)i[e]=this.srcAlphabet.indexOf(t[e]);do{for(r=0,n=0,e=0;e<s;e++)(r=r*o+i[e])>=a?(i[n++]=parseInt(r/a,10),r%=a):n>0&&(i[n++]=0);s=n,u=this.dstAlphabet.slice(r,r+1).concat(u)}while(0!==n);return u},n.prototype.isValid=function(t){for(var e=0;e<t.length;++e)if(-1===this.srcAlphabet.indexOf(t[e]))return!1;return!0},t.exports=n},function(t,e,r){r(124),t.exports=self.fetch.bind(self)},function(t,e,r){\"use strict\";r.r(e),function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}r.d(e,\"Headers\",(function(){return l})),r.d(e,\"Request\",(function(){return v})),r.d(e,\"Response\",(function(){return w})),r.d(e,\"DOMException\",(function(){return x})),r.d(e,\"fetch\",(function(){return E}));var i=\"undefined\"!=typeof globalThis&&globalThis||\"undefined\"!=typeof self&&self||void 0!==t&&t||{},o={searchParams:\"URLSearchParams\"in i,iterable:\"Symbol\"in i&&\"iterator\"in Symbol,blob:\"FileReader\"in i&&\"Blob\"in i&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:\"FormData\"in i,arrayBuffer:\"ArrayBuffer\"in i};if(o.arrayBuffer)var a=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if(\"string\"!=typeof t&&(t=String(t)),/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(t)||\"\"===t)throw new TypeError('Invalid character in header field name: \"'+t+'\"');return t.toLowerCase()}function c(t){return\"string\"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError(\"Headers constructor: expected name/value pair to be length 2, found\"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError(\"Already read\")):void(t.bodyUsed=!0)}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function d(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?\"string\"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=\"\"),this.headers.get(\"content-type\")||(\"string\"==typeof t?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},o.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=h(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(o.blob)return this.blob().then(d);throw new Error(\"could not read as ArrayBuffer\")},this.text=function(){var t,e,r,n,i,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=p(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=n?n[1]:\"utf-8\",e.readAsText(t,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=u(t),e=c(e);var r=this.map[t];this.map[t]=r?r+\", \"+e:e},l.prototype.delete=function(t){delete this.map[u(t)]},l.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},l.prototype.set=function(t,e){this.map[u(t)]=c(e)},l.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),f(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),f(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),f(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var y=[\"CONNECT\",\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"PATCH\",\"POST\",\"PUT\",\"TRACE\"];function v(t,e){if(!(this instanceof v))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError(\"Already read\");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||\"same-origin\",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(r=e.method||this.method||\"GET\",n=r.toUpperCase(),y.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if(\"AbortController\"in i)return(new AbortController).signal}(),this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&o)throw new TypeError(\"Body not allowed for GET or HEAD requests\");if(this._initBody(o),!(\"GET\"!==this.method&&\"HEAD\"!==this.method||\"no-store\"!==e.cache&&\"no-cache\"!==e.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,\"$1_=\"+(new Date).getTime());else{this.url+=(/\\?/.test(this.url)?\"&\":\"?\")+\"_=\"+(new Date).getTime()}}}function b(t){var e=new FormData;return t.trim().split(\"&\").forEach((function(t){if(t){var r=t.split(\"=\"),n=r.shift().replace(/\\+/g,\" \"),i=r.join(\"=\").replace(/\\+/g,\" \");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type=\"default\",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError(\"Failed to construct 'Response': The status provided (0) is outside the range [200, 599].\");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?\"\":\"\"+e.statusText,this.headers=new l(e.headers),this.url=e.url||\"\",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},g.call(v.prototype),g.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:200,statusText:\"\"});return t.ok=!1,t.status=0,t.type=\"error\",t};var _=[301,302,303,307,308];w.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError(\"Invalid status code\");return new w(null,{status:e,headers:{location:t}})};var x=i.DOMException;try{new x}catch(t){(x=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}function E(t,e){return new Promise((function(r,a){var s=new v(t,e);if(s.signal&&s.signal.aborted)return a(new x(\"Aborted\",\"AbortError\"));var f=new XMLHttpRequest;function h(){f.abort()}if(f.onload=function(){var t,e,n={statusText:f.statusText,headers:(t=f.getAllResponseHeaders()||\"\",e=new l,t.replace(/\\r?\\n[\\t ]+/g,\" \").split(\"\\r\").map((function(t){return 0===t.indexOf(\"\\n\")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(\":\"),n=r.shift().trim();if(n){var i=r.join(\":\").trim();try{e.append(n,i)}catch(t){t.message}}})),e)};0===s.url.indexOf(\"file://\")&&(f.status<200||f.status>599)?n.status=200:n.status=f.status,n.url=\"responseURL\"in f?f.responseURL:n.headers.get(\"X-Request-URL\");var i=\"response\"in f?f.response:f.responseText;setTimeout((function(){r(new w(i,n))}),0)},f.onerror=function(){setTimeout((function(){a(new TypeError(\"Network request failed\"))}),0)},f.ontimeout=function(){setTimeout((function(){a(new TypeError(\"Network request timed out\"))}),0)},f.onabort=function(){setTimeout((function(){a(new x(\"Aborted\",\"AbortError\"))}),0)},f.open(s.method,function(t){try{return\"\"===t&&i.location.href?i.location.href:t}catch(e){return t}}(s.url),!0),\"include\"===s.credentials?f.withCredentials=!0:\"omit\"===s.credentials&&(f.withCredentials=!1),\"responseType\"in f&&(o.blob?f.responseType=\"blob\":o.arrayBuffer&&(f.responseType=\"arraybuffer\")),e&&\"object\"===n(e.headers)&&!(e.headers instanceof l||i.Headers&&e.headers instanceof i.Headers)){var p=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){p.push(u(t)),f.setRequestHeader(t,c(e.headers[t]))})),s.headers.forEach((function(t,e){-1===p.indexOf(e)&&f.setRequestHeader(e,t)}))}else s.headers.forEach((function(t,e){f.setRequestHeader(e,t)}));s.signal&&(s.signal.addEventListener(\"abort\",h),f.onreadystatechange=function(){4===f.readyState&&s.signal.removeEventListener(\"abort\",h)}),f.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,i.fetch||(i.fetch=E,i.Headers=l,i.Request=v,i.Response=w)}.call(this,r(10))},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new F(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&o.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromStream=e.fromBuffer=e.EndOfStreamError=e.fromFile=void 0;var a=r(68),s=r(47),u=r(130);Object.defineProperty(e,\"fromFile\",{enumerable:!0,get:function(){return u.fromFile}});var c=r(47);function f(){var t;return t=i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=r||{},!e.path){t.next=7;break}return t.next=4,a.stat(e.path);case 4:n=t.sent,r.path=e.path,r.size=n.size;case 7:return t.abrupt(\"return\",s.fromStream(e,r));case 8:case\"end\":return t.stop()}}),t)})),f=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))},f.apply(this,arguments)}Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return c.EndOfStreamError}}),Object.defineProperty(e,\"fromBuffer\",{enumerable:!0,get:function(){return c.fromBuffer}}),e.fromStream=function(t,e){return f.apply(this,arguments)}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new F(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&o.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function c(t,e,r){return e=l(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,f()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.ReadStreamTokenizer=void 0;var p=r(48),d=r(26),m=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=c(this,e,[r])).streamReader=new d.StreamReader(t),n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(e,t),r=e,n=[{key:\"getFileInfo\",value:(p=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",this.fileInfo);case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return p.apply(this,arguments)})},{key:\"readBuffer\",value:(l=a(i().mark((function t(e,r){var n,o,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),!((o=n.position-this.position)>0)){t.next=8;break}return t.next=5,this.ignore(o);case 5:return t.abrupt(\"return\",this.readBuffer(e,r));case 8:if(!(o<0)){t.next=10;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 10:if(0!==n.length){t.next=12;break}return t.abrupt(\"return\",0);case 12:return t.next=14,this.streamReader.read(e,n.offset,n.length);case 14:if(a=t.sent,this.position+=a,r&&r.mayBeLess||!(a<n.length)){t.next=18;break}throw new d.EndOfStreamError;case 18:return t.abrupt(\"return\",a);case 19:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:\"peekBuffer\",value:(f=a(i().mark((function t(e,r){var n,o,a,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),o=0,!n.position){t.next=15;break}if(!((a=n.position-this.position)>0)){t.next=13;break}return s=new Uint8Array(n.length+a),t.next=8,this.peekBuffer(s,{mayBeLess:n.mayBeLess});case 8:return o=t.sent,e.set(s.subarray(a),n.offset),t.abrupt(\"return\",o-a);case 13:if(!(a<0)){t.next=15;break}throw new Error(\"Cannot peek from a negative offset in a stream\");case 15:if(!(n.length>0)){t.next=29;break}return t.prev=16,t.next=19,this.streamReader.peek(e,n.offset,n.length);case 19:o=t.sent,t.next=27;break;case 22:if(t.prev=22,t.t0=t.catch(16),!(r&&r.mayBeLess&&t.t0 instanceof d.EndOfStreamError)){t.next=26;break}return t.abrupt(\"return\",0);case 26:throw t.t0;case 27:if(n.mayBeLess||!(o<n.length)){t.next=29;break}throw new d.EndOfStreamError;case 29:return t.abrupt(\"return\",o);case 30:case\"end\":return t.stop()}}),t,this,[[16,22]])}))),function(t,e){return f.apply(this,arguments)})},{key:\"ignore\",value:(u=a(i().mark((function t(e){var r,n,o,a,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Math.min(256e3,e),n=new Uint8Array(r),o=0;case 3:if(!(o<e)){t.next=13;break}return a=e-o,t.next=7,this.readBuffer(n,{length:Math.min(r,a)});case 7:if(!((s=t.sent)<0)){t.next=10;break}return t.abrupt(\"return\",s);case 10:o+=s,t.next=3;break;case 13:return t.abrupt(\"return\",o);case 14:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})}],n&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,o,u,f,l,p}(p.AbstractTokenizer);e.ReadStreamTokenizer=m},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new F(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&o.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var c=r(49),f=r(128),l=r(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return l.EndOfStreamError}});var h=function(){return t=function t(e){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error(\"Expected an instance of stream.Readable\");this.s.once(\"end\",(function(){return r.reject(new c.EndOfStreamError)})),this.s.once(\"error\",(function(t){return r.reject(t)})),this.s.once(\"close\",(function(){return r.reject(new Error(\"Stream closed\"))}))},e=[{key:\"peek\",value:(u=a(i().mark((function t(e,r,n){var o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.read(e,r,n);case 2:return o=t.sent,this.peekQueue.push(e.subarray(r,r+o)),t.abrupt(\"return\",o);case 5:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return u.apply(this,arguments)})},{key:\"read\",value:(o=a(i().mark((function t(e,r,n){var o,a,s,u,f,l;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n){t.next=2;break}return t.abrupt(\"return\",0);case 2:if(0!==this.peekQueue.length||!this.endOfStream){t.next=4;break}throw new c.EndOfStreamError;case 4:o=n,a=0;case 6:if(!(this.peekQueue.length>0&&o>0)){t.next=17;break}if(s=this.peekQueue.pop()){t.next=10;break}throw new Error(\"peekData should be defined\");case 10:u=Math.min(s.length,o),e.set(s.subarray(0,u),r+a),a+=u,o-=u,u<s.length&&this.peekQueue.push(s.subarray(u)),t.next=6;break;case 17:if(!(o>0)||this.endOfStream){t.next=28;break}return f=Math.min(o,1048576),t.next=21,this.readFromStream(e,r+a,f);case 21:if(l=t.sent,a+=l,!(l<f)){t.next=25;break}return t.abrupt(\"break\",28);case 25:o-=l,t.next=17;break;case 28:return t.abrupt(\"return\",a);case 29:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})},{key:\"readFromStream\",value:(n=a(i().mark((function t(e,r,n){var o,a,s=this;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=this.s.read(n))){t.next=6;break}return e.set(o,r),t.abrupt(\"return\",o.length);case 6:return a={buffer:e,offset:r,length:n,deferred:new f.Deferred},this.deferred=a.deferred,this.s.once(\"readable\",(function(){s.readDeferred(a)})),t.abrupt(\"return\",a.deferred.promise);case 10:case\"end\":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:\"readDeferred\",value:function(t){var e=this,r=this.s.read(t.length);r?(t.buffer.set(r,t.offset),t.deferred.resolve(r.length),this.deferred=null):this.s.once(\"readable\",(function(){e.readDeferred(t)}))}},{key:\"reject\",value:function(t){this.endOfStream=!0,this.deferred&&(this.deferred.reject(t),this.deferred=null)}}],e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,o,u}();e.StreamReader=h},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function o(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function a(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Deferred=void 0;var s=o((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.resolve=function(){return null},this.reject=function(){return null},this.promise=new Promise((function(t,r){e.reject=r,e.resolve=t}))}));e.Deferred=s},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new F(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&o.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function c(t,e,r){return e=l(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,f()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.BufferTokenizer=void 0;var p=r(26),d=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=c(this,e,[r])).uint8Array=t,n.fileInfo.size=n.fileInfo.size?n.fileInfo.size:t.length,n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(e,t),r=e,n=[{key:\"readBuffer\",value:(l=a(i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r||!r.position){t.next=4;break}if(!(r.position<this.position)){t.next=3;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 3:this.position=r.position;case 4:return t.next=6,this.peekBuffer(e,r);case 6:return n=t.sent,this.position+=n,t.abrupt(\"return\",n);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:\"peekBuffer\",value:(f=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),o=Math.min(this.uint8Array.length-n.position,n.length),n.mayBeLess||!(o<n.length)){t.next=6;break}throw new p.EndOfStreamError;case 6:return e.set(this.uint8Array.subarray(n.position,n.position+o),n.offset),t.abrupt(\"return\",o);case 8:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return f.apply(this,arguments)})},{key:\"close\",value:(u=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})}],n&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,o,u,f,l}(r(48).AbstractTokenizer);e.BufferTokenizer=d},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new F(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&o.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}function c(t,e,r){return e=l(e),function(t,e){if(e&&(\"object\"===n(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,f()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromFile=e.FileTokenizer=void 0;var p=r(48),d=r(26),m=r(68),g=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=c(this,e,[r])).fd=t,n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(e,t),r=e,n=[{key:\"readBuffer\",value:(l=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),this.position=n.position,t.next=4,m.read(this.fd,e,n.offset,n.length,n.position);case 4:if(o=t.sent,this.position+=o.bytesRead,!(o.bytesRead<n.length)||r&&r.mayBeLess){t.next=8;break}throw new d.EndOfStreamError;case 8:return t.abrupt(\"return\",o.bytesRead);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:\"peekBuffer\",value:(f=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),t.next=3,m.read(this.fd,e,n.offset,n.length,n.position);case 3:if(o=t.sent,n.mayBeLess||!(o.bytesRead<n.length)){t.next=6;break}throw new d.EndOfStreamError;case 6:return t.abrupt(\"return\",o.bytesRead);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return f.apply(this,arguments)})},{key:\"close\",value:(u=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",m.close(this.fd));case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})}],n&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,o,u,f,l}(p.AbstractTokenizer);function y(){return(y=a(i().mark((function t(e){var r,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m.stat(e);case 2:if((r=t.sent).isFile){t.next=5;break}throw new Error(\"File not a file: \".concat(e));case 5:return t.next=7,m.open(e,\"r\");case 7:return n=t.sent,t.abrupt(\"return\",new g(n,{path:e,size:r.size}));case 9:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.FileTokenizer=g,e.fromFile=function(t){return y.apply(this,arguments)}},function(module,exports,__webpack_require__){\"use strict\";(function(Buffer){function _typeof(t){return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_typeof(t)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),s=new T(n||[]);return i(a,\"_invoke\",{value:k(t,r,s)}),a}function l(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",g={};function y(){}function v(){}function b(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(O([])));x&&x!==r&&n.call(x,a)&&(w=x);var E=b.prototype=y.prototype=Object.create(w);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==_typeof(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function k(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=l(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=l(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function O(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(_typeof(e)+\" is not iterable\")}return v.prototype=b,i(E,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:v,configurable:!0}),v.displayName=c(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===v||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},A(D.prototype),c(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new D(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(E),c(E,u,\"Generator\"),c(E,a,(function(){return this})),c(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=O,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;C(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function _iterableToArrayLimit(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if(\"string\"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_toPrimitive(t,\"string\");return\"symbol\"==_typeof(e)?e:e+\"\"}function _toPrimitive(t,e){if(\"object\"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=_typeof(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}function asyncGeneratorStep(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){asyncGeneratorStep(o,n,i,a,s,\"next\",t)}function s(t){asyncGeneratorStep(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}var Token=__webpack_require__(132),strtok3=__webpack_require__(47),_require=__webpack_require__(133),stringToBytes=_require.stringToBytes,tarHeaderChecksumMatches=_require.tarHeaderChecksumMatches,uint32SyncSafeToken=_require.uint32SyncSafeToken,supported=__webpack_require__(134),minimumBytes=4100;function fromStream(t){return _fromStream.apply(this,arguments)}function _fromStream(){return _fromStream=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,strtok3.fromStream(e);case 2:return r=t.sent,t.prev=3,t.next=6,fromTokenizer(r);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])}))),_fromStream.apply(this,arguments)}function fromBuffer(t){return _fromBuffer.apply(this,arguments)}function _fromBuffer(){return(_fromBuffer=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)){t.next=2;break}throw new TypeError(\"Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `\".concat(_typeof(e),\"`\"));case 2:if((r=e instanceof Buffer?e:Buffer.from(e))&&r.length>1){t.next=5;break}return t.abrupt(\"return\");case 5:return n=strtok3.fromBuffer(r),t.abrupt(\"return\",fromTokenizer(n));case 7:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function _check(t,e,r){r=_objectSpread({offset:0},r);var n,i=_createForOfIteratorHelper(e.entries());try{for(i.s();!(n=i.n()).done;){var o=_slicedToArray(n.value,2),a=o[0],s=o[1];if(r.mask){if(s!==(r.mask[a]&t[a+r.offset]))return!1}else if(s!==t[a+r.offset])return!1}}catch(t){i.e(t)}finally{i.f()}return!0}function fromTokenizer(t){return _fromTokenizer2.apply(this,arguments)}function _fromTokenizer2(){return(_fromTokenizer2=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt(\"return\",_fromTokenizer(e));case 4:if(t.prev=4,t.t0=t.catch(0),t.t0 instanceof strtok3.EndOfStreamError){t.next=8;break}throw t.t0;case 8:case\"end\":return t.stop()}}),t,null,[[0,4]])})))).apply(this,arguments)}function _fromTokenizer(t){return _fromTokenizer3.apply(this,arguments)}function _fromTokenizer3(){return _fromTokenizer3=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n,i,o,a,s,u,c,f,l,h,p,d,m,g,y,v,b,w,_,x,E,A,D,k;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(minimumBytes),12,n=function(t,e){return _check(r,t,e)},i=function(t,e){return n(stringToBytes(t),e)},e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),t.next=7,e.peekBuffer(r,{length:12,mayBeLess:!0});case 7:if(!n([66,77])){t.next=9;break}return t.abrupt(\"return\",{ext:\"bmp\",mime:\"image/bmp\"});case 9:if(!n([11,119])){t.next=11;break}return t.abrupt(\"return\",{ext:\"ac3\",mime:\"audio/vnd.dolby.dd-raw\"});case 11:if(!n([120,1])){t.next=13;break}return t.abrupt(\"return\",{ext:\"dmg\",mime:\"application/x-apple-diskimage\"});case 13:if(!n([77,90])){t.next=15;break}return t.abrupt(\"return\",{ext:\"exe\",mime:\"application/x-msdownload\"});case 15:if(!n([37,33])){t.next=21;break}return t.next=18,e.peekBuffer(r,{length:24,mayBeLess:!0});case 18:if(!i(\"PS-Adobe-\",{offset:2})||!i(\" EPSF-\",{offset:14})){t.next=20;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 20:return t.abrupt(\"return\",{ext:\"ps\",mime:\"application/postscript\"});case 21:if(!n([31,160])&&!n([31,157])){t.next=23;break}return t.abrupt(\"return\",{ext:\"Z\",mime:\"application/x-compress\"});case 23:if(!n([255,216,255])){t.next=25;break}return t.abrupt(\"return\",{ext:\"jpg\",mime:\"image/jpeg\"});case 25:if(!n([73,73,188])){t.next=27;break}return t.abrupt(\"return\",{ext:\"jxr\",mime:\"image/vnd.ms-photo\"});case 27:if(!n([31,139,8])){t.next=29;break}return t.abrupt(\"return\",{ext:\"gz\",mime:\"application/gzip\"});case 29:if(!n([66,90,104])){t.next=31;break}return t.abrupt(\"return\",{ext:\"bz2\",mime:\"application/x-bzip2\"});case 31:if(!i(\"ID3\")){t.next=42;break}return t.next=34,e.ignore(6);case 34:return t.next=36,e.readToken(uint32SyncSafeToken);case 36:if(o=t.sent,!(e.position+o>e.fileInfo.size)){t.next=39;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 39:return t.next=41,e.ignore(o);case 41:return t.abrupt(\"return\",fromTokenizer(e));case 42:if(!i(\"MP+\")){t.next=44;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 44:if(67!==r[0]&&70!==r[0]||!n([87,83],{offset:1})){t.next=46;break}return t.abrupt(\"return\",{ext:\"swf\",mime:\"application/x-shockwave-flash\"});case 46:if(!n([71,73,70])){t.next=48;break}return t.abrupt(\"return\",{ext:\"gif\",mime:\"image/gif\"});case 48:if(!i(\"FLIF\")){t.next=50;break}return t.abrupt(\"return\",{ext:\"flif\",mime:\"image/flif\"});case 50:if(!i(\"8BPS\")){t.next=52;break}return t.abrupt(\"return\",{ext:\"psd\",mime:\"image/vnd.adobe.photoshop\"});case 52:if(!i(\"WEBP\",{offset:8})){t.next=54;break}return t.abrupt(\"return\",{ext:\"webp\",mime:\"image/webp\"});case 54:if(!i(\"MPCK\")){t.next=56;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 56:if(!i(\"FORM\")){t.next=58;break}return t.abrupt(\"return\",{ext:\"aif\",mime:\"audio/aiff\"});case 58:if(!i(\"icns\",{offset:0})){t.next=60;break}return t.abrupt(\"return\",{ext:\"icns\",mime:\"image/icns\"});case 60:if(!n([80,75,3,4])){t.next=121;break}t.prev=61;case 62:if(!(e.position+30<e.fileInfo.size)){t.next=114;break}return t.next=65,e.readBuffer(r,{length:30});case 65:return a={compressedSize:r.readUInt32LE(18),uncompressedSize:r.readUInt32LE(22),filenameLength:r.readUInt16LE(26),extraFieldLength:r.readUInt16LE(28)},t.next=68,e.readToken(new Token.StringType(a.filenameLength,\"utf-8\"));case 68:return a.filename=t.sent,t.next=71,e.ignore(a.extraFieldLength);case 71:if(\"META-INF/mozilla.rsa\"!==a.filename){t.next=73;break}return t.abrupt(\"return\",{ext:\"xpi\",mime:\"application/x-xpinstall\"});case 73:if(!a.filename.endsWith(\".rels\")&&!a.filename.endsWith(\".xml\")){t.next=83;break}s=a.filename.split(\"/\")[0],t.t0=s,t.next=\"_rels\"===t.t0?78:\"word\"===t.t0?79:\"ppt\"===t.t0?80:\"xl\"===t.t0?81:82;break;case 78:return t.abrupt(\"break\",83);case 79:return t.abrupt(\"return\",{ext:\"docx\",mime:\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"});case 80:return t.abrupt(\"return\",{ext:\"pptx\",mime:\"application/vnd.openxmlformats-officedocument.presentationml.presentation\"});case 81:return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 82:return t.abrupt(\"break\",83);case 83:if(!a.filename.startsWith(\"xl/\")){t.next=85;break}return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 85:if(!a.filename.startsWith(\"3D/\")||!a.filename.endsWith(\".model\")){t.next=87;break}return t.abrupt(\"return\",{ext:\"3mf\",mime:\"model/3mf\"});case 87:if(\"mimetype\"!==a.filename||a.compressedSize!==a.uncompressedSize){t.next=98;break}return t.next=90,e.readToken(new Token.StringType(a.compressedSize,\"utf-8\"));case 90:u=t.sent,t.t1=u,t.next=\"application/epub+zip\"===t.t1?94:\"application/vnd.oasis.opendocument.text\"===t.t1?95:\"application/vnd.oasis.opendocument.spreadsheet\"===t.t1?96:\"application/vnd.oasis.opendocument.presentation\"===t.t1?97:98;break;case 94:return t.abrupt(\"return\",{ext:\"epub\",mime:\"application/epub+zip\"});case 95:return t.abrupt(\"return\",{ext:\"odt\",mime:\"application/vnd.oasis.opendocument.text\"});case 96:return t.abrupt(\"return\",{ext:\"ods\",mime:\"application/vnd.oasis.opendocument.spreadsheet\"});case 97:return t.abrupt(\"return\",{ext:\"odp\",mime:\"application/vnd.oasis.opendocument.presentation\"});case 98:if(0!==a.compressedSize){t.next=110;break}c=-1;case 100:if(!(c<0&&e.position<e.fileInfo.size)){t.next=108;break}return t.next=103,e.peekBuffer(r,{mayBeLess:!0});case 103:return c=r.indexOf(\"504B0304\",0,\"hex\"),t.next=106,e.ignore(c>=0?c:r.length);case 106:t.next=100;break;case 108:t.next=112;break;case 110:return t.next=112,e.ignore(a.compressedSize);case 112:t.next=62;break;case 114:t.next=120;break;case 116:if(t.prev=116,t.t2=t.catch(61),t.t2 instanceof strtok3.EndOfStreamError){t.next=120;break}throw t.t2;case 120:return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 121:if(!i(\"OggS\")){t.next=140;break}return t.next=124,e.ignore(28);case 124:return f=Buffer.alloc(8),t.next=127,e.readBuffer(f);case 127:if(!_check(f,[79,112,117,115,72,101,97,100])){t.next=129;break}return t.abrupt(\"return\",{ext:\"opus\",mime:\"audio/opus\"});case 129:if(!_check(f,[128,116,104,101,111,114,97])){t.next=131;break}return t.abrupt(\"return\",{ext:\"ogv\",mime:\"video/ogg\"});case 131:if(!_check(f,[1,118,105,100,101,111,0])){t.next=133;break}return t.abrupt(\"return\",{ext:\"ogm\",mime:\"video/ogg\"});case 133:if(!_check(f,[127,70,76,65,67])){t.next=135;break}return t.abrupt(\"return\",{ext:\"oga\",mime:\"audio/ogg\"});case 135:if(!_check(f,[83,112,101,101,120,32,32])){t.next=137;break}return t.abrupt(\"return\",{ext:\"spx\",mime:\"audio/ogg\"});case 137:if(!_check(f,[1,118,111,114,98,105,115])){t.next=139;break}return t.abrupt(\"return\",{ext:\"ogg\",mime:\"audio/ogg\"});case 139:return t.abrupt(\"return\",{ext:\"ogx\",mime:\"application/ogg\"});case 140:if(!n([80,75])||3!==r[2]&&5!==r[2]&&7!==r[2]||4!==r[3]&&6!==r[3]&&8!==r[3]){t.next=142;break}return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 142:if(!(i(\"ftyp\",{offset:4})&&96&r[8])){t.next=167;break}l=r.toString(\"binary\",8,12).replace(\"\\0\",\" \").trim(),t.t3=l,t.next=\"avif\"===t.t3?147:\"mif1\"===t.t3?148:\"msf1\"===t.t3?149:\"heic\"===t.t3||\"heix\"===t.t3?150:\"hevc\"===t.t3||\"hevx\"===t.t3?151:\"qt\"===t.t3?152:\"M4V\"===t.t3||\"M4VH\"===t.t3||\"M4VP\"===t.t3?153:\"M4P\"===t.t3?154:\"M4B\"===t.t3?155:\"M4A\"===t.t3?156:\"F4V\"===t.t3?157:\"F4P\"===t.t3?158:\"F4A\"===t.t3?159:\"F4B\"===t.t3?160:\"crx\"===t.t3?161:162;break;case 147:return t.abrupt(\"return\",{ext:\"avif\",mime:\"image/avif\"});case 148:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif\"});case 149:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif-sequence\"});case 150:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic\"});case 151:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic-sequence\"});case 152:return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 153:return t.abrupt(\"return\",{ext:\"m4v\",mime:\"video/x-m4v\"});case 154:return t.abrupt(\"return\",{ext:\"m4p\",mime:\"video/mp4\"});case 155:return t.abrupt(\"return\",{ext:\"m4b\",mime:\"audio/mp4\"});case 156:return t.abrupt(\"return\",{ext:\"m4a\",mime:\"audio/x-m4a\"});case 157:return t.abrupt(\"return\",{ext:\"f4v\",mime:\"video/mp4\"});case 158:return t.abrupt(\"return\",{ext:\"f4p\",mime:\"video/mp4\"});case 159:return t.abrupt(\"return\",{ext:\"f4a\",mime:\"audio/mp4\"});case 160:return t.abrupt(\"return\",{ext:\"f4b\",mime:\"audio/mp4\"});case 161:return t.abrupt(\"return\",{ext:\"cr3\",mime:\"image/x-canon-cr3\"});case 162:if(!l.startsWith(\"3g\")){t.next=166;break}if(!l.startsWith(\"3g2\")){t.next=165;break}return t.abrupt(\"return\",{ext:\"3g2\",mime:\"video/3gpp2\"});case 165:return t.abrupt(\"return\",{ext:\"3gp\",mime:\"video/3gpp\"});case 166:return t.abrupt(\"return\",{ext:\"mp4\",mime:\"video/mp4\"});case 167:if(!i(\"MThd\")){t.next=169;break}return t.abrupt(\"return\",{ext:\"mid\",mime:\"audio/midi\"});case 169:if(!i(\"wOFF\")||!n([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=171;break}return t.abrupt(\"return\",{ext:\"woff\",mime:\"font/woff\"});case 171:if(!i(\"wOF2\")||!n([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=173;break}return t.abrupt(\"return\",{ext:\"woff2\",mime:\"font/woff2\"});case 173:if(!n([212,195,178,161])&&!n([161,178,195,212])){t.next=175;break}return t.abrupt(\"return\",{ext:\"pcap\",mime:\"application/vnd.tcpdump.pcap\"});case 175:if(!i(\"DSD \")){t.next=177;break}return t.abrupt(\"return\",{ext:\"dsf\",mime:\"audio/x-dsf\"});case 177:if(!i(\"LZIP\")){t.next=179;break}return t.abrupt(\"return\",{ext:\"lz\",mime:\"application/x-lzip\"});case 179:if(!i(\"fLaC\")){t.next=181;break}return t.abrupt(\"return\",{ext:\"flac\",mime:\"audio/x-flac\"});case 181:if(!n([66,80,71,251])){t.next=183;break}return t.abrupt(\"return\",{ext:\"bpg\",mime:\"image/bpg\"});case 183:if(!i(\"wvpk\")){t.next=185;break}return t.abrupt(\"return\",{ext:\"wv\",mime:\"audio/wavpack\"});case 185:if(!i(\"%PDF\")){t.next=195;break}return t.next=188,e.ignore(1350);case 188:return 10485760,h=Buffer.alloc(Math.min(10485760,e.fileInfo.size)),t.next=192,e.readBuffer(h,{mayBeLess:!0});case 192:if(!h.includes(Buffer.from(\"AIPrivateData\"))){t.next=194;break}return t.abrupt(\"return\",{ext:\"ai\",mime:\"application/postscript\"});case 194:return t.abrupt(\"return\",{ext:\"pdf\",mime:\"application/pdf\"});case 195:if(!n([0,97,115,109])){t.next=197;break}return t.abrupt(\"return\",{ext:\"wasm\",mime:\"application/wasm\"});case 197:if(!n([73,73,42,0])){t.next=210;break}if(!i(\"CR\",{offset:8})){t.next=200;break}return t.abrupt(\"return\",{ext:\"cr2\",mime:\"image/x-canon-cr2\"});case 200:if(!n([28,0,254,0],{offset:8})&&!n([31,0,11,0],{offset:8})){t.next=202;break}return t.abrupt(\"return\",{ext:\"nef\",mime:\"image/x-nikon-nef\"});case 202:if(!n([8,0,0,0],{offset:4})||!n([45,0,254,0],{offset:8})&&!n([39,0,254,0],{offset:8})){t.next=204;break}return t.abrupt(\"return\",{ext:\"dng\",mime:\"image/x-adobe-dng\"});case 204:return r=Buffer.alloc(24),t.next=207,e.peekBuffer(r);case 207:if(!n([16,251,134,1],{offset:4})&&!n([8,0,0,0],{offset:4})||!n([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})){t.next=209;break}return t.abrupt(\"return\",{ext:\"arw\",mime:\"image/x-sony-arw\"});case 209:return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 210:if(!n([77,77,0,42])){t.next=212;break}return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 212:if(!i(\"MAC \")){t.next=214;break}return t.abrupt(\"return\",{ext:\"ape\",mime:\"audio/ape\"});case 214:if(!n([26,69,223,163])){t.next=230;break}return p=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r,n,i,o;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peekNumber(Token.UINT8);case 2:for(r=t.sent,n=128,i=0;!(r&n)&&0!==n;)++i,n>>=1;return o=Buffer.alloc(i+1),t.next=9,e.readBuffer(o);case 9:return t.abrupt(\"return\",o);case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),d=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:return e=t.sent,t.next=5,p();case 5:return(r=t.sent)[0]^=128>>r.length-1,n=Math.min(6,r.length),t.abrupt(\"return\",{id:e.readUIntBE(0,e.length),len:r.readUIntBE(r.length-n,n)});case 9:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(r,n){var i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n>0)){t.next=11;break}return t.next=3,d();case 3:if(17026!==(i=t.sent).id){t.next=6;break}return t.abrupt(\"return\",e.readToken(new Token.StringType(i.len,\"utf-8\")));case 6:return t.next=8,e.ignore(i.len);case 8:--n,t.next=0;break;case 11:case\"end\":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),t.next=220,d();case 220:return g=t.sent,t.next=223,m(1,g.len);case 223:y=t.sent,t.t4=y,t.next=\"webm\"===t.t4?227:\"matroska\"===t.t4?228:229;break;case 227:return t.abrupt(\"return\",{ext:\"webm\",mime:\"video/webm\"});case 228:return t.abrupt(\"return\",{ext:\"mkv\",mime:\"video/x-matroska\"});case 229:return t.abrupt(\"return\");case 230:if(!n([82,73,70,70])){t.next=237;break}if(!n([65,86,73],{offset:8})){t.next=233;break}return t.abrupt(\"return\",{ext:\"avi\",mime:\"video/vnd.avi\"});case 233:if(!n([87,65,86,69],{offset:8})){t.next=235;break}return t.abrupt(\"return\",{ext:\"wav\",mime:\"audio/vnd.wave\"});case 235:if(!n([81,76,67,77],{offset:8})){t.next=237;break}return t.abrupt(\"return\",{ext:\"qcp\",mime:\"audio/qcelp\"});case 237:if(!i(\"SQLi\")){t.next=239;break}return t.abrupt(\"return\",{ext:\"sqlite\",mime:\"application/x-sqlite3\"});case 239:if(!n([78,69,83,26])){t.next=241;break}return t.abrupt(\"return\",{ext:\"nes\",mime:\"application/x-nintendo-nes-rom\"});case 241:if(!i(\"Cr24\")){t.next=243;break}return t.abrupt(\"return\",{ext:\"crx\",mime:\"application/x-google-chrome-extension\"});case 243:if(!i(\"MSCF\")&&!i(\"ISc(\")){t.next=245;break}return t.abrupt(\"return\",{ext:\"cab\",mime:\"application/vnd.ms-cab-compressed\"});case 245:if(!n([237,171,238,219])){t.next=247;break}return t.abrupt(\"return\",{ext:\"rpm\",mime:\"application/x-rpm\"});case 247:if(!n([197,208,211,198])){t.next=249;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 249:if(!n([40,181,47,253])){t.next=251;break}return t.abrupt(\"return\",{ext:\"zst\",mime:\"application/zstd\"});case 251:if(!n([79,84,84,79,0])){t.next=253;break}return t.abrupt(\"return\",{ext:\"otf\",mime:\"font/otf\"});case 253:if(!i(\"#!AMR\")){t.next=255;break}return t.abrupt(\"return\",{ext:\"amr\",mime:\"audio/amr\"});case 255:if(!i(\"{\\\\rtf\")){t.next=257;break}return t.abrupt(\"return\",{ext:\"rtf\",mime:\"application/rtf\"});case 257:if(!n([70,76,86,1])){t.next=259;break}return t.abrupt(\"return\",{ext:\"flv\",mime:\"video/x-flv\"});case 259:if(!i(\"IMPM\")){t.next=261;break}return t.abrupt(\"return\",{ext:\"it\",mime:\"audio/x-it\"});case 261:if(!(i(\"-lh0-\",{offset:2})||i(\"-lh1-\",{offset:2})||i(\"-lh2-\",{offset:2})||i(\"-lh3-\",{offset:2})||i(\"-lh4-\",{offset:2})||i(\"-lh5-\",{offset:2})||i(\"-lh6-\",{offset:2})||i(\"-lh7-\",{offset:2})||i(\"-lzs-\",{offset:2})||i(\"-lz4-\",{offset:2})||i(\"-lz5-\",{offset:2})||i(\"-lhd-\",{offset:2}))){t.next=263;break}return t.abrupt(\"return\",{ext:\"lzh\",mime:\"application/x-lzh-compressed\"});case 263:if(!n([0,0,1,186])){t.next=268;break}if(!n([33],{offset:4,mask:[241]})){t.next=266;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP1S\"});case 266:if(!n([68],{offset:4,mask:[196]})){t.next=268;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP2P\"});case 268:if(!i(\"ITSF\")){t.next=270;break}return t.abrupt(\"return\",{ext:\"chm\",mime:\"application/vnd.ms-htmlhelp\"});case 270:if(!n([253,55,122,88,90,0])){t.next=272;break}return t.abrupt(\"return\",{ext:\"xz\",mime:\"application/x-xz\"});case 272:if(!i(\"<?xml \")){t.next=274;break}return t.abrupt(\"return\",{ext:\"xml\",mime:\"application/xml\"});case 274:if(!n([55,122,188,175,39,28])){t.next=276;break}return t.abrupt(\"return\",{ext:\"7z\",mime:\"application/x-7z-compressed\"});case 276:if(!n([82,97,114,33,26,7])||0!==r[6]&&1!==r[6]){t.next=278;break}return t.abrupt(\"return\",{ext:\"rar\",mime:\"application/x-rar-compressed\"});case 278:if(!i(\"solid \")){t.next=280;break}return t.abrupt(\"return\",{ext:\"stl\",mime:\"model/stl\"});case 280:if(!i(\"BLENDER\")){t.next=282;break}return t.abrupt(\"return\",{ext:\"blend\",mime:\"application/x-blender\"});case 282:if(!i(\"!<arch>\")){t.next=291;break}return t.next=285,e.ignore(8);case 285:return t.next=287,e.readToken(new Token.StringType(13,\"ascii\"));case 287:if(\"debian-binary\"!==t.sent){t.next=290;break}return t.abrupt(\"return\",{ext:\"deb\",mime:\"application/x-deb\"});case 290:return t.abrupt(\"return\",{ext:\"ar\",mime:\"application/x-unix-archive\"});case 291:if(!n([137,80,78,71,13,10,26,10])){t.next=309;break}return v=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.readToken(Token.INT32_BE);case 2:return t.t0=t.sent,t.next=5,e.readToken(new Token.StringType(4,\"binary\"));case 5:return t.t1=t.sent,t.abrupt(\"return\",{length:t.t0,type:t.t1});case 7:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=295,e.ignore(8);case 295:return t.next=297,v();case 297:if(!((b=t.sent).length<0)){t.next=300;break}return t.abrupt(\"return\");case 300:t.t5=b.type,t.next=\"IDAT\"===t.t5?303:\"acTL\"===t.t5?304:305;break;case 303:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 304:return t.abrupt(\"return\",{ext:\"apng\",mime:\"image/apng\"});case 305:return t.next=307,e.ignore(b.length+4);case 307:if(e.position+8<e.fileInfo.size){t.next=295;break}case 308:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 309:if(!n([65,82,82,79,87,49,0,0])){t.next=311;break}return t.abrupt(\"return\",{ext:\"arrow\",mime:\"application/x-apache-arrow\"});case 311:if(!n([103,108,84,70,2,0,0,0])){t.next=313;break}return t.abrupt(\"return\",{ext:\"glb\",mime:\"model/gltf-binary\"});case 313:if(!(n([102,114,101,101],{offset:4})||n([109,100,97,116],{offset:4})||n([109,111,111,118],{offset:4})||n([119,105,100,101],{offset:4}))){t.next=315;break}return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 315:if(!n([73,73,82,79,8,0,0,0,24])){t.next=317;break}return t.abrupt(\"return\",{ext:\"orf\",mime:\"image/x-olympus-orf\"});case 317:if(!i(\"gimp xcf \")){t.next=319;break}return t.abrupt(\"return\",{ext:\"xcf\",mime:\"image/x-xcf\"});case 319:if(!n([73,73,85,0,24,0,0,0,136,231,116,216])){t.next=321;break}return t.abrupt(\"return\",{ext:\"rw2\",mime:\"image/x-panasonic-rw2\"});case 321:if(!n([48,38,178,117,142,102,207,17,166,217])){t.next=346;break}return w=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(16),t.next=3,e.readBuffer(r);case 3:return t.t0=r,t.t1=Number,t.next=7,e.readToken(Token.UINT64_LE);case 7:return t.t2=t.sent,t.t3=(0,t.t1)(t.t2),t.abrupt(\"return\",{id:t.t0,size:t.t3});case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=325,e.ignore(30);case 325:if(!(e.position+24<e.fileInfo.size)){t.next=345;break}return t.next=328,w();case 328:if(_=t.sent,x=_.size-24,!_check(_.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){t.next=341;break}return E=Buffer.alloc(16),t.t6=x,t.next=335,e.readBuffer(E);case 335:if(x=t.t6-=t.sent,!_check(E,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=338;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"audio/x-ms-asf\"});case 338:if(!_check(E,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=340;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"video/x-ms-asf\"});case 340:return t.abrupt(\"break\",345);case 341:return t.next=343,e.ignore(x);case 343:t.next=325;break;case 345:return t.abrupt(\"return\",{ext:\"asf\",mime:\"application/vnd.ms-asf\"});case 346:if(!n([171,75,84,88,32,49,49,187,13,10,26,10])){t.next=348;break}return t.abrupt(\"return\",{ext:\"ktx\",mime:\"image/ktx\"});case 348:if(!n([126,16,4])&&!n([126,24,4])||!n([48,77,73,69],{offset:4})){t.next=350;break}return t.abrupt(\"return\",{ext:\"mie\",mime:\"application/x-mie\"});case 350:if(!n([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2})){t.next=352;break}return t.abrupt(\"return\",{ext:\"shp\",mime:\"application/x-esri-shape\"});case 352:if(!n([0,0,0,12,106,80,32,32,13,10,135,10])){t.next=366;break}return t.next=355,e.ignore(20);case 355:return t.next=357,e.readToken(new Token.StringType(4,\"ascii\"));case 357:A=t.sent,t.t7=A,t.next=\"jp2 \"===t.t7?361:\"jpx \"===t.t7?362:\"jpm \"===t.t7?363:\"mjp2\"===t.t7?364:365;break;case 361:return t.abrupt(\"return\",{ext:\"jp2\",mime:\"image/jp2\"});case 362:return t.abrupt(\"return\",{ext:\"jpx\",mime:\"image/jpx\"});case 363:return t.abrupt(\"return\",{ext:\"jpm\",mime:\"image/jpm\"});case 364:return t.abrupt(\"return\",{ext:\"mj2\",mime:\"image/mj2\"});case 365:return t.abrupt(\"return\");case 366:if(!n([255,10])&&!n([0,0,0,12,74,88,76,32,13,10,135,10])){t.next=368;break}return t.abrupt(\"return\",{ext:\"jxl\",mime:\"image/jxl\"});case 368:if(!n([0,0,1,186])&&!n([0,0,1,179])){t.next=370;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/mpeg\"});case 370:if(!n([0,1,0,0,0])){t.next=372;break}return t.abrupt(\"return\",{ext:\"ttf\",mime:\"font/ttf\"});case 372:if(!n([0,0,1,0])){t.next=374;break}return t.abrupt(\"return\",{ext:\"ico\",mime:\"image/x-icon\"});case 374:if(!n([0,0,2,0])){t.next=376;break}return t.abrupt(\"return\",{ext:\"cur\",mime:\"image/x-icon\"});case 376:if(!n([208,207,17,224,161,177,26,225])){t.next=378;break}return t.abrupt(\"return\",{ext:\"cfb\",mime:\"application/x-cfb\"});case 378:return t.next=380,e.peekBuffer(r,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0});case 380:if(!i(\"BEGIN:\")){t.next=385;break}if(!i(\"VCARD\",{offset:6})){t.next=383;break}return t.abrupt(\"return\",{ext:\"vcf\",mime:\"text/vcard\"});case 383:if(!i(\"VCALENDAR\",{offset:6})){t.next=385;break}return t.abrupt(\"return\",{ext:\"ics\",mime:\"text/calendar\"});case 385:if(!i(\"FUJIFILMCCD-RAW\")){t.next=387;break}return t.abrupt(\"return\",{ext:\"raf\",mime:\"image/x-fujifilm-raf\"});case 387:if(!i(\"Extended Module:\")){t.next=389;break}return t.abrupt(\"return\",{ext:\"xm\",mime:\"audio/x-xm\"});case 389:if(!i(\"Creative Voice File\")){t.next=391;break}return t.abrupt(\"return\",{ext:\"voc\",mime:\"audio/x-voc\"});case 391:if(!(n([4,0,0,0])&&r.length>=16)){t.next=403;break}if(!((D=r.readUInt32LE(12))>12&&r.length>=D+16)){t.next=403;break}if(t.prev=394,k=r.slice(16,D+16).toString(),!JSON.parse(k).files){t.next=399;break}return t.abrupt(\"return\",{ext:\"asar\",mime:\"application/x-asar\"});case 399:t.next=403;break;case 401:t.prev=401,t.t8=t.catch(394);case 403:if(!n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){t.next=405;break}return t.abrupt(\"return\",{ext:\"mxf\",mime:\"application/mxf\"});case 405:if(!i(\"SCRM\",{offset:44})){t.next=407;break}return t.abrupt(\"return\",{ext:\"s3m\",mime:\"audio/x-s3m\"});case 407:if(!n([71],{offset:4})||!n([71],{offset:192})&&!n([71],{offset:196})){t.next=409;break}return t.abrupt(\"return\",{ext:\"mts\",mime:\"video/mp2t\"});case 409:if(!n([66,79,79,75,77,79,66,73],{offset:60})){t.next=411;break}return t.abrupt(\"return\",{ext:\"mobi\",mime:\"application/x-mobipocket-ebook\"});case 411:if(!n([68,73,67,77],{offset:128})){t.next=413;break}return t.abrupt(\"return\",{ext:\"dcm\",mime:\"application/dicom\"});case 413:if(!n([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70])){t.next=415;break}return t.abrupt(\"return\",{ext:\"lnk\",mime:\"application/x.ms.shortcut\"});case 415:if(!n([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0])){t.next=417;break}return t.abrupt(\"return\",{ext:\"alias\",mime:\"application/x.apple.alias\"});case 417:if(!n([76,80],{offset:34})||!(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))){t.next=419;break}return t.abrupt(\"return\",{ext:\"eot\",mime:\"application/vnd.ms-fontobject\"});case 419:if(!n([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29])){t.next=421;break}return t.abrupt(\"return\",{ext:\"indd\",mime:\"application/x-indesign\"});case 421:return t.next=423,e.peekBuffer(r,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0});case 423:if(!tarHeaderChecksumMatches(r)){t.next=425;break}return t.abrupt(\"return\",{ext:\"tar\",mime:\"application/x-tar\"});case 425:if(!n([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0])){t.next=427;break}return t.abrupt(\"return\",{ext:\"skp\",mime:\"application/vnd.sketchup.skp\"});case 427:if(!i(\"-----BEGIN PGP MESSAGE-----\")){t.next=429;break}return t.abrupt(\"return\",{ext:\"pgp\",mime:\"application/pgp-encrypted\"});case 429:if(!(r.length>=2&&n([255,224],{offset:0,mask:[255,224]}))){t.next=440;break}if(!n([16],{offset:1,mask:[22]})){t.next=434;break}if(!n([8],{offset:1,mask:[8]})){t.next=433;break}return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 433:return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 434:if(!n([2],{offset:1,mask:[6]})){t.next=436;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 436:if(!n([4],{offset:1,mask:[6]})){t.next=438;break}return t.abrupt(\"return\",{ext:\"mp2\",mime:\"audio/mpeg\"});case 438:if(!n([6],{offset:1,mask:[6]})){t.next=440;break}return t.abrupt(\"return\",{ext:\"mp1\",mime:\"audio/mpeg\"});case 440:case\"end\":return t.stop()}}),t,null,[[61,116],[394,401]])}))),_fromTokenizer3.apply(this,arguments)}var stream=function stream(readableStream){return new Promise((function(resolve,reject){var stream=eval(\"require\")(\"stream\");readableStream.on(\"error\",reject),readableStream.once(\"readable\",_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new stream.PassThrough,r=stream.pipeline?stream.pipeline(readableStream,e,(function(){})):readableStream.pipe(e),n=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0),t.prev=3,t.next=6,fromBuffer(n);case 6:i=t.sent,e.fileType=i,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),reject(t.t0);case 13:resolve(r);case 14:case\"end\":return t.stop()}}),t,null,[[3,10]])}))))}))},fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,\"extensions\",{get:function(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,\"mimeTypes\",{get:function(){return new Set(supported.mimeTypes)}}),module.exports=fileType}).call(this,__webpack_require__(2).Buffer)},function(t,e,r){\"use strict\";(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function a(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function s(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;var u=r(67);function c(t){return new DataView(t.buffer,t.byteOffset)}e.UINT8={len:1,get:function(t,e){return c(t).getUint8(e)},put:function(t,e,r){return c(t).setUint8(e,r),e+1}},e.UINT16_LE={len:2,get:function(t,e){return c(t).getUint16(e,!0)},put:function(t,e,r){return c(t).setUint16(e,r,!0),e+2}},e.UINT16_BE={len:2,get:function(t,e){return c(t).getUint16(e)},put:function(t,e,r){return c(t).setUint16(e,r),e+2}},e.UINT24_LE={len:3,get:function(t,e){var r=c(t);return r.getUint8(e)+(r.getUint16(e+1,!0)<<8)},put:function(t,e,r){var n=c(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.UINT24_BE={len:3,get:function(t,e){var r=c(t);return(r.getUint16(e)<<8)+r.getUint8(e+2)},put:function(t,e,r){var n=c(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.UINT32_LE={len:4,get:function(t,e){return c(t).getUint32(e,!0)},put:function(t,e,r){return c(t).setUint32(e,r,!0),e+4}},e.UINT32_BE={len:4,get:function(t,e){return c(t).getUint32(e)},put:function(t,e,r){return c(t).setUint32(e,r),e+4}},e.INT8={len:1,get:function(t,e){return c(t).getInt8(e)},put:function(t,e,r){return c(t).setInt8(e,r),e+1}},e.INT16_BE={len:2,get:function(t,e){return c(t).getInt16(e)},put:function(t,e,r){return c(t).setInt16(e,r),e+2}},e.INT16_LE={len:2,get:function(t,e){return c(t).getInt16(e,!0)},put:function(t,e,r){return c(t).setInt16(e,r,!0),e+2}},e.INT24_LE={len:3,get:function(t,r){var n=e.UINT24_LE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=c(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.INT24_BE={len:3,get:function(t,r){var n=e.UINT24_BE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=c(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.INT32_BE={len:4,get:function(t,e){return c(t).getInt32(e)},put:function(t,e,r){return c(t).setInt32(e,r),e+4}},e.INT32_LE={len:4,get:function(t,e){return c(t).getInt32(e,!0)},put:function(t,e,r){return c(t).setInt32(e,r,!0),e+4}},e.UINT64_LE={len:8,get:function(t,e){return c(t).getBigUint64(e,!0)},put:function(t,e,r){return c(t).setBigUint64(e,r,!0),e+8}},e.INT64_LE={len:8,get:function(t,e){return c(t).getBigInt64(e,!0)},put:function(t,e,r){return c(t).setBigInt64(e,r,!0),e+8}},e.UINT64_BE={len:8,get:function(t,e){return c(t).getBigUint64(e)},put:function(t,e,r){return c(t).setBigUint64(e,r),e+8}},e.INT64_BE={len:8,get:function(t,e){return c(t).getBigInt64(e)},put:function(t,e,r){return c(t).setBigInt64(e,r),e+8}},e.Float16_BE={len:2,get:function(t,e){return u.read(t,e,!1,10,this.len)},put:function(t,e,r){return u.write(t,r,e,!1,10,this.len),e+this.len}},e.Float16_LE={len:2,get:function(t,e){return u.read(t,e,!0,10,this.len)},put:function(t,e,r){return u.write(t,r,e,!0,10,this.len),e+this.len}},e.Float32_BE={len:4,get:function(t,e){return c(t).getFloat32(e)},put:function(t,e,r){return c(t).setFloat32(e,r),e+4}},e.Float32_LE={len:4,get:function(t,e){return c(t).getFloat32(e,!0)},put:function(t,e,r){return c(t).setFloat32(e,r,!0),e+4}},e.Float64_BE={len:8,get:function(t,e){return c(t).getFloat64(e)},put:function(t,e,r){return c(t).setFloat64(e,r),e+8}},e.Float64_LE={len:8,get:function(t,e){return c(t).getFloat64(e,!0)},put:function(t,e,r){return c(t).setFloat64(e,r,!0),e+8}},e.Float80_BE={len:10,get:function(t,e){return u.read(t,e,!1,63,this.len)},put:function(t,e,r){return u.write(t,r,e,!1,63,this.len),e+this.len}},e.Float80_LE={len:10,get:function(t,e){return u.read(t,e,!0,63,this.len)},put:function(t,e,r){return u.write(t,r,e,!0,63,this.len),e+this.len}};var f=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){}}])}();e.IgnoreType=f;var l=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){return t.subarray(e,e+this.len)}}])}();e.Uint8ArrayType=l;var h=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(e,r){return t.from(e.subarray(r,r+this.len))}}])}();e.BufferType=h;var p=function(){return a((function t(e,r){i(this,t),this.len=e,this.encoding=r}),[{key:\"get\",value:function(e,r){return t.from(e).toString(this.encoding,r,r+this.len)}}])}();e.StringType=p;var d=function(){function t(e){i(this,t),this.len=e}return a(t,[{key:\"get\",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.decode(e,r,r+this.len)}}],[{key:\"decode\",value:function(e,r,n){for(var i=\"\",o=r;o<n;++o)i+=t.codePointToString(t.singleByteDecoder(e[o]));return i}},{key:\"inRange\",value:function(t,e,r){return e<=t&&t<=r}},{key:\"codePointToString\",value:function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}},{key:\"singleByteDecoder\",value:function(e){if(t.inRange(e,0,127))return e;var r=t.windows1252[e-128];if(null===r)throw Error(\"invaliding encoding\");return r}}])}();e.AnsiStringType=d,d.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.stringToBytes=function(t){return n(t).map((function(t){return t.charCodeAt(0)}))},e.tarHeaderChecksumMatches=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=parseInt(t.toString(\"utf8\",148,154).replace(/\\0.*$/,\"\").trim(),8);if(isNaN(r))return!1;for(var n=256,i=e;i<e+148;i++)n+=t[i];for(var o=e+156;o<e+512;o++)n+=t[o];return r===n},e.uint32SyncSafeToken={get:function(t,e){return 127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21},len:4}},function(t,e,r){\"use strict\";t.exports={extensions:[\"jpg\",\"png\",\"apng\",\"gif\",\"webp\",\"flif\",\"xcf\",\"cr2\",\"cr3\",\"orf\",\"arw\",\"dng\",\"nef\",\"rw2\",\"raf\",\"tif\",\"bmp\",\"icns\",\"jxr\",\"psd\",\"indd\",\"zip\",\"tar\",\"rar\",\"gz\",\"bz2\",\"7z\",\"dmg\",\"mp4\",\"mid\",\"mkv\",\"webm\",\"mov\",\"avi\",\"mpg\",\"mp2\",\"mp3\",\"m4a\",\"oga\",\"ogg\",\"ogv\",\"opus\",\"flac\",\"wav\",\"spx\",\"amr\",\"pdf\",\"epub\",\"exe\",\"swf\",\"rtf\",\"wasm\",\"woff\",\"woff2\",\"eot\",\"ttf\",\"otf\",\"ico\",\"flv\",\"ps\",\"xz\",\"sqlite\",\"nes\",\"crx\",\"xpi\",\"cab\",\"deb\",\"ar\",\"rpm\",\"Z\",\"lz\",\"cfb\",\"mxf\",\"mts\",\"blend\",\"bpg\",\"docx\",\"pptx\",\"xlsx\",\"3gp\",\"3g2\",\"jp2\",\"jpm\",\"jpx\",\"mj2\",\"aif\",\"qcp\",\"odt\",\"ods\",\"odp\",\"xml\",\"mobi\",\"heic\",\"cur\",\"ktx\",\"ape\",\"wv\",\"dcm\",\"ics\",\"glb\",\"pcap\",\"dsf\",\"lnk\",\"alias\",\"voc\",\"ac3\",\"m4v\",\"m4p\",\"m4b\",\"f4v\",\"f4p\",\"f4b\",\"f4a\",\"mie\",\"asf\",\"ogm\",\"ogx\",\"mpc\",\"arrow\",\"shp\",\"aac\",\"mp1\",\"it\",\"s3m\",\"xm\",\"ai\",\"skp\",\"avif\",\"eps\",\"lzh\",\"pgp\",\"asar\",\"stl\",\"chm\",\"3mf\",\"zst\",\"jxl\",\"vcf\"],mimeTypes:[\"image/jpeg\",\"image/png\",\"image/gif\",\"image/webp\",\"image/flif\",\"image/x-xcf\",\"image/x-canon-cr2\",\"image/x-canon-cr3\",\"image/tiff\",\"image/bmp\",\"image/vnd.ms-photo\",\"image/vnd.adobe.photoshop\",\"application/x-indesign\",\"application/epub+zip\",\"application/x-xpinstall\",\"application/vnd.oasis.opendocument.text\",\"application/vnd.oasis.opendocument.spreadsheet\",\"application/vnd.oasis.opendocument.presentation\",\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\"application/zip\",\"application/x-tar\",\"application/x-rar-compressed\",\"application/gzip\",\"application/x-bzip2\",\"application/x-7z-compressed\",\"application/x-apple-diskimage\",\"application/x-apache-arrow\",\"video/mp4\",\"audio/midi\",\"video/x-matroska\",\"video/webm\",\"video/quicktime\",\"video/vnd.avi\",\"audio/vnd.wave\",\"audio/qcelp\",\"audio/x-ms-asf\",\"video/x-ms-asf\",\"application/vnd.ms-asf\",\"video/mpeg\",\"video/3gpp\",\"audio/mpeg\",\"audio/mp4\",\"audio/opus\",\"video/ogg\",\"audio/ogg\",\"application/ogg\",\"audio/x-flac\",\"audio/ape\",\"audio/wavpack\",\"audio/amr\",\"application/pdf\",\"application/x-msdownload\",\"application/x-shockwave-flash\",\"application/rtf\",\"application/wasm\",\"font/woff\",\"font/woff2\",\"application/vnd.ms-fontobject\",\"font/ttf\",\"font/otf\",\"image/x-icon\",\"video/x-flv\",\"application/postscript\",\"application/eps\",\"application/x-xz\",\"application/x-sqlite3\",\"application/x-nintendo-nes-rom\",\"application/x-google-chrome-extension\",\"application/vnd.ms-cab-compressed\",\"application/x-deb\",\"application/x-unix-archive\",\"application/x-rpm\",\"application/x-compress\",\"application/x-lzip\",\"application/x-cfb\",\"application/x-mie\",\"application/mxf\",\"video/mp2t\",\"application/x-blender\",\"image/bpg\",\"image/jp2\",\"image/jpx\",\"image/jpm\",\"image/mj2\",\"audio/aiff\",\"application/xml\",\"application/x-mobipocket-ebook\",\"image/heif\",\"image/heif-sequence\",\"image/heic\",\"image/heic-sequence\",\"image/icns\",\"image/ktx\",\"application/dicom\",\"audio/x-musepack\",\"text/calendar\",\"text/vcard\",\"model/gltf-binary\",\"application/vnd.tcpdump.pcap\",\"audio/x-dsf\",\"application/x.ms.shortcut\",\"application/x.apple.alias\",\"audio/x-voc\",\"audio/vnd.dolby.dd-raw\",\"audio/x-m4a\",\"image/apng\",\"image/x-olympus-orf\",\"image/x-sony-arw\",\"image/x-adobe-dng\",\"image/x-nikon-nef\",\"image/x-panasonic-rw2\",\"image/x-fujifilm-raf\",\"video/x-m4v\",\"video/3gpp2\",\"application/x-esri-shape\",\"audio/aac\",\"audio/x-it\",\"audio/x-s3m\",\"audio/x-xm\",\"video/MP1S\",\"video/MP2P\",\"application/vnd.sketchup.skp\",\"image/avif\",\"application/x-lzh-compressed\",\"application/pgp-encrypted\",\"application/x-asar\",\"model/stl\",\"application/vnd.ms-htmlhelp\",\"model/3mf\",\"image/jxl\",\"application/zstd\"]}},function(t,e,r){var n=r(136),i=r(69),o=r(137);function a(t,e,r,n,i,o,a){this.startMarker=t,this.tags=e,this.imageSize=r,this.thumbnailOffset=n,this.thumbnailLength=i,this.thumbnailType=o,this.app1Offset=a}function s(t){this.stream=t,this.flags={readBinaryTags:!1,resolveTagNames:!0,simplifyValues:!0,imageSize:!0,hidePointers:!0,returnTags:!0}}a.prototype={hasThumbnail:function(t){return!(!this.thumbnailOffset||!this.thumbnailLength)&&(\"string\"!=typeof t||(\"image/jpeg\"===t.toLowerCase().trim()?6===this.thumbnailType:\"image/tiff\"===t.toLowerCase().trim()&&1===this.thumbnailType))},getThumbnailOffset:function(){return this.app1Offset+6+this.thumbnailOffset},getThumbnailLength:function(){return this.thumbnailLength},getThumbnailBuffer:function(){return this._getThumbnailStream().nextBuffer(this.thumbnailLength)},_getThumbnailStream:function(){return this.startMarker.openWithOffset(this.getThumbnailOffset())},getImageSize:function(){return this.imageSize},getThumbnailSize:function(){var t,e=this._getThumbnailStream();return n.parseSections(e,(function(e,r){\"SOF\"===n.getSectionName(e).name&&(t=n.getSizeFromSOFSection(r))})),t}},s.prototype={enableBinaryFields:function(t){return this.flags.readBinaryTags=!!t,this},enablePointers:function(t){return this.flags.hidePointers=!t,this},enableTagNames:function(t){return this.flags.resolveTagNames=!!t,this},enableImageSize:function(t){return this.flags.imageSize=!!t,this},enableReturnTags:function(t){return this.flags.returnTags=!!t,this},enableSimpleValues:function(t){return this.flags.simplifyValues=!!t,this},parse:function(){var t,e,s,u,c,f,l,h,p,d=this.stream.mark(),m=d.openWithOffset(0),g=this.flags;return g.resolveTagNames&&(l=r(139)),g.resolveTagNames?(t={},h=function(e){return t[e.name]},p=function(e,r){t[e.name]=r}):(t=[],h=function(e){var r;for(r=0;r<t.length;++r)if(t[r].type===e.type&&t[r].section===e.section)return t.value},p=function(e,r){var n;for(n=0;n<t.length;++n)if(t[n].type===e.type&&t[n].section===e.section)return void(t.value=r)}),n.parseSections(m,(function(r,a){var h=a.offsetFrom(d);225===r?i.parseTags(a,(function(e,r,n,a){if(g.readBinaryTags||7!==a){if(513===r){if(s=n[0],g.hidePointers)return}else if(514===r){if(u=n[0],g.hidePointers)return}else if(259===r&&(c=n[0],g.hidePointers))return;if(g.returnTags)if(g.simplifyValues&&(n=o.simplifyValue(n,a)),g.resolveTagNames){var f=(e===i.GPSIFD?l.gps:l.exif)[r];f||(f=l.exif[r]),t.hasOwnProperty(f)||(t[f]=n)}else t.push({section:e,type:r,value:n})}}))&&(f=h):g.imageSize&&\"SOF\"===n.getSectionName(r).name&&(e=n.getSizeFromSOFSection(a))})),g.simplifyValues&&(o.castDegreeValues(h,p),o.castDateValues(h,p)),new a(d,t,e,s,u,c,f)}},t.exports=s},function(t,e){t.exports={parseSections:function(t,e){var r,n;for(t.setBigEndian(!0);t.remainingLength()>0&&218!==n;){if(255!==t.nextUInt8())throw new Error(\"Invalid JPEG section offset\");r=(n=t.nextUInt8())>=208&&n<=217||218===n?0:t.nextUInt16()-2,e(n,t.branch(0,r)),t.skip(r)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,r;switch(t){case 216:e=\"SOI\";break;case 196:e=\"DHT\";break;case 219:e=\"DQT\";break;case 221:e=\"DRI\";break;case 218:e=\"SOS\";break;case 254:e=\"COM\";break;case 217:e=\"EOI\";break;default:t>=224&&t<=239?(e=\"APP\",r=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e=\"SOF\",r=t-192):t>=208&&t<=215&&(e=\"RST\",r=t-208)}var n={name:e};return\"number\"==typeof r&&(n.index=r),n}}},function(t,e,r){var n=r(69),i=r(138),o=[{section:n.GPSIFD,type:2,name:\"GPSLatitude\",refType:1,refName:\"GPSLatitudeRef\",posVal:\"N\"},{section:n.GPSIFD,type:4,name:\"GPSLongitude\",refType:3,refName:\"GPSLongitudeRef\",posVal:\"E\"}],a=[{section:n.SubIFD,type:306,name:\"ModifyDate\"},{section:n.SubIFD,type:36867,name:\"DateTimeOriginal\"},{section:n.SubIFD,type:36868,name:\"CreateDate\"},{section:n.SubIFD,type:306,name:\"ModifyDate\"}];t.exports={castDegreeValues:function(t,e){o.forEach((function(r){var n=t(r);if(n){var i=t({section:r.section,type:r.refType,name:r.refName})===r.posVal?1:-1,o=(n[0]+n[1]/60+n[2]/3600)*i;e(r,o)}}))},castDateValues:function(t,e){a.forEach((function(r){var n=t(r);if(n){var o=i.parseExifDate(n);void 0!==o&&e(r,o)}}))},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map((function(t){return 10===e||5===e?t[0]/t[1]:t}))).length&&(t=t[0]),t}}},function(t,e){function r(t){return parseInt(t,10)}var n=3600,i=60;function o(t,e){t=t.map(r),e=e.map(r);var n=t[0],i=t[1]-1,o=t[2],a=e[0],s=e[1],u=e[2];return Date.UTC(n,i,o,a,s,u,0)/1e3}function a(t){var e=t.substr(0,10).split(\"-\"),a=t.substr(11,8).split(\":\"),s=t.substr(19,6).split(\":\").map(r),u=s[0]*n+s[1]*i,c=o(e,a);if(\"number\"==typeof(c-=u)&&!isNaN(c))return c}function s(t){var e=t.split(\" \"),r=o(e[0].split(\":\"),e[1].split(\":\"));if(\"number\"==typeof r&&!isNaN(r))return r}t.exports={parseDateWithSpecFormat:s,parseDateWithTimezoneFormat:a,parseExifDate:function(t){var e=19===t.length&&\":\"===t.charAt(4);return 25===t.length&&\"T\"===t.charAt(10)?a(t):e?s(t):void 0}}},function(t,e){t.exports={exif:{1:\"InteropIndex\",2:\"InteropVersion\",11:\"ProcessingSoftware\",254:\"SubfileType\",255:\"OldSubfileType\",256:\"ImageWidth\",257:\"ImageHeight\",258:\"BitsPerSample\",259:\"Compression\",262:\"PhotometricInterpretation\",263:\"Thresholding\",264:\"CellWidth\",265:\"CellLength\",266:\"FillOrder\",269:\"DocumentName\",270:\"ImageDescription\",271:\"Make\",272:\"Model\",273:\"StripOffsets\",274:\"Orientation\",277:\"SamplesPerPixel\",278:\"RowsPerStrip\",279:\"StripByteCounts\",280:\"MinSampleValue\",281:\"MaxSampleValue\",282:\"XResolution\",283:\"YResolution\",284:\"PlanarConfiguration\",285:\"PageName\",286:\"XPosition\",287:\"YPosition\",288:\"FreeOffsets\",289:\"FreeByteCounts\",290:\"GrayResponseUnit\",291:\"GrayResponseCurve\",292:\"T4Options\",293:\"T6Options\",296:\"ResolutionUnit\",297:\"PageNumber\",300:\"ColorResponseUnit\",301:\"TransferFunction\",305:\"Software\",306:\"ModifyDate\",315:\"Artist\",316:\"HostComputer\",317:\"Predictor\",318:\"WhitePoint\",319:\"PrimaryChromaticities\",320:\"ColorMap\",321:\"HalftoneHints\",322:\"TileWidth\",323:\"TileLength\",324:\"TileOffsets\",325:\"TileByteCounts\",326:\"BadFaxLines\",327:\"CleanFaxData\",328:\"ConsecutiveBadFaxLines\",330:\"SubIFD\",332:\"InkSet\",333:\"InkNames\",334:\"NumberofInks\",336:\"DotRange\",337:\"TargetPrinter\",338:\"ExtraSamples\",339:\"SampleFormat\",340:\"SMinSampleValue\",341:\"SMaxSampleValue\",342:\"TransferRange\",343:\"ClipPath\",344:\"XClipPathUnits\",345:\"YClipPathUnits\",346:\"Indexed\",347:\"JPEGTables\",351:\"OPIProxy\",400:\"GlobalParametersIFD\",401:\"ProfileType\",402:\"FaxProfile\",403:\"CodingMethods\",404:\"VersionYear\",405:\"ModeNumber\",433:\"Decode\",434:\"DefaultImageColor\",435:\"T82Options\",437:\"JPEGTables\",512:\"JPEGProc\",513:\"ThumbnailOffset\",514:\"ThumbnailLength\",515:\"JPEGRestartInterval\",517:\"JPEGLosslessPredictors\",518:\"JPEGPointTransforms\",519:\"JPEGQTables\",520:\"JPEGDCTables\",521:\"JPEGACTables\",529:\"YCbCrCoefficients\",530:\"YCbCrSubSampling\",531:\"YCbCrPositioning\",532:\"ReferenceBlackWhite\",559:\"StripRowCounts\",700:\"ApplicationNotes\",999:\"USPTOMiscellaneous\",4096:\"RelatedImageFileFormat\",4097:\"RelatedImageWidth\",4098:\"RelatedImageHeight\",18246:\"Rating\",18247:\"XP_DIP_XML\",18248:\"StitchInfo\",18249:\"RatingPercent\",32781:\"ImageID\",32931:\"WangTag1\",32932:\"WangAnnotation\",32933:\"WangTag3\",32934:\"WangTag4\",32995:\"Matteing\",32996:\"DataType\",32997:\"ImageDepth\",32998:\"TileDepth\",33405:\"Model2\",33421:\"CFARepeatPatternDim\",33422:\"CFAPattern2\",33423:\"BatteryLevel\",33424:\"KodakIFD\",33432:\"Copyright\",33434:\"ExposureTime\",33437:\"FNumber\",33445:\"MDFileTag\",33446:\"MDScalePixel\",33447:\"MDColorTable\",33448:\"MDLabName\",33449:\"MDSampleInfo\",33450:\"MDPrepDate\",33451:\"MDPrepTime\",33452:\"MDFileUnits\",33550:\"PixelScale\",33589:\"AdventScale\",33590:\"AdventRevision\",33628:\"UIC1Tag\",33629:\"UIC2Tag\",33630:\"UIC3Tag\",33631:\"UIC4Tag\",33723:\"IPTC-NAA\",33918:\"IntergraphPacketData\",33919:\"IntergraphFlagRegisters\",33920:\"IntergraphMatrix\",33921:\"INGRReserved\",33922:\"ModelTiePoint\",34016:\"Site\",34017:\"ColorSequence\",34018:\"IT8Header\",34019:\"RasterPadding\",34020:\"BitsPerRunLength\",34021:\"BitsPerExtendedRunLength\",34022:\"ColorTable\",34023:\"ImageColorIndicator\",34024:\"BackgroundColorIndicator\",34025:\"ImageColorValue\",34026:\"BackgroundColorValue\",34027:\"PixelIntensityRange\",34028:\"TransparencyIndicator\",34029:\"ColorCharacterization\",34030:\"HCUsage\",34031:\"TrapIndicator\",34032:\"CMYKEquivalent\",34118:\"SEMInfo\",34152:\"AFCP_IPTC\",34232:\"PixelMagicJBIGOptions\",34264:\"ModelTransform\",34306:\"WB_GRGBLevels\",34310:\"LeafData\",34377:\"PhotoshopSettings\",34665:\"ExifOffset\",34675:\"ICC_Profile\",34687:\"TIFF_FXExtensions\",34688:\"MultiProfiles\",34689:\"SharedData\",34690:\"T88Options\",34732:\"ImageLayer\",34735:\"GeoTiffDirectory\",34736:\"GeoTiffDoubleParams\",34737:\"GeoTiffAsciiParams\",34850:\"ExposureProgram\",34852:\"SpectralSensitivity\",34853:\"GPSInfo\",34855:\"ISO\",34856:\"Opto-ElectricConvFactor\",34857:\"Interlace\",34858:\"TimeZoneOffset\",34859:\"SelfTimerMode\",34864:\"SensitivityType\",34865:\"StandardOutputSensitivity\",34866:\"RecommendedExposureIndex\",34867:\"ISOSpeed\",34868:\"ISOSpeedLatitudeyyy\",34869:\"ISOSpeedLatitudezzz\",34908:\"FaxRecvParams\",34909:\"FaxSubAddress\",34910:\"FaxRecvTime\",34954:\"LeafSubIFD\",36864:\"ExifVersion\",36867:\"DateTimeOriginal\",36868:\"CreateDate\",37121:\"ComponentsConfiguration\",37122:\"CompressedBitsPerPixel\",37377:\"ShutterSpeedValue\",37378:\"ApertureValue\",37379:\"BrightnessValue\",37380:\"ExposureCompensation\",37381:\"MaxApertureValue\",37382:\"SubjectDistance\",37383:\"MeteringMode\",37384:\"LightSource\",37385:\"Flash\",37386:\"FocalLength\",37387:\"FlashEnergy\",37388:\"SpatialFrequencyResponse\",37389:\"Noise\",37390:\"FocalPlaneXResolution\",37391:\"FocalPlaneYResolution\",37392:\"FocalPlaneResolutionUnit\",37393:\"ImageNumber\",37394:\"SecurityClassification\",37395:\"ImageHistory\",37396:\"SubjectArea\",37397:\"ExposureIndex\",37398:\"TIFF-EPStandardID\",37399:\"SensingMethod\",37434:\"CIP3DataFile\",37435:\"CIP3Sheet\",37436:\"CIP3Side\",37439:\"StoNits\",37500:\"MakerNote\",37510:\"UserComment\",37520:\"SubSecTime\",37521:\"SubSecTimeOriginal\",37522:\"SubSecTimeDigitized\",37679:\"MSDocumentText\",37680:\"MSPropertySetStorage\",37681:\"MSDocumentTextPosition\",37724:\"ImageSourceData\",40091:\"XPTitle\",40092:\"XPComment\",40093:\"XPAuthor\",40094:\"XPKeywords\",40095:\"XPSubject\",40960:\"FlashpixVersion\",40961:\"ColorSpace\",40962:\"ExifImageWidth\",40963:\"ExifImageHeight\",40964:\"RelatedSoundFile\",40965:\"InteropOffset\",41483:\"FlashEnergy\",41484:\"SpatialFrequencyResponse\",41485:\"Noise\",41486:\"FocalPlaneXResolution\",41487:\"FocalPlaneYResolution\",41488:\"FocalPlaneResolutionUnit\",41489:\"ImageNumber\",41490:\"SecurityClassification\",41491:\"ImageHistory\",41492:\"SubjectLocation\",41493:\"ExposureIndex\",41494:\"TIFF-EPStandardID\",41495:\"SensingMethod\",41728:\"FileSource\",41729:\"SceneType\",41730:\"CFAPattern\",41985:\"CustomRendered\",41986:\"ExposureMode\",41987:\"WhiteBalance\",41988:\"DigitalZoomRatio\",41989:\"FocalLengthIn35mmFormat\",41990:\"SceneCaptureType\",41991:\"GainControl\",41992:\"Contrast\",41993:\"Saturation\",41994:\"Sharpness\",41995:\"DeviceSettingDescription\",41996:\"SubjectDistanceRange\",42016:\"ImageUniqueID\",42032:\"OwnerName\",42033:\"SerialNumber\",42034:\"LensInfo\",42035:\"LensMake\",42036:\"LensModel\",42037:\"LensSerialNumber\",42112:\"GDALMetadata\",42113:\"GDALNoData\",42240:\"Gamma\",44992:\"ExpandSoftware\",44993:\"ExpandLens\",44994:\"ExpandFilm\",44995:\"ExpandFilterLens\",44996:\"ExpandScanner\",44997:\"ExpandFlashLamp\",48129:\"PixelFormat\",48130:\"Transformation\",48131:\"Uncompressed\",48132:\"ImageType\",48256:\"ImageWidth\",48257:\"ImageHeight\",48258:\"WidthResolution\",48259:\"HeightResolution\",48320:\"ImageOffset\",48321:\"ImageByteCount\",48322:\"AlphaOffset\",48323:\"AlphaByteCount\",48324:\"ImageDataDiscard\",48325:\"AlphaDataDiscard\",50215:\"OceScanjobDesc\",50216:\"OceApplicationSelector\",50217:\"OceIDNumber\",50218:\"OceImageLogic\",50255:\"Annotations\",50341:\"PrintIM\",50560:\"USPTOOriginalContentType\",50706:\"DNGVersion\",50707:\"DNGBackwardVersion\",50708:\"UniqueCameraModel\",50709:\"LocalizedCameraModel\",50710:\"CFAPlaneColor\",50711:\"CFALayout\",50712:\"LinearizationTable\",50713:\"BlackLevelRepeatDim\",50714:\"BlackLevel\",50715:\"BlackLevelDeltaH\",50716:\"BlackLevelDeltaV\",50717:\"WhiteLevel\",50718:\"DefaultScale\",50719:\"DefaultCropOrigin\",50720:\"DefaultCropSize\",50721:\"ColorMatrix1\",50722:\"ColorMatrix2\",50723:\"CameraCalibration1\",50724:\"CameraCalibration2\",50725:\"ReductionMatrix1\",50726:\"ReductionMatrix2\",50727:\"AnalogBalance\",50728:\"AsShotNeutral\",50729:\"AsShotWhiteXY\",50730:\"BaselineExposure\",50731:\"BaselineNoise\",50732:\"BaselineSharpness\",50733:\"BayerGreenSplit\",50734:\"LinearResponseLimit\",50735:\"CameraSerialNumber\",50736:\"DNGLensInfo\",50737:\"ChromaBlurRadius\",50738:\"AntiAliasStrength\",50739:\"ShadowScale\",50740:\"DNGPrivateData\",50741:\"MakerNoteSafety\",50752:\"RawImageSegmentation\",50778:\"CalibrationIlluminant1\",50779:\"CalibrationIlluminant2\",50780:\"BestQualityScale\",50781:\"RawDataUniqueID\",50784:\"AliasLayerMetadata\",50827:\"OriginalRawFileName\",50828:\"OriginalRawFileData\",50829:\"ActiveArea\",50830:\"MaskedAreas\",50831:\"AsShotICCProfile\",50832:\"AsShotPreProfileMatrix\",50833:\"CurrentICCProfile\",50834:\"CurrentPreProfileMatrix\",50879:\"ColorimetricReference\",50898:\"PanasonicTitle\",50899:\"PanasonicTitle2\",50931:\"CameraCalibrationSig\",50932:\"ProfileCalibrationSig\",50933:\"ProfileIFD\",50934:\"AsShotProfileName\",50935:\"NoiseReductionApplied\",50936:\"ProfileName\",50937:\"ProfileHueSatMapDims\",50938:\"ProfileHueSatMapData1\",50939:\"ProfileHueSatMapData2\",50940:\"ProfileToneCurve\",50941:\"ProfileEmbedPolicy\",50942:\"ProfileCopyright\",50964:\"ForwardMatrix1\",50965:\"ForwardMatrix2\",50966:\"PreviewApplicationName\",50967:\"PreviewApplicationVersion\",50968:\"PreviewSettingsName\",50969:\"PreviewSettingsDigest\",50970:\"PreviewColorSpace\",50971:\"PreviewDateTime\",50972:\"RawImageDigest\",50973:\"OriginalRawFileDigest\",50974:\"SubTileBlockSize\",50975:\"RowInterleaveFactor\",50981:\"ProfileLookTableDims\",50982:\"ProfileLookTableData\",51008:\"OpcodeList1\",51009:\"OpcodeList2\",51022:\"OpcodeList3\",51041:\"NoiseProfile\",51043:\"TimeCodes\",51044:\"FrameRate\",51058:\"TStop\",51081:\"ReelName\",51089:\"OriginalDefaultFinalSize\",51090:\"OriginalBestQualitySize\",51091:\"OriginalDefaultCropSize\",51105:\"CameraLabel\",51107:\"ProfileHueSatMapEncoding\",51108:\"ProfileLookTableEncoding\",51109:\"BaselineExposureOffset\",51110:\"DefaultBlackRender\",51111:\"NewRawImageDigest\",51112:\"RawToPreviewGain\",51125:\"DefaultUserCrop\",59932:\"Padding\",59933:\"OffsetSchema\",65e3:\"OwnerName\",65001:\"SerialNumber\",65002:\"Lens\",65024:\"KDC_IFD\",65100:\"RawFile\",65101:\"Converter\",65102:\"WhiteBalance\",65105:\"Exposure\",65106:\"Shadows\",65107:\"Brightness\",65108:\"Contrast\",65109:\"Saturation\",65110:\"Sharpness\",65111:\"Smoothness\",65112:\"MoireFilter\"},gps:{0:\"GPSVersionID\",1:\"GPSLatitudeRef\",2:\"GPSLatitude\",3:\"GPSLongitudeRef\",4:\"GPSLongitude\",5:\"GPSAltitudeRef\",6:\"GPSAltitude\",7:\"GPSTimeStamp\",8:\"GPSSatellites\",9:\"GPSStatus\",10:\"GPSMeasureMode\",11:\"GPSDOP\",12:\"GPSSpeedRef\",13:\"GPSSpeed\",14:\"GPSTrackRef\",15:\"GPSTrack\",16:\"GPSImgDirectionRef\",17:\"GPSImgDirection\",18:\"GPSMapDatum\",19:\"GPSDestLatitudeRef\",20:\"GPSDestLatitude\",21:\"GPSDestLongitudeRef\",22:\"GPSDestLongitude\",23:\"GPSDestBearingRef\",24:\"GPSDestBearing\",25:\"GPSDestDistanceRef\",26:\"GPSDestDistance\",27:\"GPSProcessingMethod\",28:\"GPSAreaInformation\",29:\"GPSDateStamp\",30:\"GPSDifferential\",31:\"GPSHPositioningError\"}}},function(t,e){function r(t,e,r,n,i,o){this.global=i,e=e||0,r=r||t.byteLength-e,this.arrayBuffer=t.slice(e,e+r),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(n),this.offset=0,this.parentOffset=(o||0)+e}r.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new r(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new r(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=r},function(t,e){function r(t,e,r,n){this.buffer=t,this.offset=e||0,r=\"number\"==typeof r?r:t.length,this.endPosition=this.offset+r,this.setBigEndian(n)}r.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString(\"utf8\",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new r(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.endPosition-(this.offset+t),new r(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=r},function(t,e,r){(function(e){function r(t){Math.round;var r,n,i,o,a,s=Math.floor,u=new Array(64),c=new Array(64),f=new Array(64),l=new Array(64),h=new Array(65535),p=new Array(65535),d=new Array(64),m=new Array(64),g=[],y=0,v=7,b=new Array(64),w=new Array(64),_=new Array(64),x=new Array(256),E=new Array(2048),A=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],D=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],M=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],C=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],O=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],F=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function B(t,e){for(var r=0,n=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=o,n++,r++;r*=2}return i}function I(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(y|=1<<v),r--,--v<0&&(255==y?(P(255),P(0)):P(y),v=7,y=0)}function P(t){g.push(t)}function L(t){P(t>>8&255),P(255&t)}function N(t,e,r,n,i){for(var o,a=i[0],s=i[240],u=function(t,e){var r,n,i,o,a,s,u,c,f,l,h=0;for(f=0;f<8;++f){r=t[h],n=t[h+1],i=t[h+2],o=t[h+3],a=t[h+4],s=t[h+5],u=t[h+6];var p=r+(c=t[h+7]),m=r-c,g=n+u,y=n-u,v=i+s,b=i-s,w=o+a,_=o-a,x=p+w,E=p-w,A=g+v,D=g-v;t[h]=x+A,t[h+4]=x-A;var k=.707106781*(D+E);t[h+2]=E+k,t[h+6]=E-k;var S=.382683433*((x=_+b)-(D=y+m)),M=.5411961*x+S,C=1.306562965*D+S,T=.707106781*(A=b+y),O=m+T,F=m-T;t[h+5]=F+M,t[h+3]=F-M,t[h+1]=O+C,t[h+7]=O-C,h+=8}for(h=0,f=0;f<8;++f){r=t[h],n=t[h+8],i=t[h+16],o=t[h+24],a=t[h+32],s=t[h+40],u=t[h+48];var B=r+(c=t[h+56]),I=r-c,P=n+u,L=n-u,N=i+s,j=i-s,R=o+a,z=o-a,U=B+R,G=B-R,H=P+N,q=P-N;t[h]=U+H,t[h+32]=U-H;var Z=.707106781*(q+G);t[h+16]=G+Z,t[h+48]=G-Z;var W=.382683433*((U=z+j)-(q=L+I)),Y=.5411961*U+W,X=1.306562965*q+W,$=.707106781*(H=j+L),V=I+$,J=I-$;t[h+40]=J+Y,t[h+24]=J-Y,t[h+8]=V+X,t[h+56]=V-X,h++}for(f=0;f<64;++f)l=t[f]*e[f],d[f]=l>0?l+.5|0:l-.5|0;return d}(t,e),c=0;c<64;++c)m[A[c]]=u[c];var f=m[0]-r;r=m[0],0==f?I(n[0]):(I(n[p[o=32767+f]]),I(h[o]));for(var l=63;l>0&&0==m[l];l--);if(0==l)return I(a),r;for(var g,y=1;y<=l;){for(var v=y;0==m[y]&&y<=l;++y);var b=y-v;if(b>=16){g=b>>4;for(var w=1;w<=g;++w)I(s);b&=15}o=32767+m[y],I(i[(b<<4)+p[o]]),I(h[o]),y++}return 63!=l&&I(a),r}function j(t){if(t<=0&&(t=1),t>100&&(t=100),a!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=s((e[r]*t+50)/100);n<1?n=1:n>255&&(n=255),u[A[r]]=n}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var a=s((i[o]*t+50)/100);a<1?a=1:a>255&&(a=255),c[A[o]]=a}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,d=0;d<8;d++)for(var m=0;m<8;m++)f[p]=1/(u[A[p]]*h[d]*h[m]*8),l[p]=1/(c[A[p]]*h[d]*h[m]*8),p++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t}}this.encode=function(t,a){var s;(new Date).getTime();a&&j(a),g=new Array,y=0,v=7,L(65496),L(65504),L(16),P(74),P(70),P(73),P(70),P(0),P(1),P(1),P(0),L(1),L(1),P(0),P(0),void 0!==(s=t.comments)&&s.constructor===Array&&s.forEach((function(t){if(\"string\"==typeof t){L(65534);var e,r=t.length;for(L(r+2),e=0;e<r;e++)P(t.charCodeAt(e))}})),function(t){if(t){L(65505),69===t[0]&&120===t[1]&&105===t[2]&&102===t[3]?L(t.length+2):(L(t.length+5+2),P(69),P(120),P(105),P(102),P(0));for(var e=0;e<t.length;e++)P(t[e])}}(t.exifBuffer),function(){L(65499),L(132),P(0);for(var t=0;t<64;t++)P(u[t]);P(1);for(var e=0;e<64;e++)P(c[e])}(),function(t,e){L(65472),L(17),P(8),L(e),L(t),P(3),P(1),P(17),P(0),P(2),P(17),P(1),P(3),P(17),P(1)}(t.width,t.height),function(){L(65476),L(418),P(0);for(var t=0;t<16;t++)P(D[t+1]);for(var e=0;e<=11;e++)P(k[e]);P(16);for(var r=0;r<16;r++)P(S[r+1]);for(var n=0;n<=161;n++)P(M[n]);P(1);for(var i=0;i<16;i++)P(C[i+1]);for(var o=0;o<=11;o++)P(T[o]);P(17);for(var a=0;a<16;a++)P(O[a+1]);for(var s=0;s<=161;s++)P(F[s])}(),L(65498),L(12),P(3),P(1),P(0),P(2),P(17),P(3),P(17),P(0),P(63),P(0);var h=0,p=0,d=0;y=0,v=7,this.encode.displayName=\"_encode_\";for(var m,x,A,B,R,z,U,G,H,q=t.data,Z=t.width,W=t.height,Y=4*Z,X=0;X<W;){for(m=0;m<Y;){for(z=R=Y*X+m,U=-1,G=0,H=0;H<64;H++)z=R+(G=H>>3)*Y+(U=4*(7&H)),X+G>=W&&(z-=Y*(X+1+G-W)),m+U>=Y&&(z-=m+U-Y+4),x=q[z++],A=q[z++],B=q[z++],b[H]=(E[x]+E[A+256|0]+E[B+512|0]>>16)-128,w[H]=(E[x+768|0]+E[A+1024|0]+E[B+1280|0]>>16)-128,_[H]=(E[x+1280|0]+E[A+1536|0]+E[B+1792|0]>>16)-128;h=N(b,f,h,r,i),p=N(w,l,p,n,o),d=N(_,l,d,n,o),m+=32}X+=8}if(v>=0){var $=[];$[1]=v+1,$[0]=(1<<v+1)-1,I($)}return L(65497),e.from(g)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),r=B(D,k),n=B(C,T),i=B(S,M),o=B(O,F),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)p[32767+n]=r,h[32767+n]=[],h[32767+n][1]=r,h[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)p[32767+i]=r,h[32767+i]=[],h[32767+i][1]=r,h[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)E[t]=19595*t,E[t+256|0]=38470*t,E[t+512|0]=7471*t+32768,E[t+768|0]=-11059*t,E[t+1024|0]=-21709*t,E[t+1280|0]=32768*t+8421375,E[t+1536|0]=-27439*t,E[t+1792|0]=-5329*t}(),j(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new r(e).encode(t,e),width:t.width,height:t.height}}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,r){var n;return n=function(t,e){if(\"object\"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=o(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(n)?n:n+\"\")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}var a=function(){\"use strict\";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,r=799,n=3406,i=2276,a=1567,s=3784,u=5793,c=2896;function f(){}function l(t,e){for(var r,n,i=0,o=[],a=16;a>0&&!t[a-1];)a--;o.push({children:[],index:0});var s,u=o[0];for(r=0;r<a;r++){for(n=0;n<t[r];n++){for((u=o.pop()).children[u.index]=e[i];u.index>0;){if(0===o.length)throw new Error(\"Could not recreate Huffman Table\");u=o.pop()}for(u.index++,o.push(u);o.length<=r;)o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}r+1<a&&(o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return o[0].children}function h(e,r,n,i,a,s,u,c,f,l){n.precision,n.samplesPerLine,n.scanLines;var h=n.mcusPerLine,p=n.progressive,d=(n.maxH,n.maxV,r),m=0,g=0;function y(){if(g>0)return g--,m>>g&1;if(255==(m=e[r++])){var t=e[r++];if(t)throw new Error(\"unexpected marker: \"+(m<<8|t).toString(16))}return g=7,m>>>7}function v(t){for(var e,r=t;null!==(e=y());){if(\"number\"==typeof(r=r[e]))return r;if(\"object\"!==o(r))throw new Error(\"invalid huffman sequence\")}return null}function b(t){for(var e=0;t>0;){var r=y();if(null===r)return;e=e<<1|r,t--}return e}function w(t){var e=b(t);return e>=1<<t-1?e:e+(-1<<t)+1}var _=0;var x,E=0;function A(t,e,r,n,i){var o=r%h,a=(r/h|0)*t.v+n,s=o*t.h+i;void 0===t.blocks[a]&&l.tolerantDecoding||e(t,t.blocks[a][s])}function D(t,e,r){var n=r/t.blocksPerLine|0,i=r%t.blocksPerLine;void 0===t.blocks[n]&&l.tolerantDecoding||e(t,t.blocks[n][i])}var k,S,M,C,T,O,F=i.length;O=p?0===s?0===c?function(t,e){var r=v(t.huffmanTableDC),n=0===r?0:w(r)<<f;e[0]=t.pred+=n}:function(t,e){e[0]|=y()<<f}:0===c?function(e,r){if(_>0)_--;else for(var n=s,i=u;n<=i;){var o=v(e.huffmanTableAC),a=15&o,c=o>>4;if(0!==a)r[t[n+=c]]=w(a)*(1<<f),n++;else{if(c<15){_=b(c)+(1<<c)-1;break}n+=16}}}:function(e,r){for(var n=s,i=u,o=0;n<=i;){var a=t[n],c=r[a]<0?-1:1;switch(E){case 0:var l=v(e.huffmanTableAC),h=15&l;if(o=l>>4,0===h)o<15?(_=b(o)+(1<<o),E=4):(o=16,E=1);else{if(1!==h)throw new Error(\"invalid ACn encoding\");x=w(h),E=o?2:3}continue;case 1:case 2:r[a]?r[a]+=(y()<<f)*c:0==--o&&(E=2==E?3:0);break;case 3:r[a]?r[a]+=(y()<<f)*c:(r[a]=x<<f,E=0);break;case 4:r[a]&&(r[a]+=(y()<<f)*c)}n++}4===E&&0==--_&&(E=0)}:function(e,r){var n=v(e.huffmanTableDC),i=0===n?0:w(n);r[0]=e.pred+=i;for(var o=1;o<64;){var a=v(e.huffmanTableAC),s=15&a,u=a>>4;if(0!==s)r[t[o+=u]]=w(s),o++;else{if(u<15)break;o+=16}}};var B,I,P,L,N=0;for(I=1==F?i[0].blocksPerLine*i[0].blocksPerColumn:h*n.mcusPerColumn,a||(a=I);N<I;){for(S=0;S<F;S++)i[S].pred=0;if(_=0,1==F)for(k=i[0],T=0;T<a;T++)D(k,O,N),N++;else for(T=0;T<a;T++){for(S=0;S<F;S++)for(P=(k=i[S]).h,L=k.v,M=0;M<L;M++)for(C=0;C<P;C++)A(k,O,N,M,C);if(++N===I)break}if(N===I)do{if(255===e[r]&&0!==e[r+1])break;r+=1}while(r<e.length-2);if(g=0,(B=e[r]<<8|e[r+1])<65280)throw new Error(\"marker was not found\");if(!(B>=65488&&B<=65495))break;r+=2}return r-d}function p(t,o){var f,l,h=[],p=o.blocksPerLine,d=o.blocksPerColumn,m=p<<3,g=new Int32Array(64),v=new Uint8Array(64);function b(t,f,l){var h,p,d,m,g,y,v,b,w,_,x=o.quantizationTable,E=l;for(_=0;_<64;_++)E[_]=t[_]*x[_];for(_=0;_<8;++_){var A=8*_;0!=E[1+A]||0!=E[2+A]||0!=E[3+A]||0!=E[4+A]||0!=E[5+A]||0!=E[6+A]||0!=E[7+A]?(h=u*E[0+A]+128>>8,p=u*E[4+A]+128>>8,d=E[2+A],m=E[6+A],g=c*(E[1+A]-E[7+A])+128>>8,b=c*(E[1+A]+E[7+A])+128>>8,y=E[3+A]<<4,v=E[5+A]<<4,w=h-p+1>>1,h=h+p+1>>1,p=w,w=d*s+m*a+128>>8,d=d*a-m*s+128>>8,m=w,w=g-v+1>>1,g=g+v+1>>1,v=w,w=b+y+1>>1,y=b-y+1>>1,b=w,w=h-m+1>>1,h=h+m+1>>1,m=w,w=p-d+1>>1,p=p+d+1>>1,d=w,w=g*i+b*n+2048>>12,g=g*n-b*i+2048>>12,b=w,w=y*r+v*e+2048>>12,y=y*e-v*r+2048>>12,v=w,E[0+A]=h+b,E[7+A]=h-b,E[1+A]=p+v,E[6+A]=p-v,E[2+A]=d+y,E[5+A]=d-y,E[3+A]=m+g,E[4+A]=m-g):(w=u*E[0+A]+512>>10,E[0+A]=w,E[1+A]=w,E[2+A]=w,E[3+A]=w,E[4+A]=w,E[5+A]=w,E[6+A]=w,E[7+A]=w)}for(_=0;_<8;++_){var D=_;0!=E[8+D]||0!=E[16+D]||0!=E[24+D]||0!=E[32+D]||0!=E[40+D]||0!=E[48+D]||0!=E[56+D]?(h=u*E[0+D]+2048>>12,p=u*E[32+D]+2048>>12,d=E[16+D],m=E[48+D],g=c*(E[8+D]-E[56+D])+2048>>12,b=c*(E[8+D]+E[56+D])+2048>>12,y=E[24+D],v=E[40+D],w=h-p+1>>1,h=h+p+1>>1,p=w,w=d*s+m*a+2048>>12,d=d*a-m*s+2048>>12,m=w,w=g-v+1>>1,g=g+v+1>>1,v=w,w=b+y+1>>1,y=b-y+1>>1,b=w,w=h-m+1>>1,h=h+m+1>>1,m=w,w=p-d+1>>1,p=p+d+1>>1,d=w,w=g*i+b*n+2048>>12,g=g*n-b*i+2048>>12,b=w,w=y*r+v*e+2048>>12,y=y*e-v*r+2048>>12,v=w,E[0+D]=h+b,E[56+D]=h-b,E[8+D]=p+v,E[48+D]=p-v,E[16+D]=d+y,E[40+D]=d-y,E[24+D]=m+g,E[32+D]=m-g):(w=u*l[_+0]+8192>>14,E[0+D]=w,E[8+D]=w,E[16+D]=w,E[24+D]=w,E[32+D]=w,E[40+D]=w,E[48+D]=w,E[56+D]=w)}for(_=0;_<64;++_){var k=128+(E[_]+8>>4);f[_]=k<0?0:k>255?255:k}}y(m*d*8);for(var w=0;w<d;w++){var _=w<<3;for(f=0;f<8;f++)h.push(new Uint8Array(m));for(var x=0;x<p;x++){b(o.blocks[w][x],v,g);var E=0,A=x<<3;for(l=0;l<8;l++){var D=h[_+l];for(f=0;f<8;f++)D[A+f]=v[E++]}}}return h}function d(t){return t<0?0:t>255?255:t}f.prototype={load:function(t){var e=new XMLHttpRequest;e.open(\"GET\",t,!0),e.responseType=\"arraybuffer\",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var r=1e3*this.opts.maxResolutionInMP*1e3,n=0;e.length;function i(){var t=e[n]<<8|e[n+1];return n+=2,t}function o(){var t=i(),r=e.subarray(n,n+t-2);return n+=r.length,r}function a(t){var e,r,n=1,i=1;for(r in t.components)t.components.hasOwnProperty(r)&&(n<(e=t.components[r]).h&&(n=e.h),i<e.v&&(i=e.v));var o=Math.ceil(t.samplesPerLine/8/n),a=Math.ceil(t.scanLines/8/i);for(r in t.components)if(t.components.hasOwnProperty(r)){e=t.components[r];var s=Math.ceil(Math.ceil(t.samplesPerLine/8)*e.h/n),u=Math.ceil(Math.ceil(t.scanLines/8)*e.v/i),c=o*e.h,f=a*e.v,l=[];y(256*(f*c));for(var h=0;h<f;h++){for(var p=[],d=0;d<c;d++)p.push(new Int32Array(64));l.push(p)}e.blocksPerLine=s,e.blocksPerColumn=u,e.blocks=l}t.maxH=n,t.maxV=i,t.mcusPerLine=o,t.mcusPerColumn=a}var s,u,c=null,f=null,d=[],m=[],g=[],v=[],b=i(),w=-1;if(this.comments=[],65496!=b)throw new Error(\"SOI not found\");for(b=i();65497!=b;){switch(b){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var _=o();if(65534===b){var x=String.fromCharCode.apply(null,_);this.comments.push(x)}65504===b&&74===_[0]&&70===_[1]&&73===_[2]&&70===_[3]&&0===_[4]&&(c={version:{major:_[5],minor:_[6]},densityUnits:_[7],xDensity:_[8]<<8|_[9],yDensity:_[10]<<8|_[11],thumbWidth:_[12],thumbHeight:_[13],thumbData:_.subarray(14,14+3*_[12]*_[13])}),65505===b&&69===_[0]&&120===_[1]&&105===_[2]&&102===_[3]&&0===_[4]&&(this.exifBuffer=_.subarray(5,_.length)),65518===b&&65===_[0]&&100===_[1]&&111===_[2]&&98===_[3]&&101===_[4]&&0===_[5]&&(f={version:_[6],flags0:_[7]<<8|_[8],flags1:_[9]<<8|_[10],transformCode:_[11]});break;case 65499:for(var E=i()+n-2;n<E;){var A=e[n++];y(256);var D=new Int32Array(64);if(A>>4){if(A>>4!=1)throw new Error(\"DQT: invalid table spec\");for(X=0;X<64;X++){D[t[X]]=i()}}else for(X=0;X<64;X++){D[t[X]]=e[n++]}d[15&A]=D}break;case 65472:case 65473:case 65474:i(),(s={}).extended=65473===b,s.progressive=65474===b,s.precision=e[n++],s.scanLines=i(),s.samplesPerLine=i(),s.components={},s.componentsOrder=[];var k=s.scanLines*s.samplesPerLine;if(k>r){var S=Math.ceil((k-r)/1e6);throw new Error(\"maxResolutionInMP limit exceeded by \".concat(S,\"MP\"))}var M,C=e[n++];for(W=0;W<C;W++){M=e[n];var T=e[n+1]>>4,O=15&e[n+1],F=e[n+2];if(T<=0||O<=0)throw new Error(\"Invalid sampling factor, expected values above 0\");s.componentsOrder.push(M),s.components[M]={h:T,v:O,quantizationIdx:F},n+=3}a(s),m.push(s);break;case 65476:var B=i();for(W=2;W<B;){var I=e[n++],P=new Uint8Array(16),L=0;for(X=0;X<16;X++,n++)L+=P[X]=e[n];y(16+L);var N=new Uint8Array(L);for(X=0;X<L;X++,n++)N[X]=e[n];W+=17+L,(I>>4?g:v)[15&I]=l(P,N)}break;case 65501:i(),u=i();break;case 65500:i(),i();break;case 65498:i();var j=e[n++],R=[];for(W=0;W<j;W++){$=s.components[e[n++]];var z=e[n++];$.huffmanTableDC=v[z>>4],$.huffmanTableAC=g[15&z],R.push($)}var U=e[n++],G=e[n++],H=e[n++],q=h(e,n,s,R,u,U,G,H>>4,15&H,this.opts);n+=q;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}if(224===b||225==b){if(-1!==w)throw new Error(\"first unknown JPEG marker at offset \".concat(w.toString(16),\", second unknown JPEG marker \").concat(b.toString(16),\" at offset \").concat((n-1).toString(16)));w=n-1;var Z=i();if(255===e[n+Z-2]){n+=Z-2;break}}throw new Error(\"unknown JPEG marker \"+b.toString(16))}b=i()}if(1!=m.length)throw new Error(\"only single frame JPEGs supported\");for(var W=0;W<m.length;W++){var Y=m[W].components;for(var X in Y)Y[X].quantizationTable=d[Y[X].quantizationIdx],delete Y[X].quantizationIdx}this.width=s.samplesPerLine,this.height=s.scanLines,this.jfif=c,this.adobe=f,this.components=[];for(W=0;W<s.componentsOrder.length;W++){var $=s.components[s.componentsOrder[W]];this.components.push({lines:p(0,$),scaleX:$.h/s.maxH,scaleY:$.v/s.maxV})}},getData:function(t,e){var r,n,i,o,a,s,u,c,f,l,h,p,m,g,v,b,w,_,x,E,A,D=this.width/t,k=this.height/e,S=0,M=t*e*this.components.length;y(M);var C=new Uint8Array(M);switch(this.components.length){case 1:for(r=this.components[0],l=0;l<e;l++)for(a=r.lines[0|l*r.scaleY*k],f=0;f<t;f++)h=a[0|f*r.scaleX*D],C[S++]=h;break;case 2:for(r=this.components[0],n=this.components[1],l=0;l<e;l++)for(a=r.lines[0|l*r.scaleY*k],s=n.lines[0|l*n.scaleY*k],f=0;f<t;f++)h=a[0|f*r.scaleX*D],C[S++]=h,h=s[0|f*n.scaleX*D],C[S++]=h;break;case 3:for(A=!0,this.adobe&&this.adobe.transformCode?A=!0:void 0!==this.opts.colorTransform&&(A=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],l=0;l<e;l++)for(a=r.lines[0|l*r.scaleY*k],s=n.lines[0|l*n.scaleY*k],u=i.lines[0|l*i.scaleY*k],f=0;f<t;f++)A?(h=a[0|f*r.scaleX*D],p=s[0|f*n.scaleX*D],_=d(h+1.402*((m=u[0|f*i.scaleX*D])-128)),x=d(h-.3441363*(p-128)-.71413636*(m-128)),E=d(h+1.772*(p-128))):(_=a[0|f*r.scaleX*D],x=s[0|f*n.scaleX*D],E=u[0|f*i.scaleX*D]),C[S++]=_,C[S++]=x,C[S++]=E;break;case 4:if(!this.adobe)throw new Error(\"Unsupported color mode (4 components)\");for(A=!1,this.adobe&&this.adobe.transformCode?A=!0:void 0!==this.opts.colorTransform&&(A=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],o=this.components[3],l=0;l<e;l++)for(a=r.lines[0|l*r.scaleY*k],s=n.lines[0|l*n.scaleY*k],u=i.lines[0|l*i.scaleY*k],c=o.lines[0|l*o.scaleY*k],f=0;f<t;f++)A?(h=a[0|f*r.scaleX*D],p=s[0|f*n.scaleX*D],m=u[0|f*i.scaleX*D],g=c[0|f*o.scaleX*D],v=255-d(h+1.402*(m-128)),b=255-d(h-.3441363*(p-128)-.71413636*(m-128)),w=255-d(h+1.772*(p-128))):(v=a[0|f*r.scaleX*D],b=s[0|f*n.scaleX*D],w=u[0|f*i.scaleX*D],g=c[0|f*o.scaleX*D]),C[S++]=255-v,C[S++]=255-b,C[S++]=255-w,C[S++]=255-g;break;default:throw new Error(\"Unsupported color mode\")}return C},copyToImageData:function(t,e){var r,n,i,o,a,s,u,c,f,l=t.width,h=t.height,p=t.data,m=this.getData(l,h),g=0,y=0;switch(this.components.length){case 1:for(n=0;n<h;n++)for(r=0;r<l;r++)i=m[g++],p[y++]=i,p[y++]=i,p[y++]=i,e&&(p[y++]=255);break;case 3:for(n=0;n<h;n++)for(r=0;r<l;r++)u=m[g++],c=m[g++],f=m[g++],p[y++]=u,p[y++]=c,p[y++]=f,e&&(p[y++]=255);break;case 4:for(n=0;n<h;n++)for(r=0;r<l;r++)a=m[g++],s=m[g++],i=m[g++],u=255-d(a*(1-(o=m[g++])/255)+o),c=255-d(s*(1-o/255)+o),f=255-d(i*(1-o/255)+o),p[y++]=u,p[y++]=c,p[y++]=f,e&&(p[y++]=255);break;default:throw new Error(\"Unsupported color mode\")}}};var m=0,g=0;function y(){var t=m+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0);if(t>g){var e=Math.ceil((t-g)/1024/1024);throw new Error(\"maxMemoryUsageInMB limit exceeded by at least \".concat(e,\"MB\"))}m=t}return f.resetMaxMemoryUsage=function(t){m=0,g=t},f.getBytesAllocated=function(){return m},f.requestMemoryAllocation=y,f}();t.exports=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n(n({},{colorTransform:void 0,useTArray:!1,formatAsRGBA:!0,tolerantDecoding:!0,maxResolutionInMP:100,maxMemoryUsageInMB:512}),r),o=new Uint8Array(t),s=new a;s.opts=i,a.resetMaxMemoryUsage(1024*i.maxMemoryUsageInMB*1024),s.parse(o);var u=i.formatAsRGBA?4:3,c=s.width*s.height*u;try{a.requestMemoryAllocation(c);var f={width:s.width,height:s.height,exifBuffer:s.exifBuffer,data:i.useTArray?new Uint8Array(c):e.alloc(c)};s.comments.length>0&&(f.comments=s.comments)}catch(t){if(t instanceof RangeError)throw new Error(\"Could not allocate enough memory for the image. Required: \"+c);if(t instanceof ReferenceError&&\"Buffer is not defined\"===t.message)throw new Error(\"Buffer is not globally defined in this environment. Consider setting useTArray to true\");throw t}return s.copyToImageData(f,i.formatAsRGBA),f}}).call(this,r(2).Buffer)},function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){return t&&\"object\"===r(t)&&\"function\"==typeof t.copy&&\"function\"==typeof t.fill&&\"function\"==typeof t.readUInt8}},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==r.call(t)}},function(t,e){},function(t,e,r){\"use strict\";var n=r(51).Buffer,i=r(149);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return\"\";for(var e=this.head,r=\"\"+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e,r,i,o=n.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,r=o,i=s,e.copy(r,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+\" \"+t})},function(t,e){},function(t,e,r){(function(t,e){!function(t,r){\"use strict\";if(!t.setImmediate){var n,i,o,a,s,u=1,c={},f=!1,l=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,\"[object process]\"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage(\"\",\"*\"),t.onmessage=r,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},n=function(t){o.port2.postMessage(t)}):l&&\"onreadystatechange\"in l.createElement(\"script\")?(i=l.documentElement,n=function(t){var e=l.createElement(\"script\");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):n=function(t){setTimeout(d,0,t)}:(a=\"setImmediate$\"+Math.random()+\"$\",s=function(e){e.source===t&&\"string\"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener(\"message\",s,!1):t.attachEvent(\"onmessage\",s),n=function(e){t.postMessage(a+e,\"*\")}),h.setImmediate=function(t){\"function\"!=typeof t&&(t=new Function(\"\"+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return c[u]=i,n(u),u++},h.clearImmediate=p}function p(t){delete c[t]}function d(t){if(f)setTimeout(d,0,t);else{var e=c[t];if(e){f=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(r,n)}}(e)}finally{p(t),f=!1}}}}}(\"undefined\"==typeof self?void 0===t?this:t:self)}).call(this,r(10),r(7))},function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&\"true\"===String(r).toLowerCase()}t.exports=function(t,e){if(r(\"noDeprecation\"))return t;var n=!1;return function(){if(!n){if(r(\"throwDeprecation\"))throw new Error(e);r(\"traceDeprecation\")&&console.trace(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(10))},function(t,e,r){var n=r(2),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,r)},a.alloc=function(t,e,r){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var n=i(t);return void 0!==e?\"string\"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},a.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return n.SlowBuffer(t)}},function(t,e,r){\"use strict\";t.exports=o;var n=r(74),i=Object.create(r(27));function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=r(24),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){t.exports=r(52)},function(t,e,r){t.exports=r(18)},function(t,e,r){t.exports=r(50).Transform},function(t,e,r){t.exports=r(50).PassThrough},function(t,e,r){\"use strict\";var n=r(14),i=r(28),o=r(81),a=r(186),s=r(85),u=r(87),c=r(88),f=t.exports=function(t){o.call(this),this._parser=new s(t,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,\"gamma\"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=t,this.writable=!0,this._parser.start()};n.inherits(f,o),f.prototype._handleError=function(t){this.emit(\"error\",t),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on(\"error\",(function(){}))),this.errord=!0},f.prototype._inflateData=function(t){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i.createInflate(),this._inflate.on(\"error\",this.emit.bind(this,\"error\")),this._filter.on(\"complete\",this._complete.bind(this)),this._inflate.pipe(this._filter);else{var e=(1+(this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3))*this._bitmapInfo.height,r=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:r});var n=e,o=this.emit.bind(this,\"error\");this._inflate.on(\"error\",(function(t){n&&o(t)})),this._filter.on(\"complete\",this._complete.bind(this));var a=this._filter.write.bind(this._filter);this._inflate.on(\"data\",(function(t){n&&(t.length>n&&(t=t.slice(0,n)),n-=t.length,a(t))})),this._inflate.on(\"end\",this._filter.end.bind(this._filter))}this._inflate.write(t)},f.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new a(this._bitmapInfo)},f.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},f.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},f.prototype._simpleTransparency=function(){this._metaData.alpha=!0},f.prototype._headersFinished=function(){this.emit(\"metadata\",this._metaData)},f.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit(\"error\",\"No Inflate block\"))},f.prototype._complete=function(t){if(!this.errord){var e;try{var r=u.dataToBitMap(t,this._bitmapInfo);e=c(r,this._bitmapInfo,this._options.skipRescale),r=null}catch(t){return void this._handleError(t)}this.emit(\"parsed\",e)}}},function(t,e,r){\"use strict\";(function(t,n){var i=r(53),o=r(178),a=r(179),s=r(182),u=r(185);for(var c in u)e[c]=u[c];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;function f(t){if(\"number\"!=typeof t||t<e.DEFLATE||t>e.UNZIP)throw new TypeError(\"Bad argument\");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,\"close before init\"),i(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||s.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},f.prototype.write=function(t,e,r,n,i,o,a){return this._write(!0,t,e,r,n,i,o,a)},f.prototype.writeSync=function(t,e,r,n,i,o,a){return this._write(!1,t,e,r,n,i,o,a)},f.prototype._write=function(r,o,a,s,u,c,f,l){if(i.equal(arguments.length,8),i(this.init_done,\"write before init\"),i(this.mode!==e.NONE,\"already finalized\"),i.equal(!1,this.write_in_progress,\"write already in progress\"),i.equal(!1,this.pending_close,\"close is pending\"),this.write_in_progress=!0,i.equal(!1,void 0===o,\"must provide flush value\"),this.write_in_progress=!0,o!==e.Z_NO_FLUSH&&o!==e.Z_PARTIAL_FLUSH&&o!==e.Z_SYNC_FLUSH&&o!==e.Z_FULL_FLUSH&&o!==e.Z_FINISH&&o!==e.Z_BLOCK)throw new Error(\"Invalid flush value\");if(null==a&&(a=t.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=l,this.strm.output=c,this.strm.next_out=f,this.flush=o,!r)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return n.nextTick((function(){h._process(),h._after()})),this},f.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},f.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error(\"invalid number of gzip magic number bytes read\")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error(\"Unknown mode \"+this.mode)}},f.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error(\"unexpected end of file\"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error(\"Missing dictionary\"):this._error(\"Bad dictionary\"),!1;default:return this._error(\"Zlib error\"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},f.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(t,r,n,o,a){i(4===arguments.length||5===arguments.length,\"init(windowBits, level, memLevel, strategy, [dictionary])\"),i(t>=8&&t<=15,\"invalid windowBits\"),i(r>=-1&&r<=9,\"invalid compression level\"),i(n>=1&&n<=9,\"invalid memlevel\"),i(o===e.Z_FILTERED||o===e.Z_HUFFMAN_ONLY||o===e.Z_RLE||o===e.Z_FIXED||o===e.Z_DEFAULT_STRATEGY,\"invalid strategy\"),this._init(r,t,n,o,a),this._setDictionary()},f.prototype.params=function(){throw new Error(\"deflateParams Not supported\")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(t,r,n,i,u){switch(this.level=t,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error(\"Unknown mode \"+this.mode)}this.err!==e.Z_OK&&this._error(\"Init error\"),this.dictionary=u,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error(\"Failed to set dictionary\")}},f.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=a.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error(\"Failed to reset stream\")},e.Zlib=f}).call(this,r(2).Buffer,r(7))},function(t,e,r){\"use strict\";var n=r(161);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t=\"abcdefghijklmnopqrst\",e=t.split(\"\"),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),o=\"\";for(var a in i)o+=a;return t!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,\"xy\")}catch(e){return\"y\"===t[1]}return!1}()?n:Object.assign:n}},function(t,e,r){\"use strict\";var n=r(162),i=r(76)(),o=r(164),a=Object,s=o(\"Array.prototype.push\"),u=o(\"Object.prototype.propertyIsEnumerable\"),c=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError(\"target must be an object\");var r=a(t);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var f=a(arguments[o]),l=n(f),h=i&&(Object.getOwnPropertySymbols||c);if(h)for(var p=h(f),d=0;d<p.length;++d){var m=p[d];u(f,m)&&s(l,m)}for(var g=0;g<l.length;++g){var y=l[g];if(u(f,y)){var v=f[y];r[y]=v}}}return r}},function(t,e,r){\"use strict\";var n=Array.prototype.slice,i=r(75),o=Object.keys,a=o?function(t){return o(t)}:r(163),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=r(75),u=Object.prototype.propertyIsEnumerable,c=!u.call({toString:null},\"toString\"),f=u.call((function(){}),\"prototype\"),l=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],h=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(\"undefined\"==typeof window)return!1;for(var t in window)try{if(!p[\"$\"+t]&&o.call(window,t)&&null!==window[t]&&\"object\"===n(window[t]))try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();i=function(t){var e=null!==t&&\"object\"===n(t),r=\"[object Function]\"===a.call(t),i=s(t),u=e&&\"[object String]\"===a.call(t),p=[];if(!e&&!r&&!i)throw new TypeError(\"Object.keys called on a non-object\");var m=f&&r;if(u&&t.length>0&&!o.call(t,0))for(var g=0;g<t.length;++g)p.push(String(g));if(i&&t.length>0)for(var y=0;y<t.length;++y)p.push(String(y));else for(var v in t)m&&\"prototype\"===v||!o.call(t,v)||p.push(String(v));if(c)for(var b=function(t){if(\"undefined\"==typeof window||!d)return h(t);try{return h(t)}catch(t){return!1}}(t),w=0;w<l.length;++w)b&&\"constructor\"===l[w]||!o.call(t,l[w])||p.push(l[w]);return p}}t.exports=i},function(t,e,r){\"use strict\";var n=r(29),i=r(174),o=i(n(\"String.prototype.indexOf\"));t.exports=function(t,e){var r=n(t,!!e);return\"function\"==typeof r&&o(t,\".prototype.\")>-1?i(r):r}},function(t,e,r){\"use strict\";t.exports=Error},function(t,e,r){\"use strict\";t.exports=EvalError},function(t,e,r){\"use strict\";t.exports=RangeError},function(t,e,r){\"use strict\";t.exports=ReferenceError},function(t,e,r){\"use strict\";t.exports=URIError},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=\"undefined\"!=typeof Symbol&&Symbol,o=r(76);t.exports=function(){return\"function\"==typeof i&&(\"function\"==typeof Symbol&&(\"symbol\"===n(i(\"foo\"))&&(\"symbol\"===n(Symbol(\"bar\"))&&o())))}},function(t,e,r){\"use strict\";var n={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!(n instanceof i)}},function(t,e,r){\"use strict\";var n=Object.prototype.toString,i=Math.max,o=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var e=this;if(\"function\"!=typeof e||\"[object Function]\"!==n.apply(e))throw new TypeError(\"Function.prototype.bind called on incompatible \"+e);for(var r,a=function(t,e){for(var r=[],n=e||0,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r}(arguments,1),s=i(0,e.length-a.length),u=[],c=0;c<s;c++)u[c]=\"$\"+c;if(r=Function(\"binder\",\"return function (\"+function(t,e){for(var r=\"\",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(u,\",\")+\"){ return binder.apply(this,arguments); }\")((function(){if(this instanceof r){var n=e.apply(this,o(a,arguments));return Object(n)===n?n:this}return e.apply(t,o(a,arguments))})),e.prototype){var f=function(){};f.prototype=e.prototype,r.prototype=new f,f.prototype=null}return r}},function(t,e,r){\"use strict\";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(54);t.exports=o.call(n,i)},function(t,e,r){\"use strict\";var n=r(54),i=r(29),o=r(175),a=r(40),s=i(\"%Function.prototype.apply%\"),u=i(\"%Function.prototype.call%\"),c=i(\"%Reflect.apply%\",!0)||n.call(u,s),f=r(55),l=i(\"%Math.max%\");t.exports=function(t){if(\"function\"!=typeof t)throw new a(\"a function is required\");var e=c(n,u,arguments);return o(e,1+l(0,t.length-(arguments.length-1)),!0)};var h=function(){return c(n,s,arguments)};f?f(t.exports,\"apply\",{value:h}):t.exports.apply=h},function(t,e,r){\"use strict\";var n=r(29),i=r(176),o=r(177)(),a=r(78),s=r(40),u=n(\"%Math.floor%\");t.exports=function(t,e){if(\"function\"!=typeof t)throw new s(\"`fn` is not a function\");if(\"number\"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new s(\"`length` must be a positive 32-bit integer\");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if(\"length\"in t&&a){var f=a(t,\"length\");f&&!f.configurable&&(n=!1),f&&!f.writable&&(c=!1)}return(n||c||!r)&&(o?i(t,\"length\",e,!0,!0):i(t,\"length\",e)),t}},function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(55),o=r(77),a=r(40),s=r(78);t.exports=function(t,e,r){if(!t||\"object\"!==n(t)&&\"function\"!=typeof t)throw new a(\"`obj` must be an object or a function`\");if(\"string\"!=typeof e&&\"symbol\"!==n(e))throw new a(\"`property` must be a string or a symbol`\");if(arguments.length>3&&\"boolean\"!=typeof arguments[3]&&null!==arguments[3])throw new a(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&\"boolean\"!=typeof arguments[4]&&null!==arguments[4])throw new a(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&\"boolean\"!=typeof arguments[5]&&null!==arguments[5])throw new a(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&\"boolean\"!=typeof arguments[6])throw new a(\"`loose`, if provided, must be a boolean\");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],h=!!s&&s(t,e);if(i)i(t,e,{configurable:null===f&&h?h.configurable:!f,enumerable:null===u&&h?h.enumerable:!u,value:r,writable:null===c&&h?h.writable:!c});else{if(!l&&(u||c||f))throw new o(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\");t[e]=r}}},function(t,e,r){\"use strict\";var n=r(55),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],\"length\",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,r){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){\"use strict\";var n,i=r(41),o=r(180),a=r(79),s=r(80),u=r(181),c=0,f=4,l=0,h=-2,p=-1,d=4,m=2,g=8,y=9,v=286,b=30,w=19,_=2*v+1,x=15,E=3,A=258,D=A+E+1,k=42,S=103,M=113,C=666,T=1,O=2,F=3,B=4;function I(t,e){return t.msg=u[e],e}function P(t){return(t<<1)-(t>4?9:0)}function L(t){for(var e=t.length;--e>=0;)t[e]=0}function N(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function j(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,N(t.strm)}function R(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-D?t.strstart-(t.w_size-D):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+A,p=c[o+a-1],d=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===d&&c[r+a-1]===p&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=A-(h-o),o=h-A,n>a){if(t.match_start=e,a=n,n>=s)break;p=c[o+a-1],d=c[o+a]}}}while((e=l[e&f])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function G(t){var e,r,n,o,u,c,f,l,h,p,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-D)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--r);e=r=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--r);o+=d}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=o,p=void 0,(p=c.avail_in)>h&&(p=h),r=0===p?0:(c.avail_in-=p,i.arraySet(f,c.input,c.next_in,p,l),1===c.state.wrap?c.adler=a(c.adler,f,p,l):2===c.state.wrap&&(c.adler=s(c.adler,f,p,l)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=E)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+E-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<D&&0!==t.strm.avail_in)}function H(t,e){for(var r,n;;){if(t.lookahead<D){if(G(t),t.lookahead<D&&e===c)return T;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-D&&(t.match_length=U(t,r)),t.match_length>=E)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(j(t,!1),0===t.strm.avail_out))return T}return t.insert=t.strstart<E-1?t.strstart:E-1,e===f?(j(t,!0),0===t.strm.avail_out?F:B):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?T:O}function q(t,e){for(var r,n,i;;){if(t.lookahead<D){if(G(t),t.lookahead<D&&e===c)return T;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=E-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-D&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===E&&t.strstart-t.match_start>4096)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-E,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=E-1,t.strstart++,n&&(j(t,!1),0===t.strm.avail_out))return T}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&j(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return T}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,e===f?(j(t,!0),0===t.strm.avail_out?F:B):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?T:O}function Z(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*v+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?k:M,t.adler=2===e.wrap?0:1,e.last_flush=c,o._tr_init(e),l):I(t,h)}function X(t){var e,r=Y(t);return r===l&&((e=t.state).window_size=2*e.w_size,L(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=E-1,e.match_available=0,e.ins_h=0),r}function $(t,e,r,n,o,a){if(!t)return h;var s=1;if(e===p&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>y||r!==g||n<8||n>15||e<0||e>9||a<0||a>d)return I(t,h);8===n&&(n=9);var u=new W;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+E-1)/E),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=r,X(t)}n=[new Z(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(G(t),0===t.lookahead&&e===c)return T;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,j(t,!1),0===t.strm.avail_out))return T;if(t.strstart-t.block_start>=t.w_size-D&&(j(t,!1),0===t.strm.avail_out))return T}return t.insert=0,e===f?(j(t,!0),0===t.strm.avail_out?F:B):(t.strstart>t.block_start&&(j(t,!1),t.strm.avail_out),T)})),new Z(4,4,8,4,H),new Z(4,5,16,8,H),new Z(4,6,32,32,H),new Z(4,4,16,16,q),new Z(8,16,32,32,q),new Z(8,16,128,128,q),new Z(8,32,128,256,q),new Z(32,128,258,1024,q),new Z(32,258,258,4096,q)],e.deflateInit=function(t,e){return $(t,e,g,15,8,0)},e.deflateInit2=$,e.deflateReset=X,e.deflateResetKeep=Y,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,l):h},e.deflate=function(t,e){var r,i,a,u;if(!t||!t.state||e>5||e<0)return t?I(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===C&&e!==f)return I(t,0===t.avail_out?-5:h);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===k)if(2===i.wrap)t.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,3),i.status=M);else{var p=g+(i.w_bits-8<<4)<<8;p|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(p|=32),p+=31-p%31,i.status=M,z(i,p),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),N(t),a=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),N(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),N(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=S)}else i.status=S;if(i.status===S&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(t),i.pending+2<=i.pending_buf_size&&(R(i,255&t.adler),R(i,t.adler>>8&255),t.adler=0,i.status=M)):i.status=M),0!==i.pending){if(N(t),0===t.avail_out)return i.last_flush=-1,l}else if(0===t.avail_in&&P(e)<=P(r)&&e!==f)return I(t,-5);if(i.status===C&&0!==t.avail_in)return I(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==c&&i.status!==C){var d=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(G(t),0===t.lookahead)){if(e===c)return T;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(j(t,!1),0===t.strm.avail_out))return T}return t.insert=0,e===f?(j(t,!0),0===t.strm.avail_out?F:B):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?T:O}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=A){if(G(t),t.lookahead<=A&&e===c)return T;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+A;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=A-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=o._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(j(t,!1),0===t.strm.avail_out))return T}return t.insert=0,e===f?(j(t,!0),0===t.strm.avail_out?F:B):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?T:O}(i,e):n[i.level].func(i,e);if(d!==F&&d!==B||(i.status=C),d===T||d===F)return 0===t.avail_out&&(i.last_flush=-1),l;if(d===O&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),N(t),0===t.avail_out))return i.last_flush=-1,l}return e!==f?l:i.wrap<=0?1:(2===i.wrap?(R(i,255&t.adler),R(i,t.adler>>8&255),R(i,t.adler>>16&255),R(i,t.adler>>24&255),R(i,255&t.total_in),R(i,t.total_in>>8&255),R(i,t.total_in>>16&255),R(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),N(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?l:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==k&&69!==e&&73!==e&&91!==e&&e!==S&&e!==M&&e!==C?I(t,h):(t.state=null,e===M?I(t,-3):l):h},e.deflateSetDictionary=function(t,e){var r,n,o,s,u,c,f,p,d=e.length;if(!t||!t.state)return h;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==k||r.lookahead)return h;for(1===s&&(t.adler=a(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,e,d-r.w_size,r.w_size,0),e=p,d=r.w_size),u=t.avail_in,c=t.next_in,f=t.input,t.avail_in=d,t.next_in=0,t.input=e,G(r);r.lookahead>=E;){n=r.strstart,o=r.lookahead-(E-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+E-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=E-1,G(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=E-1,r.match_available=0,t.next_in=c,t.input=f,t.avail_in=u,r.wrap=s,l},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,r){\"use strict\";var n=r(41),i=0,o=1;function a(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,c=256,f=c+1+u,l=30,h=19,p=2*f+1,d=15,m=16,g=7,y=256,v=16,b=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=new Array(2*(f+2));a(D);var k=new Array(2*l);a(k);var S=new Array(512);a(S);var M=new Array(256);a(M);var C=new Array(u);a(C);var T,O,F,B=new Array(l);function I(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function P(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function L(t){return t<256?S[t]:S[256+(t>>>7)]}function N(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function j(t,e,r){t.bi_valid>m-r?(t.bi_buf|=e<<t.bi_valid&65535,N(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=r-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function R(t,e,r){j(t,r[2*e],r[2*e+1])}function z(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function U(t,e,r){var n,i,o=new Array(d+1),a=0;for(n=1;n<=d;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(o[s]++,s))}}function G(t){var e;for(e=0;e<f;e++)t.dyn_ltree[2*e]=0;for(e=0;e<l;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*y]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){t.bi_valid>8?N(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function q(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function Z(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&q(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!q(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function W(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?R(t,i,e):(R(t,(o=M[i])+c+1,e),0!==(a=_[o])&&j(t,i-=C[o],a),R(t,o=L(--n),r),0!==(a=x[o])&&j(t,n-=B[o],a))}while(s<t.last_lit);R(t,y,e)}function Y(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=p,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)Z(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Z(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,Z(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,g=e.stat_desc.max_length,y=0;for(o=0;o<=d;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<p;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>g&&(o=g,y++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=m&&(a=h[n-m]),s=u[2*n],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*n+1]+a)));if(0!==y){do{for(o=g-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[g]--,y-=2}while(y>0);for(o=g;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),U(o,c,t.bl_count)}function X(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*v]++):s<=10?t.bl_tree[2*b]++:t.bl_tree[2*w]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function $(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{R(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(R(t,i,t.bl_tree),s--),R(t,v,t.bl_tree),j(t,s-3,2)):s<=10?(R(t,b,t.bl_tree),j(t,s-3,3)):(R(t,w,t.bl_tree),j(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}a(B);var V=!1;function J(t,e,r,i){j(t,(s<<1)+(i?1:0),3),function(t,e,r,i){H(t),i&&(N(t,r),N(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){V||(!function(){var t,e,r,n,i,o=new Array(d+1);for(r=0,n=0;n<u-1;n++)for(C[n]=r,t=0;t<1<<_[n];t++)M[r++]=n;for(M[r-1]=n,i=0,n=0;n<16;n++)for(B[n]=i,t=0;t<1<<x[n];t++)S[i++]=n;for(i>>=7;n<l;n++)for(B[n]=i<<7,t=0;t<1<<x[n]-7;t++)S[256+i++]=n;for(e=0;e<=d;e++)o[e]=0;for(t=0;t<=143;)D[2*t+1]=8,t++,o[8]++;for(;t<=255;)D[2*t+1]=9,t++,o[9]++;for(;t<=279;)D[2*t+1]=7,t++,o[7]++;for(;t<=287;)D[2*t+1]=8,t++,o[8]++;for(U(D,f+1,o),t=0;t<l;t++)k[2*t+1]=5,k[2*t]=z(t,5);T=new I(D,_,c+1,f,d),O=new I(k,x,0,l,d),F=new I(new Array(0),E,0,h,g)}(),V=!0),t.l_desc=new P(t.dyn_ltree,T),t.d_desc=new P(t.dyn_dtree,O),t.bl_desc=new P(t.bl_tree,F),t.bi_buf=0,t.bi_valid=0,G(t)},e._tr_stored_block=J,e._tr_flush_block=function(t,e,r,n){var a,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return o;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),u=function(t){var e;for(X(t,t.dyn_ltree,t.l_desc.max_code),X(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=h-1;e>=3&&0===t.bl_tree[2*A[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=r+5,r+4<=a&&-1!==e?J(t,e,r,n):4===t.strategy||s===a?(j(t,2+(n?1:0),3),W(t,D,k)):(j(t,4+(n?1:0),3),function(t,e,r,n){var i;for(j(t,e-257,5),j(t,r-1,5),j(t,n-4,4),i=0;i<n;i++)j(t,t.bl_tree[2*A[i]+1],3);$(t,t.dyn_ltree,e-1),$(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),W(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&H(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(M[r]+c+1)]++,t.dyn_dtree[2*L(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){j(t,2,3),R(t,y,D),function(t){16===t.bi_valid?(N(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,r){\"use strict\";var n=r(41),i=r(79),o=r(80),a=r(183),s=r(184),u=1,c=2,f=0,l=-2,h=1,p=12,d=30,m=852,g=592;function y(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=h,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(m),e.distcode=e.distdyn=new n.Buf32(g),e.sane=1,e.back=-1,f):l}function w(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,b(t)):l}function _(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,w(t))):l}function x(t,e){var r,n;return t?(n=new v,t.state=n,n.window=null,(r=_(t,e))!==f&&(t.state=null),r):l}var E,A,D=!0;function k(t){if(D){var e;for(E=new n.Buf32(512),A=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,E,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(c,t.lens,0,32,A,0,t.work,{bits:5}),D=!1}t.lencode=E,t.lenbits=9,t.distcode=A,t.distbits=5}function S(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=w,e.inflateReset2=_,e.inflateResetKeep=b,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var r,m,g,v,b,w,_,x,E,A,D,M,C,T,O,F,B,I,P,L,N,j,R,z,U=0,G=new n.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;(r=t.state).mode===p&&(r.mode=13),b=t.next_out,g=t.output,_=t.avail_out,v=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,A=w,D=_,j=f;t:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;E<16;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(2&r.wrap&&35615===x){r.check=0,G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0),x=0,E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",r.mode=d;break}if(8!=(15&x)){t.msg=\"unknown compression method\",r.mode=d;break}if(E-=4,N=8+(15&(x>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){t.msg=\"invalid window size\",r.mode=d;break}r.dmax=1<<N,t.adler=r.check=1,r.mode=512&x?10:p,x=0,E=0;break;case 2:for(;E<16;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(r.flags=x,8!=(255&r.flags)){t.msg=\"unknown compression method\",r.mode=d;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=d;break}r.head&&(r.head.text=x>>8&1),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0,r.mode=3;case 3:for(;E<32;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.head&&(r.head.time=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,G[2]=x>>>16&255,G[3]=x>>>24&255,r.check=o(r.check,G,4,0)),x=0,E=0,r.mode=4;case 4:for(;E<16;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>8),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0,r.mode=5;case 5:if(1024&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((M=r.length)>w&&(M=w),M&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,m,v,M,N)),512&r.flags&&(r.check=o(r.check,m,M,v)),w-=M,v+=M,r.length-=M),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break t;M=0;do{N=m[v+M++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=o(r.check,m,M,v)),w-=M,v+=M,N)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break t;M=0;do{N=m[v+M++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=o(r.check,m,M,v)),w-=M,v+=M,N)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(x!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=d;break}x=0,E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=p;break;case 10:for(;E<32;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}t.adler=r.check=y(x),x=0,E=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=b,t.avail_out=_,t.next_in=v,t.avail_in=w,r.hold=x,r.bits=E,2;t.adler=r.check=1,r.mode=p;case p:if(5===e||6===e)break t;case 13:if(r.last){x>>>=7&E,E-=7&E,r.mode=27;break}for(;E<3;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}switch(r.last=1&x,E-=1,3&(x>>>=1)){case 0:r.mode=14;break;case 1:if(k(r),r.mode=20,6===e){x>>>=2,E-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=d}x>>>=2,E-=2;break;case 14:for(x>>>=7&E,E-=7&E;E<32;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=d;break}if(r.length=65535&x,x=0,E=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(M=r.length){if(M>w&&(M=w),M>_&&(M=_),0===M)break t;n.arraySet(g,m,v,M,b),w-=M,v+=M,_-=M,b+=M,r.length-=M;break}r.mode=p;break;case 17:for(;E<14;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(r.nlen=257+(31&x),x>>>=5,E-=5,r.ndist=1+(31&x),x>>>=5,E-=5,r.ncode=4+(15&x),x>>>=4,E-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=d;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;E<3;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.lens[H[r.have++]]=7&x,x>>>=3,E-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},j=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid code lengths set\",r.mode=d;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;F=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,B=65535&U,!((O=U>>>24)<=E);){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(B<16)x>>>=O,E-=O,r.lens[r.have++]=B;else{if(16===B){for(z=O+2;E<z;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(x>>>=O,E-=O,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=d;break}N=r.lens[r.have-1],M=3+(3&x),x>>>=2,E-=2}else if(17===B){for(z=O+3;E<z;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}E-=O,N=0,M=3+(7&(x>>>=O)),x>>>=3,E-=3}else{for(z=O+7;E<z;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}E-=O,N=0,M=11+(127&(x>>>=O)),x>>>=7,E-=7}if(r.have+M>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=d;break}for(;M--;)r.lens[r.have++]=N}}if(r.mode===d)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=d;break}if(r.lenbits=9,R={bits:r.lenbits},j=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid literal/lengths set\",r.mode=d;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},j=s(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,j){t.msg=\"invalid distances set\",r.mode=d;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(w>=6&&_>=258){t.next_out=b,t.avail_out=_,t.next_in=v,t.avail_in=w,r.hold=x,r.bits=E,a(t,D),b=t.next_out,g=t.output,_=t.avail_out,v=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,r.mode===p&&(r.back=-1);break}for(r.back=0;F=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,B=65535&U,!((O=U>>>24)<=E);){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(F&&!(240&F)){for(I=O,P=F,L=B;F=(U=r.lencode[L+((x&(1<<I+P)-1)>>I)])>>>16&255,B=65535&U,!(I+(O=U>>>24)<=E);){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}x>>>=I,E-=I,r.back+=I}if(x>>>=O,E-=O,r.back+=O,r.length=B,0===F){r.mode=26;break}if(32&F){r.back=-1,r.mode=p;break}if(64&F){t.msg=\"invalid literal/length code\",r.mode=d;break}r.extra=15&F,r.mode=22;case 22:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.length+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;F=(U=r.distcode[x&(1<<r.distbits)-1])>>>16&255,B=65535&U,!((O=U>>>24)<=E);){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(!(240&F)){for(I=O,P=F,L=B;F=(U=r.distcode[L+((x&(1<<I+P)-1)>>I)])>>>16&255,B=65535&U,!(I+(O=U>>>24)<=E);){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}x>>>=I,E-=I,r.back+=I}if(x>>>=O,E-=O,r.back+=O,64&F){t.msg=\"invalid distance code\",r.mode=d;break}r.offset=B,r.extra=15&F,r.mode=24;case 24:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.offset+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=d;break}r.mode=25;case 25:if(0===_)break t;if(M=D-_,r.offset>M){if((M=r.offset-M)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=d;break}M>r.wnext?(M-=r.wnext,C=r.wsize-M):C=r.wnext-M,M>r.length&&(M=r.length),T=r.window}else T=g,C=b-r.offset,M=r.length;M>_&&(M=_),_-=M,r.length-=M;do{g[b++]=T[C++]}while(--M);0===r.length&&(r.mode=21);break;case 26:if(0===_)break t;g[b++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;E<32;){if(0===w)break t;w--,x|=m[v++]<<E,E+=8}if(D-=_,t.total_out+=D,r.total+=D,D&&(t.adler=r.check=r.flags?o(r.check,g,D,b-D):i(r.check,g,D,b-D)),D=_,(r.flags?x:y(x))!==r.check){t.msg=\"incorrect data check\",r.mode=d;break}x=0,E=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;E<32;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(x!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=d;break}x=0,E=0}r.mode=29;case 29:j=1;break t;case d:j=-3;break t;case 31:return-4;default:return l}return t.next_out=b,t.avail_out=_,t.next_in=v,t.avail_in=w,r.hold=x,r.bits=E,(r.wsize||D!==t.avail_out&&r.mode<d&&(r.mode<27||4!==e))&&S(t,t.output,t.next_out,D-t.avail_out)?(r.mode=31,-4):(A-=t.avail_in,D-=t.avail_out,t.total_in+=A,t.total_out+=D,r.total+=D,r.wrap&&D&&(t.adler=r.check=r.flags?o(r.check,g,D,t.next_out-D):i(r.check,g,D,t.next_out-D)),t.data_type=r.bits+(r.last?64:0)+(r.mode===p?128:0)+(20===r.mode||15===r.mode?256:0),(0===A&&0===D||4===e)&&j===f&&(j=-5),j)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,f},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,f):l},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?l:11===r.mode&&i(1,e,n,0)!==r.check?-3:S(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,f):l},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,r){\"use strict\";t.exports=function(t,e){var r,n,i,o,a,s,u,c,f,l,h,p,d,m,g,y,v,b,w,_,x,E,A,D,k;r=t.state,n=t.next_in,D=t.input,i=n+(t.avail_in-5),o=t.next_out,k=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=r.dmax,c=r.wsize,f=r.whave,l=r.wnext,h=r.window,p=r.hold,d=r.bits,m=r.lencode,g=r.distcode,y=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{d<15&&(p+=D[n++]<<d,d+=8,p+=D[n++]<<d,d+=8),b=m[p&y];e:for(;;){if(p>>>=w=b>>>24,d-=w,0===(w=b>>>16&255))k[o++]=65535&b;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break t}t.msg=\"invalid literal/length code\",r.mode=30;break t}b=m[(65535&b)+(p&(1<<w)-1)];continue e}for(_=65535&b,(w&=15)&&(d<w&&(p+=D[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=D[n++]<<d,d+=8,p+=D[n++]<<d,d+=8),b=g[p&v];;){if(p>>>=w=b>>>24,d-=w,16&(w=b>>>16&255)){if(x=65535&b,d<(w&=15)&&(p+=D[n++]<<d,(d+=8)<w&&(p+=D[n++]<<d,d+=8)),(x+=p&(1<<w)-1)>u){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(p>>>=w,d-=w,x>(w=o-a)){if((w=x-w)>f&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(E=0,A=h,0===l){if(E+=c-w,w<_){_-=w;do{k[o++]=h[E++]}while(--w);E=o-x,A=k}}else if(l<w){if(E+=c+l-w,(w-=l)<_){_-=w;do{k[o++]=h[E++]}while(--w);if(E=0,l<_){_-=w=l;do{k[o++]=h[E++]}while(--w);E=o-x,A=k}}}else if(E+=l-w,w<_){_-=w;do{k[o++]=h[E++]}while(--w);E=o-x,A=k}for(;_>2;)k[o++]=A[E++],k[o++]=A[E++],k[o++]=A[E++],_-=3;_&&(k[o++]=A[E++],_>1&&(k[o++]=A[E++]))}else{E=o-x;do{k[o++]=k[E++],k[o++]=k[E++],k[o++]=k[E++],_-=3}while(_>2);_&&(k[o++]=k[E++],_>1&&(k[o++]=k[E++]))}break}if(64&w){t.msg=\"invalid distance code\",r.mode=30;break t}b=g[(65535&b)+(p&(1<<w)-1)]}}break}}while(n<i&&o<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=p,r.bits=d}},function(t,e,r){\"use strict\";var n=r(41),i=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,c,f,l,h,p){var d,m,g,y,v,b,w,_,x,E=p.bits,A=0,D=0,k=0,S=0,M=0,C=0,T=0,O=0,F=0,B=0,I=null,P=0,L=new n.Buf16(16),N=new n.Buf16(16),j=null,R=0;for(A=0;A<=i;A++)L[A]=0;for(D=0;D<c;D++)L[e[r+D]]++;for(M=E,S=i;S>=1&&0===L[S];S--);if(M>S&&(M=S),0===S)return f[l++]=20971520,f[l++]=20971520,p.bits=1,0;for(k=1;k<S&&0===L[k];k++);for(M<k&&(M=k),O=1,A=1;A<=i;A++)if(O<<=1,(O-=L[A])<0)return-1;if(O>0&&(0===t||1!==S))return-1;for(N[1]=0,A=1;A<i;A++)N[A+1]=N[A]+L[A];for(D=0;D<c;D++)0!==e[r+D]&&(h[N[e[r+D]]++]=D);if(0===t?(I=j=h,b=19):1===t?(I=o,P-=257,j=a,R-=257,b=256):(I=s,j=u,b=-1),B=0,D=0,A=k,v=l,C=M,T=0,g=-1,y=(F=1<<M)-1,1===t&&F>852||2===t&&F>592)return 1;for(;;){w=A-T,h[D]<b?(_=0,x=h[D]):h[D]>b?(_=j[R+h[D]],x=I[P+h[D]]):(_=96,x=0),d=1<<A-T,k=m=1<<C;do{f[v+(B>>T)+(m-=d)]=w<<24|_<<16|x}while(0!==m);for(d=1<<A-1;B&d;)d>>=1;if(0!==d?(B&=d-1,B+=d):B=0,D++,0==--L[A]){if(A===S)break;A=e[r+h[D]]}if(A>M&&(B&y)!==g){for(0===T&&(T=M),v+=k,O=1<<(C=A-T);C+T<S&&!((O-=L[C+T])<=0);)C++,O<<=1;if(F+=1<<C,1===t&&F>852||2===t&&F>592)return 1;f[g=B&y]=M<<24|C<<16|v-l}}return 0!==B&&(f[v+B]=A-T<<24|64<<16),p.bits=M,0}},function(t,e,r){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){\"use strict\";(function(e){var n=r(14),i=r(81),o=r(82),a=t.exports=function(t){i.call(this);var r=[],n=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){r.push(t)},complete:function(){n.emit(\"complete\",e.concat(r))}}),this._filter.start()};n.inherits(a,i)}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(14),i=r(38),o=r(30),a=r(89),s=t.exports=function(t){i.call(this);var e=t||{};this._packer=new a(e),this._deflate=this._packer.createDeflate(),this.readable=!0};n.inherits(s,i),s.prototype.pack=function(t,r,n,i){this.emit(\"data\",e.from(o.PNG_SIGNATURE)),this.emit(\"data\",this._packer.packIHDR(r,n)),i&&this.emit(\"data\",this._packer.packGAMA(i));var a=this._packer.filterData(t,r,n);this._deflate.on(\"error\",this.emit.bind(this,\"error\")),this._deflate.on(\"data\",function(t){this.emit(\"data\",this._packer.packIDAT(t))}.bind(this)),this._deflate.on(\"end\",function(){this.emit(\"data\",this._packer.packIEND()),this.emit(\"end\")}.bind(this)),this._deflate.end(a)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(30);t.exports=function(t,r,i,o){var a,s=-1!==[n.COLORTYPE_COLOR_ALPHA,n.COLORTYPE_ALPHA].indexOf(o.colorType);if(o.colorType===o.inputColorType){var u=(a=new ArrayBuffer(2),new DataView(a).setInt16(0,256,!0),256!==new Int16Array(a)[0]);if(8===o.bitDepth||16===o.bitDepth&&u)return t}var c=16!==o.bitDepth?t:new Uint16Array(t.buffer),f=255,l=n.COLORTYPE_TO_BPP_MAP[o.inputColorType];4!==l||o.inputHasAlpha||(l=3);var h=n.COLORTYPE_TO_BPP_MAP[o.colorType];16===o.bitDepth&&(f=65535,h*=2);var p=e.alloc(r*i*h),d=0,m=0,g=o.bgColor||{};function y(){var t,e,r,i=f;switch(o.inputColorType){case n.COLORTYPE_COLOR_ALPHA:i=c[d+3],t=c[d],e=c[d+1],r=c[d+2];break;case n.COLORTYPE_COLOR:t=c[d],e=c[d+1],r=c[d+2];break;case n.COLORTYPE_ALPHA:i=c[d+1],e=t=c[d],r=t;break;case n.COLORTYPE_GRAYSCALE:e=t=c[d],r=t;break;default:throw new Error(\"input color type:\"+o.inputColorType+\" is not supported at present\")}return o.inputHasAlpha&&(s||(i/=f,t=Math.min(Math.max(Math.round((1-i)*g.red+i*t),0),f),e=Math.min(Math.max(Math.round((1-i)*g.green+i*e),0),f),r=Math.min(Math.max(Math.round((1-i)*g.blue+i*r),0),f))),{red:t,green:e,blue:r,alpha:i}}void 0===g.red&&(g.red=f),void 0===g.green&&(g.green=f),void 0===g.blue&&(g.blue=f);for(var v=0;v<i;v++)for(var b=0;b<r;b++){var w=y();switch(o.colorType){case n.COLORTYPE_COLOR_ALPHA:case n.COLORTYPE_COLOR:8===o.bitDepth?(p[m]=w.red,p[m+1]=w.green,p[m+2]=w.blue,s&&(p[m+3]=w.alpha)):(p.writeUInt16BE(w.red,m),p.writeUInt16BE(w.green,m+2),p.writeUInt16BE(w.blue,m+4),s&&p.writeUInt16BE(w.alpha,m+6));break;case n.COLORTYPE_ALPHA:case n.COLORTYPE_GRAYSCALE:var _=(w.red+w.green+w.blue)/3;8===o.bitDepth?(p[m]=_,s&&(p[m+1]=w.alpha)):(p.writeUInt16BE(_,m),s&&p.writeUInt16BE(w.alpha,m+2));break;default:throw new Error(\"unrecognised color Type \"+o.colorType)}d+=l,m+=h}return p}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=r(84);var i={0:function(t,e,r,n,i){for(var o=0;o<r;o++)n[i+o]=t[e+o]},1:function(t,e,r,n,i,o){for(var a=0;a<r;a++){var s=a>=o?t[e+a-o]:0,u=t[e+a]-s;n[i+a]=u}},2:function(t,e,r,n,i){for(var o=0;o<r;o++){var a=e>0?t[e+o-r]:0,s=t[e+o]-a;n[i+o]=s}},3:function(t,e,r,n,i,o){for(var a=0;a<r;a++){var s=a>=o?t[e+a-o]:0,u=e>0?t[e+a-r]:0,c=t[e+a]-(s+u>>1);n[i+a]=c}},4:function(t,e,r,i,o,a){for(var s=0;s<r;s++){var u=s>=a?t[e+s-a]:0,c=e>0?t[e+s-r]:0,f=e>0&&s>=a?t[e+s-(r+a)]:0,l=t[e+s]-n(u,c,f);i[o+s]=l}}},o={0:function(t,e,r){for(var n=0,i=e+r,o=e;o<i;o++)n+=Math.abs(t[o]);return n},1:function(t,e,r,n){for(var i=0,o=0;o<r;o++){var a=o>=n?t[e+o-n]:0,s=t[e+o]-a;i+=Math.abs(s)}return i},2:function(t,e,r){for(var n=0,i=e+r,o=e;o<i;o++){var a=e>0?t[o-r]:0,s=t[o]-a;n+=Math.abs(s)}return n},3:function(t,e,r,n){for(var i=0,o=0;o<r;o++){var a=o>=n?t[e+o-n]:0,s=e>0?t[e+o-r]:0,u=t[e+o]-(a+s>>1);i+=Math.abs(u)}return i},4:function(t,e,r,i){for(var o=0,a=0;a<r;a++){var s=a>=i?t[e+a-i]:0,u=e>0?t[e+a-r]:0,c=e>0&&a>=i?t[e+a-(r+i)]:0,f=t[e+a]-n(s,u,c);o+=Math.abs(f)}return o}};t.exports=function(t,r,n,a,s){var u;if(\"filterType\"in a&&-1!==a.filterType){if(\"number\"!=typeof a.filterType)throw new Error(\"unrecognised filter types\");u=[a.filterType]}else u=[0,1,2,3,4];16===a.bitDepth&&(s*=2);for(var c=r*s,f=0,l=0,h=e.alloc((c+1)*n),p=u[0],d=0;d<n;d++){if(u.length>1)for(var m=1/0,g=0;g<u.length;g++){var y=o[u[g]](t,l,c,s);y<m&&(p=u[g],m=y)}h[f]=p,f++,i[p](t,l,c,h,f,s),f+=c,l+=c}return h}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n=r(191),i=r(194);e.read=function(t,e){return n(t,e||{})},e.write=function(t,e){return i(t,e)}},function(t,e,r){\"use strict\";(function(e){var n=!0,i=r(28),o=r(192);i.deflateSync||(n=!1);var a=r(90),s=r(193),u=r(85),c=r(87),f=r(88);t.exports=function(t,r){if(!n)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var l,h,p;var d=[];var m=new a(t),g=new u(r,{read:m.read.bind(m),error:function(t){l=t},metadata:function(t){h=t},gamma:function(t){p=t},palette:function(t){h.palette=t},transColor:function(t){h.transColor=t},inflateData:function(t){d.push(t)},simpleTransparency:function(){h.alpha=!0}});if(g.start(),m.process(),l)throw l;var y,v=e.concat(d);if(d.length=0,h.interlace)y=i.inflateSync(v);else{var b=(1+(h.width*h.bpp*h.depth+7>>3))*h.height;y=o(v,{chunkSize:b,maxLength:b})}if(v=null,!y||!y.length)throw new Error(\"bad png - invalid inflate data response\");var w=s.process(y,h);v=null;var _=c.dataToBitMap(w,h);w=null;var x=f(_,h,r.skipRescale);return h.data=x,h.gamma=p||0,h}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(n,i){var o=r(53).ok,a=r(28),s=r(14),u=r(2).kMaxLength;function c(t){if(!(this instanceof c))return new c(t);t&&t.chunkSize<a.Z_MIN_CHUNK&&(t.chunkSize=a.Z_MIN_CHUNK),a.Inflate.call(this,t),this._offset=void 0===this._offset?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,t&&null!=t.maxLength&&(this._maxLength=t.maxLength)}function f(t,e){e&&n.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function l(t,e){return function(t,e){if(\"string\"==typeof e&&(e=i.from(e)),!(e instanceof i))throw new TypeError(\"Not a string or buffer\");var r=t._finishFlushFlag;return null==r&&(r=a.Z_FINISH),t._processChunk(e,r)}(new c(e),t)}c.prototype._processChunk=function(t,e,r){if(\"function\"==typeof r)return a.Inflate._processChunk.call(this,t,e,r);var n,s,c=this,l=t&&t.length,h=this._chunkSize-this._offset,p=this._maxLength,d=0,m=[],g=0;function y(t,e){if(!c._hadError){var r=h-e;if(o(r>=0,\"have should not go down\"),r>0){var n=c._buffer.slice(c._offset,c._offset+r);if(c._offset+=r,n.length>p&&(n=n.slice(0,p)),m.push(n),g+=n.length,0===(p-=n.length))return!1}return(0===e||c._offset>=c._chunkSize)&&(h=c._chunkSize,c._offset=0,c._buffer=i.allocUnsafe(c._chunkSize)),0===e&&(d+=l-t,l=t,!0)}}this.on(\"error\",(function(t){n=t})),o(this._handle,\"zlib binding closed\");do{s=(s=this._handle.writeSync(e,t,d,l,this._buffer,this._offset,h))||this._writeState}while(!this._hadError&&y(s[0],s[1]));if(this._hadError)throw n;if(g>=u)throw f(this),new RangeError(\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\");var v=i.concat(m,g);return f(this),v},s.inherits(c,a.Inflate),t.exports=e=l,e.Inflate=c,e.createInflate=function(t){return new c(t)},e.inflateSync=l}).call(this,r(7),r(2).Buffer)},function(t,e,r){\"use strict\";(function(t){var n=r(90),i=r(82);e.process=function(e,r){var o=[],a=new n(e);return new i(r,{read:a.read.bind(a),write:function(t){o.push(t)},complete:function(){}}).start(),a.process(),t.concat(o)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";(function(e){var n=!0,i=r(28);i.deflateSync||(n=!1);var o=r(30),a=r(89);t.exports=function(t,r){if(!n)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var s=new a(r||{}),u=[];u.push(e.from(o.PNG_SIGNATURE)),u.push(s.packIHDR(t.width,t.height)),t.gamma&&u.push(s.packGAMA(t.gamma));var c=s.filterData(t.data,t.width,t.height),f=i.deflateSync(c,s.getDeflateOptions());if(c=null,!f||!f.length)throw new Error(\"bad png - invalid compressed data response\");return u.push(s.packIDAT(f)),u.push(s.packIEND()),e.concat(u)}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag=\"BM\",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}r.prototype.encode=function(){var t=new e(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var r=0,n=3*this.width+this.extraBytes,i=0;i<this.height;i++){for(var o=0;o<this.width;o++){var a=this.pos+i*n+3*o;r++,t[a]=this.buffer[r++],t[a+1]=this.buffer[r++],t[a+2]=this.buffer[r++]}if(this.extraBytes>0){var s=this.pos+i*n+3*this.width;t.fill(0,s,s+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new r(t).encode(),width:t.width,height:t.height}}}).call(this,r(2).Buffer)},function(t,e,r){(function(e){function r(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString(\"utf-8\",0,this.pos+=2),\"BM\"!=this.flag)throw new Error(\"Invalid BMP File\");this.parseHeader(),this.parseRGBA()}r.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);this.palette[e]={red:i,green:n,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},r.prototype.parseRGBA=function(){var t=\"bit\"+this.bitPP,r=this.width*this.height*4;this.data=new e(r),this[t]()},r.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,r=this.height>=0?this.height-1:-this.height;for(r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++)for(var o=this.buffer.readUInt8(this.pos++),a=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var u=this.palette[o>>7-s&1];this.data[a+4*s]=0,this.data[a+4*s+1]=u.blue,this.data[a+4*s+2]=u.green,this.data[a+4*s+3]=u.red}0!=e&&(this.pos+=4-e)}},r.prototype.bit4=function(){if(2==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0,n=!1;e<this.data.length;){var i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);if(0==i){if(0==o){this.bottom_up?r--:r++,e=r*this.width*4,n=!1;continue}if(1==o)break;if(2==o){var a=this.buffer.readUInt8(this.pos++),s=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=s:r+=s,e+=s*this.width*4+4*a}else{for(var u=this.buffer.readUInt8(this.pos++),c=0;c<o;c++)t.call(this,n?15&u:(240&u)>>4),1&c&&c+1<o&&(u=this.buffer.readUInt8(this.pos++)),n=!n;1==(o+1>>1&1)&&this.pos++}}else for(c=0;c<i;c++)t.call(this,n?15&o:(240&o)>>4),n=!n}}else{var f=Math.ceil(this.width/2),l=f%4;for(s=this.height-1;s>=0;s--){var h=this.bottom_up?s:this.height-1-s;for(a=0;a<f;a++){o=this.buffer.readUInt8(this.pos++),e=h*this.width*4+2*a*4;var p=o>>4,d=15&o,m=this.palette[p];if(this.data[e]=0,this.data[e+1]=m.blue,this.data[e+2]=m.green,this.data[e+3]=m.red,2*a+1>=this.width)break;m=this.palette[d],this.data[e+4]=0,this.data[e+4+1]=m.blue,this.data[e+4+2]=m.green,this.data[e+4+3]=m.red}0!=l&&(this.pos+=4-l)}}},r.prototype.bit8=function(){if(1==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0;e<this.data.length;){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++);if(0==n){if(0==i){this.bottom_up?r--:r++,e=r*this.width*4;continue}if(1==i)break;if(2==i){var o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);this.bottom_up?r-=a:r+=a,e+=a*this.width*4+4*o}else{for(var s=0;s<i;s++){var u=this.buffer.readUInt8(this.pos++);t.call(this,u)}!0&i&&this.pos++}}else for(s=0;s<n;s++)t.call(this,i)}}else{var c=this.width%4;for(a=this.height-1;a>=0;a--){var f=this.bottom_up?a:this.height-1-a;for(o=0;o<this.width;o++){i=this.buffer.readUInt8(this.pos++),e=f*this.width*4+4*o;if(i<this.palette.length){var l=this.palette[i];this.data[e]=0,this.data[e+1]=l.blue,this.data[e+2]=l.green,this.data[e+3]=l.red}else this.data[e]=0,this.data[e+1]=255,this.data[e+2]=255,this.data[e+3]=255}0!=c&&(this.pos+=4-c)}}},r.prototype.bit15=function(){for(var t=this.width%3,e=parseInt(\"11111\",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.buffer.readUInt16LE(this.pos);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,u=(o>>10&e)/e*255|0,c=o>>15?255:0,f=n*this.width*4+4*i;this.data[f]=c,this.data[f+1]=a,this.data[f+2]=s,this.data[f+3]=u}this.pos+=t}},r.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],r=0;r<16;r++)this.maskRed>>r&1&&e[0]++,this.maskGreen>>r&1&&e[1]++,this.maskBlue>>r&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var a=this.buffer.readUInt16LE(this.pos);this.pos+=2;var s=(a&this.maskBlue)<<e[0],u=(a&this.maskGreen)>>e[1],c=(a&this.maskRed)>>e[2],f=i*this.width*4+4*o;this.data[f]=0,this.data[f+1]=s,this.data[f+2]=u,this.data[f+3]=c}this.pos+=t}},r.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=e*this.width*4+4*r;this.data[a]=0,this.data[a+1]=n,this.data[a+2]=i,this.data[a+3]=o}this.pos+=this.width%4}},r.prototype.bit32=function(){if(3==this.compress){this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4;for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=o,this.data[s+3]=a}}else for(t=this.height-1;t>=0;t--)for(e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=o,this.data[s+3]=a}},r.prototype.getData=function(){return this.data},t.exports=function(t){return new r(t)}}).call(this,r(2).Buffer)},function(t,e,r){\"use strict\";var n={};(0,r(15).assign)(n,r(198),r(201),r(95)),t.exports=n},function(t,e,r){\"use strict\";var n=r(199),i=r(15),o=r(93),a=r(56),s=r(94),u=Object.prototype.toString,c=0,f=-1,l=0,h=8;function p(t){if(!(this instanceof p))return new p(t);this.options=i.assign({level:f,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:l,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==c)throw new Error(a[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d=\"string\"==typeof e.dictionary?o.string2buf(e.dictionary):\"[object ArrayBuffer]\"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=n.deflateSetDictionary(this.strm,d))!==c)throw new Error(a[r]);this._dict_set=!0}}function d(t,e){var r=new p(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}p.prototype.push=function(t,e){var r,a,s=this.strm,f=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,\"string\"==typeof t?s.input=o.string2buf(t):\"[object ArrayBuffer]\"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(f),s.next_out=0,s.avail_out=f),1!==(r=n.deflate(s,a))&&r!==c)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||(\"string\"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==a||(this.onEnd(c),s.avail_out=0,!0)},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===c&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=p,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},function(t,e,r){\"use strict\";var n,i=r(15),o=r(200),a=r(91),s=r(92),u=r(56),c=0,f=4,l=0,h=-2,p=-1,d=4,m=2,g=8,y=9,v=286,b=30,w=19,_=2*v+1,x=15,E=3,A=258,D=A+E+1,k=42,S=103,M=113,C=666,T=1,O=2,F=3,B=4;function I(t,e){return t.msg=u[e],e}function P(t){return(t<<1)-(t>4?9:0)}function L(t){for(var e=t.length;--e>=0;)t[e]=0}function N(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function j(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,N(t.strm)}function R(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-D?t.strstart-(t.w_size-D):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+A,p=c[o+a-1],d=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===d&&c[r+a-1]===p&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=A-(h-o),o=h-A,n>a){if(t.match_start=e,a=n,n>=s)break;p=c[o+a-1],d=c[o+a]}}}while((e=l[e&f])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function G(t){var e,r,n,o,u,c,f,l,h,p,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-D)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--r);e=r=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--r);o+=d}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=o,p=void 0,(p=c.avail_in)>h&&(p=h),r=0===p?0:(c.avail_in-=p,i.arraySet(f,c.input,c.next_in,p,l),1===c.state.wrap?c.adler=a(c.adler,f,p,l):2===c.state.wrap&&(c.adler=s(c.adler,f,p,l)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=E)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+E-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<D&&0!==t.strm.avail_in)}function H(t,e){for(var r,n;;){if(t.lookahead<D){if(G(t),t.lookahead<D&&e===c)return T;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-D&&(t.match_length=U(t,r)),t.match_length>=E)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(j(t,!1),0===t.strm.avail_out))return T}return t.insert=t.strstart<E-1?t.strstart:E-1,e===f?(j(t,!0),0===t.strm.avail_out?F:B):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?T:O}function q(t,e){for(var r,n,i;;){if(t.lookahead<D){if(G(t),t.lookahead<D&&e===c)return T;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=E-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-D&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===E&&t.strstart-t.match_start>4096)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-E,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=E-1,t.strstart++,n&&(j(t,!1),0===t.strm.avail_out))return T}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&j(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return T}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,e===f?(j(t,!0),0===t.strm.avail_out?F:B):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?T:O}function Z(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*v+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?k:M,t.adler=2===e.wrap?0:1,e.last_flush=c,o._tr_init(e),l):I(t,h)}function X(t){var e,r=Y(t);return r===l&&((e=t.state).window_size=2*e.w_size,L(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=E-1,e.match_available=0,e.ins_h=0),r}function $(t,e,r,n,o,a){if(!t)return h;var s=1;if(e===p&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>y||r!==g||n<8||n>15||e<0||e>9||a<0||a>d)return I(t,h);8===n&&(n=9);var u=new W;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+E-1)/E),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=r,X(t)}n=[new Z(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(G(t),0===t.lookahead&&e===c)return T;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,j(t,!1),0===t.strm.avail_out))return T;if(t.strstart-t.block_start>=t.w_size-D&&(j(t,!1),0===t.strm.avail_out))return T}return t.insert=0,e===f?(j(t,!0),0===t.strm.avail_out?F:B):(t.strstart>t.block_start&&(j(t,!1),t.strm.avail_out),T)})),new Z(4,4,8,4,H),new Z(4,5,16,8,H),new Z(4,6,32,32,H),new Z(4,4,16,16,q),new Z(8,16,32,32,q),new Z(8,16,128,128,q),new Z(8,32,128,256,q),new Z(32,128,258,1024,q),new Z(32,258,258,4096,q)],e.deflateInit=function(t,e){return $(t,e,g,15,8,0)},e.deflateInit2=$,e.deflateReset=X,e.deflateResetKeep=Y,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,l):h},e.deflate=function(t,e){var r,i,a,u;if(!t||!t.state||e>5||e<0)return t?I(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===C&&e!==f)return I(t,0===t.avail_out?-5:h);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===k)if(2===i.wrap)t.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),R(i,3),i.status=M);else{var p=g+(i.w_bits-8<<4)<<8;p|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(p|=32),p+=31-p%31,i.status=M,z(i,p),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),N(t),a=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),N(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),N(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=S)}else i.status=S;if(i.status===S&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(t),i.pending+2<=i.pending_buf_size&&(R(i,255&t.adler),R(i,t.adler>>8&255),t.adler=0,i.status=M)):i.status=M),0!==i.pending){if(N(t),0===t.avail_out)return i.last_flush=-1,l}else if(0===t.avail_in&&P(e)<=P(r)&&e!==f)return I(t,-5);if(i.status===C&&0!==t.avail_in)return I(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==c&&i.status!==C){var d=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(G(t),0===t.lookahead)){if(e===c)return T;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(j(t,!1),0===t.strm.avail_out))return T}return t.insert=0,e===f?(j(t,!0),0===t.strm.avail_out?F:B):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?T:O}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=A){if(G(t),t.lookahead<=A&&e===c)return T;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+A;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=A-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=o._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(j(t,!1),0===t.strm.avail_out))return T}return t.insert=0,e===f?(j(t,!0),0===t.strm.avail_out?F:B):t.last_lit&&(j(t,!1),0===t.strm.avail_out)?T:O}(i,e):n[i.level].func(i,e);if(d!==F&&d!==B||(i.status=C),d===T||d===F)return 0===t.avail_out&&(i.last_flush=-1),l;if(d===O&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),N(t),0===t.avail_out))return i.last_flush=-1,l}return e!==f?l:i.wrap<=0?1:(2===i.wrap?(R(i,255&t.adler),R(i,t.adler>>8&255),R(i,t.adler>>16&255),R(i,t.adler>>24&255),R(i,255&t.total_in),R(i,t.total_in>>8&255),R(i,t.total_in>>16&255),R(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),N(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?l:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==k&&69!==e&&73!==e&&91!==e&&e!==S&&e!==M&&e!==C?I(t,h):(t.state=null,e===M?I(t,-3):l):h},e.deflateSetDictionary=function(t,e){var r,n,o,s,u,c,f,p,d=e.length;if(!t||!t.state)return h;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==k||r.lookahead)return h;for(1===s&&(t.adler=a(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,e,d-r.w_size,r.w_size,0),e=p,d=r.w_size),u=t.avail_in,c=t.next_in,f=t.input,t.avail_in=d,t.next_in=0,t.input=e,G(r);r.lookahead>=E;){n=r.strstart,o=r.lookahead-(E-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+E-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=E-1,G(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=E-1,r.match_available=0,t.next_in=c,t.input=f,t.avail_in=u,r.wrap=s,l},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,r){\"use strict\";var n=r(15),i=0,o=1;function a(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,c=256,f=c+1+u,l=30,h=19,p=2*f+1,d=15,m=16,g=7,y=256,v=16,b=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=new Array(2*(f+2));a(D);var k=new Array(2*l);a(k);var S=new Array(512);a(S);var M=new Array(256);a(M);var C=new Array(u);a(C);var T,O,F,B=new Array(l);function I(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function P(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function L(t){return t<256?S[t]:S[256+(t>>>7)]}function N(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function j(t,e,r){t.bi_valid>m-r?(t.bi_buf|=e<<t.bi_valid&65535,N(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=r-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function R(t,e,r){j(t,r[2*e],r[2*e+1])}function z(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function U(t,e,r){var n,i,o=new Array(d+1),a=0;for(n=1;n<=d;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(o[s]++,s))}}function G(t){var e;for(e=0;e<f;e++)t.dyn_ltree[2*e]=0;for(e=0;e<l;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*y]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){t.bi_valid>8?N(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function q(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function Z(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&q(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!q(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function W(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?R(t,i,e):(R(t,(o=M[i])+c+1,e),0!==(a=_[o])&&j(t,i-=C[o],a),R(t,o=L(--n),r),0!==(a=x[o])&&j(t,n-=B[o],a))}while(s<t.last_lit);R(t,y,e)}function Y(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=p,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)Z(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Z(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,Z(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,g=e.stat_desc.max_length,y=0;for(o=0;o<=d;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<p;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>g&&(o=g,y++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=m&&(a=h[n-m]),s=u[2*n],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*n+1]+a)));if(0!==y){do{for(o=g-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[g]--,y-=2}while(y>0);for(o=g;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),U(o,c,t.bl_count)}function X(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*v]++):s<=10?t.bl_tree[2*b]++:t.bl_tree[2*w]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function $(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{R(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(R(t,i,t.bl_tree),s--),R(t,v,t.bl_tree),j(t,s-3,2)):s<=10?(R(t,b,t.bl_tree),j(t,s-3,3)):(R(t,w,t.bl_tree),j(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}a(B);var V=!1;function J(t,e,r,i){j(t,(s<<1)+(i?1:0),3),function(t,e,r,i){H(t),i&&(N(t,r),N(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){V||(!function(){var t,e,r,n,i,o=new Array(d+1);for(r=0,n=0;n<u-1;n++)for(C[n]=r,t=0;t<1<<_[n];t++)M[r++]=n;for(M[r-1]=n,i=0,n=0;n<16;n++)for(B[n]=i,t=0;t<1<<x[n];t++)S[i++]=n;for(i>>=7;n<l;n++)for(B[n]=i<<7,t=0;t<1<<x[n]-7;t++)S[256+i++]=n;for(e=0;e<=d;e++)o[e]=0;for(t=0;t<=143;)D[2*t+1]=8,t++,o[8]++;for(;t<=255;)D[2*t+1]=9,t++,o[9]++;for(;t<=279;)D[2*t+1]=7,t++,o[7]++;for(;t<=287;)D[2*t+1]=8,t++,o[8]++;for(U(D,f+1,o),t=0;t<l;t++)k[2*t+1]=5,k[2*t]=z(t,5);T=new I(D,_,c+1,f,d),O=new I(k,x,0,l,d),F=new I(new Array(0),E,0,h,g)}(),V=!0),t.l_desc=new P(t.dyn_ltree,T),t.d_desc=new P(t.dyn_dtree,O),t.bl_desc=new P(t.bl_tree,F),t.bi_buf=0,t.bi_valid=0,G(t)},e._tr_stored_block=J,e._tr_flush_block=function(t,e,r,n){var a,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return o;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),u=function(t){var e;for(X(t,t.dyn_ltree,t.l_desc.max_code),X(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=h-1;e>=3&&0===t.bl_tree[2*A[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=r+5,r+4<=a&&-1!==e?J(t,e,r,n):4===t.strategy||s===a?(j(t,2+(n?1:0),3),W(t,D,k)):(j(t,4+(n?1:0),3),function(t,e,r,n){var i;for(j(t,e-257,5),j(t,r-1,5),j(t,n-4,4),i=0;i<n;i++)j(t,t.bl_tree[2*A[i]+1],3);$(t,t.dyn_ltree,e-1),$(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),W(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&H(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(M[r]+c+1)]++,t.dyn_dtree[2*L(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){j(t,2,3),R(t,y,D),function(t){16===t.bi_valid?(N(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){\"use strict\";var n=r(202),i=r(15),o=r(93),a=r(95),s=r(56),u=r(94),c=r(205),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new c,n.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):\"[object ArrayBuffer]\"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[r])}function h(t,e){var r=new l(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}l.prototype.push=function(t,e){var r,s,u,c,l,h=this.strm,p=this.options.chunkSize,d=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,\"string\"==typeof t?h.input=o.binstring2buf(t):\"[object ArrayBuffer]\"===f.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&d&&(r=n.inflateSetDictionary(this.strm,d)),r===a.Z_BUF_ERROR&&!0===m&&(r=a.Z_OK,m=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&r!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||(\"string\"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,l=o.buf2string(h.output,u),h.next_out=c,h.avail_out=p-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(l)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((h.avail_in>0||0===h.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},function(t,e,r){\"use strict\";var n=r(15),i=r(91),o=r(92),a=r(203),s=r(204),u=1,c=2,f=0,l=-2,h=1,p=12,d=30,m=852,g=592;function y(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=h,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(m),e.distcode=e.distdyn=new n.Buf32(g),e.sane=1,e.back=-1,f):l}function w(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,b(t)):l}function _(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,w(t))):l}function x(t,e){var r,n;return t?(n=new v,t.state=n,n.window=null,(r=_(t,e))!==f&&(t.state=null),r):l}var E,A,D=!0;function k(t){if(D){var e;for(E=new n.Buf32(512),A=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,E,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(c,t.lens,0,32,A,0,t.work,{bits:5}),D=!1}t.lencode=E,t.lenbits=9,t.distcode=A,t.distbits=5}function S(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=w,e.inflateReset2=_,e.inflateResetKeep=b,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var r,m,g,v,b,w,_,x,E,A,D,M,C,T,O,F,B,I,P,L,N,j,R,z,U=0,G=new n.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;(r=t.state).mode===p&&(r.mode=13),b=t.next_out,g=t.output,_=t.avail_out,v=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,A=w,D=_,j=f;t:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;E<16;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(2&r.wrap&&35615===x){r.check=0,G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0),x=0,E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",r.mode=d;break}if(8!=(15&x)){t.msg=\"unknown compression method\",r.mode=d;break}if(E-=4,N=8+(15&(x>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){t.msg=\"invalid window size\",r.mode=d;break}r.dmax=1<<N,t.adler=r.check=1,r.mode=512&x?10:p,x=0,E=0;break;case 2:for(;E<16;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(r.flags=x,8!=(255&r.flags)){t.msg=\"unknown compression method\",r.mode=d;break}if(57344&r.flags){t.msg=\"unknown header flags set\",r.mode=d;break}r.head&&(r.head.text=x>>8&1),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0,r.mode=3;case 3:for(;E<32;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.head&&(r.head.time=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,G[2]=x>>>16&255,G[3]=x>>>24&255,r.check=o(r.check,G,4,0)),x=0,E=0,r.mode=4;case 4:for(;E<16;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>8),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0,r.mode=5;case 5:if(1024&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(G[0]=255&x,G[1]=x>>>8&255,r.check=o(r.check,G,2,0)),x=0,E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((M=r.length)>w&&(M=w),M&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,m,v,M,N)),512&r.flags&&(r.check=o(r.check,m,M,v)),w-=M,v+=M,r.length-=M),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break t;M=0;do{N=m[v+M++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=o(r.check,m,M,v)),w-=M,v+=M,N)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break t;M=0;do{N=m[v+M++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N))}while(N&&M<w);if(512&r.flags&&(r.check=o(r.check,m,M,v)),w-=M,v+=M,N)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;E<16;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(x!==(65535&r.check)){t.msg=\"header crc mismatch\",r.mode=d;break}x=0,E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=p;break;case 10:for(;E<32;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}t.adler=r.check=y(x),x=0,E=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=b,t.avail_out=_,t.next_in=v,t.avail_in=w,r.hold=x,r.bits=E,2;t.adler=r.check=1,r.mode=p;case p:if(5===e||6===e)break t;case 13:if(r.last){x>>>=7&E,E-=7&E,r.mode=27;break}for(;E<3;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}switch(r.last=1&x,E-=1,3&(x>>>=1)){case 0:r.mode=14;break;case 1:if(k(r),r.mode=20,6===e){x>>>=2,E-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=d}x>>>=2,E-=2;break;case 14:for(x>>>=7&E,E-=7&E;E<32;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=d;break}if(r.length=65535&x,x=0,E=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(M=r.length){if(M>w&&(M=w),M>_&&(M=_),0===M)break t;n.arraySet(g,m,v,M,b),w-=M,v+=M,_-=M,b+=M,r.length-=M;break}r.mode=p;break;case 17:for(;E<14;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(r.nlen=257+(31&x),x>>>=5,E-=5,r.ndist=1+(31&x),x>>>=5,E-=5,r.ncode=4+(15&x),x>>>=4,E-=4,r.nlen>286||r.ndist>30){t.msg=\"too many length or distance symbols\",r.mode=d;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;E<3;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.lens[H[r.have++]]=7&x,x>>>=3,E-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},j=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid code lengths set\",r.mode=d;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;F=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,B=65535&U,!((O=U>>>24)<=E);){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(B<16)x>>>=O,E-=O,r.lens[r.have++]=B;else{if(16===B){for(z=O+2;E<z;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(x>>>=O,E-=O,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=d;break}N=r.lens[r.have-1],M=3+(3&x),x>>>=2,E-=2}else if(17===B){for(z=O+3;E<z;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}E-=O,N=0,M=3+(7&(x>>>=O)),x>>>=3,E-=3}else{for(z=O+7;E<z;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}E-=O,N=0,M=11+(127&(x>>>=O)),x>>>=7,E-=7}if(r.have+M>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=d;break}for(;M--;)r.lens[r.have++]=N}}if(r.mode===d)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=d;break}if(r.lenbits=9,R={bits:r.lenbits},j=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,j){t.msg=\"invalid literal/lengths set\",r.mode=d;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},j=s(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,j){t.msg=\"invalid distances set\",r.mode=d;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(w>=6&&_>=258){t.next_out=b,t.avail_out=_,t.next_in=v,t.avail_in=w,r.hold=x,r.bits=E,a(t,D),b=t.next_out,g=t.output,_=t.avail_out,v=t.next_in,m=t.input,w=t.avail_in,x=r.hold,E=r.bits,r.mode===p&&(r.back=-1);break}for(r.back=0;F=(U=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,B=65535&U,!((O=U>>>24)<=E);){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(F&&!(240&F)){for(I=O,P=F,L=B;F=(U=r.lencode[L+((x&(1<<I+P)-1)>>I)])>>>16&255,B=65535&U,!(I+(O=U>>>24)<=E);){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}x>>>=I,E-=I,r.back+=I}if(x>>>=O,E-=O,r.back+=O,r.length=B,0===F){r.mode=26;break}if(32&F){r.back=-1,r.mode=p;break}if(64&F){t.msg=\"invalid literal/length code\",r.mode=d;break}r.extra=15&F,r.mode=22;case 22:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.length+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;F=(U=r.distcode[x&(1<<r.distbits)-1])>>>16&255,B=65535&U,!((O=U>>>24)<=E);){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(!(240&F)){for(I=O,P=F,L=B;F=(U=r.distcode[L+((x&(1<<I+P)-1)>>I)])>>>16&255,B=65535&U,!(I+(O=U>>>24)<=E);){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}x>>>=I,E-=I,r.back+=I}if(x>>>=O,E-=O,r.back+=O,64&F){t.msg=\"invalid distance code\",r.mode=d;break}r.offset=B,r.extra=15&F,r.mode=24;case 24:if(r.extra){for(z=r.extra;E<z;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}r.offset+=x&(1<<r.extra)-1,x>>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=d;break}r.mode=25;case 25:if(0===_)break t;if(M=D-_,r.offset>M){if((M=r.offset-M)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=d;break}M>r.wnext?(M-=r.wnext,C=r.wsize-M):C=r.wnext-M,M>r.length&&(M=r.length),T=r.window}else T=g,C=b-r.offset,M=r.length;M>_&&(M=_),_-=M,r.length-=M;do{g[b++]=T[C++]}while(--M);0===r.length&&(r.mode=21);break;case 26:if(0===_)break t;g[b++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;E<32;){if(0===w)break t;w--,x|=m[v++]<<E,E+=8}if(D-=_,t.total_out+=D,r.total+=D,D&&(t.adler=r.check=r.flags?o(r.check,g,D,b-D):i(r.check,g,D,b-D)),D=_,(r.flags?x:y(x))!==r.check){t.msg=\"incorrect data check\",r.mode=d;break}x=0,E=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;E<32;){if(0===w)break t;w--,x+=m[v++]<<E,E+=8}if(x!==(4294967295&r.total)){t.msg=\"incorrect length check\",r.mode=d;break}x=0,E=0}r.mode=29;case 29:j=1;break t;case d:j=-3;break t;case 31:return-4;default:return l}return t.next_out=b,t.avail_out=_,t.next_in=v,t.avail_in=w,r.hold=x,r.bits=E,(r.wsize||D!==t.avail_out&&r.mode<d&&(r.mode<27||4!==e))&&S(t,t.output,t.next_out,D-t.avail_out)?(r.mode=31,-4):(A-=t.avail_in,D-=t.avail_out,t.total_in+=A,t.total_out+=D,r.total+=D,r.wrap&&D&&(t.adler=r.check=r.flags?o(r.check,g,D,t.next_out-D):i(r.check,g,D,t.next_out-D)),t.data_type=r.bits+(r.last?64:0)+(r.mode===p?128:0)+(20===r.mode||15===r.mode?256:0),(0===A&&0===D||4===e)&&j===f&&(j=-5),j)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,f},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,f):l},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?l:11===r.mode&&i(1,e,n,0)!==r.check?-3:S(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,f):l},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,r){\"use strict\";t.exports=function(t,e){var r,n,i,o,a,s,u,c,f,l,h,p,d,m,g,y,v,b,w,_,x,E,A,D,k;r=t.state,n=t.next_in,D=t.input,i=n+(t.avail_in-5),o=t.next_out,k=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=r.dmax,c=r.wsize,f=r.whave,l=r.wnext,h=r.window,p=r.hold,d=r.bits,m=r.lencode,g=r.distcode,y=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{d<15&&(p+=D[n++]<<d,d+=8,p+=D[n++]<<d,d+=8),b=m[p&y];e:for(;;){if(p>>>=w=b>>>24,d-=w,0===(w=b>>>16&255))k[o++]=65535&b;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break t}t.msg=\"invalid literal/length code\",r.mode=30;break t}b=m[(65535&b)+(p&(1<<w)-1)];continue e}for(_=65535&b,(w&=15)&&(d<w&&(p+=D[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=D[n++]<<d,d+=8,p+=D[n++]<<d,d+=8),b=g[p&v];;){if(p>>>=w=b>>>24,d-=w,16&(w=b>>>16&255)){if(x=65535&b,d<(w&=15)&&(p+=D[n++]<<d,(d+=8)<w&&(p+=D[n++]<<d,d+=8)),(x+=p&(1<<w)-1)>u){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(p>>>=w,d-=w,x>(w=o-a)){if((w=x-w)>f&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break t}if(E=0,A=h,0===l){if(E+=c-w,w<_){_-=w;do{k[o++]=h[E++]}while(--w);E=o-x,A=k}}else if(l<w){if(E+=c+l-w,(w-=l)<_){_-=w;do{k[o++]=h[E++]}while(--w);if(E=0,l<_){_-=w=l;do{k[o++]=h[E++]}while(--w);E=o-x,A=k}}}else if(E+=l-w,w<_){_-=w;do{k[o++]=h[E++]}while(--w);E=o-x,A=k}for(;_>2;)k[o++]=A[E++],k[o++]=A[E++],k[o++]=A[E++],_-=3;_&&(k[o++]=A[E++],_>1&&(k[o++]=A[E++]))}else{E=o-x;do{k[o++]=k[E++],k[o++]=k[E++],k[o++]=k[E++],_-=3}while(_>2);_&&(k[o++]=k[E++],_>1&&(k[o++]=k[E++]))}break}if(64&w){t.msg=\"invalid distance code\",r.mode=30;break t}b=g[(65535&b)+(p&(1<<w)-1)]}}break}}while(n<i&&o<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=p,r.bits=d}},function(t,e,r){\"use strict\";var n=r(15),i=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,c,f,l,h,p){var d,m,g,y,v,b,w,_,x,E=p.bits,A=0,D=0,k=0,S=0,M=0,C=0,T=0,O=0,F=0,B=0,I=null,P=0,L=new n.Buf16(16),N=new n.Buf16(16),j=null,R=0;for(A=0;A<=i;A++)L[A]=0;for(D=0;D<c;D++)L[e[r+D]]++;for(M=E,S=i;S>=1&&0===L[S];S--);if(M>S&&(M=S),0===S)return f[l++]=20971520,f[l++]=20971520,p.bits=1,0;for(k=1;k<S&&0===L[k];k++);for(M<k&&(M=k),O=1,A=1;A<=i;A++)if(O<<=1,(O-=L[A])<0)return-1;if(O>0&&(0===t||1!==S))return-1;for(N[1]=0,A=1;A<i;A++)N[A+1]=N[A]+L[A];for(D=0;D<c;D++)0!==e[r+D]&&(h[N[e[r+D]]++]=D);if(0===t?(I=j=h,b=19):1===t?(I=o,P-=257,j=a,R-=257,b=256):(I=s,j=u,b=-1),B=0,D=0,A=k,v=l,C=M,T=0,g=-1,y=(F=1<<M)-1,1===t&&F>852||2===t&&F>592)return 1;for(;;){w=A-T,h[D]<b?(_=0,x=h[D]):h[D]>b?(_=j[R+h[D]],x=I[P+h[D]]):(_=96,x=0),d=1<<A-T,k=m=1<<C;do{f[v+(B>>T)+(m-=d)]=w<<24|_<<16|x}while(0!==m);for(d=1<<A-1;B&d;)d>>=1;if(0!==d?(B&=d-1,B+=d):B=0,D++,0==--L[A]){if(A===S)break;A=e[r+h[D]]}if(A>M&&(B&y)!==g){for(0===T&&(T=M),v+=k,O=1<<(C=A-T);C+T<S&&!((O-=L[C+T])<=0);)C++,O<<=1;if(F+=1<<C,1===t&&F>852||2===t&&F>592)return 1;f[g=B&y]=M<<24|C<<16|v-l}}return 0!==B&&(f[v+B]=A-T<<24|64<<16),p.bits=M,0}},function(t,e,r){\"use strict\";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1}},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"applyPalette\",(function(){return Xt})),r.d(e,\"applyPaletteSync\",(function(){return Yt})),r.d(e,\"buildPalette\",(function(){return Wt})),r.d(e,\"buildPaletteSync\",(function(){return Zt})),r.d(e,\"constants\",(function(){return a})),r.d(e,\"conversion\",(function(){return l})),r.d(e,\"distance\",(function(){return N})),r.d(e,\"image\",(function(){return Ct})),r.d(e,\"palette\",(function(){return tt})),r.d(e,\"quality\",(function(){return jt})),r.d(e,\"utils\",(function(){return at}));var n=Object.defineProperty,i=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},o=(t,e,r)=>(((t,e,r)=>{e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r})(t,\"symbol\"!=typeof e?e+\"\":e,r),r),a={};i(a,{bt709:()=>s});var s={};i(s,{Y:()=>u,x:()=>c,y:()=>f});var u=(t=>(t[t.RED=.2126]=\"RED\",t[t.GREEN=.7152]=\"GREEN\",t[t.BLUE=.0722]=\"BLUE\",t[t.WHITE=1]=\"WHITE\",t))(u||{}),c=(t=>(t[t.RED=.64]=\"RED\",t[t.GREEN=.3]=\"GREEN\",t[t.BLUE=.15]=\"BLUE\",t[t.WHITE=.3127]=\"WHITE\",t))(c||{}),f=(t=>(t[t.RED=.33]=\"RED\",t[t.GREEN=.6]=\"GREEN\",t[t.BLUE=.06]=\"BLUE\",t[t.WHITE=.329]=\"WHITE\",t))(f||{}),l={};function h(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}function p(t,e,r){return{x:.4124*(t=h(t/255))+.3576*(e=h(e/255))+.1805*(r=h(r/255)),y:.2126*t+.7152*e+.0722*r,z:.0193*t+.1192*e+.9505*r}}i(l,{lab2rgb:()=>L,lab2xyz:()=>B,rgb2hsl:()=>x,rgb2lab:()=>M,rgb2xyz:()=>p,xyz2lab:()=>S,xyz2rgb:()=>P});var d={};function m(t){return t*(Math.PI/180)}function g(t,e,r){let n=t;return n<e&&(n=e),n<r&&(n=r),n}function y(t,e,r){let n=t;return n>e&&(n=e),n>r&&(n=r),n}function v(t,e,r){return t>r&&(t=r),t<e&&(t=e),0|t}function b(t){return(t=Math.round(t))>255?t=255:t<0&&(t=0),t}function w(t){return t>255?t=255:t<0&&(t=0),t}function _(t,e){const r=typeof t[0];let n;if(\"number\"===r||\"string\"===r){const r=Object.create(null);for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]||0===r[n]||(r[n]=e)}n=t.sort(((t,n)=>e(t,n)||r[t]-r[n]))}else{const r=t.slice(0);n=t.sort(((t,n)=>e(t,n)||r.indexOf(t)-r.indexOf(n)))}return n}function x(t,e,r){const n=y(t,e,r),i=g(t,e,r),o=i-n,a=(n+i)/510;let s=0;a>0&&a<1&&(s=o/(a<.5?i+n:510-i-n));let u=0;return o>0&&(u=i===t?(e-r)/o:i===e?2+(r-t)/o:4+(t-e)/o,u*=60,u<0&&(u+=360)),{h:u,s,l:a}}i(d,{degrees2radians:()=>m,inRange0to255:()=>w,inRange0to255Rounded:()=>b,intInRange:()=>v,max3:()=>g,min3:()=>y,stableSort:()=>_});var E=.95047,A=1,D=1.08883;function k(t){return t>.008856?t**(1/3):7.787*t+16/116}function S(t,e,r){if(t=k(t/E),e=k(e/A),r=k(r/D),116*e-16<0)throw new Error(\"xxx\");return{L:Math.max(0,116*e-16),a:500*(t-e),b:200*(e-r)}}function M(t,e,r){const n=p(t,e,r);return S(n.x,n.y,n.z)}var C=.95047,T=1,O=1.08883;function F(t){return t>.206893034?t**3:(t-16/116)/7.787}function B(t,e,r){const n=(t+16)/116,i=n-r/200;return{x:C*F(e/500+n),y:T*F(n),z:O*F(i)}}function I(t){return t>.0031308?1.055*t**(1/2.4)-.055:12.92*t}function P(t,e,r){const n=I(3.2406*t+-1.5372*e+-.4986*r),i=I(-.9689*t+1.8758*e+.0415*r),o=I(.0557*t+-.204*e+1.057*r);return{r:b(255*n),g:b(255*i),b:b(255*o)}}function L(t,e,r){const n=B(t,e,r);return P(n.x,n.y,n.z)}var N={};i(N,{AbstractDistanceCalculator:()=>j,AbstractEuclidean:()=>Z,AbstractManhattan:()=>$,CIE94GraphicArts:()=>U,CIE94Textiles:()=>z,CIEDE2000:()=>H,CMetric:()=>q,Euclidean:()=>W,EuclideanBT709:()=>Y,EuclideanBT709NoAlpha:()=>X,Manhattan:()=>V,ManhattanBT709:()=>Q,ManhattanNommyde:()=>J,PNGQuant:()=>K});var j=class{constructor(){o(this,\"_maxDistance\"),o(this,\"_whitePoint\"),this._setDefaults(),this.setWhitePoint(255,255,255,255)}setWhitePoint(t,e,r,n){this._whitePoint={r:t>0?255/t:0,g:e>0?255/e:0,b:r>0?255/r:0,a:n>0?255/n:0},this._maxDistance=this.calculateRaw(t,e,r,n,0,0,0,0)}calculateNormalized(t,e){return this.calculateRaw(t.r,t.g,t.b,t.a,e.r,e.g,e.b,e.a)/this._maxDistance}},R=class extends j{calculateRaw(t,e,r,n,i,o,a,s){const u=M(w(t*this._whitePoint.r),w(e*this._whitePoint.g),w(r*this._whitePoint.b)),c=M(w(i*this._whitePoint.r),w(o*this._whitePoint.g),w(a*this._whitePoint.b)),f=u.L-c.L,l=u.a-c.a,h=u.b-c.b,p=Math.sqrt(u.a*u.a+u.b*u.b),d=p-Math.sqrt(c.a*c.a+c.b*c.b);let m=l*l+h*h-d*d;m=m<0?0:Math.sqrt(m);const g=(s-n)*this._whitePoint.a*this._kA;return Math.sqrt((f/this._Kl)**2+(d/(1+this._K1*p))**2+(m/(1+this._K2*p))**2+g**2)}},z=class extends R{_setDefaults(){this._Kl=2,this._K1=.048,this._K2=.014,this._kA=12.5/255}},U=class extends R{_setDefaults(){this._Kl=1,this._K1=.045,this._K2=.015,this._kA=25/255}},G=class extends j{_setDefaults(){}static _calculatehp(t,e){const r=Math.atan2(t,e);return r>=0?r:r+G._deg360InRad}static _calculateRT(t,e){const r=e**7,n=2*Math.sqrt(r/(r+G._pow25to7)),i=G._deg30InRad*Math.exp(-(((t-G._deg275InRad)/G._deg25InRad)**2));return-Math.sin(2*i)*n}static _calculateT(t){return 1-.17*Math.cos(t-G._deg30InRad)+.24*Math.cos(2*t)+.32*Math.cos(3*t+G._deg6InRad)-.2*Math.cos(4*t-G._deg63InRad)}static _calculate_ahp(t,e,r,n){const i=r+n;return 0===t?i:e<=G._deg180InRad?i/2:i<G._deg360InRad?(i+G._deg360InRad)/2:(i-G._deg360InRad)/2}static _calculate_dHp(t,e,r,n){let i;return i=0===t?0:e<=G._deg180InRad?r-n:r<=n?r-n+G._deg360InRad:r-n-G._deg360InRad,2*Math.sqrt(t)*Math.sin(i/2)}calculateRaw(t,e,r,n,i,o,a,s){const u=M(w(t*this._whitePoint.r),w(e*this._whitePoint.g),w(r*this._whitePoint.b)),c=M(w(i*this._whitePoint.r),w(o*this._whitePoint.g),w(a*this._whitePoint.b)),f=(s-n)*this._whitePoint.a*G._kA,l=this.calculateRawInLab(u,c);return Math.sqrt(l+f*f)}calculateRawInLab(t,e){const r=t.L,n=t.a,i=t.b,o=e.L,a=e.a,s=e.b,u=((Math.sqrt(n*n+i*i)+Math.sqrt(a*a+s*s))/2)**7,c=.5*(1-Math.sqrt(u/(u+G._pow25to7))),f=(1+c)*n,l=(1+c)*a,h=Math.sqrt(f*f+i*i),p=Math.sqrt(l*l+s*s),d=h*p,m=G._calculatehp(i,f),g=G._calculatehp(s,l),y=Math.abs(m-g),v=o-r,b=p-h,w=G._calculate_dHp(d,y,g,m),_=G._calculate_ahp(d,y,m,g),x=(h+p)/2,E=((r+o)/2-50)**2,A=b/(1+.045*x),D=w/(1+.015*G._calculateT(_)*x);return(v/(1+.015*E/Math.sqrt(20+E)))**2+A**2+D**2+G._calculateRT(_,x)*A*D}},H=G;o(H,\"_kA\",25/255),o(H,\"_pow25to7\",25**7),o(H,\"_deg360InRad\",m(360)),o(H,\"_deg180InRad\",m(180)),o(H,\"_deg30InRad\",m(30)),o(H,\"_deg6InRad\",m(6)),o(H,\"_deg63InRad\",m(63)),o(H,\"_deg275InRad\",m(275)),o(H,\"_deg25InRad\",m(25));var q=class extends j{calculateRaw(t,e,r,n,i,o,a,s){const u=(t+i)/2*this._whitePoint.r,c=(t-i)*this._whitePoint.r,f=(e-o)*this._whitePoint.g,l=(r-a)*this._whitePoint.b,h=((512+u)*c*c>>8)+4*f*f+((767-u)*l*l>>8),p=(s-n)*this._whitePoint.a;return Math.sqrt(h+p*p)}_setDefaults(){}},Z=class extends j{calculateRaw(t,e,r,n,i,o,a,s){const u=i-t,c=o-e,f=a-r,l=s-n;return Math.sqrt(this._kR*u*u+this._kG*c*c+this._kB*f*f+this._kA*l*l)}},W=class extends Z{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},Y=class extends Z{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},X=class extends Z{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=0}},$=class extends j{calculateRaw(t,e,r,n,i,o,a,s){let u=i-t,c=o-e,f=a-r,l=s-n;return u<0&&(u=0-u),c<0&&(c=0-c),f<0&&(f=0-f),l<0&&(l=0-l),this._kR*u+this._kG*c+this._kB*f+this._kA*l}},V=class extends ${_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},J=class extends ${_setDefaults(){this._kR=.4984,this._kG=.8625,this._kB=.2979,this._kA=1}},Q=class extends ${_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},K=class extends j{calculateRaw(t,e,r,n,i,o,a,s){const u=(s-n)*this._whitePoint.a;return this._colordifferenceCh(t*this._whitePoint.r,i*this._whitePoint.r,u)+this._colordifferenceCh(e*this._whitePoint.g,o*this._whitePoint.g,u)+this._colordifferenceCh(r*this._whitePoint.b,a*this._whitePoint.b,u)}_colordifferenceCh(t,e,r){const n=t-e,i=n+r;return n*n+i*i}_setDefaults(){}},tt={};i(tt,{AbstractPaletteQuantizer:()=>et,ColorHistogram:()=>vt,NeuQuant:()=>pt,NeuQuantFloat:()=>gt,RGBQuant:()=>wt,WuColorCube:()=>kt,WuQuant:()=>Mt});var et=class{quantizeSync(){for(const t of this.quantize())if(t.palette)return t.palette;throw new Error(\"unreachable\")}},rt=class{constructor(){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),o(this,\"uint32\"),o(this,\"rgba\"),this.uint32=-1>>>0,this.r=this.g=this.b=this.a=0,this.rgba=new Array(4),this.rgba[0]=0,this.rgba[1]=0,this.rgba[2]=0,this.rgba[3]=0}static createByQuadruplet(t){const e=new rt;return e.r=0|t[0],e.g=0|t[1],e.b=0|t[2],e.a=0|t[3],e._loadUINT32(),e._loadQuadruplet(),e}static createByRGBA(t,e,r,n){const i=new rt;return i.r=0|t,i.g=0|e,i.b=0|r,i.a=0|n,i._loadUINT32(),i._loadQuadruplet(),i}static createByUint32(t){const e=new rt;return e.uint32=t>>>0,e._loadRGBA(),e._loadQuadruplet(),e}from(t){this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this.uint32=t.uint32,this.rgba[0]=t.r,this.rgba[1]=t.g,this.rgba[2]=t.b,this.rgba[3]=t.a}getLuminosity(t){let e=this.r,r=this.g,n=this.b;return t&&(e=Math.min(255,255-this.a+this.a*e/255),r=Math.min(255,255-this.a+this.a*r/255),n=Math.min(255,255-this.a+this.a*n/255)),.2126*e+.7152*r+.0722*n}_loadUINT32(){this.uint32=(this.a<<24|this.b<<16|this.g<<8|this.r)>>>0}_loadRGBA(){this.r=255&this.uint32,this.g=this.uint32>>>8&255,this.b=this.uint32>>>16&255,this.a=this.uint32>>>24&255}_loadQuadruplet(){this.rgba[0]=this.r,this.rgba[1]=this.g,this.rgba[2]=this.b,this.rgba[3]=this.a}},nt=class{constructor(){o(this,\"_pointArray\"),o(this,\"_width\"),o(this,\"_height\"),this._width=0,this._height=0,this._pointArray=[]}getWidth(){return this._width}getHeight(){return this._height}setWidth(t){this._width=t}setHeight(t){this._height=t}getPointArray(){return this._pointArray}clone(){const t=new nt;t._width=this._width,t._height=this._height;for(let e=0,r=this._pointArray.length;e<r;e++)t._pointArray[e]=rt.createByUint32(0|this._pointArray[e].uint32);return t}toUint32Array(){const t=this._pointArray.length,e=new Uint32Array(t);for(let r=0;r<t;r++)e[r]=this._pointArray[r].uint32;return e}toUint8Array(){return new Uint8Array(this.toUint32Array().buffer)}static fromHTMLImageElement(t){const e=t.naturalWidth,r=t.naturalHeight,n=document.createElement(\"canvas\");n.width=e,n.height=r;return n.getContext(\"2d\").drawImage(t,0,0,e,r,0,0,e,r),nt.fromHTMLCanvasElement(n)}static fromHTMLCanvasElement(t){const e=t.width,r=t.height,n=t.getContext(\"2d\").getImageData(0,0,e,r);return nt.fromImageData(n)}static fromImageData(t){const e=t.width,r=t.height;return nt.fromUint8Array(t.data,e,r)}static fromUint8Array(t,e,r){switch(Object.prototype.toString.call(t)){case\"[object Uint8ClampedArray]\":case\"[object Uint8Array]\":break;default:t=new Uint8Array(t)}const n=new Uint32Array(t.buffer);return nt.fromUint32Array(n,e,r)}static fromUint32Array(t,e,r){const n=new nt;n._width=e,n._height=r;for(let e=0,r=t.length;e<r;e++)n._pointArray[e]=rt.createByUint32(0|t[e]);return n}static fromBuffer(t,e,r){const n=new Uint32Array(t.buffer,t.byteOffset,t.byteLength/Uint32Array.BYTES_PER_ELEMENT);return nt.fromUint32Array(n,e,r)}};function it(t,e){const r=360/e;for(let n=1,i=r-r/2;n<e;n++,i+=r)if(t>=i&&t<i+r)return n;return 0}var ot=class{constructor(){o(this,\"_pointContainer\"),o(this,\"_pointArray\",[]),o(this,\"_i32idx\",{}),this._pointContainer=new nt,this._pointContainer.setHeight(1),this._pointArray=this._pointContainer.getPointArray()}add(t){this._pointArray.push(t),this._pointContainer.setWidth(this._pointArray.length)}has(t){for(let e=this._pointArray.length-1;e>=0;e--)if(t.uint32===this._pointArray[e].uint32)return!0;return!1}getNearestColor(t,e){return this._pointArray[0|this._getNearestIndex(t,e)]}getPointContainer(){return this._pointContainer}_nearestPointFromCache(t){return\"number\"==typeof this._i32idx[t]?this._i32idx[t]:-1}_getNearestIndex(t,e){let r=this._nearestPointFromCache(\"\"+e.uint32);if(r>=0)return r;let n=Number.MAX_VALUE;r=0;for(let i=0,o=this._pointArray.length;i<o;i++){const o=this._pointArray[i],a=t.calculateRaw(e.r,e.g,e.b,e.a,o.r,o.g,o.b,o.a);a<n&&(n=a,r=i)}return this._i32idx[e.uint32]=r,r}sort(){this._i32idx={},this._pointArray.sort(((t,e)=>{const r=x(t.r,t.g,t.b),n=x(e.r,e.g,e.b),i=t.r===t.g&&t.g===t.b?0:1+it(r.h,10),o=(e.r===e.g&&e.g===e.b?0:1+it(n.h,10))-i;if(o)return-o;const a=t.getLuminosity(!0),s=e.getLuminosity(!0);if(s-a!=0)return s-a;const u=(100*n.s|0)-(100*r.s|0);return u?-u:0}))}},at={};i(at,{HueStatistics:()=>ut,Palette:()=>ot,Point:()=>rt,PointContainer:()=>nt,ProgressTracker:()=>ft,arithmetic:()=>d});var st=class{constructor(){o(this,\"num\",0),o(this,\"cols\",[])}},ut=class{constructor(t,e){o(this,\"_numGroups\"),o(this,\"_minCols\"),o(this,\"_stats\"),o(this,\"_groupsFull\"),this._numGroups=t,this._minCols=e,this._stats=[];for(let e=0;e<=t;e++)this._stats[e]=new st;this._groupsFull=0}check(t){this._groupsFull===this._numGroups+1&&(this.check=()=>{});const e=255&t,r=t>>>8&255,n=t>>>16&255,i=e===r&&r===n?0:1+it(x(e,r,n).h,this._numGroups),o=this._stats[i],a=this._minCols;o.num++,o.num>a||(o.num===a&&this._groupsFull++,o.num<=a&&this._stats[i].cols.push(t))}injectIntoDictionary(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{t[e]?t[e]++:t[e]=1}))}injectIntoArray(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{-1===t.indexOf(e)&&t.push(e)}))}},ct=class{constructor(t,e){o(this,\"progress\"),o(this,\"_step\"),o(this,\"_range\"),o(this,\"_last\"),o(this,\"_progressRange\"),this._range=t,this._progressRange=e,this._step=Math.max(1,this._range/(ct.steps+1)|0),this._last=-this._step,this.progress=0}shouldNotify(t){return t-this._last>=this._step&&(this._last=t,this.progress=Math.min(this._progressRange*this._last/this._range,this._progressRange),!0)}},ft=ct;o(ft,\"steps\",100);var lt=class{constructor(t){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return rt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=0|t,this.g-=0|e,this.b-=0|r,this.a-=0|n}},ht=class extends et{constructor(t,e=256){super(),o(this,\"_pointArray\"),o(this,\"_networkSize\"),o(this,\"_network\"),o(this,\"_sampleFactor\"),o(this,\"_radPower\"),o(this,\"_freq\"),o(this,\"_bias\"),o(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new lt((t<<11)/this._networkSize|0),this._freq[t]=ht._initialBias/this._networkSize|0,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<ht._minpicturebytes&&(t=1);const r=30+(t-1)/3|0,n=e/t|0;let i,o=n/ht._nCycles|0,a=ht._initAlpha,s=(this._networkSize>>3)*ht._radiusBias,u=s>>ht._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*ht._radBias/(u*u))>>>0;i=e<ht._minpicturebytes?1:e%ht._prime1!=0?ht._prime1:e%ht._prime2!=0?ht._prime2:e%ht._prime3!=0?ht._prime3:ht._prime4;const c=new ft(n,99);for(let t=0,f=0;t<n;){c.shouldNotify(t)&&(yield{progress:c.progress});const n=this._pointArray[f],l=n.b<<3,h=n.g<<3,p=n.r<<3,d=n.a<<3,m=this._contest(l,h,p,d);if(this._alterSingle(a,m,l,h,p,d),0!==u&&this._alterNeighbour(u,m,l,h,p,d),f+=i,f>=e&&(f-=e),t++,0===o&&(o=1),t%o==0){a-=a/r|0,s-=s/ht._radiusDecrease|0,u=s>>ht._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*ht._radBias/(u*u))>>>0}}}_buildPalette(){const t=new ot;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,o){let a=e-t;a<-1&&(a=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,c=e-1,f=1;for(;u<s||c>a;){const t=this._radPower[f++]/ht._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}if(c>a){const e=this._network[c--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}}}_alterSingle(t,e,r,n,i,o){t/=ht._initAlpha;const a=this._network[e];a.subtract(t*(a.r-i),t*(a.g-n),t*(a.b-r),t*(a.a-o))}_contest(t,e,r,n){let i=~(1<<31),o=i,a=-1,s=a;for(let u=0;u<this._networkSize;u++){const c=this._network[u],f=8160*this._distance.calculateNormalized(c,{r,g:e,b:t,a:n})|0;f<i&&(i=f,a=u);const l=f-(this._bias[u]>>ht._initialBiasShift-3);l<o&&(o=l,s=u);const h=this._freq[u]>>ht._betaShift;this._freq[u]-=h,this._bias[u]+=h<<ht._gammaShift}return this._freq[a]+=ht._beta,this._bias[a]-=ht._betaGamma,s}},pt=ht;o(pt,\"_prime1\",499),o(pt,\"_prime2\",491),o(pt,\"_prime3\",487),o(pt,\"_prime4\",503),o(pt,\"_minpicturebytes\",ht._prime4),o(pt,\"_nCycles\",100),o(pt,\"_initialBiasShift\",16),o(pt,\"_initialBias\",1<<ht._initialBiasShift),o(pt,\"_gammaShift\",10),o(pt,\"_betaShift\",10),o(pt,\"_beta\",ht._initialBias>>ht._betaShift),o(pt,\"_betaGamma\",ht._initialBias<<ht._gammaShift-ht._betaShift),o(pt,\"_radiusBiasShift\",6),o(pt,\"_radiusBias\",1<<ht._radiusBiasShift),o(pt,\"_radiusDecrease\",30),o(pt,\"_alphaBiasShift\",10),o(pt,\"_initAlpha\",1<<ht._alphaBiasShift),o(pt,\"_radBiasShift\",8),o(pt,\"_radBias\",1<<ht._radBiasShift),o(pt,\"_alphaRadBiasShift\",ht._alphaBiasShift+ht._radBiasShift),o(pt,\"_alphaRadBias\",1<<ht._alphaRadBiasShift);var dt=class{constructor(t){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return rt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=t,this.g-=e,this.b-=r,this.a-=n}},mt=class extends et{constructor(t,e=256){super(),o(this,\"_pointArray\"),o(this,\"_networkSize\"),o(this,\"_network\"),o(this,\"_sampleFactor\"),o(this,\"_radPower\"),o(this,\"_freq\"),o(this,\"_bias\"),o(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new dt((t<<11)/this._networkSize),this._freq[t]=mt._initialBias/this._networkSize,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<mt._minpicturebytes&&(t=1);const r=30+(t-1)/3,n=e/t;let i,o=n/mt._nCycles|0,a=mt._initAlpha,s=(this._networkSize>>3)*mt._radiusBias,u=s>>mt._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*mt._radBias/(u*u));i=e<mt._minpicturebytes?1:e%mt._prime1!=0?mt._prime1:e%mt._prime2!=0?mt._prime2:e%mt._prime3!=0?mt._prime3:mt._prime4;const c=new ft(n,99);for(let t=0,f=0;t<n;){c.shouldNotify(t)&&(yield{progress:c.progress});const n=this._pointArray[f],l=n.b<<3,h=n.g<<3,p=n.r<<3,d=n.a<<3,m=this._contest(l,h,p,d);if(this._alterSingle(a,m,l,h,p,d),0!==u&&this._alterNeighbour(u,m,l,h,p,d),f+=i,f>=e&&(f-=e),t++,0===o&&(o=1),t%o==0){a-=a/r,s-=s/mt._radiusDecrease,u=s>>mt._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*mt._radBias/(u*u))}}}_buildPalette(){const t=new ot;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,o){let a=e-t;a<-1&&(a=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,c=e-1,f=1;for(;u<s||c>a;){const t=this._radPower[f++]/mt._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}if(c>a){const e=this._network[c--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-o))}}}_alterSingle(t,e,r,n,i,o){t/=mt._initAlpha;const a=this._network[e];a.subtract(t*(a.r-i),t*(a.g-n),t*(a.b-r),t*(a.a-o))}_contest(t,e,r,n){let i=~(1<<31),o=i,a=-1,s=a;for(let u=0;u<this._networkSize;u++){const c=this._network[u],f=8160*this._distance.calculateNormalized(c,{r,g:e,b:t,a:n});f<i&&(i=f,a=u);const l=f-(this._bias[u]>>mt._initialBiasShift-3);l<o&&(o=l,s=u);const h=this._freq[u]>>mt._betaShift;this._freq[u]-=h,this._bias[u]+=h<<mt._gammaShift}return this._freq[a]+=mt._beta,this._bias[a]-=mt._betaGamma,s}},gt=mt;o(gt,\"_prime1\",499),o(gt,\"_prime2\",491),o(gt,\"_prime3\",487),o(gt,\"_prime4\",503),o(gt,\"_minpicturebytes\",mt._prime4),o(gt,\"_nCycles\",100),o(gt,\"_initialBiasShift\",16),o(gt,\"_initialBias\",1<<mt._initialBiasShift),o(gt,\"_gammaShift\",10),o(gt,\"_betaShift\",10),o(gt,\"_beta\",mt._initialBias>>mt._betaShift),o(gt,\"_betaGamma\",mt._initialBias<<mt._gammaShift-mt._betaShift),o(gt,\"_radiusBiasShift\",6),o(gt,\"_radiusBias\",1<<mt._radiusBiasShift),o(gt,\"_radiusDecrease\",30),o(gt,\"_alphaBiasShift\",10),o(gt,\"_initAlpha\",1<<mt._alphaBiasShift),o(gt,\"_radBiasShift\",8),o(gt,\"_radBias\",1<<mt._radBiasShift),o(gt,\"_alphaRadBiasShift\",mt._alphaBiasShift+mt._radBiasShift),o(gt,\"_alphaRadBias\",1<<mt._alphaRadBiasShift);var yt=class{constructor(t,e){o(this,\"_method\"),o(this,\"_hueStats\"),o(this,\"_histogram\"),o(this,\"_initColors\"),o(this,\"_minHueCols\"),this._method=t,this._minHueCols=e<<2,this._initColors=e<<2,this._hueStats=new ut(yt._hueGroups,this._minHueCols),this._histogram=Object.create(null)}sample(t){switch(this._method){case 1:this._colorStats1D(t);break;case 2:this._colorStats2D(t)}}getImportanceSortedColorsIDXI32(){const t=_(Object.keys(this._histogram),((t,e)=>this._histogram[e]-this._histogram[t]));if(0===t.length)return[];let e;switch(this._method){case 1:const r=Math.min(t.length,this._initColors),n=t[r-1],i=this._histogram[n];e=t.slice(0,r);let o=r;const a=t.length;for(;o<a&&this._histogram[t[o]]===i;)e.push(t[o++]);this._hueStats.injectIntoArray(e);break;case 2:e=t;break;default:throw new Error(\"Incorrect method\")}return e.map((t=>+t))}_colorStats1D(t){const e=this._histogram,r=t.getPointArray(),n=r.length;for(let t=0;t<n;t++){const n=r[t].uint32;this._hueStats.check(n),n in e?e[n]++:e[n]=1}}_colorStats2D(t){const e=t.getWidth(),r=t.getHeight(),n=t.getPointArray(),i=yt._boxSize[0],o=yt._boxSize[1],a=i*o,s=this._makeBoxes(e,r,i,o),u=this._histogram;s.forEach((t=>{let r=Math.round(t.w*t.h/a)*yt._boxPixels;r<2&&(r=2);const i={};this._iterateBox(t,e,(t=>{const e=n[t].uint32;this._hueStats.check(e),e in u?u[e]++:e in i?++i[e]>=r&&(u[e]=i[e]):i[e]=1}))})),this._hueStats.injectIntoDictionary(u)}_iterateBox(t,e,r){const n=t,i=n.y*e+n.x,o=(n.y+n.h-1)*e+(n.x+n.w-1),a=e-n.w+1;let s=0,u=i;do{r.call(this,u),u+=++s%n.w==0?a:1}while(u<=o)}_makeBoxes(t,e,r,n){const i=t%r,o=e%n,a=t-i,s=e-o,u=[];for(let c=0;c<e;c+=n)for(let e=0;e<t;e+=r)u.push({x:e,y:c,w:e===a?i:r,h:c===s?o:n});return u}},vt=yt;o(vt,\"_boxSize\",[64,64]),o(vt,\"_boxPixels\",2),o(vt,\"_hueGroups\",10);var bt=class{constructor(t,e,r){o(this,\"index\"),o(this,\"color\"),o(this,\"distance\"),this.index=t,this.color=e,this.distance=r}},wt=class extends et{constructor(t,e=256,r=2){super(),o(this,\"_colors\"),o(this,\"_initialDistance\"),o(this,\"_distanceIncrement\"),o(this,\"_histogram\"),o(this,\"_distance\"),this._distance=t,this._colors=e,this._histogram=new vt(r,e),this._initialDistance=.01,this._distanceIncrement=.005}sample(t){this._histogram.sample(t)}*quantize(){const t=this._histogram.getImportanceSortedColorsIDXI32();if(0===t.length)throw new Error(\"No colors in image\");yield*this._buildPalette(t)}*_buildPalette(t){const e=new ot,r=e.getPointContainer().getPointArray(),n=new Array(t.length);for(let e=0;e<t.length;e++)r.push(rt.createByUint32(t[e])),n[e]=1;const i=r.length,o=[];let a=i,s=this._initialDistance;const u=new ft(a-this._colors,99);for(;a>this._colors;){o.length=0;for(let t=0;t<i;t++){if(u.shouldNotify(i-a)&&(yield{progress:u.progress}),0===n[t])continue;const e=r[t];for(let u=t+1;u<i;u++){if(0===n[u])continue;const t=r[u],i=this._distance.calculateNormalized(e,t);i<s&&(o.push(new bt(u,t,i)),n[u]=0,a--)}}s+=a>3*this._colors?this._initialDistance:this._distanceIncrement}if(a<this._colors){_(o,((t,e)=>e.distance-t.distance));let t=0;for(;a<this._colors&&t<o.length;){n[o[t].index]=1,a++,t++}}let c=r.length;for(let t=c-1;t>=0;t--)0===n[t]&&(t!==c-1&&(r[t]=r[c-1]),--c);r.length=c,e.sort(),yield{palette:e,progress:100}}};function _t(t){const e=[];for(let r=0;r<t;r++)e[r]=0;return e}function xt(t,e,r,n){const i=new Array(t);for(let o=0;o<t;o++){i[o]=new Array(e);for(let t=0;t<e;t++){i[o][t]=new Array(r);for(let e=0;e<r;e++){i[o][t][e]=new Array(n);for(let r=0;r<n;r++)i[o][t][e][r]=0}}}return i}function Et(t,e,r){const n=new Array(t);for(let i=0;i<t;i++){n[i]=new Array(e);for(let t=0;t<e;t++){n[i][t]=new Array(r);for(let e=0;e<r;e++)n[i][t][e]=0}}return n}function At(t,e,r,n,i){for(let o=0;o<e;o++){t[o]=[];for(let e=0;e<r;e++){t[o][e]=[];for(let r=0;r<n;r++)t[o][e][r]=i}}}function Dt(t,e,r){for(let n=0;n<e;n++)t[n]=r}var kt=class{constructor(){o(this,\"redMinimum\"),o(this,\"redMaximum\"),o(this,\"greenMinimum\"),o(this,\"greenMaximum\"),o(this,\"blueMinimum\"),o(this,\"blueMaximum\"),o(this,\"volume\"),o(this,\"alphaMinimum\"),o(this,\"alphaMaximum\")}},St=class extends et{constructor(t,e=256,r=5){super(),o(this,\"_reds\"),o(this,\"_greens\"),o(this,\"_blues\"),o(this,\"_alphas\"),o(this,\"_sums\"),o(this,\"_weights\"),o(this,\"_momentsRed\"),o(this,\"_momentsGreen\"),o(this,\"_momentsBlue\"),o(this,\"_momentsAlpha\"),o(this,\"_moments\"),o(this,\"_table\"),o(this,\"_pixels\"),o(this,\"_cubes\"),o(this,\"_colors\"),o(this,\"_significantBitsPerChannel\"),o(this,\"_maxSideIndex\"),o(this,\"_alphaMaxSideIndex\"),o(this,\"_sideSize\"),o(this,\"_alphaSideSize\"),o(this,\"_distance\"),this._distance=t,this._setQuality(r),this._initialize(e)}sample(t){const e=t.getPointArray();for(let t=0,r=e.length;t<r;t++)this._addColor(e[t]);this._pixels=this._pixels.concat(e)}*quantize(){yield*this._preparePalette();const t=new ot;for(let e=0;e<this._colors;e++)if(this._sums[e]>0){const r=this._sums[e],n=this._reds[e]/r,i=this._greens[e]/r,o=this._blues[e]/r,a=this._alphas[e]/r,s=rt.createByRGBA(0|n,0|i,0|o,0|a);t.add(s)}t.sort(),yield{palette:t,progress:100}}*_preparePalette(){yield*this._calculateMoments();let t=0;const e=_t(this._colors);for(let r=1;r<this._colors;++r){this._cut(this._cubes[t],this._cubes[r])?(e[t]=this._cubes[t].volume>1?this._calculateVariance(this._cubes[t]):0,e[r]=this._cubes[r].volume>1?this._calculateVariance(this._cubes[r]):0):(e[t]=0,r--),t=0;let n=e[0];for(let i=1;i<=r;++i)e[i]>n&&(n=e[i],t=i);if(n<=0){this._colors=r+1;break}}const r=[],n=[],i=[],o=[];for(let t=0;t<this._colors;++t){const e=St._volume(this._cubes[t],this._weights);e>0?(r[t]=St._volume(this._cubes[t],this._momentsRed)/e|0,n[t]=St._volume(this._cubes[t],this._momentsGreen)/e|0,i[t]=St._volume(this._cubes[t],this._momentsBlue)/e|0,o[t]=St._volume(this._cubes[t],this._momentsAlpha)/e|0):(r[t]=0,n[t]=0,i[t]=0,o[t]=0)}this._reds=_t(this._colors+1),this._greens=_t(this._colors+1),this._blues=_t(this._colors+1),this._alphas=_t(this._colors+1),this._sums=_t(this._colors+1);for(let t=0,e=this._pixels.length;t<e;t++){const e=this._pixels[t];let a=-1,s=Number.MAX_VALUE;for(let t=0;t<this._colors;t++){const u=r[t],c=n[t],f=i[t],l=o[t],h=this._distance.calculateRaw(u,c,f,l,e.r,e.g,e.b,e.a);h<s&&(s=h,a=t)}this._reds[a]+=e.r,this._greens[a]+=e.g,this._blues[a]+=e.b,this._alphas[a]+=e.a,this._sums[a]++}}_addColor(t){const e=8-this._significantBitsPerChannel,r=1+(t.r>>e),n=1+(t.g>>e),i=1+(t.b>>e),o=1+(t.a>>e);this._weights[o][r][n][i]++,this._momentsRed[o][r][n][i]+=t.r,this._momentsGreen[o][r][n][i]+=t.g,this._momentsBlue[o][r][n][i]+=t.b,this._momentsAlpha[o][r][n][i]+=t.a,this._moments[o][r][n][i]+=this._table[t.r]+this._table[t.g]+this._table[t.b]+this._table[t.a]}*_calculateMoments(){const t=[],e=[],r=[],n=[],i=[],o=[],a=Et(this._sideSize,this._sideSize,this._sideSize),s=Et(this._sideSize,this._sideSize,this._sideSize),u=Et(this._sideSize,this._sideSize,this._sideSize),c=Et(this._sideSize,this._sideSize,this._sideSize),f=Et(this._sideSize,this._sideSize,this._sideSize),l=Et(this._sideSize,this._sideSize,this._sideSize);let h=0;const p=new ft(this._alphaMaxSideIndex*this._maxSideIndex,99);for(let d=1;d<=this._alphaMaxSideIndex;++d){At(a,this._sideSize,this._sideSize,this._sideSize,0),At(s,this._sideSize,this._sideSize,this._sideSize,0),At(u,this._sideSize,this._sideSize,this._sideSize,0),At(c,this._sideSize,this._sideSize,this._sideSize,0),At(f,this._sideSize,this._sideSize,this._sideSize,0),At(l,this._sideSize,this._sideSize,this._sideSize,0);for(let m=1;m<=this._maxSideIndex;++m,++h){p.shouldNotify(h)&&(yield{progress:p.progress}),Dt(t,this._sideSize,0),Dt(e,this._sideSize,0),Dt(r,this._sideSize,0),Dt(n,this._sideSize,0),Dt(i,this._sideSize,0),Dt(o,this._sideSize,0);for(let h=1;h<=this._maxSideIndex;++h){let p=0,g=0,y=0,v=0,b=0,w=0;for(let _=1;_<=this._maxSideIndex;++_)p+=this._weights[d][m][h][_],g+=this._momentsRed[d][m][h][_],y+=this._momentsGreen[d][m][h][_],v+=this._momentsBlue[d][m][h][_],b+=this._momentsAlpha[d][m][h][_],w+=this._moments[d][m][h][_],t[_]+=p,e[_]+=g,r[_]+=y,n[_]+=v,i[_]+=b,o[_]+=w,a[m][h][_]=a[m-1][h][_]+t[_],s[m][h][_]=s[m-1][h][_]+e[_],u[m][h][_]=u[m-1][h][_]+r[_],c[m][h][_]=c[m-1][h][_]+n[_],f[m][h][_]=f[m-1][h][_]+i[_],l[m][h][_]=l[m-1][h][_]+o[_],this._weights[d][m][h][_]=this._weights[d-1][m][h][_]+a[m][h][_],this._momentsRed[d][m][h][_]=this._momentsRed[d-1][m][h][_]+s[m][h][_],this._momentsGreen[d][m][h][_]=this._momentsGreen[d-1][m][h][_]+u[m][h][_],this._momentsBlue[d][m][h][_]=this._momentsBlue[d-1][m][h][_]+c[m][h][_],this._momentsAlpha[d][m][h][_]=this._momentsAlpha[d-1][m][h][_]+f[m][h][_],this._moments[d][m][h][_]=this._moments[d-1][m][h][_]+l[m][h][_]}}}}static _volumeFloat(t,e){return e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMaximum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum])}static _volume(t,e){return 0|St._volumeFloat(t,e)}static _top(t,e,r,n){let i;switch(e){case St._alpha:i=n[r][t.redMaximum][t.greenMaximum][t.blueMaximum]-n[r][t.redMaximum][t.greenMinimum][t.blueMaximum]-n[r][t.redMinimum][t.greenMaximum][t.blueMaximum]+n[r][t.redMinimum][t.greenMinimum][t.blueMaximum]-(n[r][t.redMaximum][t.greenMaximum][t.blueMinimum]-n[r][t.redMaximum][t.greenMinimum][t.blueMinimum]-n[r][t.redMinimum][t.greenMaximum][t.blueMinimum]+n[r][t.redMinimum][t.greenMinimum][t.blueMinimum]);break;case St._red:i=n[t.alphaMaximum][r][t.greenMaximum][t.blueMaximum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMaximum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMaximum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMaximum]-(n[t.alphaMaximum][r][t.greenMaximum][t.blueMinimum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMinimum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMinimum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMinimum]);break;case St._green:i=n[t.alphaMaximum][t.redMaximum][r][t.blueMaximum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMaximum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMaximum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMaximum]-(n[t.alphaMaximum][t.redMaximum][r][t.blueMinimum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMinimum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMinimum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMinimum]);break;case St._blue:i=n[t.alphaMaximum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMaximum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMaximum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMaximum][t.redMinimum][t.greenMinimum][r]-(n[t.alphaMinimum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMinimum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMinimum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMinimum][t.redMinimum][t.greenMinimum][r]);break;default:throw new Error(\"impossible\")}return 0|i}static _bottom(t,e,r){switch(e){case St._alpha:return-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case St._red:return-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case St._green:return-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case St._blue:return-r[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);default:return 0}}_calculateVariance(t){const e=St._volume(t,this._momentsRed),r=St._volume(t,this._momentsGreen),n=St._volume(t,this._momentsBlue),i=St._volume(t,this._momentsAlpha);return St._volumeFloat(t,this._moments)-(e*e+r*r+n*n+i*i)/St._volume(t,this._weights)}_maximize(t,e,r,n,i,o,a,s,u){const c=0|St._bottom(t,e,this._momentsRed),f=0|St._bottom(t,e,this._momentsGreen),l=0|St._bottom(t,e,this._momentsBlue),h=0|St._bottom(t,e,this._momentsAlpha),p=0|St._bottom(t,e,this._weights);let d=0,m=-1;for(let g=r;g<n;++g){let r=c+St._top(t,e,g,this._momentsRed),n=f+St._top(t,e,g,this._momentsGreen),y=l+St._top(t,e,g,this._momentsBlue),v=h+St._top(t,e,g,this._momentsAlpha),b=p+St._top(t,e,g,this._weights);if(0!==b){let t=r*r+n*n+y*y+v*v,e=t/b;r=i-r,n=o-n,y=a-y,v=s-v,b=u-b,0!==b&&(t=r*r+n*n+y*y+v*v,e+=t/b,e>d&&(d=e,m=g))}}return{max:d,position:m}}_cut(t,e){let r;const n=St._volume(t,this._momentsRed),i=St._volume(t,this._momentsGreen),o=St._volume(t,this._momentsBlue),a=St._volume(t,this._momentsAlpha),s=St._volume(t,this._weights),u=this._maximize(t,St._red,t.redMinimum+1,t.redMaximum,n,i,o,a,s),c=this._maximize(t,St._green,t.greenMinimum+1,t.greenMaximum,n,i,o,a,s),f=this._maximize(t,St._blue,t.blueMinimum+1,t.blueMaximum,n,i,o,a,s),l=this._maximize(t,St._alpha,t.alphaMinimum+1,t.alphaMaximum,n,i,o,a,s);if(l.max>=u.max&&l.max>=c.max&&l.max>=f.max){if(r=St._alpha,l.position<0)return!1}else r=u.max>=l.max&&u.max>=c.max&&u.max>=f.max?St._red:c.max>=l.max&&c.max>=u.max&&c.max>=f.max?St._green:St._blue;switch(e.redMaximum=t.redMaximum,e.greenMaximum=t.greenMaximum,e.blueMaximum=t.blueMaximum,e.alphaMaximum=t.alphaMaximum,r){case St._red:e.redMinimum=t.redMaximum=u.position,e.greenMinimum=t.greenMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case St._green:e.greenMinimum=t.greenMaximum=c.position,e.redMinimum=t.redMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case St._blue:e.blueMinimum=t.blueMaximum=f.position,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum,e.alphaMinimum=t.alphaMinimum;break;case St._alpha:e.alphaMinimum=t.alphaMaximum=l.position,e.blueMinimum=t.blueMinimum,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum}return t.volume=(t.redMaximum-t.redMinimum)*(t.greenMaximum-t.greenMinimum)*(t.blueMaximum-t.blueMinimum)*(t.alphaMaximum-t.alphaMinimum),e.volume=(e.redMaximum-e.redMinimum)*(e.greenMaximum-e.greenMinimum)*(e.blueMaximum-e.blueMinimum)*(e.alphaMaximum-e.alphaMinimum),!0}_initialize(t){this._colors=t,this._cubes=[];for(let e=0;e<t;e++)this._cubes[e]=new kt;this._cubes[0].redMinimum=0,this._cubes[0].greenMinimum=0,this._cubes[0].blueMinimum=0,this._cubes[0].alphaMinimum=0,this._cubes[0].redMaximum=this._maxSideIndex,this._cubes[0].greenMaximum=this._maxSideIndex,this._cubes[0].blueMaximum=this._maxSideIndex,this._cubes[0].alphaMaximum=this._alphaMaxSideIndex,this._weights=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsRed=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsGreen=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsBlue=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsAlpha=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._moments=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._table=[];for(let t=0;t<256;++t)this._table[t]=t*t;this._pixels=[]}_setQuality(t=5){this._significantBitsPerChannel=t,this._maxSideIndex=1<<this._significantBitsPerChannel,this._alphaMaxSideIndex=this._maxSideIndex,this._sideSize=this._maxSideIndex+1,this._alphaSideSize=this._alphaMaxSideIndex+1}},Mt=St;o(Mt,\"_alpha\",3),o(Mt,\"_red\",2),o(Mt,\"_green\",1),o(Mt,\"_blue\",0);var Ct={};i(Ct,{AbstractImageQuantizer:()=>Tt,ErrorDiffusionArray:()=>Bt,ErrorDiffusionArrayKernel:()=>Ft,ErrorDiffusionRiemersma:()=>Nt,NearestColor:()=>Ot});var Tt=class{quantizeSync(t,e){for(const r of this.quantize(t,e))if(r.pointContainer)return r.pointContainer;throw new Error(\"unreachable\")}},Ot=class extends Tt{constructor(t){super(),o(this,\"_distance\"),this._distance=t}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),o=new ft(i,99);for(let t=0;t<i;t++){o.shouldNotify(t)&&(yield{progress:o.progress});for(let i=0,o=t*n;i<n;i++,o++){const t=r[o];t.from(e.getNearestColor(this._distance,t))}}yield{pointContainer:t,progress:100}}},Ft=(t=>(t[t.FloydSteinberg=0]=\"FloydSteinberg\",t[t.FalseFloydSteinberg=1]=\"FalseFloydSteinberg\",t[t.Stucki=2]=\"Stucki\",t[t.Atkinson=3]=\"Atkinson\",t[t.Jarvis=4]=\"Jarvis\",t[t.Burkes=5]=\"Burkes\",t[t.Sierra=6]=\"Sierra\",t[t.TwoSierra=7]=\"TwoSierra\",t[t.SierraLite=8]=\"SierraLite\",t))(Ft||{}),Bt=class extends Tt{constructor(t,e,r=!0,n=0,i=!1){super(),o(this,\"_minColorDistance\"),o(this,\"_serpentine\"),o(this,\"_kernel\"),o(this,\"_calculateErrorLikeGIMP\"),o(this,\"_distance\"),this._setKernel(e),this._distance=t,this._minColorDistance=n,this._serpentine=r,this._calculateErrorLikeGIMP=i}*quantize(t,e){const r=t.getPointArray(),n=new rt,i=t.getWidth(),o=t.getHeight(),a=[];let s=1,u=1;for(const t of this._kernel){const e=t[2]+1;u<e&&(u=e)}for(let t=0;t<u;t++)this._fillErrorLine(a[t]=[],i);const c=new ft(o,99);for(let t=0;t<o;t++){c.shouldNotify(t)&&(yield{progress:c.progress}),this._serpentine&&(s*=-1);const u=t*i,f=1===s?0:i-1,l=1===s?i:-1;this._fillErrorLine(a[0],i),a.push(a.shift());const h=a[0];for(let c=f,p=u+f;c!==l;c+=s,p+=s){const u=r[p],f=h[c];n.from(u);const l=rt.createByRGBA(b(u.r+f[0]),b(u.g+f[1]),b(u.b+f[2]),b(u.a+f[3])),d=e.getNearestColor(this._distance,l);if(u.from(d),this._minColorDistance){if(this._distance.calculateNormalized(n,d)<this._minColorDistance)continue}let m,g,y,v;this._calculateErrorLikeGIMP?(m=l.r-d.r,g=l.g-d.g,y=l.b-d.b,v=l.a-d.a):(m=n.r-d.r,g=n.g-d.g,y=n.b-d.b,v=n.a-d.a);const w=1===s?0:this._kernel.length-1,_=1===s?this._kernel.length:-1;for(let e=w;e!==_;e+=s){const r=this._kernel[e][1]*s,n=this._kernel[e][2];if(r+c>=0&&r+c<i&&n+t>=0&&n+t<o){const t=this._kernel[e][0],i=a[n][r+c];i[0]+=m*t,i[1]+=g*t,i[2]+=y*t,i[3]+=v*t}}}}yield{pointContainer:t,progress:100}}_fillErrorLine(t,e){t.length>e&&(t.length=e);const r=t.length;for(let e=0;e<r;e++){const r=t[e];r[0]=r[1]=r[2]=r[3]=0}for(let n=r;n<e;n++)t[n]=[0,0,0,0]}_setKernel(t){switch(t){case 0:this._kernel=[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]];break;case 1:this._kernel=[[3/8,1,0],[3/8,0,1],[2/8,1,1]];break;case 2:this._kernel=[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]];break;case 3:this._kernel=[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]];break;case 4:this._kernel=[[7/48,1,0],[5/48,2,0],[3/48,-2,1],[5/48,-1,1],[7/48,0,1],[5/48,1,1],[3/48,2,1],[1/48,-2,2],[3/48,-1,2],[5/48,0,2],[3/48,1,2],[1/48,2,2]];break;case 5:this._kernel=[[.25,1,0],[4/32,2,0],[2/32,-2,1],[4/32,-1,1],[.25,0,1],[4/32,1,1],[2/32,2,1]];break;case 6:this._kernel=[[5/32,1,0],[3/32,2,0],[2/32,-2,1],[4/32,-1,1],[5/32,0,1],[4/32,1,1],[2/32,2,1],[2/32,-1,2],[3/32,0,2],[2/32,1,2]];break;case 7:this._kernel=[[.25,1,0],[3/16,2,0],[1/16,-2,1],[2/16,-1,1],[3/16,0,1],[2/16,1,1],[1/16,2,1]];break;case 8:this._kernel=[[.5,1,0],[1/4,-1,1],[1/4,0,1]];break;default:throw new Error(`ErrorDiffusionArray: unknown kernel = ${t}`)}}};function*It(t,e,r){const n=Math.max(t,e),i={width:t,height:e,level:Math.floor(Math.log(n)/Math.log(2)+1),callback:r,tracker:new ft(t*e,99),index:0,x:0,y:0};yield*Pt(i,1),Lt(i,0)}function*Pt(t,e){if(!(t.level<1)){switch(t.tracker.shouldNotify(t.index)&&(yield{progress:t.tracker.progress}),t.level--,e){case 2:yield*Pt(t,1),Lt(t,3),yield*Pt(t,2),Lt(t,4),yield*Pt(t,2),Lt(t,2),yield*Pt(t,4);break;case 3:yield*Pt(t,4),Lt(t,2),yield*Pt(t,3),Lt(t,1),yield*Pt(t,3),Lt(t,3),yield*Pt(t,1);break;case 1:yield*Pt(t,2),Lt(t,4),yield*Pt(t,1),Lt(t,3),yield*Pt(t,1),Lt(t,1),yield*Pt(t,3);break;case 4:yield*Pt(t,3),Lt(t,1),yield*Pt(t,4),Lt(t,2),yield*Pt(t,4),Lt(t,4),yield*Pt(t,2)}t.level++}}function Lt(t,e){switch(t.x>=0&&t.x<t.width&&t.y>=0&&t.y<t.height&&(t.callback(t.x,t.y),t.index++),e){case 2:t.x--;break;case 3:t.x++;break;case 1:t.y--;break;case 4:t.y++}}var Nt=class extends Tt{constructor(t,e=16,r=1){super(),o(this,\"_distance\"),o(this,\"_weights\"),o(this,\"_errorQueueSize\"),this._distance=t,this._errorQueueSize=e,this._weights=Nt._createWeights(r,e)}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),o=[];let a=0;for(let t=0;t<this._errorQueueSize;t++)o[t]={r:0,g:0,b:0,a:0};yield*It(n,i,((t,i)=>{const s=r[t+i*n];let{r:u,g:c,b:f,a:l}=s;for(let t=0;t<this._errorQueueSize;t++){const e=this._weights[t],r=o[(t+a)%this._errorQueueSize];u+=r.r*e,c+=r.g*e,f+=r.b*e,l+=r.a*e}const h=rt.createByRGBA(b(u),b(c),b(f),b(l)),p=e.getNearestColor(this._distance,h);a=(a+1)%this._errorQueueSize;const d=(a+this._errorQueueSize-1)%this._errorQueueSize;o[d].r=s.r-p.r,o[d].g=s.g-p.g,o[d].b=s.b-p.b,o[d].a=s.a-p.a,s.from(p)})),yield{pointContainer:t,progress:100}}static _createWeights(t,e){const r=[],n=Math.exp(Math.log(e)/(e-1));for(let i=0,o=1;i<e;i++)r[i]=(o+.5|0)/e*t,o*=n;return r}},jt={};i(jt,{ssim:()=>Ut});var Rt=.01,zt=.03;function Ut(t,e){if(t.getHeight()!==e.getHeight()||t.getWidth()!==e.getWidth())throw new Error(\"Images have different sizes!\");const r=(255*Rt)**2,n=(255*zt)**2;let i=0,o=0;return function(t,e,r){const n=8,i=t.getWidth(),o=t.getHeight();for(let a=0;a<o;a+=n)for(let s=0;s<i;s+=n){const u=Math.min(n,i-s),c=Math.min(n,o-a),f=Gt(t,s,a,u,c),l=Gt(e,s,a,u,c);r(f,l,Ht(f),Ht(l))}}(t,e,((t,e,a,s)=>{let u=0,c=0,f=0;for(let r=0;r<t.length;r++)c+=(t[r]-a)**2,f+=(e[r]-s)**2,u+=(t[r]-a)*(e[r]-s);const l=t.length-1;c/=l,f/=l,u/=l;o+=(2*a*s+r)*(2*u+n)/((a**2+s**2+r)*(c+f+n)),i++})),o/i}function Gt(t,e,r,n,i){const o=t.getPointArray(),a=[];let s=0;for(let u=r;u<r+i;u++){const r=u*t.getWidth();for(let t=e;t<e+n;t++){const e=o[r+t];a[s]=.2126*e.r+.7152*e.g+.0722*e.b,s++}}return a}function Ht(t){let e=0;for(const r of t)e+=r;return e/t.length}var qt=\"function\"==typeof setImmediate?setImmediate:\"undefined\"!=typeof process&&\"function\"==typeof(null==process?void 0:process.nextTick)?t=>process.nextTick(t):t=>setTimeout(t,0);function Zt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n}={}){const i=Jt($t(e),r,n);return t.forEach((t=>i.sample(t))),i.quantizeSync()}async function Wt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n,onProgress:i}={}){return new Promise(((o,a)=>{const s=Jt($t(e),r,n);let u;t.forEach((t=>s.sample(t)));const c=s.quantize(),f=()=>{try{const t=c.next();t.done?o(u):(t.value.palette&&(u=t.value.palette),i&&i(t.value.progress),qt(f))}catch(t){a(t)}};qt(f)}))}function Yt(t,e,{colorDistanceFormula:r,imageQuantization:n}={}){return Vt($t(r),n).quantizeSync(t,e)}async function Xt(t,e,{colorDistanceFormula:r,imageQuantization:n,onProgress:i}={}){return new Promise(((o,a)=>{let s;const u=Vt($t(r),n).quantize(t,e),c=()=>{try{const t=u.next();t.done?o(s):(t.value.pointContainer&&(s=t.value.pointContainer),i&&i(t.value.progress),qt(c))}catch(t){a(t)}};qt(c)}))}function $t(t=\"euclidean-bt709\"){switch(t){case\"cie94-graphic-arts\":return new U;case\"cie94-textiles\":return new z;case\"ciede2000\":return new H;case\"color-metric\":return new q;case\"euclidean\":return new W;case\"euclidean-bt709\":return new Y;case\"euclidean-bt709-noalpha\":return new X;case\"manhattan\":return new V;case\"manhattan-bt709\":return new Q;case\"manhattan-nommyde\":return new J;case\"pngquant\":return new K;default:throw new Error(`Unknown colorDistanceFormula ${t}`)}}function Vt(t,e=\"floyd-steinberg\"){switch(e){case\"nearest\":return new Ot(t);case\"riemersma\":return new Nt(t);case\"floyd-steinberg\":return new Bt(t,0);case\"false-floyd-steinberg\":return new Bt(t,1);case\"stucki\":return new Bt(t,2);case\"atkinson\":return new Bt(t,3);case\"jarvis\":return new Bt(t,4);case\"burkes\":return new Bt(t,5);case\"sierra\":return new Bt(t,6);case\"two-sierra\":return new Bt(t,7);case\"sierra-lite\":return new Bt(t,8);default:throw new Error(`Unknown imageQuantization ${e}`)}}function Jt(t,e=\"wuquant\",r=256){switch(e){case\"neuquant\":return new pt(t,r);case\"rgbquant\":return new wt(t,r);case\"wuquant\":return new Mt(t,r);case\"neuquant-float\":return new gt(t,r);default:throw new Error(`Unknown paletteQuantization ${e}`)}}},function(t,e,r){\"use strict\";var n=r(208),i=r(209),o=r(210),a=r(98);function s(t,e,r){var n=t;return i(e)?(r=e,\"string\"==typeof t&&(n={uri:t})):n=a(e,{uri:t}),n.callback=r,n}function u(t,e,r){return c(e=s(t,e,r))}function c(t){if(void 0===t.callback)throw new Error(\"callback argument missing\");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=f.response?f.response:f.responseText||function(t){try{if(\"document\"===t.responseType)return t.responseXML;var e=t.responseXML&&\"parsererror\"===t.responseXML.documentElement.nodeName;if(\"\"===t.responseType&&!e)return t.responseXML}catch(t){}return null}(f),y)try{t=JSON.parse(t)}catch(t){}return t}function i(t){return clearTimeout(l),t instanceof Error||(t=new Error(\"\"+(t||\"Unknown XMLHttpRequest Error\"))),t.statusCode=0,r(t,v)}function a(){if(!c){var e;clearTimeout(l),e=t.useXDR&&void 0===f.status?200:1223===f.status?204:f.status;var i=v,a=null;return 0!==e?(i={body:n(),statusCode:e,method:p,headers:{},url:h,rawRequest:f},f.getAllResponseHeaders&&(i.headers=o(f.getAllResponseHeaders()))):a=new Error(\"Internal XMLHttpRequest Error\"),r(a,i,i.body)}}var s,c,f=t.xhr||null;f||(f=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var l,h=f.url=t.uri||t.url,p=f.method=t.method||\"GET\",d=t.body||t.data,m=f.headers=t.headers||{},g=!!t.sync,y=!1,v={body:void 0,headers:{},statusCode:0,method:p,url:h,rawRequest:f};if(\"json\"in t&&!1!==t.json&&(y=!0,m.accept||m.Accept||(m.Accept=\"application/json\"),\"GET\"!==p&&\"HEAD\"!==p&&(m[\"content-type\"]||m[\"Content-Type\"]||(m[\"Content-Type\"]=\"application/json\"),d=JSON.stringify(!0===t.json?d:t.json))),f.onreadystatechange=function(){4===f.readyState&&setTimeout(a,0)},f.onload=a,f.onerror=i,f.onprogress=function(){},f.onabort=function(){c=!0},f.ontimeout=i,f.open(p,h,!g,t.username,t.password),g||(f.withCredentials=!!t.withCredentials),!g&&t.timeout>0&&(l=setTimeout((function(){if(!c){c=!0,f.abort(\"timeout\");var t=new Error(\"XMLHttpRequest timeout\");t.code=\"ETIMEDOUT\",i(t)}}),t.timeout)),f.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&f.setRequestHeader(s,m[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error(\"Headers cannot be set on an XDomainRequest object\");return\"responseType\"in t&&(f.responseType=t.responseType),\"beforeSend\"in t&&\"function\"==typeof t.beforeSend&&t.beforeSend(f),f.send(d||null),f}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest=\"withCredentials\"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}([\"get\",\"put\",\"post\",\"patch\",\"head\",\"delete\"],(function(t){u[\"delete\"===t?\"del\":t]=function(e,r,n){return(r=s(e,r,n)).method=t.toUpperCase(),c(r)}}))},function(t,e,r){(function(e){var r;r=\"undefined\"!=typeof window?window:void 0!==e?e:\"undefined\"!=typeof self?self:{},t.exports=r}).call(this,r(10))},function(t,e){t.exports=function(t){if(!t)return!1;var e=r.call(t);return\"[object Function]\"===e||\"function\"==typeof t&&\"[object RegExp]\"!==e||\"undefined\"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var r=Object.prototype.toString},function(t,e){var r=function(t){return t.replace(/^\\s+|\\s+$/g,\"\")};t.exports=function(t){if(!t)return{};for(var e,n={},i=r(t).split(\"\\n\"),o=0;o<i.length;o++){var a=i[o],s=a.indexOf(\":\"),u=r(a.slice(0,s)).toLowerCase(),c=r(a.slice(s+1));void 0===n[u]?n[u]=c:(e=n[u],\"[object Array]\"===Object.prototype.toString.call(e)?n[u].push(c):n[u]=[n[u],c])}return n}},function(t,e){function r(t,e){if(!(t=t.replace(/\\t+/g,\" \").trim()))return null;var r=t.indexOf(\" \");if(-1===r)throw new Error(\"no named row at line \"+e);var i=t.substring(0,r);t=(t=(t=(t=t.substring(r+1)).replace(/letter=[\\'\\\"]\\S+[\\'\\\"]/gi,\"\")).split(\"=\")).map((function(t){return t.trim().match(/(\".*?\"|[^\"\\s]+)+(?=\\s*|\\s*$)/g)}));for(var o=[],a=0;a<t.length;a++){var s=t[a];0===a?o.push({key:s[0],data:\"\"}):a===t.length-1?o[o.length-1].data=n(s[0]):(o[o.length-1].data=n(s[0]),o.push({key:s[1],data:\"\"}))}var u={key:i,data:{}};return o.forEach((function(t){u.data[t.key]=t.data})),u}function n(t){return t&&0!==t.length?0===t.indexOf('\"')||0===t.indexOf(\"'\")?t.substring(1,t.length-1):-1!==t.indexOf(\",\")?function(t){return t.split(\",\").map((function(t){return parseInt(t,10)}))}(t):parseInt(t,10):\"\"}t.exports=function(t){if(!t)throw new Error(\"no data provided\");var e={pages:[],chars:[],kernings:[]},n=(t=t.toString().trim()).split(/\\r\\n?|\\n/g);if(0===n.length)throw new Error(\"no data in BMFont file\");for(var i=0;i<n.length;i++){var o=r(n[i],i);if(o)if(\"page\"===o.key){if(\"number\"!=typeof o.data.id)throw new Error(\"malformed file at line \"+i+\" -- needs page id=N\");if(\"string\"!=typeof o.data.file)throw new Error(\"malformed file at line \"+i+' -- needs page file=\"path\"');e.pages[o.data.id]=o.data.file}else\"chars\"===o.key||\"kernings\"===o.key||(\"char\"===o.key?e.chars.push(o.data):\"kerning\"===o.key?e.kernings.push(o.data):e[o.key]=o.data)}return e}},function(t,e,r){var n=r(213),i=r(214),o={scaleh:\"scaleH\",scalew:\"scaleW\",stretchh:\"stretchH\",lineheight:\"lineHeight\",alphachnl:\"alphaChnl\",redchnl:\"redChnl\",greenchnl:\"greenChnl\",bluechnl:\"blueChnl\"};function a(t){var e=function(t){for(var e=[],r=0;r<t.attributes.length;r++)e.push(t.attributes[r]);return e}(t);return e.reduce((function(t,e){var r;return t[(r=e.nodeName,o[r.toLowerCase()]||r)]=e.nodeValue,t}),{})}t.exports=function(t){t=t.toString();var e=i(t),r={pages:[],chars:[],kernings:[]};[\"info\",\"common\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];i&&(r[t]=n(a(i)))}));var o=e.getElementsByTagName(\"pages\")[0];if(!o)throw new Error(\"malformed file -- no <pages> element\");for(var s=o.getElementsByTagName(\"page\"),u=0;u<s.length;u++){var c=s[u],f=parseInt(c.getAttribute(\"id\"),10),l=c.getAttribute(\"file\");if(isNaN(f))throw new Error('malformed file -- page \"id\" attribute is NaN');if(!l)throw new Error('malformed file -- needs page \"file\" attribute');r.pages[parseInt(f,10)]=l}return[\"chars\",\"kernings\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];if(i)for(var o=t.substring(0,t.length-1),s=i.getElementsByTagName(o),u=0;u<s.length;u++){var c=s[u];r[t].push(n(a(c)))}})),r}},function(t,e){var r=\"chasrset\";t.exports=function(t){for(var e in t=Object.assign({},t),r in t&&(t.charset=t[r],delete t[r]),t)\"face\"!==e&&\"charset\"!==e&&(t[e]=\"padding\"===e||\"spacing\"===e?t[e].split(\",\").map((function(t){return parseInt(t,10)})):parseInt(t[e],10));return t}},function(t,e){t.exports=void 0!==self.DOMParser?function(t){return(new self.DOMParser).parseFromString(t,\"application/xml\")}:void 0!==self.ActiveXObject&&new self.ActiveXObject(\"Microsoft.XMLDOM\")?function(t){var e=new self.ActiveXObject(\"Microsoft.XMLDOM\");return e.async=\"false\",e.loadXML(t),e}:function(t){var e=document.createElement(\"div\");return e.innerHTML=t,e}},function(t,e){var r=[66,77,70];function n(t,e,r){if(r>e.length-1)return 0;var n=e.readUInt8(r++),o=e.readInt32LE(r);switch(r+=4,n){case 1:t.info=function(t,e){var r={};r.size=t.readInt16LE(e);var n=t.readUInt8(e+2);r.smooth=n>>7&1,r.unicode=n>>6&1,r.italic=n>>5&1,r.bold=n>>4&1,n>>3&1&&(r.fixedHeight=1);return r.charset=t.readUInt8(e+3)||\"\",r.stretchH=t.readUInt16LE(e+4),r.aa=t.readUInt8(e+6),r.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],r.spacing=[t.readInt8(e+11),t.readInt8(e+12)],r.outline=t.readUInt8(e+13),r.face=function(t,e){return i(t,e).toString(\"utf8\")}(t,e+14),r}(e,r);break;case 2:t.common=function(t,e){var r={};r.lineHeight=t.readUInt16LE(e),r.base=t.readUInt16LE(e+2),r.scaleW=t.readUInt16LE(e+4),r.scaleH=t.readUInt16LE(e+6),r.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return r.packed=0,r.alphaChnl=t.readUInt8(e+11),r.redChnl=t.readUInt8(e+12),r.greenChnl=t.readUInt8(e+13),r.blueChnl=t.readUInt8(e+14),r}(e,r);break;case 3:t.pages=function(t,e,r){for(var n=[],o=i(t,e),a=o.length+1,s=r/a,u=0;u<s;u++)n[u]=t.slice(e,e+o.length).toString(\"utf8\"),e+=a;return n}(e,r,o);break;case 4:t.chars=function(t,e,r){for(var n=[],i=r/20,o=0;o<i;o++){var a={},s=20*o;a.id=t.readUInt32LE(e+0+s),a.x=t.readUInt16LE(e+4+s),a.y=t.readUInt16LE(e+6+s),a.width=t.readUInt16LE(e+8+s),a.height=t.readUInt16LE(e+10+s),a.xoffset=t.readInt16LE(e+12+s),a.yoffset=t.readInt16LE(e+14+s),a.xadvance=t.readInt16LE(e+16+s),a.page=t.readUInt8(e+18+s),a.chnl=t.readUInt8(e+19+s),n[o]=a}return n}(e,r,o);break;case 5:t.kernings=function(t,e,r){for(var n=[],i=r/10,o=0;o<i;o++){var a={},s=10*o;a.first=t.readUInt32LE(e+0+s),a.second=t.readUInt32LE(e+4+s),a.amount=t.readInt16LE(e+8+s),n[o]=a}return n}(e,r,o)}return 5+o}function i(t,e){for(var r=e;r<t.length&&0!==t[r];r++);return t.slice(e,r)}t.exports=function(t){if(t.length<6)throw new Error(\"invalid buffer length for BMFont\");var e=r.every((function(e,r){return t.readUInt8(r)===e}));if(!e)throw new Error(\"BMFont missing BMF byte header\");var i=3;if(t.readUInt8(i++)>3)throw new Error(\"Only supports BMFont Binary v3 (BMFont App v1.10)\");for(var o={kernings:[],chars:[]},a=0;a<5;a++)i+=n(o,t,i);return o}},function(t,e,r){(function(e){var n=r(217),i=e.from([66,77,70,3]);t.exports=function(t){return\"string\"==typeof t?\"BMF\"===t.substring(0,3):t.length>4&&n(t.slice(0,4),i)}}).call(this,r(2).Buffer)},function(t,e,r){var n=r(2).Buffer;t.exports=function(t,e){if(n.isBuffer(t)&&n.isBuffer(e)){if(\"function\"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}}},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e,r,n){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,r,n)}i.prototype.run=function(t,e,r,n){this._init(t,e,r,n);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var o=this._regionQuery(i);if(o.length<this.minPts)this.noise.push(i);else{var a=this.clusters.length;this.clusters.push([]),this._addToCluster(i,a),this._expandCluster(a,o)}}return this.clusters},i.prototype._init=function(t,e,r,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+n(t)+\" given\");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),r&&(this.minPts=r),i&&(this.distance=i)},i.prototype._expandCluster=function(t,e){for(var r=0;r<e.length;r++){var n=e[r];if(1!==this._visited[n]){this._visited[n]=1;var i=this._regionQuery(n);i.length>=this.minPts&&(e=this._mergeArrays(e,i))}1!==this._assigned[n]&&this._addToCluster(n,t)}},i.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},i.prototype._regionQuery=function(t){for(var e=[],r=0;r<this._datasetLength;r++){this.distance(this.dataset[t],this.dataset[r])<this.epsilon&&e.push(r)}return e},i.prototype._mergeArrays=function(t,e){for(var r=e.length,n=0;n<r;n++){var i=e[n];t.indexOf(i)<0&&t.push(i)}return t},i.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=i)},function(t,e,r){function n(t,e,r){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,r)}n.prototype.init=function(t,e,r){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==r&&(this.distance=r)},n.prototype.run=function(t,e){this.init(t,e);for(var r=this.dataset.length,n=0;n<this.k;n++)this.centroids[n]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var o=0;o<this.k;o++){for(var a=new Array(f),s=0,u=0;u<f;u++)a[u]=0;for(var c=0;c<r;c++){var f=this.dataset[c].length;if(o===this.assignments[c]){for(u=0;u<f;u++)a[u]+=this.dataset[c][u];s++}}if(s>0){for(u=0;u<f;u++)a[u]/=s;this.centroids[o]=a}else this.centroids[o]=this.randomCentroid(),i=!0}}return this.getClusters()},n.prototype.randomCentroid=function(){var t,e,r=this.dataset.length-1;do{e=Math.round(Math.random()*r),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},n.prototype.assign=function(){for(var t,e=!1,r=this.dataset.length,n=0;n<r;n++)(t=this.argmin(this.dataset[n],this.centroids,this.distance))!=this.assignments[n]&&(this.assignments[n]=t,e=!0);return e},n.prototype.getClusters=function(){for(var t,e=new Array(this.k),r=0;r<this.assignments.length;r++)void 0===e[t=this.assignments[r]]&&(e[t]=[]),e[t].push(r);return e},n.prototype.argmin=function(t,e,r){for(var n,i=Number.MAX_VALUE,o=0,a=e.length,s=0;s<a;s++)(n=r(t,e[s]))<i&&(i=n,o=s);return o},n.prototype.distance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)},t.exports&&(t.exports=n)},function(t,e,r){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}if(t.exports)var i=r(99);function o(t,e,r,n){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,r,n)}o.prototype.run=function(t,e,r,n){this._init(t,e,r,n);for(var o=0,a=this.dataset.length;o<a;o++)if(1!==this._processed[o]){this._processed[o]=1,this.clusters.push([o]);var s=this.clusters.length-1;this._orderedList.push(o);var u=new i(null,null,\"asc\"),c=this._regionQuery(o);void 0!==this._distanceToCore(o)&&(this._updateQueue(o,c,u),this._expandCluster(s,u))}return this.clusters},o.prototype.getReachabilityPlot=function(){for(var t=[],e=0,r=this._orderedList.length;e<r;e++){var n=this._orderedList[e],i=this._reachability[n];t.push([n,i])}return t},o.prototype._init=function(t,e,r,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+n(t)+\" given\");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),r&&(this.minPts=r),i&&(this.distance=i)},o.prototype._updateQueue=function(t,e,r){var n=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===n._processed[e]){var i=n.distance(n.dataset[t],n.dataset[e]),o=Math.max(n._coreDistance,i);void 0===n._reachability[e]?(n._reachability[e]=o,r.insert(e,o)):o<n._reachability[e]&&(n._reachability[e]=o,r.remove(e),r.insert(e,o))}}))},o.prototype._expandCluster=function(t,e){for(var r=e.getElements(),n=0,i=r.length;n<i;n++){var o=r[n];if(void 0===this._processed[o]){var a=this._regionQuery(o);this._processed[o]=1,this.clusters[t].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,a,e),this._expandCluster(t,e))}}},o.prototype._distanceToCore=function(t){for(var e=this.epsilon,r=0;r<e;r++){if(this._regionQuery(t,r).length>=this.minPts)return r}},o.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var r=[],n=0,i=this.dataset.length;n<i;n++)this.distance(this.dataset[t],this.dataset[n])<e&&r.push(n);return r},o.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=o)},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=function(){var t=4022871197,e=function(e){e=String(e);for(var r=0;r<e.length;r++){var n=.02519603282416938*(t+=e.charCodeAt(r));n-=t=n>>>0,t=(n*=t)>>>0,t+=4294967296*(n-=t)}return 2.3283064365386963e-10*(t>>>0)};return e}();e.next=function(){var t=2091639*e.s0+2.3283064365386963e-10*e.c;return e.s0=e.s1,e.s1=e.s2,e.s2=t-(e.c=0|t)},e.c=1,e.s0=r(\" \"),e.s1=r(\" \"),e.s2=r(\" \"),e.s0-=r(t),e.s0<0&&(e.s0+=1),e.s1-=r(t),e.s1<0&&(e.s1+=1),e.s2-=r(t),e.s2<0&&(e.s2+=1),r=null}function u(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function c(t,e){var r=new s(t),n=e&&e.state,o=r.next;return o.int32=function(){return 4294967296*r.next()|0},o.double=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.alea=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=\"\";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},t===(0|t)?e.x=t:r+=t;for(var n=0;n<r.length+64;n++)e.x^=0|r.charCodeAt(n),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e}function c(t,e){var r=new s(t),n=e&&e.state,o=function(){return(r.next()>>>0)/4294967296};return o.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=r.next,o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.xor128=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=\"\";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^t^t<<1)|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,t===(0|t)?e.x=t:r+=t;for(var n=0;n<r.length+64;n++)e.x^=0|r.charCodeAt(n),n==r.length&&(e.d=e.x<<10^e.x>>>4),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function c(t,e){var r=new s(t),n=e&&e.state,o=function(){return(r.next()>>>0)/4294967296};return o.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=r.next,o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.xorwow=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,o){function a(t){var e=this;e.next=function(){var t,r,n=e.x,i=e.i;return t=n[i],r=(t^=t>>>7)^t<<24,r^=(t=n[i+1&7])^t>>>10,r^=(t=n[i+3&7])^t>>>3,r^=(t=n[i+4&7])^t<<7,t=n[i+7&7],r^=(t^=t<<13)^t<<9,n[i]=r,e.i=i+1&7,r},function(t,e){var r,n=[];if(e===(0|e))n[0]=e;else for(e=\"\"+e,r=0;r<e.length;++r)n[7&r]=n[7&r]<<15^e.charCodeAt(r)+n[r+1&7]<<13;for(;n.length<8;)n.push(0);for(r=0;r<8&&0===n[r];++r);for(8==r?n[7]=-1:n[r],t.x=n,t.i=0,r=256;r>0;--r)t.next()}(e,t)}function s(t,e){return e.x=t.x.slice(),e.i=t.i,e}function u(t,e){null==t&&(t=+new Date);var r=new a(t),n=e&&e.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=r.next,i.quick=i,n&&(n.x&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=u:r(9)&&r(23)?void 0===(n=function(){return u}.call(e,r,e,i))||(i.exports=n):this.xorshift7=u}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,o){function a(t){var e=this;e.next=function(){var t,r,n=e.w,i=e.X,o=e.i;return e.w=n=n+1640531527|0,r=i[o+34&127],t=i[o=o+1&127],r^=r<<13,t^=t<<17,r^=r>>>15,t^=t>>>12,r=i[o]=r^t,e.i=o,r+(n^n>>>16)|0},function(t,e){var r,n,i,o,a,s=[],u=128;for(e===(0|e)?(n=e,e=null):(e+=\"\\0\",n=0,u=Math.max(u,e.length)),i=0,o=-32;o<u;++o)e&&(n^=e.charCodeAt((o+32)%e.length)),0===o&&(a=n),n^=n<<10,n^=n>>>15,n^=n<<4,n^=n>>>13,o>=0&&(a=a+1640531527|0,i=0==(r=s[127&o]^=n+a)?i+1:0);for(i>=128&&(s[127&(e&&e.length||0)]=-1),i=127,o=512;o>0;--o)n=s[i+34&127],r=s[i=i+1&127],n^=n<<13,r^=r<<17,n^=n>>>15,r^=r>>>12,s[i]=n^r;t.w=a,t.X=s,t.i=i}(e,t)}function s(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function u(t,e){null==t&&(t=+new Date);var r=new a(t),n=e&&e.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=r.next,i.quick=i,n&&(n.X&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=u:r(9)&&r(23)?void 0===(n=function(){return u}.call(e,r,e,i))||(i.exports=n):this.xor4096=u}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,r=\"\";e.next=function(){var t=e.b,r=e.c,n=e.d,i=e.a;return t=t<<25^t>>>7^r,r=r-n|0,n=n<<24^n>>>8^i,i=i-t|0,e.b=t=t<<20^t>>>12^r,e.c=r=r-n|0,e.d=n<<16^r>>>16^i,e.a=i-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,t===Math.floor(t)?(e.a=t/4294967296|0,e.b=0|t):r+=t;for(var n=0;n<r.length+20;n++)e.b^=0|r.charCodeAt(n),e.next()}function u(t,e){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e}function c(t,e){var r=new s(t),n=e&&e.state,o=function(){return(r.next()>>>0)/4294967296};return o.double=function(){do{var t=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=r.next,o.quick=o,n&&(\"object\"==i(n)&&u(n,r),o.state=function(){return u(r,{})}),o}o&&o.exports?o.exports=c:r(9)&&r(23)?void 0===(n=function(){return c}.call(e,r,e,o))||(o.exports=n):this.tychei=c}(0,\"object\"==i(t)&&t,r(9))}).call(this,r(13)(t))},function(t,e,r){(function(t){var n;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(o,a,s){var u,c=256,f=s.pow(c,6),l=s.pow(2,52),h=2*l,p=c-1;function d(t,e,r){var n=[],i=v(y((e=1==e?{entropy:!0}:e||{}).entropy?[t,b(a)]:null==t?function(){try{var t;return u&&(t=u.randomBytes)?t=t(c):(t=new Uint8Array(c),(o.crypto||o.msCrypto).getRandomValues(t)),b(t)}catch(t){var e=o.navigator,r=e&&e.plugins;return[+new Date,o,r,o.screen,b(a)]}}():t,3),n),p=new m(n),d=function(){for(var t=p.g(6),e=f,r=0;t<l;)t=(t+r)*c,e*=c,r=p.g(1);for(;t>=h;)t/=2,e/=2,r>>>=1;return(t+r)/e};return d.int32=function(){return 0|p.g(4)},d.quick=function(){return p.g(4)/4294967296},d.double=d,v(b(p.S),a),(e.pass||r||function(t,e,r,n){return n&&(n.S&&g(n,p),t.state=function(){return g(p,{})}),r?(s.random=t,e):t})(d,i,\"global\"in e?e.global:this==s,e.state)}function m(t){var e,r=t.length,n=this,i=0,o=n.i=n.j=0,a=n.S=[];for(r||(t=[r++]);i<c;)a[i]=i++;for(i=0;i<c;i++)a[i]=a[o=p&o+t[i%r]+(e=a[i])],a[o]=e;(n.g=function(t){for(var e,r=0,i=n.i,o=n.j,a=n.S;t--;)e=a[i=p&i+1],r=r*c+a[p&(a[i]=a[o=p&o+e])+(a[o]=e)];return n.i=i,n.j=o,r})(c)}function g(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function y(t,e){var r,n=[],o=i(t);if(e&&\"object\"==o)for(r in t)try{n.push(y(t[r],e-1))}catch(t){}return n.length?n:\"string\"==o?t:t+\"\\0\"}function v(t,e){for(var r,n=t+\"\",i=0;i<n.length;)e[p&i]=p&(r^=19*e[p&i])+n.charCodeAt(i++);return b(e)}function b(t){return String.fromCharCode.apply(0,t)}if(v(s.random(),a),\"object\"==i(t)&&t.exports){t.exports=d;try{u=r(228)}catch(t){}}else void 0===(n=function(){return d}.call(e,r,e,t))||(t.exports=n)}(\"undefined\"!=typeof self?self:this,[],Math)}).call(this,r(13)(t))},function(t,e){},function(t,e,r){var n=r(100).default,i=r(230);t.exports=function(t){var e=i(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(100).default;t.exports=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},,,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}r.d(e,\"a\",(function(){return a}));var a=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t)},r=[{key:\"w18lm\",get:function(){return{userConfig:\"ls_user_config\",userdata:\"ls_user_data\",permissionConfig:\"ls_permission_config\"}}}],(e=null)&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}()},,,,,,,,,,,,,,function(t,e,r){\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var i=r(248),o=r(249);function a(t,e){return e.encode?e.strict?i(t):encodeURIComponent(t):t}function s(t){return Array.isArray(t)?t.sort():\"object\"===n(t)?s(Object.keys(t)).sort((function(t,e){return Number(t)-Number(e)})).map((function(e){return t[e]})):t}e.extract=function(t){return t.split(\"?\")[1]||\"\"},e.parse=function(t,e){var r=function(t){var e;switch(t.arrayFormat){case\"index\":return function(t,r,n){e=/\\[(\\d*)\\]$/.exec(t),t=t.replace(/\\[\\d*\\]$/,\"\"),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case\"bracket\":return function(t,r,n){e=/(\\[\\])$/.exec(t),t=t.replace(/\\[\\]$/,\"\"),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};default:return function(t,e,r){void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e=o({arrayFormat:\"none\"},e)),i=Object.create(null);return\"string\"!=typeof t?i:(t=t.trim().replace(/^(\\?|#|&)/,\"\"))?(t.split(\"&\").forEach((function(t){var e=t.replace(/\\+/g,\" \").split(\"=\"),n=e.shift(),o=e.length>0?e.join(\"=\"):void 0;o=void 0===o?null:decodeURIComponent(o),r(decodeURIComponent(n),o,i)})),Object.keys(i).sort().reduce((function(t,e){var r=i[e];return Boolean(r)&&\"object\"===n(r)&&!Array.isArray(r)?t[e]=s(r):t[e]=r,t}),Object.create(null))):i},e.stringify=function(t,e){var r=function(t){switch(t.arrayFormat){case\"index\":return function(e,r,n){return null===r?[a(e,t),\"[\",n,\"]\"].join(\"\"):[a(e,t),\"[\",a(n,t),\"]=\",a(r,t)].join(\"\")};case\"bracket\":return function(e,r){return null===r?a(e,t):[a(e,t),\"[]=\",a(r,t)].join(\"\")};default:return function(e,r){return null===r?a(e,t):[a(e,t),\"=\",a(r,t)].join(\"\")}}}(e=o({encode:!0,strict:!0,arrayFormat:\"none\"},e));return t?Object.keys(t).sort().map((function(n){var i=t[n];if(void 0===i)return\"\";if(null===i)return a(n,e);if(Array.isArray(i)){var o=[];return i.slice().forEach((function(t){void 0!==t&&o.push(r(n,t,o.length))})),o.join(\"&\")}return a(n,e)+\"=\"+a(i,e)})).filter((function(t){return t.length>0})).join(\"&\"):\"\"}},function(t,e,r){\"use strict\";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return\"%\"+t.charCodeAt(0).toString(16).toUpperCase()}))}},function(t,e,r){\"use strict\";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e[\"_\"+String.fromCharCode(r)]=r;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(\"\"))return!1;var n={};return\"abcdefghijklmnopqrst\".split(\"\").forEach((function(t){n[t]=t})),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},n)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,a,s=function(t){if(null==t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}(t),u=1;u<arguments.length;u++){for(var c in r=Object(arguments[u]))i.call(r,c)&&(s[c]=r[c]);if(n){a=n(r);for(var f=0;f<a.length;f++)o.call(r,a[f])&&(s[a[f]]=r[a[f]])}}return s}},,,,function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return _i})),r.d(e,\"c\",(function(){return xi})),r.d(e,\"b\",(function(){return Oi}));var n=r(8),i=r.n(n),o={epsilon:1e-12,matrix:\"Matrix\",number:\"number\",precision:64,predictable:!1,randomSeed:null};function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t){return\"number\"==typeof t}function u(t){return!(!t||\"object\"!==a(t)||\"function\"!=typeof t.constructor)&&(!0===t.isBigNumber&&\"object\"===a(t.constructor.prototype)&&!0===t.constructor.prototype.isBigNumber||\"function\"==typeof t.constructor.isDecimal&&!0===t.constructor.isDecimal(t))}function c(t){return t&&\"object\"===a(t)&&!0===Object.getPrototypeOf(t).isComplex||!1}function f(t){return t&&\"object\"===a(t)&&!0===Object.getPrototypeOf(t).isFraction||!1}function l(t){return t&&!0===t.constructor.prototype.isUnit||!1}function h(t){return\"string\"==typeof t}var p=Array.isArray;function d(t){return t&&!0===t.constructor.prototype.isMatrix||!1}function m(t){return Array.isArray(t)||d(t)}function g(t){return t&&t.isDenseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function y(t){return t&&t.isSparseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function v(t){return t&&!0===t.constructor.prototype.isRange||!1}function b(t){return t&&!0===t.constructor.prototype.isIndex||!1}function w(t){return\"boolean\"==typeof t}function _(t){return t&&!0===t.constructor.prototype.isResultSet||!1}function x(t){return t&&!0===t.constructor.prototype.isHelp||!1}function E(t){return\"function\"==typeof t}function A(t){return t instanceof Date}function D(t){return t instanceof RegExp}function k(t){return!(!t||\"object\"!==a(t)||t.constructor!==Object||c(t)||f(t))}function S(t){return null===t}function M(t){return void 0===t}function C(t){return t&&!0===t.isAccessorNode&&!0===t.constructor.prototype.isNode||!1}function T(t){return t&&!0===t.isArrayNode&&!0===t.constructor.prototype.isNode||!1}function O(t){return t&&!0===t.isAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function F(t){return t&&!0===t.isBlockNode&&!0===t.constructor.prototype.isNode||!1}function B(t){return t&&!0===t.isConditionalNode&&!0===t.constructor.prototype.isNode||!1}function I(t){return t&&!0===t.isConstantNode&&!0===t.constructor.prototype.isNode||!1}function P(t){return t&&!0===t.isFunctionAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function L(t){return t&&!0===t.isFunctionNode&&!0===t.constructor.prototype.isNode||!1}function N(t){return t&&!0===t.isIndexNode&&!0===t.constructor.prototype.isNode||!1}function j(t){return t&&!0===t.isNode&&!0===t.constructor.prototype.isNode||!1}function R(t){return t&&!0===t.isObjectNode&&!0===t.constructor.prototype.isNode||!1}function z(t){return t&&!0===t.isOperatorNode&&!0===t.constructor.prototype.isNode||!1}function U(t){return t&&!0===t.isParenthesisNode&&!0===t.constructor.prototype.isNode||!1}function G(t){return t&&!0===t.isRangeNode&&!0===t.constructor.prototype.isNode||!1}function H(t){return t&&!0===t.isRelationalNode&&!0===t.constructor.prototype.isNode||!1}function q(t){return t&&!0===t.isSymbolNode&&!0===t.constructor.prototype.isNode||!1}function Z(t){return t&&!0===t.constructor.prototype.isChain||!1}function W(t){var e=a(t);return\"object\"===e?null===t?\"null\":u(t)?\"BigNumber\":t.constructor&&t.constructor.name?t.constructor.name:\"Object\":e}function Y(t){return Y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Y(t)}function X(t){var e=Y(t);if(\"number\"===e||\"string\"===e||\"boolean\"===e||null==t)return t;if(\"function\"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map((function(t){return X(t)}));if(t instanceof Date)return new Date(t.valueOf());if(u(t))return t;if(k(t))return $(t,X);throw new TypeError(\"Cannot clone: unknown type of value (value: \".concat(t,\")\"))}function $(t,e){var r={};for(var n in t)Q(t,n)&&(r[n]=e(t[n]));return r}function V(t,e){for(var r in e)Q(e,r)&&(t[r]=e[r]);return t}function J(t,e){var r,n,i;if(Array.isArray(t)){if(!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(n=0,i=t.length;n<i;n++)if(!J(t[n],e[n]))return!1;return!0}if(\"function\"==typeof t)return t===e;if(t instanceof Object){if(Array.isArray(e)||!(e instanceof Object))return!1;for(r in t)if(!(r in e)||!J(t[r],e[r]))return!1;for(r in e)if(!(r in t))return!1;return!0}return t===e}function Q(t,e){return t&&Object.hasOwnProperty.call(t,e)}var K=[\"Matrix\",\"Array\"],tt=[\"number\",\"BigNumber\",\"Fraction\"];var et=function(t){if(t)throw new Error(\"The global config is readonly. \\nPlease create a mathjs instance if you want to change the default configuration. \\nExample:\\n\\n  import { create, all } from 'mathjs';\\n  const mathjs = create(all);\\n  mathjs.config({ number: 'BigNumber' });\\n\");return Object.freeze(o)};i()(et,o,{MATRIX_OPTIONS:K,NUMBER_OPTIONS:tt});var rt=r(21),nt=r.n(rt);function it(t){return\"boolean\"==typeof t||!!isFinite(t)&&t===Math.round(t)}var ot=Math.sign||function(t){return t>0?1:t<0?-1:0},at=Math.log2||function(t){return Math.log(t)/Math.LN2},st=Math.log10||function(t){return Math.log(t)/Math.LN10},ut=(Math.log1p,Math.cbrt||function(t){if(0===t)return t;var e,r=t<0;return r&&(t=-t),e=isFinite(t)?(t/((e=Math.exp(Math.log(t)/3))*e)+2*e)/3:t,r?-e:e}),ct=Math.expm1||function(t){return t>=2e-4||t<=-2e-4?Math.exp(t)-1:t+t*t/2+t*t*t/6};function ft(t,e,r){var n={2:\"0b\",8:\"0o\",16:\"0x\"}[e],i=\"\";if(r){if(r<1)throw new Error(\"size must be in greater than 0\");if(!it(r))throw new Error(\"size must be an integer\");if(t>Math.pow(2,r-1)-1||t<-Math.pow(2,r-1))throw new Error(\"Value must be in range [-2^\".concat(r-1,\", 2^\").concat(r-1,\"-1]\"));if(!it(t))throw new Error(\"Value must be an integer\");t<0&&(t+=Math.pow(2,r)),i=\"i\".concat(r)}var o=\"\";return t<0&&(t=-t,o=\"-\"),\"\".concat(o).concat(n).concat(t.toString(e)).concat(i)}function lt(t,e){if(\"function\"==typeof e)return e(t);if(t===1/0)return\"Infinity\";if(t===-1/0)return\"-Infinity\";if(isNaN(t))return\"NaN\";var r,n,i=\"auto\";if(e&&(e.notation&&(i=e.notation),s(e)?r=e:s(e.precision)&&(r=e.precision),e.wordSize&&\"number\"!=typeof(n=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return pt(t,r);case\"exponential\":return dt(t,r);case\"engineering\":return function(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=ht(t),n=mt(r,e),i=n.exponent,o=n.coefficients,a=i%3==0?i:i<0?i-3-i%3:i-i%3;if(s(e))for(;e>o.length||i-a+1>o.length;)o.push(0);else for(var u=Math.abs(i-a)-(o.length-1),c=0;c<u;c++)o.push(0);var f=Math.abs(i-a),l=1;for(;f>0;)l++,f--;var h=o.slice(l).join(\"\"),p=s(e)&&h.length||h.match(/[1-9]/)?\".\"+h:\"\",d=o.slice(0,l).join(\"\")+p+\"e\"+(i>=0?\"+\":\"\")+a.toString();return n.sign+d}(t,r);case\"bin\":return ft(t,2,n);case\"oct\":return ft(t,8,n);case\"hex\":return ft(t,16,n);case\"auto\":return function(t,e,r){if(isNaN(t)||!isFinite(t))return String(t);var n=r&&void 0!==r.lowerExp?r.lowerExp:-3,i=r&&void 0!==r.upperExp?r.upperExp:5,o=ht(t),a=e?mt(o,e):o;if(a.exponent<n||a.exponent>=i)return dt(t,e);var s=a.coefficients,u=a.exponent;s.length<e&&(s=s.concat(gt(e-s.length))),s=s.concat(gt(u-s.length+1+(s.length<e?e-s.length:0)));var c=u>0?u:0;return c<(s=gt(-u).concat(s)).length-1&&s.splice(c+1,0,\".\"),a.sign+s.join(\"\")}(t,r,e&&e).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function ht(t){var e=String(t).toLowerCase().match(/^(-?)(\\d+\\.?\\d*)(e([+-]?\\d+))?$/);if(!e)throw new SyntaxError(\"Invalid number \"+t);var r=e[1],n=e[2],i=parseFloat(e[4]||\"0\"),o=n.indexOf(\".\");i+=-1!==o?o-1:n.length-1;var a=n.replace(\".\",\"\").replace(/^0*/,(function(t){return i-=t.length,\"\"})).replace(/0*$/,\"\").split(\"\").map((function(t){return parseInt(t)}));return 0===a.length&&(a.push(0),i++),{sign:r,coefficients:a,exponent:i}}function pt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=ht(t),n=\"number\"==typeof e?mt(r,r.exponent+1+e):r,i=n.coefficients,o=n.exponent+1,a=o+(e||0);return i.length<a&&(i=i.concat(gt(a-i.length))),o<0&&(i=gt(1-o).concat(i),o=1),o<i.length&&i.splice(o,0,0===o?\"0.\":\".\"),n.sign+i.join(\"\")}function dt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var r=ht(t),n=e?mt(r,e):r,i=n.coefficients,o=n.exponent;i.length<e&&(i=i.concat(gt(e-i.length)));var a=i.shift();return n.sign+a+(i.length>0?\".\"+i.join(\"\"):\"\")+\"e\"+(o>=0?\"+\":\"\")+o}function mt(t,e){for(var r={sign:t.sign,coefficients:t.coefficients,exponent:t.exponent},n=r.coefficients;e<=0;)n.unshift(0),r.exponent++,e++;if(n.length>e&&n.splice(e,n.length-e)[0]>=5){var i=e-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),r.exponent++,i++),n[--i]++}return r}function gt(t){for(var e=[],r=0;r<t;r++)e.push(0);return e}var yt=Number.EPSILON||2220446049250313e-31;function vt(t,e,r){if(null==r)return t===e;if(t===e)return!0;if(isNaN(t)||isNaN(e))return!1;if(isFinite(t)&&isFinite(e)){var n=Math.abs(t-e);return n<=yt||n<=Math.max(Math.abs(t),Math.abs(e))*r}return!1}var bt=Math.acosh||function(t){return Math.log(Math.sqrt(t*t-1)+t)},wt=Math.asinh||function(t){return Math.log(Math.sqrt(t*t+1)+t)},_t=Math.atanh||function(t){return Math.log((1+t)/(1-t))/2},xt=(Math.cosh,Math.sinh||function(t){return(Math.exp(t)-Math.exp(-t))/2});Math.tanh;function Et(t,e,r){var n=new(0,t.constructor)(2),i=\"\";if(r){if(r<1)throw new Error(\"size must be in greater than 0\");if(!it(r))throw new Error(\"size must be an integer\");if(t.greaterThan(n.pow(r-1).sub(1))||t.lessThan(n.pow(r-1).mul(-1)))throw new Error(\"Value must be in range [-2^\".concat(r-1,\", 2^\").concat(r-1,\"-1]\"));if(!t.isInteger())throw new Error(\"Value must be an integer\");t.lessThan(0)&&(t=t.add(n.pow(r))),i=\"i\".concat(r)}switch(e){case 2:return\"\".concat(t.toBinary()).concat(i);case 8:return\"\".concat(t.toOctal()).concat(i);case 16:return\"\".concat(t.toHexadecimal()).concat(i);default:throw new Error(\"Base \".concat(e,\" not supported \"))}}function At(t,e){if(\"function\"==typeof e)return e(t);if(!t.isFinite())return t.isNaN()?\"NaN\":t.gt(0)?\"Infinity\":\"-Infinity\";var r,n,i=\"auto\";if(void 0!==e&&(e.notation&&(i=e.notation),\"number\"==typeof e?r=e:void 0!==e.precision&&(r=e.precision),e.wordSize&&\"number\"!=typeof(n=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return function(t,e){return t.toFixed(e)}(t,r);case\"exponential\":return Dt(t,r);case\"engineering\":return function(t,e){var r=t.e,n=r%3==0?r:r<0?r-3-r%3:r-r%3,i=t.mul(Math.pow(10,-n)),o=i.toPrecision(e);if(-1!==o.indexOf(\"e\")){o=new(0,t.constructor)(o).toFixed()}return o+\"e\"+(r>=0?\"+\":\"\")+n.toString()}(t,r);case\"bin\":return Et(t,2,n);case\"oct\":return Et(t,8,n);case\"hex\":return Et(t,16,n);case\"auto\":var o=e&&void 0!==e.lowerExp?e.lowerExp:-3,a=e&&void 0!==e.upperExp?e.upperExp:5;if(t.isZero())return\"0\";var s=t.toSignificantDigits(r),u=s.e;return(u>=o&&u<a?s.toFixed():Dt(t,r)).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function Dt(t,e){return void 0!==e?t.toExponential(e-1):t.toExponential()}function kt(t){return kt=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},kt(t)}function St(t,e){var r=function(t,e){if(\"number\"==typeof t)return lt(t,e);if(u(t))return At(t,e);if(function(t){return t&&\"object\"===kt(t)&&\"number\"==typeof t.s&&\"number\"==typeof t.n&&\"number\"==typeof t.d||!1}(t))return e&&\"decimal\"===e.fraction?t.toString():t.s*t.n+\"/\"+t.d;if(Array.isArray(t))return Tt(t,e);if(h(t))return Mt(t);if(\"function\"==typeof t)return t.syntax?String(t.syntax):\"function\";if(t&&\"object\"===kt(t)){return\"function\"==typeof t.format?t.format(e):t&&t.toString(e)!=={}.toString()?t.toString(e):\"{\"+Object.keys(t).map((function(r){return Mt(r)+\": \"+St(t[r],e)})).join(\", \")+\"}\"}return String(t)}(t,e);return e&&\"object\"===kt(e)&&\"truncate\"in e&&r.length>e.truncate?r.substring(0,e.truncate-3)+\"...\":r}function Mt(t){for(var e=String(t),r=\"\",n=0;n<e.length;){var i=e.charAt(n);r+=i in Ct?Ct[i]:i,n++}return'\"'+r+'\"'}var Ct={'\"':'\\\\\"',\"\\\\\":\"\\\\\\\\\",\"\\b\":\"\\\\b\",\"\\f\":\"\\\\f\",\"\\n\":\"\\\\n\",\"\\r\":\"\\\\r\",\"\\t\":\"\\\\t\"};function Tt(t,e){if(Array.isArray(t)){for(var r=\"[\",n=t.length,i=0;i<n;i++)0!==i&&(r+=\", \"),r+=Tt(t[i],e);return r+=\"]\"}return St(t,e)}function Ot(t,e){if(!h(t))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+W(t)+\", index: 0)\");if(!h(e))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+W(e)+\", index: 1)\");return t===e?0:t>e?1:-1}function Ft(t,e,r){if(!(this instanceof Ft))throw new SyntaxError(\"Constructor must be called with the new operator\");this.actual=t,this.expected=e,this.relation=r,this.message=\"Dimension mismatch (\"+(Array.isArray(t)?\"[\"+t.join(\", \")+\"]\":t)+\" \"+(this.relation||\"!=\")+\" \"+(Array.isArray(e)?\"[\"+e.join(\", \")+\"]\":e)+\")\",this.stack=(new Error).stack}function Bt(t,e,r){if(!(this instanceof Bt))throw new SyntaxError(\"Constructor must be called with the new operator\");this.index=t,arguments.length<3?(this.min=0,this.max=e):(this.min=e,this.max=r),void 0!==this.min&&this.index<this.min?this.message=\"Index out of range (\"+this.index+\" < \"+this.min+\")\":void 0!==this.max&&this.index>=this.max?this.message=\"Index out of range (\"+this.index+\" > \"+(this.max-1)+\")\":this.message=\"Index out of range (\"+this.index+\")\",this.stack=(new Error).stack}function It(t){return function(t){if(Array.isArray(t))return Pt(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Pt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pt(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Lt(t){for(var e=[];Array.isArray(t);)e.push(t.length),t=t[0];return e}function Nt(t,e,r){var n,i=t.length;if(i!==e[r])throw new Ft(i,e[r]);if(r<e.length-1){var o=r+1;for(n=0;n<i;n++){var a=t[n];if(!Array.isArray(a))throw new Ft(e.length-1,e.length,\"<\");Nt(t[n],e,o)}}else for(n=0;n<i;n++)if(Array.isArray(t[n]))throw new Ft(e.length+1,e.length,\">\")}function jt(t,e){if(0===e.length){if(Array.isArray(t))throw new Ft(t.length,0)}else Nt(t,e,0)}function Rt(t,e){if(void 0!==t){if(!s(t)||!it(t))throw new TypeError(\"Index must be an integer (value: \"+t+\")\");if(t<0||\"number\"==typeof e&&t>=e)throw new Bt(t,e)}}function zt(t,e,r){if(!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new Error(\"Resizing to scalar is not supported\");return e.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+St(e)+\")\")})),(s(t)||u(t))&&(t=[t]),Ut(t,e,0,void 0!==r?r:0),t}function Ut(t,e,r,n){var i,o,a=t.length,s=e[r],u=Math.min(a,s);if(t.length=s,r<e.length-1){var c=r+1;for(i=0;i<u;i++)o=t[i],Array.isArray(o)||(o=[o],t[i]=o),Ut(o,e,c,n);for(i=u;i<s;i++)o=[],t[i]=o,Ut(o,e,c,n)}else{for(i=0;i<u;i++)for(;Array.isArray(t[i]);)t[i]=t[i][0];for(i=u;i<s;i++)t[i]=n}}function Gt(t,e){var r=Yt(t),n=r.length;if(!Array.isArray(t)||!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new Ft(0,n,\"!=\");var i=qt(e=Ht(e,n));if(n!==i)throw new Ft(i,n,\"!=\");try{return function(t,e){for(var r,n=t,i=e.length-1;i>0;i--){var o=e[i];r=[];for(var a=n.length/o,s=0;s<a;s++)r.push(n.slice(s*o,(s+1)*o));n=r}return n}(r,e)}catch(t){if(t instanceof Ft)throw new Ft(i,n,\"!=\");throw t}}function Ht(t,e){var r=qt(t),n=t.slice(),i=t.indexOf(-1);if(t.indexOf(-1,i+1)>=0)throw new Error(\"More than one wildcard in sizes\");if(i>=0){if(!(e%r==0))throw new Error(\"Could not replace wildcard, since \"+e+\" is no multiple of \"+-r);n[i]=-e/r}return n}function qt(t){return t.reduce((function(t,e){return t*e}),1)}function Zt(t,e,r,n){var i=n||Lt(t);if(r)for(var o=0;o<r;o++)t=[t],i.unshift(1);for(t=Wt(t,e,0);i.length<e;)i.push(1);return t}function Wt(t,e,r){var n,i;if(Array.isArray(t)){var o=r+1;for(n=0,i=t.length;n<i;n++)t[n]=Wt(t[n],e,o)}else for(var a=r;a<e;a++)t=[t];return t}function Yt(t){if(!Array.isArray(t))return t;var e=[];return t.forEach((function t(r){Array.isArray(r)?r.forEach(t):e.push(r)})),e}function Xt(t,e){for(var r,n=0,i=0;i<t.length;i++){var o=t[i],a=Array.isArray(o);if(0===i&&a&&(n=o.length),a&&o.length!==n)return;var s=a?Xt(o,e):e(o);if(void 0===r)r=s;else if(r!==s)return\"mixed\"}return r}function $t(t,e,r,n){if(n<r){if(t.length!==e.length)throw new Ft(t.length,e.length);for(var i=[],o=0;o<t.length;o++)i[o]=$t(t[o],e[o],r,n+1);return i}return t.concat(e)}function Vt(){var t=Array.prototype.slice.call(arguments,0,-1),e=Array.prototype.slice.call(arguments,-1);if(1===t.length)return t[0];if(t.length>1)return t.slice(1).reduce((function(t,r){return $t(t,r,e,0)}),t[0]);throw new Error(\"Wrong number of arguments in function concat\")}function Jt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=e.map((function(t){return t.length})),i=Math.max.apply(Math,It(n)),o=new Array(i).fill(null),a=0;a<e.length;a++)for(var s=e[a],u=n[a],c=0;c<u;c++){var f=i-u+c;s[c]>o[f]&&(o[f]=s[c])}for(var l=0;l<e.length;l++)Qt(e[l],o);return o}function Qt(t,e){for(var r=e.length,n=t.length,i=0;i<n;i++){var o=r-n+i;if(t[i]<e[o]&&t[i]>1||t[i]>e[o])throw new Error(\"shape missmatch: missmatch is found in arg with shape (\".concat(t,\") not possible to broadcast dimension \").concat(n,\" with size \").concat(t[i],\" to size \").concat(e[o]))}}function Kt(t,e){var r=Lt(t);if(J(r,e))return t;Qt(r,e);var n,o,a,s=Jt(r,e),u=s.length,c=[].concat(It(Array(u-r.length).fill(1)),It(r)),f=function(t){return i()([],t)}(t);r.length<u&&(r=Lt(f=Gt(f,c)));for(var l=0;l<u;l++)r[l]<s[l]&&(n=f,o=s[l],a=l,r=Lt(f=Vt.apply(void 0,It(Array(o).fill(n)).concat([a]))));return f}function te(t,e,r,n){function i(n){var i=function(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],o=t[i];void 0!==o&&(r[i]=o)}return r}(n,e.map(ee));return function(t,e,r){var n=e.filter((function(t){return!function(t){return t&&\"?\"===t[0]}(t)})).every((function(t){return void 0!==r[t]}));if(!n){var i=e.filter((function(t){return void 0===r[t]}));throw new Error('Cannot create function \"'.concat(t,'\", ')+\"some dependencies are missing: \".concat(i.map((function(t){return'\"'.concat(t,'\"')})).join(\", \"),\".\"))}}(t,e,n),r(i)}return i.isFactory=!0,i.fn=t,i.dependencies=e.slice().sort(),n&&(i.meta=n),i}function ee(t){return t&&\"?\"===t[0]?t.slice(1):t}Ft.prototype=new RangeError,Ft.prototype.constructor=RangeError,Ft.prototype.name=\"DimensionError\",Ft.prototype.isDimensionError=!0,Bt.prototype=new RangeError,Bt.prototype.constructor=RangeError,Bt.prototype.name=\"IndexError\",Bt.prototype.isIndexError=!0;var re=te(\"BigNumber\",[\"?on\",\"config\"],(function(t){var e=t.on,r=t.config,n=nt.a.clone({precision:r.precision,modulo:nt.a.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type=\"BigNumber\",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:\"BigNumber\",value:this.toString()}},n.fromJSON=function(t){return new n(t.value)},e&&e(\"config\",(function(t,e){t.precision!==e.precision&&n.config({precision:t.precision})})),n}),{isClass:!0}),ne=r(5),ie=r.n(ne);function oe(t){return oe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},oe(t)}var ae=te(\"Complex\",[],(function(){return Object.defineProperty(ie.a,\"name\",{value:\"Complex\"}),ie.a.prototype.constructor=ie.a,ie.a.prototype.type=\"Complex\",ie.a.prototype.isComplex=!0,ie.a.prototype.toJSON=function(){return{mathjs:\"Complex\",re:this.re,im:this.im}},ie.a.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},ie.a.prototype.format=function(t){var e=this.im,r=this.re,n=lt(this.re,t),i=lt(this.im,t),o=s(t)?t:t?t.precision:null;if(null!==o){var a=Math.pow(10,-o);Math.abs(r/e)<a&&(r=0),Math.abs(e/r)<a&&(e=0)}return 0===e?n:0===r?1===e?\"i\":-1===e?\"-i\":i+\"i\":e<0?-1===e?n+\" - i\":n+\" - \"+i.substring(1)+\"i\":1===e?n+\" + i\":n+\" + \"+i+\"i\"},ie.a.fromPolar=function(t){switch(arguments.length){case 1:var e=arguments[0];if(\"object\"===oe(e))return ie()(e);throw new TypeError(\"Input has to be an object with r and phi keys.\");case 2:var r=arguments[0],n=arguments[1];if(s(r)){if(l(n)&&n.hasBase(\"ANGLE\")&&(n=n.toNumber(\"rad\")),s(n))return new ie.a({r,phi:n});throw new TypeError(\"Phi is not a number nor an angle unit.\")}throw new TypeError(\"Radius r is not a number.\");default:throw new SyntaxError(\"Wrong number of arguments in function fromPolar\")}},ie.a.prototype.valueOf=ie.a.prototype.toString,ie.a.fromJSON=function(t){return new ie.a(t)},ie.a.compare=function(t,e){return t.re>e.re?1:t.re<e.re?-1:t.im>e.im?1:t.im<e.im?-1:0},ie.a}),{isClass:!0});function se(t){var e=0,r=1,n=Object.create(null),i=Object.create(null),o=0,a=function(t){var a=i[t];if(a&&(delete n[a],delete i[t],--e,r===a)){if(!e)return o=0,void(r=1);for(;!Object.prototype.hasOwnProperty.call(n,++r););}};return t=Math.abs(t),{hit:function(s){var u=i[s],c=++o;if(n[c]=s,i[s]=c,!u){if(++e<=t)return;return s=n[r],a(s),s}if(delete n[u],r===u)for(;!Object.prototype.hasOwnProperty.call(n,++r););},delete:a,clear:function(){e=o=0,r=1,n=Object.create(null),i=Object.create(null)}}}function ue(t){return ue=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ue(t)}function ce(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.hasher,n=e.limit;return n=null==n?Number.POSITIVE_INFINITY:n,r=null==r?JSON.stringify:r,function e(){\"object\"!==ue(e.cache)&&(e.cache={values:new Map,lru:se(n||Number.POSITIVE_INFINITY)});for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=r(i);if(e.cache.values.has(a))return e.cache.lru.hit(a),e.cache.values.get(a);var s=t.apply(t,i);return e.cache.values.set(a,s),e.cache.values.delete(e.cache.lru.hit(a)),s}}function fe(t){return Object.keys(t.signatures||{}).reduce((function(t,e){var r=(e.match(/,/g)||[]).length+1;return Math.max(t,r)}),-1)}ce((function(t){return new t(1).exp()}),{hasher:he}),ce((function(t){return new t(1).plus(new t(5).sqrt()).div(2)}),{hasher:he});var le=ce((function(t){return t.acos(-1)}),{hasher:he});ce((function(t){return le(t).times(2)}),{hasher:he});function he(t){return t[0].precision}Math.PI,Math.PI,Math.E;pe(\"fineStructure\",.0072973525693),pe(\"weakMixingAngle\",.2229),pe(\"efimovFactor\",22.7),pe(\"sackurTetrode\",-1.16487052358);function pe(t,e){return te(t,[\"config\",\"BigNumber\"],(function(t){var r=t.config,n=t.BigNumber;return\"BigNumber\"===r.number?new n(e):e}))}var de=r(12),me=r.n(de),ge=te(\"Fraction\",[],(function(){return Object.defineProperty(me.a,\"name\",{value:\"Fraction\"}),me.a.prototype.constructor=me.a,me.a.prototype.type=\"Fraction\",me.a.prototype.isFraction=!0,me.a.prototype.toJSON=function(){return{mathjs:\"Fraction\",n:this.s*this.n,d:this.d}},me.a.fromJSON=function(t){return new me.a(t)},me.a}),{isClass:!0}),ye=te(\"Matrix\",[],(function(){function t(){if(!(this instanceof t))throw new SyntaxError(\"Constructor must be called with the new operator\")}return t.prototype.type=\"Matrix\",t.prototype.isMatrix=!0,t.prototype.storage=function(){throw new Error(\"Cannot invoke storage on a Matrix interface\")},t.prototype.datatype=function(){throw new Error(\"Cannot invoke datatype on a Matrix interface\")},t.prototype.create=function(t,e){throw new Error(\"Cannot invoke create on a Matrix interface\")},t.prototype.subset=function(t,e,r){throw new Error(\"Cannot invoke subset on a Matrix interface\")},t.prototype.get=function(t){throw new Error(\"Cannot invoke get on a Matrix interface\")},t.prototype.set=function(t,e,r){throw new Error(\"Cannot invoke set on a Matrix interface\")},t.prototype.resize=function(t,e){throw new Error(\"Cannot invoke resize on a Matrix interface\")},t.prototype.reshape=function(t,e){throw new Error(\"Cannot invoke reshape on a Matrix interface\")},t.prototype.clone=function(){throw new Error(\"Cannot invoke clone on a Matrix interface\")},t.prototype.size=function(){throw new Error(\"Cannot invoke size on a Matrix interface\")},t.prototype.map=function(t,e){throw new Error(\"Cannot invoke map on a Matrix interface\")},t.prototype.forEach=function(t){throw new Error(\"Cannot invoke forEach on a Matrix interface\")},t.prototype[Symbol.iterator]=function(){throw new Error(\"Cannot iterate a Matrix interface\")},t.prototype.toArray=function(){throw new Error(\"Cannot invoke toArray on a Matrix interface\")},t.prototype.valueOf=function(){throw new Error(\"Cannot invoke valueOf on a Matrix interface\")},t.prototype.format=function(t){throw new Error(\"Cannot invoke format on a Matrix interface\")},t.prototype.toString=function(){throw new Error(\"Cannot invoke toString on a Matrix interface\")},t}),{isClass:!0});function ve(t){return ve=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ve(t)}function be(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return we(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return we(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _e(){_e=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),s=new T(n||[]);return i(a,\"_invoke\",{value:k(t,r,s)}),a}function l(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",g={};function y(){}function v(){}function b(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(O([])));x&&x!==r&&n.call(x,a)&&(w=x);var E=b.prototype=y.prototype=Object.create(w);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==ve(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function k(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=l(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=l(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function O(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(ve(e)+\" is not iterable\")}return v.prototype=b,i(E,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:v,configurable:!0}),v.displayName=c(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===v||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},A(D.prototype),c(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new D(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(E),c(E,u,\"Generator\"),c(E,a,(function(){return this})),c(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=O,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;C(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}var xe=te(\"DenseMatrix\",[\"Matrix\"],(function(t){var e=t.Matrix;function r(t,e){if(!(this instanceof r))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!h(e))throw new Error(\"Invalid datatype: \"+e);if(d(t))\"DenseMatrix\"===t.type?(this._data=X(t._data),this._size=X(t._size),this._datatype=e||t._datatype):(this._data=t.toArray(),this._size=t.size(),this._datatype=e||t._datatype);else if(t&&p(t.data)&&p(t.size))this._data=t.data,this._size=t.size,jt(this._data,this._size),this._datatype=e||t.datatype;else if(p(t))this._data=c(t),this._size=Lt(this._data),jt(this._data,this._size),this._datatype=e;else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._data=[],this._size=[0],this._datatype=e}}function n(t,e,r,i){var o=i===r-1,a=e.dimension(i);return o?a.map((function(e){return Rt(e,t.length),t[e]})).valueOf():a.map((function(o){return Rt(o,t.length),n(t[o],e,r,i+1)})).valueOf()}function i(t,e,r,n,o){var a=o===n-1,s=e.dimension(o);a?s.forEach((function(e,n){Rt(e),t[e]=r[n[0]]})):s.forEach((function(a,s){Rt(a),i(t[a],e,r[s[0]],n,o+1)}))}function o(t,e,r){if(0===e.length){for(var n=t._data;p(n);)n=n[0];return n}return t._size=e.slice(0),t._data=zt(t._data,t._size,r),t}function a(t,e,r){for(var n=t._size.slice(0),i=!1;n.length<e.length;)n.push(0),i=!0;for(var a=0,s=e.length;a<s;a++)e[a]>n[a]&&(n[a]=e[a],i=!0);i&&o(t,n,r)}function c(t){return d(t)?c(t.valueOf()):p(t)?t.map(c):t}return r.prototype=new e,r.prototype.createDenseMatrix=function(t,e){return new r(t,e)},Object.defineProperty(r,\"name\",{value:\"DenseMatrix\"}),r.prototype.constructor=r,r.prototype.type=\"DenseMatrix\",r.prototype.isDenseMatrix=!0,r.prototype.getDataType=function(){return Xt(this._data,W)},r.prototype.storage=function(){return\"dense\"},r.prototype.datatype=function(){return this._datatype},r.prototype.create=function(t,e){return new r(t,e)},r.prototype.subset=function(t,e,o){switch(arguments.length){case 1:return function(t,e){if(!b(e))throw new TypeError(\"Invalid index\");var i=e.isScalar();if(i)return t.get(e.min());var o=e.size();if(o.length!==t._size.length)throw new Ft(o.length,t._size.length);for(var a=e.min(),s=e.max(),u=0,c=t._size.length;u<c;u++)Rt(a[u],t._size[u]),Rt(s[u],t._size[u]);return new r(n(t._data,e,o.length,0),t._datatype)}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var o,s=e.size(),u=e.isScalar();d(r)?(o=r.size(),r=r.valueOf()):o=Lt(r);if(u){if(0!==o.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),r,n)}else{if(!J(o,s))try{o=Lt(r=0===o.length?Kt([r],s):Kt(r,s))}catch(t){}if(s.length<t._size.length)throw new Ft(s.length,t._size.length,\"<\");if(o.length<s.length){for(var c=0,f=0;1===s[c]&&1===o[c];)c++;for(;1===s[c];)f++,c++;r=Zt(r,s.length,f,o)}if(!J(s,o))throw new Ft(s,o,\">\");var l=e.max().map((function(t){return t+1}));a(t,l,n);var h=s.length,p=0;i(t._data,e,r,h,p)}return t}(this,t,e,o);default:throw new SyntaxError(\"Wrong number of arguments\")}},r.prototype.get=function(t){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ft(t.length,this._size.length);for(var e=0;e<t.length;e++)Rt(t[e],this._size[e]);for(var r=this._data,n=0,i=t.length;n<i;n++){var o=t[n];Rt(o,r.length),r=r[o]}return r},r.prototype.set=function(t,e,r){if(!p(t))throw new TypeError(\"Array expected\");if(t.length<this._size.length)throw new Ft(t.length,this._size.length,\"<\");var n,i,o,s=t.map((function(t){return t+1}));a(this,s,r);var u=this._data;for(n=0,i=t.length-1;n<i;n++)Rt(o=t[n],u.length),u=u[o];return Rt(o=t[t.length-1],u.length),u[o]=e,this},r.prototype.resize=function(t,e,r){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var n=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));return o(r?this.clone():this,n,e)},r.prototype.reshape=function(t,e){var r=e?this.clone():this;r._data=Gt(r._data,t);var n=r._size.reduce((function(t,e){return t*e}));return r._size=Ht(t,n),r},r.prototype.clone=function(){return new r({data:X(this._data),size:X(this._size),datatype:this._datatype})},r.prototype.size=function(){return this._size.slice(0)},r.prototype.map=function(t){var e=this,n=fe(t),i=function r(i,o){return p(i)?i.map((function(t,e){return r(t,o.concat(e))})):1===n?t(i):2===n?t(i,o):t(i,o,e)}(this._data,[]);return new r(i,void 0!==this._datatype?Xt(i,W):void 0)},r.prototype.forEach=function(t){var e=this;!function r(n,i){p(n)?n.forEach((function(t,e){r(t,i.concat(e))})):t(n,i,e)}(this._data,[])},r.prototype[Symbol.iterator]=_e().mark((function t(){var e;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=_e().mark((function t(e,r){var n;return _e().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!p(e)){i.next=9;break}n=0;case 2:if(!(n<e.length)){i.next=7;break}return i.delegateYield(t(e[n],r.concat(n)),\"t0\",4);case 4:n++,i.next=2;break;case 7:i.next=11;break;case 9:return i.next=11,{value:e,index:r};case 11:case\"end\":return i.stop()}}),t)})),t.delegateYield(e(this._data,[]),\"t0\",2);case 2:case\"end\":return t.stop()}}),t,this)})),r.prototype.rows=function(){var t=[];if(2!==this.size().length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");var e,n=be(this._data);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(new r([i],this._datatype))}}catch(t){n.e(t)}finally{n.f()}return t},r.prototype.columns=function(){var t=this,e=[],n=this.size();if(2!==n.length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");for(var i=this._data,o=function(n){var o=i.map((function(t){return[t[n]]}));e.push(new r(o,t._datatype))},a=0;a<n[1];a++)o(a);return e},r.prototype.toArray=function(){return X(this._data)},r.prototype.valueOf=function(){return this._data},r.prototype.format=function(t){return St(this._data,t)},r.prototype.toString=function(){return St(this._data)},r.prototype.toJSON=function(){return{mathjs:\"DenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},r.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;for(var e=t>0?t:0,n=t<0?-t:0,i=this._size[0],o=this._size[1],a=Math.min(i-n,o-e),c=[],f=0;f<a;f++)c[f]=this._data[f+n][f+e];return new r({data:c,size:[a],datatype:this._datatype})},r.diagonal=function(t,e,n,i){if(!p(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),n){if(u(n)&&(n=n.toNumber()),!s(n)||!it(n))throw new TypeError(\"The parameter k must be an integer number\")}else n=0;var o,a=n>0?n:0,c=n<0?-n:0,f=t[0],l=t[1],h=Math.min(f-c,l-a);if(p(e)){if(e.length!==h)throw new Error(\"Invalid value array length\");o=function(t){return e[t]}}else if(d(e)){var m=e.size();if(1!==m.length||m[0]!==h)throw new Error(\"Invalid matrix length\");o=function(t){return e.get([t])}}else o=function(){return e};i||(i=u(o(0))?o(0).mul(0):0);var g=[];if(t.length>0){g=zt(g,t,i);for(var y=0;y<h;y++)g[y+c][y+a]=o(y)}return new r({data:g,size:[f,l]})},r.fromJSON=function(t){return new r(t)},r.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return Rt(t,this._size[0]),Rt(e,this._size[0]),r._swapRows(t,e,this._data),this},r._swapRows=function(t,e,r){var n=r[t];r[t]=r[e],r[e]=n},r}),{isClass:!0}),Ee=r(16),Ae=r.n(Ee);function De(t){return De=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},De(t)}function ke(t,e){if(Te(t)&&Me(t,e))return t[e];if(\"function\"==typeof t[e]&&Ce(t,e))throw new Error('Cannot access method \"'+e+'\" as a property');throw new Error('No access to property \"'+e+'\"')}function Se(t,e,r){if(Te(t)&&Me(t,e))return t[e]=r,r;throw new Error('No access to property \"'+e+'\"')}function Me(t,e){return!(!t||\"object\"!==De(t))&&(!!Q(Oe,e)||!(e in Object.prototype)&&!(e in Function.prototype))}function Ce(t,e){return null!=t&&\"function\"==typeof t[e]&&(!(Q(t,e)&&Object.getPrototypeOf&&e in Object.getPrototypeOf(t))&&(!!Q(Fe,e)||!(e in Object.prototype)&&!(e in Function.prototype)))}function Te(t){return\"object\"===De(t)&&t&&t.constructor===Object}var Oe={length:!0,name:!0},Fe={toString:!0,valueOf:!0,toLocaleString:!0};function Be(t){return Be=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Be(t)}function Ie(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,Pe(n.key),n)}}function Pe(t){var e=function(t,e){if(\"object\"!=Be(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=Be(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==Be(e)?e:e+\"\"}var Le=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.wrappedObject=e},(e=[{key:\"keys\",value:function(){return Object.keys(this.wrappedObject)}},{key:\"get\",value:function(t){return ke(this.wrappedObject,t)}},{key:\"set\",value:function(t,e){return Se(this.wrappedObject,t,e),this}},{key:\"has\",value:function(t){return e=this.wrappedObject,t in e;var e}}])&&Ie(t.prototype,e),r&&Ie(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r}();function Ne(t){return!!t&&(t instanceof Map||t instanceof Le||\"function\"==typeof t.set&&\"function\"==typeof t.get&&\"function\"==typeof t.keys&&\"function\"==typeof t.has)}var je=function(){return je=Ae.a.create,Ae.a},Re=te(\"typed\",[\"?BigNumber\",\"?Complex\",\"?DenseMatrix\",\"?Fraction\"],(function(t){var e=t.BigNumber,r=t.Complex,n=t.DenseMatrix,i=t.Fraction,o=je();return o.clear(),o.addTypes([{name:\"number\",test:s},{name:\"Complex\",test:c},{name:\"BigNumber\",test:u},{name:\"Fraction\",test:f},{name:\"Unit\",test:l},{name:\"identifier\",test:function(t){return h&&/^(?:[A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])*$/.test(t)}},{name:\"string\",test:h},{name:\"Chain\",test:Z},{name:\"Array\",test:p},{name:\"Matrix\",test:d},{name:\"DenseMatrix\",test:g},{name:\"SparseMatrix\",test:y},{name:\"Range\",test:v},{name:\"Index\",test:b},{name:\"boolean\",test:w},{name:\"ResultSet\",test:_},{name:\"Help\",test:x},{name:\"function\",test:E},{name:\"Date\",test:A},{name:\"RegExp\",test:D},{name:\"null\",test:S},{name:\"undefined\",test:M},{name:\"AccessorNode\",test:C},{name:\"ArrayNode\",test:T},{name:\"AssignmentNode\",test:O},{name:\"BlockNode\",test:F},{name:\"ConditionalNode\",test:B},{name:\"ConstantNode\",test:I},{name:\"FunctionNode\",test:L},{name:\"FunctionAssignmentNode\",test:P},{name:\"IndexNode\",test:N},{name:\"Node\",test:j},{name:\"ObjectNode\",test:R},{name:\"OperatorNode\",test:z},{name:\"ParenthesisNode\",test:U},{name:\"RangeNode\",test:G},{name:\"RelationalNode\",test:H},{name:\"SymbolNode\",test:q},{name:\"Map\",test:Ne},{name:\"Object\",test:k}]),o.addConversions([{from:\"number\",to:\"BigNumber\",convert:function(t){if(e||ze(t),t.toExponential().replace(/e.*$/,\"\").replace(/^0\\.?0*|\\./,\"\").length>15)throw new TypeError(\"Cannot implicitly convert a number with >15 significant digits to BigNumber (value: \"+t+\"). Use function bignumber(x) to convert to BigNumber.\");return new e(t)}},{from:\"number\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t,0)}},{from:\"BigNumber\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t.toNumber(),0)}},{from:\"Fraction\",to:\"BigNumber\",convert:function(t){throw new TypeError(\"Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.\")}},{from:\"Fraction\",to:\"Complex\",convert:function(t){return r||Ue(t),new r(t.valueOf(),0)}},{from:\"number\",to:\"Fraction\",convert:function(t){i||Ge(t);var e=new i(t);if(e.valueOf()!==t)throw new TypeError(\"Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: \"+t+\"). Use function fraction(x) to convert to Fraction.\");return e}},{from:\"string\",to:\"number\",convert:function(t){var e=Number(t);if(isNaN(e))throw new Error('Cannot convert \"'+t+'\" to a number');return e}},{from:\"string\",to:\"BigNumber\",convert:function(t){e||ze(t);try{return new e(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to BigNumber')}}},{from:\"string\",to:\"Fraction\",convert:function(t){i||Ge(t);try{return new i(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Fraction')}}},{from:\"string\",to:\"Complex\",convert:function(t){r||Ue(t);try{return new r(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Complex')}}},{from:\"boolean\",to:\"number\",convert:function(t){return+t}},{from:\"boolean\",to:\"BigNumber\",convert:function(t){return e||ze(t),new e(+t)}},{from:\"boolean\",to:\"Fraction\",convert:function(t){return i||Ge(t),new i(+t)}},{from:\"boolean\",to:\"string\",convert:function(t){return String(t)}},{from:\"Array\",to:\"Matrix\",convert:function(t){return n||function(){throw new Error(\"Cannot convert array into a Matrix: no class 'DenseMatrix' provided\")}(),new n(t)}},{from:\"Matrix\",to:\"Array\",convert:function(t){return t.valueOf()}}]),o.onMismatch=function(t,e,r){var n=o.createError(t,e,r);if([\"wrongType\",\"mismatch\"].includes(n.data.category)&&1===e.length&&m(e[0])&&r.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=n.data,i}throw n},o.onMismatch=function(t,e,r){var n=o.createError(t,e,r);if([\"wrongType\",\"mismatch\"].includes(n.data.category)&&1===e.length&&m(e[0])&&r.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=n.data,i}throw n},o}));function ze(t){throw new Error(\"Cannot convert value \".concat(t,\" into a BigNumber: no class 'BigNumber' provided\"))}function Ue(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Complex number: no class 'Complex' provided\"))}function Ge(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Fraction, no class 'Fraction' provided.\"))}function He(t,e,r){return t&&\"function\"==typeof t.map?t.map((function(t){return He(t,e,r)})):e(t)}var qe=\"number\",Ze=\"number, number\";function We(t){return Math.abs(t)}function Ye(t,e){return t+e}function Xe(t,e){return t-e}function $e(t,e){return t*e}function Ve(t){return-t}function Je(t){return t}function Qe(t){return ut(t)}function Ke(t){return t*t*t}function tr(t){return Math.exp(t)}function er(t){return ct(t)}function rr(t,e){if(!it(t)||!it(e))throw new Error(\"Parameters in function lcm must be integer numbers\");if(0===t||0===e)return 0;for(var r,n=t*e;0!==e;)e=t%(r=e),t=r;return Math.abs(n/t)}function nr(t){return st(t)}function ir(t){return at(t)}function or(t){return ot(t)}function ar(t){return t*t}function sr(t,e){var r,n,i,o=0,a=1,s=1,u=0;if(!it(t)||!it(e))throw new Error(\"Parameters in function xgcd must be integer numbers\");for(;e;)i=t-(n=Math.floor(t/e))*e,r=o,o=a-n*o,a=r,r=s,s=u-n*s,u=r,t=e,e=i;return t<0?[-t,-a,-u]:[t,t?a:0,u]}function ur(t,e){return t*t<1&&e===1/0||t*t>1&&e===-1/0?0:Math.pow(t,e)}We.signature=qe,Ye.signature=Ze,Xe.signature=Ze,$e.signature=Ze,Ve.signature=qe,Je.signature=qe,Qe.signature=qe,Ke.signature=qe,tr.signature=qe,er.signature=qe,rr.signature=Ze,nr.signature=qe,ir.signature=qe,or.signature=qe,ar.signature=qe,sr.signature=Ze,ur.signature=Ze;var cr=\"number\";function fr(t){return bt(t)}function lr(t){return Math.atan(1/t)}function hr(t){return isFinite(t)?(Math.log((t+1)/t)+Math.log(t/(t-1)))/2:0}function pr(t){return Math.asin(1/t)}function dr(t){var e=1/t;return Math.log(e+Math.sqrt(e*e+1))}function mr(t){return Math.acos(1/t)}function gr(t){var e=1/t,r=Math.sqrt(e*e-1);return Math.log(r+e)}function yr(t){return wt(t)}function vr(t){return _t(t)}function br(t){return 1/Math.tan(t)}function wr(t){var e=Math.exp(2*t);return(e+1)/(e-1)}function _r(t){return 1/Math.sin(t)}function xr(t){return 0===t?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(t)-Math.exp(-t)))*ot(t)}function Er(t){return 1/Math.cos(t)}function Ar(t){return 2/(Math.exp(t)+Math.exp(-t))}function Dr(t){return xt(t)}fr.signature=cr,lr.signature=cr,hr.signature=cr,pr.signature=cr,dr.signature=cr,mr.signature=cr,gr.signature=cr,yr.signature=cr,vr.signature=cr,br.signature=cr,wr.signature=cr,_r.signature=cr,xr.signature=cr,Er.signature=cr,Ar.signature=cr,Dr.signature=cr;var kr=\"addScalar\",Sr=te(kr,[\"typed\"],(function(t){var e=t.typed;return e(kr,{\"number, number\":Ye,\"Complex, Complex\":function(t,e){return t.add(e)},\"BigNumber, BigNumber\":function(t,e){return t.plus(e)},\"Fraction, Fraction\":function(t,e){return t.add(e)},\"Unit, Unit\":e.referToSelf((function(t){return function(r,n){if(null===r.value||void 0===r.value)throw new Error(\"Parameter x contains a unit with undefined value\");if(null===n.value||void 0===n.value)throw new Error(\"Parameter y contains a unit with undefined value\");if(!r.equalBase(n))throw new Error(\"Units do not match\");var i=r.clone();return i.value=e.find(t,[i.valueType(),n.valueType()])(i.value,n.value),i.fixPrefix=!1,i}}))})})),Mr=te(\"bignumber\",[\"typed\",\"BigNumber\"],(function(t){var e=t.typed,r=t.BigNumber;return e(\"bignumber\",{\"\":function(){return new r(0)},number:function(t){return new r(t+\"\")},string:function(t){var e=t.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(e){var n=e[2],i=r(e[1]),o=new r(2).pow(Number(n));if(i.gt(o.sub(1)))throw new SyntaxError('String \"'.concat(t,'\" is out of range'));var a=new r(2).pow(Number(n)-1);return i.gte(a)?i.sub(o):i}return new r(t)},BigNumber:function(t){return t},Unit:e.referToSelf((function(t){return function(e){var r=e.clone();return r.value=t(e.value),r}})),Fraction:function(t){return new r(t.n).div(t.d).times(t.s)},null:function(t){return new r(0)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})}));var Cr=\"number, number\";function Tr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitAnd\");return t&e}function Or(t){if(!it(t))throw new Error(\"Integer expected in function bitNot\");return~t}function Fr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitOr\");return t|e}function Br(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitXor\");return t^e}function Ir(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function leftShift\");return t<<e}function Pr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightArithShift\");return t>>e}function Lr(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightLogShift\");return t>>>e}Tr.signature=Cr,Or.signature=\"number\",Fr.signature=Cr,Br.signature=Cr,Ir.signature=Cr,Pr.signature=Cr,Lr.signature=Cr;function Nr(t,e){if(e<t)return 1;if(e===t)return e;var r=e+t>>1;return Nr(t,r)*Nr(r+1,e)}function jr(t,e){if(!it(t)||t<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(!it(e)||e<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(e>t)throw new TypeError(\"k must be less than or equal to n\");for(var r=t-e,n=1,i=2,o=e<r?e:r,a=e<r?r+1:e+1;a<=t;++a)for(n*=a;i<=o&&n%i==0;)n/=i,++i;return i<=o&&(n/=Nr(i,o)),n}jr.signature=\"number, number\";function Rr(t,e,r){if(null==r)return t.eq(e);if(t.eq(e))return!0;if(t.isNaN()||e.isNaN())return!1;if(t.isFinite()&&e.isFinite()){var n=t.minus(e).abs();if(n.isZero())return!0;var i=t.constructor.max(t.abs(),e.abs());return n.lte(i.times(r))}return!1}var zr=te(\"compareUnits\",[\"typed\"],(function(t){var e=t.typed;return{\"Unit, Unit\":e.referToSelf((function(t){return function(r,n){if(!r.equalBase(n))throw new Error(\"Cannot compare units with different base\");return e.find(t,[r.valueType(),n.valueType()])(r.value,n.value)}}))}})),Ur=\"equalScalar\",Gr=te(Ur,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config,n=zr({typed:e});return e(Ur,{\"boolean, boolean\":function(t,e){return t===e},\"number, number\":function(t,e){return vt(t,e,r.epsilon)},\"BigNumber, BigNumber\":function(t,e){return t.eq(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return t.equals(e)},\"Complex, Complex\":function(t,e){return function(t,e,r){return vt(t.re,e.re,r)&&vt(t.im,e.im,r)}(t,e,r.epsilon)}},n)}));te(Ur,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Ur,{\"number, number\":function(t,e){return vt(t,e,r.epsilon)}})})),Math.pow(2,53);var Hr=\"getMatrixDataType\",qr=te(Hr,[\"typed\"],(function(t){return(0,t.typed)(Hr,{Array:function(t){return Xt(t,W)},Matrix:function(t){return t.getDataType()}})})),Zr=(te(\"hex\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"hex\",{\"number | BigNumber\":function(t){return r(t,{notation:\"hex\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"hex\",wordSize:e})}})})),\"isInteger\"),Wr=te(Zr,[\"typed\"],(function(t){var e=t.typed;return e(Zr,{number:it,BigNumber:function(t){return t.isInt()},Fraction:function(t){return 1===t.d&&isFinite(t.n)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})})),Yr=\"number\";function Xr(t){return t<0}function $r(t){return t>0}function Vr(t){return 0===t}function Jr(t){return Number.isNaN(t)}Xr.signature=Yr,$r.signature=Yr,Vr.signature=Yr,Jr.signature=Yr;var Qr=\"isPositive\",Kr=te(Qr,[\"typed\"],(function(t){var e=t.typed;return e(Qr,{number:$r,BigNumber:function(t){return!t.isNeg()&&!t.isZero()&&!t.isNaN()},Fraction:function(t){return t.s>0&&t.n>0},Unit:e.referToSelf((function(t){return function(r){return e.find(t,r.valueType())(r.value)}})),\"Array | Matrix\":e.referToSelf((function(t){return function(e){return He(e,t)}}))})}));function tn(t){var e;if(it(t))return t<=0?isFinite(t)?1/0:NaN:t>171?1/0:Nr(1,t-1);if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*tn(1-t));if(t>=171.35)return 1/0;if(t>85){var r=t*t,n=r*t,i=n*t,o=i*t;return Math.sqrt(2*Math.PI/t)*Math.pow(t/Math.E,t)*(1+1/(12*t)+1/(288*r)-139/(51840*n)-571/(2488320*i)+163879/(209018880*o)+5246819/(75246796800*o*t))}--t,e=rn[0];for(var a=1;a<rn.length;++a)e+=rn[a]/(t+a);var s=t+en+.5;return Math.sqrt(2*Math.PI)*Math.pow(s,t+.5)*Math.exp(-s)*e}tn.signature=\"number\";var en=4.7421875,rn=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],nn=.9189385332046728,on=[1.000000000190015,76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18];function an(t){if(t<0)return NaN;if(0===t)return 1/0;if(!isFinite(t))return t;if(t<.5)return Math.log(Math.PI/Math.sin(Math.PI*t))-an(1-t);for(var e=(t-=1)+5+.5,r=on[0],n=6;n>=1;n--)r+=on[n]/(t+n);return nn+(t+.5)*Math.log(e)-e+Math.log(r)}an.signature=\"number\";var sn=\"number, number\";function un(t){return!t}function cn(t,e){return!(!t&&!e)}function fn(t,e){return!!t!=!!e}function ln(t,e){return!(!t||!e)}un.signature=\"number\",cn.signature=sn,fn.signature=sn,ln.signature=sn;te(\"oct\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"oct\",{\"number | BigNumber\":function(t){return r(t,{notation:\"oct\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"oct\",wordSize:e})}})}));var hn=r(64),pn=r.n(hn);Date.now();function dn(t){return dn=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},dn(t)}function mn(){mn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),s=new T(n||[]);return i(a,\"_invoke\",{value:k(t,r,s)}),a}function l(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var h=\"suspendedStart\",p=\"suspendedYield\",d=\"executing\",m=\"completed\",g={};function y(){}function v(){}function b(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(O([])));x&&x!==r&&n.call(x,a)&&(w=x);var E=b.prototype=y.prototype=Object.create(w);function A(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==dn(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function k(e,r,n){var i=h;return function(o,a){if(i===d)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=d;var c=l(e,r,n);if(\"normal\"===c.type){if(i=n.done?m:p,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=m,n.method=\"throw\",n.arg=c.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,S(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var o=l(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function O(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(dn(e)+\" is not iterable\")}return v.prototype=b,i(E,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:v,configurable:!0}),v.displayName=c(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===v||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,\"GeneratorFunction\")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},A(D.prototype),c(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new D(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(E),c(E,u,\"Generator\"),c(E,a,(function(){return this})),c(E,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=O,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;C(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}var gn=te(\"SparseMatrix\",[\"typed\",\"equalScalar\",\"Matrix\"],(function(t){var e=t.typed,r=t.equalScalar,n=t.Matrix;function i(t,e){if(!(this instanceof i))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!h(e))throw new Error(\"Invalid datatype: \"+e);if(d(t))!function(t,e,r){\"SparseMatrix\"===e.type?(t._values=e._values?X(e._values):void 0,t._index=X(e._index),t._ptr=X(e._ptr),t._size=X(e._size),t._datatype=r||e._datatype):o(t,e.valueOf(),r||e._datatype)}(this,t,e);else if(t&&p(t.index)&&p(t.ptr)&&p(t.size))this._values=t.values,this._index=t.index,this._ptr=t.ptr,this._size=t.size,this._datatype=e||t.datatype;else if(p(t))o(this,t,e);else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=e}}function o(t,n,i){t._values=[],t._index=[],t._ptr=[],t._datatype=i;var o=n.length,a=0,s=r,u=0;if(h(i)&&(s=e.find(r,[i,i])||r,u=e.convert(0,i)),o>0){var c=0;do{t._ptr.push(t._index.length);for(var f=0;f<o;f++){var l=n[f];if(p(l)){if(0===c&&a<l.length&&(a=l.length),c<l.length){var d=l[c];s(d,u)||(t._values.push(d),t._index.push(f))}}else 0===c&&a<1&&(a=1),s(l,u)||(t._values.push(l),t._index.push(f))}c++}while(c<a)}t._ptr.push(t._index.length),t._size=[o,a]}function a(t,e,r,n){if(r-e==0)return r;for(var i=e;i<r;i++)if(n[i]===t)return i;return e}function c(t,e,r,n,i,o,a){i.splice(t,0,n),o.splice(t,0,e);for(var s=r+1;s<a.length;s++)a[s]++}function f(t,n,i,o){var a=o||0,s=r,u=0;h(t._datatype)&&(s=e.find(r,[t._datatype,t._datatype])||r,u=e.convert(0,t._datatype),a=e.convert(a,t._datatype));var c,f,l,p=!s(a,u),d=t._size[0],m=t._size[1];if(i>m){for(f=m;f<i;f++)if(t._ptr[f]=t._values.length,p)for(c=0;c<d;c++)t._values.push(a),t._index.push(c);t._ptr[i]=t._values.length}else i<m&&(t._ptr.splice(i+1,m-i),t._values.splice(t._ptr[i],t._values.length),t._index.splice(t._ptr[i],t._index.length));if(m=i,n>d){if(p){var g=0;for(f=0;f<m;f++){t._ptr[f]=t._ptr[f]+g,l=t._ptr[f+1]+g;var y=0;for(c=d;c<n;c++,y++)t._values.splice(l+y,0,a),t._index.splice(l+y,0,c),g++}t._ptr[m]=t._values.length}}else if(n<d){var v=0;for(f=0;f<m;f++){t._ptr[f]=t._ptr[f]-v;var b=t._ptr[f],w=t._ptr[f+1]-v;for(l=b;l<w;l++)(c=t._index[l])>n-1&&(t._values.splice(l,1),t._index.splice(l,1),v++)}t._ptr[f]=t._values.length}return t._size[0]=n,t._size[1]=i,t}function l(t,e,r,n,i){var o,a,s=n[0],u=n[1],c=[];for(o=0;o<s;o++)for(c[o]=[],a=0;a<u;a++)c[o][a]=0;for(a=0;a<u;a++)for(var f=r[a],l=r[a+1],h=f;h<l;h++)c[o=e[h]][a]=t?i?X(t[h]):t[h]:1;return c}return i.prototype=new n,i.prototype.createSparseMatrix=function(t,e){return new i(t,e)},Object.defineProperty(i,\"name\",{value:\"SparseMatrix\"}),i.prototype.constructor=i,i.prototype.type=\"SparseMatrix\",i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return Xt(this._values,W)},i.prototype.storage=function(){return\"sparse\"},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(t,e){return new i(t,e)},i.prototype.density=function(){var t=this._size[0],e=this._size[1];return 0!==t&&0!==e?this._index.length/(t*e):0},i.prototype.subset=function(t,e,r){if(!this._values)throw new Error(\"Cannot invoke subset on a Pattern only matrix\");switch(arguments.length){case 1:return function(t,e){if(!b(e))throw new TypeError(\"Invalid index\");if(e.isScalar())return t.get(e.min());var r,n,o,a,s=e.size();if(s.length!==t._size.length)throw new Ft(s.length,t._size.length);var u=e.min(),c=e.max();for(r=0,n=t._size.length;r<n;r++)Rt(u[r],t._size[r]),Rt(c[r],t._size[r]);var f=t._values,l=t._index,h=t._ptr,p=e.dimension(0),d=e.dimension(1),m=[],g=[];p.forEach((function(t,e){g[t]=e[0],m[t]=!0}));var y=f?[]:void 0,v=[],w=[];return d.forEach((function(t){for(w.push(v.length),o=h[t],a=h[t+1];o<a;o++)r=l[o],!0===m[r]&&(v.push(g[r]),y&&y.push(f[o]))})),w.push(v.length),new i({values:y,index:v,ptr:w,size:s,datatype:t._datatype})}(this,t);case 2:case 3:return function(t,e,r,n){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var i,o=e.size(),a=e.isScalar();d(r)?(i=r.size(),r=r.toArray()):i=Lt(r);if(a){if(0!==i.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),r,n)}else{if(1!==o.length&&2!==o.length)throw new Ft(o.length,t._size.length,\"<\");if(i.length<o.length){for(var s=0,u=0;1===o[s]&&1===i[s];)s++;for(;1===o[s];)u++,s++;r=Zt(r,o.length,u,i)}if(!J(o,i))throw new Ft(o,i,\">\");if(1===o.length){e.dimension(0).forEach((function(e,i){Rt(e),t.set([e,0],r[i[0]],n)}))}else{var c=e.dimension(0),f=e.dimension(1);c.forEach((function(e,i){Rt(e),f.forEach((function(o,a){Rt(o),t.set([e,o],r[i[0]][a[0]],n)}))}))}}return t}(this,t,e,r);default:throw new SyntaxError(\"Wrong number of arguments\")}},i.prototype.get=function(t){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ft(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke get on a Pattern only matrix\");var e=t[0],r=t[1];Rt(e,this._size[0]),Rt(r,this._size[1]);var n=a(e,this._ptr[r],this._ptr[r+1],this._index);return n<this._ptr[r+1]&&this._index[n]===e?this._values[n]:0},i.prototype.set=function(t,n,i){if(!p(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new Ft(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke set on a Pattern only matrix\");var o=t[0],s=t[1],u=this._size[0],l=this._size[1],d=r,m=0;h(this._datatype)&&(d=e.find(r,[this._datatype,this._datatype])||r,m=e.convert(0,this._datatype)),(o>u-1||s>l-1)&&(f(this,Math.max(o+1,u),Math.max(s+1,l),i),u=this._size[0],l=this._size[1]),Rt(o,u),Rt(s,l);var g=a(o,this._ptr[s],this._ptr[s+1],this._index);return g<this._ptr[s+1]&&this._index[g]===o?d(n,m)?function(t,e,r,n,i){r.splice(t,1),n.splice(t,1);for(var o=e+1;o<i.length;o++)i[o]--}(g,s,this._values,this._index,this._ptr):this._values[g]=n:d(n,m)||c(g,o,s,n,this._values,this._index,this._ptr),this},i.prototype.resize=function(t,e,r){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var n=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));if(2!==n.length)throw new Error(\"Only two dimensions matrix are supported\");return n.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+St(n)+\")\")})),f(r?this.clone():this,n[0],n[1],e)},i.prototype.reshape=function(t,e){if(!p(t))throw new TypeError(\"Array expected\");if(2!==t.length)throw new Error(\"Sparse matrices can only be reshaped in two dimensions\");t.forEach((function(e){if(!s(e)||!it(e)||e<=-2||0===e)throw new TypeError(\"Invalid size, must contain positive integers or -1 (size: \"+St(t)+\")\")}));var r=this._size[0]*this._size[1];if(r!==(t=Ht(t,r))[0]*t[1])throw new Error(\"Reshaping sparse matrix will result in the wrong number of elements\");var n=e?this.clone():this;if(this._size[0]===t[0]&&this._size[1]===t[1])return n;for(var i=[],o=0;o<n._ptr.length;o++)for(var u=0;u<n._ptr[o+1]-n._ptr[o];u++)i.push(o);for(var f=n._values.slice(),l=n._index.slice(),h=0;h<n._index.length;h++){var d=l[h],m=i[h],g=d*n._size[1]+m;i[h]=g%t[1],l[h]=Math.floor(g/t[1])}n._values.length=0,n._index.length=0,n._ptr.length=t[1]+1,n._size=t.slice();for(var y=0;y<n._ptr.length;y++)n._ptr[y]=0;for(var v=0;v<f.length;v++){var b=l[v],w=i[v],_=f[v];c(a(b,n._ptr[w],n._ptr[w+1],n._index),b,w,_,n._values,n._index,n._ptr)}return n},i.prototype.clone=function(){return new i({values:this._values?X(this._values):void 0,index:X(this._index),ptr:X(this._ptr),size:X(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(t,n){if(!this._values)throw new Error(\"Cannot invoke map on a Pattern only matrix\");var o=this,a=this._size[0],s=this._size[1],u=fe(t);return function(t,n,o,a,s,u,c){var f=[],l=[],p=[],d=r,m=0;h(t._datatype)&&(d=e.find(r,[t._datatype,t._datatype])||r,m=e.convert(0,t._datatype));for(var g=function(t,e,r){t=u(t,e,r),d(t,m)||(f.push(t),l.push(e))},y=a;y<=s;y++){p.push(f.length);var v=t._ptr[y],b=t._ptr[y+1];if(c)for(var w=v;w<b;w++){var _=t._index[w];_>=n&&_<=o&&g(t._values[w],_-n,y-a)}else{for(var x={},E=v;E<b;E++){x[t._index[E]]=t._values[E]}for(var A=n;A<=o;A++){g(A in x?x[A]:0,A-n,y-a)}}}return p.push(f.length),new i({values:f,index:l,ptr:p,size:[o-n+1,s-a+1]})}(this,0,a-1,0,s-1,(function(e,r,n){return 1===u?t(e):2===u?t(e,[r,n]):t(e,[r,n],o)}),n)},i.prototype.forEach=function(t,e){if(!this._values)throw new Error(\"Cannot invoke forEach on a Pattern only matrix\");for(var r=this._size[0],n=this._size[1],i=0;i<n;i++){var o=this._ptr[i],a=this._ptr[i+1];if(e)for(var s=o;s<a;s++){var u=this._index[s];t(this._values[s],[u,i],this)}else{for(var c={},f=o;f<a;f++){c[this._index[f]]=this._values[f]}for(var l=0;l<r;l++){t(l in c?c[l]:0,[l,i],this)}}}},i.prototype[Symbol.iterator]=mn().mark((function t(){var e,r,n,i,o,a;return mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._values){t.next=2;break}throw new Error(\"Cannot iterate a Pattern only matrix\");case 2:e=this._size[1],r=0;case 4:if(!(r<e)){t.next=18;break}n=this._ptr[r],i=this._ptr[r+1],o=n;case 8:if(!(o<i)){t.next=15;break}return a=this._index[o],t.next=12,{value:this._values[o],index:[a,r]};case 12:o++,t.next=8;break;case 15:r++,t.next=4;break;case 18:case\"end\":return t.stop()}}),t,this)})),i.prototype.toArray=function(){return l(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return l(this._values,this._index,this._ptr,this._size,!1)},i.prototype.format=function(t){for(var e=this._size[0],r=this._size[1],n=this.density(),i=\"Sparse Matrix [\"+St(e,t)+\" x \"+St(r,t)+\"] density: \"+St(n,t)+\"\\n\",o=0;o<r;o++)for(var a=this._ptr[o],s=this._ptr[o+1],u=a;u<s;u++){i+=\"\\n    (\"+St(this._index[u],t)+\", \"+St(o,t)+\") ==> \"+(this._values?St(this._values[u],t):\"X\")}return i},i.prototype.toString=function(){return St(this.toArray())},i.prototype.toJSON=function(){return{mathjs:\"SparseMatrix\",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;var e=t>0?t:0,r=t<0?-t:0,n=this._size[0],o=this._size[1],a=Math.min(n-r,o-e),c=[],f=[],l=[];l[0]=0;for(var h=e;h<o&&c.length<a;h++)for(var p=this._ptr[h],d=this._ptr[h+1],m=p;m<d;m++){var g=this._index[m];if(g===h-e+r){c.push(this._values[m]),f[c.length-1]=g-r;break}}return l.push(c.length),new i({values:c,index:f,ptr:l,size:[a,1]})},i.fromJSON=function(t){return new i(t)},i.diagonal=function(t,n,o,a,c){if(!p(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),o){if(u(o)&&(o=o.toNumber()),!s(o)||!it(o))throw new TypeError(\"The parameter k must be an integer number\")}else o=0;var f=r,l=0;h(c)&&(f=e.find(r,[c,c])||r,l=e.convert(0,c));var m,g=o>0?o:0,y=o<0?-o:0,v=t[0],b=t[1],w=Math.min(v-y,b-g);if(p(n)){if(n.length!==w)throw new Error(\"Invalid value array length\");m=function(t){return n[t]}}else if(d(n)){var _=n.size();if(1!==_.length||_[0]!==w)throw new Error(\"Invalid matrix length\");m=function(t){return n.get([t])}}else m=function(){return n};for(var x=[],E=[],A=[],D=0;D<b;D++){A.push(x.length);var k=D-g;if(k>=0&&k<w){var S=m(k);f(S,l)||(E.push(k+y),x.push(S))}}return A.push(x.length),new i({values:x,index:E,ptr:A,size:[v,b]})},i.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return Rt(t,this._size[0]),Rt(e,this._size[0]),i._swapRows(t,e,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(t,e,r,n,i){for(var o=n[t],a=n[t+1],s=o;s<a;s++)i(r[s],e[s])},i._swapRows=function(t,e,r,n,i,o){for(var s=0;s<r;s++){var u=o[s],c=o[s+1],f=a(t,u,c,i),l=a(e,u,c,i);if(f<c&&l<c&&i[f]===t&&i[l]===e){if(n){var h=n[f];n[f]=n[l],n[l]=h}}else if(f<c&&i[f]===t&&(l>=c||i[l]!==e)){var p=n?n[f]:void 0;i.splice(l,0,e),n&&n.splice(l,0,p),i.splice(l<=f?f+1:f,1),n&&n.splice(l<=f?f+1:f,1)}else if(l<c&&i[l]===e&&(f>=c||i[f]!==t)){var d=n?n[l]:void 0;i.splice(f,0,t),n&&n.splice(f,0,d),i.splice(f<=l?l+1:l,1),n&&n.splice(f<=l?l+1:l,1)}}},i}),{isClass:!0});te(\"bin\",[\"typed\",\"format\"],(function(t){var e=t.typed,r=t.format;return e(\"bin\",{\"number | BigNumber\":function(t){return r(t,{notation:\"bin\"})},\"number | BigNumber, number\":function(t,e){return r(t,{notation:\"bin\",wordSize:e})}})}));var yn=\"matrix\",vn=te(yn,[\"typed\",\"Matrix\",\"DenseMatrix\",\"SparseMatrix\"],(function(t){var e=t.typed,r=(t.Matrix,t.DenseMatrix),n=t.SparseMatrix;return e(yn,{\"\":function(){return i([])},string:function(t){return i([],t)},\"string, string\":function(t,e){return i([],t,e)},Array:function(t){return i(t)},Matrix:function(t){return i(t,t.storage())},\"Array | Matrix, string\":i,\"Array | Matrix, string, string\":i});function i(t,e,i){if(\"dense\"===e||\"default\"===e||void 0===e)return new r(t,i);if(\"sparse\"===e)return new n(t,i);throw new TypeError(\"Unknown matrix type \"+JSON.stringify(e)+\".\")}}));function bn(){throw new Error('No \"bignumber\" implementation available')}function wn(){throw new Error('No \"matrix\" implementation available')}var _n=\"transpose\",xn=te(_n,[\"typed\",\"matrix\"],(function(t){var e=t.typed,r=t.matrix;return e(_n,{Array:function(t){return n(r(t)).valueOf()},Matrix:n,any:X});function n(t){var e,r=t.size();switch(r.length){case 1:e=t.clone();break;case 2:var n=r[0],i=r[1];if(0===i)throw new RangeError(\"Cannot transpose a 2D matrix with no columns (size: \"+St(r)+\")\");switch(t.storage()){case\"dense\":e=function(t,e,r){for(var n,i=t._data,o=[],a=0;a<r;a++){n=o[a]=[];for(var s=0;s<e;s++)n[s]=X(i[s][a])}return t.createDenseMatrix({data:o,size:[r,e],datatype:t._datatype})}(t,n,i);break;case\"sparse\":e=function(t,e,r){for(var n,i,o,a=t._values,s=t._index,u=t._ptr,c=a?[]:void 0,f=[],l=[],h=[],p=0;p<e;p++)h[p]=0;for(n=0,i=s.length;n<i;n++)h[s[n]]++;for(var d=0,m=0;m<e;m++)l.push(d),d+=h[m],h[m]=l[m];for(l.push(d),o=0;o<r;o++)for(var g=u[o],y=u[o+1],v=g;v<y;v++){var b=h[s[v]]++;f[b]=o,a&&(c[b]=X(a[v]))}return t.createSparseMatrix({values:c,index:f,ptr:l,size:[r,e],datatype:t._datatype})}(t,n,i)}break;default:throw new RangeError(\"Matrix must be a vector or two dimensional (size: \"+St(r)+\")\")}return e}})),En=\"concat\",An=te(En,[\"typed\",\"matrix\",\"isInteger\"],(function(t){var e=t.typed,r=t.matrix,n=t.isInteger;return e(En,{\"...Array | Matrix | number | BigNumber\":function(t){var e,i,o=t.length,a=-1,c=!1,f=[];for(e=0;e<o;e++){var l=t[e];if(d(l)&&(c=!0),s(l)||u(l)){if(e!==o-1)throw new Error(\"Dimension must be specified as last argument\");if(i=a,a=l.valueOf(),!n(a))throw new TypeError(\"Integer number expected for dimension\");if(a<0||e>0&&a>i)throw new Bt(a,i+1)}else{var h=X(l).valueOf(),p=Lt(h);if(f[e]=h,i=a,a=p.length-1,e>0&&a!==i)throw new Ft(i+1,a+1)}}if(0===f.length)throw new SyntaxError(\"At least one matrix expected\");for(var m=f.shift();f.length;)m=Vt(m,f.shift(),a);return c?r(m):m},\"...string\":function(t){return t.join(\"\")}})})),Dn=te(\"matAlgo03xDSf\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,n,i){var o=t._data,a=t._size,s=t._datatype,u=r._values,c=r._index,f=r._ptr,l=r._size,h=r._datatype;if(a.length!==l.length)throw new Ft(a.length,l.length);if(a[0]!==l[0]||a[1]!==l[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+l+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var p,d=a[0],m=a[1],g=0,y=n;\"string\"==typeof s&&s===h&&(p=s,g=e.convert(0,p),y=e.find(n,[p,p]));for(var v=[],b=0;b<d;b++)v[b]=[];for(var w=[],_=[],x=0;x<m;x++){for(var E=x+1,A=f[x],D=f[x+1],k=A;k<D;k++){var S=c[k];w[S]=i?y(u[k],o[S][x]):y(o[S][x],u[k]),_[S]=E}for(var M=0;M<d;M++)_[M]===E?v[M][x]=w[M]:v[M][x]=i?y(g,o[M][x]):y(o[M][x],g)}return t.createDenseMatrix({data:v,size:[d,m],datatype:p})}})),kn=te(\"matAlgo07xSSf\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,i,o){var a=t._size,s=t._datatype,u=i._size,c=i._datatype;if(a.length!==u.length)throw new Ft(a.length,u.length);if(a[0]!==u[0]||a[1]!==u[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+u+\")\");var f,l,h,p=a[0],d=a[1],m=0,g=o;\"string\"==typeof s&&s===c&&(f=s,m=e.convert(0,f),g=e.find(o,[f,f]));var y=[];for(l=0;l<p;l++)y[l]=[];var v=[],b=[],w=[],_=[];for(h=0;h<d;h++){var x=h+1;for(n(t,h,w,v,x),n(i,h,_,b,x),l=0;l<p;l++){var E=w[l]===x?v[l]:m,A=_[l]===x?b[l]:m;y[l][h]=g(E,A)}}return new r({data:y,size:[p,d],datatype:f})};function n(t,e,r,n,i){for(var o=t._values,a=t._index,s=t._ptr,u=s[e],c=s[e+1];u<c;u++){var f=a[u];r[f]=i,n[f]=o[u]}}})),Sn=te(\"matAlgo12xSfs\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,n,i,o){var a=t._values,s=t._index,u=t._ptr,c=t._size,f=t._datatype;if(!a)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var l,h=c[0],p=c[1],d=i;\"string\"==typeof f&&(l=f,n=e.convert(n,l),d=e.find(i,[l,l]));for(var m=[],g=[],y=[],v=0;v<p;v++){for(var b=v+1,w=u[v],_=u[v+1],x=w;x<_;x++){var E=s[x];g[E]=a[x],y[E]=b}for(var A=0;A<h;A++)0===v&&(m[A]=[]),y[A]===b?m[A][v]=o?d(n,g[A]):d(g[A],n):m[A][v]=o?d(n,0):d(0,n)}return new r({data:m,size:[h,p],datatype:l})}})),Mn=te(\"matAlgo13xDD\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,i){var o,a=t._data,s=t._size,u=t._datatype,c=n._data,f=n._size,l=n._datatype,h=[];if(s.length!==f.length)throw new Ft(s.length,f.length);for(var p=0;p<s.length;p++){if(s[p]!==f[p])throw new RangeError(\"Dimension mismatch. Matrix A (\"+s+\") must match Matrix B (\"+f+\")\");h[p]=s[p]}var d=i;\"string\"==typeof u&&u===l&&(o=u,d=e.find(i,[o,o]));var m=h.length>0?r(d,0,h,h[0],a,c):[];return t.createDenseMatrix({data:m,size:h,datatype:o})};function r(t,e,n,i,o,a){var s=[];if(e===n.length-1)for(var u=0;u<i;u++)s[u]=t(o[u],a[u]);else for(var c=0;c<i;c++)s[c]=r(t,e+1,n,n[e+1],o[c],a[c]);return s}})),Cn=te(\"matAlgo14xDs\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,i,o){var a,s=t._data,u=t._size,c=t._datatype,f=i;\"string\"==typeof c&&(a=c,n=e.convert(n,a),f=e.find(i,[a,a]));var l=u.length>0?r(f,0,u,u[0],s,n,o):[];return t.createDenseMatrix({data:l,size:X(u),datatype:a})};function r(t,e,n,i,o,a,s){var u=[];if(e===n.length-1)for(var c=0;c<i;c++)u[c]=s?t(a,o[c]):t(o[c],a);else for(var f=0;f<i;f++)u[f]=r(t,e+1,n,n[e+1],o[f],a,s);return u}}));function Tn(t){return function(t){if(Array.isArray(t))return On(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return On(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return On(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function On(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Fn=te(\"broadcast\",[\"concat\"],(function(t){var e=t.concat;return function(t,e){var i=Math.max(t._size.length,e._size.length);if(t._size.length===e._size.length&&t._size.every((function(t,r){return t===e._size[r]})))return[t,e];for(var o=r(t._size,i,0),a=r(e._size,i,0),s=[],u=0;u<i;u++)s[u]=Math.max(o[u],a[u]);Qt(o,s),Qt(a,s);var c=t.clone(),f=e.clone();c._size.length<i?c.reshape(r(c._size,i,1)):f._size.length<i&&f.reshape(r(f._size,i,1));for(var l=0;l<i;l++)c._size[l]<s[l]&&(c=n(c,s[l],l)),f._size[l]<s[l]&&(f=n(f,s[l],l));return[c,f]};function r(t,e,r){return[].concat(Tn(Array(e-t.length).fill(r)),Tn(t))}function n(t,r,n){return e.apply(void 0,Tn(Array(r).fill(t)).concat([n]))}}));function Bn(t){return function(t){if(Array.isArray(t))return In(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return In(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return In(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function In(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Pn=te(\"matrixAlgorithmSuite\",[\"typed\",\"matrix\",\"concat\"],(function(t){var e=t.typed,r=t.matrix,n=t.concat,i=Mn({typed:e}),o=Cn({typed:e}),a=Fn({concat:n});return function(t){var n,s=t.elop,u=t.SD||t.DS;s?(n={\"DenseMatrix, DenseMatrix\":function(t,e){return i.apply(void 0,Bn(a(t,e)).concat([s]))},\"Array, Array\":function(t,e){return i.apply(void 0,Bn(a(r(t),r(e))).concat([s])).valueOf()},\"Array, DenseMatrix\":function(t,e){return i.apply(void 0,Bn(a(r(t),e)).concat([s]))},\"DenseMatrix, Array\":function(t,e){return i.apply(void 0,Bn(a(t,r(e))).concat([s]))}},t.SS&&(n[\"SparseMatrix, SparseMatrix\"]=function(e,r){return t.SS.apply(t,Bn(a(e,r)).concat([s,!1]))}),t.DS&&(n[\"DenseMatrix, SparseMatrix\"]=function(e,r){return t.DS.apply(t,Bn(a(e,r)).concat([s,!1]))},n[\"Array, SparseMatrix\"]=function(e,n){return t.DS.apply(t,Bn(a(r(e),n)).concat([s,!1]))}),u&&(n[\"SparseMatrix, DenseMatrix\"]=function(t,e){return u.apply(void 0,Bn(a(e,t)).concat([s,!0]))},n[\"SparseMatrix, Array\"]=function(t,e){return u.apply(void 0,Bn(a(r(e),t)).concat([s,!0]))})):(n={\"DenseMatrix, DenseMatrix\":e.referToSelf((function(t){return function(e,r){return i.apply(void 0,Bn(a(e,r)).concat([t]))}})),\"Array, Array\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,Bn(a(r(e),r(n))).concat([t])).valueOf()}})),\"Array, DenseMatrix\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,Bn(a(r(e),n)).concat([t]))}})),\"DenseMatrix, Array\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,Bn(a(e,r(n))).concat([t]))}}))},t.SS&&(n[\"SparseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(r,n){return t.SS.apply(t,Bn(a(r,n)).concat([e,!1]))}}))),t.DS&&(n[\"DenseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(r,n){return t.DS.apply(t,Bn(a(r,n)).concat([e,!1]))}})),n[\"Array, SparseMatrix\"]=e.referToSelf((function(e){return function(n,i){return t.DS.apply(t,Bn(a(r(n),i)).concat([e,!1]))}}))),u&&(n[\"SparseMatrix, DenseMatrix\"]=e.referToSelf((function(t){return function(e,r){return u.apply(void 0,Bn(a(r,e)).concat([t,!0]))}})),n[\"SparseMatrix, Array\"]=e.referToSelf((function(t){return function(e,n){return u.apply(void 0,Bn(a(r(n),e)).concat([t,!0]))}}))));var c=t.scalar||\"any\";(t.Ds||t.Ss)&&(s?(n[\"DenseMatrix,\"+c]=function(t,e){return o(t,e,s,!1)},n[c+\", DenseMatrix\"]=function(t,e){return o(e,t,s,!0)},n[\"Array,\"+c]=function(t,e){return o(r(t),e,s,!1).valueOf()},n[c+\", Array\"]=function(t,e){return o(r(e),t,s,!0).valueOf()}):(n[\"DenseMatrix,\"+c]=e.referToSelf((function(t){return function(e,r){return o(e,r,t,!1)}})),n[c+\", DenseMatrix\"]=e.referToSelf((function(t){return function(e,r){return o(r,e,t,!0)}})),n[\"Array,\"+c]=e.referToSelf((function(t){return function(e,n){return o(r(e),n,t,!1).valueOf()}})),n[c+\", Array\"]=e.referToSelf((function(t){return function(e,n){return o(r(n),e,t,!0).valueOf()}}))));var f=void 0!==t.sS?t.sS:t.Ss;return s?(t.Ss&&(n[\"SparseMatrix,\"+c]=function(e,r){return t.Ss(e,r,s,!1)}),f&&(n[c+\", SparseMatrix\"]=function(t,e){return f(e,t,s,!0)})):(t.Ss&&(n[\"SparseMatrix,\"+c]=e.referToSelf((function(e){return function(r,n){return t.Ss(r,n,e,!1)}}))),f&&(n[c+\", SparseMatrix\"]=e.referToSelf((function(t){return function(e,r){return f(r,e,t,!0)}})))),s&&s.signatures&&V(n,s.signatures),n}})),Ln=\"equal\",Nn=(te(Ln,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return e(Ln,{\"any, any\":function(t,e){return null===t?null===e:null===e?null===t:void 0===t?void 0===e:void 0===e?void 0===t:r(t,e)}})})),\"largerEq\"),jn=te(Nn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Dn({typed:e}),s=kn({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),c=Pn({typed:e,matrix:n,concat:o}),f=zr({typed:e});return e(Nn,Rn({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t>=e},\"BigNumber, BigNumber\":function(t,e){return t.gte(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return-1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},f,c({SS:s,DS:a,Ss:u}))})),Rn=te(Nn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Nn,{\"number, number\":function(t,e){return t>=e||vt(t,e,r.epsilon)}})})),zn=te(\"matAlgo01xDSid\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,n,i){var o=t._data,a=t._size,s=t._datatype,u=r._values,c=r._index,f=r._ptr,l=r._size,h=r._datatype;if(a.length!==l.length)throw new Ft(a.length,l.length);if(a[0]!==l[0]||a[1]!==l[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+l+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var p,d,m=a[0],g=a[1],y=\"string\"==typeof s&&s===h?s:void 0,v=y?e.find(n,[y,y]):n,b=[];for(p=0;p<m;p++)b[p]=[];var w=[],_=[];for(d=0;d<g;d++){for(var x=d+1,E=f[d],A=f[d+1],D=E;D<A;D++)w[p=c[D]]=i?v(u[D],o[p][d]):v(o[p][d],u[D]),_[p]=x;for(p=0;p<m;p++)_[p]===x?b[p][d]=w[p]:b[p][d]=o[p][d]}return t.createDenseMatrix({data:b,size:[m,g],datatype:y})}})),Un=te(\"matAlgo10xSids\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,r=t.DenseMatrix;return function(t,n,i,o){var a=t._values,s=t._index,u=t._ptr,c=t._size,f=t._datatype;if(!a)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var l,h=c[0],p=c[1],d=i;\"string\"==typeof f&&(l=f,n=e.convert(n,l),d=e.find(i,[l,l]));for(var m=[],g=[],y=[],v=0;v<p;v++){for(var b=v+1,w=u[v],_=u[v+1],x=w;x<_;x++){var E=s[x];g[E]=a[x],y[E]=b}for(var A=0;A<h;A++)0===v&&(m[A]=[]),y[A]===b?m[A][v]=o?d(n,g[A]):d(g[A],n):m[A][v]=n}return new r({data:m,size:[h,p],datatype:l})}}));function Gn(t,e,r,n){if(!(this instanceof Gn))throw new SyntaxError(\"Constructor must be called with the new operator\");this.fn=t,this.count=e,this.min=r,this.max=n,this.message=\"Wrong number of arguments in function \"+t+\" (\"+e+\" provided, \"+r+(null!=n?\"-\"+n:\"\")+\" expected)\",this.stack=(new Error).stack}Gn.prototype=new Error,Gn.prototype.constructor=Error,Gn.prototype.name=\"ArgumentsError\",Gn.prototype.isArgumentsError=!0;var Hn=\"smaller\",qn=te(Hn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Dn({typed:e}),s=kn({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),c=Pn({typed:e,matrix:n,concat:o}),f=zr({typed:e});return e(Hn,Zn({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t<e},\"BigNumber, BigNumber\":function(t,e){return t.lt(e)&&!Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return-1===t.compare(e)},\"Complex, Complex\":function(t,e){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},f,c({SS:s,DS:a,Ss:u}))})),Zn=te(Hn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Hn,{\"number, number\":function(t,e){return t<e&&!vt(t,e,r.epsilon)}})})),Wn=\"unequal\",Yn=(te(Wn,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return e(Wn,{\"any, any\":function(t,e){return null===t?null!==e:null===e?null!==t:void 0===t?void 0!==e:void 0===e?void 0!==t:!r(t,e)}})})),te(\"matAlgo04xSidSid\",[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,r=t.equalScalar;return function(t,n,i){var o=t._values,a=t._index,s=t._ptr,u=t._size,c=t._datatype,f=n._values,l=n._index,h=n._ptr,p=n._size,d=n._datatype;if(u.length!==p.length)throw new Ft(u.length,p.length);if(u[0]!==p[0]||u[1]!==p[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+u+\") must match Matrix B (\"+p+\")\");var m,g=u[0],y=u[1],v=r,b=0,w=i;\"string\"==typeof c&&c===d&&(m=c,v=e.find(r,[m,m]),b=e.convert(0,m),w=e.find(i,[m,m]));var _,x,E,A,D,k=o&&f?[]:void 0,S=[],M=[],C=o&&f?[]:void 0,T=o&&f?[]:void 0,O=[],F=[];for(x=0;x<y;x++){M[x]=S.length;var B=x+1;for(A=s[x],D=s[x+1],E=A;E<D;E++)_=a[E],S.push(_),O[_]=B,C&&(C[_]=o[E]);for(A=h[x],D=h[x+1],E=A;E<D;E++)if(O[_=l[E]]===B){if(C){var I=w(C[_],f[E]);v(I,b)?O[_]=null:C[_]=I}}else S.push(_),F[_]=B,T&&(T[_]=f[E]);if(C&&T)for(E=M[x];E<S.length;)O[_=S[E]]===B?(k[E]=C[_],E++):F[_]===B?(k[E]=T[_],E++):S.splice(E,1)}return M[y]=S.length,t.createSparseMatrix({values:k,index:S,ptr:M,size:[g,y],datatype:m})}}))),Xn=te(\"add\",[\"typed\",\"matrix\",\"addScalar\",\"equalScalar\",\"DenseMatrix\",\"SparseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.matrix,n=t.addScalar,i=t.equalScalar,o=t.DenseMatrix,a=(t.SparseMatrix,t.concat),s=zn({typed:e}),u=Yn({typed:e,equalScalar:i}),c=Un({typed:e,DenseMatrix:o}),f=Pn({typed:e,matrix:r,concat:a});return e(\"add\",{\"any, any\":n,\"any, any, ...any\":e.referToSelf((function(t){return function(e,r,n){for(var i=t(e,r),o=0;o<n.length;o++)i=t(i,n[o]);return i}}))},f({elop:n,DS:s,SS:u,Ss:c}))}));Ot.signature=\"any, any\";var $n=\"number | BigNumber | Fraction | Matrix | Array\";\"\".concat($n,\", \").concat($n,\", ...\").concat($n);var Vn=te(\"ImmutableDenseMatrix\",[\"smaller\",\"DenseMatrix\"],(function(t){var e=t.smaller,r=t.DenseMatrix;function n(t,e){if(!(this instanceof n))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!h(e))throw new Error(\"Invalid datatype: \"+e);if(d(t)||p(t)){var i=new r(t,e);this._data=i._data,this._size=i._size,this._datatype=i._datatype,this._min=null,this._max=null}else if(t&&p(t.data)&&p(t.size))this._data=t.data,this._size=t.size,this._datatype=t.datatype,this._min=void 0!==t.min?t.min:null,this._max=void 0!==t.max?t.max:null;else{if(t)throw new TypeError(\"Unsupported type of data (\"+W(t)+\")\");this._data=[],this._size=[0],this._datatype=e,this._min=null,this._max=null}}return n.prototype=new r,n.prototype.type=\"ImmutableDenseMatrix\",n.prototype.isImmutableDenseMatrix=!0,n.prototype.subset=function(t){switch(arguments.length){case 1:var e=r.prototype.subset.call(this,t);return d(e)?new n({data:e._data,size:e._size,datatype:e._datatype}):e;case 2:case 3:throw new Error(\"Cannot invoke set subset on an Immutable Matrix instance\");default:throw new SyntaxError(\"Wrong number of arguments\")}},n.prototype.set=function(){throw new Error(\"Cannot invoke set on an Immutable Matrix instance\")},n.prototype.resize=function(){throw new Error(\"Cannot invoke resize on an Immutable Matrix instance\")},n.prototype.reshape=function(){throw new Error(\"Cannot invoke reshape on an Immutable Matrix instance\")},n.prototype.clone=function(){return new n({data:X(this._data),size:X(this._size),datatype:this._datatype})},n.prototype.toJSON=function(){return{mathjs:\"ImmutableDenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},n.fromJSON=function(t){return new n(t)},n.prototype.swapRows=function(){throw new Error(\"Cannot invoke swapRows on an Immutable Matrix instance\")},n.prototype.min=function(){if(null===this._min){var t=null;this.forEach((function(r){(null===t||e(r,t))&&(t=r)})),this._min=null!==t?t:void 0}return this._min},n.prototype.max=function(){if(null===this._max){var t=null;this.forEach((function(r){(null===t||e(t,r))&&(t=r)})),this._max=null!==t?t:void 0}return this._max},n}),{isClass:!0}),Jn=te(\"Index\",[\"ImmutableDenseMatrix\",\"getMatrixDataType\"],(function(t){var e=t.ImmutableDenseMatrix,r=t.getMatrixDataType;function n(t){if(!(this instanceof n))throw new SyntaxError(\"Constructor must be called with the new operator\");this._dimensions=[],this._sourceSize=[],this._isScalar=!0;for(var e=0,o=arguments.length;e<o;e++){var a=arguments[e],s=p(a),u=d(a),c=null;if(v(a))this._dimensions.push(a),this._isScalar=!1;else if(s||u){var f=void 0;\"boolean\"===r(a)?(s&&(f=i(Qn(a).valueOf())),u&&(f=i(Qn(a._data).valueOf())),c=a.valueOf().length):f=i(a.valueOf()),this._dimensions.push(f);var l=f.size();1===l.length&&1===l[0]&&null===c||(this._isScalar=!1)}else if(\"number\"==typeof a)this._dimensions.push(i([a]));else{if(\"string\"!=typeof a)throw new TypeError(\"Dimension must be an Array, Matrix, number, string, or Range\");this._dimensions.push(a)}this._sourceSize.push(c)}}function i(t){for(var r=0,n=t.length;r<n;r++)if(\"number\"!=typeof t[r]||!it(t[r]))throw new TypeError(\"Index parameters must be positive integer numbers\");return new e(t)}return n.prototype.type=\"Index\",n.prototype.isIndex=!0,n.prototype.clone=function(){var t=new n;return t._dimensions=X(this._dimensions),t._isScalar=this._isScalar,t._sourceSize=this._sourceSize,t},n.create=function(t){var e=new n;return n.apply(e,t),e},n.prototype.size=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?1:n.size()[0]}return t},n.prototype.max=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?n:n.max()}return t},n.prototype.min=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t[e]=\"string\"==typeof n?n:n.min()}return t},n.prototype.forEach=function(t){for(var e=0,r=this._dimensions.length;e<r;e++)t(this._dimensions[e],e,this)},n.prototype.dimension=function(t){return this._dimensions[t]||null},n.prototype.isObjectProperty=function(){return 1===this._dimensions.length&&\"string\"==typeof this._dimensions[0]},n.prototype.getObjectProperty=function(){return this.isObjectProperty()?this._dimensions[0]:null},n.prototype.isScalar=function(){return this._isScalar},n.prototype.toArray=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];t.push(\"string\"==typeof n?n:n.toArray())}return t},n.prototype.valueOf=n.prototype.toArray,n.prototype.toString=function(){for(var t=[],e=0,r=this._dimensions.length;e<r;e++){var n=this._dimensions[e];\"string\"==typeof n?t.push(JSON.stringify(n)):t.push(n.toString())}return\"[\"+t.join(\", \")+\"]\"},n.prototype.toJSON=function(){return{mathjs:\"Index\",dimensions:this._dimensions}},n.fromJSON=function(t){return n.create(t.dimensions)},n}),{isClass:!0});function Qn(t){var e=[];return t.forEach((function(t,r){t&&e.push(r)})),e}var Kn=\"larger\",ti=te(Kn,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Dn({typed:e}),s=kn({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),c=Pn({typed:e,matrix:n,concat:o}),f=zr({typed:e});return e(Kn,ei({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t>e},\"BigNumber, BigNumber\":function(t,e){return t.gt(e)&&!Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return 1===t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},f,c({SS:s,DS:a,Ss:u}))})),ei=te(Kn,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(Kn,{\"number, number\":function(t,e){return t>e&&!vt(t,e,r.epsilon)}})}));r(22);var ri=\"smallerEq\",ni=te(ri,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.DenseMatrix,o=t.concat,a=Dn({typed:e}),s=kn({typed:e,DenseMatrix:i}),u=Sn({typed:e,DenseMatrix:i}),c=Pn({typed:e,matrix:n,concat:o}),f=zr({typed:e});return e(ri,ii({typed:e,config:r}),{\"boolean, boolean\":function(t,e){return t<=e},\"BigNumber, BigNumber\":function(t,e){return t.lte(e)||Rr(t,e,r.epsilon)},\"Fraction, Fraction\":function(t,e){return 1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},f,c({SS:s,DS:a,Ss:u}))})),ii=te(ri,[\"typed\",\"config\"],(function(t){var e=t.typed,r=t.config;return e(ri,{\"number, number\":function(t,e){return t<=e||vt(t,e,r.epsilon)}})})),oi=\"range\",ai=te(oi,[\"typed\",\"config\",\"?matrix\",\"?bignumber\",\"smaller\",\"smallerEq\",\"larger\",\"largerEq\",\"add\",\"isPositive\"],(function(t){var e=t.typed,r=t.config,n=t.matrix,i=t.bignumber,o=t.smaller,a=t.smallerEq,s=t.larger,u=t.largerEq,c=t.add,f=t.isPositive;return e(oi,{string:h,\"string, boolean\":h,\"number, number\":function(t,e){return l(p(t,e,1,!1))},\"number, number, number\":function(t,e,r){return l(p(t,e,r,!1))},\"number, number, boolean\":function(t,e,r){return l(p(t,e,1,r))},\"number, number, number, boolean\":function(t,e,r,n){return l(p(t,e,r,n))},\"BigNumber, BigNumber\":function(t,e){return l(p(t,e,new(0,t.constructor)(1),!1))},\"BigNumber, BigNumber, BigNumber\":function(t,e,r){return l(p(t,e,r,!1))},\"BigNumber, BigNumber, boolean\":function(t,e,r){return l(p(t,e,new(0,t.constructor)(1),r))},\"BigNumber, BigNumber, BigNumber, boolean\":function(t,e,r,n){return l(p(t,e,r,n))},\"Unit, Unit, Unit\":function(t,e,r){return l(p(t,e,r,!1))},\"Unit, Unit, Unit, boolean\":function(t,e,r,n){return l(p(t,e,r,n))}});function l(t){return\"Matrix\"===r.matrix?n?n(t):wn():t}function h(t,e){var n=function(t){var e=t.split(\":\"),r=e.map((function(t){return Number(t)}));if(r.some((function(t){return isNaN(t)})))return null;switch(r.length){case 2:return{start:r[0],end:r[1],step:1};case 3:return{start:r[0],end:r[2],step:r[1]};default:return null}}(t);if(!n)throw new SyntaxError('String \"'+t+'\" is no valid range');return\"BigNumber\"===r.number?(void 0===i&&bn(),l(p(i(n.start),i(n.end),i(n.step)))):l(p(n.start,n.end,n.step,e))}function p(t,e,r,n){for(var i=[],l=f(r)?n?a:o:n?u:s,h=t;l(h,e);)i.push(h),h=c(h,r);return i}})),si=te(\"row\",[\"typed\",\"Index\",\"matrix\",\"range\"],(function(t){var e=t.typed,r=t.Index,n=t.matrix,i=t.range;return e(\"row\",{\"Matrix, number\":o,\"Array, number\":function(t,e){return o(n(X(t)),e).valueOf()}});function o(t,e){if(2!==t.size().length)throw new Error(\"Only two dimensional matrix is supported\");Rt(e,t.size()[0]);var o=i(0,t.size()[1]),a=new r(e,o),s=t.subset(a);return d(s)?s:n([[s]])}}));r(44);var ui=re({config:et}),ci=ae({}),fi=ge({}),li=ye({}),hi=xe({Matrix:li}),pi=Re({BigNumber:ui,Complex:ci,DenseMatrix:hi,Fraction:fi}),di=Sr({typed:pi}),mi=Mr({BigNumber:ui,typed:pi}),gi=Gr({config:et,typed:pi}),yi=qr({typed:pi}),vi=Wr({typed:pi}),bi=Kr({typed:pi}),wi=gn({Matrix:li,equalScalar:gi,typed:pi}),_i=vn({DenseMatrix:hi,Matrix:li,SparseMatrix:wi,typed:pi}),xi=xn({matrix:_i,typed:pi}),Ei=An({isInteger:vi,matrix:_i,typed:pi}),Ai=jn({DenseMatrix:hi,concat:Ei,config:et,matrix:_i,typed:pi}),Di=qn({DenseMatrix:hi,concat:Ei,config:et,matrix:_i,typed:pi}),ki=Xn({DenseMatrix:hi,SparseMatrix:wi,addScalar:di,concat:Ei,equalScalar:gi,matrix:_i,typed:pi}),Si=Jn({ImmutableDenseMatrix:Vn({DenseMatrix:hi,smaller:Di}),getMatrixDataType:yi}),Mi=ti({DenseMatrix:hi,concat:Ei,config:et,matrix:_i,typed:pi}),Ci=ni({DenseMatrix:hi,concat:Ei,config:et,matrix:_i,typed:pi}),Ti=ai({bignumber:mi,matrix:_i,add:ki,config:et,isPositive:bi,larger:Mi,largerEq:Ai,smaller:Di,smallerEq:Ci,typed:pi}),Oi=si({Index:Si,matrix:_i,range:Ti,typed:pi})},function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return f}));var n=r(3);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new F(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&n.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,s,u){var c=p(t[o],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==i(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var o;a(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(i(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function a(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,u,\"next\",t)}function u(t){a(o,n,i,s,u,\"throw\",t)}s(void 0)}))}}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t,e){if(\"object\"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=i(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==i(e)?e:e+\"\"}var f=function(){return t=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var r=this;r.loadStatus=\"0\",r.config=null,r.reload=e.reload||!1,r._getConfig()},e=[{key:\"getConfig\",value:(l=s(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.waitLoadSuccess(\"waiting...\");case 3:return t.abrupt(\"return\",e.config);case 4:case\"end\":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:\"_getConfig\",value:(f=s(o().mark((function t(){var e,r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this,r=0;case 2:if(!(r<1e3)){t.next=21;break}return t.prev=3,i={type:\"O7l\",reload:e.reload},t.next=7,chrome.runtime.sendMessage(chrome.runtime.id,i);case 7:return a=t.sent,e.config=a.data,e.loadStatus=\"2\",t.abrupt(\"break\",21);case 13:return t.prev=13,t.t0=t.catch(3),t.next=18,n.a.Bi9dF(100);case 18:r++,t.next=2;break;case 21:case\"end\":return t.stop()}}),t,this,[[3,13]])}))),function(){return f.apply(this,arguments)})},{key:\"reloadConfig\",value:(c=s(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=this).loadStatus=\"1\",t.next=4,e._getConfig();case 4:case\"end\":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:\"sendMessageToBack\",value:(a=s(o().mark((function t(e){var r,i,a,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.next=3,r.waitLoadSuccess(e.action);case 3:i=void 0,a=5,s=0;case 7:if(!(s<a)){t.next=26;break}return t.prev=9,t.next=12,chrome.runtime.sendMessage(chrome.runtime.id,e);case 12:if(!(i=t.sent)||\"0000\"!==i.code){t.next=15;break}return t.abrupt(\"break\",26);case 15:t.next=23;break;case 18:return t.prev=18,t.t0=t.catch(9),t.next=23,n.a.Bi9dF(100);case 23:s++,t.next=7;break;case 26:if(!i){t.next=30;break}return t.abrupt(\"return\",i);case 30:return t.abrupt(\"return\",{code:\"0001\",status:\"fail\",message:\"unknown error\"});case 31:case\"end\":return t.stop()}}),t,this,[[9,18]])}))),function(t){return a.apply(this,arguments)})},{key:\"waitLoadSuccess\",value:(i=s(o().mark((function t(e){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this;case 1:if(\"2\"==r.loadStatus){t.next=7;break}return t.next=5,n.a.Bi9dF(100);case 5:t.next=1;break;case 7:case\"end\":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})}],e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,i,a,c,f,l}()},,,,,,,,,,,,,function(t,e,r){var n,i;r(9),n=[r(402)],void 0===(i=function(t){return function(){var e,r,n,i=0,o=\"error\",a=\"info\",s=\"success\",u=\"warning\",c={clear:function(r,n){var i=d();e||f(i),l(r,i,n)||function(r){for(var n=e.children(),i=n.length-1;i>=0;i--)l(t(n[i]),r)}(i)},remove:function(r){var n=d();e||f(n),r&&0===t(\":focus\",r).length?m(r):e.children().length&&e.remove()},error:function(t,e,r){return p({type:o,iconClass:d().iconClasses.error,message:t,optionsOverride:r,title:e})},getContainer:f,info:function(t,e,r){return p({type:a,iconClass:d().iconClasses.info,message:t,optionsOverride:r,title:e})},options:{},subscribe:function(t){r=t},success:function(t,e,r){return p({type:s,iconClass:d().iconClasses.success,message:t,optionsOverride:r,title:e})},version:\"2.1.4\",warning:function(t,e,r){return p({type:u,iconClass:d().iconClasses.warning,message:t,optionsOverride:r,title:e})}};return c;function f(r,n){return r||(r=d()),(e=t(\"#\"+r.containerId)).length||n&&(e=function(r){return(e=t(\"<div/>\").attr(\"id\",r.containerId).addClass(r.positionClass)).appendTo(t(r.target)),e}(r)),e}function l(e,r,n){var i=!(!n||!n.force)&&n.force;return!(!e||!i&&0!==t(\":focus\",e).length||(e[r.hideMethod]({duration:r.hideDuration,easing:r.hideEasing,complete:function(){m(e)}}),0))}function h(t){r&&r(t)}function p(r){var o=d(),a=r.iconClass||o.iconClass;if(void 0!==r.optionsOverride&&(o=t.extend(o,r.optionsOverride),a=r.optionsOverride.iconClass||a),!function(t,e){if(t.preventDuplicates){if(e.message===n)return!0;n=e.message}return!1}(o,r)){i++,e=f(o,!0);var s=null,u=t(\"<div/>\"),c=t(\"<div/>\"),l=t(\"<div/>\"),p=t(\"<div/>\"),g=t(o.closeHtml),y={intervalId:null,hideEta:null,maxHideTime:null},v={toastId:i,state:\"visible\",startTime:new Date,options:o,map:r};return r.iconClass&&u.addClass(o.toastClass).addClass(a),function(){if(r.title){var t=r.title;o.escapeHtml&&(t=b(r.title)),c.append(t).addClass(o.titleClass),u.append(c)}}(),function(){if(r.message){var t=r.message;o.escapeHtml&&(t=b(r.message)),l.append(t).addClass(o.messageClass),u.append(l)}}(),o.closeButton&&(g.addClass(o.closeClass).attr(\"role\",\"button\"),u.prepend(g)),o.progressBar&&(p.addClass(o.progressClass),u.prepend(p)),o.rtl&&u.addClass(\"rtl\"),o.newestOnTop?e.prepend(u):e.append(u),function(){var t=\"\";switch(r.iconClass){case\"toast-success\":case\"toast-info\":t=\"polite\";break;default:t=\"assertive\"}u.attr(\"aria-live\",t)}(),u.hide(),u[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(s=setTimeout(w,o.timeOut),y.maxHideTime=parseFloat(o.timeOut),y.hideEta=(new Date).getTime()+y.maxHideTime,o.progressBar&&(y.intervalId=setInterval(E,10))),o.closeOnHover&&u.hover(x,_),!o.onclick&&o.tapToDismiss&&u.click(w),o.closeButton&&g&&g.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),o.onCloseClick&&o.onCloseClick(t),w(!0)})),o.onclick&&u.click((function(t){o.onclick(t),w()})),h(v),o.debug&&console,u}function b(t){return null==t&&(t=\"\"),t.replace(/&/g,\"&amp;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#39;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\")}function w(e){var r=e&&!1!==o.closeMethod?o.closeMethod:o.hideMethod,n=e&&!1!==o.closeDuration?o.closeDuration:o.hideDuration,i=e&&!1!==o.closeEasing?o.closeEasing:o.hideEasing;if(!t(\":focus\",u).length||e)return clearTimeout(y.intervalId),u[r]({duration:n,easing:i,complete:function(){m(u),clearTimeout(s),o.onHidden&&\"hidden\"!==v.state&&o.onHidden(),v.state=\"hidden\",v.endTime=new Date,h(v)}})}function _(){(o.timeOut>0||o.extendedTimeOut>0)&&(s=setTimeout(w,o.extendedTimeOut),y.maxHideTime=parseFloat(o.extendedTimeOut),y.hideEta=(new Date).getTime()+y.maxHideTime)}function x(){clearTimeout(s),y.hideEta=0,u.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})}function E(){var t=(y.hideEta-(new Date).getTime())/y.maxHideTime*100;p.width(t+\"%\")}}function d(){return t.extend({},{tapToDismiss:!0,toastClass:\"toast\",containerId:\"toast-container\",debug:!1,showMethod:\"fadeIn\",showDuration:300,showEasing:\"swing\",onShown:void 0,hideMethod:\"fadeOut\",hideDuration:1e3,hideEasing:\"swing\",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:\"toast-error\",info:\"toast-info\",success:\"toast-success\",warning:\"toast-warning\"},iconClass:\"toast-info\",positionClass:\"toast-top-right\",timeOut:5e3,titleClass:\"toast-title\",messageClass:\"toast-message\",escapeHtml:!1,target:\"body\",closeHtml:'<button type=\"button\">&times;</button>',closeClass:\"toast-close-button\",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:\"toast-progress\",rtl:!1},c.options)}function m(t){e||(e=f()),t.is(\":visible\")||(t.remove(),t=null,0===e.children().length&&(e.remove(),n=void 0))}}()}.apply(e,n))||(t.exports=i)},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){var n,i,o;function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function f(t){var e=function(t,e){if(\"object\"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=u(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==u(e)?e:e+\"\"}function l(t,e,r){return e=g(e),function(t,e){if(e&&(\"object\"===u(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,d()?Reflect.construct(e,r||[],g(t).constructor):e.apply(t,r))}function h(){return h=\"undefined\"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},h.apply(this,arguments)}function p(t){var e=\"function\"==typeof Map?new Map:void 0;return p=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(d())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&m(i,r.prototype),i}(t,arguments,g(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),m(r,t)},p(t)}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}i=[t],n=function(t){\"use strict\";\"undefined\"==typeof browser||Object.getPrototypeOf(browser)!==Object.prototype?t.exports=function(){var t={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getBrowserInfo:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(0===Object.keys(t).length)throw new Error(\"api-metadata.json has not been included in browser-polyfill\");var e=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(r=l(this,e,[n])).createItem=t,r}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&m(t,e)}(e,t),r=e,(n=[{key:\"get\",value:function(t){return this.has(t)||this.set(t,this.createItem(t)),h(g(e.prototype),\"get\",this).call(this,t)}}])&&c(r.prototype,n),i&&c(r,i),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,n,i}(p(WeakMap)),r=function(t){return t&&\"object\"==u(t)&&\"function\"==typeof t.then},n=function(t,e){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];chrome.runtime.lastError?t.reject(chrome.runtime.lastError):e.singleCallbackArg||1>=n.length?t.resolve(n[0]):t.resolve(n)}},i=function(t){return 1==t?\"argument\":\"arguments\"},o=function(t,e){return function(r){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];if(a.length<e.minArgs)throw new Error(\"Expected at least \".concat(e.minArgs,\" \").concat(i(e.minArgs),\" for \").concat(t,\"(), got \").concat(a.length));if(a.length>e.maxArgs)throw new Error(\"Expected at most \".concat(e.maxArgs,\" \").concat(i(e.maxArgs),\" for \").concat(t,\"(), got \").concat(a.length));return new Promise((function(i,o){if(e.fallbackToNoCallback)try{r[t].apply(r,a.concat([n({resolve:i,reject:o},e)]))}catch(n){\"\".concat(t,\" API method doesn't seem to support the callback parameter, \"),r[t].apply(r,a),e.fallbackToNoCallback=!1,e.noCallback=!0,i()}else e.noCallback?(r[t].apply(r,a),i()):r[t].apply(r,a.concat([n({resolve:i,reject:o},e)]))}))}},s=function(t,e,r){return new Proxy(e,{apply:function(e,n,i){return r.call.apply(r,[n,t].concat(a(i)))}})},f=Function.call.bind(Object.prototype.hasOwnProperty),d=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(null),a={has:function(t,r){return r in e||r in i},get:function(a,c){if(c in i)return i[c];if(c in e){var l=e[c];if(\"function\"==typeof l)if(\"function\"==typeof r[c])l=s(e,e[c],r[c]);else if(f(n,c)){var h=o(c,n[c]);l=s(e,e[c],h)}else l=l.bind(e);else{if(\"object\"!=u(l)||null===l||!f(r,c)&&!f(n,c))return Object.defineProperty(i,c,{configurable:!0,enumerable:!0,get:function(){return e[c]},set:function(t){e[c]=t}}),l;l=t(l,r[c],n[c])}return i[c]=l,l}},set:function(t,r,n){return r in i?i[r]=n:e[r]=n,!0},defineProperty:function(t,e,r){return Reflect.defineProperty(i,e,r)},deleteProperty:function(t,e){return Reflect.deleteProperty(i,e)}},c=Object.create(e);return new Proxy(c,a)},y=function(t){return{addListener:function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];e.addListener.apply(e,[t.get(r)].concat(i))},hasListener:function(e,r){return e.hasListener(t.get(r))},removeListener:function(e,r){e.removeListener(t.get(r))}}},v=!1,b=new e((function(t){return\"function\"==typeof t?function(e,n,i){var o,a,s=!1,u=new Promise((function(t){o=function(e){v||((new Error).stack,v=!0),s=!0,t(e)}}));try{a=t(e,n,o)}catch(t){a=Promise.reject(t)}var c=!0!==a&&r(a);if(!0!==a&&!c&&!s)return!1;var f=function(t){t.then((function(t){i(t)}),(function(t){var e;e=t&&(t instanceof Error||\"string\"==typeof t.message)?t.message:\"An unexpected error occurred\",i({__mozWebExtensionPolyfillReject__:!0,message:e})})).catch((function(t){}))};return f(c?a:u),!0}:t})),w=function(t,e){var r=t.reject,n=t.resolve;chrome.runtime.lastError?\"The message port closed before a response was received.\"===chrome.runtime.lastError.message?n():r(chrome.runtime.lastError):e&&e.__mozWebExtensionPolyfillReject__?r(new Error(e.message)):n(e)},_=function(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++)o[a-3]=arguments[a];if(o.length<e.minArgs)throw new Error(\"Expected at least \".concat(e.minArgs,\" \").concat(i(e.minArgs),\" for \").concat(t,\"(), got \").concat(o.length));if(o.length>e.maxArgs)throw new Error(\"Expected at most \".concat(e.maxArgs,\" \").concat(i(e.maxArgs),\" for \").concat(t,\"(), got \").concat(o.length));return new Promise((function(t,e){var n=w.bind(null,{resolve:t,reject:e});o.push(n),r.sendMessage.apply(r,o)}))},x={runtime:{onMessage:y(b),onMessageExternal:y(b),sendMessage:_.bind(null,\"sendMessage\",{minArgs:1,maxArgs:3})},tabs:{sendMessage:_.bind(null,\"sendMessage\",{minArgs:2,maxArgs:3})}},E={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return t.privacy={network:{networkPredictionEnabled:E,webRTCIPHandlingPolicy:E},services:{passwordSavingEnabled:E},websites:{hyperlinkAuditingEnabled:E,referrersEnabled:E}},d(chrome,x,t)}():t.exports=browser},void 0===(o=\"function\"==typeof n?n.apply(e,i):n)||(t.exports=o)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){\"use strict\";r.d(e,\"a\",(function(){return c}));r(65),r(233);function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",c=s.asyncIterator||\"@@asyncIterator\",f=s.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new F(n||[]);return a(o,\"_invoke\",{value:M(t,r,s)}),o}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&o.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,s,u){var c=p(t[i],t,a);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==n(l)&&o.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;a(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+\" is not iterable\")}return w.prototype=_,a(D,\"constructor\",{value:_,configurable:!0}),a(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),c=o.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var i=n;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,\"next\",t)}function u(t){o(a,n,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}var c=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.app=e},e=[{key:\"init\",value:(u=a(i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,e._register();case 3:case\"end\":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:\"_register\",value:(o=a(i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.app.getConfig();case 3:return t.sent,t.next=6,e.RPA_FUNC_PageWatcher_watchPaySuccess();case 6:case\"end\":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:\"RPA_FUNC_PageWatcher_watchPaySuccess\",value:(n=a(i().mark((function t(){var e,r,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this,\"/solver/pay/result\"!==window.location.pathname){t.next=8;break}return r={type:\"Qak\"},t.next=6,e.app.sendMessageToBack(r);case 6:n=\"chrome-extension://\".concat(chrome.runtime.id,\"/popup/popup.html\"),window.location.href=n;case 8:case\"end\":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}],e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,n,o,u}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){\"use strict\";r.r(e),function(t){var e=r(267),n=r.n(e),i=r(321),o=r(254);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o=\"function\"==typeof Symbol?Symbol:{},u=o.iterator||\"@@iterator\",c=o.asyncIterator||\"@@asyncIterator\",f=o.toStringTag||\"@@toStringTag\";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new F(n||[]);return i(a,\"_invoke\",{value:M(t,r,s)}),a}function p(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=h;var d=\"suspendedStart\",m=\"suspendedYield\",g=\"executing\",y=\"completed\",v={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(B([])));A&&A!==r&&n.call(A,u)&&(x=A);var D=_.prototype=b.prototype=Object.create(x);function k(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,s,u){var c=p(t[i],t,o);if(\"throw\"!==c.type){var f=c.arg,l=f.value;return l&&\"object\"==a(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var o;i(this,\"_invoke\",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function M(e,r,n){var i=d;return function(o,a){if(i===g)throw Error(\"Generator is already running\");if(i===y){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);i=g;var c=p(e,r,n);if(\"normal\"===c.type){if(i=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(i=y,n.method=\"throw\",n.arg=c.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,C(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var o=p(i,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(a(e)+\" is not iterable\")}return w.prototype=_,i(D,\"constructor\",{value:_,configurable:!0}),i(_,\"constructor\",{value:w,configurable:!0}),w.displayName=l(_,f,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===w||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,\"GeneratorFunction\")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(D),l(D,f,\"Generator\"),l(D,u,(function(){return this})),l(D,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type=\"throw\",s.arg=e,r.next=n,i&&(r.method=\"next\",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function u(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,\"next\",t)}function s(t){u(o,n,i,a,s,\"throw\",t)}a(void 0)}))}}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t,e){if(\"object\"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==a(e)?e:e+\"\"}t.browser=r(291),n.a.options={closeButton:!0,positionClass:\"toast-top-center\"};var h=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var e=this;e.pageWatcher=new i.a(e),e.config=void 0,e.messagingStub=new o.a},e=[{key:\"init\",value:(h=c(s().mark((function t(){var e;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.pageWatcher.init();case 3:case\"end\":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)})},{key:\"getConfig\",value:(l=c(s().mark((function t(){var e;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.messagingStub.getConfig();case 3:return t.abrupt(\"return\",t.sent);case 4:case\"end\":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:\"sendMessageToBack\",value:(u=c(s().mark((function t(e){var r;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.next=3,r.messagingStub.sendMessageToBack(e);case 3:return t.abrupt(\"return\",t.sent);case 4:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:\"start\",value:(a=c(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:\"showSuccessMessage\",value:function(t,e){n.a.success(t),e&&setTimeout((function(){e()}),1e3)}},{key:\"showErrorMessage\",value:function(t,e){n.a.error(t)}}],e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,r,a,u,l,h}();c(s().mark((function t(){var e;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new h,t.next=3,e.init();case 3:return t.next=5,e.start();case 5:case\"end\":return t.stop()}}),t)})))()}.call(this,r(10))},function(t,e,r){(function(t){var r;function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}!function(e,r){\"use strict\";\"object\"===n(t)&&\"object\"===n(t.exports)?t.exports=e.document?r(e,!0):function(t){if(!t.document)throw new Error(\"jQuery requires a window with a document\");return r(t)}:r(e)}(\"undefined\"!=typeof window?window:this,(function(i,o){\"use strict\";var a=[],s=Object.getPrototypeOf,u=a.slice,c=a.flat?function(t){return a.flat.call(t)}:function(t){return a.concat.apply([],t)},f=a.push,l=a.indexOf,h={},p=h.toString,d=h.hasOwnProperty,m=d.toString,g=m.call(Object),y={},v=function(t){return\"function\"==typeof t&&\"number\"!=typeof t.nodeType&&\"function\"!=typeof t.item},b=function(t){return null!=t&&t===t.window},w=i.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,r){var n,i,o=(r=r||w).createElement(\"script\");if(o.text=t,e)for(n in _)(i=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,i);r.head.appendChild(o).parentNode.removeChild(o)}function E(t){return null==t?t+\"\":\"object\"===n(t)||\"function\"==typeof t?h[p.call(t)]||\"object\":n(t)}var A=\"3.7.1\",D=/HTML$/i,k=function t(e,r){return new t.fn.init(e,r)};function S(t){var e=!!t&&\"length\"in t&&t.length,r=E(t);return!v(t)&&!b(t)&&(\"array\"===r||0===e||\"number\"==typeof e&&e>0&&e-1 in t)}function M(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}k.fn=k.prototype={jquery:A,constructor:k,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return k.each(this,t)},map:function(t){return this.pushStack(k.map(this,(function(e,r){return t.call(e,r,e)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,r=+t+(t<0?e:0);return this.pushStack(r>=0&&r<e?[this[r]]:[])},end:function(){return this.prevObject||this.constructor()},push:f,sort:a.sort,splice:a.splice},k.extend=k.fn.extend=function(){var t,e,r,i,o,a,s=arguments[0]||{},u=1,c=arguments.length,f=!1;for(\"boolean\"==typeof s&&(f=s,s=arguments[u]||{},u++),\"object\"===n(s)||v(s)||(s={}),u===c&&(s=this,u--);u<c;u++)if(null!=(t=arguments[u]))for(e in t)i=t[e],\"__proto__\"!==e&&s!==i&&(f&&i&&(k.isPlainObject(i)||(o=Array.isArray(i)))?(r=s[e],a=o&&!Array.isArray(r)?[]:o||k.isPlainObject(r)?r:{},o=!1,s[e]=k.extend(f,a,i)):void 0!==i&&(s[e]=i));return s},k.extend({expando:\"jQuery\"+(A+Math.random()).replace(/\\D/g,\"\"),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,r;return!(!t||\"[object Object]\"!==p.call(t))&&(!(e=s(t))||\"function\"==typeof(r=d.call(e,\"constructor\")&&e.constructor)&&m.call(r)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,r){x(t,{nonce:e&&e.nonce},r)},each:function(t,e){var r,n=0;if(S(t))for(r=t.length;n<r&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},text:function(t){var e,r=\"\",n=0,i=t.nodeType;if(!i)for(;e=t[n++];)r+=k.text(e);return 1===i||11===i?t.textContent:9===i?t.documentElement.textContent:3===i||4===i?t.nodeValue:r},makeArray:function(t,e){var r=e||[];return null!=t&&(S(Object(t))?k.merge(r,\"string\"==typeof t?[t]:t):f.call(r,t)),r},inArray:function(t,e,r){return null==e?-1:l.call(e,t,r)},isXMLDoc:function(t){var e=t&&t.namespaceURI,r=t&&(t.ownerDocument||t).documentElement;return!D.test(e||r&&r.nodeName||\"HTML\")},merge:function(t,e){for(var r=+e.length,n=0,i=t.length;n<r;n++)t[i++]=e[n];return t.length=i,t},grep:function(t,e,r){for(var n=[],i=0,o=t.length,a=!r;i<o;i++)!e(t[i],i)!==a&&n.push(t[i]);return n},map:function(t,e,r){var n,i,o=0,a=[];if(S(t))for(n=t.length;o<n;o++)null!=(i=e(t[o],o,r))&&a.push(i);else for(o in t)null!=(i=e(t[o],o,r))&&a.push(i);return c(a)},guid:1,support:y}),\"function\"==typeof Symbol&&(k.fn[Symbol.iterator]=a[Symbol.iterator]),k.each(\"Boolean Number String Function Array Date RegExp Object Error Symbol\".split(\" \"),(function(t,e){h[\"[object \"+e+\"]\"]=e.toLowerCase()}));var C=a.pop,T=a.sort,O=a.splice,F=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",B=new RegExp(\"^\"+F+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+F+\"+$\",\"g\");k.contains=function(t,e){var r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(t.contains?t.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))};var I=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\x80-\\uFFFF\\w-]/g;function P(t,e){return e?\"\\0\"===t?\"�\":t.slice(0,-1)+\"\\\\\"+t.charCodeAt(t.length-1).toString(16)+\" \":\"\\\\\"+t}k.escapeSelector=function(t){return(t+\"\").replace(I,P)};var L=w,N=f;!function(){var t,e,r,n,o,s,c,f,h,p,m=N,g=k.expando,v=0,b=0,w=tt(),_=tt(),x=tt(),E=tt(),A=function(t,e){return t===e&&(o=!0),0},D=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",S=\"(?:\\\\\\\\[\\\\da-fA-F]{1,6}\"+F+\"?|\\\\\\\\[^\\\\r\\\\n\\\\f]|[\\\\w-]|[^\\0-\\\\x7f])+\",I=\"\\\\[\"+F+\"*(\"+S+\")(?:\"+F+\"*([*^$|!~]?=)\"+F+\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+S+\"))|)\"+F+\"*\\\\]\",P=\":(\"+S+\")(?:\\\\((('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+I+\")*)|.*)\\\\)|)\",j=new RegExp(F+\"+\",\"g\"),R=new RegExp(\"^\"+F+\"*,\"+F+\"*\"),z=new RegExp(\"^\"+F+\"*([>+~]|\"+F+\")\"+F+\"*\"),U=new RegExp(F+\"|>\"),G=new RegExp(P),H=new RegExp(\"^\"+S+\"$\"),q={ID:new RegExp(\"^#(\"+S+\")\"),CLASS:new RegExp(\"^\\\\.(\"+S+\")\"),TAG:new RegExp(\"^(\"+S+\"|[*])\"),ATTR:new RegExp(\"^\"+I),PSEUDO:new RegExp(\"^\"+P),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+F+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+F+\"*(?:([+-]|)\"+F+\"*(\\\\d+)|))\"+F+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+D+\")$\",\"i\"),needsContext:new RegExp(\"^\"+F+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+F+\"*((?:-\\\\d)?\\\\d*)\"+F+\"*\\\\)|)(?=[^-]|$)\",\"i\")},Z=/^(?:input|select|textarea|button)$/i,W=/^h\\d$/i,Y=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,X=/[+~]/,$=new RegExp(\"\\\\\\\\[\\\\da-fA-F]{1,6}\"+F+\"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\",\"g\"),V=function(t,e){var r=\"0x\"+t.slice(1)-65536;return e||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},J=function(){ut()},Q=ht((function(t){return!0===t.disabled&&M(t,\"fieldset\")}),{dir:\"parentNode\",next:\"legend\"});try{m.apply(a=u.call(L.childNodes),L.childNodes),a[L.childNodes.length].nodeType}catch(t){m={apply:function(t,e){N.apply(t,u.call(e))},call:function(t){N.apply(t,u.call(arguments,1))}}}function K(t,e,r,n){var i,o,a,u,c,l,p,d=e&&e.ownerDocument,v=e?e.nodeType:9;if(r=r||[],\"string\"!=typeof t||!t||1!==v&&9!==v&&11!==v)return r;if(!n&&(ut(e),e=e||s,f)){if(11!==v&&(c=Y.exec(t)))if(i=c[1]){if(9===v){if(!(a=e.getElementById(i)))return r;if(a.id===i)return m.call(r,a),r}else if(d&&(a=d.getElementById(i))&&K.contains(e,a)&&a.id===i)return m.call(r,a),r}else{if(c[2])return m.apply(r,e.getElementsByTagName(t)),r;if((i=c[3])&&e.getElementsByClassName)return m.apply(r,e.getElementsByClassName(i)),r}if(!(E[t+\" \"]||h&&h.test(t))){if(p=t,d=e,1===v&&(U.test(t)||z.test(t))){for((d=X.test(t)&&st(e.parentNode)||e)==e&&y.scope||((u=e.getAttribute(\"id\"))?u=k.escapeSelector(u):e.setAttribute(\"id\",u=g)),o=(l=ft(t)).length;o--;)l[o]=(u?\"#\"+u:\":scope\")+\" \"+lt(l[o]);p=l.join(\",\")}try{return m.apply(r,d.querySelectorAll(p)),r}catch(e){E(t,!0)}finally{u===g&&e.removeAttribute(\"id\")}}}return vt(t.replace(B,\"$1\"),e,r,n)}function tt(){var t=[];return function r(n,i){return t.push(n+\" \")>e.cacheLength&&delete r[t.shift()],r[n+\" \"]=i}}function et(t){return t[g]=!0,t}function rt(t){var e=s.createElement(\"fieldset\");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function nt(t){return function(e){return M(e,\"input\")&&e.type===t}}function it(t){return function(e){return(M(e,\"input\")||M(e,\"button\"))&&e.type===t}}function ot(t){return function(e){return\"form\"in e?e.parentNode&&!1===e.disabled?\"label\"in e?\"label\"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Q(e)===t:e.disabled===t:\"label\"in e&&e.disabled===t}}function at(t){return et((function(e){return e=+e,et((function(r,n){for(var i,o=t([],r.length,e),a=o.length;a--;)r[i=o[a]]&&(r[i]=!(n[i]=r[i]))}))}))}function st(t){return t&&void 0!==t.getElementsByTagName&&t}function ut(t){var r,i=t?t.ownerDocument||t:L;return i!=s&&9===i.nodeType&&i.documentElement?(c=(s=i).documentElement,f=!k.isXMLDoc(s),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&L!=s&&(r=s.defaultView)&&r.top!==r&&r.addEventListener(\"unload\",J),y.getById=rt((function(t){return c.appendChild(t).id=k.expando,!s.getElementsByName||!s.getElementsByName(k.expando).length})),y.disconnectedMatch=rt((function(t){return p.call(t,\"*\")})),y.scope=rt((function(){return s.querySelectorAll(\":scope\")})),y.cssHas=rt((function(){try{return s.querySelector(\":has(*,:jqfake)\"),!1}catch(t){return!0}})),y.getById?(e.filter.ID=function(t){var e=t.replace($,V);return function(t){return t.getAttribute(\"id\")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&f){var r=e.getElementById(t);return r?[r]:[]}}):(e.filter.ID=function(t){var e=t.replace($,V);return function(t){var r=void 0!==t.getAttributeNode&&t.getAttributeNode(\"id\");return r&&r.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&f){var r,n,i,o=e.getElementById(t);if(o){if((r=o.getAttributeNode(\"id\"))&&r.value===t)return[o];for(i=e.getElementsByName(t),n=0;o=i[n++];)if((r=o.getAttributeNode(\"id\"))&&r.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&f)return e.getElementsByClassName(t)},h=[],rt((function(t){var e;c.appendChild(t).innerHTML=\"<a id='\"+g+\"' href='' disabled='disabled'></a><select id='\"+g+\"-\\r\\\\' disabled='disabled'><option selected=''></option></select>\",t.querySelectorAll(\"[selected]\").length||h.push(\"\\\\[\"+F+\"*(?:value|\"+D+\")\"),t.querySelectorAll(\"[id~=\"+g+\"-]\").length||h.push(\"~=\"),t.querySelectorAll(\"a#\"+g+\"+*\").length||h.push(\".#.+[+~]\"),t.querySelectorAll(\":checked\").length||h.push(\":checked\"),(e=s.createElement(\"input\")).setAttribute(\"type\",\"hidden\"),t.appendChild(e).setAttribute(\"name\",\"D\"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(\":disabled\").length&&h.push(\":enabled\",\":disabled\"),(e=s.createElement(\"input\")).setAttribute(\"name\",\"\"),t.appendChild(e),t.querySelectorAll(\"[name='']\").length||h.push(\"\\\\[\"+F+\"*name\"+F+\"*=\"+F+\"*(?:''|\\\"\\\")\")})),y.cssHas||h.push(\":has\"),h=h.length&&new RegExp(h.join(\"|\")),A=function(t,e){if(t===e)return o=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!y.sortDetached&&e.compareDocumentPosition(t)===r?t===s||t.ownerDocument==L&&K.contains(L,t)?-1:e===s||e.ownerDocument==L&&K.contains(L,e)?1:n?l.call(n,t)-l.call(n,e):0:4&r?-1:1)},s):s}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(ut(t),f&&!E[e+\" \"]&&(!h||!h.test(e)))try{var r=p.call(t,e);if(r||y.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){E(e,!0)}return K(e,s,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=s&&ut(t),k.contains(t,e)},K.attr=function(t,r){(t.ownerDocument||t)!=s&&ut(t);var n=e.attrHandle[r.toLowerCase()],i=n&&d.call(e.attrHandle,r.toLowerCase())?n(t,r,!f):void 0;return void 0!==i?i:t.getAttribute(r)},K.error=function(t){throw new Error(\"Syntax error, unrecognized expression: \"+t)},k.uniqueSort=function(t){var e,r=[],i=0,a=0;if(o=!y.sortStable,n=!y.sortStable&&u.call(t,0),T.call(t,A),o){for(;e=t[a++];)e===t[a]&&(i=r.push(a));for(;i--;)O.call(t,r[i],1)}return n=null,t},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(u.apply(this)))},e=k.expr={cacheLength:50,createPseudo:et,match:q,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace($,V),t[3]=(t[3]||t[4]||t[5]||\"\").replace($,V),\"~=\"===t[2]&&(t[3]=\" \"+t[3]+\" \"),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),\"nth\"===t[1].slice(0,3)?(t[3]||K.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*(\"even\"===t[3]||\"odd\"===t[3])),t[5]=+(t[7]+t[8]||\"odd\"===t[3])):t[3]&&K.error(t[0]),t},PSEUDO:function(t){var e,r=!t[6]&&t[2];return q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||\"\":r&&G.test(r)&&(e=ft(r,!0))&&(e=r.indexOf(\")\",r.length-e)-r.length)&&(t[0]=t[0].slice(0,e),t[2]=r.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace($,V).toLowerCase();return\"*\"===t?function(){return!0}:function(t){return M(t,e)}},CLASS:function(t){var e=w[t+\" \"];return e||(e=new RegExp(\"(^|\"+F+\")\"+t+\"(\"+F+\"|$)\"))&&w(t,(function(t){return e.test(\"string\"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute(\"class\")||\"\")}))},ATTR:function(t,e,r){return function(n){var i=K.attr(n,t);return null==i?\"!=\"===e:!e||(i+=\"\",\"=\"===e?i===r:\"!=\"===e?i!==r:\"^=\"===e?r&&0===i.indexOf(r):\"*=\"===e?r&&i.indexOf(r)>-1:\"$=\"===e?r&&i.slice(-r.length)===r:\"~=\"===e?(\" \"+i.replace(j,\" \")+\" \").indexOf(r)>-1:\"|=\"===e&&(i===r||i.slice(0,r.length+1)===r+\"-\"))}},CHILD:function(t,e,r,n,i){var o=\"nth\"!==t.slice(0,3),a=\"last\"!==t.slice(-4),s=\"of-type\"===e;return 1===n&&0===i?function(t){return!!t.parentNode}:function(e,r,u){var c,f,l,h,p,d=o!==a?\"nextSibling\":\"previousSibling\",m=e.parentNode,y=s&&e.nodeName.toLowerCase(),b=!u&&!s,w=!1;if(m){if(o){for(;d;){for(l=e;l=l[d];)if(s?M(l,y):1===l.nodeType)return!1;p=d=\"only\"===t&&!p&&\"nextSibling\"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&b){for(w=(h=(c=(f=m[g]||(m[g]={}))[t]||[])[0]===v&&c[1])&&c[2],l=h&&m.childNodes[h];l=++h&&l&&l[d]||(w=h=0)||p.pop();)if(1===l.nodeType&&++w&&l===e){f[t]=[v,h,w];break}}else if(b&&(w=h=(c=(f=e[g]||(e[g]={}))[t]||[])[0]===v&&c[1]),!1===w)for(;(l=++h&&l&&l[d]||(w=h=0)||p.pop())&&(!(s?M(l,y):1===l.nodeType)||!++w||(b&&((f=l[g]||(l[g]={}))[t]=[v,w]),l!==e)););return(w-=i)===n||w%n==0&&w/n>=0}}},PSEUDO:function(t,r){var n,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error(\"unsupported pseudo: \"+t);return i[g]?i(r):i.length>1?(n=[t,t,\"\",r],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var n,o=i(t,r),a=o.length;a--;)t[n=l.call(t,o[a])]=!(e[n]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:et((function(t){var e=[],r=[],n=yt(t.replace(B,\"$1\"));return n[g]?et((function(t,e,r,i){for(var o,a=n(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,n(e,null,o,r),e[0]=null,!r.pop()}})),has:et((function(t){return function(e){return K(t,e).length>0}})),contains:et((function(t){return t=t.replace($,V),function(e){return(e.textContent||k.text(e)).indexOf(t)>-1}})),lang:et((function(t){return H.test(t||\"\")||K.error(\"unsupported lang: \"+t),t=t.replace($,V).toLowerCase(),function(e){var r;do{if(r=f?e.lang:e.getAttribute(\"xml:lang\")||e.getAttribute(\"lang\"))return(r=r.toLowerCase())===t||0===r.indexOf(t+\"-\")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return s.activeElement}catch(t){}}()&&s.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return M(t,\"input\")&&!!t.checked||M(t,\"option\")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return W.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){return M(t,\"input\")&&\"button\"===t.type||M(t,\"button\")},text:function(t){var e;return M(t,\"input\")&&\"text\"===t.type&&(null==(e=t.getAttribute(\"type\"))||\"text\"===e.toLowerCase())},first:at((function(){return[0]})),last:at((function(t,e){return[e-1]})),eq:at((function(t,e,r){return[r<0?r+e:r]})),even:at((function(t,e){for(var r=0;r<e;r+=2)t.push(r);return t})),odd:at((function(t,e){for(var r=1;r<e;r+=2)t.push(r);return t})),lt:at((function(t,e,r){var n;for(n=r<0?r+e:r>e?e:r;--n>=0;)t.push(n);return t})),gt:at((function(t,e,r){for(var n=r<0?r+e:r;++n<e;)t.push(n);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=nt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=it(t);function ct(){}function ft(t,r){var n,i,o,a,s,u,c,f=_[t+\" \"];if(f)return r?0:f.slice(0);for(s=t,u=[],c=e.preFilter;s;){for(a in n&&!(i=R.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B,\" \")}),s=s.slice(n.length)),e.filter)!(i=q[a].exec(s))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return r?s.length:s?K.error(t):_(t,u).slice(0)}function lt(t){for(var e=0,r=t.length,n=\"\";e<r;e++)n+=t[e].value;return n}function ht(t,e,r){var n=e.dir,i=e.next,o=i||n,a=r&&\"parentNode\"===o,s=b++;return e.first?function(e,r,i){for(;e=e[n];)if(1===e.nodeType||a)return t(e,r,i);return!1}:function(e,r,u){var c,f,l=[v,s];if(u){for(;e=e[n];)if((1===e.nodeType||a)&&t(e,r,u))return!0}else for(;e=e[n];)if(1===e.nodeType||a)if(f=e[g]||(e[g]={}),i&&M(e,i))e=e[n]||e;else{if((c=f[o])&&c[0]===v&&c[1]===s)return l[2]=c[2];if(f[o]=l,l[2]=t(e,r,u))return!0}return!1}}function pt(t){return t.length>1?function(e,r,n){for(var i=t.length;i--;)if(!t[i](e,r,n))return!1;return!0}:t[0]}function dt(t,e,r,n,i){for(var o,a=[],s=0,u=t.length,c=null!=e;s<u;s++)(o=t[s])&&(r&&!r(o,n,i)||(a.push(o),c&&e.push(s)));return a}function mt(t,e,r,n,i,o){return n&&!n[g]&&(n=mt(n)),i&&!i[g]&&(i=mt(i,o)),et((function(o,a,s,u){var c,f,h,p,d=[],g=[],y=a.length,v=o||function(t,e,r){for(var n=0,i=e.length;n<i;n++)K(t,e[n],r);return r}(e||\"*\",s.nodeType?[s]:s,[]),b=!t||!o&&e?v:dt(v,d,t,s,u);if(r?r(b,p=i||(o?t:y||n)?[]:a,s,u):p=b,n)for(c=dt(p,g),n(c,[],s,u),f=c.length;f--;)(h=c[f])&&(p[g[f]]=!(b[g[f]]=h));if(o){if(i||t){if(i){for(c=[],f=p.length;f--;)(h=p[f])&&c.push(b[f]=h);i(null,p=[],c,u)}for(f=p.length;f--;)(h=p[f])&&(c=i?l.call(o,h):d[f])>-1&&(o[c]=!(a[c]=h))}}else p=dt(p===a?p.splice(y,p.length):p),i?i(null,a,p,u):m.apply(a,p)}))}function gt(t){for(var n,i,o,a=t.length,s=e.relative[t[0].type],u=s||e.relative[\" \"],c=s?1:0,f=ht((function(t){return t===n}),u,!0),h=ht((function(t){return l.call(n,t)>-1}),u,!0),p=[function(t,e,i){var o=!s&&(i||e!=r)||((n=e).nodeType?f(t,e,i):h(t,e,i));return n=null,o}];c<a;c++)if(i=e.relative[t[c].type])p=[ht(pt(p),i)];else{if((i=e.filter[t[c].type].apply(null,t[c].matches))[g]){for(o=++c;o<a&&!e.relative[t[o].type];o++);return mt(c>1&&pt(p),c>1&&lt(t.slice(0,c-1).concat({value:\" \"===t[c-2].type?\"*\":\"\"})).replace(B,\"$1\"),i,c<o&&gt(t.slice(c,o)),o<a&&gt(t=t.slice(o)),o<a&&lt(t))}p.push(i)}return pt(p)}function yt(t,n){var i,o=[],a=[],u=x[t+\" \"];if(!u){for(n||(n=ft(t)),i=n.length;i--;)(u=gt(n[i]))[g]?o.push(u):a.push(u);u=x(t,function(t,n){var i=n.length>0,o=t.length>0,a=function(a,u,c,l,h){var p,d,g,y=0,b=\"0\",w=a&&[],_=[],x=r,E=a||o&&e.find.TAG(\"*\",h),A=v+=null==x?1:Math.random()||.1,D=E.length;for(h&&(r=u==s||u||h);b!==D&&null!=(p=E[b]);b++){if(o&&p){for(d=0,u||p.ownerDocument==s||(ut(p),c=!f);g=t[d++];)if(g(p,u||s,c)){m.call(l,p);break}h&&(v=A)}i&&((p=!g&&p)&&y--,a&&w.push(p))}if(y+=b,i&&b!==y){for(d=0;g=n[d++];)g(w,_,u,c);if(a){if(y>0)for(;b--;)w[b]||_[b]||(_[b]=C.call(l));_=dt(_)}m.apply(l,_),h&&!a&&_.length>0&&y+n.length>1&&k.uniqueSort(l)}return h&&(v=A,r=x),w};return i?et(a):a}(a,o)),u.selector=t}return u}function vt(t,r,n,i){var o,a,s,u,c,l=\"function\"==typeof t&&t,h=!i&&ft(t=l.selector||t);if(n=n||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&\"ID\"===(s=a[0]).type&&9===r.nodeType&&f&&e.relative[a[1].type]){if(!(r=(e.find.ID(s.matches[0].replace($,V),r)||[])[0]))return n;l&&(r=r.parentNode),t=t.slice(a.shift().value.length)}for(o=q.needsContext.test(t)?0:a.length;o--&&(s=a[o],!e.relative[u=s.type]);)if((c=e.find[u])&&(i=c(s.matches[0].replace($,V),X.test(a[0].type)&&st(r.parentNode)||r))){if(a.splice(o,1),!(t=i.length&&lt(a)))return m.apply(n,i),n;break}}return(l||yt(t,h))(i,r,!f,n,!r||X.test(t)&&st(r.parentNode)||r),n}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,y.sortStable=g.split(\"\").sort(A).join(\"\")===g,ut(),y.sortDetached=rt((function(t){return 1&t.compareDocumentPosition(s.createElement(\"fieldset\"))})),k.find=K,k.expr[\":\"]=k.expr.pseudos,k.unique=k.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ut,K.tokenize=ft,K.escape=k.escapeSelector,K.getText=k.text,K.isXML=k.isXMLDoc,K.selectors=k.expr,K.support=k.support,K.uniqueSort=k.uniqueSort}();var j=function(t,e,r){for(var n=[],i=void 0!==r;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&k(t).is(r))break;n.push(t)}return n},R=function(t,e){for(var r=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&r.push(t);return r},z=k.expr.match.needsContext,U=/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i;function G(t,e,r){return v(e)?k.grep(t,(function(t,n){return!!e.call(t,n,t)!==r})):e.nodeType?k.grep(t,(function(t){return t===e!==r})):\"string\"!=typeof e?k.grep(t,(function(t){return l.call(e,t)>-1!==r})):k.filter(e,t,r)}k.filter=function(t,e,r){var n=e[0];return r&&(t=\":not(\"+t+\")\"),1===e.length&&1===n.nodeType?k.find.matchesSelector(n,t)?[n]:[]:k.find.matches(t,k.grep(e,(function(t){return 1===t.nodeType})))},k.fn.extend({find:function(t){var e,r,n=this.length,i=this;if(\"string\"!=typeof t)return this.pushStack(k(t).filter((function(){for(e=0;e<n;e++)if(k.contains(i[e],this))return!0})));for(r=this.pushStack([]),e=0;e<n;e++)k.find(t,i[e],r);return n>1?k.uniqueSort(r):r},filter:function(t){return this.pushStack(G(this,t||[],!1))},not:function(t){return this.pushStack(G(this,t||[],!0))},is:function(t){return!!G(this,\"string\"==typeof t&&z.test(t)?k(t):t||[],!1).length}});var H,q=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/;(k.fn.init=function(t,e,r){var n,i;if(!t)return this;if(r=r||H,\"string\"==typeof t){if(!(n=\"<\"===t[0]&&\">\"===t[t.length-1]&&t.length>=3?[null,t,null]:q.exec(t))||!n[1]&&e)return!e||e.jquery?(e||r).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),U.test(n[1])&&k.isPlainObject(e))for(n in e)v(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(i=w.getElementById(n[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==r.ready?r.ready(t):t(k):k.makeArray(t,this)}).prototype=k.fn,H=k(w);var Z=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function Y(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),r=e.length;return this.filter((function(){for(var t=0;t<r;t++)if(k.contains(this,e[t]))return!0}))},closest:function(t,e){var r,n=0,i=this.length,o=[],a=\"string\"!=typeof t&&k(t);if(!z.test(t))for(;n<i;n++)for(r=this[n];r&&r!==e;r=r.parentNode)if(r.nodeType<11&&(a?a.index(r)>-1:1===r.nodeType&&k.find.matchesSelector(r,t))){o.push(r);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(t){return t?\"string\"==typeof t?l.call(k(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return j(t,\"parentNode\")},parentsUntil:function(t,e,r){return j(t,\"parentNode\",r)},next:function(t){return Y(t,\"nextSibling\")},prev:function(t){return Y(t,\"previousSibling\")},nextAll:function(t){return j(t,\"nextSibling\")},prevAll:function(t){return j(t,\"previousSibling\")},nextUntil:function(t,e,r){return j(t,\"nextSibling\",r)},prevUntil:function(t,e,r){return j(t,\"previousSibling\",r)},siblings:function(t){return R((t.parentNode||{}).firstChild,t)},children:function(t){return R(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(M(t,\"template\")&&(t=t.content||t),k.merge([],t.childNodes))}},(function(t,e){k.fn[t]=function(r,n){var i=k.map(this,e,r);return\"Until\"!==t.slice(-5)&&(n=r),n&&\"string\"==typeof n&&(i=k.filter(n,i)),this.length>1&&(W[t]||k.uniqueSort(i),Z.test(t)&&i.reverse()),this.pushStack(i)}}));var X=/[^\\x20\\t\\r\\n\\f]+/g;function $(t){return t}function V(t){throw t}function J(t,e,r,n){var i;try{t&&v(i=t.promise)?i.call(t).done(e).fail(r):t&&v(i=t.then)?i.call(t,e,r):e.apply(void 0,[t].slice(n))}catch(t){r.apply(void 0,[t])}}k.Callbacks=function(t){t=\"string\"==typeof t?function(t){var e={};return k.each(t.match(X)||[],(function(t,r){e[r]=!0})),e}(t):k.extend({},t);var e,r,n,i,o=[],a=[],s=-1,u=function(){for(i=i||t.once,n=e=!0;a.length;s=-1)for(r=a.shift();++s<o.length;)!1===o[s].apply(r[0],r[1])&&t.stopOnFalse&&(s=o.length,r=!1);t.memory||(r=!1),e=!1,i&&(o=r?[]:\"\")},c={add:function(){return o&&(r&&!e&&(s=o.length-1,a.push(r)),function e(r){k.each(r,(function(r,n){v(n)?t.unique&&c.has(n)||o.push(n):n&&n.length&&\"string\"!==E(n)&&e(n)}))}(arguments),r&&!e&&u()),this},remove:function(){return k.each(arguments,(function(t,e){for(var r;(r=k.inArray(e,o,r))>-1;)o.splice(r,1),r<=s&&s--})),this},has:function(t){return t?k.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=r=\"\",this},disabled:function(){return!o},lock:function(){return i=a=[],r||e||(o=r=\"\"),this},locked:function(){return!!i},fireWith:function(t,r){return i||(r=[t,(r=r||[]).slice?r.slice():r],a.push(r),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},k.extend({Deferred:function(t){var e=[[\"notify\",\"progress\",k.Callbacks(\"memory\"),k.Callbacks(\"memory\"),2],[\"resolve\",\"done\",k.Callbacks(\"once memory\"),k.Callbacks(\"once memory\"),0,\"resolved\"],[\"reject\",\"fail\",k.Callbacks(\"once memory\"),k.Callbacks(\"once memory\"),1,\"rejected\"]],r=\"pending\",o={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return k.Deferred((function(r){k.each(e,(function(e,n){var i=v(t[n[4]])&&t[n[4]];a[n[1]]((function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[n[0]+\"With\"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,r,o){var a=0;function s(t,e,r,o){return function(){var u=this,c=arguments,f=function(){var i,f;if(!(t<a)){if((i=r.apply(u,c))===e.promise())throw new TypeError(\"Thenable self-resolution\");f=i&&(\"object\"===n(i)||\"function\"==typeof i)&&i.then,v(f)?o?f.call(i,s(a,e,$,o),s(a,e,V,o)):(a++,f.call(i,s(a,e,$,o),s(a,e,V,o),s(a,e,$,e.notifyWith))):(r!==$&&(u=void 0,c=[i]),(o||e.resolveWith)(u,c))}},l=o?f:function(){try{f()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,l.error),t+1>=a&&(r!==V&&(u=void 0,c=[n]),e.rejectWith(u,c))}};t?l():(k.Deferred.getErrorHook?l.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(l.error=k.Deferred.getStackHook()),i.setTimeout(l))}}return k.Deferred((function(n){e[0][3].add(s(0,n,v(o)?o:$,n.notifyWith)),e[1][3].add(s(0,n,v(t)?t:$)),e[2][3].add(s(0,n,v(r)?r:V))})).promise()},promise:function(t){return null!=t?k.extend(t,o):o}},a={};return k.each(e,(function(t,n){var i=n[2],s=n[5];o[n[1]]=i.add,s&&i.add((function(){r=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),i.add(n[3].fire),a[n[0]]=function(){return a[n[0]+\"With\"](this===a?void 0:this,arguments),this},a[n[0]+\"With\"]=i.fireWith})),o.promise(a),t&&t.call(a,a),a},when:function(t){var e=arguments.length,r=e,n=Array(r),i=u.call(arguments),o=k.Deferred(),a=function(t){return function(r){n[t]=this,i[t]=arguments.length>1?u.call(arguments):r,--e||o.resolveWith(n,i)}};if(e<=1&&(J(t,o.done(a(r)).resolve,o.reject,!e),\"pending\"===o.state()||v(i[r]&&i[r].then)))return o.then();for(;r--;)J(i[r],a(r),o.reject);return o.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&Q.test(t.name)&&i.console.warn(\"jQuery.Deferred exception: \"+t.message,t.stack,e)},k.readyException=function(t){i.setTimeout((function(){throw t}))};var K=k.Deferred();function tt(){w.removeEventListener(\"DOMContentLoaded\",tt),i.removeEventListener(\"load\",tt),k.ready()}k.fn.ready=function(t){return K.then(t).catch((function(t){k.readyException(t)})),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==t&&--k.readyWait>0||K.resolveWith(w,[k]))}}),k.ready.then=K.then,\"complete\"===w.readyState||\"loading\"!==w.readyState&&!w.documentElement.doScroll?i.setTimeout(k.ready):(w.addEventListener(\"DOMContentLoaded\",tt),i.addEventListener(\"load\",tt));var et=function t(e,r,n,i,o,a,s){var u=0,c=e.length,f=null==n;if(\"object\"===E(n))for(u in o=!0,n)t(e,r,u,n[u],!0,a,s);else if(void 0!==i&&(o=!0,v(i)||(s=!0),f&&(s?(r.call(e,i),r=null):(f=r,r=function(t,e,r){return f.call(k(t),r)})),r))for(;u<c;u++)r(e[u],n,s?i:i.call(e[u],u,r(e[u],n)));return o?e:f?r.call(e):c?r(e[0],n):a},rt=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function ot(t){return t.replace(rt,\"ms-\").replace(nt,it)}var at=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function st(){this.expando=k.expando+st.uid++}st.uid=1,st.prototype={cache:function(t){var e=t[this.expando];return e||(e={},at(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,r){var n,i=this.cache(t);if(\"string\"==typeof e)i[ot(e)]=r;else for(n in e)i[ot(n)]=e[n];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][ot(e)]},access:function(t,e,r){return void 0===e||e&&\"string\"==typeof e&&void 0===r?this.get(t,e):(this.set(t,e,r),void 0!==r?r:e)},remove:function(t,e){var r,n=t[this.expando];if(void 0!==n){if(void 0!==e){r=(e=Array.isArray(e)?e.map(ot):(e=ot(e))in n?[e]:e.match(X)||[]).length;for(;r--;)delete n[e[r]]}(void 0===e||k.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!k.isEmptyObject(e)}};var ut=new st,ct=new st,ft=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,lt=/[A-Z]/g;function ht(t,e,r){var n;if(void 0===r&&1===t.nodeType)if(n=\"data-\"+e.replace(lt,\"-$&\").toLowerCase(),\"string\"==typeof(r=t.getAttribute(n))){try{r=function(t){return\"true\"===t||\"false\"!==t&&(\"null\"===t?null:t===+t+\"\"?+t:ft.test(t)?JSON.parse(t):t)}(r)}catch(t){}ct.set(t,e,r)}else r=void 0;return r}k.extend({hasData:function(t){return ct.hasData(t)||ut.hasData(t)},data:function(t,e,r){return ct.access(t,e,r)},removeData:function(t,e){ct.remove(t,e)},_data:function(t,e,r){return ut.access(t,e,r)},_removeData:function(t,e){ut.remove(t,e)}}),k.fn.extend({data:function(t,e){var r,i,o,a=this[0],s=a&&a.attributes;if(void 0===t){if(this.length&&(o=ct.get(a),1===a.nodeType&&!ut.get(a,\"hasDataAttrs\"))){for(r=s.length;r--;)s[r]&&0===(i=s[r].name).indexOf(\"data-\")&&(i=ot(i.slice(5)),ht(a,i,o[i]));ut.set(a,\"hasDataAttrs\",!0)}return o}return\"object\"===n(t)?this.each((function(){ct.set(this,t)})):et(this,(function(e){var r;if(a&&void 0===e)return void 0!==(r=ct.get(a,t))||void 0!==(r=ht(a,t))?r:void 0;this.each((function(){ct.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){ct.remove(this,t)}))}}),k.extend({queue:function(t,e,r){var n;if(t)return e=(e||\"fx\")+\"queue\",n=ut.get(t,e),r&&(!n||Array.isArray(r)?n=ut.access(t,e,k.makeArray(r)):n.push(r)),n||[]},dequeue:function(t,e){e=e||\"fx\";var r=k.queue(t,e),n=r.length,i=r.shift(),o=k._queueHooks(t,e);\"inprogress\"===i&&(i=r.shift(),n--),i&&(\"fx\"===e&&r.unshift(\"inprogress\"),delete o.stop,i.call(t,(function(){k.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var r=e+\"queueHooks\";return ut.get(t,r)||ut.access(t,r,{empty:k.Callbacks(\"once memory\").add((function(){ut.remove(t,[e+\"queue\",r])}))})}}),k.fn.extend({queue:function(t,e){var r=2;return\"string\"!=typeof t&&(e=t,t=\"fx\",r--),arguments.length<r?k.queue(this[0],t):void 0===e?this:this.each((function(){var r=k.queue(this,t,e);k._queueHooks(this,t),\"fx\"===t&&\"inprogress\"!==r[0]&&k.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){k.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||\"fx\",[])},promise:function(t,e){var r,n=1,i=k.Deferred(),o=this,a=this.length,s=function(){--n||i.resolveWith(o,[o])};for(\"string\"!=typeof t&&(e=t,t=void 0),t=t||\"fx\";a--;)(r=ut.get(o[a],t+\"queueHooks\"))&&r.empty&&(n++,r.empty.add(s));return s(),i.promise(e)}});var pt=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,dt=new RegExp(\"^(?:([+-])=|)(\"+pt+\")([a-z%]*)$\",\"i\"),mt=[\"Top\",\"Right\",\"Bottom\",\"Left\"],gt=w.documentElement,yt=function(t){return k.contains(t.ownerDocument,t)},vt={composed:!0};gt.getRootNode&&(yt=function(t){return k.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var bt=function(t,e){return\"none\"===(t=e||t).style.display||\"\"===t.style.display&&yt(t)&&\"none\"===k.css(t,\"display\")};function wt(t,e,r,n){var i,o,a=20,s=n?function(){return n.cur()}:function(){return k.css(t,e,\"\")},u=s(),c=r&&r[3]||(k.cssNumber[e]?\"\":\"px\"),f=t.nodeType&&(k.cssNumber[e]||\"px\"!==c&&+u)&&dt.exec(k.css(t,e));if(f&&f[3]!==c){for(u/=2,c=c||f[3],f=+u||1;a--;)k.style(t,e,f+c),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),f/=o;f*=2,k.style(t,e,f+c),r=r||[]}return r&&(f=+f||+u||0,i=r[1]?f+(r[1]+1)*r[2]:+r[2],n&&(n.unit=c,n.start=f,n.end=i)),i}var _t={};function xt(t){var e,r=t.ownerDocument,n=t.nodeName,i=_t[n];return i||(e=r.body.appendChild(r.createElement(n)),i=k.css(e,\"display\"),e.parentNode.removeChild(e),\"none\"===i&&(i=\"block\"),_t[n]=i,i)}function Et(t,e){for(var r,n,i=[],o=0,a=t.length;o<a;o++)(n=t[o]).style&&(r=n.style.display,e?(\"none\"===r&&(i[o]=ut.get(n,\"display\")||null,i[o]||(n.style.display=\"\")),\"\"===n.style.display&&bt(n)&&(i[o]=xt(n))):\"none\"!==r&&(i[o]=\"none\",ut.set(n,\"display\",r)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}k.fn.extend({show:function(){return Et(this,!0)},hide:function(){return Et(this)},toggle:function(t){return\"boolean\"==typeof t?t?this.show():this.hide():this.each((function(){bt(this)?k(this).show():k(this).hide()}))}});var At,Dt,kt=/^(?:checkbox|radio)$/i,St=/<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)/i,Mt=/^$|^module$|\\/(?:java|ecma)script/i;At=w.createDocumentFragment().appendChild(w.createElement(\"div\")),(Dt=w.createElement(\"input\")).setAttribute(\"type\",\"radio\"),Dt.setAttribute(\"checked\",\"checked\"),Dt.setAttribute(\"name\",\"t\"),At.appendChild(Dt),y.checkClone=At.cloneNode(!0).cloneNode(!0).lastChild.checked,At.innerHTML=\"<textarea>x</textarea>\",y.noCloneChecked=!!At.cloneNode(!0).lastChild.defaultValue,At.innerHTML=\"<option></option>\",y.option=!!At.lastChild;var Ct={thead:[1,\"<table>\",\"</table>\"],col:[2,\"<table><colgroup>\",\"</colgroup></table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],_default:[0,\"\",\"\"]};function Tt(t,e){var r;return r=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||\"*\"):void 0!==t.querySelectorAll?t.querySelectorAll(e||\"*\"):[],void 0===e||e&&M(t,e)?k.merge([t],r):r}function Ot(t,e){for(var r=0,n=t.length;r<n;r++)ut.set(t[r],\"globalEval\",!e||ut.get(e[r],\"globalEval\"))}Ct.tbody=Ct.tfoot=Ct.colgroup=Ct.caption=Ct.thead,Ct.th=Ct.td,y.option||(Ct.optgroup=Ct.option=[1,\"<select multiple='multiple'>\",\"</select>\"]);var Ft=/<|&#?\\w+;/;function Bt(t,e,r,n,i){for(var o,a,s,u,c,f,l=e.createDocumentFragment(),h=[],p=0,d=t.length;p<d;p++)if((o=t[p])||0===o)if(\"object\"===E(o))k.merge(h,o.nodeType?[o]:o);else if(Ft.test(o)){for(a=a||l.appendChild(e.createElement(\"div\")),s=(St.exec(o)||[\"\",\"\"])[1].toLowerCase(),u=Ct[s]||Ct._default,a.innerHTML=u[1]+k.htmlPrefilter(o)+u[2],f=u[0];f--;)a=a.lastChild;k.merge(h,a.childNodes),(a=l.firstChild).textContent=\"\"}else h.push(e.createTextNode(o));for(l.textContent=\"\",p=0;o=h[p++];)if(n&&k.inArray(o,n)>-1)i&&i.push(o);else if(c=yt(o),a=Tt(l.appendChild(o),\"script\"),c&&Ot(a),r)for(f=0;o=a[f++];)Mt.test(o.type||\"\")&&r.push(o);return l}var It=/^([^.]*)(?:\\.(.+)|)/;function Pt(){return!0}function Lt(){return!1}function Nt(t,e,r,i,o,a){var s,u;if(\"object\"===n(e)){for(u in\"string\"!=typeof r&&(i=i||r,r=void 0),e)Nt(t,u,r,i,e[u],a);return t}if(null==i&&null==o?(o=r,i=r=void 0):null==o&&(\"string\"==typeof r?(o=i,i=void 0):(o=i,i=r,r=void 0)),!1===o)o=Lt;else if(!o)return t;return 1===a&&(s=o,o=function(t){return k().off(t),s.apply(this,arguments)},o.guid=s.guid||(s.guid=k.guid++)),t.each((function(){k.event.add(this,e,o,i,r)}))}function jt(t,e,r){r?(ut.set(t,e,!1),k.event.add(t,e,{namespace:!1,handler:function(t){var r,n=ut.get(this,e);if(1&t.isTrigger&&this[e]){if(n)(k.event.special[e]||{}).delegateType&&t.stopPropagation();else if(n=u.call(arguments),ut.set(this,e,n),this[e](),r=ut.get(this,e),ut.set(this,e,!1),n!==r)return t.stopImmediatePropagation(),t.preventDefault(),r}else n&&(ut.set(this,e,k.event.trigger(n[0],n.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Pt)}})):void 0===ut.get(t,e)&&k.event.add(t,e,Pt)}k.event={global:{},add:function(t,e,r,n,i){var o,a,s,u,c,f,l,h,p,d,m,g=ut.get(t);if(at(t))for(r.handler&&(r=(o=r).handler,i=o.selector),i&&k.find.matchesSelector(gt,i),r.guid||(r.guid=k.guid++),(u=g.events)||(u=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||\"\").match(X)||[\"\"]).length;c--;)p=m=(s=It.exec(e[c])||[])[1],d=(s[2]||\"\").split(\".\").sort(),p&&(l=k.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=k.event.special[p]||{},f=k.extend({type:p,origType:m,data:n,handler:r,guid:r.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:d.join(\".\")},o),(h=u[p])||((h=u[p]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,n,d,a)||t.addEventListener&&t.addEventListener(p,a)),l.add&&(l.add.call(t,f),f.handler.guid||(f.handler.guid=r.guid)),i?h.splice(h.delegateCount++,0,f):h.push(f),k.event.global[p]=!0)},remove:function(t,e,r,n,i){var o,a,s,u,c,f,l,h,p,d,m,g=ut.hasData(t)&&ut.get(t);if(g&&(u=g.events)){for(c=(e=(e||\"\").match(X)||[\"\"]).length;c--;)if(p=m=(s=It.exec(e[c])||[])[1],d=(s[2]||\"\").split(\".\").sort(),p){for(l=k.event.special[p]||{},h=u[p=(n?l.delegateType:l.bindType)||p]||[],s=s[2]&&new RegExp(\"(^|\\\\.)\"+d.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),a=o=h.length;o--;)f=h[o],!i&&m!==f.origType||r&&r.guid!==f.guid||s&&!s.test(f.namespace)||n&&n!==f.selector&&(\"**\"!==n||!f.selector)||(h.splice(o,1),f.selector&&h.delegateCount--,l.remove&&l.remove.call(t,f));a&&!h.length&&(l.teardown&&!1!==l.teardown.call(t,d,g.handle)||k.removeEvent(t,p,g.handle),delete u[p])}else for(p in u)k.event.remove(t,p+e[c],r,n,!0);k.isEmptyObject(u)&&ut.remove(t,\"handle events\")}},dispatch:function(t){var e,r,n,i,o,a,s=new Array(arguments.length),u=k.event.fix(t),c=(ut.get(this,\"events\")||Object.create(null))[u.type]||[],f=k.event.special[u.type]||{};for(s[0]=u,e=1;e<arguments.length;e++)s[e]=arguments[e];if(u.delegateTarget=this,!f.preDispatch||!1!==f.preDispatch.call(this,u)){for(a=k.event.handlers.call(this,u,c),e=0;(i=a[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,r=0;(o=i.handlers[r++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(n=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=n)&&(u.preventDefault(),u.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,u),u.result}},handlers:function(t,e){var r,n,i,o,a,s=[],u=e.delegateCount,c=t.target;if(u&&c.nodeType&&!(\"click\"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&(\"click\"!==t.type||!0!==c.disabled)){for(o=[],a={},r=0;r<u;r++)void 0===a[i=(n=e[r]).selector+\" \"]&&(a[i]=n.needsContext?k(i,this).index(c)>-1:k.find(i,this,null,[c]).length),a[i]&&o.push(n);o.length&&s.push({elem:c,handlers:o})}return c=this,u<e.length&&s.push({elem:c,handlers:e.slice(u)}),s},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[k.expando]?t:new k.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return kt.test(e.type)&&e.click&&M(e,\"input\")&&jt(e,\"click\",!0),!1},trigger:function(t){var e=this||t;return kt.test(e.type)&&e.click&&M(e,\"input\")&&jt(e,\"click\"),!0},_default:function(t){var e=t.target;return kt.test(e.type)&&e.click&&M(e,\"input\")&&ut.get(e,\"click\")||M(e,\"a\")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},k.removeEvent=function(t,e,r){t.removeEventListener&&t.removeEventListener(e,r)},k.Event=function(t,e){if(!(this instanceof k.Event))return new k.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Pt:Lt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Lt,isPropagationStopped:Lt,isImmediatePropagationStopped:Lt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Pt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Pt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Pt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:\"focusin\",blur:\"focusout\"},(function(t,e){function r(t){if(w.documentMode){var r=ut.get(this,\"handle\"),n=k.event.fix(t);n.type=\"focusin\"===t.type?\"focus\":\"blur\",n.isSimulated=!0,r(t),n.target===n.currentTarget&&r(n)}else k.event.simulate(e,t.target,k.event.fix(t))}k.event.special[t]={setup:function(){var n;if(jt(this,t,!0),!w.documentMode)return!1;(n=ut.get(this,e))||this.addEventListener(e,r),ut.set(this,e,(n||0)+1)},trigger:function(){return jt(this,t),!0},teardown:function(){var t;if(!w.documentMode)return!1;(t=ut.get(this,e)-1)?ut.set(this,e,t):(this.removeEventListener(e,r),ut.remove(this,e))},_default:function(e){return ut.get(e.target,t)},delegateType:e},k.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,i=w.documentMode?this:n,o=ut.get(i,e);o||(w.documentMode?this.addEventListener(e,r):n.addEventListener(t,r,!0)),ut.set(i,e,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,i=w.documentMode?this:n,o=ut.get(i,e)-1;o?ut.set(i,e,o):(w.documentMode?this.removeEventListener(e,r):n.removeEventListener(t,r,!0),ut.remove(i,e))}}})),k.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\",pointerenter:\"pointerover\",pointerleave:\"pointerout\"},(function(t,e){k.event.special[t]={delegateType:e,bindType:e,handle:function(t){var r,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||k.contains(this,n))||(t.type=i.origType,r=i.handler.apply(this,arguments),t.type=e),r}}})),k.fn.extend({on:function(t,e,r,n){return Nt(this,t,e,r,n)},one:function(t,e,r,n){return Nt(this,t,e,r,n,1)},off:function(t,e,r){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,k(t.delegateTarget).off(i.namespace?i.origType+\".\"+i.namespace:i.origType,i.selector,i.handler),this;if(\"object\"===n(t)){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&\"function\"!=typeof e||(r=e,e=void 0),!1===r&&(r=Lt),this.each((function(){k.event.remove(this,t,r,e)}))}});var Rt=/<script|<style|<link/i,zt=/checked\\s*(?:[^=]|=\\s*.checked.)/i,Ut=/^\\s*<!\\[CDATA\\[|\\]\\]>\\s*$/g;function Gt(t,e){return M(t,\"table\")&&M(11!==e.nodeType?e:e.firstChild,\"tr\")&&k(t).children(\"tbody\")[0]||t}function Ht(t){return t.type=(null!==t.getAttribute(\"type\"))+\"/\"+t.type,t}function qt(t){return\"true/\"===(t.type||\"\").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute(\"type\"),t}function Zt(t,e){var r,n,i,o,a,s;if(1===e.nodeType){if(ut.hasData(t)&&(s=ut.get(t).events))for(i in ut.remove(e,\"handle events\"),s)for(r=0,n=s[i].length;r<n;r++)k.event.add(e,i,s[i][r]);ct.hasData(t)&&(o=ct.access(t),a=k.extend({},o),ct.set(e,a))}}function Wt(t,e){var r=e.nodeName.toLowerCase();\"input\"===r&&kt.test(t.type)?e.checked=t.checked:\"input\"!==r&&\"textarea\"!==r||(e.defaultValue=t.defaultValue)}function Yt(t,e,r,n){e=c(e);var i,o,a,s,u,f,l=0,h=t.length,p=h-1,d=e[0],m=v(d);if(m||h>1&&\"string\"==typeof d&&!y.checkClone&&zt.test(d))return t.each((function(i){var o=t.eq(i);m&&(e[0]=d.call(this,i,o.html())),Yt(o,e,r,n)}));if(h&&(o=(i=Bt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===i.childNodes.length&&(i=o),o||n)){for(s=(a=k.map(Tt(i,\"script\"),Ht)).length;l<h;l++)u=i,l!==p&&(u=k.clone(u,!0,!0),s&&k.merge(a,Tt(u,\"script\"))),r.call(t[l],u,l);if(s)for(f=a[a.length-1].ownerDocument,k.map(a,qt),l=0;l<s;l++)u=a[l],Mt.test(u.type||\"\")&&!ut.access(u,\"globalEval\")&&k.contains(f,u)&&(u.src&&\"module\"!==(u.type||\"\").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute(\"nonce\")},f):x(u.textContent.replace(Ut,\"\"),u,f))}return t}function Xt(t,e,r){for(var n,i=e?k.filter(e,t):t,o=0;null!=(n=i[o]);o++)r||1!==n.nodeType||k.cleanData(Tt(n)),n.parentNode&&(r&&yt(n)&&Ot(Tt(n,\"script\")),n.parentNode.removeChild(n));return t}k.extend({htmlPrefilter:function(t){return t},clone:function(t,e,r){var n,i,o,a,s=t.cloneNode(!0),u=yt(t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(a=Tt(s),n=0,i=(o=Tt(t)).length;n<i;n++)Wt(o[n],a[n]);if(e)if(r)for(o=o||Tt(t),a=a||Tt(s),n=0,i=o.length;n<i;n++)Zt(o[n],a[n]);else Zt(t,s);return(a=Tt(s,\"script\")).length>0&&Ot(a,!u&&Tt(t,\"script\")),s},cleanData:function(t){for(var e,r,n,i=k.event.special,o=0;void 0!==(r=t[o]);o++)if(at(r)){if(e=r[ut.expando]){if(e.events)for(n in e.events)i[n]?k.event.remove(r,n):k.removeEvent(r,n,e.handle);r[ut.expando]=void 0}r[ct.expando]&&(r[ct.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return et(this,(function(t){return void 0===t?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Yt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Gt(this,t).appendChild(t)}))},prepend:function(){return Yt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Gt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Yt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Yt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(Tt(t,!1)),t.textContent=\"\");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return k.clone(this,t,e)}))},html:function(t){return et(this,(function(t){var e=this[0]||{},r=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if(\"string\"==typeof t&&!Rt.test(t)&&!Ct[(St.exec(t)||[\"\",\"\"])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;r<n;r++)1===(e=this[r]||{}).nodeType&&(k.cleanData(Tt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Yt(this,arguments,(function(e){var r=this.parentNode;k.inArray(this,t)<0&&(k.cleanData(Tt(this)),r&&r.replaceChild(e,this))}),t)}}),k.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},(function(t,e){k.fn[t]=function(t){for(var r,n=[],i=k(t),o=i.length-1,a=0;a<=o;a++)r=a===o?this:this.clone(!0),k(i[a])[e](r),f.apply(n,r.get());return this.pushStack(n)}}));var $t=new RegExp(\"^(\"+pt+\")(?!px)[a-z%]+$\",\"i\"),Vt=/^--/,Jt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Qt=function(t,e,r){var n,i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in n=r.call(t),e)t.style[i]=o[i];return n},Kt=new RegExp(mt.join(\"|\"),\"i\");function te(t,e,r){var n,i,o,a,s=Vt.test(e),u=t.style;return(r=r||Jt(t))&&(a=r.getPropertyValue(e)||r[e],s&&a&&(a=a.replace(B,\"$1\")||void 0),\"\"!==a||yt(t)||(a=k.style(t,e)),!y.pixelBoxStyles()&&$t.test(a)&&Kt.test(e)&&(n=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=r.width,u.width=n,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+\"\":a}function ee(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(f){c.style.cssText=\"position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0\",f.style.cssText=\"position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%\",gt.appendChild(c).appendChild(f);var t=i.getComputedStyle(f);r=\"1%\"!==t.top,u=12===e(t.marginLeft),f.style.right=\"60%\",a=36===e(t.right),n=36===e(t.width),f.style.position=\"absolute\",o=12===e(f.offsetWidth/3),gt.removeChild(c),f=null}}function e(t){return Math.round(parseFloat(t))}var r,n,o,a,s,u,c=w.createElement(\"div\"),f=w.createElement(\"div\");f.style&&(f.style.backgroundClip=\"content-box\",f.cloneNode(!0).style.backgroundClip=\"\",y.clearCloneStyle=\"content-box\"===f.style.backgroundClip,k.extend(y,{boxSizingReliable:function(){return t(),n},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,r,n;return null==s&&(t=w.createElement(\"table\"),e=w.createElement(\"tr\"),r=w.createElement(\"div\"),t.style.cssText=\"position:absolute;left:-11111px;border-collapse:separate\",e.style.cssText=\"box-sizing:content-box;border:1px solid\",e.style.height=\"1px\",r.style.height=\"9px\",r.style.display=\"block\",gt.appendChild(t).appendChild(e).appendChild(r),n=i.getComputedStyle(e),s=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),s}}))}();var re=[\"Webkit\",\"Moz\",\"ms\"],ne=w.createElement(\"div\").style,ie={};function oe(t){var e=k.cssProps[t]||ie[t];return e||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),r=re.length;r--;)if((t=re[r]+e)in ne)return t}(t)||t)}var ae=/^(none|table(?!-c[ea]).+)/,se={position:\"absolute\",visibility:\"hidden\",display:\"block\"},ue={letterSpacing:\"0\",fontWeight:\"400\"};function ce(t,e,r){var n=dt.exec(e);return n?Math.max(0,n[2]-(r||0))+(n[3]||\"px\"):e}function fe(t,e,r,n,i,o){var a=\"width\"===e?1:0,s=0,u=0,c=0;if(r===(n?\"border\":\"content\"))return 0;for(;a<4;a+=2)\"margin\"===r&&(c+=k.css(t,r+mt[a],!0,i)),n?(\"content\"===r&&(u-=k.css(t,\"padding\"+mt[a],!0,i)),\"margin\"!==r&&(u-=k.css(t,\"border\"+mt[a]+\"Width\",!0,i))):(u+=k.css(t,\"padding\"+mt[a],!0,i),\"padding\"!==r?u+=k.css(t,\"border\"+mt[a]+\"Width\",!0,i):s+=k.css(t,\"border\"+mt[a]+\"Width\",!0,i));return!n&&o>=0&&(u+=Math.max(0,Math.ceil(t[\"offset\"+e[0].toUpperCase()+e.slice(1)]-o-u-s-.5))||0),u+c}function le(t,e,r){var n=Jt(t),i=(!y.boxSizingReliable()||r)&&\"border-box\"===k.css(t,\"boxSizing\",!1,n),o=i,a=te(t,e,n),s=\"offset\"+e[0].toUpperCase()+e.slice(1);if($t.test(a)){if(!r)return a;a=\"auto\"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&M(t,\"tr\")||\"auto\"===a||!parseFloat(a)&&\"inline\"===k.css(t,\"display\",!1,n))&&t.getClientRects().length&&(i=\"border-box\"===k.css(t,\"boxSizing\",!1,n),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+fe(t,e,r||(i?\"border\":\"content\"),o,n,a)+\"px\"}function he(t,e,r,n,i){return new he.prototype.init(t,e,r,n,i)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var r=te(t,\"opacity\");return\"\"===r?\"1\":r}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,r,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,a,s,u=ot(e),c=Vt.test(e),f=t.style;if(c||(e=oe(u)),s=k.cssHooks[e]||k.cssHooks[u],void 0===r)return s&&\"get\"in s&&void 0!==(o=s.get(t,!1,i))?o:f[e];\"string\"===(a=n(r))&&(o=dt.exec(r))&&o[1]&&(r=wt(t,e,o),a=\"number\"),null!=r&&r==r&&(\"number\"!==a||c||(r+=o&&o[3]||(k.cssNumber[u]?\"\":\"px\")),y.clearCloneStyle||\"\"!==r||0!==e.indexOf(\"background\")||(f[e]=\"inherit\"),s&&\"set\"in s&&void 0===(r=s.set(t,r,i))||(c?f.setProperty(e,r):f[e]=r))}},css:function(t,e,r,n){var i,o,a,s=ot(e);return Vt.test(e)||(e=oe(s)),(a=k.cssHooks[e]||k.cssHooks[s])&&\"get\"in a&&(i=a.get(t,!0,r)),void 0===i&&(i=te(t,e,n)),\"normal\"===i&&e in ue&&(i=ue[e]),\"\"===r||r?(o=parseFloat(i),!0===r||isFinite(o)?o||0:i):i}}),k.each([\"height\",\"width\"],(function(t,e){k.cssHooks[e]={get:function(t,r,n){if(r)return!ae.test(k.css(t,\"display\"))||t.getClientRects().length&&t.getBoundingClientRect().width?le(t,e,n):Qt(t,se,(function(){return le(t,e,n)}))},set:function(t,r,n){var i,o=Jt(t),a=!y.scrollboxSize()&&\"absolute\"===o.position,s=(a||n)&&\"border-box\"===k.css(t,\"boxSizing\",!1,o),u=n?fe(t,e,n,s,o):0;return s&&a&&(u-=Math.ceil(t[\"offset\"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-fe(t,e,\"border\",!1,o)-.5)),u&&(i=dt.exec(r))&&\"px\"!==(i[3]||\"px\")&&(t.style[e]=r,r=k.css(t,e)),ce(0,r,u)}}})),k.cssHooks.marginLeft=ee(y.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(te(t,\"marginLeft\"))||t.getBoundingClientRect().left-Qt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+\"px\"})),k.each({margin:\"\",padding:\"\",border:\"Width\"},(function(t,e){k.cssHooks[t+e]={expand:function(r){for(var n=0,i={},o=\"string\"==typeof r?r.split(\" \"):[r];n<4;n++)i[t+mt[n]+e]=o[n]||o[n-2]||o[0];return i}},\"margin\"!==t&&(k.cssHooks[t+e].set=ce)})),k.fn.extend({css:function(t,e){return et(this,(function(t,e,r){var n,i,o={},a=0;if(Array.isArray(e)){for(n=Jt(t),i=e.length;a<i;a++)o[e[a]]=k.css(t,e[a],!1,n);return o}return void 0!==r?k.style(t,e,r):k.css(t,e)}),t,e,arguments.length>1)}}),k.Tween=he,he.prototype={constructor:he,init:function(t,e,r,n,i,o){this.elem=t,this.prop=r,this.easing=i||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(k.cssNumber[r]?\"\":\"px\")},cur:function(){var t=he.propHooks[this.prop];return t&&t.get?t.get(this):he.propHooks._default.get(this)},run:function(t){var e,r=he.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):he.propHooks._default.set(this),this}},he.prototype.init.prototype=he.prototype,he.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=k.css(t.elem,t.prop,\"\"))&&\"auto\"!==e?e:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||!k.cssHooks[t.prop]&&null==t.elem.style[oe(t.prop)]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}},he.propHooks.scrollTop=he.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:\"swing\"},k.fx=he.prototype.init,k.fx.step={};var pe,de,me=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function ye(){de&&(!1===w.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ye):i.setTimeout(ye,k.fx.interval),k.fx.tick())}function ve(){return i.setTimeout((function(){pe=void 0})),pe=Date.now()}function be(t,e){var r,n=0,i={height:t};for(e=e?1:0;n<4;n+=2-e)i[\"margin\"+(r=mt[n])]=i[\"padding\"+r]=t;return e&&(i.opacity=i.width=t),i}function we(t,e,r){for(var n,i=(_e.tweeners[e]||[]).concat(_e.tweeners[\"*\"]),o=0,a=i.length;o<a;o++)if(n=i[o].call(r,e,t))return n}function _e(t,e,r){var n,i,o=0,a=_e.prefilters.length,s=k.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=pe||ve(),r=Math.max(0,c.startTime+c.duration-e),n=1-(r/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(n);return s.notifyWith(t,[c,n,r]),n<1&&a?r:(a||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},r),originalProperties:e,originalOptions:r,startTime:pe||ve(),duration:r.duration,tweens:[],createTween:function(e,r){var n=k.Tween(t,c.opts,e,r,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var r=0,n=e?c.tweens.length:0;if(i)return this;for(i=!0;r<n;r++)c.tweens[r].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),f=c.props;for(!function(t,e){var r,n,i,o,a;for(r in t)if(i=e[n=ot(r)],o=t[r],Array.isArray(o)&&(i=o[1],o=t[r]=o[0]),r!==n&&(t[n]=o,delete t[r]),(a=k.cssHooks[n])&&\"expand\"in a)for(r in o=a.expand(o),delete t[n],o)r in t||(t[r]=o[r],e[r]=i);else e[n]=i}(f,c.opts.specialEasing);o<a;o++)if(n=_e.prefilters[o].call(c,t,f,c.opts))return v(n.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return k.map(f,we,c),v(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(u,{elem:t,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(_e,{tweeners:{\"*\":[function(t,e){var r=this.createTween(t,e);return wt(r.elem,t,dt.exec(e),r),r}]},tweener:function(t,e){v(t)?(e=t,t=[\"*\"]):t=t.match(X);for(var r,n=0,i=t.length;n<i;n++)r=t[n],_e.tweeners[r]=_e.tweeners[r]||[],_e.tweeners[r].unshift(e)},prefilters:[function(t,e,r){var n,i,o,a,s,u,c,f,l=\"width\"in e||\"height\"in e,h=this,p={},d=t.style,m=t.nodeType&&bt(t),g=ut.get(t,\"fxshow\");for(n in r.queue||(null==(a=k._queueHooks(t,\"fx\")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,k.queue(t,\"fx\").length||a.empty.fire()}))}))),e)if(i=e[n],me.test(i)){if(delete e[n],o=o||\"toggle\"===i,i===(m?\"hide\":\"show\")){if(\"show\"!==i||!g||void 0===g[n])continue;m=!0}p[n]=g&&g[n]||k.style(t,n)}if((u=!k.isEmptyObject(e))||!k.isEmptyObject(p))for(n in l&&1===t.nodeType&&(r.overflow=[d.overflow,d.overflowX,d.overflowY],null==(c=g&&g.display)&&(c=ut.get(t,\"display\")),\"none\"===(f=k.css(t,\"display\"))&&(c?f=c:(Et([t],!0),c=t.style.display||c,f=k.css(t,\"display\"),Et([t]))),(\"inline\"===f||\"inline-block\"===f&&null!=c)&&\"none\"===k.css(t,\"float\")&&(u||(h.done((function(){d.display=c})),null==c&&(f=d.display,c=\"none\"===f?\"\":f)),d.display=\"inline-block\")),r.overflow&&(d.overflow=\"hidden\",h.always((function(){d.overflow=r.overflow[0],d.overflowX=r.overflow[1],d.overflowY=r.overflow[2]}))),u=!1,p)u||(g?\"hidden\"in g&&(m=g.hidden):g=ut.access(t,\"fxshow\",{display:c}),o&&(g.hidden=!m),m&&Et([t],!0),h.done((function(){for(n in m||Et([t]),ut.remove(t,\"fxshow\"),p)k.style(t,n,p[n])}))),u=we(m?g[n]:0,n,h),n in g||(g[n]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?_e.prefilters.unshift(t):_e.prefilters.push(t)}}),k.speed=function(t,e,r){var i=t&&\"object\"===n(t)?k.extend({},t):{complete:r||!r&&e||v(t)&&t,duration:t,easing:r&&e||e&&!v(e)&&e};return k.fx.off?i.duration=0:\"number\"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue=\"fx\"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(t,e,r,n){return this.filter(bt).css(\"opacity\",0).show().end().animate({opacity:e},t,r,n)},animate:function(t,e,r,n){var i=k.isEmptyObject(t),o=k.speed(e,r,n),a=function(){var e=_e(this,k.extend({},t),o);(i||ut.get(this,\"finish\"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,r){var n=function(t){var e=t.stop;delete t.stop,e(r)};return\"string\"!=typeof t&&(r=e,e=t,t=void 0),e&&this.queue(t||\"fx\",[]),this.each((function(){var e=!0,i=null!=t&&t+\"queueHooks\",o=k.timers,a=ut.get(this);if(i)a[i]&&a[i].stop&&n(a[i]);else for(i in a)a[i]&&a[i].stop&&ge.test(i)&&n(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(r),e=!1,o.splice(i,1));!e&&r||k.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||\"fx\"),this.each((function(){var e,r=ut.get(this),n=r[t+\"queue\"],i=r[t+\"queueHooks\"],o=k.timers,a=n?n.length:0;for(r.finish=!0,k.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete r.finish}))}}),k.each([\"toggle\",\"show\",\"hide\"],(function(t,e){var r=k.fn[e];k.fn[e]=function(t,n,i){return null==t||\"boolean\"==typeof t?r.apply(this,arguments):this.animate(be(e,!0),t,n,i)}})),k.each({slideDown:be(\"show\"),slideUp:be(\"hide\"),slideToggle:be(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},(function(t,e){k.fn[t]=function(t,r,n){return this.animate(e,t,r,n)}})),k.timers=[],k.fx.tick=function(){var t,e=0,r=k.timers;for(pe=Date.now();e<r.length;e++)(t=r[e])()||r[e]!==t||r.splice(e--,1);r.length||k.fx.stop(),pe=void 0},k.fx.timer=function(t){k.timers.push(t),k.fx.start()},k.fx.interval=13,k.fx.start=function(){de||(de=!0,ye())},k.fx.stop=function(){de=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(t,e){return t=k.fx&&k.fx.speeds[t]||t,e=e||\"fx\",this.queue(e,(function(e,r){var n=i.setTimeout(e,t);r.stop=function(){i.clearTimeout(n)}}))},function(){var t=w.createElement(\"input\"),e=w.createElement(\"select\").appendChild(w.createElement(\"option\"));t.type=\"checkbox\",y.checkOn=\"\"!==t.value,y.optSelected=e.selected,(t=w.createElement(\"input\")).value=\"t\",t.type=\"radio\",y.radioValue=\"t\"===t.value}();var xe,Ee=k.expr.attrHandle;k.fn.extend({attr:function(t,e){return et(this,k.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){k.removeAttr(this,t)}))}}),k.extend({attr:function(t,e,r){var n,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?k.prop(t,e,r):(1===o&&k.isXMLDoc(t)||(i=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?xe:void 0)),void 0!==r?null===r?void k.removeAttr(t,e):i&&\"set\"in i&&void 0!==(n=i.set(t,r,e))?n:(t.setAttribute(e,r+\"\"),r):i&&\"get\"in i&&null!==(n=i.get(t,e))?n:null==(n=k.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&\"radio\"===e&&M(t,\"input\")){var r=t.value;return t.setAttribute(\"type\",e),r&&(t.value=r),e}}}},removeAttr:function(t,e){var r,n=0,i=e&&e.match(X);if(i&&1===t.nodeType)for(;r=i[n++];)t.removeAttribute(r)}}),xe={set:function(t,e,r){return!1===e?k.removeAttr(t,r):t.setAttribute(r,r),r}},k.each(k.expr.match.bool.source.match(/\\w+/g),(function(t,e){var r=Ee[e]||k.find.attr;Ee[e]=function(t,e,n){var i,o,a=e.toLowerCase();return n||(o=Ee[a],Ee[a]=i,i=null!=r(t,e,n)?a:null,Ee[a]=o),i}}));var Ae=/^(?:input|select|textarea|button)$/i,De=/^(?:a|area)$/i;function ke(t){return(t.match(X)||[]).join(\" \")}function Se(t){return t.getAttribute&&t.getAttribute(\"class\")||\"\"}function Me(t){return Array.isArray(t)?t:\"string\"==typeof t&&t.match(X)||[]}k.fn.extend({prop:function(t,e){return et(this,k.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[k.propFix[t]||t]}))}}),k.extend({prop:function(t,e,r){var n,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,i=k.propHooks[e]),void 0!==r?i&&\"set\"in i&&void 0!==(n=i.set(t,r,e))?n:t[e]=r:i&&\"get\"in i&&null!==(n=i.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,\"tabindex\");return e?parseInt(e,10):Ae.test(t.nodeName)||De.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:\"htmlFor\",class:\"className\"}}),y.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(t){var e,r,n,i,o,a;return v(t)?this.each((function(e){k(this).addClass(t.call(this,e,Se(this)))})):(e=Me(t)).length?this.each((function(){if(n=Se(this),r=1===this.nodeType&&\" \"+ke(n)+\" \"){for(o=0;o<e.length;o++)i=e[o],r.indexOf(\" \"+i+\" \")<0&&(r+=i+\" \");a=ke(r),n!==a&&this.setAttribute(\"class\",a)}})):this},removeClass:function(t){var e,r,n,i,o,a;return v(t)?this.each((function(e){k(this).removeClass(t.call(this,e,Se(this)))})):arguments.length?(e=Me(t)).length?this.each((function(){if(n=Se(this),r=1===this.nodeType&&\" \"+ke(n)+\" \"){for(o=0;o<e.length;o++)for(i=e[o];r.indexOf(\" \"+i+\" \")>-1;)r=r.replace(\" \"+i+\" \",\" \");a=ke(r),n!==a&&this.setAttribute(\"class\",a)}})):this:this.attr(\"class\",\"\")},toggleClass:function(t,e){var r,i,o,a,s=n(t),u=\"string\"===s||Array.isArray(t);return v(t)?this.each((function(r){k(this).toggleClass(t.call(this,r,Se(this),e),e)})):\"boolean\"==typeof e&&u?e?this.addClass(t):this.removeClass(t):(r=Me(t),this.each((function(){if(u)for(a=k(this),o=0;o<r.length;o++)i=r[o],a.hasClass(i)?a.removeClass(i):a.addClass(i);else void 0!==t&&\"boolean\"!==s||((i=Se(this))&&ut.set(this,\"__className__\",i),this.setAttribute&&this.setAttribute(\"class\",i||!1===t?\"\":ut.get(this,\"__className__\")||\"\"))})))},hasClass:function(t){var e,r,n=0;for(e=\" \"+t+\" \";r=this[n++];)if(1===r.nodeType&&(\" \"+ke(Se(r))+\" \").indexOf(e)>-1)return!0;return!1}});var Ce=/\\r/g;k.fn.extend({val:function(t){var e,r,n,i=this[0];return arguments.length?(n=v(t),this.each((function(r){var i;1===this.nodeType&&(null==(i=n?t.call(this,r,k(this).val()):t)?i=\"\":\"number\"==typeof i?i+=\"\":Array.isArray(i)&&(i=k.map(i,(function(t){return null==t?\"\":t+\"\"}))),(e=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&\"set\"in e&&void 0!==e.set(this,i,\"value\")||(this.value=i))}))):i?(e=k.valHooks[i.type]||k.valHooks[i.nodeName.toLowerCase()])&&\"get\"in e&&void 0!==(r=e.get(i,\"value\"))?r:\"string\"==typeof(r=i.value)?r.replace(Ce,\"\"):null==r?\"\":r:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,\"value\");return null!=e?e:ke(k.text(t))}},select:{get:function(t){var e,r,n,i=t.options,o=t.selectedIndex,a=\"select-one\"===t.type,s=a?null:[],u=a?o+1:i.length;for(n=o<0?u:a?o:0;n<u;n++)if(((r=i[n]).selected||n===o)&&!r.disabled&&(!r.parentNode.disabled||!M(r.parentNode,\"optgroup\"))){if(e=k(r).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var r,n,i=t.options,o=k.makeArray(e),a=i.length;a--;)((n=i[a]).selected=k.inArray(k.valHooks.option.get(n),o)>-1)&&(r=!0);return r||(t.selectedIndex=-1),o}}}}),k.each([\"radio\",\"checkbox\"],(function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=k.inArray(k(t).val(),e)>-1}},y.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute(\"value\")?\"on\":t.value})}));var Te=i.location,Oe={guid:Date.now()},Fe=/\\?/;k.parseXML=function(t){var e,r;if(!t||\"string\"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,\"text/xml\")}catch(t){}return r=e&&e.getElementsByTagName(\"parsererror\")[0],e&&!r||k.error(\"Invalid XML: \"+(r?k.map(r.childNodes,(function(t){return t.textContent})).join(\"\\n\"):t)),e};var Be=/^(?:focusinfocus|focusoutblur)$/,Ie=function(t){t.stopPropagation()};k.extend(k.event,{trigger:function(t,e,r,o){var a,s,u,c,f,l,h,p,m=[r||w],g=d.call(t,\"type\")?t.type:t,y=d.call(t,\"namespace\")?t.namespace.split(\".\"):[];if(s=p=u=r=r||w,3!==r.nodeType&&8!==r.nodeType&&!Be.test(g+k.event.triggered)&&(g.indexOf(\".\")>-1&&(y=g.split(\".\"),g=y.shift(),y.sort()),f=g.indexOf(\":\")<0&&\"on\"+g,(t=t[k.expando]?t:new k.Event(g,\"object\"===n(t)&&t)).isTrigger=o?2:3,t.namespace=y.join(\".\"),t.rnamespace=t.namespace?new RegExp(\"(^|\\\\.)\"+y.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:k.makeArray(e,[t]),h=k.event.special[g]||{},o||!h.trigger||!1!==h.trigger.apply(r,e))){if(!o&&!h.noBubble&&!b(r)){for(c=h.delegateType||g,Be.test(c+g)||(s=s.parentNode);s;s=s.parentNode)m.push(s),u=s;u===(r.ownerDocument||w)&&m.push(u.defaultView||u.parentWindow||i)}for(a=0;(s=m[a++])&&!t.isPropagationStopped();)p=s,t.type=a>1?c:h.bindType||g,(l=(ut.get(s,\"events\")||Object.create(null))[t.type]&&ut.get(s,\"handle\"))&&l.apply(s,e),(l=f&&s[f])&&l.apply&&at(s)&&(t.result=l.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,o||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(m.pop(),e)||!at(r)||f&&v(r[g])&&!b(r)&&((u=r[f])&&(r[f]=null),k.event.triggered=g,t.isPropagationStopped()&&p.addEventListener(g,Ie),r[g](),t.isPropagationStopped()&&p.removeEventListener(g,Ie),k.event.triggered=void 0,u&&(r[f]=u)),t.result}},simulate:function(t,e,r){var n=k.extend(new k.Event,r,{type:t,isSimulated:!0});k.event.trigger(n,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each((function(){k.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var r=this[0];if(r)return k.event.trigger(t,e,r,!0)}});var Pe=/\\[\\]$/,Le=/\\r?\\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;function Re(t,e,r,i){var o;if(Array.isArray(e))k.each(e,(function(e,o){r||Pe.test(t)?i(t,o):Re(t+\"[\"+(\"object\"===n(o)&&null!=o?e:\"\")+\"]\",o,r,i)}));else if(r||\"object\"!==E(e))i(t,e);else for(o in e)Re(t+\"[\"+o+\"]\",e[o],r,i)}k.param=function(t,e){var r,n=[],i=function(t,e){var r=v(e)?e():e;n[n.length]=encodeURIComponent(t)+\"=\"+encodeURIComponent(null==r?\"\":r)};if(null==t)return\"\";if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,(function(){i(this.name,this.value)}));else for(r in t)Re(r,t[r],e,i);return n.join(\"&\")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=k.prop(this,\"elements\");return t?k.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!k(this).is(\":disabled\")&&je.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!kt.test(t))})).map((function(t,e){var r=k(this).val();return null==r?null:Array.isArray(r)?k.map(r,(function(t){return{name:e.name,value:t.replace(Le,\"\\r\\n\")}})):{name:e.name,value:r.replace(Le,\"\\r\\n\")}})).get()}});var ze=/%20/g,Ue=/#.*$/,Ge=/([?&])_=[^&]*/,He=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,qe=/^(?:GET|HEAD)$/,Ze=/^\\/\\//,We={},Ye={},Xe=\"*/\".concat(\"*\"),$e=w.createElement(\"a\");function Ve(t){return function(e,r){\"string\"!=typeof e&&(r=e,e=\"*\");var n,i=0,o=e.toLowerCase().match(X)||[];if(v(r))for(;n=o[i++];)\"+\"===n[0]?(n=n.slice(1)||\"*\",(t[n]=t[n]||[]).unshift(r)):(t[n]=t[n]||[]).push(r)}}function Je(t,e,r,n){var i={},o=t===Ye;function a(s){var u;return i[s]=!0,k.each(t[s]||[],(function(t,s){var c=s(e,r,n);return\"string\"!=typeof c||o||i[c]?o?!(u=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),u}return a(e.dataTypes[0])||!i[\"*\"]&&a(\"*\")}function Qe(t,e){var r,n,i=k.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&k.extend(!0,t,n),t}$e.href=Te.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:\"GET\",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":Xe,text:\"text/plain\",html:\"text/html\",xml:\"application/xml, text/xml\",json:\"application/json, text/javascript\"},contents:{xml:/\\bxml\\b/,html:/\\bhtml/,json:/\\bjson\\b/},responseFields:{xml:\"responseXML\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":!0,\"text json\":JSON.parse,\"text xml\":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Qe(Qe(t,k.ajaxSettings),e):Qe(k.ajaxSettings,t)},ajaxPrefilter:Ve(We),ajaxTransport:Ve(Ye),ajax:function(t,e){\"object\"===n(t)&&(e=t,t=void 0),e=e||{};var r,o,a,s,u,c,f,l,h,p,d=k.ajaxSetup({},e),m=d.context||d,g=d.context&&(m.nodeType||m.jquery)?k(m):k.event,y=k.Deferred(),v=k.Callbacks(\"once memory\"),b=d.statusCode||{},_={},x={},E=\"canceled\",A={readyState:0,getResponseHeader:function(t){var e;if(f){if(!s)for(s={};e=He.exec(a);)s[e[1].toLowerCase()+\" \"]=(s[e[1].toLowerCase()+\" \"]||[]).concat(e[2]);e=s[t.toLowerCase()+\" \"]}return null==e?null:e.join(\", \")},getAllResponseHeaders:function(){return f?a:null},setRequestHeader:function(t,e){return null==f&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==f&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(f)A.always(t[A.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||E;return r&&r.abort(e),D(0,e),this}};if(y.promise(A),d.url=((t||d.url||Te.href)+\"\").replace(Ze,Te.protocol+\"//\"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||\"*\").toLowerCase().match(X)||[\"\"],null==d.crossDomain){c=w.createElement(\"a\");try{c.href=d.url,c.href=c.href,d.crossDomain=$e.protocol+\"//\"+$e.host!=c.protocol+\"//\"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&\"string\"!=typeof d.data&&(d.data=k.param(d.data,d.traditional)),Je(We,d,e,A),f)return A;for(h in(l=k.event&&d.global)&&0==k.active++&&k.event.trigger(\"ajaxStart\"),d.type=d.type.toUpperCase(),d.hasContent=!qe.test(d.type),o=d.url.replace(Ue,\"\"),d.hasContent?d.data&&d.processData&&0===(d.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&(d.data=d.data.replace(ze,\"+\")):(p=d.url.slice(o.length),d.data&&(d.processData||\"string\"==typeof d.data)&&(o+=(Fe.test(o)?\"&\":\"?\")+d.data,delete d.data),!1===d.cache&&(o=o.replace(Ge,\"$1\"),p=(Fe.test(o)?\"&\":\"?\")+\"_=\"+Oe.guid+++p),d.url=o+p),d.ifModified&&(k.lastModified[o]&&A.setRequestHeader(\"If-Modified-Since\",k.lastModified[o]),k.etag[o]&&A.setRequestHeader(\"If-None-Match\",k.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&A.setRequestHeader(\"Content-Type\",d.contentType),A.setRequestHeader(\"Accept\",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(\"*\"!==d.dataTypes[0]?\", \"+Xe+\"; q=0.01\":\"\"):d.accepts[\"*\"]),d.headers)A.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(!1===d.beforeSend.call(m,A,d)||f))return A.abort();if(E=\"abort\",v.add(d.complete),A.done(d.success),A.fail(d.error),r=Je(Ye,d,e,A)){if(A.readyState=1,l&&g.trigger(\"ajaxSend\",[A,d]),f)return A;d.async&&d.timeout>0&&(u=i.setTimeout((function(){A.abort(\"timeout\")}),d.timeout));try{f=!1,r.send(_,D)}catch(t){if(f)throw t;D(-1,t)}}else D(-1,\"No Transport\");function D(t,e,n,s){var c,h,p,w,_,x=e;f||(f=!0,u&&i.clearTimeout(u),r=void 0,a=s||\"\",A.readyState=t>0?4:0,c=t>=200&&t<300||304===t,n&&(w=function(t,e,r){for(var n,i,o,a,s=t.contents,u=t.dataTypes;\"*\"===u[0];)u.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader(\"Content-Type\"));if(n)for(i in s)if(s[i]&&s[i].test(n)){u.unshift(i);break}if(u[0]in r)o=u[0];else{for(i in r){if(!u[0]||t.converters[i+\" \"+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),r[o]}(d,A,n)),!c&&k.inArray(\"script\",d.dataTypes)>-1&&k.inArray(\"json\",d.dataTypes)<0&&(d.converters[\"text script\"]=function(){}),w=function(t,e,r,n){var i,o,a,s,u,c={},f=t.dataTypes.slice();if(f[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=f.shift();o;)if(t.responseFields[o]&&(r[t.responseFields[o]]=e),!u&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=f.shift())if(\"*\"===o)o=u;else if(\"*\"!==u&&u!==o){if(!(a=c[u+\" \"+o]||c[\"* \"+o]))for(i in c)if((s=i.split(\" \"))[1]===o&&(a=c[u+\" \"+s[0]]||c[\"* \"+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],f.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:\"parsererror\",error:a?t:\"No conversion from \"+u+\" to \"+o}}}return{state:\"success\",data:e}}(d,w,A,c),c?(d.ifModified&&((_=A.getResponseHeader(\"Last-Modified\"))&&(k.lastModified[o]=_),(_=A.getResponseHeader(\"etag\"))&&(k.etag[o]=_)),204===t||\"HEAD\"===d.type?x=\"nocontent\":304===t?x=\"notmodified\":(x=w.state,h=w.data,c=!(p=w.error))):(p=x,!t&&x||(x=\"error\",t<0&&(t=0))),A.status=t,A.statusText=(e||x)+\"\",c?y.resolveWith(m,[h,x,A]):y.rejectWith(m,[A,x,p]),A.statusCode(b),b=void 0,l&&g.trigger(c?\"ajaxSuccess\":\"ajaxError\",[A,d,c?h:p]),v.fireWith(m,[A,x]),l&&(g.trigger(\"ajaxComplete\",[A,d]),--k.active||k.event.trigger(\"ajaxStop\")))}return A},getJSON:function(t,e,r){return k.get(t,e,r,\"json\")},getScript:function(t,e){return k.get(t,void 0,e,\"script\")}}),k.each([\"get\",\"post\"],(function(t,e){k[e]=function(t,r,n,i){return v(r)&&(i=i||n,n=r,r=void 0),k.ajax(k.extend({url:t,type:e,dataType:i,data:r,success:n},k.isPlainObject(t)&&t))}})),k.ajaxPrefilter((function(t){var e;for(e in t.headers)\"content-type\"===e.toLowerCase()&&(t.contentType=t.headers[e]||\"\")})),k._evalUrl=function(t,e,r){return k.ajax({url:t,type:\"GET\",dataType:\"script\",cache:!0,async:!1,global:!1,converters:{\"text script\":function(){}},dataFilter:function(t){k.globalEval(t,e,r)}})},k.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){k(this).wrapInner(t.call(this,e))})):this.each((function(){var e=k(this),r=e.contents();r.length?r.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(r){k(this).wrapAll(e?t.call(this,r):t)}))},unwrap:function(t){return this.parent(t).not(\"body\").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},tr=k.ajaxSettings.xhr();y.cors=!!tr&&\"withCredentials\"in tr,y.ajax=tr=!!tr,k.ajaxTransport((function(t){var e,r;if(y.cors||tr&&!t.crossDomain)return{send:function(n,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||n[\"X-Requested-With\"]||(n[\"X-Requested-With\"]=\"XMLHttpRequest\"),n)s.setRequestHeader(a,n[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,\"abort\"===t?s.abort():\"error\"===t?\"number\"!=typeof s.status?o(0,\"error\"):o(s.status,s.statusText):o(Ke[s.status]||s.status,s.statusText,\"text\"!==(s.responseType||\"text\")||\"string\"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e(\"error\"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){e&&r()}))},e=e(\"abort\");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),k.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),k.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/\\b(?:java|ecma)script\\b/},converters:{\"text script\":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter(\"script\",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type=\"GET\")})),k.ajaxTransport(\"script\",(function(t){var e,r;if(t.crossDomain||t.scriptAttrs)return{send:function(n,i){e=k(\"<script>\").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on(\"load error\",r=function(t){e.remove(),r=null,t&&i(\"error\"===t.type?404:200,t.type)}),w.head.appendChild(e[0])},abort:function(){r&&r()}}}));var er,rr=[],nr=/(=)\\?(?=&|$)|\\?\\?/;k.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var t=rr.pop()||k.expando+\"_\"+Oe.guid++;return this[t]=!0,t}}),k.ajaxPrefilter(\"json jsonp\",(function(t,e,r){var n,o,a,s=!1!==t.jsonp&&(nr.test(t.url)?\"url\":\"string\"==typeof t.data&&0===(t.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&nr.test(t.data)&&\"data\");if(s||\"jsonp\"===t.dataTypes[0])return n=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(nr,\"$1\"+n):!1!==t.jsonp&&(t.url+=(Fe.test(t.url)?\"&\":\"?\")+t.jsonp+\"=\"+n),t.converters[\"script json\"]=function(){return a||k.error(n+\" was not called\"),a[0]},t.dataTypes[0]=\"json\",o=i[n],i[n]=function(){a=arguments},r.always((function(){void 0===o?k(i).removeProp(n):i[n]=o,t[n]&&(t.jsonpCallback=e.jsonpCallback,rr.push(n)),a&&v(o)&&o(a[0]),a=o=void 0})),\"script\"})),y.createHTMLDocument=((er=w.implementation.createHTMLDocument(\"\").body).innerHTML=\"<form></form><form></form>\",2===er.childNodes.length),k.parseHTML=function(t,e,r){return\"string\"!=typeof t?[]:(\"boolean\"==typeof e&&(r=e,e=!1),e||(y.createHTMLDocument?((n=(e=w.implementation.createHTMLDocument(\"\")).createElement(\"base\")).href=w.location.href,e.head.appendChild(n)):e=w),o=!r&&[],(i=U.exec(t))?[e.createElement(i[1])]:(i=Bt([t],e,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var n,i,o},k.fn.load=function(t,e,r){var i,o,a,s=this,u=t.indexOf(\" \");return u>-1&&(i=ke(t.slice(u)),t=t.slice(0,u)),v(e)?(r=e,e=void 0):e&&\"object\"===n(e)&&(o=\"POST\"),s.length>0&&k.ajax({url:t,type:o||\"GET\",dataType:\"html\",data:e}).done((function(t){a=arguments,s.html(i?k(\"<div>\").append(k.parseHTML(t)).find(i):t)})).always(r&&function(t,e){s.each((function(){r.apply(this,a||[t.responseText,e,t])}))}),this},k.expr.pseudos.animated=function(t){return k.grep(k.timers,(function(e){return t===e.elem})).length},k.offset={setOffset:function(t,e,r){var n,i,o,a,s,u,c=k.css(t,\"position\"),f=k(t),l={};\"static\"===c&&(t.style.position=\"relative\"),s=f.offset(),o=k.css(t,\"top\"),u=k.css(t,\"left\"),(\"absolute\"===c||\"fixed\"===c)&&(o+u).indexOf(\"auto\")>-1?(a=(n=f.position()).top,i=n.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(e)&&(e=e.call(t,r,k.extend({},s))),null!=e.top&&(l.top=e.top-s.top+a),null!=e.left&&(l.left=e.left-s.left+i),\"using\"in e?e.using.call(t,l):f.css(l)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){k.offset.setOffset(this,t,e)}));var e,r,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),r=n.ownerDocument.defaultView,{top:e.top+r.pageYOffset,left:e.left+r.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,r,n=this[0],i={top:0,left:0};if(\"fixed\"===k.css(n,\"position\"))e=n.getBoundingClientRect();else{for(e=this.offset(),r=n.ownerDocument,t=n.offsetParent||r.documentElement;t&&(t===r.body||t===r.documentElement)&&\"static\"===k.css(t,\"position\");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((i=k(t).offset()).top+=k.css(t,\"borderTopWidth\",!0),i.left+=k.css(t,\"borderLeftWidth\",!0))}return{top:e.top-i.top-k.css(n,\"marginTop\",!0),left:e.left-i.left-k.css(n,\"marginLeft\",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&\"static\"===k.css(t,\"position\");)t=t.offsetParent;return t||gt}))}}),k.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},(function(t,e){var r=\"pageYOffset\"===e;k.fn[t]=function(n){return et(this,(function(t,n,i){var o;if(b(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[n];o?o.scrollTo(r?o.pageXOffset:i,r?i:o.pageYOffset):t[n]=i}),t,n,arguments.length)}})),k.each([\"top\",\"left\"],(function(t,e){k.cssHooks[e]=ee(y.pixelPosition,(function(t,r){if(r)return r=te(t,e),$t.test(r)?k(t).position()[e]+\"px\":r}))})),k.each({Height:\"height\",Width:\"width\"},(function(t,e){k.each({padding:\"inner\"+t,content:e,\"\":\"outer\"+t},(function(r,n){k.fn[n]=function(i,o){var a=arguments.length&&(r||\"boolean\"!=typeof i),s=r||(!0===i||!0===o?\"margin\":\"border\");return et(this,(function(e,r,i){var o;return b(e)?0===n.indexOf(\"outer\")?e[\"inner\"+t]:e.document.documentElement[\"client\"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body[\"scroll\"+t],o[\"scroll\"+t],e.body[\"offset\"+t],o[\"offset\"+t],o[\"client\"+t])):void 0===i?k.css(e,r,s):k.style(e,r,i,s)}),e,a?i:void 0,a)}}))})),k.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],(function(t,e){k.fn[e]=function(t){return this.on(e,t)}})),k.fn.extend({bind:function(t,e,r){return this.on(t,null,e,r)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,r,n){return this.on(e,t,r,n)},undelegate:function(t,e,r){return 1===arguments.length?this.off(t,\"**\"):this.off(e,t||\"**\",r)},hover:function(t,e){return this.on(\"mouseenter\",t).on(\"mouseleave\",e||t)}}),k.each(\"blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu\".split(\" \"),(function(t,e){k.fn[e]=function(t,r){return arguments.length>0?this.on(e,null,t,r):this.trigger(e)}}));var ir=/^[\\s\\uFEFF\\xA0]+|([^\\s\\uFEFF\\xA0])[\\s\\uFEFF\\xA0]+$/g;k.proxy=function(t,e){var r,n,i;if(\"string\"==typeof e&&(r=t[e],e=t,t=r),v(t))return n=u.call(arguments,2),i=function(){return t.apply(e||this,n.concat(u.call(arguments)))},i.guid=t.guid=t.guid||k.guid++,i},k.holdReady=function(t){t?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=M,k.isFunction=v,k.isWindow=b,k.camelCase=ot,k.type=E,k.now=Date.now,k.isNumeric=function(t){var e=k.type(t);return(\"number\"===e||\"string\"===e)&&!isNaN(t-parseFloat(t))},k.trim=function(t){return null==t?\"\":(t+\"\").replace(ir,\"$1\")},void 0===(r=function(){return k}.apply(e,[]))||(t.exports=r);var or=i.jQuery,ar=i.$;return k.noConflict=function(t){return i.$===k&&(i.$=ar),t&&i.jQuery===k&&(i.jQuery=or),k},void 0===o&&(i.jQuery=i.$=k),k}))}).call(this,r(13)(t))}]);"
  },
  {
    "path": "utils/hcaptchasolver/content/manageIndex.js.LICENSE.txt",
    "content": "/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n/*!\n   *  decimal.js v10.4.3\n   *  An arbitrary-precision Decimal type for JavaScript.\n   *  https://github.com/MikeMcl/decimal.js\n   *  Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>\n   *  MIT Licence\n   */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * Timm\n *\n * Immutability helpers with fast reads and acceptable writes.\n *\n * @copyright Guillermo Grau Panea 2016\n * @license MIT\n */\n\n/*!\n * jQuery JavaScript Library v3.7.1\n * https://jquery.com/\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2023-08-28T13:37Z\n */\n\n/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\n\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n\n/**\n * @license Complex.js v2.1.1 12/05/2020\n *\n * Copyright (c) 2020, Robert Eisele (robert@xarg.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @license Fraction.js v4.3.0 20/08/2023\n * https://www.xarg.org/2014/03/rational-numbers-in-javascript/\n *\n * Copyright (c) 2023, Robert Eisele (robert@raw.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cie94.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ciede2000.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cmetric.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * common.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * constants.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ditherErrorDiffusionArray.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * euclidean.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * helper.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * hueStatistics.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * iq.ts - Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * manhattanNeuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * nearestColor.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * palette.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pngQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * point.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pointContainer.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2hsl.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ssim.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * wuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * MIT License\n *\n * Copyright 2015-2018 Igor Bezkrovnyi\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n *\n * riemersma.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * colorHistogram.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * neuquant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgbquant.ts - part of Image Quantization Library\n */\n"
  },
  {
    "path": "utils/hcaptchasolver/extensionpage.txt",
    "content": "https://chromewebstore.google.com/detail/captcha-solver-auto-hcapt/hlifkpholllijblknnmbfagnkjneagid"
  },
  {
    "path": "utils/hcaptchasolver/licenses.txt",
    "content": "@babel/runtime\nMIT\nMIT License\n\nCopyright (c) 2014-present Sebastian McKenzie and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n@jimp/bmp\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/core\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/custom\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/gif\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/jpeg\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-blit\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-blur\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-circle\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-color\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-contain\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-cover\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-crop\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-displace\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-dither\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-fisheye\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-flip\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-gaussian\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-invert\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-mask\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-normalize\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-print\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-resize\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-rotate\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-scale\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-shadow\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugin-threshold\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/plugins\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/png\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/tiff\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/types\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@jimp/utils\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nCaptcha Solver\nBusiness license. All right reserved by minirpa.net \n\nhackTimer\nMIT\n\nany-base\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2015 Kamil Harasimowicz and contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nassert\nMIT\nCopyright Joyent, Inc. and other Node contributors. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\n\nasync-validator\nThe MIT License (MIT)\n\nCopyright (c) 2014-present yiminghe\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nbabel-helper-vue-jsx-merge-props\nMIT\n\nbabel-runtime\nMIT\n\nbase64-js\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2014 Jameson Little\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nbmp-js\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2014 @丝刀口\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nbrowserify-zlib\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2014-2015 Devon Govett <devongovett@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nThis project contains parts of Node.js.\nNode.js is licensed for use as follows:\n\n\"\"\"\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\nThis license applies to parts of Node.js originating from the\nhttps://github.com/joyent/node repository:\n\n\"\"\"\nCopyright Joyent, Inc. and other Node contributors. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\n\nbuffer\nMIT\nThe MIT License (MIT)\n\nCopyright (c) Feross Aboukhadijeh, and other contributors.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nbuffer-equal\nMIT\n\ncall-bind\nMIT\nMIT License\n\nCopyright (c) 2020 Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\ncomplex.js\nMIT\nMIT License\n\nCopyright (c) 2018 Robert Eisele\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\ncore-js\nMIT\nCopyright (c) 2014-2020 Denis Pushkarev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\ncore-util-is\nMIT\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\n\ncss-loader\nMIT\nCopyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\ndecimal.js\nMIT\nThe MIT Licence.\n\nCopyright (c) 2022 Michael Mclaughlin\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\ndeepmerge\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2012 Nicholas Fisher\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\ndefine-data-property\nMIT\nMIT License\n\nCopyright (c) 2023 Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\ndensity-clustering\nMIT\nThe MIT License\n\n\n\nCopyright © 2013 Abeja Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the “Software”), to deal in the\nSoftware without restriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell copies of the\nSoftware, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nThe software is provided “as is”, without warranty of any kind, express or\nimplied, including but not limited to the warranties of merchantability, fitness\nfor a particular purpose and noninfringement. In no event shall the authors or\ncopyright holders be liable for any claim, damages or other liability, whether\nin an action of contract, tort or otherwise, arising from, out of or in\nconnection with the software or the use or other dealings in the software.\n\nelement-ui\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2016-present ElemeFE\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nes-define-property\nMIT\nMIT License\n\nCopyright (c) 2024 Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nes-errors\nMIT\nMIT License\n\nCopyright (c) 2024 Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nevents\nMIT\nMIT\n\nCopyright Joyent, Inc. and other Node contributors.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to permit\npersons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\nNO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\nUSE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nexif-parser\nThe MIT License\n===============\n\nCopyright (c) 2010 Bruno Windels <bruno.windels@gmail.com>, Daniel Leinich <leinich@gmx.net>.\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfetch-http-client\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2016 Max Liu\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nfile-type\nMIT\nMIT License\n\nCopyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nfraction.js\nMIT\nMIT License\n\nCopyright (c) 2023 Robert Eisele\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nfunction-bind\nMIT\nCopyright (c) 2013 Raynos.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n\nget-intrinsic\nMIT\nMIT License\n\nCopyright (c) 2020 Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\ngifwrap\nMIT\nMIT License\n\nCopyright © 2017 Joseph T. Lapp\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nglobal\nMIT\nCopyright (c) 2012 Colingo.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\ngopd\nMIT\nMIT License\n\nCopyright (c) 2022 Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nhas-property-descriptors\nMIT\nMIT License\n\nCopyright (c) 2022 Inspect JS\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nhas-proto\nMIT\nMIT License\n\nCopyright (c) 2022 Inspect JS\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nhas-symbols\nMIT\nMIT License\n\nCopyright (c) 2016 Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nhasown\nMIT\nMIT License\n\nCopyright (c) Jordan Harband and contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nieee754\nBSD-3-Clause\nCopyright 2008 Fair Oaks Labs, Inc.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\nimage-q\nMIT\n# image-quantization (https://github.com/igor-bezkrovny/image-quantization)\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Igor Bezkrovny\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n# http://members.ozemail.com.au/~dekker/NEUQUANT.HTML\n\nNeuQuant Neural-Net Quantization Algorithm\n------------------------------------------\n\nCopyright (c) 1994 Anthony Dekker\n\nNEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. See\n\"Kohonen neural networks for optimal colour quantization\" in \"Network:\nComputation in Neural Systems\" Vol. 5 (1994) pp 351-367. for a discussion of\nthe algorithm.\n\nAny party obtaining a copy of these files from the author, directly or\nindirectly, is granted, free of charge, a full and unrestricted irrevocable,\nworld-wide, paid up, royalty-free, nonexclusive right and license to deal in\nthis software and documentation files (the \"Software\"), including without\nlimitation the rights to use, copy, modify, merge, publish, distribute,\nsublicense, and/or sell copies of the Software, and to permit persons who\nreceive copies from any such party to do so, with the only requirement being\nthat this copyright notice remain intact.\n\n# https://github.com/leeoniya/RgbQuant.js\n\nCopyright (c) 2015, Leon Sorokin\nAll rights reserved. (MIT Licensed)\n\n\ninherits\nISC\nThe ISC License\n\nCopyright (c) Isaac Z. Schlueter\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n\n\n\nis-function\nMIT\nCopyright (c) 2013 Stephen Sugden\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nisarray\nMIT\n\nisomorphic-fetch\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2015 Matt Andrews\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\njavascript-natural-sort\nMIT\n\njimp\nMIT\nMIT License\n\nCopyright (c) 2018 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\njpeg-js\nBSD-3-Clause\nCopyright (c) 2014, Eugene Ware\nAll rights reserved.\n  \nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:  \n\n1. Redistributions of source code must retain the above copyright\n   notice, this list of conditions and the following disclaimer.  \n2. Redistributions in binary form must reproduce the above copyright\n   notice, this list of conditions and the following disclaimer in the\n   documentation and/or other materials provided with the distribution.  \n3. Neither the name of Eugene Ware nor the names of its contributors\n   may be used to endorse or promote products derived from this software\n   without specific prior written permission.  \n  \nTHIS SOFTWARE IS PROVIDED BY EUGENE WARE ''AS IS'' AND ANY\nEXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL EUGENE WARE BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\njquery\nMIT\nCopyright OpenJS Foundation and other contributors, https://openjsf.org/\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nload-bmfont\nMIT\nThe MIT License (MIT)\nCopyright (c) 2015 Jam3\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nmathjs\nApache-2.0\n                               Apache License\n                           Version 2.0, January 2004\n                        https://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n\nnode-libs-browser\nMIT\n(The MIT License)\n\nCopyright (c) 2012 Tobias Koppers\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nnormalize-wheel\nBSD-3-Clause\nBSD License\n\nFor FixedDataTable software\n\nCopyright (c) 2015, Facebook, Inc. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\n * Neither the name Facebook nor the names of its contributors may be used to\n   endorse or promote products derived from this software without specific\n   prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\nobject-assign\nMIT\nThe MIT License (MIT)\n\nCopyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nobject-keys\nMIT\nThe MIT License (MIT)\n\nCopyright (C) 2013 Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\nobject.assign\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2014 Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nomggif\nMIT\n\nonnxruntime-common\nMIT\n\nonnxruntime-web\nMIT\n\npako\n(MIT AND Zlib)\n(The MIT License)\n\nCopyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nparse-bmfont-ascii\nMIT\n\nparse-bmfont-binary\nMIT\nThe MIT License (MIT)\nCopyright (c) 2015 Jam3\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nparse-bmfont-xml\nMIT\nThe MIT License (MIT)\nCopyright (c) 2015 Matt DesLauriers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nparse-headers\nMIT\nCopyright (c) 2014 David Björklund\n\nThis software is released under the MIT license:\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\npath-browserify\nMIT\nThis software is released under the MIT license:\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\npeek-readable\nMIT\nThe MIT License\n\nCopyright (c) 2010-2017 Borewit\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\npixelmatch\nISC\nISC License\n\nCopyright (c) 2015, Mapbox\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\n\npngjs\nMIT\npngjs2 original work Copyright (c) 2015 Luke Page & Original Contributors\npngjs derived work Copyright (c) 2012 Kuba Niegowski\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nprocess\nMIT\n(The MIT License)\n\nCopyright (c) 2013 Roman Shtylman <shtylman@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nprocess-nextick-args\nMIT\n# Copyright (c) 2015 Calvin Metcalf\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\n**THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.**\n\n\nquery-string\nMIT\nThe MIT License (MIT)\n\nCopyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nreadable-stream\nMIT\nNode.js is licensed for use as follows:\n\n\"\"\"\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\nThis license applies to parts of Node.js originating from the\nhttps://github.com/joyent/node repository:\n\n\"\"\"\nCopyright Joyent, Inc. and other Node contributors. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\n\nresize-observer-polyfill\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2016 Denis Rul\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nsafe-buffer\nMIT\nThe MIT License (MIT)\n\nCopyright (c) Feross Aboukhadijeh\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nseedrandom\nMIT\n\nset-function-length\nMIT\nMIT License\n\nCopyright (c) Jordan Harband and contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nsetimmediate\nMIT\nCopyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nstream-browserify\nMIT\nThis software is released under the MIT license:\n\nCopyright (c) James Halliday\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nstrict-uri-encode\nMIT\nThe MIT License (MIT)\n\nCopyright (c) Kevin Mårtensson <kevinmartensson@gmail.com> (github.com/kevva)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nstring_decoder\nMIT\nNode.js is licensed for use as follows:\n\n\"\"\"\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\nThis license applies to parts of Node.js originating from the\nhttps://github.com/joyent/node repository:\n\n\"\"\"\nCopyright Joyent, Inc. and other Node contributors. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\n\n\nstrtok3\nMIT\nCopyright (c) 2017, Borewit\nAll rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit\npersons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE\nWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nthrottle-debounce\nMIT\nCopyright (c) Ivan Nikolić <http://ivannikolic.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\nCopyright (c) 2010 \"Cowboy\" Ben Alman\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\n---\n\n        GNU GENERAL PUBLIC LICENSE\n           Version 2, June 1991\n\n Copyright (C) 1989, 1991 Free Software Foundation, Inc.\n 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n          Preamble\n\n  The licenses for most software are designed to take away your\nfreedom to share and change it.  By contrast, the GNU General Public\nLicense is intended to guarantee your freedom to share and change free\nsoftware--to make sure the software is free for all its users.  This\nGeneral Public License applies to most of the Free Software\nFoundation's software and to any other program whose authors commit to\nusing it.  (Some other Free Software Foundation software is covered by\nthe GNU Lesser General Public License instead.)  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthis service if you wish), that you receive source code or can get it\nif you want it, that you can change the software or use pieces of it\nin new free programs; and that you know you can do these things.\n\n  To protect your rights, we need to make restrictions that forbid\nanyone to deny you these rights or to ask you to surrender the rights.\nThese restrictions translate to certain responsibilities for you if you\ndistribute copies of the software, or if you modify it.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must give the recipients all the rights that\nyou have.  You must make sure that they, too, receive or can get the\nsource code.  And you must show them these terms so they know their\nrights.\n\n  We protect your rights with two steps: (1) copyright the software, and\n(2) offer you this license which gives you legal permission to copy,\ndistribute and/or modify the software.\n\n  Also, for each author's protection and ours, we want to make certain\nthat everyone understands that there is no warranty for this free\nsoftware.  If the software is modified by someone else and passed on, we\nwant its recipients to know that what they have is not the original, so\nthat any problems introduced by others will not reflect on the original\nauthors' reputations.\n\n  Finally, any free program is threatened constantly by software\npatents.  We wish to avoid the danger that redistributors of a free\nprogram will individually obtain patent licenses, in effect making the\nprogram proprietary.  To prevent this, we have made it clear that any\npatent must be licensed for everyone's free use or not licensed at all.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n        GNU GENERAL PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. This License applies to any program or other work which contains\na notice placed by the copyright holder saying it may be distributed\nunder the terms of this General Public License.  The \"Program\", below,\nrefers to any such program or work, and a \"work based on the Program\"\nmeans either the Program or any derivative work under copyright law:\nthat is to say, a work containing the Program or a portion of it,\neither verbatim or with modifications and/or translated into another\nlanguage.  (Hereinafter, translation is included without limitation in\nthe term \"modification\".)  Each licensee is addressed as \"you\".\n\nActivities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope.  The act of\nrunning the Program is not restricted, and the output from the Program\nis covered only if its contents constitute a work based on the\nProgram (independent of having been made by running the Program).\nWhether that is true depends on what the Program does.\n\n  1. You may copy and distribute verbatim copies of the Program's\nsource code as you receive it, in any medium, provided that you\nconspicuously and appropriately publish on each copy an appropriate\ncopyright notice and disclaimer of warranty; keep intact all the\nnotices that refer to this License and to the absence of any warranty;\nand give any other recipients of the Program a copy of this License\nalong with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and\nyou may at your option offer warranty protection in exchange for a fee.\n\n  2. You may modify your copy or copies of the Program or any portion\nof it, thus forming a work based on the Program, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n    a) You must cause the modified files to carry prominent notices\n    stating that you changed the files and the date of any change.\n\n    b) You must cause any work that you distribute or publish, that in\n    whole or in part contains or is derived from the Program or any\n    part thereof, to be licensed as a whole at no charge to all third\n    parties under the terms of this License.\n\n    c) If the modified program normally reads commands interactively\n    when run, you must cause it, when started running for such\n    interactive use in the most ordinary way, to print or display an\n    announcement including an appropriate copyright notice and a\n    notice that there is no warranty (or else, saying that you provide\n    a warranty) and that users may redistribute the program under\n    these conditions, and telling the user how to view a copy of this\n    License.  (Exception: if the Program itself is interactive but\n    does not normally print such an announcement, your work based on\n    the Program is not required to print an announcement.)\n\nThese requirements apply to the modified work as a whole.  If\nidentifiable sections of that work are not derived from the Program,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works.  But when you\ndistribute the same sections as part of a whole which is a work based\non the Program, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program\nwith the Program (or with a work based on the Program) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n  3. You may copy and distribute the Program (or a work based on it,\nunder Section 2) in object code or executable form under the terms of\nSections 1 and 2 above provided that you also do one of the following:\n\n    a) Accompany it with the complete corresponding machine-readable\n    source code, which must be distributed under the terms of Sections\n    1 and 2 above on a medium customarily used for software interchange; or,\n\n    b) Accompany it with a written offer, valid for at least three\n    years, to give any third party, for a charge no more than your\n    cost of physically performing source distribution, a complete\n    machine-readable copy of the corresponding source code, to be\n    distributed under the terms of Sections 1 and 2 above on a medium\n    customarily used for software interchange; or,\n\n    c) Accompany it with the information you received as to the offer\n    to distribute corresponding source code.  (This alternative is\n    allowed only for noncommercial distribution and only if you\n    received the program in object code or executable form with such\n    an offer, in accord with Subsection b above.)\n\nThe source code for a work means the preferred form of the work for\nmaking modifications to it.  For an executable work, complete source\ncode means all the source code for all modules it contains, plus any\nassociated interface definition files, plus the scripts used to\ncontrol compilation and installation of the executable.  However, as a\nspecial exception, the source code distributed need not include\nanything that is normally distributed (in either source or binary\nform) with the major components (compiler, kernel, and so on) of the\noperating system on which the executable runs, unless that component\nitself accompanies the executable.\n\nIf distribution of executable or object code is made by offering\naccess to copy from a designated place, then offering equivalent\naccess to copy the source code from the same place counts as\ndistribution of the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\n  4. You may not copy, modify, sublicense, or distribute the Program\nexcept as expressly provided under this License.  Any attempt\notherwise to copy, modify, sublicense or distribute the Program is\nvoid, and will automatically terminate your rights under this License.\nHowever, parties who have received copies, or rights, from you under\nthis License will not have their licenses terminated so long as such\nparties remain in full compliance.\n\n  5. You are not required to accept this License, since you have not\nsigned it.  However, nothing else grants you permission to modify or\ndistribute the Program or its derivative works.  These actions are\nprohibited by law if you do not accept this License.  Therefore, by\nmodifying or distributing the Program (or any work based on the\nProgram), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Program or works based on it.\n\n  6. Each time you redistribute the Program (or any work based on the\nProgram), the recipient automatically receives a license from the\noriginal licensor to copy, distribute or modify the Program subject to\nthese terms and conditions.  You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties to\nthis License.\n\n  7. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Program at all.  For example, if a patent\nlicense would not permit royalty-free redistribution of the Program by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under\nany particular circumstance, the balance of the section is intended to\napply and the section as a whole is intended to apply in other\ncircumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system, which is\nimplemented by public license practices.  Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\n  8. If the distribution and/or use of the Program is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Program under this License\nmay add an explicit geographical distribution limitation excluding\nthose countries, so that distribution is permitted only in or among\ncountries not thus excluded.  In such case, this License incorporates\nthe limitation as if written in the body of this License.\n\n  9. The Free Software Foundation may publish revised and/or new versions\nof the General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\nEach version is given a distinguishing version number.  If the Program\nspecifies a version number of this License which applies to it and \"any\nlater version\", you have the option of following the terms and conditions\neither of that version or of any later version published by the Free\nSoftware Foundation.  If the Program does not specify a version number of\nthis License, you may choose any version ever published by the Free Software\nFoundation.\n\n  10. If you wish to incorporate parts of the Program into other free\nprograms whose distribution conditions are different, write to the author\nto ask for permission.  For software which is copyrighted by the Free\nSoftware Foundation, write to the Free Software Foundation; we sometimes\nmake exceptions for this.  Our decision will be guided by the two goals\nof preserving the free status of all derivatives of our free software and\nof promoting the sharing and reuse of software generally.\n\n          NO WARRANTY\n\n  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\nFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN\nOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\nPROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\nOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS\nTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE\nPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\nREPAIR OR CORRECTION.\n\n  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\nREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\nINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\nOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\nTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\nYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\nPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGES.\n\n\ntimers-browserify\nMIT\n# timers-browserify\n\nThis project uses the [MIT](http://jryans.mit-license.org/) license:\n\n    Copyright © 2012 J. Ryan Stinnett <jryans@gmail.com>\n\n    Permission is hereby granted, free of charge, to any person obtaining a\n    copy of this software and associated documentation files (the “Software”),\n    to deal in the Software without restriction, including without limitation\n    the rights to use, copy, modify, merge, publish, distribute, sublicense,\n    and/or sell copies of the Software, and to permit persons to whom the\n    Software is furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n    DEALINGS IN THE SOFTWARE.\n\n# lib/node\n\nThe `lib/node` directory borrows files from joyent/node which uses the following license:\n\n    Copyright Joyent, Inc. and other Node contributors. All rights reserved.\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to\n    deal in the Software without restriction, including without limitation the\n    rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n    sell copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n    IN THE SOFTWARE.\n\n\ntimm\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2016-present Guillermo Grau Panea\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\ntinycolor2\nMIT\nCopyright (c), Brian Grinstead, http://briangrinstead.com\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\ntoastr\nMIT\n\ntoken-types\nMIT\nCopyright 2017 Borewit\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\ntyped-function\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2014-2023 Jos de Jong\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nutif2\nMIT\nMIT License\n\nCopyright (c) 2017 Photopea\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nutil\nMIT\nCopyright Joyent, Inc. and other Node contributors. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\n\nutil-deprecate\nMIT\n(The MIT License)\n\nCopyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\n\nvue\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2013-present, Yuxi (Evan) You\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nvue-loader\nMIT\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Yuxi (Evan) You\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nvue-plugin-webextension-i18n\nMIT\nMIT License\n\nCopyright (c) 2018 CRIMX\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nvue-router\nMIT\nMIT License\n\nCopyright (c) 2013-present Evan You\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nwebextension-polyfill\nMPL-2.0\nMozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n    means each individual or legal entity that creates, contributes to\n    the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n    means the combination of the Contributions of others (if any) used\n    by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n    means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n    means Source Code Form to which the initial Contributor has attached\n    the notice in Exhibit A, the Executable Form of such Source Code\n    Form, and Modifications of such Source Code Form, in each case\n    including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n    means\n\n    (a) that the initial Contributor has attached the notice described\n        in Exhibit B to the Covered Software; or\n\n    (b) that the Covered Software was made available under the terms of\n        version 1.1 or earlier of the License, but not also under the\n        terms of a Secondary License.\n\n1.6. \"Executable Form\"\n    means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n    means a work that combines Covered Software with other material, in\n    a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n    means this document.\n\n1.9. \"Licensable\"\n    means having the right to grant, to the maximum extent possible,\n    whether at the time of the initial grant or subsequently, any and\n    all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n    means any of the following:\n\n    (a) any file in Source Code Form that results from an addition to,\n        deletion from, or modification of the contents of Covered\n        Software; or\n\n    (b) any new file in Source Code Form that contains any Covered\n        Software.\n\n1.11. \"Patent Claims\" of a Contributor\n    means any patent claim(s), including without limitation, method,\n    process, and apparatus claims, in any patent Licensable by such\n    Contributor that would be infringed, but for the grant of the\n    License, by the making, using, selling, offering for sale, having\n    made, import, or transfer of either its Contributions or its\n    Contributor Version.\n\n1.12. \"Secondary License\"\n    means either the GNU General Public License, Version 2.0, the GNU\n    Lesser General Public License, Version 2.1, the GNU Affero General\n    Public License, Version 3.0, or any later versions of those\n    licenses.\n\n1.13. \"Source Code Form\"\n    means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n    means an individual or a legal entity exercising rights under this\n    License. For legal entities, \"You\" includes any entity that\n    controls, is controlled by, or is under common control with You. For\n    purposes of this definition, \"control\" means (a) the power, direct\n    or indirect, to cause the direction or management of such entity,\n    whether by contract or otherwise, or (b) ownership of more than\n    fifty percent (50%) of the outstanding shares or beneficial\n    ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n    Licensable by such Contributor to use, reproduce, make available,\n    modify, display, perform, distribute, and otherwise exploit its\n    Contributions, either on an unmodified basis, with Modifications, or\n    as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n    for sale, have made, import, and otherwise transfer either its\n    Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n    or\n\n(b) for infringements caused by: (i) Your and any other third party's\n    modifications of Covered Software, or (ii) the combination of its\n    Contributions with other software (except as part of its Contributor\n    Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n    its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n    Form, as described in Section 3.1, and You must inform recipients of\n    the Executable Form how they can obtain a copy of such Source Code\n    Form by reasonable means in a timely manner, at a charge no more\n    than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n    License, or sublicense it under different terms, provided that the\n    license for the Executable Form does not attempt to limit or alter\n    the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n*                                                                      *\n*  6. Disclaimer of Warranty                                           *\n*  -------------------------                                           *\n*                                                                      *\n*  Covered Software is provided under this License on an \"as is\"       *\n*  basis, without warranty of any kind, either expressed, implied, or  *\n*  statutory, including, without limitation, warranties that the       *\n*  Covered Software is free of defects, merchantable, fit for a        *\n*  particular purpose or non-infringing. The entire risk as to the     *\n*  quality and performance of the Covered Software is with You.        *\n*  Should any Covered Software prove defective in any respect, You     *\n*  (not any Contributor) assume the cost of any necessary servicing,   *\n*  repair, or correction. This disclaimer of warranty constitutes an   *\n*  essential part of this License. No use of any Covered Software is   *\n*  authorized under this License except under this disclaimer.         *\n*                                                                      *\n************************************************************************\n\n************************************************************************\n*                                                                      *\n*  7. Limitation of Liability                                          *\n*  --------------------------                                          *\n*                                                                      *\n*  Under no circumstances and under no legal theory, whether tort      *\n*  (including negligence), contract, or otherwise, shall any           *\n*  Contributor, or anyone who distributes Covered Software as          *\n*  permitted above, be liable to You for any direct, indirect,         *\n*  special, incidental, or consequential damages of any character      *\n*  including, without limitation, damages for lost profits, loss of    *\n*  goodwill, work stoppage, computer failure or malfunction, or any    *\n*  and all other commercial damages or losses, even if such party      *\n*  shall have been informed of the possibility of such damages. This   *\n*  limitation of liability shall not apply to liability for death or   *\n*  personal injury resulting from such party's negligence to the       *\n*  extent applicable law prohibits such limitation. Some               *\n*  jurisdictions do not allow the exclusion or limitation of           *\n*  incidental or consequential damages, so this exclusion and          *\n*  limitation may not apply to You.                                    *\n*                                                                      *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n  This Source Code Form is subject to the terms of the Mozilla Public\n  License, v. 2.0. If a copy of the MPL was not distributed with this\n  file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n  This Source Code Form is \"Incompatible With Secondary Licenses\", as\n  defined by the Mozilla Public License, v. 2.0.\n\n\nwebpack\nMIT\nCopyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nwhatwg-fetch\nMIT\nCopyright (c) 2014-2023 GitHub, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nxhr\nMIT\nCopyright (c) 2012 Raynos.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\nxml-parse-from-string\nMIT\nThe MIT License (MIT)\nCopyright (c) 2015 Jam3\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nxtend\nMIT\nThe MIT License (MIT)\nCopyright (c) 2012-2014 Raynos.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "utils/hcaptchasolver/manifest.json",
    "content": "{\n  \"name\": \"__MSG_extName__\",\n  \"short_name\": \"CAPTCHA Solver\",\n  \"description\": \"__MSG_extDesc__\",\n  \"version\": \"0.4.1\",\n  \"author\": \"__MSG_extAuthor__\",\n  \"manifest_version\": 3,\n  \"default_locale\": \"en\",\n  \"icons\": {\n    \"16\": \"static/icons/cs_logo-16.png\",\n    \"48\": \"static/icons/cs_logo-48.png\",\n    \"128\": \"static/icons/cs_logo-128.png\"\n  },\n  \"background\": {\n    \"service_worker\": \"background.js\"\n  },\n  \"action\": {\n    \"default_icon\": {\n      \"16\": \"static/icons/cs_logo-16.png\",\n      \"48\": \"static/icons/cs_logo-48.png\",\n      \"128\": \"static/icons/cs_logo-128.png\"\n    },\n    \"default_title\": \"__MSG_extName__\",\n    \"default_popup\": \"popup/popup.html\"\n  },\n  \"options_ui\": {\n    \"page\": \"options/options.html\"\n  },\n  \"content_scripts\": [\n    {\n      \"js\": [\n        \"/content/captchaDetector.js\"\n      ],\n      \"match_about_blank\": false,\n      \"matches\": [\n        \"<all_urls>\"\n      ],\n      \"all_frames\": true,\n      \"run_at\": \"document_end\"\n    },\n    {\n      \"js\": [\n        \"/content/clientIndex.js\"\n      ],\n      \"css\": [\n        \"/content/clientIndex.css\"\n      ],\n      \"match_about_blank\": false,\n      \"matches\": [\n        \"*://*.hcaptcha.com/captcha/*\",\n        \"*://*.google.com/recaptcha/api2/*\",\n        \"*://*.google.com/recaptcha/enterprise/*\",\n        \"*://*.recaptcha.net/recaptcha/api2/*\",\n        \"*://*.recaptcha.net/recaptcha/enterprise/*\"\n      ],\n      \"exclude_matches\": [],\n      \"all_frames\": true,\n      \"run_at\": \"document_end\"\n    },\n    {\n      \"matches\": [\n        \"https://solver.minirpa.net/*\"\n      ],\n      \"js\": [\n        \"/content/manageIndex.js\"\n      ],\n      \"run_at\": \"document_end\"\n    }\n  ],\n  \"declarative_net_request\": {\n    \"rule_resources\": [\n      {\n        \"enabled\": true,\n        \"id\": \"ruleset_1\",\n        \"path\": \"static/rules.json\"\n      }\n    ]\n  },\n  \"content_security_policy\": {\n    \"extension_pages\": \"script-src 'self'; object-src 'self'\"\n  },\n  \"permissions\": [\n    \"storage\",\n    \"declarativeNetRequest\",\n    \"alarms\"\n  ],\n  \"host_permissions\": [\n    \"<all_urls>\"\n  ],\n  \"update_url\": \"https://clients2.google.com/service/update2/crx\",\n  \"web_accessible_resources\": [\n    {\n      \"resources\": [\n        \"static/wasm.wasm\",\n        \"static/wasm-simd.wasm\",\n        \"static/eJwrSo2vzM_JLzPVTUktSU0uyczPiy8z0MsvKgEAijwKGQ==\",\n        \"static/eJwrzk-Jz8wrsYgvM9DLLyoBAC6zBbE=\",\n        \"static/eJxLSywuCXb01S2Oz8wrsYgvM9DLLyoBAFPcB5o=\",\n        \"static/eJzLzU_KzEnNSy0pM44vM9DLLyoBAEPaBvE=\",\n        \"static/eJzzzU_KzEn1Sy0JM47PSSxKT40vTInPzCuxiC8z1MvPy6sAANRyDIA=\",\n        \"static/rules.json\",\n        \"options/options.html**\",\n        \"/content/**\",\n        \"popup/popup.html**\"\n      ],\n      \"matches\": [\n        \"<all_urls>\"\n      ]\n    }\n  ]\n}"
  },
  {
    "path": "utils/hcaptchasolver/options/options.html",
    "content": "<!DOCTYPE html>\r\n<html lang=\"en\">\r\n    <head>\r\n        <meta charset=\"UTF-8\" />\r\n        <title>NCS</title>\r\n        <link rel=\"stylesheet\" href=\"options.css\" />\r\n    </head>\r\n    <body style=\"margin: 0px;color: #4a4a4a;\">\r\n        <div id=\"app\"></div>\r\n        <script src=\"options.js\" defer></script>\r\n    </body>\r\n</html>\r\n"
  },
  {
    "path": "utils/hcaptchasolver/options/options.js",
    "content": "!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=387)}({387:function(e,t){}});"
  },
  {
    "path": "utils/hcaptchasolver/popup/popup.css",
    "content": "@charset \"UTF-8\";@font-face{font-family:element-icons;src:url(data:font/woff;base64,d09GRgABAAAAAG4oAAsAAAAA2pQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY9Fkm8Y21hcAAAAYAAAAdUAAARKjgK0qlnbHlmAAAI1AAAWZoAALGMK9tC4GhlYWQAAGJwAAAALwAAADYU7r8iaGhlYQAAYqAAAAAdAAAAJAfeBJpobXR4AABiwAAAABUAAARkZAAAAGxvY2EAAGLYAAACNAAAAjR9hqpgbWF4cAAAZQwAAAAfAAAAIAIxAJhuYW1lAABlLAAAAUoAAAJhw4ylAXBvc3QAAGZ4AAAHsAAADQvkcwUbeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWCcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByeLXh+irnhfwNDDHMDQwNQmBEkBwD5Vw1OeJzd1/W3l3UWxfH359JdUoPBYMugiNjJDAx2dzMY2N3d3d0oJd1IIx12d+s5JoPiICbuh/0H+Puw1ot17113rfu98ey9D1AHqCX/kNp68xeK3qLmR320rP54LRqu/njtmkV6vxMd9Xk10T+GxKSYFUtjeazKVtk+O2bn7JG9sk8uzCWrVoE+Z0AMjckxO5bFiqzJ1tkhO2WX7Jm9s28urj7nL/4Vfb1ObEJP9mcE45hHsJSVpWHpVrqXfjVdV39OjV5jbX0ndalHfRro9TaiMU1oSjOa04KWtGINWtOGtrSjPX+jA2uyFmuzjr6bv+srrMt6rM8GbMhGbKyv11nfdxc2ZTO6sjnd2ILubMlWbM02bMt2bM8O7MhO7Mwu9OCf/EuvsBf/pje7shu7swd7shd7sw/7sp9e+wEcyEEczCEcymEczhEcyVEczTEcSx/+Q1+O43hO4ET6cRIncwqnchqncwZnchZncw7nch7ncwEXchEXcwmXchmXcwVXchVXcw3Xch3XcwM3chM3cwu3chu3cwd3chd3cw/3ch/38wAP8hAP8wiP8hiP8wT9eZKnGMBABjGYITzNUIYxXD/tkYxiNGMYq5/7eCYwkUk8w2SmMJVpTGcGM5nFs8xmDnP1m5nPAhayiMUs4Tme5wXe4E3e4kXe5h1e4mVe4VVe411e5z3e5wM+5CM+5hM+5TM+5wv9bpMv+Yqv+YZv+U6/6f+yjO/5geX8yP9YwU+s5Gd+4Vd+43f+YFWhlFJTapXapU6pW+qV+qWB/joalcalSWlampXmpUVpWVqVNUrr0qa0Le30B1P3L//u/v//Na7+a9LV71Q/lehv1VMfA0xPFjHQqpSIQVYlRQy2KkFiiOkJJIaankVimOmpJIabnk9ihFXJEiNNzywxyqpXF6NNzzExxvREE2NNzzYxzvSUE+NNzzsxwfTkExNNGUBMMqUBMdmUC8QUU0IQU01ZQUwzqp/PdFN+EDNMSULMNGUKMcuULsRsU84Qc0yJQ8w1ZQ8xz5RCxHxTHhELTMlELDRlFLHIlFbEYlNuEUtMCUY8Z8oy4nlTqhEvmPKNeNGUdMRLpswjXraqDeIVUw4Sr5oSkXjNlI3E66aUJN4w5SXxpik5ibdMGUq8bUpT4h1TrhLvmhKWeM+UtcT7ptQlPjDlL/GhKYmJj0yZTHxsSmfiE1NOE5+aEpv4zJTdxOemFCe+MOU5EaZkJ9KU8cSXprQnvjLlPvG1qQGIb0xdQHxragXiO1M/EEtNTUEsM3UG8b2pPYgfTD1CLDc1CrHC1C3ET6aWIVaa+ob42dQ8xC+mDiJ+NbUR8Zupl4jfTQ1F/GHqKmKVqbXIGlN/kbVMTUbWNnUaWcfUbmRdU8+R9UyNR9Y3dR/ZwNSCZENTH5KNTM1INjZ1JNnE1JZkU1Nvks1MDUo2N3Up2cLUqmRLU7+SrUxNS7Y2dS7ZxtS+ZFtTD5PtTI1Mtjd1M9nB1NLkmqa+JtcyNTe5tqnDyXVMbU52NPU62cnU8OS6pq4n1zO1Prm+qf/JDUxLgNzQtAnIjUzrgNzYtBPITUyLgexs2g5kF9OKIDc17QlyM9OyILuaNga5uWltkN1Mu4PcwrRAyO6mLUJuaVol5FamfUJubVoq5DamzUJua1ov5HamHUNub1o05A6mbUPuaFo55E6mvUPubFo+5C6mDUT2MK0hsqdpF5G9TAuJ7G3aSuSuptVE7mbaT+TupiVF7mHaVOSepnVF7mXaWeTepsVF7mPaXuS+phVG7mfaY+T+pmVGHmDaaOSBprVGHmTabeTBpgVHHmLacuShplVHHmbad+ThpqVHHmHafOSRpvVHHmXageTRpkVIHmPahuSxppVI9jHtRbKvaTmSx5k2JHm8aU2SJ5h2JXmiaWGS/UxbkzzJtDrJk037kzzFtETJU02blDzNtE7J0007lTzDtFjJM03blTzLtGLJs017ljzHtGzJc00blzzPtHbJ8027l7zAtIDJC01bmLzItIrJi037mLzEtJTJS02bmbzMtJ7Jy007mrzCtKjJK03bmrzKtLLJq017m7zGtLzJa00bnLzOtMbJ6027nLzBtNDJG01bnbzJtNrJm037nbzFtOTJW02bnrzNtO7J2007n7zDtPjJO03bn7zLdAWQd5vuAfIe02VA3mu6Ecj7TNcCeb/pbiAfMF0Q5IOmW4J8yHRVkA+b7gvyEdOlQT5qujnIx0zXB/m46Q4hnzBdJGR/021CPmm6UsinTPcKOcB0uZADTTcMOch0zZCDTXcNOcR04ZBPm24dcqjp6iGHme4fcrjpEiJHmG4icqTpOiJHme4kcrTpYiLHGOr1HGvVoZ/jrOidHG+l6vwJVqrOn2il6vxJVqrOf8aqyyonW6k6f4qVqvOnWqk6f5qVqvOnW6k6f4aVqvNnWqk6f5aVqvOftVJ1/mwrVefPsVJ1/lwrVefPs1J1/nwr2v+5wErV/wutVP2/2ErV/0ustPsTkfxhoXicrL0JYFvVlTD87n3aV2u3LVvWYkl2HCu2ZUl2nNjPibM6GyGrQxKFhCRAEkKAsIYIaIeUJYQBSsO0YEjLsJXSQqa0LBVbof0oy7TTUjpQt512Ol9ppzt0Gr3859z7nvTkWCTM9yfWffu9525nv+cKegH+iYdEk+AQ4kKn0C/MEwQS8PcMkWxvMhF1EoM3YDSk6BBJJnrhZk/A74Wb0RnUaPD6e3KEXaZI5RE/J72/sDRYXu/rm3V04HXz7Yeal/STphs7g8HXl7++fHT09ablzWOdh8yeBgu5zmw+7mg1249bGrdZLMftMYv9uDlI7v6F2fz6wNFZfX2vWxo/uLGJ9C9pPtTZvLzp9dFRyOP1pqYNnYcsDR4zNUFJx+3mVshhm6XR8hQ7NQuiIJwsioIoCXVCm9AF9Yr0ZDOu3kQsEjX4XF5/Wu9zkGgimYmlSNI1SHKREAm4HMTYQXxQt2yGjBPB4XY75CKmRCDZlVkitWcJybarx4LkbnITAR6zl2TJ4ZbG27PZ9nF8qchfkvHlcXwOza0DuP4uviYuFDxChzAozAfIEoMkRAzGEBkkmTRAkCIz4EbAn81lE8mEwYiPAwhmwuDh3ZGAR/5AiBgdcDNpNIRIjhJdU2aaranRNTCUlOjYyMgYvdb5qU2bjtR7l69e++XcrFuuW0gkeu7SpfvOeSM02k+Cb2R7t2z95dpV7vmLf3qswfeK3RKzk2JwmjWY6TA2Bdw9EcgDcgptutIo7tpwzv3t8a6l7ea5VyxaeqFRPyZ/840g6R8NvbH7p4vnu1et/eXWLb1jvoZvYx8KRqjnSXGvOCJYBL8wJGwQzhMuFq6G2mZ6E9gDaRhlUWMmzS6bSbonRI0iVD4C9RQTgzQdywxSfyAb4IcQbcbadmCXxTKJGSQWNbSQCLRQBzEajL4kz8Y/QJJqjrGegAhtlIaOHyI0Dz0V9LrO87qwz/b64kGLbpaxt1XOt/YaZ+kswbivjqQWzbRGouzgn9Hmv87T27y/uddDDLrgqN0tNtNQs+i2jwb1+iJk4vIGC3CQ4l7XVo/ospFxm0v00HGJjYUnbNtsNtbt4+5w0ic/G+0gpCNKRnzJsHs8njEnWu3WODua9cFp9eOFQENDgBpNM3z2e++1+2aYjHQCP3/ZtpdnY5Nf3251Oq3blXH0LfF6sSDEhJQwU5CwZWEUp3v8XgO0EjRAJEQNlSZNwejKBTyRXIrkBmGWxqFZ+Gzw+onHQf0Ex2wBC4KESMmsbkaijbY2ylc0ttK2xAxdNtnbRg7pV5yjM+5eqS/9mbJ6lnDkk7/7cwtMs0QhDEMdmsTtCJOeZf360jONEUIijXSevn9ZDymWigv8B88+e591GDsB/mQTyViX710nGFh9xqE+Iowdm+ASZgvDUCdfOheJBdIeXzqF/W9M52AuKJUs1y0WTfRmB7CCVU3g80Q8ESr8vk4uFuuekD6qv/HoyBbP09KljzUsQNClfl2sXt5bH9P1s6os8P7DZk0b/FruCpMjpFgoFMjBb63ZaXRvGTlJb96HYPfVtxDSUk9eg4vNn/Yl1WqXJk4KgonVpQB1aYLeSQo5YQBmwFxhgSB4AD6oQIg0EwBe0zkwarM5PHdAe3kiiK1mE94/zcTrD6R9sQHi6yBw9MDv2/WP7d//WH04QRKRbl2sQd7XENN1R+DyXPL7+hvXr7+R/Eh2d5HDcoOmmx6XpKIkFST8R6+55DZKb7vE3BORImmzfJlSo5vNabjRY1+zk9Kd8iNygRShpVhzOdzwtURwrLHxVxSvAfyKNZzOMCw0fAvx844BwBOsY4agW2BS9mZhHvqdgGYDxkgyYoSR6BFzDpuL+qnH2Z0kbrs8y+4myW6nB265bA6jx04HHB6yQC9bdDl6rqX0mGU0Tg7FadFpKzgCpfftLpedRgOOgs25yeH1OjbxuskCFQDrIHxFgM8g2AWvEBSiQjtAmYN+WCIIceiHpMGoR7xvMMah3Y3+gAcpgT+AvRLI5uLYOdmcHrorB1VB6pBI4iu8Cx1EHCSIabx+Gp61J/V1p5vokym9XNKbiUufSn7drL8mtWeW27mFP5X/Dk+JqDfL/1156qobfr6k15ee52mwtTXb2kqm+Prj8q5zVfJ+vJzX8yVyNcHssq3QX5SNyTy0R5MwC/rKAJMJ+sZBnNRBfFAfqFVvYgaF+gFtyWWRIBmcQHhaCKuskVUcO5OGdHpDrMFAuodNbu/0lHj/NdfcL6ame93m+Rtsjth0W73DYAs1WYbX2WwwiHXf/uxnv60js7M252X0gM3uMgZdom1+9w5neFVqY0EUCxtTq8LOHemFSwO+dKPBEGgwetqc7i1zlrXtlq46JorHrpJ2ty1bsVNQ6vGy+IA4V8gK50A9soE0ksqAnzpZnWIGoA0pmPxOnGAGoJ8U0B1QyxaK9UJSCuQC30RWJUVi+BaS0gDvVnzXnQRckzDQdeGwGGj19ucWeta1OOoCmWgg6Tc6vQ3+OoMv5suuSC1O9McunVc/o7nJ3GDx+nSBRqvOvdDXYm70ELPN192YGWvqndHfKLXHs52dmWRbunWFNZdb6m2ZSZ8yicRoDszZJL9+RZvb1dBAzBbRqNebqNlCqLRgD7FfOLiAEpvNKoa8bbPtVlPA3n95MGwm7kaL3ewifV3b/3B2+zDRNVMaoiTbvYdYFw42UNEtMP7npPgy9HcvzNcl2FJQfYYocSIigmS1xsYzsHbKwihPAPoxMraCsRtZRFcMJ8HNuOac6H3TWpdexhgjhi7v8ve3Zl3rrjLpd6xde7jBv2RltG2g8ex5nvU7jNaDYxuuNNI9l3JugqVUp7kgz5+/aPbZnCAMnJ3uN+guWbf+Uy772Ko1n43EZq4aXnvFWtehsfUX6y4fG7tBPqx+B+mg5pyNjd+Ld4gewQ2jXCDGZC6p/gzugF+XA+4qySqWo49On53J3Zu6r+/brmO3bLFdcBGJXr5h9W+uueYrLc2jedJ2rO7V3H2pe/uyg9NvuVx+/6ILbFvyo80tX7nmmt+shnFoZPjlQWjfNMynecIyYa2QF86HUtkgCuHo8zso/EgUKG5KzKXoIDQ50iiFXClETMUiRvUkcMpJ7pQTGm7udkd37Mg4l/TV6RJDSX/jul3rGv3JoYSurm+JM7NjR9Td3czwNmNNJaDMwMBmf8QPD3/MgT5naKmf3jRt455RY2zJ3HZ9785583b26tvnLokZR/dsnNY0vb7FMFch4EXki5E1Vo4/m3T86aQjtJ2etZ0EbWcGLhjpRwfy5ypz3gD0Ls24daLy5BHOoyMV9MGPQFdzbptz3nK4itcm2UVI4UiRhBknNi4z/onk4U62vaTw7hQ++Wm+mBcUWWEE4HEDLCgDIR3LAf/dDWUiUctEFAyRgOETA5Yc0EYymgBqkMvwCQWsp8HoYqwHkj7sXyKYTPbMoD8ZSs5sbZ8XpjIMyQNX77/G6vXWdzf721pIvD/WvqD48NU6twPJtO7qh/MI6UkmeOTpxXq9GaiyJxBqJKEg/aef7LiGkn2bXR6fj3jqmxuJR/6d5ztbGZc4sfU7Hvkk7xQFT/I6NQsJqFE1aK5qwAkba8lMhIa15WvgknMHbvjUAQI1IGohAFelaDJ93y2U3rKvyERKVvYwlK0HTg5Lj/QmIwZ9hLWh8RRQkr25iB+kMezWuLysnXwk1zEepqiF5sC4KFFBEseptH9xfpzxJw/JsgIMdX712kIhP37tV9W6Y/kNQutUdS8XqNA9AK665uWy5K3ikd27j4gMLDpFaWQGPIV3ACSl3q+Ki4DT6BdGEBdQB02KvqryMyQBnF02l06C3AdjKwJNkkaGEORn/yCQJGBLAoA2UMYxE1EY2JTyrbwo964WPvnLdrdj4RyT6G8w58lK37ndtznc9hXdq8KJczY0yvdcZxJ9DebxxaSLdIkSGdx90ep6n/z+oxz8R8lLbp8VmK2zrY11ouXqmfMOAvtl9bl2WVL5de3N04cetDbUUcsb8oXkLs7rQae+CNXzw2hqB4wnkB7AcBSJAROf1aHkYjSCRCr19biQX4fbLlHIrO8Vcxsy0LVFaDQYWkA6sosIWVSaRhkVKWGaortWFlfuorTYu3H7hi665nwC7UtY9fMnBbIom11UeoHXhBZk9uqulUTi424CeL4w4JWY0AlcniuCxUMLe5BL8CG4PhWdlGFO92RzGZjWdKJUJK1BkIBbh6W2HCG5NglKkyWAkQMrQZtBS+VpoVQIthLSSgcAkUwAPimwemQpQzRFeQImhQOnIaMTD4hXiJsAOhdA1QVyzWJhDc6JTAT6PARZ9AzS2SCPKUJBLJqiOEAIAuc1RNloMXLwUV8xSOLaC21jExd5X442Z0YS2xMjmWZghKMOLzTe9t6NC5Ne0uLwekIe79VOD8zdZkwAQZbP5W76iNPjcZbWQEoeGDmUToxkm5qyI4n090BAfH/37TSxaGPv+/BFr9fxKDLckIwQj3M7nm9nuZbPT3zP0+z1NnsEBd8fBXloDuDXBiHMJFYmCQ0ShQVJE0M0CZI64y/0ysGMLEcgRRjHcZ3xwuWOwrp1l5tyI3oif8kSNctHhknIuKKvbwVZR1pMy/v7lstvkzrAUH9t2TbTvm7/ait0YHH5BcY1FxL9JesCmwZKv3Y4aH3fAkIW9LH0CvkScut93WmxfwFdPNMyQ5FDC4A7gkALZoC8MAj9JXigEwapwiMyZQRA5YvBsImngZtAhhP5piycOGDApfmJyNVKRk0XFYLds8P+y5Ysucwfnt0dFF8+Kh19mTS9qGsJO1bvW+0ItyzV18Wnx+v0ZOIWfvala7/qLH3K+VXK9VEMBZCJcF24f1qdftE6QtYt0tdN6w93Hf1h3ZYtdT/8RnJ+fW7u3Fz9/KS/rbGxzc9S+SZx/MCB8WMKhcB6fgNw1QKhW5gpzBEWAgezimn/vEaCY2sGcIGU8dLI9gPZA5QFp0gNc4PU38JZHH3EB2xlBBhqJJk9Q5SpDUFiyiaMyFgPETGqSyTkP3hSvSm33qMLRGP222xma9C9W+f2et3EWX4Si9oP203WRndpD/nWbDeRV48ZdDrDIW/ac9f5+yHdL//ktnrqsYOEC+lnaEyf3N4m/wGz0e12B61m2232WDSg8+jdkKeHOJUnjVaT/TZ7NBYQ36Wz3Y1jhgVGwyGP567/3O+BPA/d9hm7h9ItmNYLXCc6Li6BmdsM1INJtnFFPYhCEEcbiEVUTOKJobjkJLE4k5qIL5Kh35WWmkpzTEsl/4ZtgDxE6DOybQNgFxmwC/nemGxvNdt9BWK3NdgNNtlCpGLnp5ct+3Tn0MDTu7CXdz09MMxQTJAKMuo03/68wQiSUenfJRS/FZxcFAcFJ2C6XmEIxqiiKlBVBzlGVLggFEGdYoowwpNho9jIeXkSKavIAHeBPP0ilh5ujjXVZ6xdIVkX6rJm6ptizfqfHDv2o9ni8UOHjotEkp9tF+ss5ISlTmwnBWAvATMyDcGAtbtFCqZstzah4qfpVlsqKLV0W/XHfiTq370XvoUcTgoXWqxWy4UVXgF5wSTTQAO17s1C+wIlQWARBwKULsSDGRdXkzC86I+70iCviMoTQO8+IsDAbo4hfZ7fD2n/fNTJxMgXDurrfUtRUVeQyC/JAOMJXwE4OfMyc41dns34w5fsa2byey3dv5cL+8dWyvdy7a+Y/4c/P6jAWmCwzmSa2zOEVa/RGijPtZJVLcCfm7+eAGkDAkfWz4c74fQopaNplpJfkZmsIt+2fHxFHnPdtIWzKFtucsmfZ8/H6QWrVl1AWarg5yfFF8QRwSTEYbwPYN3iCJ6xRcRpDoOHcvElh5rnEAUBcQZB/XQKTxHtOWgI0ETAECKDNAWTgWy6zhkwFSgNzwnZEwvOHjDRcHvOlhhdHvpHsmL+yoc/ZVs+//jy7PS31/Sbtlw+cNbIj4k3nmwy1kW9fbbyaf+T1xnrHdeZwzQWWjGasOXaw9Q88+wFCXvz7cuOL1hm+9TDK+edRc6KzT1r1v4t5v61b//SG3UZm5NxL9Et9EbgNAGnIuI7GGzPwLxuBmmjG2TixcJKmDOqdhmxNy1P6UxChIqmeZ+lWT/hIWrQA2ansaiRfSNGfIqkEo9wDFEgm7/4z1LP+euT5qaobvqjwB2cFIA9eHS6LrxBUcpL9ODmzQevZXIT+Zd5RltrJhTwuS2e1nq6RS6iqQEkmofJniV5b8ntzdMWsv7wSGSw3jK8NStOD8r/M6+DSzAd84ihsUPP5d/NBylkjLaH5v6uRlOwRW9vScjLmQSUrz981VWHFZzxNvBHDqFRiAAnx3XGyE743cZIwi1qKJWqjcww4uYjBbowm11IH3jcd+Im/1euFZn0dQKnR0oUdD8+duzH5FnUNxG6O43c0MJcT6/83w8/TFyygROdwrEf63Q/Js3hYGtrMMzmPiTfgQNyBdMRmioFhS8kAlCDlHBItMCRiTy3yrDqbfri/m77iUP27v1flGUFmFYNgPTgMIdg2Ljmjq9t3Pi1O9bICxkw8nsKPSQwB2TxVtHOWoUx7MjaqvOacypcDZbmUgOzx5DIRqb+cGAma9678IKrCStdJyGmfEpH9mzc9Bxd6w4yxhFfc/QsjXd2PXspK/4YR4jn3ZeIoQhcBQPDHpxnReI7QJgCXJFD06pGLpf1iy5t9huXfX/ruWsamx/eC8VLHBhy1QUXvkfv6WGgMh426F4Z682+vGfXDRTK57Bc+uyMVFwo63ZRd2oVAtAznVyroRapRV05ZBUQUBHxIMd8vVkqaJWaPHeWfp8E24LwN4O1l1uUNNrKE6+ob0H6mBdfC5JnAcMxTIaivArb0wy2FmGJsE7YhjwLcsdpVwwIpDFpQHUPgBdzpbO5ZC6QbQFslEzAD54CMYz50gHUahoDuQCwJwF4B2hfOhNLIonMGTUVDbAq8r6mF7/f4W+1rVlTn+p4v2P+fEgCscrlXJu/c+bMzuieSHPC6xyZW2dp8jZH9kSrb5pDnubIh3ym8lSjBROlwmjjYOSkMDc7Whi12yEJzo4Q9dLmTZqsVtOANBDt7OsodDR31UfhQr2XysG9YDoQHVhaznzzwSr1GGu7l1nbNbDZ3w34j4SYUheZA0DawLbNIAloJeTcAkaSCxjFjGJ8VI7LKTF6zKU6g+2oyWueL/8+ptcZ77FFjLt04shZ56fIWRt2Pr8HKI4EpAv6FoYgeat00ijqdhkjtnuMOn2M1M03e01HbYa6ktkTeH7nBvkrqfPPor0SEKmVu16U2JiBvuY4u0gmYBx6YRy2CxngxgWPplvgBAddbzZe3W9owe1NTHnzia4hQoa6eKoMs21T3Js1xb2J8o2uoSFlLA+f4b0yz0b/C3g2lC5Ajo4T4BmR4eaMdiBeUQ3G9BVcWHVOGsg91rjTIq80NVr/06Kra7TSO8qKPsVcLan2aNU2fZiOOsVIXemfrHrTl02NftF0lKO+YtWhzFvqBDrB5n8MpCCB+IWAQTAmhGRWCFS3/9TTRfgjsVEq//mPf5T/TCmx/fGRn7e3//wRntaYAXTCL7/uZz/Si79p1jfnz3/TytJMzWHN7G0cX9lgZCegXSVhqTAm7EA9hUaI9mgv4sxGqLS2XnshZntAloH3YCr0Eu2Fh7s/cF8Ior2gAsdoDn4gbyi9AUmpUDk/YGk0M7+HQ2byhgUPHrhh+ZbZzJwZDpkb5XkWuNvowRuiNHUuxeqyZkz9NXmzUpjcUymM68f+KF4nOoAXGoAxyJXiae5ywChwLq2qGDIVWojahgot5P4Iom7texcA0ZPI7k2bnpu3UUth5Lqqy7VAHa9SXjxvWSvSwPPG463TF2upF41XkUrNawKnj98THxfTzJKKOjLslCHCpC9g9RTvE+gvB51BXJEkUqYWTT9FXFxS472Jz1zfnGYzx+x5iyVvj5lt00is3R43O/LmRkveTDz1Frxj8eCVOW9p9Fja5femoYMDXMANeNBO8u0O+BRuWPKQl6OdJKahwIZ5Wuo9xNwu/6QdPjWzN8z4CdxAXwt8AztrGkkoOstHYAx7GfXngoXXQRJJADXXjcB6epEFh/oYu7EGnNwSdEGwuj1G+UdmM/Tyn4p4Qdr5BTwTGQt44rcWp0mH94Nmi+VP9Ci7hG/YZWmm4p7CaMS4mBfzim4e2j3n4zq0HLC5KNZEYJ57JjnNJFU+YELRoJFSkUoo70pwHlY07gI/vqVgxEKeS7h5iYb52QlU0IvKayU8HuGYl8le3xJfERcIfSDrzmcciYN5BFSM/zHOfcAcDnD+hE1nZEs6SIqi8Q9YXT3HUnFeATHfk7YvyPk+cw7XLw6e6/MxAbjO6bhv3777HM461nzhudti3f3MlFn6oqLrKzBVJPlV87ZL1rrHdlOU3+bN5LiX7j1C6ZG9lONjsvS6y6KffVUUX32Wf4PqQlRlqvLvp6DfO0CKX6xa0WPJmI9jqohyjIG0AaxvzoPmdIVrN2Z4PX0kqbylnQOEFm+wu6hHqtsOoJ1EIXN7mqyXb3B4aD912W/gsqXEQSLfWQQvLMKhXICBWoChTPN19pfGecPwVBYkn4NK9jr/mn2U7lvj9w8sI2TZgF9uWvwrfONXi3FgFyyWAkwSVb7/3v97/SrTdhB4N0Ww/oT1QzcztWoOrOwnqV8rTmmlXnalrqpuE2nPMPCjaMnqRa8VjyLGlE0sikDj4uJLBuQcnxhxRTx8wPIxmtZecB8i5lmGqiMm5khcQU6KRZhapaJCBb7GDxTRAK8EnJTYGZ2QpJJEC7JQZgi0zEEROWrC9V1kHGi94NH4BBVEVmiJaRvzZeaAMB37OMiQwYr+QxHMFP6fCWhpMoHzIc8NcGgo5Da48VNv5RX5C+GgR4GGC/FkAiQdM0EtqpHc/X1UlqFxCDByg+W578MQc5yES0SqgqDWIUe/DtQfrb5oIQUG38A0EsjzAV8PWdETJ04gnTxxwg4DoHLeSh8+cQLpJFxAQZpzbkeDvEfon5n2XkBHR0TAjKDkzICak6fcIa+Y681k1GyWj5vr3WbSJ79m/vDUW/Q3JpP8qLnRLD9qcsNTiUjmessU9zQw1AHfjjBAeWbGlTDicMoN6sJS5NdInxlygTLNdPSUO7/BEuSiXDQ3uExktaXBTFafcou3Lb2TlQ3tb/BCZaFFk9A5vYko3YJZEW3m9DdQgQaLtgLuch9dSntZPhS7CHPKsWxEiRVa74ZCofIMDtqhZGiSn2JFNLjKfU1/wPpDQHAQJp4PVD0K3/PWdVfam/7GotRKU4CggakHaC6vmw9yMiNYGSW7/5IfM5vNDbwiDXAK1020Tf4nS72FQFEr5CcgxYvzzIyGf13UMVzQwWeHauX3pVWVRsXfokoFWPTY2dwc565+Ow+bdQe277zX7zr/i9zAxVLyNNlp96AqBX/0xh0773ZaL9m+/UF5m/oKpCrenWC6SuTh0WKnKS2g0Ud6MgpJV/CwQtTZFRU0Za/kWkSWfl81tSMWHRshReDGcboXNFDMUV+GVH4uz2k6x1Ccd8dzRddQEJeATNQC3AbXYzMHXdVhNz7JC0BfxdNzt0BfJOCLZJg6JMD0BarXG1Ws/SXuIEAWcXRZDO6fN28NIXlA+fTijed8IY5ubnJB9WiRsIIFxdkXjvdVuG+SHJZsjh0LpERjYdNN3ro1ayt0ANub14NLqp+kJjmV2Hmw+bEyZ1KRN3iLo0FVFsQjZ1yLcYn3E4xr6KFCYfcRdT4sESMwYgSFvQSuOspRTIDjFzrL1ej6d1Ojy0ycpkYTcZpdDWb6ZOmfbS6Xja7/v8jgkjBMlAmGnjnuGqYvwLxHn5yIKsgq2iIPw10ceYqCfC4D/XlWNzNmUGLZMOpWlmd/hGWUJjBV8o9U8lcpGDY8NLuoYhqc0AJ3w2bZKPnT8Mfnz9tkC+QfYNAbsDuNWpQD2dM/lb7M+ursSdUnSOb+i51BOfigAnMB8rQizB6NXjMwGatPaCzjQWLB7+UJM8tOyR4NA/KHk8tAOv1LUaIfIdxxF/e5TlajXSMNTwHeGL2WlXj9RxZfo1V+w2IhPdZGn0Uo9+X9vK3jvDH42MbsA7yVeSH5suqhqid5Qyvu8vkcFkg5xEK5L9X8y+2i8EWiOhRxxNTsy6oS2rUFoM2zqIMRznzSuWZjiGPGhIMG0gljwp3LtgYc1B+IQ8V83V4oPdPdG9D2EGByeIAiBYFHWVIgF28/98v7m8PPef5tqP+ii0nk+vO+lBd7ZHtYLIbDJ6TwOPeRY/PycW6XQaaqcPl3Bw0rPv/sxqGDN5GmHduCS40XfO3ldVIY/hUUjTkK+SANc90npy9Pib2CnY0bBwmBVGNI0ZzB49flDDrm2+bOGdy/X5weuPvNVxZc+tOHB5vMX95LEpd3yCceeujnddZnjm0z0yNLX/3erTOk5U2DD//0UpN8eJd527FnrHU/f+ghouu4XH5X9R98i+GziNAjCO2EOwky6R9Qbjyirk9AD1K4xzzMAXUZjGgN8gfoGvmPF9xp0RUuGPxN4drrvY2vyBeSuj33+9wX7ji/mK6LLc+Lposu7AvNPnjftS3BWP2Wyzd2NHaQf7jggs859m9p63z3UzfcP0xu2LXrydbI8i0tOssly1dsI6P9d92xiqxeLNblBsU5ey9qV8fNW6KfwQrj5jSQnhlk0mkgUcstijoYS9NgHKEOjzvUooIk0jNIEaVzDVmEux0yCkV/FrEFdl6/2WlOLjrLYLlglOydNjoQJmv7Nl5MxaOXyke23eow797iO7hm7U200RSePWI6ayhpdl86ungTDQ+MTlu056z6I/lL7hHptVu33dOw6kKDfoPW5xlpfqvQzXxN1grbhIuFa7kVeyoOQKypI1MFyVMUYfEKZxNNVF1whUwP17lUXdRkJnZXqbPkty2N5hSKaJ1m2gZYqRPVVilzaUfFDV0UKuelG8zmTpz3KXMj9Znx4MEbxRqsCH1O860mH3oA8kHpFzIo/aaSzwdTQIfopBo67jegw/VGHqarjqDVxIP4JBzwu40xHH9RtN8YtYhFr704u23D/itI/RX7N7TNbV+4Y+eH5+9Y2P5ZFYkQIUzgTMazW4l5zapVa+QPb73qg2VLliz74CqONDDhPkcKLFaQpuqZRnRIGBWEXBUe0xStjIWY4hOgHQN6zbouvWY8AFxMr4Tt9zsVtDx39pbEY1dddUxk7peoofySxTKCcvOIpeHEv1sa4MISgwtF5czALsJn8DF396Yg6nJO0eF+uPK+pZJNub0FqCPqfHuQ39LWL/f/VqXb6l665ZaX6oYd91188X2AaD++Jgq6zt/8pCg+efPew5Qe3gvE9XSVEBSaBHN2RPABDskJI8JZwqYqXGJUtG/ZBMMj0RTNMNcpvgKsqmLpM7ugv4jZ63cUNtdZ2odXELp1lBxZcoFZv+Yfxdt3yXu71460kj3r/AfWrL4pfM4lpajCaE51oBsN0YG5puVDbUb75jmjWynNL1lyyZdhrrWOrOsau9618gKDfv1y703yuZXG+PhEoXPPMX+ENsBgQtzHkZVaZeT3MwyX4XKFSiPxDvU7SRqVRdzBn4S3HKDl2my+hOquzs9fR8ma+domIGOvuN2mgqXVYz7vM3hmbKg3GM77mWT6hy2VSty2JX/IMWzfsWDhTqe22gu2LCQtdRN14bon8Ggz2BtsT6i+f5W+TcEYzQozcZyeee+mfbEc/IzKEX+frPfOZUt+8mr6CTpMkqQw/Malso4LHY9swJtFUSvsSXf3AI8d644Cd0ZymaToSvpiGb3iZ6l3pX3xHHOMScwgbIrjSioAg56f6CKkK1G6WyLFrfa6OvtWUQqfAAQCB/kLtt/Z5L+QOndjvk+XTRxJZHV9JPxuuxm4oCN2NzGX21Uq07k4ULp+1LudEYUzArECxAfEChCfJxMDoCM+ENAzaXTcErSEiVvnWfoQH/BuRLKF8HgR5KaTQlGSiwUNbZmrvg0peQ/EeCbLg7DFqi8UCsWizFJsR20dWoSk0AV1mANYepWwUdguXPQxtZkEs4dr3r0GUT1Jcpsos2vxkzigu1y2B9kzPAkRb9KPa0d7IVN2Mkh6ata9rVLb8SpqeFhxh1YX8/3KAYjN0uAhP7a3mm1AlH9jM7fagUJ+gPQctXe1WovOrjQOKahLCxTLZFWZS9QsUQuIWbaWC0XqDYUqOLWgGR8pnHWR2qPDZ8SGSuaA/4mFCIqQUYMHGlnjjhKjgqZJDmmcGo4hi86sVg5JWXC1WdK4p2iqOVfj4kCv4XIAJicFZeXXlwqFih3WyOz1z4vzWD1CUI+sMFdYXntkxAMorefiRpTEkkRdCJngXiy+eGKQBowo6hgj6LnF/J5qVku+rq/L0uo2kV/zo/zncdXIDH0z1mI9e0/3jKaBDqs9Jc5tsa68CK+mW+xSjfrODZ/tbKk7m6XkFtajrPqm7j1nW1tm2C3TB5pmaM4rtBH70Qf1n8YwqEB41dmaBSIopgJvvLxqRtMgek8EJkrE0w6oVQxzruS222+/TZ6QxzmrIo/zlg9yow5LSet2eKEoT2ynF5V+uIS+SCY4X7L+lzff/Eu5n0gTnFuZKCr9Pax+CukLJwVcJFlU4d+i4M16wJvMlh7Rcl5TV4ZUvVLm/OjUVRCQOQyfFMIMzdSClQgKe6jgcy1cg2cIlaLEVCw2ynoGNrZOC2SxbJwon5wGXO2redU+eWqbdgDXdCbQTzlATgv2OF8T1a5xU/hYsAvKMqfhahcFRc+5RTOWP8k4rjV2TwXukwKmm4QrB2tripNaFy/mKll2hMto3EBOJ+ftW7uTiE/edNOTItm5dt8tlKMIektN5fFsddkLotPPDDu7/S1DlA61+Ludw66zMrwymbNUW6oq/8ZqY3wPWxqqCOOCFpVr/NbqF//zIyabuPjBR002DRob0bis0cKjDy4WbaZHHhwVbYLiO15UdMC45ns591ZSFqHk0Ho+WQf8cZNKBOoej3DmBaUaxONFxSucL0AJlgpUWXtS4kfy2VMnWpFIslYJRQuqZV611pcXusCRFLOL5BdOmX0EuUG2MJ4lUFUza+/7ob4maG9cZ4Z6b4wichbqj/nocMWZspePDhg4+jQuv83FXD25bK43oY/5A/5AMu2KJlFpgwyvscoJVePzKfEBIudRuccHiJv890Zz1N908Fubh2fqPaVLNlkiAbjKSzP1xEN2S9IEc81xyJge1qygEIWTykAlgoRehny4ocxa3Bfx2/4iF6WZX7J7Je2FXCiWNXOcTPP585CyDnS+sAJGHWp9YriCAugt60puBMYQFyiXdLC1I5o1YWnC1ymx2AVZEGISHUSfYQEuQiRNJpZf6ouEeyydBqM/7F7PdZvr3WG/0ZAy94QjvkuXFzTG3bzMJ9KcBotLTFGTYb0srDeYaEp0WV60bl8abznqjoXqeOfWhWLuo6HE0u3WFxVeDseKsqbKZj1qsBSLFsNRq62Ce1WeNQQzrE3o/Ri+KuYDuTOQ8/kDGMMhm0MHXqOYiMIvW5PZXAgMdnNMircn5ZsvS7bH/4lmHR4689FHHp1JPTW4R3H2aybTa/9u98myz06a/E750/k8udrpnywrYAyAFNOG1IY6DZJLLJPOxDKe/1UFHmKy1vj/ohrkPWQdgNnO16zOJBwX+ph6UERx2ZroLTQg9V3VJtXCbG/J/7Nn2fx1e1S9M4+lIwl54D7TmkXMpxxVa2J6kuGzYgBtIZMWRE6OwEMmgCkjWr8MngKyQkZ56ifjxbI5wFHMK5hM4Edc1oemjrzyU7yNJt+S1LmtIEGiIkVBjbfygjjM2h1jegi5RB3T7tUZDeGkP5zL1iUTYaOhjvgDLKJADo64XphwrUUimU2wwAIv3XDDTWT7TZDK92y8nPRcvnfv5fIbl+8lF8dCHf5B6aFlRuPmV5csCssPbSouWhBrj4bbGmbNPrbUMLf83U03PAFfqd/SPqNx2UPSoL8jFOsML1ryqvyD9tiCRcVNBsPSY7NnNbRFNDK8XnAx6rgevU8NIZobFHPEIRrjKBIQbgHxw+DRocCImjLuaGesPjD1WZJ54+TKh160Ej4g/9Xmm3fZkaF9m+f55BekS+BAn7P5Ri5dKPet6brrPrJz05qeu+6T7yHbA+iD4e9EzViqsxNdbDo72VVnAF0xJj9Bx4wGYlmwf8QX8s3bvG+IDPnmb7p4cN+Cy0Z89lLXRnLefXf1rtkk33PfXT10oR/fD3Sitg2zhQw7O1Psyo8ZTn6CsChyeWV+xdlqEVwFOA9k87OEtUDmtTyRZvaJWehxYyJuMCbhTJ/z5wIGIGpwU89ukSzcYM/xZjwL7xqTAXykZ3dqes0/UB9obIvMoLujPZFpwYD8gDUWs6Z2T0+GmyMkmpxujTTLAXjWHqynVzbUB9sjPfKjqRS8tRgehZNkfTgUsU3XOtsPaAXRvfX+VKw/OTM3rS/e7XtjSKcbMnjs/j6XtclvH7K65HPwyQxgSb1d8b5pBw0GeKUHHvT58aUhuyKr8vlhFOoYL5ACDmiBKqsa/Xy9Ga7/ZpEmoOlCIi4hYrehjbJ4L+4HGhfAVZ+iByaVOsFEa3rA0HdwYJ3LNdQ52tLTdc6/dXatDjQsfGO7qW/jZfJvV399aNaNi4LhHbfubzRG5l9L7CFdrLVlzh3z8PnbbMLwSber+9r5UWPwsm8uOjRL+vpqXTi2/c0FjYHVXdOH92/sI3d1tyxODbraNzyTWDtwbZ9hQBq5Y25LLKZrmXPZxr7SUs3U5XjxXRgrXSCHoB9twJ+dwVzoaSKKur0WZO6hz1kANbaOkrIFlDREDWxa0RnALf+HzkA6nhap7uQ+aqL7Tuqo+PR0gy7kSUacYmLcabaHvO9vNUfbouat73tbbGbneEJ0RpKeb995BdHp5KdEI4n/p073n3FiFJ+SdTrSZxHr4973Pu9IJhvE8Hc8Xq/nO2GxIZl0fP49b7xeNJ+vpSMKNotXWNKcT8OzktPwr6KgYR01HKVc1FwwdrMKpZJFGm6TSBp+lBZPx5yq8hT3Q3PALE2hnhjXeJc56YzL0x1zcT9B7sFMutMuDY+d8yjLajir7eL0A1VOkqQonRxUKJ8Wy4/FMGp7OK8lnChylrKICiBROlm5gCfqayfLdPtJtvaikcVE8JUX88DQz3C1NjMSxqs0q/k9W4Mt3zxw4Jstwa17bj4UjPz0c5+bCAcPESvKoXRi/sA7V155B6V3XHnlOwPzZ5+8666vi+LX7/zsyS+EZZBsiRSu0qNwu+AgWoM+Rh9Wy2e+ptmvJpvxfLX5bE/FA4VqvNtrcCHiBo0DfFHjvFKVqcKfFFmsv8gUfgP6KsdEeEoEvlC/xJ0HqFRxmYTcuQMBZYUV2CsOyhwttP6evC07WeyXmi1JFJkeS1eEfTjV8yWVPJoS8JMs6IOD1JZEZcqZRBx8XOoBPv2qJmdEGmm1pltnYzSm6+wBk7URfjWakjzDuUysTVka3+6fO9QY6F/QSZ91mYJu+V0dy6IxMLmeXMf+sRrUsmZA1KpiatbpfVWfrqiuavGhz2iFf67imsQDt32MnK86F6nu/jXB6UALMvrsWMbRuPuZWuCsVB1wxvGDm6bQOVQFv6g1LvIad9zHa4CkOvfI+RrATFqnx9fpaC28ZW/iaCJwJpAo6vzwaQAqaj7511qwmU6BrVfoB7wzt3ZvJWv1Yg44JaClyayTAJsEJDZgqI1vaiif6P2d4x7PeOf9wb+Vz2rA/vcaeihyT/Xn7Exrw0U9iAuwe5CtZWdrJkGSBBLJlk2gYIOkM8KUPlVOAA6GQYHSFUjrL6nAyySomC8VxOPya2gZQwsZKRRQ4SwiuZSAQpaGiaSoLVDrLhdI4dDx0g3MFyDY2lrRO3Lc2MklX1wHA/xmiPjUwDiK7ObiARRx1SkPdoCkP8CgixswihVBC5LxDxJ5kwRT/nqGMU98mGMiGL1lH1v927M2lsp+7u51pMhglX+IphkzLbKDJBFJys6In92pGneIdNmjjQZcEGywdsdTs1pnFs6S/+8jcENC7p2+oviGVeIE2KF9MUaTwpcobInClHCehPm0KosElPAzmfL6fF/ZLALEgAoavX9WM3Z6rjqGaJYe3CxtPoi+rRiFTrV/OBjTc1KoSJnD8F1Fn7Ry14kX0QcC/R8cYb5qjZ9DrlLZwMNxLMbk8wOGXSCsFrag/3qKZFzKqmx1AYTLH/BjkJiczwu9kTTm/Dza5ZSVApYmipKmunYZ+HajpvvI5zsD9dVLI5aHhjIhKT12Xuq8VE6aqsJSatXZ8QTcDTXer+1Q0pUKSjGi1Hy6tIs3yUkhtchmbO0L90tX9q7rbTgvFZ2iCaTg3PatWX63YzT0z9oOR5r+nviQ2AY97wfeTh8kbA0PQZsVo59J8X/IUNsHpelWp2i1iBaz2wHc8Hd1Hr+TdJOfdsjfpcvlXxBnwA2SrE7ncJtPfGSxik4rKag+MmKRTjBdbRtbW5oV5pyBz6664rTKd8envRh3lPmHkkSVyGRK2DG6iNub5A1lo41yBB6DaykdqLFkrrtCZd3UfYql6aDG0UdXroNZWdEreMqs+ilwiyxikIirn1HJWFCVyCVoYWS2VQ1yqxj7sGl01WjTh6u/7+7p63F/n47LghqLhHHqysBHlDUk/7IlGm0hwT/4/H7fHxgufA/4cgHmaYj5wU8X+hjOUSYqWz2GDvBVGh9t82Wq2nIfdSiabhQFDt1ZF2NFK+KAzDhcldPF4zyMskLGlW8m9ttcXnpAeZmphZiVrKi1hVXg5VZ4Ia4F1pU7BVrVzp5WTyLqCXF/PLgT/ubm6c3Nj/CDfAE/jmtBfiV4Ksyd+Fb1nwL7WyzelQvwRxfwoguxpQP+dJmSev24ECaBkS4z5Qgk0aQH0EHvIBeM0prziOb8KzfWr8yXqWxrzH+OJ2ic2TZd99HLL3+kg3T3uW86Ag74g0o8Uj6TLyiftnVap+n/z5Ej/0cPae/2zuZvG5o9/5i5UvrSXwyGv3wJ0i4y297Q2GCH+kw+CioOUPvmtL3y8U1/ujZW6HilPZHjZV5lZ9ai2kGb016cQTs6y4NYRQZn0nRd2oFMq2A/E5gTya9cH1i5/dF/FcW3H3vsbbE14h8DyPraptHfvv32byn93VtXnNM23dame+3Ou17V6V69q2/n9OYXAI5bM9fMKcNBUszvlMviHJf2Ai4dZlHO1gpbT28B80xl8axqwinfqPLQnlDwk6SOALXbS1zp8MNTrfwWta2Lpz6TF5ex8oQ6oNTspUqubHDJL0zhBHAfdoucr/VExd0yfY3xM8yOQireYGorKY0EbdQDTcCj1U5i4BfvQgZwF9nFj/KdZNfN39DpvnGzfCc/hrpD8JcCpnMwtXQHpTuWspQehLf5N5Aughf56zd/Q17enJ6ZbobXU4OL1dch/aQwk/81zOTDUE9zc8//L0ALFT9tED1Q/iA+BKm8qLmXaV8C5dA/cE/MMJaxvDAKGGLlSUR5kxaUEUBwnEVD/fMxUpNqOJNUTVeRPZw5j7AIhfwh0tBFWcVoW4jNdM/35aUCf4aHk6c+P3dQ81yNm3MQ3nSxNacCiEWDuBrfyU4CfubonkxkMYaHA1f1DxFPgCTp66kNffZUzy0DGzrHlhfnDdtHjyvHscqTTvkPncTZuWHglp6UvW9DamzUPjyvuPy4chwrPyGz8FUAxVGWMfj8x4hyGGV7tbBJ2CHsFa4UrhdurnDstfBADpnVWEZxVsWTiHriQf1T2scoLj+JqCdMh+fDpd/qiUs9YSEeMpBbRj1xqSdE1S8qZnQUnZQ+48e/AgvmfhwT+Y3y6T+y66+x9F/djgK3hZdTsXDqPW5qL2hKkyqFsLiR15360YkpMkKj78dCJJT1YHNhdg4q7Z1k6+OYIRkD7PIgcCkiBlxA53tYhDgWy493RFQJ+Ifep1RoaiVfbpgddBisx81BJxUafG+0xEnrU/WR2fNmR2zWN9q7WdsJLRn3cbvVVO+Zfl47iEaAMP9+k5e6ba3O39vtZNgXNQxauiMPBVvlVR5SiM1qbZ0Ve8jqEgftczrkb0GbBOv/4O7ojNua9eFT7Mz1qvappl+KVl9qrNY+1bLRIhIeV6kuEWoYZGer/Dlz4GQ2jr+KN4kW5nnUAFAluEea1h+vhWhVF1pf0wHS3QPNDXCCZCYmSYAc2XxQFA9uzjMBkVxxnyjedzlLL2j6WRP8QdLU9Jc2Em+bQQ/myy/3q69h6sJ3+Ovyo/iqGg/lBWg/jDnqY3b6mSD5o1dGLJN2+VSvwLQvnUlm0j5PjLmUcoWuT28MVLmdKEE2YHhkIjllPwJoZdwkBh7RgsQVuVKhKBWlAr+QNy5YQGOlN+hKJgU97rBsNZm2WujxBaX3aMxR+gqTc85ymreZTNvMJFyUlYWvhcJ4sUjycGCXK1aMS8xP0LrXXG/ea5XrJt2o1r+o8V8wMpQQZ0EpktAnGOF1EDceSbJ4QRi9IhY1GANM1xF34IYvgRyPcKm+yN/gj1BgEjW9Sj/aEF2xZkV0Q+/BeQuuzU+f0dWxobGpqTHFrtPwcN3yiDzI7geDTY1kvs3qq49FGqVox5ImPGsYWji0VaO12gDvBYMb4It1Sh6R5WPLI+TFch7Veb9ltTUMtUJm/gBm1sqyrZd/rdXAqXSiqMQyxTXAvogWB6e1yLfW7KLCybLwp2KvsvxXQ3kiKmKigvWEk9oPlBC+/MNh7bJlHVtz9g1xhtAshGF2zWAQo8uFQ90XJptG9VkLyfmQypFc0hUJRHL6AK/SEEBLPuv06JZ4ts2RH5izzbNE53GSNSRU5xB/XUdcv7r9dvkuN/2au7Ss2TZ3Otk0fa6tmZRmNzrlPw+NEjI6RGzORrLY7TYZiXitJWmKzVkuPyZJha3TeoChmbZVGW/Qrs/RIpO6cHePEWGpIKjxR1RvH3/Ag5thKBHgY8qRjbl0NueKuCLpZAzYkByk5SjwevXkuohDWf37JZuLZqnHcY4utmDlgpjuen4M+gYXD/qeCHbKAn1oqeeBcHaO8zN10c7OESDh1/PjuNvBVxHnnTZ53Omftqizc9E0ll4QikZDSRfZKecLw7rwl/J5eZzgNyOdRDkK3MdL4Z1UXIxy5lJhI+qqavkhJ6vUm7VUz2q8JWgmDHMj6tUbuIkIEKIAoshaQ2ylirxrDkL5MMMgQGbyoqPBrxsr/Y3RUmudKBnq4/r+x6YRaZpUYzC+zyhEjYf0eXeT226VC3a/wWYnO1GXacPlTCb3I+90kXCXqnfNixuAajQIURbxGLocF4Hl9EwprxiocvFsjziVfDNBpQ890z1XEdHG1//aiBhfN/1UYYXOKT1P53zX6ez5gcVZuo0Nm4udlh80y+dNIX9o9I4Im5XZ6ntw7ZSLxe51+SIZ8RNB+CGV3jwtkEVyPUD4XXmwUKDPnyGcujL+8kEbtiOUQL9g3rCwm5XJ5tNDy8aVNeWq3Y+kCFfJAIGSJYxRy32DULkmA2o8MaENELmHQ0zz4yUpzDW8zDUf95KRlN1z2GSUC5U9VSo26ADgqgEelcqgeMVyDTtXSfcyz4+p7tfyJXkg1EJ0r9x99ys60tLSEtV/8JWvfKCPtUx5lxyAlJ9DCg/5K7pXyMBAKCptonSTFA0NNA7Gtl5N6dVbY4Pv1rh/HaT8fOvVg/CUvyNtEiq+rShDxYVFjLdH7OyKITsdQCKJrc92VmF7/3ANNMEoN6fcx/5hm7Fg77FvSXU78LFGBFoo3G2x6kw6Cv/0Rp3VUlqpXkvo+iqdcptf08fh2qinVC5onKNHuL80EYqkqH4pu6u//BEpwnD50eTb5HdV1/Jm7SYkla0t1HaiPwOua4EwKiwXzsZoXrzeGJeAtQRqmFm9Uc3MWiJzJq2kj/jY/wD8xILOYHSam1pKr7U0mZ1GDJXNrmmfci2ZTa4W57RppdemTXO2uExm5Zr2TZvmCMP1iYJY4L8C0mg6qzoj+VD1NblCPqR8qeRErqjKOSHhBkxa27Ee5m2zYpk0IvqDWQrYXTNPgYvEwE9xYEaSsWTa4+K8acZFZj8nCs/Ju8gDTssbJj5PTW9YJhBcUij0NPUorKYovFN6h7a9I1k/MNtKj7GJuspm/sAKgnQfxpB5TTopqKGGFJ9lhM0I0ir3xZjBKDh67roiiF5c7eiQC1CRiApolVE7MqXCasrlBRPyBAnDL89S+Ml5XLyMXgVS2aqXPxVd3jTFqhRgqgRUbKGCoKC4K/CVZadiz6GpMGolfrUoeGAWM4o0GW/q1TAkMTU0cJFCaao5A1LyO56p4o6NsaiopASn4vskFBX9R1HRhxS16wxcII3M4Nwok8YjKKrPJjGEhZeYroZooBz/1xehRbcDhTKHu4BxrTgEFV8OxwTh3OULuEUDxVVYBcD8eQYhh0ULJ9f1WaQyLn9JseG2o/1Wr1KQ8gmpcCgKW8q3OcN95sgTSozQ6fxYOoexH8C7Relmp0fMU5dNluDy6qfILStL/xZWguAR5Si2ABPhsD1Y75Qlq8Nho9tLRVJQ4PomdF0AuPhWtqq8XLZPDbwV4/b+iIecAnNezEHpe0WXtfRjygZNiTnNPk4deZlWwywKDVi6XVKdYiTUi5Qmg6rKXNXt1YWS8Cdrs3jSmEO3jE/ceOSic87p8MzyPCn3nVk7Snv23O33/6gcU1aZA9imLcxrY4qVFnrcaSjtAqyEC3BduOvQ5IkgAWuhbqhHpEJB49Ik4QAtFosF9P7i/pG/Z+XaAeeEgCNMsDXBAgYkNsaUVdqRQDqTS6tg5FA8D5CkRwvE00/3SfUMmdWvuGLh55gnxs6PCvemZEeqTgMLB6V4xUJ+LBTewjfEqAYmqszJHIwyP8cGRM8j/WjmXxHrId9C8ma/meRtvO7k53KI/JxYf0HiRqP8E+Dn/ptNKpezvD736vJ6YR4NoXvSKi0riYjY5CglxZTIfyStUZHEsLqSyufbt9L8Vnkped3mEi8WPc7SChgXF4suso9x6pKEB1FAN0PJYZUFZ329kwpWhyzwJbtyoSzLVPq+lcGFa1amxIWIcdiOixEFKebU0ExJNjb4blTABpfGNWF69jESJcBoUJARQbUtrsrYU2D3CwVRQMOwpITXY8xmSYA7+dKEYrfA8BUF+O5FoBz5fF6wTDlucecsFsNmKugDCreA/+MKrMhBEKS1k96FKcKX1Shs8h5kCMo/BLlQKmK9qFScqFpFc0pFUAeE67xxLFLeH1rDdpVPipmtyWC7fzkYgwAcDzchxJifTI74ylasQJmhP1v+Le6JUOh8krtWjGPkq91EGB/eSOnG4eGN93LqKSJ9ANQfHrl0J18/J8NgxkhZExP0wJYtByg98IKGdzOVaZRRo3dkNkDiirliU1FLrYLPV/OC5KX8ZOSRQttd9R+0psB/kiKYOFBIKZYNfdzaZ62i49WQsjgfU9J1nE1nBm3VxWTqTx0SDHc+p079mwJ6qSTQSTUoVvkvaMb0lJDnYMzirzBJaFtGiyVoVgFltFOGGY7Aim6wwPYB9QpNwHt0oj8CSLs44nLlooxoiHSw7VOAEPgqhjdfLoBxb/mih0QSm4P5JCu0FPDTogQQLS9dUXqCHkHdNw8wXszjZlUSidXt2lUXI+MUF6kUkPo63DPpPdlFpQhSLBgZzCiNkcLplr8vXfp3Sb7B67KtWWNzecvyxAuiwPbFdUIrsdnCW8SIy//TYgRoSCQDw5NEEJtqRXdPloRRoMnjPC6VgIF8VD6HrizKBRDlSneSd7zmp0TenuJTZpB1ixKQCgJ0vwBEghaJSz5qNMkPMYKzzmQkO1ycv+dyr6hEu+mtgYFQM9/NNPPdvWLSg5o7fzbnwS1WMc68cRy6MKwJNPoGEq8be96pX95ywNpgfqfnnYblLddYG0x0Ygo8A/9KTyZJY4slcJ5JtBBHm/zHFlP9NpNoneS/ijOkr2yt5BhFs2S1Ck5mQ0M4ufWMwVnbNReBkO9OfbNxJHQTEMj/mfa34HDTzeaAWdmG4lT3wp+wT8ypbzQYfOcaqXGia8Kv88KZSaj4JTHcWMf2rVUxfKRsj2Rbqrk8MIQJ21ktNnmfxBzjZqqNmgVumFEsUcAiFHBrXzSDwYCetIb0rxzz81cV9S+MDX5d4J79+Dn+WoOE0zmth/4w8iBQilJYsFWzNlbd8zF3Sp2YUvqT14V7MUn/izqcIexi1XjP1RjrmTTcTfsUQst+SDFiGb6YEH+nDncQ6sbZP5TqivhvqpE+Lo+T/Dijq3Aij/NTRb9/VEQpNsokKtXhN6bRjjEBIYLefynCgsQaCW7wkADJGz0CuTOeIj4pwXmR5ftshozgKin5GXJfU5N83GQ9vw432TWRJc1LlbXEFUe3JnepQPxGMg+XVMnPkoubljfDN9RJA3XnW41kSVPZn0di9JVFD2bMf3mBMMy0KAKGq4SJ8HJwTvDl0gTq3ACHfgRz6yNAo8hwzPuCz/cF+gwSmV8Apvy20fhtwJVis6PiUzkBTdMMXCeuQVqIK3NiyZgxxhX0VVvMYFthJOaqMEq5mhf06EWLL7oXfq8CXWPdwxoCQAmjNkoOc6/2x6sOBexWaKcw93osTeDaB1kgmuBjmnXVGhFCUPxevyH+StwOI68eMK123UiaR/wbJHoXmxjoGhkhxc9+1Vz3b0ePvBWUQvKHTz35a734A9JONjtfePPc4zfPNcgRcdZw6D+Ofu5lnfjErV/7gcn1t6ce/QuR77/tha4Ww9ybj58rVLUj0h0X08DCfPVF0mzsq2MsEMsF9LFkLiwWT0jABJckVb3x4uLbc2Th4mtzwA4wLWqJjZaJv4d/8pMwr9dPAR80sn3WIoLQSVx6QzLu8uj9uXjWH0B1GN7g3rDIvVBgROXDDod82Ez26fVkX3MHaamXr9Hr5WvqW0gHuVSSIll6MENppnQd/VaGkIyYaC5dVx/T4W6Oulg9PdicWF+SFF7vP2BOS6x+VqCsKlctIF+Pa4AJi66T9uEuKPjToz0imQtAXRCDjwPPXCyNdR5Cb4lDnaX1nWQ2PxUlpK9A2RGTNMAN+Q+QHC8/r7Qv5+EwIgSLF4fSJtv9EFAidzVBWaOWZY5MABQT3MEAPTGZJaQE6IxkazjBQ/sVOV47D5CdxJBeDWd3FcZvsfmKusyFwiphJ8A4WYUJzKKiwnSpas7kKSph1OlVKzUDWlEvp0ywhOrBDBUk/9LT4w7VWUwmS13I3dNz56TLOwcl/4wGO/xrmOGXBqsvdyKHyTEbQ2kYfpgWlE/lD6qzIl7lWlLykj+ozpt4lesC53LzyrRF//Vsu6JXU3EO7hc4JaLpIBwNoU48zjekCPD9KJJkxykI5VWOaehChlgCuNzkzgO7bXG77Y4bCtXYBNALCL7Cw+g5fcemQ059zPn0uWWfefQJtDNMiHwjsg44qlG26mVbN+YwIEOA2YIxJj/XfrAl2elIAvcMBy4Z3hALJSS6RSIg6TxRqvPPJvc793w/7jCL89FTia8IQeJ7gB4QLQZb/r0m+c2k00GK+EWR7a0qLOg/a/n8+RiKjBmFuZWfOdHPG0m133prf1+Xxm6d5CsWiKqTzPYom6QqvEHF6z+D7iwBvlUZ2utzcX5gu5eJBc6LhUZmRblEzvkxfh6dNRJiSxdYgrVUzy9ycQbO5YrNjKkuO8oqXdWmXcBHuH6BJ+VTjd+ZxPY3E+KMOjOoXBEOfIRDr0SCYXG0WMGyslZX5ntM0JnBt44AQmdjAwuYBATZf+sTIiBzRbb+m3hc7IWROI17tBNjeYd3wKs53ELBH+C7uMDMhDmZEz0YudUoJglu35fA6PtoiE5RnLohQoULyeLZs7d6XN19/XsjG+QPTHp/g4l8JnpRf1+3y7N19qxRknnb1ODXm95Lyjf6e7qa9X5/dHHKRr/o9+uau9O+sC21mAweHRyzmgcHBi5srI/1Xk9utjbU6a2lN3tj9Y0XDgwMmq1jg2QNabfq6xqs8kt98hqn3j+tN+X0O+YsbnCmMtP8+rr60WFHxfe9CKNFwdu42y8wkElfNf/TTAMuVH8A7wV8DVLiigIY6FWxWEARkoznZSFfUM18bsdrT0ikq43JkBXdtZN5tPee3pdNGzHYU1aFah0pGNZWjdeKR8W/aDQrh1UdxmROV6rwuFnkeQ8qiKBimFTiS7N99TrYrnrq0hjOlnLuAfhR1LgoT5QAJKKkROFBJRVzhEItlrKLHNdmUUmz6TLwodxZCuRtFAf4fMEzBmDFJ02AlpuBsRyrQz+oTH7ZiXtSu9JwRSeF+ypXqs1Z/epgOAVtAAetPx/fikbrhafyVu+LD4gjgptHZIoHeIBbQ2tSiYPg1novaAN1i00HcLnKgU/Lz16+z3D5NWTkuqs98loebImlfk1n3n4Agwsc2O25+joycs3lhn2Xy8/+UH0RUnKNuiioGqaZp4cpo1njXB1FKH16GPefEuXn9JBWv59XYtXRKrhPB/XpITsdHBpbq8LDRZT9Y4G6ismIMZZWLKctZJI9qRY/hRROFF4Ny2+Gfz2eMoc8pNsdMqfGywon8rjWlqzZxIwyEVqSNtZ5PHUbtQgGpnjFTjxHs4WZUPZvmNDAz6DHncHLW8W4NE5FrBJ6zUovkdnAQaSUTgCVV8yKFS6iNKFKEm7UkFGheFJgIoqDTKjBCXF4qrGMKngD99uriqaL+k9j0kxQY1NRYR6W/gRMLZmdUhZ00TnyIPkO3pNf6hQ+Lr94LmAGntqVrs7vg5T8Enz6J0mNKPlBp/wSsM1/It8R+N4zH4nHxHlsr9BsT4Av7k1iUPgAbt+hBOVPROF2iOBNB1s0RsdmHR3o65NfWv768tFRcndK3tnXB7fI7Hi8bXtSfhcFXZLolN9196Rb7SCfHWHP5ZdGR+ET8rmUfP7A0Vl9fWQ2vJ5IwAe4Iw1+4HHYW3u73RofRNTXzFVs/4wTrOZ7Een5puCPfRHUKujxoas3JUIzOUSfC+MXikrgVyKovhBGgz1gDbfMo8K8lrA1YDcYFS+Fu2W0DWNXF6jR6vaV9vvcViNlqJkbqgqqP8M5ypfFopKb/EUld3y7CKgdOLZ57HOWlfwMQbsR5KKhh3qQo/xClI9bnHc+ohm6MGwyXCGCShCMjiDDcG18UA4TDO+ndPoytJsBDSZCSaDSgw8yTeW4qj3GkKD4QrUul5fL7Wi1ykZhFcU4NOTXKPtxbJfxcUxrlo+xHCW5KFXxAZSVj/tNJH0BVvykeoO4mMyJiQeLvNxSXlvjJcdTv7i3E8tCi76AwFUKLH3zeOcv7tPIiKp+XLEXTqV7iit+7VDVmBJuDFXEWPPCJOOUuAdwNgjkEudzShKG+8LfFGb8cYZPALEhpi99DRvilDaI1m4DEJWhGaAhjMlaLTF3Q2psQ+fYWOeGsVSt9nh/LLVBfe3UPmisWT72f41y3+AVnrI8aJrJ8nlZMzBV22uH2WRbCRtfRTb7pjCMaIdWWebBkjGWHisrAnxlYLJfGxtakJ+8vSD/DwkXiIZAPXa88+cwsopAFgSYNmXHNUhlS3lcVZcV+5iyNF1Yo8TroGt4B0EPTlmupD6GdHLZwY8pm1t8pirTwbpvysLy0ieqnwY91SjrMMdOUxemoCa+V8Y3ma7MjqvvSESMeDKRZMyFPAgpCyMB1TMY3SDEPaVP5ek1PfKDhV/NFF1WuqzUz2gzAAATLsC9NkiRqekBp//aaseN3HiEEkeee2po1jZhXWvWdOraTVktPvafFR8WVwu4b7qF2SGEXMCTFAM5TyAHbICedONqAN+rL068+FHk9u0v9r8o7yQF0i0XPiILSPGne8mn9srSnSm6ae+5e0vP06NPlHYsA9KhiZfRoKzqUHbp5JoQNboYbvRSM3rG9zewfWrGMPDzhg0YB3psDPUjh2oFriiwx+qr/DMWyOPdWuErNPErAkKORV3eIOwQLhEO8jY+ZfdCXwTIT4UXr/ZfUqJ5aji3gOY89wnvQ18ixyazPcAAr/CA2ZVedWCcjrCqWtYkb5zhPWZSLTJGMcxTFAL5mdYuwe7Iyt6AxdMfBEHdY0qiiL8FM4lAWYA1qSQXKs8Y5+gxYyhKgi4EBVJQngFY+Iy4CAw2NiuJpO4JN86fmSkdl9lD3PKN8Yx/Ez8jmpnuXO836gcJj7+TiyNziLqQeILfS9CH5H81iaS+ecO6SPTsfE4v/7p+8fK0KbF4aYikHImx9Rnn0k009mxj8Pw2f2rtxumBJT3nR4O+WWfNi1mbnu1a0x5cdc6QroKDiLqHsuDR2BvjNc61W1OTQs0L7S7UtVKlrU/+UDwq1jPdvdHgD0y52/eru3Sisbyr900mr/kG+Q/Dep3xZltEpCWzx1jevvtmo04/TJw3mL2mm2wGhSdT8I9HifPCIiJNoYfxoY+VWF5+DB3gDeESUaah0/PVaNwvOqeGYBeFanUNDvWi1vG2sbMn1YAeHPK3orNU5Z7q+0gkJK5MSlXsVRNAcSe0Mlzj9Eb4a4ePYjNj8KdGMcMM1PF4Lf29UA+cfG7K8G6k6T+mDuDWdMXU0dnKch/KRU6mFWF73lVLeelJ1+Q0z9nsV0KRVU4Vo97k27hJnEY5oTmXpVpPVBm/yGwmBhzRcT5s4zxQbxrdRROsFxFf+1gwtpi6SS4plubX+f11M+nhvcQZbg07yb5b6Ey8pZheJT9g0D/tf7TBHfZ6w+7GRy/7EwwYv1DWo4ZFPNMzrOGL4EqfMHKs8gSQtiJILOqcQzst3xHmlJXnMcUH21l7PfW4GoSOHy9NmVrc8l9RD/BBS6YF/rqHCRnu1kYWGtesdWKqPa4GkJeGcrMg0+Hu7uHDVZaVSrwyK7ODajCAR9m8lEmyKWKsign5D1ttLQHrQWvYSoxOa4dT1EZ0LP12qzUQsh204sMOq1OoLicxdTlsJzsMFoBIIcc3hasKQ7kTirTt3GkLtEBaN83q5OdVRctXK8/5u07rtDp+Lqj7UOZZXAIW9w7VQFrCHpp6/T8VfHsHRlepyx1WjQ7s9Sk+0WsvpfTStSwN0zXDq58eO/I4pY8f2fD11cNryFdh9sfj2dbD4iVrlTcvqeIJncBdtwvC5BkUZ6tfQGKIYoxmUYOb8irDDhPqxDxLo+Vh0fpHS8jyeXPTg2UEVAn44nD/xzyL5WEStdmesRISL+OYqv5ITuqPGDbAAC437MnOxgWLaAvLsH31qjrkc3finLnTH/aXT6r74kLtI3YiiEpsTonpYXqrS1ZQrdfv6c0m0R6QyHlYLE6jzxBgq8mNogFjclaBQUhjNJqORuOUZEwug5ms0ze1xM5uIXipt4hrjU2xnpFqyP7Y0tsCf/LnDF7zbLOF6izE19SmI/3TnRZ2Q2+VP2hIGknfpLFbXw2xyKPz8G0eq6CK+uvIpVhl+Za6Sc0yD26H/f6qeG31aHfW5hyIGgIeZqCBJigveaqeEI1RGqCeJg+k0UYevqWqpGcSjYAvXS7AnY0JWSBNGK2lqapcL4v+r+19tSjmgZbmISETbIEq8iXVAPAy/VjNOXmbeXho6NLwsGt4UdKarUYI85SyiQ0RKVk5PLzL750xsz0a8s0anVGemwWYm+in24y+yGXvKGCzI9XbwcaoMKFRYNIQerKVN391UEmjEC0Na3d5xalnLtO8yfZ29L5miyFdMRFkigBa3IFTiKC3qivm8rAVy7EMLaA7XbEooVePBFI9v5QL3GtGcVU9KRSZNbSovCgLQCJwv52KLtLDdvJE+sToQjqDC96BahlQMUf3HlGM6Nkj6UTy3MK5yUTpPVEgX/wiJ2RfTFx65cKFV14qZyWN3F6plxBxMT8g9iPjRTmMPAtK/+iGh0qWMv1ntiv8xsE9+tT/xBjgqmi0DzGHUKxgkTnh4h5KghoLDVd0oOePoMc286IesRmFENQ3ss0NQhSxbQbtKoUiEebObo7Jxeam5SNu3+07l99z7bzSBNmx7rLPUEmSaHjFrT31wwm3Iz7HP/T1rTvvCrhatx+++LwrqSTed61K/7kflAklQqK0YMCjjmNA3fSyGx+gJ4r0gRsve4vuX7duP2UpuWjaO7fe+s60r5Aj6i1IlTzfYfOCYWXgxqHfDahyMCSNyVwiCd2fzSVzgWwgFxDLVAPQ0YnBht27GwZzD+bWrIGk6uoS7WLN66TVxdXS5vxmvx8S7YX8mMZRQkurjCDHu5g/Bup2sEdIkog4PorjJQkVhlekjpPZnfLvh4iATl10QpL/k9/6A/lZPq8ZFxgrIFj2PUwztZyRxZ7NMR5JDESowvi/hb39RBjdSTHZxnzsOFM/TsPj4/9fXdcXGkcRxndmbm8vd7t7t7v3JznbXC6XyzW1qUkv19PmTzeFWtRaS2na0tZyfclDX4RWiS/ClViagoIo9MnafZBQKIJooYIIByUoSh80oCKIafBJ9MWIWOxtnO+b3bu9syHZ3Zm92dm/M/PN7/t930d8OweacyTfZgXOIfwO5jGmiNA1Kv9LMH4n1bxB13pzubFc7p+OzWcNsFFaIpAe471413ahWXccWvfmFAIXiyDOYfG5sFEmA7TmOE2nVmPYCF1epLNtoAYAHifJVPmL5Q8UhlYY7QCaGKrfGXuLL7TXt+KABnNo/uud7/OFvCasQto6kzpy8RSM/SeBJYlVrhRkvhQLM4Gwf6CUaUoN9DoIBLug1zs6wD9+mzcpR3wDnr4SnukDdpPlPLYt8IGgMi/CCfqAga7Di0kHExZ2cz02N31jNR5fvTE9F2t+2JElDl+tx1d/5nvgh85coF9SoCUXBeUoX02n0HlB12qiauVpw0aU/wsGcgfpWrFp0HE37B9jGhc5RoKLFiO3vHHVRjnIAn0s1osu+IGHCTp0WsOawCkWiu+8G6o3INTMiGcPjYCmFOxTI+A3nRig0AFwBMhadq1W5x0X2Dq4a7UaF9aR2t6W50F3D9aBUjEvovmVQPdRyXuBZZDRzPOgW/OdLdm+OTjqIRre1ThOK0WkRiPYjmNeby8+OYV3IVXLa9NFaM2jS6NL/n/Ma9m8oyQDgf10BzZvfj9t/ELcM5+JGAg8GwhSSPAHkxHXRu5poz1nqiM+x4+wCCv2EMvI2MyuuweI2/z0xQYAHU17g7zt3nTPk6de8caVzU1+HPHmiGBrvycNJh34wvIVIhwJgC8jzFsdvxcq5EpsfGY8Rg66n2PC/ZesYOKK+MGd9AqsuJNif317obDdxhUZeHz6sWOXFRy7MgpC3QAh4dZuD11rTl3q+N75aFlEBDZfAQICH9sgAhxDep1db42VrT5ZSA3tXhmNNSuAtLb75Rqa7wrGu9cxbyLITiV8gazj/HFgR+TxCgxf82oDrQ8vnqBIQZGXC30atetdPnezj5HkWlOb/QCfQwAFQJsq4G9naxf/l+7fjz1MpR6qWXCel+0Q5B6tBFDKv5aWnl2O74kvR4iW1slhPa0RD4fp4rsLdHWLa+uI3giOaVqZLS+x0LLc2Prq6LagR0vY+t/yL+wDfm0gcVfgmXumpeVO869J4hlaxQmXBVknyFrxDU4XNYM+Qy29GdYtnjC0e76dlT1fpp+U581t5iZED6O19ImLlF48kU5ozYaeSnEhVUukJ48QcmTyBEhXgsKA61bbhn5pO36ZJQi7WfFEG3HF4nGWUnSAD4h1JzF/ldGFs+blU6cum2cXKLs6nxhAeRSS5xbVkxcovXBSXTwHBak3fv5OhR0s7zGBagWonGBP8umMvQEMajKiWGYMnc03920gDfsHJRSJR5mlmz6Outmgv7GkZEI9GOveD8AOjnsRE94ADgU/ktdFNx79gTDayp/RZF+Un4BX18LvllmEt4USnxvOSkekM7zGLh55MQ/a6GQ/LWNYa2NiN1WEo1ThJjUfzGR0dCsFE9mJYUU4DBIZNpodLPQ1l/sKg1l6urncu2vQsgZ39dLTXuodzTCyhuFeU03Y3sKsqYoN/WYw6/b3FQp9ZD07OE1MfqTbz480IUXWIXXHVN1VXlwjo5rRTqvmFDG0ftUw1H7NuM6TsL9fbeFaf7M3GPhznwZmQShHUmmgHwM+uhcQU9ThK8i8ru5FByUK/wNyiyyyQFyHwlWy6xoZPmMyOew6kYRsqj3WgwiTCTt4+4Vzo1P2t+eTOzUzxMJa4pr705nj++m7vFhGj6aHlER4txxS6L3jM4s5osTlX2WmbOPF35MTEUar0bHZ786/PDqlRq1sJC6rPcdn3uQn+z7ElEJmPJHhxx7idbX0xrPI2i5IY3hXrThUARpGOc9lJoa+8REDEe/P84AbzJCaAAMFICjUDDD9WuNTwAYoAfSOsMDtYH9gRPwI2O8OTBcBeLSFiYGowU8H5sdxaUo6DKNKF6MuTDPpEFIoAL5uExrT6AlI+DirFveWKqXhId/nmQ92f0wdIWE3a7j98tXqc0cJXdBjYRqKx4rG3N2nK6VjB65PUyKHwitGJJqQdYVMqHL8qOuSuRmFyTtkPZxL9mhJWWd2u64xqPujl1z39UvV5yNRXihjRGITpWNzd/eNRMYJC+vyZX6KXoWFvorq5ImLVfc21AV1JrUnk7kwk/4DIt+JnQAAeJxjYGRgYADiTPvpuvH8Nl8ZuFkYQODG871tCPr/TBYG5gYgl4OBCSQKADZ9C0oAeJxjYGRgYG7438AQw8IAAkCSkQEFMEoCAEchAoMAAAB4nGNhYGBgGcWjeBSPYhphALE7BGUAAAAAAAAAAG4AugEuAd4CRgKsAx4DbgP2BFoE7gVoBZ4GPAaEBu4HLAdsB6gIFAhoCLIJNAmKCf4KigreC0ILmAwEDHYM+A1ADYYNyA4MDloO+A9QD7gQDBBkEPwRWBHGEgoSVhLCEzITohQCFBoURhRkFJIU1BUSFTYVWhWAFagV7hZCFqYXCBcyF2IXkhe8F+4YGBhIGHgY2BkOGWQZoBnoGqYa7BteG8IcTBywHRQdXB2+Hmwe0B9QH7Af/CBaILYhAiFoIagiICKiIxgjciPaJBQkliT2JYomJiagJv4nXie2J/QoZCiaKQ4pXCmiKeAqLiqkKvIrVivALE4sfizgLSotgi3gLlAuiC7mLyQvvjAYMHQw3DEkMegyTDKYMuwzZDPwNEg0nDUSNa41/DZQNqA3FjeqOCw4ejj4OTY5hjnSOh46ejq2OwA7LDt4O9Y8PDyIPNw9QD1yPdI+HD5uPso/Nj+UP+BAOEBqQNJBDkE+QX5BvkIQQqRC8ENMQ7BD6kReRJRE7EUyRYBFykYmRmBGwEcIRzBHWEemSBxIWEiYSNBJGklaSY5Jxkn8SjpKbEqkSuJLDEs6S45MOkxITFZMZExyTK5M8E0iTZBNvE4YTlROaE68TvBPMk92T7hP9FBOUHpQtlEAUTZRdlGiUbxR3FIYUkJSiFKuUuBTGlMwU1pTilPCU/pUIFQ8VGxUmlSyVM5VGlU6VVJVelWaVeZWNFaIVrpW3lcCV4RX7FhGWMZ4nGNgZGBglGToYeBjAAEmIOYCQgaG/2A+AwAZ9wHLAHicXZE7TsNAEIZ/5ykciQIEFcVKSBRBch5lRBcp6VO4o3CcdR6yvdZ6Eykl5+EEnIAT0NJwCjp+O4MEsTUz3/w7Mx7bAK7wCQ+n64Z2Yg9dZidukO+Em+R74Ra5L9xGDyPhDvUnYR+PmAr3cI2cE7zWBbM+XoQ9XOJVuEF+E26S34Vb5A/hNm7xJdyh/i3sI/S6wj08eM/+1OrI6ZVaHtU2NnlicufrVGc6dwu93qeRlUxCqG25NbkaBUNR5jrX9ndGeViPnUtUYk2mZqZqS40qrNnp2AUb54rJYJCIHsQm40pTWGhEcPQrKCxxpN8ihuHHSGrvWKeR0jJalS8Y19hTi+r+v2f/s5DRouTEapLiTwgwPKuZ17GqO9+jxIHPGVN13EXRLOdkpJlsVk1KyQpFfbajElMPsKm7Ckww4J2c1Qf1G2Y/YAZrsQAAeJxtVgWY47oR3t9rCm327d49KjO67V6ZmZkZFFlJ1NiWT5I3L1dmZmZmZmZmZmZm5o7kJHv32nxf7BlpNBr8xxvBRvvrbvzfH05DgE2EiBAjQYoOuuihjwG2MMQ2TsIOdnEIh3EyTsGpJH86zoKz4mw4O86Bc+JcODfOg/PifDg/LoAL4kK4MC6CiyLDxXBxXAJ7OIJL4lK4NC6Dy+JyuDyugCviSrgyroKr4mq4Oq6Ba+JauDaug+vierg+boAb4ka4MW6Cm+JmuDlugVviVrg1boPb4na4Pe6AO+JOuDPugrvibmAYgSOHwBgTTCFxd8xQoEQFhRpHoWFg0WAfc5yBBY7hHrgn7oV74z64L+6H++MBeCAehAfjIXgoHoaH4xF4JB6FR+MxeCweh8fjCXginoQn4yl4Kp6Gp+MZeCaehWfjOXgunofn4wV4IV6EF+MleClehpfjFXglXoVX4zV4LV6H1+MNeCPehDfjLXgr3oa34x14J96Fd+M9eC/eh/fjA/ggPoQP4yP4KD6Gj+MT+CQ+hU/jM/gsPofP4wv4Ir6EL+Mr+Cq+hq/jG/gmvoVv4zv4Lr6H7+MH+CF+hB/jJ/gpfoaf4xf4JX6FX+M3+C1+h9/jD/gj/oQ/4y/4K/6Gv+Mf+Cf+hX/jP8FGgCAINoMwiII4SII06ATdoBf0g0GwFQyD7eCkYCfYDQ4Fh4OTg1OCU4PTgtM3hpKLjGvBykyrpsq3D3hztGFapIUqClmrelAry6zKjNWyNmkpi1lmBeu4A7mW1SxxFK3EXI3HQsRKs2oiwlowHbG6LkTMp0LrRXfOrNClKFQVTTSrRV+LsZYToUm93pmoUSHs8vZs3BTF4ISl3pJzO3FLd7kq8taIbnt5xpu64+/x1FTZzHOdtXtJLowR2kammTDdsYwUzUl9PGo0mdKdVXJM1ys967pHZmqlqoRPJZ+JKhwrlce5NNNsL3Qv74IgthBjO1gx5NTUDklrJatJphpbyEokRlhL/KCeqkqsVvul0msmHcuKlIo83JdinhSK5XQgWaoNKa6z0Cht6dBIFiLzmkiv3if3QiOKIjUuIqQuzgUFSESlrBoT1kVjIsoCn0W8UEYM8oxpreatpf0V55zo/g+Zq3nVO048bemm3pyJRdjQ9XFTFYrPQvfYtKru0H8p6yinK/JsOGJ8Fo+Utarst69Wrrdk/LUlRTyrvLwjt8nkJl9krMoz01TVYlAzbYtF1q7H7SvyWzE9Kc4demlpRLaXLKnuVLD9RaaZrDqFU+1S0/WUX+zOJamv1VzoiCqGTxP/zPYiK0uhe6xgunQ38lm/ZOST4sxKVQ3bOK/5PsvzNXNoRWSyomIqPb29XlxmPaoLxkVK5cTVvtCDsdTGZkzm2UxSALWqp4tsL26JqBQ5KxL/zPY6huLrDd0sJU9HzIgRo/YwinOhU6pW6/gubcyEJ1Njmc6oVwZc1QvKLW9KUdme66rMUIeIamDm0rk+aigl1SaTZcjp7lTlqiRXdegi0udScypBX1RbWpRk+sqh3eWeq7p19Y8IFI5Nm3BEVbrjizCrlJVj2QajS/Y7B6mgd22jK2didrCW1spIJ+cIy5nOKQTGsInY5lNmM3fFEieGfiFXK9zYWvMe6HqePV7Un/V7Xc97MqYqohJPV7aEqhYVgUxVCe7sCOnUbJPXTWSnTTmKx6JkhQjdI5o0MhfhVBR1WIm5Cc1U1pHVDZ8lI8kXFJpOrT1oskmb9qay8ZyyI2zIlayiklxedChks8z5ujlSZyQ1YQBlastMVV07XBmxSXbkRHZvuGbpnM2OnInf2zmRd1lPTKlmrhkqwviWjKaK2rrrsTErWFnHhk+VKoYUCGf3qJGFQ6a+VdJBck1grum8FSOlZtmRA3IvGpOEcUBdtIHraMGF3KfTw1pyCu+6bA6fiV/mxDRUjcz1croiQ1Ja9kUu7Up26+ACF9VBziwjwGDFwkjTqaUrVHK469dHytUPDQPnQ69kE8lpuhHAk5lK0yJzwOlC0PHyvklHujHThFAkp8pIKeWaCpmlhktDkGz6+5RzRVElsGBxi88Js1YzbhNKp6QRlx5TBHFkceIJWVGRMc2ncXuqb9lMsDlbZC7dTe3g/0jq0NdRHR9kTiOZKkFW1If9VfNmhDnpitler/rWFPngYIE6frjmWuA64NseTlwchDVbYxokbooulSzZ9tCKa490lxxZsdpwzSLyuOVCl6g1XrjODymsokMVSLVDANZvqXYE9FrGT4VuS/v5YSh/1F80LSOPCDvHBzyjsSfzpMW2KiR/msESH5ZbeeZ19U+UbwgmjYno64Sys8LlZFmHveNgLHQAHi9DtBzs6dFGGI9dbga2KmOTTbTT3AaOWFdB9HKhGBAa1jXN74bKYZGSTEP4XZKwpeYy7lBBaNshaarBiguiuCpddpyGgk16JiuZpvy4zwK6ir5GDG05qKGX6+3Y+OD3nWBF7rvDdFObVdJHVSuog9whQnPSV2tVKudFz5/UPgR0oqmcyV0SKJh1w4vuo+ag+eSMWkt22zSQ0KK3JBmFI2pNa4u4475Z/GdE4qmm3qWG4wSV5DgplRNyt4jIMpory3nqo7m1ujvzexsb/wWax2lD) format(\"woff\"),url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI9Fkm8AAABfAAAAFZjbWFwOArSqQAABjgAABEqZ2x5ZivbQuAAABmYAACxjGhlYWQU7r8iAAAA4AAAADZoaGVhB94EmgAAALwAAAAkaG10eGQAAAAAAAHUAAAEZGxvY2F9hqpgAAAXZAAAAjRtYXhwAjEAmAAAARgAAAAgbmFtZcOMpQEAAMskAAACYXBvc3TkcwUbAADNiAAADQsAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAARkAAQAAAAEAAGk/ly1fDzz1AAsEAAAAAADY572GAAAAANjnvYYAAP+ZBAADgAAAAAgAAgAAAAAAAAABAAABGQCMAA4AAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQAAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5qDnygOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAAD+gABAAAAAAL0AAMAAQAAACwAAwAKAAAD+gAEAsgAAAAiACAABAAC5qDmp+a25r/m7ubz5v/nE+cZ5yDnK+dB50XnYefH58r//wAA5qDmo+ap5rjmwebw5vbnAucV5xvnIuct50TnR+dj58n//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAIgAiACoARABSAKwAsgDEAOYA7gD4AQoBMgE0AWgCMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABkAGgAbABwAHQAeAB8AIAAhACIAIwAkACUAJgAnACgAKQAqACsALAAtAC4ALwAwADEAMgAzADQANQA2ADcAOAA5ADoAOwA8AD0APgA/AEAAQQBCAEMARABFAEYARwBIAEkASgBLAEwATQBOAE8AUABRAFIAUwBUAFUAVgBXAFgAWQBaAFsAXABdAF4AXwBgAGEAYgBjAGQAZQBmAGcAaABpAGoAawBsAG0AbgBvAHAAcQByAHMAdAB1AHYAdwB4AHkAegB7AHwAfQB+AH8AgACBAIIAgwCEAIUAhgCHAIgAiQCKAIsAjACNAI4AjwCQAJEAkgCTAJQAlQCWAJcAmACZAJoAmwCcAJ0AngCfAKAAoQCiAKMApAClAKYApwCoAKkAqgCrAKwArQCuAK8AsACxALIAswC0ALUAtgC3ALgAuQC6ALsAvAC9AL4AvwDAAMEAwgDDAMQAxQDGAMcAyADJAMoAywDMAM0A1QDWANcAzgDYANkAzwDQANEA0gDTANoA1ADbANwA3QDeAN8A4ADhAOIA4wDkAOUA5gDnAOgA6QDqAOsA7ADtAO4A7wDwAPEA8gDzAPQA9QD2APcA+AD5APoA+wD8AP0A/gD/AQABAQECAQMBBAEFAQYBBwEIAQkBCgELAQwBDQEOAQ8BEAERARIBEwEUARUBFgEXARgAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAADTAAAAAAAAABGAAA5qAAAOagAAAAAQAA5qMAAOajAAAAAgAA5qQAAOakAAAAAwAA5qUAAOalAAAABAAA5qYAAOamAAAABQAA5qcAAOanAAAABgAA5qkAAOapAAAABwAA5qoAAOaqAAAACAAA5qsAAOarAAAACQAA5qwAAOasAAAACgAA5q0AAOatAAAACwAA5q4AAOauAAAADAAA5q8AAOavAAAADQAA5rAAAOawAAAADgAA5rEAAOaxAAAADwAA5rIAAOayAAAAEAAA5rMAAOazAAAAEQAA5rQAAOa0AAAAEgAA5rUAAOa1AAAAEwAA5rYAAOa2AAAAFAAA5rgAAOa4AAAAFQAA5rkAAOa5AAAAFgAA5roAAOa6AAAAFwAA5rsAAOa7AAAAGAAA5rwAAOa8AAAAGQAA5r0AAOa9AAAAGgAA5r4AAOa+AAAAGwAA5r8AAOa/AAAAHAAA5sEAAObBAAAAHQAA5sIAAObCAAAAHgAA5sMAAObDAAAAHwAA5sQAAObEAAAAIAAA5sUAAObFAAAAIQAA5sYAAObGAAAAIgAA5scAAObHAAAAIwAA5sgAAObIAAAAJAAA5skAAObJAAAAJQAA5soAAObKAAAAJgAA5ssAAObLAAAAJwAA5swAAObMAAAAKAAA5s0AAObNAAAAKQAA5s4AAObOAAAAKgAA5s8AAObPAAAAKwAA5tAAAObQAAAALAAA5tEAAObRAAAALQAA5tIAAObSAAAALgAA5tMAAObTAAAALwAA5tQAAObUAAAAMAAA5tUAAObVAAAAMQAA5tYAAObWAAAAMgAA5tcAAObXAAAAMwAA5tgAAObYAAAANAAA5tkAAObZAAAANQAA5toAAObaAAAANgAA5tsAAObbAAAANwAA5twAAObcAAAAOAAA5t0AAObdAAAAOQAA5t4AAObeAAAAOgAA5t8AAObfAAAAOwAA5uAAAObgAAAAPAAA5uEAAObhAAAAPQAA5uIAAObiAAAAPgAA5uMAAObjAAAAPwAA5uQAAObkAAAAQAAA5uUAAOblAAAAQQAA5uYAAObmAAAAQgAA5ucAAObnAAAAQwAA5ugAAOboAAAARAAA5ukAAObpAAAARQAA5uoAAObqAAAARgAA5usAAObrAAAARwAA5uwAAObsAAAASAAA5u0AAObtAAAASQAA5u4AAObuAAAASgAA5vAAAObwAAAASwAA5vEAAObxAAAATAAA5vIAAObyAAAATQAA5vMAAObzAAAATgAA5vYAAOb2AAAATwAA5vcAAOb3AAAAUAAA5vgAAOb4AAAAUQAA5vkAAOb5AAAAUgAA5voAAOb6AAAAUwAA5vsAAOb7AAAAVAAA5vwAAOb8AAAAVQAA5v0AAOb9AAAAVgAA5v4AAOb+AAAAVwAA5v8AAOb/AAAAWAAA5wIAAOcCAAAAWQAA5wMAAOcDAAAAWgAA5wQAAOcEAAAAWwAA5wUAAOcFAAAAXAAA5wYAAOcGAAAAXQAA5wcAAOcHAAAAXgAA5wgAAOcIAAAAXwAA5wkAAOcJAAAAYAAA5woAAOcKAAAAYQAA5wsAAOcLAAAAYgAA5wwAAOcMAAAAYwAA5w0AAOcNAAAAZAAA5w4AAOcOAAAAZQAA5w8AAOcPAAAAZgAA5xAAAOcQAAAAZwAA5xEAAOcRAAAAaAAA5xIAAOcSAAAAaQAA5xMAAOcTAAAAagAA5xUAAOcVAAAAawAA5xYAAOcWAAAAbAAA5xcAAOcXAAAAbQAA5xgAAOcYAAAAbgAA5xkAAOcZAAAAbwAA5xsAAOcbAAAAcAAA5xwAAOccAAAAcQAA5x0AAOcdAAAAcgAA5x4AAOceAAAAcwAA5x8AAOcfAAAAdAAA5yAAAOcgAAAAdQAA5yIAAOciAAAAdgAA5yMAAOcjAAAAdwAA5yQAAOckAAAAeAAA5yUAAOclAAAAeQAA5yYAAOcmAAAAegAA5ycAAOcnAAAAewAA5ygAAOcoAAAAfAAA5ykAAOcpAAAAfQAA5yoAAOcqAAAAfgAA5ysAAOcrAAAAfwAA5y0AAOctAAAAgAAA5y4AAOcuAAAAgQAA5y8AAOcvAAAAggAA5zAAAOcwAAAAgwAA5zEAAOcxAAAAhAAA5zIAAOcyAAAAhQAA5zMAAOczAAAAhgAA5zQAAOc0AAAAhwAA5zUAAOc1AAAAiAAA5zYAAOc2AAAAiQAA5zcAAOc3AAAAigAA5zgAAOc4AAAAiwAA5zkAAOc5AAAAjAAA5zoAAOc6AAAAjQAA5zsAAOc7AAAAjgAA5zwAAOc8AAAAjwAA5z0AAOc9AAAAkAAA5z4AAOc+AAAAkQAA5z8AAOc/AAAAkgAA50AAAOdAAAAAkwAA50EAAOdBAAAAlAAA50QAAOdEAAAAlQAA50UAAOdFAAAAlgAA50cAAOdHAAAAlwAA50gAAOdIAAAAmAAA50kAAOdJAAAAmQAA50oAAOdKAAAAmgAA50sAAOdLAAAAmwAA50wAAOdMAAAAnAAA500AAOdNAAAAnQAA504AAOdOAAAAngAA508AAOdPAAAAnwAA51AAAOdQAAAAoAAA51EAAOdRAAAAoQAA51IAAOdSAAAAogAA51MAAOdTAAAAowAA51QAAOdUAAAApAAA51UAAOdVAAAApQAA51YAAOdWAAAApgAA51cAAOdXAAAApwAA51gAAOdYAAAAqAAA51kAAOdZAAAAqQAA51oAAOdaAAAAqgAA51sAAOdbAAAAqwAA51wAAOdcAAAArAAA510AAOddAAAArQAA514AAOdeAAAArgAA518AAOdfAAAArwAA52AAAOdgAAAAsAAA52EAAOdhAAAAsQAA52MAAOdjAAAAsgAA52QAAOdkAAAAswAA52UAAOdlAAAAtAAA52YAAOdmAAAAtQAA52cAAOdnAAAAtgAA52gAAOdoAAAAtwAA52kAAOdpAAAAuAAA52oAAOdqAAAAuQAA52sAAOdrAAAAugAA52wAAOdsAAAAuwAA520AAOdtAAAAvAAA524AAOduAAAAvQAA528AAOdvAAAAvgAA53AAAOdwAAAAvwAA53EAAOdxAAAAwAAA53IAAOdyAAAAwQAA53MAAOdzAAAAwgAA53QAAOd0AAAAwwAA53UAAOd1AAAAxAAA53YAAOd2AAAAxQAA53cAAOd3AAAAxgAA53gAAOd4AAAAxwAA53kAAOd5AAAAyAAA53oAAOd6AAAAyQAA53sAAOd7AAAAygAA53wAAOd8AAAAywAA530AAOd9AAAAzAAA534AAOd+AAAAzQAA538AAOd/AAAA1QAA54AAAOeAAAAA1gAA54EAAOeBAAAA1wAA54IAAOeCAAAAzgAA54MAAOeDAAAA2AAA54QAAOeEAAAA2QAA54UAAOeFAAAAzwAA54YAAOeGAAAA0AAA54cAAOeHAAAA0QAA54gAAOeIAAAA0gAA54kAAOeJAAAA0wAA54oAAOeKAAAA2gAA54sAAOeLAAAA1AAA54wAAOeMAAAA2wAA540AAOeNAAAA3AAA544AAOeOAAAA3QAA548AAOePAAAA3gAA55AAAOeQAAAA3wAA55EAAOeRAAAA4AAA55IAAOeSAAAA4QAA55MAAOeTAAAA4gAA55QAAOeUAAAA4wAA55UAAOeVAAAA5AAA55YAAOeWAAAA5QAA55cAAOeXAAAA5gAA55gAAOeYAAAA5wAA55kAAOeZAAAA6AAA55oAAOeaAAAA6QAA55sAAOebAAAA6gAA55wAAOecAAAA6wAA550AAOedAAAA7AAA554AAOeeAAAA7QAA558AAOefAAAA7gAA56AAAOegAAAA7wAA56EAAOehAAAA8AAA56IAAOeiAAAA8QAA56MAAOejAAAA8gAA56QAAOekAAAA8wAA56UAAOelAAAA9AAA56YAAOemAAAA9QAA56cAAOenAAAA9gAA56gAAOeoAAAA9wAA56kAAOepAAAA+AAA56oAAOeqAAAA+QAA56sAAOerAAAA+gAA56wAAOesAAAA+wAA560AAOetAAAA/AAA564AAOeuAAAA/QAA568AAOevAAAA/gAA57AAAOewAAAA/wAA57EAAOexAAABAAAA57IAAOeyAAABAQAA57MAAOezAAABAgAA57QAAOe0AAABAwAA57UAAOe1AAABBAAA57YAAOe2AAABBQAA57cAAOe3AAABBgAA57gAAOe4AAABBwAA57kAAOe5AAABCAAA57oAAOe6AAABCQAA57sAAOe7AAABCgAA57wAAOe8AAABCwAA570AAOe9AAABDAAA574AAOe+AAABDQAA578AAOe/AAABDgAA58AAAOfAAAABDwAA58EAAOfBAAABEAAA58IAAOfCAAABEQAA58MAAOfDAAABEgAA58QAAOfEAAABEwAA58UAAOfFAAABFAAA58YAAOfGAAABFQAA58cAAOfHAAABFgAA58kAAOfJAAABFwAA58oAAOfKAAABGAAAAAAAAABuALoBLgHeAkYCrAMeA24D9gRaBO4FaAWeBjwGhAbuBywHbAeoCBQIaAiyCTQJign+CooK3gtCC5gMBAx2DPgNQA2GDcgODA5aDvgPUA+4EAwQZBD8EVgRxhIKElYSwhMyE6IUAhQaFEYUZBSSFNQVEhU2FVoVgBWoFe4WQhamFwgXMhdiF5IXvBfuGBgYSBh4GNgZDhlkGaAZ6BqmGuwbXhvCHEwcsB0UHVwdvh5sHtAfUB+wH/wgWiC2IQIhaCGoIiAioiMYI3Ij2iQUJJYk9iWKJiYmoCb+J14ntif0KGQomikOKVwpoingKi4qpCryK1YrwCxOLH4s4C0qLYIt4C5QLogu5i8kL74wGDB0MNwxJDHoMkwymDLsM2Qz8DRINJw1EjWuNfw2UDagNxY3qjgsOHo4+Dk2OYY50joeOno6tjsAOyw7eDvWPDw8iDzcPUA9cj3SPhw+bj7KPzY/lD/gQDhAakDSQQ5BPkF+Qb5CEEKkQvBDTEOwQ+pEXkSUROxFMkWARcpGJkZgRsBHCEcwR1hHpkgcSFhImEjQSRpJWkmOScZJ/Eo6SmxKpEriSwxLOkuOTDpMSExWTGRMckyuTPBNIk2QTbxOGE5UTmhOvE7wTzJPdk+4T/RQTlB6ULZRAFE2UXZRolG8UdxSGFJCUohSrlLgUxpTMFNaU4pTwlP6VCBUPFRsVJpUslTOVRpVOlVSVXpVmlXmVjRWiFa6Vt5XAleEV+xYRljGAAUAAAAAA4gDCAAOACUALQA5AEUAAAEXFjI/ATY0JyYiDwEGFBcHBi4CPwEnJjQ/ATYyFxYUDwEGIi8CBwYUFjI3ARYUDwEGLgE/ATYyFxYUDwEGLgE/ATYyATTjChkKzDg4PJk7zAmRiB1MOQEchy0bG8xPzE9LS8wcTx1aLYgJExkKAYEJCbUOJAkNtQoaZAoKtQ0jCg21CRsBl+MJCcw7mTw4OMwKGuyHHAE5TB2ILR1PHMxLS0/MT8wcHFstiAoZEwkCCAoZCrUNCSQNtQpkChoKtA0JJA21CQADAAD/wAMAA0AAEAAoADAAAAEhMjY1ETQmIyEiBhURFBYzBRUOASImJzUjLgEnET4BNyEeARcRDgEHKwEVFBYyNjUBoAEADhISDv7ADhISDgEAATZSNgFAKTYBATYpAUApNgEBNimAQBIcEgEAEg4BwA4SEg7+QA4SQKApNjYpoAE2KQHAKTYBATYp/kApNgGgDhISDgAAAAQAAP/7A8gDSAATACsAPgBGAAABJj4BHgEGBx4BPgE1Mw4BBy4BLwEeARcWNjc2JicmBgc+AR4BFyMuAScmBhMHBi4CPwEmNjc2FhceAQcOAScmJwcGHgE3AgEEHDUqDBwaETs/J0ACWkREWgJ+D4ReXpAYFE9VV603PIyBSAFAAmJNTXJczh5LOQEbzjY0YWPlV1QSRkrfoxkVxQ0KIw0BwBsqCxs1KwccFxIyIURaAgJaRB5eeQcDbFtcoSklME0pCUN4SU1rBwVa/rrOGwE5Sx7Obd9KRhJUV+VjYTRaFRnGDSMKDQAHAAD//wNwA0QACgAWAD8AWwBlAHEAewAAATU0JiIGFREzMj8BIgc1MzU0JiIGHQEzMh4CBwMOAQchLgEnAyY+AjMjNT4CFhc2FzU+AhYXNh4CHQEHDgErASImJyM1Ji8BIyIGHwEhNzYmKwEHBgcVJzQmIgYdARY7ASc1NCYiBh0BMyMyFwMXHgEzITI2PwECYBIcEhsUEWUUEUASHBJwFSUbCgQ8BzQk/mAkNAc8BAobJRUQAS5JOgshIgEuSToLFi8oFoETNB12HTQTAQYEG0sNEgMdAh4dAxINSxsFBcASHBIRFBuAEhwSQCUUEWMTAxEMAaAMEQMTAqBADhISDv6wDGQMDKAOEhIOoBIgJxX+vCIrAQErIgFEFScgEqAlNQkmJA0LJSU1CSYkCQUbKhiggBcZGRcCBwgvFQ2eng0VLwgHAuAOEhIOxAxwoA4SEg6gDP7MZgsPDwtmAAAABAAA/78DggOAACMALgA6AEAAAAE1PgE3MzIWFAYrASIGHQEhHgIGBwMOAQchLgEnAy4BPgE3FxMhNy4BNz4BPwElITI2NCYjISIGFBYBEw4CFgGgATYpgA4SEg6ADhIBQCc2BC8mKAIkGv54GiQCKCYvBDYnNCgBiAVQXAQHbVIF/fQCQA4SEg79wA4SEgH7FjdHCDwDACApNgESHBISDiABMk45Bf27GiEBASEaAkUFOU4yAcD9wEcWf1NTcgtBQBIcEhIcEv4IATULT3BYAAYAAP+/A6ADgAADAAcADAARAD0AQQAAARUzNyEjFzMTFTMuAQcOAQczNx4BFzMyFhQGKwEDDgEHIS4BJwMjIiY0NjsBPgE3NT4BNzMyFhQGKwEiBhUTIRMhAgDwEP7AwBCwQPgYh5lEYRO4QHSsGUcOEhIOQDkEIxj+cBgjBDlADhISDkcUhl8BNimADhISDoAOEuj+MCABkAHAgICAAX+/VmgHEmFE/wKLchIcEv44GB8BAR8YAcgSHBJfhRUnKTYBEhwSEg794P8AAAgAAP+/A4ADgAAcACMAJwA3ADsAPwBDAEcAABM+ATceARceAR0BDgEHAw4BByEuAScDLgEnNTQ2NyEuAScOAQEhEyEBITI2PQE0JiMhIgYdARQWFzMVIzsBFSsBMxUjEzMVI8YYrHZ2rBggJgEmITEEIxn+chkjBDEhJgEmYgHwGIdZWYcB1/4SMAGO/hkCQA4SEg79wA4SEq5AQMBAQIBAQEBAQAJ8c48CAo9zCTIhQCEzCf51GB8BAR8YAYsJMyFAITINVmgCAmj+qv6AAcASDkAOEhIOQA4SwEBAQAEAQAAAAAQAAP/AA3wDQAAjACcALAAwAAABMzIWHwEWBisBAw4BIyEiJicDIyImPwE+ATsBJzQ2MyEyFg8BNyEXByEnIQcXEyETAzcODBECFgITDzEnARIN/jwNEgEnMQ8TAhYCEQwOBxMNAjsOEwFHBf4KBDcCYgr9rApLJQGIJQLADwyADhf93g0REQ0CIhcOgAwPXg4UFA5eQECAQEBA/gACAAAKAAD/wAPAA0AABgANABQAGwAiACkAMAA3AEMATAAAJT4BNycGBwU+ATchBgclLgEnBxYXEy4BJxEWFwMOAQcXNjclDgEHITY3BR4BFzcmJwMeARcRJicTLgEnPgE3HgEXDgEDPgE0JiIGFBYCIDxuLrcPEgEFJy4F/v0FCQERBS4ntwkFfC5uPBIPYTxuLrcPEv77Jy4FAQMFCf7vBS4ntwkFfC5uPBEQQb79BQX9vr79BQX9vhskJDYkJAEFLie3CQV8Lm48Eg9hPG4utw8SAQUnLgX+/QUJAREFLie3CQV8Lm48Eg9hPG4utxAR/vsnLgUBAwUJ/q4F/b6+/QUF/b6+/QF7ASQ2JCQ2JAAAAAIAAP+/A2ADQAAcADwAAAEGBw4BJj8BDgEPAg4BFR4BFz4BNzQmLwIuASc2NzY3Nh4BBgcGDwEeAR8BHgEXDgEHLgEnPgE/AT4BAh4EBQYjGQYBMUEIEhQsLgOhfHyhAy4sFBIJRlsMDiMsDBgOBgweHApBWAwMNj0BBMaWlsYEAT02DA91An0MDREHGxEDDEYxZw8gVC5dgAMDgF0uVCAPZzNITRcVMxoGBhcZBxMoDxJhQk4obUB6owMDo3pAbShOUGgAAAAAAgAA/8QDogNDADYAXAAAATYXMx4BFxYXFgIPAQYHDgEjBiYvAS4BIgYPAQ4BBwYmJyYCNz4BNzYWHwI2NzY3PgEeAQcGBwYHDgEuAT8BLgEjDgEHBhYXHgEXPgE3HgEXPgE3NhInLgEHJgYCWCAgAxckFDk3SBNYHw4QFzUiFycWBw8UGRYQBhUjFTZQLkomOSN0RRgvHRwJGQoUFQQXGgsEEkgVHwkaEwEJDBUxGjVaHDQvORpAKSU2LS01JygzJFALNzdNFB86ArQIAwEHCRdCXv7MeCgSERkZAQkKAwcFBQgCCQoBAkBHbgENaz5HAgEMDAsDHhQoPQ0LCBcNOXcbIAkBEhoKDQkRATgwZvFTKUEBBB0CAh4CATYxbgELSD4ZAgMSAAADAAD//wPEA0AANABAAEwAAAE2NzY3IyImNDYzITIWFAYrARYXHgEXHgEXFgYHBiYnJjY3JicmJw4BBx4BBw4BIy4BJyY2Ez4BNy4BJw4BBx4BJT4BNy4BJw4BBx4BAQUVKiRNdQ4SEg4BgA4SEg6VFjkkNhFYeggFZ1dXjhkWTFIiKDsaU0UTWWcHC39aW3kHAm50RFoCAlpERFoCAloCBERaAgJaRERaAgJaAb5pST1TEhwSEhwSO1MzOQYEc1hZhBENWlRWliEjOlRBV3hXEYhaWXEEd1pag/6OAlpERFoCAlpERFo+AlpERFoCAlpERFoAAgAA//ADkwMTABIAHAAAAQcnNycHJzcnByc3JwYSFxYENzMOAScuAScmNjcCqyw9NTeeLp84xhGjjGEMam8BIndbVet8fK8fHUtgASijEMc3ny6eODY+LIx3/t5vagxhYEsdH698fOtVAAAABwAA/8ADpgNAADMAPABFAE4AVwBgAGkAAAEeARc+AR4BDgEHFg4CBxYOASIuATcuAzcuAj4BFhc+ATc1IyImNDY7ATIWFAYrAQM+ATQmIgYUFgc+ATQmIgYUFhc+ATQmIgYUFhc+ATQmIgYUFjc+ATQmIgYUFjc+ATQmIgYUFgIgHTESImdnNQ9MOBAEJj8nFhpYbFgaFic/JgQQOEwPNWdnIhIxHUAOEhIOwA4SEg5AICk2NlI2NtcpNjZSNjapKTY2UjY2qSk2NlI2NqkpNjZSNjapKTY2UjY2Ar0GHxgsHCpdbksHI0xDKQU0aEVFaDQFKUNMIwdLbl0qHCwYHwZDEhwSEhwS/sABNlI2NlI2AQE2UjY2UjbhATZSNjZSNuEBNlI2NlI23wE2UjY2UjbfATZSNjZSNgAAAAUAAP/AA0ADQAAJABMAIwAnACsAAAEhETQmIyEiBhUZARQWMyEyNjURASEeARcRDgEHIS4BJxE+ARczFSMVMxUjAQACABIO/kAOEhIOAcAOEv4gAcApNgEBNin+QCk2AQE2SUBAQEABwAEgDhISDv6g/qAOEhIOAWABwAE2Kf1AKTYBATYpAsApNt9gwGAAAAMAAP/AA0QDQAASACcARQAAARYfARY3FjY3MT4BFzIWHwE1IRceARc+ATcmJy4BIyYGByMOASciJhMuATc1NDYzITIWHQEWBgcRMzIWFAYjISImNDY7AQEACAgNNT4WJx4nOiQpRSAC/gABB317dnwLFBQYMR0WKB8BJTkjKUfAqXsEEg4CQA4SBHupYA4SEg7/AA4SEg5gAnEFBQkfAQETFx4aAR4bApvbZ3wCAXJfERMVFQETGB0aARP+7hPJY+AOEhIO4GPJE/7/EhwSEhwSAAAAAgAA/8ADRANAAB0AJgAAAREzMhYUBiMhIiY0NjsBES4BNzU0NjMhMhYdARYGARQWFz4BJzUhAiBgDhISDv8ADhISDmCpewQSDgJADhIEe/43fYOEfQH+AAEB/v8SHBISHBIBARPJY+AOEhIO4GPJASxyjAICjHLAAAAAAAMAAP/AA0EDQAAFAAwAJgAAASE0JyEGBSEeARc+AQcRMzIWFAYjISImNDY7AREuASc0NyEWFQ4BAQACACX+TikB+P4QGIdZWYfAYA4SEg7/AA4SEg5gfaADQAIAQAOgAkB2SmCgVmgCAmio/v4SHBISHBIBAg+xfoCAYKB+sQAAAgAA/8ADQQNAABkAJAAAAREzMhYUBiMhIiY0NjsBES4BJzQ3IRYVDgEBHgEXPgE3NCchBgIgYA4SEg7/AA4SEg5gfaADQAIAQAOg/mMDkG1tkAMl/k4pAQL+/hIcEhIcEgECD7F+gIBgoH6xAS9tkAMDkG12SmAAAwAA/8ADxwNJACkAOQBEAAABHgIOAicDFTMyFhQGIyEiJjQ2OwE1ASY9ATQ2NzMnJj4BFh8BIT4BBzMeAR0BFA8BFj4BLgEGBwUXFg4BJi8BIwkBAwA7Xi4VUm832mAOEhIO/wAOEhIOYP6tDRIOSEIIAxYZCWABUhViMY8OEg1QMVQgJlxbGv6agQgDFRkJoEoBMAEwA0ABPm1vVRgV/t6rEhwSEhwSqwHDEhULDRIBUwsaEAMKezpFfwESDQsVEWwKLmBYKR0sP6YLGRACCs7+awGVAAAABAAAAAADwgMAABYAHQApADMAAAEyHgEOAicOAQcjLgEnETQ2MyEyFh0BET4BNy4BASEyFhQGIyEiJjQ2ExEeARczPgE3EQMANVk0AzdbNRiHWcBtkAMSDgKADhI2SQEBSf0qAoAOEhIO/YAOEhIuAmxSwFJsAgLANF1mWzACVmkBA5BtAWAOEhIOYP8AAUk2Nkn9wRIcEhIcEgKA/sBSbAICbFIBQAAAAwAA/+ADwAMgAAkAIwAtAAAlESERHgEXIT4BEzMeARcVDgEHIxUOAQchLgEnETQ2MyEyFh0BETMyNjc1LgEjAuD9wAEkGwHAGyRBQCg3AQE3KEABSTb+QDZJARIOAoAOEkANEgEBEg1gAoD9gBskAQEkAjsBNingKTYBgDZJAQFJNgKgDhISDsD+4BIO4A4SAAAAAAcAAP+iA3gDXgADABEAIwAwAD0ASgBWAAABITUhHQEUHgI7ATI+Aj0BJSEeAR0BDgEHIyIuAj0BNDYBMhYdARQGIiY9ATQ2Bx4BFxUOASImJzU+ASUeARcVDgEiJic1PgEBITIWFAYjISImNDYBEQHe/iIdNUQmZiZENR3+AAIiDhQDkG1mNF1IJxQBHw4UEx4TFHsPEwEBEx0TAQETASAOEwEBEx0TAQET/jECqg8TEw/9Vg8TEwGiRIgzJkQ2HBw2RCYzzQETDt5tkQImSV003g4TATQUDqsOFBQOqw4URAETD2YOFBQOZg8TAQETD2YOFBQOZg8T/M0THRQUHRMAAAAABQAA/5kDgANCABIAGQAgACMALgAAEz4BNz4BFx4BFx4BFzMBBiInATMhLgEnDgEFIS4BJw4BBQkBJT4BFy4BDgEHHgGBB2tPDoBYWHcIN0QFAf6lCiIJ/pBBAR4HUDg4UAFYAR8ITzk4T/7RARABAf72H2Q6DVh2VQsoQAHAT2oHVmsBBXNYF147/egODgIYOEcBAUc4OEcBAUd4/nMBjZ8xMwM5RwJKOgovAAYAAP+/A4ADQAAbACcALwA3AD4ASgAAEz0BND4CFz4BNx4BFzYeAh0BDgEHFSM1LgElMyY2Ny4BIgYHHgEHNi4BIg4BFyEzNi4BIg4BAz4BNyEeAQchMhYUBiMhIiY0NoAbMT0gFnVMTHUWID0xGwPEmUCZxAEcwgQfIA5VclUOIB9NBRAlLCUQBQHgjAUQJSwlEKV+sQ/9hA+xAgEADhISDv8ADhISAeAgECA5KhAFSVgBAVhJBRAqOSAwmdYQYWEQ1rknRhg3Q0M3GEYnFigaGigWFigaGij+igOgfX2goxIcEhIcEgAGAAD/uQPHA0cAMQA6AEIASABOAFQAAAEXFhQHAQ4BIiYvAQcOAiYvAS4BPgE/AScuATQ2NwE+ATIWHwE3PgIWHwEeAQ4BBwUhFTc2NyEHBgcWHwEWMj8CJyYiDwEBFzc2JgcBBwYWPwEDIgQmJv7xEy40LhIFEwQXIiMNjwwJCxsSbQQSFBQSAQ8TLjQuEgUTBBcjIg2ODQgLGhL9bgG/PRIB/lVaBgQEBogUMxOVaXYUMxN2/tuPGAITDQHwGAITDYkCIwUnZij+8RIUFBIEbRIbCwkMjw0jIhcEEwUSLjQuEwEPEhQUEgRtEhoLCA2PDSIjFwPaAj0SGloGRwcGiBMTled2ExN2/oiPiQ0TAgJhiQ0TAhgABQAAAAADoANMAAcAHQAkACwAMAAAJT4BNyEeARcHLgEnNDYzITIWFQ4BBxUOAQchLgEnEyM3Nh4BDwEjJTYeAQYHARUhNQLKQE0I/UIITUAWW2QBEg4DAA4SAWRbASQb/sAbJAHNWv4NJAkNFYABDQwZDQYM/goBQMAthU5OhS0/O7hsDhISDmy4O0EbJAEBJBsCAP4NCSQN0ZwGBxcZB/3cQEAAAAAABAAAAAADwAM+AA8ALQA0AD8AABMiBh0BFBYXITI2PQE0JiM3HgEdARQGDwEOAQchLgEvAS4BPQE0Njc1PgE3HgEHLgEnDgEHASEXHgEzITI2PwGgDhIRDQLCDhISDiAdIxwYNQswHv4EHjALNRgcIx0F26Oj1z0DtYiItQMBQP68KQMQCgH8ChADKQGAEg5ADRIBEg5ADhI7CzEfQBsuDI0cIQEBIRyNDC4bQB8xCwWj1wMF2p6ItQMDtYj/AGsKCwsKawAAAAADAAD/wANAA0AAJwAtADkAAAERNDYyFhURPgE9ATQ2MhYdAQ4BBxEUBiImNREuASc1NDYyFh0BFBYlETMmJyYDERQGIiY1ETMeARUBABIcEh0jEhwSAUY5EhwSOUYBEhwSIwGdfwUYFU0SHBJAgEAB5QE7DhISDv7FCzEf4A4SEg7gOlYN/j0OEhIOAcMNVjrgDhISDuAfMfD+gHZaUv6e/sAOEhIOA2CG9KYAAwAA/8ADgANAACcAOgBGAAABETQ2MhYVET4BPQE0NjIWHQEOAQcRFAYiJjURLgEnNTQ2MhYdARQWBS4BJz4BNx4BFw4BBxEUBiImNRM+ATcuAScOAQceAQEAEhwSHSMSHBIBRjkSHBI5RgESHBIjAb1GWQECbFJSbAIBWUYSHBIgM0sCAkszM0sCAksB5gE6DhISDv7GCjEf4A4SEg7gOlYN/j0OEhIOAcMNVjrgDhISDuAfMawRimFtkAMDkG1hihH+nA4SEg4BoAJqVFRqAgJqVFRqAAAABQAA/7MDwQNEAAgAJQAwADsARgAAJTcuAScHHwMeAQ4BLgEvAi4CPgEWFzcmNjc2HgIHDgEvARY2NzYuAgcOAQc2LgEOAh4BPwEXBh4BPgIuAQ8BAV6BDxcIgAICIEIeDSZHUzsIAiApNwwmS08ekgFQRlKphAxPRrVPNizRVjkIYXc7UUTZARQlJxwHECIUOAwBFCUnHAcQIhQ5s4EHGA6BCSACIx5QSyYMNykgAgk6U0cmDR2RTrVHTgyEqVJFUQFRI0NRPHZhCTlX0eUUIhEHHSclFAEESBQhEQcdJiUUAQMABgAAAAADuwNMAB0AKwAxAEAASgBSAAATNT4CFhc2HgIHHgEHAgcVDgEHIS4BJzUmAyY2NzM+ATceARczLgEnDgEXMy4BIgYFMzYuAiMiBxYXNh4CAyEVFBYzITI2NSUhPgE3IR4BgAFfpKdAMmlZJwkcIgQsqwE2Kf8AKTYBqywEIFtAAlpERFoCQAJ/X19/fsABNlI2AbZFBwwkNR4XFRIKEyQYAmH+wBIOAQAOEv6pAW5MYBT9EhRgAh8BWY5EIT4YCkFjNgMsG/76RSspNgEBNikrRQEGGisFRFoCAlpEX38CAn9fKTY2KR05MBoIGx8FDR8m/k8gDhISDmAYjnp6jgAEAAAAAAPRAyAADgAaACEAKQAAATU+ATceARcVFhIHISYSAyEyFhQGIyEiJjQ2NyEuAScOAQE1LgEiBgcVAYACSDY2SAKirhX8ihavfgNADhISDvzADhISLgMABNmjo9kBvAEkNiQBAm0zNkkBAUg3MjT+76mpARH+BhIcEhIcEoCj2QQE2QEdIBskJBsgAAADAAAAAAPJAwAAGQAgACwAAAE1IyImNDYzITIWFAYrARUeAwchJj4CASEuAScOAQMhMhYUBiMhIiY0NgHgYA4SEg4BAA4SEg5gXqR2MQ38iA0xdqT+/gMABNmjo9kkA0AOEhIO/MAOEhICf0ESHBISHBJBB1aTsl1dspNW/kij2QQE2f7dEhwSEhwSAAEAAP/+A40DDQApAAABMzIWFAYHIy4BPQE0NjIWHQE+ARceARcOAQcuASczHgEXPgE3LgEnJgYBIV0OEhIOlQ4SEhwSVt1ransBBNmjo9kEQAO1iIi0BAFuXV69AlcSGxIBARINlQ4SEg4yTSUtMLx0o9kEBNmjiLUDA7WIZZ8mIysAAAEAAP/+A40DDQApAAABNTQ2MhYXFQ4BByMuATQ2OwEuAQcOARceARc+ATczDgEHLgEnPgE3NhYDERIbEgEBEg2VDhISDl1O02NiVhodqXCItARABNmjo9kEAXpqa90CmjIOEhIOlQ0SAQESGxJSIzQ2xG5sgwIDtYij2QQE2aN0vC8uJQAAAAAEAAD/wAPAA0AACwAXACAALQAAAR4BFw4BBy4BJz4BEz4BNy4BJw4BBx4BNw4BIiY0NjIWAzIWFREUBiImNRE0NgIAvv0FBf2+vv0FBf2+o9kEBNmjo9kEBNnTARsoGxsoGy8OEhIcEhIDQAX9vr79BQX9vr79/MUE2aOj2QQE2aOj2awUGxsoGxsBvBIO/uAOEhIOASAOEgAAAAAEAAD/uAPAA0AAHwBMAFgAZAAAARcHHgEXMxEjBgcXBycGJwcnNy4BJyMRMzY3JzcXNh8BDwEnJg8BJwcXBwYPASMVMxceAR8BBxc3FxY/ARc3Jzc2PwEzNSMnLgEvATcHHgEXDgEHLgEnPgEXDgEHHgEXPgE3LgECcd4rFiQMVlYYLiveK0ZGK94rFyMMVlYYLiveK0ZGQwwWLTo6LSJuIR0mFA9EQxAKHBQdIW4iLTo6LSJuIR0mFA9EQxAJHhMdIfdffwICf19ffwICf19EWgICWkREWgICWgNAgEsaPiH/AEM2S4BLDQ1LgEsbPSEBAEM2S4BLDQ0MFCcICwsIO0A7Ii04K4ArHTAYIjtAOwgLCwg7QDsiLjcrgCsbMxciO00Cf19ffwICf19ffz4CWkREWgICWkREWgAABAAA/8QDwANAABkAIQApADEAABMBHgE/AT4BLwEuAQ8BATc2Ji8BJgYPAQYWPwEXBwE3FwcDNR4BFyMuASc1HgEXIy4BTwIBBxMJ/RAGDJkIFAlG/vAjBQQHmgwhB2wEA0RRaS4BUVtovm5tkANAAmxSvv0FQATZAdD9/wcDBGwHIQyaBwQFIwEQRgkUCJkMBhD9CRMXvmhb/q8uaVECNEADkG1SbMJABf2+o9kAAAAGAAAAAAPAAeAACwAUACAAKQA1AD4AABMOAQceARc+ATcuAQceARQGIiY0NiUeARcOAQcuASc+ARcOARQWMjY0JiUeARcOAQcuASc+ARcOARQWMjY0JrAwPwEBPzAwPwEBPzAUGxsoGxsBZDA/AQE/MDA/AQE/MBQbGygbGwE8MD8BAT8wMD8BAT8wFBsbKBsbAeABPzAwPwEBPzAwPz8BGygbGygbQQE/MDA/AQE/MDA/PwEbKBsbKBtBAT8wMD8BAT8wMD8/ARsoGxsoGwAABAAAAAADwALpAA8AGwAnADMAACUBNh4BBwEOAS8BLgE+ARclIiY0NjsBMhYUBiMFIiY0NjMhMhYUBiMFIiY0NjMhMhYUBiMBGQGaCyUPCv5SCBoL5woEEBoLApMOEhIOwA4SEg7+wA4SEg4BQA4SEg7+QA4SEg4BwA4SEg6OAksPAyEQ/ZsLBQitCBoWAwiZEhwSEhwSwBIcEhIcEsASHBISHBIAAAAABAAAAAAEAALgAAsAFwAjAC8AAAEWABcGAAcmACc2ABcOAQceARc+ATcuAQceARcOAQcuASc+ARcOAQceARc+ATcuAQIA8gEMAgL+9PLy/vQCAgEM8qriKSniqqriKSniql9/AgJ/X19/AgJ/X0RaAgJaRERaAgJaAuAW/swWFv7MFhYBNBYWATQqC89GRs8LC89GRs81An9fX38CAn9fX38+AlpERFoCAlpERFoAAAAIAAD/wAPAA0AADAAZACYAMwBAAE0AWgBnAAABMhYdARQGIiY9ATQ2EzIWHQEUBiImPQE0NiUUBisBIiY0NjsBMhYFFAYrASImNDY7ATIWAzYyHwEWFAYiLwEmNAE2Mh8BFhQGIi8BJjQTFhQPAQYiJjQ/ATYyARYUDwEGIiY0PwE2MgIADhISHBISDg4SEhwSEgHOEg7ADhISDsAOEv2AEg7ADhISDsAOEn0KGgmICRMZCogJAc4KGQqICRMaCYgKvwkJiAoZEwmICRr+RQoKiAkaEwmIChkDQBIOwA4SEg7ADhL9gBIOwA4SEg7ADhLADhISHBISDg4SEhwSEgEvCQmIChkTCYgJGv5FCgqICRoTCYgKGQHPChoJiAkTGQqICf4yChkKiAkTGgmICgAAAgAA//IDgQMOAB0AOwAAJQ4BJy4BJzMeARcWNjcjIiY0NjczHgEXFQ4BIiY1ATMyFhQGByMuASc1PgEyFh0BPgEXHgEXIy4BJyYGAwRX3WpqewFAAW1eXr1FXQ4SEg6VDRIBARIbEv4QXQ4SEg6VDRIBARIbElfda2p6AUABbV5evWVOJC0wvHRloCUkLEoSGxIBARINlQ4SEg4CJRIbEgEBEg2VDhISDjJOJC0wvHRloCUkLAAAAAEAAP/NA64DMwBHAAATFxYOAS8BJjQ/ATYeAQ8BIREHBi4BPwE2Mh8BFg4CLwERIScmNDYyHwEWFA8BBiImND8BIRE3Nh4BDwEGIi8BJjQ2Mh8BEboqDAkjDWAKCmANIwkMKgEjKQ0lCQ5gCRoKYAkBExgKKgEjKQoTGgpgCQlgChoTCin+3SoNIwoNYAoaCWAKExoKKQFgKQ4jCQxgChoKYAwJIw4pASYqDQkkDWAKCmAKGBMBCSn+2ykKGhMJYAoaCmAJExoKKf7bKQ0KIw1gCgpgCRoTCSoBJgACAAD/wAOqA0AAFAApAAABNDYyFhURFA4BJicBJjQ3MTYyHwETND4BFhcBFhQHMQYiLwERFAYiJjUBgBIcEgsSEwf+1wkJChkK88ALEhMHASkJCQoZCvMSHBIDIA4SEg787QoPCAQHASkJGwkKCvMCmQoPCAQH/tcJGwkKCvP9Og4SEg4AAAAABAAA/6ADYANgAAkAEwAjACwAADcVHgEXIT4BNzUlIREuASchDgEHEy4BJxE+ATchHgEXEQ4BBycOASImNDYyFuABJBsBwBskAf3AAkABJBv+QBskASApNgEBNikCACk2AQE2KdABGygbGygbgGAbJAEBJBtgQAIgGyQBASQb/MABNikDACk2AQE2Kf0AKTYBkBQbGygbGwADAAD/vwPFA0cAOAA/AEYAAAEeAQ4BBw4BByMiJjQ2OwE+ATcjIiY1ETQ2OwEyFy4BJw4BBzY7ATIWFREUBisBLgI2Nz4BNx4BBQ4BBx4BFyUuAScRPgEDYDIzDUc3FYlcYA4SEg5gPmIVFQ4SEg4gEA8On3Jynw4PECAOEhIOIENkIzE5BMaWlsb9pDZJAQFJNgKAAUk2NkkB5h1kc1cSWm0CEhwSAUU6Eg4BQA4SAnCQAgKQcAISDv7ADhIBTYF1IpbHAwPHvAFJNjZJAYA2SQH/AAFJAAADAAD/wAOEA0AAKwA0AEoAAAEzMhYfASMnIxUUBiImPQEhFRQGIiY9ASMDIRUhIiY3Ez4BOwE1PgE3HgEXBzUuAScOAQcVAScVFAYiJj0BBwYuAT8BNjIfARYOAQLAgw0RAhNAEGYSHBL/ABIcEmYzAVn+gw4TAjkCEQ2DAmxSUmwCQAFJNjZJAQHJSRIcEkkOIwkMgAoaCoAMCSMCYBANw6BgDhISDmBgDhISDmD+AEAVDgJADRAWVnICAnJWFhY7TgEBTjsW/hxK5g4SEg7mSg0KIw2ACgqADSMKAAAAAAMAAP/NA4QDQAArADQASgAAATMyFh8BIycjFRQGIiY9ASEVFAYiJj0BIwMhFSEiJjcTPgE7ATU+ATceARcHNS4BJw4BBxUBNh4BDwEGIi8BJj4BHwE1NDYyFh0BAsCDDRECE0AQZhIcEv8AEhwSZjMBWf6DDhMCOQIRDYMCbFJSbAJAAUk2NkkBAckOJAkNgAoaCoAMCSMOSRIcEgJgEA3DoGAOEhIOYGAOEhIOYP4AQBUOAkANEBZWcgICclYWFjtOAQFOOxb+JA0JJA2ACgqADSMKDUrmDhISDuYAAAAABQAA/8ADwANBAB8AIwAnADQAQQAAEyMiJjQ2MyE1NDYzITIWHQEhMhYUBisBERQGIyEiJjUBNSMVAyERIRMiJjURNDYyFhURFAYzIiY1ETQ2MhYVERQGoEAOEhIOAQASDgEADhIBAA4SEg5AEg79gA4SAcDAwAJA/cDADhISHBISsg4SEhwSEgKAEhwSYA4SEg5gEhwS/WAOEhIOAuBAQP1AAoD+ABIOAUAOEhIO/sAOEhIOAUAOEhIO/sAOEgAAAQAAAAADoAGgAAsAABMhMjY0JiMhIgYUFoADAA4SEg79AA4SEgFgEhwSEhwSAAAAAQAA/+ADoAMgABsAAAERNDYyFhURITIWFAYjIREUBiImNREhIiY0NjMB4BIcEgFgDhISDv6gEhwS/qAOEhIOAaABYA4SEg7+oBIcEv6gDhISDgFgEhwSAAEAAAAAA6ACmQAMAAAlJyYOARcJATYuASIHAZfTDSQJDQEAAgAJARMZCr3TDQojDv8AAgAKGhMJAAAAAAEAAAAAAzcCtwAZAAABBycmIgYUHwEHBh4BPwEXFjI2NC8BNzYuAQL8/PwKGRMJ/PwNCSMO/PwKGRMJ/PwNCSQCqfz8CRMZCvz8DSQJDfz8CRMZCvz8DSQJAAAAAgAAAAADRAL0ABEAIwAAATYyFwEWFAcBBiImNDcJASY0JzYyFwEWFAcBBiImNDcJASY0AcUJGAkBSwkJ/rUJGBIJATj+yAn3CRgJAUsJCf61CRgSCQE4/sgJAusICP6rCRoJ/qsIEhgJAUABQAkYCggI/qsJGgn+qwgSGAkBQAFACRgAAgAAAAADRAL0ABAAIQAAATYyFhQHCQEWFAYiJwEmNDcBNjIWFAcJARYUBiInASY0NwIRCRgSCf7IATgJEhgJ/rUJCQJLCRgSCf7IATgJEhgJ/rUJCQLrCBIYCf7A/sAJGREIAVUKGQkBVQgSGAn+wP7ACRkRCAFVChkJAAEAAAAAApQC9AAQAAAJAQYUFwEWMjY0JwkBNjQmIgJh/rUJCQFLCRgSCf7IATgJEhgC6/6rCRkK/qsIEhgJAUABQAkYEgAAAAEAAAAAA3QCNAAQAAAJAiYiBhQXARYyNwE2NCYiA0D+wP7ACRgSCAFVCRoJAVUIEhgCK/7IATgJEhgI/rQJCQFLCRkRAAAAAAEAAAAAAtQC9AARAAABBhQXCQEGFBYyNwE2NCcBJiIBVQkJATj+yAkSGAkBSwkJ/rUJGALrChgJ/sD+wAkYEggBVQkaCQFVCAAAAAABAAAAAAN0AjIAFAAACQEGFBcVFjI3CQEWMjc1NjQnASYiAen+rAkJCRkJAUABQAkZCQkJ/qwJHAIo/psKGAoBCQkBUP6wCQkBChgKAWUJAAIAAP+3AwQDQQAfACsAAAERNDY7ATIWFAYrARUzMhYUBisBFR4BFxYGBwYmJyY2Ez4BNy4BJw4BBx4BAcATDcAOEhIOoKAOEhIOoGiOCQR9ZmieFhFppFJsAgJsUlJsAgJsAbgBaA0TEhwSgBIcEoACh2dolw8Lc2Zmpv5kAmxSUmwCAmxSUmwAAAAAAwAA/+ADgANAAAsAFwAzAAABPgE3LgEnDgEHHgEXLgEnPgE3HgEXDgETNS4BJyEOAQcVFAYiJj0BPgE3IR4BFxUUBiImAgBSbAICbFJSbAICbFJtkAMDkG1tkAMDkNMBNin+QCk2ARIcEgJaRAHARFoCEhwSAYACbFJSbAICbFJSbEIDkG1tkAMDkG1tkP69YCk2AQE2KWAOEhIOYERaAgJaRGAOEhIABAAA/8ADgANMAA8AHwAsAD8AABMiBhURFBYzITI2NRE0JiMlIR4BFxEOAQchLgEnET4BBTIWHQEUBiImPQE0NhMuAQcOAQcVIRcVITU+ATc2FhfgDhISDgJADhISDv3AAkApNgEBNin9wCk2AQE2AUkOEhIcEhLAG3ZFRVYBAWBg/gACcV1cnSUBwBIO/oAOEhIOAYAOEkABNin+gCk2AQE2KQGAKTafEg7ADhISDsAOEgEnQUAMDmdHQCYagF6KFBBWVwAAAAAFAAD/wAOAA0AADwAfACwANQA+AAATIgYVERQWMyEyNjURNCYjJSEeARcRDgEHIS4BJxE+AQUyFh0BFAYiJj0BNDY3NS4BJw4BBxUTHgEXFSE1PgHgDhISDgJADhISDv3AAkApNgEBNin9wCk2AQE2AUkOEhIcEhLOAmxSUmwCwG2QA/4AA5ABwBIO/oAOEhIOAYAOEkABNin+gCk2AQE2KQGAKTafEg7ADhISDsAOEqBAUmwCAmxSQAFAA5BtgIBtkAAAAQAAAAADTAMhABcAAAERFAYiJjURBwYiJjQ3ATYyFwEWFAYiJwI8ERoR3AgaEQkBDwgaCAEPCREZCQKz/acMEREMAlnqCRMaCgEgCQn+4AoaEwkAAgAAAAADQQLBABAAHAAAASEiJjQ2MyEyFhURFAYiJjUTNjIWFAcBBiImNDcDAP5iDhISDgG+DhISHBIJChoTCf3gChoTCQKAEhwSEg7+QA4SEg4B1wkTGgr94AkTGgoAAgAAAAADIQLBABAAHAAAASEyNjQmIyEiBhURFBYyNjUDJiIGFBcBFjI2NCcBAAGgDhISDv5ADhISHBIJChoTCQIgChoTCQKAEhwSEg7+QA4SEg4B1wkTGgr94AkTGgoAAQAAAAADYQLBABcAAAEhIgYUFjMhBwYUFjI3ATY0JwEmIgYUFwLz/a0OEhIOAlPqCRMaCgEgCQn+4AoaEwkBoBIcEukKGhMJASAKGgoBIAkTGgoAAgAAAAADgALBAAsAHAAAEyEyFhQGIyEiJjQ2FwEWFAYiJwEmNDcBNjIWFAfgAoAOEhIO/YAOEhIbAQoJExoK/uAJCQEgChoTCQGgEhwSEhwSIP73ChoTCQEgChoKASAJExoKAAEAAP/lA0AC+AAXAAAlETQmIgYVEScmIgYUFwEWMjcBNjQmIgcCIBIcEukKGhMJASAKGgoBIAkTGgpaAn4OEhIO/YL4ChUaC/7OCgoBMgsaFQoAAAIAAAAAA0ECoQAQABwAACUiBhQWMyEyNjURNCYiBhURFxYyNjQnASYiBhQXAWAOEhIOAcAOEhIcEgkKGhMJ/eAKGhMJgBIcEhIOAcAOEhIO/mA3CRMaCgIgCRMaCgAAAAIAAAAAAyECoQAQABwAACUhMhYUBiMhIiY1ETQ2MhYVAwYiJjQ3ATYyFhQHAQABoA4SEg7+QA4SEhwSCQoaEwkCIAoaEwmAEhwSEg4BwA4SEg7+KQkTGgoCIAkTGgoAAAYAAP/ABAADTAAKABYAFwAjAC8APwAAAT4BNyYOAhczJgcmEjc2JBcOAhYXJTMhMhUxFCMhIjUxNBchMhYUBiMhIiY0NhczMhYVMRQGKwEuATUxNDYBgAFxZmKtdh0gvRPVPzlvcQEhgmWlYAMy/g0gA8AgIPxAIKABgA4SEg7+gA4SEq7gDhISDuAOEhIBgHfKPgZQnLxdP3+KARxnZBtNB2qyxFhAICAgIIASHBISHBKAEg4OEgESDQ4SAAAAAAIAAP+3A7QDNAANABwAABMOAR4CNjcGLgI3BhMWBDcGBCcuAScmEjcGEvBKMzuXz8VHdN+pPhwJrXABJncr/vyoqOIQC7ujZAkCkE3HzY0vQE8cPqnfdAj+jmwJZKO7CxDiqKgBBCt3/toAAAMAAP//A9ADQAAPACEAMgAAKQEGJicmNjc+ARceAQcOASUhFjY3NiYnJgYPAg4BFx4BAy4BPgEeARcGBy4BDgIWFwJW/vJqlAoEgGo+64B+ghQaxf5rARBuoRUSa2dpwDMQI09gAwhvazgePX+ffh8bIxhhd10rGisBhmpqmA52YSgt2oSDoUEBg2xssyQhT2EfBApzT1BkAUs5lZNUAVVKAxA3PgNCcG8pAAACAAAAAAPQAxYADwAhAAAlIQYmJyY2Nz4BFx4BBw4BJSEWNjc2JicmBg8CDgEXHgECVv7yapQKBIBqPuuAfoIUGsX+awEQbqEVEmtnacAzECNPYAMIb0ABhmpqmA52YSgt2oSDoUEBg2xssyQhT2EfBApzT1BkAAACAAAAAAPAAwQAFwAqAAABLwEuAQ4BDwIOARceARchMj4CNS4BJx4BFw4BByEuAScmNjc+ATc2FgLhIQwXaIJfDwknSVEGCmpLAXAqSzsgAVc4XXECA5l0/pBkjQ4JbWEVf1ZXigIaCCA9RAhRPycJEnRLSl4CIDtLKkluURiQYHOaAwJ+Y2SaGVRrBgVbAAAKAAD/wAPAA0AACwAXACQAMQA9AEoAVwBkAHEAfgAAJT4BNy4BJw4BBx4BFy4BJz4BNx4BFw4BAzIWHQEUBiImPQE0NhMyFh0BFAYiJj0BNDYBNjIfARYOAS8BJjQBNjIfARYUBiIvASY0JTQ2OwEyFhQGKwEiJiU0NjsBMhYUBisBIiYBJjQ/ATYyFhQPAQYiASY0PwE2MhYUDwEGIgIAUmwCAmxSUmwCAmxSbZADA5BtbZADA5BtDhISHBISDg4SEhwSEv7RChoJLgwJIw4tCQIoChoKLQkTGgkuCf1nEg5ADhISDkAOEgMAEg5ADhISDkAOEv2DCQktChoTCS4JGgIVCQkuCRoTCS0KGsACbFJSbAICbFJSbEIDkG1tkAMDkG1tkAK9Eg5ADhISDkAOEv0AEg5ADhISDkAOEgJ9CQktDiMJDC4JGv3rCQkuCRoTCS0KGuwOEhIcEhIODhISHBIS/tEKGgkuCRMaCi0JAigKGgotCRMaCS4JAAUAAAAABAADQAATABQAIAAhAC0AABMmEjc2IBcWEgcjNiYnJiIHDgEXBzMhMhUxFCMhIjUxNAUzITIVMRQjISI1MTRTKFt2eAEYeHZbKEMpSGdo92lnSCmWIAPAICD8QCABACABwCAg/kAgAQCNAQlWVFRW/veNeuxOTExO7HpAICAgIIAgICAgAAAABwAAAAAEAANAAAsADAAYACYAMwA/AEsAADchMhYUBiMhIiY0NhczITIVMRQjISI1MTQnPgE3HgEXIy4BJw4BBwEyFh0BFAYiJj0BNDYFFhQPAQYuAT8BNjIFNjIfARYOAS8BJjQgA8AOEhIO/EAOEhLuIAHAICD+QCBgBMaWlsYEQAOjenqjAwEgDhISHBISAaUKCkQNIwoNRAoZ/NwKGQpEDQojDUQKwBIcEhIcEoAgICAgwJbGBATGlnqjAwOjegJAEg5gDhISDmAOEqkKGQpEDQojDUQKCgoKRA0jCg1EChkABQAAAAAEAAMAAAsAGQAmADIAPgAANyEyFhQGIyEiJjQ2Nz4BNx4BFyMuAScOAQcBMhYdARQGIiY9ATQ2BRYUDwEGLgE/ATYyBTYyHwEWDgEvASY0IAPADhISDvxADhISjxDDjIzDEEEOn3Fxnw4BHg4SEhwSEgGlCgpEDSMKDUQKGfzcChkKRA0KIw1ECoASHBISHBJgi7MDA7OLcI4CAo5wAiASDmAOEhIOYA4SqQoZCkQNCiMNRAoKCgpEDSMKDUQKGQAAAAAGAAD/wAPAA0QAFQAqADcARABRAF4AAAEvAS4BDgEPAg4BBx4BFyE+ATc2JhcOAQchIi4CNT4BNz4BNzYWFx4BATIWHQEUBiImPQE0NjMyFh0BFAYiJj0BNDYzMhYdARQGIiY9ATQ2MzIWHQEUBiImPQE0NgLjIw0YZ4BfEAopQVABAmNLAZBMagkFVpIDkWz+cDFXRCQBblgWfVZViiBcc/0iDhISHBISzg4SEhwSEs4OEhIcEhLODhISHBISAl0GIjtDCE8/KAcNX0JLYwICYExMc61tkAMkRFgwWoIRUmoGBVlPFIr+YhIOYA4SEg5gDhISDmAOEhIOYA4SEg5gDhISDmAOEhIOYA4SEg5gDhIAAAACAAD/vQPBA0QAKAA9AAAlFS4BJz4BNz4BNzYWFx4BBw4BBzU+ATcuAS8CLgEOAQ8CDgEHHgEXLgE/ATYyFg8BMx4BDwEOAS4BPwEBIGF9AgFuWBZ9VlWKIF9zAgR7YEZYAgFWRiMNGGeAXxAKKUFQAQFaxRISCIAKJBMJZYkSEgiABxkYBgZl4UAIhmFaghFSagYFWU8Uj2FgiA5BDWdHSGgPBiI7QwhPPygHDV9CR2FIAR8Q4BAgELABHxDgDAYNGQywAAAAAAcAAP/AA8ADRAAVACoALgAyADYAOgA+AAABLwEuAQ4BDwIOAQceARchPgE3NiYXDgEHISIuAjU+ATc+ATc2FhceAQEzFSM3MxUjBzMVIzczFSM3MxUjAuMjDRhngF8QCilBUAECY0sBkExqCQVWkgORbP5wMVdEJAFuWBZ9VlWKIFxz/WJAQMBAQGBAQMBAQGBAQAJdBiI7QwhPPygHDV9CS2MCAmBMTHOtbZADJERYMFqCEVJqBgVZTxSK/mJAQEAgQEBAoEAABQAA/8ADwANAAAAADAAQACIALAAAEzMxMhURFCMxIjURNAE3NScDEScVIzUFHgEXFQ4BBwURMxUlNz4BPQE0Ji8BgCAgICABwICAQMBAAmkmMAEBMCb9l0ABwGMNEBANYwNAIPzAICADQCD+nQzuDP71ARASGmA4BDYmkCY2BDgBINopCQESDZANEgEJAAAABwAA/8ADQANAAAsAFwAkACUAMQA5AEEAACU+ATcuAScOAQceARcuASc+ATceARcOAQMyFh0BFAYiJj0BNDYHOwEyFTEUKwEiNTE0EzUjFSM1IRUBFTM1MxUhNQIAbZADA5BtbZADA5BtiLUDA7WIiLUDA7WoDhISHBISEiCAICCAIKDAQAFA/wDAQP7AgAOQbW2QAwOQbW2QQwO1iIi1AwO1iIi1Ad0SDqAOEhIOoA4SoCAgICABAICAwMD+AICAwMAAAAwAAP/AA0ADQAALABcAHwAnADAAOQBCAEsAVABdAGYAbwAAJT4BNy4BJw4BBx4BFy4BJz4BNx4BFw4BAzUjFSM1IRUBFTM1MxUhNRMiJjQ2MhYUBgMiJjQ2MhYUBicUBiImNDYyFgUUBiImNDYyFiUGLgE3NjIeARcGLgE3Nh4BFCcWDgEnJjQ+ATcWDgEnJj4BMgIAbZADA5BtbZADA5BtiLUDA7WIiLUDA7UowEABQP8AwED+wKAOEhIcEhIODhISHBISjhIcEhIcEgFAEhwSEhwS/uYOIwoNChkTAdkNJAkMChoT6wwJJA0JExrsDAkjDgkBExmAA5BtbZADA5BtbZBDA7WIiLUDA7WIiLUCPYCAwMD+AICAwMABgBIcEhIcEv7AEhwSEhwSwA4SEhwSEg4OEhIcEhJMDAkkDQkTGuwNCiMOCQETGSQOIwoNChkTAdkOIwkMChoTAAYAAP/AA4ADQAALABcAJAAlAC4APgAAIT4BNy4BJw4BBx4BFy4BJz4BNx4BFw4BAzIWFQcUBiImJzc0NhMjHgEyNjQmIgYTFSM1IyImNDYzITIWFAYjAgCItQMDtYiItQMDtYij2QQE2aOj2QQE2aMOEgESGxIBARIOQAEkNiQkNiRfQGAOEhIOAQAOEhIOA7WIiLUDA7WIiLVDBNmjo9kEBNmjo9kCfBIO4A4SEg7gDhL/ABskJDYkJAGlgIASHBISHBIAAAAABwAA/8QDvgNFAAsAFwAeACUANgBDAE8AACU+ATcuAScOAQceARcuASc+ATceARcOASUXBwYiJjclBxcWMjYnATMyFhQGKwEiJj0BNDYyFhUlJj4CFwcmDgIXByE2LgIHFzYeAgcCAIi1AwO1iIi1AwO1iKPZBATZo6PZBATZ/oE4MAokEggB6DgwCiQSCP70oA4SEg7ADhISHBL+Wh8LU24xLxw7KwsNLgNDHwtSbzEvHDssCg1AA7WIiLUDA7WIiLVDBNmjo9kEBNmjo9lDIFMPHxBTIFMPHxABjBIcEhIO4A4SEg4IMW5TCx8vDQosOxwvMW5TCx8vDQosOxwAAAYAAP/AA8ADQAALABUAHgAqADIANgAAAS4BJw4BBxQWFz4BAQA1PgE3HgEXFCU+ATQmIgYUFhcuASc+ATceARcOAQUTITUhFSETKQEHIQMgA6N6eqMDj5GRj/7g/qAExpaWxgT+oBskJDYkJBs2SQEBSTY2SQEBSQEkZv7g/sD+4GYCb/3WTALCAeB6owMDo3pZ5YuL5f45AUDglsYEBMaW4MABJDYkJDYkQQFJNjZJAQFJNjZJwf8AQEABAMAAAAYAAP/AA2EDQAAAAAwAGAAiACMALwAAITMhMhUxFCMhIjUxNAEuAScOAQcUFhc+AQEANT4BNx4BFxQBMyEyFTEUIyEiNTE0AQAgAcAgIP5AIAIgA6N6eqMDj5GRj/7g/qAExpaWxgT+ACABACAg/wAgICAgIAHgeqMDA6N6WeWLi+X+OQFA4JbGBATGluABACAgICAAAAAABQAA/8ADYQNAAAAADAAYACIAPgAAITMhMhUxFCMhIjUxNAEuAScOAQcUFhc+AQEANT4BNx4BFxQBMzIWFAYrARUUBiImPQEjIiY0NjsBNTQ2MhYVAQAgAcAgIP5AIAIgA6N6eqMDj5GRj/7g/qAExpaWxgT+wGAOEhIOYBIcEmAOEhIOYBIcEiAgICAB4HqjAwOjelnli4vl/jkBQOCWxgQExpbgAQASHBJgDhISDmASHBJgDhISDgAAAAAGAAD/wANhA0AAAAAMABgAIgArADcAACEzITIVMRQjISI1MTQBLgEnDgEHFBYXPgEBADU+ATceARcUJT4BNCYiBhQWFy4BJz4BNx4BFw4BAQAgAcAgIP5AIAIgA6N6eqMDj5GRj/7g/qAExpaWxgT+oCk2NlI2NilEWgICWkREWgICWiAgICAB4HqjAwOjelnli4vl/jkBQOCWxgQExpbggAE2UjY2UjZBAlpERFoCAlpERFoAAAAABAAA/8ADYQNAAAsAFQAeACoAAAEuAScOAQcUFhc+AQEANT4BNx4BFxQlPgE0JiIGFBYXLgEnPgE3HgEXDgEDIAOjenqjA4+RkY/+4P6gBMaWlsYE/qApNjZSNjYpRFoCAlpERFoCAloB4HqjAwOjelnli4vl/jkBQOCWxgQExpbggAE2UjY2UjZBAlpERFoCAlpERFoAAAAEAAD/wAOAA0AACwAXACQAPgAAAT4BNy4BJw4BBx4BFy4BJz4BNx4BFw4BJzIWFREUBiImNRE0NgcVDgEHHgEXPgE3LgEnNR4BFw4BBy4BJz4BAgBSbAICbFJSbAICbFJtkAMDkG1tkAMDkG0OEhIcEhJyV2gBA7OKirMDAWhXcowCBNmjo9kEAowBgAJsUlJsAgJsUlJsQgOQbW2QAwOQbW2QPRIO/wAOEhIOAQAOEolBDzEWHz8CAj8fFjEPQRFRNURaAgJaRDVRAAADAAD/wAPAA0AACwAXACMAACE+ATcuAScOAQceARcuASc+ATceARcOARMOAQcGJjc+ATc2FgIAo9kEBNmjo9kEBNmjvv0FBf2+vv0FBf0YSqeqCAwDSqarCAwE2aOj2QQE2aOj2UQF/b6+/QUF/b6+/QKAq6ZKAwwIqqZLAwwAAAUAAAAAA8ADQAAPAB8AOwA/AE8AABMOAQcRHgEXIT4BNxEuASclIR4BFxEOAQchLgEnET4BATMyFhQGKwEVFAYiJj0BIyImNDY7ATU0NjIWFQMVITUlITIWHQEUBiMhIiY9ATQ2wBskAQEkGwKAGyQBASQb/YACgDZJAQFJNv2ANkkBAUkBlmAOEhIOYBIcEmAOEhIOYBIcEsABQP6gAYAOEhIO/oAOEhICgAEkG/5AGyQBASQbAcAbJAFAAUk2/kA2SQEBSTYBwDZJ/sESHBJgDhISDmASHBJgDhISDgEgQEBAEg6ADhISDoAOEgAAAAkAAP/AA6EDQAAIABcAHQAmACwANQA5AEUAUQAAAREeARc+ATcRJSEyFhURDgEHLgEnETQ2BTMGBwYHNyMRMjc2NzQmBSMWFxYXJzMRIicmJyY2ATMVIwchMhYUBiMhIiY0NjchMhYUBiMhIiY0NgFAAmxSUmwC/mABwA4SA5BtbZADEgHvXQkiFhx/v19BOgUT/XNeCiEXHH+/YEA6BQETAW1AQOACAA4SEg7+AA4SEo4BAA4SEg7/AA4SEgMA/wBSbAICbFIBAEASDv7gbZADA5BtASAOEsByIRYM9f7AQDqlDRRAciEWDPX+wEA6pQ0U/oDAgBIcEhIcEoASHBISHBIABAAA/8ADqANAADMAPABGAFAAACE1LgEnIyImLwEmPgI7ATU0NjMhMhYdATMyHgIPAQ4BKwEOAQcVMzIWFAYjISImNDYzAREhER4BFz4BNzMyNj8BNiYrAQU1IyIGHwEeATMB4E90FSEgMgotBgcWIBJZEg4BwA4SWRIgFgcGLgkyICEVdE+ADhISDv7ADhISDgFg/oACbFJSbEIZChEDLgIIBln+AFkGCAIuAxEKwgtmTSUfmRIjHhBgDhISDmAQHiMSmR4mTWYLwhIcEhIcEgHAAUD+wFJsAgJsUgwLmQYKwMAKBpkLDAAAAAAGAAD/wANAA0AACwAXAB4AIwAoADQAACE+ATcuAScOAQceARcuASc+ATceARcOAQMjFTYzMhc3FRYXNyEjFzY3AyEyFgcDJiIHAyY2AgBtkAMDkG1tkAMDkG2ItQMDtYiItQMDtUiAICAdI0AlKSf+i3UnKSWbAjYOEwI6q6qrOgITA5BtbZADA5BtbZBDA7WIiLUDA7WIiLUDPcgICMjcDRX+/hUNARwWD/6FYGABew8WAAAHAAD/wANAA0AACwAXACIAKQAuADMAPwAAIT4BNy4BJw4BBx4BFy4BJz4BNx4BFw4BAzMRMxUjNTM1IzUTIxU2MzIXNxUWFzchIxc2NwMhMhYHAyYiBwMmNgIAbZADA5BtbZADA5BtiLUDA7WIiLUDA7WoQEDAQECggCAgHSNAJSkn/ot1JyklmwI2DhMCOquqqzoCEwOQbW2QAwOQbW2QQwO1iIi1AwO1iIi1Ad3/AEBAwEABYMgICMjcDRX+/hUNARwWD/6FYGABew8WAAAAAwAA/8ADwANAAAsAFwAeAAAhPgE3LgEnDgEHHgEXLgEnPgE3HgEXDgEDAgcGJjc2AgCj2QQE2aOj2QQE2aO+/QUF/b6+/QUF/R47QDh6KEAE2aOj2QQE2aOj2UQF/b6+/QUF/b6+/QLQ/vpuTkZYbgAAAAACAAD/wAMAA0AAQABgAAAlMz4BNzUjIiY0NjsBNSMiJjQ2OwE1IyImNDY7ATUuASchDgEHFTMyFhQGKwEVMzIWFAYrARUzMhYUBisBFR4BHwEVMzIWFAYjISImNDY7ATUjLgEnET4BNyEeARcRDgEHAeCgGyQBYA4SEg5gYA4SEg5gYA4SEg5gASQb/wAbJAFgDhISDmBgDhISDmBgDhISDmABJBugwA4SEg7+QA4SEg7AYDZJAQFJNgEANkkBAUk2wAEkGyASHBJgEhwSYBIcEiAbJAEBJBsgEhwSYBIcEmASHBIgGyQBQIASHBISHBKAAUk2AcA2SQEBSTb+QDZJAQAAAAQAAP+/A8EDQQALABcAJwA3AAA3JhA3NiAXFhAHBiAnFiA3NhAnJiAHBhABFhcGFhceATcWFwYmJy4BATYWFx4BByYnNiYnLgEHJsODg4oBZoqDg4r+ml13ATJ3cHB3/s53cAFxIx4rFj5AqE4HB1/HTEkg/qhewElHIykiICgZPD2jTQZDigFmioODiv6aioOwcHB3ATJ3cHB3/s4COAcHTqhAPhYrHiMtIElMx/7UKSNHScBeBgZNoz08GSghAAUAAP/AA8ADQAAFABEAFwAjAFkAACUBBh4CNz4DNwEOAwclNi4CBwEmEjc2JBcWAgcGBAE3NjIWFA8BFxYOAS8BBxcWDgEvAQcXFg4BLwEHBi4BPwEnJj4BHwE3JyY+AR8BNycmNDYyFwGi/vYMFUV1kD9yX0UV/sFAc19FFQK9DBVEdEj+OFYwlZ8BaF5WMpWf/poBZhcKGRMJFi0NCiMNLi0tDQkkDS0tLQ0KIw0tFw0kCQ0WLQ0KIw0uLS0NCSQNLS0tCRMZChkBCkd2RBUeFUVfcj8BPxVGXnE+ckd1RBUN/TBdAWWflTRWXv6an5UyAkgWCRMZChctDSMKDS0tLQ0kCQ0tLS4NIwoNLRYNCSQNFy0NIwoNLS0tDSQJDS0tLgoZEwkADAAA/8ADwANAAAsAFwAeACUAKwAxADcAPgBFAEsAUQBXAAAFLgEnPgE3HgEXDgEnPgE3LgEnDgEHHgEDNjcWFwcmJQYHJzY3FgU3FjcXBicmJzcWFwUGByc2NwE2NxcGByYlBgcmJzcWJTYXByYHJxcGByc2BQcmJzcWAgC+/QUF/b6+/QUF/b6j2QQE2aOj2QQE2aIYFxooIS8CbSIyISobF/6iCyMjCy5tLCcgHSEBIicsCyEd/hciMiEpGxgCeRkYGykhMv6rLi4LIyNKCyEdICcBWSAeIQwsQAX9vr79BQX9vr79OwTZo6PZBATZo6PZAnAYFi4jOSc6Nyo4JTEVzj8EBD8GEw0WOBELHBYNPwsR/lw3KjglLxQWFxQwJTgqfwYGPwQEMj8LETgWFjgRCz8NAAAABwAA/78DwQNBAAcAEAAdACYALgA7AEcAACU+ATcuAQcWBy4BJw4BFz4BByY2NyYnDgEnHgMBFjY3LgEnDgE3Fhc2JicOASUWBgcWFz4BFy4DEwYgJyYQNzYgFxYQAwszOwY4fztYERE/LUsfMjBc1S0wVRcZSM5mCDhddf7tVbc/PIdJGyBnjXYaByFGfgENHgQjJB9Ck0UIOF110Yr+moqDg4oBZoqDbDF+RiIHG3W6SYg8QLdVBCAjZs9HGhdVMCxBdl04AZUxH0ouPhEpW7smVzt+OAY7QESTQx8jIwQfQnVdOP1Ng4OKAWaKg4OK/poAAAIAAP/aA8ADMAAYADsAACUXFjYvATc2Ji8CJiIPAg4BHwEHFBY3FwYuAj8BJy4BPgE/Aj4BMhYfAh4CBg8BFxYOAi8BAgDkBAYBK7gDAgT/cgIIAnL/BAIDuCwGBB4TJyEPAyagDwkNHhTeYwkiKCIJY94UHwwJD6AmAw8hJxPGlHgBBAT+tAMHASXnBATnJQEHA7T+BAQBOAoDGCUU3ZwOJycZAyDJExQUE8kgAxknJw6c3RQlGAMJaQAAAwAA/8ADwANAABcAJwA3AAAlDgEHIS4BJxE+ATcVDgEHER4BFyE+ATcBDgEHER4BFyE+ATcRLgEnJSEeARcRDgEHIS4BJxE+AQMAAUk2/kA2SQEBSTYbJAEBJBsBwBskAf7AGyQBASQbAcAbJAEBJBv+QAHANkkBAUk2/kA2SQEBSUA2SQEBSTYBwDZJAUABJBv+QBskAQEkGwLAASQb/kAbJAEBJBsBwBskAUABSTb+QDZJAQFJNgHANkkAAAAABAAA/+ADoAMgAA4AHgAuAD0AABMzHgEUBisBFRQGIiY1ERMxIxE0NjIWHQEzMhYUBgcBMTMRFAYiJj0BIyImNDY3EyMuATQ2OwE1NDYyFhURoMAOEhIOwBIcEkBAEhwSwA4SEg4CAEASHBLADhISDsDADhISDsASHBIDIAESGxLADhISDgEA/MABAA4SEg7AEhsSAQNA/wAOEhIOwBIbEgH8wAESGxLADhISDv8AAAADAAD/wAOzA0AAGQAaACYAAAEVDgEXHgEXPgE3NiYnNR4BBw4BBy4BJyY2JTMxMhURFCMxIjURNAFgbmMbH7p9fbofG2Nui4gbId+YmOAgG4gBCyAgICAC4EY72Hl5kwICk3l52DtGPf+VlbcDA7eUlv+dIP7AICABQCAABgAA/8ADwANAAAsAFwAkADEAPgBLAAAhPgE3LgEnDgEHHgEXLgEnPgE3HgEXDgEDMhYdARQGIiY9ATQ2EzIWHQEUBiImPQE0NiU0NjsBMhYUBisBIiYlNDY7ATIWFAYrASImAgCj2QQE2aOj2QQE2aO+/QUF/b6+/QUF/b4OEhIcEhIODhISHBIS/m4SDsAOEhIOwA4SAkASDsAOEhIOwA4SBNmjo9kEBNmjo9lEBf2+vv0FBf2+vv0DWxIOwA4SEg7ADhL9wBIOwA4SEg7ADhKgDhISHBISDg4SEhwSEgACAAD/wAPAA0AAEAAhAAAlITIWFAYjISImNRE0NjIWFQURFAYiJjURISImNDYzITIWAQACoA4SEg79QA4SEhwSAkASHBL9YA4SEg4CwA4SgBIcEhIOAsAOEhIOgP1ADhISDgKgEhwSEgAAAAAFAAD/wAPAA0AACwAXAC0APABFAAAhPgE3LgEnDgEHHgEXLgEnPgE3HgEXDgEBPgE3HgEXFAYiJjUuAScOAQcUBiImBR4BDgEuAT4BPwE+ARYHAxY+AS4BDgEWAgCj2QQE2aOj2QQE2aO+/QUF/b6+/QUF/f4CA7WIiLUDEhwSA5BtbZADEhwSAXocDyFARCQLMyQ9BiMZBoENFwgLGhcICwTZo6PZBATZo6PZRAX9vr79BQX9vr79AbuItQMDtYgOEhIObZADA5BtDhISZhZDPxoXOUctArwRCBsS/toECxoXCAsaFwAABQAA/8ADwANAAAsAFwAkACUAMQAAIT4BNy4BJw4BBx4BFy4BJz4BNx4BFw4BAzIWFREUBiImNRE0NgMzITIVMRQjISI1MTQCAKPZBATZo6PZBATZo779BQX9vr79BQX93g4SEhwSEhIgAQAgIP8AIATZo6PZBATZo6PZRAX9vr79BQX9vr79ArsSDv8ADhISDgEADhL/ACAgICAAAwAA/8ADwANAAAsAFwAoAAAhPgE3LgEnDgEHHgEXLgEnPgE3HgEXDgETNjIWFAcBBiIvASY0NjIfAQIAo9kEBNmjo9kEBNmjvv0FBf2+vv0FBf0rChoTCf7gChoKoAkTGgqJBNmjo9kEBNmjo9lEBf2+vv0FBf2+vv0CUgkTGgr+4AkJoAoaEwmKAAADAAD/wAPAA0AACwAXACMAAAEhMhYUBiMhIiY0NhM+ATcuAScOAQceARcuASc+ATceARcOAQFgAUAOEhIO/sAOEhKuo9kEBNmjo9kEBNmjvv0FBf2+vv0FBf0BoBIcEhIcEv5gBNmjo9kEBNmjo9lEBf2+vv0FBf2+vv0ABAAA/8ADwANAAAsAFwAjAC8AAAEhMhYUBiMhIiY0NhcRNDYyFhURFAYiJhc+ATcuAScOAQceARcuASc+ATceARcOAQFgAUAOEhIO/sAOEhKOEhwSEhwSIKPZBATZo6PZBATZo779BQX9vr79BQX9AaASHBISHBLAAUAOEhIO/sAOEhLSBNmjo9kEBNmjo9lEBf2+vv0FBf2+vv0ACAAA/8ADwANAAAsAFwAjAC8ANAA5AD4AQwAAIT4BNy4BJw4BBx4BFy4BJz4BNx4BFw4BJz4BNy4BJw4BBx4BFy4BJz4BNx4BFw4BEzcXByYfAQcnNg8BJzcWLwE3FwYCAKPZBATZo6PZBATZo779BQX9vr79BQX9vlJsAgJsUlJsAgJsUm2QAwOQbW2QAwOQAqEtoBMToC2hG/mhLaATE6AtoRsE2aOj2QQE2aOj2UQF/b6+/QUF/b6+/fsCbFJSbAICbFJSbEIDkG1tkAMDkG1tkAGaoC2hG/mhLaATE6AtoRv5oS2gEwAAAAAGAAD/wAPAA0AACAARABoAGwAnAC0AAAEeARcVIzU+AQMhES4BJw4BBwEeARcRIRE+AQEzITIVMRQjISI1MTQFMw4BIiYCABskAYABJOUCAAOQbW2QAwEAiLUD/YADtf7IIANAICD8wCABgIABJDYkA0ABJBtAQBsk/UEBQG2QAwOQbQFAA7WI/oABgIi1/YMgICAggBskJAAAAAAEAAD/wAPAA0AAEAAtADMAPwAAPwEhESYnNx4BFREzMhYUBiMhIyImNDY7ARE+ATc1PgEyFhcVHgEXBy4BDgEHERczDgEiJiUGIi4BNwE2Mh4BB/FAAc8BGy4WGGAOEhIO/Pc3DhISDmACjHIBJDYkATJXIy42mJdYAcCAASQ2JP7WChkTAQkCwAoZEwEJQEABQEA2LyVTLf7AEhwSEhwSAUB1qxoGGyQkGwYLMSUuPCQ6gFH+6qobJCRACRMZCgLFCRMaCgAAAAMAAP/AA0ADQAANABsARQAAAQ4BBxEeARc+ATcRLgEnHgEXEQ4BBy4BJxE+ARM1LgEnNTQ2MhYdAR4BFzM+ATc1NDYyFh0BDgEHFTMyFhQGKwEiJjQ2MwIANkkBAUk2NkkBAUk2UmwCAmxSUmwCAmwyeqMDEhwSAn9fQF9/AhIcEgOjekAOEhIOwA4SEg4DAAFJNv8ANkkBAUk2AQA2SUECbFL/AFJsAgJsUgEAUmz8wkADo3ogDhISDiBffwICf18gDhISDiB6owNAEhwSEhwSAAAABQAA/8ADYANAABYAJABHAFUAYQAAAQcuATURPgE3HgEXFQc1LgEnDgEHERYXFj4CPQE3FRQOASInBzcWOwE+ATc1NDYyFh0BDgEHFTMyFhQGKwEiJjQ2OwE1IiYnLgE9ATQ2MhYdARQWFwcGIi4BNwE2Mh4BBwGcLRcYAmxSUmwCQAFJNjZJAQFPHj81HkAzWmUuZS43QEBffwISHBIDo3pADhISDsAOEhIOQC5UUyUmEhwSHhqhChkTAQkCwAoZEwEJATAuG0AjAQBSbAICbFIsQGw2SQEBSTb/AC5JDAckOCA5QHk0WDQZZS4iAn9fIA4SEg4geqMDQBIcEhIcEkAbQyljNiAOEhIOICtLHqcJExkKAsUJExoKAAACAAD/3QOoAygAAwAWAAATBRsBAS4CNjcBNh4CBwEOAS4BJwP6AT8o7P0sCw8DCwoDCgkSDgQE/soEExYPATEB3yv+ygJP/uMBDxcSBAE3BAQOEgn8+AoLAw8LAYAAAAAHAAAAAAPAAuAADwAfACgAKQA1ADYAQgAAEyIGFREUFjMhMjY1ETQmIyUhHgEXEQ4BByEuAScRPgEFHgEUBiImNDYFMyEyFTEUIyEiNTE0FTMhMhUxFCMhIjUxNKAOEhIOAsAOEhIO/UACwCk2AQE2Kf1AKTYBATYCSRskJDYkJP5bIAEAICD/ACAgAQAgIP8AIAKgEg7+AA4SEg4CAA4SQAE2Kf4AKTYBATYpAgApNp8BJDYkJDYkfyAgICCAICAgIAAABAAAAAADwALgAAkAGQAhACkAABMRHgEXIT4BNxElIR4BFxEOAQchLgEnET4BBQMOASImJwMzFx4BMjY/AYABJBsCgBskAf0AAwAbJAEBSTb9gDZJAQEkAyP3HEtUSxz3VdMSMjgyEtMCoP4AGyQBASQbAgBAASQb/gA2SQEBSTYCABskP/7lHyIiHwEb8RUWFhXxAAYAAP/dA6ADAAANAB4AHwArACwAOAAAPwEhPgE3ES4BJyEOAQcTBwYmJxE+ATchHgEXEQ4BBwEzITIVMRQjISI1MTQ1MyEyFTEUIyEiNTE0oHICDhskAQEkG/3AGyQBiJQQIwEBSTYCQDZJAQFJNv4gIAFAICD+wCAgAUAgIP7AIEVbASQbAaAbJAEBJBv94HYMERQCfTZJAQFJNv5gNkkBASAgICAgwCAgICAAAAAABQAA/90DoAMAAA0AHgAnADAAOQAAJSE+ATcRLgEnIQ4BBxE3BwYmJxE+ATchHgEXEQ4BBwEiJjQ2MhYUBjMiJjQ2MhYUBiEiJjQ2MhYUBgESAg4bJAEBJBv9wBskAYiUECMBAUk2AkA2SQEBSTb+4BYdHSwdHaoWHR0sHR3+ahYdHSwdHaABJBsBoBskAQEkG/3FG3YMERQCfTZJAQFJNv5gNkkBAS0dLB0dLB0dLB0dLB0dLB0dLB0AAAAFAAD/0APAAyAAEQAkADAAPABIAAA/ARcWMz4BNy4BJw4BBxQWHwEHBiY/AS4BNT4BNx4BFw4BByInEyIuATQ+ATMyFhQGMyIuATQ+ATMyFhQGISIuATQ+ATMyFhQGr4cYUmCj2QQE2aOj2QQkIxZcExsHOigsBPjExPgEBPjEbWLPDhcODhcOFh0dqg4XDg4XDhYdHf5qDhcODhcOFh0dKC0LKgXLkJDLBQXLkDRmLR3GBh0TkjV5QKX1Bgb1paX1BjABPQ0ZGhkNHSwdDRkaGQ0dLB0NGRoZDR0sHQAAAAIAAP/dA6ADAAANAB4AACUhPgE3ES4BJyEOAQcRNwcGJicRPgE3IR4BFxEOAQcBEgIOGyQBASQb/cAbJAGIlBAjAQFJNgJANkkBAUk2oAEkGwGgGyQBASQb/cUbdgwRFAJ9NkkBAUk2/mA2SQEAAAAGAAD/0APAAyAAEQAkACUAMQAyAD4AAD8BFxYzPgE3LgEnDgEHFBYfAQcGJj8BLgE1PgE3HgEXDgEHIicTMyEyFTEUIyEiNTE0NzMhMhUxFCMhIjUxNK+HGFJgo9kEBNmjo9kEJCMWXBMbBzooLAT4xMT4BAT4xG1iDyABQCAg/sAgICABACAg/wAgKC0LKgXLkJDLBQXLkDRmLR3GBh0TkjV5QKX1Bgb1paX1BjABMCAgICDAICAgIAAAAAIAAP/QA8ADIAARACQAAD8BFxYzPgE3LgEnDgEHFBYfAQcGJj8BLgE1PgE3HgEXDgEHJievghdSZqvSAwPRrKzRAyQhFloTGwc4KCoC7dHR7QIC7tB4XCgsDCgEyJSVxwQEx5U4aCwdwQYdE401fEKl9QYG9aWl9QYBLgAKAAD/4AOgAyAADwAfACgANAA1AEEASgBWAFcAYwAAEw4BBxEeARchPgE3ES4BJyUhHgEXEQ4BByEuAScRPgETPgE0JiIGFBYXLgEnPgE3HgEXDgE3MyEyFTEUIyEiNTE0Ez4BNCYiBhQWFy4BJz4BNx4BFw4BJTMhMhUxFCMhIjUxNOAbJAEBJBsCQBskAQEkG/3AAkA2SQEBSTb9wDZJAQFJ1hskJDYkJBs2SQEBSTY2SQEBSQogAQAgIP8AIMAbJCQ2JCQbNkkBAUk2NkkBAUn+SiABACAg/wAgAuABJBv9wBskAQEkGwJAGyQBQAFJNv3ANkkBAUk2AkA2Sf7BASQ2JCQ2JEEBSTY2SQEBSTY2SZ8gICAg/mABJDYkJDYkQQFJNjZJAQFJNjZJnyAgICAAAAQAAAAAA/4CyAANABsAKAA0AAABDgEHHgEXIT4BNy4BJyUhHgEXDgEHIS4BJz4BEzI+ATQuASMOAQceARcuASc+ATceARcOAQFKbJADA5BsAWxskAMDkGz+lAFsi7kEBLmL/pSLuQQEuYseMR4eMR4uPgEBPi5NZwICZ01NZwICZwJ/A5BsbJADA5BsbJADSQS5i4u5BAS5i4u5/k8dMzozHQE+Li4+SgJnTU1nAgJnTU1nAAQAAAAAA/4CyAANABsAKAA0AAABDgEHHgEXIT4BNy4BJyUhHgEXDgEHIS4BJz4BATI+ATQuASMOAQceARcuASc+ATceARcOAQFKbJADA5BsAWxskAMDkGz+lAFsi7kEBLmL/pSLuQQEuQH3HjIdHTIeLj4BAT4uTWcCAmdNTWcCAmcCfwOQbGyQAwOQbGyQA0kEuYuLuQQEuYuLuf5PHTM6Mx0BPi4uPkoCZ01NZwICZ01NZwAAAAACAAAAAAPAAwAAIQBDAAABFSMOAQcVHgEXIT4BNzU0Jic1HgEXFQ4BByEuASc1PgE3AzUzPgE3NS4BJyEOAQcVFBYXFS4BJzU+ATchHgEXFQ4BBwKAwDZJAQFJNgFANkkBIh45RgECbFL+wFJsAgJsUkDANkkBAUk2/sA2SQEiHjpFAQJsUgFAUmwCAmxSAgBAAUk2gDZJAQFJNoAjOhJGFWBAgFJsAgJsUoBSbAL/AEABSTaANkkBAUk2gCM6EkYVYj6AUmwCAmxSgFJsAgAAAwAAAAADfwL/ABEAIwAnAAABJzc+AScmBg8BJzc+ARcWBg8CDgEnJjY/ARcHDgEXFjY/ARMXAScCzC5bOA0uMow7Wy1aT8BFQQ1LtVpPwEVBDUtaLls4DS4yjDtbLS3+8S0BDy1bO4wyLg04Wy5aSw1BRcBPtVpLDUFFwE9aLVs7jDIuDThbATwt/vEtAAAADgAA/8ADwANAAA8AHwAoADEAOgBDAEwAVQBeAGcAcAB5AIIAiwAAAQ4BBxEeARchPgE3ES4BJyUhHgEXEQ4BByEuAScRPgE3MhYdASM1NDYzMhYdASM1NDYhMhYdASM1NDYTIiY9ATMVFAYzIiY9ATMVFAYhIiY9ATMVFAYBNDY7ARUjIiY1NDY7ARUjIiYRNDY7ARUjIiYlFAYrATUzMhY1FAYrATUzMhYRFAYrATUzMhYBQBskAQEkGwGAGyQBASQb/oABgDZJAQFJNv6ANkkBAUn2DhJAEq4OEkAS/s4OEkASrg4SQBKSDhJAEv6yDhJAEv7SEg6AgA4SEg6AgA4SEg6AgA4SA4ASDoCADhISDoCADhISDoCADhICgAEkG/6AGyQBASQbAYAbJAFAAUk2/oA2SQEBSTYBgDZJgRIOgIAOEhIOgIAOEhIOgIAOEvyAEg6AgA4SEg6AgA4SEg6AgA4SAcAOEkASrg4SQBL+zg4SQBKuDhJAEpIOEkAS/rIOEkASAAACAAD/wAPAA0MAGwA+AAABDgEHEScuAQcOAR8BHgEzIRE0Ji8BLgE9AS4BAxcRND4BMh4BHQEUFh8BHgEXEQ4BByEiJi8BLgE+ATc2FhcCABwkAa0ZPRsOBgu1CRsPAgAZFc4fJQEktBghPUU9IQwLzikxAQEkG/4AHzUStQ0LCBgTLGUpAwABJBv9+4oUAhIMJA/wDQ0BQRUiBj4KMSGoGyT+VBMBgCM8JCQ8I6gLEQM+DUIr/r8bJAEbGPESKy0lDB0FIAAAAAYAAP/AA0ADQAALABcAGAAkACUAMQAAAT4BNy4BJw4BBx4BFy4BJz4BNx4BFw4BJzMxMhURFCMxIjURNAczITIVMRQjISI1MTQCAG2QAwOQbW2QAwOQbYi1AwO1iIi1AwO1qCAgICCgIAFAICD+wCABAAOQbW2QAwOQbW2QQwO1iIi1AwO1iIi1PSD/ACAgAQAgoCAgICAABwAA//YDigMKAAwAGAAZACUAJgAyADYAACU+ATcuAScOAQceAR8BLgEnPgE3HgEXDgETOwEyFTEUKwEiNTE0OwExMh0BFCMxIj0BNAMnARcBkF9/AwN/X2B/AgJ/XwF4nwMDn3d4nwMDn2oc4Rwc4RzhHBwcHPUoASUoLwJ/YF9/AwN/X2B/AjkDn3d4nwMDn3d4nwMRHBwcHBzhHBzhHP6rKAElKAAACAAA/8ADwQNAAAMAEQAVACMAKAA6AD8AUQAAASM1MxEVFAYrASImPQEzFTM1JzUzFRMjNSMVIzU0NjsBMhYVBQcXITUlITIWHQEUBiMhIi8BJjQ/ATYBByE1ITchIgYdARQWMyEyPwE2NC8BJgKAQEASDsAOEkCAwEDAQIBAEg7ADhL+XUdHAiP9zgJSDhISDv2uDgpjCAhjCgK1R/3dAiMO/a8OEhIOAlEPCWQICGQJASDA/qCgDhISDqCAgKDAwAFggICgDhISDqBQUKBAEg7gDhILcAkYCXAL/hBQoEASDuAOEgtwCRgJcAsAAAAABgAA/8ADwANAAAwAGQAmADMATABYAAAlJw4BIiYnBx4BMzI2Nz4BNTQmJwceARQGBxMuASMiBgcXPgEyFhclDgEVFBYXNy4BNDY3ATY3PgE1NCYnLgEjIgYHDgEVFBYXHgEyNgMuASc+ATceARcOAQL4WyJQVlAiWzR/RUd+YCwvMCtbGhwcGi40f0VHfjNbIlBYTyH+PiwvMCtbGxscGgFGDAsVGCMhGkAiK0wcFRgjIRk/SD9jvv0FBf2+vv0FBf1bWxsbGxtbLC8wWDR/RUd+M1shT1pPIQHCLC8wK1sbGxwaLjR/RUd+M1siUFhPIf7QCwwZPyQrTBwWFyMhGT8kK0wcFRgY/ugF/b6+/QUF/b6+/QAAAAMAAAAAA8ADQAAbACcAMwAAARUhDgEHER4BFyE+ATcRMxEOAQchLgEnET4BNwE+ATcuAScOAQceARcuASc+ATceARcOAQIA/wAbJAEBJBsCABskAUABSTb+ADZJAQFJNgIANkkBAUk2NkkBAUk2UmwCAmxSUmwCAmwDAEABJBv+ABskAQEkGwEA/wA2SQEBSTYCADZJAf8AAUk2NkkBAUk2NklBAmxSUmwCAmxSUmwABAAA//8DuQMvAB0AIAAlAC8AAAEVITIWBwMOAQchLgEnAyY2MyERPgEfATcVFxYGDwE3JxEhFyE3BRceARchPgE/AQIAAZYPEwRME2RC/qJCZBNMBBMPAVYBHhAOA+gQARHmkZH+lRICshL9Th0MQywBXixDDB0B/T0aD/70P0sBAUs/AQwPGgFKEhIIBwEDfgonCCNCT/6sQECAYyoyAQEyKmMAAAAABgAAAAADvQLAACQAMAA3ADsARABNAAA3IyImNRE0NjMhMhYdATMyFhcTFgYrARYOASIuATcjFg4BIi4BNz4BMhYXMzY3ESERITMnIxUeATcnIxUDPgE0JiIGFBYFPgE0JiIGFBaBIQ4SEg4CQA4SpQwRAjYCEw5cBCNHUkcjBIIEI0dSRyMbFT5KPhWwGy3+AAKoTROiIDZCD4kQIi0tRC0t/oIiLS1ELS2gEg4B4A4SEg5gDwz+oA8WKkktLUkqKkktLUlqHiIiHicRAWj+YIBBBCClYGD+oAEtRC0tRC0BAS1ELS1ELQAAAAAJAAAAAAPAAwAACwAXABgAJAAwADwATQBdAGEAACU+ATcuAScOAQceARcuASc+ATceARcOASczITIVMRQjISI1MTQFPgE3LgEnDgEHHgEXLgEnPgE3HgEXDgEBIiY0NjsBMhYXExYOASYnAwUiJjQ2OwEyFh8BFgYmLwEXJwEXAQA2SQEBSTY2SQEBSTZSbAICbFJSbAICbFIgAUAgIP7AIAIANkkBAUk2NkkBAUk2UmwCAmxSUmwCAmz+jg4SEg6gCxEDYAMOGRYEWv35DhISDoALEANABhglBTmsKgFAKkABSTY2SQEBSTY2SUECbFJSbAICbFJSbN4gICAgoAFJNjZJAQFJNjZJQQJsUlJsAgJsUlJsAr4SHBINC/6ADRYGDA0BaMASHBIMCsASHAgSqtgwASAwAAAEAAD/wANgA1sABwAZACIALgAAExEhEScmIgc3BRYVERQGIyEiJjURNDclNjIDPgE0JiIGFBYXLgEnPgE3HgEXDgHgAkD3EywTegEDDBIO/YAOEgwBAyVYLBskJDYkJBs2SQEBSTY2SQEBSQJC/b4CQsoPDzLUCg/9jw4SEg4CcQ8K1B3+ZQEkNiQkNiRBAUk2NkkBAUk2NkkAAAAFAAD/wANgA1sABwALAB0AJgAyAAA3IREnJiIPAREVITUDBRYVERQGIyEiJjURNDclNjIDPgE0JiIGFBYXLgEnPgE3HgEXDgHgAkD3EywT9wJAzwEDDBIO/YAOEgwBAyVYLBskJDYkJBs2SQEBSTY2SQEBScABgsoPD8r+PoCAAr7UCg/9jw4SEg4CcQ8K1B3+ZQEkNiQkNiRBAUk2NkkBAUk2NkkAAAAEAAAAAAPAA0AAFQAZACkAMgAAASM1IREhFRQWMyEiJjURNDYzITIWFQURIRElITIWFREUBiMhIiY1ETQ2AS4BNDYyFhQGAoBA/kABgBIO/kAOEhIOAgAOEv4AAwD84ANADhISDvzADhISAm4bJCQ2JCQCYKD9QCAOEhIOAwAOEhIO4P4AAgBAEg79wA4SEg4CQA4S/oABJDYkJDYkAAAABAAA/+ADoAMgABcALwA7AEcAABMXBgceARc+ATcmJzceARUOAQcuASc0NjcXBgceARc+ATcmJzceARUOAQcuASc0NgUuASc+ATceARcOASc+ATcuAScOAQceAaIeHwEExZeXxQQBHx8fIgXsr6/sBSMfHh8BBMWXl8UEAR8fHyIF7K+v7AUjAX2v7AUF7K+v7AUF7K+XxQQExZeXxQQExQE7Ox4iQF4CAl5AIh47Gj4jY3sCAntjIz7aOx4iQF4CAl5AIh47Gj4jY3sCAntjIz6BAntjY3sCAntjY3s+Al5AQF4CAl5AQF4AAAAFAAAAAAPAAwAAIQAlAEkAVQBeAAABFSERIzUzMhYXFhceARURFAYHBgcOASMhIiYnJicuAT0BASERIRMRFAYHBgcOASMhIiYnJicuATURNDY3Njc+ATMhMhYXFhceAQEuASc+ATceARcOASc+ATQmIgYUFgEAAoCAlwoLBAgEAgICAgUHBAsK/VIKCwQIBAICAkD9gAKAQAICBQcECwr9UgoLBAgEAgICAgUHBAsKAq4KCwQHBQIC/oBEWgICWkREWgICWkQpNjZSNjYBAMABwEACAgUHBAsK/hIKCwQIBAICAgIFBwQLCtcBwP5AAdf+EgoLBAgEAgICAgUHBAsKAe4KCwQIBAICAgIFBwQL/l8CWkREWgICWkREWj4BNlI2NlI2AAAAAAUAAAAAA8AC4QAjAEcASwBPAFMAAAE0JicmJy4BIyEiBgcGBw4BFREUFhcWFx4BMyEyNjc2Nz4BNRMRFAYHBgcOASMhIiYnJicuATURNDY3Njc+ATMhMhYXFhceAQUhFSEVIRUhFyEVIQOABAYHDwkcH/3IHxwJDwcGBAQGBw8JHB8COB8cCQ8HBgRACQgRHw8qKv3IKioPHxEICQkIER8PKioCOCoqDiARCAn8gAOA/IADgPyAgAEA/wACPB8cCQ8HBgQEBgcPCRwf/ogfHAkPBwYEBAYHDwkcHwF4/ogqKg4gEQgJCQgRHw8qKgF4KioPHxEICQkIER8PKiZAQECAQAAABQAA/8ADwANAAAUAGQAdACMALwAAAQcRIREnJSEyHwEWFREUBiMhIiY1ETQ/ATYDIRUhJREzEScjJzMTERQGKwEiJjURAT29AwC9/mwBog8KzggSDvzADhIIzgrgA4D8gAGAgDIcMoBAEg7ADhIDANj92AIo2EAL7AkM/awOEhIOAlQMCewL/wBAOP7IATjIQP8A/qAOEhIOAWAACQAA/8ADwANAAAcADwAZABoAJgAvADsARABQAAAhESE1IREhESkBESERIRUhASERFAYjISImNQMzITIVMRQjISI1MTQhPgE0JiIGFBYXLgEnPgE3HgEXDgE3PgE0JiIGFBYXLgEnPgE3HgEXDgEB4P7gASD+4AFgASD+4AEg/uD+YAMAEg79QA4SQCADQCAg/MAgAWAbJCQ2JCQbNkkBAUk2NkkBAUmKGyQkNiQkGzZJAQFJNjZJAQFJAQBAAQD9wAJA/wBAAYD9YA4SEg4CoCAgICABJDYkJDYkQQFJNjZJAQFJNjZJPwEkNiQkNiRBAUk2NkkBAUk2NkkAAwAA/8ADgANAAAMAEwAlAAATESERJSEyFhURFAYjISImNRE0NgU1LgEnDgEHFSM1PgE3HgEXFcACgP1gAsAOEhIO/UAOEhIB7gFJNjZJAUACbFJSbAICQP3AAkBAEg79gA4SEg4CgA4SwMA2SQEBSTbAwFJsAgJsUsAAAAQAAP/AA4ADQAARACgALwAzAAABFRQGKwE1IRUjIiY9ASMRIRElPgE3HgEXMzIWFREUBiMhIiY1ETQ2OwEhLgEnDgEDIRUhAsASDiD/ACAOEoACgP4AAmxSUmwCoA4SEg79QA4SEg7gAQABSTY2ScECgP2AAkBgDhKAgBIOYP3AAkBAUmwCAmxSEg79gA4SEg4CgA4SNkkBAUn+CkAAAAAEAAD/4APDA0AACAARACkALQAABS4BNDYyFhQGBS4BNDYyFhQGASImNDY7ATIWHwEhMhYHAw4BIyEiJicDEyETIQGwFBsbKBsbASwUGxsoGxv9XA4SEg6gDBECIgJfDxMDYAIRDP5ADBECe7QBjFL91SABGygbGygbAQEbKBsbKBsDHxIcEg4MphgP/kALDg4MAmb9wAGAAAQAAP/gA7oDAAAXABsAJAAtAAATITIWBwMOASMhFSEyFhQGIyERIyImNDYXESETAS4BNDYyFhQGBS4BNDYyFhQGYAM3DxMDcAMRC/3ZAmAOEhIO/WBgDhISrgIOYP4CFBsbKBsbASwUGxsoGxsDABkP/kALDUASHBICQBIcEkD+gAGA/SABGygbGygbAQEbKBsbKBsAAAAABgAA/+ADwwNAAAgAEQApAC0AMAA2AAAFLgE0NjIWFAYFLgE0NjIWFAYBIiY0NjsBMhYfASEyFgcDDgEjISImJwMTIRMhJScHNzYyHwEhAbAUGxsoGxsBLBQbGygbG/1cDhISDqAMEQIiAl8PEwNgAhEM/kAMEQJ7tAGMUv3VAW9cXCsTPBOz/jggARsoGxsoGwEBGygbGygbAx8SHBIODKYYD/5ACw4ODAJm/cABgEBubpcWFtcAAAYAAAAAA8ADQAADABMAFwAbAB8AIwAAARUhNSUhMhYdARQGIyEiJj0BNDYFMxUjATMRIyczFSMHMxEjAQACgP1gAsAOEhIO/UAOEhIB7kBA/kBAQIBAQEBAQAFAgIBAEg7ADhISDsAOEkCAAoD+wMDAgP8AAAAAAAcAAP/wA8ADQAANABoAHgAiACYAKgAuAAABIxUzByMiJj0BNDYzIRczNTczMhYdARQGIyE3FTM1JxcBJxMzESMnMxUjBzMRIwG4uDhAGA4SEg4BGFB4SJgOEhIO/mj4gJ4u/g4uEEBAgEBAQEBAAUCAQBIOwA4SwHhIEg7ADhLAgIDQLv4OLgMi/sDAwID/AAAAAAACAAD/wAOAAzcABAAWAAATESERAQUBNjIXARYVERQGIyEiJjURNMACgP7A/owBYAkWCQFgDBIO/UAOEgHi/h4B4gEL4wElBwf+2woP/e8OEhIOAhEPAAAABwAA/8ADewNAAAAADAAQACAAIQAtADEAACEzITIVMRQjISI1MTQLASEDJSEyFhcTFgYjISImNxM+AQEzMTIdARQjMSI9ATQjMxEjAUAgAUAgIP7AIA1jAmBj/k0BzAwRA3EDEw/9UA8TA3EDEQFyICAgIKBAQCAgICADAP5AAcBADgv+AA8YGA8CAAsO/gAggCAggCD+gAAJAAAAAAPAA0AAAwATABcAGwAkAC0AMQA1ADkAABMRIRElITIWFREUBiMhIiY1ETQ2AyEVIQEzFSMTITUuAScOAQc3HgEXFSE1PgEnMxUjATMVIxUzFSPgAkD9oAKADhISDv2ADhIScgOA/IABAICAQAEAAUk2NkkBgFJsAv6AAmxugIABAICAgIADAP1AAsBAEg79AA4SEg4DAA4S/QBAAsBg/eBANkkBAUk2wAJsUoCAUmzCYAEgYGBgAAoAAAAAA8ADQAADABMAFwAbAB8AIwAnACsALwA/AAATESERJSEyFhURFAYjISImNRE0NhchFSEVIRUhFSEVISUzFSMVMxUjBSEVIQERMxEnITIWFREUBiMhIiY1ETQ2wAGA/mABwA4SEg7+QA4SEm4BAP8AAQD/AAEA/wABgICAgID9wAOA/IACQMDgAQAOEhIO/wAOEhIDAP1AAsBAEg79AA4SEg4DAA4SwECAQIBAwEBAQIBAAgD+QAHAQBIO/gAOEhIOAgAOEgAAAAQAAP/AA8ADQAAJABcAIgArAAABIQ4BBxEhETQ2Nx4BFw4BByMRIRE+ATcBFTM+ATcuAScOARcuATQ2MhYUBgJT/u1SbAIBgC2zX38CAn9foP4AA5BtAQCgQV0CAl1BQV2eGyQkNiQkAwACbFL9wAIgRHRoA6N6eqMD/sACgG2QA/7g4AJ9YWF9AgJ9wQE2UjY2UjYAAAAACAAA/8ADgANAAAcAFwAYACQAJQAxADIAPgAAAREjESMRIRElITIWFREUBiMhIiY1ETQ2BTsBMhUxFCsBIjUxNBU7ATIVMRQrASI1MTQVOwEyFTEUKwEiNTE0AWBAYAKA/WACwA4SEg79QA4SEgEuIMAgIMAgIMAgIMAgIMAgIMAgAwD9AAMA/QADAEASDvzADhISDgNADhLAICAgIMAgICAgwCAgICAACwAA/8ADgANAAAMAEwAXABgAJAAlADEAMgA+AD8ASwAAExEhESUhMhYVERQGIyEiJjURNDYFMxEjATsBMhUxFCsBIjUxNBU7ATIVMRQrASI1MTQVOwEyFTEUKwEiNTE0FTsBMhUxFCsBIjUxNMACgP1gAsAOEhIO/UAOEhICDkBA/aAggCAggCAggCAggCAggCAggCAggCAggCADAP0AAwBAEg78wA4SEg4DQA4SQP0AAsAgICAgwCAgICDAICAgIMAgICAgAAAEAAAAAAPAA0AAAwATABcAGwAAExEhESUhMhYVERQGIyEiJjURNDY3IRUhNyEVIYADAPzgA0AOEhIO/MAOEhJOAsD9QGACAP4AAgD+QAHAQBIO/gAOEhIOAgAOEoBAwEAAAAAABgAA/8ADgANAAAYAFAAcACgALQA4AAA3IREhDgEHNyEyFhURFAYjIQcRPgETDgEUFhchNSUhFQ4BByEuASc+ARMVNxc1JSERDgEvAQcGJifAAoD9wBskAUACYA4SEg79QCABSSYUGxsUAlD9sAKQASQb/bAwPwEBP8BgYP8AAUABIxBsbBAjAaACYAEkG4ASDv1gDhI6Apo2Sf0hARsoGwFgQKAbJAEBPzAwPwJh+01N+0D+gxQRDFZWDBEUAAAABQAAAAADwQMAAAMABwAPABcAKwAAASEVITchFSEHMxUhNTMDIQEjFSE1IxEhASEWFxMWFREUBiMhIiY1ETQ3EzYBIAHA/kBgAQD/AP39AQD9q/5cAlLA/oDAAwD9lAHYFAm0AxIO/MAOEgO0CQIAQMBAwICAAUD+gICA/wACwAER/pkHCP6oDhISDgFYCAcBZxEAAAUAAP/gA6ADIAADABMAFAAgADQAABMRIRElITIWFREUBiMhIiY1ETQ2FzMxMhUxFCMxIjUxNAMnEz4BHwEWNjcTFwMOAS8BJgYHoALA/SADAA4SEg79AA4SEs5AQEBAhzLYGE8ffQsZCdgy2BlPH3wLGQgC4P1AAsBAEg79AA4SEg4DAA4SwEBAQED9sycBGh8KF2UIAwoBDij+8h8IGGQIAwsABQAA/8ADwANAAAsAFwAYACQAOAAAAQ4BBx4BFz4BNy4BJx4BFw4BBy4BJz4BFzMxMhUxFCMxIjUxNAEnNz4BHwEWNj8BFwcOAS8BJgYHAgCj2QQE2aOj2QQE2aO+/QUF/b6+/QUF/f5AQEBA/pcuuhpEHooJFgn6KvkbQRyLCRcJAwAE2aOj2QQE2aOj2UQF/b6+/QUF/b6+/dtAQEBA/gkuuRkGFWIHAgfgMOAWBBRiBwIIAAAAAAcAAAAAA8ADQAAJABAAFAAbACsALwA/AAATITUuASchDgEHFREeARczERMhESEBMz4BNxEjASEeARcRDgEHIS4BJxE+ATcVITUlIR4BFxUOAQchLgEnNT4BgAMAASQb/YAbJAEBJBtAQAGA/oABwEAbJAGA/cACgDZJAQFJNv2ANkkBAUn2AQD/AAEAGyQBASQb/wAbJAEBJAIAQBskAQEkG4D+wBskAQGA/oABgP6AASQbAUABAAFJNv5ANkkBAUk2AcA2SUFAQEABJBtAGyQBASQbQBskAAUAAAAAA8ADQAAJABMAIwAnADcAABMhNS4BJyEOAQcVER4BFyE+ATcRASEeARcRDgEHIS4BJxE+ATcVITUlIR4BFxUOAQchLgEnNT4BgAMAASQb/YAbJAEBJBsCgBskAf1AAoA2SQEBSTb9gDZJAQFJ9gEA/wABABskAQEkG/8AGyQBASQCAEAbJAEBJBuA/sAbJAEBJBsBQAEAAUk2/kA2SQEBSTYBwDZJQUBAQAEkG0AbJAEBJBtAGyQAAwAA/+ADoAMgAAMAEwA3AAATESERJSEyFhURFAYjISImNRE0Nhc1MxEhETMVMxUjFTMVIxUzFSMVIxEhESM1IzUzNSM1MzUjNaACwP0gAwAOEhIO/QAOEhLOQAEAQKCgoKCgoED/AEDAwMDAwALg/UACwEASDv0ADhISDgMADhLAoP6gAWCgQIBAgECgAWD+oKBAgECAQAADAAAAAAOZAxkAGgAiADMAAAE0NjIWFREUBiMhIiY1ETQ2MyEyFhQGIyERIQE3ATYuAQcJARYUBwEGDwEGJj8BNjcBNjIDQBIcEhIO/UAOEhIOAWAOEhIO/sACgP6WNQFEDQkkDf67AZ8cHP61CAtpEBYCDwEIAUwdTQGADhISDv6gDhISDgLADhISHBL9gAEWBwFFDSMKDf68AXEcTx3+tQgCDwIXEGkLBwFMHAAAAAIAAP/dA0ADQAAHABsAAAERNzYyHwERJSEyFhURDgEvASYiDwEGJicRNDYBAMQbQhvE/eACQA4SASMQ+AkWCfgQIwESAwD9RZ0VFZ0Cu0ASDvzjFBEMxgcHxgwRFAMdDhIAAAAFAAD/wAPgAwAAHQAhAC4AOwBIAAAlFyMnIwcjNyMiJjURIyImNDYzITIWFAYrAREUBiMDIREhATIWHQEUBiImPQE0NjcyFh0BFAYiJj0BNDY3MhYdARQGIiY9ATQ2AplvSm+eb0pvxw4SQA4SEg4DgA4SEg5AEg4g/YACgP4gDhISHBISrg4SEhwSEq4OEhIcEhKAwMDAwBIOAiASHBISHBL94A4SAkD+AAEAEg5ADhISDkAOEkASDoAOEhIOgA4SQBIOwA4SEg7ADhIAAAAAAwAA/7kD5gNmABMAGAAgAAABFQ4BFx4BFz4BNzMGBCcuASc+AQURIS4BJzU2HgIHIQHAlrEJENWZkNAbQB7+97Sz6AUD1AEpAV8Pwc9itYtDBv4hAzxBHuSZmMQEA7CNstQIEfm0q/UB/qGPwTAfBkOLtWIAAAAABQAA/8AD4AMAAAMABwARABUAGQAAEyEVITMRIRElIREUBiMhIiY1FyM3FwUjJzcgA8D8QKACgP1AAwASDv1ADhLCSpE3AUhKfjcDAED+AAIAQP2gDhISDuD7INvbIAAAAwAA/98DwAMaAAcAHQAhAAAtAREFBiclERMFFjclNhYXERQGBwUGJyUuATURPgEFMxEjAgABgP6ODg7+jgkBcgUFAXIdKwEfGP58BQX+fBgfASsBdEBAITYCfzUCAjX9gQK/NQEBNQMmHf2BGCMENwEBNwQjGAJ/HSZZ/UAAAAAIAAD/5AOgA0AAAwAHAAsADwATABcAGwAfAAABMxUjETMVIwE1MxUhNTMVATcXBwE3FwcFJwEXASc3FwIAQEBAQP6gwAGAwP1aLYgtAQ8tiC39WS0BPS0BDy2ILQNAwP6AwAFgQEBAQAEZLYgt/vEtiC21LQE9LQEPLYgtAAAAAAUAAP/AA4ADQAADAAsAFQAhAC0AAAEzESMFIS4BJyEOATchHgEXFSE1PgEBPgE3LgEnDgEHHgEXLgEnPgE3HgEXDgEB4EBA/uACgAEkG/4AGyQ/AgA2SQH9AAFJATZSbAICbFJSbAICbFJtkAMDkG1tkAMDkAGA/sBAGyQBASRlAUk2QEA2SQEBAmxSUmwCAmxSUmxCA5BtbZADA5BtbZAAAAAABQAA/78DQANAACMARwBIAFQAaAAAASIGBwYHDgEVERQWFxYXHgE7ATI2NzY3PgE1ETQmJyYnLgEjJzMyFhcWFx4BFREUBgcGBw4BKwEiJicmJy4BNRE0Njc2Nz4BFzMxMh0BFCMxIj0BNDcUBiImPQE0JisBIiY0NjsBHgEXAbYyMhIeEAoICAoQHhIyMpQyMhIeEAoICAoQHhIyMpSUPkAWLxkNDQ0NGS8WQD6UPkAWLxkNDQ0NGS8WQGggICAgQBIcEhIOYA4SEg5gKTYBAoAIChAeEjIy/uwyMhIeEAoICAoQHhIyMgEUMjISHhAKCEANDRkvFkA+/uw+QBYvGQ0NDQ0ZLxZAPgEUPkAWLxkNDYAggCAggCBgDhISDkAOEhIcEgE2KQADAAD/wAPgAwAAHQAhADAAACUjIiY1ESMiJjQ2MyEyFhQGKwERFAYrARcjJyMHIwEhESElBiImND8BFzc2HgEPAScBZ8cOEkAOEhIOA4AOEhIOQBIOx29Kb55vSgJI/YACgP4XChoTCZR9bQwlDQyTg4ASDgIgEhwSEhwS/eAOEsDAwAMA/gCpCRMaCpNeiA8FIw+4YgAAAAMAAP/AA8ADIAANAC4AOwAAASEVHgEXMxUhNTM+ATcBNDc2NyEHNzMGBwYXMxEOAQcjFRQGIyEiJj0BIy4BJxEzISY3NjcjBzchBgcGA4D9AAEkG8ABAMAbJAH8/RAWPQGhD27TJQ4JA0YBSTaAEg7+wA4SgDZJAX0CfQMKBgxg3Rz+zycPDgHAwBskAcDAASQbAQBHOVFPRkZAYEBA/wA2SQGgDhISDqABSTYBAEVELimNjTk4MAADAAAAAAPAA0AAJwAzAD8AAAE1LgEnDgEHFTYyHgEdAQ4BBy4BJxE+ATceARcRDgEHLgEnNTQ+ATIXLgEiBgcVHgEyNjclFR4BMjY3NS4BIgYDgATZo6PZBB5EPCIBSTY2SQEF/b6+/QUBSTY2SQEiPEQeASQ2JAEBJDYkAf0AASQ2JAEBJDYkAW8Ro9kEBNmjEREjOiOANkkBAUk2AQC+/QUF/b7/ADZJAQFJNoAjOiOAGyQkG4AbJCQbgIAbJCQbgBskJAAAAAIAAAAAA8ADQAAZACAAACU0NjIWFR4BMjY3ESE+ATceARchEQ4BBy4BAS4BJw4BBwFAEhwSASQ2JAH+QAX9vr79Bf6AAUk2NkkCOhvQkJDQG4AOEhIOGyQkGwEAvv0FBf2+/wA2SQEBSQF2jbADA7CNAAAABAAA//kDtQM0ACEAKgA2AEIAAAEHFgYHBiYnJjY3NhYXNwEmPgEWFwE+ARceAQcOAScuATcDEz4BHgEHAycBHgE+AiYnJg4BFgU+AS4CBgcOAR4BAgBrAUo9PWMTETE4OXAhW/7sCAUWGQgBiSJvOTgxERNjPTxLATXRCBkWBQjdJ/6HFjIwHQUWFiJKLgwCpBYWBB0xMxUgDC5KAT6ZPloLCT47O2saGCM0ggGLCxkQBQv9zzQjGBprOzs+CQtaPgFWASkLBRAZC/7DOP5WDwUWKjQuDxYOQkoZDy41KhYFEBhLQQ4AAAQAAAAAA8ACwAADABcAGwAfAAAlESERATcRJxUUBiMhIiY1ETQ2MyEyFh0CFxElMxUjAsD9wAKAwMASDv2ADhISDgKADhKA/UDAwIACAP4AAaBg/gBggA4SEg4CQA4SEg7IsEABMChAAAAAAAQAAP/AA4ADQAAPAB8AKwA0AAABDgEHER4BFyE+ATcRLgEnJSEeARcRDgEHIS4BJxE+ARchMhYUBiMhIiY0NhMuATQ2MhYUBgEAGyQBASQbAgAbJAEBJBv+AAIANkkBAUk2/gA2SQEBSbYBAA4SEg7/AA4SEo4bJCQ2JCQDAAEkG/2AGyQBASQbAoAbJAFAAUk2/YA2SQEBSTYCgDZJfxIcEhIcEv2AASQ2JCQ2JAAAAgAAAAADgAMAABkAKwAAATUjEQ4BBy4BJxEjFTMVIxUeARc+ATc1IzUHESERDgEHLgEnESERHgEXPgEDQIACbFJSbAKAgIADtYiItQOAQAEABNmjo9kEAQABSTY2SQJAgP7AUmwCAmxSAUCAQICItQMDtYiAQMABgP6Ao9kEBNmjAYD+gDZJAQFJAAACAAD/wAPAAwAAHwAvAAAlFTMyFhQGIyEiJjQ2OwE1IS4BJxE+ATchHgEXEQ4BBwEOAQcRHgEXIT4BNxEuAScCIMAOEhIO/kAOEhIOwP7gNkkBAUk2AoA2SQEBSTb9gBskAQEkGwKAGyQBASQbgIASHBISHBKAAUk2AYA2SQEBSTb+gDZJAQJAASQb/oAbJAEBJBsBgBskAQAAAAADAAD/3gOiA0QAEgAeACoAACUXFhQGIi8BBiQnJhI3NiQXFhIFPgE3LgEnDgEHHgETITIWFAYjISImNDYDHH0JExkKfYX+vHdyBnd8AUSBexP+V5bGBATGlpbGBATGFgEADhISDv8ADhISkX0KGRMJfW0Te4EBRHx3BnJ3/rzWBMaWlsYEBMaWlsYBfBIcEhIcEgAAAwAA/94DogNEABIAHgA6AAAlFxYUBiIvAQYkJyYSNzYkFxYSBT4BNy4BJw4BBx4BEzU0NjIWHQEzMhYUBisBFRQGIiY9ASMiJjQ2MwMcfQkTGQp9hf68d3IGd3wBRIF7E/5XlsYEBMaWlsYEBMZ2EhwSYA4SEg5gEhwSYA4SEg6RfQoZEwl9bRN7gQFEfHcGcnf+vNYExpaWxgQExpaWxgF8YA4SEg5gEhwSYA4SEg5gEhwSAAAAAAIAAP/eA6IDRAASAB4AACUXFhQGIi8BBiQnJhI3NiQXFhIFPgE3LgEnDgEHHgEDHH0JExkKfYX+vHdyBnd8AUSBexP+V5bGBATGlpbGBATGkX0KGRMJfW0Te4EBRHx3BnJ3/rzWBMaWlsYEBMaWlsYAAAAABQAAAAADwANAAAMABwAhAC0AOQAAASERIQMnIQcjMzc+ATMhMhYfATMyFhURFAYjISImNRE0NgE+ATcuAScOAQceARcuASc+ATceARcOAQOA/QADAMcg/s8g6KAuCR4TATESHgkuoA4SEg78wA4SEgGuRFoCAlpERFoCAlpEX38CAn9fX38CAn8CgP3AAoBAQF0QExMQXRIO/YAOEhIOAoAOEv4AAlpERFoCAlpERFpCAn9fX38CAn9fX38AAAAABAAAAAAD4ANAAAMABwAhAC0AAAEhESEBITUhAREUBiMhIiY1ESMiJjURNDYzITIWFREUBiMFMzIWFAYrASImNDYDQP2AAoD9IANA/MADIBIO/UAOEkAOEhIOA4AOEhIO/eDADhISDsAOEhICAP5AAgDA/wD+IA4SEg4B4BIOAQAOEhIO/wAOEoASHBISHBIAAgAAAAADgAMAAAsAFAAANyEyFhQGIyEiJjQ2AREjEQcnCQEHoALADhISDv1ADhISAY5A8y0BPQE9LkASHBISHBICQv4+AcnzLQE9/sMtAAACAAAAAAOAAwAACwAUAAA3ITIWFAYjISImNDYlNxcJATcXETOgAsAOEhIO/UAOEhIBjuwu/sP+wy3zQEASHBISHBL+7C3+wwE9LfMByQAAAAEAAP/4A6MDRQAsAAABNjIXFhQHAQYiJyY0NwEXAQYUFxYyNwE2NCcmIgcBBh4BNwEXAQ4BLgI2NwJaPJk7ODj+w0/MT0tLAZcu/mg4ODyZOwE9JSUoZif+2g0JJA0BJi3+2hIyMyQNDhICkDg4PJk7/sNLS0/MTwGYLv5pO5k8ODgBPShmJyYm/toNJAkNASYt/toTDg0kNDESAAYAAP/AA8ADQAArAC8AQwBHAEsATwAAJSMiJicmJy4BNRE0Njc2Nz4BOwE1IRUzMhYXFhceARURFAYHBgcOASsBFSETESERBTUhFTMRNC4DIyEiDgMVERMhNSEDMxUjNzMVIwEAlwoLBAgEAgIHBg0XCyAfRQIARR8gCxcNBgcCAgUHBAsKl/4AQAGA/kACAIACBwsSFf12FRILBwLAAYD+gEBAQIBAQIACAgUHBAsKAVwfIAsXDQYHwMAHBg0XCyAf/qQKCwQIBAICwAGA/sABQIDAwAFFFRILBwICBwsSFf67AcCA/wBAQEAABAAA/8ADgANAAAUACAAWACIAAAEhESERIQMnFQEhAREUBiMhIiY1ETQ2ATUzFTMVIxUjNSM1A0D/AP6AAoAapv4gAeABABIO/UAOEhIBTkCAgECAAgABAP0AAkCmpgEA/wD9oA4SEg4DQA4S/gCAgECAgEAAAAAABgAA/8ADgANAAAUACAAWABoAHgAiAAABIREhESEDJxUBIQERFAYjISImNRE0NhMhFSERMxUjESEVIQNA/wD+gAKAGqb+IAHgAQASDv1ADhISrgGA/oCgoAGA/oACAAEA/QACQKamAQD/AP2gDhISDgNADhL+QEABAED+wEAAAAAEAAD/wAOAA0AAAgAIABYAHAAAAScVFyERIREhASEBERQGIyEiJjURNDYBNxcHJzcDJqbA/wD+gAKA/WAB4AEAEg79QA4SEgFMtS7jni0CQKamQAEA/QADQP8A/aAOEhIOA0AOEv26tS3jny0AAAAABQAA/8ADwANAAAMAEwAmACoALgAAExEhESUhMhYVERQGIyEiJjURNDYlERQGKwE1MxEhFSM1NDYzITIWASEVIREhFSGAAkD9oAKADhISDv2ADhISA24SDmBA/gBAEg4CQA4S/UABQP7AAUD+wAJA/cACQEASDv2ADhISDgKADhKg/UAOEkACgEBgDhIS/bJAAQBAAAQAAP/AA4ADQAACAAgAFgAiAAABJxUXIREhESEBIQERFAYjISImNRE0NgEnNxc3FwcXBycHJwMmpsD/AP6AAoD9YAHgAQASDv1ADhISAUNbLlpbLVpaLVtaLgJApqZAAQD9AANA/wD9oA4SEg4DQA4S/d5aLltbLlpbLVpaLQAABAAA/8ADgANAAAIACAAWABoAAAEnFRchESERIQEhAREUBiMhIiY1ETQ2EyEVIQMmpsD/AP6AAoD9YAHgAQASDv1ADhISzgFA/sACQKamQAEA/QADQP8A/aAOEhIOA0AOEv4AQAAAAAAFAAD/wAOAA0AAAwATABcAGwAfAAATESERJSEyFhURFAYjISImNRE0NhMhFSERMxUjESEVIcACgP1gAsAOEhIO/UAOEhKuAYD+gMDAAYD+gAMA/QADAEASDvzADhISDgNADhL+QEABAED+wEAAAAAAAwAAAAADwAMAAAUAFwAdAAATESERISclIRchMhYVERQGIyEiJjURNDYBNxcHJzeAAwD+ZoD++gEggAGgDhISDvzADhISAay1LeKeLQLA/YACAIBAgBIO/cAOEhIOAsAOEv4KtS3jny0AAAAAAwAAAAADwAMAAAUAFwAjAAATESERISclIRchMhYVERQGIyEiJjURNDYBJzcXNxcHFwcnByeAAwD+ZoD++gEggAGgDhISDvzADhISAYFbLlpaLltbLlpaLgLA/YACAIBAgBIO/cAOEhIOAsAOEv5AWi5bWy5aWi5bWy4AAAMAAAAAA8ADAAAFABcAGwAAExEhESEnJSEXITIWFREUBiMhIiY1ETQ2ASEVIYADAP5mgP76ASCAAaAOEhIO/MAOEhIBDgFA/sACwP2AAgCAQIASDv3ADhISDgLADhL+YEAAAAADAAAAAAPAAwAABQAXACMAABMRIREhJyUhFyEyFhURFAYjISImNRE0NgE1MxUzFSMVIzUjNYADAP5mgP76ASCAAaAOEhIO/MAOEhIBjkCAgECAAsD9gAIAgECAEg79wA4SEg4CwA4S/mCAgECAgEAAAwAA//8DugMAAAMADQAkAAABIQMhEzUhJyMRNz4BMwEhIiY1ETQ2MyEXITIWHQEzMhYHAw4BA279hGACfDL+poDmOgMRCwJO/TkOEhIOASCAAWAOEhcPEwNwAxEBwP6AAcBAgP5A6AsN/gASDgLADhKAEg5gGQ/+QAsNAAIAAAAAA8ADAAAFABcAABMRIREhJyUhFyEyFhURFAYjISImNRE0NoADAP5mgP76ASCAAaAOEhIO/MAOEhICwP2AAgCAQIASDv3ADhISDgLADhIAAAUAAP+8A6kDVQADAAYACgAQABQAADcXEycDFzcTFzcnCQEFATEHITUhFcfC4ML4IZFmwjnC/mgBgAEx/oD4AUcBwN9wAYRw/kCULgJecGJw/b4CmbD9Z05AQAAAAwAA/8ADwANAABkAJQAxAAABJyY0NjIfATc2HgEPARcWDgEvAQcGIiY0NxM+ATcuAScOAQceARcuASc+ATceARcOAQHTWwkTGgpaWg4jCg1bWw0KIw5aWgoaEwmIo9kEBNmjo9kEBNmjvv0FBf2+vv0FBf0BgFoKGhMJW1sNCiMOWloOIwoNW1sJExoK/toE2aOj2QQE2aOj2UQF/b6+/QUF/b6+/QAACAAA/8ADwANAABcANwBDAE8AWwBnAHMAfwAAExEhESMVFAYiJj0BIRUUBiImPQEjFSEVASE1NDYyFh0BMzIWFREUBiMhIiY1ETQ2OwE1NDYyFhUDMzIWFAYrASImNDYXMzIWFAYrASImNDY3MzIWFAYrASImNDYXMzIWFAYrASImNDY3MzIWFAYrASImNDYXMzIWFAYrASImNDaAAwCAEhwS/oASHBKAAwD9wAGAEhwSoA4SEg78wA4SEg6gEhwSIEAOEhIOQA4SEg5ADhISDkAOEhLOQA4SEg5ADhISDkAOEhIOQA4SEs5ADhISDkAOEhIOQA4SEg5ADhISAgD+AALAIA4SEg4gIA4SEg4ggEABACAOEhIOIBIO/QAOEhIOAwAOEiAOEhIO/mASHBISHBLAEhwSEhwSwBIcEhIcEsASHBISHBLAEhwSEhwSwBIcEhIcEgAAAAABAAAAAANAAkAAAgAACQEhAgD+wAKAAkD+gAAAAQAAAAADQAIAAAIAABMJAcABQAFAAgD+gAGAAAEAAAAAAwACwAACAAABEQEBgAGAAsD9gAFAAAABAAAAAAKgAsAAAgAACQICoP6AAYACwP7A/sAAAQAA//kDiQMJACAAAAEFFgcFPgEeAQ4BLgE3JQ4BLgI+ARYXJSY+AR4BDgEmAqj+0ggDARgdW1ghIlNgNwX+6BhKTzMIJkpNHgEuDiZaWTUPTV4CI7waG2koFi5XXSwXTDJpIhsVPFFFIwscvDBWKRtUXD8EAAAAAwAAAAADwAHgAAsAFwAjAAATHgEXDgEHLgEnPgElHgEXDgEHLgEnPgElHgEXDgEHLgEnPgGwMD8BAT8wMD8BAT8BgDA/AQE/MDA/AQE/AYAwPwEBPzAwPwEBPwHgAT8wMD8BAT8wMD8BAT8wMD8BAT8wMD8BAT8wMD8BAT8wMD8AAAAAAQAA/9YDmQMYABkAABMHBhYXAR4BPwE+AS8BLgEPAQE3NiYvASYGx2wEAwcCAQcTCf0QBgyKCBQJg/7xQQUEB4sMIQMC/QkTB/3/BwMEbAchDIsHBAVBAQ+DCRQIigwGAAAAAAYAAAAAA8ADAAATABcAIwAvADwARQAAATcRJxUUBiMhIiY1ETQ2MyEyFhUBFSE1Az4BNx4BFw4BBy4BNxQeATI+ATUuASIGBTQ+ATIeARUOAQcuATceATI2NCYiBgMAwMASDv2ADhISDgKADhL9wAGAwAJaRERaAgJaRERaPhotMi4ZATZSNv6/IjxEPCIBSTY2ST8BJDYkJDYkAUBA/sBAYA4SEg4BgA4SEg7+4EBAAeBEWgICWkREWgICWkQaLBoaLBopNjZJIzojIzojNkkBAUk2GyQkNiQkAAABAAAAAAN+AvAAGAAAJTcXFjYvATc2Ji8CJiIPAg4BHwEHFBYBHOTkBAYBK7gDAgT/cgIIAnL/BAIDuCwGHHh4AQQE/rQDBwEl5wQE5yUBBwO0/gQEAAAABAAAAAADgAMAAA8AHwAvAD8AABMiJjURNDYzITIWFREUBiMzIiY1ETQ2MyEyFhURFAYjASImNRE0NjMhMhYVERQGIzMiJjURNDYzITIWFREUBiOgDhISDgEADhISDsAOEhIOAQAOEhIO/UAOEhIOAQAOEhIOwA4SEg4BAA4SEg4BwBIOAQAOEhIO/wAOEhIOAQAOEhIO/wAOEv5AEg4BAA4SEg7/AA4SEg4BAA4SEg7/AA4SAAAAAAIAAP/AA6ADQAAGACMAACUOAQcuASclISImNDY3MzU+ATcmPgEyHgEHHgEXFTMeARQGIwKAAUk2NkkBAcD9RhAWFhA6Ao5wAQ8gJCAPAXKMAjoQFhYQQDZJAQFJNkAWIRUB83arGRIgFBQgEhqrdfMBFSEWAAAAAAIAAAAAAyADAAACAAUAAAkBIRUhAQIAASD9wAJA/uADAP7AgP7AAAADAAAAAAOgAyAAGQAmADIAABMOAQcRHgEXIT4BNxEuAScjJy4BIyEiBg8BEzI+ATQuASMOAQceARcuASc+ATceARcOAaAbJAEBJBsCwBskAQEkG3QuCB8S/vYSHgku7B81Hx81HzFBAQFBMW2QAwOQbW2QAwOQAqABJBv+ABskAQEkGwIAGyQBXRATExBd/k0eNzw3HgFBMTFBjgOQbW2QAwOQbW2QAAACAAD/wAPAA0AACwAbAAABHgEXDgEHLgEnPgETJyYiBhQfARYyNwE2LgEHAgC+/QUF/b6+/QUF/YZjDB8XC38LIAsBBw8LKw8DQAX9vr79BQX9vr79/e1jCxceDH8LCwEHDysLDwAAAAIAAP/AA8ADQAALACYAAAEeARcOAQcuASc+ARMnJiIGFB8BBwYUFjI/ARcWPgEvATc2NCYiBwIAvv0FBf2+vv0FBf2+aAwfFwxoaAwXHwxoaBAqCw9oaAwXHwwDQAX9vr79BQX9vr79/ntoDBcfDGhoDB8XDGhoDwsqEGhoDB8XDAAAAAMAAP/gA2ADIAARABoAJgAABT4BNz4BNy4BJw4BBx4BFx4BEz4BNCYiBhQWFy4BJz4BNx4BFw4BAgAVcDtLVAEExZeXxQQBVEs7cBUbJCQ2JCQbV3QCAnRXV3QCAnQgAlZBVbhakK4CAq6QW7dVQVYBsQEkNiUlNiSOA3NXV3QCAnRXV3MAAAADAAAAAAPAAwAADwAdACkAADMiJjURNDYzITIWFREUBiMlJyYiDwEhAyYiDwEOAQMUHgEyPgE1LgEiBmAOEhIOA0AOEhIO/fxFChoKqQML8goeCpwJHKYaLTIuGQE2UjYSDgLADhISDv1ADhLkRQoKqQEiDAy7CwEBJRosGhosGik2NgACAAD/wAPAA0AACwAnAAABHgEXDgEHLgEnPgETIyIGFBY7ARUUFjI2PQEzMjY0JisBNTQmIgYVAgC+/QUF/b6+/QUF/ZiUEBYWEJQWIBaUEBYWEJQWIBYDQAX9vr79BQX9vr79/msWIBaUEBYWEJQWIBaUEBYWEAADAAD/vwPBA0AACwAUADQAAAEeARcOAQcuASc+AQEyNjQmIgYUFhM0NicHDgEnJjcTNiYnDgEHFQYXNz4BFxYHAwYWFz4BAgC+/QUF/b6+/QUF/QEBGiIiMyIiJQIBNQgRBgkBWAUcHyNTHwEBNQgRBQoDVwccIzJEA0AF/b6+/QUF/b6+/f7yHzQfHzQf/pgGFAk9CQoCBAoBFRwoBAE5LA8KCT0JCgIFC/7sGScHATgAAAACAAD/wAPAA0AACwAYAAABHgEXDgEHLgEnPgEDFBYzITI2NCYjISIGAgC+/QUF/b6+/QUF/SIWEAF0EBYWEP6MEBYDQAX9vr79BQX9vr79/kUQFhYgFhYAAwAA/8ADwANAAAsAGAAhAAABHgEXDgEHLgEnPgEXIgYXEx4BMjY3EzYmAz4BNCYiBhQWAgC+/QUF/b6+/QUF/b4aIgIXAhMcEwIXAiIaFh0dLB0dA0AF/b6+/QUF/b6+/bsmGv8ADhERDgEAGib+AAEcLB0dLBwAAwAA/8ADwANAAAsAFAAqAAABHgEXDgEHLgEnPgETPgE0JiIGFBYTDgEUFjM+ATc2JicmBgcXPgEeAQ4BAgC+/QUF/b6+/QUF/b4WHR0sHR0WEBYWEEJgDAlBPz90IEERQUknCzYDQAX9vr79BQX9vr79/UUBHCwdHSwcAQwBFSEWAVJBQWwWFC86KSIeFTxLLwAAAAMAAP/gA4ADIAAAAAwAHQAAASMeARc+ATcuAScOAQEhIiY9AT4BNyEeARcVFAYjAgDgAn9fX38CAn9fX38CHv1gDhICWkQBwERaAhIOAkBffwICf19ffwICf/1BEg5gRFoCAlpEYA4SAAAAAAkAAAAAA4ADAAADAAcACwAPABMAFwAbAB8AIwAAAREhESEzESMDITUhFzUzFQEVITUhMxUjBREjERMjNTMRFSM1AoD/AAFAwMBA/wABAEDA/wD/AAFAwMD+gMDAwMDAAgD/AAEA/wD/AMDAwMADAMDAwED/AAEA/gDAAkDAwAAAAgAAAAADgAMAABMAFwAAARUzHgEXIT4BNzM1LgE+ATIeAQYBNSEVAnCQNkkB/QABSTaQMyYnYoBiJyb93QMAAaSkAUk2NkkBpCZ0eUhIeXT+NkBAAAAAAAMAAAAAA4ADAAADAAcACwAAIREzESERMxEhETMRAaDA/iDAAYDAAwD9AAHA/kACQP3AAAAEAAAAAAOAAsAAAwAHAAsADgAAASEVIRUhFSEVIRUhAQcXA4D9AAMA/gACAP0AAwD9wMDAAsCAgICAgAHAgIAAAwAA/8ADQANJAAMAGgAiAAAFNTMVARQGBw4BHQEhNTQmJy4BNz4BNzYeAgU+ATc1DgEHAYDAAQBDPR0j/sAdHE9EEhWRaE+afkX94AFnWHWJAkBAQAIgUI0yGEEmEg4lQhY/t2NolRcRJGaOcWV5AkADn34AAAAAAgAA/+ADoAMgAAgAFAAAAR4BFyE+ATcXEw4BBy4BJz4BNx4BAnWHogL8wAKih3XQAnZYWHYCAnZYWHYBbyrYjY3YKq8BkFh2AgJ2WFh2AgJ2AAAAAgAA/9gDwANAAB0AKQAAARYXMxUjBgcXBycGJwcnNyYnIzUzNjcnNxc2FzcXAy4BJw4BBx4BFz4BAvw+GW1tGT43pjdWVjemNz4ZbW0ZPjemN1ZWN6ZzAmxSUmwCAmxSUmwCgUBVwFVAX2BfFhZfYF9AVcBVQF9gXxYWX2D+rFJsAgJsUlJsAgJsAAADAAD/4ANgAyAABwANABEAAAEzESERMxUhAQcXAScBAzUhFQLAoP1AoAGA/ngutQE9Lf7wPwEAAsD9IALgQP7nLrUBPS3+8QHhYGAAAwAAAAADgAMAAAwAGAAbAAABDgEHHgEXMxUhESEVByMuATQ2NzMeARQGAxchArAwPwEBPzDQ/QADALAgFBsbFCAUGxtkgP6AAYABPzAwPwGgAiCgoAEbKBsBARsoGwIfoAAAAAQAAP/gA4ADAAAIABEAGgAhAAABLgE0NjIWFAYHLgE0NjIWFAYHLgE0NjIWFAYDETMVNyERAuAYHx8wHx/4GB8fMB8f+BgfHzAfH7jA4AFgAYgBHzAfHzAfAQEfMB8fMB8BAR8wHx8wHwF3/YCgoAKAAAAAAQAA/8ADgANAAAgAAAEhAxMhESMRMwEgAmCgoP2gYGADAP8A/wD+wAOAAAADAAAAAAOAAwAAAwALABQAADMRIREBFzcnBycHFwEuASIGFBYyNoADAP4kgLQwjIC0MAIYARsoGxsoGwMA/QABR2bKKpxmyioBdRQbGygbGwAAAAAEAAAAAAOAAyAAAwAHAAsAGQAAEyETIRMzNSMFMzUjJSM+ATceARcjLgEnDgHAAoBA/QDAQEABQEBA/wBAAmxSUmwCQAFJNjZJAiD94AFAgICAoFJsAgJsUjZJAQFJAAAEAAD/4QOfAx8ABwAPABcAHwAAASMuASc1HgEXDgEHNT4BNyEzHgEXFS4BJz4BNxUOAQcDn+ILVT2d0w8P0509VQv9pOILVT2d0w8P0509VQsBoD1VC+IP092d0w/iC1U9PVUL4g/T3Z3TD+ILVT0AAgAAAAADgAMAAAcAIgAAJTMVITUzFSE3FhUOASImJw4BIiYnDgEiJicOASImJzQ3EyECwED+AEABgL0DATZSNgEBNlI2AQE2UjYBATZSNgEDPQKAwMDAQNgLDSk2NikpNjYpKTY2KSk2NikNCwGoAAIAAP/AA0ADAAAPABMAACUVDgEiJic1Iy4BJyEOAQclESERAmABNlI2AWA2SQECgAFJNv4AAoDAoCk2NimgAUk2NkkBwAGA/oAAAAACAAAAAAOAAwAACAAMAAABETcXETMRIREjMxEjAkBgYID9wMCAgAMA/uBgYAEg/QADAP0AAAAAAAIAAAAAA8ACwAAZAB0AACUhNT4BNy4BJzUhFTM1IRUOAQceARcVITUjERUzNQKA/cA2SQEBSTYCQEABADZJAQFJNv8AQEBAwAFJNjZJAcCgoMABSTY2SQHAoAEAwMAAAAMAAP/gA2ADIAALABMAFwAAATcnBycHFwcXNxc3EzMRIREzFSElNSEVAi2ILYiILYiILYiILQug/UCgAYD+wAEAASCILYiILYiILYiILQIo/SAC4EBAYGAAAAAAAQAAAAADgAMAAAgAAAkBESERIREhEQIA/oABAAEAAQADAP7A/kABAP8AAcAAAAAAAgAA/8ADgAMAAAUACAAAEwEDJQkBExEXQANAgP5CAf79s03AAcABQP1A8wGN/p/+YQEvbwAAAAADAAD//wOAAwEADwAfAC8AACU+ATIWFyEVIQ4BIiYnITUBPgEyFhczFSMOASImJyE1Ez4BMhYXIRUhDgEiJicjNQGFCzE+MQsBRf67CzE+MQv++wHFCzE+MQuFhQsxPjEL/juFCzE+MQsBxf47CzE+MQuFgB0jIx1AHSMjHUABIB0jIx1AHSMjHUABIB0jIx1AHSMjHUAAAAQAAAAAA4ACwAADAAcACwAOAAATIRUhFSEVIRUhFSEBFweAAwD9AAIA/gADAP0AAkDAwALAgICAgIAB4KCAAAACAAAAAAOAAwAABwALAAAlNTMVMxUhNScRIREBwIDA/gCAAwBAQEBAQIACQP3AAAAEAAD/4ANgAyAABwALAA8AEwAAATMRIREzFSEBITUhESE1IRM1IRUCwKD9QKABgP5gAcD+QAHA/kBgAQACwP0gAuBA/wBA/sBAAgBgYAAAAAMAAAAAA4ADAAAHAAsADwAAATUhFTMVITURIREhASE1IQFAAYDA/QADAP0AAQABAP8AAkDAwMDA/wD+wAJAgAAEAAD/wAPAA0AACwAXABoAKgAAAR4BFw4BBy4BJz4BEz4BNy4BJw4BBx4BPwEnNxcWFA8BDgEuATURND4BFgIAvv0FBf2+vv0FBf2+o9kEBNmjo9kEBNlzzc0L+RUV+QwaFw4OFxoDQAX9vr79BQX9vr79/MUE2aOj2QQE2aOj2fSIiEamDzIPpggBDRYOAUwOFg0BAAAAAAYAAP/AA8ADQAALABcAGAAkACUAMQAAAR4BFw4BBy4BJz4BEz4BNy4BJw4BBx4BEzMxMhURFCMxIjURNDsBMTIVERQjMSI1ETQCAL79BQX9vr79BQX9vqPZBATZo6PZBATZIyAgICDAICAgIANABf2+vv0FBf2+vv38xQTZo6PZBATZo6PZAhwg/wAgIAEAICD/ACAgAQAgAAAAAAMAAP/fA54DQAAYACEANQAAATU+ATceARcVMzIWFxMWBiMhIiY3Ez4BOwEhNS4BJw4BDwEjAyEDIxUUBiImPQEhFRQGIiY1AUACbFJSbAKDDRECOQITDv0GDhMCOQIRDcMBAAFJNjZJAUBmMwKyM2YSHBL/ABIcEgJgFlZyAgJyVhYQDf3ADhUVDgJADRAWO04BAU47Vv4AAgBgDhISDmBgDhISDgAAAAEAAAAAA8ACwAAdAAAlNTMnBzMVIzUHLgEnPgE3PgE3HgEXHgEXDgEHJxUCIICgoICgEGaHAwJ3XBKBWFiBElx3AgOHZhAgwMDAwAICA4dmXoMMV2oCAmpXDINeZocDAgIAAAABAAD/7AKAA0AAEQAAAREnJg4BFwEeAT4BNRE0JiIGAkDzDSMKDQEpBxMSCxIcEgMg/TrzDQkkDf7XBwQIDwoDEw4SEgAAAAABAAD/wALqAxQAEgAAAREUFjI2NREXFjI2NCcBLgEOAQGAEhwS8woZEwn+1wcTEgsC8/ztDhISDgLF8goUGQoBKQcECA8AAAAGAAAAAAOmAwgADwAnADQAQQBOAFsAAAEyFhURFAYjISImNRE0NjMlIQ4DFREUHgIzITI+AjURNC4CByIGFREUFjI2NRE0JiEiBhURFBYyNjURNCYXDgEdARQWMjY9ATQmByIGHQEUFjI2PQE0JgMtGiIjGf2mGSMiGgJa/aYYLCITEyIsGAJaGCwiExMiLJANEREaERH+iQwSERoREagNEREaERIMDRERGhESAssiGv4eGSMjGQHiGiI9ARIiLBj+HhgsIhISIiwYAeIYLCIStBIM/tMNERENAS0NERIM/tMNERENAS0MEjwBEQ0eDBERDB4NEZYRDR4NERENHgwSAAAAAAIAAP/2A30DFwAtAD0AAAE2BB8BFRYGBwUGJi8BJjY/AT4BJyYnLgEHDgEXHgE3NhYfARYGBwYHBiQnJhIFNhYfARYGDwEGJi8BJjY3ASyJASZbEgMFBv6gCBAFEgwJE+EIAwUBA0WrS14tPEDRYRQqDRIEAwYNEIn+2ltUPwKSCBAFFw4KFiQHEAYuBQQHAsNUPoMfAQcPBeQFAwccFCoNkwUQCAMCNwowQdJhXS08DAoTGggPBQwJVD6EiQEm1gQDByMXMRAXBQQHRwgQBQAFAAD/wAPAA0EAFQAZACMAMAA9AAABNTQ2MyEyFh0BITIWFAYjISImNDYzITM1IwMiJjURIREUBiMlMjY1ETQmIgYVERQWMzI2NRE0JiIGFREUFgFgEg4BAA4SAQAOEhIO/MAOEhIOAUDAwOAOEgLAEg7+YA4SEhwSEs4OEhIcEhICwGAOEhIOYBIcEhIcEkD8wBIOAqD9YA4SwBIOAUAOEhIO/sAOEhIOAUAOEhIO/sAOEgADAAD/wAPAA0AADwA8AEwAABMhHgEXEQ4BByEuAScRPgEXBgIXFgQ3Njc+AS8BLgEHBiYnJjY3NhYXFhcWBg8BDgEfAR4BNyU2JzUnJiQBBw4BHwEeAT8BPgEvAS4BsAKgMD8BAT8w/WAwPwEBP8d0N0lQAQJ3DgsGAgQPCyURVbc4NSdSQpY9AgEFBAbFEQgKEAUOBwE0DAUPUP7+AVU+BwMFKAUOBh8UCQ0UBQ4DQAE/MP1gMD8BAT8wAqAwP61P/v54czdKCAoFDgYXEQgLNCdSVbc6KQgxAQMGDgWBCyURGAcDBMgKDgEbcjf+qygFDgY+BwMFFA0rFB8GAwAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAHABUAAQAAAAAAAgAHABwAAQAAAAAAAwAHACMAAQAAAAAABAAHACoAAQAAAAAABQALADEAAQAAAAAABgAHADwAAQAAAAAACgArAEMAAQAAAAAACwATAG4AAwABBAkAAAAqAIEAAwABBAkAAQAOAKsAAwABBAkAAgAOALkAAwABBAkAAwAOAMcAAwABBAkABAAOANUAAwABBAkABQAWAOMAAwABBAkABgAOAPkAAwABBAkACgBWAQcAAwABBAkACwAmAV0KQ3JlYXRlZCBieSBpY29uZm9udAplbGVtZW50UmVndWxhcmVsZW1lbnRlbGVtZW50VmVyc2lvbiAxLjBlbGVtZW50R2VuZXJhdGVkIGJ5IHN2ZzJ0dGYgZnJvbSBGb250ZWxsbyBwcm9qZWN0Lmh0dHA6Ly9mb250ZWxsby5jb20ACgBDAHIAZQBhAHQAZQBkACAAYgB5ACAAaQBjAG8AbgBmAG8AbgB0AAoAZQBsAGUAbQBlAG4AdABSAGUAZwB1AGwAYQByAGUAbABlAG0AZQBuAHQAZQBsAGUAbQBlAG4AdABWAGUAcgBzAGkAbwBuACAAMQAuADAAZQBsAGUAbQBlAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEZAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETARQBFQEWARcBGAEZARoBGwEcAR0BHgEfASABIQEiASMBJAElASYBJwEoASkBKgErASwBLQEuAS8BMAExATIBMwE0ATUBNgE3ATgBOQE6ATsBPAE9AT4BPwFAAUEBQgFDAUQBRQFGAUcBSAFJAUoBSwFMAU0BTgFPAVABUQFSAVMBVAFVAVYBVwFYAVkBWgFbAVwBXQFeAV8BYAFhAWIBYwFkAWUBZgFnAWgBaQFqAWsBbAFtAW4BbwFwAXEBcgFzAXQBdQF2AXcBeAF5AXoBewF8AX0BfgF/AYABgQGCAYMBhAGFAYYBhwGIAYkBigGLAYwBjQGOAY8BkAGRAZIBkwGUAZUBlgGXAZgBmQGaAZsBnAGdAZ4BnwGgAaEBogGjAaQBpQGmAacBqAGpAaoBqwGsAa0BrgGvAbABsQGyAbMBtAG1AbYBtwG4AbkBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgHHAcgByQHKAcsBzAHNAc4BzwHQAdEB0gHTAdQB1QHWAdcB2AHZAdoB2wHcAd0B3gHfAeAB4QHiAeMB5AHlAeYB5wHoAekB6gHrAewB7QHuAe8B8AHxAfIB8wH0AfUB9gH3AfgB+QH6AfsB/AH9Af4B/wIAAgECAgIDAgQCBQIGAgcCCAIJAgoCCwIMAg0CDgIPAhACEQISAhMCFAIVAhYCFwIYAhkCGgAPaWNlLWNyZWFtLXJvdW5kEGljZS1jcmVhbS1zcXVhcmUIbG9sbGlwb3ANcG90YXRvLXN0cmlwcwhtaWxrLXRlYQlpY2UtZHJpbmsHaWNlLXRlYQZjb2ZmZWUGb3JhbmdlBHBlYXIFYXBwbGUGY2hlcnJ5CndhdGVybWVsb24FZ3JhcGUMcmVmcmlnZXJhdG9yEmdvYmxldC1zcXVhcmUtZnVsbA1nb2JsZXQtc3F1YXJlC2dvYmxldC1mdWxsBmdvYmxldApjb2xkLWRyaW5rCmNvZmZlZS1jdXAJd2F0ZXItY3VwCWhvdC13YXRlcglpY2UtY3JlYW0HZGVzc2VydAVzdWdhcgl0YWJsZXdhcmUGYnVyZ2VyCmtuaWZlLWZvcmsKZm9yay1zcG9vbgdjaGlja2VuBGZvb2QGZGlzaC0xBGRpc2gMcmVmcmVzaC1sZWZ0DXJlZnJlc2gtcmlnaHQPd2FybmluZy1vdXRsaW5lB3NldHRpbmcNcGhvbmUtb3V0bGluZQxtb3JlLW91dGxpbmUIZmluaXNoZWQEdmlldwdsb2FkaW5nB3JlZnJlc2gEcmFuawRzb3J0DG1vYmlsZS1waG9uZQdzZXJ2aWNlBHNlbGwIc29sZC1vdXQGZGVsZXRlBW1pbnVzBHBsdXMFY2hlY2sFY2xvc2UNZC1hcnJvdy1yaWdodAxkLWFycm93LWxlZnQKYXJyb3ctbGVmdAphcnJvdy1kb3duC2Fycm93LXJpZ2h0CGFycm93LXVwA2tleQR1c2VyBnVubG9jawRsb2NrA3RvcAl0b3AtcmlnaHQIdG9wLWxlZnQFcmlnaHQEYmFjawZib3R0b20MYm90dG9tLXJpZ2h0C2JvdHRvbS1sZWZ0Cm1vb24tbmlnaHQEbW9vbhBjbG91ZHktYW5kLXN1bm55DXBhcnRseS1jbG91ZHkGY2xvdWR5BXN1bm55BnN1bnNldAlzdW5yaXNlLTEHc3VucmlzZQpoZWF2eS1yYWluCWxpZ2h0bmluZwpsaWdodC1yYWluCndpbmQtcG93ZXIFd2F0Y2gHd2F0Y2gtMQV0aW1lcgthbGFybS1jbG9jawxtYXAtbG9jYXRpb24PZGVsZXRlLWxvY2F0aW9uDGFkZC1sb2NhdGlvbhRsb2NhdGlvbi1pbmZvcm1hdGlvbhBsb2NhdGlvbi1vdXRsaW5lBXBsYWNlCGRpc2NvdmVyDWZpcnN0LWFpZC1raXQIdHJvcGh5LTEGdHJvcGh5BW1lZGFsB21lZGFsLTEJc3RvcHdhdGNoA21pYwhiYXNlYmFsbAZzb2NjZXIIZm9vdGJhbGwKYmFza2V0YmFsbAhzdGFyLW9mZg1jb3B5LWRvY3VtZW50C2Z1bGwtc2NyZWVuDXN3aXRjaC1idXR0b24DYWltBGNyb3AIb2RvbWV0ZXIEdGltZQxjaXJjbGUtY2hlY2sOcmVtb3ZlLW91dGxpbmUTY2lyY2xlLXBsdXMtb3V0bGluZQdiYW5nemh1BGJlbGwSY2xvc2Utbm90aWZpY2F0aW9uCm1pY3JvcGhvbmUTdHVybi1vZmYtbWljcm9waG9uZQhwb3NpdGlvbghwb3N0Y2FyZAdtZXNzYWdlEGNoYXQtbGluZS1zcXVhcmUPY2hhdC1kb3Qtc3F1YXJlDmNoYXQtZG90LXJvdW5kC2NoYXQtc3F1YXJlD2NoYXQtbGluZS1yb3VuZApjaGF0LXJvdW5kBnNldC11cAh0dXJuLW9mZgRvcGVuCmNvbm5lY3Rpb24EbGluawNjcHUFdGh1bWIGZmVtYWxlBG1hbGUFZ3VpZGUEaGVscARuZXdzBHNoaXAFdHJ1Y2sHYmljeWNsZQlwcmljZS10YWcIZGlzY291bnQGd2FsbGV0BGNvaW4FbW9uZXkJYmFuay1jYXJkA2JveAdwcmVzZW50DnNob3BwaW5nLWJhZy0yDnNob3BwaW5nLWJhZy0xD3Nob3BwaW5nLWNhcnQtMg9zaG9wcGluZy1jYXJ0LTESc2hvcHBpbmctY2FydC1mdWxsB3Ntb2tpbmcKbm8tc21va2luZwVob3VzZQp0YWJsZS1sYW1wBnNjaG9vbA9vZmZpY2UtYnVpbGRpbmcMdG9pbGV0LXBhcGVyCm5vdGVib29rLTIKbm90ZWJvb2stMQVmaWxlcwpjb2xsZWN0aW9uCXJlY2VpdmluZw9waWN0dXJlLW91dGxpbmUVcGljdHVyZS1vdXRsaW5lLXJvdW5kCnN1aXRjYXNlLTEIc3VpdGNhc2UEZmlsbQxlZGl0LW91dGxpbmUOY29sbGVjdGlvbi10YWcNZGF0YS1hbmFseXNpcwlwaWUtY2hhcnQKZGF0YS1ib2FyZAdyZWFkaW5nC21hZ2ljLXN0aWNrCmNvb3JkaW5hdGUFbW91c2UJZGF0YS1saW5lBWJydXNoB2hlYWRzZXQIdW1icmVsbGEIc2Npc3NvcnMMdmlkZW8tY2FtZXJhBm1vYmlsZQdhdHRyYWN0B21vbml0b3IIem9vbS1vdXQHem9vbS1pbgZzZWFyY2gGY2FtZXJhDHRha2Vhd2F5LWJveAd1cGxvYWQyCGRvd25sb2FkCXBhcGVyY2xpcAdwcmludGVyDGRvY3VtZW50LWFkZAhkb2N1bWVudBBkb2N1bWVudC1jaGVja2VkDWRvY3VtZW50LWNvcHkPZG9jdW1lbnQtZGVsZXRlD2RvY3VtZW50LXJlbW92ZQd0aWNrZXRzDmZvbGRlci1jaGVja2VkDWZvbGRlci1kZWxldGUNZm9sZGVyLXJlbW92ZQpmb2xkZXItYWRkDWZvbGRlci1vcGVuZWQGZm9sZGVyBGVkaXQMY2lyY2xlLWNsb3NlBGRhdGUJY2FyZXQtdG9wDGNhcmV0LWJvdHRvbQtjYXJldC1yaWdodApjYXJldC1sZWZ0BXNoYXJlBG1vcmUFcGhvbmUSdmlkZW8tY2FtZXJhLXNvbGlkB3N0YXItb24EbWVudQ1tZXNzYWdlLXNvbGlkB2QtY2FyZXQMY2FtZXJhLXNvbGlkB3N1Y2Nlc3MFZXJyb3IIbG9jYXRpb24HcGljdHVyZQtjaXJjbGUtcGx1cwRpbmZvBnJlbW92ZQd3YXJuaW5nCHF1ZXN0aW9uCnVzZXItc29saWQGcy1ncmlkB3MtY2hlY2sGcy1kYXRhBnMtZm9sZA1zLW9wcG9ydHVuaXR5CHMtY3VzdG9tB3MtdG9vbHMHcy1jbGFpbQlzLWZpbmFuY2UJcy1jb21tZW50BnMtZmxhZwtzLW1hcmtldGluZwdzLWdvb2RzBnMtaGVscAZzLXNob3AGcy1vcGVuDHMtbWFuYWdlbWVudAhzLXRpY2tldAlzLXJlbGVhc2UGcy1ob21lC3MtcHJvbW90aW9uC3Mtb3BlcmF0aW9uCHMtdW5mb2xkCnMtcGxhdGZvcm0Hcy1vcmRlcg1zLWNvb3BlcmF0aW9uCnZpZGVvLXBsYXkLdmlkZW8tcGF1c2UFZ29vZHMGdXBsb2FkCXNvcnQtZG93bgdzb3J0LXVwE2Mtc2NhbGUtdG8tb3JpZ2luYWwFZWxlbWUMZGVsZXRlLXNvbGlkDnBsYXRmb3JtLWVsZW1lAAAA) format(\"truetype\");font-weight:400;font-display:\"auto\";font-style:normal}[class*=\" el-icon-\"],[class^=el-icon-]{font-family:element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-icon-ice-cream-round:before{content:\"\\e6a0\"}.el-icon-ice-cream-square:before{content:\"\\e6a3\"}.el-icon-lollipop:before{content:\"\\e6a4\"}.el-icon-potato-strips:before{content:\"\\e6a5\"}.el-icon-milk-tea:before{content:\"\\e6a6\"}.el-icon-ice-drink:before{content:\"\\e6a7\"}.el-icon-ice-tea:before{content:\"\\e6a9\"}.el-icon-coffee:before{content:\"\\e6aa\"}.el-icon-orange:before{content:\"\\e6ab\"}.el-icon-pear:before{content:\"\\e6ac\"}.el-icon-apple:before{content:\"\\e6ad\"}.el-icon-cherry:before{content:\"\\e6ae\"}.el-icon-watermelon:before{content:\"\\e6af\"}.el-icon-grape:before{content:\"\\e6b0\"}.el-icon-refrigerator:before{content:\"\\e6b1\"}.el-icon-goblet-square-full:before{content:\"\\e6b2\"}.el-icon-goblet-square:before{content:\"\\e6b3\"}.el-icon-goblet-full:before{content:\"\\e6b4\"}.el-icon-goblet:before{content:\"\\e6b5\"}.el-icon-cold-drink:before{content:\"\\e6b6\"}.el-icon-coffee-cup:before{content:\"\\e6b8\"}.el-icon-water-cup:before{content:\"\\e6b9\"}.el-icon-hot-water:before{content:\"\\e6ba\"}.el-icon-ice-cream:before{content:\"\\e6bb\"}.el-icon-dessert:before{content:\"\\e6bc\"}.el-icon-sugar:before{content:\"\\e6bd\"}.el-icon-tableware:before{content:\"\\e6be\"}.el-icon-burger:before{content:\"\\e6bf\"}.el-icon-knife-fork:before{content:\"\\e6c1\"}.el-icon-fork-spoon:before{content:\"\\e6c2\"}.el-icon-chicken:before{content:\"\\e6c3\"}.el-icon-food:before{content:\"\\e6c4\"}.el-icon-dish-1:before{content:\"\\e6c5\"}.el-icon-dish:before{content:\"\\e6c6\"}.el-icon-moon-night:before{content:\"\\e6ee\"}.el-icon-moon:before{content:\"\\e6f0\"}.el-icon-cloudy-and-sunny:before{content:\"\\e6f1\"}.el-icon-partly-cloudy:before{content:\"\\e6f2\"}.el-icon-cloudy:before{content:\"\\e6f3\"}.el-icon-sunny:before{content:\"\\e6f6\"}.el-icon-sunset:before{content:\"\\e6f7\"}.el-icon-sunrise-1:before{content:\"\\e6f8\"}.el-icon-sunrise:before{content:\"\\e6f9\"}.el-icon-heavy-rain:before{content:\"\\e6fa\"}.el-icon-lightning:before{content:\"\\e6fb\"}.el-icon-light-rain:before{content:\"\\e6fc\"}.el-icon-wind-power:before{content:\"\\e6fd\"}.el-icon-baseball:before{content:\"\\e712\"}.el-icon-soccer:before{content:\"\\e713\"}.el-icon-football:before{content:\"\\e715\"}.el-icon-basketball:before{content:\"\\e716\"}.el-icon-ship:before{content:\"\\e73f\"}.el-icon-truck:before{content:\"\\e740\"}.el-icon-bicycle:before{content:\"\\e741\"}.el-icon-mobile-phone:before{content:\"\\e6d3\"}.el-icon-service:before{content:\"\\e6d4\"}.el-icon-key:before{content:\"\\e6e2\"}.el-icon-unlock:before{content:\"\\e6e4\"}.el-icon-lock:before{content:\"\\e6e5\"}.el-icon-watch:before{content:\"\\e6fe\"}.el-icon-watch-1:before{content:\"\\e6ff\"}.el-icon-timer:before{content:\"\\e702\"}.el-icon-alarm-clock:before{content:\"\\e703\"}.el-icon-map-location:before{content:\"\\e704\"}.el-icon-delete-location:before{content:\"\\e705\"}.el-icon-add-location:before{content:\"\\e706\"}.el-icon-location-information:before{content:\"\\e707\"}.el-icon-location-outline:before{content:\"\\e708\"}.el-icon-location:before{content:\"\\e79e\"}.el-icon-place:before{content:\"\\e709\"}.el-icon-discover:before{content:\"\\e70a\"}.el-icon-first-aid-kit:before{content:\"\\e70b\"}.el-icon-trophy-1:before{content:\"\\e70c\"}.el-icon-trophy:before{content:\"\\e70d\"}.el-icon-medal:before{content:\"\\e70e\"}.el-icon-medal-1:before{content:\"\\e70f\"}.el-icon-stopwatch:before{content:\"\\e710\"}.el-icon-mic:before{content:\"\\e711\"}.el-icon-copy-document:before{content:\"\\e718\"}.el-icon-full-screen:before{content:\"\\e719\"}.el-icon-switch-button:before{content:\"\\e71b\"}.el-icon-aim:before{content:\"\\e71c\"}.el-icon-crop:before{content:\"\\e71d\"}.el-icon-odometer:before{content:\"\\e71e\"}.el-icon-time:before{content:\"\\e71f\"}.el-icon-bangzhu:before{content:\"\\e724\"}.el-icon-close-notification:before{content:\"\\e726\"}.el-icon-microphone:before{content:\"\\e727\"}.el-icon-turn-off-microphone:before{content:\"\\e728\"}.el-icon-position:before{content:\"\\e729\"}.el-icon-postcard:before{content:\"\\e72a\"}.el-icon-message:before{content:\"\\e72b\"}.el-icon-chat-line-square:before{content:\"\\e72d\"}.el-icon-chat-dot-square:before{content:\"\\e72e\"}.el-icon-chat-dot-round:before{content:\"\\e72f\"}.el-icon-chat-square:before{content:\"\\e730\"}.el-icon-chat-line-round:before{content:\"\\e731\"}.el-icon-chat-round:before{content:\"\\e732\"}.el-icon-set-up:before{content:\"\\e733\"}.el-icon-turn-off:before{content:\"\\e734\"}.el-icon-open:before{content:\"\\e735\"}.el-icon-connection:before{content:\"\\e736\"}.el-icon-link:before{content:\"\\e737\"}.el-icon-cpu:before{content:\"\\e738\"}.el-icon-thumb:before{content:\"\\e739\"}.el-icon-female:before{content:\"\\e73a\"}.el-icon-male:before{content:\"\\e73b\"}.el-icon-guide:before{content:\"\\e73c\"}.el-icon-news:before{content:\"\\e73e\"}.el-icon-price-tag:before{content:\"\\e744\"}.el-icon-discount:before{content:\"\\e745\"}.el-icon-wallet:before{content:\"\\e747\"}.el-icon-coin:before{content:\"\\e748\"}.el-icon-money:before{content:\"\\e749\"}.el-icon-bank-card:before{content:\"\\e74a\"}.el-icon-box:before{content:\"\\e74b\"}.el-icon-present:before{content:\"\\e74c\"}.el-icon-sell:before{content:\"\\e6d5\"}.el-icon-sold-out:before{content:\"\\e6d6\"}.el-icon-shopping-bag-2:before{content:\"\\e74d\"}.el-icon-shopping-bag-1:before{content:\"\\e74e\"}.el-icon-shopping-cart-2:before{content:\"\\e74f\"}.el-icon-shopping-cart-1:before{content:\"\\e750\"}.el-icon-shopping-cart-full:before{content:\"\\e751\"}.el-icon-smoking:before{content:\"\\e752\"}.el-icon-no-smoking:before{content:\"\\e753\"}.el-icon-house:before{content:\"\\e754\"}.el-icon-table-lamp:before{content:\"\\e755\"}.el-icon-school:before{content:\"\\e756\"}.el-icon-office-building:before{content:\"\\e757\"}.el-icon-toilet-paper:before{content:\"\\e758\"}.el-icon-notebook-2:before{content:\"\\e759\"}.el-icon-notebook-1:before{content:\"\\e75a\"}.el-icon-files:before{content:\"\\e75b\"}.el-icon-collection:before{content:\"\\e75c\"}.el-icon-receiving:before{content:\"\\e75d\"}.el-icon-suitcase-1:before{content:\"\\e760\"}.el-icon-suitcase:before{content:\"\\e761\"}.el-icon-film:before{content:\"\\e763\"}.el-icon-collection-tag:before{content:\"\\e765\"}.el-icon-data-analysis:before{content:\"\\e766\"}.el-icon-pie-chart:before{content:\"\\e767\"}.el-icon-data-board:before{content:\"\\e768\"}.el-icon-data-line:before{content:\"\\e76d\"}.el-icon-reading:before{content:\"\\e769\"}.el-icon-magic-stick:before{content:\"\\e76a\"}.el-icon-coordinate:before{content:\"\\e76b\"}.el-icon-mouse:before{content:\"\\e76c\"}.el-icon-brush:before{content:\"\\e76e\"}.el-icon-headset:before{content:\"\\e76f\"}.el-icon-umbrella:before{content:\"\\e770\"}.el-icon-scissors:before{content:\"\\e771\"}.el-icon-mobile:before{content:\"\\e773\"}.el-icon-attract:before{content:\"\\e774\"}.el-icon-monitor:before{content:\"\\e775\"}.el-icon-search:before{content:\"\\e778\"}.el-icon-takeaway-box:before{content:\"\\e77a\"}.el-icon-paperclip:before{content:\"\\e77d\"}.el-icon-printer:before{content:\"\\e77e\"}.el-icon-document-add:before{content:\"\\e782\"}.el-icon-document:before{content:\"\\e785\"}.el-icon-document-checked:before{content:\"\\e786\"}.el-icon-document-copy:before{content:\"\\e787\"}.el-icon-document-delete:before{content:\"\\e788\"}.el-icon-document-remove:before{content:\"\\e789\"}.el-icon-tickets:before{content:\"\\e78b\"}.el-icon-folder-checked:before{content:\"\\e77f\"}.el-icon-folder-delete:before{content:\"\\e780\"}.el-icon-folder-remove:before{content:\"\\e781\"}.el-icon-folder-add:before{content:\"\\e783\"}.el-icon-folder-opened:before{content:\"\\e784\"}.el-icon-folder:before{content:\"\\e78a\"}.el-icon-edit-outline:before{content:\"\\e764\"}.el-icon-edit:before{content:\"\\e78c\"}.el-icon-date:before{content:\"\\e78e\"}.el-icon-c-scale-to-original:before{content:\"\\e7c6\"}.el-icon-view:before{content:\"\\e6ce\"}.el-icon-loading:before{content:\"\\e6cf\"}.el-icon-rank:before{content:\"\\e6d1\"}.el-icon-sort-down:before{content:\"\\e7c4\"}.el-icon-sort-up:before{content:\"\\e7c5\"}.el-icon-sort:before{content:\"\\e6d2\"}.el-icon-finished:before{content:\"\\e6cd\"}.el-icon-refresh-left:before{content:\"\\e6c7\"}.el-icon-refresh-right:before{content:\"\\e6c8\"}.el-icon-refresh:before{content:\"\\e6d0\"}.el-icon-video-play:before{content:\"\\e7c0\"}.el-icon-video-pause:before{content:\"\\e7c1\"}.el-icon-d-arrow-right:before{content:\"\\e6dc\"}.el-icon-d-arrow-left:before{content:\"\\e6dd\"}.el-icon-arrow-up:before{content:\"\\e6e1\"}.el-icon-arrow-down:before{content:\"\\e6df\"}.el-icon-arrow-right:before{content:\"\\e6e0\"}.el-icon-arrow-left:before{content:\"\\e6de\"}.el-icon-top-right:before{content:\"\\e6e7\"}.el-icon-top-left:before{content:\"\\e6e8\"}.el-icon-top:before{content:\"\\e6e6\"}.el-icon-bottom:before{content:\"\\e6eb\"}.el-icon-right:before{content:\"\\e6e9\"}.el-icon-back:before{content:\"\\e6ea\"}.el-icon-bottom-right:before{content:\"\\e6ec\"}.el-icon-bottom-left:before{content:\"\\e6ed\"}.el-icon-caret-top:before{content:\"\\e78f\"}.el-icon-caret-bottom:before{content:\"\\e790\"}.el-icon-caret-right:before{content:\"\\e791\"}.el-icon-caret-left:before{content:\"\\e792\"}.el-icon-d-caret:before{content:\"\\e79a\"}.el-icon-share:before{content:\"\\e793\"}.el-icon-menu:before{content:\"\\e798\"}.el-icon-s-grid:before{content:\"\\e7a6\"}.el-icon-s-check:before{content:\"\\e7a7\"}.el-icon-s-data:before{content:\"\\e7a8\"}.el-icon-s-opportunity:before{content:\"\\e7aa\"}.el-icon-s-custom:before{content:\"\\e7ab\"}.el-icon-s-claim:before{content:\"\\e7ad\"}.el-icon-s-finance:before{content:\"\\e7ae\"}.el-icon-s-comment:before{content:\"\\e7af\"}.el-icon-s-flag:before{content:\"\\e7b0\"}.el-icon-s-marketing:before{content:\"\\e7b1\"}.el-icon-s-shop:before{content:\"\\e7b4\"}.el-icon-s-open:before{content:\"\\e7b5\"}.el-icon-s-management:before{content:\"\\e7b6\"}.el-icon-s-ticket:before{content:\"\\e7b7\"}.el-icon-s-release:before{content:\"\\e7b8\"}.el-icon-s-home:before{content:\"\\e7b9\"}.el-icon-s-promotion:before{content:\"\\e7ba\"}.el-icon-s-operation:before{content:\"\\e7bb\"}.el-icon-s-unfold:before{content:\"\\e7bc\"}.el-icon-s-fold:before{content:\"\\e7a9\"}.el-icon-s-platform:before{content:\"\\e7bd\"}.el-icon-s-order:before{content:\"\\e7be\"}.el-icon-s-cooperation:before{content:\"\\e7bf\"}.el-icon-bell:before{content:\"\\e725\"}.el-icon-message-solid:before{content:\"\\e799\"}.el-icon-video-camera:before{content:\"\\e772\"}.el-icon-video-camera-solid:before{content:\"\\e796\"}.el-icon-camera:before{content:\"\\e779\"}.el-icon-camera-solid:before{content:\"\\e79b\"}.el-icon-download:before{content:\"\\e77c\"}.el-icon-upload2:before{content:\"\\e77b\"}.el-icon-upload:before{content:\"\\e7c3\"}.el-icon-picture-outline-round:before{content:\"\\e75f\"}.el-icon-picture-outline:before{content:\"\\e75e\"}.el-icon-picture:before{content:\"\\e79f\"}.el-icon-close:before{content:\"\\e6db\"}.el-icon-check:before{content:\"\\e6da\"}.el-icon-plus:before{content:\"\\e6d9\"}.el-icon-minus:before{content:\"\\e6d8\"}.el-icon-help:before{content:\"\\e73d\"}.el-icon-s-help:before{content:\"\\e7b3\"}.el-icon-circle-close:before{content:\"\\e78d\"}.el-icon-circle-check:before{content:\"\\e720\"}.el-icon-circle-plus-outline:before{content:\"\\e723\"}.el-icon-remove-outline:before{content:\"\\e722\"}.el-icon-zoom-out:before{content:\"\\e776\"}.el-icon-zoom-in:before{content:\"\\e777\"}.el-icon-error:before{content:\"\\e79d\"}.el-icon-success:before{content:\"\\e79c\"}.el-icon-circle-plus:before{content:\"\\e7a0\"}.el-icon-remove:before{content:\"\\e7a2\"}.el-icon-info:before{content:\"\\e7a1\"}.el-icon-question:before{content:\"\\e7a4\"}.el-icon-warning-outline:before{content:\"\\e6c9\"}.el-icon-warning:before{content:\"\\e7a3\"}.el-icon-goods:before{content:\"\\e7c2\"}.el-icon-s-goods:before{content:\"\\e7b2\"}.el-icon-star-off:before{content:\"\\e717\"}.el-icon-star-on:before{content:\"\\e797\"}.el-icon-more-outline:before{content:\"\\e6cc\"}.el-icon-more:before{content:\"\\e794\"}.el-icon-phone-outline:before{content:\"\\e6cb\"}.el-icon-phone:before{content:\"\\e795\"}.el-icon-user:before{content:\"\\e6e3\"}.el-icon-user-solid:before{content:\"\\e7a5\"}.el-icon-setting:before{content:\"\\e6ca\"}.el-icon-s-tools:before{content:\"\\e7ac\"}.el-icon-delete:before{content:\"\\e6d7\"}.el-icon-delete-solid:before{content:\"\\e7c9\"}.el-icon-eleme:before{content:\"\\e7c7\"}.el-icon-platform-eleme:before{content:\"\\e7ca\"}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}100%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}}@keyframes rotating{0%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}100%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}}.el-pagination{white-space:nowrap;padding:2px 5px;color:#303133;font-weight:700}.el-pagination::after,.el-pagination::before{display:table;content:\"\"}.el-pagination::after{clear:both}.el-pagination button,.el-pagination span:not([class*=suffix]){display:inline-block;font-size:13px;min-width:35.5px;height:28px;line-height:28px;vertical-align:top;-webkit-box-sizing:border-box;box-sizing:border-box}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield;line-height:normal}.el-pagination .el-input__suffix{right:0;-webkit-transform:scale(.8);transform:scale(.8)}.el-pagination .el-select .el-input{width:100px;margin:0 5px}.el-pagination .el-select .el-input .el-input__inner{padding-right:25px;border-radius:3px}.el-pagination button{border:none;padding:0 6px;background:0 0}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:#409EFF}.el-pagination button:disabled{color:#C0C4CC;background-color:#FFF;cursor:not-allowed}.el-pagination .btn-next,.el-pagination .btn-prev{background:center center no-repeat #FFF;background-size:16px;cursor:pointer;margin:0;color:#303133}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700}.el-pagination .btn-prev{padding-right:12px}.el-pagination .btn-next{padding-left:12px}.el-pagination .el-pager li.disabled{color:#C0C4CC;cursor:not-allowed}.el-pager li,.el-pager li.btn-quicknext:hover,.el-pager li.btn-quickprev:hover{cursor:pointer}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li,.el-pagination--small .el-pager li.btn-quicknext,.el-pagination--small .el-pager li.btn-quickprev,.el-pagination--small .el-pager li:last-child{border-color:transparent;font-size:12px;line-height:22px;height:22px;min-width:22px}.el-pagination--small .arrow.disabled{visibility:hidden}.el-pagination--small .more::before,.el-pagination--small li.more::before{line-height:24px}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){height:22px;line-height:22px}.el-pagination--small .el-pagination__editor,.el-pagination--small .el-pagination__editor.el-input .el-input__inner{height:22px}.el-pagination__sizes{margin:0 10px 0 0;font-weight:400;color:#606266}.el-pagination__sizes .el-input .el-input__inner{font-size:13px;padding-left:8px}.el-pagination__sizes .el-input .el-input__inner:hover{border-color:#409EFF}.el-pagination__total{margin-right:10px;font-weight:400;color:#606266}.el-pagination__jump{margin-left:24px;font-weight:400;color:#606266}.el-pagination__jump .el-input__inner{padding:0 3px}.el-pagination__rightwrapper{float:right}.el-pagination__editor{line-height:18px;padding:0 2px;height:28px;text-align:center;margin:0 2px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:3px}.el-pager,.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev{padding:0}.el-dialog,.el-pager li{-webkit-box-sizing:border-box}.el-pagination__editor.el-input{width:50px}.el-pagination__editor.el-input .el-input__inner{height:28px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 5px;background-color:#f4f4f5;color:#606266;min-width:30px;border-radius:2px}.el-pagination.is-background .btn-next.disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.disabled{color:#C0C4CC}.el-pagination.is-background .el-pager li:not(.disabled):hover{color:#409EFF}.el-pagination.is-background .el-pager li:not(.disabled).active{background-color:#409EFF;color:#FFF}.el-pagination.is-background.el-pagination--small .btn-next,.el-pagination.is-background.el-pagination--small .btn-prev,.el-pagination.is-background.el-pagination--small .el-pager li{margin:0 3px;min-width:22px}.el-pager,.el-pager li{vertical-align:top;margin:0;display:inline-block}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0}.el-pager .more::before{line-height:30px}.el-pager li{padding:0 4px;background:#FFF;font-size:13px;min-width:35.5px;height:28px;line-height:28px;box-sizing:border-box;text-align:center}.el-pager li.btn-quicknext,.el-pager li.btn-quickprev{line-height:28px;color:#303133}.el-pager li.btn-quicknext.disabled,.el-pager li.btn-quickprev.disabled{color:#C0C4CC}.el-pager li.active+li{border-left:0}.el-pager li:hover{color:#409EFF}.el-pager li.active{color:#409EFF;cursor:default}@-webkit-keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{100%{opacity:0}}.el-dialog{position:relative;margin:0 auto 50px;background:#FFF;border-radius:2px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.3);box-shadow:0 1px 3px rgba(0,0,0,.3);box-sizing:border-box;width:50%}.el-dialog.is-fullscreen{width:100%;margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog__header{padding:20px 20px 10px}.el-dialog__headerbtn{position:absolute;top:20px;right:20px;padding:0;background:0 0;border:none;outline:0;cursor:pointer;font-size:16px}.el-dialog__headerbtn .el-dialog__close{color:#909399}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:#409EFF}.el-dialog__title{line-height:24px;font-size:18px;color:#303133}.el-dialog__body{padding:30px 20px;color:#606266;font-size:14px;word-break:break-all}.el-dialog__footer{padding:10px 20px 20px;text-align:right;-webkit-box-sizing:border-box;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px 25px 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.dialog-fade-enter-active{-webkit-animation:dialog-fade-in .3s;animation:dialog-fade-in .3s}.dialog-fade-leave-active{-webkit-animation:dialog-fade-out .3s;animation:dialog-fade-out .3s}@-webkit-keyframes dialog-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@keyframes dialog-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}.el-autocomplete{position:relative;display:inline-block}.el-autocomplete-suggestion{margin:5px 0;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:4px;border:1px solid #E4E7ED;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#FFF}.el-autocomplete-suggestion__wrap{max-height:280px;padding:10px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-autocomplete-suggestion__list{margin:0;padding:0}.el-autocomplete-suggestion li{padding:0 20px;margin:0;line-height:34px;cursor:pointer;color:#606266;font-size:14px;list-style:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-autocomplete-suggestion li.highlighted,.el-autocomplete-suggestion li:hover{background-color:#F5F7FA}.el-autocomplete-suggestion li.divider{margin-top:6px;border-top:1px solid #000}.el-autocomplete-suggestion li.divider:last-child{margin-bottom:-6px}.el-autocomplete-suggestion.is-loading li{text-align:center;height:100px;line-height:100px;font-size:20px;color:#999}.el-autocomplete-suggestion.is-loading li::after{display:inline-block;content:\"\";height:100%;vertical-align:middle}.el-autocomplete-suggestion.is-loading li:hover{background-color:#FFF}.el-autocomplete-suggestion.is-loading .el-icon-loading{vertical-align:middle}.el-dropdown{display:inline-block;position:relative;color:#606266;font-size:14px}.el-dropdown .el-button-group{display:block}.el-dropdown .el-button-group .el-button{float:none}.el-dropdown .el-dropdown__caret-button{padding-left:5px;padding-right:5px;position:relative;border-left:none}.el-dropdown .el-dropdown__caret-button::before{content:'';position:absolute;display:block;width:1px;top:5px;bottom:5px;left:0;background:rgba(255,255,255,.5)}.el-dropdown .el-dropdown__caret-button.el-button--default::before{background:rgba(220,223,230,.5)}.el-dropdown .el-dropdown__caret-button:hover:not(.is-disabled)::before{top:0;bottom:0}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{padding-left:0}.el-dropdown__icon{font-size:12px;margin:0 3px}.el-dropdown .el-dropdown-selfdefine:focus:active,.el-dropdown .el-dropdown-selfdefine:focus:not(.focusing){outline-width:0}.el-dropdown [disabled]{cursor:not-allowed;color:#bbb}.el-dropdown-menu{position:absolute;top:0;left:0;z-index:10;padding:10px 0;margin:5px 0;background-color:#FFF;border:1px solid #EBEEF5;border-radius:4px;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-dropdown-menu__item,.el-menu-item{font-size:14px;padding:0 20px;cursor:pointer}.el-dropdown-menu__item{list-style:none;line-height:36px;margin:0;color:#606266;outline:0}.el-dropdown-menu__item:focus,.el-dropdown-menu__item:not(.is-disabled):hover{background-color:#ecf5ff;color:#66b1ff}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{position:relative;margin-top:6px;border-top:1px solid #EBEEF5}.el-dropdown-menu__item--divided:before{content:'';height:6px;display:block;margin:0 -20px;background-color:#FFF}.el-dropdown-menu__item.is-disabled{cursor:default;color:#bbb;pointer-events:none}.el-dropdown-menu--medium{padding:6px 0}.el-dropdown-menu--medium .el-dropdown-menu__item{line-height:30px;padding:0 17px;font-size:14px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:6px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:6px;margin:0 -17px}.el-dropdown-menu--small{padding:6px 0}.el-dropdown-menu--small .el-dropdown-menu__item{line-height:27px;padding:0 15px;font-size:13px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:4px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:4px;margin:0 -15px}.el-dropdown-menu--mini{padding:3px 0}.el-dropdown-menu--mini .el-dropdown-menu__item{line-height:24px;padding:0 10px;font-size:12px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:3px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:3px;margin:0 -10px}.el-menu{border-right:solid 1px #e6e6e6;list-style:none;position:relative;margin:0;padding-left:0;background-color:#FFF}.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus,.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover,.el-menu--horizontal>.el-submenu .el-submenu__title:hover{background-color:#fff}.el-menu::after,.el-menu::before{display:table;content:\"\"}.el-breadcrumb__item:last-child .el-breadcrumb__separator,.el-menu--collapse>.el-menu-item .el-submenu__icon-arrow,.el-menu--collapse>.el-submenu>.el-submenu__title .el-submenu__icon-arrow{display:none}.el-menu::after{clear:both}.el-menu.el-menu--horizontal{border-bottom:solid 1px #e6e6e6}.el-menu--horizontal{border-right:none}.el-menu--horizontal>.el-menu-item{float:left;height:60px;line-height:60px;margin:0;border-bottom:2px solid transparent;color:#909399}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-submenu{float:left}.el-menu--horizontal>.el-submenu:focus,.el-menu--horizontal>.el-submenu:hover{outline:0}.el-menu--horizontal>.el-submenu:focus .el-submenu__title,.el-menu--horizontal>.el-submenu:hover .el-submenu__title{color:#303133}.el-menu--horizontal>.el-submenu.is-active .el-submenu__title{border-bottom:2px solid #409EFF;color:#303133}.el-menu--horizontal>.el-submenu .el-submenu__title{height:60px;line-height:60px;border-bottom:2px solid transparent;color:#909399}.el-menu--horizontal>.el-submenu .el-submenu__icon-arrow{position:static;vertical-align:middle;margin-left:8px;margin-top:-3px}.el-menu--collapse .el-submenu,.el-menu-item{position:relative}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-submenu__title{background-color:#FFF;float:none;height:36px;line-height:36px;padding:0 10px;color:#909399}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-submenu.is-active>.el-submenu__title{color:#303133}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{outline:0;color:#303133}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid #409EFF;color:#303133}.el-menu--collapse{width:64px}.el-menu--collapse>.el-menu-item [class^=el-icon-],.el-menu--collapse>.el-submenu>.el-submenu__title [class^=el-icon-]{margin:0;vertical-align:middle;width:24px;text-align:center}.el-menu--collapse>.el-menu-item span,.el-menu--collapse>.el-submenu>.el-submenu__title span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.el-menu-item,.el-submenu__title{height:56px;line-height:56px;list-style:none}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-submenu{min-width:200px}.el-menu--collapse .el-submenu .el-menu{position:absolute;margin-left:5px;top:0;left:100%;z-index:10;border:1px solid #E4E7ED;border-radius:2px;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-menu--collapse .el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow{-webkit-transform:none;transform:none}.el-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:2px;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-menu--popup-bottom-start{margin-top:5px}.el-menu--popup-right-start{margin-left:5px;margin-right:5px}.el-menu-item{color:#303133;-webkit-transition:border-color .3s,background-color .3s,color .3s;transition:border-color .3s,background-color .3s,color .3s;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap}.el-radio-button__inner,.el-submenu__title{-webkit-box-sizing:border-box;position:relative;white-space:nowrap}.el-menu-item *{vertical-align:middle}.el-menu-item i{color:#909399}.el-menu-item:focus,.el-menu-item:hover{outline:0;background-color:#ecf5ff}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon-]{margin-right:5px;width:24px;text-align:center;font-size:18px;vertical-align:middle}.el-menu-item.is-active{color:#409EFF}.el-menu-item.is-active i{color:inherit}.el-submenu{list-style:none;margin:0;padding-left:0}.el-submenu__title{font-size:14px;color:#303133;padding:0 20px;cursor:pointer;-webkit-transition:border-color .3s,background-color .3s,color .3s;transition:border-color .3s,background-color .3s,color .3s;box-sizing:border-box}.el-submenu__title *{vertical-align:middle}.el-submenu__title i{color:#909399}.el-submenu__title:focus,.el-submenu__title:hover{outline:0;background-color:#ecf5ff}.el-submenu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-submenu__title:hover{background-color:#ecf5ff}.el-submenu .el-menu{border:none}.el-submenu .el-menu-item{height:50px;line-height:50px;padding:0 45px;min-width:200px}.el-submenu__icon-arrow{position:absolute;top:50%;right:20px;margin-top:-7px;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-size:12px}.el-submenu.is-active .el-submenu__title{border-bottom-color:#409EFF}.el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow{-webkit-transform:rotateZ(180deg);transform:rotateZ(180deg)}.el-submenu.is-disabled .el-menu-item,.el-submenu.is-disabled .el-submenu__title{opacity:.25;cursor:not-allowed;background:0 0!important}.el-submenu [class^=el-icon-]{vertical-align:middle;margin-right:5px;width:24px;text-align:center;font-size:18px}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px 20px;line-height:normal;font-size:12px;color:#909399}.el-radio-button__inner,.el-radio-group{display:inline-block;line-height:1;vertical-align:middle}.horizontal-collapse-transition .el-submenu__title .el-submenu__icon-arrow{-webkit-transition:.2s;transition:.2s;opacity:0}.el-radio-group{font-size:0}.el-radio-button{position:relative;display:inline-block;outline:0}.el-radio-button__inner{background:#FFF;border:1px solid #DCDFE6;font-weight:500;border-left:0;color:#606266;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;cursor:pointer;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1);padding:12px 20px;font-size:14px;border-radius:0}.el-radio-button__inner.is-round{padding:12px 20px}.el-radio-button__inner:hover{color:#409EFF}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:1px solid #DCDFE6;border-radius:4px 0 0 4px;-webkit-box-shadow:none!important;box-shadow:none!important}.el-radio-button__orig-radio{opacity:0;outline:0;position:absolute;z-index:-1}.el-radio-button__orig-radio:checked+.el-radio-button__inner{color:#FFF;background-color:#409EFF;border-color:#409EFF;-webkit-box-shadow:-1px 0 0 0 #409EFF;box-shadow:-1px 0 0 0 #409EFF}.el-radio-button__orig-radio:disabled+.el-radio-button__inner{color:#C0C4CC;cursor:not-allowed;background-image:none;background-color:#FFF;border-color:#EBEEF5;-webkit-box-shadow:none;box-shadow:none}.el-radio-button__orig-radio:disabled:checked+.el-radio-button__inner{background-color:#F2F6FC}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 4px 4px 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:4px}.el-radio-button--medium .el-radio-button__inner{padding:10px 20px;font-size:14px;border-radius:0}.el-radio-button--medium .el-radio-button__inner.is-round{padding:10px 20px}.el-radio-button--small .el-radio-button__inner{padding:9px 15px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:9px 15px}.el-radio-button--mini .el-radio-button__inner{padding:7px 15px;font-size:12px;border-radius:0}.el-radio-button--mini .el-radio-button__inner.is-round{padding:7px 15px}.el-radio-button:focus:not(.is-focus):not(:active):not(.is-disabled){-webkit-box-shadow:0 0 2px 2px #409EFF;box-shadow:0 0 2px 2px #409EFF}.el-picker-panel,.el-popover,.el-select-dropdown,.el-table-filter,.el-time-panel{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-switch{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;font-size:14px;line-height:20px;height:20px;vertical-align:middle}.el-switch__core,.el-switch__label{display:inline-block;cursor:pointer}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{-webkit-transition:.2s;transition:.2s;height:20px;font-size:14px;font-weight:500;vertical-align:middle;color:#303133}.el-switch__label.is-active{color:#409EFF}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{line-height:1;font-size:14px;display:inline-block}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__core{margin:0;position:relative;width:40px;height:20px;border:1px solid #DCDFE6;outline:0;border-radius:10px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#DCDFE6;-webkit-transition:border-color .3s,background-color .3s;transition:border-color .3s,background-color .3s;vertical-align:middle}.el-input__prefix,.el-input__suffix{-webkit-transition:all .3s;color:#C0C4CC}.el-switch__core:after{content:\"\";position:absolute;top:1px;left:1px;border-radius:100%;-webkit-transition:all .3s;transition:all .3s;width:16px;height:16px;background-color:#FFF}.el-switch.is-checked .el-switch__core{border-color:#409EFF;background-color:#409EFF}.el-switch.is-checked .el-switch__core::after{left:100%;margin-left:-17px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter,.el-switch .label-fade-leave-active{opacity:0}.el-select-dropdown{position:absolute;z-index:1001;border:1px solid #E4E7ED;border-radius:4px;background-color:#FFF;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0}.el-select-dropdown.is-multiple .el-select-dropdown__item{padding-right:40px}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:#409EFF;background-color:#FFF}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover{background-color:#F5F7FA}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after{position:absolute;right:20px;font-family:element-icons;content:\"\\e6da\";font-size:12px;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:#999;font-size:14px}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-select-dropdown__item{font-size:14px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#606266;height:34px;line-height:34px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-select-dropdown__item.is-disabled:hover{background-color:#FFF}.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:#F5F7FA}.el-select-dropdown__item.selected{color:#409EFF;font-weight:700}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__wrap:not(:last-of-type){padding-bottom:24px}.el-select-group__wrap:not(:last-of-type)::after{content:'';position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:#E4E7ED}.el-select-group__title{padding-left:20px;font-size:12px;color:#909399;line-height:30px}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{display:inline-block;position:relative}.el-select .el-select__tags>span{display:contents}.el-select:hover .el-input__inner{border-color:#C0C4CC}.el-select .el-input__inner{cursor:pointer;padding-right:35px}.el-select .el-input__inner:focus{border-color:#409EFF}.el-select .el-input .el-select__caret{color:#C0C4CC;font-size:14px;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-transform:rotateZ(180deg);transform:rotateZ(180deg);cursor:pointer}.el-select .el-input .el-select__caret.is-reverse{-webkit-transform:rotateZ(0);transform:rotateZ(0)}.el-select .el-input .el-select__caret.is-show-close{font-size:14px;text-align:center;-webkit-transform:rotateZ(180deg);transform:rotateZ(180deg);border-radius:100%;color:#C0C4CC;-webkit-transition:color .2s cubic-bezier(.645,.045,.355,1);transition:color .2s cubic-bezier(.645,.045,.355,1)}.el-select .el-input .el-select__caret.is-show-close:hover{color:#909399}.el-select .el-input.is-disabled .el-input__inner{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__inner:hover{border-color:#E4E7ED}.el-range-editor.is-active,.el-range-editor.is-active:hover,.el-select .el-input.is-focus .el-input__inner{border-color:#409EFF}.el-select>.el-input{display:block}.el-select__input{border:none;outline:0;padding:0;margin-left:15px;color:#666;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-mini{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:1000;right:25px;color:#C0C4CC;line-height:18px;font-size:14px}.el-select__close:hover{color:#909399}.el-select__tags{position:absolute;line-height:normal;white-space:normal;z-index:1;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.el-select__tags-text{overflow:hidden;text-overflow:ellipsis}.el-select .el-tag{-webkit-box-sizing:border-box;box-sizing:border-box;border-color:transparent;margin:2px 0 2px 6px;background-color:#f0f2f5;display:-webkit-box;display:-ms-flexbox;display:flex;max-width:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-select .el-tag__close.el-icon-close{background-color:#C0C4CC;top:0;color:#FFF;-ms-flex-negative:0;flex-shrink:0}.el-select .el-tag__close.el-icon-close:hover{background-color:#909399}.el-table,.el-table__expanded-cell{background-color:#FFF}.el-select .el-tag__close.el-icon-close::before{display:block;-webkit-transform:translate(0,.5px);transform:translate(0,.5px)}.el-table{position:relative;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%;max-width:100%;font-size:14px;color:#606266}.el-table__empty-block{min-height:60px;text-align:center;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-table__empty-text{line-height:60px;width:50%;color:#909399}.el-table__expand-column .cell{padding:0;text-align:center}.el-table__expand-icon{position:relative;cursor:pointer;color:#666;font-size:12px;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out;height:20px}.el-table__expand-icon--expanded{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.el-table__expand-icon>.el-icon{position:absolute;left:50%;top:50%;margin-left:-5px;margin-top:-5px}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-right:0;border-bottom:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table--scrollable-x .el-table__body-wrapper{overflow-x:auto}.el-table--scrollable-y .el-table__body-wrapper{overflow-y:auto}.el-table thead{color:#909399;font-weight:500}.el-table thead.is-group th.el-table__cell{background:#F5F7FA}.el-table .el-table__cell{padding:12px 0;min-width:0;-webkit-box-sizing:border-box;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table--medium .el-table__cell{padding:10px 0}.el-table--small{font-size:12px}.el-table--small .el-table__cell{padding:8px 0}.el-table--mini{font-size:12px}.el-table--mini .el-table__cell{padding:6px 0}.el-table tr{background-color:#FFF}.el-table tr input[type=checkbox]{margin:0}.el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{border-bottom:1px solid #EBEEF5}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#FFF}.el-table th.el-table__cell>.cell{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;vertical-align:middle;padding-left:10px;padding-right:10px;width:100%}.el-table th.el-table__cell>.cell.highlight{color:#409EFF}.el-table th.el-table__cell.required>div::before{display:inline-block;content:\"\";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.el-table td.el-table__cell div{-webkit-box-sizing:border-box;box-sizing:border-box}.el-date-table td,.el-table .cell,.el-table-filter{-webkit-box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding-left:10px;padding-right:10px}.el-table .cell.el-tooltip{white-space:nowrap;min-width:50px}.el-table--border,.el-table--group{border:1px solid #EBEEF5}.el-table--border::after,.el-table--group::after,.el-table::before{content:'';position:absolute;background-color:#EBEEF5;z-index:1}.el-table--border::after,.el-table--group::after{top:0;right:0;width:1px;height:100%}.el-table::before{left:0;bottom:0;width:100%;height:1px}.el-table--border{border-right:none;border-bottom:none}.el-table--border.el-loading-parent--relative{border-color:transparent}.el-table--border .el-table__cell,.el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed{border-right:1px solid #EBEEF5}.el-table--border .el-table__cell:first-child .cell{padding-left:10px}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:1px solid #EBEEF5;border-bottom-width:1px}.el-table--border th.el-table__cell,.el-table__fixed-right-patch{border-bottom:1px solid #EBEEF5}.el-table--hidden{visibility:hidden}.el-table__fixed,.el-table__fixed-right{position:absolute;top:0;left:0;overflow-x:hidden;overflow-y:hidden;-webkit-box-shadow:0 0 10px rgba(0,0,0,.12);box-shadow:0 0 10px rgba(0,0,0,.12)}.el-table__fixed-right::before,.el-table__fixed::before{content:'';position:absolute;left:0;bottom:0;width:100%;height:1px;background-color:#EBEEF5;z-index:4}.el-table__fixed-right-patch{position:absolute;top:-1px;right:0;background-color:#FFF}.el-table__fixed-right{top:0;left:auto;right:0}.el-table__fixed-right .el-table__fixed-body-wrapper,.el-table__fixed-right .el-table__fixed-footer-wrapper,.el-table__fixed-right .el-table__fixed-header-wrapper{left:auto;right:0}.el-table__fixed-header-wrapper{position:absolute;left:0;top:0;z-index:3}.el-table__fixed-footer-wrapper{position:absolute;left:0;bottom:0;z-index:3}.el-table__fixed-footer-wrapper tbody td.el-table__cell{border-top:1px solid #EBEEF5;background-color:#F5F7FA;color:#606266}.el-table__fixed-body-wrapper{position:absolute;left:0;top:37px;overflow:hidden;z-index:3}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__footer-wrapper{margin-top:-1px}.el-table__footer-wrapper td.el-table__cell{border-top:1px solid #EBEEF5}.el-table__body,.el-table__footer,.el-table__header{table-layout:fixed;border-collapse:separate}.el-table__footer-wrapper,.el-table__header-wrapper{overflow:hidden}.el-table__footer-wrapper tbody td.el-table__cell,.el-table__header-wrapper tbody td.el-table__cell{background-color:#F5F7FA;color:#606266}.el-table__body-wrapper{overflow:hidden;position:relative}.el-table__body-wrapper.is-scrolling-left~.el-table__fixed,.el-table__body-wrapper.is-scrolling-none~.el-table__fixed,.el-table__body-wrapper.is-scrolling-none~.el-table__fixed-right,.el-table__body-wrapper.is-scrolling-right~.el-table__fixed-right{-webkit-box-shadow:none;box-shadow:none}.el-table__body-wrapper .el-table--border.is-scrolling-right~.el-table__fixed-right{border-left:1px solid #EBEEF5}.el-table .caret-wrapper{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:34px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.el-table .sort-caret{width:0;height:0;border:5px solid transparent;position:absolute;left:7px}.el-table .sort-caret.ascending{border-bottom-color:#C0C4CC;top:5px}.el-table .sort-caret.descending{border-top-color:#C0C4CC;bottom:7px}.el-table .ascending .sort-caret.ascending{border-bottom-color:#409EFF}.el-table .descending .sort-caret.descending{border-top-color:#409EFF}.el-table .hidden-columns{visibility:hidden;position:absolute;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:#FAFAFA}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell,.el-table--striped .el-table__body tr.el-table__row--striped.selection-row td.el-table__cell{background-color:#ecf5ff}.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.selection-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row.selection-row>td.el-table__cell,.el-table__body tr.hover-row>td.el-table__cell{background-color:#F5F7FA}.el-table__body tr.current-row>td.el-table__cell,.el-table__body tr.selection-row>td.el-table__cell{background-color:#ecf5ff}.el-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:1px solid #EBEEF5;z-index:10}.el-table__column-filter-trigger{display:inline-block;line-height:34px;cursor:pointer}.el-table__column-filter-trigger i{color:#909399;font-size:12px;-webkit-transform:scale(.75);transform:scale(.75)}.el-table--enable-row-transition .el-table__body td.el-table__cell{-webkit-transition:background-color .25s ease;transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:#F5F7FA}.el-table--fluid-height .el-table__fixed,.el-table--fluid-height .el-table__fixed-right{bottom:0;overflow:hidden}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;width:20px;line-height:20px;height:20px;text-align:center;margin-right:3px}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:1px solid #EBEEF5;border-radius:2px;background-color:#FFF;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-sizing:border-box;margin:2px 0}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:14px}.el-table-filter__list-item:hover{background-color:#ecf5ff;color:#66b1ff}.el-table-filter__list-item.is-active{background-color:#409EFF;color:#FFF}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid #EBEEF5;padding:8px}.el-table-filter__bottom button{background:0 0;border:none;color:#606266;cursor:pointer;font-size:13px;padding:0 3px}.el-date-table td.in-range div,.el-date-table td.in-range div:hover,.el-date-table.is-week-mode .el-date-table__row.current div,.el-date-table.is-week-mode .el-date-table__row:hover div{background-color:#F2F6FC}.el-table-filter__bottom button:hover{color:#409EFF}.el-table-filter__bottom button:focus{outline:0}.el-table-filter__bottom button.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:block;margin-right:5px;margin-bottom:8px;margin-left:5px}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}.el-date-table{font-size:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-date-table.is-week-mode .el-date-table__row:hover td.available:hover{color:#606266}.el-date-table.is-week-mode .el-date-table__row:hover td:first-child div{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table.is-week-mode .el-date-table__row:hover td:last-child div{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table td{width:32px;height:30px;padding:4px 0;box-sizing:border-box;text-align:center;cursor:pointer;position:relative}.el-date-table td div{height:30px;padding:3px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-date-table td span{width:24px;height:24px;display:block;margin:0 auto;line-height:24px;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);border-radius:50%}.el-date-table td.next-month,.el-date-table td.prev-month{color:#C0C4CC}.el-date-table td.today{position:relative}.el-date-table td.today span{color:#409EFF;font-weight:700}.el-date-table td.today.end-date span,.el-date-table td.today.start-date span{color:#FFF}.el-date-table td.available:hover{color:#409EFF}.el-date-table td.current:not(.disabled) span{color:#FFF;background-color:#409EFF}.el-date-table td.end-date div,.el-date-table td.start-date div{color:#FFF}.el-date-table td.end-date span,.el-date-table td.start-date span{background-color:#409EFF}.el-date-table td.start-date div{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table td.end-date div{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table td.disabled div{background-color:#F5F7FA;opacity:1;cursor:not-allowed;color:#C0C4CC}.el-date-table td.selected div{margin-left:5px;margin-right:5px;background-color:#F2F6FC;border-radius:15px}.el-date-table td.selected div:hover{background-color:#F2F6FC}.el-date-table td.selected span{background-color:#409EFF;color:#FFF;border-radius:15px}.el-date-table td.week{font-size:80%;color:#606266}.el-month-table,.el-year-table{font-size:12px;border-collapse:collapse}.el-date-table th{padding:5px;color:#606266;font-weight:400;border-bottom:solid 1px #EBEEF5}.el-month-table{margin:-1px}.el-month-table td{text-align:center;padding:8px 0;cursor:pointer}.el-month-table td div{height:48px;padding:6px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-month-table td.today .cell{color:#409EFF;font-weight:700}.el-month-table td.today.end-date .cell,.el-month-table td.today.start-date .cell{color:#FFF}.el-month-table td.disabled .cell{background-color:#F5F7FA;cursor:not-allowed;color:#C0C4CC}.el-month-table td.disabled .cell:hover{color:#C0C4CC}.el-month-table td .cell{width:60px;height:36px;display:block;line-height:36px;color:#606266;margin:0 auto;border-radius:18px}.el-month-table td .cell:hover{color:#409EFF}.el-month-table td.in-range div,.el-month-table td.in-range div:hover{background-color:#F2F6FC}.el-month-table td.end-date div,.el-month-table td.start-date div{color:#FFF}.el-month-table td.end-date .cell,.el-month-table td.start-date .cell{color:#FFF;background-color:#409EFF}.el-month-table td.start-date div{border-top-left-radius:24px;border-bottom-left-radius:24px}.el-month-table td.end-date div{border-top-right-radius:24px;border-bottom-right-radius:24px}.el-month-table td.current:not(.disabled) .cell{color:#409EFF}.el-year-table{margin:-1px}.el-year-table .el-icon{color:#303133}.el-year-table td{text-align:center;padding:20px 3px;cursor:pointer}.el-year-table td.today .cell{color:#409EFF;font-weight:700}.el-year-table td.disabled .cell{background-color:#F5F7FA;cursor:not-allowed;color:#C0C4CC}.el-year-table td.disabled .cell:hover{color:#C0C4CC}.el-year-table td .cell{width:48px;height:32px;display:block;line-height:32px;color:#606266;margin:0 auto}.el-year-table td .cell:hover,.el-year-table td.current:not(.disabled) .cell{color:#409EFF}.el-date-range-picker{width:646px}.el-date-range-picker.has-sidebar{width:756px}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker__header{position:relative;text-align:center;height:28px}.el-date-range-picker__header [class*=arrow-left]{float:left}.el-date-range-picker__header [class*=arrow-right]{float:right}.el-date-range-picker__header div{font-size:16px;font-weight:500;margin-right:50px}.el-date-range-picker__content{float:left;width:50%;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:16px}.el-date-range-picker__content.is-left{border-right:1px solid #e4e4e4}.el-date-range-picker__content .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__editors-wrap{-webkit-box-sizing:border-box;box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{position:relative;border-bottom:1px solid #e4e4e4;font-size:12px;padding:8px 5px 5px;display:table;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.el-date-range-picker__time-header>.el-icon-arrow-right{font-size:20px;vertical-align:middle;display:table-cell;color:#303133}.el-date-range-picker__time-picker-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-range-picker__time-picker-wrap .el-picker-panel{position:absolute;top:13px;right:0;z-index:1;background:#FFF}.el-date-picker{width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-picker__time-header{position:relative;border-bottom:1px solid #e4e4e4;font-size:12px;padding:8px 5px 5px;display:table;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.el-date-picker__header{margin:12px;text-align:center}.el-date-picker__header--bordered{margin-bottom:0;padding-bottom:12px;border-bottom:solid 1px #EBEEF5}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{font-size:16px;font-weight:500;padding:0 5px;line-height:22px;text-align:center;cursor:pointer;color:#606266}.el-date-picker__header-label.active,.el-date-picker__header-label:hover{color:#409EFF}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{float:left;cursor:pointer;line-height:30px;margin-left:10px}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{max-height:200px;margin:0}.time-select-item{padding:8px 10px;font-size:14px;line-height:20px}.time-select-item.selected:not(.disabled){color:#409EFF;font-weight:700}.time-select-item.disabled{color:#E4E7ED;cursor:not-allowed}.time-select-item:hover{background-color:#F5F7FA;font-weight:700;cursor:pointer}.el-date-editor{position:relative;display:inline-block;text-align:left}.el-date-editor.el-input,.el-date-editor.el-input__inner{width:220px}.el-date-editor--monthrange.el-input,.el-date-editor--monthrange.el-input__inner{width:300px}.el-date-editor--daterange.el-input,.el-date-editor--daterange.el-input__inner,.el-date-editor--timerange.el-input,.el-date-editor--timerange.el-input__inner{width:350px}.el-date-editor--datetimerange.el-input,.el-date-editor--datetimerange.el-input__inner{width:400px}.el-date-editor--dates .el-input__inner{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .el-icon-circle-close{cursor:pointer}.el-date-editor .el-range__icon{font-size:14px;margin-left:-5px;color:#C0C4CC;float:left;line-height:32px}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:0;display:inline-block;height:100%;margin:0;padding:0;width:39%;text-align:center;font-size:14px;color:#606266}.el-date-editor .el-range-input::-webkit-input-placeholder{color:#C0C4CC}.el-date-editor .el-range-input:-ms-input-placeholder{color:#C0C4CC}.el-date-editor .el-range-input::-ms-input-placeholder{color:#C0C4CC}.el-date-editor .el-range-input::placeholder{color:#C0C4CC}.el-date-editor .el-range-separator{display:inline-block;height:100%;padding:0 5px;margin:0;text-align:center;line-height:32px;font-size:14px;width:5%;color:#303133}.el-date-editor .el-range__close-icon{font-size:14px;color:#C0C4CC;width:25px;display:inline-block;float:right;line-height:32px}.el-range-editor.el-input__inner{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:3px 10px}.el-range-editor .el-range-input{line-height:1}.el-range-editor--medium.el-input__inner{height:36px}.el-range-editor--medium .el-range-separator{line-height:28px;font-size:14px}.el-range-editor--medium .el-range-input{font-size:14px}.el-range-editor--medium .el-range__close-icon,.el-range-editor--medium .el-range__icon{line-height:28px}.el-range-editor--small.el-input__inner{height:32px}.el-range-editor--small .el-range-separator{line-height:24px;font-size:13px}.el-range-editor--small .el-range-input{font-size:13px}.el-range-editor--small .el-range__close-icon,.el-range-editor--small .el-range__icon{line-height:24px}.el-range-editor--mini.el-input__inner{height:28px}.el-range-editor--mini .el-range-separator{line-height:20px;font-size:12px}.el-range-editor--mini .el-range-input{font-size:12px}.el-range-editor--mini .el-range__close-icon,.el-range-editor--mini .el-range__icon{line-height:20px}.el-range-editor.is-disabled{background-color:#F5F7FA;border-color:#E4E7ED;color:#C0C4CC;cursor:not-allowed}.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:#E4E7ED}.el-range-editor.is-disabled input{background-color:#F5F7FA;color:#C0C4CC;cursor:not-allowed}.el-range-editor.is-disabled input::-webkit-input-placeholder{color:#C0C4CC}.el-range-editor.is-disabled input:-ms-input-placeholder{color:#C0C4CC}.el-range-editor.is-disabled input::-ms-input-placeholder{color:#C0C4CC}.el-range-editor.is-disabled input::placeholder{color:#C0C4CC}.el-range-editor.is-disabled .el-range-separator{color:#C0C4CC}.el-picker-panel{color:#606266;border:1px solid #E4E7ED;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);background:#FFF;border-radius:4px;line-height:30px;margin:5px 0}.el-picker-panel__body-wrapper::after,.el-picker-panel__body::after{content:\"\";display:table;clear:both}.el-picker-panel__content{position:relative;margin:15px}.el-picker-panel__footer{border-top:1px solid #e4e4e4;padding:4px;text-align:right;background-color:#FFF;position:relative;font-size:0}.el-picker-panel__shortcut{display:block;width:100%;border:0;background-color:transparent;line-height:28px;font-size:14px;color:#606266;padding-left:12px;text-align:left;outline:0;cursor:pointer}.el-picker-panel__shortcut:hover{color:#409EFF}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:#409EFF}.el-picker-panel__btn{border:1px solid #dcdcdc;color:#333;line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-picker-panel__btn[disabled]{color:#ccc;cursor:not-allowed}.el-picker-panel__icon-btn{font-size:12px;color:#303133;border:0;background:0 0;cursor:pointer;outline:0;margin-top:8px}.el-picker-panel__icon-btn:hover{color:#409EFF}.el-picker-panel__icon-btn.is-disabled{color:#bbb}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{position:absolute;top:0;bottom:0;width:110px;border-right:1px solid #e4e4e4;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:6px;background-color:#FFF;overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33.3%}.el-time-spinner__wrapper{max-height:190px;overflow:auto;display:inline-block;width:50%;vertical-align:top;position:relative}.el-time-spinner__wrapper .el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__input.el-input .el-input__inner,.el-time-spinner__list{padding:0;text-align:center}.el-time-spinner__wrapper.is-arrow{-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;overflow:hidden}.el-time-spinner__wrapper.is-arrow .el-time-spinner__list{-webkit-transform:translateY(-32px);transform:translateY(-32px)}.el-time-spinner__wrapper.is-arrow .el-time-spinner__item:hover:not(.disabled):not(.active){background:#FFF;cursor:default}.el-time-spinner__arrow{font-size:12px;color:#909399;position:absolute;left:0;width:100%;z-index:1;text-align:center;height:30px;line-height:30px;cursor:pointer}.el-time-spinner__arrow:hover{color:#409EFF}.el-time-spinner__arrow.el-icon-arrow-up{top:10px}.el-time-spinner__arrow.el-icon-arrow-down{bottom:10px}.el-time-spinner__input.el-input{width:70%}.el-time-spinner__list{margin:0;list-style:none}.el-time-spinner__list::after,.el-time-spinner__list::before{content:'';display:block;width:100%;height:80px}.el-time-spinner__item{height:32px;line-height:32px;font-size:12px;color:#606266}.el-time-spinner__item:hover:not(.disabled):not(.active){background:#F5F7FA;cursor:pointer}.el-time-spinner__item.active:not(.disabled){color:#303133;font-weight:700}.el-time-spinner__item.disabled{color:#C0C4CC;cursor:not-allowed}.el-time-panel{margin:5px 0;border:1px solid #E4E7ED;background-color:#FFF;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:2px;position:absolute;width:180px;left:0;z-index:1000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:content-box;box-sizing:content-box}.el-time-panel__content{font-size:0;position:relative;overflow:hidden}.el-time-panel__content::after,.el-time-panel__content::before{content:\"\";top:50%;position:absolute;margin-top:-15px;height:32px;z-index:-1;left:0;right:0;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:6px;text-align:left;border-top:1px solid #E4E7ED;border-bottom:1px solid #E4E7ED}.el-time-panel__content::after{left:50%;margin-left:12%;margin-right:12%}.el-time-panel__content::before{padding-left:50%;margin-right:12%;margin-left:12%}.el-time-panel__content.has-seconds::after{left:calc(100% / 3 * 2)}.el-time-panel__content.has-seconds::before{padding-left:calc(100% / 3)}.el-time-panel__footer{border-top:1px solid #e4e4e4;padding:4px;height:36px;line-height:25px;text-align:right;-webkit-box-sizing:border-box;box-sizing:border-box}.el-time-panel__btn{border:none;line-height:28px;padding:0 5px;margin:0 5px;cursor:pointer;background-color:transparent;outline:0;font-size:12px;color:#303133}.el-time-panel__btn.confirm{font-weight:800;color:#409EFF}.el-time-range-picker{width:354px;overflow:visible}.el-time-range-picker__content{position:relative;text-align:center;padding:10px}.el-time-range-picker__cell{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:4px 7px 7px;width:50%;display:inline-block}.el-time-range-picker__header{margin-bottom:5px;text-align:center;font-size:14px}.el-time-range-picker__body{border-radius:2px;border:1px solid #E4E7ED}.el-popover{position:absolute;background:#FFF;min-width:150px;border-radius:4px;border:1px solid #EBEEF5;padding:12px;z-index:2000;color:#606266;line-height:1.4;text-align:justify;font-size:14px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);word-break:break-all}.el-card.is-always-shadow,.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover,.el-cascader__dropdown,.el-color-picker__panel,.el-message-box,.el-notification{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-popover--plain{padding:18px 20px}.el-popover__title{color:#303133;font-size:16px;line-height:1;margin-bottom:12px}.el-popover:focus,.el-popover:focus:active,.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.v-modal-enter{-webkit-animation:v-modal-in .2s ease;animation:v-modal-in .2s ease}.v-modal-leave{-webkit-animation:v-modal-out .2s ease forwards;animation:v-modal-out .2s ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{100%{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:.5;background:#000}.el-popup-parent--hidden{overflow:hidden}.el-message-box{display:inline-block;width:420px;padding-bottom:10px;vertical-align:middle;background-color:#FFF;border-radius:4px;border:1px solid #EBEEF5;font-size:18px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.el-message-box__wrapper{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center}.el-message-box__wrapper::after{content:\"\";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box__header{position:relative;padding:15px 15px 10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:18px;line-height:1;color:#303133}.el-message-box__headerbtn{position:absolute;top:15px;right:15px;padding:0;border:none;outline:0;background:0 0;font-size:16px;cursor:pointer}.el-form-item.is-error .el-input__inner,.el-form-item.is-error .el-input__inner:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus,.el-message-box__input input.invalid,.el-message-box__input input.invalid:focus{border-color:#F56C6C}.el-message-box__headerbtn .el-message-box__close{color:#909399}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:#409EFF}.el-message-box__content{padding:10px 15px;color:#606266;font-size:14px}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__status{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:24px!important}.el-message-box__status::before{padding-left:1px}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px}.el-message-box__status.el-icon-success{color:#67C23A}.el-message-box__status.el-icon-info{color:#909399}.el-message-box__status.el-icon-warning{color:#E6A23C}.el-message-box__status.el-icon-error{color:#F56C6C}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:#F56C6C;font-size:12px;min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;text-align:right}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.el-message-box--center{padding-bottom:30px}.el-message-box--center .el-message-box__header{padding-top:30px}.el-message-box--center .el-message-box__title{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;-webkit-transform:translateY(-1px);transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__content{text-align:center}.el-message-box--center .el-message-box__content{padding-left:27px;padding-right:27px}.msgbox-fade-enter-active{-webkit-animation:msgbox-fade-in .3s;animation:msgbox-fade-in .3s}.msgbox-fade-leave-active{-webkit-animation:msgbox-fade-out .3s;animation:msgbox-fade-out .3s}@-webkit-keyframes msgbox-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@keyframes msgbox-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes msgbox-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}@keyframes msgbox-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb::after,.el-breadcrumb::before{display:table;content:\"\"}.el-breadcrumb::after{clear:both}.el-breadcrumb__separator{margin:0 9px;font-weight:700;color:#C0C4CC}.el-breadcrumb__separator[class*=icon]{margin:0 6px;font-weight:400}.el-breadcrumb__item{float:left}.el-breadcrumb__inner{color:#606266}.el-breadcrumb__inner a,.el-breadcrumb__inner.is-link{font-weight:700;text-decoration:none;-webkit-transition:color .2s cubic-bezier(.645,.045,.355,1);transition:color .2s cubic-bezier(.645,.045,.355,1);color:#303133}.el-breadcrumb__inner a:hover,.el-breadcrumb__inner.is-link:hover{color:#409EFF;cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{font-weight:400;color:#606266;cursor:text}.el-form--label-left .el-form-item__label{text-align:left}.el-form--label-top .el-form-item__label{float:none;display:inline-block;text-align:left;padding:0 0 10px}.el-form--inline .el-form-item{display:inline-block;margin-right:10px;vertical-align:top}.el-form--inline .el-form-item__label{float:none;display:inline-block}.el-form--inline .el-form-item__content{display:inline-block;vertical-align:top}.el-form--inline.el-form--label-top .el-form-item__content{display:block}.el-form-item{margin-bottom:22px}.el-form-item::after,.el-form-item::before{display:table;content:\"\"}.el-form-item::after{clear:both}.el-form-item .el-form-item{margin-bottom:0}.el-form-item--mini.el-form-item,.el-form-item--small.el-form-item{margin-bottom:18px}.el-form-item .el-input__validateIcon{display:none}.el-form-item--medium .el-form-item__content,.el-form-item--medium .el-form-item__label{line-height:36px}.el-form-item--small .el-form-item__content,.el-form-item--small .el-form-item__label{line-height:32px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item--mini .el-form-item__content,.el-form-item--mini .el-form-item__label{line-height:28px}.el-form-item--mini .el-form-item__error{padding-top:1px}.el-form-item__label-wrap{float:left}.el-form-item__label-wrap .el-form-item__label{display:inline-block;float:none}.el-form-item__label{text-align:right;vertical-align:middle;float:left;font-size:14px;color:#606266;line-height:40px;padding:0 12px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-form-item__content{line-height:40px;position:relative;font-size:14px}.el-form-item__content::after,.el-form-item__content::before{display:table;content:\"\"}.el-form-item__content::after{clear:both}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:#F56C6C;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before{content:'*';color:#F56C6C;margin-right:4px}.el-form-item.is-error .el-input-group__append .el-input__inner,.el-form-item.is-error .el-input-group__prepend .el-input__inner{border-color:transparent}.el-form-item.is-error .el-input__validateIcon{color:#F56C6C}.el-form-item--feedback .el-input__validateIcon{display:inline-block}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:#409EFF;z-index:1;-webkit-transition:-webkit-transform .3s cubic-bezier(.645,.045,.355,1);transition:-webkit-transform .3s cubic-bezier(.645,.045,.355,1);transition:transform .3s cubic-bezier(.645,.045,.355,1);transition:transform .3s cubic-bezier(.645,.045,.355,1),-webkit-transform .3s cubic-bezier(.645,.045,.355,1);list-style:none}.el-tabs__new-tab{float:right;border:1px solid #d3dce6;height:18px;width:18px;line-height:18px;margin:12px 0 9px 10px;border-radius:3px;text-align:center;font-size:12px;color:#d3dce6;cursor:pointer;-webkit-transition:all .15s;transition:all .15s}.el-tabs__new-tab .el-icon-plus{-webkit-transform:scale(.8,.8);transform:scale(.8,.8)}.el-tabs__new-tab:hover{color:#409EFF}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap::after{content:\"\";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:#E4E7ED;z-index:1}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:#909399}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{white-space:nowrap;position:relative;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;float:left;z-index:2}.el-tabs__nav.is-stretch{min-width:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.el-tabs__nav.is-stretch>*{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;line-height:40px;display:inline-block;list-style:none;font-size:14px;font-weight:500;color:#303133;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus.is-active.is-focus:not(:active){-webkit-box-shadow:0 0 2px 2px #409EFF inset;box-shadow:0 0 2px 2px #409EFF inset;border-radius:3px}.el-tabs__item .el-icon-close{border-radius:50%;text-align:center;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1);margin-left:5px}.el-tabs__item .el-icon-close:before{-webkit-transform:scale(.9);transform:scale(.9);display:inline-block}.el-tabs--card>.el-tabs__header .el-tabs__active-bar,.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left,.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs__item .el-icon-close:hover{background-color:#C0C4CC;color:#FFF}.el-tabs__item.is-active{color:#409EFF}.el-tabs__item:hover{color:#409EFF;cursor:pointer}.el-tabs__item.is-disabled{color:#C0C4CC;cursor:default}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid #E4E7ED}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap::after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid #E4E7ED;border-bottom:none;border-radius:4px 4px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__item .el-icon-close{position:relative;font-size:12px;width:0;height:14px;vertical-align:middle;line-height:15px;overflow:hidden;top:-1px;right:-2px;-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid #E4E7ED;-webkit-transition:color .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1);transition:color .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .el-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:#FFF}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .el-icon-close{width:14px}.el-tabs--border-card{background:#FFF;border:1px solid #DCDFE6;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.12),0 0 6px 0 rgba(0,0,0,.04);box-shadow:0 2px 4px 0 rgba(0,0,0,.12),0 0 6px 0 rgba(0,0,0,.04)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:#F5F7FA;border-bottom:1px solid #E4E7ED;margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap::after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1);border:1px solid transparent;margin-top:-1px;color:#909399}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item,.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-col-offset-0,.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:#409EFF;background-color:#FFF;border-right-color:#DCDFE6;border-left-color:#DCDFE6}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:#409EFF}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:#C0C4CC}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-cascader-menu:last-child .el-cascader-node,.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid #DCDFE6}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-top:-1px;margin-bottom:0}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{top:0;bottom:auto;width:2px;height:auto}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{-webkit-transform:rotateZ(90deg);transform:rotateZ(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{right:auto;bottom:0}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__nav-wrap.is-left::after{right:0;left:auto}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left::after,.el-tabs--left .el-tabs__nav-wrap.is-right::after,.el-tabs--right .el-tabs__nav-wrap.is-left::after,.el-tabs--right .el-tabs__nav-wrap.is-right::after{height:100%;width:2px;bottom:auto;top:0}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{float:none}.el-tabs--left .el-tabs__item.is-left,.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-right{display:block}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-button-group>.el-button:not(:last-child),.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-left:none;border-right:1px solid #E4E7ED;border-bottom:none;border-top:1px solid #E4E7ED;text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid #E4E7ED;border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid #E4E7ED;border-right-color:#fff;border-left:none;border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-radius:4px 0 0 4px;border-bottom:1px solid #E4E7ED;border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid #dfe4ed}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:#d1dbe5 transparent}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right::after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid #E4E7ED}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid #E4E7ED;border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid #E4E7ED;border-left-color:#fff;border-right:none;border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-radius:0 4px 4px 0;border-bottom:1px solid #E4E7ED;border-left:none}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid #dfe4ed}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:#d1dbe5 transparent}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter .3s;animation:slideInRight-enter .3s}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave .3s;animation:slideInRight-leave .3s}.slideInLeft-enter{-webkit-animation:slideInLeft-enter .3s;animation:slideInLeft-enter .3s}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave .3s;animation:slideInLeft-leave .3s}@-webkit-keyframes slideInRight-enter{0%{opacity:0;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes slideInRight-enter{0%{opacity:0;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes slideInRight-leave{0%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(100%);transform:translateX(100%);opacity:0}}@keyframes slideInRight-leave{0%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(100%);transform:translateX(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{opacity:1;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes slideInLeft-enter{0%{opacity:0;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{opacity:1;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes slideInLeft-leave{0%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(-100%);transform:translateX(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(-100%);transform:translateX(-100%);opacity:0}}.el-tree{position:relative;cursor:default;background:#FFF;color:#606266}.el-tree__empty-block{position:relative;min-height:60px;text-align:center;width:100%;height:100%}.el-tree__empty-text{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#909399;font-size:14px}.el-tree__drop-indicator{position:absolute;left:0;right:0;height:1px;background-color:#409EFF}.el-tree-node{white-space:nowrap;outline:0}.el-tree-node:focus>.el-tree-node__content{background-color:#F5F7FA}.el-tree-node.is-drop-inner>.el-tree-node__content .el-tree-node__label{background-color:#409EFF;color:#fff}.el-tree-node__content:hover,.el-upload-list__item:hover{background-color:#F5F7FA}.el-tree-node__content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:26px;cursor:pointer}.el-tree-node__content>.el-tree-node__expand-icon{padding:6px}.el-tree-node__content>label.el-checkbox{margin-right:8px}.el-tree.is-dragging .el-tree-node__content{cursor:move}.el-tree.is-dragging .el-tree-node__content *{pointer-events:none}.el-tree.is-dragging.is-drop-not-allow .el-tree-node__content{cursor:not-allowed}.el-tree-node__expand-icon{cursor:pointer;color:#C0C4CC;font-size:12px;-webkit-transform:rotate(0);transform:rotate(0);-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out,-webkit-transform .3s ease-in-out}.el-tree-node__expand-icon.expanded{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.el-tree-node__expand-icon.is-leaf{color:transparent;cursor:default}.el-tree-node__label{font-size:14px}.el-tree-node__loading-icon{margin-right:8px;font-size:14px;color:#C0C4CC}.el-tree-node>.el-tree-node__children{overflow:hidden;background-color:transparent}.el-tree-node.is-expanded>.el-tree-node__children{display:block}.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:#f0f7ff}.el-alert{width:100%;padding:8px 16px;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;position:relative;background-color:#FFF;overflow:hidden;opacity:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:opacity .2s;transition:opacity .2s}.el-alert.is-light .el-alert__closebtn{color:#C0C4CC}.el-alert.is-dark .el-alert__closebtn,.el-alert.is-dark .el-alert__description{color:#FFF}.el-alert.is-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-alert--success.is-light{background-color:#f0f9eb;color:#67C23A}.el-alert--success.is-light .el-alert__description{color:#67C23A}.el-alert--success.is-dark{background-color:#67C23A;color:#FFF}.el-alert--info.is-light{background-color:#f4f4f5;color:#909399}.el-alert--info.is-dark{background-color:#909399;color:#FFF}.el-alert--info .el-alert__description{color:#909399}.el-alert--warning.is-light{background-color:#fdf6ec;color:#E6A23C}.el-alert--warning.is-light .el-alert__description{color:#E6A23C}.el-alert--warning.is-dark{background-color:#E6A23C;color:#FFF}.el-alert--error.is-light{background-color:#fef0f0;color:#F56C6C}.el-alert--error.is-light .el-alert__description{color:#F56C6C}.el-alert--error.is-dark{background-color:#F56C6C;color:#FFF}.el-alert__content{display:table-cell;padding:0 8px}.el-alert__icon{font-size:16px;width:16px}.el-alert__icon.is-big{font-size:28px;width:28px}.el-alert__title{font-size:13px;line-height:18px}.el-alert__title.is-bold{font-weight:700}.el-alert .el-alert__description{font-size:12px;margin:5px 0 0}.el-alert__closebtn{font-size:12px;opacity:1;position:absolute;top:12px;right:15px;cursor:pointer}.el-alert-fade-enter,.el-alert-fade-leave-active,.el-loading-fade-enter,.el-loading-fade-leave-active,.el-notification-fade-leave-active,.el-upload iframe{opacity:0}.el-carousel__arrow--right,.el-notification.right{right:16px}.el-alert__closebtn.is-customed{font-style:normal;font-size:13px;top:9px}.el-notification{display:-webkit-box;display:-ms-flexbox;display:flex;width:330px;padding:14px 26px 14px 13px;border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #EBEEF5;position:fixed;background-color:#FFF;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);-webkit-transition:opacity .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;transition:opacity .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;overflow:hidden}.el-notification.left{left:16px}.el-notification__group{margin-left:13px;margin-right:8px}.el-notification__title{font-weight:700;font-size:16px;color:#303133;margin:0}.el-notification__content{font-size:14px;line-height:21px;margin:6px 0 0;color:#606266;text-align:justify}.el-notification__content p{margin:0}.el-notification__icon{height:24px;width:24px;font-size:24px}.el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:#909399;font-size:16px}.el-notification__closeBtn:hover{color:#606266}.el-notification .el-icon-success{color:#67C23A}.el-notification .el-icon-error{color:#F56C6C}.el-notification .el-icon-info{color:#909399}.el-notification .el-icon-warning{color:#E6A23C}.el-notification-fade-enter.right{right:0;-webkit-transform:translateX(100%);transform:translateX(100%)}.el-notification-fade-enter.left{left:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}.el-input-number{position:relative;display:inline-block;width:180px;line-height:38px}.el-input-number .el-input{display:block}.el-input-number .el-input__inner{-webkit-appearance:none;padding-left:50px;padding-right:50px;text-align:center}.el-input-number__decrease,.el-input-number__increase{position:absolute;z-index:1;top:1px;width:40px;height:auto;text-align:center;background:#F5F7FA;color:#606266;cursor:pointer;font-size:13px}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:#409EFF}.el-input-number__decrease:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled),.el-input-number__increase:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled){border-color:#409EFF}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-input-number__increase{right:1px;border-radius:0 4px 4px 0;border-left:1px solid #DCDFE6}.el-input-number__decrease{left:1px;border-radius:4px 0 0 4px;border-right:1px solid #DCDFE6}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:#E4E7ED;color:#E4E7ED}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:#E4E7ED;cursor:not-allowed}.el-input-number--medium{width:200px;line-height:34px}.el-input-number--medium .el-input-number__decrease,.el-input-number--medium .el-input-number__increase{width:36px;font-size:14px}.el-input-number--medium .el-input__inner{padding-left:43px;padding-right:43px}.el-input-number--small{width:130px;line-height:30px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{width:32px;font-size:13px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{-webkit-transform:scale(.9);transform:scale(.9)}.el-input-number--small .el-input__inner{padding-left:39px;padding-right:39px}.el-input-number--mini{width:130px;line-height:26px}.el-input-number--mini .el-input-number__decrease,.el-input-number--mini .el-input-number__increase{width:28px;font-size:12px}.el-input-number--mini .el-input-number__decrease [class*=el-icon],.el-input-number--mini .el-input-number__increase [class*=el-icon]{-webkit-transform:scale(.8);transform:scale(.8)}.el-input-number--mini .el-input__inner{padding-left:35px;padding-right:35px}.el-input-number.is-without-controls .el-input__inner{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__inner{padding-left:15px;padding-right:50px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{height:auto;line-height:19px}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{-webkit-transform:scale(.8);transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{border-radius:0 4px 0 0;border-bottom:1px solid #DCDFE6}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;bottom:1px;top:auto;left:auto;border-right:none;border-left:1px solid #DCDFE6;border-radius:0 0 4px}.el-input-number.is-controls-right[class*=medium] [class*=decrease],.el-input-number.is-controls-right[class*=medium] [class*=increase]{line-height:17px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{line-height:15px}.el-input-number.is-controls-right[class*=mini] [class*=decrease],.el-input-number.is-controls-right[class*=mini] [class*=increase]{line-height:13px}.el-tooltip:focus:hover,.el-tooltip:focus:not(.focusing){outline-width:0}.el-tooltip__popper{position:absolute;border-radius:4px;padding:10px;z-index:2000;font-size:12px;line-height:1.2;min-width:10px;word-wrap:break-word}.el-tooltip__popper .popper__arrow,.el-tooltip__popper .popper__arrow::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-tooltip__popper .popper__arrow{border-width:6px}.el-tooltip__popper .popper__arrow::after{content:\" \";border-width:5px}.el-button-group::after,.el-button-group::before,.el-color-dropdown__main-wrapper::after,.el-link.is-underline:hover:after,.el-page-header__left::after,.el-progress-bar__inner::after,.el-row::after,.el-row::before,.el-slider::after,.el-slider::before,.el-slider__button-wrapper::after,.el-transfer-panel .el-transfer-panel__footer::after,.el-upload-cover::after,.el-upload-list--picture-card .el-upload-list__item-actions::after{content:\"\"}.el-tooltip__popper[x-placement^=top]{margin-bottom:12px}.el-tooltip__popper[x-placement^=top] .popper__arrow{bottom:-6px;border-top-color:#303133;border-bottom-width:0}.el-tooltip__popper[x-placement^=top] .popper__arrow::after{bottom:1px;margin-left:-5px;border-top-color:#303133;border-bottom-width:0}.el-tooltip__popper[x-placement^=bottom]{margin-top:12px}.el-tooltip__popper[x-placement^=bottom] .popper__arrow{top:-6px;border-top-width:0;border-bottom-color:#303133}.el-tooltip__popper[x-placement^=bottom] .popper__arrow::after{top:1px;margin-left:-5px;border-top-width:0;border-bottom-color:#303133}.el-tooltip__popper[x-placement^=right]{margin-left:12px}.el-tooltip__popper[x-placement^=right] .popper__arrow{left:-6px;border-right-color:#303133;border-left-width:0}.el-tooltip__popper[x-placement^=right] .popper__arrow::after{bottom:-5px;left:1px;border-right-color:#303133;border-left-width:0}.el-tooltip__popper[x-placement^=left]{margin-right:12px}.el-tooltip__popper[x-placement^=left] .popper__arrow{right:-6px;border-right-width:0;border-left-color:#303133}.el-tooltip__popper[x-placement^=left] .popper__arrow::after{right:1px;bottom:-5px;margin-left:-5px;border-right-width:0;border-left-color:#303133}.el-tooltip__popper.is-dark{background:#303133;color:#FFF}.el-tooltip__popper.is-light{background:#FFF;border:1px solid #303133}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#303133}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow::after{border-top-color:#FFF}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#303133}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow::after{border-bottom-color:#FFF}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#303133}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow::after{border-left-color:#FFF}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#303133}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow::after{border-right-color:#FFF}.el-slider::after,.el-slider::before{display:table}.el-slider__button-wrapper .el-tooltip,.el-slider__button-wrapper::after{display:inline-block;vertical-align:middle}.el-slider::after{clear:both}.el-slider__runway{width:100%;height:6px;margin:16px 0;background-color:#E4E7ED;border-radius:3px;position:relative;cursor:pointer;vertical-align:middle}.el-slider__runway.show-input{margin-right:160px;width:auto}.el-slider__runway.disabled{cursor:default}.el-slider__runway.disabled .el-slider__bar{background-color:#C0C4CC}.el-slider__runway.disabled .el-slider__button{border-color:#C0C4CC}.el-slider__runway.disabled .el-slider__button-wrapper.dragging,.el-slider__runway.disabled .el-slider__button-wrapper.hover,.el-slider__runway.disabled .el-slider__button-wrapper:hover{cursor:not-allowed}.el-slider__runway.disabled .el-slider__button.dragging,.el-slider__runway.disabled .el-slider__button.hover,.el-slider__runway.disabled .el-slider__button:hover{-webkit-transform:scale(1);transform:scale(1);cursor:not-allowed}.el-slider__button-wrapper,.el-slider__stop{-webkit-transform:translateX(-50%);position:absolute}.el-slider__input{float:right;margin-top:3px;width:130px}.el-slider__input.el-input-number--mini{margin-top:5px}.el-slider__input.el-input-number--medium{margin-top:0}.el-slider__input.el-input-number--large{margin-top:-2px}.el-slider__bar{height:6px;background-color:#409EFF;border-top-left-radius:3px;border-bottom-left-radius:3px;position:absolute}.el-slider__button-wrapper{height:36px;width:36px;z-index:1001;top:-15px;transform:translateX(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal}.el-image-viewer__btn,.el-slider__button,.el-step__icon-inner{-moz-user-select:none;-ms-user-select:none}.el-slider__button-wrapper::after{height:100%}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button-wrapper.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__button{width:16px;height:16px;border:2px solid #409EFF;background-color:#FFF;border-radius:50%;-webkit-transition:.2s;transition:.2s;-webkit-user-select:none;user-select:none}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{-webkit-transform:scale(1.2);transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__stop{height:6px;width:6px;border-radius:100%;background-color:#FFF;transform:translateX(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);font-size:14px;color:#909399;margin-top:15px}.el-slider.is-vertical{position:relative}.el-slider.is-vertical .el-slider__runway{width:6px;height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:6px;height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:-15px;-webkit-transform:translateY(50%);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{-webkit-transform:translateY(50%);transform:translateY(50%)}.el-slider.is-vertical.el-slider--with-input{padding-bottom:58px}.el-slider.is-vertical.el-slider--with-input .el-slider__input{overflow:visible;float:none;position:absolute;bottom:22px;width:36px;margin-top:15px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input__inner{text-align:center;padding-left:5px;padding-right:5px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase{top:32px;margin-top:-1px;border:1px solid #DCDFE6;line-height:20px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:border-color .2s cubic-bezier(.645,.045,.355,1);transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__decrease{width:18px;right:18px;border-bottom-left-radius:4px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase{width:19px;border-bottom-right-radius:4px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase~.el-input .el-input__inner{border-bottom-left-radius:0;border-bottom-right-radius:0}.el-slider.is-vertical.el-slider--with-input .el-slider__input:hover .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input:hover .el-input-number__increase{border-color:#C0C4CC}.el-slider.is-vertical.el-slider--with-input .el-slider__input:active .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input:active .el-input-number__increase{border-color:#409EFF}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;-webkit-transform:translateY(50%);transform:translateY(50%)}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:rgba(255,255,255,.9);margin:0;top:0;right:0;bottom:0;left:0;-webkit-transition:opacity .3s;transition:opacity .3s}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:-25px}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:50px;width:50px}.el-loading-spinner{top:50%;margin-top:-21px;width:100%;text-align:center;position:absolute}.el-col-pull-0,.el-col-pull-1,.el-col-pull-10,.el-col-pull-11,.el-col-pull-12,.el-col-pull-13,.el-col-pull-14,.el-col-pull-15,.el-col-pull-16,.el-col-pull-17,.el-col-pull-18,.el-col-pull-19,.el-col-pull-2,.el-col-pull-20,.el-col-pull-21,.el-col-pull-22,.el-col-pull-23,.el-col-pull-24,.el-col-pull-3,.el-col-pull-4,.el-col-pull-5,.el-col-pull-6,.el-col-pull-7,.el-col-pull-8,.el-col-pull-9,.el-col-push-0,.el-col-push-1,.el-col-push-10,.el-col-push-11,.el-col-push-12,.el-col-push-13,.el-col-push-14,.el-col-push-15,.el-col-push-16,.el-col-push-17,.el-col-push-18,.el-col-push-19,.el-col-push-2,.el-col-push-20,.el-col-push-21,.el-col-push-22,.el-col-push-23,.el-col-push-24,.el-col-push-3,.el-col-push-4,.el-col-push-5,.el-col-push-6,.el-col-push-7,.el-col-push-8,.el-col-push-9,.el-row,.el-upload-dragger,.el-upload-list__item{position:relative}.el-loading-spinner .el-loading-text{color:#409EFF;margin:3px 0;font-size:14px}.el-loading-spinner .circular{height:42px;width:42px;-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:#409EFF;stroke-linecap:round}.el-loading-spinner i{color:#409EFF}@-webkit-keyframes loading-rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading-rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}100%{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}100%{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-row{-webkit-box-sizing:border-box;box-sizing:border-box}.el-row::after,.el-row::before{display:table}.el-row::after{clear:both}.el-row--flex{display:-webkit-box;display:-ms-flexbox;display:flex}.el-col-0,.el-row--flex:after,.el-row--flex:before{display:none}.el-row--flex.is-justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-row--flex.is-justify-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.el-row--flex.is-justify-space-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.el-row--flex.is-justify-space-around{-ms-flex-pack:distribute;justify-content:space-around}.el-row--flex.is-align-top{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.el-row--flex.is-align-middle{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-row--flex.is-align-bottom{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}[class*=el-col-]{float:left;-webkit-box-sizing:border-box;box-sizing:border-box}.el-col-0{width:0%}.el-col-pull-0{right:0}.el-col-push-0{left:0}.el-col-1{width:4.16667%}.el-col-offset-1{margin-left:4.16667%}.el-col-pull-1{right:4.16667%}.el-col-push-1{left:4.16667%}.el-col-2{width:8.33333%}.el-col-offset-2{margin-left:8.33333%}.el-col-pull-2{right:8.33333%}.el-col-push-2{left:8.33333%}.el-col-3{width:12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{right:12.5%}.el-col-push-3{left:12.5%}.el-col-4{width:16.66667%}.el-col-offset-4{margin-left:16.66667%}.el-col-pull-4{right:16.66667%}.el-col-push-4{left:16.66667%}.el-col-5{width:20.83333%}.el-col-offset-5{margin-left:20.83333%}.el-col-pull-5{right:20.83333%}.el-col-push-5{left:20.83333%}.el-col-6{width:25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{right:25%}.el-col-push-6{left:25%}.el-col-7{width:29.16667%}.el-col-offset-7{margin-left:29.16667%}.el-col-pull-7{right:29.16667%}.el-col-push-7{left:29.16667%}.el-col-8{width:33.33333%}.el-col-offset-8{margin-left:33.33333%}.el-col-pull-8{right:33.33333%}.el-col-push-8{left:33.33333%}.el-col-9{width:37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{right:37.5%}.el-col-push-9{left:37.5%}.el-col-10{width:41.66667%}.el-col-offset-10{margin-left:41.66667%}.el-col-pull-10{right:41.66667%}.el-col-push-10{left:41.66667%}.el-col-11{width:45.83333%}.el-col-offset-11{margin-left:45.83333%}.el-col-pull-11{right:45.83333%}.el-col-push-11{left:45.83333%}.el-col-12{width:50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{right:50%}.el-col-push-12{left:50%}.el-col-13{width:54.16667%}.el-col-offset-13{margin-left:54.16667%}.el-col-pull-13{right:54.16667%}.el-col-push-13{left:54.16667%}.el-col-14{width:58.33333%}.el-col-offset-14{margin-left:58.33333%}.el-col-pull-14{right:58.33333%}.el-col-push-14{left:58.33333%}.el-col-15{width:62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{right:62.5%}.el-col-push-15{left:62.5%}.el-col-16{width:66.66667%}.el-col-offset-16{margin-left:66.66667%}.el-col-pull-16{right:66.66667%}.el-col-push-16{left:66.66667%}.el-col-17{width:70.83333%}.el-col-offset-17{margin-left:70.83333%}.el-col-pull-17{right:70.83333%}.el-col-push-17{left:70.83333%}.el-col-18{width:75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{right:75%}.el-col-push-18{left:75%}.el-col-19{width:79.16667%}.el-col-offset-19{margin-left:79.16667%}.el-col-pull-19{right:79.16667%}.el-col-push-19{left:79.16667%}.el-col-20{width:83.33333%}.el-col-offset-20{margin-left:83.33333%}.el-col-pull-20{right:83.33333%}.el-col-push-20{left:83.33333%}.el-col-21{width:87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{right:87.5%}.el-col-push-21{left:87.5%}.el-col-22{width:91.66667%}.el-col-offset-22{margin-left:91.66667%}.el-col-pull-22{right:91.66667%}.el-col-push-22{left:91.66667%}.el-col-23{width:95.83333%}.el-col-offset-23{margin-left:95.83333%}.el-col-pull-23{right:95.83333%}.el-col-push-23{left:95.83333%}.el-col-24{width:100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{right:100%}.el-col-push-24{left:100%}@media only screen and (max-width:767px){.el-col-xs-0{display:none;width:0%}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{width:4.16667%}.el-col-xs-offset-1{margin-left:4.16667%}.el-col-xs-pull-1{position:relative;right:4.16667%}.el-col-xs-push-1{position:relative;left:4.16667%}.el-col-xs-2{width:8.33333%}.el-col-xs-offset-2{margin-left:8.33333%}.el-col-xs-pull-2{position:relative;right:8.33333%}.el-col-xs-push-2{position:relative;left:8.33333%}.el-col-xs-3{width:12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{width:16.66667%}.el-col-xs-offset-4{margin-left:16.66667%}.el-col-xs-pull-4{position:relative;right:16.66667%}.el-col-xs-push-4{position:relative;left:16.66667%}.el-col-xs-5{width:20.83333%}.el-col-xs-offset-5{margin-left:20.83333%}.el-col-xs-pull-5{position:relative;right:20.83333%}.el-col-xs-push-5{position:relative;left:20.83333%}.el-col-xs-6{width:25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{width:29.16667%}.el-col-xs-offset-7{margin-left:29.16667%}.el-col-xs-pull-7{position:relative;right:29.16667%}.el-col-xs-push-7{position:relative;left:29.16667%}.el-col-xs-8{width:33.33333%}.el-col-xs-offset-8{margin-left:33.33333%}.el-col-xs-pull-8{position:relative;right:33.33333%}.el-col-xs-push-8{position:relative;left:33.33333%}.el-col-xs-9{width:37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{width:41.66667%}.el-col-xs-offset-10{margin-left:41.66667%}.el-col-xs-pull-10{position:relative;right:41.66667%}.el-col-xs-push-10{position:relative;left:41.66667%}.el-col-xs-11{width:45.83333%}.el-col-xs-offset-11{margin-left:45.83333%}.el-col-xs-pull-11{position:relative;right:45.83333%}.el-col-xs-push-11{position:relative;left:45.83333%}.el-col-xs-12{width:50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{width:54.16667%}.el-col-xs-offset-13{margin-left:54.16667%}.el-col-xs-pull-13{position:relative;right:54.16667%}.el-col-xs-push-13{position:relative;left:54.16667%}.el-col-xs-14{width:58.33333%}.el-col-xs-offset-14{margin-left:58.33333%}.el-col-xs-pull-14{position:relative;right:58.33333%}.el-col-xs-push-14{position:relative;left:58.33333%}.el-col-xs-15{width:62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{width:66.66667%}.el-col-xs-offset-16{margin-left:66.66667%}.el-col-xs-pull-16{position:relative;right:66.66667%}.el-col-xs-push-16{position:relative;left:66.66667%}.el-col-xs-17{width:70.83333%}.el-col-xs-offset-17{margin-left:70.83333%}.el-col-xs-pull-17{position:relative;right:70.83333%}.el-col-xs-push-17{position:relative;left:70.83333%}.el-col-xs-18{width:75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{width:79.16667%}.el-col-xs-offset-19{margin-left:79.16667%}.el-col-xs-pull-19{position:relative;right:79.16667%}.el-col-xs-push-19{position:relative;left:79.16667%}.el-col-xs-20{width:83.33333%}.el-col-xs-offset-20{margin-left:83.33333%}.el-col-xs-pull-20{position:relative;right:83.33333%}.el-col-xs-push-20{position:relative;left:83.33333%}.el-col-xs-21{width:87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{width:91.66667%}.el-col-xs-offset-22{margin-left:91.66667%}.el-col-xs-pull-22{position:relative;right:91.66667%}.el-col-xs-push-22{position:relative;left:91.66667%}.el-col-xs-23{width:95.83333%}.el-col-xs-offset-23{margin-left:95.83333%}.el-col-xs-pull-23{position:relative;right:95.83333%}.el-col-xs-push-23{position:relative;left:95.83333%}.el-col-xs-24{width:100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width:768px){.el-col-sm-0{display:none;width:0%}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{width:4.16667%}.el-col-sm-offset-1{margin-left:4.16667%}.el-col-sm-pull-1{position:relative;right:4.16667%}.el-col-sm-push-1{position:relative;left:4.16667%}.el-col-sm-2{width:8.33333%}.el-col-sm-offset-2{margin-left:8.33333%}.el-col-sm-pull-2{position:relative;right:8.33333%}.el-col-sm-push-2{position:relative;left:8.33333%}.el-col-sm-3{width:12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{width:16.66667%}.el-col-sm-offset-4{margin-left:16.66667%}.el-col-sm-pull-4{position:relative;right:16.66667%}.el-col-sm-push-4{position:relative;left:16.66667%}.el-col-sm-5{width:20.83333%}.el-col-sm-offset-5{margin-left:20.83333%}.el-col-sm-pull-5{position:relative;right:20.83333%}.el-col-sm-push-5{position:relative;left:20.83333%}.el-col-sm-6{width:25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{width:29.16667%}.el-col-sm-offset-7{margin-left:29.16667%}.el-col-sm-pull-7{position:relative;right:29.16667%}.el-col-sm-push-7{position:relative;left:29.16667%}.el-col-sm-8{width:33.33333%}.el-col-sm-offset-8{margin-left:33.33333%}.el-col-sm-pull-8{position:relative;right:33.33333%}.el-col-sm-push-8{position:relative;left:33.33333%}.el-col-sm-9{width:37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{width:41.66667%}.el-col-sm-offset-10{margin-left:41.66667%}.el-col-sm-pull-10{position:relative;right:41.66667%}.el-col-sm-push-10{position:relative;left:41.66667%}.el-col-sm-11{width:45.83333%}.el-col-sm-offset-11{margin-left:45.83333%}.el-col-sm-pull-11{position:relative;right:45.83333%}.el-col-sm-push-11{position:relative;left:45.83333%}.el-col-sm-12{width:50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{width:54.16667%}.el-col-sm-offset-13{margin-left:54.16667%}.el-col-sm-pull-13{position:relative;right:54.16667%}.el-col-sm-push-13{position:relative;left:54.16667%}.el-col-sm-14{width:58.33333%}.el-col-sm-offset-14{margin-left:58.33333%}.el-col-sm-pull-14{position:relative;right:58.33333%}.el-col-sm-push-14{position:relative;left:58.33333%}.el-col-sm-15{width:62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{width:66.66667%}.el-col-sm-offset-16{margin-left:66.66667%}.el-col-sm-pull-16{position:relative;right:66.66667%}.el-col-sm-push-16{position:relative;left:66.66667%}.el-col-sm-17{width:70.83333%}.el-col-sm-offset-17{margin-left:70.83333%}.el-col-sm-pull-17{position:relative;right:70.83333%}.el-col-sm-push-17{position:relative;left:70.83333%}.el-col-sm-18{width:75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{width:79.16667%}.el-col-sm-offset-19{margin-left:79.16667%}.el-col-sm-pull-19{position:relative;right:79.16667%}.el-col-sm-push-19{position:relative;left:79.16667%}.el-col-sm-20{width:83.33333%}.el-col-sm-offset-20{margin-left:83.33333%}.el-col-sm-pull-20{position:relative;right:83.33333%}.el-col-sm-push-20{position:relative;left:83.33333%}.el-col-sm-21{width:87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{width:91.66667%}.el-col-sm-offset-22{margin-left:91.66667%}.el-col-sm-pull-22{position:relative;right:91.66667%}.el-col-sm-push-22{position:relative;left:91.66667%}.el-col-sm-23{width:95.83333%}.el-col-sm-offset-23{margin-left:95.83333%}.el-col-sm-pull-23{position:relative;right:95.83333%}.el-col-sm-push-23{position:relative;left:95.83333%}.el-col-sm-24{width:100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width:992px){.el-col-md-0{display:none;width:0%}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{width:4.16667%}.el-col-md-offset-1{margin-left:4.16667%}.el-col-md-pull-1{position:relative;right:4.16667%}.el-col-md-push-1{position:relative;left:4.16667%}.el-col-md-2{width:8.33333%}.el-col-md-offset-2{margin-left:8.33333%}.el-col-md-pull-2{position:relative;right:8.33333%}.el-col-md-push-2{position:relative;left:8.33333%}.el-col-md-3{width:12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{width:16.66667%}.el-col-md-offset-4{margin-left:16.66667%}.el-col-md-pull-4{position:relative;right:16.66667%}.el-col-md-push-4{position:relative;left:16.66667%}.el-col-md-5{width:20.83333%}.el-col-md-offset-5{margin-left:20.83333%}.el-col-md-pull-5{position:relative;right:20.83333%}.el-col-md-push-5{position:relative;left:20.83333%}.el-col-md-6{width:25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{width:29.16667%}.el-col-md-offset-7{margin-left:29.16667%}.el-col-md-pull-7{position:relative;right:29.16667%}.el-col-md-push-7{position:relative;left:29.16667%}.el-col-md-8{width:33.33333%}.el-col-md-offset-8{margin-left:33.33333%}.el-col-md-pull-8{position:relative;right:33.33333%}.el-col-md-push-8{position:relative;left:33.33333%}.el-col-md-9{width:37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{width:41.66667%}.el-col-md-offset-10{margin-left:41.66667%}.el-col-md-pull-10{position:relative;right:41.66667%}.el-col-md-push-10{position:relative;left:41.66667%}.el-col-md-11{width:45.83333%}.el-col-md-offset-11{margin-left:45.83333%}.el-col-md-pull-11{position:relative;right:45.83333%}.el-col-md-push-11{position:relative;left:45.83333%}.el-col-md-12{width:50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{width:54.16667%}.el-col-md-offset-13{margin-left:54.16667%}.el-col-md-pull-13{position:relative;right:54.16667%}.el-col-md-push-13{position:relative;left:54.16667%}.el-col-md-14{width:58.33333%}.el-col-md-offset-14{margin-left:58.33333%}.el-col-md-pull-14{position:relative;right:58.33333%}.el-col-md-push-14{position:relative;left:58.33333%}.el-col-md-15{width:62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{width:66.66667%}.el-col-md-offset-16{margin-left:66.66667%}.el-col-md-pull-16{position:relative;right:66.66667%}.el-col-md-push-16{position:relative;left:66.66667%}.el-col-md-17{width:70.83333%}.el-col-md-offset-17{margin-left:70.83333%}.el-col-md-pull-17{position:relative;right:70.83333%}.el-col-md-push-17{position:relative;left:70.83333%}.el-col-md-18{width:75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{width:79.16667%}.el-col-md-offset-19{margin-left:79.16667%}.el-col-md-pull-19{position:relative;right:79.16667%}.el-col-md-push-19{position:relative;left:79.16667%}.el-col-md-20{width:83.33333%}.el-col-md-offset-20{margin-left:83.33333%}.el-col-md-pull-20{position:relative;right:83.33333%}.el-col-md-push-20{position:relative;left:83.33333%}.el-col-md-21{width:87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{width:91.66667%}.el-col-md-offset-22{margin-left:91.66667%}.el-col-md-pull-22{position:relative;right:91.66667%}.el-col-md-push-22{position:relative;left:91.66667%}.el-col-md-23{width:95.83333%}.el-col-md-offset-23{margin-left:95.83333%}.el-col-md-pull-23{position:relative;right:95.83333%}.el-col-md-push-23{position:relative;left:95.83333%}.el-col-md-24{width:100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none;width:0%}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{width:4.16667%}.el-col-lg-offset-1{margin-left:4.16667%}.el-col-lg-pull-1{position:relative;right:4.16667%}.el-col-lg-push-1{position:relative;left:4.16667%}.el-col-lg-2{width:8.33333%}.el-col-lg-offset-2{margin-left:8.33333%}.el-col-lg-pull-2{position:relative;right:8.33333%}.el-col-lg-push-2{position:relative;left:8.33333%}.el-col-lg-3{width:12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{width:16.66667%}.el-col-lg-offset-4{margin-left:16.66667%}.el-col-lg-pull-4{position:relative;right:16.66667%}.el-col-lg-push-4{position:relative;left:16.66667%}.el-col-lg-5{width:20.83333%}.el-col-lg-offset-5{margin-left:20.83333%}.el-col-lg-pull-5{position:relative;right:20.83333%}.el-col-lg-push-5{position:relative;left:20.83333%}.el-col-lg-6{width:25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{width:29.16667%}.el-col-lg-offset-7{margin-left:29.16667%}.el-col-lg-pull-7{position:relative;right:29.16667%}.el-col-lg-push-7{position:relative;left:29.16667%}.el-col-lg-8{width:33.33333%}.el-col-lg-offset-8{margin-left:33.33333%}.el-col-lg-pull-8{position:relative;right:33.33333%}.el-col-lg-push-8{position:relative;left:33.33333%}.el-col-lg-9{width:37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{width:41.66667%}.el-col-lg-offset-10{margin-left:41.66667%}.el-col-lg-pull-10{position:relative;right:41.66667%}.el-col-lg-push-10{position:relative;left:41.66667%}.el-col-lg-11{width:45.83333%}.el-col-lg-offset-11{margin-left:45.83333%}.el-col-lg-pull-11{position:relative;right:45.83333%}.el-col-lg-push-11{position:relative;left:45.83333%}.el-col-lg-12{width:50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{width:54.16667%}.el-col-lg-offset-13{margin-left:54.16667%}.el-col-lg-pull-13{position:relative;right:54.16667%}.el-col-lg-push-13{position:relative;left:54.16667%}.el-col-lg-14{width:58.33333%}.el-col-lg-offset-14{margin-left:58.33333%}.el-col-lg-pull-14{position:relative;right:58.33333%}.el-col-lg-push-14{position:relative;left:58.33333%}.el-col-lg-15{width:62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{width:66.66667%}.el-col-lg-offset-16{margin-left:66.66667%}.el-col-lg-pull-16{position:relative;right:66.66667%}.el-col-lg-push-16{position:relative;left:66.66667%}.el-col-lg-17{width:70.83333%}.el-col-lg-offset-17{margin-left:70.83333%}.el-col-lg-pull-17{position:relative;right:70.83333%}.el-col-lg-push-17{position:relative;left:70.83333%}.el-col-lg-18{width:75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{width:79.16667%}.el-col-lg-offset-19{margin-left:79.16667%}.el-col-lg-pull-19{position:relative;right:79.16667%}.el-col-lg-push-19{position:relative;left:79.16667%}.el-col-lg-20{width:83.33333%}.el-col-lg-offset-20{margin-left:83.33333%}.el-col-lg-pull-20{position:relative;right:83.33333%}.el-col-lg-push-20{position:relative;left:83.33333%}.el-col-lg-21{width:87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{width:91.66667%}.el-col-lg-offset-22{margin-left:91.66667%}.el-col-lg-pull-22{position:relative;right:91.66667%}.el-col-lg-push-22{position:relative;left:91.66667%}.el-col-lg-23{width:95.83333%}.el-col-lg-offset-23{margin-left:95.83333%}.el-col-lg-pull-23{position:relative;right:95.83333%}.el-col-lg-push-23{position:relative;left:95.83333%}.el-col-lg-24{width:100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none;width:0%}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{position:relative;left:0}.el-col-xl-1{width:4.16667%}.el-col-xl-offset-1{margin-left:4.16667%}.el-col-xl-pull-1{position:relative;right:4.16667%}.el-col-xl-push-1{position:relative;left:4.16667%}.el-col-xl-2{width:8.33333%}.el-col-xl-offset-2{margin-left:8.33333%}.el-col-xl-pull-2{position:relative;right:8.33333%}.el-col-xl-push-2{position:relative;left:8.33333%}.el-col-xl-3{width:12.5%}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{position:relative;left:12.5%}.el-col-xl-4{width:16.66667%}.el-col-xl-offset-4{margin-left:16.66667%}.el-col-xl-pull-4{position:relative;right:16.66667%}.el-col-xl-push-4{position:relative;left:16.66667%}.el-col-xl-5{width:20.83333%}.el-col-xl-offset-5{margin-left:20.83333%}.el-col-xl-pull-5{position:relative;right:20.83333%}.el-col-xl-push-5{position:relative;left:20.83333%}.el-col-xl-6{width:25%}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{position:relative;left:25%}.el-col-xl-7{width:29.16667%}.el-col-xl-offset-7{margin-left:29.16667%}.el-col-xl-pull-7{position:relative;right:29.16667%}.el-col-xl-push-7{position:relative;left:29.16667%}.el-col-xl-8{width:33.33333%}.el-col-xl-offset-8{margin-left:33.33333%}.el-col-xl-pull-8{position:relative;right:33.33333%}.el-col-xl-push-8{position:relative;left:33.33333%}.el-col-xl-9{width:37.5%}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{position:relative;left:37.5%}.el-col-xl-10{width:41.66667%}.el-col-xl-offset-10{margin-left:41.66667%}.el-col-xl-pull-10{position:relative;right:41.66667%}.el-col-xl-push-10{position:relative;left:41.66667%}.el-col-xl-11{width:45.83333%}.el-col-xl-offset-11{margin-left:45.83333%}.el-col-xl-pull-11{position:relative;right:45.83333%}.el-col-xl-push-11{position:relative;left:45.83333%}.el-col-xl-12{width:50%}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{position:relative;left:50%}.el-col-xl-13{width:54.16667%}.el-col-xl-offset-13{margin-left:54.16667%}.el-col-xl-pull-13{position:relative;right:54.16667%}.el-col-xl-push-13{position:relative;left:54.16667%}.el-col-xl-14{width:58.33333%}.el-col-xl-offset-14{margin-left:58.33333%}.el-col-xl-pull-14{position:relative;right:58.33333%}.el-col-xl-push-14{position:relative;left:58.33333%}.el-col-xl-15{width:62.5%}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{position:relative;left:62.5%}.el-col-xl-16{width:66.66667%}.el-col-xl-offset-16{margin-left:66.66667%}.el-col-xl-pull-16{position:relative;right:66.66667%}.el-col-xl-push-16{position:relative;left:66.66667%}.el-col-xl-17{width:70.83333%}.el-col-xl-offset-17{margin-left:70.83333%}.el-col-xl-pull-17{position:relative;right:70.83333%}.el-col-xl-push-17{position:relative;left:70.83333%}.el-col-xl-18{width:75%}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{position:relative;left:75%}.el-col-xl-19{width:79.16667%}.el-col-xl-offset-19{margin-left:79.16667%}.el-col-xl-pull-19{position:relative;right:79.16667%}.el-col-xl-push-19{position:relative;left:79.16667%}.el-col-xl-20{width:83.33333%}.el-col-xl-offset-20{margin-left:83.33333%}.el-col-xl-pull-20{position:relative;right:83.33333%}.el-col-xl-push-20{position:relative;left:83.33333%}.el-col-xl-21{width:87.5%}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{position:relative;left:87.5%}.el-col-xl-22{width:91.66667%}.el-col-xl-offset-22{margin-left:91.66667%}.el-col-xl-pull-22{position:relative;right:91.66667%}.el-col-xl-push-22{position:relative;left:91.66667%}.el-col-xl-23{width:95.83333%}.el-col-xl-offset-23{margin-left:95.83333%}.el-col-xl-pull-23{position:relative;right:95.83333%}.el-col-xl-push-23{position:relative;left:95.83333%}.el-col-xl-24{width:100%}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{position:relative;left:100%}}@-webkit-keyframes progress{0%{background-position:0 0}100%{background-position:32px 0}}.el-upload{display:inline-block;text-align:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:#606266;margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;filter:alpha(opacity=0)}.el-upload--picture-card{background-color:#fbfdff;border:1px dashed #c0ccda;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;width:148px;height:148px;cursor:pointer;line-height:146px;vertical-align:top}.el-upload--picture-card i{font-size:28px;color:#8c939d}.el-upload--picture-card:hover,.el-upload:focus{border-color:#409EFF;color:#409EFF}.el-upload:focus .el-upload-dragger{border-color:#409EFF}.el-upload-dragger{background-color:#fff;border:1px dashed #d9d9d9;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;width:360px;height:180px;text-align:center;cursor:pointer;overflow:hidden}.el-upload-dragger .el-icon-upload{font-size:67px;color:#C0C4CC;margin:40px 0 16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:1px solid #DCDFE6;margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:#606266;font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:#409EFF;font-style:normal}.el-upload-dragger:hover{border-color:#409EFF}.el-upload-dragger.is-dragover{background-color:rgba(32,159,255,.06);border:2px dashed #409EFF}.el-upload-list{margin:0;padding:0;list-style:none}.el-upload-list__item{-webkit-transition:all .5s cubic-bezier(.55,0,.1,1);transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:#606266;line-height:1.8;margin-top:5px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item:first-child{margin-top:10px}.el-upload-list__item .el-icon-upload-success{color:#67C23A}.el-upload-list__item .el-icon-close{display:none;position:absolute;top:5px;right:5px;cursor:pointer;opacity:.75;color:#606266}.el-upload-list__item .el-icon-close:hover{opacity:1}.el-upload-list__item .el-icon-close-tip{display:none;position:absolute;top:5px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:#409EFF}.el-upload-list__item:hover .el-icon-close{display:inline-block}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:block}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:#409EFF;cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon-close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon-close-tip,.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label,.el-upload-list__item.is-success:not(.focusing):focus .el-icon-close-tip{display:none}.el-upload-list.is-disabled .el-upload-list__item:hover .el-upload-list__item-status-label{display:block}.el-upload-list__item-name{color:#606266;display:block;margin-right:40px;overflow:hidden;padding-left:4px;text-overflow:ellipsis;-webkit-transition:color .3s;transition:color .3s;white-space:nowrap}.el-upload-list__item-name [class^=el-icon]{height:100%;margin-right:7px;color:#909399;line-height:inherit}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:#606266;display:none}.el-upload-list__item-delete:hover{color:#409EFF}.el-upload-list--picture-card{margin:0;display:inline;vertical-align:top}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:#fff;border:1px solid #c0ccda;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;width:148px;height:148px;margin:0 8px 8px 0;display:inline-block}.el-upload-list--picture-card .el-upload-list__item .el-icon-check,.el-upload-list--picture-card .el-upload-list__item .el-icon-circle-check{color:#FFF}.el-upload-list--picture-card .el-upload-list__item .el-icon-close,.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%}.el-upload-list--picture-card .el-upload-list__item-status-label{position:absolute;right:-15px;top:-6px;width:40px;height:24px;background:#13ce66;text-align:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:0 0 1pc 1px rgba(0,0,0,.2);box-shadow:0 0 1pc 1px rgba(0,0,0,.2)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;text-align:center;color:#fff;opacity:0;font-size:20px;background-color:rgba(0,0,0,.5);-webkit-transition:opacity .3s;transition:opacity .3s}.el-upload-list--picture-card .el-upload-list__item-actions::after{display:inline-block;height:100%;vertical-align:middle}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:15px}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-block}.el-upload-list--picture-card .el-progress{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:#fff;border:1px solid #c0ccda;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:10px;padding:10px 10px 10px 90px;height:92px}.el-upload-list--picture .el-upload-list__item .el-icon-check,.el-upload-list--picture .el-upload-list__item .el-icon-circle-check{color:#FFF}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{background:0 0;-webkit-box-shadow:none;box-shadow:none;top:-2px;right:-12px}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name{line-height:70px;margin-top:0}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item-thumbnail{vertical-align:middle;display:inline-block;width:70px;height:70px;float:left;position:relative;z-index:1;margin-left:-80px;background-color:#FFF}.el-upload-list--picture .el-upload-list__item-name{display:block;margin-top:20px}.el-upload-list--picture .el-upload-list__item-name i{font-size:70px;line-height:1;position:absolute;left:9px;top:10px}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:#13ce66;text-align:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:0 1px 1px #ccc;box-shadow:0 1px 1px #ccc}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover::after{display:inline-block;height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{position:absolute;right:-15px;top:-6px;width:40px;height:24px;background:#13ce66;text-align:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:0 0 1pc 1px rgba(0,0,0,.2);box-shadow:0 0 1pc 1px rgba(0,0,0,.2)}.el-upload-cover__label i{font-size:12px;margin-top:11px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.72);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#FFF;font-size:14px;cursor:pointer;vertical-align:middle;-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);margin-top:60px}.el-upload-cover__interact .btn span{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{-webkit-transform:translateY(-13px);transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#FFF;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#FFF;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:#303133}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-progress{position:relative;line-height:1}.el-progress__text{font-size:14px;color:#606266;display:inline-block;vertical-align:middle;margin-left:10px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;-webkit-transform:translate(0,-50%);transform:translate(0,-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:#67C23A}.el-progress.is-success .el-progress__text{color:#67C23A}.el-progress.is-warning .el-progress-bar__inner{background-color:#E6A23C}.el-badge__content,.el-progress.is-exception .el-progress-bar__inner{background-color:#F56C6C}.el-progress.is-warning .el-progress__text{color:#E6A23C}.el-progress.is-exception .el-progress__text{color:#F56C6C}.el-progress-bar{padding-right:50px;display:inline-block;vertical-align:middle;width:100%;margin-right:-55px;-webkit-box-sizing:border-box;box-sizing:border-box}.el-card__header,.el-message,.el-step__icon{-webkit-box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:#EBEEF5;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:#409EFF;text-align:right;border-radius:100px;line-height:1;white-space:nowrap;-webkit-transition:width .6s ease;transition:width .6s ease}.el-progress-bar__inner::after{display:inline-block;height:100%;vertical-align:middle}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#FFF;font-size:12px;margin:0 5px}@keyframes progress{0%{background-position:0 0}100%{background-position:32px 0}}.el-time-spinner{width:100%;white-space:nowrap}.el-spinner{display:inline-block;vertical-align:middle}.el-spinner-inner{-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite;width:50px;height:50px}.el-spinner-inner .path{stroke:#ececec;stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}.el-message{min-width:380px;box-sizing:border-box;border-radius:4px;border-width:1px;border-style:solid;border-color:#EBEEF5;position:fixed;left:50%;top:20px;-webkit-transform:translateX(-50%);transform:translateX(-50%);background-color:#edf2fc;-webkit-transition:opacity .3s,top .4s,-webkit-transform .4s;transition:opacity .3s,top .4s,-webkit-transform .4s;transition:opacity .3s,transform .4s,top .4s;transition:opacity .3s,transform .4s,top .4s,-webkit-transform .4s;overflow:hidden;padding:15px 15px 15px 20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-message.is-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-message.is-closable .el-message__content{padding-right:16px}.el-message p{margin:0}.el-message--info .el-message__content{color:#909399}.el-message--success{background-color:#f0f9eb;border-color:#e1f3d8}.el-message--success .el-message__content{color:#67C23A}.el-message--warning{background-color:#fdf6ec;border-color:#faecd8}.el-message--warning .el-message__content{color:#E6A23C}.el-message--error{background-color:#fef0f0;border-color:#fde2e2}.el-message--error .el-message__content{color:#F56C6C}.el-message__icon{margin-right:10px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message__closeBtn{position:absolute;top:50%;right:15px;-webkit-transform:translateY(-50%);transform:translateY(-50%);cursor:pointer;color:#C0C4CC;font-size:16px}.el-message__closeBtn:focus{outline-width:0}.el-message__closeBtn:hover{color:#909399}.el-message .el-icon-success{color:#67C23A}.el-message .el-icon-error{color:#F56C6C}.el-message .el-icon-info{color:#909399}.el-message .el-icon-warning{color:#E6A23C}.el-message-fade-enter,.el-message-fade-leave-active{opacity:0;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.el-badge{position:relative;vertical-align:middle;display:inline-block}.el-badge__content{border-radius:10px;color:#FFF;display:inline-block;font-size:12px;height:18px;line-height:18px;padding:0 6px;text-align:center;white-space:nowrap;border:1px solid #FFF}.el-badge__content.is-fixed{position:absolute;top:0;right:10px;-webkit-transform:translateY(-50%) translateX(100%);transform:translateY(-50%) translateX(100%)}.el-rate__icon,.el-rate__item{position:relative;display:inline-block}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content--primary{background-color:#409EFF}.el-badge__content--success{background-color:#67C23A}.el-badge__content--warning{background-color:#E6A23C}.el-badge__content--info{background-color:#909399}.el-badge__content--danger{background-color:#F56C6C}.el-card{border-radius:4px;border:1px solid #EBEEF5;background-color:#FFF;overflow:hidden;color:#303133;-webkit-transition:.3s;transition:.3s}.el-card.is-always-shadow,.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-card__header{padding:18px 20px;border-bottom:1px solid #EBEEF5;box-sizing:border-box}.el-card__body,.el-main{padding:20px}.el-rate{height:20px;line-height:1}.el-rate:active,.el-rate:focus{outline-width:0}.el-rate__item{font-size:0;vertical-align:middle}.el-rate__icon{font-size:18px;margin-right:6px;color:#C0C4CC;-webkit-transition:.3s;transition:.3s}.el-rate__decimal,.el-rate__icon .path2{position:absolute;top:0;left:0}.el-rate__icon.hover{-webkit-transform:scale(1.15);transform:scale(1.15)}.el-rate__decimal{display:inline-block;overflow:hidden}.el-step.is-vertical,.el-steps{display:-webkit-box;display:-ms-flexbox}.el-rate__text{font-size:14px;vertical-align:middle}.el-steps{display:flex}.el-steps--simple{padding:13px 8%;border-radius:4px;background:#F5F7FA}.el-steps--horizontal{white-space:nowrap}.el-steps--vertical{height:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column}.el-step{position:relative;-ms-flex-negative:1;flex-shrink:1}.el-step:last-of-type .el-step__line{display:none}.el-step:last-of-type.is-flex{-ms-flex-preferred-size:auto!important;flex-basis:auto!important;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0}.el-step:last-of-type .el-step__description,.el-step:last-of-type .el-step__main{padding-right:0}.el-step__head{position:relative;width:100%}.el-step__head.is-process{color:#303133;border-color:#303133}.el-step__head.is-wait{color:#C0C4CC;border-color:#C0C4CC}.el-step__head.is-success{color:#67C23A;border-color:#67C23A}.el-step__head.is-error{color:#F56C6C;border-color:#F56C6C}.el-step__head.is-finish{color:#409EFF;border-color:#409EFF}.el-step__icon{position:relative;z-index:1;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:14px;box-sizing:border-box;background:#FFF;-webkit-transition:.15s ease-out;transition:.15s ease-out}.el-step.is-horizontal,.el-step__icon-inner{display:inline-block}.el-step__icon.is-text{border-radius:50%;border:2px solid;border-color:inherit}.el-step__icon.is-icon{width:40px}.el-step__icon-inner{-webkit-user-select:none;user-select:none;text-align:center;font-weight:700;line-height:1;color:inherit}.el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:25px;font-weight:400}.el-step__icon-inner.is-status{-webkit-transform:translateY(1px);transform:translateY(1px)}.el-step__line{position:absolute;border-color:inherit;background-color:#C0C4CC}.el-step__line-inner{display:block;border-width:1px;border-style:solid;border-color:inherit;-webkit-transition:.15s ease-out;transition:.15s ease-out;-webkit-box-sizing:border-box;box-sizing:border-box;width:0;height:0}.el-step__main{white-space:normal;text-align:left}.el-step__title{font-size:16px;line-height:38px}.el-step__title.is-process{font-weight:700;color:#303133}.el-step__title.is-wait{color:#C0C4CC}.el-step__title.is-success{color:#67C23A}.el-step__title.is-error{color:#F56C6C}.el-step__title.is-finish{color:#409EFF}.el-step__description{padding-right:10%;margin-top:-5px;font-size:12px;line-height:20px;font-weight:400}.el-step__description.is-process{color:#303133}.el-step__description.is-wait{color:#C0C4CC}.el-step__description.is-success{color:#67C23A}.el-step__description.is-error{color:#F56C6C}.el-step__description.is-finish{color:#409EFF}.el-step.is-horizontal .el-step__line{height:2px;top:11px;left:0;right:0}.el-step.is-vertical{display:flex}.el-step.is-vertical .el-step__head{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;width:24px}.el-step.is-vertical .el-step__main{padding-left:10px;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.el-step.is-vertical .el-step__title{line-height:24px;padding-bottom:8px}.el-step.is-vertical .el-step__line{width:2px;top:0;bottom:0;left:11px}.el-step.is-vertical .el-step__icon.is-icon{width:24px}.el-step.is-center .el-step__head,.el-step.is-center .el-step__main{text-align:center}.el-step.is-center .el-step__description{padding-left:20%;padding-right:20%}.el-step.is-center .el-step__line{left:50%;right:-50%}.el-step.is-simple{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-step.is-simple .el-step__head{width:auto;font-size:0;padding-right:10px}.el-step.is-simple .el-step__icon{background:0 0;width:16px;height:16px;font-size:12px}.el-step.is-simple .el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:18px}.el-step.is-simple .el-step__icon-inner.is-status{-webkit-transform:scale(.8) translateY(1px);transform:scale(.8) translateY(1px)}.el-step.is-simple .el-step__main{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.el-step.is-simple .el-step__title{font-size:16px;line-height:20px}.el-step.is-simple:not(:last-of-type) .el-step__title{max-width:50%;word-break:break-all}.el-step.is-simple .el-step__arrow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-step.is-simple .el-step__arrow::after,.el-step.is-simple .el-step__arrow::before{content:'';display:inline-block;position:absolute;height:15px;width:1px;background:#C0C4CC}.el-step.is-simple .el-step__arrow::before{-webkit-transform:rotate(-45deg) translateY(-4px);transform:rotate(-45deg) translateY(-4px);-webkit-transform-origin:0 0;transform-origin:0 0}.el-step.is-simple .el-step__arrow::after{-webkit-transform:rotate(45deg) translateY(4px);transform:rotate(45deg) translateY(4px);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}.el-step.is-simple:last-of-type .el-step__arrow{display:none}.el-carousel{position:relative}.el-carousel--horizontal{overflow-x:hidden}.el-carousel--vertical{overflow-y:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:36px;width:36px;cursor:pointer;-webkit-transition:.3s;transition:.3s;border-radius:50%;background-color:rgba(31,45,61,.11);color:#FFF;position:absolute;top:50%;z-index:10;-webkit-transform:translateY(-50%);transform:translateY(-50%);text-align:center;font-size:12px}.el-carousel__arrow--left{left:16px}.el-carousel__arrow:hover{background-color:rgba(31,45,61,.23)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{position:absolute;list-style:none;margin:0;padding:0;z-index:2}.el-carousel__indicators--horizontal{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:26px;text-align:center;position:static;-webkit-transform:none;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:#C0C4CC;opacity:.24}.el-carousel__indicators--labels{left:0;right:0;-webkit-transform:none;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:12px 4px}.el-carousel__indicator--vertical{padding:4px 12px}.el-carousel__indicator--vertical .el-carousel__button{width:2px;height:15px}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:30px;height:2px;background-color:#FFF;border:none;outline:0;padding:0;margin:0;cursor:pointer;-webkit-transition:.3s;transition:.3s}.el-carousel__item,.el-carousel__mask{height:100%;position:absolute;top:0;left:0}.carousel-arrow-left-enter,.carousel-arrow-left-leave-active{-webkit-transform:translateY(-50%) translateX(-10px);transform:translateY(-50%) translateX(-10px);opacity:0}.carousel-arrow-right-enter,.carousel-arrow-right-leave-active{-webkit-transform:translateY(-50%) translateX(10px);transform:translateY(-50%) translateX(10px);opacity:0}.el-carousel__item{width:100%;display:inline-block;overflow:hidden;z-index:0}.el-carousel__item.is-active{z-index:2}.el-carousel__item.is-animating{-webkit-transition:-webkit-transform .4s ease-in-out;transition:-webkit-transform .4s ease-in-out;transition:transform .4s ease-in-out;transition:transform .4s ease-in-out,-webkit-transform .4s ease-in-out}.el-carousel__item--card{width:50%;-webkit-transition:-webkit-transform .4s ease-in-out;transition:-webkit-transform .4s ease-in-out;transition:transform .4s ease-in-out;transition:transform .4s ease-in-out,-webkit-transform .4s ease-in-out}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:1}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:2}.el-carousel__mask{width:100%;background-color:#FFF;opacity:.24;-webkit-transition:.2s;transition:.2s}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.el-fade-in-enter,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45,.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.el-list-enter,.el-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.el-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.el-collapse{border-top:1px solid #EBEEF5;border-bottom:1px solid #EBEEF5}.el-collapse-item.is-disabled .el-collapse-item__header{color:#bbb;cursor:not-allowed}.el-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#FFF;color:#303133;cursor:pointer;border-bottom:1px solid #EBEEF5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.el-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:#409EFF}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{will-change:height;background-color:#FFF;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #EBEEF5}.el-cascader__search-input,.el-cascader__tags,.el-tag{-webkit-box-sizing:border-box}.el-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.769230769230769}.el-collapse-item:last-child{margin-bottom:-1px}.el-popper .popper__arrow,.el-popper .popper__arrow::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-cascader,.el-tag{display:inline-block}.el-popper .popper__arrow{border-width:6px;-webkit-filter:drop-shadow(0 2px 12px rgba(0, 0, 0, .03));filter:drop-shadow(0 2px 12px rgba(0, 0, 0, .03))}.el-popper .popper__arrow::after{content:\" \";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:12px}.el-popper[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#EBEEF5;border-bottom-width:0}.el-popper[x-placement^=top] .popper__arrow::after{bottom:1px;margin-left:-6px;border-top-color:#FFF;border-bottom-width:0}.el-popper[x-placement^=bottom]{margin-top:12px}.el-popper[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#EBEEF5}.el-popper[x-placement^=bottom] .popper__arrow::after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#FFF}.el-popper[x-placement^=right]{margin-left:12px}.el-popper[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#EBEEF5;border-left-width:0}.el-popper[x-placement^=right] .popper__arrow::after{bottom:-6px;left:1px;border-right-color:#FFF;border-left-width:0}.el-popper[x-placement^=left]{margin-right:12px}.el-popper[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#EBEEF5}.el-popper[x-placement^=left] .popper__arrow::after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#FFF}.el-tag{background-color:#ecf5ff;border-color:#d9ecff;height:32px;padding:0 10px;line-height:30px;font-size:12px;color:#409EFF;border-width:1px;border-style:solid;border-radius:4px;box-sizing:border-box;white-space:nowrap}.el-tag.is-hit{border-color:#409EFF}.el-tag .el-tag__close{color:#409eff}.el-tag .el-tag__close:hover{color:#FFF;background-color:#409eff}.el-tag.el-tag--info{background-color:#f4f4f5;border-color:#e9e9eb;color:#909399}.el-tag.el-tag--info.is-hit{border-color:#909399}.el-tag.el-tag--info .el-tag__close{color:#909399}.el-tag.el-tag--info .el-tag__close:hover{color:#FFF;background-color:#909399}.el-tag.el-tag--success{background-color:#f0f9eb;border-color:#e1f3d8;color:#67c23a}.el-tag.el-tag--success.is-hit{border-color:#67C23A}.el-tag.el-tag--success .el-tag__close{color:#67c23a}.el-tag.el-tag--success .el-tag__close:hover{color:#FFF;background-color:#67c23a}.el-tag.el-tag--warning{background-color:#fdf6ec;border-color:#faecd8;color:#e6a23c}.el-tag.el-tag--warning.is-hit{border-color:#E6A23C}.el-tag.el-tag--warning .el-tag__close{color:#e6a23c}.el-tag.el-tag--warning .el-tag__close:hover{color:#FFF;background-color:#e6a23c}.el-tag.el-tag--danger{background-color:#fef0f0;border-color:#fde2e2;color:#f56c6c}.el-tag.el-tag--danger.is-hit{border-color:#F56C6C}.el-tag.el-tag--danger .el-tag__close{color:#f56c6c}.el-tag.el-tag--danger .el-tag__close:hover{color:#FFF;background-color:#f56c6c}.el-tag .el-icon-close{border-radius:50%;text-align:center;position:relative;cursor:pointer;font-size:12px;height:16px;width:16px;line-height:16px;vertical-align:middle;top:-1px;right:-5px}.el-tag .el-icon-close::before{display:block}.el-tag--dark{background-color:#409eff;border-color:#409eff;color:#fff}.el-tag--dark.is-hit{border-color:#409EFF}.el-tag--dark .el-tag__close{color:#fff}.el-tag--dark .el-tag__close:hover{color:#FFF;background-color:#66b1ff}.el-tag--dark.el-tag--info{background-color:#909399;border-color:#909399;color:#fff}.el-tag--dark.el-tag--info.is-hit{border-color:#909399}.el-tag--dark.el-tag--info .el-tag__close{color:#fff}.el-tag--dark.el-tag--info .el-tag__close:hover{color:#FFF;background-color:#a6a9ad}.el-tag--dark.el-tag--success{background-color:#67c23a;border-color:#67c23a;color:#fff}.el-tag--dark.el-tag--success.is-hit{border-color:#67C23A}.el-tag--dark.el-tag--success .el-tag__close{color:#fff}.el-tag--dark.el-tag--success .el-tag__close:hover{color:#FFF;background-color:#85ce61}.el-tag--dark.el-tag--warning{background-color:#e6a23c;border-color:#e6a23c;color:#fff}.el-tag--dark.el-tag--warning.is-hit{border-color:#E6A23C}.el-tag--dark.el-tag--warning .el-tag__close{color:#fff}.el-tag--dark.el-tag--warning .el-tag__close:hover{color:#FFF;background-color:#ebb563}.el-tag--dark.el-tag--danger{background-color:#f56c6c;border-color:#f56c6c;color:#fff}.el-tag--dark.el-tag--danger.is-hit{border-color:#F56C6C}.el-tag--dark.el-tag--danger .el-tag__close{color:#fff}.el-tag--dark.el-tag--danger .el-tag__close:hover{color:#FFF;background-color:#f78989}.el-tag--plain{background-color:#fff;border-color:#b3d8ff;color:#409eff}.el-tag--plain.is-hit{border-color:#409EFF}.el-tag--plain .el-tag__close{color:#409eff}.el-tag--plain .el-tag__close:hover{color:#FFF;background-color:#409eff}.el-tag--plain.el-tag--info{background-color:#fff;border-color:#d3d4d6;color:#909399}.el-tag--plain.el-tag--info.is-hit{border-color:#909399}.el-tag--plain.el-tag--info .el-tag__close{color:#909399}.el-tag--plain.el-tag--info .el-tag__close:hover{color:#FFF;background-color:#909399}.el-tag--plain.el-tag--success{background-color:#fff;border-color:#c2e7b0;color:#67c23a}.el-tag--plain.el-tag--success.is-hit{border-color:#67C23A}.el-tag--plain.el-tag--success .el-tag__close{color:#67c23a}.el-tag--plain.el-tag--success .el-tag__close:hover{color:#FFF;background-color:#67c23a}.el-tag--plain.el-tag--warning{background-color:#fff;border-color:#f5dab1;color:#e6a23c}.el-tag--plain.el-tag--warning.is-hit{border-color:#E6A23C}.el-tag--plain.el-tag--warning .el-tag__close{color:#e6a23c}.el-tag--plain.el-tag--warning .el-tag__close:hover{color:#FFF;background-color:#e6a23c}.el-tag--plain.el-tag--danger{background-color:#fff;border-color:#fbc4c4;color:#f56c6c}.el-tag--plain.el-tag--danger.is-hit{border-color:#F56C6C}.el-tag--plain.el-tag--danger .el-tag__close{color:#f56c6c}.el-tag--plain.el-tag--danger .el-tag__close:hover{color:#FFF;background-color:#f56c6c}.el-tag--medium{height:28px;line-height:26px}.el-tag--medium .el-icon-close{-webkit-transform:scale(.8);transform:scale(.8)}.el-tag--small{height:24px;padding:0 8px;line-height:22px}.el-tag--small .el-icon-close{-webkit-transform:scale(.8);transform:scale(.8)}.el-tag--mini{height:20px;padding:0 5px;line-height:19px}.el-tag--mini .el-icon-close{margin-left:-3px;-webkit-transform:scale(.7);transform:scale(.7)}.el-cascader{position:relative;font-size:14px;line-height:40px}.el-cascader:not(.is-disabled):hover .el-input__inner{cursor:pointer;border-color:#C0C4CC}.el-cascader .el-input .el-input__inner:focus,.el-cascader .el-input.is-focus .el-input__inner{border-color:#409EFF}.el-cascader .el-input{cursor:pointer}.el-cascader .el-input .el-input__inner{text-overflow:ellipsis}.el-cascader .el-input .el-icon-arrow-down{-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-size:14px}.el-cascader .el-input .el-icon-arrow-down.is-reverse{-webkit-transform:rotateZ(180deg);transform:rotateZ(180deg)}.el-cascader .el-input .el-icon-circle-close:hover{color:#909399}.el-cascader--medium{font-size:14px;line-height:36px}.el-cascader--small{font-size:13px;line-height:32px}.el-cascader--mini{font-size:12px;line-height:28px}.el-cascader.is-disabled .el-cascader__label{z-index:2;color:#C0C4CC}.el-cascader__dropdown{margin:5px 0;font-size:14px;background:#FFF;border:1px solid #E4E7ED;border-radius:4px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-cascader__tags{position:absolute;left:0;right:30px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;line-height:normal;text-align:left;box-sizing:border-box}.el-cascader__tags .el-tag{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:#f0f2f5}.el-cascader__tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__tags .el-tag>span{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__tags .el-tag .el-icon-close{-webkit-box-flex:0;-ms-flex:none;flex:none;background-color:#C0C4CC;color:#FFF}.el-cascader__tags .el-tag .el-icon-close:hover{background-color:#909399}.el-cascader__suggestion-panel{border-radius:4px}.el-cascader__suggestion-list{max-height:204px;margin:0;padding:6px 0;font-size:14px;color:#606266;text-align:center}.el-cascader__suggestion-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:34px;padding:0 15px;text-align:left;outline:0;cursor:pointer}.el-cascader__suggestion-item:focus,.el-cascader__suggestion-item:hover{background:#F5F7FA}.el-cascader__suggestion-item.is-checked{color:#409EFF;font-weight:700}.el-cascader__suggestion-item>span{margin-right:10px}.el-cascader__empty-text{margin:10px 0;color:#C0C4CC}.el-cascader__search-input{-webkit-box-flex:1;-ms-flex:1;flex:1;height:24px;min-width:60px;margin:2px 0 2px 15px;padding:0;color:#606266;border:none;outline:0;box-sizing:border-box}.el-cascader__search-input::-webkit-input-placeholder{color:#C0C4CC}.el-cascader__search-input:-ms-input-placeholder{color:#C0C4CC}.el-cascader__search-input::-ms-input-placeholder{color:#C0C4CC}.el-cascader__search-input::placeholder{color:#C0C4CC}.el-color-predefine{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-wrap:wrap;flex-wrap:wrap}.el-color-predefine__color-selector{margin:0 0 8px 8px;width:20px;height:20px;border-radius:4px;cursor:pointer}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{-webkit-box-shadow:0 0 3px 2px #409EFF;box-shadow:0 0 3px 2px #409EFF}.el-color-predefine__color-selector>div{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;border-radius:3px}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px}.el-color-hue-slider__bar{position:relative;background:-webkit-gradient(linear,left top,right top,from(red),color-stop(17%,#ff0),color-stop(33%,#0f0),color-stop(50%,#0ff),color-stop(67%,#00f),color-stop(83%,#f0f),to(red));background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid #f0f0f0;-webkit-box-shadow:0 0 2px rgba(0,0,0,.6);box-shadow:0 0 2px rgba(0,0,0,.6);z-index:1}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:-webkit-gradient(linear,left top,left bottom,from(red),color-stop(17%,#ff0),color-stop(33%,#0f0),color-stop(50%,#0ff),color-stop(67%,#00f),color-stop(83%,#f0f),to(red));background:linear-gradient(to bottom,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:-webkit-gradient(linear,left top,right top,from(#fff),to(rgba(255,255,255,0)));background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.el-color-svpanel__black{background:-webkit-gradient(linear,left bottom,left top,from(#000),to(rgba(0,0,0,0)));background:linear-gradient(to top,#000,rgba(0,0,0,0))}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;-webkit-box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;-webkit-transform:translate(-2px,-2px);transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;width:280px;height:12px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-alpha-slider__bar{position:relative;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,0)),to(white));background:linear-gradient(to right,rgba(255,255,255,0) 0,#fff 100%);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid #f0f0f0;-webkit-box-shadow:0 0 2px rgba(0,0,0,.6);box-shadow:0 0 2px rgba(0,0,0,.6);z-index:1}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,0)),to(white));background:linear-gradient(to bottom,rgba(255,255,255,0) 0,#fff 100%)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper::after{display:table;clear:both}.el-color-dropdown__btns{margin-top:6px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#000;width:160px}.el-color-dropdown__btn{border:1px solid #dcdcdc;color:#333;line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-color-dropdown__btn[disabled]{color:#ccc;cursor:not-allowed}.el-color-dropdown__btn:hover{color:#409EFF;border-color:#409EFF}.el-color-dropdown__link-btn{cursor:pointer;color:#409EFF;text-decoration:none;padding:15px;font-size:12px}.el-color-dropdown__link-btn:hover{color:tint(#409EFF,20%)}.el-color-picker{display:inline-block;position:relative;line-height:normal;height:40px}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--medium{height:36px}.el-color-picker--medium .el-color-picker__trigger{height:36px;width:36px}.el-color-picker--medium .el-color-picker__mask{height:34px;width:34px}.el-color-picker--small{height:32px}.el-color-picker--small .el-color-picker__trigger{height:32px;width:32px}.el-color-picker--small .el-color-picker__mask{height:30px;width:30px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{-webkit-transform:translate3d(-50%,-50%,0) scale(.8);transform:translate3d(-50%,-50%,0) scale(.8)}.el-color-picker--mini{height:28px}.el-color-picker--mini .el-color-picker__trigger{height:28px;width:28px}.el-color-picker--mini .el-color-picker__mask{height:26px;width:26px}.el-color-picker--mini .el-color-picker__empty,.el-color-picker--mini .el-color-picker__icon{-webkit-transform:translate3d(-50%,-50%,0) scale(.8);transform:translate3d(-50%,-50%,0) scale(.8)}.el-color-picker__mask{height:38px;width:38px;border-radius:4px;position:absolute;top:1px;left:1px;z-index:1;cursor:not-allowed;background-color:rgba(255,255,255,.7)}.el-color-picker__trigger{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;height:40px;width:40px;padding:4px;border:1px solid #e6e6e6;border-radius:4px;font-size:0;position:relative;cursor:pointer}.el-color-picker__color{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #999;border-radius:2px;width:100%;height:100%;text-align:center}.el-color-picker__icon,.el-input,.el-textarea{display:inline-block;width:100%}.el-color-picker__color.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-picker__color-inner{position:absolute;left:0;top:0;right:0;bottom:0}.el-color-picker__empty{font-size:12px;color:#999;position:absolute;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.el-color-picker__icon{position:absolute;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);color:#FFF;text-align:center;font-size:12px}.el-input__prefix,.el-input__suffix{position:absolute;top:0;text-align:center}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;-webkit-box-sizing:content-box;box-sizing:content-box;background-color:#FFF;border:1px solid #EBEEF5;border-radius:4px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-input__inner,.el-textarea__inner,.el-transfer-panel{-webkit-box-sizing:border-box}.el-textarea{position:relative;vertical-align:bottom;font-size:14px}.el-textarea__inner{display:block;resize:vertical;padding:5px 15px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;color:#606266;background-color:#FFF;background-image:none;border:1px solid #DCDFE6;border-radius:4px;-webkit-transition:border-color .2s cubic-bezier(.645,.045,.355,1);transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.el-textarea__inner::-webkit-input-placeholder{color:#C0C4CC}.el-textarea__inner:-ms-input-placeholder{color:#C0C4CC}.el-textarea__inner::-ms-input-placeholder{color:#C0C4CC}.el-textarea__inner::placeholder{color:#C0C4CC}.el-textarea__inner:hover{border-color:#C0C4CC}.el-textarea__inner:focus{outline:0;border-color:#409EFF}.el-textarea .el-input__count{color:#909399;background:#FFF;position:absolute;font-size:12px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:#F5F7FA;border-color:#E4E7ED;color:#C0C4CC;cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-webkit-input-placeholder{color:#C0C4CC}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:#C0C4CC}.el-textarea.is-disabled .el-textarea__inner::-ms-input-placeholder{color:#C0C4CC}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:#C0C4CC}.el-textarea.is-exceed .el-textarea__inner{border-color:#F56C6C}.el-textarea.is-exceed .el-input__count{color:#F56C6C}.el-input{position:relative;font-size:14px}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:#b4bccc}.el-input::-webkit-scrollbar-corner{background:#fff}.el-input::-webkit-scrollbar-track{background:#fff}.el-input::-webkit-scrollbar-track-piece{background:#fff;width:6px}.el-input .el-input__clear{color:#C0C4CC;font-size:14px;cursor:pointer;-webkit-transition:color .2s cubic-bezier(.645,.045,.355,1);transition:color .2s cubic-bezier(.645,.045,.355,1)}.el-input .el-input__clear:hover{color:#909399}.el-input .el-input__count{height:100%;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#909399;font-size:12px}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input,.el-input__inner{font-size:inherit}.el-input .el-input__count .el-input__count-inner{background:#FFF;line-height:initial;display:inline-block;padding:0 5px}.el-input__inner{-webkit-appearance:none;background-color:#FFF;background-image:none;border-radius:4px;border:1px solid #DCDFE6;box-sizing:border-box;color:#606266;display:inline-block;height:40px;line-height:40px;outline:0;padding:0 15px;-webkit-transition:border-color .2s cubic-bezier(.645,.045,.355,1);transition:border-color .2s cubic-bezier(.645,.045,.355,1);width:100%}.el-input__inner::-ms-reveal{display:none}.el-input__inner::-webkit-input-placeholder{color:#C0C4CC}.el-input__inner:-ms-input-placeholder{color:#C0C4CC}.el-input__inner::-ms-input-placeholder{color:#C0C4CC}.el-input__inner::placeholder{color:#C0C4CC}.el-input__inner:hover{border-color:#C0C4CC}.el-input.is-active .el-input__inner,.el-input__inner:focus{border-color:#409EFF;outline:0}.el-input__suffix{height:100%;right:5px;transition:all .3s;pointer-events:none}.el-input__suffix-inner{pointer-events:all}.el-input__prefix{height:100%;left:5px;transition:all .3s}.el-input__icon{height:100%;width:25px;text-align:center;-webkit-transition:all .3s;transition:all .3s;line-height:40px}.el-input__icon:after{content:'';height:100%;width:0;display:inline-block;vertical-align:middle}.el-input__validateIcon{pointer-events:none}.el-input.is-disabled .el-input__inner{background-color:#F5F7FA;border-color:#E4E7ED;color:#C0C4CC;cursor:not-allowed}.el-input.is-disabled .el-input__inner::-webkit-input-placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__inner::-ms-input-placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__inner::placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-image-viewer__btn,.el-image__preview,.el-link,.el-transfer-panel__filter .el-icon-circle-close{cursor:pointer}.el-input.is-exceed .el-input__inner{border-color:#F56C6C}.el-input.is-exceed .el-input__suffix .el-input__count{color:#F56C6C}.el-input--suffix .el-input__inner{padding-right:30px}.el-input--prefix .el-input__inner{padding-left:30px}.el-input--medium{font-size:14px}.el-input--medium .el-input__inner{height:36px;line-height:36px}.el-input--medium .el-input__icon{line-height:36px}.el-input--small{font-size:13px}.el-input--small .el-input__inner{height:32px;line-height:32px}.el-input--small .el-input__icon{line-height:32px}.el-input--mini{font-size:12px}.el-input--mini .el-input__inner{height:28px;line-height:28px}.el-input--mini .el-input__icon{line-height:28px}.el-input-group{line-height:normal;display:inline-table;width:100%;border-collapse:separate;border-spacing:0}.el-input-group>.el-input__inner{vertical-align:middle;display:table-cell}.el-input-group__append,.el-input-group__prepend{background-color:#F5F7FA;color:#909399;vertical-align:middle;display:table-cell;position:relative;border:1px solid #DCDFE6;border-radius:4px;padding:0 20px;width:1px;white-space:nowrap}.el-input-group--append .el-input__inner,.el-input-group__prepend{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:-10px -20px}.el-input-group__append button.el-button,.el-input-group__append div.el-select .el-input__inner,.el-input-group__append div.el-select:hover .el-input__inner,.el-input-group__prepend button.el-button,.el-input-group__prepend div.el-select .el-input__inner,.el-input-group__prepend div.el-select:hover .el-input__inner{border-color:transparent;background-color:transparent;color:inherit;border-top:0;border-bottom:0}.el-input-group__prepend{border-right:0}.el-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--append .el-select .el-input.is-focus .el-input__inner,.el-input-group--prepend .el-select .el-input.is-focus .el-input__inner{border-color:transparent}.el-input-group--prepend .el-input__inner{border-top-left-radius:0;border-bottom-left-radius:0}.el-input__inner::-ms-clear{display:none;width:0;height:0}.el-transfer{font-size:14px}.el-transfer__buttons{display:inline-block;vertical-align:middle;padding:0 30px}.el-transfer__button{display:block;margin:0 auto;padding:10px;border-radius:50%;color:#FFF;background-color:#409EFF;font-size:0}.el-button-group>.el-button+.el-button,.el-transfer-panel__item+.el-transfer-panel__item,.el-transfer__button [class*=el-icon-]+span{margin-left:0}.el-divider__text,.el-image__error,.el-link,.el-timeline,.el-transfer__button i,.el-transfer__button span{font-size:14px}.el-transfer__button.is-with-texts{border-radius:4px}.el-transfer__button.is-disabled,.el-transfer__button.is-disabled:hover{border:1px solid #DCDFE6;background-color:#F5F7FA;color:#C0C4CC}.el-transfer__button:first-child{margin-bottom:10px}.el-transfer__button:nth-child(2){margin:0}.el-transfer-panel{border:1px solid #EBEEF5;border-radius:4px;overflow:hidden;background:#FFF;display:inline-block;vertical-align:middle;width:200px;max-height:100%;box-sizing:border-box;position:relative}.el-transfer-panel__body{height:246px}.el-transfer-panel__body.is-with-footer{padding-bottom:40px}.el-transfer-panel__list{margin:0;padding:6px 0;list-style:none;height:246px;overflow:auto;-webkit-box-sizing:border-box;box-sizing:border-box}.el-transfer-panel__list.is-filterable{height:194px;padding-top:0}.el-transfer-panel__item{height:30px;line-height:30px;padding-left:15px;display:block!important}.el-transfer-panel__item.el-checkbox{color:#606266}.el-transfer-panel__item:hover{color:#409EFF}.el-transfer-panel__item.el-checkbox .el-checkbox__label{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:24px;line-height:30px}.el-transfer-panel__item .el-checkbox__input{position:absolute;top:8px}.el-transfer-panel__filter{text-align:center;margin:15px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;width:auto}.el-transfer-panel__filter .el-input__inner{height:32px;width:100%;font-size:12px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:16px;padding-right:10px;padding-left:30px}.el-transfer-panel__filter .el-input__icon{margin-left:5px}.el-transfer-panel .el-transfer-panel__header{height:40px;line-height:40px;background:#F5F7FA;margin:0;padding-left:15px;border-bottom:1px solid #EBEEF5;-webkit-box-sizing:border-box;box-sizing:border-box;color:#000}.el-container,.el-header{-webkit-box-sizing:border-box}.el-transfer-panel .el-transfer-panel__header .el-checkbox{display:block;line-height:40px}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label{font-size:16px;color:#303133;font-weight:400}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label span{position:absolute;right:15px;color:#909399;font-size:12px;font-weight:400}.el-transfer-panel .el-transfer-panel__footer{height:40px;background:#FFF;margin:0;padding:0;border-top:1px solid #EBEEF5;position:absolute;bottom:0;left:0;width:100%;z-index:1}.el-transfer-panel .el-transfer-panel__footer::after{display:inline-block;height:100%;vertical-align:middle}.el-container,.el-timeline-item__node{display:-webkit-box;display:-ms-flexbox}.el-transfer-panel .el-transfer-panel__footer .el-checkbox{padding-left:20px;color:#606266}.el-transfer-panel .el-transfer-panel__empty{margin:0;height:30px;line-height:30px;padding:6px 15px 0;color:#909399;text-align:center}.el-transfer-panel .el-checkbox__label{padding-left:8px}.el-transfer-panel .el-checkbox__inner{height:14px;width:14px;border-radius:3px}.el-transfer-panel .el-checkbox__inner::after{height:6px;width:3px;left:4px}.el-container{display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-preferred-size:auto;flex-basis:auto;box-sizing:border-box;min-width:0}.el-container.is-vertical,.el-drawer,.el-empty,.el-result{-webkit-box-orient:vertical;-webkit-box-direction:normal}.el-container.is-vertical{-ms-flex-direction:column;flex-direction:column}.el-header{padding:0 20px;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0}.el-aside{overflow:auto;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0}.el-main{display:block;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-preferred-size:auto;flex-basis:auto;overflow:auto;-webkit-box-sizing:border-box;box-sizing:border-box}.el-footer{padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0}.el-timeline{margin:0;list-style:none}.el-timeline .el-timeline-item:last-child .el-timeline-item__tail{display:none}.el-timeline-item{position:relative;padding-bottom:20px}.el-timeline-item__wrapper{position:relative;padding-left:28px;top:-3px}.el-timeline-item__tail{position:absolute;left:4px;height:100%;border-left:2px solid #E4E7ED}.el-timeline-item__icon{color:#FFF;font-size:13px}.el-timeline-item__node{position:absolute;background-color:#E4E7ED;border-radius:50%;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-image__error,.el-timeline-item__dot{display:-webkit-box;display:-ms-flexbox}.el-timeline-item__node--normal{left:-1px;width:12px;height:12px}.el-timeline-item__node--large{left:-2px;width:14px;height:14px}.el-timeline-item__node--primary{background-color:#409EFF}.el-timeline-item__node--success{background-color:#67C23A}.el-timeline-item__node--warning{background-color:#E6A23C}.el-timeline-item__node--danger{background-color:#F56C6C}.el-timeline-item__node--info{background-color:#909399}.el-timeline-item__dot{position:absolute;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-timeline-item__content{color:#303133}.el-timeline-item__timestamp{color:#909399;line-height:1;font-size:13px}.el-timeline-item__timestamp.is-top{margin-bottom:8px;padding-top:4px}.el-timeline-item__timestamp.is-bottom{margin-top:8px}.el-link{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;vertical-align:middle;position:relative;text-decoration:none;outline:0;padding:0;font-weight:500}.el-link.is-underline:hover:after{position:absolute;left:0;right:0;height:0;bottom:0;border-bottom:1px solid #409EFF}.el-link.el-link--default:after,.el-link.el-link--primary.is-underline:hover:after,.el-link.el-link--primary:after{border-color:#409EFF}.el-link.is-disabled{cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default{color:#606266}.el-link.el-link--default:hover{color:#409EFF}.el-link.el-link--default.is-disabled{color:#C0C4CC}.el-link.el-link--primary{color:#409EFF}.el-link.el-link--primary:hover{color:#66b1ff}.el-link.el-link--primary.is-disabled{color:#a0cfff}.el-link.el-link--danger.is-underline:hover:after,.el-link.el-link--danger:after{border-color:#F56C6C}.el-link.el-link--danger{color:#F56C6C}.el-link.el-link--danger:hover{color:#f78989}.el-link.el-link--danger.is-disabled{color:#fab6b6}.el-link.el-link--success.is-underline:hover:after,.el-link.el-link--success:after{border-color:#67C23A}.el-link.el-link--success{color:#67C23A}.el-link.el-link--success:hover{color:#85ce61}.el-link.el-link--success.is-disabled{color:#b3e19d}.el-link.el-link--warning.is-underline:hover:after,.el-link.el-link--warning:after{border-color:#E6A23C}.el-link.el-link--warning{color:#E6A23C}.el-link.el-link--warning:hover{color:#ebb563}.el-link.el-link--warning.is-disabled{color:#f3d19e}.el-link.el-link--info.is-underline:hover:after,.el-link.el-link--info:after{border-color:#909399}.el-link.el-link--info{color:#909399}.el-link.el-link--info:hover{color:#a6a9ad}.el-link.el-link--info.is-disabled{color:#c8c9cc}.el-divider{background-color:#DCDFE6;position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative}.el-divider__text{position:absolute;background-color:#FFF;padding:0 20px;font-weight:500;color:#303133}.el-image__error,.el-image__placeholder{background:#F5F7FA}.el-divider__text.is-left{left:20px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.el-divider__text.is-center{left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.el-image__error,.el-image__inner,.el-image__placeholder{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top}.el-image__inner--center{position:relative;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:block}.el-image__error{display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#C0C4CC;vertical-align:middle}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:50%;opacity:.8;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;user-select:none}.el-button,.el-checkbox,.el-checkbox-button__inner,.el-empty__image img,.el-radio{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:24px;color:#fff;background-color:#606266}.el-image-viewer__canvas{width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-image-viewer__actions{left:50%;bottom:30px;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:282px;height:44px;padding:0 23px;background-color:#606266;border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.el-image-viewer__next,.el-image-viewer__prev{width:44px;height:44px;font-size:24px;color:#fff;background-color:#606266;border-color:#fff;top:50%}.el-image-viewer__prev{-webkit-transform:translateY(-50%);transform:translateY(-50%);left:40px}.el-image-viewer__next{-webkit-transform:translateY(-50%);transform:translateY(-50%);right:40px;text-indent:2px}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in .3s;animation:viewer-fade-in .3s}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out .3s;animation:viewer-fade-out .3s}@-webkit-keyframes viewer-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@keyframes viewer-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}.el-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#FFF;border:1px solid #DCDFE6;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;margin:0;-webkit-transition:.1s;transition:.1s;font-weight:500;padding:12px 20px;font-size:14px;border-radius:4px}.el-button+.el-button,.el-checkbox.is-bordered+.el-checkbox.is-bordered{margin-left:10px}.el-button:focus,.el-button:hover{color:#409EFF;border-color:#c6e2ff;background-color:#ecf5ff}.el-button:active{color:#3a8ee6;border-color:#3a8ee6;outline:0}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon-]+span{margin-left:5px}.el-button.is-plain:focus,.el-button.is-plain:hover{background:#FFF;border-color:#409EFF;color:#409EFF}.el-button.is-active,.el-button.is-plain:active{color:#3a8ee6;border-color:#3a8ee6}.el-button.is-plain:active{background:#FFF;outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:#C0C4CC;cursor:not-allowed;background-image:none;background-color:#FFF;border-color:#EBEEF5}.el-button.is-disabled.el-button--text{background-color:transparent}.el-button.is-disabled.is-plain,.el-button.is-disabled.is-plain:focus,.el-button.is-disabled.is-plain:hover{background-color:#FFF;border-color:#EBEEF5;color:#C0C4CC}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{pointer-events:none;content:'';position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:rgba(255,255,255,.35)}.el-button.is-round{border-radius:20px;padding:12px 23px}.el-button.is-circle{border-radius:50%;padding:12px}.el-button--primary{color:#FFF;background-color:#409EFF;border-color:#409EFF}.el-button--primary:focus,.el-button--primary:hover{background:#66b1ff;border-color:#66b1ff;color:#FFF}.el-button--primary.is-active,.el-button--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#FFF}.el-button--primary:active{outline:0}.el-button--primary.is-disabled,.el-button--primary.is-disabled:active,.el-button--primary.is-disabled:focus,.el-button--primary.is-disabled:hover{color:#FFF;background-color:#a0cfff;border-color:#a0cfff}.el-button--primary.is-plain{color:#409EFF;background:#ecf5ff;border-color:#b3d8ff}.el-button--primary.is-plain:focus,.el-button--primary.is-plain:hover{background:#409EFF;border-color:#409EFF;color:#FFF}.el-button--primary.is-plain:active{background:#3a8ee6;border-color:#3a8ee6;color:#FFF;outline:0}.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover{color:#8cc5ff;background-color:#ecf5ff;border-color:#d9ecff}.el-button--success{color:#FFF;background-color:#67C23A;border-color:#67C23A}.el-button--success:focus,.el-button--success:hover{background:#85ce61;border-color:#85ce61;color:#FFF}.el-button--success.is-active,.el-button--success:active{background:#5daf34;border-color:#5daf34;color:#FFF}.el-button--success:active{outline:0}.el-button--success.is-disabled,.el-button--success.is-disabled:active,.el-button--success.is-disabled:focus,.el-button--success.is-disabled:hover{color:#FFF;background-color:#b3e19d;border-color:#b3e19d}.el-button--success.is-plain{color:#67C23A;background:#f0f9eb;border-color:#c2e7b0}.el-button--success.is-plain:focus,.el-button--success.is-plain:hover{background:#67C23A;border-color:#67C23A;color:#FFF}.el-button--success.is-plain:active{background:#5daf34;border-color:#5daf34;color:#FFF;outline:0}.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover{color:#a4da89;background-color:#f0f9eb;border-color:#e1f3d8}.el-button--warning{color:#FFF;background-color:#E6A23C;border-color:#E6A23C}.el-button--warning:focus,.el-button--warning:hover{background:#ebb563;border-color:#ebb563;color:#FFF}.el-button--warning.is-active,.el-button--warning:active{background:#cf9236;border-color:#cf9236;color:#FFF}.el-button--warning:active{outline:0}.el-button--warning.is-disabled,.el-button--warning.is-disabled:active,.el-button--warning.is-disabled:focus,.el-button--warning.is-disabled:hover{color:#FFF;background-color:#f3d19e;border-color:#f3d19e}.el-button--warning.is-plain{color:#E6A23C;background:#fdf6ec;border-color:#f5dab1}.el-button--warning.is-plain:focus,.el-button--warning.is-plain:hover{background:#E6A23C;border-color:#E6A23C;color:#FFF}.el-button--warning.is-plain:active{background:#cf9236;border-color:#cf9236;color:#FFF;outline:0}.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover{color:#f0c78a;background-color:#fdf6ec;border-color:#faecd8}.el-button--danger{color:#FFF;background-color:#F56C6C;border-color:#F56C6C}.el-button--danger:focus,.el-button--danger:hover{background:#f78989;border-color:#f78989;color:#FFF}.el-button--danger.is-active,.el-button--danger:active{background:#dd6161;border-color:#dd6161;color:#FFF}.el-button--danger:active{outline:0}.el-button--danger.is-disabled,.el-button--danger.is-disabled:active,.el-button--danger.is-disabled:focus,.el-button--danger.is-disabled:hover{color:#FFF;background-color:#fab6b6;border-color:#fab6b6}.el-button--danger.is-plain{color:#F56C6C;background:#fef0f0;border-color:#fbc4c4}.el-button--danger.is-plain:focus,.el-button--danger.is-plain:hover{background:#F56C6C;border-color:#F56C6C;color:#FFF}.el-button--danger.is-plain:active{background:#dd6161;border-color:#dd6161;color:#FFF;outline:0}.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover{color:#f9a7a7;background-color:#fef0f0;border-color:#fde2e2}.el-button--info{color:#FFF;background-color:#909399;border-color:#909399}.el-button--info:focus,.el-button--info:hover{background:#a6a9ad;border-color:#a6a9ad;color:#FFF}.el-button--info.is-active,.el-button--info:active{background:#82848a;border-color:#82848a;color:#FFF}.el-button--info:active{outline:0}.el-button--info.is-disabled,.el-button--info.is-disabled:active,.el-button--info.is-disabled:focus,.el-button--info.is-disabled:hover{color:#FFF;background-color:#c8c9cc;border-color:#c8c9cc}.el-button--info.is-plain{color:#909399;background:#f4f4f5;border-color:#d3d4d6}.el-button--info.is-plain:focus,.el-button--info.is-plain:hover{background:#909399;border-color:#909399;color:#FFF}.el-button--info.is-plain:active{background:#82848a;border-color:#82848a;color:#FFF;outline:0}.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover{color:#bcbec2;background-color:#f4f4f5;border-color:#e9e9eb}.el-button--medium{padding:10px 20px;font-size:14px;border-radius:4px}.el-button--medium.is-round{padding:10px 20px}.el-button--medium.is-circle{padding:10px}.el-button--small{padding:9px 15px;font-size:12px;border-radius:3px}.el-button--small.is-round{padding:9px 15px}.el-button--small.is-circle{padding:9px}.el-button--mini,.el-button--mini.is-round{padding:7px 15px}.el-button--mini{font-size:12px;border-radius:3px}.el-button--mini.is-circle{padding:7px}.el-button--text{border-color:transparent;color:#409EFF;background:0 0;padding-left:0;padding-right:0}.el-button--text:focus,.el-button--text:hover{color:#66b1ff;border-color:transparent;background-color:transparent}.el-button--text:active{color:#3a8ee6;border-color:transparent;background-color:transparent}.el-button--text.is-disabled,.el-button--text.is-disabled:focus,.el-button--text.is-disabled:hover{border-color:transparent}.el-button-group .el-button--danger:last-child,.el-button-group .el-button--danger:not(:first-child):not(:last-child),.el-button-group .el-button--info:last-child,.el-button-group .el-button--info:not(:first-child):not(:last-child),.el-button-group .el-button--primary:last-child,.el-button-group .el-button--primary:not(:first-child):not(:last-child),.el-button-group .el-button--success:last-child,.el-button-group .el-button--success:not(:first-child):not(:last-child),.el-button-group .el-button--warning:last-child,.el-button-group .el-button--warning:not(:first-child):not(:last-child),.el-button-group>.el-dropdown>.el-button{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--danger:first-child,.el-button-group .el-button--danger:not(:first-child):not(:last-child),.el-button-group .el-button--info:first-child,.el-button-group .el-button--info:not(:first-child):not(:last-child),.el-button-group .el-button--primary:first-child,.el-button-group .el-button--primary:not(:first-child):not(:last-child),.el-button-group .el-button--success:first-child,.el-button-group .el-button--success:not(:first-child):not(:last-child),.el-button-group .el-button--warning:first-child,.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-right-color:rgba(255,255,255,.5)}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group::after,.el-button-group::before{display:table}.el-button-group::after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button.is-disabled{z-index:1}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-radius:4px}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:20px}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button.is-active,.el-button-group>.el-button:not(.is-disabled):active,.el-button-group>.el-button:not(.is-disabled):focus,.el-button-group>.el-button:not(.is-disabled):hover{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0}.el-calendar{background-color:#fff}.el-calendar__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:12px 20px;border-bottom:1px solid #EBEEF5}.el-backtop,.el-page-header{display:-webkit-box;display:-ms-flexbox}.el-calendar__title{color:#000;-ms-flex-item-align:center;align-self:center}.el-calendar__body{padding:12px 20px 35px}.el-calendar-table{table-layout:fixed;width:100%}.el-calendar-table thead th{padding:12px 0;color:#606266;font-weight:400}.el-calendar-table:not(.is-range) td.next,.el-calendar-table:not(.is-range) td.prev{color:#C0C4CC}.el-backtop,.el-calendar-table td.is-today{color:#409EFF}.el-calendar-table td{border-bottom:1px solid #EBEEF5;border-right:1px solid #EBEEF5;vertical-align:top;-webkit-transition:background-color .2s ease;transition:background-color .2s ease}.el-calendar-table td.is-selected{background-color:#F2F8FE}.el-calendar-table tr:first-child td{border-top:1px solid #EBEEF5}.el-calendar-table tr td:first-child{border-left:1px solid #EBEEF5}.el-calendar-table tr.el-calendar-table__row--hide-border td{border-top:none}.el-calendar-table .el-calendar-day{-webkit-box-sizing:border-box;box-sizing:border-box;padding:8px;height:85px}.el-calendar-table .el-calendar-day:hover{cursor:pointer;background-color:#F2F8FE}.el-backtop{position:fixed;background-color:#FFF;width:40px;height:40px;border-radius:50%;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:20px;-webkit-box-shadow:0 0 6px rgba(0,0,0,.12);box-shadow:0 0 6px rgba(0,0,0,.12);cursor:pointer;z-index:5}.el-backtop:hover{background-color:#F2F6FC}.el-page-header{display:flex;line-height:24px}.el-page-header__left{display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer;margin-right:40px;position:relative}.el-page-header__left::after{position:absolute;width:1px;height:16px;right:-20px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background-color:#DCDFE6}.el-checkbox,.el-checkbox__input{display:inline-block;position:relative;white-space:nowrap}.el-page-header__left .el-icon-back{font-size:18px;margin-right:6px;-ms-flex-item-align:center;align-self:center}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{font-size:18px;color:#303133}.el-checkbox{color:#606266;font-weight:500;font-size:14px;cursor:pointer;user-select:none;margin-right:30px}.el-checkbox.is-bordered{padding:9px 20px 9px 10px;border-radius:4px;border:1px solid #DCDFE6;-webkit-box-sizing:border-box;box-sizing:border-box;line-height:normal;height:40px}.el-checkbox.is-bordered.is-checked{border-color:#409EFF}.el-checkbox.is-bordered.is-disabled{border-color:#EBEEF5;cursor:not-allowed}.el-checkbox.is-bordered.el-checkbox--medium{padding:7px 20px 7px 10px;border-radius:4px;height:36px}.el-checkbox.is-bordered.el-checkbox--medium .el-checkbox__label{line-height:17px;font-size:14px}.el-checkbox.is-bordered.el-checkbox--medium .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{padding:5px 15px 5px 10px;border-radius:3px;height:32px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{line-height:15px;font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner::after{height:6px;width:2px}.el-checkbox.is-bordered.el-checkbox--mini{padding:3px 15px 3px 10px;border-radius:3px;height:28px}.el-checkbox.is-bordered.el-checkbox--mini .el-checkbox__label{line-height:12px;font-size:12px}.el-checkbox.is-bordered.el-checkbox--mini .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--mini .el-checkbox__inner::after{height:6px;width:2px}.el-checkbox__input{cursor:pointer;outline:0;line-height:1;vertical-align:middle}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:#edf2fc;border-color:#DCDFE6;cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner::after{cursor:not-allowed;border-color:#C0C4CC}.el-checkbox__input.is-disabled .el-checkbox__inner+.el-checkbox__label{cursor:not-allowed}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:#F2F6FC;border-color:#DCDFE6}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after{border-color:#C0C4CC}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:#F2F6FC;border-color:#DCDFE6}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner::before{background-color:#C0C4CC;border-color:#C0C4CC}.el-checkbox__input.is-checked .el-checkbox__inner,.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:#409EFF;border-color:#409EFF}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:#C0C4CC;cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner::after{-webkit-transform:rotate(45deg) scaleY(1);transform:rotate(45deg) scaleY(1)}.el-checkbox__input.is-checked+.el-checkbox__label{color:#409EFF}.el-checkbox__input.is-focus .el-checkbox__inner{border-color:#409EFF}.el-checkbox__input.is-indeterminate .el-checkbox__inner::before{content:'';position:absolute;display:block;background-color:#FFF;height:2px;-webkit-transform:scale(.5);transform:scale(.5);left:0;right:0;top:5px}.el-checkbox__input.is-indeterminate .el-checkbox__inner::after{display:none}.el-checkbox__inner{display:inline-block;position:relative;border:1px solid #DCDFE6;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;width:14px;height:14px;background-color:#FFF;z-index:1;-webkit-transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.el-checkbox__inner:hover{border-color:#409EFF}.el-checkbox__inner::after{-webkit-box-sizing:content-box;box-sizing:content-box;content:\"\";border:1px solid #FFF;border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;-webkit-transform:rotate(45deg) scaleY(0);transform:rotate(45deg) scaleY(0);width:3px;-webkit-transition:-webkit-transform .15s ease-in .05s;transition:-webkit-transform .15s ease-in .05s;transition:transform .15s ease-in .05s;transition:transform .15s ease-in .05s,-webkit-transform .15s ease-in .05s;-webkit-transform-origin:center;transform-origin:center}.el-checkbox__original{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.el-checkbox-button,.el-checkbox-button__inner{display:inline-block;position:relative}.el-checkbox__label{display:inline-block;padding-left:10px;line-height:19px;font-size:14px}.el-checkbox:last-of-type{margin-right:0}.el-checkbox-button__inner{line-height:1;font-weight:500;white-space:nowrap;vertical-align:middle;cursor:pointer;background:#FFF;border:1px solid #DCDFE6;border-left:0;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;margin:0;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1);padding:12px 20px;font-size:14px;border-radius:0}.el-checkbox-button__inner.is-round{padding:12px 20px}.el-checkbox-button__inner:hover{color:#409EFF}.el-checkbox-button__inner [class*=el-icon-]{line-height:.9}.el-checkbox-button__inner [class*=el-icon-]+span{margin-left:5px}.el-checkbox-button__original{opacity:0;outline:0;position:absolute;margin:0;z-index:-1}.el-radio,.el-radio__inner,.el-radio__input{position:relative;display:inline-block}.el-checkbox-button.is-checked .el-checkbox-button__inner{color:#FFF;background-color:#409EFF;border-color:#409EFF;-webkit-box-shadow:-1px 0 0 0 #8cc5ff;box-shadow:-1px 0 0 0 #8cc5ff}.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner{border-left-color:#409EFF}.el-checkbox-button.is-disabled .el-checkbox-button__inner{color:#C0C4CC;cursor:not-allowed;background-image:none;background-color:#FFF;border-color:#EBEEF5;-webkit-box-shadow:none;box-shadow:none}.el-checkbox-button.is-disabled:first-child .el-checkbox-button__inner{border-left-color:#EBEEF5}.el-checkbox-button:first-child .el-checkbox-button__inner{border-left:1px solid #DCDFE6;border-radius:4px 0 0 4px;-webkit-box-shadow:none!important;box-shadow:none!important}.el-checkbox-button.is-focus .el-checkbox-button__inner{border-color:#409EFF}.el-checkbox-button:last-child .el-checkbox-button__inner{border-radius:0 4px 4px 0}.el-checkbox-button--medium .el-checkbox-button__inner{padding:10px 20px;font-size:14px;border-radius:0}.el-checkbox-button--medium .el-checkbox-button__inner.is-round{padding:10px 20px}.el-checkbox-button--small .el-checkbox-button__inner{padding:9px 15px;font-size:12px;border-radius:0}.el-checkbox-button--small .el-checkbox-button__inner.is-round{padding:9px 15px}.el-checkbox-button--mini .el-checkbox-button__inner{padding:7px 15px;font-size:12px;border-radius:0}.el-checkbox-button--mini .el-checkbox-button__inner.is-round{padding:7px 15px}.el-checkbox-group{font-size:0}.el-avatar,.el-cascader-panel,.el-radio,.el-radio--medium.is-bordered .el-radio__label,.el-radio__label{font-size:14px}.el-radio{color:#606266;font-weight:500;line-height:1;cursor:pointer;white-space:nowrap;outline:0;margin-right:30px}.el-cascader-node>.el-radio,.el-radio:last-child{margin-right:0}.el-radio.is-bordered{padding:12px 20px 0 10px;border-radius:4px;border:1px solid #DCDFE6;-webkit-box-sizing:border-box;box-sizing:border-box;height:40px}.el-cascader-menu,.el-cascader-menu__list,.el-radio__inner{-webkit-box-sizing:border-box}.el-radio.is-bordered.is-checked{border-color:#409EFF}.el-radio.is-bordered.is-disabled{cursor:not-allowed;border-color:#EBEEF5}.el-radio__input.is-disabled .el-radio__inner,.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:#F5F7FA;border-color:#E4E7ED}.el-radio.is-bordered+.el-radio.is-bordered{margin-left:10px}.el-radio--medium.is-bordered{padding:10px 20px 0 10px;border-radius:4px;height:36px}.el-radio--mini.is-bordered .el-radio__label,.el-radio--small.is-bordered .el-radio__label{font-size:12px}.el-radio--medium.is-bordered .el-radio__inner{height:14px;width:14px}.el-radio--small.is-bordered{padding:8px 15px 0 10px;border-radius:3px;height:32px}.el-radio--small.is-bordered .el-radio__inner{height:12px;width:12px}.el-radio--mini.is-bordered{padding:6px 15px 0 10px;border-radius:3px;height:28px}.el-radio--mini.is-bordered .el-radio__inner{height:12px;width:12px}.el-radio__input{white-space:nowrap;cursor:pointer;outline:0;line-height:1;vertical-align:middle}.el-radio__input.is-disabled .el-radio__inner{cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner::after{cursor:not-allowed;background-color:#F5F7FA}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner::after{background-color:#C0C4CC}.el-radio__input.is-disabled+span.el-radio__label{color:#C0C4CC;cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{border-color:#409EFF;background:#409EFF}.el-radio__input.is-checked .el-radio__inner::after{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:#409EFF}.el-radio__input.is-focus .el-radio__inner{border-color:#409EFF}.el-radio__inner{border:1px solid #DCDFE6;border-radius:100%;width:14px;height:14px;background-color:#FFF;cursor:pointer;box-sizing:border-box}.el-radio__inner:hover{border-color:#409EFF}.el-radio__inner::after{width:4px;height:4px;border-radius:100%;background-color:#FFF;content:\"\";position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);-webkit-transition:-webkit-transform .15s ease-in;transition:-webkit-transform .15s ease-in;transition:transform .15s ease-in;transition:transform .15s ease-in,-webkit-transform .15s ease-in}.el-radio__original{opacity:0;outline:0;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{-webkit-box-shadow:0 0 2px 2px #409EFF;box-shadow:0 0 2px 2px #409EFF}.el-radio__label{padding-left:10px}.el-scrollbar{overflow:hidden;position:relative}.el-scrollbar:active>.el-scrollbar__bar,.el-scrollbar:focus>.el-scrollbar__bar,.el-scrollbar:hover>.el-scrollbar__bar{opacity:1;-webkit-transition:opacity 340ms ease-out;transition:opacity 340ms ease-out}.el-scrollbar__wrap{overflow:scroll;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{width:0;height:0}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:rgba(144,147,153,.3);-webkit-transition:.3s background-color;transition:.3s background-color}.el-scrollbar__thumb:hover{background-color:rgba(144,147,153,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px;opacity:0;-webkit-transition:opacity 120ms ease-out;transition:opacity 120ms ease-out}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-cascader-panel{display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:4px}.el-cascader-panel.is-bordered{border:1px solid #E4E7ED;border-radius:4px}.el-cascader-menu{min-width:180px;box-sizing:border-box;color:#606266;border-right:solid 1px #E4E7ED}.el-cascader-menu:last-child{border-right:none}.el-cascader-menu__wrap{height:204px}.el-cascader-menu__list{position:relative;min-height:100%;margin:0;padding:6px 0;list-style:none;box-sizing:border-box}.el-cascader-menu__hover-zone{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.el-cascader-menu__empty-text{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center;color:#C0C4CC}.el-cascader-node{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 30px 0 20px;height:34px;line-height:34px;outline:0}.el-cascader-node.is-selectable.in-active-path{color:#606266}.el-cascader-node.in-active-path,.el-cascader-node.is-active,.el-cascader-node.is-selectable.in-checked-path{color:#409EFF;font-weight:700}.el-cascader-node:not(.is-disabled){cursor:pointer}.el-cascader-node:not(.is-disabled):focus,.el-cascader-node:not(.is-disabled):hover{background:#F5F7FA}.el-cascader-node.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-cascader-node__prefix{position:absolute;left:10px}.el-cascader-node__postfix{position:absolute;right:10px}.el-cascader-node__label{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-cascader-node>.el-radio .el-radio__label{padding-left:0}.el-avatar{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;overflow:hidden;color:#fff;background:#C0C4CC;width:40px;height:40px;line-height:40px}.el-drawer,.el-drawer__body>*{-webkit-box-sizing:border-box}.el-avatar>img{display:block;height:100%;vertical-align:middle}.el-empty__image img,.el-empty__image svg{vertical-align:top;height:100%;width:100%}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:4px}.el-avatar--icon{font-size:18px}.el-avatar--large{width:40px;height:40px;line-height:40px}.el-avatar--medium{width:36px;height:36px;line-height:36px}.el-avatar--small{width:28px;height:28px;line-height:28px}@-webkit-keyframes el-drawer-fade-in{0%{opacity:0}100%{opacity:1}}@keyframes el-drawer-fade-in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes rtl-drawer-in{0%{-webkit-transform:translate(100%,0);transform:translate(100%,0)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes rtl-drawer-in{0%{-webkit-transform:translate(100%,0);transform:translate(100%,0)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@-webkit-keyframes rtl-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(100%,0);transform:translate(100%,0)}}@keyframes rtl-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(100%,0);transform:translate(100%,0)}}@-webkit-keyframes ltr-drawer-in{0%{-webkit-transform:translate(-100%,0);transform:translate(-100%,0)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes ltr-drawer-in{0%{-webkit-transform:translate(-100%,0);transform:translate(-100%,0)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@-webkit-keyframes ltr-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(-100%,0);transform:translate(-100%,0)}}@keyframes ltr-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(-100%,0);transform:translate(-100%,0)}}@-webkit-keyframes ttb-drawer-in{0%{-webkit-transform:translate(0,-100%);transform:translate(0,-100%)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes ttb-drawer-in{0%{-webkit-transform:translate(0,-100%);transform:translate(0,-100%)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@-webkit-keyframes ttb-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(0,-100%);transform:translate(0,-100%)}}@keyframes ttb-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(0,-100%);transform:translate(0,-100%)}}@-webkit-keyframes btt-drawer-in{0%{-webkit-transform:translate(0,100%);transform:translate(0,100%)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes btt-drawer-in{0%{-webkit-transform:translate(0,100%);transform:translate(0,100%)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@-webkit-keyframes btt-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(0,100%);transform:translate(0,100%)}}@keyframes btt-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(0,100%);transform:translate(0,100%)}}.el-drawer{position:absolute;box-sizing:border-box;background-color:#FFF;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);overflow:hidden;outline:0}.el-drawer.rtl{-webkit-animation:rtl-drawer-out .3s;animation:rtl-drawer-out .3s;right:0}.el-drawer__open .el-drawer.rtl{-webkit-animation:rtl-drawer-in .3s 1ms;animation:rtl-drawer-in .3s 1ms}.el-drawer.ltr{-webkit-animation:ltr-drawer-out .3s;animation:ltr-drawer-out .3s;left:0}.el-drawer__open .el-drawer.ltr{-webkit-animation:ltr-drawer-in .3s 1ms;animation:ltr-drawer-in .3s 1ms}.el-drawer.ttb{-webkit-animation:ttb-drawer-out .3s;animation:ttb-drawer-out .3s;top:0}.el-drawer__open .el-drawer.ttb{-webkit-animation:ttb-drawer-in .3s 1ms;animation:ttb-drawer-in .3s 1ms}.el-drawer.btt{-webkit-animation:btt-drawer-out .3s;animation:btt-drawer-out .3s;bottom:0}.el-drawer__open .el-drawer.btt{-webkit-animation:btt-drawer-in .3s 1ms;animation:btt-drawer-in .3s 1ms}.el-drawer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden;margin:0}.el-drawer__header{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#72767b;display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:32px;padding:20px 20px 0}.el-drawer__header>:first-child{-webkit-box-flex:1;-ms-flex:1;flex:1}.el-drawer__title{margin:0;-webkit-box-flex:1;-ms-flex:1;flex:1;line-height:inherit;font-size:1rem}.el-drawer__close-btn{border:none;cursor:pointer;font-size:20px;color:inherit;background-color:transparent}.el-drawer__body{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:auto}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{height:100%;top:0;bottom:0}.el-drawer.btt,.el-drawer.ttb{width:100%;left:0;right:0}.el-drawer__container{position:relative;left:0;right:0;top:0;bottom:0;height:100%;width:100%}.el-drawer-fade-enter-active{-webkit-animation:el-drawer-fade-in .3s;animation:el-drawer-fade-in .3s}.el-drawer-fade-leave-active{animation:el-drawer-fade-in .3s reverse}.el-statistic{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;color:#000;font-variant:tabular-nums;list-style:none;-webkit-font-feature-settings:\"tnum\";font-feature-settings:\"tnum\";text-align:center}.el-statistic .head{margin-bottom:4px;color:#606266;font-size:13px}.el-statistic .con{font-family:Sans-serif;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#303133}.el-statistic .con .number{font-size:20px;padding:0 4px}.el-statistic .con span{display:inline-block;margin:0;line-height:100%}.el-popconfirm__main,.el-skeleton__image{display:-ms-flexbox;-webkit-box-align:center;display:-webkit-box}.el-popconfirm__main{display:flex;-ms-flex-align:center;align-items:center}.el-popconfirm__icon{margin-right:5px}.el-popconfirm__action{text-align:right;margin:0}@-webkit-keyframes el-skeleton-loading{0%{background-position:100% 50%}100%{background-position:0 50%}}@keyframes el-skeleton-loading{0%{background-position:100% 50%}100%{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line,.el-skeleton__paragraph{height:16px;margin-top:16px;background:#f2f2f2}.el-skeleton.is-animated .el-skeleton__item{background:-webkit-gradient(linear,left top,right top,color-stop(25%,#f2f2f2),color-stop(37%,#e6e6e6),color-stop(63%,#f2f2f2));background:linear-gradient(90deg,#f2f2f2 25%,#e6e6e6 37%,#f2f2f2 63%);background-size:400% 100%;-webkit-animation:el-skeleton-loading 1.4s ease infinite;animation:el-skeleton-loading 1.4s ease infinite}.el-skeleton__item{background:#f2f2f2;display:inline-block;height:16px;border-radius:4px;width:100%}.el-skeleton__circle{border-radius:50%;width:36px;height:36px;line-height:36px}.el-skeleton__circle--lg{width:40px;height:40px;line-height:40px}.el-skeleton__circle--md{width:28px;height:28px;line-height:28px}.el-skeleton__button{height:40px;width:64px;border-radius:4px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{width:100%;height:13px}.el-skeleton__caption{height:12px}.el-skeleton__h1{height:20px}.el-skeleton__h3{height:18px}.el-skeleton__h5{height:16px}.el-skeleton__image{width:unset;display:flex;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:0}.el-skeleton__image svg{fill:#DCDDE0;width:22%;height:22%}.el-empty{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 0}.el-empty__image{width:160px}.el-empty__image img{user-select:none;-o-object-fit:contain;object-fit:contain}.el-empty__image svg{fill:#DCDDE0}.el-empty__description{margin-top:20px}.el-empty__description p{margin:0;font-size:14px;color:#909399}.el-empty__bottom,.el-result__title{margin-top:20px}.el-descriptions{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;color:#303133}.el-descriptions__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:20px}.el-descriptions__title{font-size:16px;font-weight:700}.el-descriptions--mini,.el-descriptions--small{font-size:12px}.el-descriptions__body{color:#606266;background-color:#FFF}.el-descriptions__body .el-descriptions__table{border-collapse:collapse;width:100%;table-layout:fixed}.el-descriptions__body .el-descriptions__table .el-descriptions-item__cell{-webkit-box-sizing:border-box;box-sizing:border-box;text-align:left;font-weight:400;line-height:1.5}.el-descriptions__body .el-descriptions__table .el-descriptions-item__cell.is-left{text-align:left}.el-descriptions__body .el-descriptions__table .el-descriptions-item__cell.is-center{text-align:center}.el-descriptions__body .el-descriptions__table .el-descriptions-item__cell.is-right{text-align:right}.el-descriptions .is-bordered{table-layout:auto}.el-descriptions .is-bordered .el-descriptions-item__cell{border:1px solid #EBEEF5;padding:12px 10px}.el-descriptions :not(.is-bordered) .el-descriptions-item__cell{padding-bottom:12px}.el-descriptions--medium.is-bordered .el-descriptions-item__cell{padding:10px}.el-descriptions--medium:not(.is-bordered) .el-descriptions-item__cell{padding-bottom:10px}.el-descriptions--small.is-bordered .el-descriptions-item__cell{padding:8px 10px}.el-descriptions--small:not(.is-bordered) .el-descriptions-item__cell{padding-bottom:8px}.el-descriptions--mini.is-bordered .el-descriptions-item__cell{padding:6px 10px}.el-descriptions--mini:not(.is-bordered) .el-descriptions-item__cell{padding-bottom:6px}.el-descriptions-item{vertical-align:top}.el-descriptions-item__container{display:-webkit-box;display:-ms-flexbox;display:flex}.el-descriptions-item__container .el-descriptions-item__content,.el-descriptions-item__container .el-descriptions-item__label{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}.el-descriptions-item__container .el-descriptions-item__content{-webkit-box-flex:1;-ms-flex:1;flex:1}.el-descriptions-item__label.has-colon::after{content:':';position:relative;top:-.5px}.el-descriptions-item__label.is-bordered-label{font-weight:700;color:#909399;background:#fafafa}.el-descriptions-item__label:not(.is-bordered-label){margin-right:10px}.el-descriptions-item__content{word-break:break-word;overflow-wrap:break-word}.el-result{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 30px}.el-result__icon svg{width:64px;height:64px}.el-result__title p{margin:0;font-size:20px;color:#303133;line-height:1.3}.el-result__subtitle{margin-top:10px}.el-result__subtitle p{margin:0;font-size:14px;color:#606266;line-height:1.3}.el-result__extra{margin-top:30px}.el-result .icon-success{fill:#67C23A}.el-result .icon-error{fill:#F56C6C}.el-result .icon-info{fill:#909399}.el-result .icon-warning{fill:#E6A23C}\n[data-v-409144fa] #id_refresh_btn.el-button--mini{padding:5px}[data-v-409144fa] #id_popup_tabs.el-tabs .el-tabs__item{padding:5px 13px 3px 5px}[data-v-409144fa] .el-select .el-input__inner{height:24px;line-height:20px}[data-v-409144fa] .switch-container{display:flex;align-items:center}[data-v-409144fa] .el-checkbox{margin-right:5px}[data-v-409144fa] .text{font-size:12px}[data-v-409144fa] .item{margin-bottom:10px}[data-v-409144fa] .clearfix:before,[data-v-409144fa] .clearfix:after{display:table;content:\"\"}[data-v-409144fa] .clearfix:after{clear:both}[data-v-409144fa] .el-card__header{padding:10px 10px 10px 10px;border-bottom:1px solid #ebeef5;box-sizing:border-box}[data-v-409144fa] .el-card__body{padding:10px 10px 10px 10px}[data-v-409144fa] .checkout{float:right;padding:3px 0;background-color:#646ede;color:#fff;border-radius:.3rem;width:50px;height:24px;-webkit-appearance:button;transition:all 300ms ease-in-out !important}[data-v-409144fa] .checkout:hover{background-color:#64a0de}\n#id_popup_tabs.el-tabs{width:600px;height:420px}#id_popup_tabs.el-tabs .el-tabs__item{padding:5px 3px 3px 5px}#id_popup_tabs.el-tabs .el-tabs__header{padding-right:5px}#id_popup_tabs.el-tabs.el-tabs--border-card>.el-tabs__content{padding:1px}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:5px}\n"
  },
  {
    "path": "utils/hcaptchasolver/popup/popup.html",
    "content": "<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\" />\r\n    <title>Captacha Solver - auto CAPTCHA solving freely</title>\r\n    <link rel=\"stylesheet\" href=\"popup.css\" />\r\n    \r\n</head>\r\n<body style=\"margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 5px\">\r\n<div id=\"app\"></div>\r\n<script src=\"popup.js\" defer></script>\r\n</body>\r\n</html>\r\n"
  },
  {
    "path": "utils/hcaptchasolver/popup/popup.js",
    "content": "/*! For license information please see popup.js.LICENSE.txt */\n!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"\",n(n.s=324)}([function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(){i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",l=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(r||[]);return a(o,\"_invoke\",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&o.call(S,u)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,a,s,u){var l=d(t[i],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==r(h)&&o.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var i;a(this,\"_invoke\",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[u];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+\" is not iterable\")}return _.prototype=w,a(C,\"constructor\",{value:w,configurable:!0}),a(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,l,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,u,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return r(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),l=o.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,\"finallyLoc\")&&this.prev<r.finallyLoc){var i=r;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}n.d(e,\"a\",(function(){return a})),n.d(e,\"d\",(function(){return s})),n.d(e,\"b\",(function(){return u})),n.d(e,\"c\",(function(){return l}));var o=i().mark(l);function a(t){if(void 0===t)return!1;if(\"function\"!=typeof t)throw new TypeError(\"Callback must be a function\");return!0}function s(t,e){if(\"string\"==typeof t&&(t=new Error(t)),\"function\"==typeof e)return e.call(this,t);throw t}function u(t,e,n,r,i,o){e=Math.round(e),n=Math.round(n),r=Math.round(r),i=Math.round(i);for(var a=n;a<n+i;a++)for(var s=e;s<e+r;s++){var u=t.bitmap.width*a+s<<2;o.call(t,s,a,u)}return t}function l(t,e,n,r,a){var s,u,l;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e=Math.round(e),n=Math.round(n),r=Math.round(r),a=Math.round(a),s=n;case 5:if(!(s<n+a)){i.next=17;break}u=e;case 7:if(!(u<e+r)){i.next=14;break}return l=t.bitmap.width*s+u<<2,i.next=11,{x:u,y:s,idx:l,image:t};case 11:u++,i.next=7;break;case 14:s++,i.next=5;break;case 17:case\"end\":return i.stop()}}),o)}},,function(t,e,n){\"use strict\";(function(t){var r=n(120),i=n(67),o=n(121);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if(\"number\"==typeof t){if(\"string\"==typeof e)throw new Error(\"If encoding is specified then the first argument must be a string\");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if(\"number\"==typeof e)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError(\"'offset' is out of bounds\");if(e.byteLength<n+(r||0))throw new RangeError(\"'length' is out of bounds\");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=f(t,e);return t}(t,e,n,r):\"string\"==typeof e?function(t,e,n){\"string\"==typeof n&&\"\"!==n||(n=\"utf8\");if(!u.isEncoding(n))throw new TypeError('\"encoding\" must be a valid string encoding');var r=0|p(e,n);t=s(t,r);var i=t.write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|d(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if(\"undefined\"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||\"length\"in e)return\"number\"!=typeof e.length||(r=e.length)!=r?s(t,0):f(t,e);if(\"Buffer\"===e.type&&o(e.data))return f(t,e.data)}var r;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(t,e)}function c(t){if(\"number\"!=typeof t)throw new TypeError('\"size\" argument must be a number');if(t<0)throw new RangeError('\"size\" argument must not be negative')}function h(t,e){if(c(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=a())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+a().toString(16)+\" bytes\");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;\"string\"!=typeof t&&(t=\"\"+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return R(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return U(t).length;default:if(r)return R(t).length;e=(\"\"+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return\"\";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return\"\";if((n>>>=0)<=(e>>>=0))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return M(this,e,n);case\"utf8\":case\"utf-8\":return E(this,e,n);case\"ascii\":return A(this,e,n);case\"latin1\":case\"binary\":return O(this,e,n);case\"base64\":return C(this,e,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return T(this,e,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if(\"string\"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if(\"string\"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if(\"number\"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError(\"val must be string, number or Buffer\")}function y(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&(\"ucs2\"===(r=String(r).toLowerCase())||\"ucs-2\"===r||\"utf16le\"===r||\"utf-16le\"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(t,o)===l(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(l(t,o+f)!==l(e,f)){h=!1;break}if(h)return o}return-1}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError(\"Invalid hex string\");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function _(t,e,n,r){return V(R(e,t.length-n),t,n,r)}function w(t,e,n,r){return V(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return w(t,e,n,r)}function k(t,e,n,r){return V(U(e),t,n,r)}function S(t,e,n,r){return V(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=(n=t.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,l=t[i],c=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(t){var e=t.length;if(e<=D)return String.fromCharCode.apply(String,t);var n=\"\",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=D));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&\"function\"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?s(t,e):void 0!==n?\"string\"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError(\"Arguments must be Buffers\");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('\"list\" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?\"\":0===arguments.length?E(this,0,t):m.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t=\"\",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString(\"hex\",0,n).match(/.{2}/g).join(\" \"),this.length>n&&(t+=\" ... \")),\"<Buffer \"+t+\">\"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError(\"out of range index\");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),h=0;h<s;++h)if(l[h]!==c[h]){o=l[h],a=c[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r=\"utf8\",n=this.length,e=0;else if(void 0===n&&\"string\"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");e|=0,isFinite(n)?(n|=0,void 0===r&&(r=\"utf8\")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");r||(r=\"utf8\");for(var o=!1;;)switch(r){case\"hex\":return b(this,t,e,n);case\"utf8\":case\"utf-8\":return _(this,t,e,n);case\"ascii\":return w(this,t,e,n);case\"latin1\":case\"binary\":return x(this,t,e,n);case\"base64\":return k(this,t,e,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return S(this,t,e,n);default:if(o)throw new TypeError(\"Unknown encoding: \"+r);r=(\"\"+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function A(t,e,n){var r=\"\";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,e,n){var r=\"\";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function M(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i=\"\",o=e;o<n;++o)i+=z(t[o]);return i}function T(t,e,n){for(var r=t.slice(e,n),i=\"\",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>n)throw new RangeError(\"Trying to access beyond buffer length\")}function P(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('\"value\" argument is out of bounds');if(n+r>t.length)throw new RangeError(\"Index out of range\")}function F(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function N(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function L(t,e,n,r,o){return o||N(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function B(t,e,n,r,o){return o||N(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return B(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(n<0||n>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(r<0)throw new RangeError(\"sourceEnd out of bounds\");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if(\"string\"==typeof t){if(\"string\"==typeof e?(r=e,e=0,n=this.length):\"string\"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&\"string\"!=typeof r)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof r&&!u.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r)}else\"number\"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError(\"Out of range index\");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),\"number\"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:R(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var $=/[^+\\/0-9A-Za-z-_]/g;function z(t){return t<16?\"0\"+t.toString(16):t.toString(16)}function R(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\\s+|\\s+$/g,\"\")}(t).replace($,\"\")).length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t}(t))}function V(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(10))},function(t,e,n){\"use strict\";n.d(e,\"a\",(function(){return Tn}));var r=n(4),i=n(253),o=n(115),a=n(2),s=n(66);function u(t){let e=t.length;for(;--e>=0;)t[e]=0}const l=256,c=286,h=30,f=15,d=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),p=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),m=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),v=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),g=new Array(576);u(g);const y=new Array(60);u(y);const b=new Array(512);u(b);const _=new Array(256);u(_);const w=new Array(29);u(w);const x=new Array(h);function k(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}let S,C,E;function D(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}u(x);const A=t=>t<256?b[t]:b[256+(t>>>7)],O=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},M=(t,e,n)=>{t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,O(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},T=(t,e,n)=>{M(t,n[2*e],n[2*e+1])},I=(t,e)=>{let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1},P=(t,e,n)=>{const r=new Array(16);let i,o,a=0;for(i=1;i<=f;i++)a=a+n[i-1]<<1,r[i]=a;for(o=0;o<=e;o++){let e=t[2*o+1];0!==e&&(t[2*o]=I(r[e]++,e))}},F=t=>{let e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},j=t=>{t.bi_valid>8?O(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},N=(t,e,n,r)=>{const i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]},L=(t,e,n)=>{const r=t.heap[n];let i=n<<1;for(;i<=t.heap_len&&(i<t.heap_len&&N(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!N(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r},B=(t,e,n)=>{let r,i,o,a,s=0;if(0!==t.sym_next)do{r=255&t.pending_buf[t.sym_buf+s++],r+=(255&t.pending_buf[t.sym_buf+s++])<<8,i=t.pending_buf[t.sym_buf+s++],0===r?T(t,i,e):(o=_[i],T(t,o+l+1,e),a=d[o],0!==a&&(i-=w[o],M(t,i,a)),r--,o=A(r),T(t,o,n),a=p[o],0!==a&&(r-=x[o],M(t,r,a)))}while(s<t.sym_next);T(t,256,e)},$=(t,e)=>{const n=e.dyn_tree,r=e.stat_desc.static_tree,i=e.stat_desc.has_stree,o=e.stat_desc.elems;let a,s,u,l=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<o;a++)0!==n[2*a]?(t.heap[++t.heap_len]=l=a,t.depth[a]=0):n[2*a+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=l<2?++l:0,n[2*u]=1,t.depth[u]=0,t.opt_len--,i&&(t.static_len-=r[2*u+1]);for(e.max_code=l,a=t.heap_len>>1;a>=1;a--)L(t,n,a);u=o;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],L(t,n,1),s=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=s,n[2*u]=n[2*a]+n[2*s],t.depth[u]=(t.depth[a]>=t.depth[s]?t.depth[a]:t.depth[s])+1,n[2*a+1]=n[2*s+1]=u,t.heap[1]=u++,L(t,n,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const n=e.dyn_tree,r=e.max_code,i=e.stat_desc.static_tree,o=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,u=e.stat_desc.max_length;let l,c,h,d,p,m,v=0;for(d=0;d<=f;d++)t.bl_count[d]=0;for(n[2*t.heap[t.heap_max]+1]=0,l=t.heap_max+1;l<573;l++)c=t.heap[l],d=n[2*n[2*c+1]+1]+1,d>u&&(d=u,v++),n[2*c+1]=d,c>r||(t.bl_count[d]++,p=0,c>=s&&(p=a[c-s]),m=n[2*c],t.opt_len+=m*(d+p),o&&(t.static_len+=m*(i[2*c+1]+p)));if(0!==v){do{for(d=u-1;0===t.bl_count[d];)d--;t.bl_count[d]--,t.bl_count[d+1]+=2,t.bl_count[u]--,v-=2}while(v>0);for(d=u;0!==d;d--)for(c=t.bl_count[d];0!==c;)h=t.heap[--l],h>r||(n[2*h+1]!==d&&(t.opt_len+=(d-n[2*h+1])*n[2*h],n[2*h+1]=d),c--)}})(t,e),P(n,l,t.bl_count)},z=(t,e,n)=>{let r,i,o=-1,a=e[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<l?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,l=3):i===a?(u=6,l=3):(u=7,l=4))},R=(t,e,n)=>{let r,i,o=-1,a=e[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<l)do{T(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(T(t,i,t.bl_tree),s--),T(t,16,t.bl_tree),M(t,s-3,2)):s<=10?(T(t,17,t.bl_tree),M(t,s-3,3)):(T(t,18,t.bl_tree),M(t,s-11,7));s=0,o=i,0===a?(u=138,l=3):i===a?(u=6,l=3):(u=7,l=4)}};let U=!1;const V=(t,e,n,r)=>{M(t,0+(r?1:0),3),j(t),O(t,n),O(t,~n),n&&t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n};var H=(t,e,n,r)=>{let i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<l;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),$(t,t.l_desc),$(t,t.d_desc),a=(t=>{let e;for(z(t,t.dyn_ltree,t.l_desc.max_code),z(t,t.dyn_dtree,t.d_desc.max_code),$(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*v[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),i=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?V(t,e,n,r):4===t.strategy||o===i?(M(t,2+(r?1:0),3),B(t,g,y)):(M(t,4+(r?1:0),3),((t,e,n,r)=>{let i;for(M(t,e-257,5),M(t,n-1,5),M(t,r-4,4),i=0;i<r;i++)M(t,t.bl_tree[2*v[i]+1],3);R(t,t.dyn_ltree,e-1),R(t,t.dyn_dtree,n-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),B(t,t.dyn_ltree,t.dyn_dtree)),F(t),r&&j(t)},G={_tr_init:t=>{U||((()=>{let t,e,n,r,i;const o=new Array(16);for(n=0,r=0;r<28;r++)for(w[r]=n,t=0;t<1<<d[r];t++)_[n++]=r;for(_[n-1]=r,i=0,r=0;r<16;r++)for(x[r]=i,t=0;t<1<<p[r];t++)b[i++]=r;for(i>>=7;r<h;r++)for(x[r]=i<<7,t=0;t<1<<p[r]-7;t++)b[256+i++]=r;for(e=0;e<=f;e++)o[e]=0;for(t=0;t<=143;)g[2*t+1]=8,t++,o[8]++;for(;t<=255;)g[2*t+1]=9,t++,o[9]++;for(;t<=279;)g[2*t+1]=7,t++,o[7]++;for(;t<=287;)g[2*t+1]=8,t++,o[8]++;for(P(g,287,o),t=0;t<h;t++)y[2*t+1]=5,y[2*t]=I(t,5);S=new k(g,d,257,c,f),C=new k(y,p,0,h,f),E=new k(new Array(0),m,0,19,7)})(),U=!0),t.l_desc=new D(t.dyn_ltree,S),t.d_desc=new D(t.dyn_dtree,C),t.bl_desc=new D(t.bl_tree,E),t.bi_buf=0,t.bi_valid=0,F(t)},_tr_stored_block:V,_tr_flush_block:H,_tr_tally:(t,e,n)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(_[n]+l+1)]++,t.dyn_dtree[2*A(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{M(t,2,3),T(t,256,g),(t=>{16===t.bi_valid?(O(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var q=(t,e,n,r)=>{let i=65535&t,o=t>>>16&65535,a=0;for(;0!==n;){a=n>2e3?2e3:n,n-=a;do{i=i+e[r++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16};const W=new Uint32Array((()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e})());var Y=(t,e,n,r)=>{const i=W,o=r+n;t^=-1;for(let n=r;n<o;n++)t=t>>>8^i[255&(t^e[n])];return~t},Z={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:X,_tr_stored_block:J,_tr_flush_block:Q,_tr_tally:tt,_tr_align:et}=G,{Z_NO_FLUSH:nt,Z_PARTIAL_FLUSH:rt,Z_FULL_FLUSH:it,Z_FINISH:ot,Z_BLOCK:at,Z_OK:st,Z_STREAM_END:ut,Z_STREAM_ERROR:lt,Z_DATA_ERROR:ct,Z_BUF_ERROR:ht,Z_DEFAULT_COMPRESSION:ft,Z_FILTERED:dt,Z_HUFFMAN_ONLY:pt,Z_RLE:mt,Z_FIXED:vt,Z_DEFAULT_STRATEGY:gt,Z_UNKNOWN:yt,Z_DEFLATED:bt}=K,_t=258,wt=262,xt=42,kt=113,St=666,Ct=(t,e)=>(t.msg=Z[e],e),Et=t=>2*t-(t>4?9:0),Dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},At=t=>{let e,n,r,i=t.w_size;e=t.hash_size,r=e;do{n=t.head[--r],t.head[r]=n>=i?n-i:0}while(--e);e=i,r=e;do{n=t.prev[--r],t.prev[r]=n>=i?n-i:0}while(--e)};let Ot=(t,e,n)=>(e<<t.hash_shift^n)&t.hash_mask;const Mt=t=>{const e=t.state;let n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},Tt=(t,e)=>{Q(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Mt(t.strm)},It=(t,e)=>{t.pending_buf[t.pending++]=e},Pt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Ft=(t,e,n,r)=>{let i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),n),1===t.state.wrap?t.adler=q(t.adler,e,i,n):2===t.state.wrap&&(t.adler=Y(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)},jt=(t,e)=>{let n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match;const u=t.strstart>t.w_size-wt?t.strstart-(t.w_size-wt):0,l=t.window,c=t.w_mask,h=t.prev,f=t.strstart+_t;let d=l[o+a-1],p=l[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(n=e,l[n+a]===p&&l[n+a-1]===d&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&o<f);if(r=_t-(f-o),o=f-_t,r>a){if(t.match_start=e,a=r,r>=s)break;d=l[o+a-1],p=l[o+a]}}}while((e=h[e&c])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead},Nt=t=>{const e=t.w_size;let n,r,i;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-wt)&&(t.window.set(t.window.subarray(e,e+e-r),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),At(t),r+=e),0===t.strm.avail_in)break;if(n=Ft(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=n,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Ot(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Ot(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<wt&&0!==t.strm.avail_in)},Lt=(t,e)=>{let n,r,i,o=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a=0,s=t.strm.avail_in;do{if(n=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,r=t.strstart-t.block_start,n>r+t.strm.avail_in&&(n=r+t.strm.avail_in),n>i&&(n=i),n<o&&(0===n&&e!==ot||e===nt||n!==r+t.strm.avail_in))break;a=e===ot&&n===r+t.strm.avail_in?1:0,J(t,0,0,a),t.pending_buf[t.pending-4]=n,t.pending_buf[t.pending-3]=n>>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,Mt(t.strm),r&&(r>n&&(r=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+r),t.strm.next_out),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r,t.block_start+=r,n-=r),n&&(Ft(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(0===a);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),a?4:e!==nt&&e!==ot&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(Ft(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,o=i>t.w_size?t.w_size:i,r=t.strstart-t.block_start,(r>=o||(r||e===ot)&&e!==nt&&0===t.strm.avail_in&&r<=i)&&(n=r>i?i:r,a=e===ot&&0===t.strm.avail_in&&n===r?1:0,J(t,t.block_start,n,a),t.block_start+=n,Mt(t.strm)),a?3:1)},Bt=(t,e)=>{let n,r;for(;;){if(t.lookahead<wt){if(Nt(t),t.lookahead<wt&&e===nt)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-wt&&(t.match_length=jt(t,n)),t.match_length>=3)if(r=tt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+1]);else r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(Tt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===ot?(Tt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Tt(t,!1),0===t.strm.avail_out)?1:2},$t=(t,e)=>{let n,r,i;for(;;){if(t.lookahead<wt){if(Nt(t),t.lookahead<wt&&e===nt)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-wt&&(t.match_length=jt(t,n),t.match_length<=5&&(t.strategy===dt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=tt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=Ot(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(Tt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(r=tt(t,0,t.window[t.strstart-1]),r&&Tt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=tt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===ot?(Tt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Tt(t,!1),0===t.strm.avail_out)?1:2};function zt(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}const Rt=[new zt(0,0,0,0,Lt),new zt(4,4,8,4,Bt),new zt(4,5,16,8,Bt),new zt(4,6,32,32,Bt),new zt(4,4,16,16,$t),new zt(8,16,32,32,$t),new zt(8,16,128,128,$t),new zt(8,32,128,256,$t),new zt(32,128,258,1024,$t),new zt(32,258,258,4096,$t)];function Ut(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=bt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Dt(this.dyn_ltree),Dt(this.dyn_dtree),Dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Vt=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==xt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==kt&&e.status!==St?1:0},Ht=t=>{if(Vt(t))return Ct(t,lt);t.total_in=t.total_out=0,t.data_type=yt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?xt:kt,t.adler=2===e.wrap?0:1,e.last_flush=-2,X(e),st},Gt=t=>{const e=Ht(t);var n;return e===st&&((n=t.state).window_size=2*n.w_size,Dt(n.head),n.max_lazy_match=Rt[n.level].max_lazy,n.good_match=Rt[n.level].good_length,n.nice_match=Rt[n.level].nice_length,n.max_chain_length=Rt[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),e},qt=(t,e,n,r,i,o)=>{if(!t)return lt;let a=1;if(e===ft&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>9||n!==bt||r<8||r>15||e<0||e>9||o<0||o>vt||8===r&&1!==a)return Ct(t,lt);8===r&&(r=9);const s=new Ut;return t.state=s,s.strm=t,s.status=xt,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=o,s.method=n,Gt(t)};var Wt={deflateInit:(t,e)=>qt(t,e,bt,15,8,gt),deflateInit2:qt,deflateReset:Gt,deflateResetKeep:Ht,deflateSetHeader:(t,e)=>Vt(t)||2!==t.state.wrap?lt:(t.state.gzhead=e,st),deflate:(t,e)=>{if(Vt(t)||e>at||e<0)return t?Ct(t,lt):lt;const n=t.state;if(!t.output||0!==t.avail_in&&!t.input||n.status===St&&e!==ot)return Ct(t,0===t.avail_out?ht:lt);const r=n.last_flush;if(n.last_flush=e,0!==n.pending){if(Mt(t),0===t.avail_out)return n.last_flush=-1,st}else if(0===t.avail_in&&Et(e)<=Et(r)&&e!==ot)return Ct(t,ht);if(n.status===St&&0!==t.avail_in)return Ct(t,ht);if(n.status===xt&&0===n.wrap&&(n.status=kt),n.status===xt){let e=bt+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=pt||n.level<2?0:n.level<6?1:6===n.level?2:3,e|=r<<6,0!==n.strstart&&(e|=32),e+=31-e%31,Pt(n,e),0!==n.strstart&&(Pt(n,t.adler>>>16),Pt(n,65535&t.adler)),t.adler=1,n.status=kt,Mt(t),0!==n.pending)return n.last_flush=-1,st}if(57===n.status)if(t.adler=0,It(n,31),It(n,139),It(n,8),n.gzhead)It(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),It(n,255&n.gzhead.time),It(n,n.gzhead.time>>8&255),It(n,n.gzhead.time>>16&255),It(n,n.gzhead.time>>24&255),It(n,9===n.level?2:n.strategy>=pt||n.level<2?4:0),It(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(It(n,255&n.gzhead.extra.length),It(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=Y(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(It(n,0),It(n,0),It(n,0),It(n,0),It(n,0),It(n,9===n.level?2:n.strategy>=pt||n.level<2?4:0),It(n,3),n.status=kt,Mt(t),0!==n.pending)return n.last_flush=-1,st;if(69===n.status){if(n.gzhead.extra){let e=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>e&&(t.adler=Y(t.adler,n.pending_buf,n.pending-e,e)),n.gzindex+=i,Mt(t),0!==n.pending)return n.last_flush=-1,st;e=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>e&&(t.adler=Y(t.adler,n.pending_buf,n.pending-e,e)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let e,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(t.adler=Y(t.adler,n.pending_buf,n.pending-r,r)),Mt(t),0!==n.pending)return n.last_flush=-1,st;r=0}e=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,It(n,e)}while(0!==e);n.gzhead.hcrc&&n.pending>r&&(t.adler=Y(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let e,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(t.adler=Y(t.adler,n.pending_buf,n.pending-r,r)),Mt(t),0!==n.pending)return n.last_flush=-1,st;r=0}e=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,It(n,e)}while(0!==e);n.gzhead.hcrc&&n.pending>r&&(t.adler=Y(t.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Mt(t),0!==n.pending))return n.last_flush=-1,st;It(n,255&t.adler),It(n,t.adler>>8&255),t.adler=0}if(n.status=kt,Mt(t),0!==n.pending)return n.last_flush=-1,st}if(0!==t.avail_in||0!==n.lookahead||e!==nt&&n.status!==St){let r=0===n.level?Lt(n,e):n.strategy===pt?((t,e)=>{let n;for(;;){if(0===t.lookahead&&(Nt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,n=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(Tt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===ot?(Tt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Tt(t,!1),0===t.strm.avail_out)?1:2})(n,e):n.strategy===mt?((t,e)=>{let n,r,i,o;const a=t.window;for(;;){if(t.lookahead<=_t){if(Nt(t),t.lookahead<=_t&&e===nt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=t.strstart-1,r=a[i],r===a[++i]&&r===a[++i]&&r===a[++i])){o=t.strstart+_t;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=_t-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=tt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(Tt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===ot?(Tt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Tt(t,!1),0===t.strm.avail_out)?1:2})(n,e):Rt[n.level].func(n,e);if(3!==r&&4!==r||(n.status=St),1===r||3===r)return 0===t.avail_out&&(n.last_flush=-1),st;if(2===r&&(e===rt?et(n):e!==at&&(J(n,0,0,!1),e===it&&(Dt(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Mt(t),0===t.avail_out))return n.last_flush=-1,st}return e!==ot?st:n.wrap<=0?ut:(2===n.wrap?(It(n,255&t.adler),It(n,t.adler>>8&255),It(n,t.adler>>16&255),It(n,t.adler>>24&255),It(n,255&t.total_in),It(n,t.total_in>>8&255),It(n,t.total_in>>16&255),It(n,t.total_in>>24&255)):(Pt(n,t.adler>>>16),Pt(n,65535&t.adler)),Mt(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?st:ut)},deflateEnd:t=>{if(Vt(t))return lt;const e=t.state.status;return t.state=null,e===kt?Ct(t,ct):st},deflateSetDictionary:(t,e)=>{let n=e.length;if(Vt(t))return lt;const r=t.state,i=r.wrap;if(2===i||1===i&&r.status!==xt||r.lookahead)return lt;if(1===i&&(t.adler=q(t.adler,e,n,0)),r.wrap=0,n>=r.w_size){0===i&&(Dt(r.head),r.strstart=0,r.block_start=0,r.insert=0);let t=new Uint8Array(r.w_size);t.set(e.subarray(n-r.w_size,n),0),e=t,n=r.w_size}const o=t.avail_in,a=t.next_in,s=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,Nt(r);r.lookahead>=3;){let t=r.strstart,e=r.lookahead-2;do{r.ins_h=Ot(r,r.ins_h,r.window[t+3-1]),r.prev[t&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=t,t++}while(--e);r.strstart=t,r.lookahead=2,Nt(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=a,t.input=s,t.avail_in=o,r.wrap=i,st},deflateInfo:\"pako deflate (from Nodeca project)\"};const Yt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Zt={assign:function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if(\"object\"!=typeof n)throw new TypeError(n+\"must be non-object\");for(const e in n)Yt(n,e)&&(t[e]=n[e])}}return t},flattenChunks:t=>{let e=0;for(let n=0,r=t.length;n<r;n++)e+=t[n].length;const n=new Uint8Array(e);for(let e=0,r=0,i=t.length;e<i;e++){let i=t[e];n.set(i,r),r+=i.length}return n}};let Kt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Kt=!1}const Xt=new Uint8Array(256);for(let t=0;t<256;t++)Xt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Xt[254]=Xt[254]=1;var Jt={string2buf:t=>{if(\"function\"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)n=t.charCodeAt(i),55296==(64512&n)&&i+1<a&&(r=t.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)n=t.charCodeAt(i),55296==(64512&n)&&i+1<a&&(r=t.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e},buf2string:(t,e)=>{const n=e||t.length;if(\"function\"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let r,i;const o=new Array(2*n);for(i=0,r=0;r<n;){let e=t[r++];if(e<128){o[i++]=e;continue}let a=Xt[e];if(a>4)o[i++]=65533,r+=a-1;else{for(e&=2===a?31:3===a?15:7;a>1&&r<n;)e=e<<6|63&t[r++],a--;a>1?o[i++]=65533:e<65536?o[i++]=e:(e-=65536,o[i++]=55296|e>>10&1023,o[i++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Kt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n=\"\";for(let r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n})(o,i)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let n=e-1;for(;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+Xt[t[n]]>e?n:e}};var Qt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0};const te=Object.prototype.toString,{Z_NO_FLUSH:ee,Z_SYNC_FLUSH:ne,Z_FULL_FLUSH:re,Z_FINISH:ie,Z_OK:oe,Z_STREAM_END:ae,Z_DEFAULT_COMPRESSION:se,Z_DEFAULT_STRATEGY:ue,Z_DEFLATED:le}=K;function ce(t){this.options=Zt.assign({level:se,method:le,chunkSize:16384,windowBits:15,memLevel:8,strategy:ue},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;let n=Wt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==oe)throw new Error(Z[n]);if(e.header&&Wt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t=\"string\"==typeof e.dictionary?Jt.string2buf(e.dictionary):\"[object ArrayBuffer]\"===te.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,n=Wt.deflateSetDictionary(this.strm,t),n!==oe)throw new Error(Z[n]);this._dict_set=!0}}function he(t,e){const n=new ce(e);if(n.push(t,!0),n.err)throw n.msg||Z[n.err];return n.result}ce.prototype.push=function(t,e){const n=this.strm,r=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=e===~~e?e:!0===e?ie:ee,\"string\"==typeof t?n.input=Jt.string2buf(t):\"[object ArrayBuffer]\"===te.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===ne||o===re)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(i=Wt.deflate(n,o),i===ae)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Wt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===oe;if(0!==n.avail_out){if(o>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},ce.prototype.onData=function(t){this.chunks.push(t)},ce.prototype.onEnd=function(t){t===oe&&(this.result=Zt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var fe={Deflate:ce,deflate:he,deflateRaw:function(t,e){return(e=e||{}).raw=!0,he(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,he(t,e)},constants:K};const de=16209;var pe=function(t,e){let n,r,i,o,a,s,u,l,c,h,f,d,p,m,v,g,y,b,_,w,x,k,S,C;const E=t.state;n=t.next_in,S=t.input,r=n+(t.avail_in-5),i=t.next_out,C=t.output,o=i-(e-t.avail_out),a=i+(t.avail_out-257),s=E.dmax,u=E.wsize,l=E.whave,c=E.wnext,h=E.window,f=E.hold,d=E.bits,p=E.lencode,m=E.distcode,v=(1<<E.lenbits)-1,g=(1<<E.distbits)-1;t:do{d<15&&(f+=S[n++]<<d,d+=8,f+=S[n++]<<d,d+=8),y=p[f&v];e:for(;;){if(b=y>>>24,f>>>=b,d-=b,b=y>>>16&255,0===b)C[i++]=65535&y;else{if(!(16&b)){if(64&b){if(32&b){E.mode=16191;break t}t.msg=\"invalid literal/length code\",E.mode=de;break t}y=p[(65535&y)+(f&(1<<b)-1)];continue e}for(_=65535&y,b&=15,b&&(d<b&&(f+=S[n++]<<d,d+=8),_+=f&(1<<b)-1,f>>>=b,d-=b),d<15&&(f+=S[n++]<<d,d+=8,f+=S[n++]<<d,d+=8),y=m[f&g];;){if(b=y>>>24,f>>>=b,d-=b,b=y>>>16&255,16&b){if(w=65535&y,b&=15,d<b&&(f+=S[n++]<<d,d+=8,d<b&&(f+=S[n++]<<d,d+=8)),w+=f&(1<<b)-1,w>s){t.msg=\"invalid distance too far back\",E.mode=de;break t}if(f>>>=b,d-=b,b=i-o,w>b){if(b=w-b,b>l&&E.sane){t.msg=\"invalid distance too far back\",E.mode=de;break t}if(x=0,k=h,0===c){if(x+=u-b,b<_){_-=b;do{C[i++]=h[x++]}while(--b);x=i-w,k=C}}else if(c<b){if(x+=u+c-b,b-=c,b<_){_-=b;do{C[i++]=h[x++]}while(--b);if(x=0,c<_){b=c,_-=b;do{C[i++]=h[x++]}while(--b);x=i-w,k=C}}}else if(x+=c-b,b<_){_-=b;do{C[i++]=h[x++]}while(--b);x=i-w,k=C}for(;_>2;)C[i++]=k[x++],C[i++]=k[x++],C[i++]=k[x++],_-=3;_&&(C[i++]=k[x++],_>1&&(C[i++]=k[x++]))}else{x=i-w;do{C[i++]=C[x++],C[i++]=C[x++],C[i++]=C[x++],_-=3}while(_>2);_&&(C[i++]=C[x++],_>1&&(C[i++]=C[x++]))}break}if(64&b){t.msg=\"invalid distance code\",E.mode=de;break t}y=m[(65535&y)+(f&(1<<b)-1)]}}break}}while(n<r&&i<a);_=d>>3,n-=_,d-=_<<3,f&=(1<<d)-1,t.next_in=n,t.next_out=i,t.avail_in=n<r?r-n+5:5-(n-r),t.avail_out=i<a?a-i+257:257-(i-a),E.hold=f,E.bits=d};const me=15,ve=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ge=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ye=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),be=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var _e=(t,e,n,r,i,o,a,s)=>{const u=s.bits;let l,c,h,f,d,p,m=0,v=0,g=0,y=0,b=0,_=0,w=0,x=0,k=0,S=0,C=null;const E=new Uint16Array(16),D=new Uint16Array(16);let A,O,M,T=null;for(m=0;m<=me;m++)E[m]=0;for(v=0;v<r;v++)E[e[n+v]]++;for(b=u,y=me;y>=1&&0===E[y];y--);if(b>y&&(b=y),0===y)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(g=1;g<y&&0===E[g];g++);for(b<g&&(b=g),x=1,m=1;m<=me;m++)if(x<<=1,x-=E[m],x<0)return-1;if(x>0&&(0===t||1!==y))return-1;for(D[1]=0,m=1;m<me;m++)D[m+1]=D[m]+E[m];for(v=0;v<r;v++)0!==e[n+v]&&(a[D[e[n+v]]++]=v);if(0===t?(C=T=a,p=20):1===t?(C=ve,T=ge,p=257):(C=ye,T=be,p=0),S=0,v=0,m=g,d=o,_=b,w=0,h=-1,k=1<<b,f=k-1,1===t&&k>852||2===t&&k>592)return 1;for(;;){A=m-w,a[v]+1<p?(O=0,M=a[v]):a[v]>=p?(O=T[a[v]-p],M=C[a[v]-p]):(O=96,M=0),l=1<<m-w,c=1<<_,g=c;do{c-=l,i[d+(S>>w)+c]=A<<24|O<<16|M}while(0!==c);for(l=1<<m-1;S&l;)l>>=1;if(0!==l?(S&=l-1,S+=l):S=0,v++,0==--E[m]){if(m===y)break;m=e[n+a[v]]}if(m>b&&(S&f)!==h){for(0===w&&(w=b),d+=g,_=m-w,x=1<<_;_+w<y&&(x-=E[_+w],!(x<=0));)_++,x<<=1;if(k+=1<<_,1===t&&k>852||2===t&&k>592)return 1;h=S&f,i[h]=b<<24|_<<16|d-o}}return 0!==S&&(i[d+S]=m-w<<24|64<<16),s.bits=b,0};const{Z_FINISH:we,Z_BLOCK:xe,Z_TREES:ke,Z_OK:Se,Z_STREAM_END:Ce,Z_NEED_DICT:Ee,Z_STREAM_ERROR:De,Z_DATA_ERROR:Ae,Z_MEM_ERROR:Oe,Z_BUF_ERROR:Me,Z_DEFLATED:Te}=K,Ie=16180,Pe=16190,Fe=16191,je=16192,Ne=16194,Le=16199,Be=16200,$e=16206,ze=16209,Re=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Ue(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ve=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Ie||e.mode>16211?1:0},He=t=>{if(Ve(t))return De;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=Ie,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,Se},Ge=t=>{if(Ve(t))return De;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,He(t)},qe=(t,e)=>{let n;if(Ve(t))return De;const r=t.state;return e<0?(n=0,e=-e):(n=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?De:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,Ge(t))},We=(t,e)=>{if(!t)return De;const n=new Ue;t.state=n,n.strm=t,n.window=null,n.mode=Ie;const r=qe(t,e);return r!==Se&&(t.state=null),r};let Ye,Ze,Ke=!0;const Xe=t=>{if(Ke){Ye=new Int32Array(512),Ze=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(_e(1,t.lens,0,288,Ye,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;_e(2,t.lens,0,32,Ze,0,t.work,{bits:5}),Ke=!1}t.lencode=Ye,t.lenbits=9,t.distcode=Ze,t.distbits=5},Je=(t,e,n,r)=>{let i;const o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),r>=o.wsize?(o.window.set(e.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(e.subarray(n-r,n-r+i),o.wnext),(r-=i)?(o.window.set(e.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0};var Qe={inflateReset:Ge,inflateReset2:qe,inflateResetKeep:He,inflateInit:t=>We(t,15),inflateInit2:We,inflate:(t,e)=>{let n,r,i,o,a,s,u,l,c,h,f,d,p,m,v,g,y,b,_,w,x,k,S=0;const C=new Uint8Array(4);let E,D;const A=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ve(t)||!t.output||!t.input&&0!==t.avail_in)return De;n=t.state,n.mode===Fe&&(n.mode=je),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,l=n.hold,c=n.bits,h=s,f=u,k=Se;t:for(;;)switch(n.mode){case Ie:if(0===n.wrap){n.mode=je;break}for(;c<16;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}if(2&n.wrap&&35615===l){0===n.wbits&&(n.wbits=15),n.check=0,C[0]=255&l,C[1]=l>>>8&255,n.check=Y(n.check,C,2,0),l=0,c=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31){t.msg=\"incorrect header check\",n.mode=ze;break}if((15&l)!==Te){t.msg=\"unknown compression method\",n.mode=ze;break}if(l>>>=4,c-=4,x=8+(15&l),0===n.wbits&&(n.wbits=x),x>15||x>n.wbits){t.msg=\"invalid window size\",n.mode=ze;break}n.dmax=1<<n.wbits,n.flags=0,t.adler=n.check=1,n.mode=512&l?16189:Fe,l=0,c=0;break;case 16181:for(;c<16;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}if(n.flags=l,(255&n.flags)!==Te){t.msg=\"unknown compression method\",n.mode=ze;break}if(57344&n.flags){t.msg=\"unknown header flags set\",n.mode=ze;break}n.head&&(n.head.text=l>>8&1),512&n.flags&&4&n.wrap&&(C[0]=255&l,C[1]=l>>>8&255,n.check=Y(n.check,C,2,0)),l=0,c=0,n.mode=16182;case 16182:for(;c<32;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}n.head&&(n.head.time=l),512&n.flags&&4&n.wrap&&(C[0]=255&l,C[1]=l>>>8&255,C[2]=l>>>16&255,C[3]=l>>>24&255,n.check=Y(n.check,C,4,0)),l=0,c=0,n.mode=16183;case 16183:for(;c<16;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}n.head&&(n.head.xflags=255&l,n.head.os=l>>8),512&n.flags&&4&n.wrap&&(C[0]=255&l,C[1]=l>>>8&255,n.check=Y(n.check,C,2,0)),l=0,c=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}n.length=l,n.head&&(n.head.extra_len=l),512&n.flags&&4&n.wrap&&(C[0]=255&l,C[1]=l>>>8&255,n.check=Y(n.check,C,2,0)),l=0,c=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(d=n.length,d>s&&(d=s),d&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+d),x)),512&n.flags&&4&n.wrap&&(n.check=Y(n.check,r,d,o)),s-=d,o+=d,n.length-=d),n.length))break t;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break t;d=0;do{x=r[o+d++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&d<s);if(512&n.flags&&4&n.wrap&&(n.check=Y(n.check,r,d,o)),s-=d,o+=d,x)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===s)break t;d=0;do{x=r[o+d++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&d<s);if(512&n.flags&&4&n.wrap&&(n.check=Y(n.check,r,d,o)),s-=d,o+=d,x)break t}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;c<16;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}if(4&n.wrap&&l!==(65535&n.check)){t.msg=\"header crc mismatch\",n.mode=ze;break}l=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=Fe;break;case 16189:for(;c<32;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}t.adler=n.check=Re(l),l=0,c=0,n.mode=Pe;case Pe:if(0===n.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=l,n.bits=c,Ee;t.adler=n.check=1,n.mode=Fe;case Fe:if(e===xe||e===ke)break t;case je:if(n.last){l>>>=7&c,c-=7&c,n.mode=$e;break}for(;c<3;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}switch(n.last=1&l,l>>>=1,c-=1,3&l){case 0:n.mode=16193;break;case 1:if(Xe(n),n.mode=Le,e===ke){l>>>=2,c-=2;break t}break;case 2:n.mode=16196;break;case 3:t.msg=\"invalid block type\",n.mode=ze}l>>>=2,c-=2;break;case 16193:for(l>>>=7&c,c-=7&c;c<32;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}if((65535&l)!=(l>>>16^65535)){t.msg=\"invalid stored block lengths\",n.mode=ze;break}if(n.length=65535&l,l=0,c=0,n.mode=Ne,e===ke)break t;case Ne:n.mode=16195;case 16195:if(d=n.length,d){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;i.set(r.subarray(o,o+d),a),s-=d,o+=d,u-=d,a+=d,n.length-=d;break}n.mode=Fe;break;case 16196:for(;c<14;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}if(n.nlen=257+(31&l),l>>>=5,c-=5,n.ndist=1+(31&l),l>>>=5,c-=5,n.ncode=4+(15&l),l>>>=4,c-=4,n.nlen>286||n.ndist>30){t.msg=\"too many length or distance symbols\",n.mode=ze;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;c<3;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}n.lens[A[n.have++]]=7&l,l>>>=3,c-=3}for(;n.have<19;)n.lens[A[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},k=_e(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,k){t.msg=\"invalid code lengths set\",n.mode=ze;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;S=n.lencode[l&(1<<n.lenbits)-1],v=S>>>24,g=S>>>16&255,y=65535&S,!(v<=c);){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}if(y<16)l>>>=v,c-=v,n.lens[n.have++]=y;else{if(16===y){for(D=v+2;c<D;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}if(l>>>=v,c-=v,0===n.have){t.msg=\"invalid bit length repeat\",n.mode=ze;break}x=n.lens[n.have-1],d=3+(3&l),l>>>=2,c-=2}else if(17===y){for(D=v+3;c<D;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}l>>>=v,c-=v,x=0,d=3+(7&l),l>>>=3,c-=3}else{for(D=v+7;c<D;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}l>>>=v,c-=v,x=0,d=11+(127&l),l>>>=7,c-=7}if(n.have+d>n.nlen+n.ndist){t.msg=\"invalid bit length repeat\",n.mode=ze;break}for(;d--;)n.lens[n.have++]=x}}if(n.mode===ze)break;if(0===n.lens[256]){t.msg=\"invalid code -- missing end-of-block\",n.mode=ze;break}if(n.lenbits=9,E={bits:n.lenbits},k=_e(1,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,k){t.msg=\"invalid literal/lengths set\",n.mode=ze;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},k=_e(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,k){t.msg=\"invalid distances set\",n.mode=ze;break}if(n.mode=Le,e===ke)break t;case Le:n.mode=Be;case Be:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=l,n.bits=c,pe(t,f),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,l=n.hold,c=n.bits,n.mode===Fe&&(n.back=-1);break}for(n.back=0;S=n.lencode[l&(1<<n.lenbits)-1],v=S>>>24,g=S>>>16&255,y=65535&S,!(v<=c);){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}if(g&&!(240&g)){for(b=v,_=g,w=y;S=n.lencode[w+((l&(1<<b+_)-1)>>b)],v=S>>>24,g=S>>>16&255,y=65535&S,!(b+v<=c);){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}l>>>=b,c-=b,n.back+=b}if(l>>>=v,c-=v,n.back+=v,n.length=y,0===g){n.mode=16205;break}if(32&g){n.back=-1,n.mode=Fe;break}if(64&g){t.msg=\"invalid literal/length code\",n.mode=ze;break}n.extra=15&g,n.mode=16201;case 16201:if(n.extra){for(D=n.extra;c<D;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;S=n.distcode[l&(1<<n.distbits)-1],v=S>>>24,g=S>>>16&255,y=65535&S,!(v<=c);){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}if(!(240&g)){for(b=v,_=g,w=y;S=n.distcode[w+((l&(1<<b+_)-1)>>b)],v=S>>>24,g=S>>>16&255,y=65535&S,!(b+v<=c);){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}l>>>=b,c-=b,n.back+=b}if(l>>>=v,c-=v,n.back+=v,64&g){t.msg=\"invalid distance code\",n.mode=ze;break}n.offset=y,n.extra=15&g,n.mode=16203;case 16203:if(n.extra){for(D=n.extra;c<D;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg=\"invalid distance too far back\",n.mode=ze;break}n.mode=16204;case 16204:if(0===u)break t;if(d=f-u,n.offset>d){if(d=n.offset-d,d>n.whave&&n.sane){t.msg=\"invalid distance too far back\",n.mode=ze;break}d>n.wnext?(d-=n.wnext,p=n.wsize-d):p=n.wnext-d,d>n.length&&(d=n.length),m=n.window}else m=i,p=a-n.offset,d=n.length;d>u&&(d=u),u-=d,n.length-=d;do{i[a++]=m[p++]}while(--d);0===n.length&&(n.mode=Be);break;case 16205:if(0===u)break t;i[a++]=n.length,u--,n.mode=Be;break;case $e:if(n.wrap){for(;c<32;){if(0===s)break t;s--,l|=r[o++]<<c,c+=8}if(f-=u,t.total_out+=f,n.total+=f,4&n.wrap&&f&&(t.adler=n.check=n.flags?Y(n.check,i,f,a-f):q(n.check,i,f,a-f)),f=u,4&n.wrap&&(n.flags?l:Re(l))!==n.check){t.msg=\"incorrect data check\",n.mode=ze;break}l=0,c=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;c<32;){if(0===s)break t;s--,l+=r[o++]<<c,c+=8}if(4&n.wrap&&l!==(4294967295&n.total)){t.msg=\"incorrect length check\",n.mode=ze;break}l=0,c=0}n.mode=16208;case 16208:k=Ce;break t;case ze:k=Ae;break t;case 16210:return Oe;default:return De}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=l,n.bits=c,(n.wsize||f!==t.avail_out&&n.mode<ze&&(n.mode<$e||e!==we))&&Je(t,t.output,t.next_out,f-t.avail_out),h-=t.avail_in,f-=t.avail_out,t.total_in+=h,t.total_out+=f,n.total+=f,4&n.wrap&&f&&(t.adler=n.check=n.flags?Y(n.check,i,f,t.next_out-f):q(n.check,i,f,t.next_out-f)),t.data_type=n.bits+(n.last?64:0)+(n.mode===Fe?128:0)+(n.mode===Le||n.mode===Ne?256:0),(0===h&&0===f||e===we)&&k===Se&&(k=Me),k},inflateEnd:t=>{if(Ve(t))return De;let e=t.state;return e.window&&(e.window=null),t.state=null,Se},inflateGetHeader:(t,e)=>{if(Ve(t))return De;const n=t.state;return 2&n.wrap?(n.head=e,e.done=!1,Se):De},inflateSetDictionary:(t,e)=>{const n=e.length;let r,i,o;return Ve(t)?De:(r=t.state,0!==r.wrap&&r.mode!==Pe?De:r.mode===Pe&&(i=1,i=q(i,e,n,0),i!==r.check)?Ae:(o=Je(t,e,n,n),o?(r.mode=16210,Oe):(r.havedict=1,Se)))},inflateInfo:\"pako inflate (from Nodeca project)\"};var tn=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1};const en=Object.prototype.toString,{Z_NO_FLUSH:nn,Z_FINISH:rn,Z_OK:on,Z_STREAM_END:an,Z_NEED_DICT:sn,Z_STREAM_ERROR:un,Z_DATA_ERROR:ln,Z_MEM_ERROR:cn}=K;function hn(t){this.options=Zt.assign({chunkSize:65536,windowBits:15,to:\"\"},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;let n=Qe.inflateInit2(this.strm,e.windowBits);if(n!==on)throw new Error(Z[n]);if(this.header=new tn,Qe.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=Jt.string2buf(e.dictionary):\"[object ArrayBuffer]\"===en.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=Qe.inflateSetDictionary(this.strm,e.dictionary),n!==on)))throw new Error(Z[n])}function fn(t,e){const n=new hn(e);if(n.push(t),n.err)throw n.msg||Z[n.err];return n.result}hn.prototype.push=function(t,e){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(a=e===~~e?e:!0===e?rn:nn,\"[object ArrayBuffer]\"===en.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=Qe.inflate(n,a),o===sn&&i&&(o=Qe.inflateSetDictionary(n,i),o===on?o=Qe.inflate(n,a):o===ln&&(o=sn));n.avail_in>0&&o===an&&n.state.wrap>0&&0!==t[n.next_in];)Qe.inflateReset(n),o=Qe.inflate(n,a);switch(o){case un:case ln:case sn:case cn:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(0===n.avail_out||o===an))if(\"string\"===this.options.to){let t=Jt.utf8border(n.output,n.next_out),e=n.next_out-t,i=Jt.buf2string(n.output,t);n.next_out=e,n.avail_out=r-e,e&&n.output.set(n.output.subarray(t,t+e),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(o!==on||0!==s){if(o===an)return o=Qe.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},hn.prototype.onData=function(t){this.chunks.push(t)},hn.prototype.onEnd=function(t){t===on&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=Zt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var dn={Inflate:hn,inflate:fn,inflateRaw:function(t,e){return(e=e||{}).raw=!0,fn(t,e)},ungzip:fn,constants:K};const{Deflate:pn,deflate:mn,deflateRaw:vn,gzip:gn}=fe,{Inflate:yn,inflate:bn,inflateRaw:_n,ungzip:wn}=dn;var xn={Deflate:pn,deflate:mn,deflateRaw:vn,gzip:gn,Inflate:yn,inflate:bn,inflateRaw:_n,ungzip:wn,constants:K};function kn(t){return kn=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},kn(t)}function Sn(t){return function(t){if(Array.isArray(t))return Cn(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Cn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cn(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Cn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function En(){En=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new M(r||[]);return i(a,\"_invoke\",{value:E(t,n,s)}),a}function h(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var f=\"suspendedStart\",d=\"suspendedYield\",p=\"executing\",m=\"completed\",v={};function g(){}function y(){}function b(){}var _={};l(_,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(T([])));x&&x!==n&&r.call(x,a)&&(_=x);var k=b.prototype=g.prototype=Object.create(_);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var u=h(t[i],t,o);if(\"throw\"!==u.type){var l=u.arg,c=l.value;return c&&\"object\"==kn(c)&&r.call(c,\"__await\")?e.resolve(c.__await).then((function(t){n(\"next\",t,a,s)}),(function(t){n(\"throw\",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return n(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=f;return function(o,a){if(i===p)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=D(s,r);if(u){if(u===v)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=p;var l=h(e,n,r);if(\"normal\"===l.type){if(i=r.done?m:d,l.arg===v)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=m,r.method=\"throw\",r.arg=l.arg)}}}function D(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,D(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),v;var o=h(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,v):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(A,this),this.reset(!0)}function T(e){if(e||\"\"===e){var n=e[a];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(kn(e)+\" is not iterable\")}return y.prototype=b,i(k,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:y,configurable:!0}),y.displayName=l(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===y||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),l(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),l(k,u,\"Generator\"),l(k,a,(function(){return this})),l(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)\"t\"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=r.call(a,\"catchLoc\"),l=r.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;O(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),v}},e}function Dn(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function An(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Dn(o,r,i,a,s,\"next\",t)}function s(t){Dn(o,r,i,a,s,\"throw\",t)}a(void 0)}))}}function On(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,Mn(r.key),r)}}function Mn(t){var e=function(t,e){if(\"object\"!=kn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=kn(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==kn(e)?e:e+\"\"}var Tn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t)}return e=t,n=null,u=[{key:\"Abcc\",value:(F=An(En().mark((function t(e){return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t){chrome.storage.local.get(e,(function(n){return n&&n[e]?t(n[e]):t({})}))})));case 1:case\"end\":return t.stop()}}),t)}))),function(t){return F.apply(this,arguments)})},{key:\"wbeh\",value:(P=An(En().mark((function t(e,n){var r;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r={})[e]=n,t.next=4,chrome.storage.local.set(r);case 4:case\"end\":return t.stop()}}),t)}))),function(t,e){return P.apply(this,arguments)})},{key:\"Bi9dF\",value:(I=An(En().mark((function t(e){var n,r,i,o,a=arguments;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:0,r=a.length>2&&void 0!==a[2]?a[2]:1,i=a.length>3?a[3]:void 0,o=Math.floor(Math.random()*n+e),r&&i&&(o=Math.max(o/r,i)),t.next=7,new Promise((function(t){setTimeout(t,o)}));case 7:return t.abrupt(\"return\",t.sent);case 8:case\"end\":return t.stop()}}),t)}))),function(t){return I.apply(this,arguments)})},{key:\"HfbaJ\",value:function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}},{key:\"RhjhR\",value:function(t){var e=t.split(\".\");return 1e3*parseInt(e[0])*1e3+1e3*parseInt(e[1])+parseInt(e[2])}},{key:\"Oeb0\",value:function(e,n){try{return t.RhjhR(e)>=t.RhjhR(n)}catch(t){return!1}}},{key:\"_d5at\",value:function(t,e,n){for(;\"\".concat(t).length<n;)t=\"\".concat(e).concat(t);return t}},{key:\"Dfj0D\",value:(T=An(En().mark((function t(e){var n,r,i,o;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.key,i=e.B174bD,o=void 0===i?1:i,null!==(n=chrome.runtime)&&void 0!==n&&n.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"zo4B\",label:{key:r,B174bD:o}},(function(n){n?t(n):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return T.apply(this,arguments)})},{key:\"Mc76\",value:(M=An(En().mark((function t(e){var n,r,i,o,a,s,u;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.key,i=e.value,o=e.B174bD,a=void 0===o?1:o,s=e.q177o,u=void 0!==s&&s,null!==(n=chrome.runtime)&&void 0!==n&&n.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"TpiT\",label:{key:r,value:i,B174bD:a,q177o:u}},(function(n){n?t(n):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return M.apply(this,arguments)})},{key:\"Zhc9_\",value:(O=An(En().mark((function t(e){var n,r,i,o;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.key,i=e.B174bD,o=void 0===i?1:i,null!==(n=chrome.runtime)&&void 0!==n&&n.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"r136v\",label:{key:r,B174bD:o}},(function(n){n?t(n):e()}))})));case 4:case\"end\":return t.stop()}}),t)}))),function(t){return O.apply(this,arguments)})},{key:\"Cc9h\",value:(A=An(En().mark((function e(n,r){var i,o,a,s,u,l,c;return En().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(i=chrome.runtime)&&void 0!==i&&i.id){e.next=2;break}return e.abrupt(\"return\",0);case 2:return 3323===n?(s=\"rl94t\",u=\"vm2ex\"):3635===n&&(s=\"Ml74\",u=\"_m0a\"),e.next=5,t.Dfj0D({key:s,B174bD:1});case 5:if(e.t1=o=e.sent,e.t0=null===e.t1,e.t0){e.next=9;break}e.t0=void 0===o;case 9:if(!e.t0){e.next=13;break}e.t2=void 0,e.next=14;break;case 13:e.t2=o.value;case 14:if(e.t2===r){e.next=22;break}return e.next=19,t.Mc76({key:s,value:r,B174bD:1});case 19:a=1,e.next=36;break;case 22:return e.next=24,t.Dfj0D({key:u,B174bD:1});case 24:if(e.t4=l=e.sent,e.t3=null===e.t4,e.t3){e.next=28;break}e.t3=void 0===l;case 28:if(!e.t3){e.next=32;break}e.t5=void 0,e.next=33;break;case 32:e.t5=l.value;case 33:c=e.t5,a=parseInt(c?c+\"\":\"1\")+1;case 36:return e.next=38,t.Mc76({key:u,value:a,B174bD:1});case 38:return e.abrupt(\"return\",a);case 39:case\"end\":return e.stop()}}),e)}))),function(t,e){return A.apply(this,arguments)})},{key:\"_g06\",value:(D=An(En().mark((function e(n){var r,i,o,a,s;return En().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Dfj0D({key:\"CSLcaeg\",B174bD:-1});case 2:if(e.t1=r=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===r;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=r.value;case 11:return o=e.t2,e.next=14,t.Dfj0D({key:\"CSLid5l\"});case 14:if(e.t4=i=e.sent,e.t3=null===e.t4,e.t3){e.next=18;break}e.t3=void 0===i;case 18:if(!e.t3){e.next=22;break}e.t5=void 0,e.next=23;break;case 22:e.t5=i.value;case 23:return a=e.t5,s=1,3323===n?s=parseFloat((null==o?void 0:o.hcs)||a||\"1.1708\"):3635===n&&(s=parseFloat((null==o?void 0:o.res)||a||\"1.1708\")),e.abrupt(\"return\",s);case 27:case\"end\":return e.stop()}}),e)}))),function(t){return D.apply(this,arguments)})},{key:\"VfeeX\",value:(E=An(En().mark((function t(){var e;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s1c4\"},(function(n){n?t(n):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return E.apply(this,arguments)})},{key:\"yfml\",value:(C=An(En().mark((function t(){var e;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x236B\"},(function(n){n?t(n):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return C.apply(this,arguments)})},{key:\"qi5f\",value:(S=An(En().mark((function t(){var e;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"x1cmx\"},(function(n){n?t(n):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return S.apply(this,arguments)})},{key:\"FcflF\",value:(k=An(En().mark((function t(){var e;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"B142B\"},(function(n){n?t(n):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return k.apply(this,arguments)})},{key:\"xehcz\",value:(x=An(En().mark((function t(){var e;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"s163\"},(function(n){n?t(n):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return x.apply(this,arguments)})},{key:\"Jef6N\",value:(w=An(En().mark((function t(){var e;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(e=chrome.runtime)&&void 0!==e&&e.id){t.next=2;break}return t.abrupt(\"return\",void 0);case 2:return t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"D18fF\"},(function(n){n?t(n):e()}))})));case 3:case\"end\":return t.stop()}}),t)}))),function(){return w.apply(this,arguments)})},{key:\"tg42v\",value:(_=An(En().mark((function t(e){var n;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.next=2;break;case 2:if(null!==(n=chrome.runtime)&&void 0!==n&&n.id){t.next=4;break}return t.abrupt(\"return\",void 0);case 4:return t.abrupt(\"return\",new Promise((function(t,n){chrome.runtime.sendMessage({type:\"q1fj\",label:e},(function(e){e?t(e):n()}))})));case 5:case\"end\":return t.stop()}}),t)}))),function(t){return _.apply(this,arguments)})},{key:\"Bc2bD\",value:(b=An(En().mark((function e(n){var r,i,o,a,s,u,l,c,h,f,d,p,m,v,g=arguments;return En().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=g.length>1&&void 0!==g[1]&&g[1],i=g.length>2&&void 0!==g[2]?g[2]:null,o=g.length>3&&void 0!==g[3]?g[3]:null,a=g.length>4&&void 0!==g[4]?g[4]:1,n&&n.isConnected){e.next=7;break}return e.abrupt(\"return\");case 7:if(s=n.getBoundingClientRect(),null!==i&&null!==o||(i=s.left+s.width/2,o=s.top+s.height/2),!isNaN(i)&&!isNaN(o)){e.next=12;break}return e.abrupt(\"return\");case 12:if(!r){e.next=29;break}u=[{e:\"mouseover\",w:30/a},{e:\"mouseenter\",w:15/a}].concat(Sn(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/a})),[{e:\"mousedown\",w:35/a},{e:\"mouseup\",w:30/a},{e:\"click\",w:35/a}],Sn(new Array(Math.floor(3*Math.random())).fill({e:\"mousemove\",w:15/a})),[{e:\"mouseout\",w:25/a}]),l=0;case 15:if(!(l<u.length)){e.next=27;break}return c=u[l].e,h=50+Math.floor(100*Math.random()),f=50+Math.floor(200*Math.random()),\"mouseenter\"!==c&&\"mouseout\"!==c?(i=s.left+s.width/2,o=s.top+s.height/2):(i=s.left+(\"mouseenter\"===c?0:s.width),o=s.top+(\"mouseenter\"===c?0:s.height),i+=10*Math.random()-5,o+=20*Math.random()-5),d=new MouseEvent(c,{detail:\"mouseover\"===c?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i,clientY:o,screenX:h,screenY:f}),n.dispatchEvent(d),e.next=24,t.Bi9dF(u[l].w);case 24:l++,e.next=15;break;case 27:e.next=39;break;case 29:p=[{e:\"mouseover\",w:30/a},{e:\"mouseenter\",w:15/a},{e:\"mousedown\",w:30/a},{e:\"mouseup\",w:30/a},{e:\"click\",w:50/a},{e:\"mouseout\",w:35/a}],m=0;case 31:if(!(m<p.length)){e.next=39;break}return v=new MouseEvent(p[m].e,{detail:\"mouseover\"===p[m].e?0:1,view:window,bubbles:!0,cancelable:!0,clientX:i+4,clientY:o+4}),n.dispatchEvent(v),e.next=36,t.Bi9dF(p[m].w);case 36:m++,e.next=31;break;case 39:case\"end\":return e.stop()}}),e)}))),function(t){return b.apply(this,arguments)})},{key:\"Jfi2J\",value:function(t){var e;if(!t)return null;var n=null===(e=t.style)||void 0===e?void 0:e.background.trim().match(/(?!^)\".*?\"/g);return n&&0!==n.length?n[0].replaceAll('\"',\"\"):null}},{key:\"BfgoD\",value:function(t){var e;return null==t||null===(e=t.src)||void 0===e?void 0:e.trim()}},{key:\"qd5l\",value:function(t,e){return t[0]=t[0]>=0?t[0]:0,t[1]=t[1]>=0?t[1]:0,t[2]=t[0]+t[2]<=e?t[2]:e-t[0],t[3]=t[1]+t[3]<=e?t[3]:e-t[1],t}},{key:\"yc01\",value:function(t){var e=t.map((function(t){return Math.exp(t)})),n=e.reduce((function(t,e){return t+e}),0);return e.map((function(t){return t/n}))}},{key:\"BgncB\",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.querySelector(e),i=null!==r;return i&&n&&(i=t.Yej5(r)),i}},{key:\"Mh6a\",value:function(t,e){if(t.length!==e.length)throw new Error(\"must have the same length\");return t.reduce((function(t,n,r){return t+n*e[r]}),0)}},{key:\"HdcaL\",value:function(t){return Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e,2)}),0))}},{key:\"shk4\",value:function(e){for(var n=[],r=0;r<e.length;r++){for(var i=new Array(e.length).fill(0),o=0;o<r;o++)i[o]=n[o][r];for(var a=e[r],s=r+1;s<e.length;s++){var u=e[s];i[s]=t.qhi5(a,u)}n.push(Sn(i))}return n}},{key:\"qhi5\",value:function(e,n){return t.Mh6a(e,n)/(t.HdcaL(e)*t.HdcaL(n))}},{key:\"ze45D\",value:function(t,e){var n=new Set(Object.keys(t)),r=new Set(Object.keys(e)),i=Sn(n).filter((function(t){return r.has(t)})),o=new Set([].concat(Sn(n),Sn(r)));return i.length/o.size}},{key:\"Yej5\",value:function(t){if(!t)return!1;var e=window.getComputedStyle(t);return!(\"none\"===e.display||\"hidden\"===e.visibility||0===t.offsetWidth&&0===t.offsetHeight||\"fixed\"===e.position&&\"hidden\"===e.visibility||null===t.offsetParent)}},{key:\"Cd86\",value:function(t,e){var n=t.data,r=[],o=0;if(2===e.length)for(var a=0;a<e[0];a++){for(var s=[],u=0;u<e[1];u++)s.push(n[o]),o++;r.push(s)}else if(3===e.length)for(var l=0;l<e[0];l++){for(var c=[],h=0;h<e[1];h++){for(var f=[],d=0;d<e[2];d++)f.push(n[o]),o++;c.push(f)}r.push(c)}else if(4===e.length)for(var p=0;p<e[0];p++){for(var m=[],v=0;v<e[1];v++){for(var g=[],y=0;y<e[2];y++){for(var b=[],_=0;_<e[3];_++)b.push(n[o]),o++;g.push(b)}m.push(g)}r.push(m)}return i.a(r)}},{key:\"Iepc\",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Sn(e);n&&(r[0]=t[0],r[1]=t[1],r[2]=e[2]-(e[0]-r[0]),r[3]=e[3]-(e[1]-r[1]));var i=Math.max(t[0],r[0]),o=Math.max(t[1],r[1]),a=Math.min(t[2],r[2]),s=Math.min(t[3],r[3]);return Math.max(0,a-i)*Math.max(0,s-o)}},{key:\"FbijJ\",value:function(e,n){return(e[2]-e[0])*(e[3]-e[1])+(n[2]-n[0])*(n[3]-n[1])-t.Iepc(e,n)}},{key:\"tel7v\",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.Iepc(e,n,r)/t.FbijJ(e,n)}},{key:\"ue9h\",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return!!((e[0]<=t[0]||r&&e[0]-t[0]<5)&&(e[1]<=t[1]||r&&e[1]-t[1]<5)&&(e[2]>=t[2]||r&&e[2]-t[2]>-5)&&(e[3]>=t[3]||r&&e[3]-t[3]>-5))||!n&&(t[0]<=e[0]||r&&t[0]-e[0]<5)&&(t[1]<=e[1]||r&&t[1]-e[1]<5)&&(t[2]>=e[2]||r&&t[2]-e[2]>-5)&&(t[3]>=e[3]||r&&t[3]-e[3]>-5)}},{key:\"rdfov\",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=[];if(e.length>0){e.sort((function(t,e){return e[4]-t[4]}));for(var i=function(){var i=e.shift();r.push(i),e=e.filter((function(e){return!t.ue9h(e,i,!0,n)}))};e.length>0;)i()}return r}},{key:\"_e92_\",value:function(t,e){var n=t[2]<e[0],r=t[0]>e[2],i=t[3]<e[1],o=t[1]>e[3];return!(n||r||i||o)}},{key:\"thebv\",value:function(e,n){for(var r=0;r<n.length;r++)t._e92_(e,n[r])}},{key:\"Ff32H\",value:function(t){if(0===t.length)return-1;var e=Math.max.apply(Math,Sn(t));return t.indexOf(e)}},{key:\"Hf0eH\",value:function(t){if(0===t.length)return-1;var e=Math.min.apply(Math,Sn(t));return t.indexOf(e)}},{key:\"rc4bt\",value:function(t){return 1/(1+Math.exp(-t))}},{key:\"_d1o\",value:function(t,e,n){for(;\"\".concat(t).length<n;)t=\"\".concat(e).concat(t);return t}},{key:\"Shoa\",value:function(t){for(var e=t.bitmap.width,n=t.bitmap.height,r=0,i=0,o=0;o<n;o++)for(var a=0;a<e;a++){var s=4*(o*e+a);t.bitmap.data[s]<128?r++:i++}return r/(r+i)}},{key:\"Ii11\",value:function(t,e,n){if(t&&0!==t.length){for(var r=t.map((function(t){return[t.x,t.y]})),i=(new o.DBSCAN).run(r,e,n,null),a=0,s=0,u=0,l=0;l<i.length;l++)if(i[l].length>a)s=l,a=i[l].length,u=i[l].reduce((function(t,e){return t+=e.value}),0);else if(i[l].length===a){var c=i[l].reduce((function(t,e){return t+=e.value}),0);c<u&&(s=l,a=i[l].length,u=c)}return i[s]}}},{key:\"vh3fx\",value:(y=An(En().mark((function t(e,n){var i,o,a,s,u,l,c,h=arguments;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=h.length>2&&void 0!==h[2]?h[2]:\"\",null!==(i=chrome.runtime)&&void 0!==i&&i.id){t.next=3;break}return t.abrupt(\"return\",void 0);case 3:return t.next=5,e.getBase64Async(r.a.AUTO);case 5:return s=t.sent,u=/[<>:\"\\/\\\\|?*\\x00-\\x1F]/g,a=a.replace(u,\"\").replaceAll(\".\",\"\").replace(/\\s+/g,\"_\"),l=(null===(o=a)||void 0===o?void 0:o.length)>0?\"_solver_raw/\"+a+\"/\"+n:\"_solver_raw/\"+n,c={url:s,filename:l,saveAs:!1,conflictAction:\"uniquify\"},t.abrupt(\"return\",new Promise((function(t,e){chrome.runtime.sendMessage({type:\"q1j6\",label:c},(function(n){n?t(n):e()}))})));case 11:case\"end\":return t.stop()}}),t)}))),function(t,e){return y.apply(this,arguments)})},{key:\"DgmgF\",value:function(t,e,n,r){var i={x:0,y:0},o=!1;switch(r){case 0:i={x:e-1,y:n-1};for(var a=0;a<n;a++){for(var s=0;s<e;s++)if(!o&&255===t[a*e+s]&&s<i.x&&a<i.y){i.x=s,i.y=a,o=!0;break}if(o)break}break;case 1:i={x:0,y:0};for(var u=e-1;u>=0;u--){for(var l=n-1;l>=0;l--)if(!o&&255===t[l*e+u]&&u>i.x&&l>i.y){i.x=u,i.y=l,o=!0;break}if(o)break}break;case 2:i={x:0,y:0};for(var c=n-1;c>=0;c--){for(var h=e-1;h>=0;h--)if(!o&&255===t[c*e+h]&&h>i.x&&c>i.y){i.x=h,i.y=c,o=!0;break}if(o)break}break;case 3:i={x:e,y:n};for(var f=0;f<e;f++){for(var d=0;d<n;d++)if(!o&&255===t[d*e+f]&&f<i.x&&d<i.y){i.x=f,i.y=d,o=!0;break}if(o)break}}return i}},{key:\"Zg20Z\",value:function(t,e){var n=Array.from({length:e},(function(){return 0})),i=256/e;t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,e){var o=this.getPixelColor(t,e),a=r.a.intToRGBA(o),s=a.r,u=a.g,l=a.b,c=Math.floor((s+u+l)/3/i);n[c]++}));var o=n.reduce((function(t,e){return t+e}),0);return n.map((function(t){return t/o}))}},{key:\"_hhk\",value:function(t,e){var n=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,i){var o=this.getPixelColor(t,i),a=r.a.intToRGBA(o),s=a.r,u=a.g,l=a.b;Math.abs(s-u)<e&&Math.abs(s-l)<e&&Math.abs(u-l)<e&&n++})),n/(t.bitmap.width*t.bitmap.height)}},{key:\"Pdk4P\",value:function(t,e){if(e>t.length)return null;for(var n,r=0,i=0;i<e;i++)r+=t[i];n=r;for(var o=e;o<t.length;o++)r=r+t[o]-t[o-e],n=Math.max(n,r);return n}},{key:\"Hf84H\",value:function(e){var n=t.Zg20Z(e,32),r=n.indexOf(Math.max.apply(Math,Sn(n)));if(n[30]+n[31]+n[30]>.93||n[0]+n[1]+n[2]>.93||r>2&&r<30&&n[r]>.93)return 0;if(n[29]+n[30]+n[31]+n[0]+n[1]+n[2]>.93||n[30]+n[31]+n[29]>.9||n[0]+n[1]+n[2]>.9)return 1;var i=t.Pdk4P(n,2),o=t.Pdk4P(n,3);return i>.85||o>.9?2:t._hhk(e,10)>.8?3:99}},{key:\"vcelv\",value:(g=An(En().mark((function t(e){var n,i,o,a,s,u;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),o=r.a.intToRGBA(i),a=o.r,s=o.g,u=o.b,l=Math.floor((a+s+u)/3);l>80&&l<200&&(n[l]=(n[l]||0)+1)})),Object.entries(n).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(n).reduce((function(t,e){return n[t]>n[e]?t:e})),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var n=this.getPixelColor(t,e),o=r.a.intToRGBA(n),a=o.r,s=o.g,u=o.b,l=Math.floor((a+s+u)/3);Math.abs(i-l)>15&&this.setPixelColor(r.a.rgbaToInt(255,255,255,255),t,e)})),n={},e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var i=this.getPixelColor(t,e),o=r.a.intToRGBA(i),a=o.r,s=o.g,u=o.b;if(255!==a&&255!==s&&255!==u){var l=a+\"_\"+s+\"_\"+u;n[l]=(n[l]||0)+1}})),Object.entries(n).sort((function(t,e){return e[1]-t[1]})),i=Object.keys(n).reduce((function(t,e){return n[t]>n[e]?t:e})),o=i.split(\"_\"),a=parseInt(o[0]),s=parseInt(o[1]),u=parseInt(o[2]),e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e){var n=this.getPixelColor(t,e),i=r.a.intToRGBA(n),o=i.r,l=i.g,c=i.b;Math.abs(a-o)>40||Math.abs(s-l)>40||Math.abs(u-c)>40||Math.abs(a-o)+Math.abs(s-l)+Math.abs(u-c)>80?this.setPixelColor(r.a.rgbaToInt(255,255,255,255),t,e):this.setPixelColor(r.a.rgbaToInt(0,0,0,255),t,e)})),t.abrupt(\"return\",e);case 17:case\"end\":return t.stop()}}),t)}))),function(t){return g.apply(this,arguments)})},{key:\"PblhR\",value:function(t,e,n){var i=0;return t.scan(0,0,t.bitmap.width,t.bitmap.height,(function(t,o){var a=this.getPixelColor(t,o),s=r.a.intToRGBA(a),u=s.r,l=s.g,c=s.b;Math.abs(u-e[0])<=n&&Math.abs(l-e[1])<=n&&Math.abs(c-e[2])<=n&&i++})),i/(t.bitmap.width*t.bitmap.height)}},{key:\"Fg6gH\",value:function(t,e,n,i,o){for(var a=[{x:e,y:n}],s={x1:e,y1:n,x2:e,y2:n};a.length>0;){var u=a.pop(),l=u.x,c=u.y;if(l>=0&&l<t.bitmap.width&&c>=0&&c<t.bitmap.height){var h=t.getPixelIndex(l,c);if(t.bitmap.data[h]===i){var f=r.a.rgbaToInt(o,o,o,255);t.setPixelColor(f,l,c),l<s.x1&&(s.x1=l),l>s.x2&&(s.x2=l),c<s.y1&&(s.y1=c),c>s.y2&&(s.y2=c),a.push({x:l+1,y:c}),a.push({x:l-1,y:c}),a.push({x:l,y:c+1}),a.push({x:l,y:c-1})}}}return s}},{key:\"Ih91\",value:function(e,n){var r=[];return e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(i,o,a){if(e.bitmap.data[a]===n){var s=t.Fg6gH(e,i,o,n,250);r.push(s)}})),r}},{key:\"Mgk4\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var n=t[0][e],r=1;r<t.length;r++)t[r][e]>n&&(n=t[r][e]);return n}}},{key:\"rgdcr\",value:function(t,e){if(!(!Array.isArray(t)||e<0||e>=t[0].length)){for(var n=t[0][e],r=1;r<t.length;r++)t[r][e]<n&&(n=t[r][e]);return n}}},{key:\"Agh9\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Number.MIN_SAFE_INTEGER,i=-1,o=-1,a=0;a<t.length;a++)if(e<0)for(var s=0;s<t[a].length;s++)a!==s&&t[a][s]>r&&(r=t[a][s],i=a,o=s);else t[a][e]>r&&(null==n||!n.includes(a))&&a!==e&&(r=t[a][e],i=a,o=e);return[i,o,t[i][o]]}},{key:\"ygd0\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Number.MAX_SAFE_INTEGER,i=-1,o=-1,a=0;a<t.length;a++)if(e<0)for(var s=0;s<t[a].length;s++)a!==s&&t[a][s]<r&&(r=t[a][s],i=a,o=s);else t[a][e]<r&&(null==n||!n.includes(a))&&a!==e&&(r=t[a][e],i=a,o=e);return[i,o,t[i][o]]}},{key:\"Gce5\",value:function(t,e,n){return t.filter((function(t,n){return!e.includes(n)})).map((function(t){return t.filter((function(t,e){return!n.includes(e)}))}))}},{key:\"Ri54T\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,n){chrome.runtime.sendMessage({type:\"C1k3\",label:t},(function(t){t?e(t):n()}))}))}},{key:\"sdnj\",value:function(t){var e;if(null!==(e=chrome.runtime)&&void 0!==e&&e.id)return new Promise((function(e,n){chrome.runtime.sendMessage({type:\"R1pcR\",label:t},(function(t){t?e(t):n()}))}))}},{key:\"LcifN\",value:(v=An(En().mark((function t(e,n){var i,o,a,s,u,l,c,h,f,d,p,m,v,g,y,b,_;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i=e.bitmap.width,o=e.bitmap.height,a=n[0],s=n[1],u=0;u<o;u++)for(l=0;l<i;l++){for(c=[0,0,0],h=0,f=-a;f<=a;f++)for(d=-a;d<=a;d++)m=u+f,(p=l+d)>=0&&p<i&&m>=0&&m<o&&(v=e.getPixelColor(p,m),g=r.a.intToRGBA(v),c[0]+=g.r,c[1]+=g.g,c[2]+=g.b,h++);y=[Math.floor(c[0]/h),Math.floor(c[1]/h),Math.floor(c[2]/h)],b=e.getPixelColor(l,u),_=r.a.intToRGBA(b),Math.abs(_.r-y[0])+Math.abs(_.g-y[1])+Math.abs(_.b-y[2])<s&&e.setPixelColor(r.a.rgbaToInt.apply(r.a,y.concat([_.a])),l,u)}return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e){return v.apply(this,arguments)})},{key:\"Oe76\",value:(m=An(En().mark((function t(e,n,i){var o,a,s,u,l,c,h,f,d,p,m,v,g,y,b,_,w,x,k,S,C;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(o=e.bitmap,a=o.width,s=o.height,u=Array.from({length:s},(function(t,n){return Array.from({length:a},(function(t,i){return r.a.intToRGBA(e.getPixelColor(i,n))}))})),l=new Array(s),c=0;c<s;c++)for(l[c]=new Array(a),h=0;h<a;h++){for(f=0,d=0,p=0,m=0,v=-n;v<=n;v++)for(g=-n;g<=n;g++)b=c+v,(y=h+g)>=0&&y<a&&b>=0&&b<s&&(_=u[b][y],f+=_.r,d+=_.g,p+=_.b,m++);l[c][h]={r:Math.floor(f/m),g:Math.floor(d/m),b:Math.floor(p/m),a:u[c][h].a}}for(w=0;w<s;w++)for(x=0;x<a;x++)k=u[w][x],S=l[w][x],Math.abs(k.r-S.r)+Math.abs(k.g-S.g)+Math.abs(k.b-S.b)<i&&(C=r.a.rgbaToInt(S.r,S.g,S.b,S.a),e.setPixelColor(C,x,w));return t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t,e,n){return m.apply(this,arguments)})},{key:\"ycma\",value:(p=An(En().mark((function e(n,r){var i;return En().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt(\"return\",n);case 2:e.t0=En().keys(r);case 3:if((e.t1=e.t0()).done){e.next=30;break}if(i=e.t1.value,!r.hasOwnProperty(i)){e.next=28;break}e.t2=i,e.next=\"bw\"===e.t2?9:\"b\"===e.t2?13:\"c\"===e.t2?15:\"g\"===e.t2?17:\"p\"===e.t2?19:\"cbl\"===e.t2||\"ceb\"===e.t2||\"ced\"===e.t2||\"cee\"===e.t2||\"csh\"===e.t2?21:\"dns\"===e.t2?23:27;break;case 9:return e.next=11,t.ubnk(n);case 11:return n=e.sent,e.abrupt(\"break\",28);case 13:return n.blur(r[i]),e.abrupt(\"break\",28);case 15:return n.contrast(r[i]),e.abrupt(\"break\",28);case 17:return r[i]&&n.grayscale(),e.abrupt(\"break\",28);case 19:return n.pixelate(r[i]),e.abrupt(\"break\",28);case 21:return n.convolute([[r[i][0],r[i][1],r[i][2]],[r[i][3],r[i][4],r[i][5]],[r[i][6],r[i][7],r[i][8]]]),e.abrupt(\"break\",28);case 23:return e.next=25,t.Oe76(n,r[i][0],r[i][1]);case 25:return n=e.sent,e.abrupt(\"break\",28);case 27:return e.abrupt(\"break\",28);case 28:e.next=3;break;case 30:return e.abrupt(\"return\",n);case 31:case\"end\":return e.stop()}}),e)}))),function(t,e){return p.apply(this,arguments)})},{key:\"ubnk\",value:(d=An(En().mark((function t(e){var n,r,i;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=0,r=0,e.scan(0,0,e.bitmap.width,e.bitmap.height,(function(t,e,i){var o=this.bitmap.data[i+0],a=this.bitmap.data[i+1],s=this.bitmap.data[i+2];n+=.299*o+.587*a+.114*s,r++})),i=n/r,e.greyscale().threshold({max:i}),t.abrupt(\"return\",e);case 6:case\"end\":return t.stop()}}),t)}))),function(t){return d.apply(this,arguments)})},{key:\"He09J\",value:(f=An(En().mark((function t(e){var n,i,o,s=arguments;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=s.length>1&&void 0!==s[1]?s[1]:null,i=null,t.prev=2,\"string\"!=typeof e){t.next=20;break}if(!e.startsWith(\"data:image/\")){t.next=13;break}if(o=e.split(\",\")[1],n&&(i=n[o.subStr(0,256)]),i){t.next=11;break}return t.next=10,r.a.read(a.Buffer.from(o,\"base64\"));case 10:i=t.sent;case 11:t.next=18;break;case 13:if(n&&(i=n[e]),i){t.next=18;break}return t.next=17,r.a.read(e);case 17:i=t.sent;case 18:t.next=21;break;case 20:\"object\"===kn(e)&&(i=e);case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(2);case 26:return t.abrupt(\"return\",i);case 27:case\"end\":return t.stop()}}),t,null,[[2,23]])}))),function(t){return f.apply(this,arguments)})},{key:\"Df72H\",value:function(t,e,n){for(var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=e.bitmap.data,o=[],a=[],s=[],u=0;u<i.length;u+=4)o.push(i[u]),a.push(i[u+1]),s.push(i[u+2]);var l=o.concat(a,s),c=new Float32Array(l.map((function(t){return t/255})));if(r)for(var h=[.485,.456,.406],f=[.229,.224,.225],d=0;d<c.length;d++)c[d]=(c[d]-h[d%3])/f[d%3];return new t.Tensor(\"float32\",c,n)}},{key:\"Khl9\",value:(h=An(En().mark((function e(n,i,o){var a,s,u,l;return En().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.He09J(o);case 2:return(a=e.sent).resize(224,224,r.a.RESIZE_BILINEAR),s=t.Df72H(n,a,[1,3,224,224],!0),(u={})[i.inputNames[0]]=s,e.next=9,i.run(u);case 9:return l=e.sent,e.abrupt(\"return\",l[i.outputNames[0]].data);case 11:case\"end\":return e.stop()}}),e)}))),function(t,e,n){return h.apply(this,arguments)})},{key:\"qcbg\",value:(c=An(En().mark((function e(n,i,o,a,s){var u,l,c,h,f,d,p,m,v=arguments;return En().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=v.length>5&&void 0!==v[5]?v[5]:null,e.next=3,t.He09J(o);case 3:return(l=e.sent).resize(s,s,r.a.RESIZE_BILINEAR),c=t.Df72H(i,l,[1,3,s,s],!0),(h={})[a.inputNames[0]]=c,e.next=10,a.run(h);case 10:if(f=e.sent,d=f[a.outputNames[0]],!u){e.next=21;break}return(h={})[u.inputNames[0]]=d,e.next=17,u.run(h);case 17:m=e.sent,p=m[u.outputNames[0]].data,e.next=22;break;case 21:p=d.data;case 22:return e.abrupt(\"return\",p);case 23:case\"end\":return e.stop()}}),e)}))),function(t,e,n,r,i){return c.apply(this,arguments)})},{key:\"vf8kv\",value:(l=An(En().mark((function t(e){var n,r,i,o,a;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(n=JSON.parse(JSON.stringify(e))).CSLc9jd,r=new TextEncoder,i=r.encode(n),t.next=6,crypto.subtle.digest(\"SHA-256\",i);case 6:return o=t.sent,a=Array.from(new Uint8Array(o)),t.abrupt(\"return\",a.map((function(t){return t.toString(16).padStart(2,\"0\")})).join(\"\"));case 9:case\"end\":return t.stop()}}),t)}))),function(t){return l.apply(this,arguments)})},{key:\"NdikP\",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"av\",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i={};return Sn(new Set([].concat(Sn(Object.keys(t)),Sn(Object.keys(e))))).forEach((function(o){var a=t[o],s=e[o];void 0!==a&&void 0!==s?\"av\"===n?i[o]=(a+s)/2:\"mx\"===n?i[o]=Math.max(a+s):\"mn\"===n?i[o]=Math.min(a+s):\"ad\"===n?i[o]=a+s:\"ft\"===n?i[o]=a:\"lt\"===n?i[o]=s:\"ap\"===n?i[o]=a+r:\"number\"==typeof n&&(i[o]=a*(1-n)+s*n):i[o]=void 0!==a?a:s})),i}},{key:\"Kiai\",value:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length,o=new Array(i>4?i-4:0),a=4;a<i;a++)o[a-4]=arguments[a];var u=o.length>0?\": [\":\"\";if(o.forEach((function(t){u=Array.isArray(t)?u.concat(t.sort().join(\" \")+\", \"):\"object\"===kn(t)&&null!==t?u.concat(JSON.stringify(t)+\", \"):u.concat(t+\", \")})),u=o.length>0?u.slice(0,-2).concat(\"]\"):\"\",t.t0&&t.t0 instanceof s.a){1===n?(t.t0.push(performance.now()),t.t0.size(),r?(-1,t.t0.push(-1)):t.t0.push(performance.now())):0===n?!t.t0.isEmpty()&&(-1===t.t0.pop()?(t.t0.push(-1),t.t0.size()):(performance.now(),t.t0.push(performance.now()),t.t0.size())):-1===n&&!t.t0.isEmpty()&&(t.t0.pop(),t.t0.size(),performance.now(),t.t0.pop())}}},{key:\"Ii24\",value:function(t){for(var e=t.replace(\"data:application/octet-stream;base64,\",\"\"),n=window.atob(e),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}},{key:\"Gg95\",value:function(t){var e=new Float32Array(t).buffer,n=xn.deflate(new Uint8Array(e));return btoa(String.fromCharCode.apply(String,Sn(n)))}},{key:\"ud01\",value:function(t,e){var n=(t.length-1)*e,r=Math.floor(n),i=Math.ceil(n),o=n-r;return i===r?t[r]:t[r]*(1-o)+t[i]*o}},{key:\"Xe5nX\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1/0,r=0,i=1;i<t.length-e;i++){var o=t[i-1],a=t[i];if(o>1e-8){var s=a/o;s>n&&(n=s,r=i)}}return t[r]}},{key:\"Ch1b\",value:function(t){var e=0;t=t||\"\";for(var n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return e}}],n&&On(e.prototype,n),u&&On(e,u),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,n,u,l,c,h,f,d,p,m,v,g,y,b,_,w,x,k,S,C,E,D,A,O,M,T,I,P,F}()},function(t,e,n){\"use strict\";var r=n(25),i=n(19);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function a(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||h(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if(\"object\"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=o(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(r)?r:r+\"\")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||h(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function h(t,e){if(t){if(\"string\"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===n&&t.constructor&&(n=t.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(t):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d=n(43),p=n(61),m=n.n(p),v=n(0);function g(t){return g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},g(t)}function y(t,e,n){var r;return r=function(t,e){if(\"object\"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=g(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==g(r)?r:r+\"\")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b=\"image/jpeg\",_=n(46);function w(t){return w=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},w(t)}function x(t,e,n){var r;return r=function(t,e){if(\"object\"!=w(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=w(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==w(r)?r:r+\"\")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var k=\"image/png\",S=n(62),C=n.n(S);function E(t){return E=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},E(t)}function D(t,e,n){var r;return r=function(t,e){if(\"object\"!=E(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=E(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==E(r)?r:r+\"\")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var A=\"image/bmp\",O=\"image/x-ms-bmp\";var M=function(t){return e=C.a.decode(t),Object(v.b)({bitmap:e},0,0,e.width,e.height,(function(t,n,r){var i=this.bitmap.data[r+0],o=this.bitmap.data[r+1],a=this.bitmap.data[r+2],s=this.bitmap.data[r+3];this.bitmap.data[r+0]=s,this.bitmap.data[r+1]=a,this.bitmap.data[r+2]=o,this.bitmap.data[r+3]=e.is_with_alpha?i:255})).bitmap;var e},T=function(t){return C.a.encode(function(t){return Object(v.b)(t,0,0,t.bitmap.width,t.bitmap.height,(function(t,e,n){var r=this.bitmap.data[n+0],i=this.bitmap.data[n+1],o=this.bitmap.data[n+2],a=this.bitmap.data[n+3];this.bitmap.data[n+0]=a,this.bitmap.data[n+1]=o,this.bitmap.data[n+2]=i,this.bitmap.data[n+3]=r})).bitmap}(t)).data},I=n(105),P=n(106);function F(t){return F=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},F(t)}var j=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],N=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18],L=n(107),B=n(108);function $(t){return $=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},$(t)}function z(t){var e=[1,9,3,11,13,5,15,7,4,12,2,10,16,8,14,6];return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,n,r){var i=e[((3&n)<<2)+t%4];this.bitmap.data[r]=Math.min(this.bitmap.data[r]+i,255),this.bitmap.data[r+1]=Math.min(this.bitmap.data[r+1]+i,255),this.bitmap.data[r+2]=Math.min(this.bitmap.data[r+2]+i,255)})),Object(v.a)(t)&&t.call(this,null,this),this}var R=n(109);function U(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,n,r){t.r[this.bitmap.data[r+0]]++,t.g[this.bitmap.data[r+1]]++,t.b[this.bitmap.data[r+2]]++})),t}var V=function(t,e,n){return 255*(t-e)/(n-e)},H=function(t){return[t.findIndex((function(t){return t>0})),255-t.slice().reverse().findIndex((function(t){return t>0}))]},G=n(110),q=n(112),W=n(114);function Y(t){return function(t){if(Array.isArray(t))return Z(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Z(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var K=[function(){return{blit:function(t,e,n,r,i,o,a,s){if(!(t instanceof this.constructor))return v.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof n)return v.d.call(this,\"x and y must be numbers\",s);if(\"function\"==typeof r)s=r,r=0,i=0,o=t.bitmap.width,a=t.bitmap.height;else{if(F(r)!==F(i)||F(i)!==F(o)||F(o)!==F(a))return v.d.call(this,\"srcx, srcy, srcw, srch must be numbers\",s);r=r||0,i=i||0,o=o||t.bitmap.width,a=a||t.bitmap.height}e=Math.round(e),n=Math.round(n),r=Math.round(r),i=Math.round(i),o=Math.round(o),a=Math.round(a);var u=this.bitmap.width,l=this.bitmap.height,c=this;return t.scanQuiet(r,i,o,a,(function(t,o,a){var s=e+t-r,h=n+o-i;if(s>=0&&h>=0&&u-s>0&&l-h>0){var f=c.getPixelIndex(s,h),d={r:this.bitmap.data[a],g:this.bitmap.data[a+1],b:this.bitmap.data[a+2],a:this.bitmap.data[a+3]},p={r:c.bitmap.data[f],g:c.bitmap.data[f+1],b:c.bitmap.data[f+2],a:c.bitmap.data[f+3]};c.bitmap.data[f]=(d.a*(d.r-p.r)-p.r+255>>8)+p.r,c.bitmap.data[f+1]=(d.a*(d.g-p.g)-p.g+255>>8)+p.g,c.bitmap.data[f+2]=(d.a*(d.b-p.b)-p.b+255>>8)+p.b,c.bitmap.data[f+3]=this.constructor.limit255(p.a+d.a)}})),Object(v.a)(s)&&s.call(this,null,this),this}}},function(){return{blur:function(t,e){if(\"number\"!=typeof t)return v.d.call(this,\"r must be a number\",e);if(t<1)return v.d.call(this,\"r must be greater than 0\",e);for(var n,r,i,o,a,s,u,l,c,h,f,d,p,m,g=this.bitmap.width-1,y=this.bitmap.height-1,b=t+1,_=j[t],w=N[t],x=[],k=[],S=[],C=[],E=[],D=[],A=2;A-- >0;){for(d=0,p=0,s=0;s<this.bitmap.height;s++){for(n=this.bitmap.data[p]*b,r=this.bitmap.data[p+1]*b,i=this.bitmap.data[p+2]*b,o=this.bitmap.data[p+3]*b,u=1;u<=t;u++)l=p+((u>g?g:u)<<2),n+=this.bitmap.data[l++],r+=this.bitmap.data[l++],i+=this.bitmap.data[l++],o+=this.bitmap.data[l];for(a=0;a<this.bitmap.width;a++)x[d]=n,k[d]=r,S[d]=i,C[d]=o,0===s&&(E[a]=((l=a+b)<g?l:g)<<2,D[a]=(l=a-t)>0?l<<2:0),c=p+E[a],h=p+D[a],n+=this.bitmap.data[c++]-this.bitmap.data[h++],r+=this.bitmap.data[c++]-this.bitmap.data[h++],i+=this.bitmap.data[c++]-this.bitmap.data[h++],o+=this.bitmap.data[c]-this.bitmap.data[h],d++;p+=this.bitmap.width<<2}for(a=0;a<this.bitmap.width;a++){for(n=x[f=a]*b,r=k[f]*b,i=S[f]*b,o=C[f]*b,u=1;u<=t;u++)n+=x[f+=u>y?0:this.bitmap.width],r+=k[f],i+=S[f],o+=C[f];for(d=a<<2,s=0;s<this.bitmap.height;s++)m=o*_>>>w,this.bitmap.data[d+3]=m,m>255&&(this.bitmap.data[d+3]=255),m>0?(m=255/m,this.bitmap.data[d]=(n*_>>>w)*m,this.bitmap.data[d+1]=(r*_>>>w)*m,this.bitmap.data[d+2]=(i*_>>>w)*m):(this.bitmap.data[d+2]=0,this.bitmap.data[d+1]=0,this.bitmap.data[d]=0),0===a&&(E[s]=((l=s+b)<y?l:y)*this.bitmap.width,D[s]=(l=s-t)>0?l*this.bitmap.width:0),c=a+E[s],h=a+D[s],n+=x[c]-x[h],r+=k[c]-k[h],i+=S[c]-S[h],o+=C[c]-C[h],d+=this.bitmap.width<<2}}return Object(v.a)(e)&&e.call(this,null,this),this}}},function(){return{circle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;\"function\"==typeof t&&(e=t,t={});var n=t.radius||(this.bitmap.width>this.bitmap.height?this.bitmap.height:this.bitmap.width)/2,r=\"number\"==typeof t.x?t.x:this.bitmap.width/2,i=\"number\"==typeof t.y?t.y:this.bitmap.height/2;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,o){var a=Math.sqrt(Math.pow(t-r,2)+Math.pow(e-i,2));n-a<=0?this.bitmap.data[o+3]=0:n-a<1&&(this.bitmap.data[o+3]=255*(n-a))})),Object(v.a)(e)&&e.call(this,null,this),this}}},L.a,function(){return{contain:function(t,e,n,r,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return v.d.call(this,\"w and h must be numbers\",i);\"string\"==typeof n&&(\"function\"==typeof r&&void 0===i&&(i=r),r=n,n=null),\"function\"==typeof n&&(void 0===i&&(i=n),r=null,n=null),\"function\"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=n>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return v.d.call(this,\"only use one flag per alignment direction\",i);var s=o>>1,u=a>>1,l=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,c=this.cloneQuiet().scale(l,r);return this.resize(t,e,r),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)})),this.blit(c,(this.bitmap.width-c.bitmap.width)/2*s,(this.bitmap.height-c.bitmap.height)/2*u),Object(v.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,n,r,i){if(\"number\"!=typeof t||\"number\"!=typeof e)return v.d.call(this,\"w and h must be numbers\",i);n&&\"function\"==typeof n&&void 0===i?(i=n,n=null,r=null):\"function\"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=n>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return v.d.call(this,\"only use one flag per alignment direction\",i);var s=o>>1,u=a>>1,l=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(l,r),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*u,t,e),Object(v.a)(i)&&i.call(this,null,this),this}}},B.a,function(){return{displace:function(t,e,n){if(\"object\"!==$(t)||t.constructor!==this.constructor)return v.d.call(this,\"The source must be a Jimp image\",n);if(\"number\"!=typeof e)return v.d.call(this,\"factor must be a number\",n);var r=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(n,i,o){var a=t.bitmap.data[o]/256*e;a=Math.round(a);var s=this.getPixelIndex(n+a,i);this.bitmap.data[s]=r.bitmap.data[o],this.bitmap.data[s+1]=r.bitmap.data[o+1],this.bitmap.data[s+2]=r.bitmap.data[o+2]})),Object(v.a)(n)&&n.call(this,null,this),this}}},function(){return{dither565:z,dither16:z}},function(){return{fisheye:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{r:2.5},n=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(n=e,e={r:2.5});var r=this.cloneQuiet(),i=r.bitmap,o=i.width,a=i.height;return r.scanQuiet(0,0,o,a,(function(n,i){var s=n/o,u=i/a,l=Math.sqrt(Math.pow(s-.5,2)+Math.pow(u-.5,2)),c=2*Math.pow(l,e.r),h=(s-.5)/l,f=(u-.5)/l,d=Math.round((c*h+.5)*o),p=Math.round((c*f+.5)*a),m=r.getPixelColor(d,p);t.setPixelColor(m,n,i)})),this.setPixelColor(r.getPixelColor(o/2,a/2),o/2,a/2),Object(v.a)(n)&&n.call(this,null,this),this}}},R.a,function(){return{gaussian:function(t,e){if(\"number\"!=typeof t)return v.d.call(this,\"r must be a number\",e);if(t<1)return v.d.call(this,\"r must be greater than 0\",e);for(var n=Math.ceil(2.57*t),r=2*n+1,i=t*t*2,o=i*Math.PI,a=[],s=0;s<r;s++){a[s]=[];for(var u=0;u<r;u++){var l=Math.pow(u-n,2)+Math.pow(s-n,2);a[s][u]=Math.exp(-l/i)/o}}for(var c=0;c<this.bitmap.height;c++)for(var h=0;h<this.bitmap.width;h++)for(var f=0,d=0,p=0,m=0,g=0,y=0;y<r;y++){for(var b=0;b<r;b++){var _=Math.min(this.bitmap.width-1,Math.max(0,b+h-n)),w=Math.min(this.bitmap.height-1,Math.max(0,y+c-n)),x=a[y][b],k=w*this.bitmap.width+_<<2;f+=this.bitmap.data[k]*x,d+=this.bitmap.data[k+1]*x,p+=this.bitmap.data[k+2]*x,m+=this.bitmap.data[k+3]*x,g+=x}var S=c*this.bitmap.width+h<<2;this.bitmap.data[S]=Math.round(f/g),this.bitmap.data[S+1]=Math.round(d/g),this.bitmap.data[S+2]=Math.round(p/g),this.bitmap.data[S+3]=Math.round(m/g)}return Object(v.a)(e)&&e.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){this.bitmap.data[n]=255-this.bitmap.data[n],this.bitmap.data[n+1]=255-this.bitmap.data[n+1],this.bitmap.data[n+2]=255-this.bitmap.data[n+2]})),Object(v.a)(t)&&t.call(this,null,this),this}}},function(){return{mask:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return v.d.call(this,\"The source must be a Jimp image\",r);if(\"number\"!=typeof e||\"number\"!=typeof n)return v.d.call(this,\"x and y must be numbers\",r);e=Math.round(e),n=Math.round(n);var i=this.bitmap.width,o=this.bitmap.height,a=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,r,s){var u=e+t,l=n+r;if(u>=0&&l>=0&&u<i&&l<o){var c=a.getPixelIndex(u,l),h=this.bitmap.data,f=(h[s+0]+h[s+1]+h[s+2])/3;a.bitmap.data[c+3]*=f/255}})),Object(v.a)(r)&&r.call(this,null,this),this}}},function(){return{normalize:function(t){var e=U.call(this),n={r:H(e.r),g:H(e.g),b:H(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){var i=this.bitmap.data[r+0],o=this.bitmap.data[r+1],a=this.bitmap.data[r+2];this.bitmap.data[r+0]=V(i,n.r[0],n.r[1]),this.bitmap.data[r+1]=V(o,n.g[0],n.g[1]),this.bitmap.data[r+2]=V(a,n.b[0],n.b[1])})),Object(v.a)(t)&&t.call(this,null,this),this}}},G.a,q.a,W.a,function(){return{scale:function(t,e,n){if(\"number\"!=typeof t)return v.d.call(this,\"f must be a number\",n);if(t<0)return v.d.call(this,\"f must be a positive number\",n);\"function\"==typeof e&&void 0===n&&(n=e,e=null);var r=this.bitmap.width*t,i=this.bitmap.height*t;return this.resize(r,i,e),Object(v.a)(n)&&n.call(this,null,this),this},scaleToFit:function(t,e,n,r){if(\"number\"!=typeof t||\"number\"!=typeof e)return v.d.call(this,\"w and h must be numbers\",r);\"function\"==typeof n&&void 0===r&&(r=n,n=null);var i=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,n),Object(v.a)(r)&&r.call(this,null,this),this}}},function(){return{shadow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;\"function\"==typeof e&&(n=e,e={});var r=e,i=r.opacity,o=void 0===i?.7:i,a=r.size,s=void 0===a?1.1:a,u=r.x,l=void 0===u?-25:u,c=r.y,h=void 0===c?25:c,f=r.blur,d=void 0===f?5:f,p=this.clone(),m=this.clone();return m.scan(0,0,m.bitmap.width,m.bitmap.height,(function(e,n,r){m.bitmap.data[r]=0,m.bitmap.data[r+1]=0,m.bitmap.data[r+2]=0,m.bitmap.data[r+3]=m.constructor.limit255(m.bitmap.data[r+3]*o),t.bitmap.data[r]=0,t.bitmap.data[r+1]=0,t.bitmap.data[r+2]=0,t.bitmap.data[r+3]=0})),m.resize(m.bitmap.width*s,m.bitmap.height*s).blur(d),this.composite(m,l,h),this.composite(p,0,0),Object(v.a)(n)&&n.call(this,null,this),this}}},function(){return{threshold:function(t,e){var n=this,r=t.max,i=t.replace,o=void 0===i?255:i,a=t.autoGreyscale,s=void 0===a||a;return\"number\"!=typeof r?v.d.call(this,\"max must be a number\",e):\"number\"!=typeof o?v.d.call(this,\"replace must be a number\",e):\"boolean\"!=typeof s?v.d.call(this,\"autoGreyscale must be a boolean\",e):(r=this.constructor.limit255(r),o=this.constructor.limit255(o),s&&this.greyscale(),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,i){var a=n.bitmap.data[i]<r?n.bitmap.data[i]:o;n.bitmap.data[i]=a,n.bitmap.data[i+1]=a,n.bitmap.data[i+2]=a})),Object(v.a)(e)&&e.call(this,null,this),this)}}}];e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.c,n={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function o(t){Object.entries(t).forEach((function(t){var e=c(t,2),r=e[0],i=e[1];n[r]=u(u({},n[r]),i)}))}return t.types&&(t.types.forEach((function(t){var e=t();Array.isArray(e.mime)?i.a.apply(void 0,a(e.mime)):Object.entries(e.mime).forEach((function(t){return i.a.apply(void 0,a(t))})),delete e.mime,o(e)})),e.decoders=u(u({},e.decoders),n.decoders),e.encoders=u(u({},e.encoders),n.encoders),e.hasAlpha=u(u({},e.hasAlpha),n.hasAlpha)),t.plugins&&t.plugins.forEach((function(t){var e=t(r.d)||{};e.class||e.constants?o(e):o({class:e})})),Object(r.b)(n.class,e),Object(r.a)(n.constants,e),r.c}({types:[function(){return Object(d.mergeDeep)({mime:y({},b,[\"jpeg\",\"jpg\",\"jpe\"]),constants:{MIME_JPEG:b},decoders:y({},b,m.a.decode),encoders:y({},b,(function(t){return m.a.encode(t.bitmap,t._quality).data})),class:{_quality:100,quality:function(t,e){return\"number\"!=typeof t?v.d.call(this,\"n must be a number\",e):t<0||t>100?v.d.call(this,\"n must be a number 0 - 100\",e):(this._quality=Math.round(t),Object(v.a)(e)&&e.call(this,null,this),this)}}},{mime:x({},k,[\"png\"]),constants:{MIME_PNG:k,PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:x({},k,!0),decoders:x({},k,_.PNG.sync.read),encoders:x({},k,(function(t){var e=new _.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,_.PNG.sync.write(e,{deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:\"number\"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})})),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return\"number\"!=typeof t?v.d.call(this,\"l must be a number\",e):t<0||t>9?v.d.call(this,\"l must be a number 0 - 9\",e):(this._deflateLevel=Math.round(t),Object(v.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return\"number\"!=typeof t?v.d.call(this,\"s must be a number\",e):t<0||t>3?v.d.call(this,\"s must be a number 0 - 3\",e):(this._deflateStrategy=Math.round(t),Object(v.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return\"number\"!=typeof t?v.d.call(this,\"n must be a number\",e):t<-1||t>4?v.d.call(this,\"n must be -1 (auto) or a number 0 - 4\",e):(this._filterType=Math.round(t),Object(v.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return\"number\"!=typeof t?v.d.call(this,\"s must be a number\",e):0!==t&&2!==t&&4!==t&&6!==t?v.d.call(this,\"s must be a number 0, 2, 4, 6.\",e):(this._colorType=Math.round(t),Object(v.a)(e)&&e.call(this,null,this),this)}}},{mime:D({},A,[\"bmp\"]),constants:{MIME_BMP:A,MIME_X_MS_BMP:O},decoders:D(D({},A,M),O,M),encoders:D(D({},A,T),O,T)},Object(I.a)(),Object(P.a)())}],plugins:[function(t){var e=K.map((function(e){var n=e(t)||{};return n.class||n.constants||(n={class:n}),n}));return d.mergeDeep.apply(void 0,Y(e))}]})},function(t,e,n){var r;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(n){\"use strict\";var o=Math.cosh||function(t){return Math.abs(t)<1e-9?1-t:.5*(Math.exp(t)+Math.exp(-t))},a=Math.sinh||function(t){return Math.abs(t)<1e-9?t:.5*(Math.exp(t)-Math.exp(-t))},s=function(){throw SyntaxError(\"Invalid Param\")};function u(t,e){var n=Math.abs(t),r=Math.abs(e);return 0===t?Math.log(r):0===e?Math.log(n):n<3e3&&r<3e3?.5*Math.log(t*t+e*e):(t/=2,e/=2,.5*Math.log(t*t+e*e)+Math.LN2)}function l(t,e){if(!(this instanceof l))return new l(t,e);var n=function(t,e){var n={re:0,im:0};if(null==t)n.re=n.im=0;else if(void 0!==e)n.re=t,n.im=e;else switch(i(t)){case\"object\":if(\"im\"in t&&\"re\"in t)n.re=t.re,n.im=t.im;else if(\"abs\"in t&&\"arg\"in t){if(!Number.isFinite(t.abs)&&Number.isFinite(t.arg))return l.INFINITY;n.re=t.abs*Math.cos(t.arg),n.im=t.abs*Math.sin(t.arg)}else if(\"r\"in t&&\"phi\"in t){if(!Number.isFinite(t.r)&&Number.isFinite(t.phi))return l.INFINITY;n.re=t.r*Math.cos(t.phi),n.im=t.r*Math.sin(t.phi)}else 2===t.length?(n.re=t[0],n.im=t[1]):s();break;case\"string\":n.im=n.re=0;var r=t.match(/\\d+\\.?\\d*e[+-]?\\d+|\\d+\\.?\\d*|\\.\\d+|./g),o=1,a=0;null===r&&s();for(var u=0;u<r.length;u++){var c=r[u];\" \"===c||\"\\t\"===c||\"\\n\"===c||(\"+\"===c?o++:\"-\"===c?a++:\"i\"===c||\"I\"===c?(o+a===0&&s(),\" \"===r[u+1]||isNaN(r[u+1])?n.im+=parseFloat((a%2?\"-\":\"\")+\"1\"):(n.im+=parseFloat((a%2?\"-\":\"\")+r[u+1]),u++),o=a=0):((o+a===0||isNaN(c))&&s(),\"i\"===r[u+1]||\"I\"===r[u+1]?(n.im+=parseFloat((a%2?\"-\":\"\")+c),u++):n.re+=parseFloat((a%2?\"-\":\"\")+c),o=a=0))}o+a>0&&s();break;case\"number\":n.im=0,n.re=t;break;default:s()}return isNaN(n.re)||isNaN(n.im),n}(t,e);this.re=n.re,this.im=n.im}l.prototype={re:0,im:0,sign:function(){var t=this.abs();return new l(this.re/t,this.im/t)},add:function(t,e){var n=new l(t,e);return this.isInfinite()&&n.isInfinite()?l.NAN:this.isInfinite()||n.isInfinite()?l.INFINITY:new l(this.re+n.re,this.im+n.im)},sub:function(t,e){var n=new l(t,e);return this.isInfinite()&&n.isInfinite()?l.NAN:this.isInfinite()||n.isInfinite()?l.INFINITY:new l(this.re-n.re,this.im-n.im)},mul:function(t,e){var n=new l(t,e);return this.isInfinite()&&n.isZero()||this.isZero()&&n.isInfinite()?l.NAN:this.isInfinite()||n.isInfinite()?l.INFINITY:0===n.im&&0===this.im?new l(this.re*n.re,0):new l(this.re*n.re-this.im*n.im,this.re*n.im+this.im*n.re)},div:function(t,e){var n=new l(t,e);if(this.isZero()&&n.isZero()||this.isInfinite()&&n.isInfinite())return l.NAN;if(this.isInfinite()||n.isZero())return l.INFINITY;if(this.isZero()||n.isInfinite())return l.ZERO;t=this.re,e=this.im;var r,i,o=n.re,a=n.im;return 0===a?new l(t/o,e/o):Math.abs(o)<Math.abs(a)?new l((t*(i=o/a)+e)/(r=o*i+a),(e*i-t)/r):new l((t+e*(i=a/o))/(r=a*i+o),(e-t*i)/r)},pow:function(t,e){var n=new l(t,e);if(t=this.re,e=this.im,n.isZero())return l.ONE;if(0===n.im){if(0===e&&t>0)return new l(Math.pow(t,n.re),0);if(0===t)switch((n.re%4+4)%4){case 0:return new l(Math.pow(e,n.re),0);case 1:return new l(0,Math.pow(e,n.re));case 2:return new l(-Math.pow(e,n.re),0);case 3:return new l(0,-Math.pow(e,n.re))}}if(0===t&&0===e&&n.re>0&&n.im>=0)return l.ZERO;var r=Math.atan2(e,t),i=u(t,e);return t=Math.exp(n.re*i-n.im*r),e=n.im*i+n.re*r,new l(t*Math.cos(e),t*Math.sin(e))},sqrt:function(){var t,e,n=this.re,r=this.im,i=this.abs();if(n>=0){if(0===r)return new l(Math.sqrt(n),0);t=.5*Math.sqrt(2*(i+n))}else t=Math.abs(r)/Math.sqrt(2*(i-n));return e=n<=0?.5*Math.sqrt(2*(i-n)):Math.abs(r)/Math.sqrt(2*(i+n)),new l(t,r<0?-e:e)},exp:function(){var t=Math.exp(this.re);return this.im,new l(t*Math.cos(this.im),t*Math.sin(this.im))},expm1:function(){var t=this.re,e=this.im;return new l(Math.expm1(t)*Math.cos(e)+function(t){var e=Math.PI/4;if(-e>t||t>e)return Math.cos(t)-1;var n=t*t;return n*(n*(n*(n*(n*(n*(n*(n/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5)}(e),Math.exp(t)*Math.sin(e))},log:function(){var t=this.re,e=this.im;return new l(u(t,e),Math.atan2(e,t))},abs:function(){return t=this.re,e=this.im,n=Math.abs(t),r=Math.abs(e),n<3e3&&r<3e3?Math.sqrt(n*n+r*r):(n<r?(n=r,r=t/e):r=e/t,n*Math.sqrt(1+r*r));var t,e,n,r},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var t=this.re,e=this.im;return new l(Math.sin(t)*o(e),Math.cos(t)*a(e))},cos:function(){var t=this.re,e=this.im;return new l(Math.cos(t)*o(e),-Math.sin(t)*a(e))},tan:function(){var t=2*this.re,e=2*this.im,n=Math.cos(t)+o(e);return new l(Math.sin(t)/n,a(e)/n)},cot:function(){var t=2*this.re,e=2*this.im,n=Math.cos(t)-o(e);return new l(-Math.sin(t)/n,a(e)/n)},sec:function(){var t=this.re,e=this.im,n=.5*o(2*e)+.5*Math.cos(2*t);return new l(Math.cos(t)*o(e)/n,Math.sin(t)*a(e)/n)},csc:function(){var t=this.re,e=this.im,n=.5*o(2*e)-.5*Math.cos(2*t);return new l(Math.sin(t)*o(e)/n,-Math.cos(t)*a(e)/n)},asin:function(){var t=this.re,e=this.im,n=new l(e*e-t*t+1,-2*t*e).sqrt(),r=new l(n.re-e,n.im+t).log();return new l(r.im,-r.re)},acos:function(){var t=this.re,e=this.im,n=new l(e*e-t*t+1,-2*t*e).sqrt(),r=new l(n.re-e,n.im+t).log();return new l(Math.PI/2-r.im,r.re)},atan:function(){var t=this.re,e=this.im;if(0===t){if(1===e)return new l(0,1/0);if(-1===e)return new l(0,-1/0)}var n=t*t+(1-e)*(1-e),r=new l((1-e*e-t*t)/n,-2*t/n).log();return new l(-.5*r.im,.5*r.re)},acot:function(){var t=this.re,e=this.im;if(0===e)return new l(Math.atan2(1,t),0);var n=t*t+e*e;return 0!==n?new l(t/n,-e/n).atan():new l(0!==t?t/0:0,0!==e?-e/0:0).atan()},asec:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new l(0,1/0);var n=t*t+e*e;return 0!==n?new l(t/n,-e/n).acos():new l(0!==t?t/0:0,0!==e?-e/0:0).acos()},acsc:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new l(Math.PI/2,1/0);var n=t*t+e*e;return 0!==n?new l(t/n,-e/n).asin():new l(0!==t?t/0:0,0!==e?-e/0:0).asin()},sinh:function(){var t=this.re,e=this.im;return new l(a(t)*Math.cos(e),o(t)*Math.sin(e))},cosh:function(){var t=this.re,e=this.im;return new l(o(t)*Math.cos(e),a(t)*Math.sin(e))},tanh:function(){var t=2*this.re,e=2*this.im,n=o(t)+Math.cos(e);return new l(a(t)/n,Math.sin(e)/n)},coth:function(){var t=2*this.re,e=2*this.im,n=o(t)-Math.cos(e);return new l(a(t)/n,-Math.sin(e)/n)},csch:function(){var t=this.re,e=this.im,n=Math.cos(2*e)-o(2*t);return new l(-2*a(t)*Math.cos(e)/n,2*o(t)*Math.sin(e)/n)},sech:function(){var t=this.re,e=this.im,n=Math.cos(2*e)+o(2*t);return new l(2*o(t)*Math.cos(e)/n,-2*a(t)*Math.sin(e)/n)},asinh:function(){var t=this.im;this.im=-this.re,this.re=t;var e=this.asin();return this.re=-this.im,this.im=t,t=e.re,e.re=-e.im,e.im=t,e},acosh:function(){var t=this.acos();if(t.im<=0){var e=t.re;t.re=-t.im,t.im=e}else{e=t.im;t.im=-t.re,t.re=e}return t},atanh:function(){var t=this.re,e=this.im,n=t>1&&0===e,r=1-t,i=1+t,o=r*r+e*e,a=0!==o?new l((i*r-e*e)/o,(e*r+i*e)/o):new l(-1!==t?t/0:0,0!==e?e/0:0),s=a.re;return a.re=u(a.re,a.im)/2,a.im=Math.atan2(a.im,s)/2,n&&(a.im=-a.im),a},acoth:function(){var t=this.re,e=this.im;if(0===t&&0===e)return new l(0,Math.PI/2);var n=t*t+e*e;return 0!==n?new l(t/n,-e/n).atanh():new l(0!==t?t/0:0,0!==e?-e/0:0).atanh()},acsch:function(){var t=this.re,e=this.im;if(0===e)return new l(0!==t?Math.log(t+Math.sqrt(t*t+1)):1/0,0);var n=t*t+e*e;return 0!==n?new l(t/n,-e/n).asinh():new l(0!==t?t/0:0,0!==e?-e/0:0).asinh()},asech:function(){var t=this.re,e=this.im;if(this.isZero())return l.INFINITY;var n=t*t+e*e;return 0!==n?new l(t/n,-e/n).acosh():new l(0!==t?t/0:0,0!==e?-e/0:0).acosh()},inverse:function(){if(this.isZero())return l.INFINITY;if(this.isInfinite())return l.ZERO;var t=this.re,e=this.im,n=t*t+e*e;return new l(t/n,-e/n)},conjugate:function(){return new l(this.re,-this.im)},neg:function(){return new l(-this.re,-this.im)},ceil:function(t){return t=Math.pow(10,t||0),new l(Math.ceil(this.re*t)/t,Math.ceil(this.im*t)/t)},floor:function(t){return t=Math.pow(10,t||0),new l(Math.floor(this.re*t)/t,Math.floor(this.im*t)/t)},round:function(t){return t=Math.pow(10,t||0),new l(Math.round(this.re*t)/t,Math.round(this.im*t)/t)},equals:function(t,e){var n=new l(t,e);return Math.abs(n.re-this.re)<=l.EPSILON&&Math.abs(n.im-this.im)<=l.EPSILON},clone:function(){return new l(this.re,this.im)},toString:function(){var t=this.re,e=this.im,n=\"\";return this.isNaN()?\"NaN\":this.isInfinite()?\"Infinity\":(Math.abs(t)<l.EPSILON&&(t=0),Math.abs(e)<l.EPSILON&&(e=0),0===e?n+t:(0!==t?(n+=t,n+=\" \",e<0?(e=-e,n+=\"-\"):n+=\"+\",n+=\" \"):e<0&&(e=-e,n+=\"-\"),1!==e&&(n+=e),n+\"i\"))},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isNaN(this.re)||isNaN(this.im)})),isZero:function(){return 0===this.im&&0===this.re},isFinite:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return isFinite(this.re)&&isFinite(this.im)})),isInfinite:function(){return!(this.isNaN()||this.isFinite())}},l.ZERO=new l(0,0),l.ONE=new l(1,0),l.I=new l(0,1),l.PI=new l(Math.PI,0),l.E=new l(Math.E,0),l.INFINITY=new l(1/0,1/0),l.NAN=new l(NaN,NaN),l.EPSILON=1e-15,void 0===(r=function(){return l}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];\".\"===i?t.splice(r,1):\"..\"===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift(\"..\");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e=\"\",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if(\"string\"!=typeof a)throw new TypeError(\"Arguments to path.resolve must be strings\");a&&(e=a+\"/\"+e,i=\"/\"===a.charAt(0))}return(i?\"/\":\"\")+(e=n(r(e.split(\"/\"),(function(t){return!!t})),!i).join(\"/\"))||\".\"},e.normalize=function(t){var o=e.isAbsolute(t),a=\"/\"===i(t,-1);return(t=n(r(t.split(\"/\"),(function(t){return!!t})),!o).join(\"/\"))||o||(t=\".\"),t&&a&&(t+=\"/\"),(o?\"/\":\"\")+t},e.isAbsolute=function(t){return\"/\"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"Arguments to path.join must be strings\");return t})).join(\"/\"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length&&\"\"===t[e];e++);for(var n=t.length-1;n>=0&&\"\"===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split(\"/\")),o=r(n.split(\"/\")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var l=[];for(u=s;u<i.length;u++)l.push(\"..\");return(l=l.concat(o.slice(s))).join(\"/\")},e.sep=\"/\",e.delimiter=\":\",e.dirname=function(t){if(\"string\"!=typeof t&&(t+=\"\"),0===t.length)return\".\";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?\"/\":\".\":n&&1===r?\"/\":t.slice(0,r)},e.basename=function(t,e){var n=function(t){\"string\"!=typeof t&&(t+=\"\");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?\"\":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){\"string\"!=typeof t&&(t+=\"\");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?\"\":t.slice(e,r)};var i=\"b\"===\"ab\".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n(7))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=\"function\"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r=\"function\"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,l=[],c=!1,h=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&d())}function d(){if(!c){var t=s(f);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h<e;)u&&u[h].run();h=-1,e=l.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title=\"browser\",i.browser=!0,i.env={},i.argv=[],i.version=\"\",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error(\"process.binding is not supported\")},i.cwd=function(){return\"/\"},i.chdir=function(t){throw new Error(\"process.chdir is not supported\")},i.umask=function(){return 0}},function(t,e){function n(){return t.exports=n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,n.apply(this,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new Error(\"define cannot be used indirect\")}},function(t,e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}var r;r=function(){return this}();try{r=r||new Function(\"return this\")()}catch(t){\"object\"===(\"undefined\"==typeof window?\"undefined\":n(window))&&(r=window)}t.exports=r},function(t,e){},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}!function(n){\"use strict\";var i={s:1,n:0,d:1};function o(t,e){if(isNaN(t=parseInt(t,10)))throw f();return t*e}function a(t,e){if(0===e)throw h();var n=Object.create(c.prototype);n.s=t<0?-1:1;var r=l(t=t<0?-t:t,e);return n.n=t/r,n.d=e/r,n}function s(t){for(var e={},n=t,r=2,i=4;i<=n;){for(;n%r==0;)n/=r,e[r]=(e[r]||0)+1;i+=1+2*r++}return n!==t?n>1&&(e[n]=(e[n]||0)+1):e[t]=(e[t]||0)+1,e}var u=function(t,e){var n,a=0,s=1,u=1,l=0,c=0,p=0,m=1,v=1,g=0,y=1,b=1,_=1,w=1e7;if(null==t);else if(void 0!==e){if(u=(a=t)*(s=e),a%1!=0||s%1!=0)throw d()}else switch(r(t)){case\"object\":if(\"d\"in t&&\"n\"in t)a=t.n,s=t.d,\"s\"in t&&(a*=t.s);else{if(!(0 in t))throw f();a=t[0],1 in t&&(s=t[1])}u=a*s;break;case\"number\":if(t<0&&(u=t,t=-t),t%1==0)a=t;else if(t>0){for(t>=1&&(t/=v=Math.pow(10,Math.floor(1+Math.log(t)/Math.LN10)));y<=w&&_<=w;){if(t===(n=(g+b)/(y+_))){y+_<=w?(a=g+b,s=y+_):_>y?(a=b,s=_):(a=g,s=y);break}t>n?(g+=b,y+=_):(b+=g,_+=y),y>w?(a=b,s=_):(a=g,s=y)}a*=v}else(isNaN(t)||isNaN(e))&&(s=a=NaN);break;case\"string\":if(null===(y=t.match(/\\d+|./g)))throw f();if(\"-\"===y[g]?(u=-1,g++):\"+\"===y[g]&&g++,y.length===g+1?c=o(y[g++],u):\".\"===y[g+1]||\".\"===y[g]?(\".\"!==y[g]&&(l=o(y[g++],u)),(++g+1===y.length||\"(\"===y[g+1]&&\")\"===y[g+3]||\"'\"===y[g+1]&&\"'\"===y[g+3])&&(c=o(y[g],u),m=Math.pow(10,y[g].length),g++),(\"(\"===y[g]&&\")\"===y[g+2]||\"'\"===y[g]&&\"'\"===y[g+2])&&(p=o(y[g+1],u),v=Math.pow(10,y[g+1].length)-1,g+=3)):\"/\"===y[g+1]||\":\"===y[g+1]?(c=o(y[g],u),m=o(y[g+2],1),g+=3):\"/\"===y[g+3]&&\" \"===y[g+1]&&(l=o(y[g],u),c=o(y[g+2],u),m=o(y[g+4],1),g+=5),y.length<=g){u=a=p+(s=m*v)*l+v*c;break}default:throw f()}if(0===s)throw h();i.s=u<0?-1:1,i.n=Math.abs(a),i.d=Math.abs(s)};function l(t,e){if(!t)return e;if(!e)return t;for(;;){if(!(t%=e))return e;if(!(e%=t))return t}}function c(t,e){if(u(t,e),!(this instanceof c))return a(i.s*i.n,i.d);t=l(i.d,i.n),this.s=i.s,this.n=i.n/t,this.d=i.d/t}var h=function(){return new Error(\"Division by Zero\")},f=function(){return new Error(\"Invalid argument\")},d=function(){return new Error(\"Parameters must be integer\")};c.prototype={s:1,n:0,d:1,abs:function(){return a(this.n,this.d)},neg:function(){return a(-this.s*this.n,this.d)},add:function(t,e){return u(t,e),a(this.s*this.n*i.d+i.s*this.d*i.n,this.d*i.d)},sub:function(t,e){return u(t,e),a(this.s*this.n*i.d-i.s*this.d*i.n,this.d*i.d)},mul:function(t,e){return u(t,e),a(this.s*i.s*this.n*i.n,this.d*i.d)},div:function(t,e){return u(t,e),a(this.s*i.s*this.n*i.d,this.d*i.n)},clone:function(){return a(this.s*this.n,this.d)},mod:function(t,e){if(isNaN(this.n)||isNaN(this.d))return new c(NaN);if(void 0===t)return a(this.s*this.n%this.d,1);if(u(t,e),0===i.n&&0===this.d)throw h();return a(this.s*(i.d*this.n)%(i.n*this.d),i.d*this.d)},gcd:function(t,e){return u(t,e),a(l(i.n,this.n)*l(i.d,this.d),i.d*this.d)},lcm:function(t,e){return u(t,e),0===i.n&&0===this.n?a(0,1):a(i.n*this.n,l(i.n,this.n)*l(i.d,this.d))},ceil:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):a(Math.ceil(t*this.s*this.n/this.d),t)},floor:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):a(Math.floor(t*this.s*this.n/this.d),t)},round:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):a(Math.round(t*this.s*this.n/this.d),t)},inverse:function(){return a(this.s*this.d,this.n)},pow:function(t,e){if(u(t,e),1===i.d)return i.s<0?a(Math.pow(this.s*this.d,i.n),Math.pow(this.n,i.n)):a(Math.pow(this.s*this.n,i.n),Math.pow(this.d,i.n));if(this.s<0)return null;var n=s(this.n),r=s(this.d),o=1,l=1;for(var c in n)if(\"1\"!==c){if(\"0\"===c){o=0;break}if(n[c]*=i.n,n[c]%i.d!=0)return null;n[c]/=i.d,o*=Math.pow(c,n[c])}for(var c in r)if(\"1\"!==c){if(r[c]*=i.n,r[c]%i.d!=0)return null;r[c]/=i.d,l*=Math.pow(c,r[c])}return i.s<0?a(l,o):a(o,l)},equals:function(t,e){return u(t,e),this.s*this.n*i.d==i.s*i.n*this.d},compare:function(t,e){u(t,e);var n=this.s*this.n*i.d-i.s*i.n*this.d;return(0<n)-(n<0)},simplify:function(t){if(isNaN(this.n)||isNaN(this.d))return this;t=t||.001;for(var e=this.abs(),n=e.toContinued(),r=1;r<n.length;r++){for(var i=a(n[r-1],1),o=r-2;o>=0;o--)i=i.inverse().add(n[o]);if(Math.abs(i.sub(e).valueOf())<t)return i.mul(this.s)}return this},divisible:function(t,e){return u(t,e),!(!(i.n*this.d)||this.n*i.d%(i.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(t){var e,n=\"\",r=this.n,i=this.d;return this.s<0&&(n+=\"-\"),1===i?n+=r:(t&&(e=Math.floor(r/i))>0&&(n+=e,n+=\" \",r%=i),n+=r,n+=\"/\",n+=i),n},toLatex:function(t){var e,n=\"\",r=this.n,i=this.d;return this.s<0&&(n+=\"-\"),1===i?n+=r:(t&&(e=Math.floor(r/i))>0&&(n+=e,r%=i),n+=\"\\\\frac{\",n+=r,n+=\"}{\",n+=i,n+=\"}\"),n},toContinued:function(){var t,e=this.n,n=this.d,r=[];if(isNaN(e)||isNaN(n))return r;do{r.push(Math.floor(e/n)),t=e%n,e=n,n=t}while(1!==e);return r},toString:function(t){var e=this.n,n=this.d;if(isNaN(e)||isNaN(n))return\"NaN\";t=t||15;var r=function(t,e){for(;e%2==0;e/=2);for(;e%5==0;e/=5);if(1===e)return 0;for(var n=10%e,r=1;1!==n;r++)if(n=10*n%e,r>2e3)return 0;return r}(0,n),i=function(t,e,n){for(var r=1,i=function(t,e,n){for(var r=1;e>0;t=t*t%n,e>>=1)1&e&&(r=r*t%n);return r}(10,n,e),o=0;o<300;o++){if(r===i)return o;r=10*r%e,i=10*i%e}return 0}(0,n,r),o=this.s<0?\"-\":\"\";if(o+=e/n|0,e%=n,(e*=10)&&(o+=\".\"),r){for(var a=i;a--;)o+=e/n|0,e%=n,e*=10;o+=\"(\";for(a=r;a--;)o+=e/n|0,e%=n,e*=10;o+=\")\"}else for(a=t;e&&a--;)o+=e/n|0,e%=n,e*=10;return o}},\"object\"===r(e)?(Object.defineProperty(c,\"__esModule\",{value:!0}),c.default=c,c.Fraction=c,t.exports=c):n.Fraction=c}(this)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,\"loaded\",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,\"id\",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){(function(t){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++)n[e[r]]=Object.getOwnPropertyDescriptor(t,e[r]);return n},o=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(u(arguments[n]));return e.join(\" \")}n=1;for(var r=arguments,i=r.length,a=String(t).replace(o,(function(t){if(\"%%\"===t)return\"%\";if(n>=i)return t;switch(t){case\"%s\":return String(r[n++]);case\"%d\":return Number(r[n++]);case\"%j\":try{return JSON.stringify(r[n++])}catch(t){return\"[Circular]\"}default:return t}})),s=r[n];n<i;s=r[++n])v(s)||!w(s)?a+=\" \"+s:a+=\" \"+u(s);return a},e.deprecate=function(n,r){if(void 0!==t&&!0===t.noDeprecation)return n;if(void 0===t)return function(){return e.deprecate(n,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(r);t.traceDeprecation&&console.trace(r),i=!0}return n.apply(this,arguments)}};var a,s={};function u(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&e._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),h(r,t,r.depth)}function l(t,e){var n=u.styles[e];return n?\"\u001b[\"+u.colors[n][0]+\"m\"+t+\"\u001b[\"+u.colors[n][1]+\"m\":t}function c(t,e){return t}function h(t,n,r){if(t.customInspect&&n&&S(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return y(i)||(i=h(t,i,r)),i}var o=function(t,e){if(b(e))return t.stylize(\"undefined\",\"undefined\");if(y(e)){var n=\"'\"+JSON.stringify(e).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return t.stylize(n,\"string\")}if(g(e))return t.stylize(\"\"+e,\"number\");if(m(e))return t.stylize(\"\"+e,\"boolean\");if(v(e))return t.stylize(\"null\",\"null\")}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),k(n)&&(a.indexOf(\"message\")>=0||a.indexOf(\"description\")>=0))return f(n);if(0===a.length){if(S(n)){var u=n.name?\": \"+n.name:\"\";return t.stylize(\"[Function\"+u+\"]\",\"special\")}if(_(n))return t.stylize(RegExp.prototype.toString.call(n),\"regexp\");if(x(n))return t.stylize(Date.prototype.toString.call(n),\"date\");if(k(n))return f(n)}var l,c=\"\",w=!1,C=[\"{\",\"}\"];(p(n)&&(w=!0,C=[\"[\",\"]\"]),S(n))&&(c=\" [Function\"+(n.name?\": \"+n.name:\"\")+\"]\");return _(n)&&(c=\" \"+RegExp.prototype.toString.call(n)),x(n)&&(c=\" \"+Date.prototype.toUTCString.call(n)),k(n)&&(c=\" \"+f(n)),0!==a.length||w&&0!=n.length?r<0?_(n)?t.stylize(RegExp.prototype.toString.call(n),\"regexp\"):t.stylize(\"[Object]\",\"special\"):(t.seen.push(n),l=w?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a<s;++a)A(e,String(a))?o.push(d(t,e,n,r,String(a),!0)):o.push(\"\");return i.forEach((function(i){i.match(/^\\d+$/)||o.push(d(t,e,n,r,i,!0))})),o}(t,n,r,s,a):a.map((function(e){return d(t,n,r,s,e,w)})),t.seen.pop(),function(t,e,n){var r=t.reduce((function(t,e){return e.indexOf(\"\\n\")>=0&&0,t+e.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1}),0);if(r>60)return n[0]+(\"\"===e?\"\":e+\"\\n \")+\" \"+t.join(\",\\n  \")+\" \"+n[1];return n[0]+e+\" \"+t.join(\", \")+\" \"+n[1]}(l,c,C)):C[0]+c+C[1]}function f(t){return\"[\"+Error.prototype.toString.call(t)+\"]\"}function d(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize(\"[Getter/Setter]\",\"special\"):t.stylize(\"[Getter]\",\"special\"):u.set&&(s=t.stylize(\"[Setter]\",\"special\")),A(r,i)||(a=\"[\"+i+\"]\"),s||(t.seen.indexOf(u.value)<0?(s=v(n)?h(t,u.value,null):h(t,u.value,n-1)).indexOf(\"\\n\")>-1&&(s=o?s.split(\"\\n\").map((function(t){return\"  \"+t})).join(\"\\n\").substr(2):\"\\n\"+s.split(\"\\n\").map((function(t){return\"   \"+t})).join(\"\\n\")):s=t.stylize(\"[Circular]\",\"special\")),b(a)){if(o&&i.match(/^\\d+$/))return s;(a=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,\"name\")):(a=a.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),a=t.stylize(a,\"string\"))}return a+\": \"+s}function p(t){return Array.isArray(t)}function m(t){return\"boolean\"==typeof t}function v(t){return null===t}function g(t){return\"number\"==typeof t}function y(t){return\"string\"==typeof t}function b(t){return void 0===t}function _(t){return w(t)&&\"[object RegExp]\"===C(t)}function w(t){return\"object\"===r(t)&&null!==t}function x(t){return w(t)&&\"[object Date]\"===C(t)}function k(t){return w(t)&&(\"[object Error]\"===C(t)||t instanceof Error)}function S(t){return\"function\"==typeof t}function C(t){return Object.prototype.toString.call(t)}function E(t){return t<10?\"0\"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(b(a)&&(a=t.env.NODE_DEBUG||\"\"),n=n.toUpperCase(),!s[n])if(new RegExp(\"\\\\b\"+n+\"\\\\b\",\"i\").test(a)){t.pid;s[n]=function(){e.format.apply(e,arguments)}}else s[n]=function(){};return s[n]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},e.isArray=p,e.isBoolean=m,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=y,e.isSymbol=function(t){return\"symbol\"===r(t)},e.isUndefined=b,e.isRegExp=_,e.isObject=w,e.isDate=x,e.isError=k,e.isFunction=S,e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===r(t)||void 0===t},e.isBuffer=n(144);var D=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,n;t=new Date,n=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(\":\"),[t.getDate(),D[t.getMonth()],n].join(\" \"),e.format.apply(e,arguments)},e.inherits=n(145),e._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var O=\"undefined\"!=typeof Symbol?Symbol(\"util.promisify.custom\"):void 0;function M(t,e){if(!t){var n=new Error(\"Promise was rejected with a falsy value\");n.reason=t,t=n}return e(t)}e.promisify=function(t){if(\"function\"!=typeof t)throw new TypeError('The \"original\" argument must be of type Function');if(O&&t[O]){var e;if(\"function\"!=typeof(e=t[O]))throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');return Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,r){t?n(t):e(r)}));try{t.apply(this,i)}catch(t){n(t)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),O&&Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=O,e.callbackify=function(e){if(\"function\"!=typeof e)throw new TypeError('The \"original\" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if(\"function\"!=typeof i)throw new TypeError(\"The last argument must be of type Function\");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,n).then((function(e){t.nextTick(a,null,e)}),(function(e){t.nextTick(M,e,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,i(e)),n}}).call(this,n(7))},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if(\"object\"!==r(n))throw new TypeError(n+\"must be non-object\");for(var i in n)o(n,i)&&(t[i]=n[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var a={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},s={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,a)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,n){var r,i,o;function a(t,e){var n=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t))||e&&t&&\"number\"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}o=function(){\"use strict\";function t(){return!0}function e(){return!1}function n(){}var r=\"Argument is not a typed-function.\",i=function i(){function o(t){return\"object\"===u(t)&&null!==t&&t.constructor===Object}var s,l,c=[{name:\"number\",test:function(t){return\"number\"==typeof t}},{name:\"string\",test:function(t){return\"string\"==typeof t}},{name:\"boolean\",test:function(t){return\"boolean\"==typeof t}},{name:\"Function\",test:function(t){return\"function\"==typeof t}},{name:\"Array\",test:Array.isArray},{name:\"Date\",test:function(t){return t instanceof Date}},{name:\"RegExp\",test:function(t){return t instanceof RegExp}},{name:\"Object\",test:o},{name:\"null\",test:function(t){return null===t}},{name:\"undefined\",test:function(t){return void 0===t}}],h={name:\"any\",test:t,isAny:!0},f=0,d={createCount:0};function p(t){var e=s.get(t);if(e)return e;var n,r,i='Unknown type \"'+t+'\"',o=t.toLowerCase(),u=a(l);try{for(u.s();!(r=u.n()).done;)if((n=r.value).toLowerCase()===o){i+='. Did you mean \"'+n+'\" ?';break}}catch(t){u.e(t)}finally{u.f()}throw new TypeError(i)}function m(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"any\",n=e?p(e).index:l.length,r=[],i=0;i<t.length;++i){if(!t[i]||\"string\"!=typeof t[i].name||\"function\"!=typeof t[i].test)throw new TypeError(\"Object with properties {name: string, test: function} expected\");var o=t[i].name;if(s.has(o))throw new TypeError('Duplicate type name \"'+o+'\"');r.push(o),s.set(o,{name:o,test:t[i].test,isAny:t[i].isAny,index:n+i,conversionsTo:[]})}var a=l.slice(n);l=l.slice(0,n).concat(r).concat(a);for(var u=n+r.length;u<l.length;++u)s.get(l[u]).index=u}function v(){s=new Map,l=[],f=0,m([h],!1)}function g(t){var e=l.filter((function(e){var n=s.get(e);return!n.isAny&&n.test(t)}));return e.length?e:[\"any\"]}function y(t){return t&&\"function\"==typeof t&&\"_typedFunctionData\"in t}function b(t,e,n){if(!y(t))throw new TypeError(r);var i=n&&n.exact,o=S(Array.isArray(e)?e.join(\",\"):e),s=_(o);if(!i||s in t.signatures){var u=t._typedFunctionData.signatureMap.get(s);if(u)return u}var l,c,h,f=o.length;if(i)for(c in l=[],t.signatures)l.push(t._typedFunctionData.signatureMap.get(c));else l=t._typedFunctionData.signatures;for(var d=0;d<f;++d){var p,m=o[d],v=[],g=void 0,b=a(l);try{var w=function(){var t=A((g=p.value).params,d);if(!t||m.restParam&&!t.restParam)return 0;if(!t.hasAny){var e=k(t);if(m.types.some((function(t){return!e.has(t.name)})))return 0}v.push(g)};for(b.s();!(p=b.n()).done;)w()}catch(t){b.e(t)}finally{b.f()}if(0===(l=v).length)break}var x,C=a(l);try{for(C.s();!(x=C.n()).done;)if((h=x.value).params.length<=f)return h}catch(t){C.e(t)}finally{C.f()}throw new TypeError(\"Signature not found (signature: \"+(t.name||\"unnamed\")+\"(\"+_(o,\", \")+\"))\")}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\",\";return t.map((function(t){return t.name})).join(e)}function w(t){var e=0===t.indexOf(\"...\"),n=(e?t.length>3?t.slice(3):\"any\":t).split(\"|\").map((function(t){return p(t.trim())})),r=!1,i=e?\"...\":\"\";return{types:n.map((function(t){return r=t.isAny||r,i+=t.name+\"|\",{name:t.name,typeIndex:t.index,test:t.test,isAny:t.isAny,conversion:null,conversionIndex:-1}})),name:i.slice(0,-1),hasAny:r,hasConversion:!1,restParam:e}}function x(t){var e=function(t){if(0===t.length)return[];var e=t.map(p);t.length>1&&e.sort((function(t,e){return t.index-e.index}));var n=e[0].conversionsTo;if(1===t.length)return n;n=n.concat([]);for(var r=new Set(t),i=1;i<e.length;++i){var o,s=void 0,u=a(e[i].conversionsTo);try{for(u.s();!(o=u.n()).done;)s=o.value,r.has(s.from)||(n.push(s),r.add(s.from))}catch(t){u.e(t)}finally{u.f()}}return n}(t.types.map((function(t){return t.name}))),n=t.hasAny,r=t.name,i=e.map((function(t){var e=p(t.from);return n=e.isAny||n,r+=\"|\"+t.from,{name:t.from,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:t,conversionIndex:t.index}}));return{types:t.types.concat(i),name:r,hasAny:n,hasConversion:i.length>0,restParam:t.restParam}}function k(t){return t.typeSet||(t.typeSet=new Set,t.types.forEach((function(e){return t.typeSet.add(e.name)}))),t.typeSet}function S(t){var e=[];if(\"string\"!=typeof t)throw new TypeError(\"Signatures must be strings\");var n=t.trim();if(\"\"===n)return e;for(var r=n.split(\",\"),i=0;i<r.length;++i){var o=w(r[i].trim());if(o.restParam&&i!==r.length-1)throw new SyntaxError('Unexpected rest parameter \"'+r[i]+'\": only allowed for the last parameter');if(0===o.types.length)return null;e.push(o)}return e}function C(t){var e=G(t);return!!e&&e.restParam}function E(e){if(e&&0!==e.types.length){if(1===e.types.length)return p(e.types[0].name).test;if(2===e.types.length){var n=p(e.types[0].name).test,r=p(e.types[1].name).test;return function(t){return n(t)||r(t)}}var i=e.types.map((function(t){return p(t.name).test}));return function(t){for(var e=0;e<i.length;e++)if(i[e](t))return!0;return!1}}return t}function D(t){var e,n,r;if(C(t)){var i=(e=H(t).map(E)).length,o=E(G(t));return function(t){for(var n=0;n<e.length;n++)if(!e[n](t[n]))return!1;return function(t){for(var e=i;e<t.length;e++)if(!o(t[e]))return!1;return!0}(t)&&t.length>=i+1}}return 0===t.length?function(t){return 0===t.length}:1===t.length?(n=E(t[0]),function(t){return n(t[0])&&1===t.length}):2===t.length?(n=E(t[0]),r=E(t[1]),function(t){return n(t[0])&&r(t[1])&&2===t.length}):(e=t.map(E),function(t){for(var n=0;n<e.length;n++)if(!e[n](t[n]))return!1;return t.length===e.length})}function A(t,e){return e<t.length?t[e]:C(t)?G(t):null}function O(t,e){var n=A(t,e);return n?k(n):new Set}function M(t){return null===t.conversion||void 0===t.conversion}function T(t,e){var n=new Set;return t.forEach((function(t){var r,i,o=a(O(t.params,e));try{for(o.s();!(i=o.n()).done;)r=i.value,n.add(r)}catch(t){o.e(t)}finally{o.f()}})),n.has(\"any\")?[\"any\"]:Array.from(n)}function I(t,e,n){var r,i,o,a,s=t||\"unnamed\",u=n,l=function(){var t=[];if(u.forEach((function(n){var r=E(A(n.params,o));(o<n.params.length||C(n.params))&&r(e[o])&&t.push(n)})),0===t.length){if((i=T(u,o)).length>0){var n=g(e[o]);return(r=new TypeError(\"Unexpected type of argument in function \"+s+\" (expected: \"+i.join(\" or \")+\", actual: \"+n.join(\" | \")+\", index: \"+o+\")\")).data={category:\"wrongType\",fn:s,index:o,actual:n,expected:i},{v:r}}}else u=t};for(o=0;o<e.length;o++)if(a=l())return a.v;var c=u.map((function(t){return C(t.params)?1/0:t.params.length}));if(e.length<Math.min.apply(null,c))return i=T(u,o),(r=new TypeError(\"Too few arguments in function \"+s+\" (expected: \"+i.join(\" or \")+\", index: \"+e.length+\")\")).data={category:\"tooFewArgs\",fn:s,index:e.length,expected:i},r;var h=Math.max.apply(null,c);if(e.length>h)return(r=new TypeError(\"Too many arguments in function \"+s+\" (expected: \"+h+\", actual: \"+e.length+\")\")).data={category:\"tooManyArgs\",fn:s,index:e.length,expectedLength:h},r;for(var f=[],d=0;d<e.length;++d)f.push(g(e[d]).join(\"|\"));return(r=new TypeError('Arguments of type \"'+f.join(\", \")+'\" do not match any of the defined signatures of function '+s+\".\")).data={category:\"mismatch\",actual:f},r}function P(t){for(var e=l.length+1,n=0;n<t.types.length;n++)M(t.types[n])&&(e=Math.min(e,t.types[n].typeIndex));return e}function F(t){for(var e=f+1,n=0;n<t.types.length;n++)M(t.types[n])||(e=Math.min(e,t.types[n].conversionIndex));return e}function j(t,e){if(t.hasAny){if(!e.hasAny)return 1}else if(e.hasAny)return-1;if(t.restParam){if(!e.restParam)return 1}else if(e.restParam)return-1;if(t.hasConversion){if(!e.hasConversion)return 1}else if(e.hasConversion)return-1;var n=P(t)-P(e);if(n<0)return-1;if(n>0)return 1;var r=F(t)-F(e);return r<0?-1:r>0?1:0}function N(t,e){var n=t.params,r=e.params,i=G(n),o=G(r),s=C(n),u=C(r);if(s&&i.hasAny){if(!u||!o.hasAny)return 1}else if(u&&o.hasAny)return-1;var l,c,h=0,f=0,d=a(n);try{for(d.s();!(c=d.n()).done;)(l=c.value).hasAny&&++h,l.hasConversion&&++f}catch(t){d.e(t)}finally{d.f()}var p,m=0,v=0,g=a(r);try{for(g.s();!(p=g.n()).done;)(l=p.value).hasAny&&++m,l.hasConversion&&++v}catch(t){g.e(t)}finally{g.f()}if(h!==m)return h-m;if(s&&i.hasConversion){if(!u||!o.hasConversion)return 1}else if(u&&o.hasConversion)return-1;if(f!==v)return f-v;if(s){if(!u)return 1}else if(u)return-1;var y=(n.length-r.length)*(s?-1:1);if(0!==y)return y;for(var b,_=[],w=0,x=0;x<n.length;++x){var k=j(n[x],r[x]);_.push(k),w+=k}if(0!==w)return w;for(var S=0,E=_;S<E.length;S++)if(0!==(b=E[S]))return b;return 0}function L(t,e){var n=e;if(t.some((function(t){return t.hasConversion}))){var r=C(t),i=t.map(B);n=function(){for(var t=[],n=r?arguments.length-1:arguments.length,o=0;o<n;o++)t[o]=i[o](arguments[o]);return r&&(t[n]=arguments[n].map(i[n])),e.apply(this,t)}}var o=n;if(C(t)){var a=t.length-1;o=function(){return n.apply(this,q(arguments,0,a).concat([q(arguments,a)]))}}return o}function B(t){var e,n,r,i,o=[],a=[];switch(t.types.forEach((function(t){t.conversion&&(o.push(p(t.conversion.from).test),a.push(t.conversion.convert))})),a.length){case 0:return function(t){return t};case 1:return e=o[0],r=a[0],function(t){return e(t)?r(t):t};case 2:return e=o[0],n=o[1],r=a[0],i=a[1],function(t){return e(t)?r(t):n(t)?i(t):t};default:return function(t){for(var e=0;e<a.length;e++)if(o[e](t))return a[e](t);return t}}}function $(t){return function t(e,n,r){if(n<e.length){var i=e[n],o=[];if(i.restParam){var a=i.types.filter(M);a.length<i.types.length&&o.push({types:a,name:\"...\"+a.map((function(t){return t.name})).join(\"|\"),hasAny:a.some((function(t){return t.isAny})),hasConversion:!1,restParam:!0}),o.push(i)}else o=i.types.map((function(t){return{types:[t],name:t.name,hasAny:t.isAny,hasConversion:t.conversion,restParam:!1}}));return s=o,u=function(i){return t(e,n+1,r.concat([i]))},Array.prototype.concat.apply([],s.map(u))}return[r];var s,u}(t,0,[])}function z(t,e,n){var r,i,o=[],s=a(t);try{for(s.s();!(i=s.n()).done;){var u=n[r=i.value];if(\"number\"!=typeof u)throw new TypeError('No definition for referenced signature \"'+r+'\"');if(\"function\"!=typeof(u=e[u]))return!1;o.push(u)}}catch(t){s.e(t)}finally{s.f()}return o}function R(t,e,n){for(var r=function(t){return t.map((function(t){return K(t)?Y(t.referToSelf.callback):Z(t)?W(t.referTo.references,t.referTo.callback):t}))}(t),i=new Array(r.length).fill(!1),o=!0;o;){o=!1;for(var a=!0,s=0;s<r.length;++s)if(!i[s]){var u=r[s];if(K(u))r[s]=u.referToSelf.callback(n),r[s].referToSelf=u.referToSelf,i[s]=!0,a=!1;else if(Z(u)){var l=z(u.referTo.references,r,e);l?(r[s]=u.referTo.callback.apply(this,l),r[s].referTo=u.referTo,i[s]=!0,a=!1):o=!0}}if(a&&o)throw new SyntaxError(\"Circular reference detected in resolving typed.referTo\")}return r}function U(t,r){if(d.createCount++,0===Object.keys(r).length)throw new SyntaxError(\"No signatures provided\");d.warnAgainstDeprecatedThis&&function(t){var e=/\\bthis(\\(|\\.signatures\\b)/;Object.keys(t).forEach((function(n){var r=t[n];if(e.test(r.toString()))throw new SyntaxError(\"Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.\")}))}(r);var i,o=[],s=[],u={},l=[],c=function(){if(!Object.prototype.hasOwnProperty.call(r,i))return 0;var t=S(i);if(!t)return 0;o.forEach((function(e){if(function(t,e){for(var n=Math.max(t.length,e.length),r=0;r<n;r++){var i,o=O(t,r),s=!1,u=void 0,l=a(O(e,r));try{for(l.s();!(i=l.n()).done;)if(u=i.value,o.has(u)){s=!0;break}}catch(t){l.e(t)}finally{l.f()}if(!s)return!1}var c=t.length,h=e.length,f=C(t),d=C(e);return f?d?c===h:h>=c:d?c>=h:c===h}(e,t))throw new TypeError('Conflicting signatures \"'+_(e)+'\" and \"'+_(t)+'\".')})),o.push(t);var e=s.length;s.push(r[i]);var n,c,h=a($(t.map(x)));try{for(h.s();!(c=h.n()).done;){var f=_(n=c.value);l.push({params:n,name:f,fn:e}),n.every((function(t){return!t.hasConversion}))&&(u[f]=e)}}catch(t){h.e(t)}finally{h.f()}};for(i in r)c();l.sort(N);var h,f=R(s,u,dt);for(h in u)Object.prototype.hasOwnProperty.call(u,h)&&(u[h]=f[u[h]]);for(var p=[],m=new Map,v=0,g=l;v<g.length;v++)h=g[v],m.has(h.name)||(h.fn=f[h.fn],p.push(h),m.set(h.name,h));for(var y=p[0]&&p[0].params.length<=2&&!C(p[0].params),b=p[1]&&p[1].params.length<=2&&!C(p[1].params),w=p[2]&&p[2].params.length<=2&&!C(p[2].params),k=p[3]&&p[3].params.length<=2&&!C(p[3].params),A=p[4]&&p[4].params.length<=2&&!C(p[4].params),M=p[5]&&p[5].params.length<=2&&!C(p[5].params),T=y&&b&&w&&k&&A&&M,I=0;I<p.length;++I)p[I].test=D(p[I].params);for(var P=y?E(p[0].params[0]):e,F=b?E(p[1].params[0]):e,j=w?E(p[2].params[0]):e,B=k?E(p[3].params[0]):e,z=A?E(p[4].params[0]):e,U=M?E(p[5].params[0]):e,V=y?E(p[0].params[1]):e,H=b?E(p[1].params[1]):e,G=w?E(p[2].params[1]):e,q=k?E(p[3].params[1]):e,W=A?E(p[4].params[1]):e,Y=M?E(p[5].params[1]):e,Z=0;Z<p.length;++Z)p[Z].implementation=L(p[Z].params,p[Z].fn);var K=y?p[0].implementation:n,X=b?p[1].implementation:n,J=w?p[2].implementation:n,Q=k?p[3].implementation:n,tt=A?p[4].implementation:n,et=M?p[5].implementation:n,nt=y?p[0].params.length:-1,rt=b?p[1].params.length:-1,it=w?p[2].params.length:-1,ot=k?p[3].params.length:-1,at=A?p[4].params.length:-1,st=M?p[5].params.length:-1,ut=T?6:0,lt=p.length,ct=p.map((function(t){return t.test})),ht=p.map((function(t){return t.implementation})),ft=function(){for(var e=ut;e<lt;e++)if(ct[e](arguments))return ht[e].apply(this,arguments);return d.onMismatch(t,arguments,p)};function dt(t,e){return arguments.length===nt&&P(t)&&V(e)?K.apply(this,arguments):arguments.length===rt&&F(t)&&H(e)?X.apply(this,arguments):arguments.length===it&&j(t)&&G(e)?J.apply(this,arguments):arguments.length===ot&&B(t)&&q(e)?Q.apply(this,arguments):arguments.length===at&&z(t)&&W(e)?tt.apply(this,arguments):arguments.length===st&&U(t)&&Y(e)?et.apply(this,arguments):ft.apply(this,arguments)}try{Object.defineProperty(dt,\"name\",{value:t})}catch(t){}return dt.signatures=u,dt._typedFunctionData={signatures:p,signatureMap:m},dt}function V(t,e,n){throw I(t,e,n)}function H(t){return q(t,0,t.length-1)}function G(t){return t[t.length-1]}function q(t,e,n){return Array.prototype.slice.call(t,e,n)}function W(t,e){return{referTo:{references:t,callback:e}}}function Y(t){if(\"function\"!=typeof t)throw new TypeError(\"Callback function expected as first argument\");return{referToSelf:{callback:t}}}function Z(t){return t&&\"object\"===u(t.referTo)&&Array.isArray(t.referTo.references)&&\"function\"==typeof t.referTo.callback}function K(t){return t&&\"object\"===u(t.referToSelf)&&\"function\"==typeof t.referToSelf.callback}function X(t,e){if(!t)return e;if(e&&e!==t){var n=new Error(\"Function names do not match (expected: \"+t+\", actual: \"+e+\")\");throw n.data={actual:e,expected:t},n}return t}function J(t){var e;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(y(t[n])||\"string\"==typeof t[n].signature)&&(e=X(e,t[n].name));return e}function Q(t,e){var n;for(n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(n in t&&e[n]!==t[n]){var r=new Error('Signature \"'+n+'\" is defined twice');throw r.data={signature:n,sourceFunction:e[n],destFunction:t[n]},r}t[n]=e[n]}}v(),m(c);var tt=d;function et(t){if(!t||\"string\"!=typeof t.from||\"string\"!=typeof t.to||\"function\"!=typeof t.convert)throw new TypeError(\"Object with properties {from: string, to: string, convert: function} expected\");if(t.to===t.from)throw new SyntaxError('Illegal to define conversion from \"'+t.from+'\" to itself.')}return d=function(t){for(var e=\"string\"==typeof t,n=e?t:\"\",r={},i=e?1:0;i<arguments.length;++i){var a=arguments[i],s={},u=void 0;if(\"function\"==typeof a?(u=a.name,\"string\"==typeof a.signature?s[a.signature]=a:y(a)&&(s=a.signatures)):o(a)&&(s=a,e||(u=J(a))),0===Object.keys(s).length){var l=new TypeError(\"Argument to 'typed' at index \"+i+\" is not a (typed) function, nor an object with signatures as keys and functions as values.\");throw l.data={index:i,argument:a},l}e||(n=X(n,u)),Q(r,s)}return U(n||\"\",r)},d.create=i,d.createCount=tt.createCount,d.onMismatch=V,d.throwMismatchError=V,d.createError=I,d.clear=v,d.clearConversions=function(){var t,e,n=a(l);try{for(n.s();!(e=n.n()).done;)t=e.value,s.get(t).conversionsTo=[]}catch(t){n.e(t)}finally{n.f()}f=0},d.addTypes=m,d._findType=p,d.referTo=function(){var t=H(arguments).map((function(t){return _(S(t))})),e=G(arguments);if(\"function\"!=typeof e)throw new TypeError(\"Callback function expected as last argument\");return W(t,e)},d.referToSelf=Y,d.convert=function(t,e){var n=p(e);if(n.test(t))return t;var r=n.conversionsTo;if(0===r.length)throw new Error(\"There are no conversions to \"+e+\" defined.\");for(var i=0;i<r.length;i++)if(p(r[i].from).test(t))return r[i].convert(t);throw new Error(\"Cannot convert \"+t+\" to \"+e)},d.findSignature=b,d.find=function(t,e,n){return b(t,e,n).implementation},d.isTypedFunction=y,d.warnAgainstDeprecatedThis=!0,d.addType=function(t,e){var n=\"any\";!1!==e&&s.has(\"Object\")&&(n=\"Object\"),d.addTypes([t],n)},d.addConversion=function(t){et(t);var e=p(t.to);if(!e.conversionsTo.every((function(e){return e.from!==t.from})))throw new Error('There is already a conversion from \"'+t.from+'\" to \"'+e.name+'\"');e.conversionsTo.push({from:t.from,convert:t.convert,index:f++})},d.addConversions=function(t){t.forEach(d.addConversion)},d.removeConversion=function(t){et(t);var e=p(t.to),n=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]}(e.conversionsTo,(function(e){return e.from===t.from}));if(!n)throw new Error(\"Attempt to remove nonexistent conversion from \"+t.from+\" to \"+t.to);if(n.convert!==t.convert)throw new Error(\"Conversion to remove does not match existing conversion\");var r=e.conversionsTo.indexOf(n);e.conversionsTo.splice(r,1)},d.resolve=function(t,e){if(!y(t))throw new TypeError(r);for(var n=t._typedFunctionData.signatures,i=0;i<n.length;++i)if(n[i].test(e))return n[i];return null},d}();return i},\"object\"===u(e)&&void 0!==t?t.exports=o():void 0===(i=\"function\"==typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){\"use strict\";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0,r=0;r<e.length;r++)if(t.chars[e[r]]){var i=t.kernings[e[r]]&&t.kernings[e[r]][e[r+1]]?t.kernings[e[r]][e[r+1]]:0;n+=(t.chars[e[r]].xadvance||0)+i}return n}function a(t,e,n){var i=e.replace(/[\\r\\n]+/g,\" \\n\").split(\" \"),a=[],s=[],u=0;return i.forEach((function(e){var i=[].concat(r(s),[e]).join(\" \"),l=o(t,i);l<=n&&!e.includes(\"\\n\")?(l>u&&(u=l),s.push(e)):(a.push(s),s=[e.replace(\"\\n\",\"\")])})),a.push(s),{lines:a,longestLine:u}}function s(t,e,n){return a(t,e,n).lines.length*t.common.lineHeight}n.d(e,\"a\",(function(){return o})),n.d(e,\"c\",(function(){return a})),n.d(e,\"b\",(function(){return s}))},function(t,e,n){\"use strict\";var r=n(39),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=h;var o=Object.create(n(27));o.inherits=n(24);var a=n(70),s=n(52);o.inherits(h,a);for(var u=i(s.prototype),l=0;l<u.length;l++){var c=u[l];h.prototype[c]||(h.prototype[c]=s.prototype[c])}function h(t){if(!(this instanceof h))return new h(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once(\"end\",f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(h.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},function(t,e,n){\"use strict\";n.d(e,\"a\",(function(){return i})),n.d(e,\"c\",(function(){return o})),n.d(e,\"b\",(function(){return a}));var r={},i=function(t,e){r[t]=e},o=function(t){var e=t.split(\"/\").slice(-1),n=function(t){return Object.entries(r).find((function(e){return e[1].includes(t)}))||[]}(e[e.length-1].split(\".\").pop());return n[0]},a=function(t){return(r[t.toLowerCase()]||[])[0]}},function(t,e,n){\"use strict\";n.r(e),n.d(e,\"AUTO\",(function(){return r})),n.d(e,\"HORIZONTAL_ALIGN_LEFT\",(function(){return i})),n.d(e,\"HORIZONTAL_ALIGN_CENTER\",(function(){return o})),n.d(e,\"HORIZONTAL_ALIGN_RIGHT\",(function(){return a})),n.d(e,\"VERTICAL_ALIGN_TOP\",(function(){return s})),n.d(e,\"VERTICAL_ALIGN_MIDDLE\",(function(){return u})),n.d(e,\"VERTICAL_ALIGN_BOTTOM\",(function(){return l})),n.d(e,\"BLEND_SOURCE_OVER\",(function(){return c})),n.d(e,\"BLEND_DESTINATION_OVER\",(function(){return h})),n.d(e,\"BLEND_MULTIPLY\",(function(){return f})),n.d(e,\"BLEND_ADD\",(function(){return d})),n.d(e,\"BLEND_SCREEN\",(function(){return p})),n.d(e,\"BLEND_OVERLAY\",(function(){return m})),n.d(e,\"BLEND_DARKEN\",(function(){return v})),n.d(e,\"BLEND_LIGHTEN\",(function(){return g})),n.d(e,\"BLEND_HARDLIGHT\",(function(){return y})),n.d(e,\"BLEND_DIFFERENCE\",(function(){return b})),n.d(e,\"BLEND_EXCLUSION\",(function(){return _})),n.d(e,\"EDGE_EXTEND\",(function(){return w})),n.d(e,\"EDGE_WRAP\",(function(){return x})),n.d(e,\"EDGE_CROP\",(function(){return k}));var r=-1,i=1,o=2,a=4,s=8,u=16,l=32,c=\"srcOver\",h=\"dstOver\",f=\"multiply\",d=\"add\",p=\"screen\",m=\"overlay\",v=\"darken\",g=\"lighten\",y=\"hardLight\",b=\"difference\",_=\"exclusion\",w=1,x=2,k=3},function(t,e,n){var r;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(o){\"use strict\";var a,s,u,l=9e15,c=1e9,h=\"0123456789abcdef\",f=\"2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058\",d=\"3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789\",p={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-l,maxE:l,crypto:!1},m=!0,v=\"[DecimalError] \",g=v+\"Invalid argument: \",y=v+\"Precision limit exceeded\",b=v+\"crypto unavailable\",_=\"[object Decimal]\",w=Math.floor,x=Math.pow,k=/^0b([01]+(\\.[01]*)?|\\.[01]+)(p[+-]?\\d+)?$/i,S=/^0x([0-9a-f]+(\\.[0-9a-f]*)?|\\.[0-9a-f]+)(p[+-]?\\d+)?$/i,C=/^0o([0-7]+(\\.[0-7]*)?|\\.[0-7]+)(p[+-]?\\d+)?$/i,E=/^(\\d+(\\.\\d*)?|\\.\\d+)(e[+-]?\\d+)?$/i,D=1e7,A=7,O=f.length-1,M=d.length-1,T={toStringTag:_};function I(t){var e,n,r,i=t.length-1,o=\"\",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)r=t[e]+\"\",(n=A-r.length)&&(o+=V(n)),o+=r;a=t[e],(n=A-(r=a+\"\").length)&&(o+=V(n))}else if(0===a)return\"0\";for(;a%10==0;)a/=10;return o+a}function P(t,e,n){if(t!==~~t||t<e||t>n)throw Error(g+t)}function F(t,e,n,r){var i,o,a,s;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=A,i=0):(i=Math.ceil((e+1)/A),e%=A),o=x(10,A-e),s=t[i]%o|0,null==r?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(t[i+1]/o/100|0)==x(10,e-2)-1||(s==o/2||0==s)&&!(t[i+1]/o/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==o||!r&&n>3&&s+1==o/2)&&(t[i+1]/o/1e3|0)==x(10,e-3)-1,a}function j(t,e,n){for(var r,i,o=[0],a=0,s=t.length;a<s;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=h.indexOf(t.charAt(a++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}T.absoluteValue=T.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),L(t)},T.ceil=function(){return L(new this.constructor(this),this.e+1,2)},T.clampedTo=T.clamp=function(t,e){var n=this,r=n.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(g+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},T.comparedTo=T.cmp=function(t){var e,n,r,i,o=this,a=o.d,s=(t=new o.constructor(t)).d,u=o.s,l=t.s;if(!a||!s)return u&&l?u!==l?u:a===s?0:!a^u<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?u:s[0]?-l:0;if(u!==l)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,n=(r=a.length)<(i=s.length)?r:i;e<n;++e)if(a[e]!==s[e])return a[e]>s[e]^u<0?1:-1;return r===i?0:r>i^u<0?1:-1},T.cosine=T.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+A,r.rounding=1,n=function(t,e){var n,r,i;if(e.isZero())return e;r=e.d.length,r<32?i=(1/Q(4,n=Math.ceil(r/3))).toString():(n=16,i=\"2.3283064365386962890625e-10\");t.precision+=n,e=J(t,1,e.times(i),new t(1));for(var o=n;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=n,e}(r,tt(r,n)),r.precision=t,r.rounding=e,L(2==u||3==u?n.neg():n,t,e,!0)):new r(1):new r(NaN)},T.cubeRoot=T.cbrt=function(){var t,e,n,r,i,o,a,s,u,l,c=this,h=c.constructor;if(!c.isFinite()||c.isZero())return new h(c);for(m=!1,(o=c.s*x(c.s*c,1/3))&&Math.abs(o)!=1/0?r=new h(o.toString()):(n=I(c.d),(o=((t=c.e)-n.length+1)%3)&&(n+=1==o||-2==o?\"0\":\"00\"),o=x(n,1/3),t=w((t+1)/3)-(t%3==(t<0?-1:2)),(r=new h(n=o==1/0?\"5e\"+t:(n=o.toExponential()).slice(0,n.indexOf(\"e\")+1)+t)).s=c.s),a=(t=h.precision)+3;;)if(l=(u=(s=r).times(s).times(s)).plus(c),r=N(l.plus(c).times(s),l.plus(u),a+2,1),I(s.d).slice(0,a)===(n=I(r.d)).slice(0,a)){if(\"9999\"!=(n=n.slice(a-3,a+1))&&(i||\"4999\"!=n)){+n&&(+n.slice(1)||\"5\"!=n.charAt(0))||(L(r,t+1,1),e=!r.times(r).times(r).eq(c));break}if(!i&&(L(s,t+1,0),s.times(s).times(s).eq(c))){r=s;break}a+=4,i=1}return m=!0,L(r,t,h.rounding,e)},T.decimalPlaces=T.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=((t=e.length-1)-w(this.e/A))*A,t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},T.dividedBy=T.div=function(t){return N(this,new this.constructor(t))},T.dividedToIntegerBy=T.divToInt=function(t){var e=this.constructor;return L(N(this,new e(t),0,1,1),e.precision,e.rounding)},T.equals=T.eq=function(t){return 0===this.cmp(t)},T.floor=function(){return L(new this.constructor(this),this.e+1,3)},T.greaterThan=T.gt=function(t){return this.cmp(t)>0},T.greaterThanOrEqualTo=T.gte=function(t){var e=this.cmp(t);return 1==e||0===e},T.hyperbolicCosine=T.cosh=function(){var t,e,n,r,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/Q(4,t=Math.ceil(i/3))).toString():(t=16,e=\"2.3283064365386962890625e-10\"),o=J(a,1,o.times(e),new a(1),!0);for(var u,l=t,c=new a(8);l--;)u=o.times(o),o=s.minus(u.times(c.minus(u.times(c))));return L(o,a.precision=n,a.rounding=r,!0)},T.hyperbolicSine=T.sinh=function(){var t,e,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=J(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=J(o,2,i=i.times(1/Q(5,t)),i,!0);for(var a,s=new o(5),u=new o(16),l=new o(20);t--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(l))))}return o.precision=e,o.rounding=n,L(i,e,n,!0)},T.hyperbolicTangent=T.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,N(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},T.inverseCosine=T.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?e.isNeg()?R(n,i,o):new n(0):new n(NaN):e.isZero()?R(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=R(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},T.inverseHyperbolicCosine=T.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,m=!1,n=n.times(n).minus(1).sqrt().plus(n),m=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},T.inverseHyperbolicSine=T.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,m=!1,n=n.times(n).plus(1).sqrt().plus(n),m=!0,r.precision=t,r.rounding=e,n.ln())},T.inverseHyperbolicTangent=T.atanh=function(){var t,e,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?L(new o(i),t,e,!0):(o.precision=n=r-i.e,i=N(i.plus(1),new o(1).minus(i),n+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},T.inverseSine=T.asin=function(){var t,e,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==e?0===e?((t=R(o,n+4,r).times(.5)).s=i.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},T.inverseTangent=T.atan=function(){var t,e,n,r,i,o,a,s,u,l=this,c=l.constructor,h=c.precision,f=c.rounding;if(l.isFinite()){if(l.isZero())return new c(l);if(l.abs().eq(1)&&h+4<=M)return(a=R(c,h+4,f).times(.25)).s=l.s,a}else{if(!l.s)return new c(NaN);if(h+4<=M)return(a=R(c,h+4,f).times(.5)).s=l.s,a}for(c.precision=s=h+10,c.rounding=1,t=n=Math.min(28,s/A+2|0);t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(m=!1,e=Math.ceil(s/A),r=1,u=l.times(l),a=new c(l),i=l;-1!==t;)if(i=i.times(u),o=a.minus(i.div(r+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(r+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return n&&(a=a.times(2<<n-1)),m=!0,L(a,c.precision=h,c.rounding=f,!0)},T.isFinite=function(){return!!this.d},T.isInteger=T.isInt=function(){return!!this.d&&w(this.e/A)>this.d.length-2},T.isNaN=function(){return!this.s},T.isNegative=T.isNeg=function(){return this.s<0},T.isPositive=T.isPos=function(){return this.s>0},T.isZero=function(){return!!this.d&&0===this.d[0]},T.lessThan=T.lt=function(t){return this.cmp(t)<0},T.lessThanOrEqualTo=T.lte=function(t){return this.cmp(t)<1},T.logarithm=T.log=function(t){var e,n,r,i,o,a,s,u,l=this,c=l.constructor,h=c.precision,f=c.rounding;if(null==t)t=new c(10),e=!0;else{if(n=(t=new c(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new c(NaN);e=t.eq(10)}if(n=l.d,l.s<0||!n||!n[0]||l.eq(1))return new c(n&&!n[0]?-1/0:1!=l.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(m=!1,a=Y(l,s=h+5),r=e?z(c,s+10):Y(t,s),F((u=N(a,r,s,1)).d,i=h,f))do{if(a=Y(l,s+=10),r=e?z(c,s+10):Y(t,s),u=N(a,r,s,1),!o){+I(u.d).slice(i+1,i+15)+1==1e14&&(u=L(u,h+1,0));break}}while(F(u.d,i+=10,f));return m=!0,L(u,h,f)},T.minus=T.sub=function(t){var e,n,r,i,o,a,s,u,l,c,h,f,d=this,p=d.constructor;if(t=new p(t),!d.d||!t.d)return d.s&&t.s?d.d?t.s=-t.s:t=new p(t.d||d.s!==t.s?d:NaN):t=new p(NaN),t;if(d.s!=t.s)return t.s=-t.s,d.plus(t);if(l=d.d,f=t.d,s=p.precision,u=p.rounding,!l[0]||!f[0]){if(f[0])t.s=-t.s;else{if(!l[0])return new p(3===u?-0:0);t=new p(d)}return m?L(t,s,u):t}if(n=w(t.e/A),c=w(d.e/A),l=l.slice(),o=c-n){for((h=o<0)?(e=l,o=-o,a=f.length):(e=f,n=c,a=l.length),o>(r=Math.max(Math.ceil(s/A),a)+2)&&(o=r,e.length=1),e.reverse(),r=o;r--;)e.push(0);e.reverse()}else{for((h=(r=l.length)<(a=f.length))&&(a=r),r=0;r<a;r++)if(l[r]!=f[r]){h=l[r]<f[r];break}o=0}for(h&&(e=l,l=f,f=e,t.s=-t.s),a=l.length,r=f.length-a;r>0;--r)l[a++]=0;for(r=f.length;r>o;){if(l[--r]<f[r]){for(i=r;i&&0===l[--i];)l[i]=D-1;--l[i],l[r]+=D}l[r]-=f[r]}for(;0===l[--a];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(t.d=l,t.e=$(l,n),m?L(t,s,u):t):new p(3===u?-0:0)},T.modulo=T.mod=function(t){var e,n=this,r=n.constructor;return t=new r(t),!n.d||!t.s||t.d&&!t.d[0]?new r(NaN):!t.d||n.d&&!n.d[0]?L(new r(n),r.precision,r.rounding):(m=!1,9==r.modulo?(e=N(n,t.abs(),0,3,1)).s*=t.s:e=N(n,t,0,r.modulo,1),e=e.times(t),m=!0,n.minus(e))},T.naturalExponential=T.exp=function(){return W(this)},T.naturalLogarithm=T.ln=function(){return Y(this)},T.negated=T.neg=function(){var t=new this.constructor(this);return t.s=-t.s,L(t)},T.plus=T.add=function(t){var e,n,r,i,o,a,s,u,l,c,h=this,f=h.constructor;if(t=new f(t),!h.d||!t.d)return h.s&&t.s?h.d||(t=new f(t.d||h.s===t.s?h:NaN)):t=new f(NaN),t;if(h.s!=t.s)return t.s=-t.s,h.minus(t);if(l=h.d,c=t.d,s=f.precision,u=f.rounding,!l[0]||!c[0])return c[0]||(t=new f(h)),m?L(t,s,u):t;if(o=w(h.e/A),r=w(t.e/A),l=l.slice(),i=o-r){for(i<0?(n=l,i=-i,a=c.length):(n=c,r=o,a=l.length),i>(a=(o=Math.ceil(s/A))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=l.length)-(i=c.length)<0&&(i=a,n=c,c=l,l=n),e=0;i;)e=(l[--i]=l[i]+c[i]+e)/D|0,l[i]%=D;for(e&&(l.unshift(e),++r),a=l.length;0==l[--a];)l.pop();return t.d=l,t.e=$(l,r),m?L(t,s,u):t},T.precision=T.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(g+t);return n.d?(e=U(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},T.round=function(){var t=this,e=t.constructor;return L(new e(t),t.e+1,e.rounding)},T.sine=T.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+A,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:J(t,2,e,e);n=(n=1.4*Math.sqrt(r))>16?16:0|n,e=e.times(1/Q(5,n)),e=J(t,2,e,e);for(var i,o=new t(5),a=new t(16),s=new t(20);n--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(s))));return e}(r,tt(r,n)),r.precision=t,r.rounding=e,L(u>2?n.neg():n,t,e,!0)):new r(NaN)},T.squareRoot=T.sqrt=function(){var t,e,n,r,i,o,a=this,s=a.d,u=a.e,l=a.s,c=a.constructor;if(1!==l||!s||!s[0])return new c(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);for(m=!1,0==(l=Math.sqrt(+a))||l==1/0?(((e=I(s)).length+u)%2==0&&(e+=\"0\"),l=Math.sqrt(e),u=w((u+1)/2)-(u<0||u%2),r=new c(e=l==1/0?\"5e\"+u:(e=l.toExponential()).slice(0,e.indexOf(\"e\")+1)+u)):r=new c(l.toString()),n=(u=c.precision)+3;;)if(r=(o=r).plus(N(a,o,n+2,1)).times(.5),I(o.d).slice(0,n)===(e=I(r.d)).slice(0,n)){if(\"9999\"!=(e=e.slice(n-3,n+1))&&(i||\"4999\"!=e)){+e&&(+e.slice(1)||\"5\"!=e.charAt(0))||(L(r,u+1,1),t=!r.times(r).eq(a));break}if(!i&&(L(o,u+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return m=!0,L(r,u,c.rounding,t)},T.tangent=T.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=N(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,L(2==u||4==u?n.neg():n,t,e,!0)):new r(NaN)},T.times=T.mul=function(t){var e,n,r,i,o,a,s,u,l,c=this,h=c.constructor,f=c.d,d=(t=new h(t)).d;if(t.s*=c.s,!(f&&f[0]&&d&&d[0]))return new h(!t.s||f&&!f[0]&&!d||d&&!d[0]&&!f?NaN:f&&d?0*t.s:t.s/0);for(n=w(c.e/A)+w(t.e/A),(u=f.length)<(l=d.length)&&(o=f,f=d,d=o,a=u,u=l,l=a),o=[],r=a=u+l;r--;)o.push(0);for(r=l;--r>=0;){for(e=0,i=u+r;i>r;)s=o[i]+d[r]*f[i-r-1]+e,o[i--]=s%D|0,e=s/D|0;o[i]=(o[i]+e)%D|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=$(o,n),m?L(t,h.precision,h.rounding):t},T.toBinary=function(t,e){return et(this,2,t,e)},T.toDecimalPlaces=T.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(P(t,0,c),void 0===e?e=r.rounding:P(e,0,8),L(n,t+n.e+1,e))},T.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=B(r,!0):(P(t,0,c),void 0===e?e=i.rounding:P(e,0,8),n=B(r=L(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?\"-\"+n:n},T.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=B(i):(P(t,0,c),void 0===e?e=o.rounding:P(e,0,8),n=B(r=L(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?\"-\"+n:n},T.toFraction=function(t){var e,n,r,i,o,a,s,u,l,c,h,f,d=this,p=d.d,v=d.constructor;if(!p)return new v(d);if(l=n=new v(1),r=u=new v(0),a=(o=(e=new v(r)).e=U(p)-d.e-1)%A,e.d[0]=x(10,a<0?A+a:a),null==t)t=o>0?e:l;else{if(!(s=new v(t)).isInt()||s.lt(l))throw Error(g+s);t=s.gt(e)?o>0?e:l:s}for(m=!1,s=new v(I(p)),c=v.precision,v.precision=o=p.length*A*2;h=N(s,e,0,1,1),1!=(i=n.plus(h.times(r))).cmp(t);)n=r,r=i,i=l,l=u.plus(h.times(i)),u=i,i=e,e=s.minus(h.times(i)),s=i;return i=N(t.minus(n),r,0,1,1),u=u.plus(i.times(l)),n=n.plus(i.times(r)),u.s=l.s=d.s,f=N(l,r,o,1).minus(d).abs().cmp(N(u,n,o,1).minus(d).abs())<1?[l,r]:[u,n],v.precision=c,m=!0,f},T.toHexadecimal=T.toHex=function(t,e){return et(this,16,t,e)},T.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:P(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(m=!1,n=N(n,t,0,e,1).times(t),m=!0,L(n)):(t.s=n.s,n=t),n},T.toNumber=function(){return+this},T.toOctal=function(t,e){return et(this,8,t,e)},T.toPower=T.pow=function(t){var e,n,r,i,o,a,s=this,u=s.constructor,l=+(t=new u(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new u(x(+s,l));if((s=new u(s)).eq(1))return s;if(r=u.precision,o=u.rounding,t.eq(1))return L(s,r,o);if((e=w(t.e/A))>=t.d.length-1&&(n=l<0?-l:l)<=9007199254740991)return i=H(u,s,n,r),t.s<0?new u(1).div(i):L(i,r,o);if((a=s.s)<0){if(e<t.d.length-1)return new u(NaN);if(1&t.d[e]||(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(e=0!=(n=x(+s,l))&&isFinite(n)?new u(n+\"\").e:w(l*(Math.log(\"0.\"+I(s.d))/Math.LN10+s.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(m=!1,u.rounding=s.s=1,n=Math.min(12,(e+\"\").length),(i=W(t.times(Y(s,r+n)),r)).d&&F((i=L(i,r+5,1)).d,r,o)&&(e=r+10,+I((i=L(W(t.times(Y(s,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=L(i,r+1,0))),i.s=a,m=!0,u.rounding=o,L(i,r,o))},T.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=B(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(P(t,1,c),void 0===e?e=i.rounding:P(e,0,8),n=B(r=L(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?\"-\"+n:n},T.toSignificantDigits=T.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(P(t,1,c),void 0===e?e=n.rounding:P(e,0,8)),L(new n(this),t,e)},T.toString=function(){var t=this,e=t.constructor,n=B(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?\"-\"+n:n},T.truncated=T.trunc=function(){return L(new this.constructor(this),this.e+1,1)},T.valueOf=T.toJSON=function(){var t=this,e=t.constructor,n=B(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?\"-\"+n:n};var N=function(){function t(t,e,n){var r,i=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+i,t[o]=r%n|0,i=r/n|0;return i&&t.unshift(i),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,a,u,l){var c,h,f,d,p,m,v,g,y,b,_,x,k,S,C,E,O,M,T,I,P=r.constructor,F=r.s==i.s?1:-1,j=r.d,N=i.d;if(!(j&&j[0]&&N&&N[0]))return new P(r.s&&i.s&&(j?!N||j[0]!=N[0]:N)?j&&0==j[0]||!N?0*F:F/0:NaN);for(l?(p=1,h=r.e-i.e):(l=D,p=A,h=w(r.e/p)-w(i.e/p)),T=N.length,O=j.length,b=(y=new P(F)).d=[],f=0;N[f]==(j[f]||0);f++);if(N[f]>(j[f]||0)&&h--,null==o?(S=o=P.precision,a=P.rounding):S=u?o+(r.e-i.e)+1:o,S<0)b.push(1),m=!0;else{if(S=S/p+2|0,f=0,1==T){for(d=0,N=N[0],S++;(f<O||d)&&S--;f++)C=d*l+(j[f]||0),b[f]=C/N|0,d=C%N|0;m=d||f<O}else{for((d=l/(N[0]+1)|0)>1&&(N=t(N,d,l),j=t(j,d,l),T=N.length,O=j.length),E=T,x=(_=j.slice(0,T)).length;x<T;)_[x++]=0;(I=N.slice()).unshift(0),M=N[0],N[1]>=l/2&&++M;do{d=0,(c=e(N,_,T,x))<0?(k=_[0],T!=x&&(k=k*l+(_[1]||0)),(d=k/M|0)>1?(d>=l&&(d=l-1),1==(c=e(v=t(N,d,l),_,g=v.length,x=_.length))&&(d--,n(v,T<g?I:N,g,l))):(0==d&&(c=d=1),v=N.slice()),(g=v.length)<x&&v.unshift(0),n(_,v,x,l),-1==c&&(c=e(N,_,T,x=_.length))<1&&(d++,n(_,T<x?I:N,x,l)),x=_.length):0===c&&(d++,_=[0]),b[f++]=d,c&&_[0]?_[x++]=j[E]||0:(_=[j[E]],x=1)}while((E++<O||void 0!==_[0])&&S--);m=void 0!==_[0]}b[0]||b.shift()}if(1==p)y.e=h,s=m;else{for(f=1,d=b[0];d>=10;d/=10)f++;y.e=f+h*p-1,L(y,u?o+y.e+1:o,a,m)}return y}}();function L(t,e,n,r){var i,o,a,s,u,l,c,h,f,d=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(i=1,s=h[0];s>=10;s/=10)i++;if((o=e-i)<0)o+=A,a=e,u=(c=h[f=0])/x(10,i-a-1)%10|0;else if((f=Math.ceil((o+1)/A))>=(s=h.length)){if(!r)break t;for(;s++<=f;)h.push(0);c=u=0,i=1,a=(o%=A)-A+1}else{for(c=s=h[f],i=1;s>=10;s/=10)i++;u=(a=(o%=A)-A+i)<0?0:c/x(10,i-a-1)%10|0}if(r=r||e<0||void 0!==h[f+1]||(a<0?c:c%x(10,i-a-1)),l=n<4?(u||r)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(o>0?a>0?c/x(10,i-a):0:h[f-1])%10&1||n==(t.s<0?8:7)),e<1||!h[0])return h.length=0,l?(e-=t.e+1,h[0]=x(10,(A-e%A)%A),t.e=-e||0):h[0]=t.e=0,t;if(0==o?(h.length=f,s=1,f--):(h.length=f+1,s=x(10,A-o),h[f]=a>0?(c/x(10,i-a)%x(10,a)|0)*s:0),l)for(;;){if(0==f){for(o=1,a=h[0];a>=10;a/=10)o++;for(a=h[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(t.e++,h[0]==D&&(h[0]=1));break}if(h[f]+=s,h[f]!=D)break;h[f--]=0,s=1}for(o=h.length;0===h[--o];)h.pop()}return m&&(t.e>d.maxE?(t.d=null,t.e=NaN):t.e<d.minE&&(t.e=0,t.d=[0])),t}function B(t,e,n){if(!t.isFinite())return Z(t);var r,i=t.e,o=I(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+\".\"+o.slice(1)+V(r):a>1&&(o=o.charAt(0)+\".\"+o.slice(1)),o=o+(t.e<0?\"e\":\"e+\")+t.e):i<0?(o=\"0.\"+V(-i-1)+o,n&&(r=n-a)>0&&(o+=V(r))):i>=a?(o+=V(i+1-a),n&&(r=n-i-1)>0&&(o=o+\".\"+V(r))):((r=i+1)<a&&(o=o.slice(0,r)+\".\"+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+=\".\"),o+=V(r))),o}function $(t,e){var n=t[0];for(e*=A;n>=10;n/=10)e++;return e}function z(t,e,n){if(e>O)throw m=!0,n&&(t.precision=n),Error(y);return L(new t(f),e,1,!0)}function R(t,e,n){if(e>M)throw Error(y);return L(new t(d),e,n,!0)}function U(t){var e=t.length-1,n=e*A+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function V(t){for(var e=\"\";t--;)e+=\"0\";return e}function H(t,e,n,r){var i,o=new t(1),a=Math.ceil(r/A+4);for(m=!1;;){if(n%2&&nt((o=o.times(e)).d,a)&&(i=!0),0===(n=w(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}nt((e=e.times(e)).d,a)}return m=!0,o}function G(t){return 1&t.d[t.d.length-1]}function q(t,e,n){for(var r,i=new t(e[0]),o=0;++o<e.length;){if(!(r=new t(e[o])).s){i=r;break}i[n](r)&&(i=r)}return i}function W(t,e){var n,r,i,o,a,s,u,l=0,c=0,h=0,f=t.constructor,d=f.rounding,p=f.precision;if(!t.d||!t.d[0]||t.e>17)return new f(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(m=!1,u=p):u=e,s=new f(.03125);t.e>-2;)t=t.times(s),h+=5;for(u+=r=Math.log(x(2,h))/Math.LN10*2+5|0,n=o=a=new f(1),f.precision=u;;){if(o=L(o.times(t),u,1),n=n.times(++c),I((s=a.plus(N(o,n,u,1))).d).slice(0,u)===I(a.d).slice(0,u)){for(i=h;i--;)a=L(a.times(a),u,1);if(null!=e)return f.precision=p,a;if(!(l<3&&F(a.d,u-r,d,l)))return L(a,f.precision=p,d,m=!0);f.precision=u+=10,n=o=s=new f(1),c=0,l++}a=s}}function Y(t,e){var n,r,i,o,a,s,u,l,c,h,f,d=1,p=t,v=p.d,g=p.constructor,y=g.rounding,b=g.precision;if(p.s<0||!v||!v[0]||!p.e&&1==v[0]&&1==v.length)return new g(v&&!v[0]?-1/0:1!=p.s?NaN:v?0:p);if(null==e?(m=!1,c=b):c=e,g.precision=c+=10,r=(n=I(v)).charAt(0),!(Math.abs(o=p.e)<15e14))return l=z(g,c+2,b).times(o+\"\"),p=Y(new g(r+\".\"+n.slice(1)),c-10).plus(l),g.precision=b,null==e?L(p,b,y,m=!0):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=I((p=p.times(t)).d)).charAt(0),d++;for(o=p.e,r>1?(p=new g(\"0.\"+n),o++):p=new g(r+\".\"+n.slice(1)),h=p,u=a=p=N(p.minus(1),p.plus(1),c,1),f=L(p.times(p),c,1),i=3;;){if(a=L(a.times(f),c,1),I((l=u.plus(N(a,new g(i),c,1))).d).slice(0,c)===I(u.d).slice(0,c)){if(u=u.times(2),0!==o&&(u=u.plus(z(g,c+2,b).times(o+\"\"))),u=N(u,new g(d),c,1),null!=e)return g.precision=b,u;if(!F(u.d,c-10,y,s))return L(u,g.precision=b,y,m=!0);g.precision=c+=10,l=a=p=N(h.minus(1),h.plus(1),c,1),f=L(p.times(p),c,1),i=s=1}u=l,i+=2}}function Z(t){return String(t.s*t.s/0)}function K(t,e){var n,r,i;for((n=e.indexOf(\".\"))>-1&&(e=e.replace(\".\",\"\")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%A,n<0&&(r+=A),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=A;r<i;)t.d.push(+e.slice(r,r+=A));e=e.slice(r),r=A-e.length}else r-=i;for(;r--;)e+=\"0\";t.d.push(+e),m&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function X(t,e){var n,r,i,o,s,u,l,c,h;if(e.indexOf(\"_\")>-1){if(e=e.replace(/(\\d)_(?=\\d)/g,\"$1\"),E.test(e))return K(t,e)}else if(\"Infinity\"===e||\"NaN\"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(S.test(e))n=16,e=e.toLowerCase();else if(k.test(e))n=2;else{if(!C.test(e))throw Error(g+e);n=8}for((o=e.search(/p/i))>0?(l=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),s=(o=e.indexOf(\".\"))>=0,r=t.constructor,s&&(o=(u=(e=e.replace(\".\",\"\")).length)-o,i=H(r,new r(n),o,2*o)),o=h=(c=j(e,n,D)).length-1;0===c[o];--o)c.pop();return o<0?new r(0*t.s):(t.e=$(c,h),t.d=c,m=!1,s&&(t=N(t,i,4*u)),l&&(t=t.times(Math.abs(l)<54?x(2,l):a.pow(2,l))),m=!0,t)}function J(t,e,n,r,i){var o,a,s,u,l=t.precision,c=Math.ceil(l/A);for(m=!1,u=n.times(n),s=new t(r);;){if(a=N(s.times(u),new t(e++*e++),l,1),s=i?r.plus(a):r.minus(a),r=N(a.times(u),new t(e++*e++),l,1),void 0!==(a=s.plus(r)).d[c]){for(o=c;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=r,r=a,a=o}return m=!0,a.d.length=c+1,a}function Q(t,e){for(var n=t;--e;)n*=t;return n}function tt(t,e){var n,r=e.s<0,i=R(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return u=r?4:1,e;if((n=e.divToInt(i)).isZero())u=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return u=G(n)?r?2:3:r?4:1,e;u=G(n)?r?1:4:r?3:2}return e.minus(i).abs()}function et(t,e,n,r){var i,o,a,u,l,f,d,p,m,v=t.constructor,g=void 0!==n;if(g?(P(n,1,c),void 0===r?r=v.rounding:P(r,0,8)):(n=v.precision,r=v.rounding),t.isFinite()){for(g?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(a=(d=B(t)).indexOf(\".\"))>=0&&(d=d.replace(\".\",\"\"),(m=new v(1)).e=d.length-a,m.d=j(B(m),10,i),m.e=m.d.length),o=l=(p=j(d,10,i)).length;0==p[--l];)p.pop();if(p[0]){if(a<0?o--:((t=new v(t)).d=p,t.e=o,p=(t=N(t,m,n,r,0,i)).d,o=t.e,f=s),a=p[n],u=i/2,f=f||void 0!==p[n+1],f=r<4?(void 0!==a||f)&&(0===r||r===(t.s<0?3:2)):a>u||a===u&&(4===r||f||6===r&&1&p[n-1]||r===(t.s<0?8:7)),p.length=n,f)for(;++p[--n]>i-1;)p[n]=0,n||(++o,p.unshift(1));for(l=p.length;!p[l-1];--l);for(a=0,d=\"\";a<l;a++)d+=h.charAt(p[a]);if(g){if(l>1)if(16==e||8==e){for(a=16==e?4:3,--l;l%a;l++)d+=\"0\";for(l=(p=j(d,i,e)).length;!p[l-1];--l);for(a=1,d=\"1.\";a<l;a++)d+=h.charAt(p[a])}else d=d.charAt(0)+\".\"+d.slice(1);d=d+(o<0?\"p\":\"p+\")+o}else if(o<0){for(;++o;)d=\"0\"+d;d=\"0.\"+d}else if(++o>l)for(o-=l;o--;)d+=\"0\";else o<l&&(d=d.slice(0,o)+\".\"+d.slice(o))}else d=g?\"0p+0\":\"0\";d=(16==e?\"0x\":2==e?\"0b\":8==e?\"0o\":\"\")+d}else d=Z(t);return t.s<0?\"-\"+d:d}function nt(t,e){if(t.length>e)return t.length=e,!0}function rt(t){return new this(t).abs()}function it(t){return new this(t).acos()}function ot(t){return new this(t).acosh()}function at(t,e){return new this(t).plus(e)}function st(t){return new this(t).asin()}function ut(t){return new this(t).asinh()}function lt(t){return new this(t).atan()}function ct(t){return new this(t).atanh()}function ht(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,o=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?R(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=R(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(N(t,e,o,1)),e=R(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(N(t,e,o,1)):(n=R(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function ft(t){return new this(t).cbrt()}function dt(t){return L(t=new this(t),t.e+1,2)}function pt(t,e,n){return new this(t).clamp(e,n)}function mt(t){if(!t||\"object\"!==i(t))throw Error(v+\"Object expected\");var e,n,r,o=!0===t.defaults,a=[\"precision\",1,c,\"rounding\",0,8,\"toExpNeg\",-l,0,\"toExpPos\",0,l,\"maxE\",0,l,\"minE\",-l,0,\"modulo\",0,9];for(e=0;e<a.length;e+=3)if(n=a[e],o&&(this[n]=p[n]),void 0!==(r=t[n])){if(!(w(r)===r&&r>=a[e+1]&&r<=a[e+2]))throw Error(g+n+\": \"+r);this[n]=r}if(n=\"crypto\",o&&(this[n]=p[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(g+n+\": \"+r);if(r){if(\"undefined\"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(b);this[n]=!0}else this[n]=!1}return this}function vt(t){return new this(t).cos()}function gt(t){return new this(t).cosh()}function yt(t,e){return new this(t).div(e)}function bt(t){return new this(t).exp()}function _t(t){return L(t=new this(t),t.e+1,3)}function wt(){var t,e,n=new this(0);for(m=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return m=!0,new this(1/0);n=e}return m=!0,n.sqrt()}function xt(t){return t instanceof a||t&&t.toStringTag===_||!1}function kt(t){return new this(t).ln()}function St(t,e){return new this(t).log(e)}function Ct(t){return new this(t).log(2)}function Et(t){return new this(t).log(10)}function Dt(){return q(this,arguments,\"lt\")}function At(){return q(this,arguments,\"gt\")}function Ot(t,e){return new this(t).mod(e)}function Mt(t,e){return new this(t).mul(e)}function Tt(t,e){return new this(t).pow(e)}function It(t){var e,n,r,i,o=0,a=new this(1),s=[];if(void 0===t?t=this.precision:P(t,1,c),r=Math.ceil(t/A),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(b);for(e=crypto.randomBytes(r*=4);o<r;)(i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(s.push(i%1e7),o+=4);o=r/4}else for(;o<r;)s[o++]=1e7*Math.random()|0;for(r=s[--o],t%=A,r&&t&&(i=x(10,A-t),s[o]=(r/i|0)*i);0===s[o];o--)s.pop();if(o<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=A)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<A&&(n-=A-r)}return a.e=n,a.d=s,a}function Pt(t){return L(t=new this(t),t.e+1,this.rounding)}function Ft(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function jt(t){return new this(t).sin()}function Nt(t){return new this(t).sinh()}function Lt(t){return new this(t).sqrt()}function Bt(t,e){return new this(t).sub(e)}function $t(){var t=0,e=arguments,n=new this(e[t]);for(m=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return m=!0,L(n,this.precision,this.rounding)}function zt(t){return new this(t).tan()}function Rt(t){return new this(t).tanh()}function Ut(t){return L(t=new this(t),t.e+1,1)}a=function t(e){var n,r,o;function a(t){var e,n,r,o=this;if(!(o instanceof a))return new a(t);if(o.constructor=a,xt(t))return o.s=t.s,void(m?!t.d||t.e>a.maxE?(o.e=NaN,o.d=null):t.e<a.minE?(o.e=0,o.d=[0]):(o.e=t.e,o.d=t.d.slice()):(o.e=t.e,o.d=t.d?t.d.slice():t.d));if(\"number\"===(r=i(t))){if(0===t)return o.s=1/t<0?-1:1,o.e=0,void(o.d=[0]);if(t<0?(t=-t,o.s=-1):o.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(m?e>a.maxE?(o.e=NaN,o.d=null):e<a.minE?(o.e=0,o.d=[0]):(o.e=e,o.d=[t]):(o.e=e,o.d=[t]))}return 0*t!=0?(t||(o.s=NaN),o.e=NaN,void(o.d=null)):K(o,t.toString())}if(\"string\"!==r)throw Error(g+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),o.s=-1):(43===n&&(t=t.slice(1)),o.s=1),E.test(t)?K(o,t):X(o,t)}if(a.prototype=T,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=mt,a.clone=t,a.isDecimal=xt,a.abs=rt,a.acos=it,a.acosh=ot,a.add=at,a.asin=st,a.asinh=ut,a.atan=lt,a.atanh=ct,a.atan2=ht,a.cbrt=ft,a.ceil=dt,a.clamp=pt,a.cos=vt,a.cosh=gt,a.div=yt,a.exp=bt,a.floor=_t,a.hypot=wt,a.ln=kt,a.log=St,a.log10=Et,a.log2=Ct,a.max=Dt,a.min=At,a.mod=Ot,a.mul=Mt,a.pow=Tt,a.random=It,a.round=Pt,a.sign=Ft,a.sin=jt,a.sinh=Nt,a.sqrt=Lt,a.sub=Bt,a.sum=$t,a.tan=zt,a.tanh=Rt,a.trunc=Ut,void 0===e&&(e={}),e&&!0!==e.defaults)for(o=[\"precision\",\"rounding\",\"toExpNeg\",\"toExpPos\",\"maxE\",\"minE\",\"modulo\",\"crypto\"],n=0;n<o.length;)e.hasOwnProperty(r=o[n++])||(e[r]=this[r]);return a.config(e),a}(p),a.prototype.constructor=a,a.default=a.Decimal=a,f=new a(f),d=new a(d),void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r)}()},function(t,e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}t.exports=function t(e,r){\"use strict\";var i,o,a=/(^([+\\-]?(?:0|[1-9]\\d*)(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)?$|^0x[0-9a-f]+$|\\d+)/gi,s=/(^[ ]*|[ ]*$)/g,u=/(^([\\w ]+,?[\\w ]+)?[\\w ]+,?[\\w ]+\\d+:\\d+(:\\d+)?[\\w ]?|^\\d{1,4}[\\/\\-]\\d{1,4}[\\/\\-]\\d{1,4}|^\\w+, \\w+ \\d+, \\d{4})/,l=/^0x[0-9a-f]+$/i,c=/^0/,h=function(e){return t.insensitive&&(\"\"+e).toLowerCase()||\"\"+e},f=h(e).replace(s,\"\")||\"\",d=h(r).replace(s,\"\")||\"\",p=f.replace(a,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),m=d.replace(a,\"\\0$1\\0\").replace(/\\0$/,\"\").replace(/^\\0/,\"\").split(\"\\0\"),v=parseInt(f.match(l),16)||1!==p.length&&f.match(u)&&Date.parse(f),g=parseInt(d.match(l),16)||v&&d.match(u)&&Date.parse(d)||null;if(g){if(v<g)return-1;if(v>g)return 1}for(var y=0,b=Math.max(p.length,m.length);y<b;y++){if(i=!(p[y]||\"\").match(c)&&parseFloat(p[y])||p[y]||0,o=!(m[y]||\"\").match(c)&&parseFloat(m[y])||m[y]||0,isNaN(i)!==isNaN(o))return isNaN(i)?1:-1;if(n(i)!==n(o)&&(i+=\"\",o+=\"\"),i<o)return-1;if(i>o)return 1}return 0}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){\"use strict\";(function(t,r){n.d(e,\"a\",(function(){return q})),n.d(e,\"b\",(function(){return W})),n.d(e,\"d\",(function(){return Z}));var i=n(11),o=n.n(i),a=n(6),s=n.n(a),u=n(31),l=n.n(u),c=n(0),h=n(34),f=n.n(h),d=n(101),p=n.n(d),m=n(32),v=n.n(m),g=n(35),y=n(102),b=n(116),_=n(33),w=n(19),x=n(45),k=n(20);function S(t,e,n){return(e=A(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,A(r.key),r)}}function A(t){var e=function(t,e){if(\"object\"!=P(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=P(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==P(e)?e:e+\"\"}function O(t,e){if(e&&(\"object\"===P(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}function M(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(M=function(){return!!t})()}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}function I(t,e){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},I(t,e)}function P(t){return P=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},P(t)}function F(t,e,n){return(e=function(t){var e=function(t,e){if(\"object\"!==P(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!==P(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"===P(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}for(var j=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_\",N=[NaN,NaN],L=2;L<65;L++){var B=f()(f.a.BIN,j.slice(0,L))(new Array(65).join(\"1\"));N.push(B.length)}function $(){}function z(t){return Object.prototype.toString.call(t).toLowerCase().indexOf(\"arraybuffer\")>-1}function R(e){for(var n=t.alloc(e.byteLength),r=new Uint8Array(e),i=0;i<n.length;++i)n[i]=r[i];return n}function U(e,n){Object(y.a)(e,(function(r,i){return r?n(r):\"object\"===P(i)&&t.isBuffer(i)?n(null,i):\"object\"===P(i)&&z(i)?n(null,R(i)):new Error(\"Could not load Buffer from <\".concat(e.url,\">\"))}))}var V,H={data:null,width:null,height:null},G=function(e){function n(){var e,r,i,a;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,n);for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];r=this,i=T(i=n),F(e=O(r,M()?Reflect.construct(i,a||[],T(r).constructor):i.apply(r,a)),\"bitmap\",H),F(e,\"_background\",0),F(e,\"_originalMime\",n.MIME_PNG),F(e,\"_exif\",null),F(e,\"_rgba\",!0),F(e,\"writeAsync\",(function(t){return Object(_.a)(e.write,e,t)})),F(e,\"getBase64Async\",(function(t){return Object(_.a)(e.getBase64,e,t)})),F(e,\"getBuffer\",x.a),F(e,\"getBufferAsync\",x.b),F(e,\"getPixelColour\",e.getPixelColor),F(e,\"setPixelColour\",e.setPixelColor);var h,f=e,d=$;function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];(r||{}).methodName=\"constructor\",setTimeout((function(){var t;r&&d===$?f.emitError(\"constructor\",r):r||f.emitMulti(\"constructor\",\"initialized\"),(t=d).call.apply(t,[f].concat(e))}),1)}if(z(u[0])&&(u[0]=R(u[0])),\"number\"==typeof u[0]&&\"number\"==typeof u[1]||parseInt(u[0],10)&&parseInt(u[1],10)){var m=parseInt(u[0],10),v=parseInt(u[1],10);if(d=u[2],\"number\"==typeof u[2]&&(e._background=u[2],d=u[3]),\"string\"==typeof u[2]&&(e._background=n.cssColorToHex(u[2]),d=u[3]),void 0===d&&(d=$),\"function\"!=typeof d)return O(e,c.d.call(e,\"cb must be a function\",p));e.bitmap={data:t.alloc(m*v*4),width:m,height:v};for(var g=0;g<e.bitmap.data.length;g+=4)e.bitmap.data.writeUInt32BE(e._background,g);p(null,e)}else if(\"object\"===P(u[0])&&u[0].url){if(\"function\"!=typeof(d=u[1]||$))return O(e,c.d.call(e,\"cb must be a function\",p));U(u[0],(function(t,n){if(t)return c.d.call(e,t,p);e.parseBitmap(n,u[0].url,p)}))}else if(u[0]instanceof n){var y=u[0];if(void 0===(d=u[1])&&(d=$),\"function\"!=typeof d)return O(e,c.d.call(e,\"cb must be a function\",p));e.bitmap={data:t.from(y.bitmap.data),width:y.bitmap.width,height:y.bitmap.height},e._quality=y._quality,e._deflateLevel=y._deflateLevel,e._deflateStrategy=y._deflateStrategy,e._filterType=y._filterType,e._rgba=y._rgba,e._background=y._background,e._originalMime=y._originalMime,p(null,e)}else if((h=u[0])&&\"object\"===P(h)&&\"number\"==typeof h.width&&\"number\"==typeof h.height&&(t.isBuffer(h.data)||h.data instanceof Uint8Array||\"function\"==typeof Uint8ClampedArray&&h.data instanceof Uint8ClampedArray)&&(h.data.length===h.width*h.height*4||h.data.length===h.width*h.height*3)){var b=u[0];d=u[1]||$;var w=b.width*b.height*4===b.data.length?t.from(b.data):function(e){if(e.length%3!=0)throw new Error(\"Buffer length is incorrect\");for(var n=t.allocUnsafe(e.length/3*4),r=0,i=0;i<e.length;i++)n[r]=e[i],(i+1)%3==0&&(n[++r]=255),r++;return n}(b.data);e.bitmap={data:w,width:b.width,height:b.height},p(null,e)}else if(\"string\"==typeof u[0]){var k=u[0];if(void 0===(d=u[1])&&(d=$),\"function\"!=typeof d)return O(e,c.d.call(e,\"cb must be a function\",p));!function(t,e){o.a&&\"function\"==typeof o.a.readFile&&!t.match(/^(http|ftp)s?:\\/\\/./)?o.a.readFile(t,e):U({url:t},e)}(k,(function(t,n){if(t)return c.d.call(e,t,p);e.parseBitmap(n,k,p)}))}else if(\"object\"===P(u[0])&&t.isBuffer(u[0])){var S=u[0];if(\"function\"!=typeof(d=u[1]))return O(e,c.d.call(e,\"cb must be a function\",p));e.parseBitmap(S,null,p)}else{\"function\"!=typeof(d=u[u.length-1])&&\"function\"!=typeof(d=u[u.length-2])&&(d=$);var C=n.__extraConstructors.find((function(t){return t.test.apply(t,u)}));if(!C)return O(e,c.d.call(e,\"No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.\",p));new Promise((function(t,n){var r;(r=C.run).call.apply(r,[e,t,n].concat(u))})).then((function(){return p(null,e)})).catch(p)}return e}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&I(t,e)}(n,e),r=n,i=[{key:\"parseBitmap\",value:function(t,e,n){x.c.call(this,t,null,n)}},{key:\"rgba\",value:function(t,e){return\"boolean\"!=typeof t?c.d.call(this,\"bool must be a boolean, true for RGBA or false for RGB\",e):(this._rgba=t,Object(c.a)(e)&&e.call(this,null,this),this)}},{key:\"emitMulti\",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign(n,{methodName:t,eventName:e}),this.emit(\"any\",n),t&&this.emit(t,n),this.emit(e,n)}},{key:\"emitError\",value:function(t,e){this.emitMulti(t,\"error\",e)}},{key:\"getHeight\",value:function(){return this.bitmap.height}},{key:\"getWidth\",value:function(){return this.bitmap.width}},{key:\"inspect\",value:function(){return\"<Jimp \"+(this.bitmap===H?\"pending...\":this.bitmap.width+\"x\"+this.bitmap.height)+\">\"}},{key:\"toString\",value:function(){return\"[object Jimp]\"}},{key:\"getMIME\",value:function(){return this._originalMime||n.MIME_PNG}},{key:\"getExtension\",value:function(){var t=this.getMIME();return w.b(t)}},{key:\"write\",value:function(t,e){var n=this;if(!o.a||!o.a.createWriteStream)throw new Error(\"Cant access the filesystem. You can use the getBase64 method.\");if(\"string\"!=typeof t)return c.d.call(this,\"path must be a string\",e);if(void 0===e&&(e=$),\"function\"!=typeof e)return c.d.call(this,\"cb must be a function\",e);var r=w.c(t)||this.getMIME(),i=s.a.parse(t);return i.dir&&o.a.mkdirSync(i.dir,{recursive:!0}),this.getBuffer(r,(function(r,i){if(r)return c.d.call(n,r,e);var a=o.a.createWriteStream(t);a.on(\"open\",(function(){a.write(i),a.end()})).on(\"error\",(function(t){return c.d.call(n,t,e)})),a.on(\"finish\",(function(){e.call(n,null,n)}))})),this}},{key:\"getBase64\",value:function(t,e){return t===n.AUTO&&(t=this.getMIME()),\"string\"!=typeof t?c.d.call(this,\"mime must be a string\",e):\"function\"!=typeof e?c.d.call(this,\"cb must be a function\",e):(this.getBuffer(t,(function(n,r){if(n)return c.d.call(this,n,e);var i=\"data:\"+t+\";base64,\"+r.toString(\"base64\");e.call(this,null,i)})),this)}},{key:\"hash\",value:function(t,e){if(\"function\"==typeof(t=t||64)&&(e=t,t=64),\"number\"!=typeof t)return c.d.call(this,\"base must be a number\",e);if(t<2||t>64)return c.d.call(this,\"base must be a number between 2 and 64\",e);var n=this.pHash();for(n=f()(f.a.BIN,j.slice(0,t))(n);n.length<N[t];)n=\"0\"+n;return Object(c.a)(e)&&e.call(this,null,n),n}},{key:\"pHash\",value:function(){var t=new g.a;return t.getHash(this)}},{key:\"distanceFromHash\",value:function(t){var e=new g.a,n=e.getHash(this);return e.distance(n,t)}},{key:\"getPixelIndex\",value:function(t,e,r,i){var o,a;if(\"function\"==typeof r&&void 0===i&&(i=r,r=null),r||(r=n.EDGE_EXTEND),\"number\"!=typeof t||\"number\"!=typeof e)return c.d.call(this,\"x and y must be numbers\",i);o=t=Math.round(t),a=e=Math.round(e),r===n.EDGE_EXTEND&&(t<0&&(o=0),t>=this.bitmap.width&&(o=this.bitmap.width-1),e<0&&(a=0),e>=this.bitmap.height&&(a=this.bitmap.height-1)),r===n.EDGE_WRAP&&(t<0&&(o=this.bitmap.width+t),t>=this.bitmap.width&&(o=t%this.bitmap.width),e<0&&(a=this.bitmap.height+e),e>=this.bitmap.height&&(a=e%this.bitmap.height));var s=this.bitmap.width*a+o<<2;return(o<0||o>=this.bitmap.width)&&(s=-1),(a<0||a>=this.bitmap.height)&&(s=-1),Object(c.a)(i)&&i.call(this,null,s),s}},{key:\"getPixelColor\",value:function(t,e,n){if(\"number\"!=typeof t||\"number\"!=typeof e)return c.d.call(this,\"x and y must be numbers\",n);var r=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(r);return Object(c.a)(n)&&n.call(this,null,i),i}},{key:\"setPixelColor\",value:function(t,e,n,r){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof n)return c.d.call(this,\"hex, x and y must be numbers\",r);var i=this.getPixelIndex(e,n);return this.bitmap.data.writeUInt32BE(t,i),Object(c.a)(r)&&r.call(this,null,this),this}},{key:\"hasAlpha\",value:function(){for(var t=this.bitmap,e=t.width,n=t.height,r=t.data,i=e*n<<2,o=3;o<i;o+=4)if(255!==r[o])return!0;return!1}},{key:\"scanIterator\",value:function(t,e,n,r){return\"number\"!=typeof t||\"number\"!=typeof e?c.d.call(this,\"x and y must be numbers\"):\"number\"!=typeof n||\"number\"!=typeof r?c.d.call(this,\"w and h must be numbers\"):Object(c.c)(this,t,e,n,r)}}],i&&D(r.prototype,i),a&&D(r,a),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,i,a}(l.a);function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G;Object.entries(t).forEach((function(t){var n=C(t,2),r=n[0],i=n[1];e[r]=i}))}function W(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G;Object.entries(t).forEach((function(t){var n=C(t,2),r=n[0],i=n[1];e.prototype[r]=i}))}function Y(t,e,n){var r=\"before-\"+e,i=e.replace(/e$/,\"\")+\"ed\";G.prototype[t]=function(){for(var e,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var u,l=a[n.length-1],c=this;\"function\"==typeof l?(e=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0],a=n[1];o?c.emitError(t,o):c.emitMulti(t,i,S({},t,a)),l.apply(this,n)},a[a.length-1]=e):e=!1,this.emitMulti(t,r);try{u=n.apply(this,a),e||this.emitMulti(t,i,S({},t,u))}catch(e){e.methodName=t,this.emitError(t,e)}return u},G.prototype[t+\"Quiet\"]=n}function Z(t,e){Y(t,\"change\",e)}(q(k),W({composite:b.a}),G.__extraConstructors=[],G.appendConstructorOption=function(t,e,n){G.__extraConstructors.push({name:t,test:e,run:n})},G.read=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new Promise((function(t,n){!function(t,e,n){if(M())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));n&&I(i,n.prototype)}(G,e.concat([function(e,r){e?n(e):t(r)}]))}))},G.create=G.read,G.rgbaToInt=function(t,e,n,r,i){if(\"number\"!=typeof t||\"number\"!=typeof e||\"number\"!=typeof n||\"number\"!=typeof r)return c.d.call(this,\"r, g, b and a must be numbers\",i);if(t<0||t>255)return c.d.call(this,\"r must be between 0 and 255\",i);if((e<0||e>255)&&c.d.call(this,\"g must be between 0 and 255\",i),n<0||n>255)return c.d.call(this,\"b must be between 0 and 255\",i);if(r<0||r>255)return c.d.call(this,\"a must be between 0 and 255\",i);var o=255&t;return o<<=8,o|=255&e,o<<=8,o|=255&n,o<<=8,o|=255&r,o>>>=0,Object(c.a)(i)&&i.call(this,null,o),o},G.intToRGBA=function(t,e){if(\"number\"!=typeof t)return c.d.call(this,\"i must be a number\",e);var n={};return n.r=Math.floor(t/Math.pow(256,3)),n.g=Math.floor((t-n.r*Math.pow(256,3))/Math.pow(256,2)),n.b=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2))/Math.pow(256,1)),n.a=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2)-n.b*Math.pow(256,1))/Math.pow(256,0)),Object(c.a)(e)&&e.call(this,null,n),n},G.cssColorToHex=function(t){return\"number\"==typeof(t=t||0)?Number(t):parseInt(v()(t).toHex8(),16)},G.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},G.diff=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof G&&e instanceof G))return c.d.call(this,\"img1 and img2 must be an Jimp images\");var r=t.bitmap,i=e.bitmap;if(r.width===i.width&&r.height===i.height||(r.width*r.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(r.width,r.height)),\"number\"!=typeof n||n<0||n>1)return c.d.call(this,\"threshold must be a number between 0 and 1\");var o=new G(r.width,r.height,4294967295);return{percent:p()(r.data,i.data,o.bitmap.data,o.bitmap.width,o.bitmap.height,{threshold:n})/(o.bitmap.width*o.bitmap.height),image:o}},G.distance=function(t,e){var n=new g.a,r=n.getHash(t),i=n.getHash(e);return n.distance(r,i)},G.compareHashes=function(t,e){return(new g.a).distance(t,e)},G.colorDiff=function(t,e){var n=function(t){return Math.pow(t,2)},r=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(r(n(t.r-e.r),n(t.r-e.r-t.a+e.a))+r(n(t.g-e.g),n(t.g-e.g-t.a+e.a))+r(n(t.b-e.b),n(t.b-e.b-t.a+e.a)))/195075},Y(\"clone\",\"clone\",(function(t){var e=new G(this);return Object(c.a)(t)&&t.call(e,null,e),e})),Z(\"background\",(function(t,e){return\"number\"!=typeof t?c.d.call(this,\"hex must be a hexadecimal rgba value\",e):(this._background=t,Object(c.a)(e)&&e.call(this,null,this),this)})),Z(\"scan\",(function(t,e,n,r,i,o){if(\"number\"!=typeof t||\"number\"!=typeof e)return c.d.call(this,\"x and y must be numbers\",o);if(\"number\"!=typeof n||\"number\"!=typeof r)return c.d.call(this,\"w and h must be numbers\",o);if(\"function\"!=typeof i)return c.d.call(this,\"f must be a function\",o);var a=Object(c.b)(this,t,e,n,r,i);return Object(c.a)(o)&&o.call(this,null,a),a})),\"BROWSER\"===r.env.ENVIRONMENT)&&(\"undefined\"!=typeof window&&\"object\"===(\"undefined\"==typeof window?\"undefined\":P(window))&&(V=window),\"undefined\"!=typeof self&&\"object\"===(\"undefined\"==typeof self?\"undefined\":P(self))&&(V=self),V.Jimp=G,V.Buffer=t);e.c=G}).call(this,n(2).Buffer,n(7))},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var r=n(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return r.EndOfStreamError}});var i=n(127);Object.defineProperty(e,\"StreamReader\",{enumerable:!0,get:function(){return i.StreamReader}})},function(t,e,n){(function(t){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function r(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):\"[object Array]\"===r(t)},e.isBoolean=function(t){return\"boolean\"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return\"number\"==typeof t},e.isString=function(t){return\"string\"==typeof t},e.isSymbol=function(t){return\"symbol\"===n(t)},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return\"[object RegExp]\"===r(t)},e.isObject=function(t){return\"object\"===n(t)&&null!==t},e.isDate=function(t){return\"[object Date]\"===r(t)},e.isError=function(t){return\"[object Error]\"===r(t)||t instanceof Error},e.isFunction=function(t){return\"function\"==typeof t},e.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"===n(t)||void 0===t},e.isBuffer=t.isBuffer}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(t){var r=n(2).Buffer,i=n(38).Transform,o=n(159),a=n(14),s=n(53).ok,u=n(2).kMaxLength,l=\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(o),h=0;h<c.length;h++){var f=c[h];f.match(/^Z/)&&Object.defineProperty(e,f,{enumerable:!0,value:o[f],writable:!1})}for(var d={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},p=Object.keys(d),m=0;m<p.length;m++){var v=p[m];d[d[v]]=v}function g(t,e,n){var i=[],o=0;function a(){for(var e;null!==(e=t.read());)i.push(e),o+=e.length;t.once(\"readable\",a)}function s(){var e,a=null;o>=u?a=new RangeError(l):e=r.concat(i,o),i=[],t.close(),n(a,e)}t.on(\"error\",(function(e){t.removeListener(\"end\",s),t.removeListener(\"readable\",a),n(e)})),t.on(\"end\",s),t.end(e),a()}function y(t,e){if(\"string\"==typeof e&&(e=r.from(e)),!r.isBuffer(e))throw new TypeError(\"Not a string or buffer\");var n=t._finishFlushFlag;return t._processChunk(e,n)}function b(t){if(!(this instanceof b))return new b(t);D.call(this,t,o.DEFLATE)}function _(t){if(!(this instanceof _))return new _(t);D.call(this,t,o.INFLATE)}function w(t){if(!(this instanceof w))return new w(t);D.call(this,t,o.GZIP)}function x(t){if(!(this instanceof x))return new x(t);D.call(this,t,o.GUNZIP)}function k(t){if(!(this instanceof k))return new k(t);D.call(this,t,o.DEFLATERAW)}function S(t){if(!(this instanceof S))return new S(t);D.call(this,t,o.INFLATERAW)}function C(t){if(!(this instanceof C))return new C(t);D.call(this,t,o.UNZIP)}function E(t){return t===o.Z_NO_FLUSH||t===o.Z_PARTIAL_FLUSH||t===o.Z_SYNC_FLUSH||t===o.Z_FULL_FLUSH||t===o.Z_FINISH||t===o.Z_BLOCK}function D(t,n){var a=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,i.call(this,t),t.flush&&!E(t.flush))throw new Error(\"Invalid flush flag: \"+t.flush);if(t.finishFlush&&!E(t.finishFlush))throw new Error(\"Invalid flush flag: \"+t.finishFlush);if(this._flushFlag=t.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:o.Z_FINISH,t.chunkSize&&(t.chunkSize<e.Z_MIN_CHUNK||t.chunkSize>e.Z_MAX_CHUNK))throw new Error(\"Invalid chunk size: \"+t.chunkSize);if(t.windowBits&&(t.windowBits<e.Z_MIN_WINDOWBITS||t.windowBits>e.Z_MAX_WINDOWBITS))throw new Error(\"Invalid windowBits: \"+t.windowBits);if(t.level&&(t.level<e.Z_MIN_LEVEL||t.level>e.Z_MAX_LEVEL))throw new Error(\"Invalid compression level: \"+t.level);if(t.memLevel&&(t.memLevel<e.Z_MIN_MEMLEVEL||t.memLevel>e.Z_MAX_MEMLEVEL))throw new Error(\"Invalid memLevel: \"+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error(\"Invalid strategy: \"+t.strategy);if(t.dictionary&&!r.isBuffer(t.dictionary))throw new Error(\"Invalid dictionary: it should be a Buffer instance\");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(t,n){A(s),s._hadError=!0;var r=new Error(t);r.errno=n,r.code=e.codes[n],s.emit(\"error\",r)};var u=e.Z_DEFAULT_COMPRESSION;\"number\"==typeof t.level&&(u=t.level);var l=e.Z_DEFAULT_STRATEGY;\"number\"==typeof t.strategy&&(l=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,u,t.memLevel||e.Z_DEFAULT_MEMLEVEL,l,t.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=l,this.once(\"end\",this.close),Object.defineProperty(this,\"_closed\",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function A(e,n){n&&t.nextTick(n),e._handle&&(e._handle.close(),e._handle=null)}function O(t){t.emit(\"close\")}Object.defineProperty(e,\"codes\",{enumerable:!0,value:Object.freeze(d),writable:!1}),e.Deflate=b,e.Inflate=_,e.Gzip=w,e.Gunzip=x,e.DeflateRaw=k,e.InflateRaw=S,e.Unzip=C,e.createDeflate=function(t){return new b(t)},e.createInflate=function(t){return new _(t)},e.createDeflateRaw=function(t){return new k(t)},e.createInflateRaw=function(t){return new S(t)},e.createGzip=function(t){return new w(t)},e.createGunzip=function(t){return new x(t)},e.createUnzip=function(t){return new C(t)},e.deflate=function(t,e,n){return\"function\"==typeof e&&(n=e,e={}),g(new b(e),t,n)},e.deflateSync=function(t,e){return y(new b(e),t)},e.gzip=function(t,e,n){return\"function\"==typeof e&&(n=e,e={}),g(new w(e),t,n)},e.gzipSync=function(t,e){return y(new w(e),t)},e.deflateRaw=function(t,e,n){return\"function\"==typeof e&&(n=e,e={}),g(new k(e),t,n)},e.deflateRawSync=function(t,e){return y(new k(e),t)},e.unzip=function(t,e,n){return\"function\"==typeof e&&(n=e,e={}),g(new C(e),t,n)},e.unzipSync=function(t,e){return y(new C(e),t)},e.inflate=function(t,e,n){return\"function\"==typeof e&&(n=e,e={}),g(new _(e),t,n)},e.inflateSync=function(t,e){return y(new _(e),t)},e.gunzip=function(t,e,n){return\"function\"==typeof e&&(n=e,e={}),g(new x(e),t,n)},e.gunzipSync=function(t,e){return y(new x(e),t)},e.inflateRaw=function(t,e,n){return\"function\"==typeof e&&(n=e,e={}),g(new S(e),t,n)},e.inflateRawSync=function(t,e){return y(new S(e),t)},a.inherits(D,i),D.prototype.params=function(n,r,i){if(n<e.Z_MIN_LEVEL||n>e.Z_MAX_LEVEL)throw new RangeError(\"Invalid compression level: \"+n);if(r!=e.Z_FILTERED&&r!=e.Z_HUFFMAN_ONLY&&r!=e.Z_RLE&&r!=e.Z_FIXED&&r!=e.Z_DEFAULT_STRATEGY)throw new TypeError(\"Invalid strategy: \"+r);if(this._level!==n||this._strategy!==r){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(a._handle,\"zlib binding closed\"),a._handle.params(n,r),a._hadError||(a._level=n,a._strategy=r,i&&i())}))}else t.nextTick(i)},D.prototype.reset=function(){return s(this._handle,\"zlib binding closed\"),this._handle.reset()},D.prototype._flush=function(t){this._transform(r.alloc(0),\"\",t)},D.prototype.flush=function(e,n){var i=this,a=this._writableState;(\"function\"==typeof e||void 0===e&&!n)&&(n=e,e=o.Z_FULL_FLUSH),a.ended?n&&t.nextTick(n):a.ending?n&&this.once(\"end\",n):a.needDrain?n&&this.once(\"drain\",(function(){return i.flush(e,n)})):(this._flushFlag=e,this.write(r.alloc(0),\"\",n))},D.prototype.close=function(e){A(this,e),t.nextTick(O,this)},D.prototype._transform=function(t,e,n){var i,a=this._writableState,s=(a.ending||a.ended)&&(!t||a.length===t.length);return null===t||r.isBuffer(t)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,t.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(t,i,n)):n(new Error(\"zlib binding closed\")):n(new Error(\"invalid input\"))},D.prototype._processChunk=function(t,e,n){var i=t&&t.length,o=this._chunkSize-this._offset,a=0,c=this,h=\"function\"==typeof n;if(!h){var f,d=[],p=0;this.on(\"error\",(function(t){f=t})),s(this._handle,\"zlib binding closed\");do{var m=this._handle.writeSync(e,t,a,i,this._buffer,this._offset,o)}while(!this._hadError&&y(m[0],m[1]));if(this._hadError)throw f;if(p>=u)throw A(this),new RangeError(l);var v=r.concat(d,p);return A(this),v}s(this._handle,\"zlib binding closed\");var g=this._handle.write(e,t,a,i,this._buffer,this._offset,o);function y(u,l){if(this&&(this.buffer=null,this.callback=null),!c._hadError){var f=o-l;if(s(f>=0,\"have should not go down\"),f>0){var m=c._buffer.slice(c._offset,c._offset+f);c._offset+=f,h?c.push(m):(d.push(m),p+=m.length)}if((0===l||c._offset>=c._chunkSize)&&(o=c._chunkSize,c._offset=0,c._buffer=r.allocUnsafe(c._chunkSize)),0===l){if(a+=i-u,i=u,!h)return!0;var v=c._handle.write(e,t,a,i,c._buffer,c._offset,c._chunkSize);return v.callback=y,void(v.buffer=t)}if(!h)return!1;n()}}g.buffer=t,g.callback=y},a.inherits(b,D),a.inherits(_,D),a.inherits(w,D),a.inherits(x,D),a.inherits(k,D),a.inherits(S,D),a.inherits(C,D)}).call(this,n(7))},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i,o=n(165),a=n(166),s=n(167),u=n(168),l=n(77),c=n(40),h=n(169),f=Function,d=function(t){try{return f('\"use strict\"; return ('+t+\").constructor;\")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},\"\")}catch(t){p=null}var m=function(){throw new c},v=p?function(){try{return m}catch(t){try{return p(arguments,\"callee\").get}catch(t){return m}}}():m,g=n(170)(),y=n(171)(),b=Object.getPrototypeOf||(y?function(t){return t.__proto__}:null),_={},w=\"undefined\"!=typeof Uint8Array&&b?b(Uint8Array):i,x={__proto__:null,\"%AggregateError%\":\"undefined\"==typeof AggregateError?i:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":\"undefined\"==typeof ArrayBuffer?i:ArrayBuffer,\"%ArrayIteratorPrototype%\":g&&b?b([][Symbol.iterator]()):i,\"%AsyncFromSyncIteratorPrototype%\":i,\"%AsyncFunction%\":_,\"%AsyncGenerator%\":_,\"%AsyncGeneratorFunction%\":_,\"%AsyncIteratorPrototype%\":_,\"%Atomics%\":\"undefined\"==typeof Atomics?i:Atomics,\"%BigInt%\":\"undefined\"==typeof BigInt?i:BigInt,\"%BigInt64Array%\":\"undefined\"==typeof BigInt64Array?i:BigInt64Array,\"%BigUint64Array%\":\"undefined\"==typeof BigUint64Array?i:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":\"undefined\"==typeof DataView?i:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":o,\"%eval%\":eval,\"%EvalError%\":a,\"%Float32Array%\":\"undefined\"==typeof Float32Array?i:Float32Array,\"%Float64Array%\":\"undefined\"==typeof Float64Array?i:Float64Array,\"%FinalizationRegistry%\":\"undefined\"==typeof FinalizationRegistry?i:FinalizationRegistry,\"%Function%\":f,\"%GeneratorFunction%\":_,\"%Int8Array%\":\"undefined\"==typeof Int8Array?i:Int8Array,\"%Int16Array%\":\"undefined\"==typeof Int16Array?i:Int16Array,\"%Int32Array%\":\"undefined\"==typeof Int32Array?i:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":g&&b?b(b([][Symbol.iterator]())):i,\"%JSON%\":\"object\"===(\"undefined\"==typeof JSON?\"undefined\":r(JSON))?JSON:i,\"%Map%\":\"undefined\"==typeof Map?i:Map,\"%MapIteratorPrototype%\":\"undefined\"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):i,\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":Object,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":\"undefined\"==typeof Promise?i:Promise,\"%Proxy%\":\"undefined\"==typeof Proxy?i:Proxy,\"%RangeError%\":s,\"%ReferenceError%\":u,\"%Reflect%\":\"undefined\"==typeof Reflect?i:Reflect,\"%RegExp%\":RegExp,\"%Set%\":\"undefined\"==typeof Set?i:Set,\"%SetIteratorPrototype%\":\"undefined\"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):i,\"%SharedArrayBuffer%\":\"undefined\"==typeof SharedArrayBuffer?i:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":g&&b?b(\"\"[Symbol.iterator]()):i,\"%Symbol%\":g?Symbol:i,\"%SyntaxError%\":l,\"%ThrowTypeError%\":v,\"%TypedArray%\":w,\"%TypeError%\":c,\"%Uint8Array%\":\"undefined\"==typeof Uint8Array?i:Uint8Array,\"%Uint8ClampedArray%\":\"undefined\"==typeof Uint8ClampedArray?i:Uint8ClampedArray,\"%Uint16Array%\":\"undefined\"==typeof Uint16Array?i:Uint16Array,\"%Uint32Array%\":\"undefined\"==typeof Uint32Array?i:Uint32Array,\"%URIError%\":h,\"%WeakMap%\":\"undefined\"==typeof WeakMap?i:WeakMap,\"%WeakRef%\":\"undefined\"==typeof WeakRef?i:WeakRef,\"%WeakSet%\":\"undefined\"==typeof WeakSet?i:WeakSet};if(b)try{null.error}catch(t){var k=b(b(t));x[\"%Error.prototype%\"]=k}var S=function t(e){var n;if(\"%AsyncFunction%\"===e)n=d(\"async function () {}\");else if(\"%GeneratorFunction%\"===e)n=d(\"function* () {}\");else if(\"%AsyncGeneratorFunction%\"===e)n=d(\"async function* () {}\");else if(\"%AsyncGenerator%\"===e){var r=t(\"%AsyncGeneratorFunction%\");r&&(n=r.prototype)}else if(\"%AsyncIteratorPrototype%\"===e){var i=t(\"%AsyncGenerator%\");i&&b&&(n=b(i.prototype))}return x[e]=n,n},C={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},E=n(54),D=n(173),A=E.call(Function.call,Array.prototype.concat),O=E.call(Function.apply,Array.prototype.splice),M=E.call(Function.call,String.prototype.replace),T=E.call(Function.call,String.prototype.slice),I=E.call(Function.call,RegExp.prototype.exec),P=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,F=/\\\\(\\\\)?/g,j=function(t,e){var n,r=t;if(D(C,r)&&(r=\"%\"+(n=C[r])[0]+\"%\"),D(x,r)){var i=x[r];if(i===_&&(i=S(r)),void 0===i&&!e)throw new c(\"intrinsic \"+t+\" exists, but is not available. Please file an issue!\");return{alias:n,name:r,value:i}}throw new l(\"intrinsic \"+t+\" does not exist!\")};t.exports=function(t,e){if(\"string\"!=typeof t||0===t.length)throw new c(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&\"boolean\"!=typeof e)throw new c('\"allowMissing\" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,t))throw new l(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var n=function(t){var e=T(t,0,1),n=T(t,-1);if(\"%\"===e&&\"%\"!==n)throw new l(\"invalid intrinsic syntax, expected closing `%`\");if(\"%\"===n&&\"%\"!==e)throw new l(\"invalid intrinsic syntax, expected opening `%`\");var r=[];return M(t,P,(function(t,e,n,i){r[r.length]=n?M(i,F,\"$1\"):e||t})),r}(t),r=n.length>0?n[0]:\"\",i=j(\"%\"+r+\"%\",e),o=i.name,a=i.value,s=!1,u=i.alias;u&&(r=u[0],O(n,A([0,1],u)));for(var h=1,f=!0;h<n.length;h+=1){var d=n[h],m=T(d,0,1),v=T(d,-1);if(('\"'===m||\"'\"===m||\"`\"===m||'\"'===v||\"'\"===v||\"`\"===v)&&m!==v)throw new l(\"property names with quotes must have matching quotes\");if(\"constructor\"!==d&&f||(s=!0),D(x,o=\"%\"+(r+=\".\"+d)+\"%\"))a=x[o];else if(null!=a){if(!(d in a)){if(!e)throw new c(\"base intrinsic for \"+t+\" exists, but the property is not available.\");return}if(p&&h+1>=n.length){var g=p(a,d);a=(f=!!g)&&\"get\"in g&&!(\"originalValue\"in g.get)?g.get:a[d]}else f=D(a,d),a=a[d];f&&!s&&(x[o]=a)}}return a}},function(t,e,n){\"use strict\";t.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i,o=\"object\"===(\"undefined\"==typeof Reflect?\"undefined\":r(Reflect))?Reflect:null,a=o&&\"function\"==typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};i=o&&\"function\"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}t.exports=u,t.exports.once=function(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){\"function\"==typeof t.removeListener&&t.removeListener(\"error\",i),n([].slice.call(arguments))}y(t,e,o,{once:!0}),\"error\"!==e&&function(t,e,n){\"function\"==typeof t.on&&y(t,\"error\",e,n)}(t,i,{once:!0})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var l=10;function c(t){if(\"function\"!=typeof t)throw new TypeError('The \"listener\" argument must be of type Function. Received type '+r(t))}function h(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function f(t,e,n,r){var i,o,a;if(c(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit(\"newListener\",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if(\"function\"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=h(t))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error(\"Possible EventEmitter memory leak detected. \"+a.length+\" \"+String(e)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");s.name=\"MaxListenersExceededWarning\",s.emitter=t,s.type=e,s.count=a.length,console&&console.warn}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function m(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:\"function\"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):g(i,i.length)}function v(t){var e=this._events;if(void 0!==e){var n=e[t];if(\"function\"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function y(t,e,n,i){if(\"function\"==typeof t.on)i.once?t.once(e,n):t.on(e,n);else{if(\"function\"!=typeof t.addEventListener)throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type '+r(t));t.addEventListener(e,(function r(o){i.once&&t.removeEventListener(e,r),n(o)}))}}Object.defineProperty(u,\"defaultMaxListeners\",{enumerable:!0,get:function(){return l},set:function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+t+\".\");l=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if(\"number\"!=typeof t||t<0||s(t))throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+t+\".\");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return h(this)},u.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r=\"error\"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var s=new Error(\"Unhandled error.\"+(o?\" (\"+o.message+\")\":\"\"));throw s.context=o,s}var u=i[t];if(void 0===u)return!1;if(\"function\"==typeof u)a(u,this,e);else{var l=u.length,c=g(u,l);for(n=0;n<l;++n)a(c[n],this,e)}return!0},u.prototype.addListener=function(t,e){return f(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return f(this,t,e,!0)},u.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},u.prototype.removeListener=function(t,e){var n,r,i,o,a;if(c(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit(\"removeListener\",t,n.listener||e));else if(\"function\"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit(\"removeListener\",t,a||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)\"removeListener\"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(\"function\"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},u.prototype.listeners=function(t){return m(this,t,!0)},u.prototype.rawListeners=function(t){return m(this,t,!1)},u.listenerCount=function(t,e){return\"function\"==typeof t.listenerCount?t.listenerCount(e):v.call(t,e)},u.prototype.listenerCount=v,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(t,e,n){var r,i,o;function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}o=function(){\"use strict\";function t(e){return t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t(e)}var e=/^\\s+/,n=/\\s+$/;function r(i,o){if(o=o||{},(i=i||\"\")instanceof r)return i;if(!(this instanceof r))return new r(i,o);var a=function(r){var i,o,a,s={r:0,g:0,b:0},u=1,l=null,c=null,h=null,f=!1,d=!1;return\"string\"==typeof r&&(r=function(t){t=t.replace(e,\"\").replace(n,\"\").toLowerCase();var r,i=!1;if(_[t])t=_[t],i=!0;else if(\"transparent\"==t)return{r:0,g:0,b:0,a:0,format:\"name\"};return(r=P.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=P.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=P.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=P.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=P.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=P.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=P.hex8.exec(t))?{r:C(r[1]),g:C(r[2]),b:C(r[3]),a:O(r[4]),format:i?\"name\":\"hex8\"}:(r=P.hex6.exec(t))?{r:C(r[1]),g:C(r[2]),b:C(r[3]),format:i?\"name\":\"hex\"}:(r=P.hex4.exec(t))?{r:C(r[1]+\"\"+r[1]),g:C(r[2]+\"\"+r[2]),b:C(r[3]+\"\"+r[3]),a:O(r[4]+\"\"+r[4]),format:i?\"name\":\"hex8\"}:!!(r=P.hex3.exec(t))&&{r:C(r[1]+\"\"+r[1]),g:C(r[2]+\"\"+r[2]),b:C(r[3]+\"\"+r[3]),format:i?\"name\":\"hex\"}}(r)),\"object\"==t(r)&&(F(r.r)&&F(r.g)&&F(r.b)?(i=r.r,o=r.g,a=r.b,s={r:255*k(i,255),g:255*k(o,255),b:255*k(a,255)},f=!0,d=\"%\"===String(r.r).substr(-1)?\"prgb\":\"rgb\"):F(r.h)&&F(r.s)&&F(r.v)?(l=D(r.s),c=D(r.v),s=function(t,e,n){t=6*k(t,360),e=k(e,100),n=k(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],h=[o,o,s,n,n,a][u];return{r:255*l,g:255*c,b:255*h}}(r.h,l,c),f=!0,d=\"hsv\"):F(r.h)&&F(r.s)&&F(r.l)&&(l=D(r.s),h=D(r.l),s=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=k(t,360),e=k(e,100),n=k(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(r.h,l,h),f=!0,d=\"hsl\"),r.hasOwnProperty(\"a\")&&(u=r.a)),u=x(u),{ok:f,format:r.format||d,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:u}}(i);this._originalInput=i,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=o.format||a.format,this._gradientType=o.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}function i(t,e,n){t=k(t,255),e=k(e,255),n=k(n,255);var r,i,o=Math.max(t,e,n),a=Math.min(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4}r/=6}return{h:r,s:i,l:s}}function o(t,e,n){t=k(t,255),e=k(e,255),n=k(n,255);var r,i,o=Math.max(t,e,n),a=Math.min(t,e,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4}r/=6}return{h:r,s:i,v:s}}function a(t,e,n,r){var i=[E(Math.round(t).toString(16)),E(Math.round(e).toString(16)),E(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function s(t,e,n,r){return[E(A(r)),E(Math.round(t).toString(16)),E(Math.round(e).toString(16)),E(Math.round(n).toString(16))].join(\"\")}function u(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.s-=e/100,n.s=S(n.s),r(n)}function l(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.s+=e/100,n.s=S(n.s),r(n)}function c(t){return r(t).desaturate(100)}function h(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.l+=e/100,n.l=S(n.l),r(n)}function f(t,e){e=0===e?0:e||10;var n=r(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),r(n)}function d(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.l-=e/100,n.l=S(n.l),r(n)}function p(t,e){var n=r(t).toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,r(n)}function m(t){var e=r(t).toHsl();return e.h=(e.h+180)%360,r(e)}function v(t,e){if(isNaN(e)||e<=0)throw new Error(\"Argument to polyad must be a positive number\");for(var n=r(t).toHsl(),i=[r(t)],o=360/e,a=1;a<e;a++)i.push(r({h:(n.h+a*o)%360,s:n.s,l:n.l}));return i}function g(t){var e=r(t).toHsl(),n=e.h;return[r(t),r({h:(n+72)%360,s:e.s,l:e.l}),r({h:(n+216)%360,s:e.s,l:e.l})]}function y(t,e,n){e=e||6,n=n||30;var i=r(t).toHsl(),o=360/n,a=[r(t)];for(i.h=(i.h-(o*e>>1)+720)%360;--e;)i.h=(i.h+o)%360,a.push(r(i));return a}function b(t,e){e=e||6;for(var n=r(t).toHsv(),i=n.h,o=n.s,a=n.v,s=[],u=1/e;e--;)s.push(r({h:i,s:o,v:a})),a=(a+u)%1;return s}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=x(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=o(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?\"hsv(\"+e+\", \"+n+\"%, \"+r+\"%)\":\"hsva(\"+e+\", \"+n+\"%, \"+r+\"%, \"+this._roundA+\")\"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?\"hsl(\"+e+\", \"+n+\"%, \"+r+\"%)\":\"hsla(\"+e+\", \"+n+\"%, \"+r+\"%, \"+this._roundA+\")\"},toHex:function(t){return a(this._r,this._g,this._b,t)},toHexString:function(t){return\"#\"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[E(Math.round(t).toString(16)),E(Math.round(e).toString(16)),E(Math.round(n).toString(16)),E(A(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join(\"\")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return\"#\"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\")\":\"rgba(\"+Math.round(this._r)+\", \"+Math.round(this._g)+\", \"+Math.round(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:Math.round(100*k(this._r,255))+\"%\",g:Math.round(100*k(this._g,255))+\"%\",b:Math.round(100*k(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+Math.round(100*k(this._r,255))+\"%, \"+Math.round(100*k(this._g,255))+\"%, \"+Math.round(100*k(this._b,255))+\"%)\":\"rgba(\"+Math.round(100*k(this._r,255))+\"%, \"+Math.round(100*k(this._g,255))+\"%, \"+Math.round(100*k(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&(w[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=\"#\"+s(this._r,this._g,this._b,this._a),n=e,i=this._gradientType?\"GradientType = 1, \":\"\";if(t){var o=r(t);n=\"#\"+s(o._r,o._g,o._b,o._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+i+\"startColorstr=\"+e+\",endColorstr=\"+n+\")\"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||\"hex\"!==t&&\"hex6\"!==t&&\"hex3\"!==t&&\"hex4\"!==t&&\"hex8\"!==t&&\"name\"!==t?(\"rgb\"===t&&(n=this.toRgbString()),\"prgb\"===t&&(n=this.toPercentageRgbString()),\"hex\"!==t&&\"hex6\"!==t||(n=this.toHexString()),\"hex3\"===t&&(n=this.toHexString(!0)),\"hex4\"===t&&(n=this.toHex8String(!0)),\"hex8\"===t&&(n=this.toHex8String()),\"name\"===t&&(n=this.toName()),\"hsl\"===t&&(n=this.toHslString()),\"hsv\"===t&&(n=this.toHsvString()),n||this.toHexString()):\"name\"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(f,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(c,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(g,arguments)},triad:function(){return this._applyCombination(v,[3])},tetrad:function(){return this._applyCombination(v,[4])}},r.fromRatio=function(e,n){if(\"object\"==t(e)){var i={};for(var o in e)e.hasOwnProperty(o)&&(i[o]=\"a\"===o?e[o]:D(e[o]));e=i}return r(e,n)},r.equals=function(t,e){return!(!t||!e)&&r(t).toRgbString()==r(e).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(t,e,n){n=0===n?0:n||50;var i=r(t).toRgb(),o=r(e).toRgb(),a=n/100;return r({r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a})},r.readability=function(t,e){var n=r(t),i=r(e);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},r.isReadable=function(t,e,n){var i,o,a,s,u,l=r.readability(t,e);switch(o=!1,(a=n,s=((a=a||{level:\"AA\",size:\"small\"}).level||\"AA\").toUpperCase(),u=(a.size||\"small\").toLowerCase(),\"AA\"!==s&&\"AAA\"!==s&&(s=\"AA\"),\"small\"!==u&&\"large\"!==u&&(u=\"small\"),i={level:s,size:u}).level+i.size){case\"AAsmall\":case\"AAAlarge\":o=l>=4.5;break;case\"AAlarge\":o=l>=3;break;case\"AAAsmall\":o=l>=7}return o},r.mostReadable=function(t,e,n){var i,o,a,s,u=null,l=0;o=(n=n||{}).includeFallbackColors,a=n.level,s=n.size;for(var c=0;c<e.length;c++)(i=r.readability(t,e[c]))>l&&(l=i,u=r(e[c]));return r.isReadable(t,u,{level:a,size:s})||!o?u:(n.includeFallbackColors=!1,r.mostReadable(t,[\"#fff\",\"#000\"],n))};var _=r.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},w=r.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(_);function x(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function k(t,e){(function(t){return\"string\"==typeof t&&-1!=t.indexOf(\".\")&&1===parseFloat(t)})(t)&&(t=\"100%\");var n=function(t){return\"string\"==typeof t&&-1!=t.indexOf(\"%\")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function S(t){return Math.min(1,Math.max(0,t))}function C(t){return parseInt(t,16)}function E(t){return 1==t.length?\"0\"+t:\"\"+t}function D(t){return t<=1&&(t=100*t+\"%\"),t}function A(t){return Math.round(255*parseFloat(t)).toString(16)}function O(t){return C(t)/255}var M,T,I,P=(T=\"[\\\\s|\\\\(]+(\"+(M=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\")+\")[,|\\\\s]+(\"+M+\")[,|\\\\s]+(\"+M+\")\\\\s*\\\\)?\",I=\"[\\\\s|\\\\(]+(\"+M+\")[,|\\\\s]+(\"+M+\")[,|\\\\s]+(\"+M+\")[,|\\\\s]+(\"+M+\")\\\\s*\\\\)?\",{CSS_UNIT:new RegExp(M),rgb:new RegExp(\"rgb\"+T),rgba:new RegExp(\"rgba\"+I),hsl:new RegExp(\"hsl\"+T),hsla:new RegExp(\"hsla\"+I),hsv:new RegExp(\"hsv\"+T),hsva:new RegExp(\"hsva\"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function F(t){return!!P.CSS_UNIT.exec(t)}return r},\"object\"===a(e)&&void 0!==t?t.exports=o():void 0===(i=\"function\"==typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){\"use strict\";e.a=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return new Promise((function(n,i){r.push((function(t,e){t&&i(t),n(e)})),t.bind(e).apply(void 0,r)}))}},function(t,e,n){var r=n(122);function i(t,e){var n=new r(t,e);return function(t){return n.convert(t)}}i.BIN=\"01\",i.OCT=\"01234567\",i.DEC=\"0123456789\",i.HEX=\"0123456789abcdef\",t.exports=i},function(t,e,n){\"use strict\";function r(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;e<t;e++)o[e]=1;o[0]=1/Math.sqrt(2)}(this.size)}function i(t){var e=255&t,n=255&(t>>>=8),r=255&(t>>>=8);return{r:255&(t>>>=8),g:r,b:n,a:e}}r.prototype.size=32,r.prototype.smallerSize=8,r.prototype.distance=function(t,e){for(var n=0,r=0;r<t.length;r++)t[r]!==e[r]&&n++;return n/t.length},r.prototype.getHash=function(t){(t=t.clone().resize(this.size,this.size)).grayscale();for(var e=[],n=0;n<t.bitmap.width;n++){e[n]=[];for(var r=0;r<t.bitmap.height;r++)e[n][r]=i(t.getPixelColor(n,r)).b}for(var a=function(t,e){for(var n=e,r=[],i=0;i<n;i++){r[i]=[];for(var a=0;a<n;a++){for(var s=0,u=0;u<n;u++)for(var l=0;l<n;l++)s+=Math.cos((2*u+1)/(2*n)*i*Math.PI)*Math.cos((2*l+1)/(2*n)*a*Math.PI)*t[u][l];s*=o[i]*o[a]/4,r[i][a]=s}}return r}(e,this.size),s=0,u=0;u<this.smallerSize;u++)for(var l=0;l<this.smallerSize;l++)s+=a[u][l];for(var c=s/(this.smallerSize*this.smallerSize),h=\"\",f=0;f<this.smallerSize;f++)for(var d=0;d<this.smallerSize;d++)h+=a[f][d]>c?\"1\":\"0\";return h};var o=[];e.a=r},function(t,e,n){(function(t,e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}!function(){var i={};function o(){void 0===e&&console.log.apply(console,arguments)}\"object\"==r(t)?t.exports=i:self.UTIF=i,function(t,e){var n,i,a,s,u,l,c,h,f,d,p,m,v,g;!function(){\"use strict\";var e=function(){function t(t){this.message=\"JPEG error: \"+t}return t.prototype=new Error,t.prototype.name=\"JpegError\",t.constructor=t,t}(),n=function(){var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),n=4017,o=799,a=3406,s=2276,u=1567,l=3784,c=5793,h=2896;function f(t){null==t&&(t={}),null==t.w&&(t.w=-1),this.V=t.n,this.N=t.w}function d(t,e){for(var n,r,i,o=0,a=[],s=16;s>0&&!t[s-1];)s--;a.push({children:[],index:0});var u=a[0];for(n=0;n<s;n++){for(r=0;r<t[n];r++){for((u=a.pop()).children[u.index]=e[o];u.index>0;)u=a.pop();for(u.index++,a.push(u);a.length<=n;)a.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i;o++}n+1<s&&(a.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i)}return a[0].children}function p(t,e,n){return 64*((t.P+1)*e+n)}function m(n,o,a,s,u,l,c,h,f,d){null==d&&(d=!1);var m,v,g,b,_,w,x,k,S,C,E,D=a.m,A=a.Z,O=o,M=0,T=0,I=0,P=0,F=0,j=0;function N(){if(T>0)return T--,M>>T&1;if(255===(M=n[o++])){var t=n[o++];if(t){if(220===t&&d){var r=i(n,o+=2);if(o+=2,r>0&&r!==a.s)throw new DNLMarkerError(\"Found DNL marker (0xFFDC) while parsing scan data\",r)}else if(217===t){if(d){var s=8*F;if(s>0&&s<a.s/10)throw new DNLMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter\",s)}throw new EOIMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data\")}throw new e(\"unexpected marker\")}}return T=7,M>>>7}function L(t){for(var n=t;;){switch(r(n=n[N()])){case\"number\":return n;case\"object\":continue}throw new e(\"invalid huffman sequence\")}}function B(t){for(var e=0;t>0;)e=e<<1|N(),t--;return e}function $(t){if(1===t)return 1===N()?1:-1;var e=B(t);return e>=1<<t-1?e:e+(-1<<t)+1}function z(t,e,n,r,i){var o=n%D;F=(n/D|0)*t.A+r;var a=o*t.h+i;e(t,p(t,F,a))}function R(t,e,n){F=n/t.P|0;var r=n%t.P;e(t,p(t,F,r))}var U=s.length;for(x=A?0===l?0===h?function(t,e){var n=L(t.J),r=0===n?0:$(n)<<f;t.D[e]=t.Q+=r}:function(t,e){t.D[e]|=N()<<f}:0===h?function(e,n){if(I>0)I--;else for(var r=l,i=c;r<=i;){var o=L(e.i),a=15&o,s=o>>4;if(0!==a){var u=t[r+=s];e.D[n+u]=$(a)*(1<<f),r++}else{if(s<15){I=B(s)+(1<<s)-1;break}r+=16}}}:function(n,r){for(var i,o,a=l,s=c,u=0;a<=s;){var h=r+t[a],d=n.D[h]<0?-1:1;switch(P){case 0:if(u=(o=L(n.i))>>4,0==(i=15&o))u<15?(I=B(u)+(1<<u),P=4):(u=16,P=1);else{if(1!==i)throw new e(\"invalid ACn encoding\");m=$(i),P=u?2:3}continue;case 1:case 2:n.D[h]?n.D[h]+=d*(N()<<f):0==--u&&(P=2===P?3:0);break;case 3:n.D[h]?n.D[h]+=d*(N()<<f):(n.D[h]=m<<f,P=0);break;case 4:n.D[h]&&(n.D[h]+=d*(N()<<f))}a++}4===P&&0==--I&&(P=0)}:function(e,n){var r=L(e.J),i=0===r?0:$(r),o=1;for(e.D[n]=e.Q+=i;o<64;){var a=L(e.i),s=15&a,u=a>>4;if(0!==s){var l=t[o+=u];e.D[n+l]=$(s),o++}else{if(u<15)break;o+=16}}},S=1===U?s[0].P*s[0].c:D*a.R;j<=S;){var V=u?Math.min(S-j,u):S;if(V>0){for(g=0;g<U;g++)s[g].Q=0;if(I=0,1===U)for(v=s[0],w=0;w<V;w++)R(v,x,j),j++;else for(w=0;w<V;w++){for(g=0;g<U;g++)for(C=(v=s[g]).h,E=v.A,b=0;b<E;b++)for(_=0;_<C;_++)z(v,x,j,b,_);j++}}if(T=0,!(k=y(n,o)))break;if(k.u){o=k.offset}if(!(k.M>=65488&&k.M<=65495))break;o+=2}return o-O}function v(t,r,i){var f,d,p,m,v,g,y,b,_,w,x,k,S,C,E,D,A,O=t.$,M=t.D;if(!O)throw new e(\"missing required Quantization Table.\");for(var T=0;T<64;T+=8)_=M[r+T],w=M[r+T+1],x=M[r+T+2],k=M[r+T+3],S=M[r+T+4],C=M[r+T+5],E=M[r+T+6],D=M[r+T+7],_*=O[T],w|x|k|S|C|E|D?(w*=O[T+1],x*=O[T+2],k*=O[T+3],S*=O[T+4],C*=O[T+5],E*=O[T+6],D*=O[T+7],d=(f=(f=c*_+128>>8)+(d=c*S+128>>8)+1>>1)-d,A=(p=x)*l+(m=E)*u+128>>8,p=p*u-m*l+128>>8,y=(v=(v=h*(w-D)+128>>8)+(y=C<<4)+1>>1)-y,g=(b=(b=h*(w+D)+128>>8)+(g=k<<4)+1>>1)-g,m=(f=f+(m=A)+1>>1)-m,p=(d=d+p+1>>1)-p,A=v*s+b*a+2048>>12,v=v*a-b*s+2048>>12,b=A,A=g*o+y*n+2048>>12,g=g*n-y*o+2048>>12,y=A,i[T]=f+b,i[T+7]=f-b,i[T+1]=d+y,i[T+6]=d-y,i[T+2]=p+g,i[T+5]=p-g,i[T+3]=m+v,i[T+4]=m-v):(A=c*_+512>>10,i[T]=A,i[T+1]=A,i[T+2]=A,i[T+3]=A,i[T+4]=A,i[T+5]=A,i[T+6]=A,i[T+7]=A);for(var I=0;I<8;++I)_=i[I],(w=i[I+8])|(x=i[I+16])|(k=i[I+24])|(S=i[I+32])|(C=i[I+40])|(E=i[I+48])|(D=i[I+56])?(d=(f=4112+((f=c*_+2048>>12)+(d=c*S+2048>>12)+1>>1))-d,A=(p=x)*l+(m=E)*u+2048>>12,p=p*u-m*l+2048>>12,m=A,y=(v=(v=h*(w-D)+2048>>12)+(y=C)+1>>1)-y,g=(b=(b=h*(w+D)+2048>>12)+(g=k)+1>>1)-g,A=v*s+b*a+2048>>12,v=v*a-b*s+2048>>12,b=A,A=g*o+y*n+2048>>12,g=g*n-y*o+2048>>12,(_=(f=f+m+1>>1)+b)<16?_=0:_>=4080?_=255:_>>=4,(w=(d=d+p+1>>1)+(y=A))<16?w=0:w>=4080?w=255:w>>=4,(x=(p=d-p)+g)<16?x=0:x>=4080?x=255:x>>=4,(k=(m=f-m)+v)<16?k=0:k>=4080?k=255:k>>=4,(S=m-v)<16?S=0:S>=4080?S=255:S>>=4,(C=p-g)<16?C=0:C>=4080?C=255:C>>=4,(E=d-y)<16?E=0:E>=4080?E=255:E>>=4,(D=f-b)<16?D=0:D>=4080?D=255:D>>=4,M[r+I]=_,M[r+I+8]=w,M[r+I+16]=x,M[r+I+24]=k,M[r+I+32]=S,M[r+I+40]=C,M[r+I+48]=E,M[r+I+56]=D):(A=(A=c*_+8192>>14)<-2040?0:A>=2024?255:A+2056>>4,M[r+I]=A,M[r+I+8]=A,M[r+I+16]=A,M[r+I+24]=A,M[r+I+32]=A,M[r+I+40]=A,M[r+I+48]=A,M[r+I+56]=A)}function g(t,e){for(var n=e.P,r=e.c,i=new Int16Array(64),o=0;o<r;o++)for(var a=0;a<n;a++){v(e,p(e,o,a),i)}return e.D}function y(t,e,n){null==n&&(n=e);var r=t.length-1,o=n<e?n:e;if(e>=r)return null;var a=i(t,e);if(a>=65472&&a<=65534)return{u:null,M:a,offset:e};for(var s=i(t,o);!(s>=65472&&s<=65534);){if(++o>=r)return null;s=i(t,o)}return{u:a.toString(16),M:s,offset:o}}return f.prototype={parse:function(n,r){null==r&&(r={});var o,a,s=r.F,u=0,l=null,c=null,h=0;function f(){var t=i(n,u),e=(u+=2)+t-2,r=y(n,e,u);r&&r.u&&(e=r.offset);var o=n.subarray(u,e);return u+=o.length,o}function p(t){for(var e=Math.ceil(t.o/8/t.X),n=Math.ceil(t.s/8/t.B),r=0;r<t.W.length;r++){U=t.W[r];var i=Math.ceil(Math.ceil(t.o/8)*U.h/t.X),o=Math.ceil(Math.ceil(t.s/8)*U.A/t.B),a=e*U.h,s=64*(n*U.A)*(a+1);U.D=new Int16Array(s),U.P=i,U.c=o}t.m=e,t.R=n}var v=[],b=[],_=[],w=i(n,u);if(u+=2,65496!==w)throw new e(\"SOI not found\");w=i(n,u),u+=2;t:for(;65497!==w;){var x,k,S;switch(w){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var C=f();65504===w&&74===C[0]&&70===C[1]&&73===C[2]&&70===C[3]&&0===C[4]&&(l={version:{d:C[5],T:C[6]},K:C[7],j:C[8]<<8|C[9],H:C[10]<<8|C[11],S:C[12],I:C[13],C:C.subarray(14,14+3*C[12]*C[13])}),65518===w&&65===C[0]&&100===C[1]&&111===C[2]&&98===C[3]&&101===C[4]&&(c={version:C[5]<<8|C[6],k:C[7]<<8|C[8],q:C[9]<<8|C[10],a:C[11]});break;case 65499:for(var E=i(n,u)+(u+=2)-2;u<E;){var D=n[u++],A=new Uint16Array(64);if(D>>4){if(D>>4!=1)throw new e(\"DQT - invalid table spec\");for(k=0;k<64;k++)A[t[k]]=i(n,u),u+=2}else for(k=0;k<64;k++)A[t[k]]=n[u++];v[15&D]=A}break;case 65472:case 65473:case 65474:if(o)throw new e(\"Only single frame JPEGs supported\");u+=2,(o={}).G=65473===w,o.Z=65474===w,o.precision=n[u++];var O,M=i(n,u),T=0,I=0;u+=2,o.s=s||M,o.o=i(n,u),u+=2,o.W=[],o._={};var P=n[u++];for(x=0;x<P;x++){O=n[u];var F=n[u+1]>>4,j=15&n[u+1];T<F&&(T=F),I<j&&(I=j);var N=n[u+2];S=o.W.push({h:F,A:j,L:N,$:null}),o._[O]=S-1,u+=3}o.X=T,o.B=I,p(o);break;case 65476:var L=i(n,u);for(u+=2,x=2;x<L;){var B=n[u++],$=new Uint8Array(16),z=0;for(k=0;k<16;k++,u++)z+=$[k]=n[u];var R=new Uint8Array(z);for(k=0;k<z;k++,u++)R[k]=n[u];x+=17+z,(B>>4?b:_)[15&B]=d($,R)}break;case 65501:a=i(n,u+=2),u+=2;break;case 65498:var U,V=1==++h&&!s;u+=2;var H=n[u++],G=[];for(x=0;x<H;x++){var q=n[u++],W=o._[q];(U=o.W[W]).index=q;var Y=n[u++];U.J=_[Y>>4],U.i=b[15&Y],G.push(U)}var Z=n[u++],K=n[u++],X=n[u++];try{var J=m(n,u,o,G,a,Z,K,X>>4,15&X,V);u+=J}catch(t){if(t instanceof DNLMarkerError)return this.parse(n,{F:t.s});if(t instanceof EOIMarkerError)break t;throw t}break;case 65500:u+=4;break;case 65535:255!==n[u]&&u--;break;default:var Q=y(n,u-2,u-3);if(Q&&Q.u){u=Q.offset;break}if(u>=n.length-1)break t;throw new e(\"JpegImage.parse - unknown marker: \"+w.toString(16))}w=i(n,u),u+=2}for(this.width=o.o,this.height=o.s,this.g=l,this.b=c,this.W=[],x=0;x<o.W.length;x++){var tt=v[(U=o.W[x]).L];tt&&(U.$=tt),this.W.push({index:U.index,e:g(0,U),l:U.h/o.X,t:U.A/o.B,P:U.P,c:U.c})}this.p=this.W.length},Y:function(t,e,n){null==n&&(n=!1);var r,i,o,a,s,u,l,c,h,f,d,p,m=this.width/t,v=this.height/e,g=0,y=this.W.length,b=t*e*y,_=new Uint8ClampedArray(b),w=new Uint32Array(t),x=4294967288;for(l=0;l<y;l++){if(i=(r=this.W[l]).l*m,o=r.t*v,g=l,d=r.e,a=r.P+1<<3,i!==p){for(s=0;s<t;s++)c=0|s*i,w[s]=(c&x)<<3|7&c;p=i}for(u=0;u<e;u++)for(f=a*((c=0|u*o)&x)|(7&c)<<3,s=0;s<t;s++)_[g]=d[f+w[s]],g+=y}var k=this.V;if(n||4!==y||k||(k=new Int32Array([-256,255,-256,255,-256,255,-256,255])),k)for(l=0;l<b;)for(c=0,h=0;c<y;c++,l++,h+=2)_[l]=(_[l]*k[h]>>8)+k[h+1];return _},get f(){return this.b?!!this.b.a:3===this.p?0!==this.N&&(82!==this.W[0].index||71!==this.W[1].index||66!==this.W[2].index):1===this.N},z:function(t){for(var e,n,r,i=0,o=t.length;i<o;i+=3)e=t[i],n=t[i+1],r=t[i+2],t[i]=e-179.456+1.402*r,t[i+1]=e+135.459-.344*n-.714*r,t[i+2]=e-226.816+1.772*n;return t},O:function(t){for(var e,n,r,i,o=0,a=0,s=t.length;a<s;a+=4)e=t[a],n=t[a+1],r=t[a+2],i=t[a+3],t[o++]=n*(-660635669420364e-19*n+.000437130475926232*r-54080610064599e-18*e+.00048449797120281*i-.154362151871126)-122.67195406894+r*(-.000957964378445773*r+.000817076911346625*e-.00477271405408747*i+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),t[o++]=107.268039397724+n*(219927104525741e-19*n-.000640992018297945*r+.000659397001245577*e+.000426105652938837*i-.176491792462875)+r*(-.000778269941513683*r+.00130872261408275*e+.000770482631801132*i-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),t[o++]=n*(-.000570115196973677*n-263409051004589e-19*r+.0020741088115012*e-.00288260236853442*i+.814272968359295)-20.810012546947+r*(-153496057440975e-19*r-.000132689043961446*e+.000560833691242812*i-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return t.subarray(0,o)},r:function(t){for(var e,n,r,i=0,o=t.length;i<o;i+=4)e=t[i],n=t[i+1],r=t[i+2],t[i]=434.456-e-1.402*r,t[i+1]=119.541-e+.344*n+.714*r,t[i+2]=481.816-e-1.772*n;return t},U:function(t){for(var e,n,r,i,o=0,a=0,s=t.length;a<s;a+=4)e=t[a],n=t[a+1],r=t[a+2],i=t[a+3],t[o++]=255+e*(-6747147073602441e-20*e+.0008379262121013727*n+.0002894718188643294*r+.003264231057537806*i-1.1185611867203937)+n*(26374107616089405e-21*n-8626949158638572e-20*r-.0002748769067499491*i-.02155688794978967)+r*(-3878099212869363e-20*r-.0003267808279485286*i+.0686742238595345)-i*(.0003361971776183937*i+.7430659151342254),t[o++]=255+e*(.00013596372813588848*e+.000924537132573585*n+.00010567359618683593*r+.0004791864687436512*i-.3109689587515875)+n*(-.00023545346108370344*n+.0002702845253534714*r+.0020200308977307156*i-.7488052167015494)+r*(6834815998235662e-20*r+.00015168452363460973*i-.09751927774728933)-i*(.0003189131175883281*i+.7364883807733168),t[o++]=255+e*(13598650411385307e-21*e+.00012423956175490851*n+.0004751985097583589*r-36729317476630422e-22*i-.05562186980264034)+n*(.00016141380598724676*n+.0009692239130725186*r+.0007782692450036253*i-.44015232367526463)+r*(5.068882914068769e-7*r+.0017778369011375071*i-.7591454649749609)-i*(.0003435319965105553*i+.7063770186160144);return t.subarray(0,o)},getData:function(t){var n=t.width,r=t.height,i=t.forceRGB,o=t.isSourcePDF;if(this.p>4)throw new e(\"Unsupported color mode\");var a=this.Y(n,r,o);if(1===this.p&&i){for(var s=a.length,u=new Uint8ClampedArray(3*s),l=0,c=0;c<s;c++){var h=a[c];u[l++]=h,u[l++]=h,u[l++]=h}return u}if(3===this.p&&this.f)return this.z(a);if(4===this.p){if(this.f)return i?this.O(a):this.r(a);if(i)return this.U(a)}return a}},f}();function i(t,e){return t[e]<<8|t[e+1]}t.JpegDecoder=n}(),t.encodeImage=function(e,n,r,i){var o={t256:[n],t257:[r],t258:[8,8,8,8],t259:[1],t262:[2],t273:[1e3],t277:[4],t278:[r],t279:[n*r*4],t282:[[72,1]],t283:[[72,1]],t284:[1],t286:[[0,1]],t287:[[0,1]],t296:[1],t305:[\"Photopea (UTIF.js)\"],t338:[1]};if(i)for(var a in i)o[a]=i[a];var s=new Uint8Array(t.encode([o])),u=new Uint8Array(e),l=new Uint8Array(1e3+n*r*4);for(a=0;a<s.length;a++)l[a]=s[a];for(a=0;a<u.length;a++)l[1e3+a]=u[a];return l.buffer},t.encode=function(e){var n=new Uint8Array(2e4),r=4,i=t._binBE;n[0]=n[1]=77,i.writeUshort(n,2,42);var o=8;i.writeUint(n,r,o),r+=4;for(var a=0;a<e.length;a++){var s=t._writeIFD(i,t._types.basic,n,o,e[a]);o=s[1],a<e.length-1&&(3&o&&(o+=4-(3&o)),i.writeUint(n,s[0],o))}return n.slice(0,o).buffer},t.decode=function(e,n){null==n&&(n={parseMN:!0,debug:!1});var r=new Uint8Array(e),i=0,a=t._binBE.readASCII(r,i,2);i+=2;var s=\"II\"==a?t._binLE:t._binBE;s.readUshort(r,i);i+=2;var u=s.readUint(r,i);i+=4;for(var l=[];;){var c=s.readUshort(r,u),h=s.readUshort(r,u+4);if(0!=c&&(h<1||13<h)){o(\"error in TIFF\");break}if(t._readIFD(s,r,u,l,0,n),0==(u=s.readUint(r,u+2+12*c)))break}return l},t.decodeImage=function(e,n,r){if(!n.data){var i=new Uint8Array(e),a=t._binBE.readASCII(i,0,2);if(null!=n.t256){n.isLE=\"II\"==a,n.width=n.t256[0],n.height=n.t257[0];var s=n.t259?n.t259[0]:1,u=n.t266?n.t266[0]:1;n.t284&&2==n.t284[0]&&o(\"PlanarConfiguration 2 should not be used!\"),7==s&&n.t258&&n.t258.length>3&&(n.t258=n.t258.slice(0,3));var l=n.t277?n.t277[0]:1,c=(n.t258?n.t258[0]:1)*l;1==s&&null!=n.t279&&n.t278&&32803==n.t262[0]&&(c=Math.round(8*n.t279[0]/(n.width*n.t278[0]))),n.t50885&&4==n.t50885[0]&&(c=3*n.t258[0]);var h=8*Math.ceil(n.width*c/8),f=n.t273;(null==f||n.t322)&&(f=n.t324);var d=n.t279;1==s&&1==f.length&&(d=[n.height*(h>>>3)]),(null==d||n.t322)&&(d=n.t325);var p=new Uint8Array(n.height*(h>>>3)),m=0;if(null!=n.t322){for(var v=n.t322[0],g=n.t323[0],y=Math.floor((n.width+v-1)/v),b=Math.floor((n.height+g-1)/g),_=new Uint8Array(0|Math.ceil(v*g*c/8)),w=0;w<b;w++)for(var x=0;x<y;x++){var k=w*y+x;_.fill(0),t.decode._decompress(n,r,i,f[k],d[k],s,_,0,u,v,g),6==s?p=_:t._copyTile(_,0|Math.ceil(v*c/8),g,p,0|Math.ceil(n.width*c/8),n.height,0|Math.ceil(x*v*c/8),w*g)}m=8*p.length}else{if(null==f)return;var S=n.t278?n.t278[0]:n.height;S=Math.min(S,n.height);for(k=0;k<f.length;k++)t.decode._decompress(n,r,i,f[k],d[k],s,p,0|Math.ceil(m/8),u,n.width,S),m+=h*S;m=Math.min(m,8*p.length)}n.data=new Uint8Array(p.buffer,0,0|Math.ceil(m/8))}}},t.decode._decompress=function(n,r,i,a,s,u,l,c,h,f,d){if(n.t271&&\"Panasonic\"==n.t271[0]&&n.t45&&6==n.t45[0]&&(u=34316),1==u)for(var p=0;p<s;p++)l[c+p]=i[a+p];else if(2==u)t.decode._decodeG2(i,a,s,l,c,f,h);else if(3==u)t.decode._decodeG3(i,a,s,l,c,f,h,!!n.t292&&!(1&~n.t292[0]));else if(4==u)t.decode._decodeG4(i,a,s,l,c,f,h);else if(5==u)t.decode._decodeLZW(i,a,s,l,c,8);else if(6==u)t.decode._decodeOldJPEG(n,i,a,s,l,c);else if(7==u||34892==u)t.decode._decodeNewJPEG(n,i,a,s,l,c);else if(8==u||32946==u){var m=new Uint8Array(i.buffer,a+2,s-6),v=e.inflateRaw(m);c+v.length<=l.length&&l.set(v,c)}else 9==u?t.decode._decodeVC5(i,a,s,l,c,n.t33422):32767==u?t.decode._decodeARW(n,i,a,s,l,c):32773==u?t.decode._decodePackBits(i,a,s,l,c):32809==u?t.decode._decodeThunder(i,a,s,l,c):34316==u?t.decode._decodePanasonic(n,i,a,s,l,c):34713==u?t.decode._decodeNikon(n,r,i,a,s,l,c):34676==u?t.decode._decodeLogLuv32(n,i,a,s,l,c):o(\"Unknown compression\",u);var g=n.t258?Math.min(32,n.t258[0]):1,y=n.t277?n.t277[0]:1,b=g*y>>>3,_=Math.ceil(g*y*f/8);if(16==g&&!n.isLE&&null==n.t33422)for(var w=0;w<d;w++)for(var x=c+w*_,k=1;k<_;k+=2){var S=l[x+k];l[x+k]=l[x+k-1],l[x+k-1]=S}if(n.t317&&2==n.t317[0])for(w=0;w<d;w++){var C=c+w*_;if(16==g)for(p=b;p<_;p+=2){var E=(l[C+p+1]<<8|l[C+p])+(l[C+p-b+1]<<8|l[C+p-b]);l[C+p]=255&E,l[C+p+1]=E>>>8&255}else if(3==y)for(p=3;p<_;p+=3)l[C+p]=l[C+p]+l[C+p-3]&255,l[C+p+1]=l[C+p+1]+l[C+p-2]&255,l[C+p+2]=l[C+p+2]+l[C+p-1]&255;else for(p=b;p<_;p++)l[C+p]=l[C+p]+l[C+p-b]&255}},t.decode._decodePanasonic=function(t,e,n,r,i,o){var a,s,u,l,c,h,f,d,p=e.buffer,m=t.t2[0],v=t.t3[0],g=t.t10[0],y=t.t45[0],b=0,_=0,w=0,x=0,k=6==y?new Uint32Array(18):new Uint8Array(16),S=[0,0],C=[0,0],E=0,D=new Uint8Array(16384),A=new Uint16Array(i.buffer);function O(t){if(0==w){var e=new Uint8Array(p,n+_+8184,8200),r=new Uint8Array(p,n+_,8184);D.set(e),D.set(r,e.length),_+=16384}if(5!=y)return(D[x=(w=w-t&131071)>>3^16368]|D[x+1]<<8)>>(7&w)&~(-1<<t);for(a=0;a<16;a++)k[a]=D[w++],w&=16383}function M(t){return D[w+15-t]}function T(){S[0]=0,S[1]=0,C[0]=0,C[1]=0}if(7==y)throw y;if(6==y){var I=12==g,P=I?function(){k[0]=M(0)<<4|M(1)>>4,k[1]=4095&((15&M(1))<<8|M(2)),k[2]=M(3)>>6&3,k[3]=(63&M(3))<<2|M(4)>>6,k[4]=(63&M(4))<<2|M(5)>>6,k[5]=(63&M(5))<<2|M(6)>>6,k[6]=M(6)>>4&3,k[7]=(15&M(6))<<4|M(7)>>4,k[8]=(15&M(7))<<4|M(8)>>4,k[9]=(15&M(8))<<4|M(9)>>4,k[10]=M(9)>>2&3,k[11]=(3&M(9))<<6|M(10)>>2,k[12]=(3&M(10))<<6|M(11)>>2,k[13]=(3&M(11))<<6|M(12)>>2,k[14]=3&M(12),k[15]=M(13),k[16]=M(14),k[17]=M(15),w+=16,x=0}:function(){k[0]=M(0)<<6|M(1)>>2,k[1]=16383&((3&M(1))<<12|M(2)<<4|M(3)>>4),k[2]=M(3)>>2&3,k[3]=(3&M(3))<<8|M(4),k[4]=M(5)<<2|M(6)>>6,k[5]=(63&M(6))<<4|M(7)>>4,k[6]=M(7)>>2&3,k[7]=(3&M(7))<<8|M(8),k[8]=M(9)<<2&1020|M(10)>>6,k[9]=1023&(M(10)<<4|M(11)>>4),k[10]=M(11)>>2&3,k[11]=(3&M(11))<<8|M(12),k[12]=1023&(M(13)<<2&1020|M(14)>>6),k[13]=1023&(M(14)<<4|M(15)>>4),w+=16,x=0},F=I?14:11,j=I?128:512,N=I?2048:8192,L=I?16383:65535,B=I?4095:16383,$=m/F,z=16*$,R=I?18:14;for(h=0;h<v-15;h+=16){var U=Math.min(16,v-h),V=z*U;for(D=new Uint8Array(p,n+b,V),w=0,b+=V,d=0,f=0;d<U;d++,f=0){E=(h+d)*m;for(var H=0;H<$;H++)for(P(),T(),u=0,c=0,a=0;a<F;a++){if(l=1&a,a%3==2){var G=x<R?k[x++]:0;3==G&&(G=4),c=j<<G,u=1<<G}var q=x<R?k[x++]:0;S[l]?(q*=u,c<N&&C[l]>c&&(q+=C[l]-c),C[l]=q):(S[l]=q,q?C[l]=q:q=C[l]),A[E+f++]=q-15<=L?q-15&L:q+2147483633>>31&B}}}}else if(5==y){var W=12==g?10:9;for(h=0;h<v;h++)for(f=0;f<m;f+=W)O(0),12==g?(A[E++]=((15&k[1])<<8)+k[0],A[E++]=16*k[2]+(k[1]>>4),A[E++]=((15&k[4])<<8)+k[3],A[E++]=16*k[5]+(k[4]>>4),A[E++]=((15&k[7])<<8)+k[6],A[E++]=16*k[8]+(k[7]>>4),A[E++]=((15&k[10])<<8)+k[9],A[E++]=16*k[11]+(k[10]>>4),A[E++]=((15&k[13])<<8)+k[12],A[E++]=16*k[14]+(k[13]>>4)):14==g&&(A[E++]=k[0]+((63&k[1])<<8),A[E++]=(k[1]>>6)+4*k[2]+((15&k[3])<<10),A[E++]=(k[3]>>4)+16*k[4]+((3&k[5])<<12),A[E++]=((252&k[5])>>2)+(k[6]<<6),A[E++]=k[7]+((63&k[8])<<8),A[E++]=(k[8]>>6)+4*k[9]+((15&k[10])<<10),A[E++]=(k[10]>>4)+16*k[11]+((3&k[12])<<12),A[E++]=((252&k[12])>>2)+(k[13]<<6),A[E++]=k[14]+((63&k[15])<<8))}else{if(4!=y)throw y;for(h=0;h<v;h++)for(f=0;f<m;f++)l=1&(a=f%14),0==a&&T(),a%3==2&&(u=4>>3-O(2)),C[l]?0!=(s=O(8))&&(S[l]-=128<<u,(S[l]<0||4==u)&&(S[l]&=~(-1<<u)),S[l]+=s<<u):(C[l]=O(8),(C[l]||a>11)&&(S[l]=C[l]<<4|O(4))),A[E++]=S[1&f]}},t.decode._decodeVC5=function(){var e,n,r,i=[1,0,1,0,2,2,1,1,3,7,1,2,5,25,1,3,6,48,1,4,6,54,1,5,7,111,1,8,7,99,1,6,7,105,12,0,7,107,1,7,8,209,20,0,8,212,1,9,8,220,1,10,9,393,1,11,9,394,32,0,9,416,1,12,9,427,1,13,10,887,1,18,10,784,1,14,10,790,1,15,10,835,60,0,10,852,1,16,10,885,1,17,11,1571,1,19,11,1668,1,20,11,1669,100,0,11,1707,1,21,11,1772,1,22,12,3547,1,29,12,3164,1,24,12,3166,1,25,12,3140,1,23,12,3413,1,26,12,3537,1,27,12,3539,1,28,13,7093,1,35,13,6283,1,30,13,6331,1,31,13,6335,180,0,13,6824,1,32,13,7072,1,33,13,7077,320,0,13,7076,1,34,14,12565,1,36,14,12661,1,37,14,12669,1,38,14,13651,1,39,14,14184,1,40,15,28295,1,46,15,28371,1,47,15,25320,1,42,15,25336,1,43,15,25128,1,41,15,27300,1,44,15,28293,1,45,16,50259,1,48,16,50643,1,49,16,50675,1,50,16,56740,1,53,16,56584,1,51,16,56588,1,52,17,113483,1,61,17,113482,1,60,17,101285,1,55,17,101349,1,56,17,109205,1,57,17,109207,1,58,17,100516,1,54,17,113171,1,59,18,202568,1,62,18,202696,1,63,18,218408,1,64,18,218412,1,65,18,226340,1,66,18,226356,1,67,18,226358,1,68,19,402068,1,69,19,405138,1,70,19,405394,1,71,19,436818,1,72,19,436826,1,73,19,452714,1,75,19,452718,1,76,19,452682,1,74,20,804138,1,77,20,810279,1,78,20,810790,1,79,20,873638,1,80,20,873654,1,81,20,905366,1,82,20,905430,1,83,20,905438,1,84,21,1608278,1,85,21,1620557,1,86,21,1621582,1,87,21,1621583,1,88,21,1747310,1,89,21,1810734,1,90,21,1810735,1,91,21,1810863,1,92,21,1810879,1,93,22,3621725,1,99,22,3621757,1,100,22,3241112,1,94,22,3494556,1,95,22,3494557,1,96,22,3494622,1,97,22,3494623,1,98,23,6482227,1,102,23,6433117,1,101,23,6989117,1,103,23,6989119,1,105,23,6989118,1,104,23,7243449,1,106,23,7243512,1,107,24,13978233,1,111,24,12964453,1,109,24,12866232,1,108,24,14486897,1,113,24,13978232,1,110,24,14486896,1,112,24,14487026,1,114,24,14487027,1,115,25,25732598,1,225,25,25732597,1,189,25,25732596,1,188,25,25732595,1,203,25,25732594,1,202,25,25732593,1,197,25,25732592,1,207,25,25732591,1,169,25,25732590,1,223,25,25732589,1,159,25,25732522,1,235,25,25732579,1,152,25,25732575,1,192,25,25732489,1,179,25,25732573,1,201,25,25732472,1,172,25,25732576,1,149,25,25732488,1,178,25,25732566,1,120,25,25732571,1,219,25,25732577,1,150,25,25732487,1,127,25,25732506,1,211,25,25732548,1,125,25,25732588,1,158,25,25732486,1,247,25,25732467,1,238,25,25732508,1,163,25,25732552,1,228,25,25732603,1,183,25,25732513,1,217,25,25732587,1,168,25,25732520,1,122,25,25732484,1,128,25,25732562,1,249,25,25732505,1,187,25,25732504,1,186,25,25732483,1,136,25,25928905,1,181,25,25732560,1,255,25,25732500,1,230,25,25732482,1,135,25,25732555,1,233,25,25732568,1,222,25,25732583,1,145,25,25732481,1,134,25,25732586,1,167,25,25732521,1,248,25,25732518,1,209,25,25732480,1,243,25,25732512,1,216,25,25732509,1,164,25,25732547,1,140,25,25732479,1,157,25,25732544,1,239,25,25732574,1,191,25,25732564,1,251,25,25732478,1,156,25,25732546,1,139,25,25732498,1,242,25,25732557,1,133,25,25732477,1,162,25,25732515,1,213,25,25732584,1,165,25,25732514,1,212,25,25732476,1,227,25,25732494,1,198,25,25732531,1,236,25,25732530,1,234,25,25732529,1,117,25,25732528,1,215,25,25732527,1,124,25,25732526,1,123,25,25732525,1,254,25,25732524,1,253,25,25732523,1,148,25,25732570,1,218,25,25732580,1,146,25,25732581,1,147,25,25732569,1,224,25,25732533,1,143,25,25732540,1,184,25,25732541,1,185,25,25732585,1,166,25,25732556,1,132,25,25732485,1,129,25,25732563,1,250,25,25732578,1,151,25,25732501,1,119,25,25732502,1,193,25,25732536,1,176,25,25732496,1,245,25,25732553,1,229,25,25732516,1,206,25,25732582,1,144,25,25732517,1,208,25,25732558,1,137,25,25732543,1,241,25,25732466,1,237,25,25732507,1,190,25,25732542,1,240,25,25732551,1,131,25,25732554,1,232,25,25732565,1,252,25,25732475,1,171,25,25732493,1,205,25,25732492,1,204,25,25732491,1,118,25,25732490,1,214,25,25928904,1,180,25,25732549,1,126,25,25732602,1,182,25,25732539,1,175,25,25732545,1,141,25,25732559,1,138,25,25732537,1,177,25,25732534,1,153,25,25732503,1,194,25,25732606,1,160,25,25732567,1,121,25,25732538,1,174,25,25732497,1,246,25,25732550,1,130,25,25732572,1,200,25,25732474,1,170,25,25732511,1,221,25,25732601,1,196,25,25732532,1,142,25,25732519,1,210,25,25732495,1,199,25,25732605,1,155,25,25732535,1,154,25,25732499,1,244,25,25732510,1,220,25,25732600,1,195,25,25732607,1,161,25,25732604,1,231,25,25732473,1,173,25,25732599,1,226,26,51465122,1,116,26,51465123,0,1],o=[3,3,3,3,2,2,2,1,1,1];function a(t){var e=t[1],n=t[0][e>>>3]>>>7-(7&e)&1;return t[1]++,n}function s(t,n){if(null==e){e={};for(var r=0;r<i.length;r+=4)e[i[r+1]]=i.slice(r,r+4)}for(var o=a(t),s=e[o];null==s;)o=o<<1|a(t),s=e[o];var u=s[3];0!=u&&(u=0==a(t)?u:-u),n[0]=s[2],n[1]=u}function u(t,e){for(var n=0;n<e;n++)1&~t||t++,t>>>=1;return t}function l(t,e){return t>>e}function c(t,e,n,r,i,o){e[n]=l(l(11*t[i]-4*t[i+o]+t[i+o+o]+4,3)+t[r],1),e[n+o]=l(l(5*t[i]+4*t[i+o]-t[i+o+o]+4,3)-t[r],1)}function h(t,e,n,r,i,o){var a=t[i-o]-t[i+o],s=t[i],u=t[r];e[n]=l(l(a+4,3)+s+u,1),e[n+o]=l(l(4-a,3)+s-u,1)}function f(t,e,n,r,i,o){e[n]=l(l(5*t[i]+4*t[i-o]-t[i-o-o]+4,3)+t[r],1),e[n+o]=l(l(11*t[i]-4*t[i-o]+t[i-o-o]+4,3)-t[r],1)}function d(t){return t=r[t=t<0?0:t>4095?4095:t]>>>2}return function(e,i,a,l,p,m){l=new Uint16Array(l.buffer),Date.now();var v,g,y,b,_,w,x,k,S=t._binBE,C=i+a;i+=4;for(var E=1==m[0];i<C;){var D=S.readShort(e,i),A=S.readUshort(e,i+2);if(i+=4,12==D)j=A;else if(20==D)v=A;else if(21==D)g=A;else if(48==D)y=A;else if(53==D)b=A;else if(35==D)A;else if(62==D)_=A;else if(101==D)A;else if(109==D)w=A;else if(84==D)A;else if(106==D)A;else if(107==D)A;else if(108==D)A;else if(102==D)A;else if(104==D)et=A;else if(105==D)A;else{var O=D<0?-D:D,M=65280&O,T=0;if(24576&O&&(8192&O?(T=65535&A,T+=(255&O)<<16):T=65535&A),24576&~O){if(16388==O)i+=4*T;else if(8192!=M&&8448!=M&&9216!=M)throw O.toString(16)}else{if(null==x){x=[];for(var I=0;I<4;I++)x[I]=new Int16Array((v>>>1)*(g>>>1));k=new Int16Array((v>>>1)*(g>>>1)),n=new Int16Array(1024);for(I=0;I<1024;I++){var P=I-512,F=Math.abs(P),j=Math.floor(768*F*F*F/16581375)+F;n[I]=Math.sign(P)*j}r=new Uint16Array(4096);for(I=0;I<4096;I++){var N=I,L=65535*(Math.pow(113,N/4095)-1)/112;r[I]=Math.min(L,65535)}}var B=x[_],$=u(v,1+o[y]),z=u(g,1+o[y]);if(0==y)for(var R=0;R<z;R++)for(var U=0;U<$;U++){var V=i+2*(R*$+U);B[R*(v>>>1)+U]=e[V]<<8|e[V+1]}else{var H=[e,8*i],G=[],q=0,W=$*z,Y=[0,0],Z=0;for(A=0;q<W;)for(s(H,Y),Z=Y[0],A=Y[1];Z>0;)G[q++]=A,Z--;var K=(y-1)%3,X=1!=K?$:0,J=0!=K?z:0;for(R=0;R<z;R++){var Q=(R+J)*(v>>>1)+X,tt=R*$;for(U=0;U<$;U++)B[Q+U]=n[G[tt+U]+512]*b}if(2==K){var et=v>>>1,nt=2*$,rt=2*z;for(R=0;R<z;R++)for(U=0;U<nt;U++){I=2*R*et+U;var it=z*et+(at=R*et+U);0==R?c(B,k,I,it,at,et):R==z-1?f(B,k,I,it,at,et):h(B,k,I,it,at,et)}var ot=B;B=k,k=ot;for(R=0;R<rt;R++)for(U=0;U<$;U++){var at;I=R*et+2*U,it=$+(at=R*et+U);0==U?c(B,k,I,it,at,1):U==$-1?f(B,k,I,it,at,1):h(B,k,I,it,at,1)}ot=B;B=k,k=ot;for(var st=[],ut=2-~~((y-1)/3),lt=0;lt<3;lt++)st[lt]=w>>14-2*lt&3;var ct=st[ut];if(0!=ct)for(R=0;R<rt;R++)for(U=0;U<nt;U++){B[I=R*et+U]=B[I]<<ct}}}if(9==y&&3==_){var ht=x[0],ft=x[1],dt=x[2],pt=x[3];for(R=0;R<g;R+=2)for(U=0;U<v;U+=2){var mt=R*v+U,vt=ht[V=(R>>>1)*(v>>>1)+(U>>>1)],gt=ft[V]-2048,yt=dt[V]-2048,bt=pt[V]-2048,_t=(gt<<1)+vt,wt=(yt<<1)+vt,xt=vt+bt,kt=vt-bt;E?(l[mt]=d(xt),l[mt+1]=d(wt),l[mt+v]=d(_t),l[mt+v+1]=d(kt)):(l[mt]=d(_t),l[mt+1]=d(xt),l[mt+v]=d(kt),l[mt+v+1]=d(wt))}}i+=4*T}}}Date.now()}}(),t.decode._decodeLogLuv32=function(t,e,n,r,i,o){for(var a=t.width,s=4*a,u=0,l=new Uint8Array(s);u<r;){for(var c=0;c<s;){var h=e[n+u];if(u++,h<128){for(var f=0;f<h;f++)l[c+f]=e[n+u+f];c+=h,u+=h}else{h-=126;for(f=0;f<h;f++)l[c+f]=e[n+u];c+=h,u++}}for(var d=0;d<a;d++)i[o+0]=l[d],i[o+1]=l[d+a],i[o+2]=l[d+2*a],i[o+4]=l[d+3*a],o+=6}},t.decode._ljpeg_diff=function(e,n,r){var i,o,a=t.decode._getbithuff;return i=a(e,n,r[0],r),(o=a(e,n,i,0))&1<<i-1||(o-=(1<<i)-1),o},t.decode._decodeARW=function(e,n,r,i,o,a){var s=e.t256[0],u=e.t257[0],l=e.t258[0],c=e.isLE?t._binLE:t._binBE;if(s*u==i||s*u*1.5==i)if(s*u*1.5!=i){var h,f,d,p,m,v,g,y,b=new Uint16Array(16),_=new Uint8Array(s+1);for(A=0;A<u;A++){for(var w=0;w<s;w++)_[w]=n[r++];for(y=0,D=0;D<s-30;y+=16){for(f=2047&(h=c.readUint(_,y)),d=2047&h>>>11,p=15&h>>>22,m=15&h>>>26,v=0;v<4&&128<<v<=f-d;v++);for(g=30,x=0;x<16;x++)x==p?b[x]=f:x==m?b[x]=d:(b[x]=((c.readUshort(_,y+(g>>3))>>>(7&g)&127)<<v)+d,b[x]>2047&&(b[x]=2047),g+=7);for(x=0;x<16;x++,D+=2){N=b[x]<<1;t.decode._putsF(o,(A*s+D)*l,N<<16-l)}D-=1&D?1:31}}}else for(var x=0;x<i;x+=3){var k=n[r+x+0],S=n[r+x+1],C=n[r+x+2];o[a+x]=S<<4|k>>>4,o[a+x+1]=k<<4|C>>>4,o[a+x+2]=C<<4|S>>>4}else{u+=8;var E,D,A,O=[r,0,0,0],M=new Uint16Array(32770),T=[3857,3856,3599,3342,3085,2828,2571,2314,2057,1800,1543,1286,1029,772,771,768,514,513],I=0,P=t.decode._ljpeg_diff;for(M[0]=15,E=x=0;x<18;x++)for(var F=32768>>>(T[x]>>>8),j=0;j<F;j++)M[++E]=T[x];for(D=s;D--;)for(A=0;A<u+1;A+=2)if(A==u&&(A=1),I+=P(n,O,M),A<u){var N=4095&I;t.decode._putsF(o,(A*s+D)*l,N<<16-l)}}},t.decode._decodeNikon=function(e,n,r,i,o,a,s){var u=[[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,5,4,3,6,2,7,1,0,8,9,11,10,12],[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,57,90,56,39,22,5,4,3,2,1,0,11,12,12],[0,0,1,4,2,3,1,2,0,0,0,0,0,0,0,0,0,5,4,6,3,7,2,8,1,9,0,10,11,12],[0,0,1,4,3,1,1,1,1,1,2,0,0,0,0,0,0,5,6,4,7,8,3,9,2,1,0,10,11,12,13,14],[0,0,1,5,1,1,1,1,1,1,1,2,0,0,0,0,0,8,92,75,58,41,7,6,5,4,3,2,1,0,13,14],[0,0,1,4,2,2,3,1,2,0,0,0,0,0,0,0,0,7,6,8,5,9,4,10,3,11,12,2,0,1,13,14]],l=e.t256[0],c=e.t257[0],h=e.t258[0],f=0,d=0,p=t.decode._make_decoder,m=t.decode._getbithuff,v=n[0].exifIFD.makerNote,g=v.t150?v.t150:v.t140,y=0,b=g[y++],_=g[y++];73!=b&&88!=_||(y+=2110),70==b&&(f=2),14==h&&(f+=3);for(var w=[[0,0],[0,0]],x=e.isLE?t._binLE:t._binBE,k=0;k<2;k++)for(var S=0;S<2;S++)w[k][S]=x.readShort(g,y),y+=2;var C,E,D,A,O,M=1<<h&32767,T=0,I=x.readShort(g,y);y+=2,I>1&&(T=Math.floor(M/(I-1))),68==b&&32==_&&T>0&&(d=x.readShort(g,562));var P=[0,0],F=p(u[f]),j=[i,0,0,0];for(C=0;C<c;C++)for(d&&C==d&&(F=p(u[f+1])),E=0;E<l;E++){k=m(r,j,F[0],F),(O=1+(m(r,j,(D=15&k)-(A=k>>>4),0)<<1)<<A>>>1)&1<<D-1||(O-=(1<<D)-(0==A?1:0)),E<2?P[E]=w[1&C][E]+=O:P[1&E]+=O;var N=Math.min(Math.max(P[1&E],0),(1<<h)-1),L=(C*l+E)*h;t.decode._putsF(a,L,N<<16-h)}},t.decode._putsF=function(t,e,n){n<<=8-(7&e);var r=e>>>3;t[r]|=n>>>16,t[r+1]|=n>>>8,t[r+2]|=n},t.decode._getbithuff=function(e,n,r,i){t.decode._get_byte;var o,a=n[0],s=n[1],u=n[2],l=n[3];if(0==r||u<0)return 0;for(;!l&&u<r&&-1!=(o=e[a++])&&!(l=0);)s=(s<<8)+o,u+=8;if(o=s<<32-u>>>32-r,i?(u-=i[o+1]>>>8,o=255&i[o+1]):u-=r,u<0)throw\"e\";return n[0]=a,n[1]=s,n[2]=u,n[3]=l,o},t.decode._make_decoder=function(t){var e,n,r,i,o,a=[];for(e=16;0!=e&&!t[e];e--);var s=17;for(a[0]=e,r=n=1;n<=e;n++)for(i=0;i<t[n];i++,++s)for(o=0;o<1<<e-n;o++)r<=1<<e&&(a[r++]=n<<8|t[s]);return a},t.decode._decodeNewJPEG=function(e,n,r,i,o,a){i=Math.min(i,n.length-r);var s=e.t347,u=s?s.length:0,l=new Uint8Array(u+i);if(s){for(var c=0,h=0;h<u-1&&(255!=s[h]||217!=s[h+1]);h++)l[c++]=s[h];var f=n[r],d=n[r+1];255==f&&216==d||(l[c++]=f,l[c++]=d);for(h=2;h<i;h++)l[c++]=n[r+h]}else for(h=0;h<i;h++)l[h]=n[r+h];if(32803==e.t262[0]||7==e.t259[0]&&34892==e.t262[0]){var p=e.t258[0],m=t.LosslessJpegDecode(l),v=m.length;if(16==p)if(e.isLE)for(h=0;h<v;h++)o[a+(h<<1)]=255&m[h],o[a+(h<<1)+1]=m[h]>>>8;else for(h=0;h<v;h++)o[a+(h<<1)]=m[h]>>>8,o[a+(h<<1)+1]=255&m[h];else if(14==p||12==p||10==p){var g=16-p;for(h=0;h<v;h++)t.decode._putsF(o,h*p,m[h]<<g)}else{if(8!=p)throw new Error(\"unsupported bit depth \"+p);for(h=0;h<v;h++)o[a+h]=m[h]}}else{var y=new t.JpegDecoder;y.parse(l);var b=y.getData({width:y.width,height:y.height,forceRGB:!0,isSourcePDF:!1});for(h=0;h<b.length;h++)o[a+h]=b[h]}6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodeOldJPEGInit=function(t,e,n,r){var i,a,s,u,l,c=216,h=0,f=0,d=!1,p=t.t513,m=p?p[0]:0,v=t.t514,g=v?v[0]:0,y=t.t324||t.t273||p,b=t.t530,_=0,w=0,x=t.t277?t.t277[0]:1,k=t.t515;if(y&&(f=y[0],d=y.length>1),!d){if(255==e[n]&&e[n+1]==c)return{jpegOffset:n};if(null!=p&&(255==e[n+m]&&e[n+m+1]==c?h=n+m:o(\"JPEGInterchangeFormat does not point to SOI\"),null==v?o(\"JPEGInterchangeFormatLength field is missing\"):(m>=f||m+g<=f)&&o(\"JPEGInterchangeFormatLength field value is invalid\"),null!=h))return{jpegOffset:h}}if(null!=b&&(_=b[0],w=b[1]),null!=p&&null!=v)if(g>=2&&m+g<=f){for(i=255==e[n+m+g-2]&&e[n+m+g-1]==c?new Uint8Array(g-2):new Uint8Array(g),s=0;s<i.length;s++)i[s]=e[n+m+s];o(\"Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables\")}else o(\"JPEGInterchangeFormat+JPEGInterchangeFormatLength > offset to first strip or tile\");if(null==i){var S=0,C=[];C[S++]=255,C[S++]=c;var E=t.t519;if(null==E)throw new Error(\"JPEGQTables tag is missing\");for(s=0;s<E.length;s++)for(C[S++]=255,C[S++]=219,C[S++]=0,C[S++]=67,C[S++]=s,u=0;u<64;u++)C[S++]=e[n+E[s]+u];for(l=0;l<2;l++){var D=t[0==l?\"t520\":\"t521\"];if(null==D)throw new Error((0==l?\"JPEGDCTables\":\"JPEGACTables\")+\" tag is missing\");for(s=0;s<D.length;s++){C[S++]=255,C[S++]=196;var A=19;for(u=0;u<16;u++)A+=e[n+D[s]+u];for(C[S++]=A>>>8,C[S++]=255&A,C[S++]=s|l<<4,u=0;u<16;u++)C[S++]=e[n+D[s]+u];for(u=0;u<A;u++)C[S++]=e[n+D[s]+16+u]}}if(C[S++]=255,C[S++]=192,C[S++]=0,C[S++]=8+3*x,C[S++]=8,C[S++]=t.height>>>8&255,C[S++]=255&t.height,C[S++]=t.width>>>8&255,C[S++]=255&t.width,C[S++]=x,1==x)C[S++]=1,C[S++]=17,C[S++]=0;else for(s=0;s<3;s++)C[S++]=s+1,C[S++]=0!=s?17:(15&_)<<4|15&w,C[S++]=s;null!=k&&0!=k[0]&&(C[S++]=255,C[S++]=221,C[S++]=0,C[S++]=4,C[S++]=k[0]>>>8&255,C[S++]=255&k[0]),i=new Uint8Array(C)}var O=-1;for(s=0;s<i.length-1;){if(255==i[s]&&192==i[s+1]){O=s;break}s++}if(-1==O){var M=new Uint8Array(i.length+10+3*x);M.set(i);var T=i.length;if(O=i.length,(i=M)[T++]=255,i[T++]=192,i[T++]=0,i[T++]=8+3*x,i[T++]=8,i[T++]=t.height>>>8&255,i[T++]=255&t.height,i[T++]=t.width>>>8&255,i[T++]=255&t.width,i[T++]=x,1==x)i[T++]=1,i[T++]=17,i[T++]=0;else for(s=0;s<3;s++)i[T++]=s+1,i[T++]=0!=s?17:(15&_)<<4|15&w,i[T++]=s}if(255==e[f]&&218==e[f+1]){var I=e[f+2]<<8|e[f+3];for((a=new Uint8Array(I+2))[0]=e[f],a[1]=e[f+1],a[2]=e[f+2],a[3]=e[f+3],s=0;s<I-2;s++)a[s+4]=e[f+s+4]}else{var P=0;if((a=new Uint8Array(8+2*x))[P++]=255,a[P++]=218,a[P++]=0,a[P++]=6+2*x,a[P++]=x,1==x)a[P++]=1,a[P++]=0;else for(s=0;s<3;s++)a[P++]=s+1,a[P++]=s<<4|s;a[P++]=0,a[P++]=63,a[P++]=0}return{jpegOffset:n,tables:i,sosMarker:a,sofPosition:O}},t.decode._decodeOldJPEG=function(e,n,r,i,o,a){var s,u,l,c,h=t.decode._decodeOldJPEGInit(e,n,r,i);if(null!=h.jpegOffset)for(s=r+i-h.jpegOffset,l=new Uint8Array(s),p=0;p<s;p++)l[p]=n[h.jpegOffset+p];else{for(u=h.tables.length,(l=new Uint8Array(u+h.sosMarker.length+i+2)).set(h.tables),c=u,l[h.sofPosition+5]=e.height>>>8&255,l[h.sofPosition+6]=255&e.height,l[h.sofPosition+7]=e.width>>>8&255,l[h.sofPosition+8]=255&e.width,255==n[r]&&n[r+1]==SOS||(l.set(h.sosMarker,c),c+=sosMarker.length),p=0;p<i;p++)l[c++]=n[r+p];l[c++]=255,l[c++]=EOI}var f=new t.JpegDecoder;f.parse(l);for(var d=f.getData({width:f.width,height:f.height,forceRGB:!0,isSourcePDF:!1}),p=0;p<d.length;p++)o[a+p]=d[p];e.t262&&6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodePackBits=function(t,e,n,r,i){for(var o=new Int8Array(t.buffer),a=new Int8Array(r.buffer),s=e+n;e<s;){var u=o[e];if(e++,u>=0&&u<128)for(var l=0;l<u+1;l++)a[i]=o[e],i++,e++;if(u>=-127&&u<0){for(l=0;l<1-u;l++)a[i]=o[e],i++;e++}}return i},t.decode._decodeThunder=function(t,e,n,r,i){for(var o=[0,1,0,-1],a=[0,1,2,3,0,-3,-2,-1],s=e+n,u=2*i,l=0;e<s;){var c=t[e],h=c>>>6,f=63&c;if(e++,3==h&&(l=15&f,r[u>>>1]|=l<<4*(1-u&1),u++),0==h)for(var d=0;d<f;d++)r[u>>>1]|=l<<4*(1-u&1),u++;if(2==h)for(d=0;d<2;d++){4!=(p=f>>>3*(1-d)&7)&&(l+=a[p],r[u>>>1]|=l<<4*(1-u&1),u++)}if(1==h)for(d=0;d<3;d++){var p;2!=(p=f>>>2*(2-d)&3)&&(l+=o[p],r[u>>>1]|=l<<4*(1-u&1),u++)}}},t.decode._dmap={1:0,\"011\":1,\"000011\":2,\"0000011\":3,\"010\":-1,\"000010\":-2,\"0000010\":-3},t.decode._lens=function(){var t=function(t,e,n,r){for(var i=0;i<e.length;i++)t[e[i]]=n+i*r},e=\"00110101,000111,0111,1000,1011,1100,1110,1111,10011,10100,00111,01000,001000,000011,110100,110101,101010,101011,0100111,0001100,0001000,0010111,0000011,0000100,0101000,0101011,0010011,0100100,0011000,00000010,00000011,00011010,00011011,00010010,00010011,00010100,00010101,00010110,00010111,00101000,00101001,00101010,00101011,00101100,00101101,00000100,00000101,00001010,00001011,01010010,01010011,01010100,01010101,00100100,00100101,01011000,01011001,01011010,01011011,01001010,01001011,00110010,00110011,00110100\",n=\"0000110111,010,11,10,011,0011,0010,00011,000101,000100,0000100,0000101,0000111,00000100,00000111,000011000,0000010111,0000011000,0000001000,00001100111,00001101000,00001101100,00000110111,00000101000,00000010111,00000011000,000011001010,000011001011,000011001100,000011001101,000001101000,000001101001,000001101010,000001101011,000011010010,000011010011,000011010100,000011010101,000011010110,000011010111,000001101100,000001101101,000011011010,000011011011,000001010100,000001010101,000001010110,000001010111,000001100100,000001100101,000001010010,000001010011,000000100100,000000110111,000000111000,000000100111,000000101000,000001011000,000001011001,000000101011,000000101100,000001011010,000001100110,000001100111\",r=\"11011,10010,010111,0110111,00110110,00110111,01100100,01100101,01101000,01100111,011001100,011001101,011010010,011010011,011010100,011010101,011010110,011010111,011011000,011011001,011011010,011011011,010011000,010011001,010011010,011000,010011011\",i=\"0000001111,000011001000,000011001001,000001011011,000000110011,000000110100,000000110101,0000001101100,0000001101101,0000001001010,0000001001011,0000001001100,0000001001101,0000001110010,0000001110011,0000001110100,0000001110101,0000001110110,0000001110111,0000001010010,0000001010011,0000001010100,0000001010101,0000001011010,0000001011011,0000001100100,0000001100101\",o=\"00000001000,00000001100,00000001101,000000010010,000000010011,000000010100,000000010101,000000010110,000000010111,000000011100,000000011101,000000011110,000000011111\";e=e.split(\",\"),n=n.split(\",\"),r=r.split(\",\"),i=i.split(\",\"),o=o.split(\",\");var a={},s={};return t(a,e,0,1),t(a,r,64,64),t(a,o,1792,64),t(s,n,0,1),t(s,i,64,64),t(s,o,1792,64),[a,s]}(),t.decode._decodeG4=function(e,n,r,i,o,a,s){for(var u=t.decode,l=n<<3,c=0,h=\"\",f=[],d=[],p=0;p<a;p++)d.push(0);d=u._makeDiff(d);for(var m=0,v=0,g=0,y=0,b=0,_=0,w=\"\",x=0,k=8*Math.ceil(a/8);l>>>3<n+r;){g=u._findDiff(d,m+(0==m?0:1),1-b),y=u._findDiff(d,g,b);var S=0;if(1==s&&(S=e[l>>>3]>>>7-(7&l)&1),2==s&&(S=e[l>>>3]>>>(7&l)&1),l++,h+=S,\"H\"==w){if(null!=u._lens[b][h]){var C=u._lens[b][h];h=\"\",c+=C,C<64&&(u._addNtimes(f,c,b),m+=c,b=1-b,c=0,0==--x&&(w=\"\"))}}else\"0001\"==h&&(h=\"\",u._addNtimes(f,y-m,b),m=y),\"001\"==h&&(h=\"\",w=\"H\",x=2),null!=u._dmap[h]&&(v=g+u._dmap[h],u._addNtimes(f,v-m,b),m=v,h=\"\",b=1-b);f.length==a&&\"\"==w&&(u._writeBits(f,i,8*o+_*k),b=0,_++,m=0,d=u._makeDiff(f),f=[])}},t.decode._findDiff=function(t,e,n){for(var r=0;r<t.length;r+=2)if(t[r]>=e&&t[r+1]==n)return t[r]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var n=1;n<t.length;n++)t[n-1]!=t[n]&&e.push(n,t[n]);return e.push(t.length,0,t.length,1),e},t.decode._decodeG2=function(e,n,r,i,o,a,s){for(var u=t.decode,l=n<<3,c=0,h=\"\",f=[],d=0,p=0,m=8*Math.ceil(a/8);l>>>3<n+r;){var v=0;1==s&&(v=e[l>>>3]>>>7-(7&l)&1),2==s&&(v=e[l>>>3]>>>(7&l)&1),l++,h+=v,null!=(c=u._lens[d][h])&&(u._addNtimes(f,c,d),h=\"\",c<64&&(d=1-d),f.length==a&&(u._writeBits(f,i,8*o+p*m),f=[],p++,d=0,7&l&&(l+=8-(7&l)),c>=64&&(l+=8)))}},t.decode._decodeG3=function(e,n,r,i,o,a,s,u){for(var l=t.decode,c=n<<3,h=0,f=\"\",d=[],p=[],m=0;m<a;m++)d.push(0);for(var v=0,g=0,y=0,b=0,_=0,w=-1,x=\"\",k=0,S=!0,C=8*Math.ceil(a/8);c>>>3<n+r;){y=l._findDiff(p,v+(0==v?0:1),1-_),b=l._findDiff(p,y,_);var E=0;if(1==s&&(E=e[c>>>3]>>>7-(7&c)&1),2==s&&(E=e[c>>>3]>>>(7&c)&1),c++,f+=E,S){if(null!=l._lens[_][f]){var D=l._lens[_][f];f=\"\",h+=D,D<64&&(l._addNtimes(d,h,_),_=1-_,h=0)}}else if(\"H\"==x){if(null!=l._lens[_][f]){D=l._lens[_][f];f=\"\",h+=D,D<64&&(l._addNtimes(d,h,_),v+=h,_=1-_,h=0,0==--k&&(x=\"\"))}}else\"0001\"==f&&(f=\"\",l._addNtimes(d,b-v,_),v=b),\"001\"==f&&(f=\"\",x=\"H\",k=2),null!=l._dmap[f]&&(g=y+l._dmap[f],l._addNtimes(d,g-v,_),v=g,f=\"\",_=1-_);f.endsWith(\"000000000001\")&&(w>=0&&l._writeBits(d,i,8*o+w*C),u&&(1==s&&(S=1==(e[c>>>3]>>>7-(7&c)&1)),2==s&&(S=1==(e[c>>>3]>>>(7&c)&1)),c++),f=\"\",_=0,w++,v=0,p=l._makeDiff(d),d=[])}d.length==a&&l._writeBits(d,i,8*o+w*C)},t.decode._addNtimes=function(t,e,n){for(var r=0;r<e;r++)t.push(n)},t.decode._writeBits=function(t,e,n){for(var r=0;r<t.length;r++)e[n+r>>>3]|=t[r]<<7-(n+r&7)},t.decode._decodeLZW=t.decode._decodeLZW=(u=0,l=0,c=0,h=0,f=function(){var t=n>>>3,e=(i[t]<<16|i[t+1]<<8|i[t+2])>>>24-(7&n)-l&(1<<l)-1;return n+=l,e},d=new Uint32Array(16384),p=0,m=function(t){l=t+1,u=h+1},v=function(t){for(var e=t<<2,n=d[e+2],r=s+n-1;65535!=e;)a[r--]=d[e],e=d[e+1];s+=n},g=function(t,e){var n=u<<2,r=t<<2;d[n]=d[3+(e<<2)],d[n+1]=r,d[n+2]=d[r+2]+1,d[n+3]=d[r+3],1+ ++u==1<<l&&12!=l&&l++},function(t,e,r,o,l,y){n=e<<3,i=t,a=o,s=l;var b=e+r<<3,_=0,w=0;for(function(t){if(t!=p){p=t,h=1+(c=1<<t);for(var e=0;e<h+1;e++)d[4*e]=d[4*e+3]=e,d[4*e+1]=65535,d[4*e+2]=1}}(y),m(y);n<b&&(_=f())!=h;){if(_==c){if(m(y),(_=f())==h)break;v(_)}else _<u?(v(_),g(w,_)):(g(w,w),v(u-1));w=_}return s}),t.tags={},t._types=function(){var t=new Array(250);t.fill(0);return{basic:{main:t=t.concat([0,0,0,0,4,3,3,3,3,3,0,0,3,0,0,0,3,0,0,2,2,2,2,4,3,0,0,3,4,4,3,3,5,5,3,2,5,5,0,0,0,0,4,4,0,0,3,3,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,2,2,3,5,5,3,0,3,3,4,4,4,3,4,0,0,0,0,0,0,0,0,0,3,3,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),rest:{33432:2,33434:5,33437:5,34665:4,34850:3,34853:4,34855:3,34864:3,34866:4,36864:7,36867:2,36868:2,37121:7,37377:10,37378:5,37380:10,37381:5,37383:3,37384:3,37385:3,37386:5,37510:7,37520:2,37521:2,37522:2,40960:7,40961:3,40962:4,40963:4,40965:4,41486:5,41487:5,41488:3,41985:3,41986:3,41987:3,41988:5,41989:3,41990:3,41993:3,41994:3,41995:7,41996:3,42032:2,42033:2,42034:5,42036:2,42037:2,59932:7}},gps:{main:[1,2,5,2,5,1,5,5,0,9],rest:{18:2,29:2}}}}(),t._readIFD=function(e,n,r,i,a,s){var u=e.readUshort(n,r);r+=2;var l={};s.debug&&o(\"   \".repeat(a),i.length-1,\">>>----------------\");for(var c=0;c<u;c++){var h=e.readUshort(n,r);r+=2;var f=e.readUshort(n,r);r+=2;var d=e.readUint(n,r);r+=4;var p=e.readUint(n,r);r+=4;var m=[];if(1==f||7==f){var v=d<5?r-4:p;v+d>n.buffer.byteLength&&(d=n.buffer.byteLength-v),m=new Uint8Array(n.buffer,v,d)}if(2==f){var g=d<5?r-4:p,y=n[g],b=Math.max(0,Math.min(d-1,n.length-g));y<128||0==b?m.push(e.readASCII(n,g,b)):m=new Uint8Array(n.buffer,g,b)}if(3==f)for(var _=0;_<d;_++)m.push(e.readUshort(n,(d<3?r-4:p)+2*_));if(4==f||13==f)for(_=0;_<d;_++)m.push(e.readUint(n,(d<2?r-4:p)+4*_));if(5==f||10==f){var w=5==f?e.readUint:e.readInt;for(_=0;_<d;_++)m.push([w(n,p+8*_),w(n,p+8*_+4)])}if(8==f)for(_=0;_<d;_++)m.push(e.readShort(n,(d<3?r-4:p)+2*_));if(9==f)for(_=0;_<d;_++)m.push(e.readInt(n,(d<2?r-4:p)+4*_));if(11==f)for(_=0;_<d;_++)m.push(e.readFloat(n,p+4*_));if(12==f)for(_=0;_<d;_++)m.push(e.readDouble(n,p+8*_));if(0==d||0!=m.length){if(s.debug&&o(\"   \".repeat(a),h,f,t.tags[h],m),l[\"t\"+h]=m,330==h&&l.t272&&\"DSLR-A100\"==l.t272[0]);else if(330==h||34665==h||34853==h||50740==h&&e.readUshort(n,e.readUint(m,0))<300||61440==h){var x=50740==h?[e.readUint(m,0)]:m,k=[];for(_=0;_<x.length;_++)t._readIFD(e,n,x[_],k,a+1,s);330==h&&(l.subIFD=k),34665==h&&(l.exifIFD=k[0]),34853==h&&(l.gpsiIFD=k[0]),50740==h&&(l.dngPrvt=k[0]),61440==h&&(l.fujiIFD=k[0])}if(37500==h&&s.parseMN){var S=m;if(\"Nikon\"==e.readASCII(S,0,5))l.makerNote=t.decode(S.slice(10).buffer)[0];else if(\"OLYMP\"==e.readASCII(S,0,5)||\"OM SYSTEM\"==e.readASCII(S,0,9)){var C=[8208,8224,8240,8256,8272],E=[];t._readIFD(e,S,77==S[1]?16:85==S[5]?12:8,E,a+1,s);var D=l.makerNote=E.pop();for(_=0;_<C.length;_++){var A=\"t\"+C[_];null!=D[A]&&(t._readIFD(e,S,D[A][0],E,a+1,s),D[A]=E.pop())}D.t12288&&(t._readIFD(e,D.t12288,0,E,a+1,s),D.t12288=E.pop())}else if(e.readUshort(n,p)<300&&e.readUshort(n,p+4)<=12){E=[];t._readIFD(e,n,p,E,a+1,s),l.makerNote=E[0]}}}else if(o(h,\"unknown TIFF tag type: \",f,\"num:\",d),0==c)return}return i.push(l),s.debug&&o(\"   \".repeat(a),\"<<<---------------\"),r},t._writeIFD=function(e,n,r,i,o){var a=Object.keys(o),s=a.length;o.exifIFD&&s--,o.gpsiIFD&&s--,e.writeUshort(r,i,s);for(var u=(i+=2)+12*s+4,l=0;l<a.length;l++){var c=a[l];if(\"t34665\"!=c&&\"t34853\"!=c){\"exifIFD\"==c&&(c=\"t34665\"),\"gpsiIFD\"==c&&(c=\"t34853\");var h=parseInt(c.slice(1)),f=n.main[h];if(null==f&&(f=n.rest[h]),null==f||0==f)throw new Error(\"unknown type of tag: \"+h);var d=o[c];if(34665==h)d=[u],u=t._writeIFD(e,n,r,u,o.exifIFD)[1];if(34853==h)d=[u],u=t._writeIFD(e,t._types.gps,r,u,o.gpsiIFD)[1];2==f&&(d=d[0]+\"\\0\");var p=d.length;e.writeUshort(r,i,h),i+=2,e.writeUshort(r,i,f),i+=2,e.writeUint(r,i,p);var m=[-1,1,1,2,4,8,0,1,0,4,8,0,8][f]*p,v=i+=4;if(m>4&&(e.writeUint(r,i,u),v=u),1==f||7==f)for(var g=0;g<p;g++)r[v+g]=d[g];else if(2==f)e.writeASCII(r,v,d);else if(3==f)for(g=0;g<p;g++)e.writeUshort(r,v+2*g,d[g]);else if(4==f)for(g=0;g<p;g++)e.writeUint(r,v+4*g,d[g]);else if(5==f||10==f){var y=5==f?e.writeUint:e.writeInt;for(g=0;g<p;g++){var b=d[g],_=b[0],w=b[1];if(null==_)throw\"e\";y(r,v+8*g,_),y(r,v+8*g+4,w)}}else if(9==f)for(g=0;g<p;g++)e.writeInt(r,v+4*g,d[g]);else{if(12!=f)throw f;for(g=0;g<p;g++)e.writeDouble(r,v+8*g,d[g])}m>4&&(u+=m+=1&m),i+=4}}return[i,u]},t.toRGBA8=function(t,e){function n(t){return t<.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}var r=t.width,i=t.height,a=r*i,s=t.data,u=new Uint8Array(4*a),l=t.t262?t.t262[0]:2,c=t.t258?Math.min(32,t.t258[0]):1;null==t.t262&&1==c&&(l=0);var h=t.t277?t.t277[0]:t.t258?t.t258.length:[1,1,3,1,1,4,3][l],f=t.t339?t.t339[0]:null;if(1==l&&32==c&&3!=f)throw\"e\";var d=Math.ceil(h*c*r/8);if(0==l){e=1/256;for(var p=0;p<i;p++){var m=p*d,v=p*r;if(1==c)for(var g=0;g<r;g++){var y=v+g<<2,b=s[m+(g>>3)]>>7-(7&g)&1;u[y]=u[y+1]=u[y+2]=255*(1-b),u[y+3]=255}if(4==c)for(g=0;g<r;g++){y=v+g<<2,b=s[m+(g>>1)]>>4-4*(1&g)&15;u[y]=u[y+1]=u[y+2]=17*(15-b),u[y+3]=255}if(8==c)for(g=0;g<r;g++){y=v+g<<2,b=s[m+g];u[y]=u[y+1]=u[y+2]=255-b,u[y+3]=255}if(16==c)for(g=0;g<r;g++){y=v+g<<2,b=s[(w=m+2*g)+1]<<8|s[w];u[y]=u[y+1]=u[y+2]=Math.min(255,255-~~(b*e)),u[y+3]=255}}}else if(1==l){null==e&&(e=1/256);var _=3&s.length?null:new Float32Array(s.buffer);for(p=0;p<i;p++){m=p*d,v=p*r;if(1==c)for(g=0;g<r;g++){y=v+g<<2,b=s[m+(g>>3)]>>7-(7&g)&1;u[y]=u[y+1]=u[y+2]=255*b,u[y+3]=255}if(2==c)for(g=0;g<r;g++){y=v+g<<2,b=s[m+(g>>2)]>>6-2*(3&g)&3;u[y]=u[y+1]=u[y+2]=85*b,u[y+3]=255}if(8==c)for(g=0;g<r;g++){y=v+g<<2,b=s[m+g*h];u[y]=u[y+1]=u[y+2]=b,u[y+3]=255}if(16==c)for(g=0;g<r;g++){y=v+g<<2,b=s[(w=m+2*g)+1]<<8|s[w];u[y]=u[y+1]=u[y+2]=Math.min(255,~~(b*e)),u[y+3]=255}if(32==c)for(g=0;g<r;g++){var w;y=v+g<<2,b=_[w=(m>>>2)+g];u[y]=u[y+1]=u[y+2]=~~(.5+255*b),u[y+3]=255}}}else if(2==l)if(8==c){if(1==h)for(g=0;g<a;g++)u[4*g]=u[4*g+1]=u[4*g+2]=s[g],u[4*g+3]=255;if(3==h)for(g=0;g<a;g++){var x=3*g;u[y=g<<2]=s[x],u[y+1]=s[x+1],u[y+2]=s[x+2],u[y+3]=255}if(h>=4)for(g=0;g<a;g++){x=g*h;u[y=g<<2]=s[x],u[y+1]=s[x+1],u[y+2]=s[x+2],u[y+3]=s[x+3]}}else if(16==c){if(4==h)for(g=0;g<a;g++){x=8*g+1;u[y=g<<2]=s[x],u[y+1]=s[x+2],u[y+2]=s[x+4],u[y+3]=s[x+6]}if(3==h)for(g=0;g<a;g++){x=6*g+1;u[y=g<<2]=s[x],u[y+1]=s[x+2],u[y+2]=s[x+4],u[y+3]=255}}else{if(32!=c)throw c;var k=new Float32Array(s.buffer),S=0;for(g=0;g<k.length;g++)S=Math.min(S,k[g]);if(S<0)for(g=0;g<s.length;g+=4){var C=s[g];s[g]=s[g+3],s[g+3]=C,C=s[g+1],s[g+1]=s[g+2],s[g+2]=C}var E=[];for(g=0;g<65536;g++)E.push(n(g/65535));for(g=0;g<k.length;g++){var D=Math.max(0,Math.min(1,k[g]));k[g]=E[~~(.5+65535*D)]}if(3==h)for(g=0;g<a;g++){x=3*g;u[y=g<<2]=~~(.5+255*k[x]),u[y+1]=~~(.5+255*k[x+1]),u[y+2]=~~(.5+255*k[x+2]),u[y+3]=255}else{if(4!=h)throw h;for(g=0;g<a;g++){x=4*g;u[y=g<<2]=~~(.5+255*k[x]),u[y+1]=~~(.5+255*k[x+1]),u[y+2]=~~(.5+255*k[x+2]),u[y+3]=~~(.5+255*k[x+3])}}}else if(3==l){var A=t.t320,O=1<<c,M=8==c&&h>1&&t.t338&&0!=t.t338[0];for(p=0;p<i;p++)for(var T=0;T<r;T++){y=(g=p*r+T)<<2;var I=0,P=p*d;if(1==c)I=s[P+(T>>>3)]>>>7-(7&T)&1;else if(2==c)I=s[P+(T>>>2)]>>>6-2*(3&T)&3;else if(4==c)I=s[P+(T>>>1)]>>>4-4*(1&T)&15;else{if(8!=c)throw c;I=s[P+T*h]}u[y]=A[I]>>8,u[y+1]=A[O+I]>>8,u[y+2]=A[O+O+I]>>8,u[y+3]=M?s[P+T*h+1]:255}}else if(5==l){var F=h>4?1:0;for(g=0;g<a;g++){y=g<<2;var j=g*h;if(window.UDOC){var N=s[j],L=s[j+1],B=s[j+2],$=s[j+3],z=UDOC.C.cmykToRgb([N*(1/255),L*(1/255),B*(1/255),$*(1/255)]);u[y]=~~(.5+255*z[0]),u[y+1]=~~(.5+255*z[1]),u[y+2]=~~(.5+255*z[2])}else{N=255-s[j],L=255-s[j+1],B=255-s[j+2],$=(255-s[j+3])*(1/255);u[y]=~~(N*$+.5),u[y+1]=~~(L*$+.5),u[y+2]=~~(B*$+.5)}u[y+3]=255*(1-F)+s[j+4]*F}}else if(6==l&&t.t278){var R=t.t278[0];for(p=0;p<i;p+=R){g=p*r;for(var U=R*r,V=0;V<U;V++){y=4*(g+V),B=s[(j=3*g+4*(V>>>1))+(1&V)];var H=s[j+2]-128,G=s[j+3]-128,q=B+((G>>2)+(G>>3)+(G>>5)),W=B-((H>>2)+(H>>4)+(H>>5))-((G>>1)+(G>>3)+(G>>4)+(G>>5)),Y=B+(H+(H>>1)+(H>>2)+(H>>6));u[y]=Math.max(0,Math.min(255,q)),u[y+1]=Math.max(0,Math.min(255,W)),u[y+2]=Math.max(0,Math.min(255,Y)),u[y+3]=255}}}else if(32845==l)for(p=0;p<i;p++)for(T=0;T<r;T++){y=4*(p*r+T);var Z=s[(j=6*(p*r+T))+1]<<8|s[j],K=(Z=Math.pow(2,(Z+.5)/256-64),(s[j+3]+.5)/410),X=(s[j+5]+.5)/410,J=9*K/(6*K-16*X+12),Q=4*X/(6*K-16*X+12),tt=J*Z/Q,et=(1-J-Q)*Z/Q;q=2.69*tt-1.276*(B=Z)-.414*et,W=-1.022*tt+1.978*B+.044*et,Y=.061*tt-.224*B+1.163*et;u[y]=255*n(Math.min(q,1)),u[y+1]=255*n(Math.min(W,1)),u[y+2]=255*n(Math.min(Y,1)),u[y+3]=255}else o(\"Unknown Photometric interpretation: \"+l);return u},t.replaceIMG=function(e){null==e&&(e=document.getElementsByTagName(\"img\"));for(var n=[\"tif\",\"tiff\",\"dng\",\"cr2\",\"nef\"],r=0;r<e.length;r++){var i=e[r],o=i.getAttribute(\"src\");if(null!=o){var a=o.split(\".\").pop().toLowerCase();if(-1!=n.indexOf(a)){var s=new XMLHttpRequest;t._xhrs.push(s),t._imgs.push(i),s.open(\"GET\",o),s.responseType=\"arraybuffer\",s.onload=t._imgLoaded,s.send()}}}},t._xhrs=[],t._imgs=[],t._imgLoaded=function(e){var n=t._xhrs.indexOf(e.target),r=t._imgs[n];t._xhrs.splice(n,1),t._imgs.splice(n,1),r.setAttribute(\"src\",t.bufferToURI(e.target.response))},t.bufferToURI=function(e){var n=t.decode(e),r=n,i=0,o=r[0];n[0].subIFD&&(r=r.concat(n[0].subIFD));for(var a=0;a<r.length;a++){var s=r[a];if(!(null==s.t258||s.t258.length<3)){var u=s.t256*s.t257;u>i&&(i=u,o=s)}}t.decodeImage(e,o,n);var l=t.toRGBA8(o),c=o.width,h=o.height,f=document.createElement(\"canvas\");f.width=c,f.height=h;var d=f.getContext(\"2d\"),p=new ImageData(new Uint8ClampedArray(l.buffer),c,h);return d.putImageData(p,0,0),f.toDataURL()},t._binBE={nextZero:function(t,e){for(;0!=t[e];)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},readShort:function(e,n){var r=t._binBE.ui8;return r[0]=e[n+1],r[1]=e[n+0],t._binBE.i16[0]},readInt:function(e,n){var r=t._binBE.ui8;return r[0]=e[n+3],r[1]=e[n+2],r[2]=e[n+1],r[3]=e[n+0],t._binBE.i32[0]},readUint:function(e,n){var r=t._binBE.ui8;return r[0]=e[n+3],r[1]=e[n+2],r[2]=e[n+1],r[3]=e[n+0],t._binBE.ui32[0]},readASCII:function(t,e,n){for(var r=\"\",i=0;i<n;i++)r+=String.fromCharCode(t[e+i]);return r},readFloat:function(e,n){for(var r=t._binBE.ui8,i=0;i<4;i++)r[i]=e[n+3-i];return t._binBE.fl32[0]},readDouble:function(e,n){for(var r=t._binBE.ui8,i=0;i<8;i++)r[i]=e[n+7-i];return t._binBE.fl64[0]},writeUshort:function(t,e,n){t[e]=n>>8&255,t[e+1]=255&n},writeInt:function(e,n,r){var i=t._binBE.ui8;t._binBE.i32[0]=r,e[n+3]=i[0],e[n+2]=i[1],e[n+1]=i[2],e[n+0]=i[3]},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n},writeASCII:function(t,e,n){for(var r=0;r<n.length;r++)t[e+r]=n.charCodeAt(r)},writeDouble:function(e,n,r){t._binBE.fl64[0]=r;for(var i=0;i<8;i++)e[n+i]=t._binBE.ui8[7-i]}},t._binBE.ui8=new Uint8Array(8),t._binBE.i16=new Int16Array(t._binBE.ui8.buffer),t._binBE.i32=new Int32Array(t._binBE.ui8.buffer),t._binBE.ui32=new Uint32Array(t._binBE.ui8.buffer),t._binBE.fl32=new Float32Array(t._binBE.ui8.buffer),t._binBE.fl64=new Float64Array(t._binBE.ui8.buffer),t._binLE={nextZero:t._binBE.nextZero,readUshort:function(t,e){return t[e+1]<<8|t[e]},readShort:function(e,n){var r=t._binBE.ui8;return r[0]=e[n+0],r[1]=e[n+1],t._binBE.i16[0]},readInt:function(e,n){var r=t._binBE.ui8;return r[0]=e[n+0],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t._binBE.i32[0]},readUint:function(e,n){var r=t._binBE.ui8;return r[0]=e[n+0],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t._binBE.ui32[0]},readASCII:t._binBE.readASCII,readFloat:function(e,n){for(var r=t._binBE.ui8,i=0;i<4;i++)r[i]=e[n+i];return t._binBE.fl32[0]},readDouble:function(e,n){for(var r=t._binBE.ui8,i=0;i<8;i++)r[i]=e[n+i];return t._binBE.fl64[0]},writeUshort:function(t,e,n){t[e]=255&n,t[e+1]=n>>8&255},writeInt:function(e,n,r){var i=t._binBE.ui8;t._binBE.i32[0]=r,e[n+0]=i[0],e[n+1]=i[1],e[n+2]=i[2],e[n+3]=i[3]},writeUint:function(t,e,n){t[e]=n>>>0&255,t[e+1]=n>>>8&255,t[e+2]=n>>>16&255,t[e+3]=n>>>24&255},writeASCII:t._binBE.writeASCII},t._copyTile=function(t,e,n,r,i,o,a,s){for(var u=Math.min(e,i-a),l=Math.min(n,o-s),c=0;c<l;c++)for(var h=(s+c)*i+a,f=c*e,d=0;d<u;d++)r[h+d]=t[f+d]},t.LosslessJpegDecode=function(){var t,e;function n(){return t[e++]}function r(){return t[e++]<<8|t[e++]}function i(t){for(var e=n(),r=[0,0,0,255],i=[],a=0;a<16;a++)i[a]=n();for(a=0;a<16;a++)for(var s=0;s<i[a];s++){r[o(r,0,a+1,1)+3]=n()}var u=new Uint8Array(256);t[e]=[new Uint8Array(r),u];for(a=0;a<256;a++){for(var l=8,c=a,h=0;255==r[h+3]&&0!=l;)h=r[h+(c>>--l&1)];u[a]=h}}function o(t,e,n,r){if(255!=t[e+3])return 0;if(0==n)return e;for(var i=0;i<2;i++){0==t[e+i]&&(t[e+i]=t.length,t.push(0,0,r,255));var a=o(t,t[e+i],n-1,r+1);if(0!=a)return a}return 0}function a(t){for(var e=t.b,n=t.f;e<25&&t.a<t.d;){var r=t.data[t.a++];255!=r||t.c||t.a++,n=n<<8|r,e+=8}if(e<0)throw\"e\";t.b=e,t.f=n}function s(t,e){return e.b<t&&a(e),e.f>>(e.b-=t)&65535>>16-t}function u(t,e){var n=t[0],r=0,i=255;e.b<16&&a(e);var o=e.f>>e.b-8&255;for(i=n[(r=t[1][o])+3],e.b-=n[r+2];255==i;)i=n[(r=n[r+(e.f>>--e.b&1)])+3];return i}function l(t,e){return t<32768>>16-e&&(t+=1-(1<<e)),t}function c(t,e){var n=u(t,e);return 0==n?0:16==n?-32768:l(s(n,e),n)}function h(t,e,n,r,i,o){for(var a=0,s=0;s<o;s++){for(var u=s*e,l=0;l<e;l+=i){a++;for(var h=0;h<i;h++)t[u+l+h]=c(r[h],n)}if(0!=n.e&&a%n.e==0&&0!=s){for(var f=n.a,d=n.data;255!=d[f]||!(208<=d[f+1]&&d[f+1]<=215);)f--;n.a=f+2,n.f=0,n.b=0}}}function f(t,e){return l(s(t,e),t)}function d(t,e,n,r,i,o,a,s){for(var u=n*a,l=i;l<o;l++)t[l]+=1<<s-1;for(var c=a;c<u;c+=a)for(l=i;l<o;l++)t[c+l]+=t[c+l-a];for(var h=1;h<r;h++){var f=h*u;for(l=i;l<o;l++)t[f+l]+=t[f+l-u];for(c=a;c<u;c+=a)for(l=i;l<o;l++){var d=f+c+l,p=d-u,m=t[d-a],v=0;if(0==e)v=0;else if(1==e)v=m;else if(2==e)v=t[p];else if(3==e)v=t[p-a];else if(4==e)v=m+(t[p]-t[p-a]);else if(5==e)v=m+(t[p]-t[p-a]>>>1);else if(6==e)v=t[p]+(m-t[p-a]>>>1);else{if(7!=e)throw e;v=m+t[p]>>>1}t[d]+=v}}}return function(o){if(t=o,e=0,65496!=r())throw\"e\";for(var a=[],s=0,l=0,c=0,p=[],m=[],v=[],g=0,y=0,b=0;;){var _=r();if(65535!=_){var w=r();if(65475==_){l=n(),y=r(),b=r(),g=n();for(var x=0;x<g;x++){var k=n(),S=n();if(0!=n())throw\"e\";a[k]=[x,S>>4,15&S]}}else if(65476==_)for(var C=e+w-2;e<C;)i(m);else{if(65498==_){e++;for(x=0;x<g;x++){var E=a[n()];v[E[0]]=m[n()>>>4],p[E[0]]=E.slice(1)}s=n(),e+=2;break}65501==_?c=r():e+=w-2}}else e--}var D=new(l>8?Uint16Array:Uint8Array)(y*b*g),A={b:0,f:0,c:8==s,a:e,data:t,d:t.length,e:c};if(A.c)!function(n,r,i,o,a){for(var s=t.length-e,l=0;l<s;l+=4){var c=t[e+l];t[e+l]=t[e+l+3],t[e+l+3]=c,c=t[e+l+1],t[e+l+1]=t[e+l+2],t[e+l+2]=c}for(var h=0;h<a;h++)for(var d=32768,p=32768,m=0;m<r;m+=2){var v=u(o,i),g=u(o,i);0!=v&&(d+=f(v,i)),0!=g&&(p+=f(g,i)),n[h*r+m]=65535&d,n[h*r+m+1]=65535&p}}(D,b*g,A,v[0],y);else{var O=[],M=0,T=0;for(x=0;x<g;x++){var I=p[x];(U=I[0])>M&&(M=U),(R=I[1])>T&&(T=R),O.push(U*R)}if(1!=M||1!=T){if(3!=g||1!=O[1]||1!=O[2])throw\"e\";if(2!=M||1!=T&&2!=T)throw\"e\";var P=[],F=0;for(x=0;x<g;x++){for(var j=0;j<O[x];j++)P.push(v[x]);F+=O[x]}var N=b/M,L=y/T,B=N*L;h(D,N*F,A,P,F,L),d(D,s,N,L,F-2,F,F,l);var $=new Uint16Array(B*O[0]);if(2==M&&2==T){for(x=0;x<B;x++)$[4*x]=D[6*x],$[4*x+1]=D[6*x+1],$[4*x+2]=D[6*x+2],$[4*x+3]=D[6*x+3];d($,s,4*N,L,0,1,1,l);for(x=0;x<B;x++)D[6*x]=$[4*x],D[6*x+1]=$[4*x+1],D[6*x+2]=$[4*x+2],D[6*x+3]=$[4*x+3]}if(2==M&&1==T){for(x=0;x<B;x++)$[2*x]=D[4*x],$[2*x+1]=D[4*x+1];d($,s,2*N,L,0,1,1,l);for(x=0;x<B;x++)D[4*x]=$[2*x],D[4*x+1]=$[2*x+1]}for(var z=D.slice(0),R=0;R<y;R++)if(2==T)for(var U=0;U<b;U++){var V=((R>>>1)*N+(U>>>1))*F,H=2*(1&R)+(1&U);D[G=(R*b+U)*g]=z[V+H],D[G+1]=z[V+4],D[G+2]=z[V+5]}else for(U=0;U<b;U++){var G;V=(R*N+(U>>>1))*F,H=1&U;D[G=(R*b+U)*g]=z[V+H],D[G+1]=z[V+2],D[G+2]=z[V+3]}}else if(h(D,b*g,A,v,g,y),0==c)d(D,s,b,y,0,g,g,l);else{var q=Math.floor(c/b);for(R=0;R<y;R+=q){var W=D.slice(R*b*g,(R+q)*b*g);d(W,s,b,q,0,g,g,l),D.set(W,R*b*g)}}}return D}}(),function(){var e=2,n=4,r=5,i=6,o=7,a=12,s=13,u=14,l=15,c=17;function h(t){var e={c:new Int8Array(2<<t.u)};return function(t,e,n){var r=[e,3*e+18,5*e+67,7*e+276,n];t.o=e,t.w=(r[4]+2*e)/(2*e+1)+1|0,t.v=Math.ceil(Math.log2(t.w)),t.t=9,function(t,e){for(var n=-e[4],r=0;n<=e[4];r++,n++)t[r]=n<=-e[3]?-4:n<=-e[2]?-3:n<=-e[1]?-2:n<-e[0]?-1:n<=e[0]?0:n<e[1]?1:n<e[2]?2:n<e[3]?3:4}(t.c,r)}(e,0,t.g),e}function f(t){for(var e=[[],[],[]],n=Math.max(2,t.w+32>>>6),r=0;r<3;r++)for(var i=0;i<41;i++)e[r][i]=[n,1];return e}function d(t,e){var n=0,r=8-t.a;t.j,t.a;if(e){if(e>=r)do{n<<=r,e-=r,n|=t[t.j]&(1<<r)-1,t.j++,r=8}while(e>=8);e&&(n<<=e,r-=e,n|=t[t.j]>>>r&(1<<e)-1),t.a=8-r}return n}function p(t,e,n,r,i,o,a,s){null==s&&(s=0);var u,l,c,h,f,p,m=o+1,v=m%2,g=0,y=r[i],b=r[i-1],_=r[i-2][m],w=b[m-1],x=b[m],k=b[m+1],S=y[m-1],C=y[m+1],E=Math.abs;if(v&&(c=E(k-x),h=E(_-x),f=E(w-x)),v){if(p=(p=c>f&&h<c?_+w:c<f&&h<f?_+k:k+w)+2*x>>>2,s)return void(y[m]=p);u=e.t*e.c[t.g+x-_]+e.c[t.g+w-x]}else p=x>w&&x>k||x<w&&x<k?C+S+2*x>>>2:S+C>>>1,u=e.t*e.c[t.g+x-w]+e.c[t.g+w-S];l=E(u);var D=function(t){for(var e=-1,n=0;!n;e++)n=t[t.j]>>>7-t.a&1,t.a++,t.a&=7,t.a||t.j++;return e}(n);if(D<t.n-e.v-1){var A=function(t,e){var n=0;if(e<t)for(;n<=14&&e<<++n<t;);return n}(a[l][0],a[l][1]);g=d(n,A)+(D<<A)}else g=d(n,e.v)+1;g=1&g?-1-(g>>>1):g>>>1,a[l][0]+=E(g),a[l][1]==t.f&&(a[l][0]>>>=1,a[l][1]>>>=1),a[l][1]++,p=u<0?p-g:p+g,t.i&&(p<0?p+=e.w:p>t.g&&(p-=e.w)),y[m]=p>=0?Math.min(p,t.g):0}function m(t,e,n){for(var r=t[0].length,i=e;i<=n;i++)t[i][0]=t[i-1][1],t[i][r-1]=t[i-1][r-2]}function v(t){m(t,o,a),m(t,e,n),m(t,l,c)}function g(t,e,r,i,o,a,u,l,c,h,f,d,m){for(var g=0,y=1,b=o<s&&o>n;y<t.m;)g<t.m&&(p(t,e,r,i,o,g,u[c],t.h&&(b&&h||!b&&(f||(g&d)==m))),p(t,e,r,i,a,g,u[c],t.h&&(!b&&h||b&&(f||(g&d)==m))),g+=2),g>8&&(p(t,e,r,i,o,y,l[c]),p(t,e,r,i,a,y,l[c]),y+=2);v(i)}function y(t,r,i,s,u,h){g(t,r,i,s,e,o,u,h,0,0,1,0,8),g(t,r,i,s,8,l,u,h,1,0,1,0,8),g(t,r,i,s,3,9,u,h,2,1,0,3,0),g(t,r,i,s,10,16,u,h,0,0,0,3,2),g(t,r,i,s,n,11,u,h,1,0,0,3,2),g(t,r,i,s,a,c,u,h,2,1,0,3,0)}function b(t,n,r,i,a,s){var u=s.length,c=t.l;a+1==t.s&&(c=t.e-a*t.l);for(var h=6*t.e*i+a*t.l,f=0;f<6;f++){for(var d=0;d<c;d++){var p,m=s[f%u][d%u];p=0==m?e+(f>>>1):2==m?l+(f>>>1):o+f;var v=t.h?(2*d/3&2147483646|d%3&1)+(d%3>>>1):d>>>1;n[h+d]=r[p][v+1]}h+=t.e}}t._decompressRAF=function(o,l){var d=function(e){var n=t._binBE.readUshort,r={b:n(e,0),i:e[2],C:e[3],u:e[4],q:n(e,5),k:n(e,7),e:n(e,9),l:n(e,11),s:e[13],d:n(e,14)};if(18771!=r.b||r.i>1||r.q<6||r.q%6||r.e<768||r.e%24||768!=r.l||r.k<r.l||r.k%r.l||r.k-r.e>=r.l||r.s>16||r.s!=r.k/r.l||r.s!=Math.ceil(r.e/r.l)||r.d!=r.q/6||12!=r.u&&14!=r.u&&16!=r.u||16!=r.C&&0!=r.C)throw\"Invalid data\";if(0==r.i)throw\"Not implemented. We need this file!\";return r.h=16==r.C,r.m=0|(r.h?2*r.l/3:r.l>>>1),r.A=r.m+2,r.f=64,r.g=(1<<r.u)-1,r.n=4*r.u,r}(o),p=function(e,n){var r=new Array(n.s),i=4*n.s,o=16+i;12&i&&(o+=16-(12&i));for(var a=0,s=16;a<n.s;s+=4){var u=t._binBE.readUint(e,s);r[a]=e.slice(o,o+u),r[a].j=0,r[a].a=0,o+=u,a++}if(o!=e.length)throw\"Invalid data\";return r}(o,d),m=h(d),g=new Int16Array(d.e*d.q);null==l&&(l=d.h?[[1,1,0,1,1,2],[1,1,2,1,1,0],[2,0,1,0,2,1],[1,1,2,1,1,0],[1,1,0,1,1,2],[0,2,1,2,0,1]]:[[0,1],[3,2]]);for(var _=[[0,3],[1,n],[r,11],[i,a],[s,16],[u,c]],w=[],x=0;x<18;x++)w[x]=new Uint16Array(d.A);for(var k=0;k<d.s;k++){var S=f(m),C=f(m);for(x=0;x<18;x++)for(var E=0;E<d.A;E++)w[x][E]=0;for(var D=0;D<d.d;D++){y(d,m,p[k],w,S,C);for(x=0;x<6;x++)for(E=0;E<d.A;E++)w[_[x][0]][E]=w[_[x][1]][E];b(d,g,w,D,k,l);for(x=e;x<18;x++)if(-1==[r,i,s,u].indexOf(x))for(E=0;E<d.A;E++)w[x][E]=0;v(w)}}return g}}()}(i,n(197))}()}).call(this,n(13)(t),n(7))},function(t,e,n){\"use strict\";var r=n(57),i=n(42),o=i.Gif,a=i.GifError,s=n(96).GifCodec,u=n(58).GifFrame,l=n(97);t.exports={BitmapImage:r,Gif:o,GifCodec:s,GifFrame:u,GifUtil:l,GifError:a}},function(t,e,n){t.exports=i;var r=n(31).EventEmitter;function i(){r.call(this)}n(24)(i,r),i.Readable=n(50),i.Writable=n(154),i.Duplex=n(155),i.Transform=n(156),i.PassThrough=n(157),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on(\"data\",i),t.on(\"drain\",o),t._isStdio||e&&!1===e.end||(n.on(\"end\",s),n.on(\"close\",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,\"function\"==typeof t.destroy&&t.destroy())}function l(t){if(c(),0===r.listenerCount(this,\"error\"))throw t}function c(){n.removeListener(\"data\",i),t.removeListener(\"drain\",o),n.removeListener(\"end\",s),n.removeListener(\"close\",u),n.removeListener(\"error\",l),t.removeListener(\"error\",l),n.removeListener(\"end\",c),n.removeListener(\"close\",c),t.removeListener(\"close\",c)}return n.on(\"error\",l),t.on(\"error\",l),n.on(\"end\",c),n.on(\"close\",c),t.on(\"close\",c),t.emit(\"pipe\",n),t}},function(t,e,n){\"use strict\";(function(e){void 0===e||!e.version||0===e.version.indexOf(\"v0.\")||0===e.version.indexOf(\"v1.\")&&0!==e.version.indexOf(\"v1.8.\")?t.exports={nextTick:function(t,n,r,i){if(\"function\"!=typeof t)throw new TypeError('\"callback\" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,n(7))},function(t,e,n){\"use strict\";t.exports=TypeError},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if(\"object\"!==r(n))throw new TypeError(n+\"must be non-object\");for(var i in n)o(n,i)&&(t[i]=n[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var a={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},s={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,a)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(t,e,n){return e=u(e),function(t,e){if(e&&(\"object\"===r(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,a()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function o(t){var e=\"function\"==typeof Map?new Map:void 0;return o=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(a())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&s(i,n.prototype),i}(t,arguments,u(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)},o(t)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function c(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function h(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}function f(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var d=c((function t(e,n,r){f(this,t),this.width=r.width,this.height=r.height,this.loops=r.loops,this.usesTransparency=r.usesTransparency,this.colorScope=r.colorScope,this.frames=n,this.buffer=e}));d.GlobalColorsPreferred=0,d.GlobalColorsOnly=1,d.LocalColorsOnly=2;var p=function(t){function e(t){var n;return f(this,e),n=i(this,e,[t]),t instanceof Error&&(n.stack=\"Gif\"+t.stack),n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&s(t,e)}(e,t),c(e)}(o(Error));e.Gif=d,e.GifError=p},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.clone=l,e.addLast=h,e.addFirst=f,e.removeLast=d,e.removeFirst=p,e.insert=m,e.removeAt=v,e.replaceAt=g,e.getIn=y,e.set=b,e.setIn=_,e.update=x,e.updateIn=k,e.merge=S,e.mergeDeep=C,e.mergeIn=E,e.omit=D,e.addDefaults=A,e.default=void 0;var i=\"INVALID_ARGS\",o=!1;function a(t){throw new Error(t)}function s(t){var e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}var u={}.hasOwnProperty;function l(t){if(Array.isArray(t))return t.slice();for(var e=t,n=s(e),r={},i=0;i<n.length;i++){var o=n[i];r[o]=e[o]}return r}function c(t){return null!=t&&\"object\"===r(t)}function h(t,e){return Array.isArray(e)?t.concat(e):t.concat([e])}function f(t,e){return Array.isArray(e)?e.concat(t):[e].concat(t)}function d(t){return t.length?t.slice(0,t.length-1):t}function p(t){return t.length?t.slice(1):t}function m(t,e,n){return t.slice(0,e).concat(Array.isArray(n)?n:[n]).concat(t.slice(e))}function v(t,e){return e>=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function g(t,e,n){if(t[e]===n)return t;for(var r=t.length,i=Array(r),o=0;o<r;o++)i[o]=t[o];return i[e]=n,i}function y(t,e){if(Array.isArray(e)||a(o?\"A path array should be provided when calling getIn()\":i),null!=t){for(var n=t,r=0;r<e.length;r++){var s=e[r];if(void 0===(n=null!=n?n[s]:void 0))return n}return n}}function b(t,e,n){var r=t;if(null==r&&(r=\"number\"==typeof e?[]:{}),r[e]===n)return r;var i=l(r);return i[e]=n,i}function _(t,e,n){return e.length?w(t,e,n,0):n}function w(t,e,n,r){var i,o=e[r];r===e.length-1?i=n:i=w(c(t)&&c(t[o])?t[o]:\"number\"==typeof e[r+1]?[]:{},e,n,r+1);return b(t,o,i)}function x(t,e,n){return b(t,e,n(null==t?void 0:t[e]))}function k(t,e,n){return _(t,e,n(y(t,e)))}function S(t,e,n,r,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?O.call.apply(O,[null,!1,!1,t,e,n,r,i,o].concat(s)):O(!1,!1,t,e,n,r,i,o)}function C(t,e,n,r,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?O.call.apply(O,[null,!1,!0,t,e,n,r,i,o].concat(s)):O(!1,!0,t,e,n,r,i,o)}function E(t,e,n,r,i,o,a){var s=y(t,e);null==s&&(s={});for(var u=arguments.length,l=new Array(u>7?u-7:0),c=7;c<u;c++)l[c-7]=arguments[c];return _(t,e,l.length?O.call.apply(O,[null,!1,!1,s,n,r,i,o,a].concat(l)):O(!1,!1,s,n,r,i,o,a))}function D(t,e){for(var n=Array.isArray(e)?e:[e],r=!1,i=0;i<n.length;i++)if(u.call(t,n[i])){r=!0;break}if(!r)return t;for(var o={},a=s(t),l=0;l<a.length;l++){var c=a[l];n.indexOf(c)>=0||(o[c]=t[c])}return o}function A(t,e,n,r,i,o){for(var a=arguments.length,s=new Array(a>6?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?O.call.apply(O,[null,!0,!1,t,e,n,r,i,o].concat(s)):O(!0,!1,t,e,n,r,i,o)}function O(t,e,n){var r=n;null==r&&a(o?\"At least one object should be provided to merge()\":i);for(var u=!1,h=0;h<(arguments.length<=3?0:arguments.length-3);h++){var f=h+3<3||arguments.length<=h+3?void 0:arguments[h+3];if(null!=f){var d=s(f);if(d.length)for(var p=0;p<=d.length;p++){var m=d[p];if(!t||void 0===r[m]){var v=f[m];e&&c(r[m])&&c(v)&&(v=O(t,e,r[m],v)),void 0!==v&&v!==r[m]&&(u||(u=!0,r=l(r)),r[m]=v)}}}}return r}var M={clone:l,addLast:h,addFirst:f,removeLast:d,removeFirst:p,insert:m,removeAt:v,replaceAt:g,getIn:y,set:b,setIn:_,update:x,updateIn:k,merge:S,mergeDeep:C,mergeIn:E,omit:D,addDefaults:A};e.default=M},function(t,e,n){var r=n(229);t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){\"use strict\";(function(t){n.d(e,\"c\",(function(){return w})),n.d(e,\"a\",(function(){return k})),n.d(e,\"b\",(function(){return S}));var r=n(103),i=n.n(r),o=n(104),a=n.n(o),s=n(0),u=n(20),l=n(19),c=n(33);function h(t){return h=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},h(t)}function f(){f=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new I(r||[]);return i(a,\"_invoke\",{value:A(t,n,s)}),a}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};l(x,a,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&r.call(S,a)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,o,a,s){var u=d(t[i],t,o);if(\"throw\"!==u.type){var l=u.arg,c=l.value;return c&&\"object\"==h(c)&&r.call(c,\"__await\")?e.resolve(c.__await).then((function(t){n(\"next\",t,a,s)}),(function(t){n(\"throw\",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return n(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[a];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(h(e)+\" is not iterable\")}return _.prototype=w,i(C,\"constructor\",{value:w,configurable:!0}),i(w,\"constructor\",{value:_,configurable:!0}),_.displayName=l(w,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,u,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),l(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),l(C,u,\"Generator\"),l(C,a,(function(){return this})),l(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=r.call(a,\"catchLoc\"),l=r.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function v(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){m(o,r,i,a,s,\"next\",t)}function s(t){m(o,r,i,a,s,\"throw\",t)}a(void 0)}))}}function g(t,e){return y.apply(this,arguments)}function y(){return(y=v(f().mark((function t(e,n){var r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.fromBuffer(e);case 2:if(!(r=t.sent)){t.next=5;break}return t.abrupt(\"return\",r.mime);case 5:if(!n){t.next=7;break}return t.abrupt(\"return\",l.c(n));case 7:return t.abrupt(\"return\",null);case 8:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function b(t){return t._exif&&t._exif.tags&&t._exif.tags.Orientation||1}function _(e){if(!(b(e)<2)){var n=function(t){var e=t.getWidth(),n=t.getHeight();switch(b(t)){case 1:default:return null;case 2:return function(t,n){return[e-t-1,n]};case 3:return function(t,r){return[e-t-1,n-r-1]};case 4:return function(t,e){return[t,n-e-1]};case 5:return function(t,e){return[e,t]};case 6:return function(t,e){return[e,n-t-1]};case 7:return function(t,r){return[e-r-1,n-t-1]};case 8:return function(t,n){return[e-n-1,t]}}}(e),r=b(e)>4;!function(e,n,r,i){for(var o=e.bitmap.data,a=e.bitmap.width,s=t.alloc(o.length),u=0;u<n;u++)for(var l=0;l<r;l++){var c=d(i(u,l),2),h=c[0],f=n*l+u<<2,p=a*c[1]+h<<2,m=o.readUInt32BE(p);s.writeUInt32BE(m,f)}e.bitmap.data=s,e.bitmap.width=n,e.bitmap.height=r}(e,r?e.bitmap.height:e.bitmap.width,r?e.bitmap.width:e.bitmap.height,n)}}function w(t,e,n){return x.apply(this,arguments)}function x(){return(x=v(f().mark((function t(e,n,r){var i,o;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g(e,n);case 2:if(\"string\"==typeof(i=t.sent)){t.next=5;break}return t.abrupt(\"return\",r(new Error(\"Could not find MIME for Buffer <\"+n+\">\")));case 5:if(this._originalMime=i.toLowerCase(),t.prev=6,o=this.getMIME(),!this.constructor.decoders[o]){t.next=12;break}this.bitmap=this.constructor.decoders[o](e),t.next=13;break;case 12:return t.abrupt(\"return\",s.d.call(this,\"Unsupported MIME type: \"+o,r));case 13:t.next=18;break;case 15:return t.prev=15,t.t0=t.catch(6),t.abrupt(\"return\",r.call(this,t.t0,this));case 18:try{this._exif=a.a.create(e).parse(),_(this)}catch(t){}return r.call(this,null,this),t.abrupt(\"return\",this);case 21:case\"end\":return t.stop()}}),t,this,[[6,15]])})))).apply(this,arguments)}function k(e,n){var r,i,o=this;if(e===u.AUTO&&(e=this.getMIME()),\"string\"!=typeof e)return s.d.call(this,\"mime must be a string\",n);if(\"function\"!=typeof n)return s.d.call(this,\"cb must be a function\",n);if(e=e.toLowerCase(),this._rgba&&this.constructor.hasAlpha[e]?this.bitmap.data=t.from(this.bitmap.data):this.bitmap.data=(r=this.constructor,i=this,new r(i.bitmap.width,i.bitmap.height,i._background).composite(i,0,0).bitmap).data,!this.constructor.encoders[e])return s.d.call(this,\"Unsupported MIME type: \"+e,n);var a=this.constructor.encoders[e](this);return a instanceof Promise?a.then((function(t){n.call(o,null,t)})):n.call(this,null,a),this}function S(t){return Object(c.a)(k,this,t)}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(t,r){var i=n(14),o=n(38),a=n(158),s=n(187),u=n(190),l=e.PNG=function(e){o.call(this),e=e||{},this.width=0|e.width,this.height=0|e.height,this.data=this.width>0&&this.height>0?t.alloc(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new a(e),this._parser.on(\"error\",this.emit.bind(this,\"error\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._parser.on(\"metadata\",this._metadata.bind(this)),this._parser.on(\"gamma\",this._gamma.bind(this)),this._parser.on(\"parsed\",function(t){this.data=t,this.emit(\"parsed\",t)}.bind(this)),this._packer=new s(e),this._packer.on(\"data\",this.emit.bind(this,\"data\")),this._packer.on(\"end\",this.emit.bind(this,\"end\")),this._parser.on(\"close\",this._handleClose.bind(this)),this._packer.on(\"error\",this.emit.bind(this,\"error\"))};i.inherits(l,o),l.sync=u,l.prototype.pack=function(){return this.data&&this.data.length?(r.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit(\"error\",\"No data provided\"),this)},l.prototype.parse=function(t,e){var n,r;e&&(n=function(t){this.removeListener(\"error\",r),this.data=t,e(null,this)}.bind(this),r=function(t){this.removeListener(\"parsed\",n),e(t,null)}.bind(this),this.once(\"parsed\",n),this.once(\"error\",r));return this.end(t),this},l.prototype.write=function(t){return this._parser.write(t),!0},l.prototype.end=function(t){this._parser.end(t)},l.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit(\"metadata\",t)},l.prototype._gamma=function(t){this.gamma=t},l.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit(\"close\")},l.bitblt=function(t,e,n,r,i,o,a,s){if(r|=0,i|=0,o|=0,a|=0,s|=0,(n|=0)>t.width||r>t.height||n+i>t.width||r+o>t.height)throw new Error(\"bitblt reading outside image\");if(a>e.width||s>e.height||a+i>e.width||s+o>e.height)throw new Error(\"bitblt writing outside image\");for(var u=0;u<o;u++)t.data.copy(e.data,(s+u)*e.width+a<<2,(r+u)*t.width+n<<2,(r+u)*t.width+n+i<<2)},l.prototype.bitblt=function(t,e,n,r,i,o,a){return l.bitblt(this,t,e,n,r,i,o,a),this},l.adjustGamma=function(t){if(t.gamma){for(var e=0;e<t.height;e++)for(var n=0;n<t.width;n++)for(var r=t.width*e+n<<2,i=0;i<3;i++){var o=t.data[r+i]/255;o=Math.pow(o,1/2.2/t.gamma),t.data[r+i]=Math.round(255*o)}t.gamma=0}},l.prototype.adjustGamma=function(){l.adjustGamma(this)}}).call(this,n(2).Buffer,n(7))},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;var r=n(126),i=n(129),o=n(26);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return o.EndOfStreamError}}),e.fromStream=function(t,e){return e=e||{},new r.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new i.BufferTokenizer(t,e)}},function(t,e,n){\"use strict\";(function(t){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(){i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",l=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(r||[]);return a(o,\"_invoke\",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&o.call(S,u)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,a,s,u){var l=d(t[i],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==r(h)&&o.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var i;a(this,\"_invoke\",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[u];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+\" is not iterable\")}return _.prototype=w,a(C,\"constructor\",{value:w,configurable:!0}),a(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,l,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,u,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return r(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),l=o.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,\"finallyLoc\")&&this.prev<r.finallyLoc){var i=r;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,\"next\",t)}function u(t){o(a,r,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractTokenizer=void 0;var l=n(26),c=function(){return e=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}},n=[{key:\"readToken\",value:(d=a(i().mark((function e(n){var r,o,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:this.position,o=t.alloc(n.len),e.next=4,this.readBuffer(o,{position:r});case 4:if(!(e.sent<n.len)){e.next=7;break}throw new l.EndOfStreamError;case 7:return e.abrupt(\"return\",n.get(o,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return d.apply(this,arguments)})},{key:\"peekToken\",value:(f=a(i().mark((function e(n){var r,o,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:this.position,o=t.alloc(n.len),e.next=4,this.peekBuffer(o,{position:r});case 4:if(!(e.sent<n.len)){e.next=7;break}throw new l.EndOfStreamError;case 7:return e.abrupt(\"return\",n.get(o,0));case 8:case\"end\":return e.stop()}}),e,this)}))),function(t){return f.apply(this,arguments)})},{key:\"readNumber\",value:(h=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new l.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:\"peekNumber\",value:(c=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.peekBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new l.EndOfStreamError;case 5:return t.abrupt(\"return\",e.get(this.numBuffer,0));case 6:case\"end\":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:\"ignore\",value:(u=a(i().mark((function t(e){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===this.fileInfo.size){t.next=5;break}if(n=this.fileInfo.size-this.position,!(e>n)){t.next=5;break}return this.position+=n,t.abrupt(\"return\",n);case 5:return this.position+=e,t.abrupt(\"return\",e);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:\"close\",value:(o=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:\"normalizeOptions\",value:function(t,e){if(e&&void 0!==e.position&&e.position<this.position)throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");return e?{mayBeLess:!0===e.mayBeLess,offset:e.offset?e.offset:0,length:e.length?e.length:t.length-(e.offset?e.offset:0),position:e.position?e.position:this.position}:{mayBeLess:!1,offset:0,length:t.length,position:this.position}}}],n&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,n,r,o,u,c,h,f,d}();e.AbstractTokenizer=c}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,o(r.key),r)}}function o(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}function a(t,e,n){return e=c(e),function(t,e){if(e&&(\"object\"===r(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,u()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function s(t){var e=\"function\"==typeof Map?new Map:void 0;return s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(u())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&l(i,n.prototype),i}(t,arguments,c(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},s(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages=\"End-Of-Stream\";var h=function(t){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,n),a(this,n,[e.defaultMessages])}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&l(t,e)}(n,t),r=n,o&&i(r.prototype,o),s&&i(r,s),Object.defineProperty(r,\"prototype\",{writable:!1}),r;var r,o,s}(s(Error));e.EndOfStreamError=h},function(t,e,n){(e=t.exports=n(70)).Stream=e,e.Readable=e,e.Writable=n(52),e.Duplex=n(18),e.Transform=n(74),e.PassThrough=n(153)},function(t,e,n){var r=n(2),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),o(i,a),a.from=function(t,e,n){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,n)},a.alloc=function(t,e,n){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var r=i(t);return void 0!==e?\"string\"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},a.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return r.SlowBuffer(t)}},function(t,e,n){\"use strict\";(function(e,r,i){var o=n(39);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=y;var s,u=!e.browser&&[\"v0.10\",\"v0.9.\"].indexOf(e.version.slice(0,5))>-1?r:o.nextTick;y.WritableState=g;var l=Object.create(n(27));l.inherits=n(24);var c={deprecate:n(151)},h=n(71),f=n(51).Buffer,d=(void 0!==i?i:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var p,m=n(72);function v(){}function g(t,e){s=s||n(18),t=t||{};var r=e instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?(o.nextTick(i,r),o.nextTick(S,t,e),t._writableState.errorEmitted=!0,t.emit(\"error\",r)):(i(r),t._writableState.errorEmitted=!0,t.emit(\"error\",r),S(t,e))}(t,n,r,e,i);else{var a=x(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),r?u(_,t,n,a,i):_(t,n,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(t){if(s=s||n(18),!(p.call(y,this)||this instanceof s))return new y(t);this._writableState=new g(t,this),this.writable=!0,t&&(\"function\"==typeof t.write&&(this._write=t.write),\"function\"==typeof t.writev&&(this._writev=t.writev),\"function\"==typeof t.destroy&&(this._destroy=t.destroy),\"function\"==typeof t.final&&(this._final=t.final)),h.call(this)}function b(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function _(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit(\"drain\"))}(t,e),e.pendingcb--,r(),S(t,e)}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,b(t,e,!0,e.length,i,\"\",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,h=n.callback;if(b(t,e,!1,e.objectMode?1:l.length,l,c,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function k(t,e){t._final((function(n){e.pendingcb--,n&&t.emit(\"error\",n),e.prefinished=!0,t.emit(\"prefinish\"),S(t,e)}))}function S(t,e){var n=x(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||(\"function\"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(k,t,e)):(e.prefinished=!0,t.emit(\"prefinish\")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit(\"finish\"))),n}l.inherits(y,h),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,\"buffer\",{get:c.deprecate((function(){return this.getBuffer()}),\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(t){}}(),\"function\"==typeof Symbol&&Symbol.hasInstance&&\"function\"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===y&&(t&&t._writableState instanceof g)}})):p=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit(\"error\",new Error(\"Cannot pipe, not readable\"))},y.prototype.write=function(t,e,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=t,f.isBuffer(r)||r instanceof d);return s&&!f.isBuffer(t)&&(t=function(t){return f.from(t)}(t)),\"function\"==typeof e&&(n=e,e=null),s?e=\"buffer\":e||(e=i.defaultEncoding),\"function\"!=typeof n&&(n=v),i.ended?function(t,e){var n=new Error(\"write after end\");t.emit(\"error\",n),o.nextTick(e,n)}(this,n):(s||function(t,e,n,r){var i=!0,a=!1;return null===n?a=new TypeError(\"May not write null values to stream\"):\"string\"==typeof n||void 0===n||e.objectMode||(a=new TypeError(\"Invalid non-string/buffer chunk\")),a&&(t.emit(\"error\",a),o.nextTick(r,a),i=!1),i}(this,i,t,n))&&(i.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||\"string\"!=typeof e||(e=f.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i=\"buffer\",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else b(t,e,!1,s,r,i,o);return u}(this,i,s,t,e,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||w(this,t))},y.prototype.setDefaultEncoding=function(t){if(\"string\"==typeof t&&(t=t.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((t+\"\").toLowerCase())>-1))throw new TypeError(\"Unknown encoding: \"+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,n){n(new Error(\"_write() is not implemented\"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var r=this._writableState;\"function\"==typeof t?(n=t,t=null,e=null):\"function\"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,e,n){e.ending=!0,S(t,e),n&&(e.finished?o.nextTick(n):t.once(\"finish\",n));e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,\"destroyed\",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(7),n(117).setImmediate,n(10))},function(t,e,n){\"use strict\";(function(e){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=n(160)();function o(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function a(t){return e.Buffer&&\"function\"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=n(14),u=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c=\"foo\"===function(){}.name;function h(t){return Object.prototype.toString.call(t)}function f(t){return!a(t)&&(\"function\"==typeof e.ArrayBuffer&&(\"function\"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var d=t.exports=b,p=/\\s*function\\s+([^\\(\\s]*)\\s*/;function m(t){if(s.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&&e[1]}}function v(t,e){return\"string\"==typeof t?t.length<e?t:t.slice(0,e):t}function g(t){if(c||!s.isFunction(t))return s.inspect(t);var e=m(t);return\"[Function\"+(e?\": \"+e:\"\")+\"]\"}function y(t,e,n,r,i){throw new d.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function b(t,e){t||y(t,!0,e,\"==\",d.ok)}function _(t,e,n,i){if(t===e)return!0;if(a(t)&&a(e))return 0===o(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&\"object\"===r(t)||null!==e&&\"object\"===r(e)){if(f(t)&&f(e)&&h(t)===h(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===o(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var u=(i=i||{actual:[],expected:[]}).actual.indexOf(t);return-1!==u&&u===i.expected.indexOf(e)||(i.actual.push(t),i.expected.push(e),function(t,e,n,r){if(null==t||null==e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=w(t),o=w(e);if(i&&!o||!i&&o)return!1;if(i)return _(t=l.call(t),e=l.call(e),n);var a,u,c=S(t),h=S(e);if(c.length!==h.length)return!1;for(c.sort(),h.sort(),u=c.length-1;u>=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(!_(t[a=c[u]],e[a],n,r))return!1;return!0}(t,e,n,i))}return n?t===e:t==e}function w(t){return\"[object Arguments]\"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if(\"[object RegExp]\"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function k(t,e,n,r){var i;if(\"function\"!=typeof e)throw new TypeError('\"block\" argument must be a function');\"string\"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?\" (\"+n.name+\").\":\".\")+(r?\" \"+r:\".\"),t&&!i&&y(i,n,\"Missing expected exception\"+r);var o=\"string\"==typeof r,a=!t&&i&&!n;if((!t&&s.isError(i)&&o&&x(i,n)||a)&&y(i,n,\"Got unwanted exception\"+r),t&&i&&n&&!x(i,n)||!t&&i)throw i}d.AssertionError=function(t){this.name=\"AssertionError\",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return v(g(t.actual),128)+\" \"+t.operator+\" \"+v(g(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=m(e),o=r.indexOf(\"\\n\"+i);if(o>=0){var a=r.indexOf(\"\\n\",o+1);r=r.substring(a+1)}this.stack=r}}},s.inherits(d.AssertionError,Error),d.fail=y,d.ok=b,d.equal=function(t,e,n){t!=e&&y(t,e,n,\"==\",d.equal)},d.notEqual=function(t,e,n){t==e&&y(t,e,n,\"!=\",d.notEqual)},d.deepEqual=function(t,e,n){_(t,e,!1)||y(t,e,n,\"deepEqual\",d.deepEqual)},d.deepStrictEqual=function(t,e,n){_(t,e,!0)||y(t,e,n,\"deepStrictEqual\",d.deepStrictEqual)},d.notDeepEqual=function(t,e,n){_(t,e,!1)&&y(t,e,n,\"notDeepEqual\",d.notDeepEqual)},d.notDeepStrictEqual=function t(e,n,r){_(e,n,!0)&&y(e,n,r,\"notDeepStrictEqual\",t)},d.strictEqual=function(t,e,n){t!==e&&y(t,e,n,\"===\",d.strictEqual)},d.notStrictEqual=function(t,e,n){t===e&&y(t,e,n,\"!==\",d.notStrictEqual)},d.throws=function(t,e,n){k(!0,t,e,n)},d.doesNotThrow=function(t,e,n){k(!1,t,e,n)},d.ifError=function(t){if(t)throw t},d.strict=i((function t(e,n){e||y(e,!0,n,\"==\",t)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var S=Object.keys||function(t){var e=[];for(var n in t)u.call(t,n)&&e.push(n);return e}}).call(this,n(10))},function(t,e,n){\"use strict\";var r=n(172);t.exports=Function.prototype.bind||r},function(t,e,n){\"use strict\";var r=n(29)(\"%Object.defineProperty%\",!0)||!1;if(r)try{r({},\"a\",{value:1})}catch(t){r=!1}t.exports=r},function(t,e,n){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,n){\"use strict\";(function(e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if(\"object\"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||\"default\");if(\"object\"!=n(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==n(e)?e:e+\"\"}var o=function(){function t(){if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),0===arguments.length)throw new Error(\"constructor requires parameters\");var r=arguments.length<=0?void 0:arguments[0];if(null!==r&&\"object\"===n(r))if(r instanceof t){var i=r.bitmap;this.bitmap={width:i.width,height:i.height,data:new e(i.width*i.height*4)},i.data.copy(this.bitmap.data)}else{if(!(r.width&&r.height&&r.data))throw new Error(\"unrecognized constructor parameters\");this.bitmap=r}else{if(\"number\"!=typeof r||\"number\"!=typeof(arguments.length<=1?void 0:arguments[1]))throw new Error(\"unrecognized constructor parameters\");var o=r,a=arguments.length<=1?void 0:arguments[1],s=arguments.length<=2?void 0:arguments[2];this.bitmap={width:o,height:a},e.isBuffer(s)?this.bitmap.data=s:(this.bitmap.data=new e(o*a*4),\"number\"==typeof s&&this.fillRGBA(s))}}return i=t,(o=[{key:\"blit\",value:function(t,e,n,r,i,o,a){if(r+o>this.bitmap.width)throw new Error(\"copy exceeds width of source bitmap\");if(e+o>t.bitmap.width)throw new Error(\"copy exceeds width of target bitmap\");if(i+a>this.bitmap.height)throw new Error(\"copy exceeds height of source bitmap\");if(n+a>t.bitmap.height)throw new Erro(\"copy exceeds height of target bitmap\");for(var s=this.bitmap.data,u=t.bitmap.data,l=4*this.bitmap.width,c=4*t.bitmap.width,h=4*o,f=i*l+4*r,d=n*c+4*e;--a>=0;)s.copy(u,d,f,f+h),f+=l,d+=c;return this}},{key:\"fillRGBA\",value:function(t){for(var e=this.bitmap.data,n=4*this.bitmap.height,r=0;r<n;)e.writeUInt32BE(t,r),r+=4;for(;r<e.length;)e.copy(e,r,0,n),r+=n;return this}},{key:\"getRGBA\",value:function(t,e){var n=4*(e*this.bitmap.width+t);return this.bitmap.data.readUInt32BE(n)}},{key:\"getRGBASet\",value:function(){for(var t=new Set,e=this.bitmap.data,n=0;n<e.length;n+=4)t.add(e.readUInt32BE(n,!0));return t}},{key:\"greyscale\",value:function(){var t=this.bitmap.data;return this.scan(0,0,this.bitmap.width,this.bitmap.height,(function(e,n,r){var i=Math.round(.299*t[r]+.587*t[r+1]+.114*t[r+2]);t[r]=i,t[r+1]=i,t[r+2]=i})),this}},{key:\"reframe\",value:function(e,n,r,i,o){var a,s=e<0?0:e,u=n<0?0:n,l=r+s>this.bitmap.width?this.bitmap.width-s:r,c=i+u>this.bitmap.height?this.bitmap.height-u:i,h=e<0?-e:0,f=n<0?-n:0;if(void 0===o){if(s!==e||u!=n||l!==r||c!==i)throw new GifError(\"fillRGBA required for this reframing\");a=new t(r,i)}else a=new t(r,i,o);return this.blit(a,h,f,s,u,l,c),this.bitmap=a.bitmap,this}},{key:\"scale\",value:function(t){if(1!==t){if(!Number.isInteger(t)||t<1)throw new Error(\"the scale must be an integer >= 1\");for(var n,r=this.bitmap.width,i=this.bitmap.height,o=r*t*4,a=this.bitmap.data,s=new e(i*o*t),u=0,l=0,c=0;c<i;++c){n=l;for(var h=0;h<r;++h){for(var f=a.readUInt32BE(u,!0),d=0;d<t;++d)s.writeUInt32BE(f,l),l+=4;u+=4}for(var p=1;p<t;++p)s.copy(s,l,n,l),l+=o,n+=o}return this.bitmap={width:r*t,height:i*t,data:s},this}}},{key:\"scanAllCoords\",value:function(t){for(var e=this.bitmap.width,n=this.bitmap.data.length,r=0,i=0,o=0;o<n;o+=4)t(r,i,o),++r===e&&(r=0,++i)}},{key:\"scanAllIndexes\",value:function(t){for(var e=this.bitmap.data.length,n=0;n<e;n+=4)t(n)}}])&&r(i.prototype,o),a&&r(i,a),Object.defineProperty(i,\"prototype\",{writable:!1}),i;var i,o,a}();t.exports=o}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,o(r.key),r)}}function o(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}function a(t,e,n){return e=u(e),function(t,e){if(e&&(\"object\"===r(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,s()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}var c=n(57),h=(n(42).GifError,function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if(t=a(this,e,[].concat(i)),i[0]instanceof e){var s=i[0];t.xOffset=s.xOffset,t.yOffset=s.yOffset,t.disposalMethod=s.disposalMethod,t.delayCentisecs=s.delayCentisecs,t.interlaced=s.interlaced}else{var u=i[i.length-1],l={};\"object\"!==r(u)||u instanceof c||(l=u),t.xOffset=l.xOffset||0,t.yOffset=l.yOffset||0,t.disposalMethod=void 0!==l.disposalMethod?l.disposalMethod:e.DisposeToBackgroundColor,t.delayCentisecs=l.delayCentisecs||8,t.interlaced=l.interlaced||!1}return t}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&l(t,e)}(e,t),n=e,(o=[{key:\"getPalette\",value:function(){for(var t=new Set,e=this.bitmap.data,n=0,r=!1;n<e.length;){if(0===e[n+3])r=!0;else{var i=e.readUInt32BE(n,!0)>>8&16777215;t.add(i)}n+=4}var o=new Array(t.size),a=t.values();for(n=0;n<o.length;++n)o[n]=a.next().value;o.sort((function(t,e){return t-e}));var s=o.length;return r&&++s,{colors:o,usesTransparency:r,indexCount:s}}}])&&i(n.prototype,o),s&&i(n,s),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,o,s}(c));h.DisposeToAnything=0,h.DisposeNothing=1,h.DisposeToBackgroundColor=2,h.DisposeToPrevious=3,e.GifFrame=h},function(t,e,n){\"use strict\";function r(t,e,n,r){for(var i=t[e++],o=1<<i,a=o+1,s=a+1,u=i+1,l=(1<<u)-1,c=0,h=0,f=0,d=t[e++],p=new Int32Array(4096),m=null;;){for(;c<16&&0!==d;)h|=t[e++]<<c,c+=8,1===d?d=t[e++]:--d;if(c<u)break;var v=h&l;if(h>>=u,c-=u,v!==o){if(v===a)break;for(var g=v<s?v:m,y=0,b=g;b>o;)b=p[b]>>8,++y;var _=b;if(f+y+(g!==v?1:0)>r)return;n[f++]=_;var w=f+=y;for(g!==v&&(n[f++]=_),b=g;y--;)b=p[b],n[--w]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,s>=l+1&&u<12&&(++u,l=l<<1|1)),m=v}else s=a+1,l=(1<<(u=i+1))-1,m=null}return n}try{e.GifWriter=function(t,e,n,r){var i=0,o=void 0===(r=void 0===r?{}:r).loop?null:r.loop,a=void 0===r.palette?null:r.palette;if(e<=0||n<=0||e>65535||n>65535)throw new Error(\"Width/Height invalid.\");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var u=0,l=0;if(null!==a){for(var c=s(a);c>>=1;)++u;if(c=1<<u,--u,void 0!==r.background){if((l=r.background)>=c)throw new Error(\"Background index out of range.\");if(0===l)throw new Error(\"Background index explicitly passed as 0.\")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=(null!==a?128:0)|u,t[i++]=l,t[i++]=0,null!==a)for(var h=0,f=a.length;h<f;++h){var d=a[h];t[i++]=d>>16&255,t[i++]=d>>8&255,t[i++]=255&d}if(null!==o){if(o<0||o>65535)throw new Error(\"Loop count invalid.\");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var p=!1;this.addFrame=function(e,n,r,o,u,l){if(!0===p&&(--i,p=!1),l=void 0===l?{}:l,e<0||n<0||e>65535||n>65535)throw new Error(\"x/y invalid.\");if(r<=0||o<=0||r>65535||o>65535)throw new Error(\"Width/Height invalid.\");if(u.length<r*o)throw new Error(\"Not enough pixels for the frame size.\");var c=!0,h=l.palette;if(null==h&&(c=!1,h=a),null==h)throw new Error(\"Must supply either a local or global palette.\");for(var f=s(h),d=0;f>>=1;)++d;f=1<<d;var m=void 0===l.delay?0:l.delay,v=void 0===l.disposal?0:l.disposal;if(v<0||v>3)throw new Error(\"Disposal out of range.\");var g=!1,y=0;if(void 0!==l.transparent&&null!==l.transparent&&(g=!0,(y=l.transparent)<0||y>=f))throw new Error(\"Transparent color index.\");if((0!==v||g||0!==m)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=v<<2|(!0===g?1:0),t[i++]=255&m,t[i++]=m>>8&255,t[i++]=y,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===c?128|d-1:0,!0===c)for(var b=0,_=h.length;b<_;++b){var w=h[b];t[i++]=w>>16&255,t[i++]=w>>8&255,t[i++]=255&w}return i=function(t,e,n,r){t[e++]=n;var i=e++,o=1<<n,a=o-1,s=o+1,u=s+1,l=n+1,c=0,h=0;function f(n){for(;c>=n;)t[e++]=255&h,h>>=8,c-=8,e===i+256&&(t[i]=255,i=e++)}function d(t){h|=t<<c,c+=l,f(8)}var p=r[0]&a,m={};d(o);for(var v=1,g=r.length;v<g;++v){var y=r[v]&a,b=p<<8|y,_=m[b];if(void 0===_){for(h|=p<<c,c+=l;c>=8;)t[e++]=255&h,h>>=8,c-=8,e===i+256&&(t[i]=255,i=e++);4096===u?(d(o),u=s+1,l=n+1,m={}):(u>=1<<l&&++l,m[b]=u++),p=y}else p=_}return d(p),d(s),f(1),i+1===e?t[i]=0:(t[i]=e-i-1,t[e++]=0),e}(t,i,d<2?2:d,u),i},this.end=function(){return!1===p&&(t[i++]=59,p=!0),i},this.getOutputBuffer=function(){return t},this.setOutputBuffer=function(e){t=e},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(t){i=t}},e.GifReader=function(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var n=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,o=t[e++],a=o>>7,s=1<<1+(7&o);t[e++],t[e++];var u=null,l=null;a&&(u=e,l=s,e+=3*s);var c=!0,h=[],f=0,d=null,p=0,m=null;for(this.width=n,this.height=i;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,m=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((A=t[e++])>=0))throw Error(\"Invalid block size\");if(0===A)break;e+=A}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error(\"Invalid graphics extension block.\");var v=t[e++];f=t[e++]|t[e++]<<8,d=t[e++],1&v||(d=null),p=v>>2&7,e++;break;case 254:for(;;){if(!((A=t[e++])>=0))throw Error(\"Invalid block size\");if(0===A)break;e+=A}break;default:throw new Error(\"Unknown graphic control label: 0x\"+t[e-1].toString(16))}break;case 44:var g=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,_=t[e++]|t[e++]<<8,w=t[e++],x=w>>6&1,k=1<<1+(7&w),S=u,C=l,E=!1;w>>7&&(E=!0,S=e,C=k,e+=3*k);var D=e;for(e++;;){var A;if(!((A=t[e++])>=0))throw Error(\"Invalid block size\");if(0===A)break;e+=A}h.push({x:g,y,width:b,height:_,has_local_palette:E,palette_offset:S,palette_size:C,data_offset:D,data_length:e-D,transparent_index:d,interlaced:!!x,delay:f,disposal:p});break;case 59:c=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+t[e-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return m},this.frameInfo=function(t){if(t<0||t>=h.length)throw new Error(\"Frame index out of range.\");return h[t]},this.decodeAndBlitFrameBGRA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);r(t,o.data_offset,s,a);var u=o.palette_offset,l=o.transparent_index;null===l&&(l=256);var c=o.width,h=n-c,f=c,d=4*(o.y*n+o.x),p=4*((o.y+o.height)*n+o.x),m=d,v=4*h;!0===o.interlaced&&(v+=4*n*7);for(var g=8,y=0,b=s.length;y<b;++y){var _=s[y];if(0===f&&(f=c,(m+=v)>=p&&(v=4*h+4*n*(g-1),m=d+(c+h)*(g<<1),g>>=1)),_===l)m+=4;else{var w=t[u+3*_],x=t[u+3*_+1],k=t[u+3*_+2];i[m++]=k,i[m++]=x,i[m++]=w,i[m++]=255}--f}},this.decodeAndBlitFrameRGBA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);r(t,o.data_offset,s,a);var u=o.palette_offset,l=o.transparent_index;null===l&&(l=256);var c=o.width,h=n-c,f=c,d=4*(o.y*n+o.x),p=4*((o.y+o.height)*n+o.x),m=d,v=4*h;!0===o.interlaced&&(v+=4*n*7);for(var g=8,y=0,b=s.length;y<b;++y){var _=s[y];if(0===f&&(f=c,(m+=v)>=p&&(v=4*h+4*n*(g-1),m=d+(c+h)*(g<<1),g>>=1)),_===l)m+=4;else{var w=t[u+3*_],x=t[u+3*_+1],k=t[u+3*_+2];i[m++]=w,i[m++]=x,i[m++]=k,i[m++]=255}--f}}}}catch(t){}},function(t,e,n){\"use strict\";n.r(e),function(t,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=Object.freeze({});function o(t){return null==t}function a(t){return null!=t}function s(t){return!0===t}function u(t){return\"string\"==typeof t||\"number\"==typeof t||\"symbol\"===r(t)||\"boolean\"==typeof t}function l(t){return null!==t&&\"object\"===r(t)}var c=Object.prototype.toString;function h(t){return\"[object Object]\"===c.call(t)}function f(t){return\"[object RegExp]\"===c.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return a(t)&&\"function\"==typeof t.then&&\"function\"==typeof t.catch}function m(t){return null==t?\"\":Array.isArray(t)||h(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),r=t.split(\",\"),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}g(\"slot,component\",!0);var y=g(\"key,ref,slot,slot-scope,is\");function b(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function w(t,e){return _.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var k=/-(\\w)/g,S=x((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():\"\"}))})),C=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),E=/\\B([A-Z])/g,D=x((function(t){return t.replace(E,\"-$1\").toLowerCase()}));var A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function O(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function M(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n<t.length;n++)t[n]&&M(e,t[n]);return e}function I(t,e,n){}var P=function(t,e,n){return!1},F=function(t){return t};function j(t,e){if(t===e)return!0;var n=l(t),r=l(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return j(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return j(t[n],e[n])}))}catch(t){return!1}}function N(t,e){for(var n=0;n<t.length;n++)if(j(t[n],e))return n;return-1}function L(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var B=\"data-server-rendered\",$=[\"component\",\"directive\",\"filter\"],z=[\"beforeCreate\",\"created\",\"beforeMount\",\"mounted\",\"beforeUpdate\",\"updated\",\"beforeDestroy\",\"destroyed\",\"activated\",\"deactivated\",\"errorCaptured\",\"serverPrefetch\"],R={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:I,parsePlatformTagName:F,mustUseProp:P,async:!0,_lifecycleHooks:z},U=/a-zA-Z\\u00B7\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD/;function V(t){var e=(t+\"\").charCodeAt(0);return 36===e||95===e}function H(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var G=new RegExp(\"[^\"+U.source+\".$_\\\\d]\");var q,W=\"__proto__\"in{},Y=\"undefined\"!=typeof window,Z=\"undefined\"!=typeof WXEnvironment&&!!WXEnvironment.platform,K=Z&&WXEnvironment.platform.toLowerCase(),X=Y&&window.navigator.userAgent.toLowerCase(),J=X&&/msie|trident/.test(X),Q=X&&X.indexOf(\"msie 9.0\")>0,tt=X&&X.indexOf(\"edge/\")>0,et=(X&&X.indexOf(\"android\"),X&&/iphone|ipad|ipod|ios/.test(X)||\"ios\"===K),nt=(X&&/chrome\\/\\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\\/(\\d+)/)),rt={}.watch,it=!1;if(Y)try{var ot={};Object.defineProperty(ot,\"passive\",{get:function(){it=!0}}),window.addEventListener(\"test-passive\",null,ot)}catch(t){}var at=function(){return void 0===q&&(q=!Y&&!Z&&void 0!==t&&(t.process&&\"server\"===t.process.env.VUE_ENV)),q},st=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return\"function\"==typeof t&&/native code/.test(t.toString())}var lt,ct=\"undefined\"!=typeof Symbol&&ut(Symbol)&&\"undefined\"!=typeof Reflect&&ut(Reflect.ownKeys);lt=\"undefined\"!=typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ht=I,ft=0,dt=function(){this.id=ft++,this.subs=[]};dt.prototype.addSub=function(t){this.subs.push(t)},dt.prototype.removeSub=function(t){b(this.subs,t)},dt.prototype.depend=function(){dt.target&&dt.target.addDep(this)},dt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},dt.target=null;var pt=[];function mt(t){pt.push(t),dt.target=t}function vt(){pt.pop(),dt.target=pt[pt.length-1]}var gt=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},yt={child:{configurable:!0}};yt.child.get=function(){return this.componentInstance},Object.defineProperties(gt.prototype,yt);var bt=function(t){void 0===t&&(t=\"\");var e=new gt;return e.text=t,e.isComment=!0,e};function _t(t){return new gt(void 0,void 0,void 0,String(t))}function wt(t){var e=new gt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var xt=Array.prototype,kt=Object.create(xt);[\"push\",\"pop\",\"shift\",\"unshift\",\"splice\",\"sort\",\"reverse\"].forEach((function(t){var e=xt[t];H(kt,t,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case\"push\":case\"unshift\":i=n;break;case\"splice\":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var St=Object.getOwnPropertyNames(kt),Ct=!0;function Et(t){Ct=t}var Dt=function(t){this.value=t,this.dep=new dt,this.vmCount=0,H(t,\"__ob__\",this),Array.isArray(t)?(W?function(t,e){t.__proto__=e}(t,kt):function(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];H(t,o,e[o])}}(t,kt,St),this.observeArray(t)):this.walk(t)};function At(t,e){var n;if(l(t)&&!(t instanceof gt))return w(t,\"__ob__\")&&t.__ob__ instanceof Dt?n=t.__ob__:Ct&&!at()&&(Array.isArray(t)||h(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Dt(t)),e&&n&&n.vmCount++,n}function Ot(t,e,n,r,i){var o=new dt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(n=t[e]);var l=!i&&At(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return dt.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(e)&&It(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!=e&&r!=r||s&&!u||(u?u.call(t,e):n=e,l=!i&&At(e),o.notify())}})}}function Mt(t,e,n){if(Array.isArray(t)&&d(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Ot(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Tt(t,e){if(Array.isArray(t)&&d(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||w(t,e)&&(delete t[e],n&&n.dep.notify())}}function It(t){for(var e=void 0,n=0,r=t.length;n<r;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&It(e)}Dt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Ot(t,e[n])},Dt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)At(t[e])};var Pt=R.optionMergeStrategies;function Ft(t,e){if(!e)return t;for(var n,r,i,o=ct?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)\"__ob__\"!==(n=o[a])&&(r=t[n],i=e[n],w(t,n)?r!==i&&h(r)&&h(i)&&Ft(r,i):Mt(t,n,i));return t}function jt(t,e,n){return n?function(){var r=\"function\"==typeof e?e.call(n,n):e,i=\"function\"==typeof t?t.call(n,n):t;return r?Ft(r,i):i}:e?t?function(){return Ft(\"function\"==typeof e?e.call(this,this):e,\"function\"==typeof t?t.call(this,this):t)}:e:t}function Nt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Lt(t,e,n,r){var i=Object.create(t||null);return e?M(i,e):i}Pt.data=function(t,e,n){return n?jt(t,e,n):e&&\"function\"!=typeof e?t:jt(t,e)},z.forEach((function(t){Pt[t]=Nt})),$.forEach((function(t){Pt[t+\"s\"]=Lt})),Pt.watch=function(t,e,n,r){if(t===rt&&(t=void 0),e===rt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in M(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Pt.props=Pt.methods=Pt.inject=Pt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return M(i,t),e&&M(i,e),i},Pt.provide=jt;var Bt=function(t,e){return void 0===e?t:e};function $t(t,e,n){if(\"function\"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)\"string\"==typeof(i=n[r])&&(o[S(i)]={type:null});else if(h(n))for(var a in n)i=n[a],o[S(a)]=h(i)?i:{type:i};t.props=o}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(h(n))for(var o in n){var a=n[o];r[o]=h(a)?M({from:o},a):{from:a}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];\"function\"==typeof r&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=$t(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=$t(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)w(t,o)||s(o);function s(r){var i=Pt[r]||Bt;a[r]=i(t[r],e[r],n,r)}return a}function zt(t,e,n,r){if(\"string\"==typeof n){var i=t[e];if(w(i,n))return i[n];var o=S(n);if(w(i,o))return i[o];var a=C(o);return w(i,a)?i[a]:i[n]||i[o]||i[a]}}function Rt(t,e,n,r){var i=e[t],o=!w(n,t),a=n[t],s=Gt(Boolean,i.type);if(s>-1)if(o&&!w(i,\"default\"))a=!1;else if(\"\"===a||a===D(t)){var u=Gt(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(!w(e,\"default\"))return;var r=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return\"function\"==typeof r&&\"Function\"!==Vt(e.type)?r.call(t):r}(r,i,t);var l=Ct;Et(!0),At(a),Et(l)}return a}var Ut=/^\\s*function (\\w+)/;function Vt(t){var e=t&&t.toString().match(Ut);return e?e[1]:\"\"}function Ht(t,e){return Vt(t)===Vt(e)}function Gt(t,e){if(!Array.isArray(e))return Ht(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Ht(e[n],t))return n;return-1}function qt(t,e,n){mt();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,t,e,n))return}catch(t){Yt(t,r,\"errorCaptured hook\")}}Yt(t,e,n)}finally{vt()}}function Wt(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&p(o)&&!o._handled&&(o.catch((function(t){return qt(t,r,i+\" (Promise/async)\")})),o._handled=!0)}catch(t){qt(t,r,i)}return o}function Yt(t,e,n){if(R.errorHandler)try{return R.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Zt(e,null,\"config.errorHandler\")}Zt(t,e,n)}function Zt(t,e,n){if(!Y&&!Z||\"undefined\"==typeof console)throw t}var Kt,Xt=!1,Jt=[],Qt=!1;function te(){Qt=!1;var t=Jt.slice(0);Jt.length=0;for(var e=0;e<t.length;e++)t[e]()}if(\"undefined\"!=typeof Promise&&ut(Promise)){var ee=Promise.resolve();Kt=function(){ee.then(te),et&&setTimeout(I)},Xt=!0}else if(J||\"undefined\"==typeof MutationObserver||!ut(MutationObserver)&&\"[object MutationObserverConstructor]\"!==MutationObserver.toString())Kt=void 0!==n&&ut(n)?function(){n(te)}:function(){setTimeout(te,0)};else{var ne=1,re=new MutationObserver(te),ie=document.createTextNode(String(ne));re.observe(ie,{characterData:!0}),Kt=function(){ne=(ne+1)%2,ie.data=String(ne)},Xt=!0}function oe(t,e){var n;if(Jt.push((function(){if(t)try{t.call(e)}catch(t){qt(t,e,\"nextTick\")}else n&&n(e)})),Qt||(Qt=!0,Kt()),!t&&\"undefined\"!=typeof Promise)return new Promise((function(t){n=t}))}var ae=new lt;function se(t){ue(t,ae),ae.clear()}function ue(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!l(t)||Object.isFrozen(t)||t instanceof gt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)ue(t[n],e);else for(n=(r=Object.keys(t)).length;n--;)ue(t[r[n]],e)}}var le=x((function(t){var e=\"&\"===t.charAt(0),n=\"~\"===(t=e?t.slice(1):t).charAt(0),r=\"!\"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function ce(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return Wt(r,null,arguments,e,\"v-on handler\");for(var i=r.slice(),o=0;o<i.length;o++)Wt(i[o],null,t,e,\"v-on handler\")}return n.fns=t,n}function he(t,e,n,r,i,a){var u,l,c,h;for(u in t)l=t[u],c=e[u],h=le(u),o(l)||(o(c)?(o(l.fns)&&(l=t[u]=ce(l,a)),s(h.once)&&(l=t[u]=i(h.name,l,h.capture)),n(h.name,l,h.capture,h.passive,h.params)):l!==c&&(c.fns=l,t[u]=c));for(u in e)o(t[u])&&r((h=le(u)).name,e[u],h.capture)}function fe(t,e,n){var r;t instanceof gt&&(t=t.data.hook||(t.data.hook={}));var i=t[e];function u(){n.apply(this,arguments),b(r.fns,u)}o(i)?r=ce([u]):a(i.fns)&&s(i.merged)?(r=i).fns.push(u):r=ce([i,u]),r.merged=!0,t[e]=r}function de(t,e,n,r,i){if(a(e)){if(w(e,n))return t[n]=e[n],i||delete e[n],!0;if(w(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function pe(t){return u(t)?[_t(t)]:Array.isArray(t)?ve(t):void 0}function me(t){return a(t)&&a(t.text)&&!1===t.isComment}function ve(t,e){var n,r,i,l,c=[];for(n=0;n<t.length;n++)o(r=t[n])||\"boolean\"==typeof r||(l=c[i=c.length-1],Array.isArray(r)?r.length>0&&(me((r=ve(r,(e||\"\")+\"_\"+n))[0])&&me(l)&&(c[i]=_t(l.text+r[0].text),r.shift()),c.push.apply(c,r)):u(r)?me(l)?c[i]=_t(l.text+r):\"\"!==r&&c.push(_t(r)):me(r)&&me(l)?c[i]=_t(l.text+r.text):(s(t._isVList)&&a(r.tag)&&o(r.key)&&a(e)&&(r.key=\"__vlist\"+e+\"_\"+n+\"__\"),c.push(r)));return c}function ge(t,e){if(t){for(var n=Object.create(null),r=ct?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if(\"__ob__\"!==o){for(var a=t[o].from,s=e;s;){if(s._provided&&w(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if(\"default\"in t[o]){var u=t[o].default;n[o]=\"function\"==typeof u?u.call(e):u}else 0}}return n}}function ye(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,u=n[s]||(n[s]=[]);\"template\"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var l in n)n[l].every(be)&&delete n[l];return n}function be(t){return t.isComment&&!t.asyncFactory||\" \"===t.text}function _e(t){return t.isComment&&t.asyncFactory}function we(t,e,n){var r,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==i&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var u in r={},t)t[u]&&\"$\"!==u[0]&&(r[u]=xe(e,u,t[u]))}else r={};for(var l in e)l in r||(r[l]=ke(e,l));return t&&Object.isExtensible(t)&&(t._normalized=r),H(r,\"$stable\",a),H(r,\"$key\",s),H(r,\"$hasNormal\",o),r}function xe(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&\"object\"===r(t)&&!Array.isArray(t)?[t]:pe(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!_e(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function ke(t,e){return function(){return t[e]}}function Se(t,e){var n,r,i,o,s;if(Array.isArray(t)||\"string\"==typeof t)for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);else if(\"number\"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(l(t))if(ct&&t[Symbol.iterator]){n=[];for(var u=t[Symbol.iterator](),c=u.next();!c.done;)n.push(e(c.value,n.length)),c=u.next()}else for(o=Object.keys(t),n=new Array(o.length),r=0,i=o.length;r<i;r++)s=o[r],n[r]=e(t[s],s,r);return a(n)||(n=[]),n._isVList=!0,n}function Ce(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=M(M({},r),n)),i=o(n)||(\"function\"==typeof e?e():e)):i=this.$slots[t]||(\"function\"==typeof e?e():e);var a=n&&n.slot;return a?this.$createElement(\"template\",{slot:a},i):i}function Ee(t){return zt(this.$options,\"filters\",t)||F}function De(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Ae(t,e,n,r,i){var o=R.keyCodes[e]||n;return i&&r&&!R.keyCodes[e]?De(i,r):o?De(o,t):r?D(r)!==e:void 0===t}function Oe(t,e,n,r,i){if(n)if(l(n)){var o;Array.isArray(n)&&(n=T(n));var a=function(a){if(\"class\"===a||\"style\"===a||y(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||R.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var u=S(a),l=D(a);u in o||l in o||(o[a]=n[a],i&&((t.on||(t.on={}))[\"update:\"+a]=function(t){n[a]=t}))};for(var s in n)a(s)}else;return t}function Me(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||Ie(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),\"__static__\"+t,!1),r}function Te(t,e,n){return Ie(t,\"__once__\"+e+(n?\"_\"+n:\"\"),!0),t}function Ie(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&\"string\"!=typeof t[r]&&Pe(t[r],e+\"_\"+r,n);else Pe(t,e,n)}function Pe(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Fe(t,e){if(e)if(h(e)){var n=t.on=t.on?M({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function je(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?je(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ne(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];\"string\"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Le(t,e){return\"string\"==typeof t?e+t:t}function Be(t){t._o=Te,t._n=v,t._s=m,t._l=Se,t._t=Ce,t._q=j,t._i=N,t._m=Me,t._f=Ee,t._k=Ae,t._b=Oe,t._v=_t,t._e=bt,t._u=je,t._g=Fe,t._d=Ne,t._p=Le}function $e(t,e,n,r,o){var a,u=this,l=o.options;w(r,\"_uid\")?(a=Object.create(r))._original=r:(a=r,r=r._original);var c=s(l._compiled),h=!c;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||i,this.injections=ge(l.inject,r),this.slots=function(){return u.$slots||we(t.scopedSlots,u.$slots=ye(n,r)),u.$slots},Object.defineProperty(this,\"scopedSlots\",{enumerable:!0,get:function(){return we(t.scopedSlots,this.slots())}}),c&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=we(t.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,e,n,i){var o=Ye(a,t,e,n,i,h);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=r),o}:this._c=function(t,e,n,r){return Ye(a,t,e,n,r,h)}}function ze(t,e,n,r,i){var o=wt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Re(t,e){for(var n in e)t[S(n)]=e[n]}Be($e.prototype);var Ue={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Ue.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,on)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,r,o){0;var a=r.data.scopedSlots,s=t.$scopedSlots,u=!!(a&&!a.$stable||s!==i&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key||!a&&t.$scopedSlots.$key),l=!!(o||t.$options._renderChildren||u);t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r);if(t.$options._renderChildren=o,t.$attrs=r.data.attrs||i,t.$listeners=n||i,e&&t.$options.props){Et(!1);for(var c=t._props,h=t.$options._propKeys||[],f=0;f<h.length;f++){var d=h[f],p=t.$options.props;c[d]=Rt(d,p,e,t)}Et(!0),t.$options.propsData=e}n=n||i;var m=t.$options._parentListeners;t.$options._parentListeners=n,rn(t,n,m),l&&(t.$slots=ye(o,r.context),t.$forceUpdate());0}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,cn(r,\"mounted\")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,fn.push(e)):un(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?ln(e,!0):e.$destroy())}},Ve=Object.keys(Ue);function He(t,e,n,r,u){if(!o(t)){var c=n.$options._base;if(l(t)&&(t=c.extend(t)),\"function\"==typeof t){var h;if(o(t.cid)&&(t=function(t,e){if(s(t.error)&&a(t.errorComp))return t.errorComp;if(a(t.resolved))return t.resolved;var n=Xe;n&&a(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n);if(s(t.loading)&&a(t.loadingComp))return t.loadingComp;if(n&&!a(t.owners)){var r=t.owners=[n],i=!0,u=null,c=null;n.$on(\"hook:destroyed\",(function(){return b(r,n)}));var h=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},f=L((function(n){t.resolved=Je(n,e),i?r.length=0:h(!0)})),d=L((function(e){a(t.errorComp)&&(t.error=!0,h(!0))})),m=t(f,d);return l(m)&&(p(m)?o(t.resolved)&&m.then(f,d):p(m.component)&&(m.component.then(f,d),a(m.error)&&(t.errorComp=Je(m.error,e)),a(m.loading)&&(t.loadingComp=Je(m.loading,e),0===m.delay?t.loading=!0:u=setTimeout((function(){u=null,o(t.resolved)&&o(t.error)&&(t.loading=!0,h(!1))}),m.delay||200)),a(m.timeout)&&(c=setTimeout((function(){c=null,o(t.resolved)&&d(null)}),m.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(h=t,c),void 0===t))return function(t,e,n,r,i){var o=bt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(h,e,n,r,u);e=e||{},In(t),a(e.model)&&function(t,e){var n=t.model&&t.model.prop||\"value\",r=t.model&&t.model.event||\"input\";(e.attrs||(e.attrs={}))[n]=e.model.value;var i=e.on||(e.on={}),o=i[r],s=e.model.callback;a(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(i[r]=[s].concat(o)):i[r]=s}(t.options,e);var f=function(t,e,n){var r=e.options.props;if(!o(r)){var i={},s=t.attrs,u=t.props;if(a(s)||a(u))for(var l in r){var c=D(l);de(i,u,l,c,!0)||de(i,s,l,c,!1)}return i}}(e,t);if(s(t.options.functional))return function(t,e,n,r,o){var s=t.options,u={},l=s.props;if(a(l))for(var c in l)u[c]=Rt(c,l,e||i);else a(n.attrs)&&Re(u,n.attrs),a(n.props)&&Re(u,n.props);var h=new $e(n,u,o,r,t),f=s.render.call(null,h._c,h);if(f instanceof gt)return ze(f,n,h.parent,s);if(Array.isArray(f)){for(var d=pe(f)||[],p=new Array(d.length),m=0;m<d.length;m++)p[m]=ze(d[m],n,h.parent,s);return p}}(t,f,e,n,r);var d=e.on;if(e.on=e.nativeOn,s(t.options.abstract)){var m=e.slot;e={},m&&(e.slot=m)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<Ve.length;n++){var r=Ve[n],i=e[r],o=Ue[r];i===o||i&&i._merged||(e[r]=i?Ge(o,i):o)}}(e);var v=t.options.name||u;return new gt(\"vue-component-\"+t.cid+(v?\"-\"+v:\"\"),e,void 0,void 0,void 0,n,{Ctor:t,propsData:f,listeners:d,tag:u,children:r},h)}}}function Ge(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}var qe=1,We=2;function Ye(t,e,n,r,i,o){return(Array.isArray(n)||u(n))&&(i=r,r=n,n=void 0),s(o)&&(i=We),function(t,e,n,r,i){if(a(n)&&a(n.__ob__))return bt();a(n)&&a(n.is)&&(e=n.is);if(!e)return bt();0;Array.isArray(r)&&\"function\"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);i===We?r=pe(r):i===qe&&(r=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(r));var o,s;if(\"string\"==typeof e){var u;s=t.$vnode&&t.$vnode.ns||R.getTagNamespace(e),o=R.isReservedTag(e)?new gt(R.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!a(u=zt(t.$options,\"components\",e))?new gt(e,n,r,void 0,void 0,t):He(u,n,t,r,e)}else o=He(e,n,t,r);return Array.isArray(o)?o:a(o)?(a(s)&&Ze(o,s),a(n)&&function(t){l(t.style)&&se(t.style);l(t.class)&&se(t.class)}(n),o):bt()}(t,e,n,r,i)}function Ze(t,e,n){if(t.ns=e,\"foreignObject\"===t.tag&&(e=void 0,n=!0),a(t.children))for(var r=0,i=t.children.length;r<i;r++){var u=t.children[r];a(u.tag)&&(o(u.ns)||s(n)&&\"svg\"!==u.tag)&&Ze(u,e,n)}}var Ke,Xe=null;function Je(t,e){return(t.__esModule||ct&&\"Module\"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function Qe(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(a(n)&&(a(n.componentOptions)||_e(n)))return n}}function tn(t,e){Ke.$on(t,e)}function en(t,e){Ke.$off(t,e)}function nn(t,e){var n=Ke;return function r(){null!==e.apply(null,arguments)&&n.$off(t,r)}}function rn(t,e,n){Ke=t,he(e,n||{},tn,en,nn,t),Ke=void 0}var on=null;function an(t){var e=on;return on=t,function(){on=e}}function sn(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function un(t,e){if(e){if(t._directInactive=!1,sn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)un(t.$children[n]);cn(t,\"activated\")}}function ln(t,e){if(!(e&&(t._directInactive=!0,sn(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)ln(t.$children[n]);cn(t,\"deactivated\")}}function cn(t,e){mt();var n=t.$options[e],r=e+\" hook\";if(n)for(var i=0,o=n.length;i<o;i++)Wt(n[i],t,null,t,r);t._hasHookEvent&&t.$emit(\"hook:\"+e),vt()}var hn=[],fn=[],dn={},pn=!1,mn=!1,vn=0;var gn=0,yn=Date.now;if(Y&&!J){var bn=window.performance;bn&&\"function\"==typeof bn.now&&yn()>document.createEvent(\"Event\").timeStamp&&(yn=function(){return bn.now()})}function _n(){var t,e;for(gn=yn(),mn=!0,hn.sort((function(t,e){return t.id-e.id})),vn=0;vn<hn.length;vn++)(t=hn[vn]).before&&t.before(),e=t.id,dn[e]=null,t.run();var n=fn.slice(),r=hn.slice();vn=hn.length=fn.length=0,dn={},pn=mn=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,un(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&cn(r,\"updated\")}}(r),st&&R.devtools&&st.emit(\"flush\")}var wn=0,xn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++wn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new lt,this.newDepIds=new lt,this.expression=\"\",\"function\"==typeof e?this.getter=e:(this.getter=function(t){if(!G.test(t)){var e=t.split(\".\");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()};xn.prototype.get=function(){var t;mt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;qt(t,e,'getter for watcher \"'+this.expression+'\"')}finally{this.deep&&se(t),vt(),this.cleanupDeps()}return t},xn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},xn.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},xn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==dn[e]){if(dn[e]=!0,mn){for(var n=hn.length-1;n>vn&&hn[n].id>t.id;)n--;hn.splice(n+1,0,t)}else hn.push(t);pn||(pn=!0,oe(_n))}}(this)},xn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher \"'+this.expression+'\"';Wt(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},xn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},xn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},xn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var kn={enumerable:!0,configurable:!0,get:I,set:I};function Sn(t,e,n){kn.get=function(){return this[e][n]},kn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,kn)}function Cn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Et(!1);var a=function(o){i.push(o);var a=Rt(o,e,n,t);Ot(r,o,a),o in t||Sn(t,\"_props\",o)};for(var s in e)a(s);Et(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]=\"function\"!=typeof e[n]?I:A(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;e=t._data=\"function\"==typeof e?function(t,e){mt();try{return t.call(e,e)}catch(t){return qt(t,e,\"data()\"),{}}finally{vt()}}(e,t):e||{},h(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&w(r,o)||V(o)||Sn(t,\"_data\",o)}At(e,!0)}(t):At(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=at();for(var i in e){var o=e[i],a=\"function\"==typeof o?o:o.get;0,r||(n[i]=new xn(t,a||I,I,En)),i in t||Dn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==rt&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Mn(t,n,r[i]);else Mn(t,n,r)}}(t,e.watch)}var En={lazy:!0};function Dn(t,e,n){var r=!at();\"function\"==typeof n?(kn.get=r?An(e):On(n),kn.set=I):(kn.get=n.get?r&&!1!==n.cache?An(e):On(n.get):I,kn.set=n.set||I),Object.defineProperty(t,e,kn)}function An(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),dt.target&&e.depend(),e.value}}function On(t){return function(){return t.call(this,this)}}function Mn(t,e,n,r){return h(n)&&(r=n,n=n.handler),\"string\"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var Tn=0;function In(t){var e=t.options;if(t.super){var n=In(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&M(t.extendOptions,r),(e=t.options=$t(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Pn(t){this._init(t)}function Fn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=$t(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)Sn(t.prototype,\"_props\",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)Dn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,$.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=M({},a.options),i[r]=a,a}}function jn(t){return t&&(t.Ctor.options.name||t.tag)}function Nn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:\"string\"==typeof t?t.split(\",\").indexOf(e)>-1:!!f(t)&&t.test(e)}function Ln(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!e(s)&&Bn(n,o,r,i)}}}function Bn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,b(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Tn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=$t(In(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&rn(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=ye(e._renderChildren,r),t.$scopedSlots=i,t._c=function(e,n,r,i){return Ye(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Ye(t,e,n,r,i,!0)};var o=n&&n.data;Ot(t,\"$attrs\",o&&o.attrs||i,null,!0),Ot(t,\"$listeners\",e._parentListeners||i,null,!0)}(e),cn(e,\"beforeCreate\"),function(t){var e=ge(t.$options.inject,t);e&&(Et(!1),Object.keys(e).forEach((function(n){Ot(t,n,e[n])})),Et(!0))}(e),Cn(e),function(t){var e=t.$options.provide;e&&(t._provided=\"function\"==typeof e?e.call(t):e)}(e),cn(e,\"created\"),e.$options.el&&e.$mount(e.$options.el)}}(Pn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,\"$data\",e),Object.defineProperty(t.prototype,\"$props\",n),t.prototype.$set=Mt,t.prototype.$delete=Tt,t.prototype.$watch=function(t,e,n){var r=this;if(h(e))return Mn(r,t,e,n);(n=n||{}).user=!0;var i=new xn(r,t,e,n);if(n.immediate){var o='callback for immediate watcher \"'+i.expression+'\"';mt(),Wt(e,r,[i.value],r,o),vt()}return function(){i.teardown()}}}(Pn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;for(var s=a.length;s--;)if((o=a[s])===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?O(n):n;for(var r=O(arguments,1),i='event handler for \"'+t+'\"',o=0,a=n.length;o<a;o++)Wt(n[o],e,r,e,i)}return e}}(Pn),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=an(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){cn(t,\"beforeDestroy\"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||b(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),cn(t,\"destroyed\"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(Pn),function(t){Be(t.prototype),t.prototype.$nextTick=function(t){return oe(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=we(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{Xe=e,t=r.call(e._renderProxy,e.$createElement)}catch(n){qt(n,e,\"render\"),t=e._vnode}finally{Xe=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof gt||(t=bt()),t.parent=i,t}}(Pn);var $n=[String,RegExp,Array],zn={name:\"keep-alive\",abstract:!0,props:{include:$n,exclude:$n,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,r=t.vnodeToCache,i=t.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;e[i]={name:jn(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&Bn(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Bn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch(\"include\",(function(e){Ln(t,(function(t){return Nn(e,t)}))})),this.$watch(\"exclude\",(function(e){Ln(t,(function(t){return!Nn(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Qe(t),n=e&&e.componentOptions;if(n){var r=jn(n),i=this.include,o=this.exclude;if(i&&(!r||!Nn(i,r))||o&&r&&Nn(o,r))return e;var a=this.cache,s=this.keys,u=null==e.key?n.Ctor.cid+(n.tag?\"::\"+n.tag:\"\"):e.key;a[u]?(e.componentInstance=a[u].componentInstance,b(s,u),s.push(u)):(this.vnodeToCache=e,this.keyToCache=u),e.data.keepAlive=!0}return e||t&&t[0]}},Rn={KeepAlive:zn};!function(t){var e={get:function(){return R}};Object.defineProperty(t,\"config\",e),t.util={warn:ht,extend:M,mergeOptions:$t,defineReactive:Ot},t.set=Mt,t.delete=Tt,t.nextTick=oe,t.observable=function(t){return At(t),t},t.options=Object.create(null),$.forEach((function(e){t.options[e+\"s\"]=Object.create(null)})),t.options._base=t,M(t.options.components,Rn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=O(arguments,1);return n.unshift(this),\"function\"==typeof t.install?t.install.apply(t,n):\"function\"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=$t(this.options,t),this}}(t),Fn(t),function(t){$.forEach((function(e){t[e]=function(t,n){return n?(\"component\"===e&&h(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),\"directive\"===e&&\"function\"==typeof n&&(n={bind:n,update:n}),this.options[e+\"s\"][t]=n,n):this.options[e+\"s\"][t]}}))}(t)}(Pn),Object.defineProperty(Pn.prototype,\"$isServer\",{get:at}),Object.defineProperty(Pn.prototype,\"$ssrContext\",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Pn,\"FunctionalRenderContext\",{value:$e}),Pn.version=\"2.6.14\";var Un=g(\"style,class\"),Vn=g(\"input,textarea,option,select,progress\"),Hn=g(\"contenteditable,draggable,spellcheck\"),Gn=g(\"events,caret,typing,plaintext-only\"),qn=function(t,e){return Xn(e)||\"false\"===e?\"false\":\"contenteditable\"===t&&Gn(e)?e:\"true\"},Wn=g(\"allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible\"),Yn=\"http://www.w3.org/1999/xlink\",Zn=function(t){return\":\"===t.charAt(5)&&\"xlink\"===t.slice(0,5)},Kn=function(t){return Zn(t)?t.slice(6,t.length):\"\"},Xn=function(t){return null==t||!1===t};function Jn(t){for(var e=t.data,n=t,r=t;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Qn(r.data,e));for(;a(n=n.parent);)n&&n.data&&(e=Qn(e,n.data));return function(t,e){if(a(t)||a(e))return tr(t,er(e));return\"\"}(e.staticClass,e.class)}function Qn(t,e){return{staticClass:tr(t.staticClass,e.staticClass),class:a(t.class)?[t.class,e.class]:e.class}}function tr(t,e){return t?e?t+\" \"+e:t:e||\"\"}function er(t){return Array.isArray(t)?function(t){for(var e,n=\"\",r=0,i=t.length;r<i;r++)a(e=er(t[r]))&&\"\"!==e&&(n&&(n+=\" \"),n+=e);return n}(t):l(t)?function(t){var e=\"\";for(var n in t)t[n]&&(e&&(e+=\" \"),e+=n);return e}(t):\"string\"==typeof t?t:\"\"}var nr={svg:\"http://www.w3.org/2000/svg\",math:\"http://www.w3.org/1998/Math/MathML\"},rr=g(\"html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot\"),ir=g(\"svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view\",!0),or=function(t){return rr(t)||ir(t)};var ar=Object.create(null);var sr=g(\"text,number,password,search,email,tel,url\");var ur=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return\"select\"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute(\"multiple\",\"multiple\"),n},createElementNS:function(t,e){return document.createElementNS(nr[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,\"\")}}),lr={create:function(t,e){cr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(cr(t,!0),cr(e))},destroy:function(t){cr(t,!0)}};function cr(t,e){var n=t.data.ref;if(a(n)){var r=t.context,i=t.componentInstance||t.elm,o=r.$refs;e?Array.isArray(o[n])?b(o[n],i):o[n]===i&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}var hr=new gt(\"\",{},[]),fr=[\"create\",\"activate\",\"update\",\"remove\",\"destroy\"];function dr(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&a(t.data)===a(e.data)&&function(t,e){if(\"input\"!==t.tag)return!0;var n,r=a(n=t.data)&&a(n=n.attrs)&&n.type,i=a(n=e.data)&&a(n=n.attrs)&&n.type;return r===i||sr(r)&&sr(i)}(t,e)||s(t.isAsyncPlaceholder)&&o(e.asyncFactory.error))}function pr(t,e,n){var r,i,o={};for(r=e;r<=n;++r)a(i=t[r].key)&&(o[i]=r);return o}var mr={create:vr,update:vr,destroy:function(t){vr(t,hr)}};function vr(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===hr,a=e===hr,s=yr(t.data.directives,t.context),u=yr(e.data.directives,e.context),l=[],c=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,i.oldArg=r.arg,_r(i,\"update\",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(_r(i,\"bind\",e,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var h=function(){for(var n=0;n<l.length;n++)_r(l[n],\"inserted\",e,t)};o?fe(e,\"insert\",h):h()}c.length&&fe(e,\"postpatch\",(function(){for(var n=0;n<c.length;n++)_r(c[n],\"componentUpdated\",e,t)}));if(!o)for(n in s)u[n]||_r(s[n],\"unbind\",t,t,a)}(t,e)}var gr=Object.create(null);function yr(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)(r=t[n]).modifiers||(r.modifiers=gr),i[br(r)]=r,r.def=zt(e.$options,\"directives\",r.name);return i}function br(t){return t.rawName||t.name+\".\"+Object.keys(t.modifiers||{}).join(\".\")}function _r(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){qt(r,n.context,\"directive \"+t.name+\" \"+e+\" hook\")}}var wr=[lr,mr];function xr(t,e){var n=e.componentOptions;if(!(a(n)&&!1===n.Ctor.options.inheritAttrs||o(t.data.attrs)&&o(e.data.attrs))){var r,i,s=e.elm,u=t.data.attrs||{},l=e.data.attrs||{};for(r in a(l.__ob__)&&(l=e.data.attrs=M({},l)),l)i=l[r],u[r]!==i&&kr(s,r,i,e.data.pre);for(r in(J||tt)&&l.value!==u.value&&kr(s,\"value\",l.value),u)o(l[r])&&(Zn(r)?s.removeAttributeNS(Yn,Kn(r)):Hn(r)||s.removeAttribute(r))}}function kr(t,e,n,r){r||t.tagName.indexOf(\"-\")>-1?Sr(t,e,n):Wn(e)?Xn(n)?t.removeAttribute(e):(n=\"allowfullscreen\"===e&&\"EMBED\"===t.tagName?\"true\":e,t.setAttribute(e,n)):Hn(e)?t.setAttribute(e,qn(e,n)):Zn(e)?Xn(n)?t.removeAttributeNS(Yn,Kn(e)):t.setAttributeNS(Yn,e,n):Sr(t,e,n)}function Sr(t,e,n){if(Xn(n))t.removeAttribute(e);else{if(J&&!Q&&\"TEXTAREA\"===t.tagName&&\"placeholder\"===e&&\"\"!==n&&!t.__ieph){t.addEventListener(\"input\",(function e(n){n.stopImmediatePropagation(),t.removeEventListener(\"input\",e)})),t.__ieph=!0}t.setAttribute(e,n)}}var Cr={create:xr,update:xr};function Er(t,e){var n=e.elm,r=e.data,i=t.data;if(!(o(r.staticClass)&&o(r.class)&&(o(i)||o(i.staticClass)&&o(i.class)))){var s=Jn(e),u=n._transitionClasses;a(u)&&(s=tr(s,er(u))),s!==n._prevClass&&(n.setAttribute(\"class\",s),n._prevClass=s)}}var Dr,Ar={create:Er,update:Er},Or=\"__r\",Mr=\"__c\";function Tr(t,e,n){var r=Dr;return function i(){null!==e.apply(null,arguments)&&Fr(t,i,n,r)}}var Ir=Xt&&!(nt&&Number(nt[1])<=53);function Pr(t,e,n,r){if(Ir){var i=gn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Dr.addEventListener(t,e,it?{capture:n,passive:r}:n)}function Fr(t,e,n,r){(r||Dr).removeEventListener(t,e._wrapper||e,n)}function jr(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Dr=e.elm,function(t){if(a(t[Or])){var e=J?\"change\":\"input\";t[e]=[].concat(t[Or],t[e]||[]),delete t[Or]}a(t[Mr])&&(t.change=[].concat(t[Mr],t.change||[]),delete t[Mr])}(n),he(n,r,Pr,Fr,Tr,e.context),Dr=void 0}}var Nr,Lr={create:jr,update:jr};function Br(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,r,i=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};for(n in a(u.__ob__)&&(u=e.data.domProps=M({},u)),s)n in u||(i[n]=\"\");for(n in u){if(r=u[n],\"textContent\"===n||\"innerHTML\"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if(\"value\"===n&&\"PROGRESS\"!==i.tagName){i._value=r;var l=o(r)?\"\":String(r);$r(i,l)&&(i.value=l)}else if(\"innerHTML\"===n&&ir(i.tagName)&&o(i.innerHTML)){(Nr=Nr||document.createElement(\"div\")).innerHTML=\"<svg>\"+r+\"</svg>\";for(var c=Nr.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;c.firstChild;)i.appendChild(c.firstChild)}else if(r!==s[n])try{i[n]=r}catch(t){}}}}function $r(t,e){return!t.composing&&(\"OPTION\"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(a(r)){if(r.number)return v(n)!==v(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var zr={create:Br,update:Br},Rr=x((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Ur(t){var e=Vr(t.style);return t.staticStyle?M(t.staticStyle,e):e}function Vr(t){return Array.isArray(t)?T(t):\"string\"==typeof t?Rr(t):t}var Hr,Gr=/^--/,qr=/\\s*!important$/,Wr=function(t,e,n){if(Gr.test(e))t.style.setProperty(e,n);else if(qr.test(n))t.style.setProperty(D(e),n.replace(qr,\"\"),\"important\");else{var r=Zr(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},Yr=[\"Webkit\",\"Moz\",\"ms\"],Zr=x((function(t){if(Hr=Hr||document.createElement(\"div\").style,\"filter\"!==(t=S(t))&&t in Hr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Yr.length;n++){var r=Yr[n]+e;if(r in Hr)return r}}));function Kr(t,e){var n=e.data,r=t.data;if(!(o(n.staticStyle)&&o(n.style)&&o(r.staticStyle)&&o(r.style))){var i,s,u=e.elm,l=r.staticStyle,c=r.normalizedStyle||r.style||{},h=l||c,f=Vr(e.data.style)||{};e.data.normalizedStyle=a(f.__ob__)?M({},f):f;var d=function(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Ur(i.data))&&M(r,n);(n=Ur(t.data))&&M(r,n);for(var o=t;o=o.parent;)o.data&&(n=Ur(o.data))&&M(r,n);return r}(e,!0);for(s in h)o(d[s])&&Wr(u,s,\"\");for(s in d)(i=d[s])!==h[s]&&Wr(u,s,null==i?\"\":i)}}var Xr={create:Kr,update:Kr},Jr=/\\s+/;function Qr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(\" \")>-1?e.split(Jr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=\" \"+(t.getAttribute(\"class\")||\"\")+\" \";n.indexOf(\" \"+e+\" \")<0&&t.setAttribute(\"class\",(n+e).trim())}}function ti(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(\" \")>-1?e.split(Jr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute(\"class\");else{for(var n=\" \"+(t.getAttribute(\"class\")||\"\")+\" \",r=\" \"+e+\" \";n.indexOf(r)>=0;)n=n.replace(r,\" \");(n=n.trim())?t.setAttribute(\"class\",n):t.removeAttribute(\"class\")}}function ei(t){if(t){if(\"object\"===r(t)){var e={};return!1!==t.css&&M(e,ni(t.name||\"v\")),M(e,t),e}return\"string\"==typeof t?ni(t):void 0}}var ni=x((function(t){return{enterClass:t+\"-enter\",enterToClass:t+\"-enter-to\",enterActiveClass:t+\"-enter-active\",leaveClass:t+\"-leave\",leaveToClass:t+\"-leave-to\",leaveActiveClass:t+\"-leave-active\"}})),ri=Y&&!Q,ii=\"transition\",oi=\"animation\",ai=\"transition\",si=\"transitionend\",ui=\"animation\",li=\"animationend\";ri&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ai=\"WebkitTransition\",si=\"webkitTransitionEnd\"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ui=\"WebkitAnimation\",li=\"webkitAnimationEnd\"));var ci=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function hi(t){ci((function(){ci(t)}))}function fi(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Qr(t,e))}function di(t,e){t._transitionClasses&&b(t._transitionClasses,e),ti(t,e)}function pi(t,e,n){var r=vi(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ii?si:li,u=0,l=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++u>=a&&l()};setTimeout((function(){u<a&&l()}),o+1),t.addEventListener(s,c)}var mi=/\\b(transform|all)(,|$)/;function vi(t,e){var n,r=window.getComputedStyle(t),i=(r[ai+\"Delay\"]||\"\").split(\", \"),o=(r[ai+\"Duration\"]||\"\").split(\", \"),a=gi(i,o),s=(r[ui+\"Delay\"]||\"\").split(\", \"),u=(r[ui+\"Duration\"]||\"\").split(\", \"),l=gi(s,u),c=0,h=0;return e===ii?a>0&&(n=ii,c=a,h=o.length):e===oi?l>0&&(n=oi,c=l,h=u.length):h=(n=(c=Math.max(a,l))>0?a>l?ii:oi:null)?n===ii?o.length:u.length:0,{type:n,timeout:c,propCount:h,hasTransform:n===ii&&mi.test(r[ai+\"Property\"])}}function gi(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return yi(e)+yi(t[n])})))}function yi(t){return 1e3*Number(t.slice(0,-1).replace(\",\",\".\"))}function bi(t,e){var n=t.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=ei(t.data.transition);if(!o(r)&&!a(n._enterCb)&&1===n.nodeType){for(var i=r.css,s=r.type,u=r.enterClass,c=r.enterToClass,h=r.enterActiveClass,f=r.appearClass,d=r.appearToClass,p=r.appearActiveClass,m=r.beforeEnter,g=r.enter,y=r.afterEnter,b=r.enterCancelled,_=r.beforeAppear,w=r.appear,x=r.afterAppear,k=r.appearCancelled,S=r.duration,C=on,E=on.$vnode;E&&E.parent;)C=E.context,E=E.parent;var D=!C._isMounted||!t.isRootInsert;if(!D||w||\"\"===w){var A=D&&f?f:u,O=D&&p?p:h,M=D&&d?d:c,T=D&&_||m,I=D&&\"function\"==typeof w?w:g,P=D&&x||y,F=D&&k||b,j=v(l(S)?S.enter:S);0;var N=!1!==i&&!Q,B=xi(I),$=n._enterCb=L((function(){N&&(di(n,M),di(n,O)),$.cancelled?(N&&di(n,A),F&&F(n)):P&&P(n),n._enterCb=null}));t.data.show||fe(t,\"insert\",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),I&&I(n,$)})),T&&T(n),N&&(fi(n,A),fi(n,O),hi((function(){di(n,A),$.cancelled||(fi(n,M),B||(wi(j)?setTimeout($,j):pi(n,s,$)))}))),t.data.show&&(e&&e(),I&&I(n,$)),N||B||$()}}}function _i(t,e){var n=t.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=ei(t.data.transition);if(o(r)||1!==n.nodeType)return e();if(!a(n._leaveCb)){var i=r.css,s=r.type,u=r.leaveClass,c=r.leaveToClass,h=r.leaveActiveClass,f=r.beforeLeave,d=r.leave,p=r.afterLeave,m=r.leaveCancelled,g=r.delayLeave,y=r.duration,b=!1!==i&&!Q,_=xi(d),w=v(l(y)?y.leave:y);0;var x=n._leaveCb=L((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(di(n,c),di(n,h)),x.cancelled?(b&&di(n,u),m&&m(n)):(e(),p&&p(n)),n._leaveCb=null}));g?g(k):k()}function k(){x.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),f&&f(n),b&&(fi(n,u),fi(n,h),hi((function(){di(n,u),x.cancelled||(fi(n,c),_||(wi(w)?setTimeout(x,w):pi(n,s,x)))}))),d&&d(n,x),b||_||x())}}function wi(t){return\"number\"==typeof t&&!isNaN(t)}function xi(t){if(o(t))return!1;var e=t.fns;return a(e)?xi(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function ki(t,e){!0!==e.data.show&&bi(e)}var Si=function(t){var e,n,r={},i=t.modules,l=t.nodeOps;for(e=0;e<fr.length;++e)for(r[fr[e]]=[],n=0;n<i.length;++n)a(i[n][fr[e]])&&r[fr[e]].push(i[n][fr[e]]);function c(t){var e=l.parentNode(t);a(e)&&l.removeChild(e,t)}function h(t,e,n,i,o,u,c){if(a(t.elm)&&a(u)&&(t=u[c]=wt(t)),t.isRootInsert=!o,!function(t,e,n,i){var o=t.data;if(a(o)){var u=a(t.componentInstance)&&o.keepAlive;if(a(o=o.hook)&&a(o=o.init)&&o(t,!1),a(t.componentInstance))return f(t,e),d(n,t.elm,i),s(u)&&function(t,e,n,i){var o,s=t;for(;s.componentInstance;)if(a(o=(s=s.componentInstance._vnode).data)&&a(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](hr,s);e.push(s);break}d(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var h=t.data,m=t.children,g=t.tag;a(g)?(t.elm=t.ns?l.createElementNS(t.ns,g):l.createElement(g,t),y(t),p(t,m,e),a(h)&&v(t,e),d(n,t.elm,i)):s(t.isComment)?(t.elm=l.createComment(t.text),d(n,t.elm,i)):(t.elm=l.createTextNode(t.text),d(n,t.elm,i))}}function f(t,e){a(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,m(t)?(v(t,e),y(t)):(cr(t),e.push(t))}function d(t,e,n){a(t)&&(a(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function p(t,e,n){if(Array.isArray(e)){0;for(var r=0;r<e.length;++r)h(e[r],n,t.elm,null,!0,e,r)}else u(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function m(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return a(t.tag)}function v(t,n){for(var i=0;i<r.create.length;++i)r.create[i](hr,t);a(e=t.data.hook)&&(a(e.create)&&e.create(hr,t),a(e.insert)&&n.push(t))}function y(t){var e;if(a(e=t.fnScopeId))l.setStyleScope(t.elm,e);else for(var n=t;n;)a(e=n.context)&&a(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent;a(e=on)&&e!==t.context&&e!==t.fnContext&&a(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function b(t,e,n,r,i,o){for(;r<=i;++r)h(n[r],o,t,e,!1,n,r)}function _(t){var e,n,i=t.data;if(a(i))for(a(e=i.hook)&&a(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(a(e=t.children))for(n=0;n<t.children.length;++n)_(t.children[n])}function w(t,e,n){for(;e<=n;++e){var r=t[e];a(r)&&(a(r.tag)?(x(r),_(r)):c(r.elm))}}function x(t,e){if(a(e)||a(t.data)){var n,i=r.remove.length+1;for(a(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&c(t)}return n.listeners=e,n}(t.elm,i),a(n=t.componentInstance)&&a(n=n._vnode)&&a(n.data)&&x(n,e),n=0;n<r.remove.length;++n)r.remove[n](t,e);a(n=t.data.hook)&&a(n=n.remove)?n(t,e):e()}else c(t.elm)}function k(t,e,n,r){for(var i=n;i<r;i++){var o=e[i];if(a(o)&&dr(t,o))return i}}function S(t,e,n,i,u,c){if(t!==e){a(e.elm)&&a(i)&&(e=i[u]=wt(e));var f=e.elm=t.elm;if(s(t.isAsyncPlaceholder))a(e.asyncFactory.resolved)?D(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(s(e.isStatic)&&s(t.isStatic)&&e.key===t.key&&(s(e.isCloned)||s(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,p=e.data;a(p)&&a(d=p.hook)&&a(d=d.prepatch)&&d(t,e);var v=t.children,g=e.children;if(a(p)&&m(e)){for(d=0;d<r.update.length;++d)r.update[d](t,e);a(d=p.hook)&&a(d=d.update)&&d(t,e)}o(e.text)?a(v)&&a(g)?v!==g&&function(t,e,n,r,i){var s,u,c,f=0,d=0,p=e.length-1,m=e[0],v=e[p],g=n.length-1,y=n[0],_=n[g],x=!i;for(;f<=p&&d<=g;)o(m)?m=e[++f]:o(v)?v=e[--p]:dr(m,y)?(S(m,y,r,n,d),m=e[++f],y=n[++d]):dr(v,_)?(S(v,_,r,n,g),v=e[--p],_=n[--g]):dr(m,_)?(S(m,_,r,n,g),x&&l.insertBefore(t,m.elm,l.nextSibling(v.elm)),m=e[++f],_=n[--g]):dr(v,y)?(S(v,y,r,n,d),x&&l.insertBefore(t,v.elm,m.elm),v=e[--p],y=n[++d]):(o(s)&&(s=pr(e,f,p)),o(u=a(y.key)?s[y.key]:k(y,e,f,p))?h(y,r,t,m.elm,!1,n,d):dr(c=e[u],y)?(S(c,y,r,n,d),e[u]=void 0,x&&l.insertBefore(t,c.elm,m.elm)):h(y,r,t,m.elm,!1,n,d),y=n[++d]);f>p?b(t,o(n[g+1])?null:n[g+1].elm,n,d,g,r):d>g&&w(e,f,p)}(f,v,g,n,c):a(g)?(a(t.text)&&l.setTextContent(f,\"\"),b(f,null,g,0,g.length-1,n)):a(v)?w(v,0,v.length-1):a(t.text)&&l.setTextContent(f,\"\"):t.text!==e.text&&l.setTextContent(f,e.text),a(p)&&a(d=p.hook)&&a(d=d.postpatch)&&d(t,e)}}}function C(t,e,n){if(s(n)&&a(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var E=g(\"attrs,class,staticClass,staticStyle,key\");function D(t,e,n,r){var i,o=e.tag,u=e.data,l=e.children;if(r=r||u&&u.pre,e.elm=t,s(e.isComment)&&a(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(a(u)&&(a(i=u.hook)&&a(i=i.init)&&i(e,!0),a(i=e.componentInstance)))return f(e,n),!0;if(a(o)){if(a(l))if(t.hasChildNodes())if(a(i=u)&&a(i=i.domProps)&&a(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var c=!0,h=t.firstChild,d=0;d<l.length;d++){if(!h||!D(h,l[d],n,r)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else p(e,l,n);if(a(u)){var m=!1;for(var g in u)if(!E(g)){m=!0,v(e,n);break}!m&&u.class&&se(u.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,i){if(!o(e)){var u,c=!1,f=[];if(o(t))c=!0,h(e,f);else{var d=a(t.nodeType);if(!d&&dr(t,e))S(t,e,f,null,null,i);else{if(d){if(1===t.nodeType&&t.hasAttribute(B)&&(t.removeAttribute(B),n=!0),s(n)&&D(t,e,f))return C(e,f,!0),t;u=t,t=new gt(l.tagName(u).toLowerCase(),{},[],void 0,u)}var p=t.elm,v=l.parentNode(p);if(h(e,f,p._leaveCb?null:v,l.nextSibling(p)),a(e.parent))for(var g=e.parent,y=m(e);g;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](g);if(g.elm=e.elm,y){for(var x=0;x<r.create.length;++x)r.create[x](hr,g);var k=g.data.hook.insert;if(k.merged)for(var E=1;E<k.fns.length;E++)k.fns[E]()}else cr(g);g=g.parent}a(v)?w([t],0,0):a(t.tag)&&_(t)}}return C(e,f,c),e.elm}a(t)&&_(t)}}({nodeOps:ur,modules:[Cr,Ar,Lr,zr,Xr,Y?{create:ki,activate:ki,remove:function(t,e){!0!==t.data.show?_i(t,e):e()}}:{}].concat(wr)});Q&&document.addEventListener(\"selectionchange\",(function(){var t=document.activeElement;t&&t.vmodel&&Ii(t,\"input\")}));var Ci={inserted:function(t,e,n,r){\"select\"===n.tag?(r.elm&&!r.elm._vOptions?fe(n,\"postpatch\",(function(){Ci.componentUpdated(t,e,n)})):Ei(t,e,n.context),t._vOptions=[].map.call(t.options,Oi)):(\"textarea\"===n.tag||sr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener(\"compositionstart\",Mi),t.addEventListener(\"compositionend\",Ti),t.addEventListener(\"change\",Ti),Q&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if(\"select\"===n.tag){Ei(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,Oi);if(i.some((function(t,e){return!j(t,r[e])})))(t.multiple?e.value.some((function(t){return Ai(t,i)})):e.value!==e.oldValue&&Ai(e.value,i))&&Ii(t,\"change\")}}};function Ei(t,e,n){Di(t,e,n),(J||tt)&&setTimeout((function(){Di(t,e,n)}),0)}function Di(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=t.options.length;s<u;s++)if(a=t.options[s],i)o=N(r,Oi(a))>-1,a.selected!==o&&(a.selected=o);else if(j(Oi(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Ai(t,e){return e.every((function(e){return!j(e,t)}))}function Oi(t){return\"_value\"in t?t._value:t.value}function Mi(t){t.target.composing=!0}function Ti(t){t.target.composing&&(t.target.composing=!1,Ii(t.target,\"input\"))}function Ii(t,e){var n=document.createEvent(\"HTMLEvents\");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Pi(t){return!t.componentInstance||t.data&&t.data.transition?t:Pi(t.componentInstance._vnode)}var Fi={bind:function(t,e,n){var r=e.value,i=(n=Pi(n)).data&&n.data.transition,o=t.__vOriginalDisplay=\"none\"===t.style.display?\"\":t.style.display;r&&i?(n.data.show=!0,bi(n,(function(){t.style.display=o}))):t.style.display=r?o:\"none\"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Pi(n)).data&&n.data.transition?(n.data.show=!0,r?bi(n,(function(){t.style.display=t.__vOriginalDisplay})):_i(n,(function(){t.style.display=\"none\"}))):t.style.display=r?t.__vOriginalDisplay:\"none\")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},ji={model:Ci,show:Fi},Ni={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Li(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Li(Qe(e.children)):t}function Bi(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[S(o)]=i[o];return e}function $i(t,e){if(/\\d-keep-alive$/.test(e.tag))return t(\"keep-alive\",{props:e.componentOptions.propsData})}var zi=function(t){return t.tag||_e(t)},Ri=function(t){return\"show\"===t.name},Ui={name:\"transition\",props:Ni,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(zi)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=Li(i);if(!o)return i;if(this._leaving)return $i(t,i);var a=\"__transition-\"+this._uid+\"-\";o.key=null==o.key?o.isComment?a+\"comment\":a+o.tag:u(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Bi(this),l=this._vnode,c=Li(l);if(o.data.directives&&o.data.directives.some(Ri)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!_e(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=M({},s);if(\"out-in\"===r)return this._leaving=!0,fe(h,\"afterLeave\",(function(){e._leaving=!1,e.$forceUpdate()})),$i(t,i);if(\"in-out\"===r){if(_e(o))return l;var f,d=function(){f()};fe(s,\"afterEnter\",d),fe(s,\"enterCancelled\",d),fe(h,\"delayLeave\",(function(t){f=t}))}}return i}}},Vi=M({tag:String,moveClass:String},Ni);function Hi(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Gi(t){t.data.newPos=t.elm.getBoundingClientRect()}function qi(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform=\"translate(\"+r+\"px,\"+i+\"px)\",o.transitionDuration=\"0s\"}}delete Vi.mode;var Wi={Transition:Ui,TransitionGroup:{props:Vi,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=an(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||\"span\",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Bi(this),s=0;s<i.length;s++){var u=i[s];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf(\"__vlist\"))o.push(u),n[u.key]=u,(u.data||(u.data={})).transition=a;else;}if(r){for(var l=[],c=[],h=0;h<r.length;h++){var f=r[h];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?l.push(f):c.push(f)}this.kept=t(e,null,l),this.removed=c}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||\"v\")+\"-move\";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Hi),t.forEach(Gi),t.forEach(qi),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;fi(n,e),r.transform=r.WebkitTransform=r.transitionDuration=\"\",n.addEventListener(si,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(si,t),n._moveCb=null,di(n,e))})}})))},methods:{hasMove:function(t,e){if(!ri)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){ti(n,t)})),Qr(n,e),n.style.display=\"none\",this.$el.appendChild(n);var r=vi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};Pn.config.mustUseProp=function(t,e,n){return\"value\"===n&&Vn(t)&&\"button\"!==e||\"selected\"===n&&\"option\"===t||\"checked\"===n&&\"input\"===t||\"muted\"===n&&\"video\"===t},Pn.config.isReservedTag=or,Pn.config.isReservedAttr=Un,Pn.config.getTagNamespace=function(t){return ir(t)?\"svg\":\"math\"===t?\"math\":void 0},Pn.config.isUnknownElement=function(t){if(!Y)return!0;if(or(t))return!1;if(t=t.toLowerCase(),null!=ar[t])return ar[t];var e=document.createElement(t);return t.indexOf(\"-\")>-1?ar[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ar[t]=/HTMLUnknownElement/.test(e.toString())},M(Pn.options.directives,ji),M(Pn.options.components,Wi),Pn.prototype.__patch__=Y?Si:I,Pn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=bt),cn(t,\"beforeMount\"),r=function(){t._update(t._render(),n)},new xn(t,r,I,{before:function(){t._isMounted&&!t._isDestroyed&&cn(t,\"beforeUpdate\")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,cn(t,\"mounted\")),t}(this,t=t&&Y?function(t){if(\"string\"==typeof t){return document.querySelector(t)||document.createElement(\"div\")}return t}(t):void 0,e)},Y&&setTimeout((function(){R.devtools&&st&&st.emit(\"init\",Pn)}),0),e.default=Pn}.call(this,n(10),n(117).setImmediate)},function(t,e,n){var r=n(142),i=n(143);t.exports={encode:r,decode:i}},function(t,e,n){var r=n(195),i=n(196);t.exports={encode:r,decode:i}},function(t,e,n){\"use strict\";(function(t){var n={nearestNeighbor:function(t,e){for(var n=t.width,r=t.height,i=e.width,o=e.height,a=t.data,s=e.data,u=0;u<o;u++)for(var l=0;l<i;l++){var c=4*(u*i+l),h=4*(Math.floor(u*r/o)*n+Math.floor(l*n/i));s[c++]=a[h++],s[c++]=a[h++],s[c++]=a[h++],s[c++]=a[h++]}},bilinearInterpolation:function(t,e){for(var n=t.width,r=t.height,i=e.width,o=e.height,a=t.data,s=e.data,u=function(t,e,n,r,i){return e===r?n:Math.round((t-e)*i+(r-t)*n)},l=function(t,e,r,i,o,l,c,h){var f=4*(c*n+i)+e,d=4*(c*n+o)+e,p=u(r,i,a[f],o,a[d]);if(h===c)s[t+e]=p;else{d=4*(h*n+o)+e;var m=u(r,i,a[f=4*(h*n+i)+e],o,a[d]);s[t+e]=u(l,c,p,h,m)}},c=0;c<o;c++)for(var h=0;h<i;h++){var f=4*(c*i+h),d=h*n/i,p=Math.floor(d),m=Math.min(Math.ceil(d),n-1),v=c*r/o,g=Math.floor(v),y=Math.min(Math.ceil(v),r-1);l(f,0,d,p,m,v,g,y),l(f,1,d,p,m,v,g,y),l(f,2,d,p,m,v,g,y),l(f,3,d,p,m,v,g,y)}},_interpolate2D:function(e,n,r,i){for(var o=e.data,a=n.data,s=e.width,u=e.height,l=n.width,c=n.height,h=Math.max(1,Math.floor(s/l)),f=l*h,d=Math.max(1,Math.floor(u/c)),p=c*d,m=t.alloc(f*u*4),v=0;v<u;v++)for(var g=0;g<f;g++)for(var y=g*(s-1)/f,b=Math.floor(y),_=y-b,w=4*(v*s+b),x=4*(v*f+g),k=0;k<4;k++){var S=w+k,C=b>0?o[S-4]:2*o[S]-o[S+4],E=o[S],D=o[S+4],A=b<s-2?o[S+8]:2*o[S+4]-o[S];m[x+k]=i(C,E,D,A,_)}for(var O=t.alloc(f*p*4),M=0;M<p;M++)for(var T=0;T<f;T++)for(var I=M*(u-1)/p,P=Math.floor(I),F=I-P,j=4*(P*f+T),N=4*(M*f+T),L=0;L<4;L++){var B=j+L,$=P>0?m[B-4*f]:2*m[B]-m[B+4*f],z=m[B],R=m[B+4*f],U=P<u-2?m[B+8*f]:2*m[B+4*f]-m[B];O[N+L]=i($,z,R,U,F)}var V=h*d;if(V>1)for(var H=0;H<c;H++)for(var G=0;G<l;G++){for(var q=0,W=0,Y=0,Z=0,K=0,X=0;X<d;X++)for(var J=H*d+X,Q=0;Q<h;Q++){var tt=4*(J*f+(G*h+Q)),et=O[tt+3];et&&(q+=O[tt],W+=O[tt+1],Y+=O[tt+2],K++),Z+=et}var nt=4*(H*l+G);a[nt]=K?Math.round(q/K):0,a[nt+1]=K?Math.round(W/K):0,a[nt+2]=K?Math.round(Y/K):0,a[nt+3]=Math.round(Z/V)}else n.data=O},bicubicInterpolation:function(t,e,n){return this._interpolate2D(t,e,n,(function(t,e,n,r,i){var o=r-n-t+e,a=t-e-o,s=n-t,u=e;return Math.max(0,Math.min(255,o*(i*i*i)+a*(i*i)+s*i+u))}))},hermiteInterpolation:function(t,e,n){return this._interpolate2D(t,e,n,(function(t,e,n,r,i){var o=e,a=.5*(n-t),s=t-2.5*e+2*n-.5*r,u=.5*(r-t)+1.5*(e-n);return Math.max(0,Math.min(255,Math.round(((u*i+s)*i+a)*i+o)))}))},bezierInterpolation:function(t,e,n){return this._interpolate2D(t,e,n,(function(t,e,n,r,i){var o=1-i,a=e*o*o*o,s=3*(e+(n-t)/4)*o*o*i,u=3*(n-(r-e)/4)*o*i*i,l=n*i*i*i;return Math.max(0,Math.min(255,Math.round(a+s+u+l)))}))}};e.a=n}).call(this,n(2).Buffer)},function(t,e,n){var r=n(221),i=n(222),o=n(223),a=n(224),s=n(225),u=n(226),l=n(227);l.alea=r,l.xor128=i,l.xorwow=o,l.xorshift7=a,l.xor4096=s,l.tychei=u,t.exports=l},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.timeout=e.credentials=e.userAgent=e.header=e.json=e.form=e.query=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(247);var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.baseUrl=e||\"\",this.middlewareId=1,this.middlewares=[]}return i(t,[{key:\"addMiddleware\",value:function(t){return t.middlewareId||(t.middlewareId=this.middlewareId++),this.middlewares.push(t),this}},{key:\"removeMiddleware\",value:function(t){return t.middlewareId?(this.middlewares[t.middlewareId]&&delete this.middlewares[t.middlewareId],this):this}},{key:\"fetch\",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(\"function\"!=typeof fetch)throw new TypeError(\"fetch() function not available\");e=r({headers:{}},e);var n=this.resolveUrl(t,e.uriParams||{}),i=[];return this.middlewares.reduce((function(t,e){return t.then((function(t){var n=e(t);return\"function\"==typeof n&&i.push(n),n&&\"function\"!=typeof n?n:t}))}),Promise.resolve({url:n,path:t,options:e})).then((function(t){return fetch(t.url,t.options)})).then((function(t){return i.reduce((function(t,e){return t.then((function(t){return e(t)||t}))}),Promise.resolve(t))}))}))},{key:\"request\",value:function(t,e){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return this.fetch(t,r({},n,{method:e}))}},{key:\"get\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"GET\",e)}},{key:\"post\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"POST\",e)}},{key:\"put\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"PUT\",e)}},{key:\"delete\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"DELETE\",e)}},{key:\"patch\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.request(t,\"PATCH\",e)}},{key:\"resolveUrl\",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(t.toLowerCase().startsWith(\"http://\")||t.toLowerCase().startsWith(\"https://\")||t.startsWith(\"//\"))return t;var n=this.baseUrl.replace(/\\/+$/g,\"\"),r=\"\";if(t.startsWith(\"/\")){var i=n.indexOf(\"/\",n.indexOf(\"//\")+2);r=n.substr(0,-1===i?void 0:i)+t}else r=n+\"/\"+t;return r=r.replace(/\\{(\\w+)\\}/gi,(function(t,n){if(!e[n])throw new Error(\"Unknown path variable '\"+n+\"'.\");return encodeURIComponent(e[n])}))}}]),t}();e.default=a;e.query=function(){return function(t){if(t.options.query){var e=(0,o.stringify)(t.options.query);-1===t.url.indexOf(\"?\")&&(t.url=t.url.concat(\"?\")),t.url.endsWith(\"&\")||t.url.endsWith(\"?\")?t.url=t.url.concat(e):t.url=t.url.concat(\"&\",e)}}},e.form=function(){return function(t){t.options.form&&(t.options.body=(0,o.stringify)(t.options.form),t.options.headers[\"Content-Type\"]=\"application/x-www-form-urlencoded;charset=UTF-8\")}},e.json=function(){return function(t){return t.options.json&&(t.options.body=JSON.stringify(t.options.json),t.options.headers[\"Content-Type\"]=\"application/json\"),t.options.headers.Accept=\"application/json\",function(t){return-1===(t.headers.get(\"Content-Type\")||\"\").indexOf(\"json\")?t:t.json().then((function(e){return t.jsonData=e,t}))}}},e.header=function(t){return function(e){e.options.headers=r({},e.options.headers,t)}},e.userAgent=function(t){return function(e){var n=[];Object.keys(t).forEach((function(e){return n.push(e+\"/\"+t[e])})),e.options.headers[\"User-Agent\"]=n.join(\" \")}},e.credentials=function(t){return function(e){e.options.credentials=t}},e.timeout=function(t){return function(e){if(\"number\"!=typeof parseInt(t,10))throw new TypeError(\"function params not available\");var n=new Promise((function(e,n){return setTimeout(n,t,\"request timeout!\")}));return Promise.race([e,n])}}},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,o(r.key),r)}}function o(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}n.d(e,\"a\",(function(){return a}));var a=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.items=[]},(e=[{key:\"push\",value:function(t){this.items.push(t)}},{key:\"pop\",value:function(){if(this.isEmpty())throw\"empty stack\";return this.items.pop()}},{key:\"peek\",value:function(){return this.items[this.items.length-1]}},{key:\"isEmpty\",value:function(){return 0===this.items.length}},{key:\"size\",value:function(){return this.items.length}},{key:\"print\",value:function(){}}])&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,n}()},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+d]=255&a,d+=p,a/=256,l-=8);t[n+d-p]|=128*m}},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(){i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",l=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(r||[]);return a(o,\"_invoke\",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&o.call(S,u)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,a,s,u){var l=d(t[i],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==r(h)&&o.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var i;a(this,\"_invoke\",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[u];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+\" is not iterable\")}return _.prototype=w,a(C,\"constructor\",{value:w,configurable:!0}),a(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,l,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,u,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return r(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),l=o.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,\"finallyLoc\")&&this.prev<r.finallyLoc){var i=r;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,\"next\",t)}function u(t){o(a,r,i,s,u,\"throw\",t)}s(void 0)}))}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.readFile=e.writeFileSync=e.writeFile=e.read=e.open=e.close=e.stat=e.createReadStream=e.pathExists=void 0;var s=n(11);function u(){return(u=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.stat(e,(function(e,r){e?n(e):t(r)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.close(e,(function(e){e?n(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function c(){return(c=a(i().mark((function t(e,n){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.open(e,n,(function(e,n){e?r(e):t(n)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function h(){return(h=a(i().mark((function t(e,n,r,o,a){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,i){s.read(e,n,r,o,a,(function(e,n,r){e?i(e):t({bytesRead:n,buffer:r})}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=a(i().mark((function t(e,n){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,r){s.writeFile(e,n,(function(e){e?r(e):t()}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function d(){return(d=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",new Promise((function(t,n){s.readFile(e,(function(e,r){e?n(e):t(r)}))})));case 1:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.pathExists=s.existsSync,e.createReadStream=s.createReadStream,e.stat=function(t){return u.apply(this,arguments)},e.close=function(t){return l.apply(this,arguments)},e.open=function(t,e){return c.apply(this,arguments)},e.read=function(t,e,n,r,i){return h.apply(this,arguments)},e.writeFile=function(t,e){return f.apply(this,arguments)},e.writeFileSync=function(t,e){s.writeFileSync(t,e)},e.readFile=function(t){return d.apply(this,arguments)}},function(t,e){function n(t,e){switch(t){case 1:return e.nextUInt8();case 3:case 8:return e.nextUInt16();case 4:case 9:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error(\"Invalid format while decoding: \"+t)}}function r(t,e){var r,i,o=e.nextUInt16(),a=e.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(a),u=e.nextUInt32(),l=s*u;if(l>4&&(e=t.openWithOffset(e.nextUInt32())),2===a){var c=(r=e.nextString(u)).indexOf(\"\\0\");-1!==c&&(r=r.substr(0,c))}else if(7===a)r=e.nextBuffer(u);else if(0!==a)for(r=[],i=0;i<u;++i)r.push(n(a,e));return l<4&&e.skip(4-l),[o,r,a]}function i(t,e,n){var i,o,a=e.nextUInt16();for(o=0;o<a;++o)n((i=r(t,e))[0],i[1],i[2])}t.exports={IFD0:1,IFD1:2,GPSIFD:3,SubIFD:4,InteropIFD:5,parseTags:function(t,e){var n,r,o,a;try{n=function(t){if(\"Exif\\0\\0\"!==t.nextString(6))throw new Error(\"Invalid EXIF header\");var e=t.mark(),n=t.nextUInt16();if(18761===n)t.setBigEndian(!1);else{if(19789!==n)throw new Error(\"Invalid TIFF header\");t.setBigEndian(!0)}if(42!==t.nextUInt16())throw new Error(\"Invalid TIFF data\");return e}(t)}catch(t){return!1}var s=n.openWithOffset(t.nextUInt32()),u=this.IFD0;i(n,s,(function(t,n,i){switch(t){case 34853:o=n[0];break;case 34665:r=n[0];break;default:e(u,t,n,i)}}));var l=s.nextUInt32();if(0!==l){var c=n.openWithOffset(l);i(n,c,e.bind(null,this.IFD1))}if(o){var h=n.openWithOffset(o);i(n,h,e.bind(null,this.GPSIFD))}if(r){var f=n.openWithOffset(r),d=this.InteropIFD;i(n,f,(function(t,n,r){40965===t?a=n[0]:e(d,t,n,r)}))}if(a){var p=n.openWithOffset(a);i(n,p,e.bind(null,this.InteropIFD))}return!0}}},function(t,e,n){\"use strict\";(function(e,r){var i=n(39);t.exports=b;var o,a=n(146);b.ReadableState=y;n(31).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=n(71),l=n(51).Buffer,c=(void 0!==e?e:\"undefined\"!=typeof window?window:\"undefined\"!=typeof self?self:{}).Uint8Array||function(){};var h=Object.create(n(27));h.inherits=n(24);var f=n(147),d=void 0;d=f&&f.debuglog?f.debuglog(\"stream\"):function(){};var p,m=n(148),v=n(72);h.inherits(b,u);var g=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function y(t,e){t=t||{};var r=e instanceof(o=o||n(18));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=n(73).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function b(t){if(o=o||n(18),!(this instanceof b))return new b(t);this._readableState=new y(t,this),this.readable=!0,t&&(\"function\"==typeof t.read&&(this._read=t.read),\"function\"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function _(t,e,n,r,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,S(t)}(t,a)):(i||(o=function(t,e){var n;r=e,l.isBuffer(r)||r instanceof c||\"string\"==typeof e||void 0===e||t.objectMode||(n=new TypeError(\"Invalid non-string/buffer chunk\"));var r;return n}(a,e)),o?t.emit(\"error\",o):a.objectMode||e&&e.length>0?(\"string\"==typeof e||a.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),r?a.endEmitted?t.emit(\"error\",new Error(\"stream.unshift() after end event\")):w(t,a,e,!0):a.ended?t.emit(\"error\",new Error(\"stream.push() after EOF\")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):E(t,a)):w(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function w(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit(\"data\",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&S(t)),E(t,e)}Object.defineProperty(b.prototype,\"destroyed\",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(t,e){this.push(null),e(t)},b.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:\"string\"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=l.from(t,e),e=\"\"),n=!0),_(this,t,e,!1,n)},b.prototype.unshift=function(t){return _(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return p||(p=n(73).StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var x=8388608;function k(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function S(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d(\"emitReadable\",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(C,t):C(t))}function C(t){d(\"emit readable\"),t.emit(\"readable\"),M(t)}function E(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(D,t,e))}function D(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d(\"maybeReadMore read 0\"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function A(t){d(\"readable nexttick read 0\"),t.read(0)}function O(t,e){e.reading||(d(\"resume read 0\"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit(\"resume\"),M(t),e.flowing&&!e.reading&&t.read(0)}function M(t){var e=t._readableState;for(d(\"flow\",e.flowing);e.flowing&&null!==t.read(););}function T(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(\"\"):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,i=n.data;t-=i.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=l.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function I(t){var e=t._readableState;if(e.length>0)throw new Error('\"endReadable()\" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(P,e,t))}function P(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit(\"end\"))}function F(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}b.prototype.read=function(t){d(\"read\",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(\"read: emitReadable\",e.length,e.ended),0===e.length&&e.ended?I(this):S(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&I(this),null;var r,i=e.needReadable;return d(\"need readable\",i),(0===e.length||e.length-t<e.highWaterMark)&&d(\"length less than watermark\",i=!0),e.ended||e.reading?d(\"reading or ended\",i=!1):i&&(d(\"do read\"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=k(n,e))),null===(r=t>0?T(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&I(this)),null!==r&&this.emit(\"data\",r),r},b.prototype._read=function(t){this.emit(\"error\",new Error(\"_read() is not implemented\"))},b.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,d(\"pipe count=%d opts=%j\",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?c:b;function l(e,r){d(\"onunpipe\"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d(\"cleanup\"),t.removeListener(\"close\",g),t.removeListener(\"finish\",y),t.removeListener(\"drain\",h),t.removeListener(\"error\",v),t.removeListener(\"unpipe\",l),n.removeListener(\"end\",c),n.removeListener(\"end\",b),n.removeListener(\"data\",m),f=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function c(){d(\"onend\"),t.end()}o.endEmitted?i.nextTick(u):n.once(\"end\",u),t.on(\"unpipe\",l);var h=function(t){return function(){var e=t._readableState;d(\"pipeOnDrain\",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,\"data\")&&(e.flowing=!0,M(t))}}(n);t.on(\"drain\",h);var f=!1;var p=!1;function m(e){d(\"ondata\"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==F(o.pipes,t))&&!f&&(d(\"false write response, pause\",o.awaitDrain),o.awaitDrain++,p=!0),n.pause())}function v(e){d(\"onerror\",e),b(),t.removeListener(\"error\",v),0===s(t,\"error\")&&t.emit(\"error\",e)}function g(){t.removeListener(\"finish\",y),b()}function y(){d(\"onfinish\"),t.removeListener(\"close\",g),b()}function b(){d(\"unpipe\"),n.unpipe(t)}return n.on(\"data\",m),function(t,e,n){if(\"function\"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,\"error\",v),t.once(\"close\",g),t.once(\"finish\",y),t.emit(\"pipe\",n),o.flowing||(d(\"pipe resume\"),n.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit(\"unpipe\",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var a=F(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit(\"unpipe\",this,n)),this},b.prototype.on=function(t,e){var n=u.prototype.on.call(this,t,e);if(\"data\"===t)!1!==this._readableState.flowing&&this.resume();else if(\"readable\"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&S(this):i.nextTick(A,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var t=this._readableState;return t.flowing||(d(\"resume\"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(O,t,e))}(this,t)),this},b.prototype.pause=function(){return d(\"call pause flowing=%j\",this._readableState.flowing),!1!==this._readableState.flowing&&(d(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this},b.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on(\"end\",(function(){if(d(\"wrapped end\"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on(\"data\",(function(i){(d(\"wrapped data\"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&\"function\"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<g.length;o++)t.on(g[o],this.emit.bind(this,g[o]));return this._read=function(e){d(\"wrapped _read\",e),r&&(r=!1,t.resume())},this},Object.defineProperty(b.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=T}).call(this,n(10),n(7))},function(t,e,n){t.exports=n(31).EventEmitter},function(t,e,n){\"use strict\";var r=n(39);function i(t,e){t.emit(\"error\",e)}t.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,t)):r.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,t)):r.nextTick(i,n,t):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,n){\"use strict\";var r=n(152).Buffer,i=r.isEncoding||function(t){switch((t=\"\"+t)&&t.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return\"utf8\";for(var e;;)switch(t){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return t;default:if(e)return;t=(\"\"+t).toLowerCase(),e=!0}}(t);if(\"string\"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error(\"Unknown encoding: \"+t);return e||t}(t),this.encoding){case\"utf16le\":this.text=u,this.end=l,e=4;break;case\"utf8\":this.fillLast=s,e=4;break;case\"base64\":this.text=c,this.end=h,e=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,\"�\";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,\"�\";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,\"�\"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var n=t.toString(\"utf16le\",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(\"utf16le\",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):\"\";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(\"utf16le\",0,n)}return e}function c(t,e){var n=(t.length-e)%3;return 0===n?t.toString(\"base64\",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(\"base64\",e,t.length-n))}function h(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+this.lastChar.toString(\"base64\",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):\"\"}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return\"\";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return\"\";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||\"\"},o.prototype.end=function(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+\"�\":e},o.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var i=a(e[r]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if(i=a(e[r]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if(i=a(e[r]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString(\"utf8\",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString(\"utf8\",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){\"use strict\";t.exports=a;var r=n(18),i=Object.create(n(27));function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit(\"error\",new Error(\"write callback called multiple times\"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);r.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(\"function\"==typeof t.transform&&(this._transform=t.transform),\"function\"==typeof t.flush&&(this._flush=t.flush)),this.on(\"prefinish\",s)}function s(){var t=this;\"function\"==typeof this._flush?this._flush((function(e,n){u(t,e,n)})):u(this,null,null)}function u(t,e,n){if(e)return t.emit(\"error\",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error(\"Calling transform done when ws.length != 0\");if(t._transformState.transforming)throw new Error(\"Calling transform done when still transforming\");return t.push(null)}i.inherits=n(24),i.inherits(a,r),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,n){throw new Error(\"_transform() is not implemented\")},a.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,(function(t){e(t),n.emit(\"close\")}))}},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=Object.prototype.toString;t.exports=function(t){var e=i.call(t),n=\"[object Arguments]\"===e;return n||(n=\"[object Array]\"!==e&&null!==t&&\"object\"===r(t)&&\"number\"==typeof t.length&&t.length>=0&&\"[object Function]\"===i.call(t.callee)),n}},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(){if(\"function\"!=typeof Symbol||\"function\"!=typeof Object.getOwnPropertySymbols)return!1;if(\"symbol\"===r(Symbol.iterator))return!0;var t={},e=Symbol(\"test\"),n=Object(e);if(\"string\"==typeof e)return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(e))return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if(\"function\"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if(\"function\"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(\"function\"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,n){\"use strict\";t.exports=SyntaxError},function(t,e,n){\"use strict\";var r=n(29)(\"%Object.getOwnPropertyDescriptor%\",!0);if(r)try{r([],\"length\")}catch(t){r=null}t.exports=r},function(t,e,n){\"use strict\";t.exports=function(t,e,n,r){for(var i=65535&t,o=t>>>16&65535,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},function(t,e,n){\"use strict\";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return~t}},function(t,e,n){\"use strict\";(function(e,r){var i=n(14),o=n(38),a=t.exports=function(){o.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding=\"utf8\",this.writable=!0};i.inherits(a,o),a.prototype.read=function(t,n){this._reads.push({length:Math.abs(t),allowLess:t<0,func:n}),e.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit(\"drain\"))}.bind(this))},a.prototype.write=function(t,e){return this.writable?(n=r.isBuffer(t)?t:r.from(t,e||this._encoding),this._buffers.push(n),this._buffered+=n.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit(\"error\",new Error(\"Stream not writable\")),!1);var n},a.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},a.prototype.destroySoon=a.prototype.end,a.prototype._end=function(){this._reads.length>0&&this.emit(\"error\",new Error(\"Unexpected end of input\")),this.destroy()},a.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit(\"close\"))},a.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},a.prototype._processRead=function(t){this._reads.shift();for(var e=0,n=0,i=r.alloc(t.length);e<t.length;){var o=this._buffers[n++],a=Math.min(o.length,t.length-e);o.copy(i,e,0,a),e+=a,a!==o.length&&(this._buffers[--n]=o.slice(a))}n>0&&this._buffers.splice(0,n),this._buffered-=t.length,t.func.call(this,i)},a.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit(\"error\",t)}}}).call(this,n(7),n(2).Buffer)},function(t,e,n){\"use strict\";(function(e){var r=n(83),i=n(84);function o(t,e,n){var r=t*e;return 8!==n&&(r=Math.ceil(r/(8/n))),r}var a=t.exports=function(t,e){var n=t.width,i=t.height,a=t.interlace,s=t.bpp,u=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],a)for(var l=r.getImagePasses(n,i),c=0;c<l.length;c++)this._images.push({byteWidth:o(l[c].width,s,u),height:l[c].height,lineIndex:0});else this._images.push({byteWidth:o(n,s,u),height:i,lineIndex:0});this._xComparison=8===u?s:16===u?2*s:1};a.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},a.prototype._unFilterType1=function(t,e,n){for(var r=this._xComparison,i=r-1,o=0;o<n;o++){var a=t[1+o],s=o>i?e[o-r]:0;e[o]=a+s}},a.prototype._unFilterType2=function(t,e,n){for(var r=this._lastLine,i=0;i<n;i++){var o=t[1+i],a=r?r[i]:0;e[i]=o+a}},a.prototype._unFilterType3=function(t,e,n){for(var r=this._xComparison,i=r-1,o=this._lastLine,a=0;a<n;a++){var s=t[1+a],u=o?o[a]:0,l=a>i?e[a-r]:0,c=Math.floor((l+u)/2);e[a]=s+c}},a.prototype._unFilterType4=function(t,e,n){for(var r=this._xComparison,o=r-1,a=this._lastLine,s=0;s<n;s++){var u=t[1+s],l=a?a[s]:0,c=s>o?e[s-r]:0,h=s>o&&a?a[s-r]:0,f=i(c,l,h);e[s]=u+f}},a.prototype._reverseFilterLine=function(t){var n,r=t[0],i=this._images[this._imageIndex],o=i.byteWidth;if(0===r)n=t.slice(1,o+1);else switch(n=e.alloc(o),r){case 1:this._unFilterType1(t,n,o);break;case 2:this._unFilterType2(t,n,o);break;case 3:this._unFilterType3(t,n,o);break;case 4:this._unFilterType4(t,n,o);break;default:throw new Error(\"Unrecognised filter type - \"+r)}this.write(n),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=n,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";var r=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var n=[],i=t%8,o=e%8,a=(t-i)/8,s=(e-o)/8,u=0;u<r.length;u++){for(var l=r[u],c=a*l.x.length,h=s*l.y.length,f=0;f<l.x.length&&l.x[f]<i;f++)c++;for(var d=0;d<l.y.length&&l.y[d]<o;d++)h++;c>0&&h>0&&n.push({width:c,height:h,index:u})}return n},e.getInterlaceIterator=function(t){return function(e,n,i){var o=e%r[i].x.length,a=(e-o)/r[i].x.length*8+r[i].x[o],s=n%r[i].y.length;return 4*a+((n-s)/r[i].y.length*8+r[i].y[s])*t*4}}},function(t,e,n){\"use strict\";t.exports=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),o=Math.abs(r-e),a=Math.abs(r-n);return i<=o&&i<=a?t:o<=a?e:n}},function(t,e,n){\"use strict\";(function(e){var r=n(30),i=n(86),o=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[r.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[r.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[r.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[r.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[r.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[r.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};o.prototype.start=function(){this.read(r.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(t){for(var e=r.PNG_SIGNATURE,n=0;n<e.length;n++)if(t[n]!==e[n])return void this.error(new Error(\"Invalid file signature\"));this.read(8,this._parseChunkBegin.bind(this))},o.prototype._parseChunkBegin=function(t){for(var n=t.readUInt32BE(0),o=t.readUInt32BE(4),a=\"\",s=4;s<8;s++)a+=String.fromCharCode(t[s]);var u=Boolean(32&t[4]);if(this._hasIHDR||o===r.TYPE_IHDR){if(this._crc=new i,this._crc.write(e.from(a)),this._chunks[o])return this._chunks[o](n);u?this.read(n+4,this._skipChunk.bind(this)):this.error(new Error(\"Unsupported critical chunk type \"+a))}else this.error(new Error(\"Expected IHDR on beggining\"))},o.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},o.prototype._parseChunkEnd=function(t){var e=t.readInt32BE(0),n=this._crc.crc32();this._options.checkCRC&&n!==e?this.error(new Error(\"Crc error - \"+e+\" - \"+n)):this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleIHDR=function(t){this.read(t,this._parseIHDR.bind(this))},o.prototype._parseIHDR=function(t){this._crc.write(t);var e=t.readUInt32BE(0),n=t.readUInt32BE(4),i=t[8],o=t[9],a=t[10],s=t[11],u=t[12];if(8===i||4===i||2===i||1===i||16===i)if(o in r.COLORTYPE_TO_BPP_MAP)if(0===a)if(0===s)if(0===u||1===u){this._colorType=o;var l=r.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:n,depth:i,interlace:Boolean(u),palette:Boolean(o&r.COLORTYPE_PALETTE),color:Boolean(o&r.COLORTYPE_COLOR),alpha:Boolean(o&r.COLORTYPE_ALPHA),bpp:l,colorType:o}),this._handleChunkEnd()}else this.error(new Error(\"Unsupported interlace method\"));else this.error(new Error(\"Unsupported filter method\"));else this.error(new Error(\"Unsupported compression method\"));else this.error(new Error(\"Unsupported color type\"));else this.error(new Error(\"Unsupported bit depth \"+i))},o.prototype._handlePLTE=function(t){this.read(t,this._parsePLTE.bind(this))},o.prototype._parsePLTE=function(t){this._crc.write(t);for(var e=Math.floor(t.length/3),n=0;n<e;n++)this._palette.push([t[3*n],t[3*n+1],t[3*n+2],255]);this.palette(this._palette),this._handleChunkEnd()},o.prototype._handleTRNS=function(t){this.simpleTransparency(),this.read(t,this._parseTRNS.bind(this))},o.prototype._parseTRNS=function(t){if(this._crc.write(t),this._colorType===r.COLORTYPE_PALETTE_COLOR){if(0===this._palette.length)return void this.error(new Error(\"Transparency chunk must be after palette\"));if(t.length>this._palette.length)return void this.error(new Error(\"More transparent colors than palette size\"));for(var e=0;e<t.length;e++)this._palette[e][3]=t[e];this.palette(this._palette)}this._colorType===r.COLORTYPE_GRAYSCALE&&this.transColor([t.readUInt16BE(0)]),this._colorType===r.COLORTYPE_COLOR&&this.transColor([t.readUInt16BE(0),t.readUInt16BE(2),t.readUInt16BE(4)]),this._handleChunkEnd()},o.prototype._handleGAMA=function(t){this.read(t,this._parseGAMA.bind(this))},o.prototype._parseGAMA=function(t){this._crc.write(t),this.gamma(t.readUInt32BE(0)/r.GAMMA_DIVISION),this._handleChunkEnd()},o.prototype._handleIDAT=function(t){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-t,this._parseIDAT.bind(this,t))},o.prototype._parseIDAT=function(t,e){if(this._crc.write(e),this._colorType===r.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw new Error(\"Expected palette not found\");this.inflateData(e);var n=t-e.length;n>0?this._handleIDAT(n):this._handleChunkEnd()},o.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},o.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";var r=[];!function(){for(var t=0;t<256;t++){for(var e=t,n=0;n<8;n++)1&e?e=3988292384^e>>>1:e>>>=1;r[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e<t.length;e++)this._crc=r[255&(this._crc^t[e])]^this._crc>>>8;return!0},i.prototype.crc32=function(){return~this._crc},i.crc32=function(t){for(var e=-1,n=0;n<t.length;n++)e=r[255&(e^t[n])]^e>>>8;return~e}},function(t,e,n){\"use strict\";(function(t){var r=n(83),i=[function(){},function(t,e,n,r){if(r===e.length)throw new Error(\"Ran out of data\");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=255},function(t,e,n,r){if(r+1>=e.length)throw new Error(\"Ran out of data\");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=e[r+1]},function(t,e,n,r){if(r+2>=e.length)throw new Error(\"Ran out of data\");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=255},function(t,e,n,r){if(r+3>=e.length)throw new Error(\"Ran out of data\");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=e[r+3]}],o=[function(){},function(t,e,n,r){var i=e[0];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=r},function(t,e,n){var r=e[0];t[n]=r,t[n+1]=r,t[n+2]=r,t[n+3]=e[1]},function(t,e,n,r){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=r},function(t,e,n){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=e[3]}];function a(t,e,n,r,o,a){for(var s=t.width,u=t.height,l=t.index,c=0;c<u;c++)for(var h=0;h<s;h++){var f=n(h,c,l);i[r](e,o,f,a),a+=r}return a}function s(t,e,n,r,i,a){for(var s=t.width,u=t.height,l=t.index,c=0;c<u;c++){for(var h=0;h<s;h++){var f=i.get(r),d=n(h,c,l);o[r](e,f,d,a)}i.resetAfterLine()}}e.dataToBitMap=function(e,n){var i,o,u=n.width,l=n.height,c=n.depth,h=n.bpp,f=n.interlace;8!==c&&(i=function(t,e){var n=[],r=0;function i(){if(r===t.length)throw new Error(\"Ran out of data\");var i,o,a,s,u,l,c,h,f=t[r];switch(r++,e){default:throw new Error(\"unrecognised depth\");case 16:c=t[r],r++,n.push((f<<8)+c);break;case 4:c=15&f,h=f>>4,n.push(h,c);break;case 2:u=3&f,l=f>>2&3,c=f>>4&3,h=f>>6&3,n.push(h,c,l,u);break;case 1:i=1&f,o=f>>1&1,a=f>>2&1,s=f>>3&1,u=f>>4&1,l=f>>5&1,c=f>>6&1,h=f>>7&1,n.push(h,c,l,u,s,a,o,i)}}return{get:function(t){for(;n.length<t;)i();var e=n.slice(0,t);return n=n.slice(t),e},resetAfterLine:function(){n.length=0},end:function(){if(r!==t.length)throw new Error(\"extra data found\")}}}(e,c)),o=c<=8?t.alloc(u*l*4):new Uint16Array(u*l*4);var d,p,m=Math.pow(2,c)-1,v=0;if(f)d=r.getImagePasses(u,l),p=r.getInterlaceIterator(u,l);else{var g=0;p=function(){var t=g;return g+=4,t},d=[{width:u,height:l}]}for(var y=0;y<d.length;y++)8===c?v=a(d[y],o,p,h,e,v):s(d[y],o,p,h,i,m);if(8===c){if(v!==e.length)throw new Error(\"extra data found\")}else i.end();return o}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(e){t.exports=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n.depth,o=n.width,a=n.height,s=n.colorType,u=n.transColor,l=n.palette,c=t;return 3===s?function(t,e,n,r,i){for(var o=0,a=0;a<r;a++)for(var s=0;s<n;s++){var u=i[t[o]];if(!u)throw new Error(\"index \"+t[o]+\" not in palette\");for(var l=0;l<4;l++)e[o+l]=u[l];o+=4}}(t,c,o,a,l):(u&&function(t,e,n,r,i){for(var o=0,a=0;a<r;a++)for(var s=0;s<n;s++){var u=!1;if(1===i.length?i[0]===t[o]&&(u=!0):i[0]===t[o]&&i[1]===t[o+1]&&i[2]===t[o+2]&&(u=!0),u)for(var l=0;l<4;l++)e[o+l]=0;o+=4}}(t,c,o,a,u),8===i||r||(16===i&&(c=e.alloc(o*a*4)),function(t,e,n,r,i){for(var o=Math.pow(2,i)-1,a=0,s=0;s<r;s++)for(var u=0;u<n;u++){for(var l=0;l<4;l++)e[a+l]=Math.floor(255*t[a+l]/o+.5);a+=4}}(t,c,o,a,i))),c}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(e){var r=n(30),i=n(86),o=n(188),a=n(189),s=n(28),u=t.exports=function(t){if(this._options=t,t.deflateChunkSize=t.deflateChunkSize||32768,t.deflateLevel=null!=t.deflateLevel?t.deflateLevel:9,t.deflateStrategy=null!=t.deflateStrategy?t.deflateStrategy:3,t.inputHasAlpha=null==t.inputHasAlpha||t.inputHasAlpha,t.deflateFactory=t.deflateFactory||s.createDeflate,t.bitDepth=t.bitDepth||8,t.colorType=\"number\"==typeof t.colorType?t.colorType:r.COLORTYPE_COLOR_ALPHA,t.inputColorType=\"number\"==typeof t.inputColorType?t.inputColorType:r.COLORTYPE_COLOR_ALPHA,-1===[r.COLORTYPE_GRAYSCALE,r.COLORTYPE_COLOR,r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(t.colorType))throw new Error(\"option color type:\"+t.colorType+\" is not supported at present\");if(-1===[r.COLORTYPE_GRAYSCALE,r.COLORTYPE_COLOR,r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(t.inputColorType))throw new Error(\"option input color type:\"+t.inputColorType+\" is not supported at present\");if(8!==t.bitDepth&&16!==t.bitDepth)throw new Error(\"option bit depth:\"+t.bitDepth+\" is not supported at present\")};u.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},u.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},u.prototype.filterData=function(t,e,n){var i=o(t,e,n,this._options),s=r.COLORTYPE_TO_BPP_MAP[this._options.colorType];return a(i,e,n,this._options,s)},u.prototype._packChunk=function(t,n){var r=n?n.length:0,o=e.alloc(r+12);return o.writeUInt32BE(r,0),o.writeUInt32BE(t,4),n&&n.copy(o,8),o.writeInt32BE(i.crc32(o.slice(4,o.length-4)),o.length-4),o},u.prototype.packGAMA=function(t){var n=e.alloc(4);return n.writeUInt32BE(Math.floor(t*r.GAMMA_DIVISION),0),this._packChunk(r.TYPE_gAMA,n)},u.prototype.packIHDR=function(t,n){var i=e.alloc(13);return i.writeUInt32BE(t,0),i.writeUInt32BE(n,4),i[8]=this._options.bitDepth,i[9]=this._options.colorType,i[10]=0,i[11]=0,i[12]=0,this._packChunk(r.TYPE_IHDR,i)},u.prototype.packIDAT=function(t){return this._packChunk(r.TYPE_IDAT,t)},u.prototype.packIEND=function(){return this._packChunk(r.TYPE_IEND,null)}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";var r=t.exports=function(t){this._buffer=t,this._reads=[]};r.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})},r.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}if(this._reads.length>0)throw new Error(\"There are some read requests waitng on finished stream\");if(this._buffer.length>0)throw new Error(\"unrecognised content at end of stream\")}},function(t,e,n){\"use strict\";t.exports=function(t,e,n,r){for(var i=65535&t,o=t>>>16&65535,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},function(t,e,n){\"use strict\";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return~t}},function(t,e,n){\"use strict\";var r=n(15),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n=\"\",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,e.string2buf=function(t){var e,n,i,o,a,s=t.length,u=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(u),a=0,o=0;a<u;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:n<2048?(e[a++]=192|n>>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},e.buf2string=function(t,e){var n,r,i,o,s=e||t.length,l=new Array(2*s);for(r=0,n=0;n<s;)if((i=t[n++])<128)l[r++]=i;else if((o=a[i])>4)l[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<s;)i=i<<6|63&t[n++],o--;o>1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return u(l,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},function(t,e,n){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,n){\"use strict\";(function(t){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,o(r.key),r)}}function o(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}var a=n(59),s=n(42),u=s.Gif,l=s.GifError;function c(){var t=n(97);return c=function(){return t},t}var h=n(58).GifFrame,f=function(){return e=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this._transparentRGB=null,\"number\"==typeof e.transparentRGB&&0!==e.transparentRGB&&(this._transparentRGBA=256*e.transparentRGB),this._testInitialBufferSize=0},n=[{key:\"decodeGif\",value:function(t){try{var e;try{e=new a.GifReader(t)}catch(t){throw new l(t)}for(var n=e.numFrames(),r=[],i={width:e.width,height:e.height,loops:e.loopCount(),usesTransparency:!1},o=0;o<n;++o){var s=this._decodeFrame(e,o,i.usesTransparency);r.push(s.frame),s.usesTransparency&&(i.usesTransparency=!0)}return Promise.resolve(new u(t,r,i))}catch(t){return Promise.reject(t)}}},{key:\"encodeGif\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{if(null===t||0===t.length)throw new l(\"there are no frames\");var n=c().getMaxDimensions(t);return(e=Object.assign({},e)).width=n.maxWidth,e.height=n.maxHeight,void 0===e.loops&&(e.loops=0),e.colorScope=e.colorScope||u.GlobalColorsPreferred,Promise.resolve(this._encodeGif(t,e))}catch(t){return Promise.reject(t)}}},{key:\"_decodeFrame\",value:function(e,n,r){var i,o;try{if(i=e.frameInfo(n),o=new t(e.width*e.height*4),e.decodeAndBlitFrameRGBA(n,o),i.width!==e.width||i.height!==e.height){if(i.y&&(o=o.slice(i.y*e.width*4)),e.width>i.width)for(var a=0;a<i.height;++a)o.copy(o,a*i.width*4,4*(i.x+a*e.width),4*(i.x+a*e.width)+4*i.width);o=o.slice(0,i.width*i.height*4)}}catch(t){throw new l(t)}var s=!1;if(null===this._transparentRGBA){if(!r)for(var u=3;u<o.length;u+=4)0===o[u]&&(s=!0,u=o.length)}else for(var c=3;c<o.length;c+=4)0===o[c]&&(o.writeUInt32BE(this._transparentRGBA,c-3),s=!0);return{frame:new h(i.width,i.height,o,{xOffset:i.x,yOffset:i.y,disposalMethod:i.disposal,interlaced:i.interlaced,delayCentisecs:i.delay}),usesTransparency:s}}},{key:\"_encodeGif\",value:function(e,n){var r;if(n.colorScope===u.LocalColorsOnly)r=c().getColorInfo(e,0);else if(!(r=c().getColorInfo(e,256)).colors){if(n.colorScope===u.GlobalColorsOnly)throw new l(\"Too many color indexes for global color table\");n.colorScope=u.LocalColorsOnly}n.usesTransparency=r.usesTransparency;var i=r.palettes;return n.colorScope===u.LocalColorsOnly?function(e,n,r,i){var o,s={loop:n.loops},c=new t(r);try{o=new a.GifWriter(c,n.width,n.height,s)}catch(t){throw new l(t)}for(var h=0;h<e.length;++h)c=y(o,h,e[h],i[h],!0);return new u(c.slice(0,o.end()),e,n)}(e,n,2e3,i):function(e,n,r,i){var o={colors:i.colors.slice(),usesTransparency:i.usesTransparency};m(o);var s,c={palette:o.colors,loop:n.loops},h=new t(r);try{s=new a.GifWriter(h,n.width,n.height,c)}catch(t){throw new l(t)}for(var f=0;f<e.length;++f)h=y(s,f,e[f],i,!1);return new u(h.slice(0,s.end()),e,n)}(e,n,2e3,r)}},{key:\"_getSizeEstimateGlobal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;var n=968,r=g(t);return e.forEach((function(t){n+=v(t,r)})),n}},{key:\"_getSizeEstimateLocal\",value:function(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;for(var n=200,r=0;r<e.length;++r){var i=g(t[r]);n+=v(e[r],i)}return n}}],n&&i(e.prototype,n),r&&i(e,r),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,n,r}();function d(t,e){var n=t.indexOf(e);return-1===n?null:n}function p(t,e){for(var n,r=0,i=t.length-1;r<=i;)if(t[n=Math.floor((r+i)/2)]>e)i=n-1;else{if(!(t[n]<e))return n;r=n+1}return null}function m(t){var e=t.colors;t.usesTransparency&&e.push(0);for(var n=e.length,r=2;n>r;)r<<=1;e.length=r,e.fill(0,n)}function v(t,e){var n=t.bitmap.width*t.bitmap.height;return n=Math.ceil(n*e/8),100+(n+=Math.ceil(n/255))+768}function g(t){var e=t.indexCount,n=0;for(--e;e;)++n,e>>=1;return n>0?n:1}function y(e,n,r,i,o){if(r.interlaced)throw new l(\"writing interlaced GIFs is not supported\");var a=function(e,n,r){for(var i=r.colors,o=i.length<=8?d:p,a=n.bitmap.data,s=new t(a.length/4),u=i.length,c=0,h=0;c<a.length;){if(0!==a[c+3]){var f=a.readUInt32BE(c,!0)>>8&16777215;s[h]=o(i,f)}else s[h]=u;c+=4,++h}if(r.usesTransparency){if(256===u)throw new l(\"Frame \".concat(e,\" already has 256 colors\")+\"and so can't use transparency\")}else u=null;return{buffer:s,transparentIndex:u}}(n,r,i),s={delay:r.delayCentisecs,disposal:r.disposalMethod,transparent:a.transparentIndex};o&&(m(i),s.palette=i.colors);try{for(var u,c=e.getOutputBuffer(),h=e.getOutputBufferPosition(),f=!0;f;)if(u=e.addFrame(r.xOffset,r.yOffset,r.bitmap.width,r.bitmap.height,a.buffer,s),f=!1,u>=c.length-1){var v=new t(1.5*c.length);c.copy(v),e.setOutputBuffer(v),e.setOutputBufferPosition(h),c=v,f=!0}return c}catch(t){throw new l(t)}}e.GifCodec=f}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(t){var r=n(11),i=n(206),o=n(57),a=n(58).GifFrame,s=n(42).GifError,u=n(96).GifCodec,l=[\".jpg\",\".jpeg\",\".png\",\".bmp\"],c=new u;function h(t,e,n,r,o){var a=Array.isArray(t)?t:[t];if(o){if([\"FloydSteinberg\",\"FalseFloydSteinberg\",\"Stucki\",\"Atkinson\",\"Jarvis\",\"Burkes\",\"Sierra\",\"TwoSierra\",\"SierraLite\"].indexOf(o.ditherAlgorithm)<0)throw new Error(\"Invalid ditherAlgorithm '\".concat(o.ditherAlgorithm,\"'\"));void 0===o.serpentine&&(o.serpentine=!0),void 0===o.minimumColorDistanceToDither&&(o.minimumColorDistanceToDither=0),void 0===o.calculateErrorLikeGIMP&&(o.calculateErrorLikeGIMP=!1)}var s,u=new i.distance.Euclidean,l=new i.palette[e](u,n,r);s=o?new i.image.ErrorDiffusionArray(u,i.image.ErrorDiffusionArrayKernel[o.ditherAlgorithm],o.serpentine,o.minimumColorDistanceToDither,o.calculateErrorLikeGIMP):new i.image.NearestColor(u);var c=[];a.forEach((function(t){for(var e=t.bitmap.data,n=new ArrayBuffer(e.length),r=new Uint32Array(n),o=0,a=0;o<e.length;o+=4,++a)r[a]=e.readUInt32LE(o,!0);var s=i.utils.PointContainer.fromUint32Array(r,t.bitmap.width,t.bitmap.height);l.sample(s),c.push(s)}));for(var h=l.quantizeSync(),f=0;f<a.length;++f)for(var d=a[f].bitmap.data,p=s.quantizeSync(c[f],h).toUint32Array(),m=0,v=0;m<d.length;m+=4,++v)d.writeUInt32LE(p[v],m)}e.cloneFrames=function(t){var e=[];return t.forEach((function(t){e.push(new a(t))})),e},e.getColorInfo=function(t,e){for(var n=!1,r=[],i=0;i<t.length;++i){var o=t[i].getPalette();if(o.usesTransparency&&(n=!0),o.indexCount>256)throw new s(\"Frame \".concat(i,\" uses more than 256 color indexes\"));r.push(o)}if(0===e)return{usesTransparency:n,palettes:r};var a=new Set;r.forEach((function(t){t.colors.forEach((function(t){a.add(t)}))}));var u=a.size;if(n&&++u,e&&u>e)return{usesTransparency:n,palettes:r};for(var l=new Array(a.size),c=a.values(),h=0;h<l.length;++h)l[h]=c.next().value;return l.sort((function(t,e){return t-e})),{colors:l,indexCount:u,usesTransparency:n,palettes:r}},e.copyAsJimp=function(t,n){return e.shareAsJimp(t,new o(n))},e.getMaxDimensions=function(t){var e=0,n=0;return t.forEach((function(t){var r=t.xOffset+t.bitmap.width;r>e&&(e=r);var i=t.yOffset+t.bitmap.height;i>n&&(n=i)})),{maxWidth:e,maxHeight:n}},e.quantizeDekker=function(t,e,n){h(t,\"NeuQuantFloat\",e=e||256,0,n)},e.quantizeSorokin=function(t,e,n,r){var i;switch(e=e||256,n=n||\"min-pop\"){case\"min-pop\":i=2;break;case\"top-pop\":i=1;break;default:throw new Error(\"Invalid quantizeSorokin histogram '\".concat(n,\"'\"))}h(t,\"RGBQuant\",e,i,r)},e.quantizeWu=function(t,e,n,r){if(e=e||256,(n=n||5)<1||n>8)throw new Error(\"Invalid quantization quality\");h(t,\"WuQuant\",e,n,r)},e.read=function(e,n){return n=n||c,t.isBuffer(e)?n.decodeGif(e):(i=e,new Promise((function(t,e){r.readFile(i,(function(n,r){return n?e(n):t(r)}))}))).then((function(t){return n.decodeGif(t)}));var i},e.shareAsJimp=function(t,e){var n=new t(e.bitmap.width,e.bitmap.height,0);return n.bitmap.data=e.bitmap.data,n},e.write=function(t,e,n,i){i=i||c;var o=t.match(/\\.[a-zA-Z]+$/);if(null!==o&&l.includes(o[0].toLowerCase()))throw new Error(\"GIF '\".concat(t,\"' has an unexpected suffix\"));return i.encodeGif(e,n).then((function(e){return function(t,e){return new Promise((function(n,i){r.writeFile(t,e,(function(t){return t?i(t):n()}))}))}(t,e.buffer).then((function(){return e}))}))}}).call(this,n(2).Buffer)},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)n.call(r,i)&&(t[i]=r[i])}return t};var n=Object.prototype.hasOwnProperty},function(t,e,n){function r(t,e,n){this._queue=[],this._priorities=[],this._sorting=\"desc\",this._init(t,e,n)}r.prototype.insert=function(t,e){for(var n=this._queue.length,r=n;r--;){var i=this._priorities[r];\"desc\"===this._sorting?e>i&&(n=r):e<i&&(n=r)}this._insertAt(t,e,n)},r.prototype.remove=function(t){for(var e=this._queue.length;e--;){if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}}},r.prototype.forEach=function(t){this._queue.forEach(t)},r.prototype.getElements=function(){return this._queue},r.prototype.getElementPriority=function(t){return this._priorities[t]},r.prototype.getPriorities=function(){return this._priorities},r.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,n=this._queue.length;e<n;e++)t.push([this._queue[e],this._priorities[e]]);return t},r.prototype._init=function(t,e,n){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error(\"Arrays must have the same length\");for(var r=0;r<t.length;r++)this.insert(t[r],e[r])}n&&(this._sorting=n)},r.prototype._insertAt=function(t,e,n){this._queue.length===n?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(n,0,t),this._priorities.splice(n,0,e))},t.exports&&(t.exports=r)},function(t,e){function n(e){return t.exports=n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){\"use strict\";function r(t,e,n,o,a,s){for(var u,l,c,h,f=Math.max(e-1,0),d=Math.max(n-1,0),p=Math.min(e+1,o-1),m=Math.min(n+1,a-1),v=4*(n*o+e),g=0,y=0,b=0,_=0,w=0,x=f;x<=p;x++)for(var k=d;k<=m;k++)if(x!==e||k!==n){var S=i(t,t,v,4*(k*o+x),!0);if(0===S?g++:S<0?b++:S>0&&y++,g>2)return!1;s&&(S<_&&(_=S,u=x,l=k),S>w&&(w=S,c=x,h=k))}return!s||0!==b&&0!==y&&(!r(t,u,l,o,a)&&!r(s,u,l,o,a)||!r(t,c,h,o,a)&&!r(s,c,h,o,a))}function i(t,e,n,r,i){var l=t[n+3]/255,c=e[r+3]/255,h=u(t[n+0],l),f=u(t[n+1],l),d=u(t[n+2],l),p=u(e[r+0],c),m=u(e[r+1],c),v=u(e[r+2],c),g=o(h,f,d)-o(p,m,v);if(i)return g;var y=a(h,f,d)-a(p,m,v),b=s(h,f,d)-s(p,m,v);return.5053*g*g+.299*y*y+.1957*b*b}function o(t,e,n){return.29889531*t+.58662247*e+.11448223*n}function a(t,e,n){return.59597799*t-.2741761*e-.32180189*n}function s(t,e,n){return.21147017*t-.52261711*e+.31114694*n}function u(t,e){return 255+(t-255)*e}function l(t,e,n,r,i){t[e+0]=n,t[e+1]=r,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,n,a,s,c){c||(c={});for(var h=void 0===c.threshold?.1:c.threshold,f=35215*h*h,d=0,p=0;p<s;p++)for(var m=0;m<a;m++){var v=4*(p*a+m);if(i(t,e,v,v)>f)c.includeAA||!r(t,m,p,a,s,e)&&!r(e,m,p,a,s,t)?(n&&l(n,v,255,0,0),d++):n&&l(n,v,255,255,0);else if(n){var g=u((_=void 0,w=void 0,x=void 0,k=void 0,_=(y=t)[(b=v)+3]/255,w=u(y[b+0],_),x=u(y[b+1],_),k=u(y[b+2],_),o(w,x,k)),.1);l(n,v,g,g,g)}}var y,b,_,w,x,k;return d}},function(t,e,n){\"use strict\";n(123);var r=[\"url\"];function i(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}e.a=function(t,e){var n=t.url,o=i(t,r);fetch(n,o).then((function(t){if(t.ok)return t.arrayBuffer().catch((function(t){throw new Error(\"Response is not a buffer for url \".concat(n,\". Error: \").concat(t.message))}));throw new Error(\"HTTP Status \".concat(t.status,\" for url \").concat(n))})).then((function(t){return e(null,t)})).catch((function(t){return e(t)}))}},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(){i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",l=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(r||[]);return a(o,\"_invoke\",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&o.call(S,u)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,a,s,u){var l=d(t[i],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==r(h)&&o.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var i;a(this,\"_invoke\",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[u];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+\" is not iterable\")}return _.prototype=w,a(C,\"constructor\",{value:w,configurable:!0}),a(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,l,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,u,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return r(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),l=o.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,\"finallyLoc\")&&this.prev<r.finallyLoc){var i=r;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}var a=n(125),s=n(131);function u(){var t;return t=i().mark((function t(e){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.fromFile(e);case 2:return n=t.sent,t.prev=3,t.next=6,s.fromTokenizer(n);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,n.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])})),u=function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,\"next\",t)}function u(t){o(a,r,i,s,u,\"throw\",t)}s(void 0)}))},u.apply(this,arguments)}var l={fromFile:function(t){return u.apply(this,arguments)}};Object.assign(l,s),Object.defineProperty(l,\"extensions\",{get:function(){return s.extensions}}),Object.defineProperty(l,\"mimeTypes\",{get:function(){return s.mimeTypes}}),t.exports=l},function(t,e,n){var r=n(135);t.exports={create:function(t,e){if(t instanceof(e=e||(0,eval)(\"this\")).ArrayBuffer){var i=n(140);return new r(new i(t,0,t.byteLength,!0,e))}var o=n(141);return new r(new o(t,0,t.length,!0))}}},function(t,e,n){\"use strict\";(function(t){var r=n(36),i=n.n(r);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function a(t,e,n){var r;return r=function(t,e){if(\"object\"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=o(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(r)?r:r+\"\")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=\"image/tiff\";e.a=function(){return{mime:a({},s,[\"tiff\",\"tif\"]),constants:{MIME_TIFF:s},decoders:a({},s,(function(e){var n=i.a.decode(e),r=n[0];n.forEach((function(t){i.a.decodeImage(e,t)}));var o=i.a.toRGBA8(r);return{data:t.from(o),width:r.t256[0],height:r.t257[0]}})),encoders:a({},s,(function(e){var n=i.a.encodeImage(e.bitmap.data,e.bitmap.width,e.bitmap.height);return t.from(n)}))}}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(t){var r=n(59),i=n.n(r),o=n(37);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e,n){var r;return r=function(t,e){if(\"object\"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=a(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==a(r)?r:r+\"\")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=\"image/gif\";e.a=function(){return{mime:s({},u,[\"gif\"]),constants:{MIME_GIF:u},decoders:s({},u,(function(e){var n=new i.a.GifReader(e),r=t.alloc(n.width*n.height*4);return n.decodeAndBlitFrameRGBA(0,r),{data:r,width:n.width,height:n.height}})),encoders:s({},u,(function(t){var e=new o.BitmapImage(t.bitmap);o.GifUtil.quantizeDekker(e,256);var n=new o.GifFrame(e);return(new o.GifCodec).encodeGif([n],{}).then((function(t){return t.buffer}))}))}}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(t){var r=n(32),i=n.n(r),o=n(0);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e,n,r){for(var i=[0,0,0],o=(e.length-1)/2,a=0;a<e.length;a+=1)for(var s=0;s<e[a].length;s+=1){var u=t.getPixelIndex(n+a-o,r+s-o);i[0]+=t.bitmap.data[u]*e[a][s],i[1]+=t.bitmap.data[u+1]*e[a][s],i[2]+=t.bitmap.data[u+2]*e[a][s]}return i}var l=function(t){return null!=t};function c(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){var r=parseInt(.2126*this.bitmap.data[n]+.7152*this.bitmap.data[n+1]+.0722*this.bitmap.data[n+2],10);this.bitmap.data[n]=r,this.bitmap.data[n+1]=r,this.bitmap.data[n+2]=r})),Object(o.a)(t)&&t.call(this,null,this),this}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(n/100)+t.r,g:(e.g-t.g)*(n/100)+t.g,b:(e.b-t.b)*(n/100)+t.b}}function f(t,e){var n=this;return t&&Array.isArray(t)?(t=t.map((function(t){return\"xor\"!==t.apply&&\"mix\"!==t.apply||(t.params[0]=i()(t.params[0]).toRgb()),t})),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,s,u){var l={r:n.bitmap.data[u],g:n.bitmap.data[u+1],b:n.bitmap.data[u+2]},c=function(t,e){return n.constructor.limit255(l[t]+e)};t.forEach((function(t){if(\"mix\"===t.apply)l=h(l,t.params[0],t.params[1]);else if(\"tint\"===t.apply)l=h(l,{r:255,g:255,b:255},t.params[0]);else if(\"shade\"===t.apply)l=h(l,{r:0,g:0,b:0},t.params[0]);else if(\"xor\"===t.apply)l={r:l.r^t.params[0].r,g:l.g^t.params[0].g,b:l.b^t.params[0].b};else if(\"red\"===t.apply)l.r=c(\"r\",t.params[0]);else if(\"green\"===t.apply)l.g=c(\"g\",t.params[0]);else if(\"blue\"===t.apply)l.b=c(\"b\",t.params[0]);else{var r;if(\"hue\"===t.apply&&(t.apply=\"spin\"),!(l=i()(l))[t.apply])return o.d.call(n,\"action \"+t.apply+\" not supported\",e);l=(r=l)[t.apply].apply(r,a(t.params)).toRgb()}})),n.bitmap.data[u]=l.r,n.bitmap.data[u+1]=l.g,n.bitmap.data[u+2]=l.b})),Object(o.a)(e)&&e.call(this,null,this),this):o.d.call(this,\"actions must be an array\",e)}Object.freeze({LIGHTEN:\"lighten\",BRIGHTEN:\"brighten\",DARKEN:\"darken\",DESATURATE:\"desaturate\",SATURATE:\"saturate\",GREYSCALE:\"greyscale\",SPIN:\"spin\",HUE:\"hue\",MIX:\"mix\",TINT:\"tint\",SHADE:\"shade\",XOR:\"xor\",RED:\"red\",GREEN:\"green\",BLUE:\"blue\"});e.a=function(){return{brightness:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"val must be numbers\",e):t<-1||t>1?o.d.call(this,\"val must be a number between -1 and +1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,n,r){t<0?(this.bitmap.data[r]*=1+t,this.bitmap.data[r+1]*=1+t,this.bitmap.data[r+2]*=1+t):(this.bitmap.data[r]+=(255-this.bitmap.data[r])*t,this.bitmap.data[r+1]+=(255-this.bitmap.data[r+1])*t,this.bitmap.data[r+2]+=(255-this.bitmap.data[r+2])*t)})),Object(o.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if(\"number\"!=typeof t)return o.d.call(this,\"val must be numbers\",e);if(t<-1||t>1)return o.d.call(this,\"val must be a number between -1 and +1\",e);var n=(t+1)/(1-t);function r(t){return(t=Math.floor(n*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){this.bitmap.data[n]=r(this.bitmap.data[n]),this.bitmap.data[n+1]=r(this.bitmap.data[n+1]),this.bitmap.data[n+2]=r(this.bitmap.data[n+2])})),Object(o.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"n must be numbers\",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,n,r){this.bitmap.data[r]=Math.floor(this.bitmap.data[r]/255*(t-1))/(t-1)*255,this.bitmap.data[r+1]=Math.floor(this.bitmap.data[r+1]/255*(t-1))/(t-1)*255,this.bitmap.data[r+2]=Math.floor(this.bitmap.data[r+2]/255*(t-1))/(t-1)*255})),Object(o.a)(e)&&e.call(this,null,this),this)},greyscale:c,grayscale:c,opacity:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"f must be a number\",e):t<0||t>1?o.d.call(this,\"f must be a number from 0 to 1\",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,n,r){var i=this.bitmap.data[r+3]*t;this.bitmap.data[r+3]=i})),Object(o.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){var r=this.bitmap.data[n],i=this.bitmap.data[n+1],o=this.bitmap.data[n+2];o=.272*(r=.393*r+.769*i+.189*o)+.534*(i=.349*r+.686*i+.168*o)+.131*o,this.bitmap.data[n]=r<255?r:255,this.bitmap.data[n+1]=i<255?i:255,this.bitmap.data[n+2]=o<255?o:255})),Object(o.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return\"number\"!=typeof t?o.d.call(this,\"f must be a number\",e):t<0||t>1?o.d.call(this,\"f must be a number from 0 to 1\",e):(this.opacity(1-t),Object(o.a)(e)&&e.call(this,null,this),this)},convolution:function(e,n,r){\"function\"==typeof n&&void 0===r&&(r=n,n=null),n||(n=this.constructor.EDGE_EXTEND);var i,a,s,u,l,c,h,f,d,p,m=t.from(this.bitmap.data),v=e.length,g=e[0].length,y=Math.floor(v/2),b=Math.floor(g/2),_=-y,w=-b;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,r,o){u=0,s=0,a=0;for(var v=_;v<=y;v++)for(var g=w;g<=b;g++)f=t+g,d=r+v,i=e[v+y][g+b],-1===(p=this.getPixelIndex(f,d,n))?(h=0,c=0,l=0):(l=this.bitmap.data[p+0],c=this.bitmap.data[p+1],h=this.bitmap.data[p+2]),a+=i*l,s+=i*c,u+=i*h;a<0&&(a=0),s<0&&(s=0),u<0&&(u=0),a>255&&(a=255),s>255&&(s=255),u>255&&(u=255),m[o+0]=a,m[o+1]=s,m[o+2]=u})),this.bitmap.data=m,Object(o.a)(r)&&r.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){this.bitmap.data[n+3]=255})),Object(o.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,n,r,i,a){if(\"function\"==typeof e)a=e,i=null,r=null,n=null,e=null;else{if(\"number\"!=typeof t)return o.d.call(this,\"size must be a number\",a);if(l(e)&&\"number\"!=typeof e)return o.d.call(this,\"x must be a number\",a);if(l(n)&&\"number\"!=typeof n)return o.d.call(this,\"y must be a number\",a);if(l(r)&&\"number\"!=typeof r)return o.d.call(this,\"w must be a number\",a);if(l(i)&&\"number\"!=typeof i)return o.d.call(this,\"h must be a number\",a)}var s=[[1/16,2/16,1/16],[2/16,.25,2/16],[1/16,2/16,1/16]];e=e||0,n=n||0,r=l(r)?r:this.bitmap.width-e,i=l(i)?i:this.bitmap.height-n;var c=this.cloneQuiet();return this.scanQuiet(e,n,r,i,(function(e,n,r){e=t*Math.floor(e/t),n=t*Math.floor(n/t);var i=u(c,s,e,n);this.bitmap.data[r]=i[0],this.bitmap.data[r+1]=i[1],this.bitmap.data[r+2]=i[2]})),Object(o.a)(a)&&a.call(this,null,this),this},convolute:function(t,e,n,r,i,a){if(!Array.isArray(t))return o.d.call(this,\"the kernel must be an array\",a);if(\"function\"==typeof e)a=e,e=null,n=null,r=null,i=null;else{if(l(e)&&\"number\"!=typeof e)return o.d.call(this,\"x must be a number\",a);if(l(n)&&\"number\"!=typeof n)return o.d.call(this,\"y must be a number\",a);if(l(r)&&\"number\"!=typeof r)return o.d.call(this,\"w must be a number\",a);if(l(i)&&\"number\"!=typeof i)return o.d.call(this,\"h must be a number\",a)}e=l(e)?e:0,n=l(n)?n:0,r=l(r)?r:this.bitmap.width-e,i=l(i)?i:this.bitmap.height-n;var s=this.cloneQuiet();return this.scanQuiet(e,n,r,i,(function(e,n,r){var i=u(s,t,e,n);this.bitmap.data[r]=this.constructor.limit255(i[0]),this.bitmap.data[r+1]=this.constructor.limit255(i[1]),this.bitmap.data[r+2]=this.constructor.limit255(i[2])})),Object(o.a)(a)&&a.call(this,null,this),this},color:f,colour:f}}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(t){n.d(e,\"a\",(function(){return o}));var r=n(0);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function o(e){return e(\"crop\",(function(e,n,i,o,a){if(\"number\"!=typeof e||\"number\"!=typeof n)return r.d.call(this,\"x and y must be numbers\",a);if(\"number\"!=typeof i||\"number\"!=typeof o)return r.d.call(this,\"w and h must be numbers\",a);if(e=Math.round(e),n=Math.round(n),i=Math.round(i),o=Math.round(o),0===e&&i===this.bitmap.width){var s=i*n+e<<2,u=s+(o*i<<2);this.bitmap.data=this.bitmap.data.slice(s,u)}else{var l=t.allocUnsafe(i*o*4),c=0;this.scanQuiet(e,n,i,o,(function(t,e,n){var r=this.bitmap.data.readUInt32BE(n,!0);l.writeUInt32BE(r,c,!0),c+=4})),this.bitmap.data=l}return this.bitmap.width=i,this.bitmap.height=o,Object(r.a)(a)&&a.call(this,null,this),this})),{class:{autocrop:function(){for(var t,e=this.bitmap.width,n=this.bitmap.height,o=0,a=2e-4,s=!0,u=!1,l={north:!1,south:!1,east:!1,west:!1},c=arguments.length,h=new Array(c),f=0;f<c;f++)h[f]=arguments[f];for(var d=0,p=h.length;d<p;d++)if(\"number\"==typeof h[d]&&(a=h[d]),\"boolean\"==typeof h[d]&&(s=h[d]),\"function\"==typeof h[d]&&(t=h[d]),\"object\"===i(h[d])){var m=h[d];void 0!==m.tolerance&&(a=m.tolerance),void 0!==m.cropOnlyFrames&&(s=m.cropOnlyFrames),void 0!==m.cropSymmetric&&(u=m.cropSymmetric),void 0!==m.leaveBorder&&(o=m.leaveBorder),void 0!==m.ignoreSides&&(l=m.ignoreSides)}var v=this.getPixelColor(0,0),g=this.constructor.intToRGBA(v),y=0,b=0,_=0,w=0;if(v=this.getPixelColor(0,0),!l.north)t:for(var x=0;x<n-1;x++){for(var k=0;k<e;k++){var S=this.getPixelColor(k,x),C=this.constructor.intToRGBA(S);if(this.constructor.colorDiff(g,C)>a)break t}y++}if(v=this.getPixelColor(e,0),!l.west)t:for(var E=0;E<e-1;E++){for(var D=0+y;D<n;D++){var A=this.getPixelColor(E,D),O=this.constructor.intToRGBA(A);if(this.constructor.colorDiff(g,O)>a)break t}w++}if(v=this.getPixelColor(0,n),!l.south)t:for(var M=n-1;M>=y+1;M--){for(var T=e-b-1;T>=0;T--){var I=this.getPixelColor(T,M),P=this.constructor.intToRGBA(I);if(this.constructor.colorDiff(g,P)>a)break t}_++}if(v=this.getPixelColor(e,n),!l.east)t:for(var F=e-1;F>=0+w+1;F--){for(var j=n-1;j>=0+y;j--){var N=this.getPixelColor(F,j),L=this.constructor.intToRGBA(N);if(this.constructor.colorDiff(g,L)>a)break t}b++}if(w-=o,b-=o,y-=o,_-=o,u){var B=Math.min(b,w),$=Math.min(y,_);w=B,b=B,y=$,_=$}var z=e-((w=w>=0?w:0)+(b=b>=0?b:0)),R=n-((_=_>=0?_:0)+(y=y>=0?y:0));return(s?0!==b&&0!==y&&0!==w&&0!==_:0!==b||0!==y||0!==w||0!==_)&&this.crop(w,y,z,R),Object(r.a)(t)&&t.call(this,null,this),this}}}}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(t){var r=n(0);function i(e,n,i){if(\"boolean\"!=typeof e||\"boolean\"!=typeof n)return r.d.call(this,\"horizontal and vertical must be Booleans\",i);var o=t.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,r,i){var a=e?this.bitmap.width-1-t:t,s=n?this.bitmap.height-1-r:r,u=this.bitmap.width*s+a<<2,l=this.bitmap.data.readUInt32BE(i);o.writeUInt32BE(l,u)})),this.bitmap.data=t.from(o),Object(r.a)(i)&&i.call(this,null,this),this}e.a=function(){return{flip:i,mirror:i}}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(t,r){var i=n(6),o=n.n(i),a=n(111),s=n.n(a),u=n(0),l=n(17);function c(t){return c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},c(t)}function h(t,e,n,r,i){if(i.width>0&&i.height>0){var o=e.pages[i.page];t.blit(o,n+i.xoffset,r+i.yoffset,i.x,i.y,i.width,i.height)}return t}function f(t,e,n,r,i){for(var o=0;o<r.length;o++){var a=void 0;a=t.chars[r[o]]?r[o]:/\\s/.test(r[o])?\"\":\"?\";var s=t.chars[a]||{},u=t.kernings[a];h(this,t,e,n,s||{}),e+=(u&&u[r[o+1]]?u[r[o+1]]:0)+(s.xadvance||i)}}var d=t.env.DIRNAME||\"\".concat(r,\"/../\");e.a=function(){return{constants:{measureText:l.a,measureTextHeight:l.b,FONT_SANS_8_BLACK:o.a.join(d,\"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt\"),FONT_SANS_10_BLACK:o.a.join(d,\"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt\"),FONT_SANS_12_BLACK:o.a.join(d,\"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt\"),FONT_SANS_14_BLACK:o.a.join(d,\"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt\"),FONT_SANS_16_BLACK:o.a.join(d,\"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt\"),FONT_SANS_32_BLACK:o.a.join(d,\"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt\"),FONT_SANS_64_BLACK:o.a.join(d,\"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt\"),FONT_SANS_128_BLACK:o.a.join(d,\"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt\"),FONT_SANS_8_WHITE:o.a.join(d,\"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt\"),FONT_SANS_16_WHITE:o.a.join(d,\"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt\"),FONT_SANS_32_WHITE:o.a.join(d,\"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt\"),FONT_SANS_64_WHITE:o.a.join(d,\"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt\"),FONT_SANS_128_WHITE:o.a.join(d,\"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt\"),loadFont:function(t,e){var n=this;return\"string\"!=typeof t?u.d.call(this,\"file must be a string\",e):new Promise((function(r,i){e=e||function(t,e){t?i(t):r(e)},s()(t,(function(r,i){var a={},s={};if(r)return u.d.call(n,r,e);for(var l=0;l<i.chars.length;l++)a[String.fromCharCode(i.chars[l].id)]=i.chars[l];for(var c=0;c<i.kernings.length;c++){var h=String.fromCharCode(i.kernings[c].first);s[h]=s[h]||{},s[h][String.fromCharCode(i.kernings[c].second)]=i.kernings[c].amount}(function(t,e,n){var r=n.map((function(n){return t.read(e+\"/\"+n)}));return Promise.all(r)})(n,o.a.dirname(t),i.pages).then((function(t){e(null,{chars:a,kernings:s,pages:t,common:i.common,info:i.info})}))}))}))}},class:{print:function(t,e,n,r,i,o,a){var s,h,d=this;if(\"function\"==typeof i&&void 0===a&&(a=i,i=1/0),void 0===i&&(i=1/0),\"function\"==typeof o&&void 0===a&&(a=o,o=1/0),void 0===o&&(o=1/0),\"object\"!==c(t))return u.d.call(this,\"font must be a Jimp loadFont\",a);if(\"number\"!=typeof e||\"number\"!=typeof n||\"number\"!=typeof i)return u.d.call(this,\"x, y and maxWidth must be numbers\",a);if(\"number\"!=typeof i)return u.d.call(this,\"maxWidth must be a number\",a);if(\"number\"!=typeof o)return u.d.call(this,\"maxHeight must be a number\",a);\"object\"===c(r)&&null!==r.text&&void 0!==r.text?(s=r.alignmentX||this.constructor.HORIZONTAL_ALIGN_LEFT,h=r.alignmentY||this.constructor.VERTICAL_ALIGN_TOP,r=r.text):(s=this.constructor.HORIZONTAL_ALIGN_LEFT,h=this.constructor.VERTICAL_ALIGN_TOP,r=r.toString());o!==1/0&&h===this.constructor.VERTICAL_ALIGN_BOTTOM?n+=o-Object(l.b)(t,r,i):o!==1/0&&h===this.constructor.VERTICAL_ALIGN_MIDDLE&&(n+=o/2-Object(l.b)(t,r,i)/2);var p=Object.entries(t.chars)[0][1].xadvance,m=Object(l.c)(t,r,i),v=m.lines,g=m.longestLine;return v.forEach((function(r){var o=r.join(\" \"),a=function(t,e,n,r,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(r-Object(l.a)(e,n))/2:r-Object(l.a)(e,n)}(d.constructor,t,o,i,s);f.call(d,t,e+a,n,o,p),n+=t.common.lineHeight})),Object(u.a)(a)&&a.call(this,null,this,{x:e+g,y:n}),this}}}}}).call(this,n(7),\"/\")},function(t,e,n){(function(e){var r=n(207),i=function(){},o=n(211),a=n(212),s=n(215),u=n(216),l=n(98),c=self.XMLHttpRequest&&\"withCredentials\"in new XMLHttpRequest;t.exports=function(t,n){n=\"function\"==typeof n?n:i,\"string\"==typeof t?t={uri:t}:t||(t={}),t.binary&&(t=function(t){if(c)return l(t,{responseType:\"arraybuffer\"});if(void 0===self.XMLHttpRequest)throw new Error(\"your browser does not support XHR loading\");var e=new self.XMLHttpRequest;return e.overrideMimeType(\"text/plain; charset=x-user-defined\"),l({xhr:e},t)}(t)),r(t,(function(r,l,c){if(r)return n(r);if(!/^2/.test(l.statusCode))return n(new Error(\"http status code: \"+l.statusCode));if(!c)return n(new Error(\"no body result\"));var h,f,d=!1;if(h=c,\"[object ArrayBuffer]\"===Object.prototype.toString.call(h)){var p=new Uint8Array(c);c=e.from(p,\"binary\")}u(c)&&(d=!0,\"string\"==typeof c&&(c=e.from(c,\"binary\"))),d||(e.isBuffer(c)&&(c=c.toString(t.encoding)),c=c.trim());try{var m=l.headers[\"content-type\"];f=d?s(c):/json/.test(m)||\"{\"===c.charAt(0)?JSON.parse(c):/xml/.test(m)||\"<\"===c.charAt(0)?a(c):o(c)}catch(t){n(new Error(\"error parsing font \"+t.message)),n=i}n(null,f)}))}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(t){var r=n(0),i=n(113),o=n(63);e.a=function(){return{constants:{RESIZE_NEAREST_NEIGHBOR:\"nearestNeighbor\",RESIZE_BILINEAR:\"bilinearInterpolation\",RESIZE_BICUBIC:\"bicubicInterpolation\",RESIZE_HERMITE:\"hermiteInterpolation\",RESIZE_BEZIER:\"bezierInterpolation\"},class:{resize:function(e,n,a,s){if(\"number\"!=typeof e||\"number\"!=typeof n)return r.d.call(this,\"w and h must be numbers\",s);if(\"function\"==typeof a&&void 0===s&&(s=a,a=null),e===this.constructor.AUTO&&n===this.constructor.AUTO)return r.d.call(this,\"w and h cannot both be set to auto\",s);if(e===this.constructor.AUTO&&(e=this.bitmap.width*(n/this.bitmap.height)),n===this.constructor.AUTO&&(n=this.bitmap.height*(e/this.bitmap.width)),e<0||n<0)return r.d.call(this,\"w and h must be positive numbers\",s);if(e=Math.round(e)||1,n=Math.round(n)||1,\"function\"==typeof o.a[a]){var u={data:t.alloc(e*n*4),width:e,height:n};o.a[a](this.bitmap,u),this.bitmap=u}else{var l=this,c=new i.a(this.bitmap.width,this.bitmap.height,e,n,!0,!0,(function(r){l.bitmap.data=t.from(r),l.bitmap.width=e,l.bitmap.height=n}));c.resize(this.bitmap.data)}return Object(r.a)(s)&&s.call(this,null,this),this}}}}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(n)||0),this.targetHeight=Math.abs(Math.floor(r)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(o),this.resizeCallback=\"function\"==typeof a?a:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}r.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error(\"Invalid settings specified for the resizer.\");this.configurePasses()},r.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},r.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var n,r,i=e?4:3,o=this.ratioWeightWidthPass,a=this.widthBuffer,s=0,u=0,l=0,c=0,h=0;for(n=0;s<1/3;n+=i,s+=o)for(u=n,l=0;u<this.widthPassResultSize;l+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u]=t[l],a[u+1]=t[l+1],a[u+2]=t[l+2],e&&(a[u+3]=t[l+3]);for(s-=1/3,r=this.widthOriginal-1;s<r;n+=i,s+=o)for(c=1-(h=s%1),u=n,l=Math.floor(s)*i;u<this.widthPassResultSize;l+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u+0]=t[l+0]*c+t[l+i+0]*h,a[u+1]=t[l+1]*c+t[l+i+1]*h,a[u+2]=t[l+2]*c+t[l+i+2]*h,e&&(a[u+3]=t[l+3]*c+t[l+i+3]*h);for(r=this.originalWidthMultipliedByChannels-i;n<this.targetWidthMultipliedByChannels;n+=i)for(u=n,l=r;u<this.widthPassResultSize;l+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u]=t[l],a[u+1]=t[l+1],a[u+2]=t[l+2],e&&(a[u+3]=t[l+3]);return a},r.prototype._resizeWidthRGBChannels=function(t,e){var n=e?4:3,r=this.ratioWeightWidthPass,i=1/r,o=this.originalWidthMultipliedByChannels-n+1,a=this.targetWidthMultipliedByChannels-n+1,s=this.outputWidthWorkBench,u=this.widthBuffer,l=this.outputWidthWorkBenchOpaquePixelsCount,c=0,h=0,f=0,d=0,p=0,m=0,v=0,g=1,y=0,b=0,_=0,w=0;do{for(p=0;p<this.originalHeightMultipliedByChannels;)s[p++]=0,s[p++]=0,s[p++]=0,e&&(s[p++]=0,l[p/n-1]=0);c=r;do{for(h=1+f-d,g=Math.min(c,h),p=0,m=f;p<this.originalHeightMultipliedByChannels;m+=o)y=t[m],b=t[++m],_=t[++m],w=e?t[++m]:255,s[p++]+=(w?y:0)*g,s[p++]+=(w?b:0)*g,s[p++]+=(w?_:0)*g,e&&(s[p++]+=w*g,l[p/n-1]+=w?g:0);if(!(c>=h)){d+=c;break}d=f+=n,c-=h}while(c>0&&f<this.originalWidthMultipliedByChannels);for(p=0,m=v;p<this.originalHeightMultipliedByChannels;m+=a)c=e?l[p/n]:1,g=e?c?1/c:0:i,u[m]=s[p++]*g,u[++m]=s[p++]*g,u[++m]=s[p++]*g,e&&(u[++m]=s[p++]*i);v+=n}while(v<this.targetWidthMultipliedByChannels);return u},r.prototype._resizeHeightRGBChannels=function(t,e){var n=this.ratioWeightHeightPass,r=1/n,i=this.outputHeightWorkBench,o=this.heightBuffer,a=this.outputHeightWorkBenchOpaquePixelsCount,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=1,m=0,v=0,g=0,y=0;do{for(h=0;h<this.targetWidthMultipliedByChannels;)i[h++]=0,i[h++]=0,i[h++]=0,e&&(i[h++]=0,a[h/4-1]=0);s=n;do{for(u=1+l-c,p=Math.min(s,u),d=l,h=0;h<this.targetWidthMultipliedByChannels;)m=t[d++],v=t[d++],g=t[d++],y=e?t[d++]:255,i[h++]+=(y?m:0)*p,i[h++]+=(y?v:0)*p,i[h++]+=(y?g:0)*p,e&&(i[h++]+=y*p,a[h/4-1]+=y?p:0);if(!(s>=u)){c+=s;break}c=l=d,s-=u}while(s>0&&l<this.widthPassResultSize);for(h=0;h<this.targetWidthMultipliedByChannels;)s=e?a[h/4]:1,p=e?s?1/s:0:r,o[f++]=Math.round(i[h++]*p),o[f++]=Math.round(i[h++]*p),o[f++]=Math.round(i[h++]*p),e&&(o[f++]=Math.round(i[h++]*r))}while(f<this.finalResultSize);return o},r.prototype.resizeWidthInterpolatedRGB=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!1)},r.prototype.resizeWidthInterpolatedRGBA=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!0)},r.prototype.resizeWidthRGB=function(t){return this._resizeWidthRGBChannels(t,!1)},r.prototype.resizeWidthRGBA=function(t){return this._resizeWidthRGBChannels(t,!0)},r.prototype.resizeHeightInterpolated=function(t){for(var e,n=this.ratioWeightHeightPass,r=this.heightBuffer,i=0,o=0,a=0,s=0,u=0,l=0,c=0;i<1/3;i+=n)for(a=0;a<this.targetWidthMultipliedByChannels;)r[o++]=Math.round(t[a++]);for(i-=1/3,e=this.heightOriginal-1;i<e;i+=n)for(l=1-(c=i%1),u=(s=Math.floor(i)*this.targetWidthMultipliedByChannels)+this.targetWidthMultipliedByChannels,a=0;a<this.targetWidthMultipliedByChannels;++a)r[o++]=Math.round(t[s++]*l+t[u++]*c);for(;o<this.finalResultSize;)for(a=0,s=e*this.targetWidthMultipliedByChannels;a<this.targetWidthMultipliedByChannels;++a)r[o++]=Math.round(t[s++]);return r},r.prototype.resizeHeightRGB=function(t){return this._resizeHeightRGBChannels(t,!1)},r.prototype.resizeHeightRGBA=function(t){return this._resizeHeightRGBChannels(t,!0)},r.prototype.resize=function(t){this.resizeCallback(this.resizeHeight(this.resizeWidth(t)))},r.prototype.bypassResizer=function(t){return t},r.prototype.initializeFirstPassBuffers=function(t){this.widthBuffer=this.generateFloatBuffer(this.widthPassResultSize),t||(this.outputWidthWorkBench=this.generateFloatBuffer(this.originalHeightMultipliedByChannels),this.colorChannels>3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},r.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},r.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},r.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},r.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},e.a=r},function(t,e,n){\"use strict\";(function(t){var r=n(0);function i(e){if(Math.abs(e)%90!=0)throw new Error(\"Unsupported matrix rotation degree\");if(e%=360,0!==Math.abs(e)){var n,r=this.bitmap.width,i=this.bitmap.height;switch(e){case 90:case-270:n=90;break;case 180:case-180:n=180;break;case 270:case-90:n=-90;break;default:throw new Error(\"Unsupported matrix rotation degree\")}for(var o=180===n?r:i,a=180===n?i:r,s=t.alloc(this.bitmap.data.length),u=m(r),l=m(o),c=0;c<r;c++)for(var h=0;h<i;h++){var f=u(c,h),d=this.bitmap.data.readUInt32BE(f),p=void 0;switch(n){case 90:p=l(h,r-c-1);break;case-90:p=l(i-h-1,c);break;case 180:p=l(r-c-1,i-h-1);break;default:throw new Error(\"Unsupported matrix rotation angle\")}s.writeUInt32BE(d,p)}this.bitmap.data=s,this.bitmap.width=o,this.bitmap.height=a}function m(t,e){return function(e,n){return n*t+e<<2}}}function o(e,n){var r=(e%=360)*Math.PI/180,i=Math.cos(r),o=Math.sin(r),a=this.bitmap.width,s=this.bitmap.height;if(!0===n||\"string\"==typeof n){(a=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*o))+1)%2!=0&&a++,(s=Math.ceil(Math.abs(this.bitmap.width*o)+Math.abs(this.bitmap.height*i))+1)%2!=0&&s++;var u=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)}));var l=Math.max(a,s,this.bitmap.width,this.bitmap.height);this.resize(l,l,n),this.blit(u,this.bitmap.width/2-u.bitmap.width/2,this.bitmap.height/2-u.bitmap.height/2)}var c=this.bitmap.width,h=this.bitmap.height,f=t.alloc(this.bitmap.data.length);function d(t,e){return function(n,r){return{x:n+t,y:r+e}}}for(var p=d(-c/2,-h/2),m=d(c/2+.5,h/2+.5),v=1;v<=h;v++)for(var g=1;g<=c;g++){var y=p(g,v),b=m(i*y.x-o*y.y,i*y.y+o*y.x),_=c*(v-1)+g-1<<2;if(b.x>=0&&b.x<c&&b.y>=0&&b.y<h){var w=c*(0|b.y)+b.x<<2,x=this.bitmap.data.readUInt32BE(w);f.writeUInt32BE(x,_)}else f.writeUInt32BE(this._background,_)}if(this.bitmap.data=f,!0===n||\"string\"==typeof n){var k=c/2-a/2,S=h/2-s/2;this.crop(k,S,a,s)}}e.a=function(){return{rotate:function(t,e,n){return null==e&&(e=!0),\"function\"==typeof e&&void 0===n&&(n=e,e=!0),\"number\"!=typeof t?r.d.call(this,\"deg must be a number\",n):\"boolean\"!=typeof e&&\"string\"!=typeof e?r.d.call(this,\"mode must be a boolean or a string\",n):(t%90==0&&(e||this.bitmap.width===this.bitmap.height||t%180==0)?i.call(this,t):o.call(this,t,e,n),Object(r.a)(n)&&n.call(this,null,this),this)}}}}).call(this,n(2).Buffer)},function(t,e,n){t.exports&&(t.exports={DBSCAN:n(218),KMEANS:n(219),OPTICS:n(220),PriorityQueue:n(99)})},function(t,e,n){\"use strict\";n.d(e,\"a\",(function(){return g}));var r={};n.r(r),n.d(r,\"srcOver\",(function(){return a})),n.d(r,\"dstOver\",(function(){return s})),n.d(r,\"multiply\",(function(){return u})),n.d(r,\"add\",(function(){return l})),n.d(r,\"screen\",(function(){return c})),n.d(r,\"overlay\",(function(){return h})),n.d(r,\"darken\",(function(){return f})),n.d(r,\"lighten\",(function(){return d})),n.d(r,\"hardLight\",(function(){return p})),n.d(r,\"difference\",(function(){return m})),n.d(r,\"exclusion\",(function(){return v}));var i=n(0),o=n(20);function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/r,g:(t.g*t.a+e.g*e.a*(1-t.a))/r,b:(t.b*t.a+e.b*e.a*(1-t.a))/r,a:r}}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/r,g:(e.g*e.a+t.g*t.a*(1-e.a))/r,b:(e.b*e.a+t.b*t.a*(1-e.a))/r,a:r}}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*u+o*(1-e.a)+u*(1-t.a))/r,b:(a*l+a*(1-e.a)+l*(1-t.a))/r,a:r}}function l(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a;return{r:(i+e.r*e.a)/r,g:(o+e.g*e.a)/r,b:(a+e.b*e.a)/r,a:r}}function c(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*e.a+u*t.a-o*u+o*(1-e.a)+u*(1-t.a))/r,b:(a*e.a+l*t.a-a*l+a*(1-e.a)+l*(1-t.a))/r,a:r}}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*u<=e.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/r,b:(2*l<=e.a?2*a*l+a*(1-e.a)+l*(1-t.a):a*(1+e.a)+l*(1+t.a)-2*l*a-e.a*t.a)/r,a:r}}function f(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.min(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/r,b:(Math.min(a*e.a,l*t.a)+a*(1-e.a)+l*(1-t.a))/r,a:r}}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.max(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/r,b:(Math.max(a*e.a,l*t.a)+a*(1-e.a)+l*(1-t.a))/r,a:r}}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*o<=t.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/r,b:(2*a<=t.a?2*a*l+a*(1-e.a)+l*(1-t.a):a*(1+e.a)+l*(1+t.a)-2*l*a-e.a*t.a)/r,a:r}}function m(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/r,g:(o+u-2*Math.min(o*e.a,u*t.a))/r,b:(a+l-2*Math.min(a*e.a,l*t.a))/r,a:r}}function v(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*e.a+u*t.a-2*o*u+o*(1-e.a)+u*(1-t.a))/r,b:(a*e.a+l*t.a-2*a*l+a*(1-e.a)+l*(1-t.a))/r,a:r}}function g(t,e,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0;if(\"function\"==typeof a&&(s=a,a={}),!(t instanceof this.constructor))return i.d.call(this,\"The source must be a Jimp image\",s);if(\"number\"!=typeof e||\"number\"!=typeof n)return i.d.call(this,\"x and y must be numbers\",s);var u=a,l=u.mode,c=u.opacitySource,h=u.opacityDest;l||(l=o.BLEND_SOURCE_OVER),(\"number\"!=typeof c||c<0||c>1)&&(c=1),(\"number\"!=typeof h||h<0||h>1)&&(h=1);var f=r[l];e=Math.round(e),n=Math.round(n);var d=this;return 1!==h&&d.opacity(h),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,r,i){var a=d.getPixelIndex(e+t,n+r,o.EDGE_CROP);if(-1!==a){var s=f({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:d.bitmap.data[a+0]/255,g:d.bitmap.data[a+1]/255,b:d.bitmap.data[a+2]/255,a:d.bitmap.data[a+3]/255},c);d.bitmap.data[a+0]=this.constructor.limit255(255*s.r),d.bitmap.data[a+1]=this.constructor.limit255(255*s.g),d.bitmap.data[a+2]=this.constructor.limit255(255*s.b),d.bitmap.data[a+3]=this.constructor.limit255(255*s.a)}})),Object(i.a)(s)&&s.call(this,null,this),this}},function(t,e,n){(function(t){var r=void 0!==t&&t||\"undefined\"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(150),e.setImmediate=\"undefined\"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate=\"undefined\"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(10))},function(t,e,n){\"use strict\";n.d(e,\"a\",(function(){return p}));var r=n(65),i=n.n(r);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(){l=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a=\"function\"==typeof Symbol?Symbol:{},s=a.iterator||\"@@iterator\",u=a.asyncIterator||\"@@asyncIterator\",c=a.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new I(r||[]);return i(a,\"_invoke\",{value:A(t,n,s)}),a}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,s,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&r.call(S,s)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,a,s,u){var l=d(t[i],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==o(h)&&r.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var a;i(this,\"_invoke\",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return a=a?a.then(i,i):i()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[s];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(o(e)+\" is not iterable\")}return _.prototype=w,i(C,\"constructor\",{value:w,configurable:!0}),i(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,u,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,s,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=r.call(a,\"catchLoc\"),l=r.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function c(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function h(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){c(o,r,i,a,s,\"next\",t)}function s(t){c(o,r,i,a,s,\"throw\",t)}a(void 0)}))}}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function d(t){var e=function(t,e){if(\"object\"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=o(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==o(e)?e:e+\"\"}var p=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t)}return e=t,n=null,o=[{key:\"DEFAULT_HTTPREQUEST_TIMEOUT\",get:function(){return 12e4}},{key:\"zibcz\",value:(v=h(l().mark((function e(n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Iioe(n,\"/solver/generateExtId\");case 2:return e.abrupt(\"return\",e.sent);case 3:case\"end\":return e.stop()}}),e)}))),function(t){return v.apply(this,arguments)})},{key:\"_ieot\",value:(m=h(l().mark((function e(n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Iioe(n,\"/solver/getExtData\");case 2:return e.abrupt(\"return\",e.sent);case 3:case\"end\":return e.stop()}}),e)}))),function(t){return m.apply(this,arguments)})},{key:\"ZigiZ\",value:(p=h(l().mark((function e(n,r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.rj0et(n,\"/solver/bindShipKey\",{shipKey:r});case 2:return e.abrupt(\"return\",e.sent);case 3:case\"end\":return e.stop()}}),e)}))),function(t,e){return p.apply(this,arguments)})},{key:\"Qijh\",value:(d=h(l().mark((function e(n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Iioe(n,\"/solver/getPriceList\");case 2:return e.abrupt(\"return\",e.sent);case 3:case\"end\":return e.stop()}}),e)}))),function(t){return d.apply(this,arguments)})},{key:\"xilnz\",value:(c=h(l().mark((function e(n,r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.rj0et(n,\"/solver/generateStripeUrl\",r);case 2:return e.abrupt(\"return\",e.sent);case 3:case\"end\":return e.stop()}}),e)}))),function(t,e){return c.apply(this,arguments)})},{key:\"Iioe\",value:(u=h(l().mark((function e(n,o){var a,u,c,h,f,d,p,m,v=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=v.length>2&&void 0!==v[2]?v[2]:{},u=v.length>3&&void 0!==v[3]?v[3]:\"json\",e.prev=2,c=n.productConfig.baseUrl,h=n.productConfig.productCode,f=n.userdata.extId,d=n.productConfig.platform,a=s(s({},a),{},{productCode:h,extId:f,ver:\"0.4.1\",platform:d}),p=new i.a(c),\"json\"===u&&p.addMiddleware(Object(r.json)()),p.addMiddleware(Object(r.timeout)(t.DEFAULT_HTTPREQUEST_TIMEOUT)),p.addMiddleware(Object(r.query)()),e.next=15,p.get(c+o,{query:a});case 15:if(!(m=e.sent).jsonData){e.next=20;break}return e.abrupt(\"return\",m.jsonData);case 20:return e.next=22,m.text();case 22:return e.abrupt(\"return\",e.sent);case 23:e.next=28;break;case 25:return e.prev=25,e.t0=e.catch(2),e.abrupt(\"return\",{code:\"1001\",message:\"system error\"});case 28:case\"end\":return e.stop()}}),e,null,[[2,25]])}))),function(t,e){return u.apply(this,arguments)})},{key:\"rj0et\",value:(a=h(l().mark((function e(n,o,a){var u,c,h,f,d,p,m,v=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=v.length>3&&void 0!==v[3]?v[3]:\"json\",e.prev=1,c=n.productConfig.baseUrl,h=n.productConfig.productCode,f=n.userdata.extId,d=n.productConfig.platform,a=s(s({},a),{},{productCode:h,extId:f,ver:\"0.4.1\",platform:d}),p=new i.a(c),\"json\"===u&&p.addMiddleware(Object(r.json)()),p.addMiddleware(Object(r.timeout)(t.DEFAULT_HTTPREQUEST_TIMEOUT)),p.addMiddleware(Object(r.form)()),e.next=14,p.post(c+o,{form:a});case 14:if(!(m=e.sent).jsonData){e.next=19;break}return e.abrupt(\"return\",m.jsonData);case 19:return e.next=21,m.text();case 21:return e.abrupt(\"return\",e.sent);case 22:e.next=28;break;case 24:return e.prev=24,e.t0=e.catch(1),e.abrupt(\"return\",{code:\"1001\",message:\"system error\"});case 28:case\"end\":return e.stop()}}),e,null,[[1,24]])}))),function(t,e,n){return a.apply(this,arguments)})}],n&&f(e.prototype,n),o&&f(e,o),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,n,o,a,u,c,d,p,m,v}()},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}e.__esModule=!0;var i=s(n(358)),o=s(n(370)),a=\"function\"==typeof o.default&&\"symbol\"===r(i.default)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?\"symbol\":r(t)};function s(t){return t&&t.__esModule?t:{default:t}}e.default=\"function\"==typeof o.default&&\"symbol\"===a(i.default)?function(t){return void 0===t?\"undefined\":a(t)}:function(t){return t&&\"function\"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?\"symbol\":void 0===t?\"undefined\":a(t)}},function(t,e,n){\"use strict\";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e);return l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(l(t,s,s+a>u?u:s+a));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+\"==\")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+\"=\"));return o.join(\"\")};for(var r=[],i=[],o=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,a=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",s=0;s<64;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=t.indexOf(\"=\");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join(\"\")}i[\"-\".charCodeAt(0)]=62,i[\"_\".charCodeAt(0)]=63},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==n.call(t)}},function(t,e,n){\"use strict\";function r(t,e){if(!(t&&e&&t.length&&e.length))throw new Error(\"Bad alphabet\");this.srcAlphabet=t,this.dstAlphabet=e}r.prototype.convert=function(t){var e,n,r,i={},o=this.srcAlphabet.length,a=this.dstAlphabet.length,s=t.length,u=\"string\"==typeof t?\"\":[];if(!this.isValid(t))throw new Error('Number \"'+t+'\" contains of non-alphabetic digits ('+this.srcAlphabet+\")\");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e<s;e++)i[e]=this.srcAlphabet.indexOf(t[e]);do{for(n=0,r=0,e=0;e<s;e++)(n=n*o+i[e])>=a?(i[r++]=parseInt(n/a,10),n%=a):r>0&&(i[r++]=0);s=r,u=this.dstAlphabet.slice(n,n+1).concat(u)}while(0!==r);return u},r.prototype.isValid=function(t){for(var e=0;e<t.length;++e)if(-1===this.srcAlphabet.indexOf(t[e]))return!1;return!0},t.exports=r},function(t,e,n){n(124),t.exports=self.fetch.bind(self)},function(t,e,n){\"use strict\";n.r(e),function(t){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}n.d(e,\"Headers\",(function(){return h})),n.d(e,\"Request\",(function(){return y})),n.d(e,\"Response\",(function(){return _})),n.d(e,\"DOMException\",(function(){return x})),n.d(e,\"fetch\",(function(){return k}));var i=\"undefined\"!=typeof globalThis&&globalThis||\"undefined\"!=typeof self&&self||void 0!==t&&t||{},o={searchParams:\"URLSearchParams\"in i,iterable:\"Symbol\"in i&&\"iterator\"in Symbol,blob:\"FileReader\"in i&&\"Blob\"in i&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:\"FormData\"in i,arrayBuffer:\"ArrayBuffer\"in i};if(o.arrayBuffer)var a=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if(\"string\"!=typeof t&&(t=String(t)),/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(t)||\"\"===t)throw new TypeError('Invalid character in header field name: \"'+t+'\"');return t.toLowerCase()}function l(t){return\"string\"!=typeof t&&(t=String(t)),t}function c(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError(\"Headers constructor: expected name/value pair to be length 2, found\"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function f(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError(\"Already read\")):void(t.bodyUsed=!0)}function d(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function p(t){var e=new FileReader,n=d(e);return e.readAsArrayBuffer(t),n}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?\"string\"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=\"\"),this.headers.get(\"content-type\")||(\"string\"==typeof t?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},o.blob&&(this.blob=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=f(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(o.blob)return this.blob().then(p);throw new Error(\"could not read as ArrayBuffer\")},this.text=function(){var t,e,n,r,i,o=f(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=d(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=r?r[1]:\"utf-8\",e.readAsText(t,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=u(t),e=l(e);var n=this.map[t];this.map[t]=n?n+\", \"+e:e},h.prototype.delete=function(t){delete this.map[u(t)]},h.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},h.prototype.set=function(t,e){this.map[u(t)]=l(e)},h.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),c(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),c(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),c(t)},o.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var g=[\"CONNECT\",\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"PATCH\",\"POST\",\"PUT\",\"TRACE\"];function y(t,e){if(!(this instanceof y))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError(\"Already read\");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||\"same-origin\",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(n=e.method||this.method||\"GET\",r=n.toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if(\"AbortController\"in i)return(new AbortController).signal}(),this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&o)throw new TypeError(\"Body not allowed for GET or HEAD requests\");if(this._initBody(o),!(\"GET\"!==this.method&&\"HEAD\"!==this.method||\"no-store\"!==e.cache&&\"no-cache\"!==e.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,\"$1_=\"+(new Date).getTime());else{this.url+=(/\\?/.test(this.url)?\"&\":\"?\")+\"_=\"+(new Date).getTime()}}}function b(t){var e=new FormData;return t.trim().split(\"&\").forEach((function(t){if(t){var n=t.split(\"=\"),r=n.shift().replace(/\\+/g,\" \"),i=n.join(\"=\").replace(/\\+/g,\" \");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function _(t,e){if(!(this instanceof _))throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type=\"default\",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError(\"Failed to construct 'Response': The status provided (0) is outside the range [200, 599].\");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?\"\":\"\"+e.statusText,this.headers=new h(e.headers),this.url=e.url||\"\",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},v.call(y.prototype),v.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:200,statusText:\"\"});return t.ok=!1,t.status=0,t.type=\"error\",t};var w=[301,302,303,307,308];_.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError(\"Invalid status code\");return new _(null,{status:e,headers:{location:t}})};var x=i.DOMException;try{new x}catch(t){(x=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}function k(t,e){return new Promise((function(n,a){var s=new y(t,e);if(s.signal&&s.signal.aborted)return a(new x(\"Aborted\",\"AbortError\"));var c=new XMLHttpRequest;function f(){c.abort()}if(c.onload=function(){var t,e,r={statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||\"\",e=new h,t.replace(/\\r?\\n[\\t ]+/g,\" \").split(\"\\r\").map((function(t){return 0===t.indexOf(\"\\n\")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(\":\"),r=n.shift().trim();if(r){var i=n.join(\":\").trim();try{e.append(r,i)}catch(t){t.message}}})),e)};0===s.url.indexOf(\"file://\")&&(c.status<200||c.status>599)?r.status=200:r.status=c.status,r.url=\"responseURL\"in c?c.responseURL:r.headers.get(\"X-Request-URL\");var i=\"response\"in c?c.response:c.responseText;setTimeout((function(){n(new _(i,r))}),0)},c.onerror=function(){setTimeout((function(){a(new TypeError(\"Network request failed\"))}),0)},c.ontimeout=function(){setTimeout((function(){a(new TypeError(\"Network request timed out\"))}),0)},c.onabort=function(){setTimeout((function(){a(new x(\"Aborted\",\"AbortError\"))}),0)},c.open(s.method,function(t){try{return\"\"===t&&i.location.href?i.location.href:t}catch(e){return t}}(s.url),!0),\"include\"===s.credentials?c.withCredentials=!0:\"omit\"===s.credentials&&(c.withCredentials=!1),\"responseType\"in c&&(o.blob?c.responseType=\"blob\":o.arrayBuffer&&(c.responseType=\"arraybuffer\")),e&&\"object\"===r(e.headers)&&!(e.headers instanceof h||i.Headers&&e.headers instanceof i.Headers)){var d=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){d.push(u(t)),c.setRequestHeader(t,l(e.headers[t]))})),s.headers.forEach((function(t,e){-1===d.indexOf(e)&&c.setRequestHeader(e,t)}))}else s.headers.forEach((function(t,e){c.setRequestHeader(e,t)}));s.signal&&(s.signal.addEventListener(\"abort\",f),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener(\"abort\",f)}),c.send(void 0===s._bodyInit?null:s._bodyInit)}))}k.polyfill=!0,i.fetch||(i.fetch=k,i.Headers=h,i.Request=y,i.Response=_)}.call(this,n(10))},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(){i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",l=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(r||[]);return a(o,\"_invoke\",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&o.call(S,u)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,a,s,u){var l=d(t[i],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==r(h)&&o.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var i;a(this,\"_invoke\",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[u];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+\" is not iterable\")}return _.prototype=w,a(C,\"constructor\",{value:w,configurable:!0}),a(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,l,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,u,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return r(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),l=o.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,\"finallyLoc\")&&this.prev<r.finallyLoc){var i=r;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromStream=e.fromBuffer=e.EndOfStreamError=e.fromFile=void 0;var a=n(68),s=n(47),u=n(130);Object.defineProperty(e,\"fromFile\",{enumerable:!0,get:function(){return u.fromFile}});var l=n(47);function c(){var t;return t=i().mark((function t(e,n){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=n||{},!e.path){t.next=7;break}return t.next=4,a.stat(e.path);case 4:r=t.sent,n.path=e.path,n.size=r.size;case 7:return t.abrupt(\"return\",s.fromStream(e,n));case 8:case\"end\":return t.stop()}}),t)})),c=function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,\"next\",t)}function u(t){o(a,r,i,s,u,\"throw\",t)}s(void 0)}))},c.apply(this,arguments)}Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return l.EndOfStreamError}}),Object.defineProperty(e,\"fromBuffer\",{enumerable:!0,get:function(){return l.fromBuffer}}),e.fromStream=function(t,e){return c.apply(this,arguments)}},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(){i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",l=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(r||[]);return a(o,\"_invoke\",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&o.call(S,u)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,a,s,u){var l=d(t[i],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==r(h)&&o.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var i;a(this,\"_invoke\",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[u];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+\" is not iterable\")}return _.prototype=w,a(C,\"constructor\",{value:w,configurable:!0}),a(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,l,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,u,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return r(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),l=o.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,\"finallyLoc\")&&this.prev<r.finallyLoc){var i=r;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,\"next\",t)}function u(t){o(a,r,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}function l(t,e,n){return e=h(e),function(t,e){if(e&&(\"object\"===r(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,c()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.ReadStreamTokenizer=void 0;var d=n(48),p=n(26),m=function(t){function e(t,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(r=l(this,e,[n])).streamReader=new p.StreamReader(t),r}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&f(t,e)}(e,t),n=e,r=[{key:\"getFileInfo\",value:(d=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",this.fileInfo);case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:\"readBuffer\",value:(h=a(i().mark((function t(e,n){var r,o,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.normalizeOptions(e,n),!((o=r.position-this.position)>0)){t.next=8;break}return t.next=5,this.ignore(o);case 5:return t.abrupt(\"return\",this.readBuffer(e,n));case 8:if(!(o<0)){t.next=10;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 10:if(0!==r.length){t.next=12;break}return t.abrupt(\"return\",0);case 12:return t.next=14,this.streamReader.read(e,r.offset,r.length);case 14:if(a=t.sent,this.position+=a,n&&n.mayBeLess||!(a<r.length)){t.next=18;break}throw new p.EndOfStreamError;case 18:return t.abrupt(\"return\",a);case 19:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:\"peekBuffer\",value:(c=a(i().mark((function t(e,n){var r,o,a,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.normalizeOptions(e,n),o=0,!r.position){t.next=15;break}if(!((a=r.position-this.position)>0)){t.next=13;break}return s=new Uint8Array(r.length+a),t.next=8,this.peekBuffer(s,{mayBeLess:r.mayBeLess});case 8:return o=t.sent,e.set(s.subarray(a),r.offset),t.abrupt(\"return\",o-a);case 13:if(!(a<0)){t.next=15;break}throw new Error(\"Cannot peek from a negative offset in a stream\");case 15:if(!(r.length>0)){t.next=29;break}return t.prev=16,t.next=19,this.streamReader.peek(e,r.offset,r.length);case 19:o=t.sent,t.next=27;break;case 22:if(t.prev=22,t.t0=t.catch(16),!(n&&n.mayBeLess&&t.t0 instanceof p.EndOfStreamError)){t.next=26;break}return t.abrupt(\"return\",0);case 26:throw t.t0;case 27:if(r.mayBeLess||!(o<r.length)){t.next=29;break}throw new p.EndOfStreamError;case 29:return t.abrupt(\"return\",o);case 30:case\"end\":return t.stop()}}),t,this,[[16,22]])}))),function(t,e){return c.apply(this,arguments)})},{key:\"ignore\",value:(u=a(i().mark((function t(e){var n,r,o,a,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=Math.min(256e3,e),r=new Uint8Array(n),o=0;case 3:if(!(o<e)){t.next=13;break}return a=e-o,t.next=7,this.readBuffer(r,{length:Math.min(n,a)});case 7:if(!((s=t.sent)<0)){t.next=10;break}return t.abrupt(\"return\",s);case 10:o+=s,t.next=3;break;case 13:return t.abrupt(\"return\",o);case 14:case\"end\":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})}],r&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,r,o,u,c,h,d}(d.AbstractTokenizer);e.ReadStreamTokenizer=m},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(){i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",l=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(r||[]);return a(o,\"_invoke\",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&o.call(S,u)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,a,s,u){var l=d(t[i],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==r(h)&&o.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var i;a(this,\"_invoke\",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[u];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+\" is not iterable\")}return _.prototype=w,a(C,\"constructor\",{value:w,configurable:!0}),a(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,l,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,u,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return r(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),l=o.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,\"finallyLoc\")&&this.prev<r.finallyLoc){var i=r;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,\"next\",t)}function u(t){o(a,r,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var l=n(49),c=n(128),h=n(49);Object.defineProperty(e,\"EndOfStreamError\",{enumerable:!0,get:function(){return h.EndOfStreamError}});var f=function(){return t=function t(e){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error(\"Expected an instance of stream.Readable\");this.s.once(\"end\",(function(){return n.reject(new l.EndOfStreamError)})),this.s.once(\"error\",(function(t){return n.reject(t)})),this.s.once(\"close\",(function(){return n.reject(new Error(\"Stream closed\"))}))},e=[{key:\"peek\",value:(u=a(i().mark((function t(e,n,r){var o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.read(e,n,r);case 2:return o=t.sent,this.peekQueue.push(e.subarray(n,n+o)),t.abrupt(\"return\",o);case 5:case\"end\":return t.stop()}}),t,this)}))),function(t,e,n){return u.apply(this,arguments)})},{key:\"read\",value:(o=a(i().mark((function t(e,n,r){var o,a,s,u,c,h;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==r){t.next=2;break}return t.abrupt(\"return\",0);case 2:if(0!==this.peekQueue.length||!this.endOfStream){t.next=4;break}throw new l.EndOfStreamError;case 4:o=r,a=0;case 6:if(!(this.peekQueue.length>0&&o>0)){t.next=17;break}if(s=this.peekQueue.pop()){t.next=10;break}throw new Error(\"peekData should be defined\");case 10:u=Math.min(s.length,o),e.set(s.subarray(0,u),n+a),a+=u,o-=u,u<s.length&&this.peekQueue.push(s.subarray(u)),t.next=6;break;case 17:if(!(o>0)||this.endOfStream){t.next=28;break}return c=Math.min(o,1048576),t.next=21,this.readFromStream(e,n+a,c);case 21:if(h=t.sent,a+=h,!(h<c)){t.next=25;break}return t.abrupt(\"break\",28);case 25:o-=h,t.next=17;break;case 28:return t.abrupt(\"return\",a);case 29:case\"end\":return t.stop()}}),t,this)}))),function(t,e,n){return o.apply(this,arguments)})},{key:\"readFromStream\",value:(r=a(i().mark((function t(e,n,r){var o,a,s=this;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=this.s.read(r))){t.next=6;break}return e.set(o,n),t.abrupt(\"return\",o.length);case 6:return a={buffer:e,offset:n,length:r,deferred:new c.Deferred},this.deferred=a.deferred,this.s.once(\"readable\",(function(){s.readDeferred(a)})),t.abrupt(\"return\",a.deferred.promise);case 10:case\"end\":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:\"readDeferred\",value:function(t){var e=this,n=this.s.read(t.length);n?(t.buffer.set(n,t.offset),t.deferred.resolve(n.length),this.deferred=null):this.s.once(\"readable\",(function(){e.readDeferred(t)}))}},{key:\"reject\",value:function(t){this.endOfStream=!0,this.deferred&&(this.deferred.reject(t),this.deferred=null)}}],e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,n,r,o,u}();e.StreamReader=f},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function a(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Deferred=void 0;var s=o((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.resolve=function(){return null},this.reject=function(){return null},this.promise=new Promise((function(t,n){e.reject=n,e.resolve=t}))}));e.Deferred=s},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(){i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",l=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(r||[]);return a(o,\"_invoke\",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&o.call(S,u)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,a,s,u){var l=d(t[i],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==r(h)&&o.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var i;a(this,\"_invoke\",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[u];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+\" is not iterable\")}return _.prototype=w,a(C,\"constructor\",{value:w,configurable:!0}),a(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,l,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,u,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return r(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),l=o.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,\"finallyLoc\")&&this.prev<r.finallyLoc){var i=r;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,\"next\",t)}function u(t){o(a,r,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}function l(t,e,n){return e=h(e),function(t,e){if(e&&(\"object\"===r(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,c()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.BufferTokenizer=void 0;var d=n(26),p=function(t){function e(t,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(r=l(this,e,[n])).uint8Array=t,r.fileInfo.size=r.fileInfo.size?r.fileInfo.size:t.length,r}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&f(t,e)}(e,t),n=e,r=[{key:\"readBuffer\",value:(h=a(i().mark((function t(e,n){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n||!n.position){t.next=4;break}if(!(n.position<this.position)){t.next=3;break}throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");case 3:this.position=n.position;case 4:return t.next=6,this.peekBuffer(e,n);case 6:return r=t.sent,this.position+=r,t.abrupt(\"return\",r);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:\"peekBuffer\",value:(c=a(i().mark((function t(e,n){var r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.normalizeOptions(e,n),o=Math.min(this.uint8Array.length-r.position,r.length),r.mayBeLess||!(o<r.length)){t.next=6;break}throw new d.EndOfStreamError;case 6:return e.set(this.uint8Array.subarray(r.position,r.position+o),r.offset),t.abrupt(\"return\",o);case 8:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:\"close\",value:(u=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})}],r&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,r,o,u,c,h}(n(48).AbstractTokenizer);e.BufferTokenizer=p},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(){i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",l=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(r||[]);return a(o,\"_invoke\",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&o.call(S,u)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,a,s,u){var l=d(t[i],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==r(h)&&o.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var i;a(this,\"_invoke\",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[u];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+\" is not iterable\")}return _.prototype=w,a(C,\"constructor\",{value:w,configurable:!0}),a(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,l,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,u,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return r(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),l=o.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,\"finallyLoc\")&&this.prev<r.finallyLoc){var i=r;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,\"next\",t)}function u(t){o(a,r,i,s,u,\"throw\",t)}s(void 0)}))}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}function l(t,e,n){return e=h(e),function(t,e){if(e&&(\"object\"===r(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,c()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.fromFile=e.FileTokenizer=void 0;var d=n(48),p=n(26),m=n(68),v=function(t){function e(t,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(r=l(this,e,[n])).fd=t,r}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&f(t,e)}(e,t),n=e,r=[{key:\"readBuffer\",value:(h=a(i().mark((function t(e,n){var r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.normalizeOptions(e,n),this.position=r.position,t.next=4,m.read(this.fd,e,r.offset,r.length,r.position);case 4:if(o=t.sent,this.position+=o.bytesRead,!(o.bytesRead<r.length)||n&&n.mayBeLess){t.next=8;break}throw new p.EndOfStreamError;case 8:return t.abrupt(\"return\",o.bytesRead);case 9:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:\"peekBuffer\",value:(c=a(i().mark((function t(e,n){var r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.normalizeOptions(e,n),t.next=3,m.read(this.fd,e,r.offset,r.length,r.position);case 3:if(o=t.sent,r.mayBeLess||!(o.bytesRead<r.length)){t.next=6;break}throw new p.EndOfStreamError;case 6:return t.abrupt(\"return\",o.bytesRead);case 7:case\"end\":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:\"close\",value:(u=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",m.close(this.fd));case 1:case\"end\":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})}],r&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,r,o,u,c,h}(d.AbstractTokenizer);function g(){return(g=a(i().mark((function t(e){var n,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m.stat(e);case 2:if((n=t.sent).isFile){t.next=5;break}throw new Error(\"File not a file: \".concat(e));case 5:return t.next=7,m.open(e,\"r\");case 7:return r=t.sent,t.abrupt(\"return\",new v(r,{path:e,size:n.size}));case 9:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}e.FileTokenizer=v,e.fromFile=function(t){return g.apply(this,arguments)}},function(module,exports,__webpack_require__){\"use strict\";(function(Buffer){function _typeof(t){return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_typeof(t)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new M(r||[]);return i(a,\"_invoke\",{value:E(t,n,s)}),a}function h(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var f=\"suspendedStart\",d=\"suspendedYield\",p=\"executing\",m=\"completed\",v={};function g(){}function y(){}function b(){}var _={};l(_,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(T([])));x&&x!==n&&r.call(x,a)&&(_=x);var k=b.prototype=g.prototype=Object.create(_);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var u=h(t[i],t,o);if(\"throw\"!==u.type){var l=u.arg,c=l.value;return c&&\"object\"==_typeof(c)&&r.call(c,\"__await\")?e.resolve(c.__await).then((function(t){n(\"next\",t,a,s)}),(function(t){n(\"throw\",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return n(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=f;return function(o,a){if(i===p)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=D(s,r);if(u){if(u===v)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=p;var l=h(e,n,r);if(\"normal\"===l.type){if(i=r.done?m:d,l.arg===v)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=m,r.method=\"throw\",r.arg=l.arg)}}}function D(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,D(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),v;var o=h(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,v):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(A,this),this.reset(!0)}function T(e){if(e||\"\"===e){var n=e[a];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(_typeof(e)+\" is not iterable\")}return y.prototype=b,i(k,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:y,configurable:!0}),y.displayName=l(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===y||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),l(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),l(k,u,\"Generator\"),l(k,a,(function(){return this})),l(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)\"t\"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=r.call(a,\"catchLoc\"),l=r.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;O(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),v}},e}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function _iterableToArrayLimit(t,e){var n=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var n=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!n){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&\"number\"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if(\"string\"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===n&&t.constructor&&(n=t.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(t):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _toPropertyKey(t){var e=_toPrimitive(t,\"string\");return\"symbol\"==_typeof(e)?e:e+\"\"}function _toPrimitive(t,e){if(\"object\"!=_typeof(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=_typeof(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}function asyncGeneratorStep(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){asyncGeneratorStep(o,r,i,a,s,\"next\",t)}function s(t){asyncGeneratorStep(o,r,i,a,s,\"throw\",t)}a(void 0)}))}}var Token=__webpack_require__(132),strtok3=__webpack_require__(47),_require=__webpack_require__(133),stringToBytes=_require.stringToBytes,tarHeaderChecksumMatches=_require.tarHeaderChecksumMatches,uint32SyncSafeToken=_require.uint32SyncSafeToken,supported=__webpack_require__(134),minimumBytes=4100;function fromStream(t){return _fromStream.apply(this,arguments)}function _fromStream(){return _fromStream=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,strtok3.fromStream(e);case 2:return n=t.sent,t.prev=3,t.next=6,fromTokenizer(n);case 6:return t.abrupt(\"return\",t.sent);case 7:return t.prev=7,t.next=10,n.close();case 10:return t.finish(7);case 11:case\"end\":return t.stop()}}),t,null,[[3,,7,11]])}))),_fromStream.apply(this,arguments)}function fromBuffer(t){return _fromBuffer.apply(this,arguments)}function _fromBuffer(){return(_fromBuffer=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var n,r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)){t.next=2;break}throw new TypeError(\"Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `\".concat(_typeof(e),\"`\"));case 2:if((n=e instanceof Buffer?e:Buffer.from(e))&&n.length>1){t.next=5;break}return t.abrupt(\"return\");case 5:return r=strtok3.fromBuffer(n),t.abrupt(\"return\",fromTokenizer(r));case 7:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function _check(t,e,n){n=_objectSpread({offset:0},n);var r,i=_createForOfIteratorHelper(e.entries());try{for(i.s();!(r=i.n()).done;){var o=_slicedToArray(r.value,2),a=o[0],s=o[1];if(n.mask){if(s!==(n.mask[a]&t[a+n.offset]))return!1}else if(s!==t[a+n.offset])return!1}}catch(t){i.e(t)}finally{i.f()}return!0}function fromTokenizer(t){return _fromTokenizer2.apply(this,arguments)}function _fromTokenizer2(){return(_fromTokenizer2=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt(\"return\",_fromTokenizer(e));case 4:if(t.prev=4,t.t0=t.catch(0),t.t0 instanceof strtok3.EndOfStreamError){t.next=8;break}throw t.t0;case 8:case\"end\":return t.stop()}}),t,null,[[0,4]])})))).apply(this,arguments)}function _fromTokenizer(t){return _fromTokenizer3.apply(this,arguments)}function _fromTokenizer3(){return _fromTokenizer3=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var n,r,i,o,a,s,u,l,c,h,f,d,p,m,v,g,y,b,_,w,x,k,S,C,E;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Buffer.alloc(minimumBytes),12,r=function(t,e){return _check(n,t,e)},i=function(t,e){return r(stringToBytes(t),e)},e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),t.next=7,e.peekBuffer(n,{length:12,mayBeLess:!0});case 7:if(!r([66,77])){t.next=9;break}return t.abrupt(\"return\",{ext:\"bmp\",mime:\"image/bmp\"});case 9:if(!r([11,119])){t.next=11;break}return t.abrupt(\"return\",{ext:\"ac3\",mime:\"audio/vnd.dolby.dd-raw\"});case 11:if(!r([120,1])){t.next=13;break}return t.abrupt(\"return\",{ext:\"dmg\",mime:\"application/x-apple-diskimage\"});case 13:if(!r([77,90])){t.next=15;break}return t.abrupt(\"return\",{ext:\"exe\",mime:\"application/x-msdownload\"});case 15:if(!r([37,33])){t.next=21;break}return t.next=18,e.peekBuffer(n,{length:24,mayBeLess:!0});case 18:if(!i(\"PS-Adobe-\",{offset:2})||!i(\" EPSF-\",{offset:14})){t.next=20;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 20:return t.abrupt(\"return\",{ext:\"ps\",mime:\"application/postscript\"});case 21:if(!r([31,160])&&!r([31,157])){t.next=23;break}return t.abrupt(\"return\",{ext:\"Z\",mime:\"application/x-compress\"});case 23:if(!r([255,216,255])){t.next=25;break}return t.abrupt(\"return\",{ext:\"jpg\",mime:\"image/jpeg\"});case 25:if(!r([73,73,188])){t.next=27;break}return t.abrupt(\"return\",{ext:\"jxr\",mime:\"image/vnd.ms-photo\"});case 27:if(!r([31,139,8])){t.next=29;break}return t.abrupt(\"return\",{ext:\"gz\",mime:\"application/gzip\"});case 29:if(!r([66,90,104])){t.next=31;break}return t.abrupt(\"return\",{ext:\"bz2\",mime:\"application/x-bzip2\"});case 31:if(!i(\"ID3\")){t.next=42;break}return t.next=34,e.ignore(6);case 34:return t.next=36,e.readToken(uint32SyncSafeToken);case 36:if(o=t.sent,!(e.position+o>e.fileInfo.size)){t.next=39;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 39:return t.next=41,e.ignore(o);case 41:return t.abrupt(\"return\",fromTokenizer(e));case 42:if(!i(\"MP+\")){t.next=44;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 44:if(67!==n[0]&&70!==n[0]||!r([87,83],{offset:1})){t.next=46;break}return t.abrupt(\"return\",{ext:\"swf\",mime:\"application/x-shockwave-flash\"});case 46:if(!r([71,73,70])){t.next=48;break}return t.abrupt(\"return\",{ext:\"gif\",mime:\"image/gif\"});case 48:if(!i(\"FLIF\")){t.next=50;break}return t.abrupt(\"return\",{ext:\"flif\",mime:\"image/flif\"});case 50:if(!i(\"8BPS\")){t.next=52;break}return t.abrupt(\"return\",{ext:\"psd\",mime:\"image/vnd.adobe.photoshop\"});case 52:if(!i(\"WEBP\",{offset:8})){t.next=54;break}return t.abrupt(\"return\",{ext:\"webp\",mime:\"image/webp\"});case 54:if(!i(\"MPCK\")){t.next=56;break}return t.abrupt(\"return\",{ext:\"mpc\",mime:\"audio/x-musepack\"});case 56:if(!i(\"FORM\")){t.next=58;break}return t.abrupt(\"return\",{ext:\"aif\",mime:\"audio/aiff\"});case 58:if(!i(\"icns\",{offset:0})){t.next=60;break}return t.abrupt(\"return\",{ext:\"icns\",mime:\"image/icns\"});case 60:if(!r([80,75,3,4])){t.next=121;break}t.prev=61;case 62:if(!(e.position+30<e.fileInfo.size)){t.next=114;break}return t.next=65,e.readBuffer(n,{length:30});case 65:return a={compressedSize:n.readUInt32LE(18),uncompressedSize:n.readUInt32LE(22),filenameLength:n.readUInt16LE(26),extraFieldLength:n.readUInt16LE(28)},t.next=68,e.readToken(new Token.StringType(a.filenameLength,\"utf-8\"));case 68:return a.filename=t.sent,t.next=71,e.ignore(a.extraFieldLength);case 71:if(\"META-INF/mozilla.rsa\"!==a.filename){t.next=73;break}return t.abrupt(\"return\",{ext:\"xpi\",mime:\"application/x-xpinstall\"});case 73:if(!a.filename.endsWith(\".rels\")&&!a.filename.endsWith(\".xml\")){t.next=83;break}s=a.filename.split(\"/\")[0],t.t0=s,t.next=\"_rels\"===t.t0?78:\"word\"===t.t0?79:\"ppt\"===t.t0?80:\"xl\"===t.t0?81:82;break;case 78:return t.abrupt(\"break\",83);case 79:return t.abrupt(\"return\",{ext:\"docx\",mime:\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"});case 80:return t.abrupt(\"return\",{ext:\"pptx\",mime:\"application/vnd.openxmlformats-officedocument.presentationml.presentation\"});case 81:return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 82:return t.abrupt(\"break\",83);case 83:if(!a.filename.startsWith(\"xl/\")){t.next=85;break}return t.abrupt(\"return\",{ext:\"xlsx\",mime:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"});case 85:if(!a.filename.startsWith(\"3D/\")||!a.filename.endsWith(\".model\")){t.next=87;break}return t.abrupt(\"return\",{ext:\"3mf\",mime:\"model/3mf\"});case 87:if(\"mimetype\"!==a.filename||a.compressedSize!==a.uncompressedSize){t.next=98;break}return t.next=90,e.readToken(new Token.StringType(a.compressedSize,\"utf-8\"));case 90:u=t.sent,t.t1=u,t.next=\"application/epub+zip\"===t.t1?94:\"application/vnd.oasis.opendocument.text\"===t.t1?95:\"application/vnd.oasis.opendocument.spreadsheet\"===t.t1?96:\"application/vnd.oasis.opendocument.presentation\"===t.t1?97:98;break;case 94:return t.abrupt(\"return\",{ext:\"epub\",mime:\"application/epub+zip\"});case 95:return t.abrupt(\"return\",{ext:\"odt\",mime:\"application/vnd.oasis.opendocument.text\"});case 96:return t.abrupt(\"return\",{ext:\"ods\",mime:\"application/vnd.oasis.opendocument.spreadsheet\"});case 97:return t.abrupt(\"return\",{ext:\"odp\",mime:\"application/vnd.oasis.opendocument.presentation\"});case 98:if(0!==a.compressedSize){t.next=110;break}l=-1;case 100:if(!(l<0&&e.position<e.fileInfo.size)){t.next=108;break}return t.next=103,e.peekBuffer(n,{mayBeLess:!0});case 103:return l=n.indexOf(\"504B0304\",0,\"hex\"),t.next=106,e.ignore(l>=0?l:n.length);case 106:t.next=100;break;case 108:t.next=112;break;case 110:return t.next=112,e.ignore(a.compressedSize);case 112:t.next=62;break;case 114:t.next=120;break;case 116:if(t.prev=116,t.t2=t.catch(61),t.t2 instanceof strtok3.EndOfStreamError){t.next=120;break}throw t.t2;case 120:return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 121:if(!i(\"OggS\")){t.next=140;break}return t.next=124,e.ignore(28);case 124:return c=Buffer.alloc(8),t.next=127,e.readBuffer(c);case 127:if(!_check(c,[79,112,117,115,72,101,97,100])){t.next=129;break}return t.abrupt(\"return\",{ext:\"opus\",mime:\"audio/opus\"});case 129:if(!_check(c,[128,116,104,101,111,114,97])){t.next=131;break}return t.abrupt(\"return\",{ext:\"ogv\",mime:\"video/ogg\"});case 131:if(!_check(c,[1,118,105,100,101,111,0])){t.next=133;break}return t.abrupt(\"return\",{ext:\"ogm\",mime:\"video/ogg\"});case 133:if(!_check(c,[127,70,76,65,67])){t.next=135;break}return t.abrupt(\"return\",{ext:\"oga\",mime:\"audio/ogg\"});case 135:if(!_check(c,[83,112,101,101,120,32,32])){t.next=137;break}return t.abrupt(\"return\",{ext:\"spx\",mime:\"audio/ogg\"});case 137:if(!_check(c,[1,118,111,114,98,105,115])){t.next=139;break}return t.abrupt(\"return\",{ext:\"ogg\",mime:\"audio/ogg\"});case 139:return t.abrupt(\"return\",{ext:\"ogx\",mime:\"application/ogg\"});case 140:if(!r([80,75])||3!==n[2]&&5!==n[2]&&7!==n[2]||4!==n[3]&&6!==n[3]&&8!==n[3]){t.next=142;break}return t.abrupt(\"return\",{ext:\"zip\",mime:\"application/zip\"});case 142:if(!(i(\"ftyp\",{offset:4})&&96&n[8])){t.next=167;break}h=n.toString(\"binary\",8,12).replace(\"\\0\",\" \").trim(),t.t3=h,t.next=\"avif\"===t.t3?147:\"mif1\"===t.t3?148:\"msf1\"===t.t3?149:\"heic\"===t.t3||\"heix\"===t.t3?150:\"hevc\"===t.t3||\"hevx\"===t.t3?151:\"qt\"===t.t3?152:\"M4V\"===t.t3||\"M4VH\"===t.t3||\"M4VP\"===t.t3?153:\"M4P\"===t.t3?154:\"M4B\"===t.t3?155:\"M4A\"===t.t3?156:\"F4V\"===t.t3?157:\"F4P\"===t.t3?158:\"F4A\"===t.t3?159:\"F4B\"===t.t3?160:\"crx\"===t.t3?161:162;break;case 147:return t.abrupt(\"return\",{ext:\"avif\",mime:\"image/avif\"});case 148:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif\"});case 149:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heif-sequence\"});case 150:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic\"});case 151:return t.abrupt(\"return\",{ext:\"heic\",mime:\"image/heic-sequence\"});case 152:return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 153:return t.abrupt(\"return\",{ext:\"m4v\",mime:\"video/x-m4v\"});case 154:return t.abrupt(\"return\",{ext:\"m4p\",mime:\"video/mp4\"});case 155:return t.abrupt(\"return\",{ext:\"m4b\",mime:\"audio/mp4\"});case 156:return t.abrupt(\"return\",{ext:\"m4a\",mime:\"audio/x-m4a\"});case 157:return t.abrupt(\"return\",{ext:\"f4v\",mime:\"video/mp4\"});case 158:return t.abrupt(\"return\",{ext:\"f4p\",mime:\"video/mp4\"});case 159:return t.abrupt(\"return\",{ext:\"f4a\",mime:\"audio/mp4\"});case 160:return t.abrupt(\"return\",{ext:\"f4b\",mime:\"audio/mp4\"});case 161:return t.abrupt(\"return\",{ext:\"cr3\",mime:\"image/x-canon-cr3\"});case 162:if(!h.startsWith(\"3g\")){t.next=166;break}if(!h.startsWith(\"3g2\")){t.next=165;break}return t.abrupt(\"return\",{ext:\"3g2\",mime:\"video/3gpp2\"});case 165:return t.abrupt(\"return\",{ext:\"3gp\",mime:\"video/3gpp\"});case 166:return t.abrupt(\"return\",{ext:\"mp4\",mime:\"video/mp4\"});case 167:if(!i(\"MThd\")){t.next=169;break}return t.abrupt(\"return\",{ext:\"mid\",mime:\"audio/midi\"});case 169:if(!i(\"wOFF\")||!r([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=171;break}return t.abrupt(\"return\",{ext:\"woff\",mime:\"font/woff\"});case 171:if(!i(\"wOF2\")||!r([0,1,0,0],{offset:4})&&!i(\"OTTO\",{offset:4})){t.next=173;break}return t.abrupt(\"return\",{ext:\"woff2\",mime:\"font/woff2\"});case 173:if(!r([212,195,178,161])&&!r([161,178,195,212])){t.next=175;break}return t.abrupt(\"return\",{ext:\"pcap\",mime:\"application/vnd.tcpdump.pcap\"});case 175:if(!i(\"DSD \")){t.next=177;break}return t.abrupt(\"return\",{ext:\"dsf\",mime:\"audio/x-dsf\"});case 177:if(!i(\"LZIP\")){t.next=179;break}return t.abrupt(\"return\",{ext:\"lz\",mime:\"application/x-lzip\"});case 179:if(!i(\"fLaC\")){t.next=181;break}return t.abrupt(\"return\",{ext:\"flac\",mime:\"audio/x-flac\"});case 181:if(!r([66,80,71,251])){t.next=183;break}return t.abrupt(\"return\",{ext:\"bpg\",mime:\"image/bpg\"});case 183:if(!i(\"wvpk\")){t.next=185;break}return t.abrupt(\"return\",{ext:\"wv\",mime:\"audio/wavpack\"});case 185:if(!i(\"%PDF\")){t.next=195;break}return t.next=188,e.ignore(1350);case 188:return 10485760,f=Buffer.alloc(Math.min(10485760,e.fileInfo.size)),t.next=192,e.readBuffer(f,{mayBeLess:!0});case 192:if(!f.includes(Buffer.from(\"AIPrivateData\"))){t.next=194;break}return t.abrupt(\"return\",{ext:\"ai\",mime:\"application/postscript\"});case 194:return t.abrupt(\"return\",{ext:\"pdf\",mime:\"application/pdf\"});case 195:if(!r([0,97,115,109])){t.next=197;break}return t.abrupt(\"return\",{ext:\"wasm\",mime:\"application/wasm\"});case 197:if(!r([73,73,42,0])){t.next=210;break}if(!i(\"CR\",{offset:8})){t.next=200;break}return t.abrupt(\"return\",{ext:\"cr2\",mime:\"image/x-canon-cr2\"});case 200:if(!r([28,0,254,0],{offset:8})&&!r([31,0,11,0],{offset:8})){t.next=202;break}return t.abrupt(\"return\",{ext:\"nef\",mime:\"image/x-nikon-nef\"});case 202:if(!r([8,0,0,0],{offset:4})||!r([45,0,254,0],{offset:8})&&!r([39,0,254,0],{offset:8})){t.next=204;break}return t.abrupt(\"return\",{ext:\"dng\",mime:\"image/x-adobe-dng\"});case 204:return n=Buffer.alloc(24),t.next=207,e.peekBuffer(n);case 207:if(!r([16,251,134,1],{offset:4})&&!r([8,0,0,0],{offset:4})||!r([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})){t.next=209;break}return t.abrupt(\"return\",{ext:\"arw\",mime:\"image/x-sony-arw\"});case 209:return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 210:if(!r([77,77,0,42])){t.next=212;break}return t.abrupt(\"return\",{ext:\"tif\",mime:\"image/tiff\"});case 212:if(!i(\"MAC \")){t.next=214;break}return t.abrupt(\"return\",{ext:\"ape\",mime:\"audio/ape\"});case 214:if(!r([26,69,223,163])){t.next=230;break}return d=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var n,r,i,o;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peekNumber(Token.UINT8);case 2:for(n=t.sent,r=128,i=0;!(n&r)&&0!==r;)++i,r>>=1;return o=Buffer.alloc(i+1),t.next=9,e.readBuffer(o);case 9:return t.abrupt(\"return\",o);case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),p=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,n,r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d();case 2:return e=t.sent,t.next=5,d();case 5:return(n=t.sent)[0]^=128>>n.length-1,r=Math.min(6,n.length),t.abrupt(\"return\",{id:e.readUIntBE(0,e.length),len:n.readUIntBE(n.length-r,r)});case 9:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(n,r){var i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r>0)){t.next=11;break}return t.next=3,p();case 3:if(17026!==(i=t.sent).id){t.next=6;break}return t.abrupt(\"return\",e.readToken(new Token.StringType(i.len,\"utf-8\")));case 6:return t.next=8,e.ignore(i.len);case 8:--r,t.next=0;break;case 11:case\"end\":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),t.next=220,p();case 220:return v=t.sent,t.next=223,m(1,v.len);case 223:g=t.sent,t.t4=g,t.next=\"webm\"===t.t4?227:\"matroska\"===t.t4?228:229;break;case 227:return t.abrupt(\"return\",{ext:\"webm\",mime:\"video/webm\"});case 228:return t.abrupt(\"return\",{ext:\"mkv\",mime:\"video/x-matroska\"});case 229:return t.abrupt(\"return\");case 230:if(!r([82,73,70,70])){t.next=237;break}if(!r([65,86,73],{offset:8})){t.next=233;break}return t.abrupt(\"return\",{ext:\"avi\",mime:\"video/vnd.avi\"});case 233:if(!r([87,65,86,69],{offset:8})){t.next=235;break}return t.abrupt(\"return\",{ext:\"wav\",mime:\"audio/vnd.wave\"});case 235:if(!r([81,76,67,77],{offset:8})){t.next=237;break}return t.abrupt(\"return\",{ext:\"qcp\",mime:\"audio/qcelp\"});case 237:if(!i(\"SQLi\")){t.next=239;break}return t.abrupt(\"return\",{ext:\"sqlite\",mime:\"application/x-sqlite3\"});case 239:if(!r([78,69,83,26])){t.next=241;break}return t.abrupt(\"return\",{ext:\"nes\",mime:\"application/x-nintendo-nes-rom\"});case 241:if(!i(\"Cr24\")){t.next=243;break}return t.abrupt(\"return\",{ext:\"crx\",mime:\"application/x-google-chrome-extension\"});case 243:if(!i(\"MSCF\")&&!i(\"ISc(\")){t.next=245;break}return t.abrupt(\"return\",{ext:\"cab\",mime:\"application/vnd.ms-cab-compressed\"});case 245:if(!r([237,171,238,219])){t.next=247;break}return t.abrupt(\"return\",{ext:\"rpm\",mime:\"application/x-rpm\"});case 247:if(!r([197,208,211,198])){t.next=249;break}return t.abrupt(\"return\",{ext:\"eps\",mime:\"application/eps\"});case 249:if(!r([40,181,47,253])){t.next=251;break}return t.abrupt(\"return\",{ext:\"zst\",mime:\"application/zstd\"});case 251:if(!r([79,84,84,79,0])){t.next=253;break}return t.abrupt(\"return\",{ext:\"otf\",mime:\"font/otf\"});case 253:if(!i(\"#!AMR\")){t.next=255;break}return t.abrupt(\"return\",{ext:\"amr\",mime:\"audio/amr\"});case 255:if(!i(\"{\\\\rtf\")){t.next=257;break}return t.abrupt(\"return\",{ext:\"rtf\",mime:\"application/rtf\"});case 257:if(!r([70,76,86,1])){t.next=259;break}return t.abrupt(\"return\",{ext:\"flv\",mime:\"video/x-flv\"});case 259:if(!i(\"IMPM\")){t.next=261;break}return t.abrupt(\"return\",{ext:\"it\",mime:\"audio/x-it\"});case 261:if(!(i(\"-lh0-\",{offset:2})||i(\"-lh1-\",{offset:2})||i(\"-lh2-\",{offset:2})||i(\"-lh3-\",{offset:2})||i(\"-lh4-\",{offset:2})||i(\"-lh5-\",{offset:2})||i(\"-lh6-\",{offset:2})||i(\"-lh7-\",{offset:2})||i(\"-lzs-\",{offset:2})||i(\"-lz4-\",{offset:2})||i(\"-lz5-\",{offset:2})||i(\"-lhd-\",{offset:2}))){t.next=263;break}return t.abrupt(\"return\",{ext:\"lzh\",mime:\"application/x-lzh-compressed\"});case 263:if(!r([0,0,1,186])){t.next=268;break}if(!r([33],{offset:4,mask:[241]})){t.next=266;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP1S\"});case 266:if(!r([68],{offset:4,mask:[196]})){t.next=268;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/MP2P\"});case 268:if(!i(\"ITSF\")){t.next=270;break}return t.abrupt(\"return\",{ext:\"chm\",mime:\"application/vnd.ms-htmlhelp\"});case 270:if(!r([253,55,122,88,90,0])){t.next=272;break}return t.abrupt(\"return\",{ext:\"xz\",mime:\"application/x-xz\"});case 272:if(!i(\"<?xml \")){t.next=274;break}return t.abrupt(\"return\",{ext:\"xml\",mime:\"application/xml\"});case 274:if(!r([55,122,188,175,39,28])){t.next=276;break}return t.abrupt(\"return\",{ext:\"7z\",mime:\"application/x-7z-compressed\"});case 276:if(!r([82,97,114,33,26,7])||0!==n[6]&&1!==n[6]){t.next=278;break}return t.abrupt(\"return\",{ext:\"rar\",mime:\"application/x-rar-compressed\"});case 278:if(!i(\"solid \")){t.next=280;break}return t.abrupt(\"return\",{ext:\"stl\",mime:\"model/stl\"});case 280:if(!i(\"BLENDER\")){t.next=282;break}return t.abrupt(\"return\",{ext:\"blend\",mime:\"application/x-blender\"});case 282:if(!i(\"!<arch>\")){t.next=291;break}return t.next=285,e.ignore(8);case 285:return t.next=287,e.readToken(new Token.StringType(13,\"ascii\"));case 287:if(\"debian-binary\"!==t.sent){t.next=290;break}return t.abrupt(\"return\",{ext:\"deb\",mime:\"application/x-deb\"});case 290:return t.abrupt(\"return\",{ext:\"ar\",mime:\"application/x-unix-archive\"});case 291:if(!r([137,80,78,71,13,10,26,10])){t.next=309;break}return y=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.readToken(Token.INT32_BE);case 2:return t.t0=t.sent,t.next=5,e.readToken(new Token.StringType(4,\"binary\"));case 5:return t.t1=t.sent,t.abrupt(\"return\",{length:t.t0,type:t.t1});case 7:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=295,e.ignore(8);case 295:return t.next=297,y();case 297:if(!((b=t.sent).length<0)){t.next=300;break}return t.abrupt(\"return\");case 300:t.t5=b.type,t.next=\"IDAT\"===t.t5?303:\"acTL\"===t.t5?304:305;break;case 303:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 304:return t.abrupt(\"return\",{ext:\"apng\",mime:\"image/apng\"});case 305:return t.next=307,e.ignore(b.length+4);case 307:if(e.position+8<e.fileInfo.size){t.next=295;break}case 308:return t.abrupt(\"return\",{ext:\"png\",mime:\"image/png\"});case 309:if(!r([65,82,82,79,87,49,0,0])){t.next=311;break}return t.abrupt(\"return\",{ext:\"arrow\",mime:\"application/x-apache-arrow\"});case 311:if(!r([103,108,84,70,2,0,0,0])){t.next=313;break}return t.abrupt(\"return\",{ext:\"glb\",mime:\"model/gltf-binary\"});case 313:if(!(r([102,114,101,101],{offset:4})||r([109,100,97,116],{offset:4})||r([109,111,111,118],{offset:4})||r([119,105,100,101],{offset:4}))){t.next=315;break}return t.abrupt(\"return\",{ext:\"mov\",mime:\"video/quicktime\"});case 315:if(!r([73,73,82,79,8,0,0,0,24])){t.next=317;break}return t.abrupt(\"return\",{ext:\"orf\",mime:\"image/x-olympus-orf\"});case 317:if(!i(\"gimp xcf \")){t.next=319;break}return t.abrupt(\"return\",{ext:\"xcf\",mime:\"image/x-xcf\"});case 319:if(!r([73,73,85,0,24,0,0,0,136,231,116,216])){t.next=321;break}return t.abrupt(\"return\",{ext:\"rw2\",mime:\"image/x-panasonic-rw2\"});case 321:if(!r([48,38,178,117,142,102,207,17,166,217])){t.next=346;break}return _=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Buffer.alloc(16),t.next=3,e.readBuffer(n);case 3:return t.t0=n,t.t1=Number,t.next=7,e.readToken(Token.UINT64_LE);case 7:return t.t2=t.sent,t.t3=(0,t.t1)(t.t2),t.abrupt(\"return\",{id:t.t0,size:t.t3});case 10:case\"end\":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=325,e.ignore(30);case 325:if(!(e.position+24<e.fileInfo.size)){t.next=345;break}return t.next=328,_();case 328:if(w=t.sent,x=w.size-24,!_check(w.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){t.next=341;break}return k=Buffer.alloc(16),t.t6=x,t.next=335,e.readBuffer(k);case 335:if(x=t.t6-=t.sent,!_check(k,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=338;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"audio/x-ms-asf\"});case 338:if(!_check(k,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=340;break}return t.abrupt(\"return\",{ext:\"asf\",mime:\"video/x-ms-asf\"});case 340:return t.abrupt(\"break\",345);case 341:return t.next=343,e.ignore(x);case 343:t.next=325;break;case 345:return t.abrupt(\"return\",{ext:\"asf\",mime:\"application/vnd.ms-asf\"});case 346:if(!r([171,75,84,88,32,49,49,187,13,10,26,10])){t.next=348;break}return t.abrupt(\"return\",{ext:\"ktx\",mime:\"image/ktx\"});case 348:if(!r([126,16,4])&&!r([126,24,4])||!r([48,77,73,69],{offset:4})){t.next=350;break}return t.abrupt(\"return\",{ext:\"mie\",mime:\"application/x-mie\"});case 350:if(!r([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2})){t.next=352;break}return t.abrupt(\"return\",{ext:\"shp\",mime:\"application/x-esri-shape\"});case 352:if(!r([0,0,0,12,106,80,32,32,13,10,135,10])){t.next=366;break}return t.next=355,e.ignore(20);case 355:return t.next=357,e.readToken(new Token.StringType(4,\"ascii\"));case 357:S=t.sent,t.t7=S,t.next=\"jp2 \"===t.t7?361:\"jpx \"===t.t7?362:\"jpm \"===t.t7?363:\"mjp2\"===t.t7?364:365;break;case 361:return t.abrupt(\"return\",{ext:\"jp2\",mime:\"image/jp2\"});case 362:return t.abrupt(\"return\",{ext:\"jpx\",mime:\"image/jpx\"});case 363:return t.abrupt(\"return\",{ext:\"jpm\",mime:\"image/jpm\"});case 364:return t.abrupt(\"return\",{ext:\"mj2\",mime:\"image/mj2\"});case 365:return t.abrupt(\"return\");case 366:if(!r([255,10])&&!r([0,0,0,12,74,88,76,32,13,10,135,10])){t.next=368;break}return t.abrupt(\"return\",{ext:\"jxl\",mime:\"image/jxl\"});case 368:if(!r([0,0,1,186])&&!r([0,0,1,179])){t.next=370;break}return t.abrupt(\"return\",{ext:\"mpg\",mime:\"video/mpeg\"});case 370:if(!r([0,1,0,0,0])){t.next=372;break}return t.abrupt(\"return\",{ext:\"ttf\",mime:\"font/ttf\"});case 372:if(!r([0,0,1,0])){t.next=374;break}return t.abrupt(\"return\",{ext:\"ico\",mime:\"image/x-icon\"});case 374:if(!r([0,0,2,0])){t.next=376;break}return t.abrupt(\"return\",{ext:\"cur\",mime:\"image/x-icon\"});case 376:if(!r([208,207,17,224,161,177,26,225])){t.next=378;break}return t.abrupt(\"return\",{ext:\"cfb\",mime:\"application/x-cfb\"});case 378:return t.next=380,e.peekBuffer(n,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0});case 380:if(!i(\"BEGIN:\")){t.next=385;break}if(!i(\"VCARD\",{offset:6})){t.next=383;break}return t.abrupt(\"return\",{ext:\"vcf\",mime:\"text/vcard\"});case 383:if(!i(\"VCALENDAR\",{offset:6})){t.next=385;break}return t.abrupt(\"return\",{ext:\"ics\",mime:\"text/calendar\"});case 385:if(!i(\"FUJIFILMCCD-RAW\")){t.next=387;break}return t.abrupt(\"return\",{ext:\"raf\",mime:\"image/x-fujifilm-raf\"});case 387:if(!i(\"Extended Module:\")){t.next=389;break}return t.abrupt(\"return\",{ext:\"xm\",mime:\"audio/x-xm\"});case 389:if(!i(\"Creative Voice File\")){t.next=391;break}return t.abrupt(\"return\",{ext:\"voc\",mime:\"audio/x-voc\"});case 391:if(!(r([4,0,0,0])&&n.length>=16)){t.next=403;break}if(!((C=n.readUInt32LE(12))>12&&n.length>=C+16)){t.next=403;break}if(t.prev=394,E=n.slice(16,C+16).toString(),!JSON.parse(E).files){t.next=399;break}return t.abrupt(\"return\",{ext:\"asar\",mime:\"application/x-asar\"});case 399:t.next=403;break;case 401:t.prev=401,t.t8=t.catch(394);case 403:if(!r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){t.next=405;break}return t.abrupt(\"return\",{ext:\"mxf\",mime:\"application/mxf\"});case 405:if(!i(\"SCRM\",{offset:44})){t.next=407;break}return t.abrupt(\"return\",{ext:\"s3m\",mime:\"audio/x-s3m\"});case 407:if(!r([71],{offset:4})||!r([71],{offset:192})&&!r([71],{offset:196})){t.next=409;break}return t.abrupt(\"return\",{ext:\"mts\",mime:\"video/mp2t\"});case 409:if(!r([66,79,79,75,77,79,66,73],{offset:60})){t.next=411;break}return t.abrupt(\"return\",{ext:\"mobi\",mime:\"application/x-mobipocket-ebook\"});case 411:if(!r([68,73,67,77],{offset:128})){t.next=413;break}return t.abrupt(\"return\",{ext:\"dcm\",mime:\"application/dicom\"});case 413:if(!r([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70])){t.next=415;break}return t.abrupt(\"return\",{ext:\"lnk\",mime:\"application/x.ms.shortcut\"});case 415:if(!r([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0])){t.next=417;break}return t.abrupt(\"return\",{ext:\"alias\",mime:\"application/x.apple.alias\"});case 417:if(!r([76,80],{offset:34})||!(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))){t.next=419;break}return t.abrupt(\"return\",{ext:\"eot\",mime:\"application/vnd.ms-fontobject\"});case 419:if(!r([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29])){t.next=421;break}return t.abrupt(\"return\",{ext:\"indd\",mime:\"application/x-indesign\"});case 421:return t.next=423,e.peekBuffer(n,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0});case 423:if(!tarHeaderChecksumMatches(n)){t.next=425;break}return t.abrupt(\"return\",{ext:\"tar\",mime:\"application/x-tar\"});case 425:if(!r([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0])){t.next=427;break}return t.abrupt(\"return\",{ext:\"skp\",mime:\"application/vnd.sketchup.skp\"});case 427:if(!i(\"-----BEGIN PGP MESSAGE-----\")){t.next=429;break}return t.abrupt(\"return\",{ext:\"pgp\",mime:\"application/pgp-encrypted\"});case 429:if(!(n.length>=2&&r([255,224],{offset:0,mask:[255,224]}))){t.next=440;break}if(!r([16],{offset:1,mask:[22]})){t.next=434;break}if(!r([8],{offset:1,mask:[8]})){t.next=433;break}return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 433:return t.abrupt(\"return\",{ext:\"aac\",mime:\"audio/aac\"});case 434:if(!r([2],{offset:1,mask:[6]})){t.next=436;break}return t.abrupt(\"return\",{ext:\"mp3\",mime:\"audio/mpeg\"});case 436:if(!r([4],{offset:1,mask:[6]})){t.next=438;break}return t.abrupt(\"return\",{ext:\"mp2\",mime:\"audio/mpeg\"});case 438:if(!r([6],{offset:1,mask:[6]})){t.next=440;break}return t.abrupt(\"return\",{ext:\"mp1\",mime:\"audio/mpeg\"});case 440:case\"end\":return t.stop()}}),t,null,[[61,116],[394,401]])}))),_fromTokenizer3.apply(this,arguments)}var stream=function stream(readableStream){return new Promise((function(resolve,reject){var stream=eval(\"require\")(\"stream\");readableStream.on(\"error\",reject),readableStream.once(\"readable\",_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,n,r,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new stream.PassThrough,n=stream.pipeline?stream.pipeline(readableStream,e,(function(){})):readableStream.pipe(e),r=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0),t.prev=3,t.next=6,fromBuffer(r);case 6:i=t.sent,e.fileType=i,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),reject(t.t0);case 13:resolve(n);case 14:case\"end\":return t.stop()}}),t,null,[[3,10]])}))))}))},fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,\"extensions\",{get:function(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,\"mimeTypes\",{get:function(){return new Set(supported.mimeTypes)}}),module.exports=fileType}).call(this,__webpack_require__(2).Buffer)},function(t,e,n){\"use strict\";(function(t){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function s(t){var e=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;var u=n(67);function l(t){return new DataView(t.buffer,t.byteOffset)}e.UINT8={len:1,get:function(t,e){return l(t).getUint8(e)},put:function(t,e,n){return l(t).setUint8(e,n),e+1}},e.UINT16_LE={len:2,get:function(t,e){return l(t).getUint16(e,!0)},put:function(t,e,n){return l(t).setUint16(e,n,!0),e+2}},e.UINT16_BE={len:2,get:function(t,e){return l(t).getUint16(e)},put:function(t,e,n){return l(t).setUint16(e,n),e+2}},e.UINT24_LE={len:3,get:function(t,e){var n=l(t);return n.getUint8(e)+(n.getUint16(e+1,!0)<<8)},put:function(t,e,n){var r=l(t);return r.setUint8(e,255&n),r.setUint16(e+1,n>>8,!0),e+3}},e.UINT24_BE={len:3,get:function(t,e){var n=l(t);return(n.getUint16(e)<<8)+n.getUint8(e+2)},put:function(t,e,n){var r=l(t);return r.setUint16(e,n>>8),r.setUint8(e+2,255&n),e+3}},e.UINT32_LE={len:4,get:function(t,e){return l(t).getUint32(e,!0)},put:function(t,e,n){return l(t).setUint32(e,n,!0),e+4}},e.UINT32_BE={len:4,get:function(t,e){return l(t).getUint32(e)},put:function(t,e,n){return l(t).setUint32(e,n),e+4}},e.INT8={len:1,get:function(t,e){return l(t).getInt8(e)},put:function(t,e,n){return l(t).setInt8(e,n),e+1}},e.INT16_BE={len:2,get:function(t,e){return l(t).getInt16(e)},put:function(t,e,n){return l(t).setInt16(e,n),e+2}},e.INT16_LE={len:2,get:function(t,e){return l(t).getInt16(e,!0)},put:function(t,e,n){return l(t).setInt16(e,n,!0),e+2}},e.INT24_LE={len:3,get:function(t,n){var r=e.UINT24_LE.get(t,n);return r>8388607?r-16777216:r},put:function(t,e,n){var r=l(t);return r.setUint8(e,255&n),r.setUint16(e+1,n>>8,!0),e+3}},e.INT24_BE={len:3,get:function(t,n){var r=e.UINT24_BE.get(t,n);return r>8388607?r-16777216:r},put:function(t,e,n){var r=l(t);return r.setUint16(e,n>>8),r.setUint8(e+2,255&n),e+3}},e.INT32_BE={len:4,get:function(t,e){return l(t).getInt32(e)},put:function(t,e,n){return l(t).setInt32(e,n),e+4}},e.INT32_LE={len:4,get:function(t,e){return l(t).getInt32(e,!0)},put:function(t,e,n){return l(t).setInt32(e,n,!0),e+4}},e.UINT64_LE={len:8,get:function(t,e){return l(t).getBigUint64(e,!0)},put:function(t,e,n){return l(t).setBigUint64(e,n,!0),e+8}},e.INT64_LE={len:8,get:function(t,e){return l(t).getBigInt64(e,!0)},put:function(t,e,n){return l(t).setBigInt64(e,n,!0),e+8}},e.UINT64_BE={len:8,get:function(t,e){return l(t).getBigUint64(e)},put:function(t,e,n){return l(t).setBigUint64(e,n),e+8}},e.INT64_BE={len:8,get:function(t,e){return l(t).getBigInt64(e)},put:function(t,e,n){return l(t).setBigInt64(e,n),e+8}},e.Float16_BE={len:2,get:function(t,e){return u.read(t,e,!1,10,this.len)},put:function(t,e,n){return u.write(t,n,e,!1,10,this.len),e+this.len}},e.Float16_LE={len:2,get:function(t,e){return u.read(t,e,!0,10,this.len)},put:function(t,e,n){return u.write(t,n,e,!0,10,this.len),e+this.len}},e.Float32_BE={len:4,get:function(t,e){return l(t).getFloat32(e)},put:function(t,e,n){return l(t).setFloat32(e,n),e+4}},e.Float32_LE={len:4,get:function(t,e){return l(t).getFloat32(e,!0)},put:function(t,e,n){return l(t).setFloat32(e,n,!0),e+4}},e.Float64_BE={len:8,get:function(t,e){return l(t).getFloat64(e)},put:function(t,e,n){return l(t).setFloat64(e,n),e+8}},e.Float64_LE={len:8,get:function(t,e){return l(t).getFloat64(e,!0)},put:function(t,e,n){return l(t).setFloat64(e,n,!0),e+8}},e.Float80_BE={len:10,get:function(t,e){return u.read(t,e,!1,63,this.len)},put:function(t,e,n){return u.write(t,n,e,!1,63,this.len),e+this.len}},e.Float80_LE={len:10,get:function(t,e){return u.read(t,e,!0,63,this.len)},put:function(t,e,n){return u.write(t,n,e,!0,63,this.len),e+this.len}};var c=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){}}])}();e.IgnoreType=c;var h=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(t,e){return t.subarray(e,e+this.len)}}])}();e.Uint8ArrayType=h;var f=function(){return a((function t(e){i(this,t),this.len=e}),[{key:\"get\",value:function(e,n){return t.from(e.subarray(n,n+this.len))}}])}();e.BufferType=f;var d=function(){return a((function t(e,n){i(this,t),this.len=e,this.encoding=n}),[{key:\"get\",value:function(e,n){return t.from(e).toString(this.encoding,n,n+this.len)}}])}();e.StringType=d;var p=function(){function t(e){i(this,t),this.len=e}return a(t,[{key:\"get\",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.decode(e,n,n+this.len)}}],[{key:\"decode\",value:function(e,n,r){for(var i=\"\",o=n;o<r;++o)i+=t.codePointToString(t.singleByteDecoder(e[o]));return i}},{key:\"inRange\",value:function(t,e,n){return e<=t&&t<=n}},{key:\"codePointToString\",value:function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}},{key:\"singleByteDecoder\",value:function(e){if(t.inRange(e,0,127))return e;var n=t.windows1252[e-128];if(null===n)throw Error(\"invaliding encoding\");return n}}])}();e.AnsiStringType=p,p.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.stringToBytes=function(t){return r(t).map((function(t){return t.charCodeAt(0)}))},e.tarHeaderChecksumMatches=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=parseInt(t.toString(\"utf8\",148,154).replace(/\\0.*$/,\"\").trim(),8);if(isNaN(n))return!1;for(var r=256,i=e;i<e+148;i++)r+=t[i];for(var o=e+156;o<e+512;o++)r+=t[o];return n===r},e.uint32SyncSafeToken={get:function(t,e){return 127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21},len:4}},function(t,e,n){\"use strict\";t.exports={extensions:[\"jpg\",\"png\",\"apng\",\"gif\",\"webp\",\"flif\",\"xcf\",\"cr2\",\"cr3\",\"orf\",\"arw\",\"dng\",\"nef\",\"rw2\",\"raf\",\"tif\",\"bmp\",\"icns\",\"jxr\",\"psd\",\"indd\",\"zip\",\"tar\",\"rar\",\"gz\",\"bz2\",\"7z\",\"dmg\",\"mp4\",\"mid\",\"mkv\",\"webm\",\"mov\",\"avi\",\"mpg\",\"mp2\",\"mp3\",\"m4a\",\"oga\",\"ogg\",\"ogv\",\"opus\",\"flac\",\"wav\",\"spx\",\"amr\",\"pdf\",\"epub\",\"exe\",\"swf\",\"rtf\",\"wasm\",\"woff\",\"woff2\",\"eot\",\"ttf\",\"otf\",\"ico\",\"flv\",\"ps\",\"xz\",\"sqlite\",\"nes\",\"crx\",\"xpi\",\"cab\",\"deb\",\"ar\",\"rpm\",\"Z\",\"lz\",\"cfb\",\"mxf\",\"mts\",\"blend\",\"bpg\",\"docx\",\"pptx\",\"xlsx\",\"3gp\",\"3g2\",\"jp2\",\"jpm\",\"jpx\",\"mj2\",\"aif\",\"qcp\",\"odt\",\"ods\",\"odp\",\"xml\",\"mobi\",\"heic\",\"cur\",\"ktx\",\"ape\",\"wv\",\"dcm\",\"ics\",\"glb\",\"pcap\",\"dsf\",\"lnk\",\"alias\",\"voc\",\"ac3\",\"m4v\",\"m4p\",\"m4b\",\"f4v\",\"f4p\",\"f4b\",\"f4a\",\"mie\",\"asf\",\"ogm\",\"ogx\",\"mpc\",\"arrow\",\"shp\",\"aac\",\"mp1\",\"it\",\"s3m\",\"xm\",\"ai\",\"skp\",\"avif\",\"eps\",\"lzh\",\"pgp\",\"asar\",\"stl\",\"chm\",\"3mf\",\"zst\",\"jxl\",\"vcf\"],mimeTypes:[\"image/jpeg\",\"image/png\",\"image/gif\",\"image/webp\",\"image/flif\",\"image/x-xcf\",\"image/x-canon-cr2\",\"image/x-canon-cr3\",\"image/tiff\",\"image/bmp\",\"image/vnd.ms-photo\",\"image/vnd.adobe.photoshop\",\"application/x-indesign\",\"application/epub+zip\",\"application/x-xpinstall\",\"application/vnd.oasis.opendocument.text\",\"application/vnd.oasis.opendocument.spreadsheet\",\"application/vnd.oasis.opendocument.presentation\",\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\"application/zip\",\"application/x-tar\",\"application/x-rar-compressed\",\"application/gzip\",\"application/x-bzip2\",\"application/x-7z-compressed\",\"application/x-apple-diskimage\",\"application/x-apache-arrow\",\"video/mp4\",\"audio/midi\",\"video/x-matroska\",\"video/webm\",\"video/quicktime\",\"video/vnd.avi\",\"audio/vnd.wave\",\"audio/qcelp\",\"audio/x-ms-asf\",\"video/x-ms-asf\",\"application/vnd.ms-asf\",\"video/mpeg\",\"video/3gpp\",\"audio/mpeg\",\"audio/mp4\",\"audio/opus\",\"video/ogg\",\"audio/ogg\",\"application/ogg\",\"audio/x-flac\",\"audio/ape\",\"audio/wavpack\",\"audio/amr\",\"application/pdf\",\"application/x-msdownload\",\"application/x-shockwave-flash\",\"application/rtf\",\"application/wasm\",\"font/woff\",\"font/woff2\",\"application/vnd.ms-fontobject\",\"font/ttf\",\"font/otf\",\"image/x-icon\",\"video/x-flv\",\"application/postscript\",\"application/eps\",\"application/x-xz\",\"application/x-sqlite3\",\"application/x-nintendo-nes-rom\",\"application/x-google-chrome-extension\",\"application/vnd.ms-cab-compressed\",\"application/x-deb\",\"application/x-unix-archive\",\"application/x-rpm\",\"application/x-compress\",\"application/x-lzip\",\"application/x-cfb\",\"application/x-mie\",\"application/mxf\",\"video/mp2t\",\"application/x-blender\",\"image/bpg\",\"image/jp2\",\"image/jpx\",\"image/jpm\",\"image/mj2\",\"audio/aiff\",\"application/xml\",\"application/x-mobipocket-ebook\",\"image/heif\",\"image/heif-sequence\",\"image/heic\",\"image/heic-sequence\",\"image/icns\",\"image/ktx\",\"application/dicom\",\"audio/x-musepack\",\"text/calendar\",\"text/vcard\",\"model/gltf-binary\",\"application/vnd.tcpdump.pcap\",\"audio/x-dsf\",\"application/x.ms.shortcut\",\"application/x.apple.alias\",\"audio/x-voc\",\"audio/vnd.dolby.dd-raw\",\"audio/x-m4a\",\"image/apng\",\"image/x-olympus-orf\",\"image/x-sony-arw\",\"image/x-adobe-dng\",\"image/x-nikon-nef\",\"image/x-panasonic-rw2\",\"image/x-fujifilm-raf\",\"video/x-m4v\",\"video/3gpp2\",\"application/x-esri-shape\",\"audio/aac\",\"audio/x-it\",\"audio/x-s3m\",\"audio/x-xm\",\"video/MP1S\",\"video/MP2P\",\"application/vnd.sketchup.skp\",\"image/avif\",\"application/x-lzh-compressed\",\"application/pgp-encrypted\",\"application/x-asar\",\"model/stl\",\"application/vnd.ms-htmlhelp\",\"model/3mf\",\"image/jxl\",\"application/zstd\"]}},function(t,e,n){var r=n(136),i=n(69),o=n(137);function a(t,e,n,r,i,o,a){this.startMarker=t,this.tags=e,this.imageSize=n,this.thumbnailOffset=r,this.thumbnailLength=i,this.thumbnailType=o,this.app1Offset=a}function s(t){this.stream=t,this.flags={readBinaryTags:!1,resolveTagNames:!0,simplifyValues:!0,imageSize:!0,hidePointers:!0,returnTags:!0}}a.prototype={hasThumbnail:function(t){return!(!this.thumbnailOffset||!this.thumbnailLength)&&(\"string\"!=typeof t||(\"image/jpeg\"===t.toLowerCase().trim()?6===this.thumbnailType:\"image/tiff\"===t.toLowerCase().trim()&&1===this.thumbnailType))},getThumbnailOffset:function(){return this.app1Offset+6+this.thumbnailOffset},getThumbnailLength:function(){return this.thumbnailLength},getThumbnailBuffer:function(){return this._getThumbnailStream().nextBuffer(this.thumbnailLength)},_getThumbnailStream:function(){return this.startMarker.openWithOffset(this.getThumbnailOffset())},getImageSize:function(){return this.imageSize},getThumbnailSize:function(){var t,e=this._getThumbnailStream();return r.parseSections(e,(function(e,n){\"SOF\"===r.getSectionName(e).name&&(t=r.getSizeFromSOFSection(n))})),t}},s.prototype={enableBinaryFields:function(t){return this.flags.readBinaryTags=!!t,this},enablePointers:function(t){return this.flags.hidePointers=!t,this},enableTagNames:function(t){return this.flags.resolveTagNames=!!t,this},enableImageSize:function(t){return this.flags.imageSize=!!t,this},enableReturnTags:function(t){return this.flags.returnTags=!!t,this},enableSimpleValues:function(t){return this.flags.simplifyValues=!!t,this},parse:function(){var t,e,s,u,l,c,h,f,d,p=this.stream.mark(),m=p.openWithOffset(0),v=this.flags;return v.resolveTagNames&&(h=n(139)),v.resolveTagNames?(t={},f=function(e){return t[e.name]},d=function(e,n){t[e.name]=n}):(t=[],f=function(e){var n;for(n=0;n<t.length;++n)if(t[n].type===e.type&&t[n].section===e.section)return t.value},d=function(e,n){var r;for(r=0;r<t.length;++r)if(t[r].type===e.type&&t[r].section===e.section)return void(t.value=n)}),r.parseSections(m,(function(n,a){var f=a.offsetFrom(p);225===n?i.parseTags(a,(function(e,n,r,a){if(v.readBinaryTags||7!==a){if(513===n){if(s=r[0],v.hidePointers)return}else if(514===n){if(u=r[0],v.hidePointers)return}else if(259===n&&(l=r[0],v.hidePointers))return;if(v.returnTags)if(v.simplifyValues&&(r=o.simplifyValue(r,a)),v.resolveTagNames){var c=(e===i.GPSIFD?h.gps:h.exif)[n];c||(c=h.exif[n]),t.hasOwnProperty(c)||(t[c]=r)}else t.push({section:e,type:n,value:r})}}))&&(c=f):v.imageSize&&\"SOF\"===r.getSectionName(n).name&&(e=r.getSizeFromSOFSection(a))})),v.simplifyValues&&(o.castDegreeValues(f,d),o.castDateValues(f,d)),new a(p,t,e,s,u,l,c)}},t.exports=s},function(t,e){t.exports={parseSections:function(t,e){var n,r;for(t.setBigEndian(!0);t.remainingLength()>0&&218!==r;){if(255!==t.nextUInt8())throw new Error(\"Invalid JPEG section offset\");n=(r=t.nextUInt8())>=208&&r<=217||218===r?0:t.nextUInt16()-2,e(r,t.branch(0,n)),t.skip(n)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,n;switch(t){case 216:e=\"SOI\";break;case 196:e=\"DHT\";break;case 219:e=\"DQT\";break;case 221:e=\"DRI\";break;case 218:e=\"SOS\";break;case 254:e=\"COM\";break;case 217:e=\"EOI\";break;default:t>=224&&t<=239?(e=\"APP\",n=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e=\"SOF\",n=t-192):t>=208&&t<=215&&(e=\"RST\",n=t-208)}var r={name:e};return\"number\"==typeof n&&(r.index=n),r}}},function(t,e,n){var r=n(69),i=n(138),o=[{section:r.GPSIFD,type:2,name:\"GPSLatitude\",refType:1,refName:\"GPSLatitudeRef\",posVal:\"N\"},{section:r.GPSIFD,type:4,name:\"GPSLongitude\",refType:3,refName:\"GPSLongitudeRef\",posVal:\"E\"}],a=[{section:r.SubIFD,type:306,name:\"ModifyDate\"},{section:r.SubIFD,type:36867,name:\"DateTimeOriginal\"},{section:r.SubIFD,type:36868,name:\"CreateDate\"},{section:r.SubIFD,type:306,name:\"ModifyDate\"}];t.exports={castDegreeValues:function(t,e){o.forEach((function(n){var r=t(n);if(r){var i=t({section:n.section,type:n.refType,name:n.refName})===n.posVal?1:-1,o=(r[0]+r[1]/60+r[2]/3600)*i;e(n,o)}}))},castDateValues:function(t,e){a.forEach((function(n){var r=t(n);if(r){var o=i.parseExifDate(r);void 0!==o&&e(n,o)}}))},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map((function(t){return 10===e||5===e?t[0]/t[1]:t}))).length&&(t=t[0]),t}}},function(t,e){function n(t){return parseInt(t,10)}var r=3600,i=60;function o(t,e){t=t.map(n),e=e.map(n);var r=t[0],i=t[1]-1,o=t[2],a=e[0],s=e[1],u=e[2];return Date.UTC(r,i,o,a,s,u,0)/1e3}function a(t){var e=t.substr(0,10).split(\"-\"),a=t.substr(11,8).split(\":\"),s=t.substr(19,6).split(\":\").map(n),u=s[0]*r+s[1]*i,l=o(e,a);if(\"number\"==typeof(l-=u)&&!isNaN(l))return l}function s(t){var e=t.split(\" \"),n=o(e[0].split(\":\"),e[1].split(\":\"));if(\"number\"==typeof n&&!isNaN(n))return n}t.exports={parseDateWithSpecFormat:s,parseDateWithTimezoneFormat:a,parseExifDate:function(t){var e=19===t.length&&\":\"===t.charAt(4);return 25===t.length&&\"T\"===t.charAt(10)?a(t):e?s(t):void 0}}},function(t,e){t.exports={exif:{1:\"InteropIndex\",2:\"InteropVersion\",11:\"ProcessingSoftware\",254:\"SubfileType\",255:\"OldSubfileType\",256:\"ImageWidth\",257:\"ImageHeight\",258:\"BitsPerSample\",259:\"Compression\",262:\"PhotometricInterpretation\",263:\"Thresholding\",264:\"CellWidth\",265:\"CellLength\",266:\"FillOrder\",269:\"DocumentName\",270:\"ImageDescription\",271:\"Make\",272:\"Model\",273:\"StripOffsets\",274:\"Orientation\",277:\"SamplesPerPixel\",278:\"RowsPerStrip\",279:\"StripByteCounts\",280:\"MinSampleValue\",281:\"MaxSampleValue\",282:\"XResolution\",283:\"YResolution\",284:\"PlanarConfiguration\",285:\"PageName\",286:\"XPosition\",287:\"YPosition\",288:\"FreeOffsets\",289:\"FreeByteCounts\",290:\"GrayResponseUnit\",291:\"GrayResponseCurve\",292:\"T4Options\",293:\"T6Options\",296:\"ResolutionUnit\",297:\"PageNumber\",300:\"ColorResponseUnit\",301:\"TransferFunction\",305:\"Software\",306:\"ModifyDate\",315:\"Artist\",316:\"HostComputer\",317:\"Predictor\",318:\"WhitePoint\",319:\"PrimaryChromaticities\",320:\"ColorMap\",321:\"HalftoneHints\",322:\"TileWidth\",323:\"TileLength\",324:\"TileOffsets\",325:\"TileByteCounts\",326:\"BadFaxLines\",327:\"CleanFaxData\",328:\"ConsecutiveBadFaxLines\",330:\"SubIFD\",332:\"InkSet\",333:\"InkNames\",334:\"NumberofInks\",336:\"DotRange\",337:\"TargetPrinter\",338:\"ExtraSamples\",339:\"SampleFormat\",340:\"SMinSampleValue\",341:\"SMaxSampleValue\",342:\"TransferRange\",343:\"ClipPath\",344:\"XClipPathUnits\",345:\"YClipPathUnits\",346:\"Indexed\",347:\"JPEGTables\",351:\"OPIProxy\",400:\"GlobalParametersIFD\",401:\"ProfileType\",402:\"FaxProfile\",403:\"CodingMethods\",404:\"VersionYear\",405:\"ModeNumber\",433:\"Decode\",434:\"DefaultImageColor\",435:\"T82Options\",437:\"JPEGTables\",512:\"JPEGProc\",513:\"ThumbnailOffset\",514:\"ThumbnailLength\",515:\"JPEGRestartInterval\",517:\"JPEGLosslessPredictors\",518:\"JPEGPointTransforms\",519:\"JPEGQTables\",520:\"JPEGDCTables\",521:\"JPEGACTables\",529:\"YCbCrCoefficients\",530:\"YCbCrSubSampling\",531:\"YCbCrPositioning\",532:\"ReferenceBlackWhite\",559:\"StripRowCounts\",700:\"ApplicationNotes\",999:\"USPTOMiscellaneous\",4096:\"RelatedImageFileFormat\",4097:\"RelatedImageWidth\",4098:\"RelatedImageHeight\",18246:\"Rating\",18247:\"XP_DIP_XML\",18248:\"StitchInfo\",18249:\"RatingPercent\",32781:\"ImageID\",32931:\"WangTag1\",32932:\"WangAnnotation\",32933:\"WangTag3\",32934:\"WangTag4\",32995:\"Matteing\",32996:\"DataType\",32997:\"ImageDepth\",32998:\"TileDepth\",33405:\"Model2\",33421:\"CFARepeatPatternDim\",33422:\"CFAPattern2\",33423:\"BatteryLevel\",33424:\"KodakIFD\",33432:\"Copyright\",33434:\"ExposureTime\",33437:\"FNumber\",33445:\"MDFileTag\",33446:\"MDScalePixel\",33447:\"MDColorTable\",33448:\"MDLabName\",33449:\"MDSampleInfo\",33450:\"MDPrepDate\",33451:\"MDPrepTime\",33452:\"MDFileUnits\",33550:\"PixelScale\",33589:\"AdventScale\",33590:\"AdventRevision\",33628:\"UIC1Tag\",33629:\"UIC2Tag\",33630:\"UIC3Tag\",33631:\"UIC4Tag\",33723:\"IPTC-NAA\",33918:\"IntergraphPacketData\",33919:\"IntergraphFlagRegisters\",33920:\"IntergraphMatrix\",33921:\"INGRReserved\",33922:\"ModelTiePoint\",34016:\"Site\",34017:\"ColorSequence\",34018:\"IT8Header\",34019:\"RasterPadding\",34020:\"BitsPerRunLength\",34021:\"BitsPerExtendedRunLength\",34022:\"ColorTable\",34023:\"ImageColorIndicator\",34024:\"BackgroundColorIndicator\",34025:\"ImageColorValue\",34026:\"BackgroundColorValue\",34027:\"PixelIntensityRange\",34028:\"TransparencyIndicator\",34029:\"ColorCharacterization\",34030:\"HCUsage\",34031:\"TrapIndicator\",34032:\"CMYKEquivalent\",34118:\"SEMInfo\",34152:\"AFCP_IPTC\",34232:\"PixelMagicJBIGOptions\",34264:\"ModelTransform\",34306:\"WB_GRGBLevels\",34310:\"LeafData\",34377:\"PhotoshopSettings\",34665:\"ExifOffset\",34675:\"ICC_Profile\",34687:\"TIFF_FXExtensions\",34688:\"MultiProfiles\",34689:\"SharedData\",34690:\"T88Options\",34732:\"ImageLayer\",34735:\"GeoTiffDirectory\",34736:\"GeoTiffDoubleParams\",34737:\"GeoTiffAsciiParams\",34850:\"ExposureProgram\",34852:\"SpectralSensitivity\",34853:\"GPSInfo\",34855:\"ISO\",34856:\"Opto-ElectricConvFactor\",34857:\"Interlace\",34858:\"TimeZoneOffset\",34859:\"SelfTimerMode\",34864:\"SensitivityType\",34865:\"StandardOutputSensitivity\",34866:\"RecommendedExposureIndex\",34867:\"ISOSpeed\",34868:\"ISOSpeedLatitudeyyy\",34869:\"ISOSpeedLatitudezzz\",34908:\"FaxRecvParams\",34909:\"FaxSubAddress\",34910:\"FaxRecvTime\",34954:\"LeafSubIFD\",36864:\"ExifVersion\",36867:\"DateTimeOriginal\",36868:\"CreateDate\",37121:\"ComponentsConfiguration\",37122:\"CompressedBitsPerPixel\",37377:\"ShutterSpeedValue\",37378:\"ApertureValue\",37379:\"BrightnessValue\",37380:\"ExposureCompensation\",37381:\"MaxApertureValue\",37382:\"SubjectDistance\",37383:\"MeteringMode\",37384:\"LightSource\",37385:\"Flash\",37386:\"FocalLength\",37387:\"FlashEnergy\",37388:\"SpatialFrequencyResponse\",37389:\"Noise\",37390:\"FocalPlaneXResolution\",37391:\"FocalPlaneYResolution\",37392:\"FocalPlaneResolutionUnit\",37393:\"ImageNumber\",37394:\"SecurityClassification\",37395:\"ImageHistory\",37396:\"SubjectArea\",37397:\"ExposureIndex\",37398:\"TIFF-EPStandardID\",37399:\"SensingMethod\",37434:\"CIP3DataFile\",37435:\"CIP3Sheet\",37436:\"CIP3Side\",37439:\"StoNits\",37500:\"MakerNote\",37510:\"UserComment\",37520:\"SubSecTime\",37521:\"SubSecTimeOriginal\",37522:\"SubSecTimeDigitized\",37679:\"MSDocumentText\",37680:\"MSPropertySetStorage\",37681:\"MSDocumentTextPosition\",37724:\"ImageSourceData\",40091:\"XPTitle\",40092:\"XPComment\",40093:\"XPAuthor\",40094:\"XPKeywords\",40095:\"XPSubject\",40960:\"FlashpixVersion\",40961:\"ColorSpace\",40962:\"ExifImageWidth\",40963:\"ExifImageHeight\",40964:\"RelatedSoundFile\",40965:\"InteropOffset\",41483:\"FlashEnergy\",41484:\"SpatialFrequencyResponse\",41485:\"Noise\",41486:\"FocalPlaneXResolution\",41487:\"FocalPlaneYResolution\",41488:\"FocalPlaneResolutionUnit\",41489:\"ImageNumber\",41490:\"SecurityClassification\",41491:\"ImageHistory\",41492:\"SubjectLocation\",41493:\"ExposureIndex\",41494:\"TIFF-EPStandardID\",41495:\"SensingMethod\",41728:\"FileSource\",41729:\"SceneType\",41730:\"CFAPattern\",41985:\"CustomRendered\",41986:\"ExposureMode\",41987:\"WhiteBalance\",41988:\"DigitalZoomRatio\",41989:\"FocalLengthIn35mmFormat\",41990:\"SceneCaptureType\",41991:\"GainControl\",41992:\"Contrast\",41993:\"Saturation\",41994:\"Sharpness\",41995:\"DeviceSettingDescription\",41996:\"SubjectDistanceRange\",42016:\"ImageUniqueID\",42032:\"OwnerName\",42033:\"SerialNumber\",42034:\"LensInfo\",42035:\"LensMake\",42036:\"LensModel\",42037:\"LensSerialNumber\",42112:\"GDALMetadata\",42113:\"GDALNoData\",42240:\"Gamma\",44992:\"ExpandSoftware\",44993:\"ExpandLens\",44994:\"ExpandFilm\",44995:\"ExpandFilterLens\",44996:\"ExpandScanner\",44997:\"ExpandFlashLamp\",48129:\"PixelFormat\",48130:\"Transformation\",48131:\"Uncompressed\",48132:\"ImageType\",48256:\"ImageWidth\",48257:\"ImageHeight\",48258:\"WidthResolution\",48259:\"HeightResolution\",48320:\"ImageOffset\",48321:\"ImageByteCount\",48322:\"AlphaOffset\",48323:\"AlphaByteCount\",48324:\"ImageDataDiscard\",48325:\"AlphaDataDiscard\",50215:\"OceScanjobDesc\",50216:\"OceApplicationSelector\",50217:\"OceIDNumber\",50218:\"OceImageLogic\",50255:\"Annotations\",50341:\"PrintIM\",50560:\"USPTOOriginalContentType\",50706:\"DNGVersion\",50707:\"DNGBackwardVersion\",50708:\"UniqueCameraModel\",50709:\"LocalizedCameraModel\",50710:\"CFAPlaneColor\",50711:\"CFALayout\",50712:\"LinearizationTable\",50713:\"BlackLevelRepeatDim\",50714:\"BlackLevel\",50715:\"BlackLevelDeltaH\",50716:\"BlackLevelDeltaV\",50717:\"WhiteLevel\",50718:\"DefaultScale\",50719:\"DefaultCropOrigin\",50720:\"DefaultCropSize\",50721:\"ColorMatrix1\",50722:\"ColorMatrix2\",50723:\"CameraCalibration1\",50724:\"CameraCalibration2\",50725:\"ReductionMatrix1\",50726:\"ReductionMatrix2\",50727:\"AnalogBalance\",50728:\"AsShotNeutral\",50729:\"AsShotWhiteXY\",50730:\"BaselineExposure\",50731:\"BaselineNoise\",50732:\"BaselineSharpness\",50733:\"BayerGreenSplit\",50734:\"LinearResponseLimit\",50735:\"CameraSerialNumber\",50736:\"DNGLensInfo\",50737:\"ChromaBlurRadius\",50738:\"AntiAliasStrength\",50739:\"ShadowScale\",50740:\"DNGPrivateData\",50741:\"MakerNoteSafety\",50752:\"RawImageSegmentation\",50778:\"CalibrationIlluminant1\",50779:\"CalibrationIlluminant2\",50780:\"BestQualityScale\",50781:\"RawDataUniqueID\",50784:\"AliasLayerMetadata\",50827:\"OriginalRawFileName\",50828:\"OriginalRawFileData\",50829:\"ActiveArea\",50830:\"MaskedAreas\",50831:\"AsShotICCProfile\",50832:\"AsShotPreProfileMatrix\",50833:\"CurrentICCProfile\",50834:\"CurrentPreProfileMatrix\",50879:\"ColorimetricReference\",50898:\"PanasonicTitle\",50899:\"PanasonicTitle2\",50931:\"CameraCalibrationSig\",50932:\"ProfileCalibrationSig\",50933:\"ProfileIFD\",50934:\"AsShotProfileName\",50935:\"NoiseReductionApplied\",50936:\"ProfileName\",50937:\"ProfileHueSatMapDims\",50938:\"ProfileHueSatMapData1\",50939:\"ProfileHueSatMapData2\",50940:\"ProfileToneCurve\",50941:\"ProfileEmbedPolicy\",50942:\"ProfileCopyright\",50964:\"ForwardMatrix1\",50965:\"ForwardMatrix2\",50966:\"PreviewApplicationName\",50967:\"PreviewApplicationVersion\",50968:\"PreviewSettingsName\",50969:\"PreviewSettingsDigest\",50970:\"PreviewColorSpace\",50971:\"PreviewDateTime\",50972:\"RawImageDigest\",50973:\"OriginalRawFileDigest\",50974:\"SubTileBlockSize\",50975:\"RowInterleaveFactor\",50981:\"ProfileLookTableDims\",50982:\"ProfileLookTableData\",51008:\"OpcodeList1\",51009:\"OpcodeList2\",51022:\"OpcodeList3\",51041:\"NoiseProfile\",51043:\"TimeCodes\",51044:\"FrameRate\",51058:\"TStop\",51081:\"ReelName\",51089:\"OriginalDefaultFinalSize\",51090:\"OriginalBestQualitySize\",51091:\"OriginalDefaultCropSize\",51105:\"CameraLabel\",51107:\"ProfileHueSatMapEncoding\",51108:\"ProfileLookTableEncoding\",51109:\"BaselineExposureOffset\",51110:\"DefaultBlackRender\",51111:\"NewRawImageDigest\",51112:\"RawToPreviewGain\",51125:\"DefaultUserCrop\",59932:\"Padding\",59933:\"OffsetSchema\",65e3:\"OwnerName\",65001:\"SerialNumber\",65002:\"Lens\",65024:\"KDC_IFD\",65100:\"RawFile\",65101:\"Converter\",65102:\"WhiteBalance\",65105:\"Exposure\",65106:\"Shadows\",65107:\"Brightness\",65108:\"Contrast\",65109:\"Saturation\",65110:\"Sharpness\",65111:\"Smoothness\",65112:\"MoireFilter\"},gps:{0:\"GPSVersionID\",1:\"GPSLatitudeRef\",2:\"GPSLatitude\",3:\"GPSLongitudeRef\",4:\"GPSLongitude\",5:\"GPSAltitudeRef\",6:\"GPSAltitude\",7:\"GPSTimeStamp\",8:\"GPSSatellites\",9:\"GPSStatus\",10:\"GPSMeasureMode\",11:\"GPSDOP\",12:\"GPSSpeedRef\",13:\"GPSSpeed\",14:\"GPSTrackRef\",15:\"GPSTrack\",16:\"GPSImgDirectionRef\",17:\"GPSImgDirection\",18:\"GPSMapDatum\",19:\"GPSDestLatitudeRef\",20:\"GPSDestLatitude\",21:\"GPSDestLongitudeRef\",22:\"GPSDestLongitude\",23:\"GPSDestBearingRef\",24:\"GPSDestBearing\",25:\"GPSDestDistanceRef\",26:\"GPSDestDistance\",27:\"GPSProcessingMethod\",28:\"GPSAreaInformation\",29:\"GPSDateStamp\",30:\"GPSDifferential\",31:\"GPSHPositioningError\"}}},function(t,e){function n(t,e,n,r,i,o){this.global=i,e=e||0,n=n||t.byteLength-e,this.arrayBuffer=t.slice(e,e+n),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(r),this.offset=0,this.parentOffset=(o||0)+e}n.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new n(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=n},function(t,e){function n(t,e,n,r){this.buffer=t,this.offset=e||0,n=\"number\"==typeof n?n:t.length,this.endPosition=this.offset+n,this.setBigEndian(r)}n.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString(\"utf8\",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e=\"number\"==typeof e?e:this.endPosition-(this.offset+t),new n(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=n},function(t,e,n){(function(e){function n(t){Math.round;var n,r,i,o,a,s=Math.floor,u=new Array(64),l=new Array(64),c=new Array(64),h=new Array(64),f=new Array(65535),d=new Array(65535),p=new Array(64),m=new Array(64),v=[],g=0,y=7,b=new Array(64),_=new Array(64),w=new Array(64),x=new Array(256),k=new Array(2048),S=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],C=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],E=[0,1,2,3,4,5,6,7,8,9,10,11],D=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],A=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],M=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],I=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function P(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function F(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(g|=1<<y),n--,--y<0&&(255==g?(j(255),j(0)):j(g),y=7,g=0)}function j(t){v.push(t)}function N(t){j(t>>8&255),j(255&t)}function L(t,e,n,r,i){for(var o,a=i[0],s=i[240],u=function(t,e){var n,r,i,o,a,s,u,l,c,h,f=0;for(c=0;c<8;++c){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],u=t[f+6];var d=n+(l=t[f+7]),m=n-l,v=r+u,g=r-u,y=i+s,b=i-s,_=o+a,w=o-a,x=d+_,k=d-_,S=v+y,C=v-y;t[f]=x+S,t[f+4]=x-S;var E=.707106781*(C+k);t[f+2]=k+E,t[f+6]=k-E;var D=.382683433*((x=w+b)-(C=g+m)),A=.5411961*x+D,O=1.306562965*C+D,M=.707106781*(S=b+g),T=m+M,I=m-M;t[f+5]=I+A,t[f+3]=I-A,t[f+1]=T+O,t[f+7]=T-O,f+=8}for(f=0,c=0;c<8;++c){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],u=t[f+48];var P=n+(l=t[f+56]),F=n-l,j=r+u,N=r-u,L=i+s,B=i-s,$=o+a,z=o-a,R=P+$,U=P-$,V=j+L,H=j-L;t[f]=R+V,t[f+32]=R-V;var G=.707106781*(H+U);t[f+16]=U+G,t[f+48]=U-G;var q=.382683433*((R=z+B)-(H=N+F)),W=.5411961*R+q,Y=1.306562965*H+q,Z=.707106781*(V=B+N),K=F+Z,X=F-Z;t[f+40]=X+W,t[f+24]=X-W,t[f+8]=K+Y,t[f+56]=K-Y,f++}for(c=0;c<64;++c)h=t[c]*e[c],p[c]=h>0?h+.5|0:h-.5|0;return p}(t,e),l=0;l<64;++l)m[S[l]]=u[l];var c=m[0]-n;n=m[0],0==c?F(r[0]):(F(r[d[o=32767+c]]),F(f[o]));for(var h=63;h>0&&0==m[h];h--);if(0==h)return F(a),n;for(var v,g=1;g<=h;){for(var y=g;0==m[g]&&g<=h;++g);var b=g-y;if(b>=16){v=b>>4;for(var _=1;_<=v;++_)F(s);b&=15}o=32767+m[g],F(i[(b<<4)+d[o]]),F(f[o]),g++}return 63!=h&&F(a),n}function B(t){if(t<=0&&(t=1),t>100&&(t=100),a!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=s((e[n]*t+50)/100);r<1?r=1:r>255&&(r=255),u[S[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var a=s((i[o]*t+50)/100);a<1?a=1:a>255&&(a=255),l[S[o]]=a}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var m=0;m<8;m++)c[d]=1/(u[S[d]]*f[p]*f[m]*8),h[d]=1/(l[S[d]]*f[p]*f[m]*8),d++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t}}this.encode=function(t,a){var s;(new Date).getTime();a&&B(a),v=new Array,g=0,y=7,N(65496),N(65504),N(16),j(74),j(70),j(73),j(70),j(0),j(1),j(1),j(0),N(1),N(1),j(0),j(0),void 0!==(s=t.comments)&&s.constructor===Array&&s.forEach((function(t){if(\"string\"==typeof t){N(65534);var e,n=t.length;for(N(n+2),e=0;e<n;e++)j(t.charCodeAt(e))}})),function(t){if(t){N(65505),69===t[0]&&120===t[1]&&105===t[2]&&102===t[3]?N(t.length+2):(N(t.length+5+2),j(69),j(120),j(105),j(102),j(0));for(var e=0;e<t.length;e++)j(t[e])}}(t.exifBuffer),function(){N(65499),N(132),j(0);for(var t=0;t<64;t++)j(u[t]);j(1);for(var e=0;e<64;e++)j(l[e])}(),function(t,e){N(65472),N(17),j(8),N(e),N(t),j(3),j(1),j(17),j(0),j(2),j(17),j(1),j(3),j(17),j(1)}(t.width,t.height),function(){N(65476),N(418),j(0);for(var t=0;t<16;t++)j(C[t+1]);for(var e=0;e<=11;e++)j(E[e]);j(16);for(var n=0;n<16;n++)j(D[n+1]);for(var r=0;r<=161;r++)j(A[r]);j(1);for(var i=0;i<16;i++)j(O[i+1]);for(var o=0;o<=11;o++)j(M[o]);j(17);for(var a=0;a<16;a++)j(T[a+1]);for(var s=0;s<=161;s++)j(I[s])}(),N(65498),N(12),j(3),j(1),j(0),j(2),j(17),j(3),j(17),j(0),j(63),j(0);var f=0,d=0,p=0;g=0,y=7,this.encode.displayName=\"_encode_\";for(var m,x,S,P,$,z,R,U,V,H=t.data,G=t.width,q=t.height,W=4*G,Y=0;Y<q;){for(m=0;m<W;){for(z=$=W*Y+m,R=-1,U=0,V=0;V<64;V++)z=$+(U=V>>3)*W+(R=4*(7&V)),Y+U>=q&&(z-=W*(Y+1+U-q)),m+R>=W&&(z-=m+R-W+4),x=H[z++],S=H[z++],P=H[z++],b[V]=(k[x]+k[S+256|0]+k[P+512|0]>>16)-128,_[V]=(k[x+768|0]+k[S+1024|0]+k[P+1280|0]>>16)-128,w[V]=(k[x+1280|0]+k[S+1536|0]+k[P+1792|0]>>16)-128;f=L(b,c,f,n,i),d=L(_,h,d,r,o),p=L(w,h,p,r,o),m+=32}Y+=8}if(y>=0){var Z=[];Z[1]=y+1,Z[0]=(1<<y+1)-1,F(Z)}return N(65497),e.from(v)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),n=P(C,E),r=P(O,M),i=P(D,A),o=P(T,I),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)d[32767+r]=n,f[32767+r]=[],f[32767+r][1]=n,f[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)d[32767+i]=n,f[32767+i]=[],f[32767+i][1]=n,f[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)k[t]=19595*t,k[t+256|0]=38470*t,k[t+512|0]=7471*t+32768,k[t+768|0]=-11059*t,k[t+1024|0]=-21709*t,k[t+1280|0]=32768*t+8421375,k[t+1536|0]=-27439*t,k[t+1792|0]=-5329*t}(),B(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new n(e).encode(t,e),width:t.width,height:t.height}}}).call(this,n(2).Buffer)},function(t,e,n){(function(e){function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e,n){var r;return r=function(t,e){if(\"object\"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=o(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==o(r)?r:r+\"\")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}var a=function(){\"use strict\";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,n=799,r=3406,i=2276,a=1567,s=3784,u=5793,l=2896;function c(){}function h(t,e){for(var n,r,i=0,o=[],a=16;a>0&&!t[a-1];)a--;o.push({children:[],index:0});var s,u=o[0];for(n=0;n<a;n++){for(r=0;r<t[n];r++){for((u=o.pop()).children[u.index]=e[i];u.index>0;){if(0===o.length)throw new Error(\"Could not recreate Huffman Table\");u=o.pop()}for(u.index++,o.push(u);o.length<=n;)o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}n+1<a&&(o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return o[0].children}function f(e,n,r,i,a,s,u,l,c,h){r.precision,r.samplesPerLine,r.scanLines;var f=r.mcusPerLine,d=r.progressive,p=(r.maxH,r.maxV,n),m=0,v=0;function g(){if(v>0)return v--,m>>v&1;if(255==(m=e[n++])){var t=e[n++];if(t)throw new Error(\"unexpected marker: \"+(m<<8|t).toString(16))}return v=7,m>>>7}function y(t){for(var e,n=t;null!==(e=g());){if(\"number\"==typeof(n=n[e]))return n;if(\"object\"!==o(n))throw new Error(\"invalid huffman sequence\")}return null}function b(t){for(var e=0;t>0;){var n=g();if(null===n)return;e=e<<1|n,t--}return e}function _(t){var e=b(t);return e>=1<<t-1?e:e+(-1<<t)+1}var w=0;var x,k=0;function S(t,e,n,r,i){var o=n%f,a=(n/f|0)*t.v+r,s=o*t.h+i;void 0===t.blocks[a]&&h.tolerantDecoding||e(t,t.blocks[a][s])}function C(t,e,n){var r=n/t.blocksPerLine|0,i=n%t.blocksPerLine;void 0===t.blocks[r]&&h.tolerantDecoding||e(t,t.blocks[r][i])}var E,D,A,O,M,T,I=i.length;T=d?0===s?0===l?function(t,e){var n=y(t.huffmanTableDC),r=0===n?0:_(n)<<c;e[0]=t.pred+=r}:function(t,e){e[0]|=g()<<c}:0===l?function(e,n){if(w>0)w--;else for(var r=s,i=u;r<=i;){var o=y(e.huffmanTableAC),a=15&o,l=o>>4;if(0!==a)n[t[r+=l]]=_(a)*(1<<c),r++;else{if(l<15){w=b(l)+(1<<l)-1;break}r+=16}}}:function(e,n){for(var r=s,i=u,o=0;r<=i;){var a=t[r],l=n[a]<0?-1:1;switch(k){case 0:var h=y(e.huffmanTableAC),f=15&h;if(o=h>>4,0===f)o<15?(w=b(o)+(1<<o),k=4):(o=16,k=1);else{if(1!==f)throw new Error(\"invalid ACn encoding\");x=_(f),k=o?2:3}continue;case 1:case 2:n[a]?n[a]+=(g()<<c)*l:0==--o&&(k=2==k?3:0);break;case 3:n[a]?n[a]+=(g()<<c)*l:(n[a]=x<<c,k=0);break;case 4:n[a]&&(n[a]+=(g()<<c)*l)}r++}4===k&&0==--w&&(k=0)}:function(e,n){var r=y(e.huffmanTableDC),i=0===r?0:_(r);n[0]=e.pred+=i;for(var o=1;o<64;){var a=y(e.huffmanTableAC),s=15&a,u=a>>4;if(0!==s)n[t[o+=u]]=_(s),o++;else{if(u<15)break;o+=16}}};var P,F,j,N,L=0;for(F=1==I?i[0].blocksPerLine*i[0].blocksPerColumn:f*r.mcusPerColumn,a||(a=F);L<F;){for(D=0;D<I;D++)i[D].pred=0;if(w=0,1==I)for(E=i[0],M=0;M<a;M++)C(E,T,L),L++;else for(M=0;M<a;M++){for(D=0;D<I;D++)for(j=(E=i[D]).h,N=E.v,A=0;A<N;A++)for(O=0;O<j;O++)S(E,T,L,A,O);if(++L===F)break}if(L===F)do{if(255===e[n]&&0!==e[n+1])break;n+=1}while(n<e.length-2);if(v=0,(P=e[n]<<8|e[n+1])<65280)throw new Error(\"marker was not found\");if(!(P>=65488&&P<=65495))break;n+=2}return n-p}function d(t,o){var c,h,f=[],d=o.blocksPerLine,p=o.blocksPerColumn,m=d<<3,v=new Int32Array(64),y=new Uint8Array(64);function b(t,c,h){var f,d,p,m,v,g,y,b,_,w,x=o.quantizationTable,k=h;for(w=0;w<64;w++)k[w]=t[w]*x[w];for(w=0;w<8;++w){var S=8*w;0!=k[1+S]||0!=k[2+S]||0!=k[3+S]||0!=k[4+S]||0!=k[5+S]||0!=k[6+S]||0!=k[7+S]?(f=u*k[0+S]+128>>8,d=u*k[4+S]+128>>8,p=k[2+S],m=k[6+S],v=l*(k[1+S]-k[7+S])+128>>8,b=l*(k[1+S]+k[7+S])+128>>8,g=k[3+S]<<4,y=k[5+S]<<4,_=f-d+1>>1,f=f+d+1>>1,d=_,_=p*s+m*a+128>>8,p=p*a-m*s+128>>8,m=_,_=v-y+1>>1,v=v+y+1>>1,y=_,_=b+g+1>>1,g=b-g+1>>1,b=_,_=f-m+1>>1,f=f+m+1>>1,m=_,_=d-p+1>>1,d=d+p+1>>1,p=_,_=v*i+b*r+2048>>12,v=v*r-b*i+2048>>12,b=_,_=g*n+y*e+2048>>12,g=g*e-y*n+2048>>12,y=_,k[0+S]=f+b,k[7+S]=f-b,k[1+S]=d+y,k[6+S]=d-y,k[2+S]=p+g,k[5+S]=p-g,k[3+S]=m+v,k[4+S]=m-v):(_=u*k[0+S]+512>>10,k[0+S]=_,k[1+S]=_,k[2+S]=_,k[3+S]=_,k[4+S]=_,k[5+S]=_,k[6+S]=_,k[7+S]=_)}for(w=0;w<8;++w){var C=w;0!=k[8+C]||0!=k[16+C]||0!=k[24+C]||0!=k[32+C]||0!=k[40+C]||0!=k[48+C]||0!=k[56+C]?(f=u*k[0+C]+2048>>12,d=u*k[32+C]+2048>>12,p=k[16+C],m=k[48+C],v=l*(k[8+C]-k[56+C])+2048>>12,b=l*(k[8+C]+k[56+C])+2048>>12,g=k[24+C],y=k[40+C],_=f-d+1>>1,f=f+d+1>>1,d=_,_=p*s+m*a+2048>>12,p=p*a-m*s+2048>>12,m=_,_=v-y+1>>1,v=v+y+1>>1,y=_,_=b+g+1>>1,g=b-g+1>>1,b=_,_=f-m+1>>1,f=f+m+1>>1,m=_,_=d-p+1>>1,d=d+p+1>>1,p=_,_=v*i+b*r+2048>>12,v=v*r-b*i+2048>>12,b=_,_=g*n+y*e+2048>>12,g=g*e-y*n+2048>>12,y=_,k[0+C]=f+b,k[56+C]=f-b,k[8+C]=d+y,k[48+C]=d-y,k[16+C]=p+g,k[40+C]=p-g,k[24+C]=m+v,k[32+C]=m-v):(_=u*h[w+0]+8192>>14,k[0+C]=_,k[8+C]=_,k[16+C]=_,k[24+C]=_,k[32+C]=_,k[40+C]=_,k[48+C]=_,k[56+C]=_)}for(w=0;w<64;++w){var E=128+(k[w]+8>>4);c[w]=E<0?0:E>255?255:E}}g(m*p*8);for(var _=0;_<p;_++){var w=_<<3;for(c=0;c<8;c++)f.push(new Uint8Array(m));for(var x=0;x<d;x++){b(o.blocks[_][x],y,v);var k=0,S=x<<3;for(h=0;h<8;h++){var C=f[w+h];for(c=0;c<8;c++)C[S+c]=y[k++]}}}return f}function p(t){return t<0?0:t>255?255:t}c.prototype={load:function(t){var e=new XMLHttpRequest;e.open(\"GET\",t,!0),e.responseType=\"arraybuffer\",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var n=1e3*this.opts.maxResolutionInMP*1e3,r=0;e.length;function i(){var t=e[r]<<8|e[r+1];return r+=2,t}function o(){var t=i(),n=e.subarray(r,r+t-2);return r+=n.length,n}function a(t){var e,n,r=1,i=1;for(n in t.components)t.components.hasOwnProperty(n)&&(r<(e=t.components[n]).h&&(r=e.h),i<e.v&&(i=e.v));var o=Math.ceil(t.samplesPerLine/8/r),a=Math.ceil(t.scanLines/8/i);for(n in t.components)if(t.components.hasOwnProperty(n)){e=t.components[n];var s=Math.ceil(Math.ceil(t.samplesPerLine/8)*e.h/r),u=Math.ceil(Math.ceil(t.scanLines/8)*e.v/i),l=o*e.h,c=a*e.v,h=[];g(256*(c*l));for(var f=0;f<c;f++){for(var d=[],p=0;p<l;p++)d.push(new Int32Array(64));h.push(d)}e.blocksPerLine=s,e.blocksPerColumn=u,e.blocks=h}t.maxH=r,t.maxV=i,t.mcusPerLine=o,t.mcusPerColumn=a}var s,u,l=null,c=null,p=[],m=[],v=[],y=[],b=i(),_=-1;if(this.comments=[],65496!=b)throw new Error(\"SOI not found\");for(b=i();65497!=b;){switch(b){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var w=o();if(65534===b){var x=String.fromCharCode.apply(null,w);this.comments.push(x)}65504===b&&74===w[0]&&70===w[1]&&73===w[2]&&70===w[3]&&0===w[4]&&(l={version:{major:w[5],minor:w[6]},densityUnits:w[7],xDensity:w[8]<<8|w[9],yDensity:w[10]<<8|w[11],thumbWidth:w[12],thumbHeight:w[13],thumbData:w.subarray(14,14+3*w[12]*w[13])}),65505===b&&69===w[0]&&120===w[1]&&105===w[2]&&102===w[3]&&0===w[4]&&(this.exifBuffer=w.subarray(5,w.length)),65518===b&&65===w[0]&&100===w[1]&&111===w[2]&&98===w[3]&&101===w[4]&&0===w[5]&&(c={version:w[6],flags0:w[7]<<8|w[8],flags1:w[9]<<8|w[10],transformCode:w[11]});break;case 65499:for(var k=i()+r-2;r<k;){var S=e[r++];g(256);var C=new Int32Array(64);if(S>>4){if(S>>4!=1)throw new Error(\"DQT: invalid table spec\");for(Y=0;Y<64;Y++){C[t[Y]]=i()}}else for(Y=0;Y<64;Y++){C[t[Y]]=e[r++]}p[15&S]=C}break;case 65472:case 65473:case 65474:i(),(s={}).extended=65473===b,s.progressive=65474===b,s.precision=e[r++],s.scanLines=i(),s.samplesPerLine=i(),s.components={},s.componentsOrder=[];var E=s.scanLines*s.samplesPerLine;if(E>n){var D=Math.ceil((E-n)/1e6);throw new Error(\"maxResolutionInMP limit exceeded by \".concat(D,\"MP\"))}var A,O=e[r++];for(q=0;q<O;q++){A=e[r];var M=e[r+1]>>4,T=15&e[r+1],I=e[r+2];if(M<=0||T<=0)throw new Error(\"Invalid sampling factor, expected values above 0\");s.componentsOrder.push(A),s.components[A]={h:M,v:T,quantizationIdx:I},r+=3}a(s),m.push(s);break;case 65476:var P=i();for(q=2;q<P;){var F=e[r++],j=new Uint8Array(16),N=0;for(Y=0;Y<16;Y++,r++)N+=j[Y]=e[r];g(16+N);var L=new Uint8Array(N);for(Y=0;Y<N;Y++,r++)L[Y]=e[r];q+=17+N,(F>>4?v:y)[15&F]=h(j,L)}break;case 65501:i(),u=i();break;case 65500:i(),i();break;case 65498:i();var B=e[r++],$=[];for(q=0;q<B;q++){Z=s.components[e[r++]];var z=e[r++];Z.huffmanTableDC=y[z>>4],Z.huffmanTableAC=v[15&z],$.push(Z)}var R=e[r++],U=e[r++],V=e[r++],H=f(e,r,s,$,u,R,U,V>>4,15&V,this.opts);r+=H;break;case 65535:255!==e[r]&&r--;break;default:if(255==e[r-3]&&e[r-2]>=192&&e[r-2]<=254){r-=3;break}if(224===b||225==b){if(-1!==_)throw new Error(\"first unknown JPEG marker at offset \".concat(_.toString(16),\", second unknown JPEG marker \").concat(b.toString(16),\" at offset \").concat((r-1).toString(16)));_=r-1;var G=i();if(255===e[r+G-2]){r+=G-2;break}}throw new Error(\"unknown JPEG marker \"+b.toString(16))}b=i()}if(1!=m.length)throw new Error(\"only single frame JPEGs supported\");for(var q=0;q<m.length;q++){var W=m[q].components;for(var Y in W)W[Y].quantizationTable=p[W[Y].quantizationIdx],delete W[Y].quantizationIdx}this.width=s.samplesPerLine,this.height=s.scanLines,this.jfif=l,this.adobe=c,this.components=[];for(q=0;q<s.componentsOrder.length;q++){var Z=s.components[s.componentsOrder[q]];this.components.push({lines:d(0,Z),scaleX:Z.h/s.maxH,scaleY:Z.v/s.maxV})}},getData:function(t,e){var n,r,i,o,a,s,u,l,c,h,f,d,m,v,y,b,_,w,x,k,S,C=this.width/t,E=this.height/e,D=0,A=t*e*this.components.length;g(A);var O=new Uint8Array(A);switch(this.components.length){case 1:for(n=this.components[0],h=0;h<e;h++)for(a=n.lines[0|h*n.scaleY*E],c=0;c<t;c++)f=a[0|c*n.scaleX*C],O[D++]=f;break;case 2:for(n=this.components[0],r=this.components[1],h=0;h<e;h++)for(a=n.lines[0|h*n.scaleY*E],s=r.lines[0|h*r.scaleY*E],c=0;c<t;c++)f=a[0|c*n.scaleX*C],O[D++]=f,f=s[0|c*r.scaleX*C],O[D++]=f;break;case 3:for(S=!0,this.adobe&&this.adobe.transformCode?S=!0:void 0!==this.opts.colorTransform&&(S=!!this.opts.colorTransform),n=this.components[0],r=this.components[1],i=this.components[2],h=0;h<e;h++)for(a=n.lines[0|h*n.scaleY*E],s=r.lines[0|h*r.scaleY*E],u=i.lines[0|h*i.scaleY*E],c=0;c<t;c++)S?(f=a[0|c*n.scaleX*C],d=s[0|c*r.scaleX*C],w=p(f+1.402*((m=u[0|c*i.scaleX*C])-128)),x=p(f-.3441363*(d-128)-.71413636*(m-128)),k=p(f+1.772*(d-128))):(w=a[0|c*n.scaleX*C],x=s[0|c*r.scaleX*C],k=u[0|c*i.scaleX*C]),O[D++]=w,O[D++]=x,O[D++]=k;break;case 4:if(!this.adobe)throw new Error(\"Unsupported color mode (4 components)\");for(S=!1,this.adobe&&this.adobe.transformCode?S=!0:void 0!==this.opts.colorTransform&&(S=!!this.opts.colorTransform),n=this.components[0],r=this.components[1],i=this.components[2],o=this.components[3],h=0;h<e;h++)for(a=n.lines[0|h*n.scaleY*E],s=r.lines[0|h*r.scaleY*E],u=i.lines[0|h*i.scaleY*E],l=o.lines[0|h*o.scaleY*E],c=0;c<t;c++)S?(f=a[0|c*n.scaleX*C],d=s[0|c*r.scaleX*C],m=u[0|c*i.scaleX*C],v=l[0|c*o.scaleX*C],y=255-p(f+1.402*(m-128)),b=255-p(f-.3441363*(d-128)-.71413636*(m-128)),_=255-p(f+1.772*(d-128))):(y=a[0|c*n.scaleX*C],b=s[0|c*r.scaleX*C],_=u[0|c*i.scaleX*C],v=l[0|c*o.scaleX*C]),O[D++]=255-y,O[D++]=255-b,O[D++]=255-_,O[D++]=255-v;break;default:throw new Error(\"Unsupported color mode\")}return O},copyToImageData:function(t,e){var n,r,i,o,a,s,u,l,c,h=t.width,f=t.height,d=t.data,m=this.getData(h,f),v=0,g=0;switch(this.components.length){case 1:for(r=0;r<f;r++)for(n=0;n<h;n++)i=m[v++],d[g++]=i,d[g++]=i,d[g++]=i,e&&(d[g++]=255);break;case 3:for(r=0;r<f;r++)for(n=0;n<h;n++)u=m[v++],l=m[v++],c=m[v++],d[g++]=u,d[g++]=l,d[g++]=c,e&&(d[g++]=255);break;case 4:for(r=0;r<f;r++)for(n=0;n<h;n++)a=m[v++],s=m[v++],i=m[v++],u=255-p(a*(1-(o=m[v++])/255)+o),l=255-p(s*(1-o/255)+o),c=255-p(i*(1-o/255)+o),d[g++]=u,d[g++]=l,d[g++]=c,e&&(d[g++]=255);break;default:throw new Error(\"Unsupported color mode\")}}};var m=0,v=0;function g(){var t=m+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0);if(t>v){var e=Math.ceil((t-v)/1024/1024);throw new Error(\"maxMemoryUsageInMB limit exceeded by at least \".concat(e,\"MB\"))}m=t}return c.resetMaxMemoryUsage=function(t){m=0,v=t},c.getBytesAllocated=function(){return m},c.requestMemoryAllocation=g,c}();t.exports=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r(r({},{colorTransform:void 0,useTArray:!1,formatAsRGBA:!0,tolerantDecoding:!0,maxResolutionInMP:100,maxMemoryUsageInMB:512}),n),o=new Uint8Array(t),s=new a;s.opts=i,a.resetMaxMemoryUsage(1024*i.maxMemoryUsageInMB*1024),s.parse(o);var u=i.formatAsRGBA?4:3,l=s.width*s.height*u;try{a.requestMemoryAllocation(l);var c={width:s.width,height:s.height,exifBuffer:s.exifBuffer,data:i.useTArray?new Uint8Array(l):e.alloc(l)};s.comments.length>0&&(c.comments=s.comments)}catch(t){if(t instanceof RangeError)throw new Error(\"Could not allocate enough memory for the image. Required: \"+l);if(t instanceof ReferenceError&&\"Buffer is not defined\"===t.message)throw new Error(\"Buffer is not globally defined in this environment. Consider setting useTArray to true\");throw t}return s.copyToImageData(c,i.formatAsRGBA),c}}).call(this,n(2).Buffer)},function(t,e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}t.exports=function(t){return t&&\"object\"===n(t)&&\"function\"==typeof t.copy&&\"function\"==typeof t.fill&&\"function\"==typeof t.readUInt8}},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return\"[object Array]\"==n.call(t)}},function(t,e){},function(t,e,n){\"use strict\";var r=n(51).Buffer,i=n(149);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return\"\";for(var e=this.head,n=\"\"+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);for(var e,n,i,o=r.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,n=o,i=s,e.copy(n,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+\" \"+t})},function(t,e){},function(t,e,n){(function(t,e){!function(t,n){\"use strict\";if(!t.setImmediate){var r,i,o,a,s,u=1,l={},c=!1,h=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,\"[object process]\"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage(\"\",\"*\"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},r=function(t){o.port2.postMessage(t)}):h&&\"onreadystatechange\"in h.createElement(\"script\")?(i=h.documentElement,r=function(t){var e=h.createElement(\"script\");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(p,0,t)}:(a=\"setImmediate$\"+Math.random()+\"$\",s=function(e){e.source===t&&\"string\"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener(\"message\",s,!1):t.attachEvent(\"onmessage\",s),r=function(e){t.postMessage(a+e,\"*\")}),f.setImmediate=function(t){\"function\"!=typeof t&&(t=new Function(\"\"+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return l[u]=i,r(u),u++},f.clearImmediate=d}function d(t){delete l[t]}function p(t){if(c)setTimeout(p,0,t);else{var e=l[t];if(e){c=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{d(t),c=!1}}}}}(\"undefined\"==typeof self?void 0===t?this:t:self)}).call(this,n(10),n(7))},function(t,e,n){(function(e){function n(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&\"true\"===String(n).toLowerCase()}t.exports=function(t,e){if(n(\"noDeprecation\"))return t;var r=!1;return function(){if(!r){if(n(\"throwDeprecation\"))throw new Error(e);n(\"traceDeprecation\")&&console.trace(e),r=!0}return t.apply(this,arguments)}}}).call(this,n(10))},function(t,e,n){var r=n(2),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),o(i,a),a.from=function(t,e,n){if(\"number\"==typeof t)throw new TypeError(\"Argument must not be a number\");return i(t,e,n)},a.alloc=function(t,e,n){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");var r=i(t);return void 0!==e?\"string\"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return i(t)},a.allocUnsafeSlow=function(t){if(\"number\"!=typeof t)throw new TypeError(\"Argument must be a number\");return r.SlowBuffer(t)}},function(t,e,n){\"use strict\";t.exports=o;var r=n(74),i=Object.create(n(27));function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(24),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=n(52)},function(t,e,n){t.exports=n(18)},function(t,e,n){t.exports=n(50).Transform},function(t,e,n){t.exports=n(50).PassThrough},function(t,e,n){\"use strict\";var r=n(14),i=n(28),o=n(81),a=n(186),s=n(85),u=n(87),l=n(88),c=t.exports=function(t){o.call(this),this._parser=new s(t,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,\"gamma\"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=t,this.writable=!0,this._parser.start()};r.inherits(c,o),c.prototype._handleError=function(t){this.emit(\"error\",t),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on(\"error\",(function(){}))),this.errord=!0},c.prototype._inflateData=function(t){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i.createInflate(),this._inflate.on(\"error\",this.emit.bind(this,\"error\")),this._filter.on(\"complete\",this._complete.bind(this)),this._inflate.pipe(this._filter);else{var e=(1+(this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3))*this._bitmapInfo.height,n=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:n});var r=e,o=this.emit.bind(this,\"error\");this._inflate.on(\"error\",(function(t){r&&o(t)})),this._filter.on(\"complete\",this._complete.bind(this));var a=this._filter.write.bind(this._filter);this._inflate.on(\"data\",(function(t){r&&(t.length>r&&(t=t.slice(0,r)),r-=t.length,a(t))})),this._inflate.on(\"end\",this._filter.end.bind(this._filter))}this._inflate.write(t)},c.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new a(this._bitmapInfo)},c.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},c.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},c.prototype._simpleTransparency=function(){this._metaData.alpha=!0},c.prototype._headersFinished=function(){this.emit(\"metadata\",this._metaData)},c.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit(\"error\",\"No Inflate block\"))},c.prototype._complete=function(t){if(!this.errord){var e;try{var n=u.dataToBitMap(t,this._bitmapInfo);e=l(n,this._bitmapInfo,this._options.skipRescale),n=null}catch(t){return void this._handleError(t)}this.emit(\"parsed\",e)}}},function(t,e,n){\"use strict\";(function(t,r){var i=n(53),o=n(178),a=n(179),s=n(182),u=n(185);for(var l in u)e[l]=u[l];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;function c(t){if(\"number\"!=typeof t||t<e.DEFLATE||t>e.UNZIP)throw new TypeError(\"Bad argument\");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}c.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,\"close before init\"),i(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||s.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},c.prototype.write=function(t,e,n,r,i,o,a){return this._write(!0,t,e,n,r,i,o,a)},c.prototype.writeSync=function(t,e,n,r,i,o,a){return this._write(!1,t,e,n,r,i,o,a)},c.prototype._write=function(n,o,a,s,u,l,c,h){if(i.equal(arguments.length,8),i(this.init_done,\"write before init\"),i(this.mode!==e.NONE,\"already finalized\"),i.equal(!1,this.write_in_progress,\"write already in progress\"),i.equal(!1,this.pending_close,\"close is pending\"),this.write_in_progress=!0,i.equal(!1,void 0===o,\"must provide flush value\"),this.write_in_progress=!0,o!==e.Z_NO_FLUSH&&o!==e.Z_PARTIAL_FLUSH&&o!==e.Z_SYNC_FLUSH&&o!==e.Z_FULL_FLUSH&&o!==e.Z_FINISH&&o!==e.Z_BLOCK)throw new Error(\"Invalid flush value\");if(null==a&&(a=t.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=h,this.strm.output=l,this.strm.next_out=c,this.flush=o,!n)return this._process(),this._checkError()?this._afterSync():void 0;var f=this;return r.nextTick((function(){f._process(),f._after()})),this},c.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},c.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error(\"invalid number of gzip magic number bytes read\")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error(\"Unknown mode \"+this.mode)}},c.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error(\"unexpected end of file\"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error(\"Missing dictionary\"):this._error(\"Bad dictionary\"),!1;default:return this._error(\"Zlib error\"),!1}return!0},c.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},c.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},c.prototype.init=function(t,n,r,o,a){i(4===arguments.length||5===arguments.length,\"init(windowBits, level, memLevel, strategy, [dictionary])\"),i(t>=8&&t<=15,\"invalid windowBits\"),i(n>=-1&&n<=9,\"invalid compression level\"),i(r>=1&&r<=9,\"invalid memlevel\"),i(o===e.Z_FILTERED||o===e.Z_HUFFMAN_ONLY||o===e.Z_RLE||o===e.Z_FIXED||o===e.Z_DEFAULT_STRATEGY,\"invalid strategy\"),this._init(n,t,r,o,a),this._setDictionary()},c.prototype.params=function(){throw new Error(\"deflateParams Not supported\")},c.prototype.reset=function(){this._reset(),this._setDictionary()},c.prototype._init=function(t,n,r,i,u){switch(this.level=t,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error(\"Unknown mode \"+this.mode)}this.err!==e.Z_OK&&this._error(\"Init error\"),this.dictionary=u,this.write_in_progress=!1,this.init_done=!0},c.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error(\"Failed to set dictionary\")}},c.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=a.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error(\"Failed to reset stream\")},e.Zlib=c}).call(this,n(2).Buffer,n(7))},function(t,e,n){\"use strict\";var r=n(161);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t=\"abcdefghijklmnopqrst\",e=t.split(\"\"),n={},r=0;r<e.length;++r)n[e[r]]=e[r];var i=Object.assign({},n),o=\"\";for(var a in i)o+=a;return t!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,\"xy\")}catch(e){return\"y\"===t[1]}return!1}()?r:Object.assign:r}},function(t,e,n){\"use strict\";var r=n(162),i=n(76)(),o=n(164),a=Object,s=o(\"Array.prototype.push\"),u=o(\"Object.prototype.propertyIsEnumerable\"),l=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError(\"target must be an object\");var n=a(t);if(1===arguments.length)return n;for(var o=1;o<arguments.length;++o){var c=a(arguments[o]),h=r(c),f=i&&(Object.getOwnPropertySymbols||l);if(f)for(var d=f(c),p=0;p<d.length;++p){var m=d[p];u(c,m)&&s(h,m)}for(var v=0;v<h.length;++v){var g=h[v];if(u(c,g)){var y=c[g];n[g]=y}}}return n}},function(t,e,n){\"use strict\";var r=Array.prototype.slice,i=n(75),o=Object.keys,a=o?function(t){return o(t)}:n(163),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?s(r.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=n(75),u=Object.prototype.propertyIsEnumerable,l=!u.call({toString:null},\"toString\"),c=u.call((function(){}),\"prototype\"),h=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],f=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if(\"undefined\"==typeof window)return!1;for(var t in window)try{if(!d[\"$\"+t]&&o.call(window,t)&&null!==window[t]&&\"object\"===r(window[t]))try{f(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();i=function(t){var e=null!==t&&\"object\"===r(t),n=\"[object Function]\"===a.call(t),i=s(t),u=e&&\"[object String]\"===a.call(t),d=[];if(!e&&!n&&!i)throw new TypeError(\"Object.keys called on a non-object\");var m=c&&n;if(u&&t.length>0&&!o.call(t,0))for(var v=0;v<t.length;++v)d.push(String(v));if(i&&t.length>0)for(var g=0;g<t.length;++g)d.push(String(g));else for(var y in t)m&&\"prototype\"===y||!o.call(t,y)||d.push(String(y));if(l)for(var b=function(t){if(\"undefined\"==typeof window||!p)return f(t);try{return f(t)}catch(t){return!1}}(t),_=0;_<h.length;++_)b&&\"constructor\"===h[_]||!o.call(t,h[_])||d.push(h[_]);return d}}t.exports=i},function(t,e,n){\"use strict\";var r=n(29),i=n(174),o=i(r(\"String.prototype.indexOf\"));t.exports=function(t,e){var n=r(t,!!e);return\"function\"==typeof n&&o(t,\".prototype.\")>-1?i(n):n}},function(t,e,n){\"use strict\";t.exports=Error},function(t,e,n){\"use strict\";t.exports=EvalError},function(t,e,n){\"use strict\";t.exports=RangeError},function(t,e,n){\"use strict\";t.exports=ReferenceError},function(t,e,n){\"use strict\";t.exports=URIError},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=\"undefined\"!=typeof Symbol&&Symbol,o=n(76);t.exports=function(){return\"function\"==typeof i&&(\"function\"==typeof Symbol&&(\"symbol\"===r(i(\"foo\"))&&(\"symbol\"===r(Symbol(\"bar\"))&&o())))}},function(t,e,n){\"use strict\";var r={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof i)}},function(t,e,n){\"use strict\";var r=Object.prototype.toString,i=Math.max,o=function(t,e){for(var n=[],r=0;r<t.length;r+=1)n[r]=t[r];for(var i=0;i<e.length;i+=1)n[i+t.length]=e[i];return n};t.exports=function(t){var e=this;if(\"function\"!=typeof e||\"[object Function]\"!==r.apply(e))throw new TypeError(\"Function.prototype.bind called on incompatible \"+e);for(var n,a=function(t,e){for(var n=[],r=e||0,i=0;r<t.length;r+=1,i+=1)n[i]=t[r];return n}(arguments,1),s=i(0,e.length-a.length),u=[],l=0;l<s;l++)u[l]=\"$\"+l;if(n=Function(\"binder\",\"return function (\"+function(t,e){for(var n=\"\",r=0;r<t.length;r+=1)n+=t[r],r+1<t.length&&(n+=e);return n}(u,\",\")+\"){ return binder.apply(this,arguments); }\")((function(){if(this instanceof n){var r=e.apply(this,o(a,arguments));return Object(r)===r?r:this}return e.apply(t,o(a,arguments))})),e.prototype){var c=function(){};c.prototype=e.prototype,n.prototype=new c,c.prototype=null}return n}},function(t,e,n){\"use strict\";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(54);t.exports=o.call(r,i)},function(t,e,n){\"use strict\";var r=n(54),i=n(29),o=n(175),a=n(40),s=i(\"%Function.prototype.apply%\"),u=i(\"%Function.prototype.call%\"),l=i(\"%Reflect.apply%\",!0)||r.call(u,s),c=n(55),h=i(\"%Math.max%\");t.exports=function(t){if(\"function\"!=typeof t)throw new a(\"a function is required\");var e=l(r,u,arguments);return o(e,1+h(0,t.length-(arguments.length-1)),!0)};var f=function(){return l(r,s,arguments)};c?c(t.exports,\"apply\",{value:f}):t.exports.apply=f},function(t,e,n){\"use strict\";var r=n(29),i=n(176),o=n(177)(),a=n(78),s=n(40),u=r(\"%Math.floor%\");t.exports=function(t,e){if(\"function\"!=typeof t)throw new s(\"`fn` is not a function\");if(\"number\"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new s(\"`length` must be a positive 32-bit integer\");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if(\"length\"in t&&a){var c=a(t,\"length\");c&&!c.configurable&&(r=!1),c&&!c.writable&&(l=!1)}return(r||l||!n)&&(o?i(t,\"length\",e,!0,!0):i(t,\"length\",e)),t}},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=n(55),o=n(77),a=n(40),s=n(78);t.exports=function(t,e,n){if(!t||\"object\"!==r(t)&&\"function\"!=typeof t)throw new a(\"`obj` must be an object or a function`\");if(\"string\"!=typeof e&&\"symbol\"!==r(e))throw new a(\"`property` must be a string or a symbol`\");if(arguments.length>3&&\"boolean\"!=typeof arguments[3]&&null!==arguments[3])throw new a(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&\"boolean\"!=typeof arguments[4]&&null!==arguments[4])throw new a(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&\"boolean\"!=typeof arguments[5]&&null!==arguments[5])throw new a(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&\"boolean\"!=typeof arguments[6])throw new a(\"`loose`, if provided, must be a boolean\");var u=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,h=arguments.length>6&&arguments[6],f=!!s&&s(t,e);if(i)i(t,e,{configurable:null===c&&f?f.configurable:!c,enumerable:null===u&&f?f.enumerable:!u,value:n,writable:null===l&&f?f.writable:!l});else{if(!h&&(u||l||c))throw new o(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\");t[e]=n}}},function(t,e,n){\"use strict\";var r=n(55),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],\"length\",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,n){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){\"use strict\";var r,i=n(41),o=n(180),a=n(79),s=n(80),u=n(181),l=0,c=4,h=0,f=-2,d=-1,p=4,m=2,v=8,g=9,y=286,b=30,_=19,w=2*y+1,x=15,k=3,S=258,C=S+k+1,E=42,D=103,A=113,O=666,M=1,T=2,I=3,P=4;function F(t,e){return t.msg=u[e],e}function j(t){return(t<<1)-(t>4?9:0)}function N(t){for(var e=t.length;--e>=0;)t[e]=0}function L(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function B(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,L(t.strm)}function $(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function R(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-C?t.strstart-(t.w_size-C):0,l=t.window,c=t.w_mask,h=t.prev,f=t.strstart+S,d=l[o+a-1],p=l[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(n=e)+a]===p&&l[n+a-1]===d&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&o<f);if(r=S-(f-o),o=f-S,r>a){if(t.match_start=e,a=r,r>=s)break;d=l[o+a-1],p=l[o+a]}}}while((e=h[e&c])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function U(t){var e,n,r,o,u,l,c,h,f,d,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-C)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=p?r-p:0}while(--n);e=n=p;do{r=t.prev[--e],t.prev[e]=r>=p?r-p:0}while(--n);o+=p}if(0===t.strm.avail_in)break;if(l=t.strm,c=t.window,h=t.strstart+t.lookahead,f=o,d=void 0,(d=l.avail_in)>f&&(d=f),n=0===d?0:(l.avail_in-=d,i.arraySet(c,l.input,l.next_in,d,h),1===l.state.wrap?l.adler=a(l.adler,c,d,h):2===l.state.wrap&&(l.adler=s(l.adler,c,d,h)),l.next_in+=d,l.total_in+=d,d),t.lookahead+=n,t.lookahead+t.insert>=k)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+k-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<k)););}while(t.lookahead<C&&0!==t.strm.avail_in)}function V(t,e){for(var n,r;;){if(t.lookahead<C){if(U(t),t.lookahead<C&&e===l)return M;if(0===t.lookahead)break}if(n=0,t.lookahead>=k&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-C&&(t.match_length=R(t,n)),t.match_length>=k)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-k),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=k){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(B(t,!1),0===t.strm.avail_out))return M}return t.insert=t.strstart<k-1?t.strstart:k-1,e===c?(B(t,!0),0===t.strm.avail_out?I:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?M:T}function H(t,e){for(var n,r,i;;){if(t.lookahead<C){if(U(t),t.lookahead<C&&e===l)return M;if(0===t.lookahead)break}if(n=0,t.lookahead>=k&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=k-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-C&&(t.match_length=R(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===k&&t.strstart-t.match_start>4096)&&(t.match_length=k-1)),t.prev_length>=k&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-k,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-k),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=k-1,t.strstart++,r&&(B(t,!1),0===t.strm.avail_out))return M}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&B(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return M}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<k-1?t.strstart:k-1,e===c?(B(t,!0),0===t.strm.avail_out?I:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?M:T}function G(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function q(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*w),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*_+1)),N(this.dyn_ltree),N(this.dyn_dtree),N(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*y+1),N(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),N(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?E:A,t.adler=2===e.wrap?0:1,e.last_flush=l,o._tr_init(e),h):F(t,f)}function Y(t){var e,n=W(t);return n===h&&((e=t.state).window_size=2*e.w_size,N(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=k-1,e.match_available=0,e.ins_h=0),n}function Z(t,e,n,r,o,a){if(!t)return f;var s=1;if(e===d&&(e=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>g||n!==v||r<8||r>15||e<0||e>9||a<0||a>p)return F(t,f);8===r&&(r=9);var u=new q;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+k-1)/k),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=n,Y(t)}r=[new G(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(U(t),0===t.lookahead&&e===l)return M;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,B(t,!1),0===t.strm.avail_out))return M;if(t.strstart-t.block_start>=t.w_size-C&&(B(t,!1),0===t.strm.avail_out))return M}return t.insert=0,e===c?(B(t,!0),0===t.strm.avail_out?I:P):(t.strstart>t.block_start&&(B(t,!1),t.strm.avail_out),M)})),new G(4,4,8,4,V),new G(4,5,16,8,V),new G(4,6,32,32,V),new G(4,4,16,16,H),new G(8,16,32,32,H),new G(8,16,128,128,H),new G(8,32,128,256,H),new G(32,128,258,1024,H),new G(32,258,258,4096,H)],e.deflateInit=function(t,e){return Z(t,e,v,15,8,0)},e.deflateInit2=Z,e.deflateReset=Y,e.deflateResetKeep=W,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?f:(t.state.gzhead=e,h):f},e.deflate=function(t,e){var n,i,a,u;if(!t||!t.state||e>5||e<0)return t?F(t,f):f;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===O&&e!==c)return F(t,0===t.avail_out?-5:f);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===E)if(2===i.wrap)t.adler=0,$(i,31),$(i,139),$(i,8),i.gzhead?($(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),$(i,255&i.gzhead.time),$(i,i.gzhead.time>>8&255),$(i,i.gzhead.time>>16&255),$(i,i.gzhead.time>>24&255),$(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),$(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&($(i,255&i.gzhead.extra.length),$(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):($(i,0),$(i,0),$(i,0),$(i,0),$(i,0),$(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),$(i,3),i.status=A);else{var d=v+(i.w_bits-8<<4)<<8;d|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=A,z(i,d),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),L(t),a=i.pending,i.pending!==i.pending_buf_size));)$(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),L(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,$(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),L(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,$(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=D)}else i.status=D;if(i.status===D&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&L(t),i.pending+2<=i.pending_buf_size&&($(i,255&t.adler),$(i,t.adler>>8&255),t.adler=0,i.status=A)):i.status=A),0!==i.pending){if(L(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&j(e)<=j(n)&&e!==c)return F(t,-5);if(i.status===O&&0!==t.avail_in)return F(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==l&&i.status!==O){var p=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(U(t),0===t.lookahead)){if(e===l)return M;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(B(t,!1),0===t.strm.avail_out))return M}return t.insert=0,e===c?(B(t,!0),0===t.strm.avail_out?I:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?M:T}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=S){if(U(t),t.lookahead<=S&&e===l)return M;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=k&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+S;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=S-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=k?(n=o._tr_tally(t,1,t.match_length-k),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(B(t,!1),0===t.strm.avail_out))return M}return t.insert=0,e===c?(B(t,!0),0===t.strm.avail_out?I:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?M:T}(i,e):r[i.level].func(i,e);if(p!==I&&p!==P||(i.status=O),p===M||p===I)return 0===t.avail_out&&(i.last_flush=-1),h;if(p===T&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(N(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),L(t),0===t.avail_out))return i.last_flush=-1,h}return e!==c?h:i.wrap<=0?1:(2===i.wrap?($(i,255&t.adler),$(i,t.adler>>8&255),$(i,t.adler>>16&255),$(i,t.adler>>24&255),$(i,255&t.total_in),$(i,t.total_in>>8&255),$(i,t.total_in>>16&255),$(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),L(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?h:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==E&&69!==e&&73!==e&&91!==e&&e!==D&&e!==A&&e!==O?F(t,f):(t.state=null,e===A?F(t,-3):h):f},e.deflateSetDictionary=function(t,e){var n,r,o,s,u,l,c,d,p=e.length;if(!t||!t.state)return f;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==E||n.lookahead)return f;for(1===s&&(t.adler=a(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(N(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,e,p-n.w_size,n.w_size,0),e=d,p=n.w_size),u=t.avail_in,l=t.next_in,c=t.input,t.avail_in=p,t.next_in=0,t.input=e,U(n);n.lookahead>=k;){r=n.strstart,o=n.lookahead-(k-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+k-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=k-1,U(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=k-1,n.match_available=0,t.next_in=l,t.input=c,t.avail_in=u,n.wrap=s,h},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,n){\"use strict\";var r=n(41),i=0,o=1;function a(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,l=256,c=l+1+u,h=30,f=19,d=2*c+1,p=15,m=16,v=7,g=256,y=16,b=17,_=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C=new Array(2*(c+2));a(C);var E=new Array(2*h);a(E);var D=new Array(512);a(D);var A=new Array(256);a(A);var O=new Array(u);a(O);var M,T,I,P=new Array(h);function F(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function j(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function N(t){return t<256?D[t]:D[256+(t>>>7)]}function L(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function B(t,e,n){t.bi_valid>m-n?(t.bi_buf|=e<<t.bi_valid&65535,L(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=n-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function $(t,e,n){B(t,n[2*e],n[2*e+1])}function z(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function R(t,e,n){var r,i,o=new Array(p+1),a=0;for(r=1;r<=p;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(o[s]++,s))}}function U(t){var e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<f;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*g]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function V(t){t.bi_valid>8?L(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function H(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function G(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&H(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!H(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function q(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?$(t,i,e):($(t,(o=A[i])+l+1,e),0!==(a=w[o])&&B(t,i-=O[o],a),$(t,o=N(--r),n),0!==(a=x[o])&&B(t,r-=P[o],a))}while(s<t.last_lit);$(t,g,e)}function W(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=d,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=l=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=l,n=t.heap_len>>1;n>=1;n--)G(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],G(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,G(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,l=e.max_code,c=e.stat_desc.static_tree,h=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,v=e.stat_desc.max_length,g=0;for(o=0;o<=p;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<d;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>v&&(o=v,g++),u[2*r+1]=o,r>l||(t.bl_count[o]++,a=0,r>=m&&(a=f[r-m]),s=u[2*r],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(c[2*r+1]+a)));if(0!==g){do{for(o=v-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[v]--,g-=2}while(g>0);for(o=v;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>l||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),R(o,l,t.bl_count)}function Y(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<l?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*y]++):s<=10?t.bl_tree[2*b]++:t.bl_tree[2*_]++,s=0,o=i,0===a?(u=138,l=3):i===a?(u=6,l=3):(u=7,l=4))}function Z(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<l)do{$(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&($(t,i,t.bl_tree),s--),$(t,y,t.bl_tree),B(t,s-3,2)):s<=10?($(t,b,t.bl_tree),B(t,s-3,3)):($(t,_,t.bl_tree),B(t,s-11,7));s=0,o=i,0===a?(u=138,l=3):i===a?(u=6,l=3):(u=7,l=4)}}a(P);var K=!1;function X(t,e,n,i){B(t,(s<<1)+(i?1:0),3),function(t,e,n,i){V(t),i&&(L(t,n),L(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}e._tr_init=function(t){K||(!function(){var t,e,n,r,i,o=new Array(p+1);for(n=0,r=0;r<u-1;r++)for(O[r]=n,t=0;t<1<<w[r];t++)A[n++]=r;for(A[n-1]=r,i=0,r=0;r<16;r++)for(P[r]=i,t=0;t<1<<x[r];t++)D[i++]=r;for(i>>=7;r<h;r++)for(P[r]=i<<7,t=0;t<1<<x[r]-7;t++)D[256+i++]=r;for(e=0;e<=p;e++)o[e]=0;for(t=0;t<=143;)C[2*t+1]=8,t++,o[8]++;for(;t<=255;)C[2*t+1]=9,t++,o[9]++;for(;t<=279;)C[2*t+1]=7,t++,o[7]++;for(;t<=287;)C[2*t+1]=8,t++,o[8]++;for(R(C,c+1,o),t=0;t<h;t++)E[2*t+1]=5,E[2*t]=z(t,5);M=new F(C,w,l+1,c,p),T=new F(E,x,0,h,p),I=new F(new Array(0),k,0,f,v)}(),K=!0),t.l_desc=new j(t.dyn_ltree,M),t.d_desc=new j(t.dyn_dtree,T),t.bl_desc=new j(t.bl_tree,I),t.bi_buf=0,t.bi_valid=0,U(t)},e._tr_stored_block=X,e._tr_flush_block=function(t,e,n,r){var a,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<l;e++)if(0!==t.dyn_ltree[2*e])return o;return i}(t)),W(t,t.l_desc),W(t,t.d_desc),u=function(t){var e;for(Y(t,t.dyn_ltree,t.l_desc.max_code),Y(t,t.dyn_dtree,t.d_desc.max_code),W(t,t.bl_desc),e=f-1;e>=3&&0===t.bl_tree[2*S[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==e?X(t,e,n,r):4===t.strategy||s===a?(B(t,2+(r?1:0),3),q(t,C,E)):(B(t,4+(r?1:0),3),function(t,e,n,r){var i;for(B(t,e-257,5),B(t,n-1,5),B(t,r-4,4),i=0;i<r;i++)B(t,t.bl_tree[2*S[i]+1],3);Z(t,t.dyn_ltree,e-1),Z(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),q(t,t.dyn_ltree,t.dyn_dtree)),U(t),r&&V(t)},e._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(A[n]+l+1)]++,t.dyn_dtree[2*N(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){B(t,2,3),$(t,g,C),function(t){16===t.bi_valid?(L(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},function(t,e,n){\"use strict\";var r=n(41),i=n(79),o=n(80),a=n(183),s=n(184),u=1,l=2,c=0,h=-2,f=1,d=12,p=30,m=852,v=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=f,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(m),e.distcode=e.distdyn=new r.Buf32(v),e.sane=1,e.back=-1,c):h}function _(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,b(t)):h}function w(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?h:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,_(t))):h}function x(t,e){var n,r;return t?(r=new y,t.state=r,r.window=null,(n=w(t,e))!==c&&(t.state=null),n):h}var k,S,C=!0;function E(t){if(C){var e;for(k=new r.Buf32(512),S=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,k,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(l,t.lens,0,32,S,0,t.work,{bits:5}),C=!1}t.lencode=k,t.lenbits=9,t.distcode=S,t.distbits=5}function D(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=_,e.inflateReset2=w,e.inflateResetKeep=b,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var n,m,v,y,b,_,w,x,k,S,C,A,O,M,T,I,P,F,j,N,L,B,$,z,R=0,U=new r.Buf8(4),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;(n=t.state).mode===d&&(n.mode=13),b=t.next_out,v=t.output,w=t.avail_out,y=t.next_in,m=t.input,_=t.avail_in,x=n.hold,k=n.bits,S=_,C=w,B=c;t:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;k<16;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(2&n.wrap&&35615===x){n.check=0,U[0]=255&x,U[1]=x>>>8&255,n.check=o(n.check,U,2,0),x=0,k=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",n.mode=p;break}if(8!=(15&x)){t.msg=\"unknown compression method\",n.mode=p;break}if(k-=4,L=8+(15&(x>>>=4)),0===n.wbits)n.wbits=L;else if(L>n.wbits){t.msg=\"invalid window size\",n.mode=p;break}n.dmax=1<<L,t.adler=n.check=1,n.mode=512&x?10:d,x=0,k=0;break;case 2:for(;k<16;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(n.flags=x,8!=(255&n.flags)){t.msg=\"unknown compression method\",n.mode=p;break}if(57344&n.flags){t.msg=\"unknown header flags set\",n.mode=p;break}n.head&&(n.head.text=x>>8&1),512&n.flags&&(U[0]=255&x,U[1]=x>>>8&255,n.check=o(n.check,U,2,0)),x=0,k=0,n.mode=3;case 3:for(;k<32;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.head&&(n.head.time=x),512&n.flags&&(U[0]=255&x,U[1]=x>>>8&255,U[2]=x>>>16&255,U[3]=x>>>24&255,n.check=o(n.check,U,4,0)),x=0,k=0,n.mode=4;case 4:for(;k<16;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.head&&(n.head.xflags=255&x,n.head.os=x>>8),512&n.flags&&(U[0]=255&x,U[1]=x>>>8&255,n.check=o(n.check,U,2,0)),x=0,k=0,n.mode=5;case 5:if(1024&n.flags){for(;k<16;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.length=x,n.head&&(n.head.extra_len=x),512&n.flags&&(U[0]=255&x,U[1]=x>>>8&255,n.check=o(n.check,U,2,0)),x=0,k=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((A=n.length)>_&&(A=_),A&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,m,y,A,L)),512&n.flags&&(n.check=o(n.check,m,A,y)),_-=A,y+=A,n.length-=A),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===_)break t;A=0;do{L=m[y+A++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L))}while(L&&A<_);if(512&n.flags&&(n.check=o(n.check,m,A,y)),_-=A,y+=A,L)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===_)break t;A=0;do{L=m[y+A++],n.head&&L&&n.length<65536&&(n.head.comment+=String.fromCharCode(L))}while(L&&A<_);if(512&n.flags&&(n.check=o(n.check,m,A,y)),_-=A,y+=A,L)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;k<16;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(x!==(65535&n.check)){t.msg=\"header crc mismatch\",n.mode=p;break}x=0,k=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=d;break;case 10:for(;k<32;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}t.adler=n.check=g(x),x=0,k=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=b,t.avail_out=w,t.next_in=y,t.avail_in=_,n.hold=x,n.bits=k,2;t.adler=n.check=1,n.mode=d;case d:if(5===e||6===e)break t;case 13:if(n.last){x>>>=7&k,k-=7&k,n.mode=27;break}for(;k<3;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}switch(n.last=1&x,k-=1,3&(x>>>=1)){case 0:n.mode=14;break;case 1:if(E(n),n.mode=20,6===e){x>>>=2,k-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg=\"invalid block type\",n.mode=p}x>>>=2,k-=2;break;case 14:for(x>>>=7&k,k-=7&k;k<32;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",n.mode=p;break}if(n.length=65535&x,x=0,k=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(A=n.length){if(A>_&&(A=_),A>w&&(A=w),0===A)break t;r.arraySet(v,m,y,A,b),_-=A,y+=A,w-=A,b+=A,n.length-=A;break}n.mode=d;break;case 17:for(;k<14;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(n.nlen=257+(31&x),x>>>=5,k-=5,n.ndist=1+(31&x),x>>>=5,k-=5,n.ncode=4+(15&x),x>>>=4,k-=4,n.nlen>286||n.ndist>30){t.msg=\"too many length or distance symbols\",n.mode=p;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;k<3;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.lens[V[n.have++]]=7&x,x>>>=3,k-=3}for(;n.have<19;)n.lens[V[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,$={bits:n.lenbits},B=s(0,n.lens,0,19,n.lencode,0,n.work,$),n.lenbits=$.bits,B){t.msg=\"invalid code lengths set\",n.mode=p;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;I=(R=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,P=65535&R,!((T=R>>>24)<=k);){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(P<16)x>>>=T,k-=T,n.lens[n.have++]=P;else{if(16===P){for(z=T+2;k<z;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(x>>>=T,k-=T,0===n.have){t.msg=\"invalid bit length repeat\",n.mode=p;break}L=n.lens[n.have-1],A=3+(3&x),x>>>=2,k-=2}else if(17===P){for(z=T+3;k<z;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}k-=T,L=0,A=3+(7&(x>>>=T)),x>>>=3,k-=3}else{for(z=T+7;k<z;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}k-=T,L=0,A=11+(127&(x>>>=T)),x>>>=7,k-=7}if(n.have+A>n.nlen+n.ndist){t.msg=\"invalid bit length repeat\",n.mode=p;break}for(;A--;)n.lens[n.have++]=L}}if(n.mode===p)break;if(0===n.lens[256]){t.msg=\"invalid code -- missing end-of-block\",n.mode=p;break}if(n.lenbits=9,$={bits:n.lenbits},B=s(u,n.lens,0,n.nlen,n.lencode,0,n.work,$),n.lenbits=$.bits,B){t.msg=\"invalid literal/lengths set\",n.mode=p;break}if(n.distbits=6,n.distcode=n.distdyn,$={bits:n.distbits},B=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,$),n.distbits=$.bits,B){t.msg=\"invalid distances set\",n.mode=p;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(_>=6&&w>=258){t.next_out=b,t.avail_out=w,t.next_in=y,t.avail_in=_,n.hold=x,n.bits=k,a(t,C),b=t.next_out,v=t.output,w=t.avail_out,y=t.next_in,m=t.input,_=t.avail_in,x=n.hold,k=n.bits,n.mode===d&&(n.back=-1);break}for(n.back=0;I=(R=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,P=65535&R,!((T=R>>>24)<=k);){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(I&&!(240&I)){for(F=T,j=I,N=P;I=(R=n.lencode[N+((x&(1<<F+j)-1)>>F)])>>>16&255,P=65535&R,!(F+(T=R>>>24)<=k);){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}x>>>=F,k-=F,n.back+=F}if(x>>>=T,k-=T,n.back+=T,n.length=P,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=d;break}if(64&I){t.msg=\"invalid literal/length code\",n.mode=p;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(z=n.extra;k<z;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.length+=x&(1<<n.extra)-1,x>>>=n.extra,k-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(R=n.distcode[x&(1<<n.distbits)-1])>>>16&255,P=65535&R,!((T=R>>>24)<=k);){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(!(240&I)){for(F=T,j=I,N=P;I=(R=n.distcode[N+((x&(1<<F+j)-1)>>F)])>>>16&255,P=65535&R,!(F+(T=R>>>24)<=k);){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}x>>>=F,k-=F,n.back+=F}if(x>>>=T,k-=T,n.back+=T,64&I){t.msg=\"invalid distance code\",n.mode=p;break}n.offset=P,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(z=n.extra;k<z;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.offset+=x&(1<<n.extra)-1,x>>>=n.extra,k-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg=\"invalid distance too far back\",n.mode=p;break}n.mode=25;case 25:if(0===w)break t;if(A=C-w,n.offset>A){if((A=n.offset-A)>n.whave&&n.sane){t.msg=\"invalid distance too far back\",n.mode=p;break}A>n.wnext?(A-=n.wnext,O=n.wsize-A):O=n.wnext-A,A>n.length&&(A=n.length),M=n.window}else M=v,O=b-n.offset,A=n.length;A>w&&(A=w),w-=A,n.length-=A;do{v[b++]=M[O++]}while(--A);0===n.length&&(n.mode=21);break;case 26:if(0===w)break t;v[b++]=n.length,w--,n.mode=21;break;case 27:if(n.wrap){for(;k<32;){if(0===_)break t;_--,x|=m[y++]<<k,k+=8}if(C-=w,t.total_out+=C,n.total+=C,C&&(t.adler=n.check=n.flags?o(n.check,v,C,b-C):i(n.check,v,C,b-C)),C=w,(n.flags?x:g(x))!==n.check){t.msg=\"incorrect data check\",n.mode=p;break}x=0,k=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;k<32;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(x!==(4294967295&n.total)){t.msg=\"incorrect length check\",n.mode=p;break}x=0,k=0}n.mode=29;case 29:B=1;break t;case p:B=-3;break t;case 31:return-4;default:return h}return t.next_out=b,t.avail_out=w,t.next_in=y,t.avail_in=_,n.hold=x,n.bits=k,(n.wsize||C!==t.avail_out&&n.mode<p&&(n.mode<27||4!==e))&&D(t,t.output,t.next_out,C-t.avail_out)?(n.mode=31,-4):(S-=t.avail_in,C-=t.avail_out,t.total_in+=S,t.total_out+=C,n.total+=C,n.wrap&&C&&(t.adler=n.check=n.flags?o(n.check,v,C,t.next_out-C):i(n.check,v,C,t.next_out-C)),t.data_type=n.bits+(n.last?64:0)+(n.mode===d?128:0)+(20===n.mode||15===n.mode?256:0),(0===S&&0===C||4===e)&&B===c&&(B=-5),B)},e.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,c},e.inflateGetHeader=function(t,e){var n;return t&&t.state&&2&(n=t.state).wrap?(n.head=e,e.done=!1,c):h},e.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?h:11===n.mode&&i(1,e,r,0)!==n.check?-3:D(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,c):h},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,n){\"use strict\";t.exports=function(t,e){var n,r,i,o,a,s,u,l,c,h,f,d,p,m,v,g,y,b,_,w,x,k,S,C,E;n=t.state,r=t.next_in,C=t.input,i=r+(t.avail_in-5),o=t.next_out,E=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,l=n.wsize,c=n.whave,h=n.wnext,f=n.window,d=n.hold,p=n.bits,m=n.lencode,v=n.distcode,g=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{p<15&&(d+=C[r++]<<p,p+=8,d+=C[r++]<<p,p+=8),b=m[d&g];e:for(;;){if(d>>>=_=b>>>24,p-=_,0===(_=b>>>16&255))E[o++]=65535&b;else{if(!(16&_)){if(64&_){if(32&_){n.mode=12;break t}t.msg=\"invalid literal/length code\",n.mode=30;break t}b=m[(65535&b)+(d&(1<<_)-1)];continue e}for(w=65535&b,(_&=15)&&(p<_&&(d+=C[r++]<<p,p+=8),w+=d&(1<<_)-1,d>>>=_,p-=_),p<15&&(d+=C[r++]<<p,p+=8,d+=C[r++]<<p,p+=8),b=v[d&y];;){if(d>>>=_=b>>>24,p-=_,16&(_=b>>>16&255)){if(x=65535&b,p<(_&=15)&&(d+=C[r++]<<p,(p+=8)<_&&(d+=C[r++]<<p,p+=8)),(x+=d&(1<<_)-1)>u){t.msg=\"invalid distance too far back\",n.mode=30;break t}if(d>>>=_,p-=_,x>(_=o-a)){if((_=x-_)>c&&n.sane){t.msg=\"invalid distance too far back\",n.mode=30;break t}if(k=0,S=f,0===h){if(k+=l-_,_<w){w-=_;do{E[o++]=f[k++]}while(--_);k=o-x,S=E}}else if(h<_){if(k+=l+h-_,(_-=h)<w){w-=_;do{E[o++]=f[k++]}while(--_);if(k=0,h<w){w-=_=h;do{E[o++]=f[k++]}while(--_);k=o-x,S=E}}}else if(k+=h-_,_<w){w-=_;do{E[o++]=f[k++]}while(--_);k=o-x,S=E}for(;w>2;)E[o++]=S[k++],E[o++]=S[k++],E[o++]=S[k++],w-=3;w&&(E[o++]=S[k++],w>1&&(E[o++]=S[k++]))}else{k=o-x;do{E[o++]=E[k++],E[o++]=E[k++],E[o++]=E[k++],w-=3}while(w>2);w&&(E[o++]=E[k++],w>1&&(E[o++]=E[k++]))}break}if(64&_){t.msg=\"invalid distance code\",n.mode=30;break t}b=v[(65535&b)+(d&(1<<_)-1)]}}break}}while(r<i&&o<s);r-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=d,n.bits=p}},function(t,e,n){\"use strict\";var r=n(41),i=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,l,c,h,f,d){var p,m,v,g,y,b,_,w,x,k=d.bits,S=0,C=0,E=0,D=0,A=0,O=0,M=0,T=0,I=0,P=0,F=null,j=0,N=new r.Buf16(16),L=new r.Buf16(16),B=null,$=0;for(S=0;S<=i;S++)N[S]=0;for(C=0;C<l;C++)N[e[n+C]]++;for(A=k,D=i;D>=1&&0===N[D];D--);if(A>D&&(A=D),0===D)return c[h++]=20971520,c[h++]=20971520,d.bits=1,0;for(E=1;E<D&&0===N[E];E++);for(A<E&&(A=E),T=1,S=1;S<=i;S++)if(T<<=1,(T-=N[S])<0)return-1;if(T>0&&(0===t||1!==D))return-1;for(L[1]=0,S=1;S<i;S++)L[S+1]=L[S]+N[S];for(C=0;C<l;C++)0!==e[n+C]&&(f[L[e[n+C]]++]=C);if(0===t?(F=B=f,b=19):1===t?(F=o,j-=257,B=a,$-=257,b=256):(F=s,B=u,b=-1),P=0,C=0,S=E,y=h,O=A,M=0,v=-1,g=(I=1<<A)-1,1===t&&I>852||2===t&&I>592)return 1;for(;;){_=S-M,f[C]<b?(w=0,x=f[C]):f[C]>b?(w=B[$+f[C]],x=F[j+f[C]]):(w=96,x=0),p=1<<S-M,E=m=1<<O;do{c[y+(P>>M)+(m-=p)]=_<<24|w<<16|x}while(0!==m);for(p=1<<S-1;P&p;)p>>=1;if(0!==p?(P&=p-1,P+=p):P=0,C++,0==--N[S]){if(S===D)break;S=e[n+f[C]]}if(S>A&&(P&g)!==v){for(0===M&&(M=A),y+=E,T=1<<(O=S-M);O+M<D&&!((T-=N[O+M])<=0);)O++,T<<=1;if(I+=1<<O,1===t&&I>852||2===t&&I>592)return 1;c[v=P&g]=A<<24|O<<16|y-h}}return 0!==P&&(c[y+P]=S-M<<24|64<<16),d.bits=A,0}},function(t,e,n){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,n){\"use strict\";(function(e){var r=n(14),i=n(81),o=n(82),a=t.exports=function(t){i.call(this);var n=[],r=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){n.push(t)},complete:function(){r.emit(\"complete\",e.concat(n))}}),this._filter.start()};r.inherits(a,i)}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(e){var r=n(14),i=n(38),o=n(30),a=n(89),s=t.exports=function(t){i.call(this);var e=t||{};this._packer=new a(e),this._deflate=this._packer.createDeflate(),this.readable=!0};r.inherits(s,i),s.prototype.pack=function(t,n,r,i){this.emit(\"data\",e.from(o.PNG_SIGNATURE)),this.emit(\"data\",this._packer.packIHDR(n,r)),i&&this.emit(\"data\",this._packer.packGAMA(i));var a=this._packer.filterData(t,n,r);this._deflate.on(\"error\",this.emit.bind(this,\"error\")),this._deflate.on(\"data\",function(t){this.emit(\"data\",this._packer.packIDAT(t))}.bind(this)),this._deflate.on(\"end\",function(){this.emit(\"data\",this._packer.packIEND()),this.emit(\"end\")}.bind(this)),this._deflate.end(a)}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(e){var r=n(30);t.exports=function(t,n,i,o){var a,s=-1!==[r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(o.colorType);if(o.colorType===o.inputColorType){var u=(a=new ArrayBuffer(2),new DataView(a).setInt16(0,256,!0),256!==new Int16Array(a)[0]);if(8===o.bitDepth||16===o.bitDepth&&u)return t}var l=16!==o.bitDepth?t:new Uint16Array(t.buffer),c=255,h=r.COLORTYPE_TO_BPP_MAP[o.inputColorType];4!==h||o.inputHasAlpha||(h=3);var f=r.COLORTYPE_TO_BPP_MAP[o.colorType];16===o.bitDepth&&(c=65535,f*=2);var d=e.alloc(n*i*f),p=0,m=0,v=o.bgColor||{};function g(){var t,e,n,i=c;switch(o.inputColorType){case r.COLORTYPE_COLOR_ALPHA:i=l[p+3],t=l[p],e=l[p+1],n=l[p+2];break;case r.COLORTYPE_COLOR:t=l[p],e=l[p+1],n=l[p+2];break;case r.COLORTYPE_ALPHA:i=l[p+1],e=t=l[p],n=t;break;case r.COLORTYPE_GRAYSCALE:e=t=l[p],n=t;break;default:throw new Error(\"input color type:\"+o.inputColorType+\" is not supported at present\")}return o.inputHasAlpha&&(s||(i/=c,t=Math.min(Math.max(Math.round((1-i)*v.red+i*t),0),c),e=Math.min(Math.max(Math.round((1-i)*v.green+i*e),0),c),n=Math.min(Math.max(Math.round((1-i)*v.blue+i*n),0),c))),{red:t,green:e,blue:n,alpha:i}}void 0===v.red&&(v.red=c),void 0===v.green&&(v.green=c),void 0===v.blue&&(v.blue=c);for(var y=0;y<i;y++)for(var b=0;b<n;b++){var _=g();switch(o.colorType){case r.COLORTYPE_COLOR_ALPHA:case r.COLORTYPE_COLOR:8===o.bitDepth?(d[m]=_.red,d[m+1]=_.green,d[m+2]=_.blue,s&&(d[m+3]=_.alpha)):(d.writeUInt16BE(_.red,m),d.writeUInt16BE(_.green,m+2),d.writeUInt16BE(_.blue,m+4),s&&d.writeUInt16BE(_.alpha,m+6));break;case r.COLORTYPE_ALPHA:case r.COLORTYPE_GRAYSCALE:var w=(_.red+_.green+_.blue)/3;8===o.bitDepth?(d[m]=w,s&&(d[m+1]=_.alpha)):(d.writeUInt16BE(w,m),s&&d.writeUInt16BE(_.alpha,m+2));break;default:throw new Error(\"unrecognised color Type \"+o.colorType)}p+=h,m+=f}return d}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(e){var r=n(84);var i={0:function(t,e,n,r,i){for(var o=0;o<n;o++)r[i+o]=t[e+o]},1:function(t,e,n,r,i,o){for(var a=0;a<n;a++){var s=a>=o?t[e+a-o]:0,u=t[e+a]-s;r[i+a]=u}},2:function(t,e,n,r,i){for(var o=0;o<n;o++){var a=e>0?t[e+o-n]:0,s=t[e+o]-a;r[i+o]=s}},3:function(t,e,n,r,i,o){for(var a=0;a<n;a++){var s=a>=o?t[e+a-o]:0,u=e>0?t[e+a-n]:0,l=t[e+a]-(s+u>>1);r[i+a]=l}},4:function(t,e,n,i,o,a){for(var s=0;s<n;s++){var u=s>=a?t[e+s-a]:0,l=e>0?t[e+s-n]:0,c=e>0&&s>=a?t[e+s-(n+a)]:0,h=t[e+s]-r(u,l,c);i[o+s]=h}}},o={0:function(t,e,n){for(var r=0,i=e+n,o=e;o<i;o++)r+=Math.abs(t[o]);return r},1:function(t,e,n,r){for(var i=0,o=0;o<n;o++){var a=o>=r?t[e+o-r]:0,s=t[e+o]-a;i+=Math.abs(s)}return i},2:function(t,e,n){for(var r=0,i=e+n,o=e;o<i;o++){var a=e>0?t[o-n]:0,s=t[o]-a;r+=Math.abs(s)}return r},3:function(t,e,n,r){for(var i=0,o=0;o<n;o++){var a=o>=r?t[e+o-r]:0,s=e>0?t[e+o-n]:0,u=t[e+o]-(a+s>>1);i+=Math.abs(u)}return i},4:function(t,e,n,i){for(var o=0,a=0;a<n;a++){var s=a>=i?t[e+a-i]:0,u=e>0?t[e+a-n]:0,l=e>0&&a>=i?t[e+a-(n+i)]:0,c=t[e+a]-r(s,u,l);o+=Math.abs(c)}return o}};t.exports=function(t,n,r,a,s){var u;if(\"filterType\"in a&&-1!==a.filterType){if(\"number\"!=typeof a.filterType)throw new Error(\"unrecognised filter types\");u=[a.filterType]}else u=[0,1,2,3,4];16===a.bitDepth&&(s*=2);for(var l=n*s,c=0,h=0,f=e.alloc((l+1)*r),d=u[0],p=0;p<r;p++){if(u.length>1)for(var m=1/0,v=0;v<u.length;v++){var g=o[u[v]](t,h,l,s);g<m&&(d=u[v],m=g)}f[c]=d,c++,i[d](t,h,l,f,c,s),c+=l,h+=l}return f}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";var r=n(191),i=n(194);e.read=function(t,e){return r(t,e||{})},e.write=function(t,e){return i(t,e)}},function(t,e,n){\"use strict\";(function(e){var r=!0,i=n(28),o=n(192);i.deflateSync||(r=!1);var a=n(90),s=n(193),u=n(85),l=n(87),c=n(88);t.exports=function(t,n){if(!r)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var h,f,d;var p=[];var m=new a(t),v=new u(n,{read:m.read.bind(m),error:function(t){h=t},metadata:function(t){f=t},gamma:function(t){d=t},palette:function(t){f.palette=t},transColor:function(t){f.transColor=t},inflateData:function(t){p.push(t)},simpleTransparency:function(){f.alpha=!0}});if(v.start(),m.process(),h)throw h;var g,y=e.concat(p);if(p.length=0,f.interlace)g=i.inflateSync(y);else{var b=(1+(f.width*f.bpp*f.depth+7>>3))*f.height;g=o(y,{chunkSize:b,maxLength:b})}if(y=null,!g||!g.length)throw new Error(\"bad png - invalid inflate data response\");var _=s.process(g,f);y=null;var w=l.dataToBitMap(_,f);_=null;var x=c(w,f,n.skipRescale);return f.data=x,f.gamma=d||0,f}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(r,i){var o=n(53).ok,a=n(28),s=n(14),u=n(2).kMaxLength;function l(t){if(!(this instanceof l))return new l(t);t&&t.chunkSize<a.Z_MIN_CHUNK&&(t.chunkSize=a.Z_MIN_CHUNK),a.Inflate.call(this,t),this._offset=void 0===this._offset?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,t&&null!=t.maxLength&&(this._maxLength=t.maxLength)}function c(t,e){e&&r.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function h(t,e){return function(t,e){if(\"string\"==typeof e&&(e=i.from(e)),!(e instanceof i))throw new TypeError(\"Not a string or buffer\");var n=t._finishFlushFlag;return null==n&&(n=a.Z_FINISH),t._processChunk(e,n)}(new l(e),t)}l.prototype._processChunk=function(t,e,n){if(\"function\"==typeof n)return a.Inflate._processChunk.call(this,t,e,n);var r,s,l=this,h=t&&t.length,f=this._chunkSize-this._offset,d=this._maxLength,p=0,m=[],v=0;function g(t,e){if(!l._hadError){var n=f-e;if(o(n>=0,\"have should not go down\"),n>0){var r=l._buffer.slice(l._offset,l._offset+n);if(l._offset+=n,r.length>d&&(r=r.slice(0,d)),m.push(r),v+=r.length,0===(d-=r.length))return!1}return(0===e||l._offset>=l._chunkSize)&&(f=l._chunkSize,l._offset=0,l._buffer=i.allocUnsafe(l._chunkSize)),0===e&&(p+=h-t,h=t,!0)}}this.on(\"error\",(function(t){r=t})),o(this._handle,\"zlib binding closed\");do{s=(s=this._handle.writeSync(e,t,p,h,this._buffer,this._offset,f))||this._writeState}while(!this._hadError&&g(s[0],s[1]));if(this._hadError)throw r;if(v>=u)throw c(this),new RangeError(\"Cannot create final Buffer. It would be larger than 0x\"+u.toString(16)+\" bytes\");var y=i.concat(m,v);return c(this),y},s.inherits(l,a.Inflate),t.exports=e=h,e.Inflate=l,e.createInflate=function(t){return new l(t)},e.inflateSync=h}).call(this,n(7),n(2).Buffer)},function(t,e,n){\"use strict\";(function(t){var r=n(90),i=n(82);e.process=function(e,n){var o=[],a=new r(e);return new i(n,{read:a.read.bind(a),write:function(t){o.push(t)},complete:function(){}}).start(),a.process(),t.concat(o)}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";(function(e){var r=!0,i=n(28);i.deflateSync||(r=!1);var o=n(30),a=n(89);t.exports=function(t,n){if(!r)throw new Error(\"To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0\");var s=new a(n||{}),u=[];u.push(e.from(o.PNG_SIGNATURE)),u.push(s.packIHDR(t.width,t.height)),t.gamma&&u.push(s.packGAMA(t.gamma));var l=s.filterData(t.data,t.width,t.height),c=i.deflateSync(l,s.getDeflateOptions());if(l=null,!c||!c.length)throw new Error(\"bad png - invalid compressed data response\");return u.push(s.packIDAT(c)),u.push(s.packIEND()),e.concat(u)}}).call(this,n(2).Buffer)},function(t,e,n){(function(e){function n(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag=\"BM\",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}n.prototype.encode=function(){var t=new e(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var n=0,r=3*this.width+this.extraBytes,i=0;i<this.height;i++){for(var o=0;o<this.width;o++){var a=this.pos+i*r+3*o;n++,t[a]=this.buffer[n++],t[a+1]=this.buffer[n++],t[a+2]=this.buffer[n++]}if(this.extraBytes>0){var s=this.pos+i*r+3*this.width;t.fill(0,s,s+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new n(t).encode(),width:t.width,height:t.height}}}).call(this,n(2).Buffer)},function(t,e,n){(function(e){function n(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString(\"utf-8\",0,this.pos+=2),\"BM\"!=this.flag)throw new Error(\"Invalid BMP File\");this.parseHeader(),this.parseRGBA()}n.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.buffer.readUInt8(this.pos++),r=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);this.palette[e]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},n.prototype.parseRGBA=function(){var t=\"bit\"+this.bitPP,n=this.width*this.height*4;this.data=new e(n),this[t]()},n.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,n=this.height>=0?this.height-1:-this.height;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++)for(var o=this.buffer.readUInt8(this.pos++),a=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var u=this.palette[o>>7-s&1];this.data[a+4*s]=0,this.data[a+4*s+1]=u.blue,this.data[a+4*s+2]=u.green,this.data[a+4*s+3]=u.red}0!=e&&(this.pos+=4-e)}},n.prototype.bit4=function(){if(2==this.compress){var t=function(t){var n=this.palette[t];this.data[e]=0,this.data[e+1]=n.blue,this.data[e+2]=n.green,this.data[e+3]=n.red,e+=4};this.data.fill(255);for(var e=0,n=this.bottom_up?this.height-1:0,r=!1;e<this.data.length;){var i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);if(0==i){if(0==o){this.bottom_up?n--:n++,e=n*this.width*4,r=!1;continue}if(1==o)break;if(2==o){var a=this.buffer.readUInt8(this.pos++),s=this.buffer.readUInt8(this.pos++);this.bottom_up?n-=s:n+=s,e+=s*this.width*4+4*a}else{for(var u=this.buffer.readUInt8(this.pos++),l=0;l<o;l++)t.call(this,r?15&u:(240&u)>>4),1&l&&l+1<o&&(u=this.buffer.readUInt8(this.pos++)),r=!r;1==(o+1>>1&1)&&this.pos++}}else for(l=0;l<i;l++)t.call(this,r?15&o:(240&o)>>4),r=!r}}else{var c=Math.ceil(this.width/2),h=c%4;for(s=this.height-1;s>=0;s--){var f=this.bottom_up?s:this.height-1-s;for(a=0;a<c;a++){o=this.buffer.readUInt8(this.pos++),e=f*this.width*4+2*a*4;var d=o>>4,p=15&o,m=this.palette[d];if(this.data[e]=0,this.data[e+1]=m.blue,this.data[e+2]=m.green,this.data[e+3]=m.red,2*a+1>=this.width)break;m=this.palette[p],this.data[e+4]=0,this.data[e+4+1]=m.blue,this.data[e+4+2]=m.green,this.data[e+4+3]=m.red}0!=h&&(this.pos+=4-h)}}},n.prototype.bit8=function(){if(1==this.compress){var t=function(t){var n=this.palette[t];this.data[e]=0,this.data[e+1]=n.blue,this.data[e+2]=n.green,this.data[e+3]=n.red,e+=4};this.data.fill(255);for(var e=0,n=this.bottom_up?this.height-1:0;e<this.data.length;){var r=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++);if(0==r){if(0==i){this.bottom_up?n--:n++,e=n*this.width*4;continue}if(1==i)break;if(2==i){var o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);this.bottom_up?n-=a:n+=a,e+=a*this.width*4+4*o}else{for(var s=0;s<i;s++){var u=this.buffer.readUInt8(this.pos++);t.call(this,u)}!0&i&&this.pos++}}else for(s=0;s<r;s++)t.call(this,i)}}else{var l=this.width%4;for(a=this.height-1;a>=0;a--){var c=this.bottom_up?a:this.height-1-a;for(o=0;o<this.width;o++){i=this.buffer.readUInt8(this.pos++),e=c*this.width*4+4*o;if(i<this.palette.length){var h=this.palette[i];this.data[e]=0,this.data[e+1]=h.blue,this.data[e+2]=h.green,this.data[e+3]=h.red}else this.data[e]=0,this.data[e+1]=255,this.data[e+2]=255,this.data[e+3]=255}0!=l&&(this.pos+=4-l)}}},n.prototype.bit15=function(){for(var t=this.width%3,e=parseInt(\"11111\",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.buffer.readUInt16LE(this.pos);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,u=(o>>10&e)/e*255|0,l=o>>15?255:0,c=r*this.width*4+4*i;this.data[c]=l,this.data[c+1]=a,this.data[c+2]=s,this.data[c+3]=u}this.pos+=t}},n.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],n=0;n<16;n++)this.maskRed>>n&1&&e[0]++,this.maskGreen>>n&1&&e[1]++,this.maskBlue>>n&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var a=this.buffer.readUInt16LE(this.pos);this.pos+=2;var s=(a&this.maskBlue)<<e[0],u=(a&this.maskGreen)>>e[1],l=(a&this.maskRed)>>e[2],c=i*this.width*4+4*o;this.data[c]=0,this.data[c+1]=s,this.data[c+2]=u,this.data[c+3]=l}this.pos+=t}},n.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=e*this.width*4+4*n;this.data[a]=0,this.data[a+1]=r,this.data[a+2]=i,this.data[a+3]=o}this.pos+=this.width%4}},n.prototype.bit32=function(){if(3==this.compress){this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4;for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*n;this.data[s]=r,this.data[s+1]=i,this.data[s+2]=o,this.data[s+3]=a}}else for(t=this.height-1;t>=0;t--)for(e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),r=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*n;this.data[s]=r,this.data[s+1]=i,this.data[s+2]=o,this.data[s+3]=a}},n.prototype.getData=function(){return this.data},t.exports=function(t){return new n(t)}}).call(this,n(2).Buffer)},function(t,e,n){\"use strict\";var r={};(0,n(15).assign)(r,n(198),n(201),n(95)),t.exports=r},function(t,e,n){\"use strict\";var r=n(199),i=n(15),o=n(93),a=n(56),s=n(94),u=Object.prototype.toString,l=0,c=-1,h=0,f=8;function d(t){if(!(this instanceof d))return new d(t);this.options=i.assign({level:c,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==l)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p=\"string\"==typeof e.dictionary?o.string2buf(e.dictionary):\"[object ArrayBuffer]\"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==l)throw new Error(a[n]);this._dict_set=!0}}function p(t,e){var n=new d(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}d.prototype.push=function(t,e){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,\"string\"==typeof t?s.input=o.string2buf(t):\"[object ArrayBuffer]\"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&n!==l)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||(\"string\"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):2!==a||(this.onEnd(l),s.avail_out=0,!0)},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===l&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=d,e.deflate=p,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},function(t,e,n){\"use strict\";var r,i=n(15),o=n(200),a=n(91),s=n(92),u=n(56),l=0,c=4,h=0,f=-2,d=-1,p=4,m=2,v=8,g=9,y=286,b=30,_=19,w=2*y+1,x=15,k=3,S=258,C=S+k+1,E=42,D=103,A=113,O=666,M=1,T=2,I=3,P=4;function F(t,e){return t.msg=u[e],e}function j(t){return(t<<1)-(t>4?9:0)}function N(t){for(var e=t.length;--e>=0;)t[e]=0}function L(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function B(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,L(t.strm)}function $(t,e){t.pending_buf[t.pending++]=e}function z(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function R(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-C?t.strstart-(t.w_size-C):0,l=t.window,c=t.w_mask,h=t.prev,f=t.strstart+S,d=l[o+a-1],p=l[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(n=e)+a]===p&&l[n+a-1]===d&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&o<f);if(r=S-(f-o),o=f-S,r>a){if(t.match_start=e,a=r,r>=s)break;d=l[o+a-1],p=l[o+a]}}}while((e=h[e&c])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function U(t){var e,n,r,o,u,l,c,h,f,d,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-C)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=p?r-p:0}while(--n);e=n=p;do{r=t.prev[--e],t.prev[e]=r>=p?r-p:0}while(--n);o+=p}if(0===t.strm.avail_in)break;if(l=t.strm,c=t.window,h=t.strstart+t.lookahead,f=o,d=void 0,(d=l.avail_in)>f&&(d=f),n=0===d?0:(l.avail_in-=d,i.arraySet(c,l.input,l.next_in,d,h),1===l.state.wrap?l.adler=a(l.adler,c,d,h):2===l.state.wrap&&(l.adler=s(l.adler,c,d,h)),l.next_in+=d,l.total_in+=d,d),t.lookahead+=n,t.lookahead+t.insert>=k)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+k-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<k)););}while(t.lookahead<C&&0!==t.strm.avail_in)}function V(t,e){for(var n,r;;){if(t.lookahead<C){if(U(t),t.lookahead<C&&e===l)return M;if(0===t.lookahead)break}if(n=0,t.lookahead>=k&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-C&&(t.match_length=R(t,n)),t.match_length>=k)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-k),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=k){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(B(t,!1),0===t.strm.avail_out))return M}return t.insert=t.strstart<k-1?t.strstart:k-1,e===c?(B(t,!0),0===t.strm.avail_out?I:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?M:T}function H(t,e){for(var n,r,i;;){if(t.lookahead<C){if(U(t),t.lookahead<C&&e===l)return M;if(0===t.lookahead)break}if(n=0,t.lookahead>=k&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=k-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-C&&(t.match_length=R(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===k&&t.strstart-t.match_start>4096)&&(t.match_length=k-1)),t.prev_length>=k&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-k,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-k),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+k-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=k-1,t.strstart++,r&&(B(t,!1),0===t.strm.avail_out))return M}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&B(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return M}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<k-1?t.strstart:k-1,e===c?(B(t,!0),0===t.strm.avail_out?I:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?M:T}function G(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function q(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*w),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*_+1)),N(this.dyn_ltree),N(this.dyn_dtree),N(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*y+1),N(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),N(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?E:A,t.adler=2===e.wrap?0:1,e.last_flush=l,o._tr_init(e),h):F(t,f)}function Y(t){var e,n=W(t);return n===h&&((e=t.state).window_size=2*e.w_size,N(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=k-1,e.match_available=0,e.ins_h=0),n}function Z(t,e,n,r,o,a){if(!t)return f;var s=1;if(e===d&&(e=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>g||n!==v||r<8||r>15||e<0||e>9||a<0||a>p)return F(t,f);8===r&&(r=9);var u=new q;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+k-1)/k),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=n,Y(t)}r=[new G(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(U(t),0===t.lookahead&&e===l)return M;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,B(t,!1),0===t.strm.avail_out))return M;if(t.strstart-t.block_start>=t.w_size-C&&(B(t,!1),0===t.strm.avail_out))return M}return t.insert=0,e===c?(B(t,!0),0===t.strm.avail_out?I:P):(t.strstart>t.block_start&&(B(t,!1),t.strm.avail_out),M)})),new G(4,4,8,4,V),new G(4,5,16,8,V),new G(4,6,32,32,V),new G(4,4,16,16,H),new G(8,16,32,32,H),new G(8,16,128,128,H),new G(8,32,128,256,H),new G(32,128,258,1024,H),new G(32,258,258,4096,H)],e.deflateInit=function(t,e){return Z(t,e,v,15,8,0)},e.deflateInit2=Z,e.deflateReset=Y,e.deflateResetKeep=W,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?f:(t.state.gzhead=e,h):f},e.deflate=function(t,e){var n,i,a,u;if(!t||!t.state||e>5||e<0)return t?F(t,f):f;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===O&&e!==c)return F(t,0===t.avail_out?-5:f);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===E)if(2===i.wrap)t.adler=0,$(i,31),$(i,139),$(i,8),i.gzhead?($(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),$(i,255&i.gzhead.time),$(i,i.gzhead.time>>8&255),$(i,i.gzhead.time>>16&255),$(i,i.gzhead.time>>24&255),$(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),$(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&($(i,255&i.gzhead.extra.length),$(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):($(i,0),$(i,0),$(i,0),$(i,0),$(i,0),$(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),$(i,3),i.status=A);else{var d=v+(i.w_bits-8<<4)<<8;d|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=A,z(i,d),0!==i.strstart&&(z(i,t.adler>>>16),z(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),L(t),a=i.pending,i.pending!==i.pending_buf_size));)$(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),L(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,$(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),L(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,$(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=D)}else i.status=D;if(i.status===D&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&L(t),i.pending+2<=i.pending_buf_size&&($(i,255&t.adler),$(i,t.adler>>8&255),t.adler=0,i.status=A)):i.status=A),0!==i.pending){if(L(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&j(e)<=j(n)&&e!==c)return F(t,-5);if(i.status===O&&0!==t.avail_in)return F(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==l&&i.status!==O){var p=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(U(t),0===t.lookahead)){if(e===l)return M;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(B(t,!1),0===t.strm.avail_out))return M}return t.insert=0,e===c?(B(t,!0),0===t.strm.avail_out?I:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?M:T}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=S){if(U(t),t.lookahead<=S&&e===l)return M;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=k&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+S;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=S-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=k?(n=o._tr_tally(t,1,t.match_length-k),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(B(t,!1),0===t.strm.avail_out))return M}return t.insert=0,e===c?(B(t,!0),0===t.strm.avail_out?I:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?M:T}(i,e):r[i.level].func(i,e);if(p!==I&&p!==P||(i.status=O),p===M||p===I)return 0===t.avail_out&&(i.last_flush=-1),h;if(p===T&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(N(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),L(t),0===t.avail_out))return i.last_flush=-1,h}return e!==c?h:i.wrap<=0?1:(2===i.wrap?($(i,255&t.adler),$(i,t.adler>>8&255),$(i,t.adler>>16&255),$(i,t.adler>>24&255),$(i,255&t.total_in),$(i,t.total_in>>8&255),$(i,t.total_in>>16&255),$(i,t.total_in>>24&255)):(z(i,t.adler>>>16),z(i,65535&t.adler)),L(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?h:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==E&&69!==e&&73!==e&&91!==e&&e!==D&&e!==A&&e!==O?F(t,f):(t.state=null,e===A?F(t,-3):h):f},e.deflateSetDictionary=function(t,e){var n,r,o,s,u,l,c,d,p=e.length;if(!t||!t.state)return f;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==E||n.lookahead)return f;for(1===s&&(t.adler=a(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(N(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,e,p-n.w_size,n.w_size,0),e=d,p=n.w_size),u=t.avail_in,l=t.next_in,c=t.input,t.avail_in=p,t.next_in=0,t.input=e,U(n);n.lookahead>=k;){r=n.strstart,o=n.lookahead-(k-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+k-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=k-1,U(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=k-1,n.match_available=0,t.next_in=l,t.input=c,t.avail_in=u,n.wrap=s,h},e.deflateInfo=\"pako deflate (from Nodeca project)\"},function(t,e,n){\"use strict\";var r=n(15),i=0,o=1;function a(t){for(var e=t.length;--e>=0;)t[e]=0}var s=0,u=29,l=256,c=l+1+u,h=30,f=19,d=2*c+1,p=15,m=16,v=7,g=256,y=16,b=17,_=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C=new Array(2*(c+2));a(C);var E=new Array(2*h);a(E);var D=new Array(512);a(D);var A=new Array(256);a(A);var O=new Array(u);a(O);var M,T,I,P=new Array(h);function F(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function j(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function N(t){return t<256?D[t]:D[256+(t>>>7)]}function L(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function B(t,e,n){t.bi_valid>m-n?(t.bi_buf|=e<<t.bi_valid&65535,L(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=n-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function $(t,e,n){B(t,n[2*e],n[2*e+1])}function z(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function R(t,e,n){var r,i,o=new Array(p+1),a=0;for(r=1;r<=p;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(o[s]++,s))}}function U(t){var e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<f;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*g]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function V(t){t.bi_valid>8?L(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function H(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function G(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&H(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!H(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function q(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?$(t,i,e):($(t,(o=A[i])+l+1,e),0!==(a=w[o])&&B(t,i-=O[o],a),$(t,o=N(--r),n),0!==(a=x[o])&&B(t,r-=P[o],a))}while(s<t.last_lit);$(t,g,e)}function W(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=d,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=l=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=l,n=t.heap_len>>1;n>=1;n--)G(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],G(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,G(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,l=e.max_code,c=e.stat_desc.static_tree,h=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,v=e.stat_desc.max_length,g=0;for(o=0;o<=p;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<d;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>v&&(o=v,g++),u[2*r+1]=o,r>l||(t.bl_count[o]++,a=0,r>=m&&(a=f[r-m]),s=u[2*r],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(c[2*r+1]+a)));if(0!==g){do{for(o=v-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[v]--,g-=2}while(g>0);for(o=v;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>l||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),R(o,l,t.bl_count)}function Y(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<l?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*y]++):s<=10?t.bl_tree[2*b]++:t.bl_tree[2*_]++,s=0,o=i,0===a?(u=138,l=3):i===a?(u=6,l=3):(u=7,l=4))}function Z(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<l)do{$(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&($(t,i,t.bl_tree),s--),$(t,y,t.bl_tree),B(t,s-3,2)):s<=10?($(t,b,t.bl_tree),B(t,s-3,3)):($(t,_,t.bl_tree),B(t,s-11,7));s=0,o=i,0===a?(u=138,l=3):i===a?(u=6,l=3):(u=7,l=4)}}a(P);var K=!1;function X(t,e,n,i){B(t,(s<<1)+(i?1:0),3),function(t,e,n,i){V(t),i&&(L(t,n),L(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}e._tr_init=function(t){K||(!function(){var t,e,n,r,i,o=new Array(p+1);for(n=0,r=0;r<u-1;r++)for(O[r]=n,t=0;t<1<<w[r];t++)A[n++]=r;for(A[n-1]=r,i=0,r=0;r<16;r++)for(P[r]=i,t=0;t<1<<x[r];t++)D[i++]=r;for(i>>=7;r<h;r++)for(P[r]=i<<7,t=0;t<1<<x[r]-7;t++)D[256+i++]=r;for(e=0;e<=p;e++)o[e]=0;for(t=0;t<=143;)C[2*t+1]=8,t++,o[8]++;for(;t<=255;)C[2*t+1]=9,t++,o[9]++;for(;t<=279;)C[2*t+1]=7,t++,o[7]++;for(;t<=287;)C[2*t+1]=8,t++,o[8]++;for(R(C,c+1,o),t=0;t<h;t++)E[2*t+1]=5,E[2*t]=z(t,5);M=new F(C,w,l+1,c,p),T=new F(E,x,0,h,p),I=new F(new Array(0),k,0,f,v)}(),K=!0),t.l_desc=new j(t.dyn_ltree,M),t.d_desc=new j(t.dyn_dtree,T),t.bl_desc=new j(t.bl_tree,I),t.bi_buf=0,t.bi_valid=0,U(t)},e._tr_stored_block=X,e._tr_flush_block=function(t,e,n,r){var a,s,u=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<l;e++)if(0!==t.dyn_ltree[2*e])return o;return i}(t)),W(t,t.l_desc),W(t,t.d_desc),u=function(t){var e;for(Y(t,t.dyn_ltree,t.l_desc.max_code),Y(t,t.dyn_dtree,t.d_desc.max_code),W(t,t.bl_desc),e=f-1;e>=3&&0===t.bl_tree[2*S[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==e?X(t,e,n,r):4===t.strategy||s===a?(B(t,2+(r?1:0),3),q(t,C,E)):(B(t,4+(r?1:0),3),function(t,e,n,r){var i;for(B(t,e-257,5),B(t,n-1,5),B(t,r-4,4),i=0;i<r;i++)B(t,t.bl_tree[2*S[i]+1],3);Z(t,t.dyn_ltree,e-1),Z(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),q(t,t.dyn_ltree,t.dyn_dtree)),U(t),r&&V(t)},e._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(A[n]+l+1)]++,t.dyn_dtree[2*N(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){B(t,2,3),$(t,g,C),function(t){16===t.bi_valid?(L(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){\"use strict\";var r=n(202),i=n(15),o=n(93),a=n(95),s=n(56),u=n(94),l=n(205),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new l,r.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):\"[object ArrayBuffer]\"===c.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[n])}function f(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(t,e){var n,s,u,l,h,f=this.strm,d=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,\"string\"==typeof t?f.input=o.binstring2buf(t):\"[object ArrayBuffer]\"===c.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(d),f.next_out=0,f.avail_out=d),(n=r.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(n=r.inflateSetDictionary(this.strm,p)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||(\"string\"===this.options.to?(u=o.utf8border(f.output,f.next_out),l=f.next_out-u,h=o.buf2string(f.output,u),f.next_out=l,f.avail_out=d-l,l&&i.arraySet(f.output,f.output,u,l,0),this.onData(h)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((f.avail_in>0||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),f.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===a.Z_OK&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=h,e.inflate=f,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.ungzip=f},function(t,e,n){\"use strict\";var r=n(15),i=n(91),o=n(92),a=n(203),s=n(204),u=1,l=2,c=0,h=-2,f=1,d=12,p=30,m=852,v=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=f,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(m),e.distcode=e.distdyn=new r.Buf32(v),e.sane=1,e.back=-1,c):h}function _(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,b(t)):h}function w(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?h:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,_(t))):h}function x(t,e){var n,r;return t?(r=new y,t.state=r,r.window=null,(n=w(t,e))!==c&&(t.state=null),n):h}var k,S,C=!0;function E(t){if(C){var e;for(k=new r.Buf32(512),S=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,k,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(l,t.lens,0,32,S,0,t.work,{bits:5}),C=!1}t.lencode=k,t.lenbits=9,t.distcode=S,t.distbits=5}function D(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=_,e.inflateReset2=w,e.inflateResetKeep=b,e.inflateInit=function(t){return x(t,15)},e.inflateInit2=x,e.inflate=function(t,e){var n,m,v,y,b,_,w,x,k,S,C,A,O,M,T,I,P,F,j,N,L,B,$,z,R=0,U=new r.Buf8(4),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;(n=t.state).mode===d&&(n.mode=13),b=t.next_out,v=t.output,w=t.avail_out,y=t.next_in,m=t.input,_=t.avail_in,x=n.hold,k=n.bits,S=_,C=w,B=c;t:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;k<16;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(2&n.wrap&&35615===x){n.check=0,U[0]=255&x,U[1]=x>>>8&255,n.check=o(n.check,U,2,0),x=0,k=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg=\"incorrect header check\",n.mode=p;break}if(8!=(15&x)){t.msg=\"unknown compression method\",n.mode=p;break}if(k-=4,L=8+(15&(x>>>=4)),0===n.wbits)n.wbits=L;else if(L>n.wbits){t.msg=\"invalid window size\",n.mode=p;break}n.dmax=1<<L,t.adler=n.check=1,n.mode=512&x?10:d,x=0,k=0;break;case 2:for(;k<16;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(n.flags=x,8!=(255&n.flags)){t.msg=\"unknown compression method\",n.mode=p;break}if(57344&n.flags){t.msg=\"unknown header flags set\",n.mode=p;break}n.head&&(n.head.text=x>>8&1),512&n.flags&&(U[0]=255&x,U[1]=x>>>8&255,n.check=o(n.check,U,2,0)),x=0,k=0,n.mode=3;case 3:for(;k<32;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.head&&(n.head.time=x),512&n.flags&&(U[0]=255&x,U[1]=x>>>8&255,U[2]=x>>>16&255,U[3]=x>>>24&255,n.check=o(n.check,U,4,0)),x=0,k=0,n.mode=4;case 4:for(;k<16;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.head&&(n.head.xflags=255&x,n.head.os=x>>8),512&n.flags&&(U[0]=255&x,U[1]=x>>>8&255,n.check=o(n.check,U,2,0)),x=0,k=0,n.mode=5;case 5:if(1024&n.flags){for(;k<16;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.length=x,n.head&&(n.head.extra_len=x),512&n.flags&&(U[0]=255&x,U[1]=x>>>8&255,n.check=o(n.check,U,2,0)),x=0,k=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((A=n.length)>_&&(A=_),A&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,m,y,A,L)),512&n.flags&&(n.check=o(n.check,m,A,y)),_-=A,y+=A,n.length-=A),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===_)break t;A=0;do{L=m[y+A++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L))}while(L&&A<_);if(512&n.flags&&(n.check=o(n.check,m,A,y)),_-=A,y+=A,L)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===_)break t;A=0;do{L=m[y+A++],n.head&&L&&n.length<65536&&(n.head.comment+=String.fromCharCode(L))}while(L&&A<_);if(512&n.flags&&(n.check=o(n.check,m,A,y)),_-=A,y+=A,L)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;k<16;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(x!==(65535&n.check)){t.msg=\"header crc mismatch\",n.mode=p;break}x=0,k=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=d;break;case 10:for(;k<32;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}t.adler=n.check=g(x),x=0,k=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=b,t.avail_out=w,t.next_in=y,t.avail_in=_,n.hold=x,n.bits=k,2;t.adler=n.check=1,n.mode=d;case d:if(5===e||6===e)break t;case 13:if(n.last){x>>>=7&k,k-=7&k,n.mode=27;break}for(;k<3;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}switch(n.last=1&x,k-=1,3&(x>>>=1)){case 0:n.mode=14;break;case 1:if(E(n),n.mode=20,6===e){x>>>=2,k-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg=\"invalid block type\",n.mode=p}x>>>=2,k-=2;break;case 14:for(x>>>=7&k,k-=7&k;k<32;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if((65535&x)!=(x>>>16^65535)){t.msg=\"invalid stored block lengths\",n.mode=p;break}if(n.length=65535&x,x=0,k=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(A=n.length){if(A>_&&(A=_),A>w&&(A=w),0===A)break t;r.arraySet(v,m,y,A,b),_-=A,y+=A,w-=A,b+=A,n.length-=A;break}n.mode=d;break;case 17:for(;k<14;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(n.nlen=257+(31&x),x>>>=5,k-=5,n.ndist=1+(31&x),x>>>=5,k-=5,n.ncode=4+(15&x),x>>>=4,k-=4,n.nlen>286||n.ndist>30){t.msg=\"too many length or distance symbols\",n.mode=p;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;k<3;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.lens[V[n.have++]]=7&x,x>>>=3,k-=3}for(;n.have<19;)n.lens[V[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,$={bits:n.lenbits},B=s(0,n.lens,0,19,n.lencode,0,n.work,$),n.lenbits=$.bits,B){t.msg=\"invalid code lengths set\",n.mode=p;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;I=(R=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,P=65535&R,!((T=R>>>24)<=k);){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(P<16)x>>>=T,k-=T,n.lens[n.have++]=P;else{if(16===P){for(z=T+2;k<z;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(x>>>=T,k-=T,0===n.have){t.msg=\"invalid bit length repeat\",n.mode=p;break}L=n.lens[n.have-1],A=3+(3&x),x>>>=2,k-=2}else if(17===P){for(z=T+3;k<z;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}k-=T,L=0,A=3+(7&(x>>>=T)),x>>>=3,k-=3}else{for(z=T+7;k<z;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}k-=T,L=0,A=11+(127&(x>>>=T)),x>>>=7,k-=7}if(n.have+A>n.nlen+n.ndist){t.msg=\"invalid bit length repeat\",n.mode=p;break}for(;A--;)n.lens[n.have++]=L}}if(n.mode===p)break;if(0===n.lens[256]){t.msg=\"invalid code -- missing end-of-block\",n.mode=p;break}if(n.lenbits=9,$={bits:n.lenbits},B=s(u,n.lens,0,n.nlen,n.lencode,0,n.work,$),n.lenbits=$.bits,B){t.msg=\"invalid literal/lengths set\",n.mode=p;break}if(n.distbits=6,n.distcode=n.distdyn,$={bits:n.distbits},B=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,$),n.distbits=$.bits,B){t.msg=\"invalid distances set\",n.mode=p;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(_>=6&&w>=258){t.next_out=b,t.avail_out=w,t.next_in=y,t.avail_in=_,n.hold=x,n.bits=k,a(t,C),b=t.next_out,v=t.output,w=t.avail_out,y=t.next_in,m=t.input,_=t.avail_in,x=n.hold,k=n.bits,n.mode===d&&(n.back=-1);break}for(n.back=0;I=(R=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,P=65535&R,!((T=R>>>24)<=k);){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(I&&!(240&I)){for(F=T,j=I,N=P;I=(R=n.lencode[N+((x&(1<<F+j)-1)>>F)])>>>16&255,P=65535&R,!(F+(T=R>>>24)<=k);){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}x>>>=F,k-=F,n.back+=F}if(x>>>=T,k-=T,n.back+=T,n.length=P,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=d;break}if(64&I){t.msg=\"invalid literal/length code\",n.mode=p;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(z=n.extra;k<z;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.length+=x&(1<<n.extra)-1,x>>>=n.extra,k-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(R=n.distcode[x&(1<<n.distbits)-1])>>>16&255,P=65535&R,!((T=R>>>24)<=k);){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(!(240&I)){for(F=T,j=I,N=P;I=(R=n.distcode[N+((x&(1<<F+j)-1)>>F)])>>>16&255,P=65535&R,!(F+(T=R>>>24)<=k);){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}x>>>=F,k-=F,n.back+=F}if(x>>>=T,k-=T,n.back+=T,64&I){t.msg=\"invalid distance code\",n.mode=p;break}n.offset=P,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(z=n.extra;k<z;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}n.offset+=x&(1<<n.extra)-1,x>>>=n.extra,k-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg=\"invalid distance too far back\",n.mode=p;break}n.mode=25;case 25:if(0===w)break t;if(A=C-w,n.offset>A){if((A=n.offset-A)>n.whave&&n.sane){t.msg=\"invalid distance too far back\",n.mode=p;break}A>n.wnext?(A-=n.wnext,O=n.wsize-A):O=n.wnext-A,A>n.length&&(A=n.length),M=n.window}else M=v,O=b-n.offset,A=n.length;A>w&&(A=w),w-=A,n.length-=A;do{v[b++]=M[O++]}while(--A);0===n.length&&(n.mode=21);break;case 26:if(0===w)break t;v[b++]=n.length,w--,n.mode=21;break;case 27:if(n.wrap){for(;k<32;){if(0===_)break t;_--,x|=m[y++]<<k,k+=8}if(C-=w,t.total_out+=C,n.total+=C,C&&(t.adler=n.check=n.flags?o(n.check,v,C,b-C):i(n.check,v,C,b-C)),C=w,(n.flags?x:g(x))!==n.check){t.msg=\"incorrect data check\",n.mode=p;break}x=0,k=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;k<32;){if(0===_)break t;_--,x+=m[y++]<<k,k+=8}if(x!==(4294967295&n.total)){t.msg=\"incorrect length check\",n.mode=p;break}x=0,k=0}n.mode=29;case 29:B=1;break t;case p:B=-3;break t;case 31:return-4;default:return h}return t.next_out=b,t.avail_out=w,t.next_in=y,t.avail_in=_,n.hold=x,n.bits=k,(n.wsize||C!==t.avail_out&&n.mode<p&&(n.mode<27||4!==e))&&D(t,t.output,t.next_out,C-t.avail_out)?(n.mode=31,-4):(S-=t.avail_in,C-=t.avail_out,t.total_in+=S,t.total_out+=C,n.total+=C,n.wrap&&C&&(t.adler=n.check=n.flags?o(n.check,v,C,t.next_out-C):i(n.check,v,C,t.next_out-C)),t.data_type=n.bits+(n.last?64:0)+(n.mode===d?128:0)+(20===n.mode||15===n.mode?256:0),(0===S&&0===C||4===e)&&B===c&&(B=-5),B)},e.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,c},e.inflateGetHeader=function(t,e){var n;return t&&t.state&&2&(n=t.state).wrap?(n.head=e,e.done=!1,c):h},e.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?h:11===n.mode&&i(1,e,r,0)!==n.check?-3:D(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,c):h},e.inflateInfo=\"pako inflate (from Nodeca project)\"},function(t,e,n){\"use strict\";t.exports=function(t,e){var n,r,i,o,a,s,u,l,c,h,f,d,p,m,v,g,y,b,_,w,x,k,S,C,E;n=t.state,r=t.next_in,C=t.input,i=r+(t.avail_in-5),o=t.next_out,E=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,l=n.wsize,c=n.whave,h=n.wnext,f=n.window,d=n.hold,p=n.bits,m=n.lencode,v=n.distcode,g=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{p<15&&(d+=C[r++]<<p,p+=8,d+=C[r++]<<p,p+=8),b=m[d&g];e:for(;;){if(d>>>=_=b>>>24,p-=_,0===(_=b>>>16&255))E[o++]=65535&b;else{if(!(16&_)){if(64&_){if(32&_){n.mode=12;break t}t.msg=\"invalid literal/length code\",n.mode=30;break t}b=m[(65535&b)+(d&(1<<_)-1)];continue e}for(w=65535&b,(_&=15)&&(p<_&&(d+=C[r++]<<p,p+=8),w+=d&(1<<_)-1,d>>>=_,p-=_),p<15&&(d+=C[r++]<<p,p+=8,d+=C[r++]<<p,p+=8),b=v[d&y];;){if(d>>>=_=b>>>24,p-=_,16&(_=b>>>16&255)){if(x=65535&b,p<(_&=15)&&(d+=C[r++]<<p,(p+=8)<_&&(d+=C[r++]<<p,p+=8)),(x+=d&(1<<_)-1)>u){t.msg=\"invalid distance too far back\",n.mode=30;break t}if(d>>>=_,p-=_,x>(_=o-a)){if((_=x-_)>c&&n.sane){t.msg=\"invalid distance too far back\",n.mode=30;break t}if(k=0,S=f,0===h){if(k+=l-_,_<w){w-=_;do{E[o++]=f[k++]}while(--_);k=o-x,S=E}}else if(h<_){if(k+=l+h-_,(_-=h)<w){w-=_;do{E[o++]=f[k++]}while(--_);if(k=0,h<w){w-=_=h;do{E[o++]=f[k++]}while(--_);k=o-x,S=E}}}else if(k+=h-_,_<w){w-=_;do{E[o++]=f[k++]}while(--_);k=o-x,S=E}for(;w>2;)E[o++]=S[k++],E[o++]=S[k++],E[o++]=S[k++],w-=3;w&&(E[o++]=S[k++],w>1&&(E[o++]=S[k++]))}else{k=o-x;do{E[o++]=E[k++],E[o++]=E[k++],E[o++]=E[k++],w-=3}while(w>2);w&&(E[o++]=E[k++],w>1&&(E[o++]=E[k++]))}break}if(64&_){t.msg=\"invalid distance code\",n.mode=30;break t}b=v[(65535&b)+(d&(1<<_)-1)]}}break}}while(r<i&&o<s);r-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=d,n.bits=p}},function(t,e,n){\"use strict\";var r=n(15),i=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,l,c,h,f,d){var p,m,v,g,y,b,_,w,x,k=d.bits,S=0,C=0,E=0,D=0,A=0,O=0,M=0,T=0,I=0,P=0,F=null,j=0,N=new r.Buf16(16),L=new r.Buf16(16),B=null,$=0;for(S=0;S<=i;S++)N[S]=0;for(C=0;C<l;C++)N[e[n+C]]++;for(A=k,D=i;D>=1&&0===N[D];D--);if(A>D&&(A=D),0===D)return c[h++]=20971520,c[h++]=20971520,d.bits=1,0;for(E=1;E<D&&0===N[E];E++);for(A<E&&(A=E),T=1,S=1;S<=i;S++)if(T<<=1,(T-=N[S])<0)return-1;if(T>0&&(0===t||1!==D))return-1;for(L[1]=0,S=1;S<i;S++)L[S+1]=L[S]+N[S];for(C=0;C<l;C++)0!==e[n+C]&&(f[L[e[n+C]]++]=C);if(0===t?(F=B=f,b=19):1===t?(F=o,j-=257,B=a,$-=257,b=256):(F=s,B=u,b=-1),P=0,C=0,S=E,y=h,O=A,M=0,v=-1,g=(I=1<<A)-1,1===t&&I>852||2===t&&I>592)return 1;for(;;){_=S-M,f[C]<b?(w=0,x=f[C]):f[C]>b?(w=B[$+f[C]],x=F[j+f[C]]):(w=96,x=0),p=1<<S-M,E=m=1<<O;do{c[y+(P>>M)+(m-=p)]=_<<24|w<<16|x}while(0!==m);for(p=1<<S-1;P&p;)p>>=1;if(0!==p?(P&=p-1,P+=p):P=0,C++,0==--N[S]){if(S===D)break;S=e[n+f[C]]}if(S>A&&(P&g)!==v){for(0===M&&(M=A),y+=E,T=1<<(O=S-M);O+M<D&&!((T-=N[O+M])<=0);)O++,T<<=1;if(I+=1<<O,1===t&&I>852||2===t&&I>592)return 1;c[v=P&g]=A<<24|O<<16|y-h}}return 0!==P&&(c[y+P]=S-M<<24|64<<16),d.bits=A,0}},function(t,e,n){\"use strict\";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1}},function(t,e,n){\"use strict\";n.r(e),n.d(e,\"applyPalette\",(function(){return Yt})),n.d(e,\"applyPaletteSync\",(function(){return Wt})),n.d(e,\"buildPalette\",(function(){return qt})),n.d(e,\"buildPaletteSync\",(function(){return Gt})),n.d(e,\"constants\",(function(){return a})),n.d(e,\"conversion\",(function(){return h})),n.d(e,\"distance\",(function(){return L})),n.d(e,\"image\",(function(){return Ot})),n.d(e,\"palette\",(function(){return tt})),n.d(e,\"quality\",(function(){return Bt})),n.d(e,\"utils\",(function(){return at}));var r=Object.defineProperty,i=(t,e)=>{for(var n in e)r(t,n,{get:e[n],enumerable:!0})},o=(t,e,n)=>(((t,e,n)=>{e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,\"symbol\"!=typeof e?e+\"\":e,n),n),a={};i(a,{bt709:()=>s});var s={};i(s,{Y:()=>u,x:()=>l,y:()=>c});var u=(t=>(t[t.RED=.2126]=\"RED\",t[t.GREEN=.7152]=\"GREEN\",t[t.BLUE=.0722]=\"BLUE\",t[t.WHITE=1]=\"WHITE\",t))(u||{}),l=(t=>(t[t.RED=.64]=\"RED\",t[t.GREEN=.3]=\"GREEN\",t[t.BLUE=.15]=\"BLUE\",t[t.WHITE=.3127]=\"WHITE\",t))(l||{}),c=(t=>(t[t.RED=.33]=\"RED\",t[t.GREEN=.6]=\"GREEN\",t[t.BLUE=.06]=\"BLUE\",t[t.WHITE=.329]=\"WHITE\",t))(c||{}),h={};function f(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}function d(t,e,n){return{x:.4124*(t=f(t/255))+.3576*(e=f(e/255))+.1805*(n=f(n/255)),y:.2126*t+.7152*e+.0722*n,z:.0193*t+.1192*e+.9505*n}}i(h,{lab2rgb:()=>N,lab2xyz:()=>P,rgb2hsl:()=>x,rgb2lab:()=>A,rgb2xyz:()=>d,xyz2lab:()=>D,xyz2rgb:()=>j});var p={};function m(t){return t*(Math.PI/180)}function v(t,e,n){let r=t;return r<e&&(r=e),r<n&&(r=n),r}function g(t,e,n){let r=t;return r>e&&(r=e),r>n&&(r=n),r}function y(t,e,n){return t>n&&(t=n),t<e&&(t=e),0|t}function b(t){return(t=Math.round(t))>255?t=255:t<0&&(t=0),t}function _(t){return t>255?t=255:t<0&&(t=0),t}function w(t,e){const n=typeof t[0];let r;if(\"number\"===n||\"string\"===n){const n=Object.create(null);for(let e=0,r=t.length;e<r;e++){const r=t[e];n[r]||0===n[r]||(n[r]=e)}r=t.sort(((t,r)=>e(t,r)||n[t]-n[r]))}else{const n=t.slice(0);r=t.sort(((t,r)=>e(t,r)||n.indexOf(t)-n.indexOf(r)))}return r}function x(t,e,n){const r=g(t,e,n),i=v(t,e,n),o=i-r,a=(r+i)/510;let s=0;a>0&&a<1&&(s=o/(a<.5?i+r:510-i-r));let u=0;return o>0&&(u=i===t?(e-n)/o:i===e?2+(n-t)/o:4+(t-e)/o,u*=60,u<0&&(u+=360)),{h:u,s,l:a}}i(p,{degrees2radians:()=>m,inRange0to255:()=>_,inRange0to255Rounded:()=>b,intInRange:()=>y,max3:()=>v,min3:()=>g,stableSort:()=>w});var k=.95047,S=1,C=1.08883;function E(t){return t>.008856?t**(1/3):7.787*t+16/116}function D(t,e,n){if(t=E(t/k),e=E(e/S),n=E(n/C),116*e-16<0)throw new Error(\"xxx\");return{L:Math.max(0,116*e-16),a:500*(t-e),b:200*(e-n)}}function A(t,e,n){const r=d(t,e,n);return D(r.x,r.y,r.z)}var O=.95047,M=1,T=1.08883;function I(t){return t>.206893034?t**3:(t-16/116)/7.787}function P(t,e,n){const r=(t+16)/116,i=r-n/200;return{x:O*I(e/500+r),y:M*I(r),z:T*I(i)}}function F(t){return t>.0031308?1.055*t**(1/2.4)-.055:12.92*t}function j(t,e,n){const r=F(3.2406*t+-1.5372*e+-.4986*n),i=F(-.9689*t+1.8758*e+.0415*n),o=F(.0557*t+-.204*e+1.057*n);return{r:b(255*r),g:b(255*i),b:b(255*o)}}function N(t,e,n){const r=P(t,e,n);return j(r.x,r.y,r.z)}var L={};i(L,{AbstractDistanceCalculator:()=>B,AbstractEuclidean:()=>G,AbstractManhattan:()=>Z,CIE94GraphicArts:()=>R,CIE94Textiles:()=>z,CIEDE2000:()=>V,CMetric:()=>H,Euclidean:()=>q,EuclideanBT709:()=>W,EuclideanBT709NoAlpha:()=>Y,Manhattan:()=>K,ManhattanBT709:()=>J,ManhattanNommyde:()=>X,PNGQuant:()=>Q});var B=class{constructor(){o(this,\"_maxDistance\"),o(this,\"_whitePoint\"),this._setDefaults(),this.setWhitePoint(255,255,255,255)}setWhitePoint(t,e,n,r){this._whitePoint={r:t>0?255/t:0,g:e>0?255/e:0,b:n>0?255/n:0,a:r>0?255/r:0},this._maxDistance=this.calculateRaw(t,e,n,r,0,0,0,0)}calculateNormalized(t,e){return this.calculateRaw(t.r,t.g,t.b,t.a,e.r,e.g,e.b,e.a)/this._maxDistance}},$=class extends B{calculateRaw(t,e,n,r,i,o,a,s){const u=A(_(t*this._whitePoint.r),_(e*this._whitePoint.g),_(n*this._whitePoint.b)),l=A(_(i*this._whitePoint.r),_(o*this._whitePoint.g),_(a*this._whitePoint.b)),c=u.L-l.L,h=u.a-l.a,f=u.b-l.b,d=Math.sqrt(u.a*u.a+u.b*u.b),p=d-Math.sqrt(l.a*l.a+l.b*l.b);let m=h*h+f*f-p*p;m=m<0?0:Math.sqrt(m);const v=(s-r)*this._whitePoint.a*this._kA;return Math.sqrt((c/this._Kl)**2+(p/(1+this._K1*d))**2+(m/(1+this._K2*d))**2+v**2)}},z=class extends ${_setDefaults(){this._Kl=2,this._K1=.048,this._K2=.014,this._kA=12.5/255}},R=class extends ${_setDefaults(){this._Kl=1,this._K1=.045,this._K2=.015,this._kA=25/255}},U=class extends B{_setDefaults(){}static _calculatehp(t,e){const n=Math.atan2(t,e);return n>=0?n:n+U._deg360InRad}static _calculateRT(t,e){const n=e**7,r=2*Math.sqrt(n/(n+U._pow25to7)),i=U._deg30InRad*Math.exp(-(((t-U._deg275InRad)/U._deg25InRad)**2));return-Math.sin(2*i)*r}static _calculateT(t){return 1-.17*Math.cos(t-U._deg30InRad)+.24*Math.cos(2*t)+.32*Math.cos(3*t+U._deg6InRad)-.2*Math.cos(4*t-U._deg63InRad)}static _calculate_ahp(t,e,n,r){const i=n+r;return 0===t?i:e<=U._deg180InRad?i/2:i<U._deg360InRad?(i+U._deg360InRad)/2:(i-U._deg360InRad)/2}static _calculate_dHp(t,e,n,r){let i;return i=0===t?0:e<=U._deg180InRad?n-r:n<=r?n-r+U._deg360InRad:n-r-U._deg360InRad,2*Math.sqrt(t)*Math.sin(i/2)}calculateRaw(t,e,n,r,i,o,a,s){const u=A(_(t*this._whitePoint.r),_(e*this._whitePoint.g),_(n*this._whitePoint.b)),l=A(_(i*this._whitePoint.r),_(o*this._whitePoint.g),_(a*this._whitePoint.b)),c=(s-r)*this._whitePoint.a*U._kA,h=this.calculateRawInLab(u,l);return Math.sqrt(h+c*c)}calculateRawInLab(t,e){const n=t.L,r=t.a,i=t.b,o=e.L,a=e.a,s=e.b,u=((Math.sqrt(r*r+i*i)+Math.sqrt(a*a+s*s))/2)**7,l=.5*(1-Math.sqrt(u/(u+U._pow25to7))),c=(1+l)*r,h=(1+l)*a,f=Math.sqrt(c*c+i*i),d=Math.sqrt(h*h+s*s),p=f*d,m=U._calculatehp(i,c),v=U._calculatehp(s,h),g=Math.abs(m-v),y=o-n,b=d-f,_=U._calculate_dHp(p,g,v,m),w=U._calculate_ahp(p,g,m,v),x=(f+d)/2,k=((n+o)/2-50)**2,S=b/(1+.045*x),C=_/(1+.015*U._calculateT(w)*x);return(y/(1+.015*k/Math.sqrt(20+k)))**2+S**2+C**2+U._calculateRT(w,x)*S*C}},V=U;o(V,\"_kA\",25/255),o(V,\"_pow25to7\",25**7),o(V,\"_deg360InRad\",m(360)),o(V,\"_deg180InRad\",m(180)),o(V,\"_deg30InRad\",m(30)),o(V,\"_deg6InRad\",m(6)),o(V,\"_deg63InRad\",m(63)),o(V,\"_deg275InRad\",m(275)),o(V,\"_deg25InRad\",m(25));var H=class extends B{calculateRaw(t,e,n,r,i,o,a,s){const u=(t+i)/2*this._whitePoint.r,l=(t-i)*this._whitePoint.r,c=(e-o)*this._whitePoint.g,h=(n-a)*this._whitePoint.b,f=((512+u)*l*l>>8)+4*c*c+((767-u)*h*h>>8),d=(s-r)*this._whitePoint.a;return Math.sqrt(f+d*d)}_setDefaults(){}},G=class extends B{calculateRaw(t,e,n,r,i,o,a,s){const u=i-t,l=o-e,c=a-n,h=s-r;return Math.sqrt(this._kR*u*u+this._kG*l*l+this._kB*c*c+this._kA*h*h)}},q=class extends G{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},W=class extends G{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},Y=class extends G{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=0}},Z=class extends B{calculateRaw(t,e,n,r,i,o,a,s){let u=i-t,l=o-e,c=a-n,h=s-r;return u<0&&(u=0-u),l<0&&(l=0-l),c<0&&(c=0-c),h<0&&(h=0-h),this._kR*u+this._kG*l+this._kB*c+this._kA*h}},K=class extends Z{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},X=class extends Z{_setDefaults(){this._kR=.4984,this._kG=.8625,this._kB=.2979,this._kA=1}},J=class extends Z{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},Q=class extends B{calculateRaw(t,e,n,r,i,o,a,s){const u=(s-r)*this._whitePoint.a;return this._colordifferenceCh(t*this._whitePoint.r,i*this._whitePoint.r,u)+this._colordifferenceCh(e*this._whitePoint.g,o*this._whitePoint.g,u)+this._colordifferenceCh(n*this._whitePoint.b,a*this._whitePoint.b,u)}_colordifferenceCh(t,e,n){const r=t-e,i=r+n;return r*r+i*i}_setDefaults(){}},tt={};i(tt,{AbstractPaletteQuantizer:()=>et,ColorHistogram:()=>yt,NeuQuant:()=>dt,NeuQuantFloat:()=>vt,RGBQuant:()=>_t,WuColorCube:()=>Et,WuQuant:()=>At});var et=class{quantizeSync(){for(const t of this.quantize())if(t.palette)return t.palette;throw new Error(\"unreachable\")}},nt=class{constructor(){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),o(this,\"uint32\"),o(this,\"rgba\"),this.uint32=-1>>>0,this.r=this.g=this.b=this.a=0,this.rgba=new Array(4),this.rgba[0]=0,this.rgba[1]=0,this.rgba[2]=0,this.rgba[3]=0}static createByQuadruplet(t){const e=new nt;return e.r=0|t[0],e.g=0|t[1],e.b=0|t[2],e.a=0|t[3],e._loadUINT32(),e._loadQuadruplet(),e}static createByRGBA(t,e,n,r){const i=new nt;return i.r=0|t,i.g=0|e,i.b=0|n,i.a=0|r,i._loadUINT32(),i._loadQuadruplet(),i}static createByUint32(t){const e=new nt;return e.uint32=t>>>0,e._loadRGBA(),e._loadQuadruplet(),e}from(t){this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this.uint32=t.uint32,this.rgba[0]=t.r,this.rgba[1]=t.g,this.rgba[2]=t.b,this.rgba[3]=t.a}getLuminosity(t){let e=this.r,n=this.g,r=this.b;return t&&(e=Math.min(255,255-this.a+this.a*e/255),n=Math.min(255,255-this.a+this.a*n/255),r=Math.min(255,255-this.a+this.a*r/255)),.2126*e+.7152*n+.0722*r}_loadUINT32(){this.uint32=(this.a<<24|this.b<<16|this.g<<8|this.r)>>>0}_loadRGBA(){this.r=255&this.uint32,this.g=this.uint32>>>8&255,this.b=this.uint32>>>16&255,this.a=this.uint32>>>24&255}_loadQuadruplet(){this.rgba[0]=this.r,this.rgba[1]=this.g,this.rgba[2]=this.b,this.rgba[3]=this.a}},rt=class{constructor(){o(this,\"_pointArray\"),o(this,\"_width\"),o(this,\"_height\"),this._width=0,this._height=0,this._pointArray=[]}getWidth(){return this._width}getHeight(){return this._height}setWidth(t){this._width=t}setHeight(t){this._height=t}getPointArray(){return this._pointArray}clone(){const t=new rt;t._width=this._width,t._height=this._height;for(let e=0,n=this._pointArray.length;e<n;e++)t._pointArray[e]=nt.createByUint32(0|this._pointArray[e].uint32);return t}toUint32Array(){const t=this._pointArray.length,e=new Uint32Array(t);for(let n=0;n<t;n++)e[n]=this._pointArray[n].uint32;return e}toUint8Array(){return new Uint8Array(this.toUint32Array().buffer)}static fromHTMLImageElement(t){const e=t.naturalWidth,n=t.naturalHeight,r=document.createElement(\"canvas\");r.width=e,r.height=n;return r.getContext(\"2d\").drawImage(t,0,0,e,n,0,0,e,n),rt.fromHTMLCanvasElement(r)}static fromHTMLCanvasElement(t){const e=t.width,n=t.height,r=t.getContext(\"2d\").getImageData(0,0,e,n);return rt.fromImageData(r)}static fromImageData(t){const e=t.width,n=t.height;return rt.fromUint8Array(t.data,e,n)}static fromUint8Array(t,e,n){switch(Object.prototype.toString.call(t)){case\"[object Uint8ClampedArray]\":case\"[object Uint8Array]\":break;default:t=new Uint8Array(t)}const r=new Uint32Array(t.buffer);return rt.fromUint32Array(r,e,n)}static fromUint32Array(t,e,n){const r=new rt;r._width=e,r._height=n;for(let e=0,n=t.length;e<n;e++)r._pointArray[e]=nt.createByUint32(0|t[e]);return r}static fromBuffer(t,e,n){const r=new Uint32Array(t.buffer,t.byteOffset,t.byteLength/Uint32Array.BYTES_PER_ELEMENT);return rt.fromUint32Array(r,e,n)}};function it(t,e){const n=360/e;for(let r=1,i=n-n/2;r<e;r++,i+=n)if(t>=i&&t<i+n)return r;return 0}var ot=class{constructor(){o(this,\"_pointContainer\"),o(this,\"_pointArray\",[]),o(this,\"_i32idx\",{}),this._pointContainer=new rt,this._pointContainer.setHeight(1),this._pointArray=this._pointContainer.getPointArray()}add(t){this._pointArray.push(t),this._pointContainer.setWidth(this._pointArray.length)}has(t){for(let e=this._pointArray.length-1;e>=0;e--)if(t.uint32===this._pointArray[e].uint32)return!0;return!1}getNearestColor(t,e){return this._pointArray[0|this._getNearestIndex(t,e)]}getPointContainer(){return this._pointContainer}_nearestPointFromCache(t){return\"number\"==typeof this._i32idx[t]?this._i32idx[t]:-1}_getNearestIndex(t,e){let n=this._nearestPointFromCache(\"\"+e.uint32);if(n>=0)return n;let r=Number.MAX_VALUE;n=0;for(let i=0,o=this._pointArray.length;i<o;i++){const o=this._pointArray[i],a=t.calculateRaw(e.r,e.g,e.b,e.a,o.r,o.g,o.b,o.a);a<r&&(r=a,n=i)}return this._i32idx[e.uint32]=n,n}sort(){this._i32idx={},this._pointArray.sort(((t,e)=>{const n=x(t.r,t.g,t.b),r=x(e.r,e.g,e.b),i=t.r===t.g&&t.g===t.b?0:1+it(n.h,10),o=(e.r===e.g&&e.g===e.b?0:1+it(r.h,10))-i;if(o)return-o;const a=t.getLuminosity(!0),s=e.getLuminosity(!0);if(s-a!=0)return s-a;const u=(100*r.s|0)-(100*n.s|0);return u?-u:0}))}},at={};i(at,{HueStatistics:()=>ut,Palette:()=>ot,Point:()=>nt,PointContainer:()=>rt,ProgressTracker:()=>ct,arithmetic:()=>p});var st=class{constructor(){o(this,\"num\",0),o(this,\"cols\",[])}},ut=class{constructor(t,e){o(this,\"_numGroups\"),o(this,\"_minCols\"),o(this,\"_stats\"),o(this,\"_groupsFull\"),this._numGroups=t,this._minCols=e,this._stats=[];for(let e=0;e<=t;e++)this._stats[e]=new st;this._groupsFull=0}check(t){this._groupsFull===this._numGroups+1&&(this.check=()=>{});const e=255&t,n=t>>>8&255,r=t>>>16&255,i=e===n&&n===r?0:1+it(x(e,n,r).h,this._numGroups),o=this._stats[i],a=this._minCols;o.num++,o.num>a||(o.num===a&&this._groupsFull++,o.num<=a&&this._stats[i].cols.push(t))}injectIntoDictionary(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{t[e]?t[e]++:t[e]=1}))}injectIntoArray(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{-1===t.indexOf(e)&&t.push(e)}))}},lt=class{constructor(t,e){o(this,\"progress\"),o(this,\"_step\"),o(this,\"_range\"),o(this,\"_last\"),o(this,\"_progressRange\"),this._range=t,this._progressRange=e,this._step=Math.max(1,this._range/(lt.steps+1)|0),this._last=-this._step,this.progress=0}shouldNotify(t){return t-this._last>=this._step&&(this._last=t,this.progress=Math.min(this._progressRange*this._last/this._range,this._progressRange),!0)}},ct=lt;o(ct,\"steps\",100);var ht=class{constructor(t){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return nt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,n,r){this.r-=0|t,this.g-=0|e,this.b-=0|n,this.a-=0|r}},ft=class extends et{constructor(t,e=256){super(),o(this,\"_pointArray\"),o(this,\"_networkSize\"),o(this,\"_network\"),o(this,\"_sampleFactor\"),o(this,\"_radPower\"),o(this,\"_freq\"),o(this,\"_bias\"),o(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new ht((t<<11)/this._networkSize|0),this._freq[t]=ft._initialBias/this._networkSize|0,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<ft._minpicturebytes&&(t=1);const n=30+(t-1)/3|0,r=e/t|0;let i,o=r/ft._nCycles|0,a=ft._initAlpha,s=(this._networkSize>>3)*ft._radiusBias,u=s>>ft._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*ft._radBias/(u*u))>>>0;i=e<ft._minpicturebytes?1:e%ft._prime1!=0?ft._prime1:e%ft._prime2!=0?ft._prime2:e%ft._prime3!=0?ft._prime3:ft._prime4;const l=new ct(r,99);for(let t=0,c=0;t<r;){l.shouldNotify(t)&&(yield{progress:l.progress});const r=this._pointArray[c],h=r.b<<3,f=r.g<<3,d=r.r<<3,p=r.a<<3,m=this._contest(h,f,d,p);if(this._alterSingle(a,m,h,f,d,p),0!==u&&this._alterNeighbour(u,m,h,f,d,p),c+=i,c>=e&&(c-=e),t++,0===o&&(o=1),t%o==0){a-=a/n|0,s-=s/ft._radiusDecrease|0,u=s>>ft._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*ft._radBias/(u*u))>>>0}}}_buildPalette(){const t=new ot;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,n,r,i,o){let a=e-t;a<-1&&(a=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,l=e-1,c=1;for(;u<s||l>a;){const t=this._radPower[c++]/ft._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-r),t*(e.b-n),t*(e.a-o))}if(l>a){const e=this._network[l--];e.subtract(t*(e.r-i),t*(e.g-r),t*(e.b-n),t*(e.a-o))}}}_alterSingle(t,e,n,r,i,o){t/=ft._initAlpha;const a=this._network[e];a.subtract(t*(a.r-i),t*(a.g-r),t*(a.b-n),t*(a.a-o))}_contest(t,e,n,r){let i=~(1<<31),o=i,a=-1,s=a;for(let u=0;u<this._networkSize;u++){const l=this._network[u],c=8160*this._distance.calculateNormalized(l,{r:n,g:e,b:t,a:r})|0;c<i&&(i=c,a=u);const h=c-(this._bias[u]>>ft._initialBiasShift-3);h<o&&(o=h,s=u);const f=this._freq[u]>>ft._betaShift;this._freq[u]-=f,this._bias[u]+=f<<ft._gammaShift}return this._freq[a]+=ft._beta,this._bias[a]-=ft._betaGamma,s}},dt=ft;o(dt,\"_prime1\",499),o(dt,\"_prime2\",491),o(dt,\"_prime3\",487),o(dt,\"_prime4\",503),o(dt,\"_minpicturebytes\",ft._prime4),o(dt,\"_nCycles\",100),o(dt,\"_initialBiasShift\",16),o(dt,\"_initialBias\",1<<ft._initialBiasShift),o(dt,\"_gammaShift\",10),o(dt,\"_betaShift\",10),o(dt,\"_beta\",ft._initialBias>>ft._betaShift),o(dt,\"_betaGamma\",ft._initialBias<<ft._gammaShift-ft._betaShift),o(dt,\"_radiusBiasShift\",6),o(dt,\"_radiusBias\",1<<ft._radiusBiasShift),o(dt,\"_radiusDecrease\",30),o(dt,\"_alphaBiasShift\",10),o(dt,\"_initAlpha\",1<<ft._alphaBiasShift),o(dt,\"_radBiasShift\",8),o(dt,\"_radBias\",1<<ft._radBiasShift),o(dt,\"_alphaRadBiasShift\",ft._alphaBiasShift+ft._radBiasShift),o(dt,\"_alphaRadBias\",1<<ft._alphaRadBiasShift);var pt=class{constructor(t){o(this,\"r\"),o(this,\"g\"),o(this,\"b\"),o(this,\"a\"),this.r=this.g=this.b=this.a=t}toPoint(){return nt.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,n,r){this.r-=t,this.g-=e,this.b-=n,this.a-=r}},mt=class extends et{constructor(t,e=256){super(),o(this,\"_pointArray\"),o(this,\"_networkSize\"),o(this,\"_network\"),o(this,\"_sampleFactor\"),o(this,\"_radPower\"),o(this,\"_freq\"),o(this,\"_bias\"),o(this,\"_distance\"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new pt((t<<11)/this._networkSize),this._freq[t]=mt._initialBias/this._networkSize,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<mt._minpicturebytes&&(t=1);const n=30+(t-1)/3,r=e/t;let i,o=r/mt._nCycles|0,a=mt._initAlpha,s=(this._networkSize>>3)*mt._radiusBias,u=s>>mt._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*mt._radBias/(u*u));i=e<mt._minpicturebytes?1:e%mt._prime1!=0?mt._prime1:e%mt._prime2!=0?mt._prime2:e%mt._prime3!=0?mt._prime3:mt._prime4;const l=new ct(r,99);for(let t=0,c=0;t<r;){l.shouldNotify(t)&&(yield{progress:l.progress});const r=this._pointArray[c],h=r.b<<3,f=r.g<<3,d=r.r<<3,p=r.a<<3,m=this._contest(h,f,d,p);if(this._alterSingle(a,m,h,f,d,p),0!==u&&this._alterNeighbour(u,m,h,f,d,p),c+=i,c>=e&&(c-=e),t++,0===o&&(o=1),t%o==0){a-=a/n,s-=s/mt._radiusDecrease,u=s>>mt._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=a*((u*u-t*t)*mt._radBias/(u*u))}}}_buildPalette(){const t=new ot;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,n,r,i,o){let a=e-t;a<-1&&(a=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,l=e-1,c=1;for(;u<s||l>a;){const t=this._radPower[c++]/mt._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-r),t*(e.b-n),t*(e.a-o))}if(l>a){const e=this._network[l--];e.subtract(t*(e.r-i),t*(e.g-r),t*(e.b-n),t*(e.a-o))}}}_alterSingle(t,e,n,r,i,o){t/=mt._initAlpha;const a=this._network[e];a.subtract(t*(a.r-i),t*(a.g-r),t*(a.b-n),t*(a.a-o))}_contest(t,e,n,r){let i=~(1<<31),o=i,a=-1,s=a;for(let u=0;u<this._networkSize;u++){const l=this._network[u],c=8160*this._distance.calculateNormalized(l,{r:n,g:e,b:t,a:r});c<i&&(i=c,a=u);const h=c-(this._bias[u]>>mt._initialBiasShift-3);h<o&&(o=h,s=u);const f=this._freq[u]>>mt._betaShift;this._freq[u]-=f,this._bias[u]+=f<<mt._gammaShift}return this._freq[a]+=mt._beta,this._bias[a]-=mt._betaGamma,s}},vt=mt;o(vt,\"_prime1\",499),o(vt,\"_prime2\",491),o(vt,\"_prime3\",487),o(vt,\"_prime4\",503),o(vt,\"_minpicturebytes\",mt._prime4),o(vt,\"_nCycles\",100),o(vt,\"_initialBiasShift\",16),o(vt,\"_initialBias\",1<<mt._initialBiasShift),o(vt,\"_gammaShift\",10),o(vt,\"_betaShift\",10),o(vt,\"_beta\",mt._initialBias>>mt._betaShift),o(vt,\"_betaGamma\",mt._initialBias<<mt._gammaShift-mt._betaShift),o(vt,\"_radiusBiasShift\",6),o(vt,\"_radiusBias\",1<<mt._radiusBiasShift),o(vt,\"_radiusDecrease\",30),o(vt,\"_alphaBiasShift\",10),o(vt,\"_initAlpha\",1<<mt._alphaBiasShift),o(vt,\"_radBiasShift\",8),o(vt,\"_radBias\",1<<mt._radBiasShift),o(vt,\"_alphaRadBiasShift\",mt._alphaBiasShift+mt._radBiasShift),o(vt,\"_alphaRadBias\",1<<mt._alphaRadBiasShift);var gt=class{constructor(t,e){o(this,\"_method\"),o(this,\"_hueStats\"),o(this,\"_histogram\"),o(this,\"_initColors\"),o(this,\"_minHueCols\"),this._method=t,this._minHueCols=e<<2,this._initColors=e<<2,this._hueStats=new ut(gt._hueGroups,this._minHueCols),this._histogram=Object.create(null)}sample(t){switch(this._method){case 1:this._colorStats1D(t);break;case 2:this._colorStats2D(t)}}getImportanceSortedColorsIDXI32(){const t=w(Object.keys(this._histogram),((t,e)=>this._histogram[e]-this._histogram[t]));if(0===t.length)return[];let e;switch(this._method){case 1:const n=Math.min(t.length,this._initColors),r=t[n-1],i=this._histogram[r];e=t.slice(0,n);let o=n;const a=t.length;for(;o<a&&this._histogram[t[o]]===i;)e.push(t[o++]);this._hueStats.injectIntoArray(e);break;case 2:e=t;break;default:throw new Error(\"Incorrect method\")}return e.map((t=>+t))}_colorStats1D(t){const e=this._histogram,n=t.getPointArray(),r=n.length;for(let t=0;t<r;t++){const r=n[t].uint32;this._hueStats.check(r),r in e?e[r]++:e[r]=1}}_colorStats2D(t){const e=t.getWidth(),n=t.getHeight(),r=t.getPointArray(),i=gt._boxSize[0],o=gt._boxSize[1],a=i*o,s=this._makeBoxes(e,n,i,o),u=this._histogram;s.forEach((t=>{let n=Math.round(t.w*t.h/a)*gt._boxPixels;n<2&&(n=2);const i={};this._iterateBox(t,e,(t=>{const e=r[t].uint32;this._hueStats.check(e),e in u?u[e]++:e in i?++i[e]>=n&&(u[e]=i[e]):i[e]=1}))})),this._hueStats.injectIntoDictionary(u)}_iterateBox(t,e,n){const r=t,i=r.y*e+r.x,o=(r.y+r.h-1)*e+(r.x+r.w-1),a=e-r.w+1;let s=0,u=i;do{n.call(this,u),u+=++s%r.w==0?a:1}while(u<=o)}_makeBoxes(t,e,n,r){const i=t%n,o=e%r,a=t-i,s=e-o,u=[];for(let l=0;l<e;l+=r)for(let e=0;e<t;e+=n)u.push({x:e,y:l,w:e===a?i:n,h:l===s?o:r});return u}},yt=gt;o(yt,\"_boxSize\",[64,64]),o(yt,\"_boxPixels\",2),o(yt,\"_hueGroups\",10);var bt=class{constructor(t,e,n){o(this,\"index\"),o(this,\"color\"),o(this,\"distance\"),this.index=t,this.color=e,this.distance=n}},_t=class extends et{constructor(t,e=256,n=2){super(),o(this,\"_colors\"),o(this,\"_initialDistance\"),o(this,\"_distanceIncrement\"),o(this,\"_histogram\"),o(this,\"_distance\"),this._distance=t,this._colors=e,this._histogram=new yt(n,e),this._initialDistance=.01,this._distanceIncrement=.005}sample(t){this._histogram.sample(t)}*quantize(){const t=this._histogram.getImportanceSortedColorsIDXI32();if(0===t.length)throw new Error(\"No colors in image\");yield*this._buildPalette(t)}*_buildPalette(t){const e=new ot,n=e.getPointContainer().getPointArray(),r=new Array(t.length);for(let e=0;e<t.length;e++)n.push(nt.createByUint32(t[e])),r[e]=1;const i=n.length,o=[];let a=i,s=this._initialDistance;const u=new ct(a-this._colors,99);for(;a>this._colors;){o.length=0;for(let t=0;t<i;t++){if(u.shouldNotify(i-a)&&(yield{progress:u.progress}),0===r[t])continue;const e=n[t];for(let u=t+1;u<i;u++){if(0===r[u])continue;const t=n[u],i=this._distance.calculateNormalized(e,t);i<s&&(o.push(new bt(u,t,i)),r[u]=0,a--)}}s+=a>3*this._colors?this._initialDistance:this._distanceIncrement}if(a<this._colors){w(o,((t,e)=>e.distance-t.distance));let t=0;for(;a<this._colors&&t<o.length;){r[o[t].index]=1,a++,t++}}let l=n.length;for(let t=l-1;t>=0;t--)0===r[t]&&(t!==l-1&&(n[t]=n[l-1]),--l);n.length=l,e.sort(),yield{palette:e,progress:100}}};function wt(t){const e=[];for(let n=0;n<t;n++)e[n]=0;return e}function xt(t,e,n,r){const i=new Array(t);for(let o=0;o<t;o++){i[o]=new Array(e);for(let t=0;t<e;t++){i[o][t]=new Array(n);for(let e=0;e<n;e++){i[o][t][e]=new Array(r);for(let n=0;n<r;n++)i[o][t][e][n]=0}}}return i}function kt(t,e,n){const r=new Array(t);for(let i=0;i<t;i++){r[i]=new Array(e);for(let t=0;t<e;t++){r[i][t]=new Array(n);for(let e=0;e<n;e++)r[i][t][e]=0}}return r}function St(t,e,n,r,i){for(let o=0;o<e;o++){t[o]=[];for(let e=0;e<n;e++){t[o][e]=[];for(let n=0;n<r;n++)t[o][e][n]=i}}}function Ct(t,e,n){for(let r=0;r<e;r++)t[r]=n}var Et=class{constructor(){o(this,\"redMinimum\"),o(this,\"redMaximum\"),o(this,\"greenMinimum\"),o(this,\"greenMaximum\"),o(this,\"blueMinimum\"),o(this,\"blueMaximum\"),o(this,\"volume\"),o(this,\"alphaMinimum\"),o(this,\"alphaMaximum\")}},Dt=class extends et{constructor(t,e=256,n=5){super(),o(this,\"_reds\"),o(this,\"_greens\"),o(this,\"_blues\"),o(this,\"_alphas\"),o(this,\"_sums\"),o(this,\"_weights\"),o(this,\"_momentsRed\"),o(this,\"_momentsGreen\"),o(this,\"_momentsBlue\"),o(this,\"_momentsAlpha\"),o(this,\"_moments\"),o(this,\"_table\"),o(this,\"_pixels\"),o(this,\"_cubes\"),o(this,\"_colors\"),o(this,\"_significantBitsPerChannel\"),o(this,\"_maxSideIndex\"),o(this,\"_alphaMaxSideIndex\"),o(this,\"_sideSize\"),o(this,\"_alphaSideSize\"),o(this,\"_distance\"),this._distance=t,this._setQuality(n),this._initialize(e)}sample(t){const e=t.getPointArray();for(let t=0,n=e.length;t<n;t++)this._addColor(e[t]);this._pixels=this._pixels.concat(e)}*quantize(){yield*this._preparePalette();const t=new ot;for(let e=0;e<this._colors;e++)if(this._sums[e]>0){const n=this._sums[e],r=this._reds[e]/n,i=this._greens[e]/n,o=this._blues[e]/n,a=this._alphas[e]/n,s=nt.createByRGBA(0|r,0|i,0|o,0|a);t.add(s)}t.sort(),yield{palette:t,progress:100}}*_preparePalette(){yield*this._calculateMoments();let t=0;const e=wt(this._colors);for(let n=1;n<this._colors;++n){this._cut(this._cubes[t],this._cubes[n])?(e[t]=this._cubes[t].volume>1?this._calculateVariance(this._cubes[t]):0,e[n]=this._cubes[n].volume>1?this._calculateVariance(this._cubes[n]):0):(e[t]=0,n--),t=0;let r=e[0];for(let i=1;i<=n;++i)e[i]>r&&(r=e[i],t=i);if(r<=0){this._colors=n+1;break}}const n=[],r=[],i=[],o=[];for(let t=0;t<this._colors;++t){const e=Dt._volume(this._cubes[t],this._weights);e>0?(n[t]=Dt._volume(this._cubes[t],this._momentsRed)/e|0,r[t]=Dt._volume(this._cubes[t],this._momentsGreen)/e|0,i[t]=Dt._volume(this._cubes[t],this._momentsBlue)/e|0,o[t]=Dt._volume(this._cubes[t],this._momentsAlpha)/e|0):(n[t]=0,r[t]=0,i[t]=0,o[t]=0)}this._reds=wt(this._colors+1),this._greens=wt(this._colors+1),this._blues=wt(this._colors+1),this._alphas=wt(this._colors+1),this._sums=wt(this._colors+1);for(let t=0,e=this._pixels.length;t<e;t++){const e=this._pixels[t];let a=-1,s=Number.MAX_VALUE;for(let t=0;t<this._colors;t++){const u=n[t],l=r[t],c=i[t],h=o[t],f=this._distance.calculateRaw(u,l,c,h,e.r,e.g,e.b,e.a);f<s&&(s=f,a=t)}this._reds[a]+=e.r,this._greens[a]+=e.g,this._blues[a]+=e.b,this._alphas[a]+=e.a,this._sums[a]++}}_addColor(t){const e=8-this._significantBitsPerChannel,n=1+(t.r>>e),r=1+(t.g>>e),i=1+(t.b>>e),o=1+(t.a>>e);this._weights[o][n][r][i]++,this._momentsRed[o][n][r][i]+=t.r,this._momentsGreen[o][n][r][i]+=t.g,this._momentsBlue[o][n][r][i]+=t.b,this._momentsAlpha[o][n][r][i]+=t.a,this._moments[o][n][r][i]+=this._table[t.r]+this._table[t.g]+this._table[t.b]+this._table[t.a]}*_calculateMoments(){const t=[],e=[],n=[],r=[],i=[],o=[],a=kt(this._sideSize,this._sideSize,this._sideSize),s=kt(this._sideSize,this._sideSize,this._sideSize),u=kt(this._sideSize,this._sideSize,this._sideSize),l=kt(this._sideSize,this._sideSize,this._sideSize),c=kt(this._sideSize,this._sideSize,this._sideSize),h=kt(this._sideSize,this._sideSize,this._sideSize);let f=0;const d=new ct(this._alphaMaxSideIndex*this._maxSideIndex,99);for(let p=1;p<=this._alphaMaxSideIndex;++p){St(a,this._sideSize,this._sideSize,this._sideSize,0),St(s,this._sideSize,this._sideSize,this._sideSize,0),St(u,this._sideSize,this._sideSize,this._sideSize,0),St(l,this._sideSize,this._sideSize,this._sideSize,0),St(c,this._sideSize,this._sideSize,this._sideSize,0),St(h,this._sideSize,this._sideSize,this._sideSize,0);for(let m=1;m<=this._maxSideIndex;++m,++f){d.shouldNotify(f)&&(yield{progress:d.progress}),Ct(t,this._sideSize,0),Ct(e,this._sideSize,0),Ct(n,this._sideSize,0),Ct(r,this._sideSize,0),Ct(i,this._sideSize,0),Ct(o,this._sideSize,0);for(let f=1;f<=this._maxSideIndex;++f){let d=0,v=0,g=0,y=0,b=0,_=0;for(let w=1;w<=this._maxSideIndex;++w)d+=this._weights[p][m][f][w],v+=this._momentsRed[p][m][f][w],g+=this._momentsGreen[p][m][f][w],y+=this._momentsBlue[p][m][f][w],b+=this._momentsAlpha[p][m][f][w],_+=this._moments[p][m][f][w],t[w]+=d,e[w]+=v,n[w]+=g,r[w]+=y,i[w]+=b,o[w]+=_,a[m][f][w]=a[m-1][f][w]+t[w],s[m][f][w]=s[m-1][f][w]+e[w],u[m][f][w]=u[m-1][f][w]+n[w],l[m][f][w]=l[m-1][f][w]+r[w],c[m][f][w]=c[m-1][f][w]+i[w],h[m][f][w]=h[m-1][f][w]+o[w],this._weights[p][m][f][w]=this._weights[p-1][m][f][w]+a[m][f][w],this._momentsRed[p][m][f][w]=this._momentsRed[p-1][m][f][w]+s[m][f][w],this._momentsGreen[p][m][f][w]=this._momentsGreen[p-1][m][f][w]+u[m][f][w],this._momentsBlue[p][m][f][w]=this._momentsBlue[p-1][m][f][w]+l[m][f][w],this._momentsAlpha[p][m][f][w]=this._momentsAlpha[p-1][m][f][w]+c[m][f][w],this._moments[p][m][f][w]=this._moments[p-1][m][f][w]+h[m][f][w]}}}}static _volumeFloat(t,e){return e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMaximum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum])}static _volume(t,e){return 0|Dt._volumeFloat(t,e)}static _top(t,e,n,r){let i;switch(e){case Dt._alpha:i=r[n][t.redMaximum][t.greenMaximum][t.blueMaximum]-r[n][t.redMaximum][t.greenMinimum][t.blueMaximum]-r[n][t.redMinimum][t.greenMaximum][t.blueMaximum]+r[n][t.redMinimum][t.greenMinimum][t.blueMaximum]-(r[n][t.redMaximum][t.greenMaximum][t.blueMinimum]-r[n][t.redMaximum][t.greenMinimum][t.blueMinimum]-r[n][t.redMinimum][t.greenMaximum][t.blueMinimum]+r[n][t.redMinimum][t.greenMinimum][t.blueMinimum]);break;case Dt._red:i=r[t.alphaMaximum][n][t.greenMaximum][t.blueMaximum]-r[t.alphaMaximum][n][t.greenMinimum][t.blueMaximum]-r[t.alphaMinimum][n][t.greenMaximum][t.blueMaximum]+r[t.alphaMinimum][n][t.greenMinimum][t.blueMaximum]-(r[t.alphaMaximum][n][t.greenMaximum][t.blueMinimum]-r[t.alphaMaximum][n][t.greenMinimum][t.blueMinimum]-r[t.alphaMinimum][n][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][n][t.greenMinimum][t.blueMinimum]);break;case Dt._green:i=r[t.alphaMaximum][t.redMaximum][n][t.blueMaximum]-r[t.alphaMaximum][t.redMinimum][n][t.blueMaximum]-r[t.alphaMinimum][t.redMaximum][n][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][n][t.blueMaximum]-(r[t.alphaMaximum][t.redMaximum][n][t.blueMinimum]-r[t.alphaMaximum][t.redMinimum][n][t.blueMinimum]-r[t.alphaMinimum][t.redMaximum][n][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][n][t.blueMinimum]);break;case Dt._blue:i=r[t.alphaMaximum][t.redMaximum][t.greenMaximum][n]-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][n]-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][n]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][n]-(r[t.alphaMinimum][t.redMaximum][t.greenMaximum][n]-r[t.alphaMinimum][t.redMaximum][t.greenMinimum][n]-r[t.alphaMinimum][t.redMinimum][t.greenMaximum][n]+r[t.alphaMinimum][t.redMinimum][t.greenMinimum][n]);break;default:throw new Error(\"impossible\")}return 0|i}static _bottom(t,e,n){switch(e){case Dt._alpha:return-n[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+n[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+n[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-n[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-n[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+n[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+n[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-n[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case Dt._red:return-n[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+n[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+n[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-n[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-n[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+n[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+n[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-n[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case Dt._green:return-n[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]+n[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+n[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]-n[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-n[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+n[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+n[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-n[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case Dt._blue:return-n[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]+n[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+n[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]-n[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-(-n[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+n[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+n[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-n[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);default:return 0}}_calculateVariance(t){const e=Dt._volume(t,this._momentsRed),n=Dt._volume(t,this._momentsGreen),r=Dt._volume(t,this._momentsBlue),i=Dt._volume(t,this._momentsAlpha);return Dt._volumeFloat(t,this._moments)-(e*e+n*n+r*r+i*i)/Dt._volume(t,this._weights)}_maximize(t,e,n,r,i,o,a,s,u){const l=0|Dt._bottom(t,e,this._momentsRed),c=0|Dt._bottom(t,e,this._momentsGreen),h=0|Dt._bottom(t,e,this._momentsBlue),f=0|Dt._bottom(t,e,this._momentsAlpha),d=0|Dt._bottom(t,e,this._weights);let p=0,m=-1;for(let v=n;v<r;++v){let n=l+Dt._top(t,e,v,this._momentsRed),r=c+Dt._top(t,e,v,this._momentsGreen),g=h+Dt._top(t,e,v,this._momentsBlue),y=f+Dt._top(t,e,v,this._momentsAlpha),b=d+Dt._top(t,e,v,this._weights);if(0!==b){let t=n*n+r*r+g*g+y*y,e=t/b;n=i-n,r=o-r,g=a-g,y=s-y,b=u-b,0!==b&&(t=n*n+r*r+g*g+y*y,e+=t/b,e>p&&(p=e,m=v))}}return{max:p,position:m}}_cut(t,e){let n;const r=Dt._volume(t,this._momentsRed),i=Dt._volume(t,this._momentsGreen),o=Dt._volume(t,this._momentsBlue),a=Dt._volume(t,this._momentsAlpha),s=Dt._volume(t,this._weights),u=this._maximize(t,Dt._red,t.redMinimum+1,t.redMaximum,r,i,o,a,s),l=this._maximize(t,Dt._green,t.greenMinimum+1,t.greenMaximum,r,i,o,a,s),c=this._maximize(t,Dt._blue,t.blueMinimum+1,t.blueMaximum,r,i,o,a,s),h=this._maximize(t,Dt._alpha,t.alphaMinimum+1,t.alphaMaximum,r,i,o,a,s);if(h.max>=u.max&&h.max>=l.max&&h.max>=c.max){if(n=Dt._alpha,h.position<0)return!1}else n=u.max>=h.max&&u.max>=l.max&&u.max>=c.max?Dt._red:l.max>=h.max&&l.max>=u.max&&l.max>=c.max?Dt._green:Dt._blue;switch(e.redMaximum=t.redMaximum,e.greenMaximum=t.greenMaximum,e.blueMaximum=t.blueMaximum,e.alphaMaximum=t.alphaMaximum,n){case Dt._red:e.redMinimum=t.redMaximum=u.position,e.greenMinimum=t.greenMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case Dt._green:e.greenMinimum=t.greenMaximum=l.position,e.redMinimum=t.redMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case Dt._blue:e.blueMinimum=t.blueMaximum=c.position,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum,e.alphaMinimum=t.alphaMinimum;break;case Dt._alpha:e.alphaMinimum=t.alphaMaximum=h.position,e.blueMinimum=t.blueMinimum,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum}return t.volume=(t.redMaximum-t.redMinimum)*(t.greenMaximum-t.greenMinimum)*(t.blueMaximum-t.blueMinimum)*(t.alphaMaximum-t.alphaMinimum),e.volume=(e.redMaximum-e.redMinimum)*(e.greenMaximum-e.greenMinimum)*(e.blueMaximum-e.blueMinimum)*(e.alphaMaximum-e.alphaMinimum),!0}_initialize(t){this._colors=t,this._cubes=[];for(let e=0;e<t;e++)this._cubes[e]=new Et;this._cubes[0].redMinimum=0,this._cubes[0].greenMinimum=0,this._cubes[0].blueMinimum=0,this._cubes[0].alphaMinimum=0,this._cubes[0].redMaximum=this._maxSideIndex,this._cubes[0].greenMaximum=this._maxSideIndex,this._cubes[0].blueMaximum=this._maxSideIndex,this._cubes[0].alphaMaximum=this._alphaMaxSideIndex,this._weights=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsRed=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsGreen=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsBlue=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsAlpha=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._moments=xt(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._table=[];for(let t=0;t<256;++t)this._table[t]=t*t;this._pixels=[]}_setQuality(t=5){this._significantBitsPerChannel=t,this._maxSideIndex=1<<this._significantBitsPerChannel,this._alphaMaxSideIndex=this._maxSideIndex,this._sideSize=this._maxSideIndex+1,this._alphaSideSize=this._alphaMaxSideIndex+1}},At=Dt;o(At,\"_alpha\",3),o(At,\"_red\",2),o(At,\"_green\",1),o(At,\"_blue\",0);var Ot={};i(Ot,{AbstractImageQuantizer:()=>Mt,ErrorDiffusionArray:()=>Pt,ErrorDiffusionArrayKernel:()=>It,ErrorDiffusionRiemersma:()=>Lt,NearestColor:()=>Tt});var Mt=class{quantizeSync(t,e){for(const n of this.quantize(t,e))if(n.pointContainer)return n.pointContainer;throw new Error(\"unreachable\")}},Tt=class extends Mt{constructor(t){super(),o(this,\"_distance\"),this._distance=t}*quantize(t,e){const n=t.getPointArray(),r=t.getWidth(),i=t.getHeight(),o=new ct(i,99);for(let t=0;t<i;t++){o.shouldNotify(t)&&(yield{progress:o.progress});for(let i=0,o=t*r;i<r;i++,o++){const t=n[o];t.from(e.getNearestColor(this._distance,t))}}yield{pointContainer:t,progress:100}}},It=(t=>(t[t.FloydSteinberg=0]=\"FloydSteinberg\",t[t.FalseFloydSteinberg=1]=\"FalseFloydSteinberg\",t[t.Stucki=2]=\"Stucki\",t[t.Atkinson=3]=\"Atkinson\",t[t.Jarvis=4]=\"Jarvis\",t[t.Burkes=5]=\"Burkes\",t[t.Sierra=6]=\"Sierra\",t[t.TwoSierra=7]=\"TwoSierra\",t[t.SierraLite=8]=\"SierraLite\",t))(It||{}),Pt=class extends Mt{constructor(t,e,n=!0,r=0,i=!1){super(),o(this,\"_minColorDistance\"),o(this,\"_serpentine\"),o(this,\"_kernel\"),o(this,\"_calculateErrorLikeGIMP\"),o(this,\"_distance\"),this._setKernel(e),this._distance=t,this._minColorDistance=r,this._serpentine=n,this._calculateErrorLikeGIMP=i}*quantize(t,e){const n=t.getPointArray(),r=new nt,i=t.getWidth(),o=t.getHeight(),a=[];let s=1,u=1;for(const t of this._kernel){const e=t[2]+1;u<e&&(u=e)}for(let t=0;t<u;t++)this._fillErrorLine(a[t]=[],i);const l=new ct(o,99);for(let t=0;t<o;t++){l.shouldNotify(t)&&(yield{progress:l.progress}),this._serpentine&&(s*=-1);const u=t*i,c=1===s?0:i-1,h=1===s?i:-1;this._fillErrorLine(a[0],i),a.push(a.shift());const f=a[0];for(let l=c,d=u+c;l!==h;l+=s,d+=s){const u=n[d],c=f[l];r.from(u);const h=nt.createByRGBA(b(u.r+c[0]),b(u.g+c[1]),b(u.b+c[2]),b(u.a+c[3])),p=e.getNearestColor(this._distance,h);if(u.from(p),this._minColorDistance){if(this._distance.calculateNormalized(r,p)<this._minColorDistance)continue}let m,v,g,y;this._calculateErrorLikeGIMP?(m=h.r-p.r,v=h.g-p.g,g=h.b-p.b,y=h.a-p.a):(m=r.r-p.r,v=r.g-p.g,g=r.b-p.b,y=r.a-p.a);const _=1===s?0:this._kernel.length-1,w=1===s?this._kernel.length:-1;for(let e=_;e!==w;e+=s){const n=this._kernel[e][1]*s,r=this._kernel[e][2];if(n+l>=0&&n+l<i&&r+t>=0&&r+t<o){const t=this._kernel[e][0],i=a[r][n+l];i[0]+=m*t,i[1]+=v*t,i[2]+=g*t,i[3]+=y*t}}}}yield{pointContainer:t,progress:100}}_fillErrorLine(t,e){t.length>e&&(t.length=e);const n=t.length;for(let e=0;e<n;e++){const n=t[e];n[0]=n[1]=n[2]=n[3]=0}for(let r=n;r<e;r++)t[r]=[0,0,0,0]}_setKernel(t){switch(t){case 0:this._kernel=[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]];break;case 1:this._kernel=[[3/8,1,0],[3/8,0,1],[2/8,1,1]];break;case 2:this._kernel=[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]];break;case 3:this._kernel=[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]];break;case 4:this._kernel=[[7/48,1,0],[5/48,2,0],[3/48,-2,1],[5/48,-1,1],[7/48,0,1],[5/48,1,1],[3/48,2,1],[1/48,-2,2],[3/48,-1,2],[5/48,0,2],[3/48,1,2],[1/48,2,2]];break;case 5:this._kernel=[[.25,1,0],[4/32,2,0],[2/32,-2,1],[4/32,-1,1],[.25,0,1],[4/32,1,1],[2/32,2,1]];break;case 6:this._kernel=[[5/32,1,0],[3/32,2,0],[2/32,-2,1],[4/32,-1,1],[5/32,0,1],[4/32,1,1],[2/32,2,1],[2/32,-1,2],[3/32,0,2],[2/32,1,2]];break;case 7:this._kernel=[[.25,1,0],[3/16,2,0],[1/16,-2,1],[2/16,-1,1],[3/16,0,1],[2/16,1,1],[1/16,2,1]];break;case 8:this._kernel=[[.5,1,0],[1/4,-1,1],[1/4,0,1]];break;default:throw new Error(`ErrorDiffusionArray: unknown kernel = ${t}`)}}};function*Ft(t,e,n){const r=Math.max(t,e),i={width:t,height:e,level:Math.floor(Math.log(r)/Math.log(2)+1),callback:n,tracker:new ct(t*e,99),index:0,x:0,y:0};yield*jt(i,1),Nt(i,0)}function*jt(t,e){if(!(t.level<1)){switch(t.tracker.shouldNotify(t.index)&&(yield{progress:t.tracker.progress}),t.level--,e){case 2:yield*jt(t,1),Nt(t,3),yield*jt(t,2),Nt(t,4),yield*jt(t,2),Nt(t,2),yield*jt(t,4);break;case 3:yield*jt(t,4),Nt(t,2),yield*jt(t,3),Nt(t,1),yield*jt(t,3),Nt(t,3),yield*jt(t,1);break;case 1:yield*jt(t,2),Nt(t,4),yield*jt(t,1),Nt(t,3),yield*jt(t,1),Nt(t,1),yield*jt(t,3);break;case 4:yield*jt(t,3),Nt(t,1),yield*jt(t,4),Nt(t,2),yield*jt(t,4),Nt(t,4),yield*jt(t,2)}t.level++}}function Nt(t,e){switch(t.x>=0&&t.x<t.width&&t.y>=0&&t.y<t.height&&(t.callback(t.x,t.y),t.index++),e){case 2:t.x--;break;case 3:t.x++;break;case 1:t.y--;break;case 4:t.y++}}var Lt=class extends Mt{constructor(t,e=16,n=1){super(),o(this,\"_distance\"),o(this,\"_weights\"),o(this,\"_errorQueueSize\"),this._distance=t,this._errorQueueSize=e,this._weights=Lt._createWeights(n,e)}*quantize(t,e){const n=t.getPointArray(),r=t.getWidth(),i=t.getHeight(),o=[];let a=0;for(let t=0;t<this._errorQueueSize;t++)o[t]={r:0,g:0,b:0,a:0};yield*Ft(r,i,((t,i)=>{const s=n[t+i*r];let{r:u,g:l,b:c,a:h}=s;for(let t=0;t<this._errorQueueSize;t++){const e=this._weights[t],n=o[(t+a)%this._errorQueueSize];u+=n.r*e,l+=n.g*e,c+=n.b*e,h+=n.a*e}const f=nt.createByRGBA(b(u),b(l),b(c),b(h)),d=e.getNearestColor(this._distance,f);a=(a+1)%this._errorQueueSize;const p=(a+this._errorQueueSize-1)%this._errorQueueSize;o[p].r=s.r-d.r,o[p].g=s.g-d.g,o[p].b=s.b-d.b,o[p].a=s.a-d.a,s.from(d)})),yield{pointContainer:t,progress:100}}static _createWeights(t,e){const n=[],r=Math.exp(Math.log(e)/(e-1));for(let i=0,o=1;i<e;i++)n[i]=(o+.5|0)/e*t,o*=r;return n}},Bt={};i(Bt,{ssim:()=>Rt});var $t=.01,zt=.03;function Rt(t,e){if(t.getHeight()!==e.getHeight()||t.getWidth()!==e.getWidth())throw new Error(\"Images have different sizes!\");const n=(255*$t)**2,r=(255*zt)**2;let i=0,o=0;return function(t,e,n){const r=8,i=t.getWidth(),o=t.getHeight();for(let a=0;a<o;a+=r)for(let s=0;s<i;s+=r){const u=Math.min(r,i-s),l=Math.min(r,o-a),c=Ut(t,s,a,u,l),h=Ut(e,s,a,u,l);n(c,h,Vt(c),Vt(h))}}(t,e,((t,e,a,s)=>{let u=0,l=0,c=0;for(let n=0;n<t.length;n++)l+=(t[n]-a)**2,c+=(e[n]-s)**2,u+=(t[n]-a)*(e[n]-s);const h=t.length-1;l/=h,c/=h,u/=h;o+=(2*a*s+n)*(2*u+r)/((a**2+s**2+n)*(l+c+r)),i++})),o/i}function Ut(t,e,n,r,i){const o=t.getPointArray(),a=[];let s=0;for(let u=n;u<n+i;u++){const n=u*t.getWidth();for(let t=e;t<e+r;t++){const e=o[n+t];a[s]=.2126*e.r+.7152*e.g+.0722*e.b,s++}}return a}function Vt(t){let e=0;for(const n of t)e+=n;return e/t.length}var Ht=\"function\"==typeof setImmediate?setImmediate:\"undefined\"!=typeof process&&\"function\"==typeof(null==process?void 0:process.nextTick)?t=>process.nextTick(t):t=>setTimeout(t,0);function Gt(t,{colorDistanceFormula:e,paletteQuantization:n,colors:r}={}){const i=Xt(Zt(e),n,r);return t.forEach((t=>i.sample(t))),i.quantizeSync()}async function qt(t,{colorDistanceFormula:e,paletteQuantization:n,colors:r,onProgress:i}={}){return new Promise(((o,a)=>{const s=Xt(Zt(e),n,r);let u;t.forEach((t=>s.sample(t)));const l=s.quantize(),c=()=>{try{const t=l.next();t.done?o(u):(t.value.palette&&(u=t.value.palette),i&&i(t.value.progress),Ht(c))}catch(t){a(t)}};Ht(c)}))}function Wt(t,e,{colorDistanceFormula:n,imageQuantization:r}={}){return Kt(Zt(n),r).quantizeSync(t,e)}async function Yt(t,e,{colorDistanceFormula:n,imageQuantization:r,onProgress:i}={}){return new Promise(((o,a)=>{let s;const u=Kt(Zt(n),r).quantize(t,e),l=()=>{try{const t=u.next();t.done?o(s):(t.value.pointContainer&&(s=t.value.pointContainer),i&&i(t.value.progress),Ht(l))}catch(t){a(t)}};Ht(l)}))}function Zt(t=\"euclidean-bt709\"){switch(t){case\"cie94-graphic-arts\":return new R;case\"cie94-textiles\":return new z;case\"ciede2000\":return new V;case\"color-metric\":return new H;case\"euclidean\":return new q;case\"euclidean-bt709\":return new W;case\"euclidean-bt709-noalpha\":return new Y;case\"manhattan\":return new K;case\"manhattan-bt709\":return new J;case\"manhattan-nommyde\":return new X;case\"pngquant\":return new Q;default:throw new Error(`Unknown colorDistanceFormula ${t}`)}}function Kt(t,e=\"floyd-steinberg\"){switch(e){case\"nearest\":return new Tt(t);case\"riemersma\":return new Lt(t);case\"floyd-steinberg\":return new Pt(t,0);case\"false-floyd-steinberg\":return new Pt(t,1);case\"stucki\":return new Pt(t,2);case\"atkinson\":return new Pt(t,3);case\"jarvis\":return new Pt(t,4);case\"burkes\":return new Pt(t,5);case\"sierra\":return new Pt(t,6);case\"two-sierra\":return new Pt(t,7);case\"sierra-lite\":return new Pt(t,8);default:throw new Error(`Unknown imageQuantization ${e}`)}}function Xt(t,e=\"wuquant\",n=256){switch(e){case\"neuquant\":return new dt(t,n);case\"rgbquant\":return new _t(t,n);case\"wuquant\":return new At(t,n);case\"neuquant-float\":return new vt(t,n);default:throw new Error(`Unknown paletteQuantization ${e}`)}}},function(t,e,n){\"use strict\";var r=n(208),i=n(209),o=n(210),a=n(98);function s(t,e,n){var r=t;return i(e)?(n=e,\"string\"==typeof t&&(r={uri:t})):r=a(e,{uri:t}),r.callback=n,r}function u(t,e,n){return l(e=s(t,e,n))}function l(t){if(void 0===t.callback)throw new Error(\"callback argument missing\");var e=!1,n=function(n,r,i){e||(e=!0,t.callback(n,r,i))};function r(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if(\"document\"===t.responseType)return t.responseXML;var e=t.responseXML&&\"parsererror\"===t.responseXML.documentElement.nodeName;if(\"\"===t.responseType&&!e)return t.responseXML}catch(t){}return null}(c),g)try{t=JSON.parse(t)}catch(t){}return t}function i(t){return clearTimeout(h),t instanceof Error||(t=new Error(\"\"+(t||\"Unknown XMLHttpRequest Error\"))),t.statusCode=0,n(t,y)}function a(){if(!l){var e;clearTimeout(h),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=y,a=null;return 0!==e?(i={body:r(),statusCode:e,method:d,headers:{},url:f,rawRequest:c},c.getAllResponseHeaders&&(i.headers=o(c.getAllResponseHeaders()))):a=new Error(\"Internal XMLHttpRequest Error\"),n(a,i,i.body)}}var s,l,c=t.xhr||null;c||(c=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var h,f=c.url=t.uri||t.url,d=c.method=t.method||\"GET\",p=t.body||t.data,m=c.headers=t.headers||{},v=!!t.sync,g=!1,y={body:void 0,headers:{},statusCode:0,method:d,url:f,rawRequest:c};if(\"json\"in t&&!1!==t.json&&(g=!0,m.accept||m.Accept||(m.Accept=\"application/json\"),\"GET\"!==d&&\"HEAD\"!==d&&(m[\"content-type\"]||m[\"Content-Type\"]||(m[\"Content-Type\"]=\"application/json\"),p=JSON.stringify(!0===t.json?p:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=i,c.onprogress=function(){},c.onabort=function(){l=!0},c.ontimeout=i,c.open(d,f,!v,t.username,t.password),v||(c.withCredentials=!!t.withCredentials),!v&&t.timeout>0&&(h=setTimeout((function(){if(!l){l=!0,c.abort(\"timeout\");var t=new Error(\"XMLHttpRequest timeout\");t.code=\"ETIMEDOUT\",i(t)}}),t.timeout)),c.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&c.setRequestHeader(s,m[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error(\"Headers cannot be set on an XDomainRequest object\");return\"responseType\"in t&&(c.responseType=t.responseType),\"beforeSend\"in t&&\"function\"==typeof t.beforeSend&&t.beforeSend(c),c.send(p||null),c}t.exports=u,t.exports.default=u,u.XMLHttpRequest=r.XMLHttpRequest||function(){},u.XDomainRequest=\"withCredentials\"in new u.XMLHttpRequest?u.XMLHttpRequest:r.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}([\"get\",\"put\",\"post\",\"patch\",\"head\",\"delete\"],(function(t){u[\"delete\"===t?\"del\":t]=function(e,n,r){return(n=s(e,n,r)).method=t.toUpperCase(),l(n)}}))},function(t,e,n){(function(e){var n;n=\"undefined\"!=typeof window?window:void 0!==e?e:\"undefined\"!=typeof self?self:{},t.exports=n}).call(this,n(10))},function(t,e){t.exports=function(t){if(!t)return!1;var e=n.call(t);return\"[object Function]\"===e||\"function\"==typeof t&&\"[object RegExp]\"!==e||\"undefined\"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},function(t,e){var n=function(t){return t.replace(/^\\s+|\\s+$/g,\"\")};t.exports=function(t){if(!t)return{};for(var e,r={},i=n(t).split(\"\\n\"),o=0;o<i.length;o++){var a=i[o],s=a.indexOf(\":\"),u=n(a.slice(0,s)).toLowerCase(),l=n(a.slice(s+1));void 0===r[u]?r[u]=l:(e=r[u],\"[object Array]\"===Object.prototype.toString.call(e)?r[u].push(l):r[u]=[r[u],l])}return r}},function(t,e){function n(t,e){if(!(t=t.replace(/\\t+/g,\" \").trim()))return null;var n=t.indexOf(\" \");if(-1===n)throw new Error(\"no named row at line \"+e);var i=t.substring(0,n);t=(t=(t=(t=t.substring(n+1)).replace(/letter=[\\'\\\"]\\S+[\\'\\\"]/gi,\"\")).split(\"=\")).map((function(t){return t.trim().match(/(\".*?\"|[^\"\\s]+)+(?=\\s*|\\s*$)/g)}));for(var o=[],a=0;a<t.length;a++){var s=t[a];0===a?o.push({key:s[0],data:\"\"}):a===t.length-1?o[o.length-1].data=r(s[0]):(o[o.length-1].data=r(s[0]),o.push({key:s[1],data:\"\"}))}var u={key:i,data:{}};return o.forEach((function(t){u.data[t.key]=t.data})),u}function r(t){return t&&0!==t.length?0===t.indexOf('\"')||0===t.indexOf(\"'\")?t.substring(1,t.length-1):-1!==t.indexOf(\",\")?function(t){return t.split(\",\").map((function(t){return parseInt(t,10)}))}(t):parseInt(t,10):\"\"}t.exports=function(t){if(!t)throw new Error(\"no data provided\");var e={pages:[],chars:[],kernings:[]},r=(t=t.toString().trim()).split(/\\r\\n?|\\n/g);if(0===r.length)throw new Error(\"no data in BMFont file\");for(var i=0;i<r.length;i++){var o=n(r[i],i);if(o)if(\"page\"===o.key){if(\"number\"!=typeof o.data.id)throw new Error(\"malformed file at line \"+i+\" -- needs page id=N\");if(\"string\"!=typeof o.data.file)throw new Error(\"malformed file at line \"+i+' -- needs page file=\"path\"');e.pages[o.data.id]=o.data.file}else\"chars\"===o.key||\"kernings\"===o.key||(\"char\"===o.key?e.chars.push(o.data):\"kerning\"===o.key?e.kernings.push(o.data):e[o.key]=o.data)}return e}},function(t,e,n){var r=n(213),i=n(214),o={scaleh:\"scaleH\",scalew:\"scaleW\",stretchh:\"stretchH\",lineheight:\"lineHeight\",alphachnl:\"alphaChnl\",redchnl:\"redChnl\",greenchnl:\"greenChnl\",bluechnl:\"blueChnl\"};function a(t){var e=function(t){for(var e=[],n=0;n<t.attributes.length;n++)e.push(t.attributes[n]);return e}(t);return e.reduce((function(t,e){var n;return t[(n=e.nodeName,o[n.toLowerCase()]||n)]=e.nodeValue,t}),{})}t.exports=function(t){t=t.toString();var e=i(t),n={pages:[],chars:[],kernings:[]};[\"info\",\"common\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];i&&(n[t]=r(a(i)))}));var o=e.getElementsByTagName(\"pages\")[0];if(!o)throw new Error(\"malformed file -- no <pages> element\");for(var s=o.getElementsByTagName(\"page\"),u=0;u<s.length;u++){var l=s[u],c=parseInt(l.getAttribute(\"id\"),10),h=l.getAttribute(\"file\");if(isNaN(c))throw new Error('malformed file -- page \"id\" attribute is NaN');if(!h)throw new Error('malformed file -- needs page \"file\" attribute');n.pages[parseInt(c,10)]=h}return[\"chars\",\"kernings\"].forEach((function(t){var i=e.getElementsByTagName(t)[0];if(i)for(var o=t.substring(0,t.length-1),s=i.getElementsByTagName(o),u=0;u<s.length;u++){var l=s[u];n[t].push(r(a(l)))}})),n}},function(t,e){var n=\"chasrset\";t.exports=function(t){for(var e in t=Object.assign({},t),n in t&&(t.charset=t[n],delete t[n]),t)\"face\"!==e&&\"charset\"!==e&&(t[e]=\"padding\"===e||\"spacing\"===e?t[e].split(\",\").map((function(t){return parseInt(t,10)})):parseInt(t[e],10));return t}},function(t,e){t.exports=void 0!==self.DOMParser?function(t){return(new self.DOMParser).parseFromString(t,\"application/xml\")}:void 0!==self.ActiveXObject&&new self.ActiveXObject(\"Microsoft.XMLDOM\")?function(t){var e=new self.ActiveXObject(\"Microsoft.XMLDOM\");return e.async=\"false\",e.loadXML(t),e}:function(t){var e=document.createElement(\"div\");return e.innerHTML=t,e}},function(t,e){var n=[66,77,70];function r(t,e,n){if(n>e.length-1)return 0;var r=e.readUInt8(n++),o=e.readInt32LE(n);switch(n+=4,r){case 1:t.info=function(t,e){var n={};n.size=t.readInt16LE(e);var r=t.readUInt8(e+2);n.smooth=r>>7&1,n.unicode=r>>6&1,n.italic=r>>5&1,n.bold=r>>4&1,r>>3&1&&(n.fixedHeight=1);return n.charset=t.readUInt8(e+3)||\"\",n.stretchH=t.readUInt16LE(e+4),n.aa=t.readUInt8(e+6),n.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],n.spacing=[t.readInt8(e+11),t.readInt8(e+12)],n.outline=t.readUInt8(e+13),n.face=function(t,e){return i(t,e).toString(\"utf8\")}(t,e+14),n}(e,n);break;case 2:t.common=function(t,e){var n={};n.lineHeight=t.readUInt16LE(e),n.base=t.readUInt16LE(e+2),n.scaleW=t.readUInt16LE(e+4),n.scaleH=t.readUInt16LE(e+6),n.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return n.packed=0,n.alphaChnl=t.readUInt8(e+11),n.redChnl=t.readUInt8(e+12),n.greenChnl=t.readUInt8(e+13),n.blueChnl=t.readUInt8(e+14),n}(e,n);break;case 3:t.pages=function(t,e,n){for(var r=[],o=i(t,e),a=o.length+1,s=n/a,u=0;u<s;u++)r[u]=t.slice(e,e+o.length).toString(\"utf8\"),e+=a;return r}(e,n,o);break;case 4:t.chars=function(t,e,n){for(var r=[],i=n/20,o=0;o<i;o++){var a={},s=20*o;a.id=t.readUInt32LE(e+0+s),a.x=t.readUInt16LE(e+4+s),a.y=t.readUInt16LE(e+6+s),a.width=t.readUInt16LE(e+8+s),a.height=t.readUInt16LE(e+10+s),a.xoffset=t.readInt16LE(e+12+s),a.yoffset=t.readInt16LE(e+14+s),a.xadvance=t.readInt16LE(e+16+s),a.page=t.readUInt8(e+18+s),a.chnl=t.readUInt8(e+19+s),r[o]=a}return r}(e,n,o);break;case 5:t.kernings=function(t,e,n){for(var r=[],i=n/10,o=0;o<i;o++){var a={},s=10*o;a.first=t.readUInt32LE(e+0+s),a.second=t.readUInt32LE(e+4+s),a.amount=t.readInt16LE(e+8+s),r[o]=a}return r}(e,n,o)}return 5+o}function i(t,e){for(var n=e;n<t.length&&0!==t[n];n++);return t.slice(e,n)}t.exports=function(t){if(t.length<6)throw new Error(\"invalid buffer length for BMFont\");var e=n.every((function(e,n){return t.readUInt8(n)===e}));if(!e)throw new Error(\"BMFont missing BMF byte header\");var i=3;if(t.readUInt8(i++)>3)throw new Error(\"Only supports BMFont Binary v3 (BMFont App v1.10)\");for(var o={kernings:[],chars:[]},a=0;a<5;a++)i+=r(o,t,i);return o}},function(t,e,n){(function(e){var r=n(217),i=e.from([66,77,70,3]);t.exports=function(t){return\"string\"==typeof t?\"BMF\"===t.substring(0,3):t.length>4&&r(t.slice(0,4),i)}}).call(this,n(2).Buffer)},function(t,e,n){var r=n(2).Buffer;t.exports=function(t,e){if(r.isBuffer(t)&&r.isBuffer(e)){if(\"function\"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}}},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(t,e,n,r){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,n,r)}i.prototype.run=function(t,e,n,r){this._init(t,e,n,r);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var o=this._regionQuery(i);if(o.length<this.minPts)this.noise.push(i);else{var a=this.clusters.length;this.clusters.push([]),this._addToCluster(i,a),this._expandCluster(a,o)}}return this.clusters},i.prototype._init=function(t,e,n,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+r(t)+\" given\");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),n&&(this.minPts=n),i&&(this.distance=i)},i.prototype._expandCluster=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(1!==this._visited[r]){this._visited[r]=1;var i=this._regionQuery(r);i.length>=this.minPts&&(e=this._mergeArrays(e,i))}1!==this._assigned[r]&&this._addToCluster(r,t)}},i.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},i.prototype._regionQuery=function(t){for(var e=[],n=0;n<this._datasetLength;n++){this.distance(this.dataset[t],this.dataset[n])<this.epsilon&&e.push(n)}return e},i.prototype._mergeArrays=function(t,e){for(var n=e.length,r=0;r<n;r++){var i=e[r];t.indexOf(i)<0&&t.push(i)}return t},i.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},t.exports&&(t.exports=i)},function(t,e,n){function r(t,e,n){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,n)}r.prototype.init=function(t,e,n){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==n&&(this.distance=n)},r.prototype.run=function(t,e){this.init(t,e);for(var n=this.dataset.length,r=0;r<this.k;r++)this.centroids[r]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var o=0;o<this.k;o++){for(var a=new Array(c),s=0,u=0;u<c;u++)a[u]=0;for(var l=0;l<n;l++){var c=this.dataset[l].length;if(o===this.assignments[l]){for(u=0;u<c;u++)a[u]+=this.dataset[l][u];s++}}if(s>0){for(u=0;u<c;u++)a[u]/=s;this.centroids[o]=a}else this.centroids[o]=this.randomCentroid(),i=!0}}return this.getClusters()},r.prototype.randomCentroid=function(){var t,e,n=this.dataset.length-1;do{e=Math.round(Math.random()*n),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},r.prototype.assign=function(){for(var t,e=!1,n=this.dataset.length,r=0;r<n;r++)(t=this.argmin(this.dataset[r],this.centroids,this.distance))!=this.assignments[r]&&(this.assignments[r]=t,e=!0);return e},r.prototype.getClusters=function(){for(var t,e=new Array(this.k),n=0;n<this.assignments.length;n++)void 0===e[t=this.assignments[n]]&&(e[t]=[]),e[t].push(n);return e},r.prototype.argmin=function(t,e,n){for(var r,i=Number.MAX_VALUE,o=0,a=e.length,s=0;s<a;s++)(r=n(t,e[s]))<i&&(i=r,o=s);return o},r.prototype.distance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;){var i=t[r]-e[r];n+=i*i}return Math.sqrt(n)},t.exports&&(t.exports=r)},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}if(t.exports)var i=n(99);function o(t,e,n,r){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,n,r)}o.prototype.run=function(t,e,n,r){this._init(t,e,n,r);for(var o=0,a=this.dataset.length;o<a;o++)if(1!==this._processed[o]){this._processed[o]=1,this.clusters.push([o]);var s=this.clusters.length-1;this._orderedList.push(o);var u=new i(null,null,\"asc\"),l=this._regionQuery(o);void 0!==this._distanceToCore(o)&&(this._updateQueue(o,l,u),this._expandCluster(s,u))}return this.clusters},o.prototype.getReachabilityPlot=function(){for(var t=[],e=0,n=this._orderedList.length;e<n;e++){var r=this._orderedList[e],i=this._reachability[r];t.push([r,i])}return t},o.prototype._init=function(t,e,n,i){if(t){if(!(t instanceof Array))throw Error(\"Dataset must be of type array, \"+r(t)+\" given\");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),n&&(this.minPts=n),i&&(this.distance=i)},o.prototype._updateQueue=function(t,e,n){var r=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===r._processed[e]){var i=r.distance(r.dataset[t],r.dataset[e]),o=Math.max(r._coreDistance,i);void 0===r._reachability[e]?(r._reachability[e]=o,n.insert(e,o)):o<r._reachability[e]&&(r._reachability[e]=o,n.remove(e),n.insert(e,o))}}))},o.prototype._expandCluster=function(t,e){for(var n=e.getElements(),r=0,i=n.length;r<i;r++){var o=n[r];if(void 0===this._processed[o]){var a=this._regionQuery(o);this._processed[o]=1,this.clusters[t].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,a,e),this._expandCluster(t,e))}}},o.prototype._distanceToCore=function(t){for(var e=this.epsilon,n=0;n<e;n++){if(this._regionQuery(t,n).length>=this.minPts)return n}},o.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var n=[],r=0,i=this.dataset.length;r<i;r++)this.distance(this.dataset[t],this.dataset[r])<e&&n.push(r);return n},o.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},t.exports&&(t.exports=o)},function(t,e,n){(function(t){var r;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,n=function(){var t=4022871197,e=function(e){e=String(e);for(var n=0;n<e.length;n++){var r=.02519603282416938*(t+=e.charCodeAt(n));r-=t=r>>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)};return e}();e.next=function(){var t=2091639*e.s0+2.3283064365386963e-10*e.c;return e.s0=e.s1,e.s1=e.s2,e.s2=t-(e.c=0|t)},e.c=1,e.s0=n(\" \"),e.s1=n(\" \"),e.s2=n(\" \"),e.s0-=n(t),e.s0<0&&(e.s0+=1),e.s1-=n(t),e.s1<0&&(e.s1+=1),e.s2-=n(t),e.s2<0&&(e.s2+=1),n=null}function u(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function l(t,e){var n=new s(t),r=e&&e.state,o=n.next;return o.int32=function(){return 4294967296*n.next()|0},o.double=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.quick=o,r&&(\"object\"==i(r)&&u(r,n),o.state=function(){return u(n,{})}),o}o&&o.exports?o.exports=l:n(9)&&n(23)?void 0===(r=function(){return l}.call(e,n,e,o))||(o.exports=r):this.alea=l}(0,\"object\"==i(t)&&t,n(9))}).call(this,n(13)(t))},function(t,e,n){(function(t){var r;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,n=\"\";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},t===(0|t)?e.x=t:n+=t;for(var r=0;r<n.length+64;r++)e.x^=0|n.charCodeAt(r),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e}function l(t,e){var n=new s(t),r=e&&e.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=n.next,o.quick=o,r&&(\"object\"==i(r)&&u(r,n),o.state=function(){return u(n,{})}),o}o&&o.exports?o.exports=l:n(9)&&n(23)?void 0===(r=function(){return l}.call(e,n,e,o))||(o.exports=r):this.xor128=l}(0,\"object\"==i(t)&&t,n(9))}).call(this,n(13)(t))},function(t,e,n){(function(t){var r;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,n=\"\";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^t^t<<1)|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,t===(0|t)?e.x=t:n+=t;for(var r=0;r<n.length+64;r++)e.x^=0|n.charCodeAt(r),r==n.length&&(e.d=e.x<<10^e.x>>>4),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function l(t,e){var n=new s(t),r=e&&e.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=n.next,o.quick=o,r&&(\"object\"==i(r)&&u(r,n),o.state=function(){return u(n,{})}),o}o&&o.exports?o.exports=l:n(9)&&n(23)?void 0===(r=function(){return l}.call(e,n,e,o))||(o.exports=r):this.xorwow=l}(0,\"object\"==i(t)&&t,n(9))}).call(this,n(13)(t))},function(t,e,n){(function(t){var r;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,o){function a(t){var e=this;e.next=function(){var t,n,r=e.x,i=e.i;return t=r[i],n=(t^=t>>>7)^t<<24,n^=(t=r[i+1&7])^t>>>10,n^=(t=r[i+3&7])^t>>>3,n^=(t=r[i+4&7])^t<<7,t=r[i+7&7],n^=(t^=t<<13)^t<<9,r[i]=n,e.i=i+1&7,n},function(t,e){var n,r=[];if(e===(0|e))r[0]=e;else for(e=\"\"+e,n=0;n<e.length;++n)r[7&n]=r[7&n]<<15^e.charCodeAt(n)+r[n+1&7]<<13;for(;r.length<8;)r.push(0);for(n=0;n<8&&0===r[n];++n);for(8==n?r[7]=-1:r[n],t.x=r,t.i=0,n=256;n>0;--n)t.next()}(e,t)}function s(t,e){return e.x=t.x.slice(),e.i=t.i,e}function u(t,e){null==t&&(t=+new Date);var n=new a(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&(r.x&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n(9)&&n(23)?void 0===(r=function(){return u}.call(e,n,e,i))||(i.exports=r):this.xorshift7=u}(0,\"object\"==i(t)&&t,n(9))}).call(this,n(13)(t))},function(t,e,n){(function(t){var r;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,i,o){function a(t){var e=this;e.next=function(){var t,n,r=e.w,i=e.X,o=e.i;return e.w=r=r+1640531527|0,n=i[o+34&127],t=i[o=o+1&127],n^=n<<13,t^=t<<17,n^=n>>>15,t^=t>>>12,n=i[o]=n^t,e.i=o,n+(r^r>>>16)|0},function(t,e){var n,r,i,o,a,s=[],u=128;for(e===(0|e)?(r=e,e=null):(e+=\"\\0\",r=0,u=Math.max(u,e.length)),i=0,o=-32;o<u;++o)e&&(r^=e.charCodeAt((o+32)%e.length)),0===o&&(a=r),r^=r<<10,r^=r>>>15,r^=r<<4,r^=r>>>13,o>=0&&(a=a+1640531527|0,i=0==(n=s[127&o]^=r+a)?i+1:0);for(i>=128&&(s[127&(e&&e.length||0)]=-1),i=127,o=512;o>0;--o)r=s[i+34&127],n=s[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,s[i]=r^n;t.w=a,t.X=s,t.i=i}(e,t)}function s(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function u(t,e){null==t&&(t=+new Date);var n=new a(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&(r.X&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n(9)&&n(23)?void 0===(r=function(){return u}.call(e,n,e,i))||(i.exports=r):this.xor4096=u}(0,\"object\"==i(t)&&t,n(9))}).call(this,n(13)(t))},function(t,e,n){(function(t){var r;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(t,o,a){function s(t){var e=this,n=\"\";e.next=function(){var t=e.b,n=e.c,r=e.d,i=e.a;return t=t<<25^t>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-t|0,e.b=t=t<<20^t>>>12^n,e.c=n=n-r|0,e.d=r<<16^n>>>16^i,e.a=i-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,t===Math.floor(t)?(e.a=t/4294967296|0,e.b=0|t):n+=t;for(var r=0;r<n.length+20;r++)e.b^=0|n.charCodeAt(r),e.next()}function u(t,e){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e}function l(t,e){var n=new s(t),r=e&&e.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},o.int32=n.next,o.quick=o,r&&(\"object\"==i(r)&&u(r,n),o.state=function(){return u(n,{})}),o}o&&o.exports?o.exports=l:n(9)&&n(23)?void 0===(r=function(){return l}.call(e,n,e,o))||(o.exports=r):this.tychei=l}(0,\"object\"==i(t)&&t,n(9))}).call(this,n(13)(t))},function(t,e,n){(function(t){var r;function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}!function(o,a,s){var u,l=256,c=s.pow(l,6),h=s.pow(2,52),f=2*h,d=l-1;function p(t,e,n){var r=[],i=y(g((e=1==e?{entropy:!0}:e||{}).entropy?[t,b(a)]:null==t?function(){try{var t;return u&&(t=u.randomBytes)?t=t(l):(t=new Uint8Array(l),(o.crypto||o.msCrypto).getRandomValues(t)),b(t)}catch(t){var e=o.navigator,n=e&&e.plugins;return[+new Date,o,n,o.screen,b(a)]}}():t,3),r),d=new m(r),p=function(){for(var t=d.g(6),e=c,n=0;t<h;)t=(t+n)*l,e*=l,n=d.g(1);for(;t>=f;)t/=2,e/=2,n>>>=1;return(t+n)/e};return p.int32=function(){return 0|d.g(4)},p.quick=function(){return d.g(4)/4294967296},p.double=p,y(b(d.S),a),(e.pass||n||function(t,e,n,r){return r&&(r.S&&v(r,d),t.state=function(){return v(d,{})}),n?(s.random=t,e):t})(p,i,\"global\"in e?e.global:this==s,e.state)}function m(t){var e,n=t.length,r=this,i=0,o=r.i=r.j=0,a=r.S=[];for(n||(t=[n++]);i<l;)a[i]=i++;for(i=0;i<l;i++)a[i]=a[o=d&o+t[i%n]+(e=a[i])],a[o]=e;(r.g=function(t){for(var e,n=0,i=r.i,o=r.j,a=r.S;t--;)e=a[i=d&i+1],n=n*l+a[d&(a[i]=a[o=d&o+e])+(a[o]=e)];return r.i=i,r.j=o,n})(l)}function v(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function g(t,e){var n,r=[],o=i(t);if(e&&\"object\"==o)for(n in t)try{r.push(g(t[n],e-1))}catch(t){}return r.length?r:\"string\"==o?t:t+\"\\0\"}function y(t,e){for(var n,r=t+\"\",i=0;i<r.length;)e[d&i]=d&(n^=19*e[d&i])+r.charCodeAt(i++);return b(e)}function b(t){return String.fromCharCode.apply(0,t)}if(y(s.random(),a),\"object\"==i(t)&&t.exports){t.exports=p;try{u=n(228)}catch(t){}}else void 0===(r=function(){return p}.call(e,n,e,t))||(t.exports=r)}(\"undefined\"!=typeof self?self:this,[],Math)}).call(this,n(13)(t))},function(t,e){},function(t,e,n){var r=n(100).default,i=n(230);t.exports=function(t){var e=i(t,\"string\");return\"symbol\"==r(e)?e:e+\"\"},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(100).default;t.exports=function(t,e){if(\"object\"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||\"default\");if(\"object\"!=r(i))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}e.__esModule=!0,e.isMac=e.isEmpty=e.isEqual=e.arrayEquals=e.looseEqual=e.capitalize=e.kebabCase=e.autoprefixer=e.isFirefox=e.isEdge=e.isIE=e.coerceTruthyValueToArray=e.arrayFind=e.arrayFindIndex=e.escapeRegexpString=e.valueEquals=e.generateId=e.getValueByPath=void 0;var i=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)};e.noop=function(){},e.hasOwn=function(t,e){return l.call(t,e)},e.toObject=function(t){for(var e={},n=0;n<t.length;n++)t[n]&&c(e,t[n]);return e},e.getPropByPath=function(t,e,n){for(var r=t,i=(e=(e=e.replace(/\\[(\\w+)\\]/g,\".$1\")).replace(/^\\./,\"\")).split(\".\"),o=0,a=i.length;o<a-1&&(r||n);++o){var s=i[o];if(!(s in r)){if(n)throw new Error(\"please transfer a valid prop path to form item!\");break}r=r[s]}return{o:r,k:i[o],v:r?r[i[o]]:null}},e.rafThrottle=function(t){var e=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];e||(e=!0,window.requestAnimationFrame((function(r){t.apply(n,i),e=!1})))}},e.objToArray=function(t){if(Array.isArray(t))return t;return p(t)?[]:[t]};var o,a=n(60),s=(o=a)&&o.__esModule?o:{default:o},u=n(295);var l=Object.prototype.hasOwnProperty;function c(t,e){for(var n in e)t[n]=e[n];return t}e.getValueByPath=function(t,e){for(var n=(e=e||\"\").split(\".\"),r=t,i=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!r)break;if(o===a-1){i=r[s];break}r=r[s]}return i};e.generateId=function(){return Math.floor(1e4*Math.random())},e.valueEquals=function(t,e){if(t===e)return!0;if(!(t instanceof Array))return!1;if(!(e instanceof Array))return!1;if(t.length!==e.length)return!1;for(var n=0;n!==t.length;++n)if(t[n]!==e[n])return!1;return!0},e.escapeRegexpString=function(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\").replace(/[|\\\\{}()[\\]^$+*?.]/g,\"\\\\$&\")};var h=e.arrayFindIndex=function(t,e){for(var n=0;n!==t.length;++n)if(e(t[n]))return n;return-1},f=(e.arrayFind=function(t,e){var n=h(t,e);return-1!==n?t[n]:void 0},e.coerceTruthyValueToArray=function(t){return Array.isArray(t)?t:t?[t]:[]},e.isIE=function(){return!s.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},e.isEdge=function(){return!s.default.prototype.$isServer&&navigator.userAgent.indexOf(\"Edge\")>-1},e.isFirefox=function(){return!s.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},e.autoprefixer=function(t){if(\"object\"!==(void 0===t?\"undefined\":i(t)))return t;var e=[\"ms-\",\"webkit-\"];return[\"transform\",\"transition\",\"animation\"].forEach((function(n){var r=t[n];n&&r&&e.forEach((function(e){t[e+n]=r}))})),t},e.kebabCase=function(t){var e=/([^-])([A-Z])/g;return t.replace(e,\"$1-$2\").replace(e,\"$1-$2\").toLowerCase()},e.capitalize=function(t){return(0,u.isString)(t)?t.charAt(0).toUpperCase()+t.slice(1):t},e.looseEqual=function(t,e){var n=(0,u.isObject)(t),r=(0,u.isObject)(e);return n&&r?JSON.stringify(t)===JSON.stringify(e):!n&&!r&&String(t)===String(e)}),d=e.arrayEquals=function(t,e){if(e=e||[],(t=t||[]).length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!f(t[n],e[n]))return!1;return!0},p=(e.isEqual=function(t,e){return Array.isArray(t)&&Array.isArray(e)?d(t,e):f(t,e)},e.isEmpty=function(t){if(null==t)return!0;if(\"boolean\"==typeof t)return!1;if(\"number\"==typeof t)return!t;if(t instanceof Error)return\"\"===t.message;switch(Object.prototype.toString.call(t)){case\"[object String]\":case\"[object Array]\":return!t.length;case\"[object File]\":case\"[object Map]\":case\"[object Set]\":return!t.size;case\"[object Object]\":return!Object.keys(t).length}return!1});e.isMac=function(){return!s.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)}},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}e.__esModule=!0,e.isInContainer=e.getScrollContainer=e.isScroll=e.getStyle=e.once=e.off=e.on=void 0;var i=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)};e.hasClass=m,e.addClass=function(t,e){if(!t)return;for(var n=t.className,r=(e||\"\").split(\" \"),i=0,o=r.length;i<o;i++){var a=r[i];a&&(t.classList?t.classList.add(a):m(t,a)||(n+=\" \"+a))}t.classList||t.setAttribute(\"class\",n)},e.removeClass=function(t,e){if(!t||!e)return;for(var n=e.split(\" \"),r=\" \"+t.className+\" \",i=0,o=n.length;i<o;i++){var a=n[i];a&&(t.classList?t.classList.remove(a):m(t,a)&&(r=r.replace(\" \"+a+\" \",\" \")))}t.classList||t.setAttribute(\"class\",h(r))},e.setStyle=function t(e,n,r){if(!e||!n)return;if(\"object\"===(void 0===n?\"undefined\":i(n)))for(var o in n)n.hasOwnProperty(o)&&t(e,o,n[o]);else\"opacity\"===(n=f(n))&&c<9?e.style.filter=isNaN(r)?\"\":\"alpha(opacity=\"+100*r+\")\":e.style[n]=r};var o,a=n(60);var s=((o=a)&&o.__esModule?o:{default:o}).default.prototype.$isServer,u=/([\\:\\-\\_]+(.))/g,l=/^moz([A-Z])/,c=s?0:Number(document.documentMode),h=function(t){return(t||\"\").replace(/^[\\s\\uFEFF]+|[\\s\\uFEFF]+$/g,\"\")},f=function(t){return t.replace(u,(function(t,e,n,r){return r?n.toUpperCase():n})).replace(l,\"Moz$1\")},d=e.on=!s&&document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent(\"on\"+e,n)},p=e.off=!s&&document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent(\"on\"+e,n)};e.once=function(t,e,n){d(t,e,(function r(){n&&n.apply(this,arguments),p(t,e,r)}))};function m(t,e){if(!t||!e)return!1;if(-1!==e.indexOf(\" \"))throw new Error(\"className should not contain space.\");return t.classList?t.classList.contains(e):(\" \"+t.className+\" \").indexOf(\" \"+e+\" \")>-1}var v=e.getStyle=c<9?function(t,e){if(!s){if(!t||!e)return null;\"float\"===(e=f(e))&&(e=\"styleFloat\");try{if(\"opacity\"===e)try{return t.filters.item(\"alpha\").opacity/100}catch(t){return 1}return t.style[e]||t.currentStyle?t.currentStyle[e]:null}catch(n){return t.style[e]}}}:function(t,e){if(!s){if(!t||!e)return null;\"float\"===(e=f(e))&&(e=\"cssFloat\");try{var n=document.defaultView.getComputedStyle(t,\"\");return t.style[e]||n?n[e]:null}catch(n){return t.style[e]}}};var g=e.isScroll=function(t,e){if(!s)return v(t,null!=e?e?\"overflow-y\":\"overflow-x\":\"overflow\").match(/(scroll|auto|overlay)/)};e.getScrollContainer=function(t,e){if(!s){for(var n=t;n;){if([window,document,document.documentElement].includes(n))return window;if(g(n,e))return n;n=n.parentNode}return n}},e.isInContainer=function(t,e){if(s||!t||!e)return!1;var n=t.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(e)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:e.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},,function(t,e){var n=t.exports=\"undefined\"!=typeof window&&window.Math==Math?window:\"undefined\"!=typeof self&&self.Math==Math?self:Function(\"return this\")();\"number\"==typeof __g&&(__g=n)},function(t,e,n){\"use strict\";function r(t,e,n){this.$children.forEach((function(i){i.$options.componentName===t?i.$emit.apply(i,[e].concat(n)):r.apply(i,[t,e].concat([n]))}))}e.__esModule=!0,e.default={methods:{dispatch:function(t,e,n){for(var r=this.$parent||this.$root,i=r.$options.componentName;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[e].concat(n))},broadcast:function(t,e,n){r.call(this,t,e,n)}}}},function(t,e,n){t.exports=!n(252)((function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a}))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){\"use strict\";e.__esModule=!0;var r,i=n(349),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},,function(t,e,n){var r=n(241),i=n(260);t.exports=n(236)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(259),i=n(303),o=n(279),a=Object.defineProperty;e.f=n(236)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if(\"get\"in n||\"set\"in n)throw TypeError(\"Accessors not supported!\");return\"value\"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(306),i=n(280);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(283)(\"wks\"),i=n(263),o=n(234).Symbol,a=\"function\"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)(\"Symbol.\"+t))}).store=r},,function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},,function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=n(248),o=n(249);function a(t,e){return e.encode?e.strict?i(t):encodeURIComponent(t):t}function s(t){return Array.isArray(t)?t.sort():\"object\"===r(t)?s(Object.keys(t)).sort((function(t,e){return Number(t)-Number(e)})).map((function(e){return t[e]})):t}e.extract=function(t){return t.split(\"?\")[1]||\"\"},e.parse=function(t,e){var n=function(t){var e;switch(t.arrayFormat){case\"index\":return function(t,n,r){e=/\\[(\\d*)\\]$/.exec(t),t=t.replace(/\\[\\d*\\]$/,\"\"),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case\"bracket\":return function(t,n,r){e=/(\\[\\])$/.exec(t),t=t.replace(/\\[\\]$/,\"\"),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};default:return function(t,e,n){void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e=o({arrayFormat:\"none\"},e)),i=Object.create(null);return\"string\"!=typeof t?i:(t=t.trim().replace(/^(\\?|#|&)/,\"\"))?(t.split(\"&\").forEach((function(t){var e=t.replace(/\\+/g,\" \").split(\"=\"),r=e.shift(),o=e.length>0?e.join(\"=\"):void 0;o=void 0===o?null:decodeURIComponent(o),n(decodeURIComponent(r),o,i)})),Object.keys(i).sort().reduce((function(t,e){var n=i[e];return Boolean(n)&&\"object\"===r(n)&&!Array.isArray(n)?t[e]=s(n):t[e]=n,t}),Object.create(null))):i},e.stringify=function(t,e){var n=function(t){switch(t.arrayFormat){case\"index\":return function(e,n,r){return null===n?[a(e,t),\"[\",r,\"]\"].join(\"\"):[a(e,t),\"[\",a(r,t),\"]=\",a(n,t)].join(\"\")};case\"bracket\":return function(e,n){return null===n?a(e,t):[a(e,t),\"[]=\",a(n,t)].join(\"\")};default:return function(e,n){return null===n?a(e,t):[a(e,t),\"=\",a(n,t)].join(\"\")}}}(e=o({encode:!0,strict:!0,arrayFormat:\"none\"},e));return t?Object.keys(t).sort().map((function(r){var i=t[r];if(void 0===i)return\"\";if(null===i)return a(r,e);if(Array.isArray(i)){var o=[];return i.slice().forEach((function(t){void 0!==t&&o.push(n(r,t,o.length))})),o.join(\"&\")}return a(r,e)+\"=\"+a(i,e)})).filter((function(t){return t.length>0})).join(\"&\"):\"\"}},function(t,e,n){\"use strict\";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return\"%\"+t.charCodeAt(0).toString(16).toUpperCase()}))}},function(t,e,n){\"use strict\";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e[\"_\"+String.fromCharCode(n)]=n;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(\"\"))return!1;var r={};return\"abcdefghijklmnopqrst\".split(\"\").forEach((function(t){r[t]=t})),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},r)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,s=function(t){if(null==t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}(t),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))i.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var c=0;c<a.length;c++)o.call(n,a[c])&&(s[a[c]]=n[a[c]])}}return s}},function(t,e){var n=t.exports={version:\"2.6.12\"};\"number\"==typeof __e&&(__e=n)},function(t,e){function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}t.exports=function(t){return\"object\"===n(t)?null!==t:\"function\"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){\"use strict\";n.d(e,\"a\",(function(){return wi})),n.d(e,\"c\",(function(){return xi})),n.d(e,\"b\",(function(){return Ti}));var r=n(8),i=n.n(r),o={epsilon:1e-12,matrix:\"Matrix\",number:\"number\",precision:64,predictable:!1,randomSeed:null};function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t){return\"number\"==typeof t}function u(t){return!(!t||\"object\"!==a(t)||\"function\"!=typeof t.constructor)&&(!0===t.isBigNumber&&\"object\"===a(t.constructor.prototype)&&!0===t.constructor.prototype.isBigNumber||\"function\"==typeof t.constructor.isDecimal&&!0===t.constructor.isDecimal(t))}function l(t){return t&&\"object\"===a(t)&&!0===Object.getPrototypeOf(t).isComplex||!1}function c(t){return t&&\"object\"===a(t)&&!0===Object.getPrototypeOf(t).isFraction||!1}function h(t){return t&&!0===t.constructor.prototype.isUnit||!1}function f(t){return\"string\"==typeof t}var d=Array.isArray;function p(t){return t&&!0===t.constructor.prototype.isMatrix||!1}function m(t){return Array.isArray(t)||p(t)}function v(t){return t&&t.isDenseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function g(t){return t&&t.isSparseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function y(t){return t&&!0===t.constructor.prototype.isRange||!1}function b(t){return t&&!0===t.constructor.prototype.isIndex||!1}function _(t){return\"boolean\"==typeof t}function w(t){return t&&!0===t.constructor.prototype.isResultSet||!1}function x(t){return t&&!0===t.constructor.prototype.isHelp||!1}function k(t){return\"function\"==typeof t}function S(t){return t instanceof Date}function C(t){return t instanceof RegExp}function E(t){return!(!t||\"object\"!==a(t)||t.constructor!==Object||l(t)||c(t))}function D(t){return null===t}function A(t){return void 0===t}function O(t){return t&&!0===t.isAccessorNode&&!0===t.constructor.prototype.isNode||!1}function M(t){return t&&!0===t.isArrayNode&&!0===t.constructor.prototype.isNode||!1}function T(t){return t&&!0===t.isAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function I(t){return t&&!0===t.isBlockNode&&!0===t.constructor.prototype.isNode||!1}function P(t){return t&&!0===t.isConditionalNode&&!0===t.constructor.prototype.isNode||!1}function F(t){return t&&!0===t.isConstantNode&&!0===t.constructor.prototype.isNode||!1}function j(t){return t&&!0===t.isFunctionAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function N(t){return t&&!0===t.isFunctionNode&&!0===t.constructor.prototype.isNode||!1}function L(t){return t&&!0===t.isIndexNode&&!0===t.constructor.prototype.isNode||!1}function B(t){return t&&!0===t.isNode&&!0===t.constructor.prototype.isNode||!1}function $(t){return t&&!0===t.isObjectNode&&!0===t.constructor.prototype.isNode||!1}function z(t){return t&&!0===t.isOperatorNode&&!0===t.constructor.prototype.isNode||!1}function R(t){return t&&!0===t.isParenthesisNode&&!0===t.constructor.prototype.isNode||!1}function U(t){return t&&!0===t.isRangeNode&&!0===t.constructor.prototype.isNode||!1}function V(t){return t&&!0===t.isRelationalNode&&!0===t.constructor.prototype.isNode||!1}function H(t){return t&&!0===t.isSymbolNode&&!0===t.constructor.prototype.isNode||!1}function G(t){return t&&!0===t.constructor.prototype.isChain||!1}function q(t){var e=a(t);return\"object\"===e?null===t?\"null\":u(t)?\"BigNumber\":t.constructor&&t.constructor.name?t.constructor.name:\"Object\":e}function W(t){return W=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},W(t)}function Y(t){var e=W(t);if(\"number\"===e||\"string\"===e||\"boolean\"===e||null==t)return t;if(\"function\"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map((function(t){return Y(t)}));if(t instanceof Date)return new Date(t.valueOf());if(u(t))return t;if(E(t))return Z(t,Y);throw new TypeError(\"Cannot clone: unknown type of value (value: \".concat(t,\")\"))}function Z(t,e){var n={};for(var r in t)J(t,r)&&(n[r]=e(t[r]));return n}function K(t,e){for(var n in e)J(e,n)&&(t[n]=e[n]);return t}function X(t,e){var n,r,i;if(Array.isArray(t)){if(!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(r=0,i=t.length;r<i;r++)if(!X(t[r],e[r]))return!1;return!0}if(\"function\"==typeof t)return t===e;if(t instanceof Object){if(Array.isArray(e)||!(e instanceof Object))return!1;for(n in t)if(!(n in e)||!X(t[n],e[n]))return!1;for(n in e)if(!(n in t))return!1;return!0}return t===e}function J(t,e){return t&&Object.hasOwnProperty.call(t,e)}var Q=[\"Matrix\",\"Array\"],tt=[\"number\",\"BigNumber\",\"Fraction\"];var et=function(t){if(t)throw new Error(\"The global config is readonly. \\nPlease create a mathjs instance if you want to change the default configuration. \\nExample:\\n\\n  import { create, all } from 'mathjs';\\n  const mathjs = create(all);\\n  mathjs.config({ number: 'BigNumber' });\\n\");return Object.freeze(o)};i()(et,o,{MATRIX_OPTIONS:Q,NUMBER_OPTIONS:tt});var nt=n(21),rt=n.n(nt);function it(t){return\"boolean\"==typeof t||!!isFinite(t)&&t===Math.round(t)}var ot=Math.sign||function(t){return t>0?1:t<0?-1:0},at=Math.log2||function(t){return Math.log(t)/Math.LN2},st=Math.log10||function(t){return Math.log(t)/Math.LN10},ut=(Math.log1p,Math.cbrt||function(t){if(0===t)return t;var e,n=t<0;return n&&(t=-t),e=isFinite(t)?(t/((e=Math.exp(Math.log(t)/3))*e)+2*e)/3:t,n?-e:e}),lt=Math.expm1||function(t){return t>=2e-4||t<=-2e-4?Math.exp(t)-1:t+t*t/2+t*t*t/6};function ct(t,e,n){var r={2:\"0b\",8:\"0o\",16:\"0x\"}[e],i=\"\";if(n){if(n<1)throw new Error(\"size must be in greater than 0\");if(!it(n))throw new Error(\"size must be an integer\");if(t>Math.pow(2,n-1)-1||t<-Math.pow(2,n-1))throw new Error(\"Value must be in range [-2^\".concat(n-1,\", 2^\").concat(n-1,\"-1]\"));if(!it(t))throw new Error(\"Value must be an integer\");t<0&&(t+=Math.pow(2,n)),i=\"i\".concat(n)}var o=\"\";return t<0&&(t=-t,o=\"-\"),\"\".concat(o).concat(r).concat(t.toString(e)).concat(i)}function ht(t,e){if(\"function\"==typeof e)return e(t);if(t===1/0)return\"Infinity\";if(t===-1/0)return\"-Infinity\";if(isNaN(t))return\"NaN\";var n,r,i=\"auto\";if(e&&(e.notation&&(i=e.notation),s(e)?n=e:s(e.precision)&&(n=e.precision),e.wordSize&&\"number\"!=typeof(r=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return dt(t,n);case\"exponential\":return pt(t,n);case\"engineering\":return function(t,e){if(isNaN(t)||!isFinite(t))return String(t);var n=ft(t),r=mt(n,e),i=r.exponent,o=r.coefficients,a=i%3==0?i:i<0?i-3-i%3:i-i%3;if(s(e))for(;e>o.length||i-a+1>o.length;)o.push(0);else for(var u=Math.abs(i-a)-(o.length-1),l=0;l<u;l++)o.push(0);var c=Math.abs(i-a),h=1;for(;c>0;)h++,c--;var f=o.slice(h).join(\"\"),d=s(e)&&f.length||f.match(/[1-9]/)?\".\"+f:\"\",p=o.slice(0,h).join(\"\")+d+\"e\"+(i>=0?\"+\":\"\")+a.toString();return r.sign+p}(t,n);case\"bin\":return ct(t,2,r);case\"oct\":return ct(t,8,r);case\"hex\":return ct(t,16,r);case\"auto\":return function(t,e,n){if(isNaN(t)||!isFinite(t))return String(t);var r=n&&void 0!==n.lowerExp?n.lowerExp:-3,i=n&&void 0!==n.upperExp?n.upperExp:5,o=ft(t),a=e?mt(o,e):o;if(a.exponent<r||a.exponent>=i)return pt(t,e);var s=a.coefficients,u=a.exponent;s.length<e&&(s=s.concat(vt(e-s.length))),s=s.concat(vt(u-s.length+1+(s.length<e?e-s.length:0)));var l=u>0?u:0;return l<(s=vt(-u).concat(s)).length-1&&s.splice(l+1,0,\".\"),a.sign+s.join(\"\")}(t,n,e&&e).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function ft(t){var e=String(t).toLowerCase().match(/^(-?)(\\d+\\.?\\d*)(e([+-]?\\d+))?$/);if(!e)throw new SyntaxError(\"Invalid number \"+t);var n=e[1],r=e[2],i=parseFloat(e[4]||\"0\"),o=r.indexOf(\".\");i+=-1!==o?o-1:r.length-1;var a=r.replace(\".\",\"\").replace(/^0*/,(function(t){return i-=t.length,\"\"})).replace(/0*$/,\"\").split(\"\").map((function(t){return parseInt(t)}));return 0===a.length&&(a.push(0),i++),{sign:n,coefficients:a,exponent:i}}function dt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var n=ft(t),r=\"number\"==typeof e?mt(n,n.exponent+1+e):n,i=r.coefficients,o=r.exponent+1,a=o+(e||0);return i.length<a&&(i=i.concat(vt(a-i.length))),o<0&&(i=vt(1-o).concat(i),o=1),o<i.length&&i.splice(o,0,0===o?\"0.\":\".\"),r.sign+i.join(\"\")}function pt(t,e){if(isNaN(t)||!isFinite(t))return String(t);var n=ft(t),r=e?mt(n,e):n,i=r.coefficients,o=r.exponent;i.length<e&&(i=i.concat(vt(e-i.length)));var a=i.shift();return r.sign+a+(i.length>0?\".\"+i.join(\"\"):\"\")+\"e\"+(o>=0?\"+\":\"\")+o}function mt(t,e){for(var n={sign:t.sign,coefficients:t.coefficients,exponent:t.exponent},r=n.coefficients;e<=0;)r.unshift(0),n.exponent++,e++;if(r.length>e&&r.splice(e,r.length-e)[0]>=5){var i=e-1;for(r[i]++;10===r[i];)r.pop(),0===i&&(r.unshift(0),n.exponent++,i++),r[--i]++}return n}function vt(t){for(var e=[],n=0;n<t;n++)e.push(0);return e}var gt=Number.EPSILON||2220446049250313e-31;function yt(t,e,n){if(null==n)return t===e;if(t===e)return!0;if(isNaN(t)||isNaN(e))return!1;if(isFinite(t)&&isFinite(e)){var r=Math.abs(t-e);return r<=gt||r<=Math.max(Math.abs(t),Math.abs(e))*n}return!1}var bt=Math.acosh||function(t){return Math.log(Math.sqrt(t*t-1)+t)},_t=Math.asinh||function(t){return Math.log(Math.sqrt(t*t+1)+t)},wt=Math.atanh||function(t){return Math.log((1+t)/(1-t))/2},xt=(Math.cosh,Math.sinh||function(t){return(Math.exp(t)-Math.exp(-t))/2});Math.tanh;function kt(t,e,n){var r=new(0,t.constructor)(2),i=\"\";if(n){if(n<1)throw new Error(\"size must be in greater than 0\");if(!it(n))throw new Error(\"size must be an integer\");if(t.greaterThan(r.pow(n-1).sub(1))||t.lessThan(r.pow(n-1).mul(-1)))throw new Error(\"Value must be in range [-2^\".concat(n-1,\", 2^\").concat(n-1,\"-1]\"));if(!t.isInteger())throw new Error(\"Value must be an integer\");t.lessThan(0)&&(t=t.add(r.pow(n))),i=\"i\".concat(n)}switch(e){case 2:return\"\".concat(t.toBinary()).concat(i);case 8:return\"\".concat(t.toOctal()).concat(i);case 16:return\"\".concat(t.toHexadecimal()).concat(i);default:throw new Error(\"Base \".concat(e,\" not supported \"))}}function St(t,e){if(\"function\"==typeof e)return e(t);if(!t.isFinite())return t.isNaN()?\"NaN\":t.gt(0)?\"Infinity\":\"-Infinity\";var n,r,i=\"auto\";if(void 0!==e&&(e.notation&&(i=e.notation),\"number\"==typeof e?n=e:void 0!==e.precision&&(n=e.precision),e.wordSize&&\"number\"!=typeof(r=e.wordSize)))throw new Error('Option \"wordSize\" must be a number');switch(i){case\"fixed\":return function(t,e){return t.toFixed(e)}(t,n);case\"exponential\":return Ct(t,n);case\"engineering\":return function(t,e){var n=t.e,r=n%3==0?n:n<0?n-3-n%3:n-n%3,i=t.mul(Math.pow(10,-r)),o=i.toPrecision(e);if(-1!==o.indexOf(\"e\")){o=new(0,t.constructor)(o).toFixed()}return o+\"e\"+(n>=0?\"+\":\"\")+r.toString()}(t,n);case\"bin\":return kt(t,2,r);case\"oct\":return kt(t,8,r);case\"hex\":return kt(t,16,r);case\"auto\":var o=e&&void 0!==e.lowerExp?e.lowerExp:-3,a=e&&void 0!==e.upperExp?e.upperExp:5;if(t.isZero())return\"0\";var s=t.toSignificantDigits(n),u=s.e;return(u>=o&&u<a?s.toFixed():Ct(t,n)).replace(/((\\.\\d*?)(0+))($|e)/,(function(){var t=arguments[2],e=arguments[4];return\".\"!==t?t+e:e}));default:throw new Error('Unknown notation \"'+i+'\". Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.')}}function Ct(t,e){return void 0!==e?t.toExponential(e-1):t.toExponential()}function Et(t){return Et=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Et(t)}function Dt(t,e){var n=function(t,e){if(\"number\"==typeof t)return ht(t,e);if(u(t))return St(t,e);if(function(t){return t&&\"object\"===Et(t)&&\"number\"==typeof t.s&&\"number\"==typeof t.n&&\"number\"==typeof t.d||!1}(t))return e&&\"decimal\"===e.fraction?t.toString():t.s*t.n+\"/\"+t.d;if(Array.isArray(t))return Mt(t,e);if(f(t))return At(t);if(\"function\"==typeof t)return t.syntax?String(t.syntax):\"function\";if(t&&\"object\"===Et(t)){return\"function\"==typeof t.format?t.format(e):t&&t.toString(e)!=={}.toString()?t.toString(e):\"{\"+Object.keys(t).map((function(n){return At(n)+\": \"+Dt(t[n],e)})).join(\", \")+\"}\"}return String(t)}(t,e);return e&&\"object\"===Et(e)&&\"truncate\"in e&&n.length>e.truncate?n.substring(0,e.truncate-3)+\"...\":n}function At(t){for(var e=String(t),n=\"\",r=0;r<e.length;){var i=e.charAt(r);n+=i in Ot?Ot[i]:i,r++}return'\"'+n+'\"'}var Ot={'\"':'\\\\\"',\"\\\\\":\"\\\\\\\\\",\"\\b\":\"\\\\b\",\"\\f\":\"\\\\f\",\"\\n\":\"\\\\n\",\"\\r\":\"\\\\r\",\"\\t\":\"\\\\t\"};function Mt(t,e){if(Array.isArray(t)){for(var n=\"[\",r=t.length,i=0;i<r;i++)0!==i&&(n+=\", \"),n+=Mt(t[i],e);return n+=\"]\"}return Dt(t,e)}function Tt(t,e){if(!f(t))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+q(t)+\", index: 0)\");if(!f(e))throw new TypeError(\"Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: \"+q(e)+\", index: 1)\");return t===e?0:t>e?1:-1}function It(t,e,n){if(!(this instanceof It))throw new SyntaxError(\"Constructor must be called with the new operator\");this.actual=t,this.expected=e,this.relation=n,this.message=\"Dimension mismatch (\"+(Array.isArray(t)?\"[\"+t.join(\", \")+\"]\":t)+\" \"+(this.relation||\"!=\")+\" \"+(Array.isArray(e)?\"[\"+e.join(\", \")+\"]\":e)+\")\",this.stack=(new Error).stack}function Pt(t,e,n){if(!(this instanceof Pt))throw new SyntaxError(\"Constructor must be called with the new operator\");this.index=t,arguments.length<3?(this.min=0,this.max=e):(this.min=e,this.max=n),void 0!==this.min&&this.index<this.min?this.message=\"Index out of range (\"+this.index+\" < \"+this.min+\")\":void 0!==this.max&&this.index>=this.max?this.message=\"Index out of range (\"+this.index+\" > \"+(this.max-1)+\")\":this.message=\"Index out of range (\"+this.index+\")\",this.stack=(new Error).stack}function Ft(t){return function(t){if(Array.isArray(t))return jt(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return jt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jt(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Nt(t){for(var e=[];Array.isArray(t);)e.push(t.length),t=t[0];return e}function Lt(t,e,n){var r,i=t.length;if(i!==e[n])throw new It(i,e[n]);if(n<e.length-1){var o=n+1;for(r=0;r<i;r++){var a=t[r];if(!Array.isArray(a))throw new It(e.length-1,e.length,\"<\");Lt(t[r],e,o)}}else for(r=0;r<i;r++)if(Array.isArray(t[r]))throw new It(e.length+1,e.length,\">\")}function Bt(t,e){if(0===e.length){if(Array.isArray(t))throw new It(t.length,0)}else Lt(t,e,0)}function $t(t,e){if(void 0!==t){if(!s(t)||!it(t))throw new TypeError(\"Index must be an integer (value: \"+t+\")\");if(t<0||\"number\"==typeof e&&t>=e)throw new Pt(t,e)}}function zt(t,e,n){if(!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new Error(\"Resizing to scalar is not supported\");return e.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+Dt(e)+\")\")})),(s(t)||u(t))&&(t=[t]),Rt(t,e,0,void 0!==n?n:0),t}function Rt(t,e,n,r){var i,o,a=t.length,s=e[n],u=Math.min(a,s);if(t.length=s,n<e.length-1){var l=n+1;for(i=0;i<u;i++)o=t[i],Array.isArray(o)||(o=[o],t[i]=o),Rt(o,e,l,r);for(i=u;i<s;i++)o=[],t[i]=o,Rt(o,e,l,r)}else{for(i=0;i<u;i++)for(;Array.isArray(t[i]);)t[i]=t[i][0];for(i=u;i<s;i++)t[i]=r}}function Ut(t,e){var n=Wt(t),r=n.length;if(!Array.isArray(t)||!Array.isArray(e))throw new TypeError(\"Array expected\");if(0===e.length)throw new It(0,r,\"!=\");var i=Ht(e=Vt(e,r));if(r!==i)throw new It(i,r,\"!=\");try{return function(t,e){for(var n,r=t,i=e.length-1;i>0;i--){var o=e[i];n=[];for(var a=r.length/o,s=0;s<a;s++)n.push(r.slice(s*o,(s+1)*o));r=n}return r}(n,e)}catch(t){if(t instanceof It)throw new It(i,r,\"!=\");throw t}}function Vt(t,e){var n=Ht(t),r=t.slice(),i=t.indexOf(-1);if(t.indexOf(-1,i+1)>=0)throw new Error(\"More than one wildcard in sizes\");if(i>=0){if(!(e%n==0))throw new Error(\"Could not replace wildcard, since \"+e+\" is no multiple of \"+-n);r[i]=-e/n}return r}function Ht(t){return t.reduce((function(t,e){return t*e}),1)}function Gt(t,e,n,r){var i=r||Nt(t);if(n)for(var o=0;o<n;o++)t=[t],i.unshift(1);for(t=qt(t,e,0);i.length<e;)i.push(1);return t}function qt(t,e,n){var r,i;if(Array.isArray(t)){var o=n+1;for(r=0,i=t.length;r<i;r++)t[r]=qt(t[r],e,o)}else for(var a=n;a<e;a++)t=[t];return t}function Wt(t){if(!Array.isArray(t))return t;var e=[];return t.forEach((function t(n){Array.isArray(n)?n.forEach(t):e.push(n)})),e}function Yt(t,e){for(var n,r=0,i=0;i<t.length;i++){var o=t[i],a=Array.isArray(o);if(0===i&&a&&(r=o.length),a&&o.length!==r)return;var s=a?Yt(o,e):e(o);if(void 0===n)n=s;else if(n!==s)return\"mixed\"}return n}function Zt(t,e,n,r){if(r<n){if(t.length!==e.length)throw new It(t.length,e.length);for(var i=[],o=0;o<t.length;o++)i[o]=Zt(t[o],e[o],n,r+1);return i}return t.concat(e)}function Kt(){var t=Array.prototype.slice.call(arguments,0,-1),e=Array.prototype.slice.call(arguments,-1);if(1===t.length)return t[0];if(t.length>1)return t.slice(1).reduce((function(t,n){return Zt(t,n,e,0)}),t[0]);throw new Error(\"Wrong number of arguments in function concat\")}function Xt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=e.map((function(t){return t.length})),i=Math.max.apply(Math,Ft(r)),o=new Array(i).fill(null),a=0;a<e.length;a++)for(var s=e[a],u=r[a],l=0;l<u;l++){var c=i-u+l;s[l]>o[c]&&(o[c]=s[l])}for(var h=0;h<e.length;h++)Jt(e[h],o);return o}function Jt(t,e){for(var n=e.length,r=t.length,i=0;i<r;i++){var o=n-r+i;if(t[i]<e[o]&&t[i]>1||t[i]>e[o])throw new Error(\"shape missmatch: missmatch is found in arg with shape (\".concat(t,\") not possible to broadcast dimension \").concat(r,\" with size \").concat(t[i],\" to size \").concat(e[o]))}}function Qt(t,e){var n=Nt(t);if(X(n,e))return t;Jt(n,e);var r,o,a,s=Xt(n,e),u=s.length,l=[].concat(Ft(Array(u-n.length).fill(1)),Ft(n)),c=function(t){return i()([],t)}(t);n.length<u&&(n=Nt(c=Ut(c,l)));for(var h=0;h<u;h++)n[h]<s[h]&&(r=c,o=s[h],a=h,n=Nt(c=Kt.apply(void 0,Ft(Array(o).fill(r)).concat([a]))));return c}function te(t,e,n,r){function i(r){var i=function(t,e){for(var n={},r=0;r<e.length;r++){var i=e[r],o=t[i];void 0!==o&&(n[i]=o)}return n}(r,e.map(ee));return function(t,e,n){var r=e.filter((function(t){return!function(t){return t&&\"?\"===t[0]}(t)})).every((function(t){return void 0!==n[t]}));if(!r){var i=e.filter((function(t){return void 0===n[t]}));throw new Error('Cannot create function \"'.concat(t,'\", ')+\"some dependencies are missing: \".concat(i.map((function(t){return'\"'.concat(t,'\"')})).join(\", \"),\".\"))}}(t,e,r),n(i)}return i.isFactory=!0,i.fn=t,i.dependencies=e.slice().sort(),r&&(i.meta=r),i}function ee(t){return t&&\"?\"===t[0]?t.slice(1):t}It.prototype=new RangeError,It.prototype.constructor=RangeError,It.prototype.name=\"DimensionError\",It.prototype.isDimensionError=!0,Pt.prototype=new RangeError,Pt.prototype.constructor=RangeError,Pt.prototype.name=\"IndexError\",Pt.prototype.isIndexError=!0;var ne=te(\"BigNumber\",[\"?on\",\"config\"],(function(t){var e=t.on,n=t.config,r=rt.a.clone({precision:n.precision,modulo:rt.a.EUCLID});return r.prototype=Object.create(r.prototype),r.prototype.type=\"BigNumber\",r.prototype.isBigNumber=!0,r.prototype.toJSON=function(){return{mathjs:\"BigNumber\",value:this.toString()}},r.fromJSON=function(t){return new r(t.value)},e&&e(\"config\",(function(t,e){t.precision!==e.precision&&r.config({precision:t.precision})})),r}),{isClass:!0}),re=n(5),ie=n.n(re);function oe(t){return oe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},oe(t)}var ae=te(\"Complex\",[],(function(){return Object.defineProperty(ie.a,\"name\",{value:\"Complex\"}),ie.a.prototype.constructor=ie.a,ie.a.prototype.type=\"Complex\",ie.a.prototype.isComplex=!0,ie.a.prototype.toJSON=function(){return{mathjs:\"Complex\",re:this.re,im:this.im}},ie.a.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},ie.a.prototype.format=function(t){var e=this.im,n=this.re,r=ht(this.re,t),i=ht(this.im,t),o=s(t)?t:t?t.precision:null;if(null!==o){var a=Math.pow(10,-o);Math.abs(n/e)<a&&(n=0),Math.abs(e/n)<a&&(e=0)}return 0===e?r:0===n?1===e?\"i\":-1===e?\"-i\":i+\"i\":e<0?-1===e?r+\" - i\":r+\" - \"+i.substring(1)+\"i\":1===e?r+\" + i\":r+\" + \"+i+\"i\"},ie.a.fromPolar=function(t){switch(arguments.length){case 1:var e=arguments[0];if(\"object\"===oe(e))return ie()(e);throw new TypeError(\"Input has to be an object with r and phi keys.\");case 2:var n=arguments[0],r=arguments[1];if(s(n)){if(h(r)&&r.hasBase(\"ANGLE\")&&(r=r.toNumber(\"rad\")),s(r))return new ie.a({r:n,phi:r});throw new TypeError(\"Phi is not a number nor an angle unit.\")}throw new TypeError(\"Radius r is not a number.\");default:throw new SyntaxError(\"Wrong number of arguments in function fromPolar\")}},ie.a.prototype.valueOf=ie.a.prototype.toString,ie.a.fromJSON=function(t){return new ie.a(t)},ie.a.compare=function(t,e){return t.re>e.re?1:t.re<e.re?-1:t.im>e.im?1:t.im<e.im?-1:0},ie.a}),{isClass:!0});function se(t){var e=0,n=1,r=Object.create(null),i=Object.create(null),o=0,a=function(t){var a=i[t];if(a&&(delete r[a],delete i[t],--e,n===a)){if(!e)return o=0,void(n=1);for(;!Object.prototype.hasOwnProperty.call(r,++n););}};return t=Math.abs(t),{hit:function(s){var u=i[s],l=++o;if(r[l]=s,i[s]=l,!u){if(++e<=t)return;return s=r[n],a(s),s}if(delete r[u],n===u)for(;!Object.prototype.hasOwnProperty.call(r,++n););},delete:a,clear:function(){e=o=0,n=1,r=Object.create(null),i=Object.create(null)}}}function ue(t){return ue=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ue(t)}function le(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.hasher,r=e.limit;return r=null==r?Number.POSITIVE_INFINITY:r,n=null==n?JSON.stringify:n,function e(){\"object\"!==ue(e.cache)&&(e.cache={values:new Map,lru:se(r||Number.POSITIVE_INFINITY)});for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=n(i);if(e.cache.values.has(a))return e.cache.lru.hit(a),e.cache.values.get(a);var s=t.apply(t,i);return e.cache.values.set(a,s),e.cache.values.delete(e.cache.lru.hit(a)),s}}function ce(t){return Object.keys(t.signatures||{}).reduce((function(t,e){var n=(e.match(/,/g)||[]).length+1;return Math.max(t,n)}),-1)}le((function(t){return new t(1).exp()}),{hasher:fe}),le((function(t){return new t(1).plus(new t(5).sqrt()).div(2)}),{hasher:fe});var he=le((function(t){return t.acos(-1)}),{hasher:fe});le((function(t){return he(t).times(2)}),{hasher:fe});function fe(t){return t[0].precision}Math.PI,Math.PI,Math.E;de(\"fineStructure\",.0072973525693),de(\"weakMixingAngle\",.2229),de(\"efimovFactor\",22.7),de(\"sackurTetrode\",-1.16487052358);function de(t,e){return te(t,[\"config\",\"BigNumber\"],(function(t){var n=t.config,r=t.BigNumber;return\"BigNumber\"===n.number?new r(e):e}))}var pe=n(12),me=n.n(pe),ve=te(\"Fraction\",[],(function(){return Object.defineProperty(me.a,\"name\",{value:\"Fraction\"}),me.a.prototype.constructor=me.a,me.a.prototype.type=\"Fraction\",me.a.prototype.isFraction=!0,me.a.prototype.toJSON=function(){return{mathjs:\"Fraction\",n:this.s*this.n,d:this.d}},me.a.fromJSON=function(t){return new me.a(t)},me.a}),{isClass:!0}),ge=te(\"Matrix\",[],(function(){function t(){if(!(this instanceof t))throw new SyntaxError(\"Constructor must be called with the new operator\")}return t.prototype.type=\"Matrix\",t.prototype.isMatrix=!0,t.prototype.storage=function(){throw new Error(\"Cannot invoke storage on a Matrix interface\")},t.prototype.datatype=function(){throw new Error(\"Cannot invoke datatype on a Matrix interface\")},t.prototype.create=function(t,e){throw new Error(\"Cannot invoke create on a Matrix interface\")},t.prototype.subset=function(t,e,n){throw new Error(\"Cannot invoke subset on a Matrix interface\")},t.prototype.get=function(t){throw new Error(\"Cannot invoke get on a Matrix interface\")},t.prototype.set=function(t,e,n){throw new Error(\"Cannot invoke set on a Matrix interface\")},t.prototype.resize=function(t,e){throw new Error(\"Cannot invoke resize on a Matrix interface\")},t.prototype.reshape=function(t,e){throw new Error(\"Cannot invoke reshape on a Matrix interface\")},t.prototype.clone=function(){throw new Error(\"Cannot invoke clone on a Matrix interface\")},t.prototype.size=function(){throw new Error(\"Cannot invoke size on a Matrix interface\")},t.prototype.map=function(t,e){throw new Error(\"Cannot invoke map on a Matrix interface\")},t.prototype.forEach=function(t){throw new Error(\"Cannot invoke forEach on a Matrix interface\")},t.prototype[Symbol.iterator]=function(){throw new Error(\"Cannot iterate a Matrix interface\")},t.prototype.toArray=function(){throw new Error(\"Cannot invoke toArray on a Matrix interface\")},t.prototype.valueOf=function(){throw new Error(\"Cannot invoke valueOf on a Matrix interface\")},t.prototype.format=function(t){throw new Error(\"Cannot invoke format on a Matrix interface\")},t.prototype.toString=function(){throw new Error(\"Cannot invoke toString on a Matrix interface\")},t}),{isClass:!0});function ye(t){return ye=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ye(t)}function be(t,e){var n=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if(\"string\"==typeof t)return _e(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _e(t,e)}(t))||e&&t&&\"number\"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function we(){we=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new M(r||[]);return i(a,\"_invoke\",{value:E(t,n,s)}),a}function h(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var f=\"suspendedStart\",d=\"suspendedYield\",p=\"executing\",m=\"completed\",v={};function g(){}function y(){}function b(){}var _={};l(_,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(T([])));x&&x!==n&&r.call(x,a)&&(_=x);var k=b.prototype=g.prototype=Object.create(_);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var u=h(t[i],t,o);if(\"throw\"!==u.type){var l=u.arg,c=l.value;return c&&\"object\"==ye(c)&&r.call(c,\"__await\")?e.resolve(c.__await).then((function(t){n(\"next\",t,a,s)}),(function(t){n(\"throw\",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return n(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=f;return function(o,a){if(i===p)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=D(s,r);if(u){if(u===v)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=p;var l=h(e,n,r);if(\"normal\"===l.type){if(i=r.done?m:d,l.arg===v)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=m,r.method=\"throw\",r.arg=l.arg)}}}function D(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,D(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),v;var o=h(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,v):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(A,this),this.reset(!0)}function T(e){if(e||\"\"===e){var n=e[a];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(ye(e)+\" is not iterable\")}return y.prototype=b,i(k,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:y,configurable:!0}),y.displayName=l(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===y||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),l(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),l(k,u,\"Generator\"),l(k,a,(function(){return this})),l(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)\"t\"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=r.call(a,\"catchLoc\"),l=r.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;O(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),v}},e}var xe=te(\"DenseMatrix\",[\"Matrix\"],(function(t){var e=t.Matrix;function n(t,e){if(!(this instanceof n))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!f(e))throw new Error(\"Invalid datatype: \"+e);if(p(t))\"DenseMatrix\"===t.type?(this._data=Y(t._data),this._size=Y(t._size),this._datatype=e||t._datatype):(this._data=t.toArray(),this._size=t.size(),this._datatype=e||t._datatype);else if(t&&d(t.data)&&d(t.size))this._data=t.data,this._size=t.size,Bt(this._data,this._size),this._datatype=e||t.datatype;else if(d(t))this._data=l(t),this._size=Nt(this._data),Bt(this._data,this._size),this._datatype=e;else{if(t)throw new TypeError(\"Unsupported type of data (\"+q(t)+\")\");this._data=[],this._size=[0],this._datatype=e}}function r(t,e,n,i){var o=i===n-1,a=e.dimension(i);return o?a.map((function(e){return $t(e,t.length),t[e]})).valueOf():a.map((function(o){return $t(o,t.length),r(t[o],e,n,i+1)})).valueOf()}function i(t,e,n,r,o){var a=o===r-1,s=e.dimension(o);a?s.forEach((function(e,r){$t(e),t[e]=n[r[0]]})):s.forEach((function(a,s){$t(a),i(t[a],e,n[s[0]],r,o+1)}))}function o(t,e,n){if(0===e.length){for(var r=t._data;d(r);)r=r[0];return r}return t._size=e.slice(0),t._data=zt(t._data,t._size,n),t}function a(t,e,n){for(var r=t._size.slice(0),i=!1;r.length<e.length;)r.push(0),i=!0;for(var a=0,s=e.length;a<s;a++)e[a]>r[a]&&(r[a]=e[a],i=!0);i&&o(t,r,n)}function l(t){return p(t)?l(t.valueOf()):d(t)?t.map(l):t}return n.prototype=new e,n.prototype.createDenseMatrix=function(t,e){return new n(t,e)},Object.defineProperty(n,\"name\",{value:\"DenseMatrix\"}),n.prototype.constructor=n,n.prototype.type=\"DenseMatrix\",n.prototype.isDenseMatrix=!0,n.prototype.getDataType=function(){return Yt(this._data,q)},n.prototype.storage=function(){return\"dense\"},n.prototype.datatype=function(){return this._datatype},n.prototype.create=function(t,e){return new n(t,e)},n.prototype.subset=function(t,e,o){switch(arguments.length){case 1:return function(t,e){if(!b(e))throw new TypeError(\"Invalid index\");var i=e.isScalar();if(i)return t.get(e.min());var o=e.size();if(o.length!==t._size.length)throw new It(o.length,t._size.length);for(var a=e.min(),s=e.max(),u=0,l=t._size.length;u<l;u++)$t(a[u],t._size[u]),$t(s[u],t._size[u]);return new n(r(t._data,e,o.length,0),t._datatype)}(this,t);case 2:case 3:return function(t,e,n,r){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var o,s=e.size(),u=e.isScalar();p(n)?(o=n.size(),n=n.valueOf()):o=Nt(n);if(u){if(0!==o.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),n,r)}else{if(!X(o,s))try{o=Nt(n=0===o.length?Qt([n],s):Qt(n,s))}catch(t){}if(s.length<t._size.length)throw new It(s.length,t._size.length,\"<\");if(o.length<s.length){for(var l=0,c=0;1===s[l]&&1===o[l];)l++;for(;1===s[l];)c++,l++;n=Gt(n,s.length,c,o)}if(!X(s,o))throw new It(s,o,\">\");var h=e.max().map((function(t){return t+1}));a(t,h,r);var f=s.length,d=0;i(t._data,e,n,f,d)}return t}(this,t,e,o);default:throw new SyntaxError(\"Wrong number of arguments\")}},n.prototype.get=function(t){if(!d(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new It(t.length,this._size.length);for(var e=0;e<t.length;e++)$t(t[e],this._size[e]);for(var n=this._data,r=0,i=t.length;r<i;r++){var o=t[r];$t(o,n.length),n=n[o]}return n},n.prototype.set=function(t,e,n){if(!d(t))throw new TypeError(\"Array expected\");if(t.length<this._size.length)throw new It(t.length,this._size.length,\"<\");var r,i,o,s=t.map((function(t){return t+1}));a(this,s,n);var u=this._data;for(r=0,i=t.length-1;r<i;r++)$t(o=t[r],u.length),u=u[o];return $t(o=t[t.length-1],u.length),u[o]=e,this},n.prototype.resize=function(t,e,n){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var r=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));return o(n?this.clone():this,r,e)},n.prototype.reshape=function(t,e){var n=e?this.clone():this;n._data=Ut(n._data,t);var r=n._size.reduce((function(t,e){return t*e}));return n._size=Vt(t,r),n},n.prototype.clone=function(){return new n({data:Y(this._data),size:Y(this._size),datatype:this._datatype})},n.prototype.size=function(){return this._size.slice(0)},n.prototype.map=function(t){var e=this,r=ce(t),i=function n(i,o){return d(i)?i.map((function(t,e){return n(t,o.concat(e))})):1===r?t(i):2===r?t(i,o):t(i,o,e)}(this._data,[]);return new n(i,void 0!==this._datatype?Yt(i,q):void 0)},n.prototype.forEach=function(t){var e=this;!function n(r,i){d(r)?r.forEach((function(t,e){n(t,i.concat(e))})):t(r,i,e)}(this._data,[])},n.prototype[Symbol.iterator]=we().mark((function t(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=we().mark((function t(e,n){var r;return we().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!d(e)){i.next=9;break}r=0;case 2:if(!(r<e.length)){i.next=7;break}return i.delegateYield(t(e[r],n.concat(r)),\"t0\",4);case 4:r++,i.next=2;break;case 7:i.next=11;break;case 9:return i.next=11,{value:e,index:n};case 11:case\"end\":return i.stop()}}),t)})),t.delegateYield(e(this._data,[]),\"t0\",2);case 2:case\"end\":return t.stop()}}),t,this)})),n.prototype.rows=function(){var t=[];if(2!==this.size().length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");var e,r=be(this._data);try{for(r.s();!(e=r.n()).done;){var i=e.value;t.push(new n([i],this._datatype))}}catch(t){r.e(t)}finally{r.f()}return t},n.prototype.columns=function(){var t=this,e=[],r=this.size();if(2!==r.length)throw new TypeError(\"Rows can only be returned for a 2D matrix.\");for(var i=this._data,o=function(r){var o=i.map((function(t){return[t[r]]}));e.push(new n(o,t._datatype))},a=0;a<r[1];a++)o(a);return e},n.prototype.toArray=function(){return Y(this._data)},n.prototype.valueOf=function(){return this._data},n.prototype.format=function(t){return Dt(this._data,t)},n.prototype.toString=function(){return Dt(this._data)},n.prototype.toJSON=function(){return{mathjs:\"DenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},n.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;for(var e=t>0?t:0,r=t<0?-t:0,i=this._size[0],o=this._size[1],a=Math.min(i-r,o-e),l=[],c=0;c<a;c++)l[c]=this._data[c+r][c+e];return new n({data:l,size:[a],datatype:this._datatype})},n.diagonal=function(t,e,r,i){if(!d(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),r){if(u(r)&&(r=r.toNumber()),!s(r)||!it(r))throw new TypeError(\"The parameter k must be an integer number\")}else r=0;var o,a=r>0?r:0,l=r<0?-r:0,c=t[0],h=t[1],f=Math.min(c-l,h-a);if(d(e)){if(e.length!==f)throw new Error(\"Invalid value array length\");o=function(t){return e[t]}}else if(p(e)){var m=e.size();if(1!==m.length||m[0]!==f)throw new Error(\"Invalid matrix length\");o=function(t){return e.get([t])}}else o=function(){return e};i||(i=u(o(0))?o(0).mul(0):0);var v=[];if(t.length>0){v=zt(v,t,i);for(var g=0;g<f;g++)v[g+l][g+a]=o(g)}return new n({data:v,size:[c,h]})},n.fromJSON=function(t){return new n(t)},n.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return $t(t,this._size[0]),$t(e,this._size[0]),n._swapRows(t,e,this._data),this},n._swapRows=function(t,e,n){var r=n[t];n[t]=n[e],n[e]=r},n}),{isClass:!0}),ke=n(16),Se=n.n(ke);function Ce(t){return Ce=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Ce(t)}function Ee(t,e){if(Me(t)&&Ae(t,e))return t[e];if(\"function\"==typeof t[e]&&Oe(t,e))throw new Error('Cannot access method \"'+e+'\" as a property');throw new Error('No access to property \"'+e+'\"')}function De(t,e,n){if(Me(t)&&Ae(t,e))return t[e]=n,n;throw new Error('No access to property \"'+e+'\"')}function Ae(t,e){return!(!t||\"object\"!==Ce(t))&&(!!J(Te,e)||!(e in Object.prototype)&&!(e in Function.prototype))}function Oe(t,e){return null!=t&&\"function\"==typeof t[e]&&(!(J(t,e)&&Object.getPrototypeOf&&e in Object.getPrototypeOf(t))&&(!!J(Ie,e)||!(e in Object.prototype)&&!(e in Function.prototype)))}function Me(t){return\"object\"===Ce(t)&&t&&t.constructor===Object}var Te={length:!0,name:!0},Ie={toString:!0,valueOf:!0,toLocaleString:!0};function Pe(t){return Pe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Pe(t)}function Fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,je(r.key),r)}}function je(t){var e=function(t,e){if(\"object\"!=Pe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=Pe(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==Pe(e)?e:e+\"\"}var Ne=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.wrappedObject=e},(e=[{key:\"keys\",value:function(){return Object.keys(this.wrappedObject)}},{key:\"get\",value:function(t){return Ee(this.wrappedObject,t)}},{key:\"set\",value:function(t,e){return De(this.wrappedObject,t,e),this}},{key:\"has\",value:function(t){return e=this.wrappedObject,t in e;var e}}])&&Fe(t.prototype,e),n&&Fe(t,n),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,n}();function Le(t){return!!t&&(t instanceof Map||t instanceof Ne||\"function\"==typeof t.set&&\"function\"==typeof t.get&&\"function\"==typeof t.keys&&\"function\"==typeof t.has)}var Be=function(){return Be=Se.a.create,Se.a},$e=te(\"typed\",[\"?BigNumber\",\"?Complex\",\"?DenseMatrix\",\"?Fraction\"],(function(t){var e=t.BigNumber,n=t.Complex,r=t.DenseMatrix,i=t.Fraction,o=Be();return o.clear(),o.addTypes([{name:\"number\",test:s},{name:\"Complex\",test:l},{name:\"BigNumber\",test:u},{name:\"Fraction\",test:c},{name:\"Unit\",test:h},{name:\"identifier\",test:function(t){return f&&/^(?:[A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])*$/.test(t)}},{name:\"string\",test:f},{name:\"Chain\",test:G},{name:\"Array\",test:d},{name:\"Matrix\",test:p},{name:\"DenseMatrix\",test:v},{name:\"SparseMatrix\",test:g},{name:\"Range\",test:y},{name:\"Index\",test:b},{name:\"boolean\",test:_},{name:\"ResultSet\",test:w},{name:\"Help\",test:x},{name:\"function\",test:k},{name:\"Date\",test:S},{name:\"RegExp\",test:C},{name:\"null\",test:D},{name:\"undefined\",test:A},{name:\"AccessorNode\",test:O},{name:\"ArrayNode\",test:M},{name:\"AssignmentNode\",test:T},{name:\"BlockNode\",test:I},{name:\"ConditionalNode\",test:P},{name:\"ConstantNode\",test:F},{name:\"FunctionNode\",test:N},{name:\"FunctionAssignmentNode\",test:j},{name:\"IndexNode\",test:L},{name:\"Node\",test:B},{name:\"ObjectNode\",test:$},{name:\"OperatorNode\",test:z},{name:\"ParenthesisNode\",test:R},{name:\"RangeNode\",test:U},{name:\"RelationalNode\",test:V},{name:\"SymbolNode\",test:H},{name:\"Map\",test:Le},{name:\"Object\",test:E}]),o.addConversions([{from:\"number\",to:\"BigNumber\",convert:function(t){if(e||ze(t),t.toExponential().replace(/e.*$/,\"\").replace(/^0\\.?0*|\\./,\"\").length>15)throw new TypeError(\"Cannot implicitly convert a number with >15 significant digits to BigNumber (value: \"+t+\"). Use function bignumber(x) to convert to BigNumber.\");return new e(t)}},{from:\"number\",to:\"Complex\",convert:function(t){return n||Re(t),new n(t,0)}},{from:\"BigNumber\",to:\"Complex\",convert:function(t){return n||Re(t),new n(t.toNumber(),0)}},{from:\"Fraction\",to:\"BigNumber\",convert:function(t){throw new TypeError(\"Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.\")}},{from:\"Fraction\",to:\"Complex\",convert:function(t){return n||Re(t),new n(t.valueOf(),0)}},{from:\"number\",to:\"Fraction\",convert:function(t){i||Ue(t);var e=new i(t);if(e.valueOf()!==t)throw new TypeError(\"Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: \"+t+\"). Use function fraction(x) to convert to Fraction.\");return e}},{from:\"string\",to:\"number\",convert:function(t){var e=Number(t);if(isNaN(e))throw new Error('Cannot convert \"'+t+'\" to a number');return e}},{from:\"string\",to:\"BigNumber\",convert:function(t){e||ze(t);try{return new e(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to BigNumber')}}},{from:\"string\",to:\"Fraction\",convert:function(t){i||Ue(t);try{return new i(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Fraction')}}},{from:\"string\",to:\"Complex\",convert:function(t){n||Re(t);try{return new n(t)}catch(e){throw new Error('Cannot convert \"'+t+'\" to Complex')}}},{from:\"boolean\",to:\"number\",convert:function(t){return+t}},{from:\"boolean\",to:\"BigNumber\",convert:function(t){return e||ze(t),new e(+t)}},{from:\"boolean\",to:\"Fraction\",convert:function(t){return i||Ue(t),new i(+t)}},{from:\"boolean\",to:\"string\",convert:function(t){return String(t)}},{from:\"Array\",to:\"Matrix\",convert:function(t){return r||function(){throw new Error(\"Cannot convert array into a Matrix: no class 'DenseMatrix' provided\")}(),new r(t)}},{from:\"Matrix\",to:\"Array\",convert:function(t){return t.valueOf()}}]),o.onMismatch=function(t,e,n){var r=o.createError(t,e,n);if([\"wrongType\",\"mismatch\"].includes(r.data.category)&&1===e.length&&m(e[0])&&n.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=r.data,i}throw r},o.onMismatch=function(t,e,n){var r=o.createError(t,e,n);if([\"wrongType\",\"mismatch\"].includes(r.data.category)&&1===e.length&&m(e[0])&&n.some((function(t){return!t.params.includes(\",\")}))){var i=new TypeError(\"Function '\".concat(t,\"' doesn't apply to matrices. To call it \")+\"elementwise on a matrix 'M', try 'map(M, \".concat(t,\")'.\"));throw i.data=r.data,i}throw r},o}));function ze(t){throw new Error(\"Cannot convert value \".concat(t,\" into a BigNumber: no class 'BigNumber' provided\"))}function Re(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Complex number: no class 'Complex' provided\"))}function Ue(t){throw new Error(\"Cannot convert value \".concat(t,\" into a Fraction, no class 'Fraction' provided.\"))}function Ve(t,e,n){return t&&\"function\"==typeof t.map?t.map((function(t){return Ve(t,e,n)})):e(t)}var He=\"number\",Ge=\"number, number\";function qe(t){return Math.abs(t)}function We(t,e){return t+e}function Ye(t,e){return t-e}function Ze(t,e){return t*e}function Ke(t){return-t}function Xe(t){return t}function Je(t){return ut(t)}function Qe(t){return t*t*t}function tn(t){return Math.exp(t)}function en(t){return lt(t)}function nn(t,e){if(!it(t)||!it(e))throw new Error(\"Parameters in function lcm must be integer numbers\");if(0===t||0===e)return 0;for(var n,r=t*e;0!==e;)e=t%(n=e),t=n;return Math.abs(r/t)}function rn(t){return st(t)}function on(t){return at(t)}function an(t){return ot(t)}function sn(t){return t*t}function un(t,e){var n,r,i,o=0,a=1,s=1,u=0;if(!it(t)||!it(e))throw new Error(\"Parameters in function xgcd must be integer numbers\");for(;e;)i=t-(r=Math.floor(t/e))*e,n=o,o=a-r*o,a=n,n=s,s=u-r*s,u=n,t=e,e=i;return t<0?[-t,-a,-u]:[t,t?a:0,u]}function ln(t,e){return t*t<1&&e===1/0||t*t>1&&e===-1/0?0:Math.pow(t,e)}qe.signature=He,We.signature=Ge,Ye.signature=Ge,Ze.signature=Ge,Ke.signature=He,Xe.signature=He,Je.signature=He,Qe.signature=He,tn.signature=He,en.signature=He,nn.signature=Ge,rn.signature=He,on.signature=He,an.signature=He,sn.signature=He,un.signature=Ge,ln.signature=Ge;var cn=\"number\";function hn(t){return bt(t)}function fn(t){return Math.atan(1/t)}function dn(t){return isFinite(t)?(Math.log((t+1)/t)+Math.log(t/(t-1)))/2:0}function pn(t){return Math.asin(1/t)}function mn(t){var e=1/t;return Math.log(e+Math.sqrt(e*e+1))}function vn(t){return Math.acos(1/t)}function gn(t){var e=1/t,n=Math.sqrt(e*e-1);return Math.log(n+e)}function yn(t){return _t(t)}function bn(t){return wt(t)}function _n(t){return 1/Math.tan(t)}function wn(t){var e=Math.exp(2*t);return(e+1)/(e-1)}function xn(t){return 1/Math.sin(t)}function kn(t){return 0===t?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(t)-Math.exp(-t)))*ot(t)}function Sn(t){return 1/Math.cos(t)}function Cn(t){return 2/(Math.exp(t)+Math.exp(-t))}function En(t){return xt(t)}hn.signature=cn,fn.signature=cn,dn.signature=cn,pn.signature=cn,mn.signature=cn,vn.signature=cn,gn.signature=cn,yn.signature=cn,bn.signature=cn,_n.signature=cn,wn.signature=cn,xn.signature=cn,kn.signature=cn,Sn.signature=cn,Cn.signature=cn,En.signature=cn;var Dn=\"addScalar\",An=te(Dn,[\"typed\"],(function(t){var e=t.typed;return e(Dn,{\"number, number\":We,\"Complex, Complex\":function(t,e){return t.add(e)},\"BigNumber, BigNumber\":function(t,e){return t.plus(e)},\"Fraction, Fraction\":function(t,e){return t.add(e)},\"Unit, Unit\":e.referToSelf((function(t){return function(n,r){if(null===n.value||void 0===n.value)throw new Error(\"Parameter x contains a unit with undefined value\");if(null===r.value||void 0===r.value)throw new Error(\"Parameter y contains a unit with undefined value\");if(!n.equalBase(r))throw new Error(\"Units do not match\");var i=n.clone();return i.value=e.find(t,[i.valueType(),r.valueType()])(i.value,r.value),i.fixPrefix=!1,i}}))})})),On=te(\"bignumber\",[\"typed\",\"BigNumber\"],(function(t){var e=t.typed,n=t.BigNumber;return e(\"bignumber\",{\"\":function(){return new n(0)},number:function(t){return new n(t+\"\")},string:function(t){var e=t.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(e){var r=e[2],i=n(e[1]),o=new n(2).pow(Number(r));if(i.gt(o.sub(1)))throw new SyntaxError('String \"'.concat(t,'\" is out of range'));var a=new n(2).pow(Number(r)-1);return i.gte(a)?i.sub(o):i}return new n(t)},BigNumber:function(t){return t},Unit:e.referToSelf((function(t){return function(e){var n=e.clone();return n.value=t(e.value),n}})),Fraction:function(t){return new n(t.n).div(t.d).times(t.s)},null:function(t){return new n(0)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return Ve(e,t)}}))})}));var Mn=\"number, number\";function Tn(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitAnd\");return t&e}function In(t){if(!it(t))throw new Error(\"Integer expected in function bitNot\");return~t}function Pn(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitOr\");return t|e}function Fn(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function bitXor\");return t^e}function jn(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function leftShift\");return t<<e}function Nn(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightArithShift\");return t>>e}function Ln(t,e){if(!it(t)||!it(e))throw new Error(\"Integers expected in function rightLogShift\");return t>>>e}Tn.signature=Mn,In.signature=\"number\",Pn.signature=Mn,Fn.signature=Mn,jn.signature=Mn,Nn.signature=Mn,Ln.signature=Mn;function Bn(t,e){if(e<t)return 1;if(e===t)return e;var n=e+t>>1;return Bn(t,n)*Bn(n+1,e)}function $n(t,e){if(!it(t)||t<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(!it(e)||e<0)throw new TypeError(\"Positive integer value expected in function combinations\");if(e>t)throw new TypeError(\"k must be less than or equal to n\");for(var n=t-e,r=1,i=2,o=e<n?e:n,a=e<n?n+1:e+1;a<=t;++a)for(r*=a;i<=o&&r%i==0;)r/=i,++i;return i<=o&&(r/=Bn(i,o)),r}$n.signature=\"number, number\";function zn(t,e,n){if(null==n)return t.eq(e);if(t.eq(e))return!0;if(t.isNaN()||e.isNaN())return!1;if(t.isFinite()&&e.isFinite()){var r=t.minus(e).abs();if(r.isZero())return!0;var i=t.constructor.max(t.abs(),e.abs());return r.lte(i.times(n))}return!1}var Rn=te(\"compareUnits\",[\"typed\"],(function(t){var e=t.typed;return{\"Unit, Unit\":e.referToSelf((function(t){return function(n,r){if(!n.equalBase(r))throw new Error(\"Cannot compare units with different base\");return e.find(t,[n.valueType(),r.valueType()])(n.value,r.value)}}))}})),Un=\"equalScalar\",Vn=te(Un,[\"typed\",\"config\"],(function(t){var e=t.typed,n=t.config,r=Rn({typed:e});return e(Un,{\"boolean, boolean\":function(t,e){return t===e},\"number, number\":function(t,e){return yt(t,e,n.epsilon)},\"BigNumber, BigNumber\":function(t,e){return t.eq(e)||zn(t,e,n.epsilon)},\"Fraction, Fraction\":function(t,e){return t.equals(e)},\"Complex, Complex\":function(t,e){return function(t,e,n){return yt(t.re,e.re,n)&&yt(t.im,e.im,n)}(t,e,n.epsilon)}},r)}));te(Un,[\"typed\",\"config\"],(function(t){var e=t.typed,n=t.config;return e(Un,{\"number, number\":function(t,e){return yt(t,e,n.epsilon)}})})),Math.pow(2,53);var Hn=\"getMatrixDataType\",Gn=te(Hn,[\"typed\"],(function(t){return(0,t.typed)(Hn,{Array:function(t){return Yt(t,q)},Matrix:function(t){return t.getDataType()}})})),qn=(te(\"hex\",[\"typed\",\"format\"],(function(t){var e=t.typed,n=t.format;return e(\"hex\",{\"number | BigNumber\":function(t){return n(t,{notation:\"hex\"})},\"number | BigNumber, number\":function(t,e){return n(t,{notation:\"hex\",wordSize:e})}})})),\"isInteger\"),Wn=te(qn,[\"typed\"],(function(t){var e=t.typed;return e(qn,{number:it,BigNumber:function(t){return t.isInt()},Fraction:function(t){return 1===t.d&&isFinite(t.n)},\"Array | Matrix\":e.referToSelf((function(t){return function(e){return Ve(e,t)}}))})})),Yn=\"number\";function Zn(t){return t<0}function Kn(t){return t>0}function Xn(t){return 0===t}function Jn(t){return Number.isNaN(t)}Zn.signature=Yn,Kn.signature=Yn,Xn.signature=Yn,Jn.signature=Yn;var Qn=\"isPositive\",tr=te(Qn,[\"typed\"],(function(t){var e=t.typed;return e(Qn,{number:Kn,BigNumber:function(t){return!t.isNeg()&&!t.isZero()&&!t.isNaN()},Fraction:function(t){return t.s>0&&t.n>0},Unit:e.referToSelf((function(t){return function(n){return e.find(t,n.valueType())(n.value)}})),\"Array | Matrix\":e.referToSelf((function(t){return function(e){return Ve(e,t)}}))})}));function er(t){var e;if(it(t))return t<=0?isFinite(t)?1/0:NaN:t>171?1/0:Bn(1,t-1);if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*er(1-t));if(t>=171.35)return 1/0;if(t>85){var n=t*t,r=n*t,i=r*t,o=i*t;return Math.sqrt(2*Math.PI/t)*Math.pow(t/Math.E,t)*(1+1/(12*t)+1/(288*n)-139/(51840*r)-571/(2488320*i)+163879/(209018880*o)+5246819/(75246796800*o*t))}--t,e=rr[0];for(var a=1;a<rr.length;++a)e+=rr[a]/(t+a);var s=t+nr+.5;return Math.sqrt(2*Math.PI)*Math.pow(s,t+.5)*Math.exp(-s)*e}er.signature=\"number\";var nr=4.7421875,rr=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],ir=.9189385332046728,or=[1.000000000190015,76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18];function ar(t){if(t<0)return NaN;if(0===t)return 1/0;if(!isFinite(t))return t;if(t<.5)return Math.log(Math.PI/Math.sin(Math.PI*t))-ar(1-t);for(var e=(t-=1)+5+.5,n=or[0],r=6;r>=1;r--)n+=or[r]/(t+r);return ir+(t+.5)*Math.log(e)-e+Math.log(n)}ar.signature=\"number\";var sr=\"number, number\";function ur(t){return!t}function lr(t,e){return!(!t&&!e)}function cr(t,e){return!!t!=!!e}function hr(t,e){return!(!t||!e)}ur.signature=\"number\",lr.signature=sr,cr.signature=sr,hr.signature=sr;te(\"oct\",[\"typed\",\"format\"],(function(t){var e=t.typed,n=t.format;return e(\"oct\",{\"number | BigNumber\":function(t){return n(t,{notation:\"oct\"})},\"number | BigNumber, number\":function(t,e){return n(t,{notation:\"oct\",wordSize:e})}})}));var fr=n(64),dr=n.n(fr);Date.now();function pr(t){return pr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},pr(t)}function mr(){mr=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new M(r||[]);return i(a,\"_invoke\",{value:E(t,n,s)}),a}function h(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var f=\"suspendedStart\",d=\"suspendedYield\",p=\"executing\",m=\"completed\",v={};function g(){}function y(){}function b(){}var _={};l(_,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(T([])));x&&x!==n&&r.call(x,a)&&(_=x);var k=b.prototype=g.prototype=Object.create(_);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var u=h(t[i],t,o);if(\"throw\"!==u.type){var l=u.arg,c=l.value;return c&&\"object\"==pr(c)&&r.call(c,\"__await\")?e.resolve(c.__await).then((function(t){n(\"next\",t,a,s)}),(function(t){n(\"throw\",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return n(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=f;return function(o,a){if(i===p)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=D(s,r);if(u){if(u===v)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=p;var l=h(e,n,r);if(\"normal\"===l.type){if(i=r.done?m:d,l.arg===v)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=m,r.method=\"throw\",r.arg=l.arg)}}}function D(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,D(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),v;var o=h(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,v):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(A,this),this.reset(!0)}function T(e){if(e||\"\"===e){var n=e[a];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(pr(e)+\" is not iterable\")}return y.prototype=b,i(k,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:y,configurable:!0}),y.displayName=l(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===y||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),l(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),l(k,u,\"Generator\"),l(k,a,(function(){return this})),l(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)\"t\"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=r.call(a,\"catchLoc\"),l=r.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;O(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),v}},e}var vr=te(\"SparseMatrix\",[\"typed\",\"equalScalar\",\"Matrix\"],(function(t){var e=t.typed,n=t.equalScalar,r=t.Matrix;function i(t,e){if(!(this instanceof i))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!f(e))throw new Error(\"Invalid datatype: \"+e);if(p(t))!function(t,e,n){\"SparseMatrix\"===e.type?(t._values=e._values?Y(e._values):void 0,t._index=Y(e._index),t._ptr=Y(e._ptr),t._size=Y(e._size),t._datatype=n||e._datatype):o(t,e.valueOf(),n||e._datatype)}(this,t,e);else if(t&&d(t.index)&&d(t.ptr)&&d(t.size))this._values=t.values,this._index=t.index,this._ptr=t.ptr,this._size=t.size,this._datatype=e||t.datatype;else if(d(t))o(this,t,e);else{if(t)throw new TypeError(\"Unsupported type of data (\"+q(t)+\")\");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=e}}function o(t,r,i){t._values=[],t._index=[],t._ptr=[],t._datatype=i;var o=r.length,a=0,s=n,u=0;if(f(i)&&(s=e.find(n,[i,i])||n,u=e.convert(0,i)),o>0){var l=0;do{t._ptr.push(t._index.length);for(var c=0;c<o;c++){var h=r[c];if(d(h)){if(0===l&&a<h.length&&(a=h.length),l<h.length){var p=h[l];s(p,u)||(t._values.push(p),t._index.push(c))}}else 0===l&&a<1&&(a=1),s(h,u)||(t._values.push(h),t._index.push(c))}l++}while(l<a)}t._ptr.push(t._index.length),t._size=[o,a]}function a(t,e,n,r){if(n-e==0)return n;for(var i=e;i<n;i++)if(r[i]===t)return i;return e}function l(t,e,n,r,i,o,a){i.splice(t,0,r),o.splice(t,0,e);for(var s=n+1;s<a.length;s++)a[s]++}function c(t,r,i,o){var a=o||0,s=n,u=0;f(t._datatype)&&(s=e.find(n,[t._datatype,t._datatype])||n,u=e.convert(0,t._datatype),a=e.convert(a,t._datatype));var l,c,h,d=!s(a,u),p=t._size[0],m=t._size[1];if(i>m){for(c=m;c<i;c++)if(t._ptr[c]=t._values.length,d)for(l=0;l<p;l++)t._values.push(a),t._index.push(l);t._ptr[i]=t._values.length}else i<m&&(t._ptr.splice(i+1,m-i),t._values.splice(t._ptr[i],t._values.length),t._index.splice(t._ptr[i],t._index.length));if(m=i,r>p){if(d){var v=0;for(c=0;c<m;c++){t._ptr[c]=t._ptr[c]+v,h=t._ptr[c+1]+v;var g=0;for(l=p;l<r;l++,g++)t._values.splice(h+g,0,a),t._index.splice(h+g,0,l),v++}t._ptr[m]=t._values.length}}else if(r<p){var y=0;for(c=0;c<m;c++){t._ptr[c]=t._ptr[c]-y;var b=t._ptr[c],_=t._ptr[c+1]-y;for(h=b;h<_;h++)(l=t._index[h])>r-1&&(t._values.splice(h,1),t._index.splice(h,1),y++)}t._ptr[c]=t._values.length}return t._size[0]=r,t._size[1]=i,t}function h(t,e,n,r,i){var o,a,s=r[0],u=r[1],l=[];for(o=0;o<s;o++)for(l[o]=[],a=0;a<u;a++)l[o][a]=0;for(a=0;a<u;a++)for(var c=n[a],h=n[a+1],f=c;f<h;f++)l[o=e[f]][a]=t?i?Y(t[f]):t[f]:1;return l}return i.prototype=new r,i.prototype.createSparseMatrix=function(t,e){return new i(t,e)},Object.defineProperty(i,\"name\",{value:\"SparseMatrix\"}),i.prototype.constructor=i,i.prototype.type=\"SparseMatrix\",i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return Yt(this._values,q)},i.prototype.storage=function(){return\"sparse\"},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(t,e){return new i(t,e)},i.prototype.density=function(){var t=this._size[0],e=this._size[1];return 0!==t&&0!==e?this._index.length/(t*e):0},i.prototype.subset=function(t,e,n){if(!this._values)throw new Error(\"Cannot invoke subset on a Pattern only matrix\");switch(arguments.length){case 1:return function(t,e){if(!b(e))throw new TypeError(\"Invalid index\");if(e.isScalar())return t.get(e.min());var n,r,o,a,s=e.size();if(s.length!==t._size.length)throw new It(s.length,t._size.length);var u=e.min(),l=e.max();for(n=0,r=t._size.length;n<r;n++)$t(u[n],t._size[n]),$t(l[n],t._size[n]);var c=t._values,h=t._index,f=t._ptr,d=e.dimension(0),p=e.dimension(1),m=[],v=[];d.forEach((function(t,e){v[t]=e[0],m[t]=!0}));var g=c?[]:void 0,y=[],_=[];return p.forEach((function(t){for(_.push(y.length),o=f[t],a=f[t+1];o<a;o++)n=h[o],!0===m[n]&&(y.push(v[n]),g&&g.push(c[o]))})),_.push(y.length),new i({values:g,index:y,ptr:_,size:s,datatype:t._datatype})}(this,t);case 2:case 3:return function(t,e,n,r){if(!e||!0!==e.isIndex)throw new TypeError(\"Invalid index\");var i,o=e.size(),a=e.isScalar();p(n)?(i=n.size(),n=n.toArray()):i=Nt(n);if(a){if(0!==i.length)throw new TypeError(\"Scalar expected\");t.set(e.min(),n,r)}else{if(1!==o.length&&2!==o.length)throw new It(o.length,t._size.length,\"<\");if(i.length<o.length){for(var s=0,u=0;1===o[s]&&1===i[s];)s++;for(;1===o[s];)u++,s++;n=Gt(n,o.length,u,i)}if(!X(o,i))throw new It(o,i,\">\");if(1===o.length){e.dimension(0).forEach((function(e,i){$t(e),t.set([e,0],n[i[0]],r)}))}else{var l=e.dimension(0),c=e.dimension(1);l.forEach((function(e,i){$t(e),c.forEach((function(o,a){$t(o),t.set([e,o],n[i[0]][a[0]],r)}))}))}}return t}(this,t,e,n);default:throw new SyntaxError(\"Wrong number of arguments\")}},i.prototype.get=function(t){if(!d(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new It(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke get on a Pattern only matrix\");var e=t[0],n=t[1];$t(e,this._size[0]),$t(n,this._size[1]);var r=a(e,this._ptr[n],this._ptr[n+1],this._index);return r<this._ptr[n+1]&&this._index[r]===e?this._values[r]:0},i.prototype.set=function(t,r,i){if(!d(t))throw new TypeError(\"Array expected\");if(t.length!==this._size.length)throw new It(t.length,this._size.length);if(!this._values)throw new Error(\"Cannot invoke set on a Pattern only matrix\");var o=t[0],s=t[1],u=this._size[0],h=this._size[1],p=n,m=0;f(this._datatype)&&(p=e.find(n,[this._datatype,this._datatype])||n,m=e.convert(0,this._datatype)),(o>u-1||s>h-1)&&(c(this,Math.max(o+1,u),Math.max(s+1,h),i),u=this._size[0],h=this._size[1]),$t(o,u),$t(s,h);var v=a(o,this._ptr[s],this._ptr[s+1],this._index);return v<this._ptr[s+1]&&this._index[v]===o?p(r,m)?function(t,e,n,r,i){n.splice(t,1),r.splice(t,1);for(var o=e+1;o<i.length;o++)i[o]--}(v,s,this._values,this._index,this._ptr):this._values[v]=r:p(r,m)||l(v,o,s,r,this._values,this._index,this._ptr),this},i.prototype.resize=function(t,e,n){if(!m(t))throw new TypeError(\"Array or Matrix expected\");var r=t.valueOf().map((function(t){return Array.isArray(t)&&1===t.length?t[0]:t}));if(2!==r.length)throw new Error(\"Only two dimensions matrix are supported\");return r.forEach((function(t){if(!s(t)||!it(t)||t<0)throw new TypeError(\"Invalid size, must contain positive integers (size: \"+Dt(r)+\")\")})),c(n?this.clone():this,r[0],r[1],e)},i.prototype.reshape=function(t,e){if(!d(t))throw new TypeError(\"Array expected\");if(2!==t.length)throw new Error(\"Sparse matrices can only be reshaped in two dimensions\");t.forEach((function(e){if(!s(e)||!it(e)||e<=-2||0===e)throw new TypeError(\"Invalid size, must contain positive integers or -1 (size: \"+Dt(t)+\")\")}));var n=this._size[0]*this._size[1];if(n!==(t=Vt(t,n))[0]*t[1])throw new Error(\"Reshaping sparse matrix will result in the wrong number of elements\");var r=e?this.clone():this;if(this._size[0]===t[0]&&this._size[1]===t[1])return r;for(var i=[],o=0;o<r._ptr.length;o++)for(var u=0;u<r._ptr[o+1]-r._ptr[o];u++)i.push(o);for(var c=r._values.slice(),h=r._index.slice(),f=0;f<r._index.length;f++){var p=h[f],m=i[f],v=p*r._size[1]+m;i[f]=v%t[1],h[f]=Math.floor(v/t[1])}r._values.length=0,r._index.length=0,r._ptr.length=t[1]+1,r._size=t.slice();for(var g=0;g<r._ptr.length;g++)r._ptr[g]=0;for(var y=0;y<c.length;y++){var b=h[y],_=i[y],w=c[y];l(a(b,r._ptr[_],r._ptr[_+1],r._index),b,_,w,r._values,r._index,r._ptr)}return r},i.prototype.clone=function(){return new i({values:this._values?Y(this._values):void 0,index:Y(this._index),ptr:Y(this._ptr),size:Y(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(t,r){if(!this._values)throw new Error(\"Cannot invoke map on a Pattern only matrix\");var o=this,a=this._size[0],s=this._size[1],u=ce(t);return function(t,r,o,a,s,u,l){var c=[],h=[],d=[],p=n,m=0;f(t._datatype)&&(p=e.find(n,[t._datatype,t._datatype])||n,m=e.convert(0,t._datatype));for(var v=function(t,e,n){t=u(t,e,n),p(t,m)||(c.push(t),h.push(e))},g=a;g<=s;g++){d.push(c.length);var y=t._ptr[g],b=t._ptr[g+1];if(l)for(var _=y;_<b;_++){var w=t._index[_];w>=r&&w<=o&&v(t._values[_],w-r,g-a)}else{for(var x={},k=y;k<b;k++){x[t._index[k]]=t._values[k]}for(var S=r;S<=o;S++){v(S in x?x[S]:0,S-r,g-a)}}}return d.push(c.length),new i({values:c,index:h,ptr:d,size:[o-r+1,s-a+1]})}(this,0,a-1,0,s-1,(function(e,n,r){return 1===u?t(e):2===u?t(e,[n,r]):t(e,[n,r],o)}),r)},i.prototype.forEach=function(t,e){if(!this._values)throw new Error(\"Cannot invoke forEach on a Pattern only matrix\");for(var n=this._size[0],r=this._size[1],i=0;i<r;i++){var o=this._ptr[i],a=this._ptr[i+1];if(e)for(var s=o;s<a;s++){var u=this._index[s];t(this._values[s],[u,i],this)}else{for(var l={},c=o;c<a;c++){l[this._index[c]]=this._values[c]}for(var h=0;h<n;h++){t(h in l?l[h]:0,[h,i],this)}}}},i.prototype[Symbol.iterator]=mr().mark((function t(){var e,n,r,i,o,a;return mr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._values){t.next=2;break}throw new Error(\"Cannot iterate a Pattern only matrix\");case 2:e=this._size[1],n=0;case 4:if(!(n<e)){t.next=18;break}r=this._ptr[n],i=this._ptr[n+1],o=r;case 8:if(!(o<i)){t.next=15;break}return a=this._index[o],t.next=12,{value:this._values[o],index:[a,n]};case 12:o++,t.next=8;break;case 15:n++,t.next=4;break;case 18:case\"end\":return t.stop()}}),t,this)})),i.prototype.toArray=function(){return h(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return h(this._values,this._index,this._ptr,this._size,!1)},i.prototype.format=function(t){for(var e=this._size[0],n=this._size[1],r=this.density(),i=\"Sparse Matrix [\"+Dt(e,t)+\" x \"+Dt(n,t)+\"] density: \"+Dt(r,t)+\"\\n\",o=0;o<n;o++)for(var a=this._ptr[o],s=this._ptr[o+1],u=a;u<s;u++){i+=\"\\n    (\"+Dt(this._index[u],t)+\", \"+Dt(o,t)+\") ==> \"+(this._values?Dt(this._values[u],t):\"X\")}return i},i.prototype.toString=function(){return Dt(this.toArray())},i.prototype.toJSON=function(){return{mathjs:\"SparseMatrix\",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(t){if(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t))throw new TypeError(\"The parameter k must be an integer number\")}else t=0;var e=t>0?t:0,n=t<0?-t:0,r=this._size[0],o=this._size[1],a=Math.min(r-n,o-e),l=[],c=[],h=[];h[0]=0;for(var f=e;f<o&&l.length<a;f++)for(var d=this._ptr[f],p=this._ptr[f+1],m=d;m<p;m++){var v=this._index[m];if(v===f-e+n){l.push(this._values[m]),c[l.length-1]=v-n;break}}return h.push(l.length),new i({values:l,index:c,ptr:h,size:[a,1]})},i.fromJSON=function(t){return new i(t)},i.diagonal=function(t,r,o,a,l){if(!d(t))throw new TypeError(\"Array expected, size parameter\");if(2!==t.length)throw new Error(\"Only two dimensions matrix are supported\");if(t=t.map((function(t){if(u(t)&&(t=t.toNumber()),!s(t)||!it(t)||t<1)throw new Error(\"Size values must be positive integers\");return t})),o){if(u(o)&&(o=o.toNumber()),!s(o)||!it(o))throw new TypeError(\"The parameter k must be an integer number\")}else o=0;var c=n,h=0;f(l)&&(c=e.find(n,[l,l])||n,h=e.convert(0,l));var m,v=o>0?o:0,g=o<0?-o:0,y=t[0],b=t[1],_=Math.min(y-g,b-v);if(d(r)){if(r.length!==_)throw new Error(\"Invalid value array length\");m=function(t){return r[t]}}else if(p(r)){var w=r.size();if(1!==w.length||w[0]!==_)throw new Error(\"Invalid matrix length\");m=function(t){return r.get([t])}}else m=function(){return r};for(var x=[],k=[],S=[],C=0;C<b;C++){S.push(x.length);var E=C-v;if(E>=0&&E<_){var D=m(E);c(D,h)||(k.push(E+g),x.push(D))}}return S.push(x.length),new i({values:x,index:k,ptr:S,size:[y,b]})},i.prototype.swapRows=function(t,e){if(!(s(t)&&it(t)&&s(e)&&it(e)))throw new Error(\"Row index must be positive integers\");if(2!==this._size.length)throw new Error(\"Only two dimensional matrix is supported\");return $t(t,this._size[0]),$t(e,this._size[0]),i._swapRows(t,e,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(t,e,n,r,i){for(var o=r[t],a=r[t+1],s=o;s<a;s++)i(n[s],e[s])},i._swapRows=function(t,e,n,r,i,o){for(var s=0;s<n;s++){var u=o[s],l=o[s+1],c=a(t,u,l,i),h=a(e,u,l,i);if(c<l&&h<l&&i[c]===t&&i[h]===e){if(r){var f=r[c];r[c]=r[h],r[h]=f}}else if(c<l&&i[c]===t&&(h>=l||i[h]!==e)){var d=r?r[c]:void 0;i.splice(h,0,e),r&&r.splice(h,0,d),i.splice(h<=c?c+1:c,1),r&&r.splice(h<=c?c+1:c,1)}else if(h<l&&i[h]===e&&(c>=l||i[c]!==t)){var p=r?r[h]:void 0;i.splice(c,0,t),r&&r.splice(c,0,p),i.splice(c<=h?h+1:h,1),r&&r.splice(c<=h?h+1:h,1)}}},i}),{isClass:!0});te(\"bin\",[\"typed\",\"format\"],(function(t){var e=t.typed,n=t.format;return e(\"bin\",{\"number | BigNumber\":function(t){return n(t,{notation:\"bin\"})},\"number | BigNumber, number\":function(t,e){return n(t,{notation:\"bin\",wordSize:e})}})}));var gr=\"matrix\",yr=te(gr,[\"typed\",\"Matrix\",\"DenseMatrix\",\"SparseMatrix\"],(function(t){var e=t.typed,n=(t.Matrix,t.DenseMatrix),r=t.SparseMatrix;return e(gr,{\"\":function(){return i([])},string:function(t){return i([],t)},\"string, string\":function(t,e){return i([],t,e)},Array:function(t){return i(t)},Matrix:function(t){return i(t,t.storage())},\"Array | Matrix, string\":i,\"Array | Matrix, string, string\":i});function i(t,e,i){if(\"dense\"===e||\"default\"===e||void 0===e)return new n(t,i);if(\"sparse\"===e)return new r(t,i);throw new TypeError(\"Unknown matrix type \"+JSON.stringify(e)+\".\")}}));function br(){throw new Error('No \"bignumber\" implementation available')}function _r(){throw new Error('No \"matrix\" implementation available')}var wr=\"transpose\",xr=te(wr,[\"typed\",\"matrix\"],(function(t){var e=t.typed,n=t.matrix;return e(wr,{Array:function(t){return r(n(t)).valueOf()},Matrix:r,any:Y});function r(t){var e,n=t.size();switch(n.length){case 1:e=t.clone();break;case 2:var r=n[0],i=n[1];if(0===i)throw new RangeError(\"Cannot transpose a 2D matrix with no columns (size: \"+Dt(n)+\")\");switch(t.storage()){case\"dense\":e=function(t,e,n){for(var r,i=t._data,o=[],a=0;a<n;a++){r=o[a]=[];for(var s=0;s<e;s++)r[s]=Y(i[s][a])}return t.createDenseMatrix({data:o,size:[n,e],datatype:t._datatype})}(t,r,i);break;case\"sparse\":e=function(t,e,n){for(var r,i,o,a=t._values,s=t._index,u=t._ptr,l=a?[]:void 0,c=[],h=[],f=[],d=0;d<e;d++)f[d]=0;for(r=0,i=s.length;r<i;r++)f[s[r]]++;for(var p=0,m=0;m<e;m++)h.push(p),p+=f[m],f[m]=h[m];for(h.push(p),o=0;o<n;o++)for(var v=u[o],g=u[o+1],y=v;y<g;y++){var b=f[s[y]]++;c[b]=o,a&&(l[b]=Y(a[y]))}return t.createSparseMatrix({values:l,index:c,ptr:h,size:[n,e],datatype:t._datatype})}(t,r,i)}break;default:throw new RangeError(\"Matrix must be a vector or two dimensional (size: \"+Dt(n)+\")\")}return e}})),kr=\"concat\",Sr=te(kr,[\"typed\",\"matrix\",\"isInteger\"],(function(t){var e=t.typed,n=t.matrix,r=t.isInteger;return e(kr,{\"...Array | Matrix | number | BigNumber\":function(t){var e,i,o=t.length,a=-1,l=!1,c=[];for(e=0;e<o;e++){var h=t[e];if(p(h)&&(l=!0),s(h)||u(h)){if(e!==o-1)throw new Error(\"Dimension must be specified as last argument\");if(i=a,a=h.valueOf(),!r(a))throw new TypeError(\"Integer number expected for dimension\");if(a<0||e>0&&a>i)throw new Pt(a,i+1)}else{var f=Y(h).valueOf(),d=Nt(f);if(c[e]=f,i=a,a=d.length-1,e>0&&a!==i)throw new It(i+1,a+1)}}if(0===c.length)throw new SyntaxError(\"At least one matrix expected\");for(var m=c.shift();c.length;)m=Kt(m,c.shift(),a);return l?n(m):m},\"...string\":function(t){return t.join(\"\")}})})),Cr=te(\"matAlgo03xDSf\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,r,i){var o=t._data,a=t._size,s=t._datatype,u=n._values,l=n._index,c=n._ptr,h=n._size,f=n._datatype;if(a.length!==h.length)throw new It(a.length,h.length);if(a[0]!==h[0]||a[1]!==h[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+h+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var d,p=a[0],m=a[1],v=0,g=r;\"string\"==typeof s&&s===f&&(d=s,v=e.convert(0,d),g=e.find(r,[d,d]));for(var y=[],b=0;b<p;b++)y[b]=[];for(var _=[],w=[],x=0;x<m;x++){for(var k=x+1,S=c[x],C=c[x+1],E=S;E<C;E++){var D=l[E];_[D]=i?g(u[E],o[D][x]):g(o[D][x],u[E]),w[D]=k}for(var A=0;A<p;A++)w[A]===k?y[A][x]=_[A]:y[A][x]=i?g(v,o[A][x]):g(o[A][x],v)}return t.createDenseMatrix({data:y,size:[p,m],datatype:d})}})),Er=te(\"matAlgo07xSSf\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,n=t.DenseMatrix;return function(t,i,o){var a=t._size,s=t._datatype,u=i._size,l=i._datatype;if(a.length!==u.length)throw new It(a.length,u.length);if(a[0]!==u[0]||a[1]!==u[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+u+\")\");var c,h,f,d=a[0],p=a[1],m=0,v=o;\"string\"==typeof s&&s===l&&(c=s,m=e.convert(0,c),v=e.find(o,[c,c]));var g=[];for(h=0;h<d;h++)g[h]=[];var y=[],b=[],_=[],w=[];for(f=0;f<p;f++){var x=f+1;for(r(t,f,_,y,x),r(i,f,w,b,x),h=0;h<d;h++){var k=_[h]===x?y[h]:m,S=w[h]===x?b[h]:m;g[h][f]=v(k,S)}}return new n({data:g,size:[d,p],datatype:c})};function r(t,e,n,r,i){for(var o=t._values,a=t._index,s=t._ptr,u=s[e],l=s[e+1];u<l;u++){var c=a[u];n[c]=i,r[c]=o[u]}}})),Dr=te(\"matAlgo12xSfs\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,n=t.DenseMatrix;return function(t,r,i,o){var a=t._values,s=t._index,u=t._ptr,l=t._size,c=t._datatype;if(!a)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var h,f=l[0],d=l[1],p=i;\"string\"==typeof c&&(h=c,r=e.convert(r,h),p=e.find(i,[h,h]));for(var m=[],v=[],g=[],y=0;y<d;y++){for(var b=y+1,_=u[y],w=u[y+1],x=_;x<w;x++){var k=s[x];v[k]=a[x],g[k]=b}for(var S=0;S<f;S++)0===y&&(m[S]=[]),g[S]===b?m[S][y]=o?p(r,v[S]):p(v[S],r):m[S][y]=o?p(r,0):p(0,r)}return new n({data:m,size:[f,d],datatype:h})}})),Ar=te(\"matAlgo13xDD\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,i){var o,a=t._data,s=t._size,u=t._datatype,l=r._data,c=r._size,h=r._datatype,f=[];if(s.length!==c.length)throw new It(s.length,c.length);for(var d=0;d<s.length;d++){if(s[d]!==c[d])throw new RangeError(\"Dimension mismatch. Matrix A (\"+s+\") must match Matrix B (\"+c+\")\");f[d]=s[d]}var p=i;\"string\"==typeof u&&u===h&&(o=u,p=e.find(i,[o,o]));var m=f.length>0?n(p,0,f,f[0],a,l):[];return t.createDenseMatrix({data:m,size:f,datatype:o})};function n(t,e,r,i,o,a){var s=[];if(e===r.length-1)for(var u=0;u<i;u++)s[u]=t(o[u],a[u]);else for(var l=0;l<i;l++)s[l]=n(t,e+1,r,r[e+1],o[l],a[l]);return s}})),Or=te(\"matAlgo14xDs\",[\"typed\"],(function(t){var e=t.typed;return function(t,r,i,o){var a,s=t._data,u=t._size,l=t._datatype,c=i;\"string\"==typeof l&&(a=l,r=e.convert(r,a),c=e.find(i,[a,a]));var h=u.length>0?n(c,0,u,u[0],s,r,o):[];return t.createDenseMatrix({data:h,size:Y(u),datatype:a})};function n(t,e,r,i,o,a,s){var u=[];if(e===r.length-1)for(var l=0;l<i;l++)u[l]=s?t(a,o[l]):t(o[l],a);else for(var c=0;c<i;c++)u[c]=n(t,e+1,r,r[e+1],o[c],a,s);return u}}));function Mr(t){return function(t){if(Array.isArray(t))return Tr(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Tr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tr(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Tr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ir=te(\"broadcast\",[\"concat\"],(function(t){var e=t.concat;return function(t,e){var i=Math.max(t._size.length,e._size.length);if(t._size.length===e._size.length&&t._size.every((function(t,n){return t===e._size[n]})))return[t,e];for(var o=n(t._size,i,0),a=n(e._size,i,0),s=[],u=0;u<i;u++)s[u]=Math.max(o[u],a[u]);Jt(o,s),Jt(a,s);var l=t.clone(),c=e.clone();l._size.length<i?l.reshape(n(l._size,i,1)):c._size.length<i&&c.reshape(n(c._size,i,1));for(var h=0;h<i;h++)l._size[h]<s[h]&&(l=r(l,s[h],h)),c._size[h]<s[h]&&(c=r(c,s[h],h));return[l,c]};function n(t,e,n){return[].concat(Mr(Array(e-t.length).fill(n)),Mr(t))}function r(t,n,r){return e.apply(void 0,Mr(Array(n).fill(t)).concat([r]))}}));function Pr(t){return function(t){if(Array.isArray(t))return Fr(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return Fr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fr(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Fr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var jr=te(\"matrixAlgorithmSuite\",[\"typed\",\"matrix\",\"concat\"],(function(t){var e=t.typed,n=t.matrix,r=t.concat,i=Ar({typed:e}),o=Or({typed:e}),a=Ir({concat:r});return function(t){var r,s=t.elop,u=t.SD||t.DS;s?(r={\"DenseMatrix, DenseMatrix\":function(t,e){return i.apply(void 0,Pr(a(t,e)).concat([s]))},\"Array, Array\":function(t,e){return i.apply(void 0,Pr(a(n(t),n(e))).concat([s])).valueOf()},\"Array, DenseMatrix\":function(t,e){return i.apply(void 0,Pr(a(n(t),e)).concat([s]))},\"DenseMatrix, Array\":function(t,e){return i.apply(void 0,Pr(a(t,n(e))).concat([s]))}},t.SS&&(r[\"SparseMatrix, SparseMatrix\"]=function(e,n){return t.SS.apply(t,Pr(a(e,n)).concat([s,!1]))}),t.DS&&(r[\"DenseMatrix, SparseMatrix\"]=function(e,n){return t.DS.apply(t,Pr(a(e,n)).concat([s,!1]))},r[\"Array, SparseMatrix\"]=function(e,r){return t.DS.apply(t,Pr(a(n(e),r)).concat([s,!1]))}),u&&(r[\"SparseMatrix, DenseMatrix\"]=function(t,e){return u.apply(void 0,Pr(a(e,t)).concat([s,!0]))},r[\"SparseMatrix, Array\"]=function(t,e){return u.apply(void 0,Pr(a(n(e),t)).concat([s,!0]))})):(r={\"DenseMatrix, DenseMatrix\":e.referToSelf((function(t){return function(e,n){return i.apply(void 0,Pr(a(e,n)).concat([t]))}})),\"Array, Array\":e.referToSelf((function(t){return function(e,r){return i.apply(void 0,Pr(a(n(e),n(r))).concat([t])).valueOf()}})),\"Array, DenseMatrix\":e.referToSelf((function(t){return function(e,r){return i.apply(void 0,Pr(a(n(e),r)).concat([t]))}})),\"DenseMatrix, Array\":e.referToSelf((function(t){return function(e,r){return i.apply(void 0,Pr(a(e,n(r))).concat([t]))}}))},t.SS&&(r[\"SparseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(n,r){return t.SS.apply(t,Pr(a(n,r)).concat([e,!1]))}}))),t.DS&&(r[\"DenseMatrix, SparseMatrix\"]=e.referToSelf((function(e){return function(n,r){return t.DS.apply(t,Pr(a(n,r)).concat([e,!1]))}})),r[\"Array, SparseMatrix\"]=e.referToSelf((function(e){return function(r,i){return t.DS.apply(t,Pr(a(n(r),i)).concat([e,!1]))}}))),u&&(r[\"SparseMatrix, DenseMatrix\"]=e.referToSelf((function(t){return function(e,n){return u.apply(void 0,Pr(a(n,e)).concat([t,!0]))}})),r[\"SparseMatrix, Array\"]=e.referToSelf((function(t){return function(e,r){return u.apply(void 0,Pr(a(n(r),e)).concat([t,!0]))}}))));var l=t.scalar||\"any\";(t.Ds||t.Ss)&&(s?(r[\"DenseMatrix,\"+l]=function(t,e){return o(t,e,s,!1)},r[l+\", DenseMatrix\"]=function(t,e){return o(e,t,s,!0)},r[\"Array,\"+l]=function(t,e){return o(n(t),e,s,!1).valueOf()},r[l+\", Array\"]=function(t,e){return o(n(e),t,s,!0).valueOf()}):(r[\"DenseMatrix,\"+l]=e.referToSelf((function(t){return function(e,n){return o(e,n,t,!1)}})),r[l+\", DenseMatrix\"]=e.referToSelf((function(t){return function(e,n){return o(n,e,t,!0)}})),r[\"Array,\"+l]=e.referToSelf((function(t){return function(e,r){return o(n(e),r,t,!1).valueOf()}})),r[l+\", Array\"]=e.referToSelf((function(t){return function(e,r){return o(n(r),e,t,!0).valueOf()}}))));var c=void 0!==t.sS?t.sS:t.Ss;return s?(t.Ss&&(r[\"SparseMatrix,\"+l]=function(e,n){return t.Ss(e,n,s,!1)}),c&&(r[l+\", SparseMatrix\"]=function(t,e){return c(e,t,s,!0)})):(t.Ss&&(r[\"SparseMatrix,\"+l]=e.referToSelf((function(e){return function(n,r){return t.Ss(n,r,e,!1)}}))),c&&(r[l+\", SparseMatrix\"]=e.referToSelf((function(t){return function(e,n){return c(n,e,t,!0)}})))),s&&s.signatures&&K(r,s.signatures),r}})),Nr=\"equal\",Lr=(te(Nr,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,n=t.equalScalar;return e(Nr,{\"any, any\":function(t,e){return null===t?null===e:null===e?null===t:void 0===t?void 0===e:void 0===e?void 0===t:n(t,e)}})})),\"largerEq\"),Br=te(Lr,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,n=t.config,r=t.matrix,i=t.DenseMatrix,o=t.concat,a=Cr({typed:e}),s=Er({typed:e,DenseMatrix:i}),u=Dr({typed:e,DenseMatrix:i}),l=jr({typed:e,matrix:r,concat:o}),c=Rn({typed:e});return e(Lr,$r({typed:e,config:n}),{\"boolean, boolean\":function(t,e){return t>=e},\"BigNumber, BigNumber\":function(t,e){return t.gte(e)||zn(t,e,n.epsilon)},\"Fraction, Fraction\":function(t,e){return-1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,l({SS:s,DS:a,Ss:u}))})),$r=te(Lr,[\"typed\",\"config\"],(function(t){var e=t.typed,n=t.config;return e(Lr,{\"number, number\":function(t,e){return t>=e||yt(t,e,n.epsilon)}})})),zr=te(\"matAlgo01xDSid\",[\"typed\"],(function(t){var e=t.typed;return function(t,n,r,i){var o=t._data,a=t._size,s=t._datatype,u=n._values,l=n._index,c=n._ptr,h=n._size,f=n._datatype;if(a.length!==h.length)throw new It(a.length,h.length);if(a[0]!==h[0]||a[1]!==h[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+a+\") must match Matrix B (\"+h+\")\");if(!u)throw new Error(\"Cannot perform operation on Dense Matrix and Pattern Sparse Matrix\");var d,p,m=a[0],v=a[1],g=\"string\"==typeof s&&s===f?s:void 0,y=g?e.find(r,[g,g]):r,b=[];for(d=0;d<m;d++)b[d]=[];var _=[],w=[];for(p=0;p<v;p++){for(var x=p+1,k=c[p],S=c[p+1],C=k;C<S;C++)_[d=l[C]]=i?y(u[C],o[d][p]):y(o[d][p],u[C]),w[d]=x;for(d=0;d<m;d++)w[d]===x?b[d][p]=_[d]:b[d][p]=o[d][p]}return t.createDenseMatrix({data:b,size:[m,v],datatype:g})}})),Rr=te(\"matAlgo10xSids\",[\"typed\",\"DenseMatrix\"],(function(t){var e=t.typed,n=t.DenseMatrix;return function(t,r,i,o){var a=t._values,s=t._index,u=t._ptr,l=t._size,c=t._datatype;if(!a)throw new Error(\"Cannot perform operation on Pattern Sparse Matrix and Scalar value\");var h,f=l[0],d=l[1],p=i;\"string\"==typeof c&&(h=c,r=e.convert(r,h),p=e.find(i,[h,h]));for(var m=[],v=[],g=[],y=0;y<d;y++){for(var b=y+1,_=u[y],w=u[y+1],x=_;x<w;x++){var k=s[x];v[k]=a[x],g[k]=b}for(var S=0;S<f;S++)0===y&&(m[S]=[]),g[S]===b?m[S][y]=o?p(r,v[S]):p(v[S],r):m[S][y]=r}return new n({data:m,size:[f,d],datatype:h})}}));function Ur(t,e,n,r){if(!(this instanceof Ur))throw new SyntaxError(\"Constructor must be called with the new operator\");this.fn=t,this.count=e,this.min=n,this.max=r,this.message=\"Wrong number of arguments in function \"+t+\" (\"+e+\" provided, \"+n+(null!=r?\"-\"+r:\"\")+\" expected)\",this.stack=(new Error).stack}Ur.prototype=new Error,Ur.prototype.constructor=Error,Ur.prototype.name=\"ArgumentsError\",Ur.prototype.isArgumentsError=!0;var Vr=\"smaller\",Hr=te(Vr,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,n=t.config,r=t.matrix,i=t.DenseMatrix,o=t.concat,a=Cr({typed:e}),s=Er({typed:e,DenseMatrix:i}),u=Dr({typed:e,DenseMatrix:i}),l=jr({typed:e,matrix:r,concat:o}),c=Rn({typed:e});return e(Vr,Gr({typed:e,config:n}),{\"boolean, boolean\":function(t,e){return t<e},\"BigNumber, BigNumber\":function(t,e){return t.lt(e)&&!zn(t,e,n.epsilon)},\"Fraction, Fraction\":function(t,e){return-1===t.compare(e)},\"Complex, Complex\":function(t,e){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,l({SS:s,DS:a,Ss:u}))})),Gr=te(Vr,[\"typed\",\"config\"],(function(t){var e=t.typed,n=t.config;return e(Vr,{\"number, number\":function(t,e){return t<e&&!yt(t,e,n.epsilon)}})})),qr=\"unequal\",Wr=(te(qr,[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,n=t.equalScalar;return e(qr,{\"any, any\":function(t,e){return null===t?null!==e:null===e?null!==t:void 0===t?void 0!==e:void 0===e?void 0!==t:!n(t,e)}})})),te(\"matAlgo04xSidSid\",[\"typed\",\"equalScalar\"],(function(t){var e=t.typed,n=t.equalScalar;return function(t,r,i){var o=t._values,a=t._index,s=t._ptr,u=t._size,l=t._datatype,c=r._values,h=r._index,f=r._ptr,d=r._size,p=r._datatype;if(u.length!==d.length)throw new It(u.length,d.length);if(u[0]!==d[0]||u[1]!==d[1])throw new RangeError(\"Dimension mismatch. Matrix A (\"+u+\") must match Matrix B (\"+d+\")\");var m,v=u[0],g=u[1],y=n,b=0,_=i;\"string\"==typeof l&&l===p&&(m=l,y=e.find(n,[m,m]),b=e.convert(0,m),_=e.find(i,[m,m]));var w,x,k,S,C,E=o&&c?[]:void 0,D=[],A=[],O=o&&c?[]:void 0,M=o&&c?[]:void 0,T=[],I=[];for(x=0;x<g;x++){A[x]=D.length;var P=x+1;for(S=s[x],C=s[x+1],k=S;k<C;k++)w=a[k],D.push(w),T[w]=P,O&&(O[w]=o[k]);for(S=f[x],C=f[x+1],k=S;k<C;k++)if(T[w=h[k]]===P){if(O){var F=_(O[w],c[k]);y(F,b)?T[w]=null:O[w]=F}}else D.push(w),I[w]=P,M&&(M[w]=c[k]);if(O&&M)for(k=A[x];k<D.length;)T[w=D[k]]===P?(E[k]=O[w],k++):I[w]===P?(E[k]=M[w],k++):D.splice(k,1)}return A[g]=D.length,t.createSparseMatrix({values:E,index:D,ptr:A,size:[v,g],datatype:m})}}))),Yr=te(\"add\",[\"typed\",\"matrix\",\"addScalar\",\"equalScalar\",\"DenseMatrix\",\"SparseMatrix\",\"concat\"],(function(t){var e=t.typed,n=t.matrix,r=t.addScalar,i=t.equalScalar,o=t.DenseMatrix,a=(t.SparseMatrix,t.concat),s=zr({typed:e}),u=Wr({typed:e,equalScalar:i}),l=Rr({typed:e,DenseMatrix:o}),c=jr({typed:e,matrix:n,concat:a});return e(\"add\",{\"any, any\":r,\"any, any, ...any\":e.referToSelf((function(t){return function(e,n,r){for(var i=t(e,n),o=0;o<r.length;o++)i=t(i,r[o]);return i}}))},c({elop:r,DS:s,SS:u,Ss:l}))}));Tt.signature=\"any, any\";var Zr=\"number | BigNumber | Fraction | Matrix | Array\";\"\".concat(Zr,\", \").concat(Zr,\", ...\").concat(Zr);var Kr=te(\"ImmutableDenseMatrix\",[\"smaller\",\"DenseMatrix\"],(function(t){var e=t.smaller,n=t.DenseMatrix;function r(t,e){if(!(this instanceof r))throw new SyntaxError(\"Constructor must be called with the new operator\");if(e&&!f(e))throw new Error(\"Invalid datatype: \"+e);if(p(t)||d(t)){var i=new n(t,e);this._data=i._data,this._size=i._size,this._datatype=i._datatype,this._min=null,this._max=null}else if(t&&d(t.data)&&d(t.size))this._data=t.data,this._size=t.size,this._datatype=t.datatype,this._min=void 0!==t.min?t.min:null,this._max=void 0!==t.max?t.max:null;else{if(t)throw new TypeError(\"Unsupported type of data (\"+q(t)+\")\");this._data=[],this._size=[0],this._datatype=e,this._min=null,this._max=null}}return r.prototype=new n,r.prototype.type=\"ImmutableDenseMatrix\",r.prototype.isImmutableDenseMatrix=!0,r.prototype.subset=function(t){switch(arguments.length){case 1:var e=n.prototype.subset.call(this,t);return p(e)?new r({data:e._data,size:e._size,datatype:e._datatype}):e;case 2:case 3:throw new Error(\"Cannot invoke set subset on an Immutable Matrix instance\");default:throw new SyntaxError(\"Wrong number of arguments\")}},r.prototype.set=function(){throw new Error(\"Cannot invoke set on an Immutable Matrix instance\")},r.prototype.resize=function(){throw new Error(\"Cannot invoke resize on an Immutable Matrix instance\")},r.prototype.reshape=function(){throw new Error(\"Cannot invoke reshape on an Immutable Matrix instance\")},r.prototype.clone=function(){return new r({data:Y(this._data),size:Y(this._size),datatype:this._datatype})},r.prototype.toJSON=function(){return{mathjs:\"ImmutableDenseMatrix\",data:this._data,size:this._size,datatype:this._datatype}},r.fromJSON=function(t){return new r(t)},r.prototype.swapRows=function(){throw new Error(\"Cannot invoke swapRows on an Immutable Matrix instance\")},r.prototype.min=function(){if(null===this._min){var t=null;this.forEach((function(n){(null===t||e(n,t))&&(t=n)})),this._min=null!==t?t:void 0}return this._min},r.prototype.max=function(){if(null===this._max){var t=null;this.forEach((function(n){(null===t||e(t,n))&&(t=n)})),this._max=null!==t?t:void 0}return this._max},r}),{isClass:!0}),Xr=te(\"Index\",[\"ImmutableDenseMatrix\",\"getMatrixDataType\"],(function(t){var e=t.ImmutableDenseMatrix,n=t.getMatrixDataType;function r(t){if(!(this instanceof r))throw new SyntaxError(\"Constructor must be called with the new operator\");this._dimensions=[],this._sourceSize=[],this._isScalar=!0;for(var e=0,o=arguments.length;e<o;e++){var a=arguments[e],s=d(a),u=p(a),l=null;if(y(a))this._dimensions.push(a),this._isScalar=!1;else if(s||u){var c=void 0;\"boolean\"===n(a)?(s&&(c=i(Jr(a).valueOf())),u&&(c=i(Jr(a._data).valueOf())),l=a.valueOf().length):c=i(a.valueOf()),this._dimensions.push(c);var h=c.size();1===h.length&&1===h[0]&&null===l||(this._isScalar=!1)}else if(\"number\"==typeof a)this._dimensions.push(i([a]));else{if(\"string\"!=typeof a)throw new TypeError(\"Dimension must be an Array, Matrix, number, string, or Range\");this._dimensions.push(a)}this._sourceSize.push(l)}}function i(t){for(var n=0,r=t.length;n<r;n++)if(\"number\"!=typeof t[n]||!it(t[n]))throw new TypeError(\"Index parameters must be positive integer numbers\");return new e(t)}return r.prototype.type=\"Index\",r.prototype.isIndex=!0,r.prototype.clone=function(){var t=new r;return t._dimensions=Y(this._dimensions),t._isScalar=this._isScalar,t._sourceSize=this._sourceSize,t},r.create=function(t){var e=new r;return r.apply(e,t),e},r.prototype.size=function(){for(var t=[],e=0,n=this._dimensions.length;e<n;e++){var r=this._dimensions[e];t[e]=\"string\"==typeof r?1:r.size()[0]}return t},r.prototype.max=function(){for(var t=[],e=0,n=this._dimensions.length;e<n;e++){var r=this._dimensions[e];t[e]=\"string\"==typeof r?r:r.max()}return t},r.prototype.min=function(){for(var t=[],e=0,n=this._dimensions.length;e<n;e++){var r=this._dimensions[e];t[e]=\"string\"==typeof r?r:r.min()}return t},r.prototype.forEach=function(t){for(var e=0,n=this._dimensions.length;e<n;e++)t(this._dimensions[e],e,this)},r.prototype.dimension=function(t){return this._dimensions[t]||null},r.prototype.isObjectProperty=function(){return 1===this._dimensions.length&&\"string\"==typeof this._dimensions[0]},r.prototype.getObjectProperty=function(){return this.isObjectProperty()?this._dimensions[0]:null},r.prototype.isScalar=function(){return this._isScalar},r.prototype.toArray=function(){for(var t=[],e=0,n=this._dimensions.length;e<n;e++){var r=this._dimensions[e];t.push(\"string\"==typeof r?r:r.toArray())}return t},r.prototype.valueOf=r.prototype.toArray,r.prototype.toString=function(){for(var t=[],e=0,n=this._dimensions.length;e<n;e++){var r=this._dimensions[e];\"string\"==typeof r?t.push(JSON.stringify(r)):t.push(r.toString())}return\"[\"+t.join(\", \")+\"]\"},r.prototype.toJSON=function(){return{mathjs:\"Index\",dimensions:this._dimensions}},r.fromJSON=function(t){return r.create(t.dimensions)},r}),{isClass:!0});function Jr(t){var e=[];return t.forEach((function(t,n){t&&e.push(n)})),e}var Qr=\"larger\",ti=te(Qr,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,n=t.config,r=t.matrix,i=t.DenseMatrix,o=t.concat,a=Cr({typed:e}),s=Er({typed:e,DenseMatrix:i}),u=Dr({typed:e,DenseMatrix:i}),l=jr({typed:e,matrix:r,concat:o}),c=Rn({typed:e});return e(Qr,ei({typed:e,config:n}),{\"boolean, boolean\":function(t,e){return t>e},\"BigNumber, BigNumber\":function(t,e){return t.gt(e)&&!zn(t,e,n.epsilon)},\"Fraction, Fraction\":function(t,e){return 1===t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,l({SS:s,DS:a,Ss:u}))})),ei=te(Qr,[\"typed\",\"config\"],(function(t){var e=t.typed,n=t.config;return e(Qr,{\"number, number\":function(t,e){return t>e&&!yt(t,e,n.epsilon)}})}));n(22);var ni=\"smallerEq\",ri=te(ni,[\"typed\",\"config\",\"matrix\",\"DenseMatrix\",\"concat\"],(function(t){var e=t.typed,n=t.config,r=t.matrix,i=t.DenseMatrix,o=t.concat,a=Cr({typed:e}),s=Er({typed:e,DenseMatrix:i}),u=Dr({typed:e,DenseMatrix:i}),l=jr({typed:e,matrix:r,concat:o}),c=Rn({typed:e});return e(ni,ii({typed:e,config:n}),{\"boolean, boolean\":function(t,e){return t<=e},\"BigNumber, BigNumber\":function(t,e){return t.lte(e)||zn(t,e,n.epsilon)},\"Fraction, Fraction\":function(t,e){return 1!==t.compare(e)},\"Complex, Complex\":function(){throw new TypeError(\"No ordering relation is defined for complex numbers\")}},c,l({SS:s,DS:a,Ss:u}))})),ii=te(ni,[\"typed\",\"config\"],(function(t){var e=t.typed,n=t.config;return e(ni,{\"number, number\":function(t,e){return t<=e||yt(t,e,n.epsilon)}})})),oi=\"range\",ai=te(oi,[\"typed\",\"config\",\"?matrix\",\"?bignumber\",\"smaller\",\"smallerEq\",\"larger\",\"largerEq\",\"add\",\"isPositive\"],(function(t){var e=t.typed,n=t.config,r=t.matrix,i=t.bignumber,o=t.smaller,a=t.smallerEq,s=t.larger,u=t.largerEq,l=t.add,c=t.isPositive;return e(oi,{string:f,\"string, boolean\":f,\"number, number\":function(t,e){return h(d(t,e,1,!1))},\"number, number, number\":function(t,e,n){return h(d(t,e,n,!1))},\"number, number, boolean\":function(t,e,n){return h(d(t,e,1,n))},\"number, number, number, boolean\":function(t,e,n,r){return h(d(t,e,n,r))},\"BigNumber, BigNumber\":function(t,e){return h(d(t,e,new(0,t.constructor)(1),!1))},\"BigNumber, BigNumber, BigNumber\":function(t,e,n){return h(d(t,e,n,!1))},\"BigNumber, BigNumber, boolean\":function(t,e,n){return h(d(t,e,new(0,t.constructor)(1),n))},\"BigNumber, BigNumber, BigNumber, boolean\":function(t,e,n,r){return h(d(t,e,n,r))},\"Unit, Unit, Unit\":function(t,e,n){return h(d(t,e,n,!1))},\"Unit, Unit, Unit, boolean\":function(t,e,n,r){return h(d(t,e,n,r))}});function h(t){return\"Matrix\"===n.matrix?r?r(t):_r():t}function f(t,e){var r=function(t){var e=t.split(\":\"),n=e.map((function(t){return Number(t)}));if(n.some((function(t){return isNaN(t)})))return null;switch(n.length){case 2:return{start:n[0],end:n[1],step:1};case 3:return{start:n[0],end:n[2],step:n[1]};default:return null}}(t);if(!r)throw new SyntaxError('String \"'+t+'\" is no valid range');return\"BigNumber\"===n.number?(void 0===i&&br(),h(d(i(r.start),i(r.end),i(r.step)))):h(d(r.start,r.end,r.step,e))}function d(t,e,n,r){for(var i=[],h=c(n)?r?a:o:r?u:s,f=t;h(f,e);)i.push(f),f=l(f,n);return i}})),si=te(\"row\",[\"typed\",\"Index\",\"matrix\",\"range\"],(function(t){var e=t.typed,n=t.Index,r=t.matrix,i=t.range;return e(\"row\",{\"Matrix, number\":o,\"Array, number\":function(t,e){return o(r(Y(t)),e).valueOf()}});function o(t,e){if(2!==t.size().length)throw new Error(\"Only two dimensional matrix is supported\");$t(e,t.size()[0]);var o=i(0,t.size()[1]),a=new n(e,o),s=t.subset(a);return p(s)?s:r([[s]])}}));n(44);var ui=ne({config:et}),li=ae({}),ci=ve({}),hi=ge({}),fi=xe({Matrix:hi}),di=$e({BigNumber:ui,Complex:li,DenseMatrix:fi,Fraction:ci}),pi=An({typed:di}),mi=On({BigNumber:ui,typed:di}),vi=Vn({config:et,typed:di}),gi=Gn({typed:di}),yi=Wn({typed:di}),bi=tr({typed:di}),_i=vr({Matrix:hi,equalScalar:vi,typed:di}),wi=yr({DenseMatrix:fi,Matrix:hi,SparseMatrix:_i,typed:di}),xi=xr({matrix:wi,typed:di}),ki=Sr({isInteger:yi,matrix:wi,typed:di}),Si=Br({DenseMatrix:fi,concat:ki,config:et,matrix:wi,typed:di}),Ci=Hr({DenseMatrix:fi,concat:ki,config:et,matrix:wi,typed:di}),Ei=Yr({DenseMatrix:fi,SparseMatrix:_i,addScalar:pi,concat:ki,equalScalar:vi,matrix:wi,typed:di}),Di=Xr({ImmutableDenseMatrix:Kr({DenseMatrix:fi,smaller:Ci}),getMatrixDataType:gi}),Ai=ti({DenseMatrix:fi,concat:ki,config:et,matrix:wi,typed:di}),Oi=ri({DenseMatrix:fi,concat:ki,config:et,matrix:wi,typed:di}),Mi=ai({bignumber:mi,matrix:wi,add:Ei,config:et,isPositive:bi,larger:Ai,largerEq:Si,smaller:Ci,smallerEq:Oi,typed:di}),Ti=si({Index:Di,matrix:wi,range:Mi,typed:di})},function(t,e,n){\"use strict\";n.d(e,\"a\",(function(){return c}));var r=n(3);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function o(){o=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",l=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(r||[]);return a(o,\"_invoke\",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&r.call(S,u)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(o,a,s,u){var l=d(t[o],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==i(h)&&r.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var o;a(this,\"_invoke\",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[u];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(i(e)+\" is not iterable\")}return _.prototype=w,a(C,\"constructor\",{value:w,configurable:!0}),a(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,l,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,u,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=r.call(a,\"catchLoc\"),l=r.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function a(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function s(t){a(o,r,i,s,u,\"next\",t)}function u(t){a(o,r,i,s,u,\"throw\",t)}s(void 0)}))}}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t,e){if(\"object\"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=i(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==i(e)?e:e+\"\"}var c=function(){return t=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var n=this;n.loadStatus=\"0\",n.config=null,n.reload=e.reload||!1,n._getConfig()},e=[{key:\"getConfig\",value:(h=s(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.waitLoadSuccess(\"waiting...\");case 3:return t.abrupt(\"return\",e.config);case 4:case\"end\":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)})},{key:\"_getConfig\",value:(c=s(o().mark((function t(){var e,n,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this,n=0;case 2:if(!(n<1e3)){t.next=21;break}return t.prev=3,i={type:\"O7l\",reload:e.reload},t.next=7,chrome.runtime.sendMessage(chrome.runtime.id,i);case 7:return a=t.sent,e.config=a.data,e.loadStatus=\"2\",t.abrupt(\"break\",21);case 13:return t.prev=13,t.t0=t.catch(3),t.next=18,r.a.Bi9dF(100);case 18:n++,t.next=2;break;case 21:case\"end\":return t.stop()}}),t,this,[[3,13]])}))),function(){return c.apply(this,arguments)})},{key:\"reloadConfig\",value:(l=s(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=this).loadStatus=\"1\",t.next=4,e._getConfig();case 4:case\"end\":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:\"sendMessageToBack\",value:(a=s(o().mark((function t(e){var n,i,a,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,t.next=3,n.waitLoadSuccess(e.action);case 3:i=void 0,a=5,s=0;case 7:if(!(s<a)){t.next=26;break}return t.prev=9,t.next=12,chrome.runtime.sendMessage(chrome.runtime.id,e);case 12:if(!(i=t.sent)||\"0000\"!==i.code){t.next=15;break}return t.abrupt(\"break\",26);case 15:t.next=23;break;case 18:return t.prev=18,t.t0=t.catch(9),t.next=23,r.a.Bi9dF(100);case 23:s++,t.next=7;break;case 26:if(!i){t.next=30;break}return t.abrupt(\"return\",i);case 30:return t.abrupt(\"return\",{code:\"0001\",status:\"fail\",message:\"unknown error\"});case 31:case\"end\":return t.stop()}}),t,this,[[9,18]])}))),function(t){return a.apply(this,arguments)})},{key:\"waitLoadSuccess\",value:(i=s(o().mark((function t(e){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=this;case 1:if(\"2\"==n.loadStatus){t.next=7;break}return t.next=5,r.a.Bi9dF(100);case 5:t.next=1;break;case 7:case\"end\":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})}],e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,\"prototype\",{writable:!1}),t;var t,e,n,i,a,l,c,h}()},function(t,e,n){\"use strict\";e.__esModule=!0;var r,i=n(60),o=(r=i)&&r.__esModule?r:{default:r},a=n(296);var s=o.default.prototype.$isServer?function(){}:n(330),u=function(t){return t.stopPropagation()};e.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:\"bottom\"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:\"\"}},watch:{value:{immediate:!0,handler:function(t){this.showPopper=t,this.$emit(\"input\",t)}},showPopper:function(t){this.disabled||(t?this.updatePopper():this.destroyPopper(),this.$emit(\"input\",t))}},methods:{createPopper:function(){var t=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var e=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),e.placement=this.currentPlacement,e.offset=this.offset,e.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,e),this.popperJS.onCreate((function(e){t.$emit(\"created\",t),t.resetTransformOrigin(),t.$nextTick(t.updatePopper)})),\"function\"==typeof e.onUpdate&&this.popperJS.onUpdate(e.onUpdate),this.popperJS._popper.style.zIndex=a.PopupManager.nextZIndex(),this.popperElm.addEventListener(\"click\",u))}},updatePopper:function(){var t=this.popperJS;t?(t.update(),t._popper&&(t._popper.style.zIndex=a.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(t){!this.popperJS||this.showPopper&&!t||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var t=this.popperJS._popper.getAttribute(\"x-placement\").split(\"-\")[0],e={top:\"bottom\",bottom:\"top\",left:\"right\",right:\"left\"}[t];this.popperJS._popper.style.transformOrigin=\"string\"==typeof this.transformOrigin?this.transformOrigin:[\"top\",\"bottom\"].indexOf(t)>-1?\"center \"+e:e+\" center\"}},appendArrow:function(t){var e=void 0;if(!this.appended){for(var n in this.appended=!0,t.attributes)if(/^_v-/.test(t.attributes[n].name)){e=t.attributes[n].name;break}var r=document.createElement(\"div\");e&&r.setAttribute(e,\"\"),r.setAttribute(\"x-arrow\",\"\"),r.className=\"popper__arrow\",t.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener(\"click\",u),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},function(t,e,n){\"use strict\";e.__esModule=!0,e.default=function(t){for(var e=1,n=arguments.length;e<n;e++){var r=arguments[e]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(t[i]=o)}}return t}},function(t,e,n){\"use strict\";e.__esModule=!0,e.isDef=function(t){return null!=t},e.isKorean=function(t){return/([(\\uAC00-\\uD7AF)|(\\u3130-\\u318F)])+/gi.test(t)}},function(t,e,n){var r=n(273);t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},function(t,e,n){var r=n(251);t.exports=function(t){if(!r(t))throw TypeError(t+\" is not an object!\");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(305),i=n(284);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},,,,function(t,e,n){\"use strict\";e.__esModule=!0,e.i18n=e.use=e.t=void 0;var r=a(n(326)),i=a(n(60)),o=a(n(327));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n(328)).default)(i.default),u=r.default,l=!1,c=function(){var t=Object.getPrototypeOf(this||i.default).$t;if(\"function\"==typeof t&&i.default.locale)return l||(l=!0,i.default.locale(i.default.config.lang,(0,o.default)(u,i.default.locale(i.default.config.lang)||{},{clone:!0}))),t.apply(this,arguments)},h=e.t=function(t,e){var n=c.apply(this,arguments);if(null!=n)return n;for(var r=t.split(\".\"),i=u,o=0,a=r.length;o<a;o++){if(n=i[r[o]],o===a-1)return s(n,e);if(!n)return\"\";i=n}return\"\"},f=e.use=function(t){u=t||u},d=e.i18n=function(t){c=t||c};e.default={use:f,t:h,i18n:d}},function(t,e,n){\"use strict\";e.__esModule=!0;var r=n(268);e.default={methods:{t:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.t.apply(this,e)}}}},function(t,e,n){\"use strict\";e.__esModule=!0,e.default=function(){if(o.default.prototype.$isServer)return 0;if(void 0!==a)return a;var t=document.createElement(\"div\");t.className=\"el-scrollbar__wrap\",t.style.visibility=\"hidden\",t.style.width=\"100px\",t.style.position=\"absolute\",t.style.top=\"-9999px\",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow=\"scroll\";var n=document.createElement(\"div\");n.style.width=\"100%\",t.appendChild(n);var r=n.offsetWidth;return t.parentNode.removeChild(t),a=e-r};var r,i=n(60),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=75)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},11:function(t,e){t.exports=n(297)},21:function(t,e){t.exports=n(257)},4:function(t,e){t.exports=n(235)},75:function(t,e,n){\"use strict\";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{class:[\"textarea\"===t.type?\"el-textarea\":\"el-input\",t.inputSize?\"el-input--\"+t.inputSize:\"\",{\"is-disabled\":t.inputDisabled,\"is-exceed\":t.inputExceed,\"el-input-group\":t.$slots.prepend||t.$slots.append,\"el-input-group--append\":t.$slots.append,\"el-input-group--prepend\":t.$slots.prepend,\"el-input--prefix\":t.$slots.prefix||t.prefixIcon,\"el-input--suffix\":t.$slots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[\"textarea\"!==t.type?[t.$slots.prepend?n(\"div\",{staticClass:\"el-input-group__prepend\"},[t._t(\"prepend\")],2):t._e(),\"textarea\"!==t.type?n(\"input\",t._b({ref:\"input\",staticClass:\"el-input__inner\",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?\"text\":\"password\":t.type,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,\"aria-label\":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},\"input\",t.$attrs,!1)):t._e(),t.$slots.prefix||t.prefixIcon?n(\"span\",{staticClass:\"el-input__prefix\"},[t._t(\"prefix\"),t.prefixIcon?n(\"i\",{staticClass:\"el-input__icon\",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?n(\"span\",{staticClass:\"el-input__suffix\"},[n(\"span\",{staticClass:\"el-input__suffix-inner\"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t(\"suffix\"),t.suffixIcon?n(\"i\",{staticClass:\"el-input__icon\",class:t.suffixIcon}):t._e()],t.showClear?n(\"i\",{staticClass:\"el-input__icon el-icon-circle-close el-input__clear\",on:{mousedown:function(t){t.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?n(\"i\",{staticClass:\"el-input__icon el-icon-view el-input__clear\",on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?n(\"span\",{staticClass:\"el-input__count\"},[n(\"span\",{staticClass:\"el-input__count-inner\"},[t._v(\"\\n            \"+t._s(t.textLength)+\"/\"+t._s(t.upperLimit)+\"\\n          \")])]):t._e()],2),t.validateState?n(\"i\",{staticClass:\"el-input__icon\",class:[\"el-input__validateIcon\",t.validateIcon]}):t._e()]):t._e(),t.$slots.append?n(\"div\",{staticClass:\"el-input-group__append\"},[t._t(\"append\")],2):t._e()]:n(\"textarea\",t._b({ref:\"textarea\",staticClass:\"el-textarea__inner\",style:t.textareaStyle,attrs:{tabindex:t.tabindex,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,\"aria-label\":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},\"textarea\",t.$attrs,!1)),t.isWordLimitVisible&&\"textarea\"===t.type?n(\"span\",{staticClass:\"el-input__count\"},[t._v(t._s(t.textLength)+\"/\"+t._s(t.upperLimit))]):t._e()],2)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(11),s=n.n(a),u=void 0,l=[\"letter-spacing\",\"line-height\",\"padding-top\",\"padding-bottom\",\"font-family\",\"font-weight\",\"font-size\",\"text-rendering\",\"text-transform\",\"width\",\"text-indent\",\"padding-left\",\"padding-right\",\"border-width\",\"box-sizing\"];function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;u||(u=document.createElement(\"textarea\"),document.body.appendChild(u));var r=function(t){var e=window.getComputedStyle(t),n=e.getPropertyValue(\"box-sizing\"),r=parseFloat(e.getPropertyValue(\"padding-bottom\"))+parseFloat(e.getPropertyValue(\"padding-top\")),i=parseFloat(e.getPropertyValue(\"border-bottom-width\"))+parseFloat(e.getPropertyValue(\"border-top-width\"));return{contextStyle:l.map((function(t){return t+\":\"+e.getPropertyValue(t)})).join(\";\"),paddingSize:r,borderSize:i,boxSizing:n}}(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;u.setAttribute(\"style\",s+\";\\n  height:0 !important;\\n  visibility:hidden !important;\\n  overflow:hidden !important;\\n  position:absolute !important;\\n  z-index:-1000 !important;\\n  top:0 !important;\\n  right:0 !important\\n\"),u.value=t.value||t.placeholder||\"\";var c=u.scrollHeight,h={};\"border-box\"===a?c+=o:\"content-box\"===a&&(c-=i),u.value=\"\";var f=u.scrollHeight-i;if(null!==e){var d=f*e;\"border-box\"===a&&(d=d+i+o),c=Math.max(d,c),h.minHeight=d+\"px\"}if(null!==n){var p=f*n;\"border-box\"===a&&(p=p+i+o),c=Math.min(p,c)}return h.height=c+\"px\",u.parentNode&&u.parentNode.removeChild(u),u=null,h}var h=n(9),f=n.n(h),d=n(21),p={name:\"ElInput\",componentName:\"ElInput\",mixins:[o.a,s.a],inheritAttrs:!1,inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:\"text\"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:\"off\"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:\"\"},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:\"el-icon-loading\",success:\"el-icon-circle-check\",error:\"el-icon-circle-close\"}[this.validateState]},textareaStyle:function(){return f()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?\"\":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&(\"text\"===this.type||\"textarea\"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return\"number\"==typeof this.value?String(this.value).length:(this.value||\"\").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch(\"ElFormItem\",\"el.form.change\",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick((function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:\"icon is removed, use suffix-icon / prefix-icon instead.\",\"on-icon-click\":\"on-icon-click is removed.\"},events:{click:\"click is removed.\"}}},handleBlur:function(t){this.focused=!1,this.$emit(\"blur\",t),this.validateEvent&&this.dispatch(\"ElFormItem\",\"el.form.blur\",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize;if(\"textarea\"===this.type)if(t){var e=t.minRows,n=t.maxRows;this.textareaCalcStyle=c(this.$refs.textarea,e,n)}else this.textareaCalcStyle={minHeight:c(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit(\"focus\",t)},handleCompositionStart:function(t){this.$emit(\"compositionstart\",t),this.isComposing=!0},handleCompositionUpdate:function(t){this.$emit(\"compositionupdate\",t);var e=t.target.value,n=e[e.length-1]||\"\";this.isComposing=!Object(d.isKorean)(n)},handleCompositionEnd:function(t){this.$emit(\"compositionend\",t),this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit(\"input\",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit(\"change\",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(\".el-input__\"+t)||[]);if(e.length){for(var n=null,r=0;r<e.length;r++)if(e[r].parentNode===this.$el){n=e[r];break}if(n){var i={suffix:\"append\",prefix:\"prepend\"}[t];this.$slots[i]?n.style.transform=\"translateX(\"+(\"suffix\"===t?\"-\":\"\")+this.$el.querySelector(\".el-input-group__\"+i).offsetWidth+\"px)\":n.removeAttribute(\"style\")}}},updateIconOffset:function(){this.calcIconOffset(\"prefix\"),this.calcIconOffset(\"suffix\")},clear:function(){this.$emit(\"input\",\"\"),this.$emit(\"change\",\"\"),this.$emit(\"clear\")},handlePasswordVisible:function(){var t=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){t.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on(\"inputSelect\",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},m=p,v=n(0),g=Object(v.a)(m,r,[],!1,null,null,null);g.options.__file=\"packages/input/src/input.vue\";var y=g.exports;y.install=function(t){t.component(y.name,y)};e.default=y},9:function(t,e){t.exports=n(256)}})},function(t,e,n){\"use strict\";e.__esModule=!0,e.removeResizeListener=e.addResizeListener=void 0;var r,i=n(332),o=(r=i)&&r.__esModule?r:{default:r},a=n(300);var s=\"undefined\"==typeof window,u=function(t){var e=t,n=Array.isArray(e),r=0;for(e=n?e:e[Symbol.iterator]();;){var i;if(n){if(r>=e.length)break;i=e[r++]}else{if((r=e.next()).done)break;i=r.value}var o=i.target.__resizeListeners__||[];o.length&&o.forEach((function(t){t()}))}};e.addResizeListener=function(t,e){s||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new o.default((0,a.debounce)(16,u)),t.__ro__.observe(t)),t.__resizeListeners__.push(e))},e.removeResizeListener=function(t,e){t&&t.__resizeListeners__&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||t.__ro__.disconnect())}},function(t,e){t.exports=function(t,e,n,r){var i,o=0;return\"boolean\"!=typeof e&&(r=n,n=e,e=void 0),function(){var a=this,s=Number(new Date)-o,u=arguments;function l(){o=Number(new Date),n.apply(a,u)}r&&!i&&l(),i&&clearTimeout(i),void 0===r&&s>t?l():!0!==e&&(i=setTimeout(r?function(){i=void 0}:l,void 0===r?t-s:t))}}},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=133)}({133:function(t,e,n){\"use strict\";n.r(e);var r=n(16),i=n(39),o=n.n(i),a=n(3),s=n(2),u={vertical:{offset:\"offsetHeight\",scroll:\"scrollTop\",scrollSize:\"scrollHeight\",size:\"height\",key:\"vertical\",axis:\"Y\",client:\"clientY\",direction:\"top\"},horizontal:{offset:\"offsetWidth\",scroll:\"scrollLeft\",scrollSize:\"scrollWidth\",size:\"width\",key:\"horizontal\",axis:\"X\",client:\"clientX\",direction:\"left\"}};function l(t){var e=t.move,n=t.size,r=t.bar,i={},o=\"translate\"+r.axis+\"(\"+e+\"%)\";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var c={name:\"Bar\",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return u[this.vertical?\"vertical\":\"horizontal\"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,r=this.bar;return t(\"div\",{class:[\"el-scrollbar__bar\",\"is-\"+r.key],on:{mousedown:this.clickTrackHandler}},[t(\"div\",{ref:\"thumb\",class:\"el-scrollbar__thumb\",on:{mousedown:this.clickThumbHandler},style:l({size:e,move:n,bar:r})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=100*(Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=e*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(s.on)(document,\"mousemove\",this.mouseMoveDocumentHandler),Object(s.on)(document,\"mouseup\",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-(this.$refs.thumb[this.bar.offset]-e))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(s.off)(document,\"mousemove\",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s.off)(document,\"mouseup\",this.mouseUpDocumentHandler)}},h={name:\"ElScrollbar\",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:\"div\"}},data:function(){return{sizeWidth:\"0\",sizeHeight:\"0\",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=o()(),n=this.wrapStyle;if(e){var r=\"-\"+e+\"px\",i=\"margin-bottom: \"+r+\"; margin-right: \"+r+\";\";Array.isArray(this.wrapStyle)?(n=Object(a.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:\"string\"==typeof this.wrapStyle?n+=i:n=i}var s=t(this.tag,{class:[\"el-scrollbar__view\",this.viewClass],style:this.viewStyle,ref:\"resize\"},this.$slots.default),u=t(\"div\",{ref:\"wrap\",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,\"el-scrollbar__wrap\",e?\"\":\"el-scrollbar__wrap--hidden-default\"]},[[s]]),l=void 0;return l=this.native?[t(\"div\",{ref:\"wrap\",class:[this.wrapClass,\"el-scrollbar__wrap\"],style:n},[[s]])]:[u,t(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],t(\"div\",{class:\"el-scrollbar\"},l)},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t,e,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+\"%\":\"\",this.sizeWidth=e<100?e+\"%\":\"\")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r.removeResizeListener)(this.$refs.resize,this.update)},install:function(t){t.component(h.name,h)}};e.default=h},16:function(t,e){t.exports=n(272)},2:function(t,e){t.exports=n(232)},3:function(t,e){t.exports=n(231)},39:function(t,e){t.exports=n(270)}})},function(t,e,n){\"use strict\";e.__esModule=!0,e.default=function(t){return{methods:{focus:function(){this.$refs[t].focus()}}}}},function(t,e,n){\"use strict\";e.__esModule=!0,e.default=function(t,e){if(o.default.prototype.$isServer)return;if(!e)return void(t.scrollTop=0);var n=[],r=e.offsetParent;for(;r&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;var i=e.offsetTop+n.reduce((function(t,e){return t+e.offsetTop}),0),a=i+e.offsetHeight,s=t.scrollTop,u=s+t.clientHeight;i<s?t.scrollTop=i:a>u&&(t.scrollTop=a-t.clientHeight)};var r,i=n(60),o=(r=i)&&r.__esModule?r:{default:r}},function(t,e,n){\"use strict\";e.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(t){for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusFirstDescendant(n))return!0}return!1},r.Utils.focusLastDescendant=function(t){for(var e=t.childNodes.length-1;e>=0;e--){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(t){if(!r.Utils.isFocusable(t))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},r.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute(\"tabIndex\"))return!0;if(t.disabled)return!1;switch(t.nodeName){case\"A\":return!!t.href&&\"ignore\"!==t.rel;case\"INPUT\":return\"hidden\"!==t.type&&\"file\"!==t.type;case\"BUTTON\":case\"SELECT\":case\"TEXTAREA\":return!0;default:return!1}},r.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?\"MouseEvents\":/^key/.test(e)?\"KeyboardEvent\":\"HTMLEvents\";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[e].concat(o)),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent(\"on\"+e,r),t},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},e.default=r.Utils},function(t,e,n){var r=n(234),i=n(250),o=n(352),a=n(240),s=n(237),u=\"prototype\",l=function t(e,n,l){var c,h,f,d=e&t.F,p=e&t.G,m=e&t.S,v=e&t.P,g=e&t.B,y=e&t.W,b=p?i:i[n]||(i[n]={}),_=b[u],w=p?r:m?r[n]:(r[n]||{})[u];for(c in p&&(l=n),l)(h=!d&&w&&void 0!==w[c])&&s(b,c)||(f=h?w[c]:l[c],b[c]=p&&\"function\"!=typeof w[c]?l[c]:g&&h?o(f,r):y&&w[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(f):v&&\"function\"==typeof f?o(Function.call,f):f,v&&((b.virtual||(b.virtual={}))[c]=f,e&t.R&&_&&!_[c]&&a(_,c,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){var r=n(251);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&\"function\"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if(\"function\"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&\"function\"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError(\"Can't convert object to primitive value\")}},function(t,e){t.exports=function(t){if(null==t)throw TypeError(\"Can't call method on  \"+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(283)(\"keys\"),i=n(263);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(250),i=n(234),o=\"__core-js_shared__\",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})(\"versions\",[]).push({version:r.version,mode:n(262)?\"pure\":\"global\",copyright:\"© 2020 Denis Pushkarev (zloirock.ru)\"})},function(t,e){t.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(280);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(241).f,i=n(237),o=n(243)(\"toStringTag\");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){e.f=n(243)},function(t,e,n){var r=n(234),i=n(250),o=n(262),a=n(289),s=n(241).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});\"_\"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r,i,o;function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function c(t){var e=function(t,e){if(\"object\"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||\"default\");if(\"object\"!=u(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"==u(e)?e:e+\"\"}function h(t,e,n){return e=v(e),function(t,e){if(e&&(\"object\"===u(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}(t)}(t,p()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}function f(){return f=\"undefined\"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},f.apply(this,arguments)}function d(t){var e=\"function\"==typeof Map?new Map:void 0;return d=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf(\"[native code]\")}catch(e){return\"function\"==typeof t}}(t))return t;if(\"function\"!=typeof t)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(p())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&m(i,n.prototype),i}(t,arguments,v(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),m(n,t)},d(t)}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}i=[t],r=function(t){\"use strict\";\"undefined\"==typeof browser||Object.getPrototypeOf(browser)!==Object.prototype?t.exports=function(){var t={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getBrowserInfo:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(0===Object.keys(t).length)throw new Error(\"api-metadata.json has not been included in browser-polyfill\");var e=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(n=h(this,e,[r])).createItem=t,n}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&m(t,e)}(e,t),n=e,(r=[{key:\"get\",value:function(t){return this.has(t)||this.set(t,this.createItem(t)),f(v(e.prototype),\"get\",this).call(this,t)}}])&&l(n.prototype,r),i&&l(n,i),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,r,i}(d(WeakMap)),n=function(t){return t&&\"object\"==u(t)&&\"function\"==typeof t.then},r=function(t,e){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];chrome.runtime.lastError?t.reject(chrome.runtime.lastError):e.singleCallbackArg||1>=r.length?t.resolve(r[0]):t.resolve(r)}},i=function(t){return 1==t?\"argument\":\"arguments\"},o=function(t,e){return function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];if(a.length<e.minArgs)throw new Error(\"Expected at least \".concat(e.minArgs,\" \").concat(i(e.minArgs),\" for \").concat(t,\"(), got \").concat(a.length));if(a.length>e.maxArgs)throw new Error(\"Expected at most \".concat(e.maxArgs,\" \").concat(i(e.maxArgs),\" for \").concat(t,\"(), got \").concat(a.length));return new Promise((function(i,o){if(e.fallbackToNoCallback)try{n[t].apply(n,a.concat([r({resolve:i,reject:o},e)]))}catch(r){\"\".concat(t,\" API method doesn't seem to support the callback parameter, \"),n[t].apply(n,a),e.fallbackToNoCallback=!1,e.noCallback=!0,i()}else e.noCallback?(n[t].apply(n,a),i()):n[t].apply(n,a.concat([r({resolve:i,reject:o},e)]))}))}},s=function(t,e,n){return new Proxy(e,{apply:function(e,r,i){return n.call.apply(n,[r,t].concat(a(i)))}})},c=Function.call.bind(Object.prototype.hasOwnProperty),p=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(null),a={has:function(t,n){return n in e||n in i},get:function(a,l){if(l in i)return i[l];if(l in e){var h=e[l];if(\"function\"==typeof h)if(\"function\"==typeof n[l])h=s(e,e[l],n[l]);else if(c(r,l)){var f=o(l,r[l]);h=s(e,e[l],f)}else h=h.bind(e);else{if(\"object\"!=u(h)||null===h||!c(n,l)&&!c(r,l))return Object.defineProperty(i,l,{configurable:!0,enumerable:!0,get:function(){return e[l]},set:function(t){e[l]=t}}),h;h=t(h,n[l],r[l])}return i[l]=h,h}},set:function(t,n,r){return n in i?i[n]=r:e[n]=r,!0},defineProperty:function(t,e,n){return Reflect.defineProperty(i,e,n)},deleteProperty:function(t,e){return Reflect.deleteProperty(i,e)}},l=Object.create(e);return new Proxy(l,a)},g=function(t){return{addListener:function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];e.addListener.apply(e,[t.get(n)].concat(i))},hasListener:function(e,n){return e.hasListener(t.get(n))},removeListener:function(e,n){e.removeListener(t.get(n))}}},y=!1,b=new e((function(t){return\"function\"==typeof t?function(e,r,i){var o,a,s=!1,u=new Promise((function(t){o=function(e){y||((new Error).stack,y=!0),s=!0,t(e)}}));try{a=t(e,r,o)}catch(t){a=Promise.reject(t)}var l=!0!==a&&n(a);if(!0!==a&&!l&&!s)return!1;var c=function(t){t.then((function(t){i(t)}),(function(t){var e;e=t&&(t instanceof Error||\"string\"==typeof t.message)?t.message:\"An unexpected error occurred\",i({__mozWebExtensionPolyfillReject__:!0,message:e})})).catch((function(t){}))};return c(l?a:u),!0}:t})),_=function(t,e){var n=t.reject,r=t.resolve;chrome.runtime.lastError?\"The message port closed before a response was received.\"===chrome.runtime.lastError.message?r():n(chrome.runtime.lastError):e&&e.__mozWebExtensionPolyfillReject__?n(new Error(e.message)):r(e)},w=function(t,e,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];if(o.length<e.minArgs)throw new Error(\"Expected at least \".concat(e.minArgs,\" \").concat(i(e.minArgs),\" for \").concat(t,\"(), got \").concat(o.length));if(o.length>e.maxArgs)throw new Error(\"Expected at most \".concat(e.maxArgs,\" \").concat(i(e.maxArgs),\" for \").concat(t,\"(), got \").concat(o.length));return new Promise((function(t,e){var r=_.bind(null,{resolve:t,reject:e});o.push(r),n.sendMessage.apply(n,o)}))},x={runtime:{onMessage:g(b),onMessageExternal:g(b),sendMessage:w.bind(null,\"sendMessage\",{minArgs:1,maxArgs:3})},tabs:{sendMessage:w.bind(null,\"sendMessage\",{minArgs:2,maxArgs:3})}},k={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return t.privacy={network:{networkPredictionEnabled:k,webRTCIPHandlingPolicy:k},services:{passwordSavingEnabled:k},websites:{hyperlinkAuditingEnabled:k,referrersEnabled:k}},p(chrome,x,t)}():t.exports=browser},void 0===(o=\"function\"==typeof r?r.apply(e,i):r)||(t.exports=o)},,,function(t,e,n){\"use strict\";var r;!function(i){var o={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\\1?|[aA]|\"[^\"]*\"|'[^']*'/g,s=\"\\\\d\\\\d?\",u=\"[^\\\\s]+\",l=/\\[([^]*?)\\]/gm,c=function(){};function h(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function f(t){return function(e,n,r){var i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(e.month=i)}}function d(t,e){for(t=String(t),e=e||2;t.length<e;)t=\"0\"+t;return t}var p=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],m=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],v=h(m,3),g=h(p,3);o.i18n={dayNamesShort:g,dayNames:p,monthNamesShort:v,monthNames:m,amPm:[\"am\",\"pm\"],DoFn:function(t){return t+[\"th\",\"st\",\"nd\",\"rd\"][t%10>3?0:(t-t%10!=10)*t%10]}};var y={D:function(t){return t.getDay()},DD:function(t){return d(t.getDay())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDate()},dd:function(t){return d(t.getDate())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return d(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},yy:function(t){return d(String(t.getFullYear()),4).substr(2)},yyyy:function(t){return d(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return d(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return d(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return d(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return d(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return d(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return d(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?\"-\":\"+\")+d(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},b={d:[s,function(t,e){t.day=e}],Do:[s+u,function(t,e){t.day=parseInt(e,10)}],M:[s,function(t,e){t.month=e-1}],yy:[s,function(t,e){var n=+(\"\"+(new Date).getFullYear()).substr(0,2);t.year=\"\"+(e>68?n-1:n)+e}],h:[s,function(t,e){t.hour=e}],m:[s,function(t,e){t.minute=e}],s:[s,function(t,e){t.second=e}],yyyy:[\"\\\\d{4}\",function(t,e){t.year=e}],S:[\"\\\\d\",function(t,e){t.millisecond=100*e}],SS:[\"\\\\d{2}\",function(t,e){t.millisecond=10*e}],SSS:[\"\\\\d{3}\",function(t,e){t.millisecond=e}],D:[s,c],ddd:[u,c],MMM:[u,f(\"monthNamesShort\")],MMMM:[u,f(\"monthNames\")],a:[u,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[\"[^\\\\s]*?[\\\\+\\\\-]\\\\d\\\\d:?\\\\d\\\\d|[^\\\\s]*?Z\",function(t,e){var n,r=(e+\"\").match(/([+-]|\\d\\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset=\"+\"===r[0]?n:-n)}]};b.dd=b.d,b.dddd=b.ddd,b.DD=b.D,b.mm=b.m,b.hh=b.H=b.HH=b.h,b.MM=b.M,b.ss=b.s,b.A=b.a,o.masks={default:\"ddd MMM dd yyyy HH:mm:ss\",shortDate:\"M/D/yy\",mediumDate:\"MMM d, yyyy\",longDate:\"MMMM d, yyyy\",fullDate:\"dddd, MMMM d, yyyy\",shortTime:\"HH:mm\",mediumTime:\"HH:mm:ss\",longTime:\"HH:mm:ss.SSS\"},o.format=function(t,e,n){var r=n||o.i18n;if(\"number\"==typeof t&&(t=new Date(t)),\"[object Date]\"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error(\"Invalid Date in fecha.format\");e=o.masks[e]||e||o.masks.default;var i=[];return(e=(e=e.replace(l,(function(t,e){return i.push(e),\"@@@\"}))).replace(a,(function(e){return e in y?y[e](t,r):e.slice(1,e.length-1)}))).replace(/@@@/g,(function(){return i.shift()}))},o.parse=function(t,e,n){var r=n||o.i18n;if(\"string\"!=typeof e)throw new Error(\"Invalid format in fecha.parse\");if(e=o.masks[e]||e,t.length>1e3)return null;var i={},s=[],u=[];e=e.replace(l,(function(t,e){return u.push(e),\"@@@\"}));var c,h=(c=e,c.replace(/[|\\\\{()[^$+*?.-]/g,\"\\\\$&\")).replace(a,(function(t){if(b[t]){var e=b[t];return s.push(e[1]),\"(\"+e[0]+\")\"}return t}));h=h.replace(/@@@/g,(function(){return u.shift()}));var f=t.match(new RegExp(h,\"i\"));if(!f)return null;for(var d=1;d<f.length;d++)s[d-1](i,f[d],r);var p,m=new Date;return!0===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12==+i.hour&&(i.hour=0),null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,p=new Date(Date.UTC(i.year||m.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):p=new Date(i.year||m.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),p},t.exports?t.exports=o:void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}e.__esModule=!0,e.isDefined=e.isUndefined=e.isFunction=void 0;var i=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)};e.isString=function(t){return\"[object String]\"===Object.prototype.toString.call(t)},e.isObject=function(t){return\"[object Object]\"===Object.prototype.toString.call(t)},e.isHtmlElement=function(t){return t&&t.nodeType===Node.ELEMENT_NODE};var o,a=n(60),s=(o=a)&&o.__esModule?o:{default:o};var u=function(t){return t&&\"[object Function]\"==={}.toString.call(t)};\"object\"===(\"undefined\"==typeof Int8Array?\"undefined\":i(Int8Array))||!s.default.prototype.$isServer&&\"function\"==typeof document.childNodes||(e.isFunction=u=function(t){return\"function\"==typeof t||!1}),e.isFunction=u;e.isUndefined=function(t){return void 0===t},e.isDefined=function(t){return null!=t}},function(t,e,n){\"use strict\";e.__esModule=!0,e.PopupManager=void 0;var r=u(n(60)),i=u(n(256)),o=u(n(329)),a=u(n(270)),s=n(232);function u(t){return t&&t.__esModule?t:{default:t}}var l=1,c=void 0;e.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId=\"popup-\"+l++,o.default.register(this._popupId,this)},beforeDestroy:function(){o.default.deregister(this._popupId),o.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(t){var e=this;if(t){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){e.open()})))}else this.close()}},methods:{open:function(t){var e=this;this.rendered||(this.rendered=!0);var n=(0,i.default)({},this.$props||this,t);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){e._openTimer=null,e.doOpen(n)}),r):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,r=t.zIndex;if(r&&(o.default.zIndex=r),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,s.hasClass)(document.body,\"el-popup-parent--hidden\"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,s.getStyle)(document.body,\"paddingRight\"),10)),c=(0,a.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,u=(0,s.getStyle)(document.body,\"overflowY\");c>0&&(i||\"scroll\"===u)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+c+\"px\"),(0,s.addClass)(document.body,\"el-popup-parent--hidden\")}\"static\"===getComputedStyle(e).position&&(e.style.position=\"absolute\"),e.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout((function(){t._closeTimer=null,t.doClose()}),e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,s.removeClass)(document.body,\"el-popup-parent--hidden\")),this.withoutHiddenClass=!0}}},e.PopupManager=o.default},function(t,e,n){\"use strict\";e.__esModule=!0;n(231);e.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},function(t,e,n){\"use strict\";e.__esModule=!0;var r,i=n(60),o=(r=i)&&r.__esModule?r:{default:r},a=n(232);var s=[],u=\"@@clickoutsideContext\",l=void 0,c=0;function h(t,e,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||t.contains(r.target)||t.contains(i.target)||t===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(e.expression&&t[u].methodName&&n.context[t[u].methodName]?n.context[t[u].methodName]():t[u].bindingFn&&t[u].bindingFn())}}!o.default.prototype.$isServer&&(0,a.on)(document,\"mousedown\",(function(t){return l=t})),!o.default.prototype.$isServer&&(0,a.on)(document,\"mouseup\",(function(t){s.forEach((function(e){return e[u].documentHandler(t,l)}))})),e.default={bind:function(t,e,n){s.push(t);var r=c++;t[u]={id:r,documentHandler:h(t,e,n),methodName:e.expression,bindingFn:e.value}},update:function(t,e,n){t[u].documentHandler=h(t,e,n),t[u].methodName=e.expression,t[u].bindingFn=e.value},unbind:function(t){for(var e=s.length,n=0;n<e;n++)if(s[n][u].id===t[u].id){s.splice(n,1);break}delete t[u]}}},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=91)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},4:function(t,e){t.exports=n(235)},91:function(t,e,n){\"use strict\";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"label\",{staticClass:\"el-checkbox\",class:[t.border&&t.checkboxSize?\"el-checkbox--\"+t.checkboxSize:\"\",{\"is-disabled\":t.isDisabled},{\"is-bordered\":t.border},{\"is-checked\":t.isChecked}],attrs:{id:t.id}},[n(\"span\",{staticClass:\"el-checkbox__input\",class:{\"is-disabled\":t.isDisabled,\"is-checked\":t.isChecked,\"is-indeterminate\":t.indeterminate,\"is-focus\":t.focus},attrs:{tabindex:!!t.indeterminate&&0,role:!!t.indeterminate&&\"checkbox\",\"aria-checked\":!!t.indeterminate&&\"mixed\"}},[n(\"span\",{staticClass:\"el-checkbox__inner\"}),t.trueLabel||t.falseLabel?n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.model,expression:\"model\"}],staticClass:\"el-checkbox__original\",attrs:{type:\"checkbox\",\"aria-hidden\":t.indeterminate?\"true\":\"false\",name:t.name,disabled:t.isDisabled,\"true-value\":t.trueLabel,\"false-value\":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.model,expression:\"model\"}],staticClass:\"el-checkbox__original\",attrs:{type:\"checkbox\",\"aria-hidden\":t.indeterminate?\"true\":\"false\",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n(\"span\",{staticClass:\"el-checkbox__label\"},[t._t(\"default\"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])};r._withStripped=!0;var i=n(4),o={name:\"ElCheckbox\",mixins:[n.n(i).a],inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},componentName:\"ElCheckbox\",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch(\"ElCheckboxGroup\",\"input\",[t])):(this.$emit(\"input\",t),this.selfModel=t)}},isChecked:function(){return\"[object Boolean]\"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var t=this.$parent;t;){if(\"ElCheckboxGroup\"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit(\"change\",n,t),this.$nextTick((function(){e.isGroup&&e.dispatch(\"ElCheckboxGroup\",\"change\",[e._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute(\"aria-controls\",this.controls)},watch:{value:function(t){this.dispatch(\"ElFormItem\",\"el.form.change\",t)}}},a=n(0),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file=\"packages/checkbox/src/checkbox.vue\";var u=s.exports;u.install=function(t){t.component(u.name,u)};e.default=u}})},function(t,e,n){var r=n(273),i=n(258);t.exports={throttle:r,debounce:i}},function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,a,s,u;for(a in e)if(i=t[a],o=e[a],i&&n.test(a))if(\"class\"===a&&(\"string\"==typeof i&&(u=i,t[a]=i={},i[u]=!0),\"string\"==typeof o&&(u=o,e[a]=o={},o[u]=!0)),\"on\"===a||\"nativeOn\"===a||\"hook\"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))t[a]=i.concat(o);else if(Array.isArray(o))t[a]=[i].concat(o);else for(s in o)i[s]=o[s];else t[a]=e[a];return t}),{})}},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=132)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},132:function(t,e,n){\"use strict\";n.r(e);var r={name:\"ElTag\",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:\"light\",validator:function(t){return-1!==[\"dark\",\"light\",\"plain\"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit(\"close\",t)},handleClick:function(t){this.$emit(\"click\",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=t(\"span\",{class:[\"el-tag\",e?\"el-tag--\"+e:\"\",n?\"el-tag--\"+n:\"\",i?\"el-tag--\"+i:\"\",r&&\"is-hit\"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t(\"i\",{class:\"el-tag__close el-icon-close\",on:{click:this.handleClose}})]);return this.disableTransitions?o:t(\"transition\",{attrs:{name:\"el-zoom-in-center\"}},[o])}},i=n(0),o=Object(i.a)(r,undefined,undefined,!1,null,null,null);o.options.__file=\"packages/tag/src/tag.vue\";var a=o.exports;a.install=function(t){t.component(a.name,a)};e.default=a}})},function(t,e,n){t.exports=!n(236)&&!n(252)((function(){return 7!=Object.defineProperty(n(304)(\"div\"),\"a\",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(251),i=n(234).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(237),i=n(242),o=n(355)(!1),a=n(282)(\"IE_PROTO\");t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(307);t.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(t){return\"String\"==r(t)?t.split(\"\"):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){\"use strict\";var r=n(262),i=n(278),o=n(309),a=n(240),s=n(287),u=n(362),l=n(288),c=n(365),h=n(243)(\"iterator\"),f=!([].keys&&\"next\"in[].keys()),d=\"keys\",p=\"values\",m=function(){return this};t.exports=function(t,e,n,v,g,y,b){u(n,e,v);var _,w,x,k=function(t){if(!f&&t in D)return D[t];switch(t){case d:case p:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+\" Iterator\",C=g==p,E=!1,D=t.prototype,A=D[h]||D[\"@@iterator\"]||g&&D[g],O=A||k(g),M=g?C?k(\"entries\"):O:void 0,T=\"Array\"==e&&D.entries||A;if(T&&(x=c(T.call(new t)))!==Object.prototype&&x.next&&(l(x,S,!0),r||\"function\"==typeof x[h]||a(x,h,m)),C&&A&&A.name!==p&&(E=!0,O=function(){return A.call(this)}),r&&!b||!f&&!E&&D[h]||a(D,h,O),s[e]=O,s[S]=m,g)if(_={values:C?O:k(p),keys:y?O:k(d),entries:M},b)for(w in _)w in D||o(D,w,_[w]);else i(i.P+i.F*(f||E),e,_);return _}},function(t,e,n){t.exports=n(240)},function(t,e,n){var r=n(259),i=n(363),o=n(284),a=n(282)(\"IE_PROTO\"),s=function(){},u=\"prototype\",l=function(){var t,e=n(304)(\"iframe\"),r=o.length;for(e.style.display=\"none\",n(364).appendChild(e),e.src=\"javascript:\",(t=e.contentWindow.document).open(),t.write(\"<script>document.F=Object<\\/script>\"),t.close(),l=t.F;r--;)delete l[u][o[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=l(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(305),i=n(284).concat(\"length\",\"prototype\");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=88)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},4:function(t,e){t.exports=n(235)},88:function(t,e,n){\"use strict\";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"label\",{staticClass:\"el-radio\",class:[t.border&&t.radioSize?\"el-radio--\"+t.radioSize:\"\",{\"is-disabled\":t.isDisabled},{\"is-focus\":t.focus},{\"is-bordered\":t.border},{\"is-checked\":t.model===t.label}],attrs:{role:\"radio\",\"aria-checked\":t.model===t.label,\"aria-disabled\":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"space\",32,e.key,[\" \",\"Spacebar\"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[n(\"span\",{staticClass:\"el-radio__input\",class:{\"is-disabled\":t.isDisabled,\"is-checked\":t.model===t.label}},[n(\"span\",{staticClass:\"el-radio__inner\"}),n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.model,expression:\"model\"}],ref:\"radio\",staticClass:\"el-radio__original\",attrs:{type:\"radio\",\"aria-hidden\":\"true\",name:t.name,disabled:t.isDisabled,tabindex:\"-1\",autocomplete:\"off\"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),n(\"span\",{staticClass:\"el-radio__label\",on:{keydown:function(t){t.stopPropagation()}}},[t._t(\"default\"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])};r._withStripped=!0;var i=n(4),o={name:\"ElRadio\",mixins:[n.n(i).a],inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},componentName:\"ElRadio\",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var t=this.$parent;t;){if(\"ElRadioGroup\"===t.$options.componentName)return this._radioGroup=t,!0;t=t.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(t){this.isGroup?this.dispatch(\"ElRadioGroup\",\"input\",[t]):this.$emit(\"input\",t),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||t},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.$emit(\"change\",t.model),t.isGroup&&t.dispatch(\"ElRadioGroup\",\"handleChange\",t.model)}))}}},a=n(0),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file=\"packages/radio/src/radio.vue\";var u=s.exports;u.install=function(t){t.component(u.name,u)};e.default=u}})},function(t,e,n){},function(t,e,n){},,,,,function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=46)}([function(t,e){t.exports=n(325)},function(t,e){t.exports=n(232)},function(t,e){t.exports=n(231)},function(t,e){t.exports=n(235)},function(t,e){t.exports=n(269)},function(t,e){t.exports=n(255)},function(t,e){t.exports=n(60)},function(t,e){t.exports=n(256)},function(t,e){t.exports=n(271)},function(t,e){t.exports=n(297)},function(t,e){t.exports=n(298)},function(t,e){t.exports=n(296)},function(t,e){t.exports=n(268)},function(t,e){t.exports=n(331)},function(t,e){t.exports=n(299)},function(t,e){t.exports=n(272)},function(t,e){t.exports=n(295)},function(t,e){t.exports=n(258)},function(t,e){t.exports=n(274)},function(t,e){t.exports=n(257)},function(t,e){t.exports=n(294)},function(t,e){t.exports=n(333)},function(t,e){t.exports=n(334)},function(t,e){t.exports=n(275)},function(t,e){t.exports=n(301)},function(t,e){t.exports=n(273)},function(t,e){t.exports=n(335)},function(t,e){t.exports=n(276)},function(t,e){t.exports=n(336)},function(t,e){t.exports=n(337)},function(t,e){t.exports=n(302)},function(t,e){t.exports=n(270)},function(t,e){t.exports=n(338)},function(t,e){t.exports=n(339)},function(t,e){t.exports=n(340)},function(t,e){t.exports=n(277)},function(t,e){t.exports=n(300)},function(t,e){t.exports=n(341)},function(t,e){t.exports=n(342)},function(t,e){t.exports=n(343)},function(t,e){t.exports=n(348)},function(t,e){t.exports=n(403)},function(t,e){t.exports=n(381)},function(t,e){t.exports=n(382)},function(t,e){t.exports=n(312)},function(t,e){t.exports=n(383)},function(t,e,n){t.exports=n(47)},function(t,e,n){\"use strict\";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"ul\",{staticClass:\"el-pager\",on:{click:t.onPagerClick}},[t.pageCount>0?n(\"li\",{staticClass:\"number\",class:{active:1===t.currentPage,disabled:t.disabled}},[t._v(\"1\")]):t._e(),t.showPrevMore?n(\"li\",{staticClass:\"el-icon more btn-quickprev\",class:[t.quickprevIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter(\"left\")},mouseleave:function(e){t.quickprevIconClass=\"el-icon-more\"}}}):t._e(),t._l(t.pagers,(function(e){return n(\"li\",{key:e,staticClass:\"number\",class:{active:t.currentPage===e,disabled:t.disabled}},[t._v(t._s(e))])})),t.showNextMore?n(\"li\",{staticClass:\"el-icon more btn-quicknext\",class:[t.quicknextIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter(\"right\")},mouseleave:function(e){t.quicknextIconClass=\"el-icon-more\"}}}):t._e(),t.pageCount>1?n(\"li\",{staticClass:\"number\",class:{active:t.currentPage===t.pageCount,disabled:t.disabled}},[t._v(t._s(t.pageCount))]):t._e()],2)};function o(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}i._withStripped=!0;var a=o({name:\"ElPager\",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(t){t||(this.quickprevIconClass=\"el-icon-more\")},showNextMore:function(t){t||(this.quicknextIconClass=\"el-icon-more\")}},methods:{onPagerClick:function(t){var e=t.target;if(\"UL\"!==e.tagName&&!this.disabled){var n=Number(t.target.textContent),r=this.pageCount,i=this.currentPage,o=this.pagerCount-2;-1!==e.className.indexOf(\"more\")&&(-1!==e.className.indexOf(\"quickprev\")?n=i-o:-1!==e.className.indexOf(\"quicknext\")&&(n=i+o)),isNaN(n)||(n<1&&(n=1),n>r&&(n=r)),n!==i&&this.$emit(\"change\",n)}},onMouseenter:function(t){this.disabled||(\"left\"===t?this.quickprevIconClass=\"el-icon-d-arrow-left\":this.quicknextIconClass=\"el-icon-d-arrow-right\")}},computed:{pagers:function(){var t=this.pagerCount,e=(t-1)/2,n=Number(this.currentPage),r=Number(this.pageCount),i=!1,o=!1;r>t&&(n>t-e&&(i=!0),n<r-e&&(o=!0));var a=[];if(i&&!o)for(var s=r-(t-2);s<r;s++)a.push(s);else if(!i&&o)for(var u=2;u<t;u++)a.push(u);else if(i&&o)for(var l=Math.floor(t/2)-1,c=n-l;c<=n+l;c++)a.push(c);else for(var h=2;h<r;h++)a.push(h);return this.showPrevMore=i,this.showNextMore=o,a}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:\"el-icon-more\",quickprevIconClass:\"el-icon-more\"}}},i,[],!1,null,null,null);a.options.__file=\"packages/pagination/src/pager.vue\";var s=a.exports,u=n(37),l=n.n(u),c=n(38),h=n.n(c),f=n(8),d=n.n(f),p=n(4),m=n.n(p),v=n(2),g={name:\"ElPagination\",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(t){return(0|t)===t&&t>4&&t<22&&t%2==1},default:7},currentPage:{type:Number,default:1},layout:{default:\"prev, pager, next, jumper, ->, total\"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(t){var e=this.layout;if(!e)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=t(\"div\",{class:[\"el-pagination\",{\"is-background\":this.background,\"el-pagination--small\":this.small}]}),r={prev:t(\"prev\"),jumper:t(\"jumper\"),pager:t(\"pager\",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:t(\"next\"),sizes:t(\"sizes\",{attrs:{pageSizes:this.pageSizes}}),slot:t(\"slot\",[this.$slots.default?this.$slots.default:\"\"]),total:t(\"total\")},i=e.split(\",\").map((function(t){return t.trim()})),o=t(\"div\",{class:\"el-pagination__rightwrapper\"}),a=!1;return n.children=n.children||[],o.children=o.children||[],i.forEach((function(t){\"->\"!==t?a?o.children.push(r[t]):n.children.push(r[t]):a=!0})),a&&n.children.unshift(o),n},components:{Prev:{render:function(t){return t(\"button\",{attrs:{type:\"button\",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:\"btn-prev\",on:{click:this.$parent.prev}},[this.$parent.prevText?t(\"span\",[this.$parent.prevText]):t(\"i\",{class:\"el-icon el-icon-arrow-left\"})])}},Next:{render:function(t){return t(\"button\",{attrs:{type:\"button\",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:\"btn-next\",on:{click:this.$parent.next}},[this.$parent.nextText?t(\"span\",[this.$parent.nextText]):t(\"i\",{class:\"el-icon el-icon-arrow-right\"})])}},Sizes:{mixins:[m.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(t,e){Object(v.valueEquals)(t,e)||Array.isArray(t)&&(this.$parent.internalPageSize=t.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(t){var e=this;return t(\"span\",{class:\"el-pagination__sizes\"},[t(\"el-select\",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||\"\",size:\"mini\",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return t(\"el-option\",{attrs:{value:n,label:n+e.t(\"el.pagination.pagesize\")}})}))])])},components:{ElSelect:l.a,ElOption:h.a},methods:{handleChange:function(t){t!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=t=parseInt(t,10),this.$parent.userChangePageSize=!0,this.$parent.$emit(\"update:pageSize\",t),this.$parent.$emit(\"size-change\",t))}}},Jumper:{mixins:[m.a],components:{ElInput:d.a},data:function(){return{userInput:null}},watch:{\"$parent.internalCurrentPage\":function(){this.userInput=null}},methods:{handleKeyup:function(t){var e=t.keyCode,n=t.target;13===e&&this.handleChange(n.value)},handleInput:function(t){this.userInput=t},handleChange:function(t){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(t),this.$parent.emitChange(),this.userInput=null}},render:function(t){return t(\"span\",{class:\"el-pagination__jump\"},[this.t(\"el.pagination.goto\"),t(\"el-input\",{class:\"el-pagination__editor is-in-pagination\",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:\"number\",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t(\"el.pagination.pageClassifier\")])}},Total:{mixins:[m.a],render:function(t){return\"number\"==typeof this.$parent.total?t(\"span\",{class:\"el-pagination__total\"},[this.t(\"el.pagination.total\",{total:this.$parent.total})]):\"\"}},Pager:s},methods:{handleCurrentChange:function(t){this.internalCurrentPage=this.getValidCurrentPage(t),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var t=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit(\"prev-click\",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var t=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit(\"next-click\",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(t){t=parseInt(t,10);var e=void 0;return\"number\"==typeof this.internalPageCount?t<1?e=1:t>this.internalPageCount&&(e=this.internalPageCount):(isNaN(t)||t<1)&&(e=1),(void 0===e&&isNaN(t)||0===e)&&(e=1),void 0===e?t:e},emitChange:function(){var t=this;this.$nextTick((function(){(t.internalCurrentPage!==t.lastEmittedPage||t.userChangePageSize)&&(t.$emit(\"current-change\",t.internalCurrentPage),t.lastEmittedPage=t.internalCurrentPage,t.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return\"number\"==typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):\"number\"==typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(t){this.internalCurrentPage=this.getValidCurrentPage(t)}},pageSize:{immediate:!0,handler:function(t){this.internalPageSize=isNaN(t)?10:t}},internalCurrentPage:{immediate:!0,handler:function(t){this.$emit(\"update:currentPage\",t),this.lastEmittedPage=-1}},internalPageCount:function(t){var e=this.internalCurrentPage;t>0&&0===e?this.internalCurrentPage=1:e>t&&(this.internalCurrentPage=0===t?1:t,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(t){t.component(g.name,g)}},y=g,b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"dialog-fade\"},on:{\"after-enter\":t.afterEnter,\"after-leave\":t.afterLeave}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-dialog__wrapper\",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n(\"div\",{key:t.key,ref:\"dialog\",class:[\"el-dialog\",{\"is-fullscreen\":t.fullscreen,\"el-dialog--center\":t.center},t.customClass],style:t.style,attrs:{role:\"dialog\",\"aria-modal\":\"true\",\"aria-label\":t.title||\"dialog\"}},[n(\"div\",{staticClass:\"el-dialog__header\"},[t._t(\"title\",[n(\"span\",{staticClass:\"el-dialog__title\"},[t._v(t._s(t.title))])]),t.showClose?n(\"button\",{staticClass:\"el-dialog__headerbtn\",attrs:{type:\"button\",\"aria-label\":\"Close\"},on:{click:t.handleClose}},[n(\"i\",{staticClass:\"el-dialog__close el-icon el-icon-close\"})]):t._e()],2),t.rendered?n(\"div\",{staticClass:\"el-dialog__body\"},[t._t(\"default\")],2):t._e(),t.$slots.footer?n(\"div\",{staticClass:\"el-dialog__footer\"},[t._t(\"footer\")],2):t._e()])])])};b._withStripped=!0;var _=n(11),w=n.n(_),x=n(9),k=n.n(x),S=n(3),C=n.n(S),E=o({name:\"ElDialog\",mixins:[w.a,C.a,k.a],props:{title:{type:String,default:\"\"},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:\"\"},top:{type:String,default:\"15vh\"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(t){var e=this;t?(this.closed=!1,this.$emit(\"open\"),this.$el.addEventListener(\"scroll\",this.updatePopper),this.$nextTick((function(){e.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener(\"scroll\",this.updatePopper),this.closed||this.$emit(\"close\"),this.destroyOnClose&&this.$nextTick((function(){e.key++})))}},computed:{style:function(){var t={};return this.fullscreen||(t.marginTop=this.top,this.width&&(t.width=this.width)),t}},methods:{getMigratingConfig:function(){return{props:{size:\"size is removed.\"}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){\"function\"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(t){!1!==t&&(this.$emit(\"update:visible\",!1),this.$emit(\"close\"),this.closed=!0)},updatePopper:function(){this.broadcast(\"ElSelectDropdown\",\"updatePopper\"),this.broadcast(\"ElDropdownMenu\",\"updatePopper\")},afterEnter:function(){this.$emit(\"opened\")},afterLeave:function(){this.$emit(\"closed\")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},b,[],!1,null,null,null);E.options.__file=\"packages/dialog/src/component.vue\";var D=E.exports;D.install=function(t){t.component(D.name,D)};var A=D,O=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:t.close,expression:\"close\"}],staticClass:\"el-autocomplete\",attrs:{\"aria-haspopup\":\"listbox\",role:\"combobox\",\"aria-expanded\":t.suggestionVisible,\"aria-owns\":t.id}},[n(\"el-input\",t._b({ref:\"input\",on:{input:t.handleInput,change:t.handleChange,focus:t.handleFocus,blur:t.handleBlur,clear:t.handleClear},nativeOn:{keydown:[function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"up\",38,e.key,[\"Up\",\"ArrowUp\"]))return null;e.preventDefault(),t.highlight(t.highlightedIndex-1)},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"down\",40,e.key,[\"Down\",\"ArrowDown\"]))return null;e.preventDefault(),t.highlight(t.highlightedIndex+1)},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleKeyEnter(e)},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"tab\",9,e.key,\"Tab\")?null:t.close(e)}]}},\"el-input\",[t.$props,t.$attrs],!1),[t.$slots.prepend?n(\"template\",{slot:\"prepend\"},[t._t(\"prepend\")],2):t._e(),t.$slots.append?n(\"template\",{slot:\"append\"},[t._t(\"append\")],2):t._e(),t.$slots.prefix?n(\"template\",{slot:\"prefix\"},[t._t(\"prefix\")],2):t._e(),t.$slots.suffix?n(\"template\",{slot:\"suffix\"},[t._t(\"suffix\")],2):t._e()],2),n(\"el-autocomplete-suggestions\",{ref:\"suggestions\",class:[t.popperClass?t.popperClass:\"\"],attrs:{\"visible-arrow\":\"\",\"popper-options\":t.popperOptions,\"append-to-body\":t.popperAppendToBody,placement:t.placement,id:t.id}},t._l(t.suggestions,(function(e,r){return n(\"li\",{key:r,class:{highlighted:t.highlightedIndex===r},attrs:{id:t.id+\"-item-\"+r,role:\"option\",\"aria-selected\":t.highlightedIndex===r},on:{click:function(n){t.select(e)}}},[t._t(\"default\",[t._v(\"\\n        \"+t._s(e[t.valueKey])+\"\\n      \")],{item:e})],2)})),0)],1)};O._withStripped=!0;var M=n(17),T=n.n(M),I=n(10),P=n.n(I),F=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"after-leave\":t.doDestroy}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.showPopper,expression:\"showPopper\"}],staticClass:\"el-autocomplete-suggestion el-popper\",class:{\"is-loading\":!t.parent.hideLoading&&t.parent.loading},style:{width:t.dropdownWidth},attrs:{role:\"region\"}},[n(\"el-scrollbar\",{attrs:{tag:\"ul\",\"wrap-class\":\"el-autocomplete-suggestion__wrap\",\"view-class\":\"el-autocomplete-suggestion__list\"}},[!t.parent.hideLoading&&t.parent.loading?n(\"li\",[n(\"i\",{staticClass:\"el-icon-loading\"})]):t._t(\"default\")],2)],1)])};F._withStripped=!0;var j=n(5),N=n.n(j),L=n(18),B=n.n(L),$=o({components:{ElScrollbar:B.a},mixins:[N.a,C.a],componentName:\"ElAutocompleteSuggestions\",data:function(){return{parent:this.$parent,dropdownWidth:\"\"}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(t){this.dispatch(\"ElAutocomplete\",\"item-click\",t)}},updated:function(){var t=this;this.$nextTick((function(e){t.popperJS&&t.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(\".el-autocomplete-suggestion__list\"),this.referenceList.setAttribute(\"role\",\"listbox\"),this.referenceList.setAttribute(\"id\",this.id)},created:function(){var t=this;this.$on(\"visible\",(function(e,n){t.dropdownWidth=n+\"px\",t.showPopper=e}))}},F,[],!1,null,null,null);$.options.__file=\"packages/autocomplete/src/autocomplete-suggestions.vue\";var z=$.exports,R=n(23),U=n.n(R),V=o({name:\"ElAutocomplete\",mixins:[C.a,U()(\"input\"),k.a],inheritAttrs:!1,componentName:\"ElAutocomplete\",components:{ElInput:d.a,ElAutocompleteSuggestions:z},directives:{Clickoutside:P.a},props:{valueKey:{type:String,default:\"value\"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:\"bottom-start\"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var t=this.suggestions;return(Array.isArray(t)&&t.length>0||this.loading)&&this.activated},id:function(){return\"el-autocomplete-\"+Object(v.generateId)()}},watch:{suggestionVisible:function(t){var e=this.getInput();e&&this.broadcast(\"ElAutocompleteSuggestions\",\"visible\",[t,e.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{\"custom-item\":\"custom-item is removed, use scoped slot instead.\",props:\"props is removed, use value-key instead.\"}}},getData:function(t){var e=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(t,(function(t){e.loading=!1,e.suggestionDisabled||Array.isArray(t)&&(e.suggestions=t,e.highlightedIndex=e.highlightFirstItem?0:-1)})))},handleInput:function(t){if(this.$emit(\"input\",t),this.suggestionDisabled=!1,!this.triggerOnFocus&&!t)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(t)},handleChange:function(t){this.$emit(\"change\",t)},handleFocus:function(t){this.activated=!0,this.$emit(\"focus\",t),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(t){this.$emit(\"blur\",t)},handleClear:function(){this.activated=!1,this.$emit(\"clear\")},close:function(t){this.activated=!1},handleKeyEnter:function(t){var e=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(t.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit(\"select\",{value:this.value}),this.$nextTick((function(t){e.suggestions=[],e.highlightedIndex=-1})))},select:function(t){var e=this;this.$emit(\"input\",t[this.valueKey]),this.$emit(\"select\",t),this.$nextTick((function(t){e.suggestions=[],e.highlightedIndex=-1}))},highlight:function(t){if(this.suggestionVisible&&!this.loading)if(t<0)this.highlightedIndex=-1;else{t>=this.suggestions.length&&(t=this.suggestions.length-1);var e=this.$refs.suggestions.$el.querySelector(\".el-autocomplete-suggestion__wrap\"),n=e.querySelectorAll(\".el-autocomplete-suggestion__list li\")[t],r=e.scrollTop,i=n.offsetTop;i+n.scrollHeight>r+e.clientHeight&&(e.scrollTop+=n.scrollHeight),i<r&&(e.scrollTop-=n.scrollHeight),this.highlightedIndex=t,this.getInput().setAttribute(\"aria-activedescendant\",this.id+\"-item-\"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var t=this;this.debouncedGetData=T()(this.debounce,this.getData),this.$on(\"item-click\",(function(e){t.select(e)}));var e=this.getInput();e.setAttribute(\"role\",\"textbox\"),e.setAttribute(\"aria-autocomplete\",\"list\"),e.setAttribute(\"aria-controls\",\"id\"),e.setAttribute(\"aria-activedescendant\",this.id+\"-item-\"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},O,[],!1,null,null,null);V.options.__file=\"packages/autocomplete/src/autocomplete.vue\";var H=V.exports;H.install=function(t){t.component(H.name,H)};var G=H,q=n(13),W=n.n(q),Y=n(29),Z=n.n(Y),K={name:\"ElDropdown\",componentName:\"ElDropdown\",mixins:[C.a,k.a],directives:{Clickoutside:P.a},components:{ElButton:W.a,ElButtonGroup:Z.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:\"hover\"},type:String,size:{type:String,default:\"\"},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:\"bottom-end\"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:\"dropdown-menu-\"+Object(v.generateId)()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on(\"menu-item-click\",this.handleMenuItemClick)},watch:{visible:function(t){this.broadcast(\"ElDropdownMenu\",\"visible\",t),this.$emit(\"visible-change\",t)},focusing:function(t){var e=this.$el.querySelector(\".el-dropdown-selfdefine\");e&&(t?e.className+=\" focusing\":e.className=e.className.replace(\"focusing\",\"\"))}},methods:{getMigratingConfig:function(){return{props:{\"menu-align\":\"menu-align is renamed to placement.\"}}},show:function(){var t=this;this.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.visible=!0}),\"click\"===this.trigger?0:this.showTimeout))},hide:function(){var t=this;this.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.visible=!1}),\"click\"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(t){var e=t.keyCode;[38,40].indexOf(e)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),t.preventDefault(),t.stopPropagation()):13===e?this.handleClick():[9,27].indexOf(e)>-1&&this.hide()},handleItemKeyDown:function(t){var e=t.keyCode,n=t.target,r=this.menuItemsArray.indexOf(n),i=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(e)>-1?(o=38===e?0!==r?r-1:0:r<i?r+1:i,this.removeTabindex(),this.resetTabindex(this.menuItems[o]),this.menuItems[o].focus(),t.preventDefault(),t.stopPropagation()):13===e?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(e)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(t){this.removeTabindex(),t.setAttribute(\"tabindex\",\"0\")},removeTabindex:function(){this.triggerElm.setAttribute(\"tabindex\",\"-1\"),this.menuItemsArray.forEach((function(t){t.setAttribute(\"tabindex\",\"-1\")}))},initAria:function(){this.dropdownElm.setAttribute(\"id\",this.listId),this.triggerElm.setAttribute(\"aria-haspopup\",\"list\"),this.triggerElm.setAttribute(\"aria-controls\",this.listId),this.splitButton||(this.triggerElm.setAttribute(\"role\",\"button\"),this.triggerElm.setAttribute(\"tabindex\",this.tabindex),this.triggerElm.setAttribute(\"class\",(this.triggerElm.getAttribute(\"class\")||\"\")+\" el-dropdown-selfdefine\"))},initEvent:function(){var t=this,e=this.trigger,n=this.show,r=this.hide,i=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var u=this.dropdownElm;this.triggerElm.addEventListener(\"keydown\",a),u.addEventListener(\"keydown\",s,!0),o||(this.triggerElm.addEventListener(\"focus\",(function(){t.focusing=!0})),this.triggerElm.addEventListener(\"blur\",(function(){t.focusing=!1})),this.triggerElm.addEventListener(\"click\",(function(){t.focusing=!1}))),\"hover\"===e?(this.triggerElm.addEventListener(\"mouseenter\",n),this.triggerElm.addEventListener(\"mouseleave\",r),u.addEventListener(\"mouseenter\",n),u.addEventListener(\"mouseleave\",r)):\"click\"===e&&this.triggerElm.addEventListener(\"click\",i)},handleMenuItemClick:function(t,e){this.hideOnClick&&(this.visible=!1),this.$emit(\"command\",t,e)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll(\"[tabindex='-1']\"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(t){var e=this,n=this.hide,r=this.splitButton,i=this.type,o=this.dropdownSize,a=this.disabled,s=null;if(r)s=t(\"el-button-group\",[t(\"el-button\",{attrs:{type:i,size:o,disabled:a},nativeOn:{click:function(t){e.$emit(\"click\",t),n()}}},[this.$slots.default]),t(\"el-button\",{ref:\"trigger\",attrs:{type:i,size:o,disabled:a},class:\"el-dropdown__caret-button\"},[t(\"i\",{class:\"el-dropdown__icon el-icon-arrow-down\"})])]);else{var u=(s=this.$slots.default)[0].data||{},l=u.attrs,c=void 0===l?{}:l;a&&!c.disabled&&(c.disabled=!0,u.attrs=c)}var h=a?null:this.$slots.dropdown;return t(\"div\",{class:\"el-dropdown\",directives:[{name:\"clickoutside\",value:n}],attrs:{\"aria-disabled\":a}},[s,h])}},X=o(K,undefined,undefined,!1,null,null,null);X.options.__file=\"packages/dropdown/src/dropdown.vue\";var J=X.exports;J.install=function(t){t.component(J.name,J)};var Q=J,tt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"after-leave\":t.doDestroy}},[n(\"ul\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.showPopper,expression:\"showPopper\"}],staticClass:\"el-dropdown-menu el-popper\",class:[t.size&&\"el-dropdown-menu--\"+t.size]},[t._t(\"default\")],2)])};tt._withStripped=!0;var et=o({name:\"ElDropdownMenu\",componentName:\"ElDropdownMenu\",mixins:[N.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:[\"dropdown\"],created:function(){var t=this;this.$on(\"updatePopper\",(function(){t.showPopper&&t.updatePopper()})),this.$on(\"visible\",(function(e){t.showPopper=e}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{\"dropdown.placement\":{immediate:!0,handler:function(t){this.currentPlacement=t}}}},tt,[],!1,null,null,null);et.options.__file=\"packages/dropdown/src/dropdown-menu.vue\";var nt=et.exports;nt.install=function(t){t.component(nt.name,nt)};var rt=nt,it=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"li\",{staticClass:\"el-dropdown-menu__item\",class:{\"is-disabled\":t.disabled,\"el-dropdown-menu__item--divided\":t.divided},attrs:{\"aria-disabled\":t.disabled,tabindex:t.disabled?null:-1},on:{click:t.handleClick}},[t.icon?n(\"i\",{class:t.icon}):t._e(),t._t(\"default\")],2)};it._withStripped=!0;var ot=o({name:\"ElDropdownItem\",mixins:[C.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(t){this.dispatch(\"ElDropdown\",\"menu-item-click\",[this.command,this])}}},it,[],!1,null,null,null);ot.options.__file=\"packages/dropdown/src/dropdown-item.vue\";var at=ot.exports;at.install=function(t){t.component(at.name,at)};var st=at,ut=ut||{};ut.Utils=ut.Utils||{},ut.Utils.focusFirstDescendant=function(t){for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(ut.Utils.attemptFocus(n)||ut.Utils.focusFirstDescendant(n))return!0}return!1},ut.Utils.focusLastDescendant=function(t){for(var e=t.childNodes.length-1;e>=0;e--){var n=t.childNodes[e];if(ut.Utils.attemptFocus(n)||ut.Utils.focusLastDescendant(n))return!0}return!1},ut.Utils.attemptFocus=function(t){if(!ut.Utils.isFocusable(t))return!1;ut.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return ut.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},ut.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute(\"tabIndex\"))return!0;if(t.disabled)return!1;switch(t.nodeName){case\"A\":return!!t.href&&\"ignore\"!==t.rel;case\"INPUT\":return\"hidden\"!==t.type&&\"file\"!==t.type;case\"BUTTON\":case\"SELECT\":case\"TEXTAREA\":return!0;default:return!1}},ut.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?\"MouseEvents\":/^key/.test(e)?\"KeyboardEvent\":\"HTMLEvents\";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[e].concat(o)),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent(\"on\"+e,r),t},ut.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var lt=ut.Utils,ct=function(t,e){this.domNode=e,this.parent=t,this.subMenuItems=[],this.subIndex=0,this.init()};ct.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll(\"li\"),this.addListeners()},ct.prototype.gotoSubIndex=function(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t},ct.prototype.addListeners=function(){var t=this,e=lt.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(function(r){r.addEventListener(\"keydown\",(function(r){var i=!1;switch(r.keyCode){case e.down:t.gotoSubIndex(t.subIndex+1),i=!0;break;case e.up:t.gotoSubIndex(t.subIndex-1),i=!0;break;case e.tab:lt.triggerEvent(n,\"mouseleave\");break;case e.enter:case e.space:i=!0,r.currentTarget.click()}return i&&(r.preventDefault(),r.stopPropagation()),!1}))}))};var ht=ct,ft=function(t){this.domNode=t,this.submenu=null,this.init()};ft.prototype.init=function(){this.domNode.setAttribute(\"tabindex\",\"0\");var t=this.domNode.querySelector(\".el-menu\");t&&(this.submenu=new ht(this,t)),this.addListeners()},ft.prototype.addListeners=function(){var t=this,e=lt.keys;this.domNode.addEventListener(\"keydown\",(function(n){var r=!1;switch(n.keyCode){case e.down:lt.triggerEvent(n.currentTarget,\"mouseenter\"),t.submenu&&t.submenu.gotoSubIndex(0),r=!0;break;case e.up:lt.triggerEvent(n.currentTarget,\"mouseenter\"),t.submenu&&t.submenu.gotoSubIndex(t.submenu.subMenuItems.length-1),r=!0;break;case e.tab:lt.triggerEvent(n.currentTarget,\"mouseleave\");break;case e.enter:case e.space:r=!0,n.currentTarget.click()}r&&n.preventDefault()}))};var dt=ft,pt=function(t){this.domNode=t,this.init()};pt.prototype.init=function(){var t=this.domNode.childNodes;[].filter.call(t,(function(t){return 1===t.nodeType})).forEach((function(t){new dt(t)}))};var mt=pt,vt=n(1),gt={name:\"ElMenu\",render:function(t){var e=t(\"ul\",{attrs:{role:\"menubar\"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||\"\"},class:{\"el-menu--horizontal\":\"horizontal\"===this.mode,\"el-menu--collapse\":this.collapse,\"el-menu\":!0}},[this.$slots.default]);return this.collapseTransition?t(\"el-menu-collapse-transition\",[e]):e},componentName:\"ElMenu\",mixins:[C.a,k.a],provide:function(){return{rootMenu:this}},components:{\"el-menu-collapse-transition\":{functional:!0,render:function(t,e){return t(\"transition\",{props:{mode:\"out-in\"},on:{beforeEnter:function(t){t.style.opacity=.2},enter:function(t){Object(vt.addClass)(t,\"el-opacity-transition\"),t.style.opacity=1},afterEnter:function(t){Object(vt.removeClass)(t,\"el-opacity-transition\"),t.style.opacity=\"\"},beforeLeave:function(t){t.dataset||(t.dataset={}),Object(vt.hasClass)(t,\"el-menu--collapse\")?(Object(vt.removeClass)(t,\"el-menu--collapse\"),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth,Object(vt.addClass)(t,\"el-menu--collapse\")):(Object(vt.addClass)(t,\"el-menu--collapse\"),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth,Object(vt.removeClass)(t,\"el-menu--collapse\")),t.style.width=t.scrollWidth+\"px\",t.style.overflow=\"hidden\"},leave:function(t){Object(vt.addClass)(t,\"horizontal-collapse-transition\"),t.style.width=t.dataset.scrollWidth+\"px\"}}},e.children)}}},props:{mode:{type:String,default:\"vertical\"},defaultActive:{type:String,default:\"\"},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:\"hover\"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):\"\"},isMenuPopup:function(){return\"horizontal\"===this.mode||\"vertical\"===this.mode&&this.collapse}},watch:{defaultActive:function(t){this.items[t]||(this.activeIndex=null),this.updateActiveIndex(t)},defaultOpeneds:function(t){this.collapse||(this.openedMenus=t)},collapse:function(t){t&&(this.openedMenus=[]),this.broadcast(\"ElSubmenu\",\"toggle-collapse\",t)}},methods:{updateActiveIndex:function(t){var e=this.items[t]||this.items[this.activeIndex]||this.items[this.defaultActive];e?(this.activeIndex=e.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:\"theme is removed.\"}}},getColorChannels:function(t){if(t=t.replace(\"#\",\"\"),/^[0-9a-fA-F]{3}$/.test(t)){t=t.split(\"\");for(var e=2;e>=0;e--)t.splice(e,0,t[e]);t=t.join(\"\")}return/^[0-9a-fA-F]{6}$/.test(t)?{red:parseInt(t.slice(0,2),16),green:parseInt(t.slice(2,4),16),blue:parseInt(t.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(t,e){var n=this.getColorChannels(t),r=n.red,i=n.green,o=n.blue;return e>0?(r*=1-e,i*=1-e,o*=1-e):(r+=(255-r)*e,i+=(255-i)*e,o+=(255-o)*e),\"rgb(\"+Math.round(r)+\", \"+Math.round(i)+\", \"+Math.round(o)+\")\"},addItem:function(t){this.$set(this.items,t.index,t)},removeItem:function(t){delete this.items[t.index]},addSubmenu:function(t){this.$set(this.submenus,t.index,t)},removeSubmenu:function(t){delete this.submenus[t.index]},openMenu:function(t,e){var n=this.openedMenus;-1===n.indexOf(t)&&(this.uniqueOpened&&(this.openedMenus=n.filter((function(t){return-1!==e.indexOf(t)}))),this.openedMenus.push(t))},closeMenu:function(t){var e=this.openedMenus.indexOf(t);-1!==e&&this.openedMenus.splice(e,1)},handleSubmenuClick:function(t){var e=t.index,n=t.indexPath;-1!==this.openedMenus.indexOf(e)?(this.closeMenu(e),this.$emit(\"close\",e,n)):(this.openMenu(e,n),this.$emit(\"open\",e,n))},handleItemClick:function(t){var e=this,n=t.index,r=t.indexPath,i=this.activeIndex,o=null!==t.index;o&&(this.activeIndex=t.index),this.$emit(\"select\",n,r,t),(\"horizontal\"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(t,(function(t){e.activeIndex=i,!t||t.name}))},initOpenedMenu:function(){var t=this,e=this.activeIndex,n=this.items[e];n&&\"horizontal\"!==this.mode&&!this.collapse&&n.indexPath.forEach((function(e){var n=t.submenus[e];n&&t.openMenu(e,n.indexPath)}))},routeToItem:function(t,e){var n=t.route||t.index;try{this.$router.push(n,(function(){}),e)}catch(t){}},open:function(t){var e=this,n=this.submenus[t.toString()].indexPath;n.forEach((function(t){return e.openMenu(t,n)}))},close:function(t){this.closeMenu(t)}},mounted:function(){this.initOpenedMenu(),this.$on(\"item-click\",this.handleItemClick),this.$on(\"submenu-click\",this.handleSubmenuClick),\"horizontal\"===this.mode&&new mt(this.$el),this.$watch(\"items\",this.updateActiveIndex)}},yt=o(gt,undefined,undefined,!1,null,null,null);yt.options.__file=\"packages/menu/src/menu.vue\";var bt=yt.exports;bt.install=function(t){t.component(bt.name,bt)};var _t=bt,wt=n(21),xt=n.n(wt),kt={inject:[\"rootMenu\"],computed:{indexPath:function(){for(var t=[this.index],e=this.$parent;\"ElMenu\"!==e.$options.componentName;)e.index&&t.unshift(e.index),e=e.$parent;return t},parentMenu:function(){for(var t=this.$parent;t&&-1===[\"ElMenu\",\"ElSubmenu\"].indexOf(t.$options.componentName);)t=t.$parent;return t},paddingStyle:function(){if(\"vertical\"!==this.rootMenu.mode)return{};var t=20,e=this.$parent;if(this.rootMenu.collapse)t=20;else for(;e&&\"ElMenu\"!==e.$options.componentName;)\"ElSubmenu\"===e.$options.componentName&&(t+=20),e=e.$parent;return{paddingLeft:t+\"px\"}}}},St={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:N.a.props.offset,boundariesPadding:N.a.props.boundariesPadding,popperOptions:N.a.props.popperOptions},data:N.a.data,methods:N.a.methods,beforeDestroy:N.a.beforeDestroy,deactivated:N.a.deactivated},Ct={name:\"ElSubmenu\",componentName:\"ElSubmenu\",mixins:[kt,C.a,St],components:{ElCollapseTransition:xt.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(t){var e=this;this.isMenuPopup&&this.$nextTick((function(t){e.updatePopper()}))}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?\"el-zoom-in-left\":\"el-zoom-in-top\"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var t=!1,e=this.submenus,n=this.items;return Object.keys(n).forEach((function(e){n[e].active&&(t=!0)})),Object.keys(e).forEach((function(n){e[n].active&&(t=!0)})),t},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||\"\"},activeTextColor:function(){return this.rootMenu.activeTextColor||\"\"},textColor:function(){return this.rootMenu.textColor||\"\"},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return\"horizontal\"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:\"\":\"transparent\",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){for(var t=!0,e=this.$parent;e&&e!==this.rootMenu;){if([\"ElSubmenu\",\"ElMenuItemGroup\"].indexOf(e.$options.componentName)>-1){t=!1;break}e=e.$parent}return t}},methods:{handleCollapseToggle:function(t){t?this.initPopper():this.doDestroy()},addItem:function(t){this.$set(this.items,t.index,t)},removeItem:function(t){delete this.items[t.index]},addSubmenu:function(t){this.$set(this.submenus,t.index,t)},removeSubmenu:function(t){delete this.submenus[t.index]},handleClick:function(){var t=this.rootMenu,e=this.disabled;\"hover\"===t.menuTrigger&&\"horizontal\"===t.mode||t.collapse&&\"vertical\"===t.mode||e||this.dispatch(\"ElMenu\",\"submenu-click\",this)},handleMouseenter:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if(\"ActiveXObject\"in window||\"focus\"!==t.type||t.relatedTarget){var r=this.rootMenu,i=this.disabled;\"click\"===r.menuTrigger&&\"horizontal\"===r.mode||!r.collapse&&\"vertical\"===r.mode||i||(this.dispatch(\"ElSubmenu\",\"mouse-enter-child\"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.rootMenu.openMenu(e.index,e.indexPath)}),n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent(\"mouseenter\")))}},handleMouseleave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;\"click\"===n.menuTrigger&&\"horizontal\"===n.mode||!n.collapse&&\"vertical\"===n.mode||(this.dispatch(\"ElSubmenu\",\"mouse-leave-child\"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){!t.mouseInChild&&t.rootMenu.closeMenu(t.index)}),this.hideTimeout),this.appendToBody&&e&&\"ElSubmenu\"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if(\"horizontal\"!==this.mode||this.rootMenu.backgroundColor){var t=this.$refs[\"submenu-title\"];t&&(t.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if(\"horizontal\"!==this.mode||this.rootMenu.backgroundColor){var t=this.$refs[\"submenu-title\"];t&&(t.style.backgroundColor=this.rootMenu.backgroundColor||\"\")}},updatePlacement:function(){this.currentPlacement=\"horizontal\"===this.mode&&this.isFirstLevel?\"bottom-start\":\"right-start\"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var t=this;this.$on(\"toggle-collapse\",this.handleCollapseToggle),this.$on(\"mouse-enter-child\",(function(){t.mouseInChild=!0,clearTimeout(t.timeout)})),this.$on(\"mouse-leave-child\",(function(){t.mouseInChild=!1,clearTimeout(t.timeout)}))},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(t){var e=this,n=this.active,r=this.opened,i=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,u=this.currentPlacement,l=this.menuTransitionName,c=this.mode,h=this.disabled,f=this.popperClass,d=this.$slots,p=this.isFirstLevel,m=t(\"transition\",{attrs:{name:l}},[t(\"div\",{ref:\"menu\",directives:[{name:\"show\",value:r}],class:[\"el-menu--\"+c,f],on:{mouseenter:function(t){return e.handleMouseenter(t,100)},mouseleave:function(){return e.handleMouseleave(!0)},focus:function(t){return e.handleMouseenter(t,100)}}},[t(\"ul\",{attrs:{role:\"menu\"},class:[\"el-menu el-menu--popup\",\"el-menu--popup-\"+u],style:{backgroundColor:s.backgroundColor||\"\"}},[d.default])])]),v=t(\"el-collapse-transition\",[t(\"ul\",{attrs:{role:\"menu\"},class:\"el-menu el-menu--inline\",directives:[{name:\"show\",value:r}],style:{backgroundColor:s.backgroundColor||\"\"}},[d.default])]),g=\"horizontal\"===s.mode&&p||\"vertical\"===s.mode&&!s.collapse?\"el-icon-arrow-down\":\"el-icon-arrow-right\";return t(\"li\",{class:{\"el-submenu\":!0,\"is-active\":n,\"is-opened\":r,\"is-disabled\":h},attrs:{role:\"menuitem\",\"aria-haspopup\":\"true\",\"aria-expanded\":r},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return e.handleMouseleave(!1)},focus:this.handleMouseenter}},[t(\"div\",{class:\"el-submenu__title\",ref:\"submenu-title\",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[i,o,{backgroundColor:a}]},[d.title,t(\"i\",{class:[\"el-submenu__icon-arrow\",g]})]),this.isMenuPopup?m:v])}},Et=o(Ct,undefined,undefined,!1,null,null,null);Et.options.__file=\"packages/menu/src/submenu.vue\";var Dt=Et.exports;Dt.install=function(t){t.component(Dt.name,Dt)};var At=Dt,Ot=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"li\",{staticClass:\"el-menu-item\",class:{\"is-active\":t.active,\"is-disabled\":t.disabled},style:[t.paddingStyle,t.itemStyle,{backgroundColor:t.backgroundColor}],attrs:{role:\"menuitem\",tabindex:\"-1\"},on:{click:t.handleClick,mouseenter:t.onMouseEnter,focus:t.onMouseEnter,blur:t.onMouseLeave,mouseleave:t.onMouseLeave}},[\"ElMenu\"===t.parentMenu.$options.componentName&&t.rootMenu.collapse&&t.$slots.title?n(\"el-tooltip\",{attrs:{effect:\"dark\",placement:\"right\"}},[n(\"div\",{attrs:{slot:\"content\"},slot:\"content\"},[t._t(\"title\")],2),n(\"div\",{staticStyle:{position:\"absolute\",left:\"0\",top:\"0\",height:\"100%\",width:\"100%\",display:\"inline-block\",\"box-sizing\":\"border-box\",padding:\"0 20px\"}},[t._t(\"default\")],2)]):[t._t(\"default\"),t._t(\"title\")]],2)};Ot._withStripped=!0;var Mt=n(26),Tt=n.n(Mt),It=o({name:\"ElMenuItem\",componentName:\"ElMenuItem\",mixins:[kt,C.a],components:{ElTooltip:Tt.a},props:{index:{default:null,validator:function(t){return\"string\"==typeof t||null===t}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||\"\"},activeTextColor:function(){return this.rootMenu.activeTextColor||\"\"},textColor:function(){return this.rootMenu.textColor||\"\"},mode:function(){return this.rootMenu.mode},itemStyle:function(){var t={color:this.active?this.activeTextColor:this.textColor};return\"horizontal\"!==this.mode||this.isNested||(t.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:\"\":\"transparent\"),t},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){(\"horizontal\"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){(\"horizontal\"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch(\"ElMenu\",\"item-click\",this),this.$emit(\"click\",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},Ot,[],!1,null,null,null);It.options.__file=\"packages/menu/src/menu-item.vue\";var Pt=It.exports;Pt.install=function(t){t.component(Pt.name,Pt)};var Ft=Pt,jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"li\",{staticClass:\"el-menu-item-group\"},[n(\"div\",{staticClass:\"el-menu-item-group__title\",style:{paddingLeft:t.levelPadding+\"px\"}},[t.$slots.title?t._t(\"title\"):[t._v(t._s(t.title))]],2),n(\"ul\",[t._t(\"default\")],2)])};jt._withStripped=!0;var Nt=o({name:\"ElMenuItemGroup\",componentName:\"ElMenuItemGroup\",inject:[\"rootMenu\"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var t=20,e=this.$parent;if(this.rootMenu.collapse)return 20;for(;e&&\"ElMenu\"!==e.$options.componentName;)\"ElSubmenu\"===e.$options.componentName&&(t+=20),e=e.$parent;return t}}},jt,[],!1,null,null,null);Nt.options.__file=\"packages/menu/src/menu-item-group.vue\";var Lt=Nt.exports;Lt.install=function(t){t.component(Lt.name,Lt)};var Bt=Lt,$t=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{class:[\"textarea\"===t.type?\"el-textarea\":\"el-input\",t.inputSize?\"el-input--\"+t.inputSize:\"\",{\"is-disabled\":t.inputDisabled,\"is-exceed\":t.inputExceed,\"el-input-group\":t.$slots.prepend||t.$slots.append,\"el-input-group--append\":t.$slots.append,\"el-input-group--prepend\":t.$slots.prepend,\"el-input--prefix\":t.$slots.prefix||t.prefixIcon,\"el-input--suffix\":t.$slots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[\"textarea\"!==t.type?[t.$slots.prepend?n(\"div\",{staticClass:\"el-input-group__prepend\"},[t._t(\"prepend\")],2):t._e(),\"textarea\"!==t.type?n(\"input\",t._b({ref:\"input\",staticClass:\"el-input__inner\",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?\"text\":\"password\":t.type,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,\"aria-label\":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},\"input\",t.$attrs,!1)):t._e(),t.$slots.prefix||t.prefixIcon?n(\"span\",{staticClass:\"el-input__prefix\"},[t._t(\"prefix\"),t.prefixIcon?n(\"i\",{staticClass:\"el-input__icon\",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?n(\"span\",{staticClass:\"el-input__suffix\"},[n(\"span\",{staticClass:\"el-input__suffix-inner\"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t(\"suffix\"),t.suffixIcon?n(\"i\",{staticClass:\"el-input__icon\",class:t.suffixIcon}):t._e()],t.showClear?n(\"i\",{staticClass:\"el-input__icon el-icon-circle-close el-input__clear\",on:{mousedown:function(t){t.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?n(\"i\",{staticClass:\"el-input__icon el-icon-view el-input__clear\",on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?n(\"span\",{staticClass:\"el-input__count\"},[n(\"span\",{staticClass:\"el-input__count-inner\"},[t._v(\"\\n            \"+t._s(t.textLength)+\"/\"+t._s(t.upperLimit)+\"\\n          \")])]):t._e()],2),t.validateState?n(\"i\",{staticClass:\"el-input__icon\",class:[\"el-input__validateIcon\",t.validateIcon]}):t._e()]):t._e(),t.$slots.append?n(\"div\",{staticClass:\"el-input-group__append\"},[t._t(\"append\")],2):t._e()]:n(\"textarea\",t._b({ref:\"textarea\",staticClass:\"el-textarea__inner\",style:t.textareaStyle,attrs:{tabindex:t.tabindex,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,\"aria-label\":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},\"textarea\",t.$attrs,!1)),t.isWordLimitVisible&&\"textarea\"===t.type?n(\"span\",{staticClass:\"el-input__count\"},[t._v(t._s(t.textLength)+\"/\"+t._s(t.upperLimit))]):t._e()],2)};$t._withStripped=!0;var zt=void 0,Rt=[\"letter-spacing\",\"line-height\",\"padding-top\",\"padding-bottom\",\"font-family\",\"font-weight\",\"font-size\",\"text-rendering\",\"text-transform\",\"width\",\"text-indent\",\"padding-left\",\"padding-right\",\"border-width\",\"box-sizing\"];function Ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;zt||(zt=document.createElement(\"textarea\"),document.body.appendChild(zt));var r=function(t){var e=window.getComputedStyle(t),n=e.getPropertyValue(\"box-sizing\"),r=parseFloat(e.getPropertyValue(\"padding-bottom\"))+parseFloat(e.getPropertyValue(\"padding-top\")),i=parseFloat(e.getPropertyValue(\"border-bottom-width\"))+parseFloat(e.getPropertyValue(\"border-top-width\"));return{contextStyle:Rt.map((function(t){return t+\":\"+e.getPropertyValue(t)})).join(\";\"),paddingSize:r,borderSize:i,boxSizing:n}}(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;zt.setAttribute(\"style\",s+\";\\n  height:0 !important;\\n  visibility:hidden !important;\\n  overflow:hidden !important;\\n  position:absolute !important;\\n  z-index:-1000 !important;\\n  top:0 !important;\\n  right:0 !important\\n\"),zt.value=t.value||t.placeholder||\"\";var u=zt.scrollHeight,l={};\"border-box\"===a?u+=o:\"content-box\"===a&&(u-=i),zt.value=\"\";var c=zt.scrollHeight-i;if(null!==e){var h=c*e;\"border-box\"===a&&(h=h+i+o),u=Math.max(h,u),l.minHeight=h+\"px\"}if(null!==n){var f=c*n;\"border-box\"===a&&(f=f+i+o),u=Math.min(f,u)}return l.height=u+\"px\",zt.parentNode&&zt.parentNode.removeChild(zt),zt=null,l}var Vt=n(7),Ht=n.n(Vt),Gt=n(19),qt=o({name:\"ElInput\",componentName:\"ElInput\",mixins:[C.a,k.a],inheritAttrs:!1,inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:\"text\"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:\"off\"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:\"\"},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:\"el-icon-loading\",success:\"el-icon-circle-check\",error:\"el-icon-circle-close\"}[this.validateState]},textareaStyle:function(){return Ht()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?\"\":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&(\"text\"===this.type||\"textarea\"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return\"number\"==typeof this.value?String(this.value).length:(this.value||\"\").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch(\"ElFormItem\",\"el.form.change\",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick((function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:\"icon is removed, use suffix-icon / prefix-icon instead.\",\"on-icon-click\":\"on-icon-click is removed.\"},events:{click:\"click is removed.\"}}},handleBlur:function(t){this.focused=!1,this.$emit(\"blur\",t),this.validateEvent&&this.dispatch(\"ElFormItem\",\"el.form.blur\",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize;if(\"textarea\"===this.type)if(t){var e=t.minRows,n=t.maxRows;this.textareaCalcStyle=Ut(this.$refs.textarea,e,n)}else this.textareaCalcStyle={minHeight:Ut(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit(\"focus\",t)},handleCompositionStart:function(t){this.$emit(\"compositionstart\",t),this.isComposing=!0},handleCompositionUpdate:function(t){this.$emit(\"compositionupdate\",t);var e=t.target.value,n=e[e.length-1]||\"\";this.isComposing=!Object(Gt.isKorean)(n)},handleCompositionEnd:function(t){this.$emit(\"compositionend\",t),this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit(\"input\",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit(\"change\",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(\".el-input__\"+t)||[]);if(e.length){for(var n=null,r=0;r<e.length;r++)if(e[r].parentNode===this.$el){n=e[r];break}if(n){var i={suffix:\"append\",prefix:\"prepend\"}[t];this.$slots[i]?n.style.transform=\"translateX(\"+(\"suffix\"===t?\"-\":\"\")+this.$el.querySelector(\".el-input-group__\"+i).offsetWidth+\"px)\":n.removeAttribute(\"style\")}}},updateIconOffset:function(){this.calcIconOffset(\"prefix\"),this.calcIconOffset(\"suffix\")},clear:function(){this.$emit(\"input\",\"\"),this.$emit(\"change\",\"\"),this.$emit(\"clear\")},handlePasswordVisible:function(){var t=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){t.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on(\"inputSelect\",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},$t,[],!1,null,null,null);qt.options.__file=\"packages/input/src/input.vue\";var Wt=qt.exports;Wt.install=function(t){t.component(Wt.name,Wt)};var Yt=Wt,Zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{class:[\"el-input-number\",t.inputNumberSize?\"el-input-number--\"+t.inputNumberSize:\"\",{\"is-disabled\":t.inputNumberDisabled},{\"is-without-controls\":!t.controls},{\"is-controls-right\":t.controlsAtRight}],on:{dragstart:function(t){t.preventDefault()}}},[t.controls?n(\"span\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:t.decrease,expression:\"decrease\"}],staticClass:\"el-input-number__decrease\",class:{\"is-disabled\":t.minDisabled},attrs:{role:\"button\"},on:{keydown:function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.decrease(e)}}},[n(\"i\",{class:\"el-icon-\"+(t.controlsAtRight?\"arrow-down\":\"minus\")})]):t._e(),t.controls?n(\"span\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:t.increase,expression:\"increase\"}],staticClass:\"el-input-number__increase\",class:{\"is-disabled\":t.maxDisabled},attrs:{role:\"button\"},on:{keydown:function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.increase(e)}}},[n(\"i\",{class:\"el-icon-\"+(t.controlsAtRight?\"arrow-up\":\"plus\")})]):t._e(),n(\"el-input\",{ref:\"input\",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"up\",38,e.key,[\"Up\",\"ArrowUp\"])?null:(e.preventDefault(),t.increase(e))},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"down\",40,e.key,[\"Down\",\"ArrowDown\"])?null:(e.preventDefault(),t.decrease(e))}]}})],1)};Zt._withStripped=!0;var Kt={bind:function(t,e,n){var r=null,i=void 0,o=Object(v.isMac)()?100:200,a=function(){return n.context[e.expression].apply()},s=function(){Date.now()-i<o&&a(),clearInterval(r),r=null};Object(vt.on)(t,\"mousedown\",(function(t){0===t.button&&(i=Date.now(),Object(vt.once)(document,\"mouseup\",s),clearInterval(r),r=setInterval(a,o))}))}},Xt={name:\"ElInputNumber\",mixins:[U()(\"input\")],inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},directives:{repeatClick:Kt},components:{ElInput:d.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:\"\"},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(t){return t>=0&&t===parseInt(t,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(t){var e=void 0===t?t:Number(t);if(void 0!==e){if(isNaN(e))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);e=Math.round(e/this.step)*r*this.step/r}void 0!==this.precision&&(e=this.toPrecision(e,this.precision))}e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),this.currentValue=e,this.userInput=null,this.$emit(\"input\",e)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var t=this.value,e=this.step,n=this.getPrecision,r=this.precision,i=n(e);return void 0!==r?r:Math.max(n(t),i)},controlsAtRight:function(){return this.controls&&\"right\"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var t=this.currentValue;if(\"number\"==typeof t){if(this.stepStrictly){var e=this.getPrecision(this.step),n=Math.pow(10,e);t=Math.round(t/this.step)*n*this.step/n}void 0!==this.precision&&(t=t.toFixed(this.precision))}return t}},methods:{toPrecision:function(t,e){return void 0===e&&(e=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,e))/Math.pow(10,e))},getPrecision:function(t){if(void 0===t)return 0;var e=t.toString(),n=e.indexOf(\".\"),r=0;return-1!==n&&(r=e.length-n-1),r},_increase:function(t,e){if(\"number\"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*e)/n)},_decrease:function(t,e){if(\"number\"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*e)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var t=this.value||0,e=this._increase(t,this.step);this.setCurrentValue(e)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var t=this.value||0,e=this._decrease(t,this.step);this.setCurrentValue(e)}},handleBlur:function(t){this.$emit(\"blur\",t)},handleFocus:function(t){this.$emit(\"focus\",t)},setCurrentValue:function(t){var e=this.currentValue;\"number\"==typeof t&&void 0!==this.precision&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),e!==t&&(this.userInput=null,this.$emit(\"input\",t),this.$emit(\"change\",t,e),this.currentValue=t)},handleInput:function(t){this.userInput=t},handleInputChange:function(t){var e=\"\"===t?void 0:Number(t);isNaN(e)&&\"\"!==t||this.setCurrentValue(e),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var t=this.$refs.input.$refs.input;t.setAttribute(\"role\",\"spinbutton\"),t.setAttribute(\"aria-valuemax\",this.max),t.setAttribute(\"aria-valuemin\",this.min),t.setAttribute(\"aria-valuenow\",this.currentValue),t.setAttribute(\"aria-disabled\",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute(\"aria-valuenow\",this.currentValue)}},Jt=o(Xt,Zt,[],!1,null,null,null);Jt.options.__file=\"packages/input-number/src/input-number.vue\";var Qt=Jt.exports;Qt.install=function(t){t.component(Qt.name,Qt)};var te=Qt,ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"label\",{staticClass:\"el-radio\",class:[t.border&&t.radioSize?\"el-radio--\"+t.radioSize:\"\",{\"is-disabled\":t.isDisabled},{\"is-focus\":t.focus},{\"is-bordered\":t.border},{\"is-checked\":t.model===t.label}],attrs:{role:\"radio\",\"aria-checked\":t.model===t.label,\"aria-disabled\":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"space\",32,e.key,[\" \",\"Spacebar\"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[n(\"span\",{staticClass:\"el-radio__input\",class:{\"is-disabled\":t.isDisabled,\"is-checked\":t.model===t.label}},[n(\"span\",{staticClass:\"el-radio__inner\"}),n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.model,expression:\"model\"}],ref:\"radio\",staticClass:\"el-radio__original\",attrs:{type:\"radio\",\"aria-hidden\":\"true\",name:t.name,disabled:t.isDisabled,tabindex:\"-1\",autocomplete:\"off\"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),n(\"span\",{staticClass:\"el-radio__label\",on:{keydown:function(t){t.stopPropagation()}}},[t._t(\"default\"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])};ee._withStripped=!0;var ne=o({name:\"ElRadio\",mixins:[C.a],inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},componentName:\"ElRadio\",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var t=this.$parent;t;){if(\"ElRadioGroup\"===t.$options.componentName)return this._radioGroup=t,!0;t=t.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(t){this.isGroup?this.dispatch(\"ElRadioGroup\",\"input\",[t]):this.$emit(\"input\",t),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||t},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.$emit(\"change\",t.model),t.isGroup&&t.dispatch(\"ElRadioGroup\",\"handleChange\",t.model)}))}}},ee,[],!1,null,null,null);ne.options.__file=\"packages/radio/src/radio.vue\";var re=ne.exports;re.install=function(t){t.component(re.name,re)};var ie=re,oe=function(){var t=this,e=t.$createElement;return(t._self._c||e)(t._elTag,{tag:\"component\",staticClass:\"el-radio-group\",attrs:{role:\"radiogroup\"},on:{keydown:t.handleKeydown}},[t._t(\"default\")],2)};oe._withStripped=!0;var ae=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),se=o({name:\"ElRadioGroup\",componentName:\"ElRadioGroup\",inject:{elFormItem:{default:\"\"}},mixins:[C.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){var t=(this.$vnode.data||{}).tag;return t&&\"component\"!==t||(t=\"div\"),t},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var t=this;this.$on(\"handleChange\",(function(e){t.$emit(\"change\",e)}))},mounted:function(){var t=this.$el.querySelectorAll(\"[type=radio]\"),e=this.$el.querySelectorAll(\"[role=radio]\")[0];![].some.call(t,(function(t){return t.checked}))&&e&&(e.tabIndex=0)},methods:{handleKeydown:function(t){var e=t.target,n=\"INPUT\"===e.nodeName?\"[type=radio]\":\"[role=radio]\",r=this.$el.querySelectorAll(n),i=r.length,o=[].indexOf.call(r,e),a=this.$el.querySelectorAll(\"[role=radio]\");switch(t.keyCode){case ae.LEFT:case ae.UP:t.stopPropagation(),t.preventDefault(),0===o?(a[i-1].click(),a[i-1].focus()):(a[o-1].click(),a[o-1].focus());break;case ae.RIGHT:case ae.DOWN:o===i-1?(t.stopPropagation(),t.preventDefault(),a[0].click(),a[0].focus()):(a[o+1].click(),a[o+1].focus())}}},watch:{value:function(t){this.dispatch(\"ElFormItem\",\"el.form.change\",[this.value])}}},oe,[],!1,null,null,null);se.options.__file=\"packages/radio/src/radio-group.vue\";var ue=se.exports;ue.install=function(t){t.component(ue.name,ue)};var le=ue,ce=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"label\",{staticClass:\"el-radio-button\",class:[t.size?\"el-radio-button--\"+t.size:\"\",{\"is-active\":t.value===t.label},{\"is-disabled\":t.isDisabled},{\"is-focus\":t.focus}],attrs:{role:\"radio\",\"aria-checked\":t.value===t.label,\"aria-disabled\":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"space\",32,e.key,[\" \",\"Spacebar\"]))return null;e.stopPropagation(),e.preventDefault(),t.value=t.isDisabled?t.value:t.label}}},[n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.value,expression:\"value\"}],staticClass:\"el-radio-button__orig-radio\",attrs:{type:\"radio\",name:t.name,disabled:t.isDisabled,tabindex:\"-1\",autocomplete:\"off\"},domProps:{value:t.label,checked:t._q(t.value,t.label)},on:{change:[function(e){t.value=t.label},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),n(\"span\",{staticClass:\"el-radio-button__inner\",style:t.value===t.label?t.activeStyle:null,on:{keydown:function(t){t.stopPropagation()}}},[t._t(\"default\"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])};ce._withStripped=!0;var he=o({name:\"ElRadioButton\",mixins:[C.a],inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(t){this._radioGroup.$emit(\"input\",t)}},_radioGroup:function(){for(var t=this.$parent;t;){if(\"ElRadioGroup\"===t.$options.componentName)return t;t=t.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||\"\",borderColor:this._radioGroup.fill||\"\",boxShadow:this._radioGroup.fill?\"-1px 0 0 0 \"+this._radioGroup.fill:\"\",color:this._radioGroup.textColor||\"\"}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.dispatch(\"ElRadioGroup\",\"handleChange\",t.value)}))}}},ce,[],!1,null,null,null);he.options.__file=\"packages/radio/src/radio-button.vue\";var fe=he.exports;fe.install=function(t){t.component(fe.name,fe)};var de=fe,pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"label\",{staticClass:\"el-checkbox\",class:[t.border&&t.checkboxSize?\"el-checkbox--\"+t.checkboxSize:\"\",{\"is-disabled\":t.isDisabled},{\"is-bordered\":t.border},{\"is-checked\":t.isChecked}],attrs:{id:t.id}},[n(\"span\",{staticClass:\"el-checkbox__input\",class:{\"is-disabled\":t.isDisabled,\"is-checked\":t.isChecked,\"is-indeterminate\":t.indeterminate,\"is-focus\":t.focus},attrs:{tabindex:!!t.indeterminate&&0,role:!!t.indeterminate&&\"checkbox\",\"aria-checked\":!!t.indeterminate&&\"mixed\"}},[n(\"span\",{staticClass:\"el-checkbox__inner\"}),t.trueLabel||t.falseLabel?n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.model,expression:\"model\"}],staticClass:\"el-checkbox__original\",attrs:{type:\"checkbox\",\"aria-hidden\":t.indeterminate?\"true\":\"false\",name:t.name,disabled:t.isDisabled,\"true-value\":t.trueLabel,\"false-value\":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.model,expression:\"model\"}],staticClass:\"el-checkbox__original\",attrs:{type:\"checkbox\",\"aria-hidden\":t.indeterminate?\"true\":\"false\",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n(\"span\",{staticClass:\"el-checkbox__label\"},[t._t(\"default\"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])};pe._withStripped=!0;var me=o({name:\"ElCheckbox\",mixins:[C.a],inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},componentName:\"ElCheckbox\",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch(\"ElCheckboxGroup\",\"input\",[t])):(this.$emit(\"input\",t),this.selfModel=t)}},isChecked:function(){return\"[object Boolean]\"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var t=this.$parent;t;){if(\"ElCheckboxGroup\"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit(\"change\",n,t),this.$nextTick((function(){e.isGroup&&e.dispatch(\"ElCheckboxGroup\",\"change\",[e._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute(\"aria-controls\",this.controls)},watch:{value:function(t){this.dispatch(\"ElFormItem\",\"el.form.change\",t)}}},pe,[],!1,null,null,null);me.options.__file=\"packages/checkbox/src/checkbox.vue\";var ve=me.exports;ve.install=function(t){t.component(ve.name,ve)};var ge=ve,ye=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"label\",{staticClass:\"el-checkbox-button\",class:[t.size?\"el-checkbox-button--\"+t.size:\"\",{\"is-disabled\":t.isDisabled},{\"is-checked\":t.isChecked},{\"is-focus\":t.focus}],attrs:{role:\"checkbox\",\"aria-checked\":t.isChecked,\"aria-disabled\":t.isDisabled}},[t.trueLabel||t.falseLabel?n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.model,expression:\"model\"}],staticClass:\"el-checkbox-button__original\",attrs:{type:\"checkbox\",name:t.name,disabled:t.isDisabled,\"true-value\":t.trueLabel,\"false-value\":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.model,expression:\"model\"}],staticClass:\"el-checkbox-button__original\",attrs:{type:\"checkbox\",name:t.name,disabled:t.isDisabled},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),t.$slots.default||t.label?n(\"span\",{staticClass:\"el-checkbox-button__inner\",style:t.isChecked?t.activeStyle:null},[t._t(\"default\",[t._v(t._s(t.label))])],2):t._e()])};ye._withStripped=!0;var be=o({name:\"ElCheckboxButton\",mixins:[C.a],inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch(\"ElCheckboxGroup\",\"input\",[t])):void 0!==this.value?this.$emit(\"input\",t):this.selfModel=t}},isChecked:function(){return\"[object Boolean]\"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){for(var t=this.$parent;t;){if(\"ElCheckboxGroup\"===t.$options.componentName)return t;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||\"\",borderColor:this._checkboxGroup.fill||\"\",color:this._checkboxGroup.textColor||\"\",\"box-shadow\":\"-1px 0 0 0 \"+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit(\"change\",n,t),this.$nextTick((function(){e._checkboxGroup&&e.dispatch(\"ElCheckboxGroup\",\"change\",[e._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()}},ye,[],!1,null,null,null);be.options.__file=\"packages/checkbox/src/checkbox-button.vue\";var _e=be.exports;_e.install=function(t){t.component(_e.name,_e)};var we=_e,xe=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"div\",{staticClass:\"el-checkbox-group\",attrs:{role:\"group\",\"aria-label\":\"checkbox-group\"}},[t._t(\"default\")],2)};xe._withStripped=!0;var ke=o({name:\"ElCheckboxGroup\",componentName:\"ElCheckboxGroup\",mixins:[C.a],inject:{elFormItem:{default:\"\"}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(t){this.dispatch(\"ElFormItem\",\"el.form.change\",[t])}}},xe,[],!1,null,null,null);ke.options.__file=\"packages/checkbox/src/checkbox-group.vue\";var Se=ke.exports;Se.install=function(t){t.component(Se.name,Se)};var Ce=Se,Ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-switch\",class:{\"is-disabled\":t.switchDisabled,\"is-checked\":t.checked},attrs:{role:\"switch\",\"aria-checked\":t.checked,\"aria-disabled\":t.switchDisabled},on:{click:function(e){return e.preventDefault(),t.switchValue(e)}}},[n(\"input\",{ref:\"input\",staticClass:\"el-switch__input\",attrs:{type:\"checkbox\",id:t.id,name:t.name,\"true-value\":t.activeValue,\"false-value\":t.inactiveValue,disabled:t.switchDisabled},on:{change:t.handleChange,keydown:function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.switchValue(e)}}}),t.inactiveIconClass||t.inactiveText?n(\"span\",{class:[\"el-switch__label\",\"el-switch__label--left\",t.checked?\"\":\"is-active\"]},[t.inactiveIconClass?n(\"i\",{class:[t.inactiveIconClass]}):t._e(),!t.inactiveIconClass&&t.inactiveText?n(\"span\",{attrs:{\"aria-hidden\":t.checked}},[t._v(t._s(t.inactiveText))]):t._e()]):t._e(),n(\"span\",{ref:\"core\",staticClass:\"el-switch__core\",style:{width:t.coreWidth+\"px\"}}),t.activeIconClass||t.activeText?n(\"span\",{class:[\"el-switch__label\",\"el-switch__label--right\",t.checked?\"is-active\":\"\"]},[t.activeIconClass?n(\"i\",{class:[t.activeIconClass]}):t._e(),!t.activeIconClass&&t.activeText?n(\"span\",{attrs:{\"aria-hidden\":!t.checked}},[t._v(t._s(t.activeText))]):t._e()]):t._e()])};Ee._withStripped=!0;var De=o({name:\"ElSwitch\",mixins:[U()(\"input\"),k.a,C.a],inject:{elForm:{default:\"\"}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:\"\"},inactiveIconClass:{type:String,default:\"\"},activeText:String,inactiveText:String,activeColor:{type:String,default:\"\"},inactiveColor:{type:String,default:\"\"},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:\"\"},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit(\"input\",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch(\"ElFormItem\",\"el.form.change\",[this.value])}},methods:{handleChange:function(t){var e=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit(\"input\",n),this.$emit(\"change\",n),this.$nextTick((function(){e.$refs.input&&(e.$refs.input.checked=e.checked)}))},setBackgroundColor:function(){var t=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=t,this.$refs.core.style.backgroundColor=t},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{\"on-color\":\"on-color is renamed to active-color.\",\"off-color\":\"off-color is renamed to inactive-color.\",\"on-text\":\"on-text is renamed to active-text.\",\"off-text\":\"off-text is renamed to inactive-text.\",\"on-value\":\"on-value is renamed to active-value.\",\"off-value\":\"off-value is renamed to inactive-value.\",\"on-icon-class\":\"on-icon-class is renamed to active-icon-class.\",\"off-icon-class\":\"off-icon-class is renamed to inactive-icon-class.\"}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},Ee,[],!1,null,null,null);De.options.__file=\"packages/switch/src/component.vue\";var Ae=De.exports;Ae.install=function(t){t.component(Ae.name,Ae)};var Oe=Ae,Me=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:t.handleClose,expression:\"handleClose\"}],staticClass:\"el-select\",class:[t.selectSize?\"el-select--\"+t.selectSize:\"\"],on:{click:function(e){return e.stopPropagation(),t.toggleMenu(e)}}},[t.multiple?n(\"div\",{ref:\"tags\",staticClass:\"el-select__tags\",style:{\"max-width\":t.inputWidth-32+\"px\",width:\"100%\"}},[t.collapseTags&&t.selected.length?n(\"span\",[n(\"el-tag\",{attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:t.selected[0].hitState,type:\"info\",\"disable-transitions\":\"\"},on:{close:function(e){t.deleteTag(e,t.selected[0])}}},[n(\"span\",{staticClass:\"el-select__tags-text\"},[t._v(t._s(t.selected[0].currentLabel))])]),t.selected.length>1?n(\"el-tag\",{attrs:{closable:!1,size:t.collapseTagSize,type:\"info\",\"disable-transitions\":\"\"}},[n(\"span\",{staticClass:\"el-select__tags-text\"},[t._v(\"+ \"+t._s(t.selected.length-1))])]):t._e()],1):t._e(),t.collapseTags?t._e():n(\"transition-group\",{on:{\"after-leave\":t.resetInputHeight}},t._l(t.selected,(function(e){return n(\"el-tag\",{key:t.getValueKey(e),attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:e.hitState,type:\"info\",\"disable-transitions\":\"\"},on:{close:function(n){t.deleteTag(n,e)}}},[n(\"span\",{staticClass:\"el-select__tags-text\"},[t._v(t._s(e.currentLabel))])])})),1),t.filterable?n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.query,expression:\"query\"}],ref:\"input\",staticClass:\"el-select__input\",class:[t.selectSize?\"is-\"+t.selectSize:\"\"],style:{\"flex-grow\":\"1\",width:t.inputLength/(t.inputWidth-32)+\"%\",\"max-width\":t.inputWidth-42+\"px\"},attrs:{type:\"text\",disabled:t.selectDisabled,autocomplete:t.autoComplete||t.autocomplete},domProps:{value:t.query},on:{focus:t.handleFocus,blur:function(e){t.softFocus=!1},keyup:t.managePlaceholder,keydown:[t.resetInputState,function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"down\",40,e.key,[\"Down\",\"ArrowDown\"]))return null;e.preventDefault(),t.handleNavigate(\"next\")},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"up\",38,e.key,[\"Up\",\"ArrowUp\"]))return null;e.preventDefault(),t.handleNavigate(\"prev\")},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"esc\",27,e.key,[\"Esc\",\"Escape\"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"delete\",[8,46],e.key,[\"Backspace\",\"Delete\",\"Del\"])?null:t.deletePrevTag(e)},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"tab\",9,e.key,\"Tab\"))return null;t.visible=!1}],compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:[function(e){e.target.composing||(t.query=e.target.value)},t.debouncedQueryChange]}}):t._e()],1):t._e(),n(\"el-input\",{ref:\"reference\",class:{\"is-focus\":t.visible},attrs:{type:\"text\",placeholder:t.currentPlaceholder,name:t.name,id:t.id,autocomplete:t.autoComplete||t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,\"validate-event\":!1,tabindex:t.multiple&&t.filterable?\"-1\":null},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.debouncedOnInputChange,compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition},nativeOn:{keydown:[function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"down\",40,e.key,[\"Down\",\"ArrowDown\"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate(\"next\")},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"up\",38,e.key,[\"Up\",\"ArrowUp\"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate(\"prev\")},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"esc\",27,e.key,[\"Esc\",\"Escape\"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"tab\",9,e.key,\"Tab\"))return null;t.visible=!1}],mouseenter:function(e){t.inputHovering=!0},mouseleave:function(e){t.inputHovering=!1}},model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:\"selectedLabel\"}},[t.$slots.prefix?n(\"template\",{slot:\"prefix\"},[t._t(\"prefix\")],2):t._e(),n(\"template\",{slot:\"suffix\"},[n(\"i\",{directives:[{name:\"show\",rawName:\"v-show\",value:!t.showClose,expression:\"!showClose\"}],class:[\"el-select__caret\",\"el-input__icon\",\"el-icon-\"+t.iconClass]}),t.showClose?n(\"i\",{staticClass:\"el-select__caret el-input__icon el-icon-circle-close\",on:{click:t.handleClearClick}}):t._e()])],2),n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"before-enter\":t.handleMenuEnter,\"after-leave\":t.doDestroy}},[n(\"el-select-menu\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible&&!1!==t.emptyText,expression:\"visible && emptyText !== false\"}],ref:\"popper\",attrs:{\"append-to-body\":t.popperAppendToBody}},[n(\"el-scrollbar\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.options.length>0&&!t.loading,expression:\"options.length > 0 && !loading\"}],ref:\"scrollbar\",class:{\"is-empty\":!t.allowCreate&&t.query&&0===t.filteredOptionsCount},attrs:{tag:\"ul\",\"wrap-class\":\"el-select-dropdown__wrap\",\"view-class\":\"el-select-dropdown__list\"}},[t.showNewOption?n(\"el-option\",{attrs:{value:t.query,created:\"\"}}):t._e(),t._t(\"default\")],2),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&0===t.options.length)?[t.$slots.empty?t._t(\"empty\"):n(\"p\",{staticClass:\"el-select-dropdown__empty\"},[t._v(\"\\n          \"+t._s(t.emptyText)+\"\\n        \")])]:t._e()],2)],1)],1)};Me._withStripped=!0;var Te=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"div\",{staticClass:\"el-select-dropdown el-popper\",class:[{\"is-multiple\":t.$parent.multiple},t.popperClass],style:{minWidth:t.minWidth}},[t._t(\"default\")],2)};Te._withStripped=!0;var Ie=o({name:\"ElSelectDropdown\",componentName:\"ElSelectDropdown\",mixins:[N.a],props:{placement:{default:\"bottom-start\"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:\"\"}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{\"$parent.inputWidth\":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+\"px\"}},mounted:function(){var t=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on(\"updatePopper\",(function(){t.$parent.visible&&t.updatePopper()})),this.$on(\"destroyPopper\",this.destroyPopper)}},Te,[],!1,null,null,null);Ie.options.__file=\"packages/select/src/select-dropdown.vue\";var Pe=Ie.exports,Fe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"li\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-select-dropdown__item\",class:{selected:t.itemSelected,\"is-disabled\":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t(\"default\",[n(\"span\",[t._v(t._s(t.currentLabel))])])],2)};Fe._withStripped=!0;var je=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)},Ne={mixins:[C.a],name:\"ElOption\",componentName:\"ElOption\",inject:[\"select\"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return\"[object object]\"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?\"\":this.value)},currentValue:function(){return this.value||this.label||\"\"},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch(\"ElSelect\",\"setSelected\")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&\"object\"===(void 0===t?\"undefined\":je(t))&&\"object\"===(void 0===e?\"undefined\":je(e))&&t[i]===e[i])return;this.dispatch(\"ElSelect\",\"setSelected\")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(v.getValueByPath)(t,n)===Object(v.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some((function(t){return Object(v.getValueByPath)(t,n)===Object(v.getValueByPath)(e,n)}))}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch(\"ElSelect\",\"handleOptionClick\",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(v.escapeRegexpString)(t),\"i\").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on(\"queryChange\",this.queryChange),this.$on(\"handleGroupDisabled\",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple?e:[e],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Le=o(Ne,Fe,[],!1,null,null,null);Le.options.__file=\"packages/select/src/option.vue\";var Be=Le.exports,$e=n(30),ze=n.n($e),Re=n(15),Ue=n(27),Ve=n.n(Ue),He={mixins:[C.a,m.a,U()(\"reference\"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(t){return t.visible})).every((function(t){return t.disabled}))}},watch:{hoverIndex:function(t){var e=this;\"number\"==typeof t&&t>-1&&(this.hoverOption=this.options[t]||{}),this.options.forEach((function(t){t.hover=e.hoverOption===t}))}},methods:{navigateOptions:function(t){var e=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){\"next\"===t?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):\"prev\"===t&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(t),this.$nextTick((function(){return e.scrollToOption(e.hoverOption)}))}}else this.visible=!0}}}],name:\"ElSelect\",componentName:\"ElSelect\",inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(v.isIE)()&&!Object(v.isEdge)()&&!this.visible},showClose:function(){var t=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&\"\"!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&t},iconClass:function(){return this.remote&&this.filterable?\"\":this.visible?\"arrow-up is-reverse\":\"arrow-up\"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t(\"el.select.loading\"):(!this.remote||\"\"!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t(\"el.select.noMatch\"):0===this.options.length?this.noDataText||this.t(\"el.select.noData\"):null)},showNewOption:function(){var t=this,e=this.options.filter((function(t){return!t.created})).some((function(e){return e.currentLabel===t.query}));return this.filterable&&this.allowCreate&&\"\"!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return[\"small\",\"mini\"].indexOf(this.selectSize)>-1?\"mini\":\"small\"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t(\"el.select.placeholder\")}},components:{ElInput:d.a,ElSelectMenu:Pe,ElOption:Be,ElTag:ze.a,ElScrollbar:B.a},directives:{Clickoutside:P.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:\"off\"},autoComplete:{type:String,validator:function(t){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:\"value\"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:\"\",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:\"\",hoverIndex:-1,query:\"\",previousQuery:null,inputHovering:!1,currentPlaceholder:\"\",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var t=this;this.$nextTick((function(){t.resetInputHeight()}))},propPlaceholder:function(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value:function(t,e){this.multiple&&(this.resetInputHeight(),t&&t.length>0||this.$refs.input&&\"\"!==this.query?this.currentPlaceholder=\"\":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query=\"\",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(v.valueEquals)(t,e)||this.dispatch(\"ElFormItem\",\"el.form.change\",t)},visible:function(t){var e=this;t?(this.broadcast(\"ElSelectDropdown\",\"updatePopper\"),this.filterable&&(this.query=this.remote?\"\":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast(\"ElOption\",\"queryChange\",\"\"),this.broadcast(\"ElOptionGroup\",\"queryChange\")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel=\"\")))):(this.broadcast(\"ElSelectDropdown\",\"destroyPopper\"),this.$refs.input&&this.$refs.input.blur(),this.query=\"\",this.previousQuery=null,this.selectedLabel=\"\",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){e.$refs.input&&\"\"===e.$refs.input.value&&0===e.selected.length&&(e.currentPlaceholder=e.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit(\"visible-change\",t)},options:function(){var t=this;if(!this.$isServer){this.$nextTick((function(){t.broadcast(\"ElSelectDropdown\",\"updatePopper\")})),this.multiple&&this.resetInputHeight();var e=this.$el.querySelectorAll(\"input\");-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(t){this.isOnComposition||this.navigateOptions(t)},handleComposition:function(t){var e=this,n=t.target.value;if(\"compositionend\"===t.type)this.isOnComposition=!1,this.$nextTick((function(t){return e.handleQueryChange(n)}));else{var r=n[n.length-1]||\"\";this.isOnComposition=!Object(Gt.isKorean)(r)}},handleQueryChange:function(t){var e=this;this.previousQuery===t||this.isOnComposition||(null!==this.previousQuery||\"function\"!=typeof this.filterMethod&&\"function\"!=typeof this.remoteMethod?(this.previousQuery=t,this.$nextTick((function(){e.visible&&e.broadcast(\"ElSelectDropdown\",\"updatePopper\")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var t=15*e.$refs.input.value.length+20;e.inputLength=e.collapseTags?Math.min(50,t):t,e.managePlaceholder(),e.resetInputHeight()})),this.remote&&\"function\"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):\"function\"==typeof this.filterMethod?(this.filterMethod(t),this.broadcast(\"ElOptionGroup\",\"queryChange\")):(this.filteredOptionsCount=this.optionsCount,this.broadcast(\"ElOption\",\"queryChange\",t),this.broadcast(\"ElOptionGroup\",\"queryChange\")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=t)},scrollToOption:function(t){var e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){var n=this.$refs.popper.$el.querySelector(\".el-select-dropdown__wrap\");Ve()(n,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var t=this;this.$nextTick((function(){return t.scrollToOption(t.selected)}))},emitChange:function(t){Object(v.valueEquals)(this.value,t)||this.$emit(\"change\",t)},getOption:function(t){for(var e=void 0,n=\"[object object]\"===Object.prototype.toString.call(t).toLowerCase(),r=\"[object null]\"===Object.prototype.toString.call(t).toLowerCase(),i=\"[object undefined]\"===Object.prototype.toString.call(t).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(v.getValueByPath)(a.value,this.valueKey)===Object(v.getValueByPath)(t,this.valueKey):a.value===t){e=a;break}}if(e)return e;var s={value:t,currentLabel:n||r||i?\"\":String(t)};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(e){n.push(t.getOption(e))})),this.selected=n,this.$nextTick((function(){t.resetInputHeight()}))},handleFocus:function(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit(\"focus\",t))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(t){var e=this;setTimeout((function(){e.isSilentBlur?e.isSilentBlur=!1:e.$emit(\"blur\",t)}),50),this.softFocus=!1},handleClearClick:function(t){this.deleteSelected(t)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(t){if(Array.isArray(this.selected)){var e=this.selected[this.selected.length-1];if(e)return!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState)}},deletePrevTag:function(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){var e=this.value.slice();e.pop(),this.$emit(\"input\",e),this.emitChange(e)}},managePlaceholder:function(){\"\"!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?\"\":this.cachedPlaceHolder)},resetInputState:function(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var t=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(t.$refs.reference){var e=t.$refs.reference.$el.childNodes,n=[].filter.call(e,(function(t){return\"INPUT\"===t.tagName}))[0],r=t.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=t.initialInputHeight||40;n.style.height=0===t.selected.length?o+\"px\":Math.max(r?i+(i>o?6:0):0,o)+\"px\",t.visible&&!1!==t.emptyText&&t.broadcast(\"ElSelectDropdown\",\"updatePopper\")}}))},resetHoverIndex:function(){var t=this;setTimeout((function(){t.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((function(e){return t.options.indexOf(e)}))):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)}),300)},handleOptionSelect:function(t,e){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,t.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit(\"input\",r),this.emitChange(r),t.created&&(this.query=\"\",this.handleQueryChange(\"\"),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit(\"input\",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(t)}))},setSoftFocus:function(){this.softFocus=!0;var t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(\"[object object]\"===Object.prototype.toString.call(e).toLowerCase()){var n=this.valueKey,r=-1;return t.some((function(t,i){return Object(v.getValueByPath)(t,n)===Object(v.getValueByPath)(e,n)&&(r=i,!0)})),r}return t.indexOf(e)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(t){t.stopPropagation();var e=this.multiple?[]:\"\";this.$emit(\"input\",e),this.emitChange(e),this.visible=!1,this.$emit(\"clear\")},deleteTag:function(t,e){var n=this.selected.indexOf(e);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit(\"input\",r),this.emitChange(r),this.$emit(\"remove-tag\",e.value)}t.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var t=!1,e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(t){return\"[object object]\"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:Object(v.getValueByPath)(t.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit(\"input\",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit(\"input\",\"\"),this.debouncedOnInputChange=T()(this.debounce,(function(){t.onInputChange()})),this.debouncedQueryChange=T()(this.debounce,(function(e){t.handleQueryChange(e.target.value)})),this.$on(\"handleOptionClick\",this.handleOptionSelect),this.$on(\"setSelected\",this.setSelected)},mounted:function(){var t=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=\"\"),Object(Re.addResizeListener)(this.$el,this.handleResize);var e=this.$refs.reference;if(e&&e.$el){var n=e.$el.querySelector(\"input\");this.initialInputHeight=n.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){e&&e.$el&&(t.inputWidth=e.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(Re.removeResizeListener)(this.$el,this.handleResize)}},Ge=o(He,Me,[],!1,null,null,null);Ge.options.__file=\"packages/select/src/select.vue\";var qe=Ge.exports;qe.install=function(t){t.component(qe.name,qe)};var We=qe;Be.install=function(t){t.component(Be.name,Be)};var Ye=Be,Ze=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"ul\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-select-group__wrap\"},[n(\"li\",{staticClass:\"el-select-group__title\"},[t._v(t._s(t.label))]),n(\"li\",[n(\"ul\",{staticClass:\"el-select-group\"},[t._t(\"default\")],2)])])};Ze._withStripped=!0;var Ke=o({mixins:[C.a],name:\"ElOptionGroup\",componentName:\"ElOptionGroup\",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(t){this.broadcast(\"ElOption\",\"handleGroupDisabled\",t)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(t){return!0===t.visible}))}},created:function(){this.$on(\"queryChange\",this.queryChange)},mounted:function(){this.disabled&&this.broadcast(\"ElOption\",\"handleGroupDisabled\",this.disabled)}},Ze,[],!1,null,null,null);Ke.options.__file=\"packages/select/src/option-group.vue\";var Xe=Ke.exports;Xe.install=function(t){t.component(Xe.name,Xe)};var Je=Xe,Qe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"button\",{staticClass:\"el-button\",class:[t.type?\"el-button--\"+t.type:\"\",t.buttonSize?\"el-button--\"+t.buttonSize:\"\",{\"is-disabled\":t.buttonDisabled,\"is-loading\":t.loading,\"is-plain\":t.plain,\"is-round\":t.round,\"is-circle\":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n(\"i\",{staticClass:\"el-icon-loading\"}):t._e(),t.icon&&!t.loading?n(\"i\",{class:t.icon}):t._e(),t.$slots.default?n(\"span\",[t._t(\"default\")],2):t._e()])};Qe._withStripped=!0;var tn=o({name:\"ElButton\",inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},props:{type:{type:String,default:\"default\"},size:String,icon:{type:String,default:\"\"},nativeType:{type:String,default:\"button\"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty(\"disabled\")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit(\"click\",t)}}},Qe,[],!1,null,null,null);tn.options.__file=\"packages/button/src/button.vue\";var en=tn.exports;en.install=function(t){t.component(en.name,en)};var nn=en,rn=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"div\",{staticClass:\"el-button-group\"},[t._t(\"default\")],2)};rn._withStripped=!0;var on=o({name:\"ElButtonGroup\"},rn,[],!1,null,null,null);on.options.__file=\"packages/button/src/button-group.vue\";var an=on.exports;an.install=function(t){t.component(an.name,an)};var sn=an,un=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-table\",class:[{\"el-table--fit\":t.fit,\"el-table--striped\":t.stripe,\"el-table--border\":t.border||t.isGroup,\"el-table--hidden\":t.isHidden,\"el-table--group\":t.isGroup,\"el-table--fluid-height\":t.maxHeight,\"el-table--scrollable-x\":t.layout.scrollX,\"el-table--scrollable-y\":t.layout.scrollY,\"el-table--enable-row-hover\":!t.store.states.isComplex,\"el-table--enable-row-transition\":0!==(t.store.states.data||[]).length&&(t.store.states.data||[]).length<100},t.tableSize?\"el-table--\"+t.tableSize:\"\"],on:{mouseleave:function(e){t.handleMouseLeave(e)}}},[n(\"div\",{ref:\"hiddenColumns\",staticClass:\"hidden-columns\"},[t._t(\"default\")],2),t.showHeader?n(\"div\",{directives:[{name:\"mousewheel\",rawName:\"v-mousewheel\",value:t.handleHeaderFooterMousewheel,expression:\"handleHeaderFooterMousewheel\"}],ref:\"headerWrapper\",staticClass:\"el-table__header-wrapper\"},[n(\"table-header\",{ref:\"tableHeader\",style:{width:t.layout.bodyWidth?t.layout.bodyWidth+\"px\":\"\"},attrs:{store:t.store,border:t.border,\"default-sort\":t.defaultSort}})],1):t._e(),n(\"div\",{ref:\"bodyWrapper\",staticClass:\"el-table__body-wrapper\",class:[t.layout.scrollX?\"is-scrolling-\"+t.scrollPosition:\"is-scrolling-none\"],style:[t.bodyHeight]},[n(\"table-body\",{style:{width:t.bodyWidth},attrs:{context:t.context,store:t.store,stripe:t.stripe,\"row-class-name\":t.rowClassName,\"row-style\":t.rowStyle,highlight:t.highlightCurrentRow}}),t.data&&0!==t.data.length?t._e():n(\"div\",{ref:\"emptyBlock\",staticClass:\"el-table__empty-block\",style:t.emptyBlockStyle},[n(\"span\",{staticClass:\"el-table__empty-text\"},[t._t(\"empty\",[t._v(t._s(t.emptyText||t.t(\"el.table.emptyText\")))])],2)]),t.$slots.append?n(\"div\",{ref:\"appendWrapper\",staticClass:\"el-table__append-wrapper\"},[t._t(\"append\")],2):t._e()],1),t.showSummary?n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.data&&t.data.length>0,expression:\"data && data.length > 0\"},{name:\"mousewheel\",rawName:\"v-mousewheel\",value:t.handleHeaderFooterMousewheel,expression:\"handleHeaderFooterMousewheel\"}],ref:\"footerWrapper\",staticClass:\"el-table__footer-wrapper\"},[n(\"table-footer\",{style:{width:t.layout.bodyWidth?t.layout.bodyWidth+\"px\":\"\"},attrs:{store:t.store,border:t.border,\"sum-text\":t.sumText||t.t(\"el.table.sumText\"),\"summary-method\":t.summaryMethod,\"default-sort\":t.defaultSort}})],1):t._e(),t.fixedColumns.length>0?n(\"div\",{directives:[{name:\"mousewheel\",rawName:\"v-mousewheel\",value:t.handleFixedMousewheel,expression:\"handleFixedMousewheel\"}],ref:\"fixedWrapper\",staticClass:\"el-table__fixed\",style:[{width:t.layout.fixedWidth?t.layout.fixedWidth+\"px\":\"\"},t.fixedHeight]},[t.showHeader?n(\"div\",{ref:\"fixedHeaderWrapper\",staticClass:\"el-table__fixed-header-wrapper\"},[n(\"table-header\",{ref:\"fixedTableHeader\",style:{width:t.bodyWidth},attrs:{fixed:\"left\",border:t.border,store:t.store}})],1):t._e(),n(\"div\",{ref:\"fixedBodyWrapper\",staticClass:\"el-table__fixed-body-wrapper\",style:[{top:t.layout.headerHeight+\"px\"},t.fixedBodyHeight]},[n(\"table-body\",{style:{width:t.bodyWidth},attrs:{fixed:\"left\",store:t.store,stripe:t.stripe,highlight:t.highlightCurrentRow,\"row-class-name\":t.rowClassName,\"row-style\":t.rowStyle}}),t.$slots.append?n(\"div\",{staticClass:\"el-table__append-gutter\",style:{height:t.layout.appendHeight+\"px\"}}):t._e()],1),t.showSummary?n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.data&&t.data.length>0,expression:\"data && data.length > 0\"}],ref:\"fixedFooterWrapper\",staticClass:\"el-table__fixed-footer-wrapper\"},[n(\"table-footer\",{style:{width:t.bodyWidth},attrs:{fixed:\"left\",border:t.border,\"sum-text\":t.sumText||t.t(\"el.table.sumText\"),\"summary-method\":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),t.rightFixedColumns.length>0?n(\"div\",{directives:[{name:\"mousewheel\",rawName:\"v-mousewheel\",value:t.handleFixedMousewheel,expression:\"handleFixedMousewheel\"}],ref:\"rightFixedWrapper\",staticClass:\"el-table__fixed-right\",style:[{width:t.layout.rightFixedWidth?t.layout.rightFixedWidth+\"px\":\"\",right:t.layout.scrollY?(t.border?t.layout.gutterWidth:t.layout.gutterWidth||0)+\"px\":\"\"},t.fixedHeight]},[t.showHeader?n(\"div\",{ref:\"rightFixedHeaderWrapper\",staticClass:\"el-table__fixed-header-wrapper\"},[n(\"table-header\",{ref:\"rightFixedTableHeader\",style:{width:t.bodyWidth},attrs:{fixed:\"right\",border:t.border,store:t.store}})],1):t._e(),n(\"div\",{ref:\"rightFixedBodyWrapper\",staticClass:\"el-table__fixed-body-wrapper\",style:[{top:t.layout.headerHeight+\"px\"},t.fixedBodyHeight]},[n(\"table-body\",{style:{width:t.bodyWidth},attrs:{fixed:\"right\",store:t.store,stripe:t.stripe,\"row-class-name\":t.rowClassName,\"row-style\":t.rowStyle,highlight:t.highlightCurrentRow}}),t.$slots.append?n(\"div\",{staticClass:\"el-table__append-gutter\",style:{height:t.layout.appendHeight+\"px\"}}):t._e()],1),t.showSummary?n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.data&&t.data.length>0,expression:\"data && data.length > 0\"}],ref:\"rightFixedFooterWrapper\",staticClass:\"el-table__fixed-footer-wrapper\"},[n(\"table-footer\",{style:{width:t.bodyWidth},attrs:{fixed:\"right\",border:t.border,\"sum-text\":t.sumText||t.t(\"el.table.sumText\"),\"summary-method\":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),t.rightFixedColumns.length>0?n(\"div\",{ref:\"rightFixedPatch\",staticClass:\"el-table__fixed-right-patch\",style:{width:t.layout.scrollY?t.layout.gutterWidth+\"px\":\"0\",height:t.layout.headerHeight+\"px\"}}):t._e(),n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.resizeProxyVisible,expression:\"resizeProxyVisible\"}],ref:\"resizeProxy\",staticClass:\"el-table__column-resize-proxy\"})])};un._withStripped=!0;var ln=n(14),cn=n.n(ln),hn=n(36),fn=n(39),dn=n.n(fn),pn=\"undefined\"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf(\"firefox\")>-1,mn={bind:function(t,e){var n,r;n=t,r=e.value,n&&n.addEventListener&&n.addEventListener(pn?\"DOMMouseScroll\":\"mousewheel\",(function(t){var e=dn()(t);r&&r.apply(this,[t,e])}))}},vn=n(6),gn=n.n(vn),yn=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)},bn=function(t){for(var e=t.target;e&&\"HTML\"!==e.tagName.toUpperCase();){if(\"TD\"===e.tagName.toUpperCase())return e;e=e.parentNode}return null},_n=function(t){return null!==t&&\"object\"===(void 0===t?\"undefined\":yn(t))},wn=function(t,e,n,r,i){if(!e&&!r&&(!i||Array.isArray(i)&&!i.length))return t;n=\"string\"==typeof n?\"descending\"===n?-1:1:n&&n<0?-1:1;var o=r?null:function(n,r){return i?(Array.isArray(i)||(i=[i]),i.map((function(e){return\"string\"==typeof e?Object(v.getValueByPath)(n,e):e(n,r,t)}))):(\"$key\"!==e&&_n(n)&&\"$value\"in n&&(n=n.$value),[_n(n)?Object(v.getValueByPath)(n,e):n])};return t.map((function(t,e){return{value:t,index:e,key:o?o(t,e):null}})).sort((function(t,e){var i=function(t,e){if(r)return r(t.value,e.value);for(var n=0,i=t.key.length;n<i;n++){if(t.key[n]<e.key[n])return-1;if(t.key[n]>e.key[n])return 1}return 0}(t,e);return i||(i=t.index-e.index),i*n})).map((function(t){return t.value}))},xn=function(t,e){var n=null;return t.columns.forEach((function(t){t.id===e&&(n=t)})),n},kn=function(t,e){var n=(e.className||\"\").match(/el-table_[^\\s]+/gm);return n?xn(t,n[0]):null},Sn=function(t,e){if(!t)throw new Error(\"row is required when get row identity\");if(\"string\"==typeof e){if(e.indexOf(\".\")<0)return t[e];for(var n=e.split(\".\"),r=t,i=0;i<n.length;i++)r=r[n[i]];return r}if(\"function\"==typeof e)return e.call(null,t)},Cn=function(t,e){var n={};return(t||[]).forEach((function(t,r){n[Sn(t,e)]={row:t,index:r}})),n};function En(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Dn(t){return void 0!==t&&(t=parseInt(t,10),isNaN(t)&&(t=null)),t}function An(t){return\"number\"==typeof t?t:\"string\"==typeof t?/^\\d+(?:px)?$/.test(t)?parseInt(t,10):t:null}function On(t,e,n){var r=!1,i=t.indexOf(e),o=-1!==i,a=function(){t.push(e),r=!0},s=function(){t.splice(i,1),r=!0};return\"boolean\"==typeof n?n&&!o?a():!n&&o&&s():o?s():a(),r}function Mn(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"children\",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"hasChildren\",i=function(t){return!(Array.isArray(t)&&t.length)};function o(t,a,s){e(t,a,s),a.forEach((function(t){if(t[r])e(t,null,s+1);else{var a=t[n];i(a)||o(t,a,s+1)}}))}t.forEach((function(t){if(t[r])e(t,null,0);else{var a=t[n];i(a)||o(t,a,0)}}))}var Tn=function(t,e){var n=Object.getOwnPropertyNames(t),r=Object.getOwnPropertyNames(e);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(t[o]!==e[o])return!1}return!0},In={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var t=this.states,e=t.data,n=void 0===e?[]:e,r=t.rowKey,i=t.defaultExpandAll,o=t.expandRows;if(i)this.states.expandRows=n.slice();else if(r){var a=Cn(o,r);this.states.expandRows=n.reduce((function(t,e){var n=Sn(e,r);return a[n]&&t.push(e),t}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(t,e){On(this.states.expandRows,t,e)&&(this.table.$emit(\"expand-change\",t,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(t){this.assertRowKey();var e=this.states,n=e.data,r=e.rowKey,i=Cn(n,r);this.states.expandRows=t.reduce((function(t,e){var n=i[e];return n&&t.push(n.row),t}),[])},isRowExpanded:function(t){var e=this.states,n=e.expandRows,r=void 0===n?[]:n,i=e.rowKey;return i?!!Cn(r,i)[Sn(t,i)]:-1!==r.indexOf(t)}}},Pn={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(t){this.assertRowKey(),this.states._currentRowKey=t,this.setCurrentRowByKey(t)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(t){var e=this.states,n=e.data,r=void 0===n?[]:n,i=e.rowKey,o=null;i&&(o=Object(v.arrayFind)(r,(function(e){return Sn(e,i)===t}))),e.currentRow=o},updateCurrentRow:function(t){var e=this.states,n=this.table,r=e.currentRow;if(t&&t!==r)return e.currentRow=t,void n.$emit(\"current-change\",t,r);!t&&r&&(e.currentRow=null,n.$emit(\"current-change\",null,r))},updateCurrentRowData:function(){var t=this.states,e=this.table,n=t.rowKey,r=t._currentRowKey,i=t.data||[],o=t.currentRow;if(-1===i.indexOf(o)&&o){if(n){var a=Sn(o,n);this.setCurrentRowByKey(a)}else t.currentRow=null;null===t.currentRow&&e.$emit(\"current-change\",null,o)}else r&&(this.setCurrentRowByKey(r),this.restoreCurrentRowKey())}}},Fn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jn={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:\"hasChildren\",childrenColumnName:\"children\"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var t=this.states.data||[];return this.normalize(t)},normalizedLazyNode:function(){var t=this.states,e=t.rowKey,n=t.lazyTreeNodeMap,r=t.lazyColumnIdentifier,i=Object.keys(n),o={};return i.length?(i.forEach((function(t){if(n[t].length){var i={children:[]};n[t].forEach((function(t){var n=Sn(t,e);i.children.push(n),t[r]&&!o[n]&&(o[n]={children:[]})})),o[t]=i}})),o):o}},watch:{normalizedData:\"updateTreeData\",normalizedLazyNode:\"updateTreeData\"},methods:{normalize:function(t){var e=this.states,n=e.childrenColumnName,r=e.lazyColumnIdentifier,i=e.rowKey,o=e.lazy,a={};return Mn(t,(function(t,e,n){var r=Sn(t,i);Array.isArray(e)?a[r]={children:e.map((function(t){return Sn(t,i)})),level:n}:o&&(a[r]={children:[],lazy:!0,level:n})}),n,r),a},updateTreeData:function(){var t=this.normalizedData,e=this.normalizedLazyNode,n=Object.keys(t),r={};if(n.length){var i=this.states,o=i.treeData,a=i.defaultExpandAll,s=i.expandRowKeys,u=i.lazy,l=[],c=function(t,e){var n=a||s&&-1!==s.indexOf(e);return!!(t&&t.expanded||n)};n.forEach((function(e){var n=o[e],i=Fn({},t[e]);if(i.expanded=c(n,e),i.lazy){var a=n||{},s=a.loaded,u=void 0!==s&&s,h=a.loading,f=void 0!==h&&h;i.loaded=!!u,i.loading=!!f,l.push(e)}r[e]=i}));var h=Object.keys(e);u&&h.length&&l.length&&h.forEach((function(t){var n=o[t],i=e[t].children;if(-1!==l.indexOf(t)){if(0!==r[t].children.length)throw new Error(\"[ElTable]children must be an empty array.\");r[t].children=i}else{var a=n||{},s=a.loaded,u=void 0!==s&&s,h=a.loading,f=void 0!==h&&h;r[t]={lazy:!0,loaded:!!u,loading:!!f,expanded:c(n,t),children:i,level:\"\"}}}))}this.states.treeData=r,this.updateTableScrollY()},updateTreeExpandKeys:function(t){this.states.expandRowKeys=t,this.updateTreeData()},toggleTreeExpansion:function(t,e){this.assertRowKey();var n=this.states,r=n.rowKey,i=n.treeData,o=Sn(t,r),a=o&&i[o];if(o&&a&&\"expanded\"in a){var s=a.expanded;e=void 0===e?!a.expanded:e,i[o].expanded=e,s!==e&&this.table.$emit(\"expand-change\",t,e),this.updateTableScrollY()}},loadOrToggle:function(t){this.assertRowKey();var e=this.states,n=e.lazy,r=e.treeData,i=e.rowKey,o=Sn(t,i),a=r[o];n&&a&&\"loaded\"in a&&!a.loaded?this.loadData(t,o,a):this.toggleTreeExpansion(t)},loadData:function(t,e,n){var r=this,i=this.table.load,o=this.states.treeData;i&&!o[e].loaded&&(o[e].loading=!0,i(t,n,(function(n){if(!Array.isArray(n))throw new Error(\"[ElTable] data must be an array\");var i=r.states,o=i.lazyTreeNodeMap,a=i.treeData;a[e].loading=!1,a[e].loaded=!0,a[e].expanded=!0,n.length&&r.$set(o,e,n),r.table.$emit(\"expand-change\",t,!0)})))}}},Nn=function t(e){var n=[];return e.forEach((function(e){e.children?n.push.apply(n,t(e.children)):n.push(e)})),n},Ln=gn.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[In,Pn,jn],methods:{assertRowKey:function(){if(!this.states.rowKey)throw new Error(\"[ElTable] prop row-key is required\")},updateColumns:function(){var t=this.states,e=t._columns||[];t.fixedColumns=e.filter((function(t){return!0===t.fixed||\"left\"===t.fixed})),t.rightFixedColumns=e.filter((function(t){return\"right\"===t.fixed})),t.fixedColumns.length>0&&e[0]&&\"selection\"===e[0].type&&!e[0].fixed&&(e[0].fixed=!0,t.fixedColumns.unshift(e[0]));var n=e.filter((function(t){return!t.fixed}));t.originColumns=[].concat(t.fixedColumns).concat(n).concat(t.rightFixedColumns);var r=Nn(n),i=Nn(t.fixedColumns),o=Nn(t.rightFixedColumns);t.leafColumnsLength=r.length,t.fixedLeafColumnsLength=i.length,t.rightFixedLeafColumnsLength=o.length,t.columns=[].concat(i).concat(r).concat(o),t.isComplex=t.fixedColumns.length>0||t.rightFixedColumns.length>0},scheduleLayout:function(t){t&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(t){var e=this.states.selection;return(void 0===e?[]:e).indexOf(t)>-1},clearSelection:function(){var t=this.states;t.isAllSelected=!1,t.selection.length&&(t.selection=[],this.table.$emit(\"selection-change\",[]))},cleanSelection:function(){var t=this.states,e=t.data,n=t.rowKey,r=t.selection,i=void 0;if(n){i=[];var o=Cn(r,n),a=Cn(e,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&i.push(o[s].row)}else i=r.filter((function(t){return-1===e.indexOf(t)}));if(i.length){var u=r.filter((function(t){return-1===i.indexOf(t)}));t.selection=u,this.table.$emit(\"selection-change\",u.slice())}},toggleRowSelection:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(On(this.states.selection,t,e)){var r=(this.states.selection||[]).slice();n&&this.table.$emit(\"select\",r,t),this.table.$emit(\"selection-change\",r)}},_toggleAllSelection:function(){var t=this.states,e=t.data,n=void 0===e?[]:e,r=t.selection,i=t.selectOnIndeterminate?!t.isAllSelected:!(t.isAllSelected||r.length);t.isAllSelected=i;var o=!1;n.forEach((function(e,n){t.selectable?t.selectable.call(null,e,n)&&On(r,e,i)&&(o=!0):On(r,e,i)&&(o=!0)})),o&&this.table.$emit(\"selection-change\",r?r.slice():[]),this.table.$emit(\"select-all\",r)},updateSelectionByRowKey:function(){var t=this.states,e=t.selection,n=t.rowKey,r=t.data,i=Cn(e,n);r.forEach((function(t){var r=Sn(t,n),o=i[r];o&&(e[o.index]=t)}))},updateAllSelected:function(){var t=this.states,e=t.selection,n=t.rowKey,r=t.selectable,i=t.data||[];if(0!==i.length){var o=void 0;n&&(o=Cn(e,n));for(var a,s=!0,u=0,l=0,c=i.length;l<c;l++){var h=i[l],f=r&&r.call(null,h,l);if(a=h,o?o[Sn(a,n)]:-1!==e.indexOf(a))u++;else if(!r||f){s=!1;break}}0===u&&(s=!1),t.isAllSelected=s}else t.isAllSelected=!1},updateFilters:function(t,e){Array.isArray(t)||(t=[t]);var n=this.states,r={};return t.forEach((function(t){n.filters[t.id]=e,r[t.columnKey||t.id]=e})),r},updateSort:function(t,e,n){this.states.sortingColumn&&this.states.sortingColumn!==t&&(this.states.sortingColumn.order=null),this.states.sortingColumn=t,this.states.sortProp=e,this.states.sortOrder=n},execFilter:function(){var t=this,e=this.states,n=e._data,r=e.filters,i=n;Object.keys(r).forEach((function(n){var r=e.filters[n];if(r&&0!==r.length){var o=xn(t.states,n);o&&o.filterMethod&&(i=i.filter((function(t){return r.some((function(e){return o.filterMethod.call(null,e,t,o)}))})))}})),e.filteredData=i},execSort:function(){var t=this.states;t.data=function(t,e){var n=e.sortingColumn;return n&&\"string\"!=typeof n.sortable?wn(t,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy):t}(t.filteredData,t)},execQuery:function(t){t&&t.filter||this.execFilter(),this.execSort()},clearFilter:function(t){var e=this.states,n=this.table.$refs,r=n.tableHeader,i=n.fixedTableHeader,o=n.rightFixedTableHeader,a={};r&&(a=Ht()(a,r.filterPanels)),i&&(a=Ht()(a,i.filterPanels)),o&&(a=Ht()(a,o.filterPanels));var s=Object.keys(a);if(s.length)if(\"string\"==typeof t&&(t=[t]),Array.isArray(t)){var u=t.map((function(t){return function(t,e){for(var n=null,r=0;r<t.columns.length;r++){var i=t.columns[r];if(i.columnKey===e){n=i;break}}return n}(e,t)}));s.forEach((function(t){var e=u.find((function(e){return e.id===t}));e&&(a[t].filteredValue=[])})),this.commit(\"filterChange\",{column:u,values:[],silent:!0,multi:!0})}else s.forEach((function(t){a[t].filteredValue=[]})),e.filters={},this.commit(\"filterChange\",{column:{},values:[],silent:!0})},clearSort:function(){this.states.sortingColumn&&(this.updateSort(null,null,null),this.commit(\"changeSortCondition\",{silent:!0}))},setExpandRowKeysAdapter:function(t){this.setExpandRowKeys(t),this.updateTreeExpandKeys(t)},toggleRowExpansionAdapter:function(t,e){this.states.columns.some((function(t){return\"expand\"===t.type}))?this.toggleRowExpansion(t,e):this.toggleTreeExpansion(t,e)}}});Ln.prototype.mutations={setData:function(t,e){var n=t._data!==e;t._data=e,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),t.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(t,e,n,r){var i=t._columns;r&&((i=r.children)||(i=r.children=[])),void 0!==n?i.splice(n,0,e):i.push(e),\"selection\"===e.type&&(t.selectable=e.selectable,t.reserveSelection=e.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(t,e,n){var r=t._columns;n&&((r=n.children)||(r=n.children=[])),r&&r.splice(r.indexOf(e),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(t,e){var n=e.prop,r=e.order,i=e.init;if(n){var o=Object(v.arrayFind)(t.columns,(function(t){return t.property===n}));o&&(o.order=r,this.updateSort(o,n,r),this.commit(\"changeSortCondition\",{init:i}))}},changeSortCondition:function(t,e){var n=t.sortingColumn,r=t.sortProp,i=t.sortOrder;null===i&&(t.sortingColumn=null,t.sortProp=null);this.execQuery({filter:!0}),e&&(e.silent||e.init)||this.table.$emit(\"sort-change\",{column:n,prop:r,order:i}),this.updateTableScrollY()},filterChange:function(t,e){var n=e.column,r=e.values,i=e.silent,o=this.updateFilters(n,r);this.execQuery(),i||this.table.$emit(\"filter-change\",o),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(t,e){this.toggleRowSelection(e),this.updateAllSelected()},setHoverRow:function(t,e){t.hoverRow=e},setCurrentRow:function(t,e){this.updateCurrentRow(e)}},Ln.prototype.commit=function(t){var e=this.mutations;if(!e[t])throw new Error(\"Action not found: \"+t);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e[t].apply(this,[this.states].concat(r))},Ln.prototype.updateTableScrollY=function(){gn.a.nextTick(this.table.updateScrollY)};var Bn=Ln;function $n(t){var e={};return Object.keys(t).forEach((function(n){var r=t[n],i=void 0;\"string\"==typeof r?i=function(){return this.store.states[r]}:\"function\"==typeof r&&(i=function(){return r.call(this,this.store.states)}),i&&(e[n]=i)})),e}var zn=n(31),Rn=n.n(zn);var Un=function(){function t(e){for(var n in function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=Rn()(),e)e.hasOwnProperty(n)&&(this[n]=e[n]);if(!this.table)throw new Error(\"table is required for Table Layout\");if(!this.store)throw new Error(\"store is required for Table Layout\")}return t.prototype.updateScrollY=function(){if(null===this.height)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var e=t.querySelector(\".el-table__body\"),n=this.scrollY,r=e.offsetHeight>this.bodyHeight;return this.scrollY=r,n!==r}return!1},t.prototype.setHeight=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"height\";if(!gn.a.prototype.$isServer){var r=this.table.$el;if(t=An(t),this.height=t,!r&&(t||0===t))return gn.a.nextTick((function(){return e.setHeight(t,n)}));\"number\"==typeof t?(r.style[n]=t+\"px\",this.updateElsHeight()):\"string\"==typeof t&&(r.style[n]=t,this.updateElsHeight())}},t.prototype.setMaxHeight=function(t){this.setHeight(t,\"max-height\")},t.prototype.getFlattenColumns=function(){var t=[];return this.table.columns.forEach((function(e){e.isColumnGroup?t.push.apply(t,e.columns):t.push(e)})),t},t.prototype.updateElsHeight=function(){var t=this;if(!this.table.$ready)return gn.a.nextTick((function(){return t.updateElsHeight()}));var e=this.table.$refs,n=e.headerWrapper,r=e.appendWrapper,i=e.footerWrapper;if(this.appendHeight=r?r.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(\".el-table__header tr\"):null,a=this.headerDisplayNone(o),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!a&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return gn.a.nextTick((function(){return t.updateElsHeight()}));var u=this.tableHeight=this.table.$el.clientHeight,l=this.footerHeight=i?i.offsetHeight:0;null!==this.height&&(this.bodyHeight=u-s-l+(i?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var c=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?u-(c?0:this.gutterWidth):u,this.updateScrollY(),this.notifyObservers(\"scrollable\")}},t.prototype.headerDisplayNone=function(t){if(!t)return!0;for(var e=t;\"DIV\"!==e.tagName;){if(\"none\"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},t.prototype.updateColumnsWidth=function(){if(!gn.a.prototype.$isServer){var t=this.fit,e=this.table.$el.clientWidth,n=0,r=this.getFlattenColumns(),i=r.filter((function(t){return\"number\"!=typeof t.width}));if(r.forEach((function(t){\"number\"==typeof t.width&&t.realWidth&&(t.realWidth=null)})),i.length>0&&t){r.forEach((function(t){n+=t.width||t.minWidth||80}));var o=this.scrollY?this.gutterWidth:0;if(n<=e-o){this.scrollX=!1;var a=e-o-n;if(1===i.length)i[0].realWidth=(i[0].minWidth||80)+a;else{var s=a/i.reduce((function(t,e){return t+(e.minWidth||80)}),0),u=0;i.forEach((function(t,e){if(0!==e){var n=Math.floor((t.minWidth||80)*s);u+=n,t.realWidth=(t.minWidth||80)+n}})),i[0].realWidth=(i[0].minWidth||80)+a-u}}else this.scrollX=!0,i.forEach((function(t){t.realWidth=t.minWidth}));this.bodyWidth=Math.max(n,e),this.table.resizeState.width=this.bodyWidth}else r.forEach((function(t){t.width||t.minWidth?t.realWidth=t.width||t.minWidth:t.realWidth=80,n+=t.realWidth})),this.scrollX=n>e,this.bodyWidth=n;var l=this.store.states.fixedColumns;if(l.length>0){var c=0;l.forEach((function(t){c+=t.realWidth||t.width})),this.fixedWidth=c}var h=this.store.states.rightFixedColumns;if(h.length>0){var f=0;h.forEach((function(t){f+=t.realWidth||t.width})),this.rightFixedWidth=f}this.notifyObservers(\"columns\")}},t.prototype.addObserver=function(t){this.observers.push(t)},t.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);-1!==e&&this.observers.splice(e,1)},t.prototype.notifyObservers=function(t){var e=this;this.observers.forEach((function(n){switch(t){case\"columns\":n.onColumnsChange(e);break;case\"scrollable\":n.onScrollableChange(e);break;default:throw new Error(\"Table Layout don't have event \"+t+\".\")}}))},t}(),Vn=Un,Hn={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var t=this.layout;if(!t&&this.table&&(t=this.table.layout),!t)throw new Error(\"Can not find table layout.\");return t}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(t){var e=this.$el.querySelectorAll(\"colgroup > col\");if(e.length){var n=t.getFlattenColumns(),r={};n.forEach((function(t){r[t.id]=t}));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=a.getAttribute(\"name\"),u=r[s];u&&a.setAttribute(\"width\",u.realWidth||u.width)}}},onScrollableChange:function(t){for(var e=this.$el.querySelectorAll(\"colgroup > col[name=gutter]\"),n=0,r=e.length;n<r;n++){e[n].setAttribute(\"width\",t.scrollY?t.gutterWidth:\"0\")}for(var i=this.$el.querySelectorAll(\"th.gutter\"),o=0,a=i.length;o<a;o++){var s=i[o];s.style.width=t.scrollY?t.gutterWidth+\"px\":\"0\",s.style.display=t.scrollY?\"\":\"none\"}}}},Gn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qn={name:\"ElTableRow\",props:[\"columns\",\"row\",\"index\",\"isSelected\",\"isExpanded\",\"store\",\"context\",\"firstDefaultColumnIndex\",\"treeRowData\",\"treeIndent\",\"columnsHidden\",\"getSpan\",\"getColspanRealWidth\",\"getCellStyle\",\"getCellClass\",\"handleCellMouseLeave\",\"handleCellMouseEnter\",\"fixed\"],components:{ElCheckbox:cn.a},render:function(){var t=this,e=arguments[0],n=this.columns,r=this.row,i=this.index,o=this.store,a=this.context,s=this.firstDefaultColumnIndex,u=this.treeRowData,l=this.treeIndent,c=this.columnsHidden,h=void 0===c?[]:c,f=this.isSelected,d=this.isExpanded;return e(\"tr\",[n.map((function(c,p){var m=t.getSpan(r,c,i,p),v=m.rowspan,g=m.colspan;if(!v||!g)return null;var y=Gn({},c);y.realWidth=t.getColspanRealWidth(n,g,p);var b={store:o,isSelected:f,isExpanded:d,_self:a,column:y,row:r,$index:i};return p===s&&u&&(b.treeNode={indent:u.level*l,level:u.level},\"boolean\"==typeof u.expanded&&(b.treeNode.expanded=u.expanded,\"loading\"in u&&(b.treeNode.loading=u.loading),\"noLazyChildren\"in u&&(b.treeNode.noLazyChildren=u.noLazyChildren))),e(\"td\",{style:t.getCellStyle(i,p,r,c),class:t.getCellClass(i,p,r,c),attrs:{rowspan:v,colspan:g},on:{mouseenter:function(e){return t.handleCellMouseEnter(e,r)},mouseleave:t.handleCellMouseLeave}},[c.renderCell.call(t._renderProxy,t.$createElement,b,h[p])])}))])}},Wn=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)},Yn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Zn={name:\"ElTableBody\",mixins:[Hn],components:{ElCheckbox:cn.a,ElTooltip:Tt.a,TableRow:qn},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(t){var e=this,n=this.data||[];return t(\"table\",{class:\"el-table__body\",attrs:{cellspacing:\"0\",cellpadding:\"0\",border:\"0\"}},[t(\"colgroup\",[this.columns.map((function(e){return t(\"col\",{attrs:{name:e.id},key:e.id})}))]),t(\"tbody\",[n.reduce((function(t,n){return t.concat(e.wrappedRowRender(n,t.length))}),[]),t(\"el-tooltip\",{attrs:{effect:this.table.tooltipEffect,placement:\"top\",content:this.tooltipContent},ref:\"tooltip\"})])])},computed:Yn({table:function(){return this.$parent}},$n({data:\"data\",columns:\"columns\",treeIndent:\"indent\",leftFixedLeafCount:\"fixedLeafColumnsLength\",rightFixedLeafCount:\"rightFixedLeafColumnsLength\",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length},hasExpandColumn:function(t){return t.columns.some((function(t){return\"expand\"===t.type}))}}),{columnsHidden:function(){var t=this;return this.columns.map((function(e,n){return t.isColumnHidden(n)}))},firstDefaultColumnIndex:function(){return Object(v.arrayFindIndex)(this.columns,(function(t){return\"default\"===t.type}))}}),watch:{\"store.states.hoverRow\":function(t,e){var n=this;if(this.store.states.isComplex&&!this.$isServer){var r=window.requestAnimationFrame;r||(r=function(t){return setTimeout(t,16)}),r((function(){var r=n.$el.querySelectorAll(\".el-table__row\"),i=r[e],o=r[t];i&&Object(vt.removeClass)(i,\"hover-row\"),o&&Object(vt.addClass)(o,\"hover-row\")}))}}},data:function(){return{tooltipContent:\"\"}},created:function(){this.activateTooltip=T()(50,(function(t){return t.handleShowPopper()}))},methods:{getKeyOfRow:function(t,e){var n=this.table.rowKey;return n?Sn(t,n):e},isColumnHidden:function(t){return!0===this.fixed||\"left\"===this.fixed?t>=this.leftFixedLeafCount:\"right\"===this.fixed?t<this.columnsCount-this.rightFixedLeafCount:t<this.leftFixedLeafCount||t>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(t,e,n,r){var i=1,o=1,a=this.table.spanMethod;if(\"function\"==typeof a){var s=a({row:t,column:e,rowIndex:n,columnIndex:r});Array.isArray(s)?(i=s[0],o=s[1]):\"object\"===(void 0===s?\"undefined\":Wn(s))&&(i=s.rowspan,o=s.colspan)}return{rowspan:i,colspan:o}},getRowStyle:function(t,e){var n=this.table.rowStyle;return\"function\"==typeof n?n.call(null,{row:t,rowIndex:e}):n||null},getRowClass:function(t,e){var n=this.store.states.selection,r=[\"el-table__row\"];if(this.table.highlightCurrentRow&&t===this.store.states.currentRow&&r.push(\"current-row\"),this.table.highlightSelectionRow)for(var i=0;i<n.length;i++)Tn(t,n[i])&&r.push(\"selection-row\");this.stripe&&e%2==1&&r.push(\"el-table__row--striped\");var o=this.table.rowClassName;return\"string\"==typeof o?r.push(o):\"function\"==typeof o&&r.push(o.call(null,{row:t,rowIndex:e})),this.store.states.expandRows.indexOf(t)>-1&&r.push(\"expanded\"),r},getCellStyle:function(t,e,n,r){var i=this.table.cellStyle;return\"function\"==typeof i?i.call(null,{rowIndex:t,columnIndex:e,row:n,column:r}):i},getCellClass:function(t,e,n,r){var i=[r.id,r.align,r.className];this.isColumnHidden(e)&&i.push(\"is-hidden\");var o=this.table.cellClassName;return\"string\"==typeof o?i.push(o):\"function\"==typeof o&&i.push(o.call(null,{rowIndex:t,columnIndex:e,row:n,column:r})),i.push(\"el-table__cell\"),i.join(\" \")},getColspanRealWidth:function(t,e,n){return e<1?t[n].realWidth:t.map((function(t){return t.realWidth})).slice(n,n+e).reduce((function(t,e){return t+e}),-1)},handleCellMouseEnter:function(t,e){var n=this.table,r=bn(t);if(r){var i=kn(n,r),o=n.hoverState={cell:r,column:i,row:e};n.$emit(\"cell-mouse-enter\",o.row,o.column,o.cell,t)}var a=t.target.querySelector(\".cell\");if(Object(vt.hasClass)(a,\"el-tooltip\")&&a.childNodes.length){var s=document.createRange();if(s.setStart(a,0),s.setEnd(a,a.childNodes.length),(s.getBoundingClientRect().width+((parseInt(Object(vt.getStyle)(a,\"paddingLeft\"),10)||0)+(parseInt(Object(vt.getStyle)(a,\"paddingRight\"),10)||0))>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var u=this.$refs.tooltip;this.tooltipContent=r.innerText||r.textContent,u.referenceElm=r,u.$refs.popper&&(u.$refs.popper.style.display=\"none\"),u.doDestroy(),u.setExpectedState(!0),this.activateTooltip(u)}}},handleCellMouseLeave:function(t){var e=this.$refs.tooltip;if(e&&(e.setExpectedState(!1),e.handleClosePopper()),bn(t)){var n=this.table.hoverState||{};this.table.$emit(\"cell-mouse-leave\",n.row,n.column,n.cell,t)}},handleMouseEnter:T()(30,(function(t){this.store.commit(\"setHoverRow\",t)})),handleMouseLeave:T()(30,(function(){this.store.commit(\"setHoverRow\",null)})),handleContextMenu:function(t,e){this.handleEvent(t,e,\"contextmenu\")},handleDoubleClick:function(t,e){this.handleEvent(t,e,\"dblclick\")},handleClick:function(t,e){this.store.commit(\"setCurrentRow\",e),this.handleEvent(t,e,\"click\")},handleEvent:function(t,e,n){var r=this.table,i=bn(t),o=void 0;i&&(o=kn(r,i))&&r.$emit(\"cell-\"+n,e,o,i,t),r.$emit(\"row-\"+n,e,o,t)},rowRender:function(t,e,n){var r=this,i=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,u=this.getRowClass(t,e),l=!0;return n&&(u.push(\"el-table__row--level-\"+n.level),l=n.display),i(qn,{style:[l?null:{display:\"none\"},this.getRowStyle(t,e)],class:u,key:this.getKeyOfRow(t,e),nativeOn:{dblclick:function(e){return r.handleDoubleClick(e,t)},click:function(e){return r.handleClick(e,t)},contextmenu:function(e){return r.handleContextMenu(e,t)},mouseenter:function(t){return r.handleMouseEnter(e)},mouseleave:this.handleMouseLeave},attrs:{columns:a,row:t,index:e,store:this.store,context:this.context||this.table.$vnode.context,firstDefaultColumnIndex:s,treeRowData:n,treeIndent:o,columnsHidden:this.columnsHidden,getSpan:this.getSpan,getColspanRealWidth:this.getColspanRealWidth,getCellStyle:this.getCellStyle,getCellClass:this.getCellClass,handleCellMouseEnter:this.handleCellMouseEnter,handleCellMouseLeave:this.handleCellMouseLeave,isSelected:this.store.isSelected(t),isExpanded:this.store.states.expandRows.indexOf(t)>-1,fixed:this.fixed}})},wrappedRowRender:function(t,e){var n=this,r=this.$createElement,i=this.store,o=i.isRowExpanded,a=i.assertRowKey,s=i.states,u=s.treeData,l=s.lazyTreeNodeMap,c=s.childrenColumnName,h=s.rowKey;if(this.hasExpandColumn&&o(t)){var f=this.table.renderExpanded,d=this.rowRender(t,e);return f?[[d,r(\"tr\",{key:\"expanded-row__\"+d.key},[r(\"td\",{attrs:{colspan:this.columnsCount},class:\"el-table__cell el-table__expanded-cell\"},[f(this.$createElement,{row:t,$index:e,store:this.store})])])]]:d}if(Object.keys(u).length){a();var p=Sn(t,h),m=u[p],v=null;m&&(v={expanded:m.expanded,level:m.level,display:!0},\"boolean\"==typeof m.lazy&&(\"boolean\"==typeof m.loaded&&m.loaded&&(v.noLazyChildren=!(m.children&&m.children.length)),v.loading=m.loading));var g=[this.rowRender(t,e,v)];if(m){var y=0;m.display=!0,function t(r,i){r&&r.length&&i&&r.forEach((function(r){var o={display:i.display&&i.expanded,level:i.level+1},a=Sn(r,h);if(null==a)throw new Error(\"for nested data item, row-key is required.\");if((m=Yn({},u[a]))&&(o.expanded=m.expanded,m.level=m.level||o.level,m.display=!(!m.expanded||!o.display),\"boolean\"==typeof m.lazy&&(\"boolean\"==typeof m.loaded&&m.loaded&&(o.noLazyChildren=!(m.children&&m.children.length)),o.loading=m.loading)),y++,g.push(n.rowRender(r,e+y,o)),m){var s=l[a]||r[c];t(s,m)}}))}(l[p]||t[c],m)}return g}return this.rowRender(t,e)}}},Kn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-zoom-in-top\"}},[t.multiple?n(\"div\",{directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:t.handleOutsideClick,expression:\"handleOutsideClick\"},{name:\"show\",rawName:\"v-show\",value:t.showPopper,expression:\"showPopper\"}],staticClass:\"el-table-filter\"},[n(\"div\",{staticClass:\"el-table-filter__content\"},[n(\"el-scrollbar\",{attrs:{\"wrap-class\":\"el-table-filter__wrap\"}},[n(\"el-checkbox-group\",{staticClass:\"el-table-filter__checkbox-group\",model:{value:t.filteredValue,callback:function(e){t.filteredValue=e},expression:\"filteredValue\"}},t._l(t.filters,(function(e){return n(\"el-checkbox\",{key:e.value,attrs:{label:e.value}},[t._v(t._s(e.text))])})),1)],1)],1),n(\"div\",{staticClass:\"el-table-filter__bottom\"},[n(\"button\",{class:{\"is-disabled\":0===t.filteredValue.length},attrs:{disabled:0===t.filteredValue.length},on:{click:t.handleConfirm}},[t._v(t._s(t.t(\"el.table.confirmFilter\")))]),n(\"button\",{on:{click:t.handleReset}},[t._v(t._s(t.t(\"el.table.resetFilter\")))])])]):n(\"div\",{directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:t.handleOutsideClick,expression:\"handleOutsideClick\"},{name:\"show\",rawName:\"v-show\",value:t.showPopper,expression:\"showPopper\"}],staticClass:\"el-table-filter\"},[n(\"ul\",{staticClass:\"el-table-filter__list\"},[n(\"li\",{staticClass:\"el-table-filter__list-item\",class:{\"is-active\":void 0===t.filterValue||null===t.filterValue},on:{click:function(e){t.handleSelect(null)}}},[t._v(t._s(t.t(\"el.table.clearFilter\")))]),t._l(t.filters,(function(e){return n(\"li\",{key:e.value,staticClass:\"el-table-filter__list-item\",class:{\"is-active\":t.isActive(e)},attrs:{label:e.value},on:{click:function(n){t.handleSelect(e.value)}}},[t._v(t._s(e.text))])}))],2)])])};Kn._withStripped=!0;var Xn=[];!gn.a.prototype.$isServer&&document.addEventListener(\"click\",(function(t){Xn.forEach((function(e){var n=t.target;e&&e.$el&&(n===e.$el||e.$el.contains(n)||e.handleOutsideClick&&e.handleOutsideClick(t))}))}));var Jn=function(t){t&&Xn.push(t)},Qn=function(t){-1!==Xn.indexOf(t)&&Xn.splice(t,1)},tr=n(32),er=n.n(tr),nr=o({name:\"ElTableFilterPanel\",mixins:[N.a,m.a],directives:{Clickoutside:P.a},components:{ElCheckbox:cn.a,ElCheckboxGroup:er.a,ElScrollbar:B.a},props:{placement:{type:String,default:\"bottom-end\"}},methods:{isActive:function(t){return t.value===this.filterValue},handleOutsideClick:function(){var t=this;setTimeout((function(){t.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(t){this.filterValue=t,null!=t?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(t){this.table.store.commit(\"filterChange\",{column:this.column,values:t}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(t){this.filteredValue&&(null!=t?this.filteredValue.splice(0,1,t):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(t){this.column&&(this.column.filteredValue=t)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var t=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener(\"scroll\",(function(){t.updatePopper()})),this.$watch(\"showPopper\",(function(e){t.column&&(t.column.filterOpened=e),e?Jn(t):Qn(t)}))},watch:{showPopper:function(t){!0===t&&parseInt(this.popperJS._popper.style.zIndex,10)<_.PopupManager.zIndex&&(this.popperJS._popper.style.zIndex=_.PopupManager.nextZIndex())}}},Kn,[],!1,null,null,null);nr.options.__file=\"packages/table/src/filter-panel.vue\";var rr=nr.exports,ir=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},or=function t(e){var n=[];return e.forEach((function(e){e.children?(n.push(e),n.push.apply(n,t(e.children))):n.push(e)})),n},ar=function(t){var e=1,n=function t(n,r){if(r&&(n.level=r.level+1,e<n.level&&(e=n.level)),n.children){var i=0;n.children.forEach((function(e){t(e,n),i+=e.colSpan})),n.colSpan=i}else n.colSpan=1};t.forEach((function(t){t.level=1,n(t)}));for(var r=[],i=0;i<e;i++)r.push([]);return or(t).forEach((function(t){t.children?t.rowSpan=1:t.rowSpan=e-t.level+1,r[t.level-1].push(t)})),r},sr={name:\"ElTableHeader\",mixins:[Hn],render:function(t){var e=this,n=this.store.states.originColumns,r=ar(n,this.columns),i=r.length>1;return i&&(this.$parent.isGroup=!0),t(\"table\",{class:\"el-table__header\",attrs:{cellspacing:\"0\",cellpadding:\"0\",border:\"0\"}},[t(\"colgroup\",[this.columns.map((function(e){return t(\"col\",{attrs:{name:e.id},key:e.id})})),this.hasGutter?t(\"col\",{attrs:{name:\"gutter\"}}):\"\"]),t(\"thead\",{class:[{\"is-group\":i,\"has-gutter\":this.hasGutter}]},[this._l(r,(function(n,r){return t(\"tr\",{style:e.getHeaderRowStyle(r),class:e.getHeaderRowClass(r)},[n.map((function(i,o){return t(\"th\",{attrs:{colspan:i.colSpan,rowspan:i.rowSpan},on:{mousemove:function(t){return e.handleMouseMove(t,i)},mouseout:e.handleMouseOut,mousedown:function(t){return e.handleMouseDown(t,i)},click:function(t){return e.handleHeaderClick(t,i)},contextmenu:function(t){return e.handleHeaderContextMenu(t,i)}},style:e.getHeaderCellStyle(r,o,n,i),class:e.getHeaderCellClass(r,o,n,i),key:i.id},[t(\"div\",{class:[\"cell\",i.filteredValue&&i.filteredValue.length>0?\"highlight\":\"\",i.labelClassName]},[i.renderHeader?i.renderHeader.call(e._renderProxy,t,{column:i,$index:o,store:e.store,_self:e.$parent.$vnode.context}):i.label,i.sortable?t(\"span\",{class:\"caret-wrapper\",on:{click:function(t){return e.handleSortClick(t,i)}}},[t(\"i\",{class:\"sort-caret ascending\",on:{click:function(t){return e.handleSortClick(t,i,\"ascending\")}}}),t(\"i\",{class:\"sort-caret descending\",on:{click:function(t){return e.handleSortClick(t,i,\"descending\")}}})]):\"\",i.filterable?t(\"span\",{class:\"el-table__column-filter-trigger\",on:{click:function(t){return e.handleFilterClick(t,i)}}},[t(\"i\",{class:[\"el-icon-arrow-down\",i.filterOpened?\"el-icon-arrow-up\":\"\"]})]):\"\"])])})),e.hasGutter?t(\"th\",{class:\"el-table__cell gutter\"}):\"\"])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:\"\",order:\"\"}}}},components:{ElCheckbox:cn.a},computed:ir({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},$n({columns:\"columns\",isAllSelected:\"isAllSelected\",leftFixedLeafCount:\"fixedLeafColumnsLength\",rightFixedLeafCount:\"rightFixedLeafColumnsLength\",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var t=this;this.$nextTick((function(){var e=t.defaultSort,n=e.prop,r=e.order;t.store.commit(\"sort\",{prop:n,order:r,init:!0})}))},beforeDestroy:function(){var t=this.filterPanels;for(var e in t)t.hasOwnProperty(e)&&t[e]&&t[e].$destroy(!0)},methods:{isCellHidden:function(t,e){for(var n=0,r=0;r<t;r++)n+=e[r].colSpan;var i=n+e[t].colSpan-1;return!0===this.fixed||\"left\"===this.fixed?i>=this.leftFixedLeafCount:\"right\"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:i<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(t){var e=this.table.headerRowStyle;return\"function\"==typeof e?e.call(null,{rowIndex:t}):e},getHeaderRowClass:function(t){var e=[],n=this.table.headerRowClassName;return\"string\"==typeof n?e.push(n):\"function\"==typeof n&&e.push(n.call(null,{rowIndex:t})),e.join(\" \")},getHeaderCellStyle:function(t,e,n,r){var i=this.table.headerCellStyle;return\"function\"==typeof i?i.call(null,{rowIndex:t,columnIndex:e,row:n,column:r}):i},getHeaderCellClass:function(t,e,n,r){var i=[r.id,r.order,r.headerAlign,r.className,r.labelClassName];0===t&&this.isCellHidden(e,n)&&i.push(\"is-hidden\"),r.children||i.push(\"is-leaf\"),r.sortable&&i.push(\"is-sortable\");var o=this.table.headerCellClassName;return\"string\"==typeof o?i.push(o):\"function\"==typeof o&&i.push(o.call(null,{rowIndex:t,columnIndex:e,row:n,column:r})),i.push(\"el-table__cell\"),i.join(\" \")},toggleAllSelection:function(){this.store.commit(\"toggleAllSelection\")},handleFilterClick:function(t,e){t.stopPropagation();var n=t.target,r=\"TH\"===n.tagName?n:n.parentNode;if(!Object(vt.hasClass)(r,\"noclick\")){r=r.querySelector(\".el-table__column-filter-trigger\")||r;var i=this.$parent,o=this.filterPanels[e.id];o&&e.filterOpened?o.showPopper=!1:(o||(o=new gn.a(rr),this.filterPanels[e.id]=o,e.filterPlacement&&(o.placement=e.filterPlacement),o.table=i,o.cell=r,o.column=e,!this.$isServer&&o.$mount(document.createElement(\"div\"))),setTimeout((function(){o.showPopper=!0}),16))}},handleHeaderClick:function(t,e){!e.filters&&e.sortable?this.handleSortClick(t,e):e.filterable&&!e.sortable&&this.handleFilterClick(t,e),this.$parent.$emit(\"header-click\",e,t)},handleHeaderContextMenu:function(t,e){this.$parent.$emit(\"header-contextmenu\",e,t)},handleMouseDown:function(t,e){var n=this;if(!this.$isServer&&!(e.children&&e.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var r=this.$parent,i=r.$el.getBoundingClientRect().left,o=this.$el.querySelector(\"th.\"+e.id),a=o.getBoundingClientRect(),s=a.left-i+30;Object(vt.addClass)(o,\"noclick\"),this.dragState={startMouseLeft:t.clientX,startLeft:a.right-i,startColumnLeft:a.left-i,tableLeft:i};var u=r.$refs.resizeProxy;u.style.left=this.dragState.startLeft+\"px\",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var l=function(t){var e=t.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+e;u.style.left=Math.max(s,r)+\"px\"};document.addEventListener(\"mousemove\",l),document.addEventListener(\"mouseup\",(function i(){if(n.dragging){var a=n.dragState,s=a.startColumnLeft,c=a.startLeft,h=parseInt(u.style.left,10)-s;e.width=e.realWidth=h,r.$emit(\"header-dragend\",e.width,c-s,e,t),n.store.scheduleLayout(),document.body.style.cursor=\"\",n.dragging=!1,n.draggingColumn=null,n.dragState={},r.resizeProxyVisible=!1}document.removeEventListener(\"mousemove\",l),document.removeEventListener(\"mouseup\",i),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(vt.removeClass)(o,\"noclick\")}),0)}))}},handleMouseMove:function(t,e){if(!(e.children&&e.children.length>0)){for(var n=t.target;n&&\"TH\"!==n.tagName;)n=n.parentNode;if(e&&e.resizable&&!this.dragging&&this.border){var r=n.getBoundingClientRect(),i=document.body.style;r.width>12&&r.right-t.pageX<8?(i.cursor=\"col-resize\",Object(vt.hasClass)(n,\"is-sortable\")&&(n.style.cursor=\"col-resize\"),this.draggingColumn=e):this.dragging||(i.cursor=\"\",Object(vt.hasClass)(n,\"is-sortable\")&&(n.style.cursor=\"pointer\"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor=\"\")},toggleOrder:function(t){var e=t.order,n=t.sortOrders;if(\"\"===e)return n[0];var r=n.indexOf(e||null);return n[r>n.length-2?0:r+1]},handleSortClick:function(t,e,n){t.stopPropagation();for(var r=e.order===n?null:n||this.toggleOrder(e),i=t.target;i&&\"TH\"!==i.tagName;)i=i.parentNode;if(i&&\"TH\"===i.tagName&&Object(vt.hasClass)(i,\"noclick\"))Object(vt.removeClass)(i,\"noclick\");else if(e.sortable){var o=this.store.states,a=o.sortProp,s=void 0,u=o.sortingColumn;(u!==e||u===e&&null===u.order)&&(u&&(u.order=null),o.sortingColumn=e,a=e.property),s=e.order=r||null,o.sortProp=a,o.sortOrder=s,this.store.commit(\"changeSortCondition\")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},ur=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lr={name:\"ElTableFooter\",mixins:[Hn],render:function(t){var e=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach((function(t,r){if(0!==r){var i=e.store.states.data.map((function(e){return Number(e[t.property])})),o=[],a=!0;i.forEach((function(t){if(!isNaN(t)){a=!1;var e=(\"\"+t).split(\".\")[1];o.push(e?e.length:0)}}));var s=Math.max.apply(null,o);n[r]=a?\"\":i.reduce((function(t,e){var n=Number(e);return isNaN(n)?t:parseFloat((t+e).toFixed(Math.min(s,20)))}),0)}else n[r]=e.sumText})),t(\"table\",{class:\"el-table__footer\",attrs:{cellspacing:\"0\",cellpadding:\"0\",border:\"0\"}},[t(\"colgroup\",[this.columns.map((function(e){return t(\"col\",{attrs:{name:e.id},key:e.id})})),this.hasGutter?t(\"col\",{attrs:{name:\"gutter\"}}):\"\"]),t(\"tbody\",{class:[{\"has-gutter\":this.hasGutter}]},[t(\"tr\",[this.columns.map((function(r,i){return t(\"td\",{key:i,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},class:[].concat(e.getRowClasses(r,i),[\"el-table__cell\"])},[t(\"div\",{class:[\"cell\",r.labelClassName]},[n[i]])])})),this.hasGutter?t(\"th\",{class:\"el-table__cell gutter\"}):\"\"])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:\"\",order:\"\"}}}},computed:ur({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},$n({columns:\"columns\",isAllSelected:\"isAllSelected\",leftFixedLeafCount:\"fixedLeafColumnsLength\",rightFixedLeafCount:\"rightFixedLeafColumnsLength\",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length}})),methods:{isCellHidden:function(t,e,n){if(!0===this.fixed||\"left\"===this.fixed)return t>=this.leftFixedLeafCount;if(\"right\"===this.fixed){for(var r=0,i=0;i<t;i++)r+=e[i].colSpan;return r<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(t<this.leftFixedCount||t>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(t,e){var n=[t.id,t.align,t.labelClassName];return t.className&&n.push(t.className),this.isCellHidden(e,this.columns,t)&&n.push(\"is-hidden\"),t.children||n.push(\"is-leaf\"),n}}},cr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hr=1,fr={name:\"ElTable\",mixins:[m.a,k.a],directives:{Mousewheel:mn},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,highlightSelectionRow:{type:Boolean,default:!1},currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:\"hasChildren\",children:\"children\"}}},lazy:Boolean,load:Function},components:{TableHeader:sr,TableFooter:lr,TableBody:Zn,ElCheckbox:cn.a},methods:{getMigratingConfig:function(){return{events:{expand:\"expand is renamed to expand-change\"}}},setCurrentRow:function(t){this.store.commit(\"setCurrentRow\",t)},toggleRowSelection:function(t,e){this.store.toggleRowSelection(t,e,!1),this.store.updateAllSelected()},toggleRowExpansion:function(t,e){this.store.toggleRowExpansionAdapter(t,e)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(t){this.store.clearFilter(t)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit(\"setHoverRow\",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){this.layout.updateScrollY()&&(this.layout.notifyObservers(\"scrollable\"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(t,e){var n=this.bodyWrapper;if(Math.abs(e.spinY)>0){var r=n.scrollTop;e.pixelY<0&&0!==r&&t.preventDefault(),e.pixelY>0&&n.scrollHeight-n.clientHeight>r&&t.preventDefault(),n.scrollTop+=Math.ceil(e.pixelY/5)}else n.scrollLeft+=Math.ceil(e.pixelX/5)},handleHeaderFooterMousewheel:function(t,e){var n=e.pixelX,r=e.pixelY;Math.abs(n)>=Math.abs(r)&&(this.bodyWrapper.scrollLeft+=e.pixelX/5)},syncPostion:function(){var t=this.bodyWrapper,e=t.scrollLeft,n=t.scrollTop,r=t.offsetWidth,i=t.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,u=o.fixedBodyWrapper,l=o.rightFixedBodyWrapper;a&&(a.scrollLeft=e),s&&(s.scrollLeft=e),u&&(u.scrollTop=n),l&&(l.scrollTop=n);var c=i-r-1;this.scrollPosition=e>=c?\"right\":0===e?\"left\":\"middle\"},throttleSyncPostion:Object(hn.throttle)(16,(function(){this.syncPostion()})),onScroll:function(t){var e=window.requestAnimationFrame;e?e(this.syncPostion):this.throttleSyncPostion()},bindEvents:function(){this.bodyWrapper.addEventListener(\"scroll\",this.onScroll,{passive:!0}),this.fit&&Object(Re.addResizeListener)(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener(\"scroll\",this.onScroll,{passive:!0}),this.fit&&Object(Re.removeResizeListener)(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var t=!1,e=this.$el,n=this.resizeState,r=n.width,i=n.height,o=e.offsetWidth;r!==o&&(t=!0);var a=e.offsetHeight;(this.height||this.shouldUpdateHeight)&&i!==a&&(t=!0),t&&(this.resizeState.width=o,this.resizeState.height=a,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(t,e){this.store.commit(\"sort\",{prop:t,order:e})},toggleAllSelection:function(){this.store.commit(\"toggleAllSelection\")}},computed:cr({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var t=this.layout,e=t.bodyWidth,n=t.scrollY,r=t.gutterWidth;return e?e-(n?r:0)+\"px\":\"\"},bodyHeight:function(){var t=this.layout,e=t.headerHeight,n=void 0===e?0:e,r=t.bodyHeight,i=t.footerHeight,o=void 0===i?0:i;if(this.height)return{height:r?r+\"px\":\"\"};if(this.maxHeight){var a=An(this.maxHeight);if(\"number\"==typeof a)return{\"max-height\":a-o-(this.showHeader?n:0)+\"px\"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+\"px\":\"\"};if(this.maxHeight){var t=An(this.maxHeight);if(\"number\"==typeof t)return t=this.layout.scrollX?t-this.layout.gutterWidth:t,this.showHeader&&(t-=this.layout.headerHeight),{\"max-height\":(t-=this.layout.footerHeight)+\"px\"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+\"px\":\"\"}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+\"px\":\"\"}:{height:this.layout.viewportHeight?this.layout.viewportHeight+\"px\":\"\"}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var t=\"100%\";return this.layout.appendHeight&&(t=\"calc(100% - \"+this.layout.appendHeight+\"px)\"),{width:this.bodyWidth,height:t}}},$n({selection:\"selection\",columns:\"columns\",tableData:\"data\",fixedColumns:\"fixedColumns\",rightFixedColumns:\"rightFixedColumns\"})),watch:{height:{immediate:!0,handler:function(t){this.layout.setHeight(t)}},maxHeight:{immediate:!0,handler:function(t){this.layout.setMaxHeight(t)}},currentRowKey:{immediate:!0,handler:function(t){this.rowKey&&this.store.setCurrentRowKey(t)}},data:{immediate:!0,handler:function(t){this.store.commit(\"setData\",t)}},expandRowKeys:{immediate:!0,handler:function(t){t&&this.store.setExpandRowKeysAdapter(t)}}},created:function(){var t=this;this.tableId=\"el-table_\"+hr++,this.debouncedUpdateLayout=Object(hn.debounce)(50,(function(){return t.doLayout()}))},mounted:function(){var t=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(e){e.filteredValue&&e.filteredValue.length&&t.store.commit(\"filterChange\",{column:e,values:e.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var t=this.treeProps,e=t.hasChildren,n=void 0===e?\"hasChildren\":e,r=t.children,i=void 0===r?\"children\":r;return this.store=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error(\"Table is required.\");var n=new Bn;return n.table=t,n.toggleAllSelection=T()(10,n._toggleAllSelection),Object.keys(e).forEach((function(t){n.states[t]=e[t]})),n}(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:i}),{layout:new Vn({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader}),isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:\"left\"}}},dr=o(fr,un,[],!1,null,null,null);dr.options.__file=\"packages/table/src/table.vue\";var pr=dr.exports;pr.install=function(t){t.component(pr.name,pr)};var mr=pr,vr={default:{order:\"\"},selection:{width:48,minWidth:48,realWidth:48,order:\"\",className:\"el-table-column--selection\"},expand:{width:48,minWidth:48,realWidth:48,order:\"\"},index:{width:48,minWidth:48,realWidth:48,order:\"\"}},gr={selection:{renderHeader:function(t,e){var n=e.store;return t(\"el-checkbox\",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},on:{input:this.toggleAllSelection}})},renderCell:function(t,e){var n=e.row,r=e.column,i=e.isSelected,o=e.store,a=e.$index;return t(\"el-checkbox\",{nativeOn:{click:function(t){return t.stopPropagation()}},attrs:{value:i,disabled:!!r.selectable&&!r.selectable.call(null,n,a)},on:{input:function(){o.commit(\"rowSelectedChanged\",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(t,e){return e.column.label||\"#\"},renderCell:function(t,e){var n=e.$index,r=n+1,i=e.column.index;return\"number\"==typeof i?r=n+i:\"function\"==typeof i&&(r=i(n)),t(\"div\",[r])},sortable:!1},expand:{renderHeader:function(t,e){return e.column.label||\"\"},renderCell:function(t,e){var n=e.row,r=e.store,i=[\"el-table__expand-icon\"];e.isExpanded&&i.push(\"el-table__expand-icon--expanded\");return t(\"div\",{class:i,on:{click:function(t){t.stopPropagation(),r.toggleRowExpansion(n)}}},[t(\"i\",{class:\"el-icon el-icon-arrow-right\"})])},sortable:!1,resizable:!1,className:\"el-table__expand-column\"}};function yr(t,e){var n=e.row,r=e.column,i=e.$index,o=r.property,a=o&&Object(v.getPropByPath)(n,o).v;return r&&r.formatter?r.formatter(n,r,a,i):a}var br=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_r=1,wr={name:\"ElTableColumn\",props:{type:{type:String,default:\"default\"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return[\"ascending\",\"descending\",null]},validator:function(t){return t.every((function(t){return[\"ascending\",\"descending\",null].indexOf(t)>-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){for(var t=this.$parent;t&&!t.tableId;)t=t.$parent;return t},columnOrTableParent:function(){for(var t=this.$parent;t&&!t.tableId&&!t.columnId;)t=t.$parent;return t},realWidth:function(){return Dn(this.width)},realMinWidth:function(){return void 0!==(t=this.minWidth)&&(t=Dn(t),isNaN(t)&&(t=80)),t;var t},realAlign:function(){return this.align?\"is-\"+this.align:null},realHeaderAlign:function(){return this.headerAlign?\"is-\"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((function(e,n){return Array.isArray(n)&&n.forEach((function(n){e[n]=t[n]})),e}),{})},getColumnElIndex:function(t,e){return[].indexOf.call(t,e)},setColumnWidth:function(t){return this.realWidth&&(t.width=this.realWidth),this.realMinWidth&&(t.minWidth=this.realMinWidth),t.minWidth||(t.minWidth=80),t.realWidth=void 0===t.width?t.minWidth:t.width,t},setColumnForcedProps:function(t){var e=t.type,n=gr[e]||{};return Object.keys(n).forEach((function(e){var r=n[e];void 0!==r&&(t[e]=\"className\"===e?t[e]+\" \"+r:r)})),t},setColumnRenders:function(t){var e=this;this.$createElement;this.renderHeader||\"selection\"!==t.type&&(t.renderHeader=function(n,r){var i=e.$scopedSlots.header;return i?i(r):t.label});var n=t.renderCell;return\"expand\"===t.type?(t.renderCell=function(t,e){return t(\"div\",{class:\"cell\"},[n(t,e)])},this.owner.renderExpanded=function(t,n){return e.$scopedSlots.default?e.$scopedSlots.default(n):e.$slots.default}):(n=n||yr,t.renderCell=function(r,i){var o=null;o=e.$scopedSlots.default?e.$scopedSlots.default(i):n(r,i);var a=function(t,e){var n=e.row,r=e.treeNode,i=e.store;if(!r)return null;var o=[];if(r.indent&&o.push(t(\"span\",{class:\"el-table__indent\",style:{\"padding-left\":r.indent+\"px\"}})),\"boolean\"!=typeof r.expanded||r.noLazyChildren)o.push(t(\"span\",{class:\"el-table__placeholder\"}));else{var a=[\"el-table__expand-icon\",r.expanded?\"el-table__expand-icon--expanded\":\"\"],s=[\"el-icon-arrow-right\"];r.loading&&(s=[\"el-icon-loading\"]),o.push(t(\"div\",{class:a,on:{click:function(t){t.stopPropagation(),i.loadOrToggle(n)}}},[t(\"i\",{class:s})]))}return o}(r,i),s={class:\"cell\",style:{}};return t.showOverflowTooltip&&(s.class+=\" el-tooltip\",s.style={width:(i.column.realWidth||i.column.width)-1+\"px\"}),r(\"div\",s,[a,o])}),t},registerNormalWatchers:function(){var t=this,e={prop:\"property\",realAlign:\"align\",realHeaderAlign:\"headerAlign\",realWidth:\"width\"},n=[\"label\",\"property\",\"filters\",\"filterMultiple\",\"sortable\",\"index\",\"formatter\",\"className\",\"labelClassName\",\"showOverflowTooltip\"].reduce((function(t,e){return t[e]=e,t}),e);Object.keys(n).forEach((function(n){var r=e[n];t.$watch(n,(function(e){t.columnConfig[r]=e}))}))},registerComplexWatchers:function(){var t=this,e={realWidth:\"width\",realMinWidth:\"minWidth\"},n=[\"fixed\"].reduce((function(t,e){return t[e]=e,t}),e);Object.keys(n).forEach((function(n){var r=e[n];t.$watch(n,(function(e){t.columnConfig[r]=e;var n=\"fixed\"===r;t.owner.store.scheduleLayout(n)}))}))}},components:{ElCheckbox:cn.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=\"\"},created:function(){var t=this.columnOrTableParent;this.isSubColumn=this.owner!==t,this.columnId=(t.tableId||t.columnId)+\"_column_\"+_r++;var e=this.type||\"default\",n=\"\"===this.sortable||this.sortable,r=br({},vr[e],{id:this.columnId,type:e,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:\"\",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),i=this.getPropsData([\"columnKey\",\"label\",\"className\",\"labelClassName\",\"type\",\"renderHeader\",\"formatter\",\"fixed\",\"resizable\"],[\"sortMethod\",\"sortBy\",\"sortOrders\"],[\"selectable\",\"reserveSelection\"],[\"filterMethod\",\"filters\",\"filterMultiple\",\"filterOpened\",\"filteredValue\",\"filterPlacement\"]);i=function(t,e){var n={},r=void 0;for(r in t)n[r]=t[r];for(r in e)if(En(e,r)){var i=e[r];void 0!==i&&(n[r]=i)}return n}(r,i);var o=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps);i=o(i),this.columnConfig=i,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var t=this.owner,e=this.columnOrTableParent,n=this.isSubColumn?e.$el.children:e.$refs.hiddenColumns.children,r=this.getColumnElIndex(n,this.$el);t.store.commit(\"insertColumn\",this.columnConfig,r,this.isSubColumn?e.columnConfig:null)},destroyed:function(){if(this.$parent){var t=this.$parent;this.owner.store.commit(\"removeColumn\",this.columnConfig,this.isSubColumn?t.columnConfig:null)}},render:function(t){return t(\"div\",this.$slots.default)},install:function(t){t.component(wr.name,wr)}},xr=wr,kr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.ranged?n(\"div\",{directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:t.handleClose,expression:\"handleClose\"}],ref:\"reference\",staticClass:\"el-date-editor el-range-editor el-input__inner\",class:[\"el-date-editor--\"+t.type,t.pickerSize?\"el-range-editor--\"+t.pickerSize:\"\",t.pickerDisabled?\"is-disabled\":\"\",t.pickerVisible?\"is-active\":\"\"],on:{click:t.handleRangeClick,mouseenter:t.handleMouseEnter,mouseleave:function(e){t.showClose=!1},keydown:t.handleKeydown}},[n(\"i\",{class:[\"el-input__icon\",\"el-range__icon\",t.triggerClass]}),n(\"input\",t._b({staticClass:\"el-range-input\",attrs:{autocomplete:\"off\",placeholder:t.startPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[0]},domProps:{value:t.displayValue&&t.displayValue[0]},on:{input:t.handleStartInput,change:t.handleStartChange,focus:t.handleFocus}},\"input\",t.firstInputId,!1)),t._t(\"range-separator\",[n(\"span\",{staticClass:\"el-range-separator\"},[t._v(t._s(t.rangeSeparator))])]),n(\"input\",t._b({staticClass:\"el-range-input\",attrs:{autocomplete:\"off\",placeholder:t.endPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[1]},domProps:{value:t.displayValue&&t.displayValue[1]},on:{input:t.handleEndInput,change:t.handleEndChange,focus:t.handleFocus}},\"input\",t.secondInputId,!1)),t.haveTrigger?n(\"i\",{staticClass:\"el-input__icon el-range__close-icon\",class:[t.showClose?\"\"+t.clearIcon:\"\"],on:{click:t.handleClickIcon}}):t._e()],2):n(\"el-input\",t._b({directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:t.handleClose,expression:\"handleClose\"}],ref:\"reference\",staticClass:\"el-date-editor\",class:\"el-date-editor--\"+t.type,attrs:{readonly:!t.editable||t.readonly||\"dates\"===t.type||\"week\"===t.type||\"years\"===t.type||\"months\"===t.type,disabled:t.pickerDisabled,size:t.pickerSize,name:t.name,placeholder:t.placeholder,value:t.displayValue,validateEvent:!1},on:{focus:t.handleFocus,input:function(e){return t.userInput=e},change:t.handleChange},nativeOn:{keydown:function(e){return t.handleKeydown(e)},mouseenter:function(e){return t.handleMouseEnter(e)},mouseleave:function(e){t.showClose=!1}}},\"el-input\",t.firstInputId,!1),[n(\"i\",{staticClass:\"el-input__icon\",class:t.triggerClass,attrs:{slot:\"prefix\"},on:{click:t.handleFocus},slot:\"prefix\"}),t.haveTrigger?n(\"i\",{staticClass:\"el-input__icon\",class:[t.showClose?\"\"+t.clearIcon:\"\"],attrs:{slot:\"suffix\"},on:{click:t.handleClickIcon},slot:\"suffix\"}):t._e()])};kr._withStripped=!0;var Sr=n(0),Cr={props:{appendToBody:N.a.props.appendToBody,offset:N.a.props.offset,boundariesPadding:N.a.props.boundariesPadding,arrowOffset:N.a.props.arrowOffset,transformOrigin:N.a.props.transformOrigin},methods:N.a.methods,data:function(){return Ht()({visibleArrow:!0},N.a.data)},beforeDestroy:N.a.beforeDestroy},Er={date:\"yyyy-MM-dd\",month:\"yyyy-MM\",months:\"yyyy-MM\",datetime:\"yyyy-MM-dd HH:mm:ss\",time:\"HH:mm:ss\",week:\"yyyywWW\",timerange:\"HH:mm:ss\",daterange:\"yyyy-MM-dd\",monthrange:\"yyyy-MM\",datetimerange:\"yyyy-MM-dd HH:mm:ss\",year:\"yyyy\",years:\"yyyy\"},Dr=[\"date\",\"datetime\",\"time\",\"time-select\",\"week\",\"month\",\"year\",\"daterange\",\"monthrange\",\"timerange\",\"datetimerange\",\"dates\",\"months\",\"years\"],Ar=function(t,e){return\"timestamp\"===e?t.getTime():Object(Sr.formatDate)(t,e)},Or=function(t,e){return\"timestamp\"===e?new Date(Number(t)):Object(Sr.parseDate)(t,e)},Mr=function(t,e){if(Array.isArray(t)&&2===t.length){var n=t[0],r=t[1];if(n&&r)return[Ar(n,e),Ar(r,e)]}return\"\"},Tr=function(t,e,n){if(Array.isArray(t)||(t=t.split(n)),2===t.length){var r=t[0],i=t[1];return[Or(r,e),Or(i,e)]}return[]},Ir={default:{formatter:function(t){return t?\"\"+t:\"\"},parser:function(t){return void 0===t||\"\"===t?null:t}},week:{formatter:function(t,e){var n=Object(Sr.getWeekNumber)(t),r=t.getMonth(),i=new Date(t);1===n&&11===r&&(i.setHours(0,0,0,0),i.setDate(i.getDate()+3-(i.getDay()+6)%7));var o=Object(Sr.formatDate)(i,e);return o=/WW/.test(o)?o.replace(/WW/,n<10?\"0\"+n:n):o.replace(/W/,n)},parser:function(t,e){return Ir.date.parser(t,e)}},date:{formatter:Ar,parser:Or},datetime:{formatter:Ar,parser:Or},daterange:{formatter:Mr,parser:Tr},monthrange:{formatter:Mr,parser:Tr},datetimerange:{formatter:Mr,parser:Tr},timerange:{formatter:Mr,parser:Tr},time:{formatter:Ar,parser:Or},month:{formatter:Ar,parser:Or},year:{formatter:Ar,parser:Or},number:{formatter:function(t){return t?\"\"+t:\"\"},parser:function(t){var e=Number(t);return isNaN(t)?null:e}},dates:{formatter:function(t,e){return t.map((function(t){return Ar(t,e)}))},parser:function(t,e){return(\"string\"==typeof t?t.split(\", \"):t).map((function(t){return t instanceof Date?t:Or(t,e)}))}},months:{formatter:function(t,e){return t.map((function(t){return Ar(t,e)}))},parser:function(t,e){return(\"string\"==typeof t?t.split(\", \"):t).map((function(t){return t instanceof Date?t:Or(t,e)}))}},years:{formatter:function(t,e){return t.map((function(t){return Ar(t,e)}))},parser:function(t,e){return(\"string\"==typeof t?t.split(\", \"):t).map((function(t){return t instanceof Date?t:Or(t,e)}))}}},Pr={left:\"bottom-start\",center:\"bottom\",right:\"bottom-end\"},Fr=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"-\";return t?(0,(Ir[n]||Ir.default).parser)(t,e||Er[n],r):null},jr=function(t,e,n){return t?(0,(Ir[n]||Ir.default).formatter)(t,e||Er[n]):null},Nr=function(t,e){var n=function(t,e){var n=t instanceof Date,r=e instanceof Date;return n&&r?t.getTime()===e.getTime():!n&&!r&&t===e},r=t instanceof Array,i=e instanceof Array;return r&&i?t.length===e.length&&t.every((function(t,r){return n(t,e[r])})):!r&&!i&&n(t,e)},Lr=function(t){return\"string\"==typeof t||t instanceof String},Br=function(t){return null==t||Lr(t)||Array.isArray(t)&&2===t.length&&t.every(Lr)},$r={mixins:[C.a,Cr],inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:\"el-icon-circle-close\"},name:{default:\"\",validator:Br},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:\"\",validator:Br},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:\"left\"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:\"-\"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:d.a},directives:{Clickoutside:P.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(t){this.readonly||this.pickerDisabled||(t?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch(\"ElFormItem\",\"el.form.blur\"),this.$emit(\"blur\",this),this.blur()))},parsedValue:{immediate:!0,handler:function(t){this.picker&&(this.picker.value=t)}},defaultValue:function(t){this.picker&&(this.picker.defaultValue=t)},value:function(t,e){Nr(t,e)||this.pickerVisible||!this.validateEvent||this.dispatch(\"ElFormItem\",\"el.form.change\",t)}},computed:{ranged:function(){return this.type.indexOf(\"range\")>-1},reference:function(){var t=this.$refs.reference;return t.$el||t},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll(\"input\")):[]},valueIsEmpty:function(){var t=this.value;if(Array.isArray(t)){for(var e=0,n=t.length;e<n;e++)if(t[e])return!1}else if(t)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf(\"time\")?\"el-icon-time\":\"el-icon-date\")},selectionMode:function(){return\"week\"===this.type?\"week\":\"month\"===this.type?\"month\":\"year\"===this.type?\"year\":\"dates\"===this.type?\"dates\":\"months\"===this.type?\"months\":\"years\"===this.type?\"years\":\"day\"},haveTrigger:function(){return void 0!==this.showTrigger?this.showTrigger:-1!==Dr.indexOf(this.type)},displayValue:function(){var t=jr(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||t&&t[0]||\"\",this.userInput[1]||t&&t[1]||\"\"]:null!==this.userInput?this.userInput:t?\"dates\"===this.type||\"years\"===this.type||\"months\"===this.type?t.join(\", \"):t:\"\"},parsedValue:function(){return this.value?\"time-select\"===this.type||Object(Sr.isDateObject)(this.value)||Array.isArray(this.value)&&this.value.every(Sr.isDateObject)?this.value:this.valueFormat?Fr(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map((function(t){return new Date(t)})):new Date(this.value):this.value},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var t={},e=void 0;return(e=this.ranged?this.id&&this.id[0]:this.id)&&(t.id=e),t},secondInputId:function(){var t={},e=void 0;return this.ranged&&(e=this.id&&this.id[1]),e&&(t.id=e),t}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=Pr[this.align]||Pr.left,this.$on(\"fieldReset\",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach((function(t){return t.blur()}))},parseValue:function(t){var e=Object(Sr.isDateObject)(t)||Array.isArray(t)&&t.every(Sr.isDateObject);return this.valueFormat&&!e&&Fr(t,this.valueFormat,this.type,this.rangeSeparator)||t},formatToValue:function(t){var e=Object(Sr.isDateObject)(t)||Array.isArray(t)&&t.every(Sr.isDateObject);return this.valueFormat&&e?jr(t,this.valueFormat,this.type,this.rangeSeparator):t},parseString:function(t){var e=Array.isArray(t)?this.type:this.type.replace(\"range\",\"\");return Fr(t,this.format,e)},formatToString:function(t){var e=Array.isArray(t)?this.type:this.type.replace(\"range\",\"\");return jr(t,this.format,e)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var t=this.parseString(this.displayValue);t&&(this.picker.value=t,this.isValidValue(t)&&(this.emitInput(t),this.userInput=null))}\"\"===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(t){this.userInput?this.userInput=[t.target.value,this.userInput[1]]:this.userInput=[t.target.value,null]},handleEndInput:function(t){this.userInput?this.userInput=[this.userInput[0],t.target.value]:this.userInput=[null,t.target.value]},handleStartChange:function(t){var e=this.parseString(this.userInput&&this.userInput[0]);if(e){this.userInput=[this.formatToString(e),this.displayValue[1]];var n=[e,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(t){var e=this.parseString(this.userInput&&this.userInput[1]);if(e){this.userInput=[this.displayValue[0],this.formatToString(e)];var n=[this.picker.value&&this.picker.value[0],e];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(t){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,t.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&\"function\"==typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,\"dates\"===this.type||\"years\"===this.type||\"months\"===this.type)){var t=Fr(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(t)}},handleFieldReset:function(t){this.userInput=\"\"===t?null:t},handleFocus:function(){var t=this.type;-1===Dr.indexOf(t)||this.pickerVisible||(this.pickerVisible=!0),this.$emit(\"focus\",this)},handleKeydown:function(t){var e=this,n=t.keyCode;return 27===n?(this.pickerVisible=!1,void t.stopPropagation()):9!==n?13===n?((\"\"===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void t.stopPropagation()):void(this.userInput?t.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(t)):void(this.ranged?setTimeout((function(){-1===e.refInput.indexOf(document.activeElement)&&(e.pickerVisible=!1,e.blur(),t.stopPropagation())}),0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),t.stopPropagation()))},handleRangeClick:function(){var t=this.type;-1===Dr.indexOf(t)||this.pickerVisible||(this.pickerVisible=!0),this.$emit(\"focus\",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var t=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick((function(){t.picker.adjustSpinners&&t.picker.adjustSpinners()})))},mountPicker:function(){var t=this;this.picker=new gn.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime=\"datetime\"===this.type||\"datetimerange\"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch(\"format\",(function(e){t.picker.format=e}));var e=function(){var e=t.pickerOptions;if(e&&e.selectableRange){var n=e.selectableRange,r=Ir.datetimerange.parser,i=Er.timerange;n=Array.isArray(n)?n:[n],t.picker.selectableRange=n.map((function(e){return r(e,i,t.rangeSeparator)}))}for(var o in e)e.hasOwnProperty(o)&&\"selectableRange\"!==o&&(t.picker[o]=e[o]);t.format&&(t.picker.format=t.format)};e(),this.unwatchPickerOptions=this.$watch(\"pickerOptions\",(function(){return e()}),{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on(\"dodestroy\",this.doDestroy),this.picker.$on(\"pick\",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.userInput=null,t.pickerVisible=t.picker.visible=n,t.emitInput(e),t.picker.resetView&&t.picker.resetView()})),this.picker.$on(\"select-range\",(function(e,n,r){0!==t.refInput.length&&(r&&\"min\"!==r?\"max\"===r&&(t.refInput[1].setSelectionRange(e,n),t.refInput[1].focus()):(t.refInput[0].setSelectionRange(e,n),t.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),\"function\"==typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(t){Nr(t,this.valueOnOpen)||(this.$emit(\"change\",t),this.valueOnOpen=t,this.validateEvent&&this.dispatch(\"ElFormItem\",\"el.form.change\",t))},emitInput:function(t){var e=this.formatToValue(t);Nr(this.value,e)||this.$emit(\"input\",e)},isValidValue:function(t){return this.picker||this.mountPicker(),!this.picker.isValidValue||t&&this.picker.isValidValue(t)}}},zr=o($r,kr,[],!1,null,null,null);zr.options.__file=\"packages/date-picker/src/picker.vue\";var Rr=zr.exports,Ur=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"after-enter\":t.handleEnter,\"after-leave\":t.handleLeave}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-picker-panel el-date-picker el-popper\",class:[{\"has-sidebar\":t.$slots.sidebar||t.shortcuts,\"has-time\":t.showTime},t.popperClass]},[n(\"div\",{staticClass:\"el-picker-panel__body-wrapper\"},[t._t(\"sidebar\"),t.shortcuts?n(\"div\",{staticClass:\"el-picker-panel__sidebar\"},t._l(t.shortcuts,(function(e,r){return n(\"button\",{key:r,staticClass:\"el-picker-panel__shortcut\",attrs:{type:\"button\"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])})),0):t._e(),n(\"div\",{staticClass:\"el-picker-panel__body\"},[t.showTime?n(\"div\",{staticClass:\"el-date-picker__time-header\"},[n(\"span\",{staticClass:\"el-date-picker__editor-wrap\"},[n(\"el-input\",{attrs:{placeholder:t.t(\"el.datepicker.selectDate\"),value:t.visibleDate,size:\"small\"},on:{input:function(e){return t.userInputDate=e},change:t.handleVisibleDateChange}})],1),n(\"span\",{directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:t.handleTimePickClose,expression:\"handleTimePickClose\"}],staticClass:\"el-date-picker__editor-wrap\"},[n(\"el-input\",{ref:\"input\",attrs:{placeholder:t.t(\"el.datepicker.selectTime\"),value:t.visibleTime,size:\"small\"},on:{focus:function(e){t.timePickerVisible=!0},input:function(e){return t.userInputTime=e},change:t.handleVisibleTimeChange}}),n(\"time-picker\",{ref:\"timepicker\",attrs:{\"time-arrow-control\":t.arrowControl,visible:t.timePickerVisible},on:{pick:t.handleTimePick,mounted:t.proxyTimePickerDataProperties}})],1)]):t._e(),n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:\"time\"!==t.currentView,expression:\"currentView !== 'time'\"}],staticClass:\"el-date-picker__header\",class:{\"el-date-picker__header--bordered\":\"year\"===t.currentView||\"month\"===t.currentView}},[n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left\",attrs:{type:\"button\",\"aria-label\":t.t(\"el.datepicker.prevYear\")},on:{click:t.prevYear}}),n(\"button\",{directives:[{name:\"show\",rawName:\"v-show\",value:\"date\"===t.currentView,expression:\"currentView === 'date'\"}],staticClass:\"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left\",attrs:{type:\"button\",\"aria-label\":t.t(\"el.datepicker.prevMonth\")},on:{click:t.prevMonth}}),n(\"span\",{staticClass:\"el-date-picker__header-label\",attrs:{role:\"button\"},on:{click:t.showYearPicker}},[t._v(t._s(t.yearLabel))]),n(\"span\",{directives:[{name:\"show\",rawName:\"v-show\",value:\"date\"===t.currentView,expression:\"currentView === 'date'\"}],staticClass:\"el-date-picker__header-label\",class:{active:\"month\"===t.currentView},attrs:{role:\"button\"},on:{click:t.showMonthPicker}},[t._v(t._s(t.t(\"el.datepicker.month\"+(t.month+1))))]),n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right\",attrs:{type:\"button\",\"aria-label\":t.t(\"el.datepicker.nextYear\")},on:{click:t.nextYear}}),n(\"button\",{directives:[{name:\"show\",rawName:\"v-show\",value:\"date\"===t.currentView,expression:\"currentView === 'date'\"}],staticClass:\"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right\",attrs:{type:\"button\",\"aria-label\":t.t(\"el.datepicker.nextMonth\")},on:{click:t.nextMonth}})]),n(\"div\",{staticClass:\"el-picker-panel__content\"},[n(\"date-table\",{directives:[{name:\"show\",rawName:\"v-show\",value:\"date\"===t.currentView,expression:\"currentView === 'date'\"}],attrs:{\"selection-mode\":t.selectionMode,\"first-day-of-week\":t.firstDayOfWeek,value:t.value,\"default-value\":t.defaultValue?new Date(t.defaultValue):null,date:t.date,\"cell-class-name\":t.cellClassName,\"disabled-date\":t.disabledDate},on:{pick:t.handleDatePick}}),n(\"year-table\",{directives:[{name:\"show\",rawName:\"v-show\",value:\"year\"===t.currentView,expression:\"currentView === 'year'\"}],attrs:{\"selection-mode\":t.selectionMode,value:t.value,\"default-value\":t.defaultValue?new Date(t.defaultValue):null,date:t.date,\"disabled-date\":t.disabledDate},on:{pick:t.handleYearPick}}),n(\"month-table\",{directives:[{name:\"show\",rawName:\"v-show\",value:\"month\"===t.currentView,expression:\"currentView === 'month'\"}],attrs:{\"selection-mode\":t.selectionMode,value:t.value,\"default-value\":t.defaultValue?new Date(t.defaultValue):null,date:t.date,\"disabled-date\":t.disabledDate},on:{pick:t.handleMonthPick}})],1)])],2),n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.footerVisible&&(\"date\"===t.currentView||\"month\"===t.currentView||\"year\"===t.currentView),expression:\"footerVisible && (currentView === 'date' || currentView === 'month' || currentView === 'year')\"}],staticClass:\"el-picker-panel__footer\"},[n(\"el-button\",{directives:[{name:\"show\",rawName:\"v-show\",value:\"dates\"!==t.selectionMode&&\"months\"!==t.selectionMode&&\"years\"!==t.selectionMode,expression:\"selectionMode !== 'dates' && selectionMode !== 'months' && selectionMode !== 'years'\"}],staticClass:\"el-picker-panel__link-btn\",attrs:{size:\"mini\",type:\"text\"},on:{click:t.changeToNow}},[t._v(\"\\n        \"+t._s(t.t(\"el.datepicker.now\"))+\"\\n      \")]),n(\"el-button\",{staticClass:\"el-picker-panel__link-btn\",attrs:{plain:\"\",size:\"mini\"},on:{click:t.confirm}},[t._v(\"\\n        \"+t._s(t.t(\"el.datepicker.confirm\"))+\"\\n      \")])],1)])])};Ur._withStripped=!0;var Vr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"after-leave\":function(e){t.$emit(\"dodestroy\")}}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-time-panel el-popper\",class:t.popperClass},[n(\"div\",{staticClass:\"el-time-panel__content\",class:{\"has-seconds\":t.showSeconds}},[n(\"time-spinner\",{ref:\"spinner\",attrs:{\"arrow-control\":t.useArrow,\"show-seconds\":t.showSeconds,\"am-pm-mode\":t.amPmMode,date:t.date},on:{change:t.handleChange,\"select-range\":t.setSelectionRange}})],1),n(\"div\",{staticClass:\"el-time-panel__footer\"},[n(\"button\",{staticClass:\"el-time-panel__btn cancel\",attrs:{type:\"button\"},on:{click:t.handleCancel}},[t._v(t._s(t.t(\"el.datepicker.cancel\")))]),n(\"button\",{staticClass:\"el-time-panel__btn\",class:{confirm:!t.disabled},attrs:{type:\"button\"},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t(\"el.datepicker.confirm\")))])])])])};Vr._withStripped=!0;var Hr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-time-spinner\",class:{\"has-seconds\":t.showSeconds}},[t.arrowControl?t._e():[n(\"el-scrollbar\",{ref:\"hours\",staticClass:\"el-time-spinner__wrapper\",attrs:{\"wrap-style\":\"max-height: inherit;\",\"view-class\":\"el-time-spinner__list\",noresize:\"\",tag:\"ul\"},nativeOn:{mouseenter:function(e){t.emitSelectRange(\"hours\")},mousemove:function(e){t.adjustCurrentSpinner(\"hours\")}}},t._l(t.hoursList,(function(e,r){return n(\"li\",{key:r,staticClass:\"el-time-spinner__item\",class:{active:r===t.hours,disabled:e},on:{click:function(n){t.handleClick(\"hours\",{value:r,disabled:e})}}},[t._v(t._s((\"0\"+(t.amPmMode?r%12||12:r)).slice(-2))+t._s(t.amPm(r)))])})),0),n(\"el-scrollbar\",{ref:\"minutes\",staticClass:\"el-time-spinner__wrapper\",attrs:{\"wrap-style\":\"max-height: inherit;\",\"view-class\":\"el-time-spinner__list\",noresize:\"\",tag:\"ul\"},nativeOn:{mouseenter:function(e){t.emitSelectRange(\"minutes\")},mousemove:function(e){t.adjustCurrentSpinner(\"minutes\")}}},t._l(t.minutesList,(function(e,r){return n(\"li\",{key:r,staticClass:\"el-time-spinner__item\",class:{active:r===t.minutes,disabled:!e},on:{click:function(e){t.handleClick(\"minutes\",{value:r,disabled:!1})}}},[t._v(t._s((\"0\"+r).slice(-2)))])})),0),n(\"el-scrollbar\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.showSeconds,expression:\"showSeconds\"}],ref:\"seconds\",staticClass:\"el-time-spinner__wrapper\",attrs:{\"wrap-style\":\"max-height: inherit;\",\"view-class\":\"el-time-spinner__list\",noresize:\"\",tag:\"ul\"},nativeOn:{mouseenter:function(e){t.emitSelectRange(\"seconds\")},mousemove:function(e){t.adjustCurrentSpinner(\"seconds\")}}},t._l(60,(function(e,r){return n(\"li\",{key:r,staticClass:\"el-time-spinner__item\",class:{active:r===t.seconds},on:{click:function(e){t.handleClick(\"seconds\",{value:r,disabled:!1})}}},[t._v(t._s((\"0\"+r).slice(-2)))])})),0)],t.arrowControl?[n(\"div\",{staticClass:\"el-time-spinner__wrapper is-arrow\",on:{mouseenter:function(e){t.emitSelectRange(\"hours\")}}},[n(\"i\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:t.decrease,expression:\"decrease\"}],staticClass:\"el-time-spinner__arrow el-icon-arrow-up\"}),n(\"i\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:t.increase,expression:\"increase\"}],staticClass:\"el-time-spinner__arrow el-icon-arrow-down\"}),n(\"ul\",{ref:\"hours\",staticClass:\"el-time-spinner__list\"},t._l(t.arrowHourList,(function(e,r){return n(\"li\",{key:r,staticClass:\"el-time-spinner__item\",class:{active:e===t.hours,disabled:t.hoursList[e]}},[t._v(t._s(void 0===e?\"\":(\"0\"+(t.amPmMode?e%12||12:e)).slice(-2)+t.amPm(e)))])})),0)]),n(\"div\",{staticClass:\"el-time-spinner__wrapper is-arrow\",on:{mouseenter:function(e){t.emitSelectRange(\"minutes\")}}},[n(\"i\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:t.decrease,expression:\"decrease\"}],staticClass:\"el-time-spinner__arrow el-icon-arrow-up\"}),n(\"i\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:t.increase,expression:\"increase\"}],staticClass:\"el-time-spinner__arrow el-icon-arrow-down\"}),n(\"ul\",{ref:\"minutes\",staticClass:\"el-time-spinner__list\"},t._l(t.arrowMinuteList,(function(e,r){return n(\"li\",{key:r,staticClass:\"el-time-spinner__item\",class:{active:e===t.minutes}},[t._v(\"\\n          \"+t._s(void 0===e?\"\":(\"0\"+e).slice(-2))+\"\\n        \")])})),0)]),t.showSeconds?n(\"div\",{staticClass:\"el-time-spinner__wrapper is-arrow\",on:{mouseenter:function(e){t.emitSelectRange(\"seconds\")}}},[n(\"i\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:t.decrease,expression:\"decrease\"}],staticClass:\"el-time-spinner__arrow el-icon-arrow-up\"}),n(\"i\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:t.increase,expression:\"increase\"}],staticClass:\"el-time-spinner__arrow el-icon-arrow-down\"}),n(\"ul\",{ref:\"seconds\",staticClass:\"el-time-spinner__list\"},t._l(t.arrowSecondList,(function(e,r){return n(\"li\",{key:r,staticClass:\"el-time-spinner__item\",class:{active:e===t.seconds}},[t._v(\"\\n          \"+t._s(void 0===e?\"\":(\"0\"+e).slice(-2))+\"\\n        \")])})),0)]):t._e()]:t._e()],2)};Hr._withStripped=!0;var Gr={components:{ElScrollbar:B.a},directives:{repeatClick:Kt},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:\"\"}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(Sr.getRangeHours)(this.selectableRange)},minutesList:function(){return Object(Sr.getRangeMinutes)(this.selectableRange,this.hours)},arrowHourList:function(){var t=this.hours;return[t>0?t-1:void 0,t,t<23?t+1:void 0]},arrowMinuteList:function(){var t=this.minutes;return[t>0?t-1:void 0,t,t<59?t+1:void 0]},arrowSecondList:function(){var t=this.seconds;return[t>0?t-1:void 0,t,t<59?t+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var t=this;this.$nextTick((function(){!t.arrowControl&&t.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(t,e){switch(t){case\"hours\":this.$emit(\"change\",Object(Sr.modifyTime)(this.date,e,this.minutes,this.seconds));break;case\"minutes\":this.$emit(\"change\",Object(Sr.modifyTime)(this.date,this.hours,e,this.seconds));break;case\"seconds\":this.$emit(\"change\",Object(Sr.modifyTime)(this.date,this.hours,this.minutes,e))}},handleClick:function(t,e){var n=e.value;e.disabled||(this.modifyDateField(t,n),this.emitSelectRange(t),this.adjustSpinner(t,n))},emitSelectRange:function(t){\"hours\"===t?this.$emit(\"select-range\",0,2):\"minutes\"===t?this.$emit(\"select-range\",3,5):\"seconds\"===t&&this.$emit(\"select-range\",6,8),this.currentScrollbar=t},bindScrollEvent:function(){var t=this,e=function(e){t.$refs[e].wrap.onscroll=function(n){t.handleScroll(e,n)}};e(\"hours\"),e(\"minutes\"),e(\"seconds\")},handleScroll:function(t){var e=Math.min(Math.round((this.$refs[t].wrap.scrollTop-(.5*this.scrollBarHeight(t)-10)/this.typeItemHeight(t)+3)/this.typeItemHeight(t)),\"hours\"===t?23:59);this.modifyDateField(t,e)},adjustSpinners:function(){this.adjustSpinner(\"hours\",this.hours),this.adjustSpinner(\"minutes\",this.minutes),this.adjustSpinner(\"seconds\",this.seconds)},adjustCurrentSpinner:function(t){this.adjustSpinner(t,this[t])},adjustSpinner:function(t,e){if(!this.arrowControl){var n=this.$refs[t].wrap;n&&(n.scrollTop=Math.max(0,e*this.typeItemHeight(t)))}},scrollDown:function(t){var e=this;this.currentScrollbar||this.emitSelectRange(\"hours\");var n=this.currentScrollbar,r=this.hoursList,i=this[n];if(\"hours\"===this.currentScrollbar){var o=Math.abs(t);t=t>0?1:-1;for(var a=r.length;a--&&o;)r[i=(i+t+r.length)%r.length]||o--;if(r[i])return}else i=(i+t+60)%60;this.modifyDateField(n,i),this.adjustSpinner(n,i),this.$nextTick((function(){return e.emitSelectRange(e.currentScrollbar)}))},amPm:function(t){if(!(\"a\"===this.amPmMode.toLowerCase()))return\"\";var e=t<12?\" am\":\" pm\";return\"A\"===this.amPmMode&&(e=e.toUpperCase()),e},typeItemHeight:function(t){return this.$refs[t].$el.querySelector(\"li\").offsetHeight},scrollBarHeight:function(t){return this.$refs[t].$el.offsetHeight}}},qr=o(Gr,Hr,[],!1,null,null,null);qr.options.__file=\"packages/date-picker/src/basic/time-spinner.vue\";var Wr=qr.exports,Yr={mixins:[m.a],components:{TimeSpinner:Wr},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(t){var e=this;t?(this.oldValue=this.value,this.$nextTick((function(){return e.$refs.spinner.emitSelectRange(\"hours\")}))):this.needInitAdjust=!0},value:function(t){var e=this,n=void 0;t instanceof Date?n=Object(Sr.limitTimeRange)(t,this.selectableRange,this.format):t||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(t){return e.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(t){this.$refs.spinner.selectableRange=t},defaultValue:function(t){Object(Sr.isDate)(this.value)||(this.date=t?new Date(t):new Date)}},data:function(){return{popperClass:\"\",format:\"HH:mm:ss\",value:\"\",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||\"\").indexOf(\"ss\")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||\"\").indexOf(\"A\")?\"A\":-1!==(this.format||\"\").indexOf(\"a\")?\"a\":\"\"}},methods:{handleCancel:function(){this.$emit(\"pick\",this.oldValue,!1)},handleChange:function(t){this.visible&&(this.date=Object(Sr.clearMilliseconds)(t),this.isValidValue(this.date)&&this.$emit(\"pick\",this.date,!0))},setSelectionRange:function(t,e){this.$emit(\"select-range\",t,e),this.selectionRange=[t,e]},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];if(!e){var n=Object(Sr.clearMilliseconds)(Object(Sr.limitTimeRange)(this.date,this.selectableRange,this.format));this.$emit(\"pick\",n,t,e)}},handleKeydown:function(t){var e=t.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===e||39===e){var r=n[e];return this.changeSelectionRange(r),void t.preventDefault()}if(38===e||40===e){var i=n[e];return this.$refs.spinner.scrollDown(i),void t.preventDefault()}},isValidValue:function(t){return Object(Sr.timeWithinRange)(t,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(t){var e=[0,3].concat(this.showSeconds?[6]:[]),n=[\"hours\",\"minutes\"].concat(this.showSeconds?[\"seconds\"]:[]),r=(e.indexOf(this.selectionRange[0])+t+e.length)%e.length;this.$refs.spinner.emitSelectRange(n[r])}},mounted:function(){var t=this;this.$nextTick((function(){return t.handleConfirm(!0,!0)})),this.$emit(\"mounted\")}},Zr=o(Yr,Vr,[],!1,null,null,null);Zr.options.__file=\"packages/date-picker/src/panel/time.vue\";var Kr=Zr.exports,Xr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"table\",{staticClass:\"el-year-table\",on:{click:t.handleYearTableClick}},[n(\"tbody\",[n(\"tr\",[n(\"td\",{staticClass:\"available\",class:t.getCellStyle(t.startYear+0)},[n(\"a\",{staticClass:\"cell\"},[t._v(t._s(t.startYear))])]),n(\"td\",{staticClass:\"available\",class:t.getCellStyle(t.startYear+1)},[n(\"a\",{staticClass:\"cell\"},[t._v(t._s(t.startYear+1))])]),n(\"td\",{staticClass:\"available\",class:t.getCellStyle(t.startYear+2)},[n(\"a\",{staticClass:\"cell\"},[t._v(t._s(t.startYear+2))])]),n(\"td\",{staticClass:\"available\",class:t.getCellStyle(t.startYear+3)},[n(\"a\",{staticClass:\"cell\"},[t._v(t._s(t.startYear+3))])])]),n(\"tr\",[n(\"td\",{staticClass:\"available\",class:t.getCellStyle(t.startYear+4)},[n(\"a\",{staticClass:\"cell\"},[t._v(t._s(t.startYear+4))])]),n(\"td\",{staticClass:\"available\",class:t.getCellStyle(t.startYear+5)},[n(\"a\",{staticClass:\"cell\"},[t._v(t._s(t.startYear+5))])]),n(\"td\",{staticClass:\"available\",class:t.getCellStyle(t.startYear+6)},[n(\"a\",{staticClass:\"cell\"},[t._v(t._s(t.startYear+6))])]),n(\"td\",{staticClass:\"available\",class:t.getCellStyle(t.startYear+7)},[n(\"a\",{staticClass:\"cell\"},[t._v(t._s(t.startYear+7))])])]),n(\"tr\",[n(\"td\",{staticClass:\"available\",class:t.getCellStyle(t.startYear+8)},[n(\"a\",{staticClass:\"cell\"},[t._v(t._s(t.startYear+8))])]),n(\"td\",{staticClass:\"available\",class:t.getCellStyle(t.startYear+9)},[n(\"a\",{staticClass:\"cell\"},[t._v(t._s(t.startYear+9))])]),n(\"td\"),n(\"td\")])])])};Xr._withStripped=!0;var Jr=o({props:{disabledDate:{},value:{},defaultValue:{validator:function(t){return null===t||t instanceof Date&&Object(Sr.isDate)(t)}},date:{},selectionMode:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(t){var e={},n=new Date;return e.disabled=\"function\"==typeof this.disabledDate&&function(t){var e=Object(Sr.getDayCountOfYear)(t),n=new Date(t,0,1);return Object(Sr.range)(e).map((function(t){return Object(Sr.nextDate)(n,t)}))}(t).every(this.disabledDate),e.current=Object(v.arrayFindIndex)(Object(v.coerceTruthyValueToArray)(this.value),(function(e){return e.getFullYear()===t}))>=0,e.today=n.getFullYear()===t,e.default=this.defaultValue&&this.defaultValue.getFullYear()===t,e},handleYearTableClick:function(t){var e=t.target;if(\"A\"===e.tagName){if(Object(vt.hasClass)(e.parentNode,\"disabled\"))return;var n=e.textContent||e.innerText;if(\"years\"===this.selectionMode){var r=this.value||[],i=Object(v.arrayFindIndex)(r,(function(t){return t.getFullYear()===Number(n)})),o=i>-1?[].concat(r.slice(0,i),r.slice(i+1)):[].concat(r,[new Date(n)]);this.$emit(\"pick\",o)}else this.$emit(\"pick\",Number(n))}}}},Xr,[],!1,null,null,null);Jr.options.__file=\"packages/date-picker/src/basic/year-table.vue\";var Qr=Jr.exports,ti=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"table\",{staticClass:\"el-month-table\",on:{click:t.handleMonthTableClick,mousemove:t.handleMouseMove}},[n(\"tbody\",t._l(t.rows,(function(e,r){return n(\"tr\",{key:r},t._l(e,(function(e,r){return n(\"td\",{key:r,class:t.getCellStyle(e)},[n(\"div\",[n(\"a\",{staticClass:\"cell\"},[t._v(t._s(t.t(\"el.datepicker.months.\"+t.months[e.text])))])])])})),0)})),0)])};ti._withStripped=!0;var ei=function(t){return new Date(t.getFullYear(),t.getMonth())},ni=function(t){return\"number\"==typeof t||\"string\"==typeof t?ei(new Date(t)).getTime():t instanceof Date?ei(t).getTime():NaN},ri=o({props:{disabledDate:{},value:{},selectionMode:{default:\"month\"},minDate:{},maxDate:{},defaultValue:{validator:function(t){return null===t||Object(Sr.isDate)(t)||Array.isArray(t)&&t.every(Sr.isDate)}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[m.a],watch:{\"rangeState.endDate\":function(t){this.markRange(this.minDate,t)},minDate:function(t,e){ni(t)!==ni(e)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(t,e){ni(t)!==ni(e)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:[\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\"sep\",\"oct\",\"nov\",\"dec\"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(t,e){var n=new Date(e);return this.date.getFullYear()===n.getFullYear()&&Number(t.text)===n.getMonth()},getCellStyle:function(t){var e=this,n={},r=this.date.getFullYear(),i=new Date,o=t.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled=\"function\"==typeof this.disabledDate&&function(t,e){var n=Object(Sr.getDayCountOfMonth)(t,e),r=new Date(t,e,1);return Object(Sr.range)(n).map((function(t){return Object(Sr.nextDate)(r,t)}))}(r,o).every(this.disabledDate),n.current=Object(v.arrayFindIndex)(Object(v.coerceTruthyValueToArray)(this.value),(function(t){return t.getFullYear()===r&&t.getMonth()===o}))>=0,n.today=i.getFullYear()===r&&i.getMonth()===o,n.default=a.some((function(n){return e.cellMatchesDate(t,n)})),t.inRange&&(n[\"in-range\"]=!0,t.start&&(n[\"start-date\"]=!0),t.end&&(n[\"end-date\"]=!0)),n},getMonthOfCell:function(t){var e=this.date.getFullYear();return new Date(e,t,1)},markRange:function(t,e){t=ni(t),e=ni(e)||t;var n=[Math.min(t,e),Math.max(t,e)];t=n[0],e=n[1];for(var r=this.rows,i=0,o=r.length;i<o;i++)for(var a=r[i],s=0,u=a.length;s<u;s++){var l=a[s],c=4*i+s,h=new Date(this.date.getFullYear(),c).getTime();l.inRange=t&&h>=t&&h<=e,l.start=t&&h===t,l.end=e&&h===e}},handleMouseMove:function(t){if(this.rangeState.selecting){var e=t.target;if(\"A\"===e.tagName&&(e=e.parentNode.parentNode),\"DIV\"===e.tagName&&(e=e.parentNode),\"TD\"===e.tagName){var n=e.parentNode.rowIndex,r=e.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit(\"changerange\",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+r)}}))}}},handleMonthTableClick:function(t){var e=t.target;if(\"A\"===e.tagName&&(e=e.parentNode.parentNode),\"DIV\"===e.tagName&&(e=e.parentNode),\"TD\"===e.tagName&&!Object(vt.hasClass)(e,\"disabled\")){var n,r,i,o=e.cellIndex,a=4*e.parentNode.rowIndex+o,s=this.getMonthOfCell(a);if(\"range\"===this.selectionMode)this.rangeState.selecting?(s>=this.minDate?this.$emit(\"pick\",{minDate:this.minDate,maxDate:s}):this.$emit(\"pick\",{minDate:s,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit(\"pick\",{minDate:s,maxDate:null}),this.rangeState.selecting=!0);else if(\"months\"===this.selectionMode){var u=this.value||[],l=this.date.getFullYear(),c=Object(v.arrayFindIndex)(u,(function(t){return t.getFullYear()===l&&t.getMonth()===a}))>=0?(n=u,(i=\"function\"==typeof(r=function(t){return t.getTime()===s.getTime()})?Object(v.arrayFindIndex)(n,r):n.indexOf(r))>=0?[].concat(n.slice(0,i),n.slice(i+1)):n):[].concat(u,[s]);this.$emit(\"pick\",c)}else this.$emit(\"pick\",a)}}},computed:{rows:function(){for(var t=this,e=this.tableRows,n=this.disabledDate,r=[],i=ni(new Date),o=0;o<3;o++)for(var a=e[o],s=function(e){var s=a[e];s||(s={row:o,column:e,type:\"normal\",inRange:!1,start:!1,end:!1}),s.type=\"normal\";var u=4*o+e,l=new Date(t.date.getFullYear(),u).getTime();s.inRange=l>=ni(t.minDate)&&l<=ni(t.maxDate),s.start=t.minDate&&l===ni(t.minDate),s.end=t.maxDate&&l===ni(t.maxDate),l===i&&(s.type=\"today\"),s.text=u;var c=new Date(l);s.disabled=\"function\"==typeof n&&n(c),s.selected=Object(v.arrayFind)(r,(function(t){return t.getTime()===c.getTime()})),t.$set(a,e,s)},u=0;u<4;u++)s(u);return e}}},ti,[],!1,null,null,null);ri.options.__file=\"packages/date-picker/src/basic/month-table.vue\";var ii=ri.exports,oi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"table\",{staticClass:\"el-date-table\",class:{\"is-week-mode\":\"week\"===t.selectionMode},attrs:{cellspacing:\"0\",cellpadding:\"0\"},on:{click:t.handleClick,mousemove:t.handleMouseMove}},[n(\"tbody\",[n(\"tr\",[t.showWeekNumber?n(\"th\",[t._v(t._s(t.t(\"el.datepicker.week\")))]):t._e(),t._l(t.WEEKS,(function(e,r){return n(\"th\",{key:r},[t._v(t._s(t.t(\"el.datepicker.weeks.\"+e)))])}))],2),t._l(t.rows,(function(e,r){return n(\"tr\",{key:r,staticClass:\"el-date-table__row\",class:{current:t.isWeekActive(e[1])}},t._l(e,(function(e,r){return n(\"td\",{key:r,class:t.getCellClasses(e)},[n(\"div\",[n(\"span\",[t._v(\"\\n          \"+t._s(e.text)+\"\\n        \")])])])})),0)}))],2)])};oi._withStripped=!0;var ai=[\"sun\",\"mon\",\"tue\",\"wed\",\"thu\",\"fri\",\"sat\"],si=function(t){return\"number\"==typeof t||\"string\"==typeof t?Object(Sr.clearTime)(new Date(t)).getTime():t instanceof Date?Object(Sr.clearTime)(t).getTime():NaN},ui=o({mixins:[m.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(t){return t>=1&&t<=7}},value:{},defaultValue:{validator:function(t){return null===t||Object(Sr.isDate)(t)||Array.isArray(t)&&t.every(Sr.isDate)}},date:{},selectionMode:{default:\"day\"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var t=this.firstDayOfWeek;return t>3?7-t:-t},WEEKS:function(){var t=this.firstDayOfWeek;return ai.concat(ai).slice(t,t+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(Sr.getStartDateOfMonth)(this.year,this.month)},rows:function(){var t=this,e=new Date(this.year,this.month,1),n=Object(Sr.getFirstDayOfMonth)(e),r=Object(Sr.getDayCountOfMonth)(e.getFullYear(),e.getMonth()),i=Object(Sr.getDayCountOfMonth)(e.getFullYear(),0===e.getMonth()?11:e.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,a=this.tableRows,s=1,u=this.startDate,l=this.disabledDate,c=this.cellClassName,h=\"dates\"===this.selectionMode?Object(v.coerceTruthyValueToArray)(this.value):[],f=si(new Date),d=0;d<6;d++){var p=a[d];this.showWeekNumber&&(p[0]||(p[0]={type:\"week\",text:Object(Sr.getWeekNumber)(Object(Sr.nextDate)(u,7*d+1))}));for(var m=function(e){var a=p[t.showWeekNumber?e+1:e];a||(a={row:d,column:e,type:\"normal\",inRange:!1,start:!1,end:!1}),a.type=\"normal\";var m=7*d+e,g=Object(Sr.nextDate)(u,m-o).getTime();if(a.inRange=g>=si(t.minDate)&&g<=si(t.maxDate),a.start=t.minDate&&g===si(t.minDate),a.end=t.maxDate&&g===si(t.maxDate),g===f&&(a.type=\"today\"),d>=0&&d<=1){var y=n+o<0?7+n+o:n+o;e+7*d>=y?a.text=s++:(a.text=i-(y-e%7)+1+7*d,a.type=\"prev-month\")}else s<=r?a.text=s++:(a.text=s++-r,a.type=\"next-month\");var b=new Date(g);a.disabled=\"function\"==typeof l&&l(b),a.selected=Object(v.arrayFind)(h,(function(t){return t.getTime()===b.getTime()})),a.customClass=\"function\"==typeof c&&c(b),t.$set(p,t.showWeekNumber?e+1:e,a)},g=0;g<7;g++)m(g);if(\"week\"===this.selectionMode){var y=this.showWeekNumber?1:0,b=this.showWeekNumber?7:6,_=this.isWeekActive(p[y+1]);p[y].inRange=_,p[y].start=_,p[b].inRange=_,p[b].end=_}}return a}},watch:{\"rangeState.endDate\":function(t){this.markRange(this.minDate,t)},minDate:function(t,e){si(t)!==si(e)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(t,e){si(t)!==si(e)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(t,e){var n=new Date(e);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(t.text)===n.getDate()},getCellClasses:function(t){var e=this,n=this.selectionMode,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],i=[];return\"normal\"!==t.type&&\"today\"!==t.type||t.disabled?i.push(t.type):(i.push(\"available\"),\"today\"===t.type&&i.push(\"today\")),\"normal\"===t.type&&r.some((function(n){return e.cellMatchesDate(t,n)}))&&i.push(\"default\"),\"day\"!==n||\"normal\"!==t.type&&\"today\"!==t.type||!this.cellMatchesDate(t,this.value)||i.push(\"current\"),!t.inRange||\"normal\"!==t.type&&\"today\"!==t.type&&\"week\"!==this.selectionMode||(i.push(\"in-range\"),t.start&&i.push(\"start-date\"),t.end&&i.push(\"end-date\")),t.disabled&&i.push(\"disabled\"),t.selected&&i.push(\"selected\"),t.customClass&&i.push(t.customClass),i.join(\" \")},getDateOfCell:function(t,e){var n=7*t+(e-(this.showWeekNumber?1:0))-this.offsetDay;return Object(Sr.nextDate)(this.startDate,n)},isWeekActive:function(t){if(\"week\"!==this.selectionMode)return!1;var e=new Date(this.year,this.month,1),n=e.getFullYear(),r=e.getMonth();if(\"prev-month\"===t.type&&(e.setMonth(0===r?11:r-1),e.setFullYear(0===r?n-1:n)),\"next-month\"===t.type&&(e.setMonth(11===r?0:r+1),e.setFullYear(11===r?n+1:n)),e.setDate(parseInt(t.text,10)),Object(Sr.isDate)(this.value)){var i=(this.value.getDay()-this.firstDayOfWeek+7)%7-1;return Object(Sr.prevDate)(this.value,i).getTime()===e.getTime()}return!1},markRange:function(t,e){t=si(t),e=si(e)||t;var n=[Math.min(t,e),Math.max(t,e)];t=n[0],e=n[1];for(var r=this.startDate,i=this.rows,o=0,a=i.length;o<a;o++)for(var s=i[o],u=0,l=s.length;u<l;u++)if(!this.showWeekNumber||0!==u){var c=s[u],h=7*o+u+(this.showWeekNumber?-1:0),f=Object(Sr.nextDate)(r,h-this.offsetDay).getTime();c.inRange=t&&f>=t&&f<=e,c.start=t&&f===t,c.end=e&&f===e}},handleMouseMove:function(t){if(this.rangeState.selecting){var e=t.target;if(\"SPAN\"===e.tagName&&(e=e.parentNode.parentNode),\"DIV\"===e.tagName&&(e=e.parentNode),\"TD\"===e.tagName){var n=e.parentNode.rowIndex-1,r=e.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit(\"changerange\",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,r)}}))}}},handleClick:function(t){var e=t.target;if(\"SPAN\"===e.tagName&&(e=e.parentNode.parentNode),\"DIV\"===e.tagName&&(e=e.parentNode),\"TD\"===e.tagName){var n=e.parentNode.rowIndex-1,r=\"week\"===this.selectionMode?1:e.cellIndex,i=this.rows[n][r];if(!i.disabled&&\"week\"!==i.type){var o,a,s,u=this.getDateOfCell(n,r);if(\"range\"===this.selectionMode)this.rangeState.selecting?(u>=this.minDate?this.$emit(\"pick\",{minDate:this.minDate,maxDate:u}):this.$emit(\"pick\",{minDate:u,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit(\"pick\",{minDate:u,maxDate:null}),this.rangeState.selecting=!0);else if(\"day\"===this.selectionMode)this.$emit(\"pick\",u);else if(\"week\"===this.selectionMode){var l=Object(Sr.getWeekNumber)(u),c=u.getFullYear()+\"w\"+l;this.$emit(\"pick\",{year:u.getFullYear(),week:l,value:c,date:u})}else if(\"dates\"===this.selectionMode){var h=this.value||[],f=i.selected?(o=h,(s=\"function\"==typeof(a=function(t){return t.getTime()===u.getTime()})?Object(v.arrayFindIndex)(o,a):o.indexOf(a))>=0?[].concat(o.slice(0,s),o.slice(s+1)):o):[].concat(h,[u]);this.$emit(\"pick\",f)}}}}}},oi,[],!1,null,null,null);ui.options.__file=\"packages/date-picker/src/basic/date-table.vue\";var li=ui.exports,ci={mixins:[m.a],directives:{Clickoutside:P.a},watch:{showTime:function(t){var e=this;t&&this.$nextTick((function(t){var n=e.$refs.input.$el;n&&(e.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(t){\"dates\"===this.selectionMode&&this.value||\"months\"===this.selectionMode&&this.value||\"years\"===this.selectionMode&&this.value||(Object(Sr.isDate)(t)?this.date=new Date(t):this.date=this.getDefaultValue())},defaultValue:function(t){Object(Sr.isDate)(this.value)||(this.date=t?new Date(t):new Date)},timePickerVisible:function(t){var e=this;t&&this.$nextTick((function(){return e.$refs.timepicker.adjustSpinners()}))},selectionMode:function(t){\"month\"===t?\"year\"===this.currentView&&\"month\"===this.currentView||(this.currentView=\"month\"):\"dates\"===t?this.currentView=\"date\":\"years\"===t?this.currentView=\"year\":\"months\"===t&&(this.currentView=\"month\")}},methods:{proxyTimePickerDataProperties:function(){var t,e=this,n=function(t){e.$refs.timepicker.value=t},r=function(t){e.$refs.timepicker.date=t},i=function(t){e.$refs.timepicker.selectableRange=t};this.$watch(\"value\",n),this.$watch(\"date\",r),this.$watch(\"selectableRange\",i),t=this.timeFormat,e.$refs.timepicker.format=t,n(this.value),r(this.date),i(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit(\"pick\",null)},emit:function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(t)if(Array.isArray(t)){var o=t.map((function(t){return e.showTime?Object(Sr.clearMilliseconds)(t):Object(Sr.clearTime)(t)}));this.$emit.apply(this,[\"pick\",o].concat(r))}else this.$emit.apply(this,[\"pick\",this.showTime?Object(Sr.clearMilliseconds)(t):Object(Sr.clearTime)(t)].concat(r));else this.$emit.apply(this,[\"pick\",t].concat(r));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView=\"month\"},showYearPicker:function(){this.currentView=\"year\"},prevMonth:function(){this.date=Object(Sr.prevMonth)(this.date)},nextMonth:function(){this.date=Object(Sr.nextMonth)(this.date)},prevYear:function(){\"year\"===this.currentView?this.date=Object(Sr.prevYear)(this.date,10):this.date=Object(Sr.prevYear)(this.date)},nextYear:function(){\"year\"===this.currentView?this.date=Object(Sr.nextYear)(this.date,10):this.date=Object(Sr.nextYear)(this.date)},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},handleTimePick:function(t,e,n){if(Object(Sr.isDate)(t)){var r=this.value?Object(Sr.modifyTime)(this.value,t.getHours(),t.getMinutes(),t.getSeconds()):Object(Sr.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=r,this.emit(this.date,!0)}else this.emit(t,!0);n||(this.timePickerVisible=e)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(t){\"month\"===this.selectionMode?(this.date=Object(Sr.modifyDate)(this.date,this.year,t,1),this.emit(this.date)):\"months\"===this.selectionMode?this.emit(t,!0):(this.date=Object(Sr.changeYearMonthAndClampDate)(this.date,this.year,t),this.currentView=\"date\")},handleDatePick:function(t){if(\"day\"===this.selectionMode){var e=this.value?Object(Sr.modifyDate)(this.value,t.getFullYear(),t.getMonth(),t.getDate()):Object(Sr.modifyWithTimeString)(t,this.defaultTime);this.checkDateWithinRange(e)||(e=Object(Sr.modifyDate)(this.selectableRange[0][0],t.getFullYear(),t.getMonth(),t.getDate())),this.date=e,this.emit(this.date,this.showTime)}else\"week\"===this.selectionMode?this.emit(t.date):\"dates\"===this.selectionMode&&this.emit(t,!0)},handleYearPick:function(t){\"year\"===this.selectionMode?(this.date=Object(Sr.modifyDate)(this.date,t,0,1),this.emit(this.date)):\"years\"===this.selectionMode?this.emit(t,!0):(this.date=Object(Sr.changeYearMonthAndClampDate)(this.date,t,this.month),this.currentView=\"month\")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if(\"dates\"===this.selectionMode||\"months\"===this.selectionMode||\"years\"===this.selectionMode)this.emit(this.value);else{var t=this.value?this.value:Object(Sr.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=new Date(t),this.emit(t)}},resetView:function(){\"month\"===this.selectionMode||\"months\"===this.selectionMode?this.currentView=\"month\":\"year\"===this.selectionMode||\"years\"===this.selectionMode?this.currentView=\"year\":this.currentView=\"date\"},handleEnter:function(){document.body.addEventListener(\"keydown\",this.handleKeydown)},handleLeave:function(){this.$emit(\"dodestroy\"),document.body.removeEventListener(\"keydown\",this.handleKeydown)},handleKeydown:function(t){var e=t.keyCode;this.visible&&!this.timePickerVisible&&(-1!==[38,40,37,39].indexOf(e)&&(this.handleKeyControl(e),t.stopPropagation(),t.preventDefault()),13===e&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(t){for(var e={year:{38:-4,40:4,37:-1,39:1,offset:function(t,e){return t.setFullYear(t.getFullYear()+e)}},month:{38:-4,40:4,37:-1,39:1,offset:function(t,e){return t.setMonth(t.getMonth()+e)}},week:{38:-1,40:1,37:-1,39:1,offset:function(t,e){return t.setDate(t.getDate()+7*e)}},day:{38:-7,40:7,37:-1,39:1,offset:function(t,e){return t.setDate(t.getDate()+e)}}},n=this.selectionMode,r=this.date.getTime(),i=new Date(this.date.getTime());Math.abs(r-i.getTime())<=31536e6;){var o=e[n];if(o.offset(i,o[t]),\"function\"!=typeof this.disabledDate||!this.disabledDate(i)){this.date=i,this.$emit(\"pick\",i,!0);break}}},handleVisibleTimeChange:function(t){var e=Object(Sr.parseDate)(t,this.timeFormat);e&&this.checkDateWithinRange(e)&&(this.date=Object(Sr.modifyDate)(e,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(t){var e=Object(Sr.parseDate)(t,this.dateFormat);if(e){if(\"function\"==typeof this.disabledDate&&this.disabledDate(e))return;this.date=Object(Sr.modifyTime)(e,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(t){return t&&!isNaN(t)&&(\"function\"!=typeof this.disabledDate||!this.disabledDate(t))&&this.checkDateWithinRange(t)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(t){return!(this.selectableRange.length>0)||Object(Sr.timeWithinRange)(t,this.selectableRange,this.format||\"HH:mm:ss\")}},components:{TimePicker:Kr,YearTable:Qr,MonthTable:ii,DateTable:li,ElInput:d.a,ElButton:W.a},data:function(){return{popperClass:\"\",date:new Date,value:\"\",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:\"day\",shortcuts:\"\",visible:!1,currentView:\"date\",disabledDate:\"\",cellClassName:\"\",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:\"\",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(Sr.getWeekNumber)(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||\"dates\"===this.selectionMode||\"months\"===this.selectionMode||\"years\"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(Sr.formatDate)(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(Sr.formatDate)(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var t=this.t(\"el.datepicker.year\");if(\"year\"===this.currentView){var e=10*Math.floor(this.year/10);return t?e+\" \"+t+\" - \"+(e+9)+\" \"+t:e+\" - \"+(e+9)}return this.year+\" \"+t},timeFormat:function(){return this.format?Object(Sr.extractTimeFormat)(this.format):\"HH:mm:ss\"},dateFormat:function(){return this.format?Object(Sr.extractDateFormat)(this.format):\"yyyy-MM-dd\"}}},hi=o(ci,Ur,[],!1,null,null,null);hi.options.__file=\"packages/date-picker/src/panel/date.vue\";var fi=hi.exports,di=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"after-leave\":function(e){t.$emit(\"dodestroy\")}}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-picker-panel el-date-range-picker el-popper\",class:[{\"has-sidebar\":t.$slots.sidebar||t.shortcuts,\"has-time\":t.showTime},t.popperClass]},[n(\"div\",{staticClass:\"el-picker-panel__body-wrapper\"},[t._t(\"sidebar\"),t.shortcuts?n(\"div\",{staticClass:\"el-picker-panel__sidebar\"},t._l(t.shortcuts,(function(e,r){return n(\"button\",{key:r,staticClass:\"el-picker-panel__shortcut\",attrs:{type:\"button\"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])})),0):t._e(),n(\"div\",{staticClass:\"el-picker-panel__body\"},[t.showTime?n(\"div\",{staticClass:\"el-date-range-picker__time-header\"},[n(\"span\",{staticClass:\"el-date-range-picker__editors-wrap\"},[n(\"span\",{staticClass:\"el-date-range-picker__time-picker-wrap\"},[n(\"el-input\",{ref:\"minInput\",staticClass:\"el-date-range-picker__editor\",attrs:{size:\"small\",disabled:t.rangeState.selecting,placeholder:t.t(\"el.datepicker.startDate\"),value:t.minVisibleDate},on:{input:function(e){return t.handleDateInput(e,\"min\")},change:function(e){return t.handleDateChange(e,\"min\")}}})],1),n(\"span\",{directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:t.handleMinTimeClose,expression:\"handleMinTimeClose\"}],staticClass:\"el-date-range-picker__time-picker-wrap\"},[n(\"el-input\",{staticClass:\"el-date-range-picker__editor\",attrs:{size:\"small\",disabled:t.rangeState.selecting,placeholder:t.t(\"el.datepicker.startTime\"),value:t.minVisibleTime},on:{focus:function(e){t.minTimePickerVisible=!0},input:function(e){return t.handleTimeInput(e,\"min\")},change:function(e){return t.handleTimeChange(e,\"min\")}}}),n(\"time-picker\",{ref:\"minTimePicker\",attrs:{\"time-arrow-control\":t.arrowControl,visible:t.minTimePickerVisible},on:{pick:t.handleMinTimePick,mounted:function(e){t.$refs.minTimePicker.format=t.timeFormat}}})],1)]),n(\"span\",{staticClass:\"el-icon-arrow-right\"}),n(\"span\",{staticClass:\"el-date-range-picker__editors-wrap is-right\"},[n(\"span\",{staticClass:\"el-date-range-picker__time-picker-wrap\"},[n(\"el-input\",{staticClass:\"el-date-range-picker__editor\",attrs:{size:\"small\",disabled:t.rangeState.selecting,placeholder:t.t(\"el.datepicker.endDate\"),value:t.maxVisibleDate,readonly:!t.minDate},on:{input:function(e){return t.handleDateInput(e,\"max\")},change:function(e){return t.handleDateChange(e,\"max\")}}})],1),n(\"span\",{directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:t.handleMaxTimeClose,expression:\"handleMaxTimeClose\"}],staticClass:\"el-date-range-picker__time-picker-wrap\"},[n(\"el-input\",{staticClass:\"el-date-range-picker__editor\",attrs:{size:\"small\",disabled:t.rangeState.selecting,placeholder:t.t(\"el.datepicker.endTime\"),value:t.maxVisibleTime,readonly:!t.minDate},on:{focus:function(e){t.minDate&&(t.maxTimePickerVisible=!0)},input:function(e){return t.handleTimeInput(e,\"max\")},change:function(e){return t.handleTimeChange(e,\"max\")}}}),n(\"time-picker\",{ref:\"maxTimePicker\",attrs:{\"time-arrow-control\":t.arrowControl,visible:t.maxTimePickerVisible},on:{pick:t.handleMaxTimePick,mounted:function(e){t.$refs.maxTimePicker.format=t.timeFormat}}})],1)])]):t._e(),n(\"div\",{staticClass:\"el-picker-panel__content el-date-range-picker__content is-left\"},[n(\"div\",{staticClass:\"el-date-range-picker__header\"},[n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-d-arrow-left\",attrs:{type:\"button\"},on:{click:t.leftPrevYear}}),n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-arrow-left\",attrs:{type:\"button\"},on:{click:t.leftPrevMonth}}),t.unlinkPanels?n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-d-arrow-right\",class:{\"is-disabled\":!t.enableYearArrow},attrs:{type:\"button\",disabled:!t.enableYearArrow},on:{click:t.leftNextYear}}):t._e(),t.unlinkPanels?n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-arrow-right\",class:{\"is-disabled\":!t.enableMonthArrow},attrs:{type:\"button\",disabled:!t.enableMonthArrow},on:{click:t.leftNextMonth}}):t._e(),n(\"div\",[t._v(t._s(t.leftLabel))])]),n(\"date-table\",{attrs:{\"selection-mode\":\"range\",date:t.leftDate,\"default-value\":t.defaultValue,\"min-date\":t.minDate,\"max-date\":t.maxDate,\"range-state\":t.rangeState,\"disabled-date\":t.disabledDate,\"cell-class-name\":t.cellClassName,\"first-day-of-week\":t.firstDayOfWeek},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1),n(\"div\",{staticClass:\"el-picker-panel__content el-date-range-picker__content is-right\"},[n(\"div\",{staticClass:\"el-date-range-picker__header\"},[t.unlinkPanels?n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-d-arrow-left\",class:{\"is-disabled\":!t.enableYearArrow},attrs:{type:\"button\",disabled:!t.enableYearArrow},on:{click:t.rightPrevYear}}):t._e(),t.unlinkPanels?n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-arrow-left\",class:{\"is-disabled\":!t.enableMonthArrow},attrs:{type:\"button\",disabled:!t.enableMonthArrow},on:{click:t.rightPrevMonth}}):t._e(),n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-d-arrow-right\",attrs:{type:\"button\"},on:{click:t.rightNextYear}}),n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-arrow-right\",attrs:{type:\"button\"},on:{click:t.rightNextMonth}}),n(\"div\",[t._v(t._s(t.rightLabel))])]),n(\"date-table\",{attrs:{\"selection-mode\":\"range\",date:t.rightDate,\"default-value\":t.defaultValue,\"min-date\":t.minDate,\"max-date\":t.maxDate,\"range-state\":t.rangeState,\"disabled-date\":t.disabledDate,\"cell-class-name\":t.cellClassName,\"first-day-of-week\":t.firstDayOfWeek},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1)])],2),t.showTime?n(\"div\",{staticClass:\"el-picker-panel__footer\"},[n(\"el-button\",{staticClass:\"el-picker-panel__link-btn\",attrs:{size:\"mini\",type:\"text\"},on:{click:t.handleClear}},[t._v(\"\\n        \"+t._s(t.t(\"el.datepicker.clear\"))+\"\\n      \")]),n(\"el-button\",{staticClass:\"el-picker-panel__link-btn\",attrs:{plain:\"\",size:\"mini\",disabled:t.btnDisabled},on:{click:function(e){t.handleConfirm(!1)}}},[t._v(\"\\n        \"+t._s(t.t(\"el.datepicker.confirm\"))+\"\\n      \")])],1):t._e()])])};di._withStripped=!0;var pi=function(t){return Array.isArray(t)?[new Date(t[0]),new Date(t[1])]:t?[new Date(t),Object(Sr.nextDate)(new Date(t),1)]:[new Date,Object(Sr.nextDate)(new Date,1)]},mi={mixins:[m.a],directives:{Clickoutside:P.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+\" \"+this.t(\"el.datepicker.year\")+\" \"+this.t(\"el.datepicker.month\"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+\" \"+this.t(\"el.datepicker.year\")+\" \"+this.t(\"el.datepicker.month\"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(Sr.formatDate)(this.minDate,this.dateFormat):\"\"},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(Sr.formatDate)(this.maxDate||this.minDate,this.dateFormat):\"\"},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(Sr.formatDate)(this.minDate,this.timeFormat):\"\"},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(Sr.formatDate)(this.maxDate||this.minDate,this.timeFormat):\"\"},timeFormat:function(){return this.format?Object(Sr.extractTimeFormat)(this.format):\"HH:mm:ss\"},dateFormat:function(){return this.format?Object(Sr.extractDateFormat)(this.format):\"yyyy-MM-dd\"},enableMonthArrow:function(){var t=(this.leftMonth+1)%12,e=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+e,t)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:\"\",value:[],defaultValue:null,defaultTime:null,minDate:\"\",maxDate:\"\",leftDate:new Date,rightDate:Object(Sr.nextMonth)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:\"\",visible:\"\",disabledDate:\"\",cellClassName:\"\",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:\"\",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(t){var e=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(e.$refs.maxTimePicker&&e.maxDate&&e.maxDate<e.minDate){var t=\"HH:mm:ss\";e.$refs.maxTimePicker.selectableRange=[[Object(Sr.parseDate)(Object(Sr.formatDate)(e.minDate,t),t),Object(Sr.parseDate)(\"23:59:59\",t)]]}})),t&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=t,this.$refs.minTimePicker.value=t)},maxDate:function(t){this.dateUserInput.max=null,this.timeUserInput.max=null,t&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=t,this.$refs.maxTimePicker.value=t)},minTimePickerVisible:function(t){var e=this;t&&this.$nextTick((function(){e.$refs.minTimePicker.date=e.minDate,e.$refs.minTimePicker.value=e.minDate,e.$refs.minTimePicker.adjustSpinners()}))},maxTimePickerVisible:function(t){var e=this;t&&this.$nextTick((function(){e.$refs.maxTimePicker.date=e.maxDate,e.$refs.maxTimePicker.value=e.maxDate,e.$refs.maxTimePicker.adjustSpinners()}))},value:function(t){if(t){if(Array.isArray(t))if(this.minDate=Object(Sr.isDate)(t[0])?new Date(t[0]):null,this.maxDate=Object(Sr.isDate)(t[1])?new Date(t[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var e=this.minDate.getFullYear(),n=this.minDate.getMonth(),r=this.maxDate.getFullYear(),i=this.maxDate.getMonth();this.rightDate=e===r&&n===i?Object(Sr.nextMonth)(this.maxDate):this.maxDate}else this.rightDate=Object(Sr.nextMonth)(this.leftDate);else this.leftDate=pi(this.defaultValue)[0],this.rightDate=Object(Sr.nextMonth)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(t){if(!Array.isArray(this.value)){var e=pi(t),n=e[0],r=e[1];this.leftDate=n,this.rightDate=t&&t[1]&&this.unlinkPanels?r:Object(Sr.nextMonth)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=pi(this.defaultValue)[0],this.rightDate=Object(Sr.nextMonth)(this.leftDate),this.$emit(\"pick\",null)},handleChangeRange:function(t){this.minDate=t.minDate,this.maxDate=t.maxDate,this.rangeState=t.rangeState},handleDateInput:function(t,e){if(this.dateUserInput[e]=t,t.length===this.dateFormat.length){var n=Object(Sr.parseDate)(t,this.dateFormat);if(n){if(\"function\"==typeof this.disabledDate&&this.disabledDate(new Date(n)))return;\"min\"===e?(this.minDate=Object(Sr.modifyDate)(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(Sr.nextMonth)(this.leftDate))):(this.maxDate=Object(Sr.modifyDate)(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(Sr.prevMonth)(n)))}}},handleDateChange:function(t,e){var n=Object(Sr.parseDate)(t,this.dateFormat);n&&(\"min\"===e?(this.minDate=Object(Sr.modifyDate)(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(Sr.modifyDate)(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(t,e){var n=this;if(this.timeUserInput[e]=t,t.length===this.timeFormat.length){var r=Object(Sr.parseDate)(t,this.timeFormat);r&&(\"min\"===e?(this.minDate=Object(Sr.modifyTime)(this.minDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(t){return n.$refs.minTimePicker.adjustSpinners()}))):(this.maxDate=Object(Sr.modifyTime)(this.maxDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(t){return n.$refs.maxTimePicker.adjustSpinners()}))))}},handleTimeChange:function(t,e){var n=Object(Sr.parseDate)(t,this.timeFormat);n&&(\"min\"===e?(this.minDate=Object(Sr.modifyTime)(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(Sr.modifyTime)(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(Sr.modifyWithTimeString)(t.minDate,r[0]),o=Object(Sr.modifyWithTimeString)(t.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(t),this.maxDate=o,this.minDate=i,setTimeout((function(){e.maxDate=o,e.minDate=i}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},handleMinTimePick:function(t,e,n){this.minDate=this.minDate||new Date,t&&(this.minDate=Object(Sr.modifyTime)(this.minDate,t.getHours(),t.getMinutes(),t.getSeconds())),n||(this.minTimePickerVisible=e),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(t,e,n){this.maxDate&&t&&(this.maxDate=Object(Sr.modifyTime)(this.maxDate,t.getHours(),t.getMinutes(),t.getSeconds())),n||(this.maxTimePickerVisible=e),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(Sr.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(Sr.nextMonth)(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(Sr.prevMonth)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(Sr.nextMonth)(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(Sr.nextYear)(this.rightDate):(this.leftDate=Object(Sr.nextYear)(this.leftDate),this.rightDate=Object(Sr.nextMonth)(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(Sr.nextMonth)(this.rightDate):(this.leftDate=Object(Sr.nextMonth)(this.leftDate),this.rightDate=Object(Sr.nextMonth)(this.leftDate))},leftNextYear:function(){this.leftDate=Object(Sr.nextYear)(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(Sr.nextMonth)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(Sr.prevYear)(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(Sr.prevMonth)(this.rightDate)},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit(\"pick\",[this.minDate,this.maxDate],t)},isValidValue:function(t){return Array.isArray(t)&&t&&t[0]&&t[1]&&Object(Sr.isDate)(t[0])&&Object(Sr.isDate)(t[1])&&t[0].getTime()<=t[1].getTime()&&(\"function\"!=typeof this.disabledDate||!this.disabledDate(t[0])&&!this.disabledDate(t[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(Sr.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(Sr.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Kr,DateTable:li,ElInput:d.a,ElButton:W.a}},vi=o(mi,di,[],!1,null,null,null);vi.options.__file=\"packages/date-picker/src/panel/date-range.vue\";var gi=vi.exports,yi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"after-leave\":function(e){t.$emit(\"dodestroy\")}}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-picker-panel el-date-range-picker el-popper\",class:[{\"has-sidebar\":t.$slots.sidebar||t.shortcuts},t.popperClass]},[n(\"div\",{staticClass:\"el-picker-panel__body-wrapper\"},[t._t(\"sidebar\"),t.shortcuts?n(\"div\",{staticClass:\"el-picker-panel__sidebar\"},t._l(t.shortcuts,(function(e,r){return n(\"button\",{key:r,staticClass:\"el-picker-panel__shortcut\",attrs:{type:\"button\"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])})),0):t._e(),n(\"div\",{staticClass:\"el-picker-panel__body\"},[n(\"div\",{staticClass:\"el-picker-panel__content el-date-range-picker__content is-left\"},[n(\"div\",{staticClass:\"el-date-range-picker__header\"},[n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-d-arrow-left\",attrs:{type:\"button\"},on:{click:t.leftPrevYear}}),t.unlinkPanels?n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-d-arrow-right\",class:{\"is-disabled\":!t.enableYearArrow},attrs:{type:\"button\",disabled:!t.enableYearArrow},on:{click:t.leftNextYear}}):t._e(),n(\"div\",[t._v(t._s(t.leftLabel))])]),n(\"month-table\",{attrs:{\"selection-mode\":\"range\",date:t.leftDate,\"default-value\":t.defaultValue,\"min-date\":t.minDate,\"max-date\":t.maxDate,\"range-state\":t.rangeState,\"disabled-date\":t.disabledDate},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1),n(\"div\",{staticClass:\"el-picker-panel__content el-date-range-picker__content is-right\"},[n(\"div\",{staticClass:\"el-date-range-picker__header\"},[t.unlinkPanels?n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-d-arrow-left\",class:{\"is-disabled\":!t.enableYearArrow},attrs:{type:\"button\",disabled:!t.enableYearArrow},on:{click:t.rightPrevYear}}):t._e(),n(\"button\",{staticClass:\"el-picker-panel__icon-btn el-icon-d-arrow-right\",attrs:{type:\"button\"},on:{click:t.rightNextYear}}),n(\"div\",[t._v(t._s(t.rightLabel))])]),n(\"month-table\",{attrs:{\"selection-mode\":\"range\",date:t.rightDate,\"default-value\":t.defaultValue,\"min-date\":t.minDate,\"max-date\":t.maxDate,\"range-state\":t.rangeState,\"disabled-date\":t.disabledDate},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1)])],2)])])};yi._withStripped=!0;var bi=function(t){return Array.isArray(t)?[new Date(t[0]),new Date(t[1])]:t?[new Date(t),Object(Sr.nextMonth)(new Date(t))]:[new Date,Object(Sr.nextMonth)(new Date)]},_i={mixins:[m.a],directives:{Clickoutside:P.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+\" \"+this.t(\"el.datepicker.year\")},rightLabel:function(){return this.rightDate.getFullYear()+\" \"+this.t(\"el.datepicker.year\")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:\"\",value:[],defaultValue:null,defaultTime:null,minDate:\"\",maxDate:\"\",leftDate:new Date,rightDate:Object(Sr.nextYear)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:\"\",visible:\"\",disabledDate:\"\",format:\"\",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(t){if(t){if(Array.isArray(t))if(this.minDate=Object(Sr.isDate)(t[0])?new Date(t[0]):null,this.maxDate=Object(Sr.isDate)(t[1])?new Date(t[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var e=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=e===n?Object(Sr.nextYear)(this.maxDate):this.maxDate}else this.rightDate=Object(Sr.nextYear)(this.leftDate);else this.leftDate=bi(this.defaultValue)[0],this.rightDate=Object(Sr.nextYear)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(t){if(!Array.isArray(this.value)){var e=bi(t),n=e[0],r=e[1];this.leftDate=n,this.rightDate=t&&t[1]&&n.getFullYear()!==r.getFullYear()&&this.unlinkPanels?r:Object(Sr.nextYear)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=bi(this.defaultValue)[0],this.rightDate=Object(Sr.nextYear)(this.leftDate),this.$emit(\"pick\",null)},handleChangeRange:function(t){this.minDate=t.minDate,this.maxDate=t.maxDate,this.rangeState=t.rangeState},handleRangePick:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(Sr.modifyWithTimeString)(t.minDate,r[0]),o=Object(Sr.modifyWithTimeString)(t.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(t),this.maxDate=o,this.minDate=i,setTimeout((function(){e.maxDate=o,e.minDate=i}),10),n&&this.handleConfirm())},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},leftPrevYear:function(){this.leftDate=Object(Sr.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(Sr.prevYear)(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(Sr.nextYear)(this.leftDate)),this.rightDate=Object(Sr.nextYear)(this.rightDate)},leftNextYear:function(){this.leftDate=Object(Sr.nextYear)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(Sr.prevYear)(this.rightDate)},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit(\"pick\",[this.minDate,this.maxDate],t)},isValidValue:function(t){return Array.isArray(t)&&t&&t[0]&&t[1]&&Object(Sr.isDate)(t[0])&&Object(Sr.isDate)(t[1])&&t[0].getTime()<=t[1].getTime()&&(\"function\"!=typeof this.disabledDate||!this.disabledDate(t[0])&&!this.disabledDate(t[1]))},resetView:function(){this.minDate=this.value&&Object(Sr.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(Sr.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:ii,ElInput:d.a,ElButton:W.a}},wi=o(_i,yi,[],!1,null,null,null);wi.options.__file=\"packages/date-picker/src/panel/month-range.vue\";var xi=wi.exports,ki=function(t){return\"daterange\"===t||\"datetimerange\"===t?gi:\"monthrange\"===t?xi:fi},Si={mixins:[Rr],name:\"ElDatePicker\",props:{type:{type:String,default:\"date\"},timeArrowControl:Boolean},watch:{type:function(t){this.picker?(this.unmountPicker(),this.panel=ki(t),this.mountPicker()):this.panel=ki(t)}},created:function(){this.panel=ki(this.type)},install:function(t){t.component(Si.name,Si)}},Ci=Si,Ei=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"before-enter\":t.handleMenuEnter,\"after-leave\":function(e){t.$emit(\"dodestroy\")}}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],ref:\"popper\",staticClass:\"el-picker-panel time-select el-popper\",class:t.popperClass,style:{width:t.width+\"px\"}},[n(\"el-scrollbar\",{attrs:{noresize:\"\",\"wrap-class\":\"el-picker-panel__content\"}},t._l(t.items,(function(e){return n(\"div\",{key:e.value,staticClass:\"time-select-item\",class:{selected:t.value===e.value,disabled:e.disabled,default:e.value===t.defaultValue},attrs:{disabled:e.disabled},on:{click:function(n){t.handleClick(e)}}},[t._v(t._s(e.value))])})),0)],1)])};Ei._withStripped=!0;var Di=function(t){var e=(t||\"\").split(\":\");return e.length>=2?{hours:parseInt(e[0],10),minutes:parseInt(e[1],10)}:null},Ai=function(t,e){var n=Di(t),r=Di(e),i=n.minutes+60*n.hours,o=r.minutes+60*r.hours;return i===o?0:i>o?1:-1},Oi=function(t,e){var n=Di(t),r=Di(e),i={hours:n.hours,minutes:n.minutes};return i.minutes+=r.minutes,i.hours+=r.hours,i.hours+=Math.floor(i.minutes/60),i.minutes=i.minutes%60,function(t){return(t.hours<10?\"0\"+t.hours:t.hours)+\":\"+(t.minutes<10?\"0\"+t.minutes:t.minutes)}(i)},Mi={components:{ElScrollbar:B.a},watch:{value:function(t){var e=this;t&&this.$nextTick((function(){return e.scrollToOption()}))}},methods:{handleClick:function(t){t.disabled||this.$emit(\"pick\",t.value)},handleClear:function(){this.$emit(\"pick\",null)},scrollToOption:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\".selected\",e=this.$refs.popper.querySelector(\".el-picker-panel__content\");Ve()(e,e.querySelector(t))},handleMenuEnter:function(){var t=this,e=-1!==this.items.map((function(t){return t.value})).indexOf(this.value),n=-1!==this.items.map((function(t){return t.value})).indexOf(this.defaultValue),r=(e?\".selected\":n&&\".default\")||\".time-select-item:not(.disabled)\";this.$nextTick((function(){return t.scrollToOption(r)}))},scrollDown:function(t){for(var e=this.items,n=e.length,r=e.length,i=e.map((function(t){return t.value})).indexOf(this.value);r--;)if(!e[i=(i+t+n)%n].disabled)return void this.$emit(\"pick\",e[i].value,!0)},isValidValue:function(t){return-1!==this.items.filter((function(t){return!t.disabled})).map((function(t){return t.value})).indexOf(t)},handleKeydown:function(t){var e=t.keyCode;if(38===e||40===e){var n={40:1,38:-1}[e.toString()];return this.scrollDown(n),void t.stopPropagation()}}},data:function(){return{popperClass:\"\",start:\"09:00\",end:\"18:00\",step:\"00:30\",value:\"\",defaultValue:\"\",visible:!1,minTime:\"\",maxTime:\"\",width:0}},computed:{items:function(){var t=this.start,e=this.end,n=this.step,r=[];if(t&&e&&n)for(var i=t;Ai(i,e)<=0;)r.push({value:i,disabled:Ai(i,this.minTime||\"-1:-1\")<=0||Ai(i,this.maxTime||\"100:100\")>=0}),i=Oi(i,n);return r}}},Ti=o(Mi,Ei,[],!1,null,null,null);Ti.options.__file=\"packages/date-picker/src/panel/time-select.vue\";var Ii=Ti.exports,Pi={mixins:[Rr],name:\"ElTimeSelect\",componentName:\"ElTimeSelect\",props:{type:{type:String,default:\"time-select\"}},beforeCreate:function(){this.panel=Ii},install:function(t){t.component(Pi.name,Pi)}},Fi=Pi,ji=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"after-leave\":function(e){t.$emit(\"dodestroy\")}}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-time-range-picker el-picker-panel el-popper\",class:t.popperClass},[n(\"div\",{staticClass:\"el-time-range-picker__content\"},[n(\"div\",{staticClass:\"el-time-range-picker__cell\"},[n(\"div\",{staticClass:\"el-time-range-picker__header\"},[t._v(t._s(t.t(\"el.datepicker.startTime\")))]),n(\"div\",{staticClass:\"el-time-range-picker__body el-time-panel__content\",class:{\"has-seconds\":t.showSeconds,\"is-arrow\":t.arrowControl}},[n(\"time-spinner\",{ref:\"minSpinner\",attrs:{\"show-seconds\":t.showSeconds,\"am-pm-mode\":t.amPmMode,\"arrow-control\":t.arrowControl,date:t.minDate},on:{change:t.handleMinChange,\"select-range\":t.setMinSelectionRange}})],1)]),n(\"div\",{staticClass:\"el-time-range-picker__cell\"},[n(\"div\",{staticClass:\"el-time-range-picker__header\"},[t._v(t._s(t.t(\"el.datepicker.endTime\")))]),n(\"div\",{staticClass:\"el-time-range-picker__body el-time-panel__content\",class:{\"has-seconds\":t.showSeconds,\"is-arrow\":t.arrowControl}},[n(\"time-spinner\",{ref:\"maxSpinner\",attrs:{\"show-seconds\":t.showSeconds,\"am-pm-mode\":t.amPmMode,\"arrow-control\":t.arrowControl,date:t.maxDate},on:{change:t.handleMaxChange,\"select-range\":t.setMaxSelectionRange}})],1)])]),n(\"div\",{staticClass:\"el-time-panel__footer\"},[n(\"button\",{staticClass:\"el-time-panel__btn cancel\",attrs:{type:\"button\"},on:{click:function(e){t.handleCancel()}}},[t._v(t._s(t.t(\"el.datepicker.cancel\")))]),n(\"button\",{staticClass:\"el-time-panel__btn confirm\",attrs:{type:\"button\",disabled:t.btnDisabled},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t(\"el.datepicker.confirm\")))])])])])};ji._withStripped=!0;var Ni=Object(Sr.parseDate)(\"00:00:00\",\"HH:mm:ss\"),Li=Object(Sr.parseDate)(\"23:59:59\",\"HH:mm:ss\"),Bi=function(t){return Object(Sr.modifyDate)(Li,t.getFullYear(),t.getMonth(),t.getDate())},$i=function(t,e){return new Date(Math.min(t.getTime()+e,Bi(t).getTime()))},zi={mixins:[m.a],components:{TimeSpinner:Wr},computed:{showSeconds:function(){return-1!==(this.format||\"\").indexOf(\"ss\")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||\"\").indexOf(\"A\")?\"A\":-1!==(this.format||\"\").indexOf(\"a\")?\"a\":\"\"}},data:function(){return{popperClass:\"\",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:\"HH:mm:ss\",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(t){Array.isArray(t)?(this.minDate=new Date(t[0]),this.maxDate=new Date(t[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=$i(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=$i(new Date,36e5))},visible:function(t){var e=this;t&&(this.oldValue=this.value,this.$nextTick((function(){return e.$refs.minSpinner.emitSelectRange(\"hours\")})))}},methods:{handleClear:function(){this.$emit(\"pick\",null)},handleCancel:function(){this.$emit(\"pick\",this.oldValue)},handleMinChange:function(t){this.minDate=Object(Sr.clearMilliseconds)(t),this.handleChange()},handleMaxChange:function(t){this.maxDate=Object(Sr.clearMilliseconds)(t),this.handleChange()},handleChange:function(){var t;this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[(t=this.minDate,Object(Sr.modifyDate)(Ni,t.getFullYear(),t.getMonth(),t.getDate())),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,Bi(this.maxDate)]],this.$emit(\"pick\",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(t,e){this.$emit(\"select-range\",t,e,\"min\"),this.selectionRange=[t,e]},setMaxSelectionRange:function(t,e){this.$emit(\"select-range\",t,e,\"max\"),this.selectionRange=[t+this.offset,e+this.offset]},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(Sr.limitTimeRange)(this.minDate,e,this.format),this.maxDate=Object(Sr.limitTimeRange)(this.maxDate,n,this.format),this.$emit(\"pick\",[this.minDate,this.maxDate],t)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(t){var e=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=[\"hours\",\"minutes\"].concat(this.showSeconds?[\"seconds\"]:[]),r=(e.indexOf(this.selectionRange[0])+t+e.length)%e.length,i=e.length/2;r<i?this.$refs.minSpinner.emitSelectRange(n[r]):this.$refs.maxSpinner.emitSelectRange(n[r-i])},isValidValue:function(t){return Array.isArray(t)&&Object(Sr.timeWithinRange)(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(Sr.timeWithinRange)(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(t){var e=t.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===e||39===e){var r=n[e];return this.changeSelectionRange(r),void t.preventDefault()}if(38===e||40===e){var i=n[e];return this.spinner.scrollDown(i),void t.preventDefault()}}}},Ri=o(zi,ji,[],!1,null,null,null);Ri.options.__file=\"packages/date-picker/src/panel/time-range.vue\";var Ui=Ri.exports,Vi={mixins:[Rr],name:\"ElTimePicker\",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:\"\"}},watch:{isRange:function(t){this.picker?(this.unmountPicker(),this.type=t?\"timerange\":\"time\",this.panel=t?Ui:Kr,this.mountPicker()):(this.type=t?\"timerange\":\"time\",this.panel=t?Ui:Kr)}},created:function(){this.type=this.isRange?\"timerange\":\"time\",this.panel=this.isRange?Ui:Kr},install:function(t){t.component(Vi.name,Vi)}},Hi=Vi,Gi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"span\",[n(\"transition\",{attrs:{name:t.transition},on:{\"after-enter\":t.handleAfterEnter,\"after-leave\":t.handleAfterLeave}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:!t.disabled&&t.showPopper,expression:\"!disabled && showPopper\"}],ref:\"popper\",staticClass:\"el-popover el-popper\",class:[t.popperClass,t.content&&\"el-popover--plain\"],style:{width:t.width+\"px\"},attrs:{role:\"tooltip\",id:t.tooltipId,\"aria-hidden\":t.disabled||!t.showPopper?\"true\":\"false\"}},[t.title?n(\"div\",{staticClass:\"el-popover__title\",domProps:{textContent:t._s(t.title)}}):t._e(),t._t(\"default\",[t._v(t._s(t.content))])],2)]),n(\"span\",{ref:\"wrapper\",staticClass:\"el-popover__reference-wrapper\"},[t._t(\"reference\")],2)],1)};Gi._withStripped=!0;var qi=o({name:\"ElPopover\",mixins:[N.a],props:{trigger:{type:String,default:\"click\",validator:function(t){return[\"click\",\"focus\",\"hover\",\"manual\"].indexOf(t)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:\"fade-in-linear\"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return\"el-popover-\"+Object(v.generateId)()}},watch:{showPopper:function(t){this.disabled||(t?this.$emit(\"show\"):this.$emit(\"hide\"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(vt.addClass)(e,\"el-popover__reference\"),e.setAttribute(\"aria-describedby\",this.tooltipId),e.setAttribute(\"tabindex\",this.tabindex),n.setAttribute(\"tabindex\",0),\"click\"!==this.trigger&&(Object(vt.on)(e,\"focusin\",(function(){t.handleFocus();var n=e.__vue__;n&&\"function\"==typeof n.focus&&n.focus()})),Object(vt.on)(n,\"focusin\",this.handleFocus),Object(vt.on)(e,\"focusout\",this.handleBlur),Object(vt.on)(n,\"focusout\",this.handleBlur)),Object(vt.on)(e,\"keydown\",this.handleKeydown),Object(vt.on)(e,\"click\",this.handleClick)),\"click\"===this.trigger?(Object(vt.on)(e,\"click\",this.doToggle),Object(vt.on)(document,\"click\",this.handleDocumentClick)):\"hover\"===this.trigger?(Object(vt.on)(e,\"mouseenter\",this.handleMouseEnter),Object(vt.on)(n,\"mouseenter\",this.handleMouseEnter),Object(vt.on)(e,\"mouseleave\",this.handleMouseLeave),Object(vt.on)(n,\"mouseleave\",this.handleMouseLeave)):\"focus\"===this.trigger&&(this.tabindex,e.querySelector(\"input, textarea\")?(Object(vt.on)(e,\"focusin\",this.doShow),Object(vt.on)(e,\"focusout\",this.doClose)):(Object(vt.on)(e,\"mousedown\",this.doShow),Object(vt.on)(e,\"mouseup\",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(vt.addClass)(this.referenceElm,\"focusing\"),\"click\"!==this.trigger&&\"focus\"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(vt.removeClass)(this.referenceElm,\"focusing\")},handleBlur:function(){Object(vt.removeClass)(this.referenceElm,\"focusing\"),\"click\"!==this.trigger&&\"focus\"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){t.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&\"manual\"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var t=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){t.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit(\"after-enter\")},handleAfterLeave:function(){this.$emit(\"after-leave\"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(vt.off)(t,\"click\",this.doToggle),Object(vt.off)(t,\"mouseup\",this.doClose),Object(vt.off)(t,\"mousedown\",this.doShow),Object(vt.off)(t,\"focusin\",this.doShow),Object(vt.off)(t,\"focusout\",this.doClose),Object(vt.off)(t,\"mousedown\",this.doShow),Object(vt.off)(t,\"mouseup\",this.doClose),Object(vt.off)(t,\"mouseleave\",this.handleMouseLeave),Object(vt.off)(t,\"mouseenter\",this.handleMouseEnter),Object(vt.off)(document,\"click\",this.handleDocumentClick)}},Gi,[],!1,null,null,null);qi.options.__file=\"packages/popover/src/main.vue\";var Wi=qi.exports,Yi=function(t,e,n){var r=e.expression?e.value:e.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=t:i.$refs.reference=t)},Zi={bind:function(t,e,n){Yi(t,e,n)},inserted:function(t,e,n){Yi(t,e,n)}};gn.a.directive(\"popover\",Zi),Wi.install=function(t){t.directive(\"popover\",Zi),t.component(Wi.name,Wi)},Wi.directive=Zi;var Ki=Wi,Xi={name:\"ElTooltip\",mixins:[N.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:\"dark\"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:\"el-fade-in-linear\"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:\"el-tooltip-\"+Object(v.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var t=this;this.$isServer||(this.popperVM=new gn.a({data:{node:\"\"},render:function(t){return this.node}}).$mount(),this.debounceClose=T()(200,(function(){return t.handleClosePopper()})))},render:function(t){var e=this;this.popperVM&&(this.popperVM.node=t(\"transition\",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t(\"div\",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:\"popper\",attrs:{role:\"tooltip\",id:this.tooltipId,\"aria-hidden\":this.disabled||!this.showPopper?\"true\":\"false\"},directives:[{name:\"show\",value:!this.disabled&&this.showPopper}],class:[\"el-tooltip__popper\",\"is-\"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var t=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute(\"aria-describedby\",this.tooltipId),this.$el.setAttribute(\"tabindex\",this.tabindex),Object(vt.on)(this.referenceElm,\"mouseenter\",this.show),Object(vt.on)(this.referenceElm,\"mouseleave\",this.hide),Object(vt.on)(this.referenceElm,\"focus\",(function(){if(t.$slots.default&&t.$slots.default.length){var e=t.$slots.default[0].componentInstance;e&&e.focus?e.focus():t.handleFocus()}else t.handleFocus()})),Object(vt.on)(this.referenceElm,\"blur\",this.handleBlur),Object(vt.on)(this.referenceElm,\"click\",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){t.value&&t.updatePopper()}))},watch:{focusing:function(t){t?Object(vt.addClass)(this.referenceElm,\"focusing\"):Object(vt.removeClass)(this.referenceElm,\"focusing\")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(t){return t?\"el-tooltip \"+t.replace(\"el-tooltip\",\"\"):\"el-tooltip\"},handleShowPopper:function(){var t=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){t.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(t){!1===t&&clearTimeout(this.timeoutPending),this.expectedState=t},getFirstElement:function(){var t=this.$slots.default;if(!Array.isArray(t))return null;for(var e=null,n=0;n<t.length;n++)if(t[n]&&t[n].tag){e=t[n];break}return e}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var t=this.referenceElm;1===t.nodeType&&(Object(vt.off)(t,\"mouseenter\",this.show),Object(vt.off)(t,\"mouseleave\",this.hide),Object(vt.off)(t,\"focus\",this.handleFocus),Object(vt.off)(t,\"blur\",this.handleBlur),Object(vt.off)(t,\"click\",this.removeFocusing))},install:function(t){t.component(Xi.name,Xi)}},Ji=Xi,Qi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"msgbox-fade\"}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-message-box__wrapper\",attrs:{tabindex:\"-1\",role:\"dialog\",\"aria-modal\":\"true\",\"aria-label\":t.title||\"dialog\"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n(\"div\",{staticClass:\"el-message-box\",class:[t.customClass,t.center&&\"el-message-box--center\"]},[null!==t.title?n(\"div\",{staticClass:\"el-message-box__header\"},[n(\"div\",{staticClass:\"el-message-box__title\"},[t.icon&&t.center?n(\"div\",{class:[\"el-message-box__status\",t.icon]}):t._e(),n(\"span\",[t._v(t._s(t.title))])]),t.showClose?n(\"button\",{staticClass:\"el-message-box__headerbtn\",attrs:{type:\"button\",\"aria-label\":\"Close\"},on:{click:function(e){t.handleAction(t.distinguishCancelAndClose?\"close\":\"cancel\")},keydown:function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\"))return null;t.handleAction(t.distinguishCancelAndClose?\"close\":\"cancel\")}}},[n(\"i\",{staticClass:\"el-message-box__close el-icon-close\"})]):t._e()]):t._e(),n(\"div\",{staticClass:\"el-message-box__content\"},[n(\"div\",{staticClass:\"el-message-box__container\"},[t.icon&&!t.center&&\"\"!==t.message?n(\"div\",{class:[\"el-message-box__status\",t.icon]}):t._e(),\"\"!==t.message?n(\"div\",{staticClass:\"el-message-box__message\"},[t._t(\"default\",[t.dangerouslyUseHTMLString?n(\"p\",{domProps:{innerHTML:t._s(t.message)}}):n(\"p\",[t._v(t._s(t.message))])])],2):t._e()]),n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.showInput,expression:\"showInput\"}],staticClass:\"el-message-box__input\"},[n(\"el-input\",{ref:\"input\",attrs:{type:t.inputType,placeholder:t.inputPlaceholder},nativeOn:{keydown:function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleInputEnter(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:\"inputValue\"}}),n(\"div\",{staticClass:\"el-message-box__errormsg\",style:{visibility:t.editorErrorMessage?\"visible\":\"hidden\"}},[t._v(t._s(t.editorErrorMessage))])],1)]),n(\"div\",{staticClass:\"el-message-box__btns\"},[t.showCancelButton?n(\"el-button\",{class:[t.cancelButtonClasses],attrs:{loading:t.cancelButtonLoading,round:t.roundButton,size:\"small\"},on:{keydown:function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\"))return null;t.handleAction(\"cancel\")}},nativeOn:{click:function(e){t.handleAction(\"cancel\")}}},[t._v(\"\\n          \"+t._s(t.cancelButtonText||t.t(\"el.messagebox.cancel\"))+\"\\n        \")]):t._e(),n(\"el-button\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.showConfirmButton,expression:\"showConfirmButton\"}],ref:\"confirm\",class:[t.confirmButtonClasses],attrs:{loading:t.confirmButtonLoading,round:t.roundButton,size:\"small\"},on:{keydown:function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\"))return null;t.handleAction(\"confirm\")}},nativeOn:{click:function(e){t.handleAction(\"confirm\")}}},[t._v(\"\\n          \"+t._s(t.confirmButtonText||t.t(\"el.messagebox.confirm\"))+\"\\n        \")])],1)])])])};Qi._withStripped=!0;var to=n(12),eo=n.n(to),no=n(40),ro=n.n(no),io=void 0,oo={success:\"success\",info:\"info\",warning:\"warning\",error:\"error\"},ao=o({mixins:[w.a,m.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:d.a,ElButton:W.a},computed:{icon:function(){var t=this.type;return this.iconClass||(t&&oo[t]?\"el-icon-\"+oo[t]:\"\")},confirmButtonClasses:function(){return\"el-button--primary \"+this.confirmButtonClass},cancelButtonClasses:function(){return\"\"+this.cancelButtonClass}},methods:{getSafeClose:function(){var t=this,e=this.uid;return function(){t.$nextTick((function(){e===t.uid&&t.doClose()}))}},doClose:function(){var t=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),io.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout((function(){t.action&&t.callback(t.action,t)})))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?\"close\":\"cancel\")},handleInputEnter:function(){if(\"textarea\"!==this.inputType)return this.handleAction(\"confirm\")},handleAction:function(t){(\"prompt\"!==this.$type||\"confirm\"!==t||this.validate())&&(this.action=t,\"function\"==typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(t,this,this.close)):this.doClose())},validate:function(){if(\"prompt\"===this.$type){var t=this.inputPattern;if(t&&!t.test(this.inputValue||\"\"))return this.editorErrorMessage=this.inputErrorMessage||Object(to.t)(\"el.messagebox.error\"),Object(vt.addClass)(this.getInputElement(),\"invalid\"),!1;var e=this.inputValidator;if(\"function\"==typeof e){var n=e(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(to.t)(\"el.messagebox.error\"),Object(vt.addClass)(this.getInputElement(),\"invalid\"),!1;if(\"string\"==typeof n)return this.editorErrorMessage=n,Object(vt.addClass)(this.getInputElement(),\"invalid\"),!1}}return this.editorErrorMessage=\"\",Object(vt.removeClass)(this.getInputElement(),\"invalid\"),!0},getFirstFocus:function(){var t=this.$el.querySelector(\".el-message-box__btns .el-button\"),e=this.$el.querySelector(\".el-message-box__btns .el-message-box__title\");return t||e},getInputElement:function(){var t=this.$refs.input.$refs;return t.input||t.textarea},handleClose:function(){this.handleAction(\"close\")}},watch:{inputValue:{immediate:!0,handler:function(t){var e=this;this.$nextTick((function(n){\"prompt\"===e.$type&&null!==t&&e.validate()}))}},visible:function(t){var e=this;t&&(this.uid++,\"alert\"!==this.$type&&\"confirm\"!==this.$type||this.$nextTick((function(){e.$refs.confirm.$el.focus()})),this.focusAfterClosed=document.activeElement,io=new ro.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),\"prompt\"===this.$type&&(t?setTimeout((function(){e.$refs.input&&e.$refs.input.$el&&e.getInputElement().focus()}),500):(this.editorErrorMessage=\"\",Object(vt.removeClass)(this.getInputElement(),\"invalid\")))}},mounted:function(){var t=this;this.$nextTick((function(){t.closeOnHashChange&&window.addEventListener(\"hashchange\",t.close)}))},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener(\"hashchange\",this.close),setTimeout((function(){io.closeDialog()}))},data:function(){return{uid:1,title:void 0,message:\"\",type:\"\",iconClass:\"\",customClass:\"\",showInput:!1,inputValue:null,inputPlaceholder:\"\",inputType:\"text\",inputPattern:null,inputValidator:null,inputErrorMessage:\"\",showConfirmButton:!0,showCancelButton:!1,action:\"\",confirmButtonText:\"\",cancelButtonText:\"\",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:\"\",confirmButtonDisabled:!1,cancelButtonClass:\"\",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},Qi,[],!1,null,null,null);ao.options.__file=\"packages/message-box/src/main.vue\";var so=ao.exports,uo=n(22),lo=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)},co={title:null,message:\"\",type:\"\",iconClass:\"\",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:\"\",inputType:\"text\",inputPattern:null,inputValidator:null,inputErrorMessage:\"\",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:\"right\",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:\"\",cancelButtonText:\"\",confirmButtonClass:\"\",cancelButtonClass:\"\",customClass:\"\",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},ho=gn.a.extend(so),fo=void 0,po=void 0,mo=[],vo=function(t){if(fo){var e=fo.callback;\"function\"==typeof e&&(po.showInput?e(po.inputValue,t):e(t)),fo.resolve&&(\"confirm\"===t?po.showInput?fo.resolve({value:po.inputValue,action:t}):fo.resolve(t):!fo.reject||\"cancel\"!==t&&\"close\"!==t||fo.reject(t))}},go=function t(){if(po||((po=new ho({el:document.createElement(\"div\")})).callback=vo),po.action=\"\",(!po.visible||po.closeTimer)&&mo.length>0){var e=(fo=mo.shift()).options;for(var n in e)e.hasOwnProperty(n)&&(po[n]=e[n]);void 0===e.callback&&(po.callback=vo);var r=po.callback;po.callback=function(e,n){r(e,n),t()},Object(uo.isVNode)(po.message)?(po.$slots.default=[po.message],po.message=null):delete po.$slots.default,[\"modal\",\"showClose\",\"closeOnClickModal\",\"closeOnPressEscape\",\"closeOnHashChange\"].forEach((function(t){void 0===po[t]&&(po[t]=!0)})),document.body.appendChild(po.$el),gn.a.nextTick((function(){po.visible=!0}))}},yo=function t(e,n){if(!gn.a.prototype.$isServer){if(\"string\"==typeof e||Object(uo.isVNode)(e)?(e={message:e},\"string\"==typeof arguments[1]&&(e.title=arguments[1])):e.callback&&!n&&(n=e.callback),\"undefined\"!=typeof Promise)return new Promise((function(r,i){mo.push({options:Ht()({},co,t.defaults,e),callback:n,resolve:r,reject:i}),go()}));mo.push({options:Ht()({},co,t.defaults,e),callback:n}),go()}};yo.setDefaults=function(t){yo.defaults=t},yo.alert=function(t,e,n){return\"object\"===(void 0===e?\"undefined\":lo(e))?(n=e,e=\"\"):void 0===e&&(e=\"\"),yo(Ht()({title:e,message:t,$type:\"alert\",closeOnPressEscape:!1,closeOnClickModal:!1},n))},yo.confirm=function(t,e,n){return\"object\"===(void 0===e?\"undefined\":lo(e))?(n=e,e=\"\"):void 0===e&&(e=\"\"),yo(Ht()({title:e,message:t,$type:\"confirm\",showCancelButton:!0},n))},yo.prompt=function(t,e,n){return\"object\"===(void 0===e?\"undefined\":lo(e))?(n=e,e=\"\"):void 0===e&&(e=\"\"),yo(Ht()({title:e,message:t,showCancelButton:!0,showInput:!0,$type:\"prompt\"},n))},yo.close=function(){po.doClose(),po.visible=!1,mo=[],fo=null};var bo=yo,_o=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"div\",{staticClass:\"el-breadcrumb\",attrs:{\"aria-label\":\"Breadcrumb\",role:\"navigation\"}},[t._t(\"default\")],2)};_o._withStripped=!0;var wo=o({name:\"ElBreadcrumb\",props:{separator:{type:String,default:\"/\"},separatorClass:{type:String,default:\"\"}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var t=this.$el.querySelectorAll(\".el-breadcrumb__item\");t.length&&t[t.length-1].setAttribute(\"aria-current\",\"page\")}},_o,[],!1,null,null,null);wo.options.__file=\"packages/breadcrumb/src/breadcrumb.vue\";var xo=wo.exports;xo.install=function(t){t.component(xo.name,xo)};var ko=xo,So=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"span\",{staticClass:\"el-breadcrumb__item\"},[n(\"span\",{ref:\"link\",class:[\"el-breadcrumb__inner\",t.to?\"is-link\":\"\"],attrs:{role:\"link\"}},[t._t(\"default\")],2),t.separatorClass?n(\"i\",{staticClass:\"el-breadcrumb__separator\",class:t.separatorClass}):n(\"span\",{staticClass:\"el-breadcrumb__separator\",attrs:{role:\"presentation\"}},[t._v(t._s(t.separator))])])};So._withStripped=!0;var Co=o({name:\"ElBreadcrumbItem\",props:{to:{},replace:Boolean},data:function(){return{separator:\"\",separatorClass:\"\"}},inject:[\"elBreadcrumb\"],mounted:function(){var t=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var e=this.$refs.link;e.setAttribute(\"role\",\"link\"),e.addEventListener(\"click\",(function(e){var n=t.to,r=t.$router;n&&r&&(t.replace?r.replace(n):r.push(n))}))}},So,[],!1,null,null,null);Co.options.__file=\"packages/breadcrumb/src/breadcrumb-item.vue\";var Eo=Co.exports;Eo.install=function(t){t.component(Eo.name,Eo)};var Do=Eo,Ao=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"form\",{staticClass:\"el-form\",class:[t.labelPosition?\"el-form--label-\"+t.labelPosition:\"\",{\"el-form--inline\":t.inline}]},[t._t(\"default\")],2)};Ao._withStripped=!0;var Oo={name:\"ElForm\",componentName:\"ElForm\",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:\"\"},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(t){t.removeValidateEvents(),t.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var t=Math.max.apply(Math,this.potentialLabelWidthArr);return t?t+\"px\":\"\"}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var t=this;this.$on(\"el.form.addField\",(function(e){e&&t.fields.push(e)})),this.$on(\"el.form.removeField\",(function(e){e.prop&&t.fields.splice(t.fields.indexOf(e),1)}))},methods:{resetFields:function(){this.model&&this.fields.forEach((function(t){t.resetField()}))},clearValidate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(t.length?\"string\"==typeof t?this.fields.filter((function(e){return t===e.prop})):this.fields.filter((function(e){return t.indexOf(e.prop)>-1})):this.fields).forEach((function(t){t.clearValidate()}))},validate:function(t){var e=this;if(this.model){var n=void 0;\"function\"!=typeof t&&window.Promise&&(n=new window.Promise((function(e,n){t=function(t,r){t?e(t):n(r)}})));var r=!0,i=0;0===this.fields.length&&t&&t(!0);var o={};return this.fields.forEach((function(n){n.validate(\"\",(function(n,a){n&&(r=!1),o=Ht()({},o,a),\"function\"==typeof t&&++i===e.fields.length&&t(r,o)}))})),n||void 0}},validateField:function(t,e){t=[].concat(t);var n=this.fields.filter((function(e){return-1!==t.indexOf(e.prop)}));n.length&&n.forEach((function(t){t.validate(\"\",e)}))},getLabelWidthIndex:function(t){var e=this.potentialLabelWidthArr.indexOf(t);if(-1===e)throw new Error(\"[ElementForm]unpected width \",t);return e},registerLabelWidth:function(t,e){if(t&&e){var n=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(n,1,t)}else t&&this.potentialLabelWidthArr.push(t)},deregisterLabelWidth:function(t){var e=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(e,1)}}},Mo=o(Oo,Ao,[],!1,null,null,null);Mo.options.__file=\"packages/form/src/form.vue\";var To=Mo.exports;To.install=function(t){t.component(To.name,To)};var Io=To,Po=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-form-item\",class:[{\"el-form-item--feedback\":t.elForm&&t.elForm.statusIcon,\"is-error\":\"error\"===t.validateState,\"is-validating\":\"validating\"===t.validateState,\"is-success\":\"success\"===t.validateState,\"is-required\":t.isRequired||t.required,\"is-no-asterisk\":t.elForm&&t.elForm.hideRequiredAsterisk},t.sizeClass?\"el-form-item--\"+t.sizeClass:\"\"]},[n(\"label-wrap\",{attrs:{\"is-auto-width\":t.labelStyle&&\"auto\"===t.labelStyle.width,\"update-all\":\"auto\"===t.form.labelWidth}},[t.label||t.$slots.label?n(\"label\",{staticClass:\"el-form-item__label\",style:t.labelStyle,attrs:{for:t.labelFor}},[t._t(\"label\",[t._v(t._s(t.label+t.form.labelSuffix))])],2):t._e()]),n(\"div\",{staticClass:\"el-form-item__content\",style:t.contentStyle},[t._t(\"default\"),n(\"transition\",{attrs:{name:\"el-zoom-in-top\"}},[\"error\"===t.validateState&&t.showMessage&&t.form.showMessage?t._t(\"error\",[n(\"div\",{staticClass:\"el-form-item__error\",class:{\"el-form-item__error--inline\":\"boolean\"==typeof t.inlineMessage?t.inlineMessage:t.elForm&&t.elForm.inlineMessage||!1}},[t._v(\"\\n          \"+t._s(t.validateMessage)+\"\\n        \")])],{error:t.validateMessage}):t._e()],2)],2)],1)};Po._withStripped=!0;var Fo=n(41),jo=n.n(Fo),No={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:[\"elForm\",\"elFormItem\"],render:function(){var t=arguments[0],e=this.$slots.default;if(!e)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,r={};if(n&&\"auto\"!==n){var i=parseInt(n,10)-this.computedWidth;i&&(r.marginLeft=i+\"px\")}return t(\"div\",{class:\"el-form-item__label-wrap\",style:r},[e])}return e[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var t=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(t))}return 0},updateLabelWidth:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"update\";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&(\"update\"===t?this.computedWidth=this.getLabelWidth():\"remove\"===t&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(t,e){this.updateAll&&(this.elForm.registerLabelWidth(t,e),this.elFormItem.updateComputedLabelWidth(t))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth(\"update\")},updated:function(){this.updateLabelWidth(\"update\")},beforeDestroy:function(){this.updateLabelWidth(\"remove\")}},Lo=o(No,undefined,undefined,!1,null,null,null);Lo.options.__file=\"packages/form/src/label-wrap.vue\";var Bo=Lo.exports,$o={name:\"ElFormItem\",componentName:\"ElFormItem\",mixins:[C.a],provide:function(){return{elFormItem:this}},inject:[\"elForm\"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:\"\"},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:Bo},watch:{error:{immediate:!0,handler:function(t){this.validateMessage=t,this.validateState=t?\"error\":\"\"}},validateStatus:function(t){this.validateState=t},rules:function(t){t&&0!==t.length||void 0!==this.required||this.clearValidate()}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var t={};if(\"top\"===this.form.labelPosition)return t;var e=this.labelWidth||this.form.labelWidth;return e&&(t.width=e),t},contentStyle:function(){var t={},e=this.label;if(\"top\"===this.form.labelPosition||this.form.inline)return t;if(!e&&!this.labelWidth&&this.isNested)return t;var n=this.labelWidth||this.form.labelWidth;return\"auto\"===n?\"auto\"===this.labelWidth?t.marginLeft=this.computedLabelWidth:\"auto\"===this.form.labelWidth&&(t.marginLeft=this.elForm.autoLabelWidth):t.marginLeft=n,t},form:function(){for(var t=this.$parent,e=t.$options.componentName;\"ElForm\"!==e;)\"ElFormItem\"===e&&(this.isNested=!0),e=(t=t.$parent).$options.componentName;return t},fieldValue:function(){var t=this.form.model;if(t&&this.prop){var e=this.prop;return-1!==e.indexOf(\":\")&&(e=e.replace(/:/,\".\")),Object(v.getPropByPath)(t,e,!0).v}},isRequired:function(){var t=this.getRules(),e=!1;return t&&t.length&&t.every((function(t){return!t.required||(e=!0,!1)})),e},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:\"\",validateMessage:\"\",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:\"\"}},methods:{validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.noop;this.validateDisabled=!1;var r=this.getFilteredRule(t);if((!r||0===r.length)&&void 0===this.required)return n(),!0;this.validateState=\"validating\";var i={};r&&r.length>0&&r.forEach((function(t){delete t.trigger})),i[this.prop]=r;var o=new jo.a(i),a={};a[this.prop]=this.fieldValue,o.validate(a,{firstFields:!0},(function(t,r){e.validateState=t?\"error\":\"success\",e.validateMessage=t?t[0].message:\"\",n(e.validateMessage,r),e.elForm&&e.elForm.$emit(\"validate\",e.prop,!t,e.validateMessage||null)}))},clearValidate:function(){this.validateState=\"\",this.validateMessage=\"\",this.validateDisabled=!1},resetField:function(){var t=this;this.validateState=\"\",this.validateMessage=\"\";var e=this.form.model,n=this.fieldValue,r=this.prop;-1!==r.indexOf(\":\")&&(r=r.replace(/:/,\".\"));var i=Object(v.getPropByPath)(e,r,!0);this.validateDisabled=!0,Array.isArray(n)?i.o[i.k]=[].concat(this.initialValue):i.o[i.k]=this.initialValue,this.$nextTick((function(){t.validateDisabled=!1})),this.broadcast(\"ElTimeSelect\",\"fieldReset\",this.initialValue)},getRules:function(){var t=this.form.rules,e=this.rules,n=void 0!==this.required?{required:!!this.required}:[],r=Object(v.getPropByPath)(t,this.prop||\"\");return t=t?r.o[this.prop||\"\"]||r.v:[],[].concat(e||t||[]).concat(n)},getFilteredRule:function(t){return this.getRules().filter((function(e){return!e.trigger||\"\"===t||(Array.isArray(e.trigger)?e.trigger.indexOf(t)>-1:e.trigger===t)})).map((function(t){return Ht()({},t)}))},onFieldBlur:function(){this.validate(\"blur\")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate(\"change\")},updateComputedLabelWidth:function(t){this.computedLabelWidth=t?t+\"px\":\"\"},addValidateEvents:function(){(this.getRules().length||void 0!==this.required)&&(this.$on(\"el.form.blur\",this.onFieldBlur),this.$on(\"el.form.change\",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch(\"ElForm\",\"el.form.addField\",[this]);var t=this.fieldValue;Array.isArray(t)&&(t=[].concat(t)),Object.defineProperty(this,\"initialValue\",{value:t}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch(\"ElForm\",\"el.form.removeField\",[this])}},zo=o($o,Po,[],!1,null,null,null);zo.options.__file=\"packages/form/src/form-item.vue\";var Ro=zo.exports;Ro.install=function(t){t.component(Ro.name,Ro)};var Uo=Ro,Vo=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"div\",{staticClass:\"el-tabs__active-bar\",class:\"is-\"+t.rootTabs.tabPosition,style:t.barStyle})};Vo._withStripped=!0;var Ho=o({name:\"TabBar\",props:{tabs:Array},inject:[\"rootTabs\"],computed:{barStyle:{get:function(){var t=this,e={},n=0,r=0,i=-1!==[\"top\",\"bottom\"].indexOf(this.rootTabs.tabPosition)?\"width\":\"height\",o=\"width\"===i?\"x\":\"y\",a=function(t){return t.toLowerCase().replace(/( |^)[a-z]/g,(function(t){return t.toUpperCase()}))};this.tabs.every((function(e,o){var s=Object(v.arrayFind)(t.$parent.$refs.tabs||[],(function(t){return t.id.replace(\"tab-\",\"\")===e.paneName}));if(!s)return!1;if(e.active){r=s[\"client\"+a(i)];var u=window.getComputedStyle(s);return\"width\"===i&&t.tabs.length>1&&(r-=parseFloat(u.paddingLeft)+parseFloat(u.paddingRight)),\"width\"===i&&(n+=parseFloat(u.paddingLeft)),!1}return n+=s[\"client\"+a(i)],!0}));var s=\"translate\"+a(o)+\"(\"+n+\"px)\";return e[i]=r+\"px\",e.transform=s,e.msTransform=s,e.webkitTransform=s,e}}}},Vo,[],!1,null,null,null);Ho.options.__file=\"packages/tabs/src/tab-bar.vue\";var Go=Ho.exports;function qo(){}var Wo=function(t){return t.toLowerCase().replace(/( |^)[a-z]/g,(function(t){return t.toUpperCase()}))},Yo={name:\"TabNav\",components:{TabBar:Go},inject:[\"rootTabs\"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:qo},onTabRemove:{type:Function,default:qo},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){return{transform:\"translate\"+(-1!==[\"top\",\"bottom\"].indexOf(this.rootTabs.tabPosition)?\"X\":\"Y\")+\"(-\"+this.navOffset+\"px)\"}},sizeName:function(){return-1!==[\"top\",\"bottom\"].indexOf(this.rootTabs.tabPosition)?\"width\":\"height\"}},methods:{scrollPrev:function(){var t=this.$refs.navScroll[\"offset\"+Wo(this.sizeName)],e=this.navOffset;if(e){var n=e>t?e-t:0;this.navOffset=n}},scrollNext:function(){var t=this.$refs.nav[\"offset\"+Wo(this.sizeName)],e=this.$refs.navScroll[\"offset\"+Wo(this.sizeName)],n=this.navOffset;if(!(t-n<=e)){var r=t-n>2*e?n+e:t-e;this.navOffset=r}},scrollToActiveTab:function(){if(this.scrollable){var t=this.$refs.nav,e=this.$el.querySelector(\".is-active\");if(e){var n=this.$refs.navScroll,r=-1!==[\"top\",\"bottom\"].indexOf(this.rootTabs.tabPosition),i=e.getBoundingClientRect(),o=n.getBoundingClientRect(),a=r?t.offsetWidth-o.width:t.offsetHeight-o.height,s=this.navOffset,u=s;r?(i.left<o.left&&(u=s-(o.left-i.left)),i.right>o.right&&(u=s+i.right-o.right)):(i.top<o.top&&(u=s-(o.top-i.top)),i.bottom>o.bottom&&(u=s+(i.bottom-o.bottom))),u=Math.max(u,0),this.navOffset=Math.min(u,a)}}},update:function(){if(this.$refs.nav){var t=this.sizeName,e=this.$refs.nav[\"offset\"+Wo(t)],n=this.$refs.navScroll[\"offset\"+Wo(t)],r=this.navOffset;if(n<e){var i=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=i,this.scrollable.next=i+n<e,e-i<n&&(this.navOffset=e-n)}else this.scrollable=!1,r>0&&(this.navOffset=0)}},changeTab:function(t){var e=t.keyCode,n=void 0,r=void 0,i=void 0;-1!==[37,38,39,40].indexOf(e)&&(i=t.currentTarget.querySelectorAll(\"[role=tab]\"),r=Array.prototype.indexOf.call(i,t.target),i[n=37===e||38===e?0===r?i.length-1:r-1:r<i.length-1?r+1:0].focus(),i[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var t=this,e=document.visibilityState;\"hidden\"===e?this.focusable=!1:\"visible\"===e&&setTimeout((function(){t.focusable=!0}),50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var t=this;setTimeout((function(){t.focusable=!0}),50)}},updated:function(){this.update()},render:function(t){var e=this,n=this.type,r=this.panes,i=this.editable,o=this.stretch,a=this.onTabClick,s=this.onTabRemove,u=this.navStyle,l=this.scrollable,c=this.scrollNext,h=this.scrollPrev,f=this.changeTab,d=this.setFocus,p=this.removeFocus,m=l?[t(\"span\",{class:[\"el-tabs__nav-prev\",l.prev?\"\":\"is-disabled\"],on:{click:h}},[t(\"i\",{class:\"el-icon-arrow-left\"})]),t(\"span\",{class:[\"el-tabs__nav-next\",l.next?\"\":\"is-disabled\"],on:{click:c}},[t(\"i\",{class:\"el-icon-arrow-right\"})])]:null,v=this._l(r,(function(n,r){var o,u=n.name||n.index||r,l=n.isClosable||i;n.index=\"\"+r;var c=l?t(\"span\",{class:\"el-icon-close\",on:{click:function(t){s(n,t)}}}):null,h=n.$slots.label||n.label,f=n.active?0:-1;return t(\"div\",{class:(o={\"el-tabs__item\":!0},o[\"is-\"+e.rootTabs.tabPosition]=!0,o[\"is-active\"]=n.active,o[\"is-disabled\"]=n.disabled,o[\"is-closable\"]=l,o[\"is-focus\"]=e.isFocus,o),attrs:{id:\"tab-\"+u,\"aria-controls\":\"pane-\"+u,role:\"tab\",\"aria-selected\":n.active,tabindex:f},key:\"tab-\"+u,ref:\"tabs\",refInFor:!0,on:{focus:function(){d()},blur:function(){p()},click:function(t){p(),a(n,u,t)},keydown:function(t){!l||46!==t.keyCode&&8!==t.keyCode||s(n,t)}}},[h,c])}));return t(\"div\",{class:[\"el-tabs__nav-wrap\",l?\"is-scrollable\":\"\",\"is-\"+this.rootTabs.tabPosition]},[m,t(\"div\",{class:[\"el-tabs__nav-scroll\"],ref:\"navScroll\"},[t(\"div\",{class:[\"el-tabs__nav\",\"is-\"+this.rootTabs.tabPosition,o&&-1!==[\"top\",\"bottom\"].indexOf(this.rootTabs.tabPosition)?\"is-stretch\":\"\"],ref:\"nav\",style:u,attrs:{role:\"tablist\"},on:{keydown:f}},[n?null:t(\"tab-bar\",{attrs:{tabs:r}}),v])])])},mounted:function(){var t=this;Object(Re.addResizeListener)(this.$el,this.update),document.addEventListener(\"visibilitychange\",this.visibilityChangeHandler),window.addEventListener(\"blur\",this.windowBlurHandler),window.addEventListener(\"focus\",this.windowFocusHandler),setTimeout((function(){t.scrollToActiveTab()}),0)},beforeDestroy:function(){this.$el&&this.update&&Object(Re.removeResizeListener)(this.$el,this.update),document.removeEventListener(\"visibilitychange\",this.visibilityChangeHandler),window.removeEventListener(\"blur\",this.windowBlurHandler),window.removeEventListener(\"focus\",this.windowFocusHandler)}},Zo=o(Yo,undefined,undefined,!1,null,null,null);Zo.options.__file=\"packages/tabs/src/tab-nav.vue\";var Ko={name:\"ElTabs\",components:{TabNav:Zo.exports},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:\"top\"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(t){this.setCurrentName(t)},value:function(t){this.setCurrentName(t)},currentName:function(t){var e=this;this.$refs.nav&&this.$nextTick((function(){e.$refs.nav.$nextTick((function(t){e.$refs.nav.scrollToActiveTab()}))}))}},methods:{calcPaneInstances:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter((function(t){return t.tag&&t.componentOptions&&\"ElTabPane\"===t.componentOptions.Ctor.options.name})).map((function(t){return t.componentInstance})),r=!(n.length===this.panes.length&&n.every((function(e,n){return e===t.panes[n]})));(e||r)&&(this.panes=n)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(t,e,n){t.disabled||(this.setCurrentName(e),this.$emit(\"tab-click\",t,n))},handleTabRemove:function(t,e){t.disabled||(e.stopPropagation(),this.$emit(\"edit\",t.name,\"remove\"),this.$emit(\"tab-remove\",t.name))},handleTabAdd:function(){this.$emit(\"edit\",null,\"add\"),this.$emit(\"tab-add\")},setCurrentName:function(t){var e=this,n=function(){e.currentName=t,e.$emit(\"input\",t)};if(this.currentName!==t&&this.beforeLeave){var r=this.beforeLeave(t,this.currentName);r&&r.then?r.then((function(){n(),e.$refs.nav&&e.$refs.nav.removeFocus()}),(function(){})):!1!==r&&n()}else n()}},render:function(t){var e,n=this.type,r=this.handleTabClick,i=this.handleTabRemove,o=this.handleTabAdd,a=this.currentName,s=this.panes,u=this.editable,l=this.addable,c=this.tabPosition,h=this.stretch,f=u||l?t(\"span\",{class:\"el-tabs__new-tab\",on:{click:o,keydown:function(t){13===t.keyCode&&o()}},attrs:{tabindex:\"0\"}},[t(\"i\",{class:\"el-icon-plus\"})]):null,d=t(\"div\",{class:[\"el-tabs__header\",\"is-\"+c]},[f,t(\"tab-nav\",{props:{currentName:a,onTabClick:r,onTabRemove:i,editable:u,type:n,panes:s,stretch:h},ref:\"nav\"})]),p=t(\"div\",{class:\"el-tabs__content\"},[this.$slots.default]);return t(\"div\",{class:(e={\"el-tabs\":!0,\"el-tabs--card\":\"card\"===n},e[\"el-tabs--\"+c]=!0,e[\"el-tabs--border-card\"]=\"border-card\"===n,e)},[\"bottom\"!==c?[d,p]:[p,d]])},created:function(){this.currentName||this.setCurrentName(\"0\"),this.$on(\"tab-nav-update\",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},Xo=o(Ko,undefined,undefined,!1,null,null,null);Xo.options.__file=\"packages/tabs/src/tabs.vue\";var Jo=Xo.exports;Jo.install=function(t){t.component(Jo.name,Jo)};var Qo=Jo,ta=function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.lazy||t.loaded||t.active?n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.active,expression:\"active\"}],staticClass:\"el-tab-pane\",attrs:{role:\"tabpanel\",\"aria-hidden\":!t.active,id:\"pane-\"+t.paneName,\"aria-labelledby\":\"tab-\"+t.paneName}},[t._t(\"default\")],2):t._e()};ta._withStripped=!0;var ea=o({name:\"ElTabPane\",componentName:\"ElTabPane\",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var t=this.$parent.currentName===(this.name||this.index);return t&&(this.loaded=!0),t},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit(\"tab-nav-update\")}},ta,[],!1,null,null,null);ea.options.__file=\"packages/tabs/src/tab-pane.vue\";var na=ea.exports;na.install=function(t){t.component(na.name,na)};var ra=na,ia=o({name:\"ElTag\",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:\"light\",validator:function(t){return-1!==[\"dark\",\"light\",\"plain\"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit(\"close\",t)},handleClick:function(t){this.$emit(\"click\",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=t(\"span\",{class:[\"el-tag\",e?\"el-tag--\"+e:\"\",n?\"el-tag--\"+n:\"\",i?\"el-tag--\"+i:\"\",r&&\"is-hit\"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t(\"i\",{class:\"el-tag__close el-icon-close\",on:{click:this.handleClose}})]);return this.disableTransitions?o:t(\"transition\",{attrs:{name:\"el-zoom-in-center\"}},[o])}},undefined,undefined,!1,null,null,null);ia.options.__file=\"packages/tag/src/tag.vue\";var oa=ia.exports;oa.install=function(t){t.component(oa.name,oa)};var aa=oa,sa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-tree\",class:{\"el-tree--highlight-current\":t.highlightCurrent,\"is-dragging\":!!t.dragState.draggingNode,\"is-drop-not-allow\":!t.dragState.allowDrop,\"is-drop-inner\":\"inner\"===t.dragState.dropType},attrs:{role:\"tree\"}},[t._l(t.root.childNodes,(function(e){return n(\"el-tree-node\",{key:t.getNodeKey(e),attrs:{node:e,props:t.props,\"render-after-expand\":t.renderAfterExpand,\"show-checkbox\":t.showCheckbox,\"render-content\":t.renderContent},on:{\"node-expand\":t.handleNodeExpand}})})),t.isEmpty?n(\"div\",{staticClass:\"el-tree__empty-block\"},[n(\"span\",{staticClass:\"el-tree__empty-text\"},[t._v(t._s(t.emptyText))])]):t._e(),n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.dragState.showDropIndicator,expression:\"dragState.showDropIndicator\"}],ref:\"dropIndicator\",staticClass:\"el-tree__drop-indicator\"})],2)};sa._withStripped=!0;var ua=\"$treeNodeId\",la=function(t,e){e&&!e[ua]&&Object.defineProperty(e,ua,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},ca=function(t,e){return t?e[t]:e[ua]},ha=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var fa=function(t){for(var e=!0,n=!0,r=!0,i=0,o=t.length;i<o;i++){var a=t[i];(!0!==a.checked||a.indeterminate)&&(e=!1,a.disabled||(r=!1)),(!1!==a.checked||a.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},da=function t(e){if(0!==e.childNodes.length&&!e.loading){var n=fa(e.childNodes),r=n.all,i=n.none,o=n.half;r?(e.checked=!0,e.indeterminate=!1):o?(e.checked=!1,e.indeterminate=!0):i&&(e.checked=!1,e.indeterminate=!1);var a=e.parent;a&&0!==a.level&&(e.store.checkStrictly||t(a))}},pa=function(t,e){var n=t.store.props,r=t.data||{},i=n[e];if(\"function\"==typeof i)return i(r,t);if(\"string\"==typeof i)return r[i];if(void 0===i){var o=r[e];return void 0===o?\"\":o}},ma=0,va=function(){function t(e){for(var n in function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.id=ma++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,e)e.hasOwnProperty(n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var r=this.store;if(!r)throw new Error(\"[Node]store is required!\");r.registerNode(this);var i=r.props;if(i&&void 0!==i.isLeaf){var o=pa(this,\"isLeaf\");\"boolean\"==typeof o&&(this.isLeafByUser=o)}if(!0!==r.lazy&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||la(this,this.data),this.data){var a=r.defaultExpandedKeys,s=r.key;s&&a&&-1!==a.indexOf(this.key)&&this.expand(null,r.autoExpandParent),s&&void 0!==r.currentNodeKey&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState()}}return t.prototype.setData=function(t){Array.isArray(t)||la(this,t),this.data=t,this.childNodes=[];for(var e=void 0,n=0,r=(e=0===this.level&&this.data instanceof Array?this.data:pa(this,\"children\")||[]).length;n<r;n++)this.insertChild({data:e[n]})},t.prototype.contains=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function n(r){for(var i=r.childNodes||[],o=!1,a=0,s=i.length;a<s;a++){var u=i[a];if(u===t||e&&n(u)){o=!0;break}}return o}(this)},t.prototype.remove=function(){var t=this.parent;t&&t.removeChild(this)},t.prototype.insertChild=function(e,n,r){if(!e)throw new Error(\"insertChild error: child is required.\");if(!(e instanceof t)){if(!r){var i=this.getChildren(!0)||[];-1===i.indexOf(e.data)&&(void 0===n||n<0?i.push(e.data):i.splice(n,0,e.data))}Ht()(e,{parent:this,store:this.store}),e=new t(e)}e.level=this.level+1,void 0===n||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()},t.prototype.insertBefore=function(t,e){var n=void 0;e&&(n=this.childNodes.indexOf(e)),this.insertChild(t,n)},t.prototype.insertAfter=function(t,e){var n=void 0;e&&-1!==(n=this.childNodes.indexOf(e))&&(n+=1),this.insertChild(t,n)},t.prototype.removeChild=function(t){var e=this.getChildren()||[],n=e.indexOf(t.data);n>-1&&e.splice(n,1);var r=this.childNodes.indexOf(t);r>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()},t.prototype.removeChildByData=function(t){for(var e=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===t){e=this.childNodes[n];break}e&&this.removeChild(e)},t.prototype.expand=function(t,e){var n=this,r=function(){if(e)for(var r=n.parent;r.level>0;)r.expanded=!0,r=r.parent;n.expanded=!0,t&&t()};this.shouldLoadData()?this.loadData((function(t){t instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||da(n),r())})):r()},t.prototype.doCreateChildren=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t){e.insertChild(Ht()({data:t},n),void 0,!0)}))},t.prototype.collapse=function(){this.expanded=!1},t.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},t.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||void 0===this.isLeafByUser){var t=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!t||0===t.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},t.prototype.setChecked=function(t,e,n,r){var i=this;if(this.indeterminate=\"half\"===t,this.checked=!0===t,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=fa(this.childNodes),a=o.all,s=o.allWithoutDisable;this.isLeaf||a||!s||(this.checked=!1,t=!1);var u=function(){if(e){for(var n=i.childNodes,o=0,a=n.length;o<a;o++){var s=n[o];r=r||!1!==t;var u=s.disabled?s.checked:r;s.setChecked(u,e,!0,r)}var l=fa(n),c=l.half,h=l.all;h||(i.checked=h,i.indeterminate=c)}};if(this.shouldLoadData())return void this.loadData((function(){u(),da(i)}),{checked:!1!==t});u()}var l=this.parent;l&&0!==l.level&&(n||da(l))}},t.prototype.getChildren=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var e=this.data;if(!e)return null;var n=this.store.props,r=\"children\";return n&&(r=n.children||\"children\"),void 0===e[r]&&(e[r]=null),t&&!e[r]&&(e[r]=[]),e[r]},t.prototype.updateChildren=function(){var t=this,e=this.getChildren()||[],n=this.childNodes.map((function(t){return t.data})),r={},i=[];e.forEach((function(t,e){var o=t[ua];!!o&&Object(v.arrayFindIndex)(n,(function(t){return t[ua]===o}))>=0?r[o]={index:e,data:t}:i.push({index:e,data:t})})),this.store.lazy||n.forEach((function(e){r[e[ua]]||t.removeChildByData(e)})),i.forEach((function(e){var n=e.index,r=e.data;t.insertChild({data:r},n)})),this.updateLeafState()},t.prototype.loadData=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)t&&t.call(this);else{this.loading=!0;this.store.load(this,(function(r){e.childNodes=[],e.doCreateChildren(r,n),e.loaded=!0,e.loading=!1,e.updateLeafState(),t&&t.call(e,r)}))}},ha(t,[{key:\"label\",get:function(){return pa(this,\"label\")}},{key:\"key\",get:function(){var t=this.store.key;return this.data?this.data[t]:null}},{key:\"disabled\",get:function(){return pa(this,\"disabled\")}},{key:\"nextSibling\",get:function(){var t=this.parent;if(t){var e=t.childNodes.indexOf(this);if(e>-1)return t.childNodes[e+1]}return null}},{key:\"previousSibling\",get:function(){var t=this.parent;if(t){var e=t.childNodes.indexOf(this);if(e>-1)return e>0?t.childNodes[e-1]:null}return null}}]),t}(),ga=va,ya=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)};var ba=function(){function t(e){var n=this;for(var r in function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.currentNode=null,this.currentNodeKey=null,e)e.hasOwnProperty(r)&&(this[r]=e[r]);(this.nodesMap={},this.root=new ga({data:this.data,store:this}),this.lazy&&this.load)?(0,this.load)(this.root,(function(t){n.root.doCreateChildren(t),n._initDefaultCheckedNodes()})):this._initDefaultCheckedNodes()}return t.prototype.filter=function(t){var e=this.filterNodeMethod,n=this.lazy;!function r(i){var o=i.root?i.root.childNodes:i.childNodes;if(o.forEach((function(n){n.visible=e.call(n,t,n.data,n),r(n)})),!i.visible&&o.length){var a;a=!o.some((function(t){return t.visible})),i.root?i.root.visible=!1===a:i.visible=!1===a}t&&(!i.visible||i.isLeaf||n||i.expand())}(this)},t.prototype.setData=function(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()},t.prototype.getNode=function(t){if(t instanceof ga)return t;var e=\"object\"!==(void 0===t?\"undefined\":ya(t))?t:ca(this.key,t);return this.nodesMap[e]||null},t.prototype.insertBefore=function(t,e){var n=this.getNode(e);n.parent.insertBefore({data:t},n)},t.prototype.insertAfter=function(t,e){var n=this.getNode(e);n.parent.insertAfter({data:t},n)},t.prototype.remove=function(t){var e=this.getNode(t);e&&e.parent&&(e===this.currentNode&&(this.currentNode=null),e.parent.removeChild(e))},t.prototype.append=function(t,e){var n=e?this.getNode(e):this.root;n&&n.insertChild({data:t})},t.prototype._initDefaultCheckedNodes=function(){var t=this,e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach((function(e){var r=n[e];r&&r.setChecked(!0,!t.checkStrictly)}))},t.prototype._initDefaultCheckedNode=function(t){-1!==(this.defaultCheckedKeys||[]).indexOf(t.key)&&t.setChecked(!0,!this.checkStrictly)},t.prototype.setDefaultCheckedKey=function(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())},t.prototype.registerNode=function(t){this.key&&t&&t.data&&(void 0!==t.key&&(this.nodesMap[t.key]=t))},t.prototype.deregisterNode=function(t){var e=this;this.key&&t&&t.data&&(t.childNodes.forEach((function(t){e.deregisterNode(t)})),delete this.nodesMap[t.key])},t.prototype.getCheckedNodes=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return function r(i){(i.root?i.root.childNodes:i.childNodes).forEach((function(i){(i.checked||e&&i.indeterminate)&&(!t||t&&i.isLeaf)&&n.push(i.data),r(i)}))}(this),n},t.prototype.getCheckedKeys=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(e).map((function(e){return(e||{})[t.key]}))},t.prototype.getHalfCheckedNodes=function(){var t=[];return function e(n){(n.root?n.root.childNodes:n.childNodes).forEach((function(n){n.indeterminate&&t.push(n.data),e(n)}))}(this),t},t.prototype.getHalfCheckedKeys=function(){var t=this;return this.getHalfCheckedNodes().map((function(e){return(e||{})[t.key]}))},t.prototype._getAllNodes=function(){var t=[],e=this.nodesMap;for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},t.prototype.updateChildren=function(t,e){var n=this.nodesMap[t];if(n){for(var r=n.childNodes,i=r.length-1;i>=0;i--){var o=r[i];this.remove(o.data)}for(var a=0,s=e.length;a<s;a++){var u=e[a];this.append(u,n.data)}}},t.prototype._setCheckedKeys=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=this._getAllNodes().sort((function(t,e){return e.level-t.level})),i=Object.create(null),o=Object.keys(n);r.forEach((function(t){return t.setChecked(!1,!1)}));for(var a=0,s=r.length;a<s;a++){var u=r[a],l=u.data[t].toString();if(o.indexOf(l)>-1){for(var c=u.parent;c&&c.level>0;)i[c.data[t]]=!0,c=c.parent;u.isLeaf||this.checkStrictly?u.setChecked(!0,!1):(u.setChecked(!0,!0),e&&function(){u.setChecked(!1,!1);!function t(e){e.childNodes.forEach((function(e){e.isLeaf||e.setChecked(!1,!1),t(e)}))}(u)}())}else u.checked&&!i[l]&&u.setChecked(!1,!1)}},t.prototype.setCheckedNodes=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,r={};t.forEach((function(t){r[(t||{})[n]]=!0})),this._setCheckedKeys(n,e,r)},t.prototype.setCheckedKeys=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=t;var n=this.key,r={};t.forEach((function(t){r[t]=!0})),this._setCheckedKeys(n,e,r)},t.prototype.setDefaultExpandedKeys=function(t){var e=this;t=t||[],this.defaultExpandedKeys=t,t.forEach((function(t){var n=e.getNode(t);n&&n.expand(null,e.autoExpandParent)}))},t.prototype.setChecked=function(t,e,n){var r=this.getNode(t);r&&r.setChecked(!!e,n)},t.prototype.getCurrentNode=function(){return this.currentNode},t.prototype.setCurrentNode=function(t){var e=this.currentNode;e&&(e.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0},t.prototype.setUserCurrentNode=function(t){var e=t[this.key],n=this.nodesMap[e];this.setCurrentNode(n)},t.prototype.setCurrentNodeKey=function(t){if(null==t)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var e=this.getNode(t);e&&this.setCurrentNode(e)},t}(),_a=ba,wa=function(){var t=this,e=this,n=e.$createElement,r=e._self._c||n;return r(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:e.node.visible,expression:\"node.visible\"}],ref:\"node\",staticClass:\"el-tree-node\",class:{\"is-expanded\":e.expanded,\"is-current\":e.node.isCurrent,\"is-hidden\":!e.node.visible,\"is-focusable\":!e.node.disabled,\"is-checked\":!e.node.disabled&&e.node.checked},attrs:{role:\"treeitem\",tabindex:\"-1\",\"aria-expanded\":e.expanded,\"aria-disabled\":e.node.disabled,\"aria-checked\":e.node.checked,draggable:e.tree.draggable},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)},contextmenu:function(e){return t.handleContextMenu(e)},dragstart:function(t){return t.stopPropagation(),e.handleDragStart(t)},dragover:function(t){return t.stopPropagation(),e.handleDragOver(t)},dragend:function(t){return t.stopPropagation(),e.handleDragEnd(t)},drop:function(t){return t.stopPropagation(),e.handleDrop(t)}}},[r(\"div\",{staticClass:\"el-tree-node__content\",style:{\"padding-left\":(e.node.level-1)*e.tree.indent+\"px\"}},[r(\"span\",{class:[{\"is-leaf\":e.node.isLeaf,expanded:!e.node.isLeaf&&e.expanded},\"el-tree-node__expand-icon\",e.tree.iconClass?e.tree.iconClass:\"el-icon-caret-right\"],on:{click:function(t){return t.stopPropagation(),e.handleExpandIconClick(t)}}}),e.showCheckbox?r(\"el-checkbox\",{attrs:{indeterminate:e.node.indeterminate,disabled:!!e.node.disabled},on:{change:e.handleCheckChange},nativeOn:{click:function(t){t.stopPropagation()}},model:{value:e.node.checked,callback:function(t){e.$set(e.node,\"checked\",t)},expression:\"node.checked\"}}):e._e(),e.node.loading?r(\"span\",{staticClass:\"el-tree-node__loading-icon el-icon-loading\"}):e._e(),r(\"node-content\",{attrs:{node:e.node}})],1),r(\"el-collapse-transition\",[!e.renderAfterExpand||e.childNodeRendered?r(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:e.expanded,expression:\"expanded\"}],staticClass:\"el-tree-node__children\",attrs:{role:\"group\",\"aria-expanded\":e.expanded}},e._l(e.node.childNodes,(function(t){return r(\"el-tree-node\",{key:e.getNodeKey(t),attrs:{\"render-content\":e.renderContent,\"render-after-expand\":e.renderAfterExpand,\"show-checkbox\":e.showCheckbox,node:t},on:{\"node-expand\":e.handleChildNodeExpand}})})),1):e._e()])],1)};wa._withStripped=!0;var xa={name:\"ElTreeNode\",componentName:\"ElTreeNode\",mixins:[C.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:xt.a,ElCheckbox:cn.a,NodeContent:{props:{node:{required:!0}},render:function(t){var e=this.$parent,n=e.tree,r=this.node,i=r.data,o=r.store;return e.renderContent?e.renderContent.call(e._renderProxy,t,{_self:n.$vnode.context,node:r,data:i,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:r,data:i}):t(\"span\",{class:\"el-tree-node__label\"},[r.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{\"node.indeterminate\":function(t){this.handleSelectChange(this.node.checked,t)},\"node.checked\":function(t){this.handleSelectChange(t,this.node.indeterminate)},\"node.expanded\":function(t){var e=this;this.$nextTick((function(){return e.expanded=t})),t&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(t){return ca(this.tree.nodeKey,t.data)},handleSelectChange:function(t,e){this.oldChecked!==t&&this.oldIndeterminate!==e&&this.tree.$emit(\"check-change\",this.node.data,t,e),this.oldChecked=t,this.indeterminate=e},handleClick:function(){var t=this.tree.store;t.setCurrentNode(this.node),this.tree.$emit(\"current-change\",t.currentNode?t.currentNode.data:null,t.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit(\"node-click\",this.node.data,this.node,this)},handleContextMenu:function(t){this.tree._events[\"node-contextmenu\"]&&this.tree._events[\"node-contextmenu\"].length>0&&(t.stopPropagation(),t.preventDefault()),this.tree.$emit(\"node-contextmenu\",t,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit(\"node-collapse\",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit(\"node-expand\",this.node.data,this.node,this)))},handleCheckChange:function(t,e){var n=this;this.node.setChecked(e.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var t=n.tree.store;n.tree.$emit(\"check\",n.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(t,e,n){this.broadcast(\"ElTreeNode\",\"tree-node-expand\",e),this.tree.$emit(\"node-expand\",t,e,n)},handleDragStart:function(t){this.tree.draggable&&this.tree.$emit(\"tree-node-drag-start\",t,this)},handleDragOver:function(t){this.tree.draggable&&(this.tree.$emit(\"tree-node-drag-over\",t,this),t.preventDefault())},handleDrop:function(t){t.preventDefault()},handleDragEnd:function(t){this.tree.draggable&&this.tree.$emit(\"tree-node-drag-end\",t,this)}},created:function(){var t=this,e=this.$parent;e.isTree?this.tree=e:this.tree=e.tree;var n=this.tree,r=(n.props||{}).children||\"children\";this.$watch(\"node.data.\"+r,(function(){t.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on(\"tree-node-expand\",(function(e){t.node!==e&&t.node.collapse()}))}},ka=o(xa,wa,[],!1,null,null,null);ka.options.__file=\"packages/tree/src/tree-node.vue\";var Sa=ka.exports,Ca={name:\"ElTree\",mixins:[C.a],components:{ElTreeNode:Sa},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(to.t)(\"el.tree.emptyText\")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:\"children\",label:\"label\",disabled:\"disabled\"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(t){this.data=t},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var t=this.root.childNodes;return!t||0===t.length||t.every((function(t){return!t.visible}))}},watch:{defaultCheckedKeys:function(t){this.store.setDefaultCheckedKey(t)},defaultExpandedKeys:function(t){this.store.defaultExpandedKeys=t,this.store.setDefaultExpandedKeys(t)},data:function(t){this.store.setData(t)},checkboxItems:function(t){Array.prototype.forEach.call(t,(function(t){t.setAttribute(\"tabindex\",-1)}))},checkStrictly:function(t){this.store.checkStrictly=t}},methods:{filter:function(t){if(!this.filterNodeMethod)throw new Error(\"[Tree] filterNodeMethod is required when filter\");this.store.filter(t)},getNodeKey:function(t){return ca(this.nodeKey,t.data)},getNodePath:function(t){if(!this.nodeKey)throw new Error(\"[Tree] nodeKey is required in getNodePath\");var e=this.store.getNode(t);if(!e)return[];for(var n=[e.data],r=e.parent;r&&r!==this.root;)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:function(t,e){return this.store.getCheckedNodes(t,e)},getCheckedKeys:function(t){return this.store.getCheckedKeys(t)},getCurrentNode:function(){var t=this.store.getCurrentNode();return t?t.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error(\"[Tree] nodeKey is required in getCurrentKey\");var t=this.getCurrentNode();return t?t[this.nodeKey]:null},setCheckedNodes:function(t,e){if(!this.nodeKey)throw new Error(\"[Tree] nodeKey is required in setCheckedNodes\");this.store.setCheckedNodes(t,e)},setCheckedKeys:function(t,e){if(!this.nodeKey)throw new Error(\"[Tree] nodeKey is required in setCheckedKeys\");this.store.setCheckedKeys(t,e)},setChecked:function(t,e,n){this.store.setChecked(t,e,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(t){if(!this.nodeKey)throw new Error(\"[Tree] nodeKey is required in setCurrentNode\");this.store.setUserCurrentNode(t)},setCurrentKey:function(t){if(!this.nodeKey)throw new Error(\"[Tree] nodeKey is required in setCurrentKey\");this.store.setCurrentNodeKey(t)},getNode:function(t){return this.store.getNode(t)},remove:function(t){this.store.remove(t)},append:function(t,e){this.store.append(t,e)},insertBefore:function(t,e){this.store.insertBefore(t,e)},insertAfter:function(t,e){this.store.insertAfter(t,e)},handleNodeExpand:function(t,e,n){this.broadcast(\"ElTreeNode\",\"tree-node-expand\",e),this.$emit(\"node-expand\",t,e,n)},updateKeyChildren:function(t,e){if(!this.nodeKey)throw new Error(\"[Tree] nodeKey is required in updateKeyChild\");this.store.updateChildren(t,e)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(\".is-focusable[role=treeitem]\"),this.checkboxItems=this.$el.querySelectorAll(\"input[type=checkbox]\");var t=this.$el.querySelectorAll(\".is-checked[role=treeitem]\");t.length?t[0].setAttribute(\"tabindex\",0):this.treeItems[0]&&this.treeItems[0].setAttribute(\"tabindex\",0)},handleKeydown:function(t){var e=t.target;if(-1!==e.className.indexOf(\"el-tree-node\")){var n=t.keyCode;this.treeItems=this.$el.querySelectorAll(\".is-focusable[role=treeitem]\");var r=this.treeItemArray.indexOf(e),i=void 0;[38,40].indexOf(n)>-1&&(t.preventDefault(),i=38===n?0!==r?r-1:0:r<this.treeItemArray.length-1?r+1:0,this.treeItemArray[i].focus()),[37,39].indexOf(n)>-1&&(t.preventDefault(),e.click());var o=e.querySelector('[type=\"checkbox\"]');[13,32].indexOf(n)>-1&&o&&(t.preventDefault(),o.click())}}},created:function(){var t=this;this.isTree=!0,this.store=new _a({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var e=this.dragState;this.$on(\"tree-node-drag-start\",(function(n,r){if(\"function\"==typeof t.allowDrag&&!t.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed=\"move\";try{n.dataTransfer.setData(\"text/plain\",\"\")}catch(t){}e.draggingNode=r,t.$emit(\"node-drag-start\",r.node,n)})),this.$on(\"tree-node-drag-over\",(function(n,r){var i=function(t,e){for(var n=t;n&&\"BODY\"!==n.tagName;){if(n.__vue__&&n.__vue__.$options.name===e)return n.__vue__;n=n.parentNode}return null}(n.target,\"ElTreeNode\"),o=e.dropNode;o&&o!==i&&Object(vt.removeClass)(o.$el,\"is-drop-inner\");var a=e.draggingNode;if(a&&i){var s=!0,u=!0,l=!0,c=!0;\"function\"==typeof t.allowDrop&&(s=t.allowDrop(a.node,i.node,\"prev\"),c=u=t.allowDrop(a.node,i.node,\"inner\"),l=t.allowDrop(a.node,i.node,\"next\")),n.dataTransfer.dropEffect=u?\"move\":\"none\",(s||u||l)&&o!==i&&(o&&t.$emit(\"node-drag-leave\",a.node,o.node,n),t.$emit(\"node-drag-enter\",a.node,i.node,n)),(s||u||l)&&(e.dropNode=i),i.node.nextSibling===a.node&&(l=!1),i.node.previousSibling===a.node&&(s=!1),i.node.contains(a.node,!1)&&(u=!1),(a.node===i.node||a.node.contains(i.node))&&(s=!1,u=!1,l=!1);var h=i.$el.getBoundingClientRect(),f=t.$el.getBoundingClientRect(),d=void 0,p=s?u?.25:l?.45:1:-1,m=l?u?.75:s?.55:0:1,v=-9999,g=n.clientY-h.top;d=g<h.height*p?\"before\":g>h.height*m?\"after\":u?\"inner\":\"none\";var y=i.$el.querySelector(\".el-tree-node__expand-icon\").getBoundingClientRect(),b=t.$refs.dropIndicator;\"before\"===d?v=y.top-f.top:\"after\"===d&&(v=y.bottom-f.top),b.style.top=v+\"px\",b.style.left=y.right-f.left+\"px\",\"inner\"===d?Object(vt.addClass)(i.$el,\"is-drop-inner\"):Object(vt.removeClass)(i.$el,\"is-drop-inner\"),e.showDropIndicator=\"before\"===d||\"after\"===d,e.allowDrop=e.showDropIndicator||c,e.dropType=d,t.$emit(\"node-drag-over\",a.node,i.node,n)}})),this.$on(\"tree-node-drag-end\",(function(n){var r=e.draggingNode,i=e.dropType,o=e.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect=\"move\",r&&o){var a={data:r.node.data};\"none\"!==i&&r.node.remove(),\"before\"===i?o.node.parent.insertBefore(a,o.node):\"after\"===i?o.node.parent.insertAfter(a,o.node):\"inner\"===i&&o.node.insertChild(a),\"none\"!==i&&t.store.registerNode(a),Object(vt.removeClass)(o.$el,\"is-drop-inner\"),t.$emit(\"node-drag-end\",r.node,o.node,i,n),\"none\"!==i&&t.$emit(\"node-drop\",r.node,o.node,i,n)}r&&!o&&t.$emit(\"node-drag-end\",r.node,null,i,n),e.showDropIndicator=!1,e.draggingNode=null,e.dropNode=null,e.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener(\"keydown\",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll(\"[role=treeitem]\"),this.checkboxItems=this.$el.querySelectorAll(\"input[type=checkbox]\")}},Ea=o(Ca,sa,[],!1,null,null,null);Ea.options.__file=\"packages/tree/src/tree.vue\";var Da=Ea.exports;Da.install=function(t){t.component(Da.name,Da)};var Aa=Da,Oa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-alert-fade\"}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-alert\",class:[t.typeClass,t.center?\"is-center\":\"\",\"is-\"+t.effect],attrs:{role:\"alert\"}},[t.showIcon?n(\"i\",{staticClass:\"el-alert__icon\",class:[t.iconClass,t.isBigIcon]}):t._e(),n(\"div\",{staticClass:\"el-alert__content\"},[t.title||t.$slots.title?n(\"span\",{staticClass:\"el-alert__title\",class:[t.isBoldTitle]},[t._t(\"title\",[t._v(t._s(t.title))])],2):t._e(),t.$slots.default&&!t.description?n(\"p\",{staticClass:\"el-alert__description\"},[t._t(\"default\")],2):t._e(),t.description&&!t.$slots.default?n(\"p\",{staticClass:\"el-alert__description\"},[t._v(t._s(t.description))]):t._e(),n(\"i\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.closable,expression:\"closable\"}],staticClass:\"el-alert__closebtn\",class:{\"is-customed\":\"\"!==t.closeText,\"el-icon-close\":\"\"===t.closeText},on:{click:function(e){t.close()}}},[t._v(t._s(t.closeText))])])])])};Oa._withStripped=!0;var Ma={success:\"el-icon-success\",warning:\"el-icon-warning\",error:\"el-icon-error\"},Ta=o({name:\"ElAlert\",props:{title:{type:String,default:\"\"},description:{type:String,default:\"\"},type:{type:String,default:\"info\"},closable:{type:Boolean,default:!0},closeText:{type:String,default:\"\"},showIcon:Boolean,center:Boolean,effect:{type:String,default:\"light\",validator:function(t){return-1!==[\"light\",\"dark\"].indexOf(t)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit(\"close\")}},computed:{typeClass:function(){return\"el-alert--\"+this.type},iconClass:function(){return Ma[this.type]||\"el-icon-info\"},isBigIcon:function(){return this.description||this.$slots.default?\"is-big\":\"\"},isBoldTitle:function(){return this.description||this.$slots.default?\"is-bold\":\"\"}}},Oa,[],!1,null,null,null);Ta.options.__file=\"packages/alert/src/main.vue\";var Ia=Ta.exports;Ia.install=function(t){t.component(Ia.name,Ia)};var Pa=Ia,Fa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-notification-fade\"}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],class:[\"el-notification\",t.customClass,t.horizontalClass],style:t.positionStyle,attrs:{role:\"alert\"},on:{mouseenter:function(e){t.clearTimer()},mouseleave:function(e){t.startTimer()},click:t.click}},[t.type||t.iconClass?n(\"i\",{staticClass:\"el-notification__icon\",class:[t.typeClass,t.iconClass]}):t._e(),n(\"div\",{staticClass:\"el-notification__group\",class:{\"is-with-icon\":t.typeClass||t.iconClass}},[n(\"h2\",{staticClass:\"el-notification__title\",domProps:{textContent:t._s(t.title)}}),n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.message,expression:\"message\"}],staticClass:\"el-notification__content\"},[t._t(\"default\",[t.dangerouslyUseHTMLString?n(\"p\",{domProps:{innerHTML:t._s(t.message)}}):n(\"p\",[t._v(t._s(t.message))])])],2),t.showClose?n(\"div\",{staticClass:\"el-notification__closeBtn el-icon-close\",on:{click:function(e){return e.stopPropagation(),t.close(e)}}}):t._e()])])])};Fa._withStripped=!0;var ja={success:\"success\",info:\"info\",warning:\"warning\",error:\"error\"},Na=o({data:function(){return{visible:!1,title:\"\",message:\"\",duration:4500,type:\"\",showClose:!0,customClass:\"\",iconClass:\"\",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:\"top-right\"}},computed:{typeClass:function(){return this.type&&ja[this.type]?\"el-icon-\"+ja[this.type]:\"\"},horizontalClass:function(){return this.position.indexOf(\"right\")>-1?\"right\":\"left\"},verticalProperty:function(){return/^top-/.test(this.position)?\"top\":\"bottom\"},positionStyle:function(){var t;return(t={})[this.verticalProperty]=this.verticalOffset+\"px\",t}},watch:{closed:function(t){t&&(this.visible=!1,this.$el.addEventListener(\"transitionend\",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener(\"transitionend\",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){\"function\"==typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,\"function\"==typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout((function(){t.closed||t.close()}),this.duration))},keydown:function(t){46===t.keyCode||8===t.keyCode?this.clearTimer():27===t.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var t=this;this.duration>0&&(this.timer=setTimeout((function(){t.closed||t.close()}),this.duration)),document.addEventListener(\"keydown\",this.keydown)},beforeDestroy:function(){document.removeEventListener(\"keydown\",this.keydown)}},Fa,[],!1,null,null,null);Na.options.__file=\"packages/notification/src/main.vue\";var La=Na.exports,Ba=gn.a.extend(La),$a=void 0,za=[],Ra=1,Ua=function t(e){if(!gn.a.prototype.$isServer){var n=(e=Ht()({},e)).onClose,r=\"notification_\"+Ra++,i=e.position||\"top-right\";e.onClose=function(){t.close(r,n)},$a=new Ba({data:e}),Object(uo.isVNode)(e.message)&&($a.$slots.default=[e.message],e.message=\"REPLACED_BY_VNODE\"),$a.id=r,$a.$mount(),document.body.appendChild($a.$el),$a.visible=!0,$a.dom=$a.$el,$a.dom.style.zIndex=_.PopupManager.nextZIndex();var o=e.offset||0;return za.filter((function(t){return t.position===i})).forEach((function(t){o+=t.$el.offsetHeight+16})),o+=16,$a.verticalOffset=o,za.push($a),$a}};[\"success\",\"warning\",\"info\",\"error\"].forEach((function(t){Ua[t]=function(e){return(\"string\"==typeof e||Object(uo.isVNode)(e))&&(e={message:e}),e.type=t,Ua(e)}})),Ua.close=function(t,e){var n=-1,r=za.length,i=za.filter((function(e,r){return e.id===t&&(n=r,!0)}))[0];if(i&&(\"function\"==typeof e&&e(i),za.splice(n,1),!(r<=1)))for(var o=i.position,a=i.dom.offsetHeight,s=n;s<r-1;s++)za[s].position===o&&(za[s].dom.style[i.verticalProperty]=parseInt(za[s].dom.style[i.verticalProperty],10)-a-16+\"px\")},Ua.closeAll=function(){for(var t=za.length-1;t>=0;t--)za[t].close()};var Va=Ua,Ha=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-slider\",class:{\"is-vertical\":t.vertical,\"el-slider--with-input\":t.showInput},attrs:{role:\"slider\",\"aria-valuemin\":t.min,\"aria-valuemax\":t.max,\"aria-orientation\":t.vertical?\"vertical\":\"horizontal\",\"aria-disabled\":t.sliderDisabled}},[t.showInput&&!t.range?n(\"el-input-number\",{ref:\"input\",staticClass:\"el-slider__input\",attrs:{step:t.step,disabled:t.sliderDisabled,controls:t.showInputControls,min:t.min,max:t.max,debounce:t.debounce,size:t.inputSize},on:{change:t.emitChange},model:{value:t.firstValue,callback:function(e){t.firstValue=e},expression:\"firstValue\"}}):t._e(),n(\"div\",{ref:\"slider\",staticClass:\"el-slider__runway\",class:{\"show-input\":t.showInput,disabled:t.sliderDisabled},style:t.runwayStyle,on:{click:t.onSliderClick}},[n(\"div\",{staticClass:\"el-slider__bar\",style:t.barStyle}),n(\"slider-button\",{ref:\"button1\",attrs:{vertical:t.vertical,\"tooltip-class\":t.tooltipClass},model:{value:t.firstValue,callback:function(e){t.firstValue=e},expression:\"firstValue\"}}),t.range?n(\"slider-button\",{ref:\"button2\",attrs:{vertical:t.vertical,\"tooltip-class\":t.tooltipClass},model:{value:t.secondValue,callback:function(e){t.secondValue=e},expression:\"secondValue\"}}):t._e(),t._l(t.stops,(function(e,r){return t.showStops?n(\"div\",{key:r,staticClass:\"el-slider__stop\",style:t.getStopStyle(e)}):t._e()})),t.markList.length>0?[n(\"div\",t._l(t.markList,(function(e,r){return n(\"div\",{key:r,staticClass:\"el-slider__stop el-slider__marks-stop\",style:t.getStopStyle(e.position)})})),0),n(\"div\",{staticClass:\"el-slider__marks\"},t._l(t.markList,(function(e,r){return n(\"slider-marker\",{key:r,style:t.getStopStyle(e.position),attrs:{mark:e.mark}})})),1)]:t._e()],2)],1)};Ha._withStripped=!0;var Ga=n(42),qa=n.n(Ga),Wa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{ref:\"button\",staticClass:\"el-slider__button-wrapper\",class:{hover:t.hovering,dragging:t.dragging},style:t.wrapperStyle,attrs:{tabindex:\"0\"},on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.handleMouseEnter,blur:t.handleMouseLeave,keydown:[function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"left\",37,e.key,[\"Left\",\"ArrowLeft\"])||\"button\"in e&&0!==e.button?null:t.onLeftKeyDown(e)},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"right\",39,e.key,[\"Right\",\"ArrowRight\"])||\"button\"in e&&2!==e.button?null:t.onRightKeyDown(e)},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"down\",40,e.key,[\"Down\",\"ArrowDown\"])?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"up\",38,e.key,[\"Up\",\"ArrowUp\"])?null:(e.preventDefault(),t.onRightKeyDown(e))}]}},[n(\"el-tooltip\",{ref:\"tooltip\",attrs:{placement:\"top\",\"popper-class\":t.tooltipClass,disabled:!t.showTooltip}},[n(\"span\",{attrs:{slot:\"content\"},slot:\"content\"},[t._v(t._s(t.formatValue))]),n(\"div\",{staticClass:\"el-slider__button\",class:{hover:t.hovering,dragging:t.dragging}})])],1)};Wa._withStripped=!0;var Ya=o({name:\"ElSliderButton\",components:{ElTooltip:Tt.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+\"%\"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(t){this.$parent.dragging=t}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(t){this.disabled||(t.preventDefault(),this.onDragStart(t),window.addEventListener(\"mousemove\",this.onDragging),window.addEventListener(\"touchmove\",this.onDragging),window.addEventListener(\"mouseup\",this.onDragEnd),window.addEventListener(\"touchend\",this.onDragEnd),window.addEventListener(\"contextmenu\",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(t){this.dragging=!0,this.isClick=!0,\"touchstart\"===t.type&&(t.clientY=t.touches[0].clientY,t.clientX=t.touches[0].clientX),this.vertical?this.startY=t.clientY:this.startX=t.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(t){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var e=0;\"touchmove\"===t.type&&(t.clientY=t.touches[0].clientY,t.clientX=t.touches[0].clientX),this.vertical?(this.currentY=t.clientY,e=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=t.clientX,e=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+e,this.setPosition(this.newPosition)}},onDragEnd:function(){var t=this;this.dragging&&(setTimeout((function(){t.dragging=!1,t.hideTooltip(),t.isClick||(t.setPosition(t.newPosition),t.$parent.emitChange())}),0),window.removeEventListener(\"mousemove\",this.onDragging),window.removeEventListener(\"touchmove\",this.onDragging),window.removeEventListener(\"mouseup\",this.onDragEnd),window.removeEventListener(\"touchend\",this.onDragEnd),window.removeEventListener(\"contextmenu\",this.onDragEnd))},setPosition:function(t){var e=this;if(null!==t&&!isNaN(t)){t<0?t=0:t>100&&(t=100);var n=100/((this.max-this.min)/this.step),r=Math.round(t/n)*n*(this.max-this.min)*.01+this.min;r=parseFloat(r.toFixed(this.precision)),this.$emit(\"input\",r),this.$nextTick((function(){e.displayTooltip(),e.$refs.tooltip&&e.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},Wa,[],!1,null,null,null);Ya.options.__file=\"packages/slider/src/button.vue\";var Za=Ya.exports,Ka={name:\"ElMarker\",props:{mark:{type:[String,Object]}},render:function(){var t=arguments[0],e=\"string\"==typeof this.mark?this.mark:this.mark.label;return t(\"div\",{class:\"el-slider__marks-text\",style:this.mark.style||{}},[e])}},Xa={name:\"ElSlider\",mixins:[C.a],inject:{elForm:{default:\"\"}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:\"small\"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:qa.a,SliderButton:Za,SliderMarker:Ka},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(t,e){this.dragging||Array.isArray(t)&&Array.isArray(e)&&t.every((function(t,n){return t===e[n]}))||this.setValues()},dragging:function(t){t||this.setValues()},firstValue:function(t){this.range?this.$emit(\"input\",[this.minValue,this.maxValue]):this.$emit(\"input\",t)},secondValue:function(){this.range&&this.$emit(\"input\",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var t=this;return this.range?![this.minValue,this.maxValue].every((function(e,n){return e===t.oldValue[n]})):this.value!==this.oldValue},setValues:function(){if(!(this.min>this.max)){var t=this.value;this.range&&Array.isArray(t)?t[1]<this.min?this.$emit(\"input\",[this.min,this.min]):t[0]>this.max?this.$emit(\"input\",[this.max,this.max]):t[0]<this.min?this.$emit(\"input\",[this.min,t[1]]):t[1]>this.max?this.$emit(\"input\",[t[0],this.max]):(this.firstValue=t[0],this.secondValue=t[1],this.valueChanged()&&(this.dispatch(\"ElFormItem\",\"el.form.change\",[this.minValue,this.maxValue]),this.oldValue=t.slice())):this.range||\"number\"!=typeof t||isNaN(t)||(t<this.min?this.$emit(\"input\",this.min):t>this.max?this.$emit(\"input\",this.max):(this.firstValue=t,this.valueChanged()&&(this.dispatch(\"ElFormItem\",\"el.form.change\",t),this.oldValue=t)))}},setPosition:function(t){var e=this.min+t*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-e)<Math.abs(this.maxValue-e)?this.firstValue<this.secondValue?\"button1\":\"button2\":this.firstValue>this.secondValue?\"button1\":\"button2\",this.$refs[n].setPosition(t)}else this.$refs.button1.setPosition(t)},onSliderClick:function(t){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var e=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((e-t.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((t.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider[\"client\"+(this.vertical?\"Height\":\"Width\")])},emitChange:function(){var t=this;this.$nextTick((function(){t.$emit(\"change\",t.range?[t.minValue,t.maxValue]:t.value)}))},getStopStyle:function(t){return this.vertical?{bottom:t+\"%\"}:{left:t+\"%\"}}},computed:{stops:function(){var t=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var e=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),r=[],i=1;i<e;i++)r.push(i*n);return this.range?r.filter((function(e){return e<100*(t.minValue-t.min)/(t.max-t.min)||e>100*(t.maxValue-t.min)/(t.max-t.min)})):r.filter((function(e){return e>100*(t.firstValue-t.min)/(t.max-t.min)}))},markList:function(){var t=this;return this.marks?Object.keys(this.marks).map(parseFloat).sort((function(t,e){return t-e})).filter((function(e){return e<=t.max&&e>=t.min})).map((function(e){return{point:e,position:100*(e-t.min)/(t.max-t.min),mark:t.marks[e]}})):[]},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+\"%\":100*(this.firstValue-this.min)/(this.max-this.min)+\"%\"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+\"%\":\"0%\"},precision:function(){var t=[this.min,this.max,this.step].map((function(t){var e=(\"\"+t).split(\".\")[1];return e?e.length:0}));return Math.max.apply(null,t)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var t=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],t=this.firstValue+\"-\"+this.secondValue):(\"number\"!=typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,t=this.firstValue),this.$el.setAttribute(\"aria-valuetext\",t),this.$el.setAttribute(\"aria-label\",this.label?this.label:\"slider between \"+this.min+\" and \"+this.max),this.resetSize(),window.addEventListener(\"resize\",this.resetSize)},beforeDestroy:function(){window.removeEventListener(\"resize\",this.resetSize)}},Ja=o(Xa,Ha,[],!1,null,null,null);Ja.options.__file=\"packages/slider/src/main.vue\";var Qa=Ja.exports;Qa.install=function(t){t.component(Qa.name,Qa)};var ts=Qa,es=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-loading-fade\"},on:{\"after-leave\":t.handleAfterLeave}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-loading-mask\",class:[t.customClass,{\"is-fullscreen\":t.fullscreen}],style:{backgroundColor:t.background||\"\"}},[n(\"div\",{staticClass:\"el-loading-spinner\"},[t.spinner?n(\"i\",{class:t.spinner}):n(\"svg\",{staticClass:\"circular\",attrs:{viewBox:\"25 25 50 50\"}},[n(\"circle\",{staticClass:\"path\",attrs:{cx:\"50\",cy:\"50\",r:\"20\",fill:\"none\"}})]),t.text?n(\"p\",{staticClass:\"el-loading-text\"},[t._v(t._s(t.text))]):t._e()])])])};es._withStripped=!0;var ns=o({data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:\"\"}},methods:{handleAfterLeave:function(){this.$emit(\"after-leave\")},setText:function(t){this.text=t}}},es,[],!1,null,null,null);ns.options.__file=\"packages/loading/src/loading.vue\";var rs=ns.exports,is=n(33),os=n.n(is),as=gn.a.extend(rs),ss={install:function(t){if(!t.prototype.$isServer){var e=function(e,r){r.value?t.nextTick((function(){r.modifiers.fullscreen?(e.originalPosition=Object(vt.getStyle)(document.body,\"position\"),e.originalOverflow=Object(vt.getStyle)(document.body,\"overflow\"),e.maskStyle.zIndex=_.PopupManager.nextZIndex(),Object(vt.addClass)(e.mask,\"is-fullscreen\"),n(document.body,e,r)):(Object(vt.removeClass)(e.mask,\"is-fullscreen\"),r.modifiers.body?(e.originalPosition=Object(vt.getStyle)(document.body,\"position\"),[\"top\",\"left\"].forEach((function(t){var n=\"top\"===t?\"scrollTop\":\"scrollLeft\";e.maskStyle[t]=e.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-parseInt(Object(vt.getStyle)(document.body,\"margin-\"+t),10)+\"px\"})),[\"height\",\"width\"].forEach((function(t){e.maskStyle[t]=e.getBoundingClientRect()[t]+\"px\"})),n(document.body,e,r)):(e.originalPosition=Object(vt.getStyle)(e,\"position\"),n(e,e,r)))})):(os()(e.instance,(function(t){if(e.instance.hiding){e.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:e;Object(vt.removeClass)(n,\"el-loading-parent--relative\"),Object(vt.removeClass)(n,\"el-loading-parent--hidden\"),e.instance.hiding=!1}}),300,!0),e.instance.visible=!1,e.instance.hiding=!0)},n=function(e,n,r){n.domVisible||\"none\"===Object(vt.getStyle)(n,\"display\")||\"hidden\"===Object(vt.getStyle)(n,\"visibility\")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach((function(t){n.mask.style[t]=n.maskStyle[t]})),\"absolute\"!==n.originalPosition&&\"fixed\"!==n.originalPosition&&\"sticky\"!==n.originalPosition&&Object(vt.addClass)(e,\"el-loading-parent--relative\"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(vt.addClass)(e,\"el-loading-parent--hidden\"),n.domVisible=!0,e.appendChild(n.mask),t.nextTick((function(){n.instance.hiding?n.instance.$emit(\"after-leave\"):n.instance.visible=!0})),n.domInserted=!0)};t.directive(\"loading\",{bind:function(t,n,r){var i=t.getAttribute(\"element-loading-text\"),o=t.getAttribute(\"element-loading-spinner\"),a=t.getAttribute(\"element-loading-background\"),s=t.getAttribute(\"element-loading-custom-class\"),u=r.context,l=new as({el:document.createElement(\"div\"),data:{text:u&&u[i]||i,spinner:u&&u[o]||o,background:u&&u[a]||a,customClass:u&&u[s]||s,fullscreen:!!n.modifiers.fullscreen}});t.instance=l,t.mask=l.$el,t.maskStyle={},n.value&&e(t,n)},update:function(t,n){t.instance.setText(t.getAttribute(\"element-loading-text\")),n.oldValue!==n.value&&e(t,n)},unbind:function(t,n){t.domInserted&&(t.mask&&t.mask.parentNode&&t.mask.parentNode.removeChild(t.mask),e(t,{value:!1,modifiers:n.modifiers})),t.instance&&t.instance.$destroy()}})}}},us=ss,ls=gn.a.extend(rs),cs={text:null,fullscreen:!0,body:!1,lock:!1,customClass:\"\"},hs=void 0;ls.prototype.originalPosition=\"\",ls.prototype.originalOverflow=\"\",ls.prototype.close=function(){var t=this;this.fullscreen&&(hs=void 0),os()(this,(function(e){var n=t.fullscreen||t.body?document.body:t.target;Object(vt.removeClass)(n,\"el-loading-parent--relative\"),Object(vt.removeClass)(n,\"el-loading-parent--hidden\"),t.$el&&t.$el.parentNode&&t.$el.parentNode.removeChild(t.$el),t.$destroy()}),300),this.visible=!1};var fs=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!gn.a.prototype.$isServer){if(\"string\"==typeof(t=Ht()({},cs,t)).target&&(t.target=document.querySelector(t.target)),t.target=t.target||document.body,t.target!==document.body?t.fullscreen=!1:t.body=!0,t.fullscreen&&hs)return hs;var e=t.body?document.body:t.target,n=new ls({el:document.createElement(\"div\"),data:t});return function(t,e,n){var r={};t.fullscreen?(n.originalPosition=Object(vt.getStyle)(document.body,\"position\"),n.originalOverflow=Object(vt.getStyle)(document.body,\"overflow\"),r.zIndex=_.PopupManager.nextZIndex()):t.body?(n.originalPosition=Object(vt.getStyle)(document.body,\"position\"),[\"top\",\"left\"].forEach((function(e){var n=\"top\"===e?\"scrollTop\":\"scrollLeft\";r[e]=t.target.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]+\"px\"})),[\"height\",\"width\"].forEach((function(e){r[e]=t.target.getBoundingClientRect()[e]+\"px\"}))):n.originalPosition=Object(vt.getStyle)(e,\"position\"),Object.keys(r).forEach((function(t){n.$el.style[t]=r[t]}))}(t,e,n),\"absolute\"!==n.originalPosition&&\"fixed\"!==n.originalPosition&&\"sticky\"!==n.originalPosition&&Object(vt.addClass)(e,\"el-loading-parent--relative\"),t.fullscreen&&t.lock&&Object(vt.addClass)(e,\"el-loading-parent--hidden\"),e.appendChild(n.$el),gn.a.nextTick((function(){n.visible=!0})),t.fullscreen&&(hs=n),n}},ds={install:function(t){t.use(us),t.prototype.$loading=fs},directive:us,service:fs},ps=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"i\",{class:\"el-icon-\"+t.name})};ps._withStripped=!0;var ms=o({name:\"ElIcon\",props:{name:String}},ps,[],!1,null,null,null);ms.options.__file=\"packages/icon/src/icon.vue\";var vs=ms.exports;vs.install=function(t){t.component(vs.name,vs)};var gs=vs,ys={name:\"ElRow\",componentName:\"ElRow\",props:{tag:{type:String,default:\"div\"},gutter:Number,type:String,justify:{type:String,default:\"start\"},align:String},computed:{style:function(){var t={};return this.gutter&&(t.marginLeft=\"-\"+this.gutter/2+\"px\",t.marginRight=t.marginLeft),t}},render:function(t){return t(this.tag,{class:[\"el-row\",\"start\"!==this.justify?\"is-justify-\"+this.justify:\"\",this.align?\"is-align-\"+this.align:\"\",{\"el-row--flex\":\"flex\"===this.type}],style:this.style},this.$slots.default)},install:function(t){t.component(ys.name,ys)}},bs=ys,_s=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)},ws={name:\"ElCol\",props:{span:{type:Number,default:24},tag:{type:String,default:\"div\"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){for(var t=this.$parent;t&&\"ElRow\"!==t.$options.componentName;)t=t.$parent;return t?t.gutter:0}},render:function(t){var e=this,n=[],r={};return this.gutter&&(r.paddingLeft=this.gutter/2+\"px\",r.paddingRight=r.paddingLeft),[\"span\",\"offset\",\"pull\",\"push\"].forEach((function(t){(e[t]||0===e[t])&&n.push(\"span\"!==t?\"el-col-\"+t+\"-\"+e[t]:\"el-col-\"+e[t])})),[\"xs\",\"sm\",\"md\",\"lg\",\"xl\"].forEach((function(t){if(\"number\"==typeof e[t])n.push(\"el-col-\"+t+\"-\"+e[t]);else if(\"object\"===_s(e[t])){var r=e[t];Object.keys(r).forEach((function(e){n.push(\"span\"!==e?\"el-col-\"+t+\"-\"+e+\"-\"+r[e]:\"el-col-\"+t+\"-\"+r[e])}))}})),t(this.tag,{class:[\"el-col\",n],style:r},this.$slots.default)},install:function(t){t.component(ws.name,ws)}},xs=ws,ks=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition-group\",{class:[\"el-upload-list\",\"el-upload-list--\"+t.listType,{\"is-disabled\":t.disabled}],attrs:{tag:\"ul\",name:\"el-list\"}},t._l(t.files,(function(e){return n(\"li\",{key:e.uid,class:[\"el-upload-list__item\",\"is-\"+e.status,t.focusing?\"focusing\":\"\"],attrs:{tabindex:\"0\"},on:{keydown:function(n){if(!(\"button\"in n)&&t._k(n.keyCode,\"delete\",[8,46],n.key,[\"Backspace\",\"Delete\",\"Del\"]))return null;!t.disabled&&t.$emit(\"remove\",e)},focus:function(e){t.focusing=!0},blur:function(e){t.focusing=!1},click:function(e){t.focusing=!1}}},[t._t(\"default\",[\"uploading\"!==e.status&&[\"picture-card\",\"picture\"].indexOf(t.listType)>-1?n(\"img\",{staticClass:\"el-upload-list__item-thumbnail\",attrs:{src:e.url,alt:\"\"}}):t._e(),n(\"a\",{staticClass:\"el-upload-list__item-name\",on:{click:function(n){t.handleClick(e)}}},[n(\"i\",{staticClass:\"el-icon-document\"}),t._v(t._s(e.name)+\"\\n      \")]),n(\"label\",{staticClass:\"el-upload-list__item-status-label\"},[n(\"i\",{class:{\"el-icon-upload-success\":!0,\"el-icon-circle-check\":\"text\"===t.listType,\"el-icon-check\":[\"picture-card\",\"picture\"].indexOf(t.listType)>-1}})]),t.disabled?t._e():n(\"i\",{staticClass:\"el-icon-close\",on:{click:function(n){t.$emit(\"remove\",e)}}}),t.disabled?t._e():n(\"i\",{staticClass:\"el-icon-close-tip\"},[t._v(t._s(t.t(\"el.upload.deleteTip\")))]),\"uploading\"===e.status?n(\"el-progress\",{attrs:{type:\"picture-card\"===t.listType?\"circle\":\"line\",\"stroke-width\":\"picture-card\"===t.listType?6:2,percentage:t.parsePercentage(e.percentage)}}):t._e(),\"picture-card\"===t.listType?n(\"span\",{staticClass:\"el-upload-list__item-actions\"},[t.handlePreview&&\"picture-card\"===t.listType?n(\"span\",{staticClass:\"el-upload-list__item-preview\",on:{click:function(n){t.handlePreview(e)}}},[n(\"i\",{staticClass:\"el-icon-zoom-in\"})]):t._e(),t.disabled?t._e():n(\"span\",{staticClass:\"el-upload-list__item-delete\",on:{click:function(n){t.$emit(\"remove\",e)}}},[n(\"i\",{staticClass:\"el-icon-delete\"})])]):t._e()],{file:e})],2)})),0)};ks._withStripped=!0;var Ss=n(34),Cs=n.n(Ss),Es=o({name:\"ElUploadList\",mixins:[m.a],data:function(){return{focusing:!1}},components:{ElProgress:Cs.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(t){return parseInt(t,10)},handleClick:function(t){this.handlePreview&&this.handlePreview(t)}}},ks,[],!1,null,null,null);Es.options.__file=\"packages/upload/src/upload-list.vue\";var Ds=Es.exports,As=n(24),Os=n.n(As);var Ms=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"div\",{staticClass:\"el-upload-dragger\",class:{\"is-dragover\":t.dragover},on:{drop:function(e){return e.preventDefault(),t.onDrop(e)},dragover:function(e){return e.preventDefault(),t.onDragover(e)},dragleave:function(e){e.preventDefault(),t.dragover=!1}}},[t._t(\"default\")],2)};Ms._withStripped=!0;var Ts=o({name:\"ElUploadDrag\",props:{disabled:Boolean},inject:{uploader:{default:\"\"}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(t){if(!this.disabled&&this.uploader){var e=this.uploader.accept;this.dragover=!1,e?this.$emit(\"file\",[].slice.call(t.dataTransfer.files).filter((function(t){var n=t.type,r=t.name,i=r.indexOf(\".\")>-1?\".\"+r.split(\".\").pop():\"\",o=n.replace(/\\/.*$/,\"\");return e.split(\",\").map((function(t){return t.trim()})).filter((function(t){return t})).some((function(t){return/\\..+$/.test(t)?i===t:/\\/\\*$/.test(t)?o===t.replace(/\\/\\*$/,\"\"):!!/^[^\\/]+\\/[^\\/]+$/.test(t)&&n===t}))}))):this.$emit(\"file\",t.dataTransfer.files)}}}},Ms,[],!1,null,null,null);Ts.options.__file=\"packages/upload/src/upload-dragger.vue\";var Is={inject:[\"uploader\"],components:{UploadDragger:Ts.exports},props:{type:String,action:{type:String,required:!0},name:{type:String,default:\"file\"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:function(t){if(\"undefined\"!=typeof XMLHttpRequest){var e=new XMLHttpRequest,n=t.action;e.upload&&(e.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.onProgress(e)});var r=new FormData;t.data&&Object.keys(t.data).forEach((function(e){r.append(e,t.data[e])})),r.append(t.filename,t.file,t.file.name),e.onerror=function(e){t.onError(e)},e.onload=function(){if(e.status<200||e.status>=300)return t.onError(function(t,e,n){var r=void 0;r=n.response?\"\"+(n.response.error||n.response):n.responseText?\"\"+n.responseText:\"fail to post \"+t+\" \"+n.status;var i=new Error(r);return i.status=n.status,i.method=\"post\",i.url=t,i}(n,0,e));t.onSuccess(function(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(t){return e}}(e))},e.open(\"post\",n,!0),t.withCredentials&&\"withCredentials\"in e&&(e.withCredentials=!0);var i=t.headers||{};for(var o in i)i.hasOwnProperty(o)&&null!==i[o]&&e.setRequestHeader(o,i[o]);return e.send(r),e}}},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(t){return-1!==t.indexOf(\"image\")},handleChange:function(t){var e=t.target.files;e&&this.uploadFiles(e)},uploadFiles:function(t){var e=this;if(this.limit&&this.fileList.length+t.length>this.limit)this.onExceed&&this.onExceed(t,this.fileList);else{var n=Array.prototype.slice.call(t);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach((function(t){e.onStart(t),e.autoUpload&&e.upload(t)}))}},upload:function(t){var e=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(t);var n=this.beforeUpload(t);n&&n.then?n.then((function(n){var r=Object.prototype.toString.call(n);if(\"[object File]\"===r||\"[object Blob]\"===r){for(var i in\"[object Blob]\"===r&&(n=new File([n],t.name,{type:t.type})),t)t.hasOwnProperty(i)&&(n[i]=t[i]);e.post(n)}else e.post(t)}),(function(){e.onRemove(null,t)})):!1!==n?this.post(t):this.onRemove(null,t)},abort:function(t){var e=this.reqs;if(t){var n=t;t.uid&&(n=t.uid),e[n]&&e[n].abort()}else Object.keys(e).forEach((function(t){e[t]&&e[t].abort(),delete e[t]}))},post:function(t){var e=this,n=t.uid,r={headers:this.headers,withCredentials:this.withCredentials,file:t,data:this.data,filename:this.name,action:this.action,onProgress:function(n){e.onProgress(n,t)},onSuccess:function(r){e.onSuccess(r,t),delete e.reqs[n]},onError:function(r){e.onError(r,t),delete e.reqs[n]}},i=this.httpRequest(r);this.reqs[n]=i,i&&i.then&&i.then(r.onSuccess,r.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(t){t.target===t.currentTarget&&(13!==t.keyCode&&32!==t.keyCode||this.handleClick())}},render:function(t){var e=this.handleClick,n=this.drag,r=this.name,i=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,u=this.uploadFiles,l=this.disabled,c={class:{\"el-upload\":!0},on:{click:e,keydown:this.handleKeydown}};return c.class[\"el-upload--\"+s]=!0,t(\"div\",Os()([c,{attrs:{tabindex:\"0\"}}]),[n?t(\"upload-dragger\",{attrs:{disabled:l},on:{file:u}},[this.$slots.default]):this.$slots.default,t(\"input\",{class:\"el-upload__input\",attrs:{type:\"file\",name:r,multiple:o,accept:a},ref:\"input\",on:{change:i}})])}},Ps=o(Is,undefined,undefined,!1,null,null,null);Ps.options.__file=\"packages/upload/src/upload.vue\";var Fs=Ps.exports;function js(){}var Ns=o({name:\"ElUpload\",mixins:[k.a],components:{ElProgress:Cs.a,UploadList:Ds,Upload:Fs},provide:function(){return{uploader:this}},inject:{elForm:{default:\"\"}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:\"file\"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:\"select\"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:js},onChange:{type:Function,default:js},onPreview:{type:Function},onSuccess:{type:Function,default:js},onProgress:{type:Function,default:js},onError:{type:Function,default:js},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:\"text\"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:js}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(t){\"picture-card\"!==t&&\"picture\"!==t||(this.uploadFiles=this.uploadFiles.map((function(t){if(!t.url&&t.raw)try{t.url=URL.createObjectURL(t.raw)}catch(t){}return t})))},fileList:{immediate:!0,handler:function(t){var e=this;this.uploadFiles=t.map((function(t){return t.uid=t.uid||Date.now()+e.tempIndex++,t.status=t.status||\"success\",t}))}}},methods:{handleStart:function(t){t.uid=Date.now()+this.tempIndex++;var e={status:\"ready\",name:t.name,size:t.size,percentage:0,uid:t.uid,raw:t};if(\"picture-card\"===this.listType||\"picture\"===this.listType)try{e.url=URL.createObjectURL(t)}catch(t){return}this.uploadFiles.push(e),this.onChange(e,this.uploadFiles)},handleProgress:function(t,e){var n=this.getFile(e);this.onProgress(t,n,this.uploadFiles),n.status=\"uploading\",n.percentage=t.percent||0},handleSuccess:function(t,e){var n=this.getFile(e);n&&(n.status=\"success\",n.response=t,this.onSuccess(t,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(t,e){var n=this.getFile(e),r=this.uploadFiles;n.status=\"fail\",r.splice(r.indexOf(n),1),this.onError(t,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(t,e){var n=this;e&&(t=this.getFile(e));var r=function(){n.abort(t);var e=n.uploadFiles;e.splice(e.indexOf(t),1),n.onRemove(t,e)};if(this.beforeRemove){if(\"function\"==typeof this.beforeRemove){var i=this.beforeRemove(t,this.uploadFiles);i&&i.then?i.then((function(){r()}),js):!1!==i&&r()}}else r()},getFile:function(t){var e=this.uploadFiles,n=void 0;return e.every((function(e){return!(n=t.uid===e.uid?e:null)})),n},abort:function(t){this.$refs[\"upload-inner\"].abort(t)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var t=this;this.uploadFiles.filter((function(t){return\"ready\"===t.status})).forEach((function(e){t.$refs[\"upload-inner\"].upload(e.raw)}))},getMigratingConfig:function(){return{props:{\"default-file-list\":\"default-file-list is renamed to file-list.\",\"show-upload-list\":\"show-upload-list is renamed to show-file-list.\",\"thumbnail-mode\":\"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan\"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(t){t.url&&0===t.url.indexOf(\"blob:\")&&URL.revokeObjectURL(t.url)}))},render:function(t){var e=this,n=void 0;this.showFileList&&(n=t(Ds,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(t){if(e.$scopedSlots.file)return e.$scopedSlots.file({file:t.file})}]));var r=t(\"upload\",{props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,\"before-upload\":this.beforeUpload,\"with-credentials\":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,\"on-exceed\":this.onExceed,\"on-start\":this.handleStart,\"on-progress\":this.handleProgress,\"on-success\":this.handleSuccess,\"on-error\":this.handleError,\"on-preview\":this.onPreview,\"on-remove\":this.handleRemove,\"http-request\":this.httpRequest},ref:\"upload-inner\"},[this.$slots.trigger||this.$slots.default]);return t(\"div\",[\"picture-card\"===this.listType?n:\"\",this.$slots.trigger?[r,this.$slots.default]:r,this.$slots.tip,\"picture-card\"!==this.listType?n:\"\"])}},undefined,undefined,!1,null,null,null);Ns.options.__file=\"packages/upload/src/index.vue\";var Ls=Ns.exports;Ls.install=function(t){t.component(Ls.name,Ls)};var Bs=Ls,$s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-progress\",class:[\"el-progress--\"+t.type,t.status?\"is-\"+t.status:\"\",{\"el-progress--without-text\":!t.showText,\"el-progress--text-inside\":t.textInside}],attrs:{role:\"progressbar\",\"aria-valuenow\":t.percentage,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[\"line\"===t.type?n(\"div\",{staticClass:\"el-progress-bar\"},[n(\"div\",{staticClass:\"el-progress-bar__outer\",style:{height:t.strokeWidth+\"px\",backgroundColor:t.defineBackColor}},[n(\"div\",{staticClass:\"el-progress-bar__inner\",style:t.barStyle},[t.showText&&t.textInside?n(\"div\",{staticClass:\"el-progress-bar__innerText\",style:{color:t.textColor}},[t._v(t._s(t.content))]):t._e()])])]):n(\"div\",{staticClass:\"el-progress-circle\",style:{height:t.width+\"px\",width:t.width+\"px\"}},[n(\"svg\",{attrs:{viewBox:\"0 0 100 100\"}},[n(\"path\",{staticClass:\"el-progress-circle__track\",style:t.trailPathStyle,attrs:{d:t.trackPath,stroke:t.defineBackColor,\"stroke-width\":t.relativeStrokeWidth,fill:\"none\"}}),n(\"path\",{staticClass:\"el-progress-circle__path\",style:t.circlePathStyle,attrs:{d:t.trackPath,stroke:t.stroke,fill:\"none\",\"stroke-linecap\":t.strokeLinecap,\"stroke-width\":t.percentage?t.relativeStrokeWidth:0}})])]),t.showText&&!t.textInside?n(\"div\",{staticClass:\"el-progress__text\",style:{fontSize:t.progressTextSize+\"px\",color:t.textColor}},[t.status?n(\"i\",{class:t.iconClass}):[t._v(t._s(t.content))]],2):t._e()])};$s._withStripped=!0;var zs=o({name:\"ElProgress\",props:{type:{type:String,default:\"line\",validator:function(t){return[\"line\",\"circle\",\"dashboard\"].indexOf(t)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(t){return t>=0&&t<=100}},status:{type:String,validator:function(t){return[\"success\",\"exception\",\"warning\"].indexOf(t)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:\"round\"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:\"\"},defineBackColor:{type:[String,Array,Function],default:\"#ebeef5\"},textColor:{type:[String,Array,Function],default:\"#606266\"},format:Function},computed:{barStyle:function(){var t={};return t.width=this.percentage+\"%\",t.backgroundColor=this.getCurrentColor(this.percentage),t},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return\"circle\"===this.type||\"dashboard\"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var t=this.radius,e=\"dashboard\"===this.type;return\"\\n        M 50 50\\n        m 0 \"+(e?\"\":\"-\")+t+\"\\n        a \"+t+\" \"+t+\" 0 1 1 0 \"+(e?\"-\":\"\")+2*t+\"\\n        a \"+t+\" \"+t+\" 0 1 1 0 \"+(e?\"\":\"-\")+2*t+\"\\n        \"},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return\"dashboard\"===this.type?.75:1},strokeDashoffset:function(){return-1*this.perimeter*(1-this.rate)/2+\"px\"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+\"px, \"+this.perimeter+\"px\",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+\"px, \"+this.perimeter+\"px\",strokeDashoffset:this.strokeDashoffset,transition:\"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease\"}},stroke:function(){var t=void 0;if(this.color)t=this.getCurrentColor(this.percentage);else switch(this.status){case\"success\":t=\"#13ce66\";break;case\"exception\":t=\"#ff4949\";break;case\"warning\":t=\"#e6a23c\";break;default:t=\"#20a0ff\"}return t},iconClass:function(){return\"warning\"===this.status?\"el-icon-warning\":\"line\"===this.type?\"success\"===this.status?\"el-icon-circle-check\":\"el-icon-circle-close\":\"success\"===this.status?\"el-icon-check\":\"el-icon-close\"},progressTextSize:function(){return\"line\"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return\"function\"==typeof this.format?this.format(this.percentage)||\"\":this.percentage+\"%\"}},methods:{getCurrentColor:function(t){return\"function\"==typeof this.color?this.color(t):\"string\"==typeof this.color?this.color:this.getLevelColor(t)},getLevelColor:function(t){for(var e=this.getColorArray().sort((function(t,e){return t.percentage-e.percentage})),n=0;n<e.length;n++)if(e[n].percentage>t)return e[n].color;return e[e.length-1].color},getColorArray:function(){var t=this.color,e=100/t.length;return t.map((function(t,n){return\"string\"==typeof t?{color:t,percentage:(n+1)*e}:t}))}}},$s,[],!1,null,null,null);zs.options.__file=\"packages/progress/src/progress.vue\";var Rs=zs.exports;Rs.install=function(t){t.component(Rs.name,Rs)};var Us=Rs,Vs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"span\",{staticClass:\"el-spinner\"},[n(\"svg\",{staticClass:\"el-spinner-inner\",style:{width:t.radius/2+\"px\",height:t.radius/2+\"px\"},attrs:{viewBox:\"0 0 50 50\"}},[n(\"circle\",{staticClass:\"path\",attrs:{cx:\"25\",cy:\"25\",r:\"20\",fill:\"none\",stroke:t.strokeColor,\"stroke-width\":t.strokeWidth}})])])};Vs._withStripped=!0;var Hs=o({name:\"ElSpinner\",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:\"#efefef\"}}},Vs,[],!1,null,null,null);Hs.options.__file=\"packages/spinner/src/spinner.vue\";var Gs=Hs.exports;Gs.install=function(t){t.component(Gs.name,Gs)};var qs=Gs,Ws=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-message-fade\"},on:{\"after-leave\":t.handleAfterLeave}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],class:[\"el-message\",t.type&&!t.iconClass?\"el-message--\"+t.type:\"\",t.center?\"is-center\":\"\",t.showClose?\"is-closable\":\"\",t.customClass],style:t.positionStyle,attrs:{role:\"alert\"},on:{mouseenter:t.clearTimer,mouseleave:t.startTimer}},[t.iconClass?n(\"i\",{class:t.iconClass}):n(\"i\",{class:t.typeClass}),t._t(\"default\",[t.dangerouslyUseHTMLString?n(\"p\",{staticClass:\"el-message__content\",domProps:{innerHTML:t._s(t.message)}}):n(\"p\",{staticClass:\"el-message__content\"},[t._v(t._s(t.message))])]),t.showClose?n(\"i\",{staticClass:\"el-message__closeBtn el-icon-close\",on:{click:t.close}}):t._e()],2)])};Ws._withStripped=!0;var Ys={success:\"success\",info:\"info\",warning:\"warning\",error:\"error\"},Zs=o({data:function(){return{visible:!1,message:\"\",duration:3e3,type:\"info\",iconClass:\"\",customClass:\"\",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?\"el-message__icon el-icon-\"+Ys[this.type]:\"\"},positionStyle:function(){return{top:this.verticalOffset+\"px\"}}},watch:{closed:function(t){t&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,\"function\"==typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout((function(){t.closed||t.close()}),this.duration))},keydown:function(t){27===t.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener(\"keydown\",this.keydown)},beforeDestroy:function(){document.removeEventListener(\"keydown\",this.keydown)}},Ws,[],!1,null,null,null);Zs.options.__file=\"packages/message/src/main.vue\";var Ks=Zs.exports,Xs=n(16),Js=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qs=gn.a.extend(Ks),tu=void 0,eu=[],nu=1,ru=function t(e){if(!gn.a.prototype.$isServer){\"string\"==typeof(e=e||{})&&(e={message:e});var n=e.onClose,r=\"message_\"+nu++;e.onClose=function(){t.close(r,n)},(tu=new Qs({data:e})).id=r,Object(uo.isVNode)(tu.message)&&(tu.$slots.default=[tu.message],tu.message=null),tu.$mount(),document.body.appendChild(tu.$el);var i=e.offset||20;return eu.forEach((function(t){i+=t.$el.offsetHeight+16})),tu.verticalOffset=i,tu.visible=!0,tu.$el.style.zIndex=_.PopupManager.nextZIndex(),eu.push(tu),tu}};[\"success\",\"warning\",\"info\",\"error\"].forEach((function(t){ru[t]=function(e){return Object(Xs.isObject)(e)&&!Object(uo.isVNode)(e)?ru(Js({},e,{type:t})):ru({type:t,message:e})}})),ru.close=function(t,e){for(var n=eu.length,r=-1,i=void 0,o=0;o<n;o++)if(t===eu[o].id){i=eu[o].$el.offsetHeight,r=o,\"function\"==typeof e&&e(eu[o]),eu.splice(o,1);break}if(!(n<=1||-1===r||r>eu.length-1))for(var a=r;a<n-1;a++){var s=eu[a].$el;s.style.top=parseInt(s.style.top,10)-i-16+\"px\"}},ru.closeAll=function(){for(var t=eu.length-1;t>=0;t--)eu[t].close()};var iu=ru,ou=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-badge\"},[t._t(\"default\"),n(\"transition\",{attrs:{name:\"el-zoom-in-center\"}},[n(\"sup\",{directives:[{name:\"show\",rawName:\"v-show\",value:!t.hidden&&(t.content||0===t.content||t.isDot),expression:\"!hidden && (content || content === 0 || isDot)\"}],staticClass:\"el-badge__content\",class:[t.type?\"el-badge__content--\"+t.type:null,{\"is-fixed\":t.$slots.default,\"is-dot\":t.isDot}],domProps:{textContent:t._s(t.content)}})])],2)};ou._withStripped=!0;var au=o({name:\"ElBadge\",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(t){return[\"primary\",\"success\",\"warning\",\"info\",\"danger\"].indexOf(t)>-1}}},computed:{content:function(){if(!this.isDot){var t=this.value,e=this.max;return\"number\"==typeof t&&\"number\"==typeof e&&e<t?e+\"+\":t}}}},ou,[],!1,null,null,null);au.options.__file=\"packages/badge/src/main.vue\";var su=au.exports;su.install=function(t){t.component(su.name,su)};var uu=su,lu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-card\",class:t.shadow?\"is-\"+t.shadow+\"-shadow\":\"is-always-shadow\"},[t.$slots.header||t.header?n(\"div\",{staticClass:\"el-card__header\"},[t._t(\"header\",[t._v(t._s(t.header))])],2):t._e(),n(\"div\",{staticClass:\"el-card__body\",style:t.bodyStyle},[t._t(\"default\")],2)])};lu._withStripped=!0;var cu=o({name:\"ElCard\",props:{header:{},bodyStyle:{},shadow:{type:String}}},lu,[],!1,null,null,null);cu.options.__file=\"packages/card/src/main.vue\";var hu=cu.exports;hu.install=function(t){t.component(hu.name,hu)};var fu=hu,du=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-rate\",attrs:{role:\"slider\",\"aria-valuenow\":t.currentValue,\"aria-valuetext\":t.text,\"aria-valuemin\":\"0\",\"aria-valuemax\":t.max,tabindex:\"0\"},on:{keydown:t.handleKey}},[t._l(t.max,(function(e,r){return n(\"span\",{key:r,staticClass:\"el-rate__item\",style:{cursor:t.rateDisabled?\"auto\":\"pointer\"},on:{mousemove:function(n){t.setCurrentValue(e,n)},mouseleave:t.resetCurrentValue,click:function(n){t.selectValue(e)}}},[n(\"i\",{staticClass:\"el-rate__icon\",class:[t.classes[e-1],{hover:t.hoverIndex===e}],style:t.getIconStyle(e)},[t.showDecimalIcon(e)?n(\"i\",{staticClass:\"el-rate__decimal\",class:t.decimalIconClass,style:t.decimalStyle}):t._e()])])})),t.showText||t.showScore?n(\"span\",{staticClass:\"el-rate__text\",style:{color:t.textColor}},[t._v(t._s(t.text))]):t._e()],2)};du._withStripped=!0;var pu={name:\"ElRate\",mixins:[k.a],inject:{elForm:{default:\"\"}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return[\"#F7BA2A\",\"#F7BA2A\",\"#F7BA2A\"]}},voidColor:{type:String,default:\"#C6D1DE\"},disabledVoidColor:{type:String,default:\"#EFF2F7\"},iconClasses:{type:[Array,Object],default:function(){return[\"el-icon-star-on\",\"el-icon-star-on\",\"el-icon-star-on\"]}},voidIconClass:{type:String,default:\"el-icon-star-off\"},disabledVoidIconClass:{type:String,default:\"el-icon-star-on\"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:\"#1f2d3d\"},texts:{type:Array,default:function(){return[\"极差\",\"失望\",\"一般\",\"满意\",\"惊喜\"]}},scoreTemplate:{type:String,default:\"{value}\"}},computed:{text:function(){var t=\"\";return this.showScore?t=this.scoreTemplate.replace(/\\{\\s*value\\s*\\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(t=this.texts[Math.ceil(this.currentValue)-1]),t},decimalStyle:function(){var t=\"\";return this.rateDisabled?t=this.valueDecimal+\"%\":this.allowHalf&&(t=\"50%\"),{color:this.activeColor,width:t}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var t;return Array.isArray(this.iconClasses)?((t={})[this.lowThreshold]=this.iconClasses[0],t[this.highThreshold]={value:this.iconClasses[1],excluded:!0},t[this.max]=this.iconClasses[2],t):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var t;return Array.isArray(this.colors)?((t={})[this.lowThreshold]=this.colors[0],t[this.highThreshold]={value:this.colors[1],excluded:!0},t[this.max]=this.colors[2],t):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var t=[],e=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;e<n;e++)t.push(this.activeClass);for(;e<this.max;e++)t.push(this.voidClass);return t},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(t){this.currentValue=t,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{\"text-template\":\"text-template is renamed to score-template.\"}}},getValueFromMap:function(t,e){var n=Object.keys(e).filter((function(n){var r=e[n];return!!Object(Xs.isObject)(r)&&r.excluded?t<n:t<=n})).sort((function(t,e){return t-e})),r=e[n[0]];return Object(Xs.isObject)(r)?r.value:r||\"\"},showDecimalIcon:function(t){var e=this.rateDisabled&&this.valueDecimal>0&&t-1<this.value&&t>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&t-.5<=this.currentValue&&t>this.currentValue;return e||n},getIconStyle:function(t){var e=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:t<=this.currentValue?this.activeColor:e}},selectValue:function(t){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit(\"input\",this.currentValue),this.$emit(\"change\",this.currentValue)):(this.$emit(\"input\",t),this.$emit(\"change\",t)))},handleKey:function(t){if(!this.rateDisabled){var e=this.currentValue,n=t.keyCode;38===n||39===n?(this.allowHalf?e+=.5:e+=1,t.stopPropagation(),t.preventDefault()):37!==n&&40!==n||(this.allowHalf?e-=.5:e-=1,t.stopPropagation(),t.preventDefault()),e=(e=e<0?0:e)>this.max?this.max:e,this.$emit(\"input\",e),this.$emit(\"change\",e)}},setCurrentValue:function(t,e){if(!this.rateDisabled){if(this.allowHalf){var n=e.target;Object(vt.hasClass)(n,\"el-rate__item\")&&(n=n.querySelector(\".el-rate__icon\")),Object(vt.hasClass)(n,\"el-rate__decimal\")&&(n=n.parentNode),this.pointerAtLeftHalf=2*e.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?t-.5:t}else this.currentValue=t;this.hoverIndex=t}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit(\"input\",0)}},mu=o(pu,du,[],!1,null,null,null);mu.options.__file=\"packages/rate/src/main.vue\";var vu=mu.exports;vu.install=function(t){t.component(vu.name,vu)};var gu=vu,yu=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"div\",{staticClass:\"el-steps\",class:[!t.simple&&\"el-steps--\"+t.direction,t.simple&&\"el-steps--simple\"]},[t._t(\"default\")],2)};yu._withStripped=!0;var bu=o({name:\"ElSteps\",mixins:[k.a],props:{space:[Number,String],active:Number,direction:{type:String,default:\"horizontal\"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:\"finish\"},processStatus:{type:String,default:\"process\"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:\"center is removed.\"}}}},watch:{active:function(t,e){this.$emit(\"change\",t,e)},steps:function(t){t.forEach((function(t,e){t.index=e}))}}},yu,[],!1,null,null,null);bu.options.__file=\"packages/steps/src/steps.vue\";var _u=bu.exports;_u.install=function(t){t.component(_u.name,_u)};var wu=_u,xu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-step\",class:[!t.isSimple&&\"is-\"+t.$parent.direction,t.isSimple&&\"is-simple\",t.isLast&&!t.space&&!t.isCenter&&\"is-flex\",t.isCenter&&!t.isVertical&&!t.isSimple&&\"is-center\"],style:t.style},[n(\"div\",{staticClass:\"el-step__head\",class:\"is-\"+t.currentStatus},[n(\"div\",{staticClass:\"el-step__line\",style:t.isLast?\"\":{marginRight:t.$parent.stepOffset+\"px\"}},[n(\"i\",{staticClass:\"el-step__line-inner\",style:t.lineStyle})]),n(\"div\",{staticClass:\"el-step__icon\",class:\"is-\"+(t.icon?\"icon\":\"text\")},[\"success\"!==t.currentStatus&&\"error\"!==t.currentStatus?t._t(\"icon\",[t.icon?n(\"i\",{staticClass:\"el-step__icon-inner\",class:[t.icon]}):t._e(),t.icon||t.isSimple?t._e():n(\"div\",{staticClass:\"el-step__icon-inner\"},[t._v(t._s(t.index+1))])]):n(\"i\",{staticClass:\"el-step__icon-inner is-status\",class:[\"el-icon-\"+(\"success\"===t.currentStatus?\"check\":\"close\")]})],2)]),n(\"div\",{staticClass:\"el-step__main\"},[n(\"div\",{ref:\"title\",staticClass:\"el-step__title\",class:[\"is-\"+t.currentStatus]},[t._t(\"title\",[t._v(t._s(t.title))])],2),t.isSimple?n(\"div\",{staticClass:\"el-step__arrow\"}):n(\"div\",{staticClass:\"el-step__description\",class:[\"is-\"+t.currentStatus]},[t._t(\"description\",[t._v(t._s(t.description))])],2)])])};xu._withStripped=!0;var ku={name:\"ElStep\",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:\"\"}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var t=this.$parent.steps,e=t.indexOf(this);e>=0&&t.splice(e,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var t=this.$parent.steps[this.index-1];return t?t.currentStatus:\"wait\"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return\"vertical\"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var t=this.$parent;return t.steps[t.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var t=this.isSimple,e=this.$parent.space;return t?\"\":e},style:function(){var t={},e=this.$parent.steps.length,n=\"number\"==typeof this.space?this.space+\"px\":this.space?this.space:100/(e-(this.isCenter?0:1))+\"%\";return t.flexBasis=n,this.isVertical||(this.isLast?t.maxWidth=100/this.stepsCount+\"%\":t.marginRight=-this.$parent.stepOffset+\"px\"),t}},methods:{updateStatus:function(t){var e=this.$parent.$children[this.index-1];t>this.index?this.internalStatus=this.$parent.finishStatus:t===this.index&&\"error\"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus=\"wait\",e&&e.calcProgress(this.internalStatus)},calcProgress:function(t){var e=100,n={};n.transitionDelay=150*this.index+\"ms\",t===this.$parent.processStatus?(this.currentStatus,e=0):\"wait\"===t&&(e=0,n.transitionDelay=-150*this.index+\"ms\"),n.borderWidth=e&&!this.isSimple?\"1px\":0,\"vertical\"===this.$parent.direction?n.height=e+\"%\":n.width=e+\"%\",this.lineStyle=n}},mounted:function(){var t=this,e=this.$watch(\"index\",(function(n){t.$watch(\"$parent.active\",t.updateStatus,{immediate:!0}),t.$watch(\"$parent.processStatus\",(function(){var e=t.$parent.active;t.updateStatus(e)}),{immediate:!0}),e()}))}},Su=o(ku,xu,[],!1,null,null,null);Su.options.__file=\"packages/steps/src/step.vue\";var Cu=Su.exports;Cu.install=function(t){t.component(Cu.name,Cu)};var Eu=Cu,Du=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{class:t.carouselClasses,on:{mouseenter:function(e){return e.stopPropagation(),t.handleMouseEnter(e)},mouseleave:function(e){return e.stopPropagation(),t.handleMouseLeave(e)}}},[n(\"div\",{staticClass:\"el-carousel__container\",style:{height:t.height}},[t.arrowDisplay?n(\"transition\",{attrs:{name:\"carousel-arrow-left\"}},[n(\"button\",{directives:[{name:\"show\",rawName:\"v-show\",value:(\"always\"===t.arrow||t.hover)&&(t.loop||t.activeIndex>0),expression:\"(arrow === 'always' || hover) && (loop || activeIndex > 0)\"}],staticClass:\"el-carousel__arrow el-carousel__arrow--left\",attrs:{type:\"button\"},on:{mouseenter:function(e){t.handleButtonEnter(\"left\")},mouseleave:t.handleButtonLeave,click:function(e){e.stopPropagation(),t.throttledArrowClick(t.activeIndex-1)}}},[n(\"i\",{staticClass:\"el-icon-arrow-left\"})])]):t._e(),t.arrowDisplay?n(\"transition\",{attrs:{name:\"carousel-arrow-right\"}},[n(\"button\",{directives:[{name:\"show\",rawName:\"v-show\",value:(\"always\"===t.arrow||t.hover)&&(t.loop||t.activeIndex<t.items.length-1),expression:\"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)\"}],staticClass:\"el-carousel__arrow el-carousel__arrow--right\",attrs:{type:\"button\"},on:{mouseenter:function(e){t.handleButtonEnter(\"right\")},mouseleave:t.handleButtonLeave,click:function(e){e.stopPropagation(),t.throttledArrowClick(t.activeIndex+1)}}},[n(\"i\",{staticClass:\"el-icon-arrow-right\"})])]):t._e(),t._t(\"default\")],2),\"none\"!==t.indicatorPosition?n(\"ul\",{class:t.indicatorsClasses},t._l(t.items,(function(e,r){return n(\"li\",{key:r,class:[\"el-carousel__indicator\",\"el-carousel__indicator--\"+t.direction,{\"is-active\":r===t.activeIndex}],on:{mouseenter:function(e){t.throttledIndicatorHover(r)},click:function(e){e.stopPropagation(),t.handleIndicatorClick(r)}}},[n(\"button\",{staticClass:\"el-carousel__button\"},[t.hasLabel?n(\"span\",[t._v(t._s(e.label))]):t._e()])])})),0):t._e()])};Du._withStripped=!0;var Au=n(25),Ou=n.n(Au),Mu=o({name:\"ElCarousel\",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:\"hover\"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:\"hover\"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:\"horizontal\",validator:function(t){return-1!==[\"horizontal\",\"vertical\"].indexOf(t)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return\"never\"!==this.arrow&&\"vertical\"!==this.direction},hasLabel:function(){return this.items.some((function(t){return t.label.toString().length>0}))},carouselClasses:function(){var t=[\"el-carousel\",\"el-carousel--\"+this.direction];return\"card\"===this.type&&t.push(\"el-carousel--card\"),t},indicatorsClasses:function(){var t=[\"el-carousel__indicators\",\"el-carousel__indicators--\"+this.direction];return this.hasLabel&&t.push(\"el-carousel__indicators--labels\"),\"outside\"!==this.indicatorPosition&&\"card\"!==this.type||t.push(\"el-carousel__indicators--outside\"),t}},watch:{items:function(t){t.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(t,e){this.resetItemPosition(e),e>-1&&this.$emit(\"change\",t,e)},autoplay:function(t){t?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)},interval:function(){this.pauseTimer(),this.startTimer()}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(t,e){var n=this.items.length;return e===n-1&&t.inStage&&this.items[0].active||t.inStage&&this.items[e+1]&&this.items[e+1].active?\"left\":!!(0===e&&t.inStage&&this.items[n-1].active||t.inStage&&this.items[e-1]&&this.items[e-1].active)&&\"right\"},handleButtonEnter:function(t){var e=this;\"vertical\"!==this.direction&&this.items.forEach((function(n,r){t===e.itemInStage(n,r)&&(n.hover=!0)}))},handleButtonLeave:function(){\"vertical\"!==this.direction&&this.items.forEach((function(t){t.hover=!1}))},updateItems:function(){this.items=this.$children.filter((function(t){return\"ElCarouselItem\"===t.$options.name}))},resetItemPosition:function(t){var e=this;this.items.forEach((function(n,r){n.translateItem(r,e.activeIndex,t)}))},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},resetTimer:function(){this.pauseTimer(),this.startTimer()},setActiveItem:function(t){if(\"string\"==typeof t){var e=this.items.filter((function(e){return e.name===t}));e.length>0&&(t=this.items.indexOf(e[0]))}if(t=Number(t),!isNaN(t)&&t===Math.floor(t)){var n=this.items.length,r=this.activeIndex;this.activeIndex=t<0?this.loop?n-1:0:t>=n?this.loop?0:n-1:t,r===this.activeIndex&&this.resetItemPosition(r),this.resetTimer()}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(t){this.activeIndex=t},handleIndicatorHover:function(t){\"hover\"===this.trigger&&t!==this.activeIndex&&(this.activeIndex=t)}},created:function(){var t=this;this.throttledArrowClick=Ou()(300,!0,(function(e){t.setActiveItem(e)})),this.throttledIndicatorHover=Ou()(300,(function(e){t.handleIndicatorHover(e)}))},mounted:function(){var t=this;this.updateItems(),this.$nextTick((function(){Object(Re.addResizeListener)(t.$el,t.resetItemPosition),t.initialIndex<t.items.length&&t.initialIndex>=0&&(t.activeIndex=t.initialIndex),t.startTimer()}))},beforeDestroy:function(){this.$el&&Object(Re.removeResizeListener)(this.$el,this.resetItemPosition),this.pauseTimer()}},Du,[],!1,null,null,null);Mu.options.__file=\"packages/carousel/src/main.vue\";var Tu=Mu.exports;Tu.install=function(t){t.component(Tu.name,Tu)};var Iu=Tu,Pu={vertical:{offset:\"offsetHeight\",scroll:\"scrollTop\",scrollSize:\"scrollHeight\",size:\"height\",key:\"vertical\",axis:\"Y\",client:\"clientY\",direction:\"top\"},horizontal:{offset:\"offsetWidth\",scroll:\"scrollLeft\",scrollSize:\"scrollWidth\",size:\"width\",key:\"horizontal\",axis:\"X\",client:\"clientX\",direction:\"left\"}};function Fu(t){var e=t.move,n=t.size,r=t.bar,i={},o=\"translate\"+r.axis+\"(\"+e+\"%)\";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var ju={name:\"Bar\",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Pu[this.vertical?\"vertical\":\"horizontal\"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,r=this.bar;return t(\"div\",{class:[\"el-scrollbar__bar\",\"is-\"+r.key],on:{mousedown:this.clickTrackHandler}},[t(\"div\",{ref:\"thumb\",class:\"el-scrollbar__thumb\",on:{mousedown:this.clickThumbHandler},style:Fu({size:e,move:n,bar:r})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=100*(Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=e*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(vt.on)(document,\"mousemove\",this.mouseMoveDocumentHandler),Object(vt.on)(document,\"mouseup\",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-(this.$refs.thumb[this.bar.offset]-e))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(vt.off)(document,\"mousemove\",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(vt.off)(document,\"mouseup\",this.mouseUpDocumentHandler)}},Nu={name:\"ElScrollbar\",components:{Bar:ju},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:\"div\"}},data:function(){return{sizeWidth:\"0\",sizeHeight:\"0\",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=Rn()(),n=this.wrapStyle;if(e){var r=\"-\"+e+\"px\",i=\"margin-bottom: \"+r+\"; margin-right: \"+r+\";\";Array.isArray(this.wrapStyle)?(n=Object(v.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:\"string\"==typeof this.wrapStyle?n+=i:n=i}var o=t(this.tag,{class:[\"el-scrollbar__view\",this.viewClass],style:this.viewStyle,ref:\"resize\"},this.$slots.default),a=t(\"div\",{ref:\"wrap\",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,\"el-scrollbar__wrap\",e?\"\":\"el-scrollbar__wrap--hidden-default\"]},[[o]]),s=void 0;return s=this.native?[t(\"div\",{ref:\"wrap\",class:[this.wrapClass,\"el-scrollbar__wrap\"],style:n},[[o]])]:[a,t(ju,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(ju,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],t(\"div\",{class:\"el-scrollbar\"},s)},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t,e,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+\"%\":\"\",this.sizeWidth=e<100?e+\"%\":\"\")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(Re.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(Re.removeResizeListener)(this.$refs.resize,this.update)},install:function(t){t.component(Nu.name,Nu)}},Lu=Nu,Bu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.ready,expression:\"ready\"}],staticClass:\"el-carousel__item\",class:{\"is-active\":t.active,\"el-carousel__item--card\":\"card\"===t.$parent.type,\"is-in-stage\":t.inStage,\"is-hover\":t.hover,\"is-animating\":t.animating},style:t.itemStyle,on:{click:t.handleItemClick}},[\"card\"===t.$parent.type?n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:!t.active,expression:\"!active\"}],staticClass:\"el-carousel__mask\"}):t._e(),t._t(\"default\")],2)};Bu._withStripped=!0;var $u=.83,zu=o({name:\"ElCarouselItem\",props:{name:String,label:{type:[String,Number],default:\"\"}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(t,e,n){return 0===e&&t===n-1?-1:e===n-1&&0===t?n:t<e-1&&e-t>=n/2?n+1:t>e+1&&t-e>=n/2?-2:t},calcCardTranslate:function(t,e){var n=this.$parent.$el.offsetWidth;return this.inStage?n*(1.17*(t-e)+1)/4:t<e?-1.83*n/4:3.83*n/4},calcTranslate:function(t,e,n){return this.$parent.$el[n?\"offsetHeight\":\"offsetWidth\"]*(t-e)},translateItem:function(t,e,n){var r=this.$parent.type,i=this.parentDirection,o=this.$parent.items.length;if(\"card\"!==r&&void 0!==n&&(this.animating=t===e||t===n),t!==e&&o>2&&this.$parent.loop&&(t=this.processIndex(t,e,o)),\"card\"===r)this.inStage=Math.round(Math.abs(t-e))<=1,this.active=t===e,this.translate=this.calcCardTranslate(t,e),this.scale=this.active?1:$u;else{this.active=t===e;var a=\"vertical\"===i;this.translate=this.calcTranslate(t,e,a),this.scale=1}this.ready=!0},handleItemClick:function(){var t=this.$parent;if(t&&\"card\"===t.type){var e=t.items.indexOf(this);t.setActiveItem(e)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var t={transform:(\"vertical\"===this.parentDirection?\"translateY\":\"translateX\")+\"(\"+this.translate+\"px) scale(\"+this.scale+\")\"};return Object(v.autoprefixer)(t)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},Bu,[],!1,null,null,null);zu.options.__file=\"packages/carousel/src/item.vue\";var Ru=zu.exports;Ru.install=function(t){t.component(Ru.name,Ru)};var Uu=Ru,Vu=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"div\",{staticClass:\"el-collapse\",attrs:{role:\"tablist\",\"aria-multiselectable\":\"true\"}},[t._t(\"default\")],2)};Vu._withStripped=!0;var Hu=o({name:\"ElCollapse\",componentName:\"ElCollapse\",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(t){this.activeNames=[].concat(t)}},methods:{setActiveNames:function(t){t=[].concat(t);var e=this.accordion?t[0]:t;this.activeNames=t,this.$emit(\"input\",e),this.$emit(\"change\",e)},handleItemClick:function(t){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==t.name?t.name:\"\");else{var e=this.activeNames.slice(0),n=e.indexOf(t.name);n>-1?e.splice(n,1):e.push(t.name),this.setActiveNames(e)}}},created:function(){this.$on(\"item-click\",this.handleItemClick)}},Vu,[],!1,null,null,null);Hu.options.__file=\"packages/collapse/src/collapse.vue\";var Gu=Hu.exports;Gu.install=function(t){t.component(Gu.name,Gu)};var qu=Gu,Wu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-collapse-item\",class:{\"is-active\":t.isActive,\"is-disabled\":t.disabled}},[n(\"div\",{attrs:{role:\"tab\",\"aria-expanded\":t.isActive,\"aria-controls\":\"el-collapse-content-\"+t.id,\"aria-describedby\":\"el-collapse-content-\"+t.id}},[n(\"div\",{staticClass:\"el-collapse-item__header\",class:{focusing:t.focusing,\"is-active\":t.isActive},attrs:{role:\"button\",id:\"el-collapse-head-\"+t.id,tabindex:t.disabled?void 0:0},on:{click:t.handleHeaderClick,keyup:function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"space\",32,e.key,[\" \",\"Spacebar\"])&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:(e.stopPropagation(),t.handleEnterClick(e))},focus:t.handleFocus,blur:function(e){t.focusing=!1}}},[t._t(\"title\",[t._v(t._s(t.title))]),n(\"i\",{staticClass:\"el-collapse-item__arrow el-icon-arrow-right\",class:{\"is-active\":t.isActive}})],2)]),n(\"el-collapse-transition\",[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.isActive,expression:\"isActive\"}],staticClass:\"el-collapse-item__wrap\",attrs:{role:\"tabpanel\",\"aria-hidden\":!t.isActive,\"aria-labelledby\":\"el-collapse-head-\"+t.id,id:\"el-collapse-content-\"+t.id}},[n(\"div\",{staticClass:\"el-collapse-item__content\"},[t._t(\"default\")],2)])])],1)};Wu._withStripped=!0;var Yu=o({name:\"ElCollapseItem\",componentName:\"ElCollapseItem\",mixins:[C.a],components:{ElCollapseTransition:xt.a},data:function(){return{contentWrapStyle:{height:\"auto\",display:\"block\"},contentHeight:0,focusing:!1,isClick:!1,id:Object(v.generateId)()}},inject:[\"collapse\"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var t=this;setTimeout((function(){t.isClick?t.isClick=!1:t.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch(\"ElCollapse\",\"item-click\",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch(\"ElCollapse\",\"item-click\",this)}}},Wu,[],!1,null,null,null);Yu.options.__file=\"packages/collapse/src/collapse-item.vue\";var Zu=Yu.exports;Zu.install=function(t){t.component(Zu.name,Zu)};var Ku=Zu,Xu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:function(){return t.toggleDropDownVisible(!1)},expression:\"() => toggleDropDownVisible(false)\"}],ref:\"reference\",class:[\"el-cascader\",t.realSize&&\"el-cascader--\"+t.realSize,{\"is-disabled\":t.isDisabled}],on:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1},click:function(){return t.toggleDropDownVisible(!t.readonly||void 0)},keydown:t.handleKeyDown}},[n(\"el-input\",{ref:\"input\",class:{\"is-focus\":t.dropDownVisible},attrs:{size:t.realSize,placeholder:t.placeholder,readonly:t.readonly,disabled:t.isDisabled,\"validate-event\":!1},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.handleInput},model:{value:t.multiple?t.presentText:t.inputValue,callback:function(e){t.multiple?t.presentText:t.inputValue=e},expression:\"multiple ? presentText : inputValue\"}},[n(\"template\",{slot:\"suffix\"},[t.clearBtnVisible?n(\"i\",{key:\"clear\",staticClass:\"el-input__icon el-icon-circle-close\",on:{click:function(e){return e.stopPropagation(),t.handleClear(e)}}}):n(\"i\",{key:\"arrow-down\",class:[\"el-input__icon\",\"el-icon-arrow-down\",t.dropDownVisible&&\"is-reverse\"],on:{click:function(e){e.stopPropagation(),t.toggleDropDownVisible()}}})])],2),t.multiple?n(\"div\",{staticClass:\"el-cascader__tags\"},[t._l(t.presentTags,(function(e){return n(\"el-tag\",{key:e.key,attrs:{type:\"info\",size:t.tagSize,hit:e.hitState,closable:e.closable,\"disable-transitions\":\"\"},on:{close:function(n){t.deleteTag(e)}}},[n(\"span\",[t._v(t._s(e.text))])])})),t.filterable&&!t.isDisabled?n(\"input\",{directives:[{name:\"model\",rawName:\"v-model.trim\",value:t.inputValue,expression:\"inputValue\",modifiers:{trim:!0}}],staticClass:\"el-cascader__search-input\",attrs:{type:\"text\",placeholder:t.presentTags.length?\"\":t.placeholder},domProps:{value:t.inputValue},on:{input:[function(e){e.target.composing||(t.inputValue=e.target.value.trim())},function(e){return t.handleInput(t.inputValue,e)}],click:function(e){e.stopPropagation(),t.toggleDropDownVisible(!0)},keydown:function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"delete\",[8,46],e.key,[\"Backspace\",\"Delete\",\"Del\"])?null:t.handleDelete(e)},blur:function(e){t.$forceUpdate()}}}):t._e()],2):t._e(),n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"after-leave\":t.handleDropdownLeave}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.dropDownVisible,expression:\"dropDownVisible\"}],ref:\"popper\",class:[\"el-popper\",\"el-cascader__dropdown\",t.popperClass]},[n(\"el-cascader-panel\",{directives:[{name:\"show\",rawName:\"v-show\",value:!t.filtering,expression:\"!filtering\"}],ref:\"panel\",attrs:{options:t.options,props:t.config,border:!1,\"render-label\":t.$scopedSlots.default},on:{\"expand-change\":t.handleExpandChange,close:function(e){t.toggleDropDownVisible(!1)}},model:{value:t.checkedValue,callback:function(e){t.checkedValue=e},expression:\"checkedValue\"}}),t.filterable?n(\"el-scrollbar\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.filtering,expression:\"filtering\"}],ref:\"suggestionPanel\",staticClass:\"el-cascader__suggestion-panel\",attrs:{tag:\"ul\",\"view-class\":\"el-cascader__suggestion-list\"},nativeOn:{keydown:function(e){return t.handleSuggestionKeyDown(e)}}},[t.suggestions.length?t._l(t.suggestions,(function(e,r){return n(\"li\",{key:e.uid,class:[\"el-cascader__suggestion-item\",e.checked&&\"is-checked\"],attrs:{tabindex:-1},on:{click:function(e){t.handleSuggestionClick(r)}}},[n(\"span\",[t._v(t._s(e.text))]),e.checked?n(\"i\",{staticClass:\"el-icon-check\"}):t._e()])})):t._t(\"empty\",[n(\"li\",{staticClass:\"el-cascader__empty-text\"},[t._v(t._s(t.t(\"el.cascader.noMatch\")))])])],2):t._e()],1)])],1)};Xu._withStripped=!0;var Ju=n(43),Qu=n.n(Ju),tl=n(35),el=n.n(tl),nl=el.a.keys,rl={expandTrigger:{newProp:\"expandTrigger\",type:String},changeOnSelect:{newProp:\"checkStrictly\",type:Boolean},hoverThreshold:{newProp:\"hoverThreshold\",type:Number}},il={props:{placement:{type:String,default:\"bottom-start\"},appendToBody:N.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:N.a.props.arrowOffset,offset:N.a.props.offset,boundariesPadding:N.a.props.boundariesPadding,popperOptions:N.a.props.popperOptions,transformOrigin:N.a.props.transformOrigin},methods:N.a.methods,data:N.a.data,beforeDestroy:N.a.beforeDestroy},ol={medium:36,small:32,mini:28},al={name:\"ElCascader\",directives:{Clickoutside:P.a},mixins:[il,C.a,m.a,k.a],inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},components:{ElInput:d.a,ElTag:ze.a,ElScrollbar:B.a,ElCascaderPanel:Qu.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(to.t)(\"el.cascader.placeholder\")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:\" / \"},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var t=(this.elFormItem||{}).elFormItemSize;return this.size||t||(this.$ELEMENT||{}).size},tagSize:function(){return[\"small\",\"mini\"].indexOf(this.realSize)>-1?\"mini\":\"small\"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var t=this.props||{},e=this.$attrs;return Object.keys(rl).forEach((function(n){var r=rl[n],i=r.newProp,o=r.type,a=e[n]||e[Object(v.kebabCase)(n)];Object(Gt.isDef)(n)&&!Object(Gt.isDef)(t[i])&&(o===Boolean&&\"\"===a&&(a=!0),t[i]=a)})),t},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter((function(t){return!t.isDisabled})).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(t){Object(v.isEqual)(t,this.checkedValue)||(this.checkedValue=t,this.computePresentContent())},checkedValue:function(t){var e=this.value,n=this.dropDownVisible,r=this.config,i=r.checkStrictly,o=r.multiple;Object(v.isEqual)(t,e)&&!Object(Xs.isUndefined)(e)||(this.computePresentContent(),o||i||!n||this.toggleDropDownVisible(!1),this.$emit(\"input\",t),this.$emit(\"change\",t),this.dispatch(\"ElFormItem\",\"el.form.change\",[t]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(t){this.inputValue=t},presentTags:function(t,e){this.multiple&&(t.length||e.length)&&this.$nextTick(this.updateStyle)},filtering:function(t){this.$nextTick(this.updatePopper)}},mounted:function(){var t=this,e=this.$refs.input;e&&e.$el&&(this.inputInitialHeight=e.$el.offsetHeight||ol[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=T()(this.debounce,(function(){var e=t.inputValue;if(e){var n=t.beforeFilter(e);n&&n.then?n.then(t.getSuggestions):!1!==n?t.getSuggestions():t.filtering=!1}else t.filtering=!1})),Object(Re.addResizeListener)(this.$el,this.updateStyle)},beforeDestroy:function(){Object(Re.removeResizeListener)(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{\"expand-trigger\":\"expand-trigger is removed, use `props.expandTrigger` instead.\",\"change-on-select\":\"change-on-select is removed, use `props.checkStrictly` instead.\",\"hover-threshold\":\"hover-threshold is removed, use `props.hoverThreshold` instead\"},events:{\"active-item-change\":\"active-item-change is renamed to expand-change\"}}},toggleDropDownVisible:function(t){var e=this;if(!this.isDisabled){var n=this.dropDownVisible,r=this.$refs.input;(t=Object(Gt.isDef)(t)?t:!n)!==n&&(this.dropDownVisible=t,t&&this.$nextTick((function(){e.updatePopper(),e.panel.scrollIntoView()})),r.$refs.input.setAttribute(\"aria-expanded\",t),this.$emit(\"visible-change\",t))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText,this.doDestroy()},handleKeyDown:function(t){switch(t.keyCode){case nl.enter:this.toggleDropDownVisible();break;case nl.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),t.preventDefault();break;case nl.esc:case nl.tab:this.toggleDropDownVisible(!1)}},handleFocus:function(t){this.$emit(\"focus\",t)},handleBlur:function(t){this.$emit(\"blur\",t)},handleInput:function(t,e){!this.dropDownVisible&&this.toggleDropDownVisible(!0),e&&e.isComposing||(t?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText=\"\",this.panel.clearCheckedNodes()},handleExpandChange:function(t){this.$nextTick(this.updatePopper.bind(this)),this.$emit(\"expand-change\",t),this.$emit(\"active-item-change\",t)},focusFirstNode:function(){var t=this;this.$nextTick((function(){var e=t.filtering,n=t.$refs,r=n.popper,i=n.suggestionPanel,o=null;e&&i?o=i.$el.querySelector(\".el-cascader__suggestion-item\"):o=r.querySelector(\".el-cascader-menu\").querySelector('.el-cascader-node[tabindex=\"-1\"]');o&&(o.focus(),!e&&o.click())}))},computePresentContent:function(){var t=this;this.$nextTick((function(){t.config.multiple?(t.computePresentTags(),t.presentText=t.presentTags.length?\" \":null):t.computePresentText()}))},isEmptyValue:function(t){var e=this.multiple,n=this.panel.config.emitPath;return!(!e&&!n)&&Object(v.isEmpty)(t)},computePresentText:function(){var t=this.checkedValue,e=this.config;if(!this.isEmptyValue(t)){var n=this.panel.getNodeByValue(t);if(n&&(e.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var t=this.isDisabled,e=this.leafOnly,n=this.showAllLevels,r=this.separator,i=this.collapseTags,o=this.getCheckedNodes(e),a=[],s=function(e){return{node:e,key:e.uid,text:e.getText(n,r),hitState:!1,closable:!t&&!e.isDisabled}};if(o.length){var u=o[0],l=o.slice(1),c=l.length;a.push(s(u)),c&&(i?a.push({key:-1,text:\"+ \"+c,closable:!1}):l.forEach((function(t){return a.push(s(t))})))}this.checkedNodes=o,this.presentTags=a},getSuggestions:function(){var t=this,e=this.filterMethod;Object(Xs.isFunction)(e)||(e=function(t,e){return t.text.includes(e)});var n=this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(t.showAllLevels,t.separator)||\"\",e(n,t.inputValue))}));this.multiple?this.presentTags.forEach((function(t){t.hitState=!1})):n.forEach((function(e){e.checked=Object(v.isEqual)(t.checkedValue,e.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(t){var e=t.keyCode,n=t.target;switch(e){case nl.enter:n.click();break;case nl.up:var r=n.previousElementSibling;r&&r.focus();break;case nl.down:var i=n.nextElementSibling;i&&i.focus();break;case nl.esc:case nl.tab:this.toggleDropDownVisible(!1)}},handleDelete:function(){var t=this.inputValue,e=this.pressDeleteCount,n=this.presentTags,r=n[n.length-1];this.pressDeleteCount=t?0:e+1,r&&this.pressDeleteCount&&(r.hitState?this.deleteTag(r):r.hitState=!0)},handleSuggestionClick:function(t){var e=this.multiple,n=this.suggestions[t];if(e){var r=n.checked;n.doCheck(!r),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(t){var e=this.checkedValue,n=t.node.getValueByOption(),r=e.find((function(t){return Object(v.isEqual)(t,n)}));this.checkedValue=e.filter((function(t){return!Object(v.isEqual)(t,n)})),this.$emit(\"remove-tag\",r)},updateStyle:function(){var t=this.$el,e=this.inputInitialHeight;if(!this.$isServer&&t){var n=this.$refs.suggestionPanel,r=t.querySelector(\".el-input__inner\");if(r){var i=t.querySelector(\".el-cascader__tags\"),o=null;if(n&&(o=n.$el))o.querySelector(\".el-cascader__suggestion-list\").style.minWidth=r.offsetWidth+\"px\";if(i){var a=Math.round(i.getBoundingClientRect().height),s=Math.max(a+6,e)+\"px\";r.style.height=s,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(t){return this.panel.getCheckedNodes(t)}}},sl=o(al,Xu,[],!1,null,null,null);sl.options.__file=\"packages/cascader/src/cascader.vue\";var ul=sl.exports;ul.install=function(t){t.component(ul.name,ul)};var ll=ul,cl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:t.hide,expression:\"hide\"}],class:[\"el-color-picker\",t.colorDisabled?\"is-disabled\":\"\",t.colorSize?\"el-color-picker--\"+t.colorSize:\"\"]},[t.colorDisabled?n(\"div\",{staticClass:\"el-color-picker__mask\"}):t._e(),n(\"div\",{staticClass:\"el-color-picker__trigger\",on:{click:t.handleTrigger}},[n(\"span\",{staticClass:\"el-color-picker__color\",class:{\"is-alpha\":t.showAlpha}},[n(\"span\",{staticClass:\"el-color-picker__color-inner\",style:{backgroundColor:t.displayedColor}}),t.value||t.showPanelColor?t._e():n(\"span\",{staticClass:\"el-color-picker__empty el-icon-close\"})]),n(\"span\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.value||t.showPanelColor,expression:\"value || showPanelColor\"}],staticClass:\"el-color-picker__icon el-icon-arrow-down\"})]),n(\"picker-dropdown\",{ref:\"dropdown\",class:[\"el-color-picker__panel\",t.popperClass||\"\"],attrs:{color:t.color,\"show-alpha\":t.showAlpha,predefine:t.predefine},on:{pick:t.confirmValue,clear:t.clearValue},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:\"showPicker\"}})],1)};cl._withStripped=!0;var hl=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)};var fl=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},dl=function(t,e){var n;\"string\"==typeof(n=t)&&-1!==n.indexOf(\".\")&&1===parseFloat(n)&&(t=\"100%\");var r=function(t){return\"string\"==typeof t&&-1!==t.indexOf(\"%\")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)},pl={10:\"A\",11:\"B\",12:\"C\",13:\"D\",14:\"E\",15:\"F\"},ml={A:10,B:11,C:12,D:13,E:14,F:15},vl=function(t){return 2===t.length?16*(ml[t[0].toUpperCase()]||+t[0])+(ml[t[1].toUpperCase()]||+t[1]):ml[t[1].toUpperCase()]||+t[1]},gl=function(t,e,n){t=dl(t,255),e=dl(e,255),n=dl(n,255);var r,i=Math.max(t,e,n),o=Math.min(t,e,n),a=void 0,s=i,u=i-o;if(r=0===i?0:u/i,i===o)a=0;else{switch(i){case t:a=(e-n)/u+(e<n?6:0);break;case e:a=(n-t)/u+2;break;case n:a=(t-e)/u+4}a/=6}return{h:360*a,s:100*r,v:100*s}},yl=function(t,e,n){t=6*dl(t,360),e=dl(e,100),n=dl(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],h=[o,o,s,n,n,a][u];return{r:Math.round(255*l),g:Math.round(255*c),b:Math.round(255*h)}},bl=function(){function t(e){for(var n in function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format=\"hex\",this.value=\"\",e=e||{})e.hasOwnProperty(n)&&(this[n]=e[n]);this.doOnChange()}return t.prototype.set=function(t,e){if(1!==arguments.length||\"object\"!==(void 0===t?\"undefined\":hl(t)))this[\"_\"+t]=e,this.doOnChange();else for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n])},t.prototype.get=function(t){return this[\"_\"+t]},t.prototype.toRgb=function(){return yl(this._hue,this._saturation,this._value)},t.prototype.fromString=function(t){var e=this;if(!t)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(t,n,r){e._hue=Math.max(0,Math.min(360,t)),e._saturation=Math.max(0,Math.min(100,n)),e._value=Math.max(0,Math.min(100,r)),e.doOnChange()};if(-1!==t.indexOf(\"hsl\")){var r=t.replace(/hsla|hsl|\\(|\\)/gm,\"\").split(/\\s|,/g).filter((function(t){return\"\"!==t})).map((function(t,e){return e>2?parseFloat(t):parseInt(t,10)}));if(4===r.length?this._alpha=Math.floor(100*parseFloat(r[3])):3===r.length&&(this._alpha=100),r.length>=3){var i=function(t,e,n){n/=100;var r=e/=100,i=Math.max(n,.01);return e*=(n*=2)<=1?n:2-n,r*=i<=1?i:2-i,{h:t,s:100*(0===n?2*r/(i+r):2*e/(n+e)),v:(n+e)/2*100}}(r[0],r[1],r[2]);n(i.h,i.s,i.v)}}else if(-1!==t.indexOf(\"hsv\")){var o=t.replace(/hsva|hsv|\\(|\\)/gm,\"\").split(/\\s|,/g).filter((function(t){return\"\"!==t})).map((function(t,e){return e>2?parseFloat(t):parseInt(t,10)}));4===o.length?this._alpha=Math.floor(100*parseFloat(o[3])):3===o.length&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(-1!==t.indexOf(\"rgb\")){var a=t.replace(/rgba|rgb|\\(|\\)/gm,\"\").split(/\\s|,/g).filter((function(t){return\"\"!==t})).map((function(t,e){return e>2?parseFloat(t):parseInt(t,10)}));if(4===a.length?this._alpha=Math.floor(100*parseFloat(a[3])):3===a.length&&(this._alpha=100),a.length>=3){var s=gl(a[0],a[1],a[2]);n(s.h,s.s,s.v)}}else if(-1!==t.indexOf(\"#\")){var u=t.replace(\"#\",\"\").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(u))return;var l=void 0,c=void 0,h=void 0;3===u.length?(l=vl(u[0]+u[0]),c=vl(u[1]+u[1]),h=vl(u[2]+u[2])):6!==u.length&&8!==u.length||(l=vl(u.substring(0,2)),c=vl(u.substring(2,4)),h=vl(u.substring(4,6))),8===u.length?this._alpha=Math.floor(vl(u.substring(6))/255*100):3!==u.length&&6!==u.length||(this._alpha=100);var f=gl(l,c,h);n(f.h,f.s,f.v)}},t.prototype.compare=function(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1},t.prototype.doOnChange=function(){var t=this._hue,e=this._saturation,n=this._value,r=this._alpha,i=this.format;if(this.enableAlpha)switch(i){case\"hsl\":var o=fl(t,e/100,n/100);this.value=\"hsla(\"+t+\", \"+Math.round(100*o[1])+\"%, \"+Math.round(100*o[2])+\"%, \"+r/100+\")\";break;case\"hsv\":this.value=\"hsva(\"+t+\", \"+Math.round(e)+\"%, \"+Math.round(n)+\"%, \"+r/100+\")\";break;default:var a=yl(t,e,n),s=a.r,u=a.g,l=a.b;this.value=\"rgba(\"+s+\", \"+u+\", \"+l+\", \"+r/100+\")\"}else switch(i){case\"hsl\":var c=fl(t,e/100,n/100);this.value=\"hsl(\"+t+\", \"+Math.round(100*c[1])+\"%, \"+Math.round(100*c[2])+\"%)\";break;case\"hsv\":this.value=\"hsv(\"+t+\", \"+Math.round(e)+\"%, \"+Math.round(n)+\"%)\";break;case\"rgb\":var h=yl(t,e,n),f=h.r,d=h.g,p=h.b;this.value=\"rgb(\"+f+\", \"+d+\", \"+p+\")\";break;default:this.value=function(t){var e=t.r,n=t.g,r=t.b,i=function(t){t=Math.min(Math.round(t),255);var e=Math.floor(t/16),n=t%16;return\"\"+(pl[e]||e)+(pl[n]||n)};return isNaN(e)||isNaN(n)||isNaN(r)?\"\":\"#\"+i(e)+i(n)+i(r)}(yl(t,e,n))}},t}(),_l=bl,wl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"after-leave\":t.doDestroy}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.showPopper,expression:\"showPopper\"}],staticClass:\"el-color-dropdown\"},[n(\"div\",{staticClass:\"el-color-dropdown__main-wrapper\"},[n(\"hue-slider\",{ref:\"hue\",staticStyle:{float:\"right\"},attrs:{color:t.color,vertical:\"\"}}),n(\"sv-panel\",{ref:\"sl\",attrs:{color:t.color}})],1),t.showAlpha?n(\"alpha-slider\",{ref:\"alpha\",attrs:{color:t.color}}):t._e(),t.predefine?n(\"predefine\",{attrs:{color:t.color,colors:t.predefine}}):t._e(),n(\"div\",{staticClass:\"el-color-dropdown__btns\"},[n(\"span\",{staticClass:\"el-color-dropdown__value\"},[n(\"el-input\",{attrs:{\"validate-event\":!1,size:\"mini\"},on:{blur:t.handleConfirm},nativeOn:{keyup:function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleConfirm(e)}},model:{value:t.customInput,callback:function(e){t.customInput=e},expression:\"customInput\"}})],1),n(\"el-button\",{staticClass:\"el-color-dropdown__link-btn\",attrs:{size:\"mini\",type:\"text\"},on:{click:function(e){t.$emit(\"clear\")}}},[t._v(\"\\n        \"+t._s(t.t(\"el.colorpicker.clear\"))+\"\\n      \")]),n(\"el-button\",{staticClass:\"el-color-dropdown__btn\",attrs:{plain:\"\",size:\"mini\"},on:{click:t.confirmValue}},[t._v(\"\\n        \"+t._s(t.t(\"el.colorpicker.confirm\"))+\"\\n      \")])],1)],1)])};wl._withStripped=!0;var xl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-color-svpanel\",style:{backgroundColor:t.background}},[n(\"div\",{staticClass:\"el-color-svpanel__white\"}),n(\"div\",{staticClass:\"el-color-svpanel__black\"}),n(\"div\",{staticClass:\"el-color-svpanel__cursor\",style:{top:t.cursorTop+\"px\",left:t.cursorLeft+\"px\"}},[n(\"div\")])])};xl._withStripped=!0;var kl=!1,Sl=function(t,e){if(!gn.a.prototype.$isServer){var n=function(t){e.drag&&e.drag(t)},r=function t(r){document.removeEventListener(\"mousemove\",n),document.removeEventListener(\"mouseup\",t),document.onselectstart=null,document.ondragstart=null,kl=!1,e.end&&e.end(r)};t.addEventListener(\"mousedown\",(function(t){kl||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener(\"mousemove\",n),document.addEventListener(\"mouseup\",r),kl=!0,e.start&&e.start(t))}))}},Cl=o({name:\"el-sl-panel\",props:{color:{required:!0}},computed:{colorValue:function(){return{hue:this.color.get(\"hue\"),value:this.color.get(\"value\")}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var t=this.color.get(\"saturation\"),e=this.color.get(\"value\"),n=this.$el,r=n.clientWidth,i=n.clientHeight;this.cursorLeft=t*r/100,this.cursorTop=(100-e)*i/100,this.background=\"hsl(\"+this.color.get(\"hue\")+\", 100%, 50%)\"},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;n=Math.max(0,n),n=Math.min(n,e.width),r=Math.max(0,r),r=Math.min(r,e.height),this.cursorLeft=n,this.cursorTop=r,this.color.set({saturation:n/e.width*100,value:100-r/e.height*100})}},mounted:function(){var t=this;Sl(this.$el,{drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:\"hsl(0, 100%, 50%)\"}}},xl,[],!1,null,null,null);Cl.options.__file=\"packages/color-picker/src/components/sv-panel.vue\";var El=Cl.exports,Dl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-color-hue-slider\",class:{\"is-vertical\":t.vertical}},[n(\"div\",{ref:\"bar\",staticClass:\"el-color-hue-slider__bar\",on:{click:t.handleClick}}),n(\"div\",{ref:\"thumb\",staticClass:\"el-color-hue-slider__thumb\",style:{left:t.thumbLeft+\"px\",top:t.thumbTop+\"px\"}})])};Dl._withStripped=!0;var Al=o({name:\"el-color-hue-slider\",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){return this.color.get(\"hue\")}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(t){var e=this.$refs.thumb;t.target!==e&&this.handleDrag(t)},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=this.$refs.thumb,r=void 0;if(this.vertical){var i=t.clientY-e.top;i=Math.min(i,e.height-n.offsetHeight/2),i=Math.max(n.offsetHeight/2,i),r=Math.round((i-n.offsetHeight/2)/(e.height-n.offsetHeight)*360)}else{var o=t.clientX-e.left;o=Math.min(o,e.width-n.offsetWidth/2),o=Math.max(n.offsetWidth/2,o),r=Math.round((o-n.offsetWidth/2)/(e.width-n.offsetWidth)*360)}this.color.set(\"hue\",r)},getThumbLeft:function(){if(this.vertical)return 0;var t=this.$el,e=this.color.get(\"hue\");if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var t=this.$el,e=this.color.get(\"hue\");if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var t=this,e=this.$refs,n=e.bar,r=e.thumb,i={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Sl(n,i),Sl(r,i),this.update()}},Dl,[],!1,null,null,null);Al.options.__file=\"packages/color-picker/src/components/hue-slider.vue\";var Ol=Al.exports,Ml=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-color-alpha-slider\",class:{\"is-vertical\":t.vertical}},[n(\"div\",{ref:\"bar\",staticClass:\"el-color-alpha-slider__bar\",style:{background:t.background},on:{click:t.handleClick}}),n(\"div\",{ref:\"thumb\",staticClass:\"el-color-alpha-slider__thumb\",style:{left:t.thumbLeft+\"px\",top:t.thumbTop+\"px\"}})])};Ml._withStripped=!0;var Tl=o({name:\"el-color-alpha-slider\",props:{color:{required:!0},vertical:Boolean},watch:{\"color._alpha\":function(){this.update()},\"color.value\":function(){this.update()}},methods:{handleClick:function(t){var e=this.$refs.thumb;t.target!==e&&this.handleDrag(t)},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var r=t.clientY-e.top;r=Math.max(n.offsetHeight/2,r),r=Math.min(r,e.height-n.offsetHeight/2),this.color.set(\"alpha\",Math.round((r-n.offsetHeight/2)/(e.height-n.offsetHeight)*100))}else{var i=t.clientX-e.left;i=Math.max(n.offsetWidth/2,i),i=Math.min(i,e.width-n.offsetWidth/2),this.color.set(\"alpha\",Math.round((i-n.offsetWidth/2)/(e.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var t=this.$el,e=this.color._alpha;if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var t=this.$el,e=this.color._alpha;if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var t=this.color.toRgb(),e=t.r,n=t.g,r=t.b;return\"linear-gradient(to right, rgba(\"+e+\", \"+n+\", \"+r+\", 0) 0%, rgba(\"+e+\", \"+n+\", \"+r+\", 1) 100%)\"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var t=this,e=this.$refs,n=e.bar,r=e.thumb,i={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Sl(n,i),Sl(r,i),this.update()}},Ml,[],!1,null,null,null);Tl.options.__file=\"packages/color-picker/src/components/alpha-slider.vue\";var Il=Tl.exports,Pl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-color-predefine\"},[n(\"div\",{staticClass:\"el-color-predefine__colors\"},t._l(t.rgbaColors,(function(e,r){return n(\"div\",{key:t.colors[r],staticClass:\"el-color-predefine__color-selector\",class:{selected:e.selected,\"is-alpha\":e._alpha<100},on:{click:function(e){t.handleSelect(r)}}},[n(\"div\",{style:{\"background-color\":e.value}})])})),0)])};Pl._withStripped=!0;var Fl=o({props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(t){this.color.fromString(this.colors[t])},parseColors:function(t,e){return t.map((function(t){var n=new _l;return n.enableAlpha=!0,n.format=\"rgba\",n.fromString(t),n.selected=n.value===e.value,n}))}},watch:{\"$parent.currentColor\":function(t){var e=new _l;e.fromString(t),this.rgbaColors.forEach((function(t){t.selected=e.compare(t)}))},colors:function(t){this.rgbaColors=this.parseColors(t,this.color)},color:function(t){this.rgbaColors=this.parseColors(this.colors,t)}}},Pl,[],!1,null,null,null);Fl.options.__file=\"packages/color-picker/src/components/predefine.vue\";var jl=Fl.exports,Nl=o({name:\"el-color-picker-dropdown\",mixins:[N.a,m.a],components:{SvPanel:El,HueSlider:Ol,AlphaSlider:Il,ElInput:d.a,ElButton:W.a,Predefine:jl},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:\"\"}},computed:{currentColor:function(){var t=this.$parent;return t.value||t.showPanelColor?t.color.value:\"\"}},methods:{confirmValue:function(){this.$emit(\"pick\")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(t){var e=this;!0===t&&this.$nextTick((function(){var t=e.$refs,n=t.sl,r=t.hue,i=t.alpha;n&&n.update(),r&&r.update(),i&&i.update()}))},currentColor:{immediate:!0,handler:function(t){this.customInput=t}}}},wl,[],!1,null,null,null);Nl.options.__file=\"packages/color-picker/src/components/picker-dropdown.vue\";var Ll=Nl.exports,Bl=o({name:\"ElColorPicker\",mixins:[C.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},directives:{Clickoutside:P.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):\"transparent\"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(t){t?t&&t!==this.color.value&&this.color.fromString(t):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(t){if(this.showPicker){var e=new _l({enableAlpha:this.showAlpha,format:this.colorFormat});e.fromString(this.value),t!==this.displayedRgb(e,this.showAlpha)&&this.$emit(\"active-change\",t)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var t=this.color.value;this.$emit(\"input\",t),this.$emit(\"change\",t),this.dispatch(\"ElFormItem\",\"el.form.change\",t),this.showPicker=!1},clearValue:function(){this.$emit(\"input\",null),this.$emit(\"change\",null),null!==this.value&&this.dispatch(\"ElFormItem\",\"el.form.change\",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var t=this;this.$nextTick((function(e){t.value?t.color.fromString(t.value):t.showPanelColor=!1}))},displayedRgb:function(t,e){if(!(t instanceof _l))throw Error(\"color should be instance of Color Class\");var n=t.toRgb(),r=n.r,i=n.g,o=n.b;return e?\"rgba(\"+r+\", \"+i+\", \"+o+\", \"+t.get(\"alpha\")/100+\")\":\"rgb(\"+r+\", \"+i+\", \"+o+\")\"}},mounted:function(){var t=this.value;t&&this.color.fromString(t),this.popperElm=this.$refs.dropdown.$el},data:function(){return{color:new _l({enableAlpha:this.showAlpha,format:this.colorFormat}),showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Ll}},cl,[],!1,null,null,null);Bl.options.__file=\"packages/color-picker/src/main.vue\";var $l=Bl.exports;$l.install=function(t){t.component($l.name,$l)};var zl=$l,Rl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-transfer\"},[n(\"transfer-panel\",t._b({ref:\"leftPanel\",attrs:{data:t.sourceData,title:t.titles[0]||t.t(\"el.transfer.titles.0\"),\"default-checked\":t.leftDefaultChecked,placeholder:t.filterPlaceholder||t.t(\"el.transfer.filterPlaceholder\")},on:{\"checked-change\":t.onSourceCheckedChange}},\"transfer-panel\",t.$props,!1),[t._t(\"left-footer\")],2),n(\"div\",{staticClass:\"el-transfer__buttons\"},[n(\"el-button\",{class:[\"el-transfer__button\",t.hasButtonTexts?\"is-with-texts\":\"\"],attrs:{type:\"primary\",disabled:0===t.rightChecked.length},nativeOn:{click:function(e){return t.addToLeft(e)}}},[n(\"i\",{staticClass:\"el-icon-arrow-left\"}),void 0!==t.buttonTexts[0]?n(\"span\",[t._v(t._s(t.buttonTexts[0]))]):t._e()]),n(\"el-button\",{class:[\"el-transfer__button\",t.hasButtonTexts?\"is-with-texts\":\"\"],attrs:{type:\"primary\",disabled:0===t.leftChecked.length},nativeOn:{click:function(e){return t.addToRight(e)}}},[void 0!==t.buttonTexts[1]?n(\"span\",[t._v(t._s(t.buttonTexts[1]))]):t._e(),n(\"i\",{staticClass:\"el-icon-arrow-right\"})])],1),n(\"transfer-panel\",t._b({ref:\"rightPanel\",attrs:{data:t.targetData,title:t.titles[1]||t.t(\"el.transfer.titles.1\"),\"default-checked\":t.rightDefaultChecked,placeholder:t.filterPlaceholder||t.t(\"el.transfer.filterPlaceholder\")},on:{\"checked-change\":t.onTargetCheckedChange}},\"transfer-panel\",t.$props,!1),[t._t(\"right-footer\")],2)],1)};Rl._withStripped=!0;var Ul=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-transfer-panel\"},[n(\"p\",{staticClass:\"el-transfer-panel__header\"},[n(\"el-checkbox\",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleAllCheckedChange},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:\"allChecked\"}},[t._v(\"\\n      \"+t._s(t.title)+\"\\n      \"),n(\"span\",[t._v(t._s(t.checkedSummary))])])],1),n(\"div\",{class:[\"el-transfer-panel__body\",t.hasFooter?\"is-with-footer\":\"\"]},[t.filterable?n(\"el-input\",{staticClass:\"el-transfer-panel__filter\",attrs:{size:\"small\",placeholder:t.placeholder},nativeOn:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1}},model:{value:t.query,callback:function(e){t.query=e},expression:\"query\"}},[n(\"i\",{class:[\"el-input__icon\",\"el-icon-\"+t.inputIcon],attrs:{slot:\"prefix\"},on:{click:t.clearQuery},slot:\"prefix\"})]):t._e(),n(\"el-checkbox-group\",{directives:[{name:\"show\",rawName:\"v-show\",value:!t.hasNoMatch&&t.data.length>0,expression:\"!hasNoMatch && data.length > 0\"}],staticClass:\"el-transfer-panel__list\",class:{\"is-filterable\":t.filterable},model:{value:t.checked,callback:function(e){t.checked=e},expression:\"checked\"}},t._l(t.filteredData,(function(e){return n(\"el-checkbox\",{key:e[t.keyProp],staticClass:\"el-transfer-panel__item\",attrs:{label:e[t.keyProp],disabled:e[t.disabledProp]}},[n(\"option-content\",{attrs:{option:e}})],1)})),1),n(\"p\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.hasNoMatch,expression:\"hasNoMatch\"}],staticClass:\"el-transfer-panel__empty\"},[t._v(t._s(t.t(\"el.transfer.noMatch\")))]),n(\"p\",{directives:[{name:\"show\",rawName:\"v-show\",value:0===t.data.length&&!t.hasNoMatch,expression:\"data.length === 0 && !hasNoMatch\"}],staticClass:\"el-transfer-panel__empty\"},[t._v(t._s(t.t(\"el.transfer.noData\")))])],1),t.hasFooter?n(\"p\",{staticClass:\"el-transfer-panel__footer\"},[t._t(\"default\")],2):t._e()])};Ul._withStripped=!0;var Vl={mixins:[m.a],name:\"ElTransferPanel\",componentName:\"ElTransferPanel\",components:{ElCheckboxGroup:er.a,ElCheckbox:cn.a,ElInput:d.a,OptionContent:{props:{option:Object},render:function(t){var e=function t(e){return\"ElTransferPanel\"===e.$options.componentName?e:e.$parent?t(e.$parent):e}(this),n=e.$parent||e;return e.renderContent?e.renderContent(t,this.option):n.$scopedSlots.default?n.$scopedSlots.default({option:this.option}):t(\"span\",[this.option[e.labelProp]||this.option[e.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:\"\",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(t,e){if(this.updateAllChecked(),this.checkChangeByUser){var n=t.concat(e).filter((function(n){return-1===t.indexOf(n)||-1===e.indexOf(n)}));this.$emit(\"checked-change\",t,n)}else this.$emit(\"checked-change\",t),this.checkChangeByUser=!0},data:function(){var t=this,e=[],n=this.filteredData.map((function(e){return e[t.keyProp]}));this.checked.forEach((function(t){n.indexOf(t)>-1&&e.push(t)})),this.checkChangeByUser=!1,this.checked=e},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(t,e){var n=this;if(!e||t.length!==e.length||!t.every((function(t){return e.indexOf(t)>-1}))){var r=[],i=this.checkableData.map((function(t){return t[n.keyProp]}));t.forEach((function(t){i.indexOf(t)>-1&&r.push(t)})),this.checkChangeByUser=!1,this.checked=r}}}},computed:{filteredData:function(){var t=this;return this.data.filter((function(e){return\"function\"==typeof t.filterMethod?t.filterMethod(t.query,e):(e[t.labelProp]||e[t.keyProp].toString()).toLowerCase().indexOf(t.query.toLowerCase())>-1}))},checkableData:function(){var t=this;return this.filteredData.filter((function(e){return!e[t.disabledProp]}))},checkedSummary:function(){var t=this.checked.length,e=this.data.length,n=this.format,r=n.noChecked,i=n.hasChecked;return r&&i?t>0?i.replace(/\\${checked}/g,t).replace(/\\${total}/g,e):r.replace(/\\${total}/g,e):t+\"/\"+e},isIndeterminate:function(){var t=this.checked.length;return t>0&&t<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?\"circle-close\":\"search\"},labelProp:function(){return this.props.label||\"label\"},keyProp:function(){return this.props.key||\"key\"},disabledProp:function(){return this.props.disabled||\"disabled\"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var t=this,e=this.checkableData.map((function(e){return e[t.keyProp]}));this.allChecked=e.length>0&&e.every((function(e){return t.checked.indexOf(e)>-1}))},handleAllCheckedChange:function(t){var e=this;this.checked=t?this.checkableData.map((function(t){return t[e.keyProp]})):[]},clearQuery:function(){\"circle-close\"===this.inputIcon&&(this.query=\"\")}}},Hl=o(Vl,Ul,[],!1,null,null,null);Hl.options.__file=\"packages/transfer/src/transfer-panel.vue\";var Gl=Hl.exports,ql=o({name:\"ElTransfer\",mixins:[C.a,m.a,k.a],components:{TransferPanel:Gl,ElButton:W.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:\"\"},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:\"label\",key:\"key\",disabled:\"disabled\"}}},targetOrder:{type:String,default:\"original\"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var t=this.props.key;return this.data.reduce((function(e,n){return(e[n[t]]=n)&&e}),{})},sourceData:function(){var t=this;return this.data.filter((function(e){return-1===t.value.indexOf(e[t.props.key])}))},targetData:function(){var t=this;return\"original\"===this.targetOrder?this.data.filter((function(e){return t.value.indexOf(e[t.props.key])>-1})):this.value.reduce((function(e,n){var r=t.dataObj[n];return r&&e.push(r),e}),[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(t){this.dispatch(\"ElFormItem\",\"el.form.change\",t)}},methods:{getMigratingConfig:function(){return{props:{\"footer-format\":\"footer-format is renamed to format.\"}}},onSourceCheckedChange:function(t,e){this.leftChecked=t,void 0!==e&&this.$emit(\"left-check-change\",t,e)},onTargetCheckedChange:function(t,e){this.rightChecked=t,void 0!==e&&this.$emit(\"right-check-change\",t,e)},addToLeft:function(){var t=this.value.slice();this.rightChecked.forEach((function(e){var n=t.indexOf(e);n>-1&&t.splice(n,1)})),this.$emit(\"input\",t),this.$emit(\"change\",t,\"left\",this.rightChecked)},addToRight:function(){var t=this,e=this.value.slice(),n=[],r=this.props.key;this.data.forEach((function(e){var i=e[r];t.leftChecked.indexOf(i)>-1&&-1===t.value.indexOf(i)&&n.push(i)})),e=\"unshift\"===this.targetOrder?n.concat(e):e.concat(n),this.$emit(\"input\",e),this.$emit(\"change\",e,\"right\",this.leftChecked)},clearQuery:function(t){\"left\"===t?this.$refs.leftPanel.query=\"\":\"right\"===t&&(this.$refs.rightPanel.query=\"\")}}},Rl,[],!1,null,null,null);ql.options.__file=\"packages/transfer/src/main.vue\";var Wl=ql.exports;Wl.install=function(t){t.component(Wl.name,Wl)};var Yl=Wl,Zl=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"section\",{staticClass:\"el-container\",class:{\"is-vertical\":t.isVertical}},[t._t(\"default\")],2)};Zl._withStripped=!0;var Kl=o({name:\"ElContainer\",componentName:\"ElContainer\",props:{direction:String},computed:{isVertical:function(){return\"vertical\"===this.direction||\"horizontal\"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(t){var e=t.componentOptions&&t.componentOptions.tag;return\"el-header\"===e||\"el-footer\"===e})))}}},Zl,[],!1,null,null,null);Kl.options.__file=\"packages/container/src/main.vue\";var Xl=Kl.exports;Xl.install=function(t){t.component(Xl.name,Xl)};var Jl=Xl,Ql=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"header\",{staticClass:\"el-header\",style:{height:t.height}},[t._t(\"default\")],2)};Ql._withStripped=!0;var tc=o({name:\"ElHeader\",componentName:\"ElHeader\",props:{height:{type:String,default:\"60px\"}}},Ql,[],!1,null,null,null);tc.options.__file=\"packages/header/src/main.vue\";var ec=tc.exports;ec.install=function(t){t.component(ec.name,ec)};var nc=ec,rc=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"aside\",{staticClass:\"el-aside\",style:{width:t.width}},[t._t(\"default\")],2)};rc._withStripped=!0;var ic=o({name:\"ElAside\",componentName:\"ElAside\",props:{width:{type:String,default:\"300px\"}}},rc,[],!1,null,null,null);ic.options.__file=\"packages/aside/src/main.vue\";var oc=ic.exports;oc.install=function(t){t.component(oc.name,oc)};var ac=oc,sc=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"main\",{staticClass:\"el-main\"},[t._t(\"default\")],2)};sc._withStripped=!0;var uc=o({name:\"ElMain\",componentName:\"ElMain\"},sc,[],!1,null,null,null);uc.options.__file=\"packages/main/src/main.vue\";var lc=uc.exports;lc.install=function(t){t.component(lc.name,lc)};var cc=lc,hc=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"footer\",{staticClass:\"el-footer\",style:{height:t.height}},[t._t(\"default\")],2)};hc._withStripped=!0;var fc=o({name:\"ElFooter\",componentName:\"ElFooter\",props:{height:{type:String,default:\"60px\"}}},hc,[],!1,null,null,null);fc.options.__file=\"packages/footer/src/main.vue\";var dc=fc.exports;dc.install=function(t){t.component(dc.name,dc)};var pc=dc,mc={name:\"ElTimeline\",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var t=arguments[0],e=this.reverse,n={\"el-timeline\":!0,\"is-reverse\":e},r=this.$slots.default||[];return e&&(r=r.reverse()),t(\"ul\",{class:n},[r])}},vc=o(mc,undefined,undefined,!1,null,null,null);vc.options.__file=\"packages/timeline/src/main.vue\";var gc=vc.exports;gc.install=function(t){t.component(gc.name,gc)};var yc=gc,bc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"li\",{staticClass:\"el-timeline-item\"},[n(\"div\",{staticClass:\"el-timeline-item__tail\"}),t.$slots.dot?t._e():n(\"div\",{staticClass:\"el-timeline-item__node\",class:[\"el-timeline-item__node--\"+(t.size||\"\"),\"el-timeline-item__node--\"+(t.type||\"\")],style:{backgroundColor:t.color}},[t.icon?n(\"i\",{staticClass:\"el-timeline-item__icon\",class:t.icon}):t._e()]),t.$slots.dot?n(\"div\",{staticClass:\"el-timeline-item__dot\"},[t._t(\"dot\")],2):t._e(),n(\"div\",{staticClass:\"el-timeline-item__wrapper\"},[t.hideTimestamp||\"top\"!==t.placement?t._e():n(\"div\",{staticClass:\"el-timeline-item__timestamp is-top\"},[t._v(\"\\n      \"+t._s(t.timestamp)+\"\\n    \")]),n(\"div\",{staticClass:\"el-timeline-item__content\"},[t._t(\"default\")],2),t.hideTimestamp||\"bottom\"!==t.placement?t._e():n(\"div\",{staticClass:\"el-timeline-item__timestamp is-bottom\"},[t._v(\"\\n      \"+t._s(t.timestamp)+\"\\n    \")])])])};bc._withStripped=!0;var _c=o({name:\"ElTimelineItem\",inject:[\"timeline\"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:\"bottom\"},type:String,color:String,size:{type:String,default:\"normal\"},icon:String}},bc,[],!1,null,null,null);_c.options.__file=\"packages/timeline/src/item.vue\";var wc=_c.exports;wc.install=function(t){t.component(wc.name,wc)};var xc=wc,kc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"a\",t._b({class:[\"el-link\",t.type?\"el-link--\"+t.type:\"\",t.disabled&&\"is-disabled\",t.underline&&!t.disabled&&\"is-underline\"],attrs:{href:t.disabled?null:t.href},on:{click:t.handleClick}},\"a\",t.$attrs,!1),[t.icon?n(\"i\",{class:t.icon}):t._e(),t.$slots.default?n(\"span\",{staticClass:\"el-link--inner\"},[t._t(\"default\")],2):t._e(),t.$slots.icon?[t.$slots.icon?t._t(\"icon\"):t._e()]:t._e()],2)};kc._withStripped=!0;var Sc=o({name:\"ElLink\",props:{type:{type:String,default:\"default\"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(t){this.disabled||this.href||this.$emit(\"click\",t)}}},kc,[],!1,null,null,null);Sc.options.__file=\"packages/link/src/main.vue\";var Cc=Sc.exports;Cc.install=function(t){t.component(Cc.name,Cc)};var Ec=Cc,Dc=function(t,e){var n=e._c;return n(\"div\",e._g(e._b({class:[e.data.staticClass,\"el-divider\",\"el-divider--\"+e.props.direction]},\"div\",e.data.attrs,!1),e.listeners),[e.slots().default&&\"vertical\"!==e.props.direction?n(\"div\",{class:[\"el-divider__text\",\"is-\"+e.props.contentPosition]},[e._t(\"default\")],2):e._e()])};Dc._withStripped=!0;var Ac=o({name:\"ElDivider\",props:{direction:{type:String,default:\"horizontal\",validator:function(t){return-1!==[\"horizontal\",\"vertical\"].indexOf(t)}},contentPosition:{type:String,default:\"center\",validator:function(t){return-1!==[\"left\",\"center\",\"right\"].indexOf(t)}}}},Dc,[],!0,null,null,null);Ac.options.__file=\"packages/divider/src/main.vue\";var Oc=Ac.exports;Oc.install=function(t){t.component(Oc.name,Oc)};var Mc=Oc,Tc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-image\"},[t.loading?t._t(\"placeholder\",[n(\"div\",{staticClass:\"el-image__placeholder\"})]):t.error?t._t(\"error\",[n(\"div\",{staticClass:\"el-image__error\"},[t._v(t._s(t.t(\"el.image.error\")))])]):n(\"img\",t._g(t._b({staticClass:\"el-image__inner\",class:{\"el-image__inner--center\":t.alignCenter,\"el-image__preview\":t.preview},style:t.imageStyle,attrs:{src:t.src},on:{click:t.clickHandler}},\"img\",t.$attrs,!1),t.$listeners)),t.preview?[t.showViewer?n(\"image-viewer\",{attrs:{\"z-index\":t.zIndex,\"initial-index\":t.imageIndex,\"on-close\":t.closeViewer,\"url-list\":t.previewSrcList}}):t._e()]:t._e()],2)};Tc._withStripped=!0;var Ic=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"viewer-fade\"}},[n(\"div\",{ref:\"el-image-viewer__wrapper\",staticClass:\"el-image-viewer__wrapper\",style:{\"z-index\":t.viewerZIndex},attrs:{tabindex:\"-1\"}},[n(\"div\",{staticClass:\"el-image-viewer__mask\",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleMaskClick(e)}}}),n(\"span\",{staticClass:\"el-image-viewer__btn el-image-viewer__close\",on:{click:t.hide}},[n(\"i\",{staticClass:\"el-icon-close\"})]),t.isSingle?t._e():[n(\"span\",{staticClass:\"el-image-viewer__btn el-image-viewer__prev\",class:{\"is-disabled\":!t.infinite&&t.isFirst},on:{click:t.prev}},[n(\"i\",{staticClass:\"el-icon-arrow-left\"})]),n(\"span\",{staticClass:\"el-image-viewer__btn el-image-viewer__next\",class:{\"is-disabled\":!t.infinite&&t.isLast},on:{click:t.next}},[n(\"i\",{staticClass:\"el-icon-arrow-right\"})])],n(\"div\",{staticClass:\"el-image-viewer__btn el-image-viewer__actions\"},[n(\"div\",{staticClass:\"el-image-viewer__actions__inner\"},[n(\"i\",{staticClass:\"el-icon-zoom-out\",on:{click:function(e){t.handleActions(\"zoomOut\")}}}),n(\"i\",{staticClass:\"el-icon-zoom-in\",on:{click:function(e){t.handleActions(\"zoomIn\")}}}),n(\"i\",{staticClass:\"el-image-viewer__actions__divider\"}),n(\"i\",{class:t.mode.icon,on:{click:t.toggleMode}}),n(\"i\",{staticClass:\"el-image-viewer__actions__divider\"}),n(\"i\",{staticClass:\"el-icon-refresh-left\",on:{click:function(e){t.handleActions(\"anticlocelise\")}}}),n(\"i\",{staticClass:\"el-icon-refresh-right\",on:{click:function(e){t.handleActions(\"clocelise\")}}})])]),n(\"div\",{staticClass:\"el-image-viewer__canvas\"},t._l(t.urlList,(function(e,r){return r===t.index?n(\"img\",{key:e,ref:\"img\",refInFor:!0,staticClass:\"el-image-viewer__img\",style:t.imgStyle,attrs:{src:t.currentImg},on:{load:t.handleImgLoad,error:t.handleImgError,mousedown:t.handleMouseDown}}):t._e()})),0)],2)])};Ic._withStripped=!0;var Pc=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Fc={CONTAIN:{name:\"contain\",icon:\"el-icon-full-screen\"},ORIGINAL:{name:\"original\",icon:\"el-icon-c-scale-to-original\"}},jc=Object(v.isFirefox)()?\"DOMMouseScroll\":\"mousewheel\",Nc={name:\"elImageViewer\",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0},appendToBody:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:Fc.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var t=this.transform,e=t.scale,n=t.deg,r=t.offsetX,i=t.offsetY,o={transform:\"scale(\"+e+\") rotate(\"+n+\"deg)\",transition:t.enableTransition?\"transform .3s\":\"\",\"margin-left\":r+\"px\",\"margin-top\":i+\"px\"};return this.mode===Fc.CONTAIN&&(o.maxWidth=o.maxHeight=\"100%\"),o},viewerZIndex:function(){var t=_.PopupManager.nextZIndex();return this.zIndex>t?this.zIndex:t}},watch:{index:{handler:function(t){this.reset(),this.onSwitch(t)}},currentImg:function(t){var e=this;this.$nextTick((function(t){e.$refs.img[0].complete||(e.loading=!0)}))}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var t=this;this._keyDownHandler=function(e){switch(e.stopPropagation(),e.keyCode){case 27:t.hide();break;case 32:t.toggleMode();break;case 37:t.prev();break;case 38:t.handleActions(\"zoomIn\");break;case 39:t.next();break;case 40:t.handleActions(\"zoomOut\")}},this._mouseWheelHandler=Object(v.rafThrottle)((function(e){(e.wheelDelta?e.wheelDelta:-e.detail)>0?t.handleActions(\"zoomIn\",{zoomRate:.015,enableTransition:!1}):t.handleActions(\"zoomOut\",{zoomRate:.015,enableTransition:!1})})),Object(vt.on)(document,\"keydown\",this._keyDownHandler),Object(vt.on)(document,jc,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(vt.off)(document,\"keydown\",this._keyDownHandler),Object(vt.off)(document,jc,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(t){this.loading=!1},handleImgError:function(t){this.loading=!1,t.target.alt=\"加载失败\"},handleMouseDown:function(t){var e=this;if(!this.loading&&0===t.button){var n=this.transform,r=n.offsetX,i=n.offsetY,o=t.pageX,a=t.pageY;this._dragHandler=Object(v.rafThrottle)((function(t){e.transform.offsetX=r+t.pageX-o,e.transform.offsetY=i+t.pageY-a})),Object(vt.on)(document,\"mousemove\",this._dragHandler),Object(vt.on)(document,\"mouseup\",(function(t){Object(vt.off)(document,\"mousemove\",e._dragHandler)})),t.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var t=Object.keys(Fc),e=(Object.values(Fc).indexOf(this.mode)+1)%t.length;this.mode=Fc[t[e]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var t=this.urlList.length;this.index=(this.index-1+t)%t}},next:function(){if(!this.isLast||this.infinite){var t=this.urlList.length;this.index=(this.index+1)%t}},handleActions:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=Pc({zoomRate:.2,rotateDeg:90,enableTransition:!0},e),r=n.zoomRate,i=n.rotateDeg,o=n.enableTransition,a=this.transform;switch(t){case\"zoomOut\":a.scale>.2&&(a.scale=parseFloat((a.scale-r).toFixed(3)));break;case\"zoomIn\":a.scale=parseFloat((a.scale+r).toFixed(3));break;case\"clocelise\":a.deg+=i;break;case\"anticlocelise\":a.deg-=i}a.enableTransition=o}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs[\"el-image-viewer__wrapper\"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},Lc=o(Nc,Ic,[],!1,null,null,null);Lc.options.__file=\"packages/image/src/image-viewer.vue\";var Bc=Lc.exports,$c=function(){return void 0!==document.documentElement.style.objectFit},zc=\"none\",Rc=\"contain\",Uc=\"cover\",Vc=\"fill\",Hc=\"scale-down\",Gc=\"\",qc=o({name:\"ElImage\",mixins:[m.a],inheritAttrs:!1,components:{ImageViewer:Bc},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},initialIndex:Number},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var t=this.fit;return!this.$isServer&&t?$c()?{\"object-fit\":t}:this.getImageStyle(t):{}},alignCenter:function(){return!this.$isServer&&!$c()&&this.fit!==Vc},preview:function(){var t=this.previewSrcList;return Array.isArray(t)&&t.length>0},imageIndex:function(){var t=0,e=this.initialIndex;if(e>=0)return t=e;var n=this.previewSrcList.indexOf(this.src);return n>=0?t=n:t}},watch:{src:function(t){this.show&&this.loadImage()},show:function(t){t&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var t=this;if(!this.$isServer){this.loading=!0,this.error=!1;var e=new Image;e.onload=function(n){return t.handleLoad(n,e)},e.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach((function(n){var r=t.$attrs[n];e.setAttribute(n,r)})),e.src=this.src}},handleLoad:function(t,e){this.imageWidth=e.width,this.imageHeight=e.height,this.loading=!1,this.error=!1},handleError:function(t){this.loading=!1,this.error=!0,this.$emit(\"error\",t)},handleLazyLoad:function(){Object(vt.isInContainer)(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var t=this.scrollContainer,e=null;(e=Object(Xs.isHtmlElement)(t)?t:Object(Xs.isString)(t)?document.querySelector(t):Object(vt.getScrollContainer)(this.$el))&&(this._scrollContainer=e,this._lazyLoadHandler=Ou()(200,this.handleLazyLoad),Object(vt.on)(e,\"scroll\",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var t=this._scrollContainer,e=this._lazyLoadHandler;!this.$isServer&&t&&e&&(Object(vt.off)(t,\"scroll\",e),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(t){var e=this.imageWidth,n=this.imageHeight,r=this.$el,i=r.clientWidth,o=r.clientHeight;if(!(e&&n&&i&&o))return{};var a=e/n,s=i/o;t===Hc&&(t=e<i&&n<o?zc:Rc);switch(t){case zc:return{width:\"auto\",height:\"auto\"};case Rc:return a<s?{width:\"auto\"}:{height:\"auto\"};case Uc:return a<s?{height:\"auto\"}:{width:\"auto\"};default:return{}}},clickHandler:function(){this.preview&&(Gc=document.body.style.overflow,document.body.style.overflow=\"hidden\",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=Gc,this.showViewer=!1}}},Tc,[],!1,null,null,null);qc.options.__file=\"packages/image/src/main.vue\";var Wc=qc.exports;Wc.install=function(t){t.component(Wc.name,Wc)};var Yc=Wc,Zc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-calendar\"},[n(\"div\",{staticClass:\"el-calendar__header\"},[n(\"div\",{staticClass:\"el-calendar__title\"},[t._v(\"\\n      \"+t._s(t.i18nDate)+\"\\n    \")]),0===t.validatedRange.length?n(\"div\",{staticClass:\"el-calendar__button-group\"},[n(\"el-button-group\",[n(\"el-button\",{attrs:{type:\"plain\",size:\"mini\"},on:{click:function(e){t.selectDate(\"prev-month\")}}},[t._v(\"\\n          \"+t._s(t.t(\"el.datepicker.prevMonth\"))+\"\\n        \")]),n(\"el-button\",{attrs:{type:\"plain\",size:\"mini\"},on:{click:function(e){t.selectDate(\"today\")}}},[t._v(\"\\n          \"+t._s(t.t(\"el.datepicker.today\"))+\"\\n        \")]),n(\"el-button\",{attrs:{type:\"plain\",size:\"mini\"},on:{click:function(e){t.selectDate(\"next-month\")}}},[t._v(\"\\n          \"+t._s(t.t(\"el.datepicker.nextMonth\"))+\"\\n        \")])],1)],1):t._e()]),0===t.validatedRange.length?n(\"div\",{key:\"no-range\",staticClass:\"el-calendar__body\"},[n(\"date-table\",{attrs:{date:t.date,\"selected-day\":t.realSelectedDay,\"first-day-of-week\":t.realFirstDayOfWeek},on:{pick:t.pickDay}})],1):n(\"div\",{key:\"has-range\",staticClass:\"el-calendar__body\"},t._l(t.validatedRange,(function(e,r){return n(\"date-table\",{key:r,attrs:{date:e[0],\"selected-day\":t.realSelectedDay,range:e,\"hide-header\":0!==r,\"first-day-of-week\":t.realFirstDayOfWeek},on:{pick:t.pickDay}})})),1)])};Zc._withStripped=!0;var Kc=n(20),Xc=n.n(Kc),Jc={props:{selectedDay:String,range:{type:Array,validator:function(t){if(!t||!t.length)return!0;var e=t[0],n=t[1];return Object(Sr.validateRangeInOneMonth)(e,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:[\"elCalendar\"],methods:{toNestedArr:function(t){return Object(Sr.range)(t.length/7).map((function(e,n){var r=7*n;return t.slice(r,r+7)}))},getFormateDate:function(t,e){if(!t||-1===[\"prev\",\"current\",\"next\"].indexOf(e))throw new Error(\"invalid day or type\");var n=this.curMonthDatePrefix;return\"prev\"===e?n=this.prevMonthDatePrefix:\"next\"===e&&(n=this.nextMonthDatePrefix),n+\"-\"+(t=(\"00\"+t).slice(-2))},getCellClass:function(t){var e=t.text,n=t.type,r=[n];if(\"current\"===n){var i=this.getFormateDate(e,n);i===this.selectedDay&&r.push(\"is-selected\"),i===this.formatedToday&&r.push(\"is-today\")}return r},pickDay:function(t){var e=t.text,n=t.type,r=this.getFormateDate(e,n);this.$emit(\"pick\",r)},cellRenderProxy:function(t){var e=t.text,n=t.type,r=this.$createElement,i=this.elCalendar.$scopedSlots.dateCell;if(!i)return r(\"span\",[e]);var o=this.getFormateDate(e,n);return i({date:new Date(o),data:{isSelected:this.selectedDay===o,type:n+\"-month\",day:o}})}},computed:{WEEK_DAYS:function(){return Object(Sr.getI18nSettings)().dayNames},prevMonthDatePrefix:function(){var t=new Date(this.date.getTime());return t.setDate(0),Xc.a.format(t,\"yyyy-MM\")},curMonthDatePrefix:function(){return Xc.a.format(this.date,\"yyyy-MM\")},nextMonthDatePrefix:function(){var t=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Xc.a.format(t,\"yyyy-MM\")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var t=[];if(this.isInRange){var e=this.range,n=e[0],r=e[1],i=Object(Sr.range)(r.getDate()-n.getDate()+1).map((function(t,e){return{text:n.getDate()+e,type:\"current\"}})),o=i.length%7;o=0===o?0:7-o;var a=Object(Sr.range)(o).map((function(t,e){return{text:e+1,type:\"next\"}}));t=i.concat(a)}else{var s=this.date,u=Object(Sr.getFirstDayOfMonth)(s),l=(7+(u=0===u?7:u)-(\"number\"==typeof this.firstDayOfWeek?this.firstDayOfWeek:1))%7,c=Object(Sr.getPrevMonthLastDays)(s,l).map((function(t){return{text:t,type:\"prev\"}})),h=Object(Sr.getMonthDays)(s).map((function(t){return{text:t,type:\"current\"}}));t=[].concat(c,h);var f=Object(Sr.range)(42-t.length).map((function(t,e){return{text:e+1,type:\"next\"}}));t=t.concat(f)}return this.toNestedArr(t)},weekDays:function(){var t=this.firstDayOfWeek,e=this.WEEK_DAYS;return\"number\"!=typeof t||0===t?e.slice():e.slice(t).concat(e.slice(0,t))}},render:function(){var t=this,e=arguments[0],n=this.hideHeader?null:e(\"thead\",[this.weekDays.map((function(t){return e(\"th\",{key:t},[t])}))]);return e(\"table\",{class:{\"el-calendar-table\":!0,\"is-range\":this.isInRange},attrs:{cellspacing:\"0\",cellpadding:\"0\"}},[n,e(\"tbody\",[this.rows.map((function(n,r){return e(\"tr\",{class:{\"el-calendar-table__row\":!0,\"el-calendar-table__row--hide-border\":0===r&&t.hideHeader},key:r},[n.map((function(n,r){return e(\"td\",{key:r,class:t.getCellClass(n),on:{click:t.pickDay.bind(t,n)}},[e(\"div\",{class:\"el-calendar-day\"},[t.cellRenderProxy(n)])])}))])}))])])}},Qc=o(Jc,undefined,undefined,!1,null,null,null);Qc.options.__file=\"packages/calendar/src/date-table.vue\";var th=Qc.exports,eh=[\"prev-month\",\"today\",\"next-month\"],nh=864e5,rh=o({name:\"ElCalendar\",mixins:[m.a],components:{DateTable:th,ElButton:W.a,ElButtonGroup:Z.a},props:{value:[Date,String,Number],range:{type:Array,validator:function(t){return!Array.isArray(t)||2===t.length&&t.every((function(t){return\"string\"==typeof t||\"number\"==typeof t||t instanceof Date}))}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(t){this.realSelectedDay=t},selectDate:function(t){if(-1===eh.indexOf(t))throw new Error(\"invalid type \"+t);var e=\"\";(e=\"prev-month\"===t?this.prevMonthDatePrefix+\"-01\":\"next-month\"===t?this.nextMonthDatePrefix+\"-01\":this.formatedToday)!==this.formatedDate&&this.pickDay(e)},toDate:function(t){if(!t)throw new Error(\"invalid val\");return t instanceof Date?t:new Date(t)},rangeValidator:function(t,e){var n=this.realFirstDayOfWeek,r=e?n:0===n?6:n-1;return t.getDay()===r}},computed:{prevMonthDatePrefix:function(){var t=new Date(this.date.getTime());return t.setDate(0),Xc.a.format(t,\"yyyy-MM\")},curMonthDatePrefix:function(){return Xc.a.format(this.date,\"yyyy-MM\")},nextMonthDatePrefix:function(){var t=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Xc.a.format(t,\"yyyy-MM\")},formatedDate:function(){return Xc.a.format(this.date,\"yyyy-MM-dd\")},i18nDate:function(){var t=this.date.getFullYear(),e=this.date.getMonth()+1;return t+\" \"+this.t(\"el.datepicker.year\")+\" \"+this.t(\"el.datepicker.month\"+e)},formatedToday:function(){return Xc.a.format(this.now,\"yyyy-MM-dd\")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(t){this.selectedDay=t;var e=new Date(t);this.$emit(\"input\",e)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var t=this.selectedDay.split(\"-\");return new Date(t[0],t[1]-1,t[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var t=this,e=this.range;if(!e)return[];if(2===(e=e.reduce((function(e,n,r){var i=t.toDate(n);return t.rangeValidator(i,0===r)&&(e=e.concat(i)),e}),[])).length){var n=e,r=n[0],i=n[1];if(r>i)return[];if(Object(Sr.validateRangeInOneMonth)(r,i))return[[r,i]];var o=[],a=new Date(r.getFullYear(),r.getMonth()+1,1),s=this.toDate(a.getTime()-nh);if(!Object(Sr.validateRangeInOneMonth)(a,i))return[];o.push([r,s]);var u=this.realFirstDayOfWeek,l=a.getDay(),c=0;return l!==u&&(c=0===u?7-l:(c=u-l)>0?c:7+c),(a=this.toDate(a.getTime()+c*nh)).getDate()<i.getDate()&&o.push([a,i]),o}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:\"\",now:new Date}}},Zc,[],!1,null,null,null);rh.options.__file=\"packages/calendar/src/main.vue\";var ih=rh.exports;ih.install=function(t){t.component(ih.name,ih)};var oh=ih,ah=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-fade-in\"}},[t.visible?n(\"div\",{staticClass:\"el-backtop\",style:{right:t.styleRight,bottom:t.styleBottom},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)}}},[t._t(\"default\",[n(\"el-icon\",{attrs:{name:\"caret-top\"}})])],2):t._e()])};ah._withStripped=!0;var sh=function(t){return Math.pow(t,3)},uh={name:\"ElBacktop\",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+\"px\"},styleRight:function(){return this.right+\"px\"}},mounted:function(){this.init(),this.throttledScrollHandler=Ou()(300,this.onScroll),this.container.addEventListener(\"scroll\",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error(\"target is not existed: \"+this.target);this.container=this.el}},onScroll:function(){var t=this.el.scrollTop;this.visible=t>=this.visibilityHeight},handleClick:function(t){this.scrollToTop(),this.$emit(\"click\",t)},scrollToTop:function(){var t=this.el,e=Date.now(),n=t.scrollTop,r=window.requestAnimationFrame||function(t){return setTimeout(t,16)};r((function i(){var o,a=(Date.now()-e)/500;a<1?(t.scrollTop=n*(1-((o=a)<.5?sh(2*o)/2:1-sh(2*(1-o))/2)),r(i)):t.scrollTop=0}))}},beforeDestroy:function(){this.container.removeEventListener(\"scroll\",this.throttledScrollHandler)}},lh=o(uh,ah,[],!1,null,null,null);lh.options.__file=\"packages/backtop/src/main.vue\";var ch=lh.exports;ch.install=function(t){t.component(ch.name,ch)};var hh=ch,fh=function(t,e){return t===window||t===document?document.documentElement[e]:t[e]},dh=function(t){return fh(t,\"offsetHeight\")},ph=\"ElInfiniteScroll\",mh={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},vh=function(t,e){return Object(Xs.isHtmlElement)(t)?(n=mh,Object.keys(n||{}).map((function(t){return[t,n[t]]}))).reduce((function(n,r){var i=r[0],o=r[1],a=o.type,s=o.default,u=t.getAttribute(\"infinite-scroll-\"+i);switch(u=Object(Xs.isUndefined)(e[u])?u:e[u],a){case Number:u=Number(u),u=Number.isNaN(u)?s:u;break;case Boolean:u=Object(Xs.isDefined)(u)?\"false\"!==u&&Boolean(u):s;break;default:u=a(u)}return n[i]=u,n}),{}):{};var n},gh=function(t){return t.getBoundingClientRect().top},yh=function(t){var e=this[ph],n=e.el,r=e.vm,i=e.container,o=e.observer,a=vh(n,r),s=a.distance;if(!a.disabled){var u=i.getBoundingClientRect();if(u.width||u.height){var l=!1;if(i===n){var c=i.scrollTop+function(t){return fh(t,\"clientHeight\")}(i);l=i.scrollHeight-c<=s}else{l=dh(n)+gh(n)-gh(i)-dh(i)+Number.parseFloat(function(t,e){if(t===window&&(t=document.documentElement),1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n}(i,\"borderBottomWidth\"))<=s}l&&Object(Xs.isFunction)(t)?t.call(r):o&&(o.disconnect(),this[ph].observer=null)}}},bh={name:\"InfiniteScroll\",inserted:function(t,e,n){var r=e.value,i=n.context,o=Object(vt.getScrollContainer)(t,!0),a=vh(t,i),s=a.delay,u=a.immediate,l=T()(s,yh.bind(t,r));(t[ph]={el:t,vm:i,container:o,onScroll:l},o)&&(o.addEventListener(\"scroll\",l),u&&((t[ph].observer=new MutationObserver(l)).observe(o,{childList:!0,subtree:!0}),l()))},unbind:function(t){var e=t[ph],n=e.container,r=e.onScroll;n&&n.removeEventListener(\"scroll\",r)},install:function(t){t.directive(bh.name,bh)}},_h=bh,wh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-page-header\"},[n(\"div\",{staticClass:\"el-page-header__left\",on:{click:function(e){t.$emit(\"back\")}}},[n(\"i\",{staticClass:\"el-icon-back\"}),n(\"div\",{staticClass:\"el-page-header__title\"},[t._t(\"title\",[t._v(t._s(t.title))])],2)]),n(\"div\",{staticClass:\"el-page-header__content\"},[t._t(\"content\",[t._v(t._s(t.content))])],2)])};wh._withStripped=!0;var xh=o({name:\"ElPageHeader\",props:{title:{type:String,default:function(){return Object(to.t)(\"el.pageHeader.title\")}},content:String}},wh,[],!1,null,null,null);xh.options.__file=\"packages/page-header/src/main.vue\";var kh=xh.exports;kh.install=function(t){t.component(kh.name,kh)};var Sh=kh,Ch=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{class:[\"el-cascader-panel\",t.border&&\"is-bordered\"],on:{keydown:t.handleKeyDown}},t._l(t.menus,(function(t,e){return n(\"cascader-menu\",{key:e,ref:\"menu\",refInFor:!0,attrs:{index:e,nodes:t}})})),1)};Ch._withStripped=!0;var Eh=n(44),Dh=n.n(Eh),Ah=function(t){return t.stopPropagation()},Oh=o({inject:[\"panel\"],components:{ElCheckbox:cn.a,ElRadio:Dh.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var t=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(e){return t.isInPath(e)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var t=this,e=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?e.lazyLoad(n,(function(){var e=t.isLeaf;if(e||t.handleExpand(),o){var r=!!e&&n.checked;t.handleMultiCheckChange(r)}})):e.handleExpand(n))},handleCheckChange:function(){var t=this.panel,e=this.value,n=this.node;t.handleCheckChange(e),t.handleExpand(n)},handleMultiCheckChange:function(t){this.node.doCheck(t),this.panel.calculateMultiCheckedValue()},isInPath:function(t){var e=this.node;return(t[e.level-1]||{}).uid===e.uid},renderPrefix:function(t){var e=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(t):i?this.renderRadio(t):e&&n?this.renderCheckIcon(t):null},renderPostfix:function(t){var e=this.node,n=this.isLeaf;return e.loading?this.renderLoadingIcon(t):n?null:this.renderExpandIcon(t)},renderCheckbox:function(t){var e=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=Ah),t(\"el-checkbox\",Os()([{attrs:{value:e.checked,indeterminate:e.indeterminate,disabled:r}},i]))},renderRadio:function(t){var e=this.checkedValue,n=this.value,r=this.isDisabled;return Object(v.isEqual)(n,e)&&(n=e),t(\"el-radio\",{attrs:{value:e,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:Ah}},[t(\"span\")])},renderCheckIcon:function(t){return t(\"i\",{class:\"el-icon-check el-cascader-node__prefix\"})},renderLoadingIcon:function(t){return t(\"i\",{class:\"el-icon-loading el-cascader-node__postfix\"})},renderExpandIcon:function(t){return t(\"i\",{class:\"el-icon-arrow-right el-cascader-node__postfix\"})},renderContent:function(t){var e=this.panel,n=this.node,r=e.renderLabelFn;return t(\"span\",{class:\"el-cascader-node__label\"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(t){var e=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,u=this.nodeId,l=s.expandTrigger,c=s.checkStrictly,h=s.multiple,f=!c&&a,d={on:{}};return\"click\"===l?d.on.click=this.handleExpand:(d.on.mouseenter=function(t){e.handleExpand(),e.$emit(\"expand\",t)},d.on.focus=function(t){e.handleExpand(),e.$emit(\"expand\",t)}),!o||a||c||h||(d.on.click=this.handleCheckChange),t(\"li\",Os()([{attrs:{role:\"menuitem\",id:u,\"aria-expanded\":n,tabindex:f?null:-1},class:{\"el-cascader-node\":!0,\"is-selectable\":c,\"in-active-path\":n,\"in-checked-path\":r,\"is-active\":i,\"is-disabled\":f}},d]),[this.renderPrefix(t),this.renderContent(t),this.renderPostfix(t)])}},undefined,undefined,!1,null,null,null);Oh.options.__file=\"packages/cascader-panel/src/cascader-node.vue\";var Mh=Oh.exports,Th=o({name:\"ElCascaderMenu\",mixins:[m.a],inject:[\"panel\"],components:{ElScrollbar:B.a,CascaderNode:Mh},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(v.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return\"cascader-menu-\"+this.id+\"-\"+this.index}},methods:{handleExpand:function(t){this.activeNode=t.target},handleMouseMove:function(t){var e=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(e&&r)if(e.contains(t.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect().left,o=t.clientX-i,a=this.$el,s=a.offsetWidth,u=a.offsetHeight,l=e.offsetTop,c=l+e.offsetHeight;r.innerHTML='\\n          <path style=\"pointer-events: auto;\" fill=\"transparent\" d=\"M'+o+\" \"+l+\" L\"+s+\" 0 V\"+l+' Z\" />\\n          <path style=\"pointer-events: auto;\" fill=\"transparent\" d=\"M'+o+\" \"+c+\" L\"+s+\" \"+u+\" V\"+c+' Z\" />\\n        '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var t=this.$refs.hoverZone;t&&(t.innerHTML=\"\")},renderEmptyText:function(t){return t(\"div\",{class:\"el-cascader-menu__empty-text\"},[this.t(\"el.cascader.noData\")])},renderNodeList:function(t){var e=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var o=n.hasChildren;return t(\"cascader-node\",Os()([{key:n.uid,attrs:{node:n,\"node-id\":e+\"-\"+i,\"aria-haspopup\":o,\"aria-owns\":o?e:null}},r]))}));return[].concat(i,[n?t(\"svg\",{ref:\"hoverZone\",class:\"el-cascader-menu__hover-zone\"}):null])}},render:function(t){var e=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),t(\"el-scrollbar\",Os()([{attrs:{tag:\"ul\",role:\"menu\",id:n,\"wrap-class\":\"el-cascader-menu__wrap\",\"view-class\":{\"el-cascader-menu__list\":!0,\"is-empty\":e}},class:\"el-cascader-menu\"},r]),[e?this.renderEmptyText(t):this.renderNodeList(t)])}},undefined,undefined,!1,null,null,null);Th.options.__file=\"packages/cascader-panel/src/cascader-menu.vue\";var Ih=Th.exports,Ph=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var Fh=0,jh=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.data=e,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=Fh++,this.initState(),this.initChildren()}return t.prototype.initState=function(){var t=this.config,e=t.value,n=t.label;this.value=this.data[e],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(t){return t.value})),this.pathLabels=this.pathNodes.map((function(t){return t.label})),this.loading=!1,this.loaded=!1},t.prototype.initChildren=function(){var e=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new t(r,n,e)}))},t.prototype.calculatePathNodes=function(){for(var t=[this],e=this.parent;e;)t.unshift(e),e=e.parent;return t},t.prototype.getPath=function(){return this.path},t.prototype.getValue=function(){return this.value},t.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},t.prototype.getText=function(t,e){return t?this.pathLabels.join(e):this.label},t.prototype.isSameNode=function(t){var e=this.getValueByOption();return this.config.multiple&&Array.isArray(t)?t.some((function(t){return Object(v.isEqual)(t,e)})):Object(v.isEqual)(t,e)},t.prototype.broadcast=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=\"onParent\"+Object(v.capitalize)(t);this.children.forEach((function(e){e&&(e.broadcast.apply(e,[t].concat(n)),e[i]&&e[i].apply(e,n))}))},t.prototype.emit=function(t){var e=this.parent,n=\"onChild\"+Object(v.capitalize)(t);if(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[n]&&e[n].apply(e,i),e.emit.apply(e,[t].concat(i))}},t.prototype.onParentCheck=function(t){this.isDisabled||this.setCheckState(t)},t.prototype.onChildCheck=function(){var t=this.children.filter((function(t){return!t.isDisabled})),e=!!t.length&&t.every((function(t){return t.checked}));this.setCheckState(e)},t.prototype.setCheckState=function(t){var e=this.children.length,n=this.children.reduce((function(t,e){return t+(e.checked?1:e.indeterminate?.5:0)}),0);this.checked=t,this.indeterminate=n!==e&&n>0},t.prototype.syncCheckState=function(t){var e=this.getValueByOption(),n=this.isSameNode(t,e);this.doCheck(n)},t.prototype.doCheck=function(t){this.checked!==t&&(this.config.checkStrictly?this.checked=t:(this.broadcast(\"check\",t),this.setCheckState(t),this.emit(\"check\")))},Ph(t,[{key:\"isDisabled\",get:function(){var t=this.data,e=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return t[r]||!i&&e&&e.isDisabled}},{key:\"isLeaf\",get:function(){var t=this.data,e=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(Gt.isDef)(t[a])?t[a]:!!e&&!r.length;return this.hasChildren=!s,s}return!n}}]),t}(),Nh=jh;var Lh=function t(e,n){return e.reduce((function(e,r){return r.isLeaf?e.push(r):(!n&&e.push(r),e=e.concat(t(r.children,n))),e}),[])},Bh=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.config=n,this.initNodes(e)}return t.prototype.initNodes=function(t){var e=this;t=Object(v.coerceTruthyValueToArray)(t),this.nodes=t.map((function(t){return new Nh(t,e.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},t.prototype.appendNode=function(t,e){var n=new Nh(t,this.config,e);(e?e.children:this.nodes).push(n)},t.prototype.appendNodes=function(t,e){var n=this;(t=Object(v.coerceTruthyValueToArray)(t)).forEach((function(t){return n.appendNode(t,e)}))},t.prototype.getNodes=function(){return this.nodes},t.prototype.getFlattedNodes=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?this.leafNodes:this.flattedNodes;return e?n:Lh(this.nodes,t)},t.prototype.getNodeByValue=function(t){var e=this.getFlattedNodes(!1,!this.config.lazy).filter((function(e){return Object(v.valueEquals)(e.path,t)||e.value===t}));return e&&e.length?e[0]:null},t}(),$h=Bh,zh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Rh=el.a.keys,Uh={expandTrigger:\"click\",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:v.noop,value:\"value\",label:\"label\",children:\"children\",leaf:\"leaf\",disabled:\"disabled\",hoverThreshold:500},Vh=function(t){return!t.getAttribute(\"aria-owns\")},Hh=function(t,e){var n=t.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex=\"-1\"]');return r[Array.prototype.indexOf.call(r,t)+e]||null}return null},Gh=function(t,e){if(t){var n=t.id.split(\"-\");return Number(n[n.length-2])}},qh=function(t){t&&(t.focus(),!Vh(t)&&t.click())},Wh=o({name:\"ElCascaderPanel\",components:{CascaderMenu:Ih},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return Ht()(zh({},Uh),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return\"hover\"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(t){Object(v.isEqual)(t,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit(\"input\",t),this.$emit(\"change\",t))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var t=this.config,e=this.options;t.lazy&&Object(v.isEmpty)(e)?this.lazyLoad():(this.store=new $h(e,t),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var t=this.value,e=this.checkedValue;Object(v.isEqual)(t,e)||(this.activePath=[],this.checkedValue=t,this.syncMenuState())},syncMenuState:function(){var t=this.multiple,e=this.checkStrictly;this.syncActivePath(),t&&this.syncMultiCheckState(),e&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var t=this;this.getFlattedNodes(this.leafOnly).forEach((function(e){e.syncCheckState(t.checkedValue)}))},isEmptyValue:function(t){var e=this.multiple,n=this.config.emitPath;return!(!e&&!n)&&Object(v.isEmpty)(t)},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(v.isEmpty)(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[e.getNodes()];else{var o=n?i[0]:i,a=((this.getNodeByValue(o)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var s=r.map((function(e){return t.getNodeByValue(e.getValue())}));this.expandNodes(s)}},expandNodes:function(t){var e=this;t.forEach((function(t){return e.handleExpand(t,!0)}))},calculateCheckedNodePaths:function(){var t=this,e=this.checkedValue,n=this.multiple?Object(v.coerceTruthyValueToArray)(e):[e];this.checkedNodePaths=n.map((function(e){var n=t.getNodeByValue(e);return n?n.pathNodes:[]}))},handleKeyDown:function(t){var e=t.target;switch(t.keyCode){case Rh.up:var n=Hh(e,-1);qh(n);break;case Rh.down:var r=Hh(e,1);qh(r);break;case Rh.left:var i=this.$refs.menu[Gh(e)-1];if(i){var o=i.$el.querySelector('.el-cascader-node[aria-expanded=\"true\"]');qh(o)}break;case Rh.right:var a=this.$refs.menu[Gh(e)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex=\"-1\"]');qh(s)}break;case Rh.enter:!function(t){if(t){var e=t.querySelector(\"input\");e?e.click():Vh(t)&&t.click()}}(e);break;case Rh.esc:case Rh.tab:this.$emit(\"close\");break;default:return}},handleExpand:function(t,e){var n=this.activePath,r=t.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(t.isLeaf||(i.push(t),o.push(t.children)),this.activePath=i,this.menus=o,!e){var a=i.map((function(t){return t.getValue()})),s=n.map((function(t){return t.getValue()}));Object(v.valueEquals)(a,s)||(this.$emit(\"active-item-change\",a),this.$emit(\"expand-change\",a))}},handleCheckChange:function(t){this.checkedValue=t},lazyLoad:function(t,e){var n=this,r=this.config;t||(t=t||{root:!0,level:0},this.store=new $h([],r),this.menus=[this.store.getNodes()]),t.loading=!0;r.lazyLoad(t,(function(r){var i=t.root?null:t;if(r&&r.length&&n.store.appendNodes(r,i),t.loading=!1,t.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(t){return t[a]===o})).length>0){var u=n.store.getNodeByValue(o);u.data[s]||n.lazyLoad(u,(function(){n.handleExpand(u)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}e&&e(r)}))},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(t){return t.getValueByOption()}))},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach((function(t){var e=t.$el;if(e){var n=e.querySelector(\".el-scrollbar__wrap\"),r=e.querySelector(\".el-cascader-node.is-active\")||e.querySelector(\".el-cascader-node.in-active-path\");Ve()(n,r)}}))},getNodeByValue:function(t){return this.store.getNodeByValue(t)},getFlattedNodes:function(t){var e=!this.config.lazy;return this.store.getFlattedNodes(t,e)},getCheckedNodes:function(t){var e=this.checkedValue;return this.multiple?this.getFlattedNodes(t).filter((function(t){return t.checked})):this.isEmptyValue(e)?[]:[this.getNodeByValue(e)]},clearCheckedNodes:function(){var t=this.config,e=this.leafOnly,n=t.multiple,r=t.emitPath;n?(this.getCheckedNodes(e).filter((function(t){return!t.isDisabled})).forEach((function(t){return t.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Ch,[],!1,null,null,null);Wh.options.__file=\"packages/cascader-panel/src/cascader-panel.vue\";var Yh=Wh.exports;Yh.install=function(t){t.component(Yh.name,Yh)};var Zh=Yh,Kh={name:\"ElAvatar\",props:{size:{type:[Number,String],validator:function(t){return\"string\"==typeof t?[\"large\",\"medium\",\"small\"].includes(t):\"number\"==typeof t}},shape:{type:String,default:\"circle\",validator:function(t){return[\"circle\",\"square\"].includes(t)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:\"cover\"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var t=this.size,e=this.icon,n=this.shape,r=[\"el-avatar\"];return t&&\"string\"==typeof t&&r.push(\"el-avatar--\"+t),e&&r.push(\"el-avatar--icon\"),n&&r.push(\"el-avatar--\"+n),r.join(\" \")}},methods:{handleError:function(){var t=this.error;!1!==(t?t():void 0)&&(this.isImageExist=!1)},renderAvatar:function(){var t=this.$createElement,e=this.icon,n=this.src,r=this.alt,i=this.isImageExist,o=this.srcSet,a=this.fit;return i&&n?t(\"img\",{attrs:{src:n,alt:r,srcSet:o},on:{error:this.handleError},style:{\"object-fit\":a}}):e?t(\"i\",{class:e}):this.$slots.default}},render:function(){var t=arguments[0],e=this.avatarClass,n=this.size;return t(\"span\",{class:e,style:\"number\"==typeof n?{height:n+\"px\",width:n+\"px\",lineHeight:n+\"px\"}:{}},[this.renderAvatar()])}},Xh=o(Kh,undefined,undefined,!1,null,null,null);Xh.options.__file=\"packages/avatar/src/main.vue\";var Jh=Xh.exports;Jh.install=function(t){t.component(Jh.name,Jh)};var Qh=Jh,tf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"transition\",{attrs:{name:\"el-drawer-fade\"},on:{\"after-enter\":t.afterEnter,\"after-leave\":t.afterLeave}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-drawer__wrapper\",attrs:{tabindex:\"-1\"}},[n(\"div\",{staticClass:\"el-drawer__container\",class:t.visible&&\"el-drawer__open\",attrs:{role:\"document\",tabindex:\"-1\"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n(\"div\",{ref:\"drawer\",staticClass:\"el-drawer\",class:[t.direction,t.customClass],style:t.isHorizontal?\"width: \"+t.drawerSize:\"height: \"+t.drawerSize,attrs:{\"aria-modal\":\"true\",\"aria-labelledby\":\"el-drawer__title\",\"aria-label\":t.title,role:\"dialog\",tabindex:\"-1\"}},[t.withHeader?n(\"header\",{staticClass:\"el-drawer__header\",attrs:{id:\"el-drawer__title\"}},[t._t(\"title\",[n(\"span\",{attrs:{role:\"heading\",title:t.title}},[t._v(t._s(t.title))])]),t.showClose?n(\"button\",{staticClass:\"el-drawer__close-btn\",attrs:{\"aria-label\":\"close \"+(t.title||\"drawer\"),type:\"button\"},on:{click:t.closeDrawer}},[n(\"i\",{staticClass:\"el-dialog__close el-icon el-icon-close\"})]):t._e()],2):t._e(),t.rendered?n(\"section\",{staticClass:\"el-drawer__body\"},[t._t(\"default\")],2):t._e()])])])])};tf._withStripped=!0;var ef=o({name:\"ElDrawer\",mixins:[w.a,C.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:\"\"},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:\"rtl\",validator:function(t){return-1!==[\"ltr\",\"rtl\",\"ttb\",\"btt\"].indexOf(t)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:[Number,String],default:\"30%\"},title:{type:String,default:\"\"},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return\"rtl\"===this.direction||\"ltr\"===this.direction},drawerSize:function(){return\"number\"==typeof this.size?this.size+\"px\":this.size}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(t){var e=this;t?(this.closed=!1,this.$emit(\"open\"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||(this.$emit(\"close\"),!0===this.destroyOnClose&&(this.rendered=!1)),this.$nextTick((function(){e.prevActiveElement&&e.prevActiveElement.focus()})))}},methods:{afterEnter:function(){this.$emit(\"opened\")},afterLeave:function(){this.$emit(\"closed\")},hide:function(t){!1!==t&&(this.$emit(\"update:visible\",!1),this.$emit(\"close\"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){\"function\"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},tf,[],!1,null,null,null);ef.options.__file=\"packages/drawer/src/main.vue\";var nf=ef.exports;nf.install=function(t){t.component(nf.name,nf)};var rf=nf,of=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-statistic\"},[t.title||t.$slots.title?n(\"div\",{staticClass:\"head\"},[t._t(\"title\",[n(\"span\",{staticClass:\"title\"},[t._v(\"\\n        \"+t._s(t.title)+\"\\n      \")])])],2):t._e(),n(\"div\",{staticClass:\"con\"},[t.prefix||t.$slots.prefix?n(\"span\",{staticClass:\"prefix\"},[t._t(\"prefix\",[t._v(\"\\n        \"+t._s(t.prefix)+\"\\n      \")])],2):t._e(),n(\"span\",{staticClass:\"number\",style:t.valueStyle},[t._t(\"formatter\",[t._v(\" \"+t._s(t.disposeValue))])],2),t.suffix||t.$slots.suffix?n(\"span\",{staticClass:\"suffix\"},[t._t(\"suffix\",[t._v(\"\\n        \"+t._s(t.suffix)+\"\\n      \")])],2):t._e()])])};of._withStripped=!0;var af=n(28),sf={name:\"ElStatistic\",data:function(){return{disposeValue:\"\",timeTask:null,REFRESH_INTERVAL:1e3/30}},props:{decimalSeparator:{type:String,default:\".\"},groupSeparator:{type:String,default:\"\"},precision:{type:Number,default:null},value:{type:[String,Number,Date],default:\"\"},prefix:{type:String,default:\"\"},suffix:{type:String,default:\"\"},title:{type:[String,Number],default:\"\"},timeIndices:{type:Boolean,default:!1},valueStyle:{type:Object,default:function(){return{}}},format:{type:String,default:\"HH:mm:ss:SSS\"},rate:{type:Number,default:1e3}},created:function(){this.branch()},watch:{value:function(){this.branch()},groupSeparator:function(){this.dispose()},mulriple:function(){this.dispose()}},methods:{branch:function(){var t=this.timeIndices,e=this.countDown,n=this.dispose;t?e(this.value.valueOf()||this.value):n()},magnification:function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\",\",n=String(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3).length;return t.replace(new RegExp(\"(\\\\d)(?=(\\\\d{\"+(n-1)+\"})+$)\",\"g\"),\"$1\"+e)},dispose:function(){var t=this.value,e=this.rate,n=this.groupSeparator;if(!Object(af.isNumber)(t))return!1;this.precision&&(t=t.toFixed(this.precision));var r=String(t).split(\".\"),i=r[0],o=r[1];n&&(i=this.magnification(i,e,n));var a=\"\"+i+(o?this.decimalSeparator+o:\"\");return this.disposeValue=a,a},diffDate:function(t,e){return Math.max(t-e,0)},suspend:function(t){return t?this.timeTask&&(clearInterval(this.timeTask),this.timeTask=null):this.branch(),this.disposeValue},formatTimeStr:function(t){var e=this.format,n=/\\[[^\\]]*]/g,r=(e.match(n)||[]).map((function(t){return t.slice(1,-1)})),i=Object(af.reduce)([[\"Y\",31536e6],[\"M\",2592e6],[\"D\",864e5],[\"H\",36e5],[\"m\",6e4],[\"s\",1e3],[\"S\",1]],(function(e,n){var r=n[0];return e.replace(new RegExp(r+\"+\",\"g\"),(function(e){var r=Object(af.chain)(t).divide(n[1]).floor(0).value();return t-=Object(af.multiply)(r,n[1]),Object(af.padStart)(String(r),String(e).length,0)}))}),e),o=0;return i.replace(n,(function(){var t=r[o];return o+=1,t}))},stopTime:function(t){var e=!0;return t?(this.$emit(\"change\",t),e=!1):(e=!0,this.suspend(!0),this.$emit(\"finish\",!0)),e},countDown:function(t){var e=this.REFRESH_INTERVAL,n=this.timeTask,r=this.diffDate,i=this.formatTimeStr,o=this.stopTime,a=this.suspend;if(!n){var s=this;this.timeTask=setInterval((function(){var e=r(t,Date.now());s.disposeValue=i(e),o(e)}),e),this.$once(\"hook:beforeDestroy\",(function(){a(!0)}))}}}},uf=o(sf,of,[],!1,null,null,null);uf.options.__file=\"packages/statistic/src/main.vue\";var lf=uf.exports;lf.install=function(t){t.component(lf.name,lf)};var cf=lf,hf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"el-popover\",t._b({attrs:{trigger:\"click\"},model:{value:t.visible,callback:function(e){t.visible=e},expression:\"visible\"}},\"el-popover\",t.$attrs,!1),[n(\"div\",{staticClass:\"el-popconfirm\"},[n(\"p\",{staticClass:\"el-popconfirm__main\"},[t.hideIcon?t._e():n(\"i\",{staticClass:\"el-popconfirm__icon\",class:t.icon,style:{color:t.iconColor}}),t._v(\"\\n      \"+t._s(t.title)+\"\\n    \")]),n(\"div\",{staticClass:\"el-popconfirm__action\"},[n(\"el-button\",{attrs:{size:\"mini\",type:t.cancelButtonType},on:{click:t.cancel}},[t._v(\"\\n        \"+t._s(t.displayCancelButtonText)+\"\\n      \")]),n(\"el-button\",{attrs:{size:\"mini\",type:t.confirmButtonType},on:{click:t.confirm}},[t._v(\"\\n        \"+t._s(t.displayConfirmButtonText)+\"\\n      \")])],1)]),t._t(\"reference\",null,{slot:\"reference\"})],2)};hf._withStripped=!0;var ff=n(45),df=o({name:\"ElPopconfirm\",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:\"primary\"},cancelButtonType:{type:String,default:\"text\"},icon:{type:String,default:\"el-icon-question\"},iconColor:{type:String,default:\"#f90\"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:n.n(ff).a,ElButton:W.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(to.t)(\"el.popconfirm.confirmButtonText\")},displayCancelButtonText:function(){return this.cancelButtonText||Object(to.t)(\"el.popconfirm.cancelButtonText\")}},methods:{confirm:function(){this.visible=!1,this.$emit(\"confirm\")},cancel:function(){this.visible=!1,this.$emit(\"cancel\")}}},hf,[],!1,null,null,null);df.options.__file=\"packages/popconfirm/src/main.vue\";var pf=df.exports;pf.install=function(t){t.component(pf.name,pf)};var mf=pf,vf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",[t.uiLoading?[n(\"div\",t._b({class:[\"el-skeleton\",t.animated?\"is-animated\":\"\"]},\"div\",t.$attrs,!1),[t._l(t.count,(function(e){return[t.loading?t._t(\"template\",t._l(t.rows,(function(r){return n(\"el-skeleton-item\",{key:e+\"-\"+r,class:{\"el-skeleton__paragraph\":1!==r,\"is-first\":1===r,\"is-last\":r===t.rows&&t.rows>1},attrs:{variant:\"p\"}})}))):t._e()]}))],2)]:[t._t(\"default\",null,null,t.$attrs)]],2)};vf._withStripped=!0;var gf={name:\"ElSkeleton\",props:{animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:4},loading:{type:Boolean,default:!0},throttle:{type:Number,default:0}},watch:{loading:{handler:function(t){var e=this;this.throttle<=0?this.uiLoading=t:t?(clearTimeout(this.timeoutHandle),this.timeoutHandle=setTimeout((function(){e.uiLoading=e.loading}),this.throttle)):this.uiLoading=t},immediate:!0}},data:function(){return{uiLoading:this.throttle<=0&&this.loading}}},yf=o(gf,vf,[],!1,null,null,null);yf.options.__file=\"packages/skeleton/src/index.vue\";var bf=yf.exports;bf.install=function(t){t.component(bf.name,bf)};var _f=bf,wf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{class:[\"el-skeleton__item\",\"el-skeleton__\"+t.variant]},[\"image\"===t.variant?n(\"img-placeholder\"):t._e()],1)};wf._withStripped=!0;var xf=function(){var t=this.$createElement,e=this._self._c||t;return e(\"svg\",{attrs:{viewBox:\"0 0 1024 1024\",xmlns:\"http://www.w3.org/2000/svg\"}},[e(\"path\",{attrs:{d:\"M64 896V128h896v768H64z m64-128l192-192 116.352 116.352L640 448l256 307.2V192H128v576z m224-480a96 96 0 1 1-0.064 192.064A96 96 0 0 1 352 288z\"}})])};xf._withStripped=!0;var kf=o({name:\"ImgPlaceholder\"},xf,[],!1,null,null,null);kf.options.__file=\"packages/skeleton/src/img-placeholder.vue\";var Sf,Cf=kf.exports,Ef=o({name:\"ElSkeletonItem\",props:{variant:{type:String,default:\"text\"}},components:(Sf={},Sf[Cf.name]=Cf,Sf)},wf,[],!1,null,null,null);Ef.options.__file=\"packages/skeleton/src/item.vue\";var Df=Ef.exports;Df.install=function(t){t.component(Df.name,Df)};var Af=Df,Of=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-empty\"},[n(\"div\",{staticClass:\"el-empty__image\",style:t.imageStyle},[t.image?n(\"img\",{attrs:{src:t.image,ondragstart:\"return false\"}}):t._t(\"image\",[n(\"img-empty\")])],2),n(\"div\",{staticClass:\"el-empty__description\"},[t.$slots.description?t._t(\"description\"):n(\"p\",[t._v(t._s(t.emptyDescription))])],2),t.$slots.default?n(\"div\",{staticClass:\"el-empty__bottom\"},[t._t(\"default\")],2):t._e()])};Of._withStripped=!0;var Mf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"svg\",{attrs:{viewBox:\"0 0 79 86\",version:\"1.1\",xmlns:\"http://www.w3.org/2000/svg\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\"}},[n(\"defs\",[n(\"linearGradient\",{attrs:{id:\"linearGradient-1-\"+t.id,x1:\"38.8503086%\",y1:\"0%\",x2:\"61.1496914%\",y2:\"100%\"}},[n(\"stop\",{attrs:{\"stop-color\":\"#FCFCFD\",offset:\"0%\"}}),n(\"stop\",{attrs:{\"stop-color\":\"#EEEFF3\",offset:\"100%\"}})],1),n(\"linearGradient\",{attrs:{id:\"linearGradient-2-\"+t.id,x1:\"0%\",y1:\"9.5%\",x2:\"100%\",y2:\"90.5%\"}},[n(\"stop\",{attrs:{\"stop-color\":\"#FCFCFD\",offset:\"0%\"}}),n(\"stop\",{attrs:{\"stop-color\":\"#E9EBEF\",offset:\"100%\"}})],1),n(\"rect\",{attrs:{id:\"path-3-\"+t.id,x:\"0\",y:\"0\",width:\"17\",height:\"36\"}})],1),n(\"g\",{attrs:{id:\"Illustrations\",stroke:\"none\",\"stroke-width\":\"1\",fill:\"none\",\"fill-rule\":\"evenodd\"}},[n(\"g\",{attrs:{id:\"B-type\",transform:\"translate(-1268.000000, -535.000000)\"}},[n(\"g\",{attrs:{id:\"Group-2\",transform:\"translate(1268.000000, 535.000000)\"}},[n(\"path\",{attrs:{id:\"Oval-Copy-2\",d:\"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z\",fill:\"#F7F8FC\"}}),n(\"polygon\",{attrs:{id:\"Rectangle-Copy-14\",fill:\"#E5E7E9\",transform:\"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) \",points:\"13 58 53 58 42 45 2 45\"}}),n(\"g\",{attrs:{id:\"Group-Copy\",transform:\"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)\"}},[n(\"polygon\",{attrs:{id:\"Rectangle-Copy-10\",fill:\"#E5E7E9\",transform:\"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) \",points:\"2.84078316e-14 3 18 3 23 7 5 7\"}}),n(\"polygon\",{attrs:{id:\"Rectangle-Copy-11\",fill:\"#EDEEF2\",points:\"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43\"}}),n(\"rect\",{attrs:{id:\"Rectangle-Copy-12\",fill:\"url(#linearGradient-1-\"+t.id+\")\",transform:\"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) \",x:\"38\",y:\"7\",width:\"17\",height:\"36\"}}),n(\"polygon\",{attrs:{id:\"Rectangle-Copy-13\",fill:\"#F8F9FB\",transform:\"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) \",points:\"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12\"}})]),n(\"rect\",{attrs:{id:\"Rectangle-Copy-15\",fill:\"url(#linearGradient-2-\"+t.id+\")\",x:\"13\",y:\"45\",width:\"40\",height:\"36\"}}),n(\"g\",{attrs:{id:\"Rectangle-Copy-17\",transform:\"translate(53.000000, 45.000000)\"}},[n(\"mask\",{attrs:{id:\"mask-4-\"+t.id,fill:\"white\"}},[n(\"use\",{attrs:{\"xlink:href\":\"#path-3-\"+t.id}})]),n(\"use\",{attrs:{id:\"Mask\",fill:\"#E0E3E9\",transform:\"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) \",\"xlink:href\":\"#path-3-\"+t.id}}),n(\"polygon\",{attrs:{id:\"Rectangle-Copy\",fill:\"#D5D7DE\",mask:\"url(#mask-4-\"+t.id+\")\",transform:\"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) \",points:\"7 0 24 0 20 18 -1.70530257e-13 16\"}})]),n(\"polygon\",{attrs:{id:\"Rectangle-Copy-18\",fill:\"#F8F9FB\",transform:\"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) \",points:\"62 45 79 45 70 58 53 58\"}})])])])])};Mf._withStripped=!0;var Tf=0,If=o({name:\"ImgEmpty\",data:function(){return{id:++Tf}}},Mf,[],!1,null,null,null);If.options.__file=\"packages/empty/src/img-empty.vue\";var Pf,Ff=If.exports,jf=o({name:\"ElEmpty\",components:(Pf={},Pf[Ff.name]=Ff,Pf),props:{image:{type:String,default:\"\"},imageSize:Number,description:{type:String,default:\"\"}},computed:{emptyDescription:function(){return this.description||Object(to.t)(\"el.empty.description\")},imageStyle:function(){return{width:this.imageSize?this.imageSize+\"px\":\"\"}}}},Of,[],!1,null,null,null);jf.options.__file=\"packages/empty/src/index.vue\";var Nf=jf.exports;Nf.install=function(t){t.component(Nf.name,Nf)};var Lf,Bf=Nf,$f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zf={name:\"ElDescriptionsRow\",props:{row:{type:Array}},inject:[\"elDescriptions\"],render:function(t){var e=this.elDescriptions,n=(this.row||[]).map((function(t){return $f({},t,{label:t.slots.label||t.props.label},[\"labelClassName\",\"contentClassName\",\"labelStyle\",\"contentStyle\"].reduce((function(n,r){return n[r]=t.props[r]||e[r],n}),{}))}));return\"vertical\"===e.direction?t(\"tbody\",[t(\"tr\",{class:\"el-descriptions-row\"},[n.map((function(n){var r;return t(\"th\",{class:(r={\"el-descriptions-item__cell\":!0,\"el-descriptions-item__label\":!0,\"has-colon\":!e.border&&e.colon,\"is-bordered-label\":e.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:n.props.span}},[n.label])}))]),t(\"tr\",{class:\"el-descriptions-row\"},[n.map((function(e){return t(\"td\",{class:[\"el-descriptions-item__cell\",\"el-descriptions-item__content\",e.contentClassName],style:e.contentStyle,attrs:{colSpan:e.props.span}},[e.slots.default])}))])]):e.border?t(\"tbody\",[t(\"tr\",{class:\"el-descriptions-row\"},[n.map((function(n){var r;return[t(\"th\",{class:(r={\"el-descriptions-item__cell\":!0,\"el-descriptions-item__label\":!0,\"is-bordered-label\":e.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:\"1\"}},[n.label]),t(\"td\",{class:[\"el-descriptions-item__cell\",\"el-descriptions-item__content\",n.contentClassName],style:n.contentStyle,attrs:{colSpan:2*n.props.span-1}},[n.slots.default])]}))])]):t(\"tbody\",[t(\"tr\",{class:\"el-descriptions-row\"},[n.map((function(n){var r;return t(\"td\",{class:\"el-descriptions-item el-descriptions-item__cell\",attrs:{colSpan:n.props.span}},[t(\"div\",{class:\"el-descriptions-item__container\"},[t(\"span\",{class:(r={\"el-descriptions-item__label\":!0,\"has-colon\":e.colon},r[n.labelClassName]=!0,r),style:n.labelStyle},[n.label]),t(\"span\",{class:[\"el-descriptions-item__content\",n.contentClassName],style:n.contentStyle},[n.slots.default])])])}))])])}},Rf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Uf={name:\"ElDescriptions\",components:(Lf={},Lf[zf.name]=zf,Lf),props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:\"horizontal\"},size:{type:String},title:{type:String,default:\"\"},extra:{type:String,default:\"\"},labelStyle:{type:Object},contentStyle:{type:Object},labelClassName:{type:String,default:\"\"},contentClassName:{type:String,default:\"\"},colon:{type:Boolean,default:!0}},computed:{descriptionsSize:function(){return this.size||(this.$ELEMENT||{}).size}},provide:function(){return{elDescriptions:this}},methods:{getOptionProps:function(t){if(t.componentOptions){var e=t.componentOptions,n=e.propsData,r=void 0===n?{}:n,i=e.Ctor,o=((void 0===i?{}:i).options||{}).props||{},a={};for(var s in o){var u=o[s].default;void 0!==u&&(a[s]=Object(Xs.isFunction)(u)?u.call(t):u)}return Rf({},a,r)}return{}},getSlots:function(t){var e=this,n=t.componentOptions||{},r=t.children||n.children||[],i={};return r.forEach((function(t){if(!e.isEmptyElement(t)){var n=t.data&&t.data.slot||\"default\";i[n]=i[n]||[],\"template\"===t.tag?i[n].push(t.children):i[n].push(t)}})),Rf({},i)},isEmptyElement:function(t){return!(t.tag||t.text&&\"\"!==t.text.trim())},filledNode:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.props||(t.props={}),e>n&&(t.props.span=n),r&&(t.props.span=n),t},getRows:function(){var t=this,e=(this.$slots.default||[]).filter((function(t){return t.tag&&t.componentOptions&&\"ElDescriptionsItem\"===t.componentOptions.Ctor.options.name})),n=e.map((function(e){return{props:t.getOptionProps(e),slots:t.getSlots(e),vnode:e}})),r=[],i=[],o=this.column;return n.forEach((function(n,a){var s=n.props.span||1;if(a===e.length-1)return i.push(t.filledNode(n,s,o,!0)),void r.push(i);s<o?(o-=s,i.push(n)):(i.push(t.filledNode(n,s,o)),r.push(i),o=t.column,i=[])})),r}},render:function(){var t=arguments[0],e=this.title,n=this.extra,r=this.border,i=this.descriptionsSize,o=this.$slots,a=this.getRows();return t(\"div\",{class:\"el-descriptions\"},[e||n||o.title||o.extra?t(\"div\",{class:\"el-descriptions__header\"},[t(\"div\",{class:\"el-descriptions__title\"},[o.title?o.title:e]),t(\"div\",{class:\"el-descriptions__extra\"},[o.extra?o.extra:n])]):null,t(\"div\",{class:\"el-descriptions__body\"},[t(\"table\",{class:[\"el-descriptions__table\",{\"is-bordered\":r},i?\"el-descriptions--\"+i:\"\"]},[a.map((function(e){return t(zf,{attrs:{row:e}})}))])])])},install:function(t){t.component(Uf.name,Uf)}},Vf=Uf,Hf={name:\"ElDescriptionsItem\",props:{label:{type:String,default:\"\"},span:{type:Number,default:1},contentClassName:{type:String,default:\"\"},contentStyle:{type:Object},labelClassName:{type:String,default:\"\"},labelStyle:{type:Object}},render:function(){return null},install:function(t){t.component(Hf.name,Hf)}},Gf=Hf,qf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-result\"},[n(\"div\",{staticClass:\"el-result__icon\"},[t._t(\"icon\",[n(t.iconElement,{tag:\"component\",class:t.iconElement})])],2),t.title||t.$slots.title?n(\"div\",{staticClass:\"el-result__title\"},[t._t(\"title\",[n(\"p\",[t._v(t._s(t.title))])])],2):t._e(),t.subTitle||t.$slots.subTitle?n(\"div\",{staticClass:\"el-result__subtitle\"},[t._t(\"subTitle\",[n(\"p\",[t._v(t._s(t.subTitle))])])],2):t._e(),t.$slots.extra?n(\"div\",{staticClass:\"el-result__extra\"},[t._t(\"extra\")],2):t._e()])};qf._withStripped=!0;var Wf=function(){var t=this.$createElement,e=this._self._c||t;return e(\"svg\",{attrs:{viewBox:\"0 0 48 48\",xmlns:\"http://www.w3.org/2000/svg\"}},[e(\"path\",{attrs:{d:\"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M34.5548098,16.4485711 C33.9612228,15.8504763 32.9988282,15.8504763 32.4052412,16.4485711 L32.4052412,16.4485711 L21.413757,27.5805811 L21.413757,27.5805811 L21.4034642,27.590855 C21.0097542,27.9781674 20.3766105,27.9729811 19.9892981,27.5792711 L19.9892981,27.5792711 L15.5947588,23.1121428 C15.0011718,22.514048 14.0387772,22.514048 13.4451902,23.1121428 C12.8516033,23.7102376 12.8516033,24.6799409 13.4451902,25.2780357 L13.4451902,25.2780357 L19.6260786,31.5514289 C20.2196656,32.1495237 21.1820602,32.1495237 21.7756472,31.5514289 L21.7756472,31.5514289 L34.5548098,18.614464 C35.1483967,18.0163692 35.1483967,17.0466659 34.5548098,16.4485711 Z\"}})])};Wf._withStripped=!0;var Yf=o({name:\"IconSuccess\"},Wf,[],!1,null,null,null);Yf.options.__file=\"packages/result/src/icon-success.vue\";var Zf=Yf.exports,Kf=function(){var t=this.$createElement,e=this._self._c||t;return e(\"svg\",{attrs:{viewBox:\"0 0 48 48\",xmlns:\"http://www.w3.org/2000/svg\"}},[e(\"path\",{attrs:{d:\"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.57818,15.42182 C32.0157534,14.8593933 31.1038797,14.8593933 30.541453,15.42182 L30.541453,15.42182 L24.0006789,21.9625941 L17.458547,15.42182 C16.8961203,14.8593933 15.9842466,14.8593933 15.42182,15.42182 C14.8593933,15.9842466 14.8593933,16.8961203 15.42182,17.458547 L15.42182,17.458547 L21.9639519,23.9993211 L15.42182,30.541453 C14.8593933,31.1038797 14.8593933,32.0157534 15.42182,32.57818 C15.9842466,33.1406067 16.8961203,33.1406067 17.458547,32.57818 L17.458547,32.57818 L24.0006789,26.0360481 L30.541453,32.57818 C31.1038797,33.1406067 32.0157534,33.1406067 32.57818,32.57818 C33.1406067,32.0157534 33.1406067,31.1038797 32.57818,30.541453 L32.57818,30.541453 L26.0374059,23.9993211 L32.57818,17.458547 C33.1406067,16.8961203 33.1406067,15.9842466 32.57818,15.42182 Z\"}})])};Kf._withStripped=!0;var Xf=o({name:\"IconError\"},Kf,[],!1,null,null,null);Xf.options.__file=\"packages/result/src/icon-error.vue\";var Jf=Xf.exports,Qf=function(){var t=this.$createElement,e=this._self._c||t;return e(\"svg\",{attrs:{viewBox:\"0 0 48 48\",xmlns:\"http://www.w3.org/2000/svg\"}},[e(\"path\",{attrs:{d:\"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,31 C22.8954305,31 22,31.8954305 22,33 C22,34.1045695 22.8954305,35 24,35 C25.1045695,35 26,34.1045695 26,33 C26,31.8954305 25.1045695,31 24,31 Z M24,14 C23.1715729,14 22.5,14.6715729 22.5,15.5 L22.5,15.5 L22.5,27.5 C22.5,28.3284271 23.1715729,29 24,29 C24.8284271,29 25.5,28.3284271 25.5,27.5 L25.5,27.5 L25.5,15.5 C25.5,14.6715729 24.8284271,14 24,14 Z\"}})])};Qf._withStripped=!0;var td=o({name:\"IconWarning\"},Qf,[],!1,null,null,null);td.options.__file=\"packages/result/src/icon-warning.vue\";var ed=td.exports,nd=function(){var t=this.$createElement,e=this._self._c||t;return e(\"svg\",{attrs:{viewBox:\"0 0 48 48\",xmlns:\"http://www.w3.org/2000/svg\"}},[e(\"path\",{attrs:{d:\"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,19 L21,19 C20.1715729,19 19.5,19.6715729 19.5,20.5 C19.5,21.3284271 20.1715729,22 21,22 L21,22 L22.5,22 L22.5,31 L21,31 C20.1715729,31 19.5,31.6715729 19.5,32.5 C19.5,33.3284271 20.1715729,34 21,34 L21,34 L27,34 C27.8284271,34 28.5,33.3284271 28.5,32.5 C28.5,31.6715729 27.8284271,31 27,31 L27,31 L25.5,31 L25.5,20.5 C25.5,19.6715729 24.8284271,19 24,19 L24,19 Z M24,13 C22.8954305,13 22,13.8954305 22,15 C22,16.1045695 22.8954305,17 24,17 C25.1045695,17 26,16.1045695 26,15 C26,13.8954305 25.1045695,13 24,13 Z\"}})])};nd._withStripped=!0;var rd=o({name:\"IconInfo\"},nd,[],!1,null,null,null);rd.options.__file=\"packages/result/src/icon-info.vue\";var id,od=rd.exports,ad={success:\"icon-success\",warning:\"icon-warning\",error:\"icon-error\",info:\"icon-info\"},sd={name:\"ElResult\",components:(id={},id[Zf.name]=Zf,id[Jf.name]=Jf,id[ed.name]=ed,id[od.name]=od,id),props:{title:{type:String,default:\"\"},subTitle:{type:String,default:\"\"},icon:{type:String,default:\"info\"}},computed:{iconElement:function(){var t=this.icon;return t&&ad[t]?ad[t]:\"icon-info\"}}},ud=o(sd,qf,[],!1,null,null,null);ud.options.__file=\"packages/result/src/index.vue\";var ld=ud.exports;ld.install=function(t){t.component(ld.name,ld)};var cd=ld,hd=[y,A,G,Q,rt,st,_t,At,Ft,Bt,Yt,te,ie,le,de,ge,we,Ce,Oe,We,Ye,Je,nn,sn,mr,xr,Ci,Fi,Hi,Ki,Ji,ko,Do,Io,Uo,Qo,ra,aa,Aa,Pa,ts,gs,bs,xs,Bs,Us,qs,uu,fu,gu,wu,Eu,Iu,Lu,Uu,qu,Ku,ll,zl,Yl,Jl,nc,ac,cc,pc,yc,xc,Ec,Mc,Yc,oh,hh,Sh,Zh,Qh,rf,cf,mf,_f,Af,Bf,Vf,Gf,cd,xt.a],fd=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};eo.a.use(e.locale),eo.a.i18n(e.i18n),hd.forEach((function(e){t.component(e.name,e)})),t.use(_h),t.use(ds.directive),t.prototype.$ELEMENT={size:e.size||\"\",zIndex:e.zIndex||2e3},t.prototype.$loading=ds.service,t.prototype.$msgbox=bo,t.prototype.$alert=bo.alert,t.prototype.$confirm=bo.confirm,t.prototype.$prompt=bo.prompt,t.prototype.$notify=Va,t.prototype.$message=iu};\"undefined\"!=typeof window&&window.Vue&&fd(window.Vue);e.default={version:\"2.15.14\",locale:eo.a.use,i18n:eo.a.i18n,install:fd,CollapseTransition:xt.a,Loading:ds,Pagination:y,Dialog:A,Autocomplete:G,Dropdown:Q,DropdownMenu:rt,DropdownItem:st,Menu:_t,Submenu:At,MenuItem:Ft,MenuItemGroup:Bt,Input:Yt,InputNumber:te,Radio:ie,RadioGroup:le,RadioButton:de,Checkbox:ge,CheckboxButton:we,CheckboxGroup:Ce,Switch:Oe,Select:We,Option:Ye,OptionGroup:Je,Button:nn,ButtonGroup:sn,Table:mr,TableColumn:xr,DatePicker:Ci,TimeSelect:Fi,TimePicker:Hi,Popover:Ki,Tooltip:Ji,MessageBox:bo,Breadcrumb:ko,BreadcrumbItem:Do,Form:Io,FormItem:Uo,Tabs:Qo,TabPane:ra,Tag:aa,Tree:Aa,Alert:Pa,Notification:Va,Slider:ts,Icon:gs,Row:bs,Col:xs,Upload:Bs,Progress:Us,Spinner:qs,Message:iu,Badge:uu,Card:fu,Rate:gu,Steps:wu,Step:Eu,Carousel:Iu,Scrollbar:Lu,CarouselItem:Uu,Collapse:qu,CollapseItem:Ku,Cascader:ll,ColorPicker:zl,Transfer:Yl,Container:Jl,Header:nc,Aside:ac,Main:cc,Footer:pc,Timeline:yc,TimelineItem:xc,Link:Ec,Divider:Mc,Image:Yc,Calendar:oh,Backtop:hh,InfiniteScroll:_h,PageHeader:Sh,CascaderPanel:Zh,Avatar:Qh,Drawer:rf,Statistic:cf,Popconfirm:mf,Skeleton:_f,SkeletonItem:Af,Empty:Bf,Descriptions:Vf,DescriptionsItem:Gf,Result:cd}}]).default},function(t,e){t.exports={install:function(t){var e=null;try{\"function\"==typeof browser.runtime.getURL&&(e=browser)}catch(t){try{\"function\"==typeof chrome.runtime.getURL&&(e=chrome)}catch(t){}}if(!e)throw new Error('\"browser\" or \"chrome\" not found.');var n=e.i18n.getMessage.bind(e.i18n);t.prototype?t.prototype.$i18n=n:t.config.globalProperties.$i18n=n}}},,function(t,e,n){\"use strict\";var r=n(60);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function o(t){return Object.prototype.toString.call(t).indexOf(\"Error\")>-1}function a(t,e){for(var n in e)t[n]=e[n];return t}var s={name:\"RouterView\",functional:!0,props:{name:{type:String,default:\"default\"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,s=e.data;s.routerView=!0;for(var u=o.$createElement,l=n.name,c=o.$route,h=o._routerViewCache||(o._routerViewCache={}),f=0,d=!1;o&&o._routerRoot!==o;){var p=o.$vnode&&o.$vnode.data;p&&(p.routerView&&f++,p.keepAlive&&o._inactive&&(d=!0)),o=o.$parent}if(s.routerViewDepth=f,d)return u(h[l],s,r);var m=c.matched[f];if(!m)return h[l]=null,u();var v=h[l]=m.components[l];s.registerRouteInstance=function(t,e){var n=m.instances[l];(e&&n!==t||!e&&n===t)&&(m.instances[l]=e)},(s.hook||(s.hook={})).prepatch=function(t,e){m.instances[l]=e.componentInstance},s.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==m.instances[l]&&(m.instances[l]=t.componentInstance)};var g=s.props=function(t,e){switch(i(e)){case\"undefined\":return;case\"object\":return e;case\"function\":return e(t);case\"boolean\":return e?t.params:void 0}}(c,m.props&&m.props[l]);if(g){g=s.props=a({},g);var y=s.attrs=s.attrs||{};for(var b in g)v.props&&b in v.props||(y[b]=g[b],delete g[b])}return u(v,s,r)}};var u=/[!'()*]/g,l=function(t){return\"%\"+t.charCodeAt(0).toString(16)},c=/%2C/g,h=function(t){return encodeURIComponent(t).replace(u,l).replace(c,\",\")},f=decodeURIComponent;function d(t){var e={};return(t=t.trim().replace(/^(\\?|#|&)/,\"\"))?(t.split(\"&\").forEach((function(t){var n=t.replace(/\\+/g,\" \").split(\"=\"),r=f(n.shift()),i=n.length>0?f(n.join(\"=\")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function p(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return\"\";if(null===n)return h(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(h(e)):r.push(h(e)+\"=\"+h(t)))})),r.join(\"&\")}return h(e)+\"=\"+h(n)})).filter((function(t){return t.length>0})).join(\"&\"):null;return e?\"?\"+e:\"\"}var m=/\\/?$/;function v(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=g(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||\"/\",hash:e.hash||\"\",query:o,params:e.params||{},fullPath:_(e,i),matched:t?b(t):[]};return n&&(a.redirectedFrom=_(n,i)),Object.freeze(a)}function g(t){if(Array.isArray(t))return t.map(g);if(t&&\"object\"===i(t)){var e={};for(var n in t)e[n]=g(t[n]);return e}return t}var y=v(null,{path:\"/\"});function b(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function _(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=\"\"),(n||\"/\")+(e||p)(r)+i}function w(t,e){return e===y?t===e:!!e&&(t.path&&e.path?t.path.replace(m,\"\")===e.path.replace(m,\"\")&&t.hash===e.hash&&x(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&x(t.query,e.query)&&x(t.params,e.params)))}function x(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){var r=t[n],o=e[n];return\"object\"===i(r)&&\"object\"===i(o)?x(r,o):String(r)===String(o)}))}var k,S={name:\"RouterLink\",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:\"a\"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:[String,Array],default:\"click\"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,s=i.route,u=i.href,l={},c=n.options.linkActiveClass,h=n.options.linkExactActiveClass,f=null==c?\"router-link-active\":c,d=null==h?\"router-link-exact-active\":h,p=null==this.activeClass?f:this.activeClass,g=null==this.exactActiveClass?d:this.exactActiveClass,y=o.path?v(null,o,null,n):s;l[g]=w(r,y),l[p]=this.exact?l[g]:function(t,e){return 0===t.path.replace(m,\"/\").indexOf(e.path.replace(m,\"/\"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,y);var b=function(t){C(t)&&(e.replace?n.replace(o):n.push(o))},_={click:C};Array.isArray(this.event)?this.event.forEach((function(t){_[t]=b})):_[this.event]=b;var x={class:l};if(\"a\"===this.tag)x.on=_,x.attrs={href:u};else{var k=E(this.$slots.default);if(k)k.isStatic=!1,(k.data=a({},k.data)).on=_,(k.data.attrs=a({},k.data.attrs)).href=u;else x.on=_}return t(this.tag,x,this.$slots.default)}};function C(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute(\"target\");if(/\\b_blank\\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function E(t){if(t)for(var e,n=0;n<t.length;n++){if(\"a\"===(e=t[n]).tag)return e;if(e.children&&(e=E(e.children)))return e}}var D=\"undefined\"!=typeof window;function A(t,e,n){var r=t.charAt(0);if(\"/\"===r)return t;if(\"?\"===r||\"#\"===r)return e+t;var i=e.split(\"/\");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\\//,\"\").split(\"/\"),a=0;a<o.length;a++){var s=o[a];\"..\"===s?i.pop():\".\"!==s&&i.push(s)}return\"\"!==i[0]&&i.unshift(\"\"),i.join(\"/\")}function O(t){return t.replace(/\\/\\//g,\"/\")}var M=Array.isArray||function(t){return\"[object Array]\"==Object.prototype.toString.call(t)},T=G,I=L,P=function(t,e){return $(L(t,e))},F=$,j=H,N=new RegExp([\"(\\\\\\\\.)\",\"([\\\\/.])?(?:(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))([+*?])?|(\\\\*))\"].join(\"|\"),\"g\");function L(t,e){for(var n,r=[],i=0,o=0,a=\"\",s=e&&e.delimiter||\"/\";null!=(n=N.exec(t));){var u=n[0],l=n[1],c=n.index;if(a+=t.slice(o,c),o=c+u.length,l)a+=l[1];else{var h=t[o],f=n[2],d=n[3],p=n[4],m=n[5],v=n[6],g=n[7];a&&(r.push(a),a=\"\");var y=null!=f&&null!=h&&h!==f,b=\"+\"===v||\"*\"===v,_=\"?\"===v||\"*\"===v,w=n[2]||s,x=p||m;r.push({name:d||i++,prefix:f||\"\",delimiter:w,optional:_,repeat:b,partial:y,asterisk:!!g,pattern:x?R(x):g?\".*\":\"[^\"+z(w)+\"]+?\"})}}return o<t.length&&(a+=t.substr(o)),a&&r.push(a),r}function B(t){return encodeURI(t).replace(/[\\/?#]/g,(function(t){return\"%\"+t.charCodeAt(0).toString(16).toUpperCase()}))}function $(t){for(var e=new Array(t.length),n=0;n<t.length;n++)\"object\"===i(t[n])&&(e[n]=new RegExp(\"^(?:\"+t[n].pattern+\")$\"));return function(n,r){for(var i=\"\",o=n||{},a=(r||{}).pretty?B:encodeURIComponent,s=0;s<t.length;s++){var u=t[s];if(\"string\"!=typeof u){var l,c=o[u.name];if(null==c){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected \"'+u.name+'\" to be defined')}if(M(c)){if(!u.repeat)throw new TypeError('Expected \"'+u.name+'\" to not repeat, but received `'+JSON.stringify(c)+\"`\");if(0===c.length){if(u.optional)continue;throw new TypeError('Expected \"'+u.name+'\" to not be empty')}for(var h=0;h<c.length;h++){if(l=a(c[h]),!e[s].test(l))throw new TypeError('Expected all \"'+u.name+'\" to match \"'+u.pattern+'\", but received `'+JSON.stringify(l)+\"`\");i+=(0===h?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?encodeURI(c).replace(/[?#]/g,(function(t){return\"%\"+t.charCodeAt(0).toString(16).toUpperCase()})):a(c),!e[s].test(l))throw new TypeError('Expected \"'+u.name+'\" to match \"'+u.pattern+'\", but received \"'+l+'\"');i+=u.prefix+l}}else i+=u}return i}}function z(t){return t.replace(/([.+*?=^!:${}()[\\]|\\/\\\\])/g,\"\\\\$1\")}function R(t){return t.replace(/([=!:$\\/()])/g,\"\\\\$1\")}function U(t,e){return t.keys=e,t}function V(t){return t.sensitive?\"\":\"i\"}function H(t,e,n){M(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o=\"\",a=0;a<t.length;a++){var s=t[a];if(\"string\"==typeof s)o+=z(s);else{var u=z(s.prefix),l=\"(?:\"+s.pattern+\")\";e.push(s),s.repeat&&(l+=\"(?:\"+u+l+\")*\"),o+=l=s.optional?s.partial?u+\"(\"+l+\")?\":\"(?:\"+u+\"(\"+l+\"))?\":u+\"(\"+l+\")\"}}var c=z(n.delimiter||\"/\"),h=o.slice(-c.length)===c;return r||(o=(h?o.slice(0,-c.length):o)+\"(?:\"+c+\"(?=$))?\"),o+=i?\"$\":r&&h?\"\":\"(?=\"+c+\"|$)\",U(new RegExp(\"^\"+o,V(n)),e)}function G(t,e,n){return M(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\\((?!\\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return U(t,e)}(t,e):M(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(G(t[i],e,n).source);return U(new RegExp(\"(?:\"+r.join(\"|\")+\")\",V(n)),e)}(t,e,n):function(t,e,n){return H(L(t,n),e,n)}(t,e,n)}T.parse=I,T.compile=P,T.tokensToFunction=F,T.tokensToRegExp=j;var q=Object.create(null);function W(t,e,n){e=e||{};try{var r=q[t]||(q[t]=T.compile(t));return e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return\"\"}finally{delete e[0]}}function Y(t,e,n,r){var i=e||[],o=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){Z(i,o,a,t)}));for(var s=0,u=i.length;s<u;s++)\"*\"===i[s]&&(i.push(i.splice(s,1)[0]),u--,s--);return{pathList:i,pathMap:o,nameMap:a}}function Z(t,e,n,r,i,o){var a=r.path,s=r.name;var u=r.pathToRegexpOptions||{},l=function(t,e,n){n||(t=t.replace(/\\/$/,\"\"));if(\"/\"===t[0])return t;if(null==e)return t;return O(e.path+\"/\"+t)}(a,i,u.strict);\"boolean\"==typeof r.caseSensitive&&(u.sensitive=r.caseSensitive);var c={path:l,regex:K(l,u),components:r.components||{default:r.component},instances:{},name:s,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};(r.children&&r.children.forEach((function(r){var i=o?O(o+\"/\"+r.path):void 0;Z(t,e,n,r,c,i)})),void 0!==r.alias)&&(Array.isArray(r.alias)?r.alias:[r.alias]).forEach((function(o){var a={path:o,children:r.children};Z(t,e,n,a,i,c.path||\"/\")}));e[c.path]||(t.push(c.path),e[c.path]=c),s&&(n[s]||(n[s]=c))}function K(t,e){return T(t,[],e)}function X(t,e,n,r){var i=\"string\"==typeof t?{path:t}:t;if(i._normalized)return i;if(i.name)return a({},t);if(!i.path&&i.params&&e){(i=a({},i))._normalized=!0;var o=a(a({},e.params),i.params);if(e.name)i.name=e.name,i.params=o;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;i.path=W(s,o,e.path)}else 0;return i}var u=function(t){var e=\"\",n=\"\",r=t.indexOf(\"#\");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf(\"?\");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||\"\"),l=e&&e.path||\"/\",c=u.path?A(u.path,l,n||i.append):l,h=function(t,e,n){void 0===e&&(e={});var r,i=n||d;try{r=i(t||\"\")}catch(t){r={}}for(var o in e)r[o]=e[o];return r}(u.query,i.query,r&&r.options.parseQuery),f=i.hash||u.hash;return f&&\"#\"!==f.charAt(0)&&(f=\"#\"+f),{_normalized:!0,path:c,query:h,hash:f}}function J(t,e){var n=Y(t),r=n.pathList,o=n.pathMap,a=n.nameMap;function s(t,n,s){var u=X(t,n,!1,e),c=u.name;if(c){var h=a[c];if(!h)return l(null,u);var f=h.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if(\"object\"!==i(u.params)&&(u.params={}),n&&\"object\"===i(n.params))for(var d in n.params)!(d in u.params)&&f.indexOf(d)>-1&&(u.params[d]=n.params[d]);return u.path=W(h.path,u.params),l(h,u,s)}if(u.path){u.params={};for(var p=0;p<r.length;p++){var m=r[p],v=o[m];if(Q(v.regex,u.path,u.params))return l(v,u,s)}}return l(null,u)}function u(t,n){var r=t.redirect,o=\"function\"==typeof r?r(v(t,n,null,e)):r;if(\"string\"==typeof o&&(o={path:o}),!o||\"object\"!==i(o))return l(null,n);var u=o,c=u.name,h=u.path,f=n.query,d=n.hash,p=n.params;if(f=u.hasOwnProperty(\"query\")?u.query:f,d=u.hasOwnProperty(\"hash\")?u.hash:d,p=u.hasOwnProperty(\"params\")?u.params:p,c){a[c];return s({_normalized:!0,name:c,query:f,hash:d,params:p},void 0,n)}if(h){var m=function(t,e){return A(t,e.parent?e.parent.path:\"/\",!0)}(h,t);return s({_normalized:!0,path:W(m,p),query:f,hash:d},void 0,n)}return l(null,n)}function l(t,n,r){return t&&t.redirect?u(t,r||n):t&&t.matchAs?function(t,e,n){var r=s({_normalized:!0,path:W(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,l(o,e)}return l(null,e)}(0,n,t.matchAs):v(t,n,r,e)}return{match:s,addRoutes:function(t){Y(t,r,o,a)}}}function Q(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=t.keys[i-1],s=\"string\"==typeof r[i]?decodeURIComponent(r[i]):r[i];a&&(n[a.name||\"pathMatch\"]=s)}return!0}var tt=Object.create(null);function et(){var t=window.location.protocol+\"//\"+window.location.host,e=window.location.href.replace(t,\"\");window.history.replaceState({key:dt()},\"\",e),window.addEventListener(\"popstate\",(function(t){var e;rt(),t.state&&t.state.key&&(e=t.state.key,ht=e)}))}function nt(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=function(){var t=dt();if(t)return tt[t]}(),a=i.call(t,e,n,r?o:null);a&&(\"function\"==typeof a.then?a.then((function(t){st(t,o)})).catch((function(t){0})):st(a,o))}))}}function rt(){var t=dt();t&&(tt[t]={x:window.pageXOffset,y:window.pageYOffset})}function it(t){return at(t.x)||at(t.y)}function ot(t){return{x:at(t.x)?t.x:window.pageXOffset,y:at(t.y)?t.y:window.pageYOffset}}function at(t){return\"number\"==typeof t}function st(t,e){var n,r=\"object\"===i(t);if(r&&\"string\"==typeof t.selector){var o=document.querySelector(t.selector);if(o){var a=t.offset&&\"object\"===i(t.offset)?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(o,a={x:at((n=a).x)?n.x:0,y:at(n.y)?n.y:0})}else it(t)&&(e=ot(t))}else r&&it(t)&&(e=ot(t));e&&window.scrollTo(e.x,e.y)}var ut,lt=D&&((-1===(ut=window.navigator.userAgent).indexOf(\"Android 2.\")&&-1===ut.indexOf(\"Android 4.0\")||-1===ut.indexOf(\"Mobile Safari\")||-1!==ut.indexOf(\"Chrome\")||-1!==ut.indexOf(\"Windows Phone\"))&&window.history&&\"pushState\"in window.history),ct=D&&window.performance&&window.performance.now?window.performance:Date,ht=ft();function ft(){return ct.now().toFixed(3)}function dt(){return ht}function pt(t,e){rt();var n=window.history;try{e?n.replaceState({key:ht},\"\",t):(ht=ft(),n.pushState({key:ht},\"\",t))}catch(n){window.location[e?\"replace\":\"assign\"](t)}}function mt(t){pt(t,!0)}function vt(t,e,n){!function r(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)}(0)}function gt(t){return function(e,n,r){var i=!1,a=0,s=null;yt(t,(function(t,e,n,u){if(\"function\"==typeof t&&void 0===t.cid){i=!0,a++;var l,c=wt((function(e){var i;((i=e).__esModule||_t&&\"Module\"===i[Symbol.toStringTag])&&(e=e.default),t.resolved=\"function\"==typeof e?e:k.extend(e),n.components[u]=e,--a<=0&&r()})),h=wt((function(t){var e=\"Failed to resolve async component \"+u+\": \"+t;s||(s=o(t)?t:new Error(e),r(s))}));try{l=t(c,h)}catch(t){h(t)}if(l)if(\"function\"==typeof l.then)l.then(c,h);else{var f=l.component;f&&\"function\"==typeof f.then&&f.then(c,h)}}})),i||r()}}function yt(t,e){return bt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function bt(t){return Array.prototype.concat.apply([],t)}var _t=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.toStringTag);function wt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var xt=function(t,e){this.router=t,this.base=function(t){if(!t)if(D){var e=document.querySelector(\"base\");t=(t=e&&e.getAttribute(\"href\")||\"/\").replace(/^https?:\\/\\/[^\\/]+/,\"\")}else t=\"/\";\"/\"!==t.charAt(0)&&(t=\"/\"+t);return t.replace(/\\/$/,\"\")}(e),this.current=y,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function kt(t,e,n,r){var i=yt(t,(function(t,r,i,o){var a=function(t,e){\"function\"!=typeof t&&(t=k.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return bt(r?i.reverse():i)}function St(t,e){if(e)return function(){return t.apply(e,arguments)}}function Ct(t,e,n,r){e[n]&&!e[n]._isBeingDestroyed?t(e[n]):r()&&setTimeout((function(){Ct(t,e,n,r)}),16)}xt.prototype.listen=function(t){this.cb=t},xt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},xt.prototype.onError=function(t){this.errorCbs.push(t)},xt.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(t){t(i)})))}),(function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(e){e(t)})))}))},xt.prototype.confirmTransition=function(t,e,n){var r=this,a=this.current,s=function(t){o(t)&&r.errorCbs.length&&r.errorCbs.forEach((function(e){e(t)})),n&&n(t)};if(w(t,a)&&t.matched.length===a.matched.length)return this.ensureURL(),s();var u=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),l=u.updated,c=u.deactivated,h=u.activated,f=[].concat(function(t){return kt(t,\"beforeRouteLeave\",St,!0)}(c),this.router.beforeHooks,function(t){return kt(t,\"beforeRouteUpdate\",St)}(l),h.map((function(t){return t.beforeEnter})),gt(h));this.pending=t;var d=function(e,n){if(r.pending!==t)return s();try{e(t,a,(function(t){!1===t||o(t)?(r.ensureURL(!0),s(t)):\"string\"==typeof t||\"object\"===i(t)&&(\"string\"==typeof t.path||\"string\"==typeof t.name)?(s(),\"object\"===i(t)&&t.replace?r.replace(t):r.push(t)):n(t)}))}catch(t){s(t)}};vt(f,d,(function(){var n=[],i=function(t,e,n){return kt(t,\"beforeRouteEnter\",(function(t,r,i,o){return function(t,e,n,r,i){return function(o,a,s){return t(o,a,(function(t){\"function\"==typeof t&&r.push((function(){Ct(t,e.instances,n,i)})),s(t)}))}}(t,i,o,e,n)}))}(h,n,(function(){return r.current===t}));vt(i.concat(r.router.resolveHooks),d,(function(){if(r.pending!==t)return s();r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){n.forEach((function(t){t()}))}))}))}))},xt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach((function(n){n&&n(t,e)}))};var Et=function(t){function e(e,n){var r=this;t.call(this,e,n);var i=e.options.scrollBehavior,o=lt&&i;o&&et();var a=Dt(this.base);window.addEventListener(\"popstate\",(function(t){var n=r.current,i=Dt(r.base);r.current===y&&i===a||r.transitionTo(i,(function(t){o&&nt(e,t,n,!0)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){pt(O(r.base+t.fullPath)),nt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){mt(O(r.base+t.fullPath)),nt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Dt(this.base)!==this.current.fullPath){var e=O(this.base+this.current.fullPath);t?pt(e):mt(e)}},e.prototype.getCurrentLocation=function(){return Dt(this.base)},e}(xt);function Dt(t){var e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||\"/\")+window.location.search+window.location.hash}var At=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Dt(t);if(!/^\\/#/.test(e))return window.location.replace(O(t+\"/#\"+e)),!0}(this.base)||Ot()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router.options.scrollBehavior,n=lt&&e;n&&et(),window.addEventListener(lt?\"popstate\":\"hashchange\",(function(){var e=t.current;Ot()&&t.transitionTo(Mt(),(function(r){n&&nt(t.router,r,e,!0),lt||Pt(r.fullPath)}))}))},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){It(t.fullPath),nt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Pt(t.fullPath),nt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Mt()!==e&&(t?It(e):Pt(e))},e.prototype.getCurrentLocation=function(){return Mt()},e}(xt);function Ot(){var t=Mt();return\"/\"===t.charAt(0)||(Pt(\"/\"+t),!1)}function Mt(){var t=window.location.href,e=t.indexOf(\"#\");if(e<0)return\"\";var n=(t=t.slice(e+1)).indexOf(\"?\");if(n<0){var r=t.indexOf(\"#\");t=r>-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function Tt(t){var e=window.location.href,n=e.indexOf(\"#\");return(n>=0?e.slice(0,n):e)+\"#\"+t}function It(t){lt?pt(Tt(t)):window.location.hash=t}function Pt(t){lt?mt(Tt(t)):window.location.replace(Tt(t))}var Ft=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){e.index=n,e.updateRoute(r)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:\"/\"},e.prototype.ensureURL=function(){},e}(xt),jt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=J(t.routes||[],this);var e=t.mode||\"hash\";switch(this.fallback=\"history\"===e&&!lt&&!1!==t.fallback,this.fallback&&(e=\"hash\"),D||(e=\"abstract\"),this.mode=e,e){case\"history\":this.history=new Et(this,t.base);break;case\"hash\":this.history=new At(this,t.base,this.fallback);break;case\"abstract\":this.history=new Ft(this,t.base)}},Nt={currentRoute:{configurable:!0}};function Lt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}jt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Nt.currentRoute.get=function(){return this.history&&this.history.current},jt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once(\"hook:destroyed\",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)})),!this.app){this.app=t;var n=this.history;if(n instanceof Et)n.transitionTo(n.getCurrentLocation());else if(n instanceof At){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},jt.prototype.beforeEach=function(t){return Lt(this.beforeHooks,t)},jt.prototype.beforeResolve=function(t){return Lt(this.resolveHooks,t)},jt.prototype.afterEach=function(t){return Lt(this.afterHooks,t)},jt.prototype.onReady=function(t,e){this.history.onReady(t,e)},jt.prototype.onError=function(t){this.history.onError(t)},jt.prototype.push=function(t,e,n){this.history.push(t,e,n)},jt.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},jt.prototype.go=function(t){this.history.go(t)},jt.prototype.back=function(){this.go(-1)},jt.prototype.forward=function(){this.go(1)},jt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},jt.prototype.resolve=function(t,e,n){var r=X(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath,a=function(t,e,n){var r=\"hash\"===n?\"#\"+e:e;return t?O(t+\"/\"+r):r}(this.history.base,o,this.mode);return{location:r,route:i,href:a,normalizedTo:r,resolved:i}},jt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==y&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(jt.prototype,Nt),jt.install=function t(e){if(!t.installed||k!==e){t.installed=!0,k=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,\"_route\",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,\"$router\",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,\"$route\",{get:function(){return this._routerRoot._route}}),e.component(\"RouterView\",s),e.component(\"RouterLink\",S);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},jt.version=\"3.0.7\",D&&window.Vue&&window.Vue.use(jt);var Bt=jt,$t=n(3),zt=n(118);function Rt(t){return Rt=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Rt(t)}function Ut(){Ut=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new M(r||[]);return i(a,\"_invoke\",{value:E(t,n,s)}),a}function h(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var f=\"suspendedStart\",d=\"suspendedYield\",p=\"executing\",m=\"completed\",v={};function g(){}function y(){}function b(){}var _={};l(_,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(T([])));x&&x!==n&&r.call(x,a)&&(_=x);var k=b.prototype=g.prototype=Object.create(_);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var u=h(t[i],t,o);if(\"throw\"!==u.type){var l=u.arg,c=l.value;return c&&\"object\"==Rt(c)&&r.call(c,\"__await\")?e.resolve(c.__await).then((function(t){n(\"next\",t,a,s)}),(function(t){n(\"throw\",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return n(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=f;return function(o,a){if(i===p)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=D(s,r);if(u){if(u===v)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=p;var l=h(e,n,r);if(\"normal\"===l.type){if(i=r.done?m:d,l.arg===v)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=m,r.method=\"throw\",r.arg=l.arg)}}}function D(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,D(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),v;var o=h(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,v):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(A,this),this.reset(!0)}function T(e){if(e||\"\"===e){var n=e[a];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Rt(e)+\" is not iterable\")}return y.prototype=b,i(k,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:y,configurable:!0}),y.displayName=l(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===y||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),l(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),l(k,u,\"Generator\"),l(k,a,(function(){return this})),l(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)\"t\"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=r.call(a,\"catchLoc\"),l=r.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;O(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),v}},e}function Vt(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function Ht(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Vt(o,r,i,a,s,\"next\",t)}function s(t){Vt(o,r,i,a,s,\"throw\",t)}a(void 0)}))}}var Gt={data:function(){return{activeTabName:\"basic\",isLoading:void 0,partners:[],activeProCard:\"\",shipKey:\"\",isShipKeyValid:!1,tempShipKey:\"\",config:{},pageStatus:\"1\",priceList:[],timeType:\"1\",toggle:!0,localSetting:{},speedOptions:[{value:1,label:\"Slow\"},{value:2,label:\"Normal\"},{value:4,label:\"Faster\"}],failOptions:[{value:3,label:\"3 times\"},{value:5,label:\"5 times\"},{value:10,label:\"10 times\"}],curPageDomain:\"\",browser:\"chrome\"}},components:{},created:function(){var t=this;return Ht(Ut().mark((function e(){var n;return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,e.next=3,n.init();case 3:case\"end\":return e.stop()}}),e)})))()},mounted:function(){},methods:{init:function(){var t=this;return Ht(Ut().mark((function e(){var n,r,i,o;return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t,e.next=3,i.$getConfig();case 3:return i.config=e.sent,i.shipKey=i.config.userdata.shipKey,i.config.userdata.endAt&&(i.isShipKeyValid=new Date(i.config.userdata.endAt)>=Date.now()),e.next=9,$t.a.Dfj0D({key:\"CSLcaeg\",B174bD:-1});case 9:if(e.t1=n=e.sent,e.t0=null===e.t1,e.t0){e.next=13;break}e.t0=void 0===n;case 13:if(!e.t0){e.next=17;break}e.t2=void 0,e.next=18;break;case 17:e.t2=n.value;case 18:if(t.localSetting=e.t2,t.localSetting){e.next=23;break}return t.localSetting={switchStatus:!0,detectScope:\"01\",hc_enabled:!0,hcs:1,hc_forceRefresh:5,re_enabled:!0,res:1,re_forceRefresh:5,bl_domains:(null===(o=t.localSetting)||void 0===o?void 0:o.bl_domains)||[]},e.next=23,i.saveLocalSetting();case 23:return i.isShipKeyValid||(t.localSetting.detectScope=\"01\",t.localSetting.hc_enabled=!0,t.localSetting.hcs=1,t.localSetting.hc_forceRefresh=5,t.localSetting.re_enabled=!0,t.localSetting.res=1,t.localSetting.re_forceRefresh=5),e.next=26,$t.a.yfml();case 26:if(e.t4=r=e.sent,e.t3=null===e.t4,e.t3){e.next=30;break}e.t3=void 0===r;case 30:if(!e.t3){e.next=34;break}e.t5=void 0,e.next=35;break;case 34:e.t5=r.value;case 35:return t.curPageDomain=e.t5,e.next=39,i._loadPartners();case 39:0;case 40:case\"end\":return e.stop()}}),e)})))()},addBlockDomain:function(){var t=this;return Ht(Ut().mark((function e(){var n;return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t,!(t.curPageDomain.trim().length>0)){e.next=6;break}return n.localSetting.bl_domains.includes(t.curPageDomain.trim())||n.localSetting.bl_domains.push(t.curPageDomain.trim()),t.curPageDomain=\"\",e.next=6,n.saveLocalSetting();case 6:case\"end\":return e.stop()}}),e)})))()},delBlockDomain:function(t){var e=this;return Ht(Ut().mark((function n(){var r;return Ut().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=e).localSetting.bl_domains=r.localSetting.bl_domains.filter((function(e){return e!==t.trim()})),n.next=4,r.saveLocalSetting();case 4:case\"end\":return n.stop()}}),n)})))()},backToPro:function(){this.pageStatus=\"1\"},_loadPartners:function(){var t=this;return Ht(Ut().mark((function e(){var n,r;return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$t.a.Dfj0D({key:\"VlakV\",B174bD:-1});case 2:if(e.t1=n=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===n;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=n.value;case 11:(r=e.t2)&&(t.partners=Object.values(r));case 13:case\"end\":return e.stop()}}),e)})))()},toggleSwitch:function(){var t=this;return Ht(Ut().mark((function e(){var n;return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,t.localSetting.switchStatus?t.localSetting.detectScope=\"01\":t.localSetting.detectScope=\"00\",e.next=5,n.saveLocalSetting();case 5:case\"end\":return e.stop()}}),e)})))()},localSettingChanged:function(){var t=this;return Ht(Ut().mark((function e(){var n;return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,e.next=4,n.saveLocalSetting();case 4:case\"end\":return e.stop()}}),e)})))()},saveLocalSetting:function(){var t=this;return Ht(Ut().mark((function e(){return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$t.a.Mc76({key:\"CSLcaeg\",value:t.localSetting,B174bD:-1,q177o:!0});case 2:e.sent;case 4:case\"end\":return e.stop()}}),e)})))()},refreshPartners:function(){var t=this;return Ht(Ut().mark((function e(){var n;return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t,$t.a.FcflF(),n.isLoading=t.$loading({target:\"#id_refresh_btn\",lock:!0,spinner:\"el-icon-loading\"}),setTimeout(Ht(Ut().mark((function t(){var e;return Ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===(e=n.isLoading)||void 0===e||e.close(),n.isLoading=void 0,t.next=4,n._loadPartners();case 4:case\"end\":return t.stop()}}),t)}))),2e3);case 4:case\"end\":return e.stop()}}),e)})))()},changeActiveProCard:function(t){this.activeProCard=t},bindShipKey:function(){var t=this;return Ht(Ut().mark((function e(){var n,r;return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={type:\"Oc3\",label:(n=t).tempShipKey},e.next=4,n.$sendMessageToBack(r);case 4:if(\"0000\"!=e.sent.code){e.next=15;break}return e.next=8,n.$reloadConfig();case 8:return e.next=10,n.$getConfig();case 10:n.config=e.sent,n.shipKey=n.config.userdata.shipKey,n.tempShipKey=\"\",e.next=15;break;case 15:case\"end\":return e.stop()}}),e)})))()},copyKey:function(){var t=this;return Ht(Ut().mark((function e(){var n,r;return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t,(r=document.createElement(\"textarea\")).value=n.shipKey,document.body.appendChild(r),r.select(),document.execCommand(\"copy\"),document.body.removeChild(r),n.$message({dangerouslyUseHTMLString:!0,message:\"The Pro key has been copied to your clipboard.<br/><br/>Don't forget to paste it (Ctrl+V/Cmd+V) into a safe place for later access..\",type:\"success\",duration:3600,offset:40});case 8:case\"end\":return e.stop()}}),e)})))()},unBindShipKey:function(){var t=this;return Ht(Ut().mark((function e(){var n,r;return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,r={type:\"ZdnZ\"},e.next=4,n.$sendMessageToBack(r);case 4:if(\"0000\"!=e.sent.code){e.next=15;break}return e.next=8,n.$reloadConfig();case 8:return e.next=10,n.$getConfig();case 10:n.config=e.sent,n.shipKey=n.config.userdata.shipKey,n.tempShipKey=\"\",e.next=15;break;case 15:case\"end\":return e.stop()}}),e)})))()},goBuyPage:function(){var t=this;return Ht(Ut().mark((function e(){var n,r;return Ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,e.next=3,zt.a.Qijh(n.config);case 3:r=e.sent,n.priceList=r.data,n.pageStatus=\"2\";case 7:case\"end\":return e.stop()}}),e)})))()},gotoPay:function(t){var e=this;return Ht(Ut().mark((function n(){var r,i,o;return Ut().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e,n.next=4,zt.a.xilnz(r.config,{timeType:t.toString()});case 4:\"0000\"==(i=n.sent).code&&(i.data.shipKey,o=i.data.url,window.open(o),window.close());case 6:case\"end\":return n.stop()}}),n)})))()}}},qt=(n(385),n(245));function Wt(t){return Wt=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Wt(t)}function Yt(){Yt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o=\"function\"==typeof Symbol?Symbol:{},a=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new M(r||[]);return i(a,\"_invoke\",{value:E(t,n,s)}),a}function h(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=c;var f=\"suspendedStart\",d=\"suspendedYield\",p=\"executing\",m=\"completed\",v={};function g(){}function y(){}function b(){}var _={};l(_,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(T([])));x&&x!==n&&r.call(x,a)&&(_=x);var k=b.prototype=g.prototype=Object.create(_);function S(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var u=h(t[i],t,o);if(\"throw\"!==u.type){var l=u.arg,c=l.value;return c&&\"object\"==Wt(c)&&r.call(c,\"__await\")?e.resolve(c.__await).then((function(t){n(\"next\",t,a,s)}),(function(t){n(\"throw\",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return n(\"throw\",t,a,s)}))}s(u.arg)}var o;i(this,\"_invoke\",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=f;return function(o,a){if(i===p)throw Error(\"Generator is already running\");if(i===m){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=D(s,r);if(u){if(u===v)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=p;var l=h(e,n,r);if(\"normal\"===l.type){if(i=r.done?m:d,l.arg===v)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=m,r.method=\"throw\",r.arg=l.arg)}}}function D(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,D(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),v;var o=h(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,v):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(A,this),this.reset(!0)}function T(e){if(e||\"\"===e){var n=e[a];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Wt(e)+\" is not iterable\")}return y.prototype=b,i(k,\"constructor\",{value:b,configurable:!0}),i(b,\"constructor\",{value:y,configurable:!0}),y.displayName=l(b,u,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===y||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,\"GeneratorFunction\")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),l(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),l(k,u,\"Generator\"),l(k,a,(function(){return this})),l(k,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)\"t\"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(\"root\"===a.tryLoc)return i(\"end\");if(a.tryLoc<=this.prev){var u=r.call(a,\"catchLoc\"),l=r.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;O(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),v}},e}function Zt(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function Kt(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Zt(o,r,i,a,s,\"next\",t)}function s(t){Zt(o,r,i,a,s,\"throw\",t)}a(void 0)}))}}var Xt={data:function(){return{activeName:\"t0\",curVer:chrome.runtime.getManifest().version,teamName:\"@MiniRPA\",curGoal:\"publish\"}},components:{SettingSysConfig:Object(qt.a)(Gt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",[n(\"el-row\",{attrs:{gutter:0}},[n(\"el-col\",{attrs:{span:23}},[n(\"el-tabs\",{staticClass:\"custom-tabs\",staticStyle:{height:\"390px\"},attrs:{\"tab-position\":\"top\"},model:{value:t.activeTabName,callback:function(e){t.activeTabName=e},expression:\"activeTabName\"}},[n(\"el-tab-pane\",{staticClass:\"tabpanel1\",staticStyle:{width:\"150px\"},attrs:{label:\"basic\",name:\"basic\"}},[n(\"span\",{staticStyle:{\"padding-right\":\"15px\"},attrs:{slot:\"label\",id:\"id_basic_setting\"},slot:\"label\"},[n(\"i\",{staticClass:\"el-icon-setting\"}),t._v(\"Free\")]),t._v(\" \"),n(\"el-container\",{staticStyle:{height:\"330px\",border:\"0px solid #eee\",width:\"550px\",\"overflow-x\":\"hidden\"}},[n(\"el-main\",{staticStyle:{\"padding-top\":\"5px\"}},[n(\"el-row\",{attrs:{gutter:20}},[n(\"el-col\",{attrs:{span:8,align:\"left\"}},[n(\"B\",[t._v(\" \"+t._s(t.$i18n(\"lbl_solver_switch\")))])],1),t._v(\" \"),n(\"el-col\",{attrs:{span:16,align:\"left\"}},[n(\"el-switch\",{attrs:{size:\"mini\"},on:{change:t.toggleSwitch},model:{value:t.localSetting.switchStatus,callback:function(e){t.$set(t.localSetting,\"switchStatus\",e)},expression:\"localSetting.switchStatus\"}})],1)],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"padding-top\":\"10px\",\"padding-bottom\":\"5px\"},attrs:{gutter:20}},[n(\"el-col\",{attrs:{span:8,align:\"left\"}},[n(\"B\",[t._v(\" \"+t._s(t.$i18n(\"lbl_addon_link_status\")))])],1),t._v(\" \"),n(\"el-col\",{attrs:{span:16,align:\"left\"}},[n(\"el-button\",{staticStyle:{width:\"25px\"},attrs:{type:\"primary\",id:\"id_refresh_btn\",size:\"mini\",disabled:!t.toggle,plain:\"\"},on:{click:t.refreshPartners}},[n(\"img\",{staticStyle:{cursor:\"pointer\",width:\"10px\",height:\"10px\"},attrs:{src:\"/static/icons/refresh.png\",\"element-loading-text\":\"reconnecting...\"}})])],1)],1),t._v(\" \"),n(\"el-row\",[n(\"el-col\",{attrs:{span:24,align:\"left\"}},[n(\"el-table\",{attrs:{id:\"table_addon\",data:t.partners,\"empty-text\":\"\",\"max-height\":\"350px\",width:\"480px\",\"border:none\":\"\"}},[n(\"div\",{attrs:{slot:\"empty\"},slot:\"empty\"},[t._v(\"\\n                                            \"+t._s(t.$i18n(\"lbl_no_addons\"))+\"\\n                                        \")]),t._v(\" \"),n(\"el-table-column\",{attrs:{prop:\"name\",label:\"addon Name\",width:\"270\",align:\"left\"},scopedSlots:t._u([{key:\"header\",fn:function(e){return[t._v(\"\\n                                                \"+t._s(t.$i18n(\"lbl_col_addonName\"))+\"\\n                                            \")]}},{key:\"default\",fn:function(e){return[e.row.url?n(\"span\",{style:t.isLoading?\"opacity:0.3;cursor: pointer\":\"\"},[n(\"a\",{attrs:{href:e.row.url,target:\"_blank\"}},[t._v(\"\\n                                                        \"+t._s(e.row.name)),n(\"span\",{staticStyle:{\"font-size\":\"10px\"}},[t._v(\"(>\"+t._s(e.row.minVer)+\")\")]),t._v(\" \"),\"not reachable\"===e.row.message?n(\"img\",{staticStyle:{cursor:\"pointer\",width:\"13px\",height:\"13px\",opacity:\"0.8\",\"vertical-align\":\"middle\",\"padding-left\":\"5px\"},attrs:{src:\"/static/icons/install.png\",alt:\"install the add-on\"}}):t._e()])]):n(\"span\",{style:t.isLoading?\"opacity:0.3;cursor: pointer\":\"\"},[t._v(\"\\n                                                    \"+t._s(e.row.name)),n(\"span\",{staticStyle:{\"font-size\":\"10px\"}},[t._v(\"(>\"+t._s(e.row.minVer)+\")\")])])]}}])}),t._v(\" \"),n(\"el-table-column\",{attrs:{prop:\"connected\",label:\"status\",width:\"70\",align:\"center\"},scopedSlots:t._u([{key:\"header\",fn:function(e){return[t._v(\"\\n                                                \"+t._s(t.$i18n(\"lbl_col_connected\"))+\"\\n                                            \")]}},{key:\"default\",fn:function(e){return[n(\"span\",{style:t.isLoading?\"opacity:0.3\":\"\"},[t._v(\"\\n                                                    \"+t._s(e.row.connected?\"Yes\":\"No\")+\"\\n                                                \")])]}}])}),t._v(\" \"),n(\"el-table-column\",{attrs:{prop:\"message\",label:\"notes\",width:\"140\",align:\"left\"},scopedSlots:t._u([{key:\"header\",fn:function(e){return[t._v(\"\\n                                                \"+t._s(t.$i18n(\"lbl_col_msg\"))+\"\\n                                            \")]}},{key:\"default\",fn:function(e){return[n(\"span\",{style:t.isLoading?\"opacity:0.3\":\"\"},[t._v(\"\\n                                                    \"+t._s(e.row.message)+\"\\n                                                \")])]}}])})],1)],1)],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"line-height\":\"1\"},attrs:{gutter:20}},[n(\"el-col\",{attrs:{span:24,align:\"left\"}})],1)],1)],1)],1),t._v(\" \"),n(\"el-tab-pane\",{staticStyle:{width:\"150px\"},attrs:{label:\"pro\",name:\"pro\"}},[n(\"span\",{staticStyle:{\"padding-right\":\"15px\"},attrs:{slot:\"label\",id:\"id_pro_setting\"},slot:\"label\"},[n(\"i\",{staticClass:\"el-icon-setting\"}),t._v(\"Pro\")]),t._v(\" \"),n(\"el-container\",{staticStyle:{height:\"370px\",width:\"540px\",border:\"0px solid #eee\"}},[n(\"el-main\",{staticStyle:{\"padding-top\":\"5px\",\"padding-left\":\"10px\"}},[\"1\"==t.pageStatus?n(\"div\",[t.isShipKeyValid?n(\"div\",[n(\"el-row\",[n(\"el-col\",{staticStyle:{\"padding-top\":\"5px\"},attrs:{span:4}},[n(\"b\",[t._v(\"Pro Key\")])]),t._v(\" \"),n(\"el-col\",{attrs:{span:20}},[n(\"el-input\",{attrs:{placeholder:t.shipKey}},[n(\"el-button\",{attrs:{slot:\"append\",icon:\"el-icon-copy-document\"},on:{click:t.copyKey},slot:\"append\"})],1)],1)],1),t._v(\" \"),n(\"el-row\",[n(\"el-col\",{staticStyle:{\"padding-top\":\"0px\",\"text-align\":\"right\"},attrs:{span:24}},[t._v(\"\\n                                            (Expires On:\\n                                            \"),n(\"span\",{staticStyle:{color:\"red\"}},[t._v(t._s(new Date(t.config.userdata.endAt).toLocaleDateString(\"en-US\",{year:\"numeric\",month:\"2-digit\",day:\"2-digit\"})))]),t._v(\")\\n                                        \")])],1),t._v(\" \"),n(\"div\",{staticStyle:{height:\"20px\"}},[t._v(\" \")])],1):n(\"div\",[n(\"el-row\",[n(\"el-col\",[n(\"el-input\",{attrs:{placeholder:\"INPUT PRO KEY\"},model:{value:t.tempShipKey,callback:function(e){t.tempShipKey=e},expression:\"tempShipKey\"}},[n(\"el-button\",{attrs:{slot:\"append\",type:\"primary\",plain:\"\",disabled:\"\"===t.tempShipKey,icon:\"el-icon-connection\"},on:{click:t.bindShipKey},slot:\"append\"},[t._v(\"Bind\")])],1)],1)],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"padding-top\":\"20px\",\"padding-bottom\":\"20px\"}},[n(\"el-col\",{staticStyle:{\"text-align\":\"center\"}},[n(\"el-link\",{staticStyle:{\"text-decoration\":\"underline\"},on:{click:t.goBuyPage}},[t._v(\"How to get a Pro Key\")])],1)],1)],1),t._v(\" \"),n(\"el-collapse\",{attrs:{accordion:\"\"},on:{change:t.changeActiveProCard},model:{value:t.activeProCard,callback:function(e){t.activeProCard=e},expression:\"activeProCard\"}},[n(\"el-collapse-item\",{attrs:{title:\"hCaptcha\",name:\"hc\"}},[n(\"template\",{slot:\"title\"},[t.localSetting.hc_enabled?n(\"span\",[t._v(\"\\n                                                hCaptcha\\n                                            \")]):n(\"span\",{staticStyle:{\"font-style\":\"italic\",opacity:\"0.5\"}},[t._v(\"\\n                                                hCaptcha\\n                                            \")])]),t._v(\" \"),n(\"el-card\",{staticClass:\"box-card\",attrs:{shadow:\"hover\"}},[n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"left\"},attrs:{span:16}},[t._v(\"\\n                                                    Enabled:\\n                                                \")]),t._v(\" \"),n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",alignment:\"right\"},attrs:{span:8}},[n(\"el-switch\",{staticStyle:{float:\"right\"},attrs:{size:\"mini\",disabled:!t.isShipKeyValid},on:{change:function(e){return t.localSettingChanged()}},model:{value:t.localSetting.hc_enabled,callback:function(e){t.$set(t.localSetting,\"hc_enabled\",e)},expression:\"localSetting.hc_enabled\"}})],1)],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"left\"},attrs:{span:12}},[t._v(\"\\n                                                    AI Model Versions:\\n                                                \")]),t._v(\" \"),n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"right\",\"padding-right\":\"5px\"},attrs:{span:12}},[n(\"el-checkbox\",{staticStyle:{\"font-weight\":\"300\"},attrs:{checked:\"\",disabled:\"\"}},[t._v(\"Free\")]),t._v(\" \"),n(\"el-checkbox\",{staticStyle:{\"font-weight\":\"300\"},attrs:{disabled:\"\"},model:{value:t.isShipKeyValid,callback:function(e){t.isShipKeyValid=e},expression:\"isShipKeyValid\"}},[t._v(\"Pro\")])],1)],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"left\"},attrs:{span:17}},[t._v(\"\\n                                                    Solving Speed:\\n                                                \")]),t._v(\" \"),n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"right\"},attrs:{span:7}},[n(\"el-select\",{staticStyle:{height:\"15px\"},attrs:{placeholder:\"Select One\",size:\"mini\",disabled:!t.isShipKeyValid},on:{change:function(e){return t.localSettingChanged()}},model:{value:t.localSetting.hcs,callback:function(e){t.$set(t.localSetting,\"hcs\",e)},expression:\"localSetting.hcs\"}},t._l(t.speedOptions,(function(t){return n(\"el-option\",{key:t.value,staticStyle:{\"font-size\":\"12px\"},attrs:{label:t.label,value:t.value}})})),1)],1)],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"left\"},attrs:{span:16}},[t._v(\"\\n                                                    Automation Integration:\\n                                                \")]),t._v(\" \"),n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"right\",\"padding-right\":\"5px\"},attrs:{span:8}},[t.isShipKeyValid?n(\"span\",[t._v(\"\\n                                                        supported \"),n(\"b\",[n(\"sup\",[t._v(\"*\")])])]):n(\"span\",{staticStyle:{opacity:\"0.5\"}},[t._v(\"\\n                                                        supported \"),n(\"b\",[n(\"sup\",[t._v(\"*\")])])])])],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"left\"},attrs:{span:16}},[t._v(\"\\n                                                    Post Actions:\\n                                                \")]),t._v(\" \"),n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"right\",\"padding-right\":\"5px\"},attrs:{span:8}},[t.isShipKeyValid?n(\"span\",[t._v(\"\\n                                                        supported \"),n(\"b\",[n(\"sup\",[t._v(\"*\")])])]):n(\"span\",{staticStyle:{opacity:\"0.5\"}},[t._v(\"\\n                                                        supported \"),n(\"b\",[n(\"sup\",[t._v(\"*\")])])])])],1)],1),t._v(\"\\n                                        * integration with\\n                                        \"),n(\"a\",{attrs:{href:\"https://chrome.google.com/webstore/detail/nocoding-data-scraper-eas/ojaffphbffmdaicdkahnmihipclmepok?hl=en-US\"}},[t._v(\"NoCoding Data Scraper\")]),t._v(\"\\n                                        seamlessly\\n                                    \")],2),t._v(\" \"),n(\"el-collapse-item\",{attrs:{title:\"reCaptcha\",name:\"re\"}},[n(\"template\",{slot:\"title\"},[t.localSetting.re_enabled?n(\"span\",[t._v(\"\\n                                                reCaptcha\\n                                            \")]):n(\"span\",{staticStyle:{\"font-style\":\"italic\",opacity:\"0.5\"}},[t._v(\"\\n                                                reCaptcha\\n                                            \")])]),t._v(\" \"),n(\"el-card\",{staticClass:\"box-card\",attrs:{shadow:\"hover\"}},[n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"left\"},attrs:{span:16}},[t._v(\"\\n                                                    Enabled:\\n                                                \")]),t._v(\" \"),n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",alignment:\"right\"},attrs:{span:8}},[n(\"el-switch\",{staticStyle:{float:\"right\"},attrs:{size:\"mini\",disabled:!t.isShipKeyValid},on:{change:function(e){return t.localSettingChanged()}},model:{value:t.localSetting.re_enabled,callback:function(e){t.$set(t.localSetting,\"re_enabled\",e)},expression:\"localSetting.re_enabled\"}})],1)],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"left\"},attrs:{span:12}},[t._v(\"\\n                                                    AI Model Versions:\\n                                                \")]),t._v(\" \"),n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"right\",\"padding-right\":\"5px\"},attrs:{span:12}},[n(\"el-checkbox\",{staticStyle:{\"font-weight\":\"300\"},attrs:{checked:\"\",disabled:\"\"}},[t._v(\"Free\")]),t._v(\" \"),n(\"el-checkbox\",{staticStyle:{\"font-weight\":\"300\"},attrs:{disabled:\"\"},model:{value:t.isShipKeyValid,callback:function(e){t.isShipKeyValid=e},expression:\"isShipKeyValid\"}},[t._v(\"Pro\")])],1)],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"left\"},attrs:{span:17}},[t._v(\"\\n                                                    Solving Speed:\\n                                                \")]),t._v(\" \"),n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"right\"},attrs:{span:7}},[n(\"el-select\",{staticStyle:{height:\"15px\"},attrs:{placeholder:\"Select One\",size:\"mini\",disabled:!t.isShipKeyValid},on:{change:function(e){return t.localSettingChanged()}},model:{value:t.localSetting.res,callback:function(e){t.$set(t.localSetting,\"res\",e)},expression:\"localSetting.res\"}},t._l(t.speedOptions,(function(t){return n(\"el-option\",{key:t.value,staticStyle:{\"font-size\":\"12px\"},attrs:{label:t.label,value:t.value}})})),1)],1)],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"left\"},attrs:{span:16}},[t._v(\"\\n                                                    Automation Integration:\\n                                                \")]),t._v(\" \"),n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"right\",\"padding-right\":\"5px\"},attrs:{span:8}},[t.isShipKeyValid?n(\"span\",[t._v(\"\\n                                                        supported \"),n(\"b\",[n(\"sup\",[t._v(\"*\")])])]):n(\"span\",{staticStyle:{opacity:\"0.5\"}},[t._v(\"\\n                                                        supported \"),n(\"b\",[n(\"sup\",[t._v(\"*\")])])])])],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"left\"},attrs:{span:16}},[t._v(\"\\n                                                    Post Actions:\\n                                                \")]),t._v(\" \"),n(\"el-col\",{staticStyle:{\"font-size\":\"12px\",\"text-align\":\"right\",\"padding-right\":\"5px\"},attrs:{span:8}},[t.isShipKeyValid?n(\"span\",[t._v(\"\\n                                                        supported \"),n(\"b\",[n(\"sup\",[t._v(\"*\")])])]):n(\"span\",{staticStyle:{opacity:\"0.5\"}},[t._v(\"\\n                                                        supported \"),n(\"b\",[n(\"sup\",[t._v(\"*\")])])])])],1)],1),t._v(\"\\n                                        * integration with\\n                                        \"),n(\"a\",{attrs:{href:\"https://chrome.google.com/webstore/detail/nocoding-data-scraper-eas/ojaffphbffmdaicdkahnmihipclmepok?hl=en-US\"}},[t._v(\"NoCoding Data Scraper\")]),t._v(\"\\n                                        seamlessly\\n                                    \")],2),t._v(\" \"),n(\"el-collapse-item\",{attrs:{title:\"Domain Blacklist\",name:\"dbl\"}},[n(\"template\",{slot:\"title\"},[t.localSetting.re_enabled||t.localSetting.hc_enabled?n(\"span\",[t._v(\" Domain Blacklist (\"+t._s(t.localSetting.bl_domains?t.localSetting.bl_domains.length:0)+\") \")]):n(\"span\",{staticStyle:{\"font-style\":\"italic\",opacity:\"0.5\"}},[t._v(\"\\n                                                Domain Blacklist (\"+t._s(t.localSetting.bl_domains?t.localSetting.bl_domains.length:0)+\")\\n                                            \")])]),t._v(\" \"),n(\"el-card\",{staticClass:\"box-card\",attrs:{shadow:\"hover\"}},[n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{attrs:{span:24,align:\"left\"}},[n(\"el-input\",{model:{value:t.curPageDomain,callback:function(e){t.curPageDomain=e},expression:\"curPageDomain\"}},[n(\"el-button\",{attrs:{slot:\"append\",icon:\"el-icon-plus\",disabled:!t.isShipKeyValid||0===t.curPageDomain.trim().length||!t.localSetting.re_enabled&&!t.localSetting.hc_enabled},on:{click:t.addBlockDomain},slot:\"append\"})],1)],1)],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"line-height\":\"2.5\"},attrs:{gutter:7}},[n(\"el-col\",{attrs:{span:8,align:\"left\"}},[t._v(\"\\n                                                    Ignored Domains:\\n                                                \")]),t._v(\" \"),n(\"el-col\",{attrs:{span:16,align:\"left\"}})],1),t._v(\" \"),t._l(t.localSetting.bl_domains,(function(e,r){return n(\"el-row\",{key:r,staticStyle:{\"line-height\":\"15px\"}},[n(\"el-col\",{attrs:{span:22}},[t._v(t._s(e))]),t._v(\" \"),n(\"el-col\",{attrs:{span:2}},[n(\"el-button\",{attrs:{type:\"text\",icon:\"el-icon-minus\",disabled:!t.isShipKeyValid||!t.localSetting.re_enabled&&!t.localSetting.hc_enabled},on:{click:function(n){return t.delBlockDomain(e)}}})],1)],1)}))],2)],2)],1)],1):\"2\"==t.pageStatus?n(\"div\",[n(\"el-row\",{staticStyle:{\"padding-top\":\"0px\",\"padding-bottom\":\"10px\"},attrs:{type:\"flex\",justify:\"center\",align:\"middle\"}},[n(\"el-col\",{attrs:{span:4}},[n(\"span\",{staticStyle:{display:\"inline-block\",\"padding-left\":\"2px\",\"padding-top\":\"10px\",\"font-size\":\"14px\",cursor:\"pointer\",color:\"red\"},on:{click:function(e){return t.backToPro()}}},[n(\"i\",{staticClass:\"el-icon-back\"}),t._v(\"back\")])]),t._v(\" \"),n(\"el-col\",{attrs:{span:20}},[n(\"span\",{staticStyle:{\"padding-left\":\"20px\",\"font-size\":\"20px\",\"font-weight\":\"500\"}},[t._v(\"One-off Pro Key Options\")])])],1),t._v(\" \"),n(\"el-row\",{attrs:{gutter:20}},[n(\"el-col\",{attrs:{span:5}},[n(\"el-card\",{staticClass:\"box-card\",staticStyle:{width:\"105px\"},attrs:{shadow:\"hover\"}},[n(\"div\",{staticClass:\"clearfix\",staticStyle:{height:\"30px\"},attrs:{slot:\"header\"},slot:\"header\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\",\"font-size\":\"16px\"}},[t._v(\"Free\")])]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[t._v(\"\\n                                                Free Features\\n                                            \")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[t._v(\"\\n                                                Regular Models\\n                                            \")])])],1),t._v(\" \"),n(\"el-col\",{attrs:{span:19}},[n(\"el-row\",{attrs:{gutter:5}},[n(\"el-col\",{attrs:{span:8}},[n(\"el-card\",{staticClass:\"box-card\",staticStyle:{width:\"125px\"},attrs:{shadow:\"hover\"}},[n(\"div\",{staticClass:\"clearfix\",staticStyle:{height:\"30px\"},attrs:{slot:\"header\"},slot:\"header\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\",\"font-size\":\"16px\"}},[t._v(\"$\"+t._s(t.priceList[0].amount))]),t._v(\" \"),n(\"el-button\",{staticClass:\"checkout\",attrs:{type:\"primary\"},on:{click:function(e){return t.gotoPay(t.priceList[0].timeType)}}},[n(\"div\",[t._v(\"\\n                                                                Stripe\\n                                                            \")])])],1),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"b\",[t._v(\"One-day\")]),t._v(\" Pro Key\")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\"}},[t._v(\"All\")]),t._v(\" Features\")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\"}},[t._v(\"Unlimited\")]),t._v(\" Use\")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\"}},[t._v(\"Latest\")]),t._v(\" Models\")])])],1),t._v(\" \"),n(\"el-col\",{attrs:{span:8}},[n(\"el-card\",{staticClass:\"box-card\",staticStyle:{width:\"125px\",\"background-color\":\"#fffae0\"},attrs:{shadow:\"hover\"}},[n(\"div\",{staticClass:\"clearfix\",staticStyle:{height:\"30px\"},attrs:{slot:\"header\"},slot:\"header\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\",\"font-size\":\"16px\"}},[t._v(\"$\"+t._s(t.priceList[1].amount))]),t._v(\" \"),n(\"el-button\",{staticClass:\"checkout\",attrs:{type:\"primary\"},on:{click:function(e){return t.gotoPay(t.priceList[1].timeType)}}},[n(\"div\",[t._v(\"\\n                                                                Stripe\\n                                                            \")])]),t._v(\" \"),n(\"span\",{staticStyle:{color:\"gray\",\"text-decoration\":\"line-through\",\"font-style\":\"italic\"}},[t._v(\"$42\")]),t._v(\"  \\n                                                    \")],1),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"b\",[t._v(\"30-days\")]),t._v(\" Pro Key\")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\"}},[t._v(\"All\")]),t._v(\" Features\")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\"}},[t._v(\"Unlimited\")]),t._v(\" Use\")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\"}},[t._v(\"Latest\")]),t._v(\" Models\")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\"}},[t._v(\"76%\")]),t._v(\" OFF\")])])],1),t._v(\" \"),n(\"el-col\",{attrs:{span:8}},[n(\"el-card\",{staticClass:\"box-card\",staticStyle:{width:\"125px\",\"background-color\":\"rgb(255, 250, 195)\"},attrs:{shadow:\"hover\"}},[n(\"div\",{staticClass:\"clearfix\",staticStyle:{height:\"30px\"},attrs:{slot:\"header\"},slot:\"header\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\",\"font-size\":\"16px\"}},[t._v(\"$\"+t._s(t.priceList[2].amount))]),t._v(\" \"),n(\"el-button\",{staticClass:\"checkout\",attrs:{type:\"primary\"},on:{click:function(e){return t.gotoPay(t.priceList[2].timeType)}}},[n(\"div\",[t._v(\"\\n                                                                Stripe\\n                                                            \")])]),t._v(\" \"),n(\"span\",{staticStyle:{color:\"gray\",\"text-decoration\":\"line-through\",\"font-style\":\"italic\"}},[t._v(\"$250\")])],1),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"b\",[t._v(\"180-days\")]),t._v(\" Pro Key\")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\"}},[t._v(\"All\")]),t._v(\" Features\")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\"}},[t._v(\"Unlimited\")]),t._v(\" Use\")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\"}},[t._v(\"Latest\")]),t._v(\" Models\")]),t._v(\" \"),n(\"div\",{staticClass:\"text item\"},[n(\"span\",{staticStyle:{\"font-weight\":\"500\"}},[t._v(\"80%\")]),t._v(\" OFF\")])])],1)],1)],1)],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"padding-top\":\"50px\"},attrs:{gutter:20}},[n(\"el-col\",{attrs:{span:1}},[n(\"i\",{staticClass:\"el-icon-info\",staticStyle:{\"font-size\":\"16px\",color:\"yellowgreen\"}})]),t._v(\" \"),n(\"el-col\",{attrs:{span:22}},[t._v(\"\\n                                        All Pro plans are not subscription, but a one-time charge.\\n                                    \")])],1),t._v(\" \"),n(\"el-row\",{staticStyle:{\"padding-top\":\"5px\"},attrs:{gutter:20}},[n(\"el-col\",{attrs:{span:1}},[t._v(\"\\n                                         \\n                                    \")]),t._v(\" \"),n(\"el-col\",{attrs:{span:22}},[t._v(\"\\n                                        Contact us for any payment issues: \\n                                        \"),n(\"a\",{attrs:{href:\"mailto:service@minirpa.net?subject=Questions on Captcha Solver\"}},[t._v(\"service@minirpa.net\")])])],1)],1):t._e()])],1)],1)],1)],1)],1),t._v(\" \"),\"basic\"===t.activeTabName?n(\"el-row\",{staticStyle:{\"line-height\":\"1\",\"padding-bottom\":\"5px\"},attrs:{gutter:20}},[n(\"el-col\",{attrs:{span:24,align:\"left\"}},[n(\"img\",{attrs:{src:\"/static/icons/comments.png\",width:\"18px\",height:\"18px\"}}),t._v(\" \"),\"chrome\"===t.browser?n(\"a\",{attrs:{href:\"https://chromewebstore.google.com/detail/free-captcha-solver-auto/hlifkpholllijblknnmbfagnkjneagid\",target:\"_blank\"}},[t._v(\"\\n                \"+t._s(t.$i18n(\"lbl_comment_1\"))+\"   \"+t._s(t.$i18n(\"lbl_comment_2\")))]):n(\"a\",{attrs:{href:\"https://microsoftedge.microsoft.com/addons/detail/free-captcha-solver-auto/namdkelfpkkinnehndcknoohfpbfhnen\",target:\"_blank\"}},[t._v(\"\\n                \"+t._s(t.$i18n(\"lbl_comment_1\"))+\"  \"+t._s(t.$i18n(\"lbl_comment_2\")))])])],1):t._e()],1)}),[],!1,null,\"409144fa\",null).exports},created:function(){var t=this;return Kt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t;case 1:case\"end\":return e.stop()}}),e)})))()},mounted:function(){},methods:{login:function(){var t=this;return Kt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t;case 1:case\"end\":return e.stop()}}),e)})))()}}},Jt=(n(386),[{path:\"/\",component:Object(qt.a)(Xt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticStyle:{position:\"relative\"}},[n(\"el-tabs\",{attrs:{\"tab-position\":\"left\",type:\"border-card\",id:\"id_popup_tabs\"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:\"activeName\"}},[n(\"el-tab-pane\",{attrs:{name:\"t0\"}},[n(\"span\",{staticStyle:{padding:\"0 3px\"},attrs:{slot:\"label\"},slot:\"label\"},[n(\"el-tooltip\",{staticClass:\"item\",attrs:{effect:\"dark\",content:\"Setting\",placement:\"right-end\",\"open-delay\":500}},[n(\"div\",{attrs:{slot:\"content\"},slot:\"content\"},[t._v(\"\\n                        \"+t._s(t.$i18n(\"lbl_logo\"))+\"\\n                    \")]),t._v(\" \"),n(\"img\",{attrs:{src:\"/static/icons/cs_logo-32.png\",width:\"26px\",height:\"26px\"}})])],1),t._v(\" \"),n(\"setting-sys-config\",{ref:\"sysConfig\"})],1)],1),t._v(\" \"),n(\"span\",{staticStyle:{position:\"absolute\",left:\"-5px\",bottom:\"1px\",opacity:\"0.5\",\"font-size\":\"12px\",\"-webkit-transform\":\"scale(0.66)\"}},[n(\"a\",{attrs:{target:\"_blank\",href:\"#\"}},[n(\"span\",{staticStyle:{\"font-size\":\"16px\"}},[t._v(\"v\"+t._s(t.curVer))]),t._v(\" \"),n(\"br\"),t._v(\"\\n            \"+t._s(t.teamName)+\" \"+t._s(\"publish\"==t.curGoal?\"\":\"<\"+t.curGoal+\">\")+\"\\n            \"),n(\"br\")])])],1)}),[],!1,null,null,null).exports}]);r.default.use(Bt);e.a=new Bt({routes:Jt})},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}function i(){i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s=\"function\"==typeof Symbol?Symbol:{},u=s.iterator||\"@@iterator\",l=s.asyncIterator||\"@@asyncIterator\",c=s.toStringTag||\"@@toStringTag\";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},\"\")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new I(r||[]);return a(o,\"_invoke\",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=f;var p=\"suspendedStart\",m=\"suspendedYield\",v=\"executing\",g=\"completed\",y={};function b(){}function _(){}function w(){}var x={};h(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==n&&o.call(S,u)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function E(t){[\"next\",\"throw\",\"return\"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(i,a,s,u){var l=d(t[i],t,a);if(\"throw\"!==l.type){var c=l.arg,h=c.value;return h&&\"object\"==r(h)&&o.call(h,\"__await\")?e.resolve(h.__await).then((function(t){n(\"next\",t,s,u)}),(function(t){n(\"throw\",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n(\"throw\",t,s,u)}))}u(l.arg)}var i;a(this,\"_invoke\",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var i=p;return function(o,a){if(i===v)throw Error(\"Generator is already running\");if(i===g){if(\"throw\"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);i=v;var l=d(e,n,r);if(\"normal\"===l.type){if(i=r.done?g:m,l.arg===y)continue;return{value:l.arg,done:r.done}}\"throw\"===l.type&&(i=g,r.method=\"throw\",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,\"throw\"===r&&e.iterator.return&&(n.method=\"return\",n.arg=t,O(e,n),\"throw\"===n.method)||\"return\"!==r&&(n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),y;var o=d(i,e.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=t),n.delegate=null,y):a:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(M,this),this.reset(!0)}function P(e){if(e||\"\"===e){var n=e[u];if(n)return n.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+\" is not iterable\")}return _.prototype=w,a(C,\"constructor\",{value:w,configurable:!0}),a(w,\"constructor\",{value:_,configurable:!0}),_.displayName=h(w,c,\"GeneratorFunction\"),e.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===_||\"GeneratorFunction\"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,c,\"GeneratorFunction\")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},E(D.prototype),h(D.prototype,l,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new D(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(C),h(C,c,\"Generator\"),h(C,u,(function(){return this})),h(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)\"t\"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type=\"throw\",s.arg=e,n.next=r,i&&(n.method=\"next\",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return r(\"end\");if(a.tryLoc<=this.prev){var u=o.call(a,\"catchLoc\"),l=o.call(a,\"finallyLoc\");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,\"finallyLoc\")&&this.prev<r.finallyLoc){var i=r;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;T(n)}return i}}throw Error(\"illegal catch attempt\")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=t),y}},e}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}var a={data:function(){return{}},created:function(){return(t=i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case\"end\":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,\"next\",t)}function u(t){o(a,r,i,s,u,\"throw\",t)}s(void 0)}))})();var t}},s=a,u=n(245),l=Object(u.a)(s,(function(){var t=this.$createElement,e=this._self._c||t;return e(\"div\",[e(\"router-view\")],1)}),[],!1,null,null,null);e.a=l.exports},function(t,e,n){\"use strict\";n.r(e),function(t){var e=n(60),r=n(323),i=n(319),o=n.n(i),a=(n(384),n(322)),s=n(320),u=n.n(s),l=n(254);t.browser=n(291),e.default.config.productionTip=!1;var c=new l.a({reload:!0});e.default.use(o.a,{size:\"mini\"}),e.default.use(u.a),e.default.prototype.$getConfig=c.getConfig.bind(c),e.default.prototype.$sendMessageToBack=c.sendMessageToBack.bind(c),e.default.prototype.$reloadConfig=c.reloadConfig.bind(c),new e.default({el:\"#app\",router:a.a,created:function(){},render:function(t){return t(r.a)}})}.call(this,n(10))},function(t,e,n){\"use strict\";e.__esModule=!0,e.validateRangeInOneMonth=e.extractTimeFormat=e.extractDateFormat=e.nextYear=e.prevYear=e.nextMonth=e.prevMonth=e.changeYearMonthAndClampDate=e.timeWithinRange=e.limitTimeRange=e.clearMilliseconds=e.clearTime=e.modifyWithTimeString=e.modifyTime=e.modifyDate=e.range=e.getRangeMinutes=e.getMonthDays=e.getPrevMonthLastDays=e.getRangeHours=e.getWeekNumber=e.getStartDateOfMonth=e.nextDate=e.prevDate=e.getFirstDayOfMonth=e.getDayCountOfYear=e.getDayCountOfMonth=e.parseDate=e.formatDate=e.isDateObject=e.isDate=e.toDate=e.getI18nSettings=void 0;var r,i=n(294),o=(r=i)&&r.__esModule?r:{default:r},a=n(268);var s=[\"sun\",\"mon\",\"tue\",\"wed\",\"thu\",\"fri\",\"sat\"],u=[\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\"sep\",\"oct\",\"nov\",\"dec\"],l=e.getI18nSettings=function(){return{dayNamesShort:s.map((function(t){return(0,a.t)(\"el.datepicker.weeks.\"+t)})),dayNames:s.map((function(t){return(0,a.t)(\"el.datepicker.weeks.\"+t)})),monthNamesShort:u.map((function(t){return(0,a.t)(\"el.datepicker.months.\"+t)})),monthNames:u.map((function(t,e){return(0,a.t)(\"el.datepicker.month\"+(e+1))})),amPm:[\"am\",\"pm\"]}},c=e.toDate=function(t){return h(t)?new Date(t):null},h=e.isDate=function(t){return null!=t&&(!isNaN(new Date(t).getTime())&&!Array.isArray(t))},f=(e.isDateObject=function(t){return t instanceof Date},e.formatDate=function(t,e){return(t=c(t))?o.default.format(t,e||\"yyyy-MM-dd\",l()):\"\"},e.parseDate=function(t,e){return o.default.parse(t,e||\"yyyy-MM-dd\",l())}),d=e.getDayCountOfMonth=function(t,e){return isNaN(+e)?31:new Date(t,+e+1,0).getDate()},p=(e.getDayCountOfYear=function(t){return t%400==0||t%100!=0&&t%4==0?366:365},e.getFirstDayOfMonth=function(t){var e=new Date(t.getTime());return e.setDate(1),e.getDay()},e.prevDate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-e)});e.nextDate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},e.getStartDateOfMonth=function(t,e){var n=new Date(t,e,1),r=n.getDay();return p(n,0===r?7:r)},e.getWeekNumber=function(t){if(!h(t))return null;var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},e.getRangeHours=function(t){var e=[],n=[];if((t||[]).forEach((function(t){var e=t.map((function(t){return t.getHours()}));n=n.concat(function(t,e){for(var n=[],r=t;r<=e;r++)n.push(r);return n}(e[0],e[1]))})),n.length)for(var r=0;r<24;r++)e[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)e[i]=!1;return e},e.getPrevMonthLastDays=function(t,e){if(e<=0)return[];var n=new Date(t.getTime());n.setDate(0);var r=n.getDate();return v(e).map((function(t,n){return r-(e-n-1)}))},e.getMonthDays=function(t){var e=new Date(t.getFullYear(),t.getMonth()+1,0).getDate();return v(e).map((function(t,e){return e+1}))};function m(t,e,n,r){for(var i=e;i<n;i++)t[i]=r}e.getRangeMinutes=function(t,e){var n=new Array(60);return t.length>0?t.forEach((function(t){var r=t[0],i=t[1],o=r.getHours(),a=r.getMinutes(),s=i.getHours(),u=i.getMinutes();o===e&&s!==e?m(n,a,60,!0):o===e&&s===e?m(n,a,u+1,!0):o!==e&&s===e?m(n,0,u+1,!0):o<e&&s>e&&m(n,0,60,!0)})):m(n,0,60,!0),n};var v=e.range=function(t){return Array.apply(null,{length:t}).map((function(t,e){return e}))},g=e.modifyDate=function(t,e,n,r){return new Date(e,n,r,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},y=e.modifyTime=function(t,e,n,r){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,n,r,t.getMilliseconds())},b=(e.modifyWithTimeString=function(t,e){return null!=t&&e?(e=f(e,\"HH:mm:ss\"),y(t,e.getHours(),e.getMinutes(),e.getSeconds())):t},e.clearTime=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.clearMilliseconds=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),0)},e.limitTimeRange=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"HH:mm:ss\";if(0===e.length)return t;var r=function(t){return o.default.parse(o.default.format(t,n),n)},i=r(t),a=e.map((function(t){return t.map(r)}));if(a.some((function(t){return i>=t[0]&&i<=t[1]})))return t;var s=a[0][0],u=a[0][0];return a.forEach((function(t){s=new Date(Math.min(t[0],s)),u=new Date(Math.max(t[1],s))})),g(i<s?s:u,t.getFullYear(),t.getMonth(),t.getDate())}),_=(e.timeWithinRange=function(t,e,n){return b(t,e,n).getTime()===t.getTime()},e.changeYearMonthAndClampDate=function(t,e,n){var r=Math.min(t.getDate(),d(e,n));return g(t,e,n,r)});e.prevMonth=function(t){var e=t.getFullYear(),n=t.getMonth();return 0===n?_(t,e-1,11):_(t,e,n-1)},e.nextMonth=function(t){var e=t.getFullYear(),n=t.getMonth();return 11===n?_(t,e+1,0):_(t,e,n+1)},e.prevYear=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.getFullYear(),r=t.getMonth();return _(t,n-e,r)},e.nextYear=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.getFullYear(),r=t.getMonth();return _(t,n+e,r)},e.extractDateFormat=function(t){return t.replace(/\\W?m{1,2}|\\W?ZZ/g,\"\").replace(/\\W?h{1,2}|\\W?s{1,3}|\\W?a/gi,\"\").trim()},e.extractTimeFormat=function(t){return t.replace(/\\W?D{1,2}|\\W?Do|\\W?d{1,4}|\\W?M{1,4}|\\W?y{2,4}/g,\"\").trim()},e.validateRangeInOneMonth=function(t,e){return t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}},function(t,e,n){\"use strict\";e.__esModule=!0,e.default={el:{colorpicker:{confirm:\"确定\",clear:\"清空\"},datepicker:{now:\"此刻\",today:\"今天\",cancel:\"取消\",clear:\"清空\",confirm:\"确定\",selectDate:\"选择日期\",selectTime:\"选择时间\",startDate:\"开始日期\",startTime:\"开始时间\",endDate:\"结束日期\",endTime:\"结束时间\",prevYear:\"前一年\",nextYear:\"后一年\",prevMonth:\"上个月\",nextMonth:\"下个月\",year:\"年\",month1:\"1 月\",month2:\"2 月\",month3:\"3 月\",month4:\"4 月\",month5:\"5 月\",month6:\"6 月\",month7:\"7 月\",month8:\"8 月\",month9:\"9 月\",month10:\"10 月\",month11:\"11 月\",month12:\"12 月\",weeks:{sun:\"日\",mon:\"一\",tue:\"二\",wed:\"三\",thu:\"四\",fri:\"五\",sat:\"六\"},months:{jan:\"一月\",feb:\"二月\",mar:\"三月\",apr:\"四月\",may:\"五月\",jun:\"六月\",jul:\"七月\",aug:\"八月\",sep:\"九月\",oct:\"十月\",nov:\"十一月\",dec:\"十二月\"}},select:{loading:\"加载中\",noMatch:\"无匹配数据\",noData:\"无数据\",placeholder:\"请选择\"},cascader:{noMatch:\"无匹配数据\",loading:\"加载中\",placeholder:\"请选择\",noData:\"暂无数据\"},pagination:{goto:\"前往\",pagesize:\"条/页\",total:\"共 {total} 条\",pageClassifier:\"页\"},messagebox:{title:\"提示\",confirm:\"确定\",cancel:\"取消\",error:\"输入的数据不合法!\"},upload:{deleteTip:\"按 delete 键可删除\",delete:\"删除\",preview:\"查看图片\",continue:\"继续上传\"},table:{emptyText:\"暂无数据\",confirmFilter:\"筛选\",resetFilter:\"重置\",clearFilter:\"全部\",sumText:\"合计\"},tree:{emptyText:\"暂无数据\"},transfer:{noMatch:\"无匹配数据\",noData:\"无数据\",titles:[\"列表 1\",\"列表 2\"],filterPlaceholder:\"请输入搜索内容\",noCheckedFormat:\"共 {total} 项\",hasCheckedFormat:\"已选 {checked}/{total} 项\"},image:{error:\"加载失败\"},pageHeader:{title:\"返回\"},popconfirm:{confirmButtonText:\"确定\",cancelButtonText:\"取消\"},empty:{description:\"暂无数据\"}}}},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=function(t){return function(t){return!!t&&\"object\"===r(t)}(t)&&!function(t){var e=Object.prototype.toString.call(t);return\"[object RegExp]\"===e||\"[object Date]\"===e||function(t){return t.$$typeof===o}(t)}(t)};var o=\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"react.element\"):60103;function a(t,e){var n;return e&&!0===e.clone&&i(t)?u((n=t,Array.isArray(n)?[]:{}),t,e):t}function s(t,e,n){var r=t.slice();return e.forEach((function(e,o){void 0===r[o]?r[o]=a(e,n):i(e)?r[o]=u(t[o],e,n):-1===t.indexOf(e)&&r.push(a(e,n))})),r}function u(t,e,n){var r=Array.isArray(e);return r===Array.isArray(t)?r?((n||{arrayMerge:s}).arrayMerge||s)(t,e,n):function(t,e,n){var r={};return i(t)&&Object.keys(t).forEach((function(e){r[e]=a(t[e],n)})),Object.keys(e).forEach((function(o){i(e[o])&&t[o]?r[o]=u(t[o],e[o],n):r[o]=a(e[o],n)})),r}(t,e,n):a(e,n)}u.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error(\"first argument should be an array with at least two elements\");return t.reduce((function(t,n){return u(t,n,e)}))};var l=u;t.exports=l},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}e.__esModule=!0;var i=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)};e.default=function(t){return function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return 1===n.length&&\"object\"===i(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(a,(function(e,r,i,a){var s=void 0;return\"{\"===t[a-1]&&\"}\"===t[a+e.length]?i:null==(s=(0,o.hasOwn)(n,i)?n[i]:null)?\"\":s}))}};var o=n(231),a=/(%|)\\{([0-9a-zA-Z_]+)\\}/g},function(t,e,n){\"use strict\";e.__esModule=!0;var r,i=n(60),o=(r=i)&&r.__esModule?r:{default:r},a=n(232);var s=!1,u=!1,l=void 0,c=function(){if(!o.default.prototype.$isServer){var t=f.modalDom;return t?s=!0:(s=!1,t=document.createElement(\"div\"),f.modalDom=t,t.addEventListener(\"touchmove\",(function(t){t.preventDefault(),t.stopPropagation()})),t.addEventListener(\"click\",(function(){f.doOnModalClick&&f.doOnModalClick()}))),t}},h={},f={modalFade:!0,getInstance:function(t){return h[t]},register:function(t,e){t&&e&&(h[t]=e)},deregister:function(t){t&&(h[t]=null,delete h[t])},nextZIndex:function(){return f.zIndex++},modalStack:[],doOnModalClick:function(){var t=f.modalStack[f.modalStack.length-1];if(t){var e=f.getInstance(t.id);e&&e.closeOnClickModal&&e.close()}},openModal:function(t,e,n,r,i){if(!o.default.prototype.$isServer&&t&&void 0!==e){this.modalFade=i;for(var u=this.modalStack,l=0,h=u.length;l<h;l++){if(u[l].id===t)return}var f=c();if((0,a.addClass)(f,\"v-modal\"),this.modalFade&&!s&&(0,a.addClass)(f,\"v-modal-enter\"),r)r.trim().split(/\\s+/).forEach((function(t){return(0,a.addClass)(f,t)}));setTimeout((function(){(0,a.removeClass)(f,\"v-modal-enter\")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(f):document.body.appendChild(f),e&&(f.style.zIndex=e),f.tabIndex=0,f.style.display=\"\",this.modalStack.push({id:t,zIndex:e,modalClass:r})}},closeModal:function(t){var e=this.modalStack,n=c();if(e.length>0){var r=e[e.length-1];if(r.id===t){if(r.modalClass)r.modalClass.trim().split(/\\s+/).forEach((function(t){return(0,a.removeClass)(n,t)}));e.pop(),e.length>0&&(n.style.zIndex=e[e.length-1].zIndex)}else for(var i=e.length-1;i>=0;i--)if(e[i].id===t){e.splice(i,1);break}}0===e.length&&(this.modalFade&&(0,a.addClass)(n,\"v-modal-leave\"),setTimeout((function(){0===e.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display=\"none\",f.modalDom=void 0),(0,a.removeClass)(n,\"v-modal-leave\")}),200))}};Object.defineProperty(f,\"zIndex\",{configurable:!0,get:function(){return u||(l=l||(o.default.prototype.$ELEMENT||{}).zIndex||2e3,u=!0),l},set:function(t){l=t}});o.default.prototype.$isServer||window.addEventListener(\"keydown\",(function(t){if(27===t.keyCode){var e=function(){if(!o.default.prototype.$isServer&&f.modalStack.length>0){var t=f.modalStack[f.modalStack.length-1];if(!t)return;return f.getInstance(t.id)}}();e&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction(\"cancel\"):e.close())}})),e.default=f},function(t,e,n){\"use strict\";var r,i;function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}\"function\"==typeof Symbol&&o(Symbol.iterator);r=function(){var t=window,e={placement:\"bottom\",gpuAcceleration:!0,offset:0,boundariesElement:\"viewport\",boundariesPadding:5,preventOverflowOrder:[\"left\",\"right\",\"top\",\"bottom\"],flipBehavior:\"flip\",arrowElement:\"[x-arrow]\",arrowOffset:0,modifiers:[\"shift\",\"offset\",\"preventOverflow\",\"keepTogether\",\"arrow\",\"flip\",\"applyStyle\"],modifiersIgnored:[],forceAbsolute:!1};function n(t,n,r){this._reference=t.jquery?t[0]:t,this.state={};var i=null==n,o=n&&\"[object Object]\"===Object.prototype.toString.call(n);return this._popper=i||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},e,r),this._options.modifiers=this._options.modifiers.map(function(t){if(-1===this._options.modifiersIgnored.indexOf(t))return\"applyStyle\"===t&&this._popper.setAttribute(\"x-placement\",this._options.placement),this.modifiers[t]||t}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),h(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(e){var n=e.style.display,r=e.style.visibility;e.style.display=\"block\",e.style.visibility=\"hidden\",e.offsetWidth;var i=t.getComputedStyle(e),o=parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:e.offsetWidth+a,height:e.offsetHeight+o};return e.style.display=n,e.style.visibility=r,s}function i(t){var e={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function o(t){var e=Object.assign({},t);return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function a(t,e){var n,r=0;for(n in t){if(t[n]===e)return r;r++}return null}function s(e,n){return t.getComputedStyle(e,null)[n]}function u(e){var n=e.offsetParent;return n!==t.document.body&&n?n:t.document.documentElement}function l(e){var n=e.parentNode;return n?n===t.document?t.document.body.scrollTop||t.document.body.scrollLeft?t.document.body:t.document.documentElement:-1!==[\"scroll\",\"auto\"].indexOf(s(n,\"overflow\"))||-1!==[\"scroll\",\"auto\"].indexOf(s(n,\"overflow-x\"))||-1!==[\"scroll\",\"auto\"].indexOf(s(n,\"overflow-y\"))?n:l(e.parentNode):e}function c(e){return e!==t.document.body&&(\"fixed\"===s(e,\"position\")||(e.parentNode?c(e.parentNode):e))}function h(t,e){function n(t){return\"\"!==t&&!isNaN(parseFloat(t))&&isFinite(t)}Object.keys(e).forEach((function(r){var i=\"\";-1!==[\"width\",\"height\",\"top\",\"right\",\"bottom\",\"left\"].indexOf(r)&&n(e[r])&&(i=\"px\"),t.style[r]=e[r]+i}))}function f(t){return t&&\"[object Function]\"==={}.toString.call(t)}function d(t){var e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function p(t){var e=t.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf(\"MSIE\")&&\"HTML\"===t.tagName?-t.scrollTop:e.top;return{left:e.left,top:n,right:e.right,bottom:e.bottom,width:e.right-e.left,height:e.bottom-n}}function m(t,e,n){var r=p(t),i=p(e);if(n){var o=l(e);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}return{top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height}}function v(e){for(var n=[\"\",\"ms\",\"webkit\",\"moz\",\"o\"],r=0;r<n.length;r++){var i=n[r]?n[r]+e.charAt(0).toUpperCase()+e.slice(1):e;if(void 0!==t.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute(\"x-placement\"),this._popper.style.left=\"\",this._popper.style.position=\"\",this._popper.style.top=\"\",this._popper.style[v(\"transform\")]=\"\",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var t={instance:this,styles:{}};t.placement=this._options.placement,t._originalPlacement=this._options.placement,t.offsets=this._getOffsets(this._popper,this._reference,t.placement),t.boundaries=this._getBoundaries(t,this._options.boundariesPadding,this._options.boundariesElement),t=this.runModifiers(t,this._options.modifiers),\"function\"==typeof this.state.updateCallback&&this.state.updateCallback(t)},n.prototype.onCreate=function(t){return t(this),this},n.prototype.onUpdate=function(t){return this.state.updateCallback=t,this},n.prototype.parse=function(e){var n={tagName:\"div\",classNames:[\"popper\"],attributes:[],parent:t.document.body,content:\"\",contentType:\"text\",arrowTagName:\"div\",arrowClassNames:[\"popper__arrow\"],arrowAttributes:[\"x-arrow\"]};e=Object.assign({},n,e);var r=t.document,i=r.createElement(e.tagName);if(s(i,e.classNames),u(i,e.attributes),\"node\"===e.contentType?i.appendChild(e.content.jquery?e.content[0]:e.content):\"html\"===e.contentType?i.innerHTML=e.content:i.textContent=e.content,e.arrowTagName){var o=r.createElement(e.arrowTagName);s(o,e.arrowClassNames),u(o,e.arrowAttributes),i.appendChild(o)}var a=e.parent.jquery?e.parent[0]:e.parent;if(\"string\"==typeof a){if((a=r.querySelectorAll(e.parent)).length>1&&e.parent,0===a.length)throw\"ERROR: the given `parent` doesn't exists!\";a=a[0]}return a.length>1&&a instanceof Element==0&&(a=a[0]),a.appendChild(i),i;function s(t,e){e.forEach((function(e){t.classList.add(e)}))}function u(t,e){e.forEach((function(e){t.setAttribute(e.split(\":\")[0],e.split(\":\")[1]||\"\")}))}},n.prototype._getPosition=function(t,e){var n=u(e);return this._options.forceAbsolute?\"absolute\":c(e,n)?\"fixed\":\"absolute\"},n.prototype._getOffsets=function(t,e,n){n=n.split(\"-\")[0];var i={};i.position=this.state.position;var o=\"fixed\"===i.position,a=m(e,u(t),o),s=r(t);return-1!==[\"right\",\"left\"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left=\"left\"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top=\"top\"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),t.addEventListener(\"resize\",this.state.updateBound),\"window\"!==this._options.boundariesElement){var e=l(this._reference);e!==t.document.body&&e!==t.document.documentElement||(e=t),e.addEventListener(\"scroll\",this.state.updateBound),this.state.scrollTarget=e}},n.prototype._removeEventListeners=function(){t.removeEventListener(\"resize\",this.state.updateBound),\"window\"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener(\"scroll\",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(e,n,r){var i,o={};if(\"window\"===r){var a=t.document.body,s=t.document.documentElement;i=Math.max(a.scrollHeight,a.offsetHeight,s.clientHeight,s.scrollHeight,s.offsetHeight),o={top:0,right:Math.max(a.scrollWidth,a.offsetWidth,s.clientWidth,s.scrollWidth,s.offsetWidth),bottom:i,left:0}}else if(\"viewport\"===r){var c=u(this._popper),h=l(this._popper),f=d(c),p=function(t){return t==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):t.scrollTop},m=function(t){return t==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):t.scrollLeft},v=\"fixed\"===e.offsets.popper.position?0:p(h),g=\"fixed\"===e.offsets.popper.position?0:m(h);o={top:0-(f.top-v),right:t.document.documentElement.clientWidth-(f.left-g),bottom:t.document.documentElement.clientHeight-(f.top-v),left:0-(f.left-g)}}else o=u(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:d(r);return o.left+=n,o.right-=n,o.top=o.top+n,o.bottom=o.bottom-n,o},n.prototype.runModifiers=function(t,e,n){var r=e.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,a(this._options.modifiers,n))),r.forEach(function(e){f(e)&&(t=e.call(this,t))}.bind(this)),t},n.prototype.isModifierRequired=function(t,e){var n=a(this._options.modifiers,t);return!!this._options.modifiers.slice(0,n).filter((function(t){return t===e})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(t){var e,n={position:t.offsets.popper.position},r=Math.round(t.offsets.popper.left),i=Math.round(t.offsets.popper.top);return this._options.gpuAcceleration&&(e=v(\"transform\"))?(n[e]=\"translate3d(\"+r+\"px, \"+i+\"px, 0)\",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,t.styles),h(this._popper,n),this._popper.setAttribute(\"x-placement\",t.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&t.offsets.arrow&&h(t.arrowElement,t.offsets.arrow),t},n.prototype.modifiers.shift=function(t){var e=t.placement,n=e.split(\"-\")[0],r=e.split(\"-\")[1];if(r){var i=t.offsets.reference,a=o(t.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},u=-1!==[\"bottom\",\"top\"].indexOf(n)?\"x\":\"y\";t.offsets.popper=Object.assign(a,s[u][r])}return t},n.prototype.modifiers.preventOverflow=function(t){var e=this._options.preventOverflowOrder,n=o(t.offsets.popper),r={left:function(){var e=n.left;return n.left<t.boundaries.left&&(e=Math.max(n.left,t.boundaries.left)),{left:e}},right:function(){var e=n.left;return n.right>t.boundaries.right&&(e=Math.min(n.left,t.boundaries.right-n.width)),{left:e}},top:function(){var e=n.top;return n.top<t.boundaries.top&&(e=Math.max(n.top,t.boundaries.top)),{top:e}},bottom:function(){var e=n.top;return n.bottom>t.boundaries.bottom&&(e=Math.min(n.top,t.boundaries.bottom-n.height)),{top:e}}};return e.forEach((function(e){t.offsets.popper=Object.assign(n,r[e]())})),t},n.prototype.modifiers.keepTogether=function(t){var e=o(t.offsets.popper),n=t.offsets.reference,r=Math.floor;return e.right<r(n.left)&&(t.offsets.popper.left=r(n.left)-e.width),e.left>r(n.right)&&(t.offsets.popper.left=r(n.right)),e.bottom<r(n.top)&&(t.offsets.popper.top=r(n.top)-e.height),e.top>r(n.bottom)&&(t.offsets.popper.top=r(n.bottom)),t},n.prototype.modifiers.flip=function(t){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return t;if(t.flipped&&t.placement===t._originalPlacement)return t;var e=t.placement.split(\"-\")[0],n=i(e),r=t.placement.split(\"-\")[1]||\"\",a=[];return(a=\"flip\"===this._options.flipBehavior?[e,n]:this._options.flipBehavior).forEach(function(s,u){if(e===s&&a.length!==u+1){e=t.placement.split(\"-\")[0],n=i(e);var l=o(t.offsets.popper),c=-1!==[\"right\",\"bottom\"].indexOf(e);(c&&Math.floor(t.offsets.reference[e])>Math.floor(l[n])||!c&&Math.floor(t.offsets.reference[e])<Math.floor(l[n]))&&(t.flipped=!0,t.placement=a[u+1],r&&(t.placement+=\"-\"+r),t.offsets.popper=this._getOffsets(this._popper,this._reference,t.placement).popper,t=this.runModifiers(t,this._options.modifiers,this._flip))}}.bind(this)),t},n.prototype.modifiers.offset=function(t){var e=this._options.offset,n=t.offsets.popper;return-1!==t.placement.indexOf(\"left\")?n.top-=e:-1!==t.placement.indexOf(\"right\")?n.top+=e:-1!==t.placement.indexOf(\"top\")?n.left-=e:-1!==t.placement.indexOf(\"bottom\")&&(n.left+=e),t},n.prototype.modifiers.arrow=function(t){var e=this._options.arrowElement,n=this._options.arrowOffset;if(\"string\"==typeof e&&(e=this._popper.querySelector(e)),!e)return t;if(!this._popper.contains(e))return t;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return t;var i={},a=t.placement.split(\"-\")[0],s=o(t.offsets.popper),u=t.offsets.reference,l=-1!==[\"left\",\"right\"].indexOf(a),c=l?\"height\":\"width\",h=l?\"top\":\"left\",f=l?\"left\":\"top\",d=l?\"bottom\":\"right\",p=r(e)[c];u[d]-p<s[h]&&(t.offsets.popper[h]-=s[h]-(u[d]-p)),u[h]+p>s[d]&&(t.offsets.popper[h]+=u[h]+p-s[d]);var m=u[h]+(n||u[c]/2-p/2)-s[h];return m=Math.max(Math.min(s[c]-p-8,m),8),i[h]=m,i[f]=\"\",t.offsets.arrow=i,t.arrowElement=e,t},Object.assign||Object.defineProperty(Object,\"assign\",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(null==t)throw new TypeError(\"Cannot convert first argument to object\");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r){r=Object(r);for(var i=Object.keys(r),o=0,a=i.length;o<a;o++){var s=i[o],u=Object.getOwnPropertyDescriptor(r,s);void 0!==u&&u.enumerable&&(e[s]=r[s])}}}return e}}),n},void 0===(i=\"function\"==typeof r?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=96)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},96:function(t,e,n){\"use strict\";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"button\",{staticClass:\"el-button\",class:[t.type?\"el-button--\"+t.type:\"\",t.buttonSize?\"el-button--\"+t.buttonSize:\"\",{\"is-disabled\":t.buttonDisabled,\"is-loading\":t.loading,\"is-plain\":t.plain,\"is-round\":t.round,\"is-circle\":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n(\"i\",{staticClass:\"el-icon-loading\"}):t._e(),t.icon&&!t.loading?n(\"i\",{class:t.icon}):t._e(),t.$slots.default?n(\"span\",[t._t(\"default\")],2):t._e()])};r._withStripped=!0;var i={name:\"ElButton\",inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},props:{type:{type:String,default:\"default\"},size:String,icon:{type:String,default:\"\"},nativeType:{type:String,default:\"button\"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty(\"disabled\")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit(\"click\",t)}}},o=n(0),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file=\"packages/button/src/button.vue\";var s=a.exports;s.install=function(t){t.component(s.name,s)};e.default=s}})},function(t,e,n){\"use strict\";n.r(e),function(t){var n=function(){if(\"undefined\"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,\"size\",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r=\"undefined\"!=typeof window&&\"undefined\"!=typeof document&&window.document===document,i=void 0!==t&&t.Math===Math?t:\"undefined\"!=typeof self&&self.Math===Math?self:\"undefined\"!=typeof window&&window.Math===Math?window:Function(\"return this\")(),o=\"function\"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var a=[\"top\",\"right\",\"bottom\",\"left\",\"width\",\"height\",\"size\",\"weight\"],s=\"undefined\"!=typeof MutationObserver,u=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&u()}function s(){o(a)}function u(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);i=t}return u}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener(\"transitionend\",this.onTransitionEnd_),window.addEventListener(\"resize\",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener(\"DOMSubtreeModified\",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener(\"transitionend\",this.onTransitionEnd_),window.removeEventListener(\"resize\",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(\"DOMSubtreeModified\",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?\"\":e;a.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},c=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},h=g(0,0,0,0);function f(t){return parseFloat(t)||0}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+f(t[\"border-\"+n+\"-width\"])}),0)}function p(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return h;var r=c(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=[\"top\",\"right\",\"bottom\",\"left\"];n<r.length;n++){var i=r[n],o=t[\"padding-\"+i];e[i]=f(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,s=f(r.width),u=f(r.height);if(\"border-box\"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=d(r,\"left\",\"right\")+o),Math.round(u+a)!==n&&(u-=d(r,\"top\",\"bottom\")+a)),!function(t){return t===c(t).document.documentElement}(t)){var l=Math.round(s+o)-e,p=Math.round(u+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(p)&&(u-=p)}return g(i.left,i.top,s,u)}var m=\"undefined\"!=typeof SVGGraphicsElement?function(t){return t instanceof c(t).SVGGraphicsElement}:function(t){return t instanceof c(t).SVGElement&&\"function\"==typeof t.getBBox};function v(t){return r?m(t)?function(t){var e=t.getBBox();return g(0,0,e.width,e.height)}(t):p(t):h}function g(t,e,n,r){return{x:t,y:e,width:n,height:r}}var y=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=v(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),b=function(t,e){var n,r,i,o,a,s,u,c=(r=(n=e).x,i=n.y,o=n.width,a=n.height,s=\"undefined\"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(s.prototype),l(u,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),u);l(this,{target:t,contentRect:c})},_=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,\"function\"!=typeof t)throw new TypeError(\"The callback provided as parameter 1 is not a function.\");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError(\"1 argument required, but only 0 present.\");if(\"undefined\"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type \"Element\".');var e=this.observations_;e.has(t)||(e.set(t,new y(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError(\"1 argument required, but only 0 present.\");if(\"undefined\"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type \"Element\".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new b(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),w=\"undefined\"!=typeof WeakMap?new WeakMap:new n,x=function t(e){if(!(this instanceof t))throw new TypeError(\"Cannot call a class as a function.\");if(!arguments.length)throw new TypeError(\"1 argument required, but only 0 present.\");var n=u.getInstance(),r=new _(e,n,this);w.set(this,r)};[\"observe\",\"unobserve\",\"disconnect\"].forEach((function(t){x.prototype[t]=function(){var e;return(e=w.get(this))[t].apply(e,arguments)}}));var k=void 0!==i.ResizeObserver?i.ResizeObserver:x;e.default=k}.call(this,n(10))},function(t,e,n){\"use strict\";e.__esModule=!0;var r=n(232);var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t)}return t.prototype.beforeEnter=function(t){(0,r.addClass)(t,\"collapse-transition\"),t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height=\"0\",t.style.paddingTop=0,t.style.paddingBottom=0},t.prototype.enter=function(t){t.dataset.oldOverflow=t.style.overflow,0!==t.scrollHeight?(t.style.height=t.scrollHeight+\"px\",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.height=\"\",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow=\"hidden\"},t.prototype.afterEnter=function(t){(0,r.removeClass)(t,\"collapse-transition\"),t.style.height=\"\",t.style.overflow=t.dataset.oldOverflow},t.prototype.beforeLeave=function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.height=t.scrollHeight+\"px\",t.style.overflow=\"hidden\"},t.prototype.leave=function(t){0!==t.scrollHeight&&((0,r.addClass)(t,\"collapse-transition\"),t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0)},t.prototype.afterLeave=function(t){(0,r.removeClass)(t,\"collapse-transition\"),t.style.height=\"\",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},t}();e.default={name:\"ElCollapseTransition\",functional:!0,render:function(t,e){var n=e.children;return t(\"transition\",{on:new i},n)}}},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}e.__esModule=!0;var i=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)};e.isVNode=function(t){return null!==t&&\"object\"===(void 0===t?\"undefined\":i(t))&&(0,o.hasOwn)(t,\"componentOptions\")};var o=n(231)},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=138)}({138:function(t,e,n){\"use strict\";n.r(e);var r=n(5),i=n.n(r),o=n(19),a=n.n(o),s=n(2),u=n(3),l=n(7),c=n.n(l),h={name:\"ElTooltip\",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:\"dark\"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:\"el-fade-in-linear\"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:\"el-tooltip-\"+Object(u.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var t=this;this.$isServer||(this.popperVM=new c.a({data:{node:\"\"},render:function(t){return this.node}}).$mount(),this.debounceClose=a()(200,(function(){return t.handleClosePopper()})))},render:function(t){var e=this;this.popperVM&&(this.popperVM.node=t(\"transition\",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t(\"div\",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:\"popper\",attrs:{role:\"tooltip\",id:this.tooltipId,\"aria-hidden\":this.disabled||!this.showPopper?\"true\":\"false\"},directives:[{name:\"show\",value:!this.disabled&&this.showPopper}],class:[\"el-tooltip__popper\",\"is-\"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var t=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute(\"aria-describedby\",this.tooltipId),this.$el.setAttribute(\"tabindex\",this.tabindex),Object(s.on)(this.referenceElm,\"mouseenter\",this.show),Object(s.on)(this.referenceElm,\"mouseleave\",this.hide),Object(s.on)(this.referenceElm,\"focus\",(function(){if(t.$slots.default&&t.$slots.default.length){var e=t.$slots.default[0].componentInstance;e&&e.focus?e.focus():t.handleFocus()}else t.handleFocus()})),Object(s.on)(this.referenceElm,\"blur\",this.handleBlur),Object(s.on)(this.referenceElm,\"click\",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){t.value&&t.updatePopper()}))},watch:{focusing:function(t){t?Object(s.addClass)(this.referenceElm,\"focusing\"):Object(s.removeClass)(this.referenceElm,\"focusing\")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(t){return t?\"el-tooltip \"+t.replace(\"el-tooltip\",\"\"):\"el-tooltip\"},handleShowPopper:function(){var t=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){t.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(t){!1===t&&clearTimeout(this.timeoutPending),this.expectedState=t},getFirstElement:function(){var t=this.$slots.default;if(!Array.isArray(t))return null;for(var e=null,n=0;n<t.length;n++)if(t[n]&&t[n].tag){e=t[n];break}return e}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var t=this.referenceElm;1===t.nodeType&&(Object(s.off)(t,\"mouseenter\",this.show),Object(s.off)(t,\"mouseleave\",this.hide),Object(s.off)(t,\"focus\",this.handleFocus),Object(s.off)(t,\"blur\",this.handleBlur),Object(s.off)(t,\"click\",this.removeFocusing))},install:function(t){t.component(h.name,h)}};e.default=h},19:function(t,e){t.exports=n(258)},2:function(t,e){t.exports=n(232)},3:function(t,e){t.exports=n(231)},5:function(t,e){t.exports=n(255)},7:function(t,e){t.exports=n(60)}})},function(t,e,n){\"use strict\";(function(t,r){var i;function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}var a=\"function\"==typeof Symbol&&\"symbol\"===o(Symbol.iterator)?function(t){return o(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":o(t)};(function(){var o,s=\"Expected a function\",u=\"__lodash_hash_undefined__\",l=\"__lodash_placeholder__\",c=16,h=32,f=64,d=128,p=256,m=1/0,v=9007199254740991,g=NaN,y=4294967295,b=[[\"ary\",d],[\"bind\",1],[\"bindKey\",2],[\"curry\",8],[\"curryRight\",c],[\"flip\",512],[\"partial\",h],[\"partialRight\",f],[\"rearg\",p]],_=\"[object Arguments]\",w=\"[object Array]\",x=\"[object Boolean]\",k=\"[object Date]\",S=\"[object Error]\",C=\"[object Function]\",E=\"[object GeneratorFunction]\",D=\"[object Map]\",A=\"[object Number]\",O=\"[object Object]\",M=\"[object Promise]\",T=\"[object RegExp]\",I=\"[object Set]\",P=\"[object String]\",F=\"[object Symbol]\",j=\"[object WeakMap]\",N=\"[object ArrayBuffer]\",L=\"[object DataView]\",B=\"[object Float32Array]\",$=\"[object Float64Array]\",z=\"[object Int8Array]\",R=\"[object Int16Array]\",U=\"[object Int32Array]\",V=\"[object Uint8Array]\",H=\"[object Uint8ClampedArray]\",G=\"[object Uint16Array]\",q=\"[object Uint32Array]\",W=/\\b__p \\+= '';/g,Y=/\\b(__p \\+=) '' \\+/g,Z=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>\"']/g,J=RegExp(K.source),Q=RegExp(X.source),tt=/<%-([\\s\\S]+?)%>/g,et=/<%([\\s\\S]+?)%>/g,nt=/<%=([\\s\\S]+?)%>/g,rt=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,it=/^\\w*$/,ot=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,at=/[\\\\^$.*+?()[\\]{}|]/g,st=RegExp(at.source),ut=/^\\s+|\\s+$/g,lt=/^\\s+/,ct=/\\s+$/,ht=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,ft=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,dt=/,? & /,pt=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,mt=/\\\\(\\\\)?/g,vt=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,gt=/\\w*$/,yt=/^[-+]0x[0-9a-f]+$/i,bt=/^0b[01]+$/i,_t=/^\\[object .+?Constructor\\]$/,wt=/^0o[0-7]+$/i,xt=/^(?:0|[1-9]\\d*)$/,kt=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,St=/($^)/,Ct=/['\\n\\r\\u2028\\u2029\\\\]/g,Et=\"\\\\ud800-\\\\udfff\",Dt=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",At=\"\\\\u2700-\\\\u27bf\",Ot=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",Mt=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",Tt=\"\\\\ufe0e\\\\ufe0f\",It=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",Pt=\"['’]\",Ft=\"[\"+Et+\"]\",jt=\"[\"+It+\"]\",Nt=\"[\"+Dt+\"]\",Lt=\"\\\\d+\",Bt=\"[\"+At+\"]\",$t=\"[\"+Ot+\"]\",zt=\"[^\"+Et+It+Lt+At+Ot+Mt+\"]\",Rt=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",Ut=\"[^\"+Et+\"]\",Vt=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",Ht=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",Gt=\"[\"+Mt+\"]\",qt=\"\\\\u200d\",Wt=\"(?:\"+$t+\"|\"+zt+\")\",Yt=\"(?:\"+Gt+\"|\"+zt+\")\",Zt=\"(?:['’](?:d|ll|m|re|s|t|ve))?\",Kt=\"(?:['’](?:D|LL|M|RE|S|T|VE))?\",Xt=\"(?:\"+Nt+\"|\"+Rt+\")\"+\"?\",Jt=\"[\"+Tt+\"]?\",Qt=Jt+Xt+(\"(?:\"+qt+\"(?:\"+[Ut,Vt,Ht].join(\"|\")+\")\"+Jt+Xt+\")*\"),te=\"(?:\"+[Bt,Vt,Ht].join(\"|\")+\")\"+Qt,ee=\"(?:\"+[Ut+Nt+\"?\",Nt,Vt,Ht,Ft].join(\"|\")+\")\",ne=RegExp(Pt,\"g\"),re=RegExp(Nt,\"g\"),ie=RegExp(Rt+\"(?=\"+Rt+\")|\"+ee+Qt,\"g\"),oe=RegExp([Gt+\"?\"+$t+\"+\"+Zt+\"(?=\"+[jt,Gt,\"$\"].join(\"|\")+\")\",Yt+\"+\"+Kt+\"(?=\"+[jt,Gt+Wt,\"$\"].join(\"|\")+\")\",Gt+\"?\"+Wt+\"+\"+Zt,Gt+\"+\"+Kt,\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",Lt,te].join(\"|\"),\"g\"),ae=RegExp(\"[\"+qt+Et+Dt+Tt+\"]\"),se=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ue=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\",\"_\",\"clearTimeout\",\"isFinite\",\"parseInt\",\"setTimeout\"],le=-1,ce={};ce[B]=ce[$]=ce[z]=ce[R]=ce[U]=ce[V]=ce[H]=ce[G]=ce[q]=!0,ce[_]=ce[w]=ce[N]=ce[x]=ce[L]=ce[k]=ce[S]=ce[C]=ce[D]=ce[A]=ce[O]=ce[T]=ce[I]=ce[P]=ce[j]=!1;var he={};he[_]=he[w]=he[N]=he[L]=he[x]=he[k]=he[B]=he[$]=he[z]=he[R]=he[U]=he[D]=he[A]=he[O]=he[T]=he[I]=he[P]=he[F]=he[V]=he[H]=he[G]=he[q]=!0,he[S]=he[C]=he[j]=!1;var fe={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},de=parseFloat,pe=parseInt,me=\"object\"===(void 0===t?\"undefined\":a(t))&&t&&t.Object===Object&&t,ve=\"object\"===(\"undefined\"==typeof self?\"undefined\":a(self))&&self&&self.Object===Object&&self,ge=me||ve||Function(\"return this\")(),ye=\"object\"===a(e)&&e&&!e.nodeType&&e,be=ye&&\"object\"===a(r)&&r&&!r.nodeType&&r,_e=be&&be.exports===ye,we=_e&&me.process,xe=function(){try{var t=be&&be.require&&be.require(\"util\").types;return t||we&&we.binding&&we.binding(\"util\")}catch(t){}}(),ke=xe&&xe.isArrayBuffer,Se=xe&&xe.isDate,Ce=xe&&xe.isMap,Ee=xe&&xe.isRegExp,De=xe&&xe.isSet,Ae=xe&&xe.isTypedArray;function Oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Me(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Te(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ie(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Fe(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function je(t,e){return!!(null==t?0:t.length)&&Ge(t,e,0)>-1}function Ne(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Le(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Be(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function $e(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function ze(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Re(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Ue=Ze(\"length\");function Ve(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function He(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Ge(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):He(t,We,n)}function qe(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function We(t){return t!=t}function Ye(t,e){var n=null==t?0:t.length;return n?Je(t,e)/n:g}function Ze(t){return function(e){return null==e?o:e[t]}}function Ke(t){return function(e){return null==t?o:t[e]}}function Xe(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Je(t,e){for(var n,r=-1,i=t.length;++r<i;){var a=e(t[r]);a!==o&&(n=n===o?a:n+a)}return n}function Qe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function tn(t){return function(e){return t(e)}}function en(t,e){return Le(e,(function(e){return t[e]}))}function nn(t,e){return t.has(e)}function rn(t,e){for(var n=-1,r=t.length;++n<r&&Ge(e,t[n],0)>-1;);return n}function on(t,e){for(var n=t.length;n--&&Ge(e,t[n],0)>-1;);return n}var an=Ke({À:\"A\",Á:\"A\",Â:\"A\",Ã:\"A\",Ä:\"A\",Å:\"A\",à:\"a\",á:\"a\",â:\"a\",ã:\"a\",ä:\"a\",å:\"a\",Ç:\"C\",ç:\"c\",Ð:\"D\",ð:\"d\",È:\"E\",É:\"E\",Ê:\"E\",Ë:\"E\",è:\"e\",é:\"e\",ê:\"e\",ë:\"e\",Ì:\"I\",Í:\"I\",Î:\"I\",Ï:\"I\",ì:\"i\",í:\"i\",î:\"i\",ï:\"i\",Ñ:\"N\",ñ:\"n\",Ò:\"O\",Ó:\"O\",Ô:\"O\",Õ:\"O\",Ö:\"O\",Ø:\"O\",ò:\"o\",ó:\"o\",ô:\"o\",õ:\"o\",ö:\"o\",ø:\"o\",Ù:\"U\",Ú:\"U\",Û:\"U\",Ü:\"U\",ù:\"u\",ú:\"u\",û:\"u\",ü:\"u\",Ý:\"Y\",ý:\"y\",ÿ:\"y\",Æ:\"Ae\",æ:\"ae\",Þ:\"Th\",þ:\"th\",ß:\"ss\",Ā:\"A\",Ă:\"A\",Ą:\"A\",ā:\"a\",ă:\"a\",ą:\"a\",Ć:\"C\",Ĉ:\"C\",Ċ:\"C\",Č:\"C\",ć:\"c\",ĉ:\"c\",ċ:\"c\",č:\"c\",Ď:\"D\",Đ:\"D\",ď:\"d\",đ:\"d\",Ē:\"E\",Ĕ:\"E\",Ė:\"E\",Ę:\"E\",Ě:\"E\",ē:\"e\",ĕ:\"e\",ė:\"e\",ę:\"e\",ě:\"e\",Ĝ:\"G\",Ğ:\"G\",Ġ:\"G\",Ģ:\"G\",ĝ:\"g\",ğ:\"g\",ġ:\"g\",ģ:\"g\",Ĥ:\"H\",Ħ:\"H\",ĥ:\"h\",ħ:\"h\",Ĩ:\"I\",Ī:\"I\",Ĭ:\"I\",Į:\"I\",İ:\"I\",ĩ:\"i\",ī:\"i\",ĭ:\"i\",į:\"i\",ı:\"i\",Ĵ:\"J\",ĵ:\"j\",Ķ:\"K\",ķ:\"k\",ĸ:\"k\",Ĺ:\"L\",Ļ:\"L\",Ľ:\"L\",Ŀ:\"L\",Ł:\"L\",ĺ:\"l\",ļ:\"l\",ľ:\"l\",ŀ:\"l\",ł:\"l\",Ń:\"N\",Ņ:\"N\",Ň:\"N\",Ŋ:\"N\",ń:\"n\",ņ:\"n\",ň:\"n\",ŋ:\"n\",Ō:\"O\",Ŏ:\"O\",Ő:\"O\",ō:\"o\",ŏ:\"o\",ő:\"o\",Ŕ:\"R\",Ŗ:\"R\",Ř:\"R\",ŕ:\"r\",ŗ:\"r\",ř:\"r\",Ś:\"S\",Ŝ:\"S\",Ş:\"S\",Š:\"S\",ś:\"s\",ŝ:\"s\",ş:\"s\",š:\"s\",Ţ:\"T\",Ť:\"T\",Ŧ:\"T\",ţ:\"t\",ť:\"t\",ŧ:\"t\",Ũ:\"U\",Ū:\"U\",Ŭ:\"U\",Ů:\"U\",Ű:\"U\",Ų:\"U\",ũ:\"u\",ū:\"u\",ŭ:\"u\",ů:\"u\",ű:\"u\",ų:\"u\",Ŵ:\"W\",ŵ:\"w\",Ŷ:\"Y\",ŷ:\"y\",Ÿ:\"Y\",Ź:\"Z\",Ż:\"Z\",Ž:\"Z\",ź:\"z\",ż:\"z\",ž:\"z\",Ĳ:\"IJ\",ĳ:\"ij\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"}),sn=Ke({\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"});function un(t){return\"\\\\\"+fe[t]}function ln(t){return ae.test(t)}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function hn(t,e){return function(n){return t(e(n))}}function fn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==l||(t[n]=l,o[i++]=n)}return o}function dn(t,e){return\"__proto__\"==e?o:t[e]}function pn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function mn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function vn(t){return ln(t)?function(t){var e=ie.lastIndex=0;for(;ie.test(t);)++e;return e}(t):Ue(t)}function gn(t){return ln(t)?function(t){return t.match(ie)||[]}(t):function(t){return t.split(\"\")}(t)}var yn=Ke({\"&amp;\":\"&\",\"&lt;\":\"<\",\"&gt;\":\">\",\"&quot;\":'\"',\"&#39;\":\"'\"});var bn=function t(e){var n,r=(e=null==e?ge:bn.defaults(ge.Object(),e,bn.pick(ge,ue))).Array,i=e.Date,Et=e.Error,Dt=e.Function,At=e.Math,Ot=e.Object,Mt=e.RegExp,Tt=e.String,It=e.TypeError,Pt=r.prototype,Ft=Dt.prototype,jt=Ot.prototype,Nt=e[\"__core-js_shared__\"],Lt=Ft.toString,Bt=jt.hasOwnProperty,$t=0,zt=(n=/[^.]+$/.exec(Nt&&Nt.keys&&Nt.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+n:\"\",Rt=jt.toString,Ut=Lt.call(Ot),Vt=ge._,Ht=Mt(\"^\"+Lt.call(Bt).replace(at,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),Gt=_e?e.Buffer:o,qt=e.Symbol,Wt=e.Uint8Array,Yt=Gt?Gt.allocUnsafe:o,Zt=hn(Ot.getPrototypeOf,Ot),Kt=Ot.create,Xt=jt.propertyIsEnumerable,Jt=Pt.splice,Qt=qt?qt.isConcatSpreadable:o,te=qt?qt.iterator:o,ee=qt?qt.toStringTag:o,ie=function(){try{var t=po(Ot,\"defineProperty\");return t({},\"\",{}),t}catch(t){}}(),ae=e.clearTimeout!==ge.clearTimeout&&e.clearTimeout,fe=i&&i.now!==ge.Date.now&&i.now,me=e.setTimeout!==ge.setTimeout&&e.setTimeout,ve=At.ceil,ye=At.floor,be=Ot.getOwnPropertySymbols,we=Gt?Gt.isBuffer:o,xe=e.isFinite,Ue=Pt.join,Ke=hn(Ot.keys,Ot),_n=At.max,wn=At.min,xn=i.now,kn=e.parseInt,Sn=At.random,Cn=Pt.reverse,En=po(e,\"DataView\"),Dn=po(e,\"Map\"),An=po(e,\"Promise\"),On=po(e,\"Set\"),Mn=po(e,\"WeakMap\"),Tn=po(Ot,\"create\"),In=Mn&&new Mn,Pn={},Fn=$o(En),jn=$o(Dn),Nn=$o(An),Ln=$o(On),Bn=$o(Mn),$n=qt?qt.prototype:o,zn=$n?$n.valueOf:o,Rn=$n?$n.toString:o;function Un(t){if(ns(t)&&!Ga(t)&&!(t instanceof qn)){if(t instanceof Gn)return t;if(Bt.call(t,\"__wrapped__\"))return zo(t)}return new Gn(t)}var Vn=function(){function t(){}return function(e){if(!es(e))return{};if(Kt)return Kt(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function Hn(){}function Gn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Wn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zn;++e<n;)this.add(t[e])}function Xn(t){var e=this.__data__=new Yn(t);this.size=e.size}function Jn(t,e){var n=Ga(t),r=!n&&Ha(t),i=!n&&!r&&Za(t),o=!n&&!r&&!i&&cs(t),a=n||r||i||o,s=a?Qe(t.length,Tt):[],u=s.length;for(var l in t)!e&&!Bt.call(t,l)||a&&(\"length\"==l||i&&(\"offset\"==l||\"parent\"==l)||o&&(\"buffer\"==l||\"byteLength\"==l||\"byteOffset\"==l)||wo(l,u))||s.push(l);return s}function Qn(t){var e=t.length;return e?t[Kr(0,e-1)]:o}function tr(t,e){return No(Ti(t),lr(e,0,t.length))}function er(t){return No(Ti(t))}function nr(t,e,n){(n!==o&&!Ra(t[e],n)||n===o&&!(e in t))&&sr(t,e,n)}function rr(t,e,n){var r=t[e];Bt.call(t,e)&&Ra(r,n)&&(n!==o||e in t)||sr(t,e,n)}function ir(t,e){for(var n=t.length;n--;)if(Ra(t[n][0],e))return n;return-1}function or(t,e,n,r){return pr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function ar(t,e){return t&&Ii(e,Is(e),t)}function sr(t,e,n){\"__proto__\"==e&&ie?ie(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ur(t,e){for(var n=-1,i=e.length,a=r(i),s=null==t;++n<i;)a[n]=s?o:Ds(t,e[n]);return a}function lr(t,e,n){return t==t&&(n!==o&&(t=t<=n?t:n),e!==o&&(t=t>=e?t:e)),t}function cr(t,e,n,r,i,a){var s,u=1&e,l=2&e,c=4&e;if(n&&(s=i?n(t,r,i,a):n(t)),s!==o)return s;if(!es(t))return t;var h=Ga(t);if(h){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&\"string\"==typeof t[0]&&Bt.call(t,\"index\")&&(n.index=t.index,n.input=t.input);return n}(t),!u)return Ti(t,s)}else{var f=go(t),d=f==C||f==E;if(Za(t))return Ci(t,u);if(f==O||f==_||d&&!i){if(s=l||d?{}:bo(t),!u)return l?function(t,e){return Ii(t,vo(t),e)}(t,function(t,e){return t&&Ii(e,Ps(e),t)}(s,t)):function(t,e){return Ii(t,mo(t),e)}(t,ar(s,t))}else{if(!he[f])return i?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case N:return Ei(t);case x:case k:return new r(+t);case L:return function(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case B:case $:case z:case R:case U:case V:case H:case G:case q:return Di(t,n);case D:return new r;case A:case P:return new r(t);case T:return function(t){var e=new t.constructor(t.source,gt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case I:return new r;case F:return i=t,zn?Ot(zn.call(i)):{}}var i}(t,f,u)}}a||(a=new Xn);var p=a.get(t);if(p)return p;if(a.set(t,s),ss(t))return t.forEach((function(r){s.add(cr(r,e,n,r,t,a))})),s;if(rs(t))return t.forEach((function(r,i){s.set(i,cr(r,e,n,i,t,a))})),s;var m=h?o:(c?l?ao:oo:l?Ps:Is)(t);return Te(m||t,(function(r,i){m&&(r=t[i=r]),rr(s,i,cr(r,e,n,i,t,a))})),s}function hr(t,e,n){var r=n.length;if(null==t)return!r;for(t=Ot(t);r--;){var i=n[r],a=e[i],s=t[i];if(s===o&&!(i in t)||!a(s))return!1}return!0}function fr(t,e,n){if(\"function\"!=typeof t)throw new It(s);return Io((function(){t.apply(o,n)}),e)}function dr(t,e,n,r){var i=-1,o=je,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=Le(e,tn(n))),r?(o=Ne,a=!1):e.length>=200&&(o=nn,a=!1,e=new Kn(e));t:for(;++i<s;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,a&&h==h){for(var f=l;f--;)if(e[f]===h)continue t;u.push(c)}else o(e,h,r)||u.push(c)}return u}Un.templateSettings={escape:tt,evaluate:et,interpolate:nt,variable:\"\",imports:{_:Un}},Un.prototype=Hn.prototype,Un.prototype.constructor=Un,Gn.prototype=Vn(Hn.prototype),Gn.prototype.constructor=Gn,qn.prototype=Vn(Hn.prototype),qn.prototype.constructor=qn,Wn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Wn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Wn.prototype.get=function(t){var e=this.__data__;if(Tn){var n=e[t];return n===u?o:n}return Bt.call(e,t)?e[t]:o},Wn.prototype.has=function(t){var e=this.__data__;return Tn?e[t]!==o:Bt.call(e,t)},Wn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Tn&&e===o?u:e,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=ir(e,t);return!(n<0)&&(n==e.length-1?e.pop():Jt.call(e,n,1),--this.size,!0)},Yn.prototype.get=function(t){var e=this.__data__,n=ir(e,t);return n<0?o:e[n][1]},Yn.prototype.has=function(t){return ir(this.__data__,t)>-1},Yn.prototype.set=function(t,e){var n=this.__data__,r=ir(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Dn||Yn),string:new Wn}},Zn.prototype.delete=function(t){var e=ho(this,t).delete(t);return this.size-=e?1:0,e},Zn.prototype.get=function(t){return ho(this,t).get(t)},Zn.prototype.has=function(t){return ho(this,t).has(t)},Zn.prototype.set=function(t,e){var n=ho(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(t){return this.__data__.set(t,u),this},Kn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Xn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Xn.prototype.get=function(t){return this.__data__.get(t)},Xn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!Dn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zn(r)}return n.set(t,e),this.size=n.size,this};var pr=ji(xr),mr=ji(kr,!0);function vr(t,e){var n=!0;return pr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function gr(t,e,n){for(var r=-1,i=t.length;++r<i;){var a=t[r],s=e(a);if(null!=s&&(u===o?s==s&&!ls(s):n(s,u)))var u=s,l=a}return l}function yr(t,e){var n=[];return pr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function br(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=_o),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?br(s,e-1,n,r,i):Be(i,s):r||(i[i.length]=s)}return i}var _r=Ni(),wr=Ni(!0);function xr(t,e){return t&&_r(t,e,Is)}function kr(t,e){return t&&wr(t,e,Is)}function Sr(t,e){return Fe(e,(function(e){return Ja(t[e])}))}function Cr(t,e){for(var n=0,r=(e=wi(e,t)).length;null!=t&&n<r;)t=t[Bo(e[n++])];return n&&n==r?t:o}function Er(t,e,n){var r=e(t);return Ga(t)?r:Be(r,n(t))}function Dr(t){return null==t?t===o?\"[object Undefined]\":\"[object Null]\":ee&&ee in Ot(t)?function(t){var e=Bt.call(t,ee),n=t[ee];try{t[ee]=o;var r=!0}catch(t){}var i=Rt.call(t);r&&(e?t[ee]=n:delete t[ee]);return i}(t):function(t){return Rt.call(t)}(t)}function Ar(t,e){return t>e}function Or(t,e){return null!=t&&Bt.call(t,e)}function Mr(t,e){return null!=t&&e in Ot(t)}function Tr(t,e,n){for(var i=n?Ne:je,a=t[0].length,s=t.length,u=s,l=r(s),c=1/0,h=[];u--;){var f=t[u];u&&e&&(f=Le(f,tn(e))),c=wn(f.length,c),l[u]=!n&&(e||a>=120&&f.length>=120)?new Kn(u&&f):o}f=t[0];var d=-1,p=l[0];t:for(;++d<a&&h.length<c;){var m=f[d],v=e?e(m):m;if(m=n||0!==m?m:0,!(p?nn(p,v):i(h,v,n))){for(u=s;--u;){var g=l[u];if(!(g?nn(g,v):i(t[u],v,n)))continue t}p&&p.push(v),h.push(m)}}return h}function Ir(t,e,n){var r=null==(t=Mo(t,e=wi(e,t)))?t:t[Bo(Xo(e))];return null==r?o:Oe(r,t,n)}function Pr(t){return ns(t)&&Dr(t)==_}function Fr(t,e,n,r,i){return t===e||(null==t||null==e||!ns(t)&&!ns(e)?t!=t&&e!=e:function(t,e,n,r,i,a){var s=Ga(t),u=Ga(e),l=s?w:go(t),c=u?w:go(e),h=(l=l==_?O:l)==O,f=(c=c==_?O:c)==O,d=l==c;if(d&&Za(t)){if(!Za(e))return!1;s=!0,h=!1}if(d&&!h)return a||(a=new Xn),s||cs(t)?ro(t,e,n,r,i,a):function(t,e,n,r,i,o,a){switch(n){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case N:return!(t.byteLength!=e.byteLength||!o(new Wt(t),new Wt(e)));case x:case k:case A:return Ra(+t,+e);case S:return t.name==e.name&&t.message==e.message;case T:case P:return t==e+\"\";case D:var s=cn;case I:var u=1&r;if(s||(s=pn),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var c=ro(s(t),s(e),r,i,o,a);return a.delete(t),c;case F:if(zn)return zn.call(t)==zn.call(e)}return!1}(t,e,l,n,r,i,a);if(!(1&n)){var p=h&&Bt.call(t,\"__wrapped__\"),m=f&&Bt.call(e,\"__wrapped__\");if(p||m){var v=p?t.value():t,g=m?e.value():e;return a||(a=new Xn),i(v,g,n,r,a)}}if(!d)return!1;return a||(a=new Xn),function(t,e,n,r,i,a){var s=1&n,u=oo(t),l=u.length,c=oo(e),h=c.length;if(l!=h&&!s)return!1;var f=l;for(;f--;){var d=u[f];if(!(s?d in e:Bt.call(e,d)))return!1}var p=a.get(t);if(p&&a.get(e))return p==e;var m=!0;a.set(t,e),a.set(e,t);var v=s;for(;++f<l;){var g=t[d=u[f]],y=e[d];if(r)var b=s?r(y,g,d,e,t,a):r(g,y,d,t,e,a);if(!(b===o?g===y||i(g,y,n,r,a):b)){m=!1;break}v||(v=\"constructor\"==d)}if(m&&!v){var _=t.constructor,w=e.constructor;_==w||!(\"constructor\"in t)||!(\"constructor\"in e)||\"function\"==typeof _&&_ instanceof _&&\"function\"==typeof w&&w instanceof w||(m=!1)}return a.delete(t),a.delete(e),m}(t,e,n,r,i,a)}(t,e,n,r,Fr,i))}function jr(t,e,n,r){var i=n.length,a=i,s=!r;if(null==t)return!a;for(t=Ot(t);i--;){var u=n[i];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<a;){var l=(u=n[i])[0],c=t[l],h=u[1];if(s&&u[2]){if(c===o&&!(l in t))return!1}else{var f=new Xn;if(r)var d=r(c,h,l,t,e,f);if(!(d===o?Fr(h,c,3,r,f):d))return!1}}return!0}function Nr(t){return!(!es(t)||(e=t,zt&&zt in e))&&(Ja(t)?Ht:_t).test($o(t));var e}function Lr(t){return\"function\"==typeof t?t:null==t?iu:\"object\"===(void 0===t?\"undefined\":a(t))?Ga(t)?Vr(t[0],t[1]):Ur(t):du(t)}function Br(t){if(!Eo(t))return Ke(t);var e=[];for(var n in Ot(t))Bt.call(t,n)&&\"constructor\"!=n&&e.push(n);return e}function $r(t){if(!es(t))return function(t){var e=[];if(null!=t)for(var n in Ot(t))e.push(n);return e}(t);var e=Eo(t),n=[];for(var r in t)(\"constructor\"!=r||!e&&Bt.call(t,r))&&n.push(r);return n}function zr(t,e){return t<e}function Rr(t,e){var n=-1,i=Wa(t)?r(t.length):[];return pr(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Ur(t){var e=fo(t);return 1==e.length&&e[0][2]?Ao(e[0][0],e[0][1]):function(n){return n===t||jr(n,t,e)}}function Vr(t,e){return ko(t)&&Do(e)?Ao(Bo(t),e):function(n){var r=Ds(n,t);return r===o&&r===e?As(n,t):Fr(e,r,3)}}function Hr(t,e,n,r,i){t!==e&&_r(e,(function(a,s){if(es(a))i||(i=new Xn),function(t,e,n,r,i,a,s){var u=dn(t,n),l=dn(e,n),c=s.get(l);if(c)return void nr(t,n,c);var h=a?a(u,l,n+\"\",t,e,s):o,f=h===o;if(f){var d=Ga(l),p=!d&&Za(l),m=!d&&!p&&cs(l);h=l,d||p||m?Ga(u)?h=u:Ya(u)?h=Ti(u):p?(f=!1,h=Ci(l,!0)):m?(f=!1,h=Di(l,!0)):h=[]:os(l)||Ha(l)?(h=u,Ha(u)?h=ys(u):(!es(u)||r&&Ja(u))&&(h=bo(l))):f=!1}f&&(s.set(l,h),i(h,l,r,a,s),s.delete(l));nr(t,n,h)}(t,e,s,n,Hr,r,i);else{var u=r?r(dn(t,s),a,s+\"\",t,e,i):o;u===o&&(u=a),nr(t,s,u)}}),Ps)}function Gr(t,e){var n=t.length;if(n)return wo(e+=e<0?n:0,n)?t[e]:o}function qr(t,e,n){var r=-1;e=Le(e.length?e:[iu],tn(co()));var i=Rr(t,(function(t,n,i){var o=Le(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=Ai(i[r],o[r]);if(u)return r>=s?u:u*(\"desc\"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Wr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=Cr(t,a);n(s,a)&&ei(o,wi(a,t),s)}return o}function Yr(t,e,n,r){var i=r?qe:Ge,o=-1,a=e.length,s=t;for(t===e&&(e=Ti(e)),n&&(s=Le(t,tn(n)));++o<a;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==t&&Jt.call(s,u,1),Jt.call(t,u,1);return t}function Zr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;wo(i)?Jt.call(t,i,1):di(t,i)}}return t}function Kr(t,e){return t+ye(Sn()*(e-t+1))}function Xr(t,e){var n=\"\";if(!t||e<1||e>v)return n;do{e%2&&(n+=t),(e=ye(e/2))&&(t+=t)}while(e);return n}function Jr(t,e){return Po(Oo(t,e,iu),t+\"\")}function Qr(t){return Qn(Rs(t))}function ti(t,e){var n=Rs(t);return No(n,lr(e,0,n.length))}function ei(t,e,n,r){if(!es(t))return t;for(var i=-1,a=(e=wi(e,t)).length,s=a-1,u=t;null!=u&&++i<a;){var l=Bo(e[i]),c=n;if(i!=s){var h=u[l];(c=r?r(h,l,u):o)===o&&(c=es(h)?h:wo(e[i+1])?[]:{})}rr(u,l,c),u=u[l]}return t}var ni=In?function(t,e){return In.set(t,e),t}:iu,ri=ie?function(t,e){return ie(t,\"toString\",{configurable:!0,enumerable:!1,value:eu(e),writable:!0})}:iu;function ii(t){return No(Rs(t))}function oi(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i<o;)a[i]=t[i+e];return a}function ai(t,e){var n;return pr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function si(t,e,n){var r=0,i=null==t?r:t.length;if(\"number\"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!ls(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return ui(t,e,iu,n)}function ui(t,e,n,r){e=n(e);for(var i=0,a=null==t?0:t.length,s=e!=e,u=null===e,l=ls(e),c=e===o;i<a;){var h=ye((i+a)/2),f=n(t[h]),d=f!==o,p=null===f,m=f==f,v=ls(f);if(s)var g=r||m;else g=c?m&&(r||d):u?m&&d&&(r||!p):l?m&&d&&!p&&(r||!v):!p&&!v&&(r?f<=e:f<e);g?i=h+1:a=h}return wn(a,4294967294)}function li(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Ra(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ci(t){return\"number\"==typeof t?t:ls(t)?g:+t}function hi(t){if(\"string\"==typeof t)return t;if(Ga(t))return Le(t,hi)+\"\";if(ls(t))return Rn?Rn.call(t):\"\";var e=t+\"\";return\"0\"==e&&1/t==-1/0?\"-0\":e}function fi(t,e,n){var r=-1,i=je,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Ne;else if(o>=200){var l=e?null:Xi(t);if(l)return pn(l);a=!1,i=nn,u=new Kn}else u=e?[]:s;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,a&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;e&&u.push(h),s.push(c)}else i(u,h,n)||(u!==s&&u.push(h),s.push(c))}return s}function di(t,e){return null==(t=Mo(t,e=wi(e,t)))||delete t[Bo(Xo(e))]}function pi(t,e,n,r){return ei(t,e,n(Cr(t,e)),r)}function mi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?oi(t,r?0:o,r?o+1:i):oi(t,r?o+1:0,r?i:o)}function vi(t,e){var n=t;return n instanceof qn&&(n=n.value()),$e(e,(function(t,e){return e.func.apply(e.thisArg,Be([t],e.args))}),n)}function gi(t,e,n){var i=t.length;if(i<2)return i?fi(t[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=t[o],u=-1;++u<i;)u!=o&&(a[o]=dr(a[o]||s,t[u],e,n));return fi(br(a,1),e,n)}function yi(t,e,n){for(var r=-1,i=t.length,a=e.length,s={};++r<i;){var u=r<a?e[r]:o;n(s,t[r],u)}return s}function bi(t){return Ya(t)?t:[]}function _i(t){return\"function\"==typeof t?t:iu}function wi(t,e){return Ga(t)?t:ko(t,e)?[t]:Lo(bs(t))}var xi=Jr;function ki(t,e,n){var r=t.length;return n=n===o?r:n,!e&&n>=r?t:oi(t,e,n)}var Si=ae||function(t){return ge.clearTimeout(t)};function Ci(t,e){if(e)return t.slice();var n=t.length,r=Yt?Yt(n):new t.constructor(n);return t.copy(r),r}function Ei(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function Di(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ai(t,e){if(t!==e){var n=t!==o,r=null===t,i=t==t,a=ls(t),s=e!==o,u=null===e,l=e==e,c=ls(e);if(!u&&!c&&!a&&t>e||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!i)return 1;if(!r&&!a&&!c&&t<e||c&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!l)return-1}return 0}function Oi(t,e,n,i){for(var o=-1,a=t.length,s=n.length,u=-1,l=e.length,c=_n(a-s,0),h=r(l+c),f=!i;++u<l;)h[u]=e[u];for(;++o<s;)(f||o<a)&&(h[n[o]]=t[o]);for(;c--;)h[u++]=t[o++];return h}function Mi(t,e,n,i){for(var o=-1,a=t.length,s=-1,u=n.length,l=-1,c=e.length,h=_n(a-u,0),f=r(h+c),d=!i;++o<h;)f[o]=t[o];for(var p=o;++l<c;)f[p+l]=e[l];for(;++s<u;)(d||o<a)&&(f[p+n[s]]=t[o++]);return f}function Ti(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ii(t,e,n,r){var i=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var u=e[a],l=r?r(n[u],t[u],u,n,t):o;l===o&&(l=t[u]),i?sr(n,u,l):rr(n,u,l)}return n}function Pi(t,e){return function(n,r){var i=Ga(n)?Me:or,o=e?e():{};return i(n,t,co(r,2),o)}}function Fi(t){return Jr((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=t.length>3&&\"function\"==typeof a?(i--,a):o,s&&xo(n[0],n[1],s)&&(a=i<3?o:a,i=1),e=Ot(e);++r<i;){var u=n[r];u&&t(e,u,r,a)}return e}))}function ji(t,e){return function(n,r){if(null==n)return n;if(!Wa(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Ot(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ni(t){return function(e,n,r){for(var i=-1,o=Ot(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function Li(t){return function(e){var n=ln(e=bs(e))?gn(e):o,r=n?n[0]:e.charAt(0),i=n?ki(n,1).join(\"\"):e.slice(1);return r[t]()+i}}function Bi(t){return function(e){return $e(Js(Hs(e).replace(ne,\"\")),t,\"\")}}function $i(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Vn(t.prototype),r=t.apply(n,e);return es(r)?r:n}}function zi(t){return function(e,n,r){var i=Ot(e);if(!Wa(e)){var a=co(n,3);e=Is(e),n=function(t){return a(i[t],t,i)}}var s=t(e,n,r);return s>-1?i[a?e[s]:s]:o}}function Ri(t){return io((function(e){var n=e.length,r=n,i=Gn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if(\"function\"!=typeof a)throw new It(s);if(i&&!u&&\"wrapper\"==uo(a))var u=new Gn([],!0)}for(r=u?r:n;++r<n;){var l=uo(a=e[r]),c=\"wrapper\"==l?so(a):o;u=c&&So(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[uo(c[0])].apply(u,c[3]):1==a.length&&So(a)?u[l]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&Ga(r))return u.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Ui(t,e,n,i,a,s,u,l,c,h){var f=e&d,p=1&e,m=2&e,v=24&e,g=512&e,y=m?o:$i(t);return function d(){for(var b=arguments.length,_=r(b),w=b;w--;)_[w]=arguments[w];if(v)var x=lo(d),k=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(_,x);if(i&&(_=Oi(_,i,a,v)),s&&(_=Mi(_,s,u,v)),b-=k,v&&b<h){var S=fn(_,x);return Zi(t,e,Ui,d.placeholder,n,_,S,l,c,h-b)}var C=p?n:this,E=m?C[t]:t;return b=_.length,l?_=function(t,e){var n=t.length,r=wn(e.length,n),i=Ti(t);for(;r--;){var a=e[r];t[r]=wo(a,n)?i[a]:o}return t}(_,l):g&&b>1&&_.reverse(),f&&c<b&&(_.length=c),this&&this!==ge&&this instanceof d&&(E=y||$i(E)),E.apply(C,_)}}function Vi(t,e){return function(n,r){return function(t,e,n,r){return xr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Hi(t,e){return function(n,r){var i;if(n===o&&r===o)return e;if(n!==o&&(i=n),r!==o){if(i===o)return r;\"string\"==typeof n||\"string\"==typeof r?(n=hi(n),r=hi(r)):(n=ci(n),r=ci(r)),i=t(n,r)}return i}}function Gi(t){return io((function(e){return e=Le(e,tn(co())),Jr((function(n){var r=this;return t(e,(function(t){return Oe(t,r,n)}))}))}))}function qi(t,e){var n=(e=e===o?\" \":hi(e)).length;if(n<2)return n?Xr(e,t):e;var r=Xr(e,ve(t/vn(e)));return ln(e)?ki(gn(r),0,t).join(\"\"):r.slice(0,t)}function Wi(t){return function(e,n,i){return i&&\"number\"!=typeof i&&xo(e,n,i)&&(n=i=o),e=ps(e),n===o?(n=e,e=0):n=ps(n),function(t,e,n,i){for(var o=-1,a=_n(ve((e-t)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=t,t+=n;return s}(e,n,i=i===o?e<n?1:-1:ps(i),t)}}function Yi(t){return function(e,n){return\"string\"==typeof e&&\"string\"==typeof n||(e=gs(e),n=gs(n)),t(e,n)}}function Zi(t,e,n,r,i,a,s,u,l,c){var d=8&e;e|=d?h:f,4&(e&=~(d?f:h))||(e&=-4);var p=[t,e,i,d?a:o,d?s:o,d?o:a,d?o:s,u,l,c],m=n.apply(o,p);return So(t)&&To(m,p),m.placeholder=r,Fo(m,t,e)}function Ki(t){var e=At[t];return function(t,n){if(t=gs(t),n=null==n?0:wn(ms(n),292)){var r=(bs(t)+\"e\").split(\"e\");return+((r=(bs(e(r[0]+\"e\"+(+r[1]+n)))+\"e\").split(\"e\"))[0]+\"e\"+(+r[1]-n))}return e(t)}}var Xi=On&&1/pn(new On([,-0]))[1]==m?function(t){return new On(t)}:lu;function Ji(t){return function(e){var n=go(e);return n==D?cn(e):n==I?mn(e):function(t,e){return Le(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Qi(t,e,n,i,a,u,m,v){var g=2&e;if(!g&&\"function\"!=typeof t)throw new It(s);var y=i?i.length:0;if(y||(e&=-97,i=a=o),m=m===o?m:_n(ms(m),0),v=v===o?v:ms(v),y-=a?a.length:0,e&f){var b=i,_=a;i=a=o}var w=g?o:so(t),x=[t,e,n,i,a,b,_,u,m,v];if(w&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,a=r==d&&8==n||r==d&&n==p&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!a)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var s=e[3];if(s){var u=t[3];t[3]=u?Oi(u,s,e[4]):s,t[4]=u?fn(t[3],l):e[4]}(s=e[5])&&(u=t[5],t[5]=u?Mi(u,s,e[6]):s,t[6]=u?fn(t[5],l):e[6]);(s=e[7])&&(t[7]=s);r&d&&(t[8]=null==t[8]?e[8]:wn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(x,w),t=x[0],e=x[1],n=x[2],i=x[3],a=x[4],!(v=x[9]=x[9]===o?g?0:t.length:_n(x[9]-y,0))&&24&e&&(e&=-25),e&&1!=e)k=8==e||e==c?function(t,e,n){var i=$i(t);return function a(){for(var s=arguments.length,u=r(s),l=s,c=lo(a);l--;)u[l]=arguments[l];var h=s<3&&u[0]!==c&&u[s-1]!==c?[]:fn(u,c);return(s-=h.length)<n?Zi(t,e,Ui,a.placeholder,o,u,h,o,o,n-s):Oe(this&&this!==ge&&this instanceof a?i:t,this,u)}}(t,e,v):e!=h&&33!=e||a.length?Ui.apply(o,x):function(t,e,n,i){var o=1&e,a=$i(t);return function e(){for(var s=-1,u=arguments.length,l=-1,c=i.length,h=r(c+u),f=this&&this!==ge&&this instanceof e?a:t;++l<c;)h[l]=i[l];for(;u--;)h[l++]=arguments[++s];return Oe(f,o?n:this,h)}}(t,e,n,i);else var k=function(t,e,n){var r=1&e,i=$i(t);return function e(){return(this&&this!==ge&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Fo((w?ni:To)(k,x),t,e)}function to(t,e,n,r){return t===o||Ra(t,jt[n])&&!Bt.call(r,n)?e:t}function eo(t,e,n,r,i,a){return es(t)&&es(e)&&(a.set(e,t),Hr(t,e,o,eo,a),a.delete(e)),t}function no(t){return os(t)?o:t}function ro(t,e,n,r,i,a){var s=1&n,u=t.length,l=e.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(t);if(c&&a.get(e))return c==e;var h=-1,f=!0,d=2&n?new Kn:o;for(a.set(t,e),a.set(e,t);++h<u;){var p=t[h],m=e[h];if(r)var v=s?r(m,p,h,e,t,a):r(p,m,h,t,e,a);if(v!==o){if(v)continue;f=!1;break}if(d){if(!Re(e,(function(t,e){if(!nn(d,e)&&(p===t||i(p,t,n,r,a)))return d.push(e)}))){f=!1;break}}else if(p!==m&&!i(p,m,n,r,a)){f=!1;break}}return a.delete(t),a.delete(e),f}function io(t){return Po(Oo(t,o,qo),t+\"\")}function oo(t){return Er(t,Is,mo)}function ao(t){return Er(t,Ps,vo)}var so=In?function(t){return In.get(t)}:lu;function uo(t){for(var e=t.name+\"\",n=Pn[e],r=Bt.call(Pn,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function lo(t){return(Bt.call(Un,\"placeholder\")?Un:t).placeholder}function co(){var t=Un.iteratee||ou;return t=t===ou?Lr:t,arguments.length?t(arguments[0],arguments[1]):t}function ho(t,e){var n,r,i=t.__data__;return(\"string\"==(r=void 0===(n=e)?\"undefined\":a(n))||\"number\"==r||\"symbol\"==r||\"boolean\"==r?\"__proto__\"!==n:null===n)?i[\"string\"==typeof e?\"string\":\"hash\"]:i.map}function fo(t){for(var e=Is(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Do(i)]}return e}function po(t,e){var n=function(t,e){return null==t?o:t[e]}(t,e);return Nr(n)?n:o}var mo=be?function(t){return null==t?[]:(t=Ot(t),Fe(be(t),(function(e){return Xt.call(t,e)})))}:vu,vo=be?function(t){for(var e=[];t;)Be(e,mo(t)),t=Zt(t);return e}:vu,go=Dr;function yo(t,e,n){for(var r=-1,i=(e=wi(e,t)).length,o=!1;++r<i;){var a=Bo(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&ts(i)&&wo(a,i)&&(Ga(t)||Ha(t))}function bo(t){return\"function\"!=typeof t.constructor||Eo(t)?{}:Vn(Zt(t))}function _o(t){return Ga(t)||Ha(t)||!!(Qt&&t&&t[Qt])}function wo(t,e){var n=void 0===t?\"undefined\":a(t);return!!(e=null==e?v:e)&&(\"number\"==n||\"symbol\"!=n&&xt.test(t))&&t>-1&&t%1==0&&t<e}function xo(t,e,n){if(!es(n))return!1;var r=void 0===e?\"undefined\":a(e);return!!(\"number\"==r?Wa(n)&&wo(e,n.length):\"string\"==r&&e in n)&&Ra(n[e],t)}function ko(t,e){if(Ga(t))return!1;var n=void 0===t?\"undefined\":a(t);return!(\"number\"!=n&&\"symbol\"!=n&&\"boolean\"!=n&&null!=t&&!ls(t))||(it.test(t)||!rt.test(t)||null!=e&&t in Ot(e))}function So(t){var e=uo(t),n=Un[e];if(\"function\"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=so(n);return!!r&&t===r[0]}(En&&go(new En(new ArrayBuffer(1)))!=L||Dn&&go(new Dn)!=D||An&&go(An.resolve())!=M||On&&go(new On)!=I||Mn&&go(new Mn)!=j)&&(go=function(t){var e=Dr(t),n=e==O?t.constructor:o,r=n?$o(n):\"\";if(r)switch(r){case Fn:return L;case jn:return D;case Nn:return M;case Ln:return I;case Bn:return j}return e});var Co=Nt?Ja:gu;function Eo(t){var e=t&&t.constructor;return t===(\"function\"==typeof e&&e.prototype||jt)}function Do(t){return t==t&&!es(t)}function Ao(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==o||t in Ot(n)))}}function Oo(t,e,n){return e=_n(e===o?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=_n(i.length-e,0),s=r(a);++o<a;)s[o]=i[e+o];o=-1;for(var u=r(e+1);++o<e;)u[o]=i[o];return u[e]=n(s),Oe(t,this,u)}}function Mo(t,e){return e.length<2?t:Cr(t,oi(e,0,-1))}var To=jo(ni),Io=me||function(t,e){return ge.setTimeout(t,e)},Po=jo(ri);function Fo(t,e,n){var r=e+\"\";return Po(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?\"& \":\"\")+e[r],e=e.join(n>2?\", \":\" \"),t.replace(ht,\"{\\n/* [wrapped with \"+e+\"] */\\n\")}(r,function(t,e){return Te(b,(function(n){var r=\"_.\"+n[0];e&n[1]&&!je(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ft);return e?e[1].split(dt):[]}(r),n)))}function jo(t){var e=0,n=0;return function(){var r=xn(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(o,arguments)}}function No(t,e){var n=-1,r=t.length,i=r-1;for(e=e===o?r:e;++n<e;){var a=Kr(n,i),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var Lo=function(t){var e=ja(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(\"\"),t.replace(ot,(function(t,n,r,i){e.push(r?i.replace(mt,\"$1\"):n||t)})),e}));function Bo(t){if(\"string\"==typeof t||ls(t))return t;var e=t+\"\";return\"0\"==e&&1/t==-1/0?\"-0\":e}function $o(t){if(null!=t){try{return Lt.call(t)}catch(t){}try{return t+\"\"}catch(t){}}return\"\"}function zo(t){if(t instanceof qn)return t.clone();var e=new Gn(t.__wrapped__,t.__chain__);return e.__actions__=Ti(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ro=Jr((function(t,e){return Ya(t)?dr(t,br(e,1,Ya,!0)):[]})),Uo=Jr((function(t,e){var n=Xo(e);return Ya(n)&&(n=o),Ya(t)?dr(t,br(e,1,Ya,!0),co(n,2)):[]})),Vo=Jr((function(t,e){var n=Xo(e);return Ya(n)&&(n=o),Ya(t)?dr(t,br(e,1,Ya,!0),o,n):[]}));function Ho(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ms(n);return i<0&&(i=_n(r+i,0)),He(t,co(e,3),i)}function Go(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ms(n),i=n<0?_n(r+i,0):wn(i,r-1)),He(t,co(e,3),i,!0)}function qo(t){return(null==t?0:t.length)?br(t,1):[]}function Wo(t){return t&&t.length?t[0]:o}var Yo=Jr((function(t){var e=Le(t,bi);return e.length&&e[0]===t[0]?Tr(e):[]})),Zo=Jr((function(t){var e=Xo(t),n=Le(t,bi);return e===Xo(n)?e=o:n.pop(),n.length&&n[0]===t[0]?Tr(n,co(e,2)):[]})),Ko=Jr((function(t){var e=Xo(t),n=Le(t,bi);return(e=\"function\"==typeof e?e:o)&&n.pop(),n.length&&n[0]===t[0]?Tr(n,o,e):[]}));function Xo(t){var e=null==t?0:t.length;return e?t[e-1]:o}var Jo=Jr(Qo);function Qo(t,e){return t&&t.length&&e&&e.length?Yr(t,e):t}var ta=io((function(t,e){var n=null==t?0:t.length,r=ur(t,e);return Zr(t,Le(e,(function(t){return wo(t,n)?+t:t})).sort(Ai)),r}));function ea(t){return null==t?t:Cn.call(t)}var na=Jr((function(t){return fi(br(t,1,Ya,!0))})),ra=Jr((function(t){var e=Xo(t);return Ya(e)&&(e=o),fi(br(t,1,Ya,!0),co(e,2))})),ia=Jr((function(t){var e=Xo(t);return e=\"function\"==typeof e?e:o,fi(br(t,1,Ya,!0),o,e)}));function oa(t){if(!t||!t.length)return[];var e=0;return t=Fe(t,(function(t){if(Ya(t))return e=_n(t.length,e),!0})),Qe(e,(function(e){return Le(t,Ze(e))}))}function aa(t,e){if(!t||!t.length)return[];var n=oa(t);return null==e?n:Le(n,(function(t){return Oe(e,o,t)}))}var sa=Jr((function(t,e){return Ya(t)?dr(t,e):[]})),ua=Jr((function(t){return gi(Fe(t,Ya))})),la=Jr((function(t){var e=Xo(t);return Ya(e)&&(e=o),gi(Fe(t,Ya),co(e,2))})),ca=Jr((function(t){var e=Xo(t);return e=\"function\"==typeof e?e:o,gi(Fe(t,Ya),o,e)})),ha=Jr(oa);var fa=Jr((function(t){var e=t.length,n=e>1?t[e-1]:o;return n=\"function\"==typeof n?(t.pop(),n):o,aa(t,n)}));function da(t){var e=Un(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var ma=io((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return ur(e,t)};return!(e>1||this.__actions__.length)&&r instanceof qn&&wo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Gn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)}));var va=Pi((function(t,e,n){Bt.call(t,n)?++t[n]:sr(t,n,1)}));var ga=zi(Ho),ya=zi(Go);function ba(t,e){return(Ga(t)?Te:pr)(t,co(e,3))}function _a(t,e){return(Ga(t)?Ie:mr)(t,co(e,3))}var wa=Pi((function(t,e,n){Bt.call(t,n)?t[n].push(e):sr(t,n,[e])}));var xa=Jr((function(t,e,n){var i=-1,o=\"function\"==typeof e,a=Wa(t)?r(t.length):[];return pr(t,(function(t){a[++i]=o?Oe(e,t,n):Ir(t,e,n)})),a})),ka=Pi((function(t,e,n){sr(t,n,e)}));function Sa(t,e){return(Ga(t)?Le:Rr)(t,co(e,3))}var Ca=Pi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Ea=Jr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&xo(t,e[0],e[1])?e=[]:n>2&&xo(e[0],e[1],e[2])&&(e=[e[0]]),qr(t,br(e,1),[])})),Da=fe||function(){return ge.Date.now()};function Aa(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,Qi(t,d,o,o,o,o,e)}function Oa(t,e){var n;if(\"function\"!=typeof e)throw new It(s);return t=ms(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Ma=Jr((function(t,e,n){var r=1;if(n.length){var i=fn(n,lo(Ma));r|=h}return Qi(t,r,e,n,i)})),Ta=Jr((function(t,e,n){var r=3;if(n.length){var i=fn(n,lo(Ta));r|=h}return Qi(e,r,t,n,i)}));function Ia(t,e,n){var r,i,a,u,l,c,h=0,f=!1,d=!1,p=!0;if(\"function\"!=typeof t)throw new It(s);function m(e){var n=r,a=i;return r=i=o,h=e,u=t.apply(a,n)}function v(t){var n=t-c;return c===o||n>=e||n<0||d&&t-h>=a}function g(){var t=Da();if(v(t))return y(t);l=Io(g,function(t){var n=e-(t-c);return d?wn(n,a-(t-h)):n}(t))}function y(t){return l=o,p&&r?m(t):(r=i=o,u)}function b(){var t=Da(),n=v(t);if(r=arguments,i=this,c=t,n){if(l===o)return function(t){return h=t,l=Io(g,e),f?m(t):u}(c);if(d)return l=Io(g,e),m(c)}return l===o&&(l=Io(g,e)),u}return e=gs(e)||0,es(n)&&(f=!!n.leading,a=(d=\"maxWait\"in n)?_n(gs(n.maxWait)||0,e):a,p=\"trailing\"in n?!!n.trailing:p),b.cancel=function(){l!==o&&Si(l),h=0,r=c=i=l=o},b.flush=function(){return l===o?u:y(Da())},b}var Pa=Jr((function(t,e){return fr(t,1,e)})),Fa=Jr((function(t,e,n){return fr(t,gs(e)||0,n)}));function ja(t,e){if(\"function\"!=typeof t||null!=e&&\"function\"!=typeof e)throw new It(s);var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ja.Cache||Zn),n}function Na(t){if(\"function\"!=typeof t)throw new It(s);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}ja.Cache=Zn;var La=xi((function(t,e){var n=(e=1==e.length&&Ga(e[0])?Le(e[0],tn(co())):Le(br(e,1),tn(co()))).length;return Jr((function(r){for(var i=-1,o=wn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Oe(t,this,r)}))})),Ba=Jr((function(t,e){var n=fn(e,lo(Ba));return Qi(t,h,o,e,n)})),$a=Jr((function(t,e){var n=fn(e,lo($a));return Qi(t,f,o,e,n)})),za=io((function(t,e){return Qi(t,p,o,o,o,e)}));function Ra(t,e){return t===e||t!=t&&e!=e}var Ua=Yi(Ar),Va=Yi((function(t,e){return t>=e})),Ha=Pr(function(){return arguments}())?Pr:function(t){return ns(t)&&Bt.call(t,\"callee\")&&!Xt.call(t,\"callee\")},Ga=r.isArray,qa=ke?tn(ke):function(t){return ns(t)&&Dr(t)==N};function Wa(t){return null!=t&&ts(t.length)&&!Ja(t)}function Ya(t){return ns(t)&&Wa(t)}var Za=we||gu,Ka=Se?tn(Se):function(t){return ns(t)&&Dr(t)==k};function Xa(t){if(!ns(t))return!1;var e=Dr(t);return e==S||\"[object DOMException]\"==e||\"string\"==typeof t.message&&\"string\"==typeof t.name&&!os(t)}function Ja(t){if(!es(t))return!1;var e=Dr(t);return e==C||e==E||\"[object AsyncFunction]\"==e||\"[object Proxy]\"==e}function Qa(t){return\"number\"==typeof t&&t==ms(t)}function ts(t){return\"number\"==typeof t&&t>-1&&t%1==0&&t<=v}function es(t){var e=void 0===t?\"undefined\":a(t);return null!=t&&(\"object\"==e||\"function\"==e)}function ns(t){return null!=t&&\"object\"===(void 0===t?\"undefined\":a(t))}var rs=Ce?tn(Ce):function(t){return ns(t)&&go(t)==D};function is(t){return\"number\"==typeof t||ns(t)&&Dr(t)==A}function os(t){if(!ns(t)||Dr(t)!=O)return!1;var e=Zt(t);if(null===e)return!0;var n=Bt.call(e,\"constructor\")&&e.constructor;return\"function\"==typeof n&&n instanceof n&&Lt.call(n)==Ut}var as=Ee?tn(Ee):function(t){return ns(t)&&Dr(t)==T};var ss=De?tn(De):function(t){return ns(t)&&go(t)==I};function us(t){return\"string\"==typeof t||!Ga(t)&&ns(t)&&Dr(t)==P}function ls(t){return\"symbol\"===(void 0===t?\"undefined\":a(t))||ns(t)&&Dr(t)==F}var cs=Ae?tn(Ae):function(t){return ns(t)&&ts(t.length)&&!!ce[Dr(t)]};var hs=Yi(zr),fs=Yi((function(t,e){return t<=e}));function ds(t){if(!t)return[];if(Wa(t))return us(t)?gn(t):Ti(t);if(te&&t[te])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[te]());var e=go(t);return(e==D?cn:e==I?pn:Rs)(t)}function ps(t){return t?(t=gs(t))===m||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ms(t){var e=ps(t),n=e%1;return e==e?n?e-n:e:0}function vs(t){return t?lr(ms(t),0,y):0}function gs(t){if(\"number\"==typeof t)return t;if(ls(t))return g;if(es(t)){var e=\"function\"==typeof t.valueOf?t.valueOf():t;t=es(e)?e+\"\":e}if(\"string\"!=typeof t)return 0===t?t:+t;t=t.replace(ut,\"\");var n=bt.test(t);return n||wt.test(t)?pe(t.slice(2),n?2:8):yt.test(t)?g:+t}function ys(t){return Ii(t,Ps(t))}function bs(t){return null==t?\"\":hi(t)}var _s=Fi((function(t,e){if(Eo(e)||Wa(e))Ii(e,Is(e),t);else for(var n in e)Bt.call(e,n)&&rr(t,n,e[n])})),ws=Fi((function(t,e){Ii(e,Ps(e),t)})),xs=Fi((function(t,e,n,r){Ii(e,Ps(e),t,r)})),ks=Fi((function(t,e,n,r){Ii(e,Is(e),t,r)})),Ss=io(ur);var Cs=Jr((function(t,e){t=Ot(t);var n=-1,r=e.length,i=r>2?e[2]:o;for(i&&xo(e[0],e[1],i)&&(r=1);++n<r;)for(var a=e[n],s=Ps(a),u=-1,l=s.length;++u<l;){var c=s[u],h=t[c];(h===o||Ra(h,jt[c])&&!Bt.call(t,c))&&(t[c]=a[c])}return t})),Es=Jr((function(t){return t.push(o,eo),Oe(js,o,t)}));function Ds(t,e,n){var r=null==t?o:Cr(t,e);return r===o?n:r}function As(t,e){return null!=t&&yo(t,e,Mr)}var Os=Vi((function(t,e,n){null!=e&&\"function\"!=typeof e.toString&&(e=Rt.call(e)),t[e]=n}),eu(iu)),Ms=Vi((function(t,e,n){null!=e&&\"function\"!=typeof e.toString&&(e=Rt.call(e)),Bt.call(t,e)?t[e].push(n):t[e]=[n]}),co),Ts=Jr(Ir);function Is(t){return Wa(t)?Jn(t):Br(t)}function Ps(t){return Wa(t)?Jn(t,!0):$r(t)}var Fs=Fi((function(t,e,n){Hr(t,e,n)})),js=Fi((function(t,e,n,r){Hr(t,e,n,r)})),Ns=io((function(t,e){var n={};if(null==t)return n;var r=!1;e=Le(e,(function(e){return e=wi(e,t),r||(r=e.length>1),e})),Ii(t,ao(t),n),r&&(n=cr(n,7,no));for(var i=e.length;i--;)di(n,e[i]);return n}));var Ls=io((function(t,e){return null==t?{}:function(t,e){return Wr(t,e,(function(e,n){return As(t,n)}))}(t,e)}));function Bs(t,e){if(null==t)return{};var n=Le(ao(t),(function(t){return[t]}));return e=co(e),Wr(t,n,(function(t,n){return e(t,n[0])}))}var $s=Ji(Is),zs=Ji(Ps);function Rs(t){return null==t?[]:en(t,Is(t))}var Us=Bi((function(t,e,n){return e=e.toLowerCase(),t+(n?Vs(e):e)}));function Vs(t){return Xs(bs(t).toLowerCase())}function Hs(t){return(t=bs(t))&&t.replace(kt,an).replace(re,\"\")}var Gs=Bi((function(t,e,n){return t+(n?\"-\":\"\")+e.toLowerCase()})),qs=Bi((function(t,e,n){return t+(n?\" \":\"\")+e.toLowerCase()})),Ws=Li(\"toLowerCase\");var Ys=Bi((function(t,e,n){return t+(n?\"_\":\"\")+e.toLowerCase()}));var Zs=Bi((function(t,e,n){return t+(n?\" \":\"\")+Xs(e)}));var Ks=Bi((function(t,e,n){return t+(n?\" \":\"\")+e.toUpperCase()})),Xs=Li(\"toUpperCase\");function Js(t,e,n){return t=bs(t),(e=n?o:e)===o?function(t){return se.test(t)}(t)?function(t){return t.match(oe)||[]}(t):function(t){return t.match(pt)||[]}(t):t.match(e)||[]}var Qs=Jr((function(t,e){try{return Oe(t,o,e)}catch(t){return Xa(t)?t:new Et(t)}})),tu=io((function(t,e){return Te(e,(function(e){e=Bo(e),sr(t,e,Ma(t[e],t))})),t}));function eu(t){return function(){return t}}var nu=Ri(),ru=Ri(!0);function iu(t){return t}function ou(t){return Lr(\"function\"==typeof t?t:cr(t,1))}var au=Jr((function(t,e){return function(n){return Ir(n,t,e)}})),su=Jr((function(t,e){return function(n){return Ir(t,n,e)}}));function uu(t,e,n){var r=Is(e),i=Sr(e,r);null!=n||es(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Sr(e,Is(e)));var o=!(es(n)&&\"chain\"in n&&!n.chain),a=Ja(t);return Te(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ti(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Be([this.value()],arguments))})})),t}function lu(){}var cu=Gi(Le),hu=Gi(Pe),fu=Gi(Re);function du(t){return ko(t)?Ze(Bo(t)):function(t){return function(e){return Cr(e,t)}}(t)}var pu=Wi(),mu=Wi(!0);function vu(){return[]}function gu(){return!1}var yu=Hi((function(t,e){return t+e}),0),bu=Ki(\"ceil\"),_u=Hi((function(t,e){return t/e}),1),wu=Ki(\"floor\");var xu,ku=Hi((function(t,e){return t*e}),1),Su=Ki(\"round\"),Cu=Hi((function(t,e){return t-e}),0);return Un.after=function(t,e){if(\"function\"!=typeof e)throw new It(s);return t=ms(t),function(){if(--t<1)return e.apply(this,arguments)}},Un.ary=Aa,Un.assign=_s,Un.assignIn=ws,Un.assignInWith=xs,Un.assignWith=ks,Un.at=Ss,Un.before=Oa,Un.bind=Ma,Un.bindAll=tu,Un.bindKey=Ta,Un.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ga(t)?t:[t]},Un.chain=da,Un.chunk=function(t,e,n){e=(n?xo(t,e,n):e===o)?1:_n(ms(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var a=0,s=0,u=r(ve(i/e));a<i;)u[s++]=oi(t,a,a+=e);return u},Un.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Un.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Be(Ga(n)?Ti(n):[n],br(e,1))},Un.cond=function(t){var e=null==t?0:t.length,n=co();return t=e?Le(t,(function(t){if(\"function\"!=typeof t[1])throw new It(s);return[n(t[0]),t[1]]})):[],Jr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Oe(i[0],this,n))return Oe(i[1],this,n)}}))},Un.conforms=function(t){return function(t){var e=Is(t);return function(n){return hr(n,t,e)}}(cr(t,1))},Un.constant=eu,Un.countBy=va,Un.create=function(t,e){var n=Vn(t);return null==e?n:ar(n,e)},Un.curry=function t(e,n,r){var i=Qi(e,8,o,o,o,o,o,n=r?o:n);return i.placeholder=t.placeholder,i},Un.curryRight=function t(e,n,r){var i=Qi(e,c,o,o,o,o,o,n=r?o:n);return i.placeholder=t.placeholder,i},Un.debounce=Ia,Un.defaults=Cs,Un.defaultsDeep=Es,Un.defer=Pa,Un.delay=Fa,Un.difference=Ro,Un.differenceBy=Uo,Un.differenceWith=Vo,Un.drop=function(t,e,n){var r=null==t?0:t.length;return r?oi(t,(e=n||e===o?1:ms(e))<0?0:e,r):[]},Un.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?oi(t,0,(e=r-(e=n||e===o?1:ms(e)))<0?0:e):[]},Un.dropRightWhile=function(t,e){return t&&t.length?mi(t,co(e,3),!0,!0):[]},Un.dropWhile=function(t,e){return t&&t.length?mi(t,co(e,3),!0):[]},Un.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&\"number\"!=typeof n&&xo(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=ms(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ms(r))<0&&(r+=i),r=n>r?0:vs(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Un.filter=function(t,e){return(Ga(t)?Fe:yr)(t,co(e,3))},Un.flatMap=function(t,e){return br(Sa(t,e),1)},Un.flatMapDeep=function(t,e){return br(Sa(t,e),m)},Un.flatMapDepth=function(t,e,n){return n=n===o?1:ms(n),br(Sa(t,e),n)},Un.flatten=qo,Un.flattenDeep=function(t){return(null==t?0:t.length)?br(t,m):[]},Un.flattenDepth=function(t,e){return(null==t?0:t.length)?br(t,e=e===o?1:ms(e)):[]},Un.flip=function(t){return Qi(t,512)},Un.flow=nu,Un.flowRight=ru,Un.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Un.functions=function(t){return null==t?[]:Sr(t,Is(t))},Un.functionsIn=function(t){return null==t?[]:Sr(t,Ps(t))},Un.groupBy=wa,Un.initial=function(t){return(null==t?0:t.length)?oi(t,0,-1):[]},Un.intersection=Yo,Un.intersectionBy=Zo,Un.intersectionWith=Ko,Un.invert=Os,Un.invertBy=Ms,Un.invokeMap=xa,Un.iteratee=ou,Un.keyBy=ka,Un.keys=Is,Un.keysIn=Ps,Un.map=Sa,Un.mapKeys=function(t,e){var n={};return e=co(e,3),xr(t,(function(t,r,i){sr(n,e(t,r,i),t)})),n},Un.mapValues=function(t,e){var n={};return e=co(e,3),xr(t,(function(t,r,i){sr(n,r,e(t,r,i))})),n},Un.matches=function(t){return Ur(cr(t,1))},Un.matchesProperty=function(t,e){return Vr(t,cr(e,1))},Un.memoize=ja,Un.merge=Fs,Un.mergeWith=js,Un.method=au,Un.methodOf=su,Un.mixin=uu,Un.negate=Na,Un.nthArg=function(t){return t=ms(t),Jr((function(e){return Gr(e,t)}))},Un.omit=Ns,Un.omitBy=function(t,e){return Bs(t,Na(co(e)))},Un.once=function(t){return Oa(2,t)},Un.orderBy=function(t,e,n,r){return null==t?[]:(Ga(e)||(e=null==e?[]:[e]),Ga(n=r?o:n)||(n=null==n?[]:[n]),qr(t,e,n))},Un.over=cu,Un.overArgs=La,Un.overEvery=hu,Un.overSome=fu,Un.partial=Ba,Un.partialRight=$a,Un.partition=Ca,Un.pick=Ls,Un.pickBy=Bs,Un.property=du,Un.propertyOf=function(t){return function(e){return null==t?o:Cr(t,e)}},Un.pull=Jo,Un.pullAll=Qo,Un.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Yr(t,e,co(n,2)):t},Un.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Yr(t,e,o,n):t},Un.pullAt=ta,Un.range=pu,Un.rangeRight=mu,Un.rearg=za,Un.reject=function(t,e){return(Ga(t)?Fe:yr)(t,Na(co(e,3)))},Un.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=co(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Zr(t,i),n},Un.rest=function(t,e){if(\"function\"!=typeof t)throw new It(s);return Jr(t,e=e===o?e:ms(e))},Un.reverse=ea,Un.sampleSize=function(t,e,n){return e=(n?xo(t,e,n):e===o)?1:ms(e),(Ga(t)?tr:ti)(t,e)},Un.set=function(t,e,n){return null==t?t:ei(t,e,n)},Un.setWith=function(t,e,n,r){return r=\"function\"==typeof r?r:o,null==t?t:ei(t,e,n,r)},Un.shuffle=function(t){return(Ga(t)?er:ii)(t)},Un.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&\"number\"!=typeof n&&xo(t,e,n)?(e=0,n=r):(e=null==e?0:ms(e),n=n===o?r:ms(n)),oi(t,e,n)):[]},Un.sortBy=Ea,Un.sortedUniq=function(t){return t&&t.length?li(t):[]},Un.sortedUniqBy=function(t,e){return t&&t.length?li(t,co(e,2)):[]},Un.split=function(t,e,n){return n&&\"number\"!=typeof n&&xo(t,e,n)&&(e=n=o),(n=n===o?y:n>>>0)?(t=bs(t))&&(\"string\"==typeof e||null!=e&&!as(e))&&!(e=hi(e))&&ln(t)?ki(gn(t),0,n):t.split(e,n):[]},Un.spread=function(t,e){if(\"function\"!=typeof t)throw new It(s);return e=null==e?0:_n(ms(e),0),Jr((function(n){var r=n[e],i=ki(n,0,e);return r&&Be(i,r),Oe(t,this,i)}))},Un.tail=function(t){var e=null==t?0:t.length;return e?oi(t,1,e):[]},Un.take=function(t,e,n){return t&&t.length?oi(t,0,(e=n||e===o?1:ms(e))<0?0:e):[]},Un.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?oi(t,(e=r-(e=n||e===o?1:ms(e)))<0?0:e,r):[]},Un.takeRightWhile=function(t,e){return t&&t.length?mi(t,co(e,3),!1,!0):[]},Un.takeWhile=function(t,e){return t&&t.length?mi(t,co(e,3)):[]},Un.tap=function(t,e){return e(t),t},Un.throttle=function(t,e,n){var r=!0,i=!0;if(\"function\"!=typeof t)throw new It(s);return es(n)&&(r=\"leading\"in n?!!n.leading:r,i=\"trailing\"in n?!!n.trailing:i),Ia(t,e,{leading:r,maxWait:e,trailing:i})},Un.thru=pa,Un.toArray=ds,Un.toPairs=$s,Un.toPairsIn=zs,Un.toPath=function(t){return Ga(t)?Le(t,Bo):ls(t)?[t]:Ti(Lo(bs(t)))},Un.toPlainObject=ys,Un.transform=function(t,e,n){var r=Ga(t),i=r||Za(t)||cs(t);if(e=co(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:es(t)&&Ja(o)?Vn(Zt(t)):{}}return(i?Te:xr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Un.unary=function(t){return Aa(t,1)},Un.union=na,Un.unionBy=ra,Un.unionWith=ia,Un.uniq=function(t){return t&&t.length?fi(t):[]},Un.uniqBy=function(t,e){return t&&t.length?fi(t,co(e,2)):[]},Un.uniqWith=function(t,e){return e=\"function\"==typeof e?e:o,t&&t.length?fi(t,o,e):[]},Un.unset=function(t,e){return null==t||di(t,e)},Un.unzip=oa,Un.unzipWith=aa,Un.update=function(t,e,n){return null==t?t:pi(t,e,_i(n))},Un.updateWith=function(t,e,n,r){return r=\"function\"==typeof r?r:o,null==t?t:pi(t,e,_i(n),r)},Un.values=Rs,Un.valuesIn=function(t){return null==t?[]:en(t,Ps(t))},Un.without=sa,Un.words=Js,Un.wrap=function(t,e){return Ba(_i(e),t)},Un.xor=ua,Un.xorBy=la,Un.xorWith=ca,Un.zip=ha,Un.zipObject=function(t,e){return yi(t||[],e||[],rr)},Un.zipObjectDeep=function(t,e){return yi(t||[],e||[],ei)},Un.zipWith=fa,Un.entries=$s,Un.entriesIn=zs,Un.extend=ws,Un.extendWith=xs,uu(Un,Un),Un.add=yu,Un.attempt=Qs,Un.camelCase=Us,Un.capitalize=Vs,Un.ceil=bu,Un.clamp=function(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=(n=gs(n))==n?n:0),e!==o&&(e=(e=gs(e))==e?e:0),lr(gs(t),e,n)},Un.clone=function(t){return cr(t,4)},Un.cloneDeep=function(t){return cr(t,5)},Un.cloneDeepWith=function(t,e){return cr(t,5,e=\"function\"==typeof e?e:o)},Un.cloneWith=function(t,e){return cr(t,4,e=\"function\"==typeof e?e:o)},Un.conformsTo=function(t,e){return null==e||hr(t,e,Is(e))},Un.deburr=Hs,Un.defaultTo=function(t,e){return null==t||t!=t?e:t},Un.divide=_u,Un.endsWith=function(t,e,n){t=bs(t),e=hi(e);var r=t.length,i=n=n===o?r:lr(ms(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Un.eq=Ra,Un.escape=function(t){return(t=bs(t))&&Q.test(t)?t.replace(X,sn):t},Un.escapeRegExp=function(t){return(t=bs(t))&&st.test(t)?t.replace(at,\"\\\\$&\"):t},Un.every=function(t,e,n){var r=Ga(t)?Pe:vr;return n&&xo(t,e,n)&&(e=o),r(t,co(e,3))},Un.find=ga,Un.findIndex=Ho,Un.findKey=function(t,e){return Ve(t,co(e,3),xr)},Un.findLast=ya,Un.findLastIndex=Go,Un.findLastKey=function(t,e){return Ve(t,co(e,3),kr)},Un.floor=wu,Un.forEach=ba,Un.forEachRight=_a,Un.forIn=function(t,e){return null==t?t:_r(t,co(e,3),Ps)},Un.forInRight=function(t,e){return null==t?t:wr(t,co(e,3),Ps)},Un.forOwn=function(t,e){return t&&xr(t,co(e,3))},Un.forOwnRight=function(t,e){return t&&kr(t,co(e,3))},Un.get=Ds,Un.gt=Ua,Un.gte=Va,Un.has=function(t,e){return null!=t&&yo(t,e,Or)},Un.hasIn=As,Un.head=Wo,Un.identity=iu,Un.includes=function(t,e,n,r){t=Wa(t)?t:Rs(t),n=n&&!r?ms(n):0;var i=t.length;return n<0&&(n=_n(i+n,0)),us(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Ge(t,e,n)>-1},Un.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ms(n);return i<0&&(i=_n(r+i,0)),Ge(t,e,i)},Un.inRange=function(t,e,n){return e=ps(e),n===o?(n=e,e=0):n=ps(n),function(t,e,n){return t>=wn(e,n)&&t<_n(e,n)}(t=gs(t),e,n)},Un.invoke=Ts,Un.isArguments=Ha,Un.isArray=Ga,Un.isArrayBuffer=qa,Un.isArrayLike=Wa,Un.isArrayLikeObject=Ya,Un.isBoolean=function(t){return!0===t||!1===t||ns(t)&&Dr(t)==x},Un.isBuffer=Za,Un.isDate=Ka,Un.isElement=function(t){return ns(t)&&1===t.nodeType&&!os(t)},Un.isEmpty=function(t){if(null==t)return!0;if(Wa(t)&&(Ga(t)||\"string\"==typeof t||\"function\"==typeof t.splice||Za(t)||cs(t)||Ha(t)))return!t.length;var e=go(t);if(e==D||e==I)return!t.size;if(Eo(t))return!Br(t).length;for(var n in t)if(Bt.call(t,n))return!1;return!0},Un.isEqual=function(t,e){return Fr(t,e)},Un.isEqualWith=function(t,e,n){var r=(n=\"function\"==typeof n?n:o)?n(t,e):o;return r===o?Fr(t,e,o,n):!!r},Un.isError=Xa,Un.isFinite=function(t){return\"number\"==typeof t&&xe(t)},Un.isFunction=Ja,Un.isInteger=Qa,Un.isLength=ts,Un.isMap=rs,Un.isMatch=function(t,e){return t===e||jr(t,e,fo(e))},Un.isMatchWith=function(t,e,n){return n=\"function\"==typeof n?n:o,jr(t,e,fo(e),n)},Un.isNaN=function(t){return is(t)&&t!=+t},Un.isNative=function(t){if(Co(t))throw new Et(\"Unsupported core-js use. Try https://npms.io/search?q=ponyfill.\");return Nr(t)},Un.isNil=function(t){return null==t},Un.isNull=function(t){return null===t},Un.isNumber=is,Un.isObject=es,Un.isObjectLike=ns,Un.isPlainObject=os,Un.isRegExp=as,Un.isSafeInteger=function(t){return Qa(t)&&t>=-9007199254740991&&t<=v},Un.isSet=ss,Un.isString=us,Un.isSymbol=ls,Un.isTypedArray=cs,Un.isUndefined=function(t){return t===o},Un.isWeakMap=function(t){return ns(t)&&go(t)==j},Un.isWeakSet=function(t){return ns(t)&&\"[object WeakSet]\"==Dr(t)},Un.join=function(t,e){return null==t?\"\":Ue.call(t,e)},Un.kebabCase=Gs,Un.last=Xo,Un.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ms(n))<0?_n(r+i,0):wn(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):He(t,We,i,!0)},Un.lowerCase=qs,Un.lowerFirst=Ws,Un.lt=hs,Un.lte=fs,Un.max=function(t){return t&&t.length?gr(t,iu,Ar):o},Un.maxBy=function(t,e){return t&&t.length?gr(t,co(e,2),Ar):o},Un.mean=function(t){return Ye(t,iu)},Un.meanBy=function(t,e){return Ye(t,co(e,2))},Un.min=function(t){return t&&t.length?gr(t,iu,zr):o},Un.minBy=function(t,e){return t&&t.length?gr(t,co(e,2),zr):o},Un.stubArray=vu,Un.stubFalse=gu,Un.stubObject=function(){return{}},Un.stubString=function(){return\"\"},Un.stubTrue=function(){return!0},Un.multiply=ku,Un.nth=function(t,e){return t&&t.length?Gr(t,ms(e)):o},Un.noConflict=function(){return ge._===this&&(ge._=Vt),this},Un.noop=lu,Un.now=Da,Un.pad=function(t,e,n){t=bs(t);var r=(e=ms(e))?vn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return qi(ye(i),n)+t+qi(ve(i),n)},Un.padEnd=function(t,e,n){t=bs(t);var r=(e=ms(e))?vn(t):0;return e&&r<e?t+qi(e-r,n):t},Un.padStart=function(t,e,n){t=bs(t);var r=(e=ms(e))?vn(t):0;return e&&r<e?qi(e-r,n)+t:t},Un.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),kn(bs(t).replace(lt,\"\"),e||0)},Un.random=function(t,e,n){if(n&&\"boolean\"!=typeof n&&xo(t,e,n)&&(e=n=o),n===o&&(\"boolean\"==typeof e?(n=e,e=o):\"boolean\"==typeof t&&(n=t,t=o)),t===o&&e===o?(t=0,e=1):(t=ps(t),e===o?(e=t,t=0):e=ps(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Sn();return wn(t+i*(e-t+de(\"1e-\"+((i+\"\").length-1))),e)}return Kr(t,e)},Un.reduce=function(t,e,n){var r=Ga(t)?$e:Xe,i=arguments.length<3;return r(t,co(e,4),n,i,pr)},Un.reduceRight=function(t,e,n){var r=Ga(t)?ze:Xe,i=arguments.length<3;return r(t,co(e,4),n,i,mr)},Un.repeat=function(t,e,n){return e=(n?xo(t,e,n):e===o)?1:ms(e),Xr(bs(t),e)},Un.replace=function(){var t=arguments,e=bs(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Un.result=function(t,e,n){var r=-1,i=(e=wi(e,t)).length;for(i||(i=1,t=o);++r<i;){var a=null==t?o:t[Bo(e[r])];a===o&&(r=i,a=n),t=Ja(a)?a.call(t):a}return t},Un.round=Su,Un.runInContext=t,Un.sample=function(t){return(Ga(t)?Qn:Qr)(t)},Un.size=function(t){if(null==t)return 0;if(Wa(t))return us(t)?vn(t):t.length;var e=go(t);return e==D||e==I?t.size:Br(t).length},Un.snakeCase=Ys,Un.some=function(t,e,n){var r=Ga(t)?Re:ai;return n&&xo(t,e,n)&&(e=o),r(t,co(e,3))},Un.sortedIndex=function(t,e){return si(t,e)},Un.sortedIndexBy=function(t,e,n){return ui(t,e,co(n,2))},Un.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=si(t,e);if(r<n&&Ra(t[r],e))return r}return-1},Un.sortedLastIndex=function(t,e){return si(t,e,!0)},Un.sortedLastIndexBy=function(t,e,n){return ui(t,e,co(n,2),!0)},Un.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=si(t,e,!0)-1;if(Ra(t[n],e))return n}return-1},Un.startCase=Zs,Un.startsWith=function(t,e,n){return t=bs(t),n=null==n?0:lr(ms(n),0,t.length),e=hi(e),t.slice(n,n+e.length)==e},Un.subtract=Cu,Un.sum=function(t){return t&&t.length?Je(t,iu):0},Un.sumBy=function(t,e){return t&&t.length?Je(t,co(e,2)):0},Un.template=function(t,e,n){var r=Un.templateSettings;n&&xo(t,e,n)&&(e=o),t=bs(t),e=xs({},e,r,to);var i,a,s=xs({},e.imports,r.imports,to),u=Is(s),l=en(s,u),c=0,h=e.interpolate||St,f=\"__p += '\",d=Mt((e.escape||St).source+\"|\"+h.source+\"|\"+(h===nt?vt:St).source+\"|\"+(e.evaluate||St).source+\"|$\",\"g\"),p=\"//# sourceURL=\"+(\"sourceURL\"in e?e.sourceURL:\"lodash.templateSources[\"+ ++le+\"]\")+\"\\n\";t.replace(d,(function(e,n,r,o,s,u){return r||(r=o),f+=t.slice(c,u).replace(Ct,un),n&&(i=!0,f+=\"' +\\n__e(\"+n+\") +\\n'\"),s&&(a=!0,f+=\"';\\n\"+s+\";\\n__p += '\"),r&&(f+=\"' +\\n((__t = (\"+r+\")) == null ? '' : __t) +\\n'\"),c=u+e.length,e})),f+=\"';\\n\";var m=e.variable;m||(f=\"with (obj) {\\n\"+f+\"\\n}\\n\"),f=(a?f.replace(W,\"\"):f).replace(Y,\"$1\").replace(Z,\"$1;\"),f=\"function(\"+(m||\"obj\")+\") {\\n\"+(m?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(i?\", __e = _.escape\":\"\")+(a?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+f+\"return __p\\n}\";var v=Qs((function(){return Dt(u,p+\"return \"+f).apply(o,l)}));if(v.source=f,Xa(v))throw v;return v},Un.times=function(t,e){if((t=ms(t))<1||t>v)return[];var n=y,r=wn(t,y);e=co(e),t-=y;for(var i=Qe(r,e);++n<t;)e(n);return i},Un.toFinite=ps,Un.toInteger=ms,Un.toLength=vs,Un.toLower=function(t){return bs(t).toLowerCase()},Un.toNumber=gs,Un.toSafeInteger=function(t){return t?lr(ms(t),-9007199254740991,v):0===t?t:0},Un.toString=bs,Un.toUpper=function(t){return bs(t).toUpperCase()},Un.trim=function(t,e,n){if((t=bs(t))&&(n||e===o))return t.replace(ut,\"\");if(!t||!(e=hi(e)))return t;var r=gn(t),i=gn(e);return ki(r,rn(r,i),on(r,i)+1).join(\"\")},Un.trimEnd=function(t,e,n){if((t=bs(t))&&(n||e===o))return t.replace(ct,\"\");if(!t||!(e=hi(e)))return t;var r=gn(t);return ki(r,0,on(r,gn(e))+1).join(\"\")},Un.trimStart=function(t,e,n){if((t=bs(t))&&(n||e===o))return t.replace(lt,\"\");if(!t||!(e=hi(e)))return t;var r=gn(t);return ki(r,rn(r,gn(e))).join(\"\")},Un.truncate=function(t,e){var n=30,r=\"...\";if(es(e)){var i=\"separator\"in e?e.separator:i;n=\"length\"in e?ms(e.length):n,r=\"omission\"in e?hi(e.omission):r}var a=(t=bs(t)).length;if(ln(t)){var s=gn(t);a=s.length}if(n>=a)return t;var u=n-vn(r);if(u<1)return r;var l=s?ki(s,0,u).join(\"\"):t.slice(0,u);if(i===o)return l+r;if(s&&(u+=l.length-u),as(i)){if(t.slice(u).search(i)){var c,h=l;for(i.global||(i=Mt(i.source,bs(gt.exec(i))+\"g\")),i.lastIndex=0;c=i.exec(h);)var f=c.index;l=l.slice(0,f===o?u:f)}}else if(t.indexOf(hi(i),u)!=u){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r},Un.unescape=function(t){return(t=bs(t))&&J.test(t)?t.replace(K,yn):t},Un.uniqueId=function(t){var e=++$t;return bs(t)+e},Un.upperCase=Ks,Un.upperFirst=Xs,Un.each=ba,Un.eachRight=_a,Un.first=Wo,uu(Un,(xu={},xr(Un,(function(t,e){Bt.call(Un.prototype,e)||(xu[e]=t)})),xu),{chain:!1}),Un.VERSION=\"4.17.10\",Te([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],(function(t){Un[t].placeholder=Un})),Te([\"drop\",\"take\"],(function(t,e){qn.prototype[t]=function(n){n=n===o?1:_n(ms(n),0);var r=this.__filtered__&&!e?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,y),type:t+(r.__dir__<0?\"Right\":\"\")}),r},qn.prototype[t+\"Right\"]=function(e){return this.reverse()[t](e).reverse()}})),Te([\"filter\",\"map\",\"takeWhile\"],(function(t,e){var n=e+1,r=1==n||3==n;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Te([\"head\",\"last\"],(function(t,e){var n=\"take\"+(e?\"Right\":\"\");qn.prototype[t]=function(){return this[n](1).value()[0]}})),Te([\"initial\",\"tail\"],(function(t,e){var n=\"drop\"+(e?\"\":\"Right\");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(iu)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=Jr((function(t,e){return\"function\"==typeof t?new qn(this):this.map((function(n){return Ir(n,t,e)}))})),qn.prototype.reject=function(t){return this.filter(Na(co(t)))},qn.prototype.slice=function(t,e){t=ms(t);var n=this;return n.__filtered__&&(t>0||e<0)?new qn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(n=(e=ms(e))<0?n.dropRight(-e):n.take(e-t)),n)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(y)},xr(qn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Un[r?\"take\"+(\"last\"==e?\"Right\":\"\"):e],a=r||/^find/.test(e);i&&(Un.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,u=e instanceof qn,l=s[0],c=u||Ga(e),h=function(t){var e=i.apply(Un,Be([t],s));return r&&f?e[0]:e};c&&n&&\"function\"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,d=!!this.__actions__.length,p=a&&!f,m=u&&!d;if(!a&&c){e=m?e:new qn(this);var v=t.apply(e,s);return v.__actions__.push({func:pa,args:[h],thisArg:o}),new Gn(v,f)}return p&&m?t.apply(this,s):(v=this.thru(h),p?r?v.value()[0]:v.value():v)})})),Te([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],(function(t){var e=Pt[t],n=/^(?:push|sort|unshift)$/.test(t)?\"tap\":\"thru\",r=/^(?:pop|shift)$/.test(t);Un.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ga(i)?i:[],t)}return this[n]((function(n){return e.apply(Ga(n)?n:[],t)}))}})),xr(qn.prototype,(function(t,e){var n=Un[e];if(n){var r=n.name+\"\";(Pn[r]||(Pn[r]=[])).push({name:e,func:n})}})),Pn[Ui(o,2).name]=[{name:\"wrapper\",func:o}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=Ti(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ti(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ti(this.__views__),t},qn.prototype.reverse=function(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},qn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ga(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case\"drop\":t+=a;break;case\"dropRight\":e-=a;break;case\"take\":e=wn(e,t+a);break;case\"takeRight\":t=_n(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,h=c.length,f=0,d=wn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return vi(t,this.__actions__);var p=[];t:for(;u--&&f<d;){for(var m=-1,v=t[l+=e];++m<h;){var g=c[m],y=g.iteratee,b=g.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue t;break t}}p[f++]=v}return p},Un.prototype.at=ma,Un.prototype.chain=function(){return da(this)},Un.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===o&&(this.__values__=ds(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},Un.prototype.plant=function(t){for(var e,n=this;n instanceof Hn;){var r=zo(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},Un.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof qn){var e=t;return this.__actions__.length&&(e=new qn(this)),(e=e.reverse()).__actions__.push({func:pa,args:[ea],thisArg:o}),new Gn(e,this.__chain__)}return this.thru(ea)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return vi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,te&&(Un.prototype[te]=function(){return this}),Un}();\"object\"===a(n(23))&&n(23)?(ge._=bn,(i=function(){return bn}.call(e,n,e,r))===o||(r.exports=i)):be?((be.exports=bn)._=bn,ye._=bn):ge._=bn}).call(void 0)}).call(this,n(10),n(13)(t))},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=97)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},97:function(t,e,n){\"use strict\";n.r(e);var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"div\",{staticClass:\"el-button-group\"},[t._t(\"default\")],2)};r._withStripped=!0;var i={name:\"ElButtonGroup\"},o=n(0),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file=\"packages/button/src/button-group.vue\";var s=a.exports;s.install=function(t){t.component(s.name,s)};e.default=s}})},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=93)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},4:function(t,e){t.exports=n(235)},93:function(t,e,n){\"use strict\";n.r(e);var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"div\",{staticClass:\"el-checkbox-group\",attrs:{role:\"group\",\"aria-label\":\"checkbox-group\"}},[t._t(\"default\")],2)};r._withStripped=!0;var i=n(4),o={name:\"ElCheckboxGroup\",componentName:\"ElCheckboxGroup\",mixins:[n.n(i).a],inject:{elFormItem:{default:\"\"}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(t){this.dispatch(\"ElFormItem\",\"el.form.change\",[t])}}},a=n(0),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file=\"packages/checkbox/src/checkbox-group.vue\";var u=s.exports;u.install=function(t){t.component(u.name,u)};e.default=u}})},function(t,e,n){\"use strict\";e.__esModule=!0,e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||!e)throw new Error(\"instance & callback is required\");var i=!1,o=function(){i||(i=!0,e&&e.apply(null,arguments))};r?t.$once(\"after-leave\",o):t.$on(\"after-leave\",o),setTimeout((function(){o()}),n+100)}},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=104)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},104:function(t,e,n){\"use strict\";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"el-progress\",class:[\"el-progress--\"+t.type,t.status?\"is-\"+t.status:\"\",{\"el-progress--without-text\":!t.showText,\"el-progress--text-inside\":t.textInside}],attrs:{role:\"progressbar\",\"aria-valuenow\":t.percentage,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[\"line\"===t.type?n(\"div\",{staticClass:\"el-progress-bar\"},[n(\"div\",{staticClass:\"el-progress-bar__outer\",style:{height:t.strokeWidth+\"px\",backgroundColor:t.defineBackColor}},[n(\"div\",{staticClass:\"el-progress-bar__inner\",style:t.barStyle},[t.showText&&t.textInside?n(\"div\",{staticClass:\"el-progress-bar__innerText\",style:{color:t.textColor}},[t._v(t._s(t.content))]):t._e()])])]):n(\"div\",{staticClass:\"el-progress-circle\",style:{height:t.width+\"px\",width:t.width+\"px\"}},[n(\"svg\",{attrs:{viewBox:\"0 0 100 100\"}},[n(\"path\",{staticClass:\"el-progress-circle__track\",style:t.trailPathStyle,attrs:{d:t.trackPath,stroke:t.defineBackColor,\"stroke-width\":t.relativeStrokeWidth,fill:\"none\"}}),n(\"path\",{staticClass:\"el-progress-circle__path\",style:t.circlePathStyle,attrs:{d:t.trackPath,stroke:t.stroke,fill:\"none\",\"stroke-linecap\":t.strokeLinecap,\"stroke-width\":t.percentage?t.relativeStrokeWidth:0}})])]),t.showText&&!t.textInside?n(\"div\",{staticClass:\"el-progress__text\",style:{fontSize:t.progressTextSize+\"px\",color:t.textColor}},[t.status?n(\"i\",{class:t.iconClass}):[t._v(t._s(t.content))]],2):t._e()])};r._withStripped=!0;var i={name:\"ElProgress\",props:{type:{type:String,default:\"line\",validator:function(t){return[\"line\",\"circle\",\"dashboard\"].indexOf(t)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(t){return t>=0&&t<=100}},status:{type:String,validator:function(t){return[\"success\",\"exception\",\"warning\"].indexOf(t)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:\"round\"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:\"\"},defineBackColor:{type:[String,Array,Function],default:\"#ebeef5\"},textColor:{type:[String,Array,Function],default:\"#606266\"},format:Function},computed:{barStyle:function(){var t={};return t.width=this.percentage+\"%\",t.backgroundColor=this.getCurrentColor(this.percentage),t},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return\"circle\"===this.type||\"dashboard\"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var t=this.radius,e=\"dashboard\"===this.type;return\"\\n        M 50 50\\n        m 0 \"+(e?\"\":\"-\")+t+\"\\n        a \"+t+\" \"+t+\" 0 1 1 0 \"+(e?\"-\":\"\")+2*t+\"\\n        a \"+t+\" \"+t+\" 0 1 1 0 \"+(e?\"\":\"-\")+2*t+\"\\n        \"},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return\"dashboard\"===this.type?.75:1},strokeDashoffset:function(){return-1*this.perimeter*(1-this.rate)/2+\"px\"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+\"px, \"+this.perimeter+\"px\",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+\"px, \"+this.perimeter+\"px\",strokeDashoffset:this.strokeDashoffset,transition:\"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease\"}},stroke:function(){var t=void 0;if(this.color)t=this.getCurrentColor(this.percentage);else switch(this.status){case\"success\":t=\"#13ce66\";break;case\"exception\":t=\"#ff4949\";break;case\"warning\":t=\"#e6a23c\";break;default:t=\"#20a0ff\"}return t},iconClass:function(){return\"warning\"===this.status?\"el-icon-warning\":\"line\"===this.type?\"success\"===this.status?\"el-icon-circle-check\":\"el-icon-circle-close\":\"success\"===this.status?\"el-icon-check\":\"el-icon-close\"},progressTextSize:function(){return\"line\"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return\"function\"==typeof this.format?this.format(this.percentage)||\"\":this.percentage+\"%\"}},methods:{getCurrentColor:function(t){return\"function\"==typeof this.color?this.color(t):\"string\"==typeof this.color?this.color:this.getLevelColor(t)},getLevelColor:function(t){for(var e=this.getColorArray().sort((function(t,e){return t.percentage-e.percentage})),n=0;n<e.length;n++)if(e[n].percentage>t)return e[n].color;return e[e.length-1].color},getColorArray:function(){var t=this.color,e=100/t.length;return t.map((function(t,n){return\"string\"==typeof t?{color:t,percentage:(n+1)*e}:t}))}}},o=n(0),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file=\"packages/progress/src/progress.vue\";var s=a.exports;s.install=function(t){t.component(s.name,s)};e.default=s}})},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=62)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},10:function(t,e){t.exports=n(271)},12:function(t,e){t.exports=n(298)},15:function(t,e){t.exports=n(274)},16:function(t,e){t.exports=n(272)},19:function(t,e){t.exports=n(258)},21:function(t,e){t.exports=n(257)},22:function(t,e){t.exports=n(275)},3:function(t,e){t.exports=n(231)},31:function(t,e){t.exports=n(276)},33:function(t,e,n){\"use strict\";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"li\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-select-dropdown__item\",class:{selected:t.itemSelected,\"is-disabled\":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t(\"default\",[n(\"span\",[t._v(t._s(t.currentLabel))])])],2)};i._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),u=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)},l={mixins:[a.a],name:\"ElOption\",componentName:\"ElOption\",inject:[\"select\"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return\"[object object]\"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?\"\":this.value)},currentValue:function(){return this.value||this.label||\"\"},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch(\"ElSelect\",\"setSelected\")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&\"object\"===(void 0===t?\"undefined\":u(t))&&\"object\"===(void 0===e?\"undefined\":u(e))&&t[i]===e[i])return;this.dispatch(\"ElSelect\",\"setSelected\")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(s.getValueByPath)(t,n)===Object(s.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some((function(t){return Object(s.getValueByPath)(t,n)===Object(s.getValueByPath)(e,n)}))}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch(\"ElSelect\",\"handleOptionClick\",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(s.escapeRegexpString)(t),\"i\").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on(\"queryChange\",this.queryChange),this.$on(\"handleGroupDisabled\",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple?e:[e],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=l,h=n(0),f=Object(h.a)(c,i,[],!1,null,null,null);f.options.__file=\"packages/select/src/option.vue\";e.a=f.exports},38:function(t,e){t.exports=n(302)},4:function(t,e){t.exports=n(235)},5:function(t,e){t.exports=n(255)},6:function(t,e){t.exports=n(269)},62:function(t,e,n){\"use strict\";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{directives:[{name:\"clickoutside\",rawName:\"v-clickoutside\",value:t.handleClose,expression:\"handleClose\"}],staticClass:\"el-select\",class:[t.selectSize?\"el-select--\"+t.selectSize:\"\"],on:{click:function(e){return e.stopPropagation(),t.toggleMenu(e)}}},[t.multiple?n(\"div\",{ref:\"tags\",staticClass:\"el-select__tags\",style:{\"max-width\":t.inputWidth-32+\"px\",width:\"100%\"}},[t.collapseTags&&t.selected.length?n(\"span\",[n(\"el-tag\",{attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:t.selected[0].hitState,type:\"info\",\"disable-transitions\":\"\"},on:{close:function(e){t.deleteTag(e,t.selected[0])}}},[n(\"span\",{staticClass:\"el-select__tags-text\"},[t._v(t._s(t.selected[0].currentLabel))])]),t.selected.length>1?n(\"el-tag\",{attrs:{closable:!1,size:t.collapseTagSize,type:\"info\",\"disable-transitions\":\"\"}},[n(\"span\",{staticClass:\"el-select__tags-text\"},[t._v(\"+ \"+t._s(t.selected.length-1))])]):t._e()],1):t._e(),t.collapseTags?t._e():n(\"transition-group\",{on:{\"after-leave\":t.resetInputHeight}},t._l(t.selected,(function(e){return n(\"el-tag\",{key:t.getValueKey(e),attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:e.hitState,type:\"info\",\"disable-transitions\":\"\"},on:{close:function(n){t.deleteTag(n,e)}}},[n(\"span\",{staticClass:\"el-select__tags-text\"},[t._v(t._s(e.currentLabel))])])})),1),t.filterable?n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.query,expression:\"query\"}],ref:\"input\",staticClass:\"el-select__input\",class:[t.selectSize?\"is-\"+t.selectSize:\"\"],style:{\"flex-grow\":\"1\",width:t.inputLength/(t.inputWidth-32)+\"%\",\"max-width\":t.inputWidth-42+\"px\"},attrs:{type:\"text\",disabled:t.selectDisabled,autocomplete:t.autoComplete||t.autocomplete},domProps:{value:t.query},on:{focus:t.handleFocus,blur:function(e){t.softFocus=!1},keyup:t.managePlaceholder,keydown:[t.resetInputState,function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"down\",40,e.key,[\"Down\",\"ArrowDown\"]))return null;e.preventDefault(),t.handleNavigate(\"next\")},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"up\",38,e.key,[\"Up\",\"ArrowUp\"]))return null;e.preventDefault(),t.handleNavigate(\"prev\")},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"esc\",27,e.key,[\"Esc\",\"Escape\"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"delete\",[8,46],e.key,[\"Backspace\",\"Delete\",\"Del\"])?null:t.deletePrevTag(e)},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"tab\",9,e.key,\"Tab\"))return null;t.visible=!1}],compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:[function(e){e.target.composing||(t.query=e.target.value)},t.debouncedQueryChange]}}):t._e()],1):t._e(),n(\"el-input\",{ref:\"reference\",class:{\"is-focus\":t.visible},attrs:{type:\"text\",placeholder:t.currentPlaceholder,name:t.name,id:t.id,autocomplete:t.autoComplete||t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,\"validate-event\":!1,tabindex:t.multiple&&t.filterable?\"-1\":null},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.debouncedOnInputChange,compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition},nativeOn:{keydown:[function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"down\",40,e.key,[\"Down\",\"ArrowDown\"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate(\"next\")},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"up\",38,e.key,[\"Up\",\"ArrowUp\"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate(\"prev\")},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"esc\",27,e.key,[\"Esc\",\"Escape\"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){if(!(\"button\"in e)&&t._k(e.keyCode,\"tab\",9,e.key,\"Tab\"))return null;t.visible=!1}],mouseenter:function(e){t.inputHovering=!0},mouseleave:function(e){t.inputHovering=!1}},model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:\"selectedLabel\"}},[t.$slots.prefix?n(\"template\",{slot:\"prefix\"},[t._t(\"prefix\")],2):t._e(),n(\"template\",{slot:\"suffix\"},[n(\"i\",{directives:[{name:\"show\",rawName:\"v-show\",value:!t.showClose,expression:\"!showClose\"}],class:[\"el-select__caret\",\"el-input__icon\",\"el-icon-\"+t.iconClass]}),t.showClose?n(\"i\",{staticClass:\"el-select__caret el-input__icon el-icon-circle-close\",on:{click:t.handleClearClick}}):t._e()])],2),n(\"transition\",{attrs:{name:\"el-zoom-in-top\"},on:{\"before-enter\":t.handleMenuEnter,\"after-leave\":t.doDestroy}},[n(\"el-select-menu\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible&&!1!==t.emptyText,expression:\"visible && emptyText !== false\"}],ref:\"popper\",attrs:{\"append-to-body\":t.popperAppendToBody}},[n(\"el-scrollbar\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.options.length>0&&!t.loading,expression:\"options.length > 0 && !loading\"}],ref:\"scrollbar\",class:{\"is-empty\":!t.allowCreate&&t.query&&0===t.filteredOptionsCount},attrs:{tag:\"ul\",\"wrap-class\":\"el-select-dropdown__wrap\",\"view-class\":\"el-select-dropdown__list\"}},[t.showNewOption?n(\"el-option\",{attrs:{value:t.query,created:\"\"}}):t._e(),t._t(\"default\")],2),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&0===t.options.length)?[t.$slots.empty?t._t(\"empty\"):n(\"p\",{staticClass:\"el-select-dropdown__empty\"},[t._v(\"\\n          \"+t._s(t.emptyText)+\"\\n        \")])]:t._e()],2)],1)],1)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(22),s=n.n(a),u=n(6),l=n.n(u),c=n(10),h=n.n(c),f=function(){var t=this,e=t.$createElement;return(t._self._c||e)(\"div\",{staticClass:\"el-select-dropdown el-popper\",class:[{\"is-multiple\":t.$parent.multiple},t.popperClass],style:{minWidth:t.minWidth}},[t._t(\"default\")],2)};f._withStripped=!0;var d=n(5),p={name:\"ElSelectDropdown\",componentName:\"ElSelectDropdown\",mixins:[n.n(d).a],props:{placement:{default:\"bottom-start\"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:\"\"}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{\"$parent.inputWidth\":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+\"px\"}},mounted:function(){var t=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on(\"updatePopper\",(function(){t.$parent.visible&&t.updatePopper()})),this.$on(\"destroyPopper\",this.destroyPopper)}},m=n(0),v=Object(m.a)(p,f,[],!1,null,null,null);v.options.__file=\"packages/select/src/select-dropdown.vue\";var g=v.exports,y=n(33),b=n(38),_=n.n(b),w=n(15),x=n.n(w),k=n(19),S=n.n(k),C=n(12),E=n.n(C),D=n(16),A=n(31),O=n.n(A),M=n(3),T=n(21),I={mixins:[o.a,l.a,s()(\"reference\"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(t){return t.visible})).every((function(t){return t.disabled}))}},watch:{hoverIndex:function(t){var e=this;\"number\"==typeof t&&t>-1&&(this.hoverOption=this.options[t]||{}),this.options.forEach((function(t){t.hover=e.hoverOption===t}))}},methods:{navigateOptions:function(t){var e=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){\"next\"===t?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):\"prev\"===t&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(t),this.$nextTick((function(){return e.scrollToOption(e.hoverOption)}))}}else this.visible=!0}}}],name:\"ElSelect\",componentName:\"ElSelect\",inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(M.isIE)()&&!Object(M.isEdge)()&&!this.visible},showClose:function(){var t=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&\"\"!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&t},iconClass:function(){return this.remote&&this.filterable?\"\":this.visible?\"arrow-up is-reverse\":\"arrow-up\"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t(\"el.select.loading\"):(!this.remote||\"\"!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t(\"el.select.noMatch\"):0===this.options.length?this.noDataText||this.t(\"el.select.noData\"):null)},showNewOption:function(){var t=this,e=this.options.filter((function(t){return!t.created})).some((function(e){return e.currentLabel===t.query}));return this.filterable&&this.allowCreate&&\"\"!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return[\"small\",\"mini\"].indexOf(this.selectSize)>-1?\"mini\":\"small\"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t(\"el.select.placeholder\")}},components:{ElInput:h.a,ElSelectMenu:g,ElOption:y.a,ElTag:_.a,ElScrollbar:x.a},directives:{Clickoutside:E.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:\"off\"},autoComplete:{type:String,validator:function(t){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:\"value\"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:\"\",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:\"\",hoverIndex:-1,query:\"\",previousQuery:null,inputHovering:!1,currentPlaceholder:\"\",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var t=this;this.$nextTick((function(){t.resetInputHeight()}))},propPlaceholder:function(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value:function(t,e){this.multiple&&(this.resetInputHeight(),t&&t.length>0||this.$refs.input&&\"\"!==this.query?this.currentPlaceholder=\"\":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query=\"\",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(M.valueEquals)(t,e)||this.dispatch(\"ElFormItem\",\"el.form.change\",t)},visible:function(t){var e=this;t?(this.broadcast(\"ElSelectDropdown\",\"updatePopper\"),this.filterable&&(this.query=this.remote?\"\":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast(\"ElOption\",\"queryChange\",\"\"),this.broadcast(\"ElOptionGroup\",\"queryChange\")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel=\"\")))):(this.broadcast(\"ElSelectDropdown\",\"destroyPopper\"),this.$refs.input&&this.$refs.input.blur(),this.query=\"\",this.previousQuery=null,this.selectedLabel=\"\",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){e.$refs.input&&\"\"===e.$refs.input.value&&0===e.selected.length&&(e.currentPlaceholder=e.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit(\"visible-change\",t)},options:function(){var t=this;if(!this.$isServer){this.$nextTick((function(){t.broadcast(\"ElSelectDropdown\",\"updatePopper\")})),this.multiple&&this.resetInputHeight();var e=this.$el.querySelectorAll(\"input\");-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(t){this.isOnComposition||this.navigateOptions(t)},handleComposition:function(t){var e=this,n=t.target.value;if(\"compositionend\"===t.type)this.isOnComposition=!1,this.$nextTick((function(t){return e.handleQueryChange(n)}));else{var r=n[n.length-1]||\"\";this.isOnComposition=!Object(T.isKorean)(r)}},handleQueryChange:function(t){var e=this;this.previousQuery===t||this.isOnComposition||(null!==this.previousQuery||\"function\"!=typeof this.filterMethod&&\"function\"!=typeof this.remoteMethod?(this.previousQuery=t,this.$nextTick((function(){e.visible&&e.broadcast(\"ElSelectDropdown\",\"updatePopper\")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var t=15*e.$refs.input.value.length+20;e.inputLength=e.collapseTags?Math.min(50,t):t,e.managePlaceholder(),e.resetInputHeight()})),this.remote&&\"function\"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):\"function\"==typeof this.filterMethod?(this.filterMethod(t),this.broadcast(\"ElOptionGroup\",\"queryChange\")):(this.filteredOptionsCount=this.optionsCount,this.broadcast(\"ElOption\",\"queryChange\",t),this.broadcast(\"ElOptionGroup\",\"queryChange\")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=t)},scrollToOption:function(t){var e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){var n=this.$refs.popper.$el.querySelector(\".el-select-dropdown__wrap\");O()(n,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var t=this;this.$nextTick((function(){return t.scrollToOption(t.selected)}))},emitChange:function(t){Object(M.valueEquals)(this.value,t)||this.$emit(\"change\",t)},getOption:function(t){for(var e=void 0,n=\"[object object]\"===Object.prototype.toString.call(t).toLowerCase(),r=\"[object null]\"===Object.prototype.toString.call(t).toLowerCase(),i=\"[object undefined]\"===Object.prototype.toString.call(t).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(M.getValueByPath)(a.value,this.valueKey)===Object(M.getValueByPath)(t,this.valueKey):a.value===t){e=a;break}}if(e)return e;var s={value:t,currentLabel:n||r||i?\"\":String(t)};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(e){n.push(t.getOption(e))})),this.selected=n,this.$nextTick((function(){t.resetInputHeight()}))},handleFocus:function(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit(\"focus\",t))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(t){var e=this;setTimeout((function(){e.isSilentBlur?e.isSilentBlur=!1:e.$emit(\"blur\",t)}),50),this.softFocus=!1},handleClearClick:function(t){this.deleteSelected(t)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(t){if(Array.isArray(this.selected)){var e=this.selected[this.selected.length-1];if(e)return!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState)}},deletePrevTag:function(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){var e=this.value.slice();e.pop(),this.$emit(\"input\",e),this.emitChange(e)}},managePlaceholder:function(){\"\"!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?\"\":this.cachedPlaceHolder)},resetInputState:function(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var t=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(t.$refs.reference){var e=t.$refs.reference.$el.childNodes,n=[].filter.call(e,(function(t){return\"INPUT\"===t.tagName}))[0],r=t.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=t.initialInputHeight||40;n.style.height=0===t.selected.length?o+\"px\":Math.max(r?i+(i>o?6:0):0,o)+\"px\",t.visible&&!1!==t.emptyText&&t.broadcast(\"ElSelectDropdown\",\"updatePopper\")}}))},resetHoverIndex:function(){var t=this;setTimeout((function(){t.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((function(e){return t.options.indexOf(e)}))):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)}),300)},handleOptionSelect:function(t,e){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,t.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit(\"input\",r),this.emitChange(r),t.created&&(this.query=\"\",this.handleQueryChange(\"\"),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit(\"input\",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(t)}))},setSoftFocus:function(){this.softFocus=!0;var t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(\"[object object]\"===Object.prototype.toString.call(e).toLowerCase()){var n=this.valueKey,r=-1;return t.some((function(t,i){return Object(M.getValueByPath)(t,n)===Object(M.getValueByPath)(e,n)&&(r=i,!0)})),r}return t.indexOf(e)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(t){t.stopPropagation();var e=this.multiple?[]:\"\";this.$emit(\"input\",e),this.emitChange(e),this.visible=!1,this.$emit(\"clear\")},deleteTag:function(t,e){var n=this.selected.indexOf(e);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit(\"input\",r),this.emitChange(r),this.$emit(\"remove-tag\",e.value)}t.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var t=!1,e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(t){return\"[object object]\"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:Object(M.getValueByPath)(t.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit(\"input\",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit(\"input\",\"\"),this.debouncedOnInputChange=S()(this.debounce,(function(){t.onInputChange()})),this.debouncedQueryChange=S()(this.debounce,(function(e){t.handleQueryChange(e.target.value)})),this.$on(\"handleOptionClick\",this.handleOptionSelect),this.$on(\"setSelected\",this.setSelected)},mounted:function(){var t=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=\"\"),Object(D.addResizeListener)(this.$el,this.handleResize);var e=this.$refs.reference;if(e&&e.$el){var n=e.$el.querySelector(\"input\");this.initialInputHeight=n.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){e&&e.$el&&(t.inputWidth=e.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(D.removeResizeListener)(this.$el,this.handleResize)}},P=I,F=Object(m.a)(P,r,[],!1,null,null,null);F.options.__file=\"packages/select/src/select.vue\";var j=F.exports;j.install=function(t){t.component(j.name,j)};e.default=j}})},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=54)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},3:function(t,e){t.exports=n(231)},33:function(t,e,n){\"use strict\";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"li\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"el-select-dropdown__item\",class:{selected:t.itemSelected,\"is-disabled\":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t(\"default\",[n(\"span\",[t._v(t._s(t.currentLabel))])])],2)};i._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),u=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)},l={mixins:[a.a],name:\"ElOption\",componentName:\"ElOption\",inject:[\"select\"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return\"[object object]\"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?\"\":this.value)},currentValue:function(){return this.value||this.label||\"\"},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch(\"ElSelect\",\"setSelected\")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&\"object\"===(void 0===t?\"undefined\":u(t))&&\"object\"===(void 0===e?\"undefined\":u(e))&&t[i]===e[i])return;this.dispatch(\"ElSelect\",\"setSelected\")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(s.getValueByPath)(t,n)===Object(s.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some((function(t){return Object(s.getValueByPath)(t,n)===Object(s.getValueByPath)(e,n)}))}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch(\"ElSelect\",\"handleOptionClick\",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(s.escapeRegexpString)(t),\"i\").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on(\"queryChange\",this.queryChange),this.$on(\"handleGroupDisabled\",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple?e:[e],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=l,h=n(0),f=Object(h.a)(c,i,[],!1,null,null,null);f.options.__file=\"packages/select/src/option.vue\";e.a=f.exports},4:function(t,e){t.exports=n(235)},54:function(t,e,n){\"use strict\";n.r(e);var r=n(33);r.a.install=function(t){t.component(r.a.name,r.a)},e.default=r.a}})},function(t,e,n){t.exports=n(344)},function(t,e,n){\"use strict\";var r=n(345),i=n(346);function o(t){var e=0,n=0,r=0,i=0;return\"detail\"in t&&(n=t.detail),\"wheelDelta\"in t&&(n=-t.wheelDelta/120),\"wheelDeltaY\"in t&&(n=-t.wheelDeltaY/120),\"wheelDeltaX\"in t&&(e=-t.wheelDeltaX/120),\"axis\"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=10*e,i=10*n,\"deltaY\"in t&&(i=t.deltaY),\"deltaX\"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}o.getEventType=function(){return r.firefox()?\"DOMMouseScroll\":i(\"wheel\")?\"wheel\":\"mousewheel\"},t.exports=o},function(t,e){var n,r,i,o,a,s,u,l,c,h,f,d,p,m,v,g=!1;function y(){if(!g){g=!0;var t=navigator.userAgent,e=/(?:MSIE.(\\d+\\.\\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\\d+\\.\\d+))|(?:Opera(?:.+Version.|.)(\\d+\\.\\d+))|(?:AppleWebKit.(\\d+(?:\\.\\d+)?))|(?:Trident\\/\\d+\\.\\d+.*rv:(\\d+\\.\\d+))/.exec(t),y=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(d=/\\b(iPhone|iP[ao]d)/.exec(t),p=/\\b(iP[ao]d)/.exec(t),h=/Android/i.exec(t),m=/FBAN\\/\\w+;/i.exec(t),v=/Mobile/i.exec(t),f=!!/Win64/.exec(t),e){(n=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\\/(\\d+.\\d+))/.exec(t);s=b?parseFloat(b[1])+4:n,r=e[2]?parseFloat(e[2]):NaN,i=e[3]?parseFloat(e[3]):NaN,(o=e[4]?parseFloat(e[4]):NaN)?(e=/(?:Chrome\\/(\\d+\\.\\d+))/.exec(t),a=e&&e[1]?parseFloat(e[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(y){if(y[1]){var _=/(?:Mac OS X (\\d+(?:[._]\\d+)?))/.exec(t);u=!_||parseFloat(_[1].replace(\"_\",\".\"))}else u=!1;l=!!y[2],c=!!y[3]}else u=l=c=!1}}var b={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||s>n},ie64:function(){return b.ie()&&f},firefox:function(){return y()||r},opera:function(){return y()||i},webkit:function(){return y()||o},safari:function(){return b.webkit()},chrome:function(){return y()||a},windows:function(){return y()||l},osx:function(){return y()||u},linux:function(){return y()||c},iphone:function(){return y()||d},mobile:function(){return y()||d||p||h||v},nativeApp:function(){return y()||m},android:function(){return y()||h},ipad:function(){return y()||p}};t.exports=b},function(t,e,n){\"use strict\";var r,i=n(347);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature(\"\",\"\")),t.exports=function(t,e){if(!i.canUseDOM||e&&!(\"addEventListener\"in document))return!1;var n=\"on\"+t,o=n in document;if(!o){var a=document.createElement(\"div\");a.setAttribute(n,\"return;\"),o=\"function\"==typeof a[n]}return!o&&r&&\"wheel\"===t&&(o=document.implementation.hasFeature(\"Events.wheel\",\"3.0\")),o}},function(t,e,n){\"use strict\";var r=!(\"undefined\"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:\"undefined\"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}e.__esModule=!0;var i,o=\"function\"==typeof Symbol&&\"symbol\"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":r(t)},a=n(277),s=(i=a)&&i.__esModule?i:{default:i};var u,l=l||{};l.Dialog=function(t,e,n){var r=this;if(this.dialogNode=t,null===this.dialogNode||\"dialog\"!==this.dialogNode.getAttribute(\"role\"))throw new Error(\"Dialog() requires a DOM element with ARIA role of dialog.\");\"string\"==typeof e?this.focusAfterClosed=document.getElementById(e):\"object\"===(void 0===e?\"undefined\":o(e))?this.focusAfterClosed=e:this.focusAfterClosed=null,\"string\"==typeof n?this.focusFirst=document.getElementById(n):\"object\"===(void 0===n?\"undefined\":o(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():s.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,u=function(t){r.trapFocus(t)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener(\"focus\",u,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener(\"focus\",u,!0)},l.Dialog.prototype.closeDialog=function(){var t=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){t.focusAfterClosed.focus()}))},l.Dialog.prototype.trapFocus=function(t){s.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(t.target)?this.lastFocus=t.target:(s.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&s.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},e.default=l.Dialog},function(t,e,n){t.exports={default:n(350),__esModule:!0}},function(t,e,n){n(351),t.exports=n(250).Object.assign},function(t,e,n){var r=n(278);r(r.S+r.F,\"Object\",{assign:n(354)})},function(t,e,n){var r=n(353);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if(\"function\"!=typeof t)throw TypeError(t+\" is not a function!\");return t}},function(t,e,n){\"use strict\";var r=n(236),i=n(261),o=n(285),a=n(264),s=n(286),u=n(306),l=Object.assign;t.exports=!l||n(252)((function(){var t={},e={},n=Symbol(),r=\"abcdefghijklmnopqrst\";return t[n]=7,r.split(\"\").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join(\"\")!=r}))?function(t,e){for(var n=s(t),l=arguments.length,c=1,h=o.f,f=a.f;l>c;)for(var d,p=u(arguments[c++]),m=h?i(p).concat(h(p)):i(p),v=m.length,g=0;v>g;)d=m[g++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:l},function(t,e,n){var r=n(242),i=n(356),o=n(357);t.exports=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var r=n(281),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(281),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){t.exports={default:n(359),__esModule:!0}},function(t,e,n){n(360),n(366),t.exports=n(289).f(\"iterator\")},function(t,e,n){\"use strict\";var r=n(361)(!0);n(308)(String,\"String\",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(281),i=n(280);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?\"\":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(t,e,n){\"use strict\";var r=n(310),i=n(260),o=n(288),a={};n(240)(a,n(243)(\"iterator\"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+\" Iterator\")}},function(t,e,n){var r=n(241),i=n(259),o=n(261);t.exports=n(236)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(234).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(237),i=n(286),o=n(282)(\"IE_PROTO\"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:\"function\"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){n(367);for(var r=n(234),i=n(240),o=n(287),a=n(243)(\"toStringTag\"),s=\"CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList\".split(\",\"),u=0;u<s.length;u++){var l=s[u],c=r[l],h=c&&c.prototype;h&&!h[a]&&i(h,a,l),o[l]=o.Array}},function(t,e,n){\"use strict\";var r=n(368),i=n(369),o=n(287),a=n(242);t.exports=n(308)(Array,\"Array\",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,\"keys\"==e?n:\"values\"==e?t[n]:[n,t[n]])}),\"values\"),o.Arguments=o.Array,r(\"keys\"),r(\"values\"),r(\"entries\")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(371),__esModule:!0}},function(t,e,n){n(372),n(378),n(379),n(380),t.exports=n(250).Symbol},function(t,e,n){\"use strict\";function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=n(234),o=n(237),a=n(236),s=n(278),u=n(309),l=n(373).KEY,c=n(252),h=n(283),f=n(288),d=n(263),p=n(243),m=n(289),v=n(290),g=n(374),y=n(375),b=n(259),_=n(251),w=n(286),x=n(242),k=n(279),S=n(260),C=n(310),E=n(376),D=n(377),A=n(285),O=n(241),M=n(261),T=D.f,I=O.f,P=E.f,F=i.Symbol,j=i.JSON,N=j&&j.stringify,L=\"prototype\",B=p(\"_hidden\"),$=p(\"toPrimitive\"),z={}.propertyIsEnumerable,R=h(\"symbol-registry\"),U=h(\"symbols\"),V=h(\"op-symbols\"),H=Object[L],G=\"function\"==typeof F&&!!A.f,q=i.QObject,W=!q||!q[L]||!q[L].findChild,Y=a&&c((function(){return 7!=C(I({},\"a\",{get:function(){return I(this,\"a\",{value:7}).a}})).a}))?function(t,e,n){var r=T(H,e);r&&delete H[e],I(t,e,n),r&&t!==H&&I(H,e,r)}:I,Z=function(t){var e=U[t]=C(F[L]);return e._k=t,e},K=G&&\"symbol\"==r(F.iterator)?function(t){return\"symbol\"==r(t)}:function(t){return t instanceof F},X=function(t,e,n){return t===H&&X(V,e,n),b(t),e=k(e,!0),b(n),o(U,e)?(n.enumerable?(o(t,B)&&t[B][e]&&(t[B][e]=!1),n=C(n,{enumerable:S(0,!1)})):(o(t,B)||I(t,B,S(1,{})),t[B][e]=!0),Y(t,e,n)):I(t,e,n)},J=function(t,e){b(t);for(var n,r=g(e=x(e)),i=0,o=r.length;o>i;)X(t,n=r[i++],e[n]);return t},Q=function(t){var e=z.call(this,t=k(t,!0));return!(this===H&&o(U,t)&&!o(V,t))&&(!(e||!o(this,t)||!o(U,t)||o(this,B)&&this[B][t])||e)},tt=function(t,e){if(t=x(t),e=k(e,!0),t!==H||!o(U,e)||o(V,e)){var n=T(t,e);return!n||!o(U,e)||o(t,B)&&t[B][e]||(n.enumerable=!0),n}},et=function(t){for(var e,n=P(x(t)),r=[],i=0;n.length>i;)o(U,e=n[i++])||e==B||e==l||r.push(e);return r},nt=function(t){for(var e,n=t===H,r=P(n?V:x(t)),i=[],a=0;r.length>a;)!o(U,e=r[a++])||n&&!o(H,e)||i.push(U[e]);return i};G||(F=function(){if(this instanceof F)throw TypeError(\"Symbol is not a constructor!\");var t=d(arguments.length>0?arguments[0]:void 0);return a&&W&&Y(H,t,{configurable:!0,set:function e(n){this===H&&e.call(V,n),o(this,B)&&o(this[B],t)&&(this[B][t]=!1),Y(this,t,S(1,n))}}),Z(t)},u(F[L],\"toString\",(function(){return this._k})),D.f=tt,O.f=X,n(311).f=E.f=et,n(264).f=Q,A.f=nt,a&&!n(262)&&u(H,\"propertyIsEnumerable\",Q,!0),m.f=function(t){return Z(p(t))}),s(s.G+s.W+s.F*!G,{Symbol:F});for(var rt=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),it=0;rt.length>it;)p(rt[it++]);for(var ot=M(p.store),at=0;ot.length>at;)v(ot[at++]);s(s.S+s.F*!G,\"Symbol\",{for:function(t){return o(R,t+=\"\")?R[t]:R[t]=F(t)},keyFor:function(t){if(!K(t))throw TypeError(t+\" is not a symbol!\");for(var e in R)if(R[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!G,\"Object\",{create:function(t,e){return void 0===e?C(t):J(C(t),e)},defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=c((function(){A.f(1)}));s(s.S+s.F*st,\"Object\",{getOwnPropertySymbols:function(t){return A.f(w(t))}}),j&&s(s.S+s.F*(!G||c((function(){var t=F();return\"[null]\"!=N([t])||\"{}\"!=N({a:t})||\"{}\"!=N(Object(t))}))),\"JSON\",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(_(e)||void 0!==t)&&!K(t))return y(e)||(e=function(t,e){if(\"function\"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,N.apply(j,r)}}),F[L][$]||n(240)(F[L],$,F[L].valueOf),f(F,\"Symbol\"),f(Math,\"Math\",!0),f(i.JSON,\"JSON\",!0)},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=n(263)(\"meta\"),o=n(251),a=n(237),s=n(241).f,u=0,l=Object.isExtensible||function(){return!0},c=!n(252)((function(){return l(Object.preventExtensions({}))})),h=function(t){s(t,i,{value:{i:\"O\"+ ++u,w:{}}})},f=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!o(t))return\"symbol\"==r(t)?t:(\"string\"==typeof t?\"S\":\"P\")+t;if(!a(t,i)){if(!l(t))return\"F\";if(!e)return\"E\";h(t)}return t[i].i},getWeak:function(t,e){if(!a(t,i)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[i].w},onFreeze:function(t){return c&&f.NEED&&l(t)&&!a(t,i)&&h(t),t}}},function(t,e,n){var r=n(261),i=n(285),o=n(264);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},function(t,e,n){var r=n(307);t.exports=Array.isArray||function(t){return\"Array\"==r(t)}},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}var i=n(242),o=n(311).f,a={}.toString,s=\"object\"==(\"undefined\"==typeof window?\"undefined\":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&\"[object Window]\"==a.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(i(t))}},function(t,e,n){var r=n(264),i=n(260),o=n(242),a=n(279),s=n(237),u=n(303),l=Object.getOwnPropertyDescriptor;e.f=n(236)?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(290)(\"asyncIterator\")},function(t,e,n){n(290)(\"observable\")},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=87)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},10:function(t,e){t.exports=n(271)},2:function(t,e){t.exports=n(232)},22:function(t,e){t.exports=n(275)},3:function(t,e){t.exports=n(231)},30:function(t,e,n){\"use strict\";var r=n(2),i=n(3);e.a={bind:function(t,e,n){var o=null,a=void 0,s=Object(i.isMac)()?100:200,u=function(){return n.context[e.expression].apply()},l=function(){Date.now()-a<s&&u(),clearInterval(o),o=null};Object(r.on)(t,\"mousedown\",(function(t){0===t.button&&(a=Date.now(),Object(r.once)(document,\"mouseup\",l),clearInterval(o),o=setInterval(u,s))}))}}},87:function(t,e,n){\"use strict\";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{class:[\"el-input-number\",t.inputNumberSize?\"el-input-number--\"+t.inputNumberSize:\"\",{\"is-disabled\":t.inputNumberDisabled},{\"is-without-controls\":!t.controls},{\"is-controls-right\":t.controlsAtRight}],on:{dragstart:function(t){t.preventDefault()}}},[t.controls?n(\"span\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:t.decrease,expression:\"decrease\"}],staticClass:\"el-input-number__decrease\",class:{\"is-disabled\":t.minDisabled},attrs:{role:\"button\"},on:{keydown:function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.decrease(e)}}},[n(\"i\",{class:\"el-icon-\"+(t.controlsAtRight?\"arrow-down\":\"minus\")})]):t._e(),t.controls?n(\"span\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:t.increase,expression:\"increase\"}],staticClass:\"el-input-number__increase\",class:{\"is-disabled\":t.maxDisabled},attrs:{role:\"button\"},on:{keydown:function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.increase(e)}}},[n(\"i\",{class:\"el-icon-\"+(t.controlsAtRight?\"arrow-up\":\"plus\")})]):t._e(),n(\"el-input\",{ref:\"input\",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"up\",38,e.key,[\"Up\",\"ArrowUp\"])?null:(e.preventDefault(),t.increase(e))},function(e){return!(\"button\"in e)&&t._k(e.keyCode,\"down\",40,e.key,[\"Down\",\"ArrowDown\"])?null:(e.preventDefault(),t.decrease(e))}]}})],1)};r._withStripped=!0;var i=n(10),o=n.n(i),a=n(22),s=n.n(a),u=n(30),l={name:\"ElInputNumber\",mixins:[s()(\"input\")],inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},directives:{repeatClick:u.a},components:{ElInput:o.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:\"\"},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(t){return t>=0&&t===parseInt(t,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(t){var e=void 0===t?t:Number(t);if(void 0!==e){if(isNaN(e))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);e=Math.round(e/this.step)*r*this.step/r}void 0!==this.precision&&(e=this.toPrecision(e,this.precision))}e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),this.currentValue=e,this.userInput=null,this.$emit(\"input\",e)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var t=this.value,e=this.step,n=this.getPrecision,r=this.precision,i=n(e);return void 0!==r?r:Math.max(n(t),i)},controlsAtRight:function(){return this.controls&&\"right\"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var t=this.currentValue;if(\"number\"==typeof t){if(this.stepStrictly){var e=this.getPrecision(this.step),n=Math.pow(10,e);t=Math.round(t/this.step)*n*this.step/n}void 0!==this.precision&&(t=t.toFixed(this.precision))}return t}},methods:{toPrecision:function(t,e){return void 0===e&&(e=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,e))/Math.pow(10,e))},getPrecision:function(t){if(void 0===t)return 0;var e=t.toString(),n=e.indexOf(\".\"),r=0;return-1!==n&&(r=e.length-n-1),r},_increase:function(t,e){if(\"number\"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*e)/n)},_decrease:function(t,e){if(\"number\"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*e)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var t=this.value||0,e=this._increase(t,this.step);this.setCurrentValue(e)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var t=this.value||0,e=this._decrease(t,this.step);this.setCurrentValue(e)}},handleBlur:function(t){this.$emit(\"blur\",t)},handleFocus:function(t){this.$emit(\"focus\",t)},setCurrentValue:function(t){var e=this.currentValue;\"number\"==typeof t&&void 0!==this.precision&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),e!==t&&(this.userInput=null,this.$emit(\"input\",t),this.$emit(\"change\",t,e),this.currentValue=t)},handleInput:function(t){this.userInput=t},handleInputChange:function(t){var e=\"\"===t?void 0:Number(t);isNaN(e)&&\"\"!==t||this.setCurrentValue(e),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var t=this.$refs.input.$refs.input;t.setAttribute(\"role\",\"spinbutton\"),t.setAttribute(\"aria-valuemax\",this.max),t.setAttribute(\"aria-valuemin\",this.min),t.setAttribute(\"aria-valuenow\",this.currentValue),t.setAttribute(\"aria-disabled\",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute(\"aria-valuenow\",this.currentValue)}},c=n(0),h=Object(c.a)(l,r,[],!1,null,null,null);h.options.__file=\"packages/input-number/src/input-number.vue\";var f=h.exports;f.install=function(t){t.component(f.name,f)};e.default=f}})},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=61)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},15:function(t,e){t.exports=n(274)},18:function(t,e){t.exports=n(299)},21:function(t,e){t.exports=n(257)},26:function(t,e){t.exports=n(301)},3:function(t,e){t.exports=n(231)},31:function(t,e){t.exports=n(276)},41:function(t,e){t.exports=n(277)},52:function(t,e){t.exports=n(312)},6:function(t,e){t.exports=n(269)},61:function(t,e,n){\"use strict\";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{class:[\"el-cascader-panel\",t.border&&\"is-bordered\"],on:{keydown:t.handleKeyDown}},t._l(t.menus,(function(t,e){return n(\"cascader-menu\",{key:e,ref:\"menu\",refInFor:!0,attrs:{index:e,nodes:t}})})),1)};r._withStripped=!0;var i=n(26),o=n.n(i),a=n(15),s=n.n(a),u=n(18),l=n.n(u),c=n(52),h=n.n(c),f=n(3),d=function(t){return t.stopPropagation()},p={inject:[\"panel\"],components:{ElCheckbox:l.a,ElRadio:h.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var t=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(e){return t.isInPath(e)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var t=this,e=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?e.lazyLoad(n,(function(){var e=t.isLeaf;if(e||t.handleExpand(),o){var r=!!e&&n.checked;t.handleMultiCheckChange(r)}})):e.handleExpand(n))},handleCheckChange:function(){var t=this.panel,e=this.value,n=this.node;t.handleCheckChange(e),t.handleExpand(n)},handleMultiCheckChange:function(t){this.node.doCheck(t),this.panel.calculateMultiCheckedValue()},isInPath:function(t){var e=this.node;return(t[e.level-1]||{}).uid===e.uid},renderPrefix:function(t){var e=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(t):i?this.renderRadio(t):e&&n?this.renderCheckIcon(t):null},renderPostfix:function(t){var e=this.node,n=this.isLeaf;return e.loading?this.renderLoadingIcon(t):n?null:this.renderExpandIcon(t)},renderCheckbox:function(t){var e=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=d),t(\"el-checkbox\",o()([{attrs:{value:e.checked,indeterminate:e.indeterminate,disabled:r}},i]))},renderRadio:function(t){var e=this.checkedValue,n=this.value,r=this.isDisabled;return Object(f.isEqual)(n,e)&&(n=e),t(\"el-radio\",{attrs:{value:e,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:d}},[t(\"span\")])},renderCheckIcon:function(t){return t(\"i\",{class:\"el-icon-check el-cascader-node__prefix\"})},renderLoadingIcon:function(t){return t(\"i\",{class:\"el-icon-loading el-cascader-node__postfix\"})},renderExpandIcon:function(t){return t(\"i\",{class:\"el-icon-arrow-right el-cascader-node__postfix\"})},renderContent:function(t){var e=this.panel,n=this.node,r=e.renderLabelFn;return t(\"span\",{class:\"el-cascader-node__label\"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(t){var e=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,a=this.isLeaf,s=this.isDisabled,u=this.config,l=this.nodeId,c=u.expandTrigger,h=u.checkStrictly,f=u.multiple,d=!h&&s,p={on:{}};return\"click\"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(t){e.handleExpand(),e.$emit(\"expand\",t)},p.on.focus=function(t){e.handleExpand(),e.$emit(\"expand\",t)}),!a||s||h||f||(p.on.click=this.handleCheckChange),t(\"li\",o()([{attrs:{role:\"menuitem\",id:l,\"aria-expanded\":n,tabindex:d?null:-1},class:{\"el-cascader-node\":!0,\"is-selectable\":h,\"in-active-path\":n,\"in-checked-path\":r,\"is-active\":i,\"is-disabled\":d}},p]),[this.renderPrefix(t),this.renderContent(t),this.renderPostfix(t)])}},m=n(0),v=Object(m.a)(p,undefined,undefined,!1,null,null,null);v.options.__file=\"packages/cascader-panel/src/cascader-node.vue\";var g=v.exports,y=n(6),b={name:\"ElCascaderMenu\",mixins:[n.n(y).a],inject:[\"panel\"],components:{ElScrollbar:s.a,CascaderNode:g},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(f.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return\"cascader-menu-\"+this.id+\"-\"+this.index}},methods:{handleExpand:function(t){this.activeNode=t.target},handleMouseMove:function(t){var e=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(e&&r)if(e.contains(t.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect().left,o=t.clientX-i,a=this.$el,s=a.offsetWidth,u=a.offsetHeight,l=e.offsetTop,c=l+e.offsetHeight;r.innerHTML='\\n          <path style=\"pointer-events: auto;\" fill=\"transparent\" d=\"M'+o+\" \"+l+\" L\"+s+\" 0 V\"+l+' Z\" />\\n          <path style=\"pointer-events: auto;\" fill=\"transparent\" d=\"M'+o+\" \"+c+\" L\"+s+\" \"+u+\" V\"+c+' Z\" />\\n        '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var t=this.$refs.hoverZone;t&&(t.innerHTML=\"\")},renderEmptyText:function(t){return t(\"div\",{class:\"el-cascader-menu__empty-text\"},[this.t(\"el.cascader.noData\")])},renderNodeList:function(t){var e=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var a=n.hasChildren;return t(\"cascader-node\",o()([{key:n.uid,attrs:{node:n,\"node-id\":e+\"-\"+i,\"aria-haspopup\":a,\"aria-owns\":a?e:null}},r]))}));return[].concat(i,[n?t(\"svg\",{ref:\"hoverZone\",class:\"el-cascader-menu__hover-zone\"}):null])}},render:function(t){var e=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),t(\"el-scrollbar\",o()([{attrs:{tag:\"ul\",role:\"menu\",id:n,\"wrap-class\":\"el-cascader-menu__wrap\",\"view-class\":{\"el-cascader-menu__list\":!0,\"is-empty\":e}},class:\"el-cascader-menu\"},r]),[e?this.renderEmptyText(t):this.renderNodeList(t)])}},_=Object(m.a)(b,undefined,undefined,!1,null,null,null);_.options.__file=\"packages/cascader-panel/src/cascader-menu.vue\";var w=_.exports,x=n(21),k=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var S=0,C=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.data=e,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=S++,this.initState(),this.initChildren()}return t.prototype.initState=function(){var t=this.config,e=t.value,n=t.label;this.value=this.data[e],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(t){return t.value})),this.pathLabels=this.pathNodes.map((function(t){return t.label})),this.loading=!1,this.loaded=!1},t.prototype.initChildren=function(){var e=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new t(r,n,e)}))},t.prototype.calculatePathNodes=function(){for(var t=[this],e=this.parent;e;)t.unshift(e),e=e.parent;return t},t.prototype.getPath=function(){return this.path},t.prototype.getValue=function(){return this.value},t.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},t.prototype.getText=function(t,e){return t?this.pathLabels.join(e):this.label},t.prototype.isSameNode=function(t){var e=this.getValueByOption();return this.config.multiple&&Array.isArray(t)?t.some((function(t){return Object(f.isEqual)(t,e)})):Object(f.isEqual)(t,e)},t.prototype.broadcast=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=\"onParent\"+Object(f.capitalize)(t);this.children.forEach((function(e){e&&(e.broadcast.apply(e,[t].concat(n)),e[i]&&e[i].apply(e,n))}))},t.prototype.emit=function(t){var e=this.parent,n=\"onChild\"+Object(f.capitalize)(t);if(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[n]&&e[n].apply(e,i),e.emit.apply(e,[t].concat(i))}},t.prototype.onParentCheck=function(t){this.isDisabled||this.setCheckState(t)},t.prototype.onChildCheck=function(){var t=this.children.filter((function(t){return!t.isDisabled})),e=!!t.length&&t.every((function(t){return t.checked}));this.setCheckState(e)},t.prototype.setCheckState=function(t){var e=this.children.length,n=this.children.reduce((function(t,e){return t+(e.checked?1:e.indeterminate?.5:0)}),0);this.checked=t,this.indeterminate=n!==e&&n>0},t.prototype.syncCheckState=function(t){var e=this.getValueByOption(),n=this.isSameNode(t,e);this.doCheck(n)},t.prototype.doCheck=function(t){this.checked!==t&&(this.config.checkStrictly?this.checked=t:(this.broadcast(\"check\",t),this.setCheckState(t),this.emit(\"check\")))},k(t,[{key:\"isDisabled\",get:function(){var t=this.data,e=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return t[r]||!i&&e&&e.isDisabled}},{key:\"isLeaf\",get:function(){var t=this.data,e=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(x.isDef)(t[a])?t[a]:!!e&&!r.length;return this.hasChildren=!s,s}return!n}}]),t}(),E=C;var D=function t(e,n){return e.reduce((function(e,r){return r.isLeaf?e.push(r):(!n&&e.push(r),e=e.concat(t(r.children,n))),e}),[])},A=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),this.config=n,this.initNodes(e)}return t.prototype.initNodes=function(t){var e=this;t=Object(f.coerceTruthyValueToArray)(t),this.nodes=t.map((function(t){return new E(t,e.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},t.prototype.appendNode=function(t,e){var n=new E(t,this.config,e);(e?e.children:this.nodes).push(n)},t.prototype.appendNodes=function(t,e){var n=this;(t=Object(f.coerceTruthyValueToArray)(t)).forEach((function(t){return n.appendNode(t,e)}))},t.prototype.getNodes=function(){return this.nodes},t.prototype.getFlattedNodes=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?this.leafNodes:this.flattedNodes;return e?n:D(this.nodes,t)},t.prototype.getNodeByValue=function(t){var e=this.getFlattedNodes(!1,!this.config.lazy).filter((function(e){return Object(f.valueEquals)(e.path,t)||e.value===t}));return e&&e.length?e[0]:null},t}(),O=A,M=n(9),T=n.n(M),I=n(41),P=n.n(I),F=n(31),j=n.n(F),N=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},L=P.a.keys,B={expandTrigger:\"click\",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:f.noop,value:\"value\",label:\"label\",children:\"children\",leaf:\"leaf\",disabled:\"disabled\",hoverThreshold:500},$=function(t){return!t.getAttribute(\"aria-owns\")},z=function(t,e){var n=t.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex=\"-1\"]');return r[Array.prototype.indexOf.call(r,t)+e]||null}return null},R=function(t,e){if(t){var n=t.id.split(\"-\");return Number(n[n.length-2])}},U=function(t){t&&(t.focus(),!$(t)&&t.click())},V={name:\"ElCascaderPanel\",components:{CascaderMenu:w},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return T()(N({},B),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return\"hover\"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(t){Object(f.isEqual)(t,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit(\"input\",t),this.$emit(\"change\",t))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var t=this.config,e=this.options;t.lazy&&Object(f.isEmpty)(e)?this.lazyLoad():(this.store=new O(e,t),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var t=this.value,e=this.checkedValue;Object(f.isEqual)(t,e)||(this.activePath=[],this.checkedValue=t,this.syncMenuState())},syncMenuState:function(){var t=this.multiple,e=this.checkStrictly;this.syncActivePath(),t&&this.syncMultiCheckState(),e&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var t=this;this.getFlattedNodes(this.leafOnly).forEach((function(e){e.syncCheckState(t.checkedValue)}))},isEmptyValue:function(t){var e=this.multiple,n=this.config.emitPath;return!(!e&&!n)&&Object(f.isEmpty)(t)},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(f.isEmpty)(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[e.getNodes()];else{var o=n?i[0]:i,a=((this.getNodeByValue(o)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var s=r.map((function(e){return t.getNodeByValue(e.getValue())}));this.expandNodes(s)}},expandNodes:function(t){var e=this;t.forEach((function(t){return e.handleExpand(t,!0)}))},calculateCheckedNodePaths:function(){var t=this,e=this.checkedValue,n=this.multiple?Object(f.coerceTruthyValueToArray)(e):[e];this.checkedNodePaths=n.map((function(e){var n=t.getNodeByValue(e);return n?n.pathNodes:[]}))},handleKeyDown:function(t){var e=t.target;switch(t.keyCode){case L.up:var n=z(e,-1);U(n);break;case L.down:var r=z(e,1);U(r);break;case L.left:var i=this.$refs.menu[R(e)-1];if(i){var o=i.$el.querySelector('.el-cascader-node[aria-expanded=\"true\"]');U(o)}break;case L.right:var a=this.$refs.menu[R(e)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex=\"-1\"]');U(s)}break;case L.enter:!function(t){if(t){var e=t.querySelector(\"input\");e?e.click():$(t)&&t.click()}}(e);break;case L.esc:case L.tab:this.$emit(\"close\");break;default:return}},handleExpand:function(t,e){var n=this.activePath,r=t.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(t.isLeaf||(i.push(t),o.push(t.children)),this.activePath=i,this.menus=o,!e){var a=i.map((function(t){return t.getValue()})),s=n.map((function(t){return t.getValue()}));Object(f.valueEquals)(a,s)||(this.$emit(\"active-item-change\",a),this.$emit(\"expand-change\",a))}},handleCheckChange:function(t){this.checkedValue=t},lazyLoad:function(t,e){var n=this,r=this.config;t||(t=t||{root:!0,level:0},this.store=new O([],r),this.menus=[this.store.getNodes()]),t.loading=!0;r.lazyLoad(t,(function(r){var i=t.root?null:t;if(r&&r.length&&n.store.appendNodes(r,i),t.loading=!1,t.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(t){return t[a]===o})).length>0){var u=n.store.getNodeByValue(o);u.data[s]||n.lazyLoad(u,(function(){n.handleExpand(u)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}e&&e(r)}))},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(t){return t.getValueByOption()}))},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach((function(t){var e=t.$el;if(e){var n=e.querySelector(\".el-scrollbar__wrap\"),r=e.querySelector(\".el-cascader-node.is-active\")||e.querySelector(\".el-cascader-node.in-active-path\");j()(n,r)}}))},getNodeByValue:function(t){return this.store.getNodeByValue(t)},getFlattedNodes:function(t){var e=!this.config.lazy;return this.store.getFlattedNodes(t,e)},getCheckedNodes:function(t){var e=this.checkedValue;return this.multiple?this.getFlattedNodes(t).filter((function(t){return t.checked})):this.isEmptyValue(e)?[]:[this.getNodeByValue(e)]},clearCheckedNodes:function(){var t=this.config,e=this.leafOnly,n=t.multiple,r=t.emitPath;n?(this.getCheckedNodes(e).filter((function(t){return!t.isDisabled})).forEach((function(t){return t.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},H=Object(m.a)(V,r,[],!1,null,null,null);H.options.__file=\"packages/cascader-panel/src/cascader-panel.vue\";var G=H.exports;G.install=function(t){t.component(G.name,G)};e.default=G},9:function(t,e){t.exports=n(256)}})},function(t,e,n){function r(t){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(t)}t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/dist/\",n(n.s=78)}({0:function(t,e,n){\"use strict\";function r(t,e,n,r,i,o,a,s){var u,l=\"function\"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=\"data-v-\"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,\"a\",(function(){return r}))},2:function(t,e){t.exports=n(232)},3:function(t,e){t.exports=n(231)},5:function(t,e){t.exports=n(255)},7:function(t,e){t.exports=n(60)},78:function(t,e,n){\"use strict\";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"span\",[n(\"transition\",{attrs:{name:t.transition},on:{\"after-enter\":t.handleAfterEnter,\"after-leave\":t.handleAfterLeave}},[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:!t.disabled&&t.showPopper,expression:\"!disabled && showPopper\"}],ref:\"popper\",staticClass:\"el-popover el-popper\",class:[t.popperClass,t.content&&\"el-popover--plain\"],style:{width:t.width+\"px\"},attrs:{role:\"tooltip\",id:t.tooltipId,\"aria-hidden\":t.disabled||!t.showPopper?\"true\":\"false\"}},[t.title?n(\"div\",{staticClass:\"el-popover__title\",domProps:{textContent:t._s(t.title)}}):t._e(),t._t(\"default\",[t._v(t._s(t.content))])],2)]),n(\"span\",{ref:\"wrapper\",staticClass:\"el-popover__reference-wrapper\"},[t._t(\"reference\")],2)],1)};r._withStripped=!0;var i=n(5),o=n.n(i),a=n(2),s=n(3),u={name:\"ElPopover\",mixins:[o.a],props:{trigger:{type:String,default:\"click\",validator:function(t){return[\"click\",\"focus\",\"hover\",\"manual\"].indexOf(t)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:\"fade-in-linear\"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return\"el-popover-\"+Object(s.generateId)()}},watch:{showPopper:function(t){this.disabled||(t?this.$emit(\"show\"):this.$emit(\"hide\"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(a.addClass)(e,\"el-popover__reference\"),e.setAttribute(\"aria-describedby\",this.tooltipId),e.setAttribute(\"tabindex\",this.tabindex),n.setAttribute(\"tabindex\",0),\"click\"!==this.trigger&&(Object(a.on)(e,\"focusin\",(function(){t.handleFocus();var n=e.__vue__;n&&\"function\"==typeof n.focus&&n.focus()})),Object(a.on)(n,\"focusin\",this.handleFocus),Object(a.on)(e,\"focusout\",this.handleBlur),Object(a.on)(n,\"focusout\",this.handleBlur)),Object(a.on)(e,\"keydown\",this.handleKeydown),Object(a.on)(e,\"click\",this.handleClick)),\"click\"===this.trigger?(Object(a.on)(e,\"click\",this.doToggle),Object(a.on)(document,\"click\",this.handleDocumentClick)):\"hover\"===this.trigger?(Object(a.on)(e,\"mouseenter\",this.handleMouseEnter),Object(a.on)(n,\"mouseenter\",this.handleMouseEnter),Object(a.on)(e,\"mouseleave\",this.handleMouseLeave),Object(a.on)(n,\"mouseleave\",this.handleMouseLeave)):\"focus\"===this.trigger&&(this.tabindex,e.querySelector(\"input, textarea\")?(Object(a.on)(e,\"focusin\",this.doShow),Object(a.on)(e,\"focusout\",this.doClose)):(Object(a.on)(e,\"mousedown\",this.doShow),Object(a.on)(e,\"mouseup\",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(a.addClass)(this.referenceElm,\"focusing\"),\"click\"!==this.trigger&&\"focus\"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(a.removeClass)(this.referenceElm,\"focusing\")},handleBlur:function(){Object(a.removeClass)(this.referenceElm,\"focusing\"),\"click\"!==this.trigger&&\"focus\"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){t.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&\"manual\"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var t=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){t.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit(\"after-enter\")},handleAfterLeave:function(){this.$emit(\"after-leave\"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(a.off)(t,\"click\",this.doToggle),Object(a.off)(t,\"mouseup\",this.doClose),Object(a.off)(t,\"mousedown\",this.doShow),Object(a.off)(t,\"focusin\",this.doShow),Object(a.off)(t,\"focusout\",this.doClose),Object(a.off)(t,\"mousedown\",this.doShow),Object(a.off)(t,\"mouseup\",this.doClose),Object(a.off)(t,\"mouseleave\",this.handleMouseLeave),Object(a.off)(t,\"mouseenter\",this.handleMouseEnter),Object(a.off)(document,\"click\",this.handleDocumentClick)}},l=n(0),c=Object(l.a)(u,r,[],!1,null,null,null);c.options.__file=\"packages/popover/src/main.vue\";var h=c.exports,f=function(t,e,n){var r=e.expression?e.value:e.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=t:i.$refs.reference=t)},d={bind:function(t,e,n){f(t,e,n)},inserted:function(t,e,n){f(t,e,n)}},p=n(7);n.n(p).a.directive(\"popover\",d),h.install=function(t){t.directive(\"popover\",d),t.component(h.name,h)},h.directive=d;e.default=h}})},function(t,e,n){},function(t,e,n){\"use strict\";n(313)},function(t,e,n){\"use strict\";n(314)},,,,,,,,,,,,,,,,,function(t,e,n){\"use strict\";n.r(e);var r=n(238),i=n.n(r),o=n(119),a=n.n(o),s=/%[sdj%]/g;function u(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,i=e[0],o=e.length;if(\"function\"==typeof i)return i.apply(null,e.slice(1));if(\"string\"==typeof i){for(var a=String(i).replace(s,(function(t){if(\"%%\"===t)return\"%\";if(r>=o)return t;switch(t){case\"%s\":return String(e[r++]);case\"%d\":return Number(e[r++]);case\"%j\":try{return JSON.stringify(e[r++])}catch(t){return\"[Circular]\"}break;default:return t}})),u=e[r];r<o;u=e[++r])a+=\" \"+u;return a}return i}function l(t,e){return null==t||(!(\"array\"!==e||!Array.isArray(t)||t.length)||!(!function(t){return\"string\"===t||\"url\"===t||\"hex\"===t||\"email\"===t||\"pattern\"===t}(e)||\"string\"!=typeof t||t))}function c(t,e,n){var r=0,i=t.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?e(t[s],o):n([])}}([])}function h(t,e,n,r){if(e.first){var i=function(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,t[n])})),e}(t);return c(i,n,r)}var o=e.firstFields||[];!0===o&&(o=Object.keys(t));var a=Object.keys(t),s=a.length,u=0,l=[],h=function(t){l.push.apply(l,t),++u===s&&r(l)};a.forEach((function(e){var r=t[e];-1!==o.indexOf(e)?c(r,n,h):function(t,e,n){var r=[],i=0,o=t.length;function a(t){r.push.apply(r,t),++i===o&&n(r)}t.forEach((function(t){e(t,a)}))}(r,n,h)}))}function f(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function d(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];\"object\"===(void 0===r?\"undefined\":a()(r))&&\"object\"===a()(t[n])?t[n]=i()({},t[n],r):t[n]=r}return t}var p=function(t,e,n,r,i,o){!t.required||n.hasOwnProperty(t.field)&&!l(e,o||t.type)||r.push(u(i.messages.required,t.fullField))};var m=function(t,e,n,r,i){(/^\\s+$/.test(e)||\"\"===e)&&r.push(u(i.messages.whitespace,t.fullField))},v={email:/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,url:new RegExp(\"^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\\\S+(?::\\\\S*)?@)?(?:(?:(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}(?:\\\\.(?:[0-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))|(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]+-?)*[a-z\\\\u00a1-\\\\uffff0-9]+)(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]+-?)*[a-z\\\\u00a1-\\\\uffff0-9]+)*(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,})))|localhost)(?::\\\\d{2,5})?(?:(/|\\\\?|#)[^\\\\s]*)?$\",\"i\"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},g={integer:function(t){return g.number(t)&&parseInt(t,10)===t},float:function(t){return g.number(t)&&!g.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(t){return!1}},date:function(t){return\"function\"==typeof t.getTime&&\"function\"==typeof t.getMonth&&\"function\"==typeof t.getYear},number:function(t){return!isNaN(t)&&\"number\"==typeof t},object:function(t){return\"object\"===(void 0===t?\"undefined\":a()(t))&&!g.array(t)},method:function(t){return\"function\"==typeof t},email:function(t){return\"string\"==typeof t&&!!t.match(v.email)&&t.length<255},url:function(t){return\"string\"==typeof t&&!!t.match(v.url)},hex:function(t){return\"string\"==typeof t&&!!t.match(v.hex)}};var y=function(t,e,n,r,i){if(t.required&&void 0===e)p(t,e,n,r,i);else{var o=t.type;[\"integer\",\"float\",\"array\",\"regexp\",\"object\",\"method\",\"email\",\"number\",\"date\",\"url\",\"hex\"].indexOf(o)>-1?g[o](e)||r.push(u(i.messages.types[o],t.fullField,t.type)):o&&(void 0===e?\"undefined\":a()(e))!==t.type&&r.push(u(i.messages.types[o],t.fullField,t.type))}};var b=\"enum\";var _={required:p,whitespace:m,type:y,range:function(t,e,n,r,i){var o=\"number\"==typeof t.len,a=\"number\"==typeof t.min,s=\"number\"==typeof t.max,l=e,c=null,h=\"number\"==typeof e,f=\"string\"==typeof e,d=Array.isArray(e);if(h?c=\"number\":f?c=\"string\":d&&(c=\"array\"),!c)return!1;d&&(l=e.length),f&&(l=e.replace(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g,\"_\").length),o?l!==t.len&&r.push(u(i.messages[c].len,t.fullField,t.len)):a&&!s&&l<t.min?r.push(u(i.messages[c].min,t.fullField,t.min)):s&&!a&&l>t.max?r.push(u(i.messages[c].max,t.fullField,t.max)):a&&s&&(l<t.min||l>t.max)&&r.push(u(i.messages[c].range,t.fullField,t.min,t.max))},enum:function(t,e,n,r,i){t[b]=Array.isArray(t[b])?t[b]:[],-1===t[b].indexOf(e)&&r.push(u(i.messages[b],t.fullField,t[b].join(\", \")))},pattern:function(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(u(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(\"string\"==typeof t.pattern){new RegExp(t.pattern).test(e)||r.push(u(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}};var w=function(t,e,n,r,i){var o=t.type,a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e,o)&&!t.required)return n();_.required(t,e,r,a,i,o),l(e,o)||_.type(t,e,r,a,i)}n(a)},x={string:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e,\"string\")&&!t.required)return n();_.required(t,e,r,o,i,\"string\"),l(e,\"string\")||(_.type(t,e,r,o,i),_.range(t,e,r,o,i),_.pattern(t,e,r,o,i),!0===t.whitespace&&_.whitespace(t,e,r,o,i))}n(o)},method:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&_.type(t,e,r,o,i)}n(o)},number:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&(_.type(t,e,r,o,i),_.range(t,e,r,o,i))}n(o)},boolean:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&_.type(t,e,r,o,i)}n(o)},regexp:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e)&&!t.required)return n();_.required(t,e,r,o,i),l(e)||_.type(t,e,r,o,i)}n(o)},integer:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&(_.type(t,e,r,o,i),_.range(t,e,r,o,i))}n(o)},float:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&(_.type(t,e,r,o,i),_.range(t,e,r,o,i))}n(o)},array:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e,\"array\")&&!t.required)return n();_.required(t,e,r,o,i,\"array\"),l(e,\"array\")||(_.type(t,e,r,o,i),_.range(t,e,r,o,i))}n(o)},object:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&_.type(t,e,r,o,i)}n(o)},enum:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e)&&!t.required)return n();_.required(t,e,r,o,i),e&&_.enum(t,e,r,o,i)}n(o)},pattern:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e,\"string\")&&!t.required)return n();_.required(t,e,r,o,i),l(e,\"string\")||_.pattern(t,e,r,o,i)}n(o)},date:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(l(e)&&!t.required)return n();if(_.required(t,e,r,o,i),!l(e)){var a=void 0;a=\"number\"==typeof e?new Date(e):e,_.type(t,a,r,o,i),a&&_.range(t,a.getTime(),r,o,i)}}n(o)},url:w,hex:w,email:w,required:function(t,e,n,r,i){var o=[],s=Array.isArray(e)?\"array\":void 0===e?\"undefined\":a()(e);_.required(t,e,r,o,i,s),n(o)}};function k(){return{default:\"Validation error on field %s\",required:\"%s is required\",enum:\"%s must be one of %s\",whitespace:\"%s cannot be empty\",date:{format:\"%s date %s is invalid for format %s\",parse:\"%s date could not be parsed, %s is invalid \",invalid:\"%s date %s is invalid\"},types:{string:\"%s is not a %s\",method:\"%s is not a %s (function)\",array:\"%s is not an %s\",object:\"%s is not an %s\",number:\"%s is not a %s\",date:\"%s is not a %s\",boolean:\"%s is not a %s\",integer:\"%s is not an %s\",float:\"%s is not a %s\",regexp:\"%s is not a valid %s\",email:\"%s is not a valid %s\",url:\"%s is not a valid %s\",hex:\"%s is not a valid %s\"},string:{len:\"%s must be exactly %s characters\",min:\"%s must be at least %s characters\",max:\"%s cannot be longer than %s characters\",range:\"%s must be between %s and %s characters\"},number:{len:\"%s must equal %s\",min:\"%s cannot be less than %s\",max:\"%s cannot be greater than %s\",range:\"%s must be between %s and %s\"},array:{len:\"%s must be exactly %s in length\",min:\"%s cannot be less than %s in length\",max:\"%s cannot be greater than %s in length\",range:\"%s must be between %s and %s in length\"},pattern:{mismatch:\"%s value %s does not match pattern %s\"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var S=k();function C(t){this.rules=null,this._messages=S,this.define(t)}C.prototype={messages:function(t){return t&&(this._messages=d(k(),t)),this._messages},define:function(t){if(!t)throw new Error(\"Cannot configure a schema with no rules\");if(\"object\"!==(void 0===t?\"undefined\":a()(t))||Array.isArray(t))throw new Error(\"Rules must be an object\");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){var e=this,n=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments[2];if(\"function\"==typeof r&&(o=r,r={}),this.rules&&0!==Object.keys(this.rules).length){if(r.messages){var s=this.messages();s===S&&(s=k()),d(s,r.messages),r.messages=s}else r.messages=this.messages();var l=void 0,c=void 0,p={};(r.keys||Object.keys(this.rules)).forEach((function(r){l=e.rules[r],c=n[r],l.forEach((function(o){var a=o;\"function\"==typeof a.transform&&(n===t&&(n=i()({},n)),c=n[r]=a.transform(c)),(a=\"function\"==typeof a?{validator:a}:i()({},a)).validator=e.getValidationMethod(a),a.field=r,a.fullField=a.fullField||r,a.type=e.getType(a),a.validator&&(p[r]=p[r]||[],p[r].push({rule:a,value:c,source:n,field:r}))}))}));var m={};h(p,r,(function(t,e){var n=t.rule,o=!(\"object\"!==n.type&&\"array\"!==n.type||\"object\"!==a()(n.fields)&&\"object\"!==a()(n.defaultField));function s(t,e){return i()({},e,{fullField:n.fullField+\".\"+t})}function l(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(Array.isArray(a)||(a=[a]),a.length,a.length&&n.message&&(a=[].concat(n.message)),a=a.map(f(n)),r.first&&a.length)return m[n.field]=1,e(a);if(o){if(n.required&&!t.value)return a=n.message?[].concat(n.message).map(f(n)):r.error?[r.error(n,u(r.messages.required,n.field))]:[],e(a);var l={};if(n.defaultField)for(var c in t.value)t.value.hasOwnProperty(c)&&(l[c]=n.defaultField);for(var h in l=i()({},l,t.rule.fields))if(l.hasOwnProperty(h)){var d=Array.isArray(l[h])?l[h]:[l[h]];l[h]=d.map(s.bind(null,h))}var p=new C(l);p.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),p.validate(t.value,t.rule.options||r,(function(t){e(t&&t.length?a.concat(t):t)}))}else e(a)}o=o&&(n.required||!n.required&&t.value),n.field=t.field;var c=n.validator(n,t.value,l,t.source,r);c&&c.then&&c.then((function(){return l()}),(function(t){return l(t)}))}),(function(t){!function(t){var e,n=void 0,r=void 0,i=[],a={};for(n=0;n<t.length;n++)e=t[n],Array.isArray(e)?i=i.concat.apply(i,e):i.push(e);if(i.length)for(n=0;n<i.length;n++)a[r=i[n].field]=a[r]||[],a[r].push(i[n]);else i=null,a=null;o(i,a)}(t)}))}else o&&o()},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type=\"pattern\"),\"function\"!=typeof t.validator&&t.type&&!x.hasOwnProperty(t.type))throw new Error(u(\"Unknown rule type %s\",t.type));return t.type||\"string\"},getValidationMethod:function(t){if(\"function\"==typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf(\"message\");return-1!==n&&e.splice(n,1),1===e.length&&\"required\"===e[0]?x.required:x[this.getType(t)]||!1}},C.register=function(t,e){if(\"function\"!=typeof e)throw new Error(\"Cannot register a validator by type, validator is not a function\");x[t]=e},C.messages=S;e.default=C}]);"
  },
  {
    "path": "utils/hcaptchasolver/popup/popup.js.LICENSE.txt",
    "content": "/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n/*!\n   *  decimal.js v10.4.3\n   *  An arbitrary-precision Decimal type for JavaScript.\n   *  https://github.com/MikeMcl/decimal.js\n   *  Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>\n   *  MIT Licence\n   */\n\n/*!\n  * vue-router v3.0.7\n  * (c) 2019 Evan You\n  * @license MIT\n  */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <http://feross.org>\n * @license  MIT\n */\n\n/*!\n * Timm\n *\n * Immutability helpers with fast reads and acceptable writes.\n *\n * @copyright Guillermo Grau Panea 2016\n * @license MIT\n */\n\n/*!\n * Vue.js v2.6.14\n * (c) 2014-2021 Evan You\n * Released under the MIT License.\n */\n\n/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\n\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n\n/**\n * @fileOverview Kickass library to create and place poppers near their reference elements.\n * @version {{version}}\n * @license\n * Copyright (c) 2016 Federico Zivolo and contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n/**\n * @license\n * Lodash <https://lodash.com/>\n * Copyright JS Foundation and other contributors <https://js.foundation/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/**\n * @license Complex.js v2.1.1 12/05/2020\n *\n * Copyright (c) 2020, Robert Eisele (robert@xarg.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @license Fraction.js v4.3.0 20/08/2023\n * https://www.xarg.org/2014/03/rational-numbers-in-javascript/\n *\n * Copyright (c) 2023, Robert Eisele (robert@raw.org)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n **/\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cie94.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ciede2000.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * cmetric.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * common.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * constants.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ditherErrorDiffusionArray.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * euclidean.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * helper.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * hueStatistics.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * iq.ts - Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * lab2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * manhattanNeuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * nearestColor.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * palette.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pngQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * point.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * pointContainer.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2hsl.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgb2xyz.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * ssim.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * wuQuant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2lab.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * xyz2rgb.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve\n * MIT License\n *\n * Copyright 2015-2018 Igor Bezkrovnyi\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n *\n * riemersma.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * colorHistogram.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * neuquant.ts - part of Image Quantization Library\n */\n\n/**\n * @preserve TypeScript port:\n * Copyright 2015-2018 Igor Bezkrovnyi\n * All rights reserved. (MIT Licensed)\n *\n * rgbquant.ts - part of Image Quantization Library\n */\n\n/**\n * Checks if an event is supported in the current execution environment.\n *\n * NOTE: This will not work correctly for non-generic events such as `change`,\n * `reset`, `load`, `error`, and `select`.\n *\n * Borrows from Modernizr.\n *\n * @param {string} eventNameSuffix Event name, e.g. \"click\".\n * @param {?boolean} capture Check if the capture phase is supported.\n * @return {boolean} True if the event is supported.\n * @internal\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\n"
  },
  {
    "path": "utils/hcaptchasolver/static/rules.json",
    "content": "[\n  {\n    \"id\": 1,\n    \"priority\": 1,\n    \"action\": {\n      \"type\": \"redirect\",\n      \"redirect\": {\n        \"transform\": {\n          \"queryTransform\": {\n            \"addOrReplaceParams\": [\n              {\n                \"key\": \"hl\",\n                \"value\": \"en-US\"\n              }\n            ]\n          }\n        }\n      }\n    },\n    \"condition\": {\n      \"regexFilter\": \"^https://[^\\\\.]*\\\\.(google\\\\.com|recaptcha\\\\.net|hcaptcha\\\\.com|hcaptcha\\\\.net)(?:\\\\.[a-z]{2,3})?/(recaptcha|captcha)\",\n      \"resourceTypes\": [\"sub_frame\"]\n    }\n  }\n]\n"
  },
  {
    "path": "utils/huntbot_captcha/huntbotcaptcha.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n// who cares about shitty python we'r not beginners 🍆\n\nconst fs = require(\"fs\");\nconst path = require(\"path\");\nconst axios = require(\"axios\");\nconst sharp = require(\"sharp\");\n\nconst lettersDir = path.join(__dirname, \"letters\");\n\nmodule.exports = async (captchaUrl) => {\n    const checks = [];\n    const checkImages = getAllImagePaths(lettersDir);\n\n    for (const checkImage of checkImages.sort()) {\n        const img = sharp(checkImage);\n        const { width, height } = await img.metadata();\n        const letter = path.basename(checkImage, path.extname(checkImage));\n        checks.push({ img, width, height, letter });\n    }\n\n    const { data } = await axios.get(captchaUrl, {\n        responseType: \"arraybuffer\",\n    });\n    const largeImage = sharp(data);\n    const { width, height } = await largeImage.metadata();\n\n    return matchLetters(\n        await largeImage.raw().toBuffer(),\n        width,\n        height,\n        checks,\n    );\n};\n\nfunction getAllImagePaths(dir) {\n    let results = [];\n    const list = fs.readdirSync(dir);\n    for (const file of list) {\n        const fullPath = path.join(dir, file);\n        const stat = fs.statSync(fullPath);\n        if (stat && stat.isDirectory()) {\n            results = results.concat(getAllImagePaths(fullPath));\n        } else if (file.endsWith(\".png\")) {\n            results.push(fullPath);\n        }\n    }\n    return results;\n}\n\nasync function matchLetters(largeData, largeW, largeH, checks) {\n    const matches = [];\n\n    for (const { img, width: smallW, height: smallH, letter } of checks) {\n        const smallData = await img.raw().toBuffer();\n\n        for (let y = 0; y <= largeH - smallH; y++) {\n            for (let x = 0; x <= largeW - smallW; x++) {\n                if (\n                    compareImages(\n                        largeData,\n                        largeW,\n                        smallData,\n                        smallW,\n                        smallH,\n                        x,\n                        y,\n                    )\n                ) {\n                    if (\n                        !matches.some(\n                            (m) =>\n                                Math.abs(m.x - x) < smallW &&\n                                Math.abs(m.y - y) < smallH,\n                        )\n                    ) {\n                        matches.push({ x, y, letter });\n                    }\n                }\n            }\n        }\n    }\n\n    matches.sort((a, b) => a.x - b.x);\n    return matches.map((m) => m.letter).join(\"\");\n}\n\nfunction compareImages(\n    largeData,\n    largeW,\n    smallData,\n    smallW,\n    smallH,\n    startX,\n    startY,\n) {\n    for (let y = 0; y < smallH; y++) {\n        for (let x = 0; x < smallW; x++) {\n            const largeIdx = ((startY + y) * largeW + (startX + x)) * 4;\n            const smallIdx = (y * smallW + x) * 4;\n\n            if (\n                smallData[smallIdx + 3] > 0 &&\n                (smallData[smallIdx] !== largeData[largeIdx] ||\n                    smallData[smallIdx + 1] !== largeData[largeIdx + 1] ||\n                    smallData[smallIdx + 2] !== largeData[largeIdx + 2])\n            ) {\n                return false;\n            }\n        }\n    }\n    return true;\n}\n"
  },
  {
    "path": "utils/logger.js",
    "content": "//TODO the structure of the logger is too complex, the number of lines needs to be reduced, instead of assigning many variables, the newlog table needs to be displayed through a main global variable!\n/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Displays logs and status information in a formatted manner.\n *\n * @param {Array} reallog - An array of log messages to be displayed.\n *\n * The function checks if the client and loggerextrac are ready. If not, it logs the last message in the reallog array.\n * If ready, it retrieves various status information from the client and loggerextrac objects, formats them, and displays them in a structured format.\n * The function also includes a helper function `padder` to format text with padding.\n *\n * The display format varies based on the configuration settings:\n * - If extra logging is enabled, it displays detailed information for both main and extra clients.\n * - If only new logging is enabled, it displays detailed information for the main client.\n * - Otherwise, it logs the last message in the reallog array.\n */\nconst fs = require(\"fs\");\nconst path = require(\"path\");\n\nlet reallog = [],\n    fulllog = [],\n    simplifylog = [],\n    loggermaincl,\n    loggerextrac;\n\nconst startDate = new Date();\nconst formattedDate = `${startDate.getFullYear()}-${(startDate.getMonth() + 1).toString().padStart(2, \"0\")}-${startDate.getDate().toString().padStart(2, \"0\")}`;\nconst formattedTime = `${startDate.getHours().toString().padStart(2, \"0\")}-${startDate.getMinutes().toString().padStart(2, \"0\")}-${startDate.getSeconds().toString().padStart(2, \"0\")}`;\nconst logFileName = `./data/logs_${formattedDate}_${formattedTime}.log`;\n\nmodule.exports = (client) => {\n    let length = client ? client.config.settings.logging.loglength : 16;\n    if (client.global.type == \"Extra\") {\n        loggerextrac = client;\n    } else loggermaincl = client;\n    let exitlog =\n        client.config.settings.logging.showlogbeforeexit &&\n        client.config.settings.logging.newlog;\n    process.on(\"SIGINT\", () => {\n        if (exitlog) {\n            console.log(\"//START OF LOG//\");\n            for (const logs of fulllog) console.log(logs);\n            console.log(\"//END OF LOG//\");\n        }\n        process.exit(0);\n    });\n\n    function info(type, module, result = \"\") {\n        logging(\"🟢\", type, module, result, client.chalk.green);\n    }\n\n    function warn(type, module, result = \"\") {\n        logging(\"🟡\", type, module, result, client.chalk.yellow);\n    }\n\n    function alert(type, module, result = \"\") {\n        logging(\"🔴\", type, module, result, client.chalk.red);\n    }\n\n    function debug(result = \"\") {\n        logging(\"⚪\", \"Bot\", \"Debug\", result, client.chalk.white);\n    }\n\n    function logging(emoji, type, module, result, color) {\n        const logMessage =\n            `${client.chalk.white(`[${new Date().toLocaleTimeString()}]`)} ` +\n            `${client.chalk.white(emoji)} ` +\n            `${client.chalk.blue(client.chalk.bold(type))}` +\n            `${`${client.chalk.white(\" >> \")}${client.chalk.cyan(\n                client.chalk.bold(client.global.type),\n            )}`} > ` +\n            `${client.chalk.magenta(module)} > ` +\n            `${color(result)}`;\n\n        const localLogMessage = `[${new Date().toLocaleTimeString()}] ${\n            color == client.chalk.green\n                ? \"[I]\"\n                : color == client.chalk.yellow\n                  ? \"[W]\"\n                  : color == client.chalk.white\n                    ? \"[D]\"\n                    : \"[E]\"\n        } ${type} >> ${client.global.type} > ${module} > ${result}`;\n\n        fs.appendFile(logFileName, localLogMessage + \"\\n\", (err) => {\n            if (err) {\n                console.error(\"Error writing to log file\", err);\n            }\n        });\n\n        try {\n            // Ensure data directory exists\n            if (!fs.existsSync(\"./data\")) {\n                fs.mkdirSync(\"./data\", { recursive: true });\n            }\n\n            fs.readdir(\"./data\", (err, files) => {\n                if (err) {\n                    console.error(\"Error reading data directory:\", err);\n                    return;\n                }\n\n                const logFiles = files\n                    .filter((file) => file.endsWith(\".log\"))\n                    .map((file) => {\n                        const filePath = path.join(\"./data\", file);\n                        try {\n                            // Check if file exists before getting stats\n                            if (fs.existsSync(filePath)) {\n                                return {\n                                    name: file,\n                                    time: fs.statSync(filePath).mtime.getTime(),\n                                };\n                            }\n                            return null;\n                        } catch (err) {\n                            console.error(\n                                `Error getting stats for ${file}:`,\n                                err,\n                            );\n                            return null;\n                        }\n                    })\n                    .filter((file) => file !== null) // Remove null entries\n                    .sort((a, b) => a.time - b.time);\n\n                // Keep only the 5 most recent log files, delete the rest\n                logFiles.slice(0, logFiles.length - 5).forEach((file) => {\n                    const filePath = path.join(\"./data\", file.name);\n                    fs.unlink(filePath, (err) => {\n                        if (err) {\n                            console.error(`Error deleting ${file.name}:`, err);\n                        }\n                    });\n                });\n            });\n        } catch (e) {\n            console.error(\"Failed to manage log files:\", e);\n        }\n\n        if (color != client.chalk.white) {\n            reallog.push(logMessage);\n            if (exitlog) fulllog.push(logMessage);\n            if (reallog.length >= length) reallog.shift();\n            showlog(reallog);\n\n            const webLogMessage = `[${new Date().toLocaleTimeString()}] ${emoji} ${type} >> ${client.global.type} > ${module} > ${result}`;\n\n            simplifylog.push(webLogMessage);\n\n            if (process.send) {\n                process.send({\n                    type: \"log\",\n                    message: webLogMessage,\n                });\n            }\n        }\n    }\n\n    function showlog(reallog) {\n        //no client\n        if (\n            !client.global.temp.isready ||\n            (loggerextrac && !loggerextrac.global.temp.isready)\n        ) {\n            console.log(reallog[reallog.length - 1]);\n            return;\n        }\n\n        //leave the var here if future need\n        var mainHunt = loggermaincl.global.total.hunt;\n        var mainBattle = loggermaincl.global.total.battle;\n        var mainEvent = loggermaincl.global.gems.isevent ? \"Yes\" : \"No\";\n        // var mainCF = loggermaincl.global.gamble.coinflip;\n        // var mainSlot = loggermaincl.global.gamble.slot;\n        var mainCow = loggermaincl.global.gamble.cowoncywon;\n        var mainCaptcha = loggermaincl.global.captchadetected\n            ? client.chalk.red(\"Danger  \")\n            : client.chalk.green(\"Safe    \");\n        var mainPause = loggermaincl.global.paused\n            ? client.chalk.yellow(\"Paused  \")\n            : client.chalk.cyan(\"Running \");\n\n        if (loggerextrac) {\n            var extraHunt = loggerextrac.global.total.hunt;\n            var extraBattle = loggerextrac.global.total.battle;\n            // var extraEvent = loggerextrac.global.gems.isevent ? \"Yes\" : \"No\";\n            // var extraCF = loggerextrac.global.gamble.coinflip;\n            // var extraSlot = loggerextrac.global.gamble.slot;\n            var extraCow = loggerextrac.global.gamble.cowoncywon;\n            var extraCaptcha = loggerextrac.global.captchadetected\n                ? client.chalk.red(\"Danger  \")\n                : client.chalk.green(\"Safe    \");\n            var extraPause = loggerextrac.global.paused\n                ? client.chalk.yellow(\"Paused  \")\n                : client.chalk.cyan(\"Running \");\n        }\n\n        function padder(value) {\n            let paddedText = \"\";\n            let temp;\n            if (value != null) temp = value.toString();\n            else return \"null\";\n            temp = temp.trim();\n\n            if (temp.length < 9) {\n                paddedText = temp.padEnd(9, \" \");\n                return paddedText;\n            } else {\n                paddedText = temp.slice(0, 7).padEnd(8, \" \") + \"+\";\n                return paddedText;\n            }\n        }\n\n        if (\n            client.config.extra.enable &&\n            loggerextrac &&\n            client.config.settings.logging.newlog\n        ) {\n            console.clear();\n            console.log(\n                `╔══════════╦════════════════════════╦════════════════════════════════════════════════\n║ Token    ║ Status                 ║ Questing\n╠══════════╬════════════════════════╬════════════════════════════════════════════════\n║ Main     ║ Total hunt: ${padder(mainHunt, false)}  ║ ${\n                    loggermaincl.global.quest.title\n                }\n║ ${mainCaptcha} ║ Total battle: ${padder(mainBattle, false)}║ ${\n                    loggermaincl.global.quest.reward\n                }\n║ ${mainPause} ║ Cowoncy won: ${padder(mainCow, false)} ║ ${\n                    loggermaincl.global.quest.progress\n                }\n╠══════════╬════════════════════════╬════════════════════════════════════════════════\n║ Extra    ║ Total hunt: ${padder(extraHunt, false)}  ║ ${\n                    loggerextrac.global.quest.title\n                }\n║ ${extraCaptcha} ║ Total battle: ${padder(extraBattle, false)}║ ${\n                    loggerextrac.global.quest.reward\n                }\n║ ${extraPause} ║ Cowoncy won: ${padder(extraCow, false)} ║ ${\n                    loggerextrac.global.quest.progress\n                }\n╚══════════╩════════════════════════╩════════════════════════════════════════════════\n>>> Log`,\n            );\n            for (const logs of reallog) {\n                console.log(logs);\n            }\n        } else if (client.config.settings.logging.newlog) {\n            console.clear();\n            console.log(\n                `╔═══════════════════════╦══════════╦═══════════════════════════════════════════════\n║ Name                 ║ Status    ║ Questing\n╠══════════════════════╬═══════════╬═══════════════════════════════════════════════\n║ Total hunt           ║ ${padder(mainHunt, false)} ║ > Title\n║ Total battle         ║ ${padder(mainBattle, false)} ║ ${\n                    client.global.quest.title\n                } \n║ Having event         ║ ${padder(mainEvent, false)} ║ > Reward\n║ Total cowoncy won    ║ ${padder(mainCow, false)} ║ ${\n                    client.global.quest.reward\n                }\n║ Safety level         ║ ${mainCaptcha} ║ > Progress\n║ Running?             ║ ${mainPause} ║ ${client.global.quest.progress}\n╚══════════════════════╩═══════════╩═══════════════════════════════════════════════\n>>> Log`,\n            );\n            for (const logs of reallog) {\n                console.log(logs);\n            }\n        } else {\n            console.log(reallog[reallog.length - 1]);\n        }\n    }\n\n    function getSimpleLog() {\n        return simplifylog;\n    }\n\n    return {\n        info,\n        warn,\n        alert,\n        debug,\n        getSimpleLog,\n    };\n};\n"
  },
  {
    "path": "utils/mainHandler.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n/**\n * Handles the checklist process for the given client and channel.\n *\n * @async\n * @function checklist\n * @param {Object} client - The client object.\n * @param {Object} channel - The channel object where the checklist command will be sent.\n * @returns {Promise<void>}\n *\n * @description\n * This function sends a checklist command to the specified channel and processes the response.\n * It checks for various checklist items such as daily, vote, and cookie, and performs the necessary actions.\n * If a captcha is detected or the client is paused, the function will return early.\n *\n * @example\n * checklist(client, channel);\n */\n\nconst path = require(\"path\");\nconst commandrandomizer = (arr) => arr[Math.floor(Math.random() * arr.length)];\nconst getrand = (min, max) => Math.random() * (max - min) + min;\n\nmodule.exports = async (client, message) => {\n    if (client.global.paused || client.global.captchadetected) {\n        while (true) {\n            if (!(client.global.paused || client.global.captchadetected)) break;\n            await client.delay(3000);\n        }\n    }\n\n    let channel = client.channels.cache.get(client.basic.commandschannelid);\n    if (!client.config.settings.owoprefix.length) {\n        client.config.settings.owoprefix = \"owo\";\n    }\n\n    if (\n        client.config.settings.autojoingiveaways &&\n        client.global.owosupportserver\n    ) {\n        require(\"./function/joingiveaways.js\")(client);\n    }\n\n    if (client.basic.commands.checklist) {\n        if (client.global.paused || client.global.captchadetected) {\n            while (true) {\n                if (!(client.global.paused || client.global.captchadetected))\n                    break;\n                await client.delay(3000);\n            }\n        }\n        await checklist(client, channel);\n    } else {\n        if (client.global.paused || client.global.captchadetected) {\n            while (true) {\n                if (!(client.global.paused || client.global.captchadetected))\n                    break;\n                await client.delay(3000);\n            }\n        }\n        await client.delay(2000);\n        require(\"./function/farm.js\")(client, message);\n    }\n\n    await client.delay(2000);\n\n    // await client.delay(16000); //reduce bot rate\n    if (\n        client.basic.commands.gamble.coinflip ||\n        client.basic.commands.gamble.slot\n    ) {\n        if (client.global.paused || client.global.captchadetected) {\n            while (true) {\n                if (!(client.global.paused || client.global.captchadetected))\n                    break;\n                await client.delay(3000);\n            }\n        }\n        require(\"./function/gamble.js\")(client, message);\n        await client.delay(8000);\n    }\n    if (client.basic.commands.autoquest) {\n        if (client.global.paused || client.global.captchadetected) {\n            while (true) {\n                if (!(client.global.paused || client.global.captchadetected))\n                    break;\n                await client.delay(3000);\n            }\n        }\n        require(\"./function/quest.js\")(client, message);\n    } else {\n        client.global.quest.title = \"Quest not enabled\";\n    }\n\n    // await client.delay(16000);\n    if (client.basic.commands.animals) {\n        if (client.global.paused || client.global.captchadetected) {\n            while (true) {\n                if (!(client.global.paused || client.global.captchadetected))\n                    break;\n                await client.delay(3000);\n            }\n        }\n\n        await sell(\n            client,\n            channel,\n            client.config.animals.type.sell ? \"sell\" : \"sacrifice\",\n            client.global.temp.animaltype,\n        );\n    }\n\n    if (client.basic.commands.pray || client.basic.commands.curse) {\n        if (client.global.paused || client.global.captchadetected) {\n            while (true) {\n                if (!(client.global.paused || client.global.captchadetected))\n                    break;\n                await client.delay(3000);\n            }\n        }\n        await client.delay(32000);\n        require(\"./function/luck.js\")(client, message);\n    }\n\n    if (client.basic.commands.huntbot.enable) {\n        if (client.global.paused || client.global.captchadetected) {\n            while (true) {\n                if (!(client.global.paused || client.global.captchadetected))\n                    break;\n                await client.delay(3000);\n            }\n        }\n        require(\"./function/huntbot.js\")(client);\n    }\n\n    if (client.config.settings.safety.autopause) {\n        require(\"./function/safety.js\")(client);\n    }\n};\n\nasync function checklist(client, channel) {\n    async function smol(client, channel) {\n        if (client.global.captchadetected || client.global.paused) return;\n        try {\n            let id;\n            channel.sendTyping();\n            await channel\n                .send({\n                    content: `${commandrandomizer([\n                        \"owo\",\n                        client.config.settings.owoprefix,\n                    ])} ${commandrandomizer([\"cl\", \"checklist\"])}`,\n                })\n                .then(async (clmsg) => {\n                    client.global.checklist = true;\n                    id = clmsg.id;\n                    client.logger.info(\n                        \"Farm\",\n                        \"Checklist\",\n                        `Paused: ${client.global.checklist}! Reading checklist`,\n                    );\n                    let message = await getMessage();\n                    async function getMessage() {\n                        return new Promise((resolve) => {\n                            const filter = (msg) =>\n                                msg.embeds[0] &&\n                                msg.embeds[0].author &&\n                                msg.embeds[0].author.name.includes(\n                                    \"Checklist\",\n                                ) &&\n                                msg.author.id === \"408785106942164992\" &&\n                                msg.channel.id === channel.id &&\n                                msg.id.localeCompare(id) > 0;\n\n                            const listener = (msg) => {\n                                if (filter(msg)) {\n                                    clearTimeout(timer);\n                                    client.off(\"messageCreate\", listener);\n                                    resolve(msg);\n                                }\n                            };\n\n                            const timer = setTimeout(() => {\n                                client.logger.warn(\n                                    \"Farm\",\n                                    \"Checklist\",\n                                    \"Rechecking checklist...\",\n                                );\n                                client.off(\"messageCreate\", listener);\n                                const collector =\n                                    channel.createMessageCollector({\n                                        filter,\n                                        time: 11600,\n                                    });\n                                collector.on(\"collect\", (msg) => {\n                                    if (filter(msg)) {\n                                        collector.stop();\n                                        resolve(msg);\n                                    }\n                                });\n                                collector.on(\"end\", () => resolve(null));\n                            }, 10000);\n\n                            client.on(\"messageCreate\", listener);\n                        });\n                    }\n\n                    if (message == null) {\n                        client.global.checklist = false;\n                        client.logger.alert(\n                            \"Farm\",\n                            \"Checklist\",\n                            \"Cannot retrieve checklist.\",\n                        );\n                        return;\n                    }\n\n                    await client.delay(3000);\n                    if (client.global.captchadetected || client.global.paused) {\n                        return;\n                    }\n\n                    const regex = /(\\d+)\\s*H|(\\d+)\\s*M|(\\d+)\\s*S/g;\n                    const matches = [\n                        ...message.embeds[0].footer.text.matchAll(regex),\n                    ];\n\n                    let checklisthours = 0,\n                        checklistminutes = 0,\n                        checklistseconds = 0;\n\n                    matches.forEach((match) => {\n                        if (match[1]) checklisthours = parseInt(match[1], 10);\n                        if (match[2]) checklistminutes = parseInt(match[2], 10);\n                        if (match[3]) checklistseconds = parseInt(match[3], 10);\n                    });\n\n                    client.global.temp.intervals.checklist +=\n                        checklisthours * 60 * 60 * 1000 +\n                        checklistminutes * 60 * 1000 +\n                        checklistseconds * 1000;\n\n                    let checklistmsg =\n                        message.embeds[0].description.toLowerCase();\n                    if (checklistmsg.includes(\"☑️ 🎉\")) {\n                        client.logger.info(\n                            \"Farm\",\n                            \"Checklist\",\n                            \"Checklist completed.\",\n                        );\n                    } else {\n                        const checklistlines = checklistmsg.trim().split(\"\\n\");\n                        checklistlines.forEach(async (line) => {\n                            switch (true) {\n                                case line.startsWith(\"⬛ 🎁\") &&\n                                    client.config.settings.checklist.types\n                                        .daily:\n                                    await client.delay(3000);\n                                    await channel\n                                        .send({\n                                            content: `${commandrandomizer([\n                                                \"owo\",\n                                                client.config.settings\n                                                    .owoprefix,\n                                            ])} daily`,\n                                        })\n                                        .then(() => {\n                                            client.logger.info(\n                                                \"Farm\",\n                                                \"Checklist - Daily\",\n                                                `Daily Claimed`,\n                                            );\n                                        });\n                                    await client.delay(6000);\n                                    break;\n\n                                case line.startsWith(\"⬛ 📝\") &&\n                                    client.config.settings.checklist.types.vote:\n                                    client.logger.info(\n                                        \"Farm\",\n                                        \"Checklist - Vote\",\n                                        `Platform: ${process.platform}`,\n                                    );\n                                    switch (\n                                        process.platform ||\n                                        client.global.istermux\n                                    ) {\n                                        case \"android\":\n                                            client.logger.warn(\n                                                \"Bot\",\n                                                \"Checklist - Vote\",\n                                                \"Unsupported platform!\",\n                                            );\n                                            break;\n                                        default:\n                                            client.logger.info(\n                                                \"Bot\",\n                                                \"Checklist - Vote\",\n                                                \"Opening automated chromium browser...\",\n                                            );\n\n                                            client.childprocess.spawn(\"node\", [\n                                                path.join(\n                                                    __dirname,\n                                                    \"./autovote/index.js\",\n                                                ),\n                                                `--token=${client.basic.token}`,\n                                                `--bid=408785106942164992`,\n                                            ]);\n                                            client.global.total.vote++;\n                                            client.broadcast({\n                                                action: \"update\",\n                                                type: \"vote\",\n                                                progress:\n                                                    client.global.total.vote,\n                                                global: client.global,\n                                            });\n                                            break;\n                                    }\n                                    break;\n\n                                case line.startsWith(\"⬛ 🍪\") &&\n                                    client.config.settings.checklist.types\n                                        .cookie: {\n                                    await client.delay(3000);\n                                    //aliciafae xd\n                                    let members = channel.guild.members.cache\n                                        .filter(\n                                            (member) =>\n                                                !member.user.bot &&\n                                                member.id !==\n                                                    \"408785106942164992\" &&\n                                                member.id !== client.user.id,\n                                        )\n                                        .map((member) => member.user);\n                                    let selectedmemberid;\n\n                                    if (members.length === 0) {\n                                        selectedmemberid = \"408785106942164992\";\n                                    } else {\n                                        const randomMember =\n                                            members[\n                                                Math.floor(\n                                                    Math.random() *\n                                                        members.length,\n                                                )\n                                            ];\n                                        selectedmemberid = `${randomMember.id}`;\n                                    }\n                                    await channel\n                                        .send({\n                                            content: `${commandrandomizer([\n                                                \"owo\",\n                                                client.config.settings\n                                                    .owoprefix,\n                                            ])} cookie <@${selectedmemberid}>`,\n                                        })\n                                        .then(() => {\n                                            client.global.temp.usedcookie = true;\n                                            client.logger.info(\n                                                \"Farm\",\n                                                \"Checklist - Cookie\",\n                                                `Cookie sent`,\n                                            );\n                                        });\n                                    await client.delay(3000);\n                                    break;\n                                }\n\n                                case line.startsWith(\"️☑️ 🍪\"):\n                                    client.global.temp.usedcookie = true;\n                                    break;\n\n                                case line.startsWith(\"☑️ 💎\"):\n                                    client.logger.info(\n                                        \"Farm\",\n                                        \"Checklist\",\n                                        \"Daily lootbox completed\",\n                                    );\n                                    break;\n\n                                case line.startsWith(\"☑️ ⚔\"):\n                                    client.logger.info(\n                                        \"Farm\",\n                                        \"Checklist\",\n                                        \"Daily crate completed\",\n                                    );\n                                    break;\n                            }\n                        });\n                    }\n                    await client.delay(2000);\n                    for (let i = 0; i < 1000; i++) {\n                        if (client.global.captchadetected === false) {\n                            client.global.checklist = false;\n\n                            break;\n                        }\n                        await client.delay(1000);\n                    }\n\n                    client.logger.info(\n                        \"Farm\",\n                        \"Checklist\",\n                        `Paused: ${client.global.checklist}`,\n                    );\n                });\n            setTimeout(() => {\n                smol(client, channel);\n                client.logger.warn(\n                    \"Farm\",\n                    \"Checklist\",\n                    \"Rechecking checklist after interval\",\n                );\n            }, client.global.temp.intervals.checklist);\n        } catch (e) {\n            client.logger.alert(\n                \"Farm\",\n                \"Checklist\",\n                \"Error while checking checklist: \",\n                e,\n            );\n            client.logger.warn(\n                \"Farm\",\n                \"Checklist\",\n                \"Recheck checklist after 10 minutes\",\n            );\n            client.logger.debug(e);\n            setTimeout(() => {\n                smol(client, channel);\n            }, 610000);\n        }\n    }\n\n    smol(client, channel);\n    require(\"./function/farm.js\")(client);\n}\n\nasync function sell(client, channel, choose, types) {\n    if (client.global.captchadetected || client.global.paused) {\n        setTimeout(() => {\n            sell(client, channel, choose, types);\n        }, 16000);\n        return;\n    }\n    try {\n        channel.sendTyping();\n        await channel.send({\n            content: `${commandrandomizer([\n                \"owo\",\n                client.config.settings.owoprefix,\n            ])} ${choose} ${types}`,\n        });\n    } catch (err) {\n        client.logger.alert(\"Farm\", \"Sell\", \"Failed to sell: \" + err);\n        client.logger.debug(err);\n    } finally {\n        setTimeout(\n            () => {\n                sell(client, channel, choose, types);\n            },\n            getrand(\n                client.config.interval.animals.min,\n                client.config.interval.animals.max,\n            ),\n        );\n    }\n}\n"
  },
  {
    "path": "utils/updater.js",
    "content": "const path = require(\"path\");\nconst axios = require(\"axios\");\nconst os = require(\"os\");\nconst fse = require(\"fs-extra\");\n\nexports.checkUpdate = async (client, cp, packageJson) => {\n    client.logger.info(\"Bot\", \"Updater\", \"Checking for updates...\");\n    try {\n        const ghVersion = await fetchLatestVersion();\n        const currentVersion = packageJson.version;\n\n        if (!isNewerVersion(ghVersion, currentVersion)) {\n            client.logger.info(\"Bot\", \"Updater\", \"No updates available.\");\n            return;\n        }\n\n        await handleUpdate(client, cp, ghVersion);\n    } catch (error) {\n        client.logger.alert(\n            \"Bot\",\n            \"Updater\",\n            `Update check failed: ${error.message}`,\n        );\n    }\n};\n\nconst fetchLatestVersion = async () => {\n    const headers = {\n        \"User-Agent\":\n            \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36\",\n    };\n\n    try {\n        const response = await axios.get(\n            \"https://raw.githubusercontent.com/Mid0aria/owofarmbot_stable/main/package.json\",\n            { headers },\n        );\n        return response.data;\n    } catch (error) {\n        throw new Error(`Failed to fetch version: ${error.message}`);\n    }\n};\n\nconst isNewerVersion = (ghData, currentVersion) => {\n    if (ghData.version > currentVersion) {\n        return true;\n    }\n    return false;\n};\n\nconst handleUpdate = async (client, cp, ghData) => {\n    client.logger.warn(\"Bot\", \"Updater\", \"A new update is available.\");\n    client.logger.info(\n        \"Bot\",\n        \"Updater\",\n        `New Version Notes: ${ghData.version_note}`,\n    );\n\n    const userResponse = await client.globalutil.askUser(\n        \"Would you like to update now? (yes/no): \",\n    );\n    if (![\"yes\", \"y\"].includes(userResponse.toLowerCase())) {\n        client.logger.info(\"Bot\", \"Updater\", \"Update skipped by user.\");\n        return;\n    }\n\n    client.logger.warn(\"Bot\", \"Updater\", \"Updating bot. Please wait...\");\n\n    const configPath = path.join(__dirname, \"../config.json\");\n    await updateWithConfigPreservation(client, cp, configPath);\n\n    client.logger.warn(\"Bot\", \"Updater\", \"Please restart the bot.\");\n};\n\nconst updateWithConfigPreservation = async (client, cp, configPath) => {\n    const backupPath = await backupConfig(client, configPath);\n\n    try {\n        if (fse.existsSync(\".git\")) {\n            await updateViaGit(client, cp);\n        } else {\n            await setupAndUpdateGit(client, cp);\n        }\n\n        await mergeConfigs(client, configPath, backupPath);\n    } catch (error) {\n        await handleUpdateError(client, error, backupPath, configPath);\n    }\n};\n\nconst backupConfig = async (client, configPath) => {\n    const tempDir = os.tmpdir();\n    const backupPath = path.join(tempDir, `config.backup.${Date.now()}.json`);\n\n    try {\n        if (!fse.existsSync(configPath)) {\n            throw new Error(\"Config file not found\");\n        }\n\n        await fse.copy(configPath, backupPath);\n        client.logger.info(\n            \"Updater\",\n            \"Config\",\n            `Backup created at ${backupPath}`,\n        );\n        return backupPath;\n    } catch (error) {\n        throw new Error(`Backup failed: ${error.message}`);\n    }\n};\n\nconst mergeConfigs = async (client, configPath, backupPath) => {\n    try {\n        const oldConfig = await fse.readJson(backupPath);\n        const newConfig = await fse.readJson(configPath);\n\n        const mergedConfig = deepMerge(newConfig, oldConfig);\n\n        await fse.writeJson(configPath, mergedConfig, { spaces: 2 });\n        await fse.remove(backupPath);\n\n        client.logger.info(\n            \"Updater\",\n            \"Config\",\n            \"Configuration successfully merged\",\n        );\n    } catch (error) {\n        throw new Error(`Config merge failed: ${error.message}`);\n    }\n};\n\nconst deepMerge = (target, source) => {\n    const merged = { ...target };\n\n    for (const key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n            if (isObject(source[key]) && isObject(target[key])) {\n                merged[key] = deepMerge(target[key], source[key]);\n            } else if (Object.prototype.hasOwnProperty.call(target, key)) {\n                merged[key] = source[key];\n            }\n        }\n    }\n\n    return merged;\n};\n\nconst isObject = (item) => {\n    return item !== null && typeof item === \"object\" && !Array.isArray(item);\n};\n\nconst updateViaGit = async (client, cp) => {\n    try {\n        cp.execSync(\"git stash\");\n        cp.execSync(\"git pull --force\");\n        cp.execSync(\"git reset --hard\");\n        client.logger.info(\"Updater\", \"Git\", \"Update successful\");\n        process.exit(0);\n    } catch (error) {\n        throw new Error(`Git update failed: ${error.message}`);\n    }\n};\n\nconst setupAndUpdateGit = async (client, cp) => {\n    const repoUrl = \"https://github.com/Mid0Hub/owofarmbot_stable.git\";\n    const targetFolder = path.join(__dirname, \"../.git\");\n\n    try {\n        await fse.ensureDir(targetFolder);\n        cp.execSync(`git clone --bare ${repoUrl} ${targetFolder}`, {\n            stdio: \"inherit\",\n        });\n        await updateViaGit(client, cp);\n    } catch (error) {\n        throw new Error(`Git setup failed: ${error.message}`);\n    }\n};\n\nconst handleUpdateError = async (client, error, backupPath, configPath) => {\n    client.logger.alert(\"Updater\", \"Error\", `Update failed: ${error.message}`);\n\n    try {\n        if (backupPath && fse.existsSync(backupPath)) {\n            await fse.copy(backupPath, configPath, { overwrite: true });\n            client.logger.info(\n                \"Updater\",\n                \"Recovery\",\n                \"Config restored from backup\",\n            );\n        }\n    } catch (restoreError) {\n        client.logger.alert(\n            \"Updater\",\n            \"Recovery\",\n            `Config restore failed: ${restoreError.message}`,\n        );\n    }\n};\n"
  },
  {
    "path": "utils/webserver.js",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\nconst WebSocket = require(\"ws\");\nconst config = require(\"../config.json\");\n\nlet websocketclientsarray = [];\n\nfunction startWebSocketServer(client, extraclient) {\n    const wss = new WebSocket.Server({\n        noServer: true,\n    });\n\n    process.on(\"message\", (data, socket) => {\n        if (data.type === \"upgrade\") {\n            process.send(\"ready-for-upgrade\");\n        } else if (data.type === \"upgrade-socket\") {\n            if (!wss) return socket.destroy();\n\n            const request = {\n                url: data.requestData.url,\n                headers: data.requestData.headers,\n                method: data.requestData.method,\n            };\n\n            wss.handleUpgrade(request, socket, data.head, (ws) => {\n                wss.emit(\"connection\", ws, request);\n            });\n        }\n    });\n\n    wss.on(\"connection\", (ws) => {\n        ws.send(\n            JSON.stringify({\n                action: \"connectinfo\",\n                type: \"uptime\",\n                uptime: process.uptime(),\n            }),\n        );\n\n        ws.send(\n            JSON.stringify({\n                action: \"connectinfo\",\n                type: \"alldata\",\n                global: client.global,\n                client: client.user,\n            }),\n        );\n        if (extraclient != null) {\n            ws.send(\n                JSON.stringify({\n                    action: \"connectinfo\",\n                    type: \"alldata\",\n                    global: extraclient.global,\n                    client: extraclient.user,\n                }),\n            );\n        }\n        ws.send(\n            JSON.stringify({\n                action: \"connectinfo\",\n                type: \"oldlog\",\n                log: client.logger.getSimpleLog(),\n            }),\n        );\n\n        websocketclientsarray.push(ws);\n\n        let botStatus = \"Stopped\";\n        let extrabotStatus = \"Stopped\";\n\n        ws.on(\"message\", (message) => {\n            const data = JSON.parse(message);\n\n            switch (data.action) {\n                case \"start\":\n                    botStatus = \"Running\";\n                    if (client.global.paused) {\n                        if (client.global.captchadetected) {\n                            client.global.captchadetected = false;\n                        }\n                        client.global.paused = false;\n                        client.rpc(\"update\");\n\n                        if (!client.global.temp.started) {\n                            client.global.temp.started = true;\n\n                            setTimeout(() => {\n                                require(\"./mainHandler.js\")(client);\n                            }, 1000);\n                        }\n                    }\n                    broadcast({\n                        action: \"update\",\n                        type: \"botstatus\",\n                        status: botStatus,\n                        global: client.global,\n                    });\n                    break;\n\n                case \"pause\":\n                    botStatus = \"Paused\";\n                    client.global.paused = true;\n                    client.rpc(\"update\");\n                    client.logger.warn(\"WEBUI\", \"Farm\", \"Bot Paused!\");\n                    broadcast({\n                        action: \"update\",\n                        type: \"botstatus\",\n                        status: botStatus,\n                        global: client.global,\n                    });\n                    break;\n\n                case \"resume\":\n                    if (client.global.paused) {\n                        botStatus = \"Running\";\n                        client.global.paused = false;\n                        client.rpc(\"update\");\n                        client.logger.warn(\"WEBUI\", \"Farm\", \"Bot Resuming!\");\n                        broadcast({\n                            action: \"update\",\n                            type: \"botstatus\",\n                            status: botStatus,\n                            global: client.global,\n                        });\n                    }\n                    break;\n                case \"start-extra\":\n                    extrabotStatus = \"Running\";\n                    if (extraclient.global.paused) {\n                        if (extraclient.global.captchadetected) {\n                            extraclient.global.captchadetected = false;\n                        }\n                        extraclient.global.paused = false;\n                        extraclient.rpc(\"update\");\n\n                        if (!extraclient.global.temp.started) {\n                            extraclient.global.temp.started = true;\n\n                            setTimeout(() => {\n                                require(\"./mainHandler.js\")(extraclient);\n                            }, 1000);\n                        }\n                    }\n                    broadcast({\n                        action: \"update\",\n                        type: \"botstatus\",\n                        status: extrabotStatus,\n                        global: extraclient.global,\n                    });\n                    break;\n                case \"pause-extra\":\n                    extrabotStatus = \"Paused\";\n                    extraclient.global.paused = true;\n                    extraclient.rpc(\"update\");\n                    extraclient.logger.warn(\"WEBUI\", \"Farm\", \"Bot Paused!\");\n                    broadcast({\n                        action: \"update\",\n                        type: \"botstatus\",\n                        status: extrabotStatus,\n                        global: extraclient.global,\n                    });\n                    break;\n                case \"resume-extra\":\n                    if (extraclient.global.paused) {\n                        extrabotStatus = \"Running\";\n                        extraclient.global.paused = false;\n                        extraclient.rpc(\"update\");\n                        extraclient.logger.warn(\n                            \"WEBUI\",\n                            \"Farm\",\n                            \"Bot Resuming!\",\n                        );\n                        broadcast({\n                            action: \"update\",\n                            type: \"botstatus\",\n                            status: extrabotStatus,\n                            global: extraclient.global,\n                        });\n                    }\n                    break;\n                case \"reboot\":\n                    client.logger.warn(\"WEBUI\", \"Farm\", \"REBOOTING ...\");\n                    client.destroy();\n                    process.exit(1);\n                    break;\n                default:\n                    ws.send(\n                        JSON.stringify({\n                            status: botStatus,\n                            message: \"Unknown action\",\n                            global: client.global,\n                        }),\n                    );\n                    break;\n            }\n        });\n\n        ws.on(\"close\", () => {\n            websocketclientsarray = websocketclientsarray.filter(\n                (client) => client !== ws,\n            );\n        });\n    });\n}\n\nfunction broadcast(message) {\n    websocketclientsarray.forEach((client) => {\n        if (client.readyState === WebSocket.OPEN) {\n            client.send(JSON.stringify(message));\n        }\n    });\n}\n\nfunction initializeWebSocket(client, extrac = null) {\n    startWebSocketServer(client, extrac);\n}\n\nmodule.exports = { initializeWebSocket, broadcast };\n"
  },
  {
    "path": "webui/assets/css/index.css",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\nbody {\n    background-color: #121212;\n    color: white;\n    font-family: Arial, sans-serif;\n    overflow-x: hidden;\n    margin: 0;\n    background-size: cover;\n    background-repeat: no-repeat;\n    background-position: center;\n}\n\n/* Sidebar styles */\n.sidebar {\n    height: 100vh;\n    width: 250px;\n    position: fixed;\n    top: 0;\n    left: 0;\n    background-color: #2c2f38;\n    padding: 20px;\n    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.3);\n    transition:\n        width 0.3s ease,\n        background-color 0.3s ease;\n    z-index: 5;\n    overflow-y: auto;\n    display: flex;\n    flex-direction: column;\n}\n\n.sidebar.closed {\n    width: 80px;\n    background-color: #333;\n}\n\n.sidebar-top h3 {\n    color: #00c853;\n    font-size: 1.6rem;\n    margin-bottom: 20px;\n    text-transform: uppercase;\n    font-weight: 600;\n    letter-spacing: 1px;\n    transition: opacity 0.3s ease;\n}\n\n.sidebar.closed h3 {\n    opacity: 0;\n}\n\n.sidebar a {\n    color: #e1e1e1;\n    text-decoration: none;\n    display: block;\n    margin: 10px 0;\n    font-size: 1.1rem;\n    padding: 12px;\n    border-radius: 8px;\n    transition:\n        background 0.3s,\n        padding-left 0.3s;\n    position: relative;\n}\n\n.sidebar a i {\n    margin-right: 12px;\n    font-size: 1.2rem;\n    transition: transform 0.3s ease;\n}\n\n/* Active menu item styling */\n.sidebar a.active {\n    background-color: #4c66af;\n    color: white;\n}\n\n.sidebar a.active i {\n    color: white;\n}\n\n.sidebar a:hover {\n    background-color: #444;\n    padding-left: 15px;\n}\n\n.sidebar a:hover i {\n    transform: rotate(15deg);\n}\n\n.sidebar.closed a {\n    padding: 15px;\n    text-align: center;\n    font-size: 1.4rem;\n}\n\n.sidebar h4 {\n    color: #90a4ae;\n    margin-top: 20px;\n    font-size: 1.2rem;\n    font-weight: 500;\n}\n\n/* GitHub and Sponsor logos section */\n.sidebar a i {\n    color: #b0bec5;\n    font-size: 1.3rem;\n}\n\n.sidebar a:hover i {\n    color: #64b5f6;\n}\n\n/* Clock and bottom section */\n.sidebar div {\n    font-size: 0.9rem;\n    color: #78909c;\n    font-weight: 500;\n}\n\n.sidebar div i {\n    margin-right: 6px;\n    color: #4caf50;\n}\n\n.waiting-connection {\n    color: rgb(238, 255, 0);\n    font-size: 16px;\n    font-weight: bold;\n    text-align: center;\n    margin-top: 20px;\n}\n\n.dots::after {\n    content: \"\";\n    display: inline-block;\n    animation: dotsAnimation 1.5s infinite steps(3);\n}\n\n@keyframes dotsAnimation {\n    25% {\n        content: \".\";\n    }\n\n    50% {\n        content: \"..\";\n    }\n\n    75% {\n        content: \"...\";\n    }\n\n    100% {\n        content: \"\";\n    }\n}\n\n.sidebar-footer {\n    display: flex;\n    justify-content: center;\n    gap: 15px;\n    padding-bottom: 10px;\n}\n\n.sidebar-footer a {\n    font-size: 20px;\n    color: white;\n    transition:\n        transform 0.3s ease,\n        color 0.3s ease;\n}\n\n.sidebar-footer a:hover {\n    transform: scale(1.2);\n    color: #ffcc00;\n}\n\n.content {\n    display: flex;\n    flex-direction: column;\n    min-height: 100vh;\n    margin-left: 270px;\n    padding: 20px;\n}\n\n.card {\n    border-radius: 10px;\n    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);\n}\n\n.bg-dark {\n    background-color: #1f1f1f !important;\n}\n\n.bg-success {\n    background-color: #2e7d32 !important;\n}\n\n.text-success {\n    color: #4caf50 !important;\n}\n\n.text-danger {\n    color: #f44336 !important;\n}\n\n/* Add the var here to let it customizable but i was lazy */\n\n.stats-grid {\n    display: grid;\n    grid-template-columns: repeat(4, 1fr);\n    gap: 15px;\n    background-color: var(--stat-grid-color, #121212);\n    padding: 20px;\n    border-radius: 10px;\n    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);\n}\n\n.stat-box {\n    background-color: var(--stat-box-color, #1f1f1f);\n    text-align: center;\n    padding: 20px;\n    border-radius: 10px;\n    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n}\n\n.stat-box.override {\n    grid-column: span 2;\n}\n\n.stat-box .value {\n    font-size: 1.5rem;\n    font-weight: bold;\n    color: #4caf50;\n}\n\n.stat-box .label {\n    font-size: 0.9rem;\n    color: #b0bec5;\n    margin-top: 5px;\n}\n\n.stat-box.highlight {\n    grid-column: span 4;\n    background-color: #1f2b1f;\n    border: 1px solid #4caf50;\n}\n\n.stat-box.highlight .value {\n    font-size: 2rem;\n    color: #4caf50;\n}\n\n.action-btns button {\n    width: 100px;\n    margin: 10px;\n    padding: 12px;\n    font-size: 1.1rem;\n    border-radius: 8px;\n    font-weight: bold;\n    cursor: pointer;\n    transition:\n        background 0.3s,\n        transform 0.2s;\n}\n\n.action-btns .start {\n    background-color: #4caf50;\n    border: none;\n}\n\n.action-btns .stop {\n    background-color: #f44336;\n    border: none;\n}\n\n.action-btns .resume {\n    background-color: #ff9800;\n    border: none;\n}\n\n.action-btns button:hover {\n    transform: scale(1.05);\n}\n\n.sidebar.closed {\n    width: 80px;\n}\n\n.sidebar.closed a span {\n    display: none;\n}\n\n.sidebar.closed a i {\n    font-size: 1.5rem;\n}\n\n.btn-custom {\n    margin: 10px;\n}\n\n/* Settings Styles */\n.settings-section {\n    background-color: #1f1f1f;\n    border-radius: 10px;\n    padding: 20px;\n    margin-bottom: 20px;\n}\n\n.form-check-input {\n    background-color: #333;\n    border-color: #4caf50;\n}\n\n.form-check-input:checked {\n    background-color: #4caf50;\n    border-color: #4caf50;\n}\n\n.nav-tabs {\n    border-bottom: 1px solid #4caf50;\n}\n\n.nav-tabs .nav-link {\n    background-color: #67ca6bb2;\n    color: #fff;\n    border: none;\n}\n\n.nav-tabs .nav-link.active {\n    background-color: #4caf50;\n    color: white;\n    border: none;\n}\n\n.save-btn {\n    margin-left: 10px;\n    padding: 8px 16px;\n    font-size: 14px;\n    font-weight: bold;\n    border-radius: 5px;\n    transition: all 0.3s ease;\n}\n\n.save-btn:hover {\n    background-color: #c82333;\n    transform: scale(1.05);\n}\n\n.form-control,\n.form-select {\n    background-color: #333;\n    border: 1px solid #4caf50;\n    color: white;\n}\n\n.form-control:focus,\n.form-select:focus {\n    background-color: #333;\n    border-color: #4caf50;\n    color: white;\n    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);\n}\n\n/* Text background */\n.toggle-container,\n.color-picker-container {\n    margin: 10px 0;\n    display: flex;\n    align-items: center;\n}\n\n.toggle-container label,\n.color-picker-container label {\n    margin-right: 8px;\n    color: white;\n}\n\n#text-background-toggle,\n#text-background-color {\n    cursor: pointer;\n}\n\n.text-container {\n    display: inline-block;\n    position: relative;\n    padding: 4px;\n    border-radius: 6px;\n    background: var(--text-bg-color, rgba(0, 0, 0, 0));\n    backdrop-filter: none;\n}\n\n.text-container.blur {\n    background: rgba(0, 0, 0, 0);\n    backdrop-filter: blur(var(--blur-intensity, 8px));\n}\n\n/* Background item */\n.background-list {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 10px;\n}\n\n.background-item {\n    width: 240px;\n    height: 160px;\n    object-fit: cover;\n    cursor: pointer;\n    border-radius: 5px;\n    transition: transform 0.2s ease-in-out;\n}\n\n.background-item:hover {\n    transform: scale(1.1);\n}\n\n.background-video {\n    width: 240px;\n    height: 160px;\n    object-fit: cover;\n}\n\n.log-container {\n    font-family: Consolas, \"Courier New\", monospace;\n    width: 80vw;\n    height: 70vh;\n    border-radius: 16px;\n    background: rgb(0, 0, 0);\n    padding: 10px;\n    overflow-y: auto;\n    word-wrap: break-word;\n    white-space: pre-wrap;\n}\n\n.info-card {\n    width: 25vw;\n    padding: 16px;\n    gap: 8px;\n    background-color: var(--info-out-color, #121212);\n    display: flex;\n    justify-content: space-between;\n    flex-direction: column;\n    align-items: left;\n    border-radius: 10px;\n    margin-bottom: 5px;\n    min-height: 100%;\n}\n\n.info-card.blur {\n    background: rgba(0, 0, 0, 0);\n    backdrop-filter: blur(var(--info-blur, 4px));\n}\n\n.info-card-data {\n    height: 20%;\n    display: inline-block;\n    position: relative;\n    padding: 4px;\n    border-radius: 6px;\n    background: var(--info-in-color, #1f1f1f);\n    backdrop-filter: none;\n}\n\n.info-card-data.blur {\n    background: rgba(0, 0, 0, 0);\n    backdrop-filter: blur(var(--info-data-blur, 8px));\n}\n\n.quest-card {\n    width: 25vw;\n    padding: 24px;\n    gap: 20px;\n    background-color: var(--quest-out-color, #121212);\n    display: flex;\n    justify-content: space-between;\n    flex-direction: column;\n    align-items: left;\n    border-radius: 10px;\n    margin-bottom: 5px;\n    min-height: 100%;\n}\n\n.quest-card.blur {\n    background: rgba(0, 0, 0, 0);\n    backdrop-filter: blur(var(--quest-blur, 4px));\n}\n\n.quest-card-data {\n    height: 30%;\n    display: inline-block;\n    position: relative;\n    padding: 4px;\n    border-radius: 6px;\n    background: var(--quest-in-color, #1f1f1f);\n    backdrop-filter: none;\n}\n\n.quest-card-data.blur {\n    background: rgba(0, 0, 0, 0);\n    backdrop-filter: blur(var(--quest-data-blur, 8px));\n}\n\n.sidebar-top {\n    margin-top: -20px;\n    margin-left: -25px;\n    padding-top: 20px;\n    padding-left: 25px;\n    padding-bottom: 15px;\n    height: 100px;\n    width: 270px;\n    background-color: #1c1e24;\n    cursor: pointer;\n    position: absolute;\n    flex-shrink: 0;\n    z-index: 6;\n}\n\n.sidebar-end {\n    background-color: #1c1e24;\n    height: 160px;\n    width: 250px;\n    position: sticky;\n    position: inherit;\n    bottom: 0;\n    left: 0;\n    flex-shrink: 0;\n}\n\n.big-box {\n    display: flex;\n    gap: 16px;\n    align-items: stretch;\n    padding-bottom: 70px;\n}\n\n.small-box {\n    display: flex;\n    flex-direction: column;\n    align-items: start;\n}\n\n.another-big-box {\n    display: flex;\n    flex-direction: row;\n    gap: 16px;\n    align-items: start;\n}\n\n.another-small-box {\n    display: flex;\n    align-items: center;\n}\n\n/* Maybe it not too nessesary */\n\n@media (max-width: 900px) {\n    .big-box {\n        flex-direction: column;\n        gap: 20px;\n    }\n\n    .info-card {\n        width: 90vw;\n    }\n\n    .quest-card {\n        width: 90vw;\n    }\n\n    .sidebar {\n        height: 100vh;\n        overflow-y: auto;\n    }\n\n    .content {\n        margin-top: 100px;\n    }\n\n    .sidebar-top {\n        height: 90px;\n        width: 100%;\n        position: fixed;\n        left: 0;\n        margin-left: 0px;\n        padding-top: 30px;\n    }\n\n    .stats-grid {\n        padding: 10px;\n    }\n\n    .stat-box {\n        padding: 10px;\n    }\n}\n"
  },
  {
    "path": "webui/assets/css/notification.css",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n.notification-container {\n    position: fixed;\n    top: 20px;\n    left: 50%;\n    transform: translateX(-50%);\n    display: flex;\n    flex-direction: column-reverse;\n    gap: 10px;\n    z-index: 9999;\n}\n\n.notification {\n    background-color: #28a745;\n    color: white;\n    padding: 15px 30px;\n    font-size: 16px;\n    border-radius: 15px; /* Köşeleri yuvarlak */\n    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n    opacity: 0;\n    transition: all 0.5s ease-in-out;\n    width: 300px;\n    text-align: center;\n}\n\n.notification.show {\n    opacity: 1;\n}\n\n.notification.error {\n    background-color: #dc3545;\n}\n\n.notification.warning {\n    background-color: #b2651b;\n}\n\n.notification.info {\n    background-color: #17a2b8;\n}\n"
  },
  {
    "path": "webui/assets/css/popup.css",
    "content": "/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\n.popup {\n    position: fixed;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n    background-color: #121212;\n    border-radius: 8px;\n    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);\n    max-width: 600px;\n    width: 90%;\n    display: none;\n    z-index: 1000;\n}\n\n.popup .popup-header {\n    padding: 15px 20px;\n    border-bottom: 1px solid #eee;\n    font-size: 18px;\n    font-weight: bold;\n}\n\n.popup .popup-body {\n    padding: 20px;\n}\n\n.popup .popup-footer {\n    padding: 15px 20px;\n    border-top: 1px solid #eee;\n    text-align: right;\n}\n\n.popup .background-option label {\n    display: block;\n    margin-bottom: 10px;\n    font-weight: bold;\n}\n\n.popup .background-list {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n    gap: 15px;\n}\n\n.popup .background-item {\n    width: 100%;\n    height: 80px;\n    object-fit: cover;\n    border-radius: 4px;\n    cursor: pointer;\n    border: 2px solid transparent;\n    transition: all 0.3s ease;\n}\n\n.popup .background-item:hover {\n    transform: scale(1.05);\n}\n\n.popup .background-item.selected {\n    border-color: #007bff;\n}\n\n.popup .btn {\n    padding: 8px 16px;\n    border-radius: 4px;\n    border: none;\n    cursor: pointer;\n    font-size: 14px;\n    transition: all 0.3s ease;\n}\n\n.popup .btn-secondary {\n    background-color: #6c757d;\n    color: white;\n}\n\n.popup .btn-secondary:hover {\n    background-color: #5a6268;\n}\n"
  },
  {
    "path": "webui/assets/js/index.js",
    "content": "/* eslint-disable no-undef */\n/* eslint-disable no-unused-vars */\n\n/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\ndocument.addEventListener(\"DOMContentLoaded\", async () => {\n    await getconfig();\n});\n\nasync function getconfig() {\n    try {\n        const response = await fetch(\"/api/get-config\");\n\n        if (!response.ok) {\n            throw new Error(\"Network response was not ok\");\n        }\n\n        const config = await response.json();\n\n        // Nested objelerdeki değerleri bulmak için recursive fonksiyon\n        function getValueFromPath(obj, path) {\n            return path.split(\"-\").reduce((current, key) => {\n                return current && current[key] !== undefined\n                    ? current[key]\n                    : undefined;\n            }, obj);\n        }\n\n        // Belirtilen div'lerdeki form elementlerini bul\n        const containers = [\n            \"general-settings-content\",\n            \"settings-content\",\n            \"settings-content-extra\",\n        ];\n\n        containers.forEach((containerId) => {\n            const container = document.getElementById(containerId);\n            if (!container) return;\n\n            // Her container içindeki input ve select elementlerini bul\n            const elements = container.querySelectorAll(\"input, select\");\n\n            elements.forEach((element) => {\n                const value = getValueFromPath(config, element.id);\n\n                if (value !== undefined) {\n                    if (element.type === \"checkbox\") {\n                        element.checked = value;\n                    } else if (\n                        element.type === \"number\" ||\n                        element.type === \"text\" ||\n                        element.type === \"string\" ||\n                        element.type === \"password\"\n                    ) {\n                        element.value = value;\n                    } else if (element.tagName.toLowerCase() === \"select\") {\n                        // Select elementi için özel işlem\n                        const optionExists = Array.from(element.options).some(\n                            (option) => {\n                                // Config'den gelen değer option'ın value'su ile eşleşiyorsa\n                                if (option.value === value) {\n                                    element.value = value;\n                                    return true;\n                                }\n                                return false;\n                            },\n                        );\n\n                        // Eğer config'den gelen değer option'larda yoksa ilk option'ı seç\n                        if (!optionExists && element.options.length > 0) {\n                            element.value = element.options[0].value;\n                        }\n                    }\n                }\n            });\n        });\n    } catch (error) {\n        console.error(\"Error fetching config:\", error);\n    }\n}\n\nfunction showHome(menuType) {\n    if (menuType === \"main\") {\n        activateMenu(\"home-link\");\n    } else if (menuType === \"extra\") {\n        activateMenu(\"home-link-extra\");\n    }\n\n    if (menuType === \"main\") {\n        document.getElementById(\"home-content\").style.display = \"block\";\n        document.getElementById(\"settings-content\").style.display = \"none\";\n        document.getElementById(\"home-content-extra\").style.display = \"none\";\n        document.getElementById(\"settings-content-extra\").style.display =\n            \"none\";\n        document.getElementById(\"general-settings-content\").style.display =\n            \"none\";\n        document.getElementById(\"webui-settings\").style.display = \"none\";\n        document.getElementById(\"log-section\").style.display = \"none\";\n    } else if (menuType === \"extra\") {\n        document.getElementById(\"home-content-extra\").style.display = \"block\";\n        document.getElementById(\"settings-content-extra\").style.display =\n            \"none\";\n        document.getElementById(\"home-content\").style.display = \"none\";\n        document.getElementById(\"settings-content\").style.display = \"none\";\n        document.getElementById(\"general-settings-content\").style.display =\n            \"none\";\n        document.getElementById(\"webui-settings\").style.display = \"none\";\n        document.getElementById(\"log-section\").style.display = \"none\";\n    }\n}\n\nasync function showSettings(menuType) {\n    await getconfig();\n    if (menuType === \"main\") {\n        activateMenu(\"settings-link\");\n    } else if (menuType === \"extra\") {\n        activateMenu(\"settings-link-extra\");\n    } else if (menuType === \"general\") {\n        activateMenu(\"general-settings-link\");\n    }\n\n    if (menuType === \"main\") {\n        document.getElementById(\"settings-content\").style.display = \"block\";\n        document.getElementById(\"home-content\").style.display = \"none\";\n        document.getElementById(\"home-content-extra\").style.display = \"none\";\n        document.getElementById(\"settings-content-extra\").style.display =\n            \"none\";\n        document.getElementById(\"general-settings-content\").style.display =\n            \"none\";\n        document.getElementById(\"webui-settings\").style.display = \"none\";\n        document.getElementById(\"log-section\").style.display = \"none\";\n    } else if (menuType === \"extra\") {\n        document.getElementById(\"settings-content-extra\").style.display =\n            \"block\";\n        document.getElementById(\"home-content-extra\").style.display = \"none\";\n        document.getElementById(\"settings-content\").style.display = \"none\";\n        document.getElementById(\"home-content\").style.display = \"none\";\n        document.getElementById(\"general-settings-content\").style.display =\n            \"none\";\n        document.getElementById(\"webui-settings\").style.display = \"none\";\n        document.getElementById(\"log-section\").style.display = \"none\";\n    } else if (menuType === \"general\") {\n        document.getElementById(\"general-settings-content\").style.display =\n            \"block\";\n        document.getElementById(\"settings-content-extra\").style.display =\n            \"none\";\n        document.getElementById(\"home-content-extra\").style.display = \"none\";\n        document.getElementById(\"settings-content\").style.display = \"none\";\n        document.getElementById(\"home-content\").style.display = \"none\";\n        document.getElementById(\"webui-settings\").style.display = \"none\";\n        document.getElementById(\"log-section\").style.display = \"none\";\n    }\n}\n\nfunction openWebUISettings() {\n    activateMenu(\"webui-settings-link\");\n    document.getElementById(\"webui-settings\").style.display = \"block\";\n    document.getElementById(\"home-content\").style.display = \"none\";\n    document.getElementById(\"home-content-extra\").style.display = \"none\";\n    document.getElementById(\"settings-content\").style.display = \"none\";\n    document.getElementById(\"settings-content-extra\").style.display = \"none\";\n    document.getElementById(\"general-settings-content\").style.display = \"none\";\n    document.getElementById(\"log-section\").style.display = \"none\";\n}\n\nfunction showrebootalertPopup() {\n    document.getElementById(\"reboot-popup\").style.display = \"block\";\n}\n\nfunction closerebootalertPopup() {\n    document.getElementById(\"reboot-popup\").style.display = \"none\";\n}\n\nfunction animateTitle(text) {\n    let textToAnimate = text;\n    let currentPosition = 0;\n    let directionForward = true;\n    function updateTitle() {\n        try {\n            const enableAnimate =\n                localStorage.getItem(\"titleAnimation\") === \"true\";\n            if (!enableAnimate) {\n                document.title = text;\n                return;\n            }\n            if (currentPosition === textToAnimate.length) {\n                directionForward = false;\n            } else if (currentPosition === 0) {\n                directionForward = true;\n            }\n\n            let displayedText = directionForward\n                ? textToAnimate.slice(0, currentPosition + 1)\n                : textToAnimate.slice(0, currentPosition - 1);\n\n            document.title = displayedText;\n\n            currentPosition = directionForward\n                ? currentPosition + 1\n                : currentPosition - 1;\n\n            setTimeout(updateTitle, 380);\n        } catch (e) {\n            console.log(e);\n        }\n    }\n\n    updateTitle();\n}\n\nfunction activateMenu(linkId) {\n    const menuLinks = document.querySelectorAll(\n        \"#main-menu a, #extra-menu a, #general-menu a, #logging a\",\n    );\n    menuLinks.forEach((item) => {\n        item.classList.remove(\"active\");\n    });\n\n    const link = document.querySelector(`#${linkId}`);\n    link.classList.add(\"active\");\n}\n\nfunction showNotification(message, type = \"success\") {\n    const notificationContainer = document.getElementById(\n        \"notification-container\",\n    );\n\n    const notification = document.createElement(\"div\");\n    notification.classList.add(\"notification\", \"show\");\n    notification.classList.add(type);\n\n    notification.innerHTML = message;\n    notificationContainer.appendChild(notification);\n\n    setTimeout(() => {\n        closeNotification(notification);\n    }, 5000);\n}\n\nfunction closeNotification(notification) {\n    notification.classList.remove(\"show\");\n    setTimeout(() => {\n        notification.remove();\n    }, 500);\n}\n\nfunction showlog() {\n    activateMenu(\"logging-link\");\n    document.getElementById(\"log-section\").style.display = \"block\";\n    document.getElementById(\"webui-settings\").style.display = \"none\";\n    document.getElementById(\"home-content\").style.display = \"none\";\n    document.getElementById(\"home-content-extra\").style.display = \"none\";\n    document.getElementById(\"settings-content\").style.display = \"none\";\n    document.getElementById(\"settings-content-extra\").style.display = \"none\";\n    document.getElementById(\"general-settings-content\").style.display = \"none\";\n}\n\nfunction toggleMenu() {\n    console.log(\"ced\");\n    let hasExtra = false;\n    if (\n        document.getElementById(\"usernick-extra\").textContent !=\n        \"çıkaramadım abi kimsin sen\"\n    )\n        hasExtra = true;\n\n    if (window.innerWidth <= 900) {\n        if (\n            document.getElementById(\"sidebar-general-section\").style.display ==\n            \"block\"\n        ) {\n            document.getElementById(\"sidebar-general-section\").style.display =\n                \"none\";\n            document.getElementById(\"sidebar-main-section\").style.display =\n                \"none\";\n            document.getElementById(\"sidebar-extra-section\").style.display =\n                \"none\";\n            document.getElementById(\"sidebar-end\").style.display = \"none\";\n            document.getElementById(\"love\").style.display = \"none\";\n            document.getElementById(\"thesidebar\").style.height = \"auto\";\n            document.getElementById(\"connected\").style.marginLeft = \"0px\";\n        } else {\n            document.getElementById(\"sidebar-general-section\").style.display =\n                \"block\";\n            document.getElementById(\"sidebar-main-section\").style.display =\n                \"block\";\n            if (hasExtra)\n                document.getElementById(\"sidebar-extra-section\").style.display =\n                    \"block\";\n            document.getElementById(\"sidebar-end\").style.display = \"block\";\n            document.getElementById(\"love\").style.display = \"block\";\n            document.getElementById(\"thesidebar\").style.height = \"100vh\";\n            document.getElementById(\"connected\").style.marginLeft = \"270px\";\n        }\n    } else if (\n        document.getElementById(\"sidebar-general-section\").style.display !=\n        \"block\"\n    ) {\n        document.getElementById(\"sidebar-general-section\").style.display =\n            \"block\";\n        document.getElementById(\"sidebar-main-section\").style.display = \"block\";\n        if (hasExtra)\n            document.getElementById(\"sidebar-extra-section\").style.display =\n                \"block\";\n        document.getElementById(\"sidebar-end\").style.display = \"block\";\n        document.getElementById(\"love\").style.display = \"block\";\n        document.getElementById(\"thesidebar\").style.height = \"100vh\";\n        document.getElementById(\"connected\").style.marginLeft = \"270px\";\n    }\n}\n"
  },
  {
    "path": "webui/assets/js/savesettings.js",
    "content": "/* eslint-disable no-undef */\n\n/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\ndocument.getElementById(\"general-saveBtn\").addEventListener(\"click\", () => {\n    const formData = {};\n    document\n        .querySelectorAll(\"#general-settings-content .form-check-input\")\n        .forEach((input) => {\n            formData[input.id] = input.checked;\n        });\n\n    document\n        .querySelectorAll(\"#general-settings-content select\")\n        .forEach((select) => {\n            formData[select.id] = select.value;\n        });\n\n    document\n        .querySelectorAll(\n            \"#general-settings-content input[type='text'], #general-settings-content input[type='string'], #general-settings-content input[type='password'], #general-settings-content input[type='number']\",\n        )\n        .forEach((input) => {\n            formData[input.id] = input.value;\n        });\n\n    console.log(\"Gönderilecek Veri:\", formData);\n    fetch(\"/save-settings\", {\n        method: \"POST\",\n        headers: {\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify(formData),\n    })\n        .then((response) => response.json())\n        .then((data) => {\n            console.log(\"server answer:\", data);\n            showNotification(data.message, data.type);\n        })\n        .catch((error) => {\n            console.error(\"Error:\", error);\n            showNotification(\n                \"An error occurred. See browser console for more details.\",\n                \"alert\",\n            );\n        });\n});\n\ndocument.getElementById(\"main-saveBtn\").addEventListener(\"click\", () => {\n    const formData = {};\n    document\n        .querySelectorAll(\"#settings-content .form-check-input\")\n        .forEach((input) => {\n            formData[input.id] = input.checked;\n        });\n\n    document.querySelectorAll(\"#settings-content select\").forEach((select) => {\n        formData[select.id] = select.value;\n    });\n\n    document\n        .querySelectorAll(\n            \"#settings-content input[type='text'], #settings-content input[type='string'], #settings-content input[type='password'], #settings-content input[type='number']\",\n        )\n        .forEach((input) => {\n            formData[input.id] = input.value;\n        });\n\n    console.log(\"Gönderilecek Veri:\", formData);\n    fetch(\"/save-settings\", {\n        method: \"POST\",\n        headers: {\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify(formData),\n    })\n        .then((response) => response.json())\n        .then((data) => {\n            console.log(\"server answer:\", data);\n            showNotification(data.message, data.type);\n        })\n        .catch((error) => {\n            console.error(\"Error:\", error);\n            showNotification(\n                \"An error occurred. See browser console for more details.\",\n                \"alert\",\n            );\n        });\n});\ndocument.getElementById(\"extra-saveBtn\").addEventListener(\"click\", () => {\n    const formData = {};\n    document\n        .querySelectorAll(\"#settings-content-extra .form-check-input\")\n        .forEach((input) => {\n            formData[input.id] = input.checked;\n        });\n\n    document\n        .querySelectorAll(\"#settings-content-extra select\")\n        .forEach((select) => {\n            formData[select.id] = select.value;\n        });\n\n    document\n        .querySelectorAll(\n            \"#settings-content-extra input[type='text'], #settings-content-extra input[type='string'], #settings-content-extra input[type='password'], #settings-content-extra input[type='number']\",\n        )\n        .forEach((input) => {\n            formData[input.id] = input.value;\n        });\n\n    console.log(\"Gönderilecek Veri:\", formData);\n    fetch(\"/save-settings\", {\n        method: \"POST\",\n        headers: {\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify(formData),\n    })\n        .then((response) => response.json())\n        .then((data) => {\n            console.log(\"server answer:\", data);\n            showNotification(data.message, data.type);\n        })\n        .catch((error) => {\n            console.error(\"Error:\", error);\n            showNotification(\n                \"An error occurred. See browser console for more details.\",\n                \"alert\",\n            );\n        });\n});\n"
  },
  {
    "path": "webui/assets/js/webuisettings.js",
    "content": "/* eslint-disable no-undef */\n/* eslint-disable no-unused-vars */\n\n/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n    const savedBackground = localStorage.getItem(\"selectedBackground\");\n    if (savedBackground) {\n        const isVideo = savedBackground.endsWith(\".mp4\");\n\n        if (isVideo) {\n            let videoBackground = document.getElementById(\"background-video\");\n            if (!videoBackground) {\n                videoBackground = document.createElement(\"video\");\n                videoBackground.id = \"background-video\";\n                videoBackground.style.cssText = `\n                    position: fixed;\n                    top: 0;\n                    left: 0;\n                    width: 100%;\n                    height: 100%;\n                    object-fit: cover;\n                    z-index: -1;\n                `;\n                videoBackground.autoplay = true;\n                videoBackground.loop = true;\n                videoBackground.muted = true;\n                document.body.appendChild(videoBackground);\n            }\n            videoBackground.src = savedBackground;\n            videoBackground.style.display = \"block\";\n            document.body.style.backgroundImage = \"none\";\n        } else {\n            const videoBackground = document.getElementById(\"background-video\");\n            if (videoBackground) {\n                videoBackground.style.display = \"none\";\n            }\n            document.body.style.backgroundImage = `url(${savedBackground})`;\n            document.body.style.backgroundSize = \"cover\";\n            document.body.style.backgroundPosition = \"center\";\n            document.body.style.backgroundRepeat = \"no-repeat\";\n        }\n    }\n\n    const backgroundElements = document.querySelectorAll(\".background-item\");\n    backgroundElements.forEach((element) => {\n        if (element.src === savedBackground) {\n            element.classList.add(\"selected\");\n        } else {\n            element.classList.remove(\"selected\");\n        }\n    });\n\n    const textBackgroundEnabled =\n        localStorage.getItem(\"textBackground\") === \"true\";\n    const savedColor =\n        localStorage.getItem(\"textBackgroundColor\") || \"rgba(0, 0, 0, 0.6)\";\n    const isSemiTrans = localStorage.getItem(\"semiTransparent\") === \"true\";\n    const isBlur = localStorage.getItem(\"blurTextBackground\") === \"true\";\n\n    document.getElementById(\"text-background-toggle\").checked =\n        textBackgroundEnabled;\n    document.getElementById(\"semi-trans-toggle\").checked = isSemiTrans;\n    document.getElementById(\"blur-bg-toggle\").checked = isBlur;\n    document.getElementById(\"text-background-color\").value = savedColor;\n\n    if (textBackgroundEnabled) {\n        applyTextBackground();\n    } else {\n        removeTextBackground();\n    }\n\n    const isAnimateTitle = localStorage.getItem(\"titleAnimation\") === \"true\";\n    if (isAnimateTitle) changeTitle();\n    document.getElementById(\"title-animation-toggle\").checked = isAnimateTitle;\n\n    const customTitle = localStorage.getItem(\"customPageTitle\");\n    if (customTitle != \"\") {\n        changeTitle();\n        document.getElementById(\"custom-title\").value = customTitle;\n    }\n});\n\ndocument.getElementById(\"save-title-btn\").addEventListener(\"click\", () => {\n    let customTitle = document.getElementById(\"custom-title\").value;\n    if (customTitle != \"\") localStorage.setItem(\"customPageTitle\", customTitle);\n    changeTitle();\n});\n\ndocument.getElementById(\"reset-title-btn\").addEventListener(\"click\", () => {\n    document.getElementById(\"custom-title\").value = \"❤️ OwO Farm Bot Stable ❤️\";\n    localStorage.setItem(\"customPageTitle\", \"❤️ OwO Farm Bot Stable ❤️\");\n    changeTitle();\n});\n\nfunction selectBackground(element, src) {\n    const allItems = document.querySelectorAll(\".background-item\");\n    allItems.forEach((item) => item.classList.remove(\"selected\"));\n\n    element.classList.add(\"selected\");\n\n    const isVideo = src.endsWith(\".mp4\");\n    const body = document.body;\n\n    if (isVideo) {\n        body.style.backgroundImage = \"none\";\n        let videoBackground = document.getElementById(\"background-video\");\n\n        if (!videoBackground) {\n            videoBackground = document.createElement(\"video\");\n            videoBackground.id = \"background-video\";\n            videoBackground.style.cssText = `\n                position: fixed;\n                top: 0;\n                left: 0;\n                width: 100%;\n                height: 100%;\n                object-fit: cover;\n                z-index: -1;\n            `;\n            videoBackground.autoplay = true;\n            videoBackground.loop = true;\n            videoBackground.muted = true;\n            document.body.appendChild(videoBackground);\n        }\n\n        videoBackground.src = src;\n        videoBackground.style.display = \"block\";\n    } else {\n        const videoBackground = document.getElementById(\"background-video\");\n        if (videoBackground) {\n            videoBackground.style.display = \"none\";\n        }\n        body.style.backgroundImage = `url(${src})`;\n        body.style.backgroundSize = \"cover\";\n        body.style.backgroundPosition = \"center\";\n        body.style.backgroundRepeat = \"no-repeat\";\n    }\n\n    localStorage.setItem(\"selectedBackground\", src);\n}\n\nfunction toggleTextBackground() {\n    const isChecked = document.getElementById(\"text-background-toggle\").checked;\n    localStorage.setItem(\"textBackground\", isChecked ? \"true\" : \"false\");\n    if (isChecked) {\n        applyTextBackground();\n    } else {\n        removeTextBackground();\n    }\n}\n\nfunction toggleSemiTransparent() {\n    const isChecked = document.getElementById(\"semi-trans-toggle\").checked;\n    if (isChecked) {\n        document.getElementById(\"blur-bg-toggle\").checked = false;\n        if (localStorage.getItem(\"blurTextBackground\") === \"true\")\n            localStorage.setItem(\"blurTextBackground\", \"false\");\n    }\n    localStorage.setItem(\"semiTransparent\", isChecked ? \"true\" : \"false\");\n    applyTextBackground();\n}\n\nfunction toggleBlurTextBackground() {\n    const isChecked = document.getElementById(\"blur-bg-toggle\").checked;\n    if (isChecked) {\n        document.getElementById(\"semi-trans-toggle\").checked = false;\n        if (localStorage.getItem(\"semiTransparent\") === \"true\")\n            localStorage.setItem(\"semiTransparent\", \"false\");\n    }\n    localStorage.setItem(\"blurTextBackground\", isChecked ? \"true\" : \"false\");\n    applyTextBackground();\n}\n\nfunction applyTextBackground() {\n    const isChecked = localStorage.getItem(\"textBackground\") === \"true\";\n    const isBlur = localStorage.getItem(\"blurTextBackground\") === \"true\";\n    const isSemiTrans = localStorage.getItem(\"semiTransparent\") === \"true\";\n    const blurIntensity = localStorage.getItem(\"blurIntensity\") || \"8px\";\n\n    let color =\n        localStorage.getItem(\"textBackgroundColor\") || \"rgba(0, 0, 0, 0.6)\";\n    if (isSemiTrans) {\n        color = convertToSemiTransparent(color);\n    }\n\n    document.querySelectorAll(\".text-container\").forEach((container) => {\n        if (isChecked) {\n            container.style.backgroundColor = isBlur\n                ? \"rgba(0, 0, 0, 0.3)\"\n                : color;\n            container.style.backdropFilter = isBlur\n                ? `blur(${blurIntensity})`\n                : \"none\";\n            container.classList.toggle(\"blur\", isBlur);\n        } else {\n            container.style.backgroundColor = \"transparent\";\n            container.style.backdropFilter = \"none\";\n            container.classList.toggle(\"blur\", isBlur);\n        }\n    });\n\n    document.documentElement.style.setProperty(\n        \"--blur-intensity\",\n        blurIntensity,\n    );\n    document.documentElement.style.setProperty(\"--text-bg-color\", color);\n}\n\nfunction removeTextBackground() {\n    const elements = document.querySelectorAll(\".text-container\");\n    elements.forEach((el) => {\n        el.style.backgroundColor = \"transparent\";\n        el.style.backdropFilter = \"none\";\n        el.classList.remove(\"blur\");\n    });\n}\n\nfunction changeTextBackgroundColor(color) {\n    const isSemiTrans = localStorage.getItem(\"semiTransparent\") === \"true\";\n    if (isSemiTrans) {\n        color = convertToSemiTransparent(color);\n    }\n\n    localStorage.setItem(\"textBackgroundColor\", color);\n    applyTextBackground();\n}\n\nfunction convertToSemiTransparent(color) {\n    if (color.startsWith(\"rgba\")) return color;\n    if (color.startsWith(\"#\")) {\n        let r = parseInt(color.slice(1, 3), 16);\n        let g = parseInt(color.slice(3, 5), 16);\n        let b = parseInt(color.slice(5, 7), 16);\n        return `rgba(${r}, ${g}, ${b}, 0.6)`;\n    }\n    return color.replace(\"rgb\", \"rgba\").replace(\")\", \", 0.6)\");\n}\n\nfunction updateBlurIntensity(value) {\n    localStorage.setItem(\"blurIntensity\", value + \"px\");\n    document.getElementById(\"blur-value\").textContent = value + \"px\";\n    applyTextBackground();\n}\n\nfunction toggleTitleAnimation() {\n    const isEnabled = document.getElementById(\"title-animation-toggle\").checked;\n    localStorage.setItem(\"titleAnimation\", isEnabled ? \"true\" : \"false\");\n\n    if (isEnabled) changeTitle();\n}\n\nfunction changeTitle() {\n    const customTitle = localStorage.getItem(\"customPageTitle\");\n    let title;\n    if (customTitle == \"\" || customTitle == null)\n        title = \"❤️ OwO Farm Bot Stable ❤️\";\n    else title = customTitle;\n\n    animateTitle(title);\n}\n"
  },
  {
    "path": "webui/assets/js/ws.js",
    "content": "/* eslint-disable no-undef */\n/* eslint-disable no-unused-vars */\n\n/*\n * OwO Farm Bot Stable\n * Copyright (C) 2024 Mido\n * This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\n * For more information, see README.md and LICENSE\n */\n\nlet socket;\nlet startTime = null;\n\nfunction connectWebSocket() {\n    socket = new WebSocket(`ws://${window.location.host}/ws`); //! buna configden nasıl port vereyim AMK\n\n    socket.onopen = function () {\n        document.getElementById(\"ws-status\").textContent = \"Connected\";\n        document.getElementById(\"ws-status-extra\").textContent = \"Connected\";\n        document.getElementById(\"connected\").style = \"display: block;\";\n        document.getElementById(\"waitingforconnection\").style =\n            \"display: none;\";\n        console.log(\"WebSocket bağlantısı başarılı.\");\n    };\n\n    socket.onmessage = function (event) {\n        const data = JSON.parse(event.data);\n        console.log(data);\n\n        if (data.action == \"connectinfo\") {\n            if (data.type == \"uptime\") {\n                startTime = new Date() - data.uptime * 1000;\n                setInterval(updateUptime, 1000);\n            }\n            if (data.global?.type == \"Extra\") {\n                document.getElementById(\"sidebar-extra-section\").style.display =\n                    \"block\";\n            }\n            if (data.type == \"oldlog\") {\n                const t = data.log;\n                const logContainer = document.getElementById(\"logContainer\");\n                for (const log of t) {\n                    const raw = JSON.stringify(log);\n                    const logMessage = JSON.parse(raw);\n                    const logEntry = document.createElement(\"div\");\n                    logEntry.textContent = logMessage;\n                    logContainer.appendChild(logEntry);\n                }\n            }\n            if (data.global?.type == \"Main\" && data.type == \"alldata\") {\n                document.getElementById(\"usernick\").textContent =\n                    `${data.client.globalName}`;\n\n                document.getElementById(\"username\").textContent =\n                    `${data.client.username}`;\n\n                document.getElementById(\"bot-status\").textContent =\n                    `${data.global.paused ? \"Paused\" : \"Running\"}`;\n\n                document.getElementById(\"hunt-value\").innerHTML =\n                    `${data.global.total.hunt}`;\n\n                document.getElementById(\"battle-value\").innerHTML =\n                    `${data.global.total.battle}`;\n\n                document.getElementById(\"pray-value\").innerHTML =\n                    `${data.global.total.pray}`;\n\n                document.getElementById(\"curse-value\").innerHTML =\n                    `${data.global.total.curse}`;\n\n                document.getElementById(\"huntbot-value\").innerHTML =\n                    `${data.global.total.huntbot}`;\n\n                document.getElementById(\"vote-value\").innerHTML =\n                    `${data.global.total.vote}`;\n\n                document.getElementById(\"giveaway-value\").innerHTML =\n                    `${data.global.total.giveaway}`;\n\n                document.getElementById(\"captcha-value\").innerHTML =\n                    `${data.global.total.captcha}`;\n\n                document.getElementById(\"solvedcaptcha-value\").innerHTML =\n                    `${data.global.total.solvedcaptcha}`;\n\n                document.getElementById(\"slot-value\").innerHTML =\n                    `${data.global.gamble.slot}`;\n\n                document.getElementById(\"coinflip-value\").innerHTML =\n                    `${data.global.gamble.coinflip}`;\n\n                document.getElementById(\"cowoncywon-value\").innerHTML =\n                    `${data.global.gamble.cowoncywon}`;\n            }\n            if (data.global?.type == \"Extra\" && data.type == \"alldata\") {\n                document.getElementById(\"usernick-extra\").textContent =\n                    `${data.client.globalName}`;\n\n                document.getElementById(\"username-extra\").textContent =\n                    `${data.client.username}`;\n\n                document.getElementById(\"bot-status-extra\").textContent =\n                    `${data.global.paused ? \"Paused\" : \"Running\"}`;\n\n                document.getElementById(\"hunt-value-extra\").innerHTML =\n                    `${data.global.total.hunt}`;\n\n                document.getElementById(\"battle-value-extra\").innerHTML =\n                    `${data.global.total.battle}`;\n\n                document.getElementById(\"pray-value-extra\").innerHTML =\n                    `${data.global.total.pray}`;\n\n                document.getElementById(\"curse-value-extra\").innerHTML =\n                    `${data.global.total.curse}`;\n\n                document.getElementById(\"huntbot-value-extra\").innerHTML =\n                    `${data.global.total.huntbot}`;\n\n                document.getElementById(\"vote-value-extra\").innerHTML =\n                    `${data.global.total.vote}`;\n\n                document.getElementById(\"giveaway-value-extra\").innerHTML =\n                    `${data.global.total.giveaway}`;\n\n                document.getElementById(\"captcha-value-extra\").innerHTML =\n                    `${data.global.total.captcha}`;\n\n                document.getElementById(\"solvedcaptcha-value-extra\").innerHTML =\n                    `${data.global.total.solvedcaptcha}`;\n\n                document.getElementById(\"slot-value-extra\").innerHTML =\n                    `${data.global.gamble.slot}`;\n\n                document.getElementById(\"coinflip-value-extra\").innerHTML =\n                    `${data.global.gamble.coinflip}`;\n\n                document.getElementById(\"cowoncywon-value-extra\").innerHTML =\n                    `${data.global.gamble.cowoncywon}`;\n            }\n        }\n\n        if (data.global?.type == \"Main\") {\n            if (data.action == \"update\") {\n                if (data.type == \"botstatus\") {\n                    document.getElementById(\"bot-status\").textContent =\n                        `${data.status}`;\n                }\n\n                document.getElementById(\"hunt-value\").innerHTML =\n                    `${data.global.total.hunt}`;\n\n                document.getElementById(\"battle-value\").innerHTML =\n                    `${data.global.total.battle}`;\n\n                document.getElementById(\"pray-value\").innerHTML =\n                    `${data.global.total.pray}`;\n\n                document.getElementById(\"curse-value\").innerHTML =\n                    `${data.global.total.curse}`;\n\n                document.getElementById(\"huntbot-value\").innerHTML =\n                    `${data.global.total.huntbot}`;\n\n                document.getElementById(\"vote-value\").innerHTML =\n                    `${data.global.total.vote}`;\n\n                document.getElementById(\"giveaway-value\").innerHTML =\n                    `${data.global.total.giveaway}`;\n\n                document.getElementById(\"captcha-value\").innerHTML =\n                    `${data.global.total.captcha}`;\n\n                document.getElementById(\"solvedcaptcha-value\").innerHTML =\n                    `${data.global.total.solvedcaptcha}`;\n\n                document.getElementById(\"slot-value\").innerHTML =\n                    `${data.global.gamble.slot}`;\n\n                document.getElementById(\"coinflip-value\").innerHTML =\n                    `${data.global.gamble.coinflip}`;\n\n                document.getElementById(\"cowoncywon-value\").innerHTML =\n                    `${data.global.gamble.cowoncywon}`;\n\n                const hasQuest =\n                    data.global.quest.title != \"All quests completed!\" ||\n                    data.global.quest.title != \"No active quest found\";\n                document.getElementById(\"quest-title\").textContent =\n                    (hasQuest ? \"Title: \" : \"\") + `${data.global.quest.title}`;\n\n                document.getElementById(\"quest-reward\").textContent =\n                    (hasQuest ? \"Reward: \" : \"\") +\n                    `${data.global.quest.reward}`;\n\n                document.getElementById(\"quest-progress\").textContent =\n                    (hasQuest ? \"Progress: \" : \"\") +\n                    `${data.global.quest.progress}`;\n            }\n        }\n        if (data.global?.type == \"Extra\") {\n            if (data.action == \"update\") {\n                if (data.type == \"botstatus\") {\n                    document.getElementById(\"bot-status-extra\").textContent =\n                        `${data.status}`;\n                }\n\n                document.getElementById(\"hunt-value-extra\").innerHTML =\n                    `${data.global.total.hunt}`;\n\n                document.getElementById(\"battle-value-extra\").innerHTML =\n                    `${data.global.total.battle}`;\n\n                document.getElementById(\"pray-value-extra\").innerHTML =\n                    `${data.global.total.pray}`;\n\n                document.getElementById(\"curse-value-extra\").innerHTML =\n                    `${data.global.total.curse}`;\n\n                document.getElementById(\"huntbot-value-extra\").innerHTML =\n                    `${data.global.total.huntbot}`;\n\n                document.getElementById(\"vote-value-extra\").innerHTML =\n                    `${data.global.total.vote}`;\n\n                document.getElementById(\"giveaway-value-extra\").innerHTML =\n                    `${data.global.total.giveaway}`;\n\n                document.getElementById(\"captcha-value-extra\").innerHTML =\n                    `${data.global.total.captcha}`;\n\n                document.getElementById(\"solvedcaptcha-value-extra\").innerHTML =\n                    `${data.global.total.solvedcaptcha}`;\n\n                document.getElementById(\"slot-value-extra\").innerHTML =\n                    `${data.global.gamble.slot}`;\n\n                document.getElementById(\"coinflip-value-extra\").innerHTML =\n                    `${data.global.gamble.coinflip}`;\n\n                document.getElementById(\"cowoncywon-value-extra\").innerHTML =\n                    `${data.global.gamble.cowoncywon}`;\n\n                const hasQuest =\n                    data.global.quest.title != \"All quests completed!\" ||\n                    data.global.quest.title != \"No active quest found\";\n                document.getElementById(\"quest-title-extra\").textContent =\n                    (hasQuest ? \"Title: \" : \"\") + `${data.global.quest.title}`;\n\n                document.getElementById(\"quest-reward-extra\").textContent =\n                    (hasQuest ? \"Reward: \" : \"\") +\n                    `${data.global.quest.reward}`;\n\n                document.getElementById(\"quest-progress-extra\").textContent =\n                    (hasQuest ? \"Progress: \" : \"\") +\n                    `${data.global.quest.progress}`;\n            }\n        }\n    };\n\n    socket.onerror = function (error) {\n        console.error(\"WebSocket Hatası:\", error);\n    };\n\n    socket.onclose = function () {\n        document.getElementById(\"ws-status\").textContent = \"Disconnected\";\n        document.getElementById(\"connected\").style = \"display: none;\";\n        document.getElementById(\"waitingforconnection\").style =\n            \"display: block;\";\n\n        console.log(\"ws baglantisi yok amk\");\n\n        setTimeout(connectWebSocket, 1000);\n    };\n}\n\nconnectWebSocket();\n\nfunction sendAction(action) {\n    const message = JSON.stringify({ action: action });\n    socket.send(message);\n    if (action == \"reboot\") {\n        document.getElementById(\"reboot-popup\").style.display = \"none\";\n    }\n}\n\nfunction updateUptime() {\n    if (startTime === null) {\n        return;\n    }\n\n    const currentTime = new Date();\n    const seconds = Math.floor((currentTime - startTime) / 1000);\n\n    const days = Math.floor(seconds / 86400);\n    const hours = Math.floor((seconds % 86400) / 3600);\n    const minutes = Math.floor((seconds % 3600) / 60);\n    const remainingSeconds = seconds % 60;\n\n    const uptime = `${days}d ${hours}h ${minutes}m ${remainingSeconds}s`;\n\n    document.getElementById(\"uptime\").textContent = uptime;\n}\n"
  },
  {
    "path": "webui/index.ejs",
    "content": "<!-- \r\n  OwO Farm Bot Stable\r\n  Copyright (C) 2024 Mido\r\n  This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\r\n  For more information, see README.md and LICENSE -->\r\n\r\n<!doctype html>\r\n<html lang=\"en\">\r\n    <head>\r\n        <meta charset=\"UTF-8\" />\r\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\r\n        <title>💖 OwO Farm Bot Stable 💖</title>\r\n\r\n        <link\r\n            href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css\"\r\n            rel=\"stylesheet\"\r\n        />\r\n\r\n        <link\r\n            href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css\"\r\n            rel=\"stylesheet\"\r\n        />\r\n        <link href=\"./assets/css/index.css\" rel=\"stylesheet\" />\r\n        <link href=\"./assets/css/popup.css\" rel=\"stylesheet\" />\r\n        <link href=\"./assets/css/notification.css\" rel=\"stylesheet\" />\r\n    </head>\r\n    <body>\r\n        <div class=\"notification-container\" id=\"notification-container\"></div>\r\n        <div class=\"content\" id=\"waitingforconnection\" style=\"display: block\">\r\n            <%- include('partials/sidebar/waitingconnection.ejs') %>\r\n        </div>\r\n        <div class=\"content\" id=\"connected\" style=\"display: none\">\r\n            <%-include('partials/sidebar/main.ejs') %>\r\n            <%-include('partials/home/main.ejs') %>\r\n            <%-include('partials/home/extra.ejs') %>\r\n            <%-include('partials/settings/general.ejs') %>\r\n            <%-include('partials/settings/main.ejs') %>\r\n            <%-include('partials/settings/extra.ejs') %>\r\n            <%-include('partials/webuisettings.ejs', { images: images, videos: videos }) %>\r\n            <%-include('partials/rebootalert.ejs') %>\r\n            <%-include('partials/log.ejs') %>\r\n        </div>\r\n\r\n        <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js\"></script>\r\n        <script src=\"./assets/js/index.js\"></script>\r\n        <script src=\"./assets/js/savesettings.js\"></script>\r\n        <script src=\"./assets/js/webuisettings.js\"></script>\r\n        <script src=\"./assets/js/ws.js\"></script>\r\n    </body>\r\n</html>\r\n"
  },
  {
    "path": "webui/partials/home/extra.ejs",
    "content": "<!-- Extra Home Content -->\r\n<div id=\"home-content-extra\" style=\"display: none\">\r\n    <!-- User Info Section -->\r\n    <div class=\"big-box\">\r\n        <div class=\"small-box\">\r\n            <h2 class=\"text-container\">User Info</h2>\r\n            <div class=\"info-card\" id=\"userinfo-extra\">\r\n                <div class=\"info-card-data\">\r\n                    username:\r\n                    <span id=\"username-extra\">çıkaramadım abi kimsin sen</span>\r\n                </div>\r\n\r\n                <div class=\"info-card-data\">\r\n                    Nickname:\r\n                    <span id=\"usernick-extra\">çıkaramadım abi kimsin sen</span>\r\n                </div>\r\n\r\n                <div class=\"info-card-data\">\r\n                    Farm Bot Status: <span id=\"bot-status-extra\">Stopped</span>\r\n                </div>\r\n\r\n                <div class=\"info-card-data\">\r\n                    WebSocket Status:\r\n                    <span id=\"ws-status-extra\">Disconnected</span>\r\n                </div>\r\n            </div>\r\n        </div>\r\n\r\n        <div class=\"small-box\">\r\n            <h2 class=\"text-container\">Quest</h2>\r\n            <div class=\"quest-card\" id=\"quest-extra\">\r\n                <div class=\"quest-card-data\">\r\n                    <span id=\"quest-title-extra\">Waiting...</span>\r\n                </div>\r\n\r\n                <div class=\"quest-card-data\">\r\n                    <span id=\"quest-reward-extra\">Waiting...</span>\r\n                </div>\r\n\r\n                <div class=\"quest-card-data\">\r\n                    <span id=\"quest-progress-extra\">Waiting...</span>\r\n                </div>\r\n            </div>\r\n        </div>\r\n\r\n        <div class=\"small-box\">\r\n            <div class=\"actions-section\" id=\"actions\">\r\n                <h2 class=\"text-container\">Actions</h2>\r\n                <div class=\"action-btns\">\r\n                    <button class=\"btn btn-success btn-custom\" onclick=\"sendAction('start-extra')\">\r\n                        Start\r\n                    </button>\r\n                    <button class=\"btn btn-info btn-custom\" onclick=\"sendAction('pause-extra')\">\r\n                        Pause\r\n                    </button>\r\n                    <button class=\"btn btn-warning btn-custom\" onclick=\"sendAction('resume-extra')\">\r\n                        Resume\r\n                    </button>\r\n                    <button class=\"btn btn-danger btn-custom\" onclick=\"showrebootalertPopup()\">\r\n                        Reboot\r\n                    </button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <!-- Stats Section -->\r\n    <h2 class=\"text-container\">Extra Token Stats</h2>\r\n    <div class=\"stats-grid\">\r\n        <div class=\"stat-box\">\r\n            <span id=\"hunt-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Hunt</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"battle-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Battle</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"pray-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Pray</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"curse-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Curse</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"huntbot-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Huntbot</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"vote-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Vote</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"giveaway-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Giveaway</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"captcha-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Captcha</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"slot-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Slot</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"coinflip-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Coinflip</span>\r\n        </div>\r\n        <div class=\"stat-box override\">\r\n            <span id=\"cowoncywon-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Cowoncy won by gambling</span>\r\n        </div>\r\n        <div class=\"stat-box highlight\">\r\n            <span id=\"solvedcaptcha-value-extra\" class=\"value\">0</span>\r\n            <span class=\"label\">Solved Captcha</span>\r\n        </div>\r\n    </div>\r\n</div>"
  },
  {
    "path": "webui/partials/home/main.ejs",
    "content": "<!-- Main Home Content -->\r\n<div id=\"home-content\">\r\n    <!-- User Info and Quest Section -->\r\n    <div class=\"big-box\">\r\n        <div class=\"small-box\">\r\n            <h2 class=\"text-container\">User Info</h2>\r\n            <div class=\"info-card\" id=\"userinfo\">\r\n                <div class=\"info-card-data\">\r\n                    username:\r\n                    <span id=\"username\">çıkaramadım abi kimsin sen</span>\r\n                </div>\r\n\r\n                <div class=\"info-card-data\">\r\n                    Nickname:\r\n                    <span id=\"usernick\">çıkaramadım abi kimsin sen</span>\r\n                </div>\r\n\r\n                <div class=\"info-card-data\">\r\n                    Farm Bot Status: <span id=\"bot-status\">Stopped</span>\r\n                </div>\r\n\r\n                <div class=\"info-card-data\">\r\n                    WebSocket Status:\r\n                    <span id=\"ws-status\">Disconnected</span>\r\n                </div>\r\n            </div>\r\n        </div>\r\n\r\n        <div class=\"small-box\">\r\n            <h2 class=\"text-container\">Quest</h2>\r\n            <div class=\"quest-card\" id=\"quest\">\r\n                <div class=\"quest-card-data\">\r\n                    <span id=\"quest-title\">Waiting...</span>\r\n                </div>\r\n\r\n                <div class=\"quest-card-data\">\r\n                    <span id=\"quest-reward\">Waiting...</span>\r\n                </div>\r\n\r\n                <div class=\"quest-card-data\">\r\n                    <span id=\"quest-progress\">Waiting...</span>\r\n                </div>\r\n            </div>\r\n        </div>\r\n\r\n        <div class=\"small-box\">\r\n            <div class=\"actions-section\" id=\"actions\">\r\n                <h2 class=\"text-container\">Actions</h2>\r\n                <div class=\"action-btns\">\r\n                    <button class=\"btn btn-success btn-custom\" onclick=\"sendAction('start')\">\r\n                        Start\r\n                    </button>\r\n                    <button class=\"btn btn-info btn-custom\" onclick=\"sendAction('pause')\">\r\n                        Pause\r\n                    </button>\r\n                    <button class=\"btn btn-warning btn-custom\" onclick=\"sendAction('resume')\">\r\n                        Resume\r\n                    </button>\r\n                    <button class=\"btn btn-danger btn-custom\" onclick=\"showrebootalertPopup()\">\r\n                        Reboot\r\n                    </button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n\r\n    <!-- Stats Section -->\r\n    <h2 class=\"text-container\">Stats</h2>\r\n    <div class=\"stats-grid\">\r\n        <div class=\"stat-box\">\r\n            <span id=\"hunt-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Hunt</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"battle-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Battle</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"pray-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Pray</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"curse-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Curse</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"huntbot-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Huntbot</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"vote-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Vote</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"giveaway-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Giveaway</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"captcha-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Captcha</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"slot-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Slot</span>\r\n        </div>\r\n        <div class=\"stat-box\">\r\n            <span id=\"coinflip-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Coinflip</span>\r\n        </div>\r\n        <div class=\"stat-box override\">\r\n            <span id=\"cowoncywon-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Cowoncy won by gambling</span>\r\n        </div>\r\n        <div class=\"stat-box highlight\">\r\n            <span id=\"solvedcaptcha-value\" class=\"value\">0</span>\r\n            <span class=\"label\">Solved Captcha</span>\r\n        </div>\r\n    </div>\r\n</div>"
  },
  {
    "path": "webui/partials/log.ejs",
    "content": "<div class=\"log-section\" id=\"log-section\" style=\"display: none\">\n    <div>\n        <h1 class=\"text-container\">Logs</h1>\n        <div id=\"logContainer\" class=\"log-container\"></div>\n    </div>\n</div>\n\n<script>\n    const eventSource = new EventSource(\"/logs\");\n    const logContainer = document.getElementById(\"logContainer\");\n    const maxLogEntries = 200;\n\n    eventSource.onmessage = (event) => {\n        const logMessage = JSON.parse(event.data);\n        const logEntry = document.createElement(\"div\");\n        logEntry.textContent = logMessage;\n\n        const fragment = document.createDocumentFragment();\n        fragment.appendChild(logEntry);\n\n        while (logContainer.children.length >= maxLogEntries) {\n            logContainer.removeChild(logContainer.firstChild);\n        }\n\n        logContainer.appendChild(fragment);\n        logContainer.scrollTop = logContainer.scrollHeight;\n    };\n\n    eventSource.onerror = (err) => {\n        console.error(\"SSE Error:\", err);\n\n        // eventSource.close();\n    };\n</script>\n"
  },
  {
    "path": "webui/partials/rebootalert.ejs",
    "content": "<div class=\"popup\" id=\"reboot-popup\">\r\n    <div class=\"popup-header\">Reboot FARM BOT</div>\r\n    <div class=\"popup-body\">\r\n        <h1 style=\"color: red\">Are you sure to reboot farm bot ?</h1>\r\n        <button class=\"btn btn-danger\" onclick=\"sendAction('reboot')\">\r\n            Yes\r\n        </button>\r\n        <button class=\"btn btn-secondary\" onclick=\"closerebootalertPopup()\">\r\n            No\r\n        </button>\r\n    </div>\r\n</div>\r\n"
  },
  {
    "path": "webui/partials/settings/extra.ejs",
    "content": "<!-- Extra Settings Content -->\r\n<div id=\"settings-content-extra\" style=\"display: none\">\r\n    <ul class=\"nav nav-tabs mb-4\">\r\n        <li class=\"nav-item\">\r\n            <a\r\n                class=\"nav-link active\"\r\n                data-bs-toggle=\"tab\"\r\n                href=\"#extra-requiredsettings\"\r\n                >Required Settings</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#extra-basiccommands\"\r\n                >Basic Commands</a\r\n            >\r\n        </li>\r\n\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#extra-huntbot\"\r\n                >Huntbot</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#extra-gambling\">\r\n                Gambling\r\n            </a>\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#extra-miscellaneous\"\r\n                >Miscellaneous</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item ms-auto\">\r\n            <button id=\"extra-saveBtn\" class=\"btn btn-danger save-btn\">\r\n                <i class=\"bi bi-floppy2-fill\"></i> Save\r\n            </button>\r\n        </li>\r\n    </ul>\r\n\r\n    <div class=\"tab-content\">\r\n        <!-- Required Settings Tab -->\r\n        <div class=\"tab-pane fade show active\" id=\"extra-requiredsettings\">\r\n            <div class=\"settings-section\">\r\n                <h4>Required Settings</h4>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-enable\"\r\n                        />\r\n                        <label class=\"form-check-label\" for=\"extra-enable\"\r\n                            >Enable (If you want to use the extra token, Click\r\n                            on this)</label\r\n                        >\r\n                    </div>\r\n                    <label class=\"form-label\">TOKEN</label>\r\n                    <input\r\n                        type=\"password\"\r\n                        class=\"form-control\"\r\n                        id=\"extra-token\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">USER ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"extra-userid\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">OwO DM Channel ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"extra-owodmchannelid\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">Commands Channel ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"extra-commandschannelid\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">Huntbot Channel ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"extra-huntbotchannelid\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">Gamble Channel ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"extra-gamblechannelid\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">Auto Quest Channel ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"extra-autoquestchannelid\"\r\n                        value=\"x\"\r\n                    />\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Basic Commands Tab -->\r\n        <div class=\"tab-pane fade\" id=\"extra-basiccommands\">\r\n            <div class=\"settings-section\">\r\n                <h4>Basic Commands</h4>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-hunt\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-hunt\"\r\n                            >Hunt</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-battle\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-battle\"\r\n                            >Battle</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-pray\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-pray\"\r\n                            >Pray</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-curse\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-curse\"\r\n                            >Curse</label\r\n                        >\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Huntbot Tab -->\r\n        <div class=\"tab-pane fade\" id=\"extra-huntbot\">\r\n            <div class=\"settings-section\">\r\n                <h4>Huntbot Settings</h4>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-huntbot-enable\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-huntbot-enable\"\r\n                            >Enable Huntbot</label\r\n                        >\r\n                    </div>\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Max Time (hour)</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"extra-commands-huntbot-maxtime\"\r\n                        value=\"0\"\r\n                    />\r\n                </div>\r\n            </div>\r\n\r\n            <div class=\"settings-section\">\r\n                <h4>Huntbot Upgrade Settings</h4>\r\n                <div class=\"form-check\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"extra-commands-huntbot-upgrade\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"extra-commands-huntbot-upgrade\"\r\n                        >Auto Upgrade</label\r\n                    >\r\n                </div>\r\n                <h4>Upgrade Type</h4>\r\n                <select\r\n                    class=\"form-select\"\r\n                    id=\"extra-commands-huntbot-upgradetype\"\r\n                >\r\n                    <option value=\"duration\">Duration</option>\r\n                    <option value=\"efficiency\">Efficiency</option>\r\n                    <option value=\"cost\">Cost</option>\r\n                    <option value=\"gain\">Gain</option>\r\n                    <option value=\"exp\">Experience</option>\r\n                    <option value=\"radar\">Radar</option>\r\n                </select>\r\n            </div>\r\n        </div>\r\n        <!-- Gambling Tab -->\r\n        <div class=\"tab-pane fade\" id=\"extra-gambling\">\r\n            <div class=\"settings-section\">\r\n                <h4>Gambling</h4>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-gamble-coinflip\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-gamble-coinflip\"\r\n                            >Coinflip</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-gamble-slot\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-gamble-slot\"\r\n                            >Slot</label\r\n                        >\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Miscellaneous Tab -->\r\n        <div class=\"tab-pane fade\" id=\"extra-miscellaneous\">\r\n            <div class=\"settings-section\">\r\n                <h4>Miscellaneous</h4>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-autostart\"\r\n                        />\r\n                        <label class=\"form-check-label\" for=\"extra-autostart\"\r\n                            >Auto Start</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-tomain\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-tomain\"\r\n                            >To Main (use curse/pray to main token)</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-animals\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-animals\"\r\n                            >Animals</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-inventory\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-inventory\"\r\n                            >Inventory</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-checklist\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-checklist\"\r\n                            >Checklist</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"extra-commands-autoquest\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"extra-commands-autoquest\"\r\n                            >Auto Quest</label\r\n                        >\r\n                    </div>\r\n                    <h4>Maximum Gem Rarity</h4>\r\n                    <select class=\"form-select\" id=\"extra-maximum_gem_rarity\">\r\n                        <option value=\"common\">Common</option>\r\n                        <option value=\"uncommon\">Uncommon</option>\r\n                        <option value=\"rare\">Rare</option>\r\n                        <option value=\"epic\">Epic</option>\r\n                        <option value=\"mythical\">Mythical</option>\r\n                        <option value=\"legendary\">Legendary</option>\r\n                        <option value=\"fabled\">Fabled</option>\r\n                    </select>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n"
  },
  {
    "path": "webui/partials/settings/general.ejs",
    "content": "<!-- Main Settings Content -->\r\n<div id=\"general-settings-content\" style=\"display: none\">\r\n    <ul class=\"nav nav-tabs mb-4\">\r\n        <li class=\"nav-item\">\r\n            <a\r\n                class=\"nav-link active\"\r\n                data-bs-toggle=\"tab\"\r\n                href=\"#general-settings\"\r\n                >General Settings</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#general-checklist\"\r\n                >Checklist</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#general-inventory\"\r\n                >Inventory</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#general-animals\"\r\n                >Animals</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#general-gambling\"\r\n                >Gambling</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#general-captcha\"\r\n                >Captcha</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#general-logging\"\r\n                >Logging</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#general-interval\"\r\n                >Intervals</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#general-safety\"\r\n                >Safety</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item ms-auto\">\r\n            <button id=\"general-saveBtn\" class=\"btn btn-danger save-btn\">\r\n                <i class=\"bi bi-floppy2-fill\"></i> Save\r\n            </button>\r\n        </li>\r\n    </ul>\r\n\r\n    <div class=\"tab-content\">\r\n        <!-- General Settings Tab -->\r\n        <div class=\"tab-pane fade show active\" id=\"general-settings\">\r\n            <div class=\"settings-section\">\r\n                <h4>General Settings</h4>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">SelfBot Prefix</label>\r\n                    <input\r\n                        type=\"text\"\r\n                        class=\"form-control\"\r\n                        id=\"prefix\"\r\n                        value=\"!\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">OwO Prefix</label>\r\n                    <input\r\n                        type=\"text\"\r\n                        class=\"form-control\"\r\n                        id=\"settings-owoprefix\"\r\n                        value=\"owo\"\r\n                    />\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-discordrpc\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"settings-discordrpc\"\r\n                        >Discord RPC</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-chatfeedback\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"settings-chatfeedback\"\r\n                        >Chat Feedback</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-autophrases\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"settings-autophrases\"\r\n                        >Auto Phrases</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-autoresume\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"settings-autoresume\"\r\n                        >Auto Resume</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-autojoingiveaways\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-autojoingiveaways\"\r\n                        >Auto Join Giveaways</label\r\n                    >\r\n                </div>\r\n            </div>\r\n        </div>\r\n\r\n        <!-- Checklist Tab -->\r\n        <div class=\"tab-pane fade\" id=\"general-checklist\">\r\n            <div class=\"settings-section\">\r\n                <h4>Check Types</h4>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-checklist-types-daily\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-checklist-types-daily\"\r\n                        >Daily</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-checklist-types-cookie\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-checklist-types-cookie\"\r\n                        >Cookie</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-checklist-types-vote\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-checklist-types-vote\"\r\n                        >Vote</label\r\n                    >\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Inventory Tab -->\r\n        <div class=\"tab-pane fade\" id=\"general-inventory\">\r\n            <div class=\"settings-section\">\r\n                <h4>Use Items</h4>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-inventory-use-lootbox\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-inventory-use-lootbox\"\r\n                        >Lootbox</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-inventory-use-fabledlootbox\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-inventory-use-fabledlootbox\"\r\n                        >Fabled Lootbox</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-inventory-use-crate\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-inventory-use-crate\"\r\n                        >Crate</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-inventory-use-gems\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-inventory-use-gems\"\r\n                        >Gems</label\r\n                    >\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Animals Tab -->\r\n        <div class=\"tab-pane fade\" id=\"general-animals\">\r\n            <div class=\"settings-section\">\r\n                <h4>Animal Use Type</h4>\r\n                <select class=\"form-select\" id=\"animals-type\">\r\n                    <option value=\"sell\">Sell</option>\r\n                    <option value=\"sacrifice\">Sacrifice</option>\r\n                </select>\r\n            </div>\r\n            <div class=\"settings-section\">\r\n                <h4>Animal Types</h4>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-common\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-common\"\r\n                        >Common</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-uncommon\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-uncommon\"\r\n                        >Uncommon</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-rare\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-rare\"\r\n                        >Rare</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-epic\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-epic\"\r\n                        >Epic</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-mythical\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-mythical\"\r\n                        >Mythical</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-patreon\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-patreon\"\r\n                        >Patreon</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-cpatreon\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-cpatreon\"\r\n                        >CPatreon</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-legendary\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-legendary\"\r\n                        >Legendary</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-gem\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"animals-animaltype-gem\"\r\n                        >Gem</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-bot\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"animals-animaltype-bot\"\r\n                        >Bot</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-distorted\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-distorted\"\r\n                        >Distorted</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-fabled\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-fabled\"\r\n                        >Fabled</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-special\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-special\"\r\n                        >Special</label\r\n                    >\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"animals-animaltype-hidden\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"animals-animaltype-hidden\"\r\n                        >Hidden</label\r\n                    >\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Gambling Tab -->\r\n        <div class=\"tab-pane fade\" id=\"general-gambling\">\r\n            <div class=\"settings-section\">\r\n                <h4>Coinflip Settings</h4>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Default Amount</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"settings-gamble-coinflip-default_amount\"\r\n                        value=\"1000\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Max Amount</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"settings-gamble-coinflip-max_amount\"\r\n                        value=\"250000\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Multiplier</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"settings-gamble-coinflip-multiplier\"\r\n                        value=\"1.0\"\r\n                        step=\"0.1\"\r\n                    />\r\n                </div>\r\n            </div>\r\n            <div class=\"settings-section\">\r\n                <h4>Slot Settings</h4>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Default Amount</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"settings-gamble-slot-default_amount\"\r\n                        value=\"1000\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Max Amount</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"settings-gamble-slot-max_amount\"\r\n                        value=\"250000\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Multiplier</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"settings-gamble-slot-multiplier\"\r\n                        value=\"1.0\"\r\n                        step=\"0.1\"\r\n                    />\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Captcha Tab -->\r\n        <div class=\"tab-pane fade\" id=\"general-captcha\">\r\n            <div class=\"settings-section\">\r\n                <h3>Captcha Settings</h3>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-captcha-autosolve\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-captcha-autosolve\"\r\n                        >Auto Solve</label\r\n                    >\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Auto Solve Threads</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"settings-captcha-autosolve_thread\"\r\n                        value=\"1\"\r\n                    />\r\n                </div>\r\n            </div>\r\n            <div class=\"settings-section\">\r\n                <h3>Alert Settings</h3>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check mb-2\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"settings-captcha-alerttype-webhook\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"settings-captcha-alerttype-webhook\"\r\n                            >Webhook Alert</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"mb-3\">\r\n                        <label class=\"form-label\">Webhook URL</label>\r\n                        <input\r\n                            type=\"text\"\r\n                            class=\"form-control\"\r\n                            id=\"settings-captcha-alerttype-webhookurl\"\r\n                        />\r\n                    </div>\r\n                </div>\r\n                <h4>Desktop Settings</h4>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check mb-2\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"settings-captcha-alerttype-desktop-force\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"settings-captcha-alerttype-desktop-force\"\r\n                            >Force alert when detect captcha</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check mb-2\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"settings-captcha-alerttype-desktop-notification\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"settings-captcha-alerttype-desktop-notification\"\r\n                            >Notification</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check mb-2\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"settings-captcha-alerttype-desktop-prompt\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"settings-captcha-alerttype-desktop-prompt\"\r\n                            >Prompt</label\r\n                        >\r\n                    </div>\r\n                </div>\r\n\r\n                <h4>Termux Settings</h4>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check mb-2\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"settings-captcha-alerttype-termux-notification\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"settings-captcha-alerttype-termux-notification\"\r\n                            >Notification</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check mb-2\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"settings-captcha-alerttype-termux-toast\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"settings-captcha-alerttype-termux-toast\"\r\n                            >Toast</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check mb-2\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"settings-captcha-alerttype-termux-vibration\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"settings-captcha-alerttype-termux-vibration\"\r\n                            >Vibration</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"mb-3\">\r\n                        <label class=\"form-label\">Vibration Time</label>\r\n                        <input\r\n                            type=\"number\"\r\n                            class=\"form-control\"\r\n                            id=\"settings-captcha-alerttype-termux-vibration_time\"\r\n                            value=\"5000\"\r\n                        />\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Logging Tab -->\r\n        <div class=\"tab-pane fade\" id=\"general-logging\">\r\n            <div class=\"settings-section\">\r\n                <h4>Logging Settings</h4>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-logging-newlog\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-logging-newlog\"\r\n                        >New Log</label\r\n                    >\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Log Length</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"settings-logging-loglength\"\r\n                        value=\"20\"\r\n                    />\r\n                </div>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-logging-showlogbeforeexit\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-logging-showlogbeforeexit\"\r\n                        >Show log before exit</label\r\n                    >\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Interval Tab -->\r\n        <div class=\"tab-pane fade\" id=\"general-interval\">\r\n            <div class=\"settings-section\">\r\n                <h4>Hunt</h4>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Minimum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-hunt-min\"\r\n                        value=\"16000\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Maximum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-hunt-max\"\r\n                        value=\"32000\"\r\n                    />\r\n                </div>\r\n            </div>\r\n            <div class=\"settings-section\">\r\n                <h4>Battle</h4>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Minimum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-battle-min\"\r\n                        value=\"16000\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Maximum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-battle-max\"\r\n                        value=\"32000\"\r\n                    />\r\n                </div>\r\n            </div>\r\n            <div class=\"settings-section\">\r\n                <h4>Pray</h4>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Minimum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-pray-min\"\r\n                        value=\"316000\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Maximum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-pray-max\"\r\n                        value=\"332000\"\r\n                    />\r\n                </div>\r\n            </div>\r\n            <div class=\"settings-section\">\r\n                <h4>Coinflip</h4>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Minimum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-coinflip-min\"\r\n                        value=\"16000\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Maximum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-coinflip-max\"\r\n                        value=\"32000\"\r\n                    />\r\n                </div>\r\n            </div>\r\n            <div class=\"settings-section\">\r\n                <h4>Slot</h4>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Minimum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-slot-min\"\r\n                        value=\"16000\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Maximum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-slot-max\"\r\n                        value=\"32000\"\r\n                    />\r\n                </div>\r\n            </div>\r\n            <div class=\"settings-section\">\r\n                <h4>Animals</h4>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Minimum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-animals-min\"\r\n                        value=\"610000\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Maximum interval</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"interval-animals-max\"\r\n                        value=\"661000\"\r\n                    />\r\n                </div>\r\n            </div>\r\n        </div>\r\n\r\n        <div class=\"tab-pane fade\" id=\"general-safety\">\r\n            <div class=\"settings-section\">\r\n                <h4>Safety (Experiment, might not work)</h4>\r\n                <div class=\"form-check mb-2\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"settings-safety-autopause\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"settings-safety-autopause\"\r\n                        >Enable safety pause</label\r\n                    >\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Pause after (minutes)</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\",\r\n                        id=\"settings-safety-pauseafter\"\r\n                        value=\"30\"\r\n                    />\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Pause duration (minutes)</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\",\r\n                        id=\"settings-safety-pausefor\"\r\n                        value=\"5\"\r\n                    />\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n"
  },
  {
    "path": "webui/partials/settings/main.ejs",
    "content": "<!-- Main Settings Content -->\r\n<div id=\"settings-content\" style=\"display: none\">\r\n    <ul class=\"nav nav-tabs mb-4\">\r\n        <li class=\"nav-item\">\r\n            <a\r\n                class=\"nav-link active\"\r\n                data-bs-toggle=\"tab\"\r\n                href=\"#main-requiredsettings\"\r\n                >Required Settings</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#main-basiccommands\"\r\n                >Basic Commands</a\r\n            >\r\n        </li>\r\n\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#main-huntbot\"\r\n                >Huntbot</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#main-gambling\">\r\n                Gambling\r\n            </a>\r\n        </li>\r\n        <li class=\"nav-item\">\r\n            <a class=\"nav-link\" data-bs-toggle=\"tab\" href=\"#main-miscellaneous\"\r\n                >Miscellaneous</a\r\n            >\r\n        </li>\r\n        <li class=\"nav-item ms-auto\">\r\n            <button id=\"main-saveBtn\" class=\"btn btn-danger save-btn\">\r\n                <i class=\"bi bi-floppy2-fill\"></i> Save\r\n            </button>\r\n        </li>\r\n    </ul>\r\n\r\n    <div class=\"tab-content\">\r\n        <!-- Required Settings Tab -->\r\n        <div class=\"tab-pane fade show active\" id=\"main-requiredsettings\">\r\n            <div class=\"settings-section\">\r\n                <h4>Required Settings</h4>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">TOKEN</label>\r\n                    <input\r\n                        type=\"password\"\r\n                        class=\"form-control\"\r\n                        id=\"main-token\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">USER ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"main-userid\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">OwO DM Channel ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"main-owodmchannelid\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">Commands Channel ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"main-commandschannelid\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">Huntbot Channel ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"main-huntbotchannelid\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">Gamble Channel ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"main-gamblechannelid\"\r\n                        value=\"x\"\r\n                    />\r\n\r\n                    <label class=\"form-label\">Auto Quest Channel ID</label>\r\n                    <input\r\n                        type=\"string\"\r\n                        class=\"form-control\"\r\n                        id=\"main-autoquestchannelid\"\r\n                        value=\"x\"\r\n                    />\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Basic Commands Tab -->\r\n        <div class=\"tab-pane fade\" id=\"main-basiccommands\">\r\n            <div class=\"settings-section\">\r\n                <h4>Basic Commands</h4>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-commands-hunt\"\r\n                        />\r\n                        <label class=\"form-check-label\" for=\"main-commands-hunt\"\r\n                            >Hunt</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-commands-battle\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"main-commands-battle\"\r\n                            >Battle</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-commands-pray\"\r\n                        />\r\n                        <label class=\"form-check-label\" for=\"main-commands-pray\"\r\n                            >Pray</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-commands-curse\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"main-commands-curse\"\r\n                            >Curse</label\r\n                        >\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Huntbot Tab -->\r\n        <div class=\"tab-pane fade\" id=\"main-huntbot\">\r\n            <div class=\"settings-section\">\r\n                <h4>Huntbot Settings</h4>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-commands-huntbot-enable\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"main-commands-huntbot-enable\"\r\n                            >Enable Huntbot</label\r\n                        >\r\n                    </div>\r\n                </div>\r\n                <div class=\"mb-3\">\r\n                    <label class=\"form-label\">Max Time (hour)</label>\r\n                    <input\r\n                        type=\"number\"\r\n                        class=\"form-control\"\r\n                        id=\"main-commands-huntbot-maxtime\"\r\n                        value=\"0\"\r\n                    />\r\n                </div>\r\n            </div>\r\n\r\n            <div class=\"settings-section\">\r\n                <h4>Huntbot Upgrade Settings</h4>\r\n                <div class=\"form-check\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"main-commands-huntbot-upgrade\"\r\n                    />\r\n                    <label\r\n                        class=\"form-check-label\"\r\n                        for=\"main-commands-huntbot-upgrade\"\r\n                        >Auto Upgrade</label\r\n                    >\r\n                </div>\r\n                <h4>Upgrade Type</h4>\r\n                <select\r\n                    class=\"form-select\"\r\n                    id=\"main-commands-huntbot-upgradetype\"\r\n                >\r\n                    <option value=\"duration\">Duration</option>\r\n                    <option value=\"efficiency\">Efficiency</option>\r\n                    <option value=\"cost\">Cost</option>\r\n                    <option value=\"gain\">Gain</option>\r\n                    <option value=\"exp\">Experience</option>\r\n                    <option value=\"radar\">Radar</option>\r\n                </select>\r\n            </div>\r\n        </div>\r\n        <!-- Gambling Tab -->\r\n        <div class=\"tab-pane fade\" id=\"main-gambling\">\r\n            <div class=\"settings-section\">\r\n                <h4>Gambling</h4>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-commands-gamble-coinflip\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"main-commands-gamble-coinflip\"\r\n                            >Coinflip</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-commands-gamble-slot\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"main-commands-gamble-slot\"\r\n                            >Slot</label\r\n                        >\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- Miscellaneous Tab -->\r\n        <div class=\"tab-pane fade\" id=\"main-miscellaneous\">\r\n            <div class=\"settings-section\">\r\n                <h4>Miscellaneous</h4>\r\n                <div class=\"mb-3\">\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-autostart\"\r\n                        />\r\n                        <label class=\"form-check-label\" for=\"main-autostart\"\r\n                            >Auto Start</label\r\n                        >\r\n                    </div>\r\n\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-commands-animals\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"main-commands-animals\"\r\n                            >Animals</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-commands-inventory\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"main-commands-inventory\"\r\n                            >Inventory</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-commands-checklist\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"main-commands-checklist\"\r\n                            >Checklist</label\r\n                        >\r\n                    </div>\r\n                    <div class=\"form-check\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"main-commands-autoquest\"\r\n                        />\r\n                        <label\r\n                            class=\"form-check-label\"\r\n                            for=\"main-commands-autoquest\"\r\n                            >Auto Quest</label\r\n                        >\r\n                    </div>\r\n                    <h4>Maximum Gem Rarity</h4>\r\n                    <select class=\"form-select\" id=\"main-maximum_gem_rarity\">\r\n                        <option value=\"common\">Common</option>\r\n                        <option value=\"uncommon\">Uncommon</option>\r\n                        <option value=\"rare\">Rare</option>\r\n                        <option value=\"epic\">Epic</option>\r\n                        <option value=\"mythical\">Mythical</option>\r\n                        <option value=\"legendary\">Legendary</option>\r\n                        <option value=\"fabled\">Fabled</option>\r\n                    </select>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n"
  },
  {
    "path": "webui/partials/sidebar/main.ejs",
    "content": "<div class=\"sidebar\" id=\"thesidebar\">\r\n    <div class=\"sidebar-top\" onclick=\"toggleMenu()\">\r\n        <h3><i class=\"bi bi-menu-button-wide\"></i> OwO Farm Bot Stable</h3>\r\n    </div>\r\n\r\n    <div id=\"sidebar-general-section\" style=\"padding-top: 100px\">\r\n        <h2>General</h2>\r\n        <div id=\"general-menu\">\r\n            <a id=\"general-settings-link\" onclick=\"showSettings('general')\">\r\n                <i class=\"bi bi-gear\"></i> <span>General Bot Settings</span>\r\n            </a>\r\n\r\n            <a id=\"webui-settings-link\" onclick=\"openWebUISettings()\">\r\n                <i class=\"bi bi-gear\"></i> <span>WebUI Settings</span>\r\n            </a>\r\n\r\n            <a id=\"logging-link\" onclick=\"showlog()\">\r\n                <i class=\"bi bi-file-earmark-text\"></i> <span>Log</span>\r\n            </a>\r\n        </div>\r\n    </div>\r\n\r\n    <div id=\"sidebar-main-section\">\r\n        <h4>Main</h4>\r\n        <div id=\"main-menu\">\r\n            <a id=\"home-link\" onclick=\"showHome('main')\">\r\n                <i class=\"bi bi-house\"></i> <span>Home</span>\r\n            </a>\r\n            <a id=\"settings-link\" onclick=\"showSettings('main')\">\r\n                <i class=\"bi bi-gear\"></i> <span>Settings</span>\r\n            </a>\r\n        </div>\r\n    </div>\r\n\r\n    <div id=\"sidebar-extra-section\" style=\"display: none\">\r\n        <h4>Extra</h4>\r\n        <div id=\"extra-menu\">\r\n            <a id=\"home-link-extra\" onclick=\"showHome('extra')\">\r\n                <i class=\"bi bi-house\"></i> <span>Home</span>\r\n            </a>\r\n            <a id=\"settings-link-extra\" onclick=\"showSettings('extra')\">\r\n                <i class=\"bi bi-gear\"></i> <span>Settings</span>\r\n            </a>\r\n        </div>\r\n    </div>\r\n\r\n    <div style=\"position: absolute; margin-top: 860px\" id=\"love\">\r\n        hidden love\r\n    </div>\r\n\r\n    <div class=\"sidebar-end\" id=\"sidebar-end\">\r\n        <div\r\n            style=\"\r\n                position: absolute;\r\n                bottom: 110px;\r\n                left: 20px;\r\n                color: #b0bec5;\r\n            \"\r\n        >\r\n            <i class=\"bi bi-clock\"></i>\r\n            Uptime: <span id=\"uptime\">0d 0h 0m 0s</span>\r\n        </div>\r\n\r\n        <div\r\n            style=\"\r\n                position: absolute;\r\n                bottom: 0px;\r\n                left: 10px;\r\n                display: flex;\r\n                gap: 20px;\r\n            \"\r\n        >\r\n            <a\r\n                href=\"https://github.com/Mid0Hub/owofarmbot_stable\"\r\n                target=\"_blank\"\r\n            >\r\n                <i class=\"bi bi-github\" style=\"margin-left: 20px\"></i>\r\n                <i>Github</i>\r\n            </a>\r\n            <a href=\"https://github.com/sponsors/Mid0aria\" target=\"_blank\">\r\n                <i class=\"bi bi-cash-coin\" style=\"margin-left: 25px\"></i>\r\n                <i>Support</i>\r\n            </a>\r\n        </div>\r\n    </div>\r\n</div>\r\n"
  },
  {
    "path": "webui/partials/sidebar/waitingconnection.ejs",
    "content": "<style></style>\r\n<div class=\"sidebar\" id=\"sidebar\">\r\n    <h3><i class=\"bi bi-menu-button-wide\"></i> OwO Farm Bot Stable</h3>\r\n\r\n    <h4 class=\"waiting-connection\">\r\n        <span style=\"color: rgb(238, 255, 0)\"\r\n            >Waiting WebSocket Connection</span\r\n        >\r\n        <span class=\"dots\"></span>\r\n    </h4>\r\n\r\n    <div class=\"sidebar-footer\">\r\n        <a href=\"https://github.com/Mid0Hub/owofarmbot_stable\" target=\"_blank\">\r\n            <i class=\"bi bi-github\"></i>\r\n        </a>\r\n        <a href=\"https://github.com/sponsors/Mid0aria\" target=\"_blank\">\r\n            <i class=\"bi bi-cash-coin\"></i>\r\n        </a>\r\n    </div>\r\n</div>\r\n"
  },
  {
    "path": "webui/partials/webuisettings.ejs",
    "content": "<div class=\"webui-settings\" id=\"webui-settings\" style=\"display: none\">\r\n    <!-- Main Content -->\r\n    <div class=\"settings-content\">\r\n        <h2 class=\"text-container\">WebUI Settings</h2>\r\n\r\n        <div class=\"settings-section\" id=\"textbg\">\r\n            <h3>Text Background Settings</h3>\r\n\r\n            <div>\r\n                <label class=\"form-check-label\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"text-background-toggle\"\r\n                        onchange=\"toggleTextBackground()\">\r\n                    Enable Text Background\r\n                </label>\r\n            </div>\r\n\r\n            <div>\r\n                <label>\r\n                    <input\r\n                        type=\"color\"\r\n                        id=\"text-background-color\"\r\n                        onchange=\"changeTextBackgroundColor(this.value)\">\r\n                    Select Text Background Color\r\n                </label>\r\n            </div>\r\n\r\n            <div>\r\n                <label class=\"form-check-label\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"semi-trans-toggle\"\r\n                        onchange=\"toggleSemiTransparent()\">\r\n                    Semi-Transparent Mode\r\n                </label>\r\n            </div>\r\n\r\n            <div>\r\n                <label class=\"form-check-label\">\r\n                    <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        id=\"blur-bg-toggle\"\r\n                        onchange=\"toggleBlurTextBackground()\">\r\n                    Blur Text Background\r\n                </label>\r\n            </div>\r\n\r\n            <label>\r\n                Blur Intensity: <span id=\"blur-value\">8px</span>\r\n                <input type=\"range\" id=\"blur-intensity-slider\" min=\"0\" max=\"16\" step=\"1\" value=\"8\"\r\n                    oninput=\"updateBlurIntensity(this.value)\">\r\n            </label>\r\n        </div>\r\n\r\n        <div class=\"settings-section\" id=\"misc\">\r\n            <h3>Misc.</h3>\r\n\r\n            <div id=\"title-setting\">\r\n                <h4>Page Title Settings</h4>\r\n                <div>\r\n                    <label class=\"form-check-label\">\r\n                        <input\r\n                            class=\"form-check-input\"\r\n                            type=\"checkbox\"\r\n                            id=\"title-animation-toggle\"\r\n                            onchange=\"toggleTitleAnimation()\">\r\n                        Enable Title Animation\r\n                    </label>\r\n                </div>\r\n\r\n                <div>\r\n                    <label class=\"form-label\">Custom page title</label>\r\n                    <input type=\"text\" class=\"form-control\" id=\"custom-title\" value=\"\"/>\r\n                    <div>\r\n                        <button id=\"save-title-btn\" class=\"btn btn-primary\">Save Custom Title</button>\r\n                        <button id=\"reset-title-btn\" class=\"btn btn-danger\">Reset Default Title</button>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n\r\n        <div class=\"settings-section\" id=\"background\">\r\n            <h3>Background Selection</h3>\r\n            <div class=\"background-section\">\r\n                <h4>Images (Put your image in ./webui/background/image)</h4>\r\n                <div class=\"background-list\">\r\n                    <% if (images.length> 0) { %>\r\n                        <% images.forEach(image=> { %>\r\n                            <img src=\"<%= image %>\" alt=\"Background\" onclick=\"selectBackground(this, '<%= image %>')\"\r\n                                class=\"background-item\" />\r\n                            <% }) %>\r\n                                <% } else { %>\r\n                                    <p>No images available.</p>\r\n                                    <% } %>\r\n                </div>\r\n            </div>\r\n\r\n            <div class=\"background-section\">\r\n                <h4>Videos (Put your video in ./webui/background/video - support .mp4)</h4>\r\n                <div class=\"background-list\">\r\n                    <% if (videos.length> 0) { %>\r\n                        <% videos.forEach(video=> { %>\r\n                            <video src=\"<%= video %>\" onclick=\"selectBackground(this, '<%= video %>')\" loop muted\r\n                                autoplay class=\"background-item background-video\"></video>\r\n                            <% }) %>\r\n                                <% } else { %>\r\n                                    <p>No videos available.</p>\r\n                                    <% } %>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>"
  },
  {
    "path": "windows-setup.ps1",
    "content": "# OwO Farm Bot Stable\r\n# Copyright (C) 2024 Mido\r\n# This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International\r\n# For more information, see README.md and LICENSE\r\n\r\n# BENDE VARRR 🤙🤙🤙🤙\r\n# https://open.spotify.com/track/1Ma4fLShd0hpZSNH37mEkR?si=fa52965f89434731\r\n\r\n\r\n\r\n\r\nfunction Install-Node {\r\n    $nodeVersion = node -v 2>$null\r\n    if ($nodeVersion -like \"v*\") {\r\n        Write-Host \"Node.js is already installed: $nodeVersion\" -ForegroundColor Green\r\n    } else {\r\n        Write-Host \"Installing Node.js v22.12.0 ...\" -ForegroundColor Yellow\r\n        $nodeInstaller = \"https://nodejs.org/dist/v22.12.0/node-v22.12.0-x64.msi\" # Adjust the version URL if needed\r\n        $installerPath = \"$env:TEMP\\nodejs-installer.msi\"\r\n        Invoke-WebRequest -Uri $nodeInstaller -OutFile $installerPath\r\n        Start-Process msiexec.exe -ArgumentList \"/i $installerPath /quiet /norestart\" -Wait\r\n        Remove-Item $installerPath\r\n        Write-Host \"Node.js has been successfully installed.\" -ForegroundColor Green\r\n    }\r\n}\r\n\r\nfunction Install-Git {\r\n    $gitVersion = git --version 2>$null\r\n    if ($gitVersion -like \"git version *\") {\r\n        Write-Host \"Git is already installed: $gitVersion\" -ForegroundColor Green\r\n    } else {\r\n        Write-Host \"Installing Git...\" -ForegroundColor Yellow\r\n        $gitInstaller = \"https://github.com/git-for-windows/git/releases/latest/download/Git-2.42.0-64-bit.exe\"\r\n        $installerPath = \"$env:TEMP\\git-installer.exe\"\r\n        Invoke-WebRequest -Uri $gitInstaller -OutFile $installerPath\r\n        Start-Process $installerPath -ArgumentList \"/SILENT\" -Wait\r\n        Remove-Item $installerPath\r\n        Write-Host \"Git has been successfully installed.\" -ForegroundColor Green\r\n    }\r\n}\r\n\r\nfunction Clone-Project {\r\n    $desktopPath = [Environment]::GetFolderPath(\"Desktop\")\r\n    $repoPath = Join-Path $desktopPath \"owofarmbot_stable\"\r\n\r\n    if (Test-Path $repoPath) {\r\n        Write-Host \"The project is already cloned at $repoPath.\" -ForegroundColor Green\r\n    } else {\r\n        Write-Host \"Cloning the repository...\" -ForegroundColor Yellow\r\n        git clone --recurse-submodules https://github.com/Mid0Hub/owofarmbot_stable $repoPath\r\n        Write-Host \"Repository cloned successfully.\" -ForegroundColor Green\r\n    }\r\n\r\n    Write-Host \"Entering the project directory and installing dependencies...\" -ForegroundColor Yellow\r\n    Set-Location $repoPath\r\n    npm install\r\n    Write-Host \"Dependencies installed successfully.\" -ForegroundColor Green\r\n}\r\n\r\nInstall-Node\r\nInstall-Git\r\nClone-Project\r\n\r\nWrite-Host \"Everything is ready. Please type 'node main.js' in owofarmbot_stable folder\" -ForegroundColor Cyan\r\n"
  }
]